Mondschein Engine  0.3.0
mbd.pb.cc
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: mbd.proto
3 
4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5 #include "mbd.pb.h"
6 
7 #include <algorithm>
8 
9 #include <google/protobuf/stubs/common.h>
10 #include <google/protobuf/stubs/once.h>
11 #include <google/protobuf/io/coded_stream.h>
12 #include <google/protobuf/wire_format_lite_inl.h>
13 #include <google/protobuf/descriptor.h>
14 #include <google/protobuf/generated_message_reflection.h>
15 #include <google/protobuf/reflection_ops.h>
16 #include <google/protobuf/wire_format.h>
17 // @@protoc_insertion_point(includes)
18 
19 namespace mondschein
20 {
21  namespace io
22  {
23  namespace mbd
24  {
25 
26  namespace
27  {
28 
29  const ::google::protobuf::Descriptor *data_descriptor_ = NULL;
30  const ::google::protobuf::internal::GeneratedMessageReflection *
31  data_reflection_ = NULL;
32  const ::google::protobuf::Descriptor *data_vector_descriptor_ = NULL;
33  const ::google::protobuf::internal::GeneratedMessageReflection *
34  data_vector_reflection_ = NULL;
35  const ::google::protobuf::Descriptor *data_camera_descriptor_ = NULL;
36  const ::google::protobuf::internal::GeneratedMessageReflection *
37  data_camera_reflection_ = NULL;
38  const ::google::protobuf::Descriptor *data_light_descriptor_ = NULL;
39  const ::google::protobuf::internal::GeneratedMessageReflection *
40  data_light_reflection_ = NULL;
41  const ::google::protobuf::Descriptor *data_material_descriptor_ = NULL;
42  const ::google::protobuf::internal::GeneratedMessageReflection *
43  data_material_reflection_ = NULL;
44  const ::google::protobuf::Descriptor *data_mesh_descriptor_ = NULL;
45  const ::google::protobuf::internal::GeneratedMessageReflection *
46  data_mesh_reflection_ = NULL;
47  const ::google::protobuf::Descriptor *data_pose_descriptor_ = NULL;
48  const ::google::protobuf::internal::GeneratedMessageReflection *
49  data_pose_reflection_ = NULL;
50  const ::google::protobuf::Descriptor *data_texture_descriptor_ = NULL;
51  const ::google::protobuf::internal::GeneratedMessageReflection *
52  data_texture_reflection_ = NULL;
53  const ::google::protobuf::Descriptor *data_scenegraph_descriptor_ = NULL;
54  const ::google::protobuf::internal::GeneratedMessageReflection *
55  data_scenegraph_reflection_ = NULL;
56  const ::google::protobuf::Descriptor *data_scenegraph_attribs_tuple_descriptor_ = NULL;
57  const ::google::protobuf::internal::GeneratedMessageReflection *
58  data_scenegraph_attribs_tuple_reflection_ = NULL;
59  const ::google::protobuf::Descriptor *data_beziercurve_descriptor_ = NULL;
60  const ::google::protobuf::internal::GeneratedMessageReflection *
61  data_beziercurve_reflection_ = NULL;
62  const ::google::protobuf::Descriptor *data_bezierpatch_descriptor_ = NULL;
63  const ::google::protobuf::internal::GeneratedMessageReflection *
64  data_bezierpatch_reflection_ = NULL;
65  const ::google::protobuf::Descriptor *data_nurbscurve_descriptor_ = NULL;
66  const ::google::protobuf::internal::GeneratedMessageReflection *
67  data_nurbscurve_reflection_ = NULL;
68  const ::google::protobuf::Descriptor *data_nurbspatch_descriptor_ = NULL;
69  const ::google::protobuf::internal::GeneratedMessageReflection *
70  data_nurbspatch_reflection_ = NULL;
71  const ::google::protobuf::EnumDescriptor *normal_e_descriptor_ = NULL;
72  const ::google::protobuf::EnumDescriptor *texture_filtering_e_descriptor_ = NULL;
73 
74  } // namespace
75 
76 
77  void protobuf_AssignDesc_mbd_2eproto()
78  {
79  protobuf_AddDesc_mbd_2eproto();
80  const ::google::protobuf::FileDescriptor *file =
81  ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
82  "mbd.proto");
83  GOOGLE_CHECK(file != NULL);
84  data_descriptor_ = file->message_type(0);
85  static const int data_offsets_[12] =
86  {
87  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data, name_),
88  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data, cameras_),
89  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data, lights_),
90  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data, materials_),
91  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data, meshes_),
92  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data, poses_),
93  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data, textures_),
94  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data, beziercurves_),
95  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data, nurbscurves_),
96  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data, bezierpatches_),
97  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data, nurbspatches_),
98  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data, scenegraphs_),
99  };
100  data_reflection_ =
101  new ::google::protobuf::internal::GeneratedMessageReflection(
102  data_descriptor_,
103  data::default_instance_,
104  data_offsets_,
105  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data, _has_bits_[0]),
106  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data, _unknown_fields_),
107  -1,
108  ::google::protobuf::DescriptorPool::generated_pool(),
109  ::google::protobuf::MessageFactory::generated_factory(),
110  sizeof(data));
111  data_vector_descriptor_ = data_descriptor_->nested_type(0);
112  static const int data_vector_offsets_[4] =
113  {
114  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_vector, x_),
115  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_vector, y_),
116  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_vector, z_),
117  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_vector, w_),
118  };
119  data_vector_reflection_ =
120  new ::google::protobuf::internal::GeneratedMessageReflection(
121  data_vector_descriptor_,
122  data_vector::default_instance_,
123  data_vector_offsets_,
124  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_vector, _has_bits_[0]),
125  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_vector, _unknown_fields_),
126  -1,
127  ::google::protobuf::DescriptorPool::generated_pool(),
128  ::google::protobuf::MessageFactory::generated_factory(),
129  sizeof(data_vector));
130  data_camera_descriptor_ = data_descriptor_->nested_type(1);
131  static const int data_camera_offsets_[9] =
132  {
133  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_camera, name_),
134  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_camera, fovy_),
135  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_camera, aspect_),
136  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_camera, near_),
137  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_camera, far_),
138  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_camera, x_),
139  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_camera, y_),
140  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_camera, w_),
141  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_camera, h_),
142  };
143  data_camera_reflection_ =
144  new ::google::protobuf::internal::GeneratedMessageReflection(
145  data_camera_descriptor_,
146  data_camera::default_instance_,
147  data_camera_offsets_,
148  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_camera, _has_bits_[0]),
149  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_camera, _unknown_fields_),
150  -1,
151  ::google::protobuf::DescriptorPool::generated_pool(),
152  ::google::protobuf::MessageFactory::generated_factory(),
153  sizeof(data_camera));
154  data_light_descriptor_ = data_descriptor_->nested_type(2);
155  static const int data_light_offsets_[12] =
156  {
157  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_light, name_),
158  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_light, ambient_),
159  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_light, diffuse_),
160  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_light, specular_),
161  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_light, position_),
162  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_light, direction_),
163  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_light, exponent_),
164  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_light, cutoff_),
165  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_light, const_att_),
166  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_light, lin_att_),
167  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_light, quad_att_),
168  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_light, light_nr_),
169  };
170  data_light_reflection_ =
171  new ::google::protobuf::internal::GeneratedMessageReflection(
172  data_light_descriptor_,
173  data_light::default_instance_,
174  data_light_offsets_,
175  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_light, _has_bits_[0]),
176  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_light, _unknown_fields_),
177  -1,
178  ::google::protobuf::DescriptorPool::generated_pool(),
179  ::google::protobuf::MessageFactory::generated_factory(),
180  sizeof(data_light));
181  data_material_descriptor_ = data_descriptor_->nested_type(3);
182  static const int data_material_offsets_[6] =
183  {
184  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_material, name_),
185  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_material, ambient_),
186  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_material, diffuse_),
187  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_material, specular_),
188  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_material, emission_),
189  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_material, shininess_),
190  };
191  data_material_reflection_ =
192  new ::google::protobuf::internal::GeneratedMessageReflection(
193  data_material_descriptor_,
194  data_material::default_instance_,
195  data_material_offsets_,
196  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_material, _has_bits_[0]),
197  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_material, _unknown_fields_),
198  -1,
199  ::google::protobuf::DescriptorPool::generated_pool(),
200  ::google::protobuf::MessageFactory::generated_factory(),
201  sizeof(data_material));
202  data_mesh_descriptor_ = data_descriptor_->nested_type(4);
203  static const int data_mesh_offsets_[5] =
204  {
205  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_mesh, name_),
206  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_mesh, v_),
207  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_mesh, vn_),
208  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_mesh, vt_),
209  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_mesh, vc_),
210  };
211  data_mesh_reflection_ =
212  new ::google::protobuf::internal::GeneratedMessageReflection(
213  data_mesh_descriptor_,
214  data_mesh::default_instance_,
215  data_mesh_offsets_,
216  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_mesh, _has_bits_[0]),
217  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_mesh, _unknown_fields_),
218  -1,
219  ::google::protobuf::DescriptorPool::generated_pool(),
220  ::google::protobuf::MessageFactory::generated_factory(),
221  sizeof(data_mesh));
222  data_pose_descriptor_ = data_descriptor_->nested_type(5);
223  static const int data_pose_offsets_[5] =
224  {
225  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_pose, name_),
226  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_pose, c1_),
227  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_pose, c2_),
228  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_pose, c3_),
229  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_pose, c4_),
230  };
231  data_pose_reflection_ =
232  new ::google::protobuf::internal::GeneratedMessageReflection(
233  data_pose_descriptor_,
234  data_pose::default_instance_,
235  data_pose_offsets_,
236  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_pose, _has_bits_[0]),
237  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_pose, _unknown_fields_),
238  -1,
239  ::google::protobuf::DescriptorPool::generated_pool(),
240  ::google::protobuf::MessageFactory::generated_factory(),
241  sizeof(data_pose));
242  data_texture_descriptor_ = data_descriptor_->nested_type(6);
243  static const int data_texture_offsets_[6] =
244  {
245  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_texture, name_),
246  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_texture, unit_),
247  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_texture, texture_filter_),
248  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_texture, anisotropic_filter_),
249  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_texture, image_),
250  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_texture, format_),
251  };
252  data_texture_reflection_ =
253  new ::google::protobuf::internal::GeneratedMessageReflection(
254  data_texture_descriptor_,
255  data_texture::default_instance_,
256  data_texture_offsets_,
257  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_texture, _has_bits_[0]),
258  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_texture, _unknown_fields_),
259  -1,
260  ::google::protobuf::DescriptorPool::generated_pool(),
261  ::google::protobuf::MessageFactory::generated_factory(),
262  sizeof(data_texture));
263  data_scenegraph_descriptor_ = data_descriptor_->nested_type(7);
264  static const int data_scenegraph_offsets_[3] =
265  {
266  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_scenegraph, name_),
267  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_scenegraph, nodes_),
268  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_scenegraph, edges_),
269  };
270  data_scenegraph_reflection_ =
271  new ::google::protobuf::internal::GeneratedMessageReflection(
272  data_scenegraph_descriptor_,
273  data_scenegraph::default_instance_,
274  data_scenegraph_offsets_,
275  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_scenegraph, _has_bits_[0]),
276  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_scenegraph, _unknown_fields_),
277  -1,
278  ::google::protobuf::DescriptorPool::generated_pool(),
279  ::google::protobuf::MessageFactory::generated_factory(),
280  sizeof(data_scenegraph));
281  data_scenegraph_attribs_tuple_descriptor_ = data_scenegraph_descriptor_->nested_type(0);
282  static const int data_scenegraph_attribs_tuple_offsets_[2] =
283  {
284  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_scenegraph_attribs_tuple, src_),
285  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_scenegraph_attribs_tuple, dst_),
286  };
287  data_scenegraph_attribs_tuple_reflection_ =
288  new ::google::protobuf::internal::GeneratedMessageReflection(
289  data_scenegraph_attribs_tuple_descriptor_,
290  data_scenegraph_attribs_tuple::default_instance_,
291  data_scenegraph_attribs_tuple_offsets_,
292  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_scenegraph_attribs_tuple, _has_bits_[0]),
293  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_scenegraph_attribs_tuple, _unknown_fields_),
294  -1,
295  ::google::protobuf::DescriptorPool::generated_pool(),
296  ::google::protobuf::MessageFactory::generated_factory(),
297  sizeof(data_scenegraph_attribs_tuple));
298  data_beziercurve_descriptor_ = data_descriptor_->nested_type(8);
299  static const int data_beziercurve_offsets_[3] =
300  {
301  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_beziercurve, name_),
302  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_beziercurve, points_),
303  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_beziercurve, normals_),
304  };
305  data_beziercurve_reflection_ =
306  new ::google::protobuf::internal::GeneratedMessageReflection(
307  data_beziercurve_descriptor_,
308  data_beziercurve::default_instance_,
309  data_beziercurve_offsets_,
310  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_beziercurve, _has_bits_[0]),
311  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_beziercurve, _unknown_fields_),
312  -1,
313  ::google::protobuf::DescriptorPool::generated_pool(),
314  ::google::protobuf::MessageFactory::generated_factory(),
315  sizeof(data_beziercurve));
316  data_bezierpatch_descriptor_ = data_descriptor_->nested_type(9);
317  static const int data_bezierpatch_offsets_[3] =
318  {
319  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_bezierpatch, name_),
320  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_bezierpatch, curves_),
321  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_bezierpatch, normals_),
322  };
323  data_bezierpatch_reflection_ =
324  new ::google::protobuf::internal::GeneratedMessageReflection(
325  data_bezierpatch_descriptor_,
326  data_bezierpatch::default_instance_,
327  data_bezierpatch_offsets_,
328  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_bezierpatch, _has_bits_[0]),
329  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_bezierpatch, _unknown_fields_),
330  -1,
331  ::google::protobuf::DescriptorPool::generated_pool(),
332  ::google::protobuf::MessageFactory::generated_factory(),
333  sizeof(data_bezierpatch));
334  data_nurbscurve_descriptor_ = data_descriptor_->nested_type(10);
335  static const int data_nurbscurve_offsets_[4] =
336  {
337  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_nurbscurve, name_),
338  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_nurbscurve, dimension_),
339  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_nurbscurve, points_),
340  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_nurbscurve, normals_),
341  };
342  data_nurbscurve_reflection_ =
343  new ::google::protobuf::internal::GeneratedMessageReflection(
344  data_nurbscurve_descriptor_,
345  data_nurbscurve::default_instance_,
346  data_nurbscurve_offsets_,
347  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_nurbscurve, _has_bits_[0]),
348  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_nurbscurve, _unknown_fields_),
349  -1,
350  ::google::protobuf::DescriptorPool::generated_pool(),
351  ::google::protobuf::MessageFactory::generated_factory(),
352  sizeof(data_nurbscurve));
353  data_nurbspatch_descriptor_ = data_descriptor_->nested_type(11);
354  static const int data_nurbspatch_offsets_[4] =
355  {
356  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_nurbspatch, name_),
357  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_nurbspatch, dimension_),
358  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_nurbspatch, curves_),
359  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_nurbspatch, normals_),
360  };
361  data_nurbspatch_reflection_ =
362  new ::google::protobuf::internal::GeneratedMessageReflection(
363  data_nurbspatch_descriptor_,
364  data_nurbspatch::default_instance_,
365  data_nurbspatch_offsets_,
366  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_nurbspatch, _has_bits_[0]),
367  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(data_nurbspatch, _unknown_fields_),
368  -1,
369  ::google::protobuf::DescriptorPool::generated_pool(),
370  ::google::protobuf::MessageFactory::generated_factory(),
371  sizeof(data_nurbspatch));
372  normal_e_descriptor_ = file->enum_type(0);
373  texture_filtering_e_descriptor_ = file->enum_type(1);
374  }
375 
376  namespace
377  {
378 
379  GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
380  inline void protobuf_AssignDescriptorsOnce()
381  {
382  ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
383  &protobuf_AssignDesc_mbd_2eproto);
384  }
385 
386  void protobuf_RegisterTypes(const ::std::string &)
387  {
388  protobuf_AssignDescriptorsOnce();
389  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
390  data_descriptor_, &data::default_instance());
391  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
392  data_vector_descriptor_, &data_vector::default_instance());
393  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
394  data_camera_descriptor_, &data_camera::default_instance());
395  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
396  data_light_descriptor_, &data_light::default_instance());
397  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
398  data_material_descriptor_, &data_material::default_instance());
399  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
400  data_mesh_descriptor_, &data_mesh::default_instance());
401  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
402  data_pose_descriptor_, &data_pose::default_instance());
403  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
404  data_texture_descriptor_, &data_texture::default_instance());
405  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
406  data_scenegraph_descriptor_, &data_scenegraph::default_instance());
407  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
408  data_scenegraph_attribs_tuple_descriptor_, &data_scenegraph_attribs_tuple::default_instance());
409  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
410  data_beziercurve_descriptor_, &data_beziercurve::default_instance());
411  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
412  data_bezierpatch_descriptor_, &data_bezierpatch::default_instance());
413  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
414  data_nurbscurve_descriptor_, &data_nurbscurve::default_instance());
415  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
416  data_nurbspatch_descriptor_, &data_nurbspatch::default_instance());
417  }
418 
419  } // namespace
420 
421  void protobuf_ShutdownFile_mbd_2eproto()
422  {
423  delete data::default_instance_;
424  delete data_reflection_;
425  delete data_vector::default_instance_;
426  delete data_vector_reflection_;
427  delete data_camera::default_instance_;
428  delete data_camera_reflection_;
429  delete data_light::default_instance_;
430  delete data_light_reflection_;
431  delete data_material::default_instance_;
432  delete data_material_reflection_;
433  delete data_mesh::default_instance_;
434  delete data_mesh_reflection_;
435  delete data_pose::default_instance_;
436  delete data_pose_reflection_;
437  delete data_texture::default_instance_;
438  delete data_texture_reflection_;
439  delete data_scenegraph::default_instance_;
440  delete data_scenegraph_reflection_;
441  delete data_scenegraph_attribs_tuple::default_instance_;
442  delete data_scenegraph_attribs_tuple_reflection_;
443  delete data_beziercurve::default_instance_;
444  delete data_beziercurve_reflection_;
445  delete data_bezierpatch::default_instance_;
446  delete data_bezierpatch_reflection_;
447  delete data_nurbscurve::default_instance_;
448  delete data_nurbscurve_reflection_;
449  delete data_nurbspatch::default_instance_;
450  delete data_nurbspatch_reflection_;
451  }
452 
453  void protobuf_AddDesc_mbd_2eproto()
454  {
455  static bool already_here = false;
456  if (already_here) return;
457  already_here = true;
458  GOOGLE_PROTOBUF_VERIFY_VERSION;
459 
460  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
461  "\n\tmbd.proto\022\021mondschein.io.mbd\"\373\024\n\004data\022"
462  "\014\n\004name\030\001 \002(\t\022/\n\007cameras\030\002 \003(\0132\036.mondsch"
463  "ein.io.mbd.data.camera\022-\n\006lights\030\003 \003(\0132\035"
464  ".mondschein.io.mbd.data.light\0223\n\tmateria"
465  "ls\030\004 \003(\0132 .mondschein.io.mbd.data.materi"
466  "al\022,\n\006meshes\030\005 \003(\0132\034.mondschein.io.mbd.d"
467  "ata.mesh\022+\n\005poses\030\006 \003(\0132\034.mondschein.io."
468  "mbd.data.pose\0221\n\010textures\030\007 \003(\0132\037.mondsc"
469  "hein.io.mbd.data.texture\0229\n\014beziercurves"
470  "\030\010 \003(\0132#.mondschein.io.mbd.data.beziercu"
471  "rve\0227\n\013nurbscurves\030\t \003(\0132\".mondschein.io"
472  ".mbd.data.nurbscurve\022:\n\rbezierpatches\030\n "
473  "\003(\0132#.mondschein.io.mbd.data.bezierpatch"
474  "\0228\n\014nurbspatches\030\013 \003(\0132\".mondschein.io.m"
475  "bd.data.nurbspatch\0227\n\013scenegraphs\030\014 \003(\0132"
476  "\".mondschein.io.mbd.data.scenegraph\032@\n\006v"
477  "ector\022\014\n\001x\030\001 \002(\001:\0010\022\014\n\001y\030\002 \002(\001:\0010\022\014\n\001z\030\003"
478  " \001(\001:\0010\022\014\n\001w\030\004 \001(\001:\0011\032\232\001\n\006camera\022\014\n\004name"
479  "\030\001 \002(\t\022\024\n\004fovy\030\002 \002(\001:\0061.0472\022\021\n\006aspect\030\003"
480  " \002(\001:\0010\022\017\n\004near\030\004 \002(\001:\0011\022\020\n\003far\030\005 \002(\001:\0031"
481  "00\022\014\n\001x\030\006 \002(\r:\0010\022\014\n\001y\030\007 \002(\r:\0010\022\014\n\001w\030\010 \002("
482  "\r:\0010\022\014\n\001h\030\t \002(\r:\0010\032\370\002\n\005light\022\014\n\004name\030\001 \002"
483  "(\t\022/\n\007ambient\030\002 \002(\0132\036.mondschein.io.mbd."
484  "data.vector\022/\n\007diffuse\030\003 \002(\0132\036.mondschei"
485  "n.io.mbd.data.vector\0220\n\010specular\030\004 \002(\0132\036"
486  ".mondschein.io.mbd.data.vector\0220\n\010positi"
487  "on\030\005 \002(\0132\036.mondschein.io.mbd.data.vector"
488  "\0221\n\tdirection\030\006 \002(\0132\036.mondschein.io.mbd."
489  "data.vector\022\020\n\010exponent\030\007 \002(\001\022\016\n\006cutoff\030"
490  "\010 \002(\001\022\021\n\tconst_att\030\t \002(\001\022\017\n\007lin_att\030\n \002("
491  "\001\022\020\n\010quad_att\030\013 \002(\001\022\020\n\010light_nr\030\014 \002(\r\032\361\001"
492  "\n\010material\022\014\n\004name\030\001 \002(\t\022/\n\007ambient\030\002 \002("
493  "\0132\036.mondschein.io.mbd.data.vector\022/\n\007dif"
494  "fuse\030\003 \002(\0132\036.mondschein.io.mbd.data.vect"
495  "or\0220\n\010specular\030\004 \002(\0132\036.mondschein.io.mbd"
496  ".data.vector\0220\n\010emission\030\005 \002(\0132\036.mondsch"
497  "ein.io.mbd.data.vector\022\021\n\tshininess\030\006 \002("
498  "\001\032\303\001\n\004mesh\022\014\n\004name\030\001 \002(\t\022)\n\001v\030\002 \003(\0132\036.mo"
499  "ndschein.io.mbd.data.vector\022*\n\002vn\030\003 \003(\0132"
500  "\036.mondschein.io.mbd.data.vector\022*\n\002vt\030\004 "
501  "\003(\0132\036.mondschein.io.mbd.data.vector\022*\n\002v"
502  "c\030\005 \003(\0132\036.mondschein.io.mbd.data.vector\032"
503  "\304\001\n\004pose\022\014\n\004name\030\001 \002(\t\022*\n\002c1\030\002 \002(\0132\036.mon"
504  "dschein.io.mbd.data.vector\022*\n\002c2\030\003 \002(\0132\036"
505  ".mondschein.io.mbd.data.vector\022*\n\002c3\030\004 \002"
506  "(\0132\036.mondschein.io.mbd.data.vector\022*\n\002c4"
507  "\030\005 \002(\0132\036.mondschein.io.mbd.data.vector\032\240"
508  "\001\n\007texture\022\014\n\004name\030\001 \002(\t\022\014\n\004unit\030\002 \002(\r\022>"
509  "\n\016texture_filter\030\003 \002(\0162&.mondschein.io.m"
510  "bd.texture_filtering_e\022\032\n\022anisotropic_fi"
511  "lter\030\004 \002(\r\022\r\n\005image\030\005 \002(\t\022\016\n\006format\030\006 \001("
512  "\t\032\205\001\n\nscenegraph\022\014\n\004name\030\001 \002(\t\022\r\n\005nodes\030"
513  "\002 \003(\t\0227\n\005edges\030\003 \003(\0132(.mondschein.io.mbd"
514  ".data.scenegraph.tuple\032!\n\005tuple\022\013\n\003src\030\001"
515  " \002(\r\022\013\n\003dst\030\002 \002(\r\032y\n\013beziercurve\022\014\n\004name"
516  "\030\001 \002(\t\022.\n\006points\030\002 \003(\0132\036.mondschein.io.m"
517  "bd.data.vector\022,\n\007normals\030\003 \001(\0162\033.mondsc"
518  "hein.io.mbd.normal_e\032~\n\013bezierpatch\022\014\n\004n"
519  "ame\030\001 \002(\t\0223\n\006curves\030\002 \003(\0132#.mondschein.i"
520  "o.mbd.data.beziercurve\022,\n\007normals\030\003 \001(\0162"
521  "\033.mondschein.io.mbd.normal_e\032\213\001\n\nnurbscu"
522  "rve\022\014\n\004name\030\001 \002(\t\022\021\n\tdimension\030\002 \002(\r\022.\n\006"
523  "points\030\003 \003(\0132\036.mondschein.io.mbd.data.ve"
524  "ctor\022,\n\007normals\030\004 \001(\0162\033.mondschein.io.mb"
525  "d.normal_e\032\217\001\n\nnurbspatch\022\014\n\004name\030\001 \002(\t\022"
526  "\021\n\tdimension\030\002 \002(\r\0222\n\006curves\030\003 \003(\0132\".mon"
527  "dschein.io.mbd.data.nurbscurve\022,\n\007normal"
528  "s\030\004 \001(\0162\033.mondschein.io.mbd.normal_e*J\n\010"
529  "normal_e\022\010\n\004FLAT\020\000\022\014\n\010FLAT_INV\020\001\022\020\n\014INTE"
530  "RMEDIATE\020\002\022\024\n\020INTERMEDIATE_INV\020\003*\201\001\n\023tex"
531  "ture_filtering_e\022\007\n\003ONN\020\000\022\007\n\003ONL\020\001\022\007\n\003OL"
532  "N\020\002\022\007\n\003OLL\020\003\022\007\n\003NNN\020\004\022\007\n\003NNL\020\005\022\007\n\003NLN\020\006\022"
533  "\007\n\003NLL\020\007\022\007\n\003LNN\020\010\022\007\n\003LNL\020\t\022\007\n\003LLN\020\n\022\007\n\003L"
534  "LL\020\013", 2924);
535  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
536  "mbd.proto", &protobuf_RegisterTypes);
537  data::default_instance_ = new data();
538  data_vector::default_instance_ = new data_vector();
539  data_camera::default_instance_ = new data_camera();
540  data_light::default_instance_ = new data_light();
541  data_material::default_instance_ = new data_material();
542  data_mesh::default_instance_ = new data_mesh();
543  data_pose::default_instance_ = new data_pose();
544  data_texture::default_instance_ = new data_texture();
545  data_scenegraph::default_instance_ = new data_scenegraph();
546  data_scenegraph_attribs_tuple::default_instance_ = new data_scenegraph_attribs_tuple();
547  data_beziercurve::default_instance_ = new data_beziercurve();
548  data_bezierpatch::default_instance_ = new data_bezierpatch();
549  data_nurbscurve::default_instance_ = new data_nurbscurve();
550  data_nurbspatch::default_instance_ = new data_nurbspatch();
551  data::default_instance_->InitAsDefaultInstance();
552  data_vector::default_instance_->InitAsDefaultInstance();
553  data_camera::default_instance_->InitAsDefaultInstance();
554  data_light::default_instance_->InitAsDefaultInstance();
555  data_material::default_instance_->InitAsDefaultInstance();
556  data_mesh::default_instance_->InitAsDefaultInstance();
557  data_pose::default_instance_->InitAsDefaultInstance();
558  data_texture::default_instance_->InitAsDefaultInstance();
559  data_scenegraph::default_instance_->InitAsDefaultInstance();
560  data_scenegraph_attribs_tuple::default_instance_->InitAsDefaultInstance();
561  data_beziercurve::default_instance_->InitAsDefaultInstance();
562  data_bezierpatch::default_instance_->InitAsDefaultInstance();
563  data_nurbscurve::default_instance_->InitAsDefaultInstance();
564  data_nurbspatch::default_instance_->InitAsDefaultInstance();
565  ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_mbd_2eproto);
566  }
567 
568  // Force AddDescriptors() to be called at static initialization time.
569  struct StaticDescriptorInitializer_mbd_2eproto
570  {
571  StaticDescriptorInitializer_mbd_2eproto()
572  {
573  protobuf_AddDesc_mbd_2eproto();
574  }
575  } static_descriptor_initializer_mbd_2eproto_;
576  const ::google::protobuf::EnumDescriptor *normal_e_descriptor()
577  {
578  protobuf_AssignDescriptorsOnce();
579  return normal_e_descriptor_;
580  }
581  bool normal_e_IsValid(int value)
582  {
583  switch(value)
584  {
585  case 0:
586  case 1:
587  case 2:
588  case 3:
589  return true;
590  default:
591  return false;
592  }
593  }
594 
595  const ::google::protobuf::EnumDescriptor *texture_filtering_e_descriptor()
596  {
597  protobuf_AssignDescriptorsOnce();
598  return texture_filtering_e_descriptor_;
599  }
600  bool texture_filtering_e_IsValid(int value)
601  {
602  switch(value)
603  {
604  case 0:
605  case 1:
606  case 2:
607  case 3:
608  case 4:
609  case 5:
610  case 6:
611  case 7:
612  case 8:
613  case 9:
614  case 10:
615  case 11:
616  return true;
617  default:
618  return false;
619  }
620  }
621 
622 
623  // ===================================================================
624 
625 #ifndef _MSC_VER
626  const int data_vector::kXFieldNumber;
627  const int data_vector::kYFieldNumber;
628  const int data_vector::kZFieldNumber;
629  const int data_vector::kWFieldNumber;
630 #endif // !_MSC_VER
631 
632  data_vector::data_vector()
633  : ::google::protobuf::Message()
634  {
635  SharedCtor();
636  }
637 
638  void data_vector::InitAsDefaultInstance()
639  {
640  }
641 
642  data_vector::data_vector(const data_vector &from)
643  : ::google::protobuf::Message()
644  {
645  SharedCtor();
646  MergeFrom(from);
647  }
648 
649  void data_vector::SharedCtor()
650  {
651  _cached_size_ = 0;
652  x_ = 0;
653  y_ = 0;
654  z_ = 0;
655  w_ = 1;
656  ::memset(_has_bits_, 0, sizeof(_has_bits_));
657  }
658 
659  data_vector::~data_vector()
660  {
661  SharedDtor();
662  }
663 
664  void data_vector::SharedDtor()
665  {
666  if (this != default_instance_)
667  {
668  }
669  }
670 
671  void data_vector::SetCachedSize(int size) const
672  {
673  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
674  _cached_size_ = size;
675  GOOGLE_SAFE_CONCURRENT_WRITES_END();
676  }
677  const ::google::protobuf::Descriptor *data_vector::descriptor()
678  {
679  protobuf_AssignDescriptorsOnce();
680  return data_vector_descriptor_;
681  }
682 
683  const data_vector &data_vector::default_instance()
684  {
685  if (default_instance_ == NULL) protobuf_AddDesc_mbd_2eproto();
686  return *default_instance_;
687  }
688 
689  data_vector *data_vector::default_instance_ = NULL;
690 
691  data_vector *data_vector::New() const
692  {
693  return new data_vector;
694  }
695 
696  void data_vector::Clear()
697  {
698  if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
699  {
700  x_ = 0;
701  y_ = 0;
702  z_ = 0;
703  w_ = 1;
704  }
705  ::memset(_has_bits_, 0, sizeof(_has_bits_));
706  mutable_unknown_fields()->Clear();
707  }
708 
709  bool data_vector::MergePartialFromCodedStream(
710  ::google::protobuf::io::CodedInputStream *input)
711  {
712 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
714  while ((tag = input->ReadTag()) != 0)
715  {
716  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag))
717  {
718  // required double x = 1 [default = 0];
719  case 1:
720  {
721  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
722  ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64)
723  {
724  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
725  double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
726  input, &x_)));
727  set_has_x();
728  }
729  else
730  {
731  goto handle_uninterpreted;
732  }
733  if (input->ExpectTag(17)) goto parse_y;
734  break;
735  }
736 
737  // required double y = 2 [default = 0];
738  case 2:
739  {
740  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
741  ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64)
742  {
743  parse_y:
744  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
745  double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
746  input, &y_)));
747  set_has_y();
748  }
749  else
750  {
751  goto handle_uninterpreted;
752  }
753  if (input->ExpectTag(25)) goto parse_z;
754  break;
755  }
756 
757  // optional double z = 3 [default = 0];
758  case 3:
759  {
760  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
761  ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64)
762  {
763  parse_z:
764  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
765  double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
766  input, &z_)));
767  set_has_z();
768  }
769  else
770  {
771  goto handle_uninterpreted;
772  }
773  if (input->ExpectTag(33)) goto parse_w;
774  break;
775  }
776 
777  // optional double w = 4 [default = 1];
778  case 4:
779  {
780  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
781  ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64)
782  {
783  parse_w:
784  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
785  double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
786  input, &w_)));
787  set_has_w();
788  }
789  else
790  {
791  goto handle_uninterpreted;
792  }
793  if (input->ExpectAtEnd()) return true;
794  break;
795  }
796 
797  default:
798  {
799  handle_uninterpreted:
800  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
801  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP)
802  {
803  return true;
804  }
805  DO_(::google::protobuf::internal::WireFormat::SkipField(
806  input, tag, mutable_unknown_fields()));
807  break;
808  }
809  }
810  }
811  return true;
812 #undef DO_
813  }
814 
815  void data_vector::SerializeWithCachedSizes(
816  ::google::protobuf::io::CodedOutputStream *output) const
817  {
818  // required double x = 1 [default = 0];
819  if (has_x())
820  {
821  ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->x(), output);
822  }
823 
824  // required double y = 2 [default = 0];
825  if (has_y())
826  {
827  ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->y(), output);
828  }
829 
830  // optional double z = 3 [default = 0];
831  if (has_z())
832  {
833  ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->z(), output);
834  }
835 
836  // optional double w = 4 [default = 1];
837  if (has_w())
838  {
839  ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->w(), output);
840  }
841 
842  if (!unknown_fields().empty())
843  {
844  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
845  unknown_fields(), output);
846  }
847  }
848 
849  ::google::protobuf::uint8 *data_vector::SerializeWithCachedSizesToArray(
850  ::google::protobuf::uint8 *target) const
851  {
852  // required double x = 1 [default = 0];
853  if (has_x())
854  {
855  target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->x(), target);
856  }
857 
858  // required double y = 2 [default = 0];
859  if (has_y())
860  {
861  target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->y(), target);
862  }
863 
864  // optional double z = 3 [default = 0];
865  if (has_z())
866  {
867  target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->z(), target);
868  }
869 
870  // optional double w = 4 [default = 1];
871  if (has_w())
872  {
873  target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->w(), target);
874  }
875 
876  if (!unknown_fields().empty())
877  {
878  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
879  unknown_fields(), target);
880  }
881  return target;
882  }
883 
884  int data_vector::ByteSize() const
885  {
886  int total_size = 0;
887 
888  if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
889  {
890  // required double x = 1 [default = 0];
891  if (has_x())
892  {
893  total_size += 1 + 8;
894  }
895 
896  // required double y = 2 [default = 0];
897  if (has_y())
898  {
899  total_size += 1 + 8;
900  }
901 
902  // optional double z = 3 [default = 0];
903  if (has_z())
904  {
905  total_size += 1 + 8;
906  }
907 
908  // optional double w = 4 [default = 1];
909  if (has_w())
910  {
911  total_size += 1 + 8;
912  }
913 
914  }
915  if (!unknown_fields().empty())
916  {
917  total_size +=
918  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
919  unknown_fields());
920  }
921  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
922  _cached_size_ = total_size;
923  GOOGLE_SAFE_CONCURRENT_WRITES_END();
924  return total_size;
925  }
926 
927  void data_vector::MergeFrom(const ::google::protobuf::Message &from)
928  {
929  GOOGLE_CHECK_NE(&from, this);
930  const data_vector *source =
931  ::google::protobuf::internal::dynamic_cast_if_available<const data_vector *>(
932  &from);
933  if (source == NULL)
934  {
935  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
936  }
937  else
938  {
939  MergeFrom(*source);
940  }
941  }
942 
943  void data_vector::MergeFrom(const data_vector &from)
944  {
945  GOOGLE_CHECK_NE(&from, this);
946  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32)))
947  {
948  if (from.has_x())
949  {
950  set_x(from.x());
951  }
952  if (from.has_y())
953  {
954  set_y(from.y());
955  }
956  if (from.has_z())
957  {
958  set_z(from.z());
959  }
960  if (from.has_w())
961  {
962  set_w(from.w());
963  }
964  }
965  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
966  }
967 
968  void data_vector::CopyFrom(const ::google::protobuf::Message &from)
969  {
970  if (&from == this) return;
971  Clear();
972  MergeFrom(from);
973  }
974 
975  void data_vector::CopyFrom(const data_vector &from)
976  {
977  if (&from == this) return;
978  Clear();
979  MergeFrom(from);
980  }
981 
982  bool data_vector::IsInitialized() const
983  {
984  if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
985 
986  return true;
987  }
988 
989  void data_vector::Swap(data_vector *other)
990  {
991  if (other != this)
992  {
993  std::swap(x_, other->x_);
994  std::swap(y_, other->y_);
995  std::swap(z_, other->z_);
996  std::swap(w_, other->w_);
997  std::swap(_has_bits_[0], other->_has_bits_[0]);
998  _unknown_fields_.Swap(&other->_unknown_fields_);
999  std::swap(_cached_size_, other->_cached_size_);
1000  }
1001  }
1002 
1003  ::google::protobuf::Metadata data_vector::GetMetadata() const
1004  {
1005  protobuf_AssignDescriptorsOnce();
1006  ::google::protobuf::Metadata metadata;
1007  metadata.descriptor = data_vector_descriptor_;
1008  metadata.reflection = data_vector_reflection_;
1009  return metadata;
1010  }
1011 
1012 
1013  // -------------------------------------------------------------------
1014 
1015 #ifndef _MSC_VER
1016  const int data_camera::kNameFieldNumber;
1017  const int data_camera::kFovyFieldNumber;
1018  const int data_camera::kAspectFieldNumber;
1019  const int data_camera::kNearFieldNumber;
1020  const int data_camera::kFarFieldNumber;
1021  const int data_camera::kXFieldNumber;
1022  const int data_camera::kYFieldNumber;
1023  const int data_camera::kWFieldNumber;
1024  const int data_camera::kHFieldNumber;
1025 #endif // !_MSC_VER
1026 
1027  data_camera::data_camera()
1028  : ::google::protobuf::Message()
1029  {
1030  SharedCtor();
1031  }
1032 
1033  void data_camera::InitAsDefaultInstance()
1034  {
1035  }
1036 
1037  data_camera::data_camera(const data_camera &from)
1038  : ::google::protobuf::Message()
1039  {
1040  SharedCtor();
1041  MergeFrom(from);
1042  }
1043 
1044  void data_camera::SharedCtor()
1045  {
1046  _cached_size_ = 0;
1047  name_ = const_cast< ::std::string *>(&::google::protobuf::internal::kEmptyString);
1048  fovy_ = 1.0472;
1049  aspect_ = 0;
1050  near_ = 1;
1051  far_ = 100;
1052  x_ = 0u;
1053  y_ = 0u;
1054  w_ = 0u;
1055  h_ = 0u;
1056  ::memset(_has_bits_, 0, sizeof(_has_bits_));
1057  }
1058 
1059  data_camera::~data_camera()
1060  {
1061  SharedDtor();
1062  }
1063 
1064  void data_camera::SharedDtor()
1065  {
1066  if (name_ != &::google::protobuf::internal::kEmptyString)
1067  {
1068  delete name_;
1069  }
1070  if (this != default_instance_)
1071  {
1072  }
1073  }
1074 
1075  void data_camera::SetCachedSize(int size) const
1076  {
1077  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1078  _cached_size_ = size;
1079  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1080  }
1081  const ::google::protobuf::Descriptor *data_camera::descriptor()
1082  {
1083  protobuf_AssignDescriptorsOnce();
1084  return data_camera_descriptor_;
1085  }
1086 
1087  const data_camera &data_camera::default_instance()
1088  {
1089  if (default_instance_ == NULL) protobuf_AddDesc_mbd_2eproto();
1090  return *default_instance_;
1091  }
1092 
1093  data_camera *data_camera::default_instance_ = NULL;
1094 
1095  data_camera *data_camera::New() const
1096  {
1097  return new data_camera;
1098  }
1099 
1100  void data_camera::Clear()
1101  {
1102  if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
1103  {
1104  if (has_name())
1105  {
1106  if (name_ != &::google::protobuf::internal::kEmptyString)
1107  {
1108  name_->clear();
1109  }
1110  }
1111  fovy_ = 1.0472;
1112  aspect_ = 0;
1113  near_ = 1;
1114  far_ = 100;
1115  x_ = 0u;
1116  y_ = 0u;
1117  w_ = 0u;
1118  }
1119  if (_has_bits_[8 / 32] & (0xffu << (8 % 32)))
1120  {
1121  h_ = 0u;
1122  }
1123  ::memset(_has_bits_, 0, sizeof(_has_bits_));
1124  mutable_unknown_fields()->Clear();
1125  }
1126 
1127  bool data_camera::MergePartialFromCodedStream(
1128  ::google::protobuf::io::CodedInputStream *input)
1129  {
1130 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
1132  while ((tag = input->ReadTag()) != 0)
1133  {
1134  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag))
1135  {
1136  // required string name = 1;
1137  case 1:
1138  {
1139  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1140  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
1141  {
1142  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1143  input, this->mutable_name()));
1144  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1145  this->name().data(), this->name().length(),
1146  ::google::protobuf::internal::WireFormat::PARSE);
1147  }
1148  else
1149  {
1150  goto handle_uninterpreted;
1151  }
1152  if (input->ExpectTag(17)) goto parse_fovy;
1153  break;
1154  }
1155 
1156  // required double fovy = 2 [default = 1.0472];
1157  case 2:
1158  {
1159  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1160  ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64)
1161  {
1162  parse_fovy:
1163  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1164  double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
1165  input, &fovy_)));
1166  set_has_fovy();
1167  }
1168  else
1169  {
1170  goto handle_uninterpreted;
1171  }
1172  if (input->ExpectTag(25)) goto parse_aspect;
1173  break;
1174  }
1175 
1176  // required double aspect = 3 [default = 0];
1177  case 3:
1178  {
1179  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1180  ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64)
1181  {
1182  parse_aspect:
1183  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1184  double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
1185  input, &aspect_)));
1186  set_has_aspect();
1187  }
1188  else
1189  {
1190  goto handle_uninterpreted;
1191  }
1192  if (input->ExpectTag(33)) goto parse_near;
1193  break;
1194  }
1195 
1196  // required double near = 4 [default = 1];
1197  case 4:
1198  {
1199  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1200  ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64)
1201  {
1202  parse_near:
1203  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1204  double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
1205  input, &near_)));
1206  set_has_near();
1207  }
1208  else
1209  {
1210  goto handle_uninterpreted;
1211  }
1212  if (input->ExpectTag(41)) goto parse_far;
1213  break;
1214  }
1215 
1216  // required double far = 5 [default = 100];
1217  case 5:
1218  {
1219  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1220  ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64)
1221  {
1222  parse_far:
1223  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1224  double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
1225  input, &far_)));
1226  set_has_far();
1227  }
1228  else
1229  {
1230  goto handle_uninterpreted;
1231  }
1232  if (input->ExpectTag(48)) goto parse_x;
1233  break;
1234  }
1235 
1236  // required uint32 x = 6 [default = 0];
1237  case 6:
1238  {
1239  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1240  ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT)
1241  {
1242  parse_x:
1243  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1244  ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1245  input, &x_)));
1246  set_has_x();
1247  }
1248  else
1249  {
1250  goto handle_uninterpreted;
1251  }
1252  if (input->ExpectTag(56)) goto parse_y;
1253  break;
1254  }
1255 
1256  // required uint32 y = 7 [default = 0];
1257  case 7:
1258  {
1259  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1260  ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT)
1261  {
1262  parse_y:
1263  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1264  ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1265  input, &y_)));
1266  set_has_y();
1267  }
1268  else
1269  {
1270  goto handle_uninterpreted;
1271  }
1272  if (input->ExpectTag(64)) goto parse_w;
1273  break;
1274  }
1275 
1276  // required uint32 w = 8 [default = 0];
1277  case 8:
1278  {
1279  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1280  ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT)
1281  {
1282  parse_w:
1283  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1284  ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1285  input, &w_)));
1286  set_has_w();
1287  }
1288  else
1289  {
1290  goto handle_uninterpreted;
1291  }
1292  if (input->ExpectTag(72)) goto parse_h;
1293  break;
1294  }
1295 
1296  // required uint32 h = 9 [default = 0];
1297  case 9:
1298  {
1299  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1300  ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT)
1301  {
1302  parse_h:
1303  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1304  ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1305  input, &h_)));
1306  set_has_h();
1307  }
1308  else
1309  {
1310  goto handle_uninterpreted;
1311  }
1312  if (input->ExpectAtEnd()) return true;
1313  break;
1314  }
1315 
1316  default:
1317  {
1318  handle_uninterpreted:
1319  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1320  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP)
1321  {
1322  return true;
1323  }
1324  DO_(::google::protobuf::internal::WireFormat::SkipField(
1325  input, tag, mutable_unknown_fields()));
1326  break;
1327  }
1328  }
1329  }
1330  return true;
1331 #undef DO_
1332  }
1333 
1334  void data_camera::SerializeWithCachedSizes(
1335  ::google::protobuf::io::CodedOutputStream *output) const
1336  {
1337  // required string name = 1;
1338  if (has_name())
1339  {
1340  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1341  this->name().data(), this->name().length(),
1342  ::google::protobuf::internal::WireFormat::SERIALIZE);
1343  ::google::protobuf::internal::WireFormatLite::WriteString(
1344  1, this->name(), output);
1345  }
1346 
1347  // required double fovy = 2 [default = 1.0472];
1348  if (has_fovy())
1349  {
1350  ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->fovy(), output);
1351  }
1352 
1353  // required double aspect = 3 [default = 0];
1354  if (has_aspect())
1355  {
1356  ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->aspect(), output);
1357  }
1358 
1359  // required double near = 4 [default = 1];
1360  if (has_near())
1361  {
1362  ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->near(), output);
1363  }
1364 
1365  // required double far = 5 [default = 100];
1366  if (has_far())
1367  {
1368  ::google::protobuf::internal::WireFormatLite::WriteDouble(5, this->far(), output);
1369  }
1370 
1371  // required uint32 x = 6 [default = 0];
1372  if (has_x())
1373  {
1374  ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->x(), output);
1375  }
1376 
1377  // required uint32 y = 7 [default = 0];
1378  if (has_y())
1379  {
1380  ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->y(), output);
1381  }
1382 
1383  // required uint32 w = 8 [default = 0];
1384  if (has_w())
1385  {
1386  ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->w(), output);
1387  }
1388 
1389  // required uint32 h = 9 [default = 0];
1390  if (has_h())
1391  {
1392  ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->h(), output);
1393  }
1394 
1395  if (!unknown_fields().empty())
1396  {
1397  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1398  unknown_fields(), output);
1399  }
1400  }
1401 
1402  ::google::protobuf::uint8 *data_camera::SerializeWithCachedSizesToArray(
1403  ::google::protobuf::uint8 *target) const
1404  {
1405  // required string name = 1;
1406  if (has_name())
1407  {
1408  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1409  this->name().data(), this->name().length(),
1410  ::google::protobuf::internal::WireFormat::SERIALIZE);
1411  target =
1412  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1413  1, this->name(), target);
1414  }
1415 
1416  // required double fovy = 2 [default = 1.0472];
1417  if (has_fovy())
1418  {
1419  target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->fovy(), target);
1420  }
1421 
1422  // required double aspect = 3 [default = 0];
1423  if (has_aspect())
1424  {
1425  target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->aspect(), target);
1426  }
1427 
1428  // required double near = 4 [default = 1];
1429  if (has_near())
1430  {
1431  target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->near(), target);
1432  }
1433 
1434  // required double far = 5 [default = 100];
1435  if (has_far())
1436  {
1437  target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(5, this->far(), target);
1438  }
1439 
1440  // required uint32 x = 6 [default = 0];
1441  if (has_x())
1442  {
1443  target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->x(), target);
1444  }
1445 
1446  // required uint32 y = 7 [default = 0];
1447  if (has_y())
1448  {
1449  target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->y(), target);
1450  }
1451 
1452  // required uint32 w = 8 [default = 0];
1453  if (has_w())
1454  {
1455  target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->w(), target);
1456  }
1457 
1458  // required uint32 h = 9 [default = 0];
1459  if (has_h())
1460  {
1461  target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->h(), target);
1462  }
1463 
1464  if (!unknown_fields().empty())
1465  {
1466  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1467  unknown_fields(), target);
1468  }
1469  return target;
1470  }
1471 
1472  int data_camera::ByteSize() const
1473  {
1474  int total_size = 0;
1475 
1476  if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
1477  {
1478  // required string name = 1;
1479  if (has_name())
1480  {
1481  total_size += 1 +
1482  ::google::protobuf::internal::WireFormatLite::StringSize(
1483  this->name());
1484  }
1485 
1486  // required double fovy = 2 [default = 1.0472];
1487  if (has_fovy())
1488  {
1489  total_size += 1 + 8;
1490  }
1491 
1492  // required double aspect = 3 [default = 0];
1493  if (has_aspect())
1494  {
1495  total_size += 1 + 8;
1496  }
1497 
1498  // required double near = 4 [default = 1];
1499  if (has_near())
1500  {
1501  total_size += 1 + 8;
1502  }
1503 
1504  // required double far = 5 [default = 100];
1505  if (has_far())
1506  {
1507  total_size += 1 + 8;
1508  }
1509 
1510  // required uint32 x = 6 [default = 0];
1511  if (has_x())
1512  {
1513  total_size += 1 +
1514  ::google::protobuf::internal::WireFormatLite::UInt32Size(
1515  this->x());
1516  }
1517 
1518  // required uint32 y = 7 [default = 0];
1519  if (has_y())
1520  {
1521  total_size += 1 +
1522  ::google::protobuf::internal::WireFormatLite::UInt32Size(
1523  this->y());
1524  }
1525 
1526  // required uint32 w = 8 [default = 0];
1527  if (has_w())
1528  {
1529  total_size += 1 +
1530  ::google::protobuf::internal::WireFormatLite::UInt32Size(
1531  this->w());
1532  }
1533 
1534  }
1535  if (_has_bits_[8 / 32] & (0xffu << (8 % 32)))
1536  {
1537  // required uint32 h = 9 [default = 0];
1538  if (has_h())
1539  {
1540  total_size += 1 +
1541  ::google::protobuf::internal::WireFormatLite::UInt32Size(
1542  this->h());
1543  }
1544 
1545  }
1546  if (!unknown_fields().empty())
1547  {
1548  total_size +=
1549  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1550  unknown_fields());
1551  }
1552  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1553  _cached_size_ = total_size;
1554  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1555  return total_size;
1556  }
1557 
1558  void data_camera::MergeFrom(const ::google::protobuf::Message &from)
1559  {
1560  GOOGLE_CHECK_NE(&from, this);
1561  const data_camera *source =
1562  ::google::protobuf::internal::dynamic_cast_if_available<const data_camera *>(
1563  &from);
1564  if (source == NULL)
1565  {
1566  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1567  }
1568  else
1569  {
1570  MergeFrom(*source);
1571  }
1572  }
1573 
1574  void data_camera::MergeFrom(const data_camera &from)
1575  {
1576  GOOGLE_CHECK_NE(&from, this);
1577  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32)))
1578  {
1579  if (from.has_name())
1580  {
1581  set_name(from.name());
1582  }
1583  if (from.has_fovy())
1584  {
1585  set_fovy(from.fovy());
1586  }
1587  if (from.has_aspect())
1588  {
1589  set_aspect(from.aspect());
1590  }
1591  if (from.has_near())
1592  {
1593  set_near(from.near());
1594  }
1595  if (from.has_far())
1596  {
1597  set_far(from.far());
1598  }
1599  if (from.has_x())
1600  {
1601  set_x(from.x());
1602  }
1603  if (from.has_y())
1604  {
1605  set_y(from.y());
1606  }
1607  if (from.has_w())
1608  {
1609  set_w(from.w());
1610  }
1611  }
1612  if (from._has_bits_[8 / 32] & (0xffu << (8 % 32)))
1613  {
1614  if (from.has_h())
1615  {
1616  set_h(from.h());
1617  }
1618  }
1619  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1620  }
1621 
1622  void data_camera::CopyFrom(const ::google::protobuf::Message &from)
1623  {
1624  if (&from == this) return;
1625  Clear();
1626  MergeFrom(from);
1627  }
1628 
1629  void data_camera::CopyFrom(const data_camera &from)
1630  {
1631  if (&from == this) return;
1632  Clear();
1633  MergeFrom(from);
1634  }
1635 
1636  bool data_camera::IsInitialized() const
1637  {
1638  if ((_has_bits_[0] & 0x000001ff) != 0x000001ff) return false;
1639 
1640  return true;
1641  }
1642 
1643  void data_camera::Swap(data_camera *other)
1644  {
1645  if (other != this)
1646  {
1647  std::swap(name_, other->name_);
1648  std::swap(fovy_, other->fovy_);
1649  std::swap(aspect_, other->aspect_);
1650  std::swap(near_, other->near_);
1651  std::swap(far_, other->far_);
1652  std::swap(x_, other->x_);
1653  std::swap(y_, other->y_);
1654  std::swap(w_, other->w_);
1655  std::swap(h_, other->h_);
1656  std::swap(_has_bits_[0], other->_has_bits_[0]);
1657  _unknown_fields_.Swap(&other->_unknown_fields_);
1658  std::swap(_cached_size_, other->_cached_size_);
1659  }
1660  }
1661 
1662  ::google::protobuf::Metadata data_camera::GetMetadata() const
1663  {
1664  protobuf_AssignDescriptorsOnce();
1665  ::google::protobuf::Metadata metadata;
1666  metadata.descriptor = data_camera_descriptor_;
1667  metadata.reflection = data_camera_reflection_;
1668  return metadata;
1669  }
1670 
1671 
1672  // -------------------------------------------------------------------
1673 
1674 #ifndef _MSC_VER
1675  const int data_light::kNameFieldNumber;
1676  const int data_light::kAmbientFieldNumber;
1677  const int data_light::kDiffuseFieldNumber;
1678  const int data_light::kSpecularFieldNumber;
1679  const int data_light::kPositionFieldNumber;
1680  const int data_light::kDirectionFieldNumber;
1681  const int data_light::kExponentFieldNumber;
1682  const int data_light::kCutoffFieldNumber;
1683  const int data_light::kConstAttFieldNumber;
1684  const int data_light::kLinAttFieldNumber;
1685  const int data_light::kQuadAttFieldNumber;
1686  const int data_light::kLightNrFieldNumber;
1687 #endif // !_MSC_VER
1688 
1689  data_light::data_light()
1690  : ::google::protobuf::Message()
1691  {
1692  SharedCtor();
1693  }
1694 
1695  void data_light::InitAsDefaultInstance()
1696  {
1697  ambient_ = const_cast< ::mondschein::io::mbd::data_vector *>(&::mondschein::io::mbd::data_vector::default_instance());
1698  diffuse_ = const_cast< ::mondschein::io::mbd::data_vector *>(&::mondschein::io::mbd::data_vector::default_instance());
1699  specular_ = const_cast< ::mondschein::io::mbd::data_vector *>(&::mondschein::io::mbd::data_vector::default_instance());
1700  position_ = const_cast< ::mondschein::io::mbd::data_vector *>(&::mondschein::io::mbd::data_vector::default_instance());
1701  direction_ = const_cast< ::mondschein::io::mbd::data_vector *>(&::mondschein::io::mbd::data_vector::default_instance());
1702  }
1703 
1704  data_light::data_light(const data_light &from)
1705  : ::google::protobuf::Message()
1706  {
1707  SharedCtor();
1708  MergeFrom(from);
1709  }
1710 
1711  void data_light::SharedCtor()
1712  {
1713  _cached_size_ = 0;
1714  name_ = const_cast< ::std::string *>(&::google::protobuf::internal::kEmptyString);
1715  ambient_ = NULL;
1716  diffuse_ = NULL;
1717  specular_ = NULL;
1718  position_ = NULL;
1719  direction_ = NULL;
1720  exponent_ = 0;
1721  cutoff_ = 0;
1722  const_att_ = 0;
1723  lin_att_ = 0;
1724  quad_att_ = 0;
1725  light_nr_ = 0u;
1726  ::memset(_has_bits_, 0, sizeof(_has_bits_));
1727  }
1728 
1729  data_light::~data_light()
1730  {
1731  SharedDtor();
1732  }
1733 
1734  void data_light::SharedDtor()
1735  {
1736  if (name_ != &::google::protobuf::internal::kEmptyString)
1737  {
1738  delete name_;
1739  }
1740  if (this != default_instance_)
1741  {
1742  delete ambient_;
1743  delete diffuse_;
1744  delete specular_;
1745  delete position_;
1746  delete direction_;
1747  }
1748  }
1749 
1750  void data_light::SetCachedSize(int size) const
1751  {
1752  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1753  _cached_size_ = size;
1754  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1755  }
1756  const ::google::protobuf::Descriptor *data_light::descriptor()
1757  {
1758  protobuf_AssignDescriptorsOnce();
1759  return data_light_descriptor_;
1760  }
1761 
1762  const data_light &data_light::default_instance()
1763  {
1764  if (default_instance_ == NULL) protobuf_AddDesc_mbd_2eproto();
1765  return *default_instance_;
1766  }
1767 
1768  data_light *data_light::default_instance_ = NULL;
1769 
1770  data_light *data_light::New() const
1771  {
1772  return new data_light;
1773  }
1774 
1775  void data_light::Clear()
1776  {
1777  if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
1778  {
1779  if (has_name())
1780  {
1781  if (name_ != &::google::protobuf::internal::kEmptyString)
1782  {
1783  name_->clear();
1784  }
1785  }
1786  if (has_ambient())
1787  {
1788  if (ambient_ != NULL) ambient_->::mondschein::io::mbd::data_vector::Clear();
1789  }
1790  if (has_diffuse())
1791  {
1792  if (diffuse_ != NULL) diffuse_->::mondschein::io::mbd::data_vector::Clear();
1793  }
1794  if (has_specular())
1795  {
1796  if (specular_ != NULL) specular_->::mondschein::io::mbd::data_vector::Clear();
1797  }
1798  if (has_position())
1799  {
1800  if (position_ != NULL) position_->::mondschein::io::mbd::data_vector::Clear();
1801  }
1802  if (has_direction())
1803  {
1804  if (direction_ != NULL) direction_->::mondschein::io::mbd::data_vector::Clear();
1805  }
1806  exponent_ = 0;
1807  cutoff_ = 0;
1808  }
1809  if (_has_bits_[8 / 32] & (0xffu << (8 % 32)))
1810  {
1811  const_att_ = 0;
1812  lin_att_ = 0;
1813  quad_att_ = 0;
1814  light_nr_ = 0u;
1815  }
1816  ::memset(_has_bits_, 0, sizeof(_has_bits_));
1817  mutable_unknown_fields()->Clear();
1818  }
1819 
1820  bool data_light::MergePartialFromCodedStream(
1821  ::google::protobuf::io::CodedInputStream *input)
1822  {
1823 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
1825  while ((tag = input->ReadTag()) != 0)
1826  {
1827  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag))
1828  {
1829  // required string name = 1;
1830  case 1:
1831  {
1832  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1833  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
1834  {
1835  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1836  input, this->mutable_name()));
1837  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1838  this->name().data(), this->name().length(),
1839  ::google::protobuf::internal::WireFormat::PARSE);
1840  }
1841  else
1842  {
1843  goto handle_uninterpreted;
1844  }
1845  if (input->ExpectTag(18)) goto parse_ambient;
1846  break;
1847  }
1848 
1849  // required .mondschein.io.mbd.data.vector ambient = 2;
1850  case 2:
1851  {
1852  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1853  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
1854  {
1855  parse_ambient:
1856  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1857  input, mutable_ambient()));
1858  }
1859  else
1860  {
1861  goto handle_uninterpreted;
1862  }
1863  if (input->ExpectTag(26)) goto parse_diffuse;
1864  break;
1865  }
1866 
1867  // required .mondschein.io.mbd.data.vector diffuse = 3;
1868  case 3:
1869  {
1870  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1871  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
1872  {
1873  parse_diffuse:
1874  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1875  input, mutable_diffuse()));
1876  }
1877  else
1878  {
1879  goto handle_uninterpreted;
1880  }
1881  if (input->ExpectTag(34)) goto parse_specular;
1882  break;
1883  }
1884 
1885  // required .mondschein.io.mbd.data.vector specular = 4;
1886  case 4:
1887  {
1888  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1889  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
1890  {
1891  parse_specular:
1892  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1893  input, mutable_specular()));
1894  }
1895  else
1896  {
1897  goto handle_uninterpreted;
1898  }
1899  if (input->ExpectTag(42)) goto parse_position;
1900  break;
1901  }
1902 
1903  // required .mondschein.io.mbd.data.vector position = 5;
1904  case 5:
1905  {
1906  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1907  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
1908  {
1909  parse_position:
1910  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1911  input, mutable_position()));
1912  }
1913  else
1914  {
1915  goto handle_uninterpreted;
1916  }
1917  if (input->ExpectTag(50)) goto parse_direction;
1918  break;
1919  }
1920 
1921  // required .mondschein.io.mbd.data.vector direction = 6;
1922  case 6:
1923  {
1924  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1925  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
1926  {
1927  parse_direction:
1928  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1929  input, mutable_direction()));
1930  }
1931  else
1932  {
1933  goto handle_uninterpreted;
1934  }
1935  if (input->ExpectTag(57)) goto parse_exponent;
1936  break;
1937  }
1938 
1939  // required double exponent = 7;
1940  case 7:
1941  {
1942  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1943  ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64)
1944  {
1945  parse_exponent:
1946  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1947  double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
1948  input, &exponent_)));
1949  set_has_exponent();
1950  }
1951  else
1952  {
1953  goto handle_uninterpreted;
1954  }
1955  if (input->ExpectTag(65)) goto parse_cutoff;
1956  break;
1957  }
1958 
1959  // required double cutoff = 8;
1960  case 8:
1961  {
1962  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1963  ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64)
1964  {
1965  parse_cutoff:
1966  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1967  double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
1968  input, &cutoff_)));
1969  set_has_cutoff();
1970  }
1971  else
1972  {
1973  goto handle_uninterpreted;
1974  }
1975  if (input->ExpectTag(73)) goto parse_const_att;
1976  break;
1977  }
1978 
1979  // required double const_att = 9;
1980  case 9:
1981  {
1982  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1983  ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64)
1984  {
1985  parse_const_att:
1986  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1987  double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
1988  input, &const_att_)));
1989  set_has_const_att();
1990  }
1991  else
1992  {
1993  goto handle_uninterpreted;
1994  }
1995  if (input->ExpectTag(81)) goto parse_lin_att;
1996  break;
1997  }
1998 
1999  // required double lin_att = 10;
2000  case 10:
2001  {
2002  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2003  ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64)
2004  {
2005  parse_lin_att:
2006  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2007  double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
2008  input, &lin_att_)));
2009  set_has_lin_att();
2010  }
2011  else
2012  {
2013  goto handle_uninterpreted;
2014  }
2015  if (input->ExpectTag(89)) goto parse_quad_att;
2016  break;
2017  }
2018 
2019  // required double quad_att = 11;
2020  case 11:
2021  {
2022  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2023  ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64)
2024  {
2025  parse_quad_att:
2026  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2027  double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
2028  input, &quad_att_)));
2029  set_has_quad_att();
2030  }
2031  else
2032  {
2033  goto handle_uninterpreted;
2034  }
2035  if (input->ExpectTag(96)) goto parse_light_nr;
2036  break;
2037  }
2038 
2039  // required uint32 light_nr = 12;
2040  case 12:
2041  {
2042  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2043  ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT)
2044  {
2045  parse_light_nr:
2046  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2047  ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
2048  input, &light_nr_)));
2049  set_has_light_nr();
2050  }
2051  else
2052  {
2053  goto handle_uninterpreted;
2054  }
2055  if (input->ExpectAtEnd()) return true;
2056  break;
2057  }
2058 
2059  default:
2060  {
2061  handle_uninterpreted:
2062  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2063  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP)
2064  {
2065  return true;
2066  }
2067  DO_(::google::protobuf::internal::WireFormat::SkipField(
2068  input, tag, mutable_unknown_fields()));
2069  break;
2070  }
2071  }
2072  }
2073  return true;
2074 #undef DO_
2075  }
2076 
2077  void data_light::SerializeWithCachedSizes(
2078  ::google::protobuf::io::CodedOutputStream *output) const
2079  {
2080  // required string name = 1;
2081  if (has_name())
2082  {
2083  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2084  this->name().data(), this->name().length(),
2085  ::google::protobuf::internal::WireFormat::SERIALIZE);
2086  ::google::protobuf::internal::WireFormatLite::WriteString(
2087  1, this->name(), output);
2088  }
2089 
2090  // required .mondschein.io.mbd.data.vector ambient = 2;
2091  if (has_ambient())
2092  {
2093  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2094  2, this->ambient(), output);
2095  }
2096 
2097  // required .mondschein.io.mbd.data.vector diffuse = 3;
2098  if (has_diffuse())
2099  {
2100  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2101  3, this->diffuse(), output);
2102  }
2103 
2104  // required .mondschein.io.mbd.data.vector specular = 4;
2105  if (has_specular())
2106  {
2107  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2108  4, this->specular(), output);
2109  }
2110 
2111  // required .mondschein.io.mbd.data.vector position = 5;
2112  if (has_position())
2113  {
2114  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2115  5, this->position(), output);
2116  }
2117 
2118  // required .mondschein.io.mbd.data.vector direction = 6;
2119  if (has_direction())
2120  {
2121  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2122  6, this->direction(), output);
2123  }
2124 
2125  // required double exponent = 7;
2126  if (has_exponent())
2127  {
2128  ::google::protobuf::internal::WireFormatLite::WriteDouble(7, this->exponent(), output);
2129  }
2130 
2131  // required double cutoff = 8;
2132  if (has_cutoff())
2133  {
2134  ::google::protobuf::internal::WireFormatLite::WriteDouble(8, this->cutoff(), output);
2135  }
2136 
2137  // required double const_att = 9;
2138  if (has_const_att())
2139  {
2140  ::google::protobuf::internal::WireFormatLite::WriteDouble(9, this->const_att(), output);
2141  }
2142 
2143  // required double lin_att = 10;
2144  if (has_lin_att())
2145  {
2146  ::google::protobuf::internal::WireFormatLite::WriteDouble(10, this->lin_att(), output);
2147  }
2148 
2149  // required double quad_att = 11;
2150  if (has_quad_att())
2151  {
2152  ::google::protobuf::internal::WireFormatLite::WriteDouble(11, this->quad_att(), output);
2153  }
2154 
2155  // required uint32 light_nr = 12;
2156  if (has_light_nr())
2157  {
2158  ::google::protobuf::internal::WireFormatLite::WriteUInt32(12, this->light_nr(), output);
2159  }
2160 
2161  if (!unknown_fields().empty())
2162  {
2163  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2164  unknown_fields(), output);
2165  }
2166  }
2167 
2168  ::google::protobuf::uint8 *data_light::SerializeWithCachedSizesToArray(
2169  ::google::protobuf::uint8 *target) const
2170  {
2171  // required string name = 1;
2172  if (has_name())
2173  {
2174  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2175  this->name().data(), this->name().length(),
2176  ::google::protobuf::internal::WireFormat::SERIALIZE);
2177  target =
2178  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2179  1, this->name(), target);
2180  }
2181 
2182  // required .mondschein.io.mbd.data.vector ambient = 2;
2183  if (has_ambient())
2184  {
2185  target = ::google::protobuf::internal::WireFormatLite::
2186  WriteMessageNoVirtualToArray(
2187  2, this->ambient(), target);
2188  }
2189 
2190  // required .mondschein.io.mbd.data.vector diffuse = 3;
2191  if (has_diffuse())
2192  {
2193  target = ::google::protobuf::internal::WireFormatLite::
2194  WriteMessageNoVirtualToArray(
2195  3, this->diffuse(), target);
2196  }
2197 
2198  // required .mondschein.io.mbd.data.vector specular = 4;
2199  if (has_specular())
2200  {
2201  target = ::google::protobuf::internal::WireFormatLite::
2202  WriteMessageNoVirtualToArray(
2203  4, this->specular(), target);
2204  }
2205 
2206  // required .mondschein.io.mbd.data.vector position = 5;
2207  if (has_position())
2208  {
2209  target = ::google::protobuf::internal::WireFormatLite::
2210  WriteMessageNoVirtualToArray(
2211  5, this->position(), target);
2212  }
2213 
2214  // required .mondschein.io.mbd.data.vector direction = 6;
2215  if (has_direction())
2216  {
2217  target = ::google::protobuf::internal::WireFormatLite::
2218  WriteMessageNoVirtualToArray(
2219  6, this->direction(), target);
2220  }
2221 
2222  // required double exponent = 7;
2223  if (has_exponent())
2224  {
2225  target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(7, this->exponent(), target);
2226  }
2227 
2228  // required double cutoff = 8;
2229  if (has_cutoff())
2230  {
2231  target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(8, this->cutoff(), target);
2232  }
2233 
2234  // required double const_att = 9;
2235  if (has_const_att())
2236  {
2237  target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(9, this->const_att(), target);
2238  }
2239 
2240  // required double lin_att = 10;
2241  if (has_lin_att())
2242  {
2243  target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(10, this->lin_att(), target);
2244  }
2245 
2246  // required double quad_att = 11;
2247  if (has_quad_att())
2248  {
2249  target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(11, this->quad_att(), target);
2250  }
2251 
2252  // required uint32 light_nr = 12;
2253  if (has_light_nr())
2254  {
2255  target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(12, this->light_nr(), target);
2256  }
2257 
2258  if (!unknown_fields().empty())
2259  {
2260  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2261  unknown_fields(), target);
2262  }
2263  return target;
2264  }
2265 
2266  int data_light::ByteSize() const
2267  {
2268  int total_size = 0;
2269 
2270  if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
2271  {
2272  // required string name = 1;
2273  if (has_name())
2274  {
2275  total_size += 1 +
2276  ::google::protobuf::internal::WireFormatLite::StringSize(
2277  this->name());
2278  }
2279 
2280  // required .mondschein.io.mbd.data.vector ambient = 2;
2281  if (has_ambient())
2282  {
2283  total_size += 1 +
2284  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2285  this->ambient());
2286  }
2287 
2288  // required .mondschein.io.mbd.data.vector diffuse = 3;
2289  if (has_diffuse())
2290  {
2291  total_size += 1 +
2292  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2293  this->diffuse());
2294  }
2295 
2296  // required .mondschein.io.mbd.data.vector specular = 4;
2297  if (has_specular())
2298  {
2299  total_size += 1 +
2300  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2301  this->specular());
2302  }
2303 
2304  // required .mondschein.io.mbd.data.vector position = 5;
2305  if (has_position())
2306  {
2307  total_size += 1 +
2308  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2309  this->position());
2310  }
2311 
2312  // required .mondschein.io.mbd.data.vector direction = 6;
2313  if (has_direction())
2314  {
2315  total_size += 1 +
2316  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2317  this->direction());
2318  }
2319 
2320  // required double exponent = 7;
2321  if (has_exponent())
2322  {
2323  total_size += 1 + 8;
2324  }
2325 
2326  // required double cutoff = 8;
2327  if (has_cutoff())
2328  {
2329  total_size += 1 + 8;
2330  }
2331 
2332  }
2333  if (_has_bits_[8 / 32] & (0xffu << (8 % 32)))
2334  {
2335  // required double const_att = 9;
2336  if (has_const_att())
2337  {
2338  total_size += 1 + 8;
2339  }
2340 
2341  // required double lin_att = 10;
2342  if (has_lin_att())
2343  {
2344  total_size += 1 + 8;
2345  }
2346 
2347  // required double quad_att = 11;
2348  if (has_quad_att())
2349  {
2350  total_size += 1 + 8;
2351  }
2352 
2353  // required uint32 light_nr = 12;
2354  if (has_light_nr())
2355  {
2356  total_size += 1 +
2357  ::google::protobuf::internal::WireFormatLite::UInt32Size(
2358  this->light_nr());
2359  }
2360 
2361  }
2362  if (!unknown_fields().empty())
2363  {
2364  total_size +=
2365  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2366  unknown_fields());
2367  }
2368  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2369  _cached_size_ = total_size;
2370  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2371  return total_size;
2372  }
2373 
2374  void data_light::MergeFrom(const ::google::protobuf::Message &from)
2375  {
2376  GOOGLE_CHECK_NE(&from, this);
2377  const data_light *source =
2378  ::google::protobuf::internal::dynamic_cast_if_available<const data_light *>(
2379  &from);
2380  if (source == NULL)
2381  {
2382  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2383  }
2384  else
2385  {
2386  MergeFrom(*source);
2387  }
2388  }
2389 
2390  void data_light::MergeFrom(const data_light &from)
2391  {
2392  GOOGLE_CHECK_NE(&from, this);
2393  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32)))
2394  {
2395  if (from.has_name())
2396  {
2397  set_name(from.name());
2398  }
2399  if (from.has_ambient())
2400  {
2401  mutable_ambient()->::mondschein::io::mbd::data_vector::MergeFrom(from.ambient());
2402  }
2403  if (from.has_diffuse())
2404  {
2405  mutable_diffuse()->::mondschein::io::mbd::data_vector::MergeFrom(from.diffuse());
2406  }
2407  if (from.has_specular())
2408  {
2409  mutable_specular()->::mondschein::io::mbd::data_vector::MergeFrom(from.specular());
2410  }
2411  if (from.has_position())
2412  {
2413  mutable_position()->::mondschein::io::mbd::data_vector::MergeFrom(from.position());
2414  }
2415  if (from.has_direction())
2416  {
2417  mutable_direction()->::mondschein::io::mbd::data_vector::MergeFrom(from.direction());
2418  }
2419  if (from.has_exponent())
2420  {
2421  set_exponent(from.exponent());
2422  }
2423  if (from.has_cutoff())
2424  {
2425  set_cutoff(from.cutoff());
2426  }
2427  }
2428  if (from._has_bits_[8 / 32] & (0xffu << (8 % 32)))
2429  {
2430  if (from.has_const_att())
2431  {
2432  set_const_att(from.const_att());
2433  }
2434  if (from.has_lin_att())
2435  {
2436  set_lin_att(from.lin_att());
2437  }
2438  if (from.has_quad_att())
2439  {
2440  set_quad_att(from.quad_att());
2441  }
2442  if (from.has_light_nr())
2443  {
2444  set_light_nr(from.light_nr());
2445  }
2446  }
2447  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2448  }
2449 
2450  void data_light::CopyFrom(const ::google::protobuf::Message &from)
2451  {
2452  if (&from == this) return;
2453  Clear();
2454  MergeFrom(from);
2455  }
2456 
2457  void data_light::CopyFrom(const data_light &from)
2458  {
2459  if (&from == this) return;
2460  Clear();
2461  MergeFrom(from);
2462  }
2463 
2464  bool data_light::IsInitialized() const
2465  {
2466  if ((_has_bits_[0] & 0x00000fff) != 0x00000fff) return false;
2467 
2468  if (has_ambient())
2469  {
2470  if (!this->ambient().IsInitialized()) return false;
2471  }
2472  if (has_diffuse())
2473  {
2474  if (!this->diffuse().IsInitialized()) return false;
2475  }
2476  if (has_specular())
2477  {
2478  if (!this->specular().IsInitialized()) return false;
2479  }
2480  if (has_position())
2481  {
2482  if (!this->position().IsInitialized()) return false;
2483  }
2484  if (has_direction())
2485  {
2486  if (!this->direction().IsInitialized()) return false;
2487  }
2488  return true;
2489  }
2490 
2491  void data_light::Swap(data_light *other)
2492  {
2493  if (other != this)
2494  {
2495  std::swap(name_, other->name_);
2496  std::swap(ambient_, other->ambient_);
2497  std::swap(diffuse_, other->diffuse_);
2498  std::swap(specular_, other->specular_);
2499  std::swap(position_, other->position_);
2500  std::swap(direction_, other->direction_);
2501  std::swap(exponent_, other->exponent_);
2502  std::swap(cutoff_, other->cutoff_);
2503  std::swap(const_att_, other->const_att_);
2504  std::swap(lin_att_, other->lin_att_);
2505  std::swap(quad_att_, other->quad_att_);
2506  std::swap(light_nr_, other->light_nr_);
2507  std::swap(_has_bits_[0], other->_has_bits_[0]);
2508  _unknown_fields_.Swap(&other->_unknown_fields_);
2509  std::swap(_cached_size_, other->_cached_size_);
2510  }
2511  }
2512 
2513  ::google::protobuf::Metadata data_light::GetMetadata() const
2514  {
2515  protobuf_AssignDescriptorsOnce();
2516  ::google::protobuf::Metadata metadata;
2517  metadata.descriptor = data_light_descriptor_;
2518  metadata.reflection = data_light_reflection_;
2519  return metadata;
2520  }
2521 
2522 
2523  // -------------------------------------------------------------------
2524 
2525 #ifndef _MSC_VER
2526  const int data_material::kNameFieldNumber;
2527  const int data_material::kAmbientFieldNumber;
2528  const int data_material::kDiffuseFieldNumber;
2529  const int data_material::kSpecularFieldNumber;
2530  const int data_material::kEmissionFieldNumber;
2531  const int data_material::kShininessFieldNumber;
2532 #endif // !_MSC_VER
2533 
2534  data_material::data_material()
2535  : ::google::protobuf::Message()
2536  {
2537  SharedCtor();
2538  }
2539 
2540  void data_material::InitAsDefaultInstance()
2541  {
2542  ambient_ = const_cast< ::mondschein::io::mbd::data_vector *>(&::mondschein::io::mbd::data_vector::default_instance());
2543  diffuse_ = const_cast< ::mondschein::io::mbd::data_vector *>(&::mondschein::io::mbd::data_vector::default_instance());
2544  specular_ = const_cast< ::mondschein::io::mbd::data_vector *>(&::mondschein::io::mbd::data_vector::default_instance());
2545  emission_ = const_cast< ::mondschein::io::mbd::data_vector *>(&::mondschein::io::mbd::data_vector::default_instance());
2546  }
2547 
2548  data_material::data_material(const data_material &from)
2549  : ::google::protobuf::Message()
2550  {
2551  SharedCtor();
2552  MergeFrom(from);
2553  }
2554 
2555  void data_material::SharedCtor()
2556  {
2557  _cached_size_ = 0;
2558  name_ = const_cast< ::std::string *>(&::google::protobuf::internal::kEmptyString);
2559  ambient_ = NULL;
2560  diffuse_ = NULL;
2561  specular_ = NULL;
2562  emission_ = NULL;
2563  shininess_ = 0;
2564  ::memset(_has_bits_, 0, sizeof(_has_bits_));
2565  }
2566 
2567  data_material::~data_material()
2568  {
2569  SharedDtor();
2570  }
2571 
2572  void data_material::SharedDtor()
2573  {
2574  if (name_ != &::google::protobuf::internal::kEmptyString)
2575  {
2576  delete name_;
2577  }
2578  if (this != default_instance_)
2579  {
2580  delete ambient_;
2581  delete diffuse_;
2582  delete specular_;
2583  delete emission_;
2584  }
2585  }
2586 
2587  void data_material::SetCachedSize(int size) const
2588  {
2589  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2590  _cached_size_ = size;
2591  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2592  }
2593  const ::google::protobuf::Descriptor *data_material::descriptor()
2594  {
2595  protobuf_AssignDescriptorsOnce();
2596  return data_material_descriptor_;
2597  }
2598 
2599  const data_material &data_material::default_instance()
2600  {
2601  if (default_instance_ == NULL) protobuf_AddDesc_mbd_2eproto();
2602  return *default_instance_;
2603  }
2604 
2605  data_material *data_material::default_instance_ = NULL;
2606 
2607  data_material *data_material::New() const
2608  {
2609  return new data_material;
2610  }
2611 
2612  void data_material::Clear()
2613  {
2614  if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
2615  {
2616  if (has_name())
2617  {
2618  if (name_ != &::google::protobuf::internal::kEmptyString)
2619  {
2620  name_->clear();
2621  }
2622  }
2623  if (has_ambient())
2624  {
2625  if (ambient_ != NULL) ambient_->::mondschein::io::mbd::data_vector::Clear();
2626  }
2627  if (has_diffuse())
2628  {
2629  if (diffuse_ != NULL) diffuse_->::mondschein::io::mbd::data_vector::Clear();
2630  }
2631  if (has_specular())
2632  {
2633  if (specular_ != NULL) specular_->::mondschein::io::mbd::data_vector::Clear();
2634  }
2635  if (has_emission())
2636  {
2637  if (emission_ != NULL) emission_->::mondschein::io::mbd::data_vector::Clear();
2638  }
2639  shininess_ = 0;
2640  }
2641  ::memset(_has_bits_, 0, sizeof(_has_bits_));
2642  mutable_unknown_fields()->Clear();
2643  }
2644 
2645  bool data_material::MergePartialFromCodedStream(
2646  ::google::protobuf::io::CodedInputStream *input)
2647  {
2648 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
2650  while ((tag = input->ReadTag()) != 0)
2651  {
2652  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag))
2653  {
2654  // required string name = 1;
2655  case 1:
2656  {
2657  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2658  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
2659  {
2660  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2661  input, this->mutable_name()));
2662  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2663  this->name().data(), this->name().length(),
2664  ::google::protobuf::internal::WireFormat::PARSE);
2665  }
2666  else
2667  {
2668  goto handle_uninterpreted;
2669  }
2670  if (input->ExpectTag(18)) goto parse_ambient;
2671  break;
2672  }
2673 
2674  // required .mondschein.io.mbd.data.vector ambient = 2;
2675  case 2:
2676  {
2677  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2678  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
2679  {
2680  parse_ambient:
2681  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2682  input, mutable_ambient()));
2683  }
2684  else
2685  {
2686  goto handle_uninterpreted;
2687  }
2688  if (input->ExpectTag(26)) goto parse_diffuse;
2689  break;
2690  }
2691 
2692  // required .mondschein.io.mbd.data.vector diffuse = 3;
2693  case 3:
2694  {
2695  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2696  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
2697  {
2698  parse_diffuse:
2699  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2700  input, mutable_diffuse()));
2701  }
2702  else
2703  {
2704  goto handle_uninterpreted;
2705  }
2706  if (input->ExpectTag(34)) goto parse_specular;
2707  break;
2708  }
2709 
2710  // required .mondschein.io.mbd.data.vector specular = 4;
2711  case 4:
2712  {
2713  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2714  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
2715  {
2716  parse_specular:
2717  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2718  input, mutable_specular()));
2719  }
2720  else
2721  {
2722  goto handle_uninterpreted;
2723  }
2724  if (input->ExpectTag(42)) goto parse_emission;
2725  break;
2726  }
2727 
2728  // required .mondschein.io.mbd.data.vector emission = 5;
2729  case 5:
2730  {
2731  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2732  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
2733  {
2734  parse_emission:
2735  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2736  input, mutable_emission()));
2737  }
2738  else
2739  {
2740  goto handle_uninterpreted;
2741  }
2742  if (input->ExpectTag(49)) goto parse_shininess;
2743  break;
2744  }
2745 
2746  // required double shininess = 6;
2747  case 6:
2748  {
2749  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2750  ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64)
2751  {
2752  parse_shininess:
2753  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2754  double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
2755  input, &shininess_)));
2756  set_has_shininess();
2757  }
2758  else
2759  {
2760  goto handle_uninterpreted;
2761  }
2762  if (input->ExpectAtEnd()) return true;
2763  break;
2764  }
2765 
2766  default:
2767  {
2768  handle_uninterpreted:
2769  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2770  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP)
2771  {
2772  return true;
2773  }
2774  DO_(::google::protobuf::internal::WireFormat::SkipField(
2775  input, tag, mutable_unknown_fields()));
2776  break;
2777  }
2778  }
2779  }
2780  return true;
2781 #undef DO_
2782  }
2783 
2784  void data_material::SerializeWithCachedSizes(
2785  ::google::protobuf::io::CodedOutputStream *output) const
2786  {
2787  // required string name = 1;
2788  if (has_name())
2789  {
2790  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2791  this->name().data(), this->name().length(),
2792  ::google::protobuf::internal::WireFormat::SERIALIZE);
2793  ::google::protobuf::internal::WireFormatLite::WriteString(
2794  1, this->name(), output);
2795  }
2796 
2797  // required .mondschein.io.mbd.data.vector ambient = 2;
2798  if (has_ambient())
2799  {
2800  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2801  2, this->ambient(), output);
2802  }
2803 
2804  // required .mondschein.io.mbd.data.vector diffuse = 3;
2805  if (has_diffuse())
2806  {
2807  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2808  3, this->diffuse(), output);
2809  }
2810 
2811  // required .mondschein.io.mbd.data.vector specular = 4;
2812  if (has_specular())
2813  {
2814  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2815  4, this->specular(), output);
2816  }
2817 
2818  // required .mondschein.io.mbd.data.vector emission = 5;
2819  if (has_emission())
2820  {
2821  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2822  5, this->emission(), output);
2823  }
2824 
2825  // required double shininess = 6;
2826  if (has_shininess())
2827  {
2828  ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->shininess(), output);
2829  }
2830 
2831  if (!unknown_fields().empty())
2832  {
2833  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2834  unknown_fields(), output);
2835  }
2836  }
2837 
2838  ::google::protobuf::uint8 *data_material::SerializeWithCachedSizesToArray(
2839  ::google::protobuf::uint8 *target) const
2840  {
2841  // required string name = 1;
2842  if (has_name())
2843  {
2844  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2845  this->name().data(), this->name().length(),
2846  ::google::protobuf::internal::WireFormat::SERIALIZE);
2847  target =
2848  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2849  1, this->name(), target);
2850  }
2851 
2852  // required .mondschein.io.mbd.data.vector ambient = 2;
2853  if (has_ambient())
2854  {
2855  target = ::google::protobuf::internal::WireFormatLite::
2856  WriteMessageNoVirtualToArray(
2857  2, this->ambient(), target);
2858  }
2859 
2860  // required .mondschein.io.mbd.data.vector diffuse = 3;
2861  if (has_diffuse())
2862  {
2863  target = ::google::protobuf::internal::WireFormatLite::
2864  WriteMessageNoVirtualToArray(
2865  3, this->diffuse(), target);
2866  }
2867 
2868  // required .mondschein.io.mbd.data.vector specular = 4;
2869  if (has_specular())
2870  {
2871  target = ::google::protobuf::internal::WireFormatLite::
2872  WriteMessageNoVirtualToArray(
2873  4, this->specular(), target);
2874  }
2875 
2876  // required .mondschein.io.mbd.data.vector emission = 5;
2877  if (has_emission())
2878  {
2879  target = ::google::protobuf::internal::WireFormatLite::
2880  WriteMessageNoVirtualToArray(
2881  5, this->emission(), target);
2882  }
2883 
2884  // required double shininess = 6;
2885  if (has_shininess())
2886  {
2887  target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->shininess(), target);
2888  }
2889 
2890  if (!unknown_fields().empty())
2891  {
2892  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2893  unknown_fields(), target);
2894  }
2895  return target;
2896  }
2897 
2898  int data_material::ByteSize() const
2899  {
2900  int total_size = 0;
2901 
2902  if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
2903  {
2904  // required string name = 1;
2905  if (has_name())
2906  {
2907  total_size += 1 +
2908  ::google::protobuf::internal::WireFormatLite::StringSize(
2909  this->name());
2910  }
2911 
2912  // required .mondschein.io.mbd.data.vector ambient = 2;
2913  if (has_ambient())
2914  {
2915  total_size += 1 +
2916  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2917  this->ambient());
2918  }
2919 
2920  // required .mondschein.io.mbd.data.vector diffuse = 3;
2921  if (has_diffuse())
2922  {
2923  total_size += 1 +
2924  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2925  this->diffuse());
2926  }
2927 
2928  // required .mondschein.io.mbd.data.vector specular = 4;
2929  if (has_specular())
2930  {
2931  total_size += 1 +
2932  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2933  this->specular());
2934  }
2935 
2936  // required .mondschein.io.mbd.data.vector emission = 5;
2937  if (has_emission())
2938  {
2939  total_size += 1 +
2940  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2941  this->emission());
2942  }
2943 
2944  // required double shininess = 6;
2945  if (has_shininess())
2946  {
2947  total_size += 1 + 8;
2948  }
2949 
2950  }
2951  if (!unknown_fields().empty())
2952  {
2953  total_size +=
2954  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2955  unknown_fields());
2956  }
2957  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2958  _cached_size_ = total_size;
2959  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2960  return total_size;
2961  }
2962 
2963  void data_material::MergeFrom(const ::google::protobuf::Message &from)
2964  {
2965  GOOGLE_CHECK_NE(&from, this);
2966  const data_material *source =
2967  ::google::protobuf::internal::dynamic_cast_if_available<const data_material *>(
2968  &from);
2969  if (source == NULL)
2970  {
2971  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2972  }
2973  else
2974  {
2975  MergeFrom(*source);
2976  }
2977  }
2978 
2979  void data_material::MergeFrom(const data_material &from)
2980  {
2981  GOOGLE_CHECK_NE(&from, this);
2982  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32)))
2983  {
2984  if (from.has_name())
2985  {
2986  set_name(from.name());
2987  }
2988  if (from.has_ambient())
2989  {
2990  mutable_ambient()->::mondschein::io::mbd::data_vector::MergeFrom(from.ambient());
2991  }
2992  if (from.has_diffuse())
2993  {
2994  mutable_diffuse()->::mondschein::io::mbd::data_vector::MergeFrom(from.diffuse());
2995  }
2996  if (from.has_specular())
2997  {
2998  mutable_specular()->::mondschein::io::mbd::data_vector::MergeFrom(from.specular());
2999  }
3000  if (from.has_emission())
3001  {
3002  mutable_emission()->::mondschein::io::mbd::data_vector::MergeFrom(from.emission());
3003  }
3004  if (from.has_shininess())
3005  {
3006  set_shininess(from.shininess());
3007  }
3008  }
3009  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3010  }
3011 
3012  void data_material::CopyFrom(const ::google::protobuf::Message &from)
3013  {
3014  if (&from == this) return;
3015  Clear();
3016  MergeFrom(from);
3017  }
3018 
3019  void data_material::CopyFrom(const data_material &from)
3020  {
3021  if (&from == this) return;
3022  Clear();
3023  MergeFrom(from);
3024  }
3025 
3026  bool data_material::IsInitialized() const
3027  {
3028  if ((_has_bits_[0] & 0x0000003f) != 0x0000003f) return false;
3029 
3030  if (has_ambient())
3031  {
3032  if (!this->ambient().IsInitialized()) return false;
3033  }
3034  if (has_diffuse())
3035  {
3036  if (!this->diffuse().IsInitialized()) return false;
3037  }
3038  if (has_specular())
3039  {
3040  if (!this->specular().IsInitialized()) return false;
3041  }
3042  if (has_emission())
3043  {
3044  if (!this->emission().IsInitialized()) return false;
3045  }
3046  return true;
3047  }
3048 
3049  void data_material::Swap(data_material *other)
3050  {
3051  if (other != this)
3052  {
3053  std::swap(name_, other->name_);
3054  std::swap(ambient_, other->ambient_);
3055  std::swap(diffuse_, other->diffuse_);
3056  std::swap(specular_, other->specular_);
3057  std::swap(emission_, other->emission_);
3058  std::swap(shininess_, other->shininess_);
3059  std::swap(_has_bits_[0], other->_has_bits_[0]);
3060  _unknown_fields_.Swap(&other->_unknown_fields_);
3061  std::swap(_cached_size_, other->_cached_size_);
3062  }
3063  }
3064 
3065  ::google::protobuf::Metadata data_material::GetMetadata() const
3066  {
3067  protobuf_AssignDescriptorsOnce();
3068  ::google::protobuf::Metadata metadata;
3069  metadata.descriptor = data_material_descriptor_;
3070  metadata.reflection = data_material_reflection_;
3071  return metadata;
3072  }
3073 
3074 
3075  // -------------------------------------------------------------------
3076 
3077 #ifndef _MSC_VER
3078  const int data_mesh::kNameFieldNumber;
3079  const int data_mesh::kVFieldNumber;
3080  const int data_mesh::kVnFieldNumber;
3081  const int data_mesh::kVtFieldNumber;
3082  const int data_mesh::kVcFieldNumber;
3083 #endif // !_MSC_VER
3084 
3085  data_mesh::data_mesh()
3086  : ::google::protobuf::Message()
3087  {
3088  SharedCtor();
3089  }
3090 
3091  void data_mesh::InitAsDefaultInstance()
3092  {
3093  }
3094 
3095  data_mesh::data_mesh(const data_mesh &from)
3096  : ::google::protobuf::Message()
3097  {
3098  SharedCtor();
3099  MergeFrom(from);
3100  }
3101 
3102  void data_mesh::SharedCtor()
3103  {
3104  _cached_size_ = 0;
3105  name_ = const_cast< ::std::string *>(&::google::protobuf::internal::kEmptyString);
3106  ::memset(_has_bits_, 0, sizeof(_has_bits_));
3107  }
3108 
3109  data_mesh::~data_mesh()
3110  {
3111  SharedDtor();
3112  }
3113 
3114  void data_mesh::SharedDtor()
3115  {
3116  if (name_ != &::google::protobuf::internal::kEmptyString)
3117  {
3118  delete name_;
3119  }
3120  if (this != default_instance_)
3121  {
3122  }
3123  }
3124 
3125  void data_mesh::SetCachedSize(int size) const
3126  {
3127  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3128  _cached_size_ = size;
3129  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3130  }
3131  const ::google::protobuf::Descriptor *data_mesh::descriptor()
3132  {
3133  protobuf_AssignDescriptorsOnce();
3134  return data_mesh_descriptor_;
3135  }
3136 
3137  const data_mesh &data_mesh::default_instance()
3138  {
3139  if (default_instance_ == NULL) protobuf_AddDesc_mbd_2eproto();
3140  return *default_instance_;
3141  }
3142 
3143  data_mesh *data_mesh::default_instance_ = NULL;
3144 
3145  data_mesh *data_mesh::New() const
3146  {
3147  return new data_mesh;
3148  }
3149 
3150  void data_mesh::Clear()
3151  {
3152  if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
3153  {
3154  if (has_name())
3155  {
3156  if (name_ != &::google::protobuf::internal::kEmptyString)
3157  {
3158  name_->clear();
3159  }
3160  }
3161  }
3162  v_.Clear();
3163  vn_.Clear();
3164  vt_.Clear();
3165  vc_.Clear();
3166  ::memset(_has_bits_, 0, sizeof(_has_bits_));
3167  mutable_unknown_fields()->Clear();
3168  }
3169 
3170  bool data_mesh::MergePartialFromCodedStream(
3171  ::google::protobuf::io::CodedInputStream *input)
3172  {
3173 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
3175  while ((tag = input->ReadTag()) != 0)
3176  {
3177  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag))
3178  {
3179  // required string name = 1;
3180  case 1:
3181  {
3182  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3183  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
3184  {
3185  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3186  input, this->mutable_name()));
3187  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3188  this->name().data(), this->name().length(),
3189  ::google::protobuf::internal::WireFormat::PARSE);
3190  }
3191  else
3192  {
3193  goto handle_uninterpreted;
3194  }
3195  if (input->ExpectTag(18)) goto parse_v;
3196  break;
3197  }
3198 
3199  // repeated .mondschein.io.mbd.data.vector v = 2;
3200  case 2:
3201  {
3202  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3203  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
3204  {
3205  parse_v:
3206  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3207  input, add_v()));
3208  }
3209  else
3210  {
3211  goto handle_uninterpreted;
3212  }
3213  if (input->ExpectTag(18)) goto parse_v;
3214  if (input->ExpectTag(26)) goto parse_vn;
3215  break;
3216  }
3217 
3218  // repeated .mondschein.io.mbd.data.vector vn = 3;
3219  case 3:
3220  {
3221  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3222  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
3223  {
3224  parse_vn:
3225  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3226  input, add_vn()));
3227  }
3228  else
3229  {
3230  goto handle_uninterpreted;
3231  }
3232  if (input->ExpectTag(26)) goto parse_vn;
3233  if (input->ExpectTag(34)) goto parse_vt;
3234  break;
3235  }
3236 
3237  // repeated .mondschein.io.mbd.data.vector vt = 4;
3238  case 4:
3239  {
3240  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3241  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
3242  {
3243  parse_vt:
3244  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3245  input, add_vt()));
3246  }
3247  else
3248  {
3249  goto handle_uninterpreted;
3250  }
3251  if (input->ExpectTag(34)) goto parse_vt;
3252  if (input->ExpectTag(42)) goto parse_vc;
3253  break;
3254  }
3255 
3256  // repeated .mondschein.io.mbd.data.vector vc = 5;
3257  case 5:
3258  {
3259  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3260  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
3261  {
3262  parse_vc:
3263  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3264  input, add_vc()));
3265  }
3266  else
3267  {
3268  goto handle_uninterpreted;
3269  }
3270  if (input->ExpectTag(42)) goto parse_vc;
3271  if (input->ExpectAtEnd()) return true;
3272  break;
3273  }
3274 
3275  default:
3276  {
3277  handle_uninterpreted:
3278  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3279  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP)
3280  {
3281  return true;
3282  }
3283  DO_(::google::protobuf::internal::WireFormat::SkipField(
3284  input, tag, mutable_unknown_fields()));
3285  break;
3286  }
3287  }
3288  }
3289  return true;
3290 #undef DO_
3291  }
3292 
3293  void data_mesh::SerializeWithCachedSizes(
3294  ::google::protobuf::io::CodedOutputStream *output) const
3295  {
3296  // required string name = 1;
3297  if (has_name())
3298  {
3299  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3300  this->name().data(), this->name().length(),
3301  ::google::protobuf::internal::WireFormat::SERIALIZE);
3302  ::google::protobuf::internal::WireFormatLite::WriteString(
3303  1, this->name(), output);
3304  }
3305 
3306  // repeated .mondschein.io.mbd.data.vector v = 2;
3307  for (int i = 0; i < this->v_size(); i++)
3308  {
3309  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3310  2, this->v(i), output);
3311  }
3312 
3313  // repeated .mondschein.io.mbd.data.vector vn = 3;
3314  for (int i = 0; i < this->vn_size(); i++)
3315  {
3316  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3317  3, this->vn(i), output);
3318  }
3319 
3320  // repeated .mondschein.io.mbd.data.vector vt = 4;
3321  for (int i = 0; i < this->vt_size(); i++)
3322  {
3323  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3324  4, this->vt(i), output);
3325  }
3326 
3327  // repeated .mondschein.io.mbd.data.vector vc = 5;
3328  for (int i = 0; i < this->vc_size(); i++)
3329  {
3330  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3331  5, this->vc(i), output);
3332  }
3333 
3334  if (!unknown_fields().empty())
3335  {
3336  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3337  unknown_fields(), output);
3338  }
3339  }
3340 
3341  ::google::protobuf::uint8 *data_mesh::SerializeWithCachedSizesToArray(
3342  ::google::protobuf::uint8 *target) const
3343  {
3344  // required string name = 1;
3345  if (has_name())
3346  {
3347  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3348  this->name().data(), this->name().length(),
3349  ::google::protobuf::internal::WireFormat::SERIALIZE);
3350  target =
3351  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3352  1, this->name(), target);
3353  }
3354 
3355  // repeated .mondschein.io.mbd.data.vector v = 2;
3356  for (int i = 0; i < this->v_size(); i++)
3357  {
3358  target = ::google::protobuf::internal::WireFormatLite::
3359  WriteMessageNoVirtualToArray(
3360  2, this->v(i), target);
3361  }
3362 
3363  // repeated .mondschein.io.mbd.data.vector vn = 3;
3364  for (int i = 0; i < this->vn_size(); i++)
3365  {
3366  target = ::google::protobuf::internal::WireFormatLite::
3367  WriteMessageNoVirtualToArray(
3368  3, this->vn(i), target);
3369  }
3370 
3371  // repeated .mondschein.io.mbd.data.vector vt = 4;
3372  for (int i = 0; i < this->vt_size(); i++)
3373  {
3374  target = ::google::protobuf::internal::WireFormatLite::
3375  WriteMessageNoVirtualToArray(
3376  4, this->vt(i), target);
3377  }
3378 
3379  // repeated .mondschein.io.mbd.data.vector vc = 5;
3380  for (int i = 0; i < this->vc_size(); i++)
3381  {
3382  target = ::google::protobuf::internal::WireFormatLite::
3383  WriteMessageNoVirtualToArray(
3384  5, this->vc(i), target);
3385  }
3386 
3387  if (!unknown_fields().empty())
3388  {
3389  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3390  unknown_fields(), target);
3391  }
3392  return target;
3393  }
3394 
3395  int data_mesh::ByteSize() const
3396  {
3397  int total_size = 0;
3398 
3399  if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
3400  {
3401  // required string name = 1;
3402  if (has_name())
3403  {
3404  total_size += 1 +
3405  ::google::protobuf::internal::WireFormatLite::StringSize(
3406  this->name());
3407  }
3408 
3409  }
3410  // repeated .mondschein.io.mbd.data.vector v = 2;
3411  total_size += 1 * this->v_size();
3412  for (int i = 0; i < this->v_size(); i++)
3413  {
3414  total_size +=
3415  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3416  this->v(i));
3417  }
3418 
3419  // repeated .mondschein.io.mbd.data.vector vn = 3;
3420  total_size += 1 * this->vn_size();
3421  for (int i = 0; i < this->vn_size(); i++)
3422  {
3423  total_size +=
3424  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3425  this->vn(i));
3426  }
3427 
3428  // repeated .mondschein.io.mbd.data.vector vt = 4;
3429  total_size += 1 * this->vt_size();
3430  for (int i = 0; i < this->vt_size(); i++)
3431  {
3432  total_size +=
3433  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3434  this->vt(i));
3435  }
3436 
3437  // repeated .mondschein.io.mbd.data.vector vc = 5;
3438  total_size += 1 * this->vc_size();
3439  for (int i = 0; i < this->vc_size(); i++)
3440  {
3441  total_size +=
3442  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3443  this->vc(i));
3444  }
3445 
3446  if (!unknown_fields().empty())
3447  {
3448  total_size +=
3449  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3450  unknown_fields());
3451  }
3452  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3453  _cached_size_ = total_size;
3454  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3455  return total_size;
3456  }
3457 
3458  void data_mesh::MergeFrom(const ::google::protobuf::Message &from)
3459  {
3460  GOOGLE_CHECK_NE(&from, this);
3461  const data_mesh *source =
3462  ::google::protobuf::internal::dynamic_cast_if_available<const data_mesh *>(
3463  &from);
3464  if (source == NULL)
3465  {
3466  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3467  }
3468  else
3469  {
3470  MergeFrom(*source);
3471  }
3472  }
3473 
3474  void data_mesh::MergeFrom(const data_mesh &from)
3475  {
3476  GOOGLE_CHECK_NE(&from, this);
3477  v_.MergeFrom(from.v_);
3478  vn_.MergeFrom(from.vn_);
3479  vt_.MergeFrom(from.vt_);
3480  vc_.MergeFrom(from.vc_);
3481  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32)))
3482  {
3483  if (from.has_name())
3484  {
3485  set_name(from.name());
3486  }
3487  }
3488  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3489  }
3490 
3491  void data_mesh::CopyFrom(const ::google::protobuf::Message &from)
3492  {
3493  if (&from == this) return;
3494  Clear();
3495  MergeFrom(from);
3496  }
3497 
3498  void data_mesh::CopyFrom(const data_mesh &from)
3499  {
3500  if (&from == this) return;
3501  Clear();
3502  MergeFrom(from);
3503  }
3504 
3505  bool data_mesh::IsInitialized() const
3506  {
3507  if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
3508 
3509  for (int i = 0; i < v_size(); i++)
3510  {
3511  if (!this->v(i).IsInitialized()) return false;
3512  }
3513  for (int i = 0; i < vn_size(); i++)
3514  {
3515  if (!this->vn(i).IsInitialized()) return false;
3516  }
3517  for (int i = 0; i < vt_size(); i++)
3518  {
3519  if (!this->vt(i).IsInitialized()) return false;
3520  }
3521  for (int i = 0; i < vc_size(); i++)
3522  {
3523  if (!this->vc(i).IsInitialized()) return false;
3524  }
3525  return true;
3526  }
3527 
3528  void data_mesh::Swap(data_mesh *other)
3529  {
3530  if (other != this)
3531  {
3532  std::swap(name_, other->name_);
3533  v_.Swap(&other->v_);
3534  vn_.Swap(&other->vn_);
3535  vt_.Swap(&other->vt_);
3536  vc_.Swap(&other->vc_);
3537  std::swap(_has_bits_[0], other->_has_bits_[0]);
3538  _unknown_fields_.Swap(&other->_unknown_fields_);
3539  std::swap(_cached_size_, other->_cached_size_);
3540  }
3541  }
3542 
3543  ::google::protobuf::Metadata data_mesh::GetMetadata() const
3544  {
3545  protobuf_AssignDescriptorsOnce();
3546  ::google::protobuf::Metadata metadata;
3547  metadata.descriptor = data_mesh_descriptor_;
3548  metadata.reflection = data_mesh_reflection_;
3549  return metadata;
3550  }
3551 
3552 
3553  // -------------------------------------------------------------------
3554 
3555 #ifndef _MSC_VER
3556  const int data_pose::kNameFieldNumber;
3557  const int data_pose::kC1FieldNumber;
3558  const int data_pose::kC2FieldNumber;
3559  const int data_pose::kC3FieldNumber;
3560  const int data_pose::kC4FieldNumber;
3561 #endif // !_MSC_VER
3562 
3563  data_pose::data_pose()
3564  : ::google::protobuf::Message()
3565  {
3566  SharedCtor();
3567  }
3568 
3569  void data_pose::InitAsDefaultInstance()
3570  {
3571  c1_ = const_cast< ::mondschein::io::mbd::data_vector *>(&::mondschein::io::mbd::data_vector::default_instance());
3572  c2_ = const_cast< ::mondschein::io::mbd::data_vector *>(&::mondschein::io::mbd::data_vector::default_instance());
3573  c3_ = const_cast< ::mondschein::io::mbd::data_vector *>(&::mondschein::io::mbd::data_vector::default_instance());
3574  c4_ = const_cast< ::mondschein::io::mbd::data_vector *>(&::mondschein::io::mbd::data_vector::default_instance());
3575  }
3576 
3577  data_pose::data_pose(const data_pose &from)
3578  : ::google::protobuf::Message()
3579  {
3580  SharedCtor();
3581  MergeFrom(from);
3582  }
3583 
3584  void data_pose::SharedCtor()
3585  {
3586  _cached_size_ = 0;
3587  name_ = const_cast< ::std::string *>(&::google::protobuf::internal::kEmptyString);
3588  c1_ = NULL;
3589  c2_ = NULL;
3590  c3_ = NULL;
3591  c4_ = NULL;
3592  ::memset(_has_bits_, 0, sizeof(_has_bits_));
3593  }
3594 
3595  data_pose::~data_pose()
3596  {
3597  SharedDtor();
3598  }
3599 
3600  void data_pose::SharedDtor()
3601  {
3602  if (name_ != &::google::protobuf::internal::kEmptyString)
3603  {
3604  delete name_;
3605  }
3606  if (this != default_instance_)
3607  {
3608  delete c1_;
3609  delete c2_;
3610  delete c3_;
3611  delete c4_;
3612  }
3613  }
3614 
3615  void data_pose::SetCachedSize(int size) const
3616  {
3617  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3618  _cached_size_ = size;
3619  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3620  }
3621  const ::google::protobuf::Descriptor *data_pose::descriptor()
3622  {
3623  protobuf_AssignDescriptorsOnce();
3624  return data_pose_descriptor_;
3625  }
3626 
3627  const data_pose &data_pose::default_instance()
3628  {
3629  if (default_instance_ == NULL) protobuf_AddDesc_mbd_2eproto();
3630  return *default_instance_;
3631  }
3632 
3633  data_pose *data_pose::default_instance_ = NULL;
3634 
3635  data_pose *data_pose::New() const
3636  {
3637  return new data_pose;
3638  }
3639 
3640  void data_pose::Clear()
3641  {
3642  if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
3643  {
3644  if (has_name())
3645  {
3646  if (name_ != &::google::protobuf::internal::kEmptyString)
3647  {
3648  name_->clear();
3649  }
3650  }
3651  if (has_c1())
3652  {
3653  if (c1_ != NULL) c1_->::mondschein::io::mbd::data_vector::Clear();
3654  }
3655  if (has_c2())
3656  {
3657  if (c2_ != NULL) c2_->::mondschein::io::mbd::data_vector::Clear();
3658  }
3659  if (has_c3())
3660  {
3661  if (c3_ != NULL) c3_->::mondschein::io::mbd::data_vector::Clear();
3662  }
3663  if (has_c4())
3664  {
3665  if (c4_ != NULL) c4_->::mondschein::io::mbd::data_vector::Clear();
3666  }
3667  }
3668  ::memset(_has_bits_, 0, sizeof(_has_bits_));
3669  mutable_unknown_fields()->Clear();
3670  }
3671 
3672  bool data_pose::MergePartialFromCodedStream(
3673  ::google::protobuf::io::CodedInputStream *input)
3674  {
3675 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
3677  while ((tag = input->ReadTag()) != 0)
3678  {
3679  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag))
3680  {
3681  // required string name = 1;
3682  case 1:
3683  {
3684  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3685  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
3686  {
3687  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3688  input, this->mutable_name()));
3689  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3690  this->name().data(), this->name().length(),
3691  ::google::protobuf::internal::WireFormat::PARSE);
3692  }
3693  else
3694  {
3695  goto handle_uninterpreted;
3696  }
3697  if (input->ExpectTag(18)) goto parse_c1;
3698  break;
3699  }
3700 
3701  // required .mondschein.io.mbd.data.vector c1 = 2;
3702  case 2:
3703  {
3704  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3705  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
3706  {
3707  parse_c1:
3708  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3709  input, mutable_c1()));
3710  }
3711  else
3712  {
3713  goto handle_uninterpreted;
3714  }
3715  if (input->ExpectTag(26)) goto parse_c2;
3716  break;
3717  }
3718 
3719  // required .mondschein.io.mbd.data.vector c2 = 3;
3720  case 3:
3721  {
3722  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3723  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
3724  {
3725  parse_c2:
3726  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3727  input, mutable_c2()));
3728  }
3729  else
3730  {
3731  goto handle_uninterpreted;
3732  }
3733  if (input->ExpectTag(34)) goto parse_c3;
3734  break;
3735  }
3736 
3737  // required .mondschein.io.mbd.data.vector c3 = 4;
3738  case 4:
3739  {
3740  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3741  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
3742  {
3743  parse_c3:
3744  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3745  input, mutable_c3()));
3746  }
3747  else
3748  {
3749  goto handle_uninterpreted;
3750  }
3751  if (input->ExpectTag(42)) goto parse_c4;
3752  break;
3753  }
3754 
3755  // required .mondschein.io.mbd.data.vector c4 = 5;
3756  case 5:
3757  {
3758  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3759  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
3760  {
3761  parse_c4:
3762  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3763  input, mutable_c4()));
3764  }
3765  else
3766  {
3767  goto handle_uninterpreted;
3768  }
3769  if (input->ExpectAtEnd()) return true;
3770  break;
3771  }
3772 
3773  default:
3774  {
3775  handle_uninterpreted:
3776  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3777  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP)
3778  {
3779  return true;
3780  }
3781  DO_(::google::protobuf::internal::WireFormat::SkipField(
3782  input, tag, mutable_unknown_fields()));
3783  break;
3784  }
3785  }
3786  }
3787  return true;
3788 #undef DO_
3789  }
3790 
3791  void data_pose::SerializeWithCachedSizes(
3792  ::google::protobuf::io::CodedOutputStream *output) const
3793  {
3794  // required string name = 1;
3795  if (has_name())
3796  {
3797  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3798  this->name().data(), this->name().length(),
3799  ::google::protobuf::internal::WireFormat::SERIALIZE);
3800  ::google::protobuf::internal::WireFormatLite::WriteString(
3801  1, this->name(), output);
3802  }
3803 
3804  // required .mondschein.io.mbd.data.vector c1 = 2;
3805  if (has_c1())
3806  {
3807  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3808  2, this->c1(), output);
3809  }
3810 
3811  // required .mondschein.io.mbd.data.vector c2 = 3;
3812  if (has_c2())
3813  {
3814  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3815  3, this->c2(), output);
3816  }
3817 
3818  // required .mondschein.io.mbd.data.vector c3 = 4;
3819  if (has_c3())
3820  {
3821  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3822  4, this->c3(), output);
3823  }
3824 
3825  // required .mondschein.io.mbd.data.vector c4 = 5;
3826  if (has_c4())
3827  {
3828  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3829  5, this->c4(), output);
3830  }
3831 
3832  if (!unknown_fields().empty())
3833  {
3834  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3835  unknown_fields(), output);
3836  }
3837  }
3838 
3839  ::google::protobuf::uint8 *data_pose::SerializeWithCachedSizesToArray(
3840  ::google::protobuf::uint8 *target) const
3841  {
3842  // required string name = 1;
3843  if (has_name())
3844  {
3845  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3846  this->name().data(), this->name().length(),
3847  ::google::protobuf::internal::WireFormat::SERIALIZE);
3848  target =
3849  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3850  1, this->name(), target);
3851  }
3852 
3853  // required .mondschein.io.mbd.data.vector c1 = 2;
3854  if (has_c1())
3855  {
3856  target = ::google::protobuf::internal::WireFormatLite::
3857  WriteMessageNoVirtualToArray(
3858  2, this->c1(), target);
3859  }
3860 
3861  // required .mondschein.io.mbd.data.vector c2 = 3;
3862  if (has_c2())
3863  {
3864  target = ::google::protobuf::internal::WireFormatLite::
3865  WriteMessageNoVirtualToArray(
3866  3, this->c2(), target);
3867  }
3868 
3869  // required .mondschein.io.mbd.data.vector c3 = 4;
3870  if (has_c3())
3871  {
3872  target = ::google::protobuf::internal::WireFormatLite::
3873  WriteMessageNoVirtualToArray(
3874  4, this->c3(), target);
3875  }
3876 
3877  // required .mondschein.io.mbd.data.vector c4 = 5;
3878  if (has_c4())
3879  {
3880  target = ::google::protobuf::internal::WireFormatLite::
3881  WriteMessageNoVirtualToArray(
3882  5, this->c4(), target);
3883  }
3884 
3885  if (!unknown_fields().empty())
3886  {
3887  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3888  unknown_fields(), target);
3889  }
3890  return target;
3891  }
3892 
3893  int data_pose::ByteSize() const
3894  {
3895  int total_size = 0;
3896 
3897  if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
3898  {
3899  // required string name = 1;
3900  if (has_name())
3901  {
3902  total_size += 1 +
3903  ::google::protobuf::internal::WireFormatLite::StringSize(
3904  this->name());
3905  }
3906 
3907  // required .mondschein.io.mbd.data.vector c1 = 2;
3908  if (has_c1())
3909  {
3910  total_size += 1 +
3911  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3912  this->c1());
3913  }
3914 
3915  // required .mondschein.io.mbd.data.vector c2 = 3;
3916  if (has_c2())
3917  {
3918  total_size += 1 +
3919  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3920  this->c2());
3921  }
3922 
3923  // required .mondschein.io.mbd.data.vector c3 = 4;
3924  if (has_c3())
3925  {
3926  total_size += 1 +
3927  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3928  this->c3());
3929  }
3930 
3931  // required .mondschein.io.mbd.data.vector c4 = 5;
3932  if (has_c4())
3933  {
3934  total_size += 1 +
3935  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3936  this->c4());
3937  }
3938 
3939  }
3940  if (!unknown_fields().empty())
3941  {
3942  total_size +=
3943  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3944  unknown_fields());
3945  }
3946  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3947  _cached_size_ = total_size;
3948  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3949  return total_size;
3950  }
3951 
3952  void data_pose::MergeFrom(const ::google::protobuf::Message &from)
3953  {
3954  GOOGLE_CHECK_NE(&from, this);
3955  const data_pose *source =
3956  ::google::protobuf::internal::dynamic_cast_if_available<const data_pose *>(
3957  &from);
3958  if (source == NULL)
3959  {
3960  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3961  }
3962  else
3963  {
3964  MergeFrom(*source);
3965  }
3966  }
3967 
3968  void data_pose::MergeFrom(const data_pose &from)
3969  {
3970  GOOGLE_CHECK_NE(&from, this);
3971  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32)))
3972  {
3973  if (from.has_name())
3974  {
3975  set_name(from.name());
3976  }
3977  if (from.has_c1())
3978  {
3979  mutable_c1()->::mondschein::io::mbd::data_vector::MergeFrom(from.c1());
3980  }
3981  if (from.has_c2())
3982  {
3983  mutable_c2()->::mondschein::io::mbd::data_vector::MergeFrom(from.c2());
3984  }
3985  if (from.has_c3())
3986  {
3987  mutable_c3()->::mondschein::io::mbd::data_vector::MergeFrom(from.c3());
3988  }
3989  if (from.has_c4())
3990  {
3991  mutable_c4()->::mondschein::io::mbd::data_vector::MergeFrom(from.c4());
3992  }
3993  }
3994  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3995  }
3996 
3997  void data_pose::CopyFrom(const ::google::protobuf::Message &from)
3998  {
3999  if (&from == this) return;
4000  Clear();
4001  MergeFrom(from);
4002  }
4003 
4004  void data_pose::CopyFrom(const data_pose &from)
4005  {
4006  if (&from == this) return;
4007  Clear();
4008  MergeFrom(from);
4009  }
4010 
4011  bool data_pose::IsInitialized() const
4012  {
4013  if ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false;
4014 
4015  if (has_c1())
4016  {
4017  if (!this->c1().IsInitialized()) return false;
4018  }
4019  if (has_c2())
4020  {
4021  if (!this->c2().IsInitialized()) return false;
4022  }
4023  if (has_c3())
4024  {
4025  if (!this->c3().IsInitialized()) return false;
4026  }
4027  if (has_c4())
4028  {
4029  if (!this->c4().IsInitialized()) return false;
4030  }
4031  return true;
4032  }
4033 
4034  void data_pose::Swap(data_pose *other)
4035  {
4036  if (other != this)
4037  {
4038  std::swap(name_, other->name_);
4039  std::swap(c1_, other->c1_);
4040  std::swap(c2_, other->c2_);
4041  std::swap(c3_, other->c3_);
4042  std::swap(c4_, other->c4_);
4043  std::swap(_has_bits_[0], other->_has_bits_[0]);
4044  _unknown_fields_.Swap(&other->_unknown_fields_);
4045  std::swap(_cached_size_, other->_cached_size_);
4046  }
4047  }
4048 
4049  ::google::protobuf::Metadata data_pose::GetMetadata() const
4050  {
4051  protobuf_AssignDescriptorsOnce();
4052  ::google::protobuf::Metadata metadata;
4053  metadata.descriptor = data_pose_descriptor_;
4054  metadata.reflection = data_pose_reflection_;
4055  return metadata;
4056  }
4057 
4058 
4059  // -------------------------------------------------------------------
4060 
4061 #ifndef _MSC_VER
4062  const int data_texture::kNameFieldNumber;
4063  const int data_texture::kUnitFieldNumber;
4064  const int data_texture::kTextureFilterFieldNumber;
4065  const int data_texture::kAnisotropicFilterFieldNumber;
4066  const int data_texture::kImageFieldNumber;
4067  const int data_texture::kFormatFieldNumber;
4068 #endif // !_MSC_VER
4069 
4070  data_texture::data_texture()
4071  : ::google::protobuf::Message()
4072  {
4073  SharedCtor();
4074  }
4075 
4076  void data_texture::InitAsDefaultInstance()
4077  {
4078  }
4079 
4080  data_texture::data_texture(const data_texture &from)
4081  : ::google::protobuf::Message()
4082  {
4083  SharedCtor();
4084  MergeFrom(from);
4085  }
4086 
4087  void data_texture::SharedCtor()
4088  {
4089  _cached_size_ = 0;
4090  name_ = const_cast< ::std::string *>(&::google::protobuf::internal::kEmptyString);
4091  unit_ = 0u;
4092  texture_filter_ = 0;
4093  anisotropic_filter_ = 0u;
4094  image_ = const_cast< ::std::string *>(&::google::protobuf::internal::kEmptyString);
4095  format_ = const_cast< ::std::string *>(&::google::protobuf::internal::kEmptyString);
4096  ::memset(_has_bits_, 0, sizeof(_has_bits_));
4097  }
4098 
4099  data_texture::~data_texture()
4100  {
4101  SharedDtor();
4102  }
4103 
4104  void data_texture::SharedDtor()
4105  {
4106  if (name_ != &::google::protobuf::internal::kEmptyString)
4107  {
4108  delete name_;
4109  }
4110  if (image_ != &::google::protobuf::internal::kEmptyString)
4111  {
4112  delete image_;
4113  }
4114  if (format_ != &::google::protobuf::internal::kEmptyString)
4115  {
4116  delete format_;
4117  }
4118  if (this != default_instance_)
4119  {
4120  }
4121  }
4122 
4123  void data_texture::SetCachedSize(int size) const
4124  {
4125  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4126  _cached_size_ = size;
4127  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4128  }
4129  const ::google::protobuf::Descriptor *data_texture::descriptor()
4130  {
4131  protobuf_AssignDescriptorsOnce();
4132  return data_texture_descriptor_;
4133  }
4134 
4135  const data_texture &data_texture::default_instance()
4136  {
4137  if (default_instance_ == NULL) protobuf_AddDesc_mbd_2eproto();
4138  return *default_instance_;
4139  }
4140 
4141  data_texture *data_texture::default_instance_ = NULL;
4142 
4143  data_texture *data_texture::New() const
4144  {
4145  return new data_texture;
4146  }
4147 
4148  void data_texture::Clear()
4149  {
4150  if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
4151  {
4152  if (has_name())
4153  {
4154  if (name_ != &::google::protobuf::internal::kEmptyString)
4155  {
4156  name_->clear();
4157  }
4158  }
4159  unit_ = 0u;
4160  texture_filter_ = 0;
4161  anisotropic_filter_ = 0u;
4162  if (has_image())
4163  {
4164  if (image_ != &::google::protobuf::internal::kEmptyString)
4165  {
4166  image_->clear();
4167  }
4168  }
4169  if (has_format())
4170  {
4171  if (format_ != &::google::protobuf::internal::kEmptyString)
4172  {
4173  format_->clear();
4174  }
4175  }
4176  }
4177  ::memset(_has_bits_, 0, sizeof(_has_bits_));
4178  mutable_unknown_fields()->Clear();
4179  }
4180 
4181  bool data_texture::MergePartialFromCodedStream(
4182  ::google::protobuf::io::CodedInputStream *input)
4183  {
4184 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
4186  while ((tag = input->ReadTag()) != 0)
4187  {
4188  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag))
4189  {
4190  // required string name = 1;
4191  case 1:
4192  {
4193  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4194  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
4195  {
4196  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4197  input, this->mutable_name()));
4198  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4199  this->name().data(), this->name().length(),
4200  ::google::protobuf::internal::WireFormat::PARSE);
4201  }
4202  else
4203  {
4204  goto handle_uninterpreted;
4205  }
4206  if (input->ExpectTag(16)) goto parse_unit;
4207  break;
4208  }
4209 
4210  // required uint32 unit = 2;
4211  case 2:
4212  {
4213  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4214  ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT)
4215  {
4216  parse_unit:
4217  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4218  ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
4219  input, &unit_)));
4220  set_has_unit();
4221  }
4222  else
4223  {
4224  goto handle_uninterpreted;
4225  }
4226  if (input->ExpectTag(24)) goto parse_texture_filter;
4227  break;
4228  }
4229 
4230  // required .mondschein.io.mbd.texture_filtering_e texture_filter = 3;
4231  case 3:
4232  {
4233  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4234  ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT)
4235  {
4236  parse_texture_filter:
4237  int value;
4238  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4239  int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4240  input, &value)));
4241  if (::mondschein::io::mbd::texture_filtering_e_IsValid(value))
4242  {
4243  set_texture_attribs_filter(static_cast< ::mondschein::io::mbd::texture_filtering_e >(value));
4244  }
4245  else
4246  {
4247  mutable_unknown_fields()->AddVarint(3, value);
4248  }
4249  }
4250  else
4251  {
4252  goto handle_uninterpreted;
4253  }
4254  if (input->ExpectTag(32)) goto parse_anisotropic_filter;
4255  break;
4256  }
4257 
4258  // required uint32 anisotropic_filter = 4;
4259  case 4:
4260  {
4261  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4262  ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT)
4263  {
4264  parse_anisotropic_filter:
4265  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4266  ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
4267  input, &anisotropic_filter_)));
4268  set_has_anisotropic_filter();
4269  }
4270  else
4271  {
4272  goto handle_uninterpreted;
4273  }
4274  if (input->ExpectTag(42)) goto parse_image;
4275  break;
4276  }
4277 
4278  // required string image = 5;
4279  case 5:
4280  {
4281  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4282  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
4283  {
4284  parse_image:
4285  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4286  input, this->mutable_image()));
4287  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4288  this->image().data(), this->image().length(),
4289  ::google::protobuf::internal::WireFormat::PARSE);
4290  }
4291  else
4292  {
4293  goto handle_uninterpreted;
4294  }
4295  if (input->ExpectTag(50)) goto parse_format;
4296  break;
4297  }
4298 
4299  // optional string format = 6;
4300  case 6:
4301  {
4302  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4303  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
4304  {
4305  parse_format:
4306  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4307  input, this->mutable_format()));
4308  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4309  this->format().data(), this->format().length(),
4310  ::google::protobuf::internal::WireFormat::PARSE);
4311  }
4312  else
4313  {
4314  goto handle_uninterpreted;
4315  }
4316  if (input->ExpectAtEnd()) return true;
4317  break;
4318  }
4319 
4320  default:
4321  {
4322  handle_uninterpreted:
4323  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4324  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP)
4325  {
4326  return true;
4327  }
4328  DO_(::google::protobuf::internal::WireFormat::SkipField(
4329  input, tag, mutable_unknown_fields()));
4330  break;
4331  }
4332  }
4333  }
4334  return true;
4335 #undef DO_
4336  }
4337 
4338  void data_texture::SerializeWithCachedSizes(
4339  ::google::protobuf::io::CodedOutputStream *output) const
4340  {
4341  // required string name = 1;
4342  if (has_name())
4343  {
4344  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4345  this->name().data(), this->name().length(),
4346  ::google::protobuf::internal::WireFormat::SERIALIZE);
4347  ::google::protobuf::internal::WireFormatLite::WriteString(
4348  1, this->name(), output);
4349  }
4350 
4351  // required uint32 unit = 2;
4352  if (has_unit())
4353  {
4354  ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->unit(), output);
4355  }
4356 
4357  // required .mondschein.io.mbd.texture_filtering_e texture_filter = 3;
4358  if (has_texture_filter())
4359  {
4360  ::google::protobuf::internal::WireFormatLite::WriteEnum(
4361  3, this->texture_filter(), output);
4362  }
4363 
4364  // required uint32 anisotropic_filter = 4;
4365  if (has_anisotropic_filter())
4366  {
4367  ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->anisotropic_filter(), output);
4368  }
4369 
4370  // required string image = 5;
4371  if (has_image())
4372  {
4373  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4374  this->image().data(), this->image().length(),
4375  ::google::protobuf::internal::WireFormat::SERIALIZE);
4376  ::google::protobuf::internal::WireFormatLite::WriteString(
4377  5, this->image(), output);
4378  }
4379 
4380  // optional string format = 6;
4381  if (has_format())
4382  {
4383  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4384  this->format().data(), this->format().length(),
4385  ::google::protobuf::internal::WireFormat::SERIALIZE);
4386  ::google::protobuf::internal::WireFormatLite::WriteString(
4387  6, this->format(), output);
4388  }
4389 
4390  if (!unknown_fields().empty())
4391  {
4392  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4393  unknown_fields(), output);
4394  }
4395  }
4396 
4397  ::google::protobuf::uint8 *data_texture::SerializeWithCachedSizesToArray(
4398  ::google::protobuf::uint8 *target) const
4399  {
4400  // required string name = 1;
4401  if (has_name())
4402  {
4403  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4404  this->name().data(), this->name().length(),
4405  ::google::protobuf::internal::WireFormat::SERIALIZE);
4406  target =
4407  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4408  1, this->name(), target);
4409  }
4410 
4411  // required uint32 unit = 2;
4412  if (has_unit())
4413  {
4414  target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->unit(), target);
4415  }
4416 
4417  // required .mondschein.io.mbd.texture_filtering_e texture_filter = 3;
4418  if (has_texture_filter())
4419  {
4420  target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4421  3, this->texture_filter(), target);
4422  }
4423 
4424  // required uint32 anisotropic_filter = 4;
4425  if (has_anisotropic_filter())
4426  {
4427  target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->anisotropic_filter(), target);
4428  }
4429 
4430  // required string image = 5;
4431  if (has_image())
4432  {
4433  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4434  this->image().data(), this->image().length(),
4435  ::google::protobuf::internal::WireFormat::SERIALIZE);
4436  target =
4437  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4438  5, this->image(), target);
4439  }
4440 
4441  // optional string format = 6;
4442  if (has_format())
4443  {
4444  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4445  this->format().data(), this->format().length(),
4446  ::google::protobuf::internal::WireFormat::SERIALIZE);
4447  target =
4448  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4449  6, this->format(), target);
4450  }
4451 
4452  if (!unknown_fields().empty())
4453  {
4454  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4455  unknown_fields(), target);
4456  }
4457  return target;
4458  }
4459 
4460  int data_texture::ByteSize() const
4461  {
4462  int total_size = 0;
4463 
4464  if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
4465  {
4466  // required string name = 1;
4467  if (has_name())
4468  {
4469  total_size += 1 +
4470  ::google::protobuf::internal::WireFormatLite::StringSize(
4471  this->name());
4472  }
4473 
4474  // required uint32 unit = 2;
4475  if (has_unit())
4476  {
4477  total_size += 1 +
4478  ::google::protobuf::internal::WireFormatLite::UInt32Size(
4479  this->unit());
4480  }
4481 
4482  // required .mondschein.io.mbd.texture_filtering_e texture_filter = 3;
4483  if (has_texture_filter())
4484  {
4485  total_size += 1 +
4486  ::google::protobuf::internal::WireFormatLite::EnumSize(this->texture_filter());
4487  }
4488 
4489  // required uint32 anisotropic_filter = 4;
4490  if (has_anisotropic_filter())
4491  {
4492  total_size += 1 +
4493  ::google::protobuf::internal::WireFormatLite::UInt32Size(
4494  this->anisotropic_filter());
4495  }
4496 
4497  // required string image = 5;
4498  if (has_image())
4499  {
4500  total_size += 1 +
4501  ::google::protobuf::internal::WireFormatLite::StringSize(
4502  this->image());
4503  }
4504 
4505  // optional string format = 6;
4506  if (has_format())
4507  {
4508  total_size += 1 +
4509  ::google::protobuf::internal::WireFormatLite::StringSize(
4510  this->format());
4511  }
4512 
4513  }
4514  if (!unknown_fields().empty())
4515  {
4516  total_size +=
4517  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4518  unknown_fields());
4519  }
4520  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4521  _cached_size_ = total_size;
4522  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4523  return total_size;
4524  }
4525 
4526  void data_texture::MergeFrom(const ::google::protobuf::Message &from)
4527  {
4528  GOOGLE_CHECK_NE(&from, this);
4529  const data_texture *source =
4530  ::google::protobuf::internal::dynamic_cast_if_available<const data_texture *>(
4531  &from);
4532  if (source == NULL)
4533  {
4534  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4535  }
4536  else
4537  {
4538  MergeFrom(*source);
4539  }
4540  }
4541 
4542  void data_texture::MergeFrom(const data_texture &from)
4543  {
4544  GOOGLE_CHECK_NE(&from, this);
4545  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32)))
4546  {
4547  if (from.has_name())
4548  {
4549  set_name(from.name());
4550  }
4551  if (from.has_unit())
4552  {
4553  set_unit(from.unit());
4554  }
4555  if (from.has_texture_filter())
4556  {
4557  set_texture_attribs_filter(from.texture_filter());
4558  }
4559  if (from.has_anisotropic_filter())
4560  {
4561  set_anisotropic_filter(from.anisotropic_filter());
4562  }
4563  if (from.has_image())
4564  {
4565  set_image(from.image());
4566  }
4567  if (from.has_format())
4568  {
4569  set_format(from.format());
4570  }
4571  }
4572  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
4573  }
4574 
4575  void data_texture::CopyFrom(const ::google::protobuf::Message &from)
4576  {
4577  if (&from == this) return;
4578  Clear();
4579  MergeFrom(from);
4580  }
4581 
4582  void data_texture::CopyFrom(const data_texture &from)
4583  {
4584  if (&from == this) return;
4585  Clear();
4586  MergeFrom(from);
4587  }
4588 
4589  bool data_texture::IsInitialized() const
4590  {
4591  if ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false;
4592 
4593  return true;
4594  }
4595 
4596  void data_texture::Swap(data_texture *other)
4597  {
4598  if (other != this)
4599  {
4600  std::swap(name_, other->name_);
4601  std::swap(unit_, other->unit_);
4602  std::swap(texture_filter_, other->texture_filter_);
4603  std::swap(anisotropic_filter_, other->anisotropic_filter_);
4604  std::swap(image_, other->image_);
4605  std::swap(format_, other->format_);
4606  std::swap(_has_bits_[0], other->_has_bits_[0]);
4607  _unknown_fields_.Swap(&other->_unknown_fields_);
4608  std::swap(_cached_size_, other->_cached_size_);
4609  }
4610  }
4611 
4612  ::google::protobuf::Metadata data_texture::GetMetadata() const
4613  {
4614  protobuf_AssignDescriptorsOnce();
4615  ::google::protobuf::Metadata metadata;
4616  metadata.descriptor = data_texture_descriptor_;
4617  metadata.reflection = data_texture_reflection_;
4618  return metadata;
4619  }
4620 
4621 
4622  // -------------------------------------------------------------------
4623 
4624 #ifndef _MSC_VER
4625  const int data_scenegraph_attribs_tuple::kSrcFieldNumber;
4626  const int data_scenegraph_attribs_tuple::kDstFieldNumber;
4627 #endif // !_MSC_VER
4628 
4629  data_scenegraph_attribs_tuple::data_scenegraph_attribs_tuple()
4630  : ::google::protobuf::Message()
4631  {
4632  SharedCtor();
4633  }
4634 
4635  void data_scenegraph_attribs_tuple::InitAsDefaultInstance()
4636  {
4637  }
4638 
4639  data_scenegraph_attribs_tuple::data_scenegraph_attribs_tuple(const data_scenegraph_attribs_tuple &from)
4640  : ::google::protobuf::Message()
4641  {
4642  SharedCtor();
4643  MergeFrom(from);
4644  }
4645 
4646  void data_scenegraph_attribs_tuple::SharedCtor()
4647  {
4648  _cached_size_ = 0;
4649  src_ = 0u;
4650  dst_ = 0u;
4651  ::memset(_has_bits_, 0, sizeof(_has_bits_));
4652  }
4653 
4654  data_scenegraph_attribs_tuple::~data_scenegraph_attribs_tuple()
4655  {
4656  SharedDtor();
4657  }
4658 
4659  void data_scenegraph_attribs_tuple::SharedDtor()
4660  {
4661  if (this != default_instance_)
4662  {
4663  }
4664  }
4665 
4666  void data_scenegraph_attribs_tuple::SetCachedSize(int size) const
4667  {
4668  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4669  _cached_size_ = size;
4670  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4671  }
4672  const ::google::protobuf::Descriptor *data_scenegraph_attribs_tuple::descriptor()
4673  {
4674  protobuf_AssignDescriptorsOnce();
4675  return data_scenegraph_attribs_tuple_descriptor_;
4676  }
4677 
4678  const data_scenegraph_attribs_tuple &data_scenegraph_attribs_tuple::default_instance()
4679  {
4680  if (default_instance_ == NULL) protobuf_AddDesc_mbd_2eproto();
4681  return *default_instance_;
4682  }
4683 
4684  data_scenegraph_attribs_tuple *data_scenegraph_attribs_tuple::default_instance_ = NULL;
4685 
4686  data_scenegraph_attribs_tuple *data_scenegraph_attribs_tuple::New() const
4687  {
4688  return new data_scenegraph_attribs_tuple;
4689  }
4690 
4691  void data_scenegraph_attribs_tuple::Clear()
4692  {
4693  if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
4694  {
4695  src_ = 0u;
4696  dst_ = 0u;
4697  }
4698  ::memset(_has_bits_, 0, sizeof(_has_bits_));
4699  mutable_unknown_fields()->Clear();
4700  }
4701 
4702  bool data_scenegraph_attribs_tuple::MergePartialFromCodedStream(
4703  ::google::protobuf::io::CodedInputStream *input)
4704  {
4705 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
4707  while ((tag = input->ReadTag()) != 0)
4708  {
4709  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag))
4710  {
4711  // required uint32 src = 1;
4712  case 1:
4713  {
4714  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4715  ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT)
4716  {
4717  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4718  ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
4719  input, &src_)));
4720  set_has_src();
4721  }
4722  else
4723  {
4724  goto handle_uninterpreted;
4725  }
4726  if (input->ExpectTag(16)) goto parse_dst;
4727  break;
4728  }
4729 
4730  // required uint32 dst = 2;
4731  case 2:
4732  {
4733  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4734  ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT)
4735  {
4736  parse_dst:
4737  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4738  ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
4739  input, &dst_)));
4740  set_has_dst();
4741  }
4742  else
4743  {
4744  goto handle_uninterpreted;
4745  }
4746  if (input->ExpectAtEnd()) return true;
4747  break;
4748  }
4749 
4750  default:
4751  {
4752  handle_uninterpreted:
4753  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4754  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP)
4755  {
4756  return true;
4757  }
4758  DO_(::google::protobuf::internal::WireFormat::SkipField(
4759  input, tag, mutable_unknown_fields()));
4760  break;
4761  }
4762  }
4763  }
4764  return true;
4765 #undef DO_
4766  }
4767 
4768  void data_scenegraph_attribs_tuple::SerializeWithCachedSizes(
4769  ::google::protobuf::io::CodedOutputStream *output) const
4770  {
4771  // required uint32 src = 1;
4772  if (has_src())
4773  {
4774  ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->src(), output);
4775  }
4776 
4777  // required uint32 dst = 2;
4778  if (has_dst())
4779  {
4780  ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->dst(), output);
4781  }
4782 
4783  if (!unknown_fields().empty())
4784  {
4785  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4786  unknown_fields(), output);
4787  }
4788  }
4789 
4790  ::google::protobuf::uint8 *data_scenegraph_attribs_tuple::SerializeWithCachedSizesToArray(
4791  ::google::protobuf::uint8 *target) const
4792  {
4793  // required uint32 src = 1;
4794  if (has_src())
4795  {
4796  target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->src(), target);
4797  }
4798 
4799  // required uint32 dst = 2;
4800  if (has_dst())
4801  {
4802  target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->dst(), target);
4803  }
4804 
4805  if (!unknown_fields().empty())
4806  {
4807  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4808  unknown_fields(), target);
4809  }
4810  return target;
4811  }
4812 
4813  int data_scenegraph_attribs_tuple::ByteSize() const
4814  {
4815  int total_size = 0;
4816 
4817  if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
4818  {
4819  // required uint32 src = 1;
4820  if (has_src())
4821  {
4822  total_size += 1 +
4823  ::google::protobuf::internal::WireFormatLite::UInt32Size(
4824  this->src());
4825  }
4826 
4827  // required uint32 dst = 2;
4828  if (has_dst())
4829  {
4830  total_size += 1 +
4831  ::google::protobuf::internal::WireFormatLite::UInt32Size(
4832  this->dst());
4833  }
4834 
4835  }
4836  if (!unknown_fields().empty())
4837  {
4838  total_size +=
4839  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4840  unknown_fields());
4841  }
4842  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4843  _cached_size_ = total_size;
4844  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4845  return total_size;
4846  }
4847 
4848  void data_scenegraph_attribs_tuple::MergeFrom(const ::google::protobuf::Message &from)
4849  {
4850  GOOGLE_CHECK_NE(&from, this);
4851  const data_scenegraph_attribs_tuple *source =
4852  ::google::protobuf::internal::dynamic_cast_if_available<const data_scenegraph_attribs_tuple *>(
4853  &from);
4854  if (source == NULL)
4855  {
4856  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4857  }
4858  else
4859  {
4860  MergeFrom(*source);
4861  }
4862  }
4863 
4864  void data_scenegraph_attribs_tuple::MergeFrom(const data_scenegraph_attribs_tuple &from)
4865  {
4866  GOOGLE_CHECK_NE(&from, this);
4867  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32)))
4868  {
4869  if (from.has_src())
4870  {
4871  set_src(from.src());
4872  }
4873  if (from.has_dst())
4874  {
4875  set_dst(from.dst());
4876  }
4877  }
4878  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
4879  }
4880 
4881  void data_scenegraph_attribs_tuple::CopyFrom(const ::google::protobuf::Message &from)
4882  {
4883  if (&from == this) return;
4884  Clear();
4885  MergeFrom(from);
4886  }
4887 
4888  void data_scenegraph_attribs_tuple::CopyFrom(const data_scenegraph_attribs_tuple &from)
4889  {
4890  if (&from == this) return;
4891  Clear();
4892  MergeFrom(from);
4893  }
4894 
4895  bool data_scenegraph_attribs_tuple::IsInitialized() const
4896  {
4897  if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
4898 
4899  return true;
4900  }
4901 
4902  void data_scenegraph_attribs_tuple::Swap(data_scenegraph_attribs_tuple *other)
4903  {
4904  if (other != this)
4905  {
4906  std::swap(src_, other->src_);
4907  std::swap(dst_, other->dst_);
4908  std::swap(_has_bits_[0], other->_has_bits_[0]);
4909  _unknown_fields_.Swap(&other->_unknown_fields_);
4910  std::swap(_cached_size_, other->_cached_size_);
4911  }
4912  }
4913 
4914  ::google::protobuf::Metadata data_scenegraph_attribs_tuple::GetMetadata() const
4915  {
4916  protobuf_AssignDescriptorsOnce();
4917  ::google::protobuf::Metadata metadata;
4918  metadata.descriptor = data_scenegraph_attribs_tuple_descriptor_;
4919  metadata.reflection = data_scenegraph_attribs_tuple_reflection_;
4920  return metadata;
4921  }
4922 
4923 
4924  // -------------------------------------------------------------------
4925 
4926 #ifndef _MSC_VER
4927  const int data_scenegraph::kNameFieldNumber;
4928  const int data_scenegraph::kNodesFieldNumber;
4929  const int data_scenegraph::kEdgesFieldNumber;
4930 #endif // !_MSC_VER
4931 
4932  data_scenegraph::data_scenegraph()
4933  : ::google::protobuf::Message()
4934  {
4935  SharedCtor();
4936  }
4937 
4938  void data_scenegraph::InitAsDefaultInstance()
4939  {
4940  }
4941 
4942  data_scenegraph::data_scenegraph(const data_scenegraph &from)
4943  : ::google::protobuf::Message()
4944  {
4945  SharedCtor();
4946  MergeFrom(from);
4947  }
4948 
4949  void data_scenegraph::SharedCtor()
4950  {
4951  _cached_size_ = 0;
4952  name_ = const_cast< ::std::string *>(&::google::protobuf::internal::kEmptyString);
4953  ::memset(_has_bits_, 0, sizeof(_has_bits_));
4954  }
4955 
4956  data_scenegraph::~data_scenegraph()
4957  {
4958  SharedDtor();
4959  }
4960 
4961  void data_scenegraph::SharedDtor()
4962  {
4963  if (name_ != &::google::protobuf::internal::kEmptyString)
4964  {
4965  delete name_;
4966  }
4967  if (this != default_instance_)
4968  {
4969  }
4970  }
4971 
4972  void data_scenegraph::SetCachedSize(int size) const
4973  {
4974  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4975  _cached_size_ = size;
4976  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4977  }
4978  const ::google::protobuf::Descriptor *data_scenegraph::descriptor()
4979  {
4980  protobuf_AssignDescriptorsOnce();
4981  return data_scenegraph_descriptor_;
4982  }
4983 
4984  const data_scenegraph &data_scenegraph::default_instance()
4985  {
4986  if (default_instance_ == NULL) protobuf_AddDesc_mbd_2eproto();
4987  return *default_instance_;
4988  }
4989 
4990  data_scenegraph *data_scenegraph::default_instance_ = NULL;
4991 
4992  data_scenegraph *data_scenegraph::New() const
4993  {
4994  return new data_scenegraph;
4995  }
4996 
4997  void data_scenegraph::Clear()
4998  {
4999  if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
5000  {
5001  if (has_name())
5002  {
5003  if (name_ != &::google::protobuf::internal::kEmptyString)
5004  {
5005  name_->clear();
5006  }
5007  }
5008  }
5009  nodes_.Clear();
5010  edges_.Clear();
5011  ::memset(_has_bits_, 0, sizeof(_has_bits_));
5012  mutable_unknown_fields()->Clear();
5013  }
5014 
5015  bool data_scenegraph::MergePartialFromCodedStream(
5016  ::google::protobuf::io::CodedInputStream *input)
5017  {
5018 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
5020  while ((tag = input->ReadTag()) != 0)
5021  {
5022  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag))
5023  {
5024  // required string name = 1;
5025  case 1:
5026  {
5027  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5028  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
5029  {
5030  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5031  input, this->mutable_name()));
5032  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5033  this->name().data(), this->name().length(),
5034  ::google::protobuf::internal::WireFormat::PARSE);
5035  }
5036  else
5037  {
5038  goto handle_uninterpreted;
5039  }
5040  if (input->ExpectTag(18)) goto parse_nodes;
5041  break;
5042  }
5043 
5044  // repeated string nodes = 2;
5045  case 2:
5046  {
5047  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5048  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
5049  {
5050  parse_nodes:
5051  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5052  input, this->add_nodes()));
5053  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5054  this->nodes(this->nodes_size() - 1).data(),
5055  this->nodes(this->nodes_size() - 1).length(),
5056  ::google::protobuf::internal::WireFormat::PARSE);
5057  }
5058  else
5059  {
5060  goto handle_uninterpreted;
5061  }
5062  if (input->ExpectTag(18)) goto parse_nodes;
5063  if (input->ExpectTag(26)) goto parse_edges;
5064  break;
5065  }
5066 
5067  // repeated .mondschein.io.mbd.data.scenegraph.tuple edges = 3;
5068  case 3:
5069  {
5070  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5071  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
5072  {
5073  parse_edges:
5074  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5075  input, add_edges()));
5076  }
5077  else
5078  {
5079  goto handle_uninterpreted;
5080  }
5081  if (input->ExpectTag(26)) goto parse_edges;
5082  if (input->ExpectAtEnd()) return true;
5083  break;
5084  }
5085 
5086  default:
5087  {
5088  handle_uninterpreted:
5089  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5090  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP)
5091  {
5092  return true;
5093  }
5094  DO_(::google::protobuf::internal::WireFormat::SkipField(
5095  input, tag, mutable_unknown_fields()));
5096  break;
5097  }
5098  }
5099  }
5100  return true;
5101 #undef DO_
5102  }
5103 
5104  void data_scenegraph::SerializeWithCachedSizes(
5105  ::google::protobuf::io::CodedOutputStream *output) const
5106  {
5107  // required string name = 1;
5108  if (has_name())
5109  {
5110  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5111  this->name().data(), this->name().length(),
5112  ::google::protobuf::internal::WireFormat::SERIALIZE);
5113  ::google::protobuf::internal::WireFormatLite::WriteString(
5114  1, this->name(), output);
5115  }
5116 
5117  // repeated string nodes = 2;
5118  for (int i = 0; i < this->nodes_size(); i++)
5119  {
5120  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5121  this->nodes(i).data(), this->nodes(i).length(),
5122  ::google::protobuf::internal::WireFormat::SERIALIZE);
5123  ::google::protobuf::internal::WireFormatLite::WriteString(
5124  2, this->nodes(i), output);
5125  }
5126 
5127  // repeated .mondschein.io.mbd.data.scenegraph.tuple edges = 3;
5128  for (int i = 0; i < this->edges_size(); i++)
5129  {
5130  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5131  3, this->edges(i), output);
5132  }
5133 
5134  if (!unknown_fields().empty())
5135  {
5136  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5137  unknown_fields(), output);
5138  }
5139  }
5140 
5141  ::google::protobuf::uint8 *data_scenegraph::SerializeWithCachedSizesToArray(
5142  ::google::protobuf::uint8 *target) const
5143  {
5144  // required string name = 1;
5145  if (has_name())
5146  {
5147  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5148  this->name().data(), this->name().length(),
5149  ::google::protobuf::internal::WireFormat::SERIALIZE);
5150  target =
5151  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5152  1, this->name(), target);
5153  }
5154 
5155  // repeated string nodes = 2;
5156  for (int i = 0; i < this->nodes_size(); i++)
5157  {
5158  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5159  this->nodes(i).data(), this->nodes(i).length(),
5160  ::google::protobuf::internal::WireFormat::SERIALIZE);
5161  target = ::google::protobuf::internal::WireFormatLite::
5162  WriteStringToArray(2, this->nodes(i), target);
5163  }
5164 
5165  // repeated .mondschein.io.mbd.data.scenegraph.tuple edges = 3;
5166  for (int i = 0; i < this->edges_size(); i++)
5167  {
5168  target = ::google::protobuf::internal::WireFormatLite::
5169  WriteMessageNoVirtualToArray(
5170  3, this->edges(i), target);
5171  }
5172 
5173  if (!unknown_fields().empty())
5174  {
5175  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5176  unknown_fields(), target);
5177  }
5178  return target;
5179  }
5180 
5181  int data_scenegraph::ByteSize() const
5182  {
5183  int total_size = 0;
5184 
5185  if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
5186  {
5187  // required string name = 1;
5188  if (has_name())
5189  {
5190  total_size += 1 +
5191  ::google::protobuf::internal::WireFormatLite::StringSize(
5192  this->name());
5193  }
5194 
5195  }
5196  // repeated string nodes = 2;
5197  total_size += 1 * this->nodes_size();
5198  for (int i = 0; i < this->nodes_size(); i++)
5199  {
5200  total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
5201  this->nodes(i));
5202  }
5203 
5204  // repeated .mondschein.io.mbd.data.scenegraph.tuple edges = 3;
5205  total_size += 1 * this->edges_size();
5206  for (int i = 0; i < this->edges_size(); i++)
5207  {
5208  total_size +=
5209  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5210  this->edges(i));
5211  }
5212 
5213  if (!unknown_fields().empty())
5214  {
5215  total_size +=
5216  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5217  unknown_fields());
5218  }
5219  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5220  _cached_size_ = total_size;
5221  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5222  return total_size;
5223  }
5224 
5225  void data_scenegraph::MergeFrom(const ::google::protobuf::Message &from)
5226  {
5227  GOOGLE_CHECK_NE(&from, this);
5228  const data_scenegraph *source =
5229  ::google::protobuf::internal::dynamic_cast_if_available<const data_scenegraph *>(
5230  &from);
5231  if (source == NULL)
5232  {
5233  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5234  }
5235  else
5236  {
5237  MergeFrom(*source);
5238  }
5239  }
5240 
5241  void data_scenegraph::MergeFrom(const data_scenegraph &from)
5242  {
5243  GOOGLE_CHECK_NE(&from, this);
5244  nodes_.MergeFrom(from.nodes_);
5245  edges_.MergeFrom(from.edges_);
5246  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32)))
5247  {
5248  if (from.has_name())
5249  {
5250  set_name(from.name());
5251  }
5252  }
5253  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
5254  }
5255 
5256  void data_scenegraph::CopyFrom(const ::google::protobuf::Message &from)
5257  {
5258  if (&from == this) return;
5259  Clear();
5260  MergeFrom(from);
5261  }
5262 
5263  void data_scenegraph::CopyFrom(const data_scenegraph &from)
5264  {
5265  if (&from == this) return;
5266  Clear();
5267  MergeFrom(from);
5268  }
5269 
5270  bool data_scenegraph::IsInitialized() const
5271  {
5272  if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
5273 
5274  for (int i = 0; i < edges_size(); i++)
5275  {
5276  if (!this->edges(i).IsInitialized()) return false;
5277  }
5278  return true;
5279  }
5280 
5281  void data_scenegraph::Swap(data_scenegraph *other)
5282  {
5283  if (other != this)
5284  {
5285  std::swap(name_, other->name_);
5286  nodes_.Swap(&other->nodes_);
5287  edges_.Swap(&other->edges_);
5288  std::swap(_has_bits_[0], other->_has_bits_[0]);
5289  _unknown_fields_.Swap(&other->_unknown_fields_);
5290  std::swap(_cached_size_, other->_cached_size_);
5291  }
5292  }
5293 
5294  ::google::protobuf::Metadata data_scenegraph::GetMetadata() const
5295  {
5296  protobuf_AssignDescriptorsOnce();
5297  ::google::protobuf::Metadata metadata;
5298  metadata.descriptor = data_scenegraph_descriptor_;
5299  metadata.reflection = data_scenegraph_reflection_;
5300  return metadata;
5301  }
5302 
5303 
5304  // -------------------------------------------------------------------
5305 
5306 #ifndef _MSC_VER
5307  const int data_beziercurve::kNameFieldNumber;
5308  const int data_beziercurve::kPointsFieldNumber;
5309  const int data_beziercurve::kNormalsFieldNumber;
5310 #endif // !_MSC_VER
5311 
5312  data_beziercurve::data_beziercurve()
5313  : ::google::protobuf::Message()
5314  {
5315  SharedCtor();
5316  }
5317 
5318  void data_beziercurve::InitAsDefaultInstance()
5319  {
5320  }
5321 
5322  data_beziercurve::data_beziercurve(const data_beziercurve &from)
5323  : ::google::protobuf::Message()
5324  {
5325  SharedCtor();
5326  MergeFrom(from);
5327  }
5328 
5329  void data_beziercurve::SharedCtor()
5330  {
5331  _cached_size_ = 0;
5332  name_ = const_cast< ::std::string *>(&::google::protobuf::internal::kEmptyString);
5333  normals_ = 0;
5334  ::memset(_has_bits_, 0, sizeof(_has_bits_));
5335  }
5336 
5337  data_beziercurve::~data_beziercurve()
5338  {
5339  SharedDtor();
5340  }
5341 
5342  void data_beziercurve::SharedDtor()
5343  {
5344  if (name_ != &::google::protobuf::internal::kEmptyString)
5345  {
5346  delete name_;
5347  }
5348  if (this != default_instance_)
5349  {
5350  }
5351  }
5352 
5353  void data_beziercurve::SetCachedSize(int size) const
5354  {
5355  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5356  _cached_size_ = size;
5357  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5358  }
5359  const ::google::protobuf::Descriptor *data_beziercurve::descriptor()
5360  {
5361  protobuf_AssignDescriptorsOnce();
5362  return data_beziercurve_descriptor_;
5363  }
5364 
5365  const data_beziercurve &data_beziercurve::default_instance()
5366  {
5367  if (default_instance_ == NULL) protobuf_AddDesc_mbd_2eproto();
5368  return *default_instance_;
5369  }
5370 
5371  data_beziercurve *data_beziercurve::default_instance_ = NULL;
5372 
5373  data_beziercurve *data_beziercurve::New() const
5374  {
5375  return new data_beziercurve;
5376  }
5377 
5378  void data_beziercurve::Clear()
5379  {
5380  if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
5381  {
5382  if (has_name())
5383  {
5384  if (name_ != &::google::protobuf::internal::kEmptyString)
5385  {
5386  name_->clear();
5387  }
5388  }
5389  normals_ = 0;
5390  }
5391  points_.Clear();
5392  ::memset(_has_bits_, 0, sizeof(_has_bits_));
5393  mutable_unknown_fields()->Clear();
5394  }
5395 
5396  bool data_beziercurve::MergePartialFromCodedStream(
5397  ::google::protobuf::io::CodedInputStream *input)
5398  {
5399 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
5401  while ((tag = input->ReadTag()) != 0)
5402  {
5403  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag))
5404  {
5405  // required string name = 1;
5406  case 1:
5407  {
5408  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5409  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
5410  {
5411  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5412  input, this->mutable_name()));
5413  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5414  this->name().data(), this->name().length(),
5415  ::google::protobuf::internal::WireFormat::PARSE);
5416  }
5417  else
5418  {
5419  goto handle_uninterpreted;
5420  }
5421  if (input->ExpectTag(18)) goto parse_points;
5422  break;
5423  }
5424 
5425  // repeated .mondschein.io.mbd.data.vector points = 2;
5426  case 2:
5427  {
5428  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5429  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
5430  {
5431  parse_points:
5432  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5433  input, add_points()));
5434  }
5435  else
5436  {
5437  goto handle_uninterpreted;
5438  }
5439  if (input->ExpectTag(18)) goto parse_points;
5440  if (input->ExpectTag(24)) goto parse_normals;
5441  break;
5442  }
5443 
5444  // optional .mondschein.io.mbd.normal_e normals = 3;
5445  case 3:
5446  {
5447  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5448  ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT)
5449  {
5450  parse_normals:
5451  int value;
5452  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5453  int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5454  input, &value)));
5455  if (::mondschein::io::mbd::normal_e_IsValid(value))
5456  {
5457  set_normals(static_cast< ::mondschein::io::mbd::normal_e >(value));
5458  }
5459  else
5460  {
5461  mutable_unknown_fields()->AddVarint(3, value);
5462  }
5463  }
5464  else
5465  {
5466  goto handle_uninterpreted;
5467  }
5468  if (input->ExpectAtEnd()) return true;
5469  break;
5470  }
5471 
5472  default:
5473  {
5474  handle_uninterpreted:
5475  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5476  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP)
5477  {
5478  return true;
5479  }
5480  DO_(::google::protobuf::internal::WireFormat::SkipField(
5481  input, tag, mutable_unknown_fields()));
5482  break;
5483  }
5484  }
5485  }
5486  return true;
5487 #undef DO_
5488  }
5489 
5490  void data_beziercurve::SerializeWithCachedSizes(
5491  ::google::protobuf::io::CodedOutputStream *output) const
5492  {
5493  // required string name = 1;
5494  if (has_name())
5495  {
5496  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5497  this->name().data(), this->name().length(),
5498  ::google::protobuf::internal::WireFormat::SERIALIZE);
5499  ::google::protobuf::internal::WireFormatLite::WriteString(
5500  1, this->name(), output);
5501  }
5502 
5503  // repeated .mondschein.io.mbd.data.vector points = 2;
5504  for (int i = 0; i < this->points_size(); i++)
5505  {
5506  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5507  2, this->points(i), output);
5508  }
5509 
5510  // optional .mondschein.io.mbd.normal_e normals = 3;
5511  if (has_normals())
5512  {
5513  ::google::protobuf::internal::WireFormatLite::WriteEnum(
5514  3, this->normals(), output);
5515  }
5516 
5517  if (!unknown_fields().empty())
5518  {
5519  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5520  unknown_fields(), output);
5521  }
5522  }
5523 
5524  ::google::protobuf::uint8 *data_beziercurve::SerializeWithCachedSizesToArray(
5525  ::google::protobuf::uint8 *target) const
5526  {
5527  // required string name = 1;
5528  if (has_name())
5529  {
5530  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5531  this->name().data(), this->name().length(),
5532  ::google::protobuf::internal::WireFormat::SERIALIZE);
5533  target =
5534  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5535  1, this->name(), target);
5536  }
5537 
5538  // repeated .mondschein.io.mbd.data.vector points = 2;
5539  for (int i = 0; i < this->points_size(); i++)
5540  {
5541  target = ::google::protobuf::internal::WireFormatLite::
5542  WriteMessageNoVirtualToArray(
5543  2, this->points(i), target);
5544  }
5545 
5546  // optional .mondschein.io.mbd.normal_e normals = 3;
5547  if (has_normals())
5548  {
5549  target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5550  3, this->normals(), target);
5551  }
5552 
5553  if (!unknown_fields().empty())
5554  {
5555  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5556  unknown_fields(), target);
5557  }
5558  return target;
5559  }
5560 
5561  int data_beziercurve::ByteSize() const
5562  {
5563  int total_size = 0;
5564 
5565  if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
5566  {
5567  // required string name = 1;
5568  if (has_name())
5569  {
5570  total_size += 1 +
5571  ::google::protobuf::internal::WireFormatLite::StringSize(
5572  this->name());
5573  }
5574 
5575  // optional .mondschein.io.mbd.normal_e normals = 3;
5576  if (has_normals())
5577  {
5578  total_size += 1 +
5579  ::google::protobuf::internal::WireFormatLite::EnumSize(this->normals());
5580  }
5581 
5582  }
5583  // repeated .mondschein.io.mbd.data.vector points = 2;
5584  total_size += 1 * this->points_size();
5585  for (int i = 0; i < this->points_size(); i++)
5586  {
5587  total_size +=
5588  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5589  this->points(i));
5590  }
5591 
5592  if (!unknown_fields().empty())
5593  {
5594  total_size +=
5595  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5596  unknown_fields());
5597  }
5598  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5599  _cached_size_ = total_size;
5600  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5601  return total_size;
5602  }
5603 
5604  void data_beziercurve::MergeFrom(const ::google::protobuf::Message &from)
5605  {
5606  GOOGLE_CHECK_NE(&from, this);
5607  const data_beziercurve *source =
5608  ::google::protobuf::internal::dynamic_cast_if_available<const data_beziercurve *>(
5609  &from);
5610  if (source == NULL)
5611  {
5612  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5613  }
5614  else
5615  {
5616  MergeFrom(*source);
5617  }
5618  }
5619 
5620  void data_beziercurve::MergeFrom(const data_beziercurve &from)
5621  {
5622  GOOGLE_CHECK_NE(&from, this);
5623  points_.MergeFrom(from.points_);
5624  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32)))
5625  {
5626  if (from.has_name())
5627  {
5628  set_name(from.name());
5629  }
5630  if (from.has_normals())
5631  {
5632  set_normals(from.normals());
5633  }
5634  }
5635  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
5636  }
5637 
5638  void data_beziercurve::CopyFrom(const ::google::protobuf::Message &from)
5639  {
5640  if (&from == this) return;
5641  Clear();
5642  MergeFrom(from);
5643  }
5644 
5645  void data_beziercurve::CopyFrom(const data_beziercurve &from)
5646  {
5647  if (&from == this) return;
5648  Clear();
5649  MergeFrom(from);
5650  }
5651 
5652  bool data_beziercurve::IsInitialized() const
5653  {
5654  if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
5655 
5656  for (int i = 0; i < points_size(); i++)
5657  {
5658  if (!this->points(i).IsInitialized()) return false;
5659  }
5660  return true;
5661  }
5662 
5663  void data_beziercurve::Swap(data_beziercurve *other)
5664  {
5665  if (other != this)
5666  {
5667  std::swap(name_, other->name_);
5668  points_.Swap(&other->points_);
5669  std::swap(normals_, other->normals_);
5670  std::swap(_has_bits_[0], other->_has_bits_[0]);
5671  _unknown_fields_.Swap(&other->_unknown_fields_);
5672  std::swap(_cached_size_, other->_cached_size_);
5673  }
5674  }
5675 
5676  ::google::protobuf::Metadata data_beziercurve::GetMetadata() const
5677  {
5678  protobuf_AssignDescriptorsOnce();
5679  ::google::protobuf::Metadata metadata;
5680  metadata.descriptor = data_beziercurve_descriptor_;
5681  metadata.reflection = data_beziercurve_reflection_;
5682  return metadata;
5683  }
5684 
5685 
5686  // -------------------------------------------------------------------
5687 
5688 #ifndef _MSC_VER
5689  const int data_bezierpatch::kNameFieldNumber;
5690  const int data_bezierpatch::kCurvesFieldNumber;
5691  const int data_bezierpatch::kNormalsFieldNumber;
5692 #endif // !_MSC_VER
5693 
5694  data_bezierpatch::data_bezierpatch()
5695  : ::google::protobuf::Message()
5696  {
5697  SharedCtor();
5698  }
5699 
5700  void data_bezierpatch::InitAsDefaultInstance()
5701  {
5702  }
5703 
5704  data_bezierpatch::data_bezierpatch(const data_bezierpatch &from)
5705  : ::google::protobuf::Message()
5706  {
5707  SharedCtor();
5708  MergeFrom(from);
5709  }
5710 
5711  void data_bezierpatch::SharedCtor()
5712  {
5713  _cached_size_ = 0;
5714  name_ = const_cast< ::std::string *>(&::google::protobuf::internal::kEmptyString);
5715  normals_ = 0;
5716  ::memset(_has_bits_, 0, sizeof(_has_bits_));
5717  }
5718 
5719  data_bezierpatch::~data_bezierpatch()
5720  {
5721  SharedDtor();
5722  }
5723 
5724  void data_bezierpatch::SharedDtor()
5725  {
5726  if (name_ != &::google::protobuf::internal::kEmptyString)
5727  {
5728  delete name_;
5729  }
5730  if (this != default_instance_)
5731  {
5732  }
5733  }
5734 
5735  void data_bezierpatch::SetCachedSize(int size) const
5736  {
5737  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5738  _cached_size_ = size;
5739  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5740  }
5741  const ::google::protobuf::Descriptor *data_bezierpatch::descriptor()
5742  {
5743  protobuf_AssignDescriptorsOnce();
5744  return data_bezierpatch_descriptor_;
5745  }
5746 
5747  const data_bezierpatch &data_bezierpatch::default_instance()
5748  {
5749  if (default_instance_ == NULL) protobuf_AddDesc_mbd_2eproto();
5750  return *default_instance_;
5751  }
5752 
5753  data_bezierpatch *data_bezierpatch::default_instance_ = NULL;
5754 
5755  data_bezierpatch *data_bezierpatch::New() const
5756  {
5757  return new data_bezierpatch;
5758  }
5759 
5760  void data_bezierpatch::Clear()
5761  {
5762  if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
5763  {
5764  if (has_name())
5765  {
5766  if (name_ != &::google::protobuf::internal::kEmptyString)
5767  {
5768  name_->clear();
5769  }
5770  }
5771  normals_ = 0;
5772  }
5773  curves_.Clear();
5774  ::memset(_has_bits_, 0, sizeof(_has_bits_));
5775  mutable_unknown_fields()->Clear();
5776  }
5777 
5778  bool data_bezierpatch::MergePartialFromCodedStream(
5779  ::google::protobuf::io::CodedInputStream *input)
5780  {
5781 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
5783  while ((tag = input->ReadTag()) != 0)
5784  {
5785  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag))
5786  {
5787  // required string name = 1;
5788  case 1:
5789  {
5790  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5791  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
5792  {
5793  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5794  input, this->mutable_name()));
5795  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5796  this->name().data(), this->name().length(),
5797  ::google::protobuf::internal::WireFormat::PARSE);
5798  }
5799  else
5800  {
5801  goto handle_uninterpreted;
5802  }
5803  if (input->ExpectTag(18)) goto parse_curves;
5804  break;
5805  }
5806 
5807  // repeated .mondschein.io.mbd.data.beziercurve curves = 2;
5808  case 2:
5809  {
5810  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5811  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
5812  {
5813  parse_curves:
5814  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5815  input, add_curves()));
5816  }
5817  else
5818  {
5819  goto handle_uninterpreted;
5820  }
5821  if (input->ExpectTag(18)) goto parse_curves;
5822  if (input->ExpectTag(24)) goto parse_normals;
5823  break;
5824  }
5825 
5826  // optional .mondschein.io.mbd.normal_e normals = 3;
5827  case 3:
5828  {
5829  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5830  ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT)
5831  {
5832  parse_normals:
5833  int value;
5834  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5835  int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5836  input, &value)));
5837  if (::mondschein::io::mbd::normal_e_IsValid(value))
5838  {
5839  set_normals(static_cast< ::mondschein::io::mbd::normal_e >(value));
5840  }
5841  else
5842  {
5843  mutable_unknown_fields()->AddVarint(3, value);
5844  }
5845  }
5846  else
5847  {
5848  goto handle_uninterpreted;
5849  }
5850  if (input->ExpectAtEnd()) return true;
5851  break;
5852  }
5853 
5854  default:
5855  {
5856  handle_uninterpreted:
5857  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5858  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP)
5859  {
5860  return true;
5861  }
5862  DO_(::google::protobuf::internal::WireFormat::SkipField(
5863  input, tag, mutable_unknown_fields()));
5864  break;
5865  }
5866  }
5867  }
5868  return true;
5869 #undef DO_
5870  }
5871 
5872  void data_bezierpatch::SerializeWithCachedSizes(
5873  ::google::protobuf::io::CodedOutputStream *output) const
5874  {
5875  // required string name = 1;
5876  if (has_name())
5877  {
5878  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5879  this->name().data(), this->name().length(),
5880  ::google::protobuf::internal::WireFormat::SERIALIZE);
5881  ::google::protobuf::internal::WireFormatLite::WriteString(
5882  1, this->name(), output);
5883  }
5884 
5885  // repeated .mondschein.io.mbd.data.beziercurve curves = 2;
5886  for (int i = 0; i < this->curves_size(); i++)
5887  {
5888  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5889  2, this->curves(i), output);
5890  }
5891 
5892  // optional .mondschein.io.mbd.normal_e normals = 3;
5893  if (has_normals())
5894  {
5895  ::google::protobuf::internal::WireFormatLite::WriteEnum(
5896  3, this->normals(), output);
5897  }
5898 
5899  if (!unknown_fields().empty())
5900  {
5901  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5902  unknown_fields(), output);
5903  }
5904  }
5905 
5906  ::google::protobuf::uint8 *data_bezierpatch::SerializeWithCachedSizesToArray(
5907  ::google::protobuf::uint8 *target) const
5908  {
5909  // required string name = 1;
5910  if (has_name())
5911  {
5912  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5913  this->name().data(), this->name().length(),
5914  ::google::protobuf::internal::WireFormat::SERIALIZE);
5915  target =
5916  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5917  1, this->name(), target);
5918  }
5919 
5920  // repeated .mondschein.io.mbd.data.beziercurve curves = 2;
5921  for (int i = 0; i < this->curves_size(); i++)
5922  {
5923  target = ::google::protobuf::internal::WireFormatLite::
5924  WriteMessageNoVirtualToArray(
5925  2, this->curves(i), target);
5926  }
5927 
5928  // optional .mondschein.io.mbd.normal_e normals = 3;
5929  if (has_normals())
5930  {
5931  target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5932  3, this->normals(), target);
5933  }
5934 
5935  if (!unknown_fields().empty())
5936  {
5937  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5938  unknown_fields(), target);
5939  }
5940  return target;
5941  }
5942 
5943  int data_bezierpatch::ByteSize() const
5944  {
5945  int total_size = 0;
5946 
5947  if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
5948  {
5949  // required string name = 1;
5950  if (has_name())
5951  {
5952  total_size += 1 +
5953  ::google::protobuf::internal::WireFormatLite::StringSize(
5954  this->name());
5955  }
5956 
5957  // optional .mondschein.io.mbd.normal_e normals = 3;
5958  if (has_normals())
5959  {
5960  total_size += 1 +
5961  ::google::protobuf::internal::WireFormatLite::EnumSize(this->normals());
5962  }
5963 
5964  }
5965  // repeated .mondschein.io.mbd.data.beziercurve curves = 2;
5966  total_size += 1 * this->curves_size();
5967  for (int i = 0; i < this->curves_size(); i++)
5968  {
5969  total_size +=
5970  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5971  this->curves(i));
5972  }
5973 
5974  if (!unknown_fields().empty())
5975  {
5976  total_size +=
5977  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5978  unknown_fields());
5979  }
5980  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5981  _cached_size_ = total_size;
5982  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5983  return total_size;
5984  }
5985 
5986  void data_bezierpatch::MergeFrom(const ::google::protobuf::Message &from)
5987  {
5988  GOOGLE_CHECK_NE(&from, this);
5989  const data_bezierpatch *source =
5990  ::google::protobuf::internal::dynamic_cast_if_available<const data_bezierpatch *>(
5991  &from);
5992  if (source == NULL)
5993  {
5994  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5995  }
5996  else
5997  {
5998  MergeFrom(*source);
5999  }
6000  }
6001 
6002  void data_bezierpatch::MergeFrom(const data_bezierpatch &from)
6003  {
6004  GOOGLE_CHECK_NE(&from, this);
6005  curves_.MergeFrom(from.curves_);
6006  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32)))
6007  {
6008  if (from.has_name())
6009  {
6010  set_name(from.name());
6011  }
6012  if (from.has_normals())
6013  {
6014  set_normals(from.normals());
6015  }
6016  }
6017  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
6018  }
6019 
6020  void data_bezierpatch::CopyFrom(const ::google::protobuf::Message &from)
6021  {
6022  if (&from == this) return;
6023  Clear();
6024  MergeFrom(from);
6025  }
6026 
6027  void data_bezierpatch::CopyFrom(const data_bezierpatch &from)
6028  {
6029  if (&from == this) return;
6030  Clear();
6031  MergeFrom(from);
6032  }
6033 
6034  bool data_bezierpatch::IsInitialized() const
6035  {
6036  if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
6037 
6038  for (int i = 0; i < curves_size(); i++)
6039  {
6040  if (!this->curves(i).IsInitialized()) return false;
6041  }
6042  return true;
6043  }
6044 
6045  void data_bezierpatch::Swap(data_bezierpatch *other)
6046  {
6047  if (other != this)
6048  {
6049  std::swap(name_, other->name_);
6050  curves_.Swap(&other->curves_);
6051  std::swap(normals_, other->normals_);
6052  std::swap(_has_bits_[0], other->_has_bits_[0]);
6053  _unknown_fields_.Swap(&other->_unknown_fields_);
6054  std::swap(_cached_size_, other->_cached_size_);
6055  }
6056  }
6057 
6058  ::google::protobuf::Metadata data_bezierpatch::GetMetadata() const
6059  {
6060  protobuf_AssignDescriptorsOnce();
6061  ::google::protobuf::Metadata metadata;
6062  metadata.descriptor = data_bezierpatch_descriptor_;
6063  metadata.reflection = data_bezierpatch_reflection_;
6064  return metadata;
6065  }
6066 
6067 
6068  // -------------------------------------------------------------------
6069 
6070 #ifndef _MSC_VER
6071  const int data_nurbscurve::kNameFieldNumber;
6072  const int data_nurbscurve::kDimensionFieldNumber;
6073  const int data_nurbscurve::kPointsFieldNumber;
6074  const int data_nurbscurve::kNormalsFieldNumber;
6075 #endif // !_MSC_VER
6076 
6077  data_nurbscurve::data_nurbscurve()
6078  : ::google::protobuf::Message()
6079  {
6080  SharedCtor();
6081  }
6082 
6083  void data_nurbscurve::InitAsDefaultInstance()
6084  {
6085  }
6086 
6087  data_nurbscurve::data_nurbscurve(const data_nurbscurve &from)
6088  : ::google::protobuf::Message()
6089  {
6090  SharedCtor();
6091  MergeFrom(from);
6092  }
6093 
6094  void data_nurbscurve::SharedCtor()
6095  {
6096  _cached_size_ = 0;
6097  name_ = const_cast< ::std::string *>(&::google::protobuf::internal::kEmptyString);
6098  dimension_ = 0u;
6099  normals_ = 0;
6100  ::memset(_has_bits_, 0, sizeof(_has_bits_));
6101  }
6102 
6103  data_nurbscurve::~data_nurbscurve()
6104  {
6105  SharedDtor();
6106  }
6107 
6108  void data_nurbscurve::SharedDtor()
6109  {
6110  if (name_ != &::google::protobuf::internal::kEmptyString)
6111  {
6112  delete name_;
6113  }
6114  if (this != default_instance_)
6115  {
6116  }
6117  }
6118 
6119  void data_nurbscurve::SetCachedSize(int size) const
6120  {
6121  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6122  _cached_size_ = size;
6123  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6124  }
6125  const ::google::protobuf::Descriptor *data_nurbscurve::descriptor()
6126  {
6127  protobuf_AssignDescriptorsOnce();
6128  return data_nurbscurve_descriptor_;
6129  }
6130 
6131  const data_nurbscurve &data_nurbscurve::default_instance()
6132  {
6133  if (default_instance_ == NULL) protobuf_AddDesc_mbd_2eproto();
6134  return *default_instance_;
6135  }
6136 
6137  data_nurbscurve *data_nurbscurve::default_instance_ = NULL;
6138 
6139  data_nurbscurve *data_nurbscurve::New() const
6140  {
6141  return new data_nurbscurve;
6142  }
6143 
6144  void data_nurbscurve::Clear()
6145  {
6146  if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
6147  {
6148  if (has_name())
6149  {
6150  if (name_ != &::google::protobuf::internal::kEmptyString)
6151  {
6152  name_->clear();
6153  }
6154  }
6155  dimension_ = 0u;
6156  normals_ = 0;
6157  }
6158  points_.Clear();
6159  ::memset(_has_bits_, 0, sizeof(_has_bits_));
6160  mutable_unknown_fields()->Clear();
6161  }
6162 
6163  bool data_nurbscurve::MergePartialFromCodedStream(
6164  ::google::protobuf::io::CodedInputStream *input)
6165  {
6166 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
6168  while ((tag = input->ReadTag()) != 0)
6169  {
6170  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag))
6171  {
6172  // required string name = 1;
6173  case 1:
6174  {
6175  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6176  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
6177  {
6178  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6179  input, this->mutable_name()));
6180  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6181  this->name().data(), this->name().length(),
6182  ::google::protobuf::internal::WireFormat::PARSE);
6183  }
6184  else
6185  {
6186  goto handle_uninterpreted;
6187  }
6188  if (input->ExpectTag(16)) goto parse_dimension;
6189  break;
6190  }
6191 
6192  // required uint32 dimension = 2;
6193  case 2:
6194  {
6195  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6196  ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT)
6197  {
6198  parse_dimension:
6199  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6200  ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
6201  input, &dimension_)));
6202  set_has_dimension();
6203  }
6204  else
6205  {
6206  goto handle_uninterpreted;
6207  }
6208  if (input->ExpectTag(26)) goto parse_points;
6209  break;
6210  }
6211 
6212  // repeated .mondschein.io.mbd.data.vector points = 3;
6213  case 3:
6214  {
6215  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6216  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
6217  {
6218  parse_points:
6219  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6220  input, add_points()));
6221  }
6222  else
6223  {
6224  goto handle_uninterpreted;
6225  }
6226  if (input->ExpectTag(26)) goto parse_points;
6227  if (input->ExpectTag(32)) goto parse_normals;
6228  break;
6229  }
6230 
6231  // optional .mondschein.io.mbd.normal_e normals = 4;
6232  case 4:
6233  {
6234  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6235  ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT)
6236  {
6237  parse_normals:
6238  int value;
6239  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6240  int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6241  input, &value)));
6242  if (::mondschein::io::mbd::normal_e_IsValid(value))
6243  {
6244  set_normals(static_cast< ::mondschein::io::mbd::normal_e >(value));
6245  }
6246  else
6247  {
6248  mutable_unknown_fields()->AddVarint(4, value);
6249  }
6250  }
6251  else
6252  {
6253  goto handle_uninterpreted;
6254  }
6255  if (input->ExpectAtEnd()) return true;
6256  break;
6257  }
6258 
6259  default:
6260  {
6261  handle_uninterpreted:
6262  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6263  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP)
6264  {
6265  return true;
6266  }
6267  DO_(::google::protobuf::internal::WireFormat::SkipField(
6268  input, tag, mutable_unknown_fields()));
6269  break;
6270  }
6271  }
6272  }
6273  return true;
6274 #undef DO_
6275  }
6276 
6277  void data_nurbscurve::SerializeWithCachedSizes(
6278  ::google::protobuf::io::CodedOutputStream *output) const
6279  {
6280  // required string name = 1;
6281  if (has_name())
6282  {
6283  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6284  this->name().data(), this->name().length(),
6285  ::google::protobuf::internal::WireFormat::SERIALIZE);
6286  ::google::protobuf::internal::WireFormatLite::WriteString(
6287  1, this->name(), output);
6288  }
6289 
6290  // required uint32 dimension = 2;
6291  if (has_dimension())
6292  {
6293  ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->dimension(), output);
6294  }
6295 
6296  // repeated .mondschein.io.mbd.data.vector points = 3;
6297  for (int i = 0; i < this->points_size(); i++)
6298  {
6299  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6300  3, this->points(i), output);
6301  }
6302 
6303  // optional .mondschein.io.mbd.normal_e normals = 4;
6304  if (has_normals())
6305  {
6306  ::google::protobuf::internal::WireFormatLite::WriteEnum(
6307  4, this->normals(), output);
6308  }
6309 
6310  if (!unknown_fields().empty())
6311  {
6312  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6313  unknown_fields(), output);
6314  }
6315  }
6316 
6317  ::google::protobuf::uint8 *data_nurbscurve::SerializeWithCachedSizesToArray(
6318  ::google::protobuf::uint8 *target) const
6319  {
6320  // required string name = 1;
6321  if (has_name())
6322  {
6323  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6324  this->name().data(), this->name().length(),
6325  ::google::protobuf::internal::WireFormat::SERIALIZE);
6326  target =
6327  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6328  1, this->name(), target);
6329  }
6330 
6331  // required uint32 dimension = 2;
6332  if (has_dimension())
6333  {
6334  target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->dimension(), target);
6335  }
6336 
6337  // repeated .mondschein.io.mbd.data.vector points = 3;
6338  for (int i = 0; i < this->points_size(); i++)
6339  {
6340  target = ::google::protobuf::internal::WireFormatLite::
6341  WriteMessageNoVirtualToArray(
6342  3, this->points(i), target);
6343  }
6344 
6345  // optional .mondschein.io.mbd.normal_e normals = 4;
6346  if (has_normals())
6347  {
6348  target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6349  4, this->normals(), target);
6350  }
6351 
6352  if (!unknown_fields().empty())
6353  {
6354  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6355  unknown_fields(), target);
6356  }
6357  return target;
6358  }
6359 
6360  int data_nurbscurve::ByteSize() const
6361  {
6362  int total_size = 0;
6363 
6364  if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
6365  {
6366  // required string name = 1;
6367  if (has_name())
6368  {
6369  total_size += 1 +
6370  ::google::protobuf::internal::WireFormatLite::StringSize(
6371  this->name());
6372  }
6373 
6374  // required uint32 dimension = 2;
6375  if (has_dimension())
6376  {
6377  total_size += 1 +
6378  ::google::protobuf::internal::WireFormatLite::UInt32Size(
6379  this->dimension());
6380  }
6381 
6382  // optional .mondschein.io.mbd.normal_e normals = 4;
6383  if (has_normals())
6384  {
6385  total_size += 1 +
6386  ::google::protobuf::internal::WireFormatLite::EnumSize(this->normals());
6387  }
6388 
6389  }
6390  // repeated .mondschein.io.mbd.data.vector points = 3;
6391  total_size += 1 * this->points_size();
6392  for (int i = 0; i < this->points_size(); i++)
6393  {
6394  total_size +=
6395  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6396  this->points(i));
6397  }
6398 
6399  if (!unknown_fields().empty())
6400  {
6401  total_size +=
6402  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6403  unknown_fields());
6404  }
6405  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6406  _cached_size_ = total_size;
6407  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6408  return total_size;
6409  }
6410 
6411  void data_nurbscurve::MergeFrom(const ::google::protobuf::Message &from)
6412  {
6413  GOOGLE_CHECK_NE(&from, this);
6414  const data_nurbscurve *source =
6415  ::google::protobuf::internal::dynamic_cast_if_available<const data_nurbscurve *>(
6416  &from);
6417  if (source == NULL)
6418  {
6419  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6420  }
6421  else
6422  {
6423  MergeFrom(*source);
6424  }
6425  }
6426 
6427  void data_nurbscurve::MergeFrom(const data_nurbscurve &from)
6428  {
6429  GOOGLE_CHECK_NE(&from, this);
6430  points_.MergeFrom(from.points_);
6431  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32)))
6432  {
6433  if (from.has_name())
6434  {
6435  set_name(from.name());
6436  }
6437  if (from.has_dimension())
6438  {
6439  set_dimension(from.dimension());
6440  }
6441  if (from.has_normals())
6442  {
6443  set_normals(from.normals());
6444  }
6445  }
6446  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
6447  }
6448 
6449  void data_nurbscurve::CopyFrom(const ::google::protobuf::Message &from)
6450  {
6451  if (&from == this) return;
6452  Clear();
6453  MergeFrom(from);
6454  }
6455 
6456  void data_nurbscurve::CopyFrom(const data_nurbscurve &from)
6457  {
6458  if (&from == this) return;
6459  Clear();
6460  MergeFrom(from);
6461  }
6462 
6463  bool data_nurbscurve::IsInitialized() const
6464  {
6465  if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
6466 
6467  for (int i = 0; i < points_size(); i++)
6468  {
6469  if (!this->points(i).IsInitialized()) return false;
6470  }
6471  return true;
6472  }
6473 
6474  void data_nurbscurve::Swap(data_nurbscurve *other)
6475  {
6476  if (other != this)
6477  {
6478  std::swap(name_, other->name_);
6479  std::swap(dimension_, other->dimension_);
6480  points_.Swap(&other->points_);
6481  std::swap(normals_, other->normals_);
6482  std::swap(_has_bits_[0], other->_has_bits_[0]);
6483  _unknown_fields_.Swap(&other->_unknown_fields_);
6484  std::swap(_cached_size_, other->_cached_size_);
6485  }
6486  }
6487 
6488  ::google::protobuf::Metadata data_nurbscurve::GetMetadata() const
6489  {
6490  protobuf_AssignDescriptorsOnce();
6491  ::google::protobuf::Metadata metadata;
6492  metadata.descriptor = data_nurbscurve_descriptor_;
6493  metadata.reflection = data_nurbscurve_reflection_;
6494  return metadata;
6495  }
6496 
6497 
6498  // -------------------------------------------------------------------
6499 
6500 #ifndef _MSC_VER
6501  const int data_nurbspatch::kNameFieldNumber;
6502  const int data_nurbspatch::kDimensionFieldNumber;
6503  const int data_nurbspatch::kCurvesFieldNumber;
6504  const int data_nurbspatch::kNormalsFieldNumber;
6505 #endif // !_MSC_VER
6506 
6507  data_nurbspatch::data_nurbspatch()
6508  : ::google::protobuf::Message()
6509  {
6510  SharedCtor();
6511  }
6512 
6513  void data_nurbspatch::InitAsDefaultInstance()
6514  {
6515  }
6516 
6517  data_nurbspatch::data_nurbspatch(const data_nurbspatch &from)
6518  : ::google::protobuf::Message()
6519  {
6520  SharedCtor();
6521  MergeFrom(from);
6522  }
6523 
6524  void data_nurbspatch::SharedCtor()
6525  {
6526  _cached_size_ = 0;
6527  name_ = const_cast< ::std::string *>(&::google::protobuf::internal::kEmptyString);
6528  dimension_ = 0u;
6529  normals_ = 0;
6530  ::memset(_has_bits_, 0, sizeof(_has_bits_));
6531  }
6532 
6533  data_nurbspatch::~data_nurbspatch()
6534  {
6535  SharedDtor();
6536  }
6537 
6538  void data_nurbspatch::SharedDtor()
6539  {
6540  if (name_ != &::google::protobuf::internal::kEmptyString)
6541  {
6542  delete name_;
6543  }
6544  if (this != default_instance_)
6545  {
6546  }
6547  }
6548 
6549  void data_nurbspatch::SetCachedSize(int size) const
6550  {
6551  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6552  _cached_size_ = size;
6553  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6554  }
6555  const ::google::protobuf::Descriptor *data_nurbspatch::descriptor()
6556  {
6557  protobuf_AssignDescriptorsOnce();
6558  return data_nurbspatch_descriptor_;
6559  }
6560 
6561  const data_nurbspatch &data_nurbspatch::default_instance()
6562  {
6563  if (default_instance_ == NULL) protobuf_AddDesc_mbd_2eproto();
6564  return *default_instance_;
6565  }
6566 
6567  data_nurbspatch *data_nurbspatch::default_instance_ = NULL;
6568 
6569  data_nurbspatch *data_nurbspatch::New() const
6570  {
6571  return new data_nurbspatch;
6572  }
6573 
6574  void data_nurbspatch::Clear()
6575  {
6576  if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
6577  {
6578  if (has_name())
6579  {
6580  if (name_ != &::google::protobuf::internal::kEmptyString)
6581  {
6582  name_->clear();
6583  }
6584  }
6585  dimension_ = 0u;
6586  normals_ = 0;
6587  }
6588  curves_.Clear();
6589  ::memset(_has_bits_, 0, sizeof(_has_bits_));
6590  mutable_unknown_fields()->Clear();
6591  }
6592 
6593  bool data_nurbspatch::MergePartialFromCodedStream(
6594  ::google::protobuf::io::CodedInputStream *input)
6595  {
6596 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
6598  while ((tag = input->ReadTag()) != 0)
6599  {
6600  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag))
6601  {
6602  // required string name = 1;
6603  case 1:
6604  {
6605  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6606  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
6607  {
6608  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6609  input, this->mutable_name()));
6610  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6611  this->name().data(), this->name().length(),
6612  ::google::protobuf::internal::WireFormat::PARSE);
6613  }
6614  else
6615  {
6616  goto handle_uninterpreted;
6617  }
6618  if (input->ExpectTag(16)) goto parse_dimension;
6619  break;
6620  }
6621 
6622  // required uint32 dimension = 2;
6623  case 2:
6624  {
6625  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6626  ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT)
6627  {
6628  parse_dimension:
6629  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6630  ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
6631  input, &dimension_)));
6632  set_has_dimension();
6633  }
6634  else
6635  {
6636  goto handle_uninterpreted;
6637  }
6638  if (input->ExpectTag(26)) goto parse_curves;
6639  break;
6640  }
6641 
6642  // repeated .mondschein.io.mbd.data.nurbscurve curves = 3;
6643  case 3:
6644  {
6645  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6646  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
6647  {
6648  parse_curves:
6649  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6650  input, add_curves()));
6651  }
6652  else
6653  {
6654  goto handle_uninterpreted;
6655  }
6656  if (input->ExpectTag(26)) goto parse_curves;
6657  if (input->ExpectTag(32)) goto parse_normals;
6658  break;
6659  }
6660 
6661  // optional .mondschein.io.mbd.normal_e normals = 4;
6662  case 4:
6663  {
6664  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6665  ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT)
6666  {
6667  parse_normals:
6668  int value;
6669  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6670  int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6671  input, &value)));
6672  if (::mondschein::io::mbd::normal_e_IsValid(value))
6673  {
6674  set_normals(static_cast< ::mondschein::io::mbd::normal_e >(value));
6675  }
6676  else
6677  {
6678  mutable_unknown_fields()->AddVarint(4, value);
6679  }
6680  }
6681  else
6682  {
6683  goto handle_uninterpreted;
6684  }
6685  if (input->ExpectAtEnd()) return true;
6686  break;
6687  }
6688 
6689  default:
6690  {
6691  handle_uninterpreted:
6692  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6693  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP)
6694  {
6695  return true;
6696  }
6697  DO_(::google::protobuf::internal::WireFormat::SkipField(
6698  input, tag, mutable_unknown_fields()));
6699  break;
6700  }
6701  }
6702  }
6703  return true;
6704 #undef DO_
6705  }
6706 
6707  void data_nurbspatch::SerializeWithCachedSizes(
6708  ::google::protobuf::io::CodedOutputStream *output) const
6709  {
6710  // required string name = 1;
6711  if (has_name())
6712  {
6713  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6714  this->name().data(), this->name().length(),
6715  ::google::protobuf::internal::WireFormat::SERIALIZE);
6716  ::google::protobuf::internal::WireFormatLite::WriteString(
6717  1, this->name(), output);
6718  }
6719 
6720  // required uint32 dimension = 2;
6721  if (has_dimension())
6722  {
6723  ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->dimension(), output);
6724  }
6725 
6726  // repeated .mondschein.io.mbd.data.nurbscurve curves = 3;
6727  for (int i = 0; i < this->curves_size(); i++)
6728  {
6729  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6730  3, this->curves(i), output);
6731  }
6732 
6733  // optional .mondschein.io.mbd.normal_e normals = 4;
6734  if (has_normals())
6735  {
6736  ::google::protobuf::internal::WireFormatLite::WriteEnum(
6737  4, this->normals(), output);
6738  }
6739 
6740  if (!unknown_fields().empty())
6741  {
6742  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6743  unknown_fields(), output);
6744  }
6745  }
6746 
6747  ::google::protobuf::uint8 *data_nurbspatch::SerializeWithCachedSizesToArray(
6748  ::google::protobuf::uint8 *target) const
6749  {
6750  // required string name = 1;
6751  if (has_name())
6752  {
6753  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6754  this->name().data(), this->name().length(),
6755  ::google::protobuf::internal::WireFormat::SERIALIZE);
6756  target =
6757  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6758  1, this->name(), target);
6759  }
6760 
6761  // required uint32 dimension = 2;
6762  if (has_dimension())
6763  {
6764  target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->dimension(), target);
6765  }
6766 
6767  // repeated .mondschein.io.mbd.data.nurbscurve curves = 3;
6768  for (int i = 0; i < this->curves_size(); i++)
6769  {
6770  target = ::google::protobuf::internal::WireFormatLite::
6771  WriteMessageNoVirtualToArray(
6772  3, this->curves(i), target);
6773  }
6774 
6775  // optional .mondschein.io.mbd.normal_e normals = 4;
6776  if (has_normals())
6777  {
6778  target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6779  4, this->normals(), target);
6780  }
6781 
6782  if (!unknown_fields().empty())
6783  {
6784  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6785  unknown_fields(), target);
6786  }
6787  return target;
6788  }
6789 
6790  int data_nurbspatch::ByteSize() const
6791  {
6792  int total_size = 0;
6793 
6794  if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
6795  {
6796  // required string name = 1;
6797  if (has_name())
6798  {
6799  total_size += 1 +
6800  ::google::protobuf::internal::WireFormatLite::StringSize(
6801  this->name());
6802  }
6803 
6804  // required uint32 dimension = 2;
6805  if (has_dimension())
6806  {
6807  total_size += 1 +
6808  ::google::protobuf::internal::WireFormatLite::UInt32Size(
6809  this->dimension());
6810  }
6811 
6812  // optional .mondschein.io.mbd.normal_e normals = 4;
6813  if (has_normals())
6814  {
6815  total_size += 1 +
6816  ::google::protobuf::internal::WireFormatLite::EnumSize(this->normals());
6817  }
6818 
6819  }
6820  // repeated .mondschein.io.mbd.data.nurbscurve curves = 3;
6821  total_size += 1 * this->curves_size();
6822  for (int i = 0; i < this->curves_size(); i++)
6823  {
6824  total_size +=
6825  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6826  this->curves(i));
6827  }
6828 
6829  if (!unknown_fields().empty())
6830  {
6831  total_size +=
6832  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6833  unknown_fields());
6834  }
6835  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6836  _cached_size_ = total_size;
6837  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6838  return total_size;
6839  }
6840 
6841  void data_nurbspatch::MergeFrom(const ::google::protobuf::Message &from)
6842  {
6843  GOOGLE_CHECK_NE(&from, this);
6844  const data_nurbspatch *source =
6845  ::google::protobuf::internal::dynamic_cast_if_available<const data_nurbspatch *>(
6846  &from);
6847  if (source == NULL)
6848  {
6849  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6850  }
6851  else
6852  {
6853  MergeFrom(*source);
6854  }
6855  }
6856 
6857  void data_nurbspatch::MergeFrom(const data_nurbspatch &from)
6858  {
6859  GOOGLE_CHECK_NE(&from, this);
6860  curves_.MergeFrom(from.curves_);
6861  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32)))
6862  {
6863  if (from.has_name())
6864  {
6865  set_name(from.name());
6866  }
6867  if (from.has_dimension())
6868  {
6869  set_dimension(from.dimension());
6870  }
6871  if (from.has_normals())
6872  {
6873  set_normals(from.normals());
6874  }
6875  }
6876  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
6877  }
6878 
6879  void data_nurbspatch::CopyFrom(const ::google::protobuf::Message &from)
6880  {
6881  if (&from == this) return;
6882  Clear();
6883  MergeFrom(from);
6884  }
6885 
6886  void data_nurbspatch::CopyFrom(const data_nurbspatch &from)
6887  {
6888  if (&from == this) return;
6889  Clear();
6890  MergeFrom(from);
6891  }
6892 
6893  bool data_nurbspatch::IsInitialized() const
6894  {
6895  if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
6896 
6897  for (int i = 0; i < curves_size(); i++)
6898  {
6899  if (!this->curves(i).IsInitialized()) return false;
6900  }
6901  return true;
6902  }
6903 
6904  void data_nurbspatch::Swap(data_nurbspatch *other)
6905  {
6906  if (other != this)
6907  {
6908  std::swap(name_, other->name_);
6909  std::swap(dimension_, other->dimension_);
6910  curves_.Swap(&other->curves_);
6911  std::swap(normals_, other->normals_);
6912  std::swap(_has_bits_[0], other->_has_bits_[0]);
6913  _unknown_fields_.Swap(&other->_unknown_fields_);
6914  std::swap(_cached_size_, other->_cached_size_);
6915  }
6916  }
6917 
6918  ::google::protobuf::Metadata data_nurbspatch::GetMetadata() const
6919  {
6920  protobuf_AssignDescriptorsOnce();
6921  ::google::protobuf::Metadata metadata;
6922  metadata.descriptor = data_nurbspatch_descriptor_;
6923  metadata.reflection = data_nurbspatch_reflection_;
6924  return metadata;
6925  }
6926 
6927 
6928  // -------------------------------------------------------------------
6929 
6930 #ifndef _MSC_VER
6931  const int data::kNameFieldNumber;
6932  const int data::kCamerasFieldNumber;
6933  const int data::kLightsFieldNumber;
6934  const int data::kMaterialsFieldNumber;
6935  const int data::kMeshesFieldNumber;
6936  const int data::kPosesFieldNumber;
6937  const int data::kTexturesFieldNumber;
6938  const int data::kBeziercurvesFieldNumber;
6939  const int data::kNurbscurvesFieldNumber;
6940  const int data::kBezierpatchesFieldNumber;
6941  const int data::kNurbspatchesFieldNumber;
6942  const int data::kScenegraphsFieldNumber;
6943 #endif // !_MSC_VER
6944 
6945  data::data()
6946  : ::google::protobuf::Message()
6947  {
6948  SharedCtor();
6949  }
6950 
6951  void data::InitAsDefaultInstance()
6952  {
6953  }
6954 
6955  data::data(const data &from)
6956  : ::google::protobuf::Message()
6957  {
6958  SharedCtor();
6959  MergeFrom(from);
6960  }
6961 
6962  void data::SharedCtor()
6963  {
6964  _cached_size_ = 0;
6965  name_ = const_cast< ::std::string *>(&::google::protobuf::internal::kEmptyString);
6966  ::memset(_has_bits_, 0, sizeof(_has_bits_));
6967  }
6968 
6969  data::~data()
6970  {
6971  SharedDtor();
6972  }
6973 
6974  void data::SharedDtor()
6975  {
6976  if (name_ != &::google::protobuf::internal::kEmptyString)
6977  {
6978  delete name_;
6979  }
6980  if (this != default_instance_)
6981  {
6982  }
6983  }
6984 
6985  void data::SetCachedSize(int size) const
6986  {
6987  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6988  _cached_size_ = size;
6989  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6990  }
6991  const ::google::protobuf::Descriptor *data::descriptor()
6992  {
6993  protobuf_AssignDescriptorsOnce();
6994  return data_descriptor_;
6995  }
6996 
6997  const data &data::default_instance()
6998  {
6999  if (default_instance_ == NULL) protobuf_AddDesc_mbd_2eproto();
7000  return *default_instance_;
7001  }
7002 
7003  data *data::default_instance_ = NULL;
7004 
7005  data *data::New() const
7006  {
7007  return new data;
7008  }
7009 
7010  void data::Clear()
7011  {
7012  if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
7013  {
7014  if (has_name())
7015  {
7016  if (name_ != &::google::protobuf::internal::kEmptyString)
7017  {
7018  name_->clear();
7019  }
7020  }
7021  }
7022  cameras_.Clear();
7023  lights_.Clear();
7024  materials_.Clear();
7025  meshes_.Clear();
7026  poses_.Clear();
7027  textures_.Clear();
7028  beziercurves_.Clear();
7029  nurbscurves_.Clear();
7030  bezierpatches_.Clear();
7031  nurbspatches_.Clear();
7032  scenegraphs_.Clear();
7033  ::memset(_has_bits_, 0, sizeof(_has_bits_));
7034  mutable_unknown_fields()->Clear();
7035  }
7036 
7037  bool data::MergePartialFromCodedStream(
7038  ::google::protobuf::io::CodedInputStream *input)
7039  {
7040 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
7042  while ((tag = input->ReadTag()) != 0)
7043  {
7044  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag))
7045  {
7046  // required string name = 1;
7047  case 1:
7048  {
7049  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7050  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
7051  {
7052  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7053  input, this->mutable_name()));
7054  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
7055  this->name().data(), this->name().length(),
7056  ::google::protobuf::internal::WireFormat::PARSE);
7057  }
7058  else
7059  {
7060  goto handle_uninterpreted;
7061  }
7062  if (input->ExpectTag(18)) goto parse_cameras;
7063  break;
7064  }
7065 
7066  // repeated .mondschein.io.mbd.data.camera cameras = 2;
7067  case 2:
7068  {
7069  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7070  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
7071  {
7072  parse_cameras:
7073  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
7074  input, add_cameras()));
7075  }
7076  else
7077  {
7078  goto handle_uninterpreted;
7079  }
7080  if (input->ExpectTag(18)) goto parse_cameras;
7081  if (input->ExpectTag(26)) goto parse_lights;
7082  break;
7083  }
7084 
7085  // repeated .mondschein.io.mbd.data.light lights = 3;
7086  case 3:
7087  {
7088  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7089  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
7090  {
7091  parse_lights:
7092  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
7093  input, add_lights()));
7094  }
7095  else
7096  {
7097  goto handle_uninterpreted;
7098  }
7099  if (input->ExpectTag(26)) goto parse_lights;
7100  if (input->ExpectTag(34)) goto parse_materials;
7101  break;
7102  }
7103 
7104  // repeated .mondschein.io.mbd.data.material materials = 4;
7105  case 4:
7106  {
7107  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7108  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
7109  {
7110  parse_materials:
7111  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
7112  input, add_materials()));
7113  }
7114  else
7115  {
7116  goto handle_uninterpreted;
7117  }
7118  if (input->ExpectTag(34)) goto parse_materials;
7119  if (input->ExpectTag(42)) goto parse_meshes;
7120  break;
7121  }
7122 
7123  // repeated .mondschein.io.mbd.data.mesh meshes = 5;
7124  case 5:
7125  {
7126  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7127  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
7128  {
7129  parse_meshes:
7130  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
7131  input, add_meshes()));
7132  }
7133  else
7134  {
7135  goto handle_uninterpreted;
7136  }
7137  if (input->ExpectTag(42)) goto parse_meshes;
7138  if (input->ExpectTag(50)) goto parse_poses;
7139  break;
7140  }
7141 
7142  // repeated .mondschein.io.mbd.data.pose poses = 6;
7143  case 6:
7144  {
7145  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7146  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
7147  {
7148  parse_poses:
7149  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
7150  input, add_poses()));
7151  }
7152  else
7153  {
7154  goto handle_uninterpreted;
7155  }
7156  if (input->ExpectTag(50)) goto parse_poses;
7157  if (input->ExpectTag(58)) goto parse_textures;
7158  break;
7159  }
7160 
7161  // repeated .mondschein.io.mbd.data.texture textures = 7;
7162  case 7:
7163  {
7164  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7165  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
7166  {
7167  parse_textures:
7168  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
7169  input, add_textures()));
7170  }
7171  else
7172  {
7173  goto handle_uninterpreted;
7174  }
7175  if (input->ExpectTag(58)) goto parse_textures;
7176  if (input->ExpectTag(66)) goto parse_beziercurves;
7177  break;
7178  }
7179 
7180  // repeated .mondschein.io.mbd.data.beziercurve beziercurves = 8;
7181  case 8:
7182  {
7183  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7184  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
7185  {
7186  parse_beziercurves:
7187  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
7188  input, add_beziercurves()));
7189  }
7190  else
7191  {
7192  goto handle_uninterpreted;
7193  }
7194  if (input->ExpectTag(66)) goto parse_beziercurves;
7195  if (input->ExpectTag(74)) goto parse_nurbscurves;
7196  break;
7197  }
7198 
7199  // repeated .mondschein.io.mbd.data.nurbscurve nurbscurves = 9;
7200  case 9:
7201  {
7202  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7203  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
7204  {
7205  parse_nurbscurves:
7206  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
7207  input, add_nurbscurves()));
7208  }
7209  else
7210  {
7211  goto handle_uninterpreted;
7212  }
7213  if (input->ExpectTag(74)) goto parse_nurbscurves;
7214  if (input->ExpectTag(82)) goto parse_bezierpatches;
7215  break;
7216  }
7217 
7218  // repeated .mondschein.io.mbd.data.bezierpatch bezierpatches = 10;
7219  case 10:
7220  {
7221  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7222  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
7223  {
7224  parse_bezierpatches:
7225  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
7226  input, add_bezierpatches()));
7227  }
7228  else
7229  {
7230  goto handle_uninterpreted;
7231  }
7232  if (input->ExpectTag(82)) goto parse_bezierpatches;
7233  if (input->ExpectTag(90)) goto parse_nurbspatches;
7234  break;
7235  }
7236 
7237  // repeated .mondschein.io.mbd.data.nurbspatch nurbspatches = 11;
7238  case 11:
7239  {
7240  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7241  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
7242  {
7243  parse_nurbspatches:
7244  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
7245  input, add_nurbspatches()));
7246  }
7247  else
7248  {
7249  goto handle_uninterpreted;
7250  }
7251  if (input->ExpectTag(90)) goto parse_nurbspatches;
7252  if (input->ExpectTag(98)) goto parse_scenegraphs;
7253  break;
7254  }
7255 
7256  // repeated .mondschein.io.mbd.data.scenegraph scenegraphs = 12;
7257  case 12:
7258  {
7259  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7260  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED)
7261  {
7262  parse_scenegraphs:
7263  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
7264  input, add_scenegraphs()));
7265  }
7266  else
7267  {
7268  goto handle_uninterpreted;
7269  }
7270  if (input->ExpectTag(98)) goto parse_scenegraphs;
7271  if (input->ExpectAtEnd()) return true;
7272  break;
7273  }
7274 
7275  default:
7276  {
7277  handle_uninterpreted:
7278  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7279  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP)
7280  {
7281  return true;
7282  }
7283  DO_(::google::protobuf::internal::WireFormat::SkipField(
7284  input, tag, mutable_unknown_fields()));
7285  break;
7286  }
7287  }
7288  }
7289  return true;
7290 #undef DO_
7291  }
7292 
7293  void data::SerializeWithCachedSizes(
7294  ::google::protobuf::io::CodedOutputStream *output) const
7295  {
7296  // required string name = 1;
7297  if (has_name())
7298  {
7299  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
7300  this->name().data(), this->name().length(),
7301  ::google::protobuf::internal::WireFormat::SERIALIZE);
7302  ::google::protobuf::internal::WireFormatLite::WriteString(
7303  1, this->name(), output);
7304  }
7305 
7306  // repeated .mondschein.io.mbd.data.camera cameras = 2;
7307  for (int i = 0; i < this->cameras_size(); i++)
7308  {
7309  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7310  2, this->cameras(i), output);
7311  }
7312 
7313  // repeated .mondschein.io.mbd.data.light lights = 3;
7314  for (int i = 0; i < this->lights_size(); i++)
7315  {
7316  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7317  3, this->lights(i), output);
7318  }
7319 
7320  // repeated .mondschein.io.mbd.data.material materials = 4;
7321  for (int i = 0; i < this->materials_size(); i++)
7322  {
7323  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7324  4, this->materials(i), output);
7325  }
7326 
7327  // repeated .mondschein.io.mbd.data.mesh meshes = 5;
7328  for (int i = 0; i < this->meshes_size(); i++)
7329  {
7330  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7331  5, this->meshes(i), output);
7332  }
7333 
7334  // repeated .mondschein.io.mbd.data.pose poses = 6;
7335  for (int i = 0; i < this->poses_size(); i++)
7336  {
7337  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7338  6, this->poses(i), output);
7339  }
7340 
7341  // repeated .mondschein.io.mbd.data.texture textures = 7;
7342  for (int i = 0; i < this->textures_size(); i++)
7343  {
7344  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7345  7, this->textures(i), output);
7346  }
7347 
7348  // repeated .mondschein.io.mbd.data.beziercurve beziercurves = 8;
7349  for (int i = 0; i < this->beziercurves_size(); i++)
7350  {
7351  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7352  8, this->beziercurves(i), output);
7353  }
7354 
7355  // repeated .mondschein.io.mbd.data.nurbscurve nurbscurves = 9;
7356  for (int i = 0; i < this->nurbscurves_size(); i++)
7357  {
7358  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7359  9, this->nurbscurves(i), output);
7360  }
7361 
7362  // repeated .mondschein.io.mbd.data.bezierpatch bezierpatches = 10;
7363  for (int i = 0; i < this->bezierpatches_size(); i++)
7364  {
7365  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7366  10, this->bezierpatches(i), output);
7367  }
7368 
7369  // repeated .mondschein.io.mbd.data.nurbspatch nurbspatches = 11;
7370  for (int i = 0; i < this->nurbspatches_size(); i++)
7371  {
7372  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7373  11, this->nurbspatches(i), output);
7374  }
7375 
7376  // repeated .mondschein.io.mbd.data.scenegraph scenegraphs = 12;
7377  for (int i = 0; i < this->scenegraphs_size(); i++)
7378  {
7379  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7380  12, this->scenegraphs(i), output);
7381  }
7382 
7383  if (!unknown_fields().empty())
7384  {
7385  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7386  unknown_fields(), output);
7387  }
7388  }
7389 
7390  ::google::protobuf::uint8 *data::SerializeWithCachedSizesToArray(
7391  ::google::protobuf::uint8 *target) const
7392  {
7393  // required string name = 1;
7394  if (has_name())
7395  {
7396  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
7397  this->name().data(), this->name().length(),
7398  ::google::protobuf::internal::WireFormat::SERIALIZE);
7399  target =
7400  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7401  1, this->name(), target);
7402  }
7403 
7404  // repeated .mondschein.io.mbd.data.camera cameras = 2;
7405  for (int i = 0; i < this->cameras_size(); i++)
7406  {
7407  target = ::google::protobuf::internal::WireFormatLite::
7408  WriteMessageNoVirtualToArray(
7409  2, this->cameras(i), target);
7410  }
7411 
7412  // repeated .mondschein.io.mbd.data.light lights = 3;
7413  for (int i = 0; i < this->lights_size(); i++)
7414  {
7415  target = ::google::protobuf::internal::WireFormatLite::
7416  WriteMessageNoVirtualToArray(
7417  3, this->lights(i), target);
7418  }
7419 
7420  // repeated .mondschein.io.mbd.data.material materials = 4;
7421  for (int i = 0; i < this->materials_size(); i++)
7422  {
7423  target = ::google::protobuf::internal::WireFormatLite::
7424  WriteMessageNoVirtualToArray(
7425  4, this->materials(i), target);
7426  }
7427 
7428  // repeated .mondschein.io.mbd.data.mesh meshes = 5;
7429  for (int i = 0; i < this->meshes_size(); i++)
7430  {
7431  target = ::google::protobuf::internal::WireFormatLite::
7432  WriteMessageNoVirtualToArray(
7433  5, this->meshes(i), target);
7434  }
7435 
7436  // repeated .mondschein.io.mbd.data.pose poses = 6;
7437  for (int i = 0; i < this->poses_size(); i++)
7438  {
7439  target = ::google::protobuf::internal::WireFormatLite::
7440  WriteMessageNoVirtualToArray(
7441  6, this->poses(i), target);
7442  }
7443 
7444  // repeated .mondschein.io.mbd.data.texture textures = 7;
7445  for (int i = 0; i < this->textures_size(); i++)
7446  {
7447  target = ::google::protobuf::internal::WireFormatLite::
7448  WriteMessageNoVirtualToArray(
7449  7, this->textures(i), target);
7450  }
7451 
7452  // repeated .mondschein.io.mbd.data.beziercurve beziercurves = 8;
7453  for (int i = 0; i < this->beziercurves_size(); i++)
7454  {
7455  target = ::google::protobuf::internal::WireFormatLite::
7456  WriteMessageNoVirtualToArray(
7457  8, this->beziercurves(i), target);
7458  }
7459 
7460  // repeated .mondschein.io.mbd.data.nurbscurve nurbscurves = 9;
7461  for (int i = 0; i < this->nurbscurves_size(); i++)
7462  {
7463  target = ::google::protobuf::internal::WireFormatLite::
7464  WriteMessageNoVirtualToArray(
7465  9, this->nurbscurves(i), target);
7466  }
7467 
7468  // repeated .mondschein.io.mbd.data.bezierpatch bezierpatches = 10;
7469  for (int i = 0; i < this->bezierpatches_size(); i++)
7470  {
7471  target = ::google::protobuf::internal::WireFormatLite::
7472  WriteMessageNoVirtualToArray(
7473  10, this->bezierpatches(i), target);
7474  }
7475 
7476  // repeated .mondschein.io.mbd.data.nurbspatch nurbspatches = 11;
7477  for (int i = 0; i < this->nurbspatches_size(); i++)
7478  {
7479  target = ::google::protobuf::internal::WireFormatLite::
7480  WriteMessageNoVirtualToArray(
7481  11, this->nurbspatches(i), target);
7482  }
7483 
7484  // repeated .mondschein.io.mbd.data.scenegraph scenegraphs = 12;
7485  for (int i = 0; i < this->scenegraphs_size(); i++)
7486  {
7487  target = ::google::protobuf::internal::WireFormatLite::
7488  WriteMessageNoVirtualToArray(
7489  12, this->scenegraphs(i), target);
7490  }
7491 
7492  if (!unknown_fields().empty())
7493  {
7494  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7495  unknown_fields(), target);
7496  }
7497  return target;
7498  }
7499 
7500  int data::ByteSize() const
7501  {
7502  int total_size = 0;
7503 
7504  if (_has_bits_[0 / 32] & (0xffu << (0 % 32)))
7505  {
7506  // required string name = 1;
7507  if (has_name())
7508  {
7509  total_size += 1 +
7510  ::google::protobuf::internal::WireFormatLite::StringSize(
7511  this->name());
7512  }
7513 
7514  }
7515  // repeated .mondschein.io.mbd.data.camera cameras = 2;
7516  total_size += 1 * this->cameras_size();
7517  for (int i = 0; i < this->cameras_size(); i++)
7518  {
7519  total_size +=
7520  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7521  this->cameras(i));
7522  }
7523 
7524  // repeated .mondschein.io.mbd.data.light lights = 3;
7525  total_size += 1 * this->lights_size();
7526  for (int i = 0; i < this->lights_size(); i++)
7527  {
7528  total_size +=
7529  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7530  this->lights(i));
7531  }
7532 
7533  // repeated .mondschein.io.mbd.data.material materials = 4;
7534  total_size += 1 * this->materials_size();
7535  for (int i = 0; i < this->materials_size(); i++)
7536  {
7537  total_size +=
7538  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7539  this->materials(i));
7540  }
7541 
7542  // repeated .mondschein.io.mbd.data.mesh meshes = 5;
7543  total_size += 1 * this->meshes_size();
7544  for (int i = 0; i < this->meshes_size(); i++)
7545  {
7546  total_size +=
7547  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7548  this->meshes(i));
7549  }
7550 
7551  // repeated .mondschein.io.mbd.data.pose poses = 6;
7552  total_size += 1 * this->poses_size();
7553  for (int i = 0; i < this->poses_size(); i++)
7554  {
7555  total_size +=
7556  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7557  this->poses(i));
7558  }
7559 
7560  // repeated .mondschein.io.mbd.data.texture textures = 7;
7561  total_size += 1 * this->textures_size();
7562  for (int i = 0; i < this->textures_size(); i++)
7563  {
7564  total_size +=
7565  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7566  this->textures(i));
7567  }
7568 
7569  // repeated .mondschein.io.mbd.data.beziercurve beziercurves = 8;
7570  total_size += 1 * this->beziercurves_size();
7571  for (int i = 0; i < this->beziercurves_size(); i++)
7572  {
7573  total_size +=
7574  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7575  this->beziercurves(i));
7576  }
7577 
7578  // repeated .mondschein.io.mbd.data.nurbscurve nurbscurves = 9;
7579  total_size += 1 * this->nurbscurves_size();
7580  for (int i = 0; i < this->nurbscurves_size(); i++)
7581  {
7582  total_size +=
7583  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7584  this->nurbscurves(i));
7585  }
7586 
7587  // repeated .mondschein.io.mbd.data.bezierpatch bezierpatches = 10;
7588  total_size += 1 * this->bezierpatches_size();
7589  for (int i = 0; i < this->bezierpatches_size(); i++)
7590  {
7591  total_size +=
7592  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7593  this->bezierpatches(i));
7594  }
7595 
7596  // repeated .mondschein.io.mbd.data.nurbspatch nurbspatches = 11;
7597  total_size += 1 * this->nurbspatches_size();
7598  for (int i = 0; i < this->nurbspatches_size(); i++)
7599  {
7600  total_size +=
7601  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7602  this->nurbspatches(i));
7603  }
7604 
7605  // repeated .mondschein.io.mbd.data.scenegraph scenegraphs = 12;
7606  total_size += 1 * this->scenegraphs_size();
7607  for (int i = 0; i < this->scenegraphs_size(); i++)
7608  {
7609  total_size +=
7610  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7611  this->scenegraphs(i));
7612  }
7613 
7614  if (!unknown_fields().empty())
7615  {
7616  total_size +=
7617  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7618  unknown_fields());
7619  }
7620  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7621  _cached_size_ = total_size;
7622  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7623  return total_size;
7624  }
7625 
7626  void data::MergeFrom(const ::google::protobuf::Message &from)
7627  {
7628  GOOGLE_CHECK_NE(&from, this);
7629  const data *source =
7630  ::google::protobuf::internal::dynamic_cast_if_available<const data *>(
7631  &from);
7632  if (source == NULL)
7633  {
7634  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7635  }
7636  else
7637  {
7638  MergeFrom(*source);
7639  }
7640  }
7641 
7642  void data::MergeFrom(const data &from)
7643  {
7644  GOOGLE_CHECK_NE(&from, this);
7645  cameras_.MergeFrom(from.cameras_);
7646  lights_.MergeFrom(from.lights_);
7647  materials_.MergeFrom(from.materials_);
7648  meshes_.MergeFrom(from.meshes_);
7649  poses_.MergeFrom(from.poses_);
7650  textures_.MergeFrom(from.textures_);
7651  beziercurves_.MergeFrom(from.beziercurves_);
7652  nurbscurves_.MergeFrom(from.nurbscurves_);
7653  bezierpatches_.MergeFrom(from.bezierpatches_);
7654  nurbspatches_.MergeFrom(from.nurbspatches_);
7655  scenegraphs_.MergeFrom(from.scenegraphs_);
7656  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32)))
7657  {
7658  if (from.has_name())
7659  {
7660  set_name(from.name());
7661  }
7662  }
7663  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
7664  }
7665 
7666  void data::CopyFrom(const ::google::protobuf::Message &from)
7667  {
7668  if (&from == this) return;
7669  Clear();
7670  MergeFrom(from);
7671  }
7672 
7673  void data::CopyFrom(const data &from)
7674  {
7675  if (&from == this) return;
7676  Clear();
7677  MergeFrom(from);
7678  }
7679 
7680  bool data::IsInitialized() const
7681  {
7682  if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
7683 
7684  for (int i = 0; i < cameras_size(); i++)
7685  {
7686  if (!this->cameras(i).IsInitialized()) return false;
7687  }
7688  for (int i = 0; i < lights_size(); i++)
7689  {
7690  if (!this->lights(i).IsInitialized()) return false;
7691  }
7692  for (int i = 0; i < materials_size(); i++)
7693  {
7694  if (!this->materials(i).IsInitialized()) return false;
7695  }
7696  for (int i = 0; i < meshes_size(); i++)
7697  {
7698  if (!this->meshes(i).IsInitialized()) return false;
7699  }
7700  for (int i = 0; i < poses_size(); i++)
7701  {
7702  if (!this->poses(i).IsInitialized()) return false;
7703  }
7704  for (int i = 0; i < textures_size(); i++)
7705  {
7706  if (!this->textures(i).IsInitialized()) return false;
7707  }
7708  for (int i = 0; i < beziercurves_size(); i++)
7709  {
7710  if (!this->beziercurves(i).IsInitialized()) return false;
7711  }
7712  for (int i = 0; i < nurbscurves_size(); i++)
7713  {
7714  if (!this->nurbscurves(i).IsInitialized()) return false;
7715  }
7716  for (int i = 0; i < bezierpatches_size(); i++)
7717  {
7718  if (!this->bezierpatches(i).IsInitialized()) return false;
7719  }
7720  for (int i = 0; i < nurbspatches_size(); i++)
7721  {
7722  if (!this->nurbspatches(i).IsInitialized()) return false;
7723  }
7724  for (int i = 0; i < scenegraphs_size(); i++)
7725  {
7726  if (!this->scenegraphs(i).IsInitialized()) return false;
7727  }
7728  return true;
7729  }
7730 
7731  void data::Swap(data *other)
7732  {
7733  if (other != this)
7734  {
7735  std::swap(name_, other->name_);
7736  cameras_.Swap(&other->cameras_);
7737  lights_.Swap(&other->lights_);
7738  materials_.Swap(&other->materials_);
7739  meshes_.Swap(&other->meshes_);
7740  poses_.Swap(&other->poses_);
7741  textures_.Swap(&other->textures_);
7742  beziercurves_.Swap(&other->beziercurves_);
7743  nurbscurves_.Swap(&other->nurbscurves_);
7744  bezierpatches_.Swap(&other->bezierpatches_);
7745  nurbspatches_.Swap(&other->nurbspatches_);
7746  scenegraphs_.Swap(&other->scenegraphs_);
7747  std::swap(_has_bits_[0], other->_has_bits_[0]);
7748  _unknown_fields_.Swap(&other->_unknown_fields_);
7749  std::swap(_cached_size_, other->_cached_size_);
7750  }
7751  }
7752 
7753  ::google::protobuf::Metadata data::GetMetadata() const
7754  {
7755  protobuf_AssignDescriptorsOnce();
7756  ::google::protobuf::Metadata metadata;
7757  metadata.descriptor = data_descriptor_;
7758  metadata.reflection = data_reflection_;
7759  return metadata;
7760  }
7761 
7762 
7763  // @@protoc_insertion_point(namespace_scope)
7764 
7765  } // namespace mbd
7766  } // namespace io
7767 } // namespace mondschein
7768 
7769 // @@protoc_insertion_point(global_scope)