Class Locations.LocationsClient (2.0.0)

public class LocationsClient : ClientBase<Locations.LocationsClient>

Client for Locations

Inheritance

Object > ClientBase > ClientBase<Locations.LocationsClient> > Locations.LocationsClient

Namespace

Google.Cloud.Location

Assembly

Google.Cloud.Location.dll

Constructors

LocationsClient()

protected LocationsClient()

Protected parameterless constructor to allow creation of test doubles.

LocationsClient(CallInvoker)

public LocationsClient(CallInvoker callInvoker)

Creates a new client for Locations that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

LocationsClient(ChannelBase)

public LocationsClient(ChannelBase channel)

Creates a new client for Locations

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

LocationsClient(ClientBase.ClientBaseConfiguration)

protected LocationsClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

The client configuration.

Methods

GetLocation(GetLocationRequest, CallOptions)

public virtual Location GetLocation(GetLocationRequest request, CallOptions options)

Gets information about a location.

Parameters
NameDescription
requestGetLocationRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Location

The response received from the server.

GetLocation(GetLocationRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Location GetLocation(GetLocationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Gets information about a location.

Parameters
NameDescription
requestGetLocationRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Location

The response received from the server.

GetLocationAsync(GetLocationRequest, CallOptions)

public virtual AsyncUnaryCall<Location> GetLocationAsync(GetLocationRequest request, CallOptions options)

Gets information about a location.

Parameters
NameDescription
requestGetLocationRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Location>

The call object.

GetLocationAsync(GetLocationRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Location> GetLocationAsync(GetLocationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Gets information about a location.

Parameters
NameDescription
requestGetLocationRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Location>

The call object.

ListLocations(ListLocationsRequest, CallOptions)

public virtual ListLocationsResponse ListLocations(ListLocationsRequest request, CallOptions options)

Lists information about the supported locations for this service.

Parameters
NameDescription
requestListLocationsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListLocationsResponse

The response received from the server.

ListLocations(ListLocationsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual ListLocationsResponse ListLocations(ListLocationsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Lists information about the supported locations for this service.

Parameters
NameDescription
requestListLocationsRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ListLocationsResponse

The response received from the server.

ListLocationsAsync(ListLocationsRequest, CallOptions)

public virtual AsyncUnaryCall<ListLocationsResponse> ListLocationsAsync(ListLocationsRequest request, CallOptions options)

Lists information about the supported locations for this service.

Parameters
NameDescription
requestListLocationsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<ListLocationsResponse>

The call object.

ListLocationsAsync(ListLocationsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<ListLocationsResponse> ListLocationsAsync(ListLocationsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Lists information about the supported locations for this service.

Parameters
NameDescription
requestListLocationsRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<ListLocationsResponse>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

protected override Locations.LocationsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
Locations.LocationsClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Location.Locations.LocationsClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)