Gazebo Msgs

API Reference

9.5.0
odometry_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/odometry_with_covariance.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fodometry_5fwith_5fcovariance_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fodometry_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/header.pb.h"
34 #include "gz/msgs/pose_with_covariance.pb.h"
35 #include "gz/msgs/twist_with_covariance.pb.h"
36 // @@protoc_insertion_point(includes)
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fodometry_5fwith_5fcovariance_2eproto GZ_MSGS_VISIBLE
38 
40 // Internal implementation detail -- do not use these members.
41 struct GZ_MSGS_VISIBLE TableStruct {
42  static const ::google::protobuf::internal::ParseTableField entries[];
43  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
44  static const ::google::protobuf::internal::ParseTable schema[1];
45  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
46  static const ::google::protobuf::internal::SerializationTable serialization_table[];
47  static const ::google::protobuf::uint32 offsets[];
48 };
49 void GZ_MSGS_VISIBLE AddDescriptors();
50 } // namespace protobuf_gz_2fmsgs_2fodometry_5fwith_5fcovariance_2eproto
51 namespace gz {
52 namespace msgs {
53 class OdometryWithCovariance;
54 class OdometryWithCovarianceDefaultTypeInternal;
55 GZ_MSGS_VISIBLE extern OdometryWithCovarianceDefaultTypeInternal _OdometryWithCovariance_default_instance_;
56 } // namespace msgs
57 } // namespace gz
58 namespace google {
59 namespace protobuf {
60 template<> GZ_MSGS_VISIBLE ::gz::msgs::OdometryWithCovariance* Arena::CreateMaybeMessage<::gz::msgs::OdometryWithCovariance>(Arena*);
61 } // namespace protobuf
62 } // namespace google
63 namespace gz {
64 namespace msgs {
65 
66 // ===================================================================
67 
68 class GZ_MSGS_VISIBLE OdometryWithCovariance : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.OdometryWithCovariance) */ {
69  public:
71  virtual ~OdometryWithCovariance();
72 
74 
76  CopyFrom(from);
77  return *this;
78  }
79  #if LANG_CXX11
82  *this = ::std::move(from);
83  }
84 
85  inline OdometryWithCovariance& operator=(OdometryWithCovariance&& from) noexcept {
86  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
87  if (this != &from) InternalSwap(&from);
88  } else {
89  CopyFrom(from);
90  }
91  return *this;
92  }
93  #endif
94  static const ::google::protobuf::Descriptor* descriptor();
95  static const OdometryWithCovariance& default_instance();
96 
97  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
99  return reinterpret_cast<const OdometryWithCovariance*>(
101  }
102  static constexpr int kIndexInFileMessages =
103  0;
104 
105  void Swap(OdometryWithCovariance* other);
107  a.Swap(&b);
108  }
109 
110  // implements Message ----------------------------------------------
111 
112  inline OdometryWithCovariance* New() const final {
113  return CreateMaybeMessage<OdometryWithCovariance>(NULL);
114  }
115 
116  OdometryWithCovariance* New(::google::protobuf::Arena* arena) const final {
117  return CreateMaybeMessage<OdometryWithCovariance>(arena);
118  }
119  void CopyFrom(const ::google::protobuf::Message& from) final;
120  void MergeFrom(const ::google::protobuf::Message& from) final;
121  void CopyFrom(const OdometryWithCovariance& from);
122  void MergeFrom(const OdometryWithCovariance& from);
123  void Clear() final;
124  bool IsInitialized() const final;
125 
126  size_t ByteSizeLong() const final;
127  bool MergePartialFromCodedStream(
128  ::google::protobuf::io::CodedInputStream* input) final;
129  void SerializeWithCachedSizes(
130  ::google::protobuf::io::CodedOutputStream* output) const final;
131  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
132  bool deterministic, ::google::protobuf::uint8* target) const final;
133  int GetCachedSize() const final { return _cached_size_.Get(); }
134 
135  private:
136  void SharedCtor();
137  void SharedDtor();
138  void SetCachedSize(int size) const final;
139  void InternalSwap(OdometryWithCovariance* other);
140  private:
141  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
142  return NULL;
143  }
144  inline void* MaybeArenaPtr() const {
145  return NULL;
146  }
147  public:
148 
149  ::google::protobuf::Metadata GetMetadata() const final;
150 
151  // nested types ----------------------------------------------------
152 
153  // accessors -------------------------------------------------------
154 
155  // .gz.msgs.Header header = 1;
156  bool has_header() const;
157  void clear_header();
158  static const int kHeaderFieldNumber = 1;
159  private:
160  const ::gz::msgs::Header& _internal_header() const;
161  public:
162  const ::gz::msgs::Header& header() const;
163  ::gz::msgs::Header* release_header();
164  ::gz::msgs::Header* mutable_header();
165  void set_allocated_header(::gz::msgs::Header* header);
166 
167  // .gz.msgs.PoseWithCovariance pose_with_covariance = 2;
168  bool has_pose_with_covariance() const;
169  void clear_pose_with_covariance();
170  static const int kPoseWithCovarianceFieldNumber = 2;
171  private:
172  const ::gz::msgs::PoseWithCovariance& _internal_pose_with_covariance() const;
173  public:
174  const ::gz::msgs::PoseWithCovariance& pose_with_covariance() const;
175  ::gz::msgs::PoseWithCovariance* release_pose_with_covariance();
176  ::gz::msgs::PoseWithCovariance* mutable_pose_with_covariance();
177  void set_allocated_pose_with_covariance(::gz::msgs::PoseWithCovariance* pose_with_covariance);
178 
179  // .gz.msgs.TwistWithCovariance twist_with_covariance = 3;
180  bool has_twist_with_covariance() const;
181  void clear_twist_with_covariance();
182  static const int kTwistWithCovarianceFieldNumber = 3;
183  private:
184  const ::gz::msgs::TwistWithCovariance& _internal_twist_with_covariance() const;
185  public:
186  const ::gz::msgs::TwistWithCovariance& twist_with_covariance() const;
187  ::gz::msgs::TwistWithCovariance* release_twist_with_covariance();
188  ::gz::msgs::TwistWithCovariance* mutable_twist_with_covariance();
189  void set_allocated_twist_with_covariance(::gz::msgs::TwistWithCovariance* twist_with_covariance);
190 
191  // @@protoc_insertion_point(class_scope:gz.msgs.OdometryWithCovariance)
192  private:
193 
194  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
195  ::gz::msgs::Header* header_;
196  ::gz::msgs::PoseWithCovariance* pose_with_covariance_;
197  ::gz::msgs::TwistWithCovariance* twist_with_covariance_;
198  mutable ::google::protobuf::internal::CachedSize _cached_size_;
200 };
201 // ===================================================================
202 
203 
204 // ===================================================================
205 
206 #ifdef __GNUC__
207  #pragma GCC diagnostic push
208  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
209 #endif // __GNUC__
210 // OdometryWithCovariance
211 
212 // .gz.msgs.Header header = 1;
214  return this != internal_default_instance() && header_ != NULL;
215 }
216 inline const ::gz::msgs::Header& OdometryWithCovariance::_internal_header() const {
217  return *header_;
218 }
219 inline const ::gz::msgs::Header& OdometryWithCovariance::header() const {
220  const ::gz::msgs::Header* p = header_;
221  // @@protoc_insertion_point(field_get:gz.msgs.OdometryWithCovariance.header)
222  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
224 }
225 inline ::gz::msgs::Header* OdometryWithCovariance::release_header() {
226  // @@protoc_insertion_point(field_release:gz.msgs.OdometryWithCovariance.header)
227 
228  ::gz::msgs::Header* temp = header_;
229  header_ = NULL;
230  return temp;
231 }
232 inline ::gz::msgs::Header* OdometryWithCovariance::mutable_header() {
233 
234  if (header_ == NULL) {
235  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
236  header_ = p;
237  }
238  // @@protoc_insertion_point(field_mutable:gz.msgs.OdometryWithCovariance.header)
239  return header_;
240 }
242  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
243  if (message_arena == NULL) {
244  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
245  }
246  if (header) {
247  ::google::protobuf::Arena* submessage_arena = NULL;
248  if (message_arena != submessage_arena) {
249  header = ::google::protobuf::internal::GetOwnedMessage(
250  message_arena, header, submessage_arena);
251  }
252 
253  } else {
254 
255  }
256  header_ = header;
257  // @@protoc_insertion_point(field_set_allocated:gz.msgs.OdometryWithCovariance.header)
258 }
259 
260 // .gz.msgs.PoseWithCovariance pose_with_covariance = 2;
262  return this != internal_default_instance() && pose_with_covariance_ != NULL;
263 }
264 inline const ::gz::msgs::PoseWithCovariance& OdometryWithCovariance::_internal_pose_with_covariance() const {
265  return *pose_with_covariance_;
266 }
267 inline const ::gz::msgs::PoseWithCovariance& OdometryWithCovariance::pose_with_covariance() const {
268  const ::gz::msgs::PoseWithCovariance* p = pose_with_covariance_;
269  // @@protoc_insertion_point(field_get:gz.msgs.OdometryWithCovariance.pose_with_covariance)
270  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::PoseWithCovariance*>(
272 }
273 inline ::gz::msgs::PoseWithCovariance* OdometryWithCovariance::release_pose_with_covariance() {
274  // @@protoc_insertion_point(field_release:gz.msgs.OdometryWithCovariance.pose_with_covariance)
275 
276  ::gz::msgs::PoseWithCovariance* temp = pose_with_covariance_;
277  pose_with_covariance_ = NULL;
278  return temp;
279 }
280 inline ::gz::msgs::PoseWithCovariance* OdometryWithCovariance::mutable_pose_with_covariance() {
281 
282  if (pose_with_covariance_ == NULL) {
283  auto* p = CreateMaybeMessage<::gz::msgs::PoseWithCovariance>(GetArenaNoVirtual());
284  pose_with_covariance_ = p;
285  }
286  // @@protoc_insertion_point(field_mutable:gz.msgs.OdometryWithCovariance.pose_with_covariance)
287  return pose_with_covariance_;
288 }
290  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
291  if (message_arena == NULL) {
292  delete reinterpret_cast< ::google::protobuf::MessageLite*>(pose_with_covariance_);
293  }
294  if (pose_with_covariance) {
295  ::google::protobuf::Arena* submessage_arena = NULL;
296  if (message_arena != submessage_arena) {
297  pose_with_covariance = ::google::protobuf::internal::GetOwnedMessage(
298  message_arena, pose_with_covariance, submessage_arena);
299  }
300 
301  } else {
302 
303  }
304  pose_with_covariance_ = pose_with_covariance;
305  // @@protoc_insertion_point(field_set_allocated:gz.msgs.OdometryWithCovariance.pose_with_covariance)
306 }
307 
308 // .gz.msgs.TwistWithCovariance twist_with_covariance = 3;
310  return this != internal_default_instance() && twist_with_covariance_ != NULL;
311 }
312 inline const ::gz::msgs::TwistWithCovariance& OdometryWithCovariance::_internal_twist_with_covariance() const {
313  return *twist_with_covariance_;
314 }
315 inline const ::gz::msgs::TwistWithCovariance& OdometryWithCovariance::twist_with_covariance() const {
316  const ::gz::msgs::TwistWithCovariance* p = twist_with_covariance_;
317  // @@protoc_insertion_point(field_get:gz.msgs.OdometryWithCovariance.twist_with_covariance)
318  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::TwistWithCovariance*>(
320 }
321 inline ::gz::msgs::TwistWithCovariance* OdometryWithCovariance::release_twist_with_covariance() {
322  // @@protoc_insertion_point(field_release:gz.msgs.OdometryWithCovariance.twist_with_covariance)
323 
324  ::gz::msgs::TwistWithCovariance* temp = twist_with_covariance_;
325  twist_with_covariance_ = NULL;
326  return temp;
327 }
328 inline ::gz::msgs::TwistWithCovariance* OdometryWithCovariance::mutable_twist_with_covariance() {
329 
330  if (twist_with_covariance_ == NULL) {
331  auto* p = CreateMaybeMessage<::gz::msgs::TwistWithCovariance>(GetArenaNoVirtual());
332  twist_with_covariance_ = p;
333  }
334  // @@protoc_insertion_point(field_mutable:gz.msgs.OdometryWithCovariance.twist_with_covariance)
335  return twist_with_covariance_;
336 }
338  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
339  if (message_arena == NULL) {
340  delete reinterpret_cast< ::google::protobuf::MessageLite*>(twist_with_covariance_);
341  }
342  if (twist_with_covariance) {
343  ::google::protobuf::Arena* submessage_arena = NULL;
344  if (message_arena != submessage_arena) {
345  twist_with_covariance = ::google::protobuf::internal::GetOwnedMessage(
346  message_arena, twist_with_covariance, submessage_arena);
347  }
348 
349  } else {
350 
351  }
352  twist_with_covariance_ = twist_with_covariance;
353  // @@protoc_insertion_point(field_set_allocated:gz.msgs.OdometryWithCovariance.twist_with_covariance)
354 }
355 
356 #ifdef __GNUC__
357  #pragma GCC diagnostic pop
358 #endif // __GNUC__
359 
360 // @@protoc_insertion_point(namespace_scope)
361 
362 } // namespace msgs
363 } // namespace gz
364 
365 // @@protoc_insertion_point(global_scope)
366 
367 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fodometry_5fwith_5fcovariance_2eproto