Class FirestoreClientBuilder (2.5.0)

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

DefaultGrpcAdapter

protected override GrpcAdapter DefaultGrpcAdapter { get; }

Returns the default GrpcAdapterto use if not otherwise specified.

Property Value
TypeDescription
GrpcAdapter
Overrides
Google.Api.Gax.Grpc.ClientBuilderBase<Google.Cloud.Firestore.V1.FirestoreClient>.DefaultGrpcAdapter

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

GetDefaultEndpoint()

protected override string GetDefaultEndpoint()

Returns the endpoint for this builder type, used if no endpoint is otherwise specified.

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

GetDefaultScopes()

protected override IReadOnlyList<string> GetDefaultScopes()

Returns the default scopes for this builder type, used if no scopes are otherwise specified.

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