Gazebo Msgs

API Reference

9.5.1
camerasensor.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/camerasensor.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fcamerasensor_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fcamerasensor_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < GOOGLE_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/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include <google/protobuf/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
34 #include "gz/msgs/distortion.pb.h"
35 #include "gz/msgs/double.pb.h"
36 #include "gz/msgs/header.pb.h"
37 #include "gz/msgs/image.pb.h"
38 #include "gz/msgs/lens.pb.h"
39 #include "gz/msgs/sensor_noise.pb.h"
40 #include "gz/msgs/vector2d.pb.h"
41 // @@protoc_insertion_point(includes)
42 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fcamerasensor_2eproto GZ_MSGS_VISIBLE
43 
45 // Internal implementation detail -- do not use these members.
46 struct GZ_MSGS_VISIBLE TableStruct {
47  static const ::google::protobuf::internal::ParseTableField entries[];
48  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
49  static const ::google::protobuf::internal::ParseTable schema[1];
50  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
51  static const ::google::protobuf::internal::SerializationTable serialization_table[];
52  static const ::google::protobuf::uint32 offsets[];
53 };
54 void GZ_MSGS_VISIBLE AddDescriptors();
55 } // namespace protobuf_gz_2fmsgs_2fcamerasensor_2eproto
56 namespace gz {
57 namespace msgs {
58 class CameraSensor;
59 class CameraSensorDefaultTypeInternal;
60 GZ_MSGS_VISIBLE extern CameraSensorDefaultTypeInternal _CameraSensor_default_instance_;
61 } // namespace msgs
62 } // namespace gz
63 namespace google {
64 namespace protobuf {
65 template<> GZ_MSGS_VISIBLE ::gz::msgs::CameraSensor* Arena::CreateMaybeMessage<::gz::msgs::CameraSensor>(Arena*);
66 } // namespace protobuf
67 } // namespace google
68 namespace gz {
69 namespace msgs {
70 
78 };
79 GZ_MSGS_VISIBLE bool CameraSensor_BoundingBoxType_IsValid(int value);
83 
84 GZ_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* CameraSensor_BoundingBoxType_descriptor();
86  return ::google::protobuf::internal::NameOfEnum(
88 }
90  const ::std::string& name, CameraSensor_BoundingBoxType* value) {
91  return ::google::protobuf::internal::ParseNamedEnum<CameraSensor_BoundingBoxType>(
93 }
100 };
101 GZ_MSGS_VISIBLE bool CameraSensor_SegmentationType_IsValid(int value);
105 
106 GZ_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* CameraSensor_SegmentationType_descriptor();
108  return ::google::protobuf::internal::NameOfEnum(
110 }
112  const ::std::string& name, CameraSensor_SegmentationType* value) {
113  return ::google::protobuf::internal::ParseNamedEnum<CameraSensor_SegmentationType>(
115 }
116 // ===================================================================
117 
118 class GZ_MSGS_VISIBLE CameraSensor : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.CameraSensor) */ {
119  public:
120  CameraSensor();
121  virtual ~CameraSensor();
122 
123  CameraSensor(const CameraSensor& from);
124 
125  inline CameraSensor& operator=(const CameraSensor& from) {
126  CopyFrom(from);
127  return *this;
128  }
129  #if LANG_CXX11
130  CameraSensor(CameraSensor&& from) noexcept
131  : CameraSensor() {
132  *this = ::std::move(from);
133  }
134 
135  inline CameraSensor& operator=(CameraSensor&& from) noexcept {
136  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
137  if (this != &from) InternalSwap(&from);
138  } else {
139  CopyFrom(from);
140  }
141  return *this;
142  }
143  #endif
144  static const ::google::protobuf::Descriptor* descriptor();
145  static const CameraSensor& default_instance();
146 
147  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
148  static inline const CameraSensor* internal_default_instance() {
149  return reinterpret_cast<const CameraSensor*>(
151  }
152  static constexpr int kIndexInFileMessages =
153  0;
154 
155  void Swap(CameraSensor* other);
156  friend void swap(CameraSensor& a, CameraSensor& b) {
157  a.Swap(&b);
158  }
159 
160  // implements Message ----------------------------------------------
161 
162  inline CameraSensor* New() const final {
163  return CreateMaybeMessage<CameraSensor>(NULL);
164  }
165 
166  CameraSensor* New(::google::protobuf::Arena* arena) const final {
167  return CreateMaybeMessage<CameraSensor>(arena);
168  }
169  void CopyFrom(const ::google::protobuf::Message& from) final;
170  void MergeFrom(const ::google::protobuf::Message& from) final;
171  void CopyFrom(const CameraSensor& from);
172  void MergeFrom(const CameraSensor& from);
173  void Clear() final;
174  bool IsInitialized() const final;
175 
176  size_t ByteSizeLong() const final;
177  bool MergePartialFromCodedStream(
178  ::google::protobuf::io::CodedInputStream* input) final;
179  void SerializeWithCachedSizes(
180  ::google::protobuf::io::CodedOutputStream* output) const final;
181  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
182  bool deterministic, ::google::protobuf::uint8* target) const final;
183  int GetCachedSize() const final { return _cached_size_.Get(); }
184 
185  private:
186  void SharedCtor();
187  void SharedDtor();
188  void SetCachedSize(int size) const final;
189  void InternalSwap(CameraSensor* other);
190  private:
191  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
192  return NULL;
193  }
194  inline void* MaybeArenaPtr() const {
195  return NULL;
196  }
197  public:
198 
199  ::google::protobuf::Metadata GetMetadata() const final;
200 
201  // nested types ----------------------------------------------------
202 
204  static const BoundingBoxType NO_BOUNDING_BOX =
206  static const BoundingBoxType FULL_BOX_2D =
208  static const BoundingBoxType VISIBLE_BOX_2D =
210  static const BoundingBoxType BOX_3D =
212  static inline bool BoundingBoxType_IsValid(int value) {
214  }
215  static const BoundingBoxType BoundingBoxType_MIN =
217  static const BoundingBoxType BoundingBoxType_MAX =
219  static const int BoundingBoxType_ARRAYSIZE =
221  static inline const ::google::protobuf::EnumDescriptor*
224  }
225  static inline const ::std::string& BoundingBoxType_Name(BoundingBoxType value) {
226  return CameraSensor_BoundingBoxType_Name(value);
227  }
228  static inline bool BoundingBoxType_Parse(const ::std::string& name,
229  BoundingBoxType* value) {
230  return CameraSensor_BoundingBoxType_Parse(name, value);
231  }
232 
234  static const SegmentationType NO_SEGMENTATION =
236  static const SegmentationType SEMANTIC =
238  static const SegmentationType PANOPTIC =
240  static inline bool SegmentationType_IsValid(int value) {
242  }
243  static const SegmentationType SegmentationType_MIN =
245  static const SegmentationType SegmentationType_MAX =
247  static const int SegmentationType_ARRAYSIZE =
249  static inline const ::google::protobuf::EnumDescriptor*
252  }
253  static inline const ::std::string& SegmentationType_Name(SegmentationType value) {
255  }
256  static inline bool SegmentationType_Parse(const ::std::string& name,
257  SegmentationType* value) {
258  return CameraSensor_SegmentationType_Parse(name, value);
259  }
260 
261  // accessors -------------------------------------------------------
262 
263  // string image_format = 4;
264  void clear_image_format();
265  static const int kImageFormatFieldNumber = 4;
266  const ::std::string& image_format() const;
267  void set_image_format(const ::std::string& value);
268  #if LANG_CXX11
269  void set_image_format(::std::string&& value);
270  #endif
271  void set_image_format(const char* value);
272  void set_image_format(const char* value, size_t size);
273  ::std::string* mutable_image_format();
274  ::std::string* release_image_format();
275  void set_allocated_image_format(::std::string* image_format);
276 
277  // string save_path = 8;
278  void clear_save_path();
279  static const int kSavePathFieldNumber = 8;
280  const ::std::string& save_path() const;
281  void set_save_path(const ::std::string& value);
282  #if LANG_CXX11
283  void set_save_path(::std::string&& value);
284  #endif
285  void set_save_path(const char* value);
286  void set_save_path(const char* value, size_t size);
287  ::std::string* mutable_save_path();
288  ::std::string* release_save_path();
289  void set_allocated_save_path(::std::string* save_path);
290 
291  // string triggered_topic = 17;
292  void clear_triggered_topic();
293  static const int kTriggeredTopicFieldNumber = 17;
294  const ::std::string& triggered_topic() const;
295  void set_triggered_topic(const ::std::string& value);
296  #if LANG_CXX11
297  void set_triggered_topic(::std::string&& value);
298  #endif
299  void set_triggered_topic(const char* value);
300  void set_triggered_topic(const char* value, size_t size);
301  ::std::string* mutable_triggered_topic();
302  ::std::string* release_triggered_topic();
303  void set_allocated_triggered_topic(::std::string* triggered_topic);
304 
305  // .gz.msgs.Header header = 1;
306  bool has_header() const;
307  void clear_header();
308  static const int kHeaderFieldNumber = 1;
309  private:
310  const ::gz::msgs::Header& _internal_header() const;
311  public:
312  const ::gz::msgs::Header& header() const;
313  ::gz::msgs::Header* release_header();
314  ::gz::msgs::Header* mutable_header();
315  void set_allocated_header(::gz::msgs::Header* header);
316 
317  // .gz.msgs.Vector2d image_size = 3;
318  bool has_image_size() const;
319  void clear_image_size();
320  static const int kImageSizeFieldNumber = 3;
321  private:
322  const ::gz::msgs::Vector2d& _internal_image_size() const;
323  public:
324  const ::gz::msgs::Vector2d& image_size() const;
325  ::gz::msgs::Vector2d* release_image_size();
326  ::gz::msgs::Vector2d* mutable_image_size();
327  void set_allocated_image_size(::gz::msgs::Vector2d* image_size);
328 
329  // .gz.msgs.Distortion distortion = 9;
330  bool has_distortion() const;
331  void clear_distortion();
332  static const int kDistortionFieldNumber = 9;
333  private:
334  const ::gz::msgs::Distortion& _internal_distortion() const;
335  public:
336  const ::gz::msgs::Distortion& distortion() const;
337  ::gz::msgs::Distortion* release_distortion();
338  ::gz::msgs::Distortion* mutable_distortion();
339  void set_allocated_distortion(::gz::msgs::Distortion* distortion);
340 
341  // .gz.msgs.SensorNoise image_noise = 10;
342  bool has_image_noise() const;
343  void clear_image_noise();
344  static const int kImageNoiseFieldNumber = 10;
345  private:
346  const ::gz::msgs::SensorNoise& _internal_image_noise() const;
347  public:
348  const ::gz::msgs::SensorNoise& image_noise() const;
349  ::gz::msgs::SensorNoise* release_image_noise();
350  ::gz::msgs::SensorNoise* mutable_image_noise();
351  void set_allocated_image_noise(::gz::msgs::SensorNoise* image_noise);
352 
353  // .gz.msgs.Double depth_near_clip = 11;
354  bool has_depth_near_clip() const;
355  void clear_depth_near_clip();
356  static const int kDepthNearClipFieldNumber = 11;
357  private:
358  const ::gz::msgs::Double& _internal_depth_near_clip() const;
359  public:
360  const ::gz::msgs::Double& depth_near_clip() const;
361  ::gz::msgs::Double* release_depth_near_clip();
362  ::gz::msgs::Double* mutable_depth_near_clip();
363  void set_allocated_depth_near_clip(::gz::msgs::Double* depth_near_clip);
364 
365  // .gz.msgs.Double depth_far_clip = 12;
366  bool has_depth_far_clip() const;
367  void clear_depth_far_clip();
368  static const int kDepthFarClipFieldNumber = 12;
369  private:
370  const ::gz::msgs::Double& _internal_depth_far_clip() const;
371  public:
372  const ::gz::msgs::Double& depth_far_clip() const;
373  ::gz::msgs::Double* release_depth_far_clip();
374  ::gz::msgs::Double* mutable_depth_far_clip();
375  void set_allocated_depth_far_clip(::gz::msgs::Double* depth_far_clip);
376 
377  // .gz.msgs.Lens lens = 15;
378  bool has_lens() const;
379  void clear_lens();
380  static const int kLensFieldNumber = 15;
381  private:
382  const ::gz::msgs::Lens& _internal_lens() const;
383  public:
384  const ::gz::msgs::Lens& lens() const;
385  ::gz::msgs::Lens* release_lens();
386  ::gz::msgs::Lens* mutable_lens();
387  void set_allocated_lens(::gz::msgs::Lens* lens);
388 
389  // double horizontal_fov = 2;
390  void clear_horizontal_fov();
391  static const int kHorizontalFovFieldNumber = 2;
392  double horizontal_fov() const;
393  void set_horizontal_fov(double value);
394 
395  // double near_clip = 5;
396  void clear_near_clip();
397  static const int kNearClipFieldNumber = 5;
398  double near_clip() const;
399  void set_near_clip(double value);
400 
401  // double far_clip = 6;
402  void clear_far_clip();
403  static const int kFarClipFieldNumber = 6;
404  double far_clip() const;
405  void set_far_clip(double value);
406 
407  // .gz.msgs.CameraSensor.BoundingBoxType bounding_box_type = 13;
408  void clear_bounding_box_type();
409  static const int kBoundingBoxTypeFieldNumber = 13;
410  ::gz::msgs::CameraSensor_BoundingBoxType bounding_box_type() const;
411  void set_bounding_box_type(::gz::msgs::CameraSensor_BoundingBoxType value);
412 
413  // .gz.msgs.CameraSensor.SegmentationType segmentation_type = 14;
414  void clear_segmentation_type();
415  static const int kSegmentationTypeFieldNumber = 14;
416  ::gz::msgs::CameraSensor_SegmentationType segmentation_type() const;
417  void set_segmentation_type(::gz::msgs::CameraSensor_SegmentationType value);
418 
419  // bool save_enabled = 7;
420  void clear_save_enabled();
421  static const int kSaveEnabledFieldNumber = 7;
422  bool save_enabled() const;
423  void set_save_enabled(bool value);
424 
425  // bool triggered = 16;
426  void clear_triggered();
427  static const int kTriggeredFieldNumber = 16;
428  bool triggered() const;
429  void set_triggered(bool value);
430 
431  // bool is_depth_camera = 20;
432  void clear_is_depth_camera();
433  static const int kIsDepthCameraFieldNumber = 20;
434  bool is_depth_camera() const;
435  void set_is_depth_camera(bool value);
436 
437  // int32 anti_aliasing = 18;
438  void clear_anti_aliasing();
439  static const int kAntiAliasingFieldNumber = 18;
440  ::google::protobuf::int32 anti_aliasing() const;
441  void set_anti_aliasing(::google::protobuf::int32 value);
442 
443  // uint32 visibility_mask = 19;
444  void clear_visibility_mask();
445  static const int kVisibilityMaskFieldNumber = 19;
446  ::google::protobuf::uint32 visibility_mask() const;
447  void set_visibility_mask(::google::protobuf::uint32 value);
448 
449  // .gz.msgs.PixelFormatType pixel_format = 21;
450  void clear_pixel_format();
451  static const int kPixelFormatFieldNumber = 21;
452  ::gz::msgs::PixelFormatType pixel_format() const;
453  void set_pixel_format(::gz::msgs::PixelFormatType value);
454 
455  // @@protoc_insertion_point(class_scope:gz.msgs.CameraSensor)
456  private:
457 
458  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
459  ::google::protobuf::internal::ArenaStringPtr image_format_;
460  ::google::protobuf::internal::ArenaStringPtr save_path_;
461  ::google::protobuf::internal::ArenaStringPtr triggered_topic_;
462  ::gz::msgs::Header* header_;
463  ::gz::msgs::Vector2d* image_size_;
464  ::gz::msgs::Distortion* distortion_;
465  ::gz::msgs::SensorNoise* image_noise_;
466  ::gz::msgs::Double* depth_near_clip_;
467  ::gz::msgs::Double* depth_far_clip_;
468  ::gz::msgs::Lens* lens_;
469  double horizontal_fov_;
470  double near_clip_;
471  double far_clip_;
472  int bounding_box_type_;
473  int segmentation_type_;
474  bool save_enabled_;
475  bool triggered_;
476  bool is_depth_camera_;
477  ::google::protobuf::int32 anti_aliasing_;
478  ::google::protobuf::uint32 visibility_mask_;
479  int pixel_format_;
480  mutable ::google::protobuf::internal::CachedSize _cached_size_;
481  friend struct ::protobuf_gz_2fmsgs_2fcamerasensor_2eproto::TableStruct;
482 };
483 // ===================================================================
484 
485 
486 // ===================================================================
487 
488 #ifdef __GNUC__
489  #pragma GCC diagnostic push
490  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
491 #endif // __GNUC__
492 // CameraSensor
493 
494 // .gz.msgs.Header header = 1;
495 inline bool CameraSensor::has_header() const {
496  return this != internal_default_instance() && header_ != NULL;
497 }
498 inline const ::gz::msgs::Header& CameraSensor::_internal_header() const {
499  return *header_;
500 }
501 inline const ::gz::msgs::Header& CameraSensor::header() const {
502  const ::gz::msgs::Header* p = header_;
503  // @@protoc_insertion_point(field_get:gz.msgs.CameraSensor.header)
504  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
506 }
507 inline ::gz::msgs::Header* CameraSensor::release_header() {
508  // @@protoc_insertion_point(field_release:gz.msgs.CameraSensor.header)
509 
510  ::gz::msgs::Header* temp = header_;
511  header_ = NULL;
512  return temp;
513 }
514 inline ::gz::msgs::Header* CameraSensor::mutable_header() {
515 
516  if (header_ == NULL) {
517  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
518  header_ = p;
519  }
520  // @@protoc_insertion_point(field_mutable:gz.msgs.CameraSensor.header)
521  return header_;
522 }
524  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
525  if (message_arena == NULL) {
526  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
527  }
528  if (header) {
529  ::google::protobuf::Arena* submessage_arena = NULL;
530  if (message_arena != submessage_arena) {
531  header = ::google::protobuf::internal::GetOwnedMessage(
532  message_arena, header, submessage_arena);
533  }
534 
535  } else {
536 
537  }
538  header_ = header;
539  // @@protoc_insertion_point(field_set_allocated:gz.msgs.CameraSensor.header)
540 }
541 
542 // double horizontal_fov = 2;
544  horizontal_fov_ = 0;
545 }
546 inline double CameraSensor::horizontal_fov() const {
547  // @@protoc_insertion_point(field_get:gz.msgs.CameraSensor.horizontal_fov)
548  return horizontal_fov_;
549 }
550 inline void CameraSensor::set_horizontal_fov(double value) {
551 
552  horizontal_fov_ = value;
553  // @@protoc_insertion_point(field_set:gz.msgs.CameraSensor.horizontal_fov)
554 }
555 
556 // .gz.msgs.Vector2d image_size = 3;
557 inline bool CameraSensor::has_image_size() const {
558  return this != internal_default_instance() && image_size_ != NULL;
559 }
560 inline const ::gz::msgs::Vector2d& CameraSensor::_internal_image_size() const {
561  return *image_size_;
562 }
563 inline const ::gz::msgs::Vector2d& CameraSensor::image_size() const {
564  const ::gz::msgs::Vector2d* p = image_size_;
565  // @@protoc_insertion_point(field_get:gz.msgs.CameraSensor.image_size)
566  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Vector2d*>(
568 }
569 inline ::gz::msgs::Vector2d* CameraSensor::release_image_size() {
570  // @@protoc_insertion_point(field_release:gz.msgs.CameraSensor.image_size)
571 
572  ::gz::msgs::Vector2d* temp = image_size_;
573  image_size_ = NULL;
574  return temp;
575 }
576 inline ::gz::msgs::Vector2d* CameraSensor::mutable_image_size() {
577 
578  if (image_size_ == NULL) {
579  auto* p = CreateMaybeMessage<::gz::msgs::Vector2d>(GetArenaNoVirtual());
580  image_size_ = p;
581  }
582  // @@protoc_insertion_point(field_mutable:gz.msgs.CameraSensor.image_size)
583  return image_size_;
584 }
586  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
587  if (message_arena == NULL) {
588  delete reinterpret_cast< ::google::protobuf::MessageLite*>(image_size_);
589  }
590  if (image_size) {
591  ::google::protobuf::Arena* submessage_arena = NULL;
592  if (message_arena != submessage_arena) {
593  image_size = ::google::protobuf::internal::GetOwnedMessage(
594  message_arena, image_size, submessage_arena);
595  }
596 
597  } else {
598 
599  }
600  image_size_ = image_size;
601  // @@protoc_insertion_point(field_set_allocated:gz.msgs.CameraSensor.image_size)
602 }
603 
604 // string image_format = 4;
606  image_format_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
607 }
608 inline const ::std::string& CameraSensor::image_format() const {
609  // @@protoc_insertion_point(field_get:gz.msgs.CameraSensor.image_format)
610  return image_format_.GetNoArena();
611 }
612 inline void CameraSensor::set_image_format(const ::std::string& value) {
613 
614  image_format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
615  // @@protoc_insertion_point(field_set:gz.msgs.CameraSensor.image_format)
616 }
617 #if LANG_CXX11
618 inline void CameraSensor::set_image_format(::std::string&& value) {
619 
620  image_format_.SetNoArena(
621  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
622  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.CameraSensor.image_format)
623 }
624 #endif
625 inline void CameraSensor::set_image_format(const char* value) {
626  GOOGLE_DCHECK(value != NULL);
627 
628  image_format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
629  // @@protoc_insertion_point(field_set_char:gz.msgs.CameraSensor.image_format)
630 }
631 inline void CameraSensor::set_image_format(const char* value, size_t size) {
632 
633  image_format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
634  ::std::string(reinterpret_cast<const char*>(value), size));
635  // @@protoc_insertion_point(field_set_pointer:gz.msgs.CameraSensor.image_format)
636 }
637 inline ::std::string* CameraSensor::mutable_image_format() {
638 
639  // @@protoc_insertion_point(field_mutable:gz.msgs.CameraSensor.image_format)
640  return image_format_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
641 }
642 inline ::std::string* CameraSensor::release_image_format() {
643  // @@protoc_insertion_point(field_release:gz.msgs.CameraSensor.image_format)
644 
645  return image_format_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
646 }
648  if (image_format != NULL) {
649 
650  } else {
651 
652  }
653  image_format_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), image_format);
654  // @@protoc_insertion_point(field_set_allocated:gz.msgs.CameraSensor.image_format)
655 }
656 
657 // double near_clip = 5;
659  near_clip_ = 0;
660 }
661 inline double CameraSensor::near_clip() const {
662  // @@protoc_insertion_point(field_get:gz.msgs.CameraSensor.near_clip)
663  return near_clip_;
664 }
665 inline void CameraSensor::set_near_clip(double value) {
666 
667  near_clip_ = value;
668  // @@protoc_insertion_point(field_set:gz.msgs.CameraSensor.near_clip)
669 }
670 
671 // double far_clip = 6;
673  far_clip_ = 0;
674 }
675 inline double CameraSensor::far_clip() const {
676  // @@protoc_insertion_point(field_get:gz.msgs.CameraSensor.far_clip)
677  return far_clip_;
678 }
679 inline void CameraSensor::set_far_clip(double value) {
680 
681  far_clip_ = value;
682  // @@protoc_insertion_point(field_set:gz.msgs.CameraSensor.far_clip)
683 }
684 
685 // bool save_enabled = 7;
687  save_enabled_ = false;
688 }
689 inline bool CameraSensor::save_enabled() const {
690  // @@protoc_insertion_point(field_get:gz.msgs.CameraSensor.save_enabled)
691  return save_enabled_;
692 }
693 inline void CameraSensor::set_save_enabled(bool value) {
694 
695  save_enabled_ = value;
696  // @@protoc_insertion_point(field_set:gz.msgs.CameraSensor.save_enabled)
697 }
698 
699 // string save_path = 8;
701  save_path_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
702 }
703 inline const ::std::string& CameraSensor::save_path() const {
704  // @@protoc_insertion_point(field_get:gz.msgs.CameraSensor.save_path)
705  return save_path_.GetNoArena();
706 }
707 inline void CameraSensor::set_save_path(const ::std::string& value) {
708 
709  save_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
710  // @@protoc_insertion_point(field_set:gz.msgs.CameraSensor.save_path)
711 }
712 #if LANG_CXX11
713 inline void CameraSensor::set_save_path(::std::string&& value) {
714 
715  save_path_.SetNoArena(
716  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
717  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.CameraSensor.save_path)
718 }
719 #endif
720 inline void CameraSensor::set_save_path(const char* value) {
721  GOOGLE_DCHECK(value != NULL);
722 
723  save_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
724  // @@protoc_insertion_point(field_set_char:gz.msgs.CameraSensor.save_path)
725 }
726 inline void CameraSensor::set_save_path(const char* value, size_t size) {
727 
728  save_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
729  ::std::string(reinterpret_cast<const char*>(value), size));
730  // @@protoc_insertion_point(field_set_pointer:gz.msgs.CameraSensor.save_path)
731 }
732 inline ::std::string* CameraSensor::mutable_save_path() {
733 
734  // @@protoc_insertion_point(field_mutable:gz.msgs.CameraSensor.save_path)
735  return save_path_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
736 }
737 inline ::std::string* CameraSensor::release_save_path() {
738  // @@protoc_insertion_point(field_release:gz.msgs.CameraSensor.save_path)
739 
740  return save_path_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
741 }
743  if (save_path != NULL) {
744 
745  } else {
746 
747  }
748  save_path_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), save_path);
749  // @@protoc_insertion_point(field_set_allocated:gz.msgs.CameraSensor.save_path)
750 }
751 
752 // .gz.msgs.Distortion distortion = 9;
753 inline bool CameraSensor::has_distortion() const {
754  return this != internal_default_instance() && distortion_ != NULL;
755 }
756 inline const ::gz::msgs::Distortion& CameraSensor::_internal_distortion() const {
757  return *distortion_;
758 }
759 inline const ::gz::msgs::Distortion& CameraSensor::distortion() const {
760  const ::gz::msgs::Distortion* p = distortion_;
761  // @@protoc_insertion_point(field_get:gz.msgs.CameraSensor.distortion)
762  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Distortion*>(
764 }
765 inline ::gz::msgs::Distortion* CameraSensor::release_distortion() {
766  // @@protoc_insertion_point(field_release:gz.msgs.CameraSensor.distortion)
767 
768  ::gz::msgs::Distortion* temp = distortion_;
769  distortion_ = NULL;
770  return temp;
771 }
772 inline ::gz::msgs::Distortion* CameraSensor::mutable_distortion() {
773 
774  if (distortion_ == NULL) {
775  auto* p = CreateMaybeMessage<::gz::msgs::Distortion>(GetArenaNoVirtual());
776  distortion_ = p;
777  }
778  // @@protoc_insertion_point(field_mutable:gz.msgs.CameraSensor.distortion)
779  return distortion_;
780 }
782  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
783  if (message_arena == NULL) {
784  delete reinterpret_cast< ::google::protobuf::MessageLite*>(distortion_);
785  }
786  if (distortion) {
787  ::google::protobuf::Arena* submessage_arena = NULL;
788  if (message_arena != submessage_arena) {
789  distortion = ::google::protobuf::internal::GetOwnedMessage(
790  message_arena, distortion, submessage_arena);
791  }
792 
793  } else {
794 
795  }
796  distortion_ = distortion;
797  // @@protoc_insertion_point(field_set_allocated:gz.msgs.CameraSensor.distortion)
798 }
799 
800 // .gz.msgs.SensorNoise image_noise = 10;
801 inline bool CameraSensor::has_image_noise() const {
802  return this != internal_default_instance() && image_noise_ != NULL;
803 }
804 inline const ::gz::msgs::SensorNoise& CameraSensor::_internal_image_noise() const {
805  return *image_noise_;
806 }
807 inline const ::gz::msgs::SensorNoise& CameraSensor::image_noise() const {
808  const ::gz::msgs::SensorNoise* p = image_noise_;
809  // @@protoc_insertion_point(field_get:gz.msgs.CameraSensor.image_noise)
810  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::SensorNoise*>(
812 }
813 inline ::gz::msgs::SensorNoise* CameraSensor::release_image_noise() {
814  // @@protoc_insertion_point(field_release:gz.msgs.CameraSensor.image_noise)
815 
816  ::gz::msgs::SensorNoise* temp = image_noise_;
817  image_noise_ = NULL;
818  return temp;
819 }
820 inline ::gz::msgs::SensorNoise* CameraSensor::mutable_image_noise() {
821 
822  if (image_noise_ == NULL) {
823  auto* p = CreateMaybeMessage<::gz::msgs::SensorNoise>(GetArenaNoVirtual());
824  image_noise_ = p;
825  }
826  // @@protoc_insertion_point(field_mutable:gz.msgs.CameraSensor.image_noise)
827  return image_noise_;
828 }
830  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
831  if (message_arena == NULL) {
832  delete reinterpret_cast< ::google::protobuf::MessageLite*>(image_noise_);
833  }
834  if (image_noise) {
835  ::google::protobuf::Arena* submessage_arena = NULL;
836  if (message_arena != submessage_arena) {
837  image_noise = ::google::protobuf::internal::GetOwnedMessage(
838  message_arena, image_noise, submessage_arena);
839  }
840 
841  } else {
842 
843  }
844  image_noise_ = image_noise;
845  // @@protoc_insertion_point(field_set_allocated:gz.msgs.CameraSensor.image_noise)
846 }
847 
848 // .gz.msgs.Double depth_near_clip = 11;
850  return this != internal_default_instance() && depth_near_clip_ != NULL;
851 }
852 inline const ::gz::msgs::Double& CameraSensor::_internal_depth_near_clip() const {
853  return *depth_near_clip_;
854 }
855 inline const ::gz::msgs::Double& CameraSensor::depth_near_clip() const {
856  const ::gz::msgs::Double* p = depth_near_clip_;
857  // @@protoc_insertion_point(field_get:gz.msgs.CameraSensor.depth_near_clip)
858  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Double*>(
860 }
861 inline ::gz::msgs::Double* CameraSensor::release_depth_near_clip() {
862  // @@protoc_insertion_point(field_release:gz.msgs.CameraSensor.depth_near_clip)
863 
864  ::gz::msgs::Double* temp = depth_near_clip_;
865  depth_near_clip_ = NULL;
866  return temp;
867 }
868 inline ::gz::msgs::Double* CameraSensor::mutable_depth_near_clip() {
869 
870  if (depth_near_clip_ == NULL) {
871  auto* p = CreateMaybeMessage<::gz::msgs::Double>(GetArenaNoVirtual());
872  depth_near_clip_ = p;
873  }
874  // @@protoc_insertion_point(field_mutable:gz.msgs.CameraSensor.depth_near_clip)
875  return depth_near_clip_;
876 }
878  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
879  if (message_arena == NULL) {
880  delete reinterpret_cast< ::google::protobuf::MessageLite*>(depth_near_clip_);
881  }
882  if (depth_near_clip) {
883  ::google::protobuf::Arena* submessage_arena = NULL;
884  if (message_arena != submessage_arena) {
885  depth_near_clip = ::google::protobuf::internal::GetOwnedMessage(
886  message_arena, depth_near_clip, submessage_arena);
887  }
888 
889  } else {
890 
891  }
892  depth_near_clip_ = depth_near_clip;
893  // @@protoc_insertion_point(field_set_allocated:gz.msgs.CameraSensor.depth_near_clip)
894 }
895 
896 // .gz.msgs.Double depth_far_clip = 12;
897 inline bool CameraSensor::has_depth_far_clip() const {
898  return this != internal_default_instance() && depth_far_clip_ != NULL;
899 }
900 inline const ::gz::msgs::Double& CameraSensor::_internal_depth_far_clip() const {
901  return *depth_far_clip_;
902 }
903 inline const ::gz::msgs::Double& CameraSensor::depth_far_clip() const {
904  const ::gz::msgs::Double* p = depth_far_clip_;
905  // @@protoc_insertion_point(field_get:gz.msgs.CameraSensor.depth_far_clip)
906  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Double*>(
908 }
909 inline ::gz::msgs::Double* CameraSensor::release_depth_far_clip() {
910  // @@protoc_insertion_point(field_release:gz.msgs.CameraSensor.depth_far_clip)
911 
912  ::gz::msgs::Double* temp = depth_far_clip_;
913  depth_far_clip_ = NULL;
914  return temp;
915 }
916 inline ::gz::msgs::Double* CameraSensor::mutable_depth_far_clip() {
917 
918  if (depth_far_clip_ == NULL) {
919  auto* p = CreateMaybeMessage<::gz::msgs::Double>(GetArenaNoVirtual());
920  depth_far_clip_ = p;
921  }
922  // @@protoc_insertion_point(field_mutable:gz.msgs.CameraSensor.depth_far_clip)
923  return depth_far_clip_;
924 }
926  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
927  if (message_arena == NULL) {
928  delete reinterpret_cast< ::google::protobuf::MessageLite*>(depth_far_clip_);
929  }
930  if (depth_far_clip) {
931  ::google::protobuf::Arena* submessage_arena = NULL;
932  if (message_arena != submessage_arena) {
933  depth_far_clip = ::google::protobuf::internal::GetOwnedMessage(
934  message_arena, depth_far_clip, submessage_arena);
935  }
936 
937  } else {
938 
939  }
940  depth_far_clip_ = depth_far_clip;
941  // @@protoc_insertion_point(field_set_allocated:gz.msgs.CameraSensor.depth_far_clip)
942 }
943 
944 // .gz.msgs.CameraSensor.BoundingBoxType bounding_box_type = 13;
946  bounding_box_type_ = 0;
947 }
949  // @@protoc_insertion_point(field_get:gz.msgs.CameraSensor.bounding_box_type)
950  return static_cast< ::gz::msgs::CameraSensor_BoundingBoxType >(bounding_box_type_);
951 }
953 
954  bounding_box_type_ = value;
955  // @@protoc_insertion_point(field_set:gz.msgs.CameraSensor.bounding_box_type)
956 }
957 
958 // .gz.msgs.CameraSensor.SegmentationType segmentation_type = 14;
960  segmentation_type_ = 0;
961 }
963  // @@protoc_insertion_point(field_get:gz.msgs.CameraSensor.segmentation_type)
964  return static_cast< ::gz::msgs::CameraSensor_SegmentationType >(segmentation_type_);
965 }
967 
968  segmentation_type_ = value;
969  // @@protoc_insertion_point(field_set:gz.msgs.CameraSensor.segmentation_type)
970 }
971 
972 // .gz.msgs.Lens lens = 15;
973 inline bool CameraSensor::has_lens() const {
974  return this != internal_default_instance() && lens_ != NULL;
975 }
976 inline const ::gz::msgs::Lens& CameraSensor::_internal_lens() const {
977  return *lens_;
978 }
979 inline const ::gz::msgs::Lens& CameraSensor::lens() const {
980  const ::gz::msgs::Lens* p = lens_;
981  // @@protoc_insertion_point(field_get:gz.msgs.CameraSensor.lens)
982  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Lens*>(
984 }
985 inline ::gz::msgs::Lens* CameraSensor::release_lens() {
986  // @@protoc_insertion_point(field_release:gz.msgs.CameraSensor.lens)
987 
988  ::gz::msgs::Lens* temp = lens_;
989  lens_ = NULL;
990  return temp;
991 }
992 inline ::gz::msgs::Lens* CameraSensor::mutable_lens() {
993 
994  if (lens_ == NULL) {
995  auto* p = CreateMaybeMessage<::gz::msgs::Lens>(GetArenaNoVirtual());
996  lens_ = p;
997  }
998  // @@protoc_insertion_point(field_mutable:gz.msgs.CameraSensor.lens)
999  return lens_;
1000 }
1002  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1003  if (message_arena == NULL) {
1004  delete reinterpret_cast< ::google::protobuf::MessageLite*>(lens_);
1005  }
1006  if (lens) {
1007  ::google::protobuf::Arena* submessage_arena = NULL;
1008  if (message_arena != submessage_arena) {
1009  lens = ::google::protobuf::internal::GetOwnedMessage(
1010  message_arena, lens, submessage_arena);
1011  }
1012 
1013  } else {
1014 
1015  }
1016  lens_ = lens;
1017  // @@protoc_insertion_point(field_set_allocated:gz.msgs.CameraSensor.lens)
1018 }
1019 
1020 // bool triggered = 16;
1022  triggered_ = false;
1023 }
1024 inline bool CameraSensor::triggered() const {
1025  // @@protoc_insertion_point(field_get:gz.msgs.CameraSensor.triggered)
1026  return triggered_;
1027 }
1028 inline void CameraSensor::set_triggered(bool value) {
1029 
1030  triggered_ = value;
1031  // @@protoc_insertion_point(field_set:gz.msgs.CameraSensor.triggered)
1032 }
1033 
1034 // string triggered_topic = 17;
1036  triggered_topic_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1037 }
1038 inline const ::std::string& CameraSensor::triggered_topic() const {
1039  // @@protoc_insertion_point(field_get:gz.msgs.CameraSensor.triggered_topic)
1040  return triggered_topic_.GetNoArena();
1041 }
1042 inline void CameraSensor::set_triggered_topic(const ::std::string& value) {
1043 
1044  triggered_topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1045  // @@protoc_insertion_point(field_set:gz.msgs.CameraSensor.triggered_topic)
1046 }
1047 #if LANG_CXX11
1048 inline void CameraSensor::set_triggered_topic(::std::string&& value) {
1049 
1050  triggered_topic_.SetNoArena(
1051  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1052  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.CameraSensor.triggered_topic)
1053 }
1054 #endif
1055 inline void CameraSensor::set_triggered_topic(const char* value) {
1056  GOOGLE_DCHECK(value != NULL);
1057 
1058  triggered_topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1059  // @@protoc_insertion_point(field_set_char:gz.msgs.CameraSensor.triggered_topic)
1060 }
1061 inline void CameraSensor::set_triggered_topic(const char* value, size_t size) {
1062 
1063  triggered_topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1064  ::std::string(reinterpret_cast<const char*>(value), size));
1065  // @@protoc_insertion_point(field_set_pointer:gz.msgs.CameraSensor.triggered_topic)
1066 }
1067 inline ::std::string* CameraSensor::mutable_triggered_topic() {
1068 
1069  // @@protoc_insertion_point(field_mutable:gz.msgs.CameraSensor.triggered_topic)
1070  return triggered_topic_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1071 }
1072 inline ::std::string* CameraSensor::release_triggered_topic() {
1073  // @@protoc_insertion_point(field_release:gz.msgs.CameraSensor.triggered_topic)
1074 
1075  return triggered_topic_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1076 }
1078  if (triggered_topic != NULL) {
1079 
1080  } else {
1081 
1082  }
1083  triggered_topic_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), triggered_topic);
1084  // @@protoc_insertion_point(field_set_allocated:gz.msgs.CameraSensor.triggered_topic)
1085 }
1086 
1087 // int32 anti_aliasing = 18;
1089  anti_aliasing_ = 0;
1090 }
1091 inline ::google::protobuf::int32 CameraSensor::anti_aliasing() const {
1092  // @@protoc_insertion_point(field_get:gz.msgs.CameraSensor.anti_aliasing)
1093  return anti_aliasing_;
1094 }
1095 inline void CameraSensor::set_anti_aliasing(::google::protobuf::int32 value) {
1096 
1097  anti_aliasing_ = value;
1098  // @@protoc_insertion_point(field_set:gz.msgs.CameraSensor.anti_aliasing)
1099 }
1100 
1101 // uint32 visibility_mask = 19;
1103  visibility_mask_ = 0u;
1104 }
1105 inline ::google::protobuf::uint32 CameraSensor::visibility_mask() const {
1106  // @@protoc_insertion_point(field_get:gz.msgs.CameraSensor.visibility_mask)
1107  return visibility_mask_;
1108 }
1109 inline void CameraSensor::set_visibility_mask(::google::protobuf::uint32 value) {
1110 
1111  visibility_mask_ = value;
1112  // @@protoc_insertion_point(field_set:gz.msgs.CameraSensor.visibility_mask)
1113 }
1114 
1115 // bool is_depth_camera = 20;
1117  is_depth_camera_ = false;
1118 }
1119 inline bool CameraSensor::is_depth_camera() const {
1120  // @@protoc_insertion_point(field_get:gz.msgs.CameraSensor.is_depth_camera)
1121  return is_depth_camera_;
1122 }
1123 inline void CameraSensor::set_is_depth_camera(bool value) {
1124 
1125  is_depth_camera_ = value;
1126  // @@protoc_insertion_point(field_set:gz.msgs.CameraSensor.is_depth_camera)
1127 }
1128 
1129 // .gz.msgs.PixelFormatType pixel_format = 21;
1131  pixel_format_ = 0;
1132 }
1134  // @@protoc_insertion_point(field_get:gz.msgs.CameraSensor.pixel_format)
1135  return static_cast< ::gz::msgs::PixelFormatType >(pixel_format_);
1136 }
1138 
1139  pixel_format_ = value;
1140  // @@protoc_insertion_point(field_set:gz.msgs.CameraSensor.pixel_format)
1141 }
1142 
1143 #ifdef __GNUC__
1144  #pragma GCC diagnostic pop
1145 #endif // __GNUC__
1146 
1147 // @@protoc_insertion_point(namespace_scope)
1148 
1149 } // namespace msgs
1150 } // namespace gz
1151 
1152 namespace google {
1153 namespace protobuf {
1154 
1155 template <> struct is_proto_enum< ::gz::msgs::CameraSensor_BoundingBoxType> : ::std::true_type {};
1156 template <>
1157 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::CameraSensor_BoundingBoxType>() {
1159 }
1160 template <> struct is_proto_enum< ::gz::msgs::CameraSensor_SegmentationType> : ::std::true_type {};
1161 template <>
1162 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::CameraSensor_SegmentationType>() {
1164 }
1165 
1166 } // namespace protobuf
1167 } // namespace google
1168 
1169 // @@protoc_insertion_point(global_scope)
1170 
1171 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fcamerasensor_2eproto