Represents a GenerativeQuestionService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.retail.v2beta.GenerativeQuestionServicePackage
@google-cloud/retailConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new GenerativeQuestionService service.
| Parameters | |
|---|---|
| Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
batchUpdateGenerativeQuestionConfigs(request, callback)
public batchUpdateGenerativeQuestionConfigs(request: google.cloud.retail.v2beta.IBatchUpdateGenerativeQuestionConfigsRequest, callback: google.cloud.retail.v2beta.GenerativeQuestionService.BatchUpdateGenerativeQuestionConfigsCallback): void;Calls BatchUpdateGenerativeQuestionConfigs.
| Parameters | |
|---|---|
| Name | Description |
request |
IBatchUpdateGenerativeQuestionConfigsRequest
BatchUpdateGenerativeQuestionConfigsRequest message or plain object |
callback |
BatchUpdateGenerativeQuestionConfigsCallback
Node-style callback called with the error, if any, and BatchUpdateGenerativeQuestionConfigsResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
batchUpdateGenerativeQuestionConfigs(request)
public batchUpdateGenerativeQuestionConfigs(request: google.cloud.retail.v2beta.IBatchUpdateGenerativeQuestionConfigsRequest): Promise<google.cloud.retail.v2beta.BatchUpdateGenerativeQuestionConfigsResponse>;Calls BatchUpdateGenerativeQuestionConfigs.
| Parameter | |
|---|---|
| Name | Description |
request |
IBatchUpdateGenerativeQuestionConfigsRequest
BatchUpdateGenerativeQuestionConfigsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.retail.v2beta.BatchUpdateGenerativeQuestionConfigsResponse> |
Promise |
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): GenerativeQuestionService;Creates new GenerativeQuestionService 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 |
GenerativeQuestionService |
RPC service. Useful where requests and/or responses are streamed. |
getGenerativeQuestionsFeatureConfig(request, callback)
public getGenerativeQuestionsFeatureConfig(request: google.cloud.retail.v2beta.IGetGenerativeQuestionsFeatureConfigRequest, callback: google.cloud.retail.v2beta.GenerativeQuestionService.GetGenerativeQuestionsFeatureConfigCallback): void;Calls GetGenerativeQuestionsFeatureConfig.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetGenerativeQuestionsFeatureConfigRequest
GetGenerativeQuestionsFeatureConfigRequest message or plain object |
callback |
GetGenerativeQuestionsFeatureConfigCallback
Node-style callback called with the error, if any, and GenerativeQuestionsFeatureConfig |
| Returns | |
|---|---|
| Type | Description |
void |
|
getGenerativeQuestionsFeatureConfig(request)
public getGenerativeQuestionsFeatureConfig(request: google.cloud.retail.v2beta.IGetGenerativeQuestionsFeatureConfigRequest): Promise<google.cloud.retail.v2beta.GenerativeQuestionsFeatureConfig>;Calls GetGenerativeQuestionsFeatureConfig.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetGenerativeQuestionsFeatureConfigRequest
GetGenerativeQuestionsFeatureConfigRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.retail.v2beta.GenerativeQuestionsFeatureConfig> |
Promise |
listGenerativeQuestionConfigs(request, callback)
public listGenerativeQuestionConfigs(request: google.cloud.retail.v2beta.IListGenerativeQuestionConfigsRequest, callback: google.cloud.retail.v2beta.GenerativeQuestionService.ListGenerativeQuestionConfigsCallback): void;Calls ListGenerativeQuestionConfigs.
| Parameters | |
|---|---|
| Name | Description |
request |
IListGenerativeQuestionConfigsRequest
ListGenerativeQuestionConfigsRequest message or plain object |
callback |
ListGenerativeQuestionConfigsCallback
Node-style callback called with the error, if any, and ListGenerativeQuestionConfigsResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
listGenerativeQuestionConfigs(request)
public listGenerativeQuestionConfigs(request: google.cloud.retail.v2beta.IListGenerativeQuestionConfigsRequest): Promise<google.cloud.retail.v2beta.ListGenerativeQuestionConfigsResponse>;Calls ListGenerativeQuestionConfigs.
| Parameter | |
|---|---|
| Name | Description |
request |
IListGenerativeQuestionConfigsRequest
ListGenerativeQuestionConfigsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.retail.v2beta.ListGenerativeQuestionConfigsResponse> |
Promise |
updateGenerativeQuestionConfig(request, callback)
public updateGenerativeQuestionConfig(request: google.cloud.retail.v2beta.IUpdateGenerativeQuestionConfigRequest, callback: google.cloud.retail.v2beta.GenerativeQuestionService.UpdateGenerativeQuestionConfigCallback): void;Calls UpdateGenerativeQuestionConfig.
| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateGenerativeQuestionConfigRequest
UpdateGenerativeQuestionConfigRequest message or plain object |
callback |
UpdateGenerativeQuestionConfigCallback
Node-style callback called with the error, if any, and GenerativeQuestionConfig |
| Returns | |
|---|---|
| Type | Description |
void |
|
updateGenerativeQuestionConfig(request)
public updateGenerativeQuestionConfig(request: google.cloud.retail.v2beta.IUpdateGenerativeQuestionConfigRequest): Promise<google.cloud.retail.v2beta.GenerativeQuestionConfig>;Calls UpdateGenerativeQuestionConfig.
| Parameter | |
|---|---|
| Name | Description |
request |
IUpdateGenerativeQuestionConfigRequest
UpdateGenerativeQuestionConfigRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.retail.v2beta.GenerativeQuestionConfig> |
Promise |
updateGenerativeQuestionsFeatureConfig(request, callback)
public updateGenerativeQuestionsFeatureConfig(request: google.cloud.retail.v2beta.IUpdateGenerativeQuestionsFeatureConfigRequest, callback: google.cloud.retail.v2beta.GenerativeQuestionService.UpdateGenerativeQuestionsFeatureConfigCallback): void;Calls UpdateGenerativeQuestionsFeatureConfig.
| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateGenerativeQuestionsFeatureConfigRequest
UpdateGenerativeQuestionsFeatureConfigRequest message or plain object |
callback |
UpdateGenerativeQuestionsFeatureConfigCallback
Node-style callback called with the error, if any, and GenerativeQuestionsFeatureConfig |
| Returns | |
|---|---|
| Type | Description |
void |
|
updateGenerativeQuestionsFeatureConfig(request)
public updateGenerativeQuestionsFeatureConfig(request: google.cloud.retail.v2beta.IUpdateGenerativeQuestionsFeatureConfigRequest): Promise<google.cloud.retail.v2beta.GenerativeQuestionsFeatureConfig>;Calls UpdateGenerativeQuestionsFeatureConfig.
| Parameter | |
|---|---|
| Name | Description |
request |
IUpdateGenerativeQuestionsFeatureConfigRequest
UpdateGenerativeQuestionsFeatureConfigRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.retail.v2beta.GenerativeQuestionsFeatureConfig> |
Promise |