# Service Directory v1beta1 API - Class LookupServiceClientImpl (2.0.0-beta07)

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

- [2.0.0-beta07 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1Beta1/latest/Google.Cloud.ServiceDirectory.V1Beta1.LookupServiceClientImpl)
- [2.0.0-beta06](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1Beta1/2.0.0-beta06/Google.Cloud.ServiceDirectory.V1Beta1.LookupServiceClientImpl)
- [1.0.0-beta06](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1Beta1/1.0.0-beta06/Google.Cloud.ServiceDirectory.V1Beta1.LookupServiceClientImpl)

    public sealed class LookupServiceClientImpl : LookupServiceClient

Reference documentation and code samples for the Service Directory v1beta1 API class LookupServiceClientImpl.

LookupService client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [LookupServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1Beta1/latest/Google.Cloud.ServiceDirectory.V1Beta1.LookupServiceClient) \> LookupServiceClientImpl

## Inherited Members

[LookupServiceClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1Beta1/latest/Google.Cloud.ServiceDirectory.V1Beta1.LookupServiceClient#Google_Cloud_ServiceDirectory_V1Beta1_LookupServiceClient_DefaultEndpoint) [LookupServiceClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1Beta1/latest/Google.Cloud.ServiceDirectory.V1Beta1.LookupServiceClient#Google_Cloud_ServiceDirectory_V1Beta1_LookupServiceClient_DefaultScopes) [LookupServiceClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1Beta1/latest/Google.Cloud.ServiceDirectory.V1Beta1.LookupServiceClient#Google_Cloud_ServiceDirectory_V1Beta1_LookupServiceClient_ServiceMetadata) [LookupServiceClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1Beta1/latest/Google.Cloud.ServiceDirectory.V1Beta1.LookupServiceClient#Google_Cloud_ServiceDirectory_V1Beta1_LookupServiceClient_CreateAsync_System_Threading_CancellationToken_) [LookupServiceClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1Beta1/latest/Google.Cloud.ServiceDirectory.V1Beta1.LookupServiceClient#Google_Cloud_ServiceDirectory_V1Beta1_LookupServiceClient_Create) [LookupServiceClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1Beta1/latest/Google.Cloud.ServiceDirectory.V1Beta1.LookupServiceClient#Google_Cloud_ServiceDirectory_V1Beta1_LookupServiceClient_ShutdownDefaultChannelsAsync) [LookupServiceClient.ResolveServiceAsync(ResolveServiceRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1Beta1/latest/Google.Cloud.ServiceDirectory.V1Beta1.LookupServiceClient#Google_Cloud_ServiceDirectory_V1Beta1_LookupServiceClient_ResolveServiceAsync_Google_Cloud_ServiceDirectory_V1Beta1_ResolveServiceRequest_System_Threading_CancellationToken_) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

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

## Assembly

Google.Cloud.ServiceDirectory.V1Beta1.dll

## Remarks

Service Directory API for looking up service data at runtime.

## Constructors

### LookupServiceClientImpl(LookupServiceClient, LookupServiceSettings, ILogger)

    public LookupServiceClientImpl(LookupService.LookupServiceClient grpcClient, LookupServiceSettings settings, ILogger logger)

Constructs a client wrapper for the LookupService service, with the specified gRPC client and settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1Beta1/latest/Google.Cloud.ServiceDirectory.V1Beta1.LookupServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1Beta1/latest/Google.Cloud.ServiceDirectory.V1Beta1.LookupService.LookupServiceClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1Beta1/latest/Google.Cloud.ServiceDirectory.V1Beta1.LookupServiceSettings` The base [LookupServiceSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1Beta1/latest/Google.Cloud.ServiceDirectory.V1Beta1.LookupServiceSettings) used within this client. |
| `logger` | `https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger` Optional [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger) to use within this client. |

## Properties

### GrpcClient

    public override LookupService.LookupServiceClient GrpcClient { get; }

The underlying gRPC LookupService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1Beta1/latest/Google.Cloud.ServiceDirectory.V1Beta1.LookupServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1Beta1/latest/Google.Cloud.ServiceDirectory.V1Beta1.LookupService.LookupServiceClient` |   |

**Overrides** [LookupServiceClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1Beta1/latest/Google.Cloud.ServiceDirectory.V1Beta1.LookupServiceClient#Google_Cloud_ServiceDirectory_V1Beta1_LookupServiceClient_GrpcClient)

### LocationsClient

    public override LocationsClient LocationsClient { get; }

The [LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html) associated with this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html` |   |

**Overrides** [LookupServiceClient.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1Beta1/latest/Google.Cloud.ServiceDirectory.V1Beta1.LookupServiceClient#Google_Cloud_ServiceDirectory_V1Beta1_LookupServiceClient_LocationsClient)

## Methods

### ResolveService(ResolveServiceRequest, CallSettings)

    public override ResolveServiceResponse ResolveService(ResolveServiceRequest request, CallSettings callSettings = null)

Returns a \[service\]\[google.cloud.servicedirectory.v1beta1.Service\] and its
associated endpoints.
Resolving a service is not considered an active developer method.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1Beta1/latest/Google.Cloud.ServiceDirectory.V1Beta1.ResolveServiceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1Beta1/latest/Google.Cloud.ServiceDirectory.V1Beta1.ResolveServiceResponse` | The RPC response. |

**Overrides** [LookupServiceClient.ResolveService(ResolveServiceRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1Beta1/latest/Google.Cloud.ServiceDirectory.V1Beta1.LookupServiceClient#Google_Cloud_ServiceDirectory_V1Beta1_LookupServiceClient_ResolveService_Google_Cloud_ServiceDirectory_V1Beta1_ResolveServiceRequest_Google_Api_Gax_Grpc_CallSettings_)

### ResolveServiceAsync(ResolveServiceRequest, CallSettings)

    public override Task<ResolveServiceResponse> ResolveServiceAsync(ResolveServiceRequest request, CallSettings callSettings = null)

Returns a \[service\]\[google.cloud.servicedirectory.v1beta1.Service\] and its
associated endpoints.
Resolving a service is not considered an active developer method.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1Beta1/latest/Google.Cloud.ServiceDirectory.V1Beta1.ResolveServiceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1Beta1/latest/Google.Cloud.ServiceDirectory.V1Beta1.ResolveServiceResponse` | A Task containing the RPC response. |

**Overrides** [LookupServiceClient.ResolveServiceAsync(ResolveServiceRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceDirectory.V1Beta1/latest/Google.Cloud.ServiceDirectory.V1Beta1.LookupServiceClient#Google_Cloud_ServiceDirectory_V1Beta1_LookupServiceClient_ResolveServiceAsync_Google_Cloud_ServiceDirectory_V1Beta1_ResolveServiceRequest_Google_Api_Gax_Grpc_CallSettings_)