#![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)]
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_7_2;
#[derive(PartialEq,Clone,Default,Debug)]
pub struct AnalysisStats {
pub malicious: i32,
pub suspicious: i32,
pub undetected: i32,
pub harmless: i32,
pub failure: i32,
pub type_unsupported: i32,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a AnalysisStats {
fn default() -> &'a AnalysisStats {
<AnalysisStats as ::protobuf::Message>::default_instance()
}
}
impl AnalysisStats {
pub fn new() -> AnalysisStats {
::std::default::Default::default()
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(6);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"malicious",
|m: &AnalysisStats| { &m.malicious },
|m: &mut AnalysisStats| { &mut m.malicious },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"suspicious",
|m: &AnalysisStats| { &m.suspicious },
|m: &mut AnalysisStats| { &mut m.suspicious },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"undetected",
|m: &AnalysisStats| { &m.undetected },
|m: &mut AnalysisStats| { &mut m.undetected },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"harmless",
|m: &AnalysisStats| { &m.harmless },
|m: &mut AnalysisStats| { &mut m.harmless },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"failure",
|m: &AnalysisStats| { &m.failure },
|m: &mut AnalysisStats| { &mut m.failure },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"type_unsupported",
|m: &AnalysisStats| { &m.type_unsupported },
|m: &mut AnalysisStats| { &mut m.type_unsupported },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<AnalysisStats>(
"AnalysisStats",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for AnalysisStats {
const NAME: &'static str = "AnalysisStats";
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 {
8 => {
self.malicious = is.read_int32()?;
},
16 => {
self.suspicious = is.read_int32()?;
},
24 => {
self.undetected = is.read_int32()?;
},
32 => {
self.harmless = is.read_int32()?;
},
40 => {
self.failure = is.read_int32()?;
},
48 => {
self.type_unsupported = is.read_int32()?;
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if self.malicious != 0 {
my_size += ::protobuf::rt::int32_size(1, self.malicious);
}
if self.suspicious != 0 {
my_size += ::protobuf::rt::int32_size(2, self.suspicious);
}
if self.undetected != 0 {
my_size += ::protobuf::rt::int32_size(3, self.undetected);
}
if self.harmless != 0 {
my_size += ::protobuf::rt::int32_size(4, self.harmless);
}
if self.failure != 0 {
my_size += ::protobuf::rt::int32_size(5, self.failure);
}
if self.type_unsupported != 0 {
my_size += ::protobuf::rt::int32_size(6, self.type_unsupported);
}
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<()> {
if self.malicious != 0 {
os.write_int32(1, self.malicious)?;
}
if self.suspicious != 0 {
os.write_int32(2, self.suspicious)?;
}
if self.undetected != 0 {
os.write_int32(3, self.undetected)?;
}
if self.harmless != 0 {
os.write_int32(4, self.harmless)?;
}
if self.failure != 0 {
os.write_int32(5, self.failure)?;
}
if self.type_unsupported != 0 {
os.write_int32(6, self.type_unsupported)?;
}
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() -> AnalysisStats {
AnalysisStats::new()
}
fn clear(&mut self) {
self.malicious = 0;
self.suspicious = 0;
self.undetected = 0;
self.harmless = 0;
self.failure = 0;
self.type_unsupported = 0;
self.special_fields.clear();
}
fn default_instance() -> &'static AnalysisStats {
static instance: AnalysisStats = AnalysisStats {
malicious: 0,
suspicious: 0,
undetected: 0,
harmless: 0,
failure: 0,
type_unsupported: 0,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for AnalysisStats {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("AnalysisStats").unwrap()).clone()
}
}
impl ::std::fmt::Display for AnalysisStats {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for AnalysisStats {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
static file_descriptor_proto_data: &'static [u8] = b"\
\n\x11vt/analysis.proto\x12\x0bvt.analysis\x1a\nyara.proto\"\xce\x01\n\r\
AnalysisStats\x12\x1c\n\tmalicious\x18\x01\x20\x01(\x05R\tmalicious\x12\
\x1e\n\nsuspicious\x18\x02\x20\x01(\x05R\nsuspicious\x12\x1e\n\nundetect\
ed\x18\x03\x20\x01(\x05R\nundetected\x12\x1a\n\x08harmless\x18\x04\x20\
\x01(\x05R\x08harmless\x12\x18\n\x07failure\x18\x05\x20\x01(\x05R\x07fai\
lure\x12)\n\x10type_unsupported\x18\x06\x20\x01(\x05R\x0ftypeUnsupported\
b\x06proto3\
";
fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
file_descriptor_proto_lazy.get(|| {
::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
})
}
pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
file_descriptor.get(|| {
let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
let mut deps = ::std::vec::Vec::with_capacity(1);
deps.push(super::yara::file_descriptor().clone());
let mut messages = ::std::vec::Vec::with_capacity(1);
messages.push(AnalysisStats::generated_message_descriptor_data());
let mut enums = ::std::vec::Vec::with_capacity(0);
::protobuf::reflect::GeneratedFileDescriptor::new_generated(
file_descriptor_proto(),
deps,
messages,
enums,
)
});
::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
})
}