Ignition Msgs

API Reference

8.0.0~pre1
quaternion.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/quaternion.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fquaternion_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fquaternion_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>
31 #ifndef _MSC_VER
32 #pragma GCC system_header
33 #else
34 #pragma warning(push)
35 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
36 #endif
37 #ifdef __linux__
38 #include <sys/sysmacros.h>
39 #endif
40 #include <memory>
41 #include <ignition/msgs/Export.hh>
42 // @@protoc_insertion_point(includes)
43 
44 namespace ignition {
45 namespace msgs {
46 
47 // Internal implementation detail -- do not call these.
51 
52 class Quaternion;
53 
54 // ===================================================================
55 
56 class IGNITION_MSGS_VISIBLE Quaternion : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Quaternion) */ {
57  public:
58  Quaternion();
59  virtual ~Quaternion();
60 
61  Quaternion(const Quaternion& from);
62 
63  inline Quaternion& operator=(const Quaternion& from) {
64  CopyFrom(from);
65  return *this;
66  }
67 
68  static const ::google::protobuf::Descriptor* descriptor();
69  static const Quaternion& default_instance();
70 
71  void Swap(Quaternion* other);
72 
73  // implements Message ----------------------------------------------
74 
75  inline Quaternion* New() const { return New(NULL); }
76 
77  Quaternion* New(::google::protobuf::Arena* arena) const;
78  void CopyFrom(const ::google::protobuf::Message& from);
79  void MergeFrom(const ::google::protobuf::Message& from);
80  void CopyFrom(const Quaternion& from);
81  void MergeFrom(const Quaternion& from);
82  void Clear();
83  bool IsInitialized() const;
84 
85  int ByteSize() const;
86  bool MergePartialFromCodedStream(
87  ::google::protobuf::io::CodedInputStream* input);
88  void SerializeWithCachedSizes(
89  ::google::protobuf::io::CodedOutputStream* output) const;
90  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
91  bool deterministic, ::google::protobuf::uint8* output) const;
92  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
93  return InternalSerializeWithCachedSizesToArray(false, output);
94  }
95  int GetCachedSize() const { return _cached_size_; }
96  private:
97  void SharedCtor();
98  void SharedDtor();
99  void SetCachedSize(int size) const;
100  void InternalSwap(Quaternion* other);
101  private:
102  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
103  return _internal_metadata_.arena();
104  }
105  inline void* MaybeArenaPtr() const {
106  return _internal_metadata_.raw_arena_ptr();
107  }
108  public:
109 
110  ::google::protobuf::Metadata GetMetadata() const;
111 
112  // nested types ----------------------------------------------------
113 
114  // accessors -------------------------------------------------------
115 
116  // optional .ignition.msgs.Header header = 1;
117  bool has_header() const;
118  void clear_header();
119  static const int kHeaderFieldNumber = 1;
120  const ::ignition::msgs::Header& header() const;
121  ::ignition::msgs::Header* mutable_header();
122  ::ignition::msgs::Header* release_header();
123  void set_allocated_header(::ignition::msgs::Header* header);
124 
125  // optional double x = 2;
126  void clear_x();
127  static const int kXFieldNumber = 2;
128  double x() const;
129  void set_x(double value);
130 
131  // optional double y = 3;
132  void clear_y();
133  static const int kYFieldNumber = 3;
134  double y() const;
135  void set_y(double value);
136 
137  // optional double z = 4;
138  void clear_z();
139  static const int kZFieldNumber = 4;
140  double z() const;
141  void set_z(double value);
142 
143  // optional double w = 5;
144  void clear_w();
145  static const int kWFieldNumber = 5;
146  double w() const;
147  void set_w(double value);
148 
149  // @@protoc_insertion_point(class_scope:ignition.msgs.Quaternion)
150  private:
151 
152  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
153  bool _is_default_instance_;
154  ::ignition::msgs::Header* header_;
155  double x_;
156  double y_;
157  double z_;
158  double w_;
159  mutable int _cached_size_;
160  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fquaternion_2eproto();
163 
164  void InitAsDefaultInstance();
165  static Quaternion* default_instance_;
166 };
167 // ===================================================================
168 
169 
170 // ===================================================================
171 
172 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
173 // Quaternion
174 
175 // optional .ignition.msgs.Header header = 1;
176 inline bool Quaternion::has_header() const {
177  return !_is_default_instance_ && header_ != NULL;
178 }
180  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
181  header_ = NULL;
182 }
183 inline const ::ignition::msgs::Header& Quaternion::header() const {
184  // @@protoc_insertion_point(field_get:ignition.msgs.Quaternion.header)
185  return header_ != NULL ? *header_ : *default_instance_->header_;
186 }
187 inline ::ignition::msgs::Header* Quaternion::mutable_header() {
188 
189  if (header_ == NULL) {
190  header_ = new ::ignition::msgs::Header;
191  }
192  // @@protoc_insertion_point(field_mutable:ignition.msgs.Quaternion.header)
193  return header_;
194 }
195 inline ::ignition::msgs::Header* Quaternion::release_header() {
196  // @@protoc_insertion_point(field_release:ignition.msgs.Quaternion.header)
197 
198  ::ignition::msgs::Header* temp = header_;
199  header_ = NULL;
200  return temp;
201 }
203  delete header_;
204  header_ = header;
205  if (header) {
206 
207  } else {
208 
209  }
210  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Quaternion.header)
211 }
212 
213 // optional double x = 2;
214 inline void Quaternion::clear_x() {
215  x_ = 0;
216 }
217 inline double Quaternion::x() const {
218  // @@protoc_insertion_point(field_get:ignition.msgs.Quaternion.x)
219  return x_;
220 }
221 inline void Quaternion::set_x(double value) {
222 
223  x_ = value;
224  // @@protoc_insertion_point(field_set:ignition.msgs.Quaternion.x)
225 }
226 
227 // optional double y = 3;
228 inline void Quaternion::clear_y() {
229  y_ = 0;
230 }
231 inline double Quaternion::y() const {
232  // @@protoc_insertion_point(field_get:ignition.msgs.Quaternion.y)
233  return y_;
234 }
235 inline void Quaternion::set_y(double value) {
236 
237  y_ = value;
238  // @@protoc_insertion_point(field_set:ignition.msgs.Quaternion.y)
239 }
240 
241 // optional double z = 4;
242 inline void Quaternion::clear_z() {
243  z_ = 0;
244 }
245 inline double Quaternion::z() const {
246  // @@protoc_insertion_point(field_get:ignition.msgs.Quaternion.z)
247  return z_;
248 }
249 inline void Quaternion::set_z(double value) {
250 
251  z_ = value;
252  // @@protoc_insertion_point(field_set:ignition.msgs.Quaternion.z)
253 }
254 
255 // optional double w = 5;
256 inline void Quaternion::clear_w() {
257  w_ = 0;
258 }
259 inline double Quaternion::w() const {
260  // @@protoc_insertion_point(field_get:ignition.msgs.Quaternion.w)
261  return w_;
262 }
263 inline void Quaternion::set_w(double value) {
264 
265  w_ = value;
266  // @@protoc_insertion_point(field_set:ignition.msgs.Quaternion.w)
267 }
268 
269 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
270 
275 // @@protoc_insertion_point(namespace_scope)
276 
277 } // namespace msgs
278 } // namespace ignition
279 
280 #ifdef _MSC_VER
281 #pragma warning(pop)
282 #endif
283 // @@protoc_insertion_point(global_scope)
284 
285 #endif // PROTOBUF_ignition_2fmsgs_2fquaternion_2eproto__INCLUDED
double y() const
Definition: quaternion.pb.h:231
::ignition::msgs::Header * release_header()
Definition: quaternion.pb.h:195
std::shared_ptr< const Quaternion > ConstQuaternionSharedPtr
Definition: quaternion.pb.h:274
double z() const
Definition: quaternion.pb.h:245
const ::ignition::msgs::Header & header() const
Definition: quaternion.pb.h:183
void set_w(double value)
Definition: quaternion.pb.h:263
void clear_header()
Definition: quaternion.pb.h:179
std::unique_ptr< const Quaternion > ConstQuaternionUniquePtr
Definition: quaternion.pb.h:272
void clear_x()
Definition: quaternion.pb.h:214
bool has_header() const
Definition: quaternion.pb.h:176
void clear_w()
Definition: quaternion.pb.h:256
void clear_y()
Definition: quaternion.pb.h:228
Definition: header.pb.h:161
void protobuf_ShutdownFile_ignition_2fmsgs_2fquaternion_2eproto()
double x() const
Definition: quaternion.pb.h:217
double w() const
Definition: quaternion.pb.h:259
void set_z(double value)
Definition: quaternion.pb.h:249
std::shared_ptr< Quaternion > QuaternionSharedPtr
Definition: quaternion.pb.h:273
std::unique_ptr< Quaternion > QuaternionUniquePtr
Definition: quaternion.pb.h:271
::ignition::msgs::Header * mutable_header()
Definition: quaternion.pb.h:187
void set_y(double value)
Definition: quaternion.pb.h:235
Quaternion * New() const
Definition: quaternion.pb.h:75
int GetCachedSize() const
Definition: quaternion.pb.h:95
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: quaternion.pb.h:92
STL class.
void protobuf_AssignDesc_ignition_2fmsgs_2fquaternion_2eproto()
void set_allocated_header(::ignition::msgs::Header *header)
Definition: quaternion.pb.h:202
Quaternion & operator=(const Quaternion &from)
Definition: quaternion.pb.h:63
void clear_z()
Definition: quaternion.pb.h:242
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fquaternion_2eproto()
void set_x(double value)
Definition: quaternion.pb.h:221
Definition: quaternion.pb.h:56