aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/cpp/messages/VehicleMessageHeader.pb.cc
blob: b858bb70163e7c9305a3a9aa1d4e76a7549a5789 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: messages/VehicleMessageHeader.proto

#include "messages/VehicleMessageHeader.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 VehicleMessageHeading::VehicleMessageHeading(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.vehicle_device_id_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.vehicle_identity_)*/nullptr
  , /*decltype(_impl_.location_)*/nullptr
  , /*decltype(_impl_.message_id_)*/ 0

  , /*decltype(_impl_.correlation_id_)*/ 0

  , /*decltype(_impl_.message_timestamp_)*/ ::int64_t{0}

  , /*decltype(_impl_.protocol_version_)*/ 0

  , /*decltype(_impl_._cached_size_)*/{}} {}
struct VehicleMessageHeadingDefaultTypeInternal {
  PROTOBUF_CONSTEXPR VehicleMessageHeadingDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~VehicleMessageHeadingDefaultTypeInternal() {}
  union {
    VehicleMessageHeading _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VehicleMessageHeadingDefaultTypeInternal _VehicleMessageHeading_default_instance_;
PROTOBUF_CONSTEXPR lat_long::lat_long(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.latitude_)*/ 0

  , /*decltype(_impl_.longitude_)*/ 0

  , /*decltype(_impl_._cached_size_)*/{}} {}
struct lat_longDefaultTypeInternal {
  PROTOBUF_CONSTEXPR lat_longDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~lat_longDefaultTypeInternal() {}
  union {
    lat_long _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 lat_longDefaultTypeInternal _lat_long_default_instance_;
}  // namespace messages
static ::_pb::Metadata file_level_metadata_messages_2fVehicleMessageHeader_2eproto[2];
static constexpr const ::_pb::EnumDescriptor**
    file_level_enum_descriptors_messages_2fVehicleMessageHeader_2eproto = nullptr;
static constexpr const ::_pb::ServiceDescriptor**
    file_level_service_descriptors_messages_2fVehicleMessageHeader_2eproto = nullptr;
const ::uint32_t TableStruct_messages_2fVehicleMessageHeader_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(
    protodesc_cold) = {
    ~0u,  // no _has_bits_
    PROTOBUF_FIELD_OFFSET(::messages::VehicleMessageHeading, _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::VehicleMessageHeading, _impl_.message_id_),
    PROTOBUF_FIELD_OFFSET(::messages::VehicleMessageHeading, _impl_.correlation_id_),
    PROTOBUF_FIELD_OFFSET(::messages::VehicleMessageHeading, _impl_.vehicle_identity_),
    PROTOBUF_FIELD_OFFSET(::messages::VehicleMessageHeading, _impl_.vehicle_device_id_),
    PROTOBUF_FIELD_OFFSET(::messages::VehicleMessageHeading, _impl_.message_timestamp_),
    PROTOBUF_FIELD_OFFSET(::messages::VehicleMessageHeading, _impl_.protocol_version_),
    PROTOBUF_FIELD_OFFSET(::messages::VehicleMessageHeading, _impl_.location_),
    ~0u,  // no _has_bits_
    PROTOBUF_FIELD_OFFSET(::messages::lat_long, _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::lat_long, _impl_.latitude_),
    PROTOBUF_FIELD_OFFSET(::messages::lat_long, _impl_.longitude_),
};

static const ::_pbi::MigrationSchema
    schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
        { 0, -1, -1, sizeof(::messages::VehicleMessageHeading)},
        { 15, -1, -1, sizeof(::messages::lat_long)},
};

static const ::_pb::Message* const file_default_instances[] = {
    &::messages::_VehicleMessageHeading_default_instance_._instance,
    &::messages::_lat_long_default_instance_._instance,
};
const char descriptor_table_protodef_messages_2fVehicleMessageHeader_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
    "\n#messages/VehicleMessageHeader.proto\022\010m"
    "essages\032\017vss/vspec.proto\"\366\001\n\025VehicleMess"
    "ageHeading\022\022\n\nmessage_id\030\001 \001(\005\022\026\n\016correl"
    "ation_id\030\002 \001(\005\022;\n\020vehicle_identity\030\003 \001(\013"
    "2!.vss.VehicleVehicleIdentification\022\031\n\021v"
    "ehicle_device_id\030\007 \001(\t\022\031\n\021message_timest"
    "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\006proto3"
};
static const ::_pbi::DescriptorTable* const descriptor_table_messages_2fVehicleMessageHeader_2eproto_deps[1] =
    {
        &::descriptor_table_vss_2fvspec_2eproto,
};
static ::absl::once_flag descriptor_table_messages_2fVehicleMessageHeader_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_messages_2fVehicleMessageHeader_2eproto = {
    false,
    false,
    370,
    descriptor_table_protodef_messages_2fVehicleMessageHeader_2eproto,
    "messages/VehicleMessageHeader.proto",
    &descriptor_table_messages_2fVehicleMessageHeader_2eproto_once,
    descriptor_table_messages_2fVehicleMessageHeader_2eproto_deps,
    1,
    2,
    schemas,
    file_default_instances,
    TableStruct_messages_2fVehicleMessageHeader_2eproto::offsets,
    file_level_metadata_messages_2fVehicleMessageHeader_2eproto,
    file_level_enum_descriptors_messages_2fVehicleMessageHeader_2eproto,
    file_level_service_descriptors_messages_2fVehicleMessageHeader_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_2fVehicleMessageHeader_2eproto_getter() {
  return &descriptor_table_messages_2fVehicleMessageHeader_2eproto;
}
// Force running AddDescriptors() at dynamic initialization time.
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_messages_2fVehicleMessageHeader_2eproto(&descriptor_table_messages_2fVehicleMessageHeader_2eproto);
namespace messages {
// ===================================================================

class VehicleMessageHeading::_Internal {
 public:
  static const ::vss::VehicleVehicleIdentification& vehicle_identity(const VehicleMessageHeading* msg);
  static const ::messages::lat_long& location(const VehicleMessageHeading* msg);
};

const ::vss::VehicleVehicleIdentification&
VehicleMessageHeading::_Internal::vehicle_identity(const VehicleMessageHeading* msg) {
  return *msg->_impl_.vehicle_identity_;
}
const ::messages::lat_long&
VehicleMessageHeading::_Internal::location(const VehicleMessageHeading* msg) {
  return *msg->_impl_.location_;
}
void VehicleMessageHeading::clear_vehicle_identity() {
  if (GetArenaForAllocation() == nullptr && _impl_.vehicle_identity_ != nullptr) {
    delete _impl_.vehicle_identity_;
  }
  _impl_.vehicle_identity_ = nullptr;
}
VehicleMessageHeading::VehicleMessageHeading(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:messages.VehicleMessageHeading)
}
VehicleMessageHeading::VehicleMessageHeading(const VehicleMessageHeading& from)
  : ::PROTOBUF_NAMESPACE_ID::Message() {
  VehicleMessageHeading* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.vehicle_device_id_) {}

    , decltype(_impl_.vehicle_identity_){nullptr}
    , decltype(_impl_.location_){nullptr}
    , decltype(_impl_.message_id_) {}

    , decltype(_impl_.correlation_id_) {}

    , decltype(_impl_.message_timestamp_) {}

    , decltype(_impl_.protocol_version_) {}

    , /*decltype(_impl_._cached_size_)*/{}};

  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  _impl_.vehicle_device_id_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.vehicle_device_id_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_vehicle_device_id().empty()) {
    _this->_impl_.vehicle_device_id_.Set(from._internal_vehicle_device_id(), _this->GetArenaForAllocation());
  }
  if (from._internal_has_vehicle_identity()) {
    _this->_impl_.vehicle_identity_ = new ::vss::VehicleVehicleIdentification(*from._impl_.vehicle_identity_);
  }
  if (from._internal_has_location()) {
    _this->_impl_.location_ = new ::messages::lat_long(*from._impl_.location_);
  }
  ::memcpy(&_impl_.message_id_, &from._impl_.message_id_,
    static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.protocol_version_) -
    reinterpret_cast<char*>(&_impl_.message_id_)) + sizeof(_impl_.protocol_version_));
  // @@protoc_insertion_point(copy_constructor:messages.VehicleMessageHeading)
}

inline void VehicleMessageHeading::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.vehicle_device_id_) {}

    , decltype(_impl_.vehicle_identity_){nullptr}
    , decltype(_impl_.location_){nullptr}
    , decltype(_impl_.message_id_) { 0 }

    , decltype(_impl_.correlation_id_) { 0 }

    , decltype(_impl_.message_timestamp_) { ::int64_t{0} }

    , decltype(_impl_.protocol_version_) { 0 }

    , /*decltype(_impl_._cached_size_)*/{}
  };
  _impl_.vehicle_device_id_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.vehicle_device_id_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}

VehicleMessageHeading::~VehicleMessageHeading() {
  // @@protoc_insertion_point(destructor:messages.VehicleMessageHeading)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void VehicleMessageHeading::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  _impl_.vehicle_device_id_.Destroy();
  if (this != internal_default_instance()) delete _impl_.vehicle_identity_;
  if (this != internal_default_instance()) delete _impl_.location_;
}

void VehicleMessageHeading::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void VehicleMessageHeading::Clear() {
// @@protoc_insertion_point(message_clear_start:messages.VehicleMessageHeading)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _impl_.vehicle_device_id_.ClearToEmpty();
  if (GetArenaForAllocation() == nullptr && _impl_.vehicle_identity_ != nullptr) {
    delete _impl_.vehicle_identity_;
  }
  _impl_.vehicle_identity_ = nullptr;
  if (GetArenaForAllocation() == nullptr && _impl_.location_ != nullptr) {
    delete _impl_.location_;
  }
  _impl_.location_ = nullptr;
  ::memset(&_impl_.message_id_, 0, static_cast<::size_t>(
      reinterpret_cast<char*>(&_impl_.protocol_version_) -
      reinterpret_cast<char*>(&_impl_.message_id_)) + sizeof(_impl_.protocol_version_));
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* VehicleMessageHeading::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // int32 message_id = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
          _impl_.message_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // int32 correlation_id = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
          _impl_.correlation_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // .vss.VehicleVehicleIdentification vehicle_identity = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
          ptr = ctx->ParseMessage(_internal_mutable_vehicle_identity(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // int64 message_timestamp = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
          _impl_.message_timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // double protocol_version = 5;
      case 5:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 41)) {
          _impl_.protocol_version_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
          ptr += sizeof(double);
        } else {
          goto handle_unusual;
        }
        continue;
      // .messages.lat_long location = 6;
      case 6:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
          ptr = ctx->ParseMessage(_internal_mutable_location(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // string vehicle_device_id = 7;
      case 7:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) {
          auto str = _internal_mutable_vehicle_device_id();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, "messages.VehicleMessageHeading.vehicle_device_id"));
        } 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* VehicleMessageHeading::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:messages.VehicleMessageHeading)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // int32 message_id = 1;
  if (this->_internal_message_id() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(
        1, this->_internal_message_id(), target);
  }

  // int32 correlation_id = 2;
  if (this->_internal_correlation_id() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(
        2, this->_internal_correlation_id(), target);
  }

  // .vss.VehicleVehicleIdentification vehicle_identity = 3;
  if (this->_internal_has_vehicle_identity()) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(3, _Internal::vehicle_identity(this),
        _Internal::vehicle_identity(this).GetCachedSize(), target, stream);
  }

  // int64 message_timestamp = 4;
  if (this->_internal_message_timestamp() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt64ToArray(
        4, this->_internal_message_timestamp(), target);
  }

  // double protocol_version = 5;
  static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size.");
  double tmp_protocol_version = this->_internal_protocol_version();
  ::uint64_t raw_protocol_version;
  memcpy(&raw_protocol_version, &tmp_protocol_version, sizeof(tmp_protocol_version));
  if (raw_protocol_version != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteDoubleToArray(
        5, this->_internal_protocol_version(), target);
  }

  // .messages.lat_long location = 6;
  if (this->_internal_has_location()) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(6, _Internal::location(this),
        _Internal::location(this).GetCachedSize(), target, stream);
  }

  // string vehicle_device_id = 7;
  if (!this->_internal_vehicle_device_id().empty()) {
    const std::string& _s = this->_internal_vehicle_device_id();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "messages.VehicleMessageHeading.vehicle_device_id");
    target = stream->WriteStringMaybeAliased(7, _s, target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:messages.VehicleMessageHeading)
  return target;
}

::size_t VehicleMessageHeading::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:messages.VehicleMessageHeading)
  ::size_t total_size = 0;

  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // string vehicle_device_id = 7;
  if (!this->_internal_vehicle_device_id().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_vehicle_device_id());
  }

  // .vss.VehicleVehicleIdentification vehicle_identity = 3;
  if (this->_internal_has_vehicle_identity()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
        *_impl_.vehicle_identity_);
  }

  // .messages.lat_long location = 6;
  if (this->_internal_has_location()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
        *_impl_.location_);
  }

  // int32 message_id = 1;
  if (this->_internal_message_id() != 0) {
    total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
        this->_internal_message_id());
  }

  // int32 correlation_id = 2;
  if (this->_internal_correlation_id() != 0) {
    total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
        this->_internal_correlation_id());
  }

  // int64 message_timestamp = 4;
  if (this->_internal_message_timestamp() != 0) {
    total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
        this->_internal_message_timestamp());
  }

  // double protocol_version = 5;
  static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size.");
  double tmp_protocol_version = this->_internal_protocol_version();
  ::uint64_t raw_protocol_version;
  memcpy(&raw_protocol_version, &tmp_protocol_version, sizeof(tmp_protocol_version));
  if (raw_protocol_version != 0) {
    total_size += 9;
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}

const ::PROTOBUF_NAMESPACE_ID::Message::ClassData VehicleMessageHeading::_class_data_ = {
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
    VehicleMessageHeading::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*VehicleMessageHeading::GetClassData() const { return &_class_data_; }


void VehicleMessageHeading::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  auto* const _this = static_cast<VehicleMessageHeading*>(&to_msg);
  auto& from = static_cast<const VehicleMessageHeading&>(from_msg);
  // @@protoc_insertion_point(class_specific_merge_from_start:messages.VehicleMessageHeading)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  if (!from._internal_vehicle_device_id().empty()) {
    _this->_internal_set_vehicle_device_id(from._internal_vehicle_device_id());
  }
  if (from._internal_has_vehicle_identity()) {
    _this->_internal_mutable_vehicle_identity()->::vss::VehicleVehicleIdentification::MergeFrom(
        from._internal_vehicle_identity());
  }
  if (from._internal_has_location()) {
    _this->_internal_mutable_location()->::messages::lat_long::MergeFrom(
        from._internal_location());
  }
  if (from._internal_message_id() != 0) {
    _this->_internal_set_message_id(from._internal_message_id());
  }
  if (from._internal_correlation_id() != 0) {
    _this->_internal_set_correlation_id(from._internal_correlation_id());
  }
  if (from._internal_message_timestamp() != 0) {
    _this->_internal_set_message_timestamp(from._internal_message_timestamp());
  }
  static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size.");
  double tmp_protocol_version = from._internal_protocol_version();
  ::uint64_t raw_protocol_version;
  memcpy(&raw_protocol_version, &tmp_protocol_version, sizeof(tmp_protocol_version));
  if (raw_protocol_version != 0) {
    _this->_internal_set_protocol_version(from._internal_protocol_version());
  }
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}

void VehicleMessageHeading::CopyFrom(const VehicleMessageHeading& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:messages.VehicleMessageHeading)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool VehicleMessageHeading::IsInitialized() const {
  return true;
}

void VehicleMessageHeading::InternalSwap(VehicleMessageHeading* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.vehicle_device_id_, lhs_arena,
                                       &other->_impl_.vehicle_device_id_, rhs_arena);
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
      PROTOBUF_FIELD_OFFSET(VehicleMessageHeading, _impl_.protocol_version_)
      + sizeof(VehicleMessageHeading::_impl_.protocol_version_)
      - PROTOBUF_FIELD_OFFSET(VehicleMessageHeading, _impl_.vehicle_identity_)>(
          reinterpret_cast<char*>(&_impl_.vehicle_identity_),
          reinterpret_cast<char*>(&other->_impl_.vehicle_identity_));
}

::PROTOBUF_NAMESPACE_ID::Metadata VehicleMessageHeading::GetMetadata() const {
  return ::_pbi::AssignDescriptors(
      &descriptor_table_messages_2fVehicleMessageHeader_2eproto_getter, &descriptor_table_messages_2fVehicleMessageHeader_2eproto_once,
      file_level_metadata_messages_2fVehicleMessageHeader_2eproto[0]);
}
// ===================================================================

class lat_long::_Internal {
 public:
};

lat_long::lat_long(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:messages.lat_long)
}
lat_long::lat_long(const lat_long& from)
  : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
      from._internal_metadata_);
  // @@protoc_insertion_point(copy_constructor:messages.lat_long)
}

inline void lat_long::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.latitude_) { 0 }

    , decltype(_impl_.longitude_) { 0 }

    , /*decltype(_impl_._cached_size_)*/{}
  };
}

lat_long::~lat_long() {
  // @@protoc_insertion_point(destructor:messages.lat_long)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void lat_long::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
}

void lat_long::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void lat_long::Clear() {
// @@protoc_insertion_point(message_clear_start:messages.lat_long)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  ::memset(&_impl_.latitude_, 0, static_cast<::size_t>(
      reinterpret_cast<char*>(&_impl_.longitude_) -
      reinterpret_cast<char*>(&_impl_.latitude_)) + sizeof(_impl_.longitude_));
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* lat_long::_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) {
      // double latitude = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 9)) {
          _impl_.latitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
          ptr += sizeof(double);
        } else {
          goto handle_unusual;
        }
        continue;
      // double longitude = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 17)) {
          _impl_.longitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
          ptr += sizeof(double);
        } 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* lat_long::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:messages.lat_long)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // double latitude = 1;
  static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size.");
  double tmp_latitude = this->_internal_latitude();
  ::uint64_t raw_latitude;
  memcpy(&raw_latitude, &tmp_latitude, sizeof(tmp_latitude));
  if (raw_latitude != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteDoubleToArray(
        1, this->_internal_latitude(), target);
  }

  // double longitude = 2;
  static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size.");
  double tmp_longitude = this->_internal_longitude();
  ::uint64_t raw_longitude;
  memcpy(&raw_longitude, &tmp_longitude, sizeof(tmp_longitude));
  if (raw_longitude != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteDoubleToArray(
        2, this->_internal_longitude(), target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:messages.lat_long)
  return target;
}

::size_t lat_long::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:messages.lat_long)
  ::size_t total_size = 0;

  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // double latitude = 1;
  static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size.");
  double tmp_latitude = this->_internal_latitude();
  ::uint64_t raw_latitude;
  memcpy(&raw_latitude, &tmp_latitude, sizeof(tmp_latitude));
  if (raw_latitude != 0) {
    total_size += 9;
  }

  // double longitude = 2;
  static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size.");
  double tmp_longitude = this->_internal_longitude();
  ::uint64_t raw_longitude;
  memcpy(&raw_longitude, &tmp_longitude, sizeof(tmp_longitude));
  if (raw_longitude != 0) {
    total_size += 9;
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}

const ::PROTOBUF_NAMESPACE_ID::Message::ClassData lat_long::_class_data_ = {
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
    lat_long::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*lat_long::GetClassData() const { return &_class_data_; }


void lat_long::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  auto* const _this = static_cast<lat_long*>(&to_msg);
  auto& from = static_cast<const lat_long&>(from_msg);
  // @@protoc_insertion_point(class_specific_merge_from_start:messages.lat_long)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size.");
  double tmp_latitude = from._internal_latitude();
  ::uint64_t raw_latitude;
  memcpy(&raw_latitude, &tmp_latitude, sizeof(tmp_latitude));
  if (raw_latitude != 0) {
    _this->_internal_set_latitude(from._internal_latitude());
  }
  static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size.");
  double tmp_longitude = from._internal_longitude();
  ::uint64_t raw_longitude;
  memcpy(&raw_longitude, &tmp_longitude, sizeof(tmp_longitude));
  if (raw_longitude != 0) {
    _this->_internal_set_longitude(from._internal_longitude());
  }
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}

void lat_long::CopyFrom(const lat_long& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:messages.lat_long)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool lat_long::IsInitialized() const {
  return true;
}

void lat_long::InternalSwap(lat_long* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
      PROTOBUF_FIELD_OFFSET(lat_long, _impl_.longitude_)
      + sizeof(lat_long::_impl_.longitude_)
      - PROTOBUF_FIELD_OFFSET(lat_long, _impl_.latitude_)>(
          reinterpret_cast<char*>(&_impl_.latitude_),
          reinterpret_cast<char*>(&other->_impl_.latitude_));
}

::PROTOBUF_NAMESPACE_ID::Metadata lat_long::GetMetadata() const {
  return ::_pbi::AssignDescriptors(
      &descriptor_table_messages_2fVehicleMessageHeader_2eproto_getter, &descriptor_table_messages_2fVehicleMessageHeader_2eproto_once,
      file_level_metadata_messages_2fVehicleMessageHeader_2eproto[1]);
}
// @@protoc_insertion_point(namespace_scope)
}  // namespace messages
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::messages::VehicleMessageHeading*
Arena::CreateMaybeMessage< ::messages::VehicleMessageHeading >(Arena* arena) {
  return Arena::CreateMessageInternal< ::messages::VehicleMessageHeading >(arena);
}
template<> PROTOBUF_NOINLINE ::messages::lat_long*
Arena::CreateMaybeMessage< ::messages::lat_long >(Arena* arena) {
  return Arena::CreateMessageInternal< ::messages::lat_long >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include "google/protobuf/port_undef.inc"