Gazebo Msgs

API Reference

5.11.0
build/ignition-msgs5/include/ignition/msgs/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 PROTOBUF_INCLUDED_ignition_2fmsgs_2flight_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2flight_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
20 #endif
21 
22 #include <google/protobuf/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include <google/protobuf/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
35 #include "ignition/msgs/pose.pb.h"
37 #include "ignition/msgs/color.pb.h"
38 #ifndef _MSC_VER
39 #pragma GCC system_header
40 #else
41 #pragma warning(push)
42 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
43 #endif
44 #ifdef __linux__
45 #include <sys/sysmacros.h>
46 #endif
47 #include <memory>
48 #include <ignition/msgs/Export.hh>
49 // @@protoc_insertion_point(includes)
50 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2flight_2eproto IGNITION_MSGS_VISIBLE
51 
53 // Internal implementation detail -- do not use these members.
54 struct IGNITION_MSGS_VISIBLE TableStruct {
55  static const ::google::protobuf::internal::ParseTableField entries[];
56  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
57  static const ::google::protobuf::internal::ParseTable schema[1];
58  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
59  static const ::google::protobuf::internal::SerializationTable serialization_table[];
60  static const ::google::protobuf::uint32 offsets[];
61 };
62 void IGNITION_MSGS_VISIBLE AddDescriptors();
63 } // namespace protobuf_ignition_2fmsgs_2flight_2eproto
64 namespace ignition {
65 namespace msgs {
66 class Light;
67 class LightDefaultTypeInternal;
68 IGNITION_MSGS_VISIBLE extern LightDefaultTypeInternal _Light_default_instance_;
69 } // namespace msgs
70 } // namespace ignition
71 namespace google {
72 namespace protobuf {
73 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Light* Arena::CreateMaybeMessage<::ignition::msgs::Light>(Arena*);
74 } // namespace protobuf
75 } // namespace google
76 namespace ignition {
77 namespace msgs {
78 
85 };
86 IGNITION_MSGS_VISIBLE bool Light_LightType_IsValid(int value);
90 
91 IGNITION_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* Light_LightType_descriptor();
92 inline const ::std::string& Light_LightType_Name(Light_LightType value) {
93  return ::google::protobuf::internal::NameOfEnum(
95 }
97  const ::std::string& name, Light_LightType* value) {
98  return ::google::protobuf::internal::ParseNamedEnum<Light_LightType>(
99  Light_LightType_descriptor(), name, value);
100 }
101 // ===================================================================
102 
103 class IGNITION_MSGS_VISIBLE Light : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Light) */ {
104  public:
105  Light();
106  virtual ~Light();
107 
108  Light(const Light& from);
109 
110  inline Light& operator=(const Light& from) {
111  CopyFrom(from);
112  return *this;
113  }
114  #if LANG_CXX11
115  Light(Light&& from) noexcept
116  : Light() {
117  *this = ::std::move(from);
118  }
119 
120  inline Light& operator=(Light&& from) noexcept {
121  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
122  if (this != &from) InternalSwap(&from);
123  } else {
124  CopyFrom(from);
125  }
126  return *this;
127  }
128  #endif
129  static const ::google::protobuf::Descriptor* descriptor();
130  static const Light& default_instance();
131 
132  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
133  static inline const Light* internal_default_instance() {
134  return reinterpret_cast<const Light*>(
136  }
137  static constexpr int kIndexInFileMessages =
138  0;
139 
140  void Swap(Light* other);
141  friend void swap(Light& a, Light& b) {
142  a.Swap(&b);
143  }
144 
145  // implements Message ----------------------------------------------
146 
147  inline Light* New() const final {
148  return CreateMaybeMessage<Light>(NULL);
149  }
150 
151  Light* New(::google::protobuf::Arena* arena) const final {
152  return CreateMaybeMessage<Light>(arena);
153  }
154  void CopyFrom(const ::google::protobuf::Message& from) final;
155  void MergeFrom(const ::google::protobuf::Message& from) final;
156  void CopyFrom(const Light& from);
157  void MergeFrom(const Light& from);
158  void Clear() final;
159  bool IsInitialized() const final;
160 
161  size_t ByteSizeLong() const final;
162  bool MergePartialFromCodedStream(
163  ::google::protobuf::io::CodedInputStream* input) final;
164  void SerializeWithCachedSizes(
165  ::google::protobuf::io::CodedOutputStream* output) const final;
166  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
167  bool deterministic, ::google::protobuf::uint8* target) const final;
168  int GetCachedSize() const final { return _cached_size_.Get(); }
169 
170  private:
171  void SharedCtor();
172  void SharedDtor();
173  void SetCachedSize(int size) const final;
174  void InternalSwap(Light* other);
175  private:
176  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
177  return NULL;
178  }
179  inline void* MaybeArenaPtr() const {
180  return NULL;
181  }
182  public:
183 
184  ::google::protobuf::Metadata GetMetadata() const final;
185 
186  // nested types ----------------------------------------------------
187 
189  static const LightType POINT =
191  static const LightType SPOT =
193  static const LightType DIRECTIONAL =
195  static inline bool LightType_IsValid(int value) {
196  return Light_LightType_IsValid(value);
197  }
198  static const LightType LightType_MIN =
200  static const LightType LightType_MAX =
202  static const int LightType_ARRAYSIZE =
204  static inline const ::google::protobuf::EnumDescriptor*
207  }
208  static inline const ::std::string& LightType_Name(LightType value) {
209  return Light_LightType_Name(value);
210  }
211  static inline bool LightType_Parse(const ::std::string& name,
212  LightType* value) {
213  return Light_LightType_Parse(name, value);
214  }
215 
216  // accessors -------------------------------------------------------
217 
218  // string name = 2;
219  void clear_name();
220  static const int kNameFieldNumber = 2;
221  const ::std::string& name() const;
222  void set_name(const ::std::string& value);
223  #if LANG_CXX11
224  void set_name(::std::string&& value);
225  #endif
226  void set_name(const char* value);
227  void set_name(const char* value, size_t size);
228  ::std::string* mutable_name();
229  ::std::string* release_name();
230  void set_allocated_name(::std::string* name);
231 
232  // .ignition.msgs.Header header = 1;
233  bool has_header() const;
234  void clear_header();
235  static const int kHeaderFieldNumber = 1;
236  private:
237  const ::ignition::msgs::Header& _internal_header() const;
238  public:
239  const ::ignition::msgs::Header& header() const;
240  ::ignition::msgs::Header* release_header();
241  ::ignition::msgs::Header* mutable_header();
242  void set_allocated_header(::ignition::msgs::Header* header);
243 
244  // .ignition.msgs.Pose pose = 4;
245  bool has_pose() const;
246  void clear_pose();
247  static const int kPoseFieldNumber = 4;
248  private:
249  const ::ignition::msgs::Pose& _internal_pose() const;
250  public:
251  const ::ignition::msgs::Pose& pose() const;
252  ::ignition::msgs::Pose* release_pose();
253  ::ignition::msgs::Pose* mutable_pose();
254  void set_allocated_pose(::ignition::msgs::Pose* pose);
255 
256  // .ignition.msgs.Color diffuse = 5;
257  bool has_diffuse() const;
258  void clear_diffuse();
259  static const int kDiffuseFieldNumber = 5;
260  private:
261  const ::ignition::msgs::Color& _internal_diffuse() const;
262  public:
263  const ::ignition::msgs::Color& diffuse() const;
264  ::ignition::msgs::Color* release_diffuse();
265  ::ignition::msgs::Color* mutable_diffuse();
266  void set_allocated_diffuse(::ignition::msgs::Color* diffuse);
267 
268  // .ignition.msgs.Color specular = 6;
269  bool has_specular() const;
270  void clear_specular();
271  static const int kSpecularFieldNumber = 6;
272  private:
273  const ::ignition::msgs::Color& _internal_specular() const;
274  public:
275  const ::ignition::msgs::Color& specular() const;
276  ::ignition::msgs::Color* release_specular();
277  ::ignition::msgs::Color* mutable_specular();
278  void set_allocated_specular(::ignition::msgs::Color* specular);
279 
280  // .ignition.msgs.Vector3d direction = 10;
281  bool has_direction() const;
282  void clear_direction();
283  static const int kDirectionFieldNumber = 10;
284  private:
285  const ::ignition::msgs::Vector3d& _internal_direction() const;
286  public:
287  const ::ignition::msgs::Vector3d& direction() const;
288  ::ignition::msgs::Vector3d* release_direction();
289  ::ignition::msgs::Vector3d* mutable_direction();
290  void set_allocated_direction(::ignition::msgs::Vector3d* direction);
291 
292  // .ignition.msgs.Light.LightType type = 3;
293  void clear_type();
294  static const int kTypeFieldNumber = 3;
296  void set_type(::ignition::msgs::Light_LightType value);
297 
298  // float attenuation_constant = 7;
299  void clear_attenuation_constant();
300  static const int kAttenuationConstantFieldNumber = 7;
301  float attenuation_constant() const;
302  void set_attenuation_constant(float value);
303 
304  // float attenuation_linear = 8;
305  void clear_attenuation_linear();
306  static const int kAttenuationLinearFieldNumber = 8;
307  float attenuation_linear() const;
308  void set_attenuation_linear(float value);
309 
310  // float attenuation_quadratic = 9;
311  void clear_attenuation_quadratic();
312  static const int kAttenuationQuadraticFieldNumber = 9;
313  float attenuation_quadratic() const;
314  void set_attenuation_quadratic(float value);
315 
316  // float range = 11;
317  void clear_range();
318  static const int kRangeFieldNumber = 11;
319  float range() const;
320  void set_range(float value);
321 
322  // bool cast_shadows = 12;
323  void clear_cast_shadows();
324  static const int kCastShadowsFieldNumber = 12;
325  bool cast_shadows() const;
326  void set_cast_shadows(bool value);
327 
328  // float spot_inner_angle = 13;
329  void clear_spot_inner_angle();
330  static const int kSpotInnerAngleFieldNumber = 13;
331  float spot_inner_angle() const;
332  void set_spot_inner_angle(float value);
333 
334  // float spot_outer_angle = 14;
335  void clear_spot_outer_angle();
336  static const int kSpotOuterAngleFieldNumber = 14;
337  float spot_outer_angle() const;
338  void set_spot_outer_angle(float value);
339 
340  // float spot_falloff = 15;
341  void clear_spot_falloff();
342  static const int kSpotFalloffFieldNumber = 15;
343  float spot_falloff() const;
344  void set_spot_falloff(float value);
345 
346  // uint32 id = 16;
347  void clear_id();
348  static const int kIdFieldNumber = 16;
349  ::google::protobuf::uint32 id() const;
350  void set_id(::google::protobuf::uint32 value);
351 
352  // uint32 parent_id = 17;
353  void clear_parent_id();
354  static const int kParentIdFieldNumber = 17;
355  ::google::protobuf::uint32 parent_id() const;
356  void set_parent_id(::google::protobuf::uint32 value);
357 
358  // @@protoc_insertion_point(class_scope:ignition.msgs.Light)
359  private:
360 
361  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
362  ::google::protobuf::internal::ArenaStringPtr name_;
363  ::ignition::msgs::Header* header_;
364  ::ignition::msgs::Pose* pose_;
365  ::ignition::msgs::Color* diffuse_;
366  ::ignition::msgs::Color* specular_;
367  ::ignition::msgs::Vector3d* direction_;
368  int type_;
369  float attenuation_constant_;
370  float attenuation_linear_;
371  float attenuation_quadratic_;
372  float range_;
373  bool cast_shadows_;
374  float spot_inner_angle_;
375  float spot_outer_angle_;
376  float spot_falloff_;
377  ::google::protobuf::uint32 id_;
378  ::google::protobuf::uint32 parent_id_;
379  mutable ::google::protobuf::internal::CachedSize _cached_size_;
380  friend struct ::protobuf_ignition_2fmsgs_2flight_2eproto::TableStruct;
381 };
382 // ===================================================================
383 
384 
385 // ===================================================================
386 
387 #ifdef __GNUC__
388  #pragma GCC diagnostic push
389  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
390 #endif // __GNUC__
391 // Light
392 
393 // .ignition.msgs.Header header = 1;
394 inline bool Light::has_header() const {
395  return this != internal_default_instance() && header_ != NULL;
396 }
397 inline const ::ignition::msgs::Header& Light::_internal_header() const {
398  return *header_;
399 }
400 inline const ::ignition::msgs::Header& Light::header() const {
401  const ::ignition::msgs::Header* p = header_;
402  // @@protoc_insertion_point(field_get:ignition.msgs.Light.header)
403  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::Header*>(
405 }
406 inline ::ignition::msgs::Header* Light::release_header() {
407  // @@protoc_insertion_point(field_release:ignition.msgs.Light.header)
408 
409  ::ignition::msgs::Header* temp = header_;
410  header_ = NULL;
411  return temp;
412 }
413 inline ::ignition::msgs::Header* Light::mutable_header() {
414 
415  if (header_ == NULL) {
416  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
417  header_ = p;
418  }
419  // @@protoc_insertion_point(field_mutable:ignition.msgs.Light.header)
420  return header_;
421 }
423  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
424  if (message_arena == NULL) {
425  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
426  }
427  if (header) {
428  ::google::protobuf::Arena* submessage_arena = NULL;
429  if (message_arena != submessage_arena) {
430  header = ::google::protobuf::internal::GetOwnedMessage(
431  message_arena, header, submessage_arena);
432  }
433 
434  } else {
435 
436  }
437  header_ = header;
438  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Light.header)
439 }
440 
441 // string name = 2;
442 inline void Light::clear_name() {
443  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
444 }
445 inline const ::std::string& Light::name() const {
446  // @@protoc_insertion_point(field_get:ignition.msgs.Light.name)
447  return name_.GetNoArena();
448 }
449 inline void Light::set_name(const ::std::string& value) {
450 
451  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
452  // @@protoc_insertion_point(field_set:ignition.msgs.Light.name)
453 }
454 #if LANG_CXX11
455 inline void Light::set_name(::std::string&& value) {
456 
457  name_.SetNoArena(
458  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
459  // @@protoc_insertion_point(field_set_rvalue:ignition.msgs.Light.name)
460 }
461 #endif
462 inline void Light::set_name(const char* value) {
463  GOOGLE_DCHECK(value != NULL);
464 
465  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
466  // @@protoc_insertion_point(field_set_char:ignition.msgs.Light.name)
467 }
468 inline void Light::set_name(const char* value, size_t size) {
469 
470  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
471  ::std::string(reinterpret_cast<const char*>(value), size));
472  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Light.name)
473 }
474 inline ::std::string* Light::mutable_name() {
475 
476  // @@protoc_insertion_point(field_mutable:ignition.msgs.Light.name)
477  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
478 }
479 inline ::std::string* Light::release_name() {
480  // @@protoc_insertion_point(field_release:ignition.msgs.Light.name)
481 
482  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
483 }
485  if (name != NULL) {
486 
487  } else {
488 
489  }
490  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
491  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Light.name)
492 }
493 
494 // .ignition.msgs.Light.LightType type = 3;
495 inline void Light::clear_type() {
496  type_ = 0;
497 }
499  // @@protoc_insertion_point(field_get:ignition.msgs.Light.type)
500  return static_cast< ::ignition::msgs::Light_LightType >(type_);
501 }
503 
504  type_ = value;
505  // @@protoc_insertion_point(field_set:ignition.msgs.Light.type)
506 }
507 
508 // .ignition.msgs.Pose pose = 4;
509 inline bool Light::has_pose() const {
510  return this != internal_default_instance() && pose_ != NULL;
511 }
512 inline const ::ignition::msgs::Pose& Light::_internal_pose() const {
513  return *pose_;
514 }
515 inline const ::ignition::msgs::Pose& Light::pose() const {
516  const ::ignition::msgs::Pose* p = pose_;
517  // @@protoc_insertion_point(field_get:ignition.msgs.Light.pose)
518  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::Pose*>(
520 }
521 inline ::ignition::msgs::Pose* Light::release_pose() {
522  // @@protoc_insertion_point(field_release:ignition.msgs.Light.pose)
523 
524  ::ignition::msgs::Pose* temp = pose_;
525  pose_ = NULL;
526  return temp;
527 }
528 inline ::ignition::msgs::Pose* Light::mutable_pose() {
529 
530  if (pose_ == NULL) {
531  auto* p = CreateMaybeMessage<::ignition::msgs::Pose>(GetArenaNoVirtual());
532  pose_ = p;
533  }
534  // @@protoc_insertion_point(field_mutable:ignition.msgs.Light.pose)
535  return pose_;
536 }
538  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
539  if (message_arena == NULL) {
540  delete reinterpret_cast< ::google::protobuf::MessageLite*>(pose_);
541  }
542  if (pose) {
543  ::google::protobuf::Arena* submessage_arena = NULL;
544  if (message_arena != submessage_arena) {
545  pose = ::google::protobuf::internal::GetOwnedMessage(
546  message_arena, pose, submessage_arena);
547  }
548 
549  } else {
550 
551  }
552  pose_ = pose;
553  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Light.pose)
554 }
555 
556 // .ignition.msgs.Color diffuse = 5;
557 inline bool Light::has_diffuse() const {
558  return this != internal_default_instance() && diffuse_ != NULL;
559 }
560 inline const ::ignition::msgs::Color& Light::_internal_diffuse() const {
561  return *diffuse_;
562 }
563 inline const ::ignition::msgs::Color& Light::diffuse() const {
564  const ::ignition::msgs::Color* p = diffuse_;
565  // @@protoc_insertion_point(field_get:ignition.msgs.Light.diffuse)
566  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::Color*>(
568 }
569 inline ::ignition::msgs::Color* Light::release_diffuse() {
570  // @@protoc_insertion_point(field_release:ignition.msgs.Light.diffuse)
571 
572  ::ignition::msgs::Color* temp = diffuse_;
573  diffuse_ = NULL;
574  return temp;
575 }
576 inline ::ignition::msgs::Color* Light::mutable_diffuse() {
577 
578  if (diffuse_ == NULL) {
579  auto* p = CreateMaybeMessage<::ignition::msgs::Color>(GetArenaNoVirtual());
580  diffuse_ = p;
581  }
582  // @@protoc_insertion_point(field_mutable:ignition.msgs.Light.diffuse)
583  return diffuse_;
584 }
586  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
587  if (message_arena == NULL) {
588  delete reinterpret_cast< ::google::protobuf::MessageLite*>(diffuse_);
589  }
590  if (diffuse) {
591  ::google::protobuf::Arena* submessage_arena = NULL;
592  if (message_arena != submessage_arena) {
593  diffuse = ::google::protobuf::internal::GetOwnedMessage(
594  message_arena, diffuse, submessage_arena);
595  }
596 
597  } else {
598 
599  }
600  diffuse_ = diffuse;
601  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Light.diffuse)
602 }
603 
604 // .ignition.msgs.Color specular = 6;
605 inline bool Light::has_specular() const {
606  return this != internal_default_instance() && specular_ != NULL;
607 }
608 inline const ::ignition::msgs::Color& Light::_internal_specular() const {
609  return *specular_;
610 }
611 inline const ::ignition::msgs::Color& Light::specular() const {
612  const ::ignition::msgs::Color* p = specular_;
613  // @@protoc_insertion_point(field_get:ignition.msgs.Light.specular)
614  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::Color*>(
616 }
617 inline ::ignition::msgs::Color* Light::release_specular() {
618  // @@protoc_insertion_point(field_release:ignition.msgs.Light.specular)
619 
620  ::ignition::msgs::Color* temp = specular_;
621  specular_ = NULL;
622  return temp;
623 }
624 inline ::ignition::msgs::Color* Light::mutable_specular() {
625 
626  if (specular_ == NULL) {
627  auto* p = CreateMaybeMessage<::ignition::msgs::Color>(GetArenaNoVirtual());
628  specular_ = p;
629  }
630  // @@protoc_insertion_point(field_mutable:ignition.msgs.Light.specular)
631  return specular_;
632 }
634  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
635  if (message_arena == NULL) {
636  delete reinterpret_cast< ::google::protobuf::MessageLite*>(specular_);
637  }
638  if (specular) {
639  ::google::protobuf::Arena* submessage_arena = NULL;
640  if (message_arena != submessage_arena) {
641  specular = ::google::protobuf::internal::GetOwnedMessage(
642  message_arena, specular, submessage_arena);
643  }
644 
645  } else {
646 
647  }
648  specular_ = specular;
649  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Light.specular)
650 }
651 
652 // float attenuation_constant = 7;
654  attenuation_constant_ = 0;
655 }
656 inline float Light::attenuation_constant() const {
657  // @@protoc_insertion_point(field_get:ignition.msgs.Light.attenuation_constant)
658  return attenuation_constant_;
659 }
660 inline void Light::set_attenuation_constant(float value) {
661 
662  attenuation_constant_ = value;
663  // @@protoc_insertion_point(field_set:ignition.msgs.Light.attenuation_constant)
664 }
665 
666 // float attenuation_linear = 8;
668  attenuation_linear_ = 0;
669 }
670 inline float Light::attenuation_linear() const {
671  // @@protoc_insertion_point(field_get:ignition.msgs.Light.attenuation_linear)
672  return attenuation_linear_;
673 }
674 inline void Light::set_attenuation_linear(float value) {
675 
676  attenuation_linear_ = value;
677  // @@protoc_insertion_point(field_set:ignition.msgs.Light.attenuation_linear)
678 }
679 
680 // float attenuation_quadratic = 9;
682  attenuation_quadratic_ = 0;
683 }
684 inline float Light::attenuation_quadratic() const {
685  // @@protoc_insertion_point(field_get:ignition.msgs.Light.attenuation_quadratic)
686  return attenuation_quadratic_;
687 }
688 inline void Light::set_attenuation_quadratic(float value) {
689 
690  attenuation_quadratic_ = value;
691  // @@protoc_insertion_point(field_set:ignition.msgs.Light.attenuation_quadratic)
692 }
693 
694 // .ignition.msgs.Vector3d direction = 10;
695 inline bool Light::has_direction() const {
696  return this != internal_default_instance() && direction_ != NULL;
697 }
698 inline const ::ignition::msgs::Vector3d& Light::_internal_direction() const {
699  return *direction_;
700 }
701 inline const ::ignition::msgs::Vector3d& Light::direction() const {
702  const ::ignition::msgs::Vector3d* p = direction_;
703  // @@protoc_insertion_point(field_get:ignition.msgs.Light.direction)
704  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::Vector3d*>(
706 }
707 inline ::ignition::msgs::Vector3d* Light::release_direction() {
708  // @@protoc_insertion_point(field_release:ignition.msgs.Light.direction)
709 
710  ::ignition::msgs::Vector3d* temp = direction_;
711  direction_ = NULL;
712  return temp;
713 }
714 inline ::ignition::msgs::Vector3d* Light::mutable_direction() {
715 
716  if (direction_ == NULL) {
717  auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArenaNoVirtual());
718  direction_ = p;
719  }
720  // @@protoc_insertion_point(field_mutable:ignition.msgs.Light.direction)
721  return direction_;
722 }
724  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
725  if (message_arena == NULL) {
726  delete reinterpret_cast< ::google::protobuf::MessageLite*>(direction_);
727  }
728  if (direction) {
729  ::google::protobuf::Arena* submessage_arena = NULL;
730  if (message_arena != submessage_arena) {
731  direction = ::google::protobuf::internal::GetOwnedMessage(
732  message_arena, direction, submessage_arena);
733  }
734 
735  } else {
736 
737  }
738  direction_ = direction;
739  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Light.direction)
740 }
741 
742 // float range = 11;
743 inline void Light::clear_range() {
744  range_ = 0;
745 }
746 inline float Light::range() const {
747  // @@protoc_insertion_point(field_get:ignition.msgs.Light.range)
748  return range_;
749 }
750 inline void Light::set_range(float value) {
751 
752  range_ = value;
753  // @@protoc_insertion_point(field_set:ignition.msgs.Light.range)
754 }
755 
756 // bool cast_shadows = 12;
758  cast_shadows_ = false;
759 }
760 inline bool Light::cast_shadows() const {
761  // @@protoc_insertion_point(field_get:ignition.msgs.Light.cast_shadows)
762  return cast_shadows_;
763 }
764 inline void Light::set_cast_shadows(bool value) {
765 
766  cast_shadows_ = value;
767  // @@protoc_insertion_point(field_set:ignition.msgs.Light.cast_shadows)
768 }
769 
770 // float spot_inner_angle = 13;
772  spot_inner_angle_ = 0;
773 }
774 inline float Light::spot_inner_angle() const {
775  // @@protoc_insertion_point(field_get:ignition.msgs.Light.spot_inner_angle)
776  return spot_inner_angle_;
777 }
778 inline void Light::set_spot_inner_angle(float value) {
779 
780  spot_inner_angle_ = value;
781  // @@protoc_insertion_point(field_set:ignition.msgs.Light.spot_inner_angle)
782 }
783 
784 // float spot_outer_angle = 14;
786  spot_outer_angle_ = 0;
787 }
788 inline float Light::spot_outer_angle() const {
789  // @@protoc_insertion_point(field_get:ignition.msgs.Light.spot_outer_angle)
790  return spot_outer_angle_;
791 }
792 inline void Light::set_spot_outer_angle(float value) {
793 
794  spot_outer_angle_ = value;
795  // @@protoc_insertion_point(field_set:ignition.msgs.Light.spot_outer_angle)
796 }
797 
798 // float spot_falloff = 15;
800  spot_falloff_ = 0;
801 }
802 inline float Light::spot_falloff() const {
803  // @@protoc_insertion_point(field_get:ignition.msgs.Light.spot_falloff)
804  return spot_falloff_;
805 }
806 inline void Light::set_spot_falloff(float value) {
807 
808  spot_falloff_ = value;
809  // @@protoc_insertion_point(field_set:ignition.msgs.Light.spot_falloff)
810 }
811 
812 // uint32 id = 16;
813 inline void Light::clear_id() {
814  id_ = 0u;
815 }
816 inline ::google::protobuf::uint32 Light::id() const {
817  // @@protoc_insertion_point(field_get:ignition.msgs.Light.id)
818  return id_;
819 }
820 inline void Light::set_id(::google::protobuf::uint32 value) {
821 
822  id_ = value;
823  // @@protoc_insertion_point(field_set:ignition.msgs.Light.id)
824 }
825 
826 // uint32 parent_id = 17;
827 inline void Light::clear_parent_id() {
828  parent_id_ = 0u;
829 }
830 inline ::google::protobuf::uint32 Light::parent_id() const {
831  // @@protoc_insertion_point(field_get:ignition.msgs.Light.parent_id)
832  return parent_id_;
833 }
834 inline void Light::set_parent_id(::google::protobuf::uint32 value) {
835 
836  parent_id_ = value;
837  // @@protoc_insertion_point(field_set:ignition.msgs.Light.parent_id)
838 }
839 
840 #ifdef __GNUC__
841  #pragma GCC diagnostic pop
842 #endif // __GNUC__
843 
848 // @@protoc_insertion_point(namespace_scope)
849 
850 } // namespace msgs
851 } // namespace ignition
852 
853 namespace google {
854 namespace protobuf {
855 
856 template <> struct is_proto_enum< ::ignition::msgs::Light_LightType> : ::std::true_type {};
857 template <>
858 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Light_LightType>() {
860 }
861 
862 } // namespace protobuf
863 } // namespace google
864 
865 #ifdef _MSC_VER
866 #pragma warning(pop)
867 #endif
868 // @@protoc_insertion_point(global_scope)
869 
870 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2flight_2eproto
const ::ignition::msgs::Header & header() const
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:400
const IGNITION_MSGS_VISIBLE ::google::protobuf::EnumDescriptor * Light_LightType_descriptor()
static const Light * internal_default_instance()
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:133
std::shared_ptr< Light > LightSharedPtr
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:846
float attenuation_constant() const
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:656
::std::string * release_name()
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:479
STL class.
STL class.
@ Light_LightType_Light_LightType_INT_MAX_SENTINEL_DO_NOT_USE_
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:84
void clear_attenuation_constant()
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:653
::ignition::msgs::Color * mutable_diffuse()
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:576
Light_LightType
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:79
Light * New() const final
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:147
T move(T... args)
void set_attenuation_quadratic(float value)
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:688
Definition: build/ignition-msgs5/include/ignition/msgs/vector3d.pb.h:77
void clear_spot_inner_angle()
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:771
void set_name(const ::std::string &value)
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:449
std::shared_ptr< const Light > ConstLightSharedPtr
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:847
static const ::google::protobuf::EnumDescriptor * LightType_descriptor()
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:205
::ignition::msgs::Light_LightType type() const
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:498
Definition: build/ignition-msgs5/include/ignition/msgs/pose.pb.h:79
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:52
void set_allocated_name(::std::string *name)
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:484
void set_allocated_pose(::ignition::msgs::Pose *pose)
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:537
::ignition::msgs::Header * release_header()
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:406
::ignition::msgs::Vector3d * mutable_direction()
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:714
void clear_range()
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:743
void IGNITION_MSGS_VISIBLE AddDescriptors()
void set_parent_id(::google::protobuf::uint32 value)
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:834
void clear_cast_shadows()
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:757
IGNITION_MSGS_VISIBLE PoseDefaultTypeInternal _Pose_default_instance_
void set_cast_shadows(bool value)
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:764
::ignition::msgs::Color * mutable_specular()
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:624
static const ::std::string & LightType_Name(LightType value)
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:208
void set_allocated_direction(::ignition::msgs::Vector3d *direction)
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:723
const ::ignition::msgs::Color & specular() const
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:611
static bool LightType_Parse(const ::std::string &name, LightType *value)
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:211
void clear_attenuation_quadratic()
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:681
::ignition::msgs::Header * mutable_header()
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:413
void set_allocated_header(::ignition::msgs::Header *header)
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:422
IGNITION_MSGS_VISIBLE ColorDefaultTypeInternal _Color_default_instance_
std::unique_ptr< const Light > ConstLightUniquePtr
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:845
void set_spot_falloff(float value)
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:806
::ignition::msgs::Pose * release_pose()
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:521
void clear_spot_falloff()
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:799
@ Light_LightType_POINT
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:80
bool has_specular() const
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:605
float attenuation_linear() const
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:670
void clear_type()
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:495
@ Light_LightType_Light_LightType_INT_MIN_SENTINEL_DO_NOT_USE_
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:83
::std::string * mutable_name()
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:474
void set_allocated_specular(::ignition::msgs::Color *specular)
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:633
Definition: build/ignition-msgs5/include/ignition/msgs/color.pb.h:77
const int Light_LightType_LightType_ARRAYSIZE
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:89
const ::ignition::msgs::Pose & pose() const
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:515
void clear_name()
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:442
::ignition::msgs::Color * release_diffuse()
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:569
Light * New(::google::protobuf::Arena *arena) const final
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:151
::ignition::msgs::Vector3d * release_direction()
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:707
bool has_header() const
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:394
float attenuation_quadratic() const
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:684
@ Light_LightType_DIRECTIONAL
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:82
bool has_pose() const
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:509
const ::ignition::msgs::Color & diffuse() const
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:563
void set_allocated_diffuse(::ignition::msgs::Color *diffuse)
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:585
void clear_attenuation_linear()
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:667
@ Light_LightType_SPOT
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:81
const ::ignition::msgs::Vector3d & direction() const
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:701
void set_attenuation_linear(float value)
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:674
bool Light_LightType_Parse(const ::std::string &name, Light_LightType *value)
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:96
float spot_inner_angle() const
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:774
void clear_spot_outer_angle()
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:785
IGNITION_MSGS_VISIBLE Vector3dDefaultTypeInternal _Vector3d_default_instance_
const ::std::string & name() const
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:445
friend void swap(Light &a, Light &b)
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:141
::google::protobuf::uint32 id() const
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:816
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
void set_range(float value)
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:750
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:103
float range() const
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:746
Light & operator=(const Light &from)
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:110
float spot_falloff() const
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:802
Definition: build/ignition-msgs5/include/ignition/msgs/header.pb.h:215
IGNITION_MSGS_VISIBLE bool Light_LightType_IsValid(int value)
const Light_LightType Light_LightType_LightType_MIN
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:87
::ignition::msgs::Color * release_specular()
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:617
IGNITION_MSGS_VISIBLE LightDefaultTypeInternal _Light_default_instance_
void Swap(Light *other)
float spot_outer_angle() const
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:788
void set_spot_outer_angle(float value)
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:792
const Light_LightType Light_LightType_LightType_MAX
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:88
std::unique_ptr< Light > LightUniquePtr
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:844
void set_spot_inner_angle(float value)
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:778
void clear_parent_id()
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:827
void set_attenuation_constant(float value)
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:660
void set_type(::ignition::msgs::Light_LightType value)
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:502
const ::std::string & Light_LightType_Name(Light_LightType value)
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:92
bool has_direction() const
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:695
bool has_diffuse() const
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:557
::google::protobuf::uint32 parent_id() const
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:830
STL class.
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:54
void set_id(::google::protobuf::uint32 value)
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:820
::ignition::msgs::Pose * mutable_pose()
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:528
Definition: build/ignition-msgs5/include/ignition/msgs/actor.pb.h:78
void clear_id()
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:813
bool cast_shadows() const
Definition: build/ignition-msgs5/include/ignition/msgs/light.pb.h:760