Class TimelineItem.Builder

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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TimelineItem.Builder>
    • clear

      public TimelineItem.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<TimelineItem.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TimelineItem.Builder>
    • getDefaultInstanceForType

      public TimelineItem getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public TimelineItem build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public TimelineItem buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public TimelineItem.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<TimelineItem.Builder>
    • setField

      public TimelineItem.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<TimelineItem.Builder>
    • clearField

      public TimelineItem.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<TimelineItem.Builder>
    • clearOneof

      public TimelineItem.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TimelineItem.Builder>
    • setRepeatedField

      public TimelineItem.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TimelineItem.Builder>
    • addRepeatedField

      public TimelineItem.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TimelineItem.Builder>
    • mergeFrom

      public TimelineItem.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TimelineItem.Builder>
    • mergeFrom

      public TimelineItem.Builder mergeFrom(TimelineItem other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TimelineItem.Builder>
      Throws:
      IOException
    • hasId

      public boolean hasId()
       Item identifier
       
      optional string id = 1;
      Specified by:
      hasId in interface TimelineItemOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public String getId()
       Item identifier
       
      optional string id = 1;
      Specified by:
      getId in interface TimelineItemOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       Item identifier
       
      optional string id = 1;
      Specified by:
      getIdBytes in interface TimelineItemOrBuilder
      Returns:
      The bytes for id.
    • setId

      public TimelineItem.Builder setId(String value)
       Item identifier
       
      optional string id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public TimelineItem.Builder clearId()
       Item identifier
       
      optional string id = 1;
      Returns:
      This builder for chaining.
    • setIdBytes

      public TimelineItem.Builder setIdBytes(com.google.protobuf.ByteString value)
       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:
      hasName in interface TimelineItemOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Item name
       
      optional string name = 2;
      Specified by:
      getName in interface TimelineItemOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Item name
       
      optional string name = 2;
      Specified by:
      getNameBytes in interface TimelineItemOrBuilder
      Returns:
      The bytes for name.
    • setName

      public TimelineItem.Builder setName(String value)
       Item name
       
      optional string name = 2;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public TimelineItem.Builder clearName()
       Item name
       
      optional string name = 2;
      Returns:
      This builder for chaining.
    • setNameBytes

      public TimelineItem.Builder setNameBytes(com.google.protobuf.ByteString value)
       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:
      hasType in interface TimelineItemOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      public TimelineItemType getType()
      optional .yamcs.protobuf.timeline.TimelineItemType type = 3;
      Specified by:
      getType in interface TimelineItemOrBuilder
      Returns:
      The type.
    • setType

      public TimelineItem.Builder setType(TimelineItemType value)
      optional .yamcs.protobuf.timeline.TimelineItemType type = 3;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public TimelineItem.Builder 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:
      hasStart in interface TimelineItemOrBuilder
      Returns:
      Whether the start field is set.
    • getStart

      public com.google.protobuf.Timestamp getStart()
      optional .google.protobuf.Timestamp start = 4;
      Specified by:
      getStart in interface TimelineItemOrBuilder
      Returns:
      The start.
    • setStart

      public TimelineItem.Builder setStart(com.google.protobuf.Timestamp value)
      optional .google.protobuf.Timestamp start = 4;
    • setStart

      public TimelineItem.Builder setStart(com.google.protobuf.Timestamp.Builder builderForValue)
      optional .google.protobuf.Timestamp start = 4;
    • mergeStart

      public TimelineItem.Builder mergeStart(com.google.protobuf.Timestamp value)
      optional .google.protobuf.Timestamp start = 4;
    • clearStart

      public TimelineItem.Builder 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:
      getStartOrBuilder in interface TimelineItemOrBuilder
    • hasDuration

      public boolean hasDuration()
      optional .google.protobuf.Duration duration = 5;
      Specified by:
      hasDuration in interface TimelineItemOrBuilder
      Returns:
      Whether the duration field is set.
    • getDuration

      public com.google.protobuf.Duration getDuration()
      optional .google.protobuf.Duration duration = 5;
      Specified by:
      getDuration in interface TimelineItemOrBuilder
      Returns:
      The duration.
    • setDuration

      public TimelineItem.Builder setDuration(com.google.protobuf.Duration value)
      optional .google.protobuf.Duration duration = 5;
    • setDuration

      public TimelineItem.Builder setDuration(com.google.protobuf.Duration.Builder builderForValue)
      optional .google.protobuf.Duration duration = 5;
    • mergeDuration

      public TimelineItem.Builder mergeDuration(com.google.protobuf.Duration value)
      optional .google.protobuf.Duration duration = 5;
    • clearDuration

      public TimelineItem.Builder 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:
      getDurationOrBuilder in interface TimelineItemOrBuilder
    • getTagsList

      public com.google.protobuf.ProtocolStringList getTagsList()
      repeated string tags = 6;
      Specified by:
      getTagsList in interface TimelineItemOrBuilder
      Returns:
      A list containing the tags.
    • getTagsCount

      public int getTagsCount()
      repeated string tags = 6;
      Specified by:
      getTagsCount in interface TimelineItemOrBuilder
      Returns:
      The count of tags.
    • getTags

      public String getTags(int index)
      repeated string tags = 6;
      Specified by:
      getTags in interface TimelineItemOrBuilder
      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:
      getTagsBytes in interface TimelineItemOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the tags at the given index.
    • setTags

      public TimelineItem.Builder setTags(int index, String value)
      repeated string tags = 6;
      Parameters:
      index - The index to set the value at.
      value - The tags to set.
      Returns:
      This builder for chaining.
    • addTags

      public TimelineItem.Builder addTags(String value)
      repeated string tags = 6;
      Parameters:
      value - The tags to add.
      Returns:
      This builder for chaining.
    • addAllTags

      public TimelineItem.Builder addAllTags(Iterable<String> values)
      repeated string tags = 6;
      Parameters:
      values - The tags to add.
      Returns:
      This builder for chaining.
    • clearTags

      public TimelineItem.Builder clearTags()
      repeated string tags = 6;
      Returns:
      This builder for chaining.
    • addTagsBytes

      public TimelineItem.Builder addTagsBytes(com.google.protobuf.ByteString value)
      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:
      hasGroupId in interface TimelineItemOrBuilder
      Returns:
      Whether the groupId field is set.
    • getGroupId

      public String getGroupId()
      if this item is part of a group, this is the group identifier
       
      optional string groupId = 7;
      Specified by:
      getGroupId in interface TimelineItemOrBuilder
      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:
      getGroupIdBytes in interface TimelineItemOrBuilder
      Returns:
      The bytes for groupId.
    • setGroupId

      public TimelineItem.Builder setGroupId(String value)
      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

      public TimelineItem.Builder clearGroupId()
      if this item is part of a group, this is the group identifier
       
      optional string groupId = 7;
      Returns:
      This builder for chaining.
    • setGroupIdBytes

      public TimelineItem.Builder setGroupIdBytes(com.google.protobuf.ByteString value)
      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:
      hasRelativeTime in interface TimelineItemOrBuilder
      Returns:
      Whether the relativeTime field is set.
    • getRelativeTime

      public RelativeTime 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:
      getRelativeTime in interface TimelineItemOrBuilder
      Returns:
      The relativeTime.
    • setRelativeTime

      public TimelineItem.Builder setRelativeTime(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 client
       
      optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 8;
    • setRelativeTime

      public TimelineItem.Builder setRelativeTime(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 client
       
      optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 8;
    • mergeRelativeTime

      public TimelineItem.Builder 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 client
       
      optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 8;
    • clearRelativeTime

      public TimelineItem.Builder 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

      public RelativeTime.Builder 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

      public RelativeTimeOrBuilder 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:
      getRelativeTimeOrBuilder in interface TimelineItemOrBuilder
    • setUnknownFields

      public final TimelineItem.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TimelineItem.Builder>
    • mergeUnknownFields

      public final TimelineItem.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TimelineItem.Builder>