Gazebo Msgs

API Reference

9.5.1
fog.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/fog.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2ffog_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2ffog_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/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
34 #include "gz/msgs/color.pb.h"
35 #include "gz/msgs/header.pb.h"
36 // @@protoc_insertion_point(includes)
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2ffog_2eproto GZ_MSGS_VISIBLE
38 
40 // Internal implementation detail -- do not use these members.
41 struct GZ_MSGS_VISIBLE TableStruct {
42  static const ::google::protobuf::internal::ParseTableField entries[];
43  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
44  static const ::google::protobuf::internal::ParseTable schema[1];
45  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
46  static const ::google::protobuf::internal::SerializationTable serialization_table[];
47  static const ::google::protobuf::uint32 offsets[];
48 };
49 void GZ_MSGS_VISIBLE AddDescriptors();
50 } // namespace protobuf_gz_2fmsgs_2ffog_2eproto
51 namespace gz {
52 namespace msgs {
53 class Fog;
54 class FogDefaultTypeInternal;
55 GZ_MSGS_VISIBLE extern FogDefaultTypeInternal _Fog_default_instance_;
56 } // namespace msgs
57 } // namespace gz
58 namespace google {
59 namespace protobuf {
60 template<> GZ_MSGS_VISIBLE ::gz::msgs::Fog* Arena::CreateMaybeMessage<::gz::msgs::Fog>(Arena*);
61 } // namespace protobuf
62 } // namespace google
63 namespace gz {
64 namespace msgs {
65 
73 };
74 GZ_MSGS_VISIBLE bool Fog_FogType_IsValid(int value);
78 
79 GZ_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* Fog_FogType_descriptor();
80 inline const ::std::string& Fog_FogType_Name(Fog_FogType value) {
81  return ::google::protobuf::internal::NameOfEnum(
82  Fog_FogType_descriptor(), value);
83 }
84 inline bool Fog_FogType_Parse(
85  const ::std::string& name, Fog_FogType* value) {
86  return ::google::protobuf::internal::ParseNamedEnum<Fog_FogType>(
87  Fog_FogType_descriptor(), name, value);
88 }
89 // ===================================================================
90 
91 class GZ_MSGS_VISIBLE Fog : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Fog) */ {
92  public:
93  Fog();
94  virtual ~Fog();
95 
96  Fog(const Fog& from);
97 
98  inline Fog& operator=(const Fog& from) {
99  CopyFrom(from);
100  return *this;
101  }
102  #if LANG_CXX11
103  Fog(Fog&& from) noexcept
104  : Fog() {
105  *this = ::std::move(from);
106  }
107 
108  inline Fog& operator=(Fog&& from) noexcept {
109  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
110  if (this != &from) InternalSwap(&from);
111  } else {
112  CopyFrom(from);
113  }
114  return *this;
115  }
116  #endif
117  static const ::google::protobuf::Descriptor* descriptor();
118  static const Fog& default_instance();
119 
120  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
121  static inline const Fog* internal_default_instance() {
122  return reinterpret_cast<const Fog*>(
124  }
125  static constexpr int kIndexInFileMessages =
126  0;
127 
128  void Swap(Fog* other);
129  friend void swap(Fog& a, Fog& b) {
130  a.Swap(&b);
131  }
132 
133  // implements Message ----------------------------------------------
134 
135  inline Fog* New() const final {
136  return CreateMaybeMessage<Fog>(NULL);
137  }
138 
139  Fog* New(::google::protobuf::Arena* arena) const final {
140  return CreateMaybeMessage<Fog>(arena);
141  }
142  void CopyFrom(const ::google::protobuf::Message& from) final;
143  void MergeFrom(const ::google::protobuf::Message& from) final;
144  void CopyFrom(const Fog& from);
145  void MergeFrom(const Fog& from);
146  void Clear() final;
147  bool IsInitialized() const final;
148 
149  size_t ByteSizeLong() const final;
150  bool MergePartialFromCodedStream(
151  ::google::protobuf::io::CodedInputStream* input) final;
152  void SerializeWithCachedSizes(
153  ::google::protobuf::io::CodedOutputStream* output) const final;
154  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
155  bool deterministic, ::google::protobuf::uint8* target) const final;
156  int GetCachedSize() const final { return _cached_size_.Get(); }
157 
158  private:
159  void SharedCtor();
160  void SharedDtor();
161  void SetCachedSize(int size) const final;
162  void InternalSwap(Fog* other);
163  private:
164  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
165  return NULL;
166  }
167  inline void* MaybeArenaPtr() const {
168  return NULL;
169  }
170  public:
171 
172  ::google::protobuf::Metadata GetMetadata() const final;
173 
174  // nested types ----------------------------------------------------
175 
177  static const FogType NONE =
179  static const FogType LINEAR =
181  static const FogType EXPONENTIAL =
183  static const FogType EXPONENTIAL2 =
185  static inline bool FogType_IsValid(int value) {
186  return Fog_FogType_IsValid(value);
187  }
188  static const FogType FogType_MIN =
190  static const FogType FogType_MAX =
192  static const int FogType_ARRAYSIZE =
194  static inline const ::google::protobuf::EnumDescriptor*
196  return Fog_FogType_descriptor();
197  }
198  static inline const ::std::string& FogType_Name(FogType value) {
199  return Fog_FogType_Name(value);
200  }
201  static inline bool FogType_Parse(const ::std::string& name,
202  FogType* value) {
203  return Fog_FogType_Parse(name, value);
204  }
205 
206  // accessors -------------------------------------------------------
207 
208  // .gz.msgs.Header header = 1;
209  bool has_header() const;
210  void clear_header();
211  static const int kHeaderFieldNumber = 1;
212  private:
213  const ::gz::msgs::Header& _internal_header() const;
214  public:
215  const ::gz::msgs::Header& header() const;
216  ::gz::msgs::Header* release_header();
217  ::gz::msgs::Header* mutable_header();
218  void set_allocated_header(::gz::msgs::Header* header);
219 
220  // .gz.msgs.Color color = 3;
221  bool has_color() const;
222  void clear_color();
223  static const int kColorFieldNumber = 3;
224  private:
225  const ::gz::msgs::Color& _internal_color() const;
226  public:
227  const ::gz::msgs::Color& color() const;
228  ::gz::msgs::Color* release_color();
229  ::gz::msgs::Color* mutable_color();
230  void set_allocated_color(::gz::msgs::Color* color);
231 
232  // .gz.msgs.Fog.FogType type = 2;
233  void clear_type();
234  static const int kTypeFieldNumber = 2;
235  ::gz::msgs::Fog_FogType type() const;
236  void set_type(::gz::msgs::Fog_FogType value);
237 
238  // float density = 4;
239  void clear_density();
240  static const int kDensityFieldNumber = 4;
241  float density() const;
242  void set_density(float value);
243 
244  // float start = 5;
245  void clear_start();
246  static const int kStartFieldNumber = 5;
247  float start() const;
248  void set_start(float value);
249 
250  // float end = 6;
251  void clear_end();
252  static const int kEndFieldNumber = 6;
253  float end() const;
254  void set_end(float value);
255 
256  // @@protoc_insertion_point(class_scope:gz.msgs.Fog)
257  private:
258 
259  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
260  ::gz::msgs::Header* header_;
261  ::gz::msgs::Color* color_;
262  int type_;
263  float density_;
264  float start_;
265  float end_;
266  mutable ::google::protobuf::internal::CachedSize _cached_size_;
267  friend struct ::protobuf_gz_2fmsgs_2ffog_2eproto::TableStruct;
268 };
269 // ===================================================================
270 
271 
272 // ===================================================================
273 
274 #ifdef __GNUC__
275  #pragma GCC diagnostic push
276  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
277 #endif // __GNUC__
278 // Fog
279 
280 // .gz.msgs.Header header = 1;
281 inline bool Fog::has_header() const {
282  return this != internal_default_instance() && header_ != NULL;
283 }
284 inline const ::gz::msgs::Header& Fog::_internal_header() const {
285  return *header_;
286 }
287 inline const ::gz::msgs::Header& Fog::header() const {
288  const ::gz::msgs::Header* p = header_;
289  // @@protoc_insertion_point(field_get:gz.msgs.Fog.header)
290  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
292 }
293 inline ::gz::msgs::Header* Fog::release_header() {
294  // @@protoc_insertion_point(field_release:gz.msgs.Fog.header)
295 
296  ::gz::msgs::Header* temp = header_;
297  header_ = NULL;
298  return temp;
299 }
300 inline ::gz::msgs::Header* Fog::mutable_header() {
301 
302  if (header_ == NULL) {
303  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
304  header_ = p;
305  }
306  // @@protoc_insertion_point(field_mutable:gz.msgs.Fog.header)
307  return header_;
308 }
310  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
311  if (message_arena == NULL) {
312  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
313  }
314  if (header) {
315  ::google::protobuf::Arena* submessage_arena = NULL;
316  if (message_arena != submessage_arena) {
317  header = ::google::protobuf::internal::GetOwnedMessage(
318  message_arena, header, submessage_arena);
319  }
320 
321  } else {
322 
323  }
324  header_ = header;
325  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Fog.header)
326 }
327 
328 // .gz.msgs.Fog.FogType type = 2;
329 inline void Fog::clear_type() {
330  type_ = 0;
331 }
333  // @@protoc_insertion_point(field_get:gz.msgs.Fog.type)
334  return static_cast< ::gz::msgs::Fog_FogType >(type_);
335 }
336 inline void Fog::set_type(::gz::msgs::Fog_FogType value) {
337 
338  type_ = value;
339  // @@protoc_insertion_point(field_set:gz.msgs.Fog.type)
340 }
341 
342 // .gz.msgs.Color color = 3;
343 inline bool Fog::has_color() const {
344  return this != internal_default_instance() && color_ != NULL;
345 }
346 inline const ::gz::msgs::Color& Fog::_internal_color() const {
347  return *color_;
348 }
349 inline const ::gz::msgs::Color& Fog::color() const {
350  const ::gz::msgs::Color* p = color_;
351  // @@protoc_insertion_point(field_get:gz.msgs.Fog.color)
352  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Color*>(
354 }
355 inline ::gz::msgs::Color* Fog::release_color() {
356  // @@protoc_insertion_point(field_release:gz.msgs.Fog.color)
357 
358  ::gz::msgs::Color* temp = color_;
359  color_ = NULL;
360  return temp;
361 }
362 inline ::gz::msgs::Color* Fog::mutable_color() {
363 
364  if (color_ == NULL) {
365  auto* p = CreateMaybeMessage<::gz::msgs::Color>(GetArenaNoVirtual());
366  color_ = p;
367  }
368  // @@protoc_insertion_point(field_mutable:gz.msgs.Fog.color)
369  return color_;
370 }
372  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
373  if (message_arena == NULL) {
374  delete reinterpret_cast< ::google::protobuf::MessageLite*>(color_);
375  }
376  if (color) {
377  ::google::protobuf::Arena* submessage_arena = NULL;
378  if (message_arena != submessage_arena) {
379  color = ::google::protobuf::internal::GetOwnedMessage(
380  message_arena, color, submessage_arena);
381  }
382 
383  } else {
384 
385  }
386  color_ = color;
387  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Fog.color)
388 }
389 
390 // float density = 4;
391 inline void Fog::clear_density() {
392  density_ = 0;
393 }
394 inline float Fog::density() const {
395  // @@protoc_insertion_point(field_get:gz.msgs.Fog.density)
396  return density_;
397 }
398 inline void Fog::set_density(float value) {
399 
400  density_ = value;
401  // @@protoc_insertion_point(field_set:gz.msgs.Fog.density)
402 }
403 
404 // float start = 5;
405 inline void Fog::clear_start() {
406  start_ = 0;
407 }
408 inline float Fog::start() const {
409  // @@protoc_insertion_point(field_get:gz.msgs.Fog.start)
410  return start_;
411 }
412 inline void Fog::set_start(float value) {
413 
414  start_ = value;
415  // @@protoc_insertion_point(field_set:gz.msgs.Fog.start)
416 }
417 
418 // float end = 6;
419 inline void Fog::clear_end() {
420  end_ = 0;
421 }
422 inline float Fog::end() const {
423  // @@protoc_insertion_point(field_get:gz.msgs.Fog.end)
424  return end_;
425 }
426 inline void Fog::set_end(float value) {
427 
428  end_ = value;
429  // @@protoc_insertion_point(field_set:gz.msgs.Fog.end)
430 }
431 
432 #ifdef __GNUC__
433  #pragma GCC diagnostic pop
434 #endif // __GNUC__
435 
436 // @@protoc_insertion_point(namespace_scope)
437 
438 } // namespace msgs
439 } // namespace gz
440 
441 namespace google {
442 namespace protobuf {
443 
444 template <> struct is_proto_enum< ::gz::msgs::Fog_FogType> : ::std::true_type {};
445 template <>
446 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::Fog_FogType>() {
448 }
449 
450 } // namespace protobuf
451 } // namespace google
452 
453 // @@protoc_insertion_point(global_scope)
454 
455 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2ffog_2eproto