Class TimelineBand.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<TimelineBand.Builder>
com.google.protobuf.GeneratedMessage.Builder<TimelineBand.Builder>
org.yamcs.protobuf.TimelineBand.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, TimelineBandOrBuilder
Enclosing class:
TimelineBand

public static final class TimelineBand.Builder extends com.google.protobuf.GeneratedMessage.Builder<TimelineBand.Builder> implements TimelineBandOrBuilder
Protobuf type yamcs.protobuf.timeline.TimelineBand
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<TimelineBand.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<TimelineBand.Builder>
    • internalGetFieldAccessorTable

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

      public TimelineBand.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.GeneratedMessage.Builder<TimelineBand.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.GeneratedMessage.Builder<TimelineBand.Builder>
    • getDefaultInstanceForType

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

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

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

      public TimelineBand.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<TimelineBand.Builder>
    • mergeFrom

      public TimelineBand.Builder mergeFrom(TimelineBand other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<TimelineBand.Builder>
    • mergeFrom

      public TimelineBand.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<TimelineBand.Builder>
      Throws:
      IOException
    • hasInstance

      public boolean hasInstance()
       Yamcs instance name
       
      optional string instance = 1;
      Specified by:
      hasInstance in interface TimelineBandOrBuilder
      Returns:
      Whether the instance field is set.
    • getInstance

      public String getInstance()
       Yamcs instance name
       
      optional string instance = 1;
      Specified by:
      getInstance in interface TimelineBandOrBuilder
      Returns:
      The instance.
    • getInstanceBytes

      public com.google.protobuf.ByteString getInstanceBytes()
       Yamcs instance name
       
      optional string instance = 1;
      Specified by:
      getInstanceBytes in interface TimelineBandOrBuilder
      Returns:
      The bytes for instance.
    • setInstance

      public TimelineBand.Builder setInstance(String value)
       Yamcs instance name
       
      optional string instance = 1;
      Parameters:
      value - The instance to set.
      Returns:
      This builder for chaining.
    • clearInstance

      public TimelineBand.Builder clearInstance()
       Yamcs instance name
       
      optional string instance = 1;
      Returns:
      This builder for chaining.
    • setInstanceBytes

      public TimelineBand.Builder setInstanceBytes(com.google.protobuf.ByteString value)
       Yamcs instance name
       
      optional string instance = 1;
      Parameters:
      value - The bytes for instance to set.
      Returns:
      This builder for chaining.
    • hasId

      public boolean hasId()
       Band identifier (UUID)
       
      optional string id = 2;
      Specified by:
      hasId in interface TimelineBandOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public String getId()
       Band identifier (UUID)
       
      optional string id = 2;
      Specified by:
      getId in interface TimelineBandOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       Band identifier (UUID)
       
      optional string id = 2;
      Specified by:
      getIdBytes in interface TimelineBandOrBuilder
      Returns:
      The bytes for id.
    • setId

      public TimelineBand.Builder setId(String value)
       Band identifier (UUID)
       
      optional string id = 2;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public TimelineBand.Builder clearId()
       Band identifier (UUID)
       
      optional string id = 2;
      Returns:
      This builder for chaining.
    • setIdBytes

      public TimelineBand.Builder setIdBytes(com.google.protobuf.ByteString value)
       Band identifier (UUID)
       
      optional string id = 2;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • hasName

      public boolean hasName()
       Band name
       
      optional string name = 3;
      Specified by:
      hasName in interface TimelineBandOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Band name
       
      optional string name = 3;
      Specified by:
      getName in interface TimelineBandOrBuilder
      Returns:
      The name.
    • getNameBytes

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

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

      public TimelineBand.Builder clearName()
       Band name
       
      optional string name = 3;
      Returns:
      This builder for chaining.
    • setNameBytes

      public TimelineBand.Builder setNameBytes(com.google.protobuf.ByteString value)
       Band name
       
      optional string name = 3;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasUsername

      public boolean hasUsername()
       User who has created the band
       
      optional string username = 4;
      Specified by:
      hasUsername in interface TimelineBandOrBuilder
      Returns:
      Whether the username field is set.
    • getUsername

      public String getUsername()
       User who has created the band
       
      optional string username = 4;
      Specified by:
      getUsername in interface TimelineBandOrBuilder
      Returns:
      The username.
    • getUsernameBytes

      public com.google.protobuf.ByteString getUsernameBytes()
       User who has created the band
       
      optional string username = 4;
      Specified by:
      getUsernameBytes in interface TimelineBandOrBuilder
      Returns:
      The bytes for username.
    • setUsername

      public TimelineBand.Builder setUsername(String value)
       User who has created the band
       
      optional string username = 4;
      Parameters:
      value - The username to set.
      Returns:
      This builder for chaining.
    • clearUsername

      public TimelineBand.Builder clearUsername()
       User who has created the band
       
      optional string username = 4;
      Returns:
      This builder for chaining.
    • setUsernameBytes

      public TimelineBand.Builder setUsernameBytes(com.google.protobuf.ByteString value)
       User who has created the band
       
      optional string username = 4;
      Parameters:
      value - The bytes for username to set.
      Returns:
      This builder for chaining.
    • hasShared

      public boolean hasShared()
       If true, all users have access to this band, otherwise only the user who has created it
       
      optional bool shared = 5;
      Specified by:
      hasShared in interface TimelineBandOrBuilder
      Returns:
      Whether the shared field is set.
    • getShared

      public boolean getShared()
       If true, all users have access to this band, otherwise only the user who has created it
       
      optional bool shared = 5;
      Specified by:
      getShared in interface TimelineBandOrBuilder
      Returns:
      The shared.
    • setShared

      public TimelineBand.Builder setShared(boolean value)
       If true, all users have access to this band, otherwise only the user who has created it
       
      optional bool shared = 5;
      Parameters:
      value - The shared to set.
      Returns:
      This builder for chaining.
    • clearShared

      public TimelineBand.Builder clearShared()
       If true, all users have access to this band, otherwise only the user who has created it
       
      optional bool shared = 5;
      Returns:
      This builder for chaining.
    • hasSource

      public boolean hasSource()
       The band contains only items from this source
       
      optional string source = 6;
      Specified by:
      hasSource in interface TimelineBandOrBuilder
      Returns:
      Whether the source field is set.
    • getSource

      public String getSource()
       The band contains only items from this source
       
      optional string source = 6;
      Specified by:
      getSource in interface TimelineBandOrBuilder
      Returns:
      The source.
    • getSourceBytes

      public com.google.protobuf.ByteString getSourceBytes()
       The band contains only items from this source
       
      optional string source = 6;
      Specified by:
      getSourceBytes in interface TimelineBandOrBuilder
      Returns:
      The bytes for source.
    • setSource

      public TimelineBand.Builder setSource(String value)
       The band contains only items from this source
       
      optional string source = 6;
      Parameters:
      value - The source to set.
      Returns:
      This builder for chaining.
    • clearSource

      public TimelineBand.Builder clearSource()
       The band contains only items from this source
       
      optional string source = 6;
      Returns:
      This builder for chaining.
    • setSourceBytes

      public TimelineBand.Builder setSourceBytes(com.google.protobuf.ByteString value)
       The band contains only items from this source
       
      optional string source = 6;
      Parameters:
      value - The bytes for source to set.
      Returns:
      This builder for chaining.
    • getTagsList

      public com.google.protobuf.ProtocolStringList getTagsList()
       The band contains only items with these tags. If the list is empty,
       all items from the given source are part of the band.
       
      repeated string tags = 7;
      Specified by:
      getTagsList in interface TimelineBandOrBuilder
      Returns:
      A list containing the tags.
    • getTagsCount

      public int getTagsCount()
       The band contains only items with these tags. If the list is empty,
       all items from the given source are part of the band.
       
      repeated string tags = 7;
      Specified by:
      getTagsCount in interface TimelineBandOrBuilder
      Returns:
      The count of tags.
    • getTags

      public String getTags(int index)
       The band contains only items with these tags. If the list is empty,
       all items from the given source are part of the band.
       
      repeated string tags = 7;
      Specified by:
      getTags in interface TimelineBandOrBuilder
      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)
       The band contains only items with these tags. If the list is empty,
       all items from the given source are part of the band.
       
      repeated string tags = 7;
      Specified by:
      getTagsBytes in interface TimelineBandOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the tags at the given index.
    • setTags

      public TimelineBand.Builder setTags(int index, String value)
       The band contains only items with these tags. If the list is empty,
       all items from the given source are part of the band.
       
      repeated string tags = 7;
      Parameters:
      index - The index to set the value at.
      value - The tags to set.
      Returns:
      This builder for chaining.
    • addTags

      public TimelineBand.Builder addTags(String value)
       The band contains only items with these tags. If the list is empty,
       all items from the given source are part of the band.
       
      repeated string tags = 7;
      Parameters:
      value - The tags to add.
      Returns:
      This builder for chaining.
    • addAllTags

      public TimelineBand.Builder addAllTags(Iterable<String> values)
       The band contains only items with these tags. If the list is empty,
       all items from the given source are part of the band.
       
      repeated string tags = 7;
      Parameters:
      values - The tags to add.
      Returns:
      This builder for chaining.
    • clearTags

      public TimelineBand.Builder clearTags()
       The band contains only items with these tags. If the list is empty,
       all items from the given source are part of the band.
       
      repeated string tags = 7;
      Returns:
      This builder for chaining.
    • addTagsBytes

      public TimelineBand.Builder addTagsBytes(com.google.protobuf.ByteString value)
       The band contains only items with these tags. If the list is empty,
       all items from the given source are part of the band.
       
      repeated string tags = 7;
      Parameters:
      value - The bytes of the tags to add.
      Returns:
      This builder for chaining.
    • hasFilter

      public boolean hasFilter()
       If specified, the band shows only items matching this filter
       
      optional string filter = 13;
      Specified by:
      hasFilter in interface TimelineBandOrBuilder
      Returns:
      Whether the filter field is set.
    • getFilter

      public String getFilter()
       If specified, the band shows only items matching this filter
       
      optional string filter = 13;
      Specified by:
      getFilter in interface TimelineBandOrBuilder
      Returns:
      The filter.
    • getFilterBytes

      public com.google.protobuf.ByteString getFilterBytes()
       If specified, the band shows only items matching this filter
       
      optional string filter = 13;
      Specified by:
      getFilterBytes in interface TimelineBandOrBuilder
      Returns:
      The bytes for filter.
    • setFilter

      public TimelineBand.Builder setFilter(String value)
       If specified, the band shows only items matching this filter
       
      optional string filter = 13;
      Parameters:
      value - The filter to set.
      Returns:
      This builder for chaining.
    • clearFilter

      public TimelineBand.Builder clearFilter()
       If specified, the band shows only items matching this filter
       
      optional string filter = 13;
      Returns:
      This builder for chaining.
    • setFilterBytes

      public TimelineBand.Builder setFilterBytes(com.google.protobuf.ByteString value)
       If specified, the band shows only items matching this filter
       
      optional string filter = 13;
      Parameters:
      value - The bytes for filter to set.
      Returns:
      This builder for chaining.
    • hasType

      public boolean hasType()
       Type of band
       
      optional .yamcs.protobuf.timeline.TimelineBandType type = 9;
      Specified by:
      hasType in interface TimelineBandOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      public TimelineBandType getType()
       Type of band
       
      optional .yamcs.protobuf.timeline.TimelineBandType type = 9;
      Specified by:
      getType in interface TimelineBandOrBuilder
      Returns:
      The type.
    • setType

      public TimelineBand.Builder setType(TimelineBandType value)
       Type of band
       
      optional .yamcs.protobuf.timeline.TimelineBandType type = 9;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public TimelineBand.Builder clearType()
       Type of band
       
      optional .yamcs.protobuf.timeline.TimelineBandType type = 9;
      Returns:
      This builder for chaining.
    • hasDescription

      public boolean hasDescription()
       Detailed description of this band
       
      optional string description = 10;
      Specified by:
      hasDescription in interface TimelineBandOrBuilder
      Returns:
      Whether the description field is set.
    • getDescription

      public String getDescription()
       Detailed description of this band
       
      optional string description = 10;
      Specified by:
      getDescription in interface TimelineBandOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Detailed description of this band
       
      optional string description = 10;
      Specified by:
      getDescriptionBytes in interface TimelineBandOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public TimelineBand.Builder setDescription(String value)
       Detailed description of this band
       
      optional string description = 10;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public TimelineBand.Builder clearDescription()
       Detailed description of this band
       
      optional string description = 10;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public TimelineBand.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Detailed description of this band
       
      optional string description = 10;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getPropertiesCount

      public int getPropertiesCount()
      Description copied from interface: TimelineBandOrBuilder
       Additional properties used by the Yamcs Web UI for rendering purposes.
       
      map<string, string> properties = 11;
      Specified by:
      getPropertiesCount in interface TimelineBandOrBuilder
    • containsProperties

      public boolean containsProperties(String key)
       Additional properties used by the Yamcs Web UI for rendering purposes.
       
      map<string, string> properties = 11;
      Specified by:
      containsProperties in interface TimelineBandOrBuilder
    • getProperties

      @Deprecated public Map<String,String> getProperties()
      Deprecated.
      Use getPropertiesMap() instead.
      Specified by:
      getProperties in interface TimelineBandOrBuilder
    • getPropertiesMap

      public Map<String,String> getPropertiesMap()
       Additional properties used by the Yamcs Web UI for rendering purposes.
       
      map<string, string> properties = 11;
      Specified by:
      getPropertiesMap in interface TimelineBandOrBuilder
    • getPropertiesOrDefault

      public String getPropertiesOrDefault(String key, String defaultValue)
       Additional properties used by the Yamcs Web UI for rendering purposes.
       
      map<string, string> properties = 11;
      Specified by:
      getPropertiesOrDefault in interface TimelineBandOrBuilder
    • getPropertiesOrThrow

      public String getPropertiesOrThrow(String key)
       Additional properties used by the Yamcs Web UI for rendering purposes.
       
      map<string, string> properties = 11;
      Specified by:
      getPropertiesOrThrow in interface TimelineBandOrBuilder
    • clearProperties

      public TimelineBand.Builder clearProperties()
    • removeProperties

      public TimelineBand.Builder removeProperties(String key)
       Additional properties used by the Yamcs Web UI for rendering purposes.
       
      map<string, string> properties = 11;
    • getMutableProperties

      @Deprecated public Map<String,String> getMutableProperties()
      Deprecated.
      Use alternate mutation accessors instead.
    • putProperties

      public TimelineBand.Builder putProperties(String key, String value)
       Additional properties used by the Yamcs Web UI for rendering purposes.
       
      map<string, string> properties = 11;
    • putAllProperties

      public TimelineBand.Builder putAllProperties(Map<String,String> values)
       Additional properties used by the Yamcs Web UI for rendering purposes.
       
      map<string, string> properties = 11;
    • getExtraCount

      public int getExtraCount()
      Description copied from interface: TimelineBandOrBuilder
       Mission-specific custom data. Unlike `properties`, this field is ignored
       by the Yamcs Web UI.
       
      map<string, string> extra = 12;
      Specified by:
      getExtraCount in interface TimelineBandOrBuilder
    • containsExtra

      public boolean containsExtra(String key)
       Mission-specific custom data. Unlike `properties`, this field is ignored
       by the Yamcs Web UI.
       
      map<string, string> extra = 12;
      Specified by:
      containsExtra in interface TimelineBandOrBuilder
    • getExtra

      @Deprecated public Map<String,String> getExtra()
      Deprecated.
      Use getExtraMap() instead.
      Specified by:
      getExtra in interface TimelineBandOrBuilder
    • getExtraMap

      public Map<String,String> getExtraMap()
       Mission-specific custom data. Unlike `properties`, this field is ignored
       by the Yamcs Web UI.
       
      map<string, string> extra = 12;
      Specified by:
      getExtraMap in interface TimelineBandOrBuilder
    • getExtraOrDefault

      public String getExtraOrDefault(String key, String defaultValue)
       Mission-specific custom data. Unlike `properties`, this field is ignored
       by the Yamcs Web UI.
       
      map<string, string> extra = 12;
      Specified by:
      getExtraOrDefault in interface TimelineBandOrBuilder
    • getExtraOrThrow

      public String getExtraOrThrow(String key)
       Mission-specific custom data. Unlike `properties`, this field is ignored
       by the Yamcs Web UI.
       
      map<string, string> extra = 12;
      Specified by:
      getExtraOrThrow in interface TimelineBandOrBuilder
    • clearExtra

      public TimelineBand.Builder clearExtra()
    • removeExtra

      public TimelineBand.Builder removeExtra(String key)
       Mission-specific custom data. Unlike `properties`, this field is ignored
       by the Yamcs Web UI.
       
      map<string, string> extra = 12;
    • getMutableExtra

      @Deprecated public Map<String,String> getMutableExtra()
      Deprecated.
      Use alternate mutation accessors instead.
    • putExtra

      public TimelineBand.Builder putExtra(String key, String value)
       Mission-specific custom data. Unlike `properties`, this field is ignored
       by the Yamcs Web UI.
       
      map<string, string> extra = 12;
    • putAllExtra

      public TimelineBand.Builder putAllExtra(Map<String,String> values)
       Mission-specific custom data. Unlike `properties`, this field is ignored
       by the Yamcs Web UI.
       
      map<string, string> extra = 12;