Gazebo Msgs

API Reference

9.5.0
atmosphere.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/atmosphere.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fatmosphere_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fatmosphere_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/header.pb.h"
35 // @@protoc_insertion_point(includes)
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fatmosphere_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_2fatmosphere_2eproto
50 namespace gz {
51 namespace msgs {
52 class Atmosphere;
53 class AtmosphereDefaultTypeInternal;
54 GZ_MSGS_VISIBLE extern AtmosphereDefaultTypeInternal _Atmosphere_default_instance_;
55 } // namespace msgs
56 } // namespace gz
57 namespace google {
58 namespace protobuf {
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::Atmosphere* Arena::CreateMaybeMessage<::gz::msgs::Atmosphere>(Arena*);
60 } // namespace protobuf
61 } // namespace google
62 namespace gz {
63 namespace msgs {
64 
69 };
70 GZ_MSGS_VISIBLE bool Atmosphere_Type_IsValid(int value);
74 
75 GZ_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* Atmosphere_Type_descriptor();
76 inline const ::std::string& Atmosphere_Type_Name(Atmosphere_Type value) {
77  return ::google::protobuf::internal::NameOfEnum(
79 }
81  const ::std::string& name, Atmosphere_Type* value) {
82  return ::google::protobuf::internal::ParseNamedEnum<Atmosphere_Type>(
83  Atmosphere_Type_descriptor(), name, value);
84 }
85 // ===================================================================
86 
87 class GZ_MSGS_VISIBLE Atmosphere : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Atmosphere) */ {
88  public:
89  Atmosphere();
90  virtual ~Atmosphere();
91 
92  Atmosphere(const Atmosphere& from);
93 
94  inline Atmosphere& operator=(const Atmosphere& from) {
95  CopyFrom(from);
96  return *this;
97  }
98  #if LANG_CXX11
99  Atmosphere(Atmosphere&& from) noexcept
100  : Atmosphere() {
101  *this = ::std::move(from);
102  }
103 
104  inline Atmosphere& operator=(Atmosphere&& from) noexcept {
105  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
106  if (this != &from) InternalSwap(&from);
107  } else {
108  CopyFrom(from);
109  }
110  return *this;
111  }
112  #endif
113  static const ::google::protobuf::Descriptor* descriptor();
114  static const Atmosphere& default_instance();
115 
116  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
117  static inline const Atmosphere* internal_default_instance() {
118  return reinterpret_cast<const Atmosphere*>(
120  }
121  static constexpr int kIndexInFileMessages =
122  0;
123 
124  void Swap(Atmosphere* other);
125  friend void swap(Atmosphere& a, Atmosphere& b) {
126  a.Swap(&b);
127  }
128 
129  // implements Message ----------------------------------------------
130 
131  inline Atmosphere* New() const final {
132  return CreateMaybeMessage<Atmosphere>(NULL);
133  }
134 
135  Atmosphere* New(::google::protobuf::Arena* arena) const final {
136  return CreateMaybeMessage<Atmosphere>(arena);
137  }
138  void CopyFrom(const ::google::protobuf::Message& from) final;
139  void MergeFrom(const ::google::protobuf::Message& from) final;
140  void CopyFrom(const Atmosphere& from);
141  void MergeFrom(const Atmosphere& from);
142  void Clear() final;
143  bool IsInitialized() const final;
144 
145  size_t ByteSizeLong() const final;
146  bool MergePartialFromCodedStream(
147  ::google::protobuf::io::CodedInputStream* input) final;
148  void SerializeWithCachedSizes(
149  ::google::protobuf::io::CodedOutputStream* output) const final;
150  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
151  bool deterministic, ::google::protobuf::uint8* target) const final;
152  int GetCachedSize() const final { return _cached_size_.Get(); }
153 
154  private:
155  void SharedCtor();
156  void SharedDtor();
157  void SetCachedSize(int size) const final;
158  void InternalSwap(Atmosphere* other);
159  private:
160  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
161  return NULL;
162  }
163  inline void* MaybeArenaPtr() const {
164  return NULL;
165  }
166  public:
167 
168  ::google::protobuf::Metadata GetMetadata() const final;
169 
170  // nested types ----------------------------------------------------
171 
173  static const Type ADIABATIC =
175  static inline bool Type_IsValid(int value) {
176  return Atmosphere_Type_IsValid(value);
177  }
178  static const Type Type_MIN =
180  static const Type Type_MAX =
182  static const int Type_ARRAYSIZE =
184  static inline const ::google::protobuf::EnumDescriptor*
187  }
188  static inline const ::std::string& Type_Name(Type value) {
189  return Atmosphere_Type_Name(value);
190  }
191  static inline bool Type_Parse(const ::std::string& name,
192  Type* value) {
193  return Atmosphere_Type_Parse(name, value);
194  }
195 
196  // accessors -------------------------------------------------------
197 
198  // .gz.msgs.Header header = 1;
199  bool has_header() const;
200  void clear_header();
201  static const int kHeaderFieldNumber = 1;
202  private:
203  const ::gz::msgs::Header& _internal_header() const;
204  public:
205  const ::gz::msgs::Header& header() const;
206  ::gz::msgs::Header* release_header();
207  ::gz::msgs::Header* mutable_header();
208  void set_allocated_header(::gz::msgs::Header* header);
209 
210  // double temperature = 3;
211  void clear_temperature();
212  static const int kTemperatureFieldNumber = 3;
213  double temperature() const;
214  void set_temperature(double value);
215 
216  // double pressure = 4;
217  void clear_pressure();
218  static const int kPressureFieldNumber = 4;
219  double pressure() const;
220  void set_pressure(double value);
221 
222  // .gz.msgs.Atmosphere.Type type = 2;
223  void clear_type();
224  static const int kTypeFieldNumber = 2;
225  ::gz::msgs::Atmosphere_Type type() const;
226  void set_type(::gz::msgs::Atmosphere_Type value);
227 
228  // bool enable_atmosphere = 6;
229  void clear_enable_atmosphere();
230  static const int kEnableAtmosphereFieldNumber = 6;
231  bool enable_atmosphere() const;
232  void set_enable_atmosphere(bool value);
233 
234  // double mass_density = 5;
235  void clear_mass_density();
236  static const int kMassDensityFieldNumber = 5;
237  double mass_density() const;
238  void set_mass_density(double value);
239 
240  // @@protoc_insertion_point(class_scope:gz.msgs.Atmosphere)
241  private:
242 
243  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
244  ::gz::msgs::Header* header_;
245  double temperature_;
246  double pressure_;
247  int type_;
248  bool enable_atmosphere_;
249  double mass_density_;
250  mutable ::google::protobuf::internal::CachedSize _cached_size_;
251  friend struct ::protobuf_gz_2fmsgs_2fatmosphere_2eproto::TableStruct;
252 };
253 // ===================================================================
254 
255 
256 // ===================================================================
257 
258 #ifdef __GNUC__
259  #pragma GCC diagnostic push
260  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
261 #endif // __GNUC__
262 // Atmosphere
263 
264 // .gz.msgs.Header header = 1;
265 inline bool Atmosphere::has_header() const {
266  return this != internal_default_instance() && header_ != NULL;
267 }
268 inline const ::gz::msgs::Header& Atmosphere::_internal_header() const {
269  return *header_;
270 }
271 inline const ::gz::msgs::Header& Atmosphere::header() const {
272  const ::gz::msgs::Header* p = header_;
273  // @@protoc_insertion_point(field_get:gz.msgs.Atmosphere.header)
274  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
276 }
277 inline ::gz::msgs::Header* Atmosphere::release_header() {
278  // @@protoc_insertion_point(field_release:gz.msgs.Atmosphere.header)
279 
280  ::gz::msgs::Header* temp = header_;
281  header_ = NULL;
282  return temp;
283 }
284 inline ::gz::msgs::Header* Atmosphere::mutable_header() {
285 
286  if (header_ == NULL) {
287  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
288  header_ = p;
289  }
290  // @@protoc_insertion_point(field_mutable:gz.msgs.Atmosphere.header)
291  return header_;
292 }
294  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
295  if (message_arena == NULL) {
296  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
297  }
298  if (header) {
299  ::google::protobuf::Arena* submessage_arena = NULL;
300  if (message_arena != submessage_arena) {
301  header = ::google::protobuf::internal::GetOwnedMessage(
302  message_arena, header, submessage_arena);
303  }
304 
305  } else {
306 
307  }
308  header_ = header;
309  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Atmosphere.header)
310 }
311 
312 // .gz.msgs.Atmosphere.Type type = 2;
313 inline void Atmosphere::clear_type() {
314  type_ = 0;
315 }
317  // @@protoc_insertion_point(field_get:gz.msgs.Atmosphere.type)
318  return static_cast< ::gz::msgs::Atmosphere_Type >(type_);
319 }
321 
322  type_ = value;
323  // @@protoc_insertion_point(field_set:gz.msgs.Atmosphere.type)
324 }
325 
326 // double temperature = 3;
328  temperature_ = 0;
329 }
330 inline double Atmosphere::temperature() const {
331  // @@protoc_insertion_point(field_get:gz.msgs.Atmosphere.temperature)
332  return temperature_;
333 }
334 inline void Atmosphere::set_temperature(double value) {
335 
336  temperature_ = value;
337  // @@protoc_insertion_point(field_set:gz.msgs.Atmosphere.temperature)
338 }
339 
340 // double pressure = 4;
342  pressure_ = 0;
343 }
344 inline double Atmosphere::pressure() const {
345  // @@protoc_insertion_point(field_get:gz.msgs.Atmosphere.pressure)
346  return pressure_;
347 }
348 inline void Atmosphere::set_pressure(double value) {
349 
350  pressure_ = value;
351  // @@protoc_insertion_point(field_set:gz.msgs.Atmosphere.pressure)
352 }
353 
354 // double mass_density = 5;
356  mass_density_ = 0;
357 }
358 inline double Atmosphere::mass_density() const {
359  // @@protoc_insertion_point(field_get:gz.msgs.Atmosphere.mass_density)
360  return mass_density_;
361 }
362 inline void Atmosphere::set_mass_density(double value) {
363 
364  mass_density_ = value;
365  // @@protoc_insertion_point(field_set:gz.msgs.Atmosphere.mass_density)
366 }
367 
368 // bool enable_atmosphere = 6;
370  enable_atmosphere_ = false;
371 }
372 inline bool Atmosphere::enable_atmosphere() const {
373  // @@protoc_insertion_point(field_get:gz.msgs.Atmosphere.enable_atmosphere)
374  return enable_atmosphere_;
375 }
376 inline void Atmosphere::set_enable_atmosphere(bool value) {
377 
378  enable_atmosphere_ = value;
379  // @@protoc_insertion_point(field_set:gz.msgs.Atmosphere.enable_atmosphere)
380 }
381 
382 #ifdef __GNUC__
383  #pragma GCC diagnostic pop
384 #endif // __GNUC__
385 
386 // @@protoc_insertion_point(namespace_scope)
387 
388 } // namespace msgs
389 } // namespace gz
390 
391 namespace google {
392 namespace protobuf {
393 
394 template <> struct is_proto_enum< ::gz::msgs::Atmosphere_Type> : ::std::true_type {};
395 template <>
396 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::Atmosphere_Type>() {
398 }
399 
400 } // namespace protobuf
401 } // namespace google
402 
403 // @@protoc_insertion_point(global_scope)
404 
405 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fatmosphere_2eproto