Class UpdateCloudInstanceAction.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<UpdateCloudInstanceAction.Builder>
com.google.spanner.executor.v1.UpdateCloudInstanceAction.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, UpdateCloudInstanceActionOrBuilder, Cloneable
Enclosing class:
UpdateCloudInstanceAction

public static final class UpdateCloudInstanceAction.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<UpdateCloudInstanceAction.Builder> implements UpdateCloudInstanceActionOrBuilder
 Action that updates a Cloud Spanner instance.
 
Protobuf type google.spanner.executor.v1.UpdateCloudInstanceAction
  • 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<UpdateCloudInstanceAction.Builder>
    • internalGetMutableMapField

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

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

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

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

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

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

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

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

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

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

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

      public UpdateCloudInstanceAction.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<UpdateCloudInstanceAction.Builder>
      Throws:
      IOException
    • getInstanceId

      public String getInstanceId()
       Cloud instance ID (not path), e.g. "test-instance".
       
      string instance_id = 1;
      Specified by:
      getInstanceId in interface UpdateCloudInstanceActionOrBuilder
      Returns:
      The instanceId.
    • getInstanceIdBytes

      public com.google.protobuf.ByteString getInstanceIdBytes()
       Cloud instance ID (not path), e.g. "test-instance".
       
      string instance_id = 1;
      Specified by:
      getInstanceIdBytes in interface UpdateCloudInstanceActionOrBuilder
      Returns:
      The bytes for instanceId.
    • setInstanceId

      public UpdateCloudInstanceAction.Builder setInstanceId(String value)
       Cloud instance ID (not path), e.g. "test-instance".
       
      string instance_id = 1;
      Parameters:
      value - The instanceId to set.
      Returns:
      This builder for chaining.
    • clearInstanceId

      public UpdateCloudInstanceAction.Builder clearInstanceId()
       Cloud instance ID (not path), e.g. "test-instance".
       
      string instance_id = 1;
      Returns:
      This builder for chaining.
    • setInstanceIdBytes

      public UpdateCloudInstanceAction.Builder setInstanceIdBytes(com.google.protobuf.ByteString value)
       Cloud instance ID (not path), e.g. "test-instance".
       
      string instance_id = 1;
      Parameters:
      value - The bytes for instanceId to set.
      Returns:
      This builder for chaining.
    • getProjectId

      public String getProjectId()
       Cloud project ID, e.g. "spanner-cloud-systest".
       
      string project_id = 2;
      Specified by:
      getProjectId in interface UpdateCloudInstanceActionOrBuilder
      Returns:
      The projectId.
    • getProjectIdBytes

      public com.google.protobuf.ByteString getProjectIdBytes()
       Cloud project ID, e.g. "spanner-cloud-systest".
       
      string project_id = 2;
      Specified by:
      getProjectIdBytes in interface UpdateCloudInstanceActionOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

      public UpdateCloudInstanceAction.Builder setProjectId(String value)
       Cloud project ID, e.g. "spanner-cloud-systest".
       
      string project_id = 2;
      Parameters:
      value - The projectId to set.
      Returns:
      This builder for chaining.
    • clearProjectId

      public UpdateCloudInstanceAction.Builder clearProjectId()
       Cloud project ID, e.g. "spanner-cloud-systest".
       
      string project_id = 2;
      Returns:
      This builder for chaining.
    • setProjectIdBytes

      public UpdateCloudInstanceAction.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
       Cloud project ID, e.g. "spanner-cloud-systest".
       
      string project_id = 2;
      Parameters:
      value - The bytes for projectId to set.
      Returns:
      This builder for chaining.
    • hasDisplayName

      public boolean hasDisplayName()
       The descriptive name for this instance as it appears in UIs.
       Must be unique per project and between 4 and 30 characters in length.
       
      optional string display_name = 3;
      Specified by:
      hasDisplayName in interface UpdateCloudInstanceActionOrBuilder
      Returns:
      Whether the displayName field is set.
    • getDisplayName

      public String getDisplayName()
       The descriptive name for this instance as it appears in UIs.
       Must be unique per project and between 4 and 30 characters in length.
       
      optional string display_name = 3;
      Specified by:
      getDisplayName in interface UpdateCloudInstanceActionOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       The descriptive name for this instance as it appears in UIs.
       Must be unique per project and between 4 and 30 characters in length.
       
      optional string display_name = 3;
      Specified by:
      getDisplayNameBytes in interface UpdateCloudInstanceActionOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public UpdateCloudInstanceAction.Builder setDisplayName(String value)
       The descriptive name for this instance as it appears in UIs.
       Must be unique per project and between 4 and 30 characters in length.
       
      optional string display_name = 3;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public UpdateCloudInstanceAction.Builder clearDisplayName()
       The descriptive name for this instance as it appears in UIs.
       Must be unique per project and between 4 and 30 characters in length.
       
      optional string display_name = 3;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public UpdateCloudInstanceAction.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       The descriptive name for this instance as it appears in UIs.
       Must be unique per project and between 4 and 30 characters in length.
       
      optional string display_name = 3;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • hasNodeCount

      public boolean hasNodeCount()
       The number of nodes allocated to this instance. At most one of either
       node_count or processing_units should be present in the message.
       
      optional int32 node_count = 4;
      Specified by:
      hasNodeCount in interface UpdateCloudInstanceActionOrBuilder
      Returns:
      Whether the nodeCount field is set.
    • getNodeCount

      public int getNodeCount()
       The number of nodes allocated to this instance. At most one of either
       node_count or processing_units should be present in the message.
       
      optional int32 node_count = 4;
      Specified by:
      getNodeCount in interface UpdateCloudInstanceActionOrBuilder
      Returns:
      The nodeCount.
    • setNodeCount

      public UpdateCloudInstanceAction.Builder setNodeCount(int value)
       The number of nodes allocated to this instance. At most one of either
       node_count or processing_units should be present in the message.
       
      optional int32 node_count = 4;
      Parameters:
      value - The nodeCount to set.
      Returns:
      This builder for chaining.
    • clearNodeCount

      public UpdateCloudInstanceAction.Builder clearNodeCount()
       The number of nodes allocated to this instance. At most one of either
       node_count or processing_units should be present in the message.
       
      optional int32 node_count = 4;
      Returns:
      This builder for chaining.
    • hasProcessingUnits

      public boolean hasProcessingUnits()
       The number of processing units allocated to this instance. At most one of
       processing_units or node_count should be present in the message.
       
      optional int32 processing_units = 5;
      Specified by:
      hasProcessingUnits in interface UpdateCloudInstanceActionOrBuilder
      Returns:
      Whether the processingUnits field is set.
    • getProcessingUnits

      public int getProcessingUnits()
       The number of processing units allocated to this instance. At most one of
       processing_units or node_count should be present in the message.
       
      optional int32 processing_units = 5;
      Specified by:
      getProcessingUnits in interface UpdateCloudInstanceActionOrBuilder
      Returns:
      The processingUnits.
    • setProcessingUnits

      public UpdateCloudInstanceAction.Builder setProcessingUnits(int value)
       The number of processing units allocated to this instance. At most one of
       processing_units or node_count should be present in the message.
       
      optional int32 processing_units = 5;
      Parameters:
      value - The processingUnits to set.
      Returns:
      This builder for chaining.
    • clearProcessingUnits

      public UpdateCloudInstanceAction.Builder clearProcessingUnits()
       The number of processing units allocated to this instance. At most one of
       processing_units or node_count should be present in the message.
       
      optional int32 processing_units = 5;
      Returns:
      This builder for chaining.
    • hasAutoscalingConfig

      public boolean hasAutoscalingConfig()
       The autoscaling config for this instance. If non-empty, this instance is
       using autoscaling (processing_units and node_count should be set to
       0 if used).
       
      optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;
      Specified by:
      hasAutoscalingConfig in interface UpdateCloudInstanceActionOrBuilder
      Returns:
      Whether the autoscalingConfig field is set.
    • getAutoscalingConfig

      public AutoscalingConfig getAutoscalingConfig()
       The autoscaling config for this instance. If non-empty, this instance is
       using autoscaling (processing_units and node_count should be set to
       0 if used).
       
      optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;
      Specified by:
      getAutoscalingConfig in interface UpdateCloudInstanceActionOrBuilder
      Returns:
      The autoscalingConfig.
    • setAutoscalingConfig

      public UpdateCloudInstanceAction.Builder setAutoscalingConfig(AutoscalingConfig value)
       The autoscaling config for this instance. If non-empty, this instance is
       using autoscaling (processing_units and node_count should be set to
       0 if used).
       
      optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;
    • setAutoscalingConfig

      public UpdateCloudInstanceAction.Builder setAutoscalingConfig(AutoscalingConfig.Builder builderForValue)
       The autoscaling config for this instance. If non-empty, this instance is
       using autoscaling (processing_units and node_count should be set to
       0 if used).
       
      optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;
    • mergeAutoscalingConfig

      public UpdateCloudInstanceAction.Builder mergeAutoscalingConfig(AutoscalingConfig value)
       The autoscaling config for this instance. If non-empty, this instance is
       using autoscaling (processing_units and node_count should be set to
       0 if used).
       
      optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;
    • clearAutoscalingConfig

      public UpdateCloudInstanceAction.Builder clearAutoscalingConfig()
       The autoscaling config for this instance. If non-empty, this instance is
       using autoscaling (processing_units and node_count should be set to
       0 if used).
       
      optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;
    • getAutoscalingConfigBuilder

      public AutoscalingConfig.Builder getAutoscalingConfigBuilder()
       The autoscaling config for this instance. If non-empty, this instance is
       using autoscaling (processing_units and node_count should be set to
       0 if used).
       
      optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;
    • getAutoscalingConfigOrBuilder

      public AutoscalingConfigOrBuilder getAutoscalingConfigOrBuilder()
       The autoscaling config for this instance. If non-empty, this instance is
       using autoscaling (processing_units and node_count should be set to
       0 if used).
       
      optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;
      Specified by:
      getAutoscalingConfigOrBuilder in interface UpdateCloudInstanceActionOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: UpdateCloudInstanceActionOrBuilder
       labels.
       
      map<string, string> labels = 6;
      Specified by:
      getLabelsCount in interface UpdateCloudInstanceActionOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       labels.
       
      map<string, string> labels = 6;
      Specified by:
      containsLabels in interface UpdateCloudInstanceActionOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface UpdateCloudInstanceActionOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       labels.
       
      map<string, string> labels = 6;
      Specified by:
      getLabelsMap in interface UpdateCloudInstanceActionOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       labels.
       
      map<string, string> labels = 6;
      Specified by:
      getLabelsOrDefault in interface UpdateCloudInstanceActionOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       labels.
       
      map<string, string> labels = 6;
      Specified by:
      getLabelsOrThrow in interface UpdateCloudInstanceActionOrBuilder
    • clearLabels

      public UpdateCloudInstanceAction.Builder clearLabels()
    • removeLabels

      public UpdateCloudInstanceAction.Builder removeLabels(String key)
       labels.
       
      map<string, string> labels = 6;
    • getMutableLabels

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

      public UpdateCloudInstanceAction.Builder putLabels(String key, String value)
       labels.
       
      map<string, string> labels = 6;
    • putAllLabels

      public UpdateCloudInstanceAction.Builder putAllLabels(Map<String,String> values)
       labels.
       
      map<string, string> labels = 6;
    • setUnknownFields

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

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