Ignition Msgs

API Reference

8.2.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: ignition/msgs/oriented_3d_box.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2foriented_5f3d_5fbox_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2foriented_5f3d_5fbox_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3000000
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 3000000 < 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/arena.h>
23 #include <google/protobuf/arenastring.h>
24 #include <google/protobuf/generated_message_util.h>
25 #include <google/protobuf/metadata.h>
26 #include <google/protobuf/message.h>
27 #include <google/protobuf/repeated_field.h>
28 #include <google/protobuf/extension_set.h>
29 #include <google/protobuf/unknown_field_set.h>
33 #ifndef _MSC_VER
34 #pragma GCC system_header
35 #else
36 #pragma warning(push)
37 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
38 #endif
39 #ifdef __linux__
40 #include <sys/sysmacros.h>
41 #endif
42 #include <memory>
43 #include <ignition/msgs/Export.hh>
44 // @@protoc_insertion_point(includes)
45 
46 namespace ignition {
47 namespace msgs {
48 
49 // Internal implementation detail -- do not call these.
53 
54 class Oriented3DBox;
55 
56 // ===================================================================
57 
58 class IGNITION_MSGS_VISIBLE Oriented3DBox : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Oriented3DBox) */ {
59  public:
60  Oriented3DBox();
61  virtual ~Oriented3DBox();
62 
63  Oriented3DBox(const Oriented3DBox& from);
64 
65  inline Oriented3DBox& operator=(const Oriented3DBox& from) {
66  CopyFrom(from);
67  return *this;
68  }
69 
70  static const ::google::protobuf::Descriptor* descriptor();
71  static const Oriented3DBox& default_instance();
72 
73  void Swap(Oriented3DBox* other);
74 
75  // implements Message ----------------------------------------------
76 
77  inline Oriented3DBox* New() const { return New(NULL); }
78 
79  Oriented3DBox* New(::google::protobuf::Arena* arena) const;
80  void CopyFrom(const ::google::protobuf::Message& from);
81  void MergeFrom(const ::google::protobuf::Message& from);
82  void CopyFrom(const Oriented3DBox& from);
83  void MergeFrom(const Oriented3DBox& from);
84  void Clear();
85  bool IsInitialized() const;
86 
87  int ByteSize() const;
88  bool MergePartialFromCodedStream(
89  ::google::protobuf::io::CodedInputStream* input);
90  void SerializeWithCachedSizes(
91  ::google::protobuf::io::CodedOutputStream* output) const;
92  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
93  bool deterministic, ::google::protobuf::uint8* output) const;
94  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
95  return InternalSerializeWithCachedSizesToArray(false, output);
96  }
97  int GetCachedSize() const { return _cached_size_; }
98  private:
99  void SharedCtor();
100  void SharedDtor();
101  void SetCachedSize(int size) const;
102  void InternalSwap(Oriented3DBox* other);
103  private:
104  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
105  return _internal_metadata_.arena();
106  }
107  inline void* MaybeArenaPtr() const {
108  return _internal_metadata_.raw_arena_ptr();
109  }
110  public:
111 
112  ::google::protobuf::Metadata GetMetadata() const;
113 
114  // nested types ----------------------------------------------------
115 
116  // accessors -------------------------------------------------------
117 
118  // optional .ignition.msgs.Header header = 1;
119  bool has_header() const;
120  void clear_header();
121  static const int kHeaderFieldNumber = 1;
122  const ::ignition::msgs::Header& header() const;
123  ::ignition::msgs::Header* mutable_header();
124  ::ignition::msgs::Header* release_header();
125  void set_allocated_header(::ignition::msgs::Header* header);
126 
127  // optional .ignition.msgs.Vector3d center = 2;
128  bool has_center() const;
129  void clear_center();
130  static const int kCenterFieldNumber = 2;
131  const ::ignition::msgs::Vector3d& center() const;
132  ::ignition::msgs::Vector3d* mutable_center();
133  ::ignition::msgs::Vector3d* release_center();
134  void set_allocated_center(::ignition::msgs::Vector3d* center);
135 
136  // optional .ignition.msgs.Quaternion orientation = 3;
137  bool has_orientation() const;
138  void clear_orientation();
139  static const int kOrientationFieldNumber = 3;
140  const ::ignition::msgs::Quaternion& orientation() const;
141  ::ignition::msgs::Quaternion* mutable_orientation();
142  ::ignition::msgs::Quaternion* release_orientation();
143  void set_allocated_orientation(::ignition::msgs::Quaternion* orientation);
144 
145  // optional .ignition.msgs.Vector3d boxSize = 4;
146  bool has_boxsize() const;
147  void clear_boxsize();
148  static const int kBoxSizeFieldNumber = 4;
149  const ::ignition::msgs::Vector3d& boxsize() const;
150  ::ignition::msgs::Vector3d* mutable_boxsize();
151  ::ignition::msgs::Vector3d* release_boxsize();
152  void set_allocated_boxsize(::ignition::msgs::Vector3d* boxsize);
153 
154  // @@protoc_insertion_point(class_scope:ignition.msgs.Oriented3DBox)
155  private:
156 
157  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
158  bool _is_default_instance_;
159  ::ignition::msgs::Header* header_;
161  ::ignition::msgs::Quaternion* orientation_;
162  ::ignition::msgs::Vector3d* boxsize_;
163  mutable int _cached_size_;
164  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2foriented_5f3d_5fbox_2eproto();
167 
168  void InitAsDefaultInstance();
169  static Oriented3DBox* default_instance_;
170 };
171 // ===================================================================
172 
173 
174 // ===================================================================
175 
176 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
177 // Oriented3DBox
178 
179 // optional .ignition.msgs.Header header = 1;
180 inline bool Oriented3DBox::has_header() const {
181  return !_is_default_instance_ && header_ != NULL;
182 }
184  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
185  header_ = NULL;
186 }
187 inline const ::ignition::msgs::Header& Oriented3DBox::header() const {
188  // @@protoc_insertion_point(field_get:ignition.msgs.Oriented3DBox.header)
189  return header_ != NULL ? *header_ : *default_instance_->header_;
190 }
191 inline ::ignition::msgs::Header* Oriented3DBox::mutable_header() {
192 
193  if (header_ == NULL) {
194  header_ = new ::ignition::msgs::Header;
195  }
196  // @@protoc_insertion_point(field_mutable:ignition.msgs.Oriented3DBox.header)
197  return header_;
198 }
199 inline ::ignition::msgs::Header* Oriented3DBox::release_header() {
200  // @@protoc_insertion_point(field_release:ignition.msgs.Oriented3DBox.header)
201 
202  ::ignition::msgs::Header* temp = header_;
203  header_ = NULL;
204  return temp;
205 }
207  delete header_;
208  header_ = header;
209  if (header) {
210 
211  } else {
212 
213  }
214  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Oriented3DBox.header)
215 }
216 
217 // optional .ignition.msgs.Vector3d center = 2;
218 inline bool Oriented3DBox::has_center() const {
219  return !_is_default_instance_ && center_ != NULL;
220 }
222  if (GetArenaNoVirtual() == NULL && center_ != NULL) delete center_;
223  center_ = NULL;
224 }
225 inline const ::ignition::msgs::Vector3d& Oriented3DBox::center() const {
226  // @@protoc_insertion_point(field_get:ignition.msgs.Oriented3DBox.center)
227  return center_ != NULL ? *center_ : *default_instance_->center_;
228 }
229 inline ::ignition::msgs::Vector3d* Oriented3DBox::mutable_center() {
230 
231  if (center_ == NULL) {
232  center_ = new ::ignition::msgs::Vector3d;
233  }
234  // @@protoc_insertion_point(field_mutable:ignition.msgs.Oriented3DBox.center)
235  return center_;
236 }
237 inline ::ignition::msgs::Vector3d* Oriented3DBox::release_center() {
238  // @@protoc_insertion_point(field_release:ignition.msgs.Oriented3DBox.center)
239 
240  ::ignition::msgs::Vector3d* temp = center_;
241  center_ = NULL;
242  return temp;
243 }
245  delete center_;
246  center_ = center;
247  if (center) {
248 
249  } else {
250 
251  }
252  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Oriented3DBox.center)
253 }
254 
255 // optional .ignition.msgs.Quaternion orientation = 3;
256 inline bool Oriented3DBox::has_orientation() const {
257  return !_is_default_instance_ && orientation_ != NULL;
258 }
260  if (GetArenaNoVirtual() == NULL && orientation_ != NULL) delete orientation_;
261  orientation_ = NULL;
262 }
263 inline const ::ignition::msgs::Quaternion& Oriented3DBox::orientation() const {
264  // @@protoc_insertion_point(field_get:ignition.msgs.Oriented3DBox.orientation)
265  return orientation_ != NULL ? *orientation_ : *default_instance_->orientation_;
266 }
267 inline ::ignition::msgs::Quaternion* Oriented3DBox::mutable_orientation() {
268 
269  if (orientation_ == NULL) {
270  orientation_ = new ::ignition::msgs::Quaternion;
271  }
272  // @@protoc_insertion_point(field_mutable:ignition.msgs.Oriented3DBox.orientation)
273  return orientation_;
274 }
275 inline ::ignition::msgs::Quaternion* Oriented3DBox::release_orientation() {
276  // @@protoc_insertion_point(field_release:ignition.msgs.Oriented3DBox.orientation)
277 
278  ::ignition::msgs::Quaternion* temp = orientation_;
279  orientation_ = NULL;
280  return temp;
281 }
283  delete orientation_;
284  orientation_ = orientation;
285  if (orientation) {
286 
287  } else {
288 
289  }
290  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Oriented3DBox.orientation)
291 }
292 
293 // optional .ignition.msgs.Vector3d boxSize = 4;
294 inline bool Oriented3DBox::has_boxsize() const {
295  return !_is_default_instance_ && boxsize_ != NULL;
296 }
298  if (GetArenaNoVirtual() == NULL && boxsize_ != NULL) delete boxsize_;
299  boxsize_ = NULL;
300 }
301 inline const ::ignition::msgs::Vector3d& Oriented3DBox::boxsize() const {
302  // @@protoc_insertion_point(field_get:ignition.msgs.Oriented3DBox.boxSize)
303  return boxsize_ != NULL ? *boxsize_ : *default_instance_->boxsize_;
304 }
305 inline ::ignition::msgs::Vector3d* Oriented3DBox::mutable_boxsize() {
306 
307  if (boxsize_ == NULL) {
308  boxsize_ = new ::ignition::msgs::Vector3d;
309  }
310  // @@protoc_insertion_point(field_mutable:ignition.msgs.Oriented3DBox.boxSize)
311  return boxsize_;
312 }
313 inline ::ignition::msgs::Vector3d* Oriented3DBox::release_boxsize() {
314  // @@protoc_insertion_point(field_release:ignition.msgs.Oriented3DBox.boxSize)
315 
316  ::ignition::msgs::Vector3d* temp = boxsize_;
317  boxsize_ = NULL;
318  return temp;
319 }
321  delete boxsize_;
322  boxsize_ = boxsize;
323  if (boxsize) {
324 
325  } else {
326 
327  }
328  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Oriented3DBox.boxSize)
329 }
330 
331 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
332 
337 // @@protoc_insertion_point(namespace_scope)
338 
339 } // namespace msgs
340 } // namespace ignition
341 
342 #ifdef _MSC_VER
343 #pragma warning(pop)
344 #endif
345 // @@protoc_insertion_point(global_scope)
346 
347 #endif // PROTOBUF_ignition_2fmsgs_2foriented_5f3d_5fbox_2eproto__INCLUDED
bool has_center() const
Definition: oriented_3d_box.pb.h:218
bool has_header() const
Definition: oriented_3d_box.pb.h:180
::ignition::msgs::Quaternion * mutable_orientation()
Definition: oriented_3d_box.pb.h:267
void clear_boxsize()
Definition: oriented_3d_box.pb.h:297
std::shared_ptr< Oriented3DBox > Oriented3DBoxSharedPtr
Definition: oriented_3d_box.pb.h:335
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: oriented_3d_box.pb.h:94
std::shared_ptr< const Oriented3DBox > ConstOriented3DBoxSharedPtr
Definition: oriented_3d_box.pb.h:336
::ignition::msgs::Vector3d * release_center()
Definition: oriented_3d_box.pb.h:237
void set_allocated_orientation(::ignition::msgs::Quaternion *orientation)
Definition: oriented_3d_box.pb.h:282
void protobuf_AssignDesc_ignition_2fmsgs_2foriented_5f3d_5fbox_2eproto()
::ignition::msgs::Vector3d * mutable_center()
Definition: oriented_3d_box.pb.h:229
::ignition::msgs::Quaternion * release_orientation()
Definition: oriented_3d_box.pb.h:275
Definition: header.pb.h:161
void set_allocated_boxsize(::ignition::msgs::Vector3d *boxsize)
Definition: oriented_3d_box.pb.h:320
::ignition::msgs::Vector3d * release_boxsize()
Definition: oriented_3d_box.pb.h:313
::ignition::msgs::Header * release_header()
Definition: oriented_3d_box.pb.h:199
const ::ignition::msgs::Header & header() const
Definition: oriented_3d_box.pb.h:187
bool has_boxsize() const
Definition: oriented_3d_box.pb.h:294
Definition: vector3d.pb.h:56
Definition: oriented_3d_box.pb.h:58
Oriented3DBox & operator=(const Oriented3DBox &from)
Definition: oriented_3d_box.pb.h:65
STL class.
std::unique_ptr< Oriented3DBox > Oriented3DBoxUniquePtr
Definition: oriented_3d_box.pb.h:333
const ::ignition::msgs::Vector3d & center() const
Definition: oriented_3d_box.pb.h:225
const ::ignition::msgs::Quaternion & orientation() const
Definition: oriented_3d_box.pb.h:263
::ignition::msgs::Header * mutable_header()
Definition: oriented_3d_box.pb.h:191
void set_allocated_center(::ignition::msgs::Vector3d *center)
Definition: oriented_3d_box.pb.h:244
void protobuf_ShutdownFile_ignition_2fmsgs_2foriented_5f3d_5fbox_2eproto()
::ignition::msgs::Vector3d * mutable_boxsize()
Definition: oriented_3d_box.pb.h:305
void set_allocated_header(::ignition::msgs::Header *header)
Definition: oriented_3d_box.pb.h:206
void clear_header()
Definition: oriented_3d_box.pb.h:183
int GetCachedSize() const
Definition: oriented_3d_box.pb.h:97
bool has_orientation() const
Definition: oriented_3d_box.pb.h:256
void clear_orientation()
Definition: oriented_3d_box.pb.h:259
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2foriented_5f3d_5fbox_2eproto()
Oriented3DBox * New() const
Definition: oriented_3d_box.pb.h:77
const ::ignition::msgs::Vector3d & boxsize() const
Definition: oriented_3d_box.pb.h:301
void clear_center()
Definition: oriented_3d_box.pb.h:221
std::unique_ptr< const Oriented3DBox > ConstOriented3DBoxUniquePtr
Definition: oriented_3d_box.pb.h:334
Definition: quaternion.pb.h:56