# Service Directory v1 API - Namespace Google.Cloud.ServiceDirectory.V1 (2.7.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.7.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1)
- [2.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/2.6.0/Google.Cloud.ServiceDirectory.V1)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/2.5.0/Google.Cloud.ServiceDirectory.V1)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/2.4.0/Google.Cloud.ServiceDirectory.V1)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/2.3.0/Google.Cloud.ServiceDirectory.V1)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/2.2.0/Google.Cloud.ServiceDirectory.V1)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/2.1.0/Google.Cloud.ServiceDirectory.V1)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/2.0.0/Google.Cloud.ServiceDirectory.V1)
- [1.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/1.4.0/Google.Cloud.ServiceDirectory.V1)
- [1.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/1.3.0/Google.Cloud.ServiceDirectory.V1)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/1.2.0/Google.Cloud.ServiceDirectory.V1)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/1.1.0/Google.Cloud.ServiceDirectory.V1)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/1.0.0/Google.Cloud.ServiceDirectory.V1)

## Classes

### [CreateEndpointRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.CreateEndpointRequest)

The request message for
\[RegistrationService.CreateEndpoint\]\[google.cloud.servicedirectory.v1.RegistrationService.CreateEndpoint\].

### [CreateNamespaceRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.CreateNamespaceRequest)

The request message for
\[RegistrationService.CreateNamespace\]\[google.cloud.servicedirectory.v1.RegistrationService.CreateNamespace\].

### [CreateServiceRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.CreateServiceRequest)

The request message for
\[RegistrationService.CreateService\]\[google.cloud.servicedirectory.v1.RegistrationService.CreateService\].

### [DeleteEndpointRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.DeleteEndpointRequest)

The request message for
\[RegistrationService.DeleteEndpoint\]\[google.cloud.servicedirectory.v1.RegistrationService.DeleteEndpoint\].

### [DeleteNamespaceRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.DeleteNamespaceRequest)

The request message for
\[RegistrationService.DeleteNamespace\]\[google.cloud.servicedirectory.v1.RegistrationService.DeleteNamespace\].

### [DeleteServiceRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.DeleteServiceRequest)

The request message for
\[RegistrationService.DeleteService\]\[google.cloud.servicedirectory.v1.RegistrationService.DeleteService\].

### [Endpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.Endpoint)

An individual endpoint that provides a
\[service\]\[google.cloud.servicedirectory.v1.Service\]. The service must
already exist to create an endpoint.

### [EndpointName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.EndpointName)

Resource name for the `Endpoint` resource.

### [GetEndpointRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.GetEndpointRequest)

The request message for
\[RegistrationService.GetEndpoint\]\[google.cloud.servicedirectory.v1.RegistrationService.GetEndpoint\].
This should not be used to lookup endpoints at runtime. Instead, use
the `resolve` method.

### [GetNamespaceRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.GetNamespaceRequest)

The request message for
\[RegistrationService.GetNamespace\]\[google.cloud.servicedirectory.v1.RegistrationService.GetNamespace\].

### [GetServiceRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.GetServiceRequest)

The request message for
\[RegistrationService.GetService\]\[google.cloud.servicedirectory.v1.RegistrationService.GetService\].
This should not be used for looking up a service. Instead, use the `resolve`
method as it contains all endpoints and associated annotations.

### [ListEndpointsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.ListEndpointsRequest)

The request message for
\[RegistrationService.ListEndpoints\]\[google.cloud.servicedirectory.v1.RegistrationService.ListEndpoints\].

### [ListEndpointsResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.ListEndpointsResponse)

The response message for
\[RegistrationService.ListEndpoints\]\[google.cloud.servicedirectory.v1.RegistrationService.ListEndpoints\].

### [ListNamespacesRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.ListNamespacesRequest)

The request message for
\[RegistrationService.ListNamespaces\]\[google.cloud.servicedirectory.v1.RegistrationService.ListNamespaces\].

### [ListNamespacesResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.ListNamespacesResponse)

The response message for
\[RegistrationService.ListNamespaces\]\[google.cloud.servicedirectory.v1.RegistrationService.ListNamespaces\].

### [ListServicesRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.ListServicesRequest)

The request message for
\[RegistrationService.ListServices\]\[google.cloud.servicedirectory.v1.RegistrationService.ListServices\].

### [ListServicesResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.ListServicesResponse)

The response message for
\[RegistrationService.ListServices\]\[google.cloud.servicedirectory.v1.RegistrationService.ListServices\].

### [LookupService](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.LookupService)

Service Directory API for looking up service data at runtime.

### [LookupService.LookupServiceBase](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.LookupService.LookupServiceBase)

Base class for server-side implementations of LookupService

### [LookupService.LookupServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.LookupService.LookupServiceClient)

Client for LookupService

### [LookupServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.LookupServiceClient)

LookupService client wrapper, for convenient use.

### [LookupServiceClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.LookupServiceClientBuilder)

Builder class for [LookupServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.LookupServiceClient) to provide simple configuration of credentials, endpoint
etc.

### [LookupServiceClientImpl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.LookupServiceClientImpl)

LookupService client wrapper implementation, for convenient use.

### [LookupServiceSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.LookupServiceSettings)

Settings for [LookupServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.LookupServiceClient) instances.

### [Namespace](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.Namespace)

A container for \[services\]\[google.cloud.servicedirectory.v1.Service\].
Namespaces allow administrators to group services together and define
permissions for a collection of services.

### [NamespaceName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.NamespaceName)

Resource name for the `Namespace` resource.

### [NetworkName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.NetworkName)

Resource name for the `Network` resource.

### [RegistrationService](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.RegistrationService)

Service Directory API for registering services. It defines the following
resource model:

- The API has a collection of
  \[Namespace\]\[google.cloud.servicedirectory.v1.Namespace\]
  resources, named `projects/*/locations/*/namespaces/*`.

- Each Namespace has a collection of
  \[Service\]\[google.cloud.servicedirectory.v1.Service\] resources, named
  `projects/*/locations/*/namespaces/*/services/*`.

- Each Service has a collection of
  \[Endpoint\]\[google.cloud.servicedirectory.v1.Endpoint\]
  resources, named
  `projects/*/locations/*/namespaces/*/services/*/endpoints/*`.

### [RegistrationService.RegistrationServiceBase](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.RegistrationService.RegistrationServiceBase)

Base class for server-side implementations of RegistrationService

### [RegistrationService.RegistrationServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.RegistrationService.RegistrationServiceClient)

Client for RegistrationService

### [RegistrationServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.RegistrationServiceClient)

RegistrationService client wrapper, for convenient use.

### [RegistrationServiceClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.RegistrationServiceClientBuilder)

Builder class for [RegistrationServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.RegistrationServiceClient) to provide simple configuration of credentials,
endpoint etc.

### [RegistrationServiceClientImpl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.RegistrationServiceClientImpl)

RegistrationService client wrapper implementation, for convenient use.

### [RegistrationServiceSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.RegistrationServiceSettings)

Settings for [RegistrationServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.RegistrationServiceClient) instances.

### [ResolveServiceRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.ResolveServiceRequest)

The request message for
\[LookupService.ResolveService\]\[google.cloud.servicedirectory.v1.LookupService.ResolveService\].
Looks up a service by its name, returns the service and its endpoints.

### [ResolveServiceResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.ResolveServiceResponse)

The response message for
\[LookupService.ResolveService\]\[google.cloud.servicedirectory.v1.LookupService.ResolveService\].

### [Service](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.Service)

An individual service. A service contains a name and optional metadata.
A service must exist before
\[endpoints\]\[google.cloud.servicedirectory.v1.Endpoint\] can be
added to it.

### [ServiceName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.ServiceName)

Resource name for the `Service` resource.

### [UpdateEndpointRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.UpdateEndpointRequest)

The request message for
\[RegistrationService.UpdateEndpoint\]\[google.cloud.servicedirectory.v1.RegistrationService.UpdateEndpoint\].

### [UpdateNamespaceRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.UpdateNamespaceRequest)

The request message for
\[RegistrationService.UpdateNamespace\]\[google.cloud.servicedirectory.v1.RegistrationService.UpdateNamespace\].

### [UpdateServiceRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.UpdateServiceRequest)

The request message for
\[RegistrationService.UpdateService\]\[google.cloud.servicedirectory.v1.RegistrationService.UpdateService\].

## Enums

### [EndpointName.ResourceNameType](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.EndpointName.ResourceNameType)

The possible contents of [EndpointName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.EndpointName).

### [NamespaceName.ResourceNameType](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.NamespaceName.ResourceNameType)

The possible contents of [NamespaceName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.NamespaceName).

### [NetworkName.ResourceNameType](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.NetworkName.ResourceNameType)

The possible contents of [NetworkName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.NetworkName).

### [ServiceName.ResourceNameType](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.ServiceName.ResourceNameType)

The possible contents of [ServiceName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1/latest/Google.Cloud.ServiceDirectory.V1.ServiceName).