Required. The ID to use for the Connection, which will become the final component of the Connection's resource name. Names must be unique per-project per-location. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.
getParent
Required. Project and location where the connection will be created.
Format:projects/*/locations/*.
Returns
Type
Description
string
setParent
Required. Project and location where the connection will be created.
Required. The ID to use for the Connection, which will become the final
component of the Connection's resource name. Names must be unique
per-project per-location. Allows alphanumeric characters and any of
-._~%!$&'()*+,;=@.
Returns
Type
Description
string
setConnectionId
Required. The ID to use for the Connection, which will become the final
component of the Connection's resource name. Names must be unique
per-project per-location. Allows alphanumeric characters and any of
-._~%!$&'()*+,;=@.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameters
Name
Description
parent
string
Required. Project and location where the connection will be created.
Format:projects/*/locations/*. Please seeRepositoryManagerClient::locationName()for help formatting this field.
Required. The ID to use for the Connection, which will become the final
component of the Connection's resource name. Names must be unique
per-project per-location. Allows alphanumeric characters and any of
-._~%!$&'()*+,;=@.
[[["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 CreateConnectionRequest (1.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.4 (latest)](/php/docs/reference/cloud-build/latest/V2.CreateConnectionRequest)\n- [1.0.3](/php/docs/reference/cloud-build/1.0.3/V2.CreateConnectionRequest)\n- [0.16.3](/php/docs/reference/cloud-build/0.16.3/V2.CreateConnectionRequest)\n- [0.15.0](/php/docs/reference/cloud-build/0.15.0/V2.CreateConnectionRequest)\n- [0.14.0](/php/docs/reference/cloud-build/0.14.0/V2.CreateConnectionRequest)\n- [0.13.2](/php/docs/reference/cloud-build/0.13.2/V2.CreateConnectionRequest)\n- [0.12.0](/php/docs/reference/cloud-build/0.12.0/V2.CreateConnectionRequest)\n- [0.11.0](/php/docs/reference/cloud-build/0.11.0/V2.CreateConnectionRequest)\n- [0.10.0](/php/docs/reference/cloud-build/0.10.0/V2.CreateConnectionRequest)\n- [0.9.0](/php/docs/reference/cloud-build/0.9.0/V2.CreateConnectionRequest)\n- [0.8.0](/php/docs/reference/cloud-build/0.8.0/V2.CreateConnectionRequest)\n- [0.7.3](/php/docs/reference/cloud-build/0.7.3/V2.CreateConnectionRequest)\n- [0.6.1](/php/docs/reference/cloud-build/0.6.1/V2.CreateConnectionRequest)\n- [0.5.1](/php/docs/reference/cloud-build/0.5.1/V2.CreateConnectionRequest)\n- [0.4.0](/php/docs/reference/cloud-build/0.4.0/V2.CreateConnectionRequest)\n- [0.3.8](/php/docs/reference/cloud-build/0.3.8/V2.CreateConnectionRequest) \nReference documentation and code samples for the Google Cloud Build V2 Client class CreateConnectionRequest.\n\nMessage for creating a Connection\n\nGenerated from protobuf message `google.devtools.cloudbuild.v2.CreateConnectionRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Build \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. Project and location where the connection will be created.\n\nFormat: `projects/*/locations/*`.\n\n### setParent\n\nRequired. Project and location where the connection will be created.\n\nFormat: `projects/*/locations/*`.\n\n### getConnection\n\nRequired. The Connection to create.\n\n### hasConnection\n\n### clearConnection\n\n### setConnection\n\nRequired. The Connection to create.\n\n### getConnectionId\n\nRequired. The ID to use for the Connection, which will become the final\ncomponent of the Connection's resource name. Names must be unique\nper-project per-location. Allows alphanumeric characters and any of\n-._\\~%!$\\&'()\\*+,;=@.\n\n### setConnectionId\n\nRequired. The ID to use for the Connection, which will become the final\ncomponent of the Connection's resource name. Names must be unique\nper-project per-location. Allows alphanumeric characters and any of\n-._\\~%!$\\&'()\\*+,;=@.\n\n### static::build"]]