Ignition Msgs

API Reference

6.4.0
meshgeom.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/meshgeom.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fmeshgeom_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fmeshgeom_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3000000
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 3000000 < 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/arena.h>
23 #include <google/protobuf/arenastring.h>
24 #include <google/protobuf/generated_message_util.h>
25 #include <google/protobuf/metadata.h>
26 #include <google/protobuf/message.h>
27 #include <google/protobuf/repeated_field.h>
28 #include <google/protobuf/extension_set.h>
29 #include <google/protobuf/unknown_field_set.h>
32 #ifndef _MSC_VER
33 #pragma GCC system_header
34 #else
35 #pragma warning(push)
36 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
37 #endif
38 #ifdef __linux__
39 #include <sys/sysmacros.h>
40 #endif
41 #include <memory>
42 #include <ignition/msgs/Export.hh>
43 // @@protoc_insertion_point(includes)
44 
45 namespace ignition {
46 namespace msgs {
47 
48 // Internal implementation detail -- do not call these.
49 void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fmeshgeom_2eproto();
52 
53 class MeshGeom;
54 
55 // ===================================================================
56 
57 class IGNITION_MSGS_VISIBLE MeshGeom : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.MeshGeom) */ {
58  public:
59  MeshGeom();
60  virtual ~MeshGeom();
61 
62  MeshGeom(const MeshGeom& from);
63 
64  inline MeshGeom& operator=(const MeshGeom& from) {
65  CopyFrom(from);
66  return *this;
67  }
68 
69  static const ::google::protobuf::Descriptor* descriptor();
70  static const MeshGeom& default_instance();
71 
72  void Swap(MeshGeom* other);
73 
74  // implements Message ----------------------------------------------
75 
76  inline MeshGeom* New() const { return New(NULL); }
77 
78  MeshGeom* New(::google::protobuf::Arena* arena) const;
79  void CopyFrom(const ::google::protobuf::Message& from);
80  void MergeFrom(const ::google::protobuf::Message& from);
81  void CopyFrom(const MeshGeom& from);
82  void MergeFrom(const MeshGeom& from);
83  void Clear();
84  bool IsInitialized() const;
85 
86  int ByteSize() const;
87  bool MergePartialFromCodedStream(
88  ::google::protobuf::io::CodedInputStream* input);
89  void SerializeWithCachedSizes(
90  ::google::protobuf::io::CodedOutputStream* output) const;
91  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
92  bool deterministic, ::google::protobuf::uint8* output) const;
93  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
94  return InternalSerializeWithCachedSizesToArray(false, output);
95  }
96  int GetCachedSize() const { return _cached_size_; }
97  private:
98  void SharedCtor();
99  void SharedDtor();
100  void SetCachedSize(int size) const;
101  void InternalSwap(MeshGeom* other);
102  private:
103  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
104  return _internal_metadata_.arena();
105  }
106  inline void* MaybeArenaPtr() const {
107  return _internal_metadata_.raw_arena_ptr();
108  }
109  public:
110 
111  ::google::protobuf::Metadata GetMetadata() const;
112 
113  // nested types ----------------------------------------------------
114 
115  // accessors -------------------------------------------------------
116 
117  // optional .ignition.msgs.Header header = 1;
118  bool has_header() const;
119  void clear_header();
120  static const int kHeaderFieldNumber = 1;
121  const ::ignition::msgs::Header& header() const;
122  ::ignition::msgs::Header* mutable_header();
123  ::ignition::msgs::Header* release_header();
124  void set_allocated_header(::ignition::msgs::Header* header);
125 
126  // optional string filename = 2;
127  void clear_filename();
128  static const int kFilenameFieldNumber = 2;
129  const ::std::string& filename() const;
130  void set_filename(const ::std::string& value);
131  void set_filename(const char* value);
132  void set_filename(const char* value, size_t size);
133  ::std::string* mutable_filename();
134  ::std::string* release_filename();
135  void set_allocated_filename(::std::string* filename);
136 
137  // optional .ignition.msgs.Vector3d scale = 3;
138  bool has_scale() const;
139  void clear_scale();
140  static const int kScaleFieldNumber = 3;
141  const ::ignition::msgs::Vector3d& scale() const;
142  ::ignition::msgs::Vector3d* mutable_scale();
143  ::ignition::msgs::Vector3d* release_scale();
144  void set_allocated_scale(::ignition::msgs::Vector3d* scale);
145 
146  // optional string submesh = 4;
147  void clear_submesh();
148  static const int kSubmeshFieldNumber = 4;
149  const ::std::string& submesh() const;
150  void set_submesh(const ::std::string& value);
151  void set_submesh(const char* value);
152  void set_submesh(const char* value, size_t size);
153  ::std::string* mutable_submesh();
154  ::std::string* release_submesh();
155  void set_allocated_submesh(::std::string* submesh);
156 
157  // optional bool center_submesh = 5;
158  void clear_center_submesh();
159  static const int kCenterSubmeshFieldNumber = 5;
160  bool center_submesh() const;
161  void set_center_submesh(bool value);
162 
163  // @@protoc_insertion_point(class_scope:ignition.msgs.MeshGeom)
164  private:
165 
166  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
167  bool _is_default_instance_;
168  ::ignition::msgs::Header* header_;
169  ::google::protobuf::internal::ArenaStringPtr filename_;
171  ::google::protobuf::internal::ArenaStringPtr submesh_;
172  bool center_submesh_;
173  mutable int _cached_size_;
174  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fmeshgeom_2eproto();
177 
178  void InitAsDefaultInstance();
179  static MeshGeom* default_instance_;
180 };
181 // ===================================================================
182 
183 
184 // ===================================================================
185 
186 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
187 // MeshGeom
188 
189 // optional .ignition.msgs.Header header = 1;
190 inline bool MeshGeom::has_header() const {
191  return !_is_default_instance_ && header_ != NULL;
192 }
193 inline void MeshGeom::clear_header() {
194  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
195  header_ = NULL;
196 }
197 inline const ::ignition::msgs::Header& MeshGeom::header() const {
198  // @@protoc_insertion_point(field_get:ignition.msgs.MeshGeom.header)
199  return header_ != NULL ? *header_ : *default_instance_->header_;
200 }
201 inline ::ignition::msgs::Header* MeshGeom::mutable_header() {
202 
203  if (header_ == NULL) {
204  header_ = new ::ignition::msgs::Header;
205  }
206  // @@protoc_insertion_point(field_mutable:ignition.msgs.MeshGeom.header)
207  return header_;
208 }
209 inline ::ignition::msgs::Header* MeshGeom::release_header() {
210  // @@protoc_insertion_point(field_release:ignition.msgs.MeshGeom.header)
211 
212  ::ignition::msgs::Header* temp = header_;
213  header_ = NULL;
214  return temp;
215 }
217  delete header_;
218  header_ = header;
219  if (header) {
220 
221  } else {
222 
223  }
224  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.MeshGeom.header)
225 }
226 
227 // optional string filename = 2;
229  filename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
230 }
231 inline const ::std::string& MeshGeom::filename() const {
232  // @@protoc_insertion_point(field_get:ignition.msgs.MeshGeom.filename)
233  return filename_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
234 }
235 inline void MeshGeom::set_filename(const ::std::string& value) {
236 
237  filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
238  // @@protoc_insertion_point(field_set:ignition.msgs.MeshGeom.filename)
239 }
240 inline void MeshGeom::set_filename(const char* value) {
241 
242  filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
243  // @@protoc_insertion_point(field_set_char:ignition.msgs.MeshGeom.filename)
244 }
245 inline void MeshGeom::set_filename(const char* value, size_t size) {
246 
247  filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
248  ::std::string(reinterpret_cast<const char*>(value), size));
249  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.MeshGeom.filename)
250 }
251 inline ::std::string* MeshGeom::mutable_filename() {
252 
253  // @@protoc_insertion_point(field_mutable:ignition.msgs.MeshGeom.filename)
254  return filename_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
255 }
256 inline ::std::string* MeshGeom::release_filename() {
257  // @@protoc_insertion_point(field_release:ignition.msgs.MeshGeom.filename)
258 
259  return filename_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
260 }
262  if (filename != NULL) {
263 
264  } else {
265 
266  }
267  filename_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filename);
268  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.MeshGeom.filename)
269 }
270 
271 // optional .ignition.msgs.Vector3d scale = 3;
272 inline bool MeshGeom::has_scale() const {
273  return !_is_default_instance_ && scale_ != NULL;
274 }
275 inline void MeshGeom::clear_scale() {
276  if (GetArenaNoVirtual() == NULL && scale_ != NULL) delete scale_;
277  scale_ = NULL;
278 }
279 inline const ::ignition::msgs::Vector3d& MeshGeom::scale() const {
280  // @@protoc_insertion_point(field_get:ignition.msgs.MeshGeom.scale)
281  return scale_ != NULL ? *scale_ : *default_instance_->scale_;
282 }
283 inline ::ignition::msgs::Vector3d* MeshGeom::mutable_scale() {
284 
285  if (scale_ == NULL) {
286  scale_ = new ::ignition::msgs::Vector3d;
287  }
288  // @@protoc_insertion_point(field_mutable:ignition.msgs.MeshGeom.scale)
289  return scale_;
290 }
291 inline ::ignition::msgs::Vector3d* MeshGeom::release_scale() {
292  // @@protoc_insertion_point(field_release:ignition.msgs.MeshGeom.scale)
293 
294  ::ignition::msgs::Vector3d* temp = scale_;
295  scale_ = NULL;
296  return temp;
297 }
299  delete scale_;
300  scale_ = scale;
301  if (scale) {
302 
303  } else {
304 
305  }
306  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.MeshGeom.scale)
307 }
308 
309 // optional string submesh = 4;
310 inline void MeshGeom::clear_submesh() {
311  submesh_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
312 }
313 inline const ::std::string& MeshGeom::submesh() const {
314  // @@protoc_insertion_point(field_get:ignition.msgs.MeshGeom.submesh)
315  return submesh_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
316 }
317 inline void MeshGeom::set_submesh(const ::std::string& value) {
318 
319  submesh_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
320  // @@protoc_insertion_point(field_set:ignition.msgs.MeshGeom.submesh)
321 }
322 inline void MeshGeom::set_submesh(const char* value) {
323 
324  submesh_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
325  // @@protoc_insertion_point(field_set_char:ignition.msgs.MeshGeom.submesh)
326 }
327 inline void MeshGeom::set_submesh(const char* value, size_t size) {
328 
329  submesh_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
330  ::std::string(reinterpret_cast<const char*>(value), size));
331  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.MeshGeom.submesh)
332 }
333 inline ::std::string* MeshGeom::mutable_submesh() {
334 
335  // @@protoc_insertion_point(field_mutable:ignition.msgs.MeshGeom.submesh)
336  return submesh_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
337 }
338 inline ::std::string* MeshGeom::release_submesh() {
339  // @@protoc_insertion_point(field_release:ignition.msgs.MeshGeom.submesh)
340 
341  return submesh_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
342 }
344  if (submesh != NULL) {
345 
346  } else {
347 
348  }
349  submesh_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), submesh);
350  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.MeshGeom.submesh)
351 }
352 
353 // optional bool center_submesh = 5;
355  center_submesh_ = false;
356 }
357 inline bool MeshGeom::center_submesh() const {
358  // @@protoc_insertion_point(field_get:ignition.msgs.MeshGeom.center_submesh)
359  return center_submesh_;
360 }
361 inline void MeshGeom::set_center_submesh(bool value) {
362 
363  center_submesh_ = value;
364  // @@protoc_insertion_point(field_set:ignition.msgs.MeshGeom.center_submesh)
365 }
366 
367 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
368 
373 // @@protoc_insertion_point(namespace_scope)
374 
375 } // namespace msgs
376 } // namespace ignition
377 
378 #ifdef _MSC_VER
379 #pragma warning(pop)
380 #endif
381 // @@protoc_insertion_point(global_scope)
382 
383 #endif // PROTOBUF_ignition_2fmsgs_2fmeshgeom_2eproto__INCLUDED
std::shared_ptr< const MeshGeom > ConstMeshGeomSharedPtr
Definition: meshgeom.pb.h:372
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fmeshgeom_2eproto()
const ::ignition::msgs::Vector3d & scale() const
Definition: meshgeom.pb.h:279
void protobuf_AssignDesc_ignition_2fmsgs_2fmeshgeom_2eproto()
::std::string * mutable_submesh()
Definition: meshgeom.pb.h:333
bool has_scale() const
Definition: meshgeom.pb.h:272
const ::std::string & submesh() const
Definition: meshgeom.pb.h:313
::ignition::msgs::Header * release_header()
Definition: meshgeom.pb.h:209
void clear_filename()
Definition: meshgeom.pb.h:228
MeshGeom & operator=(const MeshGeom &from)
Definition: meshgeom.pb.h:64
const ::std::string & filename() const
Definition: meshgeom.pb.h:231
Definition: header.pb.h:161
STL class.
bool has_header() const
Definition: meshgeom.pb.h:190
::ignition::msgs::Header * mutable_header()
Definition: meshgeom.pb.h:201
const ::ignition::msgs::Header & header() const
Definition: meshgeom.pb.h:197
void set_filename(const ::std::string &value)
Definition: meshgeom.pb.h:235
void clear_header()
Definition: meshgeom.pb.h:193
::ignition::msgs::Vector3d * mutable_scale()
Definition: meshgeom.pb.h:283
bool center_submesh() const
Definition: meshgeom.pb.h:357
void clear_center_submesh()
Definition: meshgeom.pb.h:354
int GetCachedSize() const
Definition: meshgeom.pb.h:96
void set_allocated_submesh(::std::string *submesh)
Definition: meshgeom.pb.h:343
std::shared_ptr< MeshGeom > MeshGeomSharedPtr
Definition: meshgeom.pb.h:371
void clear_scale()
Definition: meshgeom.pb.h:275
void set_allocated_scale(::ignition::msgs::Vector3d *scale)
Definition: meshgeom.pb.h:298
Definition: meshgeom.pb.h:57
Definition: vector3d.pb.h:56
std::unique_ptr< const MeshGeom > ConstMeshGeomUniquePtr
Definition: meshgeom.pb.h:370
STL class.
std::unique_ptr< MeshGeom > MeshGeomUniquePtr
Definition: meshgeom.pb.h:369
::std::string * release_submesh()
Definition: meshgeom.pb.h:338
::std::string * mutable_filename()
Definition: meshgeom.pb.h:251
void set_submesh(const ::std::string &value)
Definition: meshgeom.pb.h:317
::std::string * release_filename()
Definition: meshgeom.pb.h:256
void set_center_submesh(bool value)
Definition: meshgeom.pb.h:361
void set_allocated_header(::ignition::msgs::Header *header)
Definition: meshgeom.pb.h:216
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: meshgeom.pb.h:93
MeshGeom * New() const
Definition: meshgeom.pb.h:76
::ignition::msgs::Vector3d * release_scale()
Definition: meshgeom.pb.h:291
void set_allocated_filename(::std::string *filename)
Definition: meshgeom.pb.h:261
void protobuf_ShutdownFile_ignition_2fmsgs_2fmeshgeom_2eproto()
void clear_submesh()
Definition: meshgeom.pb.h:310