Package com.google.api.gax.rpc
Class OperationCallSettings.Builder<RequestT,ResponseT,MetadataT>
- java.lang.Object
-
- com.google.api.gax.rpc.OperationCallSettings.Builder<RequestT,ResponseT,MetadataT>
-
- Enclosing class:
- OperationCallSettings<RequestT,ResponseT,MetadataT>
public static class OperationCallSettings.Builder<RequestT,ResponseT,MetadataT> extends Object
-
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(OperationCallSettings<RequestT,ResponseT,MetadataT> settings)
-
-
Method Detail
-
setPollingAlgorithm
public OperationCallSettings.Builder<RequestT,ResponseT,MetadataT> setPollingAlgorithm(TimedRetryAlgorithm pollingAlgorithm)
Set the polling algorithm of the operation.
-
getPollingAlgorithm
public TimedRetryAlgorithm getPollingAlgorithm()
Get the polling algorithm of the operation.
-
setInitialCallSettings
public OperationCallSettings.Builder<RequestT,ResponseT,MetadataT> setInitialCallSettings(UnaryCallSettings<RequestT,OperationSnapshot> initialCallSettings)
Set the call settings which are used on the call to initiate the operation.
-
getInitialCallSettings
public UnaryCallSettings<RequestT,OperationSnapshot> getInitialCallSettings()
Get the call settings which are used on the call to initiate the operation.
-
getResponseTransformer
public final ApiFunction<OperationSnapshot,ResponseT> getResponseTransformer()
-
setResponseTransformer
public OperationCallSettings.Builder<RequestT,ResponseT,MetadataT> setResponseTransformer(ApiFunction<OperationSnapshot,ResponseT> responseTransformer)
-
getMetadataTransformer
public final ApiFunction<OperationSnapshot,MetadataT> getMetadataTransformer()
-
setMetadataTransformer
public OperationCallSettings.Builder<RequestT,ResponseT,MetadataT> setMetadataTransformer(ApiFunction<OperationSnapshot,MetadataT> metadataTransformer)
-
build
public OperationCallSettings<RequestT,ResponseT,MetadataT> build()
-
-