If set to true, and the connection is not found a new connection will be created. In this situationupdate_maskis 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).
↳ etag
string
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.
If set to true, and the connection is not found a new connection
will be created. In this situationupdate_maskis 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).
Returns
Type
Description
bool
setAllowMissing
If set to true, and the connection is not found a new connection
will be created. In this situationupdate_maskis 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).
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getEtag
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.
Returns
Type
Description
string
setEtag
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."],[],[],null,["# Google Cloud Build V2 Client - Class UpdateConnectionRequest (1.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.4 (latest)](/php/docs/reference/cloud-build/latest/V2.UpdateConnectionRequest)\n- [1.0.3](/php/docs/reference/cloud-build/1.0.3/V2.UpdateConnectionRequest)\n- [0.16.3](/php/docs/reference/cloud-build/0.16.3/V2.UpdateConnectionRequest)\n- [0.15.0](/php/docs/reference/cloud-build/0.15.0/V2.UpdateConnectionRequest)\n- [0.14.0](/php/docs/reference/cloud-build/0.14.0/V2.UpdateConnectionRequest)\n- [0.13.2](/php/docs/reference/cloud-build/0.13.2/V2.UpdateConnectionRequest)\n- [0.12.0](/php/docs/reference/cloud-build/0.12.0/V2.UpdateConnectionRequest)\n- [0.11.0](/php/docs/reference/cloud-build/0.11.0/V2.UpdateConnectionRequest)\n- [0.10.0](/php/docs/reference/cloud-build/0.10.0/V2.UpdateConnectionRequest)\n- [0.9.0](/php/docs/reference/cloud-build/0.9.0/V2.UpdateConnectionRequest)\n- [0.8.0](/php/docs/reference/cloud-build/0.8.0/V2.UpdateConnectionRequest)\n- [0.7.3](/php/docs/reference/cloud-build/0.7.3/V2.UpdateConnectionRequest)\n- [0.6.1](/php/docs/reference/cloud-build/0.6.1/V2.UpdateConnectionRequest)\n- [0.5.1](/php/docs/reference/cloud-build/0.5.1/V2.UpdateConnectionRequest)\n- [0.4.0](/php/docs/reference/cloud-build/0.4.0/V2.UpdateConnectionRequest)\n- [0.3.8](/php/docs/reference/cloud-build/0.3.8/V2.UpdateConnectionRequest) \nReference documentation and code samples for the Google Cloud Build V2 Client class UpdateConnectionRequest.\n\nMessage for updating a Connection.\n\nGenerated from protobuf message `google.devtools.cloudbuild.v2.UpdateConnectionRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Build \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getConnection\n\nRequired. The Connection to update.\n\n### hasConnection\n\n### clearConnection\n\n### setConnection\n\nRequired. The Connection to update.\n\n### getUpdateMask\n\nThe list of fields to be updated.\n\n### hasUpdateMask\n\n### clearUpdateMask\n\n### setUpdateMask\n\nThe list of fields to be updated.\n\n### getAllowMissing\n\nIf set to true, and the connection is not found a new connection\nwill be created. In this situation `update_mask` is ignored.\n\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### setAllowMissing\n\nIf set to true, and the connection is not found a new connection\nwill be created. In this situation `update_mask` is ignored.\n\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### getEtag\n\nThe current etag of the connection.\n\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### setEtag\n\nThe current etag of the connection.\n\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### static::build"]]