Ignition Msgs

API Reference

5.8.1
polylinegeom.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/polylinegeom.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fpolylinegeom_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fpolylinegeom_2eproto
6 
7 #include <limits>
8 #include <string>
9 
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3019000
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 3019000 < 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>
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_2fpolylinegeom_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.
58  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
59  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
60  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField 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 uint32_t offsets[];
67 };
68 IGNITION_MSGS_VISIBLE extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fpolylinegeom_2eproto;
69 namespace ignition {
70 namespace msgs {
71 class Polyline;
72 struct PolylineDefaultTypeInternal;
73 IGNITION_MSGS_VISIBLE extern PolylineDefaultTypeInternal _Polyline_default_instance_;
74 } // namespace msgs
75 } // namespace ignition
76 PROTOBUF_NAMESPACE_OPEN
77 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Polyline* Arena::CreateMaybeMessage<::ignition::msgs::Polyline>(Arena*);
78 PROTOBUF_NAMESPACE_CLOSE
79 namespace ignition {
80 namespace msgs {
81 
82 // ===================================================================
83 
84 class IGNITION_MSGS_VISIBLE Polyline final :
85  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Polyline) */ {
86  public:
87  inline Polyline() : Polyline(nullptr) {}
88  ~Polyline() override;
89  explicit constexpr Polyline(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
90 
91  Polyline(const Polyline& from);
92  Polyline(Polyline&& from) noexcept
93  : Polyline() {
94  *this = ::std::move(from);
95  }
96 
97  inline Polyline& operator=(const Polyline& from) {
98  CopyFrom(from);
99  return *this;
100  }
101  inline Polyline& operator=(Polyline&& from) noexcept {
102  if (this == &from) return *this;
103  if (GetOwningArena() == from.GetOwningArena()
104  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
105  && GetOwningArena() != nullptr
106  #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
107  ) {
108  InternalSwap(&from);
109  } else {
110  CopyFrom(from);
111  }
112  return *this;
113  }
114 
115  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
116  return GetDescriptor();
117  }
118  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
119  return default_instance().GetMetadata().descriptor;
120  }
121  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
122  return default_instance().GetMetadata().reflection;
123  }
124  static const Polyline& default_instance() {
125  return *internal_default_instance();
126  }
127  static inline const Polyline* internal_default_instance() {
128  return reinterpret_cast<const Polyline*>(
130  }
131  static constexpr int kIndexInFileMessages =
132  0;
133 
134  friend void swap(Polyline& a, Polyline& b) {
135  a.Swap(&b);
136  }
137  inline void Swap(Polyline* other) {
138  if (other == this) return;
139  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
140  if (GetOwningArena() != nullptr &&
141  GetOwningArena() == other->GetOwningArena()) {
142  #else // PROTOBUF_FORCE_COPY_IN_SWAP
143  if (GetOwningArena() == other->GetOwningArena()) {
144  #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
145  InternalSwap(other);
146  } else {
147  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
148  }
149  }
150  void UnsafeArenaSwap(Polyline* other) {
151  if (other == this) return;
152  GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
153  InternalSwap(other);
154  }
155 
156  // implements Message ----------------------------------------------
157 
158  Polyline* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
159  return CreateMaybeMessage<Polyline>(arena);
160  }
161  using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
162  void CopyFrom(const Polyline& from);
163  using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
164  void MergeFrom(const Polyline& from);
165  private:
166  static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
167  public:
168  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
169  bool IsInitialized() const final;
170 
171  size_t ByteSizeLong() const final;
172  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
173  uint8_t* _InternalSerialize(
174  uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
175  int GetCachedSize() const final { return _cached_size_.Get(); }
176 
177  private:
178  void SharedCtor();
179  void SharedDtor();
180  void SetCachedSize(int size) const final;
181  void InternalSwap(Polyline* other);
182 
183  private:
184  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
185  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
186  return "ignition.msgs.Polyline";
187  }
188  protected:
189  explicit Polyline(::PROTOBUF_NAMESPACE_ID::Arena* arena,
190  bool is_message_owned = false);
191  private:
192  static void ArenaDtor(void* object);
193  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
194  public:
195 
196  static const ClassData _class_data_;
197  const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
198 
199  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
200 
201  // nested types ----------------------------------------------------
202 
203  // accessors -------------------------------------------------------
204 
205  enum : int {
206  kPointFieldNumber = 3,
207  kHeaderFieldNumber = 1,
208  kHeightFieldNumber = 2,
209  };
210  // repeated .ignition.msgs.Vector2d point = 3;
211  int point_size() const;
212  private:
213  int _internal_point_size() const;
214  public:
215  void clear_point();
216  ::ignition::msgs::Vector2d* mutable_point(int index);
217  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector2d >*
218  mutable_point();
219  private:
220  const ::ignition::msgs::Vector2d& _internal_point(int index) const;
221  ::ignition::msgs::Vector2d* _internal_add_point();
222  public:
223  const ::ignition::msgs::Vector2d& point(int index) const;
224  ::ignition::msgs::Vector2d* add_point();
225  const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector2d >&
226  point() const;
227 
228  // .ignition.msgs.Header header = 1;
229  bool has_header() const;
230  private:
231  bool _internal_has_header() const;
232  public:
233  void clear_header();
234  const ::ignition::msgs::Header& header() const;
235  PROTOBUF_NODISCARD ::ignition::msgs::Header* release_header();
236  ::ignition::msgs::Header* mutable_header();
237  void set_allocated_header(::ignition::msgs::Header* header);
238  private:
239  const ::ignition::msgs::Header& _internal_header() const;
240  ::ignition::msgs::Header* _internal_mutable_header();
241  public:
242  void unsafe_arena_set_allocated_header(
243  ::ignition::msgs::Header* header);
244  ::ignition::msgs::Header* unsafe_arena_release_header();
245 
246  // double height = 2;
247  void clear_height();
248  double height() const;
249  void set_height(double value);
250  private:
251  double _internal_height() const;
252  void _internal_set_height(double value);
253  public:
254 
255  // @@protoc_insertion_point(class_scope:ignition.msgs.Polyline)
256  private:
257  class _Internal;
258 
259  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
260  typedef void InternalArenaConstructable_;
261  typedef void DestructorSkippable_;
262  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector2d > point_;
263  ::ignition::msgs::Header* header_;
264  double height_;
265  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
266  friend struct ::TableStruct_ignition_2fmsgs_2fpolylinegeom_2eproto;
267 };
268 // ===================================================================
269 
270 
271 // ===================================================================
272 
273 #ifdef __GNUC__
274  #pragma GCC diagnostic push
275  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
276 #endif // __GNUC__
277 // Polyline
278 
279 // .ignition.msgs.Header header = 1;
280 inline bool Polyline::_internal_has_header() const {
281  return this != internal_default_instance() && header_ != nullptr;
282 }
283 inline bool Polyline::has_header() const {
284  return _internal_has_header();
285 }
286 inline const ::ignition::msgs::Header& Polyline::_internal_header() const {
287  const ::ignition::msgs::Header* p = header_;
288  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Header&>(
290 }
291 inline const ::ignition::msgs::Header& Polyline::header() const {
292  // @@protoc_insertion_point(field_get:ignition.msgs.Polyline.header)
293  return _internal_header();
294 }
296  ::ignition::msgs::Header* header) {
297  if (GetArenaForAllocation() == nullptr) {
298  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
299  }
300  header_ = header;
301  if (header) {
302 
303  } else {
304 
305  }
306  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Polyline.header)
307 }
308 inline ::ignition::msgs::Header* Polyline::release_header() {
309 
310  ::ignition::msgs::Header* temp = header_;
311  header_ = nullptr;
312 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
313  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
314  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
315  if (GetArenaForAllocation() == nullptr) { delete old; }
316 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
317  if (GetArenaForAllocation() != nullptr) {
318  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
319  }
320 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
321  return temp;
322 }
323 inline ::ignition::msgs::Header* Polyline::unsafe_arena_release_header() {
324  // @@protoc_insertion_point(field_release:ignition.msgs.Polyline.header)
325 
326  ::ignition::msgs::Header* temp = header_;
327  header_ = nullptr;
328  return temp;
329 }
330 inline ::ignition::msgs::Header* Polyline::_internal_mutable_header() {
331 
332  if (header_ == nullptr) {
333  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaForAllocation());
334  header_ = p;
335  }
336  return header_;
337 }
338 inline ::ignition::msgs::Header* Polyline::mutable_header() {
339  ::ignition::msgs::Header* _msg = _internal_mutable_header();
340  // @@protoc_insertion_point(field_mutable:ignition.msgs.Polyline.header)
341  return _msg;
342 }
344  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
345  if (message_arena == nullptr) {
346  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
347  }
348  if (header) {
349  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
350  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
351  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
352  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header));
353  if (message_arena != submessage_arena) {
354  header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
355  message_arena, header, submessage_arena);
356  }
357 
358  } else {
359 
360  }
361  header_ = header;
362  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Polyline.header)
363 }
364 
365 // double height = 2;
366 inline void Polyline::clear_height() {
367  height_ = 0;
368 }
369 inline double Polyline::_internal_height() const {
370  return height_;
371 }
372 inline double Polyline::height() const {
373  // @@protoc_insertion_point(field_get:ignition.msgs.Polyline.height)
374  return _internal_height();
375 }
376 inline void Polyline::_internal_set_height(double value) {
377 
378  height_ = value;
379 }
380 inline void Polyline::set_height(double value) {
381  _internal_set_height(value);
382  // @@protoc_insertion_point(field_set:ignition.msgs.Polyline.height)
383 }
384 
385 // repeated .ignition.msgs.Vector2d point = 3;
386 inline int Polyline::_internal_point_size() const {
387  return point_.size();
388 }
389 inline int Polyline::point_size() const {
390  return _internal_point_size();
391 }
392 inline ::ignition::msgs::Vector2d* Polyline::mutable_point(int index) {
393  // @@protoc_insertion_point(field_mutable:ignition.msgs.Polyline.point)
394  return point_.Mutable(index);
395 }
396 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector2d >*
398  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.Polyline.point)
399  return &point_;
400 }
401 inline const ::ignition::msgs::Vector2d& Polyline::_internal_point(int index) const {
402  return point_.Get(index);
403 }
404 inline const ::ignition::msgs::Vector2d& Polyline::point(int index) const {
405  // @@protoc_insertion_point(field_get:ignition.msgs.Polyline.point)
406  return _internal_point(index);
407 }
408 inline ::ignition::msgs::Vector2d* Polyline::_internal_add_point() {
409  return point_.Add();
410 }
411 inline ::ignition::msgs::Vector2d* Polyline::add_point() {
412  ::ignition::msgs::Vector2d* _add = _internal_add_point();
413  // @@protoc_insertion_point(field_add:ignition.msgs.Polyline.point)
414  return _add;
415 }
416 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector2d >&
418  // @@protoc_insertion_point(field_list:ignition.msgs.Polyline.point)
419  return point_;
420 }
421 
422 #ifdef __GNUC__
423  #pragma GCC diagnostic pop
424 #endif // __GNUC__
425 
430 // @@protoc_insertion_point(namespace_scope)
431 
432 } // namespace msgs
433 } // namespace ignition
434 
435 #ifdef _MSC_VER
436 #pragma warning(pop)
437 #endif
438 // @@protoc_insertion_point(global_scope)
439 
440 #include <google/protobuf/port_undef.inc>
441 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fpolylinegeom_2eproto
Definition: header.pb.h:265
Definition: polylinegeom.pb.h:85
void clear_height()
Definition: polylinegeom.pb.h:366
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: polylinegeom.pb.h:121
bool has_header() const
Definition: polylinegeom.pb.h:283
void Swap(Polyline *other)
Definition: polylinegeom.pb.h:137
::ignition::msgs::Header * mutable_header()
Definition: polylinegeom.pb.h:338
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
constexpr Polyline(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
Polyline & operator=(const Polyline &from)
Definition: polylinegeom.pb.h:97
static const Polyline * internal_default_instance()
Definition: polylinegeom.pb.h:127
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: polylinegeom.pb.h:115
void CopyFrom(const Polyline &from)
::ignition::msgs::Vector2d * add_point()
Definition: polylinegeom.pb.h:411
void MergeFrom(const Polyline &from)
double height() const
Definition: polylinegeom.pb.h:372
int point_size() const
Definition: polylinegeom.pb.h:389
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
Definition: polylinegeom.pb.h:295
static const Polyline & default_instance()
Definition: polylinegeom.pb.h:124
Polyline(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
void UnsafeArenaSwap(Polyline *other)
Definition: polylinegeom.pb.h:150
void set_allocated_header(::ignition::msgs::Header *header)
Definition: polylinegeom.pb.h:343
Polyline(Polyline &&from) noexcept
Definition: polylinegeom.pb.h:92
Polyline * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition: polylinegeom.pb.h:158
Polyline(const Polyline &from)
PROTOBUF_NODISCARD ::ignition::msgs::Header * release_header()
Definition: polylinegeom.pb.h:308
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: polylinegeom.pb.h:118
Polyline & operator=(Polyline &&from) noexcept
Definition: polylinegeom.pb.h:101
void set_height(double value)
Definition: polylinegeom.pb.h:380
const ::ignition::msgs::Header & header() const
Definition: polylinegeom.pb.h:291
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector2d > & point() const
Definition: polylinegeom.pb.h:417
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector2d > * mutable_point()
Definition: polylinegeom.pb.h:397
static const ClassData _class_data_
Definition: polylinegeom.pb.h:196
::ignition::msgs::Header * unsafe_arena_release_header()
Definition: polylinegeom.pb.h:323
friend void swap(Polyline &a, Polyline &b)
Definition: polylinegeom.pb.h:134
Polyline()
Definition: polylinegeom.pb.h:87
Definition: vector2d.pb.h:84
std::unique_ptr< Polyline > PolylineUniquePtr
Definition: polylinegeom.pb.h:426
std::shared_ptr< Polyline > PolylineSharedPtr
Definition: polylinegeom.pb.h:428
std::unique_ptr< const Polyline > ConstPolylineUniquePtr
Definition: polylinegeom.pb.h:427
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::shared_ptr< const Polyline > ConstPolylineSharedPtr
Definition: polylinegeom.pb.h:429
IGNITION_MSGS_VISIBLE PolylineDefaultTypeInternal _Polyline_default_instance_
Definition: actor.pb.h:52
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fpolylinegeom_2eproto
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)