Ignition Msgs

API Reference

5.8.1
camerasensor.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/camerasensor.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fcamerasensor_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fcamerasensor_2eproto
6 
7 #include <limits>
8 #include <string>
9 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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> // IWYU pragma: export
32 #include <google/protobuf/extension_set.h> // IWYU pragma: export
33 #include <google/protobuf/unknown_field_set.h>
37 #ifndef _MSC_VER
38 #pragma GCC system_header
39 #else
40 #pragma warning(push)
41 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
42 #endif
43 #ifdef __linux__
44 #include <sys/sysmacros.h>
45 #endif
46 #include <memory>
47 #include <ignition/msgs/Export.hh>
48 // @@protoc_insertion_point(includes)
49 #include <google/protobuf/port_def.inc>
50 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fcamerasensor_2eproto IGNITION_MSGS_VISIBLE
51 PROTOBUF_NAMESPACE_OPEN
52 namespace internal {
53 class AnyMetadata;
54 } // namespace internal
55 PROTOBUF_NAMESPACE_CLOSE
56 
57 // Internal implementation detail -- do not use these members.
59  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
60  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
61  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
62  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
63  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
64  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
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[];
68 };
69 extern IGNITION_MSGS_VISIBLE const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fcamerasensor_2eproto;
70 namespace ignition {
71 namespace msgs {
72 class CameraSensor;
73 class CameraSensorDefaultTypeInternal;
74 IGNITION_MSGS_VISIBLE extern CameraSensorDefaultTypeInternal _CameraSensor_default_instance_;
75 } // namespace msgs
76 } // namespace ignition
77 PROTOBUF_NAMESPACE_OPEN
78 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::CameraSensor* Arena::CreateMaybeMessage<::ignition::msgs::CameraSensor>(Arena*);
79 PROTOBUF_NAMESPACE_CLOSE
80 namespace ignition {
81 namespace msgs {
82 
83 // ===================================================================
84 
85 class IGNITION_MSGS_VISIBLE CameraSensor PROTOBUF_FINAL :
86  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.CameraSensor) */ {
87  public:
88  inline CameraSensor() : CameraSensor(nullptr) {}
89  virtual ~CameraSensor();
90 
91  CameraSensor(const CameraSensor& from);
92  CameraSensor(CameraSensor&& from) noexcept
93  : CameraSensor() {
94  *this = ::std::move(from);
95  }
96 
97  inline CameraSensor& operator=(const CameraSensor& from) {
98  CopyFrom(from);
99  return *this;
100  }
101  inline CameraSensor& operator=(CameraSensor&& from) noexcept {
102  if (GetArena() == from.GetArena()) {
103  if (this != &from) InternalSwap(&from);
104  } else {
105  CopyFrom(from);
106  }
107  return *this;
108  }
109 
110  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
111  return GetDescriptor();
112  }
113  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
114  return GetMetadataStatic().descriptor;
115  }
116  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
117  return GetMetadataStatic().reflection;
118  }
119  static const CameraSensor& default_instance();
120 
121  static inline const CameraSensor* internal_default_instance() {
122  return reinterpret_cast<const CameraSensor*>(
124  }
125  static constexpr int kIndexInFileMessages =
126  0;
127 
128  friend void swap(CameraSensor& a, CameraSensor& b) {
129  a.Swap(&b);
130  }
131  inline void Swap(CameraSensor* other) {
132  if (other == this) return;
133  if (GetArena() == other->GetArena()) {
134  InternalSwap(other);
135  } else {
136  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
137  }
138  }
139  void UnsafeArenaSwap(CameraSensor* other) {
140  if (other == this) return;
141  GOOGLE_DCHECK(GetArena() == other->GetArena());
142  InternalSwap(other);
143  }
144 
145  // implements Message ----------------------------------------------
146 
147  inline CameraSensor* New() const final {
148  return CreateMaybeMessage<CameraSensor>(nullptr);
149  }
150 
151  CameraSensor* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
152  return CreateMaybeMessage<CameraSensor>(arena);
153  }
154  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
155  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
156  void CopyFrom(const CameraSensor& from);
157  void MergeFrom(const CameraSensor& from);
158  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
159  bool IsInitialized() const final;
160 
161  size_t ByteSizeLong() const final;
162  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
163  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
164  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
165  int GetCachedSize() const final { return _cached_size_.Get(); }
166 
167  private:
168  inline void SharedCtor();
169  inline void SharedDtor();
170  void SetCachedSize(int size) const final;
171  void InternalSwap(CameraSensor* other);
172  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
173  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
174  return "ignition.msgs.CameraSensor";
175  }
176  protected:
177  explicit CameraSensor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
178  private:
179  static void ArenaDtor(void* object);
180  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
181  public:
182 
183  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
184  private:
185  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
186  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_ignition_2fmsgs_2fcamerasensor_2eproto);
187  return ::descriptor_table_ignition_2fmsgs_2fcamerasensor_2eproto.file_level_metadata[kIndexInFileMessages];
188  }
189 
190  public:
191 
192  // nested types ----------------------------------------------------
193 
194  // accessors -------------------------------------------------------
195 
196  enum : int {
197  kImageFormatFieldNumber = 4,
198  kSavePathFieldNumber = 8,
199  kHeaderFieldNumber = 1,
200  kImageSizeFieldNumber = 3,
201  kDistortionFieldNumber = 9,
202  kHorizontalFovFieldNumber = 2,
203  kNearClipFieldNumber = 5,
204  kFarClipFieldNumber = 6,
205  kSaveEnabledFieldNumber = 7,
206  };
207  // string image_format = 4;
209  const std::string& image_format() const;
210  void set_image_format(const std::string& value);
212  void set_image_format(const char* value);
213  void set_image_format(const char* value, size_t size);
217  private:
218  const std::string& _internal_image_format() const;
219  void _internal_set_image_format(const std::string& value);
220  std::string* _internal_mutable_image_format();
221  public:
222 
223  // string save_path = 8;
225  const std::string& save_path() const;
226  void set_save_path(const std::string& value);
227  void set_save_path(std::string&& value);
228  void set_save_path(const char* value);
229  void set_save_path(const char* value, size_t size);
233  private:
234  const std::string& _internal_save_path() const;
235  void _internal_set_save_path(const std::string& value);
236  std::string* _internal_mutable_save_path();
237  public:
238 
239  // .ignition.msgs.Header header = 1;
240  bool has_header() const;
241  private:
242  bool _internal_has_header() const;
243  public:
244  void clear_header();
245  const ::ignition::msgs::Header& header() const;
246  ::ignition::msgs::Header* release_header();
247  ::ignition::msgs::Header* mutable_header();
248  void set_allocated_header(::ignition::msgs::Header* header);
249  private:
250  const ::ignition::msgs::Header& _internal_header() const;
251  ::ignition::msgs::Header* _internal_mutable_header();
252  public:
254  ::ignition::msgs::Header* header);
255  ::ignition::msgs::Header* unsafe_arena_release_header();
256 
257  // .ignition.msgs.Vector2d image_size = 3;
258  bool has_image_size() const;
259  private:
260  bool _internal_has_image_size() const;
261  public:
263  const ::ignition::msgs::Vector2d& image_size() const;
264  ::ignition::msgs::Vector2d* release_image_size();
265  ::ignition::msgs::Vector2d* mutable_image_size();
266  void set_allocated_image_size(::ignition::msgs::Vector2d* image_size);
267  private:
268  const ::ignition::msgs::Vector2d& _internal_image_size() const;
269  ::ignition::msgs::Vector2d* _internal_mutable_image_size();
270  public:
272  ::ignition::msgs::Vector2d* image_size);
273  ::ignition::msgs::Vector2d* unsafe_arena_release_image_size();
274 
275  // .ignition.msgs.Distortion distortion = 9;
276  bool has_distortion() const;
277  private:
278  bool _internal_has_distortion() const;
279  public:
281  const ::ignition::msgs::Distortion& distortion() const;
282  ::ignition::msgs::Distortion* release_distortion();
283  ::ignition::msgs::Distortion* mutable_distortion();
284  void set_allocated_distortion(::ignition::msgs::Distortion* distortion);
285  private:
286  const ::ignition::msgs::Distortion& _internal_distortion() const;
287  ::ignition::msgs::Distortion* _internal_mutable_distortion();
288  public:
290  ::ignition::msgs::Distortion* distortion);
291  ::ignition::msgs::Distortion* unsafe_arena_release_distortion();
292 
293  // double horizontal_fov = 2;
295  double horizontal_fov() const;
296  void set_horizontal_fov(double value);
297  private:
298  double _internal_horizontal_fov() const;
299  void _internal_set_horizontal_fov(double value);
300  public:
301 
302  // double near_clip = 5;
304  double near_clip() const;
305  void set_near_clip(double value);
306  private:
307  double _internal_near_clip() const;
308  void _internal_set_near_clip(double value);
309  public:
310 
311  // double far_clip = 6;
313  double far_clip() const;
314  void set_far_clip(double value);
315  private:
316  double _internal_far_clip() const;
317  void _internal_set_far_clip(double value);
318  public:
319 
320  // bool save_enabled = 7;
322  bool save_enabled() const;
323  void set_save_enabled(bool value);
324  private:
325  bool _internal_save_enabled() const;
326  void _internal_set_save_enabled(bool value);
327  public:
328 
329  // @@protoc_insertion_point(class_scope:ignition.msgs.CameraSensor)
330  private:
331  class _Internal;
332 
333  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
334  typedef void InternalArenaConstructable_;
335  typedef void DestructorSkippable_;
336  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr image_format_;
337  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr save_path_;
338  ::ignition::msgs::Header* header_;
339  ::ignition::msgs::Vector2d* image_size_;
340  ::ignition::msgs::Distortion* distortion_;
341  double horizontal_fov_;
342  double near_clip_;
343  double far_clip_;
344  bool save_enabled_;
345  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
346  friend struct ::TableStruct_ignition_2fmsgs_2fcamerasensor_2eproto;
347 };
348 // ===================================================================
349 
350 
351 // ===================================================================
352 
353 #ifdef __GNUC__
354  #pragma GCC diagnostic push
355  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
356 #endif // __GNUC__
357 // CameraSensor
358 
359 // .ignition.msgs.Header header = 1;
360 inline bool CameraSensor::_internal_has_header() const {
361  return this != internal_default_instance() && header_ != nullptr;
362 }
363 inline bool CameraSensor::has_header() const {
364  return _internal_has_header();
365 }
366 inline const ::ignition::msgs::Header& CameraSensor::_internal_header() const {
367  const ::ignition::msgs::Header* p = header_;
368  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Header&>(
370 }
371 inline const ::ignition::msgs::Header& CameraSensor::header() const {
372  // @@protoc_insertion_point(field_get:ignition.msgs.CameraSensor.header)
373  return _internal_header();
374 }
375 inline void CameraSensor::unsafe_arena_set_allocated_header(
376  ::ignition::msgs::Header* header) {
377  if (GetArena() == nullptr) {
378  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
379  }
380  header_ = header;
381  if (header) {
382 
383  } else {
384 
385  }
386  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.CameraSensor.header)
387 }
388 inline ::ignition::msgs::Header* CameraSensor::release_header() {
389 
390  ::ignition::msgs::Header* temp = header_;
391  header_ = nullptr;
392  if (GetArena() != nullptr) {
393  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
394  }
395  return temp;
396 }
397 inline ::ignition::msgs::Header* CameraSensor::unsafe_arena_release_header() {
398  // @@protoc_insertion_point(field_release:ignition.msgs.CameraSensor.header)
399 
400  ::ignition::msgs::Header* temp = header_;
401  header_ = nullptr;
402  return temp;
403 }
404 inline ::ignition::msgs::Header* CameraSensor::_internal_mutable_header() {
405 
406  if (header_ == nullptr) {
407  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
408  header_ = p;
409  }
410  return header_;
411 }
412 inline ::ignition::msgs::Header* CameraSensor::mutable_header() {
413  // @@protoc_insertion_point(field_mutable:ignition.msgs.CameraSensor.header)
414  return _internal_mutable_header();
415 }
416 inline void CameraSensor::set_allocated_header(::ignition::msgs::Header* header) {
417  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
418  if (message_arena == nullptr) {
419  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
420  }
421  if (header) {
422  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
423  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header)->GetArena();
424  if (message_arena != submessage_arena) {
425  header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
426  message_arena, header, submessage_arena);
427  }
428 
429  } else {
430 
431  }
432  header_ = header;
433  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.CameraSensor.header)
434 }
435 
436 // double horizontal_fov = 2;
437 inline void CameraSensor::clear_horizontal_fov() {
438  horizontal_fov_ = 0;
439 }
440 inline double CameraSensor::_internal_horizontal_fov() const {
441  return horizontal_fov_;
442 }
443 inline double CameraSensor::horizontal_fov() const {
444  // @@protoc_insertion_point(field_get:ignition.msgs.CameraSensor.horizontal_fov)
445  return _internal_horizontal_fov();
446 }
447 inline void CameraSensor::_internal_set_horizontal_fov(double value) {
448 
449  horizontal_fov_ = value;
450 }
451 inline void CameraSensor::set_horizontal_fov(double value) {
452  _internal_set_horizontal_fov(value);
453  // @@protoc_insertion_point(field_set:ignition.msgs.CameraSensor.horizontal_fov)
454 }
455 
456 // .ignition.msgs.Vector2d image_size = 3;
457 inline bool CameraSensor::_internal_has_image_size() const {
458  return this != internal_default_instance() && image_size_ != nullptr;
459 }
460 inline bool CameraSensor::has_image_size() const {
461  return _internal_has_image_size();
462 }
463 inline const ::ignition::msgs::Vector2d& CameraSensor::_internal_image_size() const {
464  const ::ignition::msgs::Vector2d* p = image_size_;
465  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Vector2d&>(
467 }
468 inline const ::ignition::msgs::Vector2d& CameraSensor::image_size() const {
469  // @@protoc_insertion_point(field_get:ignition.msgs.CameraSensor.image_size)
470  return _internal_image_size();
471 }
472 inline void CameraSensor::unsafe_arena_set_allocated_image_size(
473  ::ignition::msgs::Vector2d* image_size) {
474  if (GetArena() == nullptr) {
475  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(image_size_);
476  }
477  image_size_ = image_size;
478  if (image_size) {
479 
480  } else {
481 
482  }
483  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.CameraSensor.image_size)
484 }
485 inline ::ignition::msgs::Vector2d* CameraSensor::release_image_size() {
486 
487  ::ignition::msgs::Vector2d* temp = image_size_;
488  image_size_ = nullptr;
489  if (GetArena() != nullptr) {
490  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
491  }
492  return temp;
493 }
494 inline ::ignition::msgs::Vector2d* CameraSensor::unsafe_arena_release_image_size() {
495  // @@protoc_insertion_point(field_release:ignition.msgs.CameraSensor.image_size)
496 
497  ::ignition::msgs::Vector2d* temp = image_size_;
498  image_size_ = nullptr;
499  return temp;
500 }
501 inline ::ignition::msgs::Vector2d* CameraSensor::_internal_mutable_image_size() {
502 
503  if (image_size_ == nullptr) {
504  auto* p = CreateMaybeMessage<::ignition::msgs::Vector2d>(GetArena());
505  image_size_ = p;
506  }
507  return image_size_;
508 }
509 inline ::ignition::msgs::Vector2d* CameraSensor::mutable_image_size() {
510  // @@protoc_insertion_point(field_mutable:ignition.msgs.CameraSensor.image_size)
511  return _internal_mutable_image_size();
512 }
513 inline void CameraSensor::set_allocated_image_size(::ignition::msgs::Vector2d* image_size) {
514  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
515  if (message_arena == nullptr) {
516  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(image_size_);
517  }
518  if (image_size) {
519  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
520  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(image_size)->GetArena();
521  if (message_arena != submessage_arena) {
522  image_size = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
523  message_arena, image_size, submessage_arena);
524  }
525 
526  } else {
527 
528  }
529  image_size_ = image_size;
530  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.CameraSensor.image_size)
531 }
532 
533 // string image_format = 4;
534 inline void CameraSensor::clear_image_format() {
535  image_format_.ClearToEmpty();
536 }
537 inline const std::string& CameraSensor::image_format() const {
538  // @@protoc_insertion_point(field_get:ignition.msgs.CameraSensor.image_format)
539  return _internal_image_format();
540 }
541 inline void CameraSensor::set_image_format(const std::string& value) {
542  _internal_set_image_format(value);
543  // @@protoc_insertion_point(field_set:ignition.msgs.CameraSensor.image_format)
544 }
545 inline std::string* CameraSensor::mutable_image_format() {
546  // @@protoc_insertion_point(field_mutable:ignition.msgs.CameraSensor.image_format)
547  return _internal_mutable_image_format();
548 }
549 inline const std::string& CameraSensor::_internal_image_format() const {
550  return image_format_.Get();
551 }
552 inline void CameraSensor::_internal_set_image_format(const std::string& value) {
553 
554  image_format_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
555 }
556 inline void CameraSensor::set_image_format(std::string&& value) {
557 
558  image_format_.Set(
559  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
560  // @@protoc_insertion_point(field_set_rvalue:ignition.msgs.CameraSensor.image_format)
561 }
562 inline void CameraSensor::set_image_format(const char* value) {
563  GOOGLE_DCHECK(value != nullptr);
564 
565  image_format_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
566  // @@protoc_insertion_point(field_set_char:ignition.msgs.CameraSensor.image_format)
567 }
568 inline void CameraSensor::set_image_format(const char* value,
569  size_t size) {
570 
571  image_format_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
572  reinterpret_cast<const char*>(value), size), GetArena());
573  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.CameraSensor.image_format)
574 }
575 inline std::string* CameraSensor::_internal_mutable_image_format() {
576 
577  return image_format_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
578 }
579 inline std::string* CameraSensor::release_image_format() {
580  // @@protoc_insertion_point(field_release:ignition.msgs.CameraSensor.image_format)
581  return image_format_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
582 }
583 inline void CameraSensor::set_allocated_image_format(std::string* image_format) {
584  if (image_format != nullptr) {
585 
586  } else {
587 
588  }
589  image_format_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), image_format,
590  GetArena());
591  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.CameraSensor.image_format)
592 }
593 
594 // double near_clip = 5;
595 inline void CameraSensor::clear_near_clip() {
596  near_clip_ = 0;
597 }
598 inline double CameraSensor::_internal_near_clip() const {
599  return near_clip_;
600 }
601 inline double CameraSensor::near_clip() const {
602  // @@protoc_insertion_point(field_get:ignition.msgs.CameraSensor.near_clip)
603  return _internal_near_clip();
604 }
605 inline void CameraSensor::_internal_set_near_clip(double value) {
606 
607  near_clip_ = value;
608 }
609 inline void CameraSensor::set_near_clip(double value) {
610  _internal_set_near_clip(value);
611  // @@protoc_insertion_point(field_set:ignition.msgs.CameraSensor.near_clip)
612 }
613 
614 // double far_clip = 6;
615 inline void CameraSensor::clear_far_clip() {
616  far_clip_ = 0;
617 }
618 inline double CameraSensor::_internal_far_clip() const {
619  return far_clip_;
620 }
621 inline double CameraSensor::far_clip() const {
622  // @@protoc_insertion_point(field_get:ignition.msgs.CameraSensor.far_clip)
623  return _internal_far_clip();
624 }
625 inline void CameraSensor::_internal_set_far_clip(double value) {
626 
627  far_clip_ = value;
628 }
629 inline void CameraSensor::set_far_clip(double value) {
630  _internal_set_far_clip(value);
631  // @@protoc_insertion_point(field_set:ignition.msgs.CameraSensor.far_clip)
632 }
633 
634 // bool save_enabled = 7;
635 inline void CameraSensor::clear_save_enabled() {
636  save_enabled_ = false;
637 }
638 inline bool CameraSensor::_internal_save_enabled() const {
639  return save_enabled_;
640 }
641 inline bool CameraSensor::save_enabled() const {
642  // @@protoc_insertion_point(field_get:ignition.msgs.CameraSensor.save_enabled)
643  return _internal_save_enabled();
644 }
645 inline void CameraSensor::_internal_set_save_enabled(bool value) {
646 
647  save_enabled_ = value;
648 }
649 inline void CameraSensor::set_save_enabled(bool value) {
650  _internal_set_save_enabled(value);
651  // @@protoc_insertion_point(field_set:ignition.msgs.CameraSensor.save_enabled)
652 }
653 
654 // string save_path = 8;
655 inline void CameraSensor::clear_save_path() {
656  save_path_.ClearToEmpty();
657 }
658 inline const std::string& CameraSensor::save_path() const {
659  // @@protoc_insertion_point(field_get:ignition.msgs.CameraSensor.save_path)
660  return _internal_save_path();
661 }
662 inline void CameraSensor::set_save_path(const std::string& value) {
663  _internal_set_save_path(value);
664  // @@protoc_insertion_point(field_set:ignition.msgs.CameraSensor.save_path)
665 }
666 inline std::string* CameraSensor::mutable_save_path() {
667  // @@protoc_insertion_point(field_mutable:ignition.msgs.CameraSensor.save_path)
668  return _internal_mutable_save_path();
669 }
670 inline const std::string& CameraSensor::_internal_save_path() const {
671  return save_path_.Get();
672 }
673 inline void CameraSensor::_internal_set_save_path(const std::string& value) {
674 
675  save_path_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
676 }
677 inline void CameraSensor::set_save_path(std::string&& value) {
678 
679  save_path_.Set(
680  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
681  // @@protoc_insertion_point(field_set_rvalue:ignition.msgs.CameraSensor.save_path)
682 }
683 inline void CameraSensor::set_save_path(const char* value) {
684  GOOGLE_DCHECK(value != nullptr);
685 
686  save_path_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
687  // @@protoc_insertion_point(field_set_char:ignition.msgs.CameraSensor.save_path)
688 }
689 inline void CameraSensor::set_save_path(const char* value,
690  size_t size) {
691 
692  save_path_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
693  reinterpret_cast<const char*>(value), size), GetArena());
694  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.CameraSensor.save_path)
695 }
696 inline std::string* CameraSensor::_internal_mutable_save_path() {
697 
698  return save_path_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
699 }
700 inline std::string* CameraSensor::release_save_path() {
701  // @@protoc_insertion_point(field_release:ignition.msgs.CameraSensor.save_path)
702  return save_path_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
703 }
704 inline void CameraSensor::set_allocated_save_path(std::string* save_path) {
705  if (save_path != nullptr) {
706 
707  } else {
708 
709  }
710  save_path_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), save_path,
711  GetArena());
712  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.CameraSensor.save_path)
713 }
714 
715 // .ignition.msgs.Distortion distortion = 9;
716 inline bool CameraSensor::_internal_has_distortion() const {
717  return this != internal_default_instance() && distortion_ != nullptr;
718 }
719 inline bool CameraSensor::has_distortion() const {
720  return _internal_has_distortion();
721 }
722 inline const ::ignition::msgs::Distortion& CameraSensor::_internal_distortion() const {
723  const ::ignition::msgs::Distortion* p = distortion_;
724  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Distortion&>(
726 }
727 inline const ::ignition::msgs::Distortion& CameraSensor::distortion() const {
728  // @@protoc_insertion_point(field_get:ignition.msgs.CameraSensor.distortion)
729  return _internal_distortion();
730 }
731 inline void CameraSensor::unsafe_arena_set_allocated_distortion(
732  ::ignition::msgs::Distortion* distortion) {
733  if (GetArena() == nullptr) {
734  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(distortion_);
735  }
736  distortion_ = distortion;
737  if (distortion) {
738 
739  } else {
740 
741  }
742  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.CameraSensor.distortion)
743 }
744 inline ::ignition::msgs::Distortion* CameraSensor::release_distortion() {
745 
746  ::ignition::msgs::Distortion* temp = distortion_;
747  distortion_ = nullptr;
748  if (GetArena() != nullptr) {
749  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
750  }
751  return temp;
752 }
753 inline ::ignition::msgs::Distortion* CameraSensor::unsafe_arena_release_distortion() {
754  // @@protoc_insertion_point(field_release:ignition.msgs.CameraSensor.distortion)
755 
756  ::ignition::msgs::Distortion* temp = distortion_;
757  distortion_ = nullptr;
758  return temp;
759 }
760 inline ::ignition::msgs::Distortion* CameraSensor::_internal_mutable_distortion() {
761 
762  if (distortion_ == nullptr) {
763  auto* p = CreateMaybeMessage<::ignition::msgs::Distortion>(GetArena());
764  distortion_ = p;
765  }
766  return distortion_;
767 }
768 inline ::ignition::msgs::Distortion* CameraSensor::mutable_distortion() {
769  // @@protoc_insertion_point(field_mutable:ignition.msgs.CameraSensor.distortion)
770  return _internal_mutable_distortion();
771 }
772 inline void CameraSensor::set_allocated_distortion(::ignition::msgs::Distortion* distortion) {
773  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
774  if (message_arena == nullptr) {
775  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(distortion_);
776  }
777  if (distortion) {
778  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
779  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(distortion)->GetArena();
780  if (message_arena != submessage_arena) {
781  distortion = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
782  message_arena, distortion, submessage_arena);
783  }
784 
785  } else {
786 
787  }
788  distortion_ = distortion;
789  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.CameraSensor.distortion)
790 }
791 
792 #ifdef __GNUC__
793  #pragma GCC diagnostic pop
794 #endif // __GNUC__
795 
800 // @@protoc_insertion_point(namespace_scope)
801 
802 } // namespace msgs
803 } // namespace ignition
804 
805 #ifdef _MSC_VER
806 #pragma warning(pop)
807 #endif
808 // @@protoc_insertion_point(global_scope)
809 
810 #include <google/protobuf/port_undef.inc>
811 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fcamerasensor_2eproto
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fcamerasensor_2eproto
void unsafe_arena_set_allocated_distortion(::ignition::msgs::Distortion *distortion)
void set_save_path(const std::string &value)
::ignition::msgs::Vector2d * unsafe_arena_release_image_size()
CameraSensor(CameraSensor &&from) noexcept
Definition: camerasensor.pb.h:92
void set_horizontal_fov(double value)
CameraSensor & operator=(CameraSensor &&from) noexcept
Definition: camerasensor.pb.h:101
const std::string & image_format() const
void MergeFrom(const CameraSensor &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: camerasensor.pb.h:116
std::string * release_save_path()
CameraSensor * New() const final
Definition: camerasensor.pb.h:147
void set_image_format(const char *value)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::ignition::msgs::Header * release_header()
void set_allocated_save_path(std::string *save_path)
::ignition::msgs::Header * mutable_header()
void set_save_path(const char *value)
std::string * mutable_image_format()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: camerasensor.pb.h:110
::ignition::msgs::Distortion * mutable_distortion()
CameraSensor()
Definition: camerasensor.pb.h:88
void set_save_enabled(bool value)
void set_save_path(std::string &&value)
friend void swap(CameraSensor &a, CameraSensor &b)
Definition: camerasensor.pb.h:128
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
CameraSensor & operator=(const CameraSensor &from)
Definition: camerasensor.pb.h:97
void set_save_path(const char *value, size_t size)
std::string * release_image_format()
::ignition::msgs::Vector2d * release_image_size()
void set_image_format(const char *value, size_t size)
static const CameraSensor & default_instance()
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
void set_allocated_distortion(::ignition::msgs::Distortion *distortion)
void set_near_clip(double value)
CameraSensor(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void Swap(CameraSensor *other)
Definition: camerasensor.pb.h:131
static const CameraSensor * internal_default_instance()
Definition: camerasensor.pb.h:121
void UnsafeArenaSwap(CameraSensor *other)
Definition: camerasensor.pb.h:139
::ignition::msgs::Header * unsafe_arena_release_header()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void unsafe_arena_set_allocated_image_size(::ignition::msgs::Vector2d *image_size)
std::string * mutable_save_path()
const std::string & save_path() const
const ::ignition::msgs::Distortion & distortion() const
void set_allocated_header(::ignition::msgs::Header *header)
void set_allocated_image_size(::ignition::msgs::Vector2d *image_size)
CameraSensor * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: camerasensor.pb.h:151
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: camerasensor.pb.h:113
void set_far_clip(double value)
::ignition::msgs::Vector2d * mutable_image_size()
const ::ignition::msgs::Vector2d & image_size() const
void set_image_format(const std::string &value)
::ignition::msgs::Distortion * unsafe_arena_release_distortion()
::ignition::msgs::Distortion * release_distortion()
CameraSensor(const CameraSensor &from)
const ::ignition::msgs::Header & header() const
void set_allocated_image_format(std::string *image_format)
void CopyFrom(const CameraSensor &from)
void set_image_format(std::string &&value)
std::unique_ptr< const CameraSensor > ConstCameraSensorUniquePtr
Definition: camerasensor.pb.h:797
IGNITION_MSGS_VISIBLE CameraSensorDefaultTypeInternal _CameraSensor_default_instance_
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::unique_ptr< CameraSensor > CameraSensorUniquePtr
Definition: camerasensor.pb.h:796
std::shared_ptr< CameraSensor > CameraSensorSharedPtr
Definition: camerasensor.pb.h:798
IGNITION_MSGS_VISIBLE DistortionDefaultTypeInternal _Distortion_default_instance_
std::shared_ptr< const CameraSensor > ConstCameraSensorSharedPtr
Definition: camerasensor.pb.h:799
IGNITION_MSGS_VISIBLE Vector2dDefaultTypeInternal _Vector2d_default_instance_
Definition: actor.pb.h:52
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)