ProjectService

google.cloud.retail.v2beta. ProjectService

Represents a ProjectService

Constructor

new ProjectService(rpcImpl, requestDelimitedopt, responseDelimitedopt)

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

getAlertConfig(request, callback) → {undefined}

Calls GetAlertConfig.

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

GetAlertConfigRequest message or plain object

callback google.cloud.retail.v2beta.ProjectService.GetAlertConfigCallback

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

Returns:
Type Description
undefined

getAlertConfig(request) → {Promise.<google.cloud.retail.v2beta.AlertConfig>}

Calls GetAlertConfig.

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

GetAlertConfigRequest message or plain object

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

Promise

updateAlertConfig(request, callback) → {undefined}

Calls UpdateAlertConfig.

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

UpdateAlertConfigRequest message or plain object

callback google.cloud.retail.v2beta.ProjectService.UpdateAlertConfigCallback

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

Returns:
Type Description
undefined

updateAlertConfig(request) → {Promise.<google.cloud.retail.v2beta.AlertConfig>}

Calls UpdateAlertConfig.

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

UpdateAlertConfigRequest message or plain object

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

Promise

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

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

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

Type Definitions

GetAlertConfigCallback(error, responseopt)

Callback as used by getAlertConfig.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.retail.v2beta.AlertConfig <optional>

AlertConfig

UpdateAlertConfigCallback(error, responseopt)

Callback as used by updateAlertConfig.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.retail.v2beta.AlertConfig <optional>

AlertConfig