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