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

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

Google.Cloud.Spanner.Admin.Instance.V1

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
Type Description
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
Type Description
InstanceAdminSettings

Methods

Build()

public override InstanceAdminClient Build()

Builds the resulting client.

Returns
Type Description
InstanceAdminClient
Overrides

BuildAsync(CancellationToken)

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

Builds the resulting client asynchronously.

Parameter
Name Description
cancellationToken CancellationToken
Returns
Type Description
TaskInstanceAdminClient
Overrides

GetChannelPool()

protected override ChannelPool GetChannelPool()

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

Returns
Type Description
ChannelPool
Overrides