Optional. The full Service Directory Service name of the format
projects/*/locations/*/namespaces/*/services/*.
This field is for Service Directory integration which will be deprecated
soon.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eServiceBinding\u003c/code\u003e class in the Network Services v1 API defines a Service Directory Service for use in a \u003ccode\u003eBackendService\u003c/code\u003e resource.\u003c/p\u003e\n"],["\u003cp\u003eIt implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eServiceBinding\u003c/code\u003e include \u003ccode\u003eName\u003c/code\u003e (the resource name), \u003ccode\u003eService\u003c/code\u003e (the service directory service name), and optional fields like \u003ccode\u003eDescription\u003c/code\u003e and \u003ccode\u003eLabels\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCreateTime\u003c/code\u003e and \u003ccode\u003eUpdateTime\u003c/code\u003e properties track when the \u003ccode\u003eServiceBinding\u003c/code\u003e resource was created and last modified, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThere are two different constructors for this class: one empty and another using a different \u003ccode\u003eServiceBinding\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,["# Network Services v1 API - Class ServiceBinding (1.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.0 (latest)](/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.ServiceBinding)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/1.2.0/Google.Cloud.NetworkServices.V1.ServiceBinding)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/1.1.0/Google.Cloud.NetworkServices.V1.ServiceBinding)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/1.0.0/Google.Cloud.NetworkServices.V1.ServiceBinding) \n\n public sealed class ServiceBinding : IMessage\u003cServiceBinding\u003e, IEquatable\u003cServiceBinding\u003e, IDeepCloneable\u003cServiceBinding\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Network Services v1 API class ServiceBinding.\n\nServiceBinding can be used to:\n\n- Bind a Service Directory Service to be used in a BackendService resource. This feature will be deprecated soon.\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\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ServiceBinding \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ServiceBinding](/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.ServiceBinding), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ServiceBinding](/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.ServiceBinding), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ServiceBinding](/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.ServiceBinding), [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.NetworkServices.V1](/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.NetworkServices.V1.dll\n\nConstructors\n------------\n\n### ServiceBinding()\n\n public ServiceBinding()\n\n### ServiceBinding(ServiceBinding)\n\n public ServiceBinding(ServiceBinding other)\n\nProperties\n----------\n\n### CreateTime\n\n public Timestamp CreateTime { get; set; }\n\nOutput only. The timestamp when the resource was created.\n\n### Description\n\n public string Description { get; set; }\n\nOptional. A free-text description of the resource. Max length 1024\ncharacters.\n\n### Labels\n\n public MapField\u003cstring, string\u003e Labels { get; }\n\nOptional. Set of label tags associated with the ServiceBinding resource.\n\n### Name\n\n public string Name { get; set; }\n\nIdentifier. Name of the ServiceBinding resource. It matches pattern\n`projects/*/locations/*/serviceBindings/\u003cservice_binding_name\u003e`.\n\n### Service\n\n [Obsolete]\n public string Service { get; set; }\n\nOptional. The full Service Directory Service name of the format\n`projects/*/locations/*/namespaces/*/services/*`.\nThis field is for Service Directory integration which will be deprecated\nsoon.\n\n### ServiceAsServiceName\n\n [Obsolete]\n public ServiceName ServiceAsServiceName { get; set; }\n\n[ServiceName](/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.ServiceName)-typed view over the [Service](/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.ServiceBinding#Google_Cloud_NetworkServices_V1_ServiceBinding_Service) resource name property.\n\n### ServiceBindingName\n\n public ServiceBindingName ServiceBindingName { get; set; }\n\n[ServiceBindingName](/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.ServiceBindingName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.ServiceBinding#Google_Cloud_NetworkServices_V1_ServiceBinding_Name) resource name property.\n\n### ServiceId\n\n [Obsolete]\n public string ServiceId { get; set; }\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### UpdateTime\n\n public Timestamp UpdateTime { get; set; }\n\nOutput only. The timestamp when the resource was updated."]]