1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: dispatch_parameter.proto
- #include "dispatch_parameter.pb.h"
- #include <algorithm>
- #include <google/protobuf/stubs/common.h>
- #include <google/protobuf/stubs/port.h>
- #include <google/protobuf/stubs/once.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 Dispatch_proto {
- class Catcher_parameterDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<Catcher_parameter>
- _instance;
- } _Catcher_parameter_default_instance_;
- class Carrier_parameterDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<Carrier_parameter>
- _instance;
- } _Carrier_parameter_default_instance_;
- class Passageway_parameterDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<Passageway_parameter>
- _instance;
- } _Passageway_parameter_default_instance_;
- class Laser_parameter_allDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<Laser_parameter_all>
- _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<const ::google::protobuf::Message*>(&::Dispatch_proto::_Catcher_parameter_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::Dispatch_proto::_Carrier_parameter_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::Dispatch_proto::_Passageway_parameter_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::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<const Catcher_parameter>(
- &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<const Carrier_parameter>(
- &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<const Passageway_parameter>(
- &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<size_t>(reinterpret_cast<char*>(&passageway_size_) -
- reinterpret_cast<char*>(&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<size_t>(
- reinterpret_cast<char*>(&passageway_size_) -
- reinterpret_cast<char*>(&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<size_t>(
- reinterpret_cast<char*>(&passageway_size_) -
- reinterpret_cast<char*>(&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<unsigned int>(this->catcher_parameters_size()); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->catcher_parameters(static_cast<int>(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<unsigned int>(this->carrier_parameters_size()); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 4, this->carrier_parameters(static_cast<int>(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<unsigned int>(this->passageway_parameters_size()); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 6, this->passageway_parameters(static_cast<int>(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<unsigned int>(this->catcher_parameters_size()); i < n; i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 2, this->catcher_parameters(static_cast<int>(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<unsigned int>(this->carrier_parameters_size()); i < n; i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 4, this->carrier_parameters(static_cast<int>(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<unsigned int>(this->passageway_parameters_size()); i < n; i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 6, this->passageway_parameters(static_cast<int>(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<unsigned int>(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<int>(i)));
- }
- }
- // repeated .Dispatch_proto.Carrier_parameter carrier_parameters = 4;
- {
- unsigned int count = static_cast<unsigned int>(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<int>(i)));
- }
- }
- // repeated .Dispatch_proto.Passageway_parameter passageway_parameters = 6;
- {
- unsigned int count = static_cast<unsigned int>(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<int>(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<const Laser_parameter_all>(
- &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)
|