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 < 3012000
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 3012004 < 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/inlined_string_field.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
31 #include <google/protobuf/message.h>
32 #include <google/protobuf/repeated_field.h>
33 #include <google/protobuf/extension_set.h>
34 #include <google/protobuf/generated_enum_reflection.h>
35 #include <google/protobuf/unknown_field_set.h>
41 #pragma GCC system_header
44 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
47 #include <sys/sysmacros.h>
52 #include <google/protobuf/port_def.inc>
53 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2flight_2eproto IGNITION_MSGS_VISIBLE
54 PROTOBUF_NAMESPACE_OPEN
58 PROTOBUF_NAMESPACE_CLOSE
62 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
64 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
66 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
68 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
69 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
70 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
76 class LightDefaultTypeInternal;
80 PROTOBUF_NAMESPACE_OPEN
81 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Light* Arena::CreateMaybeMessage<::ignition::msgs::Light>(Arena*);
82 PROTOBUF_NAMESPACE_CLOSE
103 "Incorrect type passed to function Light_LightType_Name.");
104 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
109 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Light_LightType>(
114 class IGNITION_MSGS_VISIBLE Light PROTOBUF_FINAL :
115 public ::PROTOBUF_NAMESPACE_ID::Message {
123 *
this = ::std::move(from);
131 if (GetArena() == from.GetArena()) {
132 if (
this != &from) InternalSwap(&from);
139 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
140 return GetDescriptor();
143 return GetMetadataStatic().descriptor;
146 return GetMetadataStatic().reflection;
152 return reinterpret_cast<const Light*
>(
155 static constexpr
int kIndexInFileMessages =
158 friend void swap(Light& a, Light& b) {
161 inline void Swap(Light* other) {
162 if (other ==
this)
return;
163 if (GetArena() == other->GetArena()) {
166 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
170 if (other ==
this)
return;
171 GOOGLE_DCHECK(GetArena() == other->GetArena());
177 inline Light*
New() const final {
178 return CreateMaybeMessage<Light>(
nullptr);
181 Light*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
182 return CreateMaybeMessage<Light>(arena);
184 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
185 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
188 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
189 bool IsInitialized() const final;
191 size_t ByteSizeLong() const final;
192 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
193 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
194 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
195 int GetCachedSize() const final {
return _cached_size_.Get(); }
198 inline void SharedCtor();
199 inline void SharedDtor();
200 void SetCachedSize(
int size)
const final;
201 void InternalSwap(Light* other);
202 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
203 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
204 return "ignition.msgs.Light";
207 explicit Light(::PROTOBUF_NAMESPACE_ID::Arena* arena);
209 static void ArenaDtor(
void*
object);
210 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
215 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
238 static constexpr
int LightType_ARRAYSIZE =
240 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
248 "Incorrect type passed to function LightType_Name.");
259 kNameFieldNumber = 2,
260 kHeaderFieldNumber = 1,
261 kPoseFieldNumber = 4,
262 kDiffuseFieldNumber = 5,
263 kSpecularFieldNumber = 6,
264 kDirectionFieldNumber = 10,
265 kTypeFieldNumber = 3,
266 kAttenuationConstantFieldNumber = 7,
267 kAttenuationLinearFieldNumber = 8,
268 kAttenuationQuadraticFieldNumber = 9,
269 kRangeFieldNumber = 11,
270 kCastShadowsFieldNumber = 12,
271 kSpotInnerAngleFieldNumber = 13,
272 kSpotOuterAngleFieldNumber = 14,
273 kSpotFalloffFieldNumber = 15,
275 kParentIdFieldNumber = 17,
276 kIntensityFieldNumber = 18,
288 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(
"The unsafe_arena_ accessors for"
289 " string fields are deprecated and will be removed in a"
291 std::
string* unsafe_arena_release_name();
292 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
293 "
string fields are deprecated and will be removed in a"
295 void unsafe_arena_set_allocated_name(
298 const
std::
string& _internal_name() const;
299 void _internal_set_name(const
std::
string& value);
300 std::
string* _internal_mutable_name();
304 bool has_header() const;
306 bool _internal_has_header() const;
312 void set_allocated_header(::
ignition::msgs::Header* header);
314 const ::
ignition::msgs::Header& _internal_header() const;
315 ::
ignition::msgs::Header* _internal_mutable_header();
317 void unsafe_arena_set_allocated_header(
319 ::
ignition::msgs::Header* unsafe_arena_release_header();
322 bool has_pose() const;
324 bool _internal_has_pose() const;
330 void set_allocated_pose(::
ignition::msgs::Pose* pose);
332 const ::
ignition::msgs::Pose& _internal_pose() const;
333 ::
ignition::msgs::Pose* _internal_mutable_pose();
335 void unsafe_arena_set_allocated_pose(
337 ::
ignition::msgs::Pose* unsafe_arena_release_pose();
340 bool has_diffuse() const;
342 bool _internal_has_diffuse() const;
344 void clear_diffuse();
348 void set_allocated_diffuse(::
ignition::msgs::Color* diffuse);
350 const ::
ignition::msgs::Color& _internal_diffuse() const;
351 ::
ignition::msgs::Color* _internal_mutable_diffuse();
353 void unsafe_arena_set_allocated_diffuse(
355 ::
ignition::msgs::Color* unsafe_arena_release_diffuse();
358 bool has_specular() const;
360 bool _internal_has_specular() const;
362 void clear_specular();
366 void set_allocated_specular(::
ignition::msgs::Color* specular);
368 const ::
ignition::msgs::Color& _internal_specular() const;
369 ::
ignition::msgs::Color* _internal_mutable_specular();
371 void unsafe_arena_set_allocated_specular(
373 ::
ignition::msgs::Color* unsafe_arena_release_specular();
376 bool has_direction() const;
378 bool _internal_has_direction() const;
380 void clear_direction();
389 void unsafe_arena_set_allocated_direction(
403 void clear_attenuation_constant();
404 float attenuation_constant() const;
405 void set_attenuation_constant(
float value);
407 float _internal_attenuation_constant() const;
408 void _internal_set_attenuation_constant(
float value);
412 void clear_attenuation_linear();
413 float attenuation_linear() const;
414 void set_attenuation_linear(
float value);
416 float _internal_attenuation_linear() const;
417 void _internal_set_attenuation_linear(
float value);
421 void clear_attenuation_quadratic();
422 float attenuation_quadratic() const;
423 void set_attenuation_quadratic(
float value);
425 float _internal_attenuation_quadratic() const;
426 void _internal_set_attenuation_quadratic(
float value);
432 void set_range(
float value);
434 float _internal_range() const;
435 void _internal_set_range(
float value);
439 void clear_cast_shadows();
440 bool cast_shadows() const;
441 void set_cast_shadows(
bool value);
443 bool _internal_cast_shadows() const;
444 void _internal_set_cast_shadows(
bool value);
448 void clear_spot_inner_angle();
449 float spot_inner_angle() const;
450 void set_spot_inner_angle(
float value);
452 float _internal_spot_inner_angle() const;
453 void _internal_set_spot_inner_angle(
float value);
457 void clear_spot_outer_angle();
458 float spot_outer_angle() const;
459 void set_spot_outer_angle(
float value);
461 float _internal_spot_outer_angle() const;
462 void _internal_set_spot_outer_angle(
float value);
466 void clear_spot_falloff();
467 float spot_falloff() const;
468 void set_spot_falloff(
float value);
470 float _internal_spot_falloff() const;
471 void _internal_set_spot_falloff(
float value);
476 ::PROTOBUF_NAMESPACE_ID::uint32
id() const;
477 void set_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
479 ::PROTOBUF_NAMESPACE_ID::uint32 _internal_id() const;
480 void _internal_set_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
484 void clear_parent_id();
485 ::PROTOBUF_NAMESPACE_ID::uint32 parent_id() const;
486 void set_parent_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
488 ::PROTOBUF_NAMESPACE_ID::uint32 _internal_parent_id() const;
489 void _internal_set_parent_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
493 void clear_intensity();
494 float intensity() const;
495 void set_intensity(
float value);
497 float _internal_intensity() const;
498 void _internal_set_intensity(
float value);
505 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
506 typedef
void InternalArenaConstructable_;
507 typedef
void DestructorSkippable_;
508 ::PROTOBUF_NAMESPACE_ID::
internal::ArenaStringPtr name_;
515 float attenuation_constant_;
516 float attenuation_linear_;
517 float attenuation_quadratic_;
520 float spot_inner_angle_;
521 float spot_outer_angle_;
523 ::PROTOBUF_NAMESPACE_ID::uint32 id_;
524 ::PROTOBUF_NAMESPACE_ID::uint32 parent_id_;
526 mutable ::PROTOBUF_NAMESPACE_ID::
internal::CachedSize _cached_size_;
535 #pragma GCC diagnostic push
536 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
541 inline bool Light::_internal_has_header()
const {
542 return this != internal_default_instance() && header_ !=
nullptr;
544 inline bool Light::has_header()
const {
545 return _internal_has_header();
547 inline const ::ignition::msgs::Header& Light::_internal_header()
const {
548 const ::ignition::msgs::Header* p = header_;
549 return p !=
nullptr ? *p : *
reinterpret_cast<const ::ignition::msgs::Header*
>(
552 inline const ::ignition::msgs::Header& Light::header()
const {
554 return _internal_header();
556 inline void Light::unsafe_arena_set_allocated_header(
557 ::ignition::msgs::Header* header) {
558 if (GetArena() ==
nullptr) {
559 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
569 inline ::ignition::msgs::Header* Light::release_header() {
570 auto temp = unsafe_arena_release_header();
571 if (GetArena() !=
nullptr) {
572 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
576 inline ::ignition::msgs::Header* Light::unsafe_arena_release_header() {
579 ::ignition::msgs::Header* temp = header_;
583 inline ::ignition::msgs::Header* Light::_internal_mutable_header() {
585 if (header_ ==
nullptr) {
586 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
591 inline ::ignition::msgs::Header* Light::mutable_header() {
593 return _internal_mutable_header();
595 inline void Light::set_allocated_header(::ignition::msgs::Header* header) {
596 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
597 if (message_arena ==
nullptr) {
598 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
601 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
602 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header)->GetArena();
603 if (message_arena != submessage_arena) {
604 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
605 message_arena, header, submessage_arena);
616 inline void Light::clear_name() {
617 name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
621 return _internal_name();
623 inline void Light::set_name(
const std::string& value) {
624 _internal_set_name(value);
629 return _internal_mutable_name();
631 inline const std::string& Light::_internal_name()
const {
634 inline void Light::_internal_set_name(
const std::string& value) {
636 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
641 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::move(value), GetArena());
644 inline void Light::set_name(
const char* value) {
645 GOOGLE_DCHECK(value !=
nullptr);
647 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::string(value),
651 inline void Light::set_name(
const char* value,
654 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::string(
655 reinterpret_cast<const char*
>(value), size), GetArena());
658 inline std::string* Light::_internal_mutable_name() {
660 return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
664 return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
666 inline void Light::set_allocated_name(
std::string* name) {
667 if (name !=
nullptr) {
672 name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
676 inline std::string* Light::unsafe_arena_release_name() {
678 GOOGLE_DCHECK(GetArena() !=
nullptr);
680 return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
683 inline void Light::unsafe_arena_set_allocated_name(
685 GOOGLE_DCHECK(GetArena() !=
nullptr);
686 if (name !=
nullptr) {
691 name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
697 inline void Light::clear_type() {
705 return _internal_type();
712 _internal_set_type(value);
717 inline bool Light::_internal_has_pose()
const {
718 return this != internal_default_instance() && pose_ !=
nullptr;
720 inline bool Light::has_pose()
const {
721 return _internal_has_pose();
723 inline const ::ignition::msgs::Pose& Light::_internal_pose()
const {
724 const ::ignition::msgs::Pose* p = pose_;
725 return p !=
nullptr ? *p : *
reinterpret_cast<const ::ignition::msgs::Pose*
>(
728 inline const ::ignition::msgs::Pose& Light::pose()
const {
730 return _internal_pose();
732 inline void Light::unsafe_arena_set_allocated_pose(
733 ::ignition::msgs::Pose* pose) {
734 if (GetArena() ==
nullptr) {
735 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(pose_);
745 inline ::ignition::msgs::Pose* Light::release_pose() {
746 auto temp = unsafe_arena_release_pose();
747 if (GetArena() !=
nullptr) {
748 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
752 inline ::ignition::msgs::Pose* Light::unsafe_arena_release_pose() {
755 ::ignition::msgs::Pose* temp = pose_;
759 inline ::ignition::msgs::Pose* Light::_internal_mutable_pose() {
761 if (pose_ ==
nullptr) {
762 auto* p = CreateMaybeMessage<::ignition::msgs::Pose>(GetArena());
767 inline ::ignition::msgs::Pose* Light::mutable_pose() {
769 return _internal_mutable_pose();
771 inline void Light::set_allocated_pose(::ignition::msgs::Pose* pose) {
772 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
773 if (message_arena ==
nullptr) {
774 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(pose_);
777 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
778 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(pose)->GetArena();
779 if (message_arena != submessage_arena) {
780 pose = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
781 message_arena, pose, submessage_arena);
792 inline bool Light::_internal_has_diffuse()
const {
793 return this != internal_default_instance() && diffuse_ !=
nullptr;
795 inline bool Light::has_diffuse()
const {
796 return _internal_has_diffuse();
798 inline const ::ignition::msgs::Color& Light::_internal_diffuse()
const {
799 const ::ignition::msgs::Color* p = diffuse_;
800 return p !=
nullptr ? *p : *
reinterpret_cast<const ::ignition::msgs::Color*
>(
803 inline const ::ignition::msgs::Color& Light::diffuse()
const {
805 return _internal_diffuse();
807 inline void Light::unsafe_arena_set_allocated_diffuse(
808 ::ignition::msgs::Color* diffuse) {
809 if (GetArena() ==
nullptr) {
810 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(diffuse_);
820 inline ::ignition::msgs::Color* Light::release_diffuse() {
821 auto temp = unsafe_arena_release_diffuse();
822 if (GetArena() !=
nullptr) {
823 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
827 inline ::ignition::msgs::Color* Light::unsafe_arena_release_diffuse() {
830 ::ignition::msgs::Color* temp = diffuse_;
834 inline ::ignition::msgs::Color* Light::_internal_mutable_diffuse() {
836 if (diffuse_ ==
nullptr) {
837 auto* p = CreateMaybeMessage<::ignition::msgs::Color>(GetArena());
842 inline ::ignition::msgs::Color* Light::mutable_diffuse() {
844 return _internal_mutable_diffuse();
846 inline void Light::set_allocated_diffuse(::ignition::msgs::Color* diffuse) {
847 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
848 if (message_arena ==
nullptr) {
849 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(diffuse_);
852 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
853 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(diffuse)->GetArena();
854 if (message_arena != submessage_arena) {
855 diffuse = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
856 message_arena, diffuse, submessage_arena);
867 inline bool Light::_internal_has_specular()
const {
868 return this != internal_default_instance() && specular_ !=
nullptr;
870 inline bool Light::has_specular()
const {
871 return _internal_has_specular();
873 inline const ::ignition::msgs::Color& Light::_internal_specular()
const {
874 const ::ignition::msgs::Color* p = specular_;
875 return p !=
nullptr ? *p : *
reinterpret_cast<const ::ignition::msgs::Color*
>(
878 inline const ::ignition::msgs::Color& Light::specular()
const {
880 return _internal_specular();
882 inline void Light::unsafe_arena_set_allocated_specular(
883 ::ignition::msgs::Color* specular) {
884 if (GetArena() ==
nullptr) {
885 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(specular_);
887 specular_ = specular;
895 inline ::ignition::msgs::Color* Light::release_specular() {
896 auto temp = unsafe_arena_release_specular();
897 if (GetArena() !=
nullptr) {
898 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
902 inline ::ignition::msgs::Color* Light::unsafe_arena_release_specular() {
905 ::ignition::msgs::Color* temp = specular_;
909 inline ::ignition::msgs::Color* Light::_internal_mutable_specular() {
911 if (specular_ ==
nullptr) {
912 auto* p = CreateMaybeMessage<::ignition::msgs::Color>(GetArena());
917 inline ::ignition::msgs::Color* Light::mutable_specular() {
919 return _internal_mutable_specular();
921 inline void Light::set_allocated_specular(::ignition::msgs::Color* specular) {
922 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
923 if (message_arena ==
nullptr) {
924 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(specular_);
927 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
928 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(specular)->GetArena();
929 if (message_arena != submessage_arena) {
930 specular = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
931 message_arena, specular, submessage_arena);
937 specular_ = specular;
942 inline void Light::clear_attenuation_constant() {
943 attenuation_constant_ = 0;
945 inline float Light::_internal_attenuation_constant()
const {
946 return attenuation_constant_;
948 inline float Light::attenuation_constant()
const {
950 return _internal_attenuation_constant();
952 inline void Light::_internal_set_attenuation_constant(
float value) {
954 attenuation_constant_ = value;
956 inline void Light::set_attenuation_constant(
float value) {
957 _internal_set_attenuation_constant(value);
962 inline void Light::clear_attenuation_linear() {
963 attenuation_linear_ = 0;
965 inline float Light::_internal_attenuation_linear()
const {
966 return attenuation_linear_;
968 inline float Light::attenuation_linear()
const {
970 return _internal_attenuation_linear();
972 inline void Light::_internal_set_attenuation_linear(
float value) {
974 attenuation_linear_ = value;
976 inline void Light::set_attenuation_linear(
float value) {
977 _internal_set_attenuation_linear(value);
982 inline void Light::clear_attenuation_quadratic() {
983 attenuation_quadratic_ = 0;
985 inline float Light::_internal_attenuation_quadratic()
const {
986 return attenuation_quadratic_;
988 inline float Light::attenuation_quadratic()
const {
990 return _internal_attenuation_quadratic();
992 inline void Light::_internal_set_attenuation_quadratic(
float value) {
994 attenuation_quadratic_ = value;
996 inline void Light::set_attenuation_quadratic(
float value) {
997 _internal_set_attenuation_quadratic(value);
1002 inline bool Light::_internal_has_direction()
const {
1003 return this != internal_default_instance() && direction_ !=
nullptr;
1005 inline bool Light::has_direction()
const {
1006 return _internal_has_direction();
1008 inline const ::ignition::msgs::Vector3d& Light::_internal_direction()
const {
1009 const ::ignition::msgs::Vector3d* p = direction_;
1010 return p !=
nullptr ? *p : *
reinterpret_cast<const ::ignition::msgs::Vector3d*
>(
1013 inline const ::ignition::msgs::Vector3d& Light::direction()
const {
1015 return _internal_direction();
1017 inline void Light::unsafe_arena_set_allocated_direction(
1018 ::ignition::msgs::Vector3d* direction) {
1019 if (GetArena() ==
nullptr) {
1020 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(direction_);
1022 direction_ = direction;
1030 inline ::ignition::msgs::Vector3d* Light::release_direction() {
1031 auto temp = unsafe_arena_release_direction();
1032 if (GetArena() !=
nullptr) {
1033 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1037 inline ::ignition::msgs::Vector3d* Light::unsafe_arena_release_direction() {
1040 ::ignition::msgs::Vector3d* temp = direction_;
1041 direction_ =
nullptr;
1044 inline ::ignition::msgs::Vector3d* Light::_internal_mutable_direction() {
1046 if (direction_ ==
nullptr) {
1047 auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArena());
1052 inline ::ignition::msgs::Vector3d* Light::mutable_direction() {
1054 return _internal_mutable_direction();
1056 inline void Light::set_allocated_direction(::ignition::msgs::Vector3d* direction) {
1057 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
1058 if (message_arena ==
nullptr) {
1059 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(direction_);
1062 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1063 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(direction)->GetArena();
1064 if (message_arena != submessage_arena) {
1065 direction = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1066 message_arena, direction, submessage_arena);
1072 direction_ = direction;
1077 inline void Light::clear_range() {
1080 inline float Light::_internal_range()
const {
1083 inline float Light::range()
const {
1085 return _internal_range();
1087 inline void Light::_internal_set_range(
float value) {
1091 inline void Light::set_range(
float value) {
1092 _internal_set_range(value);
1097 inline void Light::clear_cast_shadows() {
1098 cast_shadows_ =
false;
1100 inline bool Light::_internal_cast_shadows()
const {
1101 return cast_shadows_;
1103 inline bool Light::cast_shadows()
const {
1105 return _internal_cast_shadows();
1107 inline void Light::_internal_set_cast_shadows(
bool value) {
1109 cast_shadows_ = value;
1111 inline void Light::set_cast_shadows(
bool value) {
1112 _internal_set_cast_shadows(value);
1117 inline void Light::clear_spot_inner_angle() {
1118 spot_inner_angle_ = 0;
1120 inline float Light::_internal_spot_inner_angle()
const {
1121 return spot_inner_angle_;
1123 inline float Light::spot_inner_angle()
const {
1125 return _internal_spot_inner_angle();
1127 inline void Light::_internal_set_spot_inner_angle(
float value) {
1129 spot_inner_angle_ = value;
1131 inline void Light::set_spot_inner_angle(
float value) {
1132 _internal_set_spot_inner_angle(value);
1137 inline void Light::clear_spot_outer_angle() {
1138 spot_outer_angle_ = 0;
1140 inline float Light::_internal_spot_outer_angle()
const {
1141 return spot_outer_angle_;
1143 inline float Light::spot_outer_angle()
const {
1145 return _internal_spot_outer_angle();
1147 inline void Light::_internal_set_spot_outer_angle(
float value) {
1149 spot_outer_angle_ = value;
1151 inline void Light::set_spot_outer_angle(
float value) {
1152 _internal_set_spot_outer_angle(value);
1157 inline void Light::clear_spot_falloff() {
1160 inline float Light::_internal_spot_falloff()
const {
1161 return spot_falloff_;
1163 inline float Light::spot_falloff()
const {
1165 return _internal_spot_falloff();
1167 inline void Light::_internal_set_spot_falloff(
float value) {
1169 spot_falloff_ = value;
1171 inline void Light::set_spot_falloff(
float value) {
1172 _internal_set_spot_falloff(value);
1177 inline void Light::clear_id() {
1180 inline ::PROTOBUF_NAMESPACE_ID::uint32 Light::_internal_id()
const {
1183 inline ::PROTOBUF_NAMESPACE_ID::uint32 Light::id()
const {
1185 return _internal_id();
1187 inline void Light::_internal_set_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
1191 inline void Light::set_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
1192 _internal_set_id(value);
1197 inline void Light::clear_parent_id() {
1200 inline ::PROTOBUF_NAMESPACE_ID::uint32 Light::_internal_parent_id()
const {
1203 inline ::PROTOBUF_NAMESPACE_ID::uint32 Light::parent_id()
const {
1205 return _internal_parent_id();
1207 inline void Light::_internal_set_parent_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
1211 inline void Light::set_parent_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
1212 _internal_set_parent_id(value);
1217 inline void Light::clear_intensity() {
1220 inline float Light::_internal_intensity()
const {
1223 inline float Light::intensity()
const {
1225 return _internal_intensity();
1227 inline void Light::_internal_set_intensity(
float value) {
1231 inline void Light::set_intensity(
float value) {
1232 _internal_set_intensity(value);
1237 #pragma GCC diagnostic pop
1249 PROTOBUF_NAMESPACE_OPEN
1253 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Light_LightType>() {
1257 PROTOBUF_NAMESPACE_CLOSE
1260 #pragma warning(pop)
1264 #include <google/protobuf/port_undef.inc>
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2flight_2eproto
static void InitAsDefaultInstance()
Light * New() const final
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:177
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:145
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static bool LightType_IsValid(int value)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:231
void set_name(const char *value, size_t size)
Light & operator=(Light &&from) noexcept
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:130
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:139
void set_name(const std::string &value)
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * LightType_descriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:241
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: build/ignition-msgs8/include/ignition/msgs/light.pb.h:151
std::string * release_name()
static const Light & default_instance()
Light(::PROTOBUF_NAMESPACE_ID::Arena *arena)
friend void swap(Light &a, Light &b)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:158
Light()
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:117
void UnsafeArenaSwap(Light *other)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:169
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
Light & operator=(const Light &from)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:126
Light_LightType LightType
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:224
Light * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:181
void Swap(Light *other)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:161
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static bool LightType_Parse(const std::string &name, LightType *value)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:251
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:142
static const std::string & LightType_Name(T enum_t_value)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:245
const std::string & name() const
void CopyFrom(const Light &from)
void set_name(const char *value)
void set_name(std::string &&value)
void set_allocated_name(std::string *name)
Light(Light &&from) noexcept
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:121
Vector3< double > Vector3d
std::shared_ptr< const Light > ConstLightSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:1243
IGNITION_MSGS_VISIBLE ColorDefaultTypeInternal _Color_default_instance_
const std::string & Light_LightType_Name(T enum_t_value)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:100
constexpr Light_LightType Light_LightType_LightType_MAX
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:95
IGNITION_MSGS_VISIBLE Vector3dDefaultTypeInternal _Vector3d_default_instance_
std::unique_ptr< Light > LightUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:1240
constexpr int Light_LightType_LightType_ARRAYSIZE
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:96
std::shared_ptr< Light > LightSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:1242
constexpr Light_LightType Light_LightType_LightType_MIN
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:94
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: build/ignition-msgs8/include/ignition/msgs/light.pb.h:1241
Light_LightType
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:86
@ Light_LightType_SPOT
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:88
@ Light_LightType_DIRECTIONAL
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:89
@ Light_LightType_Light_LightType_INT_MAX_SENTINEL_DO_NOT_USE_
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:91
@ Light_LightType_POINT
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:87
@ Light_LightType_Light_LightType_INT_MIN_SENTINEL_DO_NOT_USE_
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:90
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Light_LightType_descriptor()
IGNITION_MSGS_VISIBLE bool Light_LightType_IsValid(int value)
bool Light_LightType_Parse(const std::string &name, Light_LightType *value)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:107
Definition: build/ignition-msgs8/include/ignition/msgs/actor.pb.h:53
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:61
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)
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)