诸暨麻将添加redis
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1416 lines
61 KiB

  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/compiler/plugin.proto
  3. #include <google/protobuf/compiler/plugin.pb.h>
  4. #include <algorithm>
  5. #include <google/protobuf/io/coded_stream.h>
  6. #include <google/protobuf/extension_set.h>
  7. #include <google/protobuf/wire_format_lite.h>
  8. #include <google/protobuf/descriptor.h>
  9. #include <google/protobuf/generated_message_reflection.h>
  10. #include <google/protobuf/reflection_ops.h>
  11. #include <google/protobuf/wire_format.h>
  12. // @@protoc_insertion_point(includes)
  13. #include <google/protobuf/port_def.inc>
  14. extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fdescriptor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<6> scc_info_FileDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto;
  15. extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fcompiler_2fplugin_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CodeGeneratorResponse_File_google_2fprotobuf_2fcompiler_2fplugin_2eproto;
  16. extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fcompiler_2fplugin_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Version_google_2fprotobuf_2fcompiler_2fplugin_2eproto;
  17. PROTOBUF_NAMESPACE_OPEN
  18. namespace compiler {
  19. class VersionDefaultTypeInternal {
  20. public:
  21. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Version> _instance;
  22. } _Version_default_instance_;
  23. class CodeGeneratorRequestDefaultTypeInternal {
  24. public:
  25. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CodeGeneratorRequest> _instance;
  26. } _CodeGeneratorRequest_default_instance_;
  27. class CodeGeneratorResponse_FileDefaultTypeInternal {
  28. public:
  29. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CodeGeneratorResponse_File> _instance;
  30. } _CodeGeneratorResponse_File_default_instance_;
  31. class CodeGeneratorResponseDefaultTypeInternal {
  32. public:
  33. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CodeGeneratorResponse> _instance;
  34. } _CodeGeneratorResponse_default_instance_;
  35. } // namespace compiler
  36. PROTOBUF_NAMESPACE_CLOSE
  37. static void InitDefaultsscc_info_CodeGeneratorRequest_google_2fprotobuf_2fcompiler_2fplugin_2eproto() {
  38. GOOGLE_PROTOBUF_VERIFY_VERSION;
  39. {
  40. void* ptr = &PROTOBUF_NAMESPACE_ID::compiler::_CodeGeneratorRequest_default_instance_;
  41. new (ptr) PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest();
  42. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  43. }
  44. PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest::InitAsDefaultInstance();
  45. }
  46. PROTOC_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_CodeGeneratorRequest_google_2fprotobuf_2fcompiler_2fplugin_2eproto =
  47. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_CodeGeneratorRequest_google_2fprotobuf_2fcompiler_2fplugin_2eproto}, {
  48. &scc_info_FileDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto.base,
  49. &scc_info_Version_google_2fprotobuf_2fcompiler_2fplugin_2eproto.base,}};
  50. static void InitDefaultsscc_info_CodeGeneratorResponse_google_2fprotobuf_2fcompiler_2fplugin_2eproto() {
  51. GOOGLE_PROTOBUF_VERIFY_VERSION;
  52. {
  53. void* ptr = &PROTOBUF_NAMESPACE_ID::compiler::_CodeGeneratorResponse_default_instance_;
  54. new (ptr) PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse();
  55. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  56. }
  57. PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse::InitAsDefaultInstance();
  58. }
  59. PROTOC_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CodeGeneratorResponse_google_2fprotobuf_2fcompiler_2fplugin_2eproto =
  60. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_CodeGeneratorResponse_google_2fprotobuf_2fcompiler_2fplugin_2eproto}, {
  61. &scc_info_CodeGeneratorResponse_File_google_2fprotobuf_2fcompiler_2fplugin_2eproto.base,}};
  62. static void InitDefaultsscc_info_CodeGeneratorResponse_File_google_2fprotobuf_2fcompiler_2fplugin_2eproto() {
  63. GOOGLE_PROTOBUF_VERIFY_VERSION;
  64. {
  65. void* ptr = &PROTOBUF_NAMESPACE_ID::compiler::_CodeGeneratorResponse_File_default_instance_;
  66. new (ptr) PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File();
  67. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  68. }
  69. PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File::InitAsDefaultInstance();
  70. }
  71. PROTOC_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CodeGeneratorResponse_File_google_2fprotobuf_2fcompiler_2fplugin_2eproto =
  72. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_CodeGeneratorResponse_File_google_2fprotobuf_2fcompiler_2fplugin_2eproto}, {}};
  73. static void InitDefaultsscc_info_Version_google_2fprotobuf_2fcompiler_2fplugin_2eproto() {
  74. GOOGLE_PROTOBUF_VERIFY_VERSION;
  75. {
  76. void* ptr = &PROTOBUF_NAMESPACE_ID::compiler::_Version_default_instance_;
  77. new (ptr) PROTOBUF_NAMESPACE_ID::compiler::Version();
  78. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  79. }
  80. PROTOBUF_NAMESPACE_ID::compiler::Version::InitAsDefaultInstance();
  81. }
  82. PROTOC_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Version_google_2fprotobuf_2fcompiler_2fplugin_2eproto =
  83. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Version_google_2fprotobuf_2fcompiler_2fplugin_2eproto}, {}};
  84. static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2fprotobuf_2fcompiler_2fplugin_2eproto[4];
  85. static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_google_2fprotobuf_2fcompiler_2fplugin_2eproto = nullptr;
  86. static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_google_2fprotobuf_2fcompiler_2fplugin_2eproto = nullptr;
  87. const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_google_2fprotobuf_2fcompiler_2fplugin_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  88. PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::Version, _has_bits_),
  89. PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::Version, _internal_metadata_),
  90. ~0u, // no _extensions_
  91. ~0u, // no _oneof_case_
  92. ~0u, // no _weak_field_map_
  93. PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::Version, major_),
  94. PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::Version, minor_),
  95. PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::Version, patch_),
  96. PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::Version, suffix_),
  97. 1,
  98. 2,
  99. 3,
  100. 0,
  101. PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest, _has_bits_),
  102. PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest, _internal_metadata_),
  103. ~0u, // no _extensions_
  104. ~0u, // no _oneof_case_
  105. ~0u, // no _weak_field_map_
  106. PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest, file_to_generate_),
  107. PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest, parameter_),
  108. PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest, proto_file_),
  109. PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest, compiler_version_),
  110. ~0u,
  111. 0,
  112. ~0u,
  113. 1,
  114. PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File, _has_bits_),
  115. PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File, _internal_metadata_),
  116. ~0u, // no _extensions_
  117. ~0u, // no _oneof_case_
  118. ~0u, // no _weak_field_map_
  119. PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File, name_),
  120. PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File, insertion_point_),
  121. PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File, content_),
  122. 0,
  123. 1,
  124. 2,
  125. PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse, _has_bits_),
  126. PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse, _internal_metadata_),
  127. ~0u, // no _extensions_
  128. ~0u, // no _oneof_case_
  129. ~0u, // no _weak_field_map_
  130. PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse, error_),
  131. PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse, file_),
  132. 0,
  133. ~0u,
  134. };
  135. static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  136. { 0, 9, sizeof(PROTOBUF_NAMESPACE_ID::compiler::Version)},
  137. { 13, 22, sizeof(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest)},
  138. { 26, 34, sizeof(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File)},
  139. { 37, 44, sizeof(PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse)},
  140. };
  141. static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
  142. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::compiler::_Version_default_instance_),
  143. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::compiler::_CodeGeneratorRequest_default_instance_),
  144. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::compiler::_CodeGeneratorResponse_File_default_instance_),
  145. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::compiler::_CodeGeneratorResponse_default_instance_),
  146. };
  147. const char descriptor_table_protodef_google_2fprotobuf_2fcompiler_2fplugin_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  148. "\n%google/protobuf/compiler/plugin.proto\022"
  149. "\030google.protobuf.compiler\032 google/protob"
  150. "uf/descriptor.proto\"F\n\007Version\022\r\n\005major\030"
  151. "\001 \001(\005\022\r\n\005minor\030\002 \001(\005\022\r\n\005patch\030\003 \001(\005\022\016\n\006s"
  152. "uffix\030\004 \001(\t\"\272\001\n\024CodeGeneratorRequest\022\030\n\020"
  153. "file_to_generate\030\001 \003(\t\022\021\n\tparameter\030\002 \001("
  154. "\t\0228\n\nproto_file\030\017 \003(\0132$.google.protobuf."
  155. "FileDescriptorProto\022;\n\020compiler_version\030"
  156. "\003 \001(\0132!.google.protobuf.compiler.Version"
  157. "\"\252\001\n\025CodeGeneratorResponse\022\r\n\005error\030\001 \001("
  158. "\t\022B\n\004file\030\017 \003(\01324.google.protobuf.compil"
  159. "er.CodeGeneratorResponse.File\032>\n\004File\022\014\n"
  160. "\004name\030\001 \001(\t\022\027\n\017insertion_point\030\002 \001(\t\022\017\n\007"
  161. "content\030\017 \001(\tBg\n\034com.google.protobuf.com"
  162. "pilerB\014PluginProtosZ9github.com/golang/p"
  163. "rotobuf/protoc-gen-go/plugin;plugin_go"
  164. ;
  165. static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto_deps[1] = {
  166. &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto,
  167. };
  168. static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto_sccs[4] = {
  169. &scc_info_CodeGeneratorRequest_google_2fprotobuf_2fcompiler_2fplugin_2eproto.base,
  170. &scc_info_CodeGeneratorResponse_google_2fprotobuf_2fcompiler_2fplugin_2eproto.base,
  171. &scc_info_CodeGeneratorResponse_File_google_2fprotobuf_2fcompiler_2fplugin_2eproto.base,
  172. &scc_info_Version_google_2fprotobuf_2fcompiler_2fplugin_2eproto.base,
  173. };
  174. static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto_once;
  175. static bool descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto_initialized = false;
  176. const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto = {
  177. &descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto_initialized, descriptor_table_protodef_google_2fprotobuf_2fcompiler_2fplugin_2eproto, "google/protobuf/compiler/plugin.proto", 638,
  178. &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,
  179. schemas, file_default_instances, TableStruct_google_2fprotobuf_2fcompiler_2fplugin_2eproto::offsets,
  180. 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,
  181. };
  182. // Force running AddDescriptors() at dynamic initialization time.
  183. static bool dynamic_init_dummy_google_2fprotobuf_2fcompiler_2fplugin_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto), true);
  184. PROTOBUF_NAMESPACE_OPEN
  185. namespace compiler {
  186. // ===================================================================
  187. void Version::InitAsDefaultInstance() {
  188. }
  189. class Version::_Internal {
  190. public:
  191. using HasBits = decltype(std::declval<Version>()._has_bits_);
  192. static void set_has_major(HasBits* has_bits) {
  193. (*has_bits)[0] |= 2u;
  194. }
  195. static void set_has_minor(HasBits* has_bits) {
  196. (*has_bits)[0] |= 4u;
  197. }
  198. static void set_has_patch(HasBits* has_bits) {
  199. (*has_bits)[0] |= 8u;
  200. }
  201. static void set_has_suffix(HasBits* has_bits) {
  202. (*has_bits)[0] |= 1u;
  203. }
  204. };
  205. Version::Version()
  206. : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
  207. SharedCtor();
  208. // @@protoc_insertion_point(constructor:google.protobuf.compiler.Version)
  209. }
  210. Version::Version(const Version& from)
  211. : ::PROTOBUF_NAMESPACE_ID::Message(),
  212. _internal_metadata_(nullptr),
  213. _has_bits_(from._has_bits_) {
  214. _internal_metadata_.MergeFrom(from._internal_metadata_);
  215. suffix_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  216. if (from._internal_has_suffix()) {
  217. suffix_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.suffix_);
  218. }
  219. ::memcpy(&major_, &from.major_,
  220. static_cast<size_t>(reinterpret_cast<char*>(&patch_) -
  221. reinterpret_cast<char*>(&major_)) + sizeof(patch_));
  222. // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.Version)
  223. }
  224. void Version::SharedCtor() {
  225. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Version_google_2fprotobuf_2fcompiler_2fplugin_2eproto.base);
  226. suffix_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  227. ::memset(&major_, 0, static_cast<size_t>(
  228. reinterpret_cast<char*>(&patch_) -
  229. reinterpret_cast<char*>(&major_)) + sizeof(patch_));
  230. }
  231. Version::~Version() {
  232. // @@protoc_insertion_point(destructor:google.protobuf.compiler.Version)
  233. SharedDtor();
  234. }
  235. void Version::SharedDtor() {
  236. suffix_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  237. }
  238. void Version::SetCachedSize(int size) const {
  239. _cached_size_.Set(size);
  240. }
  241. const Version& Version::default_instance() {
  242. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Version_google_2fprotobuf_2fcompiler_2fplugin_2eproto.base);
  243. return *internal_default_instance();
  244. }
  245. void Version::Clear() {
  246. // @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.Version)
  247. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  248. // Prevent compiler warnings about cached_has_bits being unused
  249. (void) cached_has_bits;
  250. cached_has_bits = _has_bits_[0];
  251. if (cached_has_bits & 0x00000001u) {
  252. suffix_.ClearNonDefaultToEmptyNoArena();
  253. }
  254. if (cached_has_bits & 0x0000000eu) {
  255. ::memset(&major_, 0, static_cast<size_t>(
  256. reinterpret_cast<char*>(&patch_) -
  257. reinterpret_cast<char*>(&major_)) + sizeof(patch_));
  258. }
  259. _has_bits_.Clear();
  260. _internal_metadata_.Clear();
  261. }
  262. const char* Version::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  263. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  264. _Internal::HasBits has_bits{};
  265. while (!ctx->Done(&ptr)) {
  266. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  267. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  268. CHK_(ptr);
  269. switch (tag >> 3) {
  270. // optional int32 major = 1;
  271. case 1:
  272. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
  273. _Internal::set_has_major(&has_bits);
  274. major_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  275. CHK_(ptr);
  276. } else goto handle_unusual;
  277. continue;
  278. // optional int32 minor = 2;
  279. case 2:
  280. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
  281. _Internal::set_has_minor(&has_bits);
  282. minor_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  283. CHK_(ptr);
  284. } else goto handle_unusual;
  285. continue;
  286. // optional int32 patch = 3;
  287. case 3:
  288. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
  289. _Internal::set_has_patch(&has_bits);
  290. patch_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  291. CHK_(ptr);
  292. } else goto handle_unusual;
  293. continue;
  294. // optional string suffix = 4;
  295. case 4:
  296. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
  297. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(_internal_mutable_suffix(), ptr, ctx, "google.protobuf.compiler.Version.suffix");
  298. CHK_(ptr);
  299. } else goto handle_unusual;
  300. continue;
  301. default: {
  302. handle_unusual:
  303. if ((tag & 7) == 4 || tag == 0) {
  304. ctx->SetLastTag(tag);
  305. goto success;
  306. }
  307. ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
  308. CHK_(ptr != nullptr);
  309. continue;
  310. }
  311. } // switch
  312. } // while
  313. success:
  314. _has_bits_.Or(has_bits);
  315. return ptr;
  316. failure:
  317. ptr = nullptr;
  318. goto success;
  319. #undef CHK_
  320. }
  321. ::PROTOBUF_NAMESPACE_ID::uint8* Version::InternalSerializeWithCachedSizesToArray(
  322. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  323. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.Version)
  324. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  325. (void) cached_has_bits;
  326. cached_has_bits = _has_bits_[0];
  327. // optional int32 major = 1;
  328. if (cached_has_bits & 0x00000002u) {
  329. target = stream->EnsureSpace(target);
  330. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_major(), target);
  331. }
  332. // optional int32 minor = 2;
  333. if (cached_has_bits & 0x00000004u) {
  334. target = stream->EnsureSpace(target);
  335. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_minor(), target);
  336. }
  337. // optional int32 patch = 3;
  338. if (cached_has_bits & 0x00000008u) {
  339. target = stream->EnsureSpace(target);
  340. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_patch(), target);
  341. }
  342. // optional string suffix = 4;
  343. if (cached_has_bits & 0x00000001u) {
  344. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
  345. this->_internal_suffix().data(), static_cast<int>(this->_internal_suffix().length()),
  346. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
  347. "google.protobuf.compiler.Version.suffix");
  348. target = stream->WriteStringMaybeAliased(
  349. 4, this->_internal_suffix(), target);
  350. }
  351. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  352. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  353. _internal_metadata_.unknown_fields(), target, stream);
  354. }
  355. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.Version)
  356. return target;
  357. }
  358. size_t Version::ByteSizeLong() const {
  359. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.Version)
  360. size_t total_size = 0;
  361. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  362. // Prevent compiler warnings about cached_has_bits being unused
  363. (void) cached_has_bits;
  364. cached_has_bits = _has_bits_[0];
  365. if (cached_has_bits & 0x0000000fu) {
  366. // optional string suffix = 4;
  367. if (cached_has_bits & 0x00000001u) {
  368. total_size += 1 +
  369. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  370. this->_internal_suffix());
  371. }
  372. // optional int32 major = 1;
  373. if (cached_has_bits & 0x00000002u) {
  374. total_size += 1 +
  375. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  376. this->_internal_major());
  377. }
  378. // optional int32 minor = 2;
  379. if (cached_has_bits & 0x00000004u) {
  380. total_size += 1 +
  381. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  382. this->_internal_minor());
  383. }
  384. // optional int32 patch = 3;
  385. if (cached_has_bits & 0x00000008u) {
  386. total_size += 1 +
  387. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  388. this->_internal_patch());
  389. }
  390. }
  391. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  392. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  393. _internal_metadata_, total_size, &_cached_size_);
  394. }
  395. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  396. SetCachedSize(cached_size);
  397. return total_size;
  398. }
  399. void Version::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  400. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.compiler.Version)
  401. GOOGLE_DCHECK_NE(&from, this);
  402. const Version* source =
  403. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Version>(
  404. &from);
  405. if (source == nullptr) {
  406. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.compiler.Version)
  407. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  408. } else {
  409. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.compiler.Version)
  410. MergeFrom(*source);
  411. }
  412. }
  413. void Version::MergeFrom(const Version& from) {
  414. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.compiler.Version)
  415. GOOGLE_DCHECK_NE(&from, this);
  416. _internal_metadata_.MergeFrom(from._internal_metadata_);
  417. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  418. (void) cached_has_bits;
  419. cached_has_bits = from._has_bits_[0];
  420. if (cached_has_bits & 0x0000000fu) {
  421. if (cached_has_bits & 0x00000001u) {
  422. _has_bits_[0] |= 0x00000001u;
  423. suffix_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.suffix_);
  424. }
  425. if (cached_has_bits & 0x00000002u) {
  426. major_ = from.major_;
  427. }
  428. if (cached_has_bits & 0x00000004u) {
  429. minor_ = from.minor_;
  430. }
  431. if (cached_has_bits & 0x00000008u) {
  432. patch_ = from.patch_;
  433. }
  434. _has_bits_[0] |= cached_has_bits;
  435. }
  436. }
  437. void Version::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  438. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.compiler.Version)
  439. if (&from == this) return;
  440. Clear();
  441. MergeFrom(from);
  442. }
  443. void Version::CopyFrom(const Version& from) {
  444. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.compiler.Version)
  445. if (&from == this) return;
  446. Clear();
  447. MergeFrom(from);
  448. }
  449. bool Version::IsInitialized() const {
  450. return true;
  451. }
  452. void Version::InternalSwap(Version* other) {
  453. using std::swap;
  454. _internal_metadata_.Swap(&other->_internal_metadata_);
  455. swap(_has_bits_[0], other->_has_bits_[0]);
  456. suffix_.Swap(&other->suffix_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  457. GetArenaNoVirtual());
  458. swap(major_, other->major_);
  459. swap(minor_, other->minor_);
  460. swap(patch_, other->patch_);
  461. }
  462. ::PROTOBUF_NAMESPACE_ID::Metadata Version::GetMetadata() const {
  463. return GetMetadataStatic();
  464. }
  465. // ===================================================================
  466. void CodeGeneratorRequest::InitAsDefaultInstance() {
  467. PROTOBUF_NAMESPACE_ID::compiler::_CodeGeneratorRequest_default_instance_._instance.get_mutable()->compiler_version_ = const_cast< PROTOBUF_NAMESPACE_ID::compiler::Version*>(
  468. PROTOBUF_NAMESPACE_ID::compiler::Version::internal_default_instance());
  469. }
  470. class CodeGeneratorRequest::_Internal {
  471. public:
  472. using HasBits = decltype(std::declval<CodeGeneratorRequest>()._has_bits_);
  473. static void set_has_parameter(HasBits* has_bits) {
  474. (*has_bits)[0] |= 1u;
  475. }
  476. static const PROTOBUF_NAMESPACE_ID::compiler::Version& compiler_version(const CodeGeneratorRequest* msg);
  477. static void set_has_compiler_version(HasBits* has_bits) {
  478. (*has_bits)[0] |= 2u;
  479. }
  480. };
  481. const PROTOBUF_NAMESPACE_ID::compiler::Version&
  482. CodeGeneratorRequest::_Internal::compiler_version(const CodeGeneratorRequest* msg) {
  483. return *msg->compiler_version_;
  484. }
  485. void CodeGeneratorRequest::clear_proto_file() {
  486. proto_file_.Clear();
  487. }
  488. CodeGeneratorRequest::CodeGeneratorRequest()
  489. : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
  490. SharedCtor();
  491. // @@protoc_insertion_point(constructor:google.protobuf.compiler.CodeGeneratorRequest)
  492. }
  493. CodeGeneratorRequest::CodeGeneratorRequest(const CodeGeneratorRequest& from)
  494. : ::PROTOBUF_NAMESPACE_ID::Message(),
  495. _internal_metadata_(nullptr),
  496. _has_bits_(from._has_bits_),
  497. file_to_generate_(from.file_to_generate_),
  498. proto_file_(from.proto_file_) {
  499. _internal_metadata_.MergeFrom(from._internal_metadata_);
  500. parameter_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  501. if (from._internal_has_parameter()) {
  502. parameter_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.parameter_);
  503. }
  504. if (from._internal_has_compiler_version()) {
  505. compiler_version_ = new PROTOBUF_NAMESPACE_ID::compiler::Version(*from.compiler_version_);
  506. } else {
  507. compiler_version_ = nullptr;
  508. }
  509. // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGeneratorRequest)
  510. }
  511. void CodeGeneratorRequest::SharedCtor() {
  512. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CodeGeneratorRequest_google_2fprotobuf_2fcompiler_2fplugin_2eproto.base);
  513. parameter_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  514. compiler_version_ = nullptr;
  515. }
  516. CodeGeneratorRequest::~CodeGeneratorRequest() {
  517. // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorRequest)
  518. SharedDtor();
  519. }
  520. void CodeGeneratorRequest::SharedDtor() {
  521. parameter_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  522. if (this != internal_default_instance()) delete compiler_version_;
  523. }
  524. void CodeGeneratorRequest::SetCachedSize(int size) const {
  525. _cached_size_.Set(size);
  526. }
  527. const CodeGeneratorRequest& CodeGeneratorRequest::default_instance() {
  528. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CodeGeneratorRequest_google_2fprotobuf_2fcompiler_2fplugin_2eproto.base);
  529. return *internal_default_instance();
  530. }
  531. void CodeGeneratorRequest::Clear() {
  532. // @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.CodeGeneratorRequest)
  533. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  534. // Prevent compiler warnings about cached_has_bits being unused
  535. (void) cached_has_bits;
  536. file_to_generate_.Clear();
  537. proto_file_.Clear();
  538. cached_has_bits = _has_bits_[0];
  539. if (cached_has_bits & 0x00000003u) {
  540. if (cached_has_bits & 0x00000001u) {
  541. parameter_.ClearNonDefaultToEmptyNoArena();
  542. }
  543. if (cached_has_bits & 0x00000002u) {
  544. GOOGLE_DCHECK(compiler_version_ != nullptr);
  545. compiler_version_->Clear();
  546. }
  547. }
  548. _has_bits_.Clear();
  549. _internal_metadata_.Clear();
  550. }
  551. const char* CodeGeneratorRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  552. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  553. _Internal::HasBits has_bits{};
  554. while (!ctx->Done(&ptr)) {
  555. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  556. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  557. CHK_(ptr);
  558. switch (tag >> 3) {
  559. // repeated string file_to_generate = 1;
  560. case 1:
  561. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
  562. ptr -= 1;
  563. do {
  564. ptr += 1;
  565. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(_internal_add_file_to_generate(), ptr, ctx, "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate");
  566. CHK_(ptr);
  567. if (!ctx->DataAvailable(ptr)) break;
  568. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  569. } else goto handle_unusual;
  570. continue;
  571. // optional string parameter = 2;
  572. case 2:
  573. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
  574. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(_internal_mutable_parameter(), ptr, ctx, "google.protobuf.compiler.CodeGeneratorRequest.parameter");
  575. CHK_(ptr);
  576. } else goto handle_unusual;
  577. continue;
  578. // optional .google.protobuf.compiler.Version compiler_version = 3;
  579. case 3:
  580. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
  581. ptr = ctx->ParseMessage(_internal_mutable_compiler_version(), ptr);
  582. CHK_(ptr);
  583. } else goto handle_unusual;
  584. continue;
  585. // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
  586. case 15:
  587. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 122)) {
  588. ptr -= 1;
  589. do {
  590. ptr += 1;
  591. ptr = ctx->ParseMessage(_internal_add_proto_file(), ptr);
  592. CHK_(ptr);
  593. if (!ctx->DataAvailable(ptr)) break;
  594. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<122>(ptr));
  595. } else goto handle_unusual;
  596. continue;
  597. default: {
  598. handle_unusual:
  599. if ((tag & 7) == 4 || tag == 0) {
  600. ctx->SetLastTag(tag);
  601. goto success;
  602. }
  603. ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
  604. CHK_(ptr != nullptr);
  605. continue;
  606. }
  607. } // switch
  608. } // while
  609. success:
  610. _has_bits_.Or(has_bits);
  611. return ptr;
  612. failure:
  613. ptr = nullptr;
  614. goto success;
  615. #undef CHK_
  616. }
  617. ::PROTOBUF_NAMESPACE_ID::uint8* CodeGeneratorRequest::InternalSerializeWithCachedSizesToArray(
  618. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  619. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.CodeGeneratorRequest)
  620. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  621. (void) cached_has_bits;
  622. // repeated string file_to_generate = 1;
  623. for (int i = 0, n = this->_internal_file_to_generate_size(); i < n; i++) {
  624. const auto& s = this->_internal_file_to_generate(i);
  625. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
  626. s.data(), static_cast<int>(s.length()),
  627. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
  628. "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate");
  629. target = stream->WriteString(1, s, target);
  630. }
  631. cached_has_bits = _has_bits_[0];
  632. // optional string parameter = 2;
  633. if (cached_has_bits & 0x00000001u) {
  634. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
  635. this->_internal_parameter().data(), static_cast<int>(this->_internal_parameter().length()),
  636. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
  637. "google.protobuf.compiler.CodeGeneratorRequest.parameter");
  638. target = stream->WriteStringMaybeAliased(
  639. 2, this->_internal_parameter(), target);
  640. }
  641. // optional .google.protobuf.compiler.Version compiler_version = 3;
  642. if (cached_has_bits & 0x00000002u) {
  643. target = stream->EnsureSpace(target);
  644. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  645. InternalWriteMessageToArray(
  646. 3, _Internal::compiler_version(this), target, stream);
  647. }
  648. // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
  649. for (unsigned int i = 0,
  650. n = static_cast<unsigned int>(this->_internal_proto_file_size()); i < n; i++) {
  651. target = stream->EnsureSpace(target);
  652. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  653. InternalWriteMessageToArray(15, this->_internal_proto_file(i), target, stream);
  654. }
  655. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  656. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  657. _internal_metadata_.unknown_fields(), target, stream);
  658. }
  659. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.CodeGeneratorRequest)
  660. return target;
  661. }
  662. size_t CodeGeneratorRequest::ByteSizeLong() const {
  663. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.CodeGeneratorRequest)
  664. size_t total_size = 0;
  665. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  666. // Prevent compiler warnings about cached_has_bits being unused
  667. (void) cached_has_bits;
  668. // repeated string file_to_generate = 1;
  669. total_size += 1 *
  670. ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(file_to_generate_.size());
  671. for (int i = 0, n = file_to_generate_.size(); i < n; i++) {
  672. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  673. file_to_generate_.Get(i));
  674. }
  675. // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
  676. total_size += 1UL * this->_internal_proto_file_size();
  677. for (const auto& msg : this->proto_file_) {
  678. total_size +=
  679. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  680. }
  681. cached_has_bits = _has_bits_[0];
  682. if (cached_has_bits & 0x00000003u) {
  683. // optional string parameter = 2;
  684. if (cached_has_bits & 0x00000001u) {
  685. total_size += 1 +
  686. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  687. this->_internal_parameter());
  688. }
  689. // optional .google.protobuf.compiler.Version compiler_version = 3;
  690. if (cached_has_bits & 0x00000002u) {
  691. total_size += 1 +
  692. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  693. *compiler_version_);
  694. }
  695. }
  696. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  697. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  698. _internal_metadata_, total_size, &_cached_size_);
  699. }
  700. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  701. SetCachedSize(cached_size);
  702. return total_size;
  703. }
  704. void CodeGeneratorRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  705. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.compiler.CodeGeneratorRequest)
  706. GOOGLE_DCHECK_NE(&from, this);
  707. const CodeGeneratorRequest* source =
  708. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CodeGeneratorRequest>(
  709. &from);
  710. if (source == nullptr) {
  711. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.compiler.CodeGeneratorRequest)
  712. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  713. } else {
  714. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.compiler.CodeGeneratorRequest)
  715. MergeFrom(*source);
  716. }
  717. }
  718. void CodeGeneratorRequest::MergeFrom(const CodeGeneratorRequest& from) {
  719. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.compiler.CodeGeneratorRequest)
  720. GOOGLE_DCHECK_NE(&from, this);
  721. _internal_metadata_.MergeFrom(from._internal_metadata_);
  722. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  723. (void) cached_has_bits;
  724. file_to_generate_.MergeFrom(from.file_to_generate_);
  725. proto_file_.MergeFrom(from.proto_file_);
  726. cached_has_bits = from._has_bits_[0];
  727. if (cached_has_bits & 0x00000003u) {
  728. if (cached_has_bits & 0x00000001u) {
  729. _has_bits_[0] |= 0x00000001u;
  730. parameter_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.parameter_);
  731. }
  732. if (cached_has_bits & 0x00000002u) {
  733. _internal_mutable_compiler_version()->PROTOBUF_NAMESPACE_ID::compiler::Version::MergeFrom(from._internal_compiler_version());
  734. }
  735. }
  736. }
  737. void CodeGeneratorRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  738. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.compiler.CodeGeneratorRequest)
  739. if (&from == this) return;
  740. Clear();
  741. MergeFrom(from);
  742. }
  743. void CodeGeneratorRequest::CopyFrom(const CodeGeneratorRequest& from) {
  744. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.compiler.CodeGeneratorRequest)
  745. if (&from == this) return;
  746. Clear();
  747. MergeFrom(from);
  748. }
  749. bool CodeGeneratorRequest::IsInitialized() const {
  750. if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(this->proto_file())) return false;
  751. return true;
  752. }
  753. void CodeGeneratorRequest::InternalSwap(CodeGeneratorRequest* other) {
  754. using std::swap;
  755. _internal_metadata_.Swap(&other->_internal_metadata_);
  756. swap(_has_bits_[0], other->_has_bits_[0]);
  757. file_to_generate_.InternalSwap(&other->file_to_generate_);
  758. proto_file_.InternalSwap(&other->proto_file_);
  759. parameter_.Swap(&other->parameter_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  760. GetArenaNoVirtual());
  761. swap(compiler_version_, other->compiler_version_);
  762. }
  763. ::PROTOBUF_NAMESPACE_ID::Metadata CodeGeneratorRequest::GetMetadata() const {
  764. return GetMetadataStatic();
  765. }
  766. // ===================================================================
  767. void CodeGeneratorResponse_File::InitAsDefaultInstance() {
  768. }
  769. class CodeGeneratorResponse_File::_Internal {
  770. public:
  771. using HasBits = decltype(std::declval<CodeGeneratorResponse_File>()._has_bits_);
  772. static void set_has_name(HasBits* has_bits) {
  773. (*has_bits)[0] |= 1u;
  774. }
  775. static void set_has_insertion_point(HasBits* has_bits) {
  776. (*has_bits)[0] |= 2u;
  777. }
  778. static void set_has_content(HasBits* has_bits) {
  779. (*has_bits)[0] |= 4u;
  780. }
  781. };
  782. CodeGeneratorResponse_File::CodeGeneratorResponse_File()
  783. : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
  784. SharedCtor();
  785. // @@protoc_insertion_point(constructor:google.protobuf.compiler.CodeGeneratorResponse.File)
  786. }
  787. CodeGeneratorResponse_File::CodeGeneratorResponse_File(const CodeGeneratorResponse_File& from)
  788. : ::PROTOBUF_NAMESPACE_ID::Message(),
  789. _internal_metadata_(nullptr),
  790. _has_bits_(from._has_bits_) {
  791. _internal_metadata_.MergeFrom(from._internal_metadata_);
  792. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  793. if (from._internal_has_name()) {
  794. name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_);
  795. }
  796. insertion_point_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  797. if (from._internal_has_insertion_point()) {
  798. insertion_point_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.insertion_point_);
  799. }
  800. content_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  801. if (from._internal_has_content()) {
  802. content_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.content_);
  803. }
  804. // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGeneratorResponse.File)
  805. }
  806. void CodeGeneratorResponse_File::SharedCtor() {
  807. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CodeGeneratorResponse_File_google_2fprotobuf_2fcompiler_2fplugin_2eproto.base);
  808. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  809. insertion_point_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  810. content_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  811. }
  812. CodeGeneratorResponse_File::~CodeGeneratorResponse_File() {
  813. // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorResponse.File)
  814. SharedDtor();
  815. }
  816. void CodeGeneratorResponse_File::SharedDtor() {
  817. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  818. insertion_point_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  819. content_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  820. }
  821. void CodeGeneratorResponse_File::SetCachedSize(int size) const {
  822. _cached_size_.Set(size);
  823. }
  824. const CodeGeneratorResponse_File& CodeGeneratorResponse_File::default_instance() {
  825. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CodeGeneratorResponse_File_google_2fprotobuf_2fcompiler_2fplugin_2eproto.base);
  826. return *internal_default_instance();
  827. }
  828. void CodeGeneratorResponse_File::Clear() {
  829. // @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.CodeGeneratorResponse.File)
  830. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  831. // Prevent compiler warnings about cached_has_bits being unused
  832. (void) cached_has_bits;
  833. cached_has_bits = _has_bits_[0];
  834. if (cached_has_bits & 0x00000007u) {
  835. if (cached_has_bits & 0x00000001u) {
  836. name_.ClearNonDefaultToEmptyNoArena();
  837. }
  838. if (cached_has_bits & 0x00000002u) {
  839. insertion_point_.ClearNonDefaultToEmptyNoArena();
  840. }
  841. if (cached_has_bits & 0x00000004u) {
  842. content_.ClearNonDefaultToEmptyNoArena();
  843. }
  844. }
  845. _has_bits_.Clear();
  846. _internal_metadata_.Clear();
  847. }
  848. const char* CodeGeneratorResponse_File::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  849. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  850. _Internal::HasBits has_bits{};
  851. while (!ctx->Done(&ptr)) {
  852. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  853. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  854. CHK_(ptr);
  855. switch (tag >> 3) {
  856. // optional string name = 1;
  857. case 1:
  858. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
  859. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(_internal_mutable_name(), ptr, ctx, "google.protobuf.compiler.CodeGeneratorResponse.File.name");
  860. CHK_(ptr);
  861. } else goto handle_unusual;
  862. continue;
  863. // optional string insertion_point = 2;
  864. case 2:
  865. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
  866. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(_internal_mutable_insertion_point(), ptr, ctx, "google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point");
  867. CHK_(ptr);
  868. } else goto handle_unusual;
  869. continue;
  870. // optional string content = 15;
  871. case 15:
  872. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 122)) {
  873. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(_internal_mutable_content(), ptr, ctx, "google.protobuf.compiler.CodeGeneratorResponse.File.content");
  874. CHK_(ptr);
  875. } else goto handle_unusual;
  876. continue;
  877. default: {
  878. handle_unusual:
  879. if ((tag & 7) == 4 || tag == 0) {
  880. ctx->SetLastTag(tag);
  881. goto success;
  882. }
  883. ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
  884. CHK_(ptr != nullptr);
  885. continue;
  886. }
  887. } // switch
  888. } // while
  889. success:
  890. _has_bits_.Or(has_bits);
  891. return ptr;
  892. failure:
  893. ptr = nullptr;
  894. goto success;
  895. #undef CHK_
  896. }
  897. ::PROTOBUF_NAMESPACE_ID::uint8* CodeGeneratorResponse_File::InternalSerializeWithCachedSizesToArray(
  898. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  899. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.CodeGeneratorResponse.File)
  900. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  901. (void) cached_has_bits;
  902. cached_has_bits = _has_bits_[0];
  903. // optional string name = 1;
  904. if (cached_has_bits & 0x00000001u) {
  905. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
  906. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  907. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
  908. "google.protobuf.compiler.CodeGeneratorResponse.File.name");
  909. target = stream->WriteStringMaybeAliased(
  910. 1, this->_internal_name(), target);
  911. }
  912. // optional string insertion_point = 2;
  913. if (cached_has_bits & 0x00000002u) {
  914. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
  915. this->_internal_insertion_point().data(), static_cast<int>(this->_internal_insertion_point().length()),
  916. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
  917. "google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point");
  918. target = stream->WriteStringMaybeAliased(
  919. 2, this->_internal_insertion_point(), target);
  920. }
  921. // optional string content = 15;
  922. if (cached_has_bits & 0x00000004u) {
  923. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
  924. this->_internal_content().data(), static_cast<int>(this->_internal_content().length()),
  925. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
  926. "google.protobuf.compiler.CodeGeneratorResponse.File.content");
  927. target = stream->WriteStringMaybeAliased(
  928. 15, this->_internal_content(), target);
  929. }
  930. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  931. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  932. _internal_metadata_.unknown_fields(), target, stream);
  933. }
  934. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.CodeGeneratorResponse.File)
  935. return target;
  936. }
  937. size_t CodeGeneratorResponse_File::ByteSizeLong() const {
  938. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.CodeGeneratorResponse.File)
  939. size_t total_size = 0;
  940. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  941. // Prevent compiler warnings about cached_has_bits being unused
  942. (void) cached_has_bits;
  943. cached_has_bits = _has_bits_[0];
  944. if (cached_has_bits & 0x00000007u) {
  945. // optional string name = 1;
  946. if (cached_has_bits & 0x00000001u) {
  947. total_size += 1 +
  948. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  949. this->_internal_name());
  950. }
  951. // optional string insertion_point = 2;
  952. if (cached_has_bits & 0x00000002u) {
  953. total_size += 1 +
  954. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  955. this->_internal_insertion_point());
  956. }
  957. // optional string content = 15;
  958. if (cached_has_bits & 0x00000004u) {
  959. total_size += 1 +
  960. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  961. this->_internal_content());
  962. }
  963. }
  964. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  965. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  966. _internal_metadata_, total_size, &_cached_size_);
  967. }
  968. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  969. SetCachedSize(cached_size);
  970. return total_size;
  971. }
  972. void CodeGeneratorResponse_File::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  973. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.compiler.CodeGeneratorResponse.File)
  974. GOOGLE_DCHECK_NE(&from, this);
  975. const CodeGeneratorResponse_File* source =
  976. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CodeGeneratorResponse_File>(
  977. &from);
  978. if (source == nullptr) {
  979. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.compiler.CodeGeneratorResponse.File)
  980. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  981. } else {
  982. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.compiler.CodeGeneratorResponse.File)
  983. MergeFrom(*source);
  984. }
  985. }
  986. void CodeGeneratorResponse_File::MergeFrom(const CodeGeneratorResponse_File& from) {
  987. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.compiler.CodeGeneratorResponse.File)
  988. GOOGLE_DCHECK_NE(&from, this);
  989. _internal_metadata_.MergeFrom(from._internal_metadata_);
  990. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  991. (void) cached_has_bits;
  992. cached_has_bits = from._has_bits_[0];
  993. if (cached_has_bits & 0x00000007u) {
  994. if (cached_has_bits & 0x00000001u) {
  995. _has_bits_[0] |= 0x00000001u;
  996. name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_);
  997. }
  998. if (cached_has_bits & 0x00000002u) {
  999. _has_bits_[0] |= 0x00000002u;
  1000. insertion_point_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.insertion_point_);
  1001. }
  1002. if (cached_has_bits & 0x00000004u) {
  1003. _has_bits_[0] |= 0x00000004u;
  1004. content_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.content_);
  1005. }
  1006. }
  1007. }
  1008. void CodeGeneratorResponse_File::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1009. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.compiler.CodeGeneratorResponse.File)
  1010. if (&from == this) return;
  1011. Clear();
  1012. MergeFrom(from);
  1013. }
  1014. void CodeGeneratorResponse_File::CopyFrom(const CodeGeneratorResponse_File& from) {
  1015. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.compiler.CodeGeneratorResponse.File)
  1016. if (&from == this) return;
  1017. Clear();
  1018. MergeFrom(from);
  1019. }
  1020. bool CodeGeneratorResponse_File::IsInitialized() const {
  1021. return true;
  1022. }
  1023. void CodeGeneratorResponse_File::InternalSwap(CodeGeneratorResponse_File* other) {
  1024. using std::swap;
  1025. _internal_metadata_.Swap(&other->_internal_metadata_);
  1026. swap(_has_bits_[0], other->_has_bits_[0]);
  1027. name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1028. GetArenaNoVirtual());
  1029. insertion_point_.Swap(&other->insertion_point_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1030. GetArenaNoVirtual());
  1031. content_.Swap(&other->content_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1032. GetArenaNoVirtual());
  1033. }
  1034. ::PROTOBUF_NAMESPACE_ID::Metadata CodeGeneratorResponse_File::GetMetadata() const {
  1035. return GetMetadataStatic();
  1036. }
  1037. // ===================================================================
  1038. void CodeGeneratorResponse::InitAsDefaultInstance() {
  1039. }
  1040. class CodeGeneratorResponse::_Internal {
  1041. public:
  1042. using HasBits = decltype(std::declval<CodeGeneratorResponse>()._has_bits_);
  1043. static void set_has_error(HasBits* has_bits) {
  1044. (*has_bits)[0] |= 1u;
  1045. }
  1046. };
  1047. CodeGeneratorResponse::CodeGeneratorResponse()
  1048. : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
  1049. SharedCtor();
  1050. // @@protoc_insertion_point(constructor:google.protobuf.compiler.CodeGeneratorResponse)
  1051. }
  1052. CodeGeneratorResponse::CodeGeneratorResponse(const CodeGeneratorResponse& from)
  1053. : ::PROTOBUF_NAMESPACE_ID::Message(),
  1054. _internal_metadata_(nullptr),
  1055. _has_bits_(from._has_bits_),
  1056. file_(from.file_) {
  1057. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1058. error_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1059. if (from._internal_has_error()) {
  1060. error_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.error_);
  1061. }
  1062. // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGeneratorResponse)
  1063. }
  1064. void CodeGeneratorResponse::SharedCtor() {
  1065. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CodeGeneratorResponse_google_2fprotobuf_2fcompiler_2fplugin_2eproto.base);
  1066. error_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1067. }
  1068. CodeGeneratorResponse::~CodeGeneratorResponse() {
  1069. // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorResponse)
  1070. SharedDtor();
  1071. }
  1072. void CodeGeneratorResponse::SharedDtor() {
  1073. error_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1074. }
  1075. void CodeGeneratorResponse::SetCachedSize(int size) const {
  1076. _cached_size_.Set(size);
  1077. }
  1078. const CodeGeneratorResponse& CodeGeneratorResponse::default_instance() {
  1079. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CodeGeneratorResponse_google_2fprotobuf_2fcompiler_2fplugin_2eproto.base);
  1080. return *internal_default_instance();
  1081. }
  1082. void CodeGeneratorResponse::Clear() {
  1083. // @@protoc_insertion_point(message_clear_start:google.protobuf.compiler.CodeGeneratorResponse)
  1084. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1085. // Prevent compiler warnings about cached_has_bits being unused
  1086. (void) cached_has_bits;
  1087. file_.Clear();
  1088. cached_has_bits = _has_bits_[0];
  1089. if (cached_has_bits & 0x00000001u) {
  1090. error_.ClearNonDefaultToEmptyNoArena();
  1091. }
  1092. _has_bits_.Clear();
  1093. _internal_metadata_.Clear();
  1094. }
  1095. const char* CodeGeneratorResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1096. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1097. _Internal::HasBits has_bits{};
  1098. while (!ctx->Done(&ptr)) {
  1099. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  1100. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1101. CHK_(ptr);
  1102. switch (tag >> 3) {
  1103. // optional string error = 1;
  1104. case 1:
  1105. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
  1106. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8Verify(_internal_mutable_error(), ptr, ctx, "google.protobuf.compiler.CodeGeneratorResponse.error");
  1107. CHK_(ptr);
  1108. } else goto handle_unusual;
  1109. continue;
  1110. // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
  1111. case 15:
  1112. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 122)) {
  1113. ptr -= 1;
  1114. do {
  1115. ptr += 1;
  1116. ptr = ctx->ParseMessage(_internal_add_file(), ptr);
  1117. CHK_(ptr);
  1118. if (!ctx->DataAvailable(ptr)) break;
  1119. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<122>(ptr));
  1120. } else goto handle_unusual;
  1121. continue;
  1122. default: {
  1123. handle_unusual:
  1124. if ((tag & 7) == 4 || tag == 0) {
  1125. ctx->SetLastTag(tag);
  1126. goto success;
  1127. }
  1128. ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
  1129. CHK_(ptr != nullptr);
  1130. continue;
  1131. }
  1132. } // switch
  1133. } // while
  1134. success:
  1135. _has_bits_.Or(has_bits);
  1136. return ptr;
  1137. failure:
  1138. ptr = nullptr;
  1139. goto success;
  1140. #undef CHK_
  1141. }
  1142. ::PROTOBUF_NAMESPACE_ID::uint8* CodeGeneratorResponse::InternalSerializeWithCachedSizesToArray(
  1143. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1144. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.CodeGeneratorResponse)
  1145. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1146. (void) cached_has_bits;
  1147. cached_has_bits = _has_bits_[0];
  1148. // optional string error = 1;
  1149. if (cached_has_bits & 0x00000001u) {
  1150. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
  1151. this->_internal_error().data(), static_cast<int>(this->_internal_error().length()),
  1152. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
  1153. "google.protobuf.compiler.CodeGeneratorResponse.error");
  1154. target = stream->WriteStringMaybeAliased(
  1155. 1, this->_internal_error(), target);
  1156. }
  1157. // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
  1158. for (unsigned int i = 0,
  1159. n = static_cast<unsigned int>(this->_internal_file_size()); i < n; i++) {
  1160. target = stream->EnsureSpace(target);
  1161. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  1162. InternalWriteMessageToArray(15, this->_internal_file(i), target, stream);
  1163. }
  1164. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1165. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1166. _internal_metadata_.unknown_fields(), target, stream);
  1167. }
  1168. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.compiler.CodeGeneratorResponse)
  1169. return target;
  1170. }
  1171. size_t CodeGeneratorResponse::ByteSizeLong() const {
  1172. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.compiler.CodeGeneratorResponse)
  1173. size_t total_size = 0;
  1174. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1175. // Prevent compiler warnings about cached_has_bits being unused
  1176. (void) cached_has_bits;
  1177. // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
  1178. total_size += 1UL * this->_internal_file_size();
  1179. for (const auto& msg : this->file_) {
  1180. total_size +=
  1181. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  1182. }
  1183. // optional string error = 1;
  1184. cached_has_bits = _has_bits_[0];
  1185. if (cached_has_bits & 0x00000001u) {
  1186. total_size += 1 +
  1187. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1188. this->_internal_error());
  1189. }
  1190. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1191. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  1192. _internal_metadata_, total_size, &_cached_size_);
  1193. }
  1194. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  1195. SetCachedSize(cached_size);
  1196. return total_size;
  1197. }
  1198. void CodeGeneratorResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1199. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.compiler.CodeGeneratorResponse)
  1200. GOOGLE_DCHECK_NE(&from, this);
  1201. const CodeGeneratorResponse* source =
  1202. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CodeGeneratorResponse>(
  1203. &from);
  1204. if (source == nullptr) {
  1205. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.compiler.CodeGeneratorResponse)
  1206. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  1207. } else {
  1208. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.compiler.CodeGeneratorResponse)
  1209. MergeFrom(*source);
  1210. }
  1211. }
  1212. void CodeGeneratorResponse::MergeFrom(const CodeGeneratorResponse& from) {
  1213. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.compiler.CodeGeneratorResponse)
  1214. GOOGLE_DCHECK_NE(&from, this);
  1215. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1216. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1217. (void) cached_has_bits;
  1218. file_.MergeFrom(from.file_);
  1219. if (from._internal_has_error()) {
  1220. _has_bits_[0] |= 0x00000001u;
  1221. error_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.error_);
  1222. }
  1223. }
  1224. void CodeGeneratorResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1225. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.compiler.CodeGeneratorResponse)
  1226. if (&from == this) return;
  1227. Clear();
  1228. MergeFrom(from);
  1229. }
  1230. void CodeGeneratorResponse::CopyFrom(const CodeGeneratorResponse& from) {
  1231. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.compiler.CodeGeneratorResponse)
  1232. if (&from == this) return;
  1233. Clear();
  1234. MergeFrom(from);
  1235. }
  1236. bool CodeGeneratorResponse::IsInitialized() const {
  1237. return true;
  1238. }
  1239. void CodeGeneratorResponse::InternalSwap(CodeGeneratorResponse* other) {
  1240. using std::swap;
  1241. _internal_metadata_.Swap(&other->_internal_metadata_);
  1242. swap(_has_bits_[0], other->_has_bits_[0]);
  1243. file_.InternalSwap(&other->file_);
  1244. error_.Swap(&other->error_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1245. GetArenaNoVirtual());
  1246. }
  1247. ::PROTOBUF_NAMESPACE_ID::Metadata CodeGeneratorResponse::GetMetadata() const {
  1248. return GetMetadataStatic();
  1249. }
  1250. // @@protoc_insertion_point(namespace_scope)
  1251. } // namespace compiler
  1252. PROTOBUF_NAMESPACE_CLOSE
  1253. PROTOBUF_NAMESPACE_OPEN
  1254. template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::compiler::Version* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::compiler::Version >(Arena* arena) {
  1255. return Arena::CreateInternal< PROTOBUF_NAMESPACE_ID::compiler::Version >(arena);
  1256. }
  1257. template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest >(Arena* arena) {
  1258. return Arena::CreateInternal< PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest >(arena);
  1259. }
  1260. template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File >(Arena* arena) {
  1261. return Arena::CreateInternal< PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File >(arena);
  1262. }
  1263. template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse >(Arena* arena) {
  1264. return Arena::CreateInternal< PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse >(arena);
  1265. }
  1266. PROTOBUF_NAMESPACE_CLOSE
  1267. // @@protoc_insertion_point(global_scope)
  1268. #include <google/protobuf/port_undef.inc>