Class CreateCloudInstanceAction.Builder (6.74.0)

public static final class CreateCloudInstanceAction.Builder extends GeneratedMessageV3.Builder<CreateCloudInstanceAction.Builder> implements CreateCloudInstanceActionOrBuilder

Action that creates a Cloud Spanner instance.

Protobuf type google.spanner.executor.v1.CreateCloudInstanceAction

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateCloudInstanceAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateCloudInstanceAction.Builder
Overrides

build()

public CreateCloudInstanceAction build()
Returns
Type Description
CreateCloudInstanceAction

buildPartial()

public CreateCloudInstanceAction buildPartial()
Returns
Type Description
CreateCloudInstanceAction

clear()

public CreateCloudInstanceAction.Builder clear()
Returns
Type Description
CreateCloudInstanceAction.Builder
Overrides

clearAutoscalingConfig()

public CreateCloudInstanceAction.Builder clearAutoscalingConfig()

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
Type Description
CreateCloudInstanceAction.Builder

clearField(Descriptors.FieldDescriptor field)

public CreateCloudInstanceAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateCloudInstanceAction.Builder
Overrides

clearInstanceConfigId()

public CreateCloudInstanceAction.Builder clearInstanceConfigId()

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

string instance_config_id = 3;

Returns
Type Description
CreateCloudInstanceAction.Builder

This builder for chaining.

clearInstanceId()

public CreateCloudInstanceAction.Builder clearInstanceId()

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

string instance_id = 1;

Returns
Type Description
CreateCloudInstanceAction.Builder

This builder for chaining.

clearLabels()

public CreateCloudInstanceAction.Builder clearLabels()
Returns
Type Description
CreateCloudInstanceAction.Builder

clearNodeCount()

public CreateCloudInstanceAction.Builder clearNodeCount()

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

optional int32 node_count = 4;

Returns
Type Description
CreateCloudInstanceAction.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateCloudInstanceAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateCloudInstanceAction.Builder
Overrides

clearProcessingUnits()

public CreateCloudInstanceAction.Builder clearProcessingUnits()

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

optional int32 processing_units = 6;

Returns
Type Description
CreateCloudInstanceAction.Builder

This builder for chaining.

clearProjectId()

public CreateCloudInstanceAction.Builder clearProjectId()

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

string project_id = 2;

Returns
Type Description
CreateCloudInstanceAction.Builder

This builder for chaining.

clone()

public CreateCloudInstanceAction.Builder clone()
Returns
Type Description
CreateCloudInstanceAction.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

labels.

map<string, string> labels = 5;

Parameter
Name Description
key String
Returns
Type Description
boolean

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
Type Description
AutoscalingConfig

The autoscalingConfig.

getAutoscalingConfigBuilder()

public AutoscalingConfig.Builder getAutoscalingConfigBuilder()

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
Type Description
AutoscalingConfig.Builder

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
Type Description
AutoscalingConfigOrBuilder

getDefaultInstanceForType()

public CreateCloudInstanceAction getDefaultInstanceForType()
Returns
Type Description
CreateCloudInstanceAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInstanceConfigId()

public String getInstanceConfigId()

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

string instance_config_id = 3;

Returns
Type Description
String

The instanceConfigId.

getInstanceConfigIdBytes()

public ByteString getInstanceConfigIdBytes()

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

string instance_config_id = 3;

Returns
Type Description
ByteString

The bytes for instanceConfigId.

getInstanceId()

public String getInstanceId()

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

string instance_id = 1;

Returns
Type Description
String

The instanceId.

getInstanceIdBytes()

public ByteString getInstanceIdBytes()

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

string instance_id = 1;

Returns
Type Description
ByteString

The bytes for instanceId.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

labels.

map<string, string> labels = 5;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

labels.

map<string, string> labels = 5;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

labels.

map<string, string> labels = 5;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

labels.

map<string, string> labels = 5;

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,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
Type Description
int

The nodeCount.

getProcessingUnits()

public int getProcessingUnits()

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

optional int32 processing_units = 6;

Returns
Type Description
int

The processingUnits.

getProjectId()

public String getProjectId()

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

string project_id = 2;

Returns
Type Description
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

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

string project_id = 2;

Returns
Type Description
ByteString

The bytes for projectId.

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
Type Description
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
Type Description
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
Type Description
boolean

Whether the processingUnits field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAutoscalingConfig(AutoscalingConfig value)

public CreateCloudInstanceAction.Builder mergeAutoscalingConfig(AutoscalingConfig value)

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;

Parameter
Name Description
value AutoscalingConfig
Returns
Type Description
CreateCloudInstanceAction.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateCloudInstanceAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateCloudInstanceAction.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateCloudInstanceAction.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateCloudInstanceAction.Builder
Overrides

mergeFrom(CreateCloudInstanceAction other)

public CreateCloudInstanceAction.Builder mergeFrom(CreateCloudInstanceAction other)
Parameter
Name Description
other CreateCloudInstanceAction
Returns
Type Description
CreateCloudInstanceAction.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateCloudInstanceAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateCloudInstanceAction.Builder
Overrides

putAllLabels(Map<String,String> values)

public CreateCloudInstanceAction.Builder putAllLabels(Map<String,String> values)

labels.

map<string, string> labels = 5;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
CreateCloudInstanceAction.Builder

putLabels(String key, String value)

public CreateCloudInstanceAction.Builder putLabels(String key, String value)

labels.

map<string, string> labels = 5;

Parameters
Name Description
key String
value String
Returns
Type Description
CreateCloudInstanceAction.Builder

removeLabels(String key)

public CreateCloudInstanceAction.Builder removeLabels(String key)

labels.

map<string, string> labels = 5;

Parameter
Name Description
key String
Returns
Type Description
CreateCloudInstanceAction.Builder

setAutoscalingConfig(AutoscalingConfig value)

public CreateCloudInstanceAction.Builder setAutoscalingConfig(AutoscalingConfig value)

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;

Parameter
Name Description
value AutoscalingConfig
Returns
Type Description
CreateCloudInstanceAction.Builder

setAutoscalingConfig(AutoscalingConfig.Builder builderForValue)

public CreateCloudInstanceAction.Builder setAutoscalingConfig(AutoscalingConfig.Builder builderForValue)

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;

Parameter
Name Description
builderForValue AutoscalingConfig.Builder
Returns
Type Description
CreateCloudInstanceAction.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateCloudInstanceAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateCloudInstanceAction.Builder
Overrides

setInstanceConfigId(String value)

public CreateCloudInstanceAction.Builder setInstanceConfigId(String value)

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

string instance_config_id = 3;

Parameter
Name Description
value String

The instanceConfigId to set.

Returns
Type Description
CreateCloudInstanceAction.Builder

This builder for chaining.

setInstanceConfigIdBytes(ByteString value)

public CreateCloudInstanceAction.Builder setInstanceConfigIdBytes(ByteString value)

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

string instance_config_id = 3;

Parameter
Name Description
value ByteString

The bytes for instanceConfigId to set.

Returns
Type Description
CreateCloudInstanceAction.Builder

This builder for chaining.

setInstanceId(String value)

public CreateCloudInstanceAction.Builder setInstanceId(String value)

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

string instance_id = 1;

Parameter
Name Description
value String

The instanceId to set.

Returns
Type Description
CreateCloudInstanceAction.Builder

This builder for chaining.

setInstanceIdBytes(ByteString value)

public CreateCloudInstanceAction.Builder setInstanceIdBytes(ByteString value)

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

string instance_id = 1;

Parameter
Name Description
value ByteString

The bytes for instanceId to set.

Returns
Type Description
CreateCloudInstanceAction.Builder

This builder for chaining.

setNodeCount(int value)

public CreateCloudInstanceAction.Builder setNodeCount(int value)

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

optional int32 node_count = 4;

Parameter
Name Description
value int

The nodeCount to set.

Returns
Type Description
CreateCloudInstanceAction.Builder

This builder for chaining.

setProcessingUnits(int value)

public CreateCloudInstanceAction.Builder setProcessingUnits(int value)

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

optional int32 processing_units = 6;

Parameter
Name Description
value int

The processingUnits to set.

Returns
Type Description
CreateCloudInstanceAction.Builder

This builder for chaining.

setProjectId(String value)

public CreateCloudInstanceAction.Builder setProjectId(String value)

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

string project_id = 2;

Parameter
Name Description
value String

The projectId to set.

Returns
Type Description
CreateCloudInstanceAction.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public CreateCloudInstanceAction.Builder setProjectIdBytes(ByteString value)

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

string project_id = 2;

Parameter
Name Description
value ByteString

The bytes for projectId to set.

Returns
Type Description
CreateCloudInstanceAction.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateCloudInstanceAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateCloudInstanceAction.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateCloudInstanceAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateCloudInstanceAction.Builder
Overrides