Class DestinationService.DestinationServiceClient
Client for DestinationService
Inheritance
Inherited Members
Namespace: Google.Maps.Geocode.V4
Assembly: Google.Maps.Geocode.V4.dll
Syntax
public class DestinationService.DestinationServiceClient : ClientBase<DestinationService.DestinationServiceClient>
Constructors
DestinationServiceClient()
Protected parameterless constructor to allow creation of test doubles.
Declaration
protected DestinationServiceClient()
DestinationServiceClient(CallInvoker)
Creates a new client for DestinationService that uses a custom CallInvoker.
Declaration
public DestinationServiceClient(CallInvoker callInvoker)
Parameters
| Type | Name | Description |
|---|---|---|
| CallInvoker | callInvoker | The callInvoker to use to make remote calls. |
DestinationServiceClient(ChannelBase)
Creates a new client for DestinationService
Declaration
public DestinationServiceClient(ChannelBase channel)
Parameters
| Type | Name | Description |
|---|---|---|
| ChannelBase | channel | The channel to use to make remote calls. |
DestinationServiceClient(ClientBaseConfiguration)
Protected constructor to allow creation of configured clients.
Declaration
protected DestinationServiceClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| ClientBase.ClientBaseConfiguration | configuration | The client configuration. |
Methods
NewInstance(ClientBaseConfiguration)
Creates a new instance of client from given ClientBaseConfiguration.
Declaration
protected override DestinationService.DestinationServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| ClientBase.ClientBaseConfiguration | configuration |
Returns
| Type | Description |
|---|---|
| DestinationService.DestinationServiceClient |
Overrides
SearchDestinations(SearchDestinationsRequest, CallOptions)
This method performs a destination lookup and returns a list of destinations.
Declaration
public virtual SearchDestinationsResponse SearchDestinations(SearchDestinationsRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| SearchDestinationsRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| SearchDestinationsResponse | The response received from the server. |
SearchDestinations(SearchDestinationsRequest, Metadata, DateTime?, CancellationToken)
This method performs a destination lookup and returns a list of destinations.
Declaration
public virtual SearchDestinationsResponse SearchDestinations(SearchDestinationsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| SearchDestinationsRequest | request | The request to send to the server. |
| Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
| DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
| CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
| Type | Description |
|---|---|
| SearchDestinationsResponse | The response received from the server. |
SearchDestinationsAsync(SearchDestinationsRequest, CallOptions)
This method performs a destination lookup and returns a list of destinations.
Declaration
public virtual AsyncUnaryCall<SearchDestinationsResponse> SearchDestinationsAsync(SearchDestinationsRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| SearchDestinationsRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<SearchDestinationsResponse> | The call object. |
SearchDestinationsAsync(SearchDestinationsRequest, Metadata, DateTime?, CancellationToken)
This method performs a destination lookup and returns a list of destinations.
Declaration
public virtual AsyncUnaryCall<SearchDestinationsResponse> SearchDestinationsAsync(SearchDestinationsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| SearchDestinationsRequest | request | The request to send to the server. |
| Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
| DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
| CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<SearchDestinationsResponse> | The call object. |