Gazebo Msgs

API Reference

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