Class UpdateCloudInstanceAction

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.spanner.executor.v1.UpdateCloudInstanceAction
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, UpdateCloudInstanceActionOrBuilder, Serializable

public final class UpdateCloudInstanceAction extends com.google.protobuf.GeneratedMessageV3 implements UpdateCloudInstanceActionOrBuilder
 Action that updates a Cloud Spanner instance.
 
Protobuf type google.spanner.executor.v1.UpdateCloudInstanceAction
See Also:
  • Field Details

    • INSTANCE_ID_FIELD_NUMBER

      public static final int INSTANCE_ID_FIELD_NUMBER
      See Also:
    • PROJECT_ID_FIELD_NUMBER

      public static final int PROJECT_ID_FIELD_NUMBER
      See Also:
    • DISPLAY_NAME_FIELD_NUMBER

      public static final int DISPLAY_NAME_FIELD_NUMBER
      See Also:
    • NODE_COUNT_FIELD_NUMBER

      public static final int NODE_COUNT_FIELD_NUMBER
      See Also:
    • PROCESSING_UNITS_FIELD_NUMBER

      public static final int PROCESSING_UNITS_FIELD_NUMBER
      See Also:
    • AUTOSCALING_CONFIG_FIELD_NUMBER

      public static final int AUTOSCALING_CONFIG_FIELD_NUMBER
      See Also:
    • LABELS_FIELD_NUMBER

      public static final int LABELS_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • 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
    • internalGetFieldAccessorTable

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

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static UpdateCloudInstanceAction parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static UpdateCloudInstanceAction parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static UpdateCloudInstanceAction parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static UpdateCloudInstanceAction parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static UpdateCloudInstanceAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static UpdateCloudInstanceAction parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static UpdateCloudInstanceAction parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static UpdateCloudInstanceAction parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static UpdateCloudInstanceAction parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static UpdateCloudInstanceAction parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static UpdateCloudInstanceAction parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static UpdateCloudInstanceAction parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static UpdateCloudInstanceAction.Builder newBuilder()
    • newBuilder

      public static UpdateCloudInstanceAction.Builder newBuilder(UpdateCloudInstanceAction prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected UpdateCloudInstanceAction.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static UpdateCloudInstanceAction getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<UpdateCloudInstanceAction> parser()
    • getParserForType

      public com.google.protobuf.Parser<UpdateCloudInstanceAction> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

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