Class 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.GeneratedMessageV3.Builder<TimelineBand.Builder>
    implements TimelineBandOrBuilder
    Protobuf type yamcs.protobuf.timeline.TimelineBand
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<TimelineBand.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<TimelineBand.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

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

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

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

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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.
      • 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
         
        optional string id = 2;
        Specified by:
        hasId in interface TimelineBandOrBuilder
        Returns:
        Whether the id field is set.
      • getIdBytes

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

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

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

        public TimelineBand.Builder setIdBytes​(com.google.protobuf.ByteString value)
         Band identifier
         
        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.
      • 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.
      • 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, then 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, then 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, then 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, then 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, then 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, then 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, then 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, then 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, then 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.
      • 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.
      • 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()
         Band description
         
        optional string description = 10;
        Specified by:
        hasDescription in interface TimelineBandOrBuilder
        Returns:
        Whether the description field is set.
      • getDescriptionBytes

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

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

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

        public TimelineBand.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         Band description
         
        optional string description = 10;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • containsProperties

        public boolean containsProperties​(String key)
         Additional properties used by yamcs-web to render this band
         
        map<string, string> properties = 11;
        Specified by:
        containsProperties in interface TimelineBandOrBuilder
      • removeProperties

        public TimelineBand.Builder removeProperties​(String key)
         Additional properties used by yamcs-web to render this band
         
        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 yamcs-web to render this band
         
        map<string, string> properties = 11;
      • putAllProperties

        public TimelineBand.Builder putAllProperties​(Map<String,​String> values)
         Additional properties used by yamcs-web to render this band
         
        map<string, string> properties = 11;
      • setUnknownFields

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

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