Retail v2 API - Class AnalyticsService.AnalyticsServiceClient (2.7.0)

public class AnalyticsService.AnalyticsServiceClient : ClientBase<AnalyticsService.AnalyticsServiceClient>

Reference documentation and code samples for the Retail v2 API class AnalyticsService.AnalyticsServiceClient.

Client for AnalyticsService

Inheritance

object > ClientBase > ClientBaseAnalyticsServiceAnalyticsServiceClient > AnalyticsService.AnalyticsServiceClient

Namespace

Google.Cloud.Retail.V2

Assembly

Google.Cloud.Retail.V2.dll

Constructors

AnalyticsServiceClient()

protected AnalyticsServiceClient()

Protected parameterless constructor to allow creation of test doubles.

AnalyticsServiceClient(CallInvoker)

public AnalyticsServiceClient(CallInvoker callInvoker)

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

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

AnalyticsServiceClient(ChannelBase)

public AnalyticsServiceClient(ChannelBase channel)

Creates a new client for AnalyticsService

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

AnalyticsServiceClient(ClientBaseConfiguration)

protected AnalyticsServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateLocationsClient()

public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of Locations.LocationsClient using the same call invoker as this client.

Returns
TypeDescription
LocationsLocationsClient

A new Locations.LocationsClient for the same target as this client.

CreateOperationsClient()

public virtual Operations.OperationsClient CreateOperationsClient()

Creates a new instance of Operations.OperationsClient using the same call invoker as this client.

Returns
TypeDescription
OperationsOperationsClient

A new Operations client for the same target as this client.

ExportAnalyticsMetrics(ExportAnalyticsMetricsRequest, CallOptions)

public virtual Operation ExportAnalyticsMetrics(ExportAnalyticsMetricsRequest request, CallOptions options)

Exports analytics metrics.

Operation.response is of type ExportAnalyticsMetricsResponse. Operation.metadata is of type ExportMetadata.

Parameters
NameDescription
requestExportAnalyticsMetricsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

ExportAnalyticsMetrics(ExportAnalyticsMetricsRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation ExportAnalyticsMetrics(ExportAnalyticsMetricsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Exports analytics metrics.

Operation.response is of type ExportAnalyticsMetricsResponse. Operation.metadata is of type ExportMetadata.

Parameters
NameDescription
requestExportAnalyticsMetricsRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
Operation

The response received from the server.

ExportAnalyticsMetricsAsync(ExportAnalyticsMetricsRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> ExportAnalyticsMetricsAsync(ExportAnalyticsMetricsRequest request, CallOptions options)

Exports analytics metrics.

Operation.response is of type ExportAnalyticsMetricsResponse. Operation.metadata is of type ExportMetadata.

Parameters
NameDescription
requestExportAnalyticsMetricsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

ExportAnalyticsMetricsAsync(ExportAnalyticsMetricsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> ExportAnalyticsMetricsAsync(ExportAnalyticsMetricsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Exports analytics metrics.

Operation.response is of type ExportAnalyticsMetricsResponse. Operation.metadata is of type ExportMetadata.

Parameters
NameDescription
requestExportAnalyticsMetricsRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallOperation

The call object.

NewInstance(ClientBaseConfiguration)

protected override AnalyticsService.AnalyticsServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
AnalyticsServiceAnalyticsServiceClient
Overrides