4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fgps_5fsensor_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fgps_5fsensor_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/unknown_field_set.h>
33 #include "gz/msgs/sensor_noise.pb.h"
34 #include "gz/msgs/header.pb.h"
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fgps_5fsensor_2eproto GZ_MSGS_VISIBLE
41 static const ::google::protobuf::internal::ParseTableField entries[];
42 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
43 static const ::google::protobuf::internal::ParseTable schema[2];
44 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
45 static const ::google::protobuf::internal::SerializationTable serialization_table[];
46 static const ::google::protobuf::uint32 offsets[];
53 class GPSSensorDefaultTypeInternal;
55 class GPSSensor_Sensing;
56 class GPSSensor_SensingDefaultTypeInternal;
62 template<> GZ_MSGS_VISIBLE ::gz::msgs::GPSSensor* Arena::CreateMaybeMessage<::gz::msgs::GPSSensor>(Arena*);
63 template<> GZ_MSGS_VISIBLE ::gz::msgs::GPSSensor_Sensing* Arena::CreateMaybeMessage<::gz::msgs::GPSSensor_Sensing>(Arena*);
85 *
this = ::std::move(from);
88 inline GPSSensor_Sensing& operator=(GPSSensor_Sensing&& from) noexcept {
89 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
90 if (
this != &from) InternalSwap(&from);
97 static const ::google::protobuf::Descriptor* descriptor();
98 static const GPSSensor_Sensing& default_instance();
100 static void InitAsDefaultInstance();
105 static constexpr
int kIndexInFileMessages =
116 return CreateMaybeMessage<GPSSensor_Sensing>(NULL);
120 return CreateMaybeMessage<GPSSensor_Sensing>(arena);
122 void CopyFrom(const ::google::protobuf::Message& from)
final;
123 void MergeFrom(const ::google::protobuf::Message& from)
final;
127 bool IsInitialized() const final;
129 size_t ByteSizeLong() const final;
130 bool MergePartialFromCodedStream(
131 ::
google::protobuf::io::CodedInputStream* input) final;
132 void SerializeWithCachedSizes(
133 ::
google::protobuf::io::CodedOutputStream* output) const final;
134 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
135 bool deterministic, ::
google::protobuf::uint8* target) const final;
136 int GetCachedSize() const final {
return _cached_size_.Get(); }
141 void SetCachedSize(
int size)
const final;
144 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
147 inline void* MaybeArenaPtr()
const {
152 ::google::protobuf::Metadata GetMetadata() const final;
159 bool has_horizontal_noise() const;
160 void clear_horizontal_noise();
161 static const
int kHorizontalNoiseFieldNumber = 1;
163 const ::
gz::msgs::
SensorNoise& _internal_horizontal_noise() const;
168 void set_allocated_horizontal_noise(::
gz::msgs::
SensorNoise* horizontal_noise);
171 bool has_vertical_noise() const;
172 void clear_vertical_noise();
173 static const
int kVerticalNoiseFieldNumber = 2;
175 const ::
gz::msgs::
SensorNoise& _internal_vertical_noise() const;
180 void set_allocated_vertical_noise(::
gz::msgs::
SensorNoise* vertical_noise);
185 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
188 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
207 *
this = ::std::move(from);
210 inline GPSSensor& operator=(GPSSensor&& from) noexcept {
211 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
212 if (
this != &from) InternalSwap(&from);
219 static const ::google::protobuf::Descriptor* descriptor();
220 static const GPSSensor& default_instance();
222 static void InitAsDefaultInstance();
224 return reinterpret_cast<const GPSSensor*
>(
227 static constexpr
int kIndexInFileMessages =
238 return CreateMaybeMessage<GPSSensor>(NULL);
242 return CreateMaybeMessage<GPSSensor>(arena);
244 void CopyFrom(const ::google::protobuf::Message& from)
final;
245 void MergeFrom(const ::google::protobuf::Message& from)
final;
249 bool IsInitialized() const final;
251 size_t ByteSizeLong() const final;
252 bool MergePartialFromCodedStream(
253 ::
google::protobuf::io::CodedInputStream* input) final;
254 void SerializeWithCachedSizes(
255 ::
google::protobuf::io::CodedOutputStream* output) const final;
256 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
257 bool deterministic, ::
google::protobuf::uint8* target) const final;
258 int GetCachedSize() const final {
return _cached_size_.Get(); }
263 void SetCachedSize(
int size)
const final;
266 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
269 inline void* MaybeArenaPtr()
const {
274 ::google::protobuf::Metadata GetMetadata() const final;
283 bool has_header() const;
285 static const
int kHeaderFieldNumber = 1;
287 const ::
gz::msgs::
Header& _internal_header() const;
289 const ::
gz::msgs::
Header& header() const;
290 ::
gz::msgs::
Header* release_header();
291 ::
gz::msgs::
Header* mutable_header();
292 void set_allocated_header(::
gz::msgs::
Header* header);
295 bool has_position() const;
296 void clear_position();
297 static const
int kPositionFieldNumber = 2;
307 bool has_velocity() const;
308 void clear_velocity();
309 static const
int kVelocityFieldNumber = 3;
321 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
325 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
334 #pragma GCC diagnostic push
335 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
341 return this != internal_default_instance() && horizontal_noise_ != NULL;
343 inline const ::gz::msgs::SensorNoise& GPSSensor_Sensing::_internal_horizontal_noise()
const {
344 return *horizontal_noise_;
347 const ::gz::msgs::SensorNoise* p = horizontal_noise_;
356 horizontal_noise_ = NULL;
361 if (horizontal_noise_ == NULL) {
362 auto* p = CreateMaybeMessage<::gz::msgs::SensorNoise>(GetArenaNoVirtual());
363 horizontal_noise_ = p;
366 return horizontal_noise_;
369 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
370 if (message_arena == NULL) {
371 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(horizontal_noise_);
373 if (horizontal_noise) {
374 ::google::protobuf::Arena* submessage_arena = NULL;
375 if (message_arena != submessage_arena) {
376 horizontal_noise = ::google::protobuf::internal::GetOwnedMessage(
377 message_arena, horizontal_noise, submessage_arena);
383 horizontal_noise_ = horizontal_noise;
389 return this != internal_default_instance() && vertical_noise_ != NULL;
391 inline const ::gz::msgs::SensorNoise& GPSSensor_Sensing::_internal_vertical_noise()
const {
392 return *vertical_noise_;
395 const ::gz::msgs::SensorNoise* p = vertical_noise_;
404 vertical_noise_ = NULL;
409 if (vertical_noise_ == NULL) {
410 auto* p = CreateMaybeMessage<::gz::msgs::SensorNoise>(GetArenaNoVirtual());
414 return vertical_noise_;
417 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
418 if (message_arena == NULL) {
419 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(vertical_noise_);
421 if (vertical_noise) {
422 ::google::protobuf::Arena* submessage_arena = NULL;
423 if (message_arena != submessage_arena) {
424 vertical_noise = ::google::protobuf::internal::GetOwnedMessage(
425 message_arena, vertical_noise, submessage_arena);
431 vertical_noise_ = vertical_noise;
441 return this != internal_default_instance() && header_ != NULL;
443 inline const ::gz::msgs::Header& GPSSensor::_internal_header()
const {
447 const ::gz::msgs::Header* p = header_;
461 if (header_ == NULL) {
462 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
469 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
470 if (message_arena == NULL) {
471 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
474 ::google::protobuf::Arena* submessage_arena = NULL;
475 if (message_arena != submessage_arena) {
476 header = ::google::protobuf::internal::GetOwnedMessage(
477 message_arena, header, submessage_arena);
489 return this != internal_default_instance() && position_ != NULL;
492 if (GetArenaNoVirtual() == NULL && position_ != NULL) {
497 inline const ::gz::msgs::GPSSensor_Sensing& GPSSensor::_internal_position()
const {
501 const ::gz::msgs::GPSSensor_Sensing* p = position_;
515 if (position_ == NULL) {
516 auto* p = CreateMaybeMessage<::gz::msgs::GPSSensor_Sensing>(GetArenaNoVirtual());
523 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
524 if (message_arena == NULL) {
528 ::google::protobuf::Arena* submessage_arena = NULL;
529 if (message_arena != submessage_arena) {
530 position = ::google::protobuf::internal::GetOwnedMessage(
531 message_arena, position, submessage_arena);
537 position_ = position;
543 return this != internal_default_instance() && velocity_ != NULL;
546 if (GetArenaNoVirtual() == NULL && velocity_ != NULL) {
551 inline const ::gz::msgs::GPSSensor_Sensing& GPSSensor::_internal_velocity()
const {
555 const ::gz::msgs::GPSSensor_Sensing* p = velocity_;
569 if (velocity_ == NULL) {
570 auto* p = CreateMaybeMessage<::gz::msgs::GPSSensor_Sensing>(GetArenaNoVirtual());
577 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
578 if (message_arena == NULL) {
582 ::google::protobuf::Arena* submessage_arena = NULL;
583 if (message_arena != submessage_arena) {
584 velocity = ::google::protobuf::internal::GetOwnedMessage(
585 message_arena, velocity, submessage_arena);
591 velocity_ = velocity;
596 #pragma GCC diagnostic pop
608 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fgps_5fsensor_2eproto