4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2ffog_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2ffog_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3014000
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 3014000 < PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/generated_message_reflection.h>
30 #include <google/protobuf/message.h>
31 #include <google/protobuf/repeated_field.h>
32 #include <google/protobuf/extension_set.h>
33 #include <google/protobuf/generated_enum_reflection.h>
34 #include <google/protobuf/unknown_field_set.h>
38 #pragma GCC system_header
41 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
44 #include <sys/sysmacros.h>
49 #include <google/protobuf/port_def.inc>
50 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2ffog_2eproto IGNITION_MSGS_VISIBLE
51 PROTOBUF_NAMESPACE_OPEN
55 PROTOBUF_NAMESPACE_CLOSE
59 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
61 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
63 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
65 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
66 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
67 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
73 class FogDefaultTypeInternal;
77 PROTOBUF_NAMESPACE_OPEN
78 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Fog* Arena::CreateMaybeMessage<::ignition::msgs::Fog>(Arena*);
79 PROTOBUF_NAMESPACE_CLOSE
101 "Incorrect type passed to function Fog_FogType_Name.");
102 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
106 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
Fog_FogType* value) {
107 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Fog_FogType>(
112 class IGNITION_MSGS_VISIBLE Fog PROTOBUF_FINAL :
113 public ::PROTOBUF_NAMESPACE_ID::Message {
115 inline Fog() : Fog(nullptr) {}
121 *
this = ::std::move(from);
129 if (GetArena() == from.GetArena()) {
130 if (
this != &from) InternalSwap(&from);
137 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
138 return GetDescriptor();
141 return GetMetadataStatic().descriptor;
144 return GetMetadataStatic().reflection;
149 return reinterpret_cast<const Fog*
>(
152 static constexpr
int kIndexInFileMessages =
155 friend void swap(Fog& a, Fog& b) {
159 if (other ==
this)
return;
160 if (GetArena() == other->GetArena()) {
163 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
167 if (other ==
this)
return;
168 GOOGLE_DCHECK(GetArena() == other->GetArena());
174 inline Fog*
New() const final {
175 return CreateMaybeMessage<Fog>(
nullptr);
178 Fog*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
179 return CreateMaybeMessage<Fog>(arena);
181 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
182 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
185 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
186 bool IsInitialized() const final;
188 size_t ByteSizeLong() const final;
189 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
190 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
191 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
192 int GetCachedSize() const final {
return _cached_size_.Get(); }
195 inline void SharedCtor();
196 inline void SharedDtor();
197 void SetCachedSize(
int size)
const final;
198 void InternalSwap(Fog* other);
199 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
200 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
201 return "ignition.msgs.Fog";
204 explicit Fog(::PROTOBUF_NAMESPACE_ID::Arena* arena);
206 static void ArenaDtor(
void*
object);
207 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
212 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
237 static constexpr
int FogType_ARRAYSIZE =
239 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
247 "Incorrect type passed to function FogType_Name.");
250 static inline bool FogType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
258 kHeaderFieldNumber = 1,
259 kColorFieldNumber = 3,
260 kTypeFieldNumber = 2,
261 kDensityFieldNumber = 4,
262 kStartFieldNumber = 5,
268 bool _internal_has_header()
const;
271 const ::ignition::msgs::Header&
header()
const;
276 const ::ignition::msgs::Header& _internal_header()
const;
277 ::ignition::msgs::Header* _internal_mutable_header();
280 ::ignition::msgs::Header* header);
286 bool _internal_has_color()
const;
289 const ::ignition::msgs::Color&
color()
const;
294 const ::ignition::msgs::Color& _internal_color()
const;
295 ::ignition::msgs::Color* _internal_mutable_color();
298 ::ignition::msgs::Color* color);
315 float _internal_density()
const;
316 void _internal_set_density(
float value);
324 float _internal_start()
const;
325 void _internal_set_start(
float value);
333 float _internal_end()
const;
334 void _internal_set_end(
float value);
341 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
342 typedef void InternalArenaConstructable_;
343 typedef void DestructorSkippable_;
344 ::ignition::msgs::Header* header_;
345 ::ignition::msgs::Color* color_;
350 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
351 friend struct ::TableStruct_ignition_2fmsgs_2ffog_2eproto;
359 #pragma GCC diagnostic push
360 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
365 inline bool Fog::_internal_has_header()
const {
366 return this != internal_default_instance() && header_ !=
nullptr;
368 inline bool Fog::has_header()
const {
369 return _internal_has_header();
371 inline const ::ignition::msgs::Header& Fog::_internal_header()
const {
372 const ::ignition::msgs::Header* p = header_;
373 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Header&
>(
376 inline const ::ignition::msgs::Header& Fog::header()
const {
378 return _internal_header();
380 inline void Fog::unsafe_arena_set_allocated_header(
381 ::ignition::msgs::Header* header) {
382 if (GetArena() ==
nullptr) {
383 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
393 inline ::ignition::msgs::Header* Fog::release_header() {
395 ::ignition::msgs::Header* temp = header_;
397 if (GetArena() !=
nullptr) {
398 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
402 inline ::ignition::msgs::Header* Fog::unsafe_arena_release_header() {
405 ::ignition::msgs::Header* temp = header_;
409 inline ::ignition::msgs::Header* Fog::_internal_mutable_header() {
411 if (header_ ==
nullptr) {
412 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
417 inline ::ignition::msgs::Header* Fog::mutable_header() {
419 return _internal_mutable_header();
421 inline void Fog::set_allocated_header(::ignition::msgs::Header* header) {
422 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
423 if (message_arena ==
nullptr) {
424 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
427 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
428 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header)->GetArena();
429 if (message_arena != submessage_arena) {
430 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
431 message_arena, header, submessage_arena);
442 inline void Fog::clear_type() {
450 return _internal_type();
457 _internal_set_type(value);
462 inline bool Fog::_internal_has_color()
const {
463 return this != internal_default_instance() && color_ !=
nullptr;
465 inline bool Fog::has_color()
const {
466 return _internal_has_color();
468 inline const ::ignition::msgs::Color& Fog::_internal_color()
const {
469 const ::ignition::msgs::Color* p = color_;
470 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Color&
>(
473 inline const ::ignition::msgs::Color& Fog::color()
const {
475 return _internal_color();
477 inline void Fog::unsafe_arena_set_allocated_color(
478 ::ignition::msgs::Color* color) {
479 if (GetArena() ==
nullptr) {
480 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(color_);
490 inline ::ignition::msgs::Color* Fog::release_color() {
492 ::ignition::msgs::Color* temp = color_;
494 if (GetArena() !=
nullptr) {
495 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
499 inline ::ignition::msgs::Color* Fog::unsafe_arena_release_color() {
502 ::ignition::msgs::Color* temp = color_;
506 inline ::ignition::msgs::Color* Fog::_internal_mutable_color() {
508 if (color_ ==
nullptr) {
509 auto* p = CreateMaybeMessage<::ignition::msgs::Color>(GetArena());
514 inline ::ignition::msgs::Color* Fog::mutable_color() {
516 return _internal_mutable_color();
518 inline void Fog::set_allocated_color(::ignition::msgs::Color* color) {
519 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
520 if (message_arena ==
nullptr) {
521 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(color_);
524 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
525 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(color)->GetArena();
526 if (message_arena != submessage_arena) {
527 color = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
528 message_arena, color, submessage_arena);
539 inline void Fog::clear_density() {
542 inline float Fog::_internal_density()
const {
545 inline float Fog::density()
const {
547 return _internal_density();
549 inline void Fog::_internal_set_density(
float value) {
553 inline void Fog::set_density(
float value) {
554 _internal_set_density(value);
559 inline void Fog::clear_start() {
562 inline float Fog::_internal_start()
const {
565 inline float Fog::start()
const {
567 return _internal_start();
569 inline void Fog::_internal_set_start(
float value) {
573 inline void Fog::set_start(
float value) {
574 _internal_set_start(value);
579 inline void Fog::clear_end() {
582 inline float Fog::_internal_end()
const {
585 inline float Fog::end()
const {
587 return _internal_end();
589 inline void Fog::_internal_set_end(
float value) {
593 inline void Fog::set_end(
float value) {
594 _internal_set_end(value);
599 #pragma GCC diagnostic pop
611 PROTOBUF_NAMESPACE_OPEN
615 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Fog_FogType>() {
619 PROTOBUF_NAMESPACE_CLOSE
626 #include <google/protobuf/port_undef.inc>
void set_density(float value)
static bool FogType_IsValid(int value)
Definition: fog.pb.h:230
Fog & operator=(Fog &&from) noexcept
Definition: fog.pb.h:128
void CopyFrom(const Fog &from)
Fog(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void Swap(Fog *other)
Definition: fog.pb.h:158
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: fog.pb.h:143
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::ignition::msgs::Header * release_header()
Fog()
Definition: fog.pb.h:115
static bool FogType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FogType *value)
Definition: fog.pb.h:250
::ignition::msgs::Header * mutable_header()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: fog.pb.h:137
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void unsafe_arena_set_allocated_color(::ignition::msgs::Color *color)
static const Fog * internal_default_instance()
Definition: fog.pb.h:148
Fog & operator=(const Fog &from)
Definition: fog.pb.h:124
void UnsafeArenaSwap(Fog *other)
Definition: fog.pb.h:166
void set_allocated_color(::ignition::msgs::Color *color)
::ignition::msgs::Color * unsafe_arena_release_color()
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
Fog(Fog &&from) noexcept
Definition: fog.pb.h:119
::ignition::msgs::Header * unsafe_arena_release_header()
static const Fog & default_instance()
friend void swap(Fog &a, Fog &b)
Definition: fog.pb.h:155
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void set_start(float value)
static const std::string & FogType_Name(T enum_t_value)
Definition: fog.pb.h:244
void MergeFrom(const Fog &from)
const ::ignition::msgs::Color & color() const
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * FogType_descriptor()
Definition: fog.pb.h:240
Fog_FogType FogType
Definition: fog.pb.h:221
Fog * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: fog.pb.h:178
::ignition::msgs::Color * mutable_color()
void set_allocated_header(::ignition::msgs::Header *header)
void set_end(float value)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: fog.pb.h:140
::ignition::msgs::Fog_FogType type() const
Fog * New() const final
Definition: fog.pb.h:174
void set_type(::ignition::msgs::Fog_FogType value)
const ::ignition::msgs::Header & header() const
::ignition::msgs::Color * release_color()
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2ffog_2eproto
IGNITION_MSGS_VISIBLE ColorDefaultTypeInternal _Color_default_instance_
std::shared_ptr< const Fog > ConstFogSharedPtr
Definition: fog.pb.h:605
std::shared_ptr< Fog > FogSharedPtr
Definition: fog.pb.h:604
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Fog_FogType_descriptor()
IGNITION_MSGS_VISIBLE bool Fog_FogType_IsValid(int value)
IGNITION_MSGS_VISIBLE FogDefaultTypeInternal _Fog_default_instance_
constexpr Fog_FogType Fog_FogType_FogType_MIN
Definition: fog.pb.h:92
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
const std::string & Fog_FogType_Name(T enum_t_value)
Definition: fog.pb.h:98
std::unique_ptr< const Fog > ConstFogUniquePtr
Definition: fog.pb.h:603
constexpr Fog_FogType Fog_FogType_FogType_MAX
Definition: fog.pb.h:93
Fog_FogType
Definition: fog.pb.h:83
@ Fog_FogType_EXPONENTIAL2
Definition: fog.pb.h:87
@ Fog_FogType_EXPONENTIAL
Definition: fog.pb.h:86
@ Fog_FogType_Fog_FogType_INT_MAX_SENTINEL_DO_NOT_USE_
Definition: fog.pb.h:89
@ Fog_FogType_LINEAR
Definition: fog.pb.h:85
@ Fog_FogType_NONE
Definition: fog.pb.h:84
@ Fog_FogType_Fog_FogType_INT_MIN_SENTINEL_DO_NOT_USE_
Definition: fog.pb.h:88
std::unique_ptr< Fog > FogUniquePtr
Definition: fog.pb.h:602
bool Fog_FogType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Fog_FogType *value)
Definition: fog.pb.h:105
constexpr int Fog_FogType_FogType_ARRAYSIZE
Definition: fog.pb.h:94
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)