Class YamcsInstance.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, YamcsInstanceOrBuilder
    Enclosing class:
    YamcsInstance

    public static final class YamcsInstance.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<YamcsInstance.Builder>
    implements YamcsInstanceOrBuilder
    Protobuf type yamcs.protobuf.yamcsManagement.YamcsInstance
    • 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<YamcsInstance.Builder>
      • internalGetMutableMapField

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public YamcsInstance.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<YamcsInstance.Builder>
        Throws:
        IOException
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Instance name.
         
        optional string name = 1;
        Specified by:
        getNameBytes in interface YamcsInstanceOrBuilder
      • setNameBytes

        public YamcsInstance.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Instance name.
         
        optional string name = 1;
      • clearMissionDatabase

        public YamcsInstance.Builder clearMissionDatabase()
        optional .yamcs.protobuf.mdb.MissionDatabase missionDatabase = 3;
      • getMissionDatabaseBuilder

        public Mdb.MissionDatabase.Builder getMissionDatabaseBuilder()
        optional .yamcs.protobuf.mdb.MissionDatabase missionDatabase = 3;
      • clearProcessors

        public YamcsInstance.Builder clearProcessors()
        repeated .yamcs.protobuf.yamcsManagement.ProcessorInfo processors = 4;
      • removeProcessors

        public YamcsInstance.Builder removeProcessors​(int index)
        repeated .yamcs.protobuf.yamcsManagement.ProcessorInfo processors = 4;
      • getProcessorsBuilder

        public ProcessorInfo.Builder getProcessorsBuilder​(int index)
        repeated .yamcs.protobuf.yamcsManagement.ProcessorInfo processors = 4;
      • addProcessorsBuilder

        public ProcessorInfo.Builder addProcessorsBuilder()
        repeated .yamcs.protobuf.yamcsManagement.ProcessorInfo processors = 4;
      • addProcessorsBuilder

        public ProcessorInfo.Builder addProcessorsBuilder​(int index)
        repeated .yamcs.protobuf.yamcsManagement.ProcessorInfo processors = 4;
      • getProcessorsBuilderList

        public List<ProcessorInfo.Builder> getProcessorsBuilderList()
        repeated .yamcs.protobuf.yamcsManagement.ProcessorInfo processors = 4;
      • hasState

        public boolean hasState()
        optional .yamcs.protobuf.yamcsManagement.YamcsInstance.InstanceState state = 11;
        Specified by:
        hasState in interface YamcsInstanceOrBuilder
      • clearState

        public YamcsInstance.Builder clearState()
        optional .yamcs.protobuf.yamcsManagement.YamcsInstance.InstanceState state = 11;
      • hasFailureCause

        public boolean hasFailureCause()
        in case the state=FAILED, this field will indicate the cause of the failure
         the missionDatabase and other fields may not be filled when this happens
         
        optional string failureCause = 9;
        Specified by:
        hasFailureCause in interface YamcsInstanceOrBuilder
      • getFailureCause

        public String getFailureCause()
        in case the state=FAILED, this field will indicate the cause of the failure
         the missionDatabase and other fields may not be filled when this happens
         
        optional string failureCause = 9;
        Specified by:
        getFailureCause in interface YamcsInstanceOrBuilder
      • getFailureCauseBytes

        public com.google.protobuf.ByteString getFailureCauseBytes()
        in case the state=FAILED, this field will indicate the cause of the failure
         the missionDatabase and other fields may not be filled when this happens
         
        optional string failureCause = 9;
        Specified by:
        getFailureCauseBytes in interface YamcsInstanceOrBuilder
      • setFailureCause

        public YamcsInstance.Builder setFailureCause​(String value)
        in case the state=FAILED, this field will indicate the cause of the failure
         the missionDatabase and other fields may not be filled when this happens
         
        optional string failureCause = 9;
      • clearFailureCause

        public YamcsInstance.Builder clearFailureCause()
        in case the state=FAILED, this field will indicate the cause of the failure
         the missionDatabase and other fields may not be filled when this happens
         
        optional string failureCause = 9;
      • setFailureCauseBytes

        public YamcsInstance.Builder setFailureCauseBytes​(com.google.protobuf.ByteString value)
        in case the state=FAILED, this field will indicate the cause of the failure
         the missionDatabase and other fields may not be filled when this happens
         
        optional string failureCause = 9;
      • getMissionTime

        public com.google.protobuf.Timestamp getMissionTime()
        optional .google.protobuf.Timestamp missionTime = 10;
        Specified by:
        getMissionTime in interface YamcsInstanceOrBuilder
      • setMissionTime

        public YamcsInstance.Builder setMissionTime​(com.google.protobuf.Timestamp value)
        optional .google.protobuf.Timestamp missionTime = 10;
      • setMissionTime

        public YamcsInstance.Builder setMissionTime​(com.google.protobuf.Timestamp.Builder builderForValue)
        optional .google.protobuf.Timestamp missionTime = 10;
      • mergeMissionTime

        public YamcsInstance.Builder mergeMissionTime​(com.google.protobuf.Timestamp value)
        optional .google.protobuf.Timestamp missionTime = 10;
      • clearMissionTime

        public YamcsInstance.Builder clearMissionTime()
        optional .google.protobuf.Timestamp missionTime = 10;
      • getMissionTimeBuilder

        public com.google.protobuf.Timestamp.Builder getMissionTimeBuilder()
        optional .google.protobuf.Timestamp missionTime = 10;
      • getMissionTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getMissionTimeOrBuilder()
        optional .google.protobuf.Timestamp missionTime = 10;
        Specified by:
        getMissionTimeOrBuilder in interface YamcsInstanceOrBuilder
      • getLabelsCount

        public int getLabelsCount()
        Description copied from interface: YamcsInstanceOrBuilder
         Labels assigned to this instance. Each entry is keyed by the tag name
         of the label. The value represent the label value for that tag.
         
        map<string, string> labels = 12;
        Specified by:
        getLabelsCount in interface YamcsInstanceOrBuilder
      • containsLabels

        public boolean containsLabels​(String key)
         Labels assigned to this instance. Each entry is keyed by the tag name
         of the label. The value represent the label value for that tag.
         
        map<string, string> labels = 12;
        Specified by:
        containsLabels in interface YamcsInstanceOrBuilder
      • getLabelsMap

        public Map<String,​String> getLabelsMap()
         Labels assigned to this instance. Each entry is keyed by the tag name
         of the label. The value represent the label value for that tag.
         
        map<string, string> labels = 12;
        Specified by:
        getLabelsMap in interface YamcsInstanceOrBuilder
      • getLabelsOrDefault

        public String getLabelsOrDefault​(String key,
                                         String defaultValue)
         Labels assigned to this instance. Each entry is keyed by the tag name
         of the label. The value represent the label value for that tag.
         
        map<string, string> labels = 12;
        Specified by:
        getLabelsOrDefault in interface YamcsInstanceOrBuilder
      • getLabelsOrThrow

        public String getLabelsOrThrow​(String key)
         Labels assigned to this instance. Each entry is keyed by the tag name
         of the label. The value represent the label value for that tag.
         
        map<string, string> labels = 12;
        Specified by:
        getLabelsOrThrow in interface YamcsInstanceOrBuilder
      • removeLabels

        public YamcsInstance.Builder removeLabels​(String key)
         Labels assigned to this instance. Each entry is keyed by the tag name
         of the label. The value represent the label value for that tag.
         
        map<string, string> labels = 12;
      • getMutableLabels

        @Deprecated
        public Map<String,​String> getMutableLabels()
        Deprecated.
        Use alternate mutation accessors instead.
      • putLabels

        public YamcsInstance.Builder putLabels​(String key,
                                               String value)
         Labels assigned to this instance. Each entry is keyed by the tag name
         of the label. The value represent the label value for that tag.
         
        map<string, string> labels = 12;
      • putAllLabels

        public YamcsInstance.Builder putAllLabels​(Map<String,​String> values)
         Labels assigned to this instance. Each entry is keyed by the tag name
         of the label. The value represent the label value for that tag.
         
        map<string, string> labels = 12;
      • getCapabilitiesList

        public com.google.protobuf.ProtocolStringList getCapabilitiesList()
         Feature capability hints for client use
         
        repeated string capabilities = 13;
        Specified by:
        getCapabilitiesList in interface YamcsInstanceOrBuilder
      • getCapabilitiesBytes

        public com.google.protobuf.ByteString getCapabilitiesBytes​(int index)
         Feature capability hints for client use
         
        repeated string capabilities = 13;
        Specified by:
        getCapabilitiesBytes in interface YamcsInstanceOrBuilder
      • setCapabilities

        public YamcsInstance.Builder setCapabilities​(int index,
                                                     String value)
         Feature capability hints for client use
         
        repeated string capabilities = 13;
      • addCapabilities

        public YamcsInstance.Builder addCapabilities​(String value)
         Feature capability hints for client use
         
        repeated string capabilities = 13;
      • clearCapabilities

        public YamcsInstance.Builder clearCapabilities()
         Feature capability hints for client use
         
        repeated string capabilities = 13;
      • addCapabilitiesBytes

        public YamcsInstance.Builder addCapabilitiesBytes​(com.google.protobuf.ByteString value)
         Feature capability hints for client use
         
        repeated string capabilities = 13;
      • hasTemplate

        public boolean hasTemplate()
         Name of the template, if this instance was generated  
         
        optional string template = 14;
        Specified by:
        hasTemplate in interface YamcsInstanceOrBuilder
      • getTemplateBytes

        public com.google.protobuf.ByteString getTemplateBytes()
         Name of the template, if this instance was generated  
         
        optional string template = 14;
        Specified by:
        getTemplateBytes in interface YamcsInstanceOrBuilder
      • setTemplate

        public YamcsInstance.Builder setTemplate​(String value)
         Name of the template, if this instance was generated  
         
        optional string template = 14;
      • clearTemplate

        public YamcsInstance.Builder clearTemplate()
         Name of the template, if this instance was generated  
         
        optional string template = 14;
      • setTemplateBytes

        public YamcsInstance.Builder setTemplateBytes​(com.google.protobuf.ByteString value)
         Name of the template, if this instance was generated  
         
        optional string template = 14;
      • containsTemplateArgs

        public boolean containsTemplateArgs​(String key)
         Arguments used during template processing, if this instance
         was generated
         
        map<string, string> templateArgs = 15;
        Specified by:
        containsTemplateArgs in interface YamcsInstanceOrBuilder
      • removeTemplateArgs

        public YamcsInstance.Builder removeTemplateArgs​(String key)
         Arguments used during template processing, if this instance
         was generated
         
        map<string, string> templateArgs = 15;
      • getMutableTemplateArgs

        @Deprecated
        public Map<String,​String> getMutableTemplateArgs()
        Deprecated.
        Use alternate mutation accessors instead.
      • putTemplateArgs

        public YamcsInstance.Builder putTemplateArgs​(String key,
                                                     String value)
         Arguments used during template processing, if this instance
         was generated
         
        map<string, string> templateArgs = 15;
      • putAllTemplateArgs

        public YamcsInstance.Builder putAllTemplateArgs​(Map<String,​String> values)
         Arguments used during template processing, if this instance
         was generated
         
        map<string, string> templateArgs = 15;
      • hasTemplateAvailable

        public boolean hasTemplateAvailable()
         Whether the template is stil available
         
        optional bool templateAvailable = 16;
        Specified by:
        hasTemplateAvailable in interface YamcsInstanceOrBuilder
      • getTemplateAvailable

        public boolean getTemplateAvailable()
         Whether the template is stil available
         
        optional bool templateAvailable = 16;
        Specified by:
        getTemplateAvailable in interface YamcsInstanceOrBuilder
      • setTemplateAvailable

        public YamcsInstance.Builder setTemplateAvailable​(boolean value)
         Whether the template is stil available
         
        optional bool templateAvailable = 16;
      • clearTemplateAvailable

        public YamcsInstance.Builder clearTemplateAvailable()
         Whether the template is stil available
         
        optional bool templateAvailable = 16;
      • hasTemplateChanged

        public boolean hasTemplateChanged()
         Whether the template has changed since this instance was
         generated
         
        optional bool templateChanged = 17;
        Specified by:
        hasTemplateChanged in interface YamcsInstanceOrBuilder
      • getTemplateChanged

        public boolean getTemplateChanged()
         Whether the template has changed since this instance was
         generated
         
        optional bool templateChanged = 17;
        Specified by:
        getTemplateChanged in interface YamcsInstanceOrBuilder
      • setTemplateChanged

        public YamcsInstance.Builder setTemplateChanged​(boolean value)
         Whether the template has changed since this instance was
         generated
         
        optional bool templateChanged = 17;
      • clearTemplateChanged

        public YamcsInstance.Builder clearTemplateChanged()
         Whether the template has changed since this instance was
         generated
         
        optional bool templateChanged = 17;
      • setUnknownFields

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

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