Class ReplicaComputeCapacity.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ReplicaComputeCapacity.Builder>
com.google.spanner.admin.instance.v1.ReplicaComputeCapacity.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ReplicaComputeCapacityOrBuilder,Cloneable
- Enclosing class:
- ReplicaComputeCapacity
public static final class ReplicaComputeCapacity.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ReplicaComputeCapacity.Builder>
implements ReplicaComputeCapacityOrBuilder
ReplicaComputeCapacity describes the amount of server resources that are allocated to each replica identified by the replica selection.Protobuf type
google.spanner.admin.instance.v1.ReplicaComputeCapacity-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The number of nodes allocated to each replica.The number of processing units allocated to each replica.Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintThe number of nodes allocated to each replica.intThe number of processing units allocated to each replica.Required.Required.Required.booleanThe number of nodes allocated to each replica.booleanThe number of processing units allocated to each replica.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(ReplicaComputeCapacity other) Required.setNodeCount(int value) The number of nodes allocated to each replica.setProcessingUnits(int value) The number of processing units allocated to each replica.Required.setReplicaSelection(ReplicaSelection.Builder builderForValue) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ReplicaComputeCapacity.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ReplicaComputeCapacity.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ReplicaComputeCapacity.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ReplicaComputeCapacity.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ReplicaComputeCapacity.Builder>
-
mergeFrom
public ReplicaComputeCapacity.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ReplicaComputeCapacity.Builder>- Throws:
IOException
-
getComputeCapacityCase
- Specified by:
getComputeCapacityCasein interfaceReplicaComputeCapacityOrBuilder
-
clearComputeCapacity
-
hasReplicaSelection
public 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];- Specified by:
hasReplicaSelectionin interfaceReplicaComputeCapacityOrBuilder- Returns:
- Whether the replicaSelection field is set.
-
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];- Specified by:
getReplicaSelectionin interfaceReplicaComputeCapacityOrBuilder- Returns:
- The replicaSelection.
-
setReplicaSelection
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]; -
setReplicaSelection
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]; -
mergeReplicaSelection
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]; -
clearReplicaSelection
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]; -
getReplicaSelectionBuilder
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]; -
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];- Specified by:
getReplicaSelectionOrBuilderin interfaceReplicaComputeCapacityOrBuilder
-
hasNodeCount
public 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;- Specified by:
hasNodeCountin interfaceReplicaComputeCapacityOrBuilder- Returns:
- Whether the nodeCount field is set.
-
getNodeCount
public 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;- Specified by:
getNodeCountin interfaceReplicaComputeCapacityOrBuilder- Returns:
- The nodeCount.
-
setNodeCount
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;- Parameters:
value- The nodeCount to set.- Returns:
- This builder for chaining.
-
clearNodeCount
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:
- This builder for chaining.
-
hasProcessingUnits
public 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;- Specified by:
hasProcessingUnitsin interfaceReplicaComputeCapacityOrBuilder- Returns:
- Whether the processingUnits field is set.
-
getProcessingUnits
public 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;- Specified by:
getProcessingUnitsin interfaceReplicaComputeCapacityOrBuilder- Returns:
- The processingUnits.
-
setProcessingUnits
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;- Parameters:
value- The processingUnits to set.- Returns:
- This builder for chaining.
-
clearProcessingUnits
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:
- This builder for chaining.
-