public static DynamicMessage sdcFieldToProtobufMsg ( Record record , Descriptors . Descriptor desc , Map < String , Set < Descriptors . FieldDescriptor > > messageTypeToExtensionMap , Map < String , Object > defaultValueMap ) throws DataGeneratorException { return sdcFieldToProtobufMsg ( record , record . get ( ) , "" , desc , messageTypeToExtensionMap , defaultValueMap ) ; }
Serializes a record to a protobuf message using the specified descriptor .