Class ReplicaComputeCapacity (6.83.0)

public final class ReplicaComputeCapacity extends GeneratedMessageV3 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

Static Fields

NODE_COUNT_FIELD_NUMBER

public static final int NODE_COUNT_FIELD_NUMBER
Field Value
Type Description
int

PROCESSING_UNITS_FIELD_NUMBER

public static final int PROCESSING_UNITS_FIELD_NUMBER
Field Value
Type Description
int

REPLICA_SELECTION_FIELD_NUMBER

public static final int REPLICA_SELECTION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ReplicaComputeCapacity getDefaultInstance()
Returns
Type Description
ReplicaComputeCapacity

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static ReplicaComputeCapacity.Builder newBuilder()
Returns
Type Description
ReplicaComputeCapacity.Builder

newBuilder(ReplicaComputeCapacity prototype)

public static ReplicaComputeCapacity.Builder newBuilder(ReplicaComputeCapacity prototype)
Parameter
Name Description
prototype ReplicaComputeCapacity
Returns
Type Description
ReplicaComputeCapacity.Builder

parseDelimitedFrom(InputStream input)

public static ReplicaComputeCapacity parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ReplicaComputeCapacity
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ReplicaComputeCapacity parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReplicaComputeCapacity
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ReplicaComputeCapacity parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ReplicaComputeCapacity
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ReplicaComputeCapacity parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReplicaComputeCapacity
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ReplicaComputeCapacity parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ReplicaComputeCapacity
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ReplicaComputeCapacity parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReplicaComputeCapacity
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ReplicaComputeCapacity parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ReplicaComputeCapacity
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ReplicaComputeCapacity parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReplicaComputeCapacity
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ReplicaComputeCapacity parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ReplicaComputeCapacity
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ReplicaComputeCapacity parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReplicaComputeCapacity
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ReplicaComputeCapacity parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ReplicaComputeCapacity
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ReplicaComputeCapacity parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReplicaComputeCapacity
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ReplicaComputeCapacity> parser()
Returns
Type Description
Parser<ReplicaComputeCapacity>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getComputeCapacityCase()

public ReplicaComputeCapacity.ComputeCapacityCase getComputeCapacityCase()
Returns
Type Description
ReplicaComputeCapacity.ComputeCapacityCase

getDefaultInstanceForType()

public ReplicaComputeCapacity getDefaultInstanceForType()
Returns
Type Description
ReplicaComputeCapacity

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.

getParserForType()

public Parser<ReplicaComputeCapacity> getParserForType()
Returns
Type Description
Parser<ReplicaComputeCapacity>
Overrides

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.

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ReplicaComputeCapacity.Builder newBuilderForType()
Returns
Type Description
ReplicaComputeCapacity.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ReplicaComputeCapacity.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ReplicaComputeCapacity.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ReplicaComputeCapacity.Builder toBuilder()
Returns
Type Description
ReplicaComputeCapacity.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException