diff options
Diffstat (limited to 'src/main/cpp/messages')
-rw-r--r-- | src/main/cpp/messages/VehicleMessageHeader.pb.cc | 5 | ||||
-rw-r--r-- | src/main/cpp/messages/VehiclePrecisionLocation.pb.cc | 543 | ||||
-rw-r--r-- | src/main/cpp/messages/VehiclePrecisionLocation.pb.h | 578 | ||||
-rw-r--r-- | src/main/cpp/messages/test.pb.cc | 321 | ||||
-rw-r--r-- | src/main/cpp/messages/test.pb.h | 310 |
5 files changed, 1123 insertions, 634 deletions
diff --git a/src/main/cpp/messages/VehicleMessageHeader.pb.cc b/src/main/cpp/messages/VehicleMessageHeader.pb.cc index ac6f874..b858bb7 100644 --- a/src/main/cpp/messages/VehicleMessageHeader.pb.cc +++ b/src/main/cpp/messages/VehicleMessageHeader.pb.cc @@ -118,8 +118,7 @@ const char descriptor_table_protodef_messages_2fVehicleMessageHeader_2eproto[] P "amp\030\004 \001(\003\022\030\n\020protocol_version\030\005 \001(\001\022$\n\010l" "ocation\030\006 \001(\0132\022.messages.lat_long\"/\n\010lat" "_long\022\020\n\010latitude\030\001 \001(\001\022\021\n\tlongitude\030\002 \001" - "(\001B\"\n\024com.vehicle.messagesB\nfuckerydoob\006" - "proto3" + "(\001b\006proto3" }; static const ::_pbi::DescriptorTable* const descriptor_table_messages_2fVehicleMessageHeader_2eproto_deps[1] = { @@ -129,7 +128,7 @@ static ::absl::once_flag descriptor_table_messages_2fVehicleMessageHeader_2eprot const ::_pbi::DescriptorTable descriptor_table_messages_2fVehicleMessageHeader_2eproto = { false, false, - 406, + 370, descriptor_table_protodef_messages_2fVehicleMessageHeader_2eproto, "messages/VehicleMessageHeader.proto", &descriptor_table_messages_2fVehicleMessageHeader_2eproto_once, diff --git a/src/main/cpp/messages/VehiclePrecisionLocation.pb.cc b/src/main/cpp/messages/VehiclePrecisionLocation.pb.cc new file mode 100644 index 0000000..c0fdc1c --- /dev/null +++ b/src/main/cpp/messages/VehiclePrecisionLocation.pb.cc @@ -0,0 +1,543 @@ +// 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 RequestCurrentVehicleLocation::RequestCurrentVehicleLocation( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.vehicleidentification_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct RequestCurrentVehicleLocationDefaultTypeInternal { + PROTOBUF_CONSTEXPR RequestCurrentVehicleLocationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~RequestCurrentVehicleLocationDefaultTypeInternal() {} + union { + RequestCurrentVehicleLocation _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RequestCurrentVehicleLocationDefaultTypeInternal _RequestCurrentVehicleLocation_default_instance_; +PROTOBUF_CONSTEXPR ResponseCurrentVehicleLocation::ResponseCurrentVehicleLocation( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.vehiclecurrentlocation_)*/nullptr + , /*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_; +} // namespace messages +static ::_pb::Metadata file_level_metadata_messages_2fVehiclePrecisionLocation_2eproto[2]; +static constexpr const ::_pb::EnumDescriptor** + file_level_enum_descriptors_messages_2fVehiclePrecisionLocation_2eproto = nullptr; +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::RequestCurrentVehicleLocation, _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::RequestCurrentVehicleLocation, _impl_.vehicleidentification_), + ~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_.vehiclecurrentlocation_), +}; + +static const ::_pbi::MigrationSchema + schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::messages::RequestCurrentVehicleLocation)}, + { 9, -1, -1, sizeof(::messages::ResponseCurrentVehicleLocation)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::messages::_RequestCurrentVehicleLocation_default_instance_._instance, + &::messages::_ResponseCurrentVehicleLocation_default_instance_._instance, +}; +const char descriptor_table_protodef_messages_2fVehiclePrecisionLocation_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + "\n\'messages/VehiclePrecisionLocation.prot" + "o\022\010messages\032\017vss/vspec.proto\"a\n\035RequestC" + "urrentVehicleLocation\022@\n\025vehicleIdentifi" + "cation\030\001 \001(\0132!.vss.VehicleVehicleIdentif" + "ication\"]\n\036ResponseCurrentVehicleLocatio" + "n\022;\n\026vehicleCurrentLocation\030\001 \001(\0132\033.vss." + "VehicleCurrentLocationb\006proto3" +}; +static const ::_pbi::DescriptorTable* const descriptor_table_messages_2fVehiclePrecisionLocation_2eproto_deps[1] = + { + &::descriptor_table_vss_2fvspec_2eproto, +}; +static ::absl::once_flag descriptor_table_messages_2fVehiclePrecisionLocation_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_messages_2fVehiclePrecisionLocation_2eproto = { + false, + false, + 270, + descriptor_table_protodef_messages_2fVehiclePrecisionLocation_2eproto, + "messages/VehiclePrecisionLocation.proto", + &descriptor_table_messages_2fVehiclePrecisionLocation_2eproto_once, + descriptor_table_messages_2fVehiclePrecisionLocation_2eproto_deps, + 1, + 2, + 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 { +// =================================================================== + +class RequestCurrentVehicleLocation::_Internal { + public: + static const ::vss::VehicleVehicleIdentification& vehicleidentification(const RequestCurrentVehicleLocation* msg); +}; + +const ::vss::VehicleVehicleIdentification& +RequestCurrentVehicleLocation::_Internal::vehicleidentification(const RequestCurrentVehicleLocation* msg) { + return *msg->_impl_.vehicleidentification_; +} +void RequestCurrentVehicleLocation::clear_vehicleidentification() { + if (GetArenaForAllocation() == nullptr && _impl_.vehicleidentification_ != nullptr) { + delete _impl_.vehicleidentification_; + } + _impl_.vehicleidentification_ = nullptr; +} +RequestCurrentVehicleLocation::RequestCurrentVehicleLocation(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:messages.RequestCurrentVehicleLocation) +} +RequestCurrentVehicleLocation::RequestCurrentVehicleLocation(const RequestCurrentVehicleLocation& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + RequestCurrentVehicleLocation* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.vehicleidentification_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_vehicleidentification()) { + _this->_impl_.vehicleidentification_ = new ::vss::VehicleVehicleIdentification(*from._impl_.vehicleidentification_); + } + // @@protoc_insertion_point(copy_constructor:messages.RequestCurrentVehicleLocation) +} + +inline void RequestCurrentVehicleLocation::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.vehicleidentification_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +RequestCurrentVehicleLocation::~RequestCurrentVehicleLocation() { + // @@protoc_insertion_point(destructor:messages.RequestCurrentVehicleLocation) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void RequestCurrentVehicleLocation::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.vehicleidentification_; +} + +void RequestCurrentVehicleLocation::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void RequestCurrentVehicleLocation::Clear() { +// @@protoc_insertion_point(message_clear_start:messages.RequestCurrentVehicleLocation) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.vehicleidentification_ != nullptr) { + delete _impl_.vehicleidentification_; + } + _impl_.vehicleidentification_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RequestCurrentVehicleLocation::_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) { + // .vss.VehicleVehicleIdentification vehicleIdentification = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_vehicleidentification(), 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* RequestCurrentVehicleLocation::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:messages.RequestCurrentVehicleLocation) + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .vss.VehicleVehicleIdentification vehicleIdentification = 1; + if (this->_internal_has_vehicleidentification()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::vehicleidentification(this), + _Internal::vehicleidentification(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.RequestCurrentVehicleLocation) + return target; +} + +::size_t RequestCurrentVehicleLocation::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:messages.RequestCurrentVehicleLocation) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .vss.VehicleVehicleIdentification vehicleIdentification = 1; + if (this->_internal_has_vehicleidentification()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.vehicleidentification_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RequestCurrentVehicleLocation::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + RequestCurrentVehicleLocation::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RequestCurrentVehicleLocation::GetClassData() const { return &_class_data_; } + + +void RequestCurrentVehicleLocation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<RequestCurrentVehicleLocation*>(&to_msg); + auto& from = static_cast<const RequestCurrentVehicleLocation&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:messages.RequestCurrentVehicleLocation) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_vehicleidentification()) { + _this->_internal_mutable_vehicleidentification()->::vss::VehicleVehicleIdentification::MergeFrom( + from._internal_vehicleidentification()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void RequestCurrentVehicleLocation::CopyFrom(const RequestCurrentVehicleLocation& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:messages.RequestCurrentVehicleLocation) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RequestCurrentVehicleLocation::IsInitialized() const { + return true; +} + +void RequestCurrentVehicleLocation::InternalSwap(RequestCurrentVehicleLocation* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.vehicleidentification_, other->_impl_.vehicleidentification_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RequestCurrentVehicleLocation::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 ::vss::VehicleCurrentLocation& vehiclecurrentlocation(const ResponseCurrentVehicleLocation* msg); +}; + +const ::vss::VehicleCurrentLocation& +ResponseCurrentVehicleLocation::_Internal::vehiclecurrentlocation(const ResponseCurrentVehicleLocation* msg) { + return *msg->_impl_.vehiclecurrentlocation_; +} +void ResponseCurrentVehicleLocation::clear_vehiclecurrentlocation() { + if (GetArenaForAllocation() == nullptr && _impl_.vehiclecurrentlocation_ != nullptr) { + delete _impl_.vehiclecurrentlocation_; + } + _impl_.vehiclecurrentlocation_ = 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_.vehiclecurrentlocation_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_vehiclecurrentlocation()) { + _this->_impl_.vehiclecurrentlocation_ = new ::vss::VehicleCurrentLocation(*from._impl_.vehiclecurrentlocation_); + } + // @@protoc_insertion_point(copy_constructor:messages.ResponseCurrentVehicleLocation) +} + +inline void ResponseCurrentVehicleLocation::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.vehiclecurrentlocation_){nullptr} + , /*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_.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_.vehiclecurrentlocation_ != nullptr) { + delete _impl_.vehiclecurrentlocation_; + } + _impl_.vehiclecurrentlocation_ = nullptr; + _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) { + // .vss.VehicleCurrentLocation vehicleCurrentLocation = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { + 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* 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; + + // .vss.VehicleCurrentLocation vehicleCurrentLocation = 1; + if (this->_internal_has_vehiclecurrentlocation()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _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.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; + + // .vss.VehicleCurrentLocation vehicleCurrentLocation = 1; + 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 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_vehiclecurrentlocation()) { + _this->_internal_mutable_vehiclecurrentlocation()->::vss::VehicleCurrentLocation::MergeFrom( + from._internal_vehiclecurrentlocation()); + } + _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_); + swap(_impl_.vehiclecurrentlocation_, other->_impl_.vehiclecurrentlocation_); +} + +::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]); +} +// @@protoc_insertion_point(namespace_scope) +} // namespace messages +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::messages::RequestCurrentVehicleLocation* +Arena::CreateMaybeMessage< ::messages::RequestCurrentVehicleLocation >(Arena* arena) { + return Arena::CreateMessageInternal< ::messages::RequestCurrentVehicleLocation >(arena); +} +template<> PROTOBUF_NOINLINE ::messages::ResponseCurrentVehicleLocation* +Arena::CreateMaybeMessage< ::messages::ResponseCurrentVehicleLocation >(Arena* arena) { + return Arena::CreateMessageInternal< ::messages::ResponseCurrentVehicleLocation >(arena); +} +PROTOBUF_NAMESPACE_CLOSE +// @@protoc_insertion_point(global_scope) +#include "google/protobuf/port_undef.inc" diff --git a/src/main/cpp/messages/VehiclePrecisionLocation.pb.h b/src/main/cpp/messages/VehiclePrecisionLocation.pb.h new file mode 100644 index 0000000..7ea08e7 --- /dev/null +++ b/src/main/cpp/messages/VehiclePrecisionLocation.pb.h @@ -0,0 +1,578 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: messages/VehiclePrecisionLocation.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_messages_2fVehiclePrecisionLocation_2eproto_2epb_2eh +#define GOOGLE_PROTOBUF_INCLUDED_messages_2fVehiclePrecisionLocation_2eproto_2epb_2eh + +#include <limits> +#include <string> +#include <type_traits> + +#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" +#include "vss/vspec.pb.h" +// @@protoc_insertion_point(includes) + +// Must be included last. +#include "google/protobuf/port_def.inc" + +#define PROTOBUF_INTERNAL_EXPORT_messages_2fVehiclePrecisionLocation_2eproto + +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_messages_2fVehiclePrecisionLocation_2eproto { + static const ::uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable + descriptor_table_messages_2fVehiclePrecisionLocation_2eproto; +namespace messages { +class RequestCurrentVehicleLocation; +struct RequestCurrentVehicleLocationDefaultTypeInternal; +extern RequestCurrentVehicleLocationDefaultTypeInternal _RequestCurrentVehicleLocation_default_instance_; +class ResponseCurrentVehicleLocation; +struct ResponseCurrentVehicleLocationDefaultTypeInternal; +extern ResponseCurrentVehicleLocationDefaultTypeInternal _ResponseCurrentVehicleLocation_default_instance_; +} // namespace messages +PROTOBUF_NAMESPACE_OPEN +template <> +::messages::RequestCurrentVehicleLocation* Arena::CreateMaybeMessage<::messages::RequestCurrentVehicleLocation>(Arena*); +template <> +::messages::ResponseCurrentVehicleLocation* Arena::CreateMaybeMessage<::messages::ResponseCurrentVehicleLocation>(Arena*); +PROTOBUF_NAMESPACE_CLOSE + +namespace messages { + +// =================================================================== + + +// ------------------------------------------------------------------- + +class RequestCurrentVehicleLocation final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.RequestCurrentVehicleLocation) */ { + public: + inline RequestCurrentVehicleLocation() : RequestCurrentVehicleLocation(nullptr) {} + ~RequestCurrentVehicleLocation() override; + explicit PROTOBUF_CONSTEXPR RequestCurrentVehicleLocation(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RequestCurrentVehicleLocation(const RequestCurrentVehicleLocation& from); + RequestCurrentVehicleLocation(RequestCurrentVehicleLocation&& from) noexcept + : RequestCurrentVehicleLocation() { + *this = ::std::move(from); + } + + inline RequestCurrentVehicleLocation& operator=(const RequestCurrentVehicleLocation& from) { + CopyFrom(from); + return *this; + } + inline RequestCurrentVehicleLocation& operator=(RequestCurrentVehicleLocation&& 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 RequestCurrentVehicleLocation& default_instance() { + return *internal_default_instance(); + } + static inline const RequestCurrentVehicleLocation* internal_default_instance() { + return reinterpret_cast<const RequestCurrentVehicleLocation*>( + &_RequestCurrentVehicleLocation_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(RequestCurrentVehicleLocation& a, RequestCurrentVehicleLocation& b) { + a.Swap(&b); + } + inline void Swap(RequestCurrentVehicleLocation* 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(RequestCurrentVehicleLocation* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RequestCurrentVehicleLocation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage<RequestCurrentVehicleLocation>(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RequestCurrentVehicleLocation& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const RequestCurrentVehicleLocation& from) { + RequestCurrentVehicleLocation::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(RequestCurrentVehicleLocation* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "messages.RequestCurrentVehicleLocation"; + } + protected: + explicit RequestCurrentVehicleLocation(::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 { + kVehicleIdentificationFieldNumber = 1, + }; + // .vss.VehicleVehicleIdentification vehicleIdentification = 1; + bool has_vehicleidentification() const; + private: + bool _internal_has_vehicleidentification() const; + + public: + void clear_vehicleidentification() ; + const ::vss::VehicleVehicleIdentification& vehicleidentification() const; + PROTOBUF_NODISCARD ::vss::VehicleVehicleIdentification* release_vehicleidentification(); + ::vss::VehicleVehicleIdentification* mutable_vehicleidentification(); + void set_allocated_vehicleidentification(::vss::VehicleVehicleIdentification* vehicleidentification); + private: + const ::vss::VehicleVehicleIdentification& _internal_vehicleidentification() const; + ::vss::VehicleVehicleIdentification* _internal_mutable_vehicleidentification(); + public: + void unsafe_arena_set_allocated_vehicleidentification( + ::vss::VehicleVehicleIdentification* vehicleidentification); + ::vss::VehicleVehicleIdentification* unsafe_arena_release_vehicleidentification(); + // @@protoc_insertion_point(class_scope:messages.RequestCurrentVehicleLocation) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::vss::VehicleVehicleIdentification* vehicleidentification_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_messages_2fVehiclePrecisionLocation_2eproto; +};// ------------------------------------------------------------------- + +class ResponseCurrentVehicleLocation final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.ResponseCurrentVehicleLocation) */ { + public: + inline ResponseCurrentVehicleLocation() : ResponseCurrentVehicleLocation(nullptr) {} + ~ResponseCurrentVehicleLocation() override; + explicit PROTOBUF_CONSTEXPR ResponseCurrentVehicleLocation(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ResponseCurrentVehicleLocation(const ResponseCurrentVehicleLocation& from); + ResponseCurrentVehicleLocation(ResponseCurrentVehicleLocation&& from) noexcept + : ResponseCurrentVehicleLocation() { + *this = ::std::move(from); + } + + inline ResponseCurrentVehicleLocation& operator=(const ResponseCurrentVehicleLocation& from) { + CopyFrom(from); + return *this; + } + inline ResponseCurrentVehicleLocation& operator=(ResponseCurrentVehicleLocation&& 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 ResponseCurrentVehicleLocation& default_instance() { + return *internal_default_instance(); + } + static inline const ResponseCurrentVehicleLocation* internal_default_instance() { + return reinterpret_cast<const ResponseCurrentVehicleLocation*>( + &_ResponseCurrentVehicleLocation_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(ResponseCurrentVehicleLocation& a, ResponseCurrentVehicleLocation& b) { + a.Swap(&b); + } + inline void Swap(ResponseCurrentVehicleLocation* 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(ResponseCurrentVehicleLocation* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ResponseCurrentVehicleLocation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage<ResponseCurrentVehicleLocation>(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ResponseCurrentVehicleLocation& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ResponseCurrentVehicleLocation& from) { + ResponseCurrentVehicleLocation::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(ResponseCurrentVehicleLocation* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "messages.ResponseCurrentVehicleLocation"; + } + protected: + explicit ResponseCurrentVehicleLocation(::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 { + kVehicleCurrentLocationFieldNumber = 1, + }; + // .vss.VehicleCurrentLocation vehicleCurrentLocation = 1; + bool has_vehiclecurrentlocation() const; + private: + bool _internal_has_vehiclecurrentlocation() const; + + public: + void clear_vehiclecurrentlocation() ; + const ::vss::VehicleCurrentLocation& vehiclecurrentlocation() const; + PROTOBUF_NODISCARD ::vss::VehicleCurrentLocation* release_vehiclecurrentlocation(); + ::vss::VehicleCurrentLocation* mutable_vehiclecurrentlocation(); + void set_allocated_vehiclecurrentlocation(::vss::VehicleCurrentLocation* vehiclecurrentlocation); + private: + const ::vss::VehicleCurrentLocation& _internal_vehiclecurrentlocation() const; + ::vss::VehicleCurrentLocation* _internal_mutable_vehiclecurrentlocation(); + public: + void unsafe_arena_set_allocated_vehiclecurrentlocation( + ::vss::VehicleCurrentLocation* vehiclecurrentlocation); + ::vss::VehicleCurrentLocation* unsafe_arena_release_vehiclecurrentlocation(); + // @@protoc_insertion_point(class_scope:messages.ResponseCurrentVehicleLocation) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::vss::VehicleCurrentLocation* vehiclecurrentlocation_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_messages_2fVehiclePrecisionLocation_2eproto; +}; + +// =================================================================== + + + + +// =================================================================== + + +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// RequestCurrentVehicleLocation + +// .vss.VehicleVehicleIdentification vehicleIdentification = 1; +inline bool RequestCurrentVehicleLocation::_internal_has_vehicleidentification() const { + return this != internal_default_instance() && _impl_.vehicleidentification_ != nullptr; +} +inline bool RequestCurrentVehicleLocation::has_vehicleidentification() const { + return _internal_has_vehicleidentification(); +} +inline const ::vss::VehicleVehicleIdentification& RequestCurrentVehicleLocation::_internal_vehicleidentification() const { + const ::vss::VehicleVehicleIdentification* p = _impl_.vehicleidentification_; + return p != nullptr ? *p : reinterpret_cast<const ::vss::VehicleVehicleIdentification&>( + ::vss::_VehicleVehicleIdentification_default_instance_); +} +inline const ::vss::VehicleVehicleIdentification& RequestCurrentVehicleLocation::vehicleidentification() const { + // @@protoc_insertion_point(field_get:messages.RequestCurrentVehicleLocation.vehicleIdentification) + return _internal_vehicleidentification(); +} +inline void RequestCurrentVehicleLocation::unsafe_arena_set_allocated_vehicleidentification( + ::vss::VehicleVehicleIdentification* vehicleidentification) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.vehicleidentification_); + } + _impl_.vehicleidentification_ = vehicleidentification; + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.RequestCurrentVehicleLocation.vehicleIdentification) +} +inline ::vss::VehicleVehicleIdentification* RequestCurrentVehicleLocation::release_vehicleidentification() { + + ::vss::VehicleVehicleIdentification* temp = _impl_.vehicleidentification_; + _impl_.vehicleidentification_ = 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 ::vss::VehicleVehicleIdentification* RequestCurrentVehicleLocation::unsafe_arena_release_vehicleidentification() { + // @@protoc_insertion_point(field_release:messages.RequestCurrentVehicleLocation.vehicleIdentification) + + ::vss::VehicleVehicleIdentification* temp = _impl_.vehicleidentification_; + _impl_.vehicleidentification_ = nullptr; + return temp; +} +inline ::vss::VehicleVehicleIdentification* RequestCurrentVehicleLocation::_internal_mutable_vehicleidentification() { + + if (_impl_.vehicleidentification_ == nullptr) { + auto* p = CreateMaybeMessage<::vss::VehicleVehicleIdentification>(GetArenaForAllocation()); + _impl_.vehicleidentification_ = p; + } + return _impl_.vehicleidentification_; +} +inline ::vss::VehicleVehicleIdentification* RequestCurrentVehicleLocation::mutable_vehicleidentification() { + ::vss::VehicleVehicleIdentification* _msg = _internal_mutable_vehicleidentification(); + // @@protoc_insertion_point(field_mutable:messages.RequestCurrentVehicleLocation.vehicleIdentification) + return _msg; +} +inline void RequestCurrentVehicleLocation::set_allocated_vehicleidentification(::vss::VehicleVehicleIdentification* vehicleidentification) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.vehicleidentification_); + } + if (vehicleidentification) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(vehicleidentification)); + if (message_arena != submessage_arena) { + vehicleidentification = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, vehicleidentification, submessage_arena); + } + + } else { + + } + _impl_.vehicleidentification_ = vehicleidentification; + // @@protoc_insertion_point(field_set_allocated:messages.RequestCurrentVehicleLocation.vehicleIdentification) +} + +// ------------------------------------------------------------------- + +// ResponseCurrentVehicleLocation + +// .vss.VehicleCurrentLocation vehicleCurrentLocation = 1; +inline bool ResponseCurrentVehicleLocation::_internal_has_vehiclecurrentlocation() const { + return this != internal_default_instance() && _impl_.vehiclecurrentlocation_ != nullptr; +} +inline bool ResponseCurrentVehicleLocation::has_vehiclecurrentlocation() const { + return _internal_has_vehiclecurrentlocation(); +} +inline const ::vss::VehicleCurrentLocation& ResponseCurrentVehicleLocation::_internal_vehiclecurrentlocation() const { + const ::vss::VehicleCurrentLocation* p = _impl_.vehiclecurrentlocation_; + return p != nullptr ? *p : reinterpret_cast<const ::vss::VehicleCurrentLocation&>( + ::vss::_VehicleCurrentLocation_default_instance_); +} +inline const ::vss::VehicleCurrentLocation& ResponseCurrentVehicleLocation::vehiclecurrentlocation() const { + // @@protoc_insertion_point(field_get:messages.ResponseCurrentVehicleLocation.vehicleCurrentLocation) + return _internal_vehiclecurrentlocation(); +} +inline void ResponseCurrentVehicleLocation::unsafe_arena_set_allocated_vehiclecurrentlocation( + ::vss::VehicleCurrentLocation* vehiclecurrentlocation) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.vehiclecurrentlocation_); + } + _impl_.vehiclecurrentlocation_ = vehiclecurrentlocation; + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.ResponseCurrentVehicleLocation.vehicleCurrentLocation) +} +inline ::vss::VehicleCurrentLocation* ResponseCurrentVehicleLocation::release_vehiclecurrentlocation() { + + ::vss::VehicleCurrentLocation* temp = _impl_.vehiclecurrentlocation_; + _impl_.vehiclecurrentlocation_ = 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 ::vss::VehicleCurrentLocation* ResponseCurrentVehicleLocation::unsafe_arena_release_vehiclecurrentlocation() { + // @@protoc_insertion_point(field_release:messages.ResponseCurrentVehicleLocation.vehicleCurrentLocation) + + ::vss::VehicleCurrentLocation* temp = _impl_.vehiclecurrentlocation_; + _impl_.vehiclecurrentlocation_ = nullptr; + return temp; +} +inline ::vss::VehicleCurrentLocation* ResponseCurrentVehicleLocation::_internal_mutable_vehiclecurrentlocation() { + + if (_impl_.vehiclecurrentlocation_ == nullptr) { + auto* p = CreateMaybeMessage<::vss::VehicleCurrentLocation>(GetArenaForAllocation()); + _impl_.vehiclecurrentlocation_ = p; + } + return _impl_.vehiclecurrentlocation_; +} +inline ::vss::VehicleCurrentLocation* ResponseCurrentVehicleLocation::mutable_vehiclecurrentlocation() { + ::vss::VehicleCurrentLocation* _msg = _internal_mutable_vehiclecurrentlocation(); + // @@protoc_insertion_point(field_mutable:messages.ResponseCurrentVehicleLocation.vehicleCurrentLocation) + return _msg; +} +inline void ResponseCurrentVehicleLocation::set_allocated_vehiclecurrentlocation(::vss::VehicleCurrentLocation* vehiclecurrentlocation) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.vehiclecurrentlocation_); + } + if (vehiclecurrentlocation) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(vehiclecurrentlocation)); + if (message_arena != submessage_arena) { + vehiclecurrentlocation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, vehiclecurrentlocation, submessage_arena); + } + + } else { + + } + _impl_.vehiclecurrentlocation_ = vehiclecurrentlocation; + // @@protoc_insertion_point(field_set_allocated:messages.ResponseCurrentVehicleLocation.vehicleCurrentLocation) +} + +#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_2fVehiclePrecisionLocation_2eproto_2epb_2eh diff --git a/src/main/cpp/messages/test.pb.cc b/src/main/cpp/messages/test.pb.cc deleted file mode 100644 index edb90f2..0000000 --- a/src/main/cpp/messages/test.pb.cc +++ /dev/null @@ -1,321 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: messages/test.proto - -#include "messages/test.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 com { -namespace vehicle { -namespace messages { -PROTOBUF_CONSTEXPR testMessage::testMessage( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.testme_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_._cached_size_)*/{}} {} -struct testMessageDefaultTypeInternal { - PROTOBUF_CONSTEXPR testMessageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~testMessageDefaultTypeInternal() {} - union { - testMessage _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 testMessageDefaultTypeInternal _testMessage_default_instance_; -} // namespace messages -} // namespace vehicle -} // namespace com -static ::_pb::Metadata file_level_metadata_messages_2ftest_2eproto[1]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_messages_2ftest_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_messages_2ftest_2eproto = nullptr; -const ::uint32_t TableStruct_messages_2ftest_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::com::vehicle::messages::testMessage, _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(::com::vehicle::messages::testMessage, _impl_.testme_), -}; - -static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, -1, sizeof(::com::vehicle::messages::testMessage)}, -}; - -static const ::_pb::Message* const file_default_instances[] = { - &::com::vehicle::messages::_testMessage_default_instance_._instance, -}; -const char descriptor_table_protodef_messages_2ftest_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - "\n\023messages/test.proto\022\024com.vehicle.messa" - "ges\"\035\n\013testMessage\022\016\n\006testme\030\001 \001(\tB\026\n\024co" - "m.vehicle.messagesb\006proto3" -}; -static ::absl::once_flag descriptor_table_messages_2ftest_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_messages_2ftest_2eproto = { - false, - false, - 106, - descriptor_table_protodef_messages_2ftest_2eproto, - "messages/test.proto", - &descriptor_table_messages_2ftest_2eproto_once, - nullptr, - 0, - 1, - schemas, - file_default_instances, - TableStruct_messages_2ftest_2eproto::offsets, - file_level_metadata_messages_2ftest_2eproto, - file_level_enum_descriptors_messages_2ftest_2eproto, - file_level_service_descriptors_messages_2ftest_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_2ftest_2eproto_getter() { - return &descriptor_table_messages_2ftest_2eproto; -} -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_messages_2ftest_2eproto(&descriptor_table_messages_2ftest_2eproto); -namespace com { -namespace vehicle { -namespace messages { -// =================================================================== - -class testMessage::_Internal { - public: -}; - -testMessage::testMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:com.vehicle.messages.testMessage) -} -testMessage::testMessage(const testMessage& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - testMessage* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.testme_) {} - - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.testme_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.testme_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_testme().empty()) { - _this->_impl_.testme_.Set(from._internal_testme(), _this->GetArenaForAllocation()); - } - // @@protoc_insertion_point(copy_constructor:com.vehicle.messages.testMessage) -} - -inline void testMessage::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.testme_) {} - - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.testme_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.testme_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -testMessage::~testMessage() { - // @@protoc_insertion_point(destructor:com.vehicle.messages.testMessage) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void testMessage::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.testme_.Destroy(); -} - -void testMessage::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void testMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:com.vehicle.messages.testMessage) - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.testme_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* testMessage::_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 testme = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - auto str = _internal_mutable_testme(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "com.vehicle.messages.testMessage.testme")); - } 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* testMessage::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:com.vehicle.messages.testMessage) - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // string testme = 1; - if (!this->_internal_testme().empty()) { - const std::string& _s = this->_internal_testme(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "com.vehicle.messages.testMessage.testme"); - 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:com.vehicle.messages.testMessage) - return target; -} - -::size_t testMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:com.vehicle.messages.testMessage) - ::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 testme = 1; - if (!this->_internal_testme().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_testme()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData testMessage::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - testMessage::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*testMessage::GetClassData() const { return &_class_data_; } - - -void testMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast<testMessage*>(&to_msg); - auto& from = static_cast<const testMessage&>(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:com.vehicle.messages.testMessage) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_testme().empty()) { - _this->_internal_set_testme(from._internal_testme()); - } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void testMessage::CopyFrom(const testMessage& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:com.vehicle.messages.testMessage) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool testMessage::IsInitialized() const { - return true; -} - -void testMessage::InternalSwap(testMessage* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.testme_, lhs_arena, - &other->_impl_.testme_, rhs_arena); -} - -::PROTOBUF_NAMESPACE_ID::Metadata testMessage::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_messages_2ftest_2eproto_getter, &descriptor_table_messages_2ftest_2eproto_once, - file_level_metadata_messages_2ftest_2eproto[0]); -} -// @@protoc_insertion_point(namespace_scope) -} // namespace messages -} // namespace vehicle -} // namespace com -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::com::vehicle::messages::testMessage* -Arena::CreateMaybeMessage< ::com::vehicle::messages::testMessage >(Arena* arena) { - return Arena::CreateMessageInternal< ::com::vehicle::messages::testMessage >(arena); -} -PROTOBUF_NAMESPACE_CLOSE -// @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" diff --git a/src/main/cpp/messages/test.pb.h b/src/main/cpp/messages/test.pb.h deleted file mode 100644 index 468be3b..0000000 --- a/src/main/cpp/messages/test.pb.h +++ /dev/null @@ -1,310 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: messages/test.proto - -#ifndef GOOGLE_PROTOBUF_INCLUDED_messages_2ftest_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_messages_2ftest_2eproto_2epb_2eh - -#include <limits> -#include <string> -#include <type_traits> - -#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_2ftest_2eproto - -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_messages_2ftest_2eproto { - static const ::uint32_t offsets[]; -}; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable - descriptor_table_messages_2ftest_2eproto; -namespace com { -namespace vehicle { -namespace messages { -class testMessage; -struct testMessageDefaultTypeInternal; -extern testMessageDefaultTypeInternal _testMessage_default_instance_; -} // namespace messages -} // namespace vehicle -} // namespace com -PROTOBUF_NAMESPACE_OPEN -template <> -::com::vehicle::messages::testMessage* Arena::CreateMaybeMessage<::com::vehicle::messages::testMessage>(Arena*); -PROTOBUF_NAMESPACE_CLOSE - -namespace com { -namespace vehicle { -namespace messages { - -// =================================================================== - - -// ------------------------------------------------------------------- - -class testMessage final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:com.vehicle.messages.testMessage) */ { - public: - inline testMessage() : testMessage(nullptr) {} - ~testMessage() override; - explicit PROTOBUF_CONSTEXPR testMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - testMessage(const testMessage& from); - testMessage(testMessage&& from) noexcept - : testMessage() { - *this = ::std::move(from); - } - - inline testMessage& operator=(const testMessage& from) { - CopyFrom(from); - return *this; - } - inline testMessage& operator=(testMessage&& 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 testMessage& default_instance() { - return *internal_default_instance(); - } - static inline const testMessage* internal_default_instance() { - return reinterpret_cast<const testMessage*>( - &_testMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(testMessage& a, testMessage& b) { - a.Swap(&b); - } - inline void Swap(testMessage* 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(testMessage* other) { - if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - testMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage<testMessage>(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const testMessage& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const testMessage& from) { - testMessage::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(testMessage* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "com.vehicle.messages.testMessage"; - } - protected: - explicit testMessage(::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 { - kTestmeFieldNumber = 1, - }; - // string testme = 1; - void clear_testme() ; - const std::string& testme() const; - - - - - template <typename Arg_ = const std::string&, typename... Args_> - void set_testme(Arg_&& arg, Args_... args); - std::string* mutable_testme(); - PROTOBUF_NODISCARD std::string* release_testme(); - void set_allocated_testme(std::string* ptr); - - private: - const std::string& _internal_testme() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_testme( - const std::string& value); - std::string* _internal_mutable_testme(); - - public: - // @@protoc_insertion_point(class_scope:com.vehicle.messages.testMessage) - private: - class _Internal; - - template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr testme_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_messages_2ftest_2eproto; -}; - -// =================================================================== - - - - -// =================================================================== - - -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// testMessage - -// string testme = 1; -inline void testMessage::clear_testme() { - _impl_.testme_.ClearToEmpty(); -} -inline const std::string& testMessage::testme() const { - // @@protoc_insertion_point(field_get:com.vehicle.messages.testMessage.testme) - return _internal_testme(); -} -template <typename Arg_, typename... Args_> -inline PROTOBUF_ALWAYS_INLINE void testMessage::set_testme(Arg_&& arg, - Args_... args) { - ; - _impl_.testme_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:com.vehicle.messages.testMessage.testme) -} -inline std::string* testMessage::mutable_testme() { - std::string* _s = _internal_mutable_testme(); - // @@protoc_insertion_point(field_mutable:com.vehicle.messages.testMessage.testme) - return _s; -} -inline const std::string& testMessage::_internal_testme() const { - return _impl_.testme_.Get(); -} -inline void testMessage::_internal_set_testme(const std::string& value) { - ; - - - _impl_.testme_.Set(value, GetArenaForAllocation()); -} -inline std::string* testMessage::_internal_mutable_testme() { - ; - return _impl_.testme_.Mutable( GetArenaForAllocation()); -} -inline std::string* testMessage::release_testme() { - // @@protoc_insertion_point(field_release:com.vehicle.messages.testMessage.testme) - return _impl_.testme_.Release(); -} -inline void testMessage::set_allocated_testme(std::string* value) { - _impl_.testme_.SetAllocated(value, GetArenaForAllocation()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.testme_.IsDefault()) { - _impl_.testme_.Set("", GetArenaForAllocation()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:com.vehicle.messages.testMessage.testme) -} - -#ifdef __GNUC__ -#pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) -} // namespace messages -} // namespace vehicle -} // namespace com - - -// @@protoc_insertion_point(global_scope) - -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_messages_2ftest_2eproto_2epb_2eh |