Constructs a new instance of a EndpointName class from the component parts of pattern
projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}/endpoints/{endpoint}
Formats the IDs into the string representation of this EndpointName with pattern
projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}/endpoints/{endpoint}
.
The string representation of this EndpointName with pattern
projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}/endpoints/{endpoint}
.
Formats the IDs into the string representation of this EndpointName with pattern
projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}/endpoints/{endpoint}
.
The string representation of this EndpointName with pattern
projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}/endpoints/{endpoint}
.
If true will successfully store an unparseable resource name into the UnparsedResource
property; otherwise will throw an ArgumentException if an unparseable resource name is
specified.
If true will successfully store an unparseable resource name into the UnparsedResource
property; otherwise will throw an ArgumentException if an unparseable resource name is
specified.
[[["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\u003eThis document provides comprehensive reference information for the \u003ccode\u003eEndpointName\u003c/code\u003e class within the Google Cloud Service Directory v1 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eEndpointName\u003c/code\u003e represents a resource name for an \u003ccode\u003eEndpoint\u003c/code\u003e resource and adheres to the pattern \u003ccode\u003eprojects/{project}/locations/{location}/namespaces/{namespace}/services/{service}/endpoints/{endpoint}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers functionalities to construct, format, parse, and validate \u003ccode\u003eEndpointName\u003c/code\u003e instances, as well as to access its component parts such as \u003ccode\u003eProjectId\u003c/code\u003e, \u003ccode\u003eLocationId\u003c/code\u003e, \u003ccode\u003eNamespaceId\u003c/code\u003e, \u003ccode\u003eServiceId\u003c/code\u003e, and \u003ccode\u003eEndpointId\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available for this class is 2.6.0, with historical versions ranging back to 1.0.0 accessible through the linked documentation.\u003c/p\u003e\n"],["\u003cp\u003eIt implements \u003ccode\u003eIResourceName\u003c/code\u003e and \u003ccode\u003eIEquatable<EndpointName>\u003c/code\u003e, providing a standardized way to interact with resource names and compare instances for equality, and the class can also handle unparsed resource names if needed.\u003c/p\u003e\n"]]],[],null,["# Service Directory v1 API - Class EndpointName (2.6.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.0 (latest)](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.EndpointName)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/2.5.0/Google.Cloud.ServiceDirectory.V1.EndpointName)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/2.4.0/Google.Cloud.ServiceDirectory.V1.EndpointName)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/2.3.0/Google.Cloud.ServiceDirectory.V1.EndpointName)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/2.2.0/Google.Cloud.ServiceDirectory.V1.EndpointName)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/2.1.0/Google.Cloud.ServiceDirectory.V1.EndpointName)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/2.0.0/Google.Cloud.ServiceDirectory.V1.EndpointName)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/1.4.0/Google.Cloud.ServiceDirectory.V1.EndpointName)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/1.3.0/Google.Cloud.ServiceDirectory.V1.EndpointName)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/1.2.0/Google.Cloud.ServiceDirectory.V1.EndpointName)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/1.1.0/Google.Cloud.ServiceDirectory.V1.EndpointName)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/1.0.0/Google.Cloud.ServiceDirectory.V1.EndpointName) \n\n public sealed class EndpointName : IResourceName, IEquatable\u003cEndpointName\u003e\n\nReference documentation and code samples for the Service Directory v1 API class EndpointName.\n\nResource name for the `Endpoint` resource. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e EndpointName \n\nImplements\n----------\n\n[IResourceName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[EndpointName](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.EndpointName) \n\nInherited Members\n-----------------\n\n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype)\n\nNamespace\n---------\n\n[Google.Cloud.ServiceDirectory.V1](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.ServiceDirectory.V1.dll\n\nConstructors\n------------\n\n### EndpointName(string, string, string, string, string)\n\n public EndpointName(string projectId, string locationId, string namespaceId, string serviceId, string endpointId)\n\nConstructs a new instance of a [EndpointName](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.EndpointName) class from the component parts of pattern\n`projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}/endpoints/{endpoint}`\n\nProperties\n----------\n\n### EndpointId\n\n public string EndpointId { get; }\n\nThe `Endpoint` ID. Will not be `null`, unless this instance contains an unparsed resource name.\n\n### IsKnownPattern\n\n public bool IsKnownPattern { get; }\n\nWhether this instance contains a resource name with a known pattern.\n\n### LocationId\n\n public string LocationId { get; }\n\nThe `Location` ID. Will not be `null`, unless this instance contains an unparsed resource name.\n\n### NamespaceId\n\n public string NamespaceId { get; }\n\nThe `Namespace` ID. Will not be `null`, unless this instance contains an unparsed resource name.\n\n### ProjectId\n\n public string ProjectId { get; }\n\nThe `Project` ID. Will not be `null`, unless this instance contains an unparsed resource name.\n\n### ServiceId\n\n public string ServiceId { get; }\n\nThe `Service` ID. Will not be `null`, unless this instance contains an unparsed resource name.\n\n### Type\n\n public EndpointName.ResourceNameType Type { get; }\n\nThe [EndpointName.ResourceNameType](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.EndpointName.ResourceNameType) of the contained resource name.\n\n### UnparsedResource\n\n public UnparsedResourceName UnparsedResource { get; }\n\nThe contained [UnparsedResourceName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.UnparsedResourceName.html). Only non-`null` if this instance contains an\nunparsed resource name.\n\nMethods\n-------\n\n### Format(string, string, string, string, string)\n\n public static string Format(string projectId, string locationId, string namespaceId, string serviceId, string endpointId)\n\nFormats the IDs into the string representation of this [EndpointName](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.EndpointName) with pattern\n`projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}/endpoints/{endpoint}`\n.\n\n### FormatProjectLocationNamespaceServiceEndpoint(string, string, string, string, string)\n\n public static string FormatProjectLocationNamespaceServiceEndpoint(string projectId, string locationId, string namespaceId, string serviceId, string endpointId)\n\nFormats the IDs into the string representation of this [EndpointName](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.EndpointName) with pattern\n`projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}/endpoints/{endpoint}`\n.\n\n### FromProjectLocationNamespaceServiceEndpoint(string, string, string, string, string)\n\n public static EndpointName FromProjectLocationNamespaceServiceEndpoint(string projectId, string locationId, string namespaceId, string serviceId, string endpointId)\n\nCreates a [EndpointName](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.EndpointName) with the pattern\n`projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}/endpoints/{endpoint}`\n.\n\n### FromUnparsed(UnparsedResourceName)\n\n public static EndpointName FromUnparsed(UnparsedResourceName unparsedResourceName)\n\nCreates a [EndpointName](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.EndpointName) containing an unparsed resource name.\n\n### GetHashCode()\n\n public override int GetHashCode()\n\nReturns a hash code for this resource name.\n\n**Overrides** \n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode)\n\n### Parse(string)\n\n public static EndpointName Parse(string endpointName)\n\nParses the given resource name string into a new [EndpointName](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.EndpointName) instance.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}/endpoints/{endpoint}`\n\n\u003cbr /\u003e\n\n### Parse(string, bool)\n\n public static EndpointName Parse(string endpointName, bool allowUnparsed)\n\nParses the given resource name string into a new [EndpointName](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.EndpointName) instance; optionally allowing an\nunparseable resource name.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}/endpoints/{endpoint}`\n\nOr may be in any format if `allowUnparsed` is `true`.\n\n\u003cbr /\u003e\n\n### ToString()\n\n public override string ToString()\n\nThe string representation of the resource name.\n\n**Overrides** \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\n### TryParse(string, out EndpointName)\n\n public static bool TryParse(string endpointName, out EndpointName result)\n\nTries to parse the given resource name string into a new [EndpointName](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.EndpointName) instance.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}/endpoints/{endpoint}`\n\n\u003cbr /\u003e\n\n### TryParse(string, bool, out EndpointName)\n\n public static bool TryParse(string endpointName, bool allowUnparsed, out EndpointName result)\n\nTries to parse the given resource name string into a new [EndpointName](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.EndpointName) instance; optionally\nallowing an unparseable resource name.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}/endpoints/{endpoint}`\n\nOr may be in any format if `allowUnparsed` is `true`.\n\n\u003cbr /\u003e\n\nOperators\n---------\n\n### operator ==(EndpointName, EndpointName)\n\n public static bool operator ==(EndpointName a, EndpointName b)\n\nDetermines whether two specified resource names have the same value.\n\n### operator !=(EndpointName, EndpointName)\n\n public static bool operator !=(EndpointName a, EndpointName b)\n\nDetermines whether two specified resource names have different values."]]