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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eReplicaComputeCapacity\u003c/code\u003e class within the Google Cloud Spanner Instance Administration v1 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eReplicaComputeCapacity\u003c/code\u003e class defines the server resource allocation for each replica, identified by the replica selection, detailing the compute capacity, and node or processing units.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eReplicaComputeCapacity\u003c/code\u003e is \u003ccode\u003e5.0.0-beta05\u003c/code\u003e, and multiple other versions, including beta and stable releases, are also listed, spanning from version 3.5.0 up to the most recent.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eReplicaComputeCapacity\u003c/code\u003e inherits from \u003ccode\u003eobject\u003c/code\u003e and implements several interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, to support various operations and functionalities within the .NET environment.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eReplicaComputeCapacity\u003c/code\u003e class offers properties such as \u003ccode\u003eNodeCount\u003c/code\u003e and \u003ccode\u003eProcessingUnits\u003c/code\u003e to specify the resources allocated, and a \u003ccode\u003eReplicaSelection\u003c/code\u003e property to identify the replicas being modified.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Spanner Instance Administration v1 API - Class ReplicaComputeCapacity (5.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [5.1.0 (latest)](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/latest/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaComputeCapacity)\n- [5.0.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/5.0.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaComputeCapacity)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/4.6.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaComputeCapacity)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/4.5.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaComputeCapacity)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/4.4.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaComputeCapacity)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/4.3.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaComputeCapacity)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/4.2.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaComputeCapacity)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/4.1.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaComputeCapacity)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/4.0.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaComputeCapacity)\n- [3.15.1](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/3.15.1/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaComputeCapacity)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/3.14.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaComputeCapacity)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/3.13.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaComputeCapacity)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/3.12.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaComputeCapacity)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/3.11.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaComputeCapacity)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/3.10.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaComputeCapacity)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/3.9.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaComputeCapacity)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/3.8.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaComputeCapacity)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/3.7.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaComputeCapacity)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/3.6.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaComputeCapacity)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/3.5.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaComputeCapacity) \n\n public sealed class ReplicaComputeCapacity : IMessage\u003cReplicaComputeCapacity\u003e, IEquatable\u003cReplicaComputeCapacity\u003e, IDeepCloneable\u003cReplicaComputeCapacity\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Spanner Instance Administration v1 API class ReplicaComputeCapacity.\n\nReplicaComputeCapacity describes the amount of server resources that are\nallocated to each replica identified by the replica selection. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ReplicaComputeCapacity \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ReplicaComputeCapacity](/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](/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](/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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Spanner.Admin.Instance.V1](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/latest/Google.Cloud.Spanner.Admin.Instance.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Spanner.Admin.Instance.V1.dll\n\nConstructors\n------------\n\n### ReplicaComputeCapacity()\n\n public ReplicaComputeCapacity()\n\n### ReplicaComputeCapacity(ReplicaComputeCapacity)\n\n public ReplicaComputeCapacity(ReplicaComputeCapacity other)\n\nProperties\n----------\n\n### ComputeCapacityCase\n\n public ReplicaComputeCapacity.ComputeCapacityOneofCase ComputeCapacityCase { get; }\n\n### HasNodeCount\n\n public bool HasNodeCount { get; }\n\nGets whether the \"node_count\" field is set\n\n### HasProcessingUnits\n\n public bool HasProcessingUnits { get; }\n\nGets whether the \"processing_units\" field is set\n\n### NodeCount\n\n public int NodeCount { get; set; }\n\nThe number of nodes allocated to each replica.\n\nThis may be zero in API responses for instances that are not yet in\nstate `READY`.\n\n### ProcessingUnits\n\n public int ProcessingUnits { get; set; }\n\nThe number of processing units allocated to each replica.\n\nThis may be zero in API responses for instances that are not yet in\nstate `READY`.\n\n### ReplicaSelection\n\n public ReplicaSelection ReplicaSelection { get; set; }\n\nRequired. Identifies replicas by specified properties.\nAll replicas in the selection have the same amount of compute capacity."]]