public MapField<string, string> Annotations { get; }
Optional. Annotations for the endpoint. This data can be consumed by
service clients.
Restrictions:
The entire annotations dictionary may contain up to 512 characters,
spread accoss all key-value pairs. Annotations that go beyond this
limit are rejected
Valid annotation keys have two segments: an optional prefix and name,
separated by a slash (/). The name segment is required and must be 63
characters or less, beginning and ending with an alphanumeric character
([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and
alphanumerics between. The prefix is optional. If specified, the prefix
must be a DNS subdomain: a series of DNS labels separated by dots (.),
not longer than 253 characters in total, followed by a slash (/)
Annotations that fails to meet these requirements are rejected.
Note: This field is equivalent to the metadata field in the v1beta1 API.
They have the same syntax and read/write to the same location in Service
Directory.
Immutable. The Google Compute Engine network (VPC) of the endpoint in the
format projects/<project number>/locations/global/networks/*.
The project must be specified by project number (project id is rejected).
Incorrectly formatted networks are rejected, we also check to make sure
that you have the servicedirectory.networks.attach permission on the
project 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\u003eThe \u003ccode\u003eEndpoint\u003c/code\u003e class in the Google Cloud Service Directory v1 API represents an individual endpoint that provides a service, and it requires the associated service to exist beforehand.\u003c/p\u003e\n"],["\u003cp\u003eThis \u003ccode\u003eEndpoint\u003c/code\u003e class, available through the Google.Cloud.ServiceDirectory.V1 namespace, can be used via various versions, with version 2.6.0 being the latest.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eEndpoint\u003c/code\u003e class include \u003ccode\u003eAddress\u003c/code\u003e (IPv4 or IPv6 address), \u003ccode\u003eAnnotations\u003c/code\u003e (metadata), \u003ccode\u003eName\u003c/code\u003e (resource name), \u003ccode\u003eNetwork\u003c/code\u003e (Google Compute Engine VPC), and \u003ccode\u003ePort\u003c/code\u003e (service port).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEndpoint\u003c/code\u003e class implements multiple interfaces, such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, allowing for diverse interactions and manipulations.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEndpoint\u003c/code\u003e class has a few constructors including a parameterless one, and one that accepts another Endpoint as a parameter, enabling the creation of new endpoints and the copying of existing ones.\u003c/p\u003e\n"]]],[],null,["# Service Directory v1 API - Class Endpoint (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.Endpoint)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/2.5.0/Google.Cloud.ServiceDirectory.V1.Endpoint)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/2.4.0/Google.Cloud.ServiceDirectory.V1.Endpoint)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/2.3.0/Google.Cloud.ServiceDirectory.V1.Endpoint)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/2.2.0/Google.Cloud.ServiceDirectory.V1.Endpoint)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/2.1.0/Google.Cloud.ServiceDirectory.V1.Endpoint)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/2.0.0/Google.Cloud.ServiceDirectory.V1.Endpoint)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/1.4.0/Google.Cloud.ServiceDirectory.V1.Endpoint)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/1.3.0/Google.Cloud.ServiceDirectory.V1.Endpoint)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/1.2.0/Google.Cloud.ServiceDirectory.V1.Endpoint)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/1.1.0/Google.Cloud.ServiceDirectory.V1.Endpoint)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/1.0.0/Google.Cloud.ServiceDirectory.V1.Endpoint) \n\n public sealed class Endpoint : IMessage\u003cEndpoint\u003e, IEquatable\u003cEndpoint\u003e, IDeepCloneable\u003cEndpoint\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Service Directory v1 API class Endpoint.\n\nAn individual endpoint that provides a\n\\[service\\]\\[google.cloud.servicedirectory.v1.Service\\]. The service must\nalready exist to create an endpoint. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Endpoint \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Endpoint](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.Endpoint), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Endpoint](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.Endpoint), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Endpoint](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.Endpoint), [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.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### Endpoint()\n\n public Endpoint()\n\n### Endpoint(Endpoint)\n\n public Endpoint(Endpoint other)\n\nProperties\n----------\n\n### Address\n\n public string Address { get; set; }\n\nOptional. An IPv4 or IPv6 address. Service Directory rejects bad addresses\nlike:\n\n- `8.8.8`\n- `8.8.8.8:53`\n- `test:bad:address`\n- `[::1]`\n- `[::1]:8080`\n\nLimited to 45 characters.\n\n### Annotations\n\n public MapField\u003cstring, string\u003e Annotations { get; }\n\nOptional. Annotations for the endpoint. This data can be consumed by\nservice clients.\n\nRestrictions:\n\n- The entire annotations dictionary may contain up to 512 characters, spread accoss all key-value pairs. Annotations that go beyond this limit are rejected\n- Valid annotation keys have two segments: an optional prefix and name, separated by a slash (/). The name segment is required and must be 63 characters or less, beginning and ending with an alphanumeric character (\\[a-z0-9A-Z\\]) with dashes (-), underscores (_), dots (.), and alphanumerics between. The prefix is optional. If specified, the prefix must be a DNS subdomain: a series of DNS labels separated by dots (.), not longer than 253 characters in total, followed by a slash (/) Annotations that fails to meet these requirements are rejected.\n\nNote: This field is equivalent to the `metadata` field in the v1beta1 API.\nThey have the same syntax and read/write to the same location in Service\nDirectory.\n\n### EndpointName\n\n public EndpointName EndpointName { get; set; }\n\n[EndpointName](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.EndpointName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.Endpoint#Google_Cloud_ServiceDirectory_V1_Endpoint_Name) resource name property.\n\n### Name\n\n public string Name { get; set; }\n\nImmutable. The resource name for the endpoint in the format\n`projects/*/locations/*/namespaces/*/services/*/endpoints/*`.\n\n### Network\n\n public string Network { get; set; }\n\nImmutable. The Google Compute Engine network (VPC) of the endpoint in the\nformat `projects/\u003cproject number\u003e/locations/global/networks/*`.\n\nThe project must be specified by project number (project id is rejected).\nIncorrectly formatted networks are rejected, we also check to make sure\nthat you have the servicedirectory.networks.attach permission on the\nproject specified.\n\n### NetworkAsNetworkName\n\n public NetworkName NetworkAsNetworkName { get; set; }\n\n[NetworkName](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.NetworkName)-typed view over the [Network](/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.Endpoint#Google_Cloud_ServiceDirectory_V1_Endpoint_Network) resource name property.\n\n### Port\n\n public int Port { get; set; }\n\nOptional. Service Directory rejects values outside of `[0, 65535]`.\n\n### Uid\n\n public string Uid { get; set; }\n\nOutput only. The globally unique identifier of the endpoint in the UUID4\nformat."]]