Class DatastoreSettings.Builder (2.32.3)

publicstaticclass DatastoreSettings.BuilderextendsClientSettings.Builder<DatastoreSettings,DatastoreSettings.Builder>

Builder for DatastoreSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > DatastoreSettings.Builder

Inherited Members

Constructors

Builder()

protectedBuilder()

Builder(ClientContext clientContext)

protectedBuilder(ClientContextclientContext)
Parameter
Name Description
clientContext ClientContext

Builder(DatastoreSettings settings)

protectedBuilder(DatastoreSettingssettings)
Parameter
Name Description
settings DatastoreSettings

Builder(DatastoreStubSettings.Builder stubSettings)

protectedBuilder(DatastoreStubSettings.BuilderstubSettings)
Parameter
Name Description
stubSettings DatastoreStubSettings.Builder

Methods

allocateIdsSettings()

publicUnaryCallSettings.Builder<AllocateIdsRequest,AllocateIdsResponse>allocateIdsSettings()

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

Returns
Type Description
Builder<AllocateIdsRequest,AllocateIdsResponse>

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

publicDatastoreSettings.BuilderapplyToAllUnaryMethods(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
Name Description
settingsUpdater ApiFunction<Builder<?,?>,Void>
Returns
Type Description
DatastoreSettings.Builder

beginTransactionSettings()

publicUnaryCallSettings.Builder<BeginTransactionRequest,BeginTransactionResponse>beginTransactionSettings()

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

Returns
Type Description
Builder<BeginTransactionRequest,BeginTransactionResponse>

build()

publicDatastoreSettingsbuild()
Returns
Type Description
DatastoreSettings
Overrides
Exceptions
Type Description
IOException

commitSettings()

publicUnaryCallSettings.Builder<CommitRequest,CommitResponse>commitSettings()

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

Returns
Type Description
Builder<CommitRequest,CommitResponse>

getStubSettingsBuilder()

publicDatastoreStubSettings.BuildergetStubSettingsBuilder()
Returns
Type Description
DatastoreStubSettings.Builder

lookupSettings()

publicUnaryCallSettings.Builder<LookupRequest,LookupResponse>lookupSettings()

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

Returns
Type Description
Builder<LookupRequest,LookupResponse>

reserveIdsSettings()

publicUnaryCallSettings.Builder<ReserveIdsRequest,ReserveIdsResponse>reserveIdsSettings()

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

Returns
Type Description
Builder<ReserveIdsRequest,ReserveIdsResponse>

rollbackSettings()

publicUnaryCallSettings.Builder<RollbackRequest,RollbackResponse>rollbackSettings()

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

Returns
Type Description
Builder<RollbackRequest,RollbackResponse>

runAggregationQuerySettings()

publicUnaryCallSettings.Builder<RunAggregationQueryRequest,RunAggregationQueryResponse>runAggregationQuerySettings()

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

Returns
Type Description
Builder<RunAggregationQueryRequest,RunAggregationQueryResponse>

runQuerySettings()

publicUnaryCallSettings.Builder<RunQueryRequest,RunQueryResponse>runQuerySettings()

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

Returns
Type Description
Builder<RunQueryRequest,RunQueryResponse>

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.