Class protos.google.cloud.retail.v2alpha.GenerativeQuestionService (3.6.0)

Represents a GenerativeQuestionService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.retail.v2alpha.GenerativeQuestionService

Package

@google-cloud/retail

Constructors

(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.v2alpha.IBatchUpdateGenerativeQuestionConfigsRequest, callback: google.cloud.retail.v2alpha.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.v2alpha.IBatchUpdateGenerativeQuestionConfigsRequest): Promise<google.cloud.retail.v2alpha.BatchUpdateGenerativeQuestionConfigsResponse>;

Calls BatchUpdateGenerativeQuestionConfigs.

Parameter
Name Description
request IBatchUpdateGenerativeQuestionConfigsRequest

BatchUpdateGenerativeQuestionConfigsRequest message or plain object

Returns
Type Description
Promise<google.cloud.retail.v2alpha.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.v2alpha.IGetGenerativeQuestionsFeatureConfigRequest, callback: google.cloud.retail.v2alpha.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.v2alpha.IGetGenerativeQuestionsFeatureConfigRequest): Promise<google.cloud.retail.v2alpha.GenerativeQuestionsFeatureConfig>;

Calls GetGenerativeQuestionsFeatureConfig.

Parameter
Name Description
request IGetGenerativeQuestionsFeatureConfigRequest

GetGenerativeQuestionsFeatureConfigRequest message or plain object

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

Promise

listGenerativeQuestionConfigs(request, callback)

public listGenerativeQuestionConfigs(request: google.cloud.retail.v2alpha.IListGenerativeQuestionConfigsRequest, callback: google.cloud.retail.v2alpha.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.v2alpha.IListGenerativeQuestionConfigsRequest): Promise<google.cloud.retail.v2alpha.ListGenerativeQuestionConfigsResponse>;

Calls ListGenerativeQuestionConfigs.

Parameter
Name Description
request IListGenerativeQuestionConfigsRequest

ListGenerativeQuestionConfigsRequest message or plain object

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

Promise

updateGenerativeQuestionConfig(request, callback)

public updateGenerativeQuestionConfig(request: google.cloud.retail.v2alpha.IUpdateGenerativeQuestionConfigRequest, callback: google.cloud.retail.v2alpha.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.v2alpha.IUpdateGenerativeQuestionConfigRequest): Promise<google.cloud.retail.v2alpha.GenerativeQuestionConfig>;

Calls UpdateGenerativeQuestionConfig.

Parameter
Name Description
request IUpdateGenerativeQuestionConfigRequest

UpdateGenerativeQuestionConfigRequest message or plain object

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

Promise

updateGenerativeQuestionsFeatureConfig(request, callback)

public updateGenerativeQuestionsFeatureConfig(request: google.cloud.retail.v2alpha.IUpdateGenerativeQuestionsFeatureConfigRequest, callback: google.cloud.retail.v2alpha.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.v2alpha.IUpdateGenerativeQuestionsFeatureConfigRequest): Promise<google.cloud.retail.v2alpha.GenerativeQuestionsFeatureConfig>;

Calls UpdateGenerativeQuestionsFeatureConfig.

Parameter
Name Description
request IUpdateGenerativeQuestionsFeatureConfigRequest

UpdateGenerativeQuestionsFeatureConfigRequest message or plain object

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

Promise