Ignition Msgs

API Reference

5.6.0
pose.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/pose.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fpose_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fpose_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.
50 void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fpose_2eproto();
53 
54 class Pose;
55 
56 // ===================================================================
57 
58 class IGNITION_MSGS_VISIBLE Pose : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Pose) */ {
59  public:
60  Pose();
61  virtual ~Pose();
62 
63  Pose(const Pose& from);
64 
65  inline Pose& operator=(const Pose& from) {
66  CopyFrom(from);
67  return *this;
68  }
69 
70  static const ::google::protobuf::Descriptor* descriptor();
71  static const Pose& default_instance();
72 
73  void Swap(Pose* other);
74 
75  // implements Message ----------------------------------------------
76 
77  inline Pose* New() const { return New(NULL); }
78 
79  Pose* 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 Pose& from);
83  void MergeFrom(const Pose& 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(Pose* 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 string name = 2;
128  void clear_name();
129  static const int kNameFieldNumber = 2;
130  const ::std::string& name() const;
131  void set_name(const ::std::string& value);
132  void set_name(const char* value);
133  void set_name(const char* value, size_t size);
134  ::std::string* mutable_name();
135  ::std::string* release_name();
136  void set_allocated_name(::std::string* name);
137 
138  // optional uint32 id = 3;
139  void clear_id();
140  static const int kIdFieldNumber = 3;
141  ::google::protobuf::uint32 id() const;
142  void set_id(::google::protobuf::uint32 value);
143 
144  // optional .ignition.msgs.Vector3d position = 4;
145  bool has_position() const;
146  void clear_position();
147  static const int kPositionFieldNumber = 4;
148  const ::ignition::msgs::Vector3d& position() const;
149  ::ignition::msgs::Vector3d* mutable_position();
150  ::ignition::msgs::Vector3d* release_position();
151  void set_allocated_position(::ignition::msgs::Vector3d* position);
152 
153  // optional .ignition.msgs.Quaternion orientation = 5;
154  bool has_orientation() const;
155  void clear_orientation();
156  static const int kOrientationFieldNumber = 5;
157  const ::ignition::msgs::Quaternion& orientation() const;
158  ::ignition::msgs::Quaternion* mutable_orientation();
159  ::ignition::msgs::Quaternion* release_orientation();
160  void set_allocated_orientation(::ignition::msgs::Quaternion* orientation);
161 
162  // @@protoc_insertion_point(class_scope:ignition.msgs.Pose)
163  private:
164 
165  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
166  bool _is_default_instance_;
167  ::ignition::msgs::Header* header_;
168  ::google::protobuf::internal::ArenaStringPtr name_;
169  ::ignition::msgs::Vector3d* position_;
170  ::ignition::msgs::Quaternion* orientation_;
171  ::google::protobuf::uint32 id_;
172  mutable int _cached_size_;
173  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fpose_2eproto();
176 
177  void InitAsDefaultInstance();
178  static Pose* default_instance_;
179 };
180 // ===================================================================
181 
182 
183 // ===================================================================
184 
185 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
186 // Pose
187 
188 // optional .ignition.msgs.Header header = 1;
189 inline bool Pose::has_header() const {
190  return !_is_default_instance_ && header_ != NULL;
191 }
192 inline void Pose::clear_header() {
193  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
194  header_ = NULL;
195 }
196 inline const ::ignition::msgs::Header& Pose::header() const {
197  // @@protoc_insertion_point(field_get:ignition.msgs.Pose.header)
198  return header_ != NULL ? *header_ : *default_instance_->header_;
199 }
200 inline ::ignition::msgs::Header* Pose::mutable_header() {
201 
202  if (header_ == NULL) {
203  header_ = new ::ignition::msgs::Header;
204  }
205  // @@protoc_insertion_point(field_mutable:ignition.msgs.Pose.header)
206  return header_;
207 }
208 inline ::ignition::msgs::Header* Pose::release_header() {
209  // @@protoc_insertion_point(field_release:ignition.msgs.Pose.header)
210 
211  ::ignition::msgs::Header* temp = header_;
212  header_ = NULL;
213  return temp;
214 }
216  delete header_;
217  header_ = header;
218  if (header) {
219 
220  } else {
221 
222  }
223  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Pose.header)
224 }
225 
226 // optional string name = 2;
227 inline void Pose::clear_name() {
228  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
229 }
230 inline const ::std::string& Pose::name() const {
231  // @@protoc_insertion_point(field_get:ignition.msgs.Pose.name)
232  return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
233 }
234 inline void Pose::set_name(const ::std::string& value) {
235 
236  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
237  // @@protoc_insertion_point(field_set:ignition.msgs.Pose.name)
238 }
239 inline void Pose::set_name(const char* value) {
240 
241  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
242  // @@protoc_insertion_point(field_set_char:ignition.msgs.Pose.name)
243 }
244 inline void Pose::set_name(const char* value, size_t size) {
245 
246  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
247  ::std::string(reinterpret_cast<const char*>(value), size));
248  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Pose.name)
249 }
250 inline ::std::string* Pose::mutable_name() {
251 
252  // @@protoc_insertion_point(field_mutable:ignition.msgs.Pose.name)
253  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
254 }
255 inline ::std::string* Pose::release_name() {
256  // @@protoc_insertion_point(field_release:ignition.msgs.Pose.name)
257 
258  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
259 }
260 inline void Pose::set_allocated_name(::std::string* name) {
261  if (name != NULL) {
262 
263  } else {
264 
265  }
266  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
267  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Pose.name)
268 }
269 
270 // optional uint32 id = 3;
271 inline void Pose::clear_id() {
272  id_ = 0u;
273 }
274 inline ::google::protobuf::uint32 Pose::id() const {
275  // @@protoc_insertion_point(field_get:ignition.msgs.Pose.id)
276  return id_;
277 }
278 inline void Pose::set_id(::google::protobuf::uint32 value) {
279 
280  id_ = value;
281  // @@protoc_insertion_point(field_set:ignition.msgs.Pose.id)
282 }
283 
284 // optional .ignition.msgs.Vector3d position = 4;
285 inline bool Pose::has_position() const {
286  return !_is_default_instance_ && position_ != NULL;
287 }
288 inline void Pose::clear_position() {
289  if (GetArenaNoVirtual() == NULL && position_ != NULL) delete position_;
290  position_ = NULL;
291 }
292 inline const ::ignition::msgs::Vector3d& Pose::position() const {
293  // @@protoc_insertion_point(field_get:ignition.msgs.Pose.position)
294  return position_ != NULL ? *position_ : *default_instance_->position_;
295 }
296 inline ::ignition::msgs::Vector3d* Pose::mutable_position() {
297 
298  if (position_ == NULL) {
299  position_ = new ::ignition::msgs::Vector3d;
300  }
301  // @@protoc_insertion_point(field_mutable:ignition.msgs.Pose.position)
302  return position_;
303 }
304 inline ::ignition::msgs::Vector3d* Pose::release_position() {
305  // @@protoc_insertion_point(field_release:ignition.msgs.Pose.position)
306 
307  ::ignition::msgs::Vector3d* temp = position_;
308  position_ = NULL;
309  return temp;
310 }
312  delete position_;
313  position_ = position;
314  if (position) {
315 
316  } else {
317 
318  }
319  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Pose.position)
320 }
321 
322 // optional .ignition.msgs.Quaternion orientation = 5;
323 inline bool Pose::has_orientation() const {
324  return !_is_default_instance_ && orientation_ != NULL;
325 }
326 inline void Pose::clear_orientation() {
327  if (GetArenaNoVirtual() == NULL && orientation_ != NULL) delete orientation_;
328  orientation_ = NULL;
329 }
330 inline const ::ignition::msgs::Quaternion& Pose::orientation() const {
331  // @@protoc_insertion_point(field_get:ignition.msgs.Pose.orientation)
332  return orientation_ != NULL ? *orientation_ : *default_instance_->orientation_;
333 }
334 inline ::ignition::msgs::Quaternion* Pose::mutable_orientation() {
335 
336  if (orientation_ == NULL) {
337  orientation_ = new ::ignition::msgs::Quaternion;
338  }
339  // @@protoc_insertion_point(field_mutable:ignition.msgs.Pose.orientation)
340  return orientation_;
341 }
342 inline ::ignition::msgs::Quaternion* Pose::release_orientation() {
343  // @@protoc_insertion_point(field_release:ignition.msgs.Pose.orientation)
344 
345  ::ignition::msgs::Quaternion* temp = orientation_;
346  orientation_ = NULL;
347  return temp;
348 }
350  delete orientation_;
351  orientation_ = orientation;
352  if (orientation) {
353 
354  } else {
355 
356  }
357  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Pose.orientation)
358 }
359 
360 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
361 
366 // @@protoc_insertion_point(namespace_scope)
367 
368 } // namespace msgs
369 } // namespace ignition
370 
371 #ifdef _MSC_VER
372 #pragma warning(pop)
373 #endif
374 // @@protoc_insertion_point(global_scope)
375 
376 #endif // PROTOBUF_ignition_2fmsgs_2fpose_2eproto__INCLUDED
::ignition::msgs::Vector3d * release_position()
Definition: pose.pb.h:304
Definition: pose.pb.h:58
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: pose.pb.h:94
void set_id(::google::protobuf::uint32 value)
Definition: pose.pb.h:278
::ignition::msgs::Header * mutable_header()
Definition: pose.pb.h:200
std::shared_ptr< Pose > PoseSharedPtr
Definition: pose.pb.h:364
void set_allocated_name(::std::string *name)
Definition: pose.pb.h:260
std::unique_ptr< Pose > PoseUniquePtr
Definition: pose.pb.h:362
void set_allocated_position(::ignition::msgs::Vector3d *position)
Definition: pose.pb.h:311
const ::std::string & name() const
Definition: pose.pb.h:230
void set_allocated_orientation(::ignition::msgs::Quaternion *orientation)
Definition: pose.pb.h:349
::std::string * release_name()
Definition: pose.pb.h:255
void clear_id()
Definition: pose.pb.h:271
Definition: header.pb.h:161
STL class.
::ignition::msgs::Vector3d * mutable_position()
Definition: pose.pb.h:296
const ::ignition::msgs::Header & header() const
Definition: pose.pb.h:196
void clear_orientation()
Definition: pose.pb.h:326
const ::ignition::msgs::Vector3d & position() const
Definition: pose.pb.h:292
void protobuf_ShutdownFile_ignition_2fmsgs_2fpose_2eproto()
::ignition::msgs::Quaternion * release_orientation()
Definition: pose.pb.h:342
::google::protobuf::uint32 id() const
Definition: pose.pb.h:274
bool has_position() const
Definition: pose.pb.h:285
void clear_position()
Definition: pose.pb.h:288
::std::string * mutable_name()
Definition: pose.pb.h:250
std::unique_ptr< const Pose > ConstPoseUniquePtr
Definition: pose.pb.h:363
::ignition::msgs::Header * release_header()
Definition: pose.pb.h:208
bool has_orientation() const
Definition: pose.pb.h:323
Definition: vector3d.pb.h:56
Pose * New() const
Definition: pose.pb.h:77
const ::ignition::msgs::Quaternion & orientation() const
Definition: pose.pb.h:330
STL class.
void clear_header()
Definition: pose.pb.h:192
void protobuf_AssignDesc_ignition_2fmsgs_2fpose_2eproto()
bool has_header() const
Definition: pose.pb.h:189
void set_name(const ::std::string &value)
Definition: pose.pb.h:234
void clear_name()
Definition: pose.pb.h:227
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fpose_2eproto()
Pose & operator=(const Pose &from)
Definition: pose.pb.h:65
void set_allocated_header(::ignition::msgs::Header *header)
Definition: pose.pb.h:215
std::shared_ptr< const Pose > ConstPoseSharedPtr
Definition: pose.pb.h:365
Definition: quaternion.pb.h:56
int GetCachedSize() const
Definition: pose.pb.h:97
::ignition::msgs::Quaternion * mutable_orientation()
Definition: pose.pb.h:334