public sealed class LocationsClientImpl : LocationsClient
Locations client wrapper implementation, for convenient use.
Namespace
Google.Cloud.LocationAssembly
Google.Cloud.Location.dll
Remarks
An abstract interface that provides location-related information for a service. Service-specific metadata is provided through the [Location.metadata][google.cloud.location.Location.metadata] field.
Constructors
LocationsClientImpl(Locations.LocationsClient, LocationsSettings, Logging.ILogger)
public LocationsClientImpl(Locations.LocationsClient grpcClient, LocationsSettings settings, Logging.ILogger logger)
Constructs a client wrapper for the Locations service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient | Locations.LocationsClient The underlying gRPC client. |
settings | LocationsSettings The base LocationsSettings used within this client. |
logger | Logging.ILogger Optional to use within this client. |
Properties
GrpcClient
public override Locations.LocationsClient GrpcClient { get; }
The underlying gRPC Locations client
Property Value | |
---|---|
Type | Description |
Locations.LocationsClient |
Methods
GetLocation(GetLocationRequest, Api.Gax.Grpc.CallSettings)
public override Location GetLocation(GetLocationRequest request, Api.Gax.Grpc.CallSettings callSettings = null)
Gets information about a location.
Parameters | |
---|---|
Name | Description |
request | GetLocationRequest The request object containing all of the parameters for the API call. |
callSettings | Api.Gax.Grpc.CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Location | The RPC response. |
GetLocationAsync(GetLocationRequest, Api.Gax.Grpc.CallSettings)
public override System.Threading.Tasks.Task<Location> GetLocationAsync(GetLocationRequest request, Api.Gax.Grpc.CallSettings callSettings = null)
Gets information about a location.
Parameters | |
---|---|
Name | Description |
request | GetLocationRequest The request object containing all of the parameters for the API call. |
callSettings | Api.Gax.Grpc.CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
System.Threading.Tasks.Task<Location> | A Task containing the RPC response. |
ListLocations(ListLocationsRequest, Api.Gax.Grpc.CallSettings)
public override Api.Gax.PagedEnumerable<ListLocationsResponse, Location> ListLocations(ListLocationsRequest request, Api.Gax.Grpc.CallSettings callSettings = null)
Lists information about the supported locations for this service.
Parameters | |
---|---|
Name | Description |
request | ListLocationsRequest The request object containing all of the parameters for the API call. |
callSettings | Api.Gax.Grpc.CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Api.Gax.PagedEnumerable<ListLocationsResponse, Location> | A pageable sequence of Location resources. |
ListLocationsAsync(ListLocationsRequest, Api.Gax.Grpc.CallSettings)
public override Api.Gax.PagedAsyncEnumerable<ListLocationsResponse, Location> ListLocationsAsync(ListLocationsRequest request, Api.Gax.Grpc.CallSettings callSettings = null)
Lists information about the supported locations for this service.
Parameters | |
---|---|
Name | Description |
request | ListLocationsRequest The request object containing all of the parameters for the API call. |
callSettings | Api.Gax.Grpc.CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Api.Gax.PagedAsyncEnumerable<ListLocationsResponse, Location> | A pageable asynchronous sequence of Location resources. |