4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2fsensor_2eproto
5 #define PROTOBUF_INCLUDED_ignition_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>
45 #pragma GCC system_header
48 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
51 #include <sys/sysmacros.h>
56 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2fsensor_2eproto IGNITION_MSGS_VISIBLE
61 static const ::google::protobuf::internal::ParseTableField entries[];
62 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
63 static const ::google::protobuf::internal::ParseTable schema[1];
64 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
65 static const ::google::protobuf::internal::SerializationTable serialization_table[];
66 static const ::google::protobuf::uint32 offsets[];
73 class SensorDefaultTypeInternal;
79 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Sensor* Arena::CreateMaybeMessage<::ignition::msgs::Sensor>(Arena*);
87 class IGNITION_MSGS_VISIBLE
Sensor :
public ::google::protobuf::Message {
101 *
this = ::std::move(from);
104 inline Sensor& operator=(Sensor&& from) noexcept {
105 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
106 if (
this != &from) InternalSwap(&from);
113 static const ::google::protobuf::Descriptor* descriptor();
114 static const Sensor& default_instance();
116 static void InitAsDefaultInstance();
118 return reinterpret_cast<const Sensor*
>(
121 static constexpr
int kIndexInFileMessages =
132 return CreateMaybeMessage<Sensor>(NULL);
135 Sensor*
New(::google::protobuf::Arena* arena)
const final {
136 return CreateMaybeMessage<Sensor>(arena);
138 void CopyFrom(const ::google::protobuf::Message& from)
final;
139 void MergeFrom(const ::google::protobuf::Message& from)
final;
140 void CopyFrom(
const Sensor& from);
141 void MergeFrom(
const Sensor& from);
143 bool IsInitialized() const final;
145 size_t ByteSizeLong() const final;
146 bool MergePartialFromCodedStream(
147 ::
google::protobuf::io::CodedInputStream* input) final;
148 void SerializeWithCachedSizes(
149 ::
google::protobuf::io::CodedOutputStream* output) const final;
150 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
151 bool deterministic, ::
google::protobuf::uint8* target) const final;
152 int GetCachedSize() const final {
return _cached_size_.Get(); }
157 void SetCachedSize(
int size)
const final;
158 void InternalSwap(
Sensor* other);
160 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
163 inline void* MaybeArenaPtr()
const {
168 ::google::protobuf::Metadata GetMetadata() const final;
176 static const
int kNameFieldNumber = 2;
177 const ::
std::
string& name() const;
178 void set_name(const ::
std::
string& value);
182 void set_name(
const char* value);
183 void set_name(
const char* value,
size_t size);
190 static const int kParentFieldNumber = 4;
191 const ::std::string& parent()
const;
192 void set_parent(const ::std::string& value);
196 void set_parent(
const char* value);
197 void set_parent(
const char* value,
size_t size);
204 static const int kTypeFieldNumber = 6;
205 const ::std::string& type()
const;
206 void set_type(const ::std::string& value);
210 void set_type(
const char* value);
211 void set_type(
const char* value,
size_t size);
218 static const int kTopicFieldNumber = 13;
219 const ::std::string& topic()
const;
220 void set_topic(const ::std::string& value);
224 void set_topic(
const char* value);
225 void set_topic(
const char* value,
size_t size);
231 bool has_header()
const;
233 static const int kHeaderFieldNumber = 1;
235 const ::ignition::msgs::Header& _internal_header()
const;
237 const ::ignition::msgs::Header& header()
const;
243 bool has_pose()
const;
245 static const int kPoseFieldNumber = 9;
247 const ::ignition::msgs::Pose& _internal_pose()
const;
249 const ::ignition::msgs::Pose& pose()
const;
255 bool has_camera()
const;
257 static const int kCameraFieldNumber = 10;
259 const ::ignition::msgs::CameraSensor& _internal_camera()
const;
261 const ::ignition::msgs::CameraSensor& camera()
const;
267 bool has_contact()
const;
268 void clear_contact();
269 static const int kContactFieldNumber = 11;
271 const ::ignition::msgs::ContactSensor& _internal_contact()
const;
273 const ::ignition::msgs::ContactSensor& contact()
const;
279 bool has_logical_camera()
const;
280 void clear_logical_camera();
281 static const int kLogicalCameraFieldNumber = 14;
283 const ::ignition::msgs::LogicalCameraSensor& _internal_logical_camera()
const;
285 const ::ignition::msgs::LogicalCameraSensor& logical_camera()
const;
291 bool has_gps()
const;
293 static const int kGpsFieldNumber = 15;
295 const ::ignition::msgs::GPSSensor& _internal_gps()
const;
297 const ::ignition::msgs::GPSSensor& gps()
const;
303 bool has_imu()
const;
305 static const int kImuFieldNumber = 16;
307 const ::ignition::msgs::IMUSensor& _internal_imu()
const;
309 const ::ignition::msgs::IMUSensor& imu()
const;
315 bool has_magnetometer()
const;
316 void clear_magnetometer();
317 static const int kMagnetometerFieldNumber = 17;
319 const ::ignition::msgs::MagnetometerSensor& _internal_magnetometer()
const;
321 const ::ignition::msgs::MagnetometerSensor& magnetometer()
const;
327 bool has_altimeter()
const;
328 void clear_altimeter();
329 static const int kAltimeterFieldNumber = 18;
331 const ::ignition::msgs::AltimeterSensor& _internal_altimeter()
const;
333 const ::ignition::msgs::AltimeterSensor& altimeter()
const;
339 bool has_air_pressure()
const;
340 void clear_air_pressure();
341 static const int kAirPressureFieldNumber = 19;
343 const ::ignition::msgs::AirPressureSensor& _internal_air_pressure()
const;
345 const ::ignition::msgs::AirPressureSensor& air_pressure()
const;
351 bool has_lidar()
const;
353 static const int kLidarFieldNumber = 20;
355 const ::ignition::msgs::LidarSensor& _internal_lidar()
const;
357 const ::ignition::msgs::LidarSensor& lidar()
const;
364 static const int kIdFieldNumber = 3;
365 ::google::protobuf::uint32 id()
const;
366 void set_id(::google::protobuf::uint32 value);
369 void clear_parent_id();
370 static const int kParentIdFieldNumber = 5;
371 ::google::protobuf::uint32 parent_id()
const;
372 void set_parent_id(::google::protobuf::uint32 value);
375 void clear_update_rate();
376 static const int kUpdateRateFieldNumber = 8;
377 double update_rate()
const;
378 void set_update_rate(
double value);
381 void clear_always_on();
382 static const int kAlwaysOnFieldNumber = 7;
383 bool always_on()
const;
384 void set_always_on(
bool value);
387 void clear_visualize();
388 static const int kVisualizeFieldNumber = 12;
389 bool visualize()
const;
390 void set_visualize(
bool value);
395 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
396 ::google::protobuf::internal::ArenaStringPtr name_;
397 ::google::protobuf::internal::ArenaStringPtr parent_;
398 ::google::protobuf::internal::ArenaStringPtr type_;
399 ::google::protobuf::internal::ArenaStringPtr topic_;
411 ::google::protobuf::uint32 id_;
412 ::google::protobuf::uint32 parent_id_;
416 mutable ::google::protobuf::internal::CachedSize _cached_size_;
417 friend struct ::protobuf_ignition_2fmsgs_2fsensor_2eproto::TableStruct;
425 #pragma GCC diagnostic push
426 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
434 inline const ::ignition::msgs::Header& Sensor::_internal_header()
const {
438 const ::ignition::msgs::Header* p = header_;
452 if (header_ == NULL) {
453 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
460 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
461 if (message_arena == NULL) {
462 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
465 ::google::protobuf::Arena* submessage_arena = NULL;
466 if (message_arena != submessage_arena) {
467 header = ::google::protobuf::internal::GetOwnedMessage(
468 message_arena,
header, submessage_arena);
480 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
484 return name_.GetNoArena();
488 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
495 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
500 GOOGLE_DCHECK(value != NULL);
502 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
507 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
508 ::
std::string(
reinterpret_cast<const char*
>(value), size));
514 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
519 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
527 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name);
547 parent_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
551 return parent_.GetNoArena();
555 parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
562 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
567 GOOGLE_DCHECK(value != NULL);
569 parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
574 parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
575 ::
std::string(
reinterpret_cast<const char*
>(value), size));
581 return parent_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
586 return parent_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
594 parent_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
parent);
614 type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
618 return type_.GetNoArena();
622 type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
629 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
634 GOOGLE_DCHECK(value != NULL);
636 type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
641 type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
642 ::
std::string(
reinterpret_cast<const char*
>(value), size));
648 return type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
653 return type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
661 type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
type);
689 update_rate_ = value;
697 inline const ::ignition::msgs::Pose& Sensor::_internal_pose()
const {
701 const ::ignition::msgs::Pose* p = pose_;
716 auto* p = CreateMaybeMessage<::ignition::msgs::Pose>(GetArenaNoVirtual());
723 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
724 if (message_arena == NULL) {
725 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(pose_);
728 ::google::protobuf::Arena* submessage_arena = NULL;
729 if (message_arena != submessage_arena) {
730 pose = ::google::protobuf::internal::GetOwnedMessage(
731 message_arena,
pose, submessage_arena);
745 inline const ::ignition::msgs::CameraSensor& Sensor::_internal_camera()
const {
749 const ::ignition::msgs::CameraSensor* p = camera_;
763 if (camera_ == NULL) {
764 auto* p = CreateMaybeMessage<::ignition::msgs::CameraSensor>(GetArenaNoVirtual());
771 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
772 if (message_arena == NULL) {
773 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(camera_);
776 ::google::protobuf::Arena* submessage_arena = NULL;
777 if (message_arena != submessage_arena) {
778 camera = ::google::protobuf::internal::GetOwnedMessage(
779 message_arena,
camera, submessage_arena);
793 inline const ::ignition::msgs::ContactSensor& Sensor::_internal_contact()
const {
797 const ::ignition::msgs::ContactSensor* p = contact_;
811 if (contact_ == NULL) {
812 auto* p = CreateMaybeMessage<::ignition::msgs::ContactSensor>(GetArenaNoVirtual());
819 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
820 if (message_arena == NULL) {
821 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(contact_);
824 ::google::protobuf::Arena* submessage_arena = NULL;
825 if (message_arena != submessage_arena) {
826 contact = ::google::protobuf::internal::GetOwnedMessage(
827 message_arena,
contact, submessage_arena);
853 topic_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
857 return topic_.GetNoArena();
861 topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
868 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
873 GOOGLE_DCHECK(value != NULL);
875 topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
880 topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
881 ::
std::string(
reinterpret_cast<const char*
>(value), size));
887 return topic_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
892 return topic_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
900 topic_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
topic);
908 inline const ::ignition::msgs::LogicalCameraSensor& Sensor::_internal_logical_camera()
const {
909 return *logical_camera_;
912 const ::ignition::msgs::LogicalCameraSensor* p = logical_camera_;
921 logical_camera_ = NULL;
926 if (logical_camera_ == NULL) {
927 auto* p = CreateMaybeMessage<::ignition::msgs::LogicalCameraSensor>(GetArenaNoVirtual());
931 return logical_camera_;
934 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
935 if (message_arena == NULL) {
936 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(logical_camera_);
939 ::google::protobuf::Arena* submessage_arena = NULL;
940 if (message_arena != submessage_arena) {
956 inline const ::ignition::msgs::GPSSensor& Sensor::_internal_gps()
const {
960 const ::ignition::msgs::GPSSensor* p = gps_;
975 auto* p = CreateMaybeMessage<::ignition::msgs::GPSSensor>(GetArenaNoVirtual());
982 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
983 if (message_arena == NULL) {
984 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(gps_);
987 ::google::protobuf::Arena* submessage_arena = NULL;
988 if (message_arena != submessage_arena) {
989 gps = ::google::protobuf::internal::GetOwnedMessage(
990 message_arena,
gps, submessage_arena);
1004 inline const ::ignition::msgs::IMUSensor& Sensor::_internal_imu()
const {
1008 const ::ignition::msgs::IMUSensor* p = imu_;
1023 auto* p = CreateMaybeMessage<::ignition::msgs::IMUSensor>(GetArenaNoVirtual());
1030 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1031 if (message_arena == NULL) {
1032 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(imu_);
1035 ::google::protobuf::Arena* submessage_arena = NULL;
1036 if (message_arena != submessage_arena) {
1037 imu = ::google::protobuf::internal::GetOwnedMessage(
1038 message_arena,
imu, submessage_arena);
1052 inline const ::ignition::msgs::MagnetometerSensor& Sensor::_internal_magnetometer()
const {
1053 return *magnetometer_;
1056 const ::ignition::msgs::MagnetometerSensor* p = magnetometer_;
1065 magnetometer_ = NULL;
1070 if (magnetometer_ == NULL) {
1071 auto* p = CreateMaybeMessage<::ignition::msgs::MagnetometerSensor>(GetArenaNoVirtual());
1075 return magnetometer_;
1078 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1079 if (message_arena == NULL) {
1080 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(magnetometer_);
1083 ::google::protobuf::Arena* submessage_arena = NULL;
1084 if (message_arena != submessage_arena) {
1085 magnetometer = ::google::protobuf::internal::GetOwnedMessage(
1100 inline const ::ignition::msgs::AltimeterSensor& Sensor::_internal_altimeter()
const {
1104 const ::ignition::msgs::AltimeterSensor* p = altimeter_;
1118 if (altimeter_ == NULL) {
1119 auto* p = CreateMaybeMessage<::ignition::msgs::AltimeterSensor>(GetArenaNoVirtual());
1126 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1127 if (message_arena == NULL) {
1128 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(altimeter_);
1131 ::google::protobuf::Arena* submessage_arena = NULL;
1132 if (message_arena != submessage_arena) {
1133 altimeter = ::google::protobuf::internal::GetOwnedMessage(
1134 message_arena,
altimeter, submessage_arena);
1148 inline const ::ignition::msgs::AirPressureSensor& Sensor::_internal_air_pressure()
const {
1149 return *air_pressure_;
1152 const ::ignition::msgs::AirPressureSensor* p = air_pressure_;
1161 air_pressure_ = NULL;
1166 if (air_pressure_ == NULL) {
1167 auto* p = CreateMaybeMessage<::ignition::msgs::AirPressureSensor>(GetArenaNoVirtual());
1171 return air_pressure_;
1174 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1175 if (message_arena == NULL) {
1176 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(air_pressure_);
1179 ::google::protobuf::Arena* submessage_arena = NULL;
1180 if (message_arena != submessage_arena) {
1181 air_pressure = ::google::protobuf::internal::GetOwnedMessage(
1196 inline const ::ignition::msgs::LidarSensor& Sensor::_internal_lidar()
const {
1200 const ::ignition::msgs::LidarSensor* p = lidar_;
1214 if (lidar_ == NULL) {
1215 auto* p = CreateMaybeMessage<::ignition::msgs::LidarSensor>(GetArenaNoVirtual());
1222 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1223 if (message_arena == NULL) {
1224 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(lidar_);
1227 ::google::protobuf::Arena* submessage_arena = NULL;
1228 if (message_arena != submessage_arena) {
1229 lidar = ::google::protobuf::internal::GetOwnedMessage(
1230 message_arena,
lidar, submessage_arena);
1241 #pragma GCC diagnostic pop
1254 #pragma warning(pop)
1258 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2fsensor_2eproto