Gazebo Msgs

API Reference

9.5.1
distortion.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/distortion.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fdistortion_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fdistortion_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < 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/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include <google/protobuf/unknown_field_set.h>
33 #include "gz/msgs/vector2d.pb.h"
34 #include "gz/msgs/header.pb.h"
35 // @@protoc_insertion_point(includes)
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fdistortion_2eproto GZ_MSGS_VISIBLE
37 
39 // Internal implementation detail -- do not use these members.
40 struct GZ_MSGS_VISIBLE TableStruct {
41  static const ::google::protobuf::internal::ParseTableField entries[];
42  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
43  static const ::google::protobuf::internal::ParseTable schema[1];
44  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
45  static const ::google::protobuf::internal::SerializationTable serialization_table[];
46  static const ::google::protobuf::uint32 offsets[];
47 };
48 void GZ_MSGS_VISIBLE AddDescriptors();
49 } // namespace protobuf_gz_2fmsgs_2fdistortion_2eproto
50 namespace gz {
51 namespace msgs {
52 class Distortion;
53 class DistortionDefaultTypeInternal;
54 GZ_MSGS_VISIBLE extern DistortionDefaultTypeInternal _Distortion_default_instance_;
55 } // namespace msgs
56 } // namespace gz
57 namespace google {
58 namespace protobuf {
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::Distortion* Arena::CreateMaybeMessage<::gz::msgs::Distortion>(Arena*);
60 } // namespace protobuf
61 } // namespace google
62 namespace gz {
63 namespace msgs {
64 
65 // ===================================================================
66 
67 class GZ_MSGS_VISIBLE Distortion : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Distortion) */ {
68  public:
69  Distortion();
70  virtual ~Distortion();
71 
72  Distortion(const Distortion& from);
73 
74  inline Distortion& operator=(const Distortion& from) {
75  CopyFrom(from);
76  return *this;
77  }
78  #if LANG_CXX11
79  Distortion(Distortion&& from) noexcept
80  : Distortion() {
81  *this = ::std::move(from);
82  }
83 
84  inline Distortion& operator=(Distortion&& from) noexcept {
85  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
86  if (this != &from) InternalSwap(&from);
87  } else {
88  CopyFrom(from);
89  }
90  return *this;
91  }
92  #endif
93  static const ::google::protobuf::Descriptor* descriptor();
94  static const Distortion& default_instance();
95 
96  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
97  static inline const Distortion* internal_default_instance() {
98  return reinterpret_cast<const Distortion*>(
100  }
101  static constexpr int kIndexInFileMessages =
102  0;
103 
104  void Swap(Distortion* other);
105  friend void swap(Distortion& a, Distortion& b) {
106  a.Swap(&b);
107  }
108 
109  // implements Message ----------------------------------------------
110 
111  inline Distortion* New() const final {
112  return CreateMaybeMessage<Distortion>(NULL);
113  }
114 
115  Distortion* New(::google::protobuf::Arena* arena) const final {
116  return CreateMaybeMessage<Distortion>(arena);
117  }
118  void CopyFrom(const ::google::protobuf::Message& from) final;
119  void MergeFrom(const ::google::protobuf::Message& from) final;
120  void CopyFrom(const Distortion& from);
121  void MergeFrom(const Distortion& from);
122  void Clear() final;
123  bool IsInitialized() const final;
124 
125  size_t ByteSizeLong() const final;
126  bool MergePartialFromCodedStream(
127  ::google::protobuf::io::CodedInputStream* input) final;
128  void SerializeWithCachedSizes(
129  ::google::protobuf::io::CodedOutputStream* output) const final;
130  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
131  bool deterministic, ::google::protobuf::uint8* target) const final;
132  int GetCachedSize() const final { return _cached_size_.Get(); }
133 
134  private:
135  void SharedCtor();
136  void SharedDtor();
137  void SetCachedSize(int size) const final;
138  void InternalSwap(Distortion* other);
139  private:
140  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
141  return NULL;
142  }
143  inline void* MaybeArenaPtr() const {
144  return NULL;
145  }
146  public:
147 
148  ::google::protobuf::Metadata GetMetadata() const final;
149 
150  // nested types ----------------------------------------------------
151 
152  // accessors -------------------------------------------------------
153 
154  // .gz.msgs.Header header = 1;
155  bool has_header() const;
156  void clear_header();
157  static const int kHeaderFieldNumber = 1;
158  private:
159  const ::gz::msgs::Header& _internal_header() const;
160  public:
161  const ::gz::msgs::Header& header() const;
162  ::gz::msgs::Header* release_header();
163  ::gz::msgs::Header* mutable_header();
164  void set_allocated_header(::gz::msgs::Header* header);
165 
166  // .gz.msgs.Vector2d center = 2;
167  bool has_center() const;
168  void clear_center();
169  static const int kCenterFieldNumber = 2;
170  private:
171  const ::gz::msgs::Vector2d& _internal_center() const;
172  public:
173  const ::gz::msgs::Vector2d& center() const;
174  ::gz::msgs::Vector2d* release_center();
175  ::gz::msgs::Vector2d* mutable_center();
176  void set_allocated_center(::gz::msgs::Vector2d* center);
177 
178  // double k1 = 3;
179  void clear_k1();
180  static const int kK1FieldNumber = 3;
181  double k1() const;
182  void set_k1(double value);
183 
184  // double k2 = 4;
185  void clear_k2();
186  static const int kK2FieldNumber = 4;
187  double k2() const;
188  void set_k2(double value);
189 
190  // double k3 = 5;
191  void clear_k3();
192  static const int kK3FieldNumber = 5;
193  double k3() const;
194  void set_k3(double value);
195 
196  // double p1 = 6;
197  void clear_p1();
198  static const int kP1FieldNumber = 6;
199  double p1() const;
200  void set_p1(double value);
201 
202  // double p2 = 7;
203  void clear_p2();
204  static const int kP2FieldNumber = 7;
205  double p2() const;
206  void set_p2(double value);
207 
208  // @@protoc_insertion_point(class_scope:gz.msgs.Distortion)
209  private:
210 
211  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
212  ::gz::msgs::Header* header_;
213  ::gz::msgs::Vector2d* center_;
214  double k1_;
215  double k2_;
216  double k3_;
217  double p1_;
218  double p2_;
219  mutable ::google::protobuf::internal::CachedSize _cached_size_;
220  friend struct ::protobuf_gz_2fmsgs_2fdistortion_2eproto::TableStruct;
221 };
222 // ===================================================================
223 
224 
225 // ===================================================================
226 
227 #ifdef __GNUC__
228  #pragma GCC diagnostic push
229  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
230 #endif // __GNUC__
231 // Distortion
232 
233 // .gz.msgs.Header header = 1;
234 inline bool Distortion::has_header() const {
235  return this != internal_default_instance() && header_ != NULL;
236 }
237 inline const ::gz::msgs::Header& Distortion::_internal_header() const {
238  return *header_;
239 }
240 inline const ::gz::msgs::Header& Distortion::header() const {
241  const ::gz::msgs::Header* p = header_;
242  // @@protoc_insertion_point(field_get:gz.msgs.Distortion.header)
243  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
245 }
246 inline ::gz::msgs::Header* Distortion::release_header() {
247  // @@protoc_insertion_point(field_release:gz.msgs.Distortion.header)
248 
249  ::gz::msgs::Header* temp = header_;
250  header_ = NULL;
251  return temp;
252 }
253 inline ::gz::msgs::Header* Distortion::mutable_header() {
254 
255  if (header_ == NULL) {
256  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
257  header_ = p;
258  }
259  // @@protoc_insertion_point(field_mutable:gz.msgs.Distortion.header)
260  return header_;
261 }
263  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
264  if (message_arena == NULL) {
265  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
266  }
267  if (header) {
268  ::google::protobuf::Arena* submessage_arena = NULL;
269  if (message_arena != submessage_arena) {
270  header = ::google::protobuf::internal::GetOwnedMessage(
271  message_arena, header, submessage_arena);
272  }
273 
274  } else {
275 
276  }
277  header_ = header;
278  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Distortion.header)
279 }
280 
281 // .gz.msgs.Vector2d center = 2;
282 inline bool Distortion::has_center() const {
283  return this != internal_default_instance() && center_ != NULL;
284 }
285 inline const ::gz::msgs::Vector2d& Distortion::_internal_center() const {
286  return *center_;
287 }
288 inline const ::gz::msgs::Vector2d& Distortion::center() const {
289  const ::gz::msgs::Vector2d* p = center_;
290  // @@protoc_insertion_point(field_get:gz.msgs.Distortion.center)
291  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Vector2d*>(
293 }
294 inline ::gz::msgs::Vector2d* Distortion::release_center() {
295  // @@protoc_insertion_point(field_release:gz.msgs.Distortion.center)
296 
297  ::gz::msgs::Vector2d* temp = center_;
298  center_ = NULL;
299  return temp;
300 }
301 inline ::gz::msgs::Vector2d* Distortion::mutable_center() {
302 
303  if (center_ == NULL) {
304  auto* p = CreateMaybeMessage<::gz::msgs::Vector2d>(GetArenaNoVirtual());
305  center_ = p;
306  }
307  // @@protoc_insertion_point(field_mutable:gz.msgs.Distortion.center)
308  return center_;
309 }
311  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
312  if (message_arena == NULL) {
313  delete reinterpret_cast< ::google::protobuf::MessageLite*>(center_);
314  }
315  if (center) {
316  ::google::protobuf::Arena* submessage_arena = NULL;
317  if (message_arena != submessage_arena) {
318  center = ::google::protobuf::internal::GetOwnedMessage(
319  message_arena, center, submessage_arena);
320  }
321 
322  } else {
323 
324  }
325  center_ = center;
326  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Distortion.center)
327 }
328 
329 // double k1 = 3;
330 inline void Distortion::clear_k1() {
331  k1_ = 0;
332 }
333 inline double Distortion::k1() const {
334  // @@protoc_insertion_point(field_get:gz.msgs.Distortion.k1)
335  return k1_;
336 }
337 inline void Distortion::set_k1(double value) {
338 
339  k1_ = value;
340  // @@protoc_insertion_point(field_set:gz.msgs.Distortion.k1)
341 }
342 
343 // double k2 = 4;
344 inline void Distortion::clear_k2() {
345  k2_ = 0;
346 }
347 inline double Distortion::k2() const {
348  // @@protoc_insertion_point(field_get:gz.msgs.Distortion.k2)
349  return k2_;
350 }
351 inline void Distortion::set_k2(double value) {
352 
353  k2_ = value;
354  // @@protoc_insertion_point(field_set:gz.msgs.Distortion.k2)
355 }
356 
357 // double k3 = 5;
358 inline void Distortion::clear_k3() {
359  k3_ = 0;
360 }
361 inline double Distortion::k3() const {
362  // @@protoc_insertion_point(field_get:gz.msgs.Distortion.k3)
363  return k3_;
364 }
365 inline void Distortion::set_k3(double value) {
366 
367  k3_ = value;
368  // @@protoc_insertion_point(field_set:gz.msgs.Distortion.k3)
369 }
370 
371 // double p1 = 6;
372 inline void Distortion::clear_p1() {
373  p1_ = 0;
374 }
375 inline double Distortion::p1() const {
376  // @@protoc_insertion_point(field_get:gz.msgs.Distortion.p1)
377  return p1_;
378 }
379 inline void Distortion::set_p1(double value) {
380 
381  p1_ = value;
382  // @@protoc_insertion_point(field_set:gz.msgs.Distortion.p1)
383 }
384 
385 // double p2 = 7;
386 inline void Distortion::clear_p2() {
387  p2_ = 0;
388 }
389 inline double Distortion::p2() const {
390  // @@protoc_insertion_point(field_get:gz.msgs.Distortion.p2)
391  return p2_;
392 }
393 inline void Distortion::set_p2(double value) {
394 
395  p2_ = value;
396  // @@protoc_insertion_point(field_set:gz.msgs.Distortion.p2)
397 }
398 
399 #ifdef __GNUC__
400  #pragma GCC diagnostic pop
401 #endif // __GNUC__
402 
403 // @@protoc_insertion_point(namespace_scope)
404 
405 } // namespace msgs
406 } // namespace gz
407 
408 // @@protoc_insertion_point(global_scope)
409 
410 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fdistortion_2eproto