#![allow(unknown_lints)]
#![allow(clippy::all)]
#![allow(unused_attributes)]
#![cfg_attr(rustfmt, rustfmt::skip)]
#![allow(box_pointers)]
#![allow(dead_code)]
#![allow(missing_docs)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(non_upper_case_globals)]
#![allow(trivial_casts)]
#![allow(unused_imports)]
#![allow(unused_results)]
#[derive(PartialEq,Clone,Default)]
pub struct TrainingRun {
pub generation: i32,
pub heigh: f32,
pub descent_speed: f32,
pub descent_time: f32,
pub id: i32,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a TrainingRun {
fn default() -> &'a TrainingRun {
<TrainingRun as ::protobuf::Message>::default_instance()
}
}
impl TrainingRun {
pub fn new() -> TrainingRun {
::std::default::Default::default()
}
pub fn get_generation(&self) -> i32 {
self.generation
}
pub fn clear_generation(&mut self) {
self.generation = 0;
}
pub fn set_generation(&mut self, v: i32) {
self.generation = v;
}
pub fn get_heigh(&self) -> f32 {
self.heigh
}
pub fn clear_heigh(&mut self) {
self.heigh = 0.;
}
pub fn set_heigh(&mut self, v: f32) {
self.heigh = v;
}
pub fn get_descent_speed(&self) -> f32 {
self.descent_speed
}
pub fn clear_descent_speed(&mut self) {
self.descent_speed = 0.;
}
pub fn set_descent_speed(&mut self, v: f32) {
self.descent_speed = v;
}
pub fn get_descent_time(&self) -> f32 {
self.descent_time
}
pub fn clear_descent_time(&mut self) {
self.descent_time = 0.;
}
pub fn set_descent_time(&mut self, v: f32) {
self.descent_time = v;
}
pub fn get_id(&self) -> i32 {
self.id
}
pub fn clear_id(&mut self) {
self.id = 0;
}
pub fn set_id(&mut self, v: i32) {
self.id = v;
}
}
impl ::protobuf::Message for TrainingRun {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int32()?;
self.generation = tmp;
},
2 => {
if wire_type != ::protobuf::wire_format::WireTypeFixed32 {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_float()?;
self.heigh = tmp;
},
3 => {
if wire_type != ::protobuf::wire_format::WireTypeFixed32 {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_float()?;
self.descent_speed = tmp;
},
4 => {
if wire_type != ::protobuf::wire_format::WireTypeFixed32 {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_float()?;
self.descent_time = tmp;
},
5 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int32()?;
self.id = tmp;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if self.generation != 0 {
my_size += ::protobuf::rt::value_size(1, self.generation, ::protobuf::wire_format::WireTypeVarint);
}
if self.heigh != 0. {
my_size += 5;
}
if self.descent_speed != 0. {
my_size += 5;
}
if self.descent_time != 0. {
my_size += 5;
}
if self.id != 0 {
my_size += ::protobuf::rt::value_size(5, self.id, ::protobuf::wire_format::WireTypeVarint);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if self.generation != 0 {
os.write_int32(1, self.generation)?;
}
if self.heigh != 0. {
os.write_float(2, self.heigh)?;
}
if self.descent_speed != 0. {
os.write_float(3, self.descent_speed)?;
}
if self.descent_time != 0. {
os.write_float(4, self.descent_time)?;
}
if self.id != 0 {
os.write_int32(5, self.id)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> TrainingRun {
TrainingRun::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
"generation",
|m: &TrainingRun| { &m.generation },
|m: &mut TrainingRun| { &mut m.generation },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>(
"heigh",
|m: &TrainingRun| { &m.heigh },
|m: &mut TrainingRun| { &mut m.heigh },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>(
"descent_speed",
|m: &TrainingRun| { &m.descent_speed },
|m: &mut TrainingRun| { &mut m.descent_speed },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>(
"descent_time",
|m: &TrainingRun| { &m.descent_time },
|m: &mut TrainingRun| { &mut m.descent_time },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
"id",
|m: &TrainingRun| { &m.id },
|m: &mut TrainingRun| { &mut m.id },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<TrainingRun>(
"TrainingRun",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static TrainingRun {
static instance: ::protobuf::rt::LazyV2<TrainingRun> = ::protobuf::rt::LazyV2::INIT;
instance.get(TrainingRun::new)
}
}
impl ::protobuf::Clear for TrainingRun {
fn clear(&mut self) {
self.generation = 0;
self.heigh = 0.;
self.descent_speed = 0.;
self.descent_time = 0.;
self.id = 0;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for TrainingRun {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for TrainingRun {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
static file_descriptor_proto_data: &'static [u8] = b"\
\n\x1aschemas/training-run.proto\"\x9b\x01\n\x0bTrainingRun\x12\x1e\n\ng\
eneration\x18\x01\x20\x01(\x05R\ngeneration\x12\x14\n\x05heigh\x18\x02\
\x20\x01(\x02R\x05heigh\x12#\n\rdescent_speed\x18\x03\x20\x01(\x02R\x0cd\
escentSpeed\x12!\n\x0cdescent_time\x18\x04\x20\x01(\x02R\x0bdescentTime\
\x12\x0e\n\x02id\x18\x05\x20\x01(\x05R\x02idJ\xbd\x02\n\x06\x12\x04\0\0\
\x08\x01\n\x08\n\x01\x0c\x12\x03\0\0\x12\n\n\n\x02\x04\0\x12\x04\x02\0\
\x08\x01\n\n\n\x03\x04\0\x01\x12\x03\x02\x08\x13\n\x0b\n\x04\x04\0\x02\0\
\x12\x03\x03\x08\x1d\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03\x03\x08\r\n\x0c\
\n\x05\x04\0\x02\0\x01\x12\x03\x03\x0e\x18\n\x0c\n\x05\x04\0\x02\0\x03\
\x12\x03\x03\x1b\x1c\n\x0b\n\x04\x04\0\x02\x01\x12\x03\x04\x08\x18\n\x0c\
\n\x05\x04\0\x02\x01\x05\x12\x03\x04\x08\r\n\x0c\n\x05\x04\0\x02\x01\x01\
\x12\x03\x04\x0e\x13\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03\x04\x16\x17\n\
\x0b\n\x04\x04\0\x02\x02\x12\x03\x05\x08\x20\n\x0c\n\x05\x04\0\x02\x02\
\x05\x12\x03\x05\x08\r\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03\x05\x0e\x1b\
\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03\x05\x1e\x1f\n\x0b\n\x04\x04\0\x02\
\x03\x12\x03\x06\x08\x1f\n\x0c\n\x05\x04\0\x02\x03\x05\x12\x03\x06\x08\r\
\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03\x06\x0e\x1a\n\x0c\n\x05\x04\0\x02\
\x03\x03\x12\x03\x06\x1d\x1e\n\x0b\n\x04\x04\0\x02\x04\x12\x03\x07\x08\
\x15\n\x0c\n\x05\x04\0\x02\x04\x05\x12\x03\x07\x08\r\n\x0c\n\x05\x04\0\
\x02\x04\x01\x12\x03\x07\x0e\x10\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03\
\x07\x13\x14b\x06proto3\
";
static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
}
pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
file_descriptor_proto_lazy.get(|| {
parse_descriptor_proto()
})
}