Ignition Msgs

API Reference

8.2.0
navsat.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/navsat.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fnavsat_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fnavsat_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_2fnavsat_2eproto();
51 
52 class NavSat;
53 
54 // ===================================================================
55 
56 class IGNITION_MSGS_VISIBLE NavSat : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.NavSat) */ {
57  public:
58  NavSat();
59  virtual ~NavSat();
60 
61  NavSat(const NavSat& from);
62 
63  inline NavSat& operator=(const NavSat& from) {
64  CopyFrom(from);
65  return *this;
66  }
67 
68  static const ::google::protobuf::Descriptor* descriptor();
69  static const NavSat& default_instance();
70 
71  void Swap(NavSat* other);
72 
73  // implements Message ----------------------------------------------
74 
75  inline NavSat* New() const { return New(NULL); }
76 
77  NavSat* 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 NavSat& from);
81  void MergeFrom(const NavSat& 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(NavSat* 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 latitude_deg = 2;
126  void clear_latitude_deg();
127  static const int kLatitudeDegFieldNumber = 2;
128  double latitude_deg() const;
129  void set_latitude_deg(double value);
130 
131  // optional double longitude_deg = 3;
132  void clear_longitude_deg();
133  static const int kLongitudeDegFieldNumber = 3;
134  double longitude_deg() const;
135  void set_longitude_deg(double value);
136 
137  // optional double altitude = 4;
138  void clear_altitude();
139  static const int kAltitudeFieldNumber = 4;
140  double altitude() const;
141  void set_altitude(double value);
142 
143  // optional double velocity_east = 5;
144  void clear_velocity_east();
145  static const int kVelocityEastFieldNumber = 5;
146  double velocity_east() const;
147  void set_velocity_east(double value);
148 
149  // optional double velocity_north = 6;
150  void clear_velocity_north();
151  static const int kVelocityNorthFieldNumber = 6;
152  double velocity_north() const;
153  void set_velocity_north(double value);
154 
155  // optional double velocity_up = 7;
156  void clear_velocity_up();
157  static const int kVelocityUpFieldNumber = 7;
158  double velocity_up() const;
159  void set_velocity_up(double value);
160 
161  // optional string frame_id = 8;
162  void clear_frame_id();
163  static const int kFrameIdFieldNumber = 8;
164  const ::std::string& frame_id() const;
165  void set_frame_id(const ::std::string& value);
166  void set_frame_id(const char* value);
167  void set_frame_id(const char* value, size_t size);
168  ::std::string* mutable_frame_id();
169  ::std::string* release_frame_id();
170  void set_allocated_frame_id(::std::string* frame_id);
171 
172  // @@protoc_insertion_point(class_scope:ignition.msgs.NavSat)
173  private:
174 
175  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
176  bool _is_default_instance_;
177  ::ignition::msgs::Header* header_;
178  double latitude_deg_;
179  double longitude_deg_;
180  double altitude_;
181  double velocity_east_;
182  double velocity_north_;
183  double velocity_up_;
184  ::google::protobuf::internal::ArenaStringPtr frame_id_;
185  mutable int _cached_size_;
186  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fnavsat_2eproto();
189 
190  void InitAsDefaultInstance();
191  static NavSat* default_instance_;
192 };
193 // ===================================================================
194 
195 
196 // ===================================================================
197 
198 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
199 // NavSat
200 
201 // optional .ignition.msgs.Header header = 1;
202 inline bool NavSat::has_header() const {
203  return !_is_default_instance_ && header_ != NULL;
204 }
205 inline void NavSat::clear_header() {
206  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
207  header_ = NULL;
208 }
209 inline const ::ignition::msgs::Header& NavSat::header() const {
210  // @@protoc_insertion_point(field_get:ignition.msgs.NavSat.header)
211  return header_ != NULL ? *header_ : *default_instance_->header_;
212 }
213 inline ::ignition::msgs::Header* NavSat::mutable_header() {
214 
215  if (header_ == NULL) {
216  header_ = new ::ignition::msgs::Header;
217  }
218  // @@protoc_insertion_point(field_mutable:ignition.msgs.NavSat.header)
219  return header_;
220 }
221 inline ::ignition::msgs::Header* NavSat::release_header() {
222  // @@protoc_insertion_point(field_release:ignition.msgs.NavSat.header)
223 
224  ::ignition::msgs::Header* temp = header_;
225  header_ = NULL;
226  return temp;
227 }
229  delete header_;
230  header_ = header;
231  if (header) {
232 
233  } else {
234 
235  }
236  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.NavSat.header)
237 }
238 
239 // optional double latitude_deg = 2;
241  latitude_deg_ = 0;
242 }
243 inline double NavSat::latitude_deg() const {
244  // @@protoc_insertion_point(field_get:ignition.msgs.NavSat.latitude_deg)
245  return latitude_deg_;
246 }
247 inline void NavSat::set_latitude_deg(double value) {
248 
249  latitude_deg_ = value;
250  // @@protoc_insertion_point(field_set:ignition.msgs.NavSat.latitude_deg)
251 }
252 
253 // optional double longitude_deg = 3;
255  longitude_deg_ = 0;
256 }
257 inline double NavSat::longitude_deg() const {
258  // @@protoc_insertion_point(field_get:ignition.msgs.NavSat.longitude_deg)
259  return longitude_deg_;
260 }
261 inline void NavSat::set_longitude_deg(double value) {
262 
263  longitude_deg_ = value;
264  // @@protoc_insertion_point(field_set:ignition.msgs.NavSat.longitude_deg)
265 }
266 
267 // optional double altitude = 4;
268 inline void NavSat::clear_altitude() {
269  altitude_ = 0;
270 }
271 inline double NavSat::altitude() const {
272  // @@protoc_insertion_point(field_get:ignition.msgs.NavSat.altitude)
273  return altitude_;
274 }
275 inline void NavSat::set_altitude(double value) {
276 
277  altitude_ = value;
278  // @@protoc_insertion_point(field_set:ignition.msgs.NavSat.altitude)
279 }
280 
281 // optional double velocity_east = 5;
283  velocity_east_ = 0;
284 }
285 inline double NavSat::velocity_east() const {
286  // @@protoc_insertion_point(field_get:ignition.msgs.NavSat.velocity_east)
287  return velocity_east_;
288 }
289 inline void NavSat::set_velocity_east(double value) {
290 
291  velocity_east_ = value;
292  // @@protoc_insertion_point(field_set:ignition.msgs.NavSat.velocity_east)
293 }
294 
295 // optional double velocity_north = 6;
297  velocity_north_ = 0;
298 }
299 inline double NavSat::velocity_north() const {
300  // @@protoc_insertion_point(field_get:ignition.msgs.NavSat.velocity_north)
301  return velocity_north_;
302 }
303 inline void NavSat::set_velocity_north(double value) {
304 
305  velocity_north_ = value;
306  // @@protoc_insertion_point(field_set:ignition.msgs.NavSat.velocity_north)
307 }
308 
309 // optional double velocity_up = 7;
311  velocity_up_ = 0;
312 }
313 inline double NavSat::velocity_up() const {
314  // @@protoc_insertion_point(field_get:ignition.msgs.NavSat.velocity_up)
315  return velocity_up_;
316 }
317 inline void NavSat::set_velocity_up(double value) {
318 
319  velocity_up_ = value;
320  // @@protoc_insertion_point(field_set:ignition.msgs.NavSat.velocity_up)
321 }
322 
323 // optional string frame_id = 8;
324 inline void NavSat::clear_frame_id() {
325  frame_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
326 }
327 inline const ::std::string& NavSat::frame_id() const {
328  // @@protoc_insertion_point(field_get:ignition.msgs.NavSat.frame_id)
329  return frame_id_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
330 }
331 inline void NavSat::set_frame_id(const ::std::string& value) {
332 
333  frame_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
334  // @@protoc_insertion_point(field_set:ignition.msgs.NavSat.frame_id)
335 }
336 inline void NavSat::set_frame_id(const char* value) {
337 
338  frame_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
339  // @@protoc_insertion_point(field_set_char:ignition.msgs.NavSat.frame_id)
340 }
341 inline void NavSat::set_frame_id(const char* value, size_t size) {
342 
343  frame_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
344  ::std::string(reinterpret_cast<const char*>(value), size));
345  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.NavSat.frame_id)
346 }
347 inline ::std::string* NavSat::mutable_frame_id() {
348 
349  // @@protoc_insertion_point(field_mutable:ignition.msgs.NavSat.frame_id)
350  return frame_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
351 }
352 inline ::std::string* NavSat::release_frame_id() {
353  // @@protoc_insertion_point(field_release:ignition.msgs.NavSat.frame_id)
354 
355  return frame_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
356 }
357 inline void NavSat::set_allocated_frame_id(::std::string* frame_id) {
358  if (frame_id != NULL) {
359 
360  } else {
361 
362  }
363  frame_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), frame_id);
364  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.NavSat.frame_id)
365 }
366 
367 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
368 
373 // @@protoc_insertion_point(namespace_scope)
374 
375 } // namespace msgs
376 } // namespace ignition
377 
378 #ifdef _MSC_VER
379 #pragma warning(pop)
380 #endif
381 // @@protoc_insertion_point(global_scope)
382 
383 #endif // PROTOBUF_ignition_2fmsgs_2fnavsat_2eproto__INCLUDED
double longitude_deg() const
Definition: navsat.pb.h:257
double latitude_deg() const
Definition: navsat.pb.h:243
void clear_altitude()
Definition: navsat.pb.h:268
void clear_latitude_deg()
Definition: navsat.pb.h:240
void clear_frame_id()
Definition: navsat.pb.h:324
bool has_header() const
Definition: navsat.pb.h:202
void protobuf_AssignDesc_ignition_2fmsgs_2fnavsat_2eproto()
double velocity_east() const
Definition: navsat.pb.h:285
std::shared_ptr< const NavSat > ConstNavSatSharedPtr
Definition: navsat.pb.h:372
void protobuf_ShutdownFile_ignition_2fmsgs_2fnavsat_2eproto()
double velocity_up() const
Definition: navsat.pb.h:313
Definition: header.pb.h:161
STL class.
Definition: navsat.pb.h:56
std::unique_ptr< NavSat > NavSatUniquePtr
Definition: navsat.pb.h:369
void set_velocity_east(double value)
Definition: navsat.pb.h:289
void set_velocity_up(double value)
Definition: navsat.pb.h:317
void set_frame_id(const ::std::string &value)
Definition: navsat.pb.h:331
double altitude() const
Definition: navsat.pb.h:271
std::shared_ptr< NavSat > NavSatSharedPtr
Definition: navsat.pb.h:371
void set_altitude(double value)
Definition: navsat.pb.h:275
::std::string * mutable_frame_id()
Definition: navsat.pb.h:347
::ignition::msgs::Header * release_header()
Definition: navsat.pb.h:221
NavSat * New() const
Definition: navsat.pb.h:75
void clear_velocity_up()
Definition: navsat.pb.h:310
void set_latitude_deg(double value)
Definition: navsat.pb.h:247
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: navsat.pb.h:92
NavSat & operator=(const NavSat &from)
Definition: navsat.pb.h:63
const ::ignition::msgs::Header & header() const
Definition: navsat.pb.h:209
const ::std::string & frame_id() const
Definition: navsat.pb.h:327
void clear_header()
Definition: navsat.pb.h:205
int GetCachedSize() const
Definition: navsat.pb.h:95
void set_longitude_deg(double value)
Definition: navsat.pb.h:261
::std::string * release_frame_id()
Definition: navsat.pb.h:352
STL class.
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fnavsat_2eproto()
void set_allocated_header(::ignition::msgs::Header *header)
Definition: navsat.pb.h:228
void clear_velocity_east()
Definition: navsat.pb.h:282
void clear_velocity_north()
Definition: navsat.pb.h:296
std::unique_ptr< const NavSat > ConstNavSatUniquePtr
Definition: navsat.pb.h:370
void set_allocated_frame_id(::std::string *frame_id)
Definition: navsat.pb.h:357
double velocity_north() const
Definition: navsat.pb.h:299
::ignition::msgs::Header * mutable_header()
Definition: navsat.pb.h:213
void set_velocity_north(double value)
Definition: navsat.pb.h:303
void clear_longitude_deg()
Definition: navsat.pb.h:254