We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3601190 commit 97112b2Copy full SHA for 97112b2
compiler/src/java_plugin/cpp/java_plugin.cpp
@@ -43,10 +43,14 @@ class JavaGrpcGenerator : public google::protobuf::compiler::CodeGenerator {
43
JavaGrpcGenerator() {}
44
virtual ~JavaGrpcGenerator() {}
45
46
+ uint64_t GetSupportedFeatures() const override {
47
+ return FEATURE_PROTO3_OPTIONAL;
48
+ }
49
+
50
virtual bool Generate(const google::protobuf::FileDescriptor* file,
51
const std::string& parameter,
52
google::protobuf::compiler::GeneratorContext* context,
- std::string* error) const {
53
+ std::string* error) const override {
54
std::vector<std::pair<std::string, std::string> > options;
55
google::protobuf::compiler::ParseGeneratorParameter(parameter, &options);
56
0 commit comments