public sealed class ReplicaSelection : IMessage<ReplicaSelection>, IEquatable<ReplicaSelection>, IDeepCloneable<ReplicaSelection>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Spanner Instance Administration v1 API class ReplicaSelection.
ReplicaSelection identifies replicas with common properties.
[[["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\u003eThe latest version available for the \u003ccode\u003eReplicaSelection\u003c/code\u003e class in the Google Cloud Spanner Instance Administration v1 API is 5.0.0-beta05.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eReplicaSelection\u003c/code\u003e identifies replicas with common properties, as part of the Google Cloud Spanner Instance Administration v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis \u003ccode\u003eReplicaSelection\u003c/code\u003e class implements multiple interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eReplicaSelection\u003c/code\u003e class has a \u003ccode\u003eLocation\u003c/code\u003e property which requires the name of the location of the replicas.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation includes a list of available versions of \u003ccode\u003eReplicaSelection\u003c/code\u003e, spanning from 3.5.0 up to the latest beta release.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Spanner Instance Administration v1 API - Class ReplicaSelection (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.ReplicaSelection)\n- [5.0.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/5.0.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaSelection)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/4.6.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaSelection)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/4.5.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaSelection)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/4.4.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaSelection)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/4.3.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaSelection)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/4.2.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaSelection)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/4.1.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaSelection)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/4.0.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaSelection)\n- [3.15.1](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/3.15.1/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaSelection)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/3.14.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaSelection)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/3.13.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaSelection)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/3.12.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaSelection)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/3.11.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaSelection)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/3.10.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaSelection)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/3.9.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaSelection)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/3.8.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaSelection)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/3.7.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaSelection)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/3.6.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaSelection)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/3.5.0/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaSelection) \n\n public sealed class ReplicaSelection : IMessage\u003cReplicaSelection\u003e, IEquatable\u003cReplicaSelection\u003e, IDeepCloneable\u003cReplicaSelection\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Spanner Instance Administration v1 API class ReplicaSelection.\n\nReplicaSelection identifies replicas with common properties. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ReplicaSelection \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ReplicaSelection](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/latest/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaSelection), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ReplicaSelection](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/latest/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaSelection), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ReplicaSelection](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/latest/Google.Cloud.Spanner.Admin.Instance.V1.ReplicaSelection), [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### ReplicaSelection()\n\n public ReplicaSelection()\n\n### ReplicaSelection(ReplicaSelection)\n\n public ReplicaSelection(ReplicaSelection other)\n\nProperties\n----------\n\n### Location\n\n public string Location { get; set; }\n\nRequired. Name of the location of the replicas (e.g., \"us-central1\")."]]