Class ApiMessageOperationTransformers.MetadataTransformer<MetadataT> (2.11.0)

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

Static Methods

<MetadataT>create(Class<MetadataT> packedClass)

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

Methods

apply(OperationSnapshot operationSnapshot)

public MetadataT apply(OperationSnapshot operationSnapshot)

Unwraps an OperationSnapshot and returns the contained operation metadata message.

Parameter
NameDescription
operationSnapshotOperationSnapshot
Returns
TypeDescription
MetadataT