Class ApiMessageOperationTransformers.ResponseTransformer<ResponseT> (2.8.1)

public static class ApiMessageOperationTransformers.ResponseTransformer<ResponseT> implements ApiFunction<OperationSnapshot,ResponseT>

Inheritance

java.lang.Object > ApiMessageOperationTransformers.ResponseTransformer<ResponseT>

Implements

com.google.api.core.ApiFunction<com.google.api.gax.longrunning.OperationSnapshot,ResponseT>

Type Parameter

NameDescription
ResponseT

Methods

<ResponseT>create(Class<ResponseT> packedClass)

public static ApiMessageOperationTransformers.ResponseTransformer<ResponseT> <ResponseT>create(Class<ResponseT> packedClass)
Parameter
NameDescription
packedClassClass<ResponseT>
Returns
TypeDescription
ResponseTransformer<ResponseT>

apply(OperationSnapshot operationSnapshot)

public ResponseT apply(OperationSnapshot operationSnapshot)

Unwraps an OperationSnapshot and returns the contained method response message.

Parameter
NameDescription
operationSnapshotOperationSnapshot
Returns
TypeDescription
ResponseT