Google Cloud Spanner Instance Administration v1 API - Class InstanceAdminClientBuilder (4.4.0)

public sealed class InstanceAdminClientBuilder : ClientBuilderBase<InstanceAdminClient>

Reference documentation and code samples for the Google Cloud Spanner Instance Administration v1 API class InstanceAdminClientBuilder.

Builder class for InstanceAdminClient to provide simple configuration of credentials, endpoint etc.

Inheritance

object > ClientBuilderBaseInstanceAdminClient > InstanceAdminClientBuilder

Namespace

GoogleCloudGoogle.Cloud.SpannerGoogle.Cloud.Spanner.AdminGoogle.Cloud.Spanner.Admin.InstanceV1

Assembly

Google.Cloud.Spanner.Admin.Instance.V1.dll

Constructors

InstanceAdminClientBuilder()

public InstanceAdminClientBuilder()

Creates a new builder with default settings.

Properties

EmulatorDetection

public EmulatorDetection EmulatorDetection { get; set; }

Specifies how the builder responds to the presence of emulator environment variables.

Property Value
TypeDescription
EmulatorDetection
Remarks

This property defaults to None, meaning that environment variables are ignored.

Settings

public InstanceAdminSettings Settings { get; set; }

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

Property Value
TypeDescription
InstanceAdminSettings

Methods

Build()

public override InstanceAdminClient Build()

Builds the resulting client.

Returns
TypeDescription
InstanceAdminClient
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.Spanner.Admin.Instance.V1.InstanceAdminClient>.Build()

BuildAsync(CancellationToken)

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

Builds the resulting client asynchronously.

Parameter
NameDescription
cancellationTokenCancellationToken
Returns
TypeDescription
TaskInstanceAdminClient
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.Spanner.Admin.Instance.V1.InstanceAdminClient>.BuildAsync(System.Threading.CancellationToken)

GetChannelPool()

protected override ChannelPool GetChannelPool()

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

Returns
TypeDescription
ChannelPool
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.Spanner.Admin.Instance.V1.InstanceAdminClient>.GetChannelPool()