4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fsky_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fsky_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/unknown_field_set.h>
37 #pragma GCC system_header
40 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
43 #include <sys/sysmacros.h>
48 #include <google/protobuf/port_def.inc>
49 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fsky_2eproto IGNITION_MSGS_VISIBLE
50 PROTOBUF_NAMESPACE_OPEN
54 PROTOBUF_NAMESPACE_CLOSE
58 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
60 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
62 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
64 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
65 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
66 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
72 class SkyDefaultTypeInternal;
76 PROTOBUF_NAMESPACE_OPEN
77 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Sky* Arena::CreateMaybeMessage<::ignition::msgs::Sky>(Arena*);
78 PROTOBUF_NAMESPACE_CLOSE
84 class IGNITION_MSGS_VISIBLE Sky PROTOBUF_FINAL :
85 public ::PROTOBUF_NAMESPACE_ID::Message {
87 inline Sky() : Sky(nullptr) {}
91 Sky(Sky&& from) noexcept
93 *
this = ::std::move(from);
101 if (GetArena() == from.GetArena()) {
102 if (
this != &from) InternalSwap(&from);
109 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
110 return GetDescriptor();
113 return GetMetadataStatic().descriptor;
116 return GetMetadataStatic().reflection;
121 return reinterpret_cast<const Sky*
>(
124 static constexpr
int kIndexInFileMessages =
127 friend void swap(Sky& a, Sky& b) {
131 if (other ==
this)
return;
132 if (GetArena() == other->GetArena()) {
135 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
139 if (other ==
this)
return;
140 GOOGLE_DCHECK(GetArena() == other->GetArena());
146 inline Sky*
New() const final {
147 return CreateMaybeMessage<Sky>(
nullptr);
150 Sky*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
151 return CreateMaybeMessage<Sky>(arena);
153 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
154 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
157 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
158 bool IsInitialized() const final;
160 size_t ByteSizeLong() const final;
161 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
162 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
163 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
164 int GetCachedSize() const final {
return _cached_size_.Get(); }
167 inline void SharedCtor();
168 inline void SharedDtor();
169 void SetCachedSize(
int size)
const final;
170 void InternalSwap(Sky* other);
171 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
172 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
173 return "ignition.msgs.Sky";
176 explicit Sky(::PROTOBUF_NAMESPACE_ID::Arena* arena);
178 static void ArenaDtor(
void*
object);
179 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
184 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
196 kHeaderFieldNumber = 1,
197 kCloudAmbientFieldNumber = 7,
198 kTimeFieldNumber = 2,
199 kSunriseFieldNumber = 3,
200 kSunsetFieldNumber = 4,
201 kWindSpeedFieldNumber = 5,
202 kWindDirectionFieldNumber = 6,
203 kHumidityFieldNumber = 8,
204 kMeanCloudSizeFieldNumber = 9,
209 bool _internal_has_header()
const;
212 const ::ignition::msgs::Header&
header()
const;
217 const ::ignition::msgs::Header& _internal_header()
const;
218 ::ignition::msgs::Header* _internal_mutable_header();
221 ::ignition::msgs::Header* header);
227 bool _internal_has_cloud_ambient()
const;
235 const ::ignition::msgs::Color& _internal_cloud_ambient()
const;
236 ::ignition::msgs::Color* _internal_mutable_cloud_ambient();
239 ::ignition::msgs::Color* cloud_ambient);
247 double _internal_time()
const;
248 void _internal_set_time(
double value);
256 double _internal_sunrise()
const;
257 void _internal_set_sunrise(
double value);
265 double _internal_sunset()
const;
266 void _internal_set_sunset(
double value);
274 double _internal_wind_speed()
const;
275 void _internal_set_wind_speed(
double value);
283 double _internal_wind_direction()
const;
284 void _internal_set_wind_direction(
double value);
292 double _internal_humidity()
const;
293 void _internal_set_humidity(
double value);
301 double _internal_mean_cloud_size()
const;
302 void _internal_set_mean_cloud_size(
double value);
309 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
310 typedef void InternalArenaConstructable_;
311 typedef void DestructorSkippable_;
312 ::ignition::msgs::Header* header_;
313 ::ignition::msgs::Color* cloud_ambient_;
318 double wind_direction_;
320 double mean_cloud_size_;
321 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
322 friend struct ::TableStruct_ignition_2fmsgs_2fsky_2eproto;
330 #pragma GCC diagnostic push
331 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
336 inline bool Sky::_internal_has_header()
const {
337 return this != internal_default_instance() && header_ !=
nullptr;
339 inline bool Sky::has_header()
const {
340 return _internal_has_header();
342 inline const ::ignition::msgs::Header& Sky::_internal_header()
const {
343 const ::ignition::msgs::Header* p = header_;
344 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Header&
>(
347 inline const ::ignition::msgs::Header& Sky::header()
const {
349 return _internal_header();
351 inline void Sky::unsafe_arena_set_allocated_header(
352 ::ignition::msgs::Header* header) {
353 if (GetArena() ==
nullptr) {
354 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
364 inline ::ignition::msgs::Header* Sky::release_header() {
366 ::ignition::msgs::Header* temp = header_;
368 if (GetArena() !=
nullptr) {
369 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
373 inline ::ignition::msgs::Header* Sky::unsafe_arena_release_header() {
376 ::ignition::msgs::Header* temp = header_;
380 inline ::ignition::msgs::Header* Sky::_internal_mutable_header() {
382 if (header_ ==
nullptr) {
383 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
388 inline ::ignition::msgs::Header* Sky::mutable_header() {
390 return _internal_mutable_header();
392 inline void Sky::set_allocated_header(::ignition::msgs::Header* header) {
393 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
394 if (message_arena ==
nullptr) {
395 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
398 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
399 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header)->GetArena();
400 if (message_arena != submessage_arena) {
401 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
402 message_arena, header, submessage_arena);
413 inline void Sky::clear_time() {
416 inline double Sky::_internal_time()
const {
419 inline double Sky::time()
const {
421 return _internal_time();
423 inline void Sky::_internal_set_time(
double value) {
427 inline void Sky::set_time(
double value) {
428 _internal_set_time(value);
433 inline void Sky::clear_sunrise() {
436 inline double Sky::_internal_sunrise()
const {
439 inline double Sky::sunrise()
const {
441 return _internal_sunrise();
443 inline void Sky::_internal_set_sunrise(
double value) {
447 inline void Sky::set_sunrise(
double value) {
448 _internal_set_sunrise(value);
453 inline void Sky::clear_sunset() {
456 inline double Sky::_internal_sunset()
const {
459 inline double Sky::sunset()
const {
461 return _internal_sunset();
463 inline void Sky::_internal_set_sunset(
double value) {
467 inline void Sky::set_sunset(
double value) {
468 _internal_set_sunset(value);
473 inline void Sky::clear_wind_speed() {
476 inline double Sky::_internal_wind_speed()
const {
479 inline double Sky::wind_speed()
const {
481 return _internal_wind_speed();
483 inline void Sky::_internal_set_wind_speed(
double value) {
487 inline void Sky::set_wind_speed(
double value) {
488 _internal_set_wind_speed(value);
493 inline void Sky::clear_wind_direction() {
496 inline double Sky::_internal_wind_direction()
const {
497 return wind_direction_;
499 inline double Sky::wind_direction()
const {
501 return _internal_wind_direction();
503 inline void Sky::_internal_set_wind_direction(
double value) {
505 wind_direction_ = value;
507 inline void Sky::set_wind_direction(
double value) {
508 _internal_set_wind_direction(value);
513 inline bool Sky::_internal_has_cloud_ambient()
const {
514 return this != internal_default_instance() && cloud_ambient_ !=
nullptr;
516 inline bool Sky::has_cloud_ambient()
const {
517 return _internal_has_cloud_ambient();
519 inline const ::ignition::msgs::Color& Sky::_internal_cloud_ambient()
const {
520 const ::ignition::msgs::Color* p = cloud_ambient_;
521 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Color&
>(
524 inline const ::ignition::msgs::Color& Sky::cloud_ambient()
const {
526 return _internal_cloud_ambient();
528 inline void Sky::unsafe_arena_set_allocated_cloud_ambient(
529 ::ignition::msgs::Color* cloud_ambient) {
530 if (GetArena() ==
nullptr) {
531 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(cloud_ambient_);
533 cloud_ambient_ = cloud_ambient;
541 inline ::ignition::msgs::Color* Sky::release_cloud_ambient() {
543 ::ignition::msgs::Color* temp = cloud_ambient_;
544 cloud_ambient_ =
nullptr;
545 if (GetArena() !=
nullptr) {
546 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
550 inline ::ignition::msgs::Color* Sky::unsafe_arena_release_cloud_ambient() {
553 ::ignition::msgs::Color* temp = cloud_ambient_;
554 cloud_ambient_ =
nullptr;
557 inline ::ignition::msgs::Color* Sky::_internal_mutable_cloud_ambient() {
559 if (cloud_ambient_ ==
nullptr) {
560 auto* p = CreateMaybeMessage<::ignition::msgs::Color>(GetArena());
563 return cloud_ambient_;
565 inline ::ignition::msgs::Color* Sky::mutable_cloud_ambient() {
567 return _internal_mutable_cloud_ambient();
569 inline void Sky::set_allocated_cloud_ambient(::ignition::msgs::Color* cloud_ambient) {
570 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
571 if (message_arena ==
nullptr) {
572 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(cloud_ambient_);
575 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
576 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(cloud_ambient)->GetArena();
577 if (message_arena != submessage_arena) {
578 cloud_ambient = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
579 message_arena, cloud_ambient, submessage_arena);
585 cloud_ambient_ = cloud_ambient;
590 inline void Sky::clear_humidity() {
593 inline double Sky::_internal_humidity()
const {
596 inline double Sky::humidity()
const {
598 return _internal_humidity();
600 inline void Sky::_internal_set_humidity(
double value) {
604 inline void Sky::set_humidity(
double value) {
605 _internal_set_humidity(value);
610 inline void Sky::clear_mean_cloud_size() {
611 mean_cloud_size_ = 0;
613 inline double Sky::_internal_mean_cloud_size()
const {
614 return mean_cloud_size_;
616 inline double Sky::mean_cloud_size()
const {
618 return _internal_mean_cloud_size();
620 inline void Sky::_internal_set_mean_cloud_size(
double value) {
622 mean_cloud_size_ = value;
624 inline void Sky::set_mean_cloud_size(
double value) {
625 _internal_set_mean_cloud_size(value);
630 #pragma GCC diagnostic pop
647 #include <google/protobuf/port_undef.inc>
Sky & operator=(const Sky &from)
Definition: sky.pb.h:96
const ::ignition::msgs::Color & cloud_ambient() const
void set_allocated_cloud_ambient(::ignition::msgs::Color *cloud_ambient)
void CopyFrom(const Sky &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: sky.pb.h:115
static const Sky & default_instance()
::ignition::msgs::Color * unsafe_arena_release_cloud_ambient()
::ignition::msgs::Color * mutable_cloud_ambient()
Sky()
Definition: sky.pb.h:87
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void MergeFrom(const Sky &from)
::ignition::msgs::Header * release_header()
::ignition::msgs::Color * release_cloud_ambient()
::ignition::msgs::Header * mutable_header()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: sky.pb.h:109
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
Sky * New() const final
Definition: sky.pb.h:146
static const Sky * internal_default_instance()
Definition: sky.pb.h:120
double wind_speed() const
Sky & operator=(Sky &&from) noexcept
Definition: sky.pb.h:100
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
friend void swap(Sky &a, Sky &b)
Definition: sky.pb.h:127
Sky(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void set_wind_direction(double value)
void set_mean_cloud_size(double value)
void clear_mean_cloud_size()
void UnsafeArenaSwap(Sky *other)
Definition: sky.pb.h:138
void clear_cloud_ambient()
::ignition::msgs::Header * unsafe_arena_release_header()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
bool has_cloud_ambient() const
void set_time(double value)
void set_allocated_header(::ignition::msgs::Header *header)
double wind_direction() const
void set_sunset(double value)
void set_wind_speed(double value)
double mean_cloud_size() const
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: sky.pb.h:112
void Swap(Sky *other)
Definition: sky.pb.h:130
void clear_wind_direction()
void set_sunrise(double value)
Sky(Sky &&from) noexcept
Definition: sky.pb.h:91
Sky * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: sky.pb.h:150
const ::ignition::msgs::Header & header() const
void set_humidity(double value)
void unsafe_arena_set_allocated_cloud_ambient(::ignition::msgs::Color *cloud_ambient)
IGNITION_MSGS_VISIBLE SkyDefaultTypeInternal _Sky_default_instance_
IGNITION_MSGS_VISIBLE ColorDefaultTypeInternal _Color_default_instance_
std::unique_ptr< const Sky > ConstSkyUniquePtr
Definition: sky.pb.h:634
std::shared_ptr< Sky > SkySharedPtr
Definition: sky.pb.h:635
std::unique_ptr< Sky > SkyUniquePtr
Definition: sky.pb.h:633
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::shared_ptr< const Sky > ConstSkySharedPtr
Definition: sky.pb.h:636
Definition: actor.pb.h:52
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fsky_2eproto
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)