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.v2.IBatchUpdateGenerativeQuestionConfigsRequest |
BatchUpdateGenerativeQuestionConfigsRequest message or plain object |
callback |
google.cloud.retail.v2.GenerativeQuestionService.BatchUpdateGenerativeQuestionConfigsCallback |
Node-style callback called with the error, if any, and BatchUpdateGenerativeQuestionConfigsResponse |
Returns:
Type | Description |
---|---|
undefined |
batchUpdateGenerativeQuestionConfigs(request) → {Promise.<google.cloud.retail.v2.BatchUpdateGenerativeQuestionConfigsResponse>}
Calls BatchUpdateGenerativeQuestionConfigs.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.retail.v2.IBatchUpdateGenerativeQuestionConfigsRequest |
BatchUpdateGenerativeQuestionConfigsRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.retail.v2.BatchUpdateGenerativeQuestionConfigsResponse> |
Promise |
getGenerativeQuestionsFeatureConfig(request, callback) → {undefined}
Calls GetGenerativeQuestionsFeatureConfig.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.retail.v2.IGetGenerativeQuestionsFeatureConfigRequest |
GetGenerativeQuestionsFeatureConfigRequest message or plain object |
callback |
google.cloud.retail.v2.GenerativeQuestionService.GetGenerativeQuestionsFeatureConfigCallback |
Node-style callback called with the error, if any, and GenerativeQuestionsFeatureConfig |
Returns:
Type | Description |
---|---|
undefined |
getGenerativeQuestionsFeatureConfig(request) → {Promise.<google.cloud.retail.v2.GenerativeQuestionsFeatureConfig>}
Calls GetGenerativeQuestionsFeatureConfig.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.retail.v2.IGetGenerativeQuestionsFeatureConfigRequest |
GetGenerativeQuestionsFeatureConfigRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.retail.v2.GenerativeQuestionsFeatureConfig> |
Promise |
listGenerativeQuestionConfigs(request, callback) → {undefined}
Calls ListGenerativeQuestionConfigs.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.retail.v2.IListGenerativeQuestionConfigsRequest |
ListGenerativeQuestionConfigsRequest message or plain object |
callback |
google.cloud.retail.v2.GenerativeQuestionService.ListGenerativeQuestionConfigsCallback |
Node-style callback called with the error, if any, and ListGenerativeQuestionConfigsResponse |
Returns:
Type | Description |
---|---|
undefined |
listGenerativeQuestionConfigs(request) → {Promise.<google.cloud.retail.v2.ListGenerativeQuestionConfigsResponse>}
Calls ListGenerativeQuestionConfigs.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.retail.v2.IListGenerativeQuestionConfigsRequest |
ListGenerativeQuestionConfigsRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.retail.v2.ListGenerativeQuestionConfigsResponse> |
Promise |
updateGenerativeQuestionConfig(request, callback) → {undefined}
Calls UpdateGenerativeQuestionConfig.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.retail.v2.IUpdateGenerativeQuestionConfigRequest |
UpdateGenerativeQuestionConfigRequest message or plain object |
callback |
google.cloud.retail.v2.GenerativeQuestionService.UpdateGenerativeQuestionConfigCallback |
Node-style callback called with the error, if any, and GenerativeQuestionConfig |
Returns:
Type | Description |
---|---|
undefined |
updateGenerativeQuestionConfig(request) → {Promise.<google.cloud.retail.v2.GenerativeQuestionConfig>}
Calls UpdateGenerativeQuestionConfig.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.retail.v2.IUpdateGenerativeQuestionConfigRequest |
UpdateGenerativeQuestionConfigRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.retail.v2.GenerativeQuestionConfig> |
Promise |
updateGenerativeQuestionsFeatureConfig(request, callback) → {undefined}
Calls UpdateGenerativeQuestionsFeatureConfig.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.retail.v2.IUpdateGenerativeQuestionsFeatureConfigRequest |
UpdateGenerativeQuestionsFeatureConfigRequest message or plain object |
callback |
google.cloud.retail.v2.GenerativeQuestionService.UpdateGenerativeQuestionsFeatureConfigCallback |
Node-style callback called with the error, if any, and GenerativeQuestionsFeatureConfig |
Returns:
Type | Description |
---|---|
undefined |
updateGenerativeQuestionsFeatureConfig(request) → {Promise.<google.cloud.retail.v2.GenerativeQuestionsFeatureConfig>}
Calls UpdateGenerativeQuestionsFeatureConfig.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.retail.v2.IUpdateGenerativeQuestionsFeatureConfigRequest |
UpdateGenerativeQuestionsFeatureConfigRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.retail.v2.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)
Callback as used by batchUpdateGenerativeQuestionConfigs.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.retail.v2.BatchUpdateGenerativeQuestionConfigsResponse |
<optional> |
BatchUpdateGenerativeQuestionConfigsResponse |
GetGenerativeQuestionsFeatureConfigCallback(error, responseopt)
Callback as used by getGenerativeQuestionsFeatureConfig.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.retail.v2.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.v2.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.v2.GenerativeQuestionConfig |
<optional> |
GenerativeQuestionConfig |
UpdateGenerativeQuestionsFeatureConfigCallback(error, responseopt)
Callback as used by updateGenerativeQuestionsFeatureConfig.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.retail.v2.GenerativeQuestionsFeatureConfig |
<optional> |
GenerativeQuestionsFeatureConfig |