1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // NO CHECKED-IN PROTOBUF GENCODE
3 // source: google/protobuf/compiler/plugin.proto
4 // Protobuf C++ Version: 5.29.4
5
6 #include "google/protobuf/compiler/plugin.pb.h"
7
8 #include <algorithm>
9 #include <type_traits>
10 #include "google/protobuf/io/coded_stream.h"
11 #include "google/protobuf/generated_message_tctable_impl.h"
12 #include "google/protobuf/extension_set.h"
13 #include "google/protobuf/generated_message_util.h"
14 #include "google/protobuf/wire_format_lite.h"
15 #include "google/protobuf/descriptor.h"
16 #include "google/protobuf/generated_message_reflection.h"
17 #include "google/protobuf/reflection_ops.h"
18 #include "google/protobuf/wire_format.h"
19 // @@protoc_insertion_point(includes)
20
21 // Must be included last.
22 #include "google/protobuf/port_def.inc"
23 PROTOBUF_PRAGMA_INIT_SEG
24 namespace _pb = ::google::protobuf;
25 namespace _pbi = ::google::protobuf::internal;
26 namespace _fl = ::google::protobuf::internal::field_layout;
27 namespace google {
28 namespace protobuf {
29 namespace compiler {
30
Impl_(::_pbi::ConstantInitialized)31 inline constexpr Version::Impl_::Impl_(
32 ::_pbi::ConstantInitialized) noexcept
33 : _cached_size_{0},
34 suffix_(
35 &::google::protobuf::internal::fixed_address_empty_string,
36 ::_pbi::ConstantInitialized()),
37 major_{0},
38 minor_{0},
39 patch_{0} {}
40
41 template <typename>
Version(::_pbi::ConstantInitialized)42 PROTOBUF_CONSTEXPR Version::Version(::_pbi::ConstantInitialized)
43 #if defined(PROTOBUF_CUSTOM_VTABLE)
44 : ::google::protobuf::Message(_class_data_.base()),
45 #else // PROTOBUF_CUSTOM_VTABLE
46 : ::google::protobuf::Message(),
47 #endif // PROTOBUF_CUSTOM_VTABLE
48 _impl_(::_pbi::ConstantInitialized()) {
49 }
50 struct VersionDefaultTypeInternal {
VersionDefaultTypeInternalgoogle::protobuf::compiler::VersionDefaultTypeInternal51 PROTOBUF_CONSTEXPR VersionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~VersionDefaultTypeInternalgoogle::protobuf::compiler::VersionDefaultTypeInternal52 ~VersionDefaultTypeInternal() {}
53 union {
54 Version _instance;
55 };
56 };
57
58 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOC_EXPORT
59 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VersionDefaultTypeInternal _Version_default_instance_;
60
Impl_(::_pbi::ConstantInitialized)61 inline constexpr CodeGeneratorResponse_File::Impl_::Impl_(
62 ::_pbi::ConstantInitialized) noexcept
63 : _cached_size_{0},
64 name_(
65 &::google::protobuf::internal::fixed_address_empty_string,
66 ::_pbi::ConstantInitialized()),
67 insertion_point_(
68 &::google::protobuf::internal::fixed_address_empty_string,
69 ::_pbi::ConstantInitialized()),
70 content_(
71 &::google::protobuf::internal::fixed_address_empty_string,
72 ::_pbi::ConstantInitialized()),
73 generated_code_info_{nullptr} {}
74
75 template <typename>
CodeGeneratorResponse_File(::_pbi::ConstantInitialized)76 PROTOBUF_CONSTEXPR CodeGeneratorResponse_File::CodeGeneratorResponse_File(::_pbi::ConstantInitialized)
77 #if defined(PROTOBUF_CUSTOM_VTABLE)
78 : ::google::protobuf::Message(_class_data_.base()),
79 #else // PROTOBUF_CUSTOM_VTABLE
80 : ::google::protobuf::Message(),
81 #endif // PROTOBUF_CUSTOM_VTABLE
82 _impl_(::_pbi::ConstantInitialized()) {
83 }
84 struct CodeGeneratorResponse_FileDefaultTypeInternal {
CodeGeneratorResponse_FileDefaultTypeInternalgoogle::protobuf::compiler::CodeGeneratorResponse_FileDefaultTypeInternal85 PROTOBUF_CONSTEXPR CodeGeneratorResponse_FileDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~CodeGeneratorResponse_FileDefaultTypeInternalgoogle::protobuf::compiler::CodeGeneratorResponse_FileDefaultTypeInternal86 ~CodeGeneratorResponse_FileDefaultTypeInternal() {}
87 union {
88 CodeGeneratorResponse_File _instance;
89 };
90 };
91
92 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOC_EXPORT
93 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CodeGeneratorResponse_FileDefaultTypeInternal _CodeGeneratorResponse_File_default_instance_;
94
Impl_(::_pbi::ConstantInitialized)95 inline constexpr CodeGeneratorResponse::Impl_::Impl_(
96 ::_pbi::ConstantInitialized) noexcept
97 : _cached_size_{0},
98 file_{},
99 error_(
100 &::google::protobuf::internal::fixed_address_empty_string,
101 ::_pbi::ConstantInitialized()),
102 supported_features_{::uint64_t{0u}},
103 minimum_edition_{0},
104 maximum_edition_{0} {}
105
106 template <typename>
CodeGeneratorResponse(::_pbi::ConstantInitialized)107 PROTOBUF_CONSTEXPR CodeGeneratorResponse::CodeGeneratorResponse(::_pbi::ConstantInitialized)
108 #if defined(PROTOBUF_CUSTOM_VTABLE)
109 : ::google::protobuf::Message(_class_data_.base()),
110 #else // PROTOBUF_CUSTOM_VTABLE
111 : ::google::protobuf::Message(),
112 #endif // PROTOBUF_CUSTOM_VTABLE
113 _impl_(::_pbi::ConstantInitialized()) {
114 }
115 struct CodeGeneratorResponseDefaultTypeInternal {
CodeGeneratorResponseDefaultTypeInternalgoogle::protobuf::compiler::CodeGeneratorResponseDefaultTypeInternal116 PROTOBUF_CONSTEXPR CodeGeneratorResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~CodeGeneratorResponseDefaultTypeInternalgoogle::protobuf::compiler::CodeGeneratorResponseDefaultTypeInternal117 ~CodeGeneratorResponseDefaultTypeInternal() {}
118 union {
119 CodeGeneratorResponse _instance;
120 };
121 };
122
123 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOC_EXPORT
124 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CodeGeneratorResponseDefaultTypeInternal _CodeGeneratorResponse_default_instance_;
125
Impl_(::_pbi::ConstantInitialized)126 inline constexpr CodeGeneratorRequest::Impl_::Impl_(
127 ::_pbi::ConstantInitialized) noexcept
128 : _cached_size_{0},
129 file_to_generate_{},
130 proto_file_{},
131 source_file_descriptors_{},
132 parameter_(
133 &::google::protobuf::internal::fixed_address_empty_string,
134 ::_pbi::ConstantInitialized()),
135 compiler_version_{nullptr} {}
136
137 template <typename>
CodeGeneratorRequest(::_pbi::ConstantInitialized)138 PROTOBUF_CONSTEXPR CodeGeneratorRequest::CodeGeneratorRequest(::_pbi::ConstantInitialized)
139 #if defined(PROTOBUF_CUSTOM_VTABLE)
140 : ::google::protobuf::Message(_class_data_.base()),
141 #else // PROTOBUF_CUSTOM_VTABLE
142 : ::google::protobuf::Message(),
143 #endif // PROTOBUF_CUSTOM_VTABLE
144 _impl_(::_pbi::ConstantInitialized()) {
145 }
146 struct CodeGeneratorRequestDefaultTypeInternal {
CodeGeneratorRequestDefaultTypeInternalgoogle::protobuf::compiler::CodeGeneratorRequestDefaultTypeInternal147 PROTOBUF_CONSTEXPR CodeGeneratorRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~CodeGeneratorRequestDefaultTypeInternalgoogle::protobuf::compiler::CodeGeneratorRequestDefaultTypeInternal148 ~CodeGeneratorRequestDefaultTypeInternal() {}
149 union {
150 CodeGeneratorRequest _instance;
151 };
152 };
153
154 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOC_EXPORT
155 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CodeGeneratorRequestDefaultTypeInternal _CodeGeneratorRequest_default_instance_;
156 } // namespace compiler
157 } // namespace protobuf
158 } // namespace google
159 static const ::_pb::EnumDescriptor* file_level_enum_descriptors_google_2fprotobuf_2fcompiler_2fplugin_2eproto[1];
160 static constexpr const ::_pb::ServiceDescriptor**
161 file_level_service_descriptors_google_2fprotobuf_2fcompiler_2fplugin_2eproto = nullptr;
162 const ::uint32_t
163 TableStruct_google_2fprotobuf_2fcompiler_2fplugin_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
164 protodesc_cold) = {
165 PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::Version, _impl_._has_bits_),
166 PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::Version, _internal_metadata_),
167 ~0u, // no _extensions_
168 ~0u, // no _oneof_case_
169 ~0u, // no _weak_field_map_
170 ~0u, // no _inlined_string_donated_
171 ~0u, // no _split_
172 ~0u, // no sizeof(Split)
173 PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::Version, _impl_.major_),
174 PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::Version, _impl_.minor_),
175 PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::Version, _impl_.patch_),
176 PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::Version, _impl_.suffix_),
177 1,
178 2,
179 3,
180 0,
181 PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorRequest, _impl_._has_bits_),
182 PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorRequest, _internal_metadata_),
183 ~0u, // no _extensions_
184 ~0u, // no _oneof_case_
185 ~0u, // no _weak_field_map_
186 ~0u, // no _inlined_string_donated_
187 ~0u, // no _split_
188 ~0u, // no sizeof(Split)
189 PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorRequest, _impl_.file_to_generate_),
190 PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorRequest, _impl_.parameter_),
191 PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorRequest, _impl_.proto_file_),
192 PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorRequest, _impl_.source_file_descriptors_),
193 PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorRequest, _impl_.compiler_version_),
194 ~0u,
195 0,
196 ~0u,
197 ~0u,
198 1,
199 PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorResponse_File, _impl_._has_bits_),
200 PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorResponse_File, _internal_metadata_),
201 ~0u, // no _extensions_
202 ~0u, // no _oneof_case_
203 ~0u, // no _weak_field_map_
204 ~0u, // no _inlined_string_donated_
205 ~0u, // no _split_
206 ~0u, // no sizeof(Split)
207 PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorResponse_File, _impl_.name_),
208 PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorResponse_File, _impl_.insertion_point_),
209 PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorResponse_File, _impl_.content_),
210 PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorResponse_File, _impl_.generated_code_info_),
211 0,
212 1,
213 2,
214 3,
215 PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorResponse, _impl_._has_bits_),
216 PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorResponse, _internal_metadata_),
217 ~0u, // no _extensions_
218 ~0u, // no _oneof_case_
219 ~0u, // no _weak_field_map_
220 ~0u, // no _inlined_string_donated_
221 ~0u, // no _split_
222 ~0u, // no sizeof(Split)
223 PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorResponse, _impl_.error_),
224 PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorResponse, _impl_.supported_features_),
225 PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorResponse, _impl_.minimum_edition_),
226 PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorResponse, _impl_.maximum_edition_),
227 PROTOBUF_FIELD_OFFSET(::google::protobuf::compiler::CodeGeneratorResponse, _impl_.file_),
228 0,
229 1,
230 2,
231 3,
232 ~0u,
233 };
234
235 static const ::_pbi::MigrationSchema
236 schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
237 {0, 12, -1, sizeof(::google::protobuf::compiler::Version)},
238 {16, 29, -1, sizeof(::google::protobuf::compiler::CodeGeneratorRequest)},
239 {34, 46, -1, sizeof(::google::protobuf::compiler::CodeGeneratorResponse_File)},
240 {50, 63, -1, sizeof(::google::protobuf::compiler::CodeGeneratorResponse)},
241 };
242 static const ::_pb::Message* const file_default_instances[] = {
243 &::google::protobuf::compiler::_Version_default_instance_._instance,
244 &::google::protobuf::compiler::_CodeGeneratorRequest_default_instance_._instance,
245 &::google::protobuf::compiler::_CodeGeneratorResponse_File_default_instance_._instance,
246 &::google::protobuf::compiler::_CodeGeneratorResponse_default_instance_._instance,
247 };
248 const char descriptor_table_protodef_google_2fprotobuf_2fcompiler_2fplugin_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
249 protodesc_cold) = {
250 "\n%google/protobuf/compiler/plugin.proto\022"
251 "\030google.protobuf.compiler\032 google/protob"
252 "uf/descriptor.proto\"F\n\007Version\022\r\n\005major\030"
253 "\001 \001(\005\022\r\n\005minor\030\002 \001(\005\022\r\n\005patch\030\003 \001(\005\022\016\n\006s"
254 "uffix\030\004 \001(\t\"\201\002\n\024CodeGeneratorRequest\022\030\n\020"
255 "file_to_generate\030\001 \003(\t\022\021\n\tparameter\030\002 \001("
256 "\t\0228\n\nproto_file\030\017 \003(\0132$.google.protobuf."
257 "FileDescriptorProto\022E\n\027source_file_descr"
258 "iptors\030\021 \003(\0132$.google.protobuf.FileDescr"
259 "iptorProto\022;\n\020compiler_version\030\003 \001(\0132!.g"
260 "oogle.protobuf.compiler.Version\"\222\003\n\025Code"
261 "GeneratorResponse\022\r\n\005error\030\001 \001(\t\022\032\n\022supp"
262 "orted_features\030\002 \001(\004\022\027\n\017minimum_edition\030"
263 "\003 \001(\005\022\027\n\017maximum_edition\030\004 \001(\005\022B\n\004file\030\017"
264 " \003(\01324.google.protobuf.compiler.CodeGene"
265 "ratorResponse.File\032\177\n\004File\022\014\n\004name\030\001 \001(\t"
266 "\022\027\n\017insertion_point\030\002 \001(\t\022\017\n\007content\030\017 \001"
267 "(\t\022\?\n\023generated_code_info\030\020 \001(\0132\".google"
268 ".protobuf.GeneratedCodeInfo\"W\n\007Feature\022\020"
269 "\n\014FEATURE_NONE\020\000\022\033\n\027FEATURE_PROTO3_OPTIO"
270 "NAL\020\001\022\035\n\031FEATURE_SUPPORTS_EDITIONS\020\002Br\n\034"
271 "com.google.protobuf.compilerB\014PluginProt"
272 "osZ)google.golang.org/protobuf/types/plu"
273 "ginpb\252\002\030Google.Protobuf.Compiler"
274 };
275 static const ::_pbi::DescriptorTable* const descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto_deps[1] =
276 {
277 &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto,
278 };
279 static ::absl::once_flag descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto_once;
280 PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto = {
281 false,
282 false,
283 952,
284 descriptor_table_protodef_google_2fprotobuf_2fcompiler_2fplugin_2eproto,
285 "google/protobuf/compiler/plugin.proto",
286 &descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto_once,
287 descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto_deps,
288 1,
289 4,
290 schemas,
291 file_default_instances,
292 TableStruct_google_2fprotobuf_2fcompiler_2fplugin_2eproto::offsets,
293 file_level_enum_descriptors_google_2fprotobuf_2fcompiler_2fplugin_2eproto,
294 file_level_service_descriptors_google_2fprotobuf_2fcompiler_2fplugin_2eproto,
295 };
296 namespace google {
297 namespace protobuf {
298 namespace compiler {
CodeGeneratorResponse_Feature_descriptor()299 const ::google::protobuf::EnumDescriptor* CodeGeneratorResponse_Feature_descriptor() {
300 ::google::protobuf::internal::AssignDescriptors(&descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto);
301 return file_level_enum_descriptors_google_2fprotobuf_2fcompiler_2fplugin_2eproto[0];
302 }
303 PROTOBUF_CONSTINIT const uint32_t CodeGeneratorResponse_Feature_internal_data_[] = {
304 196608u, 0u, };
CodeGeneratorResponse_Feature_IsValid(int value)305 bool CodeGeneratorResponse_Feature_IsValid(int value) {
306 return 0 <= value && value <= 2;
307 }
308 #if (__cplusplus < 201703) && \
309 (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
310
311 constexpr CodeGeneratorResponse_Feature CodeGeneratorResponse::FEATURE_NONE;
312 constexpr CodeGeneratorResponse_Feature CodeGeneratorResponse::FEATURE_PROTO3_OPTIONAL;
313 constexpr CodeGeneratorResponse_Feature CodeGeneratorResponse::FEATURE_SUPPORTS_EDITIONS;
314 constexpr CodeGeneratorResponse_Feature CodeGeneratorResponse::Feature_MIN;
315 constexpr CodeGeneratorResponse_Feature CodeGeneratorResponse::Feature_MAX;
316 constexpr int CodeGeneratorResponse::Feature_ARRAYSIZE;
317
318 #endif // (__cplusplus < 201703) &&
319 // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
320 // ===================================================================
321
322 class Version::_Internal {
323 public:
324 using HasBits =
325 decltype(std::declval<Version>()._impl_._has_bits_);
326 static constexpr ::int32_t kHasBitsOffset =
327 8 * PROTOBUF_FIELD_OFFSET(Version, _impl_._has_bits_);
328 };
329
Version(::google::protobuf::Arena * arena)330 Version::Version(::google::protobuf::Arena* arena)
331 #if defined(PROTOBUF_CUSTOM_VTABLE)
332 : ::google::protobuf::Message(arena, _class_data_.base()) {
333 #else // PROTOBUF_CUSTOM_VTABLE
334 : ::google::protobuf::Message(arena) {
335 #endif // PROTOBUF_CUSTOM_VTABLE
336 SharedCtor(arena);
337 // @@protoc_insertion_point(arena_constructor:google.protobuf.compiler.Version)
338 }
339 inline PROTOBUF_NDEBUG_INLINE Version::Impl_::Impl_(
340 ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
341 const Impl_& from, const ::google::protobuf::compiler::Version& from_msg)
342 : _has_bits_{from._has_bits_},
343 _cached_size_{0},
344 suffix_(arena, from.suffix_) {}
345
346 Version::Version(
347 ::google::protobuf::Arena* arena,
348 const Version& from)
349 #if defined(PROTOBUF_CUSTOM_VTABLE)
350 : ::google::protobuf::Message(arena, _class_data_.base()) {
351 #else // PROTOBUF_CUSTOM_VTABLE
352 : ::google::protobuf::Message(arena) {
353 #endif // PROTOBUF_CUSTOM_VTABLE
354 Version* const _this = this;
355 (void)_this;
356 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
357 from._internal_metadata_);
358 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
359 ::memcpy(reinterpret_cast<char *>(&_impl_) +
360 offsetof(Impl_, major_),
361 reinterpret_cast<const char *>(&from._impl_) +
362 offsetof(Impl_, major_),
363 offsetof(Impl_, patch_) -
364 offsetof(Impl_, major_) +
365 sizeof(Impl_::patch_));
366
367 // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.Version)
368 }
369 inline PROTOBUF_NDEBUG_INLINE Version::Impl_::Impl_(
370 ::google::protobuf::internal::InternalVisibility visibility,
371 ::google::protobuf::Arena* arena)
372 : _cached_size_{0},
373 suffix_(arena) {}
374
375 inline void Version::SharedCtor(::_pb::Arena* arena) {
376 new (&_impl_) Impl_(internal_visibility(), arena);
377 ::memset(reinterpret_cast<char *>(&_impl_) +
378 offsetof(Impl_, major_),
379 0,
380 offsetof(Impl_, patch_) -
381 offsetof(Impl_, major_) +
382 sizeof(Impl_::patch_));
383 }
384 Version::~Version() {
385 // @@protoc_insertion_point(destructor:google.protobuf.compiler.Version)
386 SharedDtor(*this);
387 }
388 inline void Version::SharedDtor(MessageLite& self) {
389 Version& this_ = static_cast<Version&>(self);
390 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
391 ABSL_DCHECK(this_.GetArena() == nullptr);
392 this_._impl_.suffix_.Destroy();
393 this_._impl_.~Impl_();
394 }
395
396 inline void* Version::PlacementNew_(const void*, void* mem,
397 ::google::protobuf::Arena* arena) {
398 return ::new (mem) Version(arena);
399 }
400 constexpr auto Version::InternalNewImpl_() {
401 return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Version),
402 alignof(Version));
403 }
404 PROTOBUF_CONSTINIT
405 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
406 const ::google::protobuf::internal::ClassDataFull Version::_class_data_ = {
407 ::google::protobuf::internal::ClassData{
408 &_Version_default_instance_._instance,
409 &_table_.header,
410 nullptr, // OnDemandRegisterArenaDtor
411 nullptr, // IsInitialized
412 &Version::MergeImpl,
413 ::google::protobuf::Message::GetNewImpl<Version>(),
414 #if defined(PROTOBUF_CUSTOM_VTABLE)
415 &Version::SharedDtor,
416 ::google::protobuf::Message::GetClearImpl<Version>(), &Version::ByteSizeLong,
417 &Version::_InternalSerialize,
418 #endif // PROTOBUF_CUSTOM_VTABLE
419 PROTOBUF_FIELD_OFFSET(Version, _impl_._cached_size_),
420 false,
421 },
422 &Version::kDescriptorMethods,
423 &descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto,
424 nullptr, // tracker
425 };
426 const ::google::protobuf::internal::ClassData* Version::GetClassData() const {
427 ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
428 ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
429 return _class_data_.base();
430 }
431 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
432 const ::_pbi::TcParseTable<2, 4, 0, 47, 2> Version::_table_ = {
433 {
434 PROTOBUF_FIELD_OFFSET(Version, _impl_._has_bits_),
435 0, // no _extensions_
436 4, 24, // max_field_number, fast_idx_mask
437 offsetof(decltype(_table_), field_lookup_table),
438 4294967280, // skipmap
439 offsetof(decltype(_table_), field_entries),
440 4, // num_field_entries
441 0, // num_aux_entries
442 offsetof(decltype(_table_), field_names), // no aux_entries
443 _class_data_.base(),
444 nullptr, // post_loop_handler
445 ::_pbi::TcParser::GenericFallback, // fallback
446 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
447 ::_pbi::TcParser::GetTable<::google::protobuf::compiler::Version>(), // to_prefetch
448 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
449 }, {{
450 // optional string suffix = 4;
451 {::_pbi::TcParser::FastSS1,
452 {34, 0, 0, PROTOBUF_FIELD_OFFSET(Version, _impl_.suffix_)}},
453 // optional int32 major = 1;
454 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Version, _impl_.major_), 1>(),
455 {8, 1, 0, PROTOBUF_FIELD_OFFSET(Version, _impl_.major_)}},
456 // optional int32 minor = 2;
457 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Version, _impl_.minor_), 2>(),
458 {16, 2, 0, PROTOBUF_FIELD_OFFSET(Version, _impl_.minor_)}},
459 // optional int32 patch = 3;
460 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Version, _impl_.patch_), 3>(),
461 {24, 3, 0, PROTOBUF_FIELD_OFFSET(Version, _impl_.patch_)}},
462 }}, {{
463 65535, 65535
464 }}, {{
465 // optional int32 major = 1;
466 {PROTOBUF_FIELD_OFFSET(Version, _impl_.major_), _Internal::kHasBitsOffset + 1, 0,
467 (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
468 // optional int32 minor = 2;
469 {PROTOBUF_FIELD_OFFSET(Version, _impl_.minor_), _Internal::kHasBitsOffset + 2, 0,
470 (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
471 // optional int32 patch = 3;
472 {PROTOBUF_FIELD_OFFSET(Version, _impl_.patch_), _Internal::kHasBitsOffset + 3, 0,
473 (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
474 // optional string suffix = 4;
475 {PROTOBUF_FIELD_OFFSET(Version, _impl_.suffix_), _Internal::kHasBitsOffset + 0, 0,
476 (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)},
477 }},
478 // no aux_entries
479 {{
480 "\40\0\0\0\6\0\0\0"
481 "google.protobuf.compiler.Version"
482 "suffix"
483 }},
484 };
485
486 PROTOBUF_NOINLINE void Version::Clear() {
487 // @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.Version)
488 ::google::protobuf::internal::TSanWrite(&_impl_);
489 ::uint32_t cached_has_bits = 0;
490 // Prevent compiler warnings about cached_has_bits being unused
491 (void) cached_has_bits;
492
493 cached_has_bits = _impl_._has_bits_[0];
494 if (cached_has_bits & 0x00000001u) {
495 _impl_.suffix_.ClearNonDefaultToEmpty();
496 }
497 if (cached_has_bits & 0x0000000eu) {
498 ::memset(&_impl_.major_, 0, static_cast<::size_t>(
499 reinterpret_cast<char*>(&_impl_.patch_) -
500 reinterpret_cast<char*>(&_impl_.major_)) + sizeof(_impl_.patch_));
501 }
502 _impl_._has_bits_.Clear();
503 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
504 }
505
506 #if defined(PROTOBUF_CUSTOM_VTABLE)
507 ::uint8_t* Version::_InternalSerialize(
508 const MessageLite& base, ::uint8_t* target,
509 ::google::protobuf::io::EpsCopyOutputStream* stream) {
510 const Version& this_ = static_cast<const Version&>(base);
511 #else // PROTOBUF_CUSTOM_VTABLE
512 ::uint8_t* Version::_InternalSerialize(
513 ::uint8_t* target,
514 ::google::protobuf::io::EpsCopyOutputStream* stream) const {
515 const Version& this_ = *this;
516 #endif // PROTOBUF_CUSTOM_VTABLE
517 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.Version)
518 ::uint32_t cached_has_bits = 0;
519 (void)cached_has_bits;
520
521 cached_has_bits = this_._impl_._has_bits_[0];
522 // optional int32 major = 1;
523 if (cached_has_bits & 0x00000002u) {
524 target = ::google::protobuf::internal::WireFormatLite::
525 WriteInt32ToArrayWithField<1>(
526 stream, this_._internal_major(), target);
527 }
528
529 // optional int32 minor = 2;
530 if (cached_has_bits & 0x00000004u) {
531 target = ::google::protobuf::internal::WireFormatLite::
532 WriteInt32ToArrayWithField<2>(
533 stream, this_._internal_minor(), target);
534 }
535
536 // optional int32 patch = 3;
537 if (cached_has_bits & 0x00000008u) {
538 target = ::google::protobuf::internal::WireFormatLite::
539 WriteInt32ToArrayWithField<3>(
540 stream, this_._internal_patch(), target);
541 }
542
543 // optional string suffix = 4;
544 if (cached_has_bits & 0x00000001u) {
545 const std::string& _s = this_._internal_suffix();
546 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
547 "google.protobuf.compiler.Version.suffix");
548 target = stream->WriteStringMaybeAliased(4, _s, target);
549 }
550
551 if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
552 target =
553 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
554 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
555 }
556 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.Version)
557 return target;
558 }
559
560 #if defined(PROTOBUF_CUSTOM_VTABLE)
561 ::size_t Version::ByteSizeLong(const MessageLite& base) {
562 const Version& this_ = static_cast<const Version&>(base);
563 #else // PROTOBUF_CUSTOM_VTABLE
564 ::size_t Version::ByteSizeLong() const {
565 const Version& this_ = *this;
566 #endif // PROTOBUF_CUSTOM_VTABLE
567 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.Version)
568 ::size_t total_size = 0;
569
570 ::uint32_t cached_has_bits = 0;
571 // Prevent compiler warnings about cached_has_bits being unused
572 (void)cached_has_bits;
573
574 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
575 cached_has_bits = this_._impl_._has_bits_[0];
576 if (cached_has_bits & 0x0000000fu) {
577 // optional string suffix = 4;
578 if (cached_has_bits & 0x00000001u) {
579 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
580 this_._internal_suffix());
581 }
582 // optional int32 major = 1;
583 if (cached_has_bits & 0x00000002u) {
584 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
585 this_._internal_major());
586 }
587 // optional int32 minor = 2;
588 if (cached_has_bits & 0x00000004u) {
589 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
590 this_._internal_minor());
591 }
592 // optional int32 patch = 3;
593 if (cached_has_bits & 0x00000008u) {
594 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
595 this_._internal_patch());
596 }
597 }
598 return this_.MaybeComputeUnknownFieldsSize(total_size,
599 &this_._impl_._cached_size_);
600 }
601
602 void Version::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
603 auto* const _this = static_cast<Version*>(&to_msg);
604 auto& from = static_cast<const Version&>(from_msg);
605 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.compiler.Version)
606 ABSL_DCHECK_NE(&from, _this);
607 ::uint32_t cached_has_bits = 0;
608 (void) cached_has_bits;
609
610 cached_has_bits = from._impl_._has_bits_[0];
611 if (cached_has_bits & 0x0000000fu) {
612 if (cached_has_bits & 0x00000001u) {
613 _this->_internal_set_suffix(from._internal_suffix());
614 }
615 if (cached_has_bits & 0x00000002u) {
616 _this->_impl_.major_ = from._impl_.major_;
617 }
618 if (cached_has_bits & 0x00000004u) {
619 _this->_impl_.minor_ = from._impl_.minor_;
620 }
621 if (cached_has_bits & 0x00000008u) {
622 _this->_impl_.patch_ = from._impl_.patch_;
623 }
624 }
625 _this->_impl_._has_bits_[0] |= cached_has_bits;
626 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
627 }
628
629 void Version::CopyFrom(const Version& from) {
630 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.compiler.Version)
631 if (&from == this) return;
632 Clear();
633 MergeFrom(from);
634 }
635
636
637 void Version::InternalSwap(Version* PROTOBUF_RESTRICT other) {
638 using std::swap;
639 auto* arena = GetArena();
640 ABSL_DCHECK_EQ(arena, other->GetArena());
641 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
642 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
643 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.suffix_, &other->_impl_.suffix_, arena);
644 ::google::protobuf::internal::memswap<
645 PROTOBUF_FIELD_OFFSET(Version, _impl_.patch_)
646 + sizeof(Version::_impl_.patch_)
647 - PROTOBUF_FIELD_OFFSET(Version, _impl_.major_)>(
648 reinterpret_cast<char*>(&_impl_.major_),
649 reinterpret_cast<char*>(&other->_impl_.major_));
650 }
651
652 ::google::protobuf::Metadata Version::GetMetadata() const {
653 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
654 }
655 // ===================================================================
656
657 class CodeGeneratorRequest::_Internal {
658 public:
659 using HasBits =
660 decltype(std::declval<CodeGeneratorRequest>()._impl_._has_bits_);
661 static constexpr ::int32_t kHasBitsOffset =
662 8 * PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_._has_bits_);
663 };
664
665 void CodeGeneratorRequest::clear_proto_file() {
666 ::google::protobuf::internal::TSanWrite(&_impl_);
667 _impl_.proto_file_.Clear();
668 }
669 void CodeGeneratorRequest::clear_source_file_descriptors() {
670 ::google::protobuf::internal::TSanWrite(&_impl_);
671 _impl_.source_file_descriptors_.Clear();
672 }
673 CodeGeneratorRequest::CodeGeneratorRequest(::google::protobuf::Arena* arena)
674 #if defined(PROTOBUF_CUSTOM_VTABLE)
675 : ::google::protobuf::Message(arena, _class_data_.base()) {
676 #else // PROTOBUF_CUSTOM_VTABLE
677 : ::google::protobuf::Message(arena) {
678 #endif // PROTOBUF_CUSTOM_VTABLE
679 SharedCtor(arena);
680 // @@protoc_insertion_point(arena_constructor:google.protobuf.compiler.CodeGeneratorRequest)
681 }
682 inline PROTOBUF_NDEBUG_INLINE CodeGeneratorRequest::Impl_::Impl_(
683 ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
684 const Impl_& from, const ::google::protobuf::compiler::CodeGeneratorRequest& from_msg)
685 : _has_bits_{from._has_bits_},
686 _cached_size_{0},
687 file_to_generate_{visibility, arena, from.file_to_generate_},
688 proto_file_{visibility, arena, from.proto_file_},
689 source_file_descriptors_{visibility, arena, from.source_file_descriptors_},
690 parameter_(arena, from.parameter_) {}
691
692 CodeGeneratorRequest::CodeGeneratorRequest(
693 ::google::protobuf::Arena* arena,
694 const CodeGeneratorRequest& from)
695 #if defined(PROTOBUF_CUSTOM_VTABLE)
696 : ::google::protobuf::Message(arena, _class_data_.base()) {
697 #else // PROTOBUF_CUSTOM_VTABLE
698 : ::google::protobuf::Message(arena) {
699 #endif // PROTOBUF_CUSTOM_VTABLE
700 CodeGeneratorRequest* const _this = this;
701 (void)_this;
702 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
703 from._internal_metadata_);
704 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
705 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
706 _impl_.compiler_version_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::google::protobuf::compiler::Version>(
707 arena, *from._impl_.compiler_version_)
708 : nullptr;
709
710 // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGeneratorRequest)
711 }
712 inline PROTOBUF_NDEBUG_INLINE CodeGeneratorRequest::Impl_::Impl_(
713 ::google::protobuf::internal::InternalVisibility visibility,
714 ::google::protobuf::Arena* arena)
715 : _cached_size_{0},
716 file_to_generate_{visibility, arena},
717 proto_file_{visibility, arena},
718 source_file_descriptors_{visibility, arena},
719 parameter_(arena) {}
720
721 inline void CodeGeneratorRequest::SharedCtor(::_pb::Arena* arena) {
722 new (&_impl_) Impl_(internal_visibility(), arena);
723 _impl_.compiler_version_ = {};
724 }
725 CodeGeneratorRequest::~CodeGeneratorRequest() {
726 // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorRequest)
727 SharedDtor(*this);
728 }
729 inline void CodeGeneratorRequest::SharedDtor(MessageLite& self) {
730 CodeGeneratorRequest& this_ = static_cast<CodeGeneratorRequest&>(self);
731 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
732 ABSL_DCHECK(this_.GetArena() == nullptr);
733 this_._impl_.parameter_.Destroy();
734 delete this_._impl_.compiler_version_;
735 this_._impl_.~Impl_();
736 }
737
738 inline void* CodeGeneratorRequest::PlacementNew_(const void*, void* mem,
739 ::google::protobuf::Arena* arena) {
740 return ::new (mem) CodeGeneratorRequest(arena);
741 }
742 constexpr auto CodeGeneratorRequest::InternalNewImpl_() {
743 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
744 PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.file_to_generate_) +
745 decltype(CodeGeneratorRequest::_impl_.file_to_generate_)::
746 InternalGetArenaOffset(
747 ::google::protobuf::Message::internal_visibility()),
748 PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.proto_file_) +
749 decltype(CodeGeneratorRequest::_impl_.proto_file_)::
750 InternalGetArenaOffset(
751 ::google::protobuf::Message::internal_visibility()),
752 PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.source_file_descriptors_) +
753 decltype(CodeGeneratorRequest::_impl_.source_file_descriptors_)::
754 InternalGetArenaOffset(
755 ::google::protobuf::Message::internal_visibility()),
756 });
757 if (arena_bits.has_value()) {
758 return ::google::protobuf::internal::MessageCreator::CopyInit(
759 sizeof(CodeGeneratorRequest), alignof(CodeGeneratorRequest), *arena_bits);
760 } else {
761 return ::google::protobuf::internal::MessageCreator(&CodeGeneratorRequest::PlacementNew_,
762 sizeof(CodeGeneratorRequest),
763 alignof(CodeGeneratorRequest));
764 }
765 }
766 PROTOBUF_CONSTINIT
767 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
768 const ::google::protobuf::internal::ClassDataFull CodeGeneratorRequest::_class_data_ = {
769 ::google::protobuf::internal::ClassData{
770 &_CodeGeneratorRequest_default_instance_._instance,
771 &_table_.header,
772 nullptr, // OnDemandRegisterArenaDtor
773 CodeGeneratorRequest::IsInitializedImpl,
774 &CodeGeneratorRequest::MergeImpl,
775 ::google::protobuf::Message::GetNewImpl<CodeGeneratorRequest>(),
776 #if defined(PROTOBUF_CUSTOM_VTABLE)
777 &CodeGeneratorRequest::SharedDtor,
778 ::google::protobuf::Message::GetClearImpl<CodeGeneratorRequest>(), &CodeGeneratorRequest::ByteSizeLong,
779 &CodeGeneratorRequest::_InternalSerialize,
780 #endif // PROTOBUF_CUSTOM_VTABLE
781 PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_._cached_size_),
782 false,
783 },
784 &CodeGeneratorRequest::kDescriptorMethods,
785 &descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto,
786 nullptr, // tracker
787 };
788 const ::google::protobuf::internal::ClassData* CodeGeneratorRequest::GetClassData() const {
789 ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
790 ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
791 return _class_data_.base();
792 }
793 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
794 const ::_pbi::TcParseTable<3, 5, 3, 79, 2> CodeGeneratorRequest::_table_ = {
795 {
796 PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_._has_bits_),
797 0, // no _extensions_
798 17, 56, // max_field_number, fast_idx_mask
799 offsetof(decltype(_table_), field_lookup_table),
800 4294885368, // skipmap
801 offsetof(decltype(_table_), field_entries),
802 5, // num_field_entries
803 3, // num_aux_entries
804 offsetof(decltype(_table_), aux_entries),
805 _class_data_.base(),
806 nullptr, // post_loop_handler
807 ::_pbi::TcParser::GenericFallback, // fallback
808 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
809 ::_pbi::TcParser::GetTable<::google::protobuf::compiler::CodeGeneratorRequest>(), // to_prefetch
810 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
811 }, {{
812 {::_pbi::TcParser::MiniParse, {}},
813 // repeated string file_to_generate = 1;
814 {::_pbi::TcParser::FastSR1,
815 {10, 63, 0, PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.file_to_generate_)}},
816 // optional string parameter = 2;
817 {::_pbi::TcParser::FastSS1,
818 {18, 0, 0, PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.parameter_)}},
819 // optional .google.protobuf.compiler.Version compiler_version = 3;
820 {::_pbi::TcParser::FastMtS1,
821 {26, 1, 0, PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.compiler_version_)}},
822 {::_pbi::TcParser::MiniParse, {}},
823 {::_pbi::TcParser::MiniParse, {}},
824 {::_pbi::TcParser::MiniParse, {}},
825 // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
826 {::_pbi::TcParser::FastMtR1,
827 {122, 63, 1, PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.proto_file_)}},
828 }}, {{
829 65535, 65535
830 }}, {{
831 // repeated string file_to_generate = 1;
832 {PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.file_to_generate_), -1, 0,
833 (0 | ::_fl::kFcRepeated | ::_fl::kRawString | ::_fl::kRepSString)},
834 // optional string parameter = 2;
835 {PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.parameter_), _Internal::kHasBitsOffset + 0, 0,
836 (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)},
837 // optional .google.protobuf.compiler.Version compiler_version = 3;
838 {PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.compiler_version_), _Internal::kHasBitsOffset + 1, 0,
839 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
840 // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
841 {PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.proto_file_), -1, 1,
842 (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
843 // repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17;
844 {PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.source_file_descriptors_), -1, 2,
845 (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
846 }}, {{
847 {::_pbi::TcParser::GetTable<::google::protobuf::compiler::Version>()},
848 {::_pbi::TcParser::GetTable<::google::protobuf::FileDescriptorProto>()},
849 {::_pbi::TcParser::GetTable<::google::protobuf::FileDescriptorProto>()},
850 }}, {{
851 "\55\20\11\0\0\0\0\0"
852 "google.protobuf.compiler.CodeGeneratorRequest"
853 "file_to_generate"
854 "parameter"
855 }},
856 };
857
858 PROTOBUF_NOINLINE void CodeGeneratorRequest::Clear() {
859 // @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.CodeGeneratorRequest)
860 ::google::protobuf::internal::TSanWrite(&_impl_);
861 ::uint32_t cached_has_bits = 0;
862 // Prevent compiler warnings about cached_has_bits being unused
863 (void) cached_has_bits;
864
865 _impl_.file_to_generate_.Clear();
866 _impl_.proto_file_.Clear();
867 _impl_.source_file_descriptors_.Clear();
868 cached_has_bits = _impl_._has_bits_[0];
869 if (cached_has_bits & 0x00000003u) {
870 if (cached_has_bits & 0x00000001u) {
871 _impl_.parameter_.ClearNonDefaultToEmpty();
872 }
873 if (cached_has_bits & 0x00000002u) {
874 ABSL_DCHECK(_impl_.compiler_version_ != nullptr);
875 _impl_.compiler_version_->Clear();
876 }
877 }
878 _impl_._has_bits_.Clear();
879 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
880 }
881
882 #if defined(PROTOBUF_CUSTOM_VTABLE)
883 ::uint8_t* CodeGeneratorRequest::_InternalSerialize(
884 const MessageLite& base, ::uint8_t* target,
885 ::google::protobuf::io::EpsCopyOutputStream* stream) {
886 const CodeGeneratorRequest& this_ = static_cast<const CodeGeneratorRequest&>(base);
887 #else // PROTOBUF_CUSTOM_VTABLE
888 ::uint8_t* CodeGeneratorRequest::_InternalSerialize(
889 ::uint8_t* target,
890 ::google::protobuf::io::EpsCopyOutputStream* stream) const {
891 const CodeGeneratorRequest& this_ = *this;
892 #endif // PROTOBUF_CUSTOM_VTABLE
893 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.CodeGeneratorRequest)
894 ::uint32_t cached_has_bits = 0;
895 (void)cached_has_bits;
896
897 // repeated string file_to_generate = 1;
898 for (int i = 0, n = this_._internal_file_to_generate_size(); i < n; ++i) {
899 const auto& s = this_._internal_file_to_generate().Get(i);
900 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(s.data(), static_cast<int>(s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
901 "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate");
902 target = stream->WriteString(1, s, target);
903 }
904
905 cached_has_bits = this_._impl_._has_bits_[0];
906 // optional string parameter = 2;
907 if (cached_has_bits & 0x00000001u) {
908 const std::string& _s = this_._internal_parameter();
909 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
910 "google.protobuf.compiler.CodeGeneratorRequest.parameter");
911 target = stream->WriteStringMaybeAliased(2, _s, target);
912 }
913
914 // optional .google.protobuf.compiler.Version compiler_version = 3;
915 if (cached_has_bits & 0x00000002u) {
916 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
917 3, *this_._impl_.compiler_version_, this_._impl_.compiler_version_->GetCachedSize(), target,
918 stream);
919 }
920
921 // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
922 for (unsigned i = 0, n = static_cast<unsigned>(
923 this_._internal_proto_file_size());
924 i < n; i++) {
925 const auto& repfield = this_._internal_proto_file().Get(i);
926 target =
927 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
928 15, repfield, repfield.GetCachedSize(),
929 target, stream);
930 }
931
932 // repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17;
933 for (unsigned i = 0, n = static_cast<unsigned>(
934 this_._internal_source_file_descriptors_size());
935 i < n; i++) {
936 const auto& repfield = this_._internal_source_file_descriptors().Get(i);
937 target =
938 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
939 17, repfield, repfield.GetCachedSize(),
940 target, stream);
941 }
942
943 if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
944 target =
945 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
946 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
947 }
948 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.CodeGeneratorRequest)
949 return target;
950 }
951
952 #if defined(PROTOBUF_CUSTOM_VTABLE)
953 ::size_t CodeGeneratorRequest::ByteSizeLong(const MessageLite& base) {
954 const CodeGeneratorRequest& this_ = static_cast<const CodeGeneratorRequest&>(base);
955 #else // PROTOBUF_CUSTOM_VTABLE
956 ::size_t CodeGeneratorRequest::ByteSizeLong() const {
957 const CodeGeneratorRequest& this_ = *this;
958 #endif // PROTOBUF_CUSTOM_VTABLE
959 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.CodeGeneratorRequest)
960 ::size_t total_size = 0;
961
962 ::uint32_t cached_has_bits = 0;
963 // Prevent compiler warnings about cached_has_bits being unused
964 (void)cached_has_bits;
965
966 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
967 {
968 // repeated string file_to_generate = 1;
969 {
970 total_size +=
971 1 * ::google::protobuf::internal::FromIntSize(this_._internal_file_to_generate().size());
972 for (int i = 0, n = this_._internal_file_to_generate().size(); i < n; ++i) {
973 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
974 this_._internal_file_to_generate().Get(i));
975 }
976 }
977 // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
978 {
979 total_size += 1UL * this_._internal_proto_file_size();
980 for (const auto& msg : this_._internal_proto_file()) {
981 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
982 }
983 }
984 // repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17;
985 {
986 total_size += 2UL * this_._internal_source_file_descriptors_size();
987 for (const auto& msg : this_._internal_source_file_descriptors()) {
988 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
989 }
990 }
991 }
992 cached_has_bits = this_._impl_._has_bits_[0];
993 if (cached_has_bits & 0x00000003u) {
994 // optional string parameter = 2;
995 if (cached_has_bits & 0x00000001u) {
996 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
997 this_._internal_parameter());
998 }
999 // optional .google.protobuf.compiler.Version compiler_version = 3;
1000 if (cached_has_bits & 0x00000002u) {
1001 total_size += 1 +
1002 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.compiler_version_);
1003 }
1004 }
1005 return this_.MaybeComputeUnknownFieldsSize(total_size,
1006 &this_._impl_._cached_size_);
1007 }
1008
1009 void CodeGeneratorRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1010 auto* const _this = static_cast<CodeGeneratorRequest*>(&to_msg);
1011 auto& from = static_cast<const CodeGeneratorRequest&>(from_msg);
1012 ::google::protobuf::Arena* arena = _this->GetArena();
1013 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.compiler.CodeGeneratorRequest)
1014 ABSL_DCHECK_NE(&from, _this);
1015 ::uint32_t cached_has_bits = 0;
1016 (void) cached_has_bits;
1017
1018 _this->_internal_mutable_file_to_generate()->MergeFrom(from._internal_file_to_generate());
1019 _this->_internal_mutable_proto_file()->MergeFrom(
1020 from._internal_proto_file());
1021 _this->_internal_mutable_source_file_descriptors()->MergeFrom(
1022 from._internal_source_file_descriptors());
1023 cached_has_bits = from._impl_._has_bits_[0];
1024 if (cached_has_bits & 0x00000003u) {
1025 if (cached_has_bits & 0x00000001u) {
1026 _this->_internal_set_parameter(from._internal_parameter());
1027 }
1028 if (cached_has_bits & 0x00000002u) {
1029 ABSL_DCHECK(from._impl_.compiler_version_ != nullptr);
1030 if (_this->_impl_.compiler_version_ == nullptr) {
1031 _this->_impl_.compiler_version_ =
1032 ::google::protobuf::Message::CopyConstruct<::google::protobuf::compiler::Version>(arena, *from._impl_.compiler_version_);
1033 } else {
1034 _this->_impl_.compiler_version_->MergeFrom(*from._impl_.compiler_version_);
1035 }
1036 }
1037 }
1038 _this->_impl_._has_bits_[0] |= cached_has_bits;
1039 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1040 }
1041
1042 void CodeGeneratorRequest::CopyFrom(const CodeGeneratorRequest& from) {
1043 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.compiler.CodeGeneratorRequest)
1044 if (&from == this) return;
1045 Clear();
1046 MergeFrom(from);
1047 }
1048
1049 PROTOBUF_NOINLINE bool CodeGeneratorRequest::IsInitializedImpl(
1050 const MessageLite& msg) {
1051 auto& this_ = static_cast<const CodeGeneratorRequest&>(msg);
1052 if (!::google::protobuf::internal::AllAreInitialized(this_._internal_proto_file()))
1053 return false;
1054 if (!::google::protobuf::internal::AllAreInitialized(this_._internal_source_file_descriptors()))
1055 return false;
1056 return true;
1057 }
1058
1059 void CodeGeneratorRequest::InternalSwap(CodeGeneratorRequest* PROTOBUF_RESTRICT other) {
1060 using std::swap;
1061 auto* arena = GetArena();
1062 ABSL_DCHECK_EQ(arena, other->GetArena());
1063 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1064 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1065 _impl_.file_to_generate_.InternalSwap(&other->_impl_.file_to_generate_);
1066 _impl_.proto_file_.InternalSwap(&other->_impl_.proto_file_);
1067 _impl_.source_file_descriptors_.InternalSwap(&other->_impl_.source_file_descriptors_);
1068 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.parameter_, &other->_impl_.parameter_, arena);
1069 swap(_impl_.compiler_version_, other->_impl_.compiler_version_);
1070 }
1071
1072 ::google::protobuf::Metadata CodeGeneratorRequest::GetMetadata() const {
1073 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1074 }
1075 // ===================================================================
1076
1077 class CodeGeneratorResponse_File::_Internal {
1078 public:
1079 using HasBits =
1080 decltype(std::declval<CodeGeneratorResponse_File>()._impl_._has_bits_);
1081 static constexpr ::int32_t kHasBitsOffset =
1082 8 * PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_._has_bits_);
1083 };
1084
1085 void CodeGeneratorResponse_File::clear_generated_code_info() {
1086 ::google::protobuf::internal::TSanWrite(&_impl_);
1087 if (_impl_.generated_code_info_ != nullptr) _impl_.generated_code_info_->Clear();
1088 _impl_._has_bits_[0] &= ~0x00000008u;
1089 }
1090 CodeGeneratorResponse_File::CodeGeneratorResponse_File(::google::protobuf::Arena* arena)
1091 #if defined(PROTOBUF_CUSTOM_VTABLE)
1092 : ::google::protobuf::Message(arena, _class_data_.base()) {
1093 #else // PROTOBUF_CUSTOM_VTABLE
1094 : ::google::protobuf::Message(arena) {
1095 #endif // PROTOBUF_CUSTOM_VTABLE
1096 SharedCtor(arena);
1097 // @@protoc_insertion_point(arena_constructor:google.protobuf.compiler.CodeGeneratorResponse.File)
1098 }
1099 inline PROTOBUF_NDEBUG_INLINE CodeGeneratorResponse_File::Impl_::Impl_(
1100 ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
1101 const Impl_& from, const ::google::protobuf::compiler::CodeGeneratorResponse_File& from_msg)
1102 : _has_bits_{from._has_bits_},
1103 _cached_size_{0},
1104 name_(arena, from.name_),
1105 insertion_point_(arena, from.insertion_point_),
1106 content_(arena, from.content_) {}
1107
1108 CodeGeneratorResponse_File::CodeGeneratorResponse_File(
1109 ::google::protobuf::Arena* arena,
1110 const CodeGeneratorResponse_File& from)
1111 #if defined(PROTOBUF_CUSTOM_VTABLE)
1112 : ::google::protobuf::Message(arena, _class_data_.base()) {
1113 #else // PROTOBUF_CUSTOM_VTABLE
1114 : ::google::protobuf::Message(arena) {
1115 #endif // PROTOBUF_CUSTOM_VTABLE
1116 CodeGeneratorResponse_File* const _this = this;
1117 (void)_this;
1118 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1119 from._internal_metadata_);
1120 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1121 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
1122 _impl_.generated_code_info_ = (cached_has_bits & 0x00000008u) ? ::google::protobuf::Message::CopyConstruct<::google::protobuf::GeneratedCodeInfo>(
1123 arena, *from._impl_.generated_code_info_)
1124 : nullptr;
1125
1126 // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGeneratorResponse.File)
1127 }
1128 inline PROTOBUF_NDEBUG_INLINE CodeGeneratorResponse_File::Impl_::Impl_(
1129 ::google::protobuf::internal::InternalVisibility visibility,
1130 ::google::protobuf::Arena* arena)
1131 : _cached_size_{0},
1132 name_(arena),
1133 insertion_point_(arena),
1134 content_(arena) {}
1135
1136 inline void CodeGeneratorResponse_File::SharedCtor(::_pb::Arena* arena) {
1137 new (&_impl_) Impl_(internal_visibility(), arena);
1138 _impl_.generated_code_info_ = {};
1139 }
1140 CodeGeneratorResponse_File::~CodeGeneratorResponse_File() {
1141 // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorResponse.File)
1142 SharedDtor(*this);
1143 }
1144 inline void CodeGeneratorResponse_File::SharedDtor(MessageLite& self) {
1145 CodeGeneratorResponse_File& this_ = static_cast<CodeGeneratorResponse_File&>(self);
1146 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1147 ABSL_DCHECK(this_.GetArena() == nullptr);
1148 this_._impl_.name_.Destroy();
1149 this_._impl_.insertion_point_.Destroy();
1150 this_._impl_.content_.Destroy();
1151 delete this_._impl_.generated_code_info_;
1152 this_._impl_.~Impl_();
1153 }
1154
1155 inline void* CodeGeneratorResponse_File::PlacementNew_(const void*, void* mem,
1156 ::google::protobuf::Arena* arena) {
1157 return ::new (mem) CodeGeneratorResponse_File(arena);
1158 }
1159 constexpr auto CodeGeneratorResponse_File::InternalNewImpl_() {
1160 return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(CodeGeneratorResponse_File),
1161 alignof(CodeGeneratorResponse_File));
1162 }
1163 PROTOBUF_CONSTINIT
1164 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1165 const ::google::protobuf::internal::ClassDataFull CodeGeneratorResponse_File::_class_data_ = {
1166 ::google::protobuf::internal::ClassData{
1167 &_CodeGeneratorResponse_File_default_instance_._instance,
1168 &_table_.header,
1169 nullptr, // OnDemandRegisterArenaDtor
1170 nullptr, // IsInitialized
1171 &CodeGeneratorResponse_File::MergeImpl,
1172 ::google::protobuf::Message::GetNewImpl<CodeGeneratorResponse_File>(),
1173 #if defined(PROTOBUF_CUSTOM_VTABLE)
1174 &CodeGeneratorResponse_File::SharedDtor,
1175 ::google::protobuf::Message::GetClearImpl<CodeGeneratorResponse_File>(), &CodeGeneratorResponse_File::ByteSizeLong,
1176 &CodeGeneratorResponse_File::_InternalSerialize,
1177 #endif // PROTOBUF_CUSTOM_VTABLE
1178 PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_._cached_size_),
1179 false,
1180 },
1181 &CodeGeneratorResponse_File::kDescriptorMethods,
1182 &descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto,
1183 nullptr, // tracker
1184 };
1185 const ::google::protobuf::internal::ClassData* CodeGeneratorResponse_File::GetClassData() const {
1186 ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
1187 ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
1188 return _class_data_.base();
1189 }
1190 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1191 const ::_pbi::TcParseTable<2, 4, 1, 86, 2> CodeGeneratorResponse_File::_table_ = {
1192 {
1193 PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_._has_bits_),
1194 0, // no _extensions_
1195 16, 24, // max_field_number, fast_idx_mask
1196 offsetof(decltype(_table_), field_lookup_table),
1197 4294918140, // skipmap
1198 offsetof(decltype(_table_), field_entries),
1199 4, // num_field_entries
1200 1, // num_aux_entries
1201 offsetof(decltype(_table_), aux_entries),
1202 _class_data_.base(),
1203 nullptr, // post_loop_handler
1204 ::_pbi::TcParser::GenericFallback, // fallback
1205 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1206 ::_pbi::TcParser::GetTable<::google::protobuf::compiler::CodeGeneratorResponse_File>(), // to_prefetch
1207 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1208 }, {{
1209 // optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16;
1210 {::_pbi::TcParser::FastMtS2,
1211 {386, 3, 0, PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_.generated_code_info_)}},
1212 // optional string name = 1;
1213 {::_pbi::TcParser::FastSS1,
1214 {10, 0, 0, PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_.name_)}},
1215 // optional string insertion_point = 2;
1216 {::_pbi::TcParser::FastSS1,
1217 {18, 1, 0, PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_.insertion_point_)}},
1218 // optional string content = 15;
1219 {::_pbi::TcParser::FastSS1,
1220 {122, 2, 0, PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_.content_)}},
1221 }}, {{
1222 65535, 65535
1223 }}, {{
1224 // optional string name = 1;
1225 {PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_.name_), _Internal::kHasBitsOffset + 0, 0,
1226 (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)},
1227 // optional string insertion_point = 2;
1228 {PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_.insertion_point_), _Internal::kHasBitsOffset + 1, 0,
1229 (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)},
1230 // optional string content = 15;
1231 {PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_.content_), _Internal::kHasBitsOffset + 2, 0,
1232 (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)},
1233 // optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16;
1234 {PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_.generated_code_info_), _Internal::kHasBitsOffset + 3, 0,
1235 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1236 }}, {{
1237 {::_pbi::TcParser::GetTable<::google::protobuf::GeneratedCodeInfo>()},
1238 }}, {{
1239 "\63\4\17\7\0\0\0\0"
1240 "google.protobuf.compiler.CodeGeneratorResponse.File"
1241 "name"
1242 "insertion_point"
1243 "content"
1244 }},
1245 };
1246
1247 PROTOBUF_NOINLINE void CodeGeneratorResponse_File::Clear() {
1248 // @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.CodeGeneratorResponse.File)
1249 ::google::protobuf::internal::TSanWrite(&_impl_);
1250 ::uint32_t cached_has_bits = 0;
1251 // Prevent compiler warnings about cached_has_bits being unused
1252 (void) cached_has_bits;
1253
1254 cached_has_bits = _impl_._has_bits_[0];
1255 if (cached_has_bits & 0x0000000fu) {
1256 if (cached_has_bits & 0x00000001u) {
1257 _impl_.name_.ClearNonDefaultToEmpty();
1258 }
1259 if (cached_has_bits & 0x00000002u) {
1260 _impl_.insertion_point_.ClearNonDefaultToEmpty();
1261 }
1262 if (cached_has_bits & 0x00000004u) {
1263 _impl_.content_.ClearNonDefaultToEmpty();
1264 }
1265 if (cached_has_bits & 0x00000008u) {
1266 ABSL_DCHECK(_impl_.generated_code_info_ != nullptr);
1267 _impl_.generated_code_info_->Clear();
1268 }
1269 }
1270 _impl_._has_bits_.Clear();
1271 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1272 }
1273
1274 #if defined(PROTOBUF_CUSTOM_VTABLE)
1275 ::uint8_t* CodeGeneratorResponse_File::_InternalSerialize(
1276 const MessageLite& base, ::uint8_t* target,
1277 ::google::protobuf::io::EpsCopyOutputStream* stream) {
1278 const CodeGeneratorResponse_File& this_ = static_cast<const CodeGeneratorResponse_File&>(base);
1279 #else // PROTOBUF_CUSTOM_VTABLE
1280 ::uint8_t* CodeGeneratorResponse_File::_InternalSerialize(
1281 ::uint8_t* target,
1282 ::google::protobuf::io::EpsCopyOutputStream* stream) const {
1283 const CodeGeneratorResponse_File& this_ = *this;
1284 #endif // PROTOBUF_CUSTOM_VTABLE
1285 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.CodeGeneratorResponse.File)
1286 ::uint32_t cached_has_bits = 0;
1287 (void)cached_has_bits;
1288
1289 cached_has_bits = this_._impl_._has_bits_[0];
1290 // optional string name = 1;
1291 if (cached_has_bits & 0x00000001u) {
1292 const std::string& _s = this_._internal_name();
1293 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
1294 "google.protobuf.compiler.CodeGeneratorResponse.File.name");
1295 target = stream->WriteStringMaybeAliased(1, _s, target);
1296 }
1297
1298 // optional string insertion_point = 2;
1299 if (cached_has_bits & 0x00000002u) {
1300 const std::string& _s = this_._internal_insertion_point();
1301 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
1302 "google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point");
1303 target = stream->WriteStringMaybeAliased(2, _s, target);
1304 }
1305
1306 // optional string content = 15;
1307 if (cached_has_bits & 0x00000004u) {
1308 const std::string& _s = this_._internal_content();
1309 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
1310 "google.protobuf.compiler.CodeGeneratorResponse.File.content");
1311 target = stream->WriteStringMaybeAliased(15, _s, target);
1312 }
1313
1314 // optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16;
1315 if (cached_has_bits & 0x00000008u) {
1316 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1317 16, *this_._impl_.generated_code_info_, this_._impl_.generated_code_info_->GetCachedSize(), target,
1318 stream);
1319 }
1320
1321 if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1322 target =
1323 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1324 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1325 }
1326 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.CodeGeneratorResponse.File)
1327 return target;
1328 }
1329
1330 #if defined(PROTOBUF_CUSTOM_VTABLE)
1331 ::size_t CodeGeneratorResponse_File::ByteSizeLong(const MessageLite& base) {
1332 const CodeGeneratorResponse_File& this_ = static_cast<const CodeGeneratorResponse_File&>(base);
1333 #else // PROTOBUF_CUSTOM_VTABLE
1334 ::size_t CodeGeneratorResponse_File::ByteSizeLong() const {
1335 const CodeGeneratorResponse_File& this_ = *this;
1336 #endif // PROTOBUF_CUSTOM_VTABLE
1337 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.CodeGeneratorResponse.File)
1338 ::size_t total_size = 0;
1339
1340 ::uint32_t cached_has_bits = 0;
1341 // Prevent compiler warnings about cached_has_bits being unused
1342 (void)cached_has_bits;
1343
1344 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1345 cached_has_bits = this_._impl_._has_bits_[0];
1346 if (cached_has_bits & 0x0000000fu) {
1347 // optional string name = 1;
1348 if (cached_has_bits & 0x00000001u) {
1349 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
1350 this_._internal_name());
1351 }
1352 // optional string insertion_point = 2;
1353 if (cached_has_bits & 0x00000002u) {
1354 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
1355 this_._internal_insertion_point());
1356 }
1357 // optional string content = 15;
1358 if (cached_has_bits & 0x00000004u) {
1359 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
1360 this_._internal_content());
1361 }
1362 // optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16;
1363 if (cached_has_bits & 0x00000008u) {
1364 total_size += 2 +
1365 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.generated_code_info_);
1366 }
1367 }
1368 return this_.MaybeComputeUnknownFieldsSize(total_size,
1369 &this_._impl_._cached_size_);
1370 }
1371
1372 void CodeGeneratorResponse_File::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1373 auto* const _this = static_cast<CodeGeneratorResponse_File*>(&to_msg);
1374 auto& from = static_cast<const CodeGeneratorResponse_File&>(from_msg);
1375 ::google::protobuf::Arena* arena = _this->GetArena();
1376 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.compiler.CodeGeneratorResponse.File)
1377 ABSL_DCHECK_NE(&from, _this);
1378 ::uint32_t cached_has_bits = 0;
1379 (void) cached_has_bits;
1380
1381 cached_has_bits = from._impl_._has_bits_[0];
1382 if (cached_has_bits & 0x0000000fu) {
1383 if (cached_has_bits & 0x00000001u) {
1384 _this->_internal_set_name(from._internal_name());
1385 }
1386 if (cached_has_bits & 0x00000002u) {
1387 _this->_internal_set_insertion_point(from._internal_insertion_point());
1388 }
1389 if (cached_has_bits & 0x00000004u) {
1390 _this->_internal_set_content(from._internal_content());
1391 }
1392 if (cached_has_bits & 0x00000008u) {
1393 ABSL_DCHECK(from._impl_.generated_code_info_ != nullptr);
1394 if (_this->_impl_.generated_code_info_ == nullptr) {
1395 _this->_impl_.generated_code_info_ =
1396 ::google::protobuf::Message::CopyConstruct<::google::protobuf::GeneratedCodeInfo>(arena, *from._impl_.generated_code_info_);
1397 } else {
1398 _this->_impl_.generated_code_info_->MergeFrom(*from._impl_.generated_code_info_);
1399 }
1400 }
1401 }
1402 _this->_impl_._has_bits_[0] |= cached_has_bits;
1403 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1404 }
1405
1406 void CodeGeneratorResponse_File::CopyFrom(const CodeGeneratorResponse_File& from) {
1407 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.compiler.CodeGeneratorResponse.File)
1408 if (&from == this) return;
1409 Clear();
1410 MergeFrom(from);
1411 }
1412
1413
1414 void CodeGeneratorResponse_File::InternalSwap(CodeGeneratorResponse_File* PROTOBUF_RESTRICT other) {
1415 using std::swap;
1416 auto* arena = GetArena();
1417 ABSL_DCHECK_EQ(arena, other->GetArena());
1418 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1419 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1420 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena);
1421 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.insertion_point_, &other->_impl_.insertion_point_, arena);
1422 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.content_, &other->_impl_.content_, arena);
1423 swap(_impl_.generated_code_info_, other->_impl_.generated_code_info_);
1424 }
1425
1426 ::google::protobuf::Metadata CodeGeneratorResponse_File::GetMetadata() const {
1427 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1428 }
1429 // ===================================================================
1430
1431 class CodeGeneratorResponse::_Internal {
1432 public:
1433 using HasBits =
1434 decltype(std::declval<CodeGeneratorResponse>()._impl_._has_bits_);
1435 static constexpr ::int32_t kHasBitsOffset =
1436 8 * PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_._has_bits_);
1437 };
1438
1439 CodeGeneratorResponse::CodeGeneratorResponse(::google::protobuf::Arena* arena)
1440 #if defined(PROTOBUF_CUSTOM_VTABLE)
1441 : ::google::protobuf::Message(arena, _class_data_.base()) {
1442 #else // PROTOBUF_CUSTOM_VTABLE
1443 : ::google::protobuf::Message(arena) {
1444 #endif // PROTOBUF_CUSTOM_VTABLE
1445 SharedCtor(arena);
1446 // @@protoc_insertion_point(arena_constructor:google.protobuf.compiler.CodeGeneratorResponse)
1447 }
1448 inline PROTOBUF_NDEBUG_INLINE CodeGeneratorResponse::Impl_::Impl_(
1449 ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
1450 const Impl_& from, const ::google::protobuf::compiler::CodeGeneratorResponse& from_msg)
1451 : _has_bits_{from._has_bits_},
1452 _cached_size_{0},
1453 file_{visibility, arena, from.file_},
1454 error_(arena, from.error_) {}
1455
1456 CodeGeneratorResponse::CodeGeneratorResponse(
1457 ::google::protobuf::Arena* arena,
1458 const CodeGeneratorResponse& from)
1459 #if defined(PROTOBUF_CUSTOM_VTABLE)
1460 : ::google::protobuf::Message(arena, _class_data_.base()) {
1461 #else // PROTOBUF_CUSTOM_VTABLE
1462 : ::google::protobuf::Message(arena) {
1463 #endif // PROTOBUF_CUSTOM_VTABLE
1464 CodeGeneratorResponse* const _this = this;
1465 (void)_this;
1466 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1467 from._internal_metadata_);
1468 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1469 ::memcpy(reinterpret_cast<char *>(&_impl_) +
1470 offsetof(Impl_, supported_features_),
1471 reinterpret_cast<const char *>(&from._impl_) +
1472 offsetof(Impl_, supported_features_),
1473 offsetof(Impl_, maximum_edition_) -
1474 offsetof(Impl_, supported_features_) +
1475 sizeof(Impl_::maximum_edition_));
1476
1477 // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGeneratorResponse)
1478 }
1479 inline PROTOBUF_NDEBUG_INLINE CodeGeneratorResponse::Impl_::Impl_(
1480 ::google::protobuf::internal::InternalVisibility visibility,
1481 ::google::protobuf::Arena* arena)
1482 : _cached_size_{0},
1483 file_{visibility, arena},
1484 error_(arena) {}
1485
1486 inline void CodeGeneratorResponse::SharedCtor(::_pb::Arena* arena) {
1487 new (&_impl_) Impl_(internal_visibility(), arena);
1488 ::memset(reinterpret_cast<char *>(&_impl_) +
1489 offsetof(Impl_, supported_features_),
1490 0,
1491 offsetof(Impl_, maximum_edition_) -
1492 offsetof(Impl_, supported_features_) +
1493 sizeof(Impl_::maximum_edition_));
1494 }
1495 CodeGeneratorResponse::~CodeGeneratorResponse() {
1496 // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorResponse)
1497 SharedDtor(*this);
1498 }
1499 inline void CodeGeneratorResponse::SharedDtor(MessageLite& self) {
1500 CodeGeneratorResponse& this_ = static_cast<CodeGeneratorResponse&>(self);
1501 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1502 ABSL_DCHECK(this_.GetArena() == nullptr);
1503 this_._impl_.error_.Destroy();
1504 this_._impl_.~Impl_();
1505 }
1506
1507 inline void* CodeGeneratorResponse::PlacementNew_(const void*, void* mem,
1508 ::google::protobuf::Arena* arena) {
1509 return ::new (mem) CodeGeneratorResponse(arena);
1510 }
1511 constexpr auto CodeGeneratorResponse::InternalNewImpl_() {
1512 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
1513 PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.file_) +
1514 decltype(CodeGeneratorResponse::_impl_.file_)::
1515 InternalGetArenaOffset(
1516 ::google::protobuf::Message::internal_visibility()),
1517 });
1518 if (arena_bits.has_value()) {
1519 return ::google::protobuf::internal::MessageCreator::CopyInit(
1520 sizeof(CodeGeneratorResponse), alignof(CodeGeneratorResponse), *arena_bits);
1521 } else {
1522 return ::google::protobuf::internal::MessageCreator(&CodeGeneratorResponse::PlacementNew_,
1523 sizeof(CodeGeneratorResponse),
1524 alignof(CodeGeneratorResponse));
1525 }
1526 }
1527 PROTOBUF_CONSTINIT
1528 PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1529 const ::google::protobuf::internal::ClassDataFull CodeGeneratorResponse::_class_data_ = {
1530 ::google::protobuf::internal::ClassData{
1531 &_CodeGeneratorResponse_default_instance_._instance,
1532 &_table_.header,
1533 nullptr, // OnDemandRegisterArenaDtor
1534 nullptr, // IsInitialized
1535 &CodeGeneratorResponse::MergeImpl,
1536 ::google::protobuf::Message::GetNewImpl<CodeGeneratorResponse>(),
1537 #if defined(PROTOBUF_CUSTOM_VTABLE)
1538 &CodeGeneratorResponse::SharedDtor,
1539 ::google::protobuf::Message::GetClearImpl<CodeGeneratorResponse>(), &CodeGeneratorResponse::ByteSizeLong,
1540 &CodeGeneratorResponse::_InternalSerialize,
1541 #endif // PROTOBUF_CUSTOM_VTABLE
1542 PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_._cached_size_),
1543 false,
1544 },
1545 &CodeGeneratorResponse::kDescriptorMethods,
1546 &descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto,
1547 nullptr, // tracker
1548 };
1549 const ::google::protobuf::internal::ClassData* CodeGeneratorResponse::GetClassData() const {
1550 ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
1551 ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
1552 return _class_data_.base();
1553 }
1554 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1555 const ::_pbi::TcParseTable<3, 5, 1, 60, 2> CodeGeneratorResponse::_table_ = {
1556 {
1557 PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_._has_bits_),
1558 0, // no _extensions_
1559 15, 56, // max_field_number, fast_idx_mask
1560 offsetof(decltype(_table_), field_lookup_table),
1561 4294950896, // skipmap
1562 offsetof(decltype(_table_), field_entries),
1563 5, // num_field_entries
1564 1, // num_aux_entries
1565 offsetof(decltype(_table_), aux_entries),
1566 _class_data_.base(),
1567 nullptr, // post_loop_handler
1568 ::_pbi::TcParser::GenericFallback, // fallback
1569 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1570 ::_pbi::TcParser::GetTable<::google::protobuf::compiler::CodeGeneratorResponse>(), // to_prefetch
1571 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1572 }, {{
1573 {::_pbi::TcParser::MiniParse, {}},
1574 // optional string error = 1;
1575 {::_pbi::TcParser::FastSS1,
1576 {10, 0, 0, PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.error_)}},
1577 // optional uint64 supported_features = 2;
1578 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(CodeGeneratorResponse, _impl_.supported_features_), 1>(),
1579 {16, 1, 0, PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.supported_features_)}},
1580 // optional int32 minimum_edition = 3;
1581 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CodeGeneratorResponse, _impl_.minimum_edition_), 2>(),
1582 {24, 2, 0, PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.minimum_edition_)}},
1583 // optional int32 maximum_edition = 4;
1584 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CodeGeneratorResponse, _impl_.maximum_edition_), 3>(),
1585 {32, 3, 0, PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.maximum_edition_)}},
1586 {::_pbi::TcParser::MiniParse, {}},
1587 {::_pbi::TcParser::MiniParse, {}},
1588 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
1589 {::_pbi::TcParser::FastMtR1,
1590 {122, 63, 0, PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.file_)}},
1591 }}, {{
1592 65535, 65535
1593 }}, {{
1594 // optional string error = 1;
1595 {PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.error_), _Internal::kHasBitsOffset + 0, 0,
1596 (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)},
1597 // optional uint64 supported_features = 2;
1598 {PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.supported_features_), _Internal::kHasBitsOffset + 1, 0,
1599 (0 | ::_fl::kFcOptional | ::_fl::kUInt64)},
1600 // optional int32 minimum_edition = 3;
1601 {PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.minimum_edition_), _Internal::kHasBitsOffset + 2, 0,
1602 (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
1603 // optional int32 maximum_edition = 4;
1604 {PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.maximum_edition_), _Internal::kHasBitsOffset + 3, 0,
1605 (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
1606 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
1607 {PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.file_), -1, 0,
1608 (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
1609 }}, {{
1610 {::_pbi::TcParser::GetTable<::google::protobuf::compiler::CodeGeneratorResponse_File>()},
1611 }}, {{
1612 "\56\5\0\0\0\0\0\0"
1613 "google.protobuf.compiler.CodeGeneratorResponse"
1614 "error"
1615 }},
1616 };
1617
1618 PROTOBUF_NOINLINE void CodeGeneratorResponse::Clear() {
1619 // @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.CodeGeneratorResponse)
1620 ::google::protobuf::internal::TSanWrite(&_impl_);
1621 ::uint32_t cached_has_bits = 0;
1622 // Prevent compiler warnings about cached_has_bits being unused
1623 (void) cached_has_bits;
1624
1625 _impl_.file_.Clear();
1626 cached_has_bits = _impl_._has_bits_[0];
1627 if (cached_has_bits & 0x00000001u) {
1628 _impl_.error_.ClearNonDefaultToEmpty();
1629 }
1630 if (cached_has_bits & 0x0000000eu) {
1631 ::memset(&_impl_.supported_features_, 0, static_cast<::size_t>(
1632 reinterpret_cast<char*>(&_impl_.maximum_edition_) -
1633 reinterpret_cast<char*>(&_impl_.supported_features_)) + sizeof(_impl_.maximum_edition_));
1634 }
1635 _impl_._has_bits_.Clear();
1636 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1637 }
1638
1639 #if defined(PROTOBUF_CUSTOM_VTABLE)
1640 ::uint8_t* CodeGeneratorResponse::_InternalSerialize(
1641 const MessageLite& base, ::uint8_t* target,
1642 ::google::protobuf::io::EpsCopyOutputStream* stream) {
1643 const CodeGeneratorResponse& this_ = static_cast<const CodeGeneratorResponse&>(base);
1644 #else // PROTOBUF_CUSTOM_VTABLE
1645 ::uint8_t* CodeGeneratorResponse::_InternalSerialize(
1646 ::uint8_t* target,
1647 ::google::protobuf::io::EpsCopyOutputStream* stream) const {
1648 const CodeGeneratorResponse& this_ = *this;
1649 #endif // PROTOBUF_CUSTOM_VTABLE
1650 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.CodeGeneratorResponse)
1651 ::uint32_t cached_has_bits = 0;
1652 (void)cached_has_bits;
1653
1654 cached_has_bits = this_._impl_._has_bits_[0];
1655 // optional string error = 1;
1656 if (cached_has_bits & 0x00000001u) {
1657 const std::string& _s = this_._internal_error();
1658 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
1659 "google.protobuf.compiler.CodeGeneratorResponse.error");
1660 target = stream->WriteStringMaybeAliased(1, _s, target);
1661 }
1662
1663 // optional uint64 supported_features = 2;
1664 if (cached_has_bits & 0x00000002u) {
1665 target = stream->EnsureSpace(target);
1666 target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
1667 2, this_._internal_supported_features(), target);
1668 }
1669
1670 // optional int32 minimum_edition = 3;
1671 if (cached_has_bits & 0x00000004u) {
1672 target = ::google::protobuf::internal::WireFormatLite::
1673 WriteInt32ToArrayWithField<3>(
1674 stream, this_._internal_minimum_edition(), target);
1675 }
1676
1677 // optional int32 maximum_edition = 4;
1678 if (cached_has_bits & 0x00000008u) {
1679 target = ::google::protobuf::internal::WireFormatLite::
1680 WriteInt32ToArrayWithField<4>(
1681 stream, this_._internal_maximum_edition(), target);
1682 }
1683
1684 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
1685 for (unsigned i = 0, n = static_cast<unsigned>(
1686 this_._internal_file_size());
1687 i < n; i++) {
1688 const auto& repfield = this_._internal_file().Get(i);
1689 target =
1690 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1691 15, repfield, repfield.GetCachedSize(),
1692 target, stream);
1693 }
1694
1695 if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1696 target =
1697 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1698 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1699 }
1700 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.CodeGeneratorResponse)
1701 return target;
1702 }
1703
1704 #if defined(PROTOBUF_CUSTOM_VTABLE)
1705 ::size_t CodeGeneratorResponse::ByteSizeLong(const MessageLite& base) {
1706 const CodeGeneratorResponse& this_ = static_cast<const CodeGeneratorResponse&>(base);
1707 #else // PROTOBUF_CUSTOM_VTABLE
1708 ::size_t CodeGeneratorResponse::ByteSizeLong() const {
1709 const CodeGeneratorResponse& this_ = *this;
1710 #endif // PROTOBUF_CUSTOM_VTABLE
1711 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.CodeGeneratorResponse)
1712 ::size_t total_size = 0;
1713
1714 ::uint32_t cached_has_bits = 0;
1715 // Prevent compiler warnings about cached_has_bits being unused
1716 (void)cached_has_bits;
1717
1718 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1719 {
1720 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
1721 {
1722 total_size += 1UL * this_._internal_file_size();
1723 for (const auto& msg : this_._internal_file()) {
1724 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
1725 }
1726 }
1727 }
1728 cached_has_bits = this_._impl_._has_bits_[0];
1729 if (cached_has_bits & 0x0000000fu) {
1730 // optional string error = 1;
1731 if (cached_has_bits & 0x00000001u) {
1732 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
1733 this_._internal_error());
1734 }
1735 // optional uint64 supported_features = 2;
1736 if (cached_has_bits & 0x00000002u) {
1737 total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
1738 this_._internal_supported_features());
1739 }
1740 // optional int32 minimum_edition = 3;
1741 if (cached_has_bits & 0x00000004u) {
1742 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
1743 this_._internal_minimum_edition());
1744 }
1745 // optional int32 maximum_edition = 4;
1746 if (cached_has_bits & 0x00000008u) {
1747 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
1748 this_._internal_maximum_edition());
1749 }
1750 }
1751 return this_.MaybeComputeUnknownFieldsSize(total_size,
1752 &this_._impl_._cached_size_);
1753 }
1754
1755 void CodeGeneratorResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1756 auto* const _this = static_cast<CodeGeneratorResponse*>(&to_msg);
1757 auto& from = static_cast<const CodeGeneratorResponse&>(from_msg);
1758 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.compiler.CodeGeneratorResponse)
1759 ABSL_DCHECK_NE(&from, _this);
1760 ::uint32_t cached_has_bits = 0;
1761 (void) cached_has_bits;
1762
1763 _this->_internal_mutable_file()->MergeFrom(
1764 from._internal_file());
1765 cached_has_bits = from._impl_._has_bits_[0];
1766 if (cached_has_bits & 0x0000000fu) {
1767 if (cached_has_bits & 0x00000001u) {
1768 _this->_internal_set_error(from._internal_error());
1769 }
1770 if (cached_has_bits & 0x00000002u) {
1771 _this->_impl_.supported_features_ = from._impl_.supported_features_;
1772 }
1773 if (cached_has_bits & 0x00000004u) {
1774 _this->_impl_.minimum_edition_ = from._impl_.minimum_edition_;
1775 }
1776 if (cached_has_bits & 0x00000008u) {
1777 _this->_impl_.maximum_edition_ = from._impl_.maximum_edition_;
1778 }
1779 }
1780 _this->_impl_._has_bits_[0] |= cached_has_bits;
1781 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1782 }
1783
1784 void CodeGeneratorResponse::CopyFrom(const CodeGeneratorResponse& from) {
1785 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.compiler.CodeGeneratorResponse)
1786 if (&from == this) return;
1787 Clear();
1788 MergeFrom(from);
1789 }
1790
1791
1792 void CodeGeneratorResponse::InternalSwap(CodeGeneratorResponse* PROTOBUF_RESTRICT other) {
1793 using std::swap;
1794 auto* arena = GetArena();
1795 ABSL_DCHECK_EQ(arena, other->GetArena());
1796 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1797 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1798 _impl_.file_.InternalSwap(&other->_impl_.file_);
1799 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.error_, &other->_impl_.error_, arena);
1800 ::google::protobuf::internal::memswap<
1801 PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.maximum_edition_)
1802 + sizeof(CodeGeneratorResponse::_impl_.maximum_edition_)
1803 - PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.supported_features_)>(
1804 reinterpret_cast<char*>(&_impl_.supported_features_),
1805 reinterpret_cast<char*>(&other->_impl_.supported_features_));
1806 }
1807
1808 ::google::protobuf::Metadata CodeGeneratorResponse::GetMetadata() const {
1809 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1810 }
1811 // @@protoc_insertion_point(namespace_scope)
1812 } // namespace compiler
1813 } // namespace protobuf
1814 } // namespace google
1815 namespace google {
1816 namespace protobuf {
1817 } // namespace protobuf
1818 } // namespace google
1819 // @@protoc_insertion_point(global_scope)
1820 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
1821 _static_init2_ PROTOBUF_UNUSED =
1822 (::_pbi::AddDescriptors(&descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto),
1823 ::std::false_type{});
1824 #include "google/protobuf/port_undef.inc"
1825