Gazebo Msgs

API Reference

9.5.1
planegeom.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/planegeom.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fplanegeom_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fplanegeom_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < 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/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include <google/protobuf/unknown_field_set.h>
33 #include "gz/msgs/vector3d.pb.h"
34 #include "gz/msgs/vector2d.pb.h"
35 #include "gz/msgs/header.pb.h"
36 // @@protoc_insertion_point(includes)
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fplanegeom_2eproto GZ_MSGS_VISIBLE
38 
40 // Internal implementation detail -- do not use these members.
41 struct GZ_MSGS_VISIBLE TableStruct {
42  static const ::google::protobuf::internal::ParseTableField entries[];
43  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
44  static const ::google::protobuf::internal::ParseTable schema[1];
45  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
46  static const ::google::protobuf::internal::SerializationTable serialization_table[];
47  static const ::google::protobuf::uint32 offsets[];
48 };
49 void GZ_MSGS_VISIBLE AddDescriptors();
50 } // namespace protobuf_gz_2fmsgs_2fplanegeom_2eproto
51 namespace gz {
52 namespace msgs {
53 class PlaneGeom;
54 class PlaneGeomDefaultTypeInternal;
55 GZ_MSGS_VISIBLE extern PlaneGeomDefaultTypeInternal _PlaneGeom_default_instance_;
56 } // namespace msgs
57 } // namespace gz
58 namespace google {
59 namespace protobuf {
60 template<> GZ_MSGS_VISIBLE ::gz::msgs::PlaneGeom* Arena::CreateMaybeMessage<::gz::msgs::PlaneGeom>(Arena*);
61 } // namespace protobuf
62 } // namespace google
63 namespace gz {
64 namespace msgs {
65 
66 // ===================================================================
67 
68 class GZ_MSGS_VISIBLE PlaneGeom : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.PlaneGeom) */ {
69  public:
70  PlaneGeom();
71  virtual ~PlaneGeom();
72 
73  PlaneGeom(const PlaneGeom& from);
74 
75  inline PlaneGeom& operator=(const PlaneGeom& from) {
76  CopyFrom(from);
77  return *this;
78  }
79  #if LANG_CXX11
80  PlaneGeom(PlaneGeom&& from) noexcept
81  : PlaneGeom() {
82  *this = ::std::move(from);
83  }
84 
85  inline PlaneGeom& operator=(PlaneGeom&& from) noexcept {
86  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
87  if (this != &from) InternalSwap(&from);
88  } else {
89  CopyFrom(from);
90  }
91  return *this;
92  }
93  #endif
94  static const ::google::protobuf::Descriptor* descriptor();
95  static const PlaneGeom& default_instance();
96 
97  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
98  static inline const PlaneGeom* internal_default_instance() {
99  return reinterpret_cast<const PlaneGeom*>(
101  }
102  static constexpr int kIndexInFileMessages =
103  0;
104 
105  void Swap(PlaneGeom* other);
106  friend void swap(PlaneGeom& a, PlaneGeom& b) {
107  a.Swap(&b);
108  }
109 
110  // implements Message ----------------------------------------------
111 
112  inline PlaneGeom* New() const final {
113  return CreateMaybeMessage<PlaneGeom>(NULL);
114  }
115 
116  PlaneGeom* New(::google::protobuf::Arena* arena) const final {
117  return CreateMaybeMessage<PlaneGeom>(arena);
118  }
119  void CopyFrom(const ::google::protobuf::Message& from) final;
120  void MergeFrom(const ::google::protobuf::Message& from) final;
121  void CopyFrom(const PlaneGeom& from);
122  void MergeFrom(const PlaneGeom& from);
123  void Clear() final;
124  bool IsInitialized() const final;
125 
126  size_t ByteSizeLong() const final;
127  bool MergePartialFromCodedStream(
128  ::google::protobuf::io::CodedInputStream* input) final;
129  void SerializeWithCachedSizes(
130  ::google::protobuf::io::CodedOutputStream* output) const final;
131  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
132  bool deterministic, ::google::protobuf::uint8* target) const final;
133  int GetCachedSize() const final { return _cached_size_.Get(); }
134 
135  private:
136  void SharedCtor();
137  void SharedDtor();
138  void SetCachedSize(int size) const final;
139  void InternalSwap(PlaneGeom* other);
140  private:
141  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
142  return NULL;
143  }
144  inline void* MaybeArenaPtr() const {
145  return NULL;
146  }
147  public:
148 
149  ::google::protobuf::Metadata GetMetadata() const final;
150 
151  // nested types ----------------------------------------------------
152 
153  // accessors -------------------------------------------------------
154 
155  // .gz.msgs.Header header = 1;
156  bool has_header() const;
157  void clear_header();
158  static const int kHeaderFieldNumber = 1;
159  private:
160  const ::gz::msgs::Header& _internal_header() const;
161  public:
162  const ::gz::msgs::Header& header() const;
163  ::gz::msgs::Header* release_header();
164  ::gz::msgs::Header* mutable_header();
165  void set_allocated_header(::gz::msgs::Header* header);
166 
167  // .gz.msgs.Vector3d normal = 2;
168  bool has_normal() const;
169  void clear_normal();
170  static const int kNormalFieldNumber = 2;
171  private:
172  const ::gz::msgs::Vector3d& _internal_normal() const;
173  public:
174  const ::gz::msgs::Vector3d& normal() const;
175  ::gz::msgs::Vector3d* release_normal();
176  ::gz::msgs::Vector3d* mutable_normal();
177  void set_allocated_normal(::gz::msgs::Vector3d* normal);
178 
179  // .gz.msgs.Vector2d size = 3;
180  bool has_size() const;
181  void clear_size();
182  static const int kSizeFieldNumber = 3;
183  private:
184  const ::gz::msgs::Vector2d& _internal_size() const;
185  public:
186  const ::gz::msgs::Vector2d& size() const;
187  ::gz::msgs::Vector2d* release_size();
188  ::gz::msgs::Vector2d* mutable_size();
189  void set_allocated_size(::gz::msgs::Vector2d* size);
190 
191  // double d = 4;
192  void clear_d();
193  static const int kDFieldNumber = 4;
194  double d() const;
195  void set_d(double value);
196 
197  // @@protoc_insertion_point(class_scope:gz.msgs.PlaneGeom)
198  private:
199 
200  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
201  ::gz::msgs::Header* header_;
202  ::gz::msgs::Vector3d* normal_;
203  ::gz::msgs::Vector2d* size_;
204  double d_;
205  mutable ::google::protobuf::internal::CachedSize _cached_size_;
206  friend struct ::protobuf_gz_2fmsgs_2fplanegeom_2eproto::TableStruct;
207 };
208 // ===================================================================
209 
210 
211 // ===================================================================
212 
213 #ifdef __GNUC__
214  #pragma GCC diagnostic push
215  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
216 #endif // __GNUC__
217 // PlaneGeom
218 
219 // .gz.msgs.Header header = 1;
220 inline bool PlaneGeom::has_header() const {
221  return this != internal_default_instance() && header_ != NULL;
222 }
223 inline const ::gz::msgs::Header& PlaneGeom::_internal_header() const {
224  return *header_;
225 }
226 inline const ::gz::msgs::Header& PlaneGeom::header() const {
227  const ::gz::msgs::Header* p = header_;
228  // @@protoc_insertion_point(field_get:gz.msgs.PlaneGeom.header)
229  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
231 }
232 inline ::gz::msgs::Header* PlaneGeom::release_header() {
233  // @@protoc_insertion_point(field_release:gz.msgs.PlaneGeom.header)
234 
235  ::gz::msgs::Header* temp = header_;
236  header_ = NULL;
237  return temp;
238 }
239 inline ::gz::msgs::Header* PlaneGeom::mutable_header() {
240 
241  if (header_ == NULL) {
242  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
243  header_ = p;
244  }
245  // @@protoc_insertion_point(field_mutable:gz.msgs.PlaneGeom.header)
246  return header_;
247 }
249  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
250  if (message_arena == NULL) {
251  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
252  }
253  if (header) {
254  ::google::protobuf::Arena* submessage_arena = NULL;
255  if (message_arena != submessage_arena) {
256  header = ::google::protobuf::internal::GetOwnedMessage(
257  message_arena, header, submessage_arena);
258  }
259 
260  } else {
261 
262  }
263  header_ = header;
264  // @@protoc_insertion_point(field_set_allocated:gz.msgs.PlaneGeom.header)
265 }
266 
267 // .gz.msgs.Vector3d normal = 2;
268 inline bool PlaneGeom::has_normal() const {
269  return this != internal_default_instance() && normal_ != NULL;
270 }
271 inline const ::gz::msgs::Vector3d& PlaneGeom::_internal_normal() const {
272  return *normal_;
273 }
274 inline const ::gz::msgs::Vector3d& PlaneGeom::normal() const {
275  const ::gz::msgs::Vector3d* p = normal_;
276  // @@protoc_insertion_point(field_get:gz.msgs.PlaneGeom.normal)
277  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Vector3d*>(
279 }
280 inline ::gz::msgs::Vector3d* PlaneGeom::release_normal() {
281  // @@protoc_insertion_point(field_release:gz.msgs.PlaneGeom.normal)
282 
283  ::gz::msgs::Vector3d* temp = normal_;
284  normal_ = NULL;
285  return temp;
286 }
287 inline ::gz::msgs::Vector3d* PlaneGeom::mutable_normal() {
288 
289  if (normal_ == NULL) {
290  auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
291  normal_ = p;
292  }
293  // @@protoc_insertion_point(field_mutable:gz.msgs.PlaneGeom.normal)
294  return normal_;
295 }
297  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
298  if (message_arena == NULL) {
299  delete reinterpret_cast< ::google::protobuf::MessageLite*>(normal_);
300  }
301  if (normal) {
302  ::google::protobuf::Arena* submessage_arena = NULL;
303  if (message_arena != submessage_arena) {
304  normal = ::google::protobuf::internal::GetOwnedMessage(
305  message_arena, normal, submessage_arena);
306  }
307 
308  } else {
309 
310  }
311  normal_ = normal;
312  // @@protoc_insertion_point(field_set_allocated:gz.msgs.PlaneGeom.normal)
313 }
314 
315 // .gz.msgs.Vector2d size = 3;
316 inline bool PlaneGeom::has_size() const {
317  return this != internal_default_instance() && size_ != NULL;
318 }
319 inline const ::gz::msgs::Vector2d& PlaneGeom::_internal_size() const {
320  return *size_;
321 }
322 inline const ::gz::msgs::Vector2d& PlaneGeom::size() const {
323  const ::gz::msgs::Vector2d* p = size_;
324  // @@protoc_insertion_point(field_get:gz.msgs.PlaneGeom.size)
325  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Vector2d*>(
327 }
328 inline ::gz::msgs::Vector2d* PlaneGeom::release_size() {
329  // @@protoc_insertion_point(field_release:gz.msgs.PlaneGeom.size)
330 
331  ::gz::msgs::Vector2d* temp = size_;
332  size_ = NULL;
333  return temp;
334 }
335 inline ::gz::msgs::Vector2d* PlaneGeom::mutable_size() {
336 
337  if (size_ == NULL) {
338  auto* p = CreateMaybeMessage<::gz::msgs::Vector2d>(GetArenaNoVirtual());
339  size_ = p;
340  }
341  // @@protoc_insertion_point(field_mutable:gz.msgs.PlaneGeom.size)
342  return size_;
343 }
345  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
346  if (message_arena == NULL) {
347  delete reinterpret_cast< ::google::protobuf::MessageLite*>(size_);
348  }
349  if (size) {
350  ::google::protobuf::Arena* submessage_arena = NULL;
351  if (message_arena != submessage_arena) {
352  size = ::google::protobuf::internal::GetOwnedMessage(
353  message_arena, size, submessage_arena);
354  }
355 
356  } else {
357 
358  }
359  size_ = size;
360  // @@protoc_insertion_point(field_set_allocated:gz.msgs.PlaneGeom.size)
361 }
362 
363 // double d = 4;
364 inline void PlaneGeom::clear_d() {
365  d_ = 0;
366 }
367 inline double PlaneGeom::d() const {
368  // @@protoc_insertion_point(field_get:gz.msgs.PlaneGeom.d)
369  return d_;
370 }
371 inline void PlaneGeom::set_d(double value) {
372 
373  d_ = value;
374  // @@protoc_insertion_point(field_set:gz.msgs.PlaneGeom.d)
375 }
376 
377 #ifdef __GNUC__
378  #pragma GCC diagnostic pop
379 #endif // __GNUC__
380 
381 // @@protoc_insertion_point(namespace_scope)
382 
383 } // namespace msgs
384 } // namespace gz
385 
386 // @@protoc_insertion_point(global_scope)
387 
388 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fplanegeom_2eproto