Interface CreateCloudInstanceActionOrBuilder (6.56.0)

public interface CreateCloudInstanceActionOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLabels(String key)

public abstract boolean containsLabels(String key)

labels.

map<string, string> labels = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAutoscalingConfig()

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

getAutoscalingConfigOrBuilder()

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

getInstanceConfigId()

public abstract String getInstanceConfigId()

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

string instance_config_id = 3;

Returns
TypeDescription
String

The instanceConfigId.

getInstanceConfigIdBytes()

public abstract ByteString getInstanceConfigIdBytes()

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

string instance_config_id = 3;

Returns
TypeDescription
ByteString

The bytes for instanceConfigId.

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

Returns
TypeDescription
int

getLabelsMap()

public abstract Map<String,String> getLabelsMap()

labels.

map<string, string> labels = 5;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public abstract String getLabelsOrDefault(String key, String defaultValue)

labels.

map<string, string> labels = 5;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public abstract String getLabelsOrThrow(String key)

labels.

map<string, string> labels = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getNodeCount()

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