Loading .proto files can be done by providing file path (PROTO_PATH)
var packageDefinition = protoLoader.loadSync(
PROTO_PATH,
{keepCase: true,
longs: String,
enums: String,
defaults: true,
oneofs: true
});
How to do this dynamically in node.js ? I want to construct proto schema (datatypes and functions) at run time.