diff options
author | 2023-09-22 09:45:27 -0400 | |
---|---|---|
committer | 2023-09-22 09:45:27 -0400 | |
commit | 766283068a39df9bd7dabf10c8c36f5a75d4335a (patch) | |
tree | 2a7e07becb75e71c48774fd686c8840df031f5b6 /bin/main/messages/VehiclePrecisionLocation.pb.cc | |
parent | 59f56720a88b9a8f638e4f0e6f1560cc575887df (diff) |
Signed-off-by: James Simon <jamsimox@amazon.com>
Change-Id: I9214b5eae0402e0de542227bda2aee2981c52eb5
Diffstat (limited to 'bin/main/messages/VehiclePrecisionLocation.pb.cc')
-rw-r--r-- | bin/main/messages/VehiclePrecisionLocation.pb.cc | 2023 |
1 files changed, 2023 insertions, 0 deletions
diff --git a/bin/main/messages/VehiclePrecisionLocation.pb.cc b/bin/main/messages/VehiclePrecisionLocation.pb.cc new file mode 100644 index 0000000..5f9974f --- /dev/null +++ b/bin/main/messages/VehiclePrecisionLocation.pb.cc @@ -0,0 +1,2023 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages/VehiclePrecisionLocation.proto + +#include "messages/VehiclePrecisionLocation.pb.h" + +#include <algorithm> +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/wire_format_lite.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" +// @@protoc_insertion_point(includes) + +// Must be included last. +#include "google/protobuf/port_def.inc" +PROTOBUF_PRAGMA_INIT_SEG +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal; +namespace messages { +PROTOBUF_CONSTEXPR RequestCurrentVehicleLocationTest::RequestCurrentVehicleLocationTest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.vehicle_identity_)*/ { + &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} + } + + , /*decltype(_impl_._cached_size_)*/{}} {} +struct RequestCurrentVehicleLocationTestDefaultTypeInternal { + PROTOBUF_CONSTEXPR RequestCurrentVehicleLocationTestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~RequestCurrentVehicleLocationTestDefaultTypeInternal() {} + union { + RequestCurrentVehicleLocationTest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RequestCurrentVehicleLocationTestDefaultTypeInternal _RequestCurrentVehicleLocationTest_default_instance_; +PROTOBUF_CONSTEXPR ResponseCurrentVehicleLocation::ResponseCurrentVehicleLocation( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.vehiclemessageheading_)*/nullptr + , /*decltype(_impl_.vehiclecurrentlocation_)*/nullptr + , /*decltype(_impl_.responsestatus_)*/ 0 + + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ResponseCurrentVehicleLocationDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResponseCurrentVehicleLocationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ResponseCurrentVehicleLocationDefaultTypeInternal() {} + union { + ResponseCurrentVehicleLocation _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResponseCurrentVehicleLocationDefaultTypeInternal _ResponseCurrentVehicleLocation_default_instance_; +PROTOBUF_CONSTEXPR PublishCurrentVehicleLocation::PublishCurrentVehicleLocation( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.vehiclemessageheading_)*/nullptr + , /*decltype(_impl_.vehiclecurrentlocation_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct PublishCurrentVehicleLocationDefaultTypeInternal { + PROTOBUF_CONSTEXPR PublishCurrentVehicleLocationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~PublishCurrentVehicleLocationDefaultTypeInternal() {} + union { + PublishCurrentVehicleLocation _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PublishCurrentVehicleLocationDefaultTypeInternal _PublishCurrentVehicleLocation_default_instance_; +PROTOBUF_CONSTEXPR VehicleCurrentLocation::VehicleCurrentLocation( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.timestamp_)*/ { + &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} + } + + , /*decltype(_impl_.gnssreceiver_)*/nullptr + , /*decltype(_impl_.latitude_)*/ 0 + + , /*decltype(_impl_.longitude_)*/ 0 + + , /*decltype(_impl_.heading_)*/ 0 + + , /*decltype(_impl_.horizontalaccuracy_)*/ 0 + + , /*decltype(_impl_.altitude_)*/ 0 + + , /*decltype(_impl_.verticalaccuracy_)*/ 0 + + , /*decltype(_impl_._cached_size_)*/{}} {} +struct VehicleCurrentLocationDefaultTypeInternal { + PROTOBUF_CONSTEXPR VehicleCurrentLocationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~VehicleCurrentLocationDefaultTypeInternal() {} + union { + VehicleCurrentLocation _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VehicleCurrentLocationDefaultTypeInternal _VehicleCurrentLocation_default_instance_; +PROTOBUF_CONSTEXPR VehicleCurrentLocationGNSSReceiver::VehicleCurrentLocationGNSSReceiver( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.fixtype_)*/ { + &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} + } + + , /*decltype(_impl_.mountingposition_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct VehicleCurrentLocationGNSSReceiverDefaultTypeInternal { + PROTOBUF_CONSTEXPR VehicleCurrentLocationGNSSReceiverDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~VehicleCurrentLocationGNSSReceiverDefaultTypeInternal() {} + union { + VehicleCurrentLocationGNSSReceiver _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VehicleCurrentLocationGNSSReceiverDefaultTypeInternal _VehicleCurrentLocationGNSSReceiver_default_instance_; +PROTOBUF_CONSTEXPR VehicleCurrentLocationGNSSReceiverMountingPosition::VehicleCurrentLocationGNSSReceiverMountingPosition( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.x_)*/ 0 + + , /*decltype(_impl_.y_)*/ 0 + + , /*decltype(_impl_.z_)*/ 0 + + , /*decltype(_impl_._cached_size_)*/{}} {} +struct VehicleCurrentLocationGNSSReceiverMountingPositionDefaultTypeInternal { + PROTOBUF_CONSTEXPR VehicleCurrentLocationGNSSReceiverMountingPositionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~VehicleCurrentLocationGNSSReceiverMountingPositionDefaultTypeInternal() {} + union { + VehicleCurrentLocationGNSSReceiverMountingPosition _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VehicleCurrentLocationGNSSReceiverMountingPositionDefaultTypeInternal _VehicleCurrentLocationGNSSReceiverMountingPosition_default_instance_; +} // namespace messages +static ::_pb::Metadata file_level_metadata_messages_2fVehiclePrecisionLocation_2eproto[6]; +static const ::_pb::EnumDescriptor* file_level_enum_descriptors_messages_2fVehiclePrecisionLocation_2eproto[1]; +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_messages_2fVehiclePrecisionLocation_2eproto = nullptr; +const ::uint32_t TableStruct_messages_2fVehiclePrecisionLocation_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( + protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::messages::RequestCurrentVehicleLocationTest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::messages::RequestCurrentVehicleLocationTest, _impl_.vehicle_identity_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::messages::ResponseCurrentVehicleLocation, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::messages::ResponseCurrentVehicleLocation, _impl_.vehiclemessageheading_), + PROTOBUF_FIELD_OFFSET(::messages::ResponseCurrentVehicleLocation, _impl_.vehiclecurrentlocation_), + PROTOBUF_FIELD_OFFSET(::messages::ResponseCurrentVehicleLocation, _impl_.responsestatus_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::messages::PublishCurrentVehicleLocation, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::messages::PublishCurrentVehicleLocation, _impl_.vehiclemessageheading_), + PROTOBUF_FIELD_OFFSET(::messages::PublishCurrentVehicleLocation, _impl_.vehiclecurrentlocation_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::messages::VehicleCurrentLocation, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::messages::VehicleCurrentLocation, _impl_.timestamp_), + PROTOBUF_FIELD_OFFSET(::messages::VehicleCurrentLocation, _impl_.latitude_), + PROTOBUF_FIELD_OFFSET(::messages::VehicleCurrentLocation, _impl_.longitude_), + PROTOBUF_FIELD_OFFSET(::messages::VehicleCurrentLocation, _impl_.heading_), + PROTOBUF_FIELD_OFFSET(::messages::VehicleCurrentLocation, _impl_.horizontalaccuracy_), + PROTOBUF_FIELD_OFFSET(::messages::VehicleCurrentLocation, _impl_.altitude_), + PROTOBUF_FIELD_OFFSET(::messages::VehicleCurrentLocation, _impl_.verticalaccuracy_), + PROTOBUF_FIELD_OFFSET(::messages::VehicleCurrentLocation, _impl_.gnssreceiver_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::messages::VehicleCurrentLocationGNSSReceiver, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::messages::VehicleCurrentLocationGNSSReceiver, _impl_.fixtype_), + PROTOBUF_FIELD_OFFSET(::messages::VehicleCurrentLocationGNSSReceiver, _impl_.mountingposition_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::messages::VehicleCurrentLocationGNSSReceiverMountingPosition, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::messages::VehicleCurrentLocationGNSSReceiverMountingPosition, _impl_.x_), + PROTOBUF_FIELD_OFFSET(::messages::VehicleCurrentLocationGNSSReceiverMountingPosition, _impl_.y_), + PROTOBUF_FIELD_OFFSET(::messages::VehicleCurrentLocationGNSSReceiverMountingPosition, _impl_.z_), +}; + +static const ::_pbi::MigrationSchema + schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::messages::RequestCurrentVehicleLocationTest)}, + { 9, -1, -1, sizeof(::messages::ResponseCurrentVehicleLocation)}, + { 20, -1, -1, sizeof(::messages::PublishCurrentVehicleLocation)}, + { 30, -1, -1, sizeof(::messages::VehicleCurrentLocation)}, + { 46, -1, -1, sizeof(::messages::VehicleCurrentLocationGNSSReceiver)}, + { 56, -1, -1, sizeof(::messages::VehicleCurrentLocationGNSSReceiverMountingPosition)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::messages::_RequestCurrentVehicleLocationTest_default_instance_._instance, + &::messages::_ResponseCurrentVehicleLocation_default_instance_._instance, + &::messages::_PublishCurrentVehicleLocation_default_instance_._instance, + &::messages::_VehicleCurrentLocation_default_instance_._instance, + &::messages::_VehicleCurrentLocationGNSSReceiver_default_instance_._instance, + &::messages::_VehicleCurrentLocationGNSSReceiverMountingPosition_default_instance_._instance, +}; +const char descriptor_table_protodef_messages_2fVehiclePrecisionLocation_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + "\n\'messages/VehiclePrecisionLocation.prot" + "o\022\010messages\032#messages/VehicleMessageHead" + "er.proto\"=\n!RequestCurrentVehicleLocatio" + "nTest\022\030\n\020vehicle_identity\030\001 \001(\t\"\330\001\n\036Resp" + "onseCurrentVehicleLocation\022>\n\025vehicleMes" + "sageHeading\030\001 \001(\0132\037.messages.VehicleMess" + "ageHeading\022@\n\026vehicleCurrentLocation\030\002 \001" + "(\0132 .messages.VehicleCurrentLocation\0224\n\016" + "responseStatus\030\003 \001(\0162\034.messages.Response" + "StatusEnum\"\241\001\n\035PublishCurrentVehicleLoca" + "tion\022>\n\025vehicleMessageHeading\030\001 \001(\0132\037.me" + "ssages.VehicleMessageHeading\022@\n\026vehicleC" + "urrentLocation\030\002 \001(\0132 .messages.VehicleC" + "urrentLocation\"\355\001\n\026VehicleCurrentLocatio" + "n\022\021\n\tTimestamp\030\001 \001(\t\022\020\n\010Latitude\030\002 \001(\001\022\021" + "\n\tLongitude\030\003 \001(\001\022\017\n\007Heading\030\004 \001(\001\022\032\n\022Ho" + "rizontalAccuracy\030\005 \001(\001\022\020\n\010Altitude\030\006 \001(\001" + "\022\030\n\020VerticalAccuracy\030\007 \001(\001\022B\n\014GNSSReceiv" + "er\030\010 \001(\0132,.messages.VehicleCurrentLocati" + "onGNSSReceiver\"\215\001\n\"VehicleCurrentLocatio" + "nGNSSReceiver\022\017\n\007FixType\030\001 \001(\t\022V\n\020Mounti" + "ngPosition\030\002 \001(\0132<.messages.VehicleCurre" + "ntLocationGNSSReceiverMountingPosition\"U" + "\n2VehicleCurrentLocationGNSSReceiverMoun" + "tingPosition\022\t\n\001X\030\001 \001(\005\022\t\n\001Y\030\002 \001(\005\022\t\n\001Z\030" + "\003 \001(\005*S\n\022ResponseStatusEnum\022\013\n\007SUCCESS\020\000" + "\022\024\n\020FAIL_NO_RESPONSE\020\001\022\032\n\026FAIL_DEGRADED_" + "RESPONSE\020\002b\006proto3" +}; +static const ::_pbi::DescriptorTable* const descriptor_table_messages_2fVehiclePrecisionLocation_2eproto_deps[1] = + { + &::descriptor_table_messages_2fVehicleMessageHeader_2eproto, +}; +static ::absl::once_flag descriptor_table_messages_2fVehiclePrecisionLocation_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_messages_2fVehiclePrecisionLocation_2eproto = { + false, + false, + 1098, + descriptor_table_protodef_messages_2fVehiclePrecisionLocation_2eproto, + "messages/VehiclePrecisionLocation.proto", + &descriptor_table_messages_2fVehiclePrecisionLocation_2eproto_once, + descriptor_table_messages_2fVehiclePrecisionLocation_2eproto_deps, + 1, + 6, + schemas, + file_default_instances, + TableStruct_messages_2fVehiclePrecisionLocation_2eproto::offsets, + file_level_metadata_messages_2fVehiclePrecisionLocation_2eproto, + file_level_enum_descriptors_messages_2fVehiclePrecisionLocation_2eproto, + file_level_service_descriptors_messages_2fVehiclePrecisionLocation_2eproto, +}; + +// This function exists to be marked as weak. +// It can significantly speed up compilation by breaking up LLVM's SCC +// in the .pb.cc translation units. Large translation units see a +// reduction of more than 35% of walltime for optimized builds. Without +// the weak attribute all the messages in the file, including all the +// vtables and everything they use become part of the same SCC through +// a cycle like: +// GetMetadata -> descriptor table -> default instances -> +// vtables -> GetMetadata +// By adding a weak function here we break the connection from the +// individual vtables back into the descriptor table. +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_messages_2fVehiclePrecisionLocation_2eproto_getter() { + return &descriptor_table_messages_2fVehiclePrecisionLocation_2eproto; +} +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 +static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_messages_2fVehiclePrecisionLocation_2eproto(&descriptor_table_messages_2fVehiclePrecisionLocation_2eproto); +namespace messages { +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ResponseStatusEnum_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_messages_2fVehiclePrecisionLocation_2eproto); + return file_level_enum_descriptors_messages_2fVehiclePrecisionLocation_2eproto[0]; +} +bool ResponseStatusEnum_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} +// =================================================================== + +class RequestCurrentVehicleLocationTest::_Internal { + public: +}; + +RequestCurrentVehicleLocationTest::RequestCurrentVehicleLocationTest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:messages.RequestCurrentVehicleLocationTest) +} +RequestCurrentVehicleLocationTest::RequestCurrentVehicleLocationTest(const RequestCurrentVehicleLocationTest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + RequestCurrentVehicleLocationTest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.vehicle_identity_) {} + + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.vehicle_identity_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.vehicle_identity_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_vehicle_identity().empty()) { + _this->_impl_.vehicle_identity_.Set(from._internal_vehicle_identity(), _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:messages.RequestCurrentVehicleLocationTest) +} + +inline void RequestCurrentVehicleLocationTest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.vehicle_identity_) {} + + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.vehicle_identity_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.vehicle_identity_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +RequestCurrentVehicleLocationTest::~RequestCurrentVehicleLocationTest() { + // @@protoc_insertion_point(destructor:messages.RequestCurrentVehicleLocationTest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void RequestCurrentVehicleLocationTest::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.vehicle_identity_.Destroy(); +} + +void RequestCurrentVehicleLocationTest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void RequestCurrentVehicleLocationTest::Clear() { +// @@protoc_insertion_point(message_clear_start:messages.RequestCurrentVehicleLocationTest) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.vehicle_identity_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RequestCurrentVehicleLocationTest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string vehicle_identity = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { + auto str = _internal_mutable_vehicle_identity(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "messages.RequestCurrentVehicleLocationTest.vehicle_identity")); + } else { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::uint8_t* RequestCurrentVehicleLocationTest::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:messages.RequestCurrentVehicleLocationTest) + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string vehicle_identity = 1; + if (!this->_internal_vehicle_identity().empty()) { + const std::string& _s = this->_internal_vehicle_identity(); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "messages.RequestCurrentVehicleLocationTest.vehicle_identity"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:messages.RequestCurrentVehicleLocationTest) + return target; +} + +::size_t RequestCurrentVehicleLocationTest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:messages.RequestCurrentVehicleLocationTest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string vehicle_identity = 1; + if (!this->_internal_vehicle_identity().empty()) { + total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_vehicle_identity()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RequestCurrentVehicleLocationTest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + RequestCurrentVehicleLocationTest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RequestCurrentVehicleLocationTest::GetClassData() const { return &_class_data_; } + + +void RequestCurrentVehicleLocationTest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<RequestCurrentVehicleLocationTest*>(&to_msg); + auto& from = static_cast<const RequestCurrentVehicleLocationTest&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:messages.RequestCurrentVehicleLocationTest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_vehicle_identity().empty()) { + _this->_internal_set_vehicle_identity(from._internal_vehicle_identity()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void RequestCurrentVehicleLocationTest::CopyFrom(const RequestCurrentVehicleLocationTest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:messages.RequestCurrentVehicleLocationTest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RequestCurrentVehicleLocationTest::IsInitialized() const { + return true; +} + +void RequestCurrentVehicleLocationTest::InternalSwap(RequestCurrentVehicleLocationTest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.vehicle_identity_, lhs_arena, + &other->_impl_.vehicle_identity_, rhs_arena); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RequestCurrentVehicleLocationTest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_messages_2fVehiclePrecisionLocation_2eproto_getter, &descriptor_table_messages_2fVehiclePrecisionLocation_2eproto_once, + file_level_metadata_messages_2fVehiclePrecisionLocation_2eproto[0]); +} +// =================================================================== + +class ResponseCurrentVehicleLocation::_Internal { + public: + static const ::messages::VehicleMessageHeading& vehiclemessageheading(const ResponseCurrentVehicleLocation* msg); + static const ::messages::VehicleCurrentLocation& vehiclecurrentlocation(const ResponseCurrentVehicleLocation* msg); +}; + +const ::messages::VehicleMessageHeading& +ResponseCurrentVehicleLocation::_Internal::vehiclemessageheading(const ResponseCurrentVehicleLocation* msg) { + return *msg->_impl_.vehiclemessageheading_; +} +const ::messages::VehicleCurrentLocation& +ResponseCurrentVehicleLocation::_Internal::vehiclecurrentlocation(const ResponseCurrentVehicleLocation* msg) { + return *msg->_impl_.vehiclecurrentlocation_; +} +void ResponseCurrentVehicleLocation::clear_vehiclemessageheading() { + if (GetArenaForAllocation() == nullptr && _impl_.vehiclemessageheading_ != nullptr) { + delete _impl_.vehiclemessageheading_; + } + _impl_.vehiclemessageheading_ = nullptr; +} +ResponseCurrentVehicleLocation::ResponseCurrentVehicleLocation(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:messages.ResponseCurrentVehicleLocation) +} +ResponseCurrentVehicleLocation::ResponseCurrentVehicleLocation(const ResponseCurrentVehicleLocation& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ResponseCurrentVehicleLocation* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.vehiclemessageheading_){nullptr} + , decltype(_impl_.vehiclecurrentlocation_){nullptr} + , decltype(_impl_.responsestatus_) {} + + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_vehiclemessageheading()) { + _this->_impl_.vehiclemessageheading_ = new ::messages::VehicleMessageHeading(*from._impl_.vehiclemessageheading_); + } + if (from._internal_has_vehiclecurrentlocation()) { + _this->_impl_.vehiclecurrentlocation_ = new ::messages::VehicleCurrentLocation(*from._impl_.vehiclecurrentlocation_); + } + _this->_impl_.responsestatus_ = from._impl_.responsestatus_; + // @@protoc_insertion_point(copy_constructor:messages.ResponseCurrentVehicleLocation) +} + +inline void ResponseCurrentVehicleLocation::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.vehiclemessageheading_){nullptr} + , decltype(_impl_.vehiclecurrentlocation_){nullptr} + , decltype(_impl_.responsestatus_) { 0 } + + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +ResponseCurrentVehicleLocation::~ResponseCurrentVehicleLocation() { + // @@protoc_insertion_point(destructor:messages.ResponseCurrentVehicleLocation) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ResponseCurrentVehicleLocation::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.vehiclemessageheading_; + if (this != internal_default_instance()) delete _impl_.vehiclecurrentlocation_; +} + +void ResponseCurrentVehicleLocation::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ResponseCurrentVehicleLocation::Clear() { +// @@protoc_insertion_point(message_clear_start:messages.ResponseCurrentVehicleLocation) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.vehiclemessageheading_ != nullptr) { + delete _impl_.vehiclemessageheading_; + } + _impl_.vehiclemessageheading_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.vehiclecurrentlocation_ != nullptr) { + delete _impl_.vehiclecurrentlocation_; + } + _impl_.vehiclecurrentlocation_ = nullptr; + _impl_.responsestatus_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ResponseCurrentVehicleLocation::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .messages.VehicleMessageHeading vehicleMessageHeading = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_vehiclemessageheading(), ptr); + CHK_(ptr); + } else { + goto handle_unusual; + } + continue; + // .messages.VehicleCurrentLocation vehicleCurrentLocation = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_vehiclecurrentlocation(), ptr); + CHK_(ptr); + } else { + goto handle_unusual; + } + continue; + // .messages.ResponseStatusEnum responseStatus = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) { + ::uint32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + _internal_set_responsestatus(static_cast<::messages::ResponseStatusEnum>(val)); + } else { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::uint8_t* ResponseCurrentVehicleLocation::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:messages.ResponseCurrentVehicleLocation) + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .messages.VehicleMessageHeading vehicleMessageHeading = 1; + if (this->_internal_has_vehiclemessageheading()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::vehiclemessageheading(this), + _Internal::vehiclemessageheading(this).GetCachedSize(), target, stream); + } + + // .messages.VehicleCurrentLocation vehicleCurrentLocation = 2; + if (this->_internal_has_vehiclecurrentlocation()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::vehiclecurrentlocation(this), + _Internal::vehiclecurrentlocation(this).GetCachedSize(), target, stream); + } + + // .messages.ResponseStatusEnum responseStatus = 3; + if (this->_internal_responsestatus() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this->_internal_responsestatus(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:messages.ResponseCurrentVehicleLocation) + return target; +} + +::size_t ResponseCurrentVehicleLocation::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:messages.ResponseCurrentVehicleLocation) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .messages.VehicleMessageHeading vehicleMessageHeading = 1; + if (this->_internal_has_vehiclemessageheading()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.vehiclemessageheading_); + } + + // .messages.VehicleCurrentLocation vehicleCurrentLocation = 2; + if (this->_internal_has_vehiclecurrentlocation()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.vehiclecurrentlocation_); + } + + // .messages.ResponseStatusEnum responseStatus = 3; + if (this->_internal_responsestatus() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_responsestatus()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResponseCurrentVehicleLocation::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ResponseCurrentVehicleLocation::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResponseCurrentVehicleLocation::GetClassData() const { return &_class_data_; } + + +void ResponseCurrentVehicleLocation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<ResponseCurrentVehicleLocation*>(&to_msg); + auto& from = static_cast<const ResponseCurrentVehicleLocation&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:messages.ResponseCurrentVehicleLocation) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_vehiclemessageheading()) { + _this->_internal_mutable_vehiclemessageheading()->::messages::VehicleMessageHeading::MergeFrom( + from._internal_vehiclemessageheading()); + } + if (from._internal_has_vehiclecurrentlocation()) { + _this->_internal_mutable_vehiclecurrentlocation()->::messages::VehicleCurrentLocation::MergeFrom( + from._internal_vehiclecurrentlocation()); + } + if (from._internal_responsestatus() != 0) { + _this->_internal_set_responsestatus(from._internal_responsestatus()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ResponseCurrentVehicleLocation::CopyFrom(const ResponseCurrentVehicleLocation& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:messages.ResponseCurrentVehicleLocation) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ResponseCurrentVehicleLocation::IsInitialized() const { + return true; +} + +void ResponseCurrentVehicleLocation::InternalSwap(ResponseCurrentVehicleLocation* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ResponseCurrentVehicleLocation, _impl_.responsestatus_) + + sizeof(ResponseCurrentVehicleLocation::_impl_.responsestatus_) + - PROTOBUF_FIELD_OFFSET(ResponseCurrentVehicleLocation, _impl_.vehiclemessageheading_)>( + reinterpret_cast<char*>(&_impl_.vehiclemessageheading_), + reinterpret_cast<char*>(&other->_impl_.vehiclemessageheading_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ResponseCurrentVehicleLocation::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_messages_2fVehiclePrecisionLocation_2eproto_getter, &descriptor_table_messages_2fVehiclePrecisionLocation_2eproto_once, + file_level_metadata_messages_2fVehiclePrecisionLocation_2eproto[1]); +} +// =================================================================== + +class PublishCurrentVehicleLocation::_Internal { + public: + static const ::messages::VehicleMessageHeading& vehiclemessageheading(const PublishCurrentVehicleLocation* msg); + static const ::messages::VehicleCurrentLocation& vehiclecurrentlocation(const PublishCurrentVehicleLocation* msg); +}; + +const ::messages::VehicleMessageHeading& +PublishCurrentVehicleLocation::_Internal::vehiclemessageheading(const PublishCurrentVehicleLocation* msg) { + return *msg->_impl_.vehiclemessageheading_; +} +const ::messages::VehicleCurrentLocation& +PublishCurrentVehicleLocation::_Internal::vehiclecurrentlocation(const PublishCurrentVehicleLocation* msg) { + return *msg->_impl_.vehiclecurrentlocation_; +} +void PublishCurrentVehicleLocation::clear_vehiclemessageheading() { + if (GetArenaForAllocation() == nullptr && _impl_.vehiclemessageheading_ != nullptr) { + delete _impl_.vehiclemessageheading_; + } + _impl_.vehiclemessageheading_ = nullptr; +} +PublishCurrentVehicleLocation::PublishCurrentVehicleLocation(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:messages.PublishCurrentVehicleLocation) +} +PublishCurrentVehicleLocation::PublishCurrentVehicleLocation(const PublishCurrentVehicleLocation& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + PublishCurrentVehicleLocation* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.vehiclemessageheading_){nullptr} + , decltype(_impl_.vehiclecurrentlocation_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_vehiclemessageheading()) { + _this->_impl_.vehiclemessageheading_ = new ::messages::VehicleMessageHeading(*from._impl_.vehiclemessageheading_); + } + if (from._internal_has_vehiclecurrentlocation()) { + _this->_impl_.vehiclecurrentlocation_ = new ::messages::VehicleCurrentLocation(*from._impl_.vehiclecurrentlocation_); + } + // @@protoc_insertion_point(copy_constructor:messages.PublishCurrentVehicleLocation) +} + +inline void PublishCurrentVehicleLocation::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.vehiclemessageheading_){nullptr} + , decltype(_impl_.vehiclecurrentlocation_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +PublishCurrentVehicleLocation::~PublishCurrentVehicleLocation() { + // @@protoc_insertion_point(destructor:messages.PublishCurrentVehicleLocation) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void PublishCurrentVehicleLocation::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.vehiclemessageheading_; + if (this != internal_default_instance()) delete _impl_.vehiclecurrentlocation_; +} + +void PublishCurrentVehicleLocation::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void PublishCurrentVehicleLocation::Clear() { +// @@protoc_insertion_point(message_clear_start:messages.PublishCurrentVehicleLocation) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.vehiclemessageheading_ != nullptr) { + delete _impl_.vehiclemessageheading_; + } + _impl_.vehiclemessageheading_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.vehiclecurrentlocation_ != nullptr) { + delete _impl_.vehiclecurrentlocation_; + } + _impl_.vehiclecurrentlocation_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PublishCurrentVehicleLocation::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .messages.VehicleMessageHeading vehicleMessageHeading = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_vehiclemessageheading(), ptr); + CHK_(ptr); + } else { + goto handle_unusual; + } + continue; + // .messages.VehicleCurrentLocation vehicleCurrentLocation = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_vehiclecurrentlocation(), ptr); + CHK_(ptr); + } else { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::uint8_t* PublishCurrentVehicleLocation::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:messages.PublishCurrentVehicleLocation) + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .messages.VehicleMessageHeading vehicleMessageHeading = 1; + if (this->_internal_has_vehiclemessageheading()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::vehiclemessageheading(this), + _Internal::vehiclemessageheading(this).GetCachedSize(), target, stream); + } + + // .messages.VehicleCurrentLocation vehicleCurrentLocation = 2; + if (this->_internal_has_vehiclecurrentlocation()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::vehiclecurrentlocation(this), + _Internal::vehiclecurrentlocation(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:messages.PublishCurrentVehicleLocation) + return target; +} + +::size_t PublishCurrentVehicleLocation::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:messages.PublishCurrentVehicleLocation) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .messages.VehicleMessageHeading vehicleMessageHeading = 1; + if (this->_internal_has_vehiclemessageheading()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.vehiclemessageheading_); + } + + // .messages.VehicleCurrentLocation vehicleCurrentLocation = 2; + if (this->_internal_has_vehiclecurrentlocation()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.vehiclecurrentlocation_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PublishCurrentVehicleLocation::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + PublishCurrentVehicleLocation::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PublishCurrentVehicleLocation::GetClassData() const { return &_class_data_; } + + +void PublishCurrentVehicleLocation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<PublishCurrentVehicleLocation*>(&to_msg); + auto& from = static_cast<const PublishCurrentVehicleLocation&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:messages.PublishCurrentVehicleLocation) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_vehiclemessageheading()) { + _this->_internal_mutable_vehiclemessageheading()->::messages::VehicleMessageHeading::MergeFrom( + from._internal_vehiclemessageheading()); + } + if (from._internal_has_vehiclecurrentlocation()) { + _this->_internal_mutable_vehiclecurrentlocation()->::messages::VehicleCurrentLocation::MergeFrom( + from._internal_vehiclecurrentlocation()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void PublishCurrentVehicleLocation::CopyFrom(const PublishCurrentVehicleLocation& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:messages.PublishCurrentVehicleLocation) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PublishCurrentVehicleLocation::IsInitialized() const { + return true; +} + +void PublishCurrentVehicleLocation::InternalSwap(PublishCurrentVehicleLocation* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(PublishCurrentVehicleLocation, _impl_.vehiclecurrentlocation_) + + sizeof(PublishCurrentVehicleLocation::_impl_.vehiclecurrentlocation_) + - PROTOBUF_FIELD_OFFSET(PublishCurrentVehicleLocation, _impl_.vehiclemessageheading_)>( + reinterpret_cast<char*>(&_impl_.vehiclemessageheading_), + reinterpret_cast<char*>(&other->_impl_.vehiclemessageheading_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PublishCurrentVehicleLocation::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_messages_2fVehiclePrecisionLocation_2eproto_getter, &descriptor_table_messages_2fVehiclePrecisionLocation_2eproto_once, + file_level_metadata_messages_2fVehiclePrecisionLocation_2eproto[2]); +} +// =================================================================== + +class VehicleCurrentLocation::_Internal { + public: + static const ::messages::VehicleCurrentLocationGNSSReceiver& gnssreceiver(const VehicleCurrentLocation* msg); +}; + +const ::messages::VehicleCurrentLocationGNSSReceiver& +VehicleCurrentLocation::_Internal::gnssreceiver(const VehicleCurrentLocation* msg) { + return *msg->_impl_.gnssreceiver_; +} +VehicleCurrentLocation::VehicleCurrentLocation(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:messages.VehicleCurrentLocation) +} +VehicleCurrentLocation::VehicleCurrentLocation(const VehicleCurrentLocation& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + VehicleCurrentLocation* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.timestamp_) {} + + , decltype(_impl_.gnssreceiver_){nullptr} + , decltype(_impl_.latitude_) {} + + , decltype(_impl_.longitude_) {} + + , decltype(_impl_.heading_) {} + + , decltype(_impl_.horizontalaccuracy_) {} + + , decltype(_impl_.altitude_) {} + + , decltype(_impl_.verticalaccuracy_) {} + + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.timestamp_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.timestamp_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_timestamp().empty()) { + _this->_impl_.timestamp_.Set(from._internal_timestamp(), _this->GetArenaForAllocation()); + } + if (from._internal_has_gnssreceiver()) { + _this->_impl_.gnssreceiver_ = new ::messages::VehicleCurrentLocationGNSSReceiver(*from._impl_.gnssreceiver_); + } + ::memcpy(&_impl_.latitude_, &from._impl_.latitude_, + static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.verticalaccuracy_) - + reinterpret_cast<char*>(&_impl_.latitude_)) + sizeof(_impl_.verticalaccuracy_)); + // @@protoc_insertion_point(copy_constructor:messages.VehicleCurrentLocation) +} + +inline void VehicleCurrentLocation::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.timestamp_) {} + + , decltype(_impl_.gnssreceiver_){nullptr} + , decltype(_impl_.latitude_) { 0 } + + , decltype(_impl_.longitude_) { 0 } + + , decltype(_impl_.heading_) { 0 } + + , decltype(_impl_.horizontalaccuracy_) { 0 } + + , decltype(_impl_.altitude_) { 0 } + + , decltype(_impl_.verticalaccuracy_) { 0 } + + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.timestamp_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.timestamp_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +VehicleCurrentLocation::~VehicleCurrentLocation() { + // @@protoc_insertion_point(destructor:messages.VehicleCurrentLocation) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void VehicleCurrentLocation::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.timestamp_.Destroy(); + if (this != internal_default_instance()) delete _impl_.gnssreceiver_; +} + +void VehicleCurrentLocation::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void VehicleCurrentLocation::Clear() { +// @@protoc_insertion_point(message_clear_start:messages.VehicleCurrentLocation) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.timestamp_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.gnssreceiver_ != nullptr) { + delete _impl_.gnssreceiver_; + } + _impl_.gnssreceiver_ = nullptr; + ::memset(&_impl_.latitude_, 0, static_cast<::size_t>( + reinterpret_cast<char*>(&_impl_.verticalaccuracy_) - + reinterpret_cast<char*>(&_impl_.latitude_)) + sizeof(_impl_.verticalaccuracy_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* VehicleCurrentLocation::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string Timestamp = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { + auto str = _internal_mutable_timestamp(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "messages.VehicleCurrentLocation.Timestamp")); + } else { + goto handle_unusual; + } + continue; + // double Latitude = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 17)) { + _impl_.latitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); + ptr += sizeof(double); + } else { + goto handle_unusual; + } + continue; + // double Longitude = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 25)) { + _impl_.longitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); + ptr += sizeof(double); + } else { + goto handle_unusual; + } + continue; + // double Heading = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 33)) { + _impl_.heading_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); + ptr += sizeof(double); + } else { + goto handle_unusual; + } + continue; + // double HorizontalAccuracy = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 41)) { + _impl_.horizontalaccuracy_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); + ptr += sizeof(double); + } else { + goto handle_unusual; + } + continue; + // double Altitude = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 49)) { + _impl_.altitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); + ptr += sizeof(double); + } else { + goto handle_unusual; + } + continue; + // double VerticalAccuracy = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 57)) { + _impl_.verticalaccuracy_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); + ptr += sizeof(double); + } else { + goto handle_unusual; + } + continue; + // .messages.VehicleCurrentLocationGNSSReceiver GNSSReceiver = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_gnssreceiver(), ptr); + CHK_(ptr); + } else { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::uint8_t* VehicleCurrentLocation::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:messages.VehicleCurrentLocation) + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string Timestamp = 1; + if (!this->_internal_timestamp().empty()) { + const std::string& _s = this->_internal_timestamp(); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "messages.VehicleCurrentLocation.Timestamp"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // double Latitude = 2; + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); + double tmp_latitude = this->_internal_latitude(); + ::uint64_t raw_latitude; + memcpy(&raw_latitude, &tmp_latitude, sizeof(tmp_latitude)); + if (raw_latitude != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 2, this->_internal_latitude(), target); + } + + // double Longitude = 3; + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); + double tmp_longitude = this->_internal_longitude(); + ::uint64_t raw_longitude; + memcpy(&raw_longitude, &tmp_longitude, sizeof(tmp_longitude)); + if (raw_longitude != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 3, this->_internal_longitude(), target); + } + + // double Heading = 4; + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); + double tmp_heading = this->_internal_heading(); + ::uint64_t raw_heading; + memcpy(&raw_heading, &tmp_heading, sizeof(tmp_heading)); + if (raw_heading != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 4, this->_internal_heading(), target); + } + + // double HorizontalAccuracy = 5; + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); + double tmp_horizontalaccuracy = this->_internal_horizontalaccuracy(); + ::uint64_t raw_horizontalaccuracy; + memcpy(&raw_horizontalaccuracy, &tmp_horizontalaccuracy, sizeof(tmp_horizontalaccuracy)); + if (raw_horizontalaccuracy != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 5, this->_internal_horizontalaccuracy(), target); + } + + // double Altitude = 6; + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); + double tmp_altitude = this->_internal_altitude(); + ::uint64_t raw_altitude; + memcpy(&raw_altitude, &tmp_altitude, sizeof(tmp_altitude)); + if (raw_altitude != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 6, this->_internal_altitude(), target); + } + + // double VerticalAccuracy = 7; + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); + double tmp_verticalaccuracy = this->_internal_verticalaccuracy(); + ::uint64_t raw_verticalaccuracy; + memcpy(&raw_verticalaccuracy, &tmp_verticalaccuracy, sizeof(tmp_verticalaccuracy)); + if (raw_verticalaccuracy != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 7, this->_internal_verticalaccuracy(), target); + } + + // .messages.VehicleCurrentLocationGNSSReceiver GNSSReceiver = 8; + if (this->_internal_has_gnssreceiver()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, _Internal::gnssreceiver(this), + _Internal::gnssreceiver(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:messages.VehicleCurrentLocation) + return target; +} + +::size_t VehicleCurrentLocation::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:messages.VehicleCurrentLocation) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string Timestamp = 1; + if (!this->_internal_timestamp().empty()) { + total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_timestamp()); + } + + // .messages.VehicleCurrentLocationGNSSReceiver GNSSReceiver = 8; + if (this->_internal_has_gnssreceiver()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.gnssreceiver_); + } + + // double Latitude = 2; + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); + double tmp_latitude = this->_internal_latitude(); + ::uint64_t raw_latitude; + memcpy(&raw_latitude, &tmp_latitude, sizeof(tmp_latitude)); + if (raw_latitude != 0) { + total_size += 9; + } + + // double Longitude = 3; + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); + double tmp_longitude = this->_internal_longitude(); + ::uint64_t raw_longitude; + memcpy(&raw_longitude, &tmp_longitude, sizeof(tmp_longitude)); + if (raw_longitude != 0) { + total_size += 9; + } + + // double Heading = 4; + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); + double tmp_heading = this->_internal_heading(); + ::uint64_t raw_heading; + memcpy(&raw_heading, &tmp_heading, sizeof(tmp_heading)); + if (raw_heading != 0) { + total_size += 9; + } + + // double HorizontalAccuracy = 5; + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); + double tmp_horizontalaccuracy = this->_internal_horizontalaccuracy(); + ::uint64_t raw_horizontalaccuracy; + memcpy(&raw_horizontalaccuracy, &tmp_horizontalaccuracy, sizeof(tmp_horizontalaccuracy)); + if (raw_horizontalaccuracy != 0) { + total_size += 9; + } + + // double Altitude = 6; + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); + double tmp_altitude = this->_internal_altitude(); + ::uint64_t raw_altitude; + memcpy(&raw_altitude, &tmp_altitude, sizeof(tmp_altitude)); + if (raw_altitude != 0) { + total_size += 9; + } + + // double VerticalAccuracy = 7; + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); + double tmp_verticalaccuracy = this->_internal_verticalaccuracy(); + ::uint64_t raw_verticalaccuracy; + memcpy(&raw_verticalaccuracy, &tmp_verticalaccuracy, sizeof(tmp_verticalaccuracy)); + if (raw_verticalaccuracy != 0) { + total_size += 9; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData VehicleCurrentLocation::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + VehicleCurrentLocation::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*VehicleCurrentLocation::GetClassData() const { return &_class_data_; } + + +void VehicleCurrentLocation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<VehicleCurrentLocation*>(&to_msg); + auto& from = static_cast<const VehicleCurrentLocation&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:messages.VehicleCurrentLocation) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_timestamp().empty()) { + _this->_internal_set_timestamp(from._internal_timestamp()); + } + if (from._internal_has_gnssreceiver()) { + _this->_internal_mutable_gnssreceiver()->::messages::VehicleCurrentLocationGNSSReceiver::MergeFrom( + from._internal_gnssreceiver()); + } + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); + double tmp_latitude = from._internal_latitude(); + ::uint64_t raw_latitude; + memcpy(&raw_latitude, &tmp_latitude, sizeof(tmp_latitude)); + if (raw_latitude != 0) { + _this->_internal_set_latitude(from._internal_latitude()); + } + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); + double tmp_longitude = from._internal_longitude(); + ::uint64_t raw_longitude; + memcpy(&raw_longitude, &tmp_longitude, sizeof(tmp_longitude)); + if (raw_longitude != 0) { + _this->_internal_set_longitude(from._internal_longitude()); + } + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); + double tmp_heading = from._internal_heading(); + ::uint64_t raw_heading; + memcpy(&raw_heading, &tmp_heading, sizeof(tmp_heading)); + if (raw_heading != 0) { + _this->_internal_set_heading(from._internal_heading()); + } + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); + double tmp_horizontalaccuracy = from._internal_horizontalaccuracy(); + ::uint64_t raw_horizontalaccuracy; + memcpy(&raw_horizontalaccuracy, &tmp_horizontalaccuracy, sizeof(tmp_horizontalaccuracy)); + if (raw_horizontalaccuracy != 0) { + _this->_internal_set_horizontalaccuracy(from._internal_horizontalaccuracy()); + } + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); + double tmp_altitude = from._internal_altitude(); + ::uint64_t raw_altitude; + memcpy(&raw_altitude, &tmp_altitude, sizeof(tmp_altitude)); + if (raw_altitude != 0) { + _this->_internal_set_altitude(from._internal_altitude()); + } + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); + double tmp_verticalaccuracy = from._internal_verticalaccuracy(); + ::uint64_t raw_verticalaccuracy; + memcpy(&raw_verticalaccuracy, &tmp_verticalaccuracy, sizeof(tmp_verticalaccuracy)); + if (raw_verticalaccuracy != 0) { + _this->_internal_set_verticalaccuracy(from._internal_verticalaccuracy()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void VehicleCurrentLocation::CopyFrom(const VehicleCurrentLocation& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:messages.VehicleCurrentLocation) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool VehicleCurrentLocation::IsInitialized() const { + return true; +} + +void VehicleCurrentLocation::InternalSwap(VehicleCurrentLocation* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.timestamp_, lhs_arena, + &other->_impl_.timestamp_, rhs_arena); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(VehicleCurrentLocation, _impl_.verticalaccuracy_) + + sizeof(VehicleCurrentLocation::_impl_.verticalaccuracy_) + - PROTOBUF_FIELD_OFFSET(VehicleCurrentLocation, _impl_.gnssreceiver_)>( + reinterpret_cast<char*>(&_impl_.gnssreceiver_), + reinterpret_cast<char*>(&other->_impl_.gnssreceiver_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata VehicleCurrentLocation::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_messages_2fVehiclePrecisionLocation_2eproto_getter, &descriptor_table_messages_2fVehiclePrecisionLocation_2eproto_once, + file_level_metadata_messages_2fVehiclePrecisionLocation_2eproto[3]); +} +// =================================================================== + +class VehicleCurrentLocationGNSSReceiver::_Internal { + public: + static const ::messages::VehicleCurrentLocationGNSSReceiverMountingPosition& mountingposition(const VehicleCurrentLocationGNSSReceiver* msg); +}; + +const ::messages::VehicleCurrentLocationGNSSReceiverMountingPosition& +VehicleCurrentLocationGNSSReceiver::_Internal::mountingposition(const VehicleCurrentLocationGNSSReceiver* msg) { + return *msg->_impl_.mountingposition_; +} +VehicleCurrentLocationGNSSReceiver::VehicleCurrentLocationGNSSReceiver(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:messages.VehicleCurrentLocationGNSSReceiver) +} +VehicleCurrentLocationGNSSReceiver::VehicleCurrentLocationGNSSReceiver(const VehicleCurrentLocationGNSSReceiver& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + VehicleCurrentLocationGNSSReceiver* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.fixtype_) {} + + , decltype(_impl_.mountingposition_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.fixtype_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fixtype_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_fixtype().empty()) { + _this->_impl_.fixtype_.Set(from._internal_fixtype(), _this->GetArenaForAllocation()); + } + if (from._internal_has_mountingposition()) { + _this->_impl_.mountingposition_ = new ::messages::VehicleCurrentLocationGNSSReceiverMountingPosition(*from._impl_.mountingposition_); + } + // @@protoc_insertion_point(copy_constructor:messages.VehicleCurrentLocationGNSSReceiver) +} + +inline void VehicleCurrentLocationGNSSReceiver::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.fixtype_) {} + + , decltype(_impl_.mountingposition_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.fixtype_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fixtype_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +VehicleCurrentLocationGNSSReceiver::~VehicleCurrentLocationGNSSReceiver() { + // @@protoc_insertion_point(destructor:messages.VehicleCurrentLocationGNSSReceiver) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void VehicleCurrentLocationGNSSReceiver::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.fixtype_.Destroy(); + if (this != internal_default_instance()) delete _impl_.mountingposition_; +} + +void VehicleCurrentLocationGNSSReceiver::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void VehicleCurrentLocationGNSSReceiver::Clear() { +// @@protoc_insertion_point(message_clear_start:messages.VehicleCurrentLocationGNSSReceiver) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.fixtype_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.mountingposition_ != nullptr) { + delete _impl_.mountingposition_; + } + _impl_.mountingposition_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* VehicleCurrentLocationGNSSReceiver::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string FixType = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { + auto str = _internal_mutable_fixtype(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "messages.VehicleCurrentLocationGNSSReceiver.FixType")); + } else { + goto handle_unusual; + } + continue; + // .messages.VehicleCurrentLocationGNSSReceiverMountingPosition MountingPosition = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_mountingposition(), ptr); + CHK_(ptr); + } else { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::uint8_t* VehicleCurrentLocationGNSSReceiver::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:messages.VehicleCurrentLocationGNSSReceiver) + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string FixType = 1; + if (!this->_internal_fixtype().empty()) { + const std::string& _s = this->_internal_fixtype(); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "messages.VehicleCurrentLocationGNSSReceiver.FixType"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // .messages.VehicleCurrentLocationGNSSReceiverMountingPosition MountingPosition = 2; + if (this->_internal_has_mountingposition()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::mountingposition(this), + _Internal::mountingposition(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:messages.VehicleCurrentLocationGNSSReceiver) + return target; +} + +::size_t VehicleCurrentLocationGNSSReceiver::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:messages.VehicleCurrentLocationGNSSReceiver) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string FixType = 1; + if (!this->_internal_fixtype().empty()) { + total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_fixtype()); + } + + // .messages.VehicleCurrentLocationGNSSReceiverMountingPosition MountingPosition = 2; + if (this->_internal_has_mountingposition()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.mountingposition_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData VehicleCurrentLocationGNSSReceiver::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + VehicleCurrentLocationGNSSReceiver::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*VehicleCurrentLocationGNSSReceiver::GetClassData() const { return &_class_data_; } + + +void VehicleCurrentLocationGNSSReceiver::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<VehicleCurrentLocationGNSSReceiver*>(&to_msg); + auto& from = static_cast<const VehicleCurrentLocationGNSSReceiver&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:messages.VehicleCurrentLocationGNSSReceiver) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_fixtype().empty()) { + _this->_internal_set_fixtype(from._internal_fixtype()); + } + if (from._internal_has_mountingposition()) { + _this->_internal_mutable_mountingposition()->::messages::VehicleCurrentLocationGNSSReceiverMountingPosition::MergeFrom( + from._internal_mountingposition()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void VehicleCurrentLocationGNSSReceiver::CopyFrom(const VehicleCurrentLocationGNSSReceiver& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:messages.VehicleCurrentLocationGNSSReceiver) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool VehicleCurrentLocationGNSSReceiver::IsInitialized() const { + return true; +} + +void VehicleCurrentLocationGNSSReceiver::InternalSwap(VehicleCurrentLocationGNSSReceiver* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.fixtype_, lhs_arena, + &other->_impl_.fixtype_, rhs_arena); + swap(_impl_.mountingposition_, other->_impl_.mountingposition_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata VehicleCurrentLocationGNSSReceiver::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_messages_2fVehiclePrecisionLocation_2eproto_getter, &descriptor_table_messages_2fVehiclePrecisionLocation_2eproto_once, + file_level_metadata_messages_2fVehiclePrecisionLocation_2eproto[4]); +} +// =================================================================== + +class VehicleCurrentLocationGNSSReceiverMountingPosition::_Internal { + public: +}; + +VehicleCurrentLocationGNSSReceiverMountingPosition::VehicleCurrentLocationGNSSReceiverMountingPosition(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:messages.VehicleCurrentLocationGNSSReceiverMountingPosition) +} +VehicleCurrentLocationGNSSReceiverMountingPosition::VehicleCurrentLocationGNSSReceiverMountingPosition(const VehicleCurrentLocationGNSSReceiverMountingPosition& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:messages.VehicleCurrentLocationGNSSReceiverMountingPosition) +} + +inline void VehicleCurrentLocationGNSSReceiverMountingPosition::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.x_) { 0 } + + , decltype(_impl_.y_) { 0 } + + , decltype(_impl_.z_) { 0 } + + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +VehicleCurrentLocationGNSSReceiverMountingPosition::~VehicleCurrentLocationGNSSReceiverMountingPosition() { + // @@protoc_insertion_point(destructor:messages.VehicleCurrentLocationGNSSReceiverMountingPosition) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void VehicleCurrentLocationGNSSReceiverMountingPosition::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); +} + +void VehicleCurrentLocationGNSSReceiverMountingPosition::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void VehicleCurrentLocationGNSSReceiverMountingPosition::Clear() { +// @@protoc_insertion_point(message_clear_start:messages.VehicleCurrentLocationGNSSReceiverMountingPosition) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&_impl_.x_, 0, static_cast<::size_t>( + reinterpret_cast<char*>(&_impl_.z_) - + reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.z_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* VehicleCurrentLocationGNSSReceiverMountingPosition::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // int32 X = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { + _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else { + goto handle_unusual; + } + continue; + // int32 Y = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { + _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else { + goto handle_unusual; + } + continue; + // int32 Z = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) { + _impl_.z_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else { + goto handle_unusual; + } + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::uint8_t* VehicleCurrentLocationGNSSReceiverMountingPosition::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:messages.VehicleCurrentLocationGNSSReceiverMountingPosition) + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // int32 X = 1; + if (this->_internal_x() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 1, this->_internal_x(), target); + } + + // int32 Y = 2; + if (this->_internal_y() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 2, this->_internal_y(), target); + } + + // int32 Z = 3; + if (this->_internal_z() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 3, this->_internal_z(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:messages.VehicleCurrentLocationGNSSReceiverMountingPosition) + return target; +} + +::size_t VehicleCurrentLocationGNSSReceiverMountingPosition::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:messages.VehicleCurrentLocationGNSSReceiverMountingPosition) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int32 X = 1; + if (this->_internal_x() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this->_internal_x()); + } + + // int32 Y = 2; + if (this->_internal_y() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this->_internal_y()); + } + + // int32 Z = 3; + if (this->_internal_z() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this->_internal_z()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData VehicleCurrentLocationGNSSReceiverMountingPosition::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + VehicleCurrentLocationGNSSReceiverMountingPosition::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*VehicleCurrentLocationGNSSReceiverMountingPosition::GetClassData() const { return &_class_data_; } + + +void VehicleCurrentLocationGNSSReceiverMountingPosition::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<VehicleCurrentLocationGNSSReceiverMountingPosition*>(&to_msg); + auto& from = static_cast<const VehicleCurrentLocationGNSSReceiverMountingPosition&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:messages.VehicleCurrentLocationGNSSReceiverMountingPosition) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_x() != 0) { + _this->_internal_set_x(from._internal_x()); + } + if (from._internal_y() != 0) { + _this->_internal_set_y(from._internal_y()); + } + if (from._internal_z() != 0) { + _this->_internal_set_z(from._internal_z()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void VehicleCurrentLocationGNSSReceiverMountingPosition::CopyFrom(const VehicleCurrentLocationGNSSReceiverMountingPosition& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:messages.VehicleCurrentLocationGNSSReceiverMountingPosition) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool VehicleCurrentLocationGNSSReceiverMountingPosition::IsInitialized() const { + return true; +} + +void VehicleCurrentLocationGNSSReceiverMountingPosition::InternalSwap(VehicleCurrentLocationGNSSReceiverMountingPosition* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(VehicleCurrentLocationGNSSReceiverMountingPosition, _impl_.z_) + + sizeof(VehicleCurrentLocationGNSSReceiverMountingPosition::_impl_.z_) + - PROTOBUF_FIELD_OFFSET(VehicleCurrentLocationGNSSReceiverMountingPosition, _impl_.x_)>( + reinterpret_cast<char*>(&_impl_.x_), + reinterpret_cast<char*>(&other->_impl_.x_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata VehicleCurrentLocationGNSSReceiverMountingPosition::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_messages_2fVehiclePrecisionLocation_2eproto_getter, &descriptor_table_messages_2fVehiclePrecisionLocation_2eproto_once, + file_level_metadata_messages_2fVehiclePrecisionLocation_2eproto[5]); +} +// @@protoc_insertion_point(namespace_scope) +} // namespace messages +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::messages::RequestCurrentVehicleLocationTest* +Arena::CreateMaybeMessage< ::messages::RequestCurrentVehicleLocationTest >(Arena* arena) { + return Arena::CreateMessageInternal< ::messages::RequestCurrentVehicleLocationTest >(arena); +} +template<> PROTOBUF_NOINLINE ::messages::ResponseCurrentVehicleLocation* +Arena::CreateMaybeMessage< ::messages::ResponseCurrentVehicleLocation >(Arena* arena) { + return Arena::CreateMessageInternal< ::messages::ResponseCurrentVehicleLocation >(arena); +} +template<> PROTOBUF_NOINLINE ::messages::PublishCurrentVehicleLocation* +Arena::CreateMaybeMessage< ::messages::PublishCurrentVehicleLocation >(Arena* arena) { + return Arena::CreateMessageInternal< ::messages::PublishCurrentVehicleLocation >(arena); +} +template<> PROTOBUF_NOINLINE ::messages::VehicleCurrentLocation* +Arena::CreateMaybeMessage< ::messages::VehicleCurrentLocation >(Arena* arena) { + return Arena::CreateMessageInternal< ::messages::VehicleCurrentLocation >(arena); +} +template<> PROTOBUF_NOINLINE ::messages::VehicleCurrentLocationGNSSReceiver* +Arena::CreateMaybeMessage< ::messages::VehicleCurrentLocationGNSSReceiver >(Arena* arena) { + return Arena::CreateMessageInternal< ::messages::VehicleCurrentLocationGNSSReceiver >(arena); +} +template<> PROTOBUF_NOINLINE ::messages::VehicleCurrentLocationGNSSReceiverMountingPosition* +Arena::CreateMaybeMessage< ::messages::VehicleCurrentLocationGNSSReceiverMountingPosition >(Arena* arena) { + return Arena::CreateMessageInternal< ::messages::VehicleCurrentLocationGNSSReceiverMountingPosition >(arena); +} +PROTOBUF_NAMESPACE_CLOSE +// @@protoc_insertion_point(global_scope) +#include "google/protobuf/port_undef.inc" |