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 Details

    • 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<CreateInstanceRequest.Builder>
    • internalGetMutableMapField

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

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

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

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

      public CreateInstanceRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<CreateInstanceRequest.Builder>
    • setField

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

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

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

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

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

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

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 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<CreateInstanceRequest.Builder>
      Throws:
      IOException
    • hasName

      public boolean hasName()
       **Required.** The name of the instance.
       
      optional string name = 1;
      Specified by:
      hasName in interface CreateInstanceRequestOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       **Required.** The name of the instance.
       
      optional string name = 1;
      Specified by:
      getName in interface CreateInstanceRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       **Required.** The name of the instance.
       
      optional string name = 1;
      Specified by:
      getNameBytes in interface CreateInstanceRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public CreateInstanceRequest.Builder setName(String value)
       **Required.** The name of the instance.
       
      optional string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public CreateInstanceRequest.Builder clearName()
       **Required.** The name of the instance.
       
      optional string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public CreateInstanceRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       **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 interface CreateInstanceRequestOrBuilder
      Returns:
      Whether the template field is set.
    • getTemplate

      public String getTemplate()
       **Required.** The name of the template for this instance.
       
      optional string template = 2;
      Specified by:
      getTemplate in interface CreateInstanceRequestOrBuilder
      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 interface CreateInstanceRequestOrBuilder
      Returns:
      The bytes for template.
    • setTemplate

      public CreateInstanceRequest.Builder setTemplate(String value)
       **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

      public CreateInstanceRequest.Builder clearTemplate()
       **Required.** The name of the template for this instance.
       
      optional string template = 2;
      Returns:
      This builder for chaining.
    • setTemplateBytes

      public CreateInstanceRequest.Builder setTemplateBytes(com.google.protobuf.ByteString value)
       **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 interface CreateInstanceRequestOrBuilder
    • containsTemplateArgs

      public boolean containsTemplateArgs(String key)
       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 interface CreateInstanceRequestOrBuilder
    • getTemplateArgs

      @Deprecated public Map<String,String> getTemplateArgs()
      Deprecated.
      Specified by:
      getTemplateArgs in interface CreateInstanceRequestOrBuilder
    • getTemplateArgsMap

      public Map<String,String> 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 interface CreateInstanceRequestOrBuilder
    • getTemplateArgsOrDefault

      public String getTemplateArgsOrDefault(String key, String defaultValue)
       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 interface CreateInstanceRequestOrBuilder
    • getTemplateArgsOrThrow

      public String getTemplateArgsOrThrow(String key)
       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 interface CreateInstanceRequestOrBuilder
    • clearTemplateArgs

      public CreateInstanceRequest.Builder clearTemplateArgs()
    • removeTemplateArgs

      public CreateInstanceRequest.Builder removeTemplateArgs(String key)
       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 public Map<String,String> getMutableTemplateArgs()
      Deprecated.
      Use alternate mutation accessors instead.
    • putTemplateArgs

      public CreateInstanceRequest.Builder putTemplateArgs(String key, String value)
       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

      public CreateInstanceRequest.Builder putAllTemplateArgs(Map<String,String> values)
       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 interface CreateInstanceRequestOrBuilder
    • 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 = 4;
      Specified by:
      containsLabels in interface CreateInstanceRequestOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface CreateInstanceRequestOrBuilder
    • 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 = 4;
      Specified by:
      getLabelsMap in interface CreateInstanceRequestOrBuilder
    • 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 = 4;
      Specified by:
      getLabelsOrDefault in interface CreateInstanceRequestOrBuilder
    • 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 = 4;
      Specified by:
      getLabelsOrThrow in interface CreateInstanceRequestOrBuilder
    • clearLabels

      public CreateInstanceRequest.Builder clearLabels()
    • removeLabels

      public CreateInstanceRequest.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 = 4;
    • getMutableLabels

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

      public CreateInstanceRequest.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 = 4;
    • putAllLabels

      public CreateInstanceRequest.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 = 4;
    • setUnknownFields

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

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