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

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

Inheritance

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

Type Parameters

Name Description
RequestT
ResponseT
MetadataT

Constructors

Builder()

public Builder()

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

public Builder(OperationCallSettings<RequestT,ResponseT,MetadataT> settings)
Parameter
Name Description
settings OperationCallSettings<RequestT,ResponseT,MetadataT>

Methods

build()

public OperationCallSettings<RequestT,ResponseT,MetadataT> build()
Returns
Type Description
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
Type Description
UnaryCallSettings<RequestT,OperationSnapshot>

getMetadataTransformer()

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

getPollingAlgorithm()

public TimedRetryAlgorithm getPollingAlgorithm()

Get the polling algorithm of the operation.

Returns
Type Description
TimedRetryAlgorithm

getResponseTransformer()

public final ApiFunction<OperationSnapshot,ResponseT> getResponseTransformer()
Returns
Type Description
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
Name Description
initialCallSettings UnaryCallSettings<RequestT,OperationSnapshot>
Returns
Type Description
Builder<RequestT,ResponseT,MetadataT>

setMetadataTransformer(ApiFunction<OperationSnapshot,MetadataT> metadataTransformer)

public OperationCallSettings.Builder<RequestT,ResponseT,MetadataT> setMetadataTransformer(ApiFunction<OperationSnapshot,MetadataT> metadataTransformer)
Parameter
Name Description
metadataTransformer ApiFunction<OperationSnapshot,MetadataT>
Returns
Type Description
Builder<RequestT,ResponseT,MetadataT>

setPollingAlgorithm(TimedRetryAlgorithm pollingAlgorithm)

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

Set the polling algorithm of the operation.

Parameter
Name Description
pollingAlgorithm TimedRetryAlgorithm
Returns
Type Description
Builder<RequestT,ResponseT,MetadataT>

setResponseTransformer(ApiFunction<OperationSnapshot,ResponseT> responseTransformer)

public OperationCallSettings.Builder<RequestT,ResponseT,MetadataT> setResponseTransformer(ApiFunction<OperationSnapshot,ResponseT> responseTransformer)
Parameter
Name Description
responseTransformer ApiFunction<OperationSnapshot,ResponseT>
Returns
Type Description
Builder<RequestT,ResponseT,MetadataT>