Output only. The timestamp when the resource was updated.
↳ service
string
Optional. The full Service Directory Service name of the formatprojects/*/locations/*/namespaces/*/services/*. This field is for Service Directory integration which will be deprecated soon.
↳ service_id
string
Output only. The unique identifier of the Service Directory Service against which the ServiceBinding resource is validated. This is populated when the Service Binding resource is used in another resource (like Backend Service). This is of the UUID4 format. This field is for Service Directory integration which will be deprecated soon.
Optional. The full Service Directory Service name of the formatprojects/*/locations/*/namespaces/*/services/*.
This field is for Service Directory integration which will be deprecated
soon.
Returns
Type
Description
string
setService
Optional. The full Service Directory Service name of the formatprojects/*/locations/*/namespaces/*/services/*.
This field is for Service Directory integration which will be deprecated
soon.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getServiceId
Output only. The unique identifier of the Service Directory Service against
which the ServiceBinding resource is validated. This is populated when the
Service Binding resource is used in another resource (like Backend
Service). This is of the UUID4 format. This field is for Service Directory
integration which will be deprecated soon.
Returns
Type
Description
string
setServiceId
Output only. The unique identifier of the Service Directory Service against
which the ServiceBinding resource is validated. This is populated when the
Service Binding resource is used in another resource (like Backend
Service). This is of the UUID4 format. This field is for Service Directory
integration which will be deprecated soon.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getLabels
Optional. Set of label tags associated with the ServiceBinding resource.
[[["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 Network Services V1 Client - Class ServiceBinding (0.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.6.1 (latest)](/php/docs/reference/cloud-networkservices/latest/V1.ServiceBinding)\n- [0.6.0](/php/docs/reference/cloud-networkservices/0.6.0/V1.ServiceBinding)\n- [0.5.0](/php/docs/reference/cloud-networkservices/0.5.0/V1.ServiceBinding)\n- [0.4.0](/php/docs/reference/cloud-networkservices/0.4.0/V1.ServiceBinding)\n- [0.3.0](/php/docs/reference/cloud-networkservices/0.3.0/V1.ServiceBinding)\n- [0.2.3](/php/docs/reference/cloud-networkservices/0.2.3/V1.ServiceBinding)\n- [0.1.1](/php/docs/reference/cloud-networkservices/0.1.1/V1.ServiceBinding) \nReference documentation and code samples for the Google Cloud Network Services V1 Client class ServiceBinding.\n\nServiceBinding can be used to:\n\n- Bind a Service Directory Service to be used in a BackendService resource.\n\nThis feature will be deprecated soon.\n\n- Bind a Private Service Connect producer service to be used in consumer Cloud Service Mesh or Application Load Balancers.\n- Bind a Cloud Run service to be used in consumer Cloud Service Mesh or Application Load Balancers.\n\nGenerated from protobuf message `google.cloud.networkservices.v1.ServiceBinding`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ NetworkServices \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nIdentifier. Name of the ServiceBinding resource. It matches pattern\n`projects/*/locations/*/serviceBindings/\u003cservice_binding_name\u003e`.\n\n### setName\n\nIdentifier. Name of the ServiceBinding resource. It matches pattern\n`projects/*/locations/*/serviceBindings/\u003cservice_binding_name\u003e`.\n\n### getDescription\n\nOptional. A free-text description of the resource. Max length 1024\ncharacters.\n\n### setDescription\n\nOptional. A free-text description of the resource. Max length 1024\ncharacters.\n\n### getCreateTime\n\nOutput only. The timestamp when the resource was created.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nOutput only. The timestamp when the resource was created.\n\n### getUpdateTime\n\nOutput only. The timestamp when the resource was updated.\n\n### hasUpdateTime\n\n### clearUpdateTime\n\n### setUpdateTime\n\nOutput only. The timestamp when the resource was updated.\n\n### getService\n\nOptional. The full Service Directory Service name of the format\n`projects/*/locations/*/namespaces/*/services/*`.\n\nThis field is for Service Directory integration which will be deprecated\nsoon.\n\n### setService\n\nOptional. The full Service Directory Service name of the format\n`projects/*/locations/*/namespaces/*/services/*`.\n\nThis field is for Service Directory integration which will be deprecated\nsoon.\n\n### getServiceId\n\nOutput only. The unique identifier of the Service Directory Service against\nwhich the ServiceBinding resource is validated. This is populated when the\nService Binding resource is used in another resource (like Backend\nService). This is of the UUID4 format. This field is for Service Directory\nintegration which will be deprecated soon.\n\n### setServiceId\n\nOutput only. The unique identifier of the Service Directory Service against\nwhich the ServiceBinding resource is validated. This is populated when the\nService Binding resource is used in another resource (like Backend\nService). This is of the UUID4 format. This field is for Service Directory\nintegration which will be deprecated soon.\n\n### getLabels\n\nOptional. Set of label tags associated with the ServiceBinding resource.\n\n### setLabels\n\nOptional. Set of label tags associated with the ServiceBinding resource."]]