public sealed class ServiceDirectoryConfig : IMessage<ServiceDirectoryConfig>, IEquatable<ServiceDirectoryConfig>, IDeepCloneable<ServiceDirectoryConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Build v2 API class ServiceDirectoryConfig.
ServiceDirectoryConfig represents Service Directory configuration for a
connection.
[[["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."],[[["\u003cp\u003eThe \u003ccode\u003eServiceDirectoryConfig\u003c/code\u003e class in the Cloud Build v2 API represents the Service Directory configuration for a connection.\u003c/p\u003e\n"],["\u003cp\u003eThis class is part of the \u003ccode\u003eGoogle.Cloud.CloudBuild.V2\u003c/code\u003e namespace and is implemented in the \u003ccode\u003eGoogle.Cloud.CloudBuild.V2.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits from \u003ccode\u003eobject\u003c/code\u003e and 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.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eServiceDirectoryConfig\u003c/code\u003e class includes properties such as \u003ccode\u003eService\u003c/code\u003e (a string representing the Service Directory service name) and \u003ccode\u003eServiceAsServiceName\u003c/code\u003e (a \u003ccode\u003eServiceName\u003c/code\u003e-typed view over the \u003ccode\u003eService\u003c/code\u003e resource name).\u003c/p\u003e\n"],["\u003cp\u003eThere are currently 5 versions of the service directory config documentations, ranging from version 1.0.0 to the latest version, 1.4.0.\u003c/p\u003e\n"]]],[],null,["# Cloud Build v2 API - Class ServiceDirectoryConfig (1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.ServiceDirectoryConfig)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.3.0/Google.Cloud.CloudBuild.V2.ServiceDirectoryConfig)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.2.0/Google.Cloud.CloudBuild.V2.ServiceDirectoryConfig)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.1.0/Google.Cloud.CloudBuild.V2.ServiceDirectoryConfig)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.0.0/Google.Cloud.CloudBuild.V2.ServiceDirectoryConfig) \n\n public sealed class ServiceDirectoryConfig : IMessage\u003cServiceDirectoryConfig\u003e, IEquatable\u003cServiceDirectoryConfig\u003e, IDeepCloneable\u003cServiceDirectoryConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Build v2 API class ServiceDirectoryConfig.\n\nServiceDirectoryConfig represents Service Directory configuration for a\nconnection. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ServiceDirectoryConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ServiceDirectoryConfig](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.ServiceDirectoryConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ServiceDirectoryConfig](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.ServiceDirectoryConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ServiceDirectoryConfig](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.ServiceDirectoryConfig), [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.CloudBuild.V2](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.CloudBuild.V2.dll\n\nConstructors\n------------\n\n### ServiceDirectoryConfig()\n\n public ServiceDirectoryConfig()\n\n### ServiceDirectoryConfig(ServiceDirectoryConfig)\n\n public ServiceDirectoryConfig(ServiceDirectoryConfig other)\n\nProperties\n----------\n\n### Service\n\n public string Service { get; set; }\n\nRequired. The Service Directory service name.\nFormat:\nprojects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.\n\n### ServiceAsServiceName\n\n public ServiceName ServiceAsServiceName { get; set; }\n\n[ServiceName](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.ServiceName)-typed view over the [Service](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.ServiceDirectoryConfig#Google_Cloud_CloudBuild_V2_ServiceDirectoryConfig_Service) resource name property."]]