Class OperationCallSettings.Builder<RequestT,ResponseT,MetadataT> (2.36.0)

public static class OperationCallSettings.Builder<RequestT,ResponseT,MetadataT>

Inheritance

java.lang.Object > OperationCallSettings.Builder<RequestT,ResponseT,MetadataT>

Type Parameters

NameDescription
RequestT
ResponseT
MetadataT

Constructors

Builder()

public Builder()

Builder(OperationCallSettings<RequestT,ResponseT,MetadataT> settings)

public Builder(OperationCallSettings<RequestT,ResponseT,MetadataT> settings)
Parameter
NameDescription
settingsOperationCallSettings<RequestT,ResponseT,MetadataT>

Methods

build()

public OperationCallSettings<RequestT,ResponseT,MetadataT> build()
Returns
TypeDescription
OperationCallSettings<RequestT,ResponseT,MetadataT>

getInitialCallSettings()

public UnaryCallSettings<RequestT,OperationSnapshot> getInitialCallSettings()

Get the call settings which are used on the call to initiate the operation.

Returns
TypeDescription
UnaryCallSettings<RequestT,OperationSnapshot>

getMetadataTransformer()

public final ApiFunction<OperationSnapshot,MetadataT> getMetadataTransformer()
Returns
TypeDescription
ApiFunction<OperationSnapshot,MetadataT>

getPollingAlgorithm()

public TimedRetryAlgorithm getPollingAlgorithm()

Get the polling algorithm of the operation.

Returns
TypeDescription
TimedRetryAlgorithm

getResponseTransformer()

public final ApiFunction<OperationSnapshot,ResponseT> getResponseTransformer()
Returns
TypeDescription
ApiFunction<OperationSnapshot,ResponseT>

setInitialCallSettings(UnaryCallSettings<RequestT,OperationSnapshot> initialCallSettings)

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.

Parameter
NameDescription
initialCallSettingsUnaryCallSettings<RequestT,OperationSnapshot>
Returns
TypeDescription
Builder<RequestT,ResponseT,MetadataT>

setMetadataTransformer(ApiFunction<OperationSnapshot,MetadataT> metadataTransformer)

public OperationCallSettings.Builder<RequestT,ResponseT,MetadataT> setMetadataTransformer(ApiFunction<OperationSnapshot,MetadataT> metadataTransformer)
Parameter
NameDescription
metadataTransformerApiFunction<OperationSnapshot,MetadataT>
Returns
TypeDescription
Builder<RequestT,ResponseT,MetadataT>

setPollingAlgorithm(TimedRetryAlgorithm pollingAlgorithm)

public OperationCallSettings.Builder<RequestT,ResponseT,MetadataT> setPollingAlgorithm(TimedRetryAlgorithm pollingAlgorithm)

Set the polling algorithm of the operation.

Parameter
NameDescription
pollingAlgorithmTimedRetryAlgorithm
Returns
TypeDescription
Builder<RequestT,ResponseT,MetadataT>

setResponseTransformer(ApiFunction<OperationSnapshot,ResponseT> responseTransformer)

public OperationCallSettings.Builder<RequestT,ResponseT,MetadataT> setResponseTransformer(ApiFunction<OperationSnapshot,ResponseT> responseTransformer)
Parameter
NameDescription
responseTransformerApiFunction<OperationSnapshot,ResponseT>
Returns
TypeDescription
Builder<RequestT,ResponseT,MetadataT>