public sealed class UpdateConnectionRequest : IMessage<UpdateConnectionRequest>, IEquatable<UpdateConnectionRequest>, IDeepCloneable<UpdateConnectionRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Build v2 API class UpdateConnectionRequest.
If set to true, and the connection is not found a new connection
will be created. In this situation update_mask is ignored.
The creation will succeed only if the input connection has all the
necessary information (e.g a github_config with both user_oauth_token and
installation_id properties).
The current etag of the connection.
If an etag is provided and does not match the current etag of the
connection, update will be blocked and an ABORTED error will be returned.
[[["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-09-04 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eUpdateConnectionRequest\u003c/code\u003e class within the Google Cloud Build v2 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUpdateConnectionRequest\u003c/code\u003e class is used to update a connection and is part of the \u003ccode\u003eGoogle.Cloud.CloudBuild.V2\u003c/code\u003e namespace, found within the \u003ccode\u003eGoogle.Cloud.CloudBuild.V2.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThis class includes properties like \u003ccode\u003eAllowMissing\u003c/code\u003e, \u003ccode\u003eConnection\u003c/code\u003e, \u003ccode\u003eEtag\u003c/code\u003e, and \u003ccode\u003eUpdateMask\u003c/code\u003e, which are used to manage the update process of a connection, such as optional creation of new connections if not found, specifying the connection to update, managing concurrency, and listing fields to update.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions of this documentation available ranging from version 1.0.0 to the latest version 1.4.0, which can be accessed through the provided links.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements multiple interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e and inherits from \u003ccode\u003eobject\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Cloud Build v2 API - Class UpdateConnectionRequest (1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.UpdateConnectionRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.3.0/Google.Cloud.CloudBuild.V2.UpdateConnectionRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.2.0/Google.Cloud.CloudBuild.V2.UpdateConnectionRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.1.0/Google.Cloud.CloudBuild.V2.UpdateConnectionRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.0.0/Google.Cloud.CloudBuild.V2.UpdateConnectionRequest) \n\n public sealed class UpdateConnectionRequest : IMessage\u003cUpdateConnectionRequest\u003e, IEquatable\u003cUpdateConnectionRequest\u003e, IDeepCloneable\u003cUpdateConnectionRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Build v2 API class UpdateConnectionRequest.\n\nMessage for updating a Connection. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e UpdateConnectionRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[UpdateConnectionRequest](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.UpdateConnectionRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[UpdateConnectionRequest](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.UpdateConnectionRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[UpdateConnectionRequest](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.UpdateConnectionRequest), [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.CloudBuild.V2](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.CloudBuild.V2.dll\n\nConstructors\n------------\n\n### UpdateConnectionRequest()\n\n public UpdateConnectionRequest()\n\n### UpdateConnectionRequest(UpdateConnectionRequest)\n\n public UpdateConnectionRequest(UpdateConnectionRequest other)\n\nProperties\n----------\n\n### AllowMissing\n\n public bool AllowMissing { get; set; }\n\nIf set to true, and the connection is not found a new connection\nwill be created. In this situation `update_mask` is ignored.\nThe creation will succeed only if the input connection has all the\nnecessary information (e.g a github_config with both user_oauth_token and\ninstallation_id properties).\n\n### Connection\n\n public Connection Connection { get; set; }\n\nRequired. The Connection to update.\n\n### Etag\n\n public string Etag { get; set; }\n\nThe current etag of the connection.\nIf an etag is provided and does not match the current etag of the\nconnection, update will be blocked and an ABORTED error will be returned.\n\n### UpdateMask\n\n public FieldMask UpdateMask { get; set; }\n\nThe list of fields to be updated."]]