Class protos.google.cloud.retail.v2beta.ProjectService (3.6.0)

Represents a ProjectService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.retail.v2beta.ProjectService

Package

@google-cloud/retail

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new ProjectService 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): ProjectService;

Creates new ProjectService 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
ProjectService

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

getAlertConfig(request, callback)

public getAlertConfig(request: google.cloud.retail.v2beta.IGetAlertConfigRequest, callback: google.cloud.retail.v2beta.ProjectService.GetAlertConfigCallback): void;

Calls GetAlertConfig.

Parameters
Name Description
request IGetAlertConfigRequest

GetAlertConfigRequest message or plain object

callback GetAlertConfigCallback

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

Returns
Type Description
void

getAlertConfig(request)

public getAlertConfig(request: google.cloud.retail.v2beta.IGetAlertConfigRequest): Promise<google.cloud.retail.v2beta.AlertConfig>;

Calls GetAlertConfig.

Parameter
Name Description
request IGetAlertConfigRequest

GetAlertConfigRequest message or plain object

Returns
Type Description
Promise<google.cloud.retail.v2beta.AlertConfig>

Promise

updateAlertConfig(request, callback)

public updateAlertConfig(request: google.cloud.retail.v2beta.IUpdateAlertConfigRequest, callback: google.cloud.retail.v2beta.ProjectService.UpdateAlertConfigCallback): void;

Calls UpdateAlertConfig.

Parameters
Name Description
request IUpdateAlertConfigRequest

UpdateAlertConfigRequest message or plain object

callback UpdateAlertConfigCallback

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

Returns
Type Description
void

updateAlertConfig(request)

public updateAlertConfig(request: google.cloud.retail.v2beta.IUpdateAlertConfigRequest): Promise<google.cloud.retail.v2beta.AlertConfig>;

Calls UpdateAlertConfig.

Parameter
Name Description
request IUpdateAlertConfigRequest

UpdateAlertConfigRequest message or plain object

Returns
Type Description
Promise<google.cloud.retail.v2beta.AlertConfig>

Promise