Show / Hide Table of Contents

Class AreaInsights.AreaInsightsClient

Client for AreaInsights

Inheritance
object
ClientBase
ClientBase<AreaInsights.AreaInsightsClient>
AreaInsights.AreaInsightsClient
Inherited Members
ClientBase<AreaInsights.AreaInsightsClient>.WithHost(string)
ClientBase.CallInvoker
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ToString()
Namespace: Google.Maps.AreaInsights.V1
Assembly: Google.Maps.AreaInsights.V1.dll
Syntax
public class AreaInsights.AreaInsightsClient : ClientBase<AreaInsights.AreaInsightsClient>

Constructors

AreaInsightsClient()

Protected parameterless constructor to allow creation of test doubles.

Declaration
protected AreaInsightsClient()

AreaInsightsClient(CallInvoker)

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

Declaration
public AreaInsightsClient(CallInvoker callInvoker)
Parameters
Type Name Description
CallInvoker callInvoker

The callInvoker to use to make remote calls.

AreaInsightsClient(ChannelBase)

Creates a new client for AreaInsights

Declaration
public AreaInsightsClient(ChannelBase channel)
Parameters
Type Name Description
ChannelBase channel

The channel to use to make remote calls.

AreaInsightsClient(ClientBaseConfiguration)

Protected constructor to allow creation of configured clients.

Declaration
protected AreaInsightsClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type Name Description
ClientBase.ClientBaseConfiguration configuration

The client configuration.

Methods

ComputeInsights(ComputeInsightsRequest, CallOptions)

Compute Insights RPC

This method lets you retrieve insights about areas using a variaty of filter such as: area, place type, operating status, price level and ratings. Currently "count" and "places" insights are supported. With "count" insights you can answer questions such as "How many restaurant are located in California that are operational, are inexpensive and have an average rating of at least 4 stars" (see insight enum for more details). With "places" insights, you can determine which places match the requested filter. Clients can then use those place resource names to fetch more details about each individual place using the Places API.

Declaration
public virtual ComputeInsightsResponse ComputeInsights(ComputeInsightsRequest request, CallOptions options)
Parameters
Type Name Description
ComputeInsightsRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
ComputeInsightsResponse

The response received from the server.

ComputeInsights(ComputeInsightsRequest, Metadata, DateTime?, CancellationToken)

Compute Insights RPC

This method lets you retrieve insights about areas using a variaty of filter such as: area, place type, operating status, price level and ratings. Currently "count" and "places" insights are supported. With "count" insights you can answer questions such as "How many restaurant are located in California that are operational, are inexpensive and have an average rating of at least 4 stars" (see insight enum for more details). With "places" insights, you can determine which places match the requested filter. Clients can then use those place resource names to fetch more details about each individual place using the Places API.

Declaration
public virtual ComputeInsightsResponse ComputeInsights(ComputeInsightsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ComputeInsightsRequest 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
ComputeInsightsResponse

The response received from the server.

ComputeInsightsAsync(ComputeInsightsRequest, CallOptions)

Compute Insights RPC

This method lets you retrieve insights about areas using a variaty of filter such as: area, place type, operating status, price level and ratings. Currently "count" and "places" insights are supported. With "count" insights you can answer questions such as "How many restaurant are located in California that are operational, are inexpensive and have an average rating of at least 4 stars" (see insight enum for more details). With "places" insights, you can determine which places match the requested filter. Clients can then use those place resource names to fetch more details about each individual place using the Places API.

Declaration
public virtual AsyncUnaryCall<ComputeInsightsResponse> ComputeInsightsAsync(ComputeInsightsRequest request, CallOptions options)
Parameters
Type Name Description
ComputeInsightsRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<ComputeInsightsResponse>

The call object.

ComputeInsightsAsync(ComputeInsightsRequest, Metadata, DateTime?, CancellationToken)

Compute Insights RPC

This method lets you retrieve insights about areas using a variaty of filter such as: area, place type, operating status, price level and ratings. Currently "count" and "places" insights are supported. With "count" insights you can answer questions such as "How many restaurant are located in California that are operational, are inexpensive and have an average rating of at least 4 stars" (see insight enum for more details). With "places" insights, you can determine which places match the requested filter. Clients can then use those place resource names to fetch more details about each individual place using the Places API.

Declaration
public virtual AsyncUnaryCall<ComputeInsightsResponse> ComputeInsightsAsync(ComputeInsightsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ComputeInsightsRequest 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<ComputeInsightsResponse>

The call object.

NewInstance(ClientBaseConfiguration)

Creates a new instance of client from given ClientBaseConfiguration.

Declaration
protected override AreaInsights.AreaInsightsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type Name Description
ClientBase.ClientBaseConfiguration configuration
Returns
Type Description
AreaInsights.AreaInsightsClient
Overrides
Grpc.Core.ClientBase<Google.Maps.AreaInsights.V1.AreaInsights.AreaInsightsClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)
In this article
Back to top Generated by DocFX