Class FirestoreSettings.Builder (3.7.3)

Stay organized with collections Save and categorize content based on your preferences.
public static class FirestoreSettings.Builder extends ClientSettings.Builder<FirestoreSettings,FirestoreSettings.Builder>

Builder for FirestoreSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > FirestoreSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(FirestoreSettings settings)

protected Builder(FirestoreSettings settings)
Parameter
NameDescription
settingsFirestoreSettings

Builder(FirestoreStubSettings.Builder stubSettings)

protected Builder(FirestoreStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsFirestoreStubSettings.Builder

Methods

applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

public FirestoreSettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

Applies the given settings updater function to all of the unary API methods in this service.

Note: This method does not support applying settings to streaming methods.

Parameter
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,Void>
Returns
TypeDescription
FirestoreSettings.Builder

batchGetDocumentsSettings()

public ServerStreamingCallSettings.Builder<BatchGetDocumentsRequest,BatchGetDocumentsResponse> batchGetDocumentsSettings()

Returns the builder for the settings used for calls to batchGetDocuments.

Returns
TypeDescription
Builder<BatchGetDocumentsRequest,BatchGetDocumentsResponse>

batchWriteSettings()

public UnaryCallSettings.Builder<BatchWriteRequest,BatchWriteResponse> batchWriteSettings()

Returns the builder for the settings used for calls to batchWrite.

Returns
TypeDescription
Builder<BatchWriteRequest,BatchWriteResponse>

beginTransactionSettings()

public UnaryCallSettings.Builder<BeginTransactionRequest,BeginTransactionResponse> beginTransactionSettings()

Returns the builder for the settings used for calls to beginTransaction.

Returns
TypeDescription
Builder<BeginTransactionRequest,BeginTransactionResponse>

build()

public FirestoreSettings build()
Returns
TypeDescription
FirestoreSettings
Overrides Exceptions