Ignition Msgs

API Reference

8.2.0
spherical_coordinates.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/spherical_coordinates.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fspherical_5fcoordinates_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fspherical_5fcoordinates_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>
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.
53 
54 class SphericalCoordinates;
55 
60 };
61 IGNITION_MSGS_VISIBLE bool SphericalCoordinates_SurfaceModel_IsValid(int value);
64 const int SphericalCoordinates_SurfaceModel_SurfaceModel_ARRAYSIZE = SphericalCoordinates_SurfaceModel_SurfaceModel_MAX + 1;
65 
66 IGNITION_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* SphericalCoordinates_SurfaceModel_descriptor();
68  return ::google::protobuf::internal::NameOfEnum(
70 }
72  const ::std::string& name, SphericalCoordinates_SurfaceModel* value) {
73  return ::google::protobuf::internal::ParseNamedEnum<SphericalCoordinates_SurfaceModel>(
75 }
76 // ===================================================================
77 
78 class IGNITION_MSGS_VISIBLE SphericalCoordinates : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.SphericalCoordinates) */ {
79  public:
81  virtual ~SphericalCoordinates();
82 
84 
86  CopyFrom(from);
87  return *this;
88  }
89 
90  static const ::google::protobuf::Descriptor* descriptor();
91  static const SphericalCoordinates& default_instance();
92 
93  void Swap(SphericalCoordinates* other);
94 
95  // implements Message ----------------------------------------------
96 
97  inline SphericalCoordinates* New() const { return New(NULL); }
98 
99  SphericalCoordinates* New(::google::protobuf::Arena* arena) const;
100  void CopyFrom(const ::google::protobuf::Message& from);
101  void MergeFrom(const ::google::protobuf::Message& from);
102  void CopyFrom(const SphericalCoordinates& from);
103  void MergeFrom(const SphericalCoordinates& from);
104  void Clear();
105  bool IsInitialized() const;
106 
107  int ByteSize() const;
108  bool MergePartialFromCodedStream(
109  ::google::protobuf::io::CodedInputStream* input);
110  void SerializeWithCachedSizes(
111  ::google::protobuf::io::CodedOutputStream* output) const;
112  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
113  bool deterministic, ::google::protobuf::uint8* output) const;
114  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
115  return InternalSerializeWithCachedSizesToArray(false, output);
116  }
117  int GetCachedSize() const { return _cached_size_; }
118  private:
119  void SharedCtor();
120  void SharedDtor();
121  void SetCachedSize(int size) const;
122  void InternalSwap(SphericalCoordinates* other);
123  private:
124  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
125  return _internal_metadata_.arena();
126  }
127  inline void* MaybeArenaPtr() const {
128  return _internal_metadata_.raw_arena_ptr();
129  }
130  public:
131 
132  ::google::protobuf::Metadata GetMetadata() const;
133 
134  // nested types ----------------------------------------------------
135 
137  static const SurfaceModel EARTH_WGS84 =
139  static inline bool SurfaceModel_IsValid(int value) {
141  }
142  static const SurfaceModel SurfaceModel_MIN =
144  static const SurfaceModel SurfaceModel_MAX =
146  static const int SurfaceModel_ARRAYSIZE =
148  static inline const ::google::protobuf::EnumDescriptor*
151  }
152  static inline const ::std::string& SurfaceModel_Name(SurfaceModel value) {
154  }
155  static inline bool SurfaceModel_Parse(const ::std::string& name,
156  SurfaceModel* value) {
157  return SphericalCoordinates_SurfaceModel_Parse(name, value);
158  }
159 
160  // accessors -------------------------------------------------------
161 
162  // optional .ignition.msgs.Header header = 1;
163  bool has_header() const;
164  void clear_header();
165  static const int kHeaderFieldNumber = 1;
166  const ::ignition::msgs::Header& header() const;
167  ::ignition::msgs::Header* mutable_header();
168  ::ignition::msgs::Header* release_header();
169  void set_allocated_header(::ignition::msgs::Header* header);
170 
171  // optional .ignition.msgs.SphericalCoordinates.SurfaceModel surface_model = 2;
172  void clear_surface_model();
173  static const int kSurfaceModelFieldNumber = 2;
175  void set_surface_model(::ignition::msgs::SphericalCoordinates_SurfaceModel value);
176 
177  // optional double latitude_deg = 3;
178  void clear_latitude_deg();
179  static const int kLatitudeDegFieldNumber = 3;
180  double latitude_deg() const;
181  void set_latitude_deg(double value);
182 
183  // optional double longitude_deg = 4;
184  void clear_longitude_deg();
185  static const int kLongitudeDegFieldNumber = 4;
186  double longitude_deg() const;
187  void set_longitude_deg(double value);
188 
189  // optional double elevation = 5;
190  void clear_elevation();
191  static const int kElevationFieldNumber = 5;
192  double elevation() const;
193  void set_elevation(double value);
194 
195  // optional double heading_deg = 6;
196  void clear_heading_deg();
197  static const int kHeadingDegFieldNumber = 6;
198  double heading_deg() const;
199  void set_heading_deg(double value);
200 
201  // optional .ignition.msgs.Entity entity = 7;
202  bool has_entity() const;
203  void clear_entity();
204  static const int kEntityFieldNumber = 7;
205  const ::ignition::msgs::Entity& entity() const;
206  ::ignition::msgs::Entity* mutable_entity();
207  ::ignition::msgs::Entity* release_entity();
208  void set_allocated_entity(::ignition::msgs::Entity* entity);
209 
210  // @@protoc_insertion_point(class_scope:ignition.msgs.SphericalCoordinates)
211  private:
212 
213  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
214  bool _is_default_instance_;
215  ::ignition::msgs::Header* header_;
216  double latitude_deg_;
217  double longitude_deg_;
218  double elevation_;
219  double heading_deg_;
220  ::ignition::msgs::Entity* entity_;
221  int surface_model_;
222  mutable int _cached_size_;
223  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fspherical_5fcoordinates_2eproto();
226 
227  void InitAsDefaultInstance();
228  static SphericalCoordinates* default_instance_;
229 };
230 // ===================================================================
231 
232 
233 // ===================================================================
234 
235 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
236 // SphericalCoordinates
237 
238 // optional .ignition.msgs.Header header = 1;
239 inline bool SphericalCoordinates::has_header() const {
240  return !_is_default_instance_ && header_ != NULL;
241 }
243  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
244  header_ = NULL;
245 }
246 inline const ::ignition::msgs::Header& SphericalCoordinates::header() const {
247  // @@protoc_insertion_point(field_get:ignition.msgs.SphericalCoordinates.header)
248  return header_ != NULL ? *header_ : *default_instance_->header_;
249 }
250 inline ::ignition::msgs::Header* SphericalCoordinates::mutable_header() {
251 
252  if (header_ == NULL) {
253  header_ = new ::ignition::msgs::Header;
254  }
255  // @@protoc_insertion_point(field_mutable:ignition.msgs.SphericalCoordinates.header)
256  return header_;
257 }
258 inline ::ignition::msgs::Header* SphericalCoordinates::release_header() {
259  // @@protoc_insertion_point(field_release:ignition.msgs.SphericalCoordinates.header)
260 
261  ::ignition::msgs::Header* temp = header_;
262  header_ = NULL;
263  return temp;
264 }
266  delete header_;
267  header_ = header;
268  if (header) {
269 
270  } else {
271 
272  }
273  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.SphericalCoordinates.header)
274 }
275 
276 // optional .ignition.msgs.SphericalCoordinates.SurfaceModel surface_model = 2;
278  surface_model_ = 0;
279 }
281  // @@protoc_insertion_point(field_get:ignition.msgs.SphericalCoordinates.surface_model)
282  return static_cast< ::ignition::msgs::SphericalCoordinates_SurfaceModel >(surface_model_);
283 }
285 
286  surface_model_ = value;
287  // @@protoc_insertion_point(field_set:ignition.msgs.SphericalCoordinates.surface_model)
288 }
289 
290 // optional double latitude_deg = 3;
292  latitude_deg_ = 0;
293 }
294 inline double SphericalCoordinates::latitude_deg() const {
295  // @@protoc_insertion_point(field_get:ignition.msgs.SphericalCoordinates.latitude_deg)
296  return latitude_deg_;
297 }
298 inline void SphericalCoordinates::set_latitude_deg(double value) {
299 
300  latitude_deg_ = value;
301  // @@protoc_insertion_point(field_set:ignition.msgs.SphericalCoordinates.latitude_deg)
302 }
303 
304 // optional double longitude_deg = 4;
306  longitude_deg_ = 0;
307 }
308 inline double SphericalCoordinates::longitude_deg() const {
309  // @@protoc_insertion_point(field_get:ignition.msgs.SphericalCoordinates.longitude_deg)
310  return longitude_deg_;
311 }
312 inline void SphericalCoordinates::set_longitude_deg(double value) {
313 
314  longitude_deg_ = value;
315  // @@protoc_insertion_point(field_set:ignition.msgs.SphericalCoordinates.longitude_deg)
316 }
317 
318 // optional double elevation = 5;
320  elevation_ = 0;
321 }
322 inline double SphericalCoordinates::elevation() const {
323  // @@protoc_insertion_point(field_get:ignition.msgs.SphericalCoordinates.elevation)
324  return elevation_;
325 }
326 inline void SphericalCoordinates::set_elevation(double value) {
327 
328  elevation_ = value;
329  // @@protoc_insertion_point(field_set:ignition.msgs.SphericalCoordinates.elevation)
330 }
331 
332 // optional double heading_deg = 6;
334  heading_deg_ = 0;
335 }
336 inline double SphericalCoordinates::heading_deg() const {
337  // @@protoc_insertion_point(field_get:ignition.msgs.SphericalCoordinates.heading_deg)
338  return heading_deg_;
339 }
340 inline void SphericalCoordinates::set_heading_deg(double value) {
341 
342  heading_deg_ = value;
343  // @@protoc_insertion_point(field_set:ignition.msgs.SphericalCoordinates.heading_deg)
344 }
345 
346 // optional .ignition.msgs.Entity entity = 7;
347 inline bool SphericalCoordinates::has_entity() const {
348  return !_is_default_instance_ && entity_ != NULL;
349 }
351  if (GetArenaNoVirtual() == NULL && entity_ != NULL) delete entity_;
352  entity_ = NULL;
353 }
354 inline const ::ignition::msgs::Entity& SphericalCoordinates::entity() const {
355  // @@protoc_insertion_point(field_get:ignition.msgs.SphericalCoordinates.entity)
356  return entity_ != NULL ? *entity_ : *default_instance_->entity_;
357 }
358 inline ::ignition::msgs::Entity* SphericalCoordinates::mutable_entity() {
359 
360  if (entity_ == NULL) {
361  entity_ = new ::ignition::msgs::Entity;
362  }
363  // @@protoc_insertion_point(field_mutable:ignition.msgs.SphericalCoordinates.entity)
364  return entity_;
365 }
366 inline ::ignition::msgs::Entity* SphericalCoordinates::release_entity() {
367  // @@protoc_insertion_point(field_release:ignition.msgs.SphericalCoordinates.entity)
368 
369  ::ignition::msgs::Entity* temp = entity_;
370  entity_ = NULL;
371  return temp;
372 }
374  delete entity_;
375  entity_ = entity;
376  if (entity) {
377 
378  } else {
379 
380  }
381  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.SphericalCoordinates.entity)
382 }
383 
384 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
385 
390 // @@protoc_insertion_point(namespace_scope)
391 
392 } // namespace msgs
393 } // namespace ignition
394 
395 #ifndef SWIG
396 namespace google {
397 namespace protobuf {
398 
399 template <> struct is_proto_enum< ::ignition::msgs::SphericalCoordinates_SurfaceModel> : ::google::protobuf::internal::true_type {};
400 template <>
401 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::SphericalCoordinates_SurfaceModel>() {
403 }
404 
405 } // namespace protobuf
406 } // namespace google
407 #endif // SWIG
408 
409 #ifdef _MSC_VER
410 #pragma warning(pop)
411 #endif
412 // @@protoc_insertion_point(global_scope)
413 
414 #endif // PROTOBUF_ignition_2fmsgs_2fspherical_5fcoordinates_2eproto__INCLUDED
std::shared_ptr< SphericalCoordinates > SphericalCoordinatesSharedPtr
Definition: spherical_coordinates.pb.h:388
double heading_deg() const
Definition: spherical_coordinates.pb.h:336
Definition: spherical_coordinates.pb.h:57
void set_elevation(double value)
Definition: spherical_coordinates.pb.h:326
::ignition::msgs::Entity * mutable_entity()
Definition: spherical_coordinates.pb.h:358
static const ::std::string & SurfaceModel_Name(SurfaceModel value)
Definition: spherical_coordinates.pb.h:152
SphericalCoordinates_SurfaceModel
Definition: spherical_coordinates.pb.h:56
void clear_longitude_deg()
Definition: spherical_coordinates.pb.h:305
static bool SurfaceModel_IsValid(int value)
Definition: spherical_coordinates.pb.h:139
SphericalCoordinates_SurfaceModel SurfaceModel
Definition: spherical_coordinates.pb.h:136
void clear_heading_deg()
Definition: spherical_coordinates.pb.h:333
const ::std::string & SphericalCoordinates_SurfaceModel_Name(SphericalCoordinates_SurfaceModel value)
Definition: spherical_coordinates.pb.h:67
std::unique_ptr< const SphericalCoordinates > ConstSphericalCoordinatesUniquePtr
Definition: spherical_coordinates.pb.h:387
const ::ignition::msgs::Header & header() const
Definition: spherical_coordinates.pb.h:246
void protobuf_AssignDesc_ignition_2fmsgs_2fspherical_5fcoordinates_2eproto()
bool SphericalCoordinates_SurfaceModel_Parse(const ::std::string &name, SphericalCoordinates_SurfaceModel *value)
Definition: spherical_coordinates.pb.h:71
void clear_elevation()
Definition: spherical_coordinates.pb.h:319
double elevation() const
Definition: spherical_coordinates.pb.h:322
int GetCachedSize() const
Definition: spherical_coordinates.pb.h:117
SphericalCoordinates * New() const
Definition: spherical_coordinates.pb.h:97
std::unique_ptr< SphericalCoordinates > SphericalCoordinatesUniquePtr
Definition: spherical_coordinates.pb.h:386
Definition: header.pb.h:161
const SphericalCoordinates_SurfaceModel SphericalCoordinates_SurfaceModel_SurfaceModel_MIN
Definition: spherical_coordinates.pb.h:62
void protobuf_ShutdownFile_ignition_2fmsgs_2fspherical_5fcoordinates_2eproto()
const int SphericalCoordinates_SurfaceModel_SurfaceModel_ARRAYSIZE
Definition: spherical_coordinates.pb.h:64
void set_heading_deg(double value)
Definition: spherical_coordinates.pb.h:340
void set_latitude_deg(double value)
Definition: spherical_coordinates.pb.h:298
double longitude_deg() const
Definition: spherical_coordinates.pb.h:308
const ::ignition::msgs::Entity & entity() const
Definition: spherical_coordinates.pb.h:354
void clear_header()
Definition: spherical_coordinates.pb.h:242
static bool SurfaceModel_Parse(const ::std::string &name, SurfaceModel *value)
Definition: spherical_coordinates.pb.h:155
SphericalCoordinates & operator=(const SphericalCoordinates &from)
Definition: spherical_coordinates.pb.h:85
void clear_surface_model()
Definition: spherical_coordinates.pb.h:277
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: spherical_coordinates.pb.h:114
::ignition::msgs::SphericalCoordinates_SurfaceModel surface_model() const
Definition: spherical_coordinates.pb.h:280
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fspherical_5fcoordinates_2eproto()
::ignition::msgs::Entity * release_entity()
Definition: spherical_coordinates.pb.h:366
bool has_header() const
Definition: spherical_coordinates.pb.h:239
::ignition::msgs::Header * release_header()
Definition: spherical_coordinates.pb.h:258
Definition: spherical_coordinates.pb.h:78
STL class.
void set_surface_model(::ignition::msgs::SphericalCoordinates_SurfaceModel value)
Definition: spherical_coordinates.pb.h:284
const SphericalCoordinates_SurfaceModel SphericalCoordinates_SurfaceModel_SurfaceModel_MAX
Definition: spherical_coordinates.pb.h:63
static const ::google::protobuf::EnumDescriptor * SurfaceModel_descriptor()
Definition: spherical_coordinates.pb.h:149
::ignition::msgs::Header * mutable_header()
Definition: spherical_coordinates.pb.h:250
double latitude_deg() const
Definition: spherical_coordinates.pb.h:294
Definition: any.pb.h:839
Definition: entity.pb.h:84
void clear_latitude_deg()
Definition: spherical_coordinates.pb.h:291
std::shared_ptr< const SphericalCoordinates > ConstSphericalCoordinatesSharedPtr
Definition: spherical_coordinates.pb.h:389
void set_allocated_entity(::ignition::msgs::Entity *entity)
Definition: spherical_coordinates.pb.h:373
void clear_entity()
Definition: spherical_coordinates.pb.h:350
IGNITION_MSGS_VISIBLE bool SphericalCoordinates_SurfaceModel_IsValid(int value)
IGNITION_MSGS_VISIBLEconst ::google::protobuf::EnumDescriptor * SphericalCoordinates_SurfaceModel_descriptor()
void set_longitude_deg(double value)
Definition: spherical_coordinates.pb.h:312
void set_allocated_header(::ignition::msgs::Header *header)
Definition: spherical_coordinates.pb.h:265
bool has_entity() const
Definition: spherical_coordinates.pb.h:347