Class CreateCloudInstanceAction

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

public final class CreateCloudInstanceAction extends com.google.protobuf.GeneratedMessageV3 implements CreateCloudInstanceActionOrBuilder
 Action that creates a Cloud Spanner instance.
 
Protobuf type google.spanner.executor.v1.CreateCloudInstanceAction
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:
    • INSTANCE_CONFIG_ID_FIELD_NUMBER

      public static final int INSTANCE_CONFIG_ID_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 CreateCloudInstanceActionOrBuilder
      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 CreateCloudInstanceActionOrBuilder
      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 CreateCloudInstanceActionOrBuilder
      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 CreateCloudInstanceActionOrBuilder
      Returns:
      The bytes for projectId.
    • getInstanceConfigId

      public String getInstanceConfigId()
       Instance config ID, e.g. "test-config".
       
      string instance_config_id = 3;
      Specified by:
      getInstanceConfigId in interface CreateCloudInstanceActionOrBuilder
      Returns:
      The instanceConfigId.
    • getInstanceConfigIdBytes

      public com.google.protobuf.ByteString getInstanceConfigIdBytes()
       Instance config ID, e.g. "test-config".
       
      string instance_config_id = 3;
      Specified by:
      getInstanceConfigIdBytes in interface CreateCloudInstanceActionOrBuilder
      Returns:
      The bytes for instanceConfigId.
    • hasNodeCount

      public boolean hasNodeCount()
       Number of nodes (processing_units should not be set or set to 0 if used).
       
      optional int32 node_count = 4;
      Specified by:
      hasNodeCount in interface CreateCloudInstanceActionOrBuilder
      Returns:
      Whether the nodeCount field is set.
    • getNodeCount

      public int getNodeCount()
       Number of nodes (processing_units should not be set or set to 0 if used).
       
      optional int32 node_count = 4;
      Specified by:
      getNodeCount in interface CreateCloudInstanceActionOrBuilder
      Returns:
      The nodeCount.
    • hasProcessingUnits

      public boolean hasProcessingUnits()
       Number of processing units (node_count should be set to 0 if used).
       
      optional int32 processing_units = 6;
      Specified by:
      hasProcessingUnits in interface CreateCloudInstanceActionOrBuilder
      Returns:
      Whether the processingUnits field is set.
    • getProcessingUnits

      public int getProcessingUnits()
       Number of processing units (node_count should be set to 0 if used).
       
      optional int32 processing_units = 6;
      Specified by:
      getProcessingUnits in interface CreateCloudInstanceActionOrBuilder
      Returns:
      The processingUnits.
    • hasAutoscalingConfig

      public boolean hasAutoscalingConfig()
       The autoscaling config for this instance. If non-empty, an autoscaling
       instance will be created (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 CreateCloudInstanceActionOrBuilder
      Returns:
      Whether the autoscalingConfig field is set.
    • getAutoscalingConfig

      public AutoscalingConfig getAutoscalingConfig()
       The autoscaling config for this instance. If non-empty, an autoscaling
       instance will be created (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 CreateCloudInstanceActionOrBuilder
      Returns:
      The autoscalingConfig.
    • getAutoscalingConfigOrBuilder

      public AutoscalingConfigOrBuilder getAutoscalingConfigOrBuilder()
       The autoscaling config for this instance. If non-empty, an autoscaling
       instance will be created (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 CreateCloudInstanceActionOrBuilder
    • getLabelsCount

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

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

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

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

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

      public String getLabelsOrThrow(String key)
       labels.
       
      map<string, string> labels = 5;
      Specified by:
      getLabelsOrThrow in interface CreateCloudInstanceActionOrBuilder
    • 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 CreateCloudInstanceAction parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static CreateCloudInstanceAction.Builder newBuilder()
    • newBuilder

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

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

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

      public static CreateCloudInstanceAction getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<CreateCloudInstanceAction> 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 CreateCloudInstanceAction getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder