#![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 LiveHuntData {
pub meta: ::protobuf::MessageField<FileMetadata>,
pub behaviour: ::protobuf::MessageField<super::sandbox::BehaviourSummary>,
pub net: ::protobuf::MessageField<super::vtnet::EnrichedNetloc>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a LiveHuntData {
fn default() -> &'a LiveHuntData {
<LiveHuntData as ::protobuf::Message>::default_instance()
}
}
impl LiveHuntData {
pub fn new() -> LiveHuntData {
::std::default::Default::default()
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(3);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, FileMetadata>(
"meta",
|m: &LiveHuntData| { &m.meta },
|m: &mut LiveHuntData| { &mut m.meta },
));
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::sandbox::BehaviourSummary>(
"behaviour",
|m: &LiveHuntData| { &m.behaviour },
|m: &mut LiveHuntData| { &mut m.behaviour },
));
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::vtnet::EnrichedNetloc>(
"net",
|m: &LiveHuntData| { &m.net },
|m: &mut LiveHuntData| { &mut m.net },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<LiveHuntData>(
"LiveHuntData",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for LiveHuntData {
const NAME: &'static str = "LiveHuntData";
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 => {
::protobuf::rt::read_singular_message_into_field(is, &mut self.meta)?;
},
18 => {
::protobuf::rt::read_singular_message_into_field(is, &mut self.behaviour)?;
},
26 => {
::protobuf::rt::read_singular_message_into_field(is, &mut self.net)?;
},
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 let Some(v) = self.meta.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
}
if let Some(v) = self.behaviour.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
}
if let Some(v) = self.net.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
}
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 let Some(v) = self.meta.as_ref() {
::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
}
if let Some(v) = self.behaviour.as_ref() {
::protobuf::rt::write_message_field_with_cached_size(2, v, os)?;
}
if let Some(v) = self.net.as_ref() {
::protobuf::rt::write_message_field_with_cached_size(3, v, os)?;
}
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() -> LiveHuntData {
LiveHuntData::new()
}
fn clear(&mut self) {
self.meta.clear();
self.behaviour.clear();
self.net.clear();
self.special_fields.clear();
}
fn default_instance() -> &'static LiveHuntData {
static instance: LiveHuntData = LiveHuntData {
meta: ::protobuf::MessageField::none(),
behaviour: ::protobuf::MessageField::none(),
net: ::protobuf::MessageField::none(),
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for LiveHuntData {
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("LiveHuntData").unwrap()).clone()
}
}
impl ::std::fmt::Display for LiveHuntData {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for LiveHuntData {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct MainIcon {
pub dhash: ::std::string::String,
pub raw_md5: ::std::string::String,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a MainIcon {
fn default() -> &'a MainIcon {
<MainIcon as ::protobuf::Message>::default_instance()
}
}
impl MainIcon {
pub fn new() -> MainIcon {
::std::default::Default::default()
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(2);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"dhash",
|m: &MainIcon| { &m.dhash },
|m: &mut MainIcon| { &mut m.dhash },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"raw_md5",
|m: &MainIcon| { &m.raw_md5 },
|m: &mut MainIcon| { &mut m.raw_md5 },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<MainIcon>(
"MainIcon",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for MainIcon {
const NAME: &'static str = "MainIcon";
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.dhash = is.read_string()?;
},
18 => {
self.raw_md5 = is.read_string()?;
},
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.dhash.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.dhash);
}
if !self.raw_md5.is_empty() {
my_size += ::protobuf::rt::string_size(2, &self.raw_md5);
}
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.dhash.is_empty() {
os.write_string(1, &self.dhash)?;
}
if !self.raw_md5.is_empty() {
os.write_string(2, &self.raw_md5)?;
}
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() -> MainIcon {
MainIcon::new()
}
fn clear(&mut self) {
self.dhash.clear();
self.raw_md5.clear();
self.special_fields.clear();
}
fn default_instance() -> &'static MainIcon {
static instance: MainIcon = MainIcon {
dhash: ::std::string::String::new(),
raw_md5: ::std::string::String::new(),
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for MainIcon {
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("MainIcon").unwrap()).clone()
}
}
impl ::std::fmt::Display for MainIcon {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for MainIcon {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct GoReSym {
pub version: ::std::string::String,
pub arch: ::std::string::String,
pub os: ::std::string::String,
pub build_id: ::std::string::String,
pub build_info: ::protobuf::MessageField<go_re_sym::BuildInfo>,
pub summary: ::protobuf::MessageField<go_re_sym::Summary>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a GoReSym {
fn default() -> &'a GoReSym {
<GoReSym as ::protobuf::Message>::default_instance()
}
}
impl GoReSym {
pub fn new() -> GoReSym {
::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::<_, _>(
"version",
|m: &GoReSym| { &m.version },
|m: &mut GoReSym| { &mut m.version },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"arch",
|m: &GoReSym| { &m.arch },
|m: &mut GoReSym| { &mut m.arch },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"os",
|m: &GoReSym| { &m.os },
|m: &mut GoReSym| { &mut m.os },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"build_id",
|m: &GoReSym| { &m.build_id },
|m: &mut GoReSym| { &mut m.build_id },
));
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, go_re_sym::BuildInfo>(
"build_info",
|m: &GoReSym| { &m.build_info },
|m: &mut GoReSym| { &mut m.build_info },
));
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, go_re_sym::Summary>(
"summary",
|m: &GoReSym| { &m.summary },
|m: &mut GoReSym| { &mut m.summary },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<GoReSym>(
"GoReSym",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for GoReSym {
const NAME: &'static str = "GoReSym";
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.version = is.read_string()?;
},
18 => {
self.arch = is.read_string()?;
},
26 => {
self.os = is.read_string()?;
},
34 => {
self.build_id = is.read_string()?;
},
42 => {
::protobuf::rt::read_singular_message_into_field(is, &mut self.build_info)?;
},
50 => {
::protobuf::rt::read_singular_message_into_field(is, &mut self.summary)?;
},
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.version.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.version);
}
if !self.arch.is_empty() {
my_size += ::protobuf::rt::string_size(2, &self.arch);
}
if !self.os.is_empty() {
my_size += ::protobuf::rt::string_size(3, &self.os);
}
if !self.build_id.is_empty() {
my_size += ::protobuf::rt::string_size(4, &self.build_id);
}
if let Some(v) = self.build_info.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
}
if let Some(v) = self.summary.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
}
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.version.is_empty() {
os.write_string(1, &self.version)?;
}
if !self.arch.is_empty() {
os.write_string(2, &self.arch)?;
}
if !self.os.is_empty() {
os.write_string(3, &self.os)?;
}
if !self.build_id.is_empty() {
os.write_string(4, &self.build_id)?;
}
if let Some(v) = self.build_info.as_ref() {
::protobuf::rt::write_message_field_with_cached_size(5, v, os)?;
}
if let Some(v) = self.summary.as_ref() {
::protobuf::rt::write_message_field_with_cached_size(6, v, os)?;
}
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() -> GoReSym {
GoReSym::new()
}
fn clear(&mut self) {
self.version.clear();
self.arch.clear();
self.os.clear();
self.build_id.clear();
self.build_info.clear();
self.summary.clear();
self.special_fields.clear();
}
fn default_instance() -> &'static GoReSym {
static instance: GoReSym = GoReSym {
version: ::std::string::String::new(),
arch: ::std::string::String::new(),
os: ::std::string::String::new(),
build_id: ::std::string::String::new(),
build_info: ::protobuf::MessageField::none(),
summary: ::protobuf::MessageField::none(),
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for GoReSym {
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("GoReSym").unwrap()).clone()
}
}
impl ::std::fmt::Display for GoReSym {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for GoReSym {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
pub mod go_re_sym {
#[derive(PartialEq,Clone,Default,Debug)]
pub struct BuildInfo {
pub path: ::std::string::String,
pub dependencies: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
pub settings: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a BuildInfo {
fn default() -> &'a BuildInfo {
<BuildInfo as ::protobuf::Message>::default_instance()
}
}
impl BuildInfo {
pub fn new() -> BuildInfo {
::std::default::Default::default()
}
pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(3);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"path",
|m: &BuildInfo| { &m.path },
|m: &mut BuildInfo| { &mut m.path },
));
fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor_new::<_, _>(
"dependencies",
|m: &BuildInfo| { &m.dependencies },
|m: &mut BuildInfo| { &mut m.dependencies },
));
fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor_new::<_, _>(
"settings",
|m: &BuildInfo| { &m.settings },
|m: &mut BuildInfo| { &mut m.settings },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<BuildInfo>(
"GoReSym.BuildInfo",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for BuildInfo {
const NAME: &'static str = "BuildInfo";
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.path = is.read_string()?;
},
18 => {
let len = is.read_raw_varint32()?;
let old_limit = is.push_limit(len as u64)?;
let mut key = ::std::default::Default::default();
let mut value = ::std::default::Default::default();
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => key = is.read_string()?,
18 => value = is.read_string()?,
_ => ::protobuf::rt::skip_field_for_tag(tag, is)?,
};
}
is.pop_limit(old_limit);
self.dependencies.insert(key, value);
},
26 => {
let len = is.read_raw_varint32()?;
let old_limit = is.push_limit(len as u64)?;
let mut key = ::std::default::Default::default();
let mut value = ::std::default::Default::default();
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => key = is.read_string()?,
18 => value = is.read_string()?,
_ => ::protobuf::rt::skip_field_for_tag(tag, is)?,
};
}
is.pop_limit(old_limit);
self.settings.insert(key, value);
},
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.path.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.path);
}
for (k, v) in &self.dependencies {
let mut entry_size = 0;
entry_size += ::protobuf::rt::string_size(1, &k);
entry_size += ::protobuf::rt::string_size(2, &v);
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size
};
for (k, v) in &self.settings {
let mut entry_size = 0;
entry_size += ::protobuf::rt::string_size(1, &k);
entry_size += ::protobuf::rt::string_size(2, &v);
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size
};
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.path.is_empty() {
os.write_string(1, &self.path)?;
}
for (k, v) in &self.dependencies {
let mut entry_size = 0;
entry_size += ::protobuf::rt::string_size(1, &k);
entry_size += ::protobuf::rt::string_size(2, &v);
os.write_raw_varint32(18)?; os.write_raw_varint32(entry_size as u32)?;
os.write_string(1, &k)?;
os.write_string(2, &v)?;
};
for (k, v) in &self.settings {
let mut entry_size = 0;
entry_size += ::protobuf::rt::string_size(1, &k);
entry_size += ::protobuf::rt::string_size(2, &v);
os.write_raw_varint32(26)?; os.write_raw_varint32(entry_size as u32)?;
os.write_string(1, &k)?;
os.write_string(2, &v)?;
};
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() -> BuildInfo {
BuildInfo::new()
}
fn clear(&mut self) {
self.path.clear();
self.dependencies.clear();
self.settings.clear();
self.special_fields.clear();
}
fn default_instance() -> &'static BuildInfo {
static instance: ::protobuf::rt::Lazy<BuildInfo> = ::protobuf::rt::Lazy::new();
instance.get(BuildInfo::new)
}
}
impl ::protobuf::MessageFull for BuildInfo {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| super::file_descriptor().message_by_package_relative_name("GoReSym.BuildInfo").unwrap()).clone()
}
}
impl ::std::fmt::Display for BuildInfo {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for BuildInfo {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct Summary {
pub num_user_functions: i64,
pub num_std_functions: i64,
pub num_interfaces: i64,
pub num_types: i64,
pub num_dependencies: i64,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a Summary {
fn default() -> &'a Summary {
<Summary as ::protobuf::Message>::default_instance()
}
}
impl Summary {
pub fn new() -> Summary {
::std::default::Default::default()
}
pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(5);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"num_user_functions",
|m: &Summary| { &m.num_user_functions },
|m: &mut Summary| { &mut m.num_user_functions },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"num_std_functions",
|m: &Summary| { &m.num_std_functions },
|m: &mut Summary| { &mut m.num_std_functions },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"num_interfaces",
|m: &Summary| { &m.num_interfaces },
|m: &mut Summary| { &mut m.num_interfaces },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"num_types",
|m: &Summary| { &m.num_types },
|m: &mut Summary| { &mut m.num_types },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"num_dependencies",
|m: &Summary| { &m.num_dependencies },
|m: &mut Summary| { &mut m.num_dependencies },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<Summary>(
"GoReSym.Summary",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for Summary {
const NAME: &'static str = "Summary";
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.num_user_functions = is.read_int64()?;
},
16 => {
self.num_std_functions = is.read_int64()?;
},
24 => {
self.num_interfaces = is.read_int64()?;
},
32 => {
self.num_types = is.read_int64()?;
},
40 => {
self.num_dependencies = is.read_int64()?;
},
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.num_user_functions != 0 {
my_size += ::protobuf::rt::int64_size(1, self.num_user_functions);
}
if self.num_std_functions != 0 {
my_size += ::protobuf::rt::int64_size(2, self.num_std_functions);
}
if self.num_interfaces != 0 {
my_size += ::protobuf::rt::int64_size(3, self.num_interfaces);
}
if self.num_types != 0 {
my_size += ::protobuf::rt::int64_size(4, self.num_types);
}
if self.num_dependencies != 0 {
my_size += ::protobuf::rt::int64_size(5, self.num_dependencies);
}
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.num_user_functions != 0 {
os.write_int64(1, self.num_user_functions)?;
}
if self.num_std_functions != 0 {
os.write_int64(2, self.num_std_functions)?;
}
if self.num_interfaces != 0 {
os.write_int64(3, self.num_interfaces)?;
}
if self.num_types != 0 {
os.write_int64(4, self.num_types)?;
}
if self.num_dependencies != 0 {
os.write_int64(5, self.num_dependencies)?;
}
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() -> Summary {
Summary::new()
}
fn clear(&mut self) {
self.num_user_functions = 0;
self.num_std_functions = 0;
self.num_interfaces = 0;
self.num_types = 0;
self.num_dependencies = 0;
self.special_fields.clear();
}
fn default_instance() -> &'static Summary {
static instance: Summary = Summary {
num_user_functions: 0,
num_std_functions: 0,
num_interfaces: 0,
num_types: 0,
num_dependencies: 0,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for Summary {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| super::file_descriptor().message_by_package_relative_name("GoReSym.Summary").unwrap()).clone()
}
}
impl ::std::fmt::Display for Summary {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for Summary {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct FileMetadata {
pub sha256: ::std::string::String,
pub sha1: ::std::string::String,
pub md5: ::std::string::String,
pub ssdeep: ::std::string::String,
pub imphash: ::std::string::String,
pub vhash: ::std::string::String,
pub telfhash: ::std::string::String,
pub file_name: ::std::string::String,
pub file_type: ::protobuf::EnumOrUnknown<super::filetypes::FileType>,
pub file_size: i64,
pub times_submitted: i32,
pub new_file: bool,
pub tags: ::std::vec::Vec<::std::string::String>,
pub signatures: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
pub submitter: ::protobuf::MessageField<super::submitter::Submitter>,
pub subfile: bool,
pub unique_sources: i32,
pub analysis_stats: ::protobuf::MessageField<super::analysis::AnalysisStats>,
pub magic: ::std::string::String,
pub file_type_tags: ::std::vec::Vec<::std::string::String>,
pub first_submission_date: i64,
pub exiftool: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
pub main_icon: ::protobuf::MessageField<MainIcon>,
pub goresym: ::protobuf::MessageField<GoReSym>,
pub malware_families: ::std::vec::Vec<::std::string::String>,
pub tlsh: ::std::string::String,
pub itw: ::protobuf::MessageField<super::vtnet::EnrichedNetloc>,
pub gti_assessment: ::protobuf::MessageField<super::hunting_gti_score::HuntingGtiScore>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a FileMetadata {
fn default() -> &'a FileMetadata {
<FileMetadata as ::protobuf::Message>::default_instance()
}
}
impl FileMetadata {
pub fn new() -> FileMetadata {
::std::default::Default::default()
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(28);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"sha256",
|m: &FileMetadata| { &m.sha256 },
|m: &mut FileMetadata| { &mut m.sha256 },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"sha1",
|m: &FileMetadata| { &m.sha1 },
|m: &mut FileMetadata| { &mut m.sha1 },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"md5",
|m: &FileMetadata| { &m.md5 },
|m: &mut FileMetadata| { &mut m.md5 },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"ssdeep",
|m: &FileMetadata| { &m.ssdeep },
|m: &mut FileMetadata| { &mut m.ssdeep },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"imphash",
|m: &FileMetadata| { &m.imphash },
|m: &mut FileMetadata| { &mut m.imphash },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"vhash",
|m: &FileMetadata| { &m.vhash },
|m: &mut FileMetadata| { &mut m.vhash },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"telfhash",
|m: &FileMetadata| { &m.telfhash },
|m: &mut FileMetadata| { &mut m.telfhash },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"file_name",
|m: &FileMetadata| { &m.file_name },
|m: &mut FileMetadata| { &mut m.file_name },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"file_type",
|m: &FileMetadata| { &m.file_type },
|m: &mut FileMetadata| { &mut m.file_type },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"file_size",
|m: &FileMetadata| { &m.file_size },
|m: &mut FileMetadata| { &mut m.file_size },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"times_submitted",
|m: &FileMetadata| { &m.times_submitted },
|m: &mut FileMetadata| { &mut m.times_submitted },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"new_file",
|m: &FileMetadata| { &m.new_file },
|m: &mut FileMetadata| { &mut m.new_file },
));
fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
"tags",
|m: &FileMetadata| { &m.tags },
|m: &mut FileMetadata| { &mut m.tags },
));
fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor_new::<_, _>(
"signatures",
|m: &FileMetadata| { &m.signatures },
|m: &mut FileMetadata| { &mut m.signatures },
));
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::submitter::Submitter>(
"submitter",
|m: &FileMetadata| { &m.submitter },
|m: &mut FileMetadata| { &mut m.submitter },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"subfile",
|m: &FileMetadata| { &m.subfile },
|m: &mut FileMetadata| { &mut m.subfile },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"unique_sources",
|m: &FileMetadata| { &m.unique_sources },
|m: &mut FileMetadata| { &mut m.unique_sources },
));
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::analysis::AnalysisStats>(
"analysis_stats",
|m: &FileMetadata| { &m.analysis_stats },
|m: &mut FileMetadata| { &mut m.analysis_stats },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"magic",
|m: &FileMetadata| { &m.magic },
|m: &mut FileMetadata| { &mut m.magic },
));
fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
"file_type_tags",
|m: &FileMetadata| { &m.file_type_tags },
|m: &mut FileMetadata| { &mut m.file_type_tags },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"first_submission_date",
|m: &FileMetadata| { &m.first_submission_date },
|m: &mut FileMetadata| { &mut m.first_submission_date },
));
fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor_new::<_, _>(
"exiftool",
|m: &FileMetadata| { &m.exiftool },
|m: &mut FileMetadata| { &mut m.exiftool },
));
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, MainIcon>(
"main_icon",
|m: &FileMetadata| { &m.main_icon },
|m: &mut FileMetadata| { &mut m.main_icon },
));
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, GoReSym>(
"goresym",
|m: &FileMetadata| { &m.goresym },
|m: &mut FileMetadata| { &mut m.goresym },
));
fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
"malware_families",
|m: &FileMetadata| { &m.malware_families },
|m: &mut FileMetadata| { &mut m.malware_families },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"tlsh",
|m: &FileMetadata| { &m.tlsh },
|m: &mut FileMetadata| { &mut m.tlsh },
));
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::vtnet::EnrichedNetloc>(
"itw",
|m: &FileMetadata| { &m.itw },
|m: &mut FileMetadata| { &mut m.itw },
));
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::hunting_gti_score::HuntingGtiScore>(
"gti_assessment",
|m: &FileMetadata| { &m.gti_assessment },
|m: &mut FileMetadata| { &mut m.gti_assessment },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<FileMetadata>(
"FileMetadata",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for FileMetadata {
const NAME: &'static str = "FileMetadata";
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.sha256 = is.read_string()?;
},
18 => {
self.sha1 = is.read_string()?;
},
26 => {
self.md5 = is.read_string()?;
},
34 => {
self.ssdeep = is.read_string()?;
},
42 => {
self.imphash = is.read_string()?;
},
50 => {
self.vhash = is.read_string()?;
},
218 => {
self.telfhash = is.read_string()?;
},
58 => {
self.file_name = is.read_string()?;
},
64 => {
self.file_type = is.read_enum_or_unknown()?;
},
72 => {
self.file_size = is.read_int64()?;
},
80 => {
self.times_submitted = is.read_int32()?;
},
88 => {
self.new_file = is.read_bool()?;
},
98 => {
self.tags.push(is.read_string()?);
},
106 => {
let len = is.read_raw_varint32()?;
let old_limit = is.push_limit(len as u64)?;
let mut key = ::std::default::Default::default();
let mut value = ::std::default::Default::default();
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => key = is.read_string()?,
18 => value = is.read_string()?,
_ => ::protobuf::rt::skip_field_for_tag(tag, is)?,
};
}
is.pop_limit(old_limit);
self.signatures.insert(key, value);
},
122 => {
::protobuf::rt::read_singular_message_into_field(is, &mut self.submitter)?;
},
128 => {
self.subfile = is.read_bool()?;
},
136 => {
self.unique_sources = is.read_int32()?;
},
146 => {
::protobuf::rt::read_singular_message_into_field(is, &mut self.analysis_stats)?;
},
154 => {
self.magic = is.read_string()?;
},
162 => {
self.file_type_tags.push(is.read_string()?);
},
176 => {
self.first_submission_date = is.read_int64()?;
},
202 => {
let len = is.read_raw_varint32()?;
let old_limit = is.push_limit(len as u64)?;
let mut key = ::std::default::Default::default();
let mut value = ::std::default::Default::default();
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => key = is.read_string()?,
18 => value = is.read_string()?,
_ => ::protobuf::rt::skip_field_for_tag(tag, is)?,
};
}
is.pop_limit(old_limit);
self.exiftool.insert(key, value);
},
210 => {
::protobuf::rt::read_singular_message_into_field(is, &mut self.main_icon)?;
},
226 => {
::protobuf::rt::read_singular_message_into_field(is, &mut self.goresym)?;
},
242 => {
self.malware_families.push(is.read_string()?);
},
250 => {
self.tlsh = is.read_string()?;
},
258 => {
::protobuf::rt::read_singular_message_into_field(is, &mut self.itw)?;
},
290 => {
::protobuf::rt::read_singular_message_into_field(is, &mut self.gti_assessment)?;
},
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.sha256.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.sha256);
}
if !self.sha1.is_empty() {
my_size += ::protobuf::rt::string_size(2, &self.sha1);
}
if !self.md5.is_empty() {
my_size += ::protobuf::rt::string_size(3, &self.md5);
}
if !self.ssdeep.is_empty() {
my_size += ::protobuf::rt::string_size(4, &self.ssdeep);
}
if !self.imphash.is_empty() {
my_size += ::protobuf::rt::string_size(5, &self.imphash);
}
if !self.vhash.is_empty() {
my_size += ::protobuf::rt::string_size(6, &self.vhash);
}
if !self.telfhash.is_empty() {
my_size += ::protobuf::rt::string_size(27, &self.telfhash);
}
if !self.file_name.is_empty() {
my_size += ::protobuf::rt::string_size(7, &self.file_name);
}
if self.file_type != ::protobuf::EnumOrUnknown::new(super::filetypes::FileType::UNKNOWN) {
my_size += ::protobuf::rt::int32_size(8, self.file_type.value());
}
if self.file_size != 0 {
my_size += ::protobuf::rt::int64_size(9, self.file_size);
}
if self.times_submitted != 0 {
my_size += ::protobuf::rt::int32_size(10, self.times_submitted);
}
if self.new_file != false {
my_size += 1 + 1;
}
for value in &self.tags {
my_size += ::protobuf::rt::string_size(12, &value);
};
for (k, v) in &self.signatures {
let mut entry_size = 0;
entry_size += ::protobuf::rt::string_size(1, &k);
entry_size += ::protobuf::rt::string_size(2, &v);
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size
};
if let Some(v) = self.submitter.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
}
if self.subfile != false {
my_size += 2 + 1;
}
if self.unique_sources != 0 {
my_size += ::protobuf::rt::int32_size(17, self.unique_sources);
}
if let Some(v) = self.analysis_stats.as_ref() {
let len = v.compute_size();
my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
}
if !self.magic.is_empty() {
my_size += ::protobuf::rt::string_size(19, &self.magic);
}
for value in &self.file_type_tags {
my_size += ::protobuf::rt::string_size(20, &value);
};
if self.first_submission_date != 0 {
my_size += ::protobuf::rt::int64_size(22, self.first_submission_date);
}
for (k, v) in &self.exiftool {
let mut entry_size = 0;
entry_size += ::protobuf::rt::string_size(1, &k);
entry_size += ::protobuf::rt::string_size(2, &v);
my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size
};
if let Some(v) = self.main_icon.as_ref() {
let len = v.compute_size();
my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
}
if let Some(v) = self.goresym.as_ref() {
let len = v.compute_size();
my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
}
for value in &self.malware_families {
my_size += ::protobuf::rt::string_size(30, &value);
};
if !self.tlsh.is_empty() {
my_size += ::protobuf::rt::string_size(31, &self.tlsh);
}
if let Some(v) = self.itw.as_ref() {
let len = v.compute_size();
my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
}
if let Some(v) = self.gti_assessment.as_ref() {
let len = v.compute_size();
my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
}
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.sha256.is_empty() {
os.write_string(1, &self.sha256)?;
}
if !self.sha1.is_empty() {
os.write_string(2, &self.sha1)?;
}
if !self.md5.is_empty() {
os.write_string(3, &self.md5)?;
}
if !self.ssdeep.is_empty() {
os.write_string(4, &self.ssdeep)?;
}
if !self.imphash.is_empty() {
os.write_string(5, &self.imphash)?;
}
if !self.vhash.is_empty() {
os.write_string(6, &self.vhash)?;
}
if !self.telfhash.is_empty() {
os.write_string(27, &self.telfhash)?;
}
if !self.file_name.is_empty() {
os.write_string(7, &self.file_name)?;
}
if self.file_type != ::protobuf::EnumOrUnknown::new(super::filetypes::FileType::UNKNOWN) {
os.write_enum(8, ::protobuf::EnumOrUnknown::value(&self.file_type))?;
}
if self.file_size != 0 {
os.write_int64(9, self.file_size)?;
}
if self.times_submitted != 0 {
os.write_int32(10, self.times_submitted)?;
}
if self.new_file != false {
os.write_bool(11, self.new_file)?;
}
for v in &self.tags {
os.write_string(12, &v)?;
};
for (k, v) in &self.signatures {
let mut entry_size = 0;
entry_size += ::protobuf::rt::string_size(1, &k);
entry_size += ::protobuf::rt::string_size(2, &v);
os.write_raw_varint32(106)?; os.write_raw_varint32(entry_size as u32)?;
os.write_string(1, &k)?;
os.write_string(2, &v)?;
};
if let Some(v) = self.submitter.as_ref() {
::protobuf::rt::write_message_field_with_cached_size(15, v, os)?;
}
if self.subfile != false {
os.write_bool(16, self.subfile)?;
}
if self.unique_sources != 0 {
os.write_int32(17, self.unique_sources)?;
}
if let Some(v) = self.analysis_stats.as_ref() {
::protobuf::rt::write_message_field_with_cached_size(18, v, os)?;
}
if !self.magic.is_empty() {
os.write_string(19, &self.magic)?;
}
for v in &self.file_type_tags {
os.write_string(20, &v)?;
};
if self.first_submission_date != 0 {
os.write_int64(22, self.first_submission_date)?;
}
for (k, v) in &self.exiftool {
let mut entry_size = 0;
entry_size += ::protobuf::rt::string_size(1, &k);
entry_size += ::protobuf::rt::string_size(2, &v);
os.write_raw_varint32(202)?; os.write_raw_varint32(entry_size as u32)?;
os.write_string(1, &k)?;
os.write_string(2, &v)?;
};
if let Some(v) = self.main_icon.as_ref() {
::protobuf::rt::write_message_field_with_cached_size(26, v, os)?;
}
if let Some(v) = self.goresym.as_ref() {
::protobuf::rt::write_message_field_with_cached_size(28, v, os)?;
}
for v in &self.malware_families {
os.write_string(30, &v)?;
};
if !self.tlsh.is_empty() {
os.write_string(31, &self.tlsh)?;
}
if let Some(v) = self.itw.as_ref() {
::protobuf::rt::write_message_field_with_cached_size(32, v, os)?;
}
if let Some(v) = self.gti_assessment.as_ref() {
::protobuf::rt::write_message_field_with_cached_size(36, v, os)?;
}
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() -> FileMetadata {
FileMetadata::new()
}
fn clear(&mut self) {
self.sha256.clear();
self.sha1.clear();
self.md5.clear();
self.ssdeep.clear();
self.imphash.clear();
self.vhash.clear();
self.telfhash.clear();
self.file_name.clear();
self.file_type = ::protobuf::EnumOrUnknown::new(super::filetypes::FileType::UNKNOWN);
self.file_size = 0;
self.times_submitted = 0;
self.new_file = false;
self.tags.clear();
self.signatures.clear();
self.submitter.clear();
self.subfile = false;
self.unique_sources = 0;
self.analysis_stats.clear();
self.magic.clear();
self.file_type_tags.clear();
self.first_submission_date = 0;
self.exiftool.clear();
self.main_icon.clear();
self.goresym.clear();
self.malware_families.clear();
self.tlsh.clear();
self.itw.clear();
self.gti_assessment.clear();
self.special_fields.clear();
}
fn default_instance() -> &'static FileMetadata {
static instance: ::protobuf::rt::Lazy<FileMetadata> = ::protobuf::rt::Lazy::new();
instance.get(FileMetadata::new)
}
}
impl ::protobuf::MessageFull for FileMetadata {
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("FileMetadata").unwrap()).clone()
}
}
impl ::std::fmt::Display for FileMetadata {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for FileMetadata {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
static file_descriptor_proto_data: &'static [u8] = b"\
\n\x0evt/titan.proto\x12\x08vt.titan\x1a\x11vt/analysis.proto\x1a\x12vt/\
filetypes.proto\x1a\x1avt/hunting_gti_score.proto\x1a\x10vt/sandbox.prot\
o\x1a\x12vt/submitter.proto\x1a\x0evt/vtnet.proto\x1a\nyara.proto\"\xcd\
\x04\n\x0cLiveHuntData\x12\xad\x01\n\x04meta\x18\x01\x20\x01(\x0b2\x16.v\
t.titan.FileMetadataR\x04metaB\x80\x01\x82\x93\x19|\n\x08metadata\x1ap\n\
@vt.metadata\x20is\x20supported\x20only\x20in\x20rulesets\x20matching\
\x20against\x20files\x12&this\x20field\x20is\x20supported\x20for\x20file\
s\x20only\x1a\x04file\x12\xb8\x01\n\tbehaviour\x18\x02\x20\x01(\x0b2!.vt\
.fileanalysis.BehaviourSummaryR\tbehaviourBw\x82\x93\x19s\x1aq\nAvt.beha\
viour\x20is\x20supported\x20only\x20in\x20rulesets\x20matching\x20agains\
t\x20files\x12&this\x20field\x20is\x20supported\x20for\x20files\x20only\
\x1a\x04file\x12\xd1\x01\n\x03net\x18\x03\x20\x01(\x0b2\x16.vt.net.Enric\
hedNetlocR\x03netB\xa6\x01\x82\x93\x19\xa1\x01\x1a\x9e\x01\n:vt.net\x20i\
s\x20not\x20supported\x20in\x20rulesets\x20matching\x20against\x20files\
\x12Gthis\x20field\x20is\x20not\x20supported\x20for\x20files,\x20conside\
r\x20using\x20`vt.metadata.itw`\x1a\x03url\x1a\x06domain\x1a\nip_address\
\"9\n\x08MainIcon\x12\x14\n\x05dhash\x18\x01\x20\x01(\tR\x05dhash\x12\
\x17\n\x07raw_md5\x18\x02\x20\x01(\tR\x06rawMd5\"\xe2\x05\n\x07GoReSym\
\x12\x18\n\x07version\x18\x01\x20\x01(\tR\x07version\x12\x12\n\x04arch\
\x18\x02\x20\x01(\tR\x04arch\x12\x0e\n\x02os\x18\x03\x20\x01(\tR\x02os\
\x12\x19\n\x08build_id\x18\x04\x20\x01(\tR\x07buildId\x12:\n\nbuild_info\
\x18\x05\x20\x01(\x0b2\x1b.vt.titan.GoReSym.BuildInfoR\tbuildInfo\x123\n\
\x07summary\x18\x06\x20\x01(\x0b2\x19.vt.titan.GoReSym.SummaryR\x07summa\
ry\x1a\xb7\x02\n\tBuildInfo\x12\x12\n\x04path\x18\x01\x20\x01(\tR\x04pat\
h\x12Q\n\x0cdependencies\x18\x02\x20\x03(\x0b2-.vt.titan.GoReSym.BuildIn\
fo.DependenciesEntryR\x0cdependencies\x12E\n\x08settings\x18\x03\x20\x03\
(\x0b2).vt.titan.GoReSym.BuildInfo.SettingsEntryR\x08settings\x1a?\n\x11\
DependenciesEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\
\x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01\x1a;\n\rSettingsEntry\
\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\
\x20\x01(\tR\x05value:\x028\x01\x1a\xd2\x01\n\x07Summary\x12,\n\x12num_u\
ser_functions\x18\x01\x20\x01(\x03R\x10numUserFunctions\x12*\n\x11num_st\
d_functions\x18\x02\x20\x01(\x03R\x0fnumStdFunctions\x12%\n\x0enum_inter\
faces\x18\x03\x20\x01(\x03R\rnumInterfaces\x12\x1b\n\tnum_types\x18\x04\
\x20\x01(\x03R\x08numTypes\x12)\n\x10num_dependencies\x18\x05\x20\x01(\
\x03R\x0fnumDependencies\"\xc6\x0b\n\x0cFileMetadata\x12\x1e\n\x06sha256\
\x18\x01\x20\x01(\tR\x06sha256B\x06\x82\x93\x19\x02\x20\x01\x12\x1a\n\
\x04sha1\x18\x02\x20\x01(\tR\x04sha1B\x06\x82\x93\x19\x02\x20\x01\x12\
\x18\n\x03md5\x18\x03\x20\x01(\tR\x03md5B\x06\x82\x93\x19\x02\x20\x01\
\x12\x16\n\x06ssdeep\x18\x04\x20\x01(\tR\x06ssdeep\x12\x20\n\x07imphash\
\x18\x05\x20\x01(\tR\x07imphashB\x06\x82\x93\x19\x02\x20\x01\x12\x1c\n\
\x05vhash\x18\x06\x20\x01(\tR\x05vhashB\x06\x82\x93\x19\x02\x20\x01\x12\
\"\n\x08telfhash\x18\x1b\x20\x01(\tR\x08telfhashB\x06\x82\x93\x19\x02\
\x20\x01\x12\x1b\n\tfile_name\x18\x07\x20\x01(\tR\x08fileName\x126\n\tfi\
le_type\x18\x08\x20\x01(\x0e2\x19.vt.fileanalysis.FileTypeR\x08fileType\
\x12\x1b\n\tfile_size\x18\t\x20\x01(\x03R\x08fileSize\x12'\n\x0ftimes_su\
bmitted\x18\n\x20\x01(\x05R\x0etimesSubmitted\x12\x19\n\x08new_file\x18\
\x0b\x20\x01(\x08R\x07newFile\x12\x12\n\x04tags\x18\x0c\x20\x03(\tR\x04t\
ags\x12F\n\nsignatures\x18\r\x20\x03(\x0b2&.vt.titan.FileMetadata.Signat\
uresEntryR\nsignatures\x12\xa7\x01\n\tsubmitter\x18\x0f\x20\x01(\x0b2\
\x17.vt.submitter.SubmitterR\tsubmitterBp\x82\x93\x19l\x1aj\n3vt.metadat\
a.submitter\x20is\x20not\x20supported\x20in\x20Retrohunt\x12(this\x20fie\
ld\x20is\x20not\x20supported\x20in\x20Retrohunt\"\tretrohunt\x12\x18\n\
\x07subfile\x18\x10\x20\x01(\x08R\x07subfile\x12%\n\x0eunique_sources\
\x18\x11\x20\x01(\x05R\runiqueSources\x12A\n\x0eanalysis_stats\x18\x12\
\x20\x01(\x0b2\x1a.vt.analysis.AnalysisStatsR\ranalysisStats\x12\x14\n\
\x05magic\x18\x13\x20\x01(\tR\x05magic\x12$\n\x0efile_type_tags\x18\x14\
\x20\x03(\tR\x0cfileTypeTags\x122\n\x15first_submission_date\x18\x16\x20\
\x01(\x03R\x13firstSubmissionDate\x12@\n\x08exiftool\x18\x19\x20\x03(\
\x0b2$.vt.titan.FileMetadata.ExiftoolEntryR\x08exiftool\x12/\n\tmain_ico\
n\x18\x1a\x20\x01(\x0b2\x12.vt.titan.MainIconR\x08mainIcon\x12+\n\x07gor\
esym\x18\x1c\x20\x01(\x0b2\x11.vt.titan.GoReSymR\x07goresym\x12)\n\x10ma\
lware_families\x18\x1e\x20\x03(\tR\x0fmalwareFamilies\x12\x12\n\x04tlsh\
\x18\x1f\x20\x01(\tR\x04tlsh\x12(\n\x03itw\x18\x20\x20\x01(\x0b2\x16.vt.\
net.EnrichedNetlocR\x03itw\x12\xae\x01\n\x0egti_assessment\x18$\x20\x01(\
\x0b2%.vt.hunting_gti_score.HuntingGtiScoreR\rgtiAssessmentB`\x82\x93\
\x19\\\x1aZ\n(unknown\x20field\x20or\x20method\x20`gti_assessment`\x12\"\
this\x20field\x20or\x20method\x20doesn't\x20exist\x1a\x03gti\x1a\x05staf\
f\x1a=\n\x0fSignaturesEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\
\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01\x1a;\n\rExift\
oolEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\
\x18\x02\x20\x01(\tR\x05value:\x028\x01B.\xfa\x92\x19*\n\x02vt\x12\x15vt\
.titan.LiveHuntData\x1a\x02vt\"\tvt-moduleb\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(7);
deps.push(super::analysis::file_descriptor().clone());
deps.push(super::filetypes::file_descriptor().clone());
deps.push(super::hunting_gti_score::file_descriptor().clone());
deps.push(super::sandbox::file_descriptor().clone());
deps.push(super::submitter::file_descriptor().clone());
deps.push(super::vtnet::file_descriptor().clone());
deps.push(super::yara::file_descriptor().clone());
let mut messages = ::std::vec::Vec::with_capacity(6);
messages.push(LiveHuntData::generated_message_descriptor_data());
messages.push(MainIcon::generated_message_descriptor_data());
messages.push(GoReSym::generated_message_descriptor_data());
messages.push(FileMetadata::generated_message_descriptor_data());
messages.push(go_re_sym::BuildInfo::generated_message_descriptor_data());
messages.push(go_re_sym::Summary::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)
})
}