communication.pb.cc 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: communication.proto
  3. #include "communication.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/stubs/common.h>
  6. #include <google/protobuf/stubs/port.h>
  7. #include <google/protobuf/io/coded_stream.h>
  8. #include <google/protobuf/wire_format_lite_inl.h>
  9. #include <google/protobuf/descriptor.h>
  10. #include <google/protobuf/generated_message_reflection.h>
  11. #include <google/protobuf/reflection_ops.h>
  12. #include <google/protobuf/wire_format.h>
  13. // This is a temporary google only hack
  14. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  15. #include "third_party/protobuf/version.h"
  16. #endif
  17. // @@protoc_insertion_point(includes)
  18. namespace protobuf_communication_2eproto {
  19. extern PROTOBUF_INTERNAL_EXPORT_protobuf_communication_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Communication_parameter;
  20. } // namespace protobuf_communication_2eproto
  21. namespace Communication_proto {
  22. class Communication_parameterDefaultTypeInternal {
  23. public:
  24. ::google::protobuf::internal::ExplicitlyConstructed<Communication_parameter>
  25. _instance;
  26. } _Communication_parameter_default_instance_;
  27. class Communication_parameter_allDefaultTypeInternal {
  28. public:
  29. ::google::protobuf::internal::ExplicitlyConstructed<Communication_parameter_all>
  30. _instance;
  31. } _Communication_parameter_all_default_instance_;
  32. } // namespace Communication_proto
  33. namespace protobuf_communication_2eproto {
  34. static void InitDefaultsCommunication_parameter() {
  35. GOOGLE_PROTOBUF_VERIFY_VERSION;
  36. {
  37. void* ptr = &::Communication_proto::_Communication_parameter_default_instance_;
  38. new (ptr) ::Communication_proto::Communication_parameter();
  39. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  40. }
  41. ::Communication_proto::Communication_parameter::InitAsDefaultInstance();
  42. }
  43. ::google::protobuf::internal::SCCInfo<0> scc_info_Communication_parameter =
  44. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCommunication_parameter}, {}};
  45. static void InitDefaultsCommunication_parameter_all() {
  46. GOOGLE_PROTOBUF_VERIFY_VERSION;
  47. {
  48. void* ptr = &::Communication_proto::_Communication_parameter_all_default_instance_;
  49. new (ptr) ::Communication_proto::Communication_parameter_all();
  50. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  51. }
  52. ::Communication_proto::Communication_parameter_all::InitAsDefaultInstance();
  53. }
  54. ::google::protobuf::internal::SCCInfo<1> scc_info_Communication_parameter_all =
  55. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsCommunication_parameter_all}, {
  56. &protobuf_communication_2eproto::scc_info_Communication_parameter.base,}};
  57. void InitDefaults() {
  58. ::google::protobuf::internal::InitSCC(&scc_info_Communication_parameter.base);
  59. ::google::protobuf::internal::InitSCC(&scc_info_Communication_parameter_all.base);
  60. }
  61. ::google::protobuf::Metadata file_level_metadata[2];
  62. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  63. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Communication_proto::Communication_parameter, _has_bits_),
  64. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Communication_proto::Communication_parameter, _internal_metadata_),
  65. ~0u, // no _extensions_
  66. ~0u, // no _oneof_case_
  67. ~0u, // no _weak_field_map_
  68. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Communication_proto::Communication_parameter, bind_string_),
  69. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Communication_proto::Communication_parameter, connect_string_vector_),
  70. 0,
  71. ~0u,
  72. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Communication_proto::Communication_parameter_all, _has_bits_),
  73. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Communication_proto::Communication_parameter_all, _internal_metadata_),
  74. ~0u, // no _extensions_
  75. ~0u, // no _oneof_case_
  76. ~0u, // no _weak_field_map_
  77. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Communication_proto::Communication_parameter_all, communication_parameters_),
  78. 0,
  79. };
  80. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  81. { 0, 7, sizeof(::Communication_proto::Communication_parameter)},
  82. { 9, 15, sizeof(::Communication_proto::Communication_parameter_all)},
  83. };
  84. static ::google::protobuf::Message const * const file_default_instances[] = {
  85. reinterpret_cast<const ::google::protobuf::Message*>(&::Communication_proto::_Communication_parameter_default_instance_),
  86. reinterpret_cast<const ::google::protobuf::Message*>(&::Communication_proto::_Communication_parameter_all_default_instance_),
  87. };
  88. void protobuf_AssignDescriptors() {
  89. AddDescriptors();
  90. AssignDescriptors(
  91. "communication.proto", schemas, file_default_instances, TableStruct::offsets,
  92. file_level_metadata, NULL, NULL);
  93. }
  94. void protobuf_AssignDescriptorsOnce() {
  95. static ::google::protobuf::internal::once_flag once;
  96. ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
  97. }
  98. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  99. void protobuf_RegisterTypes(const ::std::string&) {
  100. protobuf_AssignDescriptorsOnce();
  101. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2);
  102. }
  103. void AddDescriptorsImpl() {
  104. InitDefaults();
  105. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  106. "\n\023communication.proto\022\023Communication_pro"
  107. "to\"M\n\027Communication_parameter\022\023\n\013bind_st"
  108. "ring\030\001 \001(\t\022\035\n\025connect_string_vector\030\002 \003("
  109. "\t\"m\n\033Communication_parameter_all\022N\n\030comm"
  110. "unication_parameters\030\001 \001(\0132,.Communicati"
  111. "on_proto.Communication_parameter"
  112. };
  113. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  114. descriptor, 232);
  115. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  116. "communication.proto", &protobuf_RegisterTypes);
  117. }
  118. void AddDescriptors() {
  119. static ::google::protobuf::internal::once_flag once;
  120. ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
  121. }
  122. // Force AddDescriptors() to be called at dynamic initialization time.
  123. struct StaticDescriptorInitializer {
  124. StaticDescriptorInitializer() {
  125. AddDescriptors();
  126. }
  127. } static_descriptor_initializer;
  128. } // namespace protobuf_communication_2eproto
  129. namespace Communication_proto {
  130. // ===================================================================
  131. void Communication_parameter::InitAsDefaultInstance() {
  132. }
  133. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  134. const int Communication_parameter::kBindStringFieldNumber;
  135. const int Communication_parameter::kConnectStringVectorFieldNumber;
  136. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  137. Communication_parameter::Communication_parameter()
  138. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  139. ::google::protobuf::internal::InitSCC(
  140. &protobuf_communication_2eproto::scc_info_Communication_parameter.base);
  141. SharedCtor();
  142. // @@protoc_insertion_point(constructor:Communication_proto.Communication_parameter)
  143. }
  144. Communication_parameter::Communication_parameter(const Communication_parameter& from)
  145. : ::google::protobuf::Message(),
  146. _internal_metadata_(NULL),
  147. _has_bits_(from._has_bits_),
  148. connect_string_vector_(from.connect_string_vector_) {
  149. _internal_metadata_.MergeFrom(from._internal_metadata_);
  150. bind_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  151. if (from.has_bind_string()) {
  152. bind_string_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.bind_string_);
  153. }
  154. // @@protoc_insertion_point(copy_constructor:Communication_proto.Communication_parameter)
  155. }
  156. void Communication_parameter::SharedCtor() {
  157. bind_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  158. }
  159. Communication_parameter::~Communication_parameter() {
  160. // @@protoc_insertion_point(destructor:Communication_proto.Communication_parameter)
  161. SharedDtor();
  162. }
  163. void Communication_parameter::SharedDtor() {
  164. bind_string_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  165. }
  166. void Communication_parameter::SetCachedSize(int size) const {
  167. _cached_size_.Set(size);
  168. }
  169. const ::google::protobuf::Descriptor* Communication_parameter::descriptor() {
  170. ::protobuf_communication_2eproto::protobuf_AssignDescriptorsOnce();
  171. return ::protobuf_communication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  172. }
  173. const Communication_parameter& Communication_parameter::default_instance() {
  174. ::google::protobuf::internal::InitSCC(&protobuf_communication_2eproto::scc_info_Communication_parameter.base);
  175. return *internal_default_instance();
  176. }
  177. void Communication_parameter::Clear() {
  178. // @@protoc_insertion_point(message_clear_start:Communication_proto.Communication_parameter)
  179. ::google::protobuf::uint32 cached_has_bits = 0;
  180. // Prevent compiler warnings about cached_has_bits being unused
  181. (void) cached_has_bits;
  182. connect_string_vector_.Clear();
  183. cached_has_bits = _has_bits_[0];
  184. if (cached_has_bits & 0x00000001u) {
  185. bind_string_.ClearNonDefaultToEmptyNoArena();
  186. }
  187. _has_bits_.Clear();
  188. _internal_metadata_.Clear();
  189. }
  190. bool Communication_parameter::MergePartialFromCodedStream(
  191. ::google::protobuf::io::CodedInputStream* input) {
  192. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  193. ::google::protobuf::uint32 tag;
  194. // @@protoc_insertion_point(parse_start:Communication_proto.Communication_parameter)
  195. for (;;) {
  196. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  197. tag = p.first;
  198. if (!p.second) goto handle_unusual;
  199. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  200. // optional string bind_string = 1;
  201. case 1: {
  202. if (static_cast< ::google::protobuf::uint8>(tag) ==
  203. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  204. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  205. input, this->mutable_bind_string()));
  206. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  207. this->bind_string().data(), static_cast<int>(this->bind_string().length()),
  208. ::google::protobuf::internal::WireFormat::PARSE,
  209. "Communication_proto.Communication_parameter.bind_string");
  210. } else {
  211. goto handle_unusual;
  212. }
  213. break;
  214. }
  215. // repeated string connect_string_vector = 2;
  216. case 2: {
  217. if (static_cast< ::google::protobuf::uint8>(tag) ==
  218. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  219. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  220. input, this->add_connect_string_vector()));
  221. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  222. this->connect_string_vector(this->connect_string_vector_size() - 1).data(),
  223. static_cast<int>(this->connect_string_vector(this->connect_string_vector_size() - 1).length()),
  224. ::google::protobuf::internal::WireFormat::PARSE,
  225. "Communication_proto.Communication_parameter.connect_string_vector");
  226. } else {
  227. goto handle_unusual;
  228. }
  229. break;
  230. }
  231. default: {
  232. handle_unusual:
  233. if (tag == 0) {
  234. goto success;
  235. }
  236. DO_(::google::protobuf::internal::WireFormat::SkipField(
  237. input, tag, _internal_metadata_.mutable_unknown_fields()));
  238. break;
  239. }
  240. }
  241. }
  242. success:
  243. // @@protoc_insertion_point(parse_success:Communication_proto.Communication_parameter)
  244. return true;
  245. failure:
  246. // @@protoc_insertion_point(parse_failure:Communication_proto.Communication_parameter)
  247. return false;
  248. #undef DO_
  249. }
  250. void Communication_parameter::SerializeWithCachedSizes(
  251. ::google::protobuf::io::CodedOutputStream* output) const {
  252. // @@protoc_insertion_point(serialize_start:Communication_proto.Communication_parameter)
  253. ::google::protobuf::uint32 cached_has_bits = 0;
  254. (void) cached_has_bits;
  255. cached_has_bits = _has_bits_[0];
  256. // optional string bind_string = 1;
  257. if (cached_has_bits & 0x00000001u) {
  258. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  259. this->bind_string().data(), static_cast<int>(this->bind_string().length()),
  260. ::google::protobuf::internal::WireFormat::SERIALIZE,
  261. "Communication_proto.Communication_parameter.bind_string");
  262. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  263. 1, this->bind_string(), output);
  264. }
  265. // repeated string connect_string_vector = 2;
  266. for (int i = 0, n = this->connect_string_vector_size(); i < n; i++) {
  267. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  268. this->connect_string_vector(i).data(), static_cast<int>(this->connect_string_vector(i).length()),
  269. ::google::protobuf::internal::WireFormat::SERIALIZE,
  270. "Communication_proto.Communication_parameter.connect_string_vector");
  271. ::google::protobuf::internal::WireFormatLite::WriteString(
  272. 2, this->connect_string_vector(i), output);
  273. }
  274. if (_internal_metadata_.have_unknown_fields()) {
  275. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  276. _internal_metadata_.unknown_fields(), output);
  277. }
  278. // @@protoc_insertion_point(serialize_end:Communication_proto.Communication_parameter)
  279. }
  280. ::google::protobuf::uint8* Communication_parameter::InternalSerializeWithCachedSizesToArray(
  281. bool deterministic, ::google::protobuf::uint8* target) const {
  282. (void)deterministic; // Unused
  283. // @@protoc_insertion_point(serialize_to_array_start:Communication_proto.Communication_parameter)
  284. ::google::protobuf::uint32 cached_has_bits = 0;
  285. (void) cached_has_bits;
  286. cached_has_bits = _has_bits_[0];
  287. // optional string bind_string = 1;
  288. if (cached_has_bits & 0x00000001u) {
  289. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  290. this->bind_string().data(), static_cast<int>(this->bind_string().length()),
  291. ::google::protobuf::internal::WireFormat::SERIALIZE,
  292. "Communication_proto.Communication_parameter.bind_string");
  293. target =
  294. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  295. 1, this->bind_string(), target);
  296. }
  297. // repeated string connect_string_vector = 2;
  298. for (int i = 0, n = this->connect_string_vector_size(); i < n; i++) {
  299. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  300. this->connect_string_vector(i).data(), static_cast<int>(this->connect_string_vector(i).length()),
  301. ::google::protobuf::internal::WireFormat::SERIALIZE,
  302. "Communication_proto.Communication_parameter.connect_string_vector");
  303. target = ::google::protobuf::internal::WireFormatLite::
  304. WriteStringToArray(2, this->connect_string_vector(i), target);
  305. }
  306. if (_internal_metadata_.have_unknown_fields()) {
  307. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  308. _internal_metadata_.unknown_fields(), target);
  309. }
  310. // @@protoc_insertion_point(serialize_to_array_end:Communication_proto.Communication_parameter)
  311. return target;
  312. }
  313. size_t Communication_parameter::ByteSizeLong() const {
  314. // @@protoc_insertion_point(message_byte_size_start:Communication_proto.Communication_parameter)
  315. size_t total_size = 0;
  316. if (_internal_metadata_.have_unknown_fields()) {
  317. total_size +=
  318. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  319. _internal_metadata_.unknown_fields());
  320. }
  321. // repeated string connect_string_vector = 2;
  322. total_size += 1 *
  323. ::google::protobuf::internal::FromIntSize(this->connect_string_vector_size());
  324. for (int i = 0, n = this->connect_string_vector_size(); i < n; i++) {
  325. total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
  326. this->connect_string_vector(i));
  327. }
  328. // optional string bind_string = 1;
  329. if (has_bind_string()) {
  330. total_size += 1 +
  331. ::google::protobuf::internal::WireFormatLite::StringSize(
  332. this->bind_string());
  333. }
  334. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  335. SetCachedSize(cached_size);
  336. return total_size;
  337. }
  338. void Communication_parameter::MergeFrom(const ::google::protobuf::Message& from) {
  339. // @@protoc_insertion_point(generalized_merge_from_start:Communication_proto.Communication_parameter)
  340. GOOGLE_DCHECK_NE(&from, this);
  341. const Communication_parameter* source =
  342. ::google::protobuf::internal::DynamicCastToGenerated<const Communication_parameter>(
  343. &from);
  344. if (source == NULL) {
  345. // @@protoc_insertion_point(generalized_merge_from_cast_fail:Communication_proto.Communication_parameter)
  346. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  347. } else {
  348. // @@protoc_insertion_point(generalized_merge_from_cast_success:Communication_proto.Communication_parameter)
  349. MergeFrom(*source);
  350. }
  351. }
  352. void Communication_parameter::MergeFrom(const Communication_parameter& from) {
  353. // @@protoc_insertion_point(class_specific_merge_from_start:Communication_proto.Communication_parameter)
  354. GOOGLE_DCHECK_NE(&from, this);
  355. _internal_metadata_.MergeFrom(from._internal_metadata_);
  356. ::google::protobuf::uint32 cached_has_bits = 0;
  357. (void) cached_has_bits;
  358. connect_string_vector_.MergeFrom(from.connect_string_vector_);
  359. if (from.has_bind_string()) {
  360. set_has_bind_string();
  361. bind_string_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.bind_string_);
  362. }
  363. }
  364. void Communication_parameter::CopyFrom(const ::google::protobuf::Message& from) {
  365. // @@protoc_insertion_point(generalized_copy_from_start:Communication_proto.Communication_parameter)
  366. if (&from == this) return;
  367. Clear();
  368. MergeFrom(from);
  369. }
  370. void Communication_parameter::CopyFrom(const Communication_parameter& from) {
  371. // @@protoc_insertion_point(class_specific_copy_from_start:Communication_proto.Communication_parameter)
  372. if (&from == this) return;
  373. Clear();
  374. MergeFrom(from);
  375. }
  376. bool Communication_parameter::IsInitialized() const {
  377. return true;
  378. }
  379. void Communication_parameter::Swap(Communication_parameter* other) {
  380. if (other == this) return;
  381. InternalSwap(other);
  382. }
  383. void Communication_parameter::InternalSwap(Communication_parameter* other) {
  384. using std::swap;
  385. connect_string_vector_.InternalSwap(CastToBase(&other->connect_string_vector_));
  386. bind_string_.Swap(&other->bind_string_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  387. GetArenaNoVirtual());
  388. swap(_has_bits_[0], other->_has_bits_[0]);
  389. _internal_metadata_.Swap(&other->_internal_metadata_);
  390. }
  391. ::google::protobuf::Metadata Communication_parameter::GetMetadata() const {
  392. protobuf_communication_2eproto::protobuf_AssignDescriptorsOnce();
  393. return ::protobuf_communication_2eproto::file_level_metadata[kIndexInFileMessages];
  394. }
  395. // ===================================================================
  396. void Communication_parameter_all::InitAsDefaultInstance() {
  397. ::Communication_proto::_Communication_parameter_all_default_instance_._instance.get_mutable()->communication_parameters_ = const_cast< ::Communication_proto::Communication_parameter*>(
  398. ::Communication_proto::Communication_parameter::internal_default_instance());
  399. }
  400. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  401. const int Communication_parameter_all::kCommunicationParametersFieldNumber;
  402. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  403. Communication_parameter_all::Communication_parameter_all()
  404. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  405. ::google::protobuf::internal::InitSCC(
  406. &protobuf_communication_2eproto::scc_info_Communication_parameter_all.base);
  407. SharedCtor();
  408. // @@protoc_insertion_point(constructor:Communication_proto.Communication_parameter_all)
  409. }
  410. Communication_parameter_all::Communication_parameter_all(const Communication_parameter_all& from)
  411. : ::google::protobuf::Message(),
  412. _internal_metadata_(NULL),
  413. _has_bits_(from._has_bits_) {
  414. _internal_metadata_.MergeFrom(from._internal_metadata_);
  415. if (from.has_communication_parameters()) {
  416. communication_parameters_ = new ::Communication_proto::Communication_parameter(*from.communication_parameters_);
  417. } else {
  418. communication_parameters_ = NULL;
  419. }
  420. // @@protoc_insertion_point(copy_constructor:Communication_proto.Communication_parameter_all)
  421. }
  422. void Communication_parameter_all::SharedCtor() {
  423. communication_parameters_ = NULL;
  424. }
  425. Communication_parameter_all::~Communication_parameter_all() {
  426. // @@protoc_insertion_point(destructor:Communication_proto.Communication_parameter_all)
  427. SharedDtor();
  428. }
  429. void Communication_parameter_all::SharedDtor() {
  430. if (this != internal_default_instance()) delete communication_parameters_;
  431. }
  432. void Communication_parameter_all::SetCachedSize(int size) const {
  433. _cached_size_.Set(size);
  434. }
  435. const ::google::protobuf::Descriptor* Communication_parameter_all::descriptor() {
  436. ::protobuf_communication_2eproto::protobuf_AssignDescriptorsOnce();
  437. return ::protobuf_communication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  438. }
  439. const Communication_parameter_all& Communication_parameter_all::default_instance() {
  440. ::google::protobuf::internal::InitSCC(&protobuf_communication_2eproto::scc_info_Communication_parameter_all.base);
  441. return *internal_default_instance();
  442. }
  443. void Communication_parameter_all::Clear() {
  444. // @@protoc_insertion_point(message_clear_start:Communication_proto.Communication_parameter_all)
  445. ::google::protobuf::uint32 cached_has_bits = 0;
  446. // Prevent compiler warnings about cached_has_bits being unused
  447. (void) cached_has_bits;
  448. cached_has_bits = _has_bits_[0];
  449. if (cached_has_bits & 0x00000001u) {
  450. GOOGLE_DCHECK(communication_parameters_ != NULL);
  451. communication_parameters_->Clear();
  452. }
  453. _has_bits_.Clear();
  454. _internal_metadata_.Clear();
  455. }
  456. bool Communication_parameter_all::MergePartialFromCodedStream(
  457. ::google::protobuf::io::CodedInputStream* input) {
  458. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  459. ::google::protobuf::uint32 tag;
  460. // @@protoc_insertion_point(parse_start:Communication_proto.Communication_parameter_all)
  461. for (;;) {
  462. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  463. tag = p.first;
  464. if (!p.second) goto handle_unusual;
  465. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  466. // optional .Communication_proto.Communication_parameter communication_parameters = 1;
  467. case 1: {
  468. if (static_cast< ::google::protobuf::uint8>(tag) ==
  469. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  470. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  471. input, mutable_communication_parameters()));
  472. } else {
  473. goto handle_unusual;
  474. }
  475. break;
  476. }
  477. default: {
  478. handle_unusual:
  479. if (tag == 0) {
  480. goto success;
  481. }
  482. DO_(::google::protobuf::internal::WireFormat::SkipField(
  483. input, tag, _internal_metadata_.mutable_unknown_fields()));
  484. break;
  485. }
  486. }
  487. }
  488. success:
  489. // @@protoc_insertion_point(parse_success:Communication_proto.Communication_parameter_all)
  490. return true;
  491. failure:
  492. // @@protoc_insertion_point(parse_failure:Communication_proto.Communication_parameter_all)
  493. return false;
  494. #undef DO_
  495. }
  496. void Communication_parameter_all::SerializeWithCachedSizes(
  497. ::google::protobuf::io::CodedOutputStream* output) const {
  498. // @@protoc_insertion_point(serialize_start:Communication_proto.Communication_parameter_all)
  499. ::google::protobuf::uint32 cached_has_bits = 0;
  500. (void) cached_has_bits;
  501. cached_has_bits = _has_bits_[0];
  502. // optional .Communication_proto.Communication_parameter communication_parameters = 1;
  503. if (cached_has_bits & 0x00000001u) {
  504. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  505. 1, this->_internal_communication_parameters(), output);
  506. }
  507. if (_internal_metadata_.have_unknown_fields()) {
  508. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  509. _internal_metadata_.unknown_fields(), output);
  510. }
  511. // @@protoc_insertion_point(serialize_end:Communication_proto.Communication_parameter_all)
  512. }
  513. ::google::protobuf::uint8* Communication_parameter_all::InternalSerializeWithCachedSizesToArray(
  514. bool deterministic, ::google::protobuf::uint8* target) const {
  515. (void)deterministic; // Unused
  516. // @@protoc_insertion_point(serialize_to_array_start:Communication_proto.Communication_parameter_all)
  517. ::google::protobuf::uint32 cached_has_bits = 0;
  518. (void) cached_has_bits;
  519. cached_has_bits = _has_bits_[0];
  520. // optional .Communication_proto.Communication_parameter communication_parameters = 1;
  521. if (cached_has_bits & 0x00000001u) {
  522. target = ::google::protobuf::internal::WireFormatLite::
  523. InternalWriteMessageToArray(
  524. 1, this->_internal_communication_parameters(), deterministic, target);
  525. }
  526. if (_internal_metadata_.have_unknown_fields()) {
  527. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  528. _internal_metadata_.unknown_fields(), target);
  529. }
  530. // @@protoc_insertion_point(serialize_to_array_end:Communication_proto.Communication_parameter_all)
  531. return target;
  532. }
  533. size_t Communication_parameter_all::ByteSizeLong() const {
  534. // @@protoc_insertion_point(message_byte_size_start:Communication_proto.Communication_parameter_all)
  535. size_t total_size = 0;
  536. if (_internal_metadata_.have_unknown_fields()) {
  537. total_size +=
  538. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  539. _internal_metadata_.unknown_fields());
  540. }
  541. // optional .Communication_proto.Communication_parameter communication_parameters = 1;
  542. if (has_communication_parameters()) {
  543. total_size += 1 +
  544. ::google::protobuf::internal::WireFormatLite::MessageSize(
  545. *communication_parameters_);
  546. }
  547. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  548. SetCachedSize(cached_size);
  549. return total_size;
  550. }
  551. void Communication_parameter_all::MergeFrom(const ::google::protobuf::Message& from) {
  552. // @@protoc_insertion_point(generalized_merge_from_start:Communication_proto.Communication_parameter_all)
  553. GOOGLE_DCHECK_NE(&from, this);
  554. const Communication_parameter_all* source =
  555. ::google::protobuf::internal::DynamicCastToGenerated<const Communication_parameter_all>(
  556. &from);
  557. if (source == NULL) {
  558. // @@protoc_insertion_point(generalized_merge_from_cast_fail:Communication_proto.Communication_parameter_all)
  559. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  560. } else {
  561. // @@protoc_insertion_point(generalized_merge_from_cast_success:Communication_proto.Communication_parameter_all)
  562. MergeFrom(*source);
  563. }
  564. }
  565. void Communication_parameter_all::MergeFrom(const Communication_parameter_all& from) {
  566. // @@protoc_insertion_point(class_specific_merge_from_start:Communication_proto.Communication_parameter_all)
  567. GOOGLE_DCHECK_NE(&from, this);
  568. _internal_metadata_.MergeFrom(from._internal_metadata_);
  569. ::google::protobuf::uint32 cached_has_bits = 0;
  570. (void) cached_has_bits;
  571. if (from.has_communication_parameters()) {
  572. mutable_communication_parameters()->::Communication_proto::Communication_parameter::MergeFrom(from.communication_parameters());
  573. }
  574. }
  575. void Communication_parameter_all::CopyFrom(const ::google::protobuf::Message& from) {
  576. // @@protoc_insertion_point(generalized_copy_from_start:Communication_proto.Communication_parameter_all)
  577. if (&from == this) return;
  578. Clear();
  579. MergeFrom(from);
  580. }
  581. void Communication_parameter_all::CopyFrom(const Communication_parameter_all& from) {
  582. // @@protoc_insertion_point(class_specific_copy_from_start:Communication_proto.Communication_parameter_all)
  583. if (&from == this) return;
  584. Clear();
  585. MergeFrom(from);
  586. }
  587. bool Communication_parameter_all::IsInitialized() const {
  588. return true;
  589. }
  590. void Communication_parameter_all::Swap(Communication_parameter_all* other) {
  591. if (other == this) return;
  592. InternalSwap(other);
  593. }
  594. void Communication_parameter_all::InternalSwap(Communication_parameter_all* other) {
  595. using std::swap;
  596. swap(communication_parameters_, other->communication_parameters_);
  597. swap(_has_bits_[0], other->_has_bits_[0]);
  598. _internal_metadata_.Swap(&other->_internal_metadata_);
  599. }
  600. ::google::protobuf::Metadata Communication_parameter_all::GetMetadata() const {
  601. protobuf_communication_2eproto::protobuf_AssignDescriptorsOnce();
  602. return ::protobuf_communication_2eproto::file_level_metadata[kIndexInFileMessages];
  603. }
  604. // @@protoc_insertion_point(namespace_scope)
  605. } // namespace Communication_proto
  606. namespace google {
  607. namespace protobuf {
  608. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Communication_proto::Communication_parameter* Arena::CreateMaybeMessage< ::Communication_proto::Communication_parameter >(Arena* arena) {
  609. return Arena::CreateInternal< ::Communication_proto::Communication_parameter >(arena);
  610. }
  611. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Communication_proto::Communication_parameter_all* Arena::CreateMaybeMessage< ::Communication_proto::Communication_parameter_all >(Arena* arena) {
  612. return Arena::CreateInternal< ::Communication_proto::Communication_parameter_all >(arena);
  613. }
  614. } // namespace protobuf
  615. } // namespace google
  616. // @@protoc_insertion_point(global_scope)