Represents an AnalyticsService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.retail.v2beta.AnalyticsServicePackage
@google-cloud/retailConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new AnalyticsService service.
| Parameters | |
|---|---|
| Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): AnalyticsService;Creates new AnalyticsService service using the specified rpc implementation.
| Parameters | |
|---|---|
| Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
| Returns | |
|---|---|
| Type | Description |
AnalyticsService |
RPC service. Useful where requests and/or responses are streamed. |
exportAnalyticsMetrics(request, callback)
public exportAnalyticsMetrics(request: google.cloud.retail.v2beta.IExportAnalyticsMetricsRequest, callback: google.cloud.retail.v2beta.AnalyticsService.ExportAnalyticsMetricsCallback): void;Calls ExportAnalyticsMetrics.
| Parameters | |
|---|---|
| Name | Description |
request |
IExportAnalyticsMetricsRequest
ExportAnalyticsMetricsRequest message or plain object |
callback |
ExportAnalyticsMetricsCallback
Node-style callback called with the error, if any, and Operation |
| Returns | |
|---|---|
| Type | Description |
void |
|
exportAnalyticsMetrics(request)
public exportAnalyticsMetrics(request: google.cloud.retail.v2beta.IExportAnalyticsMetricsRequest): Promise<google.longrunning.Operation>;Calls ExportAnalyticsMetrics.
| Parameter | |
|---|---|
| Name | Description |
request |
IExportAnalyticsMetricsRequest
ExportAnalyticsMetricsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.longrunning.Operation> |
Promise |