4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fsky_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fsky_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/unknown_field_set.h>
33 #include "gz/msgs/color.pb.h"
34 #include "gz/msgs/header.pb.h"
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fsky_2eproto GZ_MSGS_VISIBLE
41 static const ::google::protobuf::internal::ParseTableField entries[];
42 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
43 static const ::google::protobuf::internal::ParseTable schema[1];
44 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
45 static const ::google::protobuf::internal::SerializationTable serialization_table[];
46 static const ::google::protobuf::uint32 offsets[];
53 class SkyDefaultTypeInternal;
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::Sky* Arena::CreateMaybeMessage<::gz::msgs::Sky>(Arena*);
67 class GZ_MSGS_VISIBLE
Sky :
public ::google::protobuf::Message {
81 *
this = ::std::move(from);
84 inline Sky& operator=(Sky&& from) noexcept {
85 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
86 if (
this != &from) InternalSwap(&from);
93 static const ::google::protobuf::Descriptor* descriptor();
94 static const Sky& default_instance();
96 static void InitAsDefaultInstance();
98 return reinterpret_cast<const Sky*
>(
101 static constexpr
int kIndexInFileMessages =
104 void Swap(
Sky* other);
112 return CreateMaybeMessage<Sky>(NULL);
115 Sky*
New(::google::protobuf::Arena* arena)
const final {
116 return CreateMaybeMessage<Sky>(arena);
118 void CopyFrom(const ::google::protobuf::Message& from)
final;
119 void MergeFrom(const ::google::protobuf::Message& from)
final;
120 void CopyFrom(
const Sky& from);
121 void MergeFrom(
const Sky& from);
123 bool IsInitialized() const final;
125 size_t ByteSizeLong() const final;
126 bool MergePartialFromCodedStream(
127 ::
google::protobuf::io::CodedInputStream* input) final;
128 void SerializeWithCachedSizes(
129 ::
google::protobuf::io::CodedOutputStream* output) const final;
130 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
131 bool deterministic, ::
google::protobuf::uint8* target) const final;
132 int GetCachedSize() const final {
return _cached_size_.Get(); }
137 void SetCachedSize(
int size)
const final;
138 void InternalSwap(
Sky* other);
140 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
143 inline void* MaybeArenaPtr()
const {
148 ::google::protobuf::Metadata GetMetadata() const final;
155 bool has_header() const;
157 static const
int kHeaderFieldNumber = 1;
159 const ::
gz::msgs::
Header& _internal_header() const;
161 const ::
gz::msgs::
Header& header() const;
162 ::
gz::msgs::
Header* release_header();
163 ::
gz::msgs::
Header* mutable_header();
164 void set_allocated_header(::
gz::msgs::
Header* header);
167 bool has_cloud_ambient() const;
168 void clear_cloud_ambient();
169 static const
int kCloudAmbientFieldNumber = 7;
171 const ::
gz::msgs::
Color& _internal_cloud_ambient() const;
173 const ::
gz::msgs::
Color& cloud_ambient() const;
174 ::
gz::msgs::
Color* release_cloud_ambient();
175 ::
gz::msgs::
Color* mutable_cloud_ambient();
176 void set_allocated_cloud_ambient(::
gz::msgs::
Color* cloud_ambient);
180 static const
int kTimeFieldNumber = 2;
182 void set_time(
double value);
185 void clear_sunrise();
186 static const
int kSunriseFieldNumber = 3;
187 double sunrise() const;
188 void set_sunrise(
double value);
192 static const
int kSunsetFieldNumber = 4;
193 double sunset() const;
194 void set_sunset(
double value);
197 void clear_wind_speed();
198 static const
int kWindSpeedFieldNumber = 5;
199 double wind_speed() const;
200 void set_wind_speed(
double value);
203 void clear_wind_direction();
204 static const
int kWindDirectionFieldNumber = 6;
205 double wind_direction() const;
206 void set_wind_direction(
double value);
209 void clear_humidity();
210 static const
int kHumidityFieldNumber = 8;
211 double humidity() const;
212 void set_humidity(
double value);
215 void clear_mean_cloud_size();
216 static const
int kMeanCloudSizeFieldNumber = 9;
217 double mean_cloud_size() const;
218 void set_mean_cloud_size(
double value);
223 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
225 ::
gz::msgs::
Color* cloud_ambient_;
230 double wind_direction_;
232 double mean_cloud_size_;
233 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
242 #pragma GCC diagnostic push
243 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
249 return this != internal_default_instance() && header_ != NULL;
251 inline const ::gz::msgs::Header& Sky::_internal_header()
const {
255 const ::gz::msgs::Header* p = header_;
269 if (header_ == NULL) {
270 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
277 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
278 if (message_arena == NULL) {
279 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
282 ::google::protobuf::Arena* submessage_arena = NULL;
283 if (message_arena != submessage_arena) {
284 header = ::google::protobuf::internal::GetOwnedMessage(
285 message_arena, header, submessage_arena);
357 return wind_direction_;
361 wind_direction_ = value;
367 return this != internal_default_instance() && cloud_ambient_ != NULL;
369 inline const ::gz::msgs::Color& Sky::_internal_cloud_ambient()
const {
370 return *cloud_ambient_;
373 const ::gz::msgs::Color* p = cloud_ambient_;
382 cloud_ambient_ = NULL;
387 if (cloud_ambient_ == NULL) {
388 auto* p = CreateMaybeMessage<::gz::msgs::Color>(GetArenaNoVirtual());
392 return cloud_ambient_;
395 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
396 if (message_arena == NULL) {
397 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(cloud_ambient_);
400 ::google::protobuf::Arena* submessage_arena = NULL;
401 if (message_arena != submessage_arena) {
402 cloud_ambient = ::google::protobuf::internal::GetOwnedMessage(
403 message_arena, cloud_ambient, submessage_arena);
409 cloud_ambient_ = cloud_ambient;
429 mean_cloud_size_ = 0;
433 return mean_cloud_size_;
437 mean_cloud_size_ = value;
442 #pragma GCC diagnostic pop
452 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fsky_2eproto