Class Locations.LocationsClient (1.0.0)

public class LocationsClient : Grpc.Core.ClientBase<Locations.LocationsClient>

Client for Locations

Inheritance

Object > 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(ClientBaseConfiguration)

protected LocationsClient(ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseConfiguration

The client configuration.

LocationsClient(Grpc.Core.CallInvoker)

public LocationsClient(Grpc.Core.CallInvoker callInvoker)

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

Parameter
NameDescription
callInvokerGrpc.Core.CallInvoker

The callInvoker to use to make remote calls.

LocationsClient(Grpc.Core.ChannelBase)

public LocationsClient(Grpc.Core.ChannelBase channel)

Creates a new client for Locations

Parameter
NameDescription
channelGrpc.Core.ChannelBase

The channel to use to make remote calls.

Methods

GetLocation(GetLocationRequest, Grpc.Core.CallOptions)

public virtual Location GetLocation(GetLocationRequest request, Grpc.Core.CallOptions options)

Gets information about a location.

Parameters
NameDescription
requestGetLocationRequest

The request to send to the server.

optionsGrpc.Core.CallOptions

The options for the call.

Returns
TypeDescription
Location

The response received from the server.

GetLocation(GetLocationRequest, Grpc.Core.Metadata, Nullable<System.DateTime>, System.Threading.CancellationToken)

public virtual Location GetLocation(GetLocationRequest request, Grpc.Core.Metadata headers = null, System.DateTime? deadline = null, System.Threading.CancellationToken cancellationToken = null)

Gets information about a location.

Parameters
NameDescription
requestGetLocationRequest

The request to send to the server.

headersGrpc.Core.Metadata

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

deadlineNullable<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
Location

The response received from the server.

GetLocationAsync(GetLocationRequest, Grpc.Core.CallOptions)

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

Gets information about a location.

Parameters
NameDescription
requestGetLocationRequest

The request to send to the server.

optionsGrpc.Core.CallOptions

The options for the call.

Returns
TypeDescription
Grpc.Core.AsyncUnaryCall<Location>

The call object.

GetLocationAsync(GetLocationRequest, Grpc.Core.Metadata, Nullable<System.DateTime>, System.Threading.CancellationToken)

public virtual Grpc.Core.AsyncUnaryCall<Location> GetLocationAsync(GetLocationRequest request, Grpc.Core.Metadata headers = null, System.DateTime? deadline = null, System.Threading.CancellationToken cancellationToken = null)

Gets information about a location.

Parameters
NameDescription
requestGetLocationRequest

The request to send to the server.

headersGrpc.Core.Metadata

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

deadlineNullable<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<Location>

The call object.

ListLocations(ListLocationsRequest, Grpc.Core.CallOptions)

public virtual ListLocationsResponse ListLocations(ListLocationsRequest request, Grpc.Core.CallOptions options)

Lists information about the supported locations for this service.

Parameters
NameDescription
requestListLocationsRequest

The request to send to the server.

optionsGrpc.Core.CallOptions

The options for the call.

Returns
TypeDescription
ListLocationsResponse

The response received from the server.

ListLocations(ListLocationsRequest, Grpc.Core.Metadata, Nullable<System.DateTime>, System.Threading.CancellationToken)

public virtual ListLocationsResponse ListLocations(ListLocationsRequest request, Grpc.Core.Metadata headers = null, System.DateTime? deadline = null, System.Threading.CancellationToken cancellationToken = null)

Lists information about the supported locations for this service.

Parameters
NameDescription
requestListLocationsRequest

The request to send to the server.

headersGrpc.Core.Metadata

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

deadlineNullable<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
ListLocationsResponse

The response received from the server.

ListLocationsAsync(ListLocationsRequest, Grpc.Core.CallOptions)

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

Lists information about the supported locations for this service.

Parameters
NameDescription
requestListLocationsRequest

The request to send to the server.

optionsGrpc.Core.CallOptions

The options for the call.

Returns
TypeDescription
Grpc.Core.AsyncUnaryCall<ListLocationsResponse>

The call object.

ListLocationsAsync(ListLocationsRequest, Grpc.Core.Metadata, Nullable<System.DateTime>, System.Threading.CancellationToken)

public virtual Grpc.Core.AsyncUnaryCall<ListLocationsResponse> ListLocationsAsync(ListLocationsRequest request, Grpc.Core.Metadata headers = null, System.DateTime? deadline = null, System.Threading.CancellationToken cancellationToken = null)

Lists information about the supported locations for this service.

Parameters
NameDescription
requestListLocationsRequest

The request to send to the server.

headersGrpc.Core.Metadata

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

deadlineNullable<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<ListLocationsResponse>

The call object.

NewInstance(ClientBaseConfiguration)

protected override Locations.LocationsClient NewInstance(ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseConfiguration
Returns
TypeDescription
Locations.LocationsClient