Firestore v1 API - Class FirestoreClientBuilder (3.7.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

Google.Cloud.Firestore.V1

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

Methods

Build()

public override FirestoreClient Build()

Builds the resulting client.

Returns
Type Description
FirestoreClient
Overrides

BuildAsync(CancellationToken)

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

Builds the resulting client asynchronously.

Parameter
Name Description
cancellationToken CancellationToken
Returns
Type Description
TaskFirestoreClient
Overrides

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
Name Description
builder ClientBuilderBase

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

Returns
Type Description
FirestoreClientBuilder

A FirestoreClientBuilder with common settings from builder.

Type Parameter
Name Description
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
Type Description
ChannelPool
Overrides