// Generated by the protocol buffer compiler. DO NOT EDIT! // source: dispatch_parameter.proto #include "dispatch_parameter.pb.h" #include #include #include #include #include #include #include #include #include #include // This is a temporary google only hack #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS #include "third_party/protobuf/version.h" #endif // @@protoc_insertion_point(includes) namespace Dispatch_proto { class Catcher_parameterDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Catcher_parameter_default_instance_; class Carrier_parameterDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Carrier_parameter_default_instance_; class Passageway_parameterDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Passageway_parameter_default_instance_; class Laser_parameter_allDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Laser_parameter_all_default_instance_; } // namespace Dispatch_proto namespace protobuf_dispatch_5fparameter_2eproto { void InitDefaultsCatcher_parameterImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS { void* ptr = &::Dispatch_proto::_Catcher_parameter_default_instance_; new (ptr) ::Dispatch_proto::Catcher_parameter(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::Dispatch_proto::Catcher_parameter::InitAsDefaultInstance(); } void InitDefaultsCatcher_parameter() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCatcher_parameterImpl); } void InitDefaultsCarrier_parameterImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS { void* ptr = &::Dispatch_proto::_Carrier_parameter_default_instance_; new (ptr) ::Dispatch_proto::Carrier_parameter(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::Dispatch_proto::Carrier_parameter::InitAsDefaultInstance(); } void InitDefaultsCarrier_parameter() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCarrier_parameterImpl); } void InitDefaultsPassageway_parameterImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS { void* ptr = &::Dispatch_proto::_Passageway_parameter_default_instance_; new (ptr) ::Dispatch_proto::Passageway_parameter(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::Dispatch_proto::Passageway_parameter::InitAsDefaultInstance(); } void InitDefaultsPassageway_parameter() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPassageway_parameterImpl); } void InitDefaultsLaser_parameter_allImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS protobuf_dispatch_5fparameter_2eproto::InitDefaultsCatcher_parameter(); protobuf_dispatch_5fparameter_2eproto::InitDefaultsCarrier_parameter(); protobuf_dispatch_5fparameter_2eproto::InitDefaultsPassageway_parameter(); { void* ptr = &::Dispatch_proto::_Laser_parameter_all_default_instance_; new (ptr) ::Dispatch_proto::Laser_parameter_all(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::Dispatch_proto::Laser_parameter_all::InitAsDefaultInstance(); } void InitDefaultsLaser_parameter_all() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLaser_parameter_allImpl); } ::google::protobuf::Metadata file_level_metadata[4]; const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Dispatch_proto::Catcher_parameter, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Dispatch_proto::Catcher_parameter, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Dispatch_proto::Catcher_parameter, id_), 0, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Dispatch_proto::Carrier_parameter, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Dispatch_proto::Carrier_parameter, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Dispatch_proto::Carrier_parameter, id_), 0, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Dispatch_proto::Passageway_parameter, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Dispatch_proto::Passageway_parameter, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Dispatch_proto::Passageway_parameter, id_), 0, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Dispatch_proto::Laser_parameter_all, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Dispatch_proto::Laser_parameter_all, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Dispatch_proto::Laser_parameter_all, catcher_size_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Dispatch_proto::Laser_parameter_all, catcher_parameters_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Dispatch_proto::Laser_parameter_all, carrier_size_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Dispatch_proto::Laser_parameter_all, carrier_parameters_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Dispatch_proto::Laser_parameter_all, passageway_size_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Dispatch_proto::Laser_parameter_all, passageway_parameters_), 0, ~0u, 1, ~0u, 2, ~0u, }; static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { { 0, 6, sizeof(::Dispatch_proto::Catcher_parameter)}, { 7, 13, sizeof(::Dispatch_proto::Carrier_parameter)}, { 14, 20, sizeof(::Dispatch_proto::Passageway_parameter)}, { 21, 32, sizeof(::Dispatch_proto::Laser_parameter_all)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::Dispatch_proto::_Catcher_parameter_default_instance_), reinterpret_cast(&::Dispatch_proto::_Carrier_parameter_default_instance_), reinterpret_cast(&::Dispatch_proto::_Passageway_parameter_default_instance_), reinterpret_cast(&::Dispatch_proto::_Laser_parameter_all_default_instance_), }; void protobuf_AssignDescriptors() { AddDescriptors(); ::google::protobuf::MessageFactory* factory = NULL; AssignDescriptors( "dispatch_parameter.proto", schemas, file_default_instances, TableStruct::offsets, factory, file_level_metadata, NULL, NULL); } void protobuf_AssignDescriptorsOnce() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&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, 4); } void AddDescriptorsImpl() { InitDefaults(); static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { "\n\030dispatch_parameter.proto\022\016Dispatch_pro" "to\"\037\n\021Catcher_parameter\022\n\n\002id\030\001 \002(\005\"\037\n\021C" "arrier_parameter\022\n\n\002id\030\001 \002(\005\"\"\n\024Passagew" "ay_parameter\022\n\n\002id\030\001 \002(\005\"\235\002\n\023Laser_param" "eter_all\022\024\n\014catcher_size\030\001 \002(\005\022=\n\022catche" "r_parameters\030\002 \003(\0132!.Dispatch_proto.Catc" "her_parameter\022\024\n\014carrier_size\030\003 \002(\005\022=\n\022c" "arrier_parameters\030\004 \003(\0132!.Dispatch_proto" ".Carrier_parameter\022\027\n\017passageway_size\030\005 " "\002(\005\022C\n\025passageway_parameters\030\006 \003(\0132$.Dis" "patch_proto.Passageway_parameter" }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( descriptor, 432); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "dispatch_parameter.proto", &protobuf_RegisterTypes); } void AddDescriptors() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); } // Force AddDescriptors() to be called at dynamic initialization time. struct StaticDescriptorInitializer { StaticDescriptorInitializer() { AddDescriptors(); } } static_descriptor_initializer; } // namespace protobuf_dispatch_5fparameter_2eproto namespace Dispatch_proto { // =================================================================== void Catcher_parameter::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Catcher_parameter::kIdFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Catcher_parameter::Catcher_parameter() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_dispatch_5fparameter_2eproto::InitDefaultsCatcher_parameter(); } SharedCtor(); // @@protoc_insertion_point(constructor:Dispatch_proto.Catcher_parameter) } Catcher_parameter::Catcher_parameter(const Catcher_parameter& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); id_ = from.id_; // @@protoc_insertion_point(copy_constructor:Dispatch_proto.Catcher_parameter) } void Catcher_parameter::SharedCtor() { _cached_size_ = 0; id_ = 0; } Catcher_parameter::~Catcher_parameter() { // @@protoc_insertion_point(destructor:Dispatch_proto.Catcher_parameter) SharedDtor(); } void Catcher_parameter::SharedDtor() { } void Catcher_parameter::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Catcher_parameter::descriptor() { ::protobuf_dispatch_5fparameter_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_dispatch_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Catcher_parameter& Catcher_parameter::default_instance() { ::protobuf_dispatch_5fparameter_2eproto::InitDefaultsCatcher_parameter(); return *internal_default_instance(); } Catcher_parameter* Catcher_parameter::New(::google::protobuf::Arena* arena) const { Catcher_parameter* n = new Catcher_parameter; if (arena != NULL) { arena->Own(n); } return n; } void Catcher_parameter::Clear() { // @@protoc_insertion_point(message_clear_start:Dispatch_proto.Catcher_parameter) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; id_ = 0; _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Catcher_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:Dispatch_proto.Catcher_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)) { // required int32 id = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { set_has_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &id_))); } 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:Dispatch_proto.Catcher_parameter) return true; failure: // @@protoc_insertion_point(parse_failure:Dispatch_proto.Catcher_parameter) return false; #undef DO_ } void Catcher_parameter::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:Dispatch_proto.Catcher_parameter) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required int32 id = 1; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->id(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:Dispatch_proto.Catcher_parameter) } ::google::protobuf::uint8* Catcher_parameter::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:Dispatch_proto.Catcher_parameter) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required int32 id = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->id(), 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:Dispatch_proto.Catcher_parameter) return target; } size_t Catcher_parameter::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Dispatch_proto.Catcher_parameter) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } // required int32 id = 1; if (has_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->id()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void Catcher_parameter::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Dispatch_proto.Catcher_parameter) GOOGLE_DCHECK_NE(&from, this); const Catcher_parameter* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Dispatch_proto.Catcher_parameter) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Dispatch_proto.Catcher_parameter) MergeFrom(*source); } } void Catcher_parameter::MergeFrom(const Catcher_parameter& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Dispatch_proto.Catcher_parameter) 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_id()) { set_id(from.id()); } } void Catcher_parameter::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Dispatch_proto.Catcher_parameter) if (&from == this) return; Clear(); MergeFrom(from); } void Catcher_parameter::CopyFrom(const Catcher_parameter& from) { // @@protoc_insertion_point(class_specific_copy_from_start:Dispatch_proto.Catcher_parameter) if (&from == this) return; Clear(); MergeFrom(from); } bool Catcher_parameter::IsInitialized() const { if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; return true; } void Catcher_parameter::Swap(Catcher_parameter* other) { if (other == this) return; InternalSwap(other); } void Catcher_parameter::InternalSwap(Catcher_parameter* other) { using std::swap; swap(id_, other->id_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Catcher_parameter::GetMetadata() const { protobuf_dispatch_5fparameter_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_dispatch_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Carrier_parameter::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Carrier_parameter::kIdFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Carrier_parameter::Carrier_parameter() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_dispatch_5fparameter_2eproto::InitDefaultsCarrier_parameter(); } SharedCtor(); // @@protoc_insertion_point(constructor:Dispatch_proto.Carrier_parameter) } Carrier_parameter::Carrier_parameter(const Carrier_parameter& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); id_ = from.id_; // @@protoc_insertion_point(copy_constructor:Dispatch_proto.Carrier_parameter) } void Carrier_parameter::SharedCtor() { _cached_size_ = 0; id_ = 0; } Carrier_parameter::~Carrier_parameter() { // @@protoc_insertion_point(destructor:Dispatch_proto.Carrier_parameter) SharedDtor(); } void Carrier_parameter::SharedDtor() { } void Carrier_parameter::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Carrier_parameter::descriptor() { ::protobuf_dispatch_5fparameter_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_dispatch_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Carrier_parameter& Carrier_parameter::default_instance() { ::protobuf_dispatch_5fparameter_2eproto::InitDefaultsCarrier_parameter(); return *internal_default_instance(); } Carrier_parameter* Carrier_parameter::New(::google::protobuf::Arena* arena) const { Carrier_parameter* n = new Carrier_parameter; if (arena != NULL) { arena->Own(n); } return n; } void Carrier_parameter::Clear() { // @@protoc_insertion_point(message_clear_start:Dispatch_proto.Carrier_parameter) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; id_ = 0; _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Carrier_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:Dispatch_proto.Carrier_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)) { // required int32 id = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { set_has_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &id_))); } 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:Dispatch_proto.Carrier_parameter) return true; failure: // @@protoc_insertion_point(parse_failure:Dispatch_proto.Carrier_parameter) return false; #undef DO_ } void Carrier_parameter::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:Dispatch_proto.Carrier_parameter) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required int32 id = 1; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->id(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:Dispatch_proto.Carrier_parameter) } ::google::protobuf::uint8* Carrier_parameter::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:Dispatch_proto.Carrier_parameter) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required int32 id = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->id(), 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:Dispatch_proto.Carrier_parameter) return target; } size_t Carrier_parameter::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Dispatch_proto.Carrier_parameter) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } // required int32 id = 1; if (has_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->id()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void Carrier_parameter::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Dispatch_proto.Carrier_parameter) GOOGLE_DCHECK_NE(&from, this); const Carrier_parameter* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Dispatch_proto.Carrier_parameter) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Dispatch_proto.Carrier_parameter) MergeFrom(*source); } } void Carrier_parameter::MergeFrom(const Carrier_parameter& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Dispatch_proto.Carrier_parameter) 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_id()) { set_id(from.id()); } } void Carrier_parameter::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Dispatch_proto.Carrier_parameter) if (&from == this) return; Clear(); MergeFrom(from); } void Carrier_parameter::CopyFrom(const Carrier_parameter& from) { // @@protoc_insertion_point(class_specific_copy_from_start:Dispatch_proto.Carrier_parameter) if (&from == this) return; Clear(); MergeFrom(from); } bool Carrier_parameter::IsInitialized() const { if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; return true; } void Carrier_parameter::Swap(Carrier_parameter* other) { if (other == this) return; InternalSwap(other); } void Carrier_parameter::InternalSwap(Carrier_parameter* other) { using std::swap; swap(id_, other->id_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Carrier_parameter::GetMetadata() const { protobuf_dispatch_5fparameter_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_dispatch_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Passageway_parameter::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Passageway_parameter::kIdFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Passageway_parameter::Passageway_parameter() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_dispatch_5fparameter_2eproto::InitDefaultsPassageway_parameter(); } SharedCtor(); // @@protoc_insertion_point(constructor:Dispatch_proto.Passageway_parameter) } Passageway_parameter::Passageway_parameter(const Passageway_parameter& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); id_ = from.id_; // @@protoc_insertion_point(copy_constructor:Dispatch_proto.Passageway_parameter) } void Passageway_parameter::SharedCtor() { _cached_size_ = 0; id_ = 0; } Passageway_parameter::~Passageway_parameter() { // @@protoc_insertion_point(destructor:Dispatch_proto.Passageway_parameter) SharedDtor(); } void Passageway_parameter::SharedDtor() { } void Passageway_parameter::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Passageway_parameter::descriptor() { ::protobuf_dispatch_5fparameter_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_dispatch_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Passageway_parameter& Passageway_parameter::default_instance() { ::protobuf_dispatch_5fparameter_2eproto::InitDefaultsPassageway_parameter(); return *internal_default_instance(); } Passageway_parameter* Passageway_parameter::New(::google::protobuf::Arena* arena) const { Passageway_parameter* n = new Passageway_parameter; if (arena != NULL) { arena->Own(n); } return n; } void Passageway_parameter::Clear() { // @@protoc_insertion_point(message_clear_start:Dispatch_proto.Passageway_parameter) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; id_ = 0; _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Passageway_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:Dispatch_proto.Passageway_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)) { // required int32 id = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { set_has_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &id_))); } 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:Dispatch_proto.Passageway_parameter) return true; failure: // @@protoc_insertion_point(parse_failure:Dispatch_proto.Passageway_parameter) return false; #undef DO_ } void Passageway_parameter::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:Dispatch_proto.Passageway_parameter) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required int32 id = 1; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->id(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:Dispatch_proto.Passageway_parameter) } ::google::protobuf::uint8* Passageway_parameter::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:Dispatch_proto.Passageway_parameter) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required int32 id = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->id(), 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:Dispatch_proto.Passageway_parameter) return target; } size_t Passageway_parameter::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Dispatch_proto.Passageway_parameter) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } // required int32 id = 1; if (has_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->id()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void Passageway_parameter::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Dispatch_proto.Passageway_parameter) GOOGLE_DCHECK_NE(&from, this); const Passageway_parameter* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Dispatch_proto.Passageway_parameter) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Dispatch_proto.Passageway_parameter) MergeFrom(*source); } } void Passageway_parameter::MergeFrom(const Passageway_parameter& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Dispatch_proto.Passageway_parameter) 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_id()) { set_id(from.id()); } } void Passageway_parameter::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Dispatch_proto.Passageway_parameter) if (&from == this) return; Clear(); MergeFrom(from); } void Passageway_parameter::CopyFrom(const Passageway_parameter& from) { // @@protoc_insertion_point(class_specific_copy_from_start:Dispatch_proto.Passageway_parameter) if (&from == this) return; Clear(); MergeFrom(from); } bool Passageway_parameter::IsInitialized() const { if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; return true; } void Passageway_parameter::Swap(Passageway_parameter* other) { if (other == this) return; InternalSwap(other); } void Passageway_parameter::InternalSwap(Passageway_parameter* other) { using std::swap; swap(id_, other->id_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Passageway_parameter::GetMetadata() const { protobuf_dispatch_5fparameter_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_dispatch_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Laser_parameter_all::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Laser_parameter_all::kCatcherSizeFieldNumber; const int Laser_parameter_all::kCatcherParametersFieldNumber; const int Laser_parameter_all::kCarrierSizeFieldNumber; const int Laser_parameter_all::kCarrierParametersFieldNumber; const int Laser_parameter_all::kPassagewaySizeFieldNumber; const int Laser_parameter_all::kPassagewayParametersFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Laser_parameter_all::Laser_parameter_all() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_dispatch_5fparameter_2eproto::InitDefaultsLaser_parameter_all(); } SharedCtor(); // @@protoc_insertion_point(constructor:Dispatch_proto.Laser_parameter_all) } Laser_parameter_all::Laser_parameter_all(const Laser_parameter_all& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0), catcher_parameters_(from.catcher_parameters_), carrier_parameters_(from.carrier_parameters_), passageway_parameters_(from.passageway_parameters_) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&catcher_size_, &from.catcher_size_, static_cast(reinterpret_cast(&passageway_size_) - reinterpret_cast(&catcher_size_)) + sizeof(passageway_size_)); // @@protoc_insertion_point(copy_constructor:Dispatch_proto.Laser_parameter_all) } void Laser_parameter_all::SharedCtor() { _cached_size_ = 0; ::memset(&catcher_size_, 0, static_cast( reinterpret_cast(&passageway_size_) - reinterpret_cast(&catcher_size_)) + sizeof(passageway_size_)); } Laser_parameter_all::~Laser_parameter_all() { // @@protoc_insertion_point(destructor:Dispatch_proto.Laser_parameter_all) SharedDtor(); } void Laser_parameter_all::SharedDtor() { } void Laser_parameter_all::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Laser_parameter_all::descriptor() { ::protobuf_dispatch_5fparameter_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_dispatch_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Laser_parameter_all& Laser_parameter_all::default_instance() { ::protobuf_dispatch_5fparameter_2eproto::InitDefaultsLaser_parameter_all(); return *internal_default_instance(); } Laser_parameter_all* Laser_parameter_all::New(::google::protobuf::Arena* arena) const { Laser_parameter_all* n = new Laser_parameter_all; if (arena != NULL) { arena->Own(n); } return n; } void Laser_parameter_all::Clear() { // @@protoc_insertion_point(message_clear_start:Dispatch_proto.Laser_parameter_all) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; catcher_parameters_.Clear(); carrier_parameters_.Clear(); passageway_parameters_.Clear(); cached_has_bits = _has_bits_[0]; if (cached_has_bits & 7u) { ::memset(&catcher_size_, 0, static_cast( reinterpret_cast(&passageway_size_) - reinterpret_cast(&catcher_size_)) + sizeof(passageway_size_)); } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Laser_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:Dispatch_proto.Laser_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)) { // required int32 catcher_size = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { set_has_catcher_size(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &catcher_size_))); } else { goto handle_unusual; } break; } // repeated .Dispatch_proto.Catcher_parameter catcher_parameters = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_catcher_parameters())); } else { goto handle_unusual; } break; } // required int32 carrier_size = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { set_has_carrier_size(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &carrier_size_))); } else { goto handle_unusual; } break; } // repeated .Dispatch_proto.Carrier_parameter carrier_parameters = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_carrier_parameters())); } else { goto handle_unusual; } break; } // required int32 passageway_size = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { set_has_passageway_size(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &passageway_size_))); } else { goto handle_unusual; } break; } // repeated .Dispatch_proto.Passageway_parameter passageway_parameters = 6; case 6: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_passageway_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:Dispatch_proto.Laser_parameter_all) return true; failure: // @@protoc_insertion_point(parse_failure:Dispatch_proto.Laser_parameter_all) return false; #undef DO_ } void Laser_parameter_all::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:Dispatch_proto.Laser_parameter_all) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required int32 catcher_size = 1; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->catcher_size(), output); } // repeated .Dispatch_proto.Catcher_parameter catcher_parameters = 2; for (unsigned int i = 0, n = static_cast(this->catcher_parameters_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, this->catcher_parameters(static_cast(i)), output); } // required int32 carrier_size = 3; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->carrier_size(), output); } // repeated .Dispatch_proto.Carrier_parameter carrier_parameters = 4; for (unsigned int i = 0, n = static_cast(this->carrier_parameters_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, this->carrier_parameters(static_cast(i)), output); } // required int32 passageway_size = 5; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->passageway_size(), output); } // repeated .Dispatch_proto.Passageway_parameter passageway_parameters = 6; for (unsigned int i = 0, n = static_cast(this->passageway_parameters_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 6, this->passageway_parameters(static_cast(i)), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:Dispatch_proto.Laser_parameter_all) } ::google::protobuf::uint8* Laser_parameter_all::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:Dispatch_proto.Laser_parameter_all) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required int32 catcher_size = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->catcher_size(), target); } // repeated .Dispatch_proto.Catcher_parameter catcher_parameters = 2; for (unsigned int i = 0, n = static_cast(this->catcher_parameters_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 2, this->catcher_parameters(static_cast(i)), deterministic, target); } // required int32 carrier_size = 3; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->carrier_size(), target); } // repeated .Dispatch_proto.Carrier_parameter carrier_parameters = 4; for (unsigned int i = 0, n = static_cast(this->carrier_parameters_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 4, this->carrier_parameters(static_cast(i)), deterministic, target); } // required int32 passageway_size = 5; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->passageway_size(), target); } // repeated .Dispatch_proto.Passageway_parameter passageway_parameters = 6; for (unsigned int i = 0, n = static_cast(this->passageway_parameters_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 6, this->passageway_parameters(static_cast(i)), 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:Dispatch_proto.Laser_parameter_all) return target; } size_t Laser_parameter_all::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Dispatch_proto.Laser_parameter_all) size_t total_size = 0; if (has_catcher_size()) { // required int32 catcher_size = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->catcher_size()); } if (has_carrier_size()) { // required int32 carrier_size = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->carrier_size()); } if (has_passageway_size()) { // required int32 passageway_size = 5; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->passageway_size()); } return total_size; } size_t Laser_parameter_all::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Dispatch_proto.Laser_parameter_all) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. // required int32 catcher_size = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->catcher_size()); // required int32 carrier_size = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->carrier_size()); // required int32 passageway_size = 5; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->passageway_size()); } else { total_size += RequiredFieldsByteSizeFallback(); } // repeated .Dispatch_proto.Catcher_parameter catcher_parameters = 2; { unsigned int count = static_cast(this->catcher_parameters_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize( this->catcher_parameters(static_cast(i))); } } // repeated .Dispatch_proto.Carrier_parameter carrier_parameters = 4; { unsigned int count = static_cast(this->carrier_parameters_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize( this->carrier_parameters(static_cast(i))); } } // repeated .Dispatch_proto.Passageway_parameter passageway_parameters = 6; { unsigned int count = static_cast(this->passageway_parameters_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize( this->passageway_parameters(static_cast(i))); } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void Laser_parameter_all::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Dispatch_proto.Laser_parameter_all) GOOGLE_DCHECK_NE(&from, this); const Laser_parameter_all* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Dispatch_proto.Laser_parameter_all) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Dispatch_proto.Laser_parameter_all) MergeFrom(*source); } } void Laser_parameter_all::MergeFrom(const Laser_parameter_all& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Dispatch_proto.Laser_parameter_all) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; catcher_parameters_.MergeFrom(from.catcher_parameters_); carrier_parameters_.MergeFrom(from.carrier_parameters_); passageway_parameters_.MergeFrom(from.passageway_parameters_); cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 7u) { if (cached_has_bits & 0x00000001u) { catcher_size_ = from.catcher_size_; } if (cached_has_bits & 0x00000002u) { carrier_size_ = from.carrier_size_; } if (cached_has_bits & 0x00000004u) { passageway_size_ = from.passageway_size_; } _has_bits_[0] |= cached_has_bits; } } void Laser_parameter_all::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Dispatch_proto.Laser_parameter_all) if (&from == this) return; Clear(); MergeFrom(from); } void Laser_parameter_all::CopyFrom(const Laser_parameter_all& from) { // @@protoc_insertion_point(class_specific_copy_from_start:Dispatch_proto.Laser_parameter_all) if (&from == this) return; Clear(); MergeFrom(from); } bool Laser_parameter_all::IsInitialized() const { if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; if (!::google::protobuf::internal::AllAreInitialized(this->catcher_parameters())) return false; if (!::google::protobuf::internal::AllAreInitialized(this->carrier_parameters())) return false; if (!::google::protobuf::internal::AllAreInitialized(this->passageway_parameters())) return false; return true; } void Laser_parameter_all::Swap(Laser_parameter_all* other) { if (other == this) return; InternalSwap(other); } void Laser_parameter_all::InternalSwap(Laser_parameter_all* other) { using std::swap; catcher_parameters_.InternalSwap(&other->catcher_parameters_); carrier_parameters_.InternalSwap(&other->carrier_parameters_); passageway_parameters_.InternalSwap(&other->passageway_parameters_); swap(catcher_size_, other->catcher_size_); swap(carrier_size_, other->carrier_size_); swap(passageway_size_, other->passageway_size_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Laser_parameter_all::GetMetadata() const { protobuf_dispatch_5fparameter_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_dispatch_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages]; } // @@protoc_insertion_point(namespace_scope) } // namespace Dispatch_proto // @@protoc_insertion_point(global_scope)