Firestore v1 API - Class FirestoreClientBuilder (3.2.0)

public sealed class FirestoreClientBuilder : ClientBuilderBase<FirestoreClient>

Reference documentation and code samples for the Firestore v1 API class FirestoreClientBuilder.

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

Inheritance

object > ClientBuilderBaseFirestoreClient > FirestoreClientBuilder

Namespace

GoogleCloudGoogle.Cloud.FirestoreV1

Assembly

Google.Cloud.Firestore.V1.dll

Constructors

FirestoreClientBuilder()

public FirestoreClientBuilder()

Creates a new builder with default settings.

Properties

Settings

public FirestoreSettings Settings { get; set; }

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

Property Value
TypeDescription
FirestoreSettings

Methods

Build()

public override FirestoreClient Build()

Builds the resulting client.

Returns
TypeDescription
FirestoreClient
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.Firestore.V1.FirestoreClient>.Build()

BuildAsync(CancellationToken)

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

Builds the resulting client asynchronously.

Parameter
NameDescription
cancellationTokenCancellationToken
Returns
TypeDescription
TaskFirestoreClient
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.Firestore.V1.FirestoreClient>.BuildAsync(System.Threading.CancellationToken)

FromOtherBuilder<T>(ClientBuilderBase<T>)

public static FirestoreClientBuilder FromOtherBuilder<T>(ClientBuilderBase<T> builder)

Creates a FirestoreClientBuilder by copying common settings from another builder. This method is intended for use in Google.Cloud.Firestore with FirestoreDbBuilder. It will work in other scenarios, but is usually not necessary.

Parameter
NameDescription
builderClientBuilderBase

The builder to copy settings from. Must not be null.

Returns
TypeDescription
FirestoreClientBuilder

A FirestoreClientBuilder with common settings from builder.

Type Parameter
NameDescription
T

The client type of the builder.

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.Firestore.V1.FirestoreClient>.GetChannelPool()