Gazebo Msgs

API Reference

9.5.0
twist.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/twist.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2ftwist_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2ftwist_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/vector3d.pb.h"
34 #include "gz/msgs/header.pb.h"
35 // @@protoc_insertion_point(includes)
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2ftwist_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_2ftwist_2eproto
50 namespace gz {
51 namespace msgs {
52 class Twist;
53 class TwistDefaultTypeInternal;
54 GZ_MSGS_VISIBLE extern TwistDefaultTypeInternal _Twist_default_instance_;
55 } // namespace msgs
56 } // namespace gz
57 namespace google {
58 namespace protobuf {
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::Twist* Arena::CreateMaybeMessage<::gz::msgs::Twist>(Arena*);
60 } // namespace protobuf
61 } // namespace google
62 namespace gz {
63 namespace msgs {
64 
65 // ===================================================================
66 
67 class GZ_MSGS_VISIBLE Twist : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Twist) */ {
68  public:
69  Twist();
70  virtual ~Twist();
71 
72  Twist(const Twist& from);
73 
74  inline Twist& operator=(const Twist& from) {
75  CopyFrom(from);
76  return *this;
77  }
78  #if LANG_CXX11
79  Twist(Twist&& from) noexcept
80  : Twist() {
81  *this = ::std::move(from);
82  }
83 
84  inline Twist& operator=(Twist&& 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 Twist& default_instance();
95 
96  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
97  static inline const Twist* internal_default_instance() {
98  return reinterpret_cast<const Twist*>(
100  }
101  static constexpr int kIndexInFileMessages =
102  0;
103 
104  void Swap(Twist* other);
105  friend void swap(Twist& a, Twist& b) {
106  a.Swap(&b);
107  }
108 
109  // implements Message ----------------------------------------------
110 
111  inline Twist* New() const final {
112  return CreateMaybeMessage<Twist>(NULL);
113  }
114 
115  Twist* New(::google::protobuf::Arena* arena) const final {
116  return CreateMaybeMessage<Twist>(arena);
117  }
118  void CopyFrom(const ::google::protobuf::Message& from) final;
119  void MergeFrom(const ::google::protobuf::Message& from) final;
120  void CopyFrom(const Twist& from);
121  void MergeFrom(const Twist& 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(Twist* 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.Vector3d linear = 2;
167  bool has_linear() const;
168  void clear_linear();
169  static const int kLinearFieldNumber = 2;
170  private:
171  const ::gz::msgs::Vector3d& _internal_linear() const;
172  public:
173  const ::gz::msgs::Vector3d& linear() const;
174  ::gz::msgs::Vector3d* release_linear();
175  ::gz::msgs::Vector3d* mutable_linear();
176  void set_allocated_linear(::gz::msgs::Vector3d* linear);
177 
178  // .gz.msgs.Vector3d angular = 3;
179  bool has_angular() const;
180  void clear_angular();
181  static const int kAngularFieldNumber = 3;
182  private:
183  const ::gz::msgs::Vector3d& _internal_angular() const;
184  public:
185  const ::gz::msgs::Vector3d& angular() const;
186  ::gz::msgs::Vector3d* release_angular();
187  ::gz::msgs::Vector3d* mutable_angular();
188  void set_allocated_angular(::gz::msgs::Vector3d* angular);
189 
190  // @@protoc_insertion_point(class_scope:gz.msgs.Twist)
191  private:
192 
193  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
194  ::gz::msgs::Header* header_;
195  ::gz::msgs::Vector3d* linear_;
196  ::gz::msgs::Vector3d* angular_;
197  mutable ::google::protobuf::internal::CachedSize _cached_size_;
198  friend struct ::protobuf_gz_2fmsgs_2ftwist_2eproto::TableStruct;
199 };
200 // ===================================================================
201 
202 
203 // ===================================================================
204 
205 #ifdef __GNUC__
206  #pragma GCC diagnostic push
207  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
208 #endif // __GNUC__
209 // Twist
210 
211 // .gz.msgs.Header header = 1;
212 inline bool Twist::has_header() const {
213  return this != internal_default_instance() && header_ != NULL;
214 }
215 inline const ::gz::msgs::Header& Twist::_internal_header() const {
216  return *header_;
217 }
218 inline const ::gz::msgs::Header& Twist::header() const {
219  const ::gz::msgs::Header* p = header_;
220  // @@protoc_insertion_point(field_get:gz.msgs.Twist.header)
221  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
223 }
224 inline ::gz::msgs::Header* Twist::release_header() {
225  // @@protoc_insertion_point(field_release:gz.msgs.Twist.header)
226 
227  ::gz::msgs::Header* temp = header_;
228  header_ = NULL;
229  return temp;
230 }
231 inline ::gz::msgs::Header* Twist::mutable_header() {
232 
233  if (header_ == NULL) {
234  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
235  header_ = p;
236  }
237  // @@protoc_insertion_point(field_mutable:gz.msgs.Twist.header)
238  return header_;
239 }
241  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
242  if (message_arena == NULL) {
243  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
244  }
245  if (header) {
246  ::google::protobuf::Arena* submessage_arena = NULL;
247  if (message_arena != submessage_arena) {
248  header = ::google::protobuf::internal::GetOwnedMessage(
249  message_arena, header, submessage_arena);
250  }
251 
252  } else {
253 
254  }
255  header_ = header;
256  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Twist.header)
257 }
258 
259 // .gz.msgs.Vector3d linear = 2;
260 inline bool Twist::has_linear() const {
261  return this != internal_default_instance() && linear_ != NULL;
262 }
263 inline const ::gz::msgs::Vector3d& Twist::_internal_linear() const {
264  return *linear_;
265 }
266 inline const ::gz::msgs::Vector3d& Twist::linear() const {
267  const ::gz::msgs::Vector3d* p = linear_;
268  // @@protoc_insertion_point(field_get:gz.msgs.Twist.linear)
269  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Vector3d*>(
271 }
272 inline ::gz::msgs::Vector3d* Twist::release_linear() {
273  // @@protoc_insertion_point(field_release:gz.msgs.Twist.linear)
274 
275  ::gz::msgs::Vector3d* temp = linear_;
276  linear_ = NULL;
277  return temp;
278 }
279 inline ::gz::msgs::Vector3d* Twist::mutable_linear() {
280 
281  if (linear_ == NULL) {
282  auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
283  linear_ = p;
284  }
285  // @@protoc_insertion_point(field_mutable:gz.msgs.Twist.linear)
286  return linear_;
287 }
289  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
290  if (message_arena == NULL) {
291  delete reinterpret_cast< ::google::protobuf::MessageLite*>(linear_);
292  }
293  if (linear) {
294  ::google::protobuf::Arena* submessage_arena = NULL;
295  if (message_arena != submessage_arena) {
296  linear = ::google::protobuf::internal::GetOwnedMessage(
297  message_arena, linear, submessage_arena);
298  }
299 
300  } else {
301 
302  }
303  linear_ = linear;
304  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Twist.linear)
305 }
306 
307 // .gz.msgs.Vector3d angular = 3;
308 inline bool Twist::has_angular() const {
309  return this != internal_default_instance() && angular_ != NULL;
310 }
311 inline const ::gz::msgs::Vector3d& Twist::_internal_angular() const {
312  return *angular_;
313 }
314 inline const ::gz::msgs::Vector3d& Twist::angular() const {
315  const ::gz::msgs::Vector3d* p = angular_;
316  // @@protoc_insertion_point(field_get:gz.msgs.Twist.angular)
317  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Vector3d*>(
319 }
320 inline ::gz::msgs::Vector3d* Twist::release_angular() {
321  // @@protoc_insertion_point(field_release:gz.msgs.Twist.angular)
322 
323  ::gz::msgs::Vector3d* temp = angular_;
324  angular_ = NULL;
325  return temp;
326 }
327 inline ::gz::msgs::Vector3d* Twist::mutable_angular() {
328 
329  if (angular_ == NULL) {
330  auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
331  angular_ = p;
332  }
333  // @@protoc_insertion_point(field_mutable:gz.msgs.Twist.angular)
334  return angular_;
335 }
337  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
338  if (message_arena == NULL) {
339  delete reinterpret_cast< ::google::protobuf::MessageLite*>(angular_);
340  }
341  if (angular) {
342  ::google::protobuf::Arena* submessage_arena = NULL;
343  if (message_arena != submessage_arena) {
344  angular = ::google::protobuf::internal::GetOwnedMessage(
345  message_arena, angular, submessage_arena);
346  }
347 
348  } else {
349 
350  }
351  angular_ = angular;
352  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Twist.angular)
353 }
354 
355 #ifdef __GNUC__
356  #pragma GCC diagnostic pop
357 #endif // __GNUC__
358 
359 // @@protoc_insertion_point(namespace_scope)
360 
361 } // namespace msgs
362 } // namespace gz
363 
364 // @@protoc_insertion_point(global_scope)
365 
366 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2ftwist_2eproto