Go to the documentation of this file.
4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2fsky_2eproto
5 #define PROTOBUF_INCLUDED_ignition_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>
36 #pragma GCC system_header
39 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
42 #include <sys/sysmacros.h>
47 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2fsky_2eproto IGNITION_MSGS_VISIBLE
52 static const ::google::protobuf::internal::ParseTableField entries[];
53 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
54 static const ::google::protobuf::internal::ParseTable schema[1];
55 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
56 static const ::google::protobuf::internal::SerializationTable serialization_table[];
57 static const ::google::protobuf::uint32 offsets[];
64 class SkyDefaultTypeInternal;
70 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Sky* Arena::CreateMaybeMessage<::ignition::msgs::Sky>(Arena*);
78 class IGNITION_MSGS_VISIBLE
Sky :
public ::google::protobuf::Message {
92 *
this = ::std::move(from);
95 inline Sky& operator=(Sky&& from) noexcept {
96 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
97 if (
this != &from) InternalSwap(&from);
104 static const ::google::protobuf::Descriptor* descriptor();
105 static const Sky& default_instance();
107 static void InitAsDefaultInstance();
109 return reinterpret_cast<const Sky*
>(
112 static constexpr
int kIndexInFileMessages =
115 void Swap(
Sky* other);
123 return CreateMaybeMessage<Sky>(NULL);
126 Sky*
New(::google::protobuf::Arena* arena)
const final {
127 return CreateMaybeMessage<Sky>(arena);
129 void CopyFrom(const ::google::protobuf::Message& from)
final;
130 void MergeFrom(const ::google::protobuf::Message& from)
final;
131 void CopyFrom(
const Sky& from);
132 void MergeFrom(
const Sky& from);
134 bool IsInitialized() const final;
136 size_t ByteSizeLong() const final;
137 bool MergePartialFromCodedStream(
138 ::
google::protobuf::io::CodedInputStream* input) final;
139 void SerializeWithCachedSizes(
140 ::
google::protobuf::io::CodedOutputStream* output) const final;
141 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
142 bool deterministic, ::
google::protobuf::uint8* target) const final;
143 int GetCachedSize() const final {
return _cached_size_.Get(); }
148 void SetCachedSize(
int size)
const final;
149 void InternalSwap(
Sky* other);
151 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
154 inline void* MaybeArenaPtr()
const {
159 ::google::protobuf::Metadata GetMetadata() const final;
166 bool has_header() const;
168 static const
int kHeaderFieldNumber = 1;
178 bool has_cloud_ambient() const;
179 void clear_cloud_ambient();
180 static const
int kCloudAmbientFieldNumber = 7;
182 const ::
ignition::msgs::
Color& _internal_cloud_ambient() const;
187 void set_allocated_cloud_ambient(::
ignition::msgs::
Color* cloud_ambient);
191 static const
int kTimeFieldNumber = 2;
193 void set_time(
double value);
196 void clear_sunrise();
197 static const
int kSunriseFieldNumber = 3;
198 double sunrise() const;
199 void set_sunrise(
double value);
203 static const
int kSunsetFieldNumber = 4;
204 double sunset() const;
205 void set_sunset(
double value);
208 void clear_wind_speed();
209 static const
int kWindSpeedFieldNumber = 5;
210 double wind_speed() const;
211 void set_wind_speed(
double value);
214 void clear_wind_direction();
215 static const
int kWindDirectionFieldNumber = 6;
216 double wind_direction() const;
217 void set_wind_direction(
double value);
220 void clear_humidity();
221 static const
int kHumidityFieldNumber = 8;
222 double humidity() const;
223 void set_humidity(
double value);
226 void clear_mean_cloud_size();
227 static const
int kMeanCloudSizeFieldNumber = 9;
228 double mean_cloud_size() const;
229 void set_mean_cloud_size(
double value);
234 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
241 double wind_direction_;
243 double mean_cloud_size_;
244 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
253 #pragma GCC diagnostic push
254 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
260 return this != internal_default_instance() && header_ != NULL;
262 inline const ::ignition::msgs::Header& Sky::_internal_header()
const {
266 const ::ignition::msgs::Header* p = header_;
280 if (header_ == NULL) {
281 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
288 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
289 if (message_arena == NULL) {
290 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
293 ::google::protobuf::Arena* submessage_arena = NULL;
294 if (message_arena != submessage_arena) {
295 header = ::google::protobuf::internal::GetOwnedMessage(
296 message_arena, header, submessage_arena);
368 return wind_direction_;
372 wind_direction_ = value;
378 return this != internal_default_instance() && cloud_ambient_ != NULL;
380 inline const ::ignition::msgs::Color& Sky::_internal_cloud_ambient()
const {
381 return *cloud_ambient_;
384 const ::ignition::msgs::Color* p = cloud_ambient_;
393 cloud_ambient_ = NULL;
398 if (cloud_ambient_ == NULL) {
399 auto* p = CreateMaybeMessage<::ignition::msgs::Color>(GetArenaNoVirtual());
403 return cloud_ambient_;
406 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
407 if (message_arena == NULL) {
408 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(cloud_ambient_);
411 ::google::protobuf::Arena* submessage_arena = NULL;
412 if (message_arena != submessage_arena) {
413 cloud_ambient = ::google::protobuf::internal::GetOwnedMessage(
414 message_arena, cloud_ambient, submessage_arena);
420 cloud_ambient_ = cloud_ambient;
440 mean_cloud_size_ = 0;
444 return mean_cloud_size_;
448 mean_cloud_size_ = value;
453 #pragma GCC diagnostic pop
470 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2fsky_2eproto
void set_sunrise(double value)
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:328
void set_wind_direction(double value)
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:370
::ignition::msgs::Color * mutable_cloud_ambient()
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:396
void clear_mean_cloud_size()
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:439
double sunrise() const
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:324
void set_sunset(double value)
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:342
void clear_sunset()
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:335
double time() const
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:310
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:49
std::shared_ptr< const Sky > ConstSkySharedPtr
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:459
Sky * New(::google::protobuf::Arena *arena) const final
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:126
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:51
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:78
std::unique_ptr< Sky > SkyUniquePtr
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:456
double sunset() const
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:338
void set_humidity(double value)
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:432
void clear_sunrise()
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:321
double mean_cloud_size() const
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:442
const ::ignition::msgs::Header & header() const
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:265
void set_mean_cloud_size(double value)
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:446
void clear_wind_speed()
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:349
std::unique_ptr< const Sky > ConstSkyUniquePtr
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:457
Sky * New() const final
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:122
IGNITION_MSGS_VISIBLE ColorDefaultTypeInternal _Color_default_instance_
void clear_humidity()
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:425
::ignition::msgs::Color * release_cloud_ambient()
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:389
IGNITION_MSGS_VISIBLE SkyDefaultTypeInternal _Sky_default_instance_
friend void swap(Sky &a, Sky &b)
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:116
Definition: build/ignition-msgs5/include/ignition/msgs/color.pb.h:77
std::shared_ptr< Sky > SkySharedPtr
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:458
void clear_time()
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:307
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
void set_time(double value)
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:314
double wind_speed() const
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:352
void clear_wind_direction()
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:363
double wind_direction() const
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:366
::ignition::msgs::Header * mutable_header()
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:278
bool has_cloud_ambient() const
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:377
Sky & operator=(const Sky &from)
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:85
void set_allocated_header(::ignition::msgs::Header *header)
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:287
const ::ignition::msgs::Color & cloud_ambient() const
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:383
void IGNITION_MSGS_VISIBLE AddDescriptors()
::ignition::msgs::Header * release_header()
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:271
static const Sky * internal_default_instance()
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:108
void set_wind_speed(double value)
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:356
bool has_header() const
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:259
double humidity() const
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:428
Definition: build/ignition-msgs5/include/ignition/msgs/actor.pb.h:78
void set_allocated_cloud_ambient(::ignition::msgs::Color *cloud_ambient)
Definition: build/ignition-msgs5/include/ignition/msgs/sky.pb.h:405