tensorboard_proto/
plugin_pr_curve.rs1#![allow(unknown_lints)]
6#![allow(clippy::all)]
7
8#![allow(unused_attributes)]
9#![cfg_attr(rustfmt, rustfmt::skip)]
10
11#![allow(box_pointers)]
12#![allow(dead_code)]
13#![allow(missing_docs)]
14#![allow(non_camel_case_types)]
15#![allow(non_snake_case)]
16#![allow(non_upper_case_globals)]
17#![allow(trivial_casts)]
18#![allow(unused_imports)]
19#![allow(unused_results)]
20#[derive(PartialEq,Clone,Default)]
27pub struct PrCurvePluginData {
28 pub version: i32,
30 pub num_thresholds: u32,
31 pub unknown_fields: ::protobuf::UnknownFields,
33 pub cached_size: ::protobuf::CachedSize,
34}
35
36impl<'a> ::std::default::Default for &'a PrCurvePluginData {
37 fn default() -> &'a PrCurvePluginData {
38 <PrCurvePluginData as ::protobuf::Message>::default_instance()
39 }
40}
41
42impl PrCurvePluginData {
43 pub fn new() -> PrCurvePluginData {
44 ::std::default::Default::default()
45 }
46
47 pub fn get_version(&self) -> i32 {
51 self.version
52 }
53 pub fn clear_version(&mut self) {
54 self.version = 0;
55 }
56
57 pub fn set_version(&mut self, v: i32) {
59 self.version = v;
60 }
61
62 pub fn get_num_thresholds(&self) -> u32 {
66 self.num_thresholds
67 }
68 pub fn clear_num_thresholds(&mut self) {
69 self.num_thresholds = 0;
70 }
71
72 pub fn set_num_thresholds(&mut self, v: u32) {
74 self.num_thresholds = v;
75 }
76}
77
78impl ::protobuf::Message for PrCurvePluginData {
79 fn is_initialized(&self) -> bool {
80 true
81 }
82
83 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
84 while !is.eof()? {
85 let (field_number, wire_type) = is.read_tag_unpack()?;
86 match field_number {
87 1 => {
88 if wire_type != ::protobuf::wire_format::WireTypeVarint {
89 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
90 }
91 let tmp = is.read_int32()?;
92 self.version = tmp;
93 },
94 2 => {
95 if wire_type != ::protobuf::wire_format::WireTypeVarint {
96 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
97 }
98 let tmp = is.read_uint32()?;
99 self.num_thresholds = tmp;
100 },
101 _ => {
102 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
103 },
104 };
105 }
106 ::std::result::Result::Ok(())
107 }
108
109 #[allow(unused_variables)]
111 fn compute_size(&self) -> u32 {
112 let mut my_size = 0;
113 if self.version != 0 {
114 my_size += ::protobuf::rt::value_size(1, self.version, ::protobuf::wire_format::WireTypeVarint);
115 }
116 if self.num_thresholds != 0 {
117 my_size += ::protobuf::rt::value_size(2, self.num_thresholds, ::protobuf::wire_format::WireTypeVarint);
118 }
119 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
120 self.cached_size.set(my_size);
121 my_size
122 }
123
124 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
125 if self.version != 0 {
126 os.write_int32(1, self.version)?;
127 }
128 if self.num_thresholds != 0 {
129 os.write_uint32(2, self.num_thresholds)?;
130 }
131 os.write_unknown_fields(self.get_unknown_fields())?;
132 ::std::result::Result::Ok(())
133 }
134
135 fn get_cached_size(&self) -> u32 {
136 self.cached_size.get()
137 }
138
139 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
140 &self.unknown_fields
141 }
142
143 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
144 &mut self.unknown_fields
145 }
146
147 fn as_any(&self) -> &dyn (::std::any::Any) {
148 self as &dyn (::std::any::Any)
149 }
150 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
151 self as &mut dyn (::std::any::Any)
152 }
153 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
154 self
155 }
156
157 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
158 Self::descriptor_static()
159 }
160
161 fn new() -> PrCurvePluginData {
162 PrCurvePluginData::new()
163 }
164
165 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
166 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
167 descriptor.get(|| {
168 let mut fields = ::std::vec::Vec::new();
169 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
170 "version",
171 |m: &PrCurvePluginData| { &m.version },
172 |m: &mut PrCurvePluginData| { &mut m.version },
173 ));
174 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
175 "num_thresholds",
176 |m: &PrCurvePluginData| { &m.num_thresholds },
177 |m: &mut PrCurvePluginData| { &mut m.num_thresholds },
178 ));
179 ::protobuf::reflect::MessageDescriptor::new_pb_name::<PrCurvePluginData>(
180 "PrCurvePluginData",
181 fields,
182 file_descriptor_proto()
183 )
184 })
185 }
186
187 fn default_instance() -> &'static PrCurvePluginData {
188 static instance: ::protobuf::rt::LazyV2<PrCurvePluginData> = ::protobuf::rt::LazyV2::INIT;
189 instance.get(PrCurvePluginData::new)
190 }
191}
192
193impl ::protobuf::Clear for PrCurvePluginData {
194 fn clear(&mut self) {
195 self.version = 0;
196 self.num_thresholds = 0;
197 self.unknown_fields.clear();
198 }
199}
200
201impl ::std::fmt::Debug for PrCurvePluginData {
202 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
203 ::protobuf::text_format::fmt(self, f)
204 }
205}
206
207impl ::protobuf::reflect::ProtobufValue for PrCurvePluginData {
208 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
209 ::protobuf::reflect::ReflectValueRef::Message(self)
210 }
211}
212
213static file_descriptor_proto_data: &'static [u8] = b"\
214 \n\x19src/plugin_pr_curve.proto\x12\rtensorboardrs\"T\n\x11PrCurvePlugin\
215 Data\x12\x18\n\x07version\x18\x01\x20\x01(\x05R\x07version\x12%\n\x0enum\
216 _thresholds\x18\x02\x20\x01(\rR\rnumThresholdsJ\xe8\x06\n\x06\x12\x04\
217 \x0f\0\x18\x01\n\x9f\x05\n\x01\x0c\x12\x03\x0f\0\x122\x94\x05\x20Copyrig\
218 ht\x202017\x20The\x20TensorFlow\x20Authors.\x20All\x20Rights\x20Reserved\
219 .\n\nLicensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\
220 \x20(the\x20\"License\");\nyou\x20may\x20not\x20use\x20this\x20file\x20e\
221 xcept\x20in\x20compliance\x20with\x20the\x20License.\nYou\x20may\x20obta\
222 in\x20a\x20copy\x20of\x20the\x20License\x20at\n\nhttp://www.apache.org/l\
223 icenses/LICENSE-2.0\n\nUnless\x20required\x20by\x20applicable\x20law\x20\
224 or\x20agreed\x20to\x20in\x20writing,\x20software\ndistributed\x20under\
225 \x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20B\
226 ASIS,\nWITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\
227 \x20either\x20express\x20or\x20implied.\nSee\x20the\x20License\x20for\
228 \x20the\x20specific\x20language\x20governing\x20permissions\x20and\nlimi\
229 tations\x20under\x20the\x20License.\n===================================\
230 ===========================================\n\x08\n\x01\x02\x12\x03\x11\
231 \0\x16\n\n\n\x02\x04\0\x12\x04\x13\0\x18\x01\n\n\n\x03\x04\0\x01\x12\x03\
232 \x13\x08\x19\n9\n\x04\x04\0\x02\0\x12\x03\x15\x02\x14\x1a,\x20Version\
233 \x20`0`\x20is\x20the\x20only\x20supported\x20version.\n\n\x0c\n\x05\x04\
234 \0\x02\0\x05\x12\x03\x15\x02\x07\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x15\
235 \x08\x0f\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\x15\x12\x13\n\x0b\n\x04\x04\
236 \0\x02\x01\x12\x03\x17\x02\x1c\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03\x17\
237 \x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03\x17\t\x17\n\x0c\n\x05\x04\
238 \0\x02\x01\x03\x12\x03\x17\x1a\x1bb\x06proto3\
239";
240
241static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
242
243fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
244 ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
245}
246
247pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
248 file_descriptor_proto_lazy.get(|| {
249 parse_descriptor_proto()
250 })
251}