Class DatastoreStubSettings.Builder

java.lang.Object
com.google.api.gax.rpc.StubSettings.Builder<DatastoreStubSettings,DatastoreStubSettings.Builder>
com.google.cloud.datastore.v1.stub.DatastoreStubSettings.Builder
Enclosing class:
DatastoreStubSettings

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

    • Builder

      protected Builder()
    • Builder

      protected Builder(com.google.api.gax.rpc.ClientContext clientContext)
    • Builder

      protected Builder(DatastoreStubSettings settings)
  • Method Details

    • applyToAllUnaryMethods

      public DatastoreStubSettings.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.

    • unaryMethodSettingsBuilders

      public com.google.common.collect.ImmutableList<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
    • 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 DatastoreStubSettings build() throws IOException
      Specified by:
      build in class com.google.api.gax.rpc.StubSettings.Builder<DatastoreStubSettings,DatastoreStubSettings.Builder>
      Throws:
      IOException