grpc bindings generator for Java and a few minor supporting changes i… (#4553)

* grpc bindings generator for Java and a few minor supporting changes in improvements

* restored formatting before my previous changes for ease of review

* Fixed grpc java code generation bug resulting in duplicate extractor declarations in case the same is used in more than a single RPC method
This commit is contained in:
Yuri Finkelstein
2017-12-21 07:55:57 -10:00
committed by Wouter van Oortmerssen
parent 61f4a46c43
commit 8518b3fb4e
8 changed files with 1288 additions and 6 deletions

View File

@@ -346,6 +346,7 @@ struct RPCCall {
std::string name;
SymbolTable<Value> attributes;
StructDef *request, *response;
std::vector<std::string> rpc_comment;
};
struct ServiceDef : public Definition {
@@ -843,6 +844,12 @@ bool GenerateCppGRPC(const Parser &parser,
bool GenerateGoGRPC(const Parser &parser,
const std::string &path,
const std::string &file_name);
// Generate GRPC Java classes.
// See idl_gen_grpc.cpp
bool GenerateJavaGRPC(const Parser &parser,
const std::string &path,
const std::string &file_name);
} // namespace flatbuffers