PostLAMessages.pb.cc 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: PostLAMessages.proto
  3. #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
  4. #include "PostLAMessages.pb.h"
  5. #include <algorithm>
  6. #include <google/protobuf/stubs/common.h>
  7. #include <google/protobuf/stubs/once.h>
  8. #include <google/protobuf/io/coded_stream.h>
  9. #include <google/protobuf/wire_format_lite_inl.h>
  10. #include <google/protobuf/descriptor.h>
  11. #include <google/protobuf/generated_message_reflection.h>
  12. #include <google/protobuf/reflection_ops.h>
  13. #include <google/protobuf/wire_format.h>
  14. // @@protoc_insertion_point(includes)
  15. namespace {
  16. const ::google::protobuf::Descriptor* ciphertext_data_descriptor_ = NULL;
  17. const ::google::protobuf::internal::GeneratedMessageReflection*
  18. ciphertext_data_reflection_ = NULL;
  19. const ::google::protobuf::Descriptor* extension_to_decryptor_msg_descriptor_ = NULL;
  20. const ::google::protobuf::internal::GeneratedMessageReflection*
  21. extension_to_decryptor_msg_reflection_ = NULL;
  22. const ::google::protobuf::Descriptor* decryptor_to_extension_msg_descriptor_ = NULL;
  23. const ::google::protobuf::internal::GeneratedMessageReflection*
  24. decryptor_to_extension_msg_reflection_ = NULL;
  25. const ::google::protobuf::Descriptor* mitigator_header_descriptor_ = NULL;
  26. const ::google::protobuf::internal::GeneratedMessageReflection*
  27. mitigator_header_reflection_ = NULL;
  28. } // namespace
  29. void protobuf_AssignDesc_PostLAMessages_2eproto() {
  30. protobuf_AddDesc_PostLAMessages_2eproto();
  31. const ::google::protobuf::FileDescriptor* file =
  32. ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
  33. "PostLAMessages.proto");
  34. GOOGLE_CHECK(file != NULL);
  35. ciphertext_data_descriptor_ = file->message_type(0);
  36. static const int ciphertext_data_offsets_[1] = {
  37. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ciphertext_data, field_),
  38. };
  39. ciphertext_data_reflection_ =
  40. new ::google::protobuf::internal::GeneratedMessageReflection(
  41. ciphertext_data_descriptor_,
  42. ciphertext_data::default_instance_,
  43. ciphertext_data_offsets_,
  44. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ciphertext_data, _has_bits_[0]),
  45. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ciphertext_data, _unknown_fields_),
  46. -1,
  47. ::google::protobuf::DescriptorPool::generated_pool(),
  48. ::google::protobuf::MessageFactory::generated_factory(),
  49. sizeof(ciphertext_data));
  50. extension_to_decryptor_msg_descriptor_ = file->message_type(1);
  51. static const int extension_to_decryptor_msg_offsets_[2] = {
  52. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(extension_to_decryptor_msg, ciphertext_client_public_key_),
  53. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(extension_to_decryptor_msg, fields_),
  54. };
  55. extension_to_decryptor_msg_reflection_ =
  56. new ::google::protobuf::internal::GeneratedMessageReflection(
  57. extension_to_decryptor_msg_descriptor_,
  58. extension_to_decryptor_msg::default_instance_,
  59. extension_to_decryptor_msg_offsets_,
  60. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(extension_to_decryptor_msg, _has_bits_[0]),
  61. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(extension_to_decryptor_msg, _unknown_fields_),
  62. -1,
  63. ::google::protobuf::DescriptorPool::generated_pool(),
  64. ::google::protobuf::MessageFactory::generated_factory(),
  65. sizeof(extension_to_decryptor_msg));
  66. decryptor_to_extension_msg_descriptor_ = file->message_type(2);
  67. static const int decryptor_to_extension_msg_offsets_[1] = {
  68. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(decryptor_to_extension_msg, fields_),
  69. };
  70. decryptor_to_extension_msg_reflection_ =
  71. new ::google::protobuf::internal::GeneratedMessageReflection(
  72. decryptor_to_extension_msg_descriptor_,
  73. decryptor_to_extension_msg::default_instance_,
  74. decryptor_to_extension_msg_offsets_,
  75. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(decryptor_to_extension_msg, _has_bits_[0]),
  76. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(decryptor_to_extension_msg, _unknown_fields_),
  77. -1,
  78. ::google::protobuf::DescriptorPool::generated_pool(),
  79. ::google::protobuf::MessageFactory::generated_factory(),
  80. sizeof(decryptor_to_extension_msg));
  81. mitigator_header_descriptor_ = file->message_type(3);
  82. static const int mitigator_header_offsets_[2] = {
  83. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(mitigator_header, name_),
  84. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(mitigator_header, value_),
  85. };
  86. mitigator_header_reflection_ =
  87. new ::google::protobuf::internal::GeneratedMessageReflection(
  88. mitigator_header_descriptor_,
  89. mitigator_header::default_instance_,
  90. mitigator_header_offsets_,
  91. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(mitigator_header, _has_bits_[0]),
  92. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(mitigator_header, _unknown_fields_),
  93. -1,
  94. ::google::protobuf::DescriptorPool::generated_pool(),
  95. ::google::protobuf::MessageFactory::generated_factory(),
  96. sizeof(mitigator_header));
  97. }
  98. namespace {
  99. GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
  100. inline void protobuf_AssignDescriptorsOnce() {
  101. ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
  102. &protobuf_AssignDesc_PostLAMessages_2eproto);
  103. }
  104. void protobuf_RegisterTypes(const ::std::string&) {
  105. protobuf_AssignDescriptorsOnce();
  106. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  107. ciphertext_data_descriptor_, &ciphertext_data::default_instance());
  108. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  109. extension_to_decryptor_msg_descriptor_, &extension_to_decryptor_msg::default_instance());
  110. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  111. decryptor_to_extension_msg_descriptor_, &decryptor_to_extension_msg::default_instance());
  112. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  113. mitigator_header_descriptor_, &mitigator_header::default_instance());
  114. }
  115. } // namespace
  116. void protobuf_ShutdownFile_PostLAMessages_2eproto() {
  117. delete ciphertext_data::default_instance_;
  118. delete ciphertext_data_reflection_;
  119. delete extension_to_decryptor_msg::default_instance_;
  120. delete extension_to_decryptor_msg_reflection_;
  121. delete decryptor_to_extension_msg::default_instance_;
  122. delete decryptor_to_extension_msg_reflection_;
  123. delete mitigator_header::default_instance_;
  124. delete mitigator_header_reflection_;
  125. }
  126. void protobuf_AddDesc_PostLAMessages_2eproto() {
  127. static bool already_here = false;
  128. if (already_here) return;
  129. already_here = true;
  130. GOOGLE_PROTOBUF_VERIFY_VERSION;
  131. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  132. "\n\024PostLAMessages.proto\" \n\017ciphertext_dat"
  133. "a\022\r\n\005field\030\001 \002(\014\"d\n\032extension_to_decrypt"
  134. "or_msg\022$\n\034ciphertext_client_public_key\030\001"
  135. " \002(\014\022 \n\006fields\030\002 \003(\0132\020.ciphertext_data\">"
  136. "\n\032decryptor_to_extension_msg\022 \n\006fields\030\001"
  137. " \003(\0132\020.ciphertext_data\"/\n\020mitigator_head"
  138. "er\022\014\n\004name\030\001 \002(\014\022\r\n\005value\030\002 \002(\014", 271);
  139. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  140. "PostLAMessages.proto", &protobuf_RegisterTypes);
  141. ciphertext_data::default_instance_ = new ciphertext_data();
  142. extension_to_decryptor_msg::default_instance_ = new extension_to_decryptor_msg();
  143. decryptor_to_extension_msg::default_instance_ = new decryptor_to_extension_msg();
  144. mitigator_header::default_instance_ = new mitigator_header();
  145. ciphertext_data::default_instance_->InitAsDefaultInstance();
  146. extension_to_decryptor_msg::default_instance_->InitAsDefaultInstance();
  147. decryptor_to_extension_msg::default_instance_->InitAsDefaultInstance();
  148. mitigator_header::default_instance_->InitAsDefaultInstance();
  149. ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_PostLAMessages_2eproto);
  150. }
  151. // Force AddDescriptors() to be called at static initialization time.
  152. struct StaticDescriptorInitializer_PostLAMessages_2eproto {
  153. StaticDescriptorInitializer_PostLAMessages_2eproto() {
  154. protobuf_AddDesc_PostLAMessages_2eproto();
  155. }
  156. } static_descriptor_initializer_PostLAMessages_2eproto_;
  157. // ===================================================================
  158. #ifndef _MSC_VER
  159. const int ciphertext_data::kFieldFieldNumber;
  160. #endif // !_MSC_VER
  161. ciphertext_data::ciphertext_data()
  162. : ::google::protobuf::Message() {
  163. SharedCtor();
  164. // @@protoc_insertion_point(constructor:ciphertext_data)
  165. }
  166. void ciphertext_data::InitAsDefaultInstance() {
  167. }
  168. ciphertext_data::ciphertext_data(const ciphertext_data& from)
  169. : ::google::protobuf::Message() {
  170. SharedCtor();
  171. MergeFrom(from);
  172. // @@protoc_insertion_point(copy_constructor:ciphertext_data)
  173. }
  174. void ciphertext_data::SharedCtor() {
  175. ::google::protobuf::internal::GetEmptyString();
  176. _cached_size_ = 0;
  177. field_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  178. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  179. }
  180. ciphertext_data::~ciphertext_data() {
  181. // @@protoc_insertion_point(destructor:ciphertext_data)
  182. SharedDtor();
  183. }
  184. void ciphertext_data::SharedDtor() {
  185. if (field_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  186. delete field_;
  187. }
  188. if (this != default_instance_) {
  189. }
  190. }
  191. void ciphertext_data::SetCachedSize(int size) const {
  192. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  193. _cached_size_ = size;
  194. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  195. }
  196. const ::google::protobuf::Descriptor* ciphertext_data::descriptor() {
  197. protobuf_AssignDescriptorsOnce();
  198. return ciphertext_data_descriptor_;
  199. }
  200. const ciphertext_data& ciphertext_data::default_instance() {
  201. if (default_instance_ == NULL) protobuf_AddDesc_PostLAMessages_2eproto();
  202. return *default_instance_;
  203. }
  204. ciphertext_data* ciphertext_data::default_instance_ = NULL;
  205. ciphertext_data* ciphertext_data::New() const {
  206. return new ciphertext_data;
  207. }
  208. void ciphertext_data::Clear() {
  209. if (has_field()) {
  210. if (field_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  211. field_->clear();
  212. }
  213. }
  214. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  215. mutable_unknown_fields()->Clear();
  216. }
  217. bool ciphertext_data::MergePartialFromCodedStream(
  218. ::google::protobuf::io::CodedInputStream* input) {
  219. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  220. ::google::protobuf::uint32 tag;
  221. // @@protoc_insertion_point(parse_start:ciphertext_data)
  222. for (;;) {
  223. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
  224. tag = p.first;
  225. if (!p.second) goto handle_unusual;
  226. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  227. // required bytes field = 1;
  228. case 1: {
  229. if (tag == 10) {
  230. DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
  231. input, this->mutable_field()));
  232. } else {
  233. goto handle_unusual;
  234. }
  235. if (input->ExpectAtEnd()) goto success;
  236. break;
  237. }
  238. default: {
  239. handle_unusual:
  240. if (tag == 0 ||
  241. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  242. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  243. goto success;
  244. }
  245. DO_(::google::protobuf::internal::WireFormat::SkipField(
  246. input, tag, mutable_unknown_fields()));
  247. break;
  248. }
  249. }
  250. }
  251. success:
  252. // @@protoc_insertion_point(parse_success:ciphertext_data)
  253. return true;
  254. failure:
  255. // @@protoc_insertion_point(parse_failure:ciphertext_data)
  256. return false;
  257. #undef DO_
  258. }
  259. void ciphertext_data::SerializeWithCachedSizes(
  260. ::google::protobuf::io::CodedOutputStream* output) const {
  261. // @@protoc_insertion_point(serialize_start:ciphertext_data)
  262. // required bytes field = 1;
  263. if (has_field()) {
  264. ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
  265. 1, this->field(), output);
  266. }
  267. if (!unknown_fields().empty()) {
  268. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  269. unknown_fields(), output);
  270. }
  271. // @@protoc_insertion_point(serialize_end:ciphertext_data)
  272. }
  273. ::google::protobuf::uint8* ciphertext_data::SerializeWithCachedSizesToArray(
  274. ::google::protobuf::uint8* target) const {
  275. // @@protoc_insertion_point(serialize_to_array_start:ciphertext_data)
  276. // required bytes field = 1;
  277. if (has_field()) {
  278. target =
  279. ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
  280. 1, this->field(), target);
  281. }
  282. if (!unknown_fields().empty()) {
  283. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  284. unknown_fields(), target);
  285. }
  286. // @@protoc_insertion_point(serialize_to_array_end:ciphertext_data)
  287. return target;
  288. }
  289. int ciphertext_data::ByteSize() const {
  290. int total_size = 0;
  291. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  292. // required bytes field = 1;
  293. if (has_field()) {
  294. total_size += 1 +
  295. ::google::protobuf::internal::WireFormatLite::BytesSize(
  296. this->field());
  297. }
  298. }
  299. if (!unknown_fields().empty()) {
  300. total_size +=
  301. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  302. unknown_fields());
  303. }
  304. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  305. _cached_size_ = total_size;
  306. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  307. return total_size;
  308. }
  309. void ciphertext_data::MergeFrom(const ::google::protobuf::Message& from) {
  310. GOOGLE_CHECK_NE(&from, this);
  311. const ciphertext_data* source =
  312. ::google::protobuf::internal::dynamic_cast_if_available<const ciphertext_data*>(
  313. &from);
  314. if (source == NULL) {
  315. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  316. } else {
  317. MergeFrom(*source);
  318. }
  319. }
  320. void ciphertext_data::MergeFrom(const ciphertext_data& from) {
  321. GOOGLE_CHECK_NE(&from, this);
  322. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  323. if (from.has_field()) {
  324. set_field(from.field());
  325. }
  326. }
  327. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  328. }
  329. void ciphertext_data::CopyFrom(const ::google::protobuf::Message& from) {
  330. if (&from == this) return;
  331. Clear();
  332. MergeFrom(from);
  333. }
  334. void ciphertext_data::CopyFrom(const ciphertext_data& from) {
  335. if (&from == this) return;
  336. Clear();
  337. MergeFrom(from);
  338. }
  339. bool ciphertext_data::IsInitialized() const {
  340. if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
  341. return true;
  342. }
  343. void ciphertext_data::Swap(ciphertext_data* other) {
  344. if (other != this) {
  345. std::swap(field_, other->field_);
  346. std::swap(_has_bits_[0], other->_has_bits_[0]);
  347. _unknown_fields_.Swap(&other->_unknown_fields_);
  348. std::swap(_cached_size_, other->_cached_size_);
  349. }
  350. }
  351. ::google::protobuf::Metadata ciphertext_data::GetMetadata() const {
  352. protobuf_AssignDescriptorsOnce();
  353. ::google::protobuf::Metadata metadata;
  354. metadata.descriptor = ciphertext_data_descriptor_;
  355. metadata.reflection = ciphertext_data_reflection_;
  356. return metadata;
  357. }
  358. // ===================================================================
  359. #ifndef _MSC_VER
  360. const int extension_to_decryptor_msg::kCiphertextClientPublicKeyFieldNumber;
  361. const int extension_to_decryptor_msg::kFieldsFieldNumber;
  362. #endif // !_MSC_VER
  363. extension_to_decryptor_msg::extension_to_decryptor_msg()
  364. : ::google::protobuf::Message() {
  365. SharedCtor();
  366. // @@protoc_insertion_point(constructor:extension_to_decryptor_msg)
  367. }
  368. void extension_to_decryptor_msg::InitAsDefaultInstance() {
  369. }
  370. extension_to_decryptor_msg::extension_to_decryptor_msg(const extension_to_decryptor_msg& from)
  371. : ::google::protobuf::Message() {
  372. SharedCtor();
  373. MergeFrom(from);
  374. // @@protoc_insertion_point(copy_constructor:extension_to_decryptor_msg)
  375. }
  376. void extension_to_decryptor_msg::SharedCtor() {
  377. ::google::protobuf::internal::GetEmptyString();
  378. _cached_size_ = 0;
  379. ciphertext_client_public_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  380. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  381. }
  382. extension_to_decryptor_msg::~extension_to_decryptor_msg() {
  383. // @@protoc_insertion_point(destructor:extension_to_decryptor_msg)
  384. SharedDtor();
  385. }
  386. void extension_to_decryptor_msg::SharedDtor() {
  387. if (ciphertext_client_public_key_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  388. delete ciphertext_client_public_key_;
  389. }
  390. if (this != default_instance_) {
  391. }
  392. }
  393. void extension_to_decryptor_msg::SetCachedSize(int size) const {
  394. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  395. _cached_size_ = size;
  396. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  397. }
  398. const ::google::protobuf::Descriptor* extension_to_decryptor_msg::descriptor() {
  399. protobuf_AssignDescriptorsOnce();
  400. return extension_to_decryptor_msg_descriptor_;
  401. }
  402. const extension_to_decryptor_msg& extension_to_decryptor_msg::default_instance() {
  403. if (default_instance_ == NULL) protobuf_AddDesc_PostLAMessages_2eproto();
  404. return *default_instance_;
  405. }
  406. extension_to_decryptor_msg* extension_to_decryptor_msg::default_instance_ = NULL;
  407. extension_to_decryptor_msg* extension_to_decryptor_msg::New() const {
  408. return new extension_to_decryptor_msg;
  409. }
  410. void extension_to_decryptor_msg::Clear() {
  411. if (has_ciphertext_client_public_key()) {
  412. if (ciphertext_client_public_key_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  413. ciphertext_client_public_key_->clear();
  414. }
  415. }
  416. fields_.Clear();
  417. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  418. mutable_unknown_fields()->Clear();
  419. }
  420. bool extension_to_decryptor_msg::MergePartialFromCodedStream(
  421. ::google::protobuf::io::CodedInputStream* input) {
  422. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  423. ::google::protobuf::uint32 tag;
  424. // @@protoc_insertion_point(parse_start:extension_to_decryptor_msg)
  425. for (;;) {
  426. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
  427. tag = p.first;
  428. if (!p.second) goto handle_unusual;
  429. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  430. // required bytes ciphertext_client_public_key = 1;
  431. case 1: {
  432. if (tag == 10) {
  433. DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
  434. input, this->mutable_ciphertext_client_public_key()));
  435. } else {
  436. goto handle_unusual;
  437. }
  438. if (input->ExpectTag(18)) goto parse_fields;
  439. break;
  440. }
  441. // repeated .ciphertext_data fields = 2;
  442. case 2: {
  443. if (tag == 18) {
  444. parse_fields:
  445. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  446. input, add_fields()));
  447. } else {
  448. goto handle_unusual;
  449. }
  450. if (input->ExpectTag(18)) goto parse_fields;
  451. if (input->ExpectAtEnd()) goto success;
  452. break;
  453. }
  454. default: {
  455. handle_unusual:
  456. if (tag == 0 ||
  457. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  458. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  459. goto success;
  460. }
  461. DO_(::google::protobuf::internal::WireFormat::SkipField(
  462. input, tag, mutable_unknown_fields()));
  463. break;
  464. }
  465. }
  466. }
  467. success:
  468. // @@protoc_insertion_point(parse_success:extension_to_decryptor_msg)
  469. return true;
  470. failure:
  471. // @@protoc_insertion_point(parse_failure:extension_to_decryptor_msg)
  472. return false;
  473. #undef DO_
  474. }
  475. void extension_to_decryptor_msg::SerializeWithCachedSizes(
  476. ::google::protobuf::io::CodedOutputStream* output) const {
  477. // @@protoc_insertion_point(serialize_start:extension_to_decryptor_msg)
  478. // required bytes ciphertext_client_public_key = 1;
  479. if (has_ciphertext_client_public_key()) {
  480. ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
  481. 1, this->ciphertext_client_public_key(), output);
  482. }
  483. // repeated .ciphertext_data fields = 2;
  484. for (int i = 0; i < this->fields_size(); i++) {
  485. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  486. 2, this->fields(i), output);
  487. }
  488. if (!unknown_fields().empty()) {
  489. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  490. unknown_fields(), output);
  491. }
  492. // @@protoc_insertion_point(serialize_end:extension_to_decryptor_msg)
  493. }
  494. ::google::protobuf::uint8* extension_to_decryptor_msg::SerializeWithCachedSizesToArray(
  495. ::google::protobuf::uint8* target) const {
  496. // @@protoc_insertion_point(serialize_to_array_start:extension_to_decryptor_msg)
  497. // required bytes ciphertext_client_public_key = 1;
  498. if (has_ciphertext_client_public_key()) {
  499. target =
  500. ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
  501. 1, this->ciphertext_client_public_key(), target);
  502. }
  503. // repeated .ciphertext_data fields = 2;
  504. for (int i = 0; i < this->fields_size(); i++) {
  505. target = ::google::protobuf::internal::WireFormatLite::
  506. WriteMessageNoVirtualToArray(
  507. 2, this->fields(i), target);
  508. }
  509. if (!unknown_fields().empty()) {
  510. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  511. unknown_fields(), target);
  512. }
  513. // @@protoc_insertion_point(serialize_to_array_end:extension_to_decryptor_msg)
  514. return target;
  515. }
  516. int extension_to_decryptor_msg::ByteSize() const {
  517. int total_size = 0;
  518. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  519. // required bytes ciphertext_client_public_key = 1;
  520. if (has_ciphertext_client_public_key()) {
  521. total_size += 1 +
  522. ::google::protobuf::internal::WireFormatLite::BytesSize(
  523. this->ciphertext_client_public_key());
  524. }
  525. }
  526. // repeated .ciphertext_data fields = 2;
  527. total_size += 1 * this->fields_size();
  528. for (int i = 0; i < this->fields_size(); i++) {
  529. total_size +=
  530. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  531. this->fields(i));
  532. }
  533. if (!unknown_fields().empty()) {
  534. total_size +=
  535. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  536. unknown_fields());
  537. }
  538. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  539. _cached_size_ = total_size;
  540. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  541. return total_size;
  542. }
  543. void extension_to_decryptor_msg::MergeFrom(const ::google::protobuf::Message& from) {
  544. GOOGLE_CHECK_NE(&from, this);
  545. const extension_to_decryptor_msg* source =
  546. ::google::protobuf::internal::dynamic_cast_if_available<const extension_to_decryptor_msg*>(
  547. &from);
  548. if (source == NULL) {
  549. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  550. } else {
  551. MergeFrom(*source);
  552. }
  553. }
  554. void extension_to_decryptor_msg::MergeFrom(const extension_to_decryptor_msg& from) {
  555. GOOGLE_CHECK_NE(&from, this);
  556. fields_.MergeFrom(from.fields_);
  557. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  558. if (from.has_ciphertext_client_public_key()) {
  559. set_ciphertext_client_public_key(from.ciphertext_client_public_key());
  560. }
  561. }
  562. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  563. }
  564. void extension_to_decryptor_msg::CopyFrom(const ::google::protobuf::Message& from) {
  565. if (&from == this) return;
  566. Clear();
  567. MergeFrom(from);
  568. }
  569. void extension_to_decryptor_msg::CopyFrom(const extension_to_decryptor_msg& from) {
  570. if (&from == this) return;
  571. Clear();
  572. MergeFrom(from);
  573. }
  574. bool extension_to_decryptor_msg::IsInitialized() const {
  575. if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
  576. if (!::google::protobuf::internal::AllAreInitialized(this->fields())) return false;
  577. return true;
  578. }
  579. void extension_to_decryptor_msg::Swap(extension_to_decryptor_msg* other) {
  580. if (other != this) {
  581. std::swap(ciphertext_client_public_key_, other->ciphertext_client_public_key_);
  582. fields_.Swap(&other->fields_);
  583. std::swap(_has_bits_[0], other->_has_bits_[0]);
  584. _unknown_fields_.Swap(&other->_unknown_fields_);
  585. std::swap(_cached_size_, other->_cached_size_);
  586. }
  587. }
  588. ::google::protobuf::Metadata extension_to_decryptor_msg::GetMetadata() const {
  589. protobuf_AssignDescriptorsOnce();
  590. ::google::protobuf::Metadata metadata;
  591. metadata.descriptor = extension_to_decryptor_msg_descriptor_;
  592. metadata.reflection = extension_to_decryptor_msg_reflection_;
  593. return metadata;
  594. }
  595. // ===================================================================
  596. #ifndef _MSC_VER
  597. const int decryptor_to_extension_msg::kFieldsFieldNumber;
  598. #endif // !_MSC_VER
  599. decryptor_to_extension_msg::decryptor_to_extension_msg()
  600. : ::google::protobuf::Message() {
  601. SharedCtor();
  602. // @@protoc_insertion_point(constructor:decryptor_to_extension_msg)
  603. }
  604. void decryptor_to_extension_msg::InitAsDefaultInstance() {
  605. }
  606. decryptor_to_extension_msg::decryptor_to_extension_msg(const decryptor_to_extension_msg& from)
  607. : ::google::protobuf::Message() {
  608. SharedCtor();
  609. MergeFrom(from);
  610. // @@protoc_insertion_point(copy_constructor:decryptor_to_extension_msg)
  611. }
  612. void decryptor_to_extension_msg::SharedCtor() {
  613. _cached_size_ = 0;
  614. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  615. }
  616. decryptor_to_extension_msg::~decryptor_to_extension_msg() {
  617. // @@protoc_insertion_point(destructor:decryptor_to_extension_msg)
  618. SharedDtor();
  619. }
  620. void decryptor_to_extension_msg::SharedDtor() {
  621. if (this != default_instance_) {
  622. }
  623. }
  624. void decryptor_to_extension_msg::SetCachedSize(int size) const {
  625. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  626. _cached_size_ = size;
  627. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  628. }
  629. const ::google::protobuf::Descriptor* decryptor_to_extension_msg::descriptor() {
  630. protobuf_AssignDescriptorsOnce();
  631. return decryptor_to_extension_msg_descriptor_;
  632. }
  633. const decryptor_to_extension_msg& decryptor_to_extension_msg::default_instance() {
  634. if (default_instance_ == NULL) protobuf_AddDesc_PostLAMessages_2eproto();
  635. return *default_instance_;
  636. }
  637. decryptor_to_extension_msg* decryptor_to_extension_msg::default_instance_ = NULL;
  638. decryptor_to_extension_msg* decryptor_to_extension_msg::New() const {
  639. return new decryptor_to_extension_msg;
  640. }
  641. void decryptor_to_extension_msg::Clear() {
  642. fields_.Clear();
  643. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  644. mutable_unknown_fields()->Clear();
  645. }
  646. bool decryptor_to_extension_msg::MergePartialFromCodedStream(
  647. ::google::protobuf::io::CodedInputStream* input) {
  648. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  649. ::google::protobuf::uint32 tag;
  650. // @@protoc_insertion_point(parse_start:decryptor_to_extension_msg)
  651. for (;;) {
  652. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
  653. tag = p.first;
  654. if (!p.second) goto handle_unusual;
  655. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  656. // repeated .ciphertext_data fields = 1;
  657. case 1: {
  658. if (tag == 10) {
  659. parse_fields:
  660. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  661. input, add_fields()));
  662. } else {
  663. goto handle_unusual;
  664. }
  665. if (input->ExpectTag(10)) goto parse_fields;
  666. if (input->ExpectAtEnd()) goto success;
  667. break;
  668. }
  669. default: {
  670. handle_unusual:
  671. if (tag == 0 ||
  672. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  673. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  674. goto success;
  675. }
  676. DO_(::google::protobuf::internal::WireFormat::SkipField(
  677. input, tag, mutable_unknown_fields()));
  678. break;
  679. }
  680. }
  681. }
  682. success:
  683. // @@protoc_insertion_point(parse_success:decryptor_to_extension_msg)
  684. return true;
  685. failure:
  686. // @@protoc_insertion_point(parse_failure:decryptor_to_extension_msg)
  687. return false;
  688. #undef DO_
  689. }
  690. void decryptor_to_extension_msg::SerializeWithCachedSizes(
  691. ::google::protobuf::io::CodedOutputStream* output) const {
  692. // @@protoc_insertion_point(serialize_start:decryptor_to_extension_msg)
  693. // repeated .ciphertext_data fields = 1;
  694. for (int i = 0; i < this->fields_size(); i++) {
  695. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  696. 1, this->fields(i), output);
  697. }
  698. if (!unknown_fields().empty()) {
  699. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  700. unknown_fields(), output);
  701. }
  702. // @@protoc_insertion_point(serialize_end:decryptor_to_extension_msg)
  703. }
  704. ::google::protobuf::uint8* decryptor_to_extension_msg::SerializeWithCachedSizesToArray(
  705. ::google::protobuf::uint8* target) const {
  706. // @@protoc_insertion_point(serialize_to_array_start:decryptor_to_extension_msg)
  707. // repeated .ciphertext_data fields = 1;
  708. for (int i = 0; i < this->fields_size(); i++) {
  709. target = ::google::protobuf::internal::WireFormatLite::
  710. WriteMessageNoVirtualToArray(
  711. 1, this->fields(i), target);
  712. }
  713. if (!unknown_fields().empty()) {
  714. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  715. unknown_fields(), target);
  716. }
  717. // @@protoc_insertion_point(serialize_to_array_end:decryptor_to_extension_msg)
  718. return target;
  719. }
  720. int decryptor_to_extension_msg::ByteSize() const {
  721. int total_size = 0;
  722. // repeated .ciphertext_data fields = 1;
  723. total_size += 1 * this->fields_size();
  724. for (int i = 0; i < this->fields_size(); i++) {
  725. total_size +=
  726. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  727. this->fields(i));
  728. }
  729. if (!unknown_fields().empty()) {
  730. total_size +=
  731. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  732. unknown_fields());
  733. }
  734. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  735. _cached_size_ = total_size;
  736. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  737. return total_size;
  738. }
  739. void decryptor_to_extension_msg::MergeFrom(const ::google::protobuf::Message& from) {
  740. GOOGLE_CHECK_NE(&from, this);
  741. const decryptor_to_extension_msg* source =
  742. ::google::protobuf::internal::dynamic_cast_if_available<const decryptor_to_extension_msg*>(
  743. &from);
  744. if (source == NULL) {
  745. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  746. } else {
  747. MergeFrom(*source);
  748. }
  749. }
  750. void decryptor_to_extension_msg::MergeFrom(const decryptor_to_extension_msg& from) {
  751. GOOGLE_CHECK_NE(&from, this);
  752. fields_.MergeFrom(from.fields_);
  753. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  754. }
  755. void decryptor_to_extension_msg::CopyFrom(const ::google::protobuf::Message& from) {
  756. if (&from == this) return;
  757. Clear();
  758. MergeFrom(from);
  759. }
  760. void decryptor_to_extension_msg::CopyFrom(const decryptor_to_extension_msg& from) {
  761. if (&from == this) return;
  762. Clear();
  763. MergeFrom(from);
  764. }
  765. bool decryptor_to_extension_msg::IsInitialized() const {
  766. if (!::google::protobuf::internal::AllAreInitialized(this->fields())) return false;
  767. return true;
  768. }
  769. void decryptor_to_extension_msg::Swap(decryptor_to_extension_msg* other) {
  770. if (other != this) {
  771. fields_.Swap(&other->fields_);
  772. std::swap(_has_bits_[0], other->_has_bits_[0]);
  773. _unknown_fields_.Swap(&other->_unknown_fields_);
  774. std::swap(_cached_size_, other->_cached_size_);
  775. }
  776. }
  777. ::google::protobuf::Metadata decryptor_to_extension_msg::GetMetadata() const {
  778. protobuf_AssignDescriptorsOnce();
  779. ::google::protobuf::Metadata metadata;
  780. metadata.descriptor = decryptor_to_extension_msg_descriptor_;
  781. metadata.reflection = decryptor_to_extension_msg_reflection_;
  782. return metadata;
  783. }
  784. // ===================================================================
  785. #ifndef _MSC_VER
  786. const int mitigator_header::kNameFieldNumber;
  787. const int mitigator_header::kValueFieldNumber;
  788. #endif // !_MSC_VER
  789. mitigator_header::mitigator_header()
  790. : ::google::protobuf::Message() {
  791. SharedCtor();
  792. // @@protoc_insertion_point(constructor:mitigator_header)
  793. }
  794. void mitigator_header::InitAsDefaultInstance() {
  795. }
  796. mitigator_header::mitigator_header(const mitigator_header& from)
  797. : ::google::protobuf::Message() {
  798. SharedCtor();
  799. MergeFrom(from);
  800. // @@protoc_insertion_point(copy_constructor:mitigator_header)
  801. }
  802. void mitigator_header::SharedCtor() {
  803. ::google::protobuf::internal::GetEmptyString();
  804. _cached_size_ = 0;
  805. name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  806. value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  807. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  808. }
  809. mitigator_header::~mitigator_header() {
  810. // @@protoc_insertion_point(destructor:mitigator_header)
  811. SharedDtor();
  812. }
  813. void mitigator_header::SharedDtor() {
  814. if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  815. delete name_;
  816. }
  817. if (value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  818. delete value_;
  819. }
  820. if (this != default_instance_) {
  821. }
  822. }
  823. void mitigator_header::SetCachedSize(int size) const {
  824. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  825. _cached_size_ = size;
  826. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  827. }
  828. const ::google::protobuf::Descriptor* mitigator_header::descriptor() {
  829. protobuf_AssignDescriptorsOnce();
  830. return mitigator_header_descriptor_;
  831. }
  832. const mitigator_header& mitigator_header::default_instance() {
  833. if (default_instance_ == NULL) protobuf_AddDesc_PostLAMessages_2eproto();
  834. return *default_instance_;
  835. }
  836. mitigator_header* mitigator_header::default_instance_ = NULL;
  837. mitigator_header* mitigator_header::New() const {
  838. return new mitigator_header;
  839. }
  840. void mitigator_header::Clear() {
  841. if (_has_bits_[0 / 32] & 3) {
  842. if (has_name()) {
  843. if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  844. name_->clear();
  845. }
  846. }
  847. if (has_value()) {
  848. if (value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  849. value_->clear();
  850. }
  851. }
  852. }
  853. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  854. mutable_unknown_fields()->Clear();
  855. }
  856. bool mitigator_header::MergePartialFromCodedStream(
  857. ::google::protobuf::io::CodedInputStream* input) {
  858. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  859. ::google::protobuf::uint32 tag;
  860. // @@protoc_insertion_point(parse_start:mitigator_header)
  861. for (;;) {
  862. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
  863. tag = p.first;
  864. if (!p.second) goto handle_unusual;
  865. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  866. // required bytes name = 1;
  867. case 1: {
  868. if (tag == 10) {
  869. DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
  870. input, this->mutable_name()));
  871. } else {
  872. goto handle_unusual;
  873. }
  874. if (input->ExpectTag(18)) goto parse_value;
  875. break;
  876. }
  877. // required bytes value = 2;
  878. case 2: {
  879. if (tag == 18) {
  880. parse_value:
  881. DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
  882. input, this->mutable_value()));
  883. } else {
  884. goto handle_unusual;
  885. }
  886. if (input->ExpectAtEnd()) goto success;
  887. break;
  888. }
  889. default: {
  890. handle_unusual:
  891. if (tag == 0 ||
  892. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  893. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  894. goto success;
  895. }
  896. DO_(::google::protobuf::internal::WireFormat::SkipField(
  897. input, tag, mutable_unknown_fields()));
  898. break;
  899. }
  900. }
  901. }
  902. success:
  903. // @@protoc_insertion_point(parse_success:mitigator_header)
  904. return true;
  905. failure:
  906. // @@protoc_insertion_point(parse_failure:mitigator_header)
  907. return false;
  908. #undef DO_
  909. }
  910. void mitigator_header::SerializeWithCachedSizes(
  911. ::google::protobuf::io::CodedOutputStream* output) const {
  912. // @@protoc_insertion_point(serialize_start:mitigator_header)
  913. // required bytes name = 1;
  914. if (has_name()) {
  915. ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
  916. 1, this->name(), output);
  917. }
  918. // required bytes value = 2;
  919. if (has_value()) {
  920. ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
  921. 2, this->value(), output);
  922. }
  923. if (!unknown_fields().empty()) {
  924. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  925. unknown_fields(), output);
  926. }
  927. // @@protoc_insertion_point(serialize_end:mitigator_header)
  928. }
  929. ::google::protobuf::uint8* mitigator_header::SerializeWithCachedSizesToArray(
  930. ::google::protobuf::uint8* target) const {
  931. // @@protoc_insertion_point(serialize_to_array_start:mitigator_header)
  932. // required bytes name = 1;
  933. if (has_name()) {
  934. target =
  935. ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
  936. 1, this->name(), target);
  937. }
  938. // required bytes value = 2;
  939. if (has_value()) {
  940. target =
  941. ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
  942. 2, this->value(), target);
  943. }
  944. if (!unknown_fields().empty()) {
  945. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  946. unknown_fields(), target);
  947. }
  948. // @@protoc_insertion_point(serialize_to_array_end:mitigator_header)
  949. return target;
  950. }
  951. int mitigator_header::ByteSize() const {
  952. int total_size = 0;
  953. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  954. // required bytes name = 1;
  955. if (has_name()) {
  956. total_size += 1 +
  957. ::google::protobuf::internal::WireFormatLite::BytesSize(
  958. this->name());
  959. }
  960. // required bytes value = 2;
  961. if (has_value()) {
  962. total_size += 1 +
  963. ::google::protobuf::internal::WireFormatLite::BytesSize(
  964. this->value());
  965. }
  966. }
  967. if (!unknown_fields().empty()) {
  968. total_size +=
  969. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  970. unknown_fields());
  971. }
  972. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  973. _cached_size_ = total_size;
  974. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  975. return total_size;
  976. }
  977. void mitigator_header::MergeFrom(const ::google::protobuf::Message& from) {
  978. GOOGLE_CHECK_NE(&from, this);
  979. const mitigator_header* source =
  980. ::google::protobuf::internal::dynamic_cast_if_available<const mitigator_header*>(
  981. &from);
  982. if (source == NULL) {
  983. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  984. } else {
  985. MergeFrom(*source);
  986. }
  987. }
  988. void mitigator_header::MergeFrom(const mitigator_header& from) {
  989. GOOGLE_CHECK_NE(&from, this);
  990. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  991. if (from.has_name()) {
  992. set_name(from.name());
  993. }
  994. if (from.has_value()) {
  995. set_value(from.value());
  996. }
  997. }
  998. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  999. }
  1000. void mitigator_header::CopyFrom(const ::google::protobuf::Message& from) {
  1001. if (&from == this) return;
  1002. Clear();
  1003. MergeFrom(from);
  1004. }
  1005. void mitigator_header::CopyFrom(const mitigator_header& from) {
  1006. if (&from == this) return;
  1007. Clear();
  1008. MergeFrom(from);
  1009. }
  1010. bool mitigator_header::IsInitialized() const {
  1011. if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
  1012. return true;
  1013. }
  1014. void mitigator_header::Swap(mitigator_header* other) {
  1015. if (other != this) {
  1016. std::swap(name_, other->name_);
  1017. std::swap(value_, other->value_);
  1018. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1019. _unknown_fields_.Swap(&other->_unknown_fields_);
  1020. std::swap(_cached_size_, other->_cached_size_);
  1021. }
  1022. }
  1023. ::google::protobuf::Metadata mitigator_header::GetMetadata() const {
  1024. protobuf_AssignDescriptorsOnce();
  1025. ::google::protobuf::Metadata metadata;
  1026. metadata.descriptor = mitigator_header_descriptor_;
  1027. metadata.reflection = mitigator_header_reflection_;
  1028. return metadata;
  1029. }
  1030. // @@protoc_insertion_point(namespace_scope)
  1031. // @@protoc_insertion_point(global_scope)