|
3 | 3 | // NO CHECKED-IN PROTOBUF GENCODE
|
4 | 4 | // generation command line:
|
5 | 5 | // protoc --plugin=protoc-gen-hpp=/path/to/protoc-gen-hpp
|
6 |
| -// --hpp_out proto2_explicit_presence=.google.protobuf.FieldDescriptorProto.oneof_index,proto2_explicit_presence=.google.protobuf.FieldOptions.packed:${out_dir} |
| 6 | +// --hpp_out proto2_explicit_presence=.google.protobuf.FieldDescriptorProto.oneof_index,proto2_explicit_presence=.google.protobuf.FieldOptions.packed,export_request=descriptor.request.binpb:${out_dir} |
7 | 7 | // google/protobuf/descriptor.proto
|
8 | 8 |
|
9 | 9 | #pragma once
|
|
15 | 15 | namespace google::protobuf {
|
16 | 16 |
|
17 | 17 | auto pb_meta(const FileDescriptorSet &) -> std::tuple<
|
18 |
| - hpp::proto::field_meta<1, &FileDescriptorSet::file, hpp::proto::field_option::none>>; |
| 18 | + hpp::proto::field_meta<1, &FileDescriptorSet::file, hpp::proto::field_option::none>, |
| 19 | + hpp::proto::field_meta<UINT32_MAX, &FileDescriptorSet::extensions>>; |
19 | 20 |
|
20 | 21 | auto pb_meta(const FileDescriptorProto &) -> std::tuple<
|
21 | 22 | hpp::proto::field_meta<1, &FileDescriptorProto::name, hpp::proto::field_option::none>,
|
@@ -57,7 +58,7 @@ auto pb_meta(const ExtensionRangeOptions &) -> std::tuple<
|
57 | 58 | hpp::proto::field_meta<999, &ExtensionRangeOptions::uninterpreted_option, hpp::proto::field_option::none>,
|
58 | 59 | hpp::proto::field_meta<2, &ExtensionRangeOptions::declaration, hpp::proto::field_option::none>,
|
59 | 60 | hpp::proto::field_meta<50, &ExtensionRangeOptions::features, hpp::proto::field_option::explicit_presence>,
|
60 |
| - hpp::proto::field_meta<3, &ExtensionRangeOptions::verification, hpp::proto::field_option::none, void, ::google::protobuf::ExtensionRangeOptions::VerificationState::UNVERIFIED>, |
| 61 | + hpp::proto::field_meta<3, &ExtensionRangeOptions::verification, hpp::proto::field_option::closed_enum, void, ::google::protobuf::ExtensionRangeOptions::VerificationState::UNVERIFIED>, |
61 | 62 | hpp::proto::field_meta<UINT32_MAX, &ExtensionRangeOptions::extensions>>;
|
62 | 63 |
|
63 | 64 | auto pb_meta(const ExtensionRangeOptions::Declaration &) -> std::tuple<
|
@@ -119,7 +120,7 @@ auto pb_meta(const FileOptions &) -> std::tuple<
|
119 | 120 | hpp::proto::field_meta<10, &FileOptions::java_multiple_files, hpp::proto::field_option::none, bool, false>,
|
120 | 121 | hpp::proto::field_meta<20, &FileOptions::java_generate_equals_and_hash, hpp::proto::field_option::none, bool>,
|
121 | 122 | hpp::proto::field_meta<27, &FileOptions::java_string_check_utf8, hpp::proto::field_option::none, bool, false>,
|
122 |
| - hpp::proto::field_meta<9, &FileOptions::optimize_for, hpp::proto::field_option::none, void, ::google::protobuf::FileOptions::OptimizeMode::SPEED>, |
| 123 | + hpp::proto::field_meta<9, &FileOptions::optimize_for, hpp::proto::field_option::closed_enum, void, ::google::protobuf::FileOptions::OptimizeMode::SPEED>, |
123 | 124 | hpp::proto::field_meta<11, &FileOptions::go_package, hpp::proto::field_option::none>,
|
124 | 125 | hpp::proto::field_meta<16, &FileOptions::cc_generic_services, hpp::proto::field_option::none, bool, false>,
|
125 | 126 | hpp::proto::field_meta<17, &FileOptions::java_generic_services, hpp::proto::field_option::none, bool, false>,
|
@@ -148,16 +149,16 @@ auto pb_meta(const MessageOptions &) -> std::tuple<
|
148 | 149 | hpp::proto::field_meta<UINT32_MAX, &MessageOptions::extensions>>;
|
149 | 150 |
|
150 | 151 | auto pb_meta(const FieldOptions &) -> std::tuple<
|
151 |
| - hpp::proto::field_meta<1, &FieldOptions::ctype, hpp::proto::field_option::none, void, ::google::protobuf::FieldOptions::CType::STRING>, |
| 152 | + hpp::proto::field_meta<1, &FieldOptions::ctype, hpp::proto::field_option::closed_enum, void, ::google::protobuf::FieldOptions::CType::STRING>, |
152 | 153 | hpp::proto::field_meta<2, &FieldOptions::packed, hpp::proto::field_option::explicit_presence, bool>,
|
153 |
| - hpp::proto::field_meta<6, &FieldOptions::jstype, hpp::proto::field_option::none, void, ::google::protobuf::FieldOptions::JSType::JS_NORMAL>, |
| 154 | + hpp::proto::field_meta<6, &FieldOptions::jstype, hpp::proto::field_option::closed_enum, void, ::google::protobuf::FieldOptions::JSType::JS_NORMAL>, |
154 | 155 | hpp::proto::field_meta<5, &FieldOptions::lazy, hpp::proto::field_option::none, bool, false>,
|
155 | 156 | hpp::proto::field_meta<15, &FieldOptions::unverified_lazy, hpp::proto::field_option::none, bool, false>,
|
156 | 157 | hpp::proto::field_meta<3, &FieldOptions::deprecated, hpp::proto::field_option::none, bool, false>,
|
157 | 158 | hpp::proto::field_meta<10, &FieldOptions::weak, hpp::proto::field_option::none, bool, false>,
|
158 | 159 | hpp::proto::field_meta<16, &FieldOptions::debug_redact, hpp::proto::field_option::none, bool, false>,
|
159 | 160 | hpp::proto::field_meta<17, &FieldOptions::retention, hpp::proto::field_option::closed_enum, void, ::google::protobuf::FieldOptions::OptionRetention::RETENTION_UNKNOWN>,
|
160 |
| - hpp::proto::field_meta<19, &FieldOptions::targets, hpp::proto::field_option::none>, |
| 161 | + hpp::proto::field_meta<19, &FieldOptions::targets, hpp::proto::field_option::closed_enum>, |
161 | 162 | hpp::proto::field_meta<20, &FieldOptions::edition_defaults, hpp::proto::field_option::none>,
|
162 | 163 | hpp::proto::field_meta<21, &FieldOptions::features, hpp::proto::field_option::explicit_presence>,
|
163 | 164 | hpp::proto::field_meta<22, &FieldOptions::feature_support, hpp::proto::field_option::explicit_presence>,
|
@@ -203,7 +204,7 @@ auto pb_meta(const ServiceOptions &) -> std::tuple<
|
203 | 204 |
|
204 | 205 | auto pb_meta(const MethodOptions &) -> std::tuple<
|
205 | 206 | hpp::proto::field_meta<33, &MethodOptions::deprecated, hpp::proto::field_option::none, bool, false>,
|
206 |
| - hpp::proto::field_meta<34, &MethodOptions::idempotency_level, hpp::proto::field_option::none, void, ::google::protobuf::MethodOptions::IdempotencyLevel::IDEMPOTENCY_UNKNOWN>, |
| 207 | + hpp::proto::field_meta<34, &MethodOptions::idempotency_level, hpp::proto::field_option::closed_enum, void, ::google::protobuf::MethodOptions::IdempotencyLevel::IDEMPOTENCY_UNKNOWN>, |
207 | 208 | hpp::proto::field_meta<35, &MethodOptions::features, hpp::proto::field_option::explicit_presence>,
|
208 | 209 | hpp::proto::field_meta<999, &MethodOptions::uninterpreted_option, hpp::proto::field_option::none>,
|
209 | 210 | hpp::proto::field_meta<UINT32_MAX, &MethodOptions::extensions>>;
|
@@ -241,7 +242,8 @@ auto pb_meta(const FeatureSetDefaults::FeatureSetEditionDefault &) -> std::tuple
|
241 | 242 | hpp::proto::field_meta<5, &FeatureSetDefaults::FeatureSetEditionDefault::fixed_features, hpp::proto::field_option::explicit_presence>>;
|
242 | 243 |
|
243 | 244 | auto pb_meta(const SourceCodeInfo &) -> std::tuple<
|
244 |
| - hpp::proto::field_meta<1, &SourceCodeInfo::location, hpp::proto::field_option::none>>; |
| 245 | + hpp::proto::field_meta<1, &SourceCodeInfo::location, hpp::proto::field_option::none>, |
| 246 | + hpp::proto::field_meta<UINT32_MAX, &SourceCodeInfo::extensions>>; |
245 | 247 |
|
246 | 248 | auto pb_meta(const SourceCodeInfo::Location &) -> std::tuple<
|
247 | 249 | hpp::proto::field_meta<1, &SourceCodeInfo::Location::path, hpp::proto::field_option::is_packed, hpp::proto::vint64_t>,
|
|
0 commit comments