1#![allow(unknown_lints)]
6#![allow(clippy::all)]
7
8#![allow(unused_attributes)]
9#![cfg_attr(rustfmt, rustfmt::skip)]
10
11#![allow(box_pointers)]
12#![allow(dead_code)]
13#![allow(missing_docs)]
14#![allow(non_camel_case_types)]
15#![allow(non_snake_case)]
16#![allow(non_upper_case_globals)]
17#![allow(trivial_casts)]
18#![allow(unused_imports)]
19#![allow(unused_results)]
20#[derive(PartialEq,Clone,Default)]
27pub struct MeshPluginData {
28 pub version: i32,
30 pub name: ::std::string::String,
31 pub content_type: MeshPluginData_ContentType,
32 pub json_config: ::std::string::String,
33 pub shape: ::std::vec::Vec<i32>,
34 pub unknown_fields: ::protobuf::UnknownFields,
36 pub cached_size: ::protobuf::CachedSize,
37}
38
39impl<'a> ::std::default::Default for &'a MeshPluginData {
40 fn default() -> &'a MeshPluginData {
41 <MeshPluginData as ::protobuf::Message>::default_instance()
42 }
43}
44
45impl MeshPluginData {
46 pub fn new() -> MeshPluginData {
47 ::std::default::Default::default()
48 }
49
50 pub fn get_version(&self) -> i32 {
54 self.version
55 }
56 pub fn clear_version(&mut self) {
57 self.version = 0;
58 }
59
60 pub fn set_version(&mut self, v: i32) {
62 self.version = v;
63 }
64
65 pub fn get_name(&self) -> &str {
69 &self.name
70 }
71 pub fn clear_name(&mut self) {
72 self.name.clear();
73 }
74
75 pub fn set_name(&mut self, v: ::std::string::String) {
77 self.name = v;
78 }
79
80 pub fn mut_name(&mut self) -> &mut ::std::string::String {
83 &mut self.name
84 }
85
86 pub fn take_name(&mut self) -> ::std::string::String {
88 ::std::mem::replace(&mut self.name, ::std::string::String::new())
89 }
90
91 pub fn get_content_type(&self) -> MeshPluginData_ContentType {
95 self.content_type
96 }
97 pub fn clear_content_type(&mut self) {
98 self.content_type = MeshPluginData_ContentType::UNDEFINED;
99 }
100
101 pub fn set_content_type(&mut self, v: MeshPluginData_ContentType) {
103 self.content_type = v;
104 }
105
106 pub fn get_json_config(&self) -> &str {
110 &self.json_config
111 }
112 pub fn clear_json_config(&mut self) {
113 self.json_config.clear();
114 }
115
116 pub fn set_json_config(&mut self, v: ::std::string::String) {
118 self.json_config = v;
119 }
120
121 pub fn mut_json_config(&mut self) -> &mut ::std::string::String {
124 &mut self.json_config
125 }
126
127 pub fn take_json_config(&mut self) -> ::std::string::String {
129 ::std::mem::replace(&mut self.json_config, ::std::string::String::new())
130 }
131
132 pub fn get_shape(&self) -> &[i32] {
136 &self.shape
137 }
138 pub fn clear_shape(&mut self) {
139 self.shape.clear();
140 }
141
142 pub fn set_shape(&mut self, v: ::std::vec::Vec<i32>) {
144 self.shape = v;
145 }
146
147 pub fn mut_shape(&mut self) -> &mut ::std::vec::Vec<i32> {
149 &mut self.shape
150 }
151
152 pub fn take_shape(&mut self) -> ::std::vec::Vec<i32> {
154 ::std::mem::replace(&mut self.shape, ::std::vec::Vec::new())
155 }
156}
157
158impl ::protobuf::Message for MeshPluginData {
159 fn is_initialized(&self) -> bool {
160 true
161 }
162
163 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
164 while !is.eof()? {
165 let (field_number, wire_type) = is.read_tag_unpack()?;
166 match field_number {
167 1 => {
168 if wire_type != ::protobuf::wire_format::WireTypeVarint {
169 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
170 }
171 let tmp = is.read_int32()?;
172 self.version = tmp;
173 },
174 2 => {
175 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
176 },
177 3 => {
178 ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.content_type, 3, &mut self.unknown_fields)?
179 },
180 5 => {
181 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.json_config)?;
182 },
183 6 => {
184 ::protobuf::rt::read_repeated_int32_into(wire_type, is, &mut self.shape)?;
185 },
186 _ => {
187 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
188 },
189 };
190 }
191 ::std::result::Result::Ok(())
192 }
193
194 #[allow(unused_variables)]
196 fn compute_size(&self) -> u32 {
197 let mut my_size = 0;
198 if self.version != 0 {
199 my_size += ::protobuf::rt::value_size(1, self.version, ::protobuf::wire_format::WireTypeVarint);
200 }
201 if !self.name.is_empty() {
202 my_size += ::protobuf::rt::string_size(2, &self.name);
203 }
204 if self.content_type != MeshPluginData_ContentType::UNDEFINED {
205 my_size += ::protobuf::rt::enum_size(3, self.content_type);
206 }
207 if !self.json_config.is_empty() {
208 my_size += ::protobuf::rt::string_size(5, &self.json_config);
209 }
210 for value in &self.shape {
211 my_size += ::protobuf::rt::value_size(6, *value, ::protobuf::wire_format::WireTypeVarint);
212 };
213 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
214 self.cached_size.set(my_size);
215 my_size
216 }
217
218 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
219 if self.version != 0 {
220 os.write_int32(1, self.version)?;
221 }
222 if !self.name.is_empty() {
223 os.write_string(2, &self.name)?;
224 }
225 if self.content_type != MeshPluginData_ContentType::UNDEFINED {
226 os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.content_type))?;
227 }
228 if !self.json_config.is_empty() {
229 os.write_string(5, &self.json_config)?;
230 }
231 for v in &self.shape {
232 os.write_int32(6, *v)?;
233 };
234 os.write_unknown_fields(self.get_unknown_fields())?;
235 ::std::result::Result::Ok(())
236 }
237
238 fn get_cached_size(&self) -> u32 {
239 self.cached_size.get()
240 }
241
242 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
243 &self.unknown_fields
244 }
245
246 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
247 &mut self.unknown_fields
248 }
249
250 fn as_any(&self) -> &dyn (::std::any::Any) {
251 self as &dyn (::std::any::Any)
252 }
253 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
254 self as &mut dyn (::std::any::Any)
255 }
256 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
257 self
258 }
259
260 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
261 Self::descriptor_static()
262 }
263
264 fn new() -> MeshPluginData {
265 MeshPluginData::new()
266 }
267
268 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
269 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
270 descriptor.get(|| {
271 let mut fields = ::std::vec::Vec::new();
272 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
273 "version",
274 |m: &MeshPluginData| { &m.version },
275 |m: &mut MeshPluginData| { &mut m.version },
276 ));
277 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
278 "name",
279 |m: &MeshPluginData| { &m.name },
280 |m: &mut MeshPluginData| { &mut m.name },
281 ));
282 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<MeshPluginData_ContentType>>(
283 "content_type",
284 |m: &MeshPluginData| { &m.content_type },
285 |m: &mut MeshPluginData| { &mut m.content_type },
286 ));
287 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
288 "json_config",
289 |m: &MeshPluginData| { &m.json_config },
290 |m: &mut MeshPluginData| { &mut m.json_config },
291 ));
292 fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
293 "shape",
294 |m: &MeshPluginData| { &m.shape },
295 |m: &mut MeshPluginData| { &mut m.shape },
296 ));
297 ::protobuf::reflect::MessageDescriptor::new_pb_name::<MeshPluginData>(
298 "MeshPluginData",
299 fields,
300 file_descriptor_proto()
301 )
302 })
303 }
304
305 fn default_instance() -> &'static MeshPluginData {
306 static instance: ::protobuf::rt::LazyV2<MeshPluginData> = ::protobuf::rt::LazyV2::INIT;
307 instance.get(MeshPluginData::new)
308 }
309}
310
311impl ::protobuf::Clear for MeshPluginData {
312 fn clear(&mut self) {
313 self.version = 0;
314 self.name.clear();
315 self.content_type = MeshPluginData_ContentType::UNDEFINED;
316 self.json_config.clear();
317 self.shape.clear();
318 self.unknown_fields.clear();
319 }
320}
321
322impl ::std::fmt::Debug for MeshPluginData {
323 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
324 ::protobuf::text_format::fmt(self, f)
325 }
326}
327
328impl ::protobuf::reflect::ProtobufValue for MeshPluginData {
329 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
330 ::protobuf::reflect::ReflectValueRef::Message(self)
331 }
332}
333
334#[derive(Clone,PartialEq,Eq,Debug,Hash)]
335pub enum MeshPluginData_ContentType {
336 UNDEFINED = 0,
337 VERTEX = 1,
338 FACE = 2,
339 COLOR = 3,
340}
341
342impl ::protobuf::ProtobufEnum for MeshPluginData_ContentType {
343 fn value(&self) -> i32 {
344 *self as i32
345 }
346
347 fn from_i32(value: i32) -> ::std::option::Option<MeshPluginData_ContentType> {
348 match value {
349 0 => ::std::option::Option::Some(MeshPluginData_ContentType::UNDEFINED),
350 1 => ::std::option::Option::Some(MeshPluginData_ContentType::VERTEX),
351 2 => ::std::option::Option::Some(MeshPluginData_ContentType::FACE),
352 3 => ::std::option::Option::Some(MeshPluginData_ContentType::COLOR),
353 _ => ::std::option::Option::None
354 }
355 }
356
357 fn values() -> &'static [Self] {
358 static values: &'static [MeshPluginData_ContentType] = &[
359 MeshPluginData_ContentType::UNDEFINED,
360 MeshPluginData_ContentType::VERTEX,
361 MeshPluginData_ContentType::FACE,
362 MeshPluginData_ContentType::COLOR,
363 ];
364 values
365 }
366
367 fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
368 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
369 descriptor.get(|| {
370 ::protobuf::reflect::EnumDescriptor::new_pb_name::<MeshPluginData_ContentType>("MeshPluginData.ContentType", file_descriptor_proto())
371 })
372 }
373}
374
375impl ::std::marker::Copy for MeshPluginData_ContentType {
376}
377
378impl ::std::default::Default for MeshPluginData_ContentType {
379 fn default() -> Self {
380 MeshPluginData_ContentType::UNDEFINED
381 }
382}
383
384impl ::protobuf::reflect::ProtobufValue for MeshPluginData_ContentType {
385 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
386 ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
387 }
388}
389
390static file_descriptor_proto_data: &'static [u8] = b"\
391 \n\x15src/plugin_mesh.proto\x12\x12tensorboardrs.mesh\"\x87\x02\n\x0eMes\
392 hPluginData\x12\x18\n\x07version\x18\x01\x20\x01(\x05R\x07version\x12\
393 \x12\n\x04name\x18\x02\x20\x01(\tR\x04name\x12Q\n\x0ccontent_type\x18\
394 \x03\x20\x01(\x0e2..tensorboardrs.mesh.MeshPluginData.ContentTypeR\x0bco\
395 ntentType\x12\x1f\n\x0bjson_config\x18\x05\x20\x01(\tR\njsonConfig\x12\
396 \x14\n\x05shape\x18\x06\x20\x03(\x05R\x05shape\"=\n\x0bContentType\x12\r\
397 \n\tUNDEFINED\x10\0\x12\n\n\x06VERTEX\x10\x01\x12\x08\n\x04FACE\x10\x02\
398 \x12\t\n\x05COLOR\x10\x03J\xc5\x07\n\x06\x12\x04\0\0\x1c\x01\n\x08\n\x01\
399 \x0c\x12\x03\0\0\x12\n\x08\n\x01\x02\x12\x03\x02\0\x1b\nz\n\x02\x04\0\
400 \x12\x04\x06\0\x1c\x01\x1an\x20A\x20MeshPluginData\x20encapsulates\x20in\
401 formation\x20on\x20which\x20plugins\x20are\x20able\x20to\x20make\n\x20us\
402 e\x20of\x20a\x20certain\x20summary\x20value.\n\n\n\n\x03\x04\0\x01\x12\
403 \x03\x06\x08\x16\n\x0c\n\x04\x04\0\x04\0\x12\x04\x07\x02\x0c\x03\n\x0c\n\
404 \x05\x04\0\x04\0\x01\x12\x03\x07\x07\x12\n\r\n\x06\x04\0\x04\0\x02\0\x12\
405 \x03\x08\x04\x12\n\x0e\n\x07\x04\0\x04\0\x02\0\x01\x12\x03\x08\x04\r\n\
406 \x0e\n\x07\x04\0\x04\0\x02\0\x02\x12\x03\x08\x10\x11\n\r\n\x06\x04\0\x04\
407 \0\x02\x01\x12\x03\t\x04\x0f\n\x0e\n\x07\x04\0\x04\0\x02\x01\x01\x12\x03\
408 \t\x04\n\n\x0e\n\x07\x04\0\x04\0\x02\x01\x02\x12\x03\t\r\x0e\n\x1f\n\x06\
409 \x04\0\x04\0\x02\x02\x12\x03\n\x04\r\"\x10\x20Triangle\x20face.\n\n\x0e\
410 \n\x07\x04\0\x04\0\x02\x02\x01\x12\x03\n\x04\x08\n\x0e\n\x07\x04\0\x04\0\
411 \x02\x02\x02\x12\x03\n\x0b\x0c\n\r\n\x06\x04\0\x04\0\x02\x03\x12\x03\x0b\
412 \x04\x0e\n\x0e\n\x07\x04\0\x04\0\x02\x03\x01\x12\x03\x0b\x04\t\n\x0e\n\
413 \x07\x04\0\x04\0\x02\x03\x02\x12\x03\x0b\x0c\r\n9\n\x04\x04\0\x02\0\x12\
414 \x03\x0f\x02\x14\x1a,\x20Version\x20`0`\x20is\x20the\x20only\x20supporte\
415 d\x20version.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03\x0f\x02\x07\n\x0c\n\
416 \x05\x04\0\x02\0\x01\x12\x03\x0f\x08\x0f\n\x0c\n\x05\x04\0\x02\0\x03\x12\
417 \x03\x0f\x12\x13\nO\n\x04\x04\0\x02\x01\x12\x03\x12\x02\x12\x1aB\x20The\
418 \x20name\x20of\x20the\x20mesh\x20summary\x20this\x20particular\x20summar\
419 y\x20belongs\x20to.\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03\x12\x02\x08\
420 \n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03\x12\t\r\n\x0c\n\x05\x04\0\x02\x01\
421 \x03\x12\x03\x12\x10\x11\n+\n\x04\x04\0\x02\x02\x12\x03\x15\x02\x1f\x1a\
422 \x1e\x20Type\x20of\x20data\x20in\x20the\x20summary.\n\n\x0c\n\x05\x04\0\
423 \x02\x02\x06\x12\x03\x15\x02\r\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03\x15\
424 \x0e\x1a\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03\x15\x1d\x1e\nK\n\x04\x04\
425 \0\x02\x03\x12\x03\x18\x02\x19\x1a>\x20JSON-serialized\x20dictionary\x20\
426 of\x20ThreeJS\x20classes\x20configuration.\n\n\x0c\n\x05\x04\0\x02\x03\
427 \x05\x12\x03\x18\x02\x08\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03\x18\t\x14\
428 \n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03\x18\x17\x18\nO\n\x04\x04\0\x02\
429 \x04\x12\x03\x1b\x02\x1b\x1aB\x20Shape\x20of\x20underlying\x20data.\x20C\
430 ache\x20it\x20here\x20for\x20performance\x20reasons.\n\n\x0c\n\x05\x04\0\
431 \x02\x04\x04\x12\x03\x1b\x02\n\n\x0c\n\x05\x04\0\x02\x04\x05\x12\x03\x1b\
432 \x0b\x10\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03\x1b\x11\x16\n\x0c\n\x05\
433 \x04\0\x02\x04\x03\x12\x03\x1b\x19\x1ab\x06proto3\
434";
435
436static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
437
438fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
439 ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
440}
441
442pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
443 file_descriptor_proto_lazy.get(|| {
444 parse_descriptor_proto()
445 })
446}