Class UpdateCloudInstanceAction.Builder (6.57.0)

public static final class UpdateCloudInstanceAction.Builder extends GeneratedMessageV3.Builder<UpdateCloudInstanceAction.Builder> implements UpdateCloudInstanceActionOrBuilder

Action that updates a Cloud Spanner instance.

Protobuf type google.spanner.executor.v1.UpdateCloudInstanceAction

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateCloudInstanceAction build()
Returns
TypeDescription
UpdateCloudInstanceAction

buildPartial()

public UpdateCloudInstanceAction buildPartial()
Returns
TypeDescription
UpdateCloudInstanceAction

clear()

public UpdateCloudInstanceAction.Builder clear()
Returns
TypeDescription
UpdateCloudInstanceAction.Builder
Overrides

clearAutoscalingConfig()

public UpdateCloudInstanceAction.Builder clearAutoscalingConfig()

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;

Returns
TypeDescription
UpdateCloudInstanceAction.Builder

clearDisplayName()

public UpdateCloudInstanceAction.Builder clearDisplayName()

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;

Returns
TypeDescription
UpdateCloudInstanceAction.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInstanceId()

public UpdateCloudInstanceAction.Builder clearInstanceId()

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

string instance_id = 1;

Returns
TypeDescription
UpdateCloudInstanceAction.Builder

This builder for chaining.

clearLabels()

public UpdateCloudInstanceAction.Builder clearLabels()
Returns
TypeDescription
UpdateCloudInstanceAction.Builder

clearNodeCount()

public UpdateCloudInstanceAction.Builder clearNodeCount()

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;

Returns
TypeDescription
UpdateCloudInstanceAction.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateCloudInstanceAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
UpdateCloudInstanceAction.Builder
Overrides

clearProcessingUnits()

public UpdateCloudInstanceAction.Builder clearProcessingUnits()

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;

Returns
TypeDescription
UpdateCloudInstanceAction.Builder

This builder for chaining.

clearProjectId()

public UpdateCloudInstanceAction.Builder clearProjectId()

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

string project_id = 2;

Returns
TypeDescription
UpdateCloudInstanceAction.Builder

This builder for chaining.

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

labels.

map<string, string> labels = 6;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

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;

Returns
TypeDescription
AutoscalingConfig

The autoscalingConfig.

getAutoscalingConfigBuilder()

public AutoscalingConfig.Builder getAutoscalingConfigBuilder()

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;

Returns
TypeDescription
AutoscalingConfig.Builder

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;

Returns
TypeDescription
AutoscalingConfigOrBuilder

getDefaultInstanceForType()

public UpdateCloudInstanceAction getDefaultInstanceForType()
Returns
TypeDescription
UpdateCloudInstanceAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for displayName.

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 = 6;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

labels.

map<string, string> labels = 6;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

labels.

map<string, string> labels = 6;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

labels.

map<string, string> labels = 6;

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()

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;

Returns
TypeDescription
int

The nodeCount.

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;

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, 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;

Returns
TypeDescription
boolean

Whether the autoscalingConfig field is set.

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;

Returns
TypeDescription
boolean

Whether the displayName field is set.

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;

Returns
TypeDescription
boolean

Whether the nodeCount field is set.

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;

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 UpdateCloudInstanceAction.Builder mergeAutoscalingConfig(AutoscalingConfig value)

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;

Parameter
NameDescription
valueAutoscalingConfig
Returns
TypeDescription
UpdateCloudInstanceAction.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(UpdateCloudInstanceAction other)

public UpdateCloudInstanceAction.Builder mergeFrom(UpdateCloudInstanceAction other)
Parameter
NameDescription
otherUpdateCloudInstanceAction
Returns
TypeDescription
UpdateCloudInstanceAction.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllLabels(Map<String,String> values)

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

labels.

map<string, string> labels = 6;

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

putLabels(String key, String value)

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

labels.

map<string, string> labels = 6;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
UpdateCloudInstanceAction.Builder

removeLabels(String key)

public UpdateCloudInstanceAction.Builder removeLabels(String key)

labels.

map<string, string> labels = 6;

Parameter
NameDescription
keyString
Returns
TypeDescription
UpdateCloudInstanceAction.Builder

setAutoscalingConfig(AutoscalingConfig value)

public UpdateCloudInstanceAction.Builder setAutoscalingConfig(AutoscalingConfig value)

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;

Parameter
NameDescription
valueAutoscalingConfig
Returns
TypeDescription
UpdateCloudInstanceAction.Builder

setAutoscalingConfig(AutoscalingConfig.Builder builderForValue)

public UpdateCloudInstanceAction.Builder setAutoscalingConfig(AutoscalingConfig.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueAutoscalingConfig.Builder
Returns
TypeDescription
UpdateCloudInstanceAction.Builder

setDisplayName(String value)

public UpdateCloudInstanceAction.Builder setDisplayName(String value)

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;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
UpdateCloudInstanceAction.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public UpdateCloudInstanceAction.Builder setDisplayNameBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
UpdateCloudInstanceAction.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstanceId(String value)

public UpdateCloudInstanceAction.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
UpdateCloudInstanceAction.Builder

This builder for chaining.

setInstanceIdBytes(ByteString value)

public UpdateCloudInstanceAction.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
UpdateCloudInstanceAction.Builder

This builder for chaining.

setNodeCount(int value)

public UpdateCloudInstanceAction.Builder setNodeCount(int value)

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;

Parameter
NameDescription
valueint

The nodeCount to set.

Returns
TypeDescription
UpdateCloudInstanceAction.Builder

This builder for chaining.

setProcessingUnits(int value)

public UpdateCloudInstanceAction.Builder setProcessingUnits(int value)

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;

Parameter
NameDescription
valueint

The processingUnits to set.

Returns
TypeDescription
UpdateCloudInstanceAction.Builder

This builder for chaining.

setProjectId(String value)

public UpdateCloudInstanceAction.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
UpdateCloudInstanceAction.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public UpdateCloudInstanceAction.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
UpdateCloudInstanceAction.Builder

This builder for chaining.

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

public UpdateCloudInstanceAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UpdateCloudInstanceAction.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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