#![allow(unknown_lints)]
#![allow(clippy::all)]
#![allow(unused_attributes)]
#![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 DebuggerEventMetadata {
pub device: ::std::string::String,
pub output_slot: i32,
pub num_chunks: i32,
pub chunk_index: i32,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a DebuggerEventMetadata {
fn default() -> &'a DebuggerEventMetadata {
<DebuggerEventMetadata as ::protobuf::Message>::default_instance()
}
}
impl DebuggerEventMetadata {
pub fn new() -> DebuggerEventMetadata {
::std::default::Default::default()
}
pub fn get_device(&self) -> &str {
&self.device
}
pub fn clear_device(&mut self) {
self.device.clear();
}
pub fn set_device(&mut self, v: ::std::string::String) {
self.device = v;
}
pub fn mut_device(&mut self) -> &mut ::std::string::String {
&mut self.device
}
pub fn take_device(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.device, ::std::string::String::new())
}
pub fn get_output_slot(&self) -> i32 {
self.output_slot
}
pub fn clear_output_slot(&mut self) {
self.output_slot = 0;
}
pub fn set_output_slot(&mut self, v: i32) {
self.output_slot = v;
}
pub fn get_num_chunks(&self) -> i32 {
self.num_chunks
}
pub fn clear_num_chunks(&mut self) {
self.num_chunks = 0;
}
pub fn set_num_chunks(&mut self, v: i32) {
self.num_chunks = v;
}
pub fn get_chunk_index(&self) -> i32 {
self.chunk_index
}
pub fn clear_chunk_index(&mut self) {
self.chunk_index = 0;
}
pub fn set_chunk_index(&mut self, v: i32) {
self.chunk_index = v;
}
}
impl ::protobuf::Message for DebuggerEventMetadata {
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 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.device)?;
},
2 => {
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.output_slot = tmp;
},
3 => {
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.num_chunks = tmp;
},
4 => {
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.chunk_index = 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.device.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.device);
}
if self.output_slot != 0 {
my_size += ::protobuf::rt::value_size(2, self.output_slot, ::protobuf::wire_format::WireTypeVarint);
}
if self.num_chunks != 0 {
my_size += ::protobuf::rt::value_size(3, self.num_chunks, ::protobuf::wire_format::WireTypeVarint);
}
if self.chunk_index != 0 {
my_size += ::protobuf::rt::value_size(4, self.chunk_index, ::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.device.is_empty() {
os.write_string(1, &self.device)?;
}
if self.output_slot != 0 {
os.write_int32(2, self.output_slot)?;
}
if self.num_chunks != 0 {
os.write_int32(3, self.num_chunks)?;
}
if self.chunk_index != 0 {
os.write_int32(4, self.chunk_index)?;
}
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() -> DebuggerEventMetadata {
DebuggerEventMetadata::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::ProtobufTypeString>(
"device",
|m: &DebuggerEventMetadata| { &m.device },
|m: &mut DebuggerEventMetadata| { &mut m.device },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
"output_slot",
|m: &DebuggerEventMetadata| { &m.output_slot },
|m: &mut DebuggerEventMetadata| { &mut m.output_slot },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
"num_chunks",
|m: &DebuggerEventMetadata| { &m.num_chunks },
|m: &mut DebuggerEventMetadata| { &mut m.num_chunks },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
"chunk_index",
|m: &DebuggerEventMetadata| { &m.chunk_index },
|m: &mut DebuggerEventMetadata| { &mut m.chunk_index },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<DebuggerEventMetadata>(
"DebuggerEventMetadata",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static DebuggerEventMetadata {
static instance: ::protobuf::rt::LazyV2<DebuggerEventMetadata> = ::protobuf::rt::LazyV2::INIT;
instance.get(DebuggerEventMetadata::new)
}
}
impl ::protobuf::Clear for DebuggerEventMetadata {
fn clear(&mut self) {
self.device.clear();
self.output_slot = 0;
self.num_chunks = 0;
self.chunk_index = 0;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for DebuggerEventMetadata {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for DebuggerEventMetadata {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
static file_descriptor_proto_data: &'static [u8] = b"\
\n3tensorflow/core/debug/debugger_event_metadata.proto\x12!third_party.t\
ensorflow.core.debug\"\x90\x01\n\x15DebuggerEventMetadata\x12\x16\n\x06d\
evice\x18\x01\x20\x01(\tR\x06device\x12\x1f\n\x0boutput_slot\x18\x02\x20\
\x01(\x05R\noutputSlot\x12\x1d\n\nnum_chunks\x18\x03\x20\x01(\x05R\tnumC\
hunks\x12\x1f\n\x0bchunk_index\x18\x04\x20\x01(\x05R\nchunkIndexb\x06pro\
to3\
";
static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
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 {
file_descriptor_proto_lazy.get(|| {
parse_descriptor_proto()
})
}