public static final class ReplicaComputeCapacity.Builder extends GeneratedMessageV3.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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ReplicaComputeCapacity.BuilderImplements
ReplicaComputeCapacityOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ReplicaComputeCapacity.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ReplicaComputeCapacity.Builder |
build()
public ReplicaComputeCapacity build()
Returns | |
---|---|
Type | Description |
ReplicaComputeCapacity |
buildPartial()
public ReplicaComputeCapacity buildPartial()
Returns | |
---|---|
Type | Description |
ReplicaComputeCapacity |
clear()
public ReplicaComputeCapacity.Builder clear()
Returns | |
---|---|
Type | Description |
ReplicaComputeCapacity.Builder |
clearComputeCapacity()
public ReplicaComputeCapacity.Builder clearComputeCapacity()
Returns | |
---|---|
Type | Description |
ReplicaComputeCapacity.Builder |
clearField(Descriptors.FieldDescriptor field)
public ReplicaComputeCapacity.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
ReplicaComputeCapacity.Builder |
clearNodeCount()
public ReplicaComputeCapacity.Builder 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 | |
---|---|
Type | Description |
ReplicaComputeCapacity.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ReplicaComputeCapacity.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
ReplicaComputeCapacity.Builder |
clearProcessingUnits()
public ReplicaComputeCapacity.Builder 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 | |
---|---|
Type | Description |
ReplicaComputeCapacity.Builder |
This builder for chaining. |
clearReplicaSelection()
public ReplicaComputeCapacity.Builder 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];
Returns | |
---|---|
Type | Description |
ReplicaComputeCapacity.Builder |
clone()
public ReplicaComputeCapacity.Builder clone()
Returns | |
---|---|
Type | Description |
ReplicaComputeCapacity.Builder |
getComputeCapacityCase()
public ReplicaComputeCapacity.ComputeCapacityCase getComputeCapacityCase()
Returns | |
---|---|
Type | Description |
ReplicaComputeCapacity.ComputeCapacityCase |
getDefaultInstanceForType()
public ReplicaComputeCapacity getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ReplicaComputeCapacity |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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;
Returns | |
---|---|
Type | Description |
int |
The nodeCount. |
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;
Returns | |
---|---|
Type | Description |
int |
The processingUnits. |
getReplicaSelection()
public 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 | |
---|---|
Type | Description |
ReplicaSelection |
The replicaSelection. |
getReplicaSelectionBuilder()
public ReplicaSelection.Builder 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];
Returns | |
---|---|
Type | Description |
ReplicaSelection.Builder |
getReplicaSelectionOrBuilder()
public 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];
Returns | |
---|---|
Type | Description |
ReplicaSelectionOrBuilder |
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;
Returns | |
---|---|
Type | Description |
boolean |
Whether the nodeCount field is set. |
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;
Returns | |
---|---|
Type | Description |
boolean |
Whether the processingUnits field is set. |
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];
Returns | |
---|---|
Type | Description |
boolean |
Whether the replicaSelection field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ReplicaComputeCapacity.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ReplicaComputeCapacity.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ReplicaComputeCapacity.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
ReplicaComputeCapacity.Builder |
mergeFrom(ReplicaComputeCapacity other)
public ReplicaComputeCapacity.Builder mergeFrom(ReplicaComputeCapacity other)
Parameter | |
---|---|
Name | Description |
other |
ReplicaComputeCapacity |
Returns | |
---|---|
Type | Description |
ReplicaComputeCapacity.Builder |
mergeReplicaSelection(ReplicaSelection value)
public ReplicaComputeCapacity.Builder mergeReplicaSelection(ReplicaSelection value)
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];
Parameter | |
---|---|
Name | Description |
value |
ReplicaSelection |
Returns | |
---|---|
Type | Description |
ReplicaComputeCapacity.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ReplicaComputeCapacity.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ReplicaComputeCapacity.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ReplicaComputeCapacity.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ReplicaComputeCapacity.Builder |
setNodeCount(int value)
public ReplicaComputeCapacity.Builder setNodeCount(int value)
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;
Parameter | |
---|---|
Name | Description |
value |
int The nodeCount to set. |
Returns | |
---|---|
Type | Description |
ReplicaComputeCapacity.Builder |
This builder for chaining. |
setProcessingUnits(int value)
public ReplicaComputeCapacity.Builder setProcessingUnits(int value)
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;
Parameter | |
---|---|
Name | Description |
value |
int The processingUnits to set. |
Returns | |
---|---|
Type | Description |
ReplicaComputeCapacity.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ReplicaComputeCapacity.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
ReplicaComputeCapacity.Builder |
setReplicaSelection(ReplicaSelection value)
public ReplicaComputeCapacity.Builder setReplicaSelection(ReplicaSelection value)
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];
Parameter | |
---|---|
Name | Description |
value |
ReplicaSelection |
Returns | |
---|---|
Type | Description |
ReplicaComputeCapacity.Builder |
setReplicaSelection(ReplicaSelection.Builder builderForValue)
public ReplicaComputeCapacity.Builder setReplicaSelection(ReplicaSelection.Builder builderForValue)
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];
Parameter | |
---|---|
Name | Description |
builderForValue |
ReplicaSelection.Builder |
Returns | |
---|---|
Type | Description |
ReplicaComputeCapacity.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final ReplicaComputeCapacity.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ReplicaComputeCapacity.Builder |