4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fcamerasensor_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fcamerasensor_2eproto
9 #include <google/protobuf/stubs/common.h>
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
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.
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>
31 #include <google/protobuf/extension_set.h>
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"
42 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fcamerasensor_2eproto GZ_MSGS_VISIBLE
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[];
59 class CameraSensorDefaultTypeInternal;
65 template<> GZ_MSGS_VISIBLE ::gz::msgs::CameraSensor* Arena::CreateMaybeMessage<::gz::msgs::CameraSensor>(Arena*);
86 return ::google::protobuf::internal::NameOfEnum(
91 return ::google::protobuf::internal::ParseNamedEnum<CameraSensor_BoundingBoxType>(
108 return ::google::protobuf::internal::NameOfEnum(
113 return ::google::protobuf::internal::ParseNamedEnum<CameraSensor_SegmentationType>(
118 class GZ_MSGS_VISIBLE
CameraSensor :
public ::google::protobuf::Message {
132 *
this = ::std::move(from);
135 inline CameraSensor& operator=(CameraSensor&& from) noexcept {
136 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
137 if (
this != &from) InternalSwap(&from);
144 static const ::google::protobuf::Descriptor* descriptor();
145 static const CameraSensor& default_instance();
147 static void InitAsDefaultInstance();
152 static constexpr
int kIndexInFileMessages =
163 return CreateMaybeMessage<CameraSensor>(NULL);
167 return CreateMaybeMessage<CameraSensor>(arena);
169 void CopyFrom(const ::google::protobuf::Message& from)
final;
170 void MergeFrom(const ::google::protobuf::Message& from)
final;
174 bool IsInitialized() const final;
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(); }
188 void SetCachedSize(
int size)
const final;
191 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
194 inline void* MaybeArenaPtr()
const {
199 ::google::protobuf::Metadata GetMetadata() const final;
212 static inline
bool BoundingBoxType_IsValid(
int value) {
219 static const int BoundingBoxType_ARRAYSIZE =
221 static inline const ::google::protobuf::EnumDescriptor*
247 static const int SegmentationType_ARRAYSIZE =
249 static inline const ::google::protobuf::EnumDescriptor*
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);
271 void set_image_format(
const char* value);
272 void set_image_format(
const char* value,
size_t size);
275 void set_allocated_image_format(::
std::string* image_format);
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);
285 void set_save_path(
const char* value);
286 void set_save_path(
const char* value,
size_t size);
289 void set_allocated_save_path(::
std::string* save_path);
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);
299 void set_triggered_topic(
const char* value);
300 void set_triggered_topic(
const char* value,
size_t size);
303 void set_allocated_triggered_topic(::
std::string* triggered_topic);
306 bool has_header()
const;
308 static const int kHeaderFieldNumber = 1;
310 const ::gz::msgs::Header& _internal_header()
const;
312 const ::gz::msgs::Header& header()
const;
318 bool has_image_size()
const;
319 void clear_image_size();
320 static const int kImageSizeFieldNumber = 3;
322 const ::gz::msgs::Vector2d& _internal_image_size()
const;
324 const ::gz::msgs::Vector2d& image_size()
const;
330 bool has_distortion()
const;
331 void clear_distortion();
332 static const int kDistortionFieldNumber = 9;
334 const ::gz::msgs::Distortion& _internal_distortion()
const;
336 const ::gz::msgs::Distortion& distortion()
const;
342 bool has_image_noise()
const;
343 void clear_image_noise();
344 static const int kImageNoiseFieldNumber = 10;
346 const ::gz::msgs::SensorNoise& _internal_image_noise()
const;
348 const ::gz::msgs::SensorNoise& image_noise()
const;
354 bool has_depth_near_clip()
const;
355 void clear_depth_near_clip();
356 static const int kDepthNearClipFieldNumber = 11;
358 const ::gz::msgs::Double& _internal_depth_near_clip()
const;
360 const ::gz::msgs::Double& depth_near_clip()
const;
366 bool has_depth_far_clip()
const;
367 void clear_depth_far_clip();
368 static const int kDepthFarClipFieldNumber = 12;
370 const ::gz::msgs::Double& _internal_depth_far_clip()
const;
372 const ::gz::msgs::Double& depth_far_clip()
const;
378 bool has_lens()
const;
380 static const int kLensFieldNumber = 15;
382 const ::gz::msgs::Lens& _internal_lens()
const;
384 const ::gz::msgs::Lens& lens()
const;
390 void clear_horizontal_fov();
391 static const int kHorizontalFovFieldNumber = 2;
392 double horizontal_fov()
const;
393 void set_horizontal_fov(
double value);
396 void clear_near_clip();
397 static const int kNearClipFieldNumber = 5;
398 double near_clip()
const;
399 void set_near_clip(
double value);
402 void clear_far_clip();
403 static const int kFarClipFieldNumber = 6;
404 double far_clip()
const;
405 void set_far_clip(
double value);
408 void clear_bounding_box_type();
409 static const int kBoundingBoxTypeFieldNumber = 13;
414 void clear_segmentation_type();
415 static const int kSegmentationTypeFieldNumber = 14;
420 void clear_save_enabled();
421 static const int kSaveEnabledFieldNumber = 7;
422 bool save_enabled()
const;
423 void set_save_enabled(
bool value);
426 void clear_triggered();
427 static const int kTriggeredFieldNumber = 16;
428 bool triggered()
const;
429 void set_triggered(
bool value);
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);
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);
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);
450 void clear_pixel_format();
451 static const int kPixelFormatFieldNumber = 21;
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_;
469 double horizontal_fov_;
472 int bounding_box_type_;
473 int segmentation_type_;
476 bool is_depth_camera_;
477 ::google::protobuf::int32 anti_aliasing_;
478 ::google::protobuf::uint32 visibility_mask_;
480 mutable ::google::protobuf::internal::CachedSize _cached_size_;
481 friend struct ::protobuf_gz_2fmsgs_2fcamerasensor_2eproto::TableStruct;
489 #pragma GCC diagnostic push
490 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
498 inline const ::gz::msgs::Header& CameraSensor::_internal_header()
const {
502 const ::gz::msgs::Header* p = header_;
516 if (header_ == NULL) {
517 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
524 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
525 if (message_arena == NULL) {
526 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(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);
548 return horizontal_fov_;
552 horizontal_fov_ = value;
560 inline const ::gz::msgs::Vector2d& CameraSensor::_internal_image_size()
const {
564 const ::gz::msgs::Vector2d* p = image_size_;
578 if (image_size_ == NULL) {
579 auto* p = CreateMaybeMessage<::gz::msgs::Vector2d>(GetArenaNoVirtual());
586 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
587 if (message_arena == NULL) {
588 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(image_size_);
591 ::google::protobuf::Arena* submessage_arena = NULL;
592 if (message_arena != submessage_arena) {
593 image_size = ::google::protobuf::internal::GetOwnedMessage(
606 image_format_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
610 return image_format_.GetNoArena();
614 image_format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
620 image_format_.SetNoArena(
621 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
626 GOOGLE_DCHECK(value != NULL);
628 image_format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
633 image_format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
634 ::
std::string(
reinterpret_cast<const char*
>(value), size));
640 return image_format_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
645 return image_format_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
653 image_format_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
image_format);
687 save_enabled_ =
false;
691 return save_enabled_;
695 save_enabled_ = value;
701 save_path_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
705 return save_path_.GetNoArena();
709 save_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
715 save_path_.SetNoArena(
716 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
721 GOOGLE_DCHECK(value != NULL);
723 save_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
728 save_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
729 ::
std::string(
reinterpret_cast<const char*
>(value), size));
735 return save_path_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
740 return save_path_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
748 save_path_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
save_path);
756 inline const ::gz::msgs::Distortion& CameraSensor::_internal_distortion()
const {
760 const ::gz::msgs::Distortion* p = distortion_;
774 if (distortion_ == NULL) {
775 auto* p = CreateMaybeMessage<::gz::msgs::Distortion>(GetArenaNoVirtual());
782 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
783 if (message_arena == NULL) {
784 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(distortion_);
787 ::google::protobuf::Arena* submessage_arena = NULL;
788 if (message_arena != submessage_arena) {
789 distortion = ::google::protobuf::internal::GetOwnedMessage(
804 inline const ::gz::msgs::SensorNoise& CameraSensor::_internal_image_noise()
const {
805 return *image_noise_;
808 const ::gz::msgs::SensorNoise* p = image_noise_;
822 if (image_noise_ == NULL) {
823 auto* p = CreateMaybeMessage<::gz::msgs::SensorNoise>(GetArenaNoVirtual());
830 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
831 if (message_arena == NULL) {
832 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(image_noise_);
835 ::google::protobuf::Arena* submessage_arena = NULL;
836 if (message_arena != submessage_arena) {
837 image_noise = ::google::protobuf::internal::GetOwnedMessage(
852 inline const ::gz::msgs::Double& CameraSensor::_internal_depth_near_clip()
const {
853 return *depth_near_clip_;
856 const ::gz::msgs::Double* p = depth_near_clip_;
865 depth_near_clip_ = NULL;
870 if (depth_near_clip_ == NULL) {
871 auto* p = CreateMaybeMessage<::gz::msgs::Double>(GetArenaNoVirtual());
872 depth_near_clip_ = p;
875 return depth_near_clip_;
878 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
879 if (message_arena == NULL) {
880 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(depth_near_clip_);
883 ::google::protobuf::Arena* submessage_arena = NULL;
884 if (message_arena != submessage_arena) {
900 inline const ::gz::msgs::Double& CameraSensor::_internal_depth_far_clip()
const {
901 return *depth_far_clip_;
904 const ::gz::msgs::Double* p = depth_far_clip_;
913 depth_far_clip_ = NULL;
918 if (depth_far_clip_ == NULL) {
919 auto* p = CreateMaybeMessage<::gz::msgs::Double>(GetArenaNoVirtual());
923 return depth_far_clip_;
926 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
927 if (message_arena == NULL) {
928 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(depth_far_clip_);
931 ::google::protobuf::Arena* submessage_arena = NULL;
932 if (message_arena != submessage_arena) {
946 bounding_box_type_ = 0;
954 bounding_box_type_ = value;
960 segmentation_type_ = 0;
968 segmentation_type_ = value;
976 inline const ::gz::msgs::Lens& CameraSensor::_internal_lens()
const {
980 const ::gz::msgs::Lens* p = lens_;
982 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::Lens*
>(
995 auto* p = CreateMaybeMessage<::gz::msgs::Lens>(GetArenaNoVirtual());
1002 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1003 if (message_arena == NULL) {
1004 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(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);
1036 triggered_topic_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1040 return triggered_topic_.GetNoArena();
1044 triggered_topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1050 triggered_topic_.SetNoArena(
1051 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
1056 GOOGLE_DCHECK(value != NULL);
1058 triggered_topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
1063 triggered_topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1064 ::
std::string(
reinterpret_cast<const char*
>(value), size));
1070 return triggered_topic_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1075 return triggered_topic_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1083 triggered_topic_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
triggered_topic);
1093 return anti_aliasing_;
1097 anti_aliasing_ = value;
1103 visibility_mask_ = 0u;
1107 return visibility_mask_;
1111 visibility_mask_ = value;
1117 is_depth_camera_ =
false;
1121 return is_depth_camera_;
1125 is_depth_camera_ = value;
1139 pixel_format_ = value;
1144 #pragma GCC diagnostic pop
1153 namespace protobuf {
1157 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::CameraSensor_BoundingBoxType>() {
1162 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::CameraSensor_SegmentationType>() {
1171 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fcamerasensor_2eproto