Gazebo Msgs

API Reference

9.5.0
axis_aligned_box.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/axis_aligned_box.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2faxis_5faligned_5fbox_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2faxis_5faligned_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 // @@protoc_insertion_point(includes)
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2faxis_5faligned_5fbox_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_2faxis_5faligned_5fbox_2eproto
50 namespace gz {
51 namespace msgs {
52 class AxisAlignedBox;
53 class AxisAlignedBoxDefaultTypeInternal;
54 GZ_MSGS_VISIBLE extern AxisAlignedBoxDefaultTypeInternal _AxisAlignedBox_default_instance_;
55 } // namespace msgs
56 } // namespace gz
57 namespace google {
58 namespace protobuf {
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::AxisAlignedBox* Arena::CreateMaybeMessage<::gz::msgs::AxisAlignedBox>(Arena*);
60 } // namespace protobuf
61 } // namespace google
62 namespace gz {
63 namespace msgs {
64 
65 // ===================================================================
66 
67 class GZ_MSGS_VISIBLE AxisAlignedBox : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.AxisAlignedBox) */ {
68  public:
70  virtual ~AxisAlignedBox();
71 
72  AxisAlignedBox(const AxisAlignedBox& from);
73 
74  inline AxisAlignedBox& operator=(const AxisAlignedBox& from) {
75  CopyFrom(from);
76  return *this;
77  }
78  #if LANG_CXX11
79  AxisAlignedBox(AxisAlignedBox&& from) noexcept
80  : AxisAlignedBox() {
81  *this = ::std::move(from);
82  }
83 
84  inline AxisAlignedBox& operator=(AxisAlignedBox&& 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 AxisAlignedBox& default_instance();
95 
96  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
97  static inline const AxisAlignedBox* internal_default_instance() {
98  return reinterpret_cast<const AxisAlignedBox*>(
100  }
101  static constexpr int kIndexInFileMessages =
102  0;
103 
104  void Swap(AxisAlignedBox* other);
105  friend void swap(AxisAlignedBox& a, AxisAlignedBox& b) {
106  a.Swap(&b);
107  }
108 
109  // implements Message ----------------------------------------------
110 
111  inline AxisAlignedBox* New() const final {
112  return CreateMaybeMessage<AxisAlignedBox>(NULL);
113  }
114 
115  AxisAlignedBox* New(::google::protobuf::Arena* arena) const final {
116  return CreateMaybeMessage<AxisAlignedBox>(arena);
117  }
118  void CopyFrom(const ::google::protobuf::Message& from) final;
119  void MergeFrom(const ::google::protobuf::Message& from) final;
120  void CopyFrom(const AxisAlignedBox& from);
121  void MergeFrom(const AxisAlignedBox& 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(AxisAlignedBox* 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 min_corner = 2;
167  bool has_min_corner() const;
168  void clear_min_corner();
169  static const int kMinCornerFieldNumber = 2;
170  private:
171  const ::gz::msgs::Vector3d& _internal_min_corner() const;
172  public:
173  const ::gz::msgs::Vector3d& min_corner() const;
174  ::gz::msgs::Vector3d* release_min_corner();
175  ::gz::msgs::Vector3d* mutable_min_corner();
176  void set_allocated_min_corner(::gz::msgs::Vector3d* min_corner);
177 
178  // .gz.msgs.Vector3d max_corner = 3;
179  bool has_max_corner() const;
180  void clear_max_corner();
181  static const int kMaxCornerFieldNumber = 3;
182  private:
183  const ::gz::msgs::Vector3d& _internal_max_corner() const;
184  public:
185  const ::gz::msgs::Vector3d& max_corner() const;
186  ::gz::msgs::Vector3d* release_max_corner();
187  ::gz::msgs::Vector3d* mutable_max_corner();
188  void set_allocated_max_corner(::gz::msgs::Vector3d* max_corner);
189 
190  // @@protoc_insertion_point(class_scope:gz.msgs.AxisAlignedBox)
191  private:
192 
193  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
194  ::gz::msgs::Header* header_;
195  ::gz::msgs::Vector3d* min_corner_;
196  ::gz::msgs::Vector3d* max_corner_;
197  mutable ::google::protobuf::internal::CachedSize _cached_size_;
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 // AxisAlignedBox
210 
211 // .gz.msgs.Header header = 1;
212 inline bool AxisAlignedBox::has_header() const {
213  return this != internal_default_instance() && header_ != NULL;
214 }
215 inline const ::gz::msgs::Header& AxisAlignedBox::_internal_header() const {
216  return *header_;
217 }
218 inline const ::gz::msgs::Header& AxisAlignedBox::header() const {
219  const ::gz::msgs::Header* p = header_;
220  // @@protoc_insertion_point(field_get:gz.msgs.AxisAlignedBox.header)
221  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
223 }
224 inline ::gz::msgs::Header* AxisAlignedBox::release_header() {
225  // @@protoc_insertion_point(field_release:gz.msgs.AxisAlignedBox.header)
226 
227  ::gz::msgs::Header* temp = header_;
228  header_ = NULL;
229  return temp;
230 }
231 inline ::gz::msgs::Header* AxisAlignedBox::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.AxisAlignedBox.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.AxisAlignedBox.header)
257 }
258 
259 // .gz.msgs.Vector3d min_corner = 2;
260 inline bool AxisAlignedBox::has_min_corner() const {
261  return this != internal_default_instance() && min_corner_ != NULL;
262 }
263 inline const ::gz::msgs::Vector3d& AxisAlignedBox::_internal_min_corner() const {
264  return *min_corner_;
265 }
266 inline const ::gz::msgs::Vector3d& AxisAlignedBox::min_corner() const {
267  const ::gz::msgs::Vector3d* p = min_corner_;
268  // @@protoc_insertion_point(field_get:gz.msgs.AxisAlignedBox.min_corner)
269  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Vector3d*>(
271 }
272 inline ::gz::msgs::Vector3d* AxisAlignedBox::release_min_corner() {
273  // @@protoc_insertion_point(field_release:gz.msgs.AxisAlignedBox.min_corner)
274 
275  ::gz::msgs::Vector3d* temp = min_corner_;
276  min_corner_ = NULL;
277  return temp;
278 }
279 inline ::gz::msgs::Vector3d* AxisAlignedBox::mutable_min_corner() {
280 
281  if (min_corner_ == NULL) {
282  auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
283  min_corner_ = p;
284  }
285  // @@protoc_insertion_point(field_mutable:gz.msgs.AxisAlignedBox.min_corner)
286  return min_corner_;
287 }
289  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
290  if (message_arena == NULL) {
291  delete reinterpret_cast< ::google::protobuf::MessageLite*>(min_corner_);
292  }
293  if (min_corner) {
294  ::google::protobuf::Arena* submessage_arena = NULL;
295  if (message_arena != submessage_arena) {
296  min_corner = ::google::protobuf::internal::GetOwnedMessage(
297  message_arena, min_corner, submessage_arena);
298  }
299 
300  } else {
301 
302  }
303  min_corner_ = min_corner;
304  // @@protoc_insertion_point(field_set_allocated:gz.msgs.AxisAlignedBox.min_corner)
305 }
306 
307 // .gz.msgs.Vector3d max_corner = 3;
308 inline bool AxisAlignedBox::has_max_corner() const {
309  return this != internal_default_instance() && max_corner_ != NULL;
310 }
311 inline const ::gz::msgs::Vector3d& AxisAlignedBox::_internal_max_corner() const {
312  return *max_corner_;
313 }
314 inline const ::gz::msgs::Vector3d& AxisAlignedBox::max_corner() const {
315  const ::gz::msgs::Vector3d* p = max_corner_;
316  // @@protoc_insertion_point(field_get:gz.msgs.AxisAlignedBox.max_corner)
317  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Vector3d*>(
319 }
320 inline ::gz::msgs::Vector3d* AxisAlignedBox::release_max_corner() {
321  // @@protoc_insertion_point(field_release:gz.msgs.AxisAlignedBox.max_corner)
322 
323  ::gz::msgs::Vector3d* temp = max_corner_;
324  max_corner_ = NULL;
325  return temp;
326 }
327 inline ::gz::msgs::Vector3d* AxisAlignedBox::mutable_max_corner() {
328 
329  if (max_corner_ == NULL) {
330  auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
331  max_corner_ = p;
332  }
333  // @@protoc_insertion_point(field_mutable:gz.msgs.AxisAlignedBox.max_corner)
334  return max_corner_;
335 }
337  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
338  if (message_arena == NULL) {
339  delete reinterpret_cast< ::google::protobuf::MessageLite*>(max_corner_);
340  }
341  if (max_corner) {
342  ::google::protobuf::Arena* submessage_arena = NULL;
343  if (message_arena != submessage_arena) {
344  max_corner = ::google::protobuf::internal::GetOwnedMessage(
345  message_arena, max_corner, submessage_arena);
346  }
347 
348  } else {
349 
350  }
351  max_corner_ = max_corner;
352  // @@protoc_insertion_point(field_set_allocated:gz.msgs.AxisAlignedBox.max_corner)
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_2faxis_5faligned_5fbox_2eproto