public static < T extends Message > Metadata . Key < T > keyForProto ( T instance ) { return Metadata . Key . of ( instance . getDescriptorForType ( ) . getFullName ( ) + Metadata . BINARY_HEADER_SUFFIX , metadataMarshaller ( instance ) ) ; }
Produce a metadata key for a generated protobuf type .