Class CreateCloudInstanceAction (6.58.0)

public final class CreateCloudInstanceAction extends GeneratedMessageV3 implements CreateCloudInstanceActionOrBuilder

Action that creates a Cloud Spanner instance.

Protobuf type google.spanner.executor.v1.CreateCloudInstanceAction

Static Fields

AUTOSCALING_CONFIG_FIELD_NUMBER

public static final int AUTOSCALING_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

INSTANCE_CONFIG_ID_FIELD_NUMBER

public static final int INSTANCE_CONFIG_ID_FIELD_NUMBER
Field Value
TypeDescription
int

INSTANCE_ID_FIELD_NUMBER

public static final int INSTANCE_ID_FIELD_NUMBER
Field Value
TypeDescription
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
TypeDescription
int

NODE_COUNT_FIELD_NUMBER

public static final int NODE_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

PROCESSING_UNITS_FIELD_NUMBER

public static final int PROCESSING_UNITS_FIELD_NUMBER
Field Value
TypeDescription
int

PROJECT_ID_FIELD_NUMBER

public static final int PROJECT_ID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CreateCloudInstanceAction getDefaultInstance()
Returns
TypeDescription
CreateCloudInstanceAction

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CreateCloudInstanceAction.Builder newBuilder()
Returns
TypeDescription
CreateCloudInstanceAction.Builder

newBuilder(CreateCloudInstanceAction prototype)

public static CreateCloudInstanceAction.Builder newBuilder(CreateCloudInstanceAction prototype)
Parameter
NameDescription
prototypeCreateCloudInstanceAction
Returns
TypeDescription
CreateCloudInstanceAction.Builder

parseDelimitedFrom(InputStream input)

public static CreateCloudInstanceAction parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateCloudInstanceAction
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateCloudInstanceAction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateCloudInstanceAction
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CreateCloudInstanceAction parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CreateCloudInstanceAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateCloudInstanceAction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateCloudInstanceAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateCloudInstanceAction parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CreateCloudInstanceAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateCloudInstanceAction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateCloudInstanceAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateCloudInstanceAction parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CreateCloudInstanceAction
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateCloudInstanceAction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateCloudInstanceAction
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CreateCloudInstanceAction parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateCloudInstanceAction
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateCloudInstanceAction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateCloudInstanceAction
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CreateCloudInstanceAction parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CreateCloudInstanceAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateCloudInstanceAction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateCloudInstanceAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CreateCloudInstanceAction> parser()
Returns
TypeDescription
Parser<CreateCloudInstanceAction>

Methods

containsLabels(String key)

public boolean containsLabels(String key)

labels.

map<string, string> labels = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

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;

Returns
TypeDescription
AutoscalingConfig

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;

Returns
TypeDescription
AutoscalingConfigOrBuilder

getDefaultInstanceForType()

public CreateCloudInstanceAction getDefaultInstanceForType()
Returns
TypeDescription
CreateCloudInstanceAction

getInstanceConfigId()

public String getInstanceConfigId()

Instance config ID, e.g. "test-config".

string instance_config_id = 3;

Returns
TypeDescription
String

The instanceConfigId.

getInstanceConfigIdBytes()

public ByteString getInstanceConfigIdBytes()

Instance config ID, e.g. "test-config".

string instance_config_id = 3;

Returns
TypeDescription
ByteString

The bytes for instanceConfigId.

getInstanceId()

public String getInstanceId()

Cloud instance ID (not path), e.g. "test-instance".

string instance_id = 1;

Returns
TypeDescription
String

The instanceId.

getInstanceIdBytes()

public ByteString getInstanceIdBytes()

Cloud instance ID (not path), e.g. "test-instance".

string instance_id = 1;

Returns
TypeDescription
ByteString

The bytes for instanceId.

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

labels.

map<string, string> labels = 5;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

labels.

map<string, string> labels = 5;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

labels.

map<string, string> labels = 5;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

labels.

map<string, string> labels = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getNodeCount()

public int getNodeCount()

Number of nodes (processing_units should not be set or set to 0 if used).

optional int32 node_count = 4;

Returns
TypeDescription
int

The nodeCount.

getParserForType()

public Parser<CreateCloudInstanceAction> getParserForType()
Returns
TypeDescription
Parser<CreateCloudInstanceAction>
Overrides

getProcessingUnits()

public int getProcessingUnits()

Number of processing units (node_count should be set to 0 if used).

optional int32 processing_units = 6;

Returns
TypeDescription
int

The processingUnits.

getProjectId()

public String getProjectId()

Cloud project ID, e.g. "spanner-cloud-systest".

string project_id = 2;

Returns
TypeDescription
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

Cloud project ID, e.g. "spanner-cloud-systest".

string project_id = 2;

Returns
TypeDescription
ByteString

The bytes for projectId.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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;

Returns
TypeDescription
boolean

Whether the autoscalingConfig field is set.

hasNodeCount()

public boolean hasNodeCount()

Number of nodes (processing_units should not be set or set to 0 if used).

optional int32 node_count = 4;

Returns
TypeDescription
boolean

Whether the nodeCount field is set.

hasProcessingUnits()

public boolean hasProcessingUnits()

Number of processing units (node_count should be set to 0 if used).

optional int32 processing_units = 6;

Returns
TypeDescription
boolean

Whether the processingUnits field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CreateCloudInstanceAction.Builder newBuilderForType()
Returns
TypeDescription
CreateCloudInstanceAction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateCloudInstanceAction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CreateCloudInstanceAction.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CreateCloudInstanceAction.Builder toBuilder()
Returns
TypeDescription
CreateCloudInstanceAction.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException