Gazebo Msgs

API Reference

8.7.1
build/ignition-msgs8/include/ignition/msgs/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 < 3012000
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 3012004 < 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/inlined_string_field.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
31 #include <google/protobuf/message.h>
32 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
33 #include <google/protobuf/extension_set.h> // IWYU pragma: export
34 #include <google/protobuf/unknown_field_set.h>
36 #ifndef _MSC_VER
37 #pragma GCC system_header
38 #else
39 #pragma warning(push)
40 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
41 #endif
42 #ifdef __linux__
43 #include <sys/sysmacros.h>
44 #endif
45 #include <memory>
46 #include <ignition/msgs/Export.hh>
47 // @@protoc_insertion_point(includes)
48 #include <google/protobuf/port_def.inc>
49 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fvector2d_2eproto IGNITION_MSGS_VISIBLE
50 PROTOBUF_NAMESPACE_OPEN
51 namespace internal {
52 class AnyMetadata;
53 } // namespace internal
54 PROTOBUF_NAMESPACE_CLOSE
55 
56 // Internal implementation detail -- do not use these members.
57 struct IGNITION_MSGS_VISIBLE TableStruct_ignition_2fmsgs_2fvector2d_2eproto {
58  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
59  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
60  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
61  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
62  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
63  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
64  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
65  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
66  static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
67 };
68 extern IGNITION_MSGS_VISIBLE const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fvector2d_2eproto;
69 namespace ignition {
70 namespace msgs {
71 class Vector2d;
72 class Vector2dDefaultTypeInternal;
73 IGNITION_MSGS_VISIBLE extern Vector2dDefaultTypeInternal _Vector2d_default_instance_;
74 } // namespace msgs
75 } // namespace ignition
76 PROTOBUF_NAMESPACE_OPEN
77 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Vector2d* Arena::CreateMaybeMessage<::ignition::msgs::Vector2d>(Arena*);
78 PROTOBUF_NAMESPACE_CLOSE
79 namespace ignition {
80 namespace msgs {
81 
82 // ===================================================================
83 
84 class IGNITION_MSGS_VISIBLE Vector2d PROTOBUF_FINAL :
85  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Vector2d) */ {
86  public:
87  inline Vector2d() : Vector2d(nullptr) {};
88  virtual ~Vector2d();
89 
90  Vector2d(const Vector2d& from);
91  Vector2d(Vector2d&& from) noexcept
92  : Vector2d() {
93  *this = ::std::move(from);
94  }
95 
96  inline Vector2d& operator=(const Vector2d& from) {
97  CopyFrom(from);
98  return *this;
99  }
100  inline Vector2d& operator=(Vector2d&& from) noexcept {
101  if (GetArena() == from.GetArena()) {
102  if (this != &from) InternalSwap(&from);
103  } else {
104  CopyFrom(from);
105  }
106  return *this;
107  }
108 
109  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
110  return GetDescriptor();
111  }
112  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
113  return GetMetadataStatic().descriptor;
114  }
115  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
116  return GetMetadataStatic().reflection;
117  }
118  static const Vector2d& default_instance();
119 
120  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
121  static inline const Vector2d* internal_default_instance() {
122  return reinterpret_cast<const Vector2d*>(
124  }
125  static constexpr int kIndexInFileMessages =
126  0;
127 
128  friend void swap(Vector2d& a, Vector2d& b) {
129  a.Swap(&b);
130  }
131  inline void Swap(Vector2d* other) {
132  if (other == this) return;
133  if (GetArena() == other->GetArena()) {
134  InternalSwap(other);
135  } else {
136  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
137  }
138  }
139  void UnsafeArenaSwap(Vector2d* other) {
140  if (other == this) return;
141  GOOGLE_DCHECK(GetArena() == other->GetArena());
142  InternalSwap(other);
143  }
144 
145  // implements Message ----------------------------------------------
146 
147  inline Vector2d* New() const final {
148  return CreateMaybeMessage<Vector2d>(nullptr);
149  }
150 
151  Vector2d* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
152  return CreateMaybeMessage<Vector2d>(arena);
153  }
154  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
155  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
156  void CopyFrom(const Vector2d& from);
157  void MergeFrom(const Vector2d& from);
158  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
159  bool IsInitialized() const final;
160 
161  size_t ByteSizeLong() const final;
162  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
163  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
164  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
165  int GetCachedSize() const final { return _cached_size_.Get(); }
166 
167  private:
168  inline void SharedCtor();
169  inline void SharedDtor();
170  void SetCachedSize(int size) const final;
171  void InternalSwap(Vector2d* other);
172  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
173  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
174  return "ignition.msgs.Vector2d";
175  }
176  protected:
177  explicit Vector2d(::PROTOBUF_NAMESPACE_ID::Arena* arena);
178  private:
179  static void ArenaDtor(void* object);
180  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
181  public:
182 
183  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
184  private:
185  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
186  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_ignition_2fmsgs_2fvector2d_2eproto);
187  return ::descriptor_table_ignition_2fmsgs_2fvector2d_2eproto.file_level_metadata[kIndexInFileMessages];
188  }
189 
190  public:
191 
192  // nested types ----------------------------------------------------
193 
194  // accessors -------------------------------------------------------
195 
196  enum : int {
197  kHeaderFieldNumber = 1,
198  kXFieldNumber = 2,
199  kYFieldNumber = 3,
200  };
201  // .ignition.msgs.Header header = 1;
202  bool has_header() const;
203  private:
204  bool _internal_has_header() const;
205  public:
206  void clear_header();
207  const ::ignition::msgs::Header& header() const;
208  ::ignition::msgs::Header* release_header();
209  ::ignition::msgs::Header* mutable_header();
210  void set_allocated_header(::ignition::msgs::Header* header);
211  private:
212  const ::ignition::msgs::Header& _internal_header() const;
213  ::ignition::msgs::Header* _internal_mutable_header();
214  public:
216  ::ignition::msgs::Header* header);
217  ::ignition::msgs::Header* unsafe_arena_release_header();
218 
219  // double x = 2;
220  void clear_x();
221  double x() const;
222  void set_x(double value);
223  private:
224  double _internal_x() const;
225  void _internal_set_x(double value);
226  public:
227 
228  // double y = 3;
229  void clear_y();
230  double y() const;
231  void set_y(double value);
232  private:
233  double _internal_y() const;
234  void _internal_set_y(double value);
235  public:
236 
237  // @@protoc_insertion_point(class_scope:ignition.msgs.Vector2d)
238  private:
239  class _Internal;
240 
241  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
242  typedef void InternalArenaConstructable_;
243  typedef void DestructorSkippable_;
244  ::ignition::msgs::Header* header_;
245  double x_;
246  double y_;
247  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
248  friend struct ::TableStruct_ignition_2fmsgs_2fvector2d_2eproto;
249 };
250 // ===================================================================
251 
252 
253 // ===================================================================
254 
255 #ifdef __GNUC__
256  #pragma GCC diagnostic push
257  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
258 #endif // __GNUC__
259 // Vector2d
260 
261 // .ignition.msgs.Header header = 1;
262 inline bool Vector2d::_internal_has_header() const {
263  return this != internal_default_instance() && header_ != nullptr;
264 }
265 inline bool Vector2d::has_header() const {
266  return _internal_has_header();
267 }
268 inline const ::ignition::msgs::Header& Vector2d::_internal_header() const {
269  const ::ignition::msgs::Header* p = header_;
270  return p != nullptr ? *p : *reinterpret_cast<const ::ignition::msgs::Header*>(
272 }
273 inline const ::ignition::msgs::Header& Vector2d::header() const {
274  // @@protoc_insertion_point(field_get:ignition.msgs.Vector2d.header)
275  return _internal_header();
276 }
277 inline void Vector2d::unsafe_arena_set_allocated_header(
278  ::ignition::msgs::Header* header) {
279  if (GetArena() == nullptr) {
280  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
281  }
282  header_ = header;
283  if (header) {
284 
285  } else {
286 
287  }
288  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Vector2d.header)
289 }
290 inline ::ignition::msgs::Header* Vector2d::release_header() {
291  auto temp = unsafe_arena_release_header();
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
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fvector2d_2eproto
void CopyFrom(const Vector2d &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: build/ignition-msgs8/include/ignition/msgs/vector2d.pb.h:115
Vector2d & operator=(const Vector2d &from)
Definition: build/ignition-msgs8/include/ignition/msgs/vector2d.pb.h:96
static const Vector2d & default_instance()
Vector2d(Vector2d &&from) noexcept
Definition: build/ignition-msgs8/include/ignition/msgs/vector2d.pb.h:91
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::ignition::msgs::Header * release_header()
::ignition::msgs::Header * mutable_header()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/vector2d.pb.h:109
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: build/ignition-msgs8/include/ignition/msgs/vector2d.pb.h:131
friend void swap(Vector2d &a, Vector2d &b)
Definition: build/ignition-msgs8/include/ignition/msgs/vector2d.pb.h:128
::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: build/ignition-msgs8/include/ignition/msgs/vector2d.pb.h:112
Vector2d()
Definition: build/ignition-msgs8/include/ignition/msgs/vector2d.pb.h:87
Vector2d * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: build/ignition-msgs8/include/ignition/msgs/vector2d.pb.h:151
Vector2d * New() const final
Definition: build/ignition-msgs8/include/ignition/msgs/vector2d.pb.h:147
static const Vector2d * internal_default_instance()
Definition: build/ignition-msgs8/include/ignition/msgs/vector2d.pb.h:121
Vector2d & operator=(Vector2d &&from) noexcept
Definition: build/ignition-msgs8/include/ignition/msgs/vector2d.pb.h:100
const ::ignition::msgs::Header & header() const
void UnsafeArenaSwap(Vector2d *other)
Definition: build/ignition-msgs8/include/ignition/msgs/vector2d.pb.h:139
Vector2< double > Vector2d
std::shared_ptr< Vector2d > Vector2dSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/vector2d.pb.h:382
std::shared_ptr< const Vector2d > ConstVector2dSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/vector2d.pb.h:383
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::unique_ptr< const Vector2d > ConstVector2dUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/vector2d.pb.h:381
std::unique_ptr< Vector2d > Vector2dUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/vector2d.pb.h:380
IGNITION_MSGS_VISIBLE Vector2dDefaultTypeInternal _Vector2d_default_instance_
Definition: build/ignition-msgs8/include/ignition/msgs/actor.pb.h:53
Definition: build/ignition-msgs8/include/ignition/msgs/vector2d.pb.h:57
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)
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)