diff options
Diffstat (limited to 'compiler/src/java_plugin/cpp/java_generator.h')
-rw-r--r-- | compiler/src/java_plugin/cpp/java_generator.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/src/java_plugin/cpp/java_generator.h b/compiler/src/java_plugin/cpp/java_generator.h index 96b3b8aaa..29c6fd952 100644 --- a/compiler/src/java_plugin/cpp/java_generator.h +++ b/compiler/src/java_plugin/cpp/java_generator.h @@ -38,6 +38,10 @@ using namespace std; namespace java_grpc_generator { +enum ProtoFlavor { + NORMAL, LITE, NANO +}; + // Returns the package name of the gRPC services defined in the given file. string ServiceJavaPackage(const google::protobuf::FileDescriptor* file, bool nano); @@ -48,7 +52,7 @@ string ServiceClassName(const google::protobuf::ServiceDescriptor* service); // Writes the generated service interface into the given ZeroCopyOutputStream void GenerateService(const google::protobuf::ServiceDescriptor* service, google::protobuf::io::ZeroCopyOutputStream* out, - bool generate_nano); + ProtoFlavor flavor); } // namespace java_grpc_generator |