Class FirestoreSettings (3.0.0)

public sealed class FirestoreSettings : ServiceSettingsBase

Settings for FirestoreClient instances.

Inheritance

Object > ServiceSettingsBase > FirestoreSettings

Namespace

Google.Cloud.Firestore.V1

Assembly

Google.Cloud.Firestore.V1.dll

Constructors

FirestoreSettings()

public FirestoreSettings()

Constructs a new FirestoreSettings object with default settings.

Properties

BatchGetDocumentsSettings

public CallSettings BatchGetDocumentsSettings { get; set; }

CallSettings for synchronous and asynchronous calls to FirestoreClient.BatchGetDocuments and FirestoreClient.BatchGetDocumentsAsync.

Property Value
TypeDescription
CallSettings
Remarks

Timeout: 300 seconds.

BatchWriteSettings

public CallSettings BatchWriteSettings { get; set; }

CallSettings for synchronous and asynchronous calls to FirestoreClient.BatchWrite and FirestoreClient.BatchWriteAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • Initial retry delay: 100 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 60000 milliseconds.
  • Maximum attempts: 5
  • Retriable status codes: ResourceExhausted, Unavailable, Aborted.
  • Timeout: 60 seconds.

BeginTransactionSettings

public CallSettings BeginTransactionSettings { get; set; }

CallSettings for synchronous and asynchronous calls to FirestoreClient.BeginTransaction and FirestoreClient.BeginTransactionAsync.

Property Value
TypeDescription
CallSettings
Remarks

CommitSettings

public CallSettings CommitSettings { get; set; }

CallSettings for synchronous and asynchronous calls to FirestoreClient.Commit and FirestoreClient.CommitAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • Initial retry delay: 100 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 60000 milliseconds.
  • Maximum attempts: 5
  • Retriable status codes: ResourceExhausted, Unavailable.
  • Timeout: 60 seconds.

CreateDocumentSettings

public CallSettings CreateDocumentSettings { get; set; }

CallSettings for synchronous and asynchronous calls to FirestoreClient.CreateDocument and FirestoreClient.CreateDocumentAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • Initial retry delay: 100 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 60000 milliseconds.
  • Maximum attempts: 5
  • Retriable status codes: ResourceExhausted, Unavailable.
  • Timeout: 60 seconds.

DeleteDocumentSettings

public CallSettings DeleteDocumentSettings { get; set; }

CallSettings for synchronous and asynchronous calls to FirestoreClient.DeleteDocument and FirestoreClient.DeleteDocumentAsync.

Property Value
TypeDescription
CallSettings
Remarks

GetDocumentSettings

public CallSettings GetDocumentSettings { get; set; }

CallSettings for synchronous and asynchronous calls to FirestoreClient.GetDocument and FirestoreClient.GetDocumentAsync.

Property Value
TypeDescription
CallSettings
Remarks

ListCollectionIdsSettings

public CallSettings ListCollectionIdsSettings { get; set; }

CallSettings for synchronous and asynchronous calls to FirestoreClient.ListCollectionIds and FirestoreClient.ListCollectionIdsAsync.

Property Value
TypeDescription
CallSettings
Remarks

ListDocumentsSettings

public CallSettings ListDocumentsSettings { get; set; }

CallSettings for synchronous and asynchronous calls to FirestoreClient.ListDocuments and FirestoreClient.ListDocumentsAsync.

Property Value
TypeDescription
CallSettings
Remarks

ListenSettings

public CallSettings ListenSettings { get; set; }

CallSettings for synchronous and asynchronous calls to FirestoreClient.Listen and FirestoreClient.ListenAsync.

Property Value
TypeDescription
CallSettings
Remarks

Timeout: 86400 seconds.

ListenStreamingSettings

public BidirectionalStreamingSettings ListenStreamingSettings { get; set; }

BidirectionalStreamingSettings for calls to FirestoreClient.Listen and FirestoreClient.ListenAsync.

Property Value
TypeDescription
BidirectionalStreamingSettings
Remarks

The default local send queue size is 100.

LocationsSettings

public LocationsSettings LocationsSettings { get; set; }

The settings to use for the LocationsClient associated with the client.

Property Value
TypeDescription
LocationsSettings

PartitionQuerySettings

public CallSettings PartitionQuerySettings { get; set; }

CallSettings for synchronous and asynchronous calls to FirestoreClient.PartitionQuery and FirestoreClient.PartitionQueryAsync.

Property Value
TypeDescription
CallSettings
Remarks

RollbackSettings

public CallSettings RollbackSettings { get; set; }

CallSettings for synchronous and asynchronous calls to FirestoreClient.Rollback and FirestoreClient.RollbackAsync.

Property Value
TypeDescription
CallSettings
Remarks

RunQuerySettings

public CallSettings RunQuerySettings { get; set; }

CallSettings for synchronous and asynchronous calls to FirestoreClient.RunQuery and FirestoreClient.RunQueryAsync.

Property Value
TypeDescription
CallSettings
Remarks

Timeout: 300 seconds.

UpdateDocumentSettings

public CallSettings UpdateDocumentSettings { get; set; }

CallSettings for synchronous and asynchronous calls to FirestoreClient.UpdateDocument and FirestoreClient.UpdateDocumentAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • Initial retry delay: 100 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 60000 milliseconds.
  • Maximum attempts: 5
  • Retriable status codes: ResourceExhausted, Unavailable.
  • Timeout: 60 seconds.

WriteSettings

public CallSettings WriteSettings { get; set; }

CallSettings for synchronous and asynchronous calls to FirestoreClient.Write and FirestoreClient.WriteAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 86400 seconds.

WriteStreamingSettings

public BidirectionalStreamingSettings WriteStreamingSettings { get; set; }

BidirectionalStreamingSettings for calls to FirestoreClient.Write and FirestoreClient.WriteAsync.

Property Value
TypeDescription
BidirectionalStreamingSettings
Remarks

The default local send queue size is 100.

Methods

Clone()

public FirestoreSettings Clone()

Creates a deep clone of this object, with all the same property values.

Returns
TypeDescription
FirestoreSettings

A deep clone of this FirestoreSettings object.

GetDefault()

public static FirestoreSettings GetDefault()

Get a new instance of the default FirestoreSettings.

Returns
TypeDescription
FirestoreSettings

A new instance of the default FirestoreSettings.