Ignition Msgs

API Reference

5.8.1
vector3d.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/vector3d.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fvector3d_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fvector3d_2eproto
6 
7 #include <limits>
8 #include <string>
9 
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3014000
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 3014000 < 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/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/generated_message_reflection.h>
30 #include <google/protobuf/message.h>
31 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
32 #include <google/protobuf/extension_set.h> // IWYU pragma: export
33 #include <google/protobuf/unknown_field_set.h>
35 #ifndef _MSC_VER
36 #pragma GCC system_header
37 #else
38 #pragma warning(push)
39 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
40 #endif
41 #ifdef __linux__
42 #include <sys/sysmacros.h>
43 #endif
44 #include <memory>
45 #include <ignition/msgs/Export.hh>
46 // @@protoc_insertion_point(includes)
47 #include <google/protobuf/port_def.inc>
48 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fvector3d_2eproto IGNITION_MSGS_VISIBLE
49 PROTOBUF_NAMESPACE_OPEN
50 namespace internal {
51 class AnyMetadata;
52 } // namespace internal
53 PROTOBUF_NAMESPACE_CLOSE
54 
55 // Internal implementation detail -- do not use these members.
56 struct IGNITION_MSGS_VISIBLE TableStruct_ignition_2fmsgs_2fvector3d_2eproto {
57  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
58  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
59  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
60  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
61  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
62  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
63  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
64  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
65  static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
66 };
67 extern IGNITION_MSGS_VISIBLE const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fvector3d_2eproto;
68 namespace ignition {
69 namespace msgs {
70 class Vector3d;
71 class Vector3dDefaultTypeInternal;
72 IGNITION_MSGS_VISIBLE extern Vector3dDefaultTypeInternal _Vector3d_default_instance_;
73 } // namespace msgs
74 } // namespace ignition
75 PROTOBUF_NAMESPACE_OPEN
76 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Vector3d* Arena::CreateMaybeMessage<::ignition::msgs::Vector3d>(Arena*);
77 PROTOBUF_NAMESPACE_CLOSE
78 namespace ignition {
79 namespace msgs {
80 
81 // ===================================================================
82 
83 class IGNITION_MSGS_VISIBLE Vector3d PROTOBUF_FINAL :
84  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Vector3d) */ {
85  public:
86  inline Vector3d() : Vector3d(nullptr) {}
87  virtual ~Vector3d();
88 
89  Vector3d(const Vector3d& from);
90  Vector3d(Vector3d&& from) noexcept
91  : Vector3d() {
92  *this = ::std::move(from);
93  }
94 
95  inline Vector3d& operator=(const Vector3d& from) {
96  CopyFrom(from);
97  return *this;
98  }
99  inline Vector3d& operator=(Vector3d&& from) noexcept {
100  if (GetArena() == from.GetArena()) {
101  if (this != &from) InternalSwap(&from);
102  } else {
103  CopyFrom(from);
104  }
105  return *this;
106  }
107 
108  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
109  return GetDescriptor();
110  }
111  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
112  return GetMetadataStatic().descriptor;
113  }
114  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
115  return GetMetadataStatic().reflection;
116  }
117  static const Vector3d& default_instance();
118 
119  static inline const Vector3d* internal_default_instance() {
120  return reinterpret_cast<const Vector3d*>(
122  }
123  static constexpr int kIndexInFileMessages =
124  0;
125 
126  friend void swap(Vector3d& a, Vector3d& b) {
127  a.Swap(&b);
128  }
129  inline void Swap(Vector3d* other) {
130  if (other == this) return;
131  if (GetArena() == other->GetArena()) {
132  InternalSwap(other);
133  } else {
134  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
135  }
136  }
137  void UnsafeArenaSwap(Vector3d* other) {
138  if (other == this) return;
139  GOOGLE_DCHECK(GetArena() == other->GetArena());
140  InternalSwap(other);
141  }
142 
143  // implements Message ----------------------------------------------
144 
145  inline Vector3d* New() const final {
146  return CreateMaybeMessage<Vector3d>(nullptr);
147  }
148 
149  Vector3d* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
150  return CreateMaybeMessage<Vector3d>(arena);
151  }
152  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
153  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
154  void CopyFrom(const Vector3d& from);
155  void MergeFrom(const Vector3d& from);
156  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
157  bool IsInitialized() const final;
158 
159  size_t ByteSizeLong() const final;
160  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
161  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
162  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
163  int GetCachedSize() const final { return _cached_size_.Get(); }
164 
165  private:
166  inline void SharedCtor();
167  inline void SharedDtor();
168  void SetCachedSize(int size) const final;
169  void InternalSwap(Vector3d* other);
170  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
171  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
172  return "ignition.msgs.Vector3d";
173  }
174  protected:
175  explicit Vector3d(::PROTOBUF_NAMESPACE_ID::Arena* arena);
176  private:
177  static void ArenaDtor(void* object);
178  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
179  public:
180 
181  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
182  private:
183  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
184  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_ignition_2fmsgs_2fvector3d_2eproto);
185  return ::descriptor_table_ignition_2fmsgs_2fvector3d_2eproto.file_level_metadata[kIndexInFileMessages];
186  }
187 
188  public:
189 
190  // nested types ----------------------------------------------------
191 
192  // accessors -------------------------------------------------------
193 
194  enum : int {
195  kHeaderFieldNumber = 1,
196  kXFieldNumber = 2,
197  kYFieldNumber = 3,
198  kZFieldNumber = 4,
199  };
200  // .ignition.msgs.Header header = 1;
201  bool has_header() const;
202  private:
203  bool _internal_has_header() const;
204  public:
205  void clear_header();
206  const ::ignition::msgs::Header& header() const;
207  ::ignition::msgs::Header* release_header();
208  ::ignition::msgs::Header* mutable_header();
209  void set_allocated_header(::ignition::msgs::Header* header);
210  private:
211  const ::ignition::msgs::Header& _internal_header() const;
212  ::ignition::msgs::Header* _internal_mutable_header();
213  public:
215  ::ignition::msgs::Header* header);
216  ::ignition::msgs::Header* unsafe_arena_release_header();
217 
218  // double x = 2;
219  void clear_x();
220  double x() const;
221  void set_x(double value);
222  private:
223  double _internal_x() const;
224  void _internal_set_x(double value);
225  public:
226 
227  // double y = 3;
228  void clear_y();
229  double y() const;
230  void set_y(double value);
231  private:
232  double _internal_y() const;
233  void _internal_set_y(double value);
234  public:
235 
236  // double z = 4;
237  void clear_z();
238  double z() const;
239  void set_z(double value);
240  private:
241  double _internal_z() const;
242  void _internal_set_z(double value);
243  public:
244 
245  // @@protoc_insertion_point(class_scope:ignition.msgs.Vector3d)
246  private:
247  class _Internal;
248 
249  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
250  typedef void InternalArenaConstructable_;
251  typedef void DestructorSkippable_;
252  ::ignition::msgs::Header* header_;
253  double x_;
254  double y_;
255  double z_;
256  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
257  friend struct ::TableStruct_ignition_2fmsgs_2fvector3d_2eproto;
258 };
259 // ===================================================================
260 
261 
262 // ===================================================================
263 
264 #ifdef __GNUC__
265  #pragma GCC diagnostic push
266  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
267 #endif // __GNUC__
268 // Vector3d
269 
270 // .ignition.msgs.Header header = 1;
271 inline bool Vector3d::_internal_has_header() const {
272  return this != internal_default_instance() && header_ != nullptr;
273 }
274 inline bool Vector3d::has_header() const {
275  return _internal_has_header();
276 }
277 inline const ::ignition::msgs::Header& Vector3d::_internal_header() const {
278  const ::ignition::msgs::Header* p = header_;
279  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Header&>(
281 }
282 inline const ::ignition::msgs::Header& Vector3d::header() const {
283  // @@protoc_insertion_point(field_get:ignition.msgs.Vector3d.header)
284  return _internal_header();
285 }
286 inline void Vector3d::unsafe_arena_set_allocated_header(
287  ::ignition::msgs::Header* header) {
288  if (GetArena() == nullptr) {
289  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
290  }
291  header_ = header;
292  if (header) {
293 
294  } else {
295 
296  }
297  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Vector3d.header)
298 }
299 inline ::ignition::msgs::Header* Vector3d::release_header() {
300 
301  ::ignition::msgs::Header* temp = header_;
302  header_ = nullptr;
303  if (GetArena() != nullptr) {
304  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
305  }
306  return temp;
307 }
308 inline ::ignition::msgs::Header* Vector3d::unsafe_arena_release_header() {
309  // @@protoc_insertion_point(field_release:ignition.msgs.Vector3d.header)
310 
311  ::ignition::msgs::Header* temp = header_;
312  header_ = nullptr;
313  return temp;
314 }
315 inline ::ignition::msgs::Header* Vector3d::_internal_mutable_header() {
316 
317  if (header_ == nullptr) {
318  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
319  header_ = p;
320  }
321  return header_;
322 }
323 inline ::ignition::msgs::Header* Vector3d::mutable_header() {
324  // @@protoc_insertion_point(field_mutable:ignition.msgs.Vector3d.header)
325  return _internal_mutable_header();
326 }
327 inline void Vector3d::set_allocated_header(::ignition::msgs::Header* header) {
328  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
329  if (message_arena == nullptr) {
330  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
331  }
332  if (header) {
333  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
334  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header)->GetArena();
335  if (message_arena != submessage_arena) {
336  header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
337  message_arena, header, submessage_arena);
338  }
339 
340  } else {
341 
342  }
343  header_ = header;
344  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Vector3d.header)
345 }
346 
347 // double x = 2;
348 inline void Vector3d::clear_x() {
349  x_ = 0;
350 }
351 inline double Vector3d::_internal_x() const {
352  return x_;
353 }
354 inline double Vector3d::x() const {
355  // @@protoc_insertion_point(field_get:ignition.msgs.Vector3d.x)
356  return _internal_x();
357 }
358 inline void Vector3d::_internal_set_x(double value) {
359 
360  x_ = value;
361 }
362 inline void Vector3d::set_x(double value) {
363  _internal_set_x(value);
364  // @@protoc_insertion_point(field_set:ignition.msgs.Vector3d.x)
365 }
366 
367 // double y = 3;
368 inline void Vector3d::clear_y() {
369  y_ = 0;
370 }
371 inline double Vector3d::_internal_y() const {
372  return y_;
373 }
374 inline double Vector3d::y() const {
375  // @@protoc_insertion_point(field_get:ignition.msgs.Vector3d.y)
376  return _internal_y();
377 }
378 inline void Vector3d::_internal_set_y(double value) {
379 
380  y_ = value;
381 }
382 inline void Vector3d::set_y(double value) {
383  _internal_set_y(value);
384  // @@protoc_insertion_point(field_set:ignition.msgs.Vector3d.y)
385 }
386 
387 // double z = 4;
388 inline void Vector3d::clear_z() {
389  z_ = 0;
390 }
391 inline double Vector3d::_internal_z() const {
392  return z_;
393 }
394 inline double Vector3d::z() const {
395  // @@protoc_insertion_point(field_get:ignition.msgs.Vector3d.z)
396  return _internal_z();
397 }
398 inline void Vector3d::_internal_set_z(double value) {
399 
400  z_ = value;
401 }
402 inline void Vector3d::set_z(double value) {
403  _internal_set_z(value);
404  // @@protoc_insertion_point(field_set:ignition.msgs.Vector3d.z)
405 }
406 
407 #ifdef __GNUC__
408  #pragma GCC diagnostic pop
409 #endif // __GNUC__
410 
415 // @@protoc_insertion_point(namespace_scope)
416 
417 } // namespace msgs
418 } // namespace ignition
419 
420 #ifdef _MSC_VER
421 #pragma warning(pop)
422 #endif
423 // @@protoc_insertion_point(global_scope)
424 
425 #include <google/protobuf/port_undef.inc>
426 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fvector3d_2eproto
void Swap(Vector3d *other)
Definition: vector3d.pb.h:129
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: vector3d.pb.h:114
Vector3d & operator=(Vector3d &&from) noexcept
Definition: vector3d.pb.h:99
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::ignition::msgs::Header * release_header()
::ignition::msgs::Header * mutable_header()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: vector3d.pb.h:108
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
Vector3d & operator=(const Vector3d &from)
Definition: vector3d.pb.h:95
Vector3d * New() const final
Definition: vector3d.pb.h:145
Vector3d(::PROTOBUF_NAMESPACE_ID::Arena *arena)
Vector3d(Vector3d &&from) noexcept
Definition: vector3d.pb.h:90
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
void UnsafeArenaSwap(Vector3d *other)
Definition: vector3d.pb.h:137
::ignition::msgs::Header * unsafe_arena_release_header()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
static const Vector3d & default_instance()
Vector3d * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: vector3d.pb.h:149
static const Vector3d * internal_default_instance()
Definition: vector3d.pb.h:119
void set_allocated_header(::ignition::msgs::Header *header)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
Vector3d()
Definition: vector3d.pb.h:86
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: vector3d.pb.h:111
friend void swap(Vector3d &a, Vector3d &b)
Definition: vector3d.pb.h:126
void MergeFrom(const Vector3d &from)
void CopyFrom(const Vector3d &from)
Vector3d(const Vector3d &from)
const ::ignition::msgs::Header & header() const
Vector3< double > Vector3d
IGNITION_MSGS_VISIBLE Vector3dDefaultTypeInternal _Vector3d_default_instance_
std::shared_ptr< const Vector3d > ConstVector3dSharedPtr
Definition: vector3d.pb.h:414
std::unique_ptr< Vector3d > Vector3dUniquePtr
Definition: vector3d.pb.h:411
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::unique_ptr< const Vector3d > ConstVector3dUniquePtr
Definition: vector3d.pb.h:412
std::shared_ptr< Vector3d > Vector3dSharedPtr
Definition: vector3d.pb.h:413
Definition: actor.pb.h:52
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fvector3d_2eproto