| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
#![allow(unknown_lints)] |
| 7 |
#![allow(clippy::all)] |
| 8 |
|
| 9 |
#![allow(unused_attributes)] |
| 10 |
#![cfg_attr(rustfmt, rustfmt::skip)] |
| 11 |
|
| 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_results)] |
| 19 |
#![allow(unused_mut)] |
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_7_2; |
| 26 |
|
| 27 |
|
| 28 |
#[derive(PartialEq,Clone,Default,Debug)] |
| 29 |
pub struct Provenance { |
| 30 |
|
| 31 |
|
| 32 |
pub builder: ::protobuf::MessageField<Builder>, |
| 33 |
|
| 34 |
pub build_type: ::std::string::String, |
| 35 |
|
| 36 |
pub invocation: ::protobuf::MessageField<Invocation>, |
| 37 |
|
| 38 |
pub build_config: ::protobuf::MessageField<::protobuf::well_known_types::struct_::Struct>, |
| 39 |
|
| 40 |
pub metadata: ::protobuf::MessageField<Metadata>, |
| 41 |
|
| 42 |
pub materials: ::std::vec::Vec<Material>, |
| 43 |
|
| 44 |
|
| 45 |
pub special_fields: ::protobuf::SpecialFields, |
| 46 |
} |
| 47 |
|
| 48 |
impl<'a> ::std::default::Default for &'a Provenance { |
| 49 |
fn default() -> &'a Provenance { |
| 50 |
<Provenance as ::protobuf::Message>::default_instance() |
| 51 |
} |
| 52 |
} |
| 53 |
|
| 54 |
impl Provenance { |
| 55 |
pub fn new() -> Provenance { |
| 56 |
::std::default::Default::default() |
| 57 |
} |
| 58 |
|
| 59 |
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { |
| 60 |
let mut fields = ::std::vec::Vec::with_capacity(6); |
| 61 |
let mut oneofs = ::std::vec::Vec::with_capacity(0); |
| 62 |
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Builder>( |
| 63 |
"builder", |
| 64 |
|m: &Provenance| { &m.builder }, |
| 65 |
|m: &mut Provenance| { &mut m.builder }, |
| 66 |
)); |
| 67 |
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( |
| 68 |
"build_type", |
| 69 |
|m: &Provenance| { &m.build_type }, |
| 70 |
|m: &mut Provenance| { &mut m.build_type }, |
| 71 |
)); |
| 72 |
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Invocation>( |
| 73 |
"invocation", |
| 74 |
|m: &Provenance| { &m.invocation }, |
| 75 |
|m: &mut Provenance| { &mut m.invocation }, |
| 76 |
)); |
| 77 |
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::struct_::Struct>( |
| 78 |
"build_config", |
| 79 |
|m: &Provenance| { &m.build_config }, |
| 80 |
|m: &mut Provenance| { &mut m.build_config }, |
| 81 |
)); |
| 82 |
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Metadata>( |
| 83 |
"metadata", |
| 84 |
|m: &Provenance| { &m.metadata }, |
| 85 |
|m: &mut Provenance| { &mut m.metadata }, |
| 86 |
)); |
| 87 |
fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
| 88 |
"materials", |
| 89 |
|m: &Provenance| { &m.materials }, |
| 90 |
|m: &mut Provenance| { &mut m.materials }, |
| 91 |
)); |
| 92 |
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<Provenance>( |
| 93 |
"Provenance", |
| 94 |
fields, |
| 95 |
oneofs, |
| 96 |
) |
| 97 |
} |
| 98 |
} |
| 99 |
|
| 100 |
impl ::protobuf::Message for Provenance { |
| 101 |
const NAME: &'static str = "Provenance"; |
| 102 |
|
| 103 |
fn is_initialized(&self) -> bool { |
| 104 |
true |
| 105 |
} |
| 106 |
|
| 107 |
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { |
| 108 |
while let Some(tag) = is.read_raw_tag_or_eof()? { |
| 109 |
match tag { |
| 110 |
10 => { |
| 111 |
::protobuf::rt::read_singular_message_into_field(is, &mut self.builder)?; |
| 112 |
}, |
| 113 |
18 => { |
| 114 |
self.build_type = is.read_string()?; |
| 115 |
}, |
| 116 |
26 => { |
| 117 |
::protobuf::rt::read_singular_message_into_field(is, &mut self.invocation)?; |
| 118 |
}, |
| 119 |
34 => { |
| 120 |
::protobuf::rt::read_singular_message_into_field(is, &mut self.build_config)?; |
| 121 |
}, |
| 122 |
42 => { |
| 123 |
::protobuf::rt::read_singular_message_into_field(is, &mut self.metadata)?; |
| 124 |
}, |
| 125 |
50 => { |
| 126 |
self.materials.push(is.read_message()?); |
| 127 |
}, |
| 128 |
tag => { |
| 129 |
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
| 130 |
}, |
| 131 |
}; |
| 132 |
} |
| 133 |
::std::result::Result::Ok(()) |
| 134 |
} |
| 135 |
|
| 136 |
|
| 137 |
#[allow(unused_variables)] |
| 138 |
fn compute_size(&self) -> u64 { |
| 139 |
let mut my_size = 0; |
| 140 |
if let Some(v) = self.builder.as_ref() { |
| 141 |
let len = v.compute_size(); |
| 142 |
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; |
| 143 |
} |
| 144 |
if !self.build_type.is_empty() { |
| 145 |
my_size += ::protobuf::rt::string_size(2, &self.build_type); |
| 146 |
} |
| 147 |
if let Some(v) = self.invocation.as_ref() { |
| 148 |
let len = v.compute_size(); |
| 149 |
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; |
| 150 |
} |
| 151 |
if let Some(v) = self.build_config.as_ref() { |
| 152 |
let len = v.compute_size(); |
| 153 |
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; |
| 154 |
} |
| 155 |
if let Some(v) = self.metadata.as_ref() { |
| 156 |
let len = v.compute_size(); |
| 157 |
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; |
| 158 |
} |
| 159 |
for value in &self.materials { |
| 160 |
let len = value.compute_size(); |
| 161 |
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; |
| 162 |
}; |
| 163 |
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
| 164 |
self.special_fields.cached_size().set(my_size as u32); |
| 165 |
my_size |
| 166 |
} |
| 167 |
|
| 168 |
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { |
| 169 |
if let Some(v) = self.builder.as_ref() { |
| 170 |
::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; |
| 171 |
} |
| 172 |
if !self.build_type.is_empty() { |
| 173 |
os.write_string(2, &self.build_type)?; |
| 174 |
} |
| 175 |
if let Some(v) = self.invocation.as_ref() { |
| 176 |
::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; |
| 177 |
} |
| 178 |
if let Some(v) = self.build_config.as_ref() { |
| 179 |
::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; |
| 180 |
} |
| 181 |
if let Some(v) = self.metadata.as_ref() { |
| 182 |
::protobuf::rt::write_message_field_with_cached_size(5, v, os)?; |
| 183 |
} |
| 184 |
for v in &self.materials { |
| 185 |
::protobuf::rt::write_message_field_with_cached_size(6, v, os)?; |
| 186 |
}; |
| 187 |
os.write_unknown_fields(self.special_fields.unknown_fields())?; |
| 188 |
::std::result::Result::Ok(()) |
| 189 |
} |
| 190 |
|
| 191 |
fn special_fields(&self) -> &::protobuf::SpecialFields { |
| 192 |
&self.special_fields |
| 193 |
} |
| 194 |
|
| 195 |
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { |
| 196 |
&mut self.special_fields |
| 197 |
} |
| 198 |
|
| 199 |
fn new() -> Provenance { |
| 200 |
Provenance::new() |
| 201 |
} |
| 202 |
|
| 203 |
fn clear(&mut self) { |
| 204 |
self.builder.clear(); |
| 205 |
self.build_type.clear(); |
| 206 |
self.invocation.clear(); |
| 207 |
self.build_config.clear(); |
| 208 |
self.metadata.clear(); |
| 209 |
self.materials.clear(); |
| 210 |
self.special_fields.clear(); |
| 211 |
} |
| 212 |
|
| 213 |
fn default_instance() -> &'static Provenance { |
| 214 |
static instance: Provenance = Provenance { |
| 215 |
builder: ::protobuf::MessageField::none(), |
| 216 |
build_type: ::std::string::String::new(), |
| 217 |
invocation: ::protobuf::MessageField::none(), |
| 218 |
build_config: ::protobuf::MessageField::none(), |
| 219 |
metadata: ::protobuf::MessageField::none(), |
| 220 |
materials: ::std::vec::Vec::new(), |
| 221 |
special_fields: ::protobuf::SpecialFields::new(), |
| 222 |
}; |
| 223 |
&instance |
| 224 |
} |
| 225 |
} |
| 226 |
|
| 227 |
impl ::protobuf::MessageFull for Provenance { |
| 228 |
fn descriptor() -> ::protobuf::reflect::MessageDescriptor { |
| 229 |
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); |
| 230 |
descriptor.get(|| file_descriptor().message_by_package_relative_name("Provenance").unwrap()).clone() |
| 231 |
} |
| 232 |
} |
| 233 |
|
| 234 |
impl ::std::fmt::Display for Provenance { |
| 235 |
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| 236 |
::protobuf::text_format::fmt(self, f) |
| 237 |
} |
| 238 |
} |
| 239 |
|
| 240 |
impl ::protobuf::reflect::ProtobufValue for Provenance { |
| 241 |
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>; |
| 242 |
} |
| 243 |
|
| 244 |
|
| 245 |
#[derive(PartialEq,Clone,Default,Debug)] |
| 246 |
pub struct Builder { |
| 247 |
|
| 248 |
|
| 249 |
pub id: ::std::string::String, |
| 250 |
|
| 251 |
|
| 252 |
pub special_fields: ::protobuf::SpecialFields, |
| 253 |
} |
| 254 |
|
| 255 |
impl<'a> ::std::default::Default for &'a Builder { |
| 256 |
fn default() -> &'a Builder { |
| 257 |
<Builder as ::protobuf::Message>::default_instance() |
| 258 |
} |
| 259 |
} |
| 260 |
|
| 261 |
impl Builder { |
| 262 |
pub fn new() -> Builder { |
| 263 |
::std::default::Default::default() |
| 264 |
} |
| 265 |
|
| 266 |
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { |
| 267 |
let mut fields = ::std::vec::Vec::with_capacity(1); |
| 268 |
let mut oneofs = ::std::vec::Vec::with_capacity(0); |
| 269 |
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( |
| 270 |
"id", |
| 271 |
|m: &Builder| { &m.id }, |
| 272 |
|m: &mut Builder| { &mut m.id }, |
| 273 |
)); |
| 274 |
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<Builder>( |
| 275 |
"Builder", |
| 276 |
fields, |
| 277 |
oneofs, |
| 278 |
) |
| 279 |
} |
| 280 |
} |
| 281 |
|
| 282 |
impl ::protobuf::Message for Builder { |
| 283 |
const NAME: &'static str = "Builder"; |
| 284 |
|
| 285 |
fn is_initialized(&self) -> bool { |
| 286 |
true |
| 287 |
} |
| 288 |
|
| 289 |
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { |
| 290 |
while let Some(tag) = is.read_raw_tag_or_eof()? { |
| 291 |
match tag { |
| 292 |
10 => { |
| 293 |
self.id = is.read_string()?; |
| 294 |
}, |
| 295 |
tag => { |
| 296 |
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
| 297 |
}, |
| 298 |
}; |
| 299 |
} |
| 300 |
::std::result::Result::Ok(()) |
| 301 |
} |
| 302 |
|
| 303 |
|
| 304 |
#[allow(unused_variables)] |
| 305 |
fn compute_size(&self) -> u64 { |
| 306 |
let mut my_size = 0; |
| 307 |
if !self.id.is_empty() { |
| 308 |
my_size += ::protobuf::rt::string_size(1, &self.id); |
| 309 |
} |
| 310 |
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
| 311 |
self.special_fields.cached_size().set(my_size as u32); |
| 312 |
my_size |
| 313 |
} |
| 314 |
|
| 315 |
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { |
| 316 |
if !self.id.is_empty() { |
| 317 |
os.write_string(1, &self.id)?; |
| 318 |
} |
| 319 |
os.write_unknown_fields(self.special_fields.unknown_fields())?; |
| 320 |
::std::result::Result::Ok(()) |
| 321 |
} |
| 322 |
|
| 323 |
fn special_fields(&self) -> &::protobuf::SpecialFields { |
| 324 |
&self.special_fields |
| 325 |
} |
| 326 |
|
| 327 |
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { |
| 328 |
&mut self.special_fields |
| 329 |
} |
| 330 |
|
| 331 |
fn new() -> Builder { |
| 332 |
Builder::new() |
| 333 |
} |
| 334 |
|
| 335 |
fn clear(&mut self) { |
| 336 |
self.id.clear(); |
| 337 |
self.special_fields.clear(); |
| 338 |
} |
| 339 |
|
| 340 |
fn default_instance() -> &'static Builder { |
| 341 |
static instance: Builder = Builder { |
| 342 |
id: ::std::string::String::new(), |
| 343 |
special_fields: ::protobuf::SpecialFields::new(), |
| 344 |
}; |
| 345 |
&instance |
| 346 |
} |
| 347 |
} |
| 348 |
|
| 349 |
impl ::protobuf::MessageFull for Builder { |
| 350 |
fn descriptor() -> ::protobuf::reflect::MessageDescriptor { |
| 351 |
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); |
| 352 |
descriptor.get(|| file_descriptor().message_by_package_relative_name("Builder").unwrap()).clone() |
| 353 |
} |
| 354 |
} |
| 355 |
|
| 356 |
impl ::std::fmt::Display for Builder { |
| 357 |
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| 358 |
::protobuf::text_format::fmt(self, f) |
| 359 |
} |
| 360 |
} |
| 361 |
|
| 362 |
impl ::protobuf::reflect::ProtobufValue for Builder { |
| 363 |
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>; |
| 364 |
} |
| 365 |
|
| 366 |
|
| 367 |
#[derive(PartialEq,Clone,Default,Debug)] |
| 368 |
pub struct Invocation { |
| 369 |
|
| 370 |
|
| 371 |
pub config_source: ::protobuf::MessageField<ConfigSource>, |
| 372 |
|
| 373 |
pub parameters: ::protobuf::MessageField<::protobuf::well_known_types::struct_::Struct>, |
| 374 |
|
| 375 |
pub environment: ::protobuf::MessageField<::protobuf::well_known_types::struct_::Struct>, |
| 376 |
|
| 377 |
|
| 378 |
pub special_fields: ::protobuf::SpecialFields, |
| 379 |
} |
| 380 |
|
| 381 |
impl<'a> ::std::default::Default for &'a Invocation { |
| 382 |
fn default() -> &'a Invocation { |
| 383 |
<Invocation as ::protobuf::Message>::default_instance() |
| 384 |
} |
| 385 |
} |
| 386 |
|
| 387 |
impl Invocation { |
| 388 |
pub fn new() -> Invocation { |
| 389 |
::std::default::Default::default() |
| 390 |
} |
| 391 |
|
| 392 |
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { |
| 393 |
let mut fields = ::std::vec::Vec::with_capacity(3); |
| 394 |
let mut oneofs = ::std::vec::Vec::with_capacity(0); |
| 395 |
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ConfigSource>( |
| 396 |
"config_source", |
| 397 |
|m: &Invocation| { &m.config_source }, |
| 398 |
|m: &mut Invocation| { &mut m.config_source }, |
| 399 |
)); |
| 400 |
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::struct_::Struct>( |
| 401 |
"parameters", |
| 402 |
|m: &Invocation| { &m.parameters }, |
| 403 |
|m: &mut Invocation| { &mut m.parameters }, |
| 404 |
)); |
| 405 |
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::struct_::Struct>( |
| 406 |
"environment", |
| 407 |
|m: &Invocation| { &m.environment }, |
| 408 |
|m: &mut Invocation| { &mut m.environment }, |
| 409 |
)); |
| 410 |
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<Invocation>( |
| 411 |
"Invocation", |
| 412 |
fields, |
| 413 |
oneofs, |
| 414 |
) |
| 415 |
} |
| 416 |
} |
| 417 |
|
| 418 |
impl ::protobuf::Message for Invocation { |
| 419 |
const NAME: &'static str = "Invocation"; |
| 420 |
|
| 421 |
fn is_initialized(&self) -> bool { |
| 422 |
true |
| 423 |
} |
| 424 |
|
| 425 |
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { |
| 426 |
while let Some(tag) = is.read_raw_tag_or_eof()? { |
| 427 |
match tag { |
| 428 |
10 => { |
| 429 |
::protobuf::rt::read_singular_message_into_field(is, &mut self.config_source)?; |
| 430 |
}, |
| 431 |
18 => { |
| 432 |
::protobuf::rt::read_singular_message_into_field(is, &mut self.parameters)?; |
| 433 |
}, |
| 434 |
26 => { |
| 435 |
::protobuf::rt::read_singular_message_into_field(is, &mut self.environment)?; |
| 436 |
}, |
| 437 |
tag => { |
| 438 |
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
| 439 |
}, |
| 440 |
}; |
| 441 |
} |
| 442 |
::std::result::Result::Ok(()) |
| 443 |
} |
| 444 |
|
| 445 |
|
| 446 |
#[allow(unused_variables)] |
| 447 |
fn compute_size(&self) -> u64 { |
| 448 |
let mut my_size = 0; |
| 449 |
if let Some(v) = self.config_source.as_ref() { |
| 450 |
let len = v.compute_size(); |
| 451 |
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; |
| 452 |
} |
| 453 |
if let Some(v) = self.parameters.as_ref() { |
| 454 |
let len = v.compute_size(); |
| 455 |
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; |
| 456 |
} |
| 457 |
if let Some(v) = self.environment.as_ref() { |
| 458 |
let len = v.compute_size(); |
| 459 |
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; |
| 460 |
} |
| 461 |
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
| 462 |
self.special_fields.cached_size().set(my_size as u32); |
| 463 |
my_size |
| 464 |
} |
| 465 |
|
| 466 |
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { |
| 467 |
if let Some(v) = self.config_source.as_ref() { |
| 468 |
::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; |
| 469 |
} |
| 470 |
if let Some(v) = self.parameters.as_ref() { |
| 471 |
::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; |
| 472 |
} |
| 473 |
if let Some(v) = self.environment.as_ref() { |
| 474 |
::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; |
| 475 |
} |
| 476 |
os.write_unknown_fields(self.special_fields.unknown_fields())?; |
| 477 |
::std::result::Result::Ok(()) |
| 478 |
} |
| 479 |
|
| 480 |
fn special_fields(&self) -> &::protobuf::SpecialFields { |
| 481 |
&self.special_fields |
| 482 |
} |
| 483 |
|
| 484 |
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { |
| 485 |
&mut self.special_fields |
| 486 |
} |
| 487 |
|
| 488 |
fn new() -> Invocation { |
| 489 |
Invocation::new() |
| 490 |
} |
| 491 |
|
| 492 |
fn clear(&mut self) { |
| 493 |
self.config_source.clear(); |
| 494 |
self.parameters.clear(); |
| 495 |
self.environment.clear(); |
| 496 |
self.special_fields.clear(); |
| 497 |
} |
| 498 |
|
| 499 |
fn default_instance() -> &'static Invocation { |
| 500 |
static instance: Invocation = Invocation { |
| 501 |
config_source: ::protobuf::MessageField::none(), |
| 502 |
parameters: ::protobuf::MessageField::none(), |
| 503 |
environment: ::protobuf::MessageField::none(), |
| 504 |
special_fields: ::protobuf::SpecialFields::new(), |
| 505 |
}; |
| 506 |
&instance |
| 507 |
} |
| 508 |
} |
| 509 |
|
| 510 |
impl ::protobuf::MessageFull for Invocation { |
| 511 |
fn descriptor() -> ::protobuf::reflect::MessageDescriptor { |
| 512 |
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); |
| 513 |
descriptor.get(|| file_descriptor().message_by_package_relative_name("Invocation").unwrap()).clone() |
| 514 |
} |
| 515 |
} |
| 516 |
|
| 517 |
impl ::std::fmt::Display for Invocation { |
| 518 |
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| 519 |
::protobuf::text_format::fmt(self, f) |
| 520 |
} |
| 521 |
} |
| 522 |
|
| 523 |
impl ::protobuf::reflect::ProtobufValue for Invocation { |
| 524 |
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>; |
| 525 |
} |
| 526 |
|
| 527 |
|
| 528 |
#[derive(PartialEq,Clone,Default,Debug)] |
| 529 |
pub struct ConfigSource { |
| 530 |
|
| 531 |
|
| 532 |
pub uri: ::std::string::String, |
| 533 |
|
| 534 |
pub digest: ::std::collections::HashMap<::std::string::String, ::std::string::String>, |
| 535 |
|
| 536 |
pub entry_point: ::std::string::String, |
| 537 |
|
| 538 |
|
| 539 |
pub special_fields: ::protobuf::SpecialFields, |
| 540 |
} |
| 541 |
|
| 542 |
impl<'a> ::std::default::Default for &'a ConfigSource { |
| 543 |
fn default() -> &'a ConfigSource { |
| 544 |
<ConfigSource as ::protobuf::Message>::default_instance() |
| 545 |
} |
| 546 |
} |
| 547 |
|
| 548 |
impl ConfigSource { |
| 549 |
pub fn new() -> ConfigSource { |
| 550 |
::std::default::Default::default() |
| 551 |
} |
| 552 |
|
| 553 |
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { |
| 554 |
let mut fields = ::std::vec::Vec::with_capacity(3); |
| 555 |
let mut oneofs = ::std::vec::Vec::with_capacity(0); |
| 556 |
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( |
| 557 |
"uri", |
| 558 |
|m: &ConfigSource| { &m.uri }, |
| 559 |
|m: &mut ConfigSource| { &mut m.uri }, |
| 560 |
)); |
| 561 |
fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor_new::<_, _>( |
| 562 |
"digest", |
| 563 |
|m: &ConfigSource| { &m.digest }, |
| 564 |
|m: &mut ConfigSource| { &mut m.digest }, |
| 565 |
)); |
| 566 |
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( |
| 567 |
"entry_point", |
| 568 |
|m: &ConfigSource| { &m.entry_point }, |
| 569 |
|m: &mut ConfigSource| { &mut m.entry_point }, |
| 570 |
)); |
| 571 |
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<ConfigSource>( |
| 572 |
"ConfigSource", |
| 573 |
fields, |
| 574 |
oneofs, |
| 575 |
) |
| 576 |
} |
| 577 |
} |
| 578 |
|
| 579 |
impl ::protobuf::Message for ConfigSource { |
| 580 |
const NAME: &'static str = "ConfigSource"; |
| 581 |
|
| 582 |
fn is_initialized(&self) -> bool { |
| 583 |
true |
| 584 |
} |
| 585 |
|
| 586 |
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { |
| 587 |
while let Some(tag) = is.read_raw_tag_or_eof()? { |
| 588 |
match tag { |
| 589 |
10 => { |
| 590 |
self.uri = is.read_string()?; |
| 591 |
}, |
| 592 |
18 => { |
| 593 |
let len = is.read_raw_varint32()?; |
| 594 |
let old_limit = is.push_limit(len as u64)?; |
| 595 |
let mut key = ::std::default::Default::default(); |
| 596 |
let mut value = ::std::default::Default::default(); |
| 597 |
while let Some(tag) = is.read_raw_tag_or_eof()? { |
| 598 |
match tag { |
| 599 |
10 => key = is.read_string()?, |
| 600 |
18 => value = is.read_string()?, |
| 601 |
_ => ::protobuf::rt::skip_field_for_tag(tag, is)?, |
| 602 |
}; |
| 603 |
} |
| 604 |
is.pop_limit(old_limit); |
| 605 |
self.digest.insert(key, value); |
| 606 |
}, |
| 607 |
26 => { |
| 608 |
self.entry_point = is.read_string()?; |
| 609 |
}, |
| 610 |
tag => { |
| 611 |
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
| 612 |
}, |
| 613 |
}; |
| 614 |
} |
| 615 |
::std::result::Result::Ok(()) |
| 616 |
} |
| 617 |
|
| 618 |
|
| 619 |
#[allow(unused_variables)] |
| 620 |
fn compute_size(&self) -> u64 { |
| 621 |
let mut my_size = 0; |
| 622 |
if !self.uri.is_empty() { |
| 623 |
my_size += ::protobuf::rt::string_size(1, &self.uri); |
| 624 |
} |
| 625 |
for (k, v) in &self.digest { |
| 626 |
let mut entry_size = 0; |
| 627 |
entry_size += ::protobuf::rt::string_size(1, &k); |
| 628 |
entry_size += ::protobuf::rt::string_size(2, &v); |
| 629 |
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size |
| 630 |
}; |
| 631 |
if !self.entry_point.is_empty() { |
| 632 |
my_size += ::protobuf::rt::string_size(3, &self.entry_point); |
| 633 |
} |
| 634 |
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
| 635 |
self.special_fields.cached_size().set(my_size as u32); |
| 636 |
my_size |
| 637 |
} |
| 638 |
|
| 639 |
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { |
| 640 |
if !self.uri.is_empty() { |
| 641 |
os.write_string(1, &self.uri)?; |
| 642 |
} |
| 643 |
for (k, v) in &self.digest { |
| 644 |
let mut entry_size = 0; |
| 645 |
entry_size += ::protobuf::rt::string_size(1, &k); |
| 646 |
entry_size += ::protobuf::rt::string_size(2, &v); |
| 647 |
os.write_raw_varint32(18)?; |
| 648 |
os.write_raw_varint32(entry_size as u32)?; |
| 649 |
os.write_string(1, &k)?; |
| 650 |
os.write_string(2, &v)?; |
| 651 |
}; |
| 652 |
if !self.entry_point.is_empty() { |
| 653 |
os.write_string(3, &self.entry_point)?; |
| 654 |
} |
| 655 |
os.write_unknown_fields(self.special_fields.unknown_fields())?; |
| 656 |
::std::result::Result::Ok(()) |
| 657 |
} |
| 658 |
|
| 659 |
fn special_fields(&self) -> &::protobuf::SpecialFields { |
| 660 |
&self.special_fields |
| 661 |
} |
| 662 |
|
| 663 |
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { |
| 664 |
&mut self.special_fields |
| 665 |
} |
| 666 |
|
| 667 |
fn new() -> ConfigSource { |
| 668 |
ConfigSource::new() |
| 669 |
} |
| 670 |
|
| 671 |
fn clear(&mut self) { |
| 672 |
self.uri.clear(); |
| 673 |
self.digest.clear(); |
| 674 |
self.entry_point.clear(); |
| 675 |
self.special_fields.clear(); |
| 676 |
} |
| 677 |
|
| 678 |
fn default_instance() -> &'static ConfigSource { |
| 679 |
static instance: ::protobuf::rt::Lazy<ConfigSource> = ::protobuf::rt::Lazy::new(); |
| 680 |
instance.get(ConfigSource::new) |
| 681 |
} |
| 682 |
} |
| 683 |
|
| 684 |
impl ::protobuf::MessageFull for ConfigSource { |
| 685 |
fn descriptor() -> ::protobuf::reflect::MessageDescriptor { |
| 686 |
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); |
| 687 |
descriptor.get(|| file_descriptor().message_by_package_relative_name("ConfigSource").unwrap()).clone() |
| 688 |
} |
| 689 |
} |
| 690 |
|
| 691 |
impl ::std::fmt::Display for ConfigSource { |
| 692 |
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| 693 |
::protobuf::text_format::fmt(self, f) |
| 694 |
} |
| 695 |
} |
| 696 |
|
| 697 |
impl ::protobuf::reflect::ProtobufValue for ConfigSource { |
| 698 |
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>; |
| 699 |
} |
| 700 |
|
| 701 |
|
| 702 |
#[derive(PartialEq,Clone,Default,Debug)] |
| 703 |
pub struct Metadata { |
| 704 |
|
| 705 |
|
| 706 |
pub build_invocation_id: ::std::string::String, |
| 707 |
|
| 708 |
pub build_started_on: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, |
| 709 |
|
| 710 |
pub build_finished_on: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, |
| 711 |
|
| 712 |
pub completeness: ::protobuf::MessageField<Completeness>, |
| 713 |
|
| 714 |
pub reproducible: bool, |
| 715 |
|
| 716 |
|
| 717 |
pub special_fields: ::protobuf::SpecialFields, |
| 718 |
} |
| 719 |
|
| 720 |
impl<'a> ::std::default::Default for &'a Metadata { |
| 721 |
fn default() -> &'a Metadata { |
| 722 |
<Metadata as ::protobuf::Message>::default_instance() |
| 723 |
} |
| 724 |
} |
| 725 |
|
| 726 |
impl Metadata { |
| 727 |
pub fn new() -> Metadata { |
| 728 |
::std::default::Default::default() |
| 729 |
} |
| 730 |
|
| 731 |
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { |
| 732 |
let mut fields = ::std::vec::Vec::with_capacity(5); |
| 733 |
let mut oneofs = ::std::vec::Vec::with_capacity(0); |
| 734 |
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( |
| 735 |
"build_invocation_id", |
| 736 |
|m: &Metadata| { &m.build_invocation_id }, |
| 737 |
|m: &mut Metadata| { &mut m.build_invocation_id }, |
| 738 |
)); |
| 739 |
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( |
| 740 |
"build_started_on", |
| 741 |
|m: &Metadata| { &m.build_started_on }, |
| 742 |
|m: &mut Metadata| { &mut m.build_started_on }, |
| 743 |
)); |
| 744 |
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( |
| 745 |
"build_finished_on", |
| 746 |
|m: &Metadata| { &m.build_finished_on }, |
| 747 |
|m: &mut Metadata| { &mut m.build_finished_on }, |
| 748 |
)); |
| 749 |
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Completeness>( |
| 750 |
"completeness", |
| 751 |
|m: &Metadata| { &m.completeness }, |
| 752 |
|m: &mut Metadata| { &mut m.completeness }, |
| 753 |
)); |
| 754 |
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( |
| 755 |
"reproducible", |
| 756 |
|m: &Metadata| { &m.reproducible }, |
| 757 |
|m: &mut Metadata| { &mut m.reproducible }, |
| 758 |
)); |
| 759 |
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<Metadata>( |
| 760 |
"Metadata", |
| 761 |
fields, |
| 762 |
oneofs, |
| 763 |
) |
| 764 |
} |
| 765 |
} |
| 766 |
|
| 767 |
impl ::protobuf::Message for Metadata { |
| 768 |
const NAME: &'static str = "Metadata"; |
| 769 |
|
| 770 |
fn is_initialized(&self) -> bool { |
| 771 |
true |
| 772 |
} |
| 773 |
|
| 774 |
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { |
| 775 |
while let Some(tag) = is.read_raw_tag_or_eof()? { |
| 776 |
match tag { |
| 777 |
10 => { |
| 778 |
self.build_invocation_id = is.read_string()?; |
| 779 |
}, |
| 780 |
18 => { |
| 781 |
::protobuf::rt::read_singular_message_into_field(is, &mut self.build_started_on)?; |
| 782 |
}, |
| 783 |
26 => { |
| 784 |
::protobuf::rt::read_singular_message_into_field(is, &mut self.build_finished_on)?; |
| 785 |
}, |
| 786 |
34 => { |
| 787 |
::protobuf::rt::read_singular_message_into_field(is, &mut self.completeness)?; |
| 788 |
}, |
| 789 |
40 => { |
| 790 |
self.reproducible = is.read_bool()?; |
| 791 |
}, |
| 792 |
tag => { |
| 793 |
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
| 794 |
}, |
| 795 |
}; |
| 796 |
} |
| 797 |
::std::result::Result::Ok(()) |
| 798 |
} |
| 799 |
|
| 800 |
|
| 801 |
#[allow(unused_variables)] |
| 802 |
fn compute_size(&self) -> u64 { |
| 803 |
let mut my_size = 0; |
| 804 |
if !self.build_invocation_id.is_empty() { |
| 805 |
my_size += ::protobuf::rt::string_size(1, &self.build_invocation_id); |
| 806 |
} |
| 807 |
if let Some(v) = self.build_started_on.as_ref() { |
| 808 |
let len = v.compute_size(); |
| 809 |
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; |
| 810 |
} |
| 811 |
if let Some(v) = self.build_finished_on.as_ref() { |
| 812 |
let len = v.compute_size(); |
| 813 |
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; |
| 814 |
} |
| 815 |
if let Some(v) = self.completeness.as_ref() { |
| 816 |
let len = v.compute_size(); |
| 817 |
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; |
| 818 |
} |
| 819 |
if self.reproducible != false { |
| 820 |
my_size += 1 + 1; |
| 821 |
} |
| 822 |
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
| 823 |
self.special_fields.cached_size().set(my_size as u32); |
| 824 |
my_size |
| 825 |
} |
| 826 |
|
| 827 |
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { |
| 828 |
if !self.build_invocation_id.is_empty() { |
| 829 |
os.write_string(1, &self.build_invocation_id)?; |
| 830 |
} |
| 831 |
if let Some(v) = self.build_started_on.as_ref() { |
| 832 |
::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; |
| 833 |
} |
| 834 |
if let Some(v) = self.build_finished_on.as_ref() { |
| 835 |
::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; |
| 836 |
} |
| 837 |
if let Some(v) = self.completeness.as_ref() { |
| 838 |
::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; |
| 839 |
} |
| 840 |
if self.reproducible != false { |
| 841 |
os.write_bool(5, self.reproducible)?; |
| 842 |
} |
| 843 |
os.write_unknown_fields(self.special_fields.unknown_fields())?; |
| 844 |
::std::result::Result::Ok(()) |
| 845 |
} |
| 846 |
|
| 847 |
fn special_fields(&self) -> &::protobuf::SpecialFields { |
| 848 |
&self.special_fields |
| 849 |
} |
| 850 |
|
| 851 |
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { |
| 852 |
&mut self.special_fields |
| 853 |
} |
| 854 |
|
| 855 |
fn new() -> Metadata { |
| 856 |
Metadata::new() |
| 857 |
} |
| 858 |
|
| 859 |
fn clear(&mut self) { |
| 860 |
self.build_invocation_id.clear(); |
| 861 |
self.build_started_on.clear(); |
| 862 |
self.build_finished_on.clear(); |
| 863 |
self.completeness.clear(); |
| 864 |
self.reproducible = false; |
| 865 |
self.special_fields.clear(); |
| 866 |
} |
| 867 |
|
| 868 |
fn default_instance() -> &'static Metadata { |
| 869 |
static instance: Metadata = Metadata { |
| 870 |
build_invocation_id: ::std::string::String::new(), |
| 871 |
build_started_on: ::protobuf::MessageField::none(), |
| 872 |
build_finished_on: ::protobuf::MessageField::none(), |
| 873 |
completeness: ::protobuf::MessageField::none(), |
| 874 |
reproducible: false, |
| 875 |
special_fields: ::protobuf::SpecialFields::new(), |
| 876 |
}; |
| 877 |
&instance |
| 878 |
} |
| 879 |
} |
| 880 |
|
| 881 |
impl ::protobuf::MessageFull for Metadata { |
| 882 |
fn descriptor() -> ::protobuf::reflect::MessageDescriptor { |
| 883 |
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); |
| 884 |
descriptor.get(|| file_descriptor().message_by_package_relative_name("Metadata").unwrap()).clone() |
| 885 |
} |
| 886 |
} |
| 887 |
|
| 888 |
impl ::std::fmt::Display for Metadata { |
| 889 |
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| 890 |
::protobuf::text_format::fmt(self, f) |
| 891 |
} |
| 892 |
} |
| 893 |
|
| 894 |
impl ::protobuf::reflect::ProtobufValue for Metadata { |
| 895 |
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>; |
| 896 |
} |
| 897 |
|
| 898 |
|
| 899 |
#[derive(PartialEq,Clone,Default,Debug)] |
| 900 |
pub struct Completeness { |
| 901 |
|
| 902 |
|
| 903 |
pub parameters: bool, |
| 904 |
|
| 905 |
pub environment: bool, |
| 906 |
|
| 907 |
pub materials: bool, |
| 908 |
|
| 909 |
|
| 910 |
pub special_fields: ::protobuf::SpecialFields, |
| 911 |
} |
| 912 |
|
| 913 |
impl<'a> ::std::default::Default for &'a Completeness { |
| 914 |
fn default() -> &'a Completeness { |
| 915 |
<Completeness as ::protobuf::Message>::default_instance() |
| 916 |
} |
| 917 |
} |
| 918 |
|
| 919 |
impl Completeness { |
| 920 |
pub fn new() -> Completeness { |
| 921 |
::std::default::Default::default() |
| 922 |
} |
| 923 |
|
| 924 |
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { |
| 925 |
let mut fields = ::std::vec::Vec::with_capacity(3); |
| 926 |
let mut oneofs = ::std::vec::Vec::with_capacity(0); |
| 927 |
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( |
| 928 |
"parameters", |
| 929 |
|m: &Completeness| { &m.parameters }, |
| 930 |
|m: &mut Completeness| { &mut m.parameters }, |
| 931 |
)); |
| 932 |
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( |
| 933 |
"environment", |
| 934 |
|m: &Completeness| { &m.environment }, |
| 935 |
|m: &mut Completeness| { &mut m.environment }, |
| 936 |
)); |
| 937 |
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( |
| 938 |
"materials", |
| 939 |
|m: &Completeness| { &m.materials }, |
| 940 |
|m: &mut Completeness| { &mut m.materials }, |
| 941 |
)); |
| 942 |
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<Completeness>( |
| 943 |
"Completeness", |
| 944 |
fields, |
| 945 |
oneofs, |
| 946 |
) |
| 947 |
} |
| 948 |
} |
| 949 |
|
| 950 |
impl ::protobuf::Message for Completeness { |
| 951 |
const NAME: &'static str = "Completeness"; |
| 952 |
|
| 953 |
fn is_initialized(&self) -> bool { |
| 954 |
true |
| 955 |
} |
| 956 |
|
| 957 |
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { |
| 958 |
while let Some(tag) = is.read_raw_tag_or_eof()? { |
| 959 |
match tag { |
| 960 |
8 => { |
| 961 |
self.parameters = is.read_bool()?; |
| 962 |
}, |
| 963 |
16 => { |
| 964 |
self.environment = is.read_bool()?; |
| 965 |
}, |
| 966 |
24 => { |
| 967 |
self.materials = is.read_bool()?; |
| 968 |
}, |
| 969 |
tag => { |
| 970 |
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
| 971 |
}, |
| 972 |
}; |
| 973 |
} |
| 974 |
::std::result::Result::Ok(()) |
| 975 |
} |
| 976 |
|
| 977 |
|
| 978 |
#[allow(unused_variables)] |
| 979 |
fn compute_size(&self) -> u64 { |
| 980 |
let mut my_size = 0; |
| 981 |
if self.parameters != false { |
| 982 |
my_size += 1 + 1; |
| 983 |
} |
| 984 |
if self.environment != false { |
| 985 |
my_size += 1 + 1; |
| 986 |
} |
| 987 |
if self.materials != false { |
| 988 |
my_size += 1 + 1; |
| 989 |
} |
| 990 |
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
| 991 |
self.special_fields.cached_size().set(my_size as u32); |
| 992 |
my_size |
| 993 |
} |
| 994 |
|
| 995 |
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { |
| 996 |
if self.parameters != false { |
| 997 |
os.write_bool(1, self.parameters)?; |
| 998 |
} |
| 999 |
if self.environment != false { |
| 1000 |
os.write_bool(2, self.environment)?; |
| 1001 |
} |
| 1002 |
if self.materials != false { |
| 1003 |
os.write_bool(3, self.materials)?; |
| 1004 |
} |
| 1005 |
os.write_unknown_fields(self.special_fields.unknown_fields())?; |
| 1006 |
::std::result::Result::Ok(()) |
| 1007 |
} |
| 1008 |
|
| 1009 |
fn special_fields(&self) -> &::protobuf::SpecialFields { |
| 1010 |
&self.special_fields |
| 1011 |
} |
| 1012 |
|
| 1013 |
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { |
| 1014 |
&mut self.special_fields |
| 1015 |
} |
| 1016 |
|
| 1017 |
fn new() -> Completeness { |
| 1018 |
Completeness::new() |
| 1019 |
} |
| 1020 |
|
| 1021 |
fn clear(&mut self) { |
| 1022 |
self.parameters = false; |
| 1023 |
self.environment = false; |
| 1024 |
self.materials = false; |
| 1025 |
self.special_fields.clear(); |
| 1026 |
} |
| 1027 |
|
| 1028 |
fn default_instance() -> &'static Completeness { |
| 1029 |
static instance: Completeness = Completeness { |
| 1030 |
parameters: false, |
| 1031 |
environment: false, |
| 1032 |
materials: false, |
| 1033 |
special_fields: ::protobuf::SpecialFields::new(), |
| 1034 |
}; |
| 1035 |
&instance |
| 1036 |
} |
| 1037 |
} |
| 1038 |
|
| 1039 |
impl ::protobuf::MessageFull for Completeness { |
| 1040 |
fn descriptor() -> ::protobuf::reflect::MessageDescriptor { |
| 1041 |
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); |
| 1042 |
descriptor.get(|| file_descriptor().message_by_package_relative_name("Completeness").unwrap()).clone() |
| 1043 |
} |
| 1044 |
} |
| 1045 |
|
| 1046 |
impl ::std::fmt::Display for Completeness { |
| 1047 |
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| 1048 |
::protobuf::text_format::fmt(self, f) |
| 1049 |
} |
| 1050 |
} |
| 1051 |
|
| 1052 |
impl ::protobuf::reflect::ProtobufValue for Completeness { |
| 1053 |
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>; |
| 1054 |
} |
| 1055 |
|
| 1056 |
|
| 1057 |
#[derive(PartialEq,Clone,Default,Debug)] |
| 1058 |
pub struct Material { |
| 1059 |
|
| 1060 |
|
| 1061 |
pub uri: ::std::string::String, |
| 1062 |
|
| 1063 |
pub digest: ::std::collections::HashMap<::std::string::String, ::std::string::String>, |
| 1064 |
|
| 1065 |
|
| 1066 |
pub special_fields: ::protobuf::SpecialFields, |
| 1067 |
} |
| 1068 |
|
| 1069 |
impl<'a> ::std::default::Default for &'a Material { |
| 1070 |
fn default() -> &'a Material { |
| 1071 |
<Material as ::protobuf::Message>::default_instance() |
| 1072 |
} |
| 1073 |
} |
| 1074 |
|
| 1075 |
impl Material { |
| 1076 |
pub fn new() -> Material { |
| 1077 |
::std::default::Default::default() |
| 1078 |
} |
| 1079 |
|
| 1080 |
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { |
| 1081 |
let mut fields = ::std::vec::Vec::with_capacity(2); |
| 1082 |
let mut oneofs = ::std::vec::Vec::with_capacity(0); |
| 1083 |
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( |
| 1084 |
"uri", |
| 1085 |
|m: &Material| { &m.uri }, |
| 1086 |
|m: &mut Material| { &mut m.uri }, |
| 1087 |
)); |
| 1088 |
fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor_new::<_, _>( |
| 1089 |
"digest", |
| 1090 |
|m: &Material| { &m.digest }, |
| 1091 |
|m: &mut Material| { &mut m.digest }, |
| 1092 |
)); |
| 1093 |
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<Material>( |
| 1094 |
"Material", |
| 1095 |
fields, |
| 1096 |
oneofs, |
| 1097 |
) |
| 1098 |
} |
| 1099 |
} |
| 1100 |
|
| 1101 |
impl ::protobuf::Message for Material { |
| 1102 |
const NAME: &'static str = "Material"; |
| 1103 |
|
| 1104 |
fn is_initialized(&self) -> bool { |
| 1105 |
true |
| 1106 |
} |
| 1107 |
|
| 1108 |
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { |
| 1109 |
while let Some(tag) = is.read_raw_tag_or_eof()? { |
| 1110 |
match tag { |
| 1111 |
10 => { |
| 1112 |
self.uri = is.read_string()?; |
| 1113 |
}, |
| 1114 |
18 => { |
| 1115 |
let len = is.read_raw_varint32()?; |
| 1116 |
let old_limit = is.push_limit(len as u64)?; |
| 1117 |
let mut key = ::std::default::Default::default(); |
| 1118 |
let mut value = ::std::default::Default::default(); |
| 1119 |
while let Some(tag) = is.read_raw_tag_or_eof()? { |
| 1120 |
match tag { |
| 1121 |
10 => key = is.read_string()?, |
| 1122 |
18 => value = is.read_string()?, |
| 1123 |
_ => ::protobuf::rt::skip_field_for_tag(tag, is)?, |
| 1124 |
}; |
| 1125 |
} |
| 1126 |
is.pop_limit(old_limit); |
| 1127 |
self.digest.insert(key, value); |
| 1128 |
}, |
| 1129 |
tag => { |
| 1130 |
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
| 1131 |
}, |
| 1132 |
}; |
| 1133 |
} |
| 1134 |
::std::result::Result::Ok(()) |
| 1135 |
} |
| 1136 |
|
| 1137 |
|
| 1138 |
#[allow(unused_variables)] |
| 1139 |
fn compute_size(&self) -> u64 { |
| 1140 |
let mut my_size = 0; |
| 1141 |
if !self.uri.is_empty() { |
| 1142 |
my_size += ::protobuf::rt::string_size(1, &self.uri); |
| 1143 |
} |
| 1144 |
for (k, v) in &self.digest { |
| 1145 |
let mut entry_size = 0; |
| 1146 |
entry_size += ::protobuf::rt::string_size(1, &k); |
| 1147 |
entry_size += ::protobuf::rt::string_size(2, &v); |
| 1148 |
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size |
| 1149 |
}; |
| 1150 |
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
| 1151 |
self.special_fields.cached_size().set(my_size as u32); |
| 1152 |
my_size |
| 1153 |
} |
| 1154 |
|
| 1155 |
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { |
| 1156 |
if !self.uri.is_empty() { |
| 1157 |
os.write_string(1, &self.uri)?; |
| 1158 |
} |
| 1159 |
for (k, v) in &self.digest { |
| 1160 |
let mut entry_size = 0; |
| 1161 |
entry_size += ::protobuf::rt::string_size(1, &k); |
| 1162 |
entry_size += ::protobuf::rt::string_size(2, &v); |
| 1163 |
os.write_raw_varint32(18)?; |
| 1164 |
os.write_raw_varint32(entry_size as u32)?; |
| 1165 |
os.write_string(1, &k)?; |
| 1166 |
os.write_string(2, &v)?; |
| 1167 |
}; |
| 1168 |
os.write_unknown_fields(self.special_fields.unknown_fields())?; |
| 1169 |
::std::result::Result::Ok(()) |
| 1170 |
} |
| 1171 |
|
| 1172 |
fn special_fields(&self) -> &::protobuf::SpecialFields { |
| 1173 |
&self.special_fields |
| 1174 |
} |
| 1175 |
|
| 1176 |
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { |
| 1177 |
&mut self.special_fields |
| 1178 |
} |
| 1179 |
|
| 1180 |
fn new() -> Material { |
| 1181 |
Material::new() |
| 1182 |
} |
| 1183 |
|
| 1184 |
fn clear(&mut self) { |
| 1185 |
self.uri.clear(); |
| 1186 |
self.digest.clear(); |
| 1187 |
self.special_fields.clear(); |
| 1188 |
} |
| 1189 |
|
| 1190 |
fn default_instance() -> &'static Material { |
| 1191 |
static instance: ::protobuf::rt::Lazy<Material> = ::protobuf::rt::Lazy::new(); |
| 1192 |
instance.get(Material::new) |
| 1193 |
} |
| 1194 |
} |
| 1195 |
|
| 1196 |
impl ::protobuf::MessageFull for Material { |
| 1197 |
fn descriptor() -> ::protobuf::reflect::MessageDescriptor { |
| 1198 |
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); |
| 1199 |
descriptor.get(|| file_descriptor().message_by_package_relative_name("Material").unwrap()).clone() |
| 1200 |
} |
| 1201 |
} |
| 1202 |
|
| 1203 |
impl ::std::fmt::Display for Material { |
| 1204 |
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| 1205 |
::protobuf::text_format::fmt(self, f) |
| 1206 |
} |
| 1207 |
} |
| 1208 |
|
| 1209 |
impl ::protobuf::reflect::ProtobufValue for Material { |
| 1210 |
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>; |
| 1211 |
} |
| 1212 |
|
| 1213 |
static file_descriptor_proto_data: &'static [u8] = b"\ |
| 1214 |
\n?in_toto_attestation/predicates/provenance/v0.2/provenance.proto\x12-i\ |
| 1215 |
n_toto_attestation.predicates.provenance.v02\x1a\x1cgoogle/protobuf/stru\ |
| 1216 |
ct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc0\x03\n\nProvenance\ |
| 1217 |
\x12P\n\x07builder\x18\x01\x20\x01(\x0b26.in_toto_attestation.predicates\ |
| 1218 |
.provenance.v02.BuilderR\x07builder\x12\x1d\n\nbuild_type\x18\x02\x20\ |
| 1219 |
\x01(\tR\tbuildType\x12Y\n\ninvocation\x18\x03\x20\x01(\x0b29.in_toto_at\ |
| 1220 |
testation.predicates.provenance.v02.InvocationR\ninvocation\x12:\n\x0cbu\ |
| 1221 |
ild_config\x18\x04\x20\x01(\x0b2\x17.google.protobuf.StructR\x0bbuildCon\ |
| 1222 |
fig\x12S\n\x08metadata\x18\x05\x20\x01(\x0b27.in_toto_attestation.predic\ |
| 1223 |
ates.provenance.v02.MetadataR\x08metadata\x12U\n\tmaterials\x18\x06\x20\ |
| 1224 |
\x03(\x0b27.in_toto_attestation.predicates.provenance.v02.MaterialR\tmat\ |
| 1225 |
erials\"\x19\n\x07Builder\x12\x0e\n\x02id\x18\x01\x20\x01(\tR\x02id\"\ |
| 1226 |
\xe2\x01\n\nInvocation\x12`\n\rconfig_source\x18\x01\x20\x01(\x0b2;.in_t\ |
| 1227 |
oto_attestation.predicates.provenance.v02.ConfigSourceR\x0cconfigSource\ |
| 1228 |
\x127\n\nparameters\x18\x02\x20\x01(\x0b2\x17.google.protobuf.StructR\np\ |
| 1229 |
arameters\x129\n\x0benvironment\x18\x03\x20\x01(\x0b2\x17.google.protobu\ |
| 1230 |
f.StructR\x0benvironment\"\xdd\x01\n\x0cConfigSource\x12\x10\n\x03uri\ |
| 1231 |
\x18\x01\x20\x01(\tR\x03uri\x12_\n\x06digest\x18\x02\x20\x03(\x0b2G.in_t\ |
| 1232 |
oto_attestation.predicates.provenance.v02.ConfigSource.DigestEntryR\x06d\ |
| 1233 |
igest\x12\x1f\n\x0bentry_point\x18\x03\x20\x01(\tR\nentryPoint\x1a9\n\ |
| 1234 |
\x0bDigestEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\ |
| 1235 |
\x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01\"\xcd\x02\n\x08Metadata\ |
| 1236 |
\x12.\n\x13build_invocation_id\x18\x01\x20\x01(\tR\x11buildInvocationId\ |
| 1237 |
\x12D\n\x10build_started_on\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.Ti\ |
| 1238 |
mestampR\x0ebuildStartedOn\x12F\n\x11build_finished_on\x18\x03\x20\x01(\ |
| 1239 |
\x0b2\x1a.google.protobuf.TimestampR\x0fbuildFinishedOn\x12_\n\x0ccomple\ |
| 1240 |
teness\x18\x04\x20\x01(\x0b2;.in_toto_attestation.predicates.provenance.\ |
| 1241 |
v02.CompletenessR\x0ccompleteness\x12\"\n\x0creproducible\x18\x05\x20\ |
| 1242 |
\x01(\x08R\x0creproducible\"n\n\x0cCompleteness\x12\x1e\n\nparameters\ |
| 1243 |
\x18\x01\x20\x01(\x08R\nparameters\x12\x20\n\x0benvironment\x18\x02\x20\ |
| 1244 |
\x01(\x08R\x0benvironment\x12\x1c\n\tmaterials\x18\x03\x20\x01(\x08R\tma\ |
| 1245 |
terials\"\xb4\x01\n\x08Material\x12\x10\n\x03uri\x18\x01\x20\x01(\tR\x03\ |
| 1246 |
uri\x12[\n\x06digest\x18\x02\x20\x03(\x0b2C.in_toto_attestation.predicat\ |
| 1247 |
es.provenance.v02.Material.DigestEntryR\x06digest\x1a9\n\x0bDigestEntry\ |
| 1248 |
\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\ |
| 1249 |
\x20\x01(\tR\x05value:\x028\x01Bu\n6io.github.intoto.attestation.predica\ |
| 1250 |
tes.provenance.v02Z;github.com/in-toto/attestation/go/predicates/provena\ |
| 1251 |
nce/v02b\x06proto3\ |
| 1252 |
"; |
| 1253 |
|
| 1254 |
|
| 1255 |
fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { |
| 1256 |
static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); |
| 1257 |
file_descriptor_proto_lazy.get(|| { |
| 1258 |
::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() |
| 1259 |
}) |
| 1260 |
} |
| 1261 |
|
| 1262 |
|
| 1263 |
pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { |
| 1264 |
static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); |
| 1265 |
static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); |
| 1266 |
file_descriptor.get(|| { |
| 1267 |
let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { |
| 1268 |
let mut deps = ::std::vec::Vec::with_capacity(2); |
| 1269 |
deps.push(::protobuf::well_known_types::struct_::file_descriptor().clone()); |
| 1270 |
deps.push(::protobuf::well_known_types::timestamp::file_descriptor().clone()); |
| 1271 |
let mut messages = ::std::vec::Vec::with_capacity(7); |
| 1272 |
messages.push(Provenance::generated_message_descriptor_data()); |
| 1273 |
messages.push(Builder::generated_message_descriptor_data()); |
| 1274 |
messages.push(Invocation::generated_message_descriptor_data()); |
| 1275 |
messages.push(ConfigSource::generated_message_descriptor_data()); |
| 1276 |
messages.push(Metadata::generated_message_descriptor_data()); |
| 1277 |
messages.push(Completeness::generated_message_descriptor_data()); |
| 1278 |
messages.push(Material::generated_message_descriptor_data()); |
| 1279 |
let mut enums = ::std::vec::Vec::with_capacity(0); |
| 1280 |
::protobuf::reflect::GeneratedFileDescriptor::new_generated( |
| 1281 |
file_descriptor_proto(), |
| 1282 |
deps, |
| 1283 |
messages, |
| 1284 |
enums, |
| 1285 |
) |
| 1286 |
}); |
| 1287 |
::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) |
| 1288 |
}) |
| 1289 |
} |