4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2flight_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2flight_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3014000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3014000 < PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
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>
32 #include <google/protobuf/extension_set.h>
33 #include <google/protobuf/generated_enum_reflection.h>
34 #include <google/protobuf/unknown_field_set.h>
40 #pragma GCC system_header
43 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
46 #include <sys/sysmacros.h>
51 #include <google/protobuf/port_def.inc>
52 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2flight_2eproto IGNITION_MSGS_VISIBLE
53 PROTOBUF_NAMESPACE_OPEN
57 PROTOBUF_NAMESPACE_CLOSE
61 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
63 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
65 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
67 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
68 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
69 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
75 class LightDefaultTypeInternal;
79 PROTOBUF_NAMESPACE_OPEN
80 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Light* Arena::CreateMaybeMessage<::ignition::msgs::Light>(Arena*);
81 PROTOBUF_NAMESPACE_CLOSE
102 "Incorrect type passed to function Light_LightType_Name.");
103 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
107 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
Light_LightType* value) {
108 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Light_LightType>(
113 class IGNITION_MSGS_VISIBLE Light PROTOBUF_FINAL :
114 public ::PROTOBUF_NAMESPACE_ID::Message {
122 *
this = ::std::move(from);
130 if (GetArena() == from.GetArena()) {
131 if (
this != &from) InternalSwap(&from);
138 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
139 return GetDescriptor();
142 return GetMetadataStatic().descriptor;
145 return GetMetadataStatic().reflection;
150 return reinterpret_cast<const Light*
>(
153 static constexpr
int kIndexInFileMessages =
156 friend void swap(Light& a, Light& b) {
159 inline void Swap(Light* other) {
160 if (other ==
this)
return;
161 if (GetArena() == other->GetArena()) {
164 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
168 if (other ==
this)
return;
169 GOOGLE_DCHECK(GetArena() == other->GetArena());
175 inline Light*
New() const final {
176 return CreateMaybeMessage<Light>(
nullptr);
179 Light*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
180 return CreateMaybeMessage<Light>(arena);
182 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
183 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
186 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
187 bool IsInitialized() const final;
189 size_t ByteSizeLong() const final;
190 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
191 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
192 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
193 int GetCachedSize() const final {
return _cached_size_.Get(); }
196 inline void SharedCtor();
197 inline void SharedDtor();
198 void SetCachedSize(
int size)
const final;
199 void InternalSwap(Light* other);
200 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
201 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
202 return "ignition.msgs.Light";
205 explicit Light(::PROTOBUF_NAMESPACE_ID::Arena* arena);
207 static void ArenaDtor(
void*
object);
208 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
213 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
236 static constexpr
int LightType_ARRAYSIZE =
238 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
246 "Incorrect type passed to function LightType_Name.");
257 kNameFieldNumber = 2,
258 kHeaderFieldNumber = 1,
259 kPoseFieldNumber = 4,
260 kDiffuseFieldNumber = 5,
261 kSpecularFieldNumber = 6,
262 kDirectionFieldNumber = 10,
263 kTypeFieldNumber = 3,
264 kAttenuationConstantFieldNumber = 7,
265 kAttenuationLinearFieldNumber = 8,
266 kAttenuationQuadraticFieldNumber = 9,
267 kRangeFieldNumber = 11,
268 kCastShadowsFieldNumber = 12,
269 kSpotInnerAngleFieldNumber = 13,
270 kSpotOuterAngleFieldNumber = 14,
271 kSpotFalloffFieldNumber = 15,
273 kParentIdFieldNumber = 17,
294 bool _internal_has_header()
const;
297 const ::ignition::msgs::Header&
header()
const;
302 const ::ignition::msgs::Header& _internal_header()
const;
303 ::ignition::msgs::Header* _internal_mutable_header();
306 ::ignition::msgs::Header* header);
312 bool _internal_has_pose()
const;
315 const ::ignition::msgs::Pose&
pose()
const;
320 const ::ignition::msgs::Pose& _internal_pose()
const;
321 ::ignition::msgs::Pose* _internal_mutable_pose();
324 ::ignition::msgs::Pose* pose);
330 bool _internal_has_diffuse()
const;
333 const ::ignition::msgs::Color&
diffuse()
const;
338 const ::ignition::msgs::Color& _internal_diffuse()
const;
339 ::ignition::msgs::Color* _internal_mutable_diffuse();
342 ::ignition::msgs::Color* diffuse);
348 bool _internal_has_specular()
const;
356 const ::ignition::msgs::Color& _internal_specular()
const;
357 ::ignition::msgs::Color* _internal_mutable_specular();
360 ::ignition::msgs::Color* specular);
366 bool _internal_has_direction()
const;
374 const ::ignition::msgs::Vector3d& _internal_direction()
const;
375 ::ignition::msgs::Vector3d* _internal_mutable_direction();
378 ::ignition::msgs::Vector3d* direction);
395 float _internal_attenuation_constant()
const;
396 void _internal_set_attenuation_constant(
float value);
404 float _internal_attenuation_linear()
const;
405 void _internal_set_attenuation_linear(
float value);
413 float _internal_attenuation_quadratic()
const;
414 void _internal_set_attenuation_quadratic(
float value);
422 float _internal_range()
const;
423 void _internal_set_range(
float value);
431 bool _internal_cast_shadows()
const;
432 void _internal_set_cast_shadows(
bool value);
440 float _internal_spot_inner_angle()
const;
441 void _internal_set_spot_inner_angle(
float value);
449 float _internal_spot_outer_angle()
const;
450 void _internal_set_spot_outer_angle(
float value);
458 float _internal_spot_falloff()
const;
459 void _internal_set_spot_falloff(
float value);
464 ::PROTOBUF_NAMESPACE_ID::uint32
id()
const;
465 void set_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
467 ::PROTOBUF_NAMESPACE_ID::uint32 _internal_id()
const;
468 void _internal_set_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
476 ::PROTOBUF_NAMESPACE_ID::uint32 _internal_parent_id()
const;
477 void _internal_set_parent_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
484 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
485 typedef void InternalArenaConstructable_;
486 typedef void DestructorSkippable_;
487 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
488 ::ignition::msgs::Header* header_;
489 ::ignition::msgs::Pose* pose_;
490 ::ignition::msgs::Color* diffuse_;
491 ::ignition::msgs::Color* specular_;
492 ::ignition::msgs::Vector3d* direction_;
494 float attenuation_constant_;
495 float attenuation_linear_;
496 float attenuation_quadratic_;
499 float spot_inner_angle_;
500 float spot_outer_angle_;
502 ::PROTOBUF_NAMESPACE_ID::uint32 id_;
503 ::PROTOBUF_NAMESPACE_ID::uint32 parent_id_;
504 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
505 friend struct ::TableStruct_ignition_2fmsgs_2flight_2eproto;
513 #pragma GCC diagnostic push
514 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
519 inline bool Light::_internal_has_header()
const {
520 return this != internal_default_instance() && header_ !=
nullptr;
522 inline bool Light::has_header()
const {
523 return _internal_has_header();
525 inline const ::ignition::msgs::Header& Light::_internal_header()
const {
526 const ::ignition::msgs::Header* p = header_;
527 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Header&
>(
530 inline const ::ignition::msgs::Header& Light::header()
const {
532 return _internal_header();
534 inline void Light::unsafe_arena_set_allocated_header(
535 ::ignition::msgs::Header* header) {
536 if (GetArena() ==
nullptr) {
537 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
547 inline ::ignition::msgs::Header* Light::release_header() {
549 ::ignition::msgs::Header* temp = header_;
551 if (GetArena() !=
nullptr) {
552 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
556 inline ::ignition::msgs::Header* Light::unsafe_arena_release_header() {
559 ::ignition::msgs::Header* temp = header_;
563 inline ::ignition::msgs::Header* Light::_internal_mutable_header() {
565 if (header_ ==
nullptr) {
566 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
571 inline ::ignition::msgs::Header* Light::mutable_header() {
573 return _internal_mutable_header();
575 inline void Light::set_allocated_header(::ignition::msgs::Header* header) {
576 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
577 if (message_arena ==
nullptr) {
578 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
581 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
582 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header)->GetArena();
583 if (message_arena != submessage_arena) {
584 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
585 message_arena, header, submessage_arena);
596 inline void Light::clear_name() {
597 name_.ClearToEmpty();
601 return _internal_name();
603 inline void Light::set_name(
const std::string& value) {
604 _internal_set_name(value);
609 return _internal_mutable_name();
611 inline const std::string& Light::_internal_name()
const {
614 inline void Light::_internal_set_name(
const std::string& value) {
616 name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
621 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
624 inline void Light::set_name(
const char* value) {
625 GOOGLE_DCHECK(value !=
nullptr);
627 name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(value), GetArena());
630 inline void Light::set_name(
const char* value,
633 name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(
634 reinterpret_cast<const char*
>(value), size), GetArena());
637 inline std::string* Light::_internal_mutable_name() {
639 return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
643 return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
645 inline void Light::set_allocated_name(
std::string* name) {
646 if (name !=
nullptr) {
651 name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
657 inline void Light::clear_type() {
665 return _internal_type();
672 _internal_set_type(value);
677 inline bool Light::_internal_has_pose()
const {
678 return this != internal_default_instance() && pose_ !=
nullptr;
680 inline bool Light::has_pose()
const {
681 return _internal_has_pose();
683 inline const ::ignition::msgs::Pose& Light::_internal_pose()
const {
684 const ::ignition::msgs::Pose* p = pose_;
685 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Pose&
>(
688 inline const ::ignition::msgs::Pose& Light::pose()
const {
690 return _internal_pose();
692 inline void Light::unsafe_arena_set_allocated_pose(
693 ::ignition::msgs::Pose* pose) {
694 if (GetArena() ==
nullptr) {
695 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(pose_);
705 inline ::ignition::msgs::Pose* Light::release_pose() {
707 ::ignition::msgs::Pose* temp = pose_;
709 if (GetArena() !=
nullptr) {
710 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
714 inline ::ignition::msgs::Pose* Light::unsafe_arena_release_pose() {
717 ::ignition::msgs::Pose* temp = pose_;
721 inline ::ignition::msgs::Pose* Light::_internal_mutable_pose() {
723 if (pose_ ==
nullptr) {
724 auto* p = CreateMaybeMessage<::ignition::msgs::Pose>(GetArena());
729 inline ::ignition::msgs::Pose* Light::mutable_pose() {
731 return _internal_mutable_pose();
733 inline void Light::set_allocated_pose(::ignition::msgs::Pose* pose) {
734 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
735 if (message_arena ==
nullptr) {
736 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(pose_);
739 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
740 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(pose)->GetArena();
741 if (message_arena != submessage_arena) {
742 pose = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
743 message_arena, pose, submessage_arena);
754 inline bool Light::_internal_has_diffuse()
const {
755 return this != internal_default_instance() && diffuse_ !=
nullptr;
757 inline bool Light::has_diffuse()
const {
758 return _internal_has_diffuse();
760 inline const ::ignition::msgs::Color& Light::_internal_diffuse()
const {
761 const ::ignition::msgs::Color* p = diffuse_;
762 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Color&
>(
765 inline const ::ignition::msgs::Color& Light::diffuse()
const {
767 return _internal_diffuse();
769 inline void Light::unsafe_arena_set_allocated_diffuse(
770 ::ignition::msgs::Color* diffuse) {
771 if (GetArena() ==
nullptr) {
772 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(diffuse_);
782 inline ::ignition::msgs::Color* Light::release_diffuse() {
784 ::ignition::msgs::Color* temp = diffuse_;
786 if (GetArena() !=
nullptr) {
787 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
791 inline ::ignition::msgs::Color* Light::unsafe_arena_release_diffuse() {
794 ::ignition::msgs::Color* temp = diffuse_;
798 inline ::ignition::msgs::Color* Light::_internal_mutable_diffuse() {
800 if (diffuse_ ==
nullptr) {
801 auto* p = CreateMaybeMessage<::ignition::msgs::Color>(GetArena());
806 inline ::ignition::msgs::Color* Light::mutable_diffuse() {
808 return _internal_mutable_diffuse();
810 inline void Light::set_allocated_diffuse(::ignition::msgs::Color* diffuse) {
811 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
812 if (message_arena ==
nullptr) {
813 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(diffuse_);
816 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
817 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(diffuse)->GetArena();
818 if (message_arena != submessage_arena) {
819 diffuse = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
820 message_arena, diffuse, submessage_arena);
831 inline bool Light::_internal_has_specular()
const {
832 return this != internal_default_instance() && specular_ !=
nullptr;
834 inline bool Light::has_specular()
const {
835 return _internal_has_specular();
837 inline const ::ignition::msgs::Color& Light::_internal_specular()
const {
838 const ::ignition::msgs::Color* p = specular_;
839 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Color&
>(
842 inline const ::ignition::msgs::Color& Light::specular()
const {
844 return _internal_specular();
846 inline void Light::unsafe_arena_set_allocated_specular(
847 ::ignition::msgs::Color* specular) {
848 if (GetArena() ==
nullptr) {
849 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(specular_);
851 specular_ = specular;
859 inline ::ignition::msgs::Color* Light::release_specular() {
861 ::ignition::msgs::Color* temp = specular_;
863 if (GetArena() !=
nullptr) {
864 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
868 inline ::ignition::msgs::Color* Light::unsafe_arena_release_specular() {
871 ::ignition::msgs::Color* temp = specular_;
875 inline ::ignition::msgs::Color* Light::_internal_mutable_specular() {
877 if (specular_ ==
nullptr) {
878 auto* p = CreateMaybeMessage<::ignition::msgs::Color>(GetArena());
883 inline ::ignition::msgs::Color* Light::mutable_specular() {
885 return _internal_mutable_specular();
887 inline void Light::set_allocated_specular(::ignition::msgs::Color* specular) {
888 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
889 if (message_arena ==
nullptr) {
890 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(specular_);
893 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
894 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(specular)->GetArena();
895 if (message_arena != submessage_arena) {
896 specular = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
897 message_arena, specular, submessage_arena);
903 specular_ = specular;
908 inline void Light::clear_attenuation_constant() {
909 attenuation_constant_ = 0;
911 inline float Light::_internal_attenuation_constant()
const {
912 return attenuation_constant_;
914 inline float Light::attenuation_constant()
const {
916 return _internal_attenuation_constant();
918 inline void Light::_internal_set_attenuation_constant(
float value) {
920 attenuation_constant_ = value;
922 inline void Light::set_attenuation_constant(
float value) {
923 _internal_set_attenuation_constant(value);
928 inline void Light::clear_attenuation_linear() {
929 attenuation_linear_ = 0;
931 inline float Light::_internal_attenuation_linear()
const {
932 return attenuation_linear_;
934 inline float Light::attenuation_linear()
const {
936 return _internal_attenuation_linear();
938 inline void Light::_internal_set_attenuation_linear(
float value) {
940 attenuation_linear_ = value;
942 inline void Light::set_attenuation_linear(
float value) {
943 _internal_set_attenuation_linear(value);
948 inline void Light::clear_attenuation_quadratic() {
949 attenuation_quadratic_ = 0;
951 inline float Light::_internal_attenuation_quadratic()
const {
952 return attenuation_quadratic_;
954 inline float Light::attenuation_quadratic()
const {
956 return _internal_attenuation_quadratic();
958 inline void Light::_internal_set_attenuation_quadratic(
float value) {
960 attenuation_quadratic_ = value;
962 inline void Light::set_attenuation_quadratic(
float value) {
963 _internal_set_attenuation_quadratic(value);
968 inline bool Light::_internal_has_direction()
const {
969 return this != internal_default_instance() && direction_ !=
nullptr;
971 inline bool Light::has_direction()
const {
972 return _internal_has_direction();
974 inline const ::ignition::msgs::Vector3d& Light::_internal_direction()
const {
975 const ::ignition::msgs::Vector3d* p = direction_;
976 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Vector3d&
>(
979 inline const ::ignition::msgs::Vector3d& Light::direction()
const {
981 return _internal_direction();
983 inline void Light::unsafe_arena_set_allocated_direction(
984 ::ignition::msgs::Vector3d* direction) {
985 if (GetArena() ==
nullptr) {
986 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(direction_);
988 direction_ = direction;
996 inline ::ignition::msgs::Vector3d* Light::release_direction() {
998 ::ignition::msgs::Vector3d* temp = direction_;
999 direction_ =
nullptr;
1000 if (GetArena() !=
nullptr) {
1001 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1005 inline ::ignition::msgs::Vector3d* Light::unsafe_arena_release_direction() {
1008 ::ignition::msgs::Vector3d* temp = direction_;
1009 direction_ =
nullptr;
1012 inline ::ignition::msgs::Vector3d* Light::_internal_mutable_direction() {
1014 if (direction_ ==
nullptr) {
1015 auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArena());
1020 inline ::ignition::msgs::Vector3d* Light::mutable_direction() {
1022 return _internal_mutable_direction();
1024 inline void Light::set_allocated_direction(::ignition::msgs::Vector3d* direction) {
1025 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
1026 if (message_arena ==
nullptr) {
1027 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(direction_);
1030 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1031 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(direction)->GetArena();
1032 if (message_arena != submessage_arena) {
1033 direction = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1034 message_arena, direction, submessage_arena);
1040 direction_ = direction;
1045 inline void Light::clear_range() {
1048 inline float Light::_internal_range()
const {
1051 inline float Light::range()
const {
1053 return _internal_range();
1055 inline void Light::_internal_set_range(
float value) {
1059 inline void Light::set_range(
float value) {
1060 _internal_set_range(value);
1065 inline void Light::clear_cast_shadows() {
1066 cast_shadows_ =
false;
1068 inline bool Light::_internal_cast_shadows()
const {
1069 return cast_shadows_;
1071 inline bool Light::cast_shadows()
const {
1073 return _internal_cast_shadows();
1075 inline void Light::_internal_set_cast_shadows(
bool value) {
1077 cast_shadows_ = value;
1079 inline void Light::set_cast_shadows(
bool value) {
1080 _internal_set_cast_shadows(value);
1085 inline void Light::clear_spot_inner_angle() {
1086 spot_inner_angle_ = 0;
1088 inline float Light::_internal_spot_inner_angle()
const {
1089 return spot_inner_angle_;
1091 inline float Light::spot_inner_angle()
const {
1093 return _internal_spot_inner_angle();
1095 inline void Light::_internal_set_spot_inner_angle(
float value) {
1097 spot_inner_angle_ = value;
1099 inline void Light::set_spot_inner_angle(
float value) {
1100 _internal_set_spot_inner_angle(value);
1105 inline void Light::clear_spot_outer_angle() {
1106 spot_outer_angle_ = 0;
1108 inline float Light::_internal_spot_outer_angle()
const {
1109 return spot_outer_angle_;
1111 inline float Light::spot_outer_angle()
const {
1113 return _internal_spot_outer_angle();
1115 inline void Light::_internal_set_spot_outer_angle(
float value) {
1117 spot_outer_angle_ = value;
1119 inline void Light::set_spot_outer_angle(
float value) {
1120 _internal_set_spot_outer_angle(value);
1125 inline void Light::clear_spot_falloff() {
1128 inline float Light::_internal_spot_falloff()
const {
1129 return spot_falloff_;
1131 inline float Light::spot_falloff()
const {
1133 return _internal_spot_falloff();
1135 inline void Light::_internal_set_spot_falloff(
float value) {
1137 spot_falloff_ = value;
1139 inline void Light::set_spot_falloff(
float value) {
1140 _internal_set_spot_falloff(value);
1145 inline void Light::clear_id() {
1148 inline ::PROTOBUF_NAMESPACE_ID::uint32 Light::_internal_id()
const {
1151 inline ::PROTOBUF_NAMESPACE_ID::uint32 Light::id()
const {
1153 return _internal_id();
1155 inline void Light::_internal_set_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
1159 inline void Light::set_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
1160 _internal_set_id(value);
1165 inline void Light::clear_parent_id() {
1168 inline ::PROTOBUF_NAMESPACE_ID::uint32 Light::_internal_parent_id()
const {
1171 inline ::PROTOBUF_NAMESPACE_ID::uint32 Light::parent_id()
const {
1173 return _internal_parent_id();
1175 inline void Light::_internal_set_parent_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
1179 inline void Light::set_parent_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
1180 _internal_set_parent_id(value);
1185 #pragma GCC diagnostic pop
1197 PROTOBUF_NAMESPACE_OPEN
1201 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Light_LightType>() {
1205 PROTOBUF_NAMESPACE_CLOSE
1208 #pragma warning(pop)
1212 #include <google/protobuf/port_undef.inc>
void clear_attenuation_quadratic()
void set_attenuation_linear(float value)
void set_spot_inner_angle(float value)
void clear_attenuation_constant()
::PROTOBUF_NAMESPACE_ID::uint32 parent_id() const
Light * New() const final
Definition: light.pb.h:175
::ignition::msgs::Color * mutable_diffuse()
::ignition::msgs::Pose * release_pose()
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: light.pb.h:144
void clear_attenuation_linear()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void clear_spot_falloff()
void unsafe_arena_set_allocated_pose(::ignition::msgs::Pose *pose)
static bool LightType_IsValid(int value)
Definition: light.pb.h:229
::ignition::msgs::Header * release_header()
float attenuation_linear() const
void set_name(const char *value, size_t size)
::ignition::msgs::Vector3d * unsafe_arena_release_direction()
void clear_spot_inner_angle()
void set_spot_outer_angle(float value)
::ignition::msgs::Header * mutable_header()
void clear_cast_shadows()
Light & operator=(Light &&from) noexcept
Definition: light.pb.h:129
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: light.pb.h:138
void set_name(const std::string &value)
bool has_specular() const
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * LightType_descriptor()
Definition: light.pb.h:239
void set_id(::PROTOBUF_NAMESPACE_ID::uint32 value)
::ignition::msgs::Color * release_diffuse()
void unsafe_arena_set_allocated_direction(::ignition::msgs::Vector3d *direction)
void set_attenuation_constant(float value)
void clear_spot_outer_angle()
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
std::string * mutable_name()
void MergeFrom(const Light &from)
static const Light * internal_default_instance()
Definition: light.pb.h:149
void set_range(float value)
std::string * release_name()
const ::ignition::msgs::Color & specular() const
::ignition::msgs::Color * unsafe_arena_release_specular()
::ignition::msgs::Vector3d * release_direction()
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
void set_parent_id(::PROTOBUF_NAMESPACE_ID::uint32 value)
static const Light & default_instance()
void set_allocated_direction(::ignition::msgs::Vector3d *direction)
void set_attenuation_quadratic(float value)
float spot_inner_angle() const
Light(::PROTOBUF_NAMESPACE_ID::Arena *arena)
friend void swap(Light &a, Light &b)
Definition: light.pb.h:156
::ignition::msgs::Light_LightType type() const
float spot_outer_angle() const
float attenuation_constant() const
Light()
Definition: light.pb.h:116
void set_allocated_pose(::ignition::msgs::Pose *pose)
void set_type(::ignition::msgs::Light_LightType value)
void UnsafeArenaSwap(Light *other)
Definition: light.pb.h:167
::ignition::msgs::Header * unsafe_arena_release_header()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
Light & operator=(const Light &from)
Definition: light.pb.h:125
const ::ignition::msgs::Vector3d & direction() const
Light_LightType LightType
Definition: light.pb.h:222
Light * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: light.pb.h:179
::ignition::msgs::Color * release_specular()
bool has_direction() const
bool cast_shadows() const
const ::ignition::msgs::Color & diffuse() const
::ignition::msgs::Vector3d * mutable_direction()
void set_allocated_header(::ignition::msgs::Header *header)
const ::ignition::msgs::Pose & pose() const
::ignition::msgs::Pose * unsafe_arena_release_pose()
::ignition::msgs::Color * unsafe_arena_release_diffuse()
void Swap(Light *other)
Definition: light.pb.h:159
void unsafe_arena_set_allocated_specular(::ignition::msgs::Color *specular)
::ignition::msgs::Pose * mutable_pose()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
::ignition::msgs::Color * mutable_specular()
::PROTOBUF_NAMESPACE_ID::uint32 id() const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: light.pb.h:141
static const std::string & LightType_Name(T enum_t_value)
Definition: light.pb.h:243
void set_allocated_specular(::ignition::msgs::Color *specular)
float spot_falloff() const
const std::string & name() const
void CopyFrom(const Light &from)
void unsafe_arena_set_allocated_diffuse(::ignition::msgs::Color *diffuse)
void set_name(const char *value)
void set_name(std::string &&value)
float attenuation_quadratic() const
static bool LightType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LightType *value)
Definition: light.pb.h:249
void set_allocated_name(std::string *name)
void set_allocated_diffuse(::ignition::msgs::Color *diffuse)
void set_spot_falloff(float value)
const ::ignition::msgs::Header & header() const
Light(Light &&from) noexcept
Definition: light.pb.h:120
void set_cast_shadows(bool value)
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2flight_2eproto
std::shared_ptr< const Light > ConstLightSharedPtr
Definition: light.pb.h:1191
IGNITION_MSGS_VISIBLE ColorDefaultTypeInternal _Color_default_instance_
const std::string & Light_LightType_Name(T enum_t_value)
Definition: light.pb.h:99
constexpr Light_LightType Light_LightType_LightType_MAX
Definition: light.pb.h:94
IGNITION_MSGS_VISIBLE Vector3dDefaultTypeInternal _Vector3d_default_instance_
std::unique_ptr< Light > LightUniquePtr
Definition: light.pb.h:1188
constexpr int Light_LightType_LightType_ARRAYSIZE
Definition: light.pb.h:95
std::shared_ptr< Light > LightSharedPtr
Definition: light.pb.h:1190
constexpr Light_LightType Light_LightType_LightType_MIN
Definition: light.pb.h:93
bool Light_LightType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Light_LightType *value)
Definition: light.pb.h:106
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
IGNITION_MSGS_VISIBLE LightDefaultTypeInternal _Light_default_instance_
IGNITION_MSGS_VISIBLE PoseDefaultTypeInternal _Pose_default_instance_
std::unique_ptr< const Light > ConstLightUniquePtr
Definition: light.pb.h:1189
Light_LightType
Definition: light.pb.h:85
@ Light_LightType_SPOT
Definition: light.pb.h:87
@ Light_LightType_DIRECTIONAL
Definition: light.pb.h:88
@ Light_LightType_Light_LightType_INT_MAX_SENTINEL_DO_NOT_USE_
Definition: light.pb.h:90
@ Light_LightType_POINT
Definition: light.pb.h:86
@ Light_LightType_Light_LightType_INT_MIN_SENTINEL_DO_NOT_USE_
Definition: light.pb.h:89
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Light_LightType_descriptor()
IGNITION_MSGS_VISIBLE bool Light_LightType_IsValid(int value)
Definition: actor.pb.h:52
Definition: light.pb.h:60
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)