Ignition Msgs

API Reference

7.1.0
sky.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/sky.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fsky_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fsky_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3000000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 3000000 < 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.
20 #endif
21 
22 #include <google/protobuf/arena.h>
23 #include <google/protobuf/arenastring.h>
24 #include <google/protobuf/generated_message_util.h>
25 #include <google/protobuf/metadata.h>
26 #include <google/protobuf/message.h>
27 #include <google/protobuf/repeated_field.h>
28 #include <google/protobuf/extension_set.h>
29 #include <google/protobuf/unknown_field_set.h>
30 #include "ignition/msgs/color.pb.h"
32 #ifndef _MSC_VER
33 #pragma GCC system_header
34 #else
35 #pragma warning(push)
36 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
37 #endif
38 #ifdef __linux__
39 #include <sys/sysmacros.h>
40 #endif
41 #include <memory>
42 #include <ignition/msgs/Export.hh>
43 // @@protoc_insertion_point(includes)
44 
45 namespace ignition {
46 namespace msgs {
47 
48 // Internal implementation detail -- do not call these.
49 void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fsky_2eproto();
52 
53 class Sky;
54 
55 // ===================================================================
56 
57 class IGNITION_MSGS_VISIBLE Sky : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Sky) */ {
58  public:
59  Sky();
60  virtual ~Sky();
61 
62  Sky(const Sky& from);
63 
64  inline Sky& operator=(const Sky& from) {
65  CopyFrom(from);
66  return *this;
67  }
68 
69  static const ::google::protobuf::Descriptor* descriptor();
70  static const Sky& default_instance();
71 
72  void Swap(Sky* other);
73 
74  // implements Message ----------------------------------------------
75 
76  inline Sky* New() const { return New(NULL); }
77 
78  Sky* New(::google::protobuf::Arena* arena) const;
79  void CopyFrom(const ::google::protobuf::Message& from);
80  void MergeFrom(const ::google::protobuf::Message& from);
81  void CopyFrom(const Sky& from);
82  void MergeFrom(const Sky& from);
83  void Clear();
84  bool IsInitialized() const;
85 
86  int ByteSize() const;
87  bool MergePartialFromCodedStream(
88  ::google::protobuf::io::CodedInputStream* input);
89  void SerializeWithCachedSizes(
90  ::google::protobuf::io::CodedOutputStream* output) const;
91  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
92  bool deterministic, ::google::protobuf::uint8* output) const;
93  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
94  return InternalSerializeWithCachedSizesToArray(false, output);
95  }
96  int GetCachedSize() const { return _cached_size_; }
97  private:
98  void SharedCtor();
99  void SharedDtor();
100  void SetCachedSize(int size) const;
101  void InternalSwap(Sky* other);
102  private:
103  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
104  return _internal_metadata_.arena();
105  }
106  inline void* MaybeArenaPtr() const {
107  return _internal_metadata_.raw_arena_ptr();
108  }
109  public:
110 
111  ::google::protobuf::Metadata GetMetadata() const;
112 
113  // nested types ----------------------------------------------------
114 
115  // accessors -------------------------------------------------------
116 
117  // optional .ignition.msgs.Header header = 1;
118  bool has_header() const;
119  void clear_header();
120  static const int kHeaderFieldNumber = 1;
121  const ::ignition::msgs::Header& header() const;
122  ::ignition::msgs::Header* mutable_header();
123  ::ignition::msgs::Header* release_header();
124  void set_allocated_header(::ignition::msgs::Header* header);
125 
126  // optional double time = 2;
127  void clear_time();
128  static const int kTimeFieldNumber = 2;
129  double time() const;
130  void set_time(double value);
131 
132  // optional double sunrise = 3;
133  void clear_sunrise();
134  static const int kSunriseFieldNumber = 3;
135  double sunrise() const;
136  void set_sunrise(double value);
137 
138  // optional double sunset = 4;
139  void clear_sunset();
140  static const int kSunsetFieldNumber = 4;
141  double sunset() const;
142  void set_sunset(double value);
143 
144  // optional double wind_speed = 5;
145  void clear_wind_speed();
146  static const int kWindSpeedFieldNumber = 5;
147  double wind_speed() const;
148  void set_wind_speed(double value);
149 
150  // optional double wind_direction = 6;
151  void clear_wind_direction();
152  static const int kWindDirectionFieldNumber = 6;
153  double wind_direction() const;
154  void set_wind_direction(double value);
155 
156  // optional .ignition.msgs.Color cloud_ambient = 7;
157  bool has_cloud_ambient() const;
158  void clear_cloud_ambient();
159  static const int kCloudAmbientFieldNumber = 7;
160  const ::ignition::msgs::Color& cloud_ambient() const;
161  ::ignition::msgs::Color* mutable_cloud_ambient();
162  ::ignition::msgs::Color* release_cloud_ambient();
163  void set_allocated_cloud_ambient(::ignition::msgs::Color* cloud_ambient);
164 
165  // optional double humidity = 8;
166  void clear_humidity();
167  static const int kHumidityFieldNumber = 8;
168  double humidity() const;
169  void set_humidity(double value);
170 
171  // optional double mean_cloud_size = 9;
172  void clear_mean_cloud_size();
173  static const int kMeanCloudSizeFieldNumber = 9;
174  double mean_cloud_size() const;
175  void set_mean_cloud_size(double value);
176 
177  // @@protoc_insertion_point(class_scope:ignition.msgs.Sky)
178  private:
179 
180  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
181  bool _is_default_instance_;
182  ::ignition::msgs::Header* header_;
183  double time_;
184  double sunrise_;
185  double sunset_;
186  double wind_speed_;
187  double wind_direction_;
188  ::ignition::msgs::Color* cloud_ambient_;
189  double humidity_;
190  double mean_cloud_size_;
191  mutable int _cached_size_;
192  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fsky_2eproto();
195 
196  void InitAsDefaultInstance();
197  static Sky* default_instance_;
198 };
199 // ===================================================================
200 
201 
202 // ===================================================================
203 
204 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
205 // Sky
206 
207 // optional .ignition.msgs.Header header = 1;
208 inline bool Sky::has_header() const {
209  return !_is_default_instance_ && header_ != NULL;
210 }
211 inline void Sky::clear_header() {
212  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
213  header_ = NULL;
214 }
215 inline const ::ignition::msgs::Header& Sky::header() const {
216  // @@protoc_insertion_point(field_get:ignition.msgs.Sky.header)
217  return header_ != NULL ? *header_ : *default_instance_->header_;
218 }
219 inline ::ignition::msgs::Header* Sky::mutable_header() {
220 
221  if (header_ == NULL) {
222  header_ = new ::ignition::msgs::Header;
223  }
224  // @@protoc_insertion_point(field_mutable:ignition.msgs.Sky.header)
225  return header_;
226 }
227 inline ::ignition::msgs::Header* Sky::release_header() {
228  // @@protoc_insertion_point(field_release:ignition.msgs.Sky.header)
229 
230  ::ignition::msgs::Header* temp = header_;
231  header_ = NULL;
232  return temp;
233 }
235  delete header_;
236  header_ = header;
237  if (header) {
238 
239  } else {
240 
241  }
242  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Sky.header)
243 }
244 
245 // optional double time = 2;
246 inline void Sky::clear_time() {
247  time_ = 0;
248 }
249 inline double Sky::time() const {
250  // @@protoc_insertion_point(field_get:ignition.msgs.Sky.time)
251  return time_;
252 }
253 inline void Sky::set_time(double value) {
254 
255  time_ = value;
256  // @@protoc_insertion_point(field_set:ignition.msgs.Sky.time)
257 }
258 
259 // optional double sunrise = 3;
260 inline void Sky::clear_sunrise() {
261  sunrise_ = 0;
262 }
263 inline double Sky::sunrise() const {
264  // @@protoc_insertion_point(field_get:ignition.msgs.Sky.sunrise)
265  return sunrise_;
266 }
267 inline void Sky::set_sunrise(double value) {
268 
269  sunrise_ = value;
270  // @@protoc_insertion_point(field_set:ignition.msgs.Sky.sunrise)
271 }
272 
273 // optional double sunset = 4;
274 inline void Sky::clear_sunset() {
275  sunset_ = 0;
276 }
277 inline double Sky::sunset() const {
278  // @@protoc_insertion_point(field_get:ignition.msgs.Sky.sunset)
279  return sunset_;
280 }
281 inline void Sky::set_sunset(double value) {
282 
283  sunset_ = value;
284  // @@protoc_insertion_point(field_set:ignition.msgs.Sky.sunset)
285 }
286 
287 // optional double wind_speed = 5;
288 inline void Sky::clear_wind_speed() {
289  wind_speed_ = 0;
290 }
291 inline double Sky::wind_speed() const {
292  // @@protoc_insertion_point(field_get:ignition.msgs.Sky.wind_speed)
293  return wind_speed_;
294 }
295 inline void Sky::set_wind_speed(double value) {
296 
297  wind_speed_ = value;
298  // @@protoc_insertion_point(field_set:ignition.msgs.Sky.wind_speed)
299 }
300 
301 // optional double wind_direction = 6;
303  wind_direction_ = 0;
304 }
305 inline double Sky::wind_direction() const {
306  // @@protoc_insertion_point(field_get:ignition.msgs.Sky.wind_direction)
307  return wind_direction_;
308 }
309 inline void Sky::set_wind_direction(double value) {
310 
311  wind_direction_ = value;
312  // @@protoc_insertion_point(field_set:ignition.msgs.Sky.wind_direction)
313 }
314 
315 // optional .ignition.msgs.Color cloud_ambient = 7;
316 inline bool Sky::has_cloud_ambient() const {
317  return !_is_default_instance_ && cloud_ambient_ != NULL;
318 }
320  if (GetArenaNoVirtual() == NULL && cloud_ambient_ != NULL) delete cloud_ambient_;
321  cloud_ambient_ = NULL;
322 }
323 inline const ::ignition::msgs::Color& Sky::cloud_ambient() const {
324  // @@protoc_insertion_point(field_get:ignition.msgs.Sky.cloud_ambient)
325  return cloud_ambient_ != NULL ? *cloud_ambient_ : *default_instance_->cloud_ambient_;
326 }
327 inline ::ignition::msgs::Color* Sky::mutable_cloud_ambient() {
328 
329  if (cloud_ambient_ == NULL) {
330  cloud_ambient_ = new ::ignition::msgs::Color;
331  }
332  // @@protoc_insertion_point(field_mutable:ignition.msgs.Sky.cloud_ambient)
333  return cloud_ambient_;
334 }
335 inline ::ignition::msgs::Color* Sky::release_cloud_ambient() {
336  // @@protoc_insertion_point(field_release:ignition.msgs.Sky.cloud_ambient)
337 
338  ::ignition::msgs::Color* temp = cloud_ambient_;
339  cloud_ambient_ = NULL;
340  return temp;
341 }
343  delete cloud_ambient_;
344  cloud_ambient_ = cloud_ambient;
345  if (cloud_ambient) {
346 
347  } else {
348 
349  }
350  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Sky.cloud_ambient)
351 }
352 
353 // optional double humidity = 8;
354 inline void Sky::clear_humidity() {
355  humidity_ = 0;
356 }
357 inline double Sky::humidity() const {
358  // @@protoc_insertion_point(field_get:ignition.msgs.Sky.humidity)
359  return humidity_;
360 }
361 inline void Sky::set_humidity(double value) {
362 
363  humidity_ = value;
364  // @@protoc_insertion_point(field_set:ignition.msgs.Sky.humidity)
365 }
366 
367 // optional double mean_cloud_size = 9;
369  mean_cloud_size_ = 0;
370 }
371 inline double Sky::mean_cloud_size() const {
372  // @@protoc_insertion_point(field_get:ignition.msgs.Sky.mean_cloud_size)
373  return mean_cloud_size_;
374 }
375 inline void Sky::set_mean_cloud_size(double value) {
376 
377  mean_cloud_size_ = value;
378  // @@protoc_insertion_point(field_set:ignition.msgs.Sky.mean_cloud_size)
379 }
380 
381 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
382 
387 // @@protoc_insertion_point(namespace_scope)
388 
389 } // namespace msgs
390 } // namespace ignition
391 
392 #ifdef _MSC_VER
393 #pragma warning(pop)
394 #endif
395 // @@protoc_insertion_point(global_scope)
396 
397 #endif // PROTOBUF_ignition_2fmsgs_2fsky_2eproto__INCLUDED
double wind_speed() const
Definition: sky.pb.h:291
::ignition::msgs::Header * release_header()
Definition: sky.pb.h:227
double mean_cloud_size() const
Definition: sky.pb.h:371
double wind_direction() const
Definition: sky.pb.h:305
double sunset() const
Definition: sky.pb.h:277
void set_mean_cloud_size(double value)
Definition: sky.pb.h:375
std::shared_ptr< Sky > SkySharedPtr
Definition: sky.pb.h:385
const ::ignition::msgs::Header & header() const
Definition: sky.pb.h:215
void clear_wind_speed()
Definition: sky.pb.h:288
void protobuf_ShutdownFile_ignition_2fmsgs_2fsky_2eproto()
void set_sunrise(double value)
Definition: sky.pb.h:267
std::unique_ptr< const Sky > ConstSkyUniquePtr
Definition: sky.pb.h:384
void clear_humidity()
Definition: sky.pb.h:354
bool has_header() const
Definition: sky.pb.h:208
double humidity() const
Definition: sky.pb.h:357
void set_allocated_cloud_ambient(::ignition::msgs::Color *cloud_ambient)
Definition: sky.pb.h:342
double sunrise() const
Definition: sky.pb.h:263
void protobuf_AssignDesc_ignition_2fmsgs_2fsky_2eproto()
void set_wind_direction(double value)
Definition: sky.pb.h:309
std::unique_ptr< Sky > SkyUniquePtr
Definition: sky.pb.h:383
Definition: sky.pb.h:57
Definition: header.pb.h:161
int GetCachedSize() const
Definition: sky.pb.h:96
double time() const
Definition: sky.pb.h:249
void clear_sunrise()
Definition: sky.pb.h:260
Sky * New() const
Definition: sky.pb.h:76
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: sky.pb.h:93
void set_humidity(double value)
Definition: sky.pb.h:361
::ignition::msgs::Header * mutable_header()
Definition: sky.pb.h:219
bool has_cloud_ambient() const
Definition: sky.pb.h:316
Definition: color.pb.h:56
void clear_header()
Definition: sky.pb.h:211
Sky & operator=(const Sky &from)
Definition: sky.pb.h:64
STL class.
std::shared_ptr< const Sky > ConstSkySharedPtr
Definition: sky.pb.h:386
::ignition::msgs::Color * release_cloud_ambient()
Definition: sky.pb.h:335
void clear_cloud_ambient()
Definition: sky.pb.h:319
void set_wind_speed(double value)
Definition: sky.pb.h:295
void clear_mean_cloud_size()
Definition: sky.pb.h:368
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fsky_2eproto()
void clear_time()
Definition: sky.pb.h:246
void set_sunset(double value)
Definition: sky.pb.h:281
void set_time(double value)
Definition: sky.pb.h:253
::ignition::msgs::Color * mutable_cloud_ambient()
Definition: sky.pb.h:327
void clear_wind_direction()
Definition: sky.pb.h:302
void clear_sunset()
Definition: sky.pb.h:274
void set_allocated_header(::ignition::msgs::Header *header)
Definition: sky.pb.h:234
const ::ignition::msgs::Color & cloud_ambient() const
Definition: sky.pb.h:323