GenerativeQuestionService

google.cloud.retail.v2alpha. GenerativeQuestionService

Represents a GenerativeQuestionService

Constructor

new GenerativeQuestionService(rpcImpl, requestDelimitedopt, responseDelimitedopt)

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

batchUpdateGenerativeQuestionConfigs(request, callback) → {undefined}

Calls BatchUpdateGenerativeQuestionConfigs.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IBatchUpdateGenerativeQuestionConfigsRequest

BatchUpdateGenerativeQuestionConfigsRequest message or plain object

callback google.cloud.retail.v2alpha.GenerativeQuestionService.BatchUpdateGenerativeQuestionConfigsCallback

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

Returns:
Type Description
undefined

batchUpdateGenerativeQuestionConfigs(request) → {Promise.<google.cloud.retail.v2alpha.BatchUpdateGenerativeQuestionConfigsResponse>}

Calls BatchUpdateGenerativeQuestionConfigs.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IBatchUpdateGenerativeQuestionConfigsRequest

BatchUpdateGenerativeQuestionConfigsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.retail.v2alpha.BatchUpdateGenerativeQuestionConfigsResponse>

Promise

getGenerativeQuestionsFeatureConfig(request, callback) → {undefined}

Calls GetGenerativeQuestionsFeatureConfig.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IGetGenerativeQuestionsFeatureConfigRequest

GetGenerativeQuestionsFeatureConfigRequest message or plain object

callback google.cloud.retail.v2alpha.GenerativeQuestionService.GetGenerativeQuestionsFeatureConfigCallback

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

Returns:
Type Description
undefined

getGenerativeQuestionsFeatureConfig(request) → {Promise.<google.cloud.retail.v2alpha.GenerativeQuestionsFeatureConfig>}

Calls GetGenerativeQuestionsFeatureConfig.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IGetGenerativeQuestionsFeatureConfigRequest

GetGenerativeQuestionsFeatureConfigRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.retail.v2alpha.GenerativeQuestionsFeatureConfig>

Promise

listGenerativeQuestionConfigs(request, callback) → {undefined}

Calls ListGenerativeQuestionConfigs.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IListGenerativeQuestionConfigsRequest

ListGenerativeQuestionConfigsRequest message or plain object

callback google.cloud.retail.v2alpha.GenerativeQuestionService.ListGenerativeQuestionConfigsCallback

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

Returns:
Type Description
undefined

listGenerativeQuestionConfigs(request) → {Promise.<google.cloud.retail.v2alpha.ListGenerativeQuestionConfigsResponse>}

Calls ListGenerativeQuestionConfigs.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IListGenerativeQuestionConfigsRequest

ListGenerativeQuestionConfigsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.retail.v2alpha.ListGenerativeQuestionConfigsResponse>

Promise

updateGenerativeQuestionConfig(request, callback) → {undefined}

Calls UpdateGenerativeQuestionConfig.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IUpdateGenerativeQuestionConfigRequest

UpdateGenerativeQuestionConfigRequest message or plain object

callback google.cloud.retail.v2alpha.GenerativeQuestionService.UpdateGenerativeQuestionConfigCallback

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

Returns:
Type Description
undefined

updateGenerativeQuestionConfig(request) → {Promise.<google.cloud.retail.v2alpha.GenerativeQuestionConfig>}

Calls UpdateGenerativeQuestionConfig.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IUpdateGenerativeQuestionConfigRequest

UpdateGenerativeQuestionConfigRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.retail.v2alpha.GenerativeQuestionConfig>

Promise

updateGenerativeQuestionsFeatureConfig(request, callback) → {undefined}

Calls UpdateGenerativeQuestionsFeatureConfig.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IUpdateGenerativeQuestionsFeatureConfigRequest

UpdateGenerativeQuestionsFeatureConfigRequest message or plain object

callback google.cloud.retail.v2alpha.GenerativeQuestionService.UpdateGenerativeQuestionsFeatureConfigCallback

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

Returns:
Type Description
undefined

updateGenerativeQuestionsFeatureConfig(request) → {Promise.<google.cloud.retail.v2alpha.GenerativeQuestionsFeatureConfig>}

Calls UpdateGenerativeQuestionsFeatureConfig.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IUpdateGenerativeQuestionsFeatureConfigRequest

UpdateGenerativeQuestionsFeatureConfigRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.retail.v2alpha.GenerativeQuestionsFeatureConfig>

Promise

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

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

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

Type Definitions

BatchUpdateGenerativeQuestionConfigsCallback(error, responseopt)

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.retail.v2alpha.BatchUpdateGenerativeQuestionConfigsResponse <optional>

BatchUpdateGenerativeQuestionConfigsResponse

GetGenerativeQuestionsFeatureConfigCallback(error, responseopt)

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.retail.v2alpha.GenerativeQuestionsFeatureConfig <optional>

GenerativeQuestionsFeatureConfig

ListGenerativeQuestionConfigsCallback(error, responseopt)

Callback as used by listGenerativeQuestionConfigs.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.retail.v2alpha.ListGenerativeQuestionConfigsResponse <optional>

ListGenerativeQuestionConfigsResponse

UpdateGenerativeQuestionConfigCallback(error, responseopt)

Callback as used by updateGenerativeQuestionConfig.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.retail.v2alpha.GenerativeQuestionConfig <optional>

GenerativeQuestionConfig

UpdateGenerativeQuestionsFeatureConfigCallback(error, responseopt)

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.retail.v2alpha.GenerativeQuestionsFeatureConfig <optional>

GenerativeQuestionsFeatureConfig