Class DatastoreSettings.Builder

java.lang.Object
com.google.api.gax.rpc.ClientSettings.Builder<DatastoreSettings,DatastoreSettings.Builder>
com.google.cloud.datastore.v1.DatastoreSettings.Builder
Direct Known Subclasses:
DatastoreRpc.DatastoreSettingsBuilder
Enclosing class:
DatastoreSettings

public static class DatastoreSettings.Builder extends com.google.api.gax.rpc.ClientSettings.Builder<DatastoreSettings,DatastoreSettings.Builder>
Builder for DatastoreSettings.
  • Constructor Details

  • Method Details

    • getStubSettingsBuilder

      public DatastoreStubSettings.Builder getStubSettingsBuilder()
    • applyToAllUnaryMethods

      public DatastoreSettings.Builder applyToAllUnaryMethods(com.google.api.core.ApiFunction<com.google.api.gax.rpc.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.

    • lookupSettings

      public com.google.api.gax.rpc.UnaryCallSettings.Builder<LookupRequest,LookupResponse> lookupSettings()
      Returns the builder for the settings used for calls to lookup.
    • runQuerySettings

      public com.google.api.gax.rpc.UnaryCallSettings.Builder<RunQueryRequest,RunQueryResponse> runQuerySettings()
      Returns the builder for the settings used for calls to runQuery.
    • runAggregationQuerySettings

      public com.google.api.gax.rpc.UnaryCallSettings.Builder<RunAggregationQueryRequest,RunAggregationQueryResponse> runAggregationQuerySettings()
      Returns the builder for the settings used for calls to runAggregationQuery.
    • beginTransactionSettings

      public com.google.api.gax.rpc.UnaryCallSettings.Builder<BeginTransactionRequest,BeginTransactionResponse> beginTransactionSettings()
      Returns the builder for the settings used for calls to beginTransaction.
    • commitSettings

      public com.google.api.gax.rpc.UnaryCallSettings.Builder<CommitRequest,CommitResponse> commitSettings()
      Returns the builder for the settings used for calls to commit.
    • rollbackSettings

      public com.google.api.gax.rpc.UnaryCallSettings.Builder<RollbackRequest,RollbackResponse> rollbackSettings()
      Returns the builder for the settings used for calls to rollback.
    • allocateIdsSettings

      public com.google.api.gax.rpc.UnaryCallSettings.Builder<AllocateIdsRequest,AllocateIdsResponse> allocateIdsSettings()
      Returns the builder for the settings used for calls to allocateIds.
    • reserveIdsSettings

      public com.google.api.gax.rpc.UnaryCallSettings.Builder<ReserveIdsRequest,ReserveIdsResponse> reserveIdsSettings()
      Returns the builder for the settings used for calls to reserveIds.
    • build

      public DatastoreSettings build() throws IOException
      Specified by:
      build in class com.google.api.gax.rpc.ClientSettings.Builder<DatastoreSettings,DatastoreSettings.Builder>
      Throws:
      IOException