Class CreateCloudInstanceAction.Builder (6.56.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateCloudInstanceAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateCloudInstanceAction.Builder
Overrides

build()

public CreateCloudInstanceAction build()
Returns
TypeDescription
CreateCloudInstanceAction

buildPartial()

public CreateCloudInstanceAction buildPartial()
Returns
TypeDescription
CreateCloudInstanceAction

clear()

public CreateCloudInstanceAction.Builder clear()
Returns
TypeDescription
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
TypeDescription
CreateCloudInstanceAction.Builder

clearField(Descriptors.FieldDescriptor field)

public CreateCloudInstanceAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateCloudInstanceAction.Builder
Overrides

clearInstanceConfigId()

public CreateCloudInstanceAction.Builder clearInstanceConfigId()

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

string instance_config_id = 3;

Returns
TypeDescription
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
TypeDescription
CreateCloudInstanceAction.Builder

This builder for chaining.

clearLabels()

public CreateCloudInstanceAction.Builder clearLabels()
Returns
TypeDescription
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
TypeDescription
CreateCloudInstanceAction.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateCloudInstanceAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CreateCloudInstanceAction.Builder

This builder for chaining.

clearProjectId()

public CreateCloudInstanceAction.Builder clearProjectId()

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

string project_id = 2;

Returns
TypeDescription
CreateCloudInstanceAction.Builder

This builder for chaining.

clone()

public CreateCloudInstanceAction.Builder clone()
Returns
TypeDescription
CreateCloudInstanceAction.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

labels.

map<string, string> labels = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
AutoscalingConfigOrBuilder

getDefaultInstanceForType()

public CreateCloudInstanceAction getDefaultInstanceForType()
Returns
TypeDescription
CreateCloudInstanceAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
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
TypeDescription
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
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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

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

internalGetMutableMapField(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueAutoscalingConfig
Returns
TypeDescription
CreateCloudInstanceAction.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateCloudInstanceAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateCloudInstanceAction.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateCloudInstanceAction.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateCloudInstanceAction.Builder
Overrides

mergeFrom(CreateCloudInstanceAction other)

public CreateCloudInstanceAction.Builder mergeFrom(CreateCloudInstanceAction other)
Parameter
NameDescription
otherCreateCloudInstanceAction
Returns
TypeDescription
CreateCloudInstanceAction.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateCloudInstanceAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateCloudInstanceAction.Builder
Overrides

putAllLabels(Map<String,String> values)

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

labels.

map<string, string> labels = 5;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
CreateCloudInstanceAction.Builder

putLabels(String key, String value)

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

labels.

map<string, string> labels = 5;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
CreateCloudInstanceAction.Builder

removeLabels(String key)

public CreateCloudInstanceAction.Builder removeLabels(String key)

labels.

map<string, string> labels = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
valueAutoscalingConfig
Returns
TypeDescription
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
NameDescription
builderForValueAutoscalingConfig.Builder
Returns
TypeDescription
CreateCloudInstanceAction.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateCloudInstanceAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The instanceConfigId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for instanceConfigId to set.

Returns
TypeDescription
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
NameDescription
valueString

The instanceId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for instanceId to set.

Returns
TypeDescription
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
NameDescription
valueint

The nodeCount to set.

Returns
TypeDescription
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
NameDescription
valueint

The processingUnits to set.

Returns
TypeDescription
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
NameDescription
valueString

The projectId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for projectId to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateCloudInstanceAction.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateCloudInstanceAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateCloudInstanceAction.Builder
Overrides