java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<TimelineItem.Builder>
org.yamcs.protobuf.TimelineItem.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,TimelineItemOrBuilder
- Enclosing class:
- TimelineItem
public static final class TimelineItem.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<TimelineItem.Builder>
implements TimelineItemOrBuilder
Protobuf type
yamcs.protobuf.timeline.TimelineItem-
Method Summary
Modifier and TypeMethodDescriptionaddAllTags(Iterable<String> values) repeated string tags = 6;addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) repeated string tags = 6;addTagsBytes(com.google.protobuf.ByteString value) repeated string tags = 6;build()clear()optional .google.protobuf.Duration duration = 5;clearField(com.google.protobuf.Descriptors.FieldDescriptor field) if this item is part of a group, this is the group identifierclearId()Item identifierItem nameclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) if this item time specification is relative to another item, relativeTime contains a reference to that item as well as the relative start (the duration is the same as given by the duration above) note that start of the item will be computed by the server based on the relativeTime before sending the item to the clientoptional .google.protobuf.Timestamp start = 4;repeated string tags = 6;optional .yamcs.protobuf.timeline.TimelineItemType type = 3;clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Durationoptional .google.protobuf.Duration duration = 5;com.google.protobuf.Duration.Builderoptional .google.protobuf.Duration duration = 5;com.google.protobuf.DurationOrBuilderoptional .google.protobuf.Duration duration = 5;if this item is part of a group, this is the group identifiercom.google.protobuf.ByteStringif this item is part of a group, this is the group identifiergetId()Item identifiercom.google.protobuf.ByteStringItem identifiergetName()Item namecom.google.protobuf.ByteStringItem nameif this item time specification is relative to another item, relativeTime contains a reference to that item as well as the relative start (the duration is the same as given by the duration above) note that start of the item will be computed by the server based on the relativeTime before sending the item to the clientif this item time specification is relative to another item, relativeTime contains a reference to that item as well as the relative start (the duration is the same as given by the duration above) note that start of the item will be computed by the server based on the relativeTime before sending the item to the clientif this item time specification is relative to another item, relativeTime contains a reference to that item as well as the relative start (the duration is the same as given by the duration above) note that start of the item will be computed by the server based on the relativeTime before sending the item to the clientcom.google.protobuf.TimestampgetStart()optional .google.protobuf.Timestamp start = 4;com.google.protobuf.Timestamp.Builderoptional .google.protobuf.Timestamp start = 4;com.google.protobuf.TimestampOrBuilderoptional .google.protobuf.Timestamp start = 4;getTags(int index) repeated string tags = 6;com.google.protobuf.ByteStringgetTagsBytes(int index) repeated string tags = 6;intrepeated string tags = 6;com.google.protobuf.ProtocolStringListrepeated string tags = 6;getType()optional .yamcs.protobuf.timeline.TimelineItemType type = 3;booleanoptional .google.protobuf.Duration duration = 5;booleanif this item is part of a group, this is the group identifierbooleanhasId()Item identifierbooleanhasName()Item namebooleanif this item time specification is relative to another item, relativeTime contains a reference to that item as well as the relative start (the duration is the same as given by the duration above) note that start of the item will be computed by the server based on the relativeTime before sending the item to the clientbooleanhasStart()optional .google.protobuf.Timestamp start = 4;booleanhasType()optional .yamcs.protobuf.timeline.TimelineItemType type = 3;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeDuration(com.google.protobuf.Duration value) optional .google.protobuf.Duration duration = 5;mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(TimelineItem other) mergeRelativeTime(RelativeTime value) if this item time specification is relative to another item, relativeTime contains a reference to that item as well as the relative start (the duration is the same as given by the duration above) note that start of the item will be computed by the server based on the relativeTime before sending the item to the clientmergeStart(com.google.protobuf.Timestamp value) optional .google.protobuf.Timestamp start = 4;final TimelineItem.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setDuration(com.google.protobuf.Duration value) optional .google.protobuf.Duration duration = 5;setDuration(com.google.protobuf.Duration.Builder builderForValue) optional .google.protobuf.Duration duration = 5;setGroupId(String value) if this item is part of a group, this is the group identifiersetGroupIdBytes(com.google.protobuf.ByteString value) if this item is part of a group, this is the group identifierItem identifiersetIdBytes(com.google.protobuf.ByteString value) Item identifierItem namesetNameBytes(com.google.protobuf.ByteString value) Item namesetRelativeTime(RelativeTime value) if this item time specification is relative to another item, relativeTime contains a reference to that item as well as the relative start (the duration is the same as given by the duration above) note that start of the item will be computed by the server based on the relativeTime before sending the item to the clientsetRelativeTime(RelativeTime.Builder builderForValue) if this item time specification is relative to another item, relativeTime contains a reference to that item as well as the relative start (the duration is the same as given by the duration above) note that start of the item will be computed by the server based on the relativeTime before sending the item to the clientsetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStart(com.google.protobuf.Timestamp value) optional .google.protobuf.Timestamp start = 4;setStart(com.google.protobuf.Timestamp.Builder builderForValue) optional .google.protobuf.Timestamp start = 4;repeated string tags = 6;setType(TimelineItemType value) optional .yamcs.protobuf.timeline.TimelineItemType type = 3;final TimelineItem.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<TimelineItem.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<TimelineItem.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<TimelineItem.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<TimelineItem.Builder>
-
setField
public TimelineItem.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TimelineItem.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TimelineItem.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TimelineItem.Builder>
-
setRepeatedField
public TimelineItem.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TimelineItem.Builder>
-
addRepeatedField
public TimelineItem.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TimelineItem.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TimelineItem.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<TimelineItem.Builder>
-
mergeFrom
public TimelineItem.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TimelineItem.Builder>- Throws:
IOException
-
hasId
public boolean hasId()Item identifier
optional string id = 1;- Specified by:
hasIdin interfaceTimelineItemOrBuilder- Returns:
- Whether the id field is set.
-
getId
Item identifier
optional string id = 1;- Specified by:
getIdin interfaceTimelineItemOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()Item identifier
optional string id = 1;- Specified by:
getIdBytesin interfaceTimelineItemOrBuilder- Returns:
- The bytes for id.
-
setId
Item identifier
optional string id = 1;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Item identifier
optional string id = 1;- Returns:
- This builder for chaining.
-
setIdBytes
Item identifier
optional string id = 1;- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
hasName
public boolean hasName()Item name
optional string name = 2;- Specified by:
hasNamein interfaceTimelineItemOrBuilder- Returns:
- Whether the name field is set.
-
getName
Item name
optional string name = 2;- Specified by:
getNamein interfaceTimelineItemOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Item name
optional string name = 2;- Specified by:
getNameBytesin interfaceTimelineItemOrBuilder- Returns:
- The bytes for name.
-
setName
Item name
optional string name = 2;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Item name
optional string name = 2;- Returns:
- This builder for chaining.
-
setNameBytes
Item name
optional string name = 2;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasType
public boolean hasType()optional .yamcs.protobuf.timeline.TimelineItemType type = 3;- Specified by:
hasTypein interfaceTimelineItemOrBuilder- Returns:
- Whether the type field is set.
-
getType
optional .yamcs.protobuf.timeline.TimelineItemType type = 3;- Specified by:
getTypein interfaceTimelineItemOrBuilder- Returns:
- The type.
-
setType
optional .yamcs.protobuf.timeline.TimelineItemType type = 3;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
optional .yamcs.protobuf.timeline.TimelineItemType type = 3;- Returns:
- This builder for chaining.
-
hasStart
public boolean hasStart()optional .google.protobuf.Timestamp start = 4;- Specified by:
hasStartin interfaceTimelineItemOrBuilder- Returns:
- Whether the start field is set.
-
getStart
public com.google.protobuf.Timestamp getStart()optional .google.protobuf.Timestamp start = 4;- Specified by:
getStartin interfaceTimelineItemOrBuilder- Returns:
- The start.
-
setStart
optional .google.protobuf.Timestamp start = 4; -
setStart
optional .google.protobuf.Timestamp start = 4; -
mergeStart
optional .google.protobuf.Timestamp start = 4; -
clearStart
optional .google.protobuf.Timestamp start = 4; -
getStartBuilder
public com.google.protobuf.Timestamp.Builder getStartBuilder()optional .google.protobuf.Timestamp start = 4; -
getStartOrBuilder
public com.google.protobuf.TimestampOrBuilder getStartOrBuilder()optional .google.protobuf.Timestamp start = 4;- Specified by:
getStartOrBuilderin interfaceTimelineItemOrBuilder
-
hasDuration
public boolean hasDuration()optional .google.protobuf.Duration duration = 5;- Specified by:
hasDurationin interfaceTimelineItemOrBuilder- Returns:
- Whether the duration field is set.
-
getDuration
public com.google.protobuf.Duration getDuration()optional .google.protobuf.Duration duration = 5;- Specified by:
getDurationin interfaceTimelineItemOrBuilder- Returns:
- The duration.
-
setDuration
optional .google.protobuf.Duration duration = 5; -
setDuration
optional .google.protobuf.Duration duration = 5; -
mergeDuration
optional .google.protobuf.Duration duration = 5; -
clearDuration
optional .google.protobuf.Duration duration = 5; -
getDurationBuilder
public com.google.protobuf.Duration.Builder getDurationBuilder()optional .google.protobuf.Duration duration = 5; -
getDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getDurationOrBuilder()optional .google.protobuf.Duration duration = 5;- Specified by:
getDurationOrBuilderin interfaceTimelineItemOrBuilder
-
getTagsList
public com.google.protobuf.ProtocolStringList getTagsList()repeated string tags = 6;- Specified by:
getTagsListin interfaceTimelineItemOrBuilder- Returns:
- A list containing the tags.
-
getTagsCount
public int getTagsCount()repeated string tags = 6;- Specified by:
getTagsCountin interfaceTimelineItemOrBuilder- Returns:
- The count of tags.
-
getTags
repeated string tags = 6;- Specified by:
getTagsin interfaceTimelineItemOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The tags at the given index.
-
getTagsBytes
public com.google.protobuf.ByteString getTagsBytes(int index) repeated string tags = 6;- Specified by:
getTagsBytesin interfaceTimelineItemOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the tags at the given index.
-
setTags
repeated string tags = 6;- Parameters:
index- The index to set the value at.value- The tags to set.- Returns:
- This builder for chaining.
-
addTags
repeated string tags = 6;- Parameters:
value- The tags to add.- Returns:
- This builder for chaining.
-
addAllTags
repeated string tags = 6;- Parameters:
values- The tags to add.- Returns:
- This builder for chaining.
-
clearTags
repeated string tags = 6;- Returns:
- This builder for chaining.
-
addTagsBytes
repeated string tags = 6;- Parameters:
value- The bytes of the tags to add.- Returns:
- This builder for chaining.
-
hasGroupId
public boolean hasGroupId()if this item is part of a group, this is the group identifier
optional string groupId = 7;- Specified by:
hasGroupIdin interfaceTimelineItemOrBuilder- Returns:
- Whether the groupId field is set.
-
getGroupId
if this item is part of a group, this is the group identifier
optional string groupId = 7;- Specified by:
getGroupIdin interfaceTimelineItemOrBuilder- Returns:
- The groupId.
-
getGroupIdBytes
public com.google.protobuf.ByteString getGroupIdBytes()if this item is part of a group, this is the group identifier
optional string groupId = 7;- Specified by:
getGroupIdBytesin interfaceTimelineItemOrBuilder- Returns:
- The bytes for groupId.
-
setGroupId
if this item is part of a group, this is the group identifier
optional string groupId = 7;- Parameters:
value- The groupId to set.- Returns:
- This builder for chaining.
-
clearGroupId
if this item is part of a group, this is the group identifier
optional string groupId = 7;- Returns:
- This builder for chaining.
-
setGroupIdBytes
if this item is part of a group, this is the group identifier
optional string groupId = 7;- Parameters:
value- The bytes for groupId to set.- Returns:
- This builder for chaining.
-
hasRelativeTime
public boolean hasRelativeTime()if this item time specification is relative to another item, relativeTime contains a reference to that item as well as the relative start (the duration is the same as given by the duration above) note that start of the item will be computed by the server based on the relativeTime before sending the item to the client
optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 8;- Specified by:
hasRelativeTimein interfaceTimelineItemOrBuilder- Returns:
- Whether the relativeTime field is set.
-
getRelativeTime
if this item time specification is relative to another item, relativeTime contains a reference to that item as well as the relative start (the duration is the same as given by the duration above) note that start of the item will be computed by the server based on the relativeTime before sending the item to the client
optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 8;- Specified by:
getRelativeTimein interfaceTimelineItemOrBuilder- Returns:
- The relativeTime.
-
setRelativeTime
if this item time specification is relative to another item, relativeTime contains a reference to that item as well as the relative start (the duration is the same as given by the duration above) note that start of the item will be computed by the server based on the relativeTime before sending the item to the client
optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 8; -
setRelativeTime
if this item time specification is relative to another item, relativeTime contains a reference to that item as well as the relative start (the duration is the same as given by the duration above) note that start of the item will be computed by the server based on the relativeTime before sending the item to the client
optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 8; -
mergeRelativeTime
if this item time specification is relative to another item, relativeTime contains a reference to that item as well as the relative start (the duration is the same as given by the duration above) note that start of the item will be computed by the server based on the relativeTime before sending the item to the client
optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 8; -
clearRelativeTime
if this item time specification is relative to another item, relativeTime contains a reference to that item as well as the relative start (the duration is the same as given by the duration above) note that start of the item will be computed by the server based on the relativeTime before sending the item to the client
optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 8; -
getRelativeTimeBuilder
if this item time specification is relative to another item, relativeTime contains a reference to that item as well as the relative start (the duration is the same as given by the duration above) note that start of the item will be computed by the server based on the relativeTime before sending the item to the client
optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 8; -
getRelativeTimeOrBuilder
if this item time specification is relative to another item, relativeTime contains a reference to that item as well as the relative start (the duration is the same as given by the duration above) note that start of the item will be computed by the server based on the relativeTime before sending the item to the client
optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 8;- Specified by:
getRelativeTimeOrBuilderin interfaceTimelineItemOrBuilder
-
setUnknownFields
public final TimelineItem.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TimelineItem.Builder>
-
mergeUnknownFields
public final TimelineItem.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TimelineItem.Builder>
-