public sealed class UpdateInstanceRequest : IMessage<UpdateInstanceRequest>, IEquatable<UpdateInstanceRequest>, IDeepCloneable<UpdateInstanceRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Spanner Instance Administration v1 API class UpdateInstanceRequest.
The request for
[UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance].
Required. A mask specifying which fields in
[Instance][google.spanner.admin.instance.v1.Instance] should be updated.
The field mask must always be specified; this prevents any future fields in
[Instance][google.spanner.admin.instance.v1.Instance] from being erased
accidentally by clients that do not know about them.
Required. The instance to update, which must always include the instance
name. Otherwise, only fields mentioned in
[field_mask][google.spanner.admin.instance.v1.UpdateInstanceRequest.field_mask]
need be included.
[[["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\u003eUpdateInstanceRequest\u003c/code\u003e class within the Google Cloud Spanner Instance Administration v1 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUpdateInstanceRequest\u003c/code\u003e class is used to send requests to update instances via the \u003ccode\u003eInstanceAdmin.UpdateInstance\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eUpdateInstanceRequest\u003c/code\u003e is 5.0.0-beta05, and various older versions are also documented, from 5.0.0-beta04 all the way back to 3.5.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUpdateInstanceRequest\u003c/code\u003e implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and also contains two crucial properties: \u003ccode\u003eFieldMask\u003c/code\u003e and \u003ccode\u003eInstance\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation lists the \u003ccode\u003eUpdateInstanceRequest\u003c/code\u003e constructors, inherited members, and describes the required properties, such as \u003ccode\u003eFieldMask\u003c/code\u003e, used to define which instance fields to update, and \u003ccode\u003eInstance\u003c/code\u003e, the instance object to be updated.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Spanner Instance Administration v1 API - Class UpdateInstanceRequest (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.UpdateInstanceRequest)\n- [5.0.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/5.0.0/Google.Cloud.Spanner.Admin.Instance.V1.UpdateInstanceRequest)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/4.6.0/Google.Cloud.Spanner.Admin.Instance.V1.UpdateInstanceRequest)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/4.5.0/Google.Cloud.Spanner.Admin.Instance.V1.UpdateInstanceRequest)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/4.4.0/Google.Cloud.Spanner.Admin.Instance.V1.UpdateInstanceRequest)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/4.3.0/Google.Cloud.Spanner.Admin.Instance.V1.UpdateInstanceRequest)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/4.2.0/Google.Cloud.Spanner.Admin.Instance.V1.UpdateInstanceRequest)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/4.1.0/Google.Cloud.Spanner.Admin.Instance.V1.UpdateInstanceRequest)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/4.0.0/Google.Cloud.Spanner.Admin.Instance.V1.UpdateInstanceRequest)\n- [3.15.1](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/3.15.1/Google.Cloud.Spanner.Admin.Instance.V1.UpdateInstanceRequest)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/3.14.0/Google.Cloud.Spanner.Admin.Instance.V1.UpdateInstanceRequest)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/3.13.0/Google.Cloud.Spanner.Admin.Instance.V1.UpdateInstanceRequest)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/3.12.0/Google.Cloud.Spanner.Admin.Instance.V1.UpdateInstanceRequest)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/3.11.0/Google.Cloud.Spanner.Admin.Instance.V1.UpdateInstanceRequest)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/3.10.0/Google.Cloud.Spanner.Admin.Instance.V1.UpdateInstanceRequest)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/3.9.0/Google.Cloud.Spanner.Admin.Instance.V1.UpdateInstanceRequest)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/3.8.0/Google.Cloud.Spanner.Admin.Instance.V1.UpdateInstanceRequest)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/3.7.0/Google.Cloud.Spanner.Admin.Instance.V1.UpdateInstanceRequest)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/3.6.0/Google.Cloud.Spanner.Admin.Instance.V1.UpdateInstanceRequest)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/3.5.0/Google.Cloud.Spanner.Admin.Instance.V1.UpdateInstanceRequest) \n\n public sealed class UpdateInstanceRequest : IMessage\u003cUpdateInstanceRequest\u003e, IEquatable\u003cUpdateInstanceRequest\u003e, IDeepCloneable\u003cUpdateInstanceRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Spanner Instance Administration v1 API class UpdateInstanceRequest.\n\nThe request for\n\\[UpdateInstance\\]\\[google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e UpdateInstanceRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[UpdateInstanceRequest](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/latest/Google.Cloud.Spanner.Admin.Instance.V1.UpdateInstanceRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[UpdateInstanceRequest](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/latest/Google.Cloud.Spanner.Admin.Instance.V1.UpdateInstanceRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[UpdateInstanceRequest](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Instance.V1/latest/Google.Cloud.Spanner.Admin.Instance.V1.UpdateInstanceRequest), [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### UpdateInstanceRequest()\n\n public UpdateInstanceRequest()\n\n### UpdateInstanceRequest(UpdateInstanceRequest)\n\n public UpdateInstanceRequest(UpdateInstanceRequest other)\n\nProperties\n----------\n\n### FieldMask\n\n public FieldMask FieldMask { get; set; }\n\nRequired. A mask specifying which fields in\n\\[Instance\\]\\[google.spanner.admin.instance.v1.Instance\\] should be updated.\nThe field mask must always be specified; this prevents any future fields in\n\\[Instance\\]\\[google.spanner.admin.instance.v1.Instance\\] from being erased\naccidentally by clients that do not know about them.\n\n### Instance\n\n public Instance Instance { get; set; }\n\nRequired. The instance to update, which must always include the instance\nname. Otherwise, only fields mentioned in\n\\[field_mask\\]\\[google.spanner.admin.instance.v1.UpdateInstanceRequest.field_mask\\]\nneed be included."]]