Show / Hide Table of Contents

Class PlacesClientImpl

Places client wrapper implementation, for convenient use.

Inheritance
object
PlacesClient
PlacesClientImpl
Inherited Members
PlacesClient.DefaultEndpoint
PlacesClient.DefaultScopes
PlacesClient.ServiceMetadata
PlacesClient.CreateAsync(CancellationToken)
PlacesClient.Create()
PlacesClient.ShutdownDefaultChannelsAsync()
PlacesClient.SearchNearbyAsync(SearchNearbyRequest, CancellationToken)
PlacesClient.SearchTextAsync(SearchTextRequest, CancellationToken)
PlacesClient.GetPhotoMediaAsync(GetPhotoMediaRequest, CancellationToken)
PlacesClient.GetPhotoMedia(string, CallSettings)
PlacesClient.GetPhotoMediaAsync(string, CallSettings)
PlacesClient.GetPhotoMediaAsync(string, CancellationToken)
PlacesClient.GetPhotoMedia(PhotoMediaName, CallSettings)
PlacesClient.GetPhotoMediaAsync(PhotoMediaName, CallSettings)
PlacesClient.GetPhotoMediaAsync(PhotoMediaName, CancellationToken)
PlacesClient.GetPlaceAsync(GetPlaceRequest, CancellationToken)
PlacesClient.GetPlace(string, CallSettings)
PlacesClient.GetPlaceAsync(string, CallSettings)
PlacesClient.GetPlaceAsync(string, CancellationToken)
PlacesClient.GetPlace(PlaceName, CallSettings)
PlacesClient.GetPlaceAsync(PlaceName, CallSettings)
PlacesClient.GetPlaceAsync(PlaceName, CancellationToken)
PlacesClient.AutocompletePlacesAsync(AutocompletePlacesRequest, CancellationToken)
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Maps.Places.V1
Assembly: Google.Maps.Places.V1.dll
Syntax
public sealed class PlacesClientImpl : PlacesClient
Remarks

Service definition for the Places API. Note: every request (except for Autocomplete requests) requires a field mask set outside of the request proto (all/*, is not assumed). The field mask can be set via the HTTP header X-Goog-FieldMask. See: https://developers.google.com/maps/documentation/places/web-service/choose-fields

Constructors

PlacesClientImpl(PlacesClient, PlacesSettings, ILogger)

Constructs a client wrapper for the Places service, with the specified gRPC client and settings.

Declaration
public PlacesClientImpl(Places.PlacesClient grpcClient, PlacesSettings settings, ILogger logger)
Parameters
Type Name Description
Places.PlacesClient grpcClient

The underlying gRPC client.

PlacesSettings settings

The base PlacesSettings used within this client.

ILogger logger

Optional ILogger to use within this client.

Properties

GrpcClient

The underlying gRPC Places client

Declaration
public override Places.PlacesClient GrpcClient { get; }
Property Value
Type Description
Places.PlacesClient
Overrides
PlacesClient.GrpcClient

Methods

AutocompletePlaces(AutocompletePlacesRequest, CallSettings)

Returns predictions for the given input.

Declaration
public override AutocompletePlacesResponse AutocompletePlaces(AutocompletePlacesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
AutocompletePlacesRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
AutocompletePlacesResponse

The RPC response.

Overrides
PlacesClient.AutocompletePlaces(AutocompletePlacesRequest, CallSettings)

AutocompletePlacesAsync(AutocompletePlacesRequest, CallSettings)

Returns predictions for the given input.

Declaration
public override Task<AutocompletePlacesResponse> AutocompletePlacesAsync(AutocompletePlacesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
AutocompletePlacesRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<AutocompletePlacesResponse>

A Task containing the RPC response.

Overrides
PlacesClient.AutocompletePlacesAsync(AutocompletePlacesRequest, CallSettings)

GetPhotoMedia(GetPhotoMediaRequest, CallSettings)

Get a photo media with a photo reference string.

Declaration
public override PhotoMedia GetPhotoMedia(GetPhotoMediaRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetPhotoMediaRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PhotoMedia

The RPC response.

Overrides
PlacesClient.GetPhotoMedia(GetPhotoMediaRequest, CallSettings)

GetPhotoMediaAsync(GetPhotoMediaRequest, CallSettings)

Get a photo media with a photo reference string.

Declaration
public override Task<PhotoMedia> GetPhotoMediaAsync(GetPhotoMediaRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetPhotoMediaRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<PhotoMedia>

A Task containing the RPC response.

Overrides
PlacesClient.GetPhotoMediaAsync(GetPhotoMediaRequest, CallSettings)

GetPlace(GetPlaceRequest, CallSettings)

Get the details of a place based on its resource name, which is a string in the places/{place_id} format.

Declaration
public override Place GetPlace(GetPlaceRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetPlaceRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Place

The RPC response.

Overrides
PlacesClient.GetPlace(GetPlaceRequest, CallSettings)

GetPlaceAsync(GetPlaceRequest, CallSettings)

Get the details of a place based on its resource name, which is a string in the places/{place_id} format.

Declaration
public override Task<Place> GetPlaceAsync(GetPlaceRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetPlaceRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Place>

A Task containing the RPC response.

Overrides
PlacesClient.GetPlaceAsync(GetPlaceRequest, CallSettings)

SearchNearby(SearchNearbyRequest, CallSettings)

Search for places near locations.

Declaration
public override SearchNearbyResponse SearchNearby(SearchNearbyRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
SearchNearbyRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
SearchNearbyResponse

The RPC response.

Overrides
PlacesClient.SearchNearby(SearchNearbyRequest, CallSettings)

SearchNearbyAsync(SearchNearbyRequest, CallSettings)

Search for places near locations.

Declaration
public override Task<SearchNearbyResponse> SearchNearbyAsync(SearchNearbyRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
SearchNearbyRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<SearchNearbyResponse>

A Task containing the RPC response.

Overrides
PlacesClient.SearchNearbyAsync(SearchNearbyRequest, CallSettings)

SearchText(SearchTextRequest, CallSettings)

Text query based place search.

Declaration
public override SearchTextResponse SearchText(SearchTextRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
SearchTextRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
SearchTextResponse

The RPC response.

Overrides
PlacesClient.SearchText(SearchTextRequest, CallSettings)

SearchTextAsync(SearchTextRequest, CallSettings)

Text query based place search.

Declaration
public override Task<SearchTextResponse> SearchTextAsync(SearchTextRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
SearchTextRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<SearchTextResponse>

A Task containing the RPC response.

Overrides
PlacesClient.SearchTextAsync(SearchTextRequest, CallSettings)
In this article
Back to top Generated by DocFX