Gazebo Msgs

API Reference

9.5.1
meshgeom.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/meshgeom.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fmeshgeom_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fmeshgeom_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/header.pb.h"
35 // @@protoc_insertion_point(includes)
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fmeshgeom_2eproto GZ_MSGS_VISIBLE
37 
39 // Internal implementation detail -- do not use these members.
40 struct GZ_MSGS_VISIBLE TableStruct {
41  static const ::google::protobuf::internal::ParseTableField entries[];
42  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
43  static const ::google::protobuf::internal::ParseTable schema[1];
44  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
45  static const ::google::protobuf::internal::SerializationTable serialization_table[];
46  static const ::google::protobuf::uint32 offsets[];
47 };
48 void GZ_MSGS_VISIBLE AddDescriptors();
49 } // namespace protobuf_gz_2fmsgs_2fmeshgeom_2eproto
50 namespace gz {
51 namespace msgs {
52 class MeshGeom;
53 class MeshGeomDefaultTypeInternal;
54 GZ_MSGS_VISIBLE extern MeshGeomDefaultTypeInternal _MeshGeom_default_instance_;
55 } // namespace msgs
56 } // namespace gz
57 namespace google {
58 namespace protobuf {
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::MeshGeom* Arena::CreateMaybeMessage<::gz::msgs::MeshGeom>(Arena*);
60 } // namespace protobuf
61 } // namespace google
62 namespace gz {
63 namespace msgs {
64 
65 // ===================================================================
66 
67 class GZ_MSGS_VISIBLE MeshGeom : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.MeshGeom) */ {
68  public:
69  MeshGeom();
70  virtual ~MeshGeom();
71 
72  MeshGeom(const MeshGeom& from);
73 
74  inline MeshGeom& operator=(const MeshGeom& from) {
75  CopyFrom(from);
76  return *this;
77  }
78  #if LANG_CXX11
79  MeshGeom(MeshGeom&& from) noexcept
80  : MeshGeom() {
81  *this = ::std::move(from);
82  }
83 
84  inline MeshGeom& operator=(MeshGeom&& from) noexcept {
85  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
86  if (this != &from) InternalSwap(&from);
87  } else {
88  CopyFrom(from);
89  }
90  return *this;
91  }
92  #endif
93  static const ::google::protobuf::Descriptor* descriptor();
94  static const MeshGeom& default_instance();
95 
96  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
97  static inline const MeshGeom* internal_default_instance() {
98  return reinterpret_cast<const MeshGeom*>(
100  }
101  static constexpr int kIndexInFileMessages =
102  0;
103 
104  void Swap(MeshGeom* other);
105  friend void swap(MeshGeom& a, MeshGeom& b) {
106  a.Swap(&b);
107  }
108 
109  // implements Message ----------------------------------------------
110 
111  inline MeshGeom* New() const final {
112  return CreateMaybeMessage<MeshGeom>(NULL);
113  }
114 
115  MeshGeom* New(::google::protobuf::Arena* arena) const final {
116  return CreateMaybeMessage<MeshGeom>(arena);
117  }
118  void CopyFrom(const ::google::protobuf::Message& from) final;
119  void MergeFrom(const ::google::protobuf::Message& from) final;
120  void CopyFrom(const MeshGeom& from);
121  void MergeFrom(const MeshGeom& from);
122  void Clear() final;
123  bool IsInitialized() const final;
124 
125  size_t ByteSizeLong() const final;
126  bool MergePartialFromCodedStream(
127  ::google::protobuf::io::CodedInputStream* input) final;
128  void SerializeWithCachedSizes(
129  ::google::protobuf::io::CodedOutputStream* output) const final;
130  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
131  bool deterministic, ::google::protobuf::uint8* target) const final;
132  int GetCachedSize() const final { return _cached_size_.Get(); }
133 
134  private:
135  void SharedCtor();
136  void SharedDtor();
137  void SetCachedSize(int size) const final;
138  void InternalSwap(MeshGeom* other);
139  private:
140  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
141  return NULL;
142  }
143  inline void* MaybeArenaPtr() const {
144  return NULL;
145  }
146  public:
147 
148  ::google::protobuf::Metadata GetMetadata() const final;
149 
150  // nested types ----------------------------------------------------
151 
152  // accessors -------------------------------------------------------
153 
154  // string filename = 2;
155  void clear_filename();
156  static const int kFilenameFieldNumber = 2;
157  const ::std::string& filename() const;
158  void set_filename(const ::std::string& value);
159  #if LANG_CXX11
160  void set_filename(::std::string&& value);
161  #endif
162  void set_filename(const char* value);
163  void set_filename(const char* value, size_t size);
164  ::std::string* mutable_filename();
165  ::std::string* release_filename();
166  void set_allocated_filename(::std::string* filename);
167 
168  // string submesh = 4;
169  void clear_submesh();
170  static const int kSubmeshFieldNumber = 4;
171  const ::std::string& submesh() const;
172  void set_submesh(const ::std::string& value);
173  #if LANG_CXX11
174  void set_submesh(::std::string&& value);
175  #endif
176  void set_submesh(const char* value);
177  void set_submesh(const char* value, size_t size);
178  ::std::string* mutable_submesh();
179  ::std::string* release_submesh();
180  void set_allocated_submesh(::std::string* submesh);
181 
182  // .gz.msgs.Header header = 1;
183  bool has_header() const;
184  void clear_header();
185  static const int kHeaderFieldNumber = 1;
186  private:
187  const ::gz::msgs::Header& _internal_header() const;
188  public:
189  const ::gz::msgs::Header& header() const;
190  ::gz::msgs::Header* release_header();
191  ::gz::msgs::Header* mutable_header();
192  void set_allocated_header(::gz::msgs::Header* header);
193 
194  // .gz.msgs.Vector3d scale = 3;
195  bool has_scale() const;
196  void clear_scale();
197  static const int kScaleFieldNumber = 3;
198  private:
199  const ::gz::msgs::Vector3d& _internal_scale() const;
200  public:
201  const ::gz::msgs::Vector3d& scale() const;
202  ::gz::msgs::Vector3d* release_scale();
203  ::gz::msgs::Vector3d* mutable_scale();
204  void set_allocated_scale(::gz::msgs::Vector3d* scale);
205 
206  // bool center_submesh = 5;
207  void clear_center_submesh();
208  static const int kCenterSubmeshFieldNumber = 5;
209  bool center_submesh() const;
210  void set_center_submesh(bool value);
211 
212  // @@protoc_insertion_point(class_scope:gz.msgs.MeshGeom)
213  private:
214 
215  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
216  ::google::protobuf::internal::ArenaStringPtr filename_;
217  ::google::protobuf::internal::ArenaStringPtr submesh_;
218  ::gz::msgs::Header* header_;
219  ::gz::msgs::Vector3d* scale_;
220  bool center_submesh_;
221  mutable ::google::protobuf::internal::CachedSize _cached_size_;
222  friend struct ::protobuf_gz_2fmsgs_2fmeshgeom_2eproto::TableStruct;
223 };
224 // ===================================================================
225 
226 
227 // ===================================================================
228 
229 #ifdef __GNUC__
230  #pragma GCC diagnostic push
231  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
232 #endif // __GNUC__
233 // MeshGeom
234 
235 // .gz.msgs.Header header = 1;
236 inline bool MeshGeom::has_header() const {
237  return this != internal_default_instance() && header_ != NULL;
238 }
239 inline const ::gz::msgs::Header& MeshGeom::_internal_header() const {
240  return *header_;
241 }
242 inline const ::gz::msgs::Header& MeshGeom::header() const {
243  const ::gz::msgs::Header* p = header_;
244  // @@protoc_insertion_point(field_get:gz.msgs.MeshGeom.header)
245  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
247 }
248 inline ::gz::msgs::Header* MeshGeom::release_header() {
249  // @@protoc_insertion_point(field_release:gz.msgs.MeshGeom.header)
250 
251  ::gz::msgs::Header* temp = header_;
252  header_ = NULL;
253  return temp;
254 }
255 inline ::gz::msgs::Header* MeshGeom::mutable_header() {
256 
257  if (header_ == NULL) {
258  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
259  header_ = p;
260  }
261  // @@protoc_insertion_point(field_mutable:gz.msgs.MeshGeom.header)
262  return header_;
263 }
265  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
266  if (message_arena == NULL) {
267  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
268  }
269  if (header) {
270  ::google::protobuf::Arena* submessage_arena = NULL;
271  if (message_arena != submessage_arena) {
272  header = ::google::protobuf::internal::GetOwnedMessage(
273  message_arena, header, submessage_arena);
274  }
275 
276  } else {
277 
278  }
279  header_ = header;
280  // @@protoc_insertion_point(field_set_allocated:gz.msgs.MeshGeom.header)
281 }
282 
283 // string filename = 2;
285  filename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
286 }
287 inline const ::std::string& MeshGeom::filename() const {
288  // @@protoc_insertion_point(field_get:gz.msgs.MeshGeom.filename)
289  return filename_.GetNoArena();
290 }
291 inline void MeshGeom::set_filename(const ::std::string& value) {
292 
293  filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
294  // @@protoc_insertion_point(field_set:gz.msgs.MeshGeom.filename)
295 }
296 #if LANG_CXX11
297 inline void MeshGeom::set_filename(::std::string&& value) {
298 
299  filename_.SetNoArena(
300  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
301  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.MeshGeom.filename)
302 }
303 #endif
304 inline void MeshGeom::set_filename(const char* value) {
305  GOOGLE_DCHECK(value != NULL);
306 
307  filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
308  // @@protoc_insertion_point(field_set_char:gz.msgs.MeshGeom.filename)
309 }
310 inline void MeshGeom::set_filename(const char* value, size_t size) {
311 
312  filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
313  ::std::string(reinterpret_cast<const char*>(value), size));
314  // @@protoc_insertion_point(field_set_pointer:gz.msgs.MeshGeom.filename)
315 }
316 inline ::std::string* MeshGeom::mutable_filename() {
317 
318  // @@protoc_insertion_point(field_mutable:gz.msgs.MeshGeom.filename)
319  return filename_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
320 }
321 inline ::std::string* MeshGeom::release_filename() {
322  // @@protoc_insertion_point(field_release:gz.msgs.MeshGeom.filename)
323 
324  return filename_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
325 }
327  if (filename != NULL) {
328 
329  } else {
330 
331  }
332  filename_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filename);
333  // @@protoc_insertion_point(field_set_allocated:gz.msgs.MeshGeom.filename)
334 }
335 
336 // .gz.msgs.Vector3d scale = 3;
337 inline bool MeshGeom::has_scale() const {
338  return this != internal_default_instance() && scale_ != NULL;
339 }
340 inline const ::gz::msgs::Vector3d& MeshGeom::_internal_scale() const {
341  return *scale_;
342 }
343 inline const ::gz::msgs::Vector3d& MeshGeom::scale() const {
344  const ::gz::msgs::Vector3d* p = scale_;
345  // @@protoc_insertion_point(field_get:gz.msgs.MeshGeom.scale)
346  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Vector3d*>(
348 }
349 inline ::gz::msgs::Vector3d* MeshGeom::release_scale() {
350  // @@protoc_insertion_point(field_release:gz.msgs.MeshGeom.scale)
351 
352  ::gz::msgs::Vector3d* temp = scale_;
353  scale_ = NULL;
354  return temp;
355 }
356 inline ::gz::msgs::Vector3d* MeshGeom::mutable_scale() {
357 
358  if (scale_ == NULL) {
359  auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
360  scale_ = p;
361  }
362  // @@protoc_insertion_point(field_mutable:gz.msgs.MeshGeom.scale)
363  return scale_;
364 }
366  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
367  if (message_arena == NULL) {
368  delete reinterpret_cast< ::google::protobuf::MessageLite*>(scale_);
369  }
370  if (scale) {
371  ::google::protobuf::Arena* submessage_arena = NULL;
372  if (message_arena != submessage_arena) {
373  scale = ::google::protobuf::internal::GetOwnedMessage(
374  message_arena, scale, submessage_arena);
375  }
376 
377  } else {
378 
379  }
380  scale_ = scale;
381  // @@protoc_insertion_point(field_set_allocated:gz.msgs.MeshGeom.scale)
382 }
383 
384 // string submesh = 4;
385 inline void MeshGeom::clear_submesh() {
386  submesh_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
387 }
388 inline const ::std::string& MeshGeom::submesh() const {
389  // @@protoc_insertion_point(field_get:gz.msgs.MeshGeom.submesh)
390  return submesh_.GetNoArena();
391 }
392 inline void MeshGeom::set_submesh(const ::std::string& value) {
393 
394  submesh_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
395  // @@protoc_insertion_point(field_set:gz.msgs.MeshGeom.submesh)
396 }
397 #if LANG_CXX11
398 inline void MeshGeom::set_submesh(::std::string&& value) {
399 
400  submesh_.SetNoArena(
401  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
402  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.MeshGeom.submesh)
403 }
404 #endif
405 inline void MeshGeom::set_submesh(const char* value) {
406  GOOGLE_DCHECK(value != NULL);
407 
408  submesh_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
409  // @@protoc_insertion_point(field_set_char:gz.msgs.MeshGeom.submesh)
410 }
411 inline void MeshGeom::set_submesh(const char* value, size_t size) {
412 
413  submesh_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
414  ::std::string(reinterpret_cast<const char*>(value), size));
415  // @@protoc_insertion_point(field_set_pointer:gz.msgs.MeshGeom.submesh)
416 }
417 inline ::std::string* MeshGeom::mutable_submesh() {
418 
419  // @@protoc_insertion_point(field_mutable:gz.msgs.MeshGeom.submesh)
420  return submesh_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
421 }
422 inline ::std::string* MeshGeom::release_submesh() {
423  // @@protoc_insertion_point(field_release:gz.msgs.MeshGeom.submesh)
424 
425  return submesh_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
426 }
428  if (submesh != NULL) {
429 
430  } else {
431 
432  }
433  submesh_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), submesh);
434  // @@protoc_insertion_point(field_set_allocated:gz.msgs.MeshGeom.submesh)
435 }
436 
437 // bool center_submesh = 5;
439  center_submesh_ = false;
440 }
441 inline bool MeshGeom::center_submesh() const {
442  // @@protoc_insertion_point(field_get:gz.msgs.MeshGeom.center_submesh)
443  return center_submesh_;
444 }
445 inline void MeshGeom::set_center_submesh(bool value) {
446 
447  center_submesh_ = value;
448  // @@protoc_insertion_point(field_set:gz.msgs.MeshGeom.center_submesh)
449 }
450 
451 #ifdef __GNUC__
452  #pragma GCC diagnostic pop
453 #endif // __GNUC__
454 
455 // @@protoc_insertion_point(namespace_scope)
456 
457 } // namespace msgs
458 } // namespace gz
459 
460 // @@protoc_insertion_point(global_scope)
461 
462 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fmeshgeom_2eproto