Ignition Msgs

API Reference

8.4.0
density.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/density.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fdensity_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fdensity_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/unknown_field_set.h>
31 #ifndef _MSC_VER
32 #pragma GCC system_header
33 #else
34 #pragma warning(push)
35 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
36 #endif
37 #ifdef __linux__
38 #include <sys/sysmacros.h>
39 #endif
40 #include <memory>
41 #include <ignition/msgs/Export.hh>
42 // @@protoc_insertion_point(includes)
43 
44 namespace ignition {
45 namespace msgs {
46 
47 // Internal implementation detail -- do not call these.
48 void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fdensity_2eproto();
51 
52 class Density;
53 
54 // ===================================================================
55 
56 class IGNITION_MSGS_VISIBLE Density : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Density) */ {
57  public:
58  Density();
59  virtual ~Density();
60 
61  Density(const Density& from);
62 
63  inline Density& operator=(const Density& from) {
64  CopyFrom(from);
65  return *this;
66  }
67 
68  static const ::google::protobuf::Descriptor* descriptor();
69  static const Density& default_instance();
70 
71  void Swap(Density* other);
72 
73  // implements Message ----------------------------------------------
74 
75  inline Density* New() const { return New(NULL); }
76 
77  Density* New(::google::protobuf::Arena* arena) const;
78  void CopyFrom(const ::google::protobuf::Message& from);
79  void MergeFrom(const ::google::protobuf::Message& from);
80  void CopyFrom(const Density& from);
81  void MergeFrom(const Density& from);
82  void Clear();
83  bool IsInitialized() const;
84 
85  int ByteSize() const;
86  bool MergePartialFromCodedStream(
87  ::google::protobuf::io::CodedInputStream* input);
88  void SerializeWithCachedSizes(
89  ::google::protobuf::io::CodedOutputStream* output) const;
90  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
91  bool deterministic, ::google::protobuf::uint8* output) const;
92  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
93  return InternalSerializeWithCachedSizesToArray(false, output);
94  }
95  int GetCachedSize() const { return _cached_size_; }
96  private:
97  void SharedCtor();
98  void SharedDtor();
99  void SetCachedSize(int size) const;
100  void InternalSwap(Density* other);
101  private:
102  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
103  return _internal_metadata_.arena();
104  }
105  inline void* MaybeArenaPtr() const {
106  return _internal_metadata_.raw_arena_ptr();
107  }
108  public:
109 
110  ::google::protobuf::Metadata GetMetadata() const;
111 
112  // nested types ----------------------------------------------------
113 
114  // accessors -------------------------------------------------------
115 
116  // optional .ignition.msgs.Header header = 1;
117  bool has_header() const;
118  void clear_header();
119  static const int kHeaderFieldNumber = 1;
120  const ::ignition::msgs::Header& header() const;
121  ::ignition::msgs::Header* mutable_header();
122  ::ignition::msgs::Header* release_header();
123  void set_allocated_header(::ignition::msgs::Header* header);
124 
125  // optional double density = 2;
126  void clear_density();
127  static const int kDensityFieldNumber = 2;
128  double density() const;
129  void set_density(double value);
130 
131  // @@protoc_insertion_point(class_scope:ignition.msgs.Density)
132  private:
133 
134  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
135  bool _is_default_instance_;
136  ::ignition::msgs::Header* header_;
137  double density_;
138  mutable int _cached_size_;
139  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fdensity_2eproto();
142 
143  void InitAsDefaultInstance();
144  static Density* default_instance_;
145 };
146 // ===================================================================
147 
148 
149 // ===================================================================
150 
151 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
152 // Density
153 
154 // optional .ignition.msgs.Header header = 1;
155 inline bool Density::has_header() const {
156  return !_is_default_instance_ && header_ != NULL;
157 }
158 inline void Density::clear_header() {
159  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
160  header_ = NULL;
161 }
162 inline const ::ignition::msgs::Header& Density::header() const {
163  // @@protoc_insertion_point(field_get:ignition.msgs.Density.header)
164  return header_ != NULL ? *header_ : *default_instance_->header_;
165 }
166 inline ::ignition::msgs::Header* Density::mutable_header() {
167 
168  if (header_ == NULL) {
169  header_ = new ::ignition::msgs::Header;
170  }
171  // @@protoc_insertion_point(field_mutable:ignition.msgs.Density.header)
172  return header_;
173 }
174 inline ::ignition::msgs::Header* Density::release_header() {
175  // @@protoc_insertion_point(field_release:ignition.msgs.Density.header)
176 
177  ::ignition::msgs::Header* temp = header_;
178  header_ = NULL;
179  return temp;
180 }
182  delete header_;
183  header_ = header;
184  if (header) {
185 
186  } else {
187 
188  }
189  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Density.header)
190 }
191 
192 // optional double density = 2;
193 inline void Density::clear_density() {
194  density_ = 0;
195 }
196 inline double Density::density() const {
197  // @@protoc_insertion_point(field_get:ignition.msgs.Density.density)
198  return density_;
199 }
200 inline void Density::set_density(double value) {
201 
202  density_ = value;
203  // @@protoc_insertion_point(field_set:ignition.msgs.Density.density)
204 }
205 
206 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
207 
212 // @@protoc_insertion_point(namespace_scope)
213 
214 } // namespace msgs
215 } // namespace ignition
216 
217 #ifdef _MSC_VER
218 #pragma warning(pop)
219 #endif
220 // @@protoc_insertion_point(global_scope)
221 
222 #endif // PROTOBUF_ignition_2fmsgs_2fdensity_2eproto__INCLUDED
void set_allocated_header(::ignition::msgs::Header *header)
Definition: density.pb.h:181
void protobuf_ShutdownFile_ignition_2fmsgs_2fdensity_2eproto()
Density & operator=(const Density &from)
Definition: density.pb.h:63
Density * New() const
Definition: density.pb.h:75
::ignition::msgs::Header * release_header()
Definition: density.pb.h:174
double density() const
Definition: density.pb.h:196
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: density.pb.h:92
std::unique_ptr< const Density > ConstDensityUniquePtr
Definition: density.pb.h:209
const ::ignition::msgs::Header & header() const
Definition: density.pb.h:162
bool has_header() const
Definition: density.pb.h:155
Definition: header.pb.h:161
void clear_header()
Definition: density.pb.h:158
std::shared_ptr< Density > DensitySharedPtr
Definition: density.pb.h:210
Definition: density.pb.h:56
std::unique_ptr< Density > DensityUniquePtr
Definition: density.pb.h:208
void clear_density()
Definition: density.pb.h:193
::ignition::msgs::Header * mutable_header()
Definition: density.pb.h:166
STL class.
void protobuf_AssignDesc_ignition_2fmsgs_2fdensity_2eproto()
std::shared_ptr< const Density > ConstDensitySharedPtr
Definition: density.pb.h:211
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fdensity_2eproto()
void set_density(double value)
Definition: density.pb.h:200
int GetCachedSize() const
Definition: density.pb.h:95