4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fdistortion_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fdistortion_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_2fdistortion_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[];
72 struct DistortionDefaultTypeInternal;
76 PROTOBUF_NAMESPACE_OPEN
77 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Distortion* Arena::CreateMaybeMessage<::ignition::msgs::Distortion>(Arena*);
78 PROTOBUF_NAMESPACE_CLOSE
85 public ::PROTOBUF_NAMESPACE_ID::Message {
89 explicit constexpr
Distortion(::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());
158 Distortion*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
159 return CreateMaybeMessage<Distortion>(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.Distortion";
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 kCenterFieldNumber = 2,
215 bool has_header()
const;
217 bool _internal_has_header()
const;
220 const ::ignition::msgs::Header& header()
const;
221 PROTOBUF_NODISCARD ::ignition::msgs::Header* release_header();
225 const ::ignition::msgs::Header& _internal_header()
const;
228 void unsafe_arena_set_allocated_header(
233 bool has_center()
const;
235 bool _internal_has_center()
const;
238 const ::ignition::msgs::Vector2d& center()
const;
239 PROTOBUF_NODISCARD ::ignition::msgs::Vector2d* release_center();
243 const ::ignition::msgs::Vector2d& _internal_center()
const;
246 void unsafe_arena_set_allocated_center(
253 void set_k1(
double value);
255 double _internal_k1()
const;
256 void _internal_set_k1(
double value);
262 void set_k2(
double value);
264 double _internal_k2()
const;
265 void _internal_set_k2(
double value);
271 void set_k3(
double value);
273 double _internal_k3()
const;
274 void _internal_set_k3(
double value);
280 void set_p1(
double value);
282 double _internal_p1()
const;
283 void _internal_set_p1(
double value);
289 void set_p2(
double value);
291 double _internal_p2()
const;
292 void _internal_set_p2(
double value);
299 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
300 typedef void InternalArenaConstructable_;
301 typedef void DestructorSkippable_;
309 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
310 friend struct ::TableStruct_ignition_2fmsgs_2fdistortion_2eproto;
318 #pragma GCC diagnostic push
319 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
324 inline bool Distortion::_internal_has_header()
const {
325 return this != internal_default_instance() && header_ !=
nullptr;
328 return _internal_has_header();
330 inline const ::ignition::msgs::Header& Distortion::_internal_header()
const {
331 const ::ignition::msgs::Header* p = header_;
337 return _internal_header();
341 if (GetArenaForAllocation() ==
nullptr) {
342 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
356 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
357 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
358 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
359 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
361 if (GetArenaForAllocation() !=
nullptr) {
362 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
374 inline ::ignition::msgs::Header* Distortion::_internal_mutable_header() {
376 if (header_ ==
nullptr) {
377 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaForAllocation());
388 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
389 if (message_arena ==
nullptr) {
390 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
393 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
394 ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
395 ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
396 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header));
397 if (message_arena != submessage_arena) {
398 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
399 message_arena, header, submessage_arena);
410 inline bool Distortion::_internal_has_center()
const {
411 return this != internal_default_instance() && center_ !=
nullptr;
414 return _internal_has_center();
416 inline const ::ignition::msgs::Vector2d& Distortion::_internal_center()
const {
417 const ::ignition::msgs::Vector2d* p = center_;
423 return _internal_center();
427 if (GetArenaForAllocation() ==
nullptr) {
428 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(center_);
442 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
443 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
444 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
445 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
447 if (GetArenaForAllocation() !=
nullptr) {
448 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
460 inline ::ignition::msgs::Vector2d* Distortion::_internal_mutable_center() {
462 if (center_ ==
nullptr) {
463 auto* p = CreateMaybeMessage<::ignition::msgs::Vector2d>(GetArenaForAllocation());
474 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
475 if (message_arena ==
nullptr) {
476 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(center_);
479 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
480 ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
481 ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
482 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(center));
483 if (message_arena != submessage_arena) {
484 center = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
485 message_arena, center, submessage_arena);
499 inline double Distortion::_internal_k1()
const {
504 return _internal_k1();
506 inline void Distortion::_internal_set_k1(
double value) {
511 _internal_set_k1(value);
519 inline double Distortion::_internal_k2()
const {
524 return _internal_k2();
526 inline void Distortion::_internal_set_k2(
double value) {
531 _internal_set_k2(value);
539 inline double Distortion::_internal_k3()
const {
544 return _internal_k3();
546 inline void Distortion::_internal_set_k3(
double value) {
551 _internal_set_k3(value);
559 inline double Distortion::_internal_p1()
const {
564 return _internal_p1();
566 inline void Distortion::_internal_set_p1(
double value) {
571 _internal_set_p1(value);
579 inline double Distortion::_internal_p2()
const {
584 return _internal_p2();
586 inline void Distortion::_internal_set_p2(
double value) {
591 _internal_set_p2(value);
596 #pragma GCC diagnostic pop
613 #include <google/protobuf/port_undef.inc>
Definition: distortion.pb.h:85
double k1() const
Definition: distortion.pb.h:502
PROTOBUF_NODISCARD ::ignition::msgs::Vector2d * release_center()
Definition: distortion.pb.h:438
::ignition::msgs::Vector2d * unsafe_arena_release_center()
Definition: distortion.pb.h:453
Distortion & operator=(const Distortion &from)
Definition: distortion.pb.h:97
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: distortion.pb.h:121
bool has_header() const
Definition: distortion.pb.h:327
Distortion()
Definition: distortion.pb.h:87
::ignition::msgs::Header * mutable_header()
Definition: distortion.pb.h:382
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void set_allocated_center(::ignition::msgs::Vector2d *center)
Definition: distortion.pb.h:473
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: distortion.pb.h:115
void set_k1(double value)
Definition: distortion.pb.h:510
void set_k2(double value)
Definition: distortion.pb.h:530
void set_p1(double value)
Definition: distortion.pb.h:570
constexpr Distortion(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
double k3() const
Definition: distortion.pb.h:542
double p1() const
Definition: distortion.pb.h:562
Distortion(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
static const Distortion & default_instance()
Definition: distortion.pb.h:124
double p2() const
Definition: distortion.pb.h:582
void MergeFrom(const Distortion &from)
void clear_p2()
Definition: distortion.pb.h:576
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
Definition: distortion.pb.h:339
void Swap(Distortion *other)
Definition: distortion.pb.h:137
const ::ignition::msgs::Vector2d & center() const
Definition: distortion.pb.h:421
void clear_p1()
Definition: distortion.pb.h:556
void UnsafeArenaSwap(Distortion *other)
Definition: distortion.pb.h:150
bool has_center() const
Definition: distortion.pb.h:413
void clear_k3()
Definition: distortion.pb.h:536
Distortion(Distortion &&from) noexcept
Definition: distortion.pb.h:92
void set_p2(double value)
Definition: distortion.pb.h:590
void clear_k2()
Definition: distortion.pb.h:516
void set_k3(double value)
Definition: distortion.pb.h:550
void set_allocated_header(::ignition::msgs::Header *header)
Definition: distortion.pb.h:387
Distortion & operator=(Distortion &&from) noexcept
Definition: distortion.pb.h:101
void unsafe_arena_set_allocated_center(::ignition::msgs::Vector2d *center)
Definition: distortion.pb.h:425
double k2() const
Definition: distortion.pb.h:522
PROTOBUF_NODISCARD ::ignition::msgs::Header * release_header()
Definition: distortion.pb.h:352
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
static const Distortion * internal_default_instance()
Definition: distortion.pb.h:127
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: distortion.pb.h:118
const ::ignition::msgs::Header & header() const
Definition: distortion.pb.h:335
static const ClassData _class_data_
Definition: distortion.pb.h:196
::ignition::msgs::Header * unsafe_arena_release_header()
Definition: distortion.pb.h:367
void clear_k1()
Definition: distortion.pb.h:496
friend void swap(Distortion &a, Distortion &b)
Definition: distortion.pb.h:134
Distortion * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition: distortion.pb.h:158
::ignition::msgs::Vector2d * mutable_center()
Definition: distortion.pb.h:468
void CopyFrom(const Distortion &from)
Distortion(const Distortion &from)
Definition: vector2d.pb.h:84
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fdistortion_2eproto
std::shared_ptr< const Distortion > ConstDistortionSharedPtr
Definition: distortion.pb.h:602
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::unique_ptr< const Distortion > ConstDistortionUniquePtr
Definition: distortion.pb.h:600
std::shared_ptr< Distortion > DistortionSharedPtr
Definition: distortion.pb.h:601
std::unique_ptr< Distortion > DistortionUniquePtr
Definition: distortion.pb.h:599
IGNITION_MSGS_VISIBLE DistortionDefaultTypeInternal _Distortion_default_instance_
IGNITION_MSGS_VISIBLE Vector2dDefaultTypeInternal _Vector2d_default_instance_
Definition: actor.pb.h:52
Definition: distortion.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)