Class TemplateVariable.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<TemplateVariable.Builder>
org.yamcs.protobuf.TemplateVariable.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, TemplateVariableOrBuilder
Enclosing class:
TemplateVariable

public static final class TemplateVariable.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TemplateVariable.Builder> implements TemplateVariableOrBuilder
Protobuf type yamcs.protobuf.instances.TemplateVariable
  • 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<TemplateVariable.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public TemplateVariable.Builder mergeFrom(TemplateVariable other)
    • isInitialized

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

      public TemplateVariable.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<TemplateVariable.Builder>
      Throws:
      IOException
    • hasName

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

      public String getName()
       Variable name. 
       
      optional string name = 1;
      Specified by:
      getName in interface TemplateVariableOrBuilder
      Returns:
      The name.
    • getNameBytes

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

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

      public TemplateVariable.Builder clearName()
       Variable name. 
       
      optional string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public TemplateVariable.Builder setNameBytes(com.google.protobuf.ByteString value)
       Variable name. 
       
      optional string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasLabel

      public boolean hasLabel()
       Verbose name for use in UI forms
       
      optional string label = 6;
      Specified by:
      hasLabel in interface TemplateVariableOrBuilder
      Returns:
      Whether the label field is set.
    • getLabel

      public String getLabel()
       Verbose name for use in UI forms
       
      optional string label = 6;
      Specified by:
      getLabel in interface TemplateVariableOrBuilder
      Returns:
      The label.
    • getLabelBytes

      public com.google.protobuf.ByteString getLabelBytes()
       Verbose name for use in UI forms
       
      optional string label = 6;
      Specified by:
      getLabelBytes in interface TemplateVariableOrBuilder
      Returns:
      The bytes for label.
    • setLabel

      public TemplateVariable.Builder setLabel(String value)
       Verbose name for use in UI forms
       
      optional string label = 6;
      Parameters:
      value - The label to set.
      Returns:
      This builder for chaining.
    • clearLabel

      public TemplateVariable.Builder clearLabel()
       Verbose name for use in UI forms
       
      optional string label = 6;
      Returns:
      This builder for chaining.
    • setLabelBytes

      public TemplateVariable.Builder setLabelBytes(com.google.protobuf.ByteString value)
       Verbose name for use in UI forms
       
      optional string label = 6;
      Parameters:
      value - The bytes for label to set.
      Returns:
      This builder for chaining.
    • hasType

      public boolean hasType()
       Type of variable (Java class extending org.yamcs.templating.Variable)
       
      optional string type = 4;
      Specified by:
      hasType in interface TemplateVariableOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      public String getType()
       Type of variable (Java class extending org.yamcs.templating.Variable)
       
      optional string type = 4;
      Specified by:
      getType in interface TemplateVariableOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       Type of variable (Java class extending org.yamcs.templating.Variable)
       
      optional string type = 4;
      Specified by:
      getTypeBytes in interface TemplateVariableOrBuilder
      Returns:
      The bytes for type.
    • setType

      public TemplateVariable.Builder setType(String value)
       Type of variable (Java class extending org.yamcs.templating.Variable)
       
      optional string type = 4;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public TemplateVariable.Builder clearType()
       Type of variable (Java class extending org.yamcs.templating.Variable)
       
      optional string type = 4;
      Returns:
      This builder for chaining.
    • setTypeBytes

      public TemplateVariable.Builder setTypeBytes(com.google.protobuf.ByteString value)
       Type of variable (Java class extending org.yamcs.templating.Variable)
       
      optional string type = 4;
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • hasHelp

      public boolean hasHelp()
       Verbose user guidance (HTML)
       
      optional string help = 2;
      Specified by:
      hasHelp in interface TemplateVariableOrBuilder
      Returns:
      Whether the help field is set.
    • getHelp

      public String getHelp()
       Verbose user guidance (HTML)
       
      optional string help = 2;
      Specified by:
      getHelp in interface TemplateVariableOrBuilder
      Returns:
      The help.
    • getHelpBytes

      public com.google.protobuf.ByteString getHelpBytes()
       Verbose user guidance (HTML)
       
      optional string help = 2;
      Specified by:
      getHelpBytes in interface TemplateVariableOrBuilder
      Returns:
      The bytes for help.
    • setHelp

      public TemplateVariable.Builder setHelp(String value)
       Verbose user guidance (HTML)
       
      optional string help = 2;
      Parameters:
      value - The help to set.
      Returns:
      This builder for chaining.
    • clearHelp

      public TemplateVariable.Builder clearHelp()
       Verbose user guidance (HTML)
       
      optional string help = 2;
      Returns:
      This builder for chaining.
    • setHelpBytes

      public TemplateVariable.Builder setHelpBytes(com.google.protobuf.ByteString value)
       Verbose user guidance (HTML)
       
      optional string help = 2;
      Parameters:
      value - The bytes for help to set.
      Returns:
      This builder for chaining.
    • hasRequired

      public boolean hasRequired()
       Whether this variable is required input
       
      optional bool required = 3;
      Specified by:
      hasRequired in interface TemplateVariableOrBuilder
      Returns:
      Whether the required field is set.
    • getRequired

      public boolean getRequired()
       Whether this variable is required input
       
      optional bool required = 3;
      Specified by:
      getRequired in interface TemplateVariableOrBuilder
      Returns:
      The required.
    • setRequired

      public TemplateVariable.Builder setRequired(boolean value)
       Whether this variable is required input
       
      optional bool required = 3;
      Parameters:
      value - The required to set.
      Returns:
      This builder for chaining.
    • clearRequired

      public TemplateVariable.Builder clearRequired()
       Whether this variable is required input
       
      optional bool required = 3;
      Returns:
      This builder for chaining.
    • getChoicesList

      public com.google.protobuf.ProtocolStringList getChoicesList()
       List of valid choices
       
      repeated string choices = 5;
      Specified by:
      getChoicesList in interface TemplateVariableOrBuilder
      Returns:
      A list containing the choices.
    • getChoicesCount

      public int getChoicesCount()
       List of valid choices
       
      repeated string choices = 5;
      Specified by:
      getChoicesCount in interface TemplateVariableOrBuilder
      Returns:
      The count of choices.
    • getChoices

      public String getChoices(int index)
       List of valid choices
       
      repeated string choices = 5;
      Specified by:
      getChoices in interface TemplateVariableOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The choices at the given index.
    • getChoicesBytes

      public com.google.protobuf.ByteString getChoicesBytes(int index)
       List of valid choices
       
      repeated string choices = 5;
      Specified by:
      getChoicesBytes in interface TemplateVariableOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the choices at the given index.
    • setChoices

      public TemplateVariable.Builder setChoices(int index, String value)
       List of valid choices
       
      repeated string choices = 5;
      Parameters:
      index - The index to set the value at.
      value - The choices to set.
      Returns:
      This builder for chaining.
    • addChoices

      public TemplateVariable.Builder addChoices(String value)
       List of valid choices
       
      repeated string choices = 5;
      Parameters:
      value - The choices to add.
      Returns:
      This builder for chaining.
    • addAllChoices

      public TemplateVariable.Builder addAllChoices(Iterable<String> values)
       List of valid choices
       
      repeated string choices = 5;
      Parameters:
      values - The choices to add.
      Returns:
      This builder for chaining.
    • clearChoices

      public TemplateVariable.Builder clearChoices()
       List of valid choices
       
      repeated string choices = 5;
      Returns:
      This builder for chaining.
    • addChoicesBytes

      public TemplateVariable.Builder addChoicesBytes(com.google.protobuf.ByteString value)
       List of valid choices
       
      repeated string choices = 5;
      Parameters:
      value - The bytes of the choices to add.
      Returns:
      This builder for chaining.
    • hasInitial

      public boolean hasInitial()
       Initial value for use in UI forms
       
      optional string initial = 7;
      Specified by:
      hasInitial in interface TemplateVariableOrBuilder
      Returns:
      Whether the initial field is set.
    • getInitial

      public String getInitial()
       Initial value for use in UI forms
       
      optional string initial = 7;
      Specified by:
      getInitial in interface TemplateVariableOrBuilder
      Returns:
      The initial.
    • getInitialBytes

      public com.google.protobuf.ByteString getInitialBytes()
       Initial value for use in UI forms
       
      optional string initial = 7;
      Specified by:
      getInitialBytes in interface TemplateVariableOrBuilder
      Returns:
      The bytes for initial.
    • setInitial

      public TemplateVariable.Builder setInitial(String value)
       Initial value for use in UI forms
       
      optional string initial = 7;
      Parameters:
      value - The initial to set.
      Returns:
      This builder for chaining.
    • clearInitial

      public TemplateVariable.Builder clearInitial()
       Initial value for use in UI forms
       
      optional string initial = 7;
      Returns:
      This builder for chaining.
    • setInitialBytes

      public TemplateVariable.Builder setInitialBytes(com.google.protobuf.ByteString value)
       Initial value for use in UI forms
       
      optional string initial = 7;
      Parameters:
      value - The bytes for initial to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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