Class ApiMessageOperationTransformers.ResponseTransformer<ResponseT> (2.14.0)

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

Static Methods

<ResponseT>create(Class<ResponseT> packedClass)

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

Methods

apply(OperationSnapshot operationSnapshot)

public ResponseT apply(OperationSnapshot operationSnapshot)

Unwraps an OperationSnapshot and returns the contained method response message.

Parameter
NameDescription
operationSnapshotOperationSnapshot
Returns
TypeDescription
ResponseT