public static void registerProtoFiles ( SerializationContext ctx ) throws IOException { FileDescriptorSource fileDescriptorSource = new FileDescriptorSource ( ) ; fileDescriptorSource . addProtoFile ( QUERY_PROTO_RES , MarshallerRegistration . class . getResourceAsStream ( QUERY_PROTO_RES ) ) ; fileDescriptorSource . addProtoFile ( MESSAGE_PROTO_RES , MarshallerRegistration . class . getResourceAsStream ( MESSAGE_PROTO_RES ) ) ; ctx . registerProtoFiles ( fileDescriptorSource ) ; }
Registers proto files .