Ignition Msgs

API Reference

5.6.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>
32 #ifndef _MSC_VER
33 #pragma GCC system_header
34 #else
35 #pragma warning(push)
36 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
37 #endif
38 #ifdef __linux__
39 #include <sys/sysmacros.h>
40 #endif
41 #include <memory>
42 #include <ignition/msgs/Export.hh>
43 // @@protoc_insertion_point(includes)
44 
45 namespace ignition {
46 namespace msgs {
47 
48 // Internal implementation detail -- do not call these.
52 
53 class SphericalCoordinates;
54 
59 };
60 IGNITION_MSGS_VISIBLE bool SphericalCoordinates_SurfaceModel_IsValid(int value);
63 const int SphericalCoordinates_SurfaceModel_SurfaceModel_ARRAYSIZE = SphericalCoordinates_SurfaceModel_SurfaceModel_MAX + 1;
64 
65 IGNITION_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* SphericalCoordinates_SurfaceModel_descriptor();
67  return ::google::protobuf::internal::NameOfEnum(
69 }
71  const ::std::string& name, SphericalCoordinates_SurfaceModel* value) {
72  return ::google::protobuf::internal::ParseNamedEnum<SphericalCoordinates_SurfaceModel>(
74 }
75 // ===================================================================
76 
77 class IGNITION_MSGS_VISIBLE SphericalCoordinates : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.SphericalCoordinates) */ {
78  public:
80  virtual ~SphericalCoordinates();
81 
83 
85  CopyFrom(from);
86  return *this;
87  }
88 
89  static const ::google::protobuf::Descriptor* descriptor();
90  static const SphericalCoordinates& default_instance();
91 
92  void Swap(SphericalCoordinates* other);
93 
94  // implements Message ----------------------------------------------
95 
96  inline SphericalCoordinates* New() const { return New(NULL); }
97 
98  SphericalCoordinates* New(::google::protobuf::Arena* arena) const;
99  void CopyFrom(const ::google::protobuf::Message& from);
100  void MergeFrom(const ::google::protobuf::Message& from);
101  void CopyFrom(const SphericalCoordinates& from);
102  void MergeFrom(const SphericalCoordinates& from);
103  void Clear();
104  bool IsInitialized() const;
105 
106  int ByteSize() const;
107  bool MergePartialFromCodedStream(
108  ::google::protobuf::io::CodedInputStream* input);
109  void SerializeWithCachedSizes(
110  ::google::protobuf::io::CodedOutputStream* output) const;
111  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
112  bool deterministic, ::google::protobuf::uint8* output) const;
113  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
114  return InternalSerializeWithCachedSizesToArray(false, output);
115  }
116  int GetCachedSize() const { return _cached_size_; }
117  private:
118  void SharedCtor();
119  void SharedDtor();
120  void SetCachedSize(int size) const;
121  void InternalSwap(SphericalCoordinates* other);
122  private:
123  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
124  return _internal_metadata_.arena();
125  }
126  inline void* MaybeArenaPtr() const {
127  return _internal_metadata_.raw_arena_ptr();
128  }
129  public:
130 
131  ::google::protobuf::Metadata GetMetadata() const;
132 
133  // nested types ----------------------------------------------------
134 
136  static const SurfaceModel EARTH_WGS84 =
138  static inline bool SurfaceModel_IsValid(int value) {
140  }
141  static const SurfaceModel SurfaceModel_MIN =
143  static const SurfaceModel SurfaceModel_MAX =
145  static const int SurfaceModel_ARRAYSIZE =
147  static inline const ::google::protobuf::EnumDescriptor*
150  }
151  static inline const ::std::string& SurfaceModel_Name(SurfaceModel value) {
153  }
154  static inline bool SurfaceModel_Parse(const ::std::string& name,
155  SurfaceModel* value) {
156  return SphericalCoordinates_SurfaceModel_Parse(name, value);
157  }
158 
159  // accessors -------------------------------------------------------
160 
161  // optional .ignition.msgs.Header header = 1;
162  bool has_header() const;
163  void clear_header();
164  static const int kHeaderFieldNumber = 1;
165  const ::ignition::msgs::Header& header() const;
166  ::ignition::msgs::Header* mutable_header();
167  ::ignition::msgs::Header* release_header();
168  void set_allocated_header(::ignition::msgs::Header* header);
169 
170  // optional .ignition.msgs.SphericalCoordinates.SurfaceModel surface_model = 2;
171  void clear_surface_model();
172  static const int kSurfaceModelFieldNumber = 2;
174  void set_surface_model(::ignition::msgs::SphericalCoordinates_SurfaceModel value);
175 
176  // optional double latitude_deg = 3;
177  void clear_latitude_deg();
178  static const int kLatitudeDegFieldNumber = 3;
179  double latitude_deg() const;
180  void set_latitude_deg(double value);
181 
182  // optional double longitude_deg = 4;
183  void clear_longitude_deg();
184  static const int kLongitudeDegFieldNumber = 4;
185  double longitude_deg() const;
186  void set_longitude_deg(double value);
187 
188  // optional double elevation = 5;
189  void clear_elevation();
190  static const int kElevationFieldNumber = 5;
191  double elevation() const;
192  void set_elevation(double value);
193 
194  // optional double heading_deg = 6;
195  void clear_heading_deg();
196  static const int kHeadingDegFieldNumber = 6;
197  double heading_deg() const;
198  void set_heading_deg(double value);
199 
200  // @@protoc_insertion_point(class_scope:ignition.msgs.SphericalCoordinates)
201  private:
202 
203  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
204  bool _is_default_instance_;
205  ::ignition::msgs::Header* header_;
206  double latitude_deg_;
207  double longitude_deg_;
208  double elevation_;
209  double heading_deg_;
210  int surface_model_;
211  mutable int _cached_size_;
212  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fspherical_5fcoordinates_2eproto();
215 
216  void InitAsDefaultInstance();
217  static SphericalCoordinates* default_instance_;
218 };
219 // ===================================================================
220 
221 
222 // ===================================================================
223 
224 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
225 // SphericalCoordinates
226 
227 // optional .ignition.msgs.Header header = 1;
228 inline bool SphericalCoordinates::has_header() const {
229  return !_is_default_instance_ && header_ != NULL;
230 }
232  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
233  header_ = NULL;
234 }
235 inline const ::ignition::msgs::Header& SphericalCoordinates::header() const {
236  // @@protoc_insertion_point(field_get:ignition.msgs.SphericalCoordinates.header)
237  return header_ != NULL ? *header_ : *default_instance_->header_;
238 }
239 inline ::ignition::msgs::Header* SphericalCoordinates::mutable_header() {
240 
241  if (header_ == NULL) {
242  header_ = new ::ignition::msgs::Header;
243  }
244  // @@protoc_insertion_point(field_mutable:ignition.msgs.SphericalCoordinates.header)
245  return header_;
246 }
247 inline ::ignition::msgs::Header* SphericalCoordinates::release_header() {
248  // @@protoc_insertion_point(field_release:ignition.msgs.SphericalCoordinates.header)
249 
250  ::ignition::msgs::Header* temp = header_;
251  header_ = NULL;
252  return temp;
253 }
255  delete header_;
256  header_ = header;
257  if (header) {
258 
259  } else {
260 
261  }
262  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.SphericalCoordinates.header)
263 }
264 
265 // optional .ignition.msgs.SphericalCoordinates.SurfaceModel surface_model = 2;
267  surface_model_ = 0;
268 }
270  // @@protoc_insertion_point(field_get:ignition.msgs.SphericalCoordinates.surface_model)
271  return static_cast< ::ignition::msgs::SphericalCoordinates_SurfaceModel >(surface_model_);
272 }
274 
275  surface_model_ = value;
276  // @@protoc_insertion_point(field_set:ignition.msgs.SphericalCoordinates.surface_model)
277 }
278 
279 // optional double latitude_deg = 3;
281  latitude_deg_ = 0;
282 }
283 inline double SphericalCoordinates::latitude_deg() const {
284  // @@protoc_insertion_point(field_get:ignition.msgs.SphericalCoordinates.latitude_deg)
285  return latitude_deg_;
286 }
287 inline void SphericalCoordinates::set_latitude_deg(double value) {
288 
289  latitude_deg_ = value;
290  // @@protoc_insertion_point(field_set:ignition.msgs.SphericalCoordinates.latitude_deg)
291 }
292 
293 // optional double longitude_deg = 4;
295  longitude_deg_ = 0;
296 }
297 inline double SphericalCoordinates::longitude_deg() const {
298  // @@protoc_insertion_point(field_get:ignition.msgs.SphericalCoordinates.longitude_deg)
299  return longitude_deg_;
300 }
301 inline void SphericalCoordinates::set_longitude_deg(double value) {
302 
303  longitude_deg_ = value;
304  // @@protoc_insertion_point(field_set:ignition.msgs.SphericalCoordinates.longitude_deg)
305 }
306 
307 // optional double elevation = 5;
309  elevation_ = 0;
310 }
311 inline double SphericalCoordinates::elevation() const {
312  // @@protoc_insertion_point(field_get:ignition.msgs.SphericalCoordinates.elevation)
313  return elevation_;
314 }
315 inline void SphericalCoordinates::set_elevation(double value) {
316 
317  elevation_ = value;
318  // @@protoc_insertion_point(field_set:ignition.msgs.SphericalCoordinates.elevation)
319 }
320 
321 // optional double heading_deg = 6;
323  heading_deg_ = 0;
324 }
325 inline double SphericalCoordinates::heading_deg() const {
326  // @@protoc_insertion_point(field_get:ignition.msgs.SphericalCoordinates.heading_deg)
327  return heading_deg_;
328 }
329 inline void SphericalCoordinates::set_heading_deg(double value) {
330 
331  heading_deg_ = value;
332  // @@protoc_insertion_point(field_set:ignition.msgs.SphericalCoordinates.heading_deg)
333 }
334 
335 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
336 
341 // @@protoc_insertion_point(namespace_scope)
342 
343 } // namespace msgs
344 } // namespace ignition
345 
346 #ifndef SWIG
347 namespace google {
348 namespace protobuf {
349 
350 template <> struct is_proto_enum< ::ignition::msgs::SphericalCoordinates_SurfaceModel> : ::google::protobuf::internal::true_type {};
351 template <>
352 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::SphericalCoordinates_SurfaceModel>() {
354 }
355 
356 } // namespace protobuf
357 } // namespace google
358 #endif // SWIG
359 
360 #ifdef _MSC_VER
361 #pragma warning(pop)
362 #endif
363 // @@protoc_insertion_point(global_scope)
364 
365 #endif // PROTOBUF_ignition_2fmsgs_2fspherical_5fcoordinates_2eproto__INCLUDED
std::shared_ptr< SphericalCoordinates > SphericalCoordinatesSharedPtr
Definition: spherical_coordinates.pb.h:339
double heading_deg() const
Definition: spherical_coordinates.pb.h:325
Definition: spherical_coordinates.pb.h:56
void set_elevation(double value)
Definition: spherical_coordinates.pb.h:315
static const ::std::string & SurfaceModel_Name(SurfaceModel value)
Definition: spherical_coordinates.pb.h:151
SphericalCoordinates_SurfaceModel
Definition: spherical_coordinates.pb.h:55
void clear_longitude_deg()
Definition: spherical_coordinates.pb.h:294
static bool SurfaceModel_IsValid(int value)
Definition: spherical_coordinates.pb.h:138
SphericalCoordinates_SurfaceModel SurfaceModel
Definition: spherical_coordinates.pb.h:135
void clear_heading_deg()
Definition: spherical_coordinates.pb.h:322
const ::std::string & SphericalCoordinates_SurfaceModel_Name(SphericalCoordinates_SurfaceModel value)
Definition: spherical_coordinates.pb.h:66
std::unique_ptr< const SphericalCoordinates > ConstSphericalCoordinatesUniquePtr
Definition: spherical_coordinates.pb.h:338
const ::ignition::msgs::Header & header() const
Definition: spherical_coordinates.pb.h:235
void protobuf_AssignDesc_ignition_2fmsgs_2fspherical_5fcoordinates_2eproto()
bool SphericalCoordinates_SurfaceModel_Parse(const ::std::string &name, SphericalCoordinates_SurfaceModel *value)
Definition: spherical_coordinates.pb.h:70
void clear_elevation()
Definition: spherical_coordinates.pb.h:308
double elevation() const
Definition: spherical_coordinates.pb.h:311
int GetCachedSize() const
Definition: spherical_coordinates.pb.h:116
SphericalCoordinates * New() const
Definition: spherical_coordinates.pb.h:96
std::unique_ptr< SphericalCoordinates > SphericalCoordinatesUniquePtr
Definition: spherical_coordinates.pb.h:337
Definition: header.pb.h:161
const SphericalCoordinates_SurfaceModel SphericalCoordinates_SurfaceModel_SurfaceModel_MIN
Definition: spherical_coordinates.pb.h:61
void protobuf_ShutdownFile_ignition_2fmsgs_2fspherical_5fcoordinates_2eproto()
const int SphericalCoordinates_SurfaceModel_SurfaceModel_ARRAYSIZE
Definition: spherical_coordinates.pb.h:63
void set_heading_deg(double value)
Definition: spherical_coordinates.pb.h:329
void set_latitude_deg(double value)
Definition: spherical_coordinates.pb.h:287
double longitude_deg() const
Definition: spherical_coordinates.pb.h:297
void clear_header()
Definition: spherical_coordinates.pb.h:231
static bool SurfaceModel_Parse(const ::std::string &name, SurfaceModel *value)
Definition: spherical_coordinates.pb.h:154
SphericalCoordinates & operator=(const SphericalCoordinates &from)
Definition: spherical_coordinates.pb.h:84
void clear_surface_model()
Definition: spherical_coordinates.pb.h:266
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: spherical_coordinates.pb.h:113
::ignition::msgs::SphericalCoordinates_SurfaceModel surface_model() const
Definition: spherical_coordinates.pb.h:269
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fspherical_5fcoordinates_2eproto()
bool has_header() const
Definition: spherical_coordinates.pb.h:228
::ignition::msgs::Header * release_header()
Definition: spherical_coordinates.pb.h:247
Definition: spherical_coordinates.pb.h:77
STL class.
void set_surface_model(::ignition::msgs::SphericalCoordinates_SurfaceModel value)
Definition: spherical_coordinates.pb.h:273
const SphericalCoordinates_SurfaceModel SphericalCoordinates_SurfaceModel_SurfaceModel_MAX
Definition: spherical_coordinates.pb.h:62
static const ::google::protobuf::EnumDescriptor * SurfaceModel_descriptor()
Definition: spherical_coordinates.pb.h:148
::ignition::msgs::Header * mutable_header()
Definition: spherical_coordinates.pb.h:239
double latitude_deg() const
Definition: spherical_coordinates.pb.h:283
Definition: any.pb.h:839
void clear_latitude_deg()
Definition: spherical_coordinates.pb.h:280
std::shared_ptr< const SphericalCoordinates > ConstSphericalCoordinatesSharedPtr
Definition: spherical_coordinates.pb.h:340
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:301
void set_allocated_header(::ignition::msgs::Header *header)
Definition: spherical_coordinates.pb.h:254