communication.pb.cc 29 KB

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