File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
javascript/net/grpc/web/generator Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 3030#include < string>
3131
3232using google::protobuf::Descriptor;
33+ using google::protobuf::Edition;
3334using google::protobuf::EnumDescriptor;
3435using google::protobuf::FieldDescriptor;
3536using google::protobuf::FileDescriptor;
@@ -1522,9 +1523,12 @@ class GrpcCodeGenerator : public CodeGenerator {
15221523
15231524 uint64_t GetSupportedFeatures () const override {
15241525 // Code generators must explicitly support proto3 optional.
1525- return CodeGenerator::FEATURE_PROTO3_OPTIONAL;
1526+ return CodeGenerator::FEATURE_PROTO3_OPTIONAL | CodeGenerator::FEATURE_SUPPORTS_EDITIONS ;
15261527 }
15271528
1529+ Edition GetMinimumEdition () const override { return Edition::EDITION_PROTO2; }
1530+ Edition GetMaximumEdition () const override { return Edition::EDITION_2023; }
1531+
15281532 bool Generate (const FileDescriptor* file, const string& parameter,
15291533 GeneratorContext* context, string* error) const override {
15301534 GeneratorOptions generator_options;
You can’t perform that action at this time.
0 commit comments