Interface UpdateCloudInstanceActionOrBuilder (6.58.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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for displayName.

getInstanceId()

public abstract String getInstanceId()

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

string instance_id = 1;

Returns
TypeDescription
String

The instanceId.

getInstanceIdBytes()

public abstract ByteString getInstanceIdBytes()

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

string instance_id = 1;

Returns
TypeDescription
ByteString

The bytes for instanceId.

getLabels()

public abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public abstract int getLabelsCount()

labels.

map<string, string> labels = 6;

Returns
TypeDescription
int

getLabelsMap()

public abstract Map<String,String> getLabelsMap()

labels.

map<string, string> labels = 6;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public abstract String getLabelsOrDefault(String key, String defaultValue)

labels.

map<string, string> labels = 6;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public abstract String getLabelsOrThrow(String key)

labels.

map<string, string> labels = 6;

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

The processingUnits.

getProjectId()

public abstract String getProjectId()

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

string project_id = 2;

Returns
TypeDescription
String

The projectId.

getProjectIdBytes()

public abstract ByteString getProjectIdBytes()

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

string project_id = 2;

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

Whether the processingUnits field is set.