Class FirestoreClientBuilder (3.0.0)

Stay organized with collections Save and categorize content based on your preferences.
public sealed class FirestoreClientBuilder : ClientBuilderBase<FirestoreClient>

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

Inheritance

Object > ClientBuilderBase<FirestoreClient> > 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
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(CancellationToken))

Builds the resulting client asynchronously.

Parameter
NameDescription
cancellationTokenCancellationToken
Returns
TypeDescription
Task<FirestoreClient>
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<T>

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()