Allows clients to store small amounts of arbitrary data.
↳ etag
string
This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
↳ webhook_id
string
Output only. External ID of the webhook created for the repository.
getName
Immutable. Resource name of the repository, in the formatprojects/*/locations/*/connections/*/repositories/*.
Returns
Type
Description
string
setName
Immutable. Resource name of the repository, in the formatprojects/*/locations/*/connections/*/repositories/*.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getRemoteUri
Required. Git Clone HTTPS URI.
Returns
Type
Description
string
setRemoteUri
Required. Git Clone HTTPS URI.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getCreateTime
Output only. Server assigned timestamp for when the connection was created.
This checksum is computed by the server based on the value of other
fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.
Returns
Type
Description
string
setEtag
This checksum is computed by the server based on the value of other
fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getWebhookId
Output only. External ID of the webhook created for the repository.
Returns
Type
Description
string
setWebhookId
Output only. External ID of the webhook created for the repository.
[[["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 Repository (1.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.4 (latest)](/php/docs/reference/cloud-build/latest/V2.Repository)\n- [1.0.3](/php/docs/reference/cloud-build/1.0.3/V2.Repository)\n- [0.16.3](/php/docs/reference/cloud-build/0.16.3/V2.Repository)\n- [0.15.0](/php/docs/reference/cloud-build/0.15.0/V2.Repository)\n- [0.14.0](/php/docs/reference/cloud-build/0.14.0/V2.Repository)\n- [0.13.2](/php/docs/reference/cloud-build/0.13.2/V2.Repository)\n- [0.12.0](/php/docs/reference/cloud-build/0.12.0/V2.Repository)\n- [0.11.0](/php/docs/reference/cloud-build/0.11.0/V2.Repository)\n- [0.10.0](/php/docs/reference/cloud-build/0.10.0/V2.Repository)\n- [0.9.0](/php/docs/reference/cloud-build/0.9.0/V2.Repository)\n- [0.8.0](/php/docs/reference/cloud-build/0.8.0/V2.Repository)\n- [0.7.3](/php/docs/reference/cloud-build/0.7.3/V2.Repository)\n- [0.6.1](/php/docs/reference/cloud-build/0.6.1/V2.Repository)\n- [0.5.1](/php/docs/reference/cloud-build/0.5.1/V2.Repository)\n- [0.4.0](/php/docs/reference/cloud-build/0.4.0/V2.Repository)\n- [0.3.8](/php/docs/reference/cloud-build/0.3.8/V2.Repository) \nReference documentation and code samples for the Google Cloud Build V2 Client class Repository.\n\nA repository associated to a parent connection.\n\nGenerated from protobuf message `google.devtools.cloudbuild.v2.Repository`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Build \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nImmutable. Resource name of the repository, in the format\n`projects/*/locations/*/connections/*/repositories/*`.\n\n### setName\n\nImmutable. Resource name of the repository, in the format\n`projects/*/locations/*/connections/*/repositories/*`.\n\n### getRemoteUri\n\nRequired. Git Clone HTTPS URI.\n\n### setRemoteUri\n\nRequired. Git Clone HTTPS URI.\n\n### getCreateTime\n\nOutput only. Server assigned timestamp for when the connection was created.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nOutput only. Server assigned timestamp for when the connection was created.\n\n### getUpdateTime\n\nOutput only. Server assigned timestamp for when the connection was updated.\n\n### hasUpdateTime\n\n### clearUpdateTime\n\n### setUpdateTime\n\nOutput only. Server assigned timestamp for when the connection was updated.\n\n### getAnnotations\n\nAllows clients to store small amounts of arbitrary data.\n\n### setAnnotations\n\nAllows clients to store small amounts of arbitrary data.\n\n### getEtag\n\nThis checksum is computed by the server based on the value of other\nfields, and may be sent on update and delete requests to ensure the\nclient has an up-to-date value before proceeding.\n\n### setEtag\n\nThis checksum is computed by the server based on the value of other\nfields, and may be sent on update and delete requests to ensure the\nclient has an up-to-date value before proceeding.\n\n### getWebhookId\n\nOutput only. External ID of the webhook created for the repository.\n\n### setWebhookId\n\nOutput only. External ID of the webhook created for the repository."]]