# Data QnA v1alpha API - Class QuestionServiceClientBuilder (2.0.0-alpha02)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.0.0-alpha02 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.QuestionServiceClientBuilder)
- [2.0.0-alpha01](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/2.0.0-alpha01/Google.Cloud.DataQnA.V1Alpha.QuestionServiceClientBuilder)
- [1.0.0-alpha03](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/1.0.0-alpha03/Google.Cloud.DataQnA.V1Alpha.QuestionServiceClientBuilder)

    public sealed class QuestionServiceClientBuilder : ClientBuilderBase<QuestionServiceClient>

Reference documentation and code samples for the Data QnA v1alpha API class QuestionServiceClientBuilder.

Builder class for [QuestionServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient) to provide simple configuration of credentials, endpoint
etc.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [ClientBuilderBase](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs)[QuestionServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient) \> QuestionServiceClientBuilder

## Inherited Members

[ClientBuilderBase\<QuestionServiceClient\>.Build(IServiceProvider)](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<QuestionServiceClient\>.BuildAsync(IServiceProvider, CancellationToken)](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<QuestionServiceClient\>.Endpoint](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<QuestionServiceClient\>.Logger](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<QuestionServiceClient\>.Scopes](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<QuestionServiceClient\>.ChannelCredentials](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<QuestionServiceClient\>.CredentialsPath](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<QuestionServiceClient\>.JsonCredentials](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<QuestionServiceClient\>.GoogleCredential](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<QuestionServiceClient\>.Credential](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<QuestionServiceClient\>.TokenAccessMethod](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<QuestionServiceClient\>.CallInvoker](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<QuestionServiceClient\>.UserAgent](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<QuestionServiceClient\>.GrpcAdapter](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<QuestionServiceClient\>.QuotaProject](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<QuestionServiceClient\>.GrpcChannelOptions](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<QuestionServiceClient\>.LastCreatedChannel](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<QuestionServiceClient\>.UseJwtAccessWithScopes](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.DataQnA.V1Alpha](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha)

## Assembly

Google.Cloud.DataQnA.V1Alpha.dll

## Constructors

### QuestionServiceClientBuilder()

    public QuestionServiceClientBuilder()

Creates a new builder with default settings.

## Properties

### Settings

    public QuestionServiceSettings Settings { get; set; }

The settings to use for RPCs, or `null` for the default settings.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.QuestionServiceSettings` |   |

## Methods

### Build()

    public override QuestionServiceClient Build()

Builds the resulting client.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient` |   |

**Overrides** [ClientBuilderBase\<QuestionServiceClient\>.Build()](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs)

### BuildAsync(CancellationToken)

    public override Task<QuestionServiceClient> BuildAsync(CancellationToken cancellationToken = default)

Builds the resulting client asynchronously.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient` |   |

**Overrides** [ClientBuilderBase\<QuestionServiceClient\>.BuildAsync(CancellationToken)](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs)

### GetChannelPool()

    protected override ChannelPool GetChannelPool()

Returns the channel pool to use when no other options are specified.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ChannelPool.cs` |   |

**Overrides** [ClientBuilderBase\<QuestionServiceClient\>.GetChannelPool()](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs)