Interface ReplicaComputeCapacityOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ReplicaComputeCapacity,ReplicaComputeCapacity.Builder
public interface ReplicaComputeCapacityOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionintThe number of nodes allocated to each replica.intThe number of processing units allocated to each replica.Required.Required.booleanThe number of nodes allocated to each replica.booleanThe number of processing units allocated to each replica.booleanRequired.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasReplicaSelection
boolean hasReplicaSelection()Required. Identifies replicas by specified properties. All replicas in the selection have the same amount of compute capacity.
.google.spanner.admin.instance.v1.ReplicaSelection replica_selection = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- Whether the replicaSelection field is set.
-
getReplicaSelection
ReplicaSelection getReplicaSelection()Required. Identifies replicas by specified properties. All replicas in the selection have the same amount of compute capacity.
.google.spanner.admin.instance.v1.ReplicaSelection replica_selection = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The replicaSelection.
-
getReplicaSelectionOrBuilder
ReplicaSelectionOrBuilder getReplicaSelectionOrBuilder()Required. Identifies replicas by specified properties. All replicas in the selection have the same amount of compute capacity.
.google.spanner.admin.instance.v1.ReplicaSelection replica_selection = 1 [(.google.api.field_behavior) = REQUIRED]; -
hasNodeCount
boolean hasNodeCount()The number of nodes allocated to each replica. This may be zero in API responses for instances that are not yet in state `READY`.
int32 node_count = 2;- Returns:
- Whether the nodeCount field is set.
-
getNodeCount
int getNodeCount()The number of nodes allocated to each replica. This may be zero in API responses for instances that are not yet in state `READY`.
int32 node_count = 2;- Returns:
- The nodeCount.
-
hasProcessingUnits
boolean hasProcessingUnits()The number of processing units allocated to each replica. This may be zero in API responses for instances that are not yet in state `READY`.
int32 processing_units = 3;- Returns:
- Whether the processingUnits field is set.
-
getProcessingUnits
int getProcessingUnits()The number of processing units allocated to each replica. This may be zero in API responses for instances that are not yet in state `READY`.
int32 processing_units = 3;- Returns:
- The processingUnits.
-
getComputeCapacityCase
ReplicaComputeCapacity.ComputeCapacityCase getComputeCapacityCase()
-