// This file is generated by rust-protobuf 3.7.2. Do not edit
// .proto file is parsed by protoc 34.1
// @generated

// https://github.com/rust-lang/rust-clippy/issues/702
#![allow(unknown_lints)]
#![allow(clippy::all)]

#![allow(unused_attributes)]
#![cfg_attr(rustfmt, rustfmt::skip)]

#![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_results)]
#![allow(unused_mut)]

//! Generated file from `proto/backup4.proto`
// Generated for lite runtime

/// Generated files are compatible only with the same version
/// of protobuf runtime.
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_7_2;

// @@protoc_insertion_point(message:svrb.backup4.Backup4)
#[derive(PartialEq,Clone,Default,Debug)]
pub struct Backup4 {
    // message fields
    // @@protoc_insertion_point(field:svrb.backup4.Backup4.requests)
    pub requests: ::std::vec::Vec<::std::vec::Vec<u8>>,
    // @@protoc_insertion_point(field:svrb.backup4.Backup4.output)
    pub output: ::std::vec::Vec<u8>,
    // special fields
    // @@protoc_insertion_point(special_field:svrb.backup4.Backup4.special_fields)
    pub special_fields: ::protobuf::SpecialFields,
}

impl<'a> ::std::default::Default for &'a Backup4 {
    fn default() -> &'a Backup4 {
        <Backup4 as ::protobuf::Message>::default_instance()
    }
}

impl Backup4 {
    pub fn new() -> Backup4 {
        ::std::default::Default::default()
    }
}

impl ::protobuf::Message for Backup4 {
    const NAME: &'static str = "Backup4";

    fn is_initialized(&self) -> bool {
        true
    }

    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
        while let Some(tag) = is.read_raw_tag_or_eof()? {
            match tag {
                10 => {
                    self.requests.push(is.read_bytes()?);
                },
                18 => {
                    self.output = is.read_bytes()?;
                },
                tag => {
                    ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
                },
            };
        }
        ::std::result::Result::Ok(())
    }

    // Compute sizes of nested messages
    #[allow(unused_variables)]
    fn compute_size(&self) -> u64 {
        let mut my_size = 0;
        for value in &self.requests {
            my_size += ::protobuf::rt::bytes_size(1, &value);
        };
        if !self.output.is_empty() {
            my_size += ::protobuf::rt::bytes_size(2, &self.output);
        }
        my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
        self.special_fields.cached_size().set(my_size as u32);
        my_size
    }

    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
        for v in &self.requests {
            os.write_bytes(1, &v)?;
        };
        if !self.output.is_empty() {
            os.write_bytes(2, &self.output)?;
        }
        os.write_unknown_fields(self.special_fields.unknown_fields())?;
        ::std::result::Result::Ok(())
    }

    fn special_fields(&self) -> &::protobuf::SpecialFields {
        &self.special_fields
    }

    fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
        &mut self.special_fields
    }

    fn new() -> Backup4 {
        Backup4::new()
    }

    fn clear(&mut self) {
        self.requests.clear();
        self.output.clear();
        self.special_fields.clear();
    }

    fn default_instance() -> &'static Backup4 {
        static instance: Backup4 = Backup4 {
            requests: ::std::vec::Vec::new(),
            output: ::std::vec::Vec::new(),
            special_fields: ::protobuf::SpecialFields::new(),
        };
        &instance
    }
}
