1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: google/protobuf/compiler/plugin.proto
3
4 #include <google/protobuf/compiler/plugin.pb.h>
5
6 #include <algorithm>
7
8 #include <google/protobuf/io/coded_stream.h>
9 #include <google/protobuf/extension_set.h>
10 #include <google/protobuf/wire_format_lite.h>
11 #include <google/protobuf/descriptor.h>
12 #include <google/protobuf/generated_message_reflection.h>
13 #include <google/protobuf/reflection_ops.h>
14 #include <google/protobuf/wire_format.h>
15 // @@protoc_insertion_point(includes)
16 #include <google/protobuf/port_def.inc>
17 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fdescriptor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<6> scc_info_FileDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto;
18 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fdescriptor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GeneratedCodeInfo_google_2fprotobuf_2fdescriptor_2eproto;
19 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fcompiler_2fplugin_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CodeGeneratorResponse_File_google_2fprotobuf_2fcompiler_2fplugin_2eproto;
20 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fcompiler_2fplugin_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Version_google_2fprotobuf_2fcompiler_2fplugin_2eproto;
21 PROTOBUF_NAMESPACE_OPEN
22 namespace compiler {
23 class VersionDefaultTypeInternal {
24 public:
25 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Version> _instance;
26 } _Version_default_instance_;
27 class CodeGeneratorRequestDefaultTypeInternal {
28 public:
29 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CodeGeneratorRequest> _instance;
30 } _CodeGeneratorRequest_default_instance_;
31 class CodeGeneratorResponse_FileDefaultTypeInternal {
32 public:
33 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CodeGeneratorResponse_File> _instance;
34 } _CodeGeneratorResponse_File_default_instance_;
35 class CodeGeneratorResponseDefaultTypeInternal {
36 public:
37 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CodeGeneratorResponse> _instance;
38 } _CodeGeneratorResponse_default_instance_;
39 } // namespace compiler
40 PROTOBUF_NAMESPACE_CLOSE
InitDefaultsscc_info_CodeGeneratorRequest_google_2fprotobuf_2fcompiler_2fplugin_2eproto()41 static void InitDefaultsscc_info_CodeGeneratorRequest_google_2fprotobuf_2fcompiler_2fplugin_2eproto() {
42 GOOGLE_PROTOBUF_VERIFY_VERSION;
43
44 {
45 void* ptr = &PROTOBUF_NAMESPACE_ID::compiler::_CodeGeneratorRequest_default_instance_;
46 new (ptr) PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest();
47 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
48 }
49 }
50
51 PROTOC_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_CodeGeneratorRequest_google_2fprotobuf_2fcompiler_2fplugin_2eproto =
52 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_CodeGeneratorRequest_google_2fprotobuf_2fcompiler_2fplugin_2eproto}, {
53 &scc_info_FileDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base,
54 &scc_info_Version_google_2fprotobuf_2fcompiler_2fplugin_2eproto.base,}};
55
InitDefaultsscc_info_CodeGeneratorResponse_google_2fprotobuf_2fcompiler_2fplugin_2eproto()56 static void InitDefaultsscc_info_CodeGeneratorResponse_google_2fprotobuf_2fcompiler_2fplugin_2eproto() {
57 GOOGLE_PROTOBUF_VERIFY_VERSION;
58
59 {
60 void* ptr = &PROTOBUF_NAMESPACE_ID::compiler::_CodeGeneratorResponse_default_instance_;
61 new (ptr) PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse();
62 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
63 }
64 }
65
66 PROTOC_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CodeGeneratorResponse_google_2fprotobuf_2fcompiler_2fplugin_2eproto =
67 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_CodeGeneratorResponse_google_2fprotobuf_2fcompiler_2fplugin_2eproto}, {
68 &scc_info_CodeGeneratorResponse_File_google_2fprotobuf_2fcompiler_2fplugin_2eproto.base,}};
69
InitDefaultsscc_info_CodeGeneratorResponse_File_google_2fprotobuf_2fcompiler_2fplugin_2eproto()70 static void InitDefaultsscc_info_CodeGeneratorResponse_File_google_2fprotobuf_2fcompiler_2fplugin_2eproto() {
71 GOOGLE_PROTOBUF_VERIFY_VERSION;
72
73 {
74 void* ptr = &PROTOBUF_NAMESPACE_ID::compiler::_CodeGeneratorResponse_File_default_instance_;
75 new (ptr) PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File();
76 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
77 }
78 }
79
80 PROTOC_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CodeGeneratorResponse_File_google_2fprotobuf_2fcompiler_2fplugin_2eproto =
81 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_CodeGeneratorResponse_File_google_2fprotobuf_2fcompiler_2fplugin_2eproto}, {
82 &scc_info_GeneratedCodeInfo_google_2fprotobuf_2fdescriptor_2eproto.base,}};
83
InitDefaultsscc_info_Version_google_2fprotobuf_2fcompiler_2fplugin_2eproto()84 static void InitDefaultsscc_info_Version_google_2fprotobuf_2fcompiler_2fplugin_2eproto() {
85 GOOGLE_PROTOBUF_VERIFY_VERSION;
86
87 {
88 void* ptr = &PROTOBUF_NAMESPACE_ID::compiler::_Version_default_instance_;
89 new (ptr) PROTOBUF_NAMESPACE_ID::compiler::Version();
90 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
91 }
92 }
93
94 PROTOC_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Version_google_2fprotobuf_2fcompiler_2fplugin_2eproto =
95 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Version_google_2fprotobuf_2fcompiler_2fplugin_2eproto}, {}};
96
97 static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2fprotobuf_2fcompiler_2fplugin_2eproto[4];
98 static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_google_2fprotobuf_2fcompiler_2fplugin_2eproto[1];
99 static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_google_2fprotobuf_2fcompiler_2fplugin_2eproto = nullptr;
100
101 const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_google_2fprotobuf_2fcompiler_2fplugin_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
102 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::Version, _has_bits_),
103 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::Version, _internal_metadata_),
104 ~0u, // no _extensions_
105 ~0u, // no _oneof_case_
106 ~0u, // no _weak_field_map_
107 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::Version, major_),
108 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::Version, minor_),
109 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::Version, patch_),
110 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::Version, suffix_),
111 1,
112 2,
113 3,
114 0,
115 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest, _has_bits_),
116 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest, _internal_metadata_),
117 ~0u, // no _extensions_
118 ~0u, // no _oneof_case_
119 ~0u, // no _weak_field_map_
120 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest, file_to_generate_),
121 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest, parameter_),
122 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest, proto_file_),
123 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest, compiler_version_),
124 ~0u,
125 0,
126 ~0u,
127 1,
128 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File, _has_bits_),
129 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File, _internal_metadata_),
130 ~0u, // no _extensions_
131 ~0u, // no _oneof_case_
132 ~0u, // no _weak_field_map_
133 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File, name_),
134 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File, insertion_point_),
135 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File, content_),
136 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File, generated_code_info_),
137 0,
138 1,
139 2,
140 3,
141 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse, _has_bits_),
142 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse, _internal_metadata_),
143 ~0u, // no _extensions_
144 ~0u, // no _oneof_case_
145 ~0u, // no _weak_field_map_
146 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse, error_),
147 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse, supported_features_),
148 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse, file_),
149 0,
150 1,
151 ~0u,
152 };
153 static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
154 { 0, 9, sizeof(PROTOBUF_NAMESPACE_ID::compiler::Version)},
155 { 13, 22, sizeof(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest)},
156 { 26, 35, sizeof(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File)},
157 { 39, 47, sizeof(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse)},
158 };
159
160 static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
161 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::compiler::_Version_default_instance_),
162 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::compiler::_CodeGeneratorRequest_default_instance_),
163 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::compiler::_CodeGeneratorResponse_File_default_instance_),
164 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::compiler::_CodeGeneratorResponse_default_instance_),
165 };
166
167 const char descriptor_table_protodef_google_2fprotobuf_2fcompiler_2fplugin_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
168 "\n%google/protobuf/compiler/plugin.proto\022"
169 "\030google.protobuf.compiler\032 google/protob"
170 "uf/descriptor.proto\"F\n\007Version\022\r\n\005major\030"
171 "\001 \001(\005\022\r\n\005minor\030\002 \001(\005\022\r\n\005patch\030\003 \001(\005\022\016\n\006s"
172 "uffix\030\004 \001(\t\"\272\001\n\024CodeGeneratorRequest\022\030\n\020"
173 "file_to_generate\030\001 \003(\t\022\021\n\tparameter\030\002 \001("
174 "\t\0228\n\nproto_file\030\017 \003(\0132$.google.protobuf."
175 "FileDescriptorProto\022;\n\020compiler_version\030"
176 "\003 \001(\0132!.google.protobuf.compiler.Version"
177 "\"\301\002\n\025CodeGeneratorResponse\022\r\n\005error\030\001 \001("
178 "\t\022\032\n\022supported_features\030\002 \001(\004\022B\n\004file\030\017 "
179 "\003(\01324.google.protobuf.compiler.CodeGener"
180 "atorResponse.File\032\177\n\004File\022\014\n\004name\030\001 \001(\t\022"
181 "\027\n\017insertion_point\030\002 \001(\t\022\017\n\007content\030\017 \001("
182 "\t\022\?\n\023generated_code_info\030\020 \001(\0132\".google."
183 "protobuf.GeneratedCodeInfo\"8\n\007Feature\022\020\n"
184 "\014FEATURE_NONE\020\000\022\033\n\027FEATURE_PROTO3_OPTION"
185 "AL\020\001BW\n\034com.google.protobuf.compilerB\014Pl"
186 "uginProtosZ)google.golang.org/protobuf/t"
187 "ypes/pluginpb"
188 ;
189 static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto_deps[1] = {
190 &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto,
191 };
192 static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto_sccs[4] = {
193 &scc_info_CodeGeneratorRequest_google_2fprotobuf_2fcompiler_2fplugin_2eproto.base,
194 &scc_info_CodeGeneratorResponse_google_2fprotobuf_2fcompiler_2fplugin_2eproto.base,
195 &scc_info_CodeGeneratorResponse_File_google_2fprotobuf_2fcompiler_2fplugin_2eproto.base,
196 &scc_info_Version_google_2fprotobuf_2fcompiler_2fplugin_2eproto.base,
197 };
198 static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto_once;
199 const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto = {
200 false, false, descriptor_table_protodef_google_2fprotobuf_2fcompiler_2fplugin_2eproto, "google/protobuf/compiler/plugin.proto", 773,
201 &descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto_once, descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto_sccs, descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto_deps, 4, 1,
202 schemas, file_default_instances, TableStruct_google_2fprotobuf_2fcompiler_2fplugin_2eproto::offsets,
203 file_level_metadata_google_2fprotobuf_2fcompiler_2fplugin_2eproto, 4, file_level_enum_descriptors_google_2fprotobuf_2fcompiler_2fplugin_2eproto, file_level_service_descriptors_google_2fprotobuf_2fcompiler_2fplugin_2eproto,
204 };
205
206 // Force running AddDescriptors() at dynamic initialization time.
207 static bool dynamic_init_dummy_google_2fprotobuf_2fcompiler_2fplugin_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto)), true);
208 PROTOBUF_NAMESPACE_OPEN
209 namespace compiler {
CodeGeneratorResponse_Feature_descriptor()210 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CodeGeneratorResponse_Feature_descriptor() {
211 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto);
212 return file_level_enum_descriptors_google_2fprotobuf_2fcompiler_2fplugin_2eproto[0];
213 }
CodeGeneratorResponse_Feature_IsValid(int value)214 bool CodeGeneratorResponse_Feature_IsValid(int value) {
215 switch (value) {
216 case 0:
217 case 1:
218 return true;
219 default:
220 return false;
221 }
222 }
223
224 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
225 constexpr CodeGeneratorResponse_Feature CodeGeneratorResponse::FEATURE_NONE;
226 constexpr CodeGeneratorResponse_Feature CodeGeneratorResponse::FEATURE_PROTO3_OPTIONAL;
227 constexpr CodeGeneratorResponse_Feature CodeGeneratorResponse::Feature_MIN;
228 constexpr CodeGeneratorResponse_Feature CodeGeneratorResponse::Feature_MAX;
229 constexpr int CodeGeneratorResponse::Feature_ARRAYSIZE;
230 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
231
232 // ===================================================================
233
234 class Version::_Internal {
235 public:
236 using HasBits = decltype(std::declval<Version>()._has_bits_);
set_has_major(HasBits * has_bits)237 static void set_has_major(HasBits* has_bits) {
238 (*has_bits)[0] |= 2u;
239 }
set_has_minor(HasBits * has_bits)240 static void set_has_minor(HasBits* has_bits) {
241 (*has_bits)[0] |= 4u;
242 }
set_has_patch(HasBits * has_bits)243 static void set_has_patch(HasBits* has_bits) {
244 (*has_bits)[0] |= 8u;
245 }
set_has_suffix(HasBits * has_bits)246 static void set_has_suffix(HasBits* has_bits) {
247 (*has_bits)[0] |= 1u;
248 }
249 };
250
Version(::PROTOBUF_NAMESPACE_ID::Arena * arena)251 Version::Version(::PROTOBUF_NAMESPACE_ID::Arena* arena)
252 : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
253 SharedCtor();
254 RegisterArenaDtor(arena);
255 // @@protoc_insertion_point(arena_constructor:google.protobuf.compiler.Version)
256 }
Version(const Version & from)257 Version::Version(const Version& from)
258 : ::PROTOBUF_NAMESPACE_ID::Message(),
259 _has_bits_(from._has_bits_) {
260 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
261 suffix_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
262 if (from._internal_has_suffix()) {
263 suffix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_suffix(),
264 GetArena());
265 }
266 ::memcpy(&major_, &from.major_,
267 static_cast<size_t>(reinterpret_cast<char*>(&patch_) -
268 reinterpret_cast<char*>(&major_)) + sizeof(patch_));
269 // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.Version)
270 }
271
SharedCtor()272 void Version::SharedCtor() {
273 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Version_google_2fprotobuf_2fcompiler_2fplugin_2eproto.base);
274 suffix_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
275 ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
276 reinterpret_cast<char*>(&major_) - reinterpret_cast<char*>(this)),
277 0, static_cast<size_t>(reinterpret_cast<char*>(&patch_) -
278 reinterpret_cast<char*>(&major_)) + sizeof(patch_));
279 }
280
~Version()281 Version::~Version() {
282 // @@protoc_insertion_point(destructor:google.protobuf.compiler.Version)
283 SharedDtor();
284 _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
285 }
286
SharedDtor()287 void Version::SharedDtor() {
288 GOOGLE_DCHECK(GetArena() == nullptr);
289 suffix_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
290 }
291
ArenaDtor(void * object)292 void Version::ArenaDtor(void* object) {
293 Version* _this = reinterpret_cast< Version* >(object);
294 (void)_this;
295 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)296 void Version::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
297 }
SetCachedSize(int size) const298 void Version::SetCachedSize(int size) const {
299 _cached_size_.Set(size);
300 }
default_instance()301 const Version& Version::default_instance() {
302 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Version_google_2fprotobuf_2fcompiler_2fplugin_2eproto.base);
303 return *internal_default_instance();
304 }
305
306
Clear()307 void Version::Clear() {
308 // @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.Version)
309 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
310 // Prevent compiler warnings about cached_has_bits being unused
311 (void) cached_has_bits;
312
313 cached_has_bits = _has_bits_[0];
314 if (cached_has_bits & 0x00000001u) {
315 suffix_.ClearNonDefaultToEmpty();
316 }
317 if (cached_has_bits & 0x0000000eu) {
318 ::memset(&major_, 0, static_cast<size_t>(
319 reinterpret_cast<char*>(&patch_) -
320 reinterpret_cast<char*>(&major_)) + sizeof(patch_));
321 }
322 _has_bits_.Clear();
323 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
324 }
325
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)326 const char* Version::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
327 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
328 _Internal::HasBits has_bits{};
329 while (!ctx->Done(&ptr)) {
330 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
331 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
332 CHK_(ptr);
333 switch (tag >> 3) {
334 // optional int32 major = 1;
335 case 1:
336 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
337 _Internal::set_has_major(&has_bits);
338 major_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
339 CHK_(ptr);
340 } else goto handle_unusual;
341 continue;
342 // optional int32 minor = 2;
343 case 2:
344 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
345 _Internal::set_has_minor(&has_bits);
346 minor_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
347 CHK_(ptr);
348 } else goto handle_unusual;
349 continue;
350 // optional int32 patch = 3;
351 case 3:
352 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
353 _Internal::set_has_patch(&has_bits);
354 patch_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
355 CHK_(ptr);
356 } else goto handle_unusual;
357 continue;
358 // optional string suffix = 4;
359 case 4:
360 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
361 auto str = _internal_mutable_suffix();
362 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
363 #ifndef NDEBUG
364 ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.protobuf.compiler.Version.suffix");
365 #endif // !NDEBUG
366 CHK_(ptr);
367 } else goto handle_unusual;
368 continue;
369 default: {
370 handle_unusual:
371 if ((tag & 7) == 4 || tag == 0) {
372 ctx->SetLastTag(tag);
373 goto success;
374 }
375 ptr = UnknownFieldParse(tag,
376 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
377 ptr, ctx);
378 CHK_(ptr != nullptr);
379 continue;
380 }
381 } // switch
382 } // while
383 success:
384 _has_bits_.Or(has_bits);
385 return ptr;
386 failure:
387 ptr = nullptr;
388 goto success;
389 #undef CHK_
390 }
391
_InternalSerialize(::PROTOBUF_NAMESPACE_ID::uint8 * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const392 ::PROTOBUF_NAMESPACE_ID::uint8* Version::_InternalSerialize(
393 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
394 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.Version)
395 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
396 (void) cached_has_bits;
397
398 cached_has_bits = _has_bits_[0];
399 // optional int32 major = 1;
400 if (cached_has_bits & 0x00000002u) {
401 target = stream->EnsureSpace(target);
402 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_major(), target);
403 }
404
405 // optional int32 minor = 2;
406 if (cached_has_bits & 0x00000004u) {
407 target = stream->EnsureSpace(target);
408 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_minor(), target);
409 }
410
411 // optional int32 patch = 3;
412 if (cached_has_bits & 0x00000008u) {
413 target = stream->EnsureSpace(target);
414 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_patch(), target);
415 }
416
417 // optional string suffix = 4;
418 if (cached_has_bits & 0x00000001u) {
419 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
420 this->_internal_suffix().data(), static_cast<int>(this->_internal_suffix().length()),
421 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
422 "google.protobuf.compiler.Version.suffix");
423 target = stream->WriteStringMaybeAliased(
424 4, this->_internal_suffix(), target);
425 }
426
427 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
428 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
429 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
430 }
431 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.Version)
432 return target;
433 }
434
ByteSizeLong() const435 size_t Version::ByteSizeLong() const {
436 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.Version)
437 size_t total_size = 0;
438
439 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
440 // Prevent compiler warnings about cached_has_bits being unused
441 (void) cached_has_bits;
442
443 cached_has_bits = _has_bits_[0];
444 if (cached_has_bits & 0x0000000fu) {
445 // optional string suffix = 4;
446 if (cached_has_bits & 0x00000001u) {
447 total_size += 1 +
448 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
449 this->_internal_suffix());
450 }
451
452 // optional int32 major = 1;
453 if (cached_has_bits & 0x00000002u) {
454 total_size += 1 +
455 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
456 this->_internal_major());
457 }
458
459 // optional int32 minor = 2;
460 if (cached_has_bits & 0x00000004u) {
461 total_size += 1 +
462 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
463 this->_internal_minor());
464 }
465
466 // optional int32 patch = 3;
467 if (cached_has_bits & 0x00000008u) {
468 total_size += 1 +
469 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
470 this->_internal_patch());
471 }
472
473 }
474 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
475 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
476 _internal_metadata_, total_size, &_cached_size_);
477 }
478 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
479 SetCachedSize(cached_size);
480 return total_size;
481 }
482
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)483 void Version::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
484 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.compiler.Version)
485 GOOGLE_DCHECK_NE(&from, this);
486 const Version* source =
487 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Version>(
488 &from);
489 if (source == nullptr) {
490 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.compiler.Version)
491 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
492 } else {
493 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.compiler.Version)
494 MergeFrom(*source);
495 }
496 }
497
MergeFrom(const Version & from)498 void Version::MergeFrom(const Version& from) {
499 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.compiler.Version)
500 GOOGLE_DCHECK_NE(&from, this);
501 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
502 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
503 (void) cached_has_bits;
504
505 cached_has_bits = from._has_bits_[0];
506 if (cached_has_bits & 0x0000000fu) {
507 if (cached_has_bits & 0x00000001u) {
508 _internal_set_suffix(from._internal_suffix());
509 }
510 if (cached_has_bits & 0x00000002u) {
511 major_ = from.major_;
512 }
513 if (cached_has_bits & 0x00000004u) {
514 minor_ = from.minor_;
515 }
516 if (cached_has_bits & 0x00000008u) {
517 patch_ = from.patch_;
518 }
519 _has_bits_[0] |= cached_has_bits;
520 }
521 }
522
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)523 void Version::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
524 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.compiler.Version)
525 if (&from == this) return;
526 Clear();
527 MergeFrom(from);
528 }
529
CopyFrom(const Version & from)530 void Version::CopyFrom(const Version& from) {
531 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.compiler.Version)
532 if (&from == this) return;
533 Clear();
534 MergeFrom(from);
535 }
536
IsInitialized() const537 bool Version::IsInitialized() const {
538 return true;
539 }
540
InternalSwap(Version * other)541 void Version::InternalSwap(Version* other) {
542 using std::swap;
543 _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
544 swap(_has_bits_[0], other->_has_bits_[0]);
545 suffix_.Swap(&other->suffix_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
546 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
547 PROTOBUF_FIELD_OFFSET(Version, patch_)
548 + sizeof(Version::patch_)
549 - PROTOBUF_FIELD_OFFSET(Version, major_)>(
550 reinterpret_cast<char*>(&major_),
551 reinterpret_cast<char*>(&other->major_));
552 }
553
GetMetadata() const554 ::PROTOBUF_NAMESPACE_ID::Metadata Version::GetMetadata() const {
555 return GetMetadataStatic();
556 }
557
558
559 // ===================================================================
560
561 class CodeGeneratorRequest::_Internal {
562 public:
563 using HasBits = decltype(std::declval<CodeGeneratorRequest>()._has_bits_);
set_has_parameter(HasBits * has_bits)564 static void set_has_parameter(HasBits* has_bits) {
565 (*has_bits)[0] |= 1u;
566 }
567 static const PROTOBUF_NAMESPACE_ID::compiler::Version& compiler_version(const CodeGeneratorRequest* msg);
set_has_compiler_version(HasBits * has_bits)568 static void set_has_compiler_version(HasBits* has_bits) {
569 (*has_bits)[0] |= 2u;
570 }
571 };
572
573 const PROTOBUF_NAMESPACE_ID::compiler::Version&
compiler_version(const CodeGeneratorRequest * msg)574 CodeGeneratorRequest::_Internal::compiler_version(const CodeGeneratorRequest* msg) {
575 return *msg->compiler_version_;
576 }
clear_proto_file()577 void CodeGeneratorRequest::clear_proto_file() {
578 proto_file_.Clear();
579 }
CodeGeneratorRequest(::PROTOBUF_NAMESPACE_ID::Arena * arena)580 CodeGeneratorRequest::CodeGeneratorRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
581 : ::PROTOBUF_NAMESPACE_ID::Message(arena),
582 file_to_generate_(arena),
583 proto_file_(arena) {
584 SharedCtor();
585 RegisterArenaDtor(arena);
586 // @@protoc_insertion_point(arena_constructor:google.protobuf.compiler.CodeGeneratorRequest)
587 }
CodeGeneratorRequest(const CodeGeneratorRequest & from)588 CodeGeneratorRequest::CodeGeneratorRequest(const CodeGeneratorRequest& from)
589 : ::PROTOBUF_NAMESPACE_ID::Message(),
590 _has_bits_(from._has_bits_),
591 file_to_generate_(from.file_to_generate_),
592 proto_file_(from.proto_file_) {
593 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
594 parameter_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
595 if (from._internal_has_parameter()) {
596 parameter_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_parameter(),
597 GetArena());
598 }
599 if (from._internal_has_compiler_version()) {
600 compiler_version_ = new PROTOBUF_NAMESPACE_ID::compiler::Version(*from.compiler_version_);
601 } else {
602 compiler_version_ = nullptr;
603 }
604 // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGeneratorRequest)
605 }
606
SharedCtor()607 void CodeGeneratorRequest::SharedCtor() {
608 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CodeGeneratorRequest_google_2fprotobuf_2fcompiler_2fplugin_2eproto.base);
609 parameter_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
610 compiler_version_ = nullptr;
611 }
612
~CodeGeneratorRequest()613 CodeGeneratorRequest::~CodeGeneratorRequest() {
614 // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorRequest)
615 SharedDtor();
616 _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
617 }
618
SharedDtor()619 void CodeGeneratorRequest::SharedDtor() {
620 GOOGLE_DCHECK(GetArena() == nullptr);
621 parameter_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
622 if (this != internal_default_instance()) delete compiler_version_;
623 }
624
ArenaDtor(void * object)625 void CodeGeneratorRequest::ArenaDtor(void* object) {
626 CodeGeneratorRequest* _this = reinterpret_cast< CodeGeneratorRequest* >(object);
627 (void)_this;
628 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)629 void CodeGeneratorRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
630 }
SetCachedSize(int size) const631 void CodeGeneratorRequest::SetCachedSize(int size) const {
632 _cached_size_.Set(size);
633 }
default_instance()634 const CodeGeneratorRequest& CodeGeneratorRequest::default_instance() {
635 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CodeGeneratorRequest_google_2fprotobuf_2fcompiler_2fplugin_2eproto.base);
636 return *internal_default_instance();
637 }
638
639
Clear()640 void CodeGeneratorRequest::Clear() {
641 // @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.CodeGeneratorRequest)
642 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
643 // Prevent compiler warnings about cached_has_bits being unused
644 (void) cached_has_bits;
645
646 file_to_generate_.Clear();
647 proto_file_.Clear();
648 cached_has_bits = _has_bits_[0];
649 if (cached_has_bits & 0x00000003u) {
650 if (cached_has_bits & 0x00000001u) {
651 parameter_.ClearNonDefaultToEmpty();
652 }
653 if (cached_has_bits & 0x00000002u) {
654 GOOGLE_DCHECK(compiler_version_ != nullptr);
655 compiler_version_->Clear();
656 }
657 }
658 _has_bits_.Clear();
659 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
660 }
661
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)662 const char* CodeGeneratorRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
663 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
664 _Internal::HasBits has_bits{};
665 while (!ctx->Done(&ptr)) {
666 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
667 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
668 CHK_(ptr);
669 switch (tag >> 3) {
670 // repeated string file_to_generate = 1;
671 case 1:
672 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
673 ptr -= 1;
674 do {
675 ptr += 1;
676 auto str = _internal_add_file_to_generate();
677 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
678 #ifndef NDEBUG
679 ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate");
680 #endif // !NDEBUG
681 CHK_(ptr);
682 if (!ctx->DataAvailable(ptr)) break;
683 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
684 } else goto handle_unusual;
685 continue;
686 // optional string parameter = 2;
687 case 2:
688 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
689 auto str = _internal_mutable_parameter();
690 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
691 #ifndef NDEBUG
692 ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.protobuf.compiler.CodeGeneratorRequest.parameter");
693 #endif // !NDEBUG
694 CHK_(ptr);
695 } else goto handle_unusual;
696 continue;
697 // optional .google.protobuf.compiler.Version compiler_version = 3;
698 case 3:
699 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
700 ptr = ctx->ParseMessage(_internal_mutable_compiler_version(), ptr);
701 CHK_(ptr);
702 } else goto handle_unusual;
703 continue;
704 // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
705 case 15:
706 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 122)) {
707 ptr -= 1;
708 do {
709 ptr += 1;
710 ptr = ctx->ParseMessage(_internal_add_proto_file(), ptr);
711 CHK_(ptr);
712 if (!ctx->DataAvailable(ptr)) break;
713 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<122>(ptr));
714 } else goto handle_unusual;
715 continue;
716 default: {
717 handle_unusual:
718 if ((tag & 7) == 4 || tag == 0) {
719 ctx->SetLastTag(tag);
720 goto success;
721 }
722 ptr = UnknownFieldParse(tag,
723 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
724 ptr, ctx);
725 CHK_(ptr != nullptr);
726 continue;
727 }
728 } // switch
729 } // while
730 success:
731 _has_bits_.Or(has_bits);
732 return ptr;
733 failure:
734 ptr = nullptr;
735 goto success;
736 #undef CHK_
737 }
738
_InternalSerialize(::PROTOBUF_NAMESPACE_ID::uint8 * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const739 ::PROTOBUF_NAMESPACE_ID::uint8* CodeGeneratorRequest::_InternalSerialize(
740 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
741 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.CodeGeneratorRequest)
742 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
743 (void) cached_has_bits;
744
745 // repeated string file_to_generate = 1;
746 for (int i = 0, n = this->_internal_file_to_generate_size(); i < n; i++) {
747 const auto& s = this->_internal_file_to_generate(i);
748 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
749 s.data(), static_cast<int>(s.length()),
750 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
751 "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate");
752 target = stream->WriteString(1, s, target);
753 }
754
755 cached_has_bits = _has_bits_[0];
756 // optional string parameter = 2;
757 if (cached_has_bits & 0x00000001u) {
758 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
759 this->_internal_parameter().data(), static_cast<int>(this->_internal_parameter().length()),
760 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
761 "google.protobuf.compiler.CodeGeneratorRequest.parameter");
762 target = stream->WriteStringMaybeAliased(
763 2, this->_internal_parameter(), target);
764 }
765
766 // optional .google.protobuf.compiler.Version compiler_version = 3;
767 if (cached_has_bits & 0x00000002u) {
768 target = stream->EnsureSpace(target);
769 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
770 InternalWriteMessage(
771 3, _Internal::compiler_version(this), target, stream);
772 }
773
774 // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
775 for (unsigned int i = 0,
776 n = static_cast<unsigned int>(this->_internal_proto_file_size()); i < n; i++) {
777 target = stream->EnsureSpace(target);
778 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
779 InternalWriteMessage(15, this->_internal_proto_file(i), target, stream);
780 }
781
782 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
783 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
784 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
785 }
786 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.CodeGeneratorRequest)
787 return target;
788 }
789
ByteSizeLong() const790 size_t CodeGeneratorRequest::ByteSizeLong() const {
791 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.CodeGeneratorRequest)
792 size_t total_size = 0;
793
794 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
795 // Prevent compiler warnings about cached_has_bits being unused
796 (void) cached_has_bits;
797
798 // repeated string file_to_generate = 1;
799 total_size += 1 *
800 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(file_to_generate_.size());
801 for (int i = 0, n = file_to_generate_.size(); i < n; i++) {
802 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
803 file_to_generate_.Get(i));
804 }
805
806 // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
807 total_size += 1UL * this->_internal_proto_file_size();
808 for (const auto& msg : this->proto_file_) {
809 total_size +=
810 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
811 }
812
813 cached_has_bits = _has_bits_[0];
814 if (cached_has_bits & 0x00000003u) {
815 // optional string parameter = 2;
816 if (cached_has_bits & 0x00000001u) {
817 total_size += 1 +
818 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
819 this->_internal_parameter());
820 }
821
822 // optional .google.protobuf.compiler.Version compiler_version = 3;
823 if (cached_has_bits & 0x00000002u) {
824 total_size += 1 +
825 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
826 *compiler_version_);
827 }
828
829 }
830 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
831 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
832 _internal_metadata_, total_size, &_cached_size_);
833 }
834 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
835 SetCachedSize(cached_size);
836 return total_size;
837 }
838
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)839 void CodeGeneratorRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
840 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.compiler.CodeGeneratorRequest)
841 GOOGLE_DCHECK_NE(&from, this);
842 const CodeGeneratorRequest* source =
843 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CodeGeneratorRequest>(
844 &from);
845 if (source == nullptr) {
846 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.compiler.CodeGeneratorRequest)
847 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
848 } else {
849 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.compiler.CodeGeneratorRequest)
850 MergeFrom(*source);
851 }
852 }
853
MergeFrom(const CodeGeneratorRequest & from)854 void CodeGeneratorRequest::MergeFrom(const CodeGeneratorRequest& from) {
855 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.compiler.CodeGeneratorRequest)
856 GOOGLE_DCHECK_NE(&from, this);
857 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
858 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
859 (void) cached_has_bits;
860
861 file_to_generate_.MergeFrom(from.file_to_generate_);
862 proto_file_.MergeFrom(from.proto_file_);
863 cached_has_bits = from._has_bits_[0];
864 if (cached_has_bits & 0x00000003u) {
865 if (cached_has_bits & 0x00000001u) {
866 _internal_set_parameter(from._internal_parameter());
867 }
868 if (cached_has_bits & 0x00000002u) {
869 _internal_mutable_compiler_version()->PROTOBUF_NAMESPACE_ID::compiler::Version::MergeFrom(from._internal_compiler_version());
870 }
871 }
872 }
873
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)874 void CodeGeneratorRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
875 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.compiler.CodeGeneratorRequest)
876 if (&from == this) return;
877 Clear();
878 MergeFrom(from);
879 }
880
CopyFrom(const CodeGeneratorRequest & from)881 void CodeGeneratorRequest::CopyFrom(const CodeGeneratorRequest& from) {
882 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.compiler.CodeGeneratorRequest)
883 if (&from == this) return;
884 Clear();
885 MergeFrom(from);
886 }
887
IsInitialized() const888 bool CodeGeneratorRequest::IsInitialized() const {
889 if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(proto_file_)) return false;
890 return true;
891 }
892
InternalSwap(CodeGeneratorRequest * other)893 void CodeGeneratorRequest::InternalSwap(CodeGeneratorRequest* other) {
894 using std::swap;
895 _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
896 swap(_has_bits_[0], other->_has_bits_[0]);
897 file_to_generate_.InternalSwap(&other->file_to_generate_);
898 proto_file_.InternalSwap(&other->proto_file_);
899 parameter_.Swap(&other->parameter_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
900 swap(compiler_version_, other->compiler_version_);
901 }
902
GetMetadata() const903 ::PROTOBUF_NAMESPACE_ID::Metadata CodeGeneratorRequest::GetMetadata() const {
904 return GetMetadataStatic();
905 }
906
907
908 // ===================================================================
909
910 class CodeGeneratorResponse_File::_Internal {
911 public:
912 using HasBits = decltype(std::declval<CodeGeneratorResponse_File>()._has_bits_);
set_has_name(HasBits * has_bits)913 static void set_has_name(HasBits* has_bits) {
914 (*has_bits)[0] |= 1u;
915 }
set_has_insertion_point(HasBits * has_bits)916 static void set_has_insertion_point(HasBits* has_bits) {
917 (*has_bits)[0] |= 2u;
918 }
set_has_content(HasBits * has_bits)919 static void set_has_content(HasBits* has_bits) {
920 (*has_bits)[0] |= 4u;
921 }
922 static const PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo& generated_code_info(const CodeGeneratorResponse_File* msg);
set_has_generated_code_info(HasBits * has_bits)923 static void set_has_generated_code_info(HasBits* has_bits) {
924 (*has_bits)[0] |= 8u;
925 }
926 };
927
928 const PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo&
generated_code_info(const CodeGeneratorResponse_File * msg)929 CodeGeneratorResponse_File::_Internal::generated_code_info(const CodeGeneratorResponse_File* msg) {
930 return *msg->generated_code_info_;
931 }
clear_generated_code_info()932 void CodeGeneratorResponse_File::clear_generated_code_info() {
933 if (generated_code_info_ != nullptr) generated_code_info_->Clear();
934 _has_bits_[0] &= ~0x00000008u;
935 }
CodeGeneratorResponse_File(::PROTOBUF_NAMESPACE_ID::Arena * arena)936 CodeGeneratorResponse_File::CodeGeneratorResponse_File(::PROTOBUF_NAMESPACE_ID::Arena* arena)
937 : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
938 SharedCtor();
939 RegisterArenaDtor(arena);
940 // @@protoc_insertion_point(arena_constructor:google.protobuf.compiler.CodeGeneratorResponse.File)
941 }
CodeGeneratorResponse_File(const CodeGeneratorResponse_File & from)942 CodeGeneratorResponse_File::CodeGeneratorResponse_File(const CodeGeneratorResponse_File& from)
943 : ::PROTOBUF_NAMESPACE_ID::Message(),
944 _has_bits_(from._has_bits_) {
945 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
946 name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
947 if (from._internal_has_name()) {
948 name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
949 GetArena());
950 }
951 insertion_point_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
952 if (from._internal_has_insertion_point()) {
953 insertion_point_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_insertion_point(),
954 GetArena());
955 }
956 content_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
957 if (from._internal_has_content()) {
958 content_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_content(),
959 GetArena());
960 }
961 if (from._internal_has_generated_code_info()) {
962 generated_code_info_ = new PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo(*from.generated_code_info_);
963 } else {
964 generated_code_info_ = nullptr;
965 }
966 // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGeneratorResponse.File)
967 }
968
SharedCtor()969 void CodeGeneratorResponse_File::SharedCtor() {
970 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CodeGeneratorResponse_File_google_2fprotobuf_2fcompiler_2fplugin_2eproto.base);
971 name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
972 insertion_point_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
973 content_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
974 generated_code_info_ = nullptr;
975 }
976
~CodeGeneratorResponse_File()977 CodeGeneratorResponse_File::~CodeGeneratorResponse_File() {
978 // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorResponse.File)
979 SharedDtor();
980 _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
981 }
982
SharedDtor()983 void CodeGeneratorResponse_File::SharedDtor() {
984 GOOGLE_DCHECK(GetArena() == nullptr);
985 name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
986 insertion_point_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
987 content_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
988 if (this != internal_default_instance()) delete generated_code_info_;
989 }
990
ArenaDtor(void * object)991 void CodeGeneratorResponse_File::ArenaDtor(void* object) {
992 CodeGeneratorResponse_File* _this = reinterpret_cast< CodeGeneratorResponse_File* >(object);
993 (void)_this;
994 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)995 void CodeGeneratorResponse_File::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
996 }
SetCachedSize(int size) const997 void CodeGeneratorResponse_File::SetCachedSize(int size) const {
998 _cached_size_.Set(size);
999 }
default_instance()1000 const CodeGeneratorResponse_File& CodeGeneratorResponse_File::default_instance() {
1001 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CodeGeneratorResponse_File_google_2fprotobuf_2fcompiler_2fplugin_2eproto.base);
1002 return *internal_default_instance();
1003 }
1004
1005
Clear()1006 void CodeGeneratorResponse_File::Clear() {
1007 // @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.CodeGeneratorResponse.File)
1008 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1009 // Prevent compiler warnings about cached_has_bits being unused
1010 (void) cached_has_bits;
1011
1012 cached_has_bits = _has_bits_[0];
1013 if (cached_has_bits & 0x0000000fu) {
1014 if (cached_has_bits & 0x00000001u) {
1015 name_.ClearNonDefaultToEmpty();
1016 }
1017 if (cached_has_bits & 0x00000002u) {
1018 insertion_point_.ClearNonDefaultToEmpty();
1019 }
1020 if (cached_has_bits & 0x00000004u) {
1021 content_.ClearNonDefaultToEmpty();
1022 }
1023 if (cached_has_bits & 0x00000008u) {
1024 GOOGLE_DCHECK(generated_code_info_ != nullptr);
1025 generated_code_info_->Clear();
1026 }
1027 }
1028 _has_bits_.Clear();
1029 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1030 }
1031
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)1032 const char* CodeGeneratorResponse_File::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1033 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1034 _Internal::HasBits has_bits{};
1035 while (!ctx->Done(&ptr)) {
1036 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1037 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1038 CHK_(ptr);
1039 switch (tag >> 3) {
1040 // optional string name = 1;
1041 case 1:
1042 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
1043 auto str = _internal_mutable_name();
1044 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
1045 #ifndef NDEBUG
1046 ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.protobuf.compiler.CodeGeneratorResponse.File.name");
1047 #endif // !NDEBUG
1048 CHK_(ptr);
1049 } else goto handle_unusual;
1050 continue;
1051 // optional string insertion_point = 2;
1052 case 2:
1053 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
1054 auto str = _internal_mutable_insertion_point();
1055 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
1056 #ifndef NDEBUG
1057 ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point");
1058 #endif // !NDEBUG
1059 CHK_(ptr);
1060 } else goto handle_unusual;
1061 continue;
1062 // optional string content = 15;
1063 case 15:
1064 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 122)) {
1065 auto str = _internal_mutable_content();
1066 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
1067 #ifndef NDEBUG
1068 ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.protobuf.compiler.CodeGeneratorResponse.File.content");
1069 #endif // !NDEBUG
1070 CHK_(ptr);
1071 } else goto handle_unusual;
1072 continue;
1073 // optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16;
1074 case 16:
1075 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 130)) {
1076 ptr = ctx->ParseMessage(_internal_mutable_generated_code_info(), ptr);
1077 CHK_(ptr);
1078 } else goto handle_unusual;
1079 continue;
1080 default: {
1081 handle_unusual:
1082 if ((tag & 7) == 4 || tag == 0) {
1083 ctx->SetLastTag(tag);
1084 goto success;
1085 }
1086 ptr = UnknownFieldParse(tag,
1087 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1088 ptr, ctx);
1089 CHK_(ptr != nullptr);
1090 continue;
1091 }
1092 } // switch
1093 } // while
1094 success:
1095 _has_bits_.Or(has_bits);
1096 return ptr;
1097 failure:
1098 ptr = nullptr;
1099 goto success;
1100 #undef CHK_
1101 }
1102
_InternalSerialize(::PROTOBUF_NAMESPACE_ID::uint8 * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1103 ::PROTOBUF_NAMESPACE_ID::uint8* CodeGeneratorResponse_File::_InternalSerialize(
1104 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1105 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.CodeGeneratorResponse.File)
1106 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1107 (void) cached_has_bits;
1108
1109 cached_has_bits = _has_bits_[0];
1110 // optional string name = 1;
1111 if (cached_has_bits & 0x00000001u) {
1112 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
1113 this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
1114 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
1115 "google.protobuf.compiler.CodeGeneratorResponse.File.name");
1116 target = stream->WriteStringMaybeAliased(
1117 1, this->_internal_name(), target);
1118 }
1119
1120 // optional string insertion_point = 2;
1121 if (cached_has_bits & 0x00000002u) {
1122 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
1123 this->_internal_insertion_point().data(), static_cast<int>(this->_internal_insertion_point().length()),
1124 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
1125 "google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point");
1126 target = stream->WriteStringMaybeAliased(
1127 2, this->_internal_insertion_point(), target);
1128 }
1129
1130 // optional string content = 15;
1131 if (cached_has_bits & 0x00000004u) {
1132 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
1133 this->_internal_content().data(), static_cast<int>(this->_internal_content().length()),
1134 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
1135 "google.protobuf.compiler.CodeGeneratorResponse.File.content");
1136 target = stream->WriteStringMaybeAliased(
1137 15, this->_internal_content(), target);
1138 }
1139
1140 // optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16;
1141 if (cached_has_bits & 0x00000008u) {
1142 target = stream->EnsureSpace(target);
1143 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1144 InternalWriteMessage(
1145 16, _Internal::generated_code_info(this), target, stream);
1146 }
1147
1148 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1149 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
1150 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1151 }
1152 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.CodeGeneratorResponse.File)
1153 return target;
1154 }
1155
ByteSizeLong() const1156 size_t CodeGeneratorResponse_File::ByteSizeLong() const {
1157 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.CodeGeneratorResponse.File)
1158 size_t total_size = 0;
1159
1160 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1161 // Prevent compiler warnings about cached_has_bits being unused
1162 (void) cached_has_bits;
1163
1164 cached_has_bits = _has_bits_[0];
1165 if (cached_has_bits & 0x0000000fu) {
1166 // optional string name = 1;
1167 if (cached_has_bits & 0x00000001u) {
1168 total_size += 1 +
1169 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1170 this->_internal_name());
1171 }
1172
1173 // optional string insertion_point = 2;
1174 if (cached_has_bits & 0x00000002u) {
1175 total_size += 1 +
1176 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1177 this->_internal_insertion_point());
1178 }
1179
1180 // optional string content = 15;
1181 if (cached_has_bits & 0x00000004u) {
1182 total_size += 1 +
1183 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1184 this->_internal_content());
1185 }
1186
1187 // optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16;
1188 if (cached_has_bits & 0x00000008u) {
1189 total_size += 2 +
1190 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1191 *generated_code_info_);
1192 }
1193
1194 }
1195 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1196 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
1197 _internal_metadata_, total_size, &_cached_size_);
1198 }
1199 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1200 SetCachedSize(cached_size);
1201 return total_size;
1202 }
1203
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)1204 void CodeGeneratorResponse_File::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1205 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.compiler.CodeGeneratorResponse.File)
1206 GOOGLE_DCHECK_NE(&from, this);
1207 const CodeGeneratorResponse_File* source =
1208 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CodeGeneratorResponse_File>(
1209 &from);
1210 if (source == nullptr) {
1211 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.compiler.CodeGeneratorResponse.File)
1212 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
1213 } else {
1214 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.compiler.CodeGeneratorResponse.File)
1215 MergeFrom(*source);
1216 }
1217 }
1218
MergeFrom(const CodeGeneratorResponse_File & from)1219 void CodeGeneratorResponse_File::MergeFrom(const CodeGeneratorResponse_File& from) {
1220 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.compiler.CodeGeneratorResponse.File)
1221 GOOGLE_DCHECK_NE(&from, this);
1222 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1223 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1224 (void) cached_has_bits;
1225
1226 cached_has_bits = from._has_bits_[0];
1227 if (cached_has_bits & 0x0000000fu) {
1228 if (cached_has_bits & 0x00000001u) {
1229 _internal_set_name(from._internal_name());
1230 }
1231 if (cached_has_bits & 0x00000002u) {
1232 _internal_set_insertion_point(from._internal_insertion_point());
1233 }
1234 if (cached_has_bits & 0x00000004u) {
1235 _internal_set_content(from._internal_content());
1236 }
1237 if (cached_has_bits & 0x00000008u) {
1238 _internal_mutable_generated_code_info()->PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo::MergeFrom(from._internal_generated_code_info());
1239 }
1240 }
1241 }
1242
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)1243 void CodeGeneratorResponse_File::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1244 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.compiler.CodeGeneratorResponse.File)
1245 if (&from == this) return;
1246 Clear();
1247 MergeFrom(from);
1248 }
1249
CopyFrom(const CodeGeneratorResponse_File & from)1250 void CodeGeneratorResponse_File::CopyFrom(const CodeGeneratorResponse_File& from) {
1251 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.compiler.CodeGeneratorResponse.File)
1252 if (&from == this) return;
1253 Clear();
1254 MergeFrom(from);
1255 }
1256
IsInitialized() const1257 bool CodeGeneratorResponse_File::IsInitialized() const {
1258 return true;
1259 }
1260
InternalSwap(CodeGeneratorResponse_File * other)1261 void CodeGeneratorResponse_File::InternalSwap(CodeGeneratorResponse_File* other) {
1262 using std::swap;
1263 _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
1264 swap(_has_bits_[0], other->_has_bits_[0]);
1265 name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1266 insertion_point_.Swap(&other->insertion_point_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1267 content_.Swap(&other->content_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1268 swap(generated_code_info_, other->generated_code_info_);
1269 }
1270
GetMetadata() const1271 ::PROTOBUF_NAMESPACE_ID::Metadata CodeGeneratorResponse_File::GetMetadata() const {
1272 return GetMetadataStatic();
1273 }
1274
1275
1276 // ===================================================================
1277
1278 class CodeGeneratorResponse::_Internal {
1279 public:
1280 using HasBits = decltype(std::declval<CodeGeneratorResponse>()._has_bits_);
set_has_error(HasBits * has_bits)1281 static void set_has_error(HasBits* has_bits) {
1282 (*has_bits)[0] |= 1u;
1283 }
set_has_supported_features(HasBits * has_bits)1284 static void set_has_supported_features(HasBits* has_bits) {
1285 (*has_bits)[0] |= 2u;
1286 }
1287 };
1288
CodeGeneratorResponse(::PROTOBUF_NAMESPACE_ID::Arena * arena)1289 CodeGeneratorResponse::CodeGeneratorResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1290 : ::PROTOBUF_NAMESPACE_ID::Message(arena),
1291 file_(arena) {
1292 SharedCtor();
1293 RegisterArenaDtor(arena);
1294 // @@protoc_insertion_point(arena_constructor:google.protobuf.compiler.CodeGeneratorResponse)
1295 }
CodeGeneratorResponse(const CodeGeneratorResponse & from)1296 CodeGeneratorResponse::CodeGeneratorResponse(const CodeGeneratorResponse& from)
1297 : ::PROTOBUF_NAMESPACE_ID::Message(),
1298 _has_bits_(from._has_bits_),
1299 file_(from.file_) {
1300 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1301 error_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1302 if (from._internal_has_error()) {
1303 error_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_error(),
1304 GetArena());
1305 }
1306 supported_features_ = from.supported_features_;
1307 // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGeneratorResponse)
1308 }
1309
SharedCtor()1310 void CodeGeneratorResponse::SharedCtor() {
1311 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CodeGeneratorResponse_google_2fprotobuf_2fcompiler_2fplugin_2eproto.base);
1312 error_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1313 supported_features_ = PROTOBUF_ULONGLONG(0);
1314 }
1315
~CodeGeneratorResponse()1316 CodeGeneratorResponse::~CodeGeneratorResponse() {
1317 // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorResponse)
1318 SharedDtor();
1319 _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1320 }
1321
SharedDtor()1322 void CodeGeneratorResponse::SharedDtor() {
1323 GOOGLE_DCHECK(GetArena() == nullptr);
1324 error_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1325 }
1326
ArenaDtor(void * object)1327 void CodeGeneratorResponse::ArenaDtor(void* object) {
1328 CodeGeneratorResponse* _this = reinterpret_cast< CodeGeneratorResponse* >(object);
1329 (void)_this;
1330 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)1331 void CodeGeneratorResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
1332 }
SetCachedSize(int size) const1333 void CodeGeneratorResponse::SetCachedSize(int size) const {
1334 _cached_size_.Set(size);
1335 }
default_instance()1336 const CodeGeneratorResponse& CodeGeneratorResponse::default_instance() {
1337 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CodeGeneratorResponse_google_2fprotobuf_2fcompiler_2fplugin_2eproto.base);
1338 return *internal_default_instance();
1339 }
1340
1341
Clear()1342 void CodeGeneratorResponse::Clear() {
1343 // @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.CodeGeneratorResponse)
1344 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1345 // Prevent compiler warnings about cached_has_bits being unused
1346 (void) cached_has_bits;
1347
1348 file_.Clear();
1349 cached_has_bits = _has_bits_[0];
1350 if (cached_has_bits & 0x00000001u) {
1351 error_.ClearNonDefaultToEmpty();
1352 }
1353 supported_features_ = PROTOBUF_ULONGLONG(0);
1354 _has_bits_.Clear();
1355 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1356 }
1357
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)1358 const char* CodeGeneratorResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1359 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1360 _Internal::HasBits has_bits{};
1361 while (!ctx->Done(&ptr)) {
1362 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1363 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1364 CHK_(ptr);
1365 switch (tag >> 3) {
1366 // optional string error = 1;
1367 case 1:
1368 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
1369 auto str = _internal_mutable_error();
1370 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
1371 #ifndef NDEBUG
1372 ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.protobuf.compiler.CodeGeneratorResponse.error");
1373 #endif // !NDEBUG
1374 CHK_(ptr);
1375 } else goto handle_unusual;
1376 continue;
1377 // optional uint64 supported_features = 2;
1378 case 2:
1379 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
1380 _Internal::set_has_supported_features(&has_bits);
1381 supported_features_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1382 CHK_(ptr);
1383 } else goto handle_unusual;
1384 continue;
1385 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
1386 case 15:
1387 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 122)) {
1388 ptr -= 1;
1389 do {
1390 ptr += 1;
1391 ptr = ctx->ParseMessage(_internal_add_file(), ptr);
1392 CHK_(ptr);
1393 if (!ctx->DataAvailable(ptr)) break;
1394 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<122>(ptr));
1395 } else goto handle_unusual;
1396 continue;
1397 default: {
1398 handle_unusual:
1399 if ((tag & 7) == 4 || tag == 0) {
1400 ctx->SetLastTag(tag);
1401 goto success;
1402 }
1403 ptr = UnknownFieldParse(tag,
1404 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1405 ptr, ctx);
1406 CHK_(ptr != nullptr);
1407 continue;
1408 }
1409 } // switch
1410 } // while
1411 success:
1412 _has_bits_.Or(has_bits);
1413 return ptr;
1414 failure:
1415 ptr = nullptr;
1416 goto success;
1417 #undef CHK_
1418 }
1419
_InternalSerialize(::PROTOBUF_NAMESPACE_ID::uint8 * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1420 ::PROTOBUF_NAMESPACE_ID::uint8* CodeGeneratorResponse::_InternalSerialize(
1421 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1422 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.CodeGeneratorResponse)
1423 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1424 (void) cached_has_bits;
1425
1426 cached_has_bits = _has_bits_[0];
1427 // optional string error = 1;
1428 if (cached_has_bits & 0x00000001u) {
1429 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
1430 this->_internal_error().data(), static_cast<int>(this->_internal_error().length()),
1431 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
1432 "google.protobuf.compiler.CodeGeneratorResponse.error");
1433 target = stream->WriteStringMaybeAliased(
1434 1, this->_internal_error(), target);
1435 }
1436
1437 // optional uint64 supported_features = 2;
1438 if (cached_has_bits & 0x00000002u) {
1439 target = stream->EnsureSpace(target);
1440 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_supported_features(), target);
1441 }
1442
1443 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
1444 for (unsigned int i = 0,
1445 n = static_cast<unsigned int>(this->_internal_file_size()); i < n; i++) {
1446 target = stream->EnsureSpace(target);
1447 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1448 InternalWriteMessage(15, this->_internal_file(i), target, stream);
1449 }
1450
1451 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1452 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
1453 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1454 }
1455 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.CodeGeneratorResponse)
1456 return target;
1457 }
1458
ByteSizeLong() const1459 size_t CodeGeneratorResponse::ByteSizeLong() const {
1460 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.CodeGeneratorResponse)
1461 size_t total_size = 0;
1462
1463 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1464 // Prevent compiler warnings about cached_has_bits being unused
1465 (void) cached_has_bits;
1466
1467 // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
1468 total_size += 1UL * this->_internal_file_size();
1469 for (const auto& msg : this->file_) {
1470 total_size +=
1471 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1472 }
1473
1474 cached_has_bits = _has_bits_[0];
1475 if (cached_has_bits & 0x00000003u) {
1476 // optional string error = 1;
1477 if (cached_has_bits & 0x00000001u) {
1478 total_size += 1 +
1479 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1480 this->_internal_error());
1481 }
1482
1483 // optional uint64 supported_features = 2;
1484 if (cached_has_bits & 0x00000002u) {
1485 total_size += 1 +
1486 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
1487 this->_internal_supported_features());
1488 }
1489
1490 }
1491 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1492 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
1493 _internal_metadata_, total_size, &_cached_size_);
1494 }
1495 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1496 SetCachedSize(cached_size);
1497 return total_size;
1498 }
1499
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)1500 void CodeGeneratorResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1501 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.compiler.CodeGeneratorResponse)
1502 GOOGLE_DCHECK_NE(&from, this);
1503 const CodeGeneratorResponse* source =
1504 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CodeGeneratorResponse>(
1505 &from);
1506 if (source == nullptr) {
1507 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.compiler.CodeGeneratorResponse)
1508 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
1509 } else {
1510 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.compiler.CodeGeneratorResponse)
1511 MergeFrom(*source);
1512 }
1513 }
1514
MergeFrom(const CodeGeneratorResponse & from)1515 void CodeGeneratorResponse::MergeFrom(const CodeGeneratorResponse& from) {
1516 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.compiler.CodeGeneratorResponse)
1517 GOOGLE_DCHECK_NE(&from, this);
1518 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1519 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1520 (void) cached_has_bits;
1521
1522 file_.MergeFrom(from.file_);
1523 cached_has_bits = from._has_bits_[0];
1524 if (cached_has_bits & 0x00000003u) {
1525 if (cached_has_bits & 0x00000001u) {
1526 _internal_set_error(from._internal_error());
1527 }
1528 if (cached_has_bits & 0x00000002u) {
1529 supported_features_ = from.supported_features_;
1530 }
1531 _has_bits_[0] |= cached_has_bits;
1532 }
1533 }
1534
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)1535 void CodeGeneratorResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1536 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.compiler.CodeGeneratorResponse)
1537 if (&from == this) return;
1538 Clear();
1539 MergeFrom(from);
1540 }
1541
CopyFrom(const CodeGeneratorResponse & from)1542 void CodeGeneratorResponse::CopyFrom(const CodeGeneratorResponse& from) {
1543 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.compiler.CodeGeneratorResponse)
1544 if (&from == this) return;
1545 Clear();
1546 MergeFrom(from);
1547 }
1548
IsInitialized() const1549 bool CodeGeneratorResponse::IsInitialized() const {
1550 return true;
1551 }
1552
InternalSwap(CodeGeneratorResponse * other)1553 void CodeGeneratorResponse::InternalSwap(CodeGeneratorResponse* other) {
1554 using std::swap;
1555 _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
1556 swap(_has_bits_[0], other->_has_bits_[0]);
1557 file_.InternalSwap(&other->file_);
1558 error_.Swap(&other->error_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1559 swap(supported_features_, other->supported_features_);
1560 }
1561
GetMetadata() const1562 ::PROTOBUF_NAMESPACE_ID::Metadata CodeGeneratorResponse::GetMetadata() const {
1563 return GetMetadataStatic();
1564 }
1565
1566
1567 // @@protoc_insertion_point(namespace_scope)
1568 } // namespace compiler
1569 PROTOBUF_NAMESPACE_CLOSE
1570 PROTOBUF_NAMESPACE_OPEN
CreateMaybeMessage(Arena * arena)1571 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::compiler::Version* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::compiler::Version >(Arena* arena) {
1572 return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::compiler::Version >(arena);
1573 }
CreateMaybeMessage(Arena * arena)1574 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest >(Arena* arena) {
1575 return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest >(arena);
1576 }
CreateMaybeMessage(Arena * arena)1577 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File >(Arena* arena) {
1578 return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File >(arena);
1579 }
CreateMaybeMessage(Arena * arena)1580 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse >(Arena* arena) {
1581 return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse >(arena);
1582 }
1583 PROTOBUF_NAMESPACE_CLOSE
1584
1585 // @@protoc_insertion_point(global_scope)
1586 #include <google/protobuf/port_undef.inc>
1587