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 < 3014000
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 3014000 < 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 ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
72 class DistortionDefaultTypeInternal;
76 PROTOBUF_NAMESPACE_OPEN
77 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Distortion* Arena::CreateMaybeMessage<::ignition::msgs::Distortion>(Arena*);
78 PROTOBUF_NAMESPACE_CLOSE
84 class IGNITION_MSGS_VISIBLE Distortion PROTOBUF_FINAL :
85 public ::PROTOBUF_NAMESPACE_ID::Message {
93 *
this = ::std::move(from);
101 if (GetArena() == from.GetArena()) {
102 if (
this != &from) InternalSwap(&from);
109 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
110 return GetDescriptor();
113 return GetMetadataStatic().descriptor;
116 return GetMetadataStatic().reflection;
124 static constexpr
int kIndexInFileMessages =
131 if (other ==
this)
return;
132 if (GetArena() == other->GetArena()) {
135 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
139 if (other ==
this)
return;
140 GOOGLE_DCHECK(GetArena() == other->GetArena());
147 return CreateMaybeMessage<Distortion>(
nullptr);
151 return CreateMaybeMessage<Distortion>(arena);
153 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
154 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
157 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
158 bool IsInitialized() const final;
160 size_t ByteSizeLong() const final;
161 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
162 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
163 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
164 int GetCachedSize() const final {
return _cached_size_.Get(); }
167 inline void SharedCtor();
168 inline void SharedDtor();
169 void SetCachedSize(
int size)
const final;
170 void InternalSwap(Distortion* other);
171 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
172 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
173 return "ignition.msgs.Distortion";
178 static void ArenaDtor(
void*
object);
179 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
184 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
196 kHeaderFieldNumber = 1,
197 kCenterFieldNumber = 2,
207 bool _internal_has_header()
const;
210 const ::ignition::msgs::Header&
header()
const;
215 const ::ignition::msgs::Header& _internal_header()
const;
216 ::ignition::msgs::Header* _internal_mutable_header();
219 ::ignition::msgs::Header* header);
225 bool _internal_has_center()
const;
228 const ::ignition::msgs::Vector2d&
center()
const;
233 const ::ignition::msgs::Vector2d& _internal_center()
const;
234 ::ignition::msgs::Vector2d* _internal_mutable_center();
237 ::ignition::msgs::Vector2d* center);
245 double _internal_k1()
const;
246 void _internal_set_k1(
double value);
254 double _internal_k2()
const;
255 void _internal_set_k2(
double value);
263 double _internal_k3()
const;
264 void _internal_set_k3(
double value);
272 double _internal_p1()
const;
273 void _internal_set_p1(
double value);
281 double _internal_p2()
const;
282 void _internal_set_p2(
double value);
289 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
290 typedef void InternalArenaConstructable_;
291 typedef void DestructorSkippable_;
292 ::ignition::msgs::Header* header_;
293 ::ignition::msgs::Vector2d* center_;
299 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
300 friend struct ::TableStruct_ignition_2fmsgs_2fdistortion_2eproto;
308 #pragma GCC diagnostic push
309 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
314 inline bool Distortion::_internal_has_header()
const {
315 return this != internal_default_instance() && header_ !=
nullptr;
317 inline bool Distortion::has_header()
const {
318 return _internal_has_header();
320 inline const ::ignition::msgs::Header& Distortion::_internal_header()
const {
321 const ::ignition::msgs::Header* p = header_;
322 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Header&
>(
325 inline const ::ignition::msgs::Header& Distortion::header()
const {
327 return _internal_header();
329 inline void Distortion::unsafe_arena_set_allocated_header(
330 ::ignition::msgs::Header* header) {
331 if (GetArena() ==
nullptr) {
332 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
342 inline ::ignition::msgs::Header* Distortion::release_header() {
344 ::ignition::msgs::Header* temp = header_;
346 if (GetArena() !=
nullptr) {
347 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
351 inline ::ignition::msgs::Header* Distortion::unsafe_arena_release_header() {
354 ::ignition::msgs::Header* temp = header_;
358 inline ::ignition::msgs::Header* Distortion::_internal_mutable_header() {
360 if (header_ ==
nullptr) {
361 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
366 inline ::ignition::msgs::Header* Distortion::mutable_header() {
368 return _internal_mutable_header();
370 inline void Distortion::set_allocated_header(::ignition::msgs::Header* header) {
371 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
372 if (message_arena ==
nullptr) {
373 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
376 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
377 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header)->GetArena();
378 if (message_arena != submessage_arena) {
379 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
380 message_arena, header, submessage_arena);
391 inline bool Distortion::_internal_has_center()
const {
392 return this != internal_default_instance() && center_ !=
nullptr;
394 inline bool Distortion::has_center()
const {
395 return _internal_has_center();
397 inline const ::ignition::msgs::Vector2d& Distortion::_internal_center()
const {
398 const ::ignition::msgs::Vector2d* p = center_;
399 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Vector2d&
>(
402 inline const ::ignition::msgs::Vector2d& Distortion::center()
const {
404 return _internal_center();
406 inline void Distortion::unsafe_arena_set_allocated_center(
407 ::ignition::msgs::Vector2d* center) {
408 if (GetArena() ==
nullptr) {
409 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(center_);
419 inline ::ignition::msgs::Vector2d* Distortion::release_center() {
421 ::ignition::msgs::Vector2d* temp = center_;
423 if (GetArena() !=
nullptr) {
424 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
428 inline ::ignition::msgs::Vector2d* Distortion::unsafe_arena_release_center() {
431 ::ignition::msgs::Vector2d* temp = center_;
435 inline ::ignition::msgs::Vector2d* Distortion::_internal_mutable_center() {
437 if (center_ ==
nullptr) {
438 auto* p = CreateMaybeMessage<::ignition::msgs::Vector2d>(GetArena());
443 inline ::ignition::msgs::Vector2d* Distortion::mutable_center() {
445 return _internal_mutable_center();
447 inline void Distortion::set_allocated_center(::ignition::msgs::Vector2d* center) {
448 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
449 if (message_arena ==
nullptr) {
450 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(center_);
453 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
454 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(center)->GetArena();
455 if (message_arena != submessage_arena) {
456 center = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
457 message_arena, center, submessage_arena);
468 inline void Distortion::clear_k1() {
471 inline double Distortion::_internal_k1()
const {
474 inline double Distortion::k1()
const {
476 return _internal_k1();
478 inline void Distortion::_internal_set_k1(
double value) {
482 inline void Distortion::set_k1(
double value) {
483 _internal_set_k1(value);
488 inline void Distortion::clear_k2() {
491 inline double Distortion::_internal_k2()
const {
494 inline double Distortion::k2()
const {
496 return _internal_k2();
498 inline void Distortion::_internal_set_k2(
double value) {
502 inline void Distortion::set_k2(
double value) {
503 _internal_set_k2(value);
508 inline void Distortion::clear_k3() {
511 inline double Distortion::_internal_k3()
const {
514 inline double Distortion::k3()
const {
516 return _internal_k3();
518 inline void Distortion::_internal_set_k3(
double value) {
522 inline void Distortion::set_k3(
double value) {
523 _internal_set_k3(value);
528 inline void Distortion::clear_p1() {
531 inline double Distortion::_internal_p1()
const {
534 inline double Distortion::p1()
const {
536 return _internal_p1();
538 inline void Distortion::_internal_set_p1(
double value) {
542 inline void Distortion::set_p1(
double value) {
543 _internal_set_p1(value);
548 inline void Distortion::clear_p2() {
551 inline double Distortion::_internal_p2()
const {
554 inline double Distortion::p2()
const {
556 return _internal_p2();
558 inline void Distortion::_internal_set_p2(
double value) {
562 inline void Distortion::set_p2(
double value) {
563 _internal_set_p2(value);
568 #pragma GCC diagnostic pop
585 #include <google/protobuf/port_undef.inc>
Distortion & operator=(const Distortion &from)
Definition: distortion.pb.h:96
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: distortion.pb.h:115
CameraInfo_Distortion Distortion
Definition: camera_info.pb.h:724
Distortion()
Definition: distortion.pb.h:87
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::ignition::msgs::Header * release_header()
void set_allocated_center(::ignition::msgs::Vector2d *center)
::ignition::msgs::Header * mutable_header()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: distortion.pb.h:109
void set_k1(double value)
void set_k2(double value)
void set_p1(double value)
const ::ignition::msgs::Vector2d & center() const
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
::ignition::msgs::Vector2d * mutable_center()
static const Distortion & default_instance()
void MergeFrom(const Distortion &from)
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
void Swap(Distortion *other)
Definition: distortion.pb.h:130
Distortion * New() const final
Definition: distortion.pb.h:146
void UnsafeArenaSwap(Distortion *other)
Definition: distortion.pb.h:138
::ignition::msgs::Header * unsafe_arena_release_header()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
::ignition::msgs::Vector2d * unsafe_arena_release_center()
Distortion(Distortion &&from) noexcept
Definition: distortion.pb.h:91
void set_p2(double value)
void set_k3(double value)
void set_allocated_header(::ignition::msgs::Header *header)
Distortion & operator=(Distortion &&from) noexcept
Definition: distortion.pb.h:100
void unsafe_arena_set_allocated_center(::ignition::msgs::Vector2d *center)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const Distortion * internal_default_instance()
Definition: distortion.pb.h:120
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: distortion.pb.h:112
Distortion(::PROTOBUF_NAMESPACE_ID::Arena *arena)
::ignition::msgs::Vector2d * release_center()
friend void swap(Distortion &a, Distortion &b)
Definition: distortion.pb.h:127
const ::ignition::msgs::Header & header() const
void CopyFrom(const Distortion &from)
Distortion(const Distortion &from)
Distortion * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: distortion.pb.h:150
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fdistortion_2eproto
std::shared_ptr< const Distortion > ConstDistortionSharedPtr
Definition: distortion.pb.h:574
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::unique_ptr< const Distortion > ConstDistortionUniquePtr
Definition: distortion.pb.h:572
std::shared_ptr< Distortion > DistortionSharedPtr
Definition: distortion.pb.h:573
std::unique_ptr< Distortion > DistortionUniquePtr
Definition: distortion.pb.h:571
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)