Gazebo Msgs

API Reference

9.5.0
oriented_3d_box.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/oriented_3d_box.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2foriented_5f3d_5fbox_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2foriented_5f3d_5fbox_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/vector3d.pb.h"
35 #include "gz/msgs/quaternion.pb.h"
36 // @@protoc_insertion_point(includes)
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2foriented_5f3d_5fbox_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_2foriented_5f3d_5fbox_2eproto
51 namespace gz {
52 namespace msgs {
53 class Oriented3DBox;
54 class Oriented3DBoxDefaultTypeInternal;
55 GZ_MSGS_VISIBLE extern Oriented3DBoxDefaultTypeInternal _Oriented3DBox_default_instance_;
56 } // namespace msgs
57 } // namespace gz
58 namespace google {
59 namespace protobuf {
60 template<> GZ_MSGS_VISIBLE ::gz::msgs::Oriented3DBox* Arena::CreateMaybeMessage<::gz::msgs::Oriented3DBox>(Arena*);
61 } // namespace protobuf
62 } // namespace google
63 namespace gz {
64 namespace msgs {
65 
66 // ===================================================================
67 
68 class GZ_MSGS_VISIBLE Oriented3DBox : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Oriented3DBox) */ {
69  public:
70  Oriented3DBox();
71  virtual ~Oriented3DBox();
72 
73  Oriented3DBox(const Oriented3DBox& from);
74 
75  inline Oriented3DBox& operator=(const Oriented3DBox& from) {
76  CopyFrom(from);
77  return *this;
78  }
79  #if LANG_CXX11
80  Oriented3DBox(Oriented3DBox&& from) noexcept
81  : Oriented3DBox() {
82  *this = ::std::move(from);
83  }
84 
85  inline Oriented3DBox& operator=(Oriented3DBox&& 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 Oriented3DBox& default_instance();
96 
97  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
98  static inline const Oriented3DBox* internal_default_instance() {
99  return reinterpret_cast<const Oriented3DBox*>(
101  }
102  static constexpr int kIndexInFileMessages =
103  0;
104 
105  void Swap(Oriented3DBox* other);
106  friend void swap(Oriented3DBox& a, Oriented3DBox& b) {
107  a.Swap(&b);
108  }
109 
110  // implements Message ----------------------------------------------
111 
112  inline Oriented3DBox* New() const final {
113  return CreateMaybeMessage<Oriented3DBox>(NULL);
114  }
115 
116  Oriented3DBox* New(::google::protobuf::Arena* arena) const final {
117  return CreateMaybeMessage<Oriented3DBox>(arena);
118  }
119  void CopyFrom(const ::google::protobuf::Message& from) final;
120  void MergeFrom(const ::google::protobuf::Message& from) final;
121  void CopyFrom(const Oriented3DBox& from);
122  void MergeFrom(const Oriented3DBox& 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(Oriented3DBox* 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.Vector3d center = 2;
168  bool has_center() const;
169  void clear_center();
170  static const int kCenterFieldNumber = 2;
171  private:
172  const ::gz::msgs::Vector3d& _internal_center() const;
173  public:
174  const ::gz::msgs::Vector3d& center() const;
175  ::gz::msgs::Vector3d* release_center();
176  ::gz::msgs::Vector3d* mutable_center();
177  void set_allocated_center(::gz::msgs::Vector3d* center);
178 
179  // .gz.msgs.Quaternion orientation = 3;
180  bool has_orientation() const;
181  void clear_orientation();
182  static const int kOrientationFieldNumber = 3;
183  private:
184  const ::gz::msgs::Quaternion& _internal_orientation() const;
185  public:
186  const ::gz::msgs::Quaternion& orientation() const;
187  ::gz::msgs::Quaternion* release_orientation();
188  ::gz::msgs::Quaternion* mutable_orientation();
189  void set_allocated_orientation(::gz::msgs::Quaternion* orientation);
190 
191  // .gz.msgs.Vector3d boxSize = 4;
192  bool has_boxsize() const;
193  void clear_boxsize();
194  static const int kBoxSizeFieldNumber = 4;
195  private:
196  const ::gz::msgs::Vector3d& _internal_boxsize() const;
197  public:
198  const ::gz::msgs::Vector3d& boxsize() const;
199  ::gz::msgs::Vector3d* release_boxsize();
200  ::gz::msgs::Vector3d* mutable_boxsize();
201  void set_allocated_boxsize(::gz::msgs::Vector3d* boxsize);
202 
203  // @@protoc_insertion_point(class_scope:gz.msgs.Oriented3DBox)
204  private:
205 
206  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
207  ::gz::msgs::Header* header_;
208  ::gz::msgs::Vector3d* center_;
209  ::gz::msgs::Quaternion* orientation_;
210  ::gz::msgs::Vector3d* boxsize_;
211  mutable ::google::protobuf::internal::CachedSize _cached_size_;
213 };
214 // ===================================================================
215 
216 
217 // ===================================================================
218 
219 #ifdef __GNUC__
220  #pragma GCC diagnostic push
221  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
222 #endif // __GNUC__
223 // Oriented3DBox
224 
225 // .gz.msgs.Header header = 1;
226 inline bool Oriented3DBox::has_header() const {
227  return this != internal_default_instance() && header_ != NULL;
228 }
229 inline const ::gz::msgs::Header& Oriented3DBox::_internal_header() const {
230  return *header_;
231 }
232 inline const ::gz::msgs::Header& Oriented3DBox::header() const {
233  const ::gz::msgs::Header* p = header_;
234  // @@protoc_insertion_point(field_get:gz.msgs.Oriented3DBox.header)
235  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
237 }
238 inline ::gz::msgs::Header* Oriented3DBox::release_header() {
239  // @@protoc_insertion_point(field_release:gz.msgs.Oriented3DBox.header)
240 
241  ::gz::msgs::Header* temp = header_;
242  header_ = NULL;
243  return temp;
244 }
245 inline ::gz::msgs::Header* Oriented3DBox::mutable_header() {
246 
247  if (header_ == NULL) {
248  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
249  header_ = p;
250  }
251  // @@protoc_insertion_point(field_mutable:gz.msgs.Oriented3DBox.header)
252  return header_;
253 }
255  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
256  if (message_arena == NULL) {
257  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
258  }
259  if (header) {
260  ::google::protobuf::Arena* submessage_arena = NULL;
261  if (message_arena != submessage_arena) {
262  header = ::google::protobuf::internal::GetOwnedMessage(
263  message_arena, header, submessage_arena);
264  }
265 
266  } else {
267 
268  }
269  header_ = header;
270  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Oriented3DBox.header)
271 }
272 
273 // .gz.msgs.Vector3d center = 2;
274 inline bool Oriented3DBox::has_center() const {
275  return this != internal_default_instance() && center_ != NULL;
276 }
277 inline const ::gz::msgs::Vector3d& Oriented3DBox::_internal_center() const {
278  return *center_;
279 }
280 inline const ::gz::msgs::Vector3d& Oriented3DBox::center() const {
281  const ::gz::msgs::Vector3d* p = center_;
282  // @@protoc_insertion_point(field_get:gz.msgs.Oriented3DBox.center)
283  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Vector3d*>(
285 }
286 inline ::gz::msgs::Vector3d* Oriented3DBox::release_center() {
287  // @@protoc_insertion_point(field_release:gz.msgs.Oriented3DBox.center)
288 
289  ::gz::msgs::Vector3d* temp = center_;
290  center_ = NULL;
291  return temp;
292 }
293 inline ::gz::msgs::Vector3d* Oriented3DBox::mutable_center() {
294 
295  if (center_ == NULL) {
296  auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
297  center_ = p;
298  }
299  // @@protoc_insertion_point(field_mutable:gz.msgs.Oriented3DBox.center)
300  return center_;
301 }
303  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
304  if (message_arena == NULL) {
305  delete reinterpret_cast< ::google::protobuf::MessageLite*>(center_);
306  }
307  if (center) {
308  ::google::protobuf::Arena* submessage_arena = NULL;
309  if (message_arena != submessage_arena) {
310  center = ::google::protobuf::internal::GetOwnedMessage(
311  message_arena, center, submessage_arena);
312  }
313 
314  } else {
315 
316  }
317  center_ = center;
318  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Oriented3DBox.center)
319 }
320 
321 // .gz.msgs.Quaternion orientation = 3;
322 inline bool Oriented3DBox::has_orientation() const {
323  return this != internal_default_instance() && orientation_ != NULL;
324 }
325 inline const ::gz::msgs::Quaternion& Oriented3DBox::_internal_orientation() const {
326  return *orientation_;
327 }
328 inline const ::gz::msgs::Quaternion& Oriented3DBox::orientation() const {
329  const ::gz::msgs::Quaternion* p = orientation_;
330  // @@protoc_insertion_point(field_get:gz.msgs.Oriented3DBox.orientation)
331  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Quaternion*>(
333 }
334 inline ::gz::msgs::Quaternion* Oriented3DBox::release_orientation() {
335  // @@protoc_insertion_point(field_release:gz.msgs.Oriented3DBox.orientation)
336 
337  ::gz::msgs::Quaternion* temp = orientation_;
338  orientation_ = NULL;
339  return temp;
340 }
341 inline ::gz::msgs::Quaternion* Oriented3DBox::mutable_orientation() {
342 
343  if (orientation_ == NULL) {
344  auto* p = CreateMaybeMessage<::gz::msgs::Quaternion>(GetArenaNoVirtual());
345  orientation_ = p;
346  }
347  // @@protoc_insertion_point(field_mutable:gz.msgs.Oriented3DBox.orientation)
348  return orientation_;
349 }
351  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
352  if (message_arena == NULL) {
353  delete reinterpret_cast< ::google::protobuf::MessageLite*>(orientation_);
354  }
355  if (orientation) {
356  ::google::protobuf::Arena* submessage_arena = NULL;
357  if (message_arena != submessage_arena) {
358  orientation = ::google::protobuf::internal::GetOwnedMessage(
359  message_arena, orientation, submessage_arena);
360  }
361 
362  } else {
363 
364  }
365  orientation_ = orientation;
366  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Oriented3DBox.orientation)
367 }
368 
369 // .gz.msgs.Vector3d boxSize = 4;
370 inline bool Oriented3DBox::has_boxsize() const {
371  return this != internal_default_instance() && boxsize_ != NULL;
372 }
373 inline const ::gz::msgs::Vector3d& Oriented3DBox::_internal_boxsize() const {
374  return *boxsize_;
375 }
376 inline const ::gz::msgs::Vector3d& Oriented3DBox::boxsize() const {
377  const ::gz::msgs::Vector3d* p = boxsize_;
378  // @@protoc_insertion_point(field_get:gz.msgs.Oriented3DBox.boxSize)
379  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Vector3d*>(
381 }
382 inline ::gz::msgs::Vector3d* Oriented3DBox::release_boxsize() {
383  // @@protoc_insertion_point(field_release:gz.msgs.Oriented3DBox.boxSize)
384 
385  ::gz::msgs::Vector3d* temp = boxsize_;
386  boxsize_ = NULL;
387  return temp;
388 }
389 inline ::gz::msgs::Vector3d* Oriented3DBox::mutable_boxsize() {
390 
391  if (boxsize_ == NULL) {
392  auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
393  boxsize_ = p;
394  }
395  // @@protoc_insertion_point(field_mutable:gz.msgs.Oriented3DBox.boxSize)
396  return boxsize_;
397 }
399  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
400  if (message_arena == NULL) {
401  delete reinterpret_cast< ::google::protobuf::MessageLite*>(boxsize_);
402  }
403  if (boxsize) {
404  ::google::protobuf::Arena* submessage_arena = NULL;
405  if (message_arena != submessage_arena) {
406  boxsize = ::google::protobuf::internal::GetOwnedMessage(
407  message_arena, boxsize, submessage_arena);
408  }
409 
410  } else {
411 
412  }
413  boxsize_ = boxsize;
414  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Oriented3DBox.boxSize)
415 }
416 
417 #ifdef __GNUC__
418  #pragma GCC diagnostic pop
419 #endif // __GNUC__
420 
421 // @@protoc_insertion_point(namespace_scope)
422 
423 } // namespace msgs
424 } // namespace gz
425 
426 // @@protoc_insertion_point(global_scope)
427 
428 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2foriented_5f3d_5fbox_2eproto