4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fair_5fpressure_5fsensor_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fair_5fpressure_5fsensor_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3019000
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 3019000 < 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/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/generated_message_reflection.h>
30 #include <google/protobuf/message.h>
31 #include <google/protobuf/repeated_field.h>
32 #include <google/protobuf/extension_set.h>
33 #include <google/protobuf/unknown_field_set.h>
37 #pragma GCC system_header
40 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
43 #include <sys/sysmacros.h>
48 #include <google/protobuf/port_def.inc>
49 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fair_5fpressure_5fsensor_2eproto IGNITION_MSGS_VISIBLE
50 PROTOBUF_NAMESPACE_OPEN
54 PROTOBUF_NAMESPACE_CLOSE
58 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
60 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
62 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
64 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
65 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
66 static const uint32_t offsets[];
71 class AirPressureSensor;
72 struct AirPressureSensorDefaultTypeInternal;
76 PROTOBUF_NAMESPACE_OPEN
77 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::AirPressureSensor* Arena::CreateMaybeMessage<::ignition::msgs::AirPressureSensor>(Arena*);
78 PROTOBUF_NAMESPACE_CLOSE
85 public ::PROTOBUF_NAMESPACE_ID::Message {
89 explicit constexpr
AirPressureSensor(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
94 *
this = ::std::move(from);
102 if (
this == &from)
return *
this;
103 if (GetOwningArena() == from.GetOwningArena()
104 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
105 && GetOwningArena() !=
nullptr
115 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
116 return GetDescriptor();
119 return default_instance().GetMetadata().descriptor;
122 return default_instance().GetMetadata().reflection;
125 return *internal_default_instance();
131 static constexpr
int kIndexInFileMessages =
138 if (other ==
this)
return;
139 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
140 if (GetOwningArena() !=
nullptr &&
141 GetOwningArena() == other->GetOwningArena()) {
143 if (GetOwningArena() == other->GetOwningArena()) {
147 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
151 if (other ==
this)
return;
152 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
159 return CreateMaybeMessage<AirPressureSensor>(arena);
161 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
163 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
166 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
168 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
169 bool IsInitialized() const final;
171 size_t ByteSizeLong() const final;
172 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
173 uint8_t* _InternalSerialize(
174 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
175 int GetCachedSize() const final {
return _cached_size_.Get(); }
180 void SetCachedSize(
int size)
const final;
184 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
185 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
186 return "ignition.msgs.AirPressureSensor";
190 bool is_message_owned =
false);
192 static void ArenaDtor(
void*
object);
193 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
197 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
199 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
206 kHeaderFieldNumber = 1,
207 kPressureNoiseFieldNumber = 3,
208 kReferenceAltitudeFieldNumber = 2,
211 bool has_header()
const;
213 bool _internal_has_header()
const;
216 const ::ignition::msgs::Header& header()
const;
217 PROTOBUF_NODISCARD ::ignition::msgs::Header* release_header();
221 const ::ignition::msgs::Header& _internal_header()
const;
224 void unsafe_arena_set_allocated_header(
229 bool has_pressure_noise()
const;
231 bool _internal_has_pressure_noise()
const;
234 const ::ignition::msgs::SensorNoise& pressure_noise()
const;
235 PROTOBUF_NODISCARD ::ignition::msgs::SensorNoise* release_pressure_noise();
239 const ::ignition::msgs::SensorNoise& _internal_pressure_noise()
const;
242 void unsafe_arena_set_allocated_pressure_noise(
247 void clear_reference_altitude();
248 double reference_altitude()
const;
249 void set_reference_altitude(
double value);
251 double _internal_reference_altitude()
const;
252 void _internal_set_reference_altitude(
double value);
259 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
260 typedef void InternalArenaConstructable_;
261 typedef void DestructorSkippable_;
264 double reference_altitude_;
265 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
266 friend struct ::TableStruct_ignition_2fmsgs_2fair_5fpressure_5fsensor_2eproto;
274 #pragma GCC diagnostic push
275 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
280 inline bool AirPressureSensor::_internal_has_header()
const {
281 return this != internal_default_instance() && header_ !=
nullptr;
284 return _internal_has_header();
286 inline const ::ignition::msgs::Header& AirPressureSensor::_internal_header()
const {
287 const ::ignition::msgs::Header* p = header_;
293 return _internal_header();
297 if (GetArenaForAllocation() ==
nullptr) {
298 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
312 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
313 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
314 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
315 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
317 if (GetArenaForAllocation() !=
nullptr) {
318 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
330 inline ::ignition::msgs::Header* AirPressureSensor::_internal_mutable_header() {
332 if (header_ ==
nullptr) {
333 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaForAllocation());
344 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
345 if (message_arena ==
nullptr) {
346 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
349 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
350 ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
351 ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
352 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header));
353 if (message_arena != submessage_arena) {
354 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
355 message_arena, header, submessage_arena);
367 reference_altitude_ = 0;
369 inline double AirPressureSensor::_internal_reference_altitude()
const {
370 return reference_altitude_;
374 return _internal_reference_altitude();
376 inline void AirPressureSensor::_internal_set_reference_altitude(
double value) {
378 reference_altitude_ = value;
381 _internal_set_reference_altitude(value);
386 inline bool AirPressureSensor::_internal_has_pressure_noise()
const {
387 return this != internal_default_instance() && pressure_noise_ !=
nullptr;
390 return _internal_has_pressure_noise();
392 inline const ::ignition::msgs::SensorNoise& AirPressureSensor::_internal_pressure_noise()
const {
393 const ::ignition::msgs::SensorNoise* p = pressure_noise_;
399 return _internal_pressure_noise();
403 if (GetArenaForAllocation() ==
nullptr) {
404 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(pressure_noise_);
406 pressure_noise_ = pressure_noise;
407 if (pressure_noise) {
417 pressure_noise_ =
nullptr;
418 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
419 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
420 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
421 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
423 if (GetArenaForAllocation() !=
nullptr) {
424 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
433 pressure_noise_ =
nullptr;
436 inline ::ignition::msgs::SensorNoise* AirPressureSensor::_internal_mutable_pressure_noise() {
438 if (pressure_noise_ ==
nullptr) {
439 auto* p = CreateMaybeMessage<::ignition::msgs::SensorNoise>(GetArenaForAllocation());
442 return pressure_noise_;
450 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
451 if (message_arena ==
nullptr) {
452 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(pressure_noise_);
454 if (pressure_noise) {
455 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
456 ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
457 ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
458 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(pressure_noise));
459 if (message_arena != submessage_arena) {
460 pressure_noise = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
461 message_arena, pressure_noise, submessage_arena);
467 pressure_noise_ = pressure_noise;
472 #pragma GCC diagnostic pop
489 #include <google/protobuf/port_undef.inc>
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fair_5fpressure_5fsensor_2eproto
Definition: air_pressure_sensor.pb.h:85
void Swap(AirPressureSensor *other)
Definition: air_pressure_sensor.pb.h:137
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: air_pressure_sensor.pb.h:121
AirPressureSensor * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition: air_pressure_sensor.pb.h:158
bool has_header() const
Definition: air_pressure_sensor.pb.h:283
::ignition::msgs::Header * mutable_header()
Definition: air_pressure_sensor.pb.h:338
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
AirPressureSensor(const AirPressureSensor &from)
PROTOBUF_NODISCARD ::ignition::msgs::SensorNoise * release_pressure_noise()
Definition: air_pressure_sensor.pb.h:414
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: air_pressure_sensor.pb.h:115
~AirPressureSensor() override
::ignition::msgs::SensorNoise * mutable_pressure_noise()
Definition: air_pressure_sensor.pb.h:444
double reference_altitude() const
Definition: air_pressure_sensor.pb.h:372
void clear_reference_altitude()
Definition: air_pressure_sensor.pb.h:366
AirPressureSensor & operator=(const AirPressureSensor &from)
Definition: air_pressure_sensor.pb.h:97
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
Definition: air_pressure_sensor.pb.h:295
friend void swap(AirPressureSensor &a, AirPressureSensor &b)
Definition: air_pressure_sensor.pb.h:134
static const AirPressureSensor * internal_default_instance()
Definition: air_pressure_sensor.pb.h:127
static const AirPressureSensor & default_instance()
Definition: air_pressure_sensor.pb.h:124
bool has_pressure_noise() const
Definition: air_pressure_sensor.pb.h:389
void MergeFrom(const AirPressureSensor &from)
void set_reference_altitude(double value)
Definition: air_pressure_sensor.pb.h:380
void set_allocated_pressure_noise(::ignition::msgs::SensorNoise *pressure_noise)
Definition: air_pressure_sensor.pb.h:449
AirPressureSensor & operator=(AirPressureSensor &&from) noexcept
Definition: air_pressure_sensor.pb.h:101
void set_allocated_header(::ignition::msgs::Header *header)
Definition: air_pressure_sensor.pb.h:343
::ignition::msgs::SensorNoise * unsafe_arena_release_pressure_noise()
Definition: air_pressure_sensor.pb.h:429
PROTOBUF_NODISCARD ::ignition::msgs::Header * release_header()
Definition: air_pressure_sensor.pb.h:308
const ::ignition::msgs::SensorNoise & pressure_noise() const
Definition: air_pressure_sensor.pb.h:397
AirPressureSensor(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
AirPressureSensor()
Definition: air_pressure_sensor.pb.h:87
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: air_pressure_sensor.pb.h:118
const ::ignition::msgs::Header & header() const
Definition: air_pressure_sensor.pb.h:291
void unsafe_arena_set_allocated_pressure_noise(::ignition::msgs::SensorNoise *pressure_noise)
Definition: air_pressure_sensor.pb.h:401
void clear_pressure_noise()
static const ClassData _class_data_
Definition: air_pressure_sensor.pb.h:196
::ignition::msgs::Header * unsafe_arena_release_header()
Definition: air_pressure_sensor.pb.h:323
void CopyFrom(const AirPressureSensor &from)
void UnsafeArenaSwap(AirPressureSensor *other)
Definition: air_pressure_sensor.pb.h:150
constexpr AirPressureSensor(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
AirPressureSensor(AirPressureSensor &&from) noexcept
Definition: air_pressure_sensor.pb.h:92
Definition: sensor_noise.pb.h:111
std::unique_ptr< AirPressureSensor > AirPressureSensorUniquePtr
Definition: air_pressure_sensor.pb.h:475
std::shared_ptr< AirPressureSensor > AirPressureSensorSharedPtr
Definition: air_pressure_sensor.pb.h:477
IGNITION_MSGS_VISIBLE SensorNoiseDefaultTypeInternal _SensorNoise_default_instance_
std::unique_ptr< const AirPressureSensor > ConstAirPressureSensorUniquePtr
Definition: air_pressure_sensor.pb.h:476
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::shared_ptr< const AirPressureSensor > ConstAirPressureSensorSharedPtr
Definition: air_pressure_sensor.pb.h:478
IGNITION_MSGS_VISIBLE AirPressureSensorDefaultTypeInternal _AirPressureSensor_default_instance_
Definition: actor.pb.h:52
Definition: air_pressure_sensor.pb.h:57
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)