# Data QnA v1alpha API - Class AutoSuggestionServiceClientBuilder (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.AutoSuggestionServiceClientBuilder)
- [2.0.0-alpha01](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/2.0.0-alpha01/Google.Cloud.DataQnA.V1Alpha.AutoSuggestionServiceClientBuilder)
- [1.0.0-alpha03](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/1.0.0-alpha03/Google.Cloud.DataQnA.V1Alpha.AutoSuggestionServiceClientBuilder)

    public sealed class AutoSuggestionServiceClientBuilder : ClientBuilderBase<AutoSuggestionServiceClient>

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

Builder class for [AutoSuggestionServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.AutoSuggestionServiceClient) 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)[AutoSuggestionServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.AutoSuggestionServiceClient) \> AutoSuggestionServiceClientBuilder

## Inherited Members

[ClientBuilderBase\<AutoSuggestionServiceClient\>.Build(IServiceProvider)](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<AutoSuggestionServiceClient\>.BuildAsync(IServiceProvider, CancellationToken)](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<AutoSuggestionServiceClient\>.Endpoint](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<AutoSuggestionServiceClient\>.Logger](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<AutoSuggestionServiceClient\>.Scopes](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<AutoSuggestionServiceClient\>.ChannelCredentials](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<AutoSuggestionServiceClient\>.CredentialsPath](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<AutoSuggestionServiceClient\>.JsonCredentials](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<AutoSuggestionServiceClient\>.GoogleCredential](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<AutoSuggestionServiceClient\>.Credential](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<AutoSuggestionServiceClient\>.TokenAccessMethod](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<AutoSuggestionServiceClient\>.CallInvoker](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<AutoSuggestionServiceClient\>.UserAgent](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<AutoSuggestionServiceClient\>.GrpcAdapter](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<AutoSuggestionServiceClient\>.QuotaProject](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<AutoSuggestionServiceClient\>.GrpcChannelOptions](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<AutoSuggestionServiceClient\>.LastCreatedChannel](https://github.com/googleapis/gax-dotnet/blob/510f63bbae727cfa4cee5180d0a9916bc2dee248/Google.Api.Gax.Grpc/ClientBuilderBase.cs) [ClientBuilderBase\<AutoSuggestionServiceClient\>.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

### AutoSuggestionServiceClientBuilder()

    public AutoSuggestionServiceClientBuilder()

Creates a new builder with default settings.

## Properties

### Settings

    public AutoSuggestionServiceSettings 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.AutoSuggestionServiceSettings` |   |

## Methods

### Build()

    public override AutoSuggestionServiceClient 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.AutoSuggestionServiceClient` |   |

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

### BuildAsync(CancellationToken)

    public override Task<AutoSuggestionServiceClient> 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.AutoSuggestionServiceClient` |   |

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