Ignition Msgs

API Reference

8.0.0~pre1
fog.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/fog.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2ffog_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2ffog_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>
31 #include "ignition/msgs/color.pb.h"
33 #ifndef _MSC_VER
34 #pragma GCC system_header
35 #else
36 #pragma warning(push)
37 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
38 #endif
39 #ifdef __linux__
40 #include <sys/sysmacros.h>
41 #endif
42 #include <memory>
43 #include <ignition/msgs/Export.hh>
44 // @@protoc_insertion_point(includes)
45 
46 namespace ignition {
47 namespace msgs {
48 
49 // Internal implementation detail -- do not call these.
50 void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2ffog_2eproto();
53 
54 class Fog;
55 
63 };
64 IGNITION_MSGS_VISIBLE bool Fog_FogType_IsValid(int value);
67 const int Fog_FogType_FogType_ARRAYSIZE = Fog_FogType_FogType_MAX + 1;
68 
69 IGNITION_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* Fog_FogType_descriptor();
70 inline const ::std::string& Fog_FogType_Name(Fog_FogType value) {
71  return ::google::protobuf::internal::NameOfEnum(
72  Fog_FogType_descriptor(), value);
73 }
74 inline bool Fog_FogType_Parse(
75  const ::std::string& name, Fog_FogType* value) {
76  return ::google::protobuf::internal::ParseNamedEnum<Fog_FogType>(
77  Fog_FogType_descriptor(), name, value);
78 }
79 // ===================================================================
80 
81 class IGNITION_MSGS_VISIBLE Fog : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Fog) */ {
82  public:
83  Fog();
84  virtual ~Fog();
85 
86  Fog(const Fog& from);
87 
88  inline Fog& operator=(const Fog& from) {
89  CopyFrom(from);
90  return *this;
91  }
92 
93  static const ::google::protobuf::Descriptor* descriptor();
94  static const Fog& default_instance();
95 
96  void Swap(Fog* other);
97 
98  // implements Message ----------------------------------------------
99 
100  inline Fog* New() const { return New(NULL); }
101 
102  Fog* New(::google::protobuf::Arena* arena) const;
103  void CopyFrom(const ::google::protobuf::Message& from);
104  void MergeFrom(const ::google::protobuf::Message& from);
105  void CopyFrom(const Fog& from);
106  void MergeFrom(const Fog& from);
107  void Clear();
108  bool IsInitialized() const;
109 
110  int ByteSize() const;
111  bool MergePartialFromCodedStream(
112  ::google::protobuf::io::CodedInputStream* input);
113  void SerializeWithCachedSizes(
114  ::google::protobuf::io::CodedOutputStream* output) const;
115  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
116  bool deterministic, ::google::protobuf::uint8* output) const;
117  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
118  return InternalSerializeWithCachedSizesToArray(false, output);
119  }
120  int GetCachedSize() const { return _cached_size_; }
121  private:
122  void SharedCtor();
123  void SharedDtor();
124  void SetCachedSize(int size) const;
125  void InternalSwap(Fog* other);
126  private:
127  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
128  return _internal_metadata_.arena();
129  }
130  inline void* MaybeArenaPtr() const {
131  return _internal_metadata_.raw_arena_ptr();
132  }
133  public:
134 
135  ::google::protobuf::Metadata GetMetadata() const;
136 
137  // nested types ----------------------------------------------------
138 
140  static const FogType NONE =
142  static const FogType LINEAR =
144  static const FogType EXPONENTIAL =
146  static const FogType EXPONENTIAL2 =
148  static inline bool FogType_IsValid(int value) {
149  return Fog_FogType_IsValid(value);
150  }
151  static const FogType FogType_MIN =
153  static const FogType FogType_MAX =
155  static const int FogType_ARRAYSIZE =
157  static inline const ::google::protobuf::EnumDescriptor*
159  return Fog_FogType_descriptor();
160  }
161  static inline const ::std::string& FogType_Name(FogType value) {
162  return Fog_FogType_Name(value);
163  }
164  static inline bool FogType_Parse(const ::std::string& name,
165  FogType* value) {
166  return Fog_FogType_Parse(name, value);
167  }
168 
169  // accessors -------------------------------------------------------
170 
171  // optional .ignition.msgs.Header header = 1;
172  bool has_header() const;
173  void clear_header();
174  static const int kHeaderFieldNumber = 1;
175  const ::ignition::msgs::Header& header() const;
176  ::ignition::msgs::Header* mutable_header();
177  ::ignition::msgs::Header* release_header();
178  void set_allocated_header(::ignition::msgs::Header* header);
179 
180  // optional .ignition.msgs.Fog.FogType type = 2;
181  void clear_type();
182  static const int kTypeFieldNumber = 2;
183  ::ignition::msgs::Fog_FogType type() const;
184  void set_type(::ignition::msgs::Fog_FogType value);
185 
186  // optional .ignition.msgs.Color color = 3;
187  bool has_color() const;
188  void clear_color();
189  static const int kColorFieldNumber = 3;
190  const ::ignition::msgs::Color& color() const;
191  ::ignition::msgs::Color* mutable_color();
192  ::ignition::msgs::Color* release_color();
193  void set_allocated_color(::ignition::msgs::Color* color);
194 
195  // optional float density = 4;
196  void clear_density();
197  static const int kDensityFieldNumber = 4;
198  float density() const;
199  void set_density(float value);
200 
201  // optional float start = 5;
202  void clear_start();
203  static const int kStartFieldNumber = 5;
204  float start() const;
205  void set_start(float value);
206 
207  // optional float end = 6;
208  void clear_end();
209  static const int kEndFieldNumber = 6;
210  float end() const;
211  void set_end(float value);
212 
213  // @@protoc_insertion_point(class_scope:ignition.msgs.Fog)
214  private:
215 
216  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
217  bool _is_default_instance_;
218  ::ignition::msgs::Header* header_;
219  ::ignition::msgs::Color* color_;
220  int type_;
221  float density_;
222  float start_;
223  float end_;
224  mutable int _cached_size_;
225  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2ffog_2eproto();
228 
229  void InitAsDefaultInstance();
230  static Fog* default_instance_;
231 };
232 // ===================================================================
233 
234 
235 // ===================================================================
236 
237 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
238 // Fog
239 
240 // optional .ignition.msgs.Header header = 1;
241 inline bool Fog::has_header() const {
242  return !_is_default_instance_ && header_ != NULL;
243 }
244 inline void Fog::clear_header() {
245  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
246  header_ = NULL;
247 }
248 inline const ::ignition::msgs::Header& Fog::header() const {
249  // @@protoc_insertion_point(field_get:ignition.msgs.Fog.header)
250  return header_ != NULL ? *header_ : *default_instance_->header_;
251 }
252 inline ::ignition::msgs::Header* Fog::mutable_header() {
253 
254  if (header_ == NULL) {
255  header_ = new ::ignition::msgs::Header;
256  }
257  // @@protoc_insertion_point(field_mutable:ignition.msgs.Fog.header)
258  return header_;
259 }
260 inline ::ignition::msgs::Header* Fog::release_header() {
261  // @@protoc_insertion_point(field_release:ignition.msgs.Fog.header)
262 
263  ::ignition::msgs::Header* temp = header_;
264  header_ = NULL;
265  return temp;
266 }
268  delete header_;
269  header_ = header;
270  if (header) {
271 
272  } else {
273 
274  }
275  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Fog.header)
276 }
277 
278 // optional .ignition.msgs.Fog.FogType type = 2;
279 inline void Fog::clear_type() {
280  type_ = 0;
281 }
283  // @@protoc_insertion_point(field_get:ignition.msgs.Fog.type)
284  return static_cast< ::ignition::msgs::Fog_FogType >(type_);
285 }
287 
288  type_ = value;
289  // @@protoc_insertion_point(field_set:ignition.msgs.Fog.type)
290 }
291 
292 // optional .ignition.msgs.Color color = 3;
293 inline bool Fog::has_color() const {
294  return !_is_default_instance_ && color_ != NULL;
295 }
296 inline void Fog::clear_color() {
297  if (GetArenaNoVirtual() == NULL && color_ != NULL) delete color_;
298  color_ = NULL;
299 }
300 inline const ::ignition::msgs::Color& Fog::color() const {
301  // @@protoc_insertion_point(field_get:ignition.msgs.Fog.color)
302  return color_ != NULL ? *color_ : *default_instance_->color_;
303 }
304 inline ::ignition::msgs::Color* Fog::mutable_color() {
305 
306  if (color_ == NULL) {
307  color_ = new ::ignition::msgs::Color;
308  }
309  // @@protoc_insertion_point(field_mutable:ignition.msgs.Fog.color)
310  return color_;
311 }
312 inline ::ignition::msgs::Color* Fog::release_color() {
313  // @@protoc_insertion_point(field_release:ignition.msgs.Fog.color)
314 
315  ::ignition::msgs::Color* temp = color_;
316  color_ = NULL;
317  return temp;
318 }
320  delete color_;
321  color_ = color;
322  if (color) {
323 
324  } else {
325 
326  }
327  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Fog.color)
328 }
329 
330 // optional float density = 4;
331 inline void Fog::clear_density() {
332  density_ = 0;
333 }
334 inline float Fog::density() const {
335  // @@protoc_insertion_point(field_get:ignition.msgs.Fog.density)
336  return density_;
337 }
338 inline void Fog::set_density(float value) {
339 
340  density_ = value;
341  // @@protoc_insertion_point(field_set:ignition.msgs.Fog.density)
342 }
343 
344 // optional float start = 5;
345 inline void Fog::clear_start() {
346  start_ = 0;
347 }
348 inline float Fog::start() const {
349  // @@protoc_insertion_point(field_get:ignition.msgs.Fog.start)
350  return start_;
351 }
352 inline void Fog::set_start(float value) {
353 
354  start_ = value;
355  // @@protoc_insertion_point(field_set:ignition.msgs.Fog.start)
356 }
357 
358 // optional float end = 6;
359 inline void Fog::clear_end() {
360  end_ = 0;
361 }
362 inline float Fog::end() const {
363  // @@protoc_insertion_point(field_get:ignition.msgs.Fog.end)
364  return end_;
365 }
366 inline void Fog::set_end(float value) {
367 
368  end_ = value;
369  // @@protoc_insertion_point(field_set:ignition.msgs.Fog.end)
370 }
371 
372 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
373 
378 // @@protoc_insertion_point(namespace_scope)
379 
380 } // namespace msgs
381 } // namespace ignition
382 
383 #ifndef SWIG
384 namespace google {
385 namespace protobuf {
386 
387 template <> struct is_proto_enum< ::ignition::msgs::Fog_FogType> : ::google::protobuf::internal::true_type {};
388 template <>
389 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Fog_FogType>() {
391 }
392 
393 } // namespace protobuf
394 } // namespace google
395 #endif // SWIG
396 
397 #ifdef _MSC_VER
398 #pragma warning(pop)
399 #endif
400 // @@protoc_insertion_point(global_scope)
401 
402 #endif // PROTOBUF_ignition_2fmsgs_2ffog_2eproto__INCLUDED
const ::ignition::msgs::Color & color() const
Definition: fog.pb.h:300
const int Fog_FogType_FogType_ARRAYSIZE
Definition: fog.pb.h:67
void set_allocated_color(::ignition::msgs::Color *color)
Definition: fog.pb.h:319
bool has_header() const
Definition: fog.pb.h:241
std::unique_ptr< Fog > FogUniquePtr
Definition: fog.pb.h:374
void protobuf_ShutdownFile_ignition_2fmsgs_2ffog_2eproto()
::ignition::msgs::Header * release_header()
Definition: fog.pb.h:260
void clear_header()
Definition: fog.pb.h:244
void protobuf_AssignDesc_ignition_2fmsgs_2ffog_2eproto()
float start() const
Definition: fog.pb.h:348
Definition: fog.pb.h:57
void clear_end()
Definition: fog.pb.h:359
::ignition::msgs::Color * mutable_color()
Definition: fog.pb.h:304
static bool FogType_IsValid(int value)
Definition: fog.pb.h:148
void set_density(float value)
Definition: fog.pb.h:338
void set_type(::ignition::msgs::Fog_FogType value)
Definition: fog.pb.h:286
Definition: header.pb.h:161
Definition: fog.pb.h:81
::ignition::msgs::Fog_FogType type() const
Definition: fog.pb.h:282
static const ::google::protobuf::EnumDescriptor * FogType_descriptor()
Definition: fog.pb.h:158
const Fog_FogType Fog_FogType_FogType_MAX
Definition: fog.pb.h:66
void set_allocated_header(::ignition::msgs::Header *header)
Definition: fog.pb.h:267
const ::std::string & Fog_FogType_Name(Fog_FogType value)
Definition: fog.pb.h:70
void set_end(float value)
Definition: fog.pb.h:366
::ignition::msgs::Color * release_color()
Definition: fog.pb.h:312
const Fog_FogType Fog_FogType_FogType_MIN
Definition: fog.pb.h:65
Fog * New() const
Definition: fog.pb.h:100
IGNITION_MSGS_VISIBLEconst ::google::protobuf::EnumDescriptor * Fog_FogType_descriptor()
IGNITION_MSGS_VISIBLE bool Fog_FogType_IsValid(int value)
void clear_start()
Definition: fog.pb.h:345
Definition: fog.pb.h:58
Definition: color.pb.h:56
int GetCachedSize() const
Definition: fog.pb.h:120
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: fog.pb.h:117
void clear_density()
Definition: fog.pb.h:331
const ::ignition::msgs::Header & header() const
Definition: fog.pb.h:248
STL class.
void set_start(float value)
Definition: fog.pb.h:352
void clear_type()
Definition: fog.pb.h:279
bool Fog_FogType_Parse(const ::std::string &name, Fog_FogType *value)
Definition: fog.pb.h:74
float end() const
Definition: fog.pb.h:362
bool has_color() const
Definition: fog.pb.h:293
void clear_color()
Definition: fog.pb.h:296
Fog_FogType FogType
Definition: fog.pb.h:139
Definition: any.pb.h:839
std::shared_ptr< const Fog > ConstFogSharedPtr
Definition: fog.pb.h:377
std::shared_ptr< Fog > FogSharedPtr
Definition: fog.pb.h:376
static bool FogType_Parse(const ::std::string &name, FogType *value)
Definition: fog.pb.h:164
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2ffog_2eproto()
static const ::std::string & FogType_Name(FogType value)
Definition: fog.pb.h:161
float density() const
Definition: fog.pb.h:334
std::unique_ptr< const Fog > ConstFogUniquePtr
Definition: fog.pb.h:375
Fog_FogType
Definition: fog.pb.h:56
::ignition::msgs::Header * mutable_header()
Definition: fog.pb.h:252
Fog & operator=(const Fog &from)
Definition: fog.pb.h:88