public class LookupService.LookupServiceClient : ClientBase<LookupService.LookupServiceClient>Reference documentation and code samples for the Service Directory v1 API class LookupService.LookupServiceClient.
Client for LookupService
Inheritance
object > ClientBase > ClientBaseLookupServiceLookupServiceClient > LookupService.LookupServiceClientNamespace
Google.Cloud.ServiceDirectory.V1Assembly
Google.Cloud.ServiceDirectory.V1.dll
Constructors
LookupServiceClient()
protected LookupServiceClient()Protected parameterless constructor to allow creation of test doubles.
LookupServiceClient(CallInvoker)
public LookupServiceClient(CallInvoker callInvoker)Creates a new client for LookupService that uses a custom CallInvoker.
| Parameter | |
|---|---|
| Name | Description |
callInvoker |
CallInvokerThe callInvoker to use to make remote calls. |
LookupServiceClient(ChannelBase)
public LookupServiceClient(ChannelBase channel)Creates a new client for LookupService
| Parameter | |
|---|---|
| Name | Description |
channel |
ChannelBaseThe channel to use to make remote calls. |
LookupServiceClient(ClientBaseConfiguration)
protected LookupServiceClient(ClientBase.ClientBaseConfiguration configuration)Protected constructor to allow creation of configured clients.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBaseClientBaseConfigurationThe client configuration. |
Methods
CreateLocationsClient()
public virtual Locations.LocationsClient CreateLocationsClient()Creates a new instance of Locations.LocationsClient using the same call invoker as this client.
| Returns | |
|---|---|
| Type | Description |
LocationsLocationsClient |
A new Locations.LocationsClient for the same target as this client. |
NewInstance(ClientBaseConfiguration)
protected override LookupService.LookupServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)Creates a new instance of client from given ClientBaseConfiguration.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBaseClientBaseConfiguration |
| Returns | |
|---|---|
| Type | Description |
LookupServiceLookupServiceClient |
|
ResolveService(ResolveServiceRequest, CallOptions)
public virtual ResolveServiceResponse ResolveService(ResolveServiceRequest request, CallOptions options)Returns a [service][google.cloud.servicedirectory.v1.Service] and its associated endpoints. Resolving a service is not considered an active developer method.
| Parameters | |
|---|---|
| Name | Description |
request |
ResolveServiceRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
ResolveServiceResponse |
The response received from the server. |
ResolveService(ResolveServiceRequest, Metadata, DateTime?, CancellationToken)
public virtual ResolveServiceResponse ResolveService(ResolveServiceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Returns a [service][google.cloud.servicedirectory.v1.Service] and its associated endpoints. Resolving a service is not considered an active developer method.
| Parameters | |
|---|---|
| Name | Description |
request |
ResolveServiceRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
ResolveServiceResponse |
The response received from the server. |
ResolveServiceAsync(ResolveServiceRequest, CallOptions)
public virtual AsyncUnaryCall<ResolveServiceResponse> ResolveServiceAsync(ResolveServiceRequest request, CallOptions options)Returns a [service][google.cloud.servicedirectory.v1.Service] and its associated endpoints. Resolving a service is not considered an active developer method.
| Parameters | |
|---|---|
| Name | Description |
request |
ResolveServiceRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallResolveServiceResponse |
The call object. |
ResolveServiceAsync(ResolveServiceRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<ResolveServiceResponse> ResolveServiceAsync(ResolveServiceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Returns a [service][google.cloud.servicedirectory.v1.Service] and its associated endpoints. Resolving a service is not considered an active developer method.
| Parameters | |
|---|---|
| Name | Description |
request |
ResolveServiceRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallResolveServiceResponse |
The call object. |