#![allow(unknown_lints)]
#![allow(clippy::all)]
#![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(unsafe_code)]
#![allow(unused_imports)]
#![allow(unused_results)]
use protobuf::Message as Message_imported_for_functions;
use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions;
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_7_0;
#[derive(PartialEq,Clone,Default)]
pub struct TestSuite {
pub started_at: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>,
pub completed_at: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>,
pub results: ::protobuf::RepeatedField<super::test_run::TestRun>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a TestSuite {
fn default() -> &'a TestSuite {
<TestSuite as ::protobuf::Message>::default_instance()
}
}
impl TestSuite {
pub fn new() -> TestSuite {
::std::default::Default::default()
}
pub fn get_started_at(&self) -> &::protobuf::well_known_types::Timestamp {
self.started_at.as_ref().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::default_instance())
}
pub fn clear_started_at(&mut self) {
self.started_at.clear();
}
pub fn has_started_at(&self) -> bool {
self.started_at.is_some()
}
pub fn set_started_at(&mut self, v: ::protobuf::well_known_types::Timestamp) {
self.started_at = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_started_at(&mut self) -> &mut ::protobuf::well_known_types::Timestamp {
if self.started_at.is_none() {
self.started_at.set_default();
}
self.started_at.as_mut().unwrap()
}
pub fn take_started_at(&mut self) -> ::protobuf::well_known_types::Timestamp {
self.started_at.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new())
}
pub fn get_completed_at(&self) -> &::protobuf::well_known_types::Timestamp {
self.completed_at.as_ref().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::default_instance())
}
pub fn clear_completed_at(&mut self) {
self.completed_at.clear();
}
pub fn has_completed_at(&self) -> bool {
self.completed_at.is_some()
}
pub fn set_completed_at(&mut self, v: ::protobuf::well_known_types::Timestamp) {
self.completed_at = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_completed_at(&mut self) -> &mut ::protobuf::well_known_types::Timestamp {
if self.completed_at.is_none() {
self.completed_at.set_default();
}
self.completed_at.as_mut().unwrap()
}
pub fn take_completed_at(&mut self) -> ::protobuf::well_known_types::Timestamp {
self.completed_at.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new())
}
pub fn get_results(&self) -> &[super::test_run::TestRun] {
&self.results
}
pub fn clear_results(&mut self) {
self.results.clear();
}
pub fn set_results(&mut self, v: ::protobuf::RepeatedField<super::test_run::TestRun>) {
self.results = v;
}
pub fn mut_results(&mut self) -> &mut ::protobuf::RepeatedField<super::test_run::TestRun> {
&mut self.results
}
pub fn take_results(&mut self) -> ::protobuf::RepeatedField<super::test_run::TestRun> {
::std::mem::replace(&mut self.results, ::protobuf::RepeatedField::new())
}
}
impl ::protobuf::Message for TestSuite {
fn is_initialized(&self) -> bool {
for v in &self.started_at {
if !v.is_initialized() {
return false;
}
};
for v in &self.completed_at {
if !v.is_initialized() {
return false;
}
};
for v in &self.results {
if !v.is_initialized() {
return false;
}
};
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 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.started_at)?;
},
2 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.completed_at)?;
},
3 => {
::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.results)?;
},
_ => {
::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 let Some(ref v) = self.started_at.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if let Some(ref v) = self.completed_at.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
for value in &self.results {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
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 let Some(ref v) = self.started_at.as_ref() {
os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if let Some(ref v) = self.completed_at.as_ref() {
os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
for v in &self.results {
os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
};
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) -> &::std::any::Any {
self as &::std::any::Any
}
fn as_any_mut(&mut self) -> &mut ::std::any::Any {
self as &mut ::std::any::Any
}
fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> TestSuite {
TestSuite::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>(
"started_at",
|m: &TestSuite| { &m.started_at },
|m: &mut TestSuite| { &mut m.started_at },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>(
"completed_at",
|m: &TestSuite| { &m.completed_at },
|m: &mut TestSuite| { &mut m.completed_at },
));
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::test_run::TestRun>>(
"results",
|m: &TestSuite| { &m.results },
|m: &mut TestSuite| { &mut m.results },
));
::protobuf::reflect::MessageDescriptor::new::<TestSuite>(
"TestSuite",
fields,
file_descriptor_proto()
)
})
}
}
fn default_instance() -> &'static TestSuite {
static mut instance: ::protobuf::lazy::Lazy<TestSuite> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const TestSuite,
};
unsafe {
instance.get(TestSuite::new)
}
}
}
impl ::protobuf::Clear for TestSuite {
fn clear(&mut self) {
self.started_at.clear();
self.completed_at.clear();
self.results.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for TestSuite {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for TestSuite {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
static file_descriptor_proto_data: &'static [u8] = b"\
\n\x1dhapi/release/test_suite.proto\x12\x0chapi.release\x1a\x1fgoogle/pr\
otobuf/timestamp.proto\x1a\x1bhapi/release/test_run.proto\"\xb6\x01\n\tT\
estSuite\x129\n\nstarted_at\x18\x01\x20\x01(\x0b2\x1a.google.protobuf.Ti\
mestampR\tstartedAt\x12=\n\x0ccompleted_at\x18\x02\x20\x01(\x0b2\x1a.goo\
gle.protobuf.TimestampR\x0bcompletedAt\x12/\n\x07results\x18\x03\x20\x03\
(\x0b2\x15.hapi.release.TestRunR\x07resultsB\tZ\x07releaseb\x06proto3\
";
static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::descriptor::FileDescriptorProto,
};
fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap()
}
pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
unsafe {
file_descriptor_proto_lazy.get(|| {
parse_descriptor_proto()
})
}
}