AnalyticsService

google.cloud.retail.v2beta. AnalyticsService

Represents an AnalyticsService

Constructor

new AnalyticsService(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new AnalyticsService service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

exportAnalyticsMetrics(request, callback) → {undefined}

Calls ExportAnalyticsMetrics.

Parameters:
Name Type Description
request google.cloud.retail.v2beta.IExportAnalyticsMetricsRequest

ExportAnalyticsMetricsRequest message or plain object

callback google.cloud.retail.v2beta.AnalyticsService.ExportAnalyticsMetricsCallback

Node-style callback called with the error, if any, and Operation

Returns:
Type Description
undefined

exportAnalyticsMetrics(request) → {Promise.<google.longrunning.Operation>}

Calls ExportAnalyticsMetrics.

Parameters:
Name Type Description
request google.cloud.retail.v2beta.IExportAnalyticsMetricsRequest

ExportAnalyticsMetricsRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {AnalyticsService}

Creates new AnalyticsService service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Returns:
Type Description
AnalyticsService

RPC service. Useful where requests and/or responses are streamed.

Type Definitions

ExportAnalyticsMetricsCallback(error, responseopt)

Callback as used by exportAnalyticsMetrics.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation