Package org.yamcs.protobuf
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 Summary
Modifier and TypeMethodDescriptionaddAllChoices
(Iterable<String> values) List of valid choicesaddChoices
(String value) List of valid choicesaddChoicesBytes
(com.google.protobuf.ByteString value) List of valid choicesaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
List of valid choicesclearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Verbose user guidance (HTML)Initial value for use in UI formsVerbose name for use in UI formsVariable name.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Whether this variable is required inputType of variable (Java class extending org.yamcs.templating.Variable)clone()
getChoices
(int index) List of valid choicescom.google.protobuf.ByteString
getChoicesBytes
(int index) List of valid choicesint
List of valid choicescom.google.protobuf.ProtocolStringList
List of valid choicesstatic final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getHelp()
Verbose user guidance (HTML)com.google.protobuf.ByteString
Verbose user guidance (HTML)Initial value for use in UI formscom.google.protobuf.ByteString
Initial value for use in UI formsgetLabel()
Verbose name for use in UI formscom.google.protobuf.ByteString
Verbose name for use in UI formsgetName()
Variable name.com.google.protobuf.ByteString
Variable name.boolean
Whether this variable is required inputgetType()
Type of variable (Java class extending org.yamcs.templating.Variable)com.google.protobuf.ByteString
Type of variable (Java class extending org.yamcs.templating.Variable)boolean
hasHelp()
Verbose user guidance (HTML)boolean
Initial value for use in UI formsboolean
hasLabel()
Verbose name for use in UI formsboolean
hasName()
Variable name.boolean
Whether this variable is required inputboolean
hasType()
Type of variable (Java class extending org.yamcs.templating.Variable)protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(TemplateVariable other) final TemplateVariable.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setChoices
(int index, String value) List of valid choicesVerbose user guidance (HTML)setHelpBytes
(com.google.protobuf.ByteString value) Verbose user guidance (HTML)setInitial
(String value) Initial value for use in UI formssetInitialBytes
(com.google.protobuf.ByteString value) Initial value for use in UI formsVerbose name for use in UI formssetLabelBytes
(com.google.protobuf.ByteString value) Verbose name for use in UI formsVariable name.setNameBytes
(com.google.protobuf.ByteString value) Variable name.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRequired
(boolean value) Whether this variable is required inputType of variable (Java class extending org.yamcs.templating.Variable)setTypeBytes
(com.google.protobuf.ByteString value) Type of variable (Java class extending org.yamcs.templating.Variable)final TemplateVariable.Builder
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<TemplateVariable.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<TemplateVariable.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<TemplateVariable.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<TemplateVariable.Builder>
-
setField
public TemplateVariable.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TemplateVariable.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TemplateVariable.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TemplateVariable.Builder>
-
addRepeatedField
public TemplateVariable.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TemplateVariable.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TemplateVariable.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TemplateVariable.Builder>
- Throws:
IOException
-
hasName
public boolean hasName()Variable name.
optional string name = 1;
- Specified by:
hasName
in interfaceTemplateVariableOrBuilder
- Returns:
- Whether the name field is set.
-
getName
Variable name.
optional string name = 1;
- Specified by:
getName
in interfaceTemplateVariableOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Variable name.
optional string name = 1;
- Specified by:
getNameBytes
in interfaceTemplateVariableOrBuilder
- Returns:
- The bytes for name.
-
setName
Variable name.
optional string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
Variable name.
optional string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
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 interfaceTemplateVariableOrBuilder
- Returns:
- Whether the label field is set.
-
getLabel
Verbose name for use in UI forms
optional string label = 6;
- Specified by:
getLabel
in interfaceTemplateVariableOrBuilder
- 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 interfaceTemplateVariableOrBuilder
- Returns:
- The bytes for label.
-
setLabel
Verbose name for use in UI forms
optional string label = 6;
- Parameters:
value
- The label to set.- Returns:
- This builder for chaining.
-
clearLabel
Verbose name for use in UI forms
optional string label = 6;
- Returns:
- This builder for chaining.
-
setLabelBytes
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 interfaceTemplateVariableOrBuilder
- Returns:
- Whether the type field is set.
-
getType
Type of variable (Java class extending org.yamcs.templating.Variable)
optional string type = 4;
- Specified by:
getType
in interfaceTemplateVariableOrBuilder
- 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 interfaceTemplateVariableOrBuilder
- Returns:
- The bytes for type.
-
setType
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
Type of variable (Java class extending org.yamcs.templating.Variable)
optional string type = 4;
- Returns:
- This builder for chaining.
-
setTypeBytes
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 interfaceTemplateVariableOrBuilder
- Returns:
- Whether the help field is set.
-
getHelp
Verbose user guidance (HTML)
optional string help = 2;
- Specified by:
getHelp
in interfaceTemplateVariableOrBuilder
- Returns:
- The help.
-
getHelpBytes
public com.google.protobuf.ByteString getHelpBytes()Verbose user guidance (HTML)
optional string help = 2;
- Specified by:
getHelpBytes
in interfaceTemplateVariableOrBuilder
- Returns:
- The bytes for help.
-
setHelp
Verbose user guidance (HTML)
optional string help = 2;
- Parameters:
value
- The help to set.- Returns:
- This builder for chaining.
-
clearHelp
Verbose user guidance (HTML)
optional string help = 2;
- Returns:
- This builder for chaining.
-
setHelpBytes
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 interfaceTemplateVariableOrBuilder
- 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 interfaceTemplateVariableOrBuilder
- Returns:
- The required.
-
setRequired
Whether this variable is required input
optional bool required = 3;
- Parameters:
value
- The required to set.- Returns:
- This builder for chaining.
-
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 interfaceTemplateVariableOrBuilder
- Returns:
- A list containing the choices.
-
getChoicesCount
public int getChoicesCount()List of valid choices
repeated string choices = 5;
- Specified by:
getChoicesCount
in interfaceTemplateVariableOrBuilder
- Returns:
- The count of choices.
-
getChoices
List of valid choices
repeated string choices = 5;
- Specified by:
getChoices
in interfaceTemplateVariableOrBuilder
- 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 interfaceTemplateVariableOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the choices at the given index.
-
setChoices
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
List of valid choices
repeated string choices = 5;
- Parameters:
value
- The choices to add.- Returns:
- This builder for chaining.
-
addAllChoices
List of valid choices
repeated string choices = 5;
- Parameters:
values
- The choices to add.- Returns:
- This builder for chaining.
-
clearChoices
List of valid choices
repeated string choices = 5;
- Returns:
- This builder for chaining.
-
addChoicesBytes
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 interfaceTemplateVariableOrBuilder
- Returns:
- Whether the initial field is set.
-
getInitial
Initial value for use in UI forms
optional string initial = 7;
- Specified by:
getInitial
in interfaceTemplateVariableOrBuilder
- 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 interfaceTemplateVariableOrBuilder
- Returns:
- The bytes for initial.
-
setInitial
Initial value for use in UI forms
optional string initial = 7;
- Parameters:
value
- The initial to set.- Returns:
- This builder for chaining.
-
clearInitial
Initial value for use in UI forms
optional string initial = 7;
- Returns:
- This builder for chaining.
-
setInitialBytes
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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TemplateVariable.Builder>
-
mergeUnknownFields
public final TemplateVariable.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TemplateVariable.Builder>
-