# Google Cloud Spanner Instance Administration v1 API - Class ReplicaComputeCapacity (5.13.0-beta07)

5.13.0-beta07 5.13.0-beta06 5.12.0 (latest) 5.11.0 5.10.0 5.9.0 5.8.0 5.7.0 5.6.0 5.5.0 5.4.0 5.3.0 5.2.0 5.1.0 5.0.0 4.6.0 4.5.0 4.4.0 4.3.0 4.2.0 4.1.0 4.0.0 3.15.1 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0

    public sealed class ReplicaComputeCapacity : IMessage<ReplicaComputeCapacity>, IEquatable<ReplicaComputeCapacity>, IDeepCloneable<ReplicaComputeCapacity>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Spanner Instance Administration v1 API class ReplicaComputeCapacity.

ReplicaComputeCapacity describes the amount of server resources that are
allocated to each replica identified by the replica selection.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ReplicaComputeCapacity

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ReplicaComputeCapacity](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/latest/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaComputeCapacity), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ReplicaComputeCapacity](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/latest/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaComputeCapacity), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ReplicaComputeCapacity](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/latest/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaComputeCapacity), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Spanner.Admin.Instance.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/latest/Google.Cloud.Spanner.Admin.Instance.V1)

## Assembly

Google.Cloud.Spanner.Admin.Instance.V1.dll

## Constructors

### ReplicaComputeCapacity()

    public ReplicaComputeCapacity()

### ReplicaComputeCapacity(ReplicaComputeCapacity)

    public ReplicaComputeCapacity(ReplicaComputeCapacity other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/latest/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaComputeCapacity` |

## Properties

### ComputeCapacityCase

    public ReplicaComputeCapacity.ComputeCapacityOneofCase ComputeCapacityCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/latest/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaComputeCapacityhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/latest/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaComputeCapacity.ComputeCapacityOneofCase` |   |

### HasNodeCount

    public bool HasNodeCount { get; }

Gets whether the "node_count" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasProcessingUnits

    public bool HasProcessingUnits { get; }

Gets whether the "processing_units" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### NodeCount

    public int NodeCount { get; set; }

The number of nodes allocated to each replica.

This may be zero in API responses for instances that are not yet in
state `READY`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### ProcessingUnits

    public int ProcessingUnits { get; set; }

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`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### ReplicaSelection

    public ReplicaSelection ReplicaSelection { get; set; }

Required. Identifies replicas by specified properties.
All replicas in the selection have the same amount of compute capacity.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/latest/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaSelection` |   |