Ignition Msgs

API Reference

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