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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > UpdateCloudInstanceAction.BuilderImplements
UpdateCloudInstanceActionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UpdateCloudInstanceAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
UpdateCloudInstanceAction.Builder |
build()
public UpdateCloudInstanceAction build()
Returns | |
---|---|
Type | Description |
UpdateCloudInstanceAction |
buildPartial()
public UpdateCloudInstanceAction buildPartial()
Returns | |
---|---|
Type | Description |
UpdateCloudInstanceAction |
clear()
public UpdateCloudInstanceAction.Builder clear()
Returns | |
---|---|
Type | Description |
UpdateCloudInstanceAction.Builder |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
UpdateCloudInstanceAction.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public UpdateCloudInstanceAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
UpdateCloudInstanceAction.Builder |
clearInstanceId()
public UpdateCloudInstanceAction.Builder clearInstanceId()
Cloud instance ID (not path), e.g. "test-instance".
string instance_id = 1;
Returns | |
---|---|
Type | Description |
UpdateCloudInstanceAction.Builder | This builder for chaining. |
clearLabels()
public UpdateCloudInstanceAction.Builder clearLabels()
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
UpdateCloudInstanceAction.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public UpdateCloudInstanceAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
UpdateCloudInstanceAction.Builder |
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 | |
---|---|
Type | Description |
UpdateCloudInstanceAction.Builder | This builder for chaining. |
clearProjectId()
public UpdateCloudInstanceAction.Builder clearProjectId()
Cloud project ID, e.g. "spanner-cloud-systest".
string project_id = 2;
Returns | |
---|---|
Type | Description |
UpdateCloudInstanceAction.Builder | This builder for chaining. |
clone()
public UpdateCloudInstanceAction.Builder clone()
Returns | |
---|---|
Type | Description |
UpdateCloudInstanceAction.Builder |
containsLabels(String key)
public boolean containsLabels(String key)
labels.
map<string, string> labels = 6;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
AutoscalingConfigOrBuilder |
getDefaultInstanceForType()
public UpdateCloudInstanceAction getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
UpdateCloudInstanceAction |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ByteString | The bytes for displayName. |
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()
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getLabelsCount()
public int getLabelsCount()
labels.
map<string, string> labels = 6;
Returns | |
---|---|
Type | Description |
int |
getLabelsMap()
public Map<String,String> getLabelsMap()
labels.
map<string, string> labels = 6;
Returns | |
---|---|
Type | Description |
Map<String,String> |
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
labels.
map<string, string> labels = 6;
Parameters | |
---|---|
Name | Description |
key | String |
defaultValue | String |
Returns | |
---|---|
Type | Description |
String |
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
labels.
map<string, string> labels = 6;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
String |
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
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, 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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
boolean | Whether the processingUnits field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 | |
---|---|
Name | Description |
value | AutoscalingConfig |
Returns | |
---|---|
Type | Description |
UpdateCloudInstanceAction.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public UpdateCloudInstanceAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
UpdateCloudInstanceAction.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public UpdateCloudInstanceAction.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
UpdateCloudInstanceAction.Builder |
mergeFrom(UpdateCloudInstanceAction other)
public UpdateCloudInstanceAction.Builder mergeFrom(UpdateCloudInstanceAction other)
Parameter | |
---|---|
Name | Description |
other | UpdateCloudInstanceAction |
Returns | |
---|---|
Type | Description |
UpdateCloudInstanceAction.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UpdateCloudInstanceAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
UpdateCloudInstanceAction.Builder |
putAllLabels(Map<String,String> values)
public UpdateCloudInstanceAction.Builder putAllLabels(Map<String,String> values)
labels.
map<string, string> labels = 6;
Parameter | |
---|---|
Name | Description |
values | Map<String,String> |
Returns | |
---|---|
Type | Description |
UpdateCloudInstanceAction.Builder |
putLabels(String key, String value)
public UpdateCloudInstanceAction.Builder putLabels(String key, String value)
labels.
map<string, string> labels = 6;
Parameters | |
---|---|
Name | Description |
key | String |
value | String |
Returns | |
---|---|
Type | Description |
UpdateCloudInstanceAction.Builder |
removeLabels(String key)
public UpdateCloudInstanceAction.Builder removeLabels(String key)
labels.
map<string, string> labels = 6;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | AutoscalingConfig |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | AutoscalingConfig.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The displayName to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for displayName to set. |
Returns | |
---|---|
Type | Description |
UpdateCloudInstanceAction.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public UpdateCloudInstanceAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
UpdateCloudInstanceAction.Builder |
setInstanceId(String value)
public UpdateCloudInstanceAction.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 |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for instanceId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | int The nodeCount to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | int The processingUnits to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The projectId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for projectId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
UpdateCloudInstanceAction.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final UpdateCloudInstanceAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
UpdateCloudInstanceAction.Builder |