Retail v2 API - Class GenerativeQuestionServiceClientImpl (2.12.0)

public sealed class GenerativeQuestionServiceClientImpl : GenerativeQuestionServiceClient

Reference documentation and code samples for the Retail v2 API class GenerativeQuestionServiceClientImpl.

GenerativeQuestionService client wrapper implementation, for convenient use.

Inheritance

object > GenerativeQuestionServiceClient > GenerativeQuestionServiceClientImpl

Namespace

Google.Cloud.Retail.V2

Assembly

Google.Cloud.Retail.V2.dll

Remarks

Service for managing LLM generated questions in search serving.

Constructors

GenerativeQuestionServiceClientImpl(GenerativeQuestionServiceClient, GenerativeQuestionServiceSettings, ILogger)

public GenerativeQuestionServiceClientImpl(GenerativeQuestionService.GenerativeQuestionServiceClient grpcClient, GenerativeQuestionServiceSettings settings, ILogger logger)

Constructs a client wrapper for the GenerativeQuestionService service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient GenerativeQuestionServiceGenerativeQuestionServiceClient

The underlying gRPC client.

settings GenerativeQuestionServiceSettings

The base GenerativeQuestionServiceSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override GenerativeQuestionService.GenerativeQuestionServiceClient GrpcClient { get; }

The underlying gRPC GenerativeQuestionService client

Property Value
Type Description
GenerativeQuestionServiceGenerativeQuestionServiceClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient
Overrides

Methods

BatchUpdateGenerativeQuestionConfigs(BatchUpdateGenerativeQuestionConfigsRequest, CallSettings)

public override BatchUpdateGenerativeQuestionConfigsResponse BatchUpdateGenerativeQuestionConfigs(BatchUpdateGenerativeQuestionConfigsRequest request, CallSettings callSettings = null)

Allows management of multiple questions.

Parameters
Name Description
request BatchUpdateGenerativeQuestionConfigsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchUpdateGenerativeQuestionConfigsResponse

The RPC response.

Overrides

BatchUpdateGenerativeQuestionConfigsAsync(BatchUpdateGenerativeQuestionConfigsRequest, CallSettings)

public override Task<BatchUpdateGenerativeQuestionConfigsResponse> BatchUpdateGenerativeQuestionConfigsAsync(BatchUpdateGenerativeQuestionConfigsRequest request, CallSettings callSettings = null)

Allows management of multiple questions.

Parameters
Name Description
request BatchUpdateGenerativeQuestionConfigsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskBatchUpdateGenerativeQuestionConfigsResponse

A Task containing the RPC response.

Overrides

GetGenerativeQuestionsFeatureConfig(GetGenerativeQuestionsFeatureConfigRequest, CallSettings)

public override GenerativeQuestionsFeatureConfig GetGenerativeQuestionsFeatureConfig(GetGenerativeQuestionsFeatureConfigRequest request, CallSettings callSettings = null)

Manages overal generative question feature state -- enables toggling feature on and off.

Parameters
Name Description
request GetGenerativeQuestionsFeatureConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GenerativeQuestionsFeatureConfig

The RPC response.

Overrides

GetGenerativeQuestionsFeatureConfigAsync(GetGenerativeQuestionsFeatureConfigRequest, CallSettings)

public override Task<GenerativeQuestionsFeatureConfig> GetGenerativeQuestionsFeatureConfigAsync(GetGenerativeQuestionsFeatureConfigRequest request, CallSettings callSettings = null)

Manages overal generative question feature state -- enables toggling feature on and off.

Parameters
Name Description
request GetGenerativeQuestionsFeatureConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGenerativeQuestionsFeatureConfig

A Task containing the RPC response.

Overrides

ListGenerativeQuestionConfigs(ListGenerativeQuestionConfigsRequest, CallSettings)

public override ListGenerativeQuestionConfigsResponse ListGenerativeQuestionConfigs(ListGenerativeQuestionConfigsRequest request, CallSettings callSettings = null)

Returns all questions for a given catalog.

Parameters
Name Description
request ListGenerativeQuestionConfigsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ListGenerativeQuestionConfigsResponse

The RPC response.

Overrides

ListGenerativeQuestionConfigsAsync(ListGenerativeQuestionConfigsRequest, CallSettings)

public override Task<ListGenerativeQuestionConfigsResponse> ListGenerativeQuestionConfigsAsync(ListGenerativeQuestionConfigsRequest request, CallSettings callSettings = null)

Returns all questions for a given catalog.

Parameters
Name Description
request ListGenerativeQuestionConfigsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskListGenerativeQuestionConfigsResponse

A Task containing the RPC response.

Overrides

UpdateGenerativeQuestionConfig(UpdateGenerativeQuestionConfigRequest, CallSettings)

public override GenerativeQuestionConfig UpdateGenerativeQuestionConfig(UpdateGenerativeQuestionConfigRequest request, CallSettings callSettings = null)

Allows management of individual questions.

Parameters
Name Description
request UpdateGenerativeQuestionConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GenerativeQuestionConfig

The RPC response.

Overrides

UpdateGenerativeQuestionConfigAsync(UpdateGenerativeQuestionConfigRequest, CallSettings)

public override Task<GenerativeQuestionConfig> UpdateGenerativeQuestionConfigAsync(UpdateGenerativeQuestionConfigRequest request, CallSettings callSettings = null)

Allows management of individual questions.

Parameters
Name Description
request UpdateGenerativeQuestionConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGenerativeQuestionConfig

A Task containing the RPC response.

Overrides

UpdateGenerativeQuestionsFeatureConfig(UpdateGenerativeQuestionsFeatureConfigRequest, CallSettings)

public override GenerativeQuestionsFeatureConfig UpdateGenerativeQuestionsFeatureConfig(UpdateGenerativeQuestionsFeatureConfigRequest request, CallSettings callSettings = null)

Manages overal generative question feature state -- enables toggling feature on and off.

Parameters
Name Description
request UpdateGenerativeQuestionsFeatureConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GenerativeQuestionsFeatureConfig

The RPC response.

Overrides

UpdateGenerativeQuestionsFeatureConfigAsync(UpdateGenerativeQuestionsFeatureConfigRequest, CallSettings)

public override Task<GenerativeQuestionsFeatureConfig> UpdateGenerativeQuestionsFeatureConfigAsync(UpdateGenerativeQuestionsFeatureConfigRequest request, CallSettings callSettings = null)

Manages overal generative question feature state -- enables toggling feature on and off.

Parameters
Name Description
request UpdateGenerativeQuestionsFeatureConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGenerativeQuestionsFeatureConfig

A Task containing the RPC response.

Overrides