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 < 3012000
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 3012004 < 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/inlined_string_field.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
31 #include <google/protobuf/message.h>
32 #include <google/protobuf/repeated_field.h>
33 #include <google/protobuf/extension_set.h>
34 #include <google/protobuf/unknown_field_set.h>
38 #pragma GCC system_header
41 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
44 #include <sys/sysmacros.h>
49 #include <google/protobuf/port_def.inc>
50 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fdistortion_2eproto IGNITION_MSGS_VISIBLE
51 PROTOBUF_NAMESPACE_OPEN
55 PROTOBUF_NAMESPACE_CLOSE
59 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
61 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
63 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
65 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
66 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
67 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
73 class DistortionDefaultTypeInternal;
77 PROTOBUF_NAMESPACE_OPEN
78 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Distortion* Arena::CreateMaybeMessage<::ignition::msgs::Distortion>(Arena*);
79 PROTOBUF_NAMESPACE_CLOSE
85 class IGNITION_MSGS_VISIBLE Distortion PROTOBUF_FINAL :
86 public ::PROTOBUF_NAMESPACE_ID::Message {
94 *
this = ::std::move(from);
102 if (GetArena() == from.GetArena()) {
103 if (
this != &from) InternalSwap(&from);
110 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
111 return GetDescriptor();
114 return GetMetadataStatic().descriptor;
117 return GetMetadataStatic().reflection;
126 static constexpr
int kIndexInFileMessages =
133 if (other ==
this)
return;
134 if (GetArena() == other->GetArena()) {
137 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
141 if (other ==
this)
return;
142 GOOGLE_DCHECK(GetArena() == other->GetArena());
149 return CreateMaybeMessage<Distortion>(
nullptr);
153 return CreateMaybeMessage<Distortion>(arena);
155 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
156 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
159 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
160 bool IsInitialized() const final;
162 size_t ByteSizeLong() const final;
163 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
164 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
165 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
166 int GetCachedSize() const final {
return _cached_size_.Get(); }
169 inline void SharedCtor();
170 inline void SharedDtor();
171 void SetCachedSize(
int size)
const final;
172 void InternalSwap(Distortion* other);
173 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
174 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
175 return "ignition.msgs.Distortion";
180 static void ArenaDtor(
void*
object);
181 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
186 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
198 kHeaderFieldNumber = 1,
199 kCenterFieldNumber = 2,
209 bool _internal_has_header()
const;
212 const ::ignition::msgs::Header&
header()
const;
217 const ::ignition::msgs::Header& _internal_header()
const;
218 ::ignition::msgs::Header* _internal_mutable_header();
221 ::ignition::msgs::Header* header);
227 bool _internal_has_center()
const;
230 const ::ignition::msgs::Vector2d&
center()
const;
235 const ::ignition::msgs::Vector2d& _internal_center()
const;
236 ::ignition::msgs::Vector2d* _internal_mutable_center();
239 ::ignition::msgs::Vector2d* center);
247 double _internal_k1()
const;
248 void _internal_set_k1(
double value);
256 double _internal_k2()
const;
257 void _internal_set_k2(
double value);
265 double _internal_k3()
const;
266 void _internal_set_k3(
double value);
274 double _internal_p1()
const;
275 void _internal_set_p1(
double value);
283 double _internal_p2()
const;
284 void _internal_set_p2(
double value);
291 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
292 typedef void InternalArenaConstructable_;
293 typedef void DestructorSkippable_;
294 ::ignition::msgs::Header* header_;
295 ::ignition::msgs::Vector2d* center_;
301 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
302 friend struct ::TableStruct_ignition_2fmsgs_2fdistortion_2eproto;
310 #pragma GCC diagnostic push
311 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
316 inline bool Distortion::_internal_has_header()
const {
317 return this != internal_default_instance() && header_ !=
nullptr;
319 inline bool Distortion::has_header()
const {
320 return _internal_has_header();
322 inline const ::ignition::msgs::Header& Distortion::_internal_header()
const {
323 const ::ignition::msgs::Header* p = header_;
324 return p !=
nullptr ? *p : *
reinterpret_cast<const ::ignition::msgs::Header*
>(
327 inline const ::ignition::msgs::Header& Distortion::header()
const {
329 return _internal_header();
331 inline void Distortion::unsafe_arena_set_allocated_header(
332 ::ignition::msgs::Header* header) {
333 if (GetArena() ==
nullptr) {
334 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
344 inline ::ignition::msgs::Header* Distortion::release_header() {
345 auto temp = unsafe_arena_release_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() {
420 auto temp = unsafe_arena_release_center();
421 if (GetArena() !=
nullptr) {
422 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
426 inline ::ignition::msgs::Vector2d* Distortion::unsafe_arena_release_center() {
429 ::ignition::msgs::Vector2d* temp = center_;
433 inline ::ignition::msgs::Vector2d* Distortion::_internal_mutable_center() {
435 if (center_ ==
nullptr) {
436 auto* p = CreateMaybeMessage<::ignition::msgs::Vector2d>(GetArena());
441 inline ::ignition::msgs::Vector2d* Distortion::mutable_center() {
443 return _internal_mutable_center();
445 inline void Distortion::set_allocated_center(::ignition::msgs::Vector2d* center) {
446 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
447 if (message_arena ==
nullptr) {
448 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(center_);
451 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
452 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(center)->GetArena();
453 if (message_arena != submessage_arena) {
454 center = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
455 message_arena, center, submessage_arena);
466 inline void Distortion::clear_k1() {
469 inline double Distortion::_internal_k1()
const {
472 inline double Distortion::k1()
const {
474 return _internal_k1();
476 inline void Distortion::_internal_set_k1(
double value) {
480 inline void Distortion::set_k1(
double value) {
481 _internal_set_k1(value);
486 inline void Distortion::clear_k2() {
489 inline double Distortion::_internal_k2()
const {
492 inline double Distortion::k2()
const {
494 return _internal_k2();
496 inline void Distortion::_internal_set_k2(
double value) {
500 inline void Distortion::set_k2(
double value) {
501 _internal_set_k2(value);
506 inline void Distortion::clear_k3() {
509 inline double Distortion::_internal_k3()
const {
512 inline double Distortion::k3()
const {
514 return _internal_k3();
516 inline void Distortion::_internal_set_k3(
double value) {
520 inline void Distortion::set_k3(
double value) {
521 _internal_set_k3(value);
526 inline void Distortion::clear_p1() {
529 inline double Distortion::_internal_p1()
const {
532 inline double Distortion::p1()
const {
534 return _internal_p1();
536 inline void Distortion::_internal_set_p1(
double value) {
540 inline void Distortion::set_p1(
double value) {
541 _internal_set_p1(value);
546 inline void Distortion::clear_p2() {
549 inline double Distortion::_internal_p2()
const {
552 inline double Distortion::p2()
const {
554 return _internal_p2();
556 inline void Distortion::_internal_set_p2(
double value) {
560 inline void Distortion::set_p2(
double value) {
561 _internal_set_p2(value);
566 #pragma GCC diagnostic pop
583 #include <google/protobuf/port_undef.inc>
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fdistortion_2eproto
static void InitAsDefaultInstance()
Distortion & operator=(const Distortion &from)
Definition: build/ignition-msgs8/include/ignition/msgs/distortion.pb.h:97
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: build/ignition-msgs8/include/ignition/msgs/distortion.pb.h:116
CameraInfo_Distortion Distortion
Definition: build/ignition-msgs8/include/ignition/msgs/camera_info.pb.h:729
Distortion()
Definition: build/ignition-msgs8/include/ignition/msgs/distortion.pb.h:88
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: build/ignition-msgs8/include/ignition/msgs/distortion.pb.h:110
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: build/ignition-msgs8/include/ignition/msgs/distortion.pb.h:132
Distortion * New() const final
Definition: build/ignition-msgs8/include/ignition/msgs/distortion.pb.h:148
void UnsafeArenaSwap(Distortion *other)
Definition: build/ignition-msgs8/include/ignition/msgs/distortion.pb.h:140
::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: build/ignition-msgs8/include/ignition/msgs/distortion.pb.h:92
void set_p2(double value)
void set_k3(double value)
void set_allocated_header(::ignition::msgs::Header *header)
Distortion & operator=(Distortion &&from) noexcept
Definition: build/ignition-msgs8/include/ignition/msgs/distortion.pb.h:101
void unsafe_arena_set_allocated_center(::ignition::msgs::Vector2d *center)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const Distortion * internal_default_instance()
Definition: build/ignition-msgs8/include/ignition/msgs/distortion.pb.h:122
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/distortion.pb.h:113
Distortion(::PROTOBUF_NAMESPACE_ID::Arena *arena)
::ignition::msgs::Vector2d * release_center()
friend void swap(Distortion &a, Distortion &b)
Definition: build/ignition-msgs8/include/ignition/msgs/distortion.pb.h:129
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: build/ignition-msgs8/include/ignition/msgs/distortion.pb.h:152
std::shared_ptr< const Distortion > ConstDistortionSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/distortion.pb.h:572
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::unique_ptr< const Distortion > ConstDistortionUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/distortion.pb.h:570
std::shared_ptr< Distortion > DistortionSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/distortion.pb.h:571
std::unique_ptr< Distortion > DistortionUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/distortion.pb.h:569
IGNITION_MSGS_VISIBLE DistortionDefaultTypeInternal _Distortion_default_instance_
IGNITION_MSGS_VISIBLE Vector2dDefaultTypeInternal _Vector2d_default_instance_
Definition: build/ignition-msgs8/include/ignition/msgs/actor.pb.h:53
Definition: build/ignition-msgs8/include/ignition/msgs/distortion.pb.h:58
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)
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)