File indexing completed on 2025-01-31 10:12:00
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef GOOGLE_PROTOBUF_COMPILER_RUBY_GENERATOR_H__
0011 #define GOOGLE_PROTOBUF_COMPILER_RUBY_GENERATOR_H__
0012
0013 #include <string>
0014
0015 #include "google/protobuf/compiler/code_generator.h"
0016 #include "google/protobuf/port_def.inc"
0017
0018 namespace google {
0019 namespace protobuf {
0020 namespace compiler {
0021 namespace ruby {
0022
0023
0024
0025
0026
0027 class PROTOC_EXPORT Generator : public CodeGenerator {
0028 bool Generate(const FileDescriptor* file, const std::string& parameter,
0029 GeneratorContext* generator_context,
0030 std::string* error) const override;
0031 uint64_t GetSupportedFeatures() const override {
0032 return Feature::FEATURE_PROTO3_OPTIONAL |
0033 Feature::FEATURE_SUPPORTS_EDITIONS;
0034 }
0035 Edition GetMinimumEdition() const override { return Edition::EDITION_PROTO2; }
0036 Edition GetMaximumEdition() const override { return Edition::EDITION_2023; }
0037 };
0038
0039 }
0040 }
0041 }
0042 }
0043
0044 #include "google/protobuf/port_undef.inc"
0045
0046 #endif