# Google Workspace Add-ons v1 API - Class GSuiteAddOnsClientBuilder (2.5.0)

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

- [2.5.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GSuiteAddOns.V1/latest/Google.Cloud.GSuiteAddOns.V1.GSuiteAddOnsClientBuilder)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GSuiteAddOns.V1/2.4.0/Google.Cloud.GSuiteAddOns.V1.GSuiteAddOnsClientBuilder)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GSuiteAddOns.V1/2.3.0/Google.Cloud.GSuiteAddOns.V1.GSuiteAddOnsClientBuilder)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GSuiteAddOns.V1/2.2.0/Google.Cloud.GSuiteAddOns.V1.GSuiteAddOnsClientBuilder)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GSuiteAddOns.V1/2.1.0/Google.Cloud.GSuiteAddOns.V1.GSuiteAddOnsClientBuilder)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GSuiteAddOns.V1/2.0.0/Google.Cloud.GSuiteAddOns.V1.GSuiteAddOnsClientBuilder)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GSuiteAddOns.V1/1.1.0/Google.Cloud.GSuiteAddOns.V1.GSuiteAddOnsClientBuilder)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GSuiteAddOns.V1/1.0.0/Google.Cloud.GSuiteAddOns.V1.GSuiteAddOnsClientBuilder)

    public sealed class GSuiteAddOnsClientBuilder : ClientBuilderBase<GSuiteAddOnsClient>

Reference documentation and code samples for the Google Workspace Add-ons v1 API class GSuiteAddOnsClientBuilder.

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

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [ClientBuilderBase](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ClientBuilderBase-1.html)[GSuiteAddOnsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GSuiteAddOns.V1/latest/Google.Cloud.GSuiteAddOns.V1.GSuiteAddOnsClient) \> GSuiteAddOnsClientBuilder

## Inherited Members

[ClientBuilderBase\<GSuiteAddOnsClient\>.Build(IServiceProvider)](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ClientBuilderBase-1.html#Google_Api_Gax_Grpc_ClientBuilderBase_1_Build_System_IServiceProvider_) [ClientBuilderBase\<GSuiteAddOnsClient\>.BuildAsync(IServiceProvider, CancellationToken)](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ClientBuilderBase-1.html#Google_Api_Gax_Grpc_ClientBuilderBase_1_BuildAsync_System_IServiceProvider_System_Threading_CancellationToken_) [ClientBuilderBase\<GSuiteAddOnsClient\>.UniverseDomain](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ClientBuilderBase-1.html#Google_Api_Gax_Grpc_ClientBuilderBase_1_UniverseDomain) [ClientBuilderBase\<GSuiteAddOnsClient\>.Endpoint](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ClientBuilderBase-1.html#Google_Api_Gax_Grpc_ClientBuilderBase_1_Endpoint) [ClientBuilderBase\<GSuiteAddOnsClient\>.Logger](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ClientBuilderBase-1.html#Google_Api_Gax_Grpc_ClientBuilderBase_1_Logger) [ClientBuilderBase\<GSuiteAddOnsClient\>.Scopes](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ClientBuilderBase-1.html#Google_Api_Gax_Grpc_ClientBuilderBase_1_Scopes) [ClientBuilderBase\<GSuiteAddOnsClient\>.ChannelCredentials](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ClientBuilderBase-1.html#Google_Api_Gax_Grpc_ClientBuilderBase_1_ChannelCredentials) [ClientBuilderBase\<GSuiteAddOnsClient\>.CredentialsPath](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ClientBuilderBase-1.html#Google_Api_Gax_Grpc_ClientBuilderBase_1_CredentialsPath) [ClientBuilderBase\<GSuiteAddOnsClient\>.JsonCredentials](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ClientBuilderBase-1.html#Google_Api_Gax_Grpc_ClientBuilderBase_1_JsonCredentials) [ClientBuilderBase\<GSuiteAddOnsClient\>.GoogleCredential](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ClientBuilderBase-1.html#Google_Api_Gax_Grpc_ClientBuilderBase_1_GoogleCredential) [ClientBuilderBase\<GSuiteAddOnsClient\>.Credential](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ClientBuilderBase-1.html#Google_Api_Gax_Grpc_ClientBuilderBase_1_Credential) [ClientBuilderBase\<GSuiteAddOnsClient\>.TokenAccessMethod](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ClientBuilderBase-1.html#Google_Api_Gax_Grpc_ClientBuilderBase_1_TokenAccessMethod) [ClientBuilderBase\<GSuiteAddOnsClient\>.CallInvoker](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ClientBuilderBase-1.html#Google_Api_Gax_Grpc_ClientBuilderBase_1_CallInvoker) [ClientBuilderBase\<GSuiteAddOnsClient\>.UserAgent](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ClientBuilderBase-1.html#Google_Api_Gax_Grpc_ClientBuilderBase_1_UserAgent) [ClientBuilderBase\<GSuiteAddOnsClient\>.GrpcAdapter](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ClientBuilderBase-1.html#Google_Api_Gax_Grpc_ClientBuilderBase_1_GrpcAdapter) [ClientBuilderBase\<GSuiteAddOnsClient\>.ApiKey](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ClientBuilderBase-1.html#Google_Api_Gax_Grpc_ClientBuilderBase_1_ApiKey) [ClientBuilderBase\<GSuiteAddOnsClient\>.QuotaProject](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ClientBuilderBase-1.html#Google_Api_Gax_Grpc_ClientBuilderBase_1_QuotaProject) [ClientBuilderBase\<GSuiteAddOnsClient\>.GrpcChannelOptions](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ClientBuilderBase-1.html#Google_Api_Gax_Grpc_ClientBuilderBase_1_GrpcChannelOptions) [ClientBuilderBase\<GSuiteAddOnsClient\>.LastCreatedChannel](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ClientBuilderBase-1.html#Google_Api_Gax_Grpc_ClientBuilderBase_1_LastCreatedChannel) [ClientBuilderBase\<GSuiteAddOnsClient\>.UseJwtAccessWithScopes](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ClientBuilderBase-1.html#Google_Api_Gax_Grpc_ClientBuilderBase_1_UseJwtAccessWithScopes) [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.GSuiteAddOns.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GSuiteAddOns.V1/latest/Google.Cloud.GSuiteAddOns.V1)

## Assembly

Google.Cloud.GSuiteAddOns.V1.dll

## Constructors

### GSuiteAddOnsClientBuilder()

    public GSuiteAddOnsClientBuilder()

Creates a new builder with default settings.

## Properties

### Settings

    public GSuiteAddOnsSettings 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.GSuiteAddOns.V1/latest/Google.Cloud.GSuiteAddOns.V1.GSuiteAddOnsSettings` |   |

## Methods

### Build()

    public override GSuiteAddOnsClient Build()

Builds the resulting client.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GSuiteAddOns.V1/latest/Google.Cloud.GSuiteAddOns.V1.GSuiteAddOnsClient` |   |

**Overrides** Google.Api.Gax.Grpc.ClientBuilderBase\<Google.Cloud.GSuiteAddOns.V1.GSuiteAddOnsClient\>.Build()

### BuildAsync(CancellationToken)

    public override Task<GSuiteAddOnsClient> 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.GSuiteAddOns.V1/latest/Google.Cloud.GSuiteAddOns.V1.GSuiteAddOnsClient` |   |

**Overrides** Google.Api.Gax.Grpc.ClientBuilderBase\<Google.Cloud.GSuiteAddOns.V1.GSuiteAddOnsClient\>.BuildAsync(System.Threading.CancellationToken)

### GetChannelPool()

    protected override ChannelPool GetChannelPool()

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ChannelPool.html` |   |

**Overrides** Google.Api.Gax.Grpc.ClientBuilderBase\<Google.Cloud.GSuiteAddOns.V1.GSuiteAddOnsClient\>.GetChannelPool()