// Generated by the protocol buffer compiler. DO NOT EDIT! // source: messages/VehicleMessageHeader.proto #ifndef GOOGLE_PROTOBUF_INCLUDED_messages_2fVehicleMessageHeader_2eproto_2epb_2eh #define GOOGLE_PROTOBUF_INCLUDED_messages_2fVehicleMessageHeader_2eproto_2epb_2eh #include #include #include #include "google/protobuf/port_def.inc" #if PROTOBUF_VERSION < 4022000 #error "This file was generated by a newer version of protoc which is" #error "incompatible with your Protocol Buffer headers. Please update" #error "your headers." #endif // PROTOBUF_VERSION #if 4022000 < PROTOBUF_MIN_PROTOC_VERSION #error "This file was generated by an older version of protoc which is" #error "incompatible with your Protocol Buffer headers. Please" #error "regenerate this file with a newer version of protoc." #endif // PROTOBUF_MIN_PROTOC_VERSION #include "google/protobuf/port_undef.inc" #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/arena.h" #include "google/protobuf/arenastring.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/metadata_lite.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/message.h" #include "google/protobuf/repeated_field.h" // IWYU pragma: export #include "google/protobuf/extension_set.h" // IWYU pragma: export #include "google/protobuf/unknown_field_set.h" // @@protoc_insertion_point(includes) // Must be included last. #include "google/protobuf/port_def.inc" #define PROTOBUF_INTERNAL_EXPORT_messages_2fVehicleMessageHeader_2eproto PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_messages_2fVehicleMessageHeader_2eproto { static const ::uint32_t offsets[]; }; extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_messages_2fVehicleMessageHeader_2eproto; namespace messages { class VehicleMessageHeading; struct VehicleMessageHeadingDefaultTypeInternal; extern VehicleMessageHeadingDefaultTypeInternal _VehicleMessageHeading_default_instance_; class lat_long; struct lat_longDefaultTypeInternal; extern lat_longDefaultTypeInternal _lat_long_default_instance_; } // namespace messages PROTOBUF_NAMESPACE_OPEN template <> ::messages::VehicleMessageHeading* Arena::CreateMaybeMessage<::messages::VehicleMessageHeading>(Arena*); template <> ::messages::lat_long* Arena::CreateMaybeMessage<::messages::lat_long>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace messages { // =================================================================== // ------------------------------------------------------------------- class VehicleMessageHeading final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.VehicleMessageHeading) */ { public: inline VehicleMessageHeading() : VehicleMessageHeading(nullptr) {} ~VehicleMessageHeading() override; explicit PROTOBUF_CONSTEXPR VehicleMessageHeading(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); VehicleMessageHeading(const VehicleMessageHeading& from); VehicleMessageHeading(VehicleMessageHeading&& from) noexcept : VehicleMessageHeading() { *this = ::std::move(from); } inline VehicleMessageHeading& operator=(const VehicleMessageHeading& from) { CopyFrom(from); return *this; } inline VehicleMessageHeading& operator=(VehicleMessageHeading&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { CopyFrom(from); } return *this; } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const VehicleMessageHeading& default_instance() { return *internal_default_instance(); } static inline const VehicleMessageHeading* internal_default_instance() { return reinterpret_cast( &_VehicleMessageHeading_default_instance_); } static constexpr int kIndexInFileMessages = 0; friend void swap(VehicleMessageHeading& a, VehicleMessageHeading& b) { a.Swap(&b); } inline void Swap(VehicleMessageHeading* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(VehicleMessageHeading* other) { if (other == this) return; ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- VehicleMessageHeading* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const VehicleMessageHeading& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom( const VehicleMessageHeading& from) { VehicleMessageHeading::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(VehicleMessageHeading* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::absl::string_view FullMessageName() { return "messages.VehicleMessageHeading"; } protected: explicit VehicleMessageHeading(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kVehicleIdentityFieldNumber = 3, kVehicleDeviceIdFieldNumber = 7, kLocationFieldNumber = 6, kMessageIdFieldNumber = 1, kCorrelationIdFieldNumber = 2, kMessageTimestampFieldNumber = 4, kProtocolVersionFieldNumber = 5, }; // string vehicle_identity = 3; void clear_vehicle_identity() ; const std::string& vehicle_identity() const; template void set_vehicle_identity(Arg_&& arg, Args_... args); std::string* mutable_vehicle_identity(); PROTOBUF_NODISCARD std::string* release_vehicle_identity(); void set_allocated_vehicle_identity(std::string* ptr); private: const std::string& _internal_vehicle_identity() const; inline PROTOBUF_ALWAYS_INLINE void _internal_set_vehicle_identity( const std::string& value); std::string* _internal_mutable_vehicle_identity(); public: // string vehicle_device_id = 7; void clear_vehicle_device_id() ; const std::string& vehicle_device_id() const; template void set_vehicle_device_id(Arg_&& arg, Args_... args); std::string* mutable_vehicle_device_id(); PROTOBUF_NODISCARD std::string* release_vehicle_device_id(); void set_allocated_vehicle_device_id(std::string* ptr); private: const std::string& _internal_vehicle_device_id() const; inline PROTOBUF_ALWAYS_INLINE void _internal_set_vehicle_device_id( const std::string& value); std::string* _internal_mutable_vehicle_device_id(); public: // .messages.lat_long location = 6; bool has_location() const; private: bool _internal_has_location() const; public: void clear_location() ; const ::messages::lat_long& location() const; PROTOBUF_NODISCARD ::messages::lat_long* release_location(); ::messages::lat_long* mutable_location(); void set_allocated_location(::messages::lat_long* location); private: const ::messages::lat_long& _internal_location() const; ::messages::lat_long* _internal_mutable_location(); public: void unsafe_arena_set_allocated_location( ::messages::lat_long* location); ::messages::lat_long* unsafe_arena_release_location(); // int32 message_id = 1; void clear_message_id() ; ::int32_t message_id() const; void set_message_id(::int32_t value); private: ::int32_t _internal_message_id() const; void _internal_set_message_id(::int32_t value); public: // int32 correlation_id = 2; void clear_correlation_id() ; ::int32_t correlation_id() const; void set_correlation_id(::int32_t value); private: ::int32_t _internal_correlation_id() const; void _internal_set_correlation_id(::int32_t value); public: // int64 message_timestamp = 4; void clear_message_timestamp() ; ::int64_t message_timestamp() const; void set_message_timestamp(::int64_t value); private: ::int64_t _internal_message_timestamp() const; void _internal_set_message_timestamp(::int64_t value); public: // double protocol_version = 5; void clear_protocol_version() ; double protocol_version() const; void set_protocol_version(double value); private: double _internal_protocol_version() const; void _internal_set_protocol_version(double value); public: // @@protoc_insertion_point(class_scope:messages.VehicleMessageHeading) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr vehicle_identity_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr vehicle_device_id_; ::messages::lat_long* location_; ::int32_t message_id_; ::int32_t correlation_id_; ::int64_t message_timestamp_; double protocol_version_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; friend struct ::TableStruct_messages_2fVehicleMessageHeader_2eproto; };// ------------------------------------------------------------------- class lat_long final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.lat_long) */ { public: inline lat_long() : lat_long(nullptr) {} ~lat_long() override; explicit PROTOBUF_CONSTEXPR lat_long(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); lat_long(const lat_long& from); lat_long(lat_long&& from) noexcept : lat_long() { *this = ::std::move(from); } inline lat_long& operator=(const lat_long& from) { CopyFrom(from); return *this; } inline lat_long& operator=(lat_long&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { CopyFrom(from); } return *this; } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const lat_long& default_instance() { return *internal_default_instance(); } static inline const lat_long* internal_default_instance() { return reinterpret_cast( &_lat_long_default_instance_); } static constexpr int kIndexInFileMessages = 1; friend void swap(lat_long& a, lat_long& b) { a.Swap(&b); } inline void Swap(lat_long* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(lat_long* other) { if (other == this) return; ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- lat_long* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const lat_long& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom( const lat_long& from) { lat_long::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(lat_long* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::absl::string_view FullMessageName() { return "messages.lat_long"; } protected: explicit lat_long(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kLatitudeFieldNumber = 1, kLongitudeFieldNumber = 2, }; // double latitude = 1; void clear_latitude() ; double latitude() const; void set_latitude(double value); private: double _internal_latitude() const; void _internal_set_latitude(double value); public: // double longitude = 2; void clear_longitude() ; double longitude() const; void set_longitude(double value); private: double _internal_longitude() const; void _internal_set_longitude(double value); public: // @@protoc_insertion_point(class_scope:messages.lat_long) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { double latitude_; double longitude_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; friend struct ::TableStruct_messages_2fVehicleMessageHeader_2eproto; }; // =================================================================== // =================================================================== #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // ------------------------------------------------------------------- // VehicleMessageHeading // int32 message_id = 1; inline void VehicleMessageHeading::clear_message_id() { _impl_.message_id_ = 0; } inline ::int32_t VehicleMessageHeading::message_id() const { // @@protoc_insertion_point(field_get:messages.VehicleMessageHeading.message_id) return _internal_message_id(); } inline void VehicleMessageHeading::set_message_id(::int32_t value) { _internal_set_message_id(value); // @@protoc_insertion_point(field_set:messages.VehicleMessageHeading.message_id) } inline ::int32_t VehicleMessageHeading::_internal_message_id() const { return _impl_.message_id_; } inline void VehicleMessageHeading::_internal_set_message_id(::int32_t value) { ; _impl_.message_id_ = value; } // int32 correlation_id = 2; inline void VehicleMessageHeading::clear_correlation_id() { _impl_.correlation_id_ = 0; } inline ::int32_t VehicleMessageHeading::correlation_id() const { // @@protoc_insertion_point(field_get:messages.VehicleMessageHeading.correlation_id) return _internal_correlation_id(); } inline void VehicleMessageHeading::set_correlation_id(::int32_t value) { _internal_set_correlation_id(value); // @@protoc_insertion_point(field_set:messages.VehicleMessageHeading.correlation_id) } inline ::int32_t VehicleMessageHeading::_internal_correlation_id() const { return _impl_.correlation_id_; } inline void VehicleMessageHeading::_internal_set_correlation_id(::int32_t value) { ; _impl_.correlation_id_ = value; } // string vehicle_identity = 3; inline void VehicleMessageHeading::clear_vehicle_identity() { _impl_.vehicle_identity_.ClearToEmpty(); } inline const std::string& VehicleMessageHeading::vehicle_identity() const { // @@protoc_insertion_point(field_get:messages.VehicleMessageHeading.vehicle_identity) return _internal_vehicle_identity(); } template inline PROTOBUF_ALWAYS_INLINE void VehicleMessageHeading::set_vehicle_identity(Arg_&& arg, Args_... args) { ; _impl_.vehicle_identity_.Set(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:messages.VehicleMessageHeading.vehicle_identity) } inline std::string* VehicleMessageHeading::mutable_vehicle_identity() { std::string* _s = _internal_mutable_vehicle_identity(); // @@protoc_insertion_point(field_mutable:messages.VehicleMessageHeading.vehicle_identity) return _s; } inline const std::string& VehicleMessageHeading::_internal_vehicle_identity() const { return _impl_.vehicle_identity_.Get(); } inline void VehicleMessageHeading::_internal_set_vehicle_identity(const std::string& value) { ; _impl_.vehicle_identity_.Set(value, GetArenaForAllocation()); } inline std::string* VehicleMessageHeading::_internal_mutable_vehicle_identity() { ; return _impl_.vehicle_identity_.Mutable( GetArenaForAllocation()); } inline std::string* VehicleMessageHeading::release_vehicle_identity() { // @@protoc_insertion_point(field_release:messages.VehicleMessageHeading.vehicle_identity) return _impl_.vehicle_identity_.Release(); } inline void VehicleMessageHeading::set_allocated_vehicle_identity(std::string* value) { _impl_.vehicle_identity_.SetAllocated(value, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.vehicle_identity_.IsDefault()) { _impl_.vehicle_identity_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:messages.VehicleMessageHeading.vehicle_identity) } // string vehicle_device_id = 7; inline void VehicleMessageHeading::clear_vehicle_device_id() { _impl_.vehicle_device_id_.ClearToEmpty(); } inline const std::string& VehicleMessageHeading::vehicle_device_id() const { // @@protoc_insertion_point(field_get:messages.VehicleMessageHeading.vehicle_device_id) return _internal_vehicle_device_id(); } template inline PROTOBUF_ALWAYS_INLINE void VehicleMessageHeading::set_vehicle_device_id(Arg_&& arg, Args_... args) { ; _impl_.vehicle_device_id_.Set(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:messages.VehicleMessageHeading.vehicle_device_id) } inline std::string* VehicleMessageHeading::mutable_vehicle_device_id() { std::string* _s = _internal_mutable_vehicle_device_id(); // @@protoc_insertion_point(field_mutable:messages.VehicleMessageHeading.vehicle_device_id) return _s; } inline const std::string& VehicleMessageHeading::_internal_vehicle_device_id() const { return _impl_.vehicle_device_id_.Get(); } inline void VehicleMessageHeading::_internal_set_vehicle_device_id(const std::string& value) { ; _impl_.vehicle_device_id_.Set(value, GetArenaForAllocation()); } inline std::string* VehicleMessageHeading::_internal_mutable_vehicle_device_id() { ; return _impl_.vehicle_device_id_.Mutable( GetArenaForAllocation()); } inline std::string* VehicleMessageHeading::release_vehicle_device_id() { // @@protoc_insertion_point(field_release:messages.VehicleMessageHeading.vehicle_device_id) return _impl_.vehicle_device_id_.Release(); } inline void VehicleMessageHeading::set_allocated_vehicle_device_id(std::string* value) { _impl_.vehicle_device_id_.SetAllocated(value, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.vehicle_device_id_.IsDefault()) { _impl_.vehicle_device_id_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:messages.VehicleMessageHeading.vehicle_device_id) } // int64 message_timestamp = 4; inline void VehicleMessageHeading::clear_message_timestamp() { _impl_.message_timestamp_ = ::int64_t{0}; } inline ::int64_t VehicleMessageHeading::message_timestamp() const { // @@protoc_insertion_point(field_get:messages.VehicleMessageHeading.message_timestamp) return _internal_message_timestamp(); } inline void VehicleMessageHeading::set_message_timestamp(::int64_t value) { _internal_set_message_timestamp(value); // @@protoc_insertion_point(field_set:messages.VehicleMessageHeading.message_timestamp) } inline ::int64_t VehicleMessageHeading::_internal_message_timestamp() const { return _impl_.message_timestamp_; } inline void VehicleMessageHeading::_internal_set_message_timestamp(::int64_t value) { ; _impl_.message_timestamp_ = value; } // double protocol_version = 5; inline void VehicleMessageHeading::clear_protocol_version() { _impl_.protocol_version_ = 0; } inline double VehicleMessageHeading::protocol_version() const { // @@protoc_insertion_point(field_get:messages.VehicleMessageHeading.protocol_version) return _internal_protocol_version(); } inline void VehicleMessageHeading::set_protocol_version(double value) { _internal_set_protocol_version(value); // @@protoc_insertion_point(field_set:messages.VehicleMessageHeading.protocol_version) } inline double VehicleMessageHeading::_internal_protocol_version() const { return _impl_.protocol_version_; } inline void VehicleMessageHeading::_internal_set_protocol_version(double value) { ; _impl_.protocol_version_ = value; } // .messages.lat_long location = 6; inline bool VehicleMessageHeading::_internal_has_location() const { return this != internal_default_instance() && _impl_.location_ != nullptr; } inline bool VehicleMessageHeading::has_location() const { return _internal_has_location(); } inline void VehicleMessageHeading::clear_location() { if (GetArenaForAllocation() == nullptr && _impl_.location_ != nullptr) { delete _impl_.location_; } _impl_.location_ = nullptr; } inline const ::messages::lat_long& VehicleMessageHeading::_internal_location() const { const ::messages::lat_long* p = _impl_.location_; return p != nullptr ? *p : reinterpret_cast( ::messages::_lat_long_default_instance_); } inline const ::messages::lat_long& VehicleMessageHeading::location() const { // @@protoc_insertion_point(field_get:messages.VehicleMessageHeading.location) return _internal_location(); } inline void VehicleMessageHeading::unsafe_arena_set_allocated_location( ::messages::lat_long* location) { if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.location_); } _impl_.location_ = location; // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.VehicleMessageHeading.location) } inline ::messages::lat_long* VehicleMessageHeading::release_location() { ::messages::lat_long* temp = _impl_.location_; _impl_.location_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); if (GetArenaForAllocation() == nullptr) { delete old; } #else // PROTOBUF_FORCE_COPY_IN_RELEASE if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::messages::lat_long* VehicleMessageHeading::unsafe_arena_release_location() { // @@protoc_insertion_point(field_release:messages.VehicleMessageHeading.location) ::messages::lat_long* temp = _impl_.location_; _impl_.location_ = nullptr; return temp; } inline ::messages::lat_long* VehicleMessageHeading::_internal_mutable_location() { if (_impl_.location_ == nullptr) { auto* p = CreateMaybeMessage<::messages::lat_long>(GetArenaForAllocation()); _impl_.location_ = p; } return _impl_.location_; } inline ::messages::lat_long* VehicleMessageHeading::mutable_location() { ::messages::lat_long* _msg = _internal_mutable_location(); // @@protoc_insertion_point(field_mutable:messages.VehicleMessageHeading.location) return _msg; } inline void VehicleMessageHeading::set_allocated_location(::messages::lat_long* location) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete _impl_.location_; } if (location) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(location); if (message_arena != submessage_arena) { location = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, location, submessage_arena); } } else { } _impl_.location_ = location; // @@protoc_insertion_point(field_set_allocated:messages.VehicleMessageHeading.location) } // ------------------------------------------------------------------- // lat_long // double latitude = 1; inline void lat_long::clear_latitude() { _impl_.latitude_ = 0; } inline double lat_long::latitude() const { // @@protoc_insertion_point(field_get:messages.lat_long.latitude) return _internal_latitude(); } inline void lat_long::set_latitude(double value) { _internal_set_latitude(value); // @@protoc_insertion_point(field_set:messages.lat_long.latitude) } inline double lat_long::_internal_latitude() const { return _impl_.latitude_; } inline void lat_long::_internal_set_latitude(double value) { ; _impl_.latitude_ = value; } // double longitude = 2; inline void lat_long::clear_longitude() { _impl_.longitude_ = 0; } inline double lat_long::longitude() const { // @@protoc_insertion_point(field_get:messages.lat_long.longitude) return _internal_longitude(); } inline void lat_long::set_longitude(double value) { _internal_set_longitude(value); // @@protoc_insertion_point(field_set:messages.lat_long.longitude) } inline double lat_long::_internal_longitude() const { return _impl_.longitude_; } inline void lat_long::_internal_set_longitude(double value) { ; _impl_.longitude_ = value; } #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) } // namespace messages // @@protoc_insertion_point(global_scope) #include "google/protobuf/port_undef.inc" #endif // GOOGLE_PROTOBUF_INCLUDED_messages_2fVehicleMessageHeader_2eproto_2epb_2eh