Package org.yamcs.protobuf
Class CreateInstanceRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<CreateInstanceRequest.Builder>
org.yamcs.protobuf.CreateInstanceRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,CreateInstanceRequestOrBuilder
- Enclosing class:
- CreateInstanceRequest
public static final class CreateInstanceRequest.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<CreateInstanceRequest.Builder>
implements CreateInstanceRequestOrBuilder
Protobuf type
yamcs.protobuf.instances.CreateInstanceRequest
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) **Required.** The name of the instance.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) **Required.** The name of the template for this instance.clone()
boolean
containsLabels
(String key) Labels assigned to this instance.boolean
Arguments for substitution in the template definition.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Deprecated.int
Labels assigned to this instance.Labels assigned to this instance.getLabelsOrDefault
(String key, String defaultValue) Labels assigned to this instance.getLabelsOrThrow
(String key) Labels assigned to this instance.Deprecated.Deprecated.getName()
**Required.** The name of the instance.com.google.protobuf.ByteString
**Required.** The name of the instance.**Required.** The name of the template for this instance.Deprecated.int
Arguments for substitution in the template definition.Arguments for substitution in the template definition.getTemplateArgsOrDefault
(String key, String defaultValue) Arguments for substitution in the template definition.Arguments for substitution in the template definition.com.google.protobuf.ByteString
**Required.** The name of the template for this instance.boolean
hasName()
**Required.** The name of the instance.boolean
**Required.** The name of the template for this instance.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
protected com.google.protobuf.MapField
internalGetMapField
(int number) protected com.google.protobuf.MapField
internalGetMutableMapField
(int number) final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(CreateInstanceRequest other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) putAllLabels
(Map<String, String> values) Labels assigned to this instance.putAllTemplateArgs
(Map<String, String> values) Arguments for substitution in the template definition.Labels assigned to this instance.putTemplateArgs
(String key, String value) Arguments for substitution in the template definition.removeLabels
(String key) Labels assigned to this instance.removeTemplateArgs
(String key) Arguments for substitution in the template definition.**Required.** The name of the instance.setNameBytes
(com.google.protobuf.ByteString value) **Required.** The name of the instance.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTemplate
(String value) **Required.** The name of the template for this instance.setTemplateBytes
(com.google.protobuf.ByteString value) **Required.** The name of the template for this instance.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, 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() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number) - Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateInstanceRequest.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number) - Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateInstanceRequest.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateInstanceRequest.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<CreateInstanceRequest.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<CreateInstanceRequest.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<CreateInstanceRequest.Builder>
-
setField
public CreateInstanceRequest.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<CreateInstanceRequest.Builder>
-
clearField
public CreateInstanceRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateInstanceRequest.Builder>
-
clearOneof
public CreateInstanceRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateInstanceRequest.Builder>
-
setRepeatedField
public CreateInstanceRequest.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<CreateInstanceRequest.Builder>
-
addRepeatedField
public CreateInstanceRequest.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<CreateInstanceRequest.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CreateInstanceRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateInstanceRequest.Builder>
-
mergeFrom
public CreateInstanceRequest.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<CreateInstanceRequest.Builder>
- Throws:
IOException
-
hasName
public boolean hasName()**Required.** The name of the instance.
optional string name = 1;
- Specified by:
hasName
in interfaceCreateInstanceRequestOrBuilder
- Returns:
- Whether the name field is set.
-
getName
**Required.** The name of the instance.
optional string name = 1;
- Specified by:
getName
in interfaceCreateInstanceRequestOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()**Required.** The name of the instance.
optional string name = 1;
- Specified by:
getNameBytes
in interfaceCreateInstanceRequestOrBuilder
- Returns:
- The bytes for name.
-
setName
**Required.** The name of the instance.
optional string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
**Required.** The name of the instance.
optional string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
**Required.** The name of the instance.
optional string name = 1;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasTemplate
public boolean hasTemplate()**Required.** The name of the template for this instance.
optional string template = 2;
- Specified by:
hasTemplate
in interfaceCreateInstanceRequestOrBuilder
- Returns:
- Whether the template field is set.
-
getTemplate
**Required.** The name of the template for this instance.
optional string template = 2;
- Specified by:
getTemplate
in interfaceCreateInstanceRequestOrBuilder
- Returns:
- The template.
-
getTemplateBytes
public com.google.protobuf.ByteString getTemplateBytes()**Required.** The name of the template for this instance.
optional string template = 2;
- Specified by:
getTemplateBytes
in interfaceCreateInstanceRequestOrBuilder
- Returns:
- The bytes for template.
-
setTemplate
**Required.** The name of the template for this instance.
optional string template = 2;
- Parameters:
value
- The template to set.- Returns:
- This builder for chaining.
-
clearTemplate
**Required.** The name of the template for this instance.
optional string template = 2;
- Returns:
- This builder for chaining.
-
setTemplateBytes
**Required.** The name of the template for this instance.
optional string template = 2;
- Parameters:
value
- The bytes for template to set.- Returns:
- This builder for chaining.
-
getTemplateArgsCount
public int getTemplateArgsCount()Description copied from interface:CreateInstanceRequestOrBuilder
Arguments for substitution in the template definition. Each entry is keyed by the argument name. The value must be a string.
map<string, string> templateArgs = 3;
- Specified by:
getTemplateArgsCount
in interfaceCreateInstanceRequestOrBuilder
-
containsTemplateArgs
Arguments for substitution in the template definition. Each entry is keyed by the argument name. The value must be a string.
map<string, string> templateArgs = 3;
- Specified by:
containsTemplateArgs
in interfaceCreateInstanceRequestOrBuilder
-
getTemplateArgs
Deprecated.UsegetTemplateArgsMap()
instead.- Specified by:
getTemplateArgs
in interfaceCreateInstanceRequestOrBuilder
-
getTemplateArgsMap
Arguments for substitution in the template definition. Each entry is keyed by the argument name. The value must be a string.
map<string, string> templateArgs = 3;
- Specified by:
getTemplateArgsMap
in interfaceCreateInstanceRequestOrBuilder
-
getTemplateArgsOrDefault
Arguments for substitution in the template definition. Each entry is keyed by the argument name. The value must be a string.
map<string, string> templateArgs = 3;
- Specified by:
getTemplateArgsOrDefault
in interfaceCreateInstanceRequestOrBuilder
-
getTemplateArgsOrThrow
Arguments for substitution in the template definition. Each entry is keyed by the argument name. The value must be a string.
map<string, string> templateArgs = 3;
- Specified by:
getTemplateArgsOrThrow
in interfaceCreateInstanceRequestOrBuilder
-
clearTemplateArgs
-
removeTemplateArgs
Arguments for substitution in the template definition. Each entry is keyed by the argument name. The value must be a string.
map<string, string> templateArgs = 3;
-
getMutableTemplateArgs
Deprecated.Use alternate mutation accessors instead. -
putTemplateArgs
Arguments for substitution in the template definition. Each entry is keyed by the argument name. The value must be a string.
map<string, string> templateArgs = 3;
-
putAllTemplateArgs
Arguments for substitution in the template definition. Each entry is keyed by the argument name. The value must be a string.
map<string, string> templateArgs = 3;
-
getLabelsCount
public int getLabelsCount()Description copied from interface:CreateInstanceRequestOrBuilder
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 = 4;
- Specified by:
getLabelsCount
in interfaceCreateInstanceRequestOrBuilder
-
containsLabels
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 = 4;
- Specified by:
containsLabels
in interfaceCreateInstanceRequestOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceCreateInstanceRequestOrBuilder
-
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 = 4;
- Specified by:
getLabelsMap
in interfaceCreateInstanceRequestOrBuilder
-
getLabelsOrDefault
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 = 4;
- Specified by:
getLabelsOrDefault
in interfaceCreateInstanceRequestOrBuilder
-
getLabelsOrThrow
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 = 4;
- Specified by:
getLabelsOrThrow
in interfaceCreateInstanceRequestOrBuilder
-
clearLabels
-
removeLabels
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 = 4;
-
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
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 = 4;
-
putAllLabels
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 = 4;
-
setUnknownFields
public final CreateInstanceRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateInstanceRequest.Builder>
-
mergeUnknownFields
public final CreateInstanceRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateInstanceRequest.Builder>
-