Class OperationsSettings.Builder

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      OperationsSettings.Builder applyToAllUnaryMethods​(com.google.api.core.ApiFunction<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,​?>,​java.lang.Void> settingsUpdater)
      Applies the given settings updater function to all of the unary API methods in this service.
      OperationsSettings build()  
      com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.longrunning.CancelOperationRequest,​com.google.protobuf.Empty> cancelOperationSettings()
      Returns the builder for the settings used for calls to cancel.
      com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.longrunning.DeleteOperationRequest,​com.google.protobuf.Empty> deleteOperationSettings()
      Returns the builder for the settings used for calls to delete.
      com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.longrunning.GetOperationRequest,​com.google.longrunning.Operation> getOperationSettings()
      Returns the builder for the settings used for calls to get.
      OperationsStubSettings.Builder getStubSettingsBuilder()  
      com.google.api.gax.rpc.PagedCallSettings.Builder<com.google.longrunning.ListOperationsRequest,​com.google.longrunning.ListOperationsResponse,​OperationsClient.ListOperationsPagedResponse> listOperationsSettings()
      Returns the builder for the settings used for calls to listOperations.
      • Methods inherited from class com.google.api.gax.rpc.ClientSettings.Builder

        applyToAllUnaryMethods, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, self, setBackgroundExecutorProvider, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setHeaderProvider, setInternalHeaderProvider, setQuotaProjectId, setTransportChannelProvider, setWatchdogCheckInterval, setWatchdogProvider, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Builder

        protected Builder()
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • Builder

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

      • applyToAllUnaryMethods

        public OperationsSettings.Builder applyToAllUnaryMethods​(com.google.api.core.ApiFunction<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,​?>,​java.lang.Void> settingsUpdater)
                                                          throws java.lang.Exception
        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.

        Throws:
        java.lang.Exception
      • listOperationsSettings

        public com.google.api.gax.rpc.PagedCallSettings.Builder<com.google.longrunning.ListOperationsRequest,​com.google.longrunning.ListOperationsResponse,​OperationsClient.ListOperationsPagedResponse> listOperationsSettings()
        Returns the builder for the settings used for calls to listOperations.
      • getOperationSettings

        public com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.longrunning.GetOperationRequest,​com.google.longrunning.Operation> getOperationSettings()
        Returns the builder for the settings used for calls to get.
      • deleteOperationSettings

        public com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.longrunning.DeleteOperationRequest,​com.google.protobuf.Empty> deleteOperationSettings()
        Returns the builder for the settings used for calls to delete.
      • cancelOperationSettings

        public com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.longrunning.CancelOperationRequest,​com.google.protobuf.Empty> cancelOperationSettings()
        Returns the builder for the settings used for calls to cancel.