aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/cpp/messages/VehiclePrecisionLocation.pb.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/cpp/messages/VehiclePrecisionLocation.pb.cc')
-rw-r--r--src/main/cpp/messages/VehiclePrecisionLocation.pb.cc434
1 files changed, 414 insertions, 20 deletions
diff --git a/src/main/cpp/messages/VehiclePrecisionLocation.pb.cc b/src/main/cpp/messages/VehiclePrecisionLocation.pb.cc
index c0fdc1c..e77684c 100644
--- a/src/main/cpp/messages/VehiclePrecisionLocation.pb.cc
+++ b/src/main/cpp/messages/VehiclePrecisionLocation.pb.cc
@@ -35,7 +35,10 @@ 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_.vehiclemessageheading_)*/nullptr
+ , /*decltype(_impl_.vehiclecurrentlocation_)*/nullptr
+ , /*decltype(_impl_.responsestatus_)*/ 0
+
, /*decltype(_impl_._cached_size_)*/{}} {}
struct ResponseCurrentVehicleLocationDefaultTypeInternal {
PROTOBUF_CONSTEXPR ResponseCurrentVehicleLocationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
@@ -47,10 +50,24 @@ struct ResponseCurrentVehicleLocationDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResponseCurrentVehicleLocationDefaultTypeInternal _ResponseCurrentVehicleLocation_default_instance_;
+PROTOBUF_CONSTEXPR PublishCurrentVehicleLocation::PublishCurrentVehicleLocation(
+ ::_pbi::ConstantInitialized): _impl_{
+ /*decltype(_impl_.vehiclemessageheading_)*/nullptr
+ , /*decltype(_impl_.vehiclecurrentlocation_)*/nullptr
+ , /*decltype(_impl_._cached_size_)*/{}} {}
+struct PublishCurrentVehicleLocationDefaultTypeInternal {
+ PROTOBUF_CONSTEXPR PublishCurrentVehicleLocationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
+ ~PublishCurrentVehicleLocationDefaultTypeInternal() {}
+ union {
+ PublishCurrentVehicleLocation _instance;
+ };
+};
+
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PublishCurrentVehicleLocationDefaultTypeInternal _PublishCurrentVehicleLocation_default_instance_;
} // 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 ::_pb::Metadata file_level_metadata_messages_2fVehiclePrecisionLocation_2eproto[3];
+static const ::_pb::EnumDescriptor* file_level_enum_descriptors_messages_2fVehiclePrecisionLocation_2eproto[1];
static constexpr const ::_pb::ServiceDescriptor**
file_level_service_descriptors_messages_2fVehiclePrecisionLocation_2eproto = nullptr;
const ::uint32_t TableStruct_messages_2fVehiclePrecisionLocation_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(
@@ -72,43 +89,68 @@ const ::uint32_t TableStruct_messages_2fVehiclePrecisionLocation_2eproto::offset
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
+ PROTOBUF_FIELD_OFFSET(::messages::ResponseCurrentVehicleLocation, _impl_.vehiclemessageheading_),
PROTOBUF_FIELD_OFFSET(::messages::ResponseCurrentVehicleLocation, _impl_.vehiclecurrentlocation_),
+ PROTOBUF_FIELD_OFFSET(::messages::ResponseCurrentVehicleLocation, _impl_.responsestatus_),
+ ~0u, // no _has_bits_
+ PROTOBUF_FIELD_OFFSET(::messages::PublishCurrentVehicleLocation, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ ~0u, // no _inlined_string_donated_
+ ~0u, // no _split_
+ ~0u, // no sizeof(Split)
+ PROTOBUF_FIELD_OFFSET(::messages::PublishCurrentVehicleLocation, _impl_.vehiclemessageheading_),
+ PROTOBUF_FIELD_OFFSET(::messages::PublishCurrentVehicleLocation, _impl_.vehiclecurrentlocation_),
};
static const ::_pbi::MigrationSchema
schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, -1, sizeof(::messages::RequestCurrentVehicleLocation)},
{ 9, -1, -1, sizeof(::messages::ResponseCurrentVehicleLocation)},
+ { 20, -1, -1, sizeof(::messages::PublishCurrentVehicleLocation)},
};
static const ::_pb::Message* const file_default_instances[] = {
&::messages::_RequestCurrentVehicleLocation_default_instance_._instance,
&::messages::_ResponseCurrentVehicleLocation_default_instance_._instance,
+ &::messages::_PublishCurrentVehicleLocation_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"
+ "o\022\010messages\032\017vss/vspec.proto\032#messages/V"
+ "ehicleMessageHeader.proto\"a\n\035RequestCurr"
+ "entVehicleLocation\022@\n\025vehicleIdentificat"
+ "ion\030\001 \001(\0132!.vss.VehicleVehicleIdentifica"
+ "tion\"\323\001\n\036ResponseCurrentVehicleLocation\022"
+ ">\n\025vehicleMessageHeading\030\001 \001(\0132\037.message"
+ "s.VehicleMessageHeading\022;\n\026vehicleCurren"
+ "tLocation\030\002 \001(\0132\033.vss.VehicleCurrentLoca"
+ "tion\0224\n\016responseStatus\030\003 \001(\0162\034.messages."
+ "ResponseStatusEnum\"\234\001\n\035PublishCurrentVeh"
+ "icleLocation\022>\n\025vehicleMessageHeading\030\001 "
+ "\001(\0132\037.messages.VehicleMessageHeading\022;\n\026"
+ "vehicleCurrentLocation\030\002 \001(\0132\033.vss.Vehic"
+ "leCurrentLocation*S\n\022ResponseStatusEnum\022"
+ "\013\n\007SUCCESS\020\000\022\024\n\020FAIL_NO_RESPONSE\020\001\022\032\n\026FA"
+ "IL_DEGRADED_RESPONSE\020\002b\006proto3"
};
-static const ::_pbi::DescriptorTable* const descriptor_table_messages_2fVehiclePrecisionLocation_2eproto_deps[1] =
+static const ::_pbi::DescriptorTable* const descriptor_table_messages_2fVehiclePrecisionLocation_2eproto_deps[2] =
{
+ &::descriptor_table_messages_2fVehicleMessageHeader_2eproto,
&::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,
+ 670,
descriptor_table_protodef_messages_2fVehiclePrecisionLocation_2eproto,
"messages/VehiclePrecisionLocation.proto",
&descriptor_table_messages_2fVehiclePrecisionLocation_2eproto_once,
descriptor_table_messages_2fVehiclePrecisionLocation_2eproto_deps,
- 1,
2,
+ 3,
schemas,
file_default_instances,
TableStruct_messages_2fVehiclePrecisionLocation_2eproto::offsets,
@@ -135,6 +177,20 @@ PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_messages
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_messages_2fVehiclePrecisionLocation_2eproto(&descriptor_table_messages_2fVehiclePrecisionLocation_2eproto);
namespace messages {
+const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ResponseStatusEnum_descriptor() {
+ ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_messages_2fVehiclePrecisionLocation_2eproto);
+ return file_level_enum_descriptors_messages_2fVehiclePrecisionLocation_2eproto[0];
+}
+bool ResponseStatusEnum_IsValid(int value) {
+ switch (value) {
+ case 0:
+ case 1:
+ case 2:
+ return true;
+ default:
+ return false;
+ }
+}
// ===================================================================
class RequestCurrentVehicleLocation::_Internal {
@@ -335,13 +391,24 @@ void RequestCurrentVehicleLocation::InternalSwap(RequestCurrentVehicleLocation*
class ResponseCurrentVehicleLocation::_Internal {
public:
+ static const ::messages::VehicleMessageHeading& vehiclemessageheading(const ResponseCurrentVehicleLocation* msg);
static const ::vss::VehicleCurrentLocation& vehiclecurrentlocation(const ResponseCurrentVehicleLocation* msg);
};
+const ::messages::VehicleMessageHeading&
+ResponseCurrentVehicleLocation::_Internal::vehiclemessageheading(const ResponseCurrentVehicleLocation* msg) {
+ return *msg->_impl_.vehiclemessageheading_;
+}
const ::vss::VehicleCurrentLocation&
ResponseCurrentVehicleLocation::_Internal::vehiclecurrentlocation(const ResponseCurrentVehicleLocation* msg) {
return *msg->_impl_.vehiclecurrentlocation_;
}
+void ResponseCurrentVehicleLocation::clear_vehiclemessageheading() {
+ if (GetArenaForAllocation() == nullptr && _impl_.vehiclemessageheading_ != nullptr) {
+ delete _impl_.vehiclemessageheading_;
+ }
+ _impl_.vehiclemessageheading_ = nullptr;
+}
void ResponseCurrentVehicleLocation::clear_vehiclecurrentlocation() {
if (GetArenaForAllocation() == nullptr && _impl_.vehiclecurrentlocation_ != nullptr) {
delete _impl_.vehiclecurrentlocation_;
@@ -357,20 +424,30 @@ ResponseCurrentVehicleLocation::ResponseCurrentVehicleLocation(const ResponseCur
: ::PROTOBUF_NAMESPACE_ID::Message() {
ResponseCurrentVehicleLocation* const _this = this; (void)_this;
new (&_impl_) Impl_{
- decltype(_impl_.vehiclecurrentlocation_){nullptr}
+ decltype(_impl_.vehiclemessageheading_){nullptr}
+ , decltype(_impl_.vehiclecurrentlocation_){nullptr}
+ , decltype(_impl_.responsestatus_) {}
+
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+ if (from._internal_has_vehiclemessageheading()) {
+ _this->_impl_.vehiclemessageheading_ = new ::messages::VehicleMessageHeading(*from._impl_.vehiclemessageheading_);
+ }
if (from._internal_has_vehiclecurrentlocation()) {
_this->_impl_.vehiclecurrentlocation_ = new ::vss::VehicleCurrentLocation(*from._impl_.vehiclecurrentlocation_);
}
+ _this->_impl_.responsestatus_ = from._impl_.responsestatus_;
// @@protoc_insertion_point(copy_constructor:messages.ResponseCurrentVehicleLocation)
}
inline void ResponseCurrentVehicleLocation::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
- decltype(_impl_.vehiclecurrentlocation_){nullptr}
+ decltype(_impl_.vehiclemessageheading_){nullptr}
+ , decltype(_impl_.vehiclecurrentlocation_){nullptr}
+ , decltype(_impl_.responsestatus_) { 0 }
+
, /*decltype(_impl_._cached_size_)*/{}
};
}
@@ -386,6 +463,7 @@ ResponseCurrentVehicleLocation::~ResponseCurrentVehicleLocation() {
inline void ResponseCurrentVehicleLocation::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
+ if (this != internal_default_instance()) delete _impl_.vehiclemessageheading_;
if (this != internal_default_instance()) delete _impl_.vehiclecurrentlocation_;
}
@@ -399,10 +477,15 @@ void ResponseCurrentVehicleLocation::Clear() {
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
+ if (GetArenaForAllocation() == nullptr && _impl_.vehiclemessageheading_ != nullptr) {
+ delete _impl_.vehiclemessageheading_;
+ }
+ _impl_.vehiclemessageheading_ = nullptr;
if (GetArenaForAllocation() == nullptr && _impl_.vehiclecurrentlocation_ != nullptr) {
delete _impl_.vehiclecurrentlocation_;
}
_impl_.vehiclecurrentlocation_ = nullptr;
+ _impl_.responsestatus_ = 0;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -412,15 +495,34 @@ const char* ResponseCurrentVehicleLocation::_InternalParse(const char* ptr, ::_p
::uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
- // .vss.VehicleCurrentLocation vehicleCurrentLocation = 1;
+ // .messages.VehicleMessageHeading vehicleMessageHeading = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
+ ptr = ctx->ParseMessage(_internal_mutable_vehiclemessageheading(), ptr);
+ CHK_(ptr);
+ } else {
+ goto handle_unusual;
+ }
+ continue;
+ // .vss.VehicleCurrentLocation vehicleCurrentLocation = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
ptr = ctx->ParseMessage(_internal_mutable_vehiclecurrentlocation(), ptr);
CHK_(ptr);
} else {
goto handle_unusual;
}
continue;
+ // .messages.ResponseStatusEnum responseStatus = 3;
+ case 3:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
+ ::uint32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
+ CHK_(ptr);
+ _internal_set_responsestatus(static_cast<::messages::ResponseStatusEnum>(val));
+ } else {
+ goto handle_unusual;
+ }
+ continue;
default:
goto handle_unusual;
} // switch
@@ -450,13 +552,27 @@ failure:
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
- // .vss.VehicleCurrentLocation vehicleCurrentLocation = 1;
+ // .messages.VehicleMessageHeading vehicleMessageHeading = 1;
+ if (this->_internal_has_vehiclemessageheading()) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(1, _Internal::vehiclemessageheading(this),
+ _Internal::vehiclemessageheading(this).GetCachedSize(), target, stream);
+ }
+
+ // .vss.VehicleCurrentLocation vehicleCurrentLocation = 2;
if (this->_internal_has_vehiclecurrentlocation()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(1, _Internal::vehiclecurrentlocation(this),
+ InternalWriteMessage(2, _Internal::vehiclecurrentlocation(this),
_Internal::vehiclecurrentlocation(this).GetCachedSize(), target, stream);
}
+ // .messages.ResponseStatusEnum responseStatus = 3;
+ if (this->_internal_responsestatus() != 0) {
+ target = stream->EnsureSpace(target);
+ target = ::_pbi::WireFormatLite::WriteEnumToArray(
+ 3, this->_internal_responsestatus(), target);
+ }
+
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
@@ -473,13 +589,26 @@ failure:
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
- // .vss.VehicleCurrentLocation vehicleCurrentLocation = 1;
+ // .messages.VehicleMessageHeading vehicleMessageHeading = 1;
+ if (this->_internal_has_vehiclemessageheading()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *_impl_.vehiclemessageheading_);
+ }
+
+ // .vss.VehicleCurrentLocation vehicleCurrentLocation = 2;
if (this->_internal_has_vehiclecurrentlocation()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.vehiclecurrentlocation_);
}
+ // .messages.ResponseStatusEnum responseStatus = 3;
+ if (this->_internal_responsestatus() != 0) {
+ total_size += 1 +
+ ::_pbi::WireFormatLite::EnumSize(this->_internal_responsestatus());
+ }
+
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
@@ -498,10 +627,17 @@ void ResponseCurrentVehicleLocation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message&
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
+ if (from._internal_has_vehiclemessageheading()) {
+ _this->_internal_mutable_vehiclemessageheading()->::messages::VehicleMessageHeading::MergeFrom(
+ from._internal_vehiclemessageheading());
+ }
if (from._internal_has_vehiclecurrentlocation()) {
_this->_internal_mutable_vehiclecurrentlocation()->::vss::VehicleCurrentLocation::MergeFrom(
from._internal_vehiclecurrentlocation());
}
+ if (from._internal_responsestatus() != 0) {
+ _this->_internal_set_responsestatus(from._internal_responsestatus());
+ }
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
@@ -519,7 +655,12 @@ bool ResponseCurrentVehicleLocation::IsInitialized() const {
void ResponseCurrentVehicleLocation::InternalSwap(ResponseCurrentVehicleLocation* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(_impl_.vehiclecurrentlocation_, other->_impl_.vehiclecurrentlocation_);
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(ResponseCurrentVehicleLocation, _impl_.responsestatus_)
+ + sizeof(ResponseCurrentVehicleLocation::_impl_.responsestatus_)
+ - PROTOBUF_FIELD_OFFSET(ResponseCurrentVehicleLocation, _impl_.vehiclemessageheading_)>(
+ reinterpret_cast<char*>(&_impl_.vehiclemessageheading_),
+ reinterpret_cast<char*>(&other->_impl_.vehiclemessageheading_));
}
::PROTOBUF_NAMESPACE_ID::Metadata ResponseCurrentVehicleLocation::GetMetadata() const {
@@ -527,6 +668,255 @@ void ResponseCurrentVehicleLocation::InternalSwap(ResponseCurrentVehicleLocation
&descriptor_table_messages_2fVehiclePrecisionLocation_2eproto_getter, &descriptor_table_messages_2fVehiclePrecisionLocation_2eproto_once,
file_level_metadata_messages_2fVehiclePrecisionLocation_2eproto[1]);
}
+// ===================================================================
+
+class PublishCurrentVehicleLocation::_Internal {
+ public:
+ static const ::messages::VehicleMessageHeading& vehiclemessageheading(const PublishCurrentVehicleLocation* msg);
+ static const ::vss::VehicleCurrentLocation& vehiclecurrentlocation(const PublishCurrentVehicleLocation* msg);
+};
+
+const ::messages::VehicleMessageHeading&
+PublishCurrentVehicleLocation::_Internal::vehiclemessageheading(const PublishCurrentVehicleLocation* msg) {
+ return *msg->_impl_.vehiclemessageheading_;
+}
+const ::vss::VehicleCurrentLocation&
+PublishCurrentVehicleLocation::_Internal::vehiclecurrentlocation(const PublishCurrentVehicleLocation* msg) {
+ return *msg->_impl_.vehiclecurrentlocation_;
+}
+void PublishCurrentVehicleLocation::clear_vehiclemessageheading() {
+ if (GetArenaForAllocation() == nullptr && _impl_.vehiclemessageheading_ != nullptr) {
+ delete _impl_.vehiclemessageheading_;
+ }
+ _impl_.vehiclemessageheading_ = nullptr;
+}
+void PublishCurrentVehicleLocation::clear_vehiclecurrentlocation() {
+ if (GetArenaForAllocation() == nullptr && _impl_.vehiclecurrentlocation_ != nullptr) {
+ delete _impl_.vehiclecurrentlocation_;
+ }
+ _impl_.vehiclecurrentlocation_ = nullptr;
+}
+PublishCurrentVehicleLocation::PublishCurrentVehicleLocation(::PROTOBUF_NAMESPACE_ID::Arena* arena)
+ : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
+ SharedCtor(arena);
+ // @@protoc_insertion_point(arena_constructor:messages.PublishCurrentVehicleLocation)
+}
+PublishCurrentVehicleLocation::PublishCurrentVehicleLocation(const PublishCurrentVehicleLocation& from)
+ : ::PROTOBUF_NAMESPACE_ID::Message() {
+ PublishCurrentVehicleLocation* const _this = this; (void)_this;
+ new (&_impl_) Impl_{
+ decltype(_impl_.vehiclemessageheading_){nullptr}
+ , decltype(_impl_.vehiclecurrentlocation_){nullptr}
+ , /*decltype(_impl_._cached_size_)*/{}};
+
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+ if (from._internal_has_vehiclemessageheading()) {
+ _this->_impl_.vehiclemessageheading_ = new ::messages::VehicleMessageHeading(*from._impl_.vehiclemessageheading_);
+ }
+ if (from._internal_has_vehiclecurrentlocation()) {
+ _this->_impl_.vehiclecurrentlocation_ = new ::vss::VehicleCurrentLocation(*from._impl_.vehiclecurrentlocation_);
+ }
+ // @@protoc_insertion_point(copy_constructor:messages.PublishCurrentVehicleLocation)
+}
+
+inline void PublishCurrentVehicleLocation::SharedCtor(::_pb::Arena* arena) {
+ (void)arena;
+ new (&_impl_) Impl_{
+ decltype(_impl_.vehiclemessageheading_){nullptr}
+ , decltype(_impl_.vehiclecurrentlocation_){nullptr}
+ , /*decltype(_impl_._cached_size_)*/{}
+ };
+}
+
+PublishCurrentVehicleLocation::~PublishCurrentVehicleLocation() {
+ // @@protoc_insertion_point(destructor:messages.PublishCurrentVehicleLocation)
+ if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
+ (void)arena;
+ return;
+ }
+ SharedDtor();
+}
+
+inline void PublishCurrentVehicleLocation::SharedDtor() {
+ ABSL_DCHECK(GetArenaForAllocation() == nullptr);
+ if (this != internal_default_instance()) delete _impl_.vehiclemessageheading_;
+ if (this != internal_default_instance()) delete _impl_.vehiclecurrentlocation_;
+}
+
+void PublishCurrentVehicleLocation::SetCachedSize(int size) const {
+ _impl_._cached_size_.Set(size);
+}
+
+void PublishCurrentVehicleLocation::Clear() {
+// @@protoc_insertion_point(message_clear_start:messages.PublishCurrentVehicleLocation)
+ ::uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ if (GetArenaForAllocation() == nullptr && _impl_.vehiclemessageheading_ != nullptr) {
+ delete _impl_.vehiclemessageheading_;
+ }
+ _impl_.vehiclemessageheading_ = nullptr;
+ if (GetArenaForAllocation() == nullptr && _impl_.vehiclecurrentlocation_ != nullptr) {
+ delete _impl_.vehiclecurrentlocation_;
+ }
+ _impl_.vehiclecurrentlocation_ = nullptr;
+ _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+const char* PublishCurrentVehicleLocation::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ while (!ctx->Done(&ptr)) {
+ ::uint32_t tag;
+ ptr = ::_pbi::ReadTag(ptr, &tag);
+ switch (tag >> 3) {
+ // .messages.VehicleMessageHeading vehicleMessageHeading = 1;
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
+ ptr = ctx->ParseMessage(_internal_mutable_vehiclemessageheading(), ptr);
+ CHK_(ptr);
+ } else {
+ goto handle_unusual;
+ }
+ continue;
+ // .vss.VehicleCurrentLocation vehicleCurrentLocation = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_vehiclecurrentlocation(), ptr);
+ CHK_(ptr);
+ } else {
+ goto handle_unusual;
+ }
+ continue;
+ default:
+ goto handle_unusual;
+ } // switch
+ handle_unusual:
+ if ((tag == 0) || ((tag & 7) == 4)) {
+ CHK_(ptr);
+ ctx->SetLastTag(tag);
+ goto message_done;
+ }
+ ptr = UnknownFieldParse(
+ tag,
+ _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
+ ptr, ctx);
+ CHK_(ptr != nullptr);
+ } // while
+message_done:
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto message_done;
+#undef CHK_
+}
+
+::uint8_t* PublishCurrentVehicleLocation::_InternalSerialize(
+ ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:messages.PublishCurrentVehicleLocation)
+ ::uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .messages.VehicleMessageHeading vehicleMessageHeading = 1;
+ if (this->_internal_has_vehiclemessageheading()) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(1, _Internal::vehiclemessageheading(this),
+ _Internal::vehiclemessageheading(this).GetCachedSize(), target, stream);
+ }
+
+ // .vss.VehicleCurrentLocation vehicleCurrentLocation = 2;
+ if (this->_internal_has_vehiclecurrentlocation()) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(2, _Internal::vehiclecurrentlocation(this),
+ _Internal::vehiclecurrentlocation(this).GetCachedSize(), target, stream);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
+ _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:messages.PublishCurrentVehicleLocation)
+ return target;
+}
+
+::size_t PublishCurrentVehicleLocation::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:messages.PublishCurrentVehicleLocation)
+ ::size_t total_size = 0;
+
+ ::uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ // .messages.VehicleMessageHeading vehicleMessageHeading = 1;
+ if (this->_internal_has_vehiclemessageheading()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *_impl_.vehiclemessageheading_);
+ }
+
+ // .vss.VehicleCurrentLocation vehicleCurrentLocation = 2;
+ if (this->_internal_has_vehiclecurrentlocation()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *_impl_.vehiclecurrentlocation_);
+ }
+
+ return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
+}
+
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PublishCurrentVehicleLocation::_class_data_ = {
+ ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
+ PublishCurrentVehicleLocation::MergeImpl
+};
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PublishCurrentVehicleLocation::GetClassData() const { return &_class_data_; }
+
+
+void PublishCurrentVehicleLocation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
+ auto* const _this = static_cast<PublishCurrentVehicleLocation*>(&to_msg);
+ auto& from = static_cast<const PublishCurrentVehicleLocation&>(from_msg);
+ // @@protoc_insertion_point(class_specific_merge_from_start:messages.PublishCurrentVehicleLocation)
+ ABSL_DCHECK_NE(&from, _this);
+ ::uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from._internal_has_vehiclemessageheading()) {
+ _this->_internal_mutable_vehiclemessageheading()->::messages::VehicleMessageHeading::MergeFrom(
+ from._internal_vehiclemessageheading());
+ }
+ if (from._internal_has_vehiclecurrentlocation()) {
+ _this->_internal_mutable_vehiclecurrentlocation()->::vss::VehicleCurrentLocation::MergeFrom(
+ from._internal_vehiclecurrentlocation());
+ }
+ _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+}
+
+void PublishCurrentVehicleLocation::CopyFrom(const PublishCurrentVehicleLocation& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:messages.PublishCurrentVehicleLocation)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool PublishCurrentVehicleLocation::IsInitialized() const {
+ return true;
+}
+
+void PublishCurrentVehicleLocation::InternalSwap(PublishCurrentVehicleLocation* other) {
+ using std::swap;
+ _internal_metadata_.InternalSwap(&other->_internal_metadata_);
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(PublishCurrentVehicleLocation, _impl_.vehiclecurrentlocation_)
+ + sizeof(PublishCurrentVehicleLocation::_impl_.vehiclecurrentlocation_)
+ - PROTOBUF_FIELD_OFFSET(PublishCurrentVehicleLocation, _impl_.vehiclemessageheading_)>(
+ reinterpret_cast<char*>(&_impl_.vehiclemessageheading_),
+ reinterpret_cast<char*>(&other->_impl_.vehiclemessageheading_));
+}
+
+::PROTOBUF_NAMESPACE_ID::Metadata PublishCurrentVehicleLocation::GetMetadata() const {
+ return ::_pbi::AssignDescriptors(
+ &descriptor_table_messages_2fVehiclePrecisionLocation_2eproto_getter, &descriptor_table_messages_2fVehiclePrecisionLocation_2eproto_once,
+ file_level_metadata_messages_2fVehiclePrecisionLocation_2eproto[2]);
+}
// @@protoc_insertion_point(namespace_scope)
} // namespace messages
PROTOBUF_NAMESPACE_OPEN
@@ -538,6 +928,10 @@ template<> PROTOBUF_NOINLINE ::messages::ResponseCurrentVehicleLocation*
Arena::CreateMaybeMessage< ::messages::ResponseCurrentVehicleLocation >(Arena* arena) {
return Arena::CreateMessageInternal< ::messages::ResponseCurrentVehicleLocation >(arena);
}
+template<> PROTOBUF_NOINLINE ::messages::PublishCurrentVehicleLocation*
+Arena::CreateMaybeMessage< ::messages::PublishCurrentVehicleLocation >(Arena* arena) {
+ return Arena::CreateMessageInternal< ::messages::PublishCurrentVehicleLocation >(arena);
+}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include "google/protobuf/port_undef.inc"