|
|
|
@ -120,7 +120,8 @@ grpc::string NodeObjectPath(const Descriptor* descriptor) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Prints out the message serializer and deserializer functions
|
|
|
|
|
void PrintMessageTransformer(const Descriptor* descriptor, Printer* out, const Parameters& params) { |
|
|
|
|
void PrintMessageTransformer(const Descriptor* descriptor, Printer* out, |
|
|
|
|
const Parameters& params) { |
|
|
|
|
map<grpc::string, grpc::string> template_vars; |
|
|
|
|
grpc::string full_name = descriptor->full_name(); |
|
|
|
|
template_vars["identifier_name"] = MessageIdentifierName(full_name); |
|
|
|
@ -225,7 +226,8 @@ void PrintImports(const FileDescriptor* file, Printer* out) { |
|
|
|
|
out->Print("\n"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void PrintTransformers(const FileDescriptor* file, Printer* out, const Parameters& params) { |
|
|
|
|
void PrintTransformers(const FileDescriptor* file, Printer* out, |
|
|
|
|
const Parameters& params) { |
|
|
|
|
map<grpc::string, const Descriptor*> messages = GetAllMessages(file); |
|
|
|
|
for (std::map<grpc::string, const Descriptor*>::iterator it = |
|
|
|
|
messages.begin(); |
|
|
|
@ -242,7 +244,8 @@ void PrintServices(const FileDescriptor* file, Printer* out) { |
|
|
|
|
} |
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
|
|
grpc::string GenerateFile(const FileDescriptor* file, const Parameters& params) { |
|
|
|
|
grpc::string GenerateFile(const FileDescriptor* file, |
|
|
|
|
const Parameters& params) { |
|
|
|
|
grpc::string output; |
|
|
|
|
{ |
|
|
|
|
StringOutputStream output_stream(&output); |
|
|
|
|