Ignition Msgs

API Reference

8.0.0~pre1
atmosphere.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/atmosphere.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fatmosphere_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fatmosphere_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/generated_enum_reflection.h>
30 #include <google/protobuf/unknown_field_set.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.
52 
53 class Atmosphere;
54 
59 };
60 IGNITION_MSGS_VISIBLE bool Atmosphere_Type_IsValid(int value);
63 const int Atmosphere_Type_Type_ARRAYSIZE = Atmosphere_Type_Type_MAX + 1;
64 
65 IGNITION_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* Atmosphere_Type_descriptor();
66 inline const ::std::string& Atmosphere_Type_Name(Atmosphere_Type value) {
67  return ::google::protobuf::internal::NameOfEnum(
69 }
71  const ::std::string& name, Atmosphere_Type* value) {
72  return ::google::protobuf::internal::ParseNamedEnum<Atmosphere_Type>(
73  Atmosphere_Type_descriptor(), name, value);
74 }
75 // ===================================================================
76 
77 class IGNITION_MSGS_VISIBLE Atmosphere : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Atmosphere) */ {
78  public:
79  Atmosphere();
80  virtual ~Atmosphere();
81 
82  Atmosphere(const Atmosphere& from);
83 
84  inline Atmosphere& operator=(const Atmosphere& from) {
85  CopyFrom(from);
86  return *this;
87  }
88 
89  static const ::google::protobuf::Descriptor* descriptor();
90  static const Atmosphere& default_instance();
91 
92  void Swap(Atmosphere* other);
93 
94  // implements Message ----------------------------------------------
95 
96  inline Atmosphere* New() const { return New(NULL); }
97 
98  Atmosphere* New(::google::protobuf::Arena* arena) const;
99  void CopyFrom(const ::google::protobuf::Message& from);
100  void MergeFrom(const ::google::protobuf::Message& from);
101  void CopyFrom(const Atmosphere& from);
102  void MergeFrom(const Atmosphere& from);
103  void Clear();
104  bool IsInitialized() const;
105 
106  int ByteSize() const;
107  bool MergePartialFromCodedStream(
108  ::google::protobuf::io::CodedInputStream* input);
109  void SerializeWithCachedSizes(
110  ::google::protobuf::io::CodedOutputStream* output) const;
111  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
112  bool deterministic, ::google::protobuf::uint8* output) const;
113  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
114  return InternalSerializeWithCachedSizesToArray(false, output);
115  }
116  int GetCachedSize() const { return _cached_size_; }
117  private:
118  void SharedCtor();
119  void SharedDtor();
120  void SetCachedSize(int size) const;
121  void InternalSwap(Atmosphere* other);
122  private:
123  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
124  return _internal_metadata_.arena();
125  }
126  inline void* MaybeArenaPtr() const {
127  return _internal_metadata_.raw_arena_ptr();
128  }
129  public:
130 
131  ::google::protobuf::Metadata GetMetadata() const;
132 
133  // nested types ----------------------------------------------------
134 
136  static const Type ADIABATIC =
138  static inline bool Type_IsValid(int value) {
139  return Atmosphere_Type_IsValid(value);
140  }
141  static const Type Type_MIN =
143  static const Type Type_MAX =
145  static const int Type_ARRAYSIZE =
147  static inline const ::google::protobuf::EnumDescriptor*
150  }
151  static inline const ::std::string& Type_Name(Type value) {
152  return Atmosphere_Type_Name(value);
153  }
154  static inline bool Type_Parse(const ::std::string& name,
155  Type* value) {
156  return Atmosphere_Type_Parse(name, value);
157  }
158 
159  // accessors -------------------------------------------------------
160 
161  // optional .ignition.msgs.Header header = 1;
162  bool has_header() const;
163  void clear_header();
164  static const int kHeaderFieldNumber = 1;
165  const ::ignition::msgs::Header& header() const;
166  ::ignition::msgs::Header* mutable_header();
167  ::ignition::msgs::Header* release_header();
168  void set_allocated_header(::ignition::msgs::Header* header);
169 
170  // optional .ignition.msgs.Atmosphere.Type type = 2;
171  void clear_type();
172  static const int kTypeFieldNumber = 2;
174  void set_type(::ignition::msgs::Atmosphere_Type value);
175 
176  // optional double temperature = 3;
177  void clear_temperature();
178  static const int kTemperatureFieldNumber = 3;
179  double temperature() const;
180  void set_temperature(double value);
181 
182  // optional double pressure = 4;
183  void clear_pressure();
184  static const int kPressureFieldNumber = 4;
185  double pressure() const;
186  void set_pressure(double value);
187 
188  // optional double mass_density = 5;
189  void clear_mass_density();
190  static const int kMassDensityFieldNumber = 5;
191  double mass_density() const;
192  void set_mass_density(double value);
193 
194  // optional bool enable_atmosphere = 6;
195  void clear_enable_atmosphere();
196  static const int kEnableAtmosphereFieldNumber = 6;
197  bool enable_atmosphere() const;
198  void set_enable_atmosphere(bool value);
199 
200  // @@protoc_insertion_point(class_scope:ignition.msgs.Atmosphere)
201  private:
202 
203  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
204  bool _is_default_instance_;
205  ::ignition::msgs::Header* header_;
206  double temperature_;
207  double pressure_;
208  int type_;
209  bool enable_atmosphere_;
210  double mass_density_;
211  mutable int _cached_size_;
212  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fatmosphere_2eproto();
215 
216  void InitAsDefaultInstance();
217  static Atmosphere* default_instance_;
218 };
219 // ===================================================================
220 
221 
222 // ===================================================================
223 
224 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
225 // Atmosphere
226 
227 // optional .ignition.msgs.Header header = 1;
228 inline bool Atmosphere::has_header() const {
229  return !_is_default_instance_ && header_ != NULL;
230 }
232  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
233  header_ = NULL;
234 }
235 inline const ::ignition::msgs::Header& Atmosphere::header() const {
236  // @@protoc_insertion_point(field_get:ignition.msgs.Atmosphere.header)
237  return header_ != NULL ? *header_ : *default_instance_->header_;
238 }
239 inline ::ignition::msgs::Header* Atmosphere::mutable_header() {
240 
241  if (header_ == NULL) {
242  header_ = new ::ignition::msgs::Header;
243  }
244  // @@protoc_insertion_point(field_mutable:ignition.msgs.Atmosphere.header)
245  return header_;
246 }
247 inline ::ignition::msgs::Header* Atmosphere::release_header() {
248  // @@protoc_insertion_point(field_release:ignition.msgs.Atmosphere.header)
249 
250  ::ignition::msgs::Header* temp = header_;
251  header_ = NULL;
252  return temp;
253 }
255  delete header_;
256  header_ = header;
257  if (header) {
258 
259  } else {
260 
261  }
262  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Atmosphere.header)
263 }
264 
265 // optional .ignition.msgs.Atmosphere.Type type = 2;
266 inline void Atmosphere::clear_type() {
267  type_ = 0;
268 }
270  // @@protoc_insertion_point(field_get:ignition.msgs.Atmosphere.type)
271  return static_cast< ::ignition::msgs::Atmosphere_Type >(type_);
272 }
274 
275  type_ = value;
276  // @@protoc_insertion_point(field_set:ignition.msgs.Atmosphere.type)
277 }
278 
279 // optional double temperature = 3;
281  temperature_ = 0;
282 }
283 inline double Atmosphere::temperature() const {
284  // @@protoc_insertion_point(field_get:ignition.msgs.Atmosphere.temperature)
285  return temperature_;
286 }
287 inline void Atmosphere::set_temperature(double value) {
288 
289  temperature_ = value;
290  // @@protoc_insertion_point(field_set:ignition.msgs.Atmosphere.temperature)
291 }
292 
293 // optional double pressure = 4;
295  pressure_ = 0;
296 }
297 inline double Atmosphere::pressure() const {
298  // @@protoc_insertion_point(field_get:ignition.msgs.Atmosphere.pressure)
299  return pressure_;
300 }
301 inline void Atmosphere::set_pressure(double value) {
302 
303  pressure_ = value;
304  // @@protoc_insertion_point(field_set:ignition.msgs.Atmosphere.pressure)
305 }
306 
307 // optional double mass_density = 5;
309  mass_density_ = 0;
310 }
311 inline double Atmosphere::mass_density() const {
312  // @@protoc_insertion_point(field_get:ignition.msgs.Atmosphere.mass_density)
313  return mass_density_;
314 }
315 inline void Atmosphere::set_mass_density(double value) {
316 
317  mass_density_ = value;
318  // @@protoc_insertion_point(field_set:ignition.msgs.Atmosphere.mass_density)
319 }
320 
321 // optional bool enable_atmosphere = 6;
323  enable_atmosphere_ = false;
324 }
325 inline bool Atmosphere::enable_atmosphere() const {
326  // @@protoc_insertion_point(field_get:ignition.msgs.Atmosphere.enable_atmosphere)
327  return enable_atmosphere_;
328 }
329 inline void Atmosphere::set_enable_atmosphere(bool value) {
330 
331  enable_atmosphere_ = value;
332  // @@protoc_insertion_point(field_set:ignition.msgs.Atmosphere.enable_atmosphere)
333 }
334 
335 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
336 
341 // @@protoc_insertion_point(namespace_scope)
342 
343 } // namespace msgs
344 } // namespace ignition
345 
346 #ifndef SWIG
347 namespace google {
348 namespace protobuf {
349 
350 template <> struct is_proto_enum< ::ignition::msgs::Atmosphere_Type> : ::google::protobuf::internal::true_type {};
351 template <>
352 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Atmosphere_Type>() {
354 }
355 
356 } // namespace protobuf
357 } // namespace google
358 #endif // SWIG
359 
360 #ifdef _MSC_VER
361 #pragma warning(pop)
362 #endif
363 // @@protoc_insertion_point(global_scope)
364 
365 #endif // PROTOBUF_ignition_2fmsgs_2fatmosphere_2eproto__INCLUDED
void clear_pressure()
Definition: atmosphere.pb.h:294
Atmosphere * New() const
Definition: atmosphere.pb.h:96
static bool Type_Parse(const ::std::string &name, Type *value)
Definition: atmosphere.pb.h:154
std::shared_ptr< const Atmosphere > ConstAtmosphereSharedPtr
Definition: atmosphere.pb.h:340
Atmosphere_Type
Definition: atmosphere.pb.h:55
void clear_type()
Definition: atmosphere.pb.h:266
double mass_density() const
Definition: atmosphere.pb.h:311
::ignition::msgs::Header * release_header()
Definition: atmosphere.pb.h:247
void clear_temperature()
Definition: atmosphere.pb.h:280
bool Atmosphere_Type_Parse(const ::std::string &name, Atmosphere_Type *value)
Definition: atmosphere.pb.h:70
const int Atmosphere_Type_Type_ARRAYSIZE
Definition: atmosphere.pb.h:63
void set_enable_atmosphere(bool value)
Definition: atmosphere.pb.h:329
static bool Type_IsValid(int value)
Definition: atmosphere.pb.h:138
double pressure() const
Definition: atmosphere.pb.h:297
Atmosphere & operator=(const Atmosphere &from)
Definition: atmosphere.pb.h:84
void clear_header()
Definition: atmosphere.pb.h:231
std::unique_ptr< const Atmosphere > ConstAtmosphereUniquePtr
Definition: atmosphere.pb.h:338
Definition: atmosphere.pb.h:56
IGNITION_MSGS_VISIBLEconst ::google::protobuf::EnumDescriptor * Atmosphere_Type_descriptor()
double temperature() const
Definition: atmosphere.pb.h:283
void set_pressure(double value)
Definition: atmosphere.pb.h:301
void protobuf_AssignDesc_ignition_2fmsgs_2fatmosphere_2eproto()
static const ::std::string & Type_Name(Type value)
Definition: atmosphere.pb.h:151
void set_allocated_header(::ignition::msgs::Header *header)
Definition: atmosphere.pb.h:254
const ::std::string & Atmosphere_Type_Name(Atmosphere_Type value)
Definition: atmosphere.pb.h:66
int GetCachedSize() const
Definition: atmosphere.pb.h:116
::ignition::msgs::Header * mutable_header()
Definition: atmosphere.pb.h:239
Definition: header.pb.h:161
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fatmosphere_2eproto()
void set_type(::ignition::msgs::Atmosphere_Type value)
Definition: atmosphere.pb.h:273
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: atmosphere.pb.h:113
static const ::google::protobuf::EnumDescriptor * Type_descriptor()
Definition: atmosphere.pb.h:148
Definition: atmosphere.pb.h:77
Atmosphere_Type Type
Definition: atmosphere.pb.h:135
void set_mass_density(double value)
Definition: atmosphere.pb.h:315
STL class.
Definition: any.pb.h:839
const Atmosphere_Type Atmosphere_Type_Type_MIN
Definition: atmosphere.pb.h:61
void protobuf_ShutdownFile_ignition_2fmsgs_2fatmosphere_2eproto()
const Atmosphere_Type Atmosphere_Type_Type_MAX
Definition: atmosphere.pb.h:62
bool has_header() const
Definition: atmosphere.pb.h:228
::ignition::msgs::Atmosphere_Type type() const
Definition: atmosphere.pb.h:269
void clear_enable_atmosphere()
Definition: atmosphere.pb.h:322
const ::ignition::msgs::Header & header() const
Definition: atmosphere.pb.h:235
IGNITION_MSGS_VISIBLE bool Atmosphere_Type_IsValid(int value)
bool enable_atmosphere() const
Definition: atmosphere.pb.h:325
void set_temperature(double value)
Definition: atmosphere.pb.h:287
std::unique_ptr< Atmosphere > AtmosphereUniquePtr
Definition: atmosphere.pb.h:337
std::shared_ptr< Atmosphere > AtmosphereSharedPtr
Definition: atmosphere.pb.h:339
void clear_mass_density()
Definition: atmosphere.pb.h:308