Ignition Msgs

API Reference

5.8.1
light.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/light.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2flight_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2flight_2eproto
6 
7 #include <limits>
8 #include <string>
9 
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3019000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 3019000 < PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
20 #endif
21 
22 #include <google/protobuf/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/generated_message_reflection.h>
30 #include <google/protobuf/message.h>
31 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
32 #include <google/protobuf/extension_set.h> // IWYU pragma: export
33 #include <google/protobuf/generated_enum_reflection.h>
34 #include <google/protobuf/unknown_field_set.h>
36 #include "ignition/msgs/pose.pb.h"
38 #include "ignition/msgs/color.pb.h"
39 #ifndef _MSC_VER
40 #pragma GCC system_header
41 #else
42 #pragma warning(push)
43 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
44 #endif
45 #ifdef __linux__
46 #include <sys/sysmacros.h>
47 #endif
48 #include <memory>
49 #include <ignition/msgs/Export.hh>
50 // @@protoc_insertion_point(includes)
51 #include <google/protobuf/port_def.inc>
52 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2flight_2eproto IGNITION_MSGS_VISIBLE
53 PROTOBUF_NAMESPACE_OPEN
54 namespace internal {
55 class AnyMetadata;
56 } // namespace internal
57 PROTOBUF_NAMESPACE_CLOSE
58 
59 // Internal implementation detail -- do not use these members.
60 struct IGNITION_MSGS_VISIBLE TableStruct_ignition_2fmsgs_2flight_2eproto {
61  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
62  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
63  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
64  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
65  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
66  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
67  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
68  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
69  static const uint32_t offsets[];
70 };
71 IGNITION_MSGS_VISIBLE extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2flight_2eproto;
72 namespace ignition {
73 namespace msgs {
74 class Light;
75 struct LightDefaultTypeInternal;
76 IGNITION_MSGS_VISIBLE extern LightDefaultTypeInternal _Light_default_instance_;
77 } // namespace msgs
78 } // namespace ignition
79 PROTOBUF_NAMESPACE_OPEN
80 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Light* Arena::CreateMaybeMessage<::ignition::msgs::Light>(Arena*);
81 PROTOBUF_NAMESPACE_CLOSE
82 namespace ignition {
83 namespace msgs {
84 
85 enum Light_LightType : int {
91 };
92 IGNITION_MSGS_VISIBLE bool Light_LightType_IsValid(int value);
96 
97 IGNITION_MSGS_VISIBLE const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Light_LightType_descriptor();
98 template<typename T>
99 inline const std::string& Light_LightType_Name(T enum_t_value) {
100  static_assert(::std::is_same<T, Light_LightType>::value ||
102  "Incorrect type passed to function Light_LightType_Name.");
103  return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
104  Light_LightType_descriptor(), enum_t_value);
105 }
107  ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Light_LightType* value) {
108  return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Light_LightType>(
109  Light_LightType_descriptor(), name, value);
110 }
111 // ===================================================================
112 
113 class IGNITION_MSGS_VISIBLE Light final :
114  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Light) */ {
115  public:
116  inline Light() : Light(nullptr) {}
117  ~Light() override;
118  explicit constexpr Light(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
119 
120  Light(const Light& from);
121  Light(Light&& from) noexcept
122  : Light() {
123  *this = ::std::move(from);
124  }
125 
126  inline Light& operator=(const Light& from) {
127  CopyFrom(from);
128  return *this;
129  }
130  inline Light& operator=(Light&& from) noexcept {
131  if (this == &from) return *this;
132  if (GetOwningArena() == from.GetOwningArena()
133  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
134  && GetOwningArena() != nullptr
135  #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
136  ) {
137  InternalSwap(&from);
138  } else {
139  CopyFrom(from);
140  }
141  return *this;
142  }
143 
144  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
145  return GetDescriptor();
146  }
147  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
148  return default_instance().GetMetadata().descriptor;
149  }
150  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
151  return default_instance().GetMetadata().reflection;
152  }
153  static const Light& default_instance() {
154  return *internal_default_instance();
155  }
156  static inline const Light* internal_default_instance() {
157  return reinterpret_cast<const Light*>(
159  }
160  static constexpr int kIndexInFileMessages =
161  0;
162 
163  friend void swap(Light& a, Light& b) {
164  a.Swap(&b);
165  }
166  inline void Swap(Light* other) {
167  if (other == this) return;
168  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
169  if (GetOwningArena() != nullptr &&
170  GetOwningArena() == other->GetOwningArena()) {
171  #else // PROTOBUF_FORCE_COPY_IN_SWAP
172  if (GetOwningArena() == other->GetOwningArena()) {
173  #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
174  InternalSwap(other);
175  } else {
176  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
177  }
178  }
179  void UnsafeArenaSwap(Light* other) {
180  if (other == this) return;
181  GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
182  InternalSwap(other);
183  }
184 
185  // implements Message ----------------------------------------------
186 
187  Light* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
188  return CreateMaybeMessage<Light>(arena);
189  }
190  using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
191  void CopyFrom(const Light& from);
192  using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
193  void MergeFrom(const Light& from);
194  private:
195  static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
196  public:
197  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
198  bool IsInitialized() const final;
199 
200  size_t ByteSizeLong() const final;
201  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
202  uint8_t* _InternalSerialize(
203  uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
204  int GetCachedSize() const final { return _cached_size_.Get(); }
205 
206  private:
207  void SharedCtor();
208  void SharedDtor();
209  void SetCachedSize(int size) const final;
210  void InternalSwap(Light* other);
211 
212  private:
213  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
214  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
215  return "ignition.msgs.Light";
216  }
217  protected:
218  explicit Light(::PROTOBUF_NAMESPACE_ID::Arena* arena,
219  bool is_message_owned = false);
220  private:
221  static void ArenaDtor(void* object);
222  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
223  public:
224 
225  static const ClassData _class_data_;
226  const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
227 
228  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
229 
230  // nested types ----------------------------------------------------
231 
233  static constexpr LightType POINT =
235  static constexpr LightType SPOT =
237  static constexpr LightType DIRECTIONAL =
239  static inline bool LightType_IsValid(int value) {
240  return Light_LightType_IsValid(value);
241  }
242  static constexpr LightType LightType_MIN =
244  static constexpr LightType LightType_MAX =
246  static constexpr int LightType_ARRAYSIZE =
248  static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
251  }
252  template<typename T>
253  static inline const std::string& LightType_Name(T enum_t_value) {
254  static_assert(::std::is_same<T, LightType>::value ||
256  "Incorrect type passed to function LightType_Name.");
257  return Light_LightType_Name(enum_t_value);
258  }
259  static inline bool LightType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
260  LightType* value) {
261  return Light_LightType_Parse(name, value);
262  }
263 
264  // accessors -------------------------------------------------------
265 
266  enum : int {
267  kNameFieldNumber = 2,
268  kHeaderFieldNumber = 1,
269  kPoseFieldNumber = 4,
270  kDiffuseFieldNumber = 5,
271  kSpecularFieldNumber = 6,
272  kDirectionFieldNumber = 10,
273  kTypeFieldNumber = 3,
274  kAttenuationConstantFieldNumber = 7,
275  kAttenuationLinearFieldNumber = 8,
276  kAttenuationQuadraticFieldNumber = 9,
277  kRangeFieldNumber = 11,
278  kCastShadowsFieldNumber = 12,
279  kSpotInnerAngleFieldNumber = 13,
280  kSpotOuterAngleFieldNumber = 14,
281  kSpotFalloffFieldNumber = 15,
282  kIdFieldNumber = 16,
283  kParentIdFieldNumber = 17,
284  };
285  // string name = 2;
286  void clear_name();
287  const std::string& name() const;
288  template <typename ArgT0 = const std::string&, typename... ArgT>
289  void set_name(ArgT0&& arg0, ArgT... args);
290  std::string* mutable_name();
291  PROTOBUF_NODISCARD std::string* release_name();
292  void set_allocated_name(std::string* name);
293  private:
294  const std::string& _internal_name() const;
295  inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
296  std::string* _internal_mutable_name();
297  public:
298 
299  // .ignition.msgs.Header header = 1;
300  bool has_header() const;
301  private:
302  bool _internal_has_header() const;
303  public:
304  void clear_header();
305  const ::ignition::msgs::Header& header() const;
306  PROTOBUF_NODISCARD ::ignition::msgs::Header* release_header();
307  ::ignition::msgs::Header* mutable_header();
308  void set_allocated_header(::ignition::msgs::Header* header);
309  private:
310  const ::ignition::msgs::Header& _internal_header() const;
311  ::ignition::msgs::Header* _internal_mutable_header();
312  public:
313  void unsafe_arena_set_allocated_header(
314  ::ignition::msgs::Header* header);
315  ::ignition::msgs::Header* unsafe_arena_release_header();
316 
317  // .ignition.msgs.Pose pose = 4;
318  bool has_pose() const;
319  private:
320  bool _internal_has_pose() const;
321  public:
322  void clear_pose();
323  const ::ignition::msgs::Pose& pose() const;
324  PROTOBUF_NODISCARD ::ignition::msgs::Pose* release_pose();
325  ::ignition::msgs::Pose* mutable_pose();
326  void set_allocated_pose(::ignition::msgs::Pose* pose);
327  private:
328  const ::ignition::msgs::Pose& _internal_pose() const;
329  ::ignition::msgs::Pose* _internal_mutable_pose();
330  public:
331  void unsafe_arena_set_allocated_pose(
332  ::ignition::msgs::Pose* pose);
333  ::ignition::msgs::Pose* unsafe_arena_release_pose();
334 
335  // .ignition.msgs.Color diffuse = 5;
336  bool has_diffuse() const;
337  private:
338  bool _internal_has_diffuse() const;
339  public:
341  const ::ignition::msgs::Color& diffuse() const;
342  PROTOBUF_NODISCARD ::ignition::msgs::Color* release_diffuse();
343  ::ignition::msgs::Color* mutable_diffuse();
344  void set_allocated_diffuse(::ignition::msgs::Color* diffuse);
345  private:
346  const ::ignition::msgs::Color& _internal_diffuse() const;
347  ::ignition::msgs::Color* _internal_mutable_diffuse();
348  public:
349  void unsafe_arena_set_allocated_diffuse(
350  ::ignition::msgs::Color* diffuse);
351  ::ignition::msgs::Color* unsafe_arena_release_diffuse();
352 
353  // .ignition.msgs.Color specular = 6;
354  bool has_specular() const;
355  private:
356  bool _internal_has_specular() const;
357  public:
359  const ::ignition::msgs::Color& specular() const;
360  PROTOBUF_NODISCARD ::ignition::msgs::Color* release_specular();
361  ::ignition::msgs::Color* mutable_specular();
362  void set_allocated_specular(::ignition::msgs::Color* specular);
363  private:
364  const ::ignition::msgs::Color& _internal_specular() const;
365  ::ignition::msgs::Color* _internal_mutable_specular();
366  public:
367  void unsafe_arena_set_allocated_specular(
368  ::ignition::msgs::Color* specular);
369  ::ignition::msgs::Color* unsafe_arena_release_specular();
370 
371  // .ignition.msgs.Vector3d direction = 10;
372  bool has_direction() const;
373  private:
374  bool _internal_has_direction() const;
375  public:
377  const ::ignition::msgs::Vector3d& direction() const;
378  PROTOBUF_NODISCARD ::ignition::msgs::Vector3d* release_direction();
379  ::ignition::msgs::Vector3d* mutable_direction();
380  void set_allocated_direction(::ignition::msgs::Vector3d* direction);
381  private:
382  const ::ignition::msgs::Vector3d& _internal_direction() const;
383  ::ignition::msgs::Vector3d* _internal_mutable_direction();
384  public:
385  void unsafe_arena_set_allocated_direction(
386  ::ignition::msgs::Vector3d* direction);
387  ::ignition::msgs::Vector3d* unsafe_arena_release_direction();
388 
389  // .ignition.msgs.Light.LightType type = 3;
390  void clear_type();
392  void set_type(::ignition::msgs::Light_LightType value);
393  private:
394  ::ignition::msgs::Light_LightType _internal_type() const;
395  void _internal_set_type(::ignition::msgs::Light_LightType value);
396  public:
397 
398  // float attenuation_constant = 7;
399  void clear_attenuation_constant();
400  float attenuation_constant() const;
401  void set_attenuation_constant(float value);
402  private:
403  float _internal_attenuation_constant() const;
404  void _internal_set_attenuation_constant(float value);
405  public:
406 
407  // float attenuation_linear = 8;
408  void clear_attenuation_linear();
409  float attenuation_linear() const;
410  void set_attenuation_linear(float value);
411  private:
412  float _internal_attenuation_linear() const;
413  void _internal_set_attenuation_linear(float value);
414  public:
415 
416  // float attenuation_quadratic = 9;
417  void clear_attenuation_quadratic();
418  float attenuation_quadratic() const;
419  void set_attenuation_quadratic(float value);
420  private:
421  float _internal_attenuation_quadratic() const;
422  void _internal_set_attenuation_quadratic(float value);
423  public:
424 
425  // float range = 11;
426  void clear_range();
427  float range() const;
428  void set_range(float value);
429  private:
430  float _internal_range() const;
431  void _internal_set_range(float value);
432  public:
433 
434  // bool cast_shadows = 12;
435  void clear_cast_shadows();
436  bool cast_shadows() const;
437  void set_cast_shadows(bool value);
438  private:
439  bool _internal_cast_shadows() const;
440  void _internal_set_cast_shadows(bool value);
441  public:
442 
443  // float spot_inner_angle = 13;
444  void clear_spot_inner_angle();
445  float spot_inner_angle() const;
446  void set_spot_inner_angle(float value);
447  private:
448  float _internal_spot_inner_angle() const;
449  void _internal_set_spot_inner_angle(float value);
450  public:
451 
452  // float spot_outer_angle = 14;
453  void clear_spot_outer_angle();
454  float spot_outer_angle() const;
455  void set_spot_outer_angle(float value);
456  private:
457  float _internal_spot_outer_angle() const;
458  void _internal_set_spot_outer_angle(float value);
459  public:
460 
461  // float spot_falloff = 15;
462  void clear_spot_falloff();
463  float spot_falloff() const;
464  void set_spot_falloff(float value);
465  private:
466  float _internal_spot_falloff() const;
467  void _internal_set_spot_falloff(float value);
468  public:
469 
470  // uint32 id = 16;
471  void clear_id();
472  uint32_t id() const;
473  void set_id(uint32_t value);
474  private:
475  uint32_t _internal_id() const;
476  void _internal_set_id(uint32_t value);
477  public:
478 
479  // uint32 parent_id = 17;
480  void clear_parent_id();
481  uint32_t parent_id() const;
482  void set_parent_id(uint32_t value);
483  private:
484  uint32_t _internal_parent_id() const;
485  void _internal_set_parent_id(uint32_t value);
486  public:
487 
488  // @@protoc_insertion_point(class_scope:ignition.msgs.Light)
489  private:
490  class _Internal;
491 
492  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
493  typedef void InternalArenaConstructable_;
494  typedef void DestructorSkippable_;
495  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
496  ::ignition::msgs::Header* header_;
497  ::ignition::msgs::Pose* pose_;
498  ::ignition::msgs::Color* diffuse_;
499  ::ignition::msgs::Color* specular_;
500  ::ignition::msgs::Vector3d* direction_;
501  int type_;
502  float attenuation_constant_;
503  float attenuation_linear_;
504  float attenuation_quadratic_;
505  float range_;
506  bool cast_shadows_;
507  float spot_inner_angle_;
508  float spot_outer_angle_;
509  float spot_falloff_;
510  uint32_t id_;
511  uint32_t parent_id_;
512  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
513  friend struct ::TableStruct_ignition_2fmsgs_2flight_2eproto;
514 };
515 // ===================================================================
516 
517 
518 // ===================================================================
519 
520 #ifdef __GNUC__
521  #pragma GCC diagnostic push
522  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
523 #endif // __GNUC__
524 // Light
525 
526 // .ignition.msgs.Header header = 1;
527 inline bool Light::_internal_has_header() const {
528  return this != internal_default_instance() && header_ != nullptr;
529 }
530 inline bool Light::has_header() const {
531  return _internal_has_header();
532 }
533 inline const ::ignition::msgs::Header& Light::_internal_header() const {
534  const ::ignition::msgs::Header* p = header_;
535  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Header&>(
537 }
538 inline const ::ignition::msgs::Header& Light::header() const {
539  // @@protoc_insertion_point(field_get:ignition.msgs.Light.header)
540  return _internal_header();
541 }
543  ::ignition::msgs::Header* header) {
544  if (GetArenaForAllocation() == nullptr) {
545  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
546  }
547  header_ = header;
548  if (header) {
549 
550  } else {
551 
552  }
553  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Light.header)
554 }
555 inline ::ignition::msgs::Header* Light::release_header() {
556 
557  ::ignition::msgs::Header* temp = header_;
558  header_ = nullptr;
559 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
560  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
561  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
562  if (GetArenaForAllocation() == nullptr) { delete old; }
563 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
564  if (GetArenaForAllocation() != nullptr) {
565  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
566  }
567 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
568  return temp;
569 }
570 inline ::ignition::msgs::Header* Light::unsafe_arena_release_header() {
571  // @@protoc_insertion_point(field_release:ignition.msgs.Light.header)
572 
573  ::ignition::msgs::Header* temp = header_;
574  header_ = nullptr;
575  return temp;
576 }
577 inline ::ignition::msgs::Header* Light::_internal_mutable_header() {
578 
579  if (header_ == nullptr) {
580  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaForAllocation());
581  header_ = p;
582  }
583  return header_;
584 }
585 inline ::ignition::msgs::Header* Light::mutable_header() {
586  ::ignition::msgs::Header* _msg = _internal_mutable_header();
587  // @@protoc_insertion_point(field_mutable:ignition.msgs.Light.header)
588  return _msg;
589 }
591  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
592  if (message_arena == nullptr) {
593  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
594  }
595  if (header) {
596  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
597  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
598  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
599  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header));
600  if (message_arena != submessage_arena) {
601  header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
602  message_arena, header, submessage_arena);
603  }
604 
605  } else {
606 
607  }
608  header_ = header;
609  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Light.header)
610 }
611 
612 // string name = 2;
613 inline void Light::clear_name() {
614  name_.ClearToEmpty();
615 }
616 inline const std::string& Light::name() const {
617  // @@protoc_insertion_point(field_get:ignition.msgs.Light.name)
618  return _internal_name();
619 }
620 template <typename ArgT0, typename... ArgT>
621 inline PROTOBUF_ALWAYS_INLINE
622 void Light::set_name(ArgT0&& arg0, ArgT... args) {
623 
624  name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
625  // @@protoc_insertion_point(field_set:ignition.msgs.Light.name)
626 }
628  std::string* _s = _internal_mutable_name();
629  // @@protoc_insertion_point(field_mutable:ignition.msgs.Light.name)
630  return _s;
631 }
632 inline const std::string& Light::_internal_name() const {
633  return name_.Get();
634 }
635 inline void Light::_internal_set_name(const std::string& value) {
636 
637  name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
638 }
639 inline std::string* Light::_internal_mutable_name() {
640 
641  return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
642 }
644  // @@protoc_insertion_point(field_release:ignition.msgs.Light.name)
645  return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
646 }
648  if (name != nullptr) {
649 
650  } else {
651 
652  }
653  name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
654  GetArenaForAllocation());
655 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
656  if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
657  name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
658  }
659 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
660  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Light.name)
661 }
662 
663 // .ignition.msgs.Light.LightType type = 3;
664 inline void Light::clear_type() {
665  type_ = 0;
666 }
667 inline ::ignition::msgs::Light_LightType Light::_internal_type() const {
668  return static_cast< ::ignition::msgs::Light_LightType >(type_);
669 }
671  // @@protoc_insertion_point(field_get:ignition.msgs.Light.type)
672  return _internal_type();
673 }
674 inline void Light::_internal_set_type(::ignition::msgs::Light_LightType value) {
675 
676  type_ = value;
677 }
679  _internal_set_type(value);
680  // @@protoc_insertion_point(field_set:ignition.msgs.Light.type)
681 }
682 
683 // .ignition.msgs.Pose pose = 4;
684 inline bool Light::_internal_has_pose() const {
685  return this != internal_default_instance() && pose_ != nullptr;
686 }
687 inline bool Light::has_pose() const {
688  return _internal_has_pose();
689 }
690 inline const ::ignition::msgs::Pose& Light::_internal_pose() const {
691  const ::ignition::msgs::Pose* p = pose_;
692  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Pose&>(
694 }
695 inline const ::ignition::msgs::Pose& Light::pose() const {
696  // @@protoc_insertion_point(field_get:ignition.msgs.Light.pose)
697  return _internal_pose();
698 }
700  ::ignition::msgs::Pose* pose) {
701  if (GetArenaForAllocation() == nullptr) {
702  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pose_);
703  }
704  pose_ = pose;
705  if (pose) {
706 
707  } else {
708 
709  }
710  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Light.pose)
711 }
712 inline ::ignition::msgs::Pose* Light::release_pose() {
713 
714  ::ignition::msgs::Pose* temp = pose_;
715  pose_ = nullptr;
716 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
717  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
718  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
719  if (GetArenaForAllocation() == nullptr) { delete old; }
720 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
721  if (GetArenaForAllocation() != nullptr) {
722  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
723  }
724 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
725  return temp;
726 }
727 inline ::ignition::msgs::Pose* Light::unsafe_arena_release_pose() {
728  // @@protoc_insertion_point(field_release:ignition.msgs.Light.pose)
729 
730  ::ignition::msgs::Pose* temp = pose_;
731  pose_ = nullptr;
732  return temp;
733 }
734 inline ::ignition::msgs::Pose* Light::_internal_mutable_pose() {
735 
736  if (pose_ == nullptr) {
737  auto* p = CreateMaybeMessage<::ignition::msgs::Pose>(GetArenaForAllocation());
738  pose_ = p;
739  }
740  return pose_;
741 }
742 inline ::ignition::msgs::Pose* Light::mutable_pose() {
743  ::ignition::msgs::Pose* _msg = _internal_mutable_pose();
744  // @@protoc_insertion_point(field_mutable:ignition.msgs.Light.pose)
745  return _msg;
746 }
748  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
749  if (message_arena == nullptr) {
750  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(pose_);
751  }
752  if (pose) {
753  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
754  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
755  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
756  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pose));
757  if (message_arena != submessage_arena) {
758  pose = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
759  message_arena, pose, submessage_arena);
760  }
761 
762  } else {
763 
764  }
765  pose_ = pose;
766  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Light.pose)
767 }
768 
769 // .ignition.msgs.Color diffuse = 5;
770 inline bool Light::_internal_has_diffuse() const {
771  return this != internal_default_instance() && diffuse_ != nullptr;
772 }
773 inline bool Light::has_diffuse() const {
774  return _internal_has_diffuse();
775 }
776 inline const ::ignition::msgs::Color& Light::_internal_diffuse() const {
777  const ::ignition::msgs::Color* p = diffuse_;
778  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Color&>(
780 }
781 inline const ::ignition::msgs::Color& Light::diffuse() const {
782  // @@protoc_insertion_point(field_get:ignition.msgs.Light.diffuse)
783  return _internal_diffuse();
784 }
786  ::ignition::msgs::Color* diffuse) {
787  if (GetArenaForAllocation() == nullptr) {
788  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(diffuse_);
789  }
790  diffuse_ = diffuse;
791  if (diffuse) {
792 
793  } else {
794 
795  }
796  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Light.diffuse)
797 }
798 inline ::ignition::msgs::Color* Light::release_diffuse() {
799 
800  ::ignition::msgs::Color* temp = diffuse_;
801  diffuse_ = nullptr;
802 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
803  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
804  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
805  if (GetArenaForAllocation() == nullptr) { delete old; }
806 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
807  if (GetArenaForAllocation() != nullptr) {
808  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
809  }
810 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
811  return temp;
812 }
813 inline ::ignition::msgs::Color* Light::unsafe_arena_release_diffuse() {
814  // @@protoc_insertion_point(field_release:ignition.msgs.Light.diffuse)
815 
816  ::ignition::msgs::Color* temp = diffuse_;
817  diffuse_ = nullptr;
818  return temp;
819 }
820 inline ::ignition::msgs::Color* Light::_internal_mutable_diffuse() {
821 
822  if (diffuse_ == nullptr) {
823  auto* p = CreateMaybeMessage<::ignition::msgs::Color>(GetArenaForAllocation());
824  diffuse_ = p;
825  }
826  return diffuse_;
827 }
828 inline ::ignition::msgs::Color* Light::mutable_diffuse() {
829  ::ignition::msgs::Color* _msg = _internal_mutable_diffuse();
830  // @@protoc_insertion_point(field_mutable:ignition.msgs.Light.diffuse)
831  return _msg;
832 }
834  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
835  if (message_arena == nullptr) {
836  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(diffuse_);
837  }
838  if (diffuse) {
839  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
840  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
841  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
842  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(diffuse));
843  if (message_arena != submessage_arena) {
844  diffuse = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
845  message_arena, diffuse, submessage_arena);
846  }
847 
848  } else {
849 
850  }
851  diffuse_ = diffuse;
852  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Light.diffuse)
853 }
854 
855 // .ignition.msgs.Color specular = 6;
856 inline bool Light::_internal_has_specular() const {
857  return this != internal_default_instance() && specular_ != nullptr;
858 }
859 inline bool Light::has_specular() const {
860  return _internal_has_specular();
861 }
862 inline const ::ignition::msgs::Color& Light::_internal_specular() const {
863  const ::ignition::msgs::Color* p = specular_;
864  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Color&>(
866 }
867 inline const ::ignition::msgs::Color& Light::specular() const {
868  // @@protoc_insertion_point(field_get:ignition.msgs.Light.specular)
869  return _internal_specular();
870 }
872  ::ignition::msgs::Color* specular) {
873  if (GetArenaForAllocation() == nullptr) {
874  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(specular_);
875  }
876  specular_ = specular;
877  if (specular) {
878 
879  } else {
880 
881  }
882  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Light.specular)
883 }
884 inline ::ignition::msgs::Color* Light::release_specular() {
885 
886  ::ignition::msgs::Color* temp = specular_;
887  specular_ = nullptr;
888 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
889  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
890  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
891  if (GetArenaForAllocation() == nullptr) { delete old; }
892 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
893  if (GetArenaForAllocation() != nullptr) {
894  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
895  }
896 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
897  return temp;
898 }
899 inline ::ignition::msgs::Color* Light::unsafe_arena_release_specular() {
900  // @@protoc_insertion_point(field_release:ignition.msgs.Light.specular)
901 
902  ::ignition::msgs::Color* temp = specular_;
903  specular_ = nullptr;
904  return temp;
905 }
906 inline ::ignition::msgs::Color* Light::_internal_mutable_specular() {
907 
908  if (specular_ == nullptr) {
909  auto* p = CreateMaybeMessage<::ignition::msgs::Color>(GetArenaForAllocation());
910  specular_ = p;
911  }
912  return specular_;
913 }
914 inline ::ignition::msgs::Color* Light::mutable_specular() {
915  ::ignition::msgs::Color* _msg = _internal_mutable_specular();
916  // @@protoc_insertion_point(field_mutable:ignition.msgs.Light.specular)
917  return _msg;
918 }
920  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
921  if (message_arena == nullptr) {
922  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(specular_);
923  }
924  if (specular) {
925  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
926  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
927  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
928  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(specular));
929  if (message_arena != submessage_arena) {
930  specular = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
931  message_arena, specular, submessage_arena);
932  }
933 
934  } else {
935 
936  }
937  specular_ = specular;
938  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Light.specular)
939 }
940 
941 // float attenuation_constant = 7;
943  attenuation_constant_ = 0;
944 }
945 inline float Light::_internal_attenuation_constant() const {
946  return attenuation_constant_;
947 }
948 inline float Light::attenuation_constant() const {
949  // @@protoc_insertion_point(field_get:ignition.msgs.Light.attenuation_constant)
950  return _internal_attenuation_constant();
951 }
952 inline void Light::_internal_set_attenuation_constant(float value) {
953 
954  attenuation_constant_ = value;
955 }
956 inline void Light::set_attenuation_constant(float value) {
957  _internal_set_attenuation_constant(value);
958  // @@protoc_insertion_point(field_set:ignition.msgs.Light.attenuation_constant)
959 }
960 
961 // float attenuation_linear = 8;
963  attenuation_linear_ = 0;
964 }
965 inline float Light::_internal_attenuation_linear() const {
966  return attenuation_linear_;
967 }
968 inline float Light::attenuation_linear() const {
969  // @@protoc_insertion_point(field_get:ignition.msgs.Light.attenuation_linear)
970  return _internal_attenuation_linear();
971 }
972 inline void Light::_internal_set_attenuation_linear(float value) {
973 
974  attenuation_linear_ = value;
975 }
976 inline void Light::set_attenuation_linear(float value) {
977  _internal_set_attenuation_linear(value);
978  // @@protoc_insertion_point(field_set:ignition.msgs.Light.attenuation_linear)
979 }
980 
981 // float attenuation_quadratic = 9;
983  attenuation_quadratic_ = 0;
984 }
985 inline float Light::_internal_attenuation_quadratic() const {
986  return attenuation_quadratic_;
987 }
988 inline float Light::attenuation_quadratic() const {
989  // @@protoc_insertion_point(field_get:ignition.msgs.Light.attenuation_quadratic)
990  return _internal_attenuation_quadratic();
991 }
992 inline void Light::_internal_set_attenuation_quadratic(float value) {
993 
994  attenuation_quadratic_ = value;
995 }
996 inline void Light::set_attenuation_quadratic(float value) {
997  _internal_set_attenuation_quadratic(value);
998  // @@protoc_insertion_point(field_set:ignition.msgs.Light.attenuation_quadratic)
999 }
1000 
1001 // .ignition.msgs.Vector3d direction = 10;
1002 inline bool Light::_internal_has_direction() const {
1003  return this != internal_default_instance() && direction_ != nullptr;
1004 }
1005 inline bool Light::has_direction() const {
1006  return _internal_has_direction();
1007 }
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&>(
1012 }
1013 inline const ::ignition::msgs::Vector3d& Light::direction() const {
1014  // @@protoc_insertion_point(field_get:ignition.msgs.Light.direction)
1015  return _internal_direction();
1016 }
1018  ::ignition::msgs::Vector3d* direction) {
1019  if (GetArenaForAllocation() == nullptr) {
1020  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(direction_);
1021  }
1022  direction_ = direction;
1023  if (direction) {
1024 
1025  } else {
1026 
1027  }
1028  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Light.direction)
1029 }
1030 inline ::ignition::msgs::Vector3d* Light::release_direction() {
1031 
1032  ::ignition::msgs::Vector3d* temp = direction_;
1033  direction_ = nullptr;
1034 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1035  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
1036  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1037  if (GetArenaForAllocation() == nullptr) { delete old; }
1038 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
1039  if (GetArenaForAllocation() != nullptr) {
1040  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1041  }
1042 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
1043  return temp;
1044 }
1045 inline ::ignition::msgs::Vector3d* Light::unsafe_arena_release_direction() {
1046  // @@protoc_insertion_point(field_release:ignition.msgs.Light.direction)
1047 
1048  ::ignition::msgs::Vector3d* temp = direction_;
1049  direction_ = nullptr;
1050  return temp;
1051 }
1052 inline ::ignition::msgs::Vector3d* Light::_internal_mutable_direction() {
1053 
1054  if (direction_ == nullptr) {
1055  auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArenaForAllocation());
1056  direction_ = p;
1057  }
1058  return direction_;
1059 }
1060 inline ::ignition::msgs::Vector3d* Light::mutable_direction() {
1061  ::ignition::msgs::Vector3d* _msg = _internal_mutable_direction();
1062  // @@protoc_insertion_point(field_mutable:ignition.msgs.Light.direction)
1063  return _msg;
1064 }
1066  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1067  if (message_arena == nullptr) {
1068  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(direction_);
1069  }
1070  if (direction) {
1071  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1072  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
1073  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
1074  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(direction));
1075  if (message_arena != submessage_arena) {
1076  direction = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1077  message_arena, direction, submessage_arena);
1078  }
1079 
1080  } else {
1081 
1082  }
1083  direction_ = direction;
1084  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Light.direction)
1085 }
1086 
1087 // float range = 11;
1088 inline void Light::clear_range() {
1089  range_ = 0;
1090 }
1091 inline float Light::_internal_range() const {
1092  return range_;
1093 }
1094 inline float Light::range() const {
1095  // @@protoc_insertion_point(field_get:ignition.msgs.Light.range)
1096  return _internal_range();
1097 }
1098 inline void Light::_internal_set_range(float value) {
1099 
1100  range_ = value;
1101 }
1102 inline void Light::set_range(float value) {
1103  _internal_set_range(value);
1104  // @@protoc_insertion_point(field_set:ignition.msgs.Light.range)
1105 }
1106 
1107 // bool cast_shadows = 12;
1109  cast_shadows_ = false;
1110 }
1111 inline bool Light::_internal_cast_shadows() const {
1112  return cast_shadows_;
1113 }
1114 inline bool Light::cast_shadows() const {
1115  // @@protoc_insertion_point(field_get:ignition.msgs.Light.cast_shadows)
1116  return _internal_cast_shadows();
1117 }
1118 inline void Light::_internal_set_cast_shadows(bool value) {
1119 
1120  cast_shadows_ = value;
1121 }
1122 inline void Light::set_cast_shadows(bool value) {
1123  _internal_set_cast_shadows(value);
1124  // @@protoc_insertion_point(field_set:ignition.msgs.Light.cast_shadows)
1125 }
1126 
1127 // float spot_inner_angle = 13;
1129  spot_inner_angle_ = 0;
1130 }
1131 inline float Light::_internal_spot_inner_angle() const {
1132  return spot_inner_angle_;
1133 }
1134 inline float Light::spot_inner_angle() const {
1135  // @@protoc_insertion_point(field_get:ignition.msgs.Light.spot_inner_angle)
1136  return _internal_spot_inner_angle();
1137 }
1138 inline void Light::_internal_set_spot_inner_angle(float value) {
1139 
1140  spot_inner_angle_ = value;
1141 }
1142 inline void Light::set_spot_inner_angle(float value) {
1143  _internal_set_spot_inner_angle(value);
1144  // @@protoc_insertion_point(field_set:ignition.msgs.Light.spot_inner_angle)
1145 }
1146 
1147 // float spot_outer_angle = 14;
1149  spot_outer_angle_ = 0;
1150 }
1151 inline float Light::_internal_spot_outer_angle() const {
1152  return spot_outer_angle_;
1153 }
1154 inline float Light::spot_outer_angle() const {
1155  // @@protoc_insertion_point(field_get:ignition.msgs.Light.spot_outer_angle)
1156  return _internal_spot_outer_angle();
1157 }
1158 inline void Light::_internal_set_spot_outer_angle(float value) {
1159 
1160  spot_outer_angle_ = value;
1161 }
1162 inline void Light::set_spot_outer_angle(float value) {
1163  _internal_set_spot_outer_angle(value);
1164  // @@protoc_insertion_point(field_set:ignition.msgs.Light.spot_outer_angle)
1165 }
1166 
1167 // float spot_falloff = 15;
1169  spot_falloff_ = 0;
1170 }
1171 inline float Light::_internal_spot_falloff() const {
1172  return spot_falloff_;
1173 }
1174 inline float Light::spot_falloff() const {
1175  // @@protoc_insertion_point(field_get:ignition.msgs.Light.spot_falloff)
1176  return _internal_spot_falloff();
1177 }
1178 inline void Light::_internal_set_spot_falloff(float value) {
1179 
1180  spot_falloff_ = value;
1181 }
1182 inline void Light::set_spot_falloff(float value) {
1183  _internal_set_spot_falloff(value);
1184  // @@protoc_insertion_point(field_set:ignition.msgs.Light.spot_falloff)
1185 }
1186 
1187 // uint32 id = 16;
1188 inline void Light::clear_id() {
1189  id_ = 0u;
1190 }
1191 inline uint32_t Light::_internal_id() const {
1192  return id_;
1193 }
1194 inline uint32_t Light::id() const {
1195  // @@protoc_insertion_point(field_get:ignition.msgs.Light.id)
1196  return _internal_id();
1197 }
1198 inline void Light::_internal_set_id(uint32_t value) {
1199 
1200  id_ = value;
1201 }
1202 inline void Light::set_id(uint32_t value) {
1203  _internal_set_id(value);
1204  // @@protoc_insertion_point(field_set:ignition.msgs.Light.id)
1205 }
1206 
1207 // uint32 parent_id = 17;
1208 inline void Light::clear_parent_id() {
1209  parent_id_ = 0u;
1210 }
1211 inline uint32_t Light::_internal_parent_id() const {
1212  return parent_id_;
1213 }
1214 inline uint32_t Light::parent_id() const {
1215  // @@protoc_insertion_point(field_get:ignition.msgs.Light.parent_id)
1216  return _internal_parent_id();
1217 }
1218 inline void Light::_internal_set_parent_id(uint32_t value) {
1219 
1220  parent_id_ = value;
1221 }
1222 inline void Light::set_parent_id(uint32_t value) {
1223  _internal_set_parent_id(value);
1224  // @@protoc_insertion_point(field_set:ignition.msgs.Light.parent_id)
1225 }
1226 
1227 #ifdef __GNUC__
1228  #pragma GCC diagnostic pop
1229 #endif // __GNUC__
1230 
1235 // @@protoc_insertion_point(namespace_scope)
1236 
1237 } // namespace msgs
1238 } // namespace ignition
1239 
1240 PROTOBUF_NAMESPACE_OPEN
1241 
1242 template <> struct is_proto_enum< ::ignition::msgs::Light_LightType> : ::std::true_type {};
1243 template <>
1244 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Light_LightType>() {
1246 }
1247 
1248 PROTOBUF_NAMESPACE_CLOSE
1249 
1250 #ifdef _MSC_VER
1251 #pragma warning(pop)
1252 #endif
1253 // @@protoc_insertion_point(global_scope)
1254 
1255 #include <google/protobuf/port_undef.inc>
1256 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2flight_2eproto
Definition: color.pb.h:84
Definition: header.pb.h:265
Definition: light.pb.h:114
void clear_parent_id()
Definition: light.pb.h:1208
void set_parent_id(uint32_t value)
Definition: light.pb.h:1222
void clear_attenuation_quadratic()
Definition: light.pb.h:982
const ::ignition::msgs::Pose & pose() const
Definition: light.pb.h:695
void set_attenuation_linear(float value)
Definition: light.pb.h:976
void set_spot_inner_angle(float value)
Definition: light.pb.h:1142
::ignition::msgs::Color * mutable_specular()
Definition: light.pb.h:914
void clear_attenuation_constant()
Definition: light.pb.h:942
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: light.pb.h:150
::ignition::msgs::Color * mutable_diffuse()
Definition: light.pb.h:828
float range() const
Definition: light.pb.h:1094
bool has_header() const
Definition: light.pb.h:530
::ignition::msgs::Pose * unsafe_arena_release_pose()
Definition: light.pb.h:727
void clear_attenuation_linear()
Definition: light.pb.h:962
::ignition::msgs::Header * mutable_header()
Definition: light.pb.h:585
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
PROTOBUF_NODISCARD std::string * release_name()
Definition: light.pb.h:643
void clear_spot_falloff()
Definition: light.pb.h:1168
void unsafe_arena_set_allocated_pose(::ignition::msgs::Pose *pose)
Definition: light.pb.h:699
float attenuation_linear() const
Definition: light.pb.h:968
const std::string & name() const
Definition: light.pb.h:616
PROTOBUF_NODISCARD ::ignition::msgs::Color * release_diffuse()
Definition: light.pb.h:798
::ignition::msgs::Vector3d * unsafe_arena_release_direction()
Definition: light.pb.h:1045
void clear_spot_inner_angle()
Definition: light.pb.h:1128
void set_spot_outer_angle(float value)
Definition: light.pb.h:1162
void clear_cast_shadows()
Definition: light.pb.h:1108
Light & operator=(Light &&from) noexcept
Definition: light.pb.h:130
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: light.pb.h:144
bool has_specular() const
Definition: light.pb.h:859
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * LightType_descriptor()
Definition: light.pb.h:249
const ::ignition::msgs::Color & specular() const
Definition: light.pb.h:867
constexpr Light(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
void unsafe_arena_set_allocated_direction(::ignition::msgs::Vector3d *direction)
Definition: light.pb.h:1017
void set_attenuation_constant(float value)
Definition: light.pb.h:956
void clear_spot_outer_angle()
Definition: light.pb.h:1148
void clear_name()
Definition: light.pb.h:613
PROTOBUF_NODISCARD ::ignition::msgs::Vector3d * release_direction()
Definition: light.pb.h:1030
Light(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
void MergeFrom(const Light &from)
static const Light * internal_default_instance()
Definition: light.pb.h:156
void set_range(float value)
Definition: light.pb.h:1102
const ::ignition::msgs::Vector3d & direction() const
Definition: light.pb.h:1013
Light(const Light &from)
const ::ignition::msgs::Color & diffuse() const
Definition: light.pb.h:781
::ignition::msgs::Light_LightType type() const
Definition: light.pb.h:670
::ignition::msgs::Color * unsafe_arena_release_specular()
Definition: light.pb.h:899
void clear_id()
Definition: light.pb.h:1188
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
Definition: light.pb.h:542
static const Light & default_instance()
Definition: light.pb.h:153
void set_allocated_direction(::ignition::msgs::Vector3d *direction)
Definition: light.pb.h:1065
void set_attenuation_quadratic(float value)
Definition: light.pb.h:996
float spot_inner_angle() const
Definition: light.pb.h:1134
void set_name(ArgT0 &&arg0, ArgT... args)
bool has_pose() const
Definition: light.pb.h:687
friend void swap(Light &a, Light &b)
Definition: light.pb.h:163
float spot_outer_angle() const
Definition: light.pb.h:1154
float attenuation_constant() const
Definition: light.pb.h:948
Light()
Definition: light.pb.h:116
void set_allocated_pose(::ignition::msgs::Pose *pose)
Definition: light.pb.h:747
void set_type(::ignition::msgs::Light_LightType value)
Definition: light.pb.h:678
void UnsafeArenaSwap(Light *other)
Definition: light.pb.h:179
Light & operator=(const Light &from)
Definition: light.pb.h:126
bool has_diffuse() const
Definition: light.pb.h:773
bool has_direction() const
Definition: light.pb.h:1005
bool cast_shadows() const
Definition: light.pb.h:1114
PROTOBUF_NODISCARD ::ignition::msgs::Color * release_specular()
Definition: light.pb.h:884
uint32_t parent_id() const
Definition: light.pb.h:1214
void clear_type()
Definition: light.pb.h:664
void set_allocated_header(::ignition::msgs::Header *header)
Definition: light.pb.h:590
::ignition::msgs::Pose * mutable_pose()
Definition: light.pb.h:742
void Swap(Light *other)
Definition: light.pb.h:166
void unsafe_arena_set_allocated_specular(::ignition::msgs::Color *specular)
Definition: light.pb.h:871
PROTOBUF_NODISCARD ::ignition::msgs::Header * release_header()
Definition: light.pb.h:555
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
void clear_range()
Definition: light.pb.h:1088
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: light.pb.h:147
::ignition::msgs::Color * unsafe_arena_release_diffuse()
Definition: light.pb.h:813
static const std::string & LightType_Name(T enum_t_value)
Definition: light.pb.h:253
::ignition::msgs::Vector3d * mutable_direction()
Definition: light.pb.h:1060
void set_allocated_specular(::ignition::msgs::Color *specular)
Definition: light.pb.h:919
const ::ignition::msgs::Header & header() const
Definition: light.pb.h:538
std::string * mutable_name()
Definition: light.pb.h:627
PROTOBUF_NODISCARD ::ignition::msgs::Pose * release_pose()
Definition: light.pb.h:712
float spot_falloff() const
Definition: light.pb.h:1174
static const ClassData _class_data_
Definition: light.pb.h:225
void CopyFrom(const Light &from)
void unsafe_arena_set_allocated_diffuse(::ignition::msgs::Color *diffuse)
Definition: light.pb.h:785
::ignition::msgs::Header * unsafe_arena_release_header()
Definition: light.pb.h:570
float attenuation_quadratic() const
Definition: light.pb.h:988
void set_id(uint32_t value)
Definition: light.pb.h:1202
uint32_t id() const
Definition: light.pb.h:1194
static bool LightType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LightType *value)
Definition: light.pb.h:259
void set_allocated_name(std::string *name)
Definition: light.pb.h:647
Light * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition: light.pb.h:187
void set_allocated_diffuse(::ignition::msgs::Color *diffuse)
Definition: light.pb.h:833
void set_spot_falloff(float value)
Definition: light.pb.h:1182
Light(Light &&from) noexcept
Definition: light.pb.h:121
void set_cast_shadows(bool value)
Definition: light.pb.h:1122
Definition: pose.pb.h:86
Definition: vector3d.pb.h:84
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2flight_2eproto
T max(T... args)
T min(T... args)
std::shared_ptr< const Light > ConstLightSharedPtr
Definition: light.pb.h:1234
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:1231
constexpr int Light_LightType_LightType_ARRAYSIZE
Definition: light.pb.h:95
std::shared_ptr< Light > LightSharedPtr
Definition: light.pb.h:1233
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:1232
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
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)