Class ApiMessageOperationTransformers.MetadataTransformer<MetadataT> (2.8.1)

public static class ApiMessageOperationTransformers.MetadataTransformer<MetadataT> implements ApiFunction<OperationSnapshot,MetadataT>

Inheritance

java.lang.Object > ApiMessageOperationTransformers.MetadataTransformer<MetadataT>

Implements

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

Type Parameter

NameDescription
MetadataT

Methods

<MetadataT>create(Class<MetadataT> packedClass)

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

apply(OperationSnapshot operationSnapshot)

public MetadataT apply(OperationSnapshot operationSnapshot)

Unwraps an OperationSnapshot and returns the contained operation metadata message.

Parameter
NameDescription
operationSnapshotOperationSnapshot
Returns
TypeDescription
MetadataT