4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2flight_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2flight_2eproto
9 #include <google/protobuf/stubs/common.h>
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
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.
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>
31 #include <google/protobuf/extension_set.h>
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"
39 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2flight_2eproto GZ_MSGS_VISIBLE
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[];
56 class LightDefaultTypeInternal;
62 template<> GZ_MSGS_VISIBLE ::gz::msgs::Light* Arena::CreateMaybeMessage<::gz::msgs::Light>(Arena*);
82 return ::google::protobuf::internal::NameOfEnum(
87 return ::google::protobuf::internal::ParseNamedEnum<Light_LightType>(
92 class GZ_MSGS_VISIBLE
Light :
public ::google::protobuf::Message {
106 *
this = ::std::move(from);
109 inline Light& operator=(Light&& from) noexcept {
110 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
111 if (
this != &from) InternalSwap(&from);
118 static const ::google::protobuf::Descriptor* descriptor();
119 static const Light& default_instance();
121 static void InitAsDefaultInstance();
123 return reinterpret_cast<const Light*
>(
126 static constexpr
int kIndexInFileMessages =
129 void Swap(
Light* other);
137 return CreateMaybeMessage<Light>(NULL);
140 Light*
New(::google::protobuf::Arena* arena)
const final {
141 return CreateMaybeMessage<Light>(arena);
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);
148 bool IsInitialized() const final;
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(); }
162 void SetCachedSize(
int size)
const final;
163 void InternalSwap(
Light* other);
165 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
168 inline void* MaybeArenaPtr()
const {
173 ::google::protobuf::Metadata GetMetadata() const final;
184 static inline
bool LightType_IsValid(
int value) {
191 static const int LightType_ARRAYSIZE =
193 static inline const ::google::protobuf::EnumDescriptor*
209 static const int kNameFieldNumber = 2;
210 const ::std::string& name()
const;
211 void set_name(const ::std::string& value);
215 void set_name(
const char* value);
216 void set_name(
const char* value,
size_t size);
222 bool has_header()
const;
224 static const int kHeaderFieldNumber = 1;
226 const ::gz::msgs::Header& _internal_header()
const;
228 const ::gz::msgs::Header& header()
const;
234 bool has_pose()
const;
236 static const int kPoseFieldNumber = 4;
238 const ::gz::msgs::Pose& _internal_pose()
const;
240 const ::gz::msgs::Pose& pose()
const;
246 bool has_diffuse()
const;
247 void clear_diffuse();
248 static const int kDiffuseFieldNumber = 5;
250 const ::gz::msgs::Color& _internal_diffuse()
const;
252 const ::gz::msgs::Color& diffuse()
const;
258 bool has_specular()
const;
259 void clear_specular();
260 static const int kSpecularFieldNumber = 6;
262 const ::gz::msgs::Color& _internal_specular()
const;
264 const ::gz::msgs::Color& specular()
const;
270 bool has_direction()
const;
271 void clear_direction();
272 static const int kDirectionFieldNumber = 10;
274 const ::gz::msgs::Vector3d& _internal_direction()
const;
276 const ::gz::msgs::Vector3d& direction()
const;
283 static const int kTypeFieldNumber = 3;
288 void clear_attenuation_constant();
289 static const int kAttenuationConstantFieldNumber = 7;
290 float attenuation_constant()
const;
291 void set_attenuation_constant(
float value);
294 void clear_attenuation_linear();
295 static const int kAttenuationLinearFieldNumber = 8;
296 float attenuation_linear()
const;
297 void set_attenuation_linear(
float value);
300 void clear_attenuation_quadratic();
301 static const int kAttenuationQuadraticFieldNumber = 9;
302 float attenuation_quadratic()
const;
303 void set_attenuation_quadratic(
float value);
307 static const int kRangeFieldNumber = 11;
309 void set_range(
float value);
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);
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);
324 void clear_spot_falloff();
325 static const int kSpotFalloffFieldNumber = 15;
326 float spot_falloff()
const;
327 void set_spot_falloff(
float value);
331 static const int kIdFieldNumber = 16;
332 ::google::protobuf::uint32 id()
const;
333 void set_id(::google::protobuf::uint32 value);
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);
342 void clear_cast_shadows();
343 static const int kCastShadowsFieldNumber = 12;
344 bool cast_shadows()
const;
345 void set_cast_shadows(
bool value);
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);
354 void clear_visualize_visual();
355 static const int kVisualizeVisualFieldNumber = 20;
356 bool visualize_visual()
const;
357 void set_visualize_visual(
bool value);
360 void clear_intensity();
361 static const int kIntensityFieldNumber = 18;
362 float intensity()
const;
363 void set_intensity(
float value);
368 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
369 ::google::protobuf::internal::ArenaStringPtr name_;
376 float attenuation_constant_;
377 float attenuation_linear_;
378 float attenuation_quadratic_;
380 float spot_inner_angle_;
381 float spot_outer_angle_;
383 ::google::protobuf::uint32 id_;
384 ::google::protobuf::uint32 parent_id_;
387 bool visualize_visual_;
389 mutable ::google::protobuf::internal::CachedSize _cached_size_;
390 friend struct ::protobuf_gz_2fmsgs_2flight_2eproto::TableStruct;
398 #pragma GCC diagnostic push
399 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
407 inline const ::gz::msgs::Header& Light::_internal_header()
const {
411 const ::gz::msgs::Header* p = header_;
425 if (header_ == NULL) {
426 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
433 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
434 if (message_arena == NULL) {
435 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(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);
453 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
457 return name_.GetNoArena();
461 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
468 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
473 GOOGLE_DCHECK(value != NULL);
475 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
480 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
481 ::
std::string(
reinterpret_cast<const char*
>(value), size));
487 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
492 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
500 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name);
522 inline const ::gz::msgs::Pose& Light::_internal_pose()
const {
526 const ::gz::msgs::Pose* p = pose_;
528 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::Pose*
>(
541 auto* p = CreateMaybeMessage<::gz::msgs::Pose>(GetArenaNoVirtual());
548 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
549 if (message_arena == NULL) {
550 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(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);
570 inline const ::gz::msgs::Color& Light::_internal_diffuse()
const {
574 const ::gz::msgs::Color* p = diffuse_;
588 if (diffuse_ == NULL) {
589 auto* p = CreateMaybeMessage<::gz::msgs::Color>(GetArenaNoVirtual());
596 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
597 if (message_arena == NULL) {
598 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(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);
618 inline const ::gz::msgs::Color& Light::_internal_specular()
const {
622 const ::gz::msgs::Color* p = specular_;
636 if (specular_ == NULL) {
637 auto* p = CreateMaybeMessage<::gz::msgs::Color>(GetArenaNoVirtual());
644 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
645 if (message_arena == NULL) {
646 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(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);
664 attenuation_constant_ = 0;
668 return attenuation_constant_;
672 attenuation_constant_ = value;
678 attenuation_linear_ = 0;
682 return attenuation_linear_;
686 attenuation_linear_ = value;
692 attenuation_quadratic_ = 0;
696 return attenuation_quadratic_;
700 attenuation_quadratic_ = value;
708 inline const ::gz::msgs::Vector3d& Light::_internal_direction()
const {
712 const ::gz::msgs::Vector3d* p = direction_;
726 if (direction_ == NULL) {
727 auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
734 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
735 if (message_arena == NULL) {
736 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(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);
768 cast_shadows_ =
false;
772 return cast_shadows_;
776 cast_shadows_ = value;
782 spot_inner_angle_ = 0;
786 return spot_inner_angle_;
790 spot_inner_angle_ = value;
796 spot_outer_angle_ = 0;
800 return spot_outer_angle_;
804 spot_outer_angle_ = value;
814 return spot_falloff_;
818 spot_falloff_ = value;
866 is_light_off_ =
false;
870 return is_light_off_;
874 is_light_off_ = value;
880 visualize_visual_ =
false;
884 return visualize_visual_;
888 visualize_visual_ = value;
893 #pragma GCC diagnostic pop
906 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::Light_LightType>() {
915 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2flight_2eproto