123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: communication.proto
- #include "communication.pb.h"
- #include <algorithm>
- #include <google/protobuf/stubs/common.h>
- #include <google/protobuf/stubs/port.h>
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/wire_format_lite_inl.h>
- #include <google/protobuf/descriptor.h>
- #include <google/protobuf/generated_message_reflection.h>
- #include <google/protobuf/reflection_ops.h>
- #include <google/protobuf/wire_format.h>
- // This is a temporary google only hack
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- #include "third_party/protobuf/version.h"
- #endif
- // @@protoc_insertion_point(includes)
- namespace protobuf_communication_2eproto {
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_communication_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Communication_parameter;
- } // namespace protobuf_communication_2eproto
- namespace Communication_proto {
- class Communication_parameterDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<Communication_parameter>
- _instance;
- } _Communication_parameter_default_instance_;
- class Communication_parameter_allDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<Communication_parameter_all>
- _instance;
- } _Communication_parameter_all_default_instance_;
- } // namespace Communication_proto
- namespace protobuf_communication_2eproto {
- static void InitDefaultsCommunication_parameter() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::Communication_proto::_Communication_parameter_default_instance_;
- new (ptr) ::Communication_proto::Communication_parameter();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::Communication_proto::Communication_parameter::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_Communication_parameter =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCommunication_parameter}, {}};
- static void InitDefaultsCommunication_parameter_all() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::Communication_proto::_Communication_parameter_all_default_instance_;
- new (ptr) ::Communication_proto::Communication_parameter_all();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::Communication_proto::Communication_parameter_all::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_Communication_parameter_all =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsCommunication_parameter_all}, {
- &protobuf_communication_2eproto::scc_info_Communication_parameter.base,}};
- void InitDefaults() {
- ::google::protobuf::internal::InitSCC(&scc_info_Communication_parameter.base);
- ::google::protobuf::internal::InitSCC(&scc_info_Communication_parameter_all.base);
- }
- ::google::protobuf::Metadata file_level_metadata[2];
- const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Communication_proto::Communication_parameter, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Communication_proto::Communication_parameter, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Communication_proto::Communication_parameter, bind_string_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Communication_proto::Communication_parameter, connect_string_vector_),
- 0,
- ~0u,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Communication_proto::Communication_parameter_all, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Communication_proto::Communication_parameter_all, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Communication_proto::Communication_parameter_all, communication_parameters_),
- 0,
- };
- static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- { 0, 7, sizeof(::Communication_proto::Communication_parameter)},
- { 9, 15, sizeof(::Communication_proto::Communication_parameter_all)},
- };
- static ::google::protobuf::Message const * const file_default_instances[] = {
- reinterpret_cast<const ::google::protobuf::Message*>(&::Communication_proto::_Communication_parameter_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::Communication_proto::_Communication_parameter_all_default_instance_),
- };
- void protobuf_AssignDescriptors() {
- AddDescriptors();
- AssignDescriptors(
- "communication.proto", schemas, file_default_instances, TableStruct::offsets,
- file_level_metadata, NULL, NULL);
- }
- void protobuf_AssignDescriptorsOnce() {
- static ::google::protobuf::internal::once_flag once;
- ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
- }
- void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
- void protobuf_RegisterTypes(const ::std::string&) {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2);
- }
- void AddDescriptorsImpl() {
- InitDefaults();
- static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- "\n\023communication.proto\022\023Communication_pro"
- "to\"M\n\027Communication_parameter\022\023\n\013bind_st"
- "ring\030\001 \001(\t\022\035\n\025connect_string_vector\030\002 \003("
- "\t\"m\n\033Communication_parameter_all\022N\n\030comm"
- "unication_parameters\030\001 \001(\0132,.Communicati"
- "on_proto.Communication_parameter"
- };
- ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- descriptor, 232);
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
- "communication.proto", &protobuf_RegisterTypes);
- }
- void AddDescriptors() {
- static ::google::protobuf::internal::once_flag once;
- ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
- }
- // Force AddDescriptors() to be called at dynamic initialization time.
- struct StaticDescriptorInitializer {
- StaticDescriptorInitializer() {
- AddDescriptors();
- }
- } static_descriptor_initializer;
- } // namespace protobuf_communication_2eproto
- namespace Communication_proto {
- // ===================================================================
- void Communication_parameter::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int Communication_parameter::kBindStringFieldNumber;
- const int Communication_parameter::kConnectStringVectorFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- Communication_parameter::Communication_parameter()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_communication_2eproto::scc_info_Communication_parameter.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:Communication_proto.Communication_parameter)
- }
- Communication_parameter::Communication_parameter(const Communication_parameter& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_),
- connect_string_vector_(from.connect_string_vector_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- bind_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.has_bind_string()) {
- bind_string_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.bind_string_);
- }
- // @@protoc_insertion_point(copy_constructor:Communication_proto.Communication_parameter)
- }
- void Communication_parameter::SharedCtor() {
- bind_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- Communication_parameter::~Communication_parameter() {
- // @@protoc_insertion_point(destructor:Communication_proto.Communication_parameter)
- SharedDtor();
- }
- void Communication_parameter::SharedDtor() {
- bind_string_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- void Communication_parameter::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* Communication_parameter::descriptor() {
- ::protobuf_communication_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_communication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const Communication_parameter& Communication_parameter::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_communication_2eproto::scc_info_Communication_parameter.base);
- return *internal_default_instance();
- }
- void Communication_parameter::Clear() {
- // @@protoc_insertion_point(message_clear_start:Communication_proto.Communication_parameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- connect_string_vector_.Clear();
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 0x00000001u) {
- bind_string_.ClearNonDefaultToEmptyNoArena();
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool Communication_parameter::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:Communication_proto.Communication_parameter)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional string bind_string = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_bind_string()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->bind_string().data(), static_cast<int>(this->bind_string().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "Communication_proto.Communication_parameter.bind_string");
- } else {
- goto handle_unusual;
- }
- break;
- }
- // repeated string connect_string_vector = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->add_connect_string_vector()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->connect_string_vector(this->connect_string_vector_size() - 1).data(),
- static_cast<int>(this->connect_string_vector(this->connect_string_vector_size() - 1).length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "Communication_proto.Communication_parameter.connect_string_vector");
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:Communication_proto.Communication_parameter)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:Communication_proto.Communication_parameter)
- return false;
- #undef DO_
- }
- void Communication_parameter::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:Communication_proto.Communication_parameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional string bind_string = 1;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->bind_string().data(), static_cast<int>(this->bind_string().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "Communication_proto.Communication_parameter.bind_string");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 1, this->bind_string(), output);
- }
- // repeated string connect_string_vector = 2;
- for (int i = 0, n = this->connect_string_vector_size(); i < n; i++) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->connect_string_vector(i).data(), static_cast<int>(this->connect_string_vector(i).length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "Communication_proto.Communication_parameter.connect_string_vector");
- ::google::protobuf::internal::WireFormatLite::WriteString(
- 2, this->connect_string_vector(i), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:Communication_proto.Communication_parameter)
- }
- ::google::protobuf::uint8* Communication_parameter::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:Communication_proto.Communication_parameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional string bind_string = 1;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->bind_string().data(), static_cast<int>(this->bind_string().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "Communication_proto.Communication_parameter.bind_string");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 1, this->bind_string(), target);
- }
- // repeated string connect_string_vector = 2;
- for (int i = 0, n = this->connect_string_vector_size(); i < n; i++) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->connect_string_vector(i).data(), static_cast<int>(this->connect_string_vector(i).length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "Communication_proto.Communication_parameter.connect_string_vector");
- target = ::google::protobuf::internal::WireFormatLite::
- WriteStringToArray(2, this->connect_string_vector(i), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:Communication_proto.Communication_parameter)
- return target;
- }
- size_t Communication_parameter::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:Communication_proto.Communication_parameter)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- // repeated string connect_string_vector = 2;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->connect_string_vector_size());
- for (int i = 0, n = this->connect_string_vector_size(); i < n; i++) {
- total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
- this->connect_string_vector(i));
- }
- // optional string bind_string = 1;
- if (has_bind_string()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->bind_string());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void Communication_parameter::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:Communication_proto.Communication_parameter)
- GOOGLE_DCHECK_NE(&from, this);
- const Communication_parameter* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const Communication_parameter>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:Communication_proto.Communication_parameter)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:Communication_proto.Communication_parameter)
- MergeFrom(*source);
- }
- }
- void Communication_parameter::MergeFrom(const Communication_parameter& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:Communication_proto.Communication_parameter)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- connect_string_vector_.MergeFrom(from.connect_string_vector_);
- if (from.has_bind_string()) {
- set_has_bind_string();
- bind_string_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.bind_string_);
- }
- }
- void Communication_parameter::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:Communication_proto.Communication_parameter)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void Communication_parameter::CopyFrom(const Communication_parameter& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:Communication_proto.Communication_parameter)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool Communication_parameter::IsInitialized() const {
- return true;
- }
- void Communication_parameter::Swap(Communication_parameter* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void Communication_parameter::InternalSwap(Communication_parameter* other) {
- using std::swap;
- connect_string_vector_.InternalSwap(CastToBase(&other->connect_string_vector_));
- bind_string_.Swap(&other->bind_string_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata Communication_parameter::GetMetadata() const {
- protobuf_communication_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_communication_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void Communication_parameter_all::InitAsDefaultInstance() {
- ::Communication_proto::_Communication_parameter_all_default_instance_._instance.get_mutable()->communication_parameters_ = const_cast< ::Communication_proto::Communication_parameter*>(
- ::Communication_proto::Communication_parameter::internal_default_instance());
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int Communication_parameter_all::kCommunicationParametersFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- Communication_parameter_all::Communication_parameter_all()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_communication_2eproto::scc_info_Communication_parameter_all.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:Communication_proto.Communication_parameter_all)
- }
- Communication_parameter_all::Communication_parameter_all(const Communication_parameter_all& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_communication_parameters()) {
- communication_parameters_ = new ::Communication_proto::Communication_parameter(*from.communication_parameters_);
- } else {
- communication_parameters_ = NULL;
- }
- // @@protoc_insertion_point(copy_constructor:Communication_proto.Communication_parameter_all)
- }
- void Communication_parameter_all::SharedCtor() {
- communication_parameters_ = NULL;
- }
- Communication_parameter_all::~Communication_parameter_all() {
- // @@protoc_insertion_point(destructor:Communication_proto.Communication_parameter_all)
- SharedDtor();
- }
- void Communication_parameter_all::SharedDtor() {
- if (this != internal_default_instance()) delete communication_parameters_;
- }
- void Communication_parameter_all::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* Communication_parameter_all::descriptor() {
- ::protobuf_communication_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_communication_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const Communication_parameter_all& Communication_parameter_all::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_communication_2eproto::scc_info_Communication_parameter_all.base);
- return *internal_default_instance();
- }
- void Communication_parameter_all::Clear() {
- // @@protoc_insertion_point(message_clear_start:Communication_proto.Communication_parameter_all)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 0x00000001u) {
- GOOGLE_DCHECK(communication_parameters_ != NULL);
- communication_parameters_->Clear();
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool Communication_parameter_all::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:Communication_proto.Communication_parameter_all)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional .Communication_proto.Communication_parameter communication_parameters = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_communication_parameters()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:Communication_proto.Communication_parameter_all)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:Communication_proto.Communication_parameter_all)
- return false;
- #undef DO_
- }
- void Communication_parameter_all::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:Communication_proto.Communication_parameter_all)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional .Communication_proto.Communication_parameter communication_parameters = 1;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->_internal_communication_parameters(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:Communication_proto.Communication_parameter_all)
- }
- ::google::protobuf::uint8* Communication_parameter_all::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:Communication_proto.Communication_parameter_all)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional .Communication_proto.Communication_parameter communication_parameters = 1;
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->_internal_communication_parameters(), deterministic, target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:Communication_proto.Communication_parameter_all)
- return target;
- }
- size_t Communication_parameter_all::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:Communication_proto.Communication_parameter_all)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- // optional .Communication_proto.Communication_parameter communication_parameters = 1;
- if (has_communication_parameters()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *communication_parameters_);
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void Communication_parameter_all::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:Communication_proto.Communication_parameter_all)
- GOOGLE_DCHECK_NE(&from, this);
- const Communication_parameter_all* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const Communication_parameter_all>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:Communication_proto.Communication_parameter_all)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:Communication_proto.Communication_parameter_all)
- MergeFrom(*source);
- }
- }
- void Communication_parameter_all::MergeFrom(const Communication_parameter_all& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:Communication_proto.Communication_parameter_all)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.has_communication_parameters()) {
- mutable_communication_parameters()->::Communication_proto::Communication_parameter::MergeFrom(from.communication_parameters());
- }
- }
- void Communication_parameter_all::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:Communication_proto.Communication_parameter_all)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void Communication_parameter_all::CopyFrom(const Communication_parameter_all& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:Communication_proto.Communication_parameter_all)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool Communication_parameter_all::IsInitialized() const {
- return true;
- }
- void Communication_parameter_all::Swap(Communication_parameter_all* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void Communication_parameter_all::InternalSwap(Communication_parameter_all* other) {
- using std::swap;
- swap(communication_parameters_, other->communication_parameters_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata Communication_parameter_all::GetMetadata() const {
- protobuf_communication_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_communication_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace Communication_proto
- namespace google {
- namespace protobuf {
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Communication_proto::Communication_parameter* Arena::CreateMaybeMessage< ::Communication_proto::Communication_parameter >(Arena* arena) {
- return Arena::CreateInternal< ::Communication_proto::Communication_parameter >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Communication_proto::Communication_parameter_all* Arena::CreateMaybeMessage< ::Communication_proto::Communication_parameter_all >(Arena* arena) {
- return Arena::CreateInternal< ::Communication_proto::Communication_parameter_all >(arena);
- }
- } // namespace protobuf
- } // namespace google
- // @@protoc_insertion_point(global_scope)
|