2.16.0 (latest) 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public class GenerativeQuestionService.GenerativeQuestionServiceClient : ClientBase<GenerativeQuestionService.GenerativeQuestionServiceClient>

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

Client for GenerativeQuestionService

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [ClientBase](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.md.txt) \> [ClientBase](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.md.txt)[GenerativeQuestionService](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.GenerativeQuestionService.md.txt)[GenerativeQuestionServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.GenerativeQuestionService.GenerativeQuestionServiceClient.md.txt) \> GenerativeQuestionService.GenerativeQuestionServiceClient

## Inherited Members

[ClientBase\<GenerativeQuestionService.GenerativeQuestionServiceClient\>.WithHost(string)](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.md.txt#Grpc_Core_ClientBase_1_WithHost_System_String_) [ClientBase.CallInvoker](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.md.txt#Grpc_Core_ClientBase_CallInvoker) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Retail.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.md.txt)

## Assembly

Google.Cloud.Retail.V2.dll

## Constructors

### GenerativeQuestionServiceClient()

    protected GenerativeQuestionServiceClient()

Protected parameterless constructor to allow creation of test doubles.

### GenerativeQuestionServiceClient(CallInvoker)

    public GenerativeQuestionServiceClient(CallInvoker callInvoker)

Creates a new client for GenerativeQuestionService that uses a custom `CallInvoker`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `callInvoker` | `CallInvoker` The callInvoker to use to make remote calls. |

### GenerativeQuestionServiceClient(ChannelBase)

    public GenerativeQuestionServiceClient(ChannelBase channel)

Creates a new client for GenerativeQuestionService

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `channel` | `ChannelBase` The channel to use to make remote calls. |

### GenerativeQuestionServiceClient(ClientBaseConfiguration)

    protected GenerativeQuestionServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `configuration` | `ClientBaseClientBaseConfiguration` The client configuration. |

## Methods

### BatchUpdateGenerativeQuestionConfigs(BatchUpdateGenerativeQuestionConfigsRequest, CallOptions)

    public virtual BatchUpdateGenerativeQuestionConfigsResponse BatchUpdateGenerativeQuestionConfigs(BatchUpdateGenerativeQuestionConfigsRequest request, CallOptions options)

Allows management of multiple questions.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `BatchUpdateGenerativeQuestionConfigsRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `BatchUpdateGenerativeQuestionConfigsResponse` | The response received from the server. |

### BatchUpdateGenerativeQuestionConfigs(BatchUpdateGenerativeQuestionConfigsRequest, Metadata, DateTime?, CancellationToken)

    public virtual BatchUpdateGenerativeQuestionConfigsResponse BatchUpdateGenerativeQuestionConfigs(BatchUpdateGenerativeQuestionConfigsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Allows management of multiple questions.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `BatchUpdateGenerativeQuestionConfigsRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `BatchUpdateGenerativeQuestionConfigsResponse` | The response received from the server. |

### BatchUpdateGenerativeQuestionConfigsAsync(BatchUpdateGenerativeQuestionConfigsRequest, CallOptions)

    public virtual AsyncUnaryCall<BatchUpdateGenerativeQuestionConfigsResponse> BatchUpdateGenerativeQuestionConfigsAsync(BatchUpdateGenerativeQuestionConfigsRequest request, CallOptions options)

Allows management of multiple questions.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `BatchUpdateGenerativeQuestionConfigsRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallBatchUpdateGenerativeQuestionConfigsResponse` | The call object. |

### BatchUpdateGenerativeQuestionConfigsAsync(BatchUpdateGenerativeQuestionConfigsRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<BatchUpdateGenerativeQuestionConfigsResponse> BatchUpdateGenerativeQuestionConfigsAsync(BatchUpdateGenerativeQuestionConfigsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Allows management of multiple questions.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `BatchUpdateGenerativeQuestionConfigsRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallBatchUpdateGenerativeQuestionConfigsResponse` | The call object. |

### CreateLocationsClient()

    public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of [Locations.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.Locations.LocationsClient.md.txt) using the same call invoker as
this client.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `LocationsLocationsClient` | A new [Locations.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.Locations.LocationsClient.md.txt) for the same target as this client. |

### GetGenerativeQuestionsFeatureConfig(GetGenerativeQuestionsFeatureConfigRequest, CallOptions)

    public virtual GenerativeQuestionsFeatureConfig GetGenerativeQuestionsFeatureConfig(GetGenerativeQuestionsFeatureConfigRequest request, CallOptions options)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetGenerativeQuestionsFeatureConfigRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GenerativeQuestionsFeatureConfig` | The response received from the server. |

### GetGenerativeQuestionsFeatureConfig(GetGenerativeQuestionsFeatureConfigRequest, Metadata, DateTime?, CancellationToken)

    public virtual GenerativeQuestionsFeatureConfig GetGenerativeQuestionsFeatureConfig(GetGenerativeQuestionsFeatureConfigRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetGenerativeQuestionsFeatureConfigRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GenerativeQuestionsFeatureConfig` | The response received from the server. |

### GetGenerativeQuestionsFeatureConfigAsync(GetGenerativeQuestionsFeatureConfigRequest, CallOptions)

    public virtual AsyncUnaryCall<GenerativeQuestionsFeatureConfig> GetGenerativeQuestionsFeatureConfigAsync(GetGenerativeQuestionsFeatureConfigRequest request, CallOptions options)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetGenerativeQuestionsFeatureConfigRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallGenerativeQuestionsFeatureConfig` | The call object. |

### GetGenerativeQuestionsFeatureConfigAsync(GetGenerativeQuestionsFeatureConfigRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<GenerativeQuestionsFeatureConfig> GetGenerativeQuestionsFeatureConfigAsync(GetGenerativeQuestionsFeatureConfigRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetGenerativeQuestionsFeatureConfigRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallGenerativeQuestionsFeatureConfig` | The call object. |

### ListGenerativeQuestionConfigs(ListGenerativeQuestionConfigsRequest, CallOptions)

    public virtual ListGenerativeQuestionConfigsResponse ListGenerativeQuestionConfigs(ListGenerativeQuestionConfigsRequest request, CallOptions options)

Returns all questions for a given catalog.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListGenerativeQuestionConfigsRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ListGenerativeQuestionConfigsResponse` | The response received from the server. |

### ListGenerativeQuestionConfigs(ListGenerativeQuestionConfigsRequest, Metadata, DateTime?, CancellationToken)

    public virtual ListGenerativeQuestionConfigsResponse ListGenerativeQuestionConfigs(ListGenerativeQuestionConfigsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns all questions for a given catalog.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListGenerativeQuestionConfigsRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ListGenerativeQuestionConfigsResponse` | The response received from the server. |

### ListGenerativeQuestionConfigsAsync(ListGenerativeQuestionConfigsRequest, CallOptions)

    public virtual AsyncUnaryCall<ListGenerativeQuestionConfigsResponse> ListGenerativeQuestionConfigsAsync(ListGenerativeQuestionConfigsRequest request, CallOptions options)

Returns all questions for a given catalog.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListGenerativeQuestionConfigsRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallListGenerativeQuestionConfigsResponse` | The call object. |

### ListGenerativeQuestionConfigsAsync(ListGenerativeQuestionConfigsRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<ListGenerativeQuestionConfigsResponse> ListGenerativeQuestionConfigsAsync(ListGenerativeQuestionConfigsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns all questions for a given catalog.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListGenerativeQuestionConfigsRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallListGenerativeQuestionConfigsResponse` | The call object. |

### NewInstance(ClientBaseConfiguration)

    protected override GenerativeQuestionService.GenerativeQuestionServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given `ClientBaseConfiguration`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `configuration` | `ClientBaseClientBaseConfiguration` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GenerativeQuestionServiceGenerativeQuestionServiceClient` |   |

**Overrides** Grpc.Core.ClientBase\<Google.Cloud.Retail.V2.GenerativeQuestionService.GenerativeQuestionServiceClient\>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

### UpdateGenerativeQuestionConfig(UpdateGenerativeQuestionConfigRequest, CallOptions)

    public virtual GenerativeQuestionConfig UpdateGenerativeQuestionConfig(UpdateGenerativeQuestionConfigRequest request, CallOptions options)

Allows management of individual questions.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateGenerativeQuestionConfigRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GenerativeQuestionConfig` | The response received from the server. |

### UpdateGenerativeQuestionConfig(UpdateGenerativeQuestionConfigRequest, Metadata, DateTime?, CancellationToken)

    public virtual GenerativeQuestionConfig UpdateGenerativeQuestionConfig(UpdateGenerativeQuestionConfigRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Allows management of individual questions.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateGenerativeQuestionConfigRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GenerativeQuestionConfig` | The response received from the server. |

### UpdateGenerativeQuestionConfigAsync(UpdateGenerativeQuestionConfigRequest, CallOptions)

    public virtual AsyncUnaryCall<GenerativeQuestionConfig> UpdateGenerativeQuestionConfigAsync(UpdateGenerativeQuestionConfigRequest request, CallOptions options)

Allows management of individual questions.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateGenerativeQuestionConfigRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallGenerativeQuestionConfig` | The call object. |

### UpdateGenerativeQuestionConfigAsync(UpdateGenerativeQuestionConfigRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<GenerativeQuestionConfig> UpdateGenerativeQuestionConfigAsync(UpdateGenerativeQuestionConfigRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Allows management of individual questions.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateGenerativeQuestionConfigRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallGenerativeQuestionConfig` | The call object. |

### UpdateGenerativeQuestionsFeatureConfig(UpdateGenerativeQuestionsFeatureConfigRequest, CallOptions)

    public virtual GenerativeQuestionsFeatureConfig UpdateGenerativeQuestionsFeatureConfig(UpdateGenerativeQuestionsFeatureConfigRequest request, CallOptions options)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateGenerativeQuestionsFeatureConfigRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GenerativeQuestionsFeatureConfig` | The response received from the server. |

### UpdateGenerativeQuestionsFeatureConfig(UpdateGenerativeQuestionsFeatureConfigRequest, Metadata, DateTime?, CancellationToken)

    public virtual GenerativeQuestionsFeatureConfig UpdateGenerativeQuestionsFeatureConfig(UpdateGenerativeQuestionsFeatureConfigRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateGenerativeQuestionsFeatureConfigRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GenerativeQuestionsFeatureConfig` | The response received from the server. |

### UpdateGenerativeQuestionsFeatureConfigAsync(UpdateGenerativeQuestionsFeatureConfigRequest, CallOptions)

    public virtual AsyncUnaryCall<GenerativeQuestionsFeatureConfig> UpdateGenerativeQuestionsFeatureConfigAsync(UpdateGenerativeQuestionsFeatureConfigRequest request, CallOptions options)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateGenerativeQuestionsFeatureConfigRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallGenerativeQuestionsFeatureConfig` | The call object. |

### UpdateGenerativeQuestionsFeatureConfigAsync(UpdateGenerativeQuestionsFeatureConfigRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<GenerativeQuestionsFeatureConfig> UpdateGenerativeQuestionsFeatureConfigAsync(UpdateGenerativeQuestionsFeatureConfigRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateGenerativeQuestionsFeatureConfigRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallGenerativeQuestionsFeatureConfig` | The call object. |