Ignition Msgs

API Reference

5.8.1
vector2d.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/vector2d.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fvector2d_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fvector2d_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_2fvector2d_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_2fvector2d_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_2fvector2d_2eproto;
68 namespace ignition {
69 namespace msgs {
70 class Vector2d;
71 class Vector2dDefaultTypeInternal;
72 IGNITION_MSGS_VISIBLE extern Vector2dDefaultTypeInternal _Vector2d_default_instance_;
73 } // namespace msgs
74 } // namespace ignition
75 PROTOBUF_NAMESPACE_OPEN
76 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Vector2d* Arena::CreateMaybeMessage<::ignition::msgs::Vector2d>(Arena*);
77 PROTOBUF_NAMESPACE_CLOSE
78 namespace ignition {
79 namespace msgs {
80 
81 // ===================================================================
82 
83 class IGNITION_MSGS_VISIBLE Vector2d PROTOBUF_FINAL :
84  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Vector2d) */ {
85  public:
86  inline Vector2d() : Vector2d(nullptr) {}
87  virtual ~Vector2d();
88 
89  Vector2d(const Vector2d& from);
90  Vector2d(Vector2d&& from) noexcept
91  : Vector2d() {
92  *this = ::std::move(from);
93  }
94 
95  inline Vector2d& operator=(const Vector2d& from) {
96  CopyFrom(from);
97  return *this;
98  }
99  inline Vector2d& operator=(Vector2d&& 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 Vector2d& default_instance();
118 
119  static inline const Vector2d* internal_default_instance() {
120  return reinterpret_cast<const Vector2d*>(
122  }
123  static constexpr int kIndexInFileMessages =
124  0;
125 
126  friend void swap(Vector2d& a, Vector2d& b) {
127  a.Swap(&b);
128  }
129  inline void Swap(Vector2d* 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(Vector2d* other) {
138  if (other == this) return;
139  GOOGLE_DCHECK(GetArena() == other->GetArena());
140  InternalSwap(other);
141  }
142 
143  // implements Message ----------------------------------------------
144 
145  inline Vector2d* New() const final {
146  return CreateMaybeMessage<Vector2d>(nullptr);
147  }
148 
149  Vector2d* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
150  return CreateMaybeMessage<Vector2d>(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 Vector2d& from);
155  void MergeFrom(const Vector2d& 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(Vector2d* other);
170  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
171  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
172  return "ignition.msgs.Vector2d";
173  }
174  protected:
175  explicit Vector2d(::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_2fvector2d_2eproto);
185  return ::descriptor_table_ignition_2fmsgs_2fvector2d_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  };
199  // .ignition.msgs.Header header = 1;
200  bool has_header() const;
201  private:
202  bool _internal_has_header() const;
203  public:
204  void clear_header();
205  const ::ignition::msgs::Header& header() const;
206  ::ignition::msgs::Header* release_header();
207  ::ignition::msgs::Header* mutable_header();
208  void set_allocated_header(::ignition::msgs::Header* header);
209  private:
210  const ::ignition::msgs::Header& _internal_header() const;
211  ::ignition::msgs::Header* _internal_mutable_header();
212  public:
214  ::ignition::msgs::Header* header);
215  ::ignition::msgs::Header* unsafe_arena_release_header();
216 
217  // double x = 2;
218  void clear_x();
219  double x() const;
220  void set_x(double value);
221  private:
222  double _internal_x() const;
223  void _internal_set_x(double value);
224  public:
225 
226  // double y = 3;
227  void clear_y();
228  double y() const;
229  void set_y(double value);
230  private:
231  double _internal_y() const;
232  void _internal_set_y(double value);
233  public:
234 
235  // @@protoc_insertion_point(class_scope:ignition.msgs.Vector2d)
236  private:
237  class _Internal;
238 
239  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
240  typedef void InternalArenaConstructable_;
241  typedef void DestructorSkippable_;
242  ::ignition::msgs::Header* header_;
243  double x_;
244  double y_;
245  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
246  friend struct ::TableStruct_ignition_2fmsgs_2fvector2d_2eproto;
247 };
248 // ===================================================================
249 
250 
251 // ===================================================================
252 
253 #ifdef __GNUC__
254  #pragma GCC diagnostic push
255  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
256 #endif // __GNUC__
257 // Vector2d
258 
259 // .ignition.msgs.Header header = 1;
260 inline bool Vector2d::_internal_has_header() const {
261  return this != internal_default_instance() && header_ != nullptr;
262 }
263 inline bool Vector2d::has_header() const {
264  return _internal_has_header();
265 }
266 inline const ::ignition::msgs::Header& Vector2d::_internal_header() const {
267  const ::ignition::msgs::Header* p = header_;
268  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Header&>(
270 }
271 inline const ::ignition::msgs::Header& Vector2d::header() const {
272  // @@protoc_insertion_point(field_get:ignition.msgs.Vector2d.header)
273  return _internal_header();
274 }
275 inline void Vector2d::unsafe_arena_set_allocated_header(
276  ::ignition::msgs::Header* header) {
277  if (GetArena() == nullptr) {
278  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
279  }
280  header_ = header;
281  if (header) {
282 
283  } else {
284 
285  }
286  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Vector2d.header)
287 }
288 inline ::ignition::msgs::Header* Vector2d::release_header() {
289 
290  ::ignition::msgs::Header* temp = header_;
291  header_ = nullptr;
292  if (GetArena() != nullptr) {
293  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
294  }
295  return temp;
296 }
297 inline ::ignition::msgs::Header* Vector2d::unsafe_arena_release_header() {
298  // @@protoc_insertion_point(field_release:ignition.msgs.Vector2d.header)
299 
300  ::ignition::msgs::Header* temp = header_;
301  header_ = nullptr;
302  return temp;
303 }
304 inline ::ignition::msgs::Header* Vector2d::_internal_mutable_header() {
305 
306  if (header_ == nullptr) {
307  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
308  header_ = p;
309  }
310  return header_;
311 }
312 inline ::ignition::msgs::Header* Vector2d::mutable_header() {
313  // @@protoc_insertion_point(field_mutable:ignition.msgs.Vector2d.header)
314  return _internal_mutable_header();
315 }
316 inline void Vector2d::set_allocated_header(::ignition::msgs::Header* header) {
317  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
318  if (message_arena == nullptr) {
319  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
320  }
321  if (header) {
322  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
323  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header)->GetArena();
324  if (message_arena != submessage_arena) {
325  header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
326  message_arena, header, submessage_arena);
327  }
328 
329  } else {
330 
331  }
332  header_ = header;
333  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Vector2d.header)
334 }
335 
336 // double x = 2;
337 inline void Vector2d::clear_x() {
338  x_ = 0;
339 }
340 inline double Vector2d::_internal_x() const {
341  return x_;
342 }
343 inline double Vector2d::x() const {
344  // @@protoc_insertion_point(field_get:ignition.msgs.Vector2d.x)
345  return _internal_x();
346 }
347 inline void Vector2d::_internal_set_x(double value) {
348 
349  x_ = value;
350 }
351 inline void Vector2d::set_x(double value) {
352  _internal_set_x(value);
353  // @@protoc_insertion_point(field_set:ignition.msgs.Vector2d.x)
354 }
355 
356 // double y = 3;
357 inline void Vector2d::clear_y() {
358  y_ = 0;
359 }
360 inline double Vector2d::_internal_y() const {
361  return y_;
362 }
363 inline double Vector2d::y() const {
364  // @@protoc_insertion_point(field_get:ignition.msgs.Vector2d.y)
365  return _internal_y();
366 }
367 inline void Vector2d::_internal_set_y(double value) {
368 
369  y_ = value;
370 }
371 inline void Vector2d::set_y(double value) {
372  _internal_set_y(value);
373  // @@protoc_insertion_point(field_set:ignition.msgs.Vector2d.y)
374 }
375 
376 #ifdef __GNUC__
377  #pragma GCC diagnostic pop
378 #endif // __GNUC__
379 
384 // @@protoc_insertion_point(namespace_scope)
385 
386 } // namespace msgs
387 } // namespace ignition
388 
389 #ifdef _MSC_VER
390 #pragma warning(pop)
391 #endif
392 // @@protoc_insertion_point(global_scope)
393 
394 #include <google/protobuf/port_undef.inc>
395 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fvector2d_2eproto
void CopyFrom(const Vector2d &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: vector2d.pb.h:114
Vector2d & operator=(const Vector2d &from)
Definition: vector2d.pb.h:95
static const Vector2d & default_instance()
Vector2d(Vector2d &&from) noexcept
Definition: vector2d.pb.h:90
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::ignition::msgs::Header * release_header()
::ignition::msgs::Header * mutable_header()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: vector2d.pb.h:108
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
Vector2d(const Vector2d &from)
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
void Swap(Vector2d *other)
Definition: vector2d.pb.h:129
friend void swap(Vector2d &a, Vector2d &b)
Definition: vector2d.pb.h:126
::ignition::msgs::Header * unsafe_arena_release_header()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
Vector2d(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void MergeFrom(const Vector2d &from)
void set_allocated_header(::ignition::msgs::Header *header)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: vector2d.pb.h:111
Vector2d()
Definition: vector2d.pb.h:86
Vector2d * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: vector2d.pb.h:149
Vector2d * New() const final
Definition: vector2d.pb.h:145
static const Vector2d * internal_default_instance()
Definition: vector2d.pb.h:119
Vector2d & operator=(Vector2d &&from) noexcept
Definition: vector2d.pb.h:99
const ::ignition::msgs::Header & header() const
void UnsafeArenaSwap(Vector2d *other)
Definition: vector2d.pb.h:137
Vector2< double > Vector2d
std::shared_ptr< Vector2d > Vector2dSharedPtr
Definition: vector2d.pb.h:382
std::shared_ptr< const Vector2d > ConstVector2dSharedPtr
Definition: vector2d.pb.h:383
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::unique_ptr< const Vector2d > ConstVector2dUniquePtr
Definition: vector2d.pb.h:381
std::unique_ptr< Vector2d > Vector2dUniquePtr
Definition: vector2d.pb.h:380
IGNITION_MSGS_VISIBLE Vector2dDefaultTypeInternal _Vector2d_default_instance_
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_2fvector2d_2eproto