Gazebo Msgs

API Reference

9.5.1
twist_with_covariance.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/twist_with_covariance.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2ftwist_5fwith_5fcovariance_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2ftwist_5fwith_5fcovariance_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/float_v.pb.h"
34 #include "gz/msgs/twist.pb.h"
35 // @@protoc_insertion_point(includes)
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2ftwist_5fwith_5fcovariance_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_5fwith_5fcovariance_2eproto
50 namespace gz {
51 namespace msgs {
52 class TwistWithCovariance;
53 class TwistWithCovarianceDefaultTypeInternal;
54 GZ_MSGS_VISIBLE extern TwistWithCovarianceDefaultTypeInternal _TwistWithCovariance_default_instance_;
55 } // namespace msgs
56 } // namespace gz
57 namespace google {
58 namespace protobuf {
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::TwistWithCovariance* Arena::CreateMaybeMessage<::gz::msgs::TwistWithCovariance>(Arena*);
60 } // namespace protobuf
61 } // namespace google
62 namespace gz {
63 namespace msgs {
64 
65 // ===================================================================
66 
67 class GZ_MSGS_VISIBLE TwistWithCovariance : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.TwistWithCovariance) */ {
68  public:
70  virtual ~TwistWithCovariance();
71 
73 
75  CopyFrom(from);
76  return *this;
77  }
78  #if LANG_CXX11
81  *this = ::std::move(from);
82  }
83 
84  inline TwistWithCovariance& operator=(TwistWithCovariance&& 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 TwistWithCovariance& default_instance();
95 
96  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
98  return reinterpret_cast<const TwistWithCovariance*>(
100  }
101  static constexpr int kIndexInFileMessages =
102  0;
103 
104  void Swap(TwistWithCovariance* other);
106  a.Swap(&b);
107  }
108 
109  // implements Message ----------------------------------------------
110 
111  inline TwistWithCovariance* New() const final {
112  return CreateMaybeMessage<TwistWithCovariance>(NULL);
113  }
114 
115  TwistWithCovariance* New(::google::protobuf::Arena* arena) const final {
116  return CreateMaybeMessage<TwistWithCovariance>(arena);
117  }
118  void CopyFrom(const ::google::protobuf::Message& from) final;
119  void MergeFrom(const ::google::protobuf::Message& from) final;
120  void CopyFrom(const TwistWithCovariance& from);
121  void MergeFrom(const TwistWithCovariance& 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(TwistWithCovariance* 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.Twist twist = 1;
155  bool has_twist() const;
156  void clear_twist();
157  static const int kTwistFieldNumber = 1;
158  private:
159  const ::gz::msgs::Twist& _internal_twist() const;
160  public:
161  const ::gz::msgs::Twist& twist() const;
162  ::gz::msgs::Twist* release_twist();
163  ::gz::msgs::Twist* mutable_twist();
164  void set_allocated_twist(::gz::msgs::Twist* twist);
165 
166  // .gz.msgs.Float_V covariance = 2;
167  bool has_covariance() const;
168  void clear_covariance();
169  static const int kCovarianceFieldNumber = 2;
170  private:
171  const ::gz::msgs::Float_V& _internal_covariance() const;
172  public:
173  const ::gz::msgs::Float_V& covariance() const;
174  ::gz::msgs::Float_V* release_covariance();
175  ::gz::msgs::Float_V* mutable_covariance();
176  void set_allocated_covariance(::gz::msgs::Float_V* covariance);
177 
178  // @@protoc_insertion_point(class_scope:gz.msgs.TwistWithCovariance)
179  private:
180 
181  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
182  ::gz::msgs::Twist* twist_;
183  ::gz::msgs::Float_V* covariance_;
184  mutable ::google::protobuf::internal::CachedSize _cached_size_;
186 };
187 // ===================================================================
188 
189 
190 // ===================================================================
191 
192 #ifdef __GNUC__
193  #pragma GCC diagnostic push
194  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
195 #endif // __GNUC__
196 // TwistWithCovariance
197 
198 // .gz.msgs.Twist twist = 1;
199 inline bool TwistWithCovariance::has_twist() const {
200  return this != internal_default_instance() && twist_ != NULL;
201 }
202 inline const ::gz::msgs::Twist& TwistWithCovariance::_internal_twist() const {
203  return *twist_;
204 }
205 inline const ::gz::msgs::Twist& TwistWithCovariance::twist() const {
206  const ::gz::msgs::Twist* p = twist_;
207  // @@protoc_insertion_point(field_get:gz.msgs.TwistWithCovariance.twist)
208  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Twist*>(
210 }
211 inline ::gz::msgs::Twist* TwistWithCovariance::release_twist() {
212  // @@protoc_insertion_point(field_release:gz.msgs.TwistWithCovariance.twist)
213 
214  ::gz::msgs::Twist* temp = twist_;
215  twist_ = NULL;
216  return temp;
217 }
218 inline ::gz::msgs::Twist* TwistWithCovariance::mutable_twist() {
219 
220  if (twist_ == NULL) {
221  auto* p = CreateMaybeMessage<::gz::msgs::Twist>(GetArenaNoVirtual());
222  twist_ = p;
223  }
224  // @@protoc_insertion_point(field_mutable:gz.msgs.TwistWithCovariance.twist)
225  return twist_;
226 }
228  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
229  if (message_arena == NULL) {
230  delete reinterpret_cast< ::google::protobuf::MessageLite*>(twist_);
231  }
232  if (twist) {
233  ::google::protobuf::Arena* submessage_arena = NULL;
234  if (message_arena != submessage_arena) {
235  twist = ::google::protobuf::internal::GetOwnedMessage(
236  message_arena, twist, submessage_arena);
237  }
238 
239  } else {
240 
241  }
242  twist_ = twist;
243  // @@protoc_insertion_point(field_set_allocated:gz.msgs.TwistWithCovariance.twist)
244 }
245 
246 // .gz.msgs.Float_V covariance = 2;
248  return this != internal_default_instance() && covariance_ != NULL;
249 }
250 inline const ::gz::msgs::Float_V& TwistWithCovariance::_internal_covariance() const {
251  return *covariance_;
252 }
253 inline const ::gz::msgs::Float_V& TwistWithCovariance::covariance() const {
254  const ::gz::msgs::Float_V* p = covariance_;
255  // @@protoc_insertion_point(field_get:gz.msgs.TwistWithCovariance.covariance)
256  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Float_V*>(
258 }
259 inline ::gz::msgs::Float_V* TwistWithCovariance::release_covariance() {
260  // @@protoc_insertion_point(field_release:gz.msgs.TwistWithCovariance.covariance)
261 
262  ::gz::msgs::Float_V* temp = covariance_;
263  covariance_ = NULL;
264  return temp;
265 }
266 inline ::gz::msgs::Float_V* TwistWithCovariance::mutable_covariance() {
267 
268  if (covariance_ == NULL) {
269  auto* p = CreateMaybeMessage<::gz::msgs::Float_V>(GetArenaNoVirtual());
270  covariance_ = p;
271  }
272  // @@protoc_insertion_point(field_mutable:gz.msgs.TwistWithCovariance.covariance)
273  return covariance_;
274 }
276  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
277  if (message_arena == NULL) {
278  delete reinterpret_cast< ::google::protobuf::MessageLite*>(covariance_);
279  }
280  if (covariance) {
281  ::google::protobuf::Arena* submessage_arena = NULL;
282  if (message_arena != submessage_arena) {
283  covariance = ::google::protobuf::internal::GetOwnedMessage(
284  message_arena, covariance, submessage_arena);
285  }
286 
287  } else {
288 
289  }
290  covariance_ = covariance;
291  // @@protoc_insertion_point(field_set_allocated:gz.msgs.TwistWithCovariance.covariance)
292 }
293 
294 #ifdef __GNUC__
295  #pragma GCC diagnostic pop
296 #endif // __GNUC__
297 
298 // @@protoc_insertion_point(namespace_scope)
299 
300 } // namespace msgs
301 } // namespace gz
302 
303 // @@protoc_insertion_point(global_scope)
304 
305 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2ftwist_5fwith_5fcovariance_2eproto