Class LookupService.LookupServiceClient (1.0.0)

public class LookupServiceClient : ClientBase<LookupService.LookupServiceClient>

Client for LookupService

Inheritance

System.Object > Grpc.Core.ClientBase > Grpc.Core.ClientBase<LookupService.LookupServiceClient> > LookupService.LookupServiceClient

Namespace

Google.Cloud.ServiceDirectory.V1

Assembly

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
NameDescription
callInvokerGrpc.Core.CallInvoker

The callInvoker to use to make remote calls.

LookupServiceClient(ChannelBase)

public LookupServiceClient(ChannelBase channel)

Creates a new client for LookupService

Parameter
NameDescription
channelGrpc.Core.ChannelBase

The channel to use to make remote calls.

LookupServiceClient(ClientBase.ClientBaseConfiguration)

protected LookupServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationGrpc.Core.ClientBase.ClientBaseConfiguration

The client configuration.

Methods

NewInstance(ClientBase.ClientBaseConfiguration)

protected override LookupService.LookupServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationGrpc.Core.ClientBase.ClientBaseConfiguration
Returns
TypeDescription
LookupService.LookupServiceClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.ServiceDirectory.V1.LookupService.LookupServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

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
NameDescription
requestResolveServiceRequest

The request to send to the server.

optionsGrpc.Core.CallOptions

The options for the call.

Returns
TypeDescription
ResolveServiceResponse

The response received from the server.

ResolveService(ResolveServiceRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual ResolveServiceResponse ResolveService(ResolveServiceRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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

Parameters
NameDescription
requestResolveServiceRequest

The request to send to the server.

headersGrpc.Core.Metadata

The initial metadata to send with the call. This parameter is optional.

deadlineSystem.Nullable<System.DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenSystem.Threading.CancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestResolveServiceRequest

The request to send to the server.

optionsGrpc.Core.CallOptions

The options for the call.

Returns
TypeDescription
Grpc.Core.AsyncUnaryCall<ResolveServiceResponse>

The call object.

ResolveServiceAsync(ResolveServiceRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<ResolveServiceResponse> ResolveServiceAsync(ResolveServiceRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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

Parameters
NameDescription
requestResolveServiceRequest

The request to send to the server.

headersGrpc.Core.Metadata

The initial metadata to send with the call. This parameter is optional.

deadlineSystem.Nullable<System.DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenSystem.Threading.CancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Grpc.Core.AsyncUnaryCall<ResolveServiceResponse>

The call object.