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 ColumnFamilies {
28 pub column_families: ::protobuf::RepeatedField<ColumnFamilyDescriptor>,
30 pub unknown_fields: ::protobuf::UnknownFields,
32 pub cached_size: ::protobuf::CachedSize,
33}
34
35impl<'a> ::std::default::Default for &'a ColumnFamilies {
36 fn default() -> &'a ColumnFamilies {
37 <ColumnFamilies as ::protobuf::Message>::default_instance()
38 }
39}
40
41impl ColumnFamilies {
42 pub fn new() -> ColumnFamilies {
43 ::std::default::Default::default()
44 }
45
46 pub fn get_column_families(&self) -> &[ColumnFamilyDescriptor] {
50 &self.column_families
51 }
52 pub fn clear_column_families(&mut self) {
53 self.column_families.clear();
54 }
55
56 pub fn set_column_families(&mut self, v: ::protobuf::RepeatedField<ColumnFamilyDescriptor>) {
58 self.column_families = v;
59 }
60
61 pub fn mut_column_families(&mut self) -> &mut ::protobuf::RepeatedField<ColumnFamilyDescriptor> {
63 &mut self.column_families
64 }
65
66 pub fn take_column_families(&mut self) -> ::protobuf::RepeatedField<ColumnFamilyDescriptor> {
68 ::std::mem::replace(&mut self.column_families, ::protobuf::RepeatedField::new())
69 }
70}
71
72impl ::protobuf::Message for ColumnFamilies {
73 fn is_initialized(&self) -> bool {
74 for v in &self.column_families {
75 if !v.is_initialized() {
76 return false;
77 }
78 };
79 true
80 }
81
82 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
83 while !is.eof()? {
84 let (field_number, wire_type) = is.read_tag_unpack()?;
85 match field_number {
86 1 => {
87 ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.column_families)?;
88 },
89 _ => {
90 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
91 },
92 };
93 }
94 ::std::result::Result::Ok(())
95 }
96
97 #[allow(unused_variables)]
99 fn compute_size(&self) -> u32 {
100 let mut my_size = 0;
101 for value in &self.column_families {
102 let len = value.compute_size();
103 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
104 };
105 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
106 self.cached_size.set(my_size);
107 my_size
108 }
109
110 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
111 for v in &self.column_families {
112 os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
113 os.write_raw_varint32(v.get_cached_size())?;
114 v.write_to_with_cached_sizes(os)?;
115 };
116 os.write_unknown_fields(self.get_unknown_fields())?;
117 ::std::result::Result::Ok(())
118 }
119
120 fn get_cached_size(&self) -> u32 {
121 self.cached_size.get()
122 }
123
124 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
125 &self.unknown_fields
126 }
127
128 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
129 &mut self.unknown_fields
130 }
131
132 fn as_any(&self) -> &dyn (::std::any::Any) {
133 self as &dyn (::std::any::Any)
134 }
135 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
136 self as &mut dyn (::std::any::Any)
137 }
138 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
139 self
140 }
141
142 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
143 Self::descriptor_static()
144 }
145
146 fn new() -> ColumnFamilies {
147 ColumnFamilies::new()
148 }
149
150 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
151 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
152 descriptor.get(|| {
153 let mut fields = ::std::vec::Vec::new();
154 fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<ColumnFamilyDescriptor>>(
155 "column_families",
156 |m: &ColumnFamilies| { &m.column_families },
157 |m: &mut ColumnFamilies| { &mut m.column_families },
158 ));
159 ::protobuf::reflect::MessageDescriptor::new_pb_name::<ColumnFamilies>(
160 "ColumnFamilies",
161 fields,
162 file_descriptor_proto()
163 )
164 })
165 }
166
167 fn default_instance() -> &'static ColumnFamilies {
168 static instance: ::protobuf::rt::LazyV2<ColumnFamilies> = ::protobuf::rt::LazyV2::INIT;
169 instance.get(ColumnFamilies::new)
170 }
171}
172
173impl ::protobuf::Clear for ColumnFamilies {
174 fn clear(&mut self) {
175 self.column_families.clear();
176 self.unknown_fields.clear();
177 }
178}
179
180impl ::std::fmt::Debug for ColumnFamilies {
181 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
182 ::protobuf::text_format::fmt(self, f)
183 }
184}
185
186impl ::protobuf::reflect::ProtobufValue for ColumnFamilies {
187 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
188 ::protobuf::reflect::ReflectValueRef::Message(self)
189 }
190}
191
192#[derive(PartialEq,Clone,Default)]
193pub struct ColumnFamilyDescriptor {
194 pub range: u64,
196 pub shard: u64,
197 pub field_type: ColumnFamilyType,
198 pub unknown_fields: ::protobuf::UnknownFields,
200 pub cached_size: ::protobuf::CachedSize,
201}
202
203impl<'a> ::std::default::Default for &'a ColumnFamilyDescriptor {
204 fn default() -> &'a ColumnFamilyDescriptor {
205 <ColumnFamilyDescriptor as ::protobuf::Message>::default_instance()
206 }
207}
208
209impl ColumnFamilyDescriptor {
210 pub fn new() -> ColumnFamilyDescriptor {
211 ::std::default::Default::default()
212 }
213
214 pub fn get_range(&self) -> u64 {
218 self.range
219 }
220 pub fn clear_range(&mut self) {
221 self.range = 0;
222 }
223
224 pub fn set_range(&mut self, v: u64) {
226 self.range = v;
227 }
228
229 pub fn get_shard(&self) -> u64 {
233 self.shard
234 }
235 pub fn clear_shard(&mut self) {
236 self.shard = 0;
237 }
238
239 pub fn set_shard(&mut self, v: u64) {
241 self.shard = v;
242 }
243
244 pub fn get_field_type(&self) -> ColumnFamilyType {
248 self.field_type
249 }
250 pub fn clear_field_type(&mut self) {
251 self.field_type = ColumnFamilyType::UNKNOWN;
252 }
253
254 pub fn set_field_type(&mut self, v: ColumnFamilyType) {
256 self.field_type = v;
257 }
258}
259
260impl ::protobuf::Message for ColumnFamilyDescriptor {
261 fn is_initialized(&self) -> bool {
262 true
263 }
264
265 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
266 while !is.eof()? {
267 let (field_number, wire_type) = is.read_tag_unpack()?;
268 match field_number {
269 1 => {
270 if wire_type != ::protobuf::wire_format::WireTypeVarint {
271 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
272 }
273 let tmp = is.read_uint64()?;
274 self.range = tmp;
275 },
276 2 => {
277 if wire_type != ::protobuf::wire_format::WireTypeVarint {
278 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
279 }
280 let tmp = is.read_uint64()?;
281 self.shard = tmp;
282 },
283 3 => {
284 if wire_type == ::protobuf::wire_format::WireTypeVarint {self.field_type = is.read_enum()?;} else {return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));}
285 },
286 _ => {
287 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
288 },
289 };
290 }
291 ::std::result::Result::Ok(())
292 }
293
294 #[allow(unused_variables)]
296 fn compute_size(&self) -> u32 {
297 let mut my_size = 0;
298 if self.range != 0 {
299 my_size += ::protobuf::rt::value_size(1, self.range, ::protobuf::wire_format::WireTypeVarint);
300 }
301 if self.shard != 0 {
302 my_size += ::protobuf::rt::value_size(2, self.shard, ::protobuf::wire_format::WireTypeVarint);
303 }
304 if self.field_type != ColumnFamilyType::UNKNOWN {
305 my_size += ::protobuf::rt::enum_size(3, self.field_type);
306 }
307 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
308 self.cached_size.set(my_size);
309 my_size
310 }
311
312 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
313 if self.range != 0 {
314 os.write_uint64(1, self.range)?;
315 }
316 if self.shard != 0 {
317 os.write_uint64(2, self.shard)?;
318 }
319 if self.field_type != ColumnFamilyType::UNKNOWN {
320 os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.field_type))?;
321 }
322 os.write_unknown_fields(self.get_unknown_fields())?;
323 ::std::result::Result::Ok(())
324 }
325
326 fn get_cached_size(&self) -> u32 {
327 self.cached_size.get()
328 }
329
330 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
331 &self.unknown_fields
332 }
333
334 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
335 &mut self.unknown_fields
336 }
337
338 fn as_any(&self) -> &dyn (::std::any::Any) {
339 self as &dyn (::std::any::Any)
340 }
341 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
342 self as &mut dyn (::std::any::Any)
343 }
344 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
345 self
346 }
347
348 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
349 Self::descriptor_static()
350 }
351
352 fn new() -> ColumnFamilyDescriptor {
353 ColumnFamilyDescriptor::new()
354 }
355
356 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
357 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
358 descriptor.get(|| {
359 let mut fields = ::std::vec::Vec::new();
360 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
361 "range",
362 |m: &ColumnFamilyDescriptor| { &m.range },
363 |m: &mut ColumnFamilyDescriptor| { &mut m.range },
364 ));
365 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
366 "shard",
367 |m: &ColumnFamilyDescriptor| { &m.shard },
368 |m: &mut ColumnFamilyDescriptor| { &mut m.shard },
369 ));
370 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<ColumnFamilyType>>(
371 "type",
372 |m: &ColumnFamilyDescriptor| { &m.field_type },
373 |m: &mut ColumnFamilyDescriptor| { &mut m.field_type },
374 ));
375 ::protobuf::reflect::MessageDescriptor::new_pb_name::<ColumnFamilyDescriptor>(
376 "ColumnFamilyDescriptor",
377 fields,
378 file_descriptor_proto()
379 )
380 })
381 }
382
383 fn default_instance() -> &'static ColumnFamilyDescriptor {
384 static instance: ::protobuf::rt::LazyV2<ColumnFamilyDescriptor> = ::protobuf::rt::LazyV2::INIT;
385 instance.get(ColumnFamilyDescriptor::new)
386 }
387}
388
389impl ::protobuf::Clear for ColumnFamilyDescriptor {
390 fn clear(&mut self) {
391 self.range = 0;
392 self.shard = 0;
393 self.field_type = ColumnFamilyType::UNKNOWN;
394 self.unknown_fields.clear();
395 }
396}
397
398impl ::std::fmt::Debug for ColumnFamilyDescriptor {
399 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
400 ::protobuf::text_format::fmt(self, f)
401 }
402}
403
404impl ::protobuf::reflect::ProtobufValue for ColumnFamilyDescriptor {
405 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
406 ::protobuf::reflect::ReflectValueRef::Message(self)
407 }
408}
409
410#[derive(Clone,PartialEq,Eq,Debug,Hash)]
411pub enum ColumnFamilyType {
412 UNKNOWN = 0,
413 CONFIG = 1,
414 RAFT_LOG = 2,
415 DATA = 3,
416}
417
418impl ::protobuf::ProtobufEnum for ColumnFamilyType {
419 fn value(&self) -> i32 {
420 *self as i32
421 }
422
423 fn from_i32(value: i32) -> ::std::option::Option<ColumnFamilyType> {
424 match value {
425 0 => ::std::option::Option::Some(ColumnFamilyType::UNKNOWN),
426 1 => ::std::option::Option::Some(ColumnFamilyType::CONFIG),
427 2 => ::std::option::Option::Some(ColumnFamilyType::RAFT_LOG),
428 3 => ::std::option::Option::Some(ColumnFamilyType::DATA),
429 _ => ::std::option::Option::None
430 }
431 }
432
433 fn values() -> &'static [Self] {
434 static values: &'static [ColumnFamilyType] = &[
435 ColumnFamilyType::UNKNOWN,
436 ColumnFamilyType::CONFIG,
437 ColumnFamilyType::RAFT_LOG,
438 ColumnFamilyType::DATA,
439 ];
440 values
441 }
442
443 fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
444 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
445 descriptor.get(|| {
446 ::protobuf::reflect::EnumDescriptor::new_pb_name::<ColumnFamilyType>("ColumnFamilyType", file_descriptor_proto())
447 })
448 }
449}
450
451impl ::std::marker::Copy for ColumnFamilyType {
452}
453
454impl ::std::default::Default for ColumnFamilyType {
455 fn default() -> Self {
456 ColumnFamilyType::UNKNOWN
457 }
458}
459
460impl ::protobuf::reflect::ProtobufValue for ColumnFamilyType {
461 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
462 ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
463 }
464}
465
466static file_descriptor_proto_data: &'static [u8] = b"\
467 \n\x0emetadata.proto\x12\x07raft.v1\x1a\x0frustproto.proto\"Z\n\x0eColum\
468 nFamilies\x12H\n\x0fcolumn_families\x18\x01\x20\x03(\x0b2\x1f.raft.v1.Co\
469 lumnFamilyDescriptorR\x0ecolumnFamilies\"s\n\x16ColumnFamilyDescriptor\
470 \x12\x14\n\x05range\x18\x01\x20\x01(\x04R\x05range\x12\x14\n\x05shard\
471 \x18\x02\x20\x01(\x04R\x05shard\x12-\n\x04type\x18\x03\x20\x01(\x0e2\x19\
472 .raft.v1.ColumnFamilyTypeR\x04type*C\n\x10ColumnFamilyType\x12\x0b\n\x07\
473 UNKNOWN\x10\0\x12\n\n\x06CONFIG\x10\x01\x12\x0c\n\x08RAFT_LOG\x10\x02\
474 \x12\x08\n\x04DATA\x10\x03B\rZ\x07raft.v1\x98\xa7\x08\x01J\xfe\t\n\x06\
475 \x12\x04\x12\0'\x01\n\xdd\x05\n\x01\x0c\x12\x03\x12\0\x122\xd2\x05\n\x20\
476 \x20\x20Pleiades\x20Source\x20Code\n\x20\x20\x20Copyright\x20(C)\x202023\
477 \x20Sienna\x20Lloyd,\x20Pleiades\x20Authors\n\n\x20\x20\x20This\x20progr\
478 am\x20is\x20free\x20software:\x20you\x20can\x20redistribute\x20it\x20and\
479 /or\x20modify\n\x20\x20\x20it\x20under\x20the\x20terms\x20of\x20the\x20G\
480 NU\x20General\x20Public\x20License\x20as\x20published\x20by\n\x20\x20\
481 \x20the\x20Free\x20Software\x20Foundation,\x20either\x20version\x203\x20\
482 of\x20the\x20License,\x20or\n\x20\x20\x20(at\x20your\x20option)\x20any\
483 \x20later\x20version.\n\n\x20\x20\x20This\x20program\x20is\x20distribute\
484 d\x20in\x20the\x20hope\x20that\x20it\x20will\x20be\x20useful,\n\x20\x20\
485 \x20but\x20WITHOUT\x20ANY\x20WARRANTY;\x20without\x20even\x20the\x20impl\
486 ied\x20warranty\x20of\n\x20\x20\x20MERCHANTABILITY\x20or\x20FITNESS\x20F\
487 OR\x20A\x20PARTICULAR\x20PURPOSE.\x20\x20See\x20the\n\x20\x20\x20GNU\x20\
488 General\x20Public\x20License\x20for\x20more\x20details.\n\n\x20\x20\x20Y\
489 ou\x20should\x20have\x20received\x20a\x20copy\x20of\x20the\x20GNU\x20Gen\
490 eral\x20Public\x20License\n\x20\x20\x20along\x20with\x20this\x20program.\
491 \x20\x20If\x20not,\x20see\x20<https://www.gnu.org/licenses/>.\n\n\x08\n\
492 \x01\x02\x12\x03\x13\0\x10\n\x08\n\x01\x08\x12\x03\x15\0\x1e\n\t\n\x02\
493 \x08\x0b\x12\x03\x15\0\x1e\n\t\n\x02\x03\0\x12\x03\x17\0\x19\n\x08\n\x01\
494 \x08\x12\x03\x18\09\n\x0b\n\x04\x08\xf3\x84\x01\x12\x03\x18\09\n\n\n\x02\
495 \x05\0\x12\x04\x1a\0\x1f\x01\n\n\n\x03\x05\0\x01\x12\x03\x1a\x05\x15\n\
496 \x0b\n\x04\x05\0\x02\0\x12\x03\x1b\x02\x0e\n\x0c\n\x05\x05\0\x02\0\x01\
497 \x12\x03\x1b\x02\t\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03\x1b\x0c\r\n\x0b\n\
498 \x04\x05\0\x02\x01\x12\x03\x1c\x02\r\n\x0c\n\x05\x05\0\x02\x01\x01\x12\
499 \x03\x1c\x02\x08\n\x0c\n\x05\x05\0\x02\x01\x02\x12\x03\x1c\x0b\x0c\n\x0b\
500 \n\x04\x05\0\x02\x02\x12\x03\x1d\x02\x0f\n\x0c\n\x05\x05\0\x02\x02\x01\
501 \x12\x03\x1d\x02\n\n\x0c\n\x05\x05\0\x02\x02\x02\x12\x03\x1d\r\x0e\n\x0b\
502 \n\x04\x05\0\x02\x03\x12\x03\x1e\x02\x0b\n\x0c\n\x05\x05\0\x02\x03\x01\
503 \x12\x03\x1e\x02\x06\n\x0c\n\x05\x05\0\x02\x03\x02\x12\x03\x1e\t\n\n\t\n\
504 \x02\x04\0\x12\x03!\0O\n\n\n\x03\x04\0\x01\x12\x03!\x08\x16\n\x0b\n\x04\
505 \x04\0\x02\0\x12\x03!\x19M\n\x0c\n\x05\x04\0\x02\0\x04\x12\x03!\x19!\n\
506 \x0c\n\x05\x04\0\x02\0\x06\x12\x03!\"8\n\x0c\n\x05\x04\0\x02\0\x01\x12\
507 \x03!9H\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03!KL\n\n\n\x02\x04\x01\x12\x04\
508 #\0'\x01\n\n\n\x03\x04\x01\x01\x12\x03#\x08\x1e\n\x0b\n\x04\x04\x01\x02\
509 \0\x12\x03$\x02\x13\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03$\x02\x08\n\x0c\
510 \n\x05\x04\x01\x02\0\x01\x12\x03$\t\x0e\n\x0c\n\x05\x04\x01\x02\0\x03\
511 \x12\x03$\x11\x12\n\x0b\n\x04\x04\x01\x02\x01\x12\x03%\x02\x13\n\x0c\n\
512 \x05\x04\x01\x02\x01\x05\x12\x03%\x02\x08\n\x0c\n\x05\x04\x01\x02\x01\
513 \x01\x12\x03%\t\x0e\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03%\x11\x12\n\
514 \x0b\n\x04\x04\x01\x02\x02\x12\x03&\x02\x1c\n\x0c\n\x05\x04\x01\x02\x02\
515 \x06\x12\x03&\x02\x12\n\x0c\n\x05\x04\x01\x02\x02\x01\x12\x03&\x13\x17\n\
516 \x0c\n\x05\x04\x01\x02\x02\x03\x12\x03&\x1a\x1bb\x06proto3\
517";
518
519static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
520
521fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
522 ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
523}
524
525pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
526 file_descriptor_proto_lazy.get(|| {
527 parse_descriptor_proto()
528 })
529}