public sealed class FirestoreDbBuilder : ClientBuilderBase<FirestoreDb>
Builder class for FirestoreDb, providing simple configuration of credentials, endpoint, project ID etc.
Namespace
Google.Cloud.FirestoreAssembly
Google.Cloud.Firestore.dll
Properties
ConverterRegistry
public ConverterRegistry ConverterRegistry { get; set; }
A registry for custom converters. May be null.
Property Value | |
---|---|
Type | Description |
ConverterRegistry |
DefaultGrpcAdapter
protected override GrpcAdapter DefaultGrpcAdapter { get; }
Property Value | |
---|---|
Type | Description |
GrpcAdapter |
EmulatorDetection
public EmulatorDetection EmulatorDetection { get; set; }
Specifies how the builder responds to the presence of the FIRESTORE_EMULATOR_HOST emulator environment variable.
Property Value | |
---|---|
Type | Description |
EmulatorDetection |
This property defaults to None, meaning that the environment variable is ignored.
ProjectId
public string ProjectId { get; set; }
The ID of the Google Cloud Platform project that contains the database. May be null, in which case the project will be automatically detected if possible.
Property Value | |
---|---|
Type | Description |
String |
Settings
public FirestoreSettings Settings { get; set; }
The settings to use for RPCs, or null for the default settings.
Property Value | |
---|---|
Type | Description |
FirestoreSettings |
WarningLogger
public Action<string> WarningLogger { get; set; }
Action to receive warning messages. May be null, in which case warnings will be ignored.
Property Value | |
---|---|
Type | Description |
Action<String> |
Methods
Build()
public override FirestoreDb Build()
Returns | |
---|---|
Type | Description |
FirestoreDb |
BuildAsync(CancellationToken)
public override Task<FirestoreDb> BuildAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameter | |
---|---|
Name | Description |
cancellationToken | CancellationToken |
Returns | |
---|---|
Type | Description |
Task<FirestoreDb> |
GetChannelPool()
protected override ChannelPool GetChannelPool()
Returns | |
---|---|
Type | Description |
ChannelPool |
GetDefaultEndpoint()
protected override string GetDefaultEndpoint()
Returns | |
---|---|
Type | Description |
String |
GetDefaultScopes()
protected override IReadOnlyList<string> GetDefaultScopes()
Returns | |
---|---|
Type | Description |
IReadOnlyList<String> |