GenerativeQuestionService

google.cloud.retail.v2beta. 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.v2beta.IBatchUpdateGenerativeQuestionConfigsRequest

BatchUpdateGenerativeQuestionConfigsRequest message or plain object

callback google.cloud.retail.v2beta.GenerativeQuestionService.BatchUpdateGenerativeQuestionConfigsCallback

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

Returns:
Type Description
undefined

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

Calls BatchUpdateGenerativeQuestionConfigs.

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

BatchUpdateGenerativeQuestionConfigsRequest message or plain object

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

Promise

getGenerativeQuestionsFeatureConfig(request, callback) → {undefined}

Calls GetGenerativeQuestionsFeatureConfig.

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

GetGenerativeQuestionsFeatureConfigRequest message or plain object

callback google.cloud.retail.v2beta.GenerativeQuestionService.GetGenerativeQuestionsFeatureConfigCallback

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

Returns:
Type Description
undefined

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

Calls GetGenerativeQuestionsFeatureConfig.

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

GetGenerativeQuestionsFeatureConfigRequest message or plain object

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

Promise

listGenerativeQuestionConfigs(request, callback) → {undefined}

Calls ListGenerativeQuestionConfigs.

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

ListGenerativeQuestionConfigsRequest message or plain object

callback google.cloud.retail.v2beta.GenerativeQuestionService.ListGenerativeQuestionConfigsCallback

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

Returns:
Type Description
undefined

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

Calls ListGenerativeQuestionConfigs.

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

ListGenerativeQuestionConfigsRequest message or plain object

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

Promise

updateGenerativeQuestionConfig(request, callback) → {undefined}

Calls UpdateGenerativeQuestionConfig.

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

UpdateGenerativeQuestionConfigRequest message or plain object

callback google.cloud.retail.v2beta.GenerativeQuestionService.UpdateGenerativeQuestionConfigCallback

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

Returns:
Type Description
undefined

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

Calls UpdateGenerativeQuestionConfig.

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

UpdateGenerativeQuestionConfigRequest message or plain object

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

Promise

updateGenerativeQuestionsFeatureConfig(request, callback) → {undefined}

Calls UpdateGenerativeQuestionsFeatureConfig.

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

UpdateGenerativeQuestionsFeatureConfigRequest message or plain object

callback google.cloud.retail.v2beta.GenerativeQuestionService.UpdateGenerativeQuestionsFeatureConfigCallback

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

Returns:
Type Description
undefined

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

Calls UpdateGenerativeQuestionsFeatureConfig.

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

UpdateGenerativeQuestionsFeatureConfigRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.retail.v2beta.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.v2beta.BatchUpdateGenerativeQuestionConfigsResponse <optional>

BatchUpdateGenerativeQuestionConfigsResponse

GetGenerativeQuestionsFeatureConfigCallback(error, responseopt)

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.retail.v2beta.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.v2beta.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.v2beta.GenerativeQuestionConfig <optional>

GenerativeQuestionConfig

UpdateGenerativeQuestionsFeatureConfigCallback(error, responseopt)

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

GenerativeQuestionsFeatureConfig