Interface UpdateCloudInstanceActionOrBuilder (6.79.0)

public interface UpdateCloudInstanceActionOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLabels(String key)

public abstract boolean containsLabels(String key)

labels.

map<string, string> labels = 6;

Parameter
Name Description
key String
Returns
Type Description
boolean

getAutoscalingConfig()

public abstract 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.

getAutoscalingConfigOrBuilder()

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

getDisplayName()

public abstract 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 abstract 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 abstract String getInstanceId()

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

string instance_id = 1;

Returns
Type Description
String

The instanceId.

getInstanceIdBytes()

public abstract 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 abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public abstract int getLabelsCount()

labels.

map<string, string> labels = 6;

Returns
Type Description
int

getLabelsMap()

public abstract Map<String,String> getLabelsMap()

labels.

map<string, string> labels = 6;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public abstract 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 abstract String getLabelsOrThrow(String key)

labels.

map<string, string> labels = 6;

Parameter
Name Description
key String
Returns
Type Description
String

getNodeCount()

public abstract 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 abstract 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 abstract String getProjectId()

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

string project_id = 2;

Returns
Type Description
String

The projectId.

getProjectIdBytes()

public abstract ByteString getProjectIdBytes()

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

string project_id = 2;

Returns
Type Description
ByteString

The bytes for projectId.

hasAutoscalingConfig()

public abstract 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 abstract 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 abstract 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 abstract 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.