4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fsensor_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fsensor_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/altimeter_sensor.pb.h"
34 #include "gz/msgs/camerasensor.pb.h"
35 #include "gz/msgs/contactsensor.pb.h"
36 #include "gz/msgs/air_pressure_sensor.pb.h"
37 #include "gz/msgs/gps_sensor.pb.h"
38 #include "gz/msgs/header.pb.h"
39 #include "gz/msgs/imu_sensor.pb.h"
40 #include "gz/msgs/lidar_sensor.pb.h"
41 #include "gz/msgs/logical_camera_sensor.pb.h"
42 #include "gz/msgs/magnetometer_sensor.pb.h"
43 #include "gz/msgs/pose.pb.h"
45 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fsensor_2eproto GZ_MSGS_VISIBLE
50 static const ::google::protobuf::internal::ParseTableField entries[];
51 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
52 static const ::google::protobuf::internal::ParseTable schema[1];
53 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
54 static const ::google::protobuf::internal::SerializationTable serialization_table[];
55 static const ::google::protobuf::uint32 offsets[];
62 class SensorDefaultTypeInternal;
68 template<> GZ_MSGS_VISIBLE ::gz::msgs::Sensor* Arena::CreateMaybeMessage<::gz::msgs::Sensor>(Arena*);
76 class GZ_MSGS_VISIBLE
Sensor :
public ::google::protobuf::Message {
90 *
this = ::std::move(from);
93 inline Sensor& operator=(Sensor&& from) noexcept {
94 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
95 if (
this != &from) InternalSwap(&from);
102 static const ::google::protobuf::Descriptor* descriptor();
103 static const Sensor& default_instance();
105 static void InitAsDefaultInstance();
107 return reinterpret_cast<const Sensor*
>(
110 static constexpr
int kIndexInFileMessages =
121 return CreateMaybeMessage<Sensor>(NULL);
124 Sensor*
New(::google::protobuf::Arena* arena)
const final {
125 return CreateMaybeMessage<Sensor>(arena);
127 void CopyFrom(const ::google::protobuf::Message& from)
final;
128 void MergeFrom(const ::google::protobuf::Message& from)
final;
129 void CopyFrom(
const Sensor& from);
130 void MergeFrom(
const Sensor& from);
132 bool IsInitialized() const final;
134 size_t ByteSizeLong() const final;
135 bool MergePartialFromCodedStream(
136 ::
google::protobuf::io::CodedInputStream* input) final;
137 void SerializeWithCachedSizes(
138 ::
google::protobuf::io::CodedOutputStream* output) const final;
139 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
140 bool deterministic, ::
google::protobuf::uint8* target) const final;
141 int GetCachedSize() const final {
return _cached_size_.Get(); }
146 void SetCachedSize(
int size)
const final;
147 void InternalSwap(
Sensor* other);
149 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
152 inline void* MaybeArenaPtr()
const {
157 ::google::protobuf::Metadata GetMetadata() const final;
165 static const
int kNameFieldNumber = 2;
166 const ::
std::
string& name() const;
167 void set_name(const ::
std::
string& value);
171 void set_name(
const char* value);
172 void set_name(
const char* value,
size_t size);
179 static const int kParentFieldNumber = 4;
180 const ::std::string& parent()
const;
181 void set_parent(const ::std::string& value);
185 void set_parent(
const char* value);
186 void set_parent(
const char* value,
size_t size);
193 static const int kTypeFieldNumber = 6;
194 const ::std::string& type()
const;
195 void set_type(const ::std::string& value);
199 void set_type(
const char* value);
200 void set_type(
const char* value,
size_t size);
207 static const int kTopicFieldNumber = 13;
208 const ::std::string& topic()
const;
209 void set_topic(const ::std::string& value);
213 void set_topic(
const char* value);
214 void set_topic(
const char* value,
size_t size);
220 bool has_header()
const;
222 static const int kHeaderFieldNumber = 1;
224 const ::gz::msgs::Header& _internal_header()
const;
226 const ::gz::msgs::Header& header()
const;
232 bool has_pose()
const;
234 static const int kPoseFieldNumber = 9;
236 const ::gz::msgs::Pose& _internal_pose()
const;
238 const ::gz::msgs::Pose& pose()
const;
244 bool has_camera()
const;
246 static const int kCameraFieldNumber = 10;
248 const ::gz::msgs::CameraSensor& _internal_camera()
const;
250 const ::gz::msgs::CameraSensor& camera()
const;
256 bool has_contact()
const;
257 void clear_contact();
258 static const int kContactFieldNumber = 11;
260 const ::gz::msgs::ContactSensor& _internal_contact()
const;
262 const ::gz::msgs::ContactSensor& contact()
const;
268 bool has_logical_camera()
const;
269 void clear_logical_camera();
270 static const int kLogicalCameraFieldNumber = 14;
272 const ::gz::msgs::LogicalCameraSensor& _internal_logical_camera()
const;
274 const ::gz::msgs::LogicalCameraSensor& logical_camera()
const;
280 bool has_gps()
const;
282 static const int kGpsFieldNumber = 15;
284 const ::gz::msgs::GPSSensor& _internal_gps()
const;
286 const ::gz::msgs::GPSSensor& gps()
const;
292 bool has_imu()
const;
294 static const int kImuFieldNumber = 16;
296 const ::gz::msgs::IMUSensor& _internal_imu()
const;
298 const ::gz::msgs::IMUSensor& imu()
const;
304 bool has_magnetometer()
const;
305 void clear_magnetometer();
306 static const int kMagnetometerFieldNumber = 17;
308 const ::gz::msgs::MagnetometerSensor& _internal_magnetometer()
const;
310 const ::gz::msgs::MagnetometerSensor& magnetometer()
const;
316 bool has_altimeter()
const;
317 void clear_altimeter();
318 static const int kAltimeterFieldNumber = 18;
320 const ::gz::msgs::AltimeterSensor& _internal_altimeter()
const;
322 const ::gz::msgs::AltimeterSensor& altimeter()
const;
328 bool has_air_pressure()
const;
329 void clear_air_pressure();
330 static const int kAirPressureFieldNumber = 19;
332 const ::gz::msgs::AirPressureSensor& _internal_air_pressure()
const;
334 const ::gz::msgs::AirPressureSensor& air_pressure()
const;
340 bool has_lidar()
const;
342 static const int kLidarFieldNumber = 20;
344 const ::gz::msgs::LidarSensor& _internal_lidar()
const;
346 const ::gz::msgs::LidarSensor& lidar()
const;
353 static const int kIdFieldNumber = 3;
354 ::google::protobuf::uint32 id()
const;
355 void set_id(::google::protobuf::uint32 value);
358 void clear_parent_id();
359 static const int kParentIdFieldNumber = 5;
360 ::google::protobuf::uint32 parent_id()
const;
361 void set_parent_id(::google::protobuf::uint32 value);
364 void clear_update_rate();
365 static const int kUpdateRateFieldNumber = 8;
366 double update_rate()
const;
367 void set_update_rate(
double value);
370 void clear_always_on();
371 static const int kAlwaysOnFieldNumber = 7;
372 bool always_on()
const;
373 void set_always_on(
bool value);
376 void clear_visualize();
377 static const int kVisualizeFieldNumber = 12;
378 bool visualize()
const;
379 void set_visualize(
bool value);
384 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
385 ::google::protobuf::internal::ArenaStringPtr name_;
386 ::google::protobuf::internal::ArenaStringPtr parent_;
387 ::google::protobuf::internal::ArenaStringPtr type_;
388 ::google::protobuf::internal::ArenaStringPtr topic_;
400 ::google::protobuf::uint32 id_;
401 ::google::protobuf::uint32 parent_id_;
405 mutable ::google::protobuf::internal::CachedSize _cached_size_;
406 friend struct ::protobuf_gz_2fmsgs_2fsensor_2eproto::TableStruct;
414 #pragma GCC diagnostic push
415 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
423 inline const ::gz::msgs::Header& Sensor::_internal_header()
const {
427 const ::gz::msgs::Header* p = header_;
441 if (header_ == NULL) {
442 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
449 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
450 if (message_arena == NULL) {
451 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
454 ::google::protobuf::Arena* submessage_arena = NULL;
455 if (message_arena != submessage_arena) {
456 header = ::google::protobuf::internal::GetOwnedMessage(
457 message_arena,
header, submessage_arena);
469 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
473 return name_.GetNoArena();
477 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
484 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
489 GOOGLE_DCHECK(value != NULL);
491 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
496 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
497 ::
std::string(
reinterpret_cast<const char*
>(value), size));
503 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
508 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
516 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name);
536 parent_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
540 return parent_.GetNoArena();
544 parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
551 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
556 GOOGLE_DCHECK(value != NULL);
558 parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
563 parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
564 ::
std::string(
reinterpret_cast<const char*
>(value), size));
570 return parent_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
575 return parent_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
583 parent_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
parent);
603 type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
607 return type_.GetNoArena();
611 type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
618 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
623 GOOGLE_DCHECK(value != NULL);
625 type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
630 type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
631 ::
std::string(
reinterpret_cast<const char*
>(value), size));
637 return type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
642 return type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
650 type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
type);
678 update_rate_ = value;
686 inline const ::gz::msgs::Pose& Sensor::_internal_pose()
const {
690 const ::gz::msgs::Pose* p = pose_;
692 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::Pose*
>(
705 auto* p = CreateMaybeMessage<::gz::msgs::Pose>(GetArenaNoVirtual());
712 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
713 if (message_arena == NULL) {
714 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(pose_);
717 ::google::protobuf::Arena* submessage_arena = NULL;
718 if (message_arena != submessage_arena) {
719 pose = ::google::protobuf::internal::GetOwnedMessage(
720 message_arena,
pose, submessage_arena);
734 inline const ::gz::msgs::CameraSensor& Sensor::_internal_camera()
const {
738 const ::gz::msgs::CameraSensor* p = camera_;
752 if (camera_ == NULL) {
753 auto* p = CreateMaybeMessage<::gz::msgs::CameraSensor>(GetArenaNoVirtual());
760 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
761 if (message_arena == NULL) {
762 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(camera_);
765 ::google::protobuf::Arena* submessage_arena = NULL;
766 if (message_arena != submessage_arena) {
767 camera = ::google::protobuf::internal::GetOwnedMessage(
768 message_arena,
camera, submessage_arena);
782 inline const ::gz::msgs::ContactSensor& Sensor::_internal_contact()
const {
786 const ::gz::msgs::ContactSensor* p = contact_;
800 if (contact_ == NULL) {
801 auto* p = CreateMaybeMessage<::gz::msgs::ContactSensor>(GetArenaNoVirtual());
808 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
809 if (message_arena == NULL) {
810 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(contact_);
813 ::google::protobuf::Arena* submessage_arena = NULL;
814 if (message_arena != submessage_arena) {
815 contact = ::google::protobuf::internal::GetOwnedMessage(
816 message_arena,
contact, submessage_arena);
842 topic_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
846 return topic_.GetNoArena();
850 topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
857 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
862 GOOGLE_DCHECK(value != NULL);
864 topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
869 topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
870 ::
std::string(
reinterpret_cast<const char*
>(value), size));
876 return topic_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
881 return topic_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
889 topic_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
topic);
897 inline const ::gz::msgs::LogicalCameraSensor& Sensor::_internal_logical_camera()
const {
898 return *logical_camera_;
901 const ::gz::msgs::LogicalCameraSensor* p = logical_camera_;
910 logical_camera_ = NULL;
915 if (logical_camera_ == NULL) {
916 auto* p = CreateMaybeMessage<::gz::msgs::LogicalCameraSensor>(GetArenaNoVirtual());
920 return logical_camera_;
923 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
924 if (message_arena == NULL) {
925 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(logical_camera_);
928 ::google::protobuf::Arena* submessage_arena = NULL;
929 if (message_arena != submessage_arena) {
945 inline const ::gz::msgs::GPSSensor& Sensor::_internal_gps()
const {
949 const ::gz::msgs::GPSSensor* p = gps_;
964 auto* p = CreateMaybeMessage<::gz::msgs::GPSSensor>(GetArenaNoVirtual());
971 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
972 if (message_arena == NULL) {
973 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(gps_);
976 ::google::protobuf::Arena* submessage_arena = NULL;
977 if (message_arena != submessage_arena) {
978 gps = ::google::protobuf::internal::GetOwnedMessage(
979 message_arena,
gps, submessage_arena);
993 inline const ::gz::msgs::IMUSensor& Sensor::_internal_imu()
const {
997 const ::gz::msgs::IMUSensor* p = imu_;
1012 auto* p = CreateMaybeMessage<::gz::msgs::IMUSensor>(GetArenaNoVirtual());
1019 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1020 if (message_arena == NULL) {
1021 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(imu_);
1024 ::google::protobuf::Arena* submessage_arena = NULL;
1025 if (message_arena != submessage_arena) {
1026 imu = ::google::protobuf::internal::GetOwnedMessage(
1027 message_arena,
imu, submessage_arena);
1041 inline const ::gz::msgs::MagnetometerSensor& Sensor::_internal_magnetometer()
const {
1042 return *magnetometer_;
1045 const ::gz::msgs::MagnetometerSensor* p = magnetometer_;
1054 magnetometer_ = NULL;
1059 if (magnetometer_ == NULL) {
1060 auto* p = CreateMaybeMessage<::gz::msgs::MagnetometerSensor>(GetArenaNoVirtual());
1064 return magnetometer_;
1067 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1068 if (message_arena == NULL) {
1069 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(magnetometer_);
1072 ::google::protobuf::Arena* submessage_arena = NULL;
1073 if (message_arena != submessage_arena) {
1074 magnetometer = ::google::protobuf::internal::GetOwnedMessage(
1089 inline const ::gz::msgs::AltimeterSensor& Sensor::_internal_altimeter()
const {
1093 const ::gz::msgs::AltimeterSensor* p = altimeter_;
1107 if (altimeter_ == NULL) {
1108 auto* p = CreateMaybeMessage<::gz::msgs::AltimeterSensor>(GetArenaNoVirtual());
1115 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1116 if (message_arena == NULL) {
1117 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(altimeter_);
1120 ::google::protobuf::Arena* submessage_arena = NULL;
1121 if (message_arena != submessage_arena) {
1122 altimeter = ::google::protobuf::internal::GetOwnedMessage(
1123 message_arena,
altimeter, submessage_arena);
1137 inline const ::gz::msgs::AirPressureSensor& Sensor::_internal_air_pressure()
const {
1138 return *air_pressure_;
1141 const ::gz::msgs::AirPressureSensor* p = air_pressure_;
1150 air_pressure_ = NULL;
1155 if (air_pressure_ == NULL) {
1156 auto* p = CreateMaybeMessage<::gz::msgs::AirPressureSensor>(GetArenaNoVirtual());
1160 return air_pressure_;
1163 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1164 if (message_arena == NULL) {
1165 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(air_pressure_);
1168 ::google::protobuf::Arena* submessage_arena = NULL;
1169 if (message_arena != submessage_arena) {
1170 air_pressure = ::google::protobuf::internal::GetOwnedMessage(
1185 inline const ::gz::msgs::LidarSensor& Sensor::_internal_lidar()
const {
1189 const ::gz::msgs::LidarSensor* p = lidar_;
1203 if (lidar_ == NULL) {
1204 auto* p = CreateMaybeMessage<::gz::msgs::LidarSensor>(GetArenaNoVirtual());
1211 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1212 if (message_arena == NULL) {
1213 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(lidar_);
1216 ::google::protobuf::Arena* submessage_arena = NULL;
1217 if (message_arena != submessage_arena) {
1218 lidar = ::google::protobuf::internal::GetOwnedMessage(
1219 message_arena,
lidar, submessage_arena);
1230 #pragma GCC diagnostic pop
1240 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fsensor_2eproto