Gazebo Msgs

API Reference

9.5.1
sky.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/sky.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fsky_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fsky_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include <google/protobuf/unknown_field_set.h>
33 #include "gz/msgs/color.pb.h"
34 #include "gz/msgs/header.pb.h"
35 // @@protoc_insertion_point(includes)
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fsky_2eproto GZ_MSGS_VISIBLE
37 
39 // Internal implementation detail -- do not use these members.
40 struct GZ_MSGS_VISIBLE TableStruct {
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[];
47 };
48 void GZ_MSGS_VISIBLE AddDescriptors();
49 } // namespace protobuf_gz_2fmsgs_2fsky_2eproto
50 namespace gz {
51 namespace msgs {
52 class Sky;
53 class SkyDefaultTypeInternal;
54 GZ_MSGS_VISIBLE extern SkyDefaultTypeInternal _Sky_default_instance_;
55 } // namespace msgs
56 } // namespace gz
57 namespace google {
58 namespace protobuf {
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::Sky* Arena::CreateMaybeMessage<::gz::msgs::Sky>(Arena*);
60 } // namespace protobuf
61 } // namespace google
62 namespace gz {
63 namespace msgs {
64 
65 // ===================================================================
66 
67 class GZ_MSGS_VISIBLE Sky : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Sky) */ {
68  public:
69  Sky();
70  virtual ~Sky();
71 
72  Sky(const Sky& from);
73 
74  inline Sky& operator=(const Sky& from) {
75  CopyFrom(from);
76  return *this;
77  }
78  #if LANG_CXX11
79  Sky(Sky&& from) noexcept
80  : Sky() {
81  *this = ::std::move(from);
82  }
83 
84  inline Sky& operator=(Sky&& from) noexcept {
85  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
86  if (this != &from) InternalSwap(&from);
87  } else {
88  CopyFrom(from);
89  }
90  return *this;
91  }
92  #endif
93  static const ::google::protobuf::Descriptor* descriptor();
94  static const Sky& default_instance();
95 
96  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
97  static inline const Sky* internal_default_instance() {
98  return reinterpret_cast<const Sky*>(
100  }
101  static constexpr int kIndexInFileMessages =
102  0;
103 
104  void Swap(Sky* other);
105  friend void swap(Sky& a, Sky& b) {
106  a.Swap(&b);
107  }
108 
109  // implements Message ----------------------------------------------
110 
111  inline Sky* New() const final {
112  return CreateMaybeMessage<Sky>(NULL);
113  }
114 
115  Sky* New(::google::protobuf::Arena* arena) const final {
116  return CreateMaybeMessage<Sky>(arena);
117  }
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);
122  void Clear() final;
123  bool IsInitialized() const final;
124 
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(); }
133 
134  private:
135  void SharedCtor();
136  void SharedDtor();
137  void SetCachedSize(int size) const final;
138  void InternalSwap(Sky* other);
139  private:
140  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
141  return NULL;
142  }
143  inline void* MaybeArenaPtr() const {
144  return NULL;
145  }
146  public:
147 
148  ::google::protobuf::Metadata GetMetadata() const final;
149 
150  // nested types ----------------------------------------------------
151 
152  // accessors -------------------------------------------------------
153 
154  // .gz.msgs.Header header = 1;
155  bool has_header() const;
156  void clear_header();
157  static const int kHeaderFieldNumber = 1;
158  private:
159  const ::gz::msgs::Header& _internal_header() const;
160  public:
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);
165 
166  // .gz.msgs.Color cloud_ambient = 7;
167  bool has_cloud_ambient() const;
168  void clear_cloud_ambient();
169  static const int kCloudAmbientFieldNumber = 7;
170  private:
171  const ::gz::msgs::Color& _internal_cloud_ambient() const;
172  public:
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);
177 
178  // double time = 2;
179  void clear_time();
180  static const int kTimeFieldNumber = 2;
181  double time() const;
182  void set_time(double value);
183 
184  // double sunrise = 3;
185  void clear_sunrise();
186  static const int kSunriseFieldNumber = 3;
187  double sunrise() const;
188  void set_sunrise(double value);
189 
190  // double sunset = 4;
191  void clear_sunset();
192  static const int kSunsetFieldNumber = 4;
193  double sunset() const;
194  void set_sunset(double value);
195 
196  // double wind_speed = 5;
197  void clear_wind_speed();
198  static const int kWindSpeedFieldNumber = 5;
199  double wind_speed() const;
200  void set_wind_speed(double value);
201 
202  // double wind_direction = 6;
203  void clear_wind_direction();
204  static const int kWindDirectionFieldNumber = 6;
205  double wind_direction() const;
206  void set_wind_direction(double value);
207 
208  // double humidity = 8;
209  void clear_humidity();
210  static const int kHumidityFieldNumber = 8;
211  double humidity() const;
212  void set_humidity(double value);
213 
214  // double mean_cloud_size = 9;
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);
219 
220  // @@protoc_insertion_point(class_scope:gz.msgs.Sky)
221  private:
222 
223  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
224  ::gz::msgs::Header* header_;
225  ::gz::msgs::Color* cloud_ambient_;
226  double time_;
227  double sunrise_;
228  double sunset_;
229  double wind_speed_;
230  double wind_direction_;
231  double humidity_;
232  double mean_cloud_size_;
233  mutable ::google::protobuf::internal::CachedSize _cached_size_;
234  friend struct ::protobuf_gz_2fmsgs_2fsky_2eproto::TableStruct;
235 };
236 // ===================================================================
237 
238 
239 // ===================================================================
240 
241 #ifdef __GNUC__
242  #pragma GCC diagnostic push
243  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
244 #endif // __GNUC__
245 // Sky
246 
247 // .gz.msgs.Header header = 1;
248 inline bool Sky::has_header() const {
249  return this != internal_default_instance() && header_ != NULL;
250 }
251 inline const ::gz::msgs::Header& Sky::_internal_header() const {
252  return *header_;
253 }
254 inline const ::gz::msgs::Header& Sky::header() const {
255  const ::gz::msgs::Header* p = header_;
256  // @@protoc_insertion_point(field_get:gz.msgs.Sky.header)
257  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
259 }
260 inline ::gz::msgs::Header* Sky::release_header() {
261  // @@protoc_insertion_point(field_release:gz.msgs.Sky.header)
262 
263  ::gz::msgs::Header* temp = header_;
264  header_ = NULL;
265  return temp;
266 }
267 inline ::gz::msgs::Header* Sky::mutable_header() {
268 
269  if (header_ == NULL) {
270  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
271  header_ = p;
272  }
273  // @@protoc_insertion_point(field_mutable:gz.msgs.Sky.header)
274  return header_;
275 }
277  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
278  if (message_arena == NULL) {
279  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
280  }
281  if (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);
286  }
287 
288  } else {
289 
290  }
291  header_ = header;
292  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Sky.header)
293 }
294 
295 // double time = 2;
296 inline void Sky::clear_time() {
297  time_ = 0;
298 }
299 inline double Sky::time() const {
300  // @@protoc_insertion_point(field_get:gz.msgs.Sky.time)
301  return time_;
302 }
303 inline void Sky::set_time(double value) {
304 
305  time_ = value;
306  // @@protoc_insertion_point(field_set:gz.msgs.Sky.time)
307 }
308 
309 // double sunrise = 3;
310 inline void Sky::clear_sunrise() {
311  sunrise_ = 0;
312 }
313 inline double Sky::sunrise() const {
314  // @@protoc_insertion_point(field_get:gz.msgs.Sky.sunrise)
315  return sunrise_;
316 }
317 inline void Sky::set_sunrise(double value) {
318 
319  sunrise_ = value;
320  // @@protoc_insertion_point(field_set:gz.msgs.Sky.sunrise)
321 }
322 
323 // double sunset = 4;
324 inline void Sky::clear_sunset() {
325  sunset_ = 0;
326 }
327 inline double Sky::sunset() const {
328  // @@protoc_insertion_point(field_get:gz.msgs.Sky.sunset)
329  return sunset_;
330 }
331 inline void Sky::set_sunset(double value) {
332 
333  sunset_ = value;
334  // @@protoc_insertion_point(field_set:gz.msgs.Sky.sunset)
335 }
336 
337 // double wind_speed = 5;
338 inline void Sky::clear_wind_speed() {
339  wind_speed_ = 0;
340 }
341 inline double Sky::wind_speed() const {
342  // @@protoc_insertion_point(field_get:gz.msgs.Sky.wind_speed)
343  return wind_speed_;
344 }
345 inline void Sky::set_wind_speed(double value) {
346 
347  wind_speed_ = value;
348  // @@protoc_insertion_point(field_set:gz.msgs.Sky.wind_speed)
349 }
350 
351 // double wind_direction = 6;
353  wind_direction_ = 0;
354 }
355 inline double Sky::wind_direction() const {
356  // @@protoc_insertion_point(field_get:gz.msgs.Sky.wind_direction)
357  return wind_direction_;
358 }
359 inline void Sky::set_wind_direction(double value) {
360 
361  wind_direction_ = value;
362  // @@protoc_insertion_point(field_set:gz.msgs.Sky.wind_direction)
363 }
364 
365 // .gz.msgs.Color cloud_ambient = 7;
366 inline bool Sky::has_cloud_ambient() const {
367  return this != internal_default_instance() && cloud_ambient_ != NULL;
368 }
369 inline const ::gz::msgs::Color& Sky::_internal_cloud_ambient() const {
370  return *cloud_ambient_;
371 }
372 inline const ::gz::msgs::Color& Sky::cloud_ambient() const {
373  const ::gz::msgs::Color* p = cloud_ambient_;
374  // @@protoc_insertion_point(field_get:gz.msgs.Sky.cloud_ambient)
375  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Color*>(
377 }
378 inline ::gz::msgs::Color* Sky::release_cloud_ambient() {
379  // @@protoc_insertion_point(field_release:gz.msgs.Sky.cloud_ambient)
380 
381  ::gz::msgs::Color* temp = cloud_ambient_;
382  cloud_ambient_ = NULL;
383  return temp;
384 }
385 inline ::gz::msgs::Color* Sky::mutable_cloud_ambient() {
386 
387  if (cloud_ambient_ == NULL) {
388  auto* p = CreateMaybeMessage<::gz::msgs::Color>(GetArenaNoVirtual());
389  cloud_ambient_ = p;
390  }
391  // @@protoc_insertion_point(field_mutable:gz.msgs.Sky.cloud_ambient)
392  return cloud_ambient_;
393 }
394 inline void Sky::set_allocated_cloud_ambient(::gz::msgs::Color* cloud_ambient) {
395  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
396  if (message_arena == NULL) {
397  delete reinterpret_cast< ::google::protobuf::MessageLite*>(cloud_ambient_);
398  }
399  if (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);
404  }
405 
406  } else {
407 
408  }
409  cloud_ambient_ = cloud_ambient;
410  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Sky.cloud_ambient)
411 }
412 
413 // double humidity = 8;
414 inline void Sky::clear_humidity() {
415  humidity_ = 0;
416 }
417 inline double Sky::humidity() const {
418  // @@protoc_insertion_point(field_get:gz.msgs.Sky.humidity)
419  return humidity_;
420 }
421 inline void Sky::set_humidity(double value) {
422 
423  humidity_ = value;
424  // @@protoc_insertion_point(field_set:gz.msgs.Sky.humidity)
425 }
426 
427 // double mean_cloud_size = 9;
429  mean_cloud_size_ = 0;
430 }
431 inline double Sky::mean_cloud_size() const {
432  // @@protoc_insertion_point(field_get:gz.msgs.Sky.mean_cloud_size)
433  return mean_cloud_size_;
434 }
435 inline void Sky::set_mean_cloud_size(double value) {
436 
437  mean_cloud_size_ = value;
438  // @@protoc_insertion_point(field_set:gz.msgs.Sky.mean_cloud_size)
439 }
440 
441 #ifdef __GNUC__
442  #pragma GCC diagnostic pop
443 #endif // __GNUC__
444 
445 // @@protoc_insertion_point(namespace_scope)
446 
447 } // namespace msgs
448 } // namespace gz
449 
450 // @@protoc_insertion_point(global_scope)
451 
452 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fsky_2eproto