Chih-Hung Hsieh | cfc3a23 | 2020-06-10 20:13:05 -0700 | [diff] [blame^] | 1 | // This file is generated by rust-protobuf 2.14.0-pre. Do not edit |
| 2 | // @generated |
| 3 | |
| 4 | // https://github.com/rust-lang/rust-clippy/issues/702 |
| 5 | #![allow(unknown_lints)] |
| 6 | #![allow(clippy::all)] |
| 7 | |
| 8 | #![cfg_attr(rustfmt, rustfmt_skip)] |
| 9 | |
| 10 | #![allow(box_pointers)] |
| 11 | #![allow(dead_code)] |
| 12 | #![allow(missing_docs)] |
| 13 | #![allow(non_camel_case_types)] |
| 14 | #![allow(non_snake_case)] |
| 15 | #![allow(non_upper_case_globals)] |
| 16 | #![allow(trivial_casts)] |
| 17 | #![allow(unsafe_code)] |
| 18 | #![allow(unused_imports)] |
| 19 | #![allow(unused_results)] |
| 20 | //! Generated file from `google/protobuf/descriptor.proto` |
| 21 | |
| 22 | use protobuf::Message as Message_imported_for_functions; |
| 23 | use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions; |
| 24 | |
| 25 | #[derive(PartialEq,Clone,Default)] |
| 26 | #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))] |
| 27 | pub struct FileDescriptorSet { |
| 28 | // message fields |
| 29 | file: ::protobuf::RepeatedField<FileDescriptorProto>, |
| 30 | // special fields |
| 31 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 32 | pub unknown_fields: ::protobuf::UnknownFields, |
| 33 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 34 | pub cached_size: ::protobuf::CachedSize, |
| 35 | } |
| 36 | |
| 37 | impl<'a> ::std::default::Default for &'a FileDescriptorSet { |
| 38 | fn default() -> &'a FileDescriptorSet { |
| 39 | <FileDescriptorSet as ::protobuf::Message>::default_instance() |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | impl FileDescriptorSet { |
| 44 | pub fn new() -> FileDescriptorSet { |
| 45 | ::std::default::Default::default() |
| 46 | } |
| 47 | |
| 48 | // repeated .google.protobuf.FileDescriptorProto file = 1; |
| 49 | |
| 50 | |
| 51 | pub fn get_file(&self) -> &[FileDescriptorProto] { |
| 52 | &self.file |
| 53 | } |
| 54 | pub fn clear_file(&mut self) { |
| 55 | self.file.clear(); |
| 56 | } |
| 57 | |
| 58 | // Param is passed by value, moved |
| 59 | pub fn set_file(&mut self, v: ::protobuf::RepeatedField<FileDescriptorProto>) { |
| 60 | self.file = v; |
| 61 | } |
| 62 | |
| 63 | // Mutable pointer to the field. |
| 64 | pub fn mut_file(&mut self) -> &mut ::protobuf::RepeatedField<FileDescriptorProto> { |
| 65 | &mut self.file |
| 66 | } |
| 67 | |
| 68 | // Take field |
| 69 | pub fn take_file(&mut self) -> ::protobuf::RepeatedField<FileDescriptorProto> { |
| 70 | ::std::mem::replace(&mut self.file, ::protobuf::RepeatedField::new()) |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | impl ::protobuf::Message for FileDescriptorSet { |
| 75 | fn is_initialized(&self) -> bool { |
| 76 | for v in &self.file { |
| 77 | if !v.is_initialized() { |
| 78 | return false; |
| 79 | } |
| 80 | }; |
| 81 | true |
| 82 | } |
| 83 | |
| 84 | fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 85 | while !is.eof()? { |
| 86 | let (field_number, wire_type) = is.read_tag_unpack()?; |
| 87 | match field_number { |
| 88 | 1 => { |
| 89 | ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.file)?; |
| 90 | }, |
| 91 | _ => { |
| 92 | ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| 93 | }, |
| 94 | }; |
| 95 | } |
| 96 | ::std::result::Result::Ok(()) |
| 97 | } |
| 98 | |
| 99 | // Compute sizes of nested messages |
| 100 | #[allow(unused_variables)] |
| 101 | fn compute_size(&self) -> u32 { |
| 102 | let mut my_size = 0; |
| 103 | for value in &self.file { |
| 104 | let len = value.compute_size(); |
| 105 | my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 106 | }; |
| 107 | my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); |
| 108 | self.cached_size.set(my_size); |
| 109 | my_size |
| 110 | } |
| 111 | |
| 112 | fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 113 | for v in &self.file { |
| 114 | os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 115 | os.write_raw_varint32(v.get_cached_size())?; |
| 116 | v.write_to_with_cached_sizes(os)?; |
| 117 | }; |
| 118 | os.write_unknown_fields(self.get_unknown_fields())?; |
| 119 | ::std::result::Result::Ok(()) |
| 120 | } |
| 121 | |
| 122 | fn get_cached_size(&self) -> u32 { |
| 123 | self.cached_size.get() |
| 124 | } |
| 125 | |
| 126 | fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { |
| 127 | &self.unknown_fields |
| 128 | } |
| 129 | |
| 130 | fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { |
| 131 | &mut self.unknown_fields |
| 132 | } |
| 133 | |
| 134 | fn as_any(&self) -> &dyn (::std::any::Any) { |
| 135 | self as &dyn (::std::any::Any) |
| 136 | } |
| 137 | fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| 138 | self as &mut dyn (::std::any::Any) |
| 139 | } |
| 140 | fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| 141 | self |
| 142 | } |
| 143 | |
| 144 | fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { |
| 145 | Self::descriptor_static() |
| 146 | } |
| 147 | |
| 148 | fn new() -> FileDescriptorSet { |
| 149 | FileDescriptorSet::new() |
| 150 | } |
| 151 | |
| 152 | fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { |
| 153 | static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; |
| 154 | unsafe { |
| 155 | descriptor.get(|| { |
| 156 | let mut fields = ::std::vec::Vec::new(); |
| 157 | fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<FileDescriptorProto>>( |
| 158 | "file", |
| 159 | |m: &FileDescriptorSet| { &m.file }, |
| 160 | |m: &mut FileDescriptorSet| { &mut m.file }, |
| 161 | )); |
| 162 | ::protobuf::reflect::MessageDescriptor::new_pb_name::<FileDescriptorSet>( |
| 163 | "FileDescriptorSet", |
| 164 | fields, |
| 165 | file_descriptor_proto() |
| 166 | ) |
| 167 | }) |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | fn default_instance() -> &'static FileDescriptorSet { |
| 172 | static mut instance: ::protobuf::lazy::Lazy<FileDescriptorSet> = ::protobuf::lazy::Lazy::INIT; |
| 173 | unsafe { |
| 174 | instance.get(FileDescriptorSet::new) |
| 175 | } |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | impl ::protobuf::Clear for FileDescriptorSet { |
| 180 | fn clear(&mut self) { |
| 181 | self.file.clear(); |
| 182 | self.unknown_fields.clear(); |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | impl ::std::fmt::Debug for FileDescriptorSet { |
| 187 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| 188 | ::protobuf::text_format::fmt(self, f) |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | impl ::protobuf::reflect::ProtobufValue for FileDescriptorSet { |
| 193 | fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { |
| 194 | ::protobuf::reflect::ReflectValueRef::Message(self) |
| 195 | } |
| 196 | } |
| 197 | |
| 198 | #[derive(PartialEq,Clone,Default)] |
| 199 | #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))] |
| 200 | pub struct FileDescriptorProto { |
| 201 | // message fields |
| 202 | name: ::protobuf::SingularField<::std::string::String>, |
| 203 | package: ::protobuf::SingularField<::std::string::String>, |
| 204 | dependency: ::protobuf::RepeatedField<::std::string::String>, |
| 205 | public_dependency: ::std::vec::Vec<i32>, |
| 206 | weak_dependency: ::std::vec::Vec<i32>, |
| 207 | message_type: ::protobuf::RepeatedField<DescriptorProto>, |
| 208 | enum_type: ::protobuf::RepeatedField<EnumDescriptorProto>, |
| 209 | service: ::protobuf::RepeatedField<ServiceDescriptorProto>, |
| 210 | extension: ::protobuf::RepeatedField<FieldDescriptorProto>, |
| 211 | options: ::protobuf::SingularPtrField<FileOptions>, |
| 212 | source_code_info: ::protobuf::SingularPtrField<SourceCodeInfo>, |
| 213 | syntax: ::protobuf::SingularField<::std::string::String>, |
| 214 | // special fields |
| 215 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 216 | pub unknown_fields: ::protobuf::UnknownFields, |
| 217 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 218 | pub cached_size: ::protobuf::CachedSize, |
| 219 | } |
| 220 | |
| 221 | impl<'a> ::std::default::Default for &'a FileDescriptorProto { |
| 222 | fn default() -> &'a FileDescriptorProto { |
| 223 | <FileDescriptorProto as ::protobuf::Message>::default_instance() |
| 224 | } |
| 225 | } |
| 226 | |
| 227 | impl FileDescriptorProto { |
| 228 | pub fn new() -> FileDescriptorProto { |
| 229 | ::std::default::Default::default() |
| 230 | } |
| 231 | |
| 232 | // optional string name = 1; |
| 233 | |
| 234 | |
| 235 | pub fn get_name(&self) -> &str { |
| 236 | match self.name.as_ref() { |
| 237 | Some(v) => &v, |
| 238 | None => "", |
| 239 | } |
| 240 | } |
| 241 | pub fn clear_name(&mut self) { |
| 242 | self.name.clear(); |
| 243 | } |
| 244 | |
| 245 | pub fn has_name(&self) -> bool { |
| 246 | self.name.is_some() |
| 247 | } |
| 248 | |
| 249 | // Param is passed by value, moved |
| 250 | pub fn set_name(&mut self, v: ::std::string::String) { |
| 251 | self.name = ::protobuf::SingularField::some(v); |
| 252 | } |
| 253 | |
| 254 | // Mutable pointer to the field. |
| 255 | // If field is not initialized, it is initialized with default value first. |
| 256 | pub fn mut_name(&mut self) -> &mut ::std::string::String { |
| 257 | if self.name.is_none() { |
| 258 | self.name.set_default(); |
| 259 | } |
| 260 | self.name.as_mut().unwrap() |
| 261 | } |
| 262 | |
| 263 | // Take field |
| 264 | pub fn take_name(&mut self) -> ::std::string::String { |
| 265 | self.name.take().unwrap_or_else(|| ::std::string::String::new()) |
| 266 | } |
| 267 | |
| 268 | // optional string package = 2; |
| 269 | |
| 270 | |
| 271 | pub fn get_package(&self) -> &str { |
| 272 | match self.package.as_ref() { |
| 273 | Some(v) => &v, |
| 274 | None => "", |
| 275 | } |
| 276 | } |
| 277 | pub fn clear_package(&mut self) { |
| 278 | self.package.clear(); |
| 279 | } |
| 280 | |
| 281 | pub fn has_package(&self) -> bool { |
| 282 | self.package.is_some() |
| 283 | } |
| 284 | |
| 285 | // Param is passed by value, moved |
| 286 | pub fn set_package(&mut self, v: ::std::string::String) { |
| 287 | self.package = ::protobuf::SingularField::some(v); |
| 288 | } |
| 289 | |
| 290 | // Mutable pointer to the field. |
| 291 | // If field is not initialized, it is initialized with default value first. |
| 292 | pub fn mut_package(&mut self) -> &mut ::std::string::String { |
| 293 | if self.package.is_none() { |
| 294 | self.package.set_default(); |
| 295 | } |
| 296 | self.package.as_mut().unwrap() |
| 297 | } |
| 298 | |
| 299 | // Take field |
| 300 | pub fn take_package(&mut self) -> ::std::string::String { |
| 301 | self.package.take().unwrap_or_else(|| ::std::string::String::new()) |
| 302 | } |
| 303 | |
| 304 | // repeated string dependency = 3; |
| 305 | |
| 306 | |
| 307 | pub fn get_dependency(&self) -> &[::std::string::String] { |
| 308 | &self.dependency |
| 309 | } |
| 310 | pub fn clear_dependency(&mut self) { |
| 311 | self.dependency.clear(); |
| 312 | } |
| 313 | |
| 314 | // Param is passed by value, moved |
| 315 | pub fn set_dependency(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { |
| 316 | self.dependency = v; |
| 317 | } |
| 318 | |
| 319 | // Mutable pointer to the field. |
| 320 | pub fn mut_dependency(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { |
| 321 | &mut self.dependency |
| 322 | } |
| 323 | |
| 324 | // Take field |
| 325 | pub fn take_dependency(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { |
| 326 | ::std::mem::replace(&mut self.dependency, ::protobuf::RepeatedField::new()) |
| 327 | } |
| 328 | |
| 329 | // repeated int32 public_dependency = 10; |
| 330 | |
| 331 | |
| 332 | pub fn get_public_dependency(&self) -> &[i32] { |
| 333 | &self.public_dependency |
| 334 | } |
| 335 | pub fn clear_public_dependency(&mut self) { |
| 336 | self.public_dependency.clear(); |
| 337 | } |
| 338 | |
| 339 | // Param is passed by value, moved |
| 340 | pub fn set_public_dependency(&mut self, v: ::std::vec::Vec<i32>) { |
| 341 | self.public_dependency = v; |
| 342 | } |
| 343 | |
| 344 | // Mutable pointer to the field. |
| 345 | pub fn mut_public_dependency(&mut self) -> &mut ::std::vec::Vec<i32> { |
| 346 | &mut self.public_dependency |
| 347 | } |
| 348 | |
| 349 | // Take field |
| 350 | pub fn take_public_dependency(&mut self) -> ::std::vec::Vec<i32> { |
| 351 | ::std::mem::replace(&mut self.public_dependency, ::std::vec::Vec::new()) |
| 352 | } |
| 353 | |
| 354 | // repeated int32 weak_dependency = 11; |
| 355 | |
| 356 | |
| 357 | pub fn get_weak_dependency(&self) -> &[i32] { |
| 358 | &self.weak_dependency |
| 359 | } |
| 360 | pub fn clear_weak_dependency(&mut self) { |
| 361 | self.weak_dependency.clear(); |
| 362 | } |
| 363 | |
| 364 | // Param is passed by value, moved |
| 365 | pub fn set_weak_dependency(&mut self, v: ::std::vec::Vec<i32>) { |
| 366 | self.weak_dependency = v; |
| 367 | } |
| 368 | |
| 369 | // Mutable pointer to the field. |
| 370 | pub fn mut_weak_dependency(&mut self) -> &mut ::std::vec::Vec<i32> { |
| 371 | &mut self.weak_dependency |
| 372 | } |
| 373 | |
| 374 | // Take field |
| 375 | pub fn take_weak_dependency(&mut self) -> ::std::vec::Vec<i32> { |
| 376 | ::std::mem::replace(&mut self.weak_dependency, ::std::vec::Vec::new()) |
| 377 | } |
| 378 | |
| 379 | // repeated .google.protobuf.DescriptorProto message_type = 4; |
| 380 | |
| 381 | |
| 382 | pub fn get_message_type(&self) -> &[DescriptorProto] { |
| 383 | &self.message_type |
| 384 | } |
| 385 | pub fn clear_message_type(&mut self) { |
| 386 | self.message_type.clear(); |
| 387 | } |
| 388 | |
| 389 | // Param is passed by value, moved |
| 390 | pub fn set_message_type(&mut self, v: ::protobuf::RepeatedField<DescriptorProto>) { |
| 391 | self.message_type = v; |
| 392 | } |
| 393 | |
| 394 | // Mutable pointer to the field. |
| 395 | pub fn mut_message_type(&mut self) -> &mut ::protobuf::RepeatedField<DescriptorProto> { |
| 396 | &mut self.message_type |
| 397 | } |
| 398 | |
| 399 | // Take field |
| 400 | pub fn take_message_type(&mut self) -> ::protobuf::RepeatedField<DescriptorProto> { |
| 401 | ::std::mem::replace(&mut self.message_type, ::protobuf::RepeatedField::new()) |
| 402 | } |
| 403 | |
| 404 | // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; |
| 405 | |
| 406 | |
| 407 | pub fn get_enum_type(&self) -> &[EnumDescriptorProto] { |
| 408 | &self.enum_type |
| 409 | } |
| 410 | pub fn clear_enum_type(&mut self) { |
| 411 | self.enum_type.clear(); |
| 412 | } |
| 413 | |
| 414 | // Param is passed by value, moved |
| 415 | pub fn set_enum_type(&mut self, v: ::protobuf::RepeatedField<EnumDescriptorProto>) { |
| 416 | self.enum_type = v; |
| 417 | } |
| 418 | |
| 419 | // Mutable pointer to the field. |
| 420 | pub fn mut_enum_type(&mut self) -> &mut ::protobuf::RepeatedField<EnumDescriptorProto> { |
| 421 | &mut self.enum_type |
| 422 | } |
| 423 | |
| 424 | // Take field |
| 425 | pub fn take_enum_type(&mut self) -> ::protobuf::RepeatedField<EnumDescriptorProto> { |
| 426 | ::std::mem::replace(&mut self.enum_type, ::protobuf::RepeatedField::new()) |
| 427 | } |
| 428 | |
| 429 | // repeated .google.protobuf.ServiceDescriptorProto service = 6; |
| 430 | |
| 431 | |
| 432 | pub fn get_service(&self) -> &[ServiceDescriptorProto] { |
| 433 | &self.service |
| 434 | } |
| 435 | pub fn clear_service(&mut self) { |
| 436 | self.service.clear(); |
| 437 | } |
| 438 | |
| 439 | // Param is passed by value, moved |
| 440 | pub fn set_service(&mut self, v: ::protobuf::RepeatedField<ServiceDescriptorProto>) { |
| 441 | self.service = v; |
| 442 | } |
| 443 | |
| 444 | // Mutable pointer to the field. |
| 445 | pub fn mut_service(&mut self) -> &mut ::protobuf::RepeatedField<ServiceDescriptorProto> { |
| 446 | &mut self.service |
| 447 | } |
| 448 | |
| 449 | // Take field |
| 450 | pub fn take_service(&mut self) -> ::protobuf::RepeatedField<ServiceDescriptorProto> { |
| 451 | ::std::mem::replace(&mut self.service, ::protobuf::RepeatedField::new()) |
| 452 | } |
| 453 | |
| 454 | // repeated .google.protobuf.FieldDescriptorProto extension = 7; |
| 455 | |
| 456 | |
| 457 | pub fn get_extension(&self) -> &[FieldDescriptorProto] { |
| 458 | &self.extension |
| 459 | } |
| 460 | pub fn clear_extension(&mut self) { |
| 461 | self.extension.clear(); |
| 462 | } |
| 463 | |
| 464 | // Param is passed by value, moved |
| 465 | pub fn set_extension(&mut self, v: ::protobuf::RepeatedField<FieldDescriptorProto>) { |
| 466 | self.extension = v; |
| 467 | } |
| 468 | |
| 469 | // Mutable pointer to the field. |
| 470 | pub fn mut_extension(&mut self) -> &mut ::protobuf::RepeatedField<FieldDescriptorProto> { |
| 471 | &mut self.extension |
| 472 | } |
| 473 | |
| 474 | // Take field |
| 475 | pub fn take_extension(&mut self) -> ::protobuf::RepeatedField<FieldDescriptorProto> { |
| 476 | ::std::mem::replace(&mut self.extension, ::protobuf::RepeatedField::new()) |
| 477 | } |
| 478 | |
| 479 | // optional .google.protobuf.FileOptions options = 8; |
| 480 | |
| 481 | |
| 482 | pub fn get_options(&self) -> &FileOptions { |
| 483 | self.options.as_ref().unwrap_or_else(|| FileOptions::default_instance()) |
| 484 | } |
| 485 | pub fn clear_options(&mut self) { |
| 486 | self.options.clear(); |
| 487 | } |
| 488 | |
| 489 | pub fn has_options(&self) -> bool { |
| 490 | self.options.is_some() |
| 491 | } |
| 492 | |
| 493 | // Param is passed by value, moved |
| 494 | pub fn set_options(&mut self, v: FileOptions) { |
| 495 | self.options = ::protobuf::SingularPtrField::some(v); |
| 496 | } |
| 497 | |
| 498 | // Mutable pointer to the field. |
| 499 | // If field is not initialized, it is initialized with default value first. |
| 500 | pub fn mut_options(&mut self) -> &mut FileOptions { |
| 501 | if self.options.is_none() { |
| 502 | self.options.set_default(); |
| 503 | } |
| 504 | self.options.as_mut().unwrap() |
| 505 | } |
| 506 | |
| 507 | // Take field |
| 508 | pub fn take_options(&mut self) -> FileOptions { |
| 509 | self.options.take().unwrap_or_else(|| FileOptions::new()) |
| 510 | } |
| 511 | |
| 512 | // optional .google.protobuf.SourceCodeInfo source_code_info = 9; |
| 513 | |
| 514 | |
| 515 | pub fn get_source_code_info(&self) -> &SourceCodeInfo { |
| 516 | self.source_code_info.as_ref().unwrap_or_else(|| SourceCodeInfo::default_instance()) |
| 517 | } |
| 518 | pub fn clear_source_code_info(&mut self) { |
| 519 | self.source_code_info.clear(); |
| 520 | } |
| 521 | |
| 522 | pub fn has_source_code_info(&self) -> bool { |
| 523 | self.source_code_info.is_some() |
| 524 | } |
| 525 | |
| 526 | // Param is passed by value, moved |
| 527 | pub fn set_source_code_info(&mut self, v: SourceCodeInfo) { |
| 528 | self.source_code_info = ::protobuf::SingularPtrField::some(v); |
| 529 | } |
| 530 | |
| 531 | // Mutable pointer to the field. |
| 532 | // If field is not initialized, it is initialized with default value first. |
| 533 | pub fn mut_source_code_info(&mut self) -> &mut SourceCodeInfo { |
| 534 | if self.source_code_info.is_none() { |
| 535 | self.source_code_info.set_default(); |
| 536 | } |
| 537 | self.source_code_info.as_mut().unwrap() |
| 538 | } |
| 539 | |
| 540 | // Take field |
| 541 | pub fn take_source_code_info(&mut self) -> SourceCodeInfo { |
| 542 | self.source_code_info.take().unwrap_or_else(|| SourceCodeInfo::new()) |
| 543 | } |
| 544 | |
| 545 | // optional string syntax = 12; |
| 546 | |
| 547 | |
| 548 | pub fn get_syntax(&self) -> &str { |
| 549 | match self.syntax.as_ref() { |
| 550 | Some(v) => &v, |
| 551 | None => "", |
| 552 | } |
| 553 | } |
| 554 | pub fn clear_syntax(&mut self) { |
| 555 | self.syntax.clear(); |
| 556 | } |
| 557 | |
| 558 | pub fn has_syntax(&self) -> bool { |
| 559 | self.syntax.is_some() |
| 560 | } |
| 561 | |
| 562 | // Param is passed by value, moved |
| 563 | pub fn set_syntax(&mut self, v: ::std::string::String) { |
| 564 | self.syntax = ::protobuf::SingularField::some(v); |
| 565 | } |
| 566 | |
| 567 | // Mutable pointer to the field. |
| 568 | // If field is not initialized, it is initialized with default value first. |
| 569 | pub fn mut_syntax(&mut self) -> &mut ::std::string::String { |
| 570 | if self.syntax.is_none() { |
| 571 | self.syntax.set_default(); |
| 572 | } |
| 573 | self.syntax.as_mut().unwrap() |
| 574 | } |
| 575 | |
| 576 | // Take field |
| 577 | pub fn take_syntax(&mut self) -> ::std::string::String { |
| 578 | self.syntax.take().unwrap_or_else(|| ::std::string::String::new()) |
| 579 | } |
| 580 | } |
| 581 | |
| 582 | impl ::protobuf::Message for FileDescriptorProto { |
| 583 | fn is_initialized(&self) -> bool { |
| 584 | for v in &self.message_type { |
| 585 | if !v.is_initialized() { |
| 586 | return false; |
| 587 | } |
| 588 | }; |
| 589 | for v in &self.enum_type { |
| 590 | if !v.is_initialized() { |
| 591 | return false; |
| 592 | } |
| 593 | }; |
| 594 | for v in &self.service { |
| 595 | if !v.is_initialized() { |
| 596 | return false; |
| 597 | } |
| 598 | }; |
| 599 | for v in &self.extension { |
| 600 | if !v.is_initialized() { |
| 601 | return false; |
| 602 | } |
| 603 | }; |
| 604 | for v in &self.options { |
| 605 | if !v.is_initialized() { |
| 606 | return false; |
| 607 | } |
| 608 | }; |
| 609 | for v in &self.source_code_info { |
| 610 | if !v.is_initialized() { |
| 611 | return false; |
| 612 | } |
| 613 | }; |
| 614 | true |
| 615 | } |
| 616 | |
| 617 | fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 618 | while !is.eof()? { |
| 619 | let (field_number, wire_type) = is.read_tag_unpack()?; |
| 620 | match field_number { |
| 621 | 1 => { |
| 622 | ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.name)?; |
| 623 | }, |
| 624 | 2 => { |
| 625 | ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.package)?; |
| 626 | }, |
| 627 | 3 => { |
| 628 | ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.dependency)?; |
| 629 | }, |
| 630 | 10 => { |
| 631 | ::protobuf::rt::read_repeated_int32_into(wire_type, is, &mut self.public_dependency)?; |
| 632 | }, |
| 633 | 11 => { |
| 634 | ::protobuf::rt::read_repeated_int32_into(wire_type, is, &mut self.weak_dependency)?; |
| 635 | }, |
| 636 | 4 => { |
| 637 | ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.message_type)?; |
| 638 | }, |
| 639 | 5 => { |
| 640 | ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.enum_type)?; |
| 641 | }, |
| 642 | 6 => { |
| 643 | ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.service)?; |
| 644 | }, |
| 645 | 7 => { |
| 646 | ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.extension)?; |
| 647 | }, |
| 648 | 8 => { |
| 649 | ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.options)?; |
| 650 | }, |
| 651 | 9 => { |
| 652 | ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.source_code_info)?; |
| 653 | }, |
| 654 | 12 => { |
| 655 | ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.syntax)?; |
| 656 | }, |
| 657 | _ => { |
| 658 | ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| 659 | }, |
| 660 | }; |
| 661 | } |
| 662 | ::std::result::Result::Ok(()) |
| 663 | } |
| 664 | |
| 665 | // Compute sizes of nested messages |
| 666 | #[allow(unused_variables)] |
| 667 | fn compute_size(&self) -> u32 { |
| 668 | let mut my_size = 0; |
| 669 | if let Some(ref v) = self.name.as_ref() { |
| 670 | my_size += ::protobuf::rt::string_size(1, &v); |
| 671 | } |
| 672 | if let Some(ref v) = self.package.as_ref() { |
| 673 | my_size += ::protobuf::rt::string_size(2, &v); |
| 674 | } |
| 675 | for value in &self.dependency { |
| 676 | my_size += ::protobuf::rt::string_size(3, &value); |
| 677 | }; |
| 678 | for value in &self.public_dependency { |
| 679 | my_size += ::protobuf::rt::value_size(10, *value, ::protobuf::wire_format::WireTypeVarint); |
| 680 | }; |
| 681 | for value in &self.weak_dependency { |
| 682 | my_size += ::protobuf::rt::value_size(11, *value, ::protobuf::wire_format::WireTypeVarint); |
| 683 | }; |
| 684 | for value in &self.message_type { |
| 685 | let len = value.compute_size(); |
| 686 | my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 687 | }; |
| 688 | for value in &self.enum_type { |
| 689 | let len = value.compute_size(); |
| 690 | my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 691 | }; |
| 692 | for value in &self.service { |
| 693 | let len = value.compute_size(); |
| 694 | my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 695 | }; |
| 696 | for value in &self.extension { |
| 697 | let len = value.compute_size(); |
| 698 | my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 699 | }; |
| 700 | if let Some(ref v) = self.options.as_ref() { |
| 701 | let len = v.compute_size(); |
| 702 | my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 703 | } |
| 704 | if let Some(ref v) = self.source_code_info.as_ref() { |
| 705 | let len = v.compute_size(); |
| 706 | my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 707 | } |
| 708 | if let Some(ref v) = self.syntax.as_ref() { |
| 709 | my_size += ::protobuf::rt::string_size(12, &v); |
| 710 | } |
| 711 | my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); |
| 712 | self.cached_size.set(my_size); |
| 713 | my_size |
| 714 | } |
| 715 | |
| 716 | fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 717 | if let Some(ref v) = self.name.as_ref() { |
| 718 | os.write_string(1, &v)?; |
| 719 | } |
| 720 | if let Some(ref v) = self.package.as_ref() { |
| 721 | os.write_string(2, &v)?; |
| 722 | } |
| 723 | for v in &self.dependency { |
| 724 | os.write_string(3, &v)?; |
| 725 | }; |
| 726 | for v in &self.public_dependency { |
| 727 | os.write_int32(10, *v)?; |
| 728 | }; |
| 729 | for v in &self.weak_dependency { |
| 730 | os.write_int32(11, *v)?; |
| 731 | }; |
| 732 | for v in &self.message_type { |
| 733 | os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 734 | os.write_raw_varint32(v.get_cached_size())?; |
| 735 | v.write_to_with_cached_sizes(os)?; |
| 736 | }; |
| 737 | for v in &self.enum_type { |
| 738 | os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 739 | os.write_raw_varint32(v.get_cached_size())?; |
| 740 | v.write_to_with_cached_sizes(os)?; |
| 741 | }; |
| 742 | for v in &self.service { |
| 743 | os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 744 | os.write_raw_varint32(v.get_cached_size())?; |
| 745 | v.write_to_with_cached_sizes(os)?; |
| 746 | }; |
| 747 | for v in &self.extension { |
| 748 | os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 749 | os.write_raw_varint32(v.get_cached_size())?; |
| 750 | v.write_to_with_cached_sizes(os)?; |
| 751 | }; |
| 752 | if let Some(ref v) = self.options.as_ref() { |
| 753 | os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 754 | os.write_raw_varint32(v.get_cached_size())?; |
| 755 | v.write_to_with_cached_sizes(os)?; |
| 756 | } |
| 757 | if let Some(ref v) = self.source_code_info.as_ref() { |
| 758 | os.write_tag(9, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 759 | os.write_raw_varint32(v.get_cached_size())?; |
| 760 | v.write_to_with_cached_sizes(os)?; |
| 761 | } |
| 762 | if let Some(ref v) = self.syntax.as_ref() { |
| 763 | os.write_string(12, &v)?; |
| 764 | } |
| 765 | os.write_unknown_fields(self.get_unknown_fields())?; |
| 766 | ::std::result::Result::Ok(()) |
| 767 | } |
| 768 | |
| 769 | fn get_cached_size(&self) -> u32 { |
| 770 | self.cached_size.get() |
| 771 | } |
| 772 | |
| 773 | fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { |
| 774 | &self.unknown_fields |
| 775 | } |
| 776 | |
| 777 | fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { |
| 778 | &mut self.unknown_fields |
| 779 | } |
| 780 | |
| 781 | fn as_any(&self) -> &dyn (::std::any::Any) { |
| 782 | self as &dyn (::std::any::Any) |
| 783 | } |
| 784 | fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| 785 | self as &mut dyn (::std::any::Any) |
| 786 | } |
| 787 | fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| 788 | self |
| 789 | } |
| 790 | |
| 791 | fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { |
| 792 | Self::descriptor_static() |
| 793 | } |
| 794 | |
| 795 | fn new() -> FileDescriptorProto { |
| 796 | FileDescriptorProto::new() |
| 797 | } |
| 798 | |
| 799 | fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { |
| 800 | static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; |
| 801 | unsafe { |
| 802 | descriptor.get(|| { |
| 803 | let mut fields = ::std::vec::Vec::new(); |
| 804 | fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( |
| 805 | "name", |
| 806 | |m: &FileDescriptorProto| { &m.name }, |
| 807 | |m: &mut FileDescriptorProto| { &mut m.name }, |
| 808 | )); |
| 809 | fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( |
| 810 | "package", |
| 811 | |m: &FileDescriptorProto| { &m.package }, |
| 812 | |m: &mut FileDescriptorProto| { &mut m.package }, |
| 813 | )); |
| 814 | fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( |
| 815 | "dependency", |
| 816 | |m: &FileDescriptorProto| { &m.dependency }, |
| 817 | |m: &mut FileDescriptorProto| { &mut m.dependency }, |
| 818 | )); |
| 819 | fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( |
| 820 | "public_dependency", |
| 821 | |m: &FileDescriptorProto| { &m.public_dependency }, |
| 822 | |m: &mut FileDescriptorProto| { &mut m.public_dependency }, |
| 823 | )); |
| 824 | fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( |
| 825 | "weak_dependency", |
| 826 | |m: &FileDescriptorProto| { &m.weak_dependency }, |
| 827 | |m: &mut FileDescriptorProto| { &mut m.weak_dependency }, |
| 828 | )); |
| 829 | fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<DescriptorProto>>( |
| 830 | "message_type", |
| 831 | |m: &FileDescriptorProto| { &m.message_type }, |
| 832 | |m: &mut FileDescriptorProto| { &mut m.message_type }, |
| 833 | )); |
| 834 | fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<EnumDescriptorProto>>( |
| 835 | "enum_type", |
| 836 | |m: &FileDescriptorProto| { &m.enum_type }, |
| 837 | |m: &mut FileDescriptorProto| { &mut m.enum_type }, |
| 838 | )); |
| 839 | fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<ServiceDescriptorProto>>( |
| 840 | "service", |
| 841 | |m: &FileDescriptorProto| { &m.service }, |
| 842 | |m: &mut FileDescriptorProto| { &mut m.service }, |
| 843 | )); |
| 844 | fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<FieldDescriptorProto>>( |
| 845 | "extension", |
| 846 | |m: &FileDescriptorProto| { &m.extension }, |
| 847 | |m: &mut FileDescriptorProto| { &mut m.extension }, |
| 848 | )); |
| 849 | fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<FileOptions>>( |
| 850 | "options", |
| 851 | |m: &FileDescriptorProto| { &m.options }, |
| 852 | |m: &mut FileDescriptorProto| { &mut m.options }, |
| 853 | )); |
| 854 | fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<SourceCodeInfo>>( |
| 855 | "source_code_info", |
| 856 | |m: &FileDescriptorProto| { &m.source_code_info }, |
| 857 | |m: &mut FileDescriptorProto| { &mut m.source_code_info }, |
| 858 | )); |
| 859 | fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( |
| 860 | "syntax", |
| 861 | |m: &FileDescriptorProto| { &m.syntax }, |
| 862 | |m: &mut FileDescriptorProto| { &mut m.syntax }, |
| 863 | )); |
| 864 | ::protobuf::reflect::MessageDescriptor::new_pb_name::<FileDescriptorProto>( |
| 865 | "FileDescriptorProto", |
| 866 | fields, |
| 867 | file_descriptor_proto() |
| 868 | ) |
| 869 | }) |
| 870 | } |
| 871 | } |
| 872 | |
| 873 | fn default_instance() -> &'static FileDescriptorProto { |
| 874 | static mut instance: ::protobuf::lazy::Lazy<FileDescriptorProto> = ::protobuf::lazy::Lazy::INIT; |
| 875 | unsafe { |
| 876 | instance.get(FileDescriptorProto::new) |
| 877 | } |
| 878 | } |
| 879 | } |
| 880 | |
| 881 | impl ::protobuf::Clear for FileDescriptorProto { |
| 882 | fn clear(&mut self) { |
| 883 | self.name.clear(); |
| 884 | self.package.clear(); |
| 885 | self.dependency.clear(); |
| 886 | self.public_dependency.clear(); |
| 887 | self.weak_dependency.clear(); |
| 888 | self.message_type.clear(); |
| 889 | self.enum_type.clear(); |
| 890 | self.service.clear(); |
| 891 | self.extension.clear(); |
| 892 | self.options.clear(); |
| 893 | self.source_code_info.clear(); |
| 894 | self.syntax.clear(); |
| 895 | self.unknown_fields.clear(); |
| 896 | } |
| 897 | } |
| 898 | |
| 899 | impl ::std::fmt::Debug for FileDescriptorProto { |
| 900 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| 901 | ::protobuf::text_format::fmt(self, f) |
| 902 | } |
| 903 | } |
| 904 | |
| 905 | impl ::protobuf::reflect::ProtobufValue for FileDescriptorProto { |
| 906 | fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { |
| 907 | ::protobuf::reflect::ReflectValueRef::Message(self) |
| 908 | } |
| 909 | } |
| 910 | |
| 911 | #[derive(PartialEq,Clone,Default)] |
| 912 | #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))] |
| 913 | pub struct DescriptorProto { |
| 914 | // message fields |
| 915 | name: ::protobuf::SingularField<::std::string::String>, |
| 916 | field: ::protobuf::RepeatedField<FieldDescriptorProto>, |
| 917 | extension: ::protobuf::RepeatedField<FieldDescriptorProto>, |
| 918 | nested_type: ::protobuf::RepeatedField<DescriptorProto>, |
| 919 | enum_type: ::protobuf::RepeatedField<EnumDescriptorProto>, |
| 920 | extension_range: ::protobuf::RepeatedField<DescriptorProto_ExtensionRange>, |
| 921 | oneof_decl: ::protobuf::RepeatedField<OneofDescriptorProto>, |
| 922 | options: ::protobuf::SingularPtrField<MessageOptions>, |
| 923 | reserved_range: ::protobuf::RepeatedField<DescriptorProto_ReservedRange>, |
| 924 | reserved_name: ::protobuf::RepeatedField<::std::string::String>, |
| 925 | // special fields |
| 926 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 927 | pub unknown_fields: ::protobuf::UnknownFields, |
| 928 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 929 | pub cached_size: ::protobuf::CachedSize, |
| 930 | } |
| 931 | |
| 932 | impl<'a> ::std::default::Default for &'a DescriptorProto { |
| 933 | fn default() -> &'a DescriptorProto { |
| 934 | <DescriptorProto as ::protobuf::Message>::default_instance() |
| 935 | } |
| 936 | } |
| 937 | |
| 938 | impl DescriptorProto { |
| 939 | pub fn new() -> DescriptorProto { |
| 940 | ::std::default::Default::default() |
| 941 | } |
| 942 | |
| 943 | // optional string name = 1; |
| 944 | |
| 945 | |
| 946 | pub fn get_name(&self) -> &str { |
| 947 | match self.name.as_ref() { |
| 948 | Some(v) => &v, |
| 949 | None => "", |
| 950 | } |
| 951 | } |
| 952 | pub fn clear_name(&mut self) { |
| 953 | self.name.clear(); |
| 954 | } |
| 955 | |
| 956 | pub fn has_name(&self) -> bool { |
| 957 | self.name.is_some() |
| 958 | } |
| 959 | |
| 960 | // Param is passed by value, moved |
| 961 | pub fn set_name(&mut self, v: ::std::string::String) { |
| 962 | self.name = ::protobuf::SingularField::some(v); |
| 963 | } |
| 964 | |
| 965 | // Mutable pointer to the field. |
| 966 | // If field is not initialized, it is initialized with default value first. |
| 967 | pub fn mut_name(&mut self) -> &mut ::std::string::String { |
| 968 | if self.name.is_none() { |
| 969 | self.name.set_default(); |
| 970 | } |
| 971 | self.name.as_mut().unwrap() |
| 972 | } |
| 973 | |
| 974 | // Take field |
| 975 | pub fn take_name(&mut self) -> ::std::string::String { |
| 976 | self.name.take().unwrap_or_else(|| ::std::string::String::new()) |
| 977 | } |
| 978 | |
| 979 | // repeated .google.protobuf.FieldDescriptorProto field = 2; |
| 980 | |
| 981 | |
| 982 | pub fn get_field(&self) -> &[FieldDescriptorProto] { |
| 983 | &self.field |
| 984 | } |
| 985 | pub fn clear_field(&mut self) { |
| 986 | self.field.clear(); |
| 987 | } |
| 988 | |
| 989 | // Param is passed by value, moved |
| 990 | pub fn set_field(&mut self, v: ::protobuf::RepeatedField<FieldDescriptorProto>) { |
| 991 | self.field = v; |
| 992 | } |
| 993 | |
| 994 | // Mutable pointer to the field. |
| 995 | pub fn mut_field(&mut self) -> &mut ::protobuf::RepeatedField<FieldDescriptorProto> { |
| 996 | &mut self.field |
| 997 | } |
| 998 | |
| 999 | // Take field |
| 1000 | pub fn take_field(&mut self) -> ::protobuf::RepeatedField<FieldDescriptorProto> { |
| 1001 | ::std::mem::replace(&mut self.field, ::protobuf::RepeatedField::new()) |
| 1002 | } |
| 1003 | |
| 1004 | // repeated .google.protobuf.FieldDescriptorProto extension = 6; |
| 1005 | |
| 1006 | |
| 1007 | pub fn get_extension(&self) -> &[FieldDescriptorProto] { |
| 1008 | &self.extension |
| 1009 | } |
| 1010 | pub fn clear_extension(&mut self) { |
| 1011 | self.extension.clear(); |
| 1012 | } |
| 1013 | |
| 1014 | // Param is passed by value, moved |
| 1015 | pub fn set_extension(&mut self, v: ::protobuf::RepeatedField<FieldDescriptorProto>) { |
| 1016 | self.extension = v; |
| 1017 | } |
| 1018 | |
| 1019 | // Mutable pointer to the field. |
| 1020 | pub fn mut_extension(&mut self) -> &mut ::protobuf::RepeatedField<FieldDescriptorProto> { |
| 1021 | &mut self.extension |
| 1022 | } |
| 1023 | |
| 1024 | // Take field |
| 1025 | pub fn take_extension(&mut self) -> ::protobuf::RepeatedField<FieldDescriptorProto> { |
| 1026 | ::std::mem::replace(&mut self.extension, ::protobuf::RepeatedField::new()) |
| 1027 | } |
| 1028 | |
| 1029 | // repeated .google.protobuf.DescriptorProto nested_type = 3; |
| 1030 | |
| 1031 | |
| 1032 | pub fn get_nested_type(&self) -> &[DescriptorProto] { |
| 1033 | &self.nested_type |
| 1034 | } |
| 1035 | pub fn clear_nested_type(&mut self) { |
| 1036 | self.nested_type.clear(); |
| 1037 | } |
| 1038 | |
| 1039 | // Param is passed by value, moved |
| 1040 | pub fn set_nested_type(&mut self, v: ::protobuf::RepeatedField<DescriptorProto>) { |
| 1041 | self.nested_type = v; |
| 1042 | } |
| 1043 | |
| 1044 | // Mutable pointer to the field. |
| 1045 | pub fn mut_nested_type(&mut self) -> &mut ::protobuf::RepeatedField<DescriptorProto> { |
| 1046 | &mut self.nested_type |
| 1047 | } |
| 1048 | |
| 1049 | // Take field |
| 1050 | pub fn take_nested_type(&mut self) -> ::protobuf::RepeatedField<DescriptorProto> { |
| 1051 | ::std::mem::replace(&mut self.nested_type, ::protobuf::RepeatedField::new()) |
| 1052 | } |
| 1053 | |
| 1054 | // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
| 1055 | |
| 1056 | |
| 1057 | pub fn get_enum_type(&self) -> &[EnumDescriptorProto] { |
| 1058 | &self.enum_type |
| 1059 | } |
| 1060 | pub fn clear_enum_type(&mut self) { |
| 1061 | self.enum_type.clear(); |
| 1062 | } |
| 1063 | |
| 1064 | // Param is passed by value, moved |
| 1065 | pub fn set_enum_type(&mut self, v: ::protobuf::RepeatedField<EnumDescriptorProto>) { |
| 1066 | self.enum_type = v; |
| 1067 | } |
| 1068 | |
| 1069 | // Mutable pointer to the field. |
| 1070 | pub fn mut_enum_type(&mut self) -> &mut ::protobuf::RepeatedField<EnumDescriptorProto> { |
| 1071 | &mut self.enum_type |
| 1072 | } |
| 1073 | |
| 1074 | // Take field |
| 1075 | pub fn take_enum_type(&mut self) -> ::protobuf::RepeatedField<EnumDescriptorProto> { |
| 1076 | ::std::mem::replace(&mut self.enum_type, ::protobuf::RepeatedField::new()) |
| 1077 | } |
| 1078 | |
| 1079 | // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; |
| 1080 | |
| 1081 | |
| 1082 | pub fn get_extension_range(&self) -> &[DescriptorProto_ExtensionRange] { |
| 1083 | &self.extension_range |
| 1084 | } |
| 1085 | pub fn clear_extension_range(&mut self) { |
| 1086 | self.extension_range.clear(); |
| 1087 | } |
| 1088 | |
| 1089 | // Param is passed by value, moved |
| 1090 | pub fn set_extension_range(&mut self, v: ::protobuf::RepeatedField<DescriptorProto_ExtensionRange>) { |
| 1091 | self.extension_range = v; |
| 1092 | } |
| 1093 | |
| 1094 | // Mutable pointer to the field. |
| 1095 | pub fn mut_extension_range(&mut self) -> &mut ::protobuf::RepeatedField<DescriptorProto_ExtensionRange> { |
| 1096 | &mut self.extension_range |
| 1097 | } |
| 1098 | |
| 1099 | // Take field |
| 1100 | pub fn take_extension_range(&mut self) -> ::protobuf::RepeatedField<DescriptorProto_ExtensionRange> { |
| 1101 | ::std::mem::replace(&mut self.extension_range, ::protobuf::RepeatedField::new()) |
| 1102 | } |
| 1103 | |
| 1104 | // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; |
| 1105 | |
| 1106 | |
| 1107 | pub fn get_oneof_decl(&self) -> &[OneofDescriptorProto] { |
| 1108 | &self.oneof_decl |
| 1109 | } |
| 1110 | pub fn clear_oneof_decl(&mut self) { |
| 1111 | self.oneof_decl.clear(); |
| 1112 | } |
| 1113 | |
| 1114 | // Param is passed by value, moved |
| 1115 | pub fn set_oneof_decl(&mut self, v: ::protobuf::RepeatedField<OneofDescriptorProto>) { |
| 1116 | self.oneof_decl = v; |
| 1117 | } |
| 1118 | |
| 1119 | // Mutable pointer to the field. |
| 1120 | pub fn mut_oneof_decl(&mut self) -> &mut ::protobuf::RepeatedField<OneofDescriptorProto> { |
| 1121 | &mut self.oneof_decl |
| 1122 | } |
| 1123 | |
| 1124 | // Take field |
| 1125 | pub fn take_oneof_decl(&mut self) -> ::protobuf::RepeatedField<OneofDescriptorProto> { |
| 1126 | ::std::mem::replace(&mut self.oneof_decl, ::protobuf::RepeatedField::new()) |
| 1127 | } |
| 1128 | |
| 1129 | // optional .google.protobuf.MessageOptions options = 7; |
| 1130 | |
| 1131 | |
| 1132 | pub fn get_options(&self) -> &MessageOptions { |
| 1133 | self.options.as_ref().unwrap_or_else(|| MessageOptions::default_instance()) |
| 1134 | } |
| 1135 | pub fn clear_options(&mut self) { |
| 1136 | self.options.clear(); |
| 1137 | } |
| 1138 | |
| 1139 | pub fn has_options(&self) -> bool { |
| 1140 | self.options.is_some() |
| 1141 | } |
| 1142 | |
| 1143 | // Param is passed by value, moved |
| 1144 | pub fn set_options(&mut self, v: MessageOptions) { |
| 1145 | self.options = ::protobuf::SingularPtrField::some(v); |
| 1146 | } |
| 1147 | |
| 1148 | // Mutable pointer to the field. |
| 1149 | // If field is not initialized, it is initialized with default value first. |
| 1150 | pub fn mut_options(&mut self) -> &mut MessageOptions { |
| 1151 | if self.options.is_none() { |
| 1152 | self.options.set_default(); |
| 1153 | } |
| 1154 | self.options.as_mut().unwrap() |
| 1155 | } |
| 1156 | |
| 1157 | // Take field |
| 1158 | pub fn take_options(&mut self) -> MessageOptions { |
| 1159 | self.options.take().unwrap_or_else(|| MessageOptions::new()) |
| 1160 | } |
| 1161 | |
| 1162 | // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; |
| 1163 | |
| 1164 | |
| 1165 | pub fn get_reserved_range(&self) -> &[DescriptorProto_ReservedRange] { |
| 1166 | &self.reserved_range |
| 1167 | } |
| 1168 | pub fn clear_reserved_range(&mut self) { |
| 1169 | self.reserved_range.clear(); |
| 1170 | } |
| 1171 | |
| 1172 | // Param is passed by value, moved |
| 1173 | pub fn set_reserved_range(&mut self, v: ::protobuf::RepeatedField<DescriptorProto_ReservedRange>) { |
| 1174 | self.reserved_range = v; |
| 1175 | } |
| 1176 | |
| 1177 | // Mutable pointer to the field. |
| 1178 | pub fn mut_reserved_range(&mut self) -> &mut ::protobuf::RepeatedField<DescriptorProto_ReservedRange> { |
| 1179 | &mut self.reserved_range |
| 1180 | } |
| 1181 | |
| 1182 | // Take field |
| 1183 | pub fn take_reserved_range(&mut self) -> ::protobuf::RepeatedField<DescriptorProto_ReservedRange> { |
| 1184 | ::std::mem::replace(&mut self.reserved_range, ::protobuf::RepeatedField::new()) |
| 1185 | } |
| 1186 | |
| 1187 | // repeated string reserved_name = 10; |
| 1188 | |
| 1189 | |
| 1190 | pub fn get_reserved_name(&self) -> &[::std::string::String] { |
| 1191 | &self.reserved_name |
| 1192 | } |
| 1193 | pub fn clear_reserved_name(&mut self) { |
| 1194 | self.reserved_name.clear(); |
| 1195 | } |
| 1196 | |
| 1197 | // Param is passed by value, moved |
| 1198 | pub fn set_reserved_name(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { |
| 1199 | self.reserved_name = v; |
| 1200 | } |
| 1201 | |
| 1202 | // Mutable pointer to the field. |
| 1203 | pub fn mut_reserved_name(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { |
| 1204 | &mut self.reserved_name |
| 1205 | } |
| 1206 | |
| 1207 | // Take field |
| 1208 | pub fn take_reserved_name(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { |
| 1209 | ::std::mem::replace(&mut self.reserved_name, ::protobuf::RepeatedField::new()) |
| 1210 | } |
| 1211 | } |
| 1212 | |
| 1213 | impl ::protobuf::Message for DescriptorProto { |
| 1214 | fn is_initialized(&self) -> bool { |
| 1215 | for v in &self.field { |
| 1216 | if !v.is_initialized() { |
| 1217 | return false; |
| 1218 | } |
| 1219 | }; |
| 1220 | for v in &self.extension { |
| 1221 | if !v.is_initialized() { |
| 1222 | return false; |
| 1223 | } |
| 1224 | }; |
| 1225 | for v in &self.nested_type { |
| 1226 | if !v.is_initialized() { |
| 1227 | return false; |
| 1228 | } |
| 1229 | }; |
| 1230 | for v in &self.enum_type { |
| 1231 | if !v.is_initialized() { |
| 1232 | return false; |
| 1233 | } |
| 1234 | }; |
| 1235 | for v in &self.extension_range { |
| 1236 | if !v.is_initialized() { |
| 1237 | return false; |
| 1238 | } |
| 1239 | }; |
| 1240 | for v in &self.oneof_decl { |
| 1241 | if !v.is_initialized() { |
| 1242 | return false; |
| 1243 | } |
| 1244 | }; |
| 1245 | for v in &self.options { |
| 1246 | if !v.is_initialized() { |
| 1247 | return false; |
| 1248 | } |
| 1249 | }; |
| 1250 | for v in &self.reserved_range { |
| 1251 | if !v.is_initialized() { |
| 1252 | return false; |
| 1253 | } |
| 1254 | }; |
| 1255 | true |
| 1256 | } |
| 1257 | |
| 1258 | fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 1259 | while !is.eof()? { |
| 1260 | let (field_number, wire_type) = is.read_tag_unpack()?; |
| 1261 | match field_number { |
| 1262 | 1 => { |
| 1263 | ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.name)?; |
| 1264 | }, |
| 1265 | 2 => { |
| 1266 | ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.field)?; |
| 1267 | }, |
| 1268 | 6 => { |
| 1269 | ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.extension)?; |
| 1270 | }, |
| 1271 | 3 => { |
| 1272 | ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.nested_type)?; |
| 1273 | }, |
| 1274 | 4 => { |
| 1275 | ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.enum_type)?; |
| 1276 | }, |
| 1277 | 5 => { |
| 1278 | ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.extension_range)?; |
| 1279 | }, |
| 1280 | 8 => { |
| 1281 | ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.oneof_decl)?; |
| 1282 | }, |
| 1283 | 7 => { |
| 1284 | ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.options)?; |
| 1285 | }, |
| 1286 | 9 => { |
| 1287 | ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.reserved_range)?; |
| 1288 | }, |
| 1289 | 10 => { |
| 1290 | ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.reserved_name)?; |
| 1291 | }, |
| 1292 | _ => { |
| 1293 | ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| 1294 | }, |
| 1295 | }; |
| 1296 | } |
| 1297 | ::std::result::Result::Ok(()) |
| 1298 | } |
| 1299 | |
| 1300 | // Compute sizes of nested messages |
| 1301 | #[allow(unused_variables)] |
| 1302 | fn compute_size(&self) -> u32 { |
| 1303 | let mut my_size = 0; |
| 1304 | if let Some(ref v) = self.name.as_ref() { |
| 1305 | my_size += ::protobuf::rt::string_size(1, &v); |
| 1306 | } |
| 1307 | for value in &self.field { |
| 1308 | let len = value.compute_size(); |
| 1309 | my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 1310 | }; |
| 1311 | for value in &self.extension { |
| 1312 | let len = value.compute_size(); |
| 1313 | my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 1314 | }; |
| 1315 | for value in &self.nested_type { |
| 1316 | let len = value.compute_size(); |
| 1317 | my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 1318 | }; |
| 1319 | for value in &self.enum_type { |
| 1320 | let len = value.compute_size(); |
| 1321 | my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 1322 | }; |
| 1323 | for value in &self.extension_range { |
| 1324 | let len = value.compute_size(); |
| 1325 | my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 1326 | }; |
| 1327 | for value in &self.oneof_decl { |
| 1328 | let len = value.compute_size(); |
| 1329 | my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 1330 | }; |
| 1331 | if let Some(ref v) = self.options.as_ref() { |
| 1332 | let len = v.compute_size(); |
| 1333 | my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 1334 | } |
| 1335 | for value in &self.reserved_range { |
| 1336 | let len = value.compute_size(); |
| 1337 | my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 1338 | }; |
| 1339 | for value in &self.reserved_name { |
| 1340 | my_size += ::protobuf::rt::string_size(10, &value); |
| 1341 | }; |
| 1342 | my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); |
| 1343 | self.cached_size.set(my_size); |
| 1344 | my_size |
| 1345 | } |
| 1346 | |
| 1347 | fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 1348 | if let Some(ref v) = self.name.as_ref() { |
| 1349 | os.write_string(1, &v)?; |
| 1350 | } |
| 1351 | for v in &self.field { |
| 1352 | os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 1353 | os.write_raw_varint32(v.get_cached_size())?; |
| 1354 | v.write_to_with_cached_sizes(os)?; |
| 1355 | }; |
| 1356 | for v in &self.extension { |
| 1357 | os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 1358 | os.write_raw_varint32(v.get_cached_size())?; |
| 1359 | v.write_to_with_cached_sizes(os)?; |
| 1360 | }; |
| 1361 | for v in &self.nested_type { |
| 1362 | os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 1363 | os.write_raw_varint32(v.get_cached_size())?; |
| 1364 | v.write_to_with_cached_sizes(os)?; |
| 1365 | }; |
| 1366 | for v in &self.enum_type { |
| 1367 | os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 1368 | os.write_raw_varint32(v.get_cached_size())?; |
| 1369 | v.write_to_with_cached_sizes(os)?; |
| 1370 | }; |
| 1371 | for v in &self.extension_range { |
| 1372 | os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 1373 | os.write_raw_varint32(v.get_cached_size())?; |
| 1374 | v.write_to_with_cached_sizes(os)?; |
| 1375 | }; |
| 1376 | for v in &self.oneof_decl { |
| 1377 | os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 1378 | os.write_raw_varint32(v.get_cached_size())?; |
| 1379 | v.write_to_with_cached_sizes(os)?; |
| 1380 | }; |
| 1381 | if let Some(ref v) = self.options.as_ref() { |
| 1382 | os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 1383 | os.write_raw_varint32(v.get_cached_size())?; |
| 1384 | v.write_to_with_cached_sizes(os)?; |
| 1385 | } |
| 1386 | for v in &self.reserved_range { |
| 1387 | os.write_tag(9, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 1388 | os.write_raw_varint32(v.get_cached_size())?; |
| 1389 | v.write_to_with_cached_sizes(os)?; |
| 1390 | }; |
| 1391 | for v in &self.reserved_name { |
| 1392 | os.write_string(10, &v)?; |
| 1393 | }; |
| 1394 | os.write_unknown_fields(self.get_unknown_fields())?; |
| 1395 | ::std::result::Result::Ok(()) |
| 1396 | } |
| 1397 | |
| 1398 | fn get_cached_size(&self) -> u32 { |
| 1399 | self.cached_size.get() |
| 1400 | } |
| 1401 | |
| 1402 | fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { |
| 1403 | &self.unknown_fields |
| 1404 | } |
| 1405 | |
| 1406 | fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { |
| 1407 | &mut self.unknown_fields |
| 1408 | } |
| 1409 | |
| 1410 | fn as_any(&self) -> &dyn (::std::any::Any) { |
| 1411 | self as &dyn (::std::any::Any) |
| 1412 | } |
| 1413 | fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| 1414 | self as &mut dyn (::std::any::Any) |
| 1415 | } |
| 1416 | fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| 1417 | self |
| 1418 | } |
| 1419 | |
| 1420 | fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { |
| 1421 | Self::descriptor_static() |
| 1422 | } |
| 1423 | |
| 1424 | fn new() -> DescriptorProto { |
| 1425 | DescriptorProto::new() |
| 1426 | } |
| 1427 | |
| 1428 | fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { |
| 1429 | static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; |
| 1430 | unsafe { |
| 1431 | descriptor.get(|| { |
| 1432 | let mut fields = ::std::vec::Vec::new(); |
| 1433 | fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( |
| 1434 | "name", |
| 1435 | |m: &DescriptorProto| { &m.name }, |
| 1436 | |m: &mut DescriptorProto| { &mut m.name }, |
| 1437 | )); |
| 1438 | fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<FieldDescriptorProto>>( |
| 1439 | "field", |
| 1440 | |m: &DescriptorProto| { &m.field }, |
| 1441 | |m: &mut DescriptorProto| { &mut m.field }, |
| 1442 | )); |
| 1443 | fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<FieldDescriptorProto>>( |
| 1444 | "extension", |
| 1445 | |m: &DescriptorProto| { &m.extension }, |
| 1446 | |m: &mut DescriptorProto| { &mut m.extension }, |
| 1447 | )); |
| 1448 | fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<DescriptorProto>>( |
| 1449 | "nested_type", |
| 1450 | |m: &DescriptorProto| { &m.nested_type }, |
| 1451 | |m: &mut DescriptorProto| { &mut m.nested_type }, |
| 1452 | )); |
| 1453 | fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<EnumDescriptorProto>>( |
| 1454 | "enum_type", |
| 1455 | |m: &DescriptorProto| { &m.enum_type }, |
| 1456 | |m: &mut DescriptorProto| { &mut m.enum_type }, |
| 1457 | )); |
| 1458 | fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<DescriptorProto_ExtensionRange>>( |
| 1459 | "extension_range", |
| 1460 | |m: &DescriptorProto| { &m.extension_range }, |
| 1461 | |m: &mut DescriptorProto| { &mut m.extension_range }, |
| 1462 | )); |
| 1463 | fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<OneofDescriptorProto>>( |
| 1464 | "oneof_decl", |
| 1465 | |m: &DescriptorProto| { &m.oneof_decl }, |
| 1466 | |m: &mut DescriptorProto| { &mut m.oneof_decl }, |
| 1467 | )); |
| 1468 | fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<MessageOptions>>( |
| 1469 | "options", |
| 1470 | |m: &DescriptorProto| { &m.options }, |
| 1471 | |m: &mut DescriptorProto| { &mut m.options }, |
| 1472 | )); |
| 1473 | fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<DescriptorProto_ReservedRange>>( |
| 1474 | "reserved_range", |
| 1475 | |m: &DescriptorProto| { &m.reserved_range }, |
| 1476 | |m: &mut DescriptorProto| { &mut m.reserved_range }, |
| 1477 | )); |
| 1478 | fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( |
| 1479 | "reserved_name", |
| 1480 | |m: &DescriptorProto| { &m.reserved_name }, |
| 1481 | |m: &mut DescriptorProto| { &mut m.reserved_name }, |
| 1482 | )); |
| 1483 | ::protobuf::reflect::MessageDescriptor::new_pb_name::<DescriptorProto>( |
| 1484 | "DescriptorProto", |
| 1485 | fields, |
| 1486 | file_descriptor_proto() |
| 1487 | ) |
| 1488 | }) |
| 1489 | } |
| 1490 | } |
| 1491 | |
| 1492 | fn default_instance() -> &'static DescriptorProto { |
| 1493 | static mut instance: ::protobuf::lazy::Lazy<DescriptorProto> = ::protobuf::lazy::Lazy::INIT; |
| 1494 | unsafe { |
| 1495 | instance.get(DescriptorProto::new) |
| 1496 | } |
| 1497 | } |
| 1498 | } |
| 1499 | |
| 1500 | impl ::protobuf::Clear for DescriptorProto { |
| 1501 | fn clear(&mut self) { |
| 1502 | self.name.clear(); |
| 1503 | self.field.clear(); |
| 1504 | self.extension.clear(); |
| 1505 | self.nested_type.clear(); |
| 1506 | self.enum_type.clear(); |
| 1507 | self.extension_range.clear(); |
| 1508 | self.oneof_decl.clear(); |
| 1509 | self.options.clear(); |
| 1510 | self.reserved_range.clear(); |
| 1511 | self.reserved_name.clear(); |
| 1512 | self.unknown_fields.clear(); |
| 1513 | } |
| 1514 | } |
| 1515 | |
| 1516 | impl ::std::fmt::Debug for DescriptorProto { |
| 1517 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| 1518 | ::protobuf::text_format::fmt(self, f) |
| 1519 | } |
| 1520 | } |
| 1521 | |
| 1522 | impl ::protobuf::reflect::ProtobufValue for DescriptorProto { |
| 1523 | fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { |
| 1524 | ::protobuf::reflect::ReflectValueRef::Message(self) |
| 1525 | } |
| 1526 | } |
| 1527 | |
| 1528 | #[derive(PartialEq,Clone,Default)] |
| 1529 | #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))] |
| 1530 | pub struct DescriptorProto_ExtensionRange { |
| 1531 | // message fields |
| 1532 | start: ::std::option::Option<i32>, |
| 1533 | end: ::std::option::Option<i32>, |
| 1534 | // special fields |
| 1535 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 1536 | pub unknown_fields: ::protobuf::UnknownFields, |
| 1537 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 1538 | pub cached_size: ::protobuf::CachedSize, |
| 1539 | } |
| 1540 | |
| 1541 | impl<'a> ::std::default::Default for &'a DescriptorProto_ExtensionRange { |
| 1542 | fn default() -> &'a DescriptorProto_ExtensionRange { |
| 1543 | <DescriptorProto_ExtensionRange as ::protobuf::Message>::default_instance() |
| 1544 | } |
| 1545 | } |
| 1546 | |
| 1547 | impl DescriptorProto_ExtensionRange { |
| 1548 | pub fn new() -> DescriptorProto_ExtensionRange { |
| 1549 | ::std::default::Default::default() |
| 1550 | } |
| 1551 | |
| 1552 | // optional int32 start = 1; |
| 1553 | |
| 1554 | |
| 1555 | pub fn get_start(&self) -> i32 { |
| 1556 | self.start.unwrap_or(0) |
| 1557 | } |
| 1558 | pub fn clear_start(&mut self) { |
| 1559 | self.start = ::std::option::Option::None; |
| 1560 | } |
| 1561 | |
| 1562 | pub fn has_start(&self) -> bool { |
| 1563 | self.start.is_some() |
| 1564 | } |
| 1565 | |
| 1566 | // Param is passed by value, moved |
| 1567 | pub fn set_start(&mut self, v: i32) { |
| 1568 | self.start = ::std::option::Option::Some(v); |
| 1569 | } |
| 1570 | |
| 1571 | // optional int32 end = 2; |
| 1572 | |
| 1573 | |
| 1574 | pub fn get_end(&self) -> i32 { |
| 1575 | self.end.unwrap_or(0) |
| 1576 | } |
| 1577 | pub fn clear_end(&mut self) { |
| 1578 | self.end = ::std::option::Option::None; |
| 1579 | } |
| 1580 | |
| 1581 | pub fn has_end(&self) -> bool { |
| 1582 | self.end.is_some() |
| 1583 | } |
| 1584 | |
| 1585 | // Param is passed by value, moved |
| 1586 | pub fn set_end(&mut self, v: i32) { |
| 1587 | self.end = ::std::option::Option::Some(v); |
| 1588 | } |
| 1589 | } |
| 1590 | |
| 1591 | impl ::protobuf::Message for DescriptorProto_ExtensionRange { |
| 1592 | fn is_initialized(&self) -> bool { |
| 1593 | true |
| 1594 | } |
| 1595 | |
| 1596 | fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 1597 | while !is.eof()? { |
| 1598 | let (field_number, wire_type) = is.read_tag_unpack()?; |
| 1599 | match field_number { |
| 1600 | 1 => { |
| 1601 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 1602 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 1603 | } |
| 1604 | let tmp = is.read_int32()?; |
| 1605 | self.start = ::std::option::Option::Some(tmp); |
| 1606 | }, |
| 1607 | 2 => { |
| 1608 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 1609 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 1610 | } |
| 1611 | let tmp = is.read_int32()?; |
| 1612 | self.end = ::std::option::Option::Some(tmp); |
| 1613 | }, |
| 1614 | _ => { |
| 1615 | ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| 1616 | }, |
| 1617 | }; |
| 1618 | } |
| 1619 | ::std::result::Result::Ok(()) |
| 1620 | } |
| 1621 | |
| 1622 | // Compute sizes of nested messages |
| 1623 | #[allow(unused_variables)] |
| 1624 | fn compute_size(&self) -> u32 { |
| 1625 | let mut my_size = 0; |
| 1626 | if let Some(v) = self.start { |
| 1627 | my_size += ::protobuf::rt::value_size(1, v, ::protobuf::wire_format::WireTypeVarint); |
| 1628 | } |
| 1629 | if let Some(v) = self.end { |
| 1630 | my_size += ::protobuf::rt::value_size(2, v, ::protobuf::wire_format::WireTypeVarint); |
| 1631 | } |
| 1632 | my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); |
| 1633 | self.cached_size.set(my_size); |
| 1634 | my_size |
| 1635 | } |
| 1636 | |
| 1637 | fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 1638 | if let Some(v) = self.start { |
| 1639 | os.write_int32(1, v)?; |
| 1640 | } |
| 1641 | if let Some(v) = self.end { |
| 1642 | os.write_int32(2, v)?; |
| 1643 | } |
| 1644 | os.write_unknown_fields(self.get_unknown_fields())?; |
| 1645 | ::std::result::Result::Ok(()) |
| 1646 | } |
| 1647 | |
| 1648 | fn get_cached_size(&self) -> u32 { |
| 1649 | self.cached_size.get() |
| 1650 | } |
| 1651 | |
| 1652 | fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { |
| 1653 | &self.unknown_fields |
| 1654 | } |
| 1655 | |
| 1656 | fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { |
| 1657 | &mut self.unknown_fields |
| 1658 | } |
| 1659 | |
| 1660 | fn as_any(&self) -> &dyn (::std::any::Any) { |
| 1661 | self as &dyn (::std::any::Any) |
| 1662 | } |
| 1663 | fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| 1664 | self as &mut dyn (::std::any::Any) |
| 1665 | } |
| 1666 | fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| 1667 | self |
| 1668 | } |
| 1669 | |
| 1670 | fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { |
| 1671 | Self::descriptor_static() |
| 1672 | } |
| 1673 | |
| 1674 | fn new() -> DescriptorProto_ExtensionRange { |
| 1675 | DescriptorProto_ExtensionRange::new() |
| 1676 | } |
| 1677 | |
| 1678 | fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { |
| 1679 | static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; |
| 1680 | unsafe { |
| 1681 | descriptor.get(|| { |
| 1682 | let mut fields = ::std::vec::Vec::new(); |
| 1683 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( |
| 1684 | "start", |
| 1685 | |m: &DescriptorProto_ExtensionRange| { &m.start }, |
| 1686 | |m: &mut DescriptorProto_ExtensionRange| { &mut m.start }, |
| 1687 | )); |
| 1688 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( |
| 1689 | "end", |
| 1690 | |m: &DescriptorProto_ExtensionRange| { &m.end }, |
| 1691 | |m: &mut DescriptorProto_ExtensionRange| { &mut m.end }, |
| 1692 | )); |
| 1693 | ::protobuf::reflect::MessageDescriptor::new_pb_name::<DescriptorProto_ExtensionRange>( |
| 1694 | "DescriptorProto.ExtensionRange", |
| 1695 | fields, |
| 1696 | file_descriptor_proto() |
| 1697 | ) |
| 1698 | }) |
| 1699 | } |
| 1700 | } |
| 1701 | |
| 1702 | fn default_instance() -> &'static DescriptorProto_ExtensionRange { |
| 1703 | static mut instance: ::protobuf::lazy::Lazy<DescriptorProto_ExtensionRange> = ::protobuf::lazy::Lazy::INIT; |
| 1704 | unsafe { |
| 1705 | instance.get(DescriptorProto_ExtensionRange::new) |
| 1706 | } |
| 1707 | } |
| 1708 | } |
| 1709 | |
| 1710 | impl ::protobuf::Clear for DescriptorProto_ExtensionRange { |
| 1711 | fn clear(&mut self) { |
| 1712 | self.start = ::std::option::Option::None; |
| 1713 | self.end = ::std::option::Option::None; |
| 1714 | self.unknown_fields.clear(); |
| 1715 | } |
| 1716 | } |
| 1717 | |
| 1718 | impl ::std::fmt::Debug for DescriptorProto_ExtensionRange { |
| 1719 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| 1720 | ::protobuf::text_format::fmt(self, f) |
| 1721 | } |
| 1722 | } |
| 1723 | |
| 1724 | impl ::protobuf::reflect::ProtobufValue for DescriptorProto_ExtensionRange { |
| 1725 | fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { |
| 1726 | ::protobuf::reflect::ReflectValueRef::Message(self) |
| 1727 | } |
| 1728 | } |
| 1729 | |
| 1730 | #[derive(PartialEq,Clone,Default)] |
| 1731 | #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))] |
| 1732 | pub struct DescriptorProto_ReservedRange { |
| 1733 | // message fields |
| 1734 | start: ::std::option::Option<i32>, |
| 1735 | end: ::std::option::Option<i32>, |
| 1736 | // special fields |
| 1737 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 1738 | pub unknown_fields: ::protobuf::UnknownFields, |
| 1739 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 1740 | pub cached_size: ::protobuf::CachedSize, |
| 1741 | } |
| 1742 | |
| 1743 | impl<'a> ::std::default::Default for &'a DescriptorProto_ReservedRange { |
| 1744 | fn default() -> &'a DescriptorProto_ReservedRange { |
| 1745 | <DescriptorProto_ReservedRange as ::protobuf::Message>::default_instance() |
| 1746 | } |
| 1747 | } |
| 1748 | |
| 1749 | impl DescriptorProto_ReservedRange { |
| 1750 | pub fn new() -> DescriptorProto_ReservedRange { |
| 1751 | ::std::default::Default::default() |
| 1752 | } |
| 1753 | |
| 1754 | // optional int32 start = 1; |
| 1755 | |
| 1756 | |
| 1757 | pub fn get_start(&self) -> i32 { |
| 1758 | self.start.unwrap_or(0) |
| 1759 | } |
| 1760 | pub fn clear_start(&mut self) { |
| 1761 | self.start = ::std::option::Option::None; |
| 1762 | } |
| 1763 | |
| 1764 | pub fn has_start(&self) -> bool { |
| 1765 | self.start.is_some() |
| 1766 | } |
| 1767 | |
| 1768 | // Param is passed by value, moved |
| 1769 | pub fn set_start(&mut self, v: i32) { |
| 1770 | self.start = ::std::option::Option::Some(v); |
| 1771 | } |
| 1772 | |
| 1773 | // optional int32 end = 2; |
| 1774 | |
| 1775 | |
| 1776 | pub fn get_end(&self) -> i32 { |
| 1777 | self.end.unwrap_or(0) |
| 1778 | } |
| 1779 | pub fn clear_end(&mut self) { |
| 1780 | self.end = ::std::option::Option::None; |
| 1781 | } |
| 1782 | |
| 1783 | pub fn has_end(&self) -> bool { |
| 1784 | self.end.is_some() |
| 1785 | } |
| 1786 | |
| 1787 | // Param is passed by value, moved |
| 1788 | pub fn set_end(&mut self, v: i32) { |
| 1789 | self.end = ::std::option::Option::Some(v); |
| 1790 | } |
| 1791 | } |
| 1792 | |
| 1793 | impl ::protobuf::Message for DescriptorProto_ReservedRange { |
| 1794 | fn is_initialized(&self) -> bool { |
| 1795 | true |
| 1796 | } |
| 1797 | |
| 1798 | fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 1799 | while !is.eof()? { |
| 1800 | let (field_number, wire_type) = is.read_tag_unpack()?; |
| 1801 | match field_number { |
| 1802 | 1 => { |
| 1803 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 1804 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 1805 | } |
| 1806 | let tmp = is.read_int32()?; |
| 1807 | self.start = ::std::option::Option::Some(tmp); |
| 1808 | }, |
| 1809 | 2 => { |
| 1810 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 1811 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 1812 | } |
| 1813 | let tmp = is.read_int32()?; |
| 1814 | self.end = ::std::option::Option::Some(tmp); |
| 1815 | }, |
| 1816 | _ => { |
| 1817 | ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| 1818 | }, |
| 1819 | }; |
| 1820 | } |
| 1821 | ::std::result::Result::Ok(()) |
| 1822 | } |
| 1823 | |
| 1824 | // Compute sizes of nested messages |
| 1825 | #[allow(unused_variables)] |
| 1826 | fn compute_size(&self) -> u32 { |
| 1827 | let mut my_size = 0; |
| 1828 | if let Some(v) = self.start { |
| 1829 | my_size += ::protobuf::rt::value_size(1, v, ::protobuf::wire_format::WireTypeVarint); |
| 1830 | } |
| 1831 | if let Some(v) = self.end { |
| 1832 | my_size += ::protobuf::rt::value_size(2, v, ::protobuf::wire_format::WireTypeVarint); |
| 1833 | } |
| 1834 | my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); |
| 1835 | self.cached_size.set(my_size); |
| 1836 | my_size |
| 1837 | } |
| 1838 | |
| 1839 | fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 1840 | if let Some(v) = self.start { |
| 1841 | os.write_int32(1, v)?; |
| 1842 | } |
| 1843 | if let Some(v) = self.end { |
| 1844 | os.write_int32(2, v)?; |
| 1845 | } |
| 1846 | os.write_unknown_fields(self.get_unknown_fields())?; |
| 1847 | ::std::result::Result::Ok(()) |
| 1848 | } |
| 1849 | |
| 1850 | fn get_cached_size(&self) -> u32 { |
| 1851 | self.cached_size.get() |
| 1852 | } |
| 1853 | |
| 1854 | fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { |
| 1855 | &self.unknown_fields |
| 1856 | } |
| 1857 | |
| 1858 | fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { |
| 1859 | &mut self.unknown_fields |
| 1860 | } |
| 1861 | |
| 1862 | fn as_any(&self) -> &dyn (::std::any::Any) { |
| 1863 | self as &dyn (::std::any::Any) |
| 1864 | } |
| 1865 | fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| 1866 | self as &mut dyn (::std::any::Any) |
| 1867 | } |
| 1868 | fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| 1869 | self |
| 1870 | } |
| 1871 | |
| 1872 | fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { |
| 1873 | Self::descriptor_static() |
| 1874 | } |
| 1875 | |
| 1876 | fn new() -> DescriptorProto_ReservedRange { |
| 1877 | DescriptorProto_ReservedRange::new() |
| 1878 | } |
| 1879 | |
| 1880 | fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { |
| 1881 | static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; |
| 1882 | unsafe { |
| 1883 | descriptor.get(|| { |
| 1884 | let mut fields = ::std::vec::Vec::new(); |
| 1885 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( |
| 1886 | "start", |
| 1887 | |m: &DescriptorProto_ReservedRange| { &m.start }, |
| 1888 | |m: &mut DescriptorProto_ReservedRange| { &mut m.start }, |
| 1889 | )); |
| 1890 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( |
| 1891 | "end", |
| 1892 | |m: &DescriptorProto_ReservedRange| { &m.end }, |
| 1893 | |m: &mut DescriptorProto_ReservedRange| { &mut m.end }, |
| 1894 | )); |
| 1895 | ::protobuf::reflect::MessageDescriptor::new_pb_name::<DescriptorProto_ReservedRange>( |
| 1896 | "DescriptorProto.ReservedRange", |
| 1897 | fields, |
| 1898 | file_descriptor_proto() |
| 1899 | ) |
| 1900 | }) |
| 1901 | } |
| 1902 | } |
| 1903 | |
| 1904 | fn default_instance() -> &'static DescriptorProto_ReservedRange { |
| 1905 | static mut instance: ::protobuf::lazy::Lazy<DescriptorProto_ReservedRange> = ::protobuf::lazy::Lazy::INIT; |
| 1906 | unsafe { |
| 1907 | instance.get(DescriptorProto_ReservedRange::new) |
| 1908 | } |
| 1909 | } |
| 1910 | } |
| 1911 | |
| 1912 | impl ::protobuf::Clear for DescriptorProto_ReservedRange { |
| 1913 | fn clear(&mut self) { |
| 1914 | self.start = ::std::option::Option::None; |
| 1915 | self.end = ::std::option::Option::None; |
| 1916 | self.unknown_fields.clear(); |
| 1917 | } |
| 1918 | } |
| 1919 | |
| 1920 | impl ::std::fmt::Debug for DescriptorProto_ReservedRange { |
| 1921 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| 1922 | ::protobuf::text_format::fmt(self, f) |
| 1923 | } |
| 1924 | } |
| 1925 | |
| 1926 | impl ::protobuf::reflect::ProtobufValue for DescriptorProto_ReservedRange { |
| 1927 | fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { |
| 1928 | ::protobuf::reflect::ReflectValueRef::Message(self) |
| 1929 | } |
| 1930 | } |
| 1931 | |
| 1932 | #[derive(PartialEq,Clone,Default)] |
| 1933 | #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))] |
| 1934 | pub struct FieldDescriptorProto { |
| 1935 | // message fields |
| 1936 | name: ::protobuf::SingularField<::std::string::String>, |
| 1937 | number: ::std::option::Option<i32>, |
| 1938 | label: ::std::option::Option<FieldDescriptorProto_Label>, |
| 1939 | field_type: ::std::option::Option<FieldDescriptorProto_Type>, |
| 1940 | type_name: ::protobuf::SingularField<::std::string::String>, |
| 1941 | extendee: ::protobuf::SingularField<::std::string::String>, |
| 1942 | default_value: ::protobuf::SingularField<::std::string::String>, |
| 1943 | oneof_index: ::std::option::Option<i32>, |
| 1944 | json_name: ::protobuf::SingularField<::std::string::String>, |
| 1945 | options: ::protobuf::SingularPtrField<FieldOptions>, |
| 1946 | // special fields |
| 1947 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 1948 | pub unknown_fields: ::protobuf::UnknownFields, |
| 1949 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 1950 | pub cached_size: ::protobuf::CachedSize, |
| 1951 | } |
| 1952 | |
| 1953 | impl<'a> ::std::default::Default for &'a FieldDescriptorProto { |
| 1954 | fn default() -> &'a FieldDescriptorProto { |
| 1955 | <FieldDescriptorProto as ::protobuf::Message>::default_instance() |
| 1956 | } |
| 1957 | } |
| 1958 | |
| 1959 | impl FieldDescriptorProto { |
| 1960 | pub fn new() -> FieldDescriptorProto { |
| 1961 | ::std::default::Default::default() |
| 1962 | } |
| 1963 | |
| 1964 | // optional string name = 1; |
| 1965 | |
| 1966 | |
| 1967 | pub fn get_name(&self) -> &str { |
| 1968 | match self.name.as_ref() { |
| 1969 | Some(v) => &v, |
| 1970 | None => "", |
| 1971 | } |
| 1972 | } |
| 1973 | pub fn clear_name(&mut self) { |
| 1974 | self.name.clear(); |
| 1975 | } |
| 1976 | |
| 1977 | pub fn has_name(&self) -> bool { |
| 1978 | self.name.is_some() |
| 1979 | } |
| 1980 | |
| 1981 | // Param is passed by value, moved |
| 1982 | pub fn set_name(&mut self, v: ::std::string::String) { |
| 1983 | self.name = ::protobuf::SingularField::some(v); |
| 1984 | } |
| 1985 | |
| 1986 | // Mutable pointer to the field. |
| 1987 | // If field is not initialized, it is initialized with default value first. |
| 1988 | pub fn mut_name(&mut self) -> &mut ::std::string::String { |
| 1989 | if self.name.is_none() { |
| 1990 | self.name.set_default(); |
| 1991 | } |
| 1992 | self.name.as_mut().unwrap() |
| 1993 | } |
| 1994 | |
| 1995 | // Take field |
| 1996 | pub fn take_name(&mut self) -> ::std::string::String { |
| 1997 | self.name.take().unwrap_or_else(|| ::std::string::String::new()) |
| 1998 | } |
| 1999 | |
| 2000 | // optional int32 number = 3; |
| 2001 | |
| 2002 | |
| 2003 | pub fn get_number(&self) -> i32 { |
| 2004 | self.number.unwrap_or(0) |
| 2005 | } |
| 2006 | pub fn clear_number(&mut self) { |
| 2007 | self.number = ::std::option::Option::None; |
| 2008 | } |
| 2009 | |
| 2010 | pub fn has_number(&self) -> bool { |
| 2011 | self.number.is_some() |
| 2012 | } |
| 2013 | |
| 2014 | // Param is passed by value, moved |
| 2015 | pub fn set_number(&mut self, v: i32) { |
| 2016 | self.number = ::std::option::Option::Some(v); |
| 2017 | } |
| 2018 | |
| 2019 | // optional .google.protobuf.FieldDescriptorProto.Label label = 4; |
| 2020 | |
| 2021 | |
| 2022 | pub fn get_label(&self) -> FieldDescriptorProto_Label { |
| 2023 | self.label.unwrap_or(FieldDescriptorProto_Label::LABEL_OPTIONAL) |
| 2024 | } |
| 2025 | pub fn clear_label(&mut self) { |
| 2026 | self.label = ::std::option::Option::None; |
| 2027 | } |
| 2028 | |
| 2029 | pub fn has_label(&self) -> bool { |
| 2030 | self.label.is_some() |
| 2031 | } |
| 2032 | |
| 2033 | // Param is passed by value, moved |
| 2034 | pub fn set_label(&mut self, v: FieldDescriptorProto_Label) { |
| 2035 | self.label = ::std::option::Option::Some(v); |
| 2036 | } |
| 2037 | |
| 2038 | // optional .google.protobuf.FieldDescriptorProto.Type type = 5; |
| 2039 | |
| 2040 | |
| 2041 | pub fn get_field_type(&self) -> FieldDescriptorProto_Type { |
| 2042 | self.field_type.unwrap_or(FieldDescriptorProto_Type::TYPE_DOUBLE) |
| 2043 | } |
| 2044 | pub fn clear_field_type(&mut self) { |
| 2045 | self.field_type = ::std::option::Option::None; |
| 2046 | } |
| 2047 | |
| 2048 | pub fn has_field_type(&self) -> bool { |
| 2049 | self.field_type.is_some() |
| 2050 | } |
| 2051 | |
| 2052 | // Param is passed by value, moved |
| 2053 | pub fn set_field_type(&mut self, v: FieldDescriptorProto_Type) { |
| 2054 | self.field_type = ::std::option::Option::Some(v); |
| 2055 | } |
| 2056 | |
| 2057 | // optional string type_name = 6; |
| 2058 | |
| 2059 | |
| 2060 | pub fn get_type_name(&self) -> &str { |
| 2061 | match self.type_name.as_ref() { |
| 2062 | Some(v) => &v, |
| 2063 | None => "", |
| 2064 | } |
| 2065 | } |
| 2066 | pub fn clear_type_name(&mut self) { |
| 2067 | self.type_name.clear(); |
| 2068 | } |
| 2069 | |
| 2070 | pub fn has_type_name(&self) -> bool { |
| 2071 | self.type_name.is_some() |
| 2072 | } |
| 2073 | |
| 2074 | // Param is passed by value, moved |
| 2075 | pub fn set_type_name(&mut self, v: ::std::string::String) { |
| 2076 | self.type_name = ::protobuf::SingularField::some(v); |
| 2077 | } |
| 2078 | |
| 2079 | // Mutable pointer to the field. |
| 2080 | // If field is not initialized, it is initialized with default value first. |
| 2081 | pub fn mut_type_name(&mut self) -> &mut ::std::string::String { |
| 2082 | if self.type_name.is_none() { |
| 2083 | self.type_name.set_default(); |
| 2084 | } |
| 2085 | self.type_name.as_mut().unwrap() |
| 2086 | } |
| 2087 | |
| 2088 | // Take field |
| 2089 | pub fn take_type_name(&mut self) -> ::std::string::String { |
| 2090 | self.type_name.take().unwrap_or_else(|| ::std::string::String::new()) |
| 2091 | } |
| 2092 | |
| 2093 | // optional string extendee = 2; |
| 2094 | |
| 2095 | |
| 2096 | pub fn get_extendee(&self) -> &str { |
| 2097 | match self.extendee.as_ref() { |
| 2098 | Some(v) => &v, |
| 2099 | None => "", |
| 2100 | } |
| 2101 | } |
| 2102 | pub fn clear_extendee(&mut self) { |
| 2103 | self.extendee.clear(); |
| 2104 | } |
| 2105 | |
| 2106 | pub fn has_extendee(&self) -> bool { |
| 2107 | self.extendee.is_some() |
| 2108 | } |
| 2109 | |
| 2110 | // Param is passed by value, moved |
| 2111 | pub fn set_extendee(&mut self, v: ::std::string::String) { |
| 2112 | self.extendee = ::protobuf::SingularField::some(v); |
| 2113 | } |
| 2114 | |
| 2115 | // Mutable pointer to the field. |
| 2116 | // If field is not initialized, it is initialized with default value first. |
| 2117 | pub fn mut_extendee(&mut self) -> &mut ::std::string::String { |
| 2118 | if self.extendee.is_none() { |
| 2119 | self.extendee.set_default(); |
| 2120 | } |
| 2121 | self.extendee.as_mut().unwrap() |
| 2122 | } |
| 2123 | |
| 2124 | // Take field |
| 2125 | pub fn take_extendee(&mut self) -> ::std::string::String { |
| 2126 | self.extendee.take().unwrap_or_else(|| ::std::string::String::new()) |
| 2127 | } |
| 2128 | |
| 2129 | // optional string default_value = 7; |
| 2130 | |
| 2131 | |
| 2132 | pub fn get_default_value(&self) -> &str { |
| 2133 | match self.default_value.as_ref() { |
| 2134 | Some(v) => &v, |
| 2135 | None => "", |
| 2136 | } |
| 2137 | } |
| 2138 | pub fn clear_default_value(&mut self) { |
| 2139 | self.default_value.clear(); |
| 2140 | } |
| 2141 | |
| 2142 | pub fn has_default_value(&self) -> bool { |
| 2143 | self.default_value.is_some() |
| 2144 | } |
| 2145 | |
| 2146 | // Param is passed by value, moved |
| 2147 | pub fn set_default_value(&mut self, v: ::std::string::String) { |
| 2148 | self.default_value = ::protobuf::SingularField::some(v); |
| 2149 | } |
| 2150 | |
| 2151 | // Mutable pointer to the field. |
| 2152 | // If field is not initialized, it is initialized with default value first. |
| 2153 | pub fn mut_default_value(&mut self) -> &mut ::std::string::String { |
| 2154 | if self.default_value.is_none() { |
| 2155 | self.default_value.set_default(); |
| 2156 | } |
| 2157 | self.default_value.as_mut().unwrap() |
| 2158 | } |
| 2159 | |
| 2160 | // Take field |
| 2161 | pub fn take_default_value(&mut self) -> ::std::string::String { |
| 2162 | self.default_value.take().unwrap_or_else(|| ::std::string::String::new()) |
| 2163 | } |
| 2164 | |
| 2165 | // optional int32 oneof_index = 9; |
| 2166 | |
| 2167 | |
| 2168 | pub fn get_oneof_index(&self) -> i32 { |
| 2169 | self.oneof_index.unwrap_or(0) |
| 2170 | } |
| 2171 | pub fn clear_oneof_index(&mut self) { |
| 2172 | self.oneof_index = ::std::option::Option::None; |
| 2173 | } |
| 2174 | |
| 2175 | pub fn has_oneof_index(&self) -> bool { |
| 2176 | self.oneof_index.is_some() |
| 2177 | } |
| 2178 | |
| 2179 | // Param is passed by value, moved |
| 2180 | pub fn set_oneof_index(&mut self, v: i32) { |
| 2181 | self.oneof_index = ::std::option::Option::Some(v); |
| 2182 | } |
| 2183 | |
| 2184 | // optional string json_name = 10; |
| 2185 | |
| 2186 | |
| 2187 | pub fn get_json_name(&self) -> &str { |
| 2188 | match self.json_name.as_ref() { |
| 2189 | Some(v) => &v, |
| 2190 | None => "", |
| 2191 | } |
| 2192 | } |
| 2193 | pub fn clear_json_name(&mut self) { |
| 2194 | self.json_name.clear(); |
| 2195 | } |
| 2196 | |
| 2197 | pub fn has_json_name(&self) -> bool { |
| 2198 | self.json_name.is_some() |
| 2199 | } |
| 2200 | |
| 2201 | // Param is passed by value, moved |
| 2202 | pub fn set_json_name(&mut self, v: ::std::string::String) { |
| 2203 | self.json_name = ::protobuf::SingularField::some(v); |
| 2204 | } |
| 2205 | |
| 2206 | // Mutable pointer to the field. |
| 2207 | // If field is not initialized, it is initialized with default value first. |
| 2208 | pub fn mut_json_name(&mut self) -> &mut ::std::string::String { |
| 2209 | if self.json_name.is_none() { |
| 2210 | self.json_name.set_default(); |
| 2211 | } |
| 2212 | self.json_name.as_mut().unwrap() |
| 2213 | } |
| 2214 | |
| 2215 | // Take field |
| 2216 | pub fn take_json_name(&mut self) -> ::std::string::String { |
| 2217 | self.json_name.take().unwrap_or_else(|| ::std::string::String::new()) |
| 2218 | } |
| 2219 | |
| 2220 | // optional .google.protobuf.FieldOptions options = 8; |
| 2221 | |
| 2222 | |
| 2223 | pub fn get_options(&self) -> &FieldOptions { |
| 2224 | self.options.as_ref().unwrap_or_else(|| FieldOptions::default_instance()) |
| 2225 | } |
| 2226 | pub fn clear_options(&mut self) { |
| 2227 | self.options.clear(); |
| 2228 | } |
| 2229 | |
| 2230 | pub fn has_options(&self) -> bool { |
| 2231 | self.options.is_some() |
| 2232 | } |
| 2233 | |
| 2234 | // Param is passed by value, moved |
| 2235 | pub fn set_options(&mut self, v: FieldOptions) { |
| 2236 | self.options = ::protobuf::SingularPtrField::some(v); |
| 2237 | } |
| 2238 | |
| 2239 | // Mutable pointer to the field. |
| 2240 | // If field is not initialized, it is initialized with default value first. |
| 2241 | pub fn mut_options(&mut self) -> &mut FieldOptions { |
| 2242 | if self.options.is_none() { |
| 2243 | self.options.set_default(); |
| 2244 | } |
| 2245 | self.options.as_mut().unwrap() |
| 2246 | } |
| 2247 | |
| 2248 | // Take field |
| 2249 | pub fn take_options(&mut self) -> FieldOptions { |
| 2250 | self.options.take().unwrap_or_else(|| FieldOptions::new()) |
| 2251 | } |
| 2252 | } |
| 2253 | |
| 2254 | impl ::protobuf::Message for FieldDescriptorProto { |
| 2255 | fn is_initialized(&self) -> bool { |
| 2256 | for v in &self.options { |
| 2257 | if !v.is_initialized() { |
| 2258 | return false; |
| 2259 | } |
| 2260 | }; |
| 2261 | true |
| 2262 | } |
| 2263 | |
| 2264 | fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 2265 | while !is.eof()? { |
| 2266 | let (field_number, wire_type) = is.read_tag_unpack()?; |
| 2267 | match field_number { |
| 2268 | 1 => { |
| 2269 | ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.name)?; |
| 2270 | }, |
| 2271 | 3 => { |
| 2272 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 2273 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 2274 | } |
| 2275 | let tmp = is.read_int32()?; |
| 2276 | self.number = ::std::option::Option::Some(tmp); |
| 2277 | }, |
| 2278 | 4 => { |
| 2279 | ::protobuf::rt::read_proto2_enum_with_unknown_fields_into(wire_type, is, &mut self.label, 4, &mut self.unknown_fields)? |
| 2280 | }, |
| 2281 | 5 => { |
| 2282 | ::protobuf::rt::read_proto2_enum_with_unknown_fields_into(wire_type, is, &mut self.field_type, 5, &mut self.unknown_fields)? |
| 2283 | }, |
| 2284 | 6 => { |
| 2285 | ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.type_name)?; |
| 2286 | }, |
| 2287 | 2 => { |
| 2288 | ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.extendee)?; |
| 2289 | }, |
| 2290 | 7 => { |
| 2291 | ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.default_value)?; |
| 2292 | }, |
| 2293 | 9 => { |
| 2294 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 2295 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 2296 | } |
| 2297 | let tmp = is.read_int32()?; |
| 2298 | self.oneof_index = ::std::option::Option::Some(tmp); |
| 2299 | }, |
| 2300 | 10 => { |
| 2301 | ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.json_name)?; |
| 2302 | }, |
| 2303 | 8 => { |
| 2304 | ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.options)?; |
| 2305 | }, |
| 2306 | _ => { |
| 2307 | ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| 2308 | }, |
| 2309 | }; |
| 2310 | } |
| 2311 | ::std::result::Result::Ok(()) |
| 2312 | } |
| 2313 | |
| 2314 | // Compute sizes of nested messages |
| 2315 | #[allow(unused_variables)] |
| 2316 | fn compute_size(&self) -> u32 { |
| 2317 | let mut my_size = 0; |
| 2318 | if let Some(ref v) = self.name.as_ref() { |
| 2319 | my_size += ::protobuf::rt::string_size(1, &v); |
| 2320 | } |
| 2321 | if let Some(v) = self.number { |
| 2322 | my_size += ::protobuf::rt::value_size(3, v, ::protobuf::wire_format::WireTypeVarint); |
| 2323 | } |
| 2324 | if let Some(v) = self.label { |
| 2325 | my_size += ::protobuf::rt::enum_size(4, v); |
| 2326 | } |
| 2327 | if let Some(v) = self.field_type { |
| 2328 | my_size += ::protobuf::rt::enum_size(5, v); |
| 2329 | } |
| 2330 | if let Some(ref v) = self.type_name.as_ref() { |
| 2331 | my_size += ::protobuf::rt::string_size(6, &v); |
| 2332 | } |
| 2333 | if let Some(ref v) = self.extendee.as_ref() { |
| 2334 | my_size += ::protobuf::rt::string_size(2, &v); |
| 2335 | } |
| 2336 | if let Some(ref v) = self.default_value.as_ref() { |
| 2337 | my_size += ::protobuf::rt::string_size(7, &v); |
| 2338 | } |
| 2339 | if let Some(v) = self.oneof_index { |
| 2340 | my_size += ::protobuf::rt::value_size(9, v, ::protobuf::wire_format::WireTypeVarint); |
| 2341 | } |
| 2342 | if let Some(ref v) = self.json_name.as_ref() { |
| 2343 | my_size += ::protobuf::rt::string_size(10, &v); |
| 2344 | } |
| 2345 | if let Some(ref v) = self.options.as_ref() { |
| 2346 | let len = v.compute_size(); |
| 2347 | my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 2348 | } |
| 2349 | my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); |
| 2350 | self.cached_size.set(my_size); |
| 2351 | my_size |
| 2352 | } |
| 2353 | |
| 2354 | fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 2355 | if let Some(ref v) = self.name.as_ref() { |
| 2356 | os.write_string(1, &v)?; |
| 2357 | } |
| 2358 | if let Some(v) = self.number { |
| 2359 | os.write_int32(3, v)?; |
| 2360 | } |
| 2361 | if let Some(v) = self.label { |
| 2362 | os.write_enum(4, v.value())?; |
| 2363 | } |
| 2364 | if let Some(v) = self.field_type { |
| 2365 | os.write_enum(5, v.value())?; |
| 2366 | } |
| 2367 | if let Some(ref v) = self.type_name.as_ref() { |
| 2368 | os.write_string(6, &v)?; |
| 2369 | } |
| 2370 | if let Some(ref v) = self.extendee.as_ref() { |
| 2371 | os.write_string(2, &v)?; |
| 2372 | } |
| 2373 | if let Some(ref v) = self.default_value.as_ref() { |
| 2374 | os.write_string(7, &v)?; |
| 2375 | } |
| 2376 | if let Some(v) = self.oneof_index { |
| 2377 | os.write_int32(9, v)?; |
| 2378 | } |
| 2379 | if let Some(ref v) = self.json_name.as_ref() { |
| 2380 | os.write_string(10, &v)?; |
| 2381 | } |
| 2382 | if let Some(ref v) = self.options.as_ref() { |
| 2383 | os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 2384 | os.write_raw_varint32(v.get_cached_size())?; |
| 2385 | v.write_to_with_cached_sizes(os)?; |
| 2386 | } |
| 2387 | os.write_unknown_fields(self.get_unknown_fields())?; |
| 2388 | ::std::result::Result::Ok(()) |
| 2389 | } |
| 2390 | |
| 2391 | fn get_cached_size(&self) -> u32 { |
| 2392 | self.cached_size.get() |
| 2393 | } |
| 2394 | |
| 2395 | fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { |
| 2396 | &self.unknown_fields |
| 2397 | } |
| 2398 | |
| 2399 | fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { |
| 2400 | &mut self.unknown_fields |
| 2401 | } |
| 2402 | |
| 2403 | fn as_any(&self) -> &dyn (::std::any::Any) { |
| 2404 | self as &dyn (::std::any::Any) |
| 2405 | } |
| 2406 | fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| 2407 | self as &mut dyn (::std::any::Any) |
| 2408 | } |
| 2409 | fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| 2410 | self |
| 2411 | } |
| 2412 | |
| 2413 | fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { |
| 2414 | Self::descriptor_static() |
| 2415 | } |
| 2416 | |
| 2417 | fn new() -> FieldDescriptorProto { |
| 2418 | FieldDescriptorProto::new() |
| 2419 | } |
| 2420 | |
| 2421 | fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { |
| 2422 | static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; |
| 2423 | unsafe { |
| 2424 | descriptor.get(|| { |
| 2425 | let mut fields = ::std::vec::Vec::new(); |
| 2426 | fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( |
| 2427 | "name", |
| 2428 | |m: &FieldDescriptorProto| { &m.name }, |
| 2429 | |m: &mut FieldDescriptorProto| { &mut m.name }, |
| 2430 | )); |
| 2431 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( |
| 2432 | "number", |
| 2433 | |m: &FieldDescriptorProto| { &m.number }, |
| 2434 | |m: &mut FieldDescriptorProto| { &mut m.number }, |
| 2435 | )); |
| 2436 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<FieldDescriptorProto_Label>>( |
| 2437 | "label", |
| 2438 | |m: &FieldDescriptorProto| { &m.label }, |
| 2439 | |m: &mut FieldDescriptorProto| { &mut m.label }, |
| 2440 | )); |
| 2441 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<FieldDescriptorProto_Type>>( |
| 2442 | "type", |
| 2443 | |m: &FieldDescriptorProto| { &m.field_type }, |
| 2444 | |m: &mut FieldDescriptorProto| { &mut m.field_type }, |
| 2445 | )); |
| 2446 | fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( |
| 2447 | "type_name", |
| 2448 | |m: &FieldDescriptorProto| { &m.type_name }, |
| 2449 | |m: &mut FieldDescriptorProto| { &mut m.type_name }, |
| 2450 | )); |
| 2451 | fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( |
| 2452 | "extendee", |
| 2453 | |m: &FieldDescriptorProto| { &m.extendee }, |
| 2454 | |m: &mut FieldDescriptorProto| { &mut m.extendee }, |
| 2455 | )); |
| 2456 | fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( |
| 2457 | "default_value", |
| 2458 | |m: &FieldDescriptorProto| { &m.default_value }, |
| 2459 | |m: &mut FieldDescriptorProto| { &mut m.default_value }, |
| 2460 | )); |
| 2461 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( |
| 2462 | "oneof_index", |
| 2463 | |m: &FieldDescriptorProto| { &m.oneof_index }, |
| 2464 | |m: &mut FieldDescriptorProto| { &mut m.oneof_index }, |
| 2465 | )); |
| 2466 | fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( |
| 2467 | "json_name", |
| 2468 | |m: &FieldDescriptorProto| { &m.json_name }, |
| 2469 | |m: &mut FieldDescriptorProto| { &mut m.json_name }, |
| 2470 | )); |
| 2471 | fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<FieldOptions>>( |
| 2472 | "options", |
| 2473 | |m: &FieldDescriptorProto| { &m.options }, |
| 2474 | |m: &mut FieldDescriptorProto| { &mut m.options }, |
| 2475 | )); |
| 2476 | ::protobuf::reflect::MessageDescriptor::new_pb_name::<FieldDescriptorProto>( |
| 2477 | "FieldDescriptorProto", |
| 2478 | fields, |
| 2479 | file_descriptor_proto() |
| 2480 | ) |
| 2481 | }) |
| 2482 | } |
| 2483 | } |
| 2484 | |
| 2485 | fn default_instance() -> &'static FieldDescriptorProto { |
| 2486 | static mut instance: ::protobuf::lazy::Lazy<FieldDescriptorProto> = ::protobuf::lazy::Lazy::INIT; |
| 2487 | unsafe { |
| 2488 | instance.get(FieldDescriptorProto::new) |
| 2489 | } |
| 2490 | } |
| 2491 | } |
| 2492 | |
| 2493 | impl ::protobuf::Clear for FieldDescriptorProto { |
| 2494 | fn clear(&mut self) { |
| 2495 | self.name.clear(); |
| 2496 | self.number = ::std::option::Option::None; |
| 2497 | self.label = ::std::option::Option::None; |
| 2498 | self.field_type = ::std::option::Option::None; |
| 2499 | self.type_name.clear(); |
| 2500 | self.extendee.clear(); |
| 2501 | self.default_value.clear(); |
| 2502 | self.oneof_index = ::std::option::Option::None; |
| 2503 | self.json_name.clear(); |
| 2504 | self.options.clear(); |
| 2505 | self.unknown_fields.clear(); |
| 2506 | } |
| 2507 | } |
| 2508 | |
| 2509 | impl ::std::fmt::Debug for FieldDescriptorProto { |
| 2510 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| 2511 | ::protobuf::text_format::fmt(self, f) |
| 2512 | } |
| 2513 | } |
| 2514 | |
| 2515 | impl ::protobuf::reflect::ProtobufValue for FieldDescriptorProto { |
| 2516 | fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { |
| 2517 | ::protobuf::reflect::ReflectValueRef::Message(self) |
| 2518 | } |
| 2519 | } |
| 2520 | |
| 2521 | #[derive(Clone,PartialEq,Eq,Debug,Hash)] |
| 2522 | #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))] |
| 2523 | pub enum FieldDescriptorProto_Type { |
| 2524 | TYPE_DOUBLE = 1, |
| 2525 | TYPE_FLOAT = 2, |
| 2526 | TYPE_INT64 = 3, |
| 2527 | TYPE_UINT64 = 4, |
| 2528 | TYPE_INT32 = 5, |
| 2529 | TYPE_FIXED64 = 6, |
| 2530 | TYPE_FIXED32 = 7, |
| 2531 | TYPE_BOOL = 8, |
| 2532 | TYPE_STRING = 9, |
| 2533 | TYPE_GROUP = 10, |
| 2534 | TYPE_MESSAGE = 11, |
| 2535 | TYPE_BYTES = 12, |
| 2536 | TYPE_UINT32 = 13, |
| 2537 | TYPE_ENUM = 14, |
| 2538 | TYPE_SFIXED32 = 15, |
| 2539 | TYPE_SFIXED64 = 16, |
| 2540 | TYPE_SINT32 = 17, |
| 2541 | TYPE_SINT64 = 18, |
| 2542 | } |
| 2543 | |
| 2544 | impl ::protobuf::ProtobufEnum for FieldDescriptorProto_Type { |
| 2545 | fn value(&self) -> i32 { |
| 2546 | *self as i32 |
| 2547 | } |
| 2548 | |
| 2549 | fn from_i32(value: i32) -> ::std::option::Option<FieldDescriptorProto_Type> { |
| 2550 | match value { |
| 2551 | 1 => ::std::option::Option::Some(FieldDescriptorProto_Type::TYPE_DOUBLE), |
| 2552 | 2 => ::std::option::Option::Some(FieldDescriptorProto_Type::TYPE_FLOAT), |
| 2553 | 3 => ::std::option::Option::Some(FieldDescriptorProto_Type::TYPE_INT64), |
| 2554 | 4 => ::std::option::Option::Some(FieldDescriptorProto_Type::TYPE_UINT64), |
| 2555 | 5 => ::std::option::Option::Some(FieldDescriptorProto_Type::TYPE_INT32), |
| 2556 | 6 => ::std::option::Option::Some(FieldDescriptorProto_Type::TYPE_FIXED64), |
| 2557 | 7 => ::std::option::Option::Some(FieldDescriptorProto_Type::TYPE_FIXED32), |
| 2558 | 8 => ::std::option::Option::Some(FieldDescriptorProto_Type::TYPE_BOOL), |
| 2559 | 9 => ::std::option::Option::Some(FieldDescriptorProto_Type::TYPE_STRING), |
| 2560 | 10 => ::std::option::Option::Some(FieldDescriptorProto_Type::TYPE_GROUP), |
| 2561 | 11 => ::std::option::Option::Some(FieldDescriptorProto_Type::TYPE_MESSAGE), |
| 2562 | 12 => ::std::option::Option::Some(FieldDescriptorProto_Type::TYPE_BYTES), |
| 2563 | 13 => ::std::option::Option::Some(FieldDescriptorProto_Type::TYPE_UINT32), |
| 2564 | 14 => ::std::option::Option::Some(FieldDescriptorProto_Type::TYPE_ENUM), |
| 2565 | 15 => ::std::option::Option::Some(FieldDescriptorProto_Type::TYPE_SFIXED32), |
| 2566 | 16 => ::std::option::Option::Some(FieldDescriptorProto_Type::TYPE_SFIXED64), |
| 2567 | 17 => ::std::option::Option::Some(FieldDescriptorProto_Type::TYPE_SINT32), |
| 2568 | 18 => ::std::option::Option::Some(FieldDescriptorProto_Type::TYPE_SINT64), |
| 2569 | _ => ::std::option::Option::None |
| 2570 | } |
| 2571 | } |
| 2572 | |
| 2573 | fn values() -> &'static [Self] { |
| 2574 | static values: &'static [FieldDescriptorProto_Type] = &[ |
| 2575 | FieldDescriptorProto_Type::TYPE_DOUBLE, |
| 2576 | FieldDescriptorProto_Type::TYPE_FLOAT, |
| 2577 | FieldDescriptorProto_Type::TYPE_INT64, |
| 2578 | FieldDescriptorProto_Type::TYPE_UINT64, |
| 2579 | FieldDescriptorProto_Type::TYPE_INT32, |
| 2580 | FieldDescriptorProto_Type::TYPE_FIXED64, |
| 2581 | FieldDescriptorProto_Type::TYPE_FIXED32, |
| 2582 | FieldDescriptorProto_Type::TYPE_BOOL, |
| 2583 | FieldDescriptorProto_Type::TYPE_STRING, |
| 2584 | FieldDescriptorProto_Type::TYPE_GROUP, |
| 2585 | FieldDescriptorProto_Type::TYPE_MESSAGE, |
| 2586 | FieldDescriptorProto_Type::TYPE_BYTES, |
| 2587 | FieldDescriptorProto_Type::TYPE_UINT32, |
| 2588 | FieldDescriptorProto_Type::TYPE_ENUM, |
| 2589 | FieldDescriptorProto_Type::TYPE_SFIXED32, |
| 2590 | FieldDescriptorProto_Type::TYPE_SFIXED64, |
| 2591 | FieldDescriptorProto_Type::TYPE_SINT32, |
| 2592 | FieldDescriptorProto_Type::TYPE_SINT64, |
| 2593 | ]; |
| 2594 | values |
| 2595 | } |
| 2596 | |
| 2597 | fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { |
| 2598 | static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy::INIT; |
| 2599 | unsafe { |
| 2600 | descriptor.get(|| { |
| 2601 | ::protobuf::reflect::EnumDescriptor::new_pb_name::<FieldDescriptorProto_Type>("FieldDescriptorProto.Type", file_descriptor_proto()) |
| 2602 | }) |
| 2603 | } |
| 2604 | } |
| 2605 | } |
| 2606 | |
| 2607 | impl ::std::marker::Copy for FieldDescriptorProto_Type { |
| 2608 | } |
| 2609 | |
| 2610 | // Note, `Default` is implemented although default value is not 0 |
| 2611 | impl ::std::default::Default for FieldDescriptorProto_Type { |
| 2612 | fn default() -> Self { |
| 2613 | FieldDescriptorProto_Type::TYPE_DOUBLE |
| 2614 | } |
| 2615 | } |
| 2616 | |
| 2617 | impl ::protobuf::reflect::ProtobufValue for FieldDescriptorProto_Type { |
| 2618 | fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { |
| 2619 | ::protobuf::reflect::ReflectValueRef::Enum(self.descriptor()) |
| 2620 | } |
| 2621 | } |
| 2622 | |
| 2623 | #[derive(Clone,PartialEq,Eq,Debug,Hash)] |
| 2624 | #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))] |
| 2625 | pub enum FieldDescriptorProto_Label { |
| 2626 | LABEL_OPTIONAL = 1, |
| 2627 | LABEL_REQUIRED = 2, |
| 2628 | LABEL_REPEATED = 3, |
| 2629 | } |
| 2630 | |
| 2631 | impl ::protobuf::ProtobufEnum for FieldDescriptorProto_Label { |
| 2632 | fn value(&self) -> i32 { |
| 2633 | *self as i32 |
| 2634 | } |
| 2635 | |
| 2636 | fn from_i32(value: i32) -> ::std::option::Option<FieldDescriptorProto_Label> { |
| 2637 | match value { |
| 2638 | 1 => ::std::option::Option::Some(FieldDescriptorProto_Label::LABEL_OPTIONAL), |
| 2639 | 2 => ::std::option::Option::Some(FieldDescriptorProto_Label::LABEL_REQUIRED), |
| 2640 | 3 => ::std::option::Option::Some(FieldDescriptorProto_Label::LABEL_REPEATED), |
| 2641 | _ => ::std::option::Option::None |
| 2642 | } |
| 2643 | } |
| 2644 | |
| 2645 | fn values() -> &'static [Self] { |
| 2646 | static values: &'static [FieldDescriptorProto_Label] = &[ |
| 2647 | FieldDescriptorProto_Label::LABEL_OPTIONAL, |
| 2648 | FieldDescriptorProto_Label::LABEL_REQUIRED, |
| 2649 | FieldDescriptorProto_Label::LABEL_REPEATED, |
| 2650 | ]; |
| 2651 | values |
| 2652 | } |
| 2653 | |
| 2654 | fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { |
| 2655 | static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy::INIT; |
| 2656 | unsafe { |
| 2657 | descriptor.get(|| { |
| 2658 | ::protobuf::reflect::EnumDescriptor::new_pb_name::<FieldDescriptorProto_Label>("FieldDescriptorProto.Label", file_descriptor_proto()) |
| 2659 | }) |
| 2660 | } |
| 2661 | } |
| 2662 | } |
| 2663 | |
| 2664 | impl ::std::marker::Copy for FieldDescriptorProto_Label { |
| 2665 | } |
| 2666 | |
| 2667 | // Note, `Default` is implemented although default value is not 0 |
| 2668 | impl ::std::default::Default for FieldDescriptorProto_Label { |
| 2669 | fn default() -> Self { |
| 2670 | FieldDescriptorProto_Label::LABEL_OPTIONAL |
| 2671 | } |
| 2672 | } |
| 2673 | |
| 2674 | impl ::protobuf::reflect::ProtobufValue for FieldDescriptorProto_Label { |
| 2675 | fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { |
| 2676 | ::protobuf::reflect::ReflectValueRef::Enum(self.descriptor()) |
| 2677 | } |
| 2678 | } |
| 2679 | |
| 2680 | #[derive(PartialEq,Clone,Default)] |
| 2681 | #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))] |
| 2682 | pub struct OneofDescriptorProto { |
| 2683 | // message fields |
| 2684 | name: ::protobuf::SingularField<::std::string::String>, |
| 2685 | options: ::protobuf::SingularPtrField<OneofOptions>, |
| 2686 | // special fields |
| 2687 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 2688 | pub unknown_fields: ::protobuf::UnknownFields, |
| 2689 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 2690 | pub cached_size: ::protobuf::CachedSize, |
| 2691 | } |
| 2692 | |
| 2693 | impl<'a> ::std::default::Default for &'a OneofDescriptorProto { |
| 2694 | fn default() -> &'a OneofDescriptorProto { |
| 2695 | <OneofDescriptorProto as ::protobuf::Message>::default_instance() |
| 2696 | } |
| 2697 | } |
| 2698 | |
| 2699 | impl OneofDescriptorProto { |
| 2700 | pub fn new() -> OneofDescriptorProto { |
| 2701 | ::std::default::Default::default() |
| 2702 | } |
| 2703 | |
| 2704 | // optional string name = 1; |
| 2705 | |
| 2706 | |
| 2707 | pub fn get_name(&self) -> &str { |
| 2708 | match self.name.as_ref() { |
| 2709 | Some(v) => &v, |
| 2710 | None => "", |
| 2711 | } |
| 2712 | } |
| 2713 | pub fn clear_name(&mut self) { |
| 2714 | self.name.clear(); |
| 2715 | } |
| 2716 | |
| 2717 | pub fn has_name(&self) -> bool { |
| 2718 | self.name.is_some() |
| 2719 | } |
| 2720 | |
| 2721 | // Param is passed by value, moved |
| 2722 | pub fn set_name(&mut self, v: ::std::string::String) { |
| 2723 | self.name = ::protobuf::SingularField::some(v); |
| 2724 | } |
| 2725 | |
| 2726 | // Mutable pointer to the field. |
| 2727 | // If field is not initialized, it is initialized with default value first. |
| 2728 | pub fn mut_name(&mut self) -> &mut ::std::string::String { |
| 2729 | if self.name.is_none() { |
| 2730 | self.name.set_default(); |
| 2731 | } |
| 2732 | self.name.as_mut().unwrap() |
| 2733 | } |
| 2734 | |
| 2735 | // Take field |
| 2736 | pub fn take_name(&mut self) -> ::std::string::String { |
| 2737 | self.name.take().unwrap_or_else(|| ::std::string::String::new()) |
| 2738 | } |
| 2739 | |
| 2740 | // optional .google.protobuf.OneofOptions options = 2; |
| 2741 | |
| 2742 | |
| 2743 | pub fn get_options(&self) -> &OneofOptions { |
| 2744 | self.options.as_ref().unwrap_or_else(|| OneofOptions::default_instance()) |
| 2745 | } |
| 2746 | pub fn clear_options(&mut self) { |
| 2747 | self.options.clear(); |
| 2748 | } |
| 2749 | |
| 2750 | pub fn has_options(&self) -> bool { |
| 2751 | self.options.is_some() |
| 2752 | } |
| 2753 | |
| 2754 | // Param is passed by value, moved |
| 2755 | pub fn set_options(&mut self, v: OneofOptions) { |
| 2756 | self.options = ::protobuf::SingularPtrField::some(v); |
| 2757 | } |
| 2758 | |
| 2759 | // Mutable pointer to the field. |
| 2760 | // If field is not initialized, it is initialized with default value first. |
| 2761 | pub fn mut_options(&mut self) -> &mut OneofOptions { |
| 2762 | if self.options.is_none() { |
| 2763 | self.options.set_default(); |
| 2764 | } |
| 2765 | self.options.as_mut().unwrap() |
| 2766 | } |
| 2767 | |
| 2768 | // Take field |
| 2769 | pub fn take_options(&mut self) -> OneofOptions { |
| 2770 | self.options.take().unwrap_or_else(|| OneofOptions::new()) |
| 2771 | } |
| 2772 | } |
| 2773 | |
| 2774 | impl ::protobuf::Message for OneofDescriptorProto { |
| 2775 | fn is_initialized(&self) -> bool { |
| 2776 | for v in &self.options { |
| 2777 | if !v.is_initialized() { |
| 2778 | return false; |
| 2779 | } |
| 2780 | }; |
| 2781 | true |
| 2782 | } |
| 2783 | |
| 2784 | fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 2785 | while !is.eof()? { |
| 2786 | let (field_number, wire_type) = is.read_tag_unpack()?; |
| 2787 | match field_number { |
| 2788 | 1 => { |
| 2789 | ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.name)?; |
| 2790 | }, |
| 2791 | 2 => { |
| 2792 | ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.options)?; |
| 2793 | }, |
| 2794 | _ => { |
| 2795 | ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| 2796 | }, |
| 2797 | }; |
| 2798 | } |
| 2799 | ::std::result::Result::Ok(()) |
| 2800 | } |
| 2801 | |
| 2802 | // Compute sizes of nested messages |
| 2803 | #[allow(unused_variables)] |
| 2804 | fn compute_size(&self) -> u32 { |
| 2805 | let mut my_size = 0; |
| 2806 | if let Some(ref v) = self.name.as_ref() { |
| 2807 | my_size += ::protobuf::rt::string_size(1, &v); |
| 2808 | } |
| 2809 | if let Some(ref v) = self.options.as_ref() { |
| 2810 | let len = v.compute_size(); |
| 2811 | my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 2812 | } |
| 2813 | my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); |
| 2814 | self.cached_size.set(my_size); |
| 2815 | my_size |
| 2816 | } |
| 2817 | |
| 2818 | fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 2819 | if let Some(ref v) = self.name.as_ref() { |
| 2820 | os.write_string(1, &v)?; |
| 2821 | } |
| 2822 | if let Some(ref v) = self.options.as_ref() { |
| 2823 | os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 2824 | os.write_raw_varint32(v.get_cached_size())?; |
| 2825 | v.write_to_with_cached_sizes(os)?; |
| 2826 | } |
| 2827 | os.write_unknown_fields(self.get_unknown_fields())?; |
| 2828 | ::std::result::Result::Ok(()) |
| 2829 | } |
| 2830 | |
| 2831 | fn get_cached_size(&self) -> u32 { |
| 2832 | self.cached_size.get() |
| 2833 | } |
| 2834 | |
| 2835 | fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { |
| 2836 | &self.unknown_fields |
| 2837 | } |
| 2838 | |
| 2839 | fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { |
| 2840 | &mut self.unknown_fields |
| 2841 | } |
| 2842 | |
| 2843 | fn as_any(&self) -> &dyn (::std::any::Any) { |
| 2844 | self as &dyn (::std::any::Any) |
| 2845 | } |
| 2846 | fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| 2847 | self as &mut dyn (::std::any::Any) |
| 2848 | } |
| 2849 | fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| 2850 | self |
| 2851 | } |
| 2852 | |
| 2853 | fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { |
| 2854 | Self::descriptor_static() |
| 2855 | } |
| 2856 | |
| 2857 | fn new() -> OneofDescriptorProto { |
| 2858 | OneofDescriptorProto::new() |
| 2859 | } |
| 2860 | |
| 2861 | fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { |
| 2862 | static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; |
| 2863 | unsafe { |
| 2864 | descriptor.get(|| { |
| 2865 | let mut fields = ::std::vec::Vec::new(); |
| 2866 | fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( |
| 2867 | "name", |
| 2868 | |m: &OneofDescriptorProto| { &m.name }, |
| 2869 | |m: &mut OneofDescriptorProto| { &mut m.name }, |
| 2870 | )); |
| 2871 | fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<OneofOptions>>( |
| 2872 | "options", |
| 2873 | |m: &OneofDescriptorProto| { &m.options }, |
| 2874 | |m: &mut OneofDescriptorProto| { &mut m.options }, |
| 2875 | )); |
| 2876 | ::protobuf::reflect::MessageDescriptor::new_pb_name::<OneofDescriptorProto>( |
| 2877 | "OneofDescriptorProto", |
| 2878 | fields, |
| 2879 | file_descriptor_proto() |
| 2880 | ) |
| 2881 | }) |
| 2882 | } |
| 2883 | } |
| 2884 | |
| 2885 | fn default_instance() -> &'static OneofDescriptorProto { |
| 2886 | static mut instance: ::protobuf::lazy::Lazy<OneofDescriptorProto> = ::protobuf::lazy::Lazy::INIT; |
| 2887 | unsafe { |
| 2888 | instance.get(OneofDescriptorProto::new) |
| 2889 | } |
| 2890 | } |
| 2891 | } |
| 2892 | |
| 2893 | impl ::protobuf::Clear for OneofDescriptorProto { |
| 2894 | fn clear(&mut self) { |
| 2895 | self.name.clear(); |
| 2896 | self.options.clear(); |
| 2897 | self.unknown_fields.clear(); |
| 2898 | } |
| 2899 | } |
| 2900 | |
| 2901 | impl ::std::fmt::Debug for OneofDescriptorProto { |
| 2902 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| 2903 | ::protobuf::text_format::fmt(self, f) |
| 2904 | } |
| 2905 | } |
| 2906 | |
| 2907 | impl ::protobuf::reflect::ProtobufValue for OneofDescriptorProto { |
| 2908 | fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { |
| 2909 | ::protobuf::reflect::ReflectValueRef::Message(self) |
| 2910 | } |
| 2911 | } |
| 2912 | |
| 2913 | #[derive(PartialEq,Clone,Default)] |
| 2914 | #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))] |
| 2915 | pub struct EnumDescriptorProto { |
| 2916 | // message fields |
| 2917 | name: ::protobuf::SingularField<::std::string::String>, |
| 2918 | value: ::protobuf::RepeatedField<EnumValueDescriptorProto>, |
| 2919 | options: ::protobuf::SingularPtrField<EnumOptions>, |
| 2920 | // special fields |
| 2921 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 2922 | pub unknown_fields: ::protobuf::UnknownFields, |
| 2923 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 2924 | pub cached_size: ::protobuf::CachedSize, |
| 2925 | } |
| 2926 | |
| 2927 | impl<'a> ::std::default::Default for &'a EnumDescriptorProto { |
| 2928 | fn default() -> &'a EnumDescriptorProto { |
| 2929 | <EnumDescriptorProto as ::protobuf::Message>::default_instance() |
| 2930 | } |
| 2931 | } |
| 2932 | |
| 2933 | impl EnumDescriptorProto { |
| 2934 | pub fn new() -> EnumDescriptorProto { |
| 2935 | ::std::default::Default::default() |
| 2936 | } |
| 2937 | |
| 2938 | // optional string name = 1; |
| 2939 | |
| 2940 | |
| 2941 | pub fn get_name(&self) -> &str { |
| 2942 | match self.name.as_ref() { |
| 2943 | Some(v) => &v, |
| 2944 | None => "", |
| 2945 | } |
| 2946 | } |
| 2947 | pub fn clear_name(&mut self) { |
| 2948 | self.name.clear(); |
| 2949 | } |
| 2950 | |
| 2951 | pub fn has_name(&self) -> bool { |
| 2952 | self.name.is_some() |
| 2953 | } |
| 2954 | |
| 2955 | // Param is passed by value, moved |
| 2956 | pub fn set_name(&mut self, v: ::std::string::String) { |
| 2957 | self.name = ::protobuf::SingularField::some(v); |
| 2958 | } |
| 2959 | |
| 2960 | // Mutable pointer to the field. |
| 2961 | // If field is not initialized, it is initialized with default value first. |
| 2962 | pub fn mut_name(&mut self) -> &mut ::std::string::String { |
| 2963 | if self.name.is_none() { |
| 2964 | self.name.set_default(); |
| 2965 | } |
| 2966 | self.name.as_mut().unwrap() |
| 2967 | } |
| 2968 | |
| 2969 | // Take field |
| 2970 | pub fn take_name(&mut self) -> ::std::string::String { |
| 2971 | self.name.take().unwrap_or_else(|| ::std::string::String::new()) |
| 2972 | } |
| 2973 | |
| 2974 | // repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
| 2975 | |
| 2976 | |
| 2977 | pub fn get_value(&self) -> &[EnumValueDescriptorProto] { |
| 2978 | &self.value |
| 2979 | } |
| 2980 | pub fn clear_value(&mut self) { |
| 2981 | self.value.clear(); |
| 2982 | } |
| 2983 | |
| 2984 | // Param is passed by value, moved |
| 2985 | pub fn set_value(&mut self, v: ::protobuf::RepeatedField<EnumValueDescriptorProto>) { |
| 2986 | self.value = v; |
| 2987 | } |
| 2988 | |
| 2989 | // Mutable pointer to the field. |
| 2990 | pub fn mut_value(&mut self) -> &mut ::protobuf::RepeatedField<EnumValueDescriptorProto> { |
| 2991 | &mut self.value |
| 2992 | } |
| 2993 | |
| 2994 | // Take field |
| 2995 | pub fn take_value(&mut self) -> ::protobuf::RepeatedField<EnumValueDescriptorProto> { |
| 2996 | ::std::mem::replace(&mut self.value, ::protobuf::RepeatedField::new()) |
| 2997 | } |
| 2998 | |
| 2999 | // optional .google.protobuf.EnumOptions options = 3; |
| 3000 | |
| 3001 | |
| 3002 | pub fn get_options(&self) -> &EnumOptions { |
| 3003 | self.options.as_ref().unwrap_or_else(|| EnumOptions::default_instance()) |
| 3004 | } |
| 3005 | pub fn clear_options(&mut self) { |
| 3006 | self.options.clear(); |
| 3007 | } |
| 3008 | |
| 3009 | pub fn has_options(&self) -> bool { |
| 3010 | self.options.is_some() |
| 3011 | } |
| 3012 | |
| 3013 | // Param is passed by value, moved |
| 3014 | pub fn set_options(&mut self, v: EnumOptions) { |
| 3015 | self.options = ::protobuf::SingularPtrField::some(v); |
| 3016 | } |
| 3017 | |
| 3018 | // Mutable pointer to the field. |
| 3019 | // If field is not initialized, it is initialized with default value first. |
| 3020 | pub fn mut_options(&mut self) -> &mut EnumOptions { |
| 3021 | if self.options.is_none() { |
| 3022 | self.options.set_default(); |
| 3023 | } |
| 3024 | self.options.as_mut().unwrap() |
| 3025 | } |
| 3026 | |
| 3027 | // Take field |
| 3028 | pub fn take_options(&mut self) -> EnumOptions { |
| 3029 | self.options.take().unwrap_or_else(|| EnumOptions::new()) |
| 3030 | } |
| 3031 | } |
| 3032 | |
| 3033 | impl ::protobuf::Message for EnumDescriptorProto { |
| 3034 | fn is_initialized(&self) -> bool { |
| 3035 | for v in &self.value { |
| 3036 | if !v.is_initialized() { |
| 3037 | return false; |
| 3038 | } |
| 3039 | }; |
| 3040 | for v in &self.options { |
| 3041 | if !v.is_initialized() { |
| 3042 | return false; |
| 3043 | } |
| 3044 | }; |
| 3045 | true |
| 3046 | } |
| 3047 | |
| 3048 | fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 3049 | while !is.eof()? { |
| 3050 | let (field_number, wire_type) = is.read_tag_unpack()?; |
| 3051 | match field_number { |
| 3052 | 1 => { |
| 3053 | ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.name)?; |
| 3054 | }, |
| 3055 | 2 => { |
| 3056 | ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.value)?; |
| 3057 | }, |
| 3058 | 3 => { |
| 3059 | ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.options)?; |
| 3060 | }, |
| 3061 | _ => { |
| 3062 | ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| 3063 | }, |
| 3064 | }; |
| 3065 | } |
| 3066 | ::std::result::Result::Ok(()) |
| 3067 | } |
| 3068 | |
| 3069 | // Compute sizes of nested messages |
| 3070 | #[allow(unused_variables)] |
| 3071 | fn compute_size(&self) -> u32 { |
| 3072 | let mut my_size = 0; |
| 3073 | if let Some(ref v) = self.name.as_ref() { |
| 3074 | my_size += ::protobuf::rt::string_size(1, &v); |
| 3075 | } |
| 3076 | for value in &self.value { |
| 3077 | let len = value.compute_size(); |
| 3078 | my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 3079 | }; |
| 3080 | if let Some(ref v) = self.options.as_ref() { |
| 3081 | let len = v.compute_size(); |
| 3082 | my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 3083 | } |
| 3084 | my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); |
| 3085 | self.cached_size.set(my_size); |
| 3086 | my_size |
| 3087 | } |
| 3088 | |
| 3089 | fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 3090 | if let Some(ref v) = self.name.as_ref() { |
| 3091 | os.write_string(1, &v)?; |
| 3092 | } |
| 3093 | for v in &self.value { |
| 3094 | os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 3095 | os.write_raw_varint32(v.get_cached_size())?; |
| 3096 | v.write_to_with_cached_sizes(os)?; |
| 3097 | }; |
| 3098 | if let Some(ref v) = self.options.as_ref() { |
| 3099 | os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 3100 | os.write_raw_varint32(v.get_cached_size())?; |
| 3101 | v.write_to_with_cached_sizes(os)?; |
| 3102 | } |
| 3103 | os.write_unknown_fields(self.get_unknown_fields())?; |
| 3104 | ::std::result::Result::Ok(()) |
| 3105 | } |
| 3106 | |
| 3107 | fn get_cached_size(&self) -> u32 { |
| 3108 | self.cached_size.get() |
| 3109 | } |
| 3110 | |
| 3111 | fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { |
| 3112 | &self.unknown_fields |
| 3113 | } |
| 3114 | |
| 3115 | fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { |
| 3116 | &mut self.unknown_fields |
| 3117 | } |
| 3118 | |
| 3119 | fn as_any(&self) -> &dyn (::std::any::Any) { |
| 3120 | self as &dyn (::std::any::Any) |
| 3121 | } |
| 3122 | fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| 3123 | self as &mut dyn (::std::any::Any) |
| 3124 | } |
| 3125 | fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| 3126 | self |
| 3127 | } |
| 3128 | |
| 3129 | fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { |
| 3130 | Self::descriptor_static() |
| 3131 | } |
| 3132 | |
| 3133 | fn new() -> EnumDescriptorProto { |
| 3134 | EnumDescriptorProto::new() |
| 3135 | } |
| 3136 | |
| 3137 | fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { |
| 3138 | static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; |
| 3139 | unsafe { |
| 3140 | descriptor.get(|| { |
| 3141 | let mut fields = ::std::vec::Vec::new(); |
| 3142 | fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( |
| 3143 | "name", |
| 3144 | |m: &EnumDescriptorProto| { &m.name }, |
| 3145 | |m: &mut EnumDescriptorProto| { &mut m.name }, |
| 3146 | )); |
| 3147 | fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<EnumValueDescriptorProto>>( |
| 3148 | "value", |
| 3149 | |m: &EnumDescriptorProto| { &m.value }, |
| 3150 | |m: &mut EnumDescriptorProto| { &mut m.value }, |
| 3151 | )); |
| 3152 | fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<EnumOptions>>( |
| 3153 | "options", |
| 3154 | |m: &EnumDescriptorProto| { &m.options }, |
| 3155 | |m: &mut EnumDescriptorProto| { &mut m.options }, |
| 3156 | )); |
| 3157 | ::protobuf::reflect::MessageDescriptor::new_pb_name::<EnumDescriptorProto>( |
| 3158 | "EnumDescriptorProto", |
| 3159 | fields, |
| 3160 | file_descriptor_proto() |
| 3161 | ) |
| 3162 | }) |
| 3163 | } |
| 3164 | } |
| 3165 | |
| 3166 | fn default_instance() -> &'static EnumDescriptorProto { |
| 3167 | static mut instance: ::protobuf::lazy::Lazy<EnumDescriptorProto> = ::protobuf::lazy::Lazy::INIT; |
| 3168 | unsafe { |
| 3169 | instance.get(EnumDescriptorProto::new) |
| 3170 | } |
| 3171 | } |
| 3172 | } |
| 3173 | |
| 3174 | impl ::protobuf::Clear for EnumDescriptorProto { |
| 3175 | fn clear(&mut self) { |
| 3176 | self.name.clear(); |
| 3177 | self.value.clear(); |
| 3178 | self.options.clear(); |
| 3179 | self.unknown_fields.clear(); |
| 3180 | } |
| 3181 | } |
| 3182 | |
| 3183 | impl ::std::fmt::Debug for EnumDescriptorProto { |
| 3184 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| 3185 | ::protobuf::text_format::fmt(self, f) |
| 3186 | } |
| 3187 | } |
| 3188 | |
| 3189 | impl ::protobuf::reflect::ProtobufValue for EnumDescriptorProto { |
| 3190 | fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { |
| 3191 | ::protobuf::reflect::ReflectValueRef::Message(self) |
| 3192 | } |
| 3193 | } |
| 3194 | |
| 3195 | #[derive(PartialEq,Clone,Default)] |
| 3196 | #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))] |
| 3197 | pub struct EnumValueDescriptorProto { |
| 3198 | // message fields |
| 3199 | name: ::protobuf::SingularField<::std::string::String>, |
| 3200 | number: ::std::option::Option<i32>, |
| 3201 | options: ::protobuf::SingularPtrField<EnumValueOptions>, |
| 3202 | // special fields |
| 3203 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 3204 | pub unknown_fields: ::protobuf::UnknownFields, |
| 3205 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 3206 | pub cached_size: ::protobuf::CachedSize, |
| 3207 | } |
| 3208 | |
| 3209 | impl<'a> ::std::default::Default for &'a EnumValueDescriptorProto { |
| 3210 | fn default() -> &'a EnumValueDescriptorProto { |
| 3211 | <EnumValueDescriptorProto as ::protobuf::Message>::default_instance() |
| 3212 | } |
| 3213 | } |
| 3214 | |
| 3215 | impl EnumValueDescriptorProto { |
| 3216 | pub fn new() -> EnumValueDescriptorProto { |
| 3217 | ::std::default::Default::default() |
| 3218 | } |
| 3219 | |
| 3220 | // optional string name = 1; |
| 3221 | |
| 3222 | |
| 3223 | pub fn get_name(&self) -> &str { |
| 3224 | match self.name.as_ref() { |
| 3225 | Some(v) => &v, |
| 3226 | None => "", |
| 3227 | } |
| 3228 | } |
| 3229 | pub fn clear_name(&mut self) { |
| 3230 | self.name.clear(); |
| 3231 | } |
| 3232 | |
| 3233 | pub fn has_name(&self) -> bool { |
| 3234 | self.name.is_some() |
| 3235 | } |
| 3236 | |
| 3237 | // Param is passed by value, moved |
| 3238 | pub fn set_name(&mut self, v: ::std::string::String) { |
| 3239 | self.name = ::protobuf::SingularField::some(v); |
| 3240 | } |
| 3241 | |
| 3242 | // Mutable pointer to the field. |
| 3243 | // If field is not initialized, it is initialized with default value first. |
| 3244 | pub fn mut_name(&mut self) -> &mut ::std::string::String { |
| 3245 | if self.name.is_none() { |
| 3246 | self.name.set_default(); |
| 3247 | } |
| 3248 | self.name.as_mut().unwrap() |
| 3249 | } |
| 3250 | |
| 3251 | // Take field |
| 3252 | pub fn take_name(&mut self) -> ::std::string::String { |
| 3253 | self.name.take().unwrap_or_else(|| ::std::string::String::new()) |
| 3254 | } |
| 3255 | |
| 3256 | // optional int32 number = 2; |
| 3257 | |
| 3258 | |
| 3259 | pub fn get_number(&self) -> i32 { |
| 3260 | self.number.unwrap_or(0) |
| 3261 | } |
| 3262 | pub fn clear_number(&mut self) { |
| 3263 | self.number = ::std::option::Option::None; |
| 3264 | } |
| 3265 | |
| 3266 | pub fn has_number(&self) -> bool { |
| 3267 | self.number.is_some() |
| 3268 | } |
| 3269 | |
| 3270 | // Param is passed by value, moved |
| 3271 | pub fn set_number(&mut self, v: i32) { |
| 3272 | self.number = ::std::option::Option::Some(v); |
| 3273 | } |
| 3274 | |
| 3275 | // optional .google.protobuf.EnumValueOptions options = 3; |
| 3276 | |
| 3277 | |
| 3278 | pub fn get_options(&self) -> &EnumValueOptions { |
| 3279 | self.options.as_ref().unwrap_or_else(|| EnumValueOptions::default_instance()) |
| 3280 | } |
| 3281 | pub fn clear_options(&mut self) { |
| 3282 | self.options.clear(); |
| 3283 | } |
| 3284 | |
| 3285 | pub fn has_options(&self) -> bool { |
| 3286 | self.options.is_some() |
| 3287 | } |
| 3288 | |
| 3289 | // Param is passed by value, moved |
| 3290 | pub fn set_options(&mut self, v: EnumValueOptions) { |
| 3291 | self.options = ::protobuf::SingularPtrField::some(v); |
| 3292 | } |
| 3293 | |
| 3294 | // Mutable pointer to the field. |
| 3295 | // If field is not initialized, it is initialized with default value first. |
| 3296 | pub fn mut_options(&mut self) -> &mut EnumValueOptions { |
| 3297 | if self.options.is_none() { |
| 3298 | self.options.set_default(); |
| 3299 | } |
| 3300 | self.options.as_mut().unwrap() |
| 3301 | } |
| 3302 | |
| 3303 | // Take field |
| 3304 | pub fn take_options(&mut self) -> EnumValueOptions { |
| 3305 | self.options.take().unwrap_or_else(|| EnumValueOptions::new()) |
| 3306 | } |
| 3307 | } |
| 3308 | |
| 3309 | impl ::protobuf::Message for EnumValueDescriptorProto { |
| 3310 | fn is_initialized(&self) -> bool { |
| 3311 | for v in &self.options { |
| 3312 | if !v.is_initialized() { |
| 3313 | return false; |
| 3314 | } |
| 3315 | }; |
| 3316 | true |
| 3317 | } |
| 3318 | |
| 3319 | fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 3320 | while !is.eof()? { |
| 3321 | let (field_number, wire_type) = is.read_tag_unpack()?; |
| 3322 | match field_number { |
| 3323 | 1 => { |
| 3324 | ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.name)?; |
| 3325 | }, |
| 3326 | 2 => { |
| 3327 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 3328 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 3329 | } |
| 3330 | let tmp = is.read_int32()?; |
| 3331 | self.number = ::std::option::Option::Some(tmp); |
| 3332 | }, |
| 3333 | 3 => { |
| 3334 | ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.options)?; |
| 3335 | }, |
| 3336 | _ => { |
| 3337 | ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| 3338 | }, |
| 3339 | }; |
| 3340 | } |
| 3341 | ::std::result::Result::Ok(()) |
| 3342 | } |
| 3343 | |
| 3344 | // Compute sizes of nested messages |
| 3345 | #[allow(unused_variables)] |
| 3346 | fn compute_size(&self) -> u32 { |
| 3347 | let mut my_size = 0; |
| 3348 | if let Some(ref v) = self.name.as_ref() { |
| 3349 | my_size += ::protobuf::rt::string_size(1, &v); |
| 3350 | } |
| 3351 | if let Some(v) = self.number { |
| 3352 | my_size += ::protobuf::rt::value_size(2, v, ::protobuf::wire_format::WireTypeVarint); |
| 3353 | } |
| 3354 | if let Some(ref v) = self.options.as_ref() { |
| 3355 | let len = v.compute_size(); |
| 3356 | my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 3357 | } |
| 3358 | my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); |
| 3359 | self.cached_size.set(my_size); |
| 3360 | my_size |
| 3361 | } |
| 3362 | |
| 3363 | fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 3364 | if let Some(ref v) = self.name.as_ref() { |
| 3365 | os.write_string(1, &v)?; |
| 3366 | } |
| 3367 | if let Some(v) = self.number { |
| 3368 | os.write_int32(2, v)?; |
| 3369 | } |
| 3370 | if let Some(ref v) = self.options.as_ref() { |
| 3371 | os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 3372 | os.write_raw_varint32(v.get_cached_size())?; |
| 3373 | v.write_to_with_cached_sizes(os)?; |
| 3374 | } |
| 3375 | os.write_unknown_fields(self.get_unknown_fields())?; |
| 3376 | ::std::result::Result::Ok(()) |
| 3377 | } |
| 3378 | |
| 3379 | fn get_cached_size(&self) -> u32 { |
| 3380 | self.cached_size.get() |
| 3381 | } |
| 3382 | |
| 3383 | fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { |
| 3384 | &self.unknown_fields |
| 3385 | } |
| 3386 | |
| 3387 | fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { |
| 3388 | &mut self.unknown_fields |
| 3389 | } |
| 3390 | |
| 3391 | fn as_any(&self) -> &dyn (::std::any::Any) { |
| 3392 | self as &dyn (::std::any::Any) |
| 3393 | } |
| 3394 | fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| 3395 | self as &mut dyn (::std::any::Any) |
| 3396 | } |
| 3397 | fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| 3398 | self |
| 3399 | } |
| 3400 | |
| 3401 | fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { |
| 3402 | Self::descriptor_static() |
| 3403 | } |
| 3404 | |
| 3405 | fn new() -> EnumValueDescriptorProto { |
| 3406 | EnumValueDescriptorProto::new() |
| 3407 | } |
| 3408 | |
| 3409 | fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { |
| 3410 | static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; |
| 3411 | unsafe { |
| 3412 | descriptor.get(|| { |
| 3413 | let mut fields = ::std::vec::Vec::new(); |
| 3414 | fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( |
| 3415 | "name", |
| 3416 | |m: &EnumValueDescriptorProto| { &m.name }, |
| 3417 | |m: &mut EnumValueDescriptorProto| { &mut m.name }, |
| 3418 | )); |
| 3419 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( |
| 3420 | "number", |
| 3421 | |m: &EnumValueDescriptorProto| { &m.number }, |
| 3422 | |m: &mut EnumValueDescriptorProto| { &mut m.number }, |
| 3423 | )); |
| 3424 | fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<EnumValueOptions>>( |
| 3425 | "options", |
| 3426 | |m: &EnumValueDescriptorProto| { &m.options }, |
| 3427 | |m: &mut EnumValueDescriptorProto| { &mut m.options }, |
| 3428 | )); |
| 3429 | ::protobuf::reflect::MessageDescriptor::new_pb_name::<EnumValueDescriptorProto>( |
| 3430 | "EnumValueDescriptorProto", |
| 3431 | fields, |
| 3432 | file_descriptor_proto() |
| 3433 | ) |
| 3434 | }) |
| 3435 | } |
| 3436 | } |
| 3437 | |
| 3438 | fn default_instance() -> &'static EnumValueDescriptorProto { |
| 3439 | static mut instance: ::protobuf::lazy::Lazy<EnumValueDescriptorProto> = ::protobuf::lazy::Lazy::INIT; |
| 3440 | unsafe { |
| 3441 | instance.get(EnumValueDescriptorProto::new) |
| 3442 | } |
| 3443 | } |
| 3444 | } |
| 3445 | |
| 3446 | impl ::protobuf::Clear for EnumValueDescriptorProto { |
| 3447 | fn clear(&mut self) { |
| 3448 | self.name.clear(); |
| 3449 | self.number = ::std::option::Option::None; |
| 3450 | self.options.clear(); |
| 3451 | self.unknown_fields.clear(); |
| 3452 | } |
| 3453 | } |
| 3454 | |
| 3455 | impl ::std::fmt::Debug for EnumValueDescriptorProto { |
| 3456 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| 3457 | ::protobuf::text_format::fmt(self, f) |
| 3458 | } |
| 3459 | } |
| 3460 | |
| 3461 | impl ::protobuf::reflect::ProtobufValue for EnumValueDescriptorProto { |
| 3462 | fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { |
| 3463 | ::protobuf::reflect::ReflectValueRef::Message(self) |
| 3464 | } |
| 3465 | } |
| 3466 | |
| 3467 | #[derive(PartialEq,Clone,Default)] |
| 3468 | #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))] |
| 3469 | pub struct ServiceDescriptorProto { |
| 3470 | // message fields |
| 3471 | name: ::protobuf::SingularField<::std::string::String>, |
| 3472 | method: ::protobuf::RepeatedField<MethodDescriptorProto>, |
| 3473 | options: ::protobuf::SingularPtrField<ServiceOptions>, |
| 3474 | // special fields |
| 3475 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 3476 | pub unknown_fields: ::protobuf::UnknownFields, |
| 3477 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 3478 | pub cached_size: ::protobuf::CachedSize, |
| 3479 | } |
| 3480 | |
| 3481 | impl<'a> ::std::default::Default for &'a ServiceDescriptorProto { |
| 3482 | fn default() -> &'a ServiceDescriptorProto { |
| 3483 | <ServiceDescriptorProto as ::protobuf::Message>::default_instance() |
| 3484 | } |
| 3485 | } |
| 3486 | |
| 3487 | impl ServiceDescriptorProto { |
| 3488 | pub fn new() -> ServiceDescriptorProto { |
| 3489 | ::std::default::Default::default() |
| 3490 | } |
| 3491 | |
| 3492 | // optional string name = 1; |
| 3493 | |
| 3494 | |
| 3495 | pub fn get_name(&self) -> &str { |
| 3496 | match self.name.as_ref() { |
| 3497 | Some(v) => &v, |
| 3498 | None => "", |
| 3499 | } |
| 3500 | } |
| 3501 | pub fn clear_name(&mut self) { |
| 3502 | self.name.clear(); |
| 3503 | } |
| 3504 | |
| 3505 | pub fn has_name(&self) -> bool { |
| 3506 | self.name.is_some() |
| 3507 | } |
| 3508 | |
| 3509 | // Param is passed by value, moved |
| 3510 | pub fn set_name(&mut self, v: ::std::string::String) { |
| 3511 | self.name = ::protobuf::SingularField::some(v); |
| 3512 | } |
| 3513 | |
| 3514 | // Mutable pointer to the field. |
| 3515 | // If field is not initialized, it is initialized with default value first. |
| 3516 | pub fn mut_name(&mut self) -> &mut ::std::string::String { |
| 3517 | if self.name.is_none() { |
| 3518 | self.name.set_default(); |
| 3519 | } |
| 3520 | self.name.as_mut().unwrap() |
| 3521 | } |
| 3522 | |
| 3523 | // Take field |
| 3524 | pub fn take_name(&mut self) -> ::std::string::String { |
| 3525 | self.name.take().unwrap_or_else(|| ::std::string::String::new()) |
| 3526 | } |
| 3527 | |
| 3528 | // repeated .google.protobuf.MethodDescriptorProto method = 2; |
| 3529 | |
| 3530 | |
| 3531 | pub fn get_method(&self) -> &[MethodDescriptorProto] { |
| 3532 | &self.method |
| 3533 | } |
| 3534 | pub fn clear_method(&mut self) { |
| 3535 | self.method.clear(); |
| 3536 | } |
| 3537 | |
| 3538 | // Param is passed by value, moved |
| 3539 | pub fn set_method(&mut self, v: ::protobuf::RepeatedField<MethodDescriptorProto>) { |
| 3540 | self.method = v; |
| 3541 | } |
| 3542 | |
| 3543 | // Mutable pointer to the field. |
| 3544 | pub fn mut_method(&mut self) -> &mut ::protobuf::RepeatedField<MethodDescriptorProto> { |
| 3545 | &mut self.method |
| 3546 | } |
| 3547 | |
| 3548 | // Take field |
| 3549 | pub fn take_method(&mut self) -> ::protobuf::RepeatedField<MethodDescriptorProto> { |
| 3550 | ::std::mem::replace(&mut self.method, ::protobuf::RepeatedField::new()) |
| 3551 | } |
| 3552 | |
| 3553 | // optional .google.protobuf.ServiceOptions options = 3; |
| 3554 | |
| 3555 | |
| 3556 | pub fn get_options(&self) -> &ServiceOptions { |
| 3557 | self.options.as_ref().unwrap_or_else(|| ServiceOptions::default_instance()) |
| 3558 | } |
| 3559 | pub fn clear_options(&mut self) { |
| 3560 | self.options.clear(); |
| 3561 | } |
| 3562 | |
| 3563 | pub fn has_options(&self) -> bool { |
| 3564 | self.options.is_some() |
| 3565 | } |
| 3566 | |
| 3567 | // Param is passed by value, moved |
| 3568 | pub fn set_options(&mut self, v: ServiceOptions) { |
| 3569 | self.options = ::protobuf::SingularPtrField::some(v); |
| 3570 | } |
| 3571 | |
| 3572 | // Mutable pointer to the field. |
| 3573 | // If field is not initialized, it is initialized with default value first. |
| 3574 | pub fn mut_options(&mut self) -> &mut ServiceOptions { |
| 3575 | if self.options.is_none() { |
| 3576 | self.options.set_default(); |
| 3577 | } |
| 3578 | self.options.as_mut().unwrap() |
| 3579 | } |
| 3580 | |
| 3581 | // Take field |
| 3582 | pub fn take_options(&mut self) -> ServiceOptions { |
| 3583 | self.options.take().unwrap_or_else(|| ServiceOptions::new()) |
| 3584 | } |
| 3585 | } |
| 3586 | |
| 3587 | impl ::protobuf::Message for ServiceDescriptorProto { |
| 3588 | fn is_initialized(&self) -> bool { |
| 3589 | for v in &self.method { |
| 3590 | if !v.is_initialized() { |
| 3591 | return false; |
| 3592 | } |
| 3593 | }; |
| 3594 | for v in &self.options { |
| 3595 | if !v.is_initialized() { |
| 3596 | return false; |
| 3597 | } |
| 3598 | }; |
| 3599 | true |
| 3600 | } |
| 3601 | |
| 3602 | fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 3603 | while !is.eof()? { |
| 3604 | let (field_number, wire_type) = is.read_tag_unpack()?; |
| 3605 | match field_number { |
| 3606 | 1 => { |
| 3607 | ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.name)?; |
| 3608 | }, |
| 3609 | 2 => { |
| 3610 | ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.method)?; |
| 3611 | }, |
| 3612 | 3 => { |
| 3613 | ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.options)?; |
| 3614 | }, |
| 3615 | _ => { |
| 3616 | ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| 3617 | }, |
| 3618 | }; |
| 3619 | } |
| 3620 | ::std::result::Result::Ok(()) |
| 3621 | } |
| 3622 | |
| 3623 | // Compute sizes of nested messages |
| 3624 | #[allow(unused_variables)] |
| 3625 | fn compute_size(&self) -> u32 { |
| 3626 | let mut my_size = 0; |
| 3627 | if let Some(ref v) = self.name.as_ref() { |
| 3628 | my_size += ::protobuf::rt::string_size(1, &v); |
| 3629 | } |
| 3630 | for value in &self.method { |
| 3631 | let len = value.compute_size(); |
| 3632 | my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 3633 | }; |
| 3634 | if let Some(ref v) = self.options.as_ref() { |
| 3635 | let len = v.compute_size(); |
| 3636 | my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 3637 | } |
| 3638 | my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); |
| 3639 | self.cached_size.set(my_size); |
| 3640 | my_size |
| 3641 | } |
| 3642 | |
| 3643 | fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 3644 | if let Some(ref v) = self.name.as_ref() { |
| 3645 | os.write_string(1, &v)?; |
| 3646 | } |
| 3647 | for v in &self.method { |
| 3648 | os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 3649 | os.write_raw_varint32(v.get_cached_size())?; |
| 3650 | v.write_to_with_cached_sizes(os)?; |
| 3651 | }; |
| 3652 | if let Some(ref v) = self.options.as_ref() { |
| 3653 | os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 3654 | os.write_raw_varint32(v.get_cached_size())?; |
| 3655 | v.write_to_with_cached_sizes(os)?; |
| 3656 | } |
| 3657 | os.write_unknown_fields(self.get_unknown_fields())?; |
| 3658 | ::std::result::Result::Ok(()) |
| 3659 | } |
| 3660 | |
| 3661 | fn get_cached_size(&self) -> u32 { |
| 3662 | self.cached_size.get() |
| 3663 | } |
| 3664 | |
| 3665 | fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { |
| 3666 | &self.unknown_fields |
| 3667 | } |
| 3668 | |
| 3669 | fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { |
| 3670 | &mut self.unknown_fields |
| 3671 | } |
| 3672 | |
| 3673 | fn as_any(&self) -> &dyn (::std::any::Any) { |
| 3674 | self as &dyn (::std::any::Any) |
| 3675 | } |
| 3676 | fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| 3677 | self as &mut dyn (::std::any::Any) |
| 3678 | } |
| 3679 | fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| 3680 | self |
| 3681 | } |
| 3682 | |
| 3683 | fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { |
| 3684 | Self::descriptor_static() |
| 3685 | } |
| 3686 | |
| 3687 | fn new() -> ServiceDescriptorProto { |
| 3688 | ServiceDescriptorProto::new() |
| 3689 | } |
| 3690 | |
| 3691 | fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { |
| 3692 | static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; |
| 3693 | unsafe { |
| 3694 | descriptor.get(|| { |
| 3695 | let mut fields = ::std::vec::Vec::new(); |
| 3696 | fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( |
| 3697 | "name", |
| 3698 | |m: &ServiceDescriptorProto| { &m.name }, |
| 3699 | |m: &mut ServiceDescriptorProto| { &mut m.name }, |
| 3700 | )); |
| 3701 | fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<MethodDescriptorProto>>( |
| 3702 | "method", |
| 3703 | |m: &ServiceDescriptorProto| { &m.method }, |
| 3704 | |m: &mut ServiceDescriptorProto| { &mut m.method }, |
| 3705 | )); |
| 3706 | fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<ServiceOptions>>( |
| 3707 | "options", |
| 3708 | |m: &ServiceDescriptorProto| { &m.options }, |
| 3709 | |m: &mut ServiceDescriptorProto| { &mut m.options }, |
| 3710 | )); |
| 3711 | ::protobuf::reflect::MessageDescriptor::new_pb_name::<ServiceDescriptorProto>( |
| 3712 | "ServiceDescriptorProto", |
| 3713 | fields, |
| 3714 | file_descriptor_proto() |
| 3715 | ) |
| 3716 | }) |
| 3717 | } |
| 3718 | } |
| 3719 | |
| 3720 | fn default_instance() -> &'static ServiceDescriptorProto { |
| 3721 | static mut instance: ::protobuf::lazy::Lazy<ServiceDescriptorProto> = ::protobuf::lazy::Lazy::INIT; |
| 3722 | unsafe { |
| 3723 | instance.get(ServiceDescriptorProto::new) |
| 3724 | } |
| 3725 | } |
| 3726 | } |
| 3727 | |
| 3728 | impl ::protobuf::Clear for ServiceDescriptorProto { |
| 3729 | fn clear(&mut self) { |
| 3730 | self.name.clear(); |
| 3731 | self.method.clear(); |
| 3732 | self.options.clear(); |
| 3733 | self.unknown_fields.clear(); |
| 3734 | } |
| 3735 | } |
| 3736 | |
| 3737 | impl ::std::fmt::Debug for ServiceDescriptorProto { |
| 3738 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| 3739 | ::protobuf::text_format::fmt(self, f) |
| 3740 | } |
| 3741 | } |
| 3742 | |
| 3743 | impl ::protobuf::reflect::ProtobufValue for ServiceDescriptorProto { |
| 3744 | fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { |
| 3745 | ::protobuf::reflect::ReflectValueRef::Message(self) |
| 3746 | } |
| 3747 | } |
| 3748 | |
| 3749 | #[derive(PartialEq,Clone,Default)] |
| 3750 | #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))] |
| 3751 | pub struct MethodDescriptorProto { |
| 3752 | // message fields |
| 3753 | name: ::protobuf::SingularField<::std::string::String>, |
| 3754 | input_type: ::protobuf::SingularField<::std::string::String>, |
| 3755 | output_type: ::protobuf::SingularField<::std::string::String>, |
| 3756 | options: ::protobuf::SingularPtrField<MethodOptions>, |
| 3757 | client_streaming: ::std::option::Option<bool>, |
| 3758 | server_streaming: ::std::option::Option<bool>, |
| 3759 | // special fields |
| 3760 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 3761 | pub unknown_fields: ::protobuf::UnknownFields, |
| 3762 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 3763 | pub cached_size: ::protobuf::CachedSize, |
| 3764 | } |
| 3765 | |
| 3766 | impl<'a> ::std::default::Default for &'a MethodDescriptorProto { |
| 3767 | fn default() -> &'a MethodDescriptorProto { |
| 3768 | <MethodDescriptorProto as ::protobuf::Message>::default_instance() |
| 3769 | } |
| 3770 | } |
| 3771 | |
| 3772 | impl MethodDescriptorProto { |
| 3773 | pub fn new() -> MethodDescriptorProto { |
| 3774 | ::std::default::Default::default() |
| 3775 | } |
| 3776 | |
| 3777 | // optional string name = 1; |
| 3778 | |
| 3779 | |
| 3780 | pub fn get_name(&self) -> &str { |
| 3781 | match self.name.as_ref() { |
| 3782 | Some(v) => &v, |
| 3783 | None => "", |
| 3784 | } |
| 3785 | } |
| 3786 | pub fn clear_name(&mut self) { |
| 3787 | self.name.clear(); |
| 3788 | } |
| 3789 | |
| 3790 | pub fn has_name(&self) -> bool { |
| 3791 | self.name.is_some() |
| 3792 | } |
| 3793 | |
| 3794 | // Param is passed by value, moved |
| 3795 | pub fn set_name(&mut self, v: ::std::string::String) { |
| 3796 | self.name = ::protobuf::SingularField::some(v); |
| 3797 | } |
| 3798 | |
| 3799 | // Mutable pointer to the field. |
| 3800 | // If field is not initialized, it is initialized with default value first. |
| 3801 | pub fn mut_name(&mut self) -> &mut ::std::string::String { |
| 3802 | if self.name.is_none() { |
| 3803 | self.name.set_default(); |
| 3804 | } |
| 3805 | self.name.as_mut().unwrap() |
| 3806 | } |
| 3807 | |
| 3808 | // Take field |
| 3809 | pub fn take_name(&mut self) -> ::std::string::String { |
| 3810 | self.name.take().unwrap_or_else(|| ::std::string::String::new()) |
| 3811 | } |
| 3812 | |
| 3813 | // optional string input_type = 2; |
| 3814 | |
| 3815 | |
| 3816 | pub fn get_input_type(&self) -> &str { |
| 3817 | match self.input_type.as_ref() { |
| 3818 | Some(v) => &v, |
| 3819 | None => "", |
| 3820 | } |
| 3821 | } |
| 3822 | pub fn clear_input_type(&mut self) { |
| 3823 | self.input_type.clear(); |
| 3824 | } |
| 3825 | |
| 3826 | pub fn has_input_type(&self) -> bool { |
| 3827 | self.input_type.is_some() |
| 3828 | } |
| 3829 | |
| 3830 | // Param is passed by value, moved |
| 3831 | pub fn set_input_type(&mut self, v: ::std::string::String) { |
| 3832 | self.input_type = ::protobuf::SingularField::some(v); |
| 3833 | } |
| 3834 | |
| 3835 | // Mutable pointer to the field. |
| 3836 | // If field is not initialized, it is initialized with default value first. |
| 3837 | pub fn mut_input_type(&mut self) -> &mut ::std::string::String { |
| 3838 | if self.input_type.is_none() { |
| 3839 | self.input_type.set_default(); |
| 3840 | } |
| 3841 | self.input_type.as_mut().unwrap() |
| 3842 | } |
| 3843 | |
| 3844 | // Take field |
| 3845 | pub fn take_input_type(&mut self) -> ::std::string::String { |
| 3846 | self.input_type.take().unwrap_or_else(|| ::std::string::String::new()) |
| 3847 | } |
| 3848 | |
| 3849 | // optional string output_type = 3; |
| 3850 | |
| 3851 | |
| 3852 | pub fn get_output_type(&self) -> &str { |
| 3853 | match self.output_type.as_ref() { |
| 3854 | Some(v) => &v, |
| 3855 | None => "", |
| 3856 | } |
| 3857 | } |
| 3858 | pub fn clear_output_type(&mut self) { |
| 3859 | self.output_type.clear(); |
| 3860 | } |
| 3861 | |
| 3862 | pub fn has_output_type(&self) -> bool { |
| 3863 | self.output_type.is_some() |
| 3864 | } |
| 3865 | |
| 3866 | // Param is passed by value, moved |
| 3867 | pub fn set_output_type(&mut self, v: ::std::string::String) { |
| 3868 | self.output_type = ::protobuf::SingularField::some(v); |
| 3869 | } |
| 3870 | |
| 3871 | // Mutable pointer to the field. |
| 3872 | // If field is not initialized, it is initialized with default value first. |
| 3873 | pub fn mut_output_type(&mut self) -> &mut ::std::string::String { |
| 3874 | if self.output_type.is_none() { |
| 3875 | self.output_type.set_default(); |
| 3876 | } |
| 3877 | self.output_type.as_mut().unwrap() |
| 3878 | } |
| 3879 | |
| 3880 | // Take field |
| 3881 | pub fn take_output_type(&mut self) -> ::std::string::String { |
| 3882 | self.output_type.take().unwrap_or_else(|| ::std::string::String::new()) |
| 3883 | } |
| 3884 | |
| 3885 | // optional .google.protobuf.MethodOptions options = 4; |
| 3886 | |
| 3887 | |
| 3888 | pub fn get_options(&self) -> &MethodOptions { |
| 3889 | self.options.as_ref().unwrap_or_else(|| MethodOptions::default_instance()) |
| 3890 | } |
| 3891 | pub fn clear_options(&mut self) { |
| 3892 | self.options.clear(); |
| 3893 | } |
| 3894 | |
| 3895 | pub fn has_options(&self) -> bool { |
| 3896 | self.options.is_some() |
| 3897 | } |
| 3898 | |
| 3899 | // Param is passed by value, moved |
| 3900 | pub fn set_options(&mut self, v: MethodOptions) { |
| 3901 | self.options = ::protobuf::SingularPtrField::some(v); |
| 3902 | } |
| 3903 | |
| 3904 | // Mutable pointer to the field. |
| 3905 | // If field is not initialized, it is initialized with default value first. |
| 3906 | pub fn mut_options(&mut self) -> &mut MethodOptions { |
| 3907 | if self.options.is_none() { |
| 3908 | self.options.set_default(); |
| 3909 | } |
| 3910 | self.options.as_mut().unwrap() |
| 3911 | } |
| 3912 | |
| 3913 | // Take field |
| 3914 | pub fn take_options(&mut self) -> MethodOptions { |
| 3915 | self.options.take().unwrap_or_else(|| MethodOptions::new()) |
| 3916 | } |
| 3917 | |
| 3918 | // optional bool client_streaming = 5; |
| 3919 | |
| 3920 | |
| 3921 | pub fn get_client_streaming(&self) -> bool { |
| 3922 | self.client_streaming.unwrap_or(false) |
| 3923 | } |
| 3924 | pub fn clear_client_streaming(&mut self) { |
| 3925 | self.client_streaming = ::std::option::Option::None; |
| 3926 | } |
| 3927 | |
| 3928 | pub fn has_client_streaming(&self) -> bool { |
| 3929 | self.client_streaming.is_some() |
| 3930 | } |
| 3931 | |
| 3932 | // Param is passed by value, moved |
| 3933 | pub fn set_client_streaming(&mut self, v: bool) { |
| 3934 | self.client_streaming = ::std::option::Option::Some(v); |
| 3935 | } |
| 3936 | |
| 3937 | // optional bool server_streaming = 6; |
| 3938 | |
| 3939 | |
| 3940 | pub fn get_server_streaming(&self) -> bool { |
| 3941 | self.server_streaming.unwrap_or(false) |
| 3942 | } |
| 3943 | pub fn clear_server_streaming(&mut self) { |
| 3944 | self.server_streaming = ::std::option::Option::None; |
| 3945 | } |
| 3946 | |
| 3947 | pub fn has_server_streaming(&self) -> bool { |
| 3948 | self.server_streaming.is_some() |
| 3949 | } |
| 3950 | |
| 3951 | // Param is passed by value, moved |
| 3952 | pub fn set_server_streaming(&mut self, v: bool) { |
| 3953 | self.server_streaming = ::std::option::Option::Some(v); |
| 3954 | } |
| 3955 | } |
| 3956 | |
| 3957 | impl ::protobuf::Message for MethodDescriptorProto { |
| 3958 | fn is_initialized(&self) -> bool { |
| 3959 | for v in &self.options { |
| 3960 | if !v.is_initialized() { |
| 3961 | return false; |
| 3962 | } |
| 3963 | }; |
| 3964 | true |
| 3965 | } |
| 3966 | |
| 3967 | fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 3968 | while !is.eof()? { |
| 3969 | let (field_number, wire_type) = is.read_tag_unpack()?; |
| 3970 | match field_number { |
| 3971 | 1 => { |
| 3972 | ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.name)?; |
| 3973 | }, |
| 3974 | 2 => { |
| 3975 | ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.input_type)?; |
| 3976 | }, |
| 3977 | 3 => { |
| 3978 | ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.output_type)?; |
| 3979 | }, |
| 3980 | 4 => { |
| 3981 | ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.options)?; |
| 3982 | }, |
| 3983 | 5 => { |
| 3984 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 3985 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 3986 | } |
| 3987 | let tmp = is.read_bool()?; |
| 3988 | self.client_streaming = ::std::option::Option::Some(tmp); |
| 3989 | }, |
| 3990 | 6 => { |
| 3991 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 3992 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 3993 | } |
| 3994 | let tmp = is.read_bool()?; |
| 3995 | self.server_streaming = ::std::option::Option::Some(tmp); |
| 3996 | }, |
| 3997 | _ => { |
| 3998 | ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| 3999 | }, |
| 4000 | }; |
| 4001 | } |
| 4002 | ::std::result::Result::Ok(()) |
| 4003 | } |
| 4004 | |
| 4005 | // Compute sizes of nested messages |
| 4006 | #[allow(unused_variables)] |
| 4007 | fn compute_size(&self) -> u32 { |
| 4008 | let mut my_size = 0; |
| 4009 | if let Some(ref v) = self.name.as_ref() { |
| 4010 | my_size += ::protobuf::rt::string_size(1, &v); |
| 4011 | } |
| 4012 | if let Some(ref v) = self.input_type.as_ref() { |
| 4013 | my_size += ::protobuf::rt::string_size(2, &v); |
| 4014 | } |
| 4015 | if let Some(ref v) = self.output_type.as_ref() { |
| 4016 | my_size += ::protobuf::rt::string_size(3, &v); |
| 4017 | } |
| 4018 | if let Some(ref v) = self.options.as_ref() { |
| 4019 | let len = v.compute_size(); |
| 4020 | my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 4021 | } |
| 4022 | if let Some(v) = self.client_streaming { |
| 4023 | my_size += 2; |
| 4024 | } |
| 4025 | if let Some(v) = self.server_streaming { |
| 4026 | my_size += 2; |
| 4027 | } |
| 4028 | my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); |
| 4029 | self.cached_size.set(my_size); |
| 4030 | my_size |
| 4031 | } |
| 4032 | |
| 4033 | fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 4034 | if let Some(ref v) = self.name.as_ref() { |
| 4035 | os.write_string(1, &v)?; |
| 4036 | } |
| 4037 | if let Some(ref v) = self.input_type.as_ref() { |
| 4038 | os.write_string(2, &v)?; |
| 4039 | } |
| 4040 | if let Some(ref v) = self.output_type.as_ref() { |
| 4041 | os.write_string(3, &v)?; |
| 4042 | } |
| 4043 | if let Some(ref v) = self.options.as_ref() { |
| 4044 | os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 4045 | os.write_raw_varint32(v.get_cached_size())?; |
| 4046 | v.write_to_with_cached_sizes(os)?; |
| 4047 | } |
| 4048 | if let Some(v) = self.client_streaming { |
| 4049 | os.write_bool(5, v)?; |
| 4050 | } |
| 4051 | if let Some(v) = self.server_streaming { |
| 4052 | os.write_bool(6, v)?; |
| 4053 | } |
| 4054 | os.write_unknown_fields(self.get_unknown_fields())?; |
| 4055 | ::std::result::Result::Ok(()) |
| 4056 | } |
| 4057 | |
| 4058 | fn get_cached_size(&self) -> u32 { |
| 4059 | self.cached_size.get() |
| 4060 | } |
| 4061 | |
| 4062 | fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { |
| 4063 | &self.unknown_fields |
| 4064 | } |
| 4065 | |
| 4066 | fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { |
| 4067 | &mut self.unknown_fields |
| 4068 | } |
| 4069 | |
| 4070 | fn as_any(&self) -> &dyn (::std::any::Any) { |
| 4071 | self as &dyn (::std::any::Any) |
| 4072 | } |
| 4073 | fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| 4074 | self as &mut dyn (::std::any::Any) |
| 4075 | } |
| 4076 | fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| 4077 | self |
| 4078 | } |
| 4079 | |
| 4080 | fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { |
| 4081 | Self::descriptor_static() |
| 4082 | } |
| 4083 | |
| 4084 | fn new() -> MethodDescriptorProto { |
| 4085 | MethodDescriptorProto::new() |
| 4086 | } |
| 4087 | |
| 4088 | fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { |
| 4089 | static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; |
| 4090 | unsafe { |
| 4091 | descriptor.get(|| { |
| 4092 | let mut fields = ::std::vec::Vec::new(); |
| 4093 | fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( |
| 4094 | "name", |
| 4095 | |m: &MethodDescriptorProto| { &m.name }, |
| 4096 | |m: &mut MethodDescriptorProto| { &mut m.name }, |
| 4097 | )); |
| 4098 | fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( |
| 4099 | "input_type", |
| 4100 | |m: &MethodDescriptorProto| { &m.input_type }, |
| 4101 | |m: &mut MethodDescriptorProto| { &mut m.input_type }, |
| 4102 | )); |
| 4103 | fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( |
| 4104 | "output_type", |
| 4105 | |m: &MethodDescriptorProto| { &m.output_type }, |
| 4106 | |m: &mut MethodDescriptorProto| { &mut m.output_type }, |
| 4107 | )); |
| 4108 | fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<MethodOptions>>( |
| 4109 | "options", |
| 4110 | |m: &MethodDescriptorProto| { &m.options }, |
| 4111 | |m: &mut MethodDescriptorProto| { &mut m.options }, |
| 4112 | )); |
| 4113 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>( |
| 4114 | "client_streaming", |
| 4115 | |m: &MethodDescriptorProto| { &m.client_streaming }, |
| 4116 | |m: &mut MethodDescriptorProto| { &mut m.client_streaming }, |
| 4117 | )); |
| 4118 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>( |
| 4119 | "server_streaming", |
| 4120 | |m: &MethodDescriptorProto| { &m.server_streaming }, |
| 4121 | |m: &mut MethodDescriptorProto| { &mut m.server_streaming }, |
| 4122 | )); |
| 4123 | ::protobuf::reflect::MessageDescriptor::new_pb_name::<MethodDescriptorProto>( |
| 4124 | "MethodDescriptorProto", |
| 4125 | fields, |
| 4126 | file_descriptor_proto() |
| 4127 | ) |
| 4128 | }) |
| 4129 | } |
| 4130 | } |
| 4131 | |
| 4132 | fn default_instance() -> &'static MethodDescriptorProto { |
| 4133 | static mut instance: ::protobuf::lazy::Lazy<MethodDescriptorProto> = ::protobuf::lazy::Lazy::INIT; |
| 4134 | unsafe { |
| 4135 | instance.get(MethodDescriptorProto::new) |
| 4136 | } |
| 4137 | } |
| 4138 | } |
| 4139 | |
| 4140 | impl ::protobuf::Clear for MethodDescriptorProto { |
| 4141 | fn clear(&mut self) { |
| 4142 | self.name.clear(); |
| 4143 | self.input_type.clear(); |
| 4144 | self.output_type.clear(); |
| 4145 | self.options.clear(); |
| 4146 | self.client_streaming = ::std::option::Option::None; |
| 4147 | self.server_streaming = ::std::option::Option::None; |
| 4148 | self.unknown_fields.clear(); |
| 4149 | } |
| 4150 | } |
| 4151 | |
| 4152 | impl ::std::fmt::Debug for MethodDescriptorProto { |
| 4153 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| 4154 | ::protobuf::text_format::fmt(self, f) |
| 4155 | } |
| 4156 | } |
| 4157 | |
| 4158 | impl ::protobuf::reflect::ProtobufValue for MethodDescriptorProto { |
| 4159 | fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { |
| 4160 | ::protobuf::reflect::ReflectValueRef::Message(self) |
| 4161 | } |
| 4162 | } |
| 4163 | |
| 4164 | #[derive(PartialEq,Clone,Default)] |
| 4165 | #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))] |
| 4166 | pub struct FileOptions { |
| 4167 | // message fields |
| 4168 | java_package: ::protobuf::SingularField<::std::string::String>, |
| 4169 | java_outer_classname: ::protobuf::SingularField<::std::string::String>, |
| 4170 | java_multiple_files: ::std::option::Option<bool>, |
| 4171 | java_generate_equals_and_hash: ::std::option::Option<bool>, |
| 4172 | java_string_check_utf8: ::std::option::Option<bool>, |
| 4173 | optimize_for: ::std::option::Option<FileOptions_OptimizeMode>, |
| 4174 | go_package: ::protobuf::SingularField<::std::string::String>, |
| 4175 | cc_generic_services: ::std::option::Option<bool>, |
| 4176 | java_generic_services: ::std::option::Option<bool>, |
| 4177 | py_generic_services: ::std::option::Option<bool>, |
| 4178 | deprecated: ::std::option::Option<bool>, |
| 4179 | cc_enable_arenas: ::std::option::Option<bool>, |
| 4180 | objc_class_prefix: ::protobuf::SingularField<::std::string::String>, |
| 4181 | csharp_namespace: ::protobuf::SingularField<::std::string::String>, |
| 4182 | uninterpreted_option: ::protobuf::RepeatedField<UninterpretedOption>, |
| 4183 | // special fields |
| 4184 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 4185 | pub unknown_fields: ::protobuf::UnknownFields, |
| 4186 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 4187 | pub cached_size: ::protobuf::CachedSize, |
| 4188 | } |
| 4189 | |
| 4190 | impl<'a> ::std::default::Default for &'a FileOptions { |
| 4191 | fn default() -> &'a FileOptions { |
| 4192 | <FileOptions as ::protobuf::Message>::default_instance() |
| 4193 | } |
| 4194 | } |
| 4195 | |
| 4196 | impl FileOptions { |
| 4197 | pub fn new() -> FileOptions { |
| 4198 | ::std::default::Default::default() |
| 4199 | } |
| 4200 | |
| 4201 | // optional string java_package = 1; |
| 4202 | |
| 4203 | |
| 4204 | pub fn get_java_package(&self) -> &str { |
| 4205 | match self.java_package.as_ref() { |
| 4206 | Some(v) => &v, |
| 4207 | None => "", |
| 4208 | } |
| 4209 | } |
| 4210 | pub fn clear_java_package(&mut self) { |
| 4211 | self.java_package.clear(); |
| 4212 | } |
| 4213 | |
| 4214 | pub fn has_java_package(&self) -> bool { |
| 4215 | self.java_package.is_some() |
| 4216 | } |
| 4217 | |
| 4218 | // Param is passed by value, moved |
| 4219 | pub fn set_java_package(&mut self, v: ::std::string::String) { |
| 4220 | self.java_package = ::protobuf::SingularField::some(v); |
| 4221 | } |
| 4222 | |
| 4223 | // Mutable pointer to the field. |
| 4224 | // If field is not initialized, it is initialized with default value first. |
| 4225 | pub fn mut_java_package(&mut self) -> &mut ::std::string::String { |
| 4226 | if self.java_package.is_none() { |
| 4227 | self.java_package.set_default(); |
| 4228 | } |
| 4229 | self.java_package.as_mut().unwrap() |
| 4230 | } |
| 4231 | |
| 4232 | // Take field |
| 4233 | pub fn take_java_package(&mut self) -> ::std::string::String { |
| 4234 | self.java_package.take().unwrap_or_else(|| ::std::string::String::new()) |
| 4235 | } |
| 4236 | |
| 4237 | // optional string java_outer_classname = 8; |
| 4238 | |
| 4239 | |
| 4240 | pub fn get_java_outer_classname(&self) -> &str { |
| 4241 | match self.java_outer_classname.as_ref() { |
| 4242 | Some(v) => &v, |
| 4243 | None => "", |
| 4244 | } |
| 4245 | } |
| 4246 | pub fn clear_java_outer_classname(&mut self) { |
| 4247 | self.java_outer_classname.clear(); |
| 4248 | } |
| 4249 | |
| 4250 | pub fn has_java_outer_classname(&self) -> bool { |
| 4251 | self.java_outer_classname.is_some() |
| 4252 | } |
| 4253 | |
| 4254 | // Param is passed by value, moved |
| 4255 | pub fn set_java_outer_classname(&mut self, v: ::std::string::String) { |
| 4256 | self.java_outer_classname = ::protobuf::SingularField::some(v); |
| 4257 | } |
| 4258 | |
| 4259 | // Mutable pointer to the field. |
| 4260 | // If field is not initialized, it is initialized with default value first. |
| 4261 | pub fn mut_java_outer_classname(&mut self) -> &mut ::std::string::String { |
| 4262 | if self.java_outer_classname.is_none() { |
| 4263 | self.java_outer_classname.set_default(); |
| 4264 | } |
| 4265 | self.java_outer_classname.as_mut().unwrap() |
| 4266 | } |
| 4267 | |
| 4268 | // Take field |
| 4269 | pub fn take_java_outer_classname(&mut self) -> ::std::string::String { |
| 4270 | self.java_outer_classname.take().unwrap_or_else(|| ::std::string::String::new()) |
| 4271 | } |
| 4272 | |
| 4273 | // optional bool java_multiple_files = 10; |
| 4274 | |
| 4275 | |
| 4276 | pub fn get_java_multiple_files(&self) -> bool { |
| 4277 | self.java_multiple_files.unwrap_or(false) |
| 4278 | } |
| 4279 | pub fn clear_java_multiple_files(&mut self) { |
| 4280 | self.java_multiple_files = ::std::option::Option::None; |
| 4281 | } |
| 4282 | |
| 4283 | pub fn has_java_multiple_files(&self) -> bool { |
| 4284 | self.java_multiple_files.is_some() |
| 4285 | } |
| 4286 | |
| 4287 | // Param is passed by value, moved |
| 4288 | pub fn set_java_multiple_files(&mut self, v: bool) { |
| 4289 | self.java_multiple_files = ::std::option::Option::Some(v); |
| 4290 | } |
| 4291 | |
| 4292 | // optional bool java_generate_equals_and_hash = 20; |
| 4293 | |
| 4294 | |
| 4295 | pub fn get_java_generate_equals_and_hash(&self) -> bool { |
| 4296 | self.java_generate_equals_and_hash.unwrap_or(false) |
| 4297 | } |
| 4298 | pub fn clear_java_generate_equals_and_hash(&mut self) { |
| 4299 | self.java_generate_equals_and_hash = ::std::option::Option::None; |
| 4300 | } |
| 4301 | |
| 4302 | pub fn has_java_generate_equals_and_hash(&self) -> bool { |
| 4303 | self.java_generate_equals_and_hash.is_some() |
| 4304 | } |
| 4305 | |
| 4306 | // Param is passed by value, moved |
| 4307 | pub fn set_java_generate_equals_and_hash(&mut self, v: bool) { |
| 4308 | self.java_generate_equals_and_hash = ::std::option::Option::Some(v); |
| 4309 | } |
| 4310 | |
| 4311 | // optional bool java_string_check_utf8 = 27; |
| 4312 | |
| 4313 | |
| 4314 | pub fn get_java_string_check_utf8(&self) -> bool { |
| 4315 | self.java_string_check_utf8.unwrap_or(false) |
| 4316 | } |
| 4317 | pub fn clear_java_string_check_utf8(&mut self) { |
| 4318 | self.java_string_check_utf8 = ::std::option::Option::None; |
| 4319 | } |
| 4320 | |
| 4321 | pub fn has_java_string_check_utf8(&self) -> bool { |
| 4322 | self.java_string_check_utf8.is_some() |
| 4323 | } |
| 4324 | |
| 4325 | // Param is passed by value, moved |
| 4326 | pub fn set_java_string_check_utf8(&mut self, v: bool) { |
| 4327 | self.java_string_check_utf8 = ::std::option::Option::Some(v); |
| 4328 | } |
| 4329 | |
| 4330 | // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9; |
| 4331 | |
| 4332 | |
| 4333 | pub fn get_optimize_for(&self) -> FileOptions_OptimizeMode { |
| 4334 | self.optimize_for.unwrap_or(FileOptions_OptimizeMode::SPEED) |
| 4335 | } |
| 4336 | pub fn clear_optimize_for(&mut self) { |
| 4337 | self.optimize_for = ::std::option::Option::None; |
| 4338 | } |
| 4339 | |
| 4340 | pub fn has_optimize_for(&self) -> bool { |
| 4341 | self.optimize_for.is_some() |
| 4342 | } |
| 4343 | |
| 4344 | // Param is passed by value, moved |
| 4345 | pub fn set_optimize_for(&mut self, v: FileOptions_OptimizeMode) { |
| 4346 | self.optimize_for = ::std::option::Option::Some(v); |
| 4347 | } |
| 4348 | |
| 4349 | // optional string go_package = 11; |
| 4350 | |
| 4351 | |
| 4352 | pub fn get_go_package(&self) -> &str { |
| 4353 | match self.go_package.as_ref() { |
| 4354 | Some(v) => &v, |
| 4355 | None => "", |
| 4356 | } |
| 4357 | } |
| 4358 | pub fn clear_go_package(&mut self) { |
| 4359 | self.go_package.clear(); |
| 4360 | } |
| 4361 | |
| 4362 | pub fn has_go_package(&self) -> bool { |
| 4363 | self.go_package.is_some() |
| 4364 | } |
| 4365 | |
| 4366 | // Param is passed by value, moved |
| 4367 | pub fn set_go_package(&mut self, v: ::std::string::String) { |
| 4368 | self.go_package = ::protobuf::SingularField::some(v); |
| 4369 | } |
| 4370 | |
| 4371 | // Mutable pointer to the field. |
| 4372 | // If field is not initialized, it is initialized with default value first. |
| 4373 | pub fn mut_go_package(&mut self) -> &mut ::std::string::String { |
| 4374 | if self.go_package.is_none() { |
| 4375 | self.go_package.set_default(); |
| 4376 | } |
| 4377 | self.go_package.as_mut().unwrap() |
| 4378 | } |
| 4379 | |
| 4380 | // Take field |
| 4381 | pub fn take_go_package(&mut self) -> ::std::string::String { |
| 4382 | self.go_package.take().unwrap_or_else(|| ::std::string::String::new()) |
| 4383 | } |
| 4384 | |
| 4385 | // optional bool cc_generic_services = 16; |
| 4386 | |
| 4387 | |
| 4388 | pub fn get_cc_generic_services(&self) -> bool { |
| 4389 | self.cc_generic_services.unwrap_or(false) |
| 4390 | } |
| 4391 | pub fn clear_cc_generic_services(&mut self) { |
| 4392 | self.cc_generic_services = ::std::option::Option::None; |
| 4393 | } |
| 4394 | |
| 4395 | pub fn has_cc_generic_services(&self) -> bool { |
| 4396 | self.cc_generic_services.is_some() |
| 4397 | } |
| 4398 | |
| 4399 | // Param is passed by value, moved |
| 4400 | pub fn set_cc_generic_services(&mut self, v: bool) { |
| 4401 | self.cc_generic_services = ::std::option::Option::Some(v); |
| 4402 | } |
| 4403 | |
| 4404 | // optional bool java_generic_services = 17; |
| 4405 | |
| 4406 | |
| 4407 | pub fn get_java_generic_services(&self) -> bool { |
| 4408 | self.java_generic_services.unwrap_or(false) |
| 4409 | } |
| 4410 | pub fn clear_java_generic_services(&mut self) { |
| 4411 | self.java_generic_services = ::std::option::Option::None; |
| 4412 | } |
| 4413 | |
| 4414 | pub fn has_java_generic_services(&self) -> bool { |
| 4415 | self.java_generic_services.is_some() |
| 4416 | } |
| 4417 | |
| 4418 | // Param is passed by value, moved |
| 4419 | pub fn set_java_generic_services(&mut self, v: bool) { |
| 4420 | self.java_generic_services = ::std::option::Option::Some(v); |
| 4421 | } |
| 4422 | |
| 4423 | // optional bool py_generic_services = 18; |
| 4424 | |
| 4425 | |
| 4426 | pub fn get_py_generic_services(&self) -> bool { |
| 4427 | self.py_generic_services.unwrap_or(false) |
| 4428 | } |
| 4429 | pub fn clear_py_generic_services(&mut self) { |
| 4430 | self.py_generic_services = ::std::option::Option::None; |
| 4431 | } |
| 4432 | |
| 4433 | pub fn has_py_generic_services(&self) -> bool { |
| 4434 | self.py_generic_services.is_some() |
| 4435 | } |
| 4436 | |
| 4437 | // Param is passed by value, moved |
| 4438 | pub fn set_py_generic_services(&mut self, v: bool) { |
| 4439 | self.py_generic_services = ::std::option::Option::Some(v); |
| 4440 | } |
| 4441 | |
| 4442 | // optional bool deprecated = 23; |
| 4443 | |
| 4444 | |
| 4445 | pub fn get_deprecated(&self) -> bool { |
| 4446 | self.deprecated.unwrap_or(false) |
| 4447 | } |
| 4448 | pub fn clear_deprecated(&mut self) { |
| 4449 | self.deprecated = ::std::option::Option::None; |
| 4450 | } |
| 4451 | |
| 4452 | pub fn has_deprecated(&self) -> bool { |
| 4453 | self.deprecated.is_some() |
| 4454 | } |
| 4455 | |
| 4456 | // Param is passed by value, moved |
| 4457 | pub fn set_deprecated(&mut self, v: bool) { |
| 4458 | self.deprecated = ::std::option::Option::Some(v); |
| 4459 | } |
| 4460 | |
| 4461 | // optional bool cc_enable_arenas = 31; |
| 4462 | |
| 4463 | |
| 4464 | pub fn get_cc_enable_arenas(&self) -> bool { |
| 4465 | self.cc_enable_arenas.unwrap_or(false) |
| 4466 | } |
| 4467 | pub fn clear_cc_enable_arenas(&mut self) { |
| 4468 | self.cc_enable_arenas = ::std::option::Option::None; |
| 4469 | } |
| 4470 | |
| 4471 | pub fn has_cc_enable_arenas(&self) -> bool { |
| 4472 | self.cc_enable_arenas.is_some() |
| 4473 | } |
| 4474 | |
| 4475 | // Param is passed by value, moved |
| 4476 | pub fn set_cc_enable_arenas(&mut self, v: bool) { |
| 4477 | self.cc_enable_arenas = ::std::option::Option::Some(v); |
| 4478 | } |
| 4479 | |
| 4480 | // optional string objc_class_prefix = 36; |
| 4481 | |
| 4482 | |
| 4483 | pub fn get_objc_class_prefix(&self) -> &str { |
| 4484 | match self.objc_class_prefix.as_ref() { |
| 4485 | Some(v) => &v, |
| 4486 | None => "", |
| 4487 | } |
| 4488 | } |
| 4489 | pub fn clear_objc_class_prefix(&mut self) { |
| 4490 | self.objc_class_prefix.clear(); |
| 4491 | } |
| 4492 | |
| 4493 | pub fn has_objc_class_prefix(&self) -> bool { |
| 4494 | self.objc_class_prefix.is_some() |
| 4495 | } |
| 4496 | |
| 4497 | // Param is passed by value, moved |
| 4498 | pub fn set_objc_class_prefix(&mut self, v: ::std::string::String) { |
| 4499 | self.objc_class_prefix = ::protobuf::SingularField::some(v); |
| 4500 | } |
| 4501 | |
| 4502 | // Mutable pointer to the field. |
| 4503 | // If field is not initialized, it is initialized with default value first. |
| 4504 | pub fn mut_objc_class_prefix(&mut self) -> &mut ::std::string::String { |
| 4505 | if self.objc_class_prefix.is_none() { |
| 4506 | self.objc_class_prefix.set_default(); |
| 4507 | } |
| 4508 | self.objc_class_prefix.as_mut().unwrap() |
| 4509 | } |
| 4510 | |
| 4511 | // Take field |
| 4512 | pub fn take_objc_class_prefix(&mut self) -> ::std::string::String { |
| 4513 | self.objc_class_prefix.take().unwrap_or_else(|| ::std::string::String::new()) |
| 4514 | } |
| 4515 | |
| 4516 | // optional string csharp_namespace = 37; |
| 4517 | |
| 4518 | |
| 4519 | pub fn get_csharp_namespace(&self) -> &str { |
| 4520 | match self.csharp_namespace.as_ref() { |
| 4521 | Some(v) => &v, |
| 4522 | None => "", |
| 4523 | } |
| 4524 | } |
| 4525 | pub fn clear_csharp_namespace(&mut self) { |
| 4526 | self.csharp_namespace.clear(); |
| 4527 | } |
| 4528 | |
| 4529 | pub fn has_csharp_namespace(&self) -> bool { |
| 4530 | self.csharp_namespace.is_some() |
| 4531 | } |
| 4532 | |
| 4533 | // Param is passed by value, moved |
| 4534 | pub fn set_csharp_namespace(&mut self, v: ::std::string::String) { |
| 4535 | self.csharp_namespace = ::protobuf::SingularField::some(v); |
| 4536 | } |
| 4537 | |
| 4538 | // Mutable pointer to the field. |
| 4539 | // If field is not initialized, it is initialized with default value first. |
| 4540 | pub fn mut_csharp_namespace(&mut self) -> &mut ::std::string::String { |
| 4541 | if self.csharp_namespace.is_none() { |
| 4542 | self.csharp_namespace.set_default(); |
| 4543 | } |
| 4544 | self.csharp_namespace.as_mut().unwrap() |
| 4545 | } |
| 4546 | |
| 4547 | // Take field |
| 4548 | pub fn take_csharp_namespace(&mut self) -> ::std::string::String { |
| 4549 | self.csharp_namespace.take().unwrap_or_else(|| ::std::string::String::new()) |
| 4550 | } |
| 4551 | |
| 4552 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 4553 | |
| 4554 | |
| 4555 | pub fn get_uninterpreted_option(&self) -> &[UninterpretedOption] { |
| 4556 | &self.uninterpreted_option |
| 4557 | } |
| 4558 | pub fn clear_uninterpreted_option(&mut self) { |
| 4559 | self.uninterpreted_option.clear(); |
| 4560 | } |
| 4561 | |
| 4562 | // Param is passed by value, moved |
| 4563 | pub fn set_uninterpreted_option(&mut self, v: ::protobuf::RepeatedField<UninterpretedOption>) { |
| 4564 | self.uninterpreted_option = v; |
| 4565 | } |
| 4566 | |
| 4567 | // Mutable pointer to the field. |
| 4568 | pub fn mut_uninterpreted_option(&mut self) -> &mut ::protobuf::RepeatedField<UninterpretedOption> { |
| 4569 | &mut self.uninterpreted_option |
| 4570 | } |
| 4571 | |
| 4572 | // Take field |
| 4573 | pub fn take_uninterpreted_option(&mut self) -> ::protobuf::RepeatedField<UninterpretedOption> { |
| 4574 | ::std::mem::replace(&mut self.uninterpreted_option, ::protobuf::RepeatedField::new()) |
| 4575 | } |
| 4576 | } |
| 4577 | |
| 4578 | impl ::protobuf::Message for FileOptions { |
| 4579 | fn is_initialized(&self) -> bool { |
| 4580 | for v in &self.uninterpreted_option { |
| 4581 | if !v.is_initialized() { |
| 4582 | return false; |
| 4583 | } |
| 4584 | }; |
| 4585 | true |
| 4586 | } |
| 4587 | |
| 4588 | fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 4589 | while !is.eof()? { |
| 4590 | let (field_number, wire_type) = is.read_tag_unpack()?; |
| 4591 | match field_number { |
| 4592 | 1 => { |
| 4593 | ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.java_package)?; |
| 4594 | }, |
| 4595 | 8 => { |
| 4596 | ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.java_outer_classname)?; |
| 4597 | }, |
| 4598 | 10 => { |
| 4599 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 4600 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 4601 | } |
| 4602 | let tmp = is.read_bool()?; |
| 4603 | self.java_multiple_files = ::std::option::Option::Some(tmp); |
| 4604 | }, |
| 4605 | 20 => { |
| 4606 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 4607 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 4608 | } |
| 4609 | let tmp = is.read_bool()?; |
| 4610 | self.java_generate_equals_and_hash = ::std::option::Option::Some(tmp); |
| 4611 | }, |
| 4612 | 27 => { |
| 4613 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 4614 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 4615 | } |
| 4616 | let tmp = is.read_bool()?; |
| 4617 | self.java_string_check_utf8 = ::std::option::Option::Some(tmp); |
| 4618 | }, |
| 4619 | 9 => { |
| 4620 | ::protobuf::rt::read_proto2_enum_with_unknown_fields_into(wire_type, is, &mut self.optimize_for, 9, &mut self.unknown_fields)? |
| 4621 | }, |
| 4622 | 11 => { |
| 4623 | ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.go_package)?; |
| 4624 | }, |
| 4625 | 16 => { |
| 4626 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 4627 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 4628 | } |
| 4629 | let tmp = is.read_bool()?; |
| 4630 | self.cc_generic_services = ::std::option::Option::Some(tmp); |
| 4631 | }, |
| 4632 | 17 => { |
| 4633 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 4634 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 4635 | } |
| 4636 | let tmp = is.read_bool()?; |
| 4637 | self.java_generic_services = ::std::option::Option::Some(tmp); |
| 4638 | }, |
| 4639 | 18 => { |
| 4640 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 4641 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 4642 | } |
| 4643 | let tmp = is.read_bool()?; |
| 4644 | self.py_generic_services = ::std::option::Option::Some(tmp); |
| 4645 | }, |
| 4646 | 23 => { |
| 4647 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 4648 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 4649 | } |
| 4650 | let tmp = is.read_bool()?; |
| 4651 | self.deprecated = ::std::option::Option::Some(tmp); |
| 4652 | }, |
| 4653 | 31 => { |
| 4654 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 4655 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 4656 | } |
| 4657 | let tmp = is.read_bool()?; |
| 4658 | self.cc_enable_arenas = ::std::option::Option::Some(tmp); |
| 4659 | }, |
| 4660 | 36 => { |
| 4661 | ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.objc_class_prefix)?; |
| 4662 | }, |
| 4663 | 37 => { |
| 4664 | ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.csharp_namespace)?; |
| 4665 | }, |
| 4666 | 999 => { |
| 4667 | ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.uninterpreted_option)?; |
| 4668 | }, |
| 4669 | _ => { |
| 4670 | ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| 4671 | }, |
| 4672 | }; |
| 4673 | } |
| 4674 | ::std::result::Result::Ok(()) |
| 4675 | } |
| 4676 | |
| 4677 | // Compute sizes of nested messages |
| 4678 | #[allow(unused_variables)] |
| 4679 | fn compute_size(&self) -> u32 { |
| 4680 | let mut my_size = 0; |
| 4681 | if let Some(ref v) = self.java_package.as_ref() { |
| 4682 | my_size += ::protobuf::rt::string_size(1, &v); |
| 4683 | } |
| 4684 | if let Some(ref v) = self.java_outer_classname.as_ref() { |
| 4685 | my_size += ::protobuf::rt::string_size(8, &v); |
| 4686 | } |
| 4687 | if let Some(v) = self.java_multiple_files { |
| 4688 | my_size += 2; |
| 4689 | } |
| 4690 | if let Some(v) = self.java_generate_equals_and_hash { |
| 4691 | my_size += 3; |
| 4692 | } |
| 4693 | if let Some(v) = self.java_string_check_utf8 { |
| 4694 | my_size += 3; |
| 4695 | } |
| 4696 | if let Some(v) = self.optimize_for { |
| 4697 | my_size += ::protobuf::rt::enum_size(9, v); |
| 4698 | } |
| 4699 | if let Some(ref v) = self.go_package.as_ref() { |
| 4700 | my_size += ::protobuf::rt::string_size(11, &v); |
| 4701 | } |
| 4702 | if let Some(v) = self.cc_generic_services { |
| 4703 | my_size += 3; |
| 4704 | } |
| 4705 | if let Some(v) = self.java_generic_services { |
| 4706 | my_size += 3; |
| 4707 | } |
| 4708 | if let Some(v) = self.py_generic_services { |
| 4709 | my_size += 3; |
| 4710 | } |
| 4711 | if let Some(v) = self.deprecated { |
| 4712 | my_size += 3; |
| 4713 | } |
| 4714 | if let Some(v) = self.cc_enable_arenas { |
| 4715 | my_size += 3; |
| 4716 | } |
| 4717 | if let Some(ref v) = self.objc_class_prefix.as_ref() { |
| 4718 | my_size += ::protobuf::rt::string_size(36, &v); |
| 4719 | } |
| 4720 | if let Some(ref v) = self.csharp_namespace.as_ref() { |
| 4721 | my_size += ::protobuf::rt::string_size(37, &v); |
| 4722 | } |
| 4723 | for value in &self.uninterpreted_option { |
| 4724 | let len = value.compute_size(); |
| 4725 | my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 4726 | }; |
| 4727 | my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); |
| 4728 | self.cached_size.set(my_size); |
| 4729 | my_size |
| 4730 | } |
| 4731 | |
| 4732 | fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 4733 | if let Some(ref v) = self.java_package.as_ref() { |
| 4734 | os.write_string(1, &v)?; |
| 4735 | } |
| 4736 | if let Some(ref v) = self.java_outer_classname.as_ref() { |
| 4737 | os.write_string(8, &v)?; |
| 4738 | } |
| 4739 | if let Some(v) = self.java_multiple_files { |
| 4740 | os.write_bool(10, v)?; |
| 4741 | } |
| 4742 | if let Some(v) = self.java_generate_equals_and_hash { |
| 4743 | os.write_bool(20, v)?; |
| 4744 | } |
| 4745 | if let Some(v) = self.java_string_check_utf8 { |
| 4746 | os.write_bool(27, v)?; |
| 4747 | } |
| 4748 | if let Some(v) = self.optimize_for { |
| 4749 | os.write_enum(9, v.value())?; |
| 4750 | } |
| 4751 | if let Some(ref v) = self.go_package.as_ref() { |
| 4752 | os.write_string(11, &v)?; |
| 4753 | } |
| 4754 | if let Some(v) = self.cc_generic_services { |
| 4755 | os.write_bool(16, v)?; |
| 4756 | } |
| 4757 | if let Some(v) = self.java_generic_services { |
| 4758 | os.write_bool(17, v)?; |
| 4759 | } |
| 4760 | if let Some(v) = self.py_generic_services { |
| 4761 | os.write_bool(18, v)?; |
| 4762 | } |
| 4763 | if let Some(v) = self.deprecated { |
| 4764 | os.write_bool(23, v)?; |
| 4765 | } |
| 4766 | if let Some(v) = self.cc_enable_arenas { |
| 4767 | os.write_bool(31, v)?; |
| 4768 | } |
| 4769 | if let Some(ref v) = self.objc_class_prefix.as_ref() { |
| 4770 | os.write_string(36, &v)?; |
| 4771 | } |
| 4772 | if let Some(ref v) = self.csharp_namespace.as_ref() { |
| 4773 | os.write_string(37, &v)?; |
| 4774 | } |
| 4775 | for v in &self.uninterpreted_option { |
| 4776 | os.write_tag(999, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 4777 | os.write_raw_varint32(v.get_cached_size())?; |
| 4778 | v.write_to_with_cached_sizes(os)?; |
| 4779 | }; |
| 4780 | os.write_unknown_fields(self.get_unknown_fields())?; |
| 4781 | ::std::result::Result::Ok(()) |
| 4782 | } |
| 4783 | |
| 4784 | fn get_cached_size(&self) -> u32 { |
| 4785 | self.cached_size.get() |
| 4786 | } |
| 4787 | |
| 4788 | fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { |
| 4789 | &self.unknown_fields |
| 4790 | } |
| 4791 | |
| 4792 | fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { |
| 4793 | &mut self.unknown_fields |
| 4794 | } |
| 4795 | |
| 4796 | fn as_any(&self) -> &dyn (::std::any::Any) { |
| 4797 | self as &dyn (::std::any::Any) |
| 4798 | } |
| 4799 | fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| 4800 | self as &mut dyn (::std::any::Any) |
| 4801 | } |
| 4802 | fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| 4803 | self |
| 4804 | } |
| 4805 | |
| 4806 | fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { |
| 4807 | Self::descriptor_static() |
| 4808 | } |
| 4809 | |
| 4810 | fn new() -> FileOptions { |
| 4811 | FileOptions::new() |
| 4812 | } |
| 4813 | |
| 4814 | fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { |
| 4815 | static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; |
| 4816 | unsafe { |
| 4817 | descriptor.get(|| { |
| 4818 | let mut fields = ::std::vec::Vec::new(); |
| 4819 | fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( |
| 4820 | "java_package", |
| 4821 | |m: &FileOptions| { &m.java_package }, |
| 4822 | |m: &mut FileOptions| { &mut m.java_package }, |
| 4823 | )); |
| 4824 | fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( |
| 4825 | "java_outer_classname", |
| 4826 | |m: &FileOptions| { &m.java_outer_classname }, |
| 4827 | |m: &mut FileOptions| { &mut m.java_outer_classname }, |
| 4828 | )); |
| 4829 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>( |
| 4830 | "java_multiple_files", |
| 4831 | |m: &FileOptions| { &m.java_multiple_files }, |
| 4832 | |m: &mut FileOptions| { &mut m.java_multiple_files }, |
| 4833 | )); |
| 4834 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>( |
| 4835 | "java_generate_equals_and_hash", |
| 4836 | |m: &FileOptions| { &m.java_generate_equals_and_hash }, |
| 4837 | |m: &mut FileOptions| { &mut m.java_generate_equals_and_hash }, |
| 4838 | )); |
| 4839 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>( |
| 4840 | "java_string_check_utf8", |
| 4841 | |m: &FileOptions| { &m.java_string_check_utf8 }, |
| 4842 | |m: &mut FileOptions| { &mut m.java_string_check_utf8 }, |
| 4843 | )); |
| 4844 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<FileOptions_OptimizeMode>>( |
| 4845 | "optimize_for", |
| 4846 | |m: &FileOptions| { &m.optimize_for }, |
| 4847 | |m: &mut FileOptions| { &mut m.optimize_for }, |
| 4848 | )); |
| 4849 | fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( |
| 4850 | "go_package", |
| 4851 | |m: &FileOptions| { &m.go_package }, |
| 4852 | |m: &mut FileOptions| { &mut m.go_package }, |
| 4853 | )); |
| 4854 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>( |
| 4855 | "cc_generic_services", |
| 4856 | |m: &FileOptions| { &m.cc_generic_services }, |
| 4857 | |m: &mut FileOptions| { &mut m.cc_generic_services }, |
| 4858 | )); |
| 4859 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>( |
| 4860 | "java_generic_services", |
| 4861 | |m: &FileOptions| { &m.java_generic_services }, |
| 4862 | |m: &mut FileOptions| { &mut m.java_generic_services }, |
| 4863 | )); |
| 4864 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>( |
| 4865 | "py_generic_services", |
| 4866 | |m: &FileOptions| { &m.py_generic_services }, |
| 4867 | |m: &mut FileOptions| { &mut m.py_generic_services }, |
| 4868 | )); |
| 4869 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>( |
| 4870 | "deprecated", |
| 4871 | |m: &FileOptions| { &m.deprecated }, |
| 4872 | |m: &mut FileOptions| { &mut m.deprecated }, |
| 4873 | )); |
| 4874 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>( |
| 4875 | "cc_enable_arenas", |
| 4876 | |m: &FileOptions| { &m.cc_enable_arenas }, |
| 4877 | |m: &mut FileOptions| { &mut m.cc_enable_arenas }, |
| 4878 | )); |
| 4879 | fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( |
| 4880 | "objc_class_prefix", |
| 4881 | |m: &FileOptions| { &m.objc_class_prefix }, |
| 4882 | |m: &mut FileOptions| { &mut m.objc_class_prefix }, |
| 4883 | )); |
| 4884 | fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( |
| 4885 | "csharp_namespace", |
| 4886 | |m: &FileOptions| { &m.csharp_namespace }, |
| 4887 | |m: &mut FileOptions| { &mut m.csharp_namespace }, |
| 4888 | )); |
| 4889 | fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<UninterpretedOption>>( |
| 4890 | "uninterpreted_option", |
| 4891 | |m: &FileOptions| { &m.uninterpreted_option }, |
| 4892 | |m: &mut FileOptions| { &mut m.uninterpreted_option }, |
| 4893 | )); |
| 4894 | ::protobuf::reflect::MessageDescriptor::new_pb_name::<FileOptions>( |
| 4895 | "FileOptions", |
| 4896 | fields, |
| 4897 | file_descriptor_proto() |
| 4898 | ) |
| 4899 | }) |
| 4900 | } |
| 4901 | } |
| 4902 | |
| 4903 | fn default_instance() -> &'static FileOptions { |
| 4904 | static mut instance: ::protobuf::lazy::Lazy<FileOptions> = ::protobuf::lazy::Lazy::INIT; |
| 4905 | unsafe { |
| 4906 | instance.get(FileOptions::new) |
| 4907 | } |
| 4908 | } |
| 4909 | } |
| 4910 | |
| 4911 | impl ::protobuf::Clear for FileOptions { |
| 4912 | fn clear(&mut self) { |
| 4913 | self.java_package.clear(); |
| 4914 | self.java_outer_classname.clear(); |
| 4915 | self.java_multiple_files = ::std::option::Option::None; |
| 4916 | self.java_generate_equals_and_hash = ::std::option::Option::None; |
| 4917 | self.java_string_check_utf8 = ::std::option::Option::None; |
| 4918 | self.optimize_for = ::std::option::Option::None; |
| 4919 | self.go_package.clear(); |
| 4920 | self.cc_generic_services = ::std::option::Option::None; |
| 4921 | self.java_generic_services = ::std::option::Option::None; |
| 4922 | self.py_generic_services = ::std::option::Option::None; |
| 4923 | self.deprecated = ::std::option::Option::None; |
| 4924 | self.cc_enable_arenas = ::std::option::Option::None; |
| 4925 | self.objc_class_prefix.clear(); |
| 4926 | self.csharp_namespace.clear(); |
| 4927 | self.uninterpreted_option.clear(); |
| 4928 | self.unknown_fields.clear(); |
| 4929 | } |
| 4930 | } |
| 4931 | |
| 4932 | impl ::std::fmt::Debug for FileOptions { |
| 4933 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| 4934 | ::protobuf::text_format::fmt(self, f) |
| 4935 | } |
| 4936 | } |
| 4937 | |
| 4938 | impl ::protobuf::reflect::ProtobufValue for FileOptions { |
| 4939 | fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { |
| 4940 | ::protobuf::reflect::ReflectValueRef::Message(self) |
| 4941 | } |
| 4942 | } |
| 4943 | |
| 4944 | #[derive(Clone,PartialEq,Eq,Debug,Hash)] |
| 4945 | #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))] |
| 4946 | pub enum FileOptions_OptimizeMode { |
| 4947 | SPEED = 1, |
| 4948 | CODE_SIZE = 2, |
| 4949 | LITE_RUNTIME = 3, |
| 4950 | } |
| 4951 | |
| 4952 | impl ::protobuf::ProtobufEnum for FileOptions_OptimizeMode { |
| 4953 | fn value(&self) -> i32 { |
| 4954 | *self as i32 |
| 4955 | } |
| 4956 | |
| 4957 | fn from_i32(value: i32) -> ::std::option::Option<FileOptions_OptimizeMode> { |
| 4958 | match value { |
| 4959 | 1 => ::std::option::Option::Some(FileOptions_OptimizeMode::SPEED), |
| 4960 | 2 => ::std::option::Option::Some(FileOptions_OptimizeMode::CODE_SIZE), |
| 4961 | 3 => ::std::option::Option::Some(FileOptions_OptimizeMode::LITE_RUNTIME), |
| 4962 | _ => ::std::option::Option::None |
| 4963 | } |
| 4964 | } |
| 4965 | |
| 4966 | fn values() -> &'static [Self] { |
| 4967 | static values: &'static [FileOptions_OptimizeMode] = &[ |
| 4968 | FileOptions_OptimizeMode::SPEED, |
| 4969 | FileOptions_OptimizeMode::CODE_SIZE, |
| 4970 | FileOptions_OptimizeMode::LITE_RUNTIME, |
| 4971 | ]; |
| 4972 | values |
| 4973 | } |
| 4974 | |
| 4975 | fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { |
| 4976 | static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy::INIT; |
| 4977 | unsafe { |
| 4978 | descriptor.get(|| { |
| 4979 | ::protobuf::reflect::EnumDescriptor::new_pb_name::<FileOptions_OptimizeMode>("FileOptions.OptimizeMode", file_descriptor_proto()) |
| 4980 | }) |
| 4981 | } |
| 4982 | } |
| 4983 | } |
| 4984 | |
| 4985 | impl ::std::marker::Copy for FileOptions_OptimizeMode { |
| 4986 | } |
| 4987 | |
| 4988 | // Note, `Default` is implemented although default value is not 0 |
| 4989 | impl ::std::default::Default for FileOptions_OptimizeMode { |
| 4990 | fn default() -> Self { |
| 4991 | FileOptions_OptimizeMode::SPEED |
| 4992 | } |
| 4993 | } |
| 4994 | |
| 4995 | impl ::protobuf::reflect::ProtobufValue for FileOptions_OptimizeMode { |
| 4996 | fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { |
| 4997 | ::protobuf::reflect::ReflectValueRef::Enum(self.descriptor()) |
| 4998 | } |
| 4999 | } |
| 5000 | |
| 5001 | #[derive(PartialEq,Clone,Default)] |
| 5002 | #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))] |
| 5003 | pub struct MessageOptions { |
| 5004 | // message fields |
| 5005 | message_set_wire_format: ::std::option::Option<bool>, |
| 5006 | no_standard_descriptor_accessor: ::std::option::Option<bool>, |
| 5007 | deprecated: ::std::option::Option<bool>, |
| 5008 | map_entry: ::std::option::Option<bool>, |
| 5009 | uninterpreted_option: ::protobuf::RepeatedField<UninterpretedOption>, |
| 5010 | // special fields |
| 5011 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 5012 | pub unknown_fields: ::protobuf::UnknownFields, |
| 5013 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 5014 | pub cached_size: ::protobuf::CachedSize, |
| 5015 | } |
| 5016 | |
| 5017 | impl<'a> ::std::default::Default for &'a MessageOptions { |
| 5018 | fn default() -> &'a MessageOptions { |
| 5019 | <MessageOptions as ::protobuf::Message>::default_instance() |
| 5020 | } |
| 5021 | } |
| 5022 | |
| 5023 | impl MessageOptions { |
| 5024 | pub fn new() -> MessageOptions { |
| 5025 | ::std::default::Default::default() |
| 5026 | } |
| 5027 | |
| 5028 | // optional bool message_set_wire_format = 1; |
| 5029 | |
| 5030 | |
| 5031 | pub fn get_message_set_wire_format(&self) -> bool { |
| 5032 | self.message_set_wire_format.unwrap_or(false) |
| 5033 | } |
| 5034 | pub fn clear_message_set_wire_format(&mut self) { |
| 5035 | self.message_set_wire_format = ::std::option::Option::None; |
| 5036 | } |
| 5037 | |
| 5038 | pub fn has_message_set_wire_format(&self) -> bool { |
| 5039 | self.message_set_wire_format.is_some() |
| 5040 | } |
| 5041 | |
| 5042 | // Param is passed by value, moved |
| 5043 | pub fn set_message_set_wire_format(&mut self, v: bool) { |
| 5044 | self.message_set_wire_format = ::std::option::Option::Some(v); |
| 5045 | } |
| 5046 | |
| 5047 | // optional bool no_standard_descriptor_accessor = 2; |
| 5048 | |
| 5049 | |
| 5050 | pub fn get_no_standard_descriptor_accessor(&self) -> bool { |
| 5051 | self.no_standard_descriptor_accessor.unwrap_or(false) |
| 5052 | } |
| 5053 | pub fn clear_no_standard_descriptor_accessor(&mut self) { |
| 5054 | self.no_standard_descriptor_accessor = ::std::option::Option::None; |
| 5055 | } |
| 5056 | |
| 5057 | pub fn has_no_standard_descriptor_accessor(&self) -> bool { |
| 5058 | self.no_standard_descriptor_accessor.is_some() |
| 5059 | } |
| 5060 | |
| 5061 | // Param is passed by value, moved |
| 5062 | pub fn set_no_standard_descriptor_accessor(&mut self, v: bool) { |
| 5063 | self.no_standard_descriptor_accessor = ::std::option::Option::Some(v); |
| 5064 | } |
| 5065 | |
| 5066 | // optional bool deprecated = 3; |
| 5067 | |
| 5068 | |
| 5069 | pub fn get_deprecated(&self) -> bool { |
| 5070 | self.deprecated.unwrap_or(false) |
| 5071 | } |
| 5072 | pub fn clear_deprecated(&mut self) { |
| 5073 | self.deprecated = ::std::option::Option::None; |
| 5074 | } |
| 5075 | |
| 5076 | pub fn has_deprecated(&self) -> bool { |
| 5077 | self.deprecated.is_some() |
| 5078 | } |
| 5079 | |
| 5080 | // Param is passed by value, moved |
| 5081 | pub fn set_deprecated(&mut self, v: bool) { |
| 5082 | self.deprecated = ::std::option::Option::Some(v); |
| 5083 | } |
| 5084 | |
| 5085 | // optional bool map_entry = 7; |
| 5086 | |
| 5087 | |
| 5088 | pub fn get_map_entry(&self) -> bool { |
| 5089 | self.map_entry.unwrap_or(false) |
| 5090 | } |
| 5091 | pub fn clear_map_entry(&mut self) { |
| 5092 | self.map_entry = ::std::option::Option::None; |
| 5093 | } |
| 5094 | |
| 5095 | pub fn has_map_entry(&self) -> bool { |
| 5096 | self.map_entry.is_some() |
| 5097 | } |
| 5098 | |
| 5099 | // Param is passed by value, moved |
| 5100 | pub fn set_map_entry(&mut self, v: bool) { |
| 5101 | self.map_entry = ::std::option::Option::Some(v); |
| 5102 | } |
| 5103 | |
| 5104 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 5105 | |
| 5106 | |
| 5107 | pub fn get_uninterpreted_option(&self) -> &[UninterpretedOption] { |
| 5108 | &self.uninterpreted_option |
| 5109 | } |
| 5110 | pub fn clear_uninterpreted_option(&mut self) { |
| 5111 | self.uninterpreted_option.clear(); |
| 5112 | } |
| 5113 | |
| 5114 | // Param is passed by value, moved |
| 5115 | pub fn set_uninterpreted_option(&mut self, v: ::protobuf::RepeatedField<UninterpretedOption>) { |
| 5116 | self.uninterpreted_option = v; |
| 5117 | } |
| 5118 | |
| 5119 | // Mutable pointer to the field. |
| 5120 | pub fn mut_uninterpreted_option(&mut self) -> &mut ::protobuf::RepeatedField<UninterpretedOption> { |
| 5121 | &mut self.uninterpreted_option |
| 5122 | } |
| 5123 | |
| 5124 | // Take field |
| 5125 | pub fn take_uninterpreted_option(&mut self) -> ::protobuf::RepeatedField<UninterpretedOption> { |
| 5126 | ::std::mem::replace(&mut self.uninterpreted_option, ::protobuf::RepeatedField::new()) |
| 5127 | } |
| 5128 | } |
| 5129 | |
| 5130 | impl ::protobuf::Message for MessageOptions { |
| 5131 | fn is_initialized(&self) -> bool { |
| 5132 | for v in &self.uninterpreted_option { |
| 5133 | if !v.is_initialized() { |
| 5134 | return false; |
| 5135 | } |
| 5136 | }; |
| 5137 | true |
| 5138 | } |
| 5139 | |
| 5140 | fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 5141 | while !is.eof()? { |
| 5142 | let (field_number, wire_type) = is.read_tag_unpack()?; |
| 5143 | match field_number { |
| 5144 | 1 => { |
| 5145 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 5146 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 5147 | } |
| 5148 | let tmp = is.read_bool()?; |
| 5149 | self.message_set_wire_format = ::std::option::Option::Some(tmp); |
| 5150 | }, |
| 5151 | 2 => { |
| 5152 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 5153 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 5154 | } |
| 5155 | let tmp = is.read_bool()?; |
| 5156 | self.no_standard_descriptor_accessor = ::std::option::Option::Some(tmp); |
| 5157 | }, |
| 5158 | 3 => { |
| 5159 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 5160 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 5161 | } |
| 5162 | let tmp = is.read_bool()?; |
| 5163 | self.deprecated = ::std::option::Option::Some(tmp); |
| 5164 | }, |
| 5165 | 7 => { |
| 5166 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 5167 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 5168 | } |
| 5169 | let tmp = is.read_bool()?; |
| 5170 | self.map_entry = ::std::option::Option::Some(tmp); |
| 5171 | }, |
| 5172 | 999 => { |
| 5173 | ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.uninterpreted_option)?; |
| 5174 | }, |
| 5175 | _ => { |
| 5176 | ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| 5177 | }, |
| 5178 | }; |
| 5179 | } |
| 5180 | ::std::result::Result::Ok(()) |
| 5181 | } |
| 5182 | |
| 5183 | // Compute sizes of nested messages |
| 5184 | #[allow(unused_variables)] |
| 5185 | fn compute_size(&self) -> u32 { |
| 5186 | let mut my_size = 0; |
| 5187 | if let Some(v) = self.message_set_wire_format { |
| 5188 | my_size += 2; |
| 5189 | } |
| 5190 | if let Some(v) = self.no_standard_descriptor_accessor { |
| 5191 | my_size += 2; |
| 5192 | } |
| 5193 | if let Some(v) = self.deprecated { |
| 5194 | my_size += 2; |
| 5195 | } |
| 5196 | if let Some(v) = self.map_entry { |
| 5197 | my_size += 2; |
| 5198 | } |
| 5199 | for value in &self.uninterpreted_option { |
| 5200 | let len = value.compute_size(); |
| 5201 | my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 5202 | }; |
| 5203 | my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); |
| 5204 | self.cached_size.set(my_size); |
| 5205 | my_size |
| 5206 | } |
| 5207 | |
| 5208 | fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 5209 | if let Some(v) = self.message_set_wire_format { |
| 5210 | os.write_bool(1, v)?; |
| 5211 | } |
| 5212 | if let Some(v) = self.no_standard_descriptor_accessor { |
| 5213 | os.write_bool(2, v)?; |
| 5214 | } |
| 5215 | if let Some(v) = self.deprecated { |
| 5216 | os.write_bool(3, v)?; |
| 5217 | } |
| 5218 | if let Some(v) = self.map_entry { |
| 5219 | os.write_bool(7, v)?; |
| 5220 | } |
| 5221 | for v in &self.uninterpreted_option { |
| 5222 | os.write_tag(999, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 5223 | os.write_raw_varint32(v.get_cached_size())?; |
| 5224 | v.write_to_with_cached_sizes(os)?; |
| 5225 | }; |
| 5226 | os.write_unknown_fields(self.get_unknown_fields())?; |
| 5227 | ::std::result::Result::Ok(()) |
| 5228 | } |
| 5229 | |
| 5230 | fn get_cached_size(&self) -> u32 { |
| 5231 | self.cached_size.get() |
| 5232 | } |
| 5233 | |
| 5234 | fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { |
| 5235 | &self.unknown_fields |
| 5236 | } |
| 5237 | |
| 5238 | fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { |
| 5239 | &mut self.unknown_fields |
| 5240 | } |
| 5241 | |
| 5242 | fn as_any(&self) -> &dyn (::std::any::Any) { |
| 5243 | self as &dyn (::std::any::Any) |
| 5244 | } |
| 5245 | fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| 5246 | self as &mut dyn (::std::any::Any) |
| 5247 | } |
| 5248 | fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| 5249 | self |
| 5250 | } |
| 5251 | |
| 5252 | fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { |
| 5253 | Self::descriptor_static() |
| 5254 | } |
| 5255 | |
| 5256 | fn new() -> MessageOptions { |
| 5257 | MessageOptions::new() |
| 5258 | } |
| 5259 | |
| 5260 | fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { |
| 5261 | static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; |
| 5262 | unsafe { |
| 5263 | descriptor.get(|| { |
| 5264 | let mut fields = ::std::vec::Vec::new(); |
| 5265 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>( |
| 5266 | "message_set_wire_format", |
| 5267 | |m: &MessageOptions| { &m.message_set_wire_format }, |
| 5268 | |m: &mut MessageOptions| { &mut m.message_set_wire_format }, |
| 5269 | )); |
| 5270 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>( |
| 5271 | "no_standard_descriptor_accessor", |
| 5272 | |m: &MessageOptions| { &m.no_standard_descriptor_accessor }, |
| 5273 | |m: &mut MessageOptions| { &mut m.no_standard_descriptor_accessor }, |
| 5274 | )); |
| 5275 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>( |
| 5276 | "deprecated", |
| 5277 | |m: &MessageOptions| { &m.deprecated }, |
| 5278 | |m: &mut MessageOptions| { &mut m.deprecated }, |
| 5279 | )); |
| 5280 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>( |
| 5281 | "map_entry", |
| 5282 | |m: &MessageOptions| { &m.map_entry }, |
| 5283 | |m: &mut MessageOptions| { &mut m.map_entry }, |
| 5284 | )); |
| 5285 | fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<UninterpretedOption>>( |
| 5286 | "uninterpreted_option", |
| 5287 | |m: &MessageOptions| { &m.uninterpreted_option }, |
| 5288 | |m: &mut MessageOptions| { &mut m.uninterpreted_option }, |
| 5289 | )); |
| 5290 | ::protobuf::reflect::MessageDescriptor::new_pb_name::<MessageOptions>( |
| 5291 | "MessageOptions", |
| 5292 | fields, |
| 5293 | file_descriptor_proto() |
| 5294 | ) |
| 5295 | }) |
| 5296 | } |
| 5297 | } |
| 5298 | |
| 5299 | fn default_instance() -> &'static MessageOptions { |
| 5300 | static mut instance: ::protobuf::lazy::Lazy<MessageOptions> = ::protobuf::lazy::Lazy::INIT; |
| 5301 | unsafe { |
| 5302 | instance.get(MessageOptions::new) |
| 5303 | } |
| 5304 | } |
| 5305 | } |
| 5306 | |
| 5307 | impl ::protobuf::Clear for MessageOptions { |
| 5308 | fn clear(&mut self) { |
| 5309 | self.message_set_wire_format = ::std::option::Option::None; |
| 5310 | self.no_standard_descriptor_accessor = ::std::option::Option::None; |
| 5311 | self.deprecated = ::std::option::Option::None; |
| 5312 | self.map_entry = ::std::option::Option::None; |
| 5313 | self.uninterpreted_option.clear(); |
| 5314 | self.unknown_fields.clear(); |
| 5315 | } |
| 5316 | } |
| 5317 | |
| 5318 | impl ::std::fmt::Debug for MessageOptions { |
| 5319 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| 5320 | ::protobuf::text_format::fmt(self, f) |
| 5321 | } |
| 5322 | } |
| 5323 | |
| 5324 | impl ::protobuf::reflect::ProtobufValue for MessageOptions { |
| 5325 | fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { |
| 5326 | ::protobuf::reflect::ReflectValueRef::Message(self) |
| 5327 | } |
| 5328 | } |
| 5329 | |
| 5330 | #[derive(PartialEq,Clone,Default)] |
| 5331 | #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))] |
| 5332 | pub struct FieldOptions { |
| 5333 | // message fields |
| 5334 | ctype: ::std::option::Option<FieldOptions_CType>, |
| 5335 | packed: ::std::option::Option<bool>, |
| 5336 | jstype: ::std::option::Option<FieldOptions_JSType>, |
| 5337 | lazy: ::std::option::Option<bool>, |
| 5338 | deprecated: ::std::option::Option<bool>, |
| 5339 | weak: ::std::option::Option<bool>, |
| 5340 | uninterpreted_option: ::protobuf::RepeatedField<UninterpretedOption>, |
| 5341 | // special fields |
| 5342 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 5343 | pub unknown_fields: ::protobuf::UnknownFields, |
| 5344 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 5345 | pub cached_size: ::protobuf::CachedSize, |
| 5346 | } |
| 5347 | |
| 5348 | impl<'a> ::std::default::Default for &'a FieldOptions { |
| 5349 | fn default() -> &'a FieldOptions { |
| 5350 | <FieldOptions as ::protobuf::Message>::default_instance() |
| 5351 | } |
| 5352 | } |
| 5353 | |
| 5354 | impl FieldOptions { |
| 5355 | pub fn new() -> FieldOptions { |
| 5356 | ::std::default::Default::default() |
| 5357 | } |
| 5358 | |
| 5359 | // optional .google.protobuf.FieldOptions.CType ctype = 1; |
| 5360 | |
| 5361 | |
| 5362 | pub fn get_ctype(&self) -> FieldOptions_CType { |
| 5363 | self.ctype.unwrap_or(FieldOptions_CType::STRING) |
| 5364 | } |
| 5365 | pub fn clear_ctype(&mut self) { |
| 5366 | self.ctype = ::std::option::Option::None; |
| 5367 | } |
| 5368 | |
| 5369 | pub fn has_ctype(&self) -> bool { |
| 5370 | self.ctype.is_some() |
| 5371 | } |
| 5372 | |
| 5373 | // Param is passed by value, moved |
| 5374 | pub fn set_ctype(&mut self, v: FieldOptions_CType) { |
| 5375 | self.ctype = ::std::option::Option::Some(v); |
| 5376 | } |
| 5377 | |
| 5378 | // optional bool packed = 2; |
| 5379 | |
| 5380 | |
| 5381 | pub fn get_packed(&self) -> bool { |
| 5382 | self.packed.unwrap_or(false) |
| 5383 | } |
| 5384 | pub fn clear_packed(&mut self) { |
| 5385 | self.packed = ::std::option::Option::None; |
| 5386 | } |
| 5387 | |
| 5388 | pub fn has_packed(&self) -> bool { |
| 5389 | self.packed.is_some() |
| 5390 | } |
| 5391 | |
| 5392 | // Param is passed by value, moved |
| 5393 | pub fn set_packed(&mut self, v: bool) { |
| 5394 | self.packed = ::std::option::Option::Some(v); |
| 5395 | } |
| 5396 | |
| 5397 | // optional .google.protobuf.FieldOptions.JSType jstype = 6; |
| 5398 | |
| 5399 | |
| 5400 | pub fn get_jstype(&self) -> FieldOptions_JSType { |
| 5401 | self.jstype.unwrap_or(FieldOptions_JSType::JS_NORMAL) |
| 5402 | } |
| 5403 | pub fn clear_jstype(&mut self) { |
| 5404 | self.jstype = ::std::option::Option::None; |
| 5405 | } |
| 5406 | |
| 5407 | pub fn has_jstype(&self) -> bool { |
| 5408 | self.jstype.is_some() |
| 5409 | } |
| 5410 | |
| 5411 | // Param is passed by value, moved |
| 5412 | pub fn set_jstype(&mut self, v: FieldOptions_JSType) { |
| 5413 | self.jstype = ::std::option::Option::Some(v); |
| 5414 | } |
| 5415 | |
| 5416 | // optional bool lazy = 5; |
| 5417 | |
| 5418 | |
| 5419 | pub fn get_lazy(&self) -> bool { |
| 5420 | self.lazy.unwrap_or(false) |
| 5421 | } |
| 5422 | pub fn clear_lazy(&mut self) { |
| 5423 | self.lazy = ::std::option::Option::None; |
| 5424 | } |
| 5425 | |
| 5426 | pub fn has_lazy(&self) -> bool { |
| 5427 | self.lazy.is_some() |
| 5428 | } |
| 5429 | |
| 5430 | // Param is passed by value, moved |
| 5431 | pub fn set_lazy(&mut self, v: bool) { |
| 5432 | self.lazy = ::std::option::Option::Some(v); |
| 5433 | } |
| 5434 | |
| 5435 | // optional bool deprecated = 3; |
| 5436 | |
| 5437 | |
| 5438 | pub fn get_deprecated(&self) -> bool { |
| 5439 | self.deprecated.unwrap_or(false) |
| 5440 | } |
| 5441 | pub fn clear_deprecated(&mut self) { |
| 5442 | self.deprecated = ::std::option::Option::None; |
| 5443 | } |
| 5444 | |
| 5445 | pub fn has_deprecated(&self) -> bool { |
| 5446 | self.deprecated.is_some() |
| 5447 | } |
| 5448 | |
| 5449 | // Param is passed by value, moved |
| 5450 | pub fn set_deprecated(&mut self, v: bool) { |
| 5451 | self.deprecated = ::std::option::Option::Some(v); |
| 5452 | } |
| 5453 | |
| 5454 | // optional bool weak = 10; |
| 5455 | |
| 5456 | |
| 5457 | pub fn get_weak(&self) -> bool { |
| 5458 | self.weak.unwrap_or(false) |
| 5459 | } |
| 5460 | pub fn clear_weak(&mut self) { |
| 5461 | self.weak = ::std::option::Option::None; |
| 5462 | } |
| 5463 | |
| 5464 | pub fn has_weak(&self) -> bool { |
| 5465 | self.weak.is_some() |
| 5466 | } |
| 5467 | |
| 5468 | // Param is passed by value, moved |
| 5469 | pub fn set_weak(&mut self, v: bool) { |
| 5470 | self.weak = ::std::option::Option::Some(v); |
| 5471 | } |
| 5472 | |
| 5473 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 5474 | |
| 5475 | |
| 5476 | pub fn get_uninterpreted_option(&self) -> &[UninterpretedOption] { |
| 5477 | &self.uninterpreted_option |
| 5478 | } |
| 5479 | pub fn clear_uninterpreted_option(&mut self) { |
| 5480 | self.uninterpreted_option.clear(); |
| 5481 | } |
| 5482 | |
| 5483 | // Param is passed by value, moved |
| 5484 | pub fn set_uninterpreted_option(&mut self, v: ::protobuf::RepeatedField<UninterpretedOption>) { |
| 5485 | self.uninterpreted_option = v; |
| 5486 | } |
| 5487 | |
| 5488 | // Mutable pointer to the field. |
| 5489 | pub fn mut_uninterpreted_option(&mut self) -> &mut ::protobuf::RepeatedField<UninterpretedOption> { |
| 5490 | &mut self.uninterpreted_option |
| 5491 | } |
| 5492 | |
| 5493 | // Take field |
| 5494 | pub fn take_uninterpreted_option(&mut self) -> ::protobuf::RepeatedField<UninterpretedOption> { |
| 5495 | ::std::mem::replace(&mut self.uninterpreted_option, ::protobuf::RepeatedField::new()) |
| 5496 | } |
| 5497 | } |
| 5498 | |
| 5499 | impl ::protobuf::Message for FieldOptions { |
| 5500 | fn is_initialized(&self) -> bool { |
| 5501 | for v in &self.uninterpreted_option { |
| 5502 | if !v.is_initialized() { |
| 5503 | return false; |
| 5504 | } |
| 5505 | }; |
| 5506 | true |
| 5507 | } |
| 5508 | |
| 5509 | fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 5510 | while !is.eof()? { |
| 5511 | let (field_number, wire_type) = is.read_tag_unpack()?; |
| 5512 | match field_number { |
| 5513 | 1 => { |
| 5514 | ::protobuf::rt::read_proto2_enum_with_unknown_fields_into(wire_type, is, &mut self.ctype, 1, &mut self.unknown_fields)? |
| 5515 | }, |
| 5516 | 2 => { |
| 5517 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 5518 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 5519 | } |
| 5520 | let tmp = is.read_bool()?; |
| 5521 | self.packed = ::std::option::Option::Some(tmp); |
| 5522 | }, |
| 5523 | 6 => { |
| 5524 | ::protobuf::rt::read_proto2_enum_with_unknown_fields_into(wire_type, is, &mut self.jstype, 6, &mut self.unknown_fields)? |
| 5525 | }, |
| 5526 | 5 => { |
| 5527 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 5528 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 5529 | } |
| 5530 | let tmp = is.read_bool()?; |
| 5531 | self.lazy = ::std::option::Option::Some(tmp); |
| 5532 | }, |
| 5533 | 3 => { |
| 5534 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 5535 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 5536 | } |
| 5537 | let tmp = is.read_bool()?; |
| 5538 | self.deprecated = ::std::option::Option::Some(tmp); |
| 5539 | }, |
| 5540 | 10 => { |
| 5541 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 5542 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 5543 | } |
| 5544 | let tmp = is.read_bool()?; |
| 5545 | self.weak = ::std::option::Option::Some(tmp); |
| 5546 | }, |
| 5547 | 999 => { |
| 5548 | ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.uninterpreted_option)?; |
| 5549 | }, |
| 5550 | _ => { |
| 5551 | ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| 5552 | }, |
| 5553 | }; |
| 5554 | } |
| 5555 | ::std::result::Result::Ok(()) |
| 5556 | } |
| 5557 | |
| 5558 | // Compute sizes of nested messages |
| 5559 | #[allow(unused_variables)] |
| 5560 | fn compute_size(&self) -> u32 { |
| 5561 | let mut my_size = 0; |
| 5562 | if let Some(v) = self.ctype { |
| 5563 | my_size += ::protobuf::rt::enum_size(1, v); |
| 5564 | } |
| 5565 | if let Some(v) = self.packed { |
| 5566 | my_size += 2; |
| 5567 | } |
| 5568 | if let Some(v) = self.jstype { |
| 5569 | my_size += ::protobuf::rt::enum_size(6, v); |
| 5570 | } |
| 5571 | if let Some(v) = self.lazy { |
| 5572 | my_size += 2; |
| 5573 | } |
| 5574 | if let Some(v) = self.deprecated { |
| 5575 | my_size += 2; |
| 5576 | } |
| 5577 | if let Some(v) = self.weak { |
| 5578 | my_size += 2; |
| 5579 | } |
| 5580 | for value in &self.uninterpreted_option { |
| 5581 | let len = value.compute_size(); |
| 5582 | my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 5583 | }; |
| 5584 | my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); |
| 5585 | self.cached_size.set(my_size); |
| 5586 | my_size |
| 5587 | } |
| 5588 | |
| 5589 | fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 5590 | if let Some(v) = self.ctype { |
| 5591 | os.write_enum(1, v.value())?; |
| 5592 | } |
| 5593 | if let Some(v) = self.packed { |
| 5594 | os.write_bool(2, v)?; |
| 5595 | } |
| 5596 | if let Some(v) = self.jstype { |
| 5597 | os.write_enum(6, v.value())?; |
| 5598 | } |
| 5599 | if let Some(v) = self.lazy { |
| 5600 | os.write_bool(5, v)?; |
| 5601 | } |
| 5602 | if let Some(v) = self.deprecated { |
| 5603 | os.write_bool(3, v)?; |
| 5604 | } |
| 5605 | if let Some(v) = self.weak { |
| 5606 | os.write_bool(10, v)?; |
| 5607 | } |
| 5608 | for v in &self.uninterpreted_option { |
| 5609 | os.write_tag(999, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 5610 | os.write_raw_varint32(v.get_cached_size())?; |
| 5611 | v.write_to_with_cached_sizes(os)?; |
| 5612 | }; |
| 5613 | os.write_unknown_fields(self.get_unknown_fields())?; |
| 5614 | ::std::result::Result::Ok(()) |
| 5615 | } |
| 5616 | |
| 5617 | fn get_cached_size(&self) -> u32 { |
| 5618 | self.cached_size.get() |
| 5619 | } |
| 5620 | |
| 5621 | fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { |
| 5622 | &self.unknown_fields |
| 5623 | } |
| 5624 | |
| 5625 | fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { |
| 5626 | &mut self.unknown_fields |
| 5627 | } |
| 5628 | |
| 5629 | fn as_any(&self) -> &dyn (::std::any::Any) { |
| 5630 | self as &dyn (::std::any::Any) |
| 5631 | } |
| 5632 | fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| 5633 | self as &mut dyn (::std::any::Any) |
| 5634 | } |
| 5635 | fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| 5636 | self |
| 5637 | } |
| 5638 | |
| 5639 | fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { |
| 5640 | Self::descriptor_static() |
| 5641 | } |
| 5642 | |
| 5643 | fn new() -> FieldOptions { |
| 5644 | FieldOptions::new() |
| 5645 | } |
| 5646 | |
| 5647 | fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { |
| 5648 | static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; |
| 5649 | unsafe { |
| 5650 | descriptor.get(|| { |
| 5651 | let mut fields = ::std::vec::Vec::new(); |
| 5652 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<FieldOptions_CType>>( |
| 5653 | "ctype", |
| 5654 | |m: &FieldOptions| { &m.ctype }, |
| 5655 | |m: &mut FieldOptions| { &mut m.ctype }, |
| 5656 | )); |
| 5657 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>( |
| 5658 | "packed", |
| 5659 | |m: &FieldOptions| { &m.packed }, |
| 5660 | |m: &mut FieldOptions| { &mut m.packed }, |
| 5661 | )); |
| 5662 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<FieldOptions_JSType>>( |
| 5663 | "jstype", |
| 5664 | |m: &FieldOptions| { &m.jstype }, |
| 5665 | |m: &mut FieldOptions| { &mut m.jstype }, |
| 5666 | )); |
| 5667 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>( |
| 5668 | "lazy", |
| 5669 | |m: &FieldOptions| { &m.lazy }, |
| 5670 | |m: &mut FieldOptions| { &mut m.lazy }, |
| 5671 | )); |
| 5672 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>( |
| 5673 | "deprecated", |
| 5674 | |m: &FieldOptions| { &m.deprecated }, |
| 5675 | |m: &mut FieldOptions| { &mut m.deprecated }, |
| 5676 | )); |
| 5677 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>( |
| 5678 | "weak", |
| 5679 | |m: &FieldOptions| { &m.weak }, |
| 5680 | |m: &mut FieldOptions| { &mut m.weak }, |
| 5681 | )); |
| 5682 | fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<UninterpretedOption>>( |
| 5683 | "uninterpreted_option", |
| 5684 | |m: &FieldOptions| { &m.uninterpreted_option }, |
| 5685 | |m: &mut FieldOptions| { &mut m.uninterpreted_option }, |
| 5686 | )); |
| 5687 | ::protobuf::reflect::MessageDescriptor::new_pb_name::<FieldOptions>( |
| 5688 | "FieldOptions", |
| 5689 | fields, |
| 5690 | file_descriptor_proto() |
| 5691 | ) |
| 5692 | }) |
| 5693 | } |
| 5694 | } |
| 5695 | |
| 5696 | fn default_instance() -> &'static FieldOptions { |
| 5697 | static mut instance: ::protobuf::lazy::Lazy<FieldOptions> = ::protobuf::lazy::Lazy::INIT; |
| 5698 | unsafe { |
| 5699 | instance.get(FieldOptions::new) |
| 5700 | } |
| 5701 | } |
| 5702 | } |
| 5703 | |
| 5704 | impl ::protobuf::Clear for FieldOptions { |
| 5705 | fn clear(&mut self) { |
| 5706 | self.ctype = ::std::option::Option::None; |
| 5707 | self.packed = ::std::option::Option::None; |
| 5708 | self.jstype = ::std::option::Option::None; |
| 5709 | self.lazy = ::std::option::Option::None; |
| 5710 | self.deprecated = ::std::option::Option::None; |
| 5711 | self.weak = ::std::option::Option::None; |
| 5712 | self.uninterpreted_option.clear(); |
| 5713 | self.unknown_fields.clear(); |
| 5714 | } |
| 5715 | } |
| 5716 | |
| 5717 | impl ::std::fmt::Debug for FieldOptions { |
| 5718 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| 5719 | ::protobuf::text_format::fmt(self, f) |
| 5720 | } |
| 5721 | } |
| 5722 | |
| 5723 | impl ::protobuf::reflect::ProtobufValue for FieldOptions { |
| 5724 | fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { |
| 5725 | ::protobuf::reflect::ReflectValueRef::Message(self) |
| 5726 | } |
| 5727 | } |
| 5728 | |
| 5729 | #[derive(Clone,PartialEq,Eq,Debug,Hash)] |
| 5730 | #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))] |
| 5731 | pub enum FieldOptions_CType { |
| 5732 | STRING = 0, |
| 5733 | CORD = 1, |
| 5734 | STRING_PIECE = 2, |
| 5735 | } |
| 5736 | |
| 5737 | impl ::protobuf::ProtobufEnum for FieldOptions_CType { |
| 5738 | fn value(&self) -> i32 { |
| 5739 | *self as i32 |
| 5740 | } |
| 5741 | |
| 5742 | fn from_i32(value: i32) -> ::std::option::Option<FieldOptions_CType> { |
| 5743 | match value { |
| 5744 | 0 => ::std::option::Option::Some(FieldOptions_CType::STRING), |
| 5745 | 1 => ::std::option::Option::Some(FieldOptions_CType::CORD), |
| 5746 | 2 => ::std::option::Option::Some(FieldOptions_CType::STRING_PIECE), |
| 5747 | _ => ::std::option::Option::None |
| 5748 | } |
| 5749 | } |
| 5750 | |
| 5751 | fn values() -> &'static [Self] { |
| 5752 | static values: &'static [FieldOptions_CType] = &[ |
| 5753 | FieldOptions_CType::STRING, |
| 5754 | FieldOptions_CType::CORD, |
| 5755 | FieldOptions_CType::STRING_PIECE, |
| 5756 | ]; |
| 5757 | values |
| 5758 | } |
| 5759 | |
| 5760 | fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { |
| 5761 | static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy::INIT; |
| 5762 | unsafe { |
| 5763 | descriptor.get(|| { |
| 5764 | ::protobuf::reflect::EnumDescriptor::new_pb_name::<FieldOptions_CType>("FieldOptions.CType", file_descriptor_proto()) |
| 5765 | }) |
| 5766 | } |
| 5767 | } |
| 5768 | } |
| 5769 | |
| 5770 | impl ::std::marker::Copy for FieldOptions_CType { |
| 5771 | } |
| 5772 | |
| 5773 | impl ::std::default::Default for FieldOptions_CType { |
| 5774 | fn default() -> Self { |
| 5775 | FieldOptions_CType::STRING |
| 5776 | } |
| 5777 | } |
| 5778 | |
| 5779 | impl ::protobuf::reflect::ProtobufValue for FieldOptions_CType { |
| 5780 | fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { |
| 5781 | ::protobuf::reflect::ReflectValueRef::Enum(self.descriptor()) |
| 5782 | } |
| 5783 | } |
| 5784 | |
| 5785 | #[derive(Clone,PartialEq,Eq,Debug,Hash)] |
| 5786 | #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))] |
| 5787 | pub enum FieldOptions_JSType { |
| 5788 | JS_NORMAL = 0, |
| 5789 | JS_STRING = 1, |
| 5790 | JS_NUMBER = 2, |
| 5791 | } |
| 5792 | |
| 5793 | impl ::protobuf::ProtobufEnum for FieldOptions_JSType { |
| 5794 | fn value(&self) -> i32 { |
| 5795 | *self as i32 |
| 5796 | } |
| 5797 | |
| 5798 | fn from_i32(value: i32) -> ::std::option::Option<FieldOptions_JSType> { |
| 5799 | match value { |
| 5800 | 0 => ::std::option::Option::Some(FieldOptions_JSType::JS_NORMAL), |
| 5801 | 1 => ::std::option::Option::Some(FieldOptions_JSType::JS_STRING), |
| 5802 | 2 => ::std::option::Option::Some(FieldOptions_JSType::JS_NUMBER), |
| 5803 | _ => ::std::option::Option::None |
| 5804 | } |
| 5805 | } |
| 5806 | |
| 5807 | fn values() -> &'static [Self] { |
| 5808 | static values: &'static [FieldOptions_JSType] = &[ |
| 5809 | FieldOptions_JSType::JS_NORMAL, |
| 5810 | FieldOptions_JSType::JS_STRING, |
| 5811 | FieldOptions_JSType::JS_NUMBER, |
| 5812 | ]; |
| 5813 | values |
| 5814 | } |
| 5815 | |
| 5816 | fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { |
| 5817 | static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy::INIT; |
| 5818 | unsafe { |
| 5819 | descriptor.get(|| { |
| 5820 | ::protobuf::reflect::EnumDescriptor::new_pb_name::<FieldOptions_JSType>("FieldOptions.JSType", file_descriptor_proto()) |
| 5821 | }) |
| 5822 | } |
| 5823 | } |
| 5824 | } |
| 5825 | |
| 5826 | impl ::std::marker::Copy for FieldOptions_JSType { |
| 5827 | } |
| 5828 | |
| 5829 | impl ::std::default::Default for FieldOptions_JSType { |
| 5830 | fn default() -> Self { |
| 5831 | FieldOptions_JSType::JS_NORMAL |
| 5832 | } |
| 5833 | } |
| 5834 | |
| 5835 | impl ::protobuf::reflect::ProtobufValue for FieldOptions_JSType { |
| 5836 | fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { |
| 5837 | ::protobuf::reflect::ReflectValueRef::Enum(self.descriptor()) |
| 5838 | } |
| 5839 | } |
| 5840 | |
| 5841 | #[derive(PartialEq,Clone,Default)] |
| 5842 | #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))] |
| 5843 | pub struct OneofOptions { |
| 5844 | // message fields |
| 5845 | uninterpreted_option: ::protobuf::RepeatedField<UninterpretedOption>, |
| 5846 | // special fields |
| 5847 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 5848 | pub unknown_fields: ::protobuf::UnknownFields, |
| 5849 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 5850 | pub cached_size: ::protobuf::CachedSize, |
| 5851 | } |
| 5852 | |
| 5853 | impl<'a> ::std::default::Default for &'a OneofOptions { |
| 5854 | fn default() -> &'a OneofOptions { |
| 5855 | <OneofOptions as ::protobuf::Message>::default_instance() |
| 5856 | } |
| 5857 | } |
| 5858 | |
| 5859 | impl OneofOptions { |
| 5860 | pub fn new() -> OneofOptions { |
| 5861 | ::std::default::Default::default() |
| 5862 | } |
| 5863 | |
| 5864 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 5865 | |
| 5866 | |
| 5867 | pub fn get_uninterpreted_option(&self) -> &[UninterpretedOption] { |
| 5868 | &self.uninterpreted_option |
| 5869 | } |
| 5870 | pub fn clear_uninterpreted_option(&mut self) { |
| 5871 | self.uninterpreted_option.clear(); |
| 5872 | } |
| 5873 | |
| 5874 | // Param is passed by value, moved |
| 5875 | pub fn set_uninterpreted_option(&mut self, v: ::protobuf::RepeatedField<UninterpretedOption>) { |
| 5876 | self.uninterpreted_option = v; |
| 5877 | } |
| 5878 | |
| 5879 | // Mutable pointer to the field. |
| 5880 | pub fn mut_uninterpreted_option(&mut self) -> &mut ::protobuf::RepeatedField<UninterpretedOption> { |
| 5881 | &mut self.uninterpreted_option |
| 5882 | } |
| 5883 | |
| 5884 | // Take field |
| 5885 | pub fn take_uninterpreted_option(&mut self) -> ::protobuf::RepeatedField<UninterpretedOption> { |
| 5886 | ::std::mem::replace(&mut self.uninterpreted_option, ::protobuf::RepeatedField::new()) |
| 5887 | } |
| 5888 | } |
| 5889 | |
| 5890 | impl ::protobuf::Message for OneofOptions { |
| 5891 | fn is_initialized(&self) -> bool { |
| 5892 | for v in &self.uninterpreted_option { |
| 5893 | if !v.is_initialized() { |
| 5894 | return false; |
| 5895 | } |
| 5896 | }; |
| 5897 | true |
| 5898 | } |
| 5899 | |
| 5900 | fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 5901 | while !is.eof()? { |
| 5902 | let (field_number, wire_type) = is.read_tag_unpack()?; |
| 5903 | match field_number { |
| 5904 | 999 => { |
| 5905 | ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.uninterpreted_option)?; |
| 5906 | }, |
| 5907 | _ => { |
| 5908 | ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| 5909 | }, |
| 5910 | }; |
| 5911 | } |
| 5912 | ::std::result::Result::Ok(()) |
| 5913 | } |
| 5914 | |
| 5915 | // Compute sizes of nested messages |
| 5916 | #[allow(unused_variables)] |
| 5917 | fn compute_size(&self) -> u32 { |
| 5918 | let mut my_size = 0; |
| 5919 | for value in &self.uninterpreted_option { |
| 5920 | let len = value.compute_size(); |
| 5921 | my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 5922 | }; |
| 5923 | my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); |
| 5924 | self.cached_size.set(my_size); |
| 5925 | my_size |
| 5926 | } |
| 5927 | |
| 5928 | fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 5929 | for v in &self.uninterpreted_option { |
| 5930 | os.write_tag(999, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 5931 | os.write_raw_varint32(v.get_cached_size())?; |
| 5932 | v.write_to_with_cached_sizes(os)?; |
| 5933 | }; |
| 5934 | os.write_unknown_fields(self.get_unknown_fields())?; |
| 5935 | ::std::result::Result::Ok(()) |
| 5936 | } |
| 5937 | |
| 5938 | fn get_cached_size(&self) -> u32 { |
| 5939 | self.cached_size.get() |
| 5940 | } |
| 5941 | |
| 5942 | fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { |
| 5943 | &self.unknown_fields |
| 5944 | } |
| 5945 | |
| 5946 | fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { |
| 5947 | &mut self.unknown_fields |
| 5948 | } |
| 5949 | |
| 5950 | fn as_any(&self) -> &dyn (::std::any::Any) { |
| 5951 | self as &dyn (::std::any::Any) |
| 5952 | } |
| 5953 | fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| 5954 | self as &mut dyn (::std::any::Any) |
| 5955 | } |
| 5956 | fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| 5957 | self |
| 5958 | } |
| 5959 | |
| 5960 | fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { |
| 5961 | Self::descriptor_static() |
| 5962 | } |
| 5963 | |
| 5964 | fn new() -> OneofOptions { |
| 5965 | OneofOptions::new() |
| 5966 | } |
| 5967 | |
| 5968 | fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { |
| 5969 | static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; |
| 5970 | unsafe { |
| 5971 | descriptor.get(|| { |
| 5972 | let mut fields = ::std::vec::Vec::new(); |
| 5973 | fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<UninterpretedOption>>( |
| 5974 | "uninterpreted_option", |
| 5975 | |m: &OneofOptions| { &m.uninterpreted_option }, |
| 5976 | |m: &mut OneofOptions| { &mut m.uninterpreted_option }, |
| 5977 | )); |
| 5978 | ::protobuf::reflect::MessageDescriptor::new_pb_name::<OneofOptions>( |
| 5979 | "OneofOptions", |
| 5980 | fields, |
| 5981 | file_descriptor_proto() |
| 5982 | ) |
| 5983 | }) |
| 5984 | } |
| 5985 | } |
| 5986 | |
| 5987 | fn default_instance() -> &'static OneofOptions { |
| 5988 | static mut instance: ::protobuf::lazy::Lazy<OneofOptions> = ::protobuf::lazy::Lazy::INIT; |
| 5989 | unsafe { |
| 5990 | instance.get(OneofOptions::new) |
| 5991 | } |
| 5992 | } |
| 5993 | } |
| 5994 | |
| 5995 | impl ::protobuf::Clear for OneofOptions { |
| 5996 | fn clear(&mut self) { |
| 5997 | self.uninterpreted_option.clear(); |
| 5998 | self.unknown_fields.clear(); |
| 5999 | } |
| 6000 | } |
| 6001 | |
| 6002 | impl ::std::fmt::Debug for OneofOptions { |
| 6003 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| 6004 | ::protobuf::text_format::fmt(self, f) |
| 6005 | } |
| 6006 | } |
| 6007 | |
| 6008 | impl ::protobuf::reflect::ProtobufValue for OneofOptions { |
| 6009 | fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { |
| 6010 | ::protobuf::reflect::ReflectValueRef::Message(self) |
| 6011 | } |
| 6012 | } |
| 6013 | |
| 6014 | #[derive(PartialEq,Clone,Default)] |
| 6015 | #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))] |
| 6016 | pub struct EnumOptions { |
| 6017 | // message fields |
| 6018 | allow_alias: ::std::option::Option<bool>, |
| 6019 | deprecated: ::std::option::Option<bool>, |
| 6020 | uninterpreted_option: ::protobuf::RepeatedField<UninterpretedOption>, |
| 6021 | // special fields |
| 6022 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 6023 | pub unknown_fields: ::protobuf::UnknownFields, |
| 6024 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 6025 | pub cached_size: ::protobuf::CachedSize, |
| 6026 | } |
| 6027 | |
| 6028 | impl<'a> ::std::default::Default for &'a EnumOptions { |
| 6029 | fn default() -> &'a EnumOptions { |
| 6030 | <EnumOptions as ::protobuf::Message>::default_instance() |
| 6031 | } |
| 6032 | } |
| 6033 | |
| 6034 | impl EnumOptions { |
| 6035 | pub fn new() -> EnumOptions { |
| 6036 | ::std::default::Default::default() |
| 6037 | } |
| 6038 | |
| 6039 | // optional bool allow_alias = 2; |
| 6040 | |
| 6041 | |
| 6042 | pub fn get_allow_alias(&self) -> bool { |
| 6043 | self.allow_alias.unwrap_or(false) |
| 6044 | } |
| 6045 | pub fn clear_allow_alias(&mut self) { |
| 6046 | self.allow_alias = ::std::option::Option::None; |
| 6047 | } |
| 6048 | |
| 6049 | pub fn has_allow_alias(&self) -> bool { |
| 6050 | self.allow_alias.is_some() |
| 6051 | } |
| 6052 | |
| 6053 | // Param is passed by value, moved |
| 6054 | pub fn set_allow_alias(&mut self, v: bool) { |
| 6055 | self.allow_alias = ::std::option::Option::Some(v); |
| 6056 | } |
| 6057 | |
| 6058 | // optional bool deprecated = 3; |
| 6059 | |
| 6060 | |
| 6061 | pub fn get_deprecated(&self) -> bool { |
| 6062 | self.deprecated.unwrap_or(false) |
| 6063 | } |
| 6064 | pub fn clear_deprecated(&mut self) { |
| 6065 | self.deprecated = ::std::option::Option::None; |
| 6066 | } |
| 6067 | |
| 6068 | pub fn has_deprecated(&self) -> bool { |
| 6069 | self.deprecated.is_some() |
| 6070 | } |
| 6071 | |
| 6072 | // Param is passed by value, moved |
| 6073 | pub fn set_deprecated(&mut self, v: bool) { |
| 6074 | self.deprecated = ::std::option::Option::Some(v); |
| 6075 | } |
| 6076 | |
| 6077 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 6078 | |
| 6079 | |
| 6080 | pub fn get_uninterpreted_option(&self) -> &[UninterpretedOption] { |
| 6081 | &self.uninterpreted_option |
| 6082 | } |
| 6083 | pub fn clear_uninterpreted_option(&mut self) { |
| 6084 | self.uninterpreted_option.clear(); |
| 6085 | } |
| 6086 | |
| 6087 | // Param is passed by value, moved |
| 6088 | pub fn set_uninterpreted_option(&mut self, v: ::protobuf::RepeatedField<UninterpretedOption>) { |
| 6089 | self.uninterpreted_option = v; |
| 6090 | } |
| 6091 | |
| 6092 | // Mutable pointer to the field. |
| 6093 | pub fn mut_uninterpreted_option(&mut self) -> &mut ::protobuf::RepeatedField<UninterpretedOption> { |
| 6094 | &mut self.uninterpreted_option |
| 6095 | } |
| 6096 | |
| 6097 | // Take field |
| 6098 | pub fn take_uninterpreted_option(&mut self) -> ::protobuf::RepeatedField<UninterpretedOption> { |
| 6099 | ::std::mem::replace(&mut self.uninterpreted_option, ::protobuf::RepeatedField::new()) |
| 6100 | } |
| 6101 | } |
| 6102 | |
| 6103 | impl ::protobuf::Message for EnumOptions { |
| 6104 | fn is_initialized(&self) -> bool { |
| 6105 | for v in &self.uninterpreted_option { |
| 6106 | if !v.is_initialized() { |
| 6107 | return false; |
| 6108 | } |
| 6109 | }; |
| 6110 | true |
| 6111 | } |
| 6112 | |
| 6113 | fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 6114 | while !is.eof()? { |
| 6115 | let (field_number, wire_type) = is.read_tag_unpack()?; |
| 6116 | match field_number { |
| 6117 | 2 => { |
| 6118 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 6119 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 6120 | } |
| 6121 | let tmp = is.read_bool()?; |
| 6122 | self.allow_alias = ::std::option::Option::Some(tmp); |
| 6123 | }, |
| 6124 | 3 => { |
| 6125 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 6126 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 6127 | } |
| 6128 | let tmp = is.read_bool()?; |
| 6129 | self.deprecated = ::std::option::Option::Some(tmp); |
| 6130 | }, |
| 6131 | 999 => { |
| 6132 | ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.uninterpreted_option)?; |
| 6133 | }, |
| 6134 | _ => { |
| 6135 | ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| 6136 | }, |
| 6137 | }; |
| 6138 | } |
| 6139 | ::std::result::Result::Ok(()) |
| 6140 | } |
| 6141 | |
| 6142 | // Compute sizes of nested messages |
| 6143 | #[allow(unused_variables)] |
| 6144 | fn compute_size(&self) -> u32 { |
| 6145 | let mut my_size = 0; |
| 6146 | if let Some(v) = self.allow_alias { |
| 6147 | my_size += 2; |
| 6148 | } |
| 6149 | if let Some(v) = self.deprecated { |
| 6150 | my_size += 2; |
| 6151 | } |
| 6152 | for value in &self.uninterpreted_option { |
| 6153 | let len = value.compute_size(); |
| 6154 | my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 6155 | }; |
| 6156 | my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); |
| 6157 | self.cached_size.set(my_size); |
| 6158 | my_size |
| 6159 | } |
| 6160 | |
| 6161 | fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 6162 | if let Some(v) = self.allow_alias { |
| 6163 | os.write_bool(2, v)?; |
| 6164 | } |
| 6165 | if let Some(v) = self.deprecated { |
| 6166 | os.write_bool(3, v)?; |
| 6167 | } |
| 6168 | for v in &self.uninterpreted_option { |
| 6169 | os.write_tag(999, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 6170 | os.write_raw_varint32(v.get_cached_size())?; |
| 6171 | v.write_to_with_cached_sizes(os)?; |
| 6172 | }; |
| 6173 | os.write_unknown_fields(self.get_unknown_fields())?; |
| 6174 | ::std::result::Result::Ok(()) |
| 6175 | } |
| 6176 | |
| 6177 | fn get_cached_size(&self) -> u32 { |
| 6178 | self.cached_size.get() |
| 6179 | } |
| 6180 | |
| 6181 | fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { |
| 6182 | &self.unknown_fields |
| 6183 | } |
| 6184 | |
| 6185 | fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { |
| 6186 | &mut self.unknown_fields |
| 6187 | } |
| 6188 | |
| 6189 | fn as_any(&self) -> &dyn (::std::any::Any) { |
| 6190 | self as &dyn (::std::any::Any) |
| 6191 | } |
| 6192 | fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| 6193 | self as &mut dyn (::std::any::Any) |
| 6194 | } |
| 6195 | fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| 6196 | self |
| 6197 | } |
| 6198 | |
| 6199 | fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { |
| 6200 | Self::descriptor_static() |
| 6201 | } |
| 6202 | |
| 6203 | fn new() -> EnumOptions { |
| 6204 | EnumOptions::new() |
| 6205 | } |
| 6206 | |
| 6207 | fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { |
| 6208 | static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; |
| 6209 | unsafe { |
| 6210 | descriptor.get(|| { |
| 6211 | let mut fields = ::std::vec::Vec::new(); |
| 6212 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>( |
| 6213 | "allow_alias", |
| 6214 | |m: &EnumOptions| { &m.allow_alias }, |
| 6215 | |m: &mut EnumOptions| { &mut m.allow_alias }, |
| 6216 | )); |
| 6217 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>( |
| 6218 | "deprecated", |
| 6219 | |m: &EnumOptions| { &m.deprecated }, |
| 6220 | |m: &mut EnumOptions| { &mut m.deprecated }, |
| 6221 | )); |
| 6222 | fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<UninterpretedOption>>( |
| 6223 | "uninterpreted_option", |
| 6224 | |m: &EnumOptions| { &m.uninterpreted_option }, |
| 6225 | |m: &mut EnumOptions| { &mut m.uninterpreted_option }, |
| 6226 | )); |
| 6227 | ::protobuf::reflect::MessageDescriptor::new_pb_name::<EnumOptions>( |
| 6228 | "EnumOptions", |
| 6229 | fields, |
| 6230 | file_descriptor_proto() |
| 6231 | ) |
| 6232 | }) |
| 6233 | } |
| 6234 | } |
| 6235 | |
| 6236 | fn default_instance() -> &'static EnumOptions { |
| 6237 | static mut instance: ::protobuf::lazy::Lazy<EnumOptions> = ::protobuf::lazy::Lazy::INIT; |
| 6238 | unsafe { |
| 6239 | instance.get(EnumOptions::new) |
| 6240 | } |
| 6241 | } |
| 6242 | } |
| 6243 | |
| 6244 | impl ::protobuf::Clear for EnumOptions { |
| 6245 | fn clear(&mut self) { |
| 6246 | self.allow_alias = ::std::option::Option::None; |
| 6247 | self.deprecated = ::std::option::Option::None; |
| 6248 | self.uninterpreted_option.clear(); |
| 6249 | self.unknown_fields.clear(); |
| 6250 | } |
| 6251 | } |
| 6252 | |
| 6253 | impl ::std::fmt::Debug for EnumOptions { |
| 6254 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| 6255 | ::protobuf::text_format::fmt(self, f) |
| 6256 | } |
| 6257 | } |
| 6258 | |
| 6259 | impl ::protobuf::reflect::ProtobufValue for EnumOptions { |
| 6260 | fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { |
| 6261 | ::protobuf::reflect::ReflectValueRef::Message(self) |
| 6262 | } |
| 6263 | } |
| 6264 | |
| 6265 | #[derive(PartialEq,Clone,Default)] |
| 6266 | #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))] |
| 6267 | pub struct EnumValueOptions { |
| 6268 | // message fields |
| 6269 | deprecated: ::std::option::Option<bool>, |
| 6270 | uninterpreted_option: ::protobuf::RepeatedField<UninterpretedOption>, |
| 6271 | // special fields |
| 6272 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 6273 | pub unknown_fields: ::protobuf::UnknownFields, |
| 6274 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 6275 | pub cached_size: ::protobuf::CachedSize, |
| 6276 | } |
| 6277 | |
| 6278 | impl<'a> ::std::default::Default for &'a EnumValueOptions { |
| 6279 | fn default() -> &'a EnumValueOptions { |
| 6280 | <EnumValueOptions as ::protobuf::Message>::default_instance() |
| 6281 | } |
| 6282 | } |
| 6283 | |
| 6284 | impl EnumValueOptions { |
| 6285 | pub fn new() -> EnumValueOptions { |
| 6286 | ::std::default::Default::default() |
| 6287 | } |
| 6288 | |
| 6289 | // optional bool deprecated = 1; |
| 6290 | |
| 6291 | |
| 6292 | pub fn get_deprecated(&self) -> bool { |
| 6293 | self.deprecated.unwrap_or(false) |
| 6294 | } |
| 6295 | pub fn clear_deprecated(&mut self) { |
| 6296 | self.deprecated = ::std::option::Option::None; |
| 6297 | } |
| 6298 | |
| 6299 | pub fn has_deprecated(&self) -> bool { |
| 6300 | self.deprecated.is_some() |
| 6301 | } |
| 6302 | |
| 6303 | // Param is passed by value, moved |
| 6304 | pub fn set_deprecated(&mut self, v: bool) { |
| 6305 | self.deprecated = ::std::option::Option::Some(v); |
| 6306 | } |
| 6307 | |
| 6308 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 6309 | |
| 6310 | |
| 6311 | pub fn get_uninterpreted_option(&self) -> &[UninterpretedOption] { |
| 6312 | &self.uninterpreted_option |
| 6313 | } |
| 6314 | pub fn clear_uninterpreted_option(&mut self) { |
| 6315 | self.uninterpreted_option.clear(); |
| 6316 | } |
| 6317 | |
| 6318 | // Param is passed by value, moved |
| 6319 | pub fn set_uninterpreted_option(&mut self, v: ::protobuf::RepeatedField<UninterpretedOption>) { |
| 6320 | self.uninterpreted_option = v; |
| 6321 | } |
| 6322 | |
| 6323 | // Mutable pointer to the field. |
| 6324 | pub fn mut_uninterpreted_option(&mut self) -> &mut ::protobuf::RepeatedField<UninterpretedOption> { |
| 6325 | &mut self.uninterpreted_option |
| 6326 | } |
| 6327 | |
| 6328 | // Take field |
| 6329 | pub fn take_uninterpreted_option(&mut self) -> ::protobuf::RepeatedField<UninterpretedOption> { |
| 6330 | ::std::mem::replace(&mut self.uninterpreted_option, ::protobuf::RepeatedField::new()) |
| 6331 | } |
| 6332 | } |
| 6333 | |
| 6334 | impl ::protobuf::Message for EnumValueOptions { |
| 6335 | fn is_initialized(&self) -> bool { |
| 6336 | for v in &self.uninterpreted_option { |
| 6337 | if !v.is_initialized() { |
| 6338 | return false; |
| 6339 | } |
| 6340 | }; |
| 6341 | true |
| 6342 | } |
| 6343 | |
| 6344 | fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 6345 | while !is.eof()? { |
| 6346 | let (field_number, wire_type) = is.read_tag_unpack()?; |
| 6347 | match field_number { |
| 6348 | 1 => { |
| 6349 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 6350 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 6351 | } |
| 6352 | let tmp = is.read_bool()?; |
| 6353 | self.deprecated = ::std::option::Option::Some(tmp); |
| 6354 | }, |
| 6355 | 999 => { |
| 6356 | ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.uninterpreted_option)?; |
| 6357 | }, |
| 6358 | _ => { |
| 6359 | ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| 6360 | }, |
| 6361 | }; |
| 6362 | } |
| 6363 | ::std::result::Result::Ok(()) |
| 6364 | } |
| 6365 | |
| 6366 | // Compute sizes of nested messages |
| 6367 | #[allow(unused_variables)] |
| 6368 | fn compute_size(&self) -> u32 { |
| 6369 | let mut my_size = 0; |
| 6370 | if let Some(v) = self.deprecated { |
| 6371 | my_size += 2; |
| 6372 | } |
| 6373 | for value in &self.uninterpreted_option { |
| 6374 | let len = value.compute_size(); |
| 6375 | my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 6376 | }; |
| 6377 | my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); |
| 6378 | self.cached_size.set(my_size); |
| 6379 | my_size |
| 6380 | } |
| 6381 | |
| 6382 | fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 6383 | if let Some(v) = self.deprecated { |
| 6384 | os.write_bool(1, v)?; |
| 6385 | } |
| 6386 | for v in &self.uninterpreted_option { |
| 6387 | os.write_tag(999, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 6388 | os.write_raw_varint32(v.get_cached_size())?; |
| 6389 | v.write_to_with_cached_sizes(os)?; |
| 6390 | }; |
| 6391 | os.write_unknown_fields(self.get_unknown_fields())?; |
| 6392 | ::std::result::Result::Ok(()) |
| 6393 | } |
| 6394 | |
| 6395 | fn get_cached_size(&self) -> u32 { |
| 6396 | self.cached_size.get() |
| 6397 | } |
| 6398 | |
| 6399 | fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { |
| 6400 | &self.unknown_fields |
| 6401 | } |
| 6402 | |
| 6403 | fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { |
| 6404 | &mut self.unknown_fields |
| 6405 | } |
| 6406 | |
| 6407 | fn as_any(&self) -> &dyn (::std::any::Any) { |
| 6408 | self as &dyn (::std::any::Any) |
| 6409 | } |
| 6410 | fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| 6411 | self as &mut dyn (::std::any::Any) |
| 6412 | } |
| 6413 | fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| 6414 | self |
| 6415 | } |
| 6416 | |
| 6417 | fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { |
| 6418 | Self::descriptor_static() |
| 6419 | } |
| 6420 | |
| 6421 | fn new() -> EnumValueOptions { |
| 6422 | EnumValueOptions::new() |
| 6423 | } |
| 6424 | |
| 6425 | fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { |
| 6426 | static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; |
| 6427 | unsafe { |
| 6428 | descriptor.get(|| { |
| 6429 | let mut fields = ::std::vec::Vec::new(); |
| 6430 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>( |
| 6431 | "deprecated", |
| 6432 | |m: &EnumValueOptions| { &m.deprecated }, |
| 6433 | |m: &mut EnumValueOptions| { &mut m.deprecated }, |
| 6434 | )); |
| 6435 | fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<UninterpretedOption>>( |
| 6436 | "uninterpreted_option", |
| 6437 | |m: &EnumValueOptions| { &m.uninterpreted_option }, |
| 6438 | |m: &mut EnumValueOptions| { &mut m.uninterpreted_option }, |
| 6439 | )); |
| 6440 | ::protobuf::reflect::MessageDescriptor::new_pb_name::<EnumValueOptions>( |
| 6441 | "EnumValueOptions", |
| 6442 | fields, |
| 6443 | file_descriptor_proto() |
| 6444 | ) |
| 6445 | }) |
| 6446 | } |
| 6447 | } |
| 6448 | |
| 6449 | fn default_instance() -> &'static EnumValueOptions { |
| 6450 | static mut instance: ::protobuf::lazy::Lazy<EnumValueOptions> = ::protobuf::lazy::Lazy::INIT; |
| 6451 | unsafe { |
| 6452 | instance.get(EnumValueOptions::new) |
| 6453 | } |
| 6454 | } |
| 6455 | } |
| 6456 | |
| 6457 | impl ::protobuf::Clear for EnumValueOptions { |
| 6458 | fn clear(&mut self) { |
| 6459 | self.deprecated = ::std::option::Option::None; |
| 6460 | self.uninterpreted_option.clear(); |
| 6461 | self.unknown_fields.clear(); |
| 6462 | } |
| 6463 | } |
| 6464 | |
| 6465 | impl ::std::fmt::Debug for EnumValueOptions { |
| 6466 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| 6467 | ::protobuf::text_format::fmt(self, f) |
| 6468 | } |
| 6469 | } |
| 6470 | |
| 6471 | impl ::protobuf::reflect::ProtobufValue for EnumValueOptions { |
| 6472 | fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { |
| 6473 | ::protobuf::reflect::ReflectValueRef::Message(self) |
| 6474 | } |
| 6475 | } |
| 6476 | |
| 6477 | #[derive(PartialEq,Clone,Default)] |
| 6478 | #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))] |
| 6479 | pub struct ServiceOptions { |
| 6480 | // message fields |
| 6481 | deprecated: ::std::option::Option<bool>, |
| 6482 | uninterpreted_option: ::protobuf::RepeatedField<UninterpretedOption>, |
| 6483 | // special fields |
| 6484 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 6485 | pub unknown_fields: ::protobuf::UnknownFields, |
| 6486 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 6487 | pub cached_size: ::protobuf::CachedSize, |
| 6488 | } |
| 6489 | |
| 6490 | impl<'a> ::std::default::Default for &'a ServiceOptions { |
| 6491 | fn default() -> &'a ServiceOptions { |
| 6492 | <ServiceOptions as ::protobuf::Message>::default_instance() |
| 6493 | } |
| 6494 | } |
| 6495 | |
| 6496 | impl ServiceOptions { |
| 6497 | pub fn new() -> ServiceOptions { |
| 6498 | ::std::default::Default::default() |
| 6499 | } |
| 6500 | |
| 6501 | // optional bool deprecated = 33; |
| 6502 | |
| 6503 | |
| 6504 | pub fn get_deprecated(&self) -> bool { |
| 6505 | self.deprecated.unwrap_or(false) |
| 6506 | } |
| 6507 | pub fn clear_deprecated(&mut self) { |
| 6508 | self.deprecated = ::std::option::Option::None; |
| 6509 | } |
| 6510 | |
| 6511 | pub fn has_deprecated(&self) -> bool { |
| 6512 | self.deprecated.is_some() |
| 6513 | } |
| 6514 | |
| 6515 | // Param is passed by value, moved |
| 6516 | pub fn set_deprecated(&mut self, v: bool) { |
| 6517 | self.deprecated = ::std::option::Option::Some(v); |
| 6518 | } |
| 6519 | |
| 6520 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 6521 | |
| 6522 | |
| 6523 | pub fn get_uninterpreted_option(&self) -> &[UninterpretedOption] { |
| 6524 | &self.uninterpreted_option |
| 6525 | } |
| 6526 | pub fn clear_uninterpreted_option(&mut self) { |
| 6527 | self.uninterpreted_option.clear(); |
| 6528 | } |
| 6529 | |
| 6530 | // Param is passed by value, moved |
| 6531 | pub fn set_uninterpreted_option(&mut self, v: ::protobuf::RepeatedField<UninterpretedOption>) { |
| 6532 | self.uninterpreted_option = v; |
| 6533 | } |
| 6534 | |
| 6535 | // Mutable pointer to the field. |
| 6536 | pub fn mut_uninterpreted_option(&mut self) -> &mut ::protobuf::RepeatedField<UninterpretedOption> { |
| 6537 | &mut self.uninterpreted_option |
| 6538 | } |
| 6539 | |
| 6540 | // Take field |
| 6541 | pub fn take_uninterpreted_option(&mut self) -> ::protobuf::RepeatedField<UninterpretedOption> { |
| 6542 | ::std::mem::replace(&mut self.uninterpreted_option, ::protobuf::RepeatedField::new()) |
| 6543 | } |
| 6544 | } |
| 6545 | |
| 6546 | impl ::protobuf::Message for ServiceOptions { |
| 6547 | fn is_initialized(&self) -> bool { |
| 6548 | for v in &self.uninterpreted_option { |
| 6549 | if !v.is_initialized() { |
| 6550 | return false; |
| 6551 | } |
| 6552 | }; |
| 6553 | true |
| 6554 | } |
| 6555 | |
| 6556 | fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 6557 | while !is.eof()? { |
| 6558 | let (field_number, wire_type) = is.read_tag_unpack()?; |
| 6559 | match field_number { |
| 6560 | 33 => { |
| 6561 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 6562 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 6563 | } |
| 6564 | let tmp = is.read_bool()?; |
| 6565 | self.deprecated = ::std::option::Option::Some(tmp); |
| 6566 | }, |
| 6567 | 999 => { |
| 6568 | ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.uninterpreted_option)?; |
| 6569 | }, |
| 6570 | _ => { |
| 6571 | ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| 6572 | }, |
| 6573 | }; |
| 6574 | } |
| 6575 | ::std::result::Result::Ok(()) |
| 6576 | } |
| 6577 | |
| 6578 | // Compute sizes of nested messages |
| 6579 | #[allow(unused_variables)] |
| 6580 | fn compute_size(&self) -> u32 { |
| 6581 | let mut my_size = 0; |
| 6582 | if let Some(v) = self.deprecated { |
| 6583 | my_size += 3; |
| 6584 | } |
| 6585 | for value in &self.uninterpreted_option { |
| 6586 | let len = value.compute_size(); |
| 6587 | my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 6588 | }; |
| 6589 | my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); |
| 6590 | self.cached_size.set(my_size); |
| 6591 | my_size |
| 6592 | } |
| 6593 | |
| 6594 | fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 6595 | if let Some(v) = self.deprecated { |
| 6596 | os.write_bool(33, v)?; |
| 6597 | } |
| 6598 | for v in &self.uninterpreted_option { |
| 6599 | os.write_tag(999, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 6600 | os.write_raw_varint32(v.get_cached_size())?; |
| 6601 | v.write_to_with_cached_sizes(os)?; |
| 6602 | }; |
| 6603 | os.write_unknown_fields(self.get_unknown_fields())?; |
| 6604 | ::std::result::Result::Ok(()) |
| 6605 | } |
| 6606 | |
| 6607 | fn get_cached_size(&self) -> u32 { |
| 6608 | self.cached_size.get() |
| 6609 | } |
| 6610 | |
| 6611 | fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { |
| 6612 | &self.unknown_fields |
| 6613 | } |
| 6614 | |
| 6615 | fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { |
| 6616 | &mut self.unknown_fields |
| 6617 | } |
| 6618 | |
| 6619 | fn as_any(&self) -> &dyn (::std::any::Any) { |
| 6620 | self as &dyn (::std::any::Any) |
| 6621 | } |
| 6622 | fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| 6623 | self as &mut dyn (::std::any::Any) |
| 6624 | } |
| 6625 | fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| 6626 | self |
| 6627 | } |
| 6628 | |
| 6629 | fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { |
| 6630 | Self::descriptor_static() |
| 6631 | } |
| 6632 | |
| 6633 | fn new() -> ServiceOptions { |
| 6634 | ServiceOptions::new() |
| 6635 | } |
| 6636 | |
| 6637 | fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { |
| 6638 | static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; |
| 6639 | unsafe { |
| 6640 | descriptor.get(|| { |
| 6641 | let mut fields = ::std::vec::Vec::new(); |
| 6642 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>( |
| 6643 | "deprecated", |
| 6644 | |m: &ServiceOptions| { &m.deprecated }, |
| 6645 | |m: &mut ServiceOptions| { &mut m.deprecated }, |
| 6646 | )); |
| 6647 | fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<UninterpretedOption>>( |
| 6648 | "uninterpreted_option", |
| 6649 | |m: &ServiceOptions| { &m.uninterpreted_option }, |
| 6650 | |m: &mut ServiceOptions| { &mut m.uninterpreted_option }, |
| 6651 | )); |
| 6652 | ::protobuf::reflect::MessageDescriptor::new_pb_name::<ServiceOptions>( |
| 6653 | "ServiceOptions", |
| 6654 | fields, |
| 6655 | file_descriptor_proto() |
| 6656 | ) |
| 6657 | }) |
| 6658 | } |
| 6659 | } |
| 6660 | |
| 6661 | fn default_instance() -> &'static ServiceOptions { |
| 6662 | static mut instance: ::protobuf::lazy::Lazy<ServiceOptions> = ::protobuf::lazy::Lazy::INIT; |
| 6663 | unsafe { |
| 6664 | instance.get(ServiceOptions::new) |
| 6665 | } |
| 6666 | } |
| 6667 | } |
| 6668 | |
| 6669 | impl ::protobuf::Clear for ServiceOptions { |
| 6670 | fn clear(&mut self) { |
| 6671 | self.deprecated = ::std::option::Option::None; |
| 6672 | self.uninterpreted_option.clear(); |
| 6673 | self.unknown_fields.clear(); |
| 6674 | } |
| 6675 | } |
| 6676 | |
| 6677 | impl ::std::fmt::Debug for ServiceOptions { |
| 6678 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| 6679 | ::protobuf::text_format::fmt(self, f) |
| 6680 | } |
| 6681 | } |
| 6682 | |
| 6683 | impl ::protobuf::reflect::ProtobufValue for ServiceOptions { |
| 6684 | fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { |
| 6685 | ::protobuf::reflect::ReflectValueRef::Message(self) |
| 6686 | } |
| 6687 | } |
| 6688 | |
| 6689 | #[derive(PartialEq,Clone,Default)] |
| 6690 | #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))] |
| 6691 | pub struct MethodOptions { |
| 6692 | // message fields |
| 6693 | deprecated: ::std::option::Option<bool>, |
| 6694 | uninterpreted_option: ::protobuf::RepeatedField<UninterpretedOption>, |
| 6695 | // special fields |
| 6696 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 6697 | pub unknown_fields: ::protobuf::UnknownFields, |
| 6698 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 6699 | pub cached_size: ::protobuf::CachedSize, |
| 6700 | } |
| 6701 | |
| 6702 | impl<'a> ::std::default::Default for &'a MethodOptions { |
| 6703 | fn default() -> &'a MethodOptions { |
| 6704 | <MethodOptions as ::protobuf::Message>::default_instance() |
| 6705 | } |
| 6706 | } |
| 6707 | |
| 6708 | impl MethodOptions { |
| 6709 | pub fn new() -> MethodOptions { |
| 6710 | ::std::default::Default::default() |
| 6711 | } |
| 6712 | |
| 6713 | // optional bool deprecated = 33; |
| 6714 | |
| 6715 | |
| 6716 | pub fn get_deprecated(&self) -> bool { |
| 6717 | self.deprecated.unwrap_or(false) |
| 6718 | } |
| 6719 | pub fn clear_deprecated(&mut self) { |
| 6720 | self.deprecated = ::std::option::Option::None; |
| 6721 | } |
| 6722 | |
| 6723 | pub fn has_deprecated(&self) -> bool { |
| 6724 | self.deprecated.is_some() |
| 6725 | } |
| 6726 | |
| 6727 | // Param is passed by value, moved |
| 6728 | pub fn set_deprecated(&mut self, v: bool) { |
| 6729 | self.deprecated = ::std::option::Option::Some(v); |
| 6730 | } |
| 6731 | |
| 6732 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 6733 | |
| 6734 | |
| 6735 | pub fn get_uninterpreted_option(&self) -> &[UninterpretedOption] { |
| 6736 | &self.uninterpreted_option |
| 6737 | } |
| 6738 | pub fn clear_uninterpreted_option(&mut self) { |
| 6739 | self.uninterpreted_option.clear(); |
| 6740 | } |
| 6741 | |
| 6742 | // Param is passed by value, moved |
| 6743 | pub fn set_uninterpreted_option(&mut self, v: ::protobuf::RepeatedField<UninterpretedOption>) { |
| 6744 | self.uninterpreted_option = v; |
| 6745 | } |
| 6746 | |
| 6747 | // Mutable pointer to the field. |
| 6748 | pub fn mut_uninterpreted_option(&mut self) -> &mut ::protobuf::RepeatedField<UninterpretedOption> { |
| 6749 | &mut self.uninterpreted_option |
| 6750 | } |
| 6751 | |
| 6752 | // Take field |
| 6753 | pub fn take_uninterpreted_option(&mut self) -> ::protobuf::RepeatedField<UninterpretedOption> { |
| 6754 | ::std::mem::replace(&mut self.uninterpreted_option, ::protobuf::RepeatedField::new()) |
| 6755 | } |
| 6756 | } |
| 6757 | |
| 6758 | impl ::protobuf::Message for MethodOptions { |
| 6759 | fn is_initialized(&self) -> bool { |
| 6760 | for v in &self.uninterpreted_option { |
| 6761 | if !v.is_initialized() { |
| 6762 | return false; |
| 6763 | } |
| 6764 | }; |
| 6765 | true |
| 6766 | } |
| 6767 | |
| 6768 | fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 6769 | while !is.eof()? { |
| 6770 | let (field_number, wire_type) = is.read_tag_unpack()?; |
| 6771 | match field_number { |
| 6772 | 33 => { |
| 6773 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 6774 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 6775 | } |
| 6776 | let tmp = is.read_bool()?; |
| 6777 | self.deprecated = ::std::option::Option::Some(tmp); |
| 6778 | }, |
| 6779 | 999 => { |
| 6780 | ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.uninterpreted_option)?; |
| 6781 | }, |
| 6782 | _ => { |
| 6783 | ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| 6784 | }, |
| 6785 | }; |
| 6786 | } |
| 6787 | ::std::result::Result::Ok(()) |
| 6788 | } |
| 6789 | |
| 6790 | // Compute sizes of nested messages |
| 6791 | #[allow(unused_variables)] |
| 6792 | fn compute_size(&self) -> u32 { |
| 6793 | let mut my_size = 0; |
| 6794 | if let Some(v) = self.deprecated { |
| 6795 | my_size += 3; |
| 6796 | } |
| 6797 | for value in &self.uninterpreted_option { |
| 6798 | let len = value.compute_size(); |
| 6799 | my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 6800 | }; |
| 6801 | my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); |
| 6802 | self.cached_size.set(my_size); |
| 6803 | my_size |
| 6804 | } |
| 6805 | |
| 6806 | fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 6807 | if let Some(v) = self.deprecated { |
| 6808 | os.write_bool(33, v)?; |
| 6809 | } |
| 6810 | for v in &self.uninterpreted_option { |
| 6811 | os.write_tag(999, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 6812 | os.write_raw_varint32(v.get_cached_size())?; |
| 6813 | v.write_to_with_cached_sizes(os)?; |
| 6814 | }; |
| 6815 | os.write_unknown_fields(self.get_unknown_fields())?; |
| 6816 | ::std::result::Result::Ok(()) |
| 6817 | } |
| 6818 | |
| 6819 | fn get_cached_size(&self) -> u32 { |
| 6820 | self.cached_size.get() |
| 6821 | } |
| 6822 | |
| 6823 | fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { |
| 6824 | &self.unknown_fields |
| 6825 | } |
| 6826 | |
| 6827 | fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { |
| 6828 | &mut self.unknown_fields |
| 6829 | } |
| 6830 | |
| 6831 | fn as_any(&self) -> &dyn (::std::any::Any) { |
| 6832 | self as &dyn (::std::any::Any) |
| 6833 | } |
| 6834 | fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| 6835 | self as &mut dyn (::std::any::Any) |
| 6836 | } |
| 6837 | fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| 6838 | self |
| 6839 | } |
| 6840 | |
| 6841 | fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { |
| 6842 | Self::descriptor_static() |
| 6843 | } |
| 6844 | |
| 6845 | fn new() -> MethodOptions { |
| 6846 | MethodOptions::new() |
| 6847 | } |
| 6848 | |
| 6849 | fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { |
| 6850 | static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; |
| 6851 | unsafe { |
| 6852 | descriptor.get(|| { |
| 6853 | let mut fields = ::std::vec::Vec::new(); |
| 6854 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>( |
| 6855 | "deprecated", |
| 6856 | |m: &MethodOptions| { &m.deprecated }, |
| 6857 | |m: &mut MethodOptions| { &mut m.deprecated }, |
| 6858 | )); |
| 6859 | fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<UninterpretedOption>>( |
| 6860 | "uninterpreted_option", |
| 6861 | |m: &MethodOptions| { &m.uninterpreted_option }, |
| 6862 | |m: &mut MethodOptions| { &mut m.uninterpreted_option }, |
| 6863 | )); |
| 6864 | ::protobuf::reflect::MessageDescriptor::new_pb_name::<MethodOptions>( |
| 6865 | "MethodOptions", |
| 6866 | fields, |
| 6867 | file_descriptor_proto() |
| 6868 | ) |
| 6869 | }) |
| 6870 | } |
| 6871 | } |
| 6872 | |
| 6873 | fn default_instance() -> &'static MethodOptions { |
| 6874 | static mut instance: ::protobuf::lazy::Lazy<MethodOptions> = ::protobuf::lazy::Lazy::INIT; |
| 6875 | unsafe { |
| 6876 | instance.get(MethodOptions::new) |
| 6877 | } |
| 6878 | } |
| 6879 | } |
| 6880 | |
| 6881 | impl ::protobuf::Clear for MethodOptions { |
| 6882 | fn clear(&mut self) { |
| 6883 | self.deprecated = ::std::option::Option::None; |
| 6884 | self.uninterpreted_option.clear(); |
| 6885 | self.unknown_fields.clear(); |
| 6886 | } |
| 6887 | } |
| 6888 | |
| 6889 | impl ::std::fmt::Debug for MethodOptions { |
| 6890 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| 6891 | ::protobuf::text_format::fmt(self, f) |
| 6892 | } |
| 6893 | } |
| 6894 | |
| 6895 | impl ::protobuf::reflect::ProtobufValue for MethodOptions { |
| 6896 | fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { |
| 6897 | ::protobuf::reflect::ReflectValueRef::Message(self) |
| 6898 | } |
| 6899 | } |
| 6900 | |
| 6901 | #[derive(PartialEq,Clone,Default)] |
| 6902 | #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))] |
| 6903 | pub struct UninterpretedOption { |
| 6904 | // message fields |
| 6905 | name: ::protobuf::RepeatedField<UninterpretedOption_NamePart>, |
| 6906 | identifier_value: ::protobuf::SingularField<::std::string::String>, |
| 6907 | positive_int_value: ::std::option::Option<u64>, |
| 6908 | negative_int_value: ::std::option::Option<i64>, |
| 6909 | double_value: ::std::option::Option<f64>, |
| 6910 | string_value: ::protobuf::SingularField<::std::vec::Vec<u8>>, |
| 6911 | aggregate_value: ::protobuf::SingularField<::std::string::String>, |
| 6912 | // special fields |
| 6913 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 6914 | pub unknown_fields: ::protobuf::UnknownFields, |
| 6915 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 6916 | pub cached_size: ::protobuf::CachedSize, |
| 6917 | } |
| 6918 | |
| 6919 | impl<'a> ::std::default::Default for &'a UninterpretedOption { |
| 6920 | fn default() -> &'a UninterpretedOption { |
| 6921 | <UninterpretedOption as ::protobuf::Message>::default_instance() |
| 6922 | } |
| 6923 | } |
| 6924 | |
| 6925 | impl UninterpretedOption { |
| 6926 | pub fn new() -> UninterpretedOption { |
| 6927 | ::std::default::Default::default() |
| 6928 | } |
| 6929 | |
| 6930 | // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; |
| 6931 | |
| 6932 | |
| 6933 | pub fn get_name(&self) -> &[UninterpretedOption_NamePart] { |
| 6934 | &self.name |
| 6935 | } |
| 6936 | pub fn clear_name(&mut self) { |
| 6937 | self.name.clear(); |
| 6938 | } |
| 6939 | |
| 6940 | // Param is passed by value, moved |
| 6941 | pub fn set_name(&mut self, v: ::protobuf::RepeatedField<UninterpretedOption_NamePart>) { |
| 6942 | self.name = v; |
| 6943 | } |
| 6944 | |
| 6945 | // Mutable pointer to the field. |
| 6946 | pub fn mut_name(&mut self) -> &mut ::protobuf::RepeatedField<UninterpretedOption_NamePart> { |
| 6947 | &mut self.name |
| 6948 | } |
| 6949 | |
| 6950 | // Take field |
| 6951 | pub fn take_name(&mut self) -> ::protobuf::RepeatedField<UninterpretedOption_NamePart> { |
| 6952 | ::std::mem::replace(&mut self.name, ::protobuf::RepeatedField::new()) |
| 6953 | } |
| 6954 | |
| 6955 | // optional string identifier_value = 3; |
| 6956 | |
| 6957 | |
| 6958 | pub fn get_identifier_value(&self) -> &str { |
| 6959 | match self.identifier_value.as_ref() { |
| 6960 | Some(v) => &v, |
| 6961 | None => "", |
| 6962 | } |
| 6963 | } |
| 6964 | pub fn clear_identifier_value(&mut self) { |
| 6965 | self.identifier_value.clear(); |
| 6966 | } |
| 6967 | |
| 6968 | pub fn has_identifier_value(&self) -> bool { |
| 6969 | self.identifier_value.is_some() |
| 6970 | } |
| 6971 | |
| 6972 | // Param is passed by value, moved |
| 6973 | pub fn set_identifier_value(&mut self, v: ::std::string::String) { |
| 6974 | self.identifier_value = ::protobuf::SingularField::some(v); |
| 6975 | } |
| 6976 | |
| 6977 | // Mutable pointer to the field. |
| 6978 | // If field is not initialized, it is initialized with default value first. |
| 6979 | pub fn mut_identifier_value(&mut self) -> &mut ::std::string::String { |
| 6980 | if self.identifier_value.is_none() { |
| 6981 | self.identifier_value.set_default(); |
| 6982 | } |
| 6983 | self.identifier_value.as_mut().unwrap() |
| 6984 | } |
| 6985 | |
| 6986 | // Take field |
| 6987 | pub fn take_identifier_value(&mut self) -> ::std::string::String { |
| 6988 | self.identifier_value.take().unwrap_or_else(|| ::std::string::String::new()) |
| 6989 | } |
| 6990 | |
| 6991 | // optional uint64 positive_int_value = 4; |
| 6992 | |
| 6993 | |
| 6994 | pub fn get_positive_int_value(&self) -> u64 { |
| 6995 | self.positive_int_value.unwrap_or(0) |
| 6996 | } |
| 6997 | pub fn clear_positive_int_value(&mut self) { |
| 6998 | self.positive_int_value = ::std::option::Option::None; |
| 6999 | } |
| 7000 | |
| 7001 | pub fn has_positive_int_value(&self) -> bool { |
| 7002 | self.positive_int_value.is_some() |
| 7003 | } |
| 7004 | |
| 7005 | // Param is passed by value, moved |
| 7006 | pub fn set_positive_int_value(&mut self, v: u64) { |
| 7007 | self.positive_int_value = ::std::option::Option::Some(v); |
| 7008 | } |
| 7009 | |
| 7010 | // optional int64 negative_int_value = 5; |
| 7011 | |
| 7012 | |
| 7013 | pub fn get_negative_int_value(&self) -> i64 { |
| 7014 | self.negative_int_value.unwrap_or(0) |
| 7015 | } |
| 7016 | pub fn clear_negative_int_value(&mut self) { |
| 7017 | self.negative_int_value = ::std::option::Option::None; |
| 7018 | } |
| 7019 | |
| 7020 | pub fn has_negative_int_value(&self) -> bool { |
| 7021 | self.negative_int_value.is_some() |
| 7022 | } |
| 7023 | |
| 7024 | // Param is passed by value, moved |
| 7025 | pub fn set_negative_int_value(&mut self, v: i64) { |
| 7026 | self.negative_int_value = ::std::option::Option::Some(v); |
| 7027 | } |
| 7028 | |
| 7029 | // optional double double_value = 6; |
| 7030 | |
| 7031 | |
| 7032 | pub fn get_double_value(&self) -> f64 { |
| 7033 | self.double_value.unwrap_or(0.) |
| 7034 | } |
| 7035 | pub fn clear_double_value(&mut self) { |
| 7036 | self.double_value = ::std::option::Option::None; |
| 7037 | } |
| 7038 | |
| 7039 | pub fn has_double_value(&self) -> bool { |
| 7040 | self.double_value.is_some() |
| 7041 | } |
| 7042 | |
| 7043 | // Param is passed by value, moved |
| 7044 | pub fn set_double_value(&mut self, v: f64) { |
| 7045 | self.double_value = ::std::option::Option::Some(v); |
| 7046 | } |
| 7047 | |
| 7048 | // optional bytes string_value = 7; |
| 7049 | |
| 7050 | |
| 7051 | pub fn get_string_value(&self) -> &[u8] { |
| 7052 | match self.string_value.as_ref() { |
| 7053 | Some(v) => &v, |
| 7054 | None => &[], |
| 7055 | } |
| 7056 | } |
| 7057 | pub fn clear_string_value(&mut self) { |
| 7058 | self.string_value.clear(); |
| 7059 | } |
| 7060 | |
| 7061 | pub fn has_string_value(&self) -> bool { |
| 7062 | self.string_value.is_some() |
| 7063 | } |
| 7064 | |
| 7065 | // Param is passed by value, moved |
| 7066 | pub fn set_string_value(&mut self, v: ::std::vec::Vec<u8>) { |
| 7067 | self.string_value = ::protobuf::SingularField::some(v); |
| 7068 | } |
| 7069 | |
| 7070 | // Mutable pointer to the field. |
| 7071 | // If field is not initialized, it is initialized with default value first. |
| 7072 | pub fn mut_string_value(&mut self) -> &mut ::std::vec::Vec<u8> { |
| 7073 | if self.string_value.is_none() { |
| 7074 | self.string_value.set_default(); |
| 7075 | } |
| 7076 | self.string_value.as_mut().unwrap() |
| 7077 | } |
| 7078 | |
| 7079 | // Take field |
| 7080 | pub fn take_string_value(&mut self) -> ::std::vec::Vec<u8> { |
| 7081 | self.string_value.take().unwrap_or_else(|| ::std::vec::Vec::new()) |
| 7082 | } |
| 7083 | |
| 7084 | // optional string aggregate_value = 8; |
| 7085 | |
| 7086 | |
| 7087 | pub fn get_aggregate_value(&self) -> &str { |
| 7088 | match self.aggregate_value.as_ref() { |
| 7089 | Some(v) => &v, |
| 7090 | None => "", |
| 7091 | } |
| 7092 | } |
| 7093 | pub fn clear_aggregate_value(&mut self) { |
| 7094 | self.aggregate_value.clear(); |
| 7095 | } |
| 7096 | |
| 7097 | pub fn has_aggregate_value(&self) -> bool { |
| 7098 | self.aggregate_value.is_some() |
| 7099 | } |
| 7100 | |
| 7101 | // Param is passed by value, moved |
| 7102 | pub fn set_aggregate_value(&mut self, v: ::std::string::String) { |
| 7103 | self.aggregate_value = ::protobuf::SingularField::some(v); |
| 7104 | } |
| 7105 | |
| 7106 | // Mutable pointer to the field. |
| 7107 | // If field is not initialized, it is initialized with default value first. |
| 7108 | pub fn mut_aggregate_value(&mut self) -> &mut ::std::string::String { |
| 7109 | if self.aggregate_value.is_none() { |
| 7110 | self.aggregate_value.set_default(); |
| 7111 | } |
| 7112 | self.aggregate_value.as_mut().unwrap() |
| 7113 | } |
| 7114 | |
| 7115 | // Take field |
| 7116 | pub fn take_aggregate_value(&mut self) -> ::std::string::String { |
| 7117 | self.aggregate_value.take().unwrap_or_else(|| ::std::string::String::new()) |
| 7118 | } |
| 7119 | } |
| 7120 | |
| 7121 | impl ::protobuf::Message for UninterpretedOption { |
| 7122 | fn is_initialized(&self) -> bool { |
| 7123 | for v in &self.name { |
| 7124 | if !v.is_initialized() { |
| 7125 | return false; |
| 7126 | } |
| 7127 | }; |
| 7128 | true |
| 7129 | } |
| 7130 | |
| 7131 | fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 7132 | while !is.eof()? { |
| 7133 | let (field_number, wire_type) = is.read_tag_unpack()?; |
| 7134 | match field_number { |
| 7135 | 2 => { |
| 7136 | ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.name)?; |
| 7137 | }, |
| 7138 | 3 => { |
| 7139 | ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.identifier_value)?; |
| 7140 | }, |
| 7141 | 4 => { |
| 7142 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 7143 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 7144 | } |
| 7145 | let tmp = is.read_uint64()?; |
| 7146 | self.positive_int_value = ::std::option::Option::Some(tmp); |
| 7147 | }, |
| 7148 | 5 => { |
| 7149 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 7150 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 7151 | } |
| 7152 | let tmp = is.read_int64()?; |
| 7153 | self.negative_int_value = ::std::option::Option::Some(tmp); |
| 7154 | }, |
| 7155 | 6 => { |
| 7156 | if wire_type != ::protobuf::wire_format::WireTypeFixed64 { |
| 7157 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 7158 | } |
| 7159 | let tmp = is.read_double()?; |
| 7160 | self.double_value = ::std::option::Option::Some(tmp); |
| 7161 | }, |
| 7162 | 7 => { |
| 7163 | ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.string_value)?; |
| 7164 | }, |
| 7165 | 8 => { |
| 7166 | ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.aggregate_value)?; |
| 7167 | }, |
| 7168 | _ => { |
| 7169 | ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| 7170 | }, |
| 7171 | }; |
| 7172 | } |
| 7173 | ::std::result::Result::Ok(()) |
| 7174 | } |
| 7175 | |
| 7176 | // Compute sizes of nested messages |
| 7177 | #[allow(unused_variables)] |
| 7178 | fn compute_size(&self) -> u32 { |
| 7179 | let mut my_size = 0; |
| 7180 | for value in &self.name { |
| 7181 | let len = value.compute_size(); |
| 7182 | my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 7183 | }; |
| 7184 | if let Some(ref v) = self.identifier_value.as_ref() { |
| 7185 | my_size += ::protobuf::rt::string_size(3, &v); |
| 7186 | } |
| 7187 | if let Some(v) = self.positive_int_value { |
| 7188 | my_size += ::protobuf::rt::value_size(4, v, ::protobuf::wire_format::WireTypeVarint); |
| 7189 | } |
| 7190 | if let Some(v) = self.negative_int_value { |
| 7191 | my_size += ::protobuf::rt::value_size(5, v, ::protobuf::wire_format::WireTypeVarint); |
| 7192 | } |
| 7193 | if let Some(v) = self.double_value { |
| 7194 | my_size += 9; |
| 7195 | } |
| 7196 | if let Some(ref v) = self.string_value.as_ref() { |
| 7197 | my_size += ::protobuf::rt::bytes_size(7, &v); |
| 7198 | } |
| 7199 | if let Some(ref v) = self.aggregate_value.as_ref() { |
| 7200 | my_size += ::protobuf::rt::string_size(8, &v); |
| 7201 | } |
| 7202 | my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); |
| 7203 | self.cached_size.set(my_size); |
| 7204 | my_size |
| 7205 | } |
| 7206 | |
| 7207 | fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 7208 | for v in &self.name { |
| 7209 | os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 7210 | os.write_raw_varint32(v.get_cached_size())?; |
| 7211 | v.write_to_with_cached_sizes(os)?; |
| 7212 | }; |
| 7213 | if let Some(ref v) = self.identifier_value.as_ref() { |
| 7214 | os.write_string(3, &v)?; |
| 7215 | } |
| 7216 | if let Some(v) = self.positive_int_value { |
| 7217 | os.write_uint64(4, v)?; |
| 7218 | } |
| 7219 | if let Some(v) = self.negative_int_value { |
| 7220 | os.write_int64(5, v)?; |
| 7221 | } |
| 7222 | if let Some(v) = self.double_value { |
| 7223 | os.write_double(6, v)?; |
| 7224 | } |
| 7225 | if let Some(ref v) = self.string_value.as_ref() { |
| 7226 | os.write_bytes(7, &v)?; |
| 7227 | } |
| 7228 | if let Some(ref v) = self.aggregate_value.as_ref() { |
| 7229 | os.write_string(8, &v)?; |
| 7230 | } |
| 7231 | os.write_unknown_fields(self.get_unknown_fields())?; |
| 7232 | ::std::result::Result::Ok(()) |
| 7233 | } |
| 7234 | |
| 7235 | fn get_cached_size(&self) -> u32 { |
| 7236 | self.cached_size.get() |
| 7237 | } |
| 7238 | |
| 7239 | fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { |
| 7240 | &self.unknown_fields |
| 7241 | } |
| 7242 | |
| 7243 | fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { |
| 7244 | &mut self.unknown_fields |
| 7245 | } |
| 7246 | |
| 7247 | fn as_any(&self) -> &dyn (::std::any::Any) { |
| 7248 | self as &dyn (::std::any::Any) |
| 7249 | } |
| 7250 | fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| 7251 | self as &mut dyn (::std::any::Any) |
| 7252 | } |
| 7253 | fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| 7254 | self |
| 7255 | } |
| 7256 | |
| 7257 | fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { |
| 7258 | Self::descriptor_static() |
| 7259 | } |
| 7260 | |
| 7261 | fn new() -> UninterpretedOption { |
| 7262 | UninterpretedOption::new() |
| 7263 | } |
| 7264 | |
| 7265 | fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { |
| 7266 | static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; |
| 7267 | unsafe { |
| 7268 | descriptor.get(|| { |
| 7269 | let mut fields = ::std::vec::Vec::new(); |
| 7270 | fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<UninterpretedOption_NamePart>>( |
| 7271 | "name", |
| 7272 | |m: &UninterpretedOption| { &m.name }, |
| 7273 | |m: &mut UninterpretedOption| { &mut m.name }, |
| 7274 | )); |
| 7275 | fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( |
| 7276 | "identifier_value", |
| 7277 | |m: &UninterpretedOption| { &m.identifier_value }, |
| 7278 | |m: &mut UninterpretedOption| { &mut m.identifier_value }, |
| 7279 | )); |
| 7280 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( |
| 7281 | "positive_int_value", |
| 7282 | |m: &UninterpretedOption| { &m.positive_int_value }, |
| 7283 | |m: &mut UninterpretedOption| { &mut m.positive_int_value }, |
| 7284 | )); |
| 7285 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( |
| 7286 | "negative_int_value", |
| 7287 | |m: &UninterpretedOption| { &m.negative_int_value }, |
| 7288 | |m: &mut UninterpretedOption| { &mut m.negative_int_value }, |
| 7289 | )); |
| 7290 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( |
| 7291 | "double_value", |
| 7292 | |m: &UninterpretedOption| { &m.double_value }, |
| 7293 | |m: &mut UninterpretedOption| { &mut m.double_value }, |
| 7294 | )); |
| 7295 | fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( |
| 7296 | "string_value", |
| 7297 | |m: &UninterpretedOption| { &m.string_value }, |
| 7298 | |m: &mut UninterpretedOption| { &mut m.string_value }, |
| 7299 | )); |
| 7300 | fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( |
| 7301 | "aggregate_value", |
| 7302 | |m: &UninterpretedOption| { &m.aggregate_value }, |
| 7303 | |m: &mut UninterpretedOption| { &mut m.aggregate_value }, |
| 7304 | )); |
| 7305 | ::protobuf::reflect::MessageDescriptor::new_pb_name::<UninterpretedOption>( |
| 7306 | "UninterpretedOption", |
| 7307 | fields, |
| 7308 | file_descriptor_proto() |
| 7309 | ) |
| 7310 | }) |
| 7311 | } |
| 7312 | } |
| 7313 | |
| 7314 | fn default_instance() -> &'static UninterpretedOption { |
| 7315 | static mut instance: ::protobuf::lazy::Lazy<UninterpretedOption> = ::protobuf::lazy::Lazy::INIT; |
| 7316 | unsafe { |
| 7317 | instance.get(UninterpretedOption::new) |
| 7318 | } |
| 7319 | } |
| 7320 | } |
| 7321 | |
| 7322 | impl ::protobuf::Clear for UninterpretedOption { |
| 7323 | fn clear(&mut self) { |
| 7324 | self.name.clear(); |
| 7325 | self.identifier_value.clear(); |
| 7326 | self.positive_int_value = ::std::option::Option::None; |
| 7327 | self.negative_int_value = ::std::option::Option::None; |
| 7328 | self.double_value = ::std::option::Option::None; |
| 7329 | self.string_value.clear(); |
| 7330 | self.aggregate_value.clear(); |
| 7331 | self.unknown_fields.clear(); |
| 7332 | } |
| 7333 | } |
| 7334 | |
| 7335 | impl ::std::fmt::Debug for UninterpretedOption { |
| 7336 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| 7337 | ::protobuf::text_format::fmt(self, f) |
| 7338 | } |
| 7339 | } |
| 7340 | |
| 7341 | impl ::protobuf::reflect::ProtobufValue for UninterpretedOption { |
| 7342 | fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { |
| 7343 | ::protobuf::reflect::ReflectValueRef::Message(self) |
| 7344 | } |
| 7345 | } |
| 7346 | |
| 7347 | #[derive(PartialEq,Clone,Default)] |
| 7348 | #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))] |
| 7349 | pub struct UninterpretedOption_NamePart { |
| 7350 | // message fields |
| 7351 | name_part: ::protobuf::SingularField<::std::string::String>, |
| 7352 | is_extension: ::std::option::Option<bool>, |
| 7353 | // special fields |
| 7354 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 7355 | pub unknown_fields: ::protobuf::UnknownFields, |
| 7356 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 7357 | pub cached_size: ::protobuf::CachedSize, |
| 7358 | } |
| 7359 | |
| 7360 | impl<'a> ::std::default::Default for &'a UninterpretedOption_NamePart { |
| 7361 | fn default() -> &'a UninterpretedOption_NamePart { |
| 7362 | <UninterpretedOption_NamePart as ::protobuf::Message>::default_instance() |
| 7363 | } |
| 7364 | } |
| 7365 | |
| 7366 | impl UninterpretedOption_NamePart { |
| 7367 | pub fn new() -> UninterpretedOption_NamePart { |
| 7368 | ::std::default::Default::default() |
| 7369 | } |
| 7370 | |
| 7371 | // required string name_part = 1; |
| 7372 | |
| 7373 | |
| 7374 | pub fn get_name_part(&self) -> &str { |
| 7375 | match self.name_part.as_ref() { |
| 7376 | Some(v) => &v, |
| 7377 | None => "", |
| 7378 | } |
| 7379 | } |
| 7380 | pub fn clear_name_part(&mut self) { |
| 7381 | self.name_part.clear(); |
| 7382 | } |
| 7383 | |
| 7384 | pub fn has_name_part(&self) -> bool { |
| 7385 | self.name_part.is_some() |
| 7386 | } |
| 7387 | |
| 7388 | // Param is passed by value, moved |
| 7389 | pub fn set_name_part(&mut self, v: ::std::string::String) { |
| 7390 | self.name_part = ::protobuf::SingularField::some(v); |
| 7391 | } |
| 7392 | |
| 7393 | // Mutable pointer to the field. |
| 7394 | // If field is not initialized, it is initialized with default value first. |
| 7395 | pub fn mut_name_part(&mut self) -> &mut ::std::string::String { |
| 7396 | if self.name_part.is_none() { |
| 7397 | self.name_part.set_default(); |
| 7398 | } |
| 7399 | self.name_part.as_mut().unwrap() |
| 7400 | } |
| 7401 | |
| 7402 | // Take field |
| 7403 | pub fn take_name_part(&mut self) -> ::std::string::String { |
| 7404 | self.name_part.take().unwrap_or_else(|| ::std::string::String::new()) |
| 7405 | } |
| 7406 | |
| 7407 | // required bool is_extension = 2; |
| 7408 | |
| 7409 | |
| 7410 | pub fn get_is_extension(&self) -> bool { |
| 7411 | self.is_extension.unwrap_or(false) |
| 7412 | } |
| 7413 | pub fn clear_is_extension(&mut self) { |
| 7414 | self.is_extension = ::std::option::Option::None; |
| 7415 | } |
| 7416 | |
| 7417 | pub fn has_is_extension(&self) -> bool { |
| 7418 | self.is_extension.is_some() |
| 7419 | } |
| 7420 | |
| 7421 | // Param is passed by value, moved |
| 7422 | pub fn set_is_extension(&mut self, v: bool) { |
| 7423 | self.is_extension = ::std::option::Option::Some(v); |
| 7424 | } |
| 7425 | } |
| 7426 | |
| 7427 | impl ::protobuf::Message for UninterpretedOption_NamePart { |
| 7428 | fn is_initialized(&self) -> bool { |
| 7429 | if self.name_part.is_none() { |
| 7430 | return false; |
| 7431 | } |
| 7432 | if self.is_extension.is_none() { |
| 7433 | return false; |
| 7434 | } |
| 7435 | true |
| 7436 | } |
| 7437 | |
| 7438 | fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 7439 | while !is.eof()? { |
| 7440 | let (field_number, wire_type) = is.read_tag_unpack()?; |
| 7441 | match field_number { |
| 7442 | 1 => { |
| 7443 | ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.name_part)?; |
| 7444 | }, |
| 7445 | 2 => { |
| 7446 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 7447 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 7448 | } |
| 7449 | let tmp = is.read_bool()?; |
| 7450 | self.is_extension = ::std::option::Option::Some(tmp); |
| 7451 | }, |
| 7452 | _ => { |
| 7453 | ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| 7454 | }, |
| 7455 | }; |
| 7456 | } |
| 7457 | ::std::result::Result::Ok(()) |
| 7458 | } |
| 7459 | |
| 7460 | // Compute sizes of nested messages |
| 7461 | #[allow(unused_variables)] |
| 7462 | fn compute_size(&self) -> u32 { |
| 7463 | let mut my_size = 0; |
| 7464 | if let Some(ref v) = self.name_part.as_ref() { |
| 7465 | my_size += ::protobuf::rt::string_size(1, &v); |
| 7466 | } |
| 7467 | if let Some(v) = self.is_extension { |
| 7468 | my_size += 2; |
| 7469 | } |
| 7470 | my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); |
| 7471 | self.cached_size.set(my_size); |
| 7472 | my_size |
| 7473 | } |
| 7474 | |
| 7475 | fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 7476 | if let Some(ref v) = self.name_part.as_ref() { |
| 7477 | os.write_string(1, &v)?; |
| 7478 | } |
| 7479 | if let Some(v) = self.is_extension { |
| 7480 | os.write_bool(2, v)?; |
| 7481 | } |
| 7482 | os.write_unknown_fields(self.get_unknown_fields())?; |
| 7483 | ::std::result::Result::Ok(()) |
| 7484 | } |
| 7485 | |
| 7486 | fn get_cached_size(&self) -> u32 { |
| 7487 | self.cached_size.get() |
| 7488 | } |
| 7489 | |
| 7490 | fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { |
| 7491 | &self.unknown_fields |
| 7492 | } |
| 7493 | |
| 7494 | fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { |
| 7495 | &mut self.unknown_fields |
| 7496 | } |
| 7497 | |
| 7498 | fn as_any(&self) -> &dyn (::std::any::Any) { |
| 7499 | self as &dyn (::std::any::Any) |
| 7500 | } |
| 7501 | fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| 7502 | self as &mut dyn (::std::any::Any) |
| 7503 | } |
| 7504 | fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| 7505 | self |
| 7506 | } |
| 7507 | |
| 7508 | fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { |
| 7509 | Self::descriptor_static() |
| 7510 | } |
| 7511 | |
| 7512 | fn new() -> UninterpretedOption_NamePart { |
| 7513 | UninterpretedOption_NamePart::new() |
| 7514 | } |
| 7515 | |
| 7516 | fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { |
| 7517 | static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; |
| 7518 | unsafe { |
| 7519 | descriptor.get(|| { |
| 7520 | let mut fields = ::std::vec::Vec::new(); |
| 7521 | fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( |
| 7522 | "name_part", |
| 7523 | |m: &UninterpretedOption_NamePart| { &m.name_part }, |
| 7524 | |m: &mut UninterpretedOption_NamePart| { &mut m.name_part }, |
| 7525 | )); |
| 7526 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>( |
| 7527 | "is_extension", |
| 7528 | |m: &UninterpretedOption_NamePart| { &m.is_extension }, |
| 7529 | |m: &mut UninterpretedOption_NamePart| { &mut m.is_extension }, |
| 7530 | )); |
| 7531 | ::protobuf::reflect::MessageDescriptor::new_pb_name::<UninterpretedOption_NamePart>( |
| 7532 | "UninterpretedOption.NamePart", |
| 7533 | fields, |
| 7534 | file_descriptor_proto() |
| 7535 | ) |
| 7536 | }) |
| 7537 | } |
| 7538 | } |
| 7539 | |
| 7540 | fn default_instance() -> &'static UninterpretedOption_NamePart { |
| 7541 | static mut instance: ::protobuf::lazy::Lazy<UninterpretedOption_NamePart> = ::protobuf::lazy::Lazy::INIT; |
| 7542 | unsafe { |
| 7543 | instance.get(UninterpretedOption_NamePart::new) |
| 7544 | } |
| 7545 | } |
| 7546 | } |
| 7547 | |
| 7548 | impl ::protobuf::Clear for UninterpretedOption_NamePart { |
| 7549 | fn clear(&mut self) { |
| 7550 | self.name_part.clear(); |
| 7551 | self.is_extension = ::std::option::Option::None; |
| 7552 | self.unknown_fields.clear(); |
| 7553 | } |
| 7554 | } |
| 7555 | |
| 7556 | impl ::std::fmt::Debug for UninterpretedOption_NamePart { |
| 7557 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| 7558 | ::protobuf::text_format::fmt(self, f) |
| 7559 | } |
| 7560 | } |
| 7561 | |
| 7562 | impl ::protobuf::reflect::ProtobufValue for UninterpretedOption_NamePart { |
| 7563 | fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { |
| 7564 | ::protobuf::reflect::ReflectValueRef::Message(self) |
| 7565 | } |
| 7566 | } |
| 7567 | |
| 7568 | #[derive(PartialEq,Clone,Default)] |
| 7569 | #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))] |
| 7570 | pub struct SourceCodeInfo { |
| 7571 | // message fields |
| 7572 | location: ::protobuf::RepeatedField<SourceCodeInfo_Location>, |
| 7573 | // special fields |
| 7574 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 7575 | pub unknown_fields: ::protobuf::UnknownFields, |
| 7576 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 7577 | pub cached_size: ::protobuf::CachedSize, |
| 7578 | } |
| 7579 | |
| 7580 | impl<'a> ::std::default::Default for &'a SourceCodeInfo { |
| 7581 | fn default() -> &'a SourceCodeInfo { |
| 7582 | <SourceCodeInfo as ::protobuf::Message>::default_instance() |
| 7583 | } |
| 7584 | } |
| 7585 | |
| 7586 | impl SourceCodeInfo { |
| 7587 | pub fn new() -> SourceCodeInfo { |
| 7588 | ::std::default::Default::default() |
| 7589 | } |
| 7590 | |
| 7591 | // repeated .google.protobuf.SourceCodeInfo.Location location = 1; |
| 7592 | |
| 7593 | |
| 7594 | pub fn get_location(&self) -> &[SourceCodeInfo_Location] { |
| 7595 | &self.location |
| 7596 | } |
| 7597 | pub fn clear_location(&mut self) { |
| 7598 | self.location.clear(); |
| 7599 | } |
| 7600 | |
| 7601 | // Param is passed by value, moved |
| 7602 | pub fn set_location(&mut self, v: ::protobuf::RepeatedField<SourceCodeInfo_Location>) { |
| 7603 | self.location = v; |
| 7604 | } |
| 7605 | |
| 7606 | // Mutable pointer to the field. |
| 7607 | pub fn mut_location(&mut self) -> &mut ::protobuf::RepeatedField<SourceCodeInfo_Location> { |
| 7608 | &mut self.location |
| 7609 | } |
| 7610 | |
| 7611 | // Take field |
| 7612 | pub fn take_location(&mut self) -> ::protobuf::RepeatedField<SourceCodeInfo_Location> { |
| 7613 | ::std::mem::replace(&mut self.location, ::protobuf::RepeatedField::new()) |
| 7614 | } |
| 7615 | } |
| 7616 | |
| 7617 | impl ::protobuf::Message for SourceCodeInfo { |
| 7618 | fn is_initialized(&self) -> bool { |
| 7619 | for v in &self.location { |
| 7620 | if !v.is_initialized() { |
| 7621 | return false; |
| 7622 | } |
| 7623 | }; |
| 7624 | true |
| 7625 | } |
| 7626 | |
| 7627 | fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 7628 | while !is.eof()? { |
| 7629 | let (field_number, wire_type) = is.read_tag_unpack()?; |
| 7630 | match field_number { |
| 7631 | 1 => { |
| 7632 | ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.location)?; |
| 7633 | }, |
| 7634 | _ => { |
| 7635 | ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| 7636 | }, |
| 7637 | }; |
| 7638 | } |
| 7639 | ::std::result::Result::Ok(()) |
| 7640 | } |
| 7641 | |
| 7642 | // Compute sizes of nested messages |
| 7643 | #[allow(unused_variables)] |
| 7644 | fn compute_size(&self) -> u32 { |
| 7645 | let mut my_size = 0; |
| 7646 | for value in &self.location { |
| 7647 | let len = value.compute_size(); |
| 7648 | my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 7649 | }; |
| 7650 | my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); |
| 7651 | self.cached_size.set(my_size); |
| 7652 | my_size |
| 7653 | } |
| 7654 | |
| 7655 | fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 7656 | for v in &self.location { |
| 7657 | os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 7658 | os.write_raw_varint32(v.get_cached_size())?; |
| 7659 | v.write_to_with_cached_sizes(os)?; |
| 7660 | }; |
| 7661 | os.write_unknown_fields(self.get_unknown_fields())?; |
| 7662 | ::std::result::Result::Ok(()) |
| 7663 | } |
| 7664 | |
| 7665 | fn get_cached_size(&self) -> u32 { |
| 7666 | self.cached_size.get() |
| 7667 | } |
| 7668 | |
| 7669 | fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { |
| 7670 | &self.unknown_fields |
| 7671 | } |
| 7672 | |
| 7673 | fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { |
| 7674 | &mut self.unknown_fields |
| 7675 | } |
| 7676 | |
| 7677 | fn as_any(&self) -> &dyn (::std::any::Any) { |
| 7678 | self as &dyn (::std::any::Any) |
| 7679 | } |
| 7680 | fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| 7681 | self as &mut dyn (::std::any::Any) |
| 7682 | } |
| 7683 | fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| 7684 | self |
| 7685 | } |
| 7686 | |
| 7687 | fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { |
| 7688 | Self::descriptor_static() |
| 7689 | } |
| 7690 | |
| 7691 | fn new() -> SourceCodeInfo { |
| 7692 | SourceCodeInfo::new() |
| 7693 | } |
| 7694 | |
| 7695 | fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { |
| 7696 | static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; |
| 7697 | unsafe { |
| 7698 | descriptor.get(|| { |
| 7699 | let mut fields = ::std::vec::Vec::new(); |
| 7700 | fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<SourceCodeInfo_Location>>( |
| 7701 | "location", |
| 7702 | |m: &SourceCodeInfo| { &m.location }, |
| 7703 | |m: &mut SourceCodeInfo| { &mut m.location }, |
| 7704 | )); |
| 7705 | ::protobuf::reflect::MessageDescriptor::new_pb_name::<SourceCodeInfo>( |
| 7706 | "SourceCodeInfo", |
| 7707 | fields, |
| 7708 | file_descriptor_proto() |
| 7709 | ) |
| 7710 | }) |
| 7711 | } |
| 7712 | } |
| 7713 | |
| 7714 | fn default_instance() -> &'static SourceCodeInfo { |
| 7715 | static mut instance: ::protobuf::lazy::Lazy<SourceCodeInfo> = ::protobuf::lazy::Lazy::INIT; |
| 7716 | unsafe { |
| 7717 | instance.get(SourceCodeInfo::new) |
| 7718 | } |
| 7719 | } |
| 7720 | } |
| 7721 | |
| 7722 | impl ::protobuf::Clear for SourceCodeInfo { |
| 7723 | fn clear(&mut self) { |
| 7724 | self.location.clear(); |
| 7725 | self.unknown_fields.clear(); |
| 7726 | } |
| 7727 | } |
| 7728 | |
| 7729 | impl ::std::fmt::Debug for SourceCodeInfo { |
| 7730 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| 7731 | ::protobuf::text_format::fmt(self, f) |
| 7732 | } |
| 7733 | } |
| 7734 | |
| 7735 | impl ::protobuf::reflect::ProtobufValue for SourceCodeInfo { |
| 7736 | fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { |
| 7737 | ::protobuf::reflect::ReflectValueRef::Message(self) |
| 7738 | } |
| 7739 | } |
| 7740 | |
| 7741 | #[derive(PartialEq,Clone,Default)] |
| 7742 | #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))] |
| 7743 | pub struct SourceCodeInfo_Location { |
| 7744 | // message fields |
| 7745 | path: ::std::vec::Vec<i32>, |
| 7746 | span: ::std::vec::Vec<i32>, |
| 7747 | leading_comments: ::protobuf::SingularField<::std::string::String>, |
| 7748 | trailing_comments: ::protobuf::SingularField<::std::string::String>, |
| 7749 | leading_detached_comments: ::protobuf::RepeatedField<::std::string::String>, |
| 7750 | // special fields |
| 7751 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 7752 | pub unknown_fields: ::protobuf::UnknownFields, |
| 7753 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 7754 | pub cached_size: ::protobuf::CachedSize, |
| 7755 | } |
| 7756 | |
| 7757 | impl<'a> ::std::default::Default for &'a SourceCodeInfo_Location { |
| 7758 | fn default() -> &'a SourceCodeInfo_Location { |
| 7759 | <SourceCodeInfo_Location as ::protobuf::Message>::default_instance() |
| 7760 | } |
| 7761 | } |
| 7762 | |
| 7763 | impl SourceCodeInfo_Location { |
| 7764 | pub fn new() -> SourceCodeInfo_Location { |
| 7765 | ::std::default::Default::default() |
| 7766 | } |
| 7767 | |
| 7768 | // repeated int32 path = 1; |
| 7769 | |
| 7770 | |
| 7771 | pub fn get_path(&self) -> &[i32] { |
| 7772 | &self.path |
| 7773 | } |
| 7774 | pub fn clear_path(&mut self) { |
| 7775 | self.path.clear(); |
| 7776 | } |
| 7777 | |
| 7778 | // Param is passed by value, moved |
| 7779 | pub fn set_path(&mut self, v: ::std::vec::Vec<i32>) { |
| 7780 | self.path = v; |
| 7781 | } |
| 7782 | |
| 7783 | // Mutable pointer to the field. |
| 7784 | pub fn mut_path(&mut self) -> &mut ::std::vec::Vec<i32> { |
| 7785 | &mut self.path |
| 7786 | } |
| 7787 | |
| 7788 | // Take field |
| 7789 | pub fn take_path(&mut self) -> ::std::vec::Vec<i32> { |
| 7790 | ::std::mem::replace(&mut self.path, ::std::vec::Vec::new()) |
| 7791 | } |
| 7792 | |
| 7793 | // repeated int32 span = 2; |
| 7794 | |
| 7795 | |
| 7796 | pub fn get_span(&self) -> &[i32] { |
| 7797 | &self.span |
| 7798 | } |
| 7799 | pub fn clear_span(&mut self) { |
| 7800 | self.span.clear(); |
| 7801 | } |
| 7802 | |
| 7803 | // Param is passed by value, moved |
| 7804 | pub fn set_span(&mut self, v: ::std::vec::Vec<i32>) { |
| 7805 | self.span = v; |
| 7806 | } |
| 7807 | |
| 7808 | // Mutable pointer to the field. |
| 7809 | pub fn mut_span(&mut self) -> &mut ::std::vec::Vec<i32> { |
| 7810 | &mut self.span |
| 7811 | } |
| 7812 | |
| 7813 | // Take field |
| 7814 | pub fn take_span(&mut self) -> ::std::vec::Vec<i32> { |
| 7815 | ::std::mem::replace(&mut self.span, ::std::vec::Vec::new()) |
| 7816 | } |
| 7817 | |
| 7818 | // optional string leading_comments = 3; |
| 7819 | |
| 7820 | |
| 7821 | pub fn get_leading_comments(&self) -> &str { |
| 7822 | match self.leading_comments.as_ref() { |
| 7823 | Some(v) => &v, |
| 7824 | None => "", |
| 7825 | } |
| 7826 | } |
| 7827 | pub fn clear_leading_comments(&mut self) { |
| 7828 | self.leading_comments.clear(); |
| 7829 | } |
| 7830 | |
| 7831 | pub fn has_leading_comments(&self) -> bool { |
| 7832 | self.leading_comments.is_some() |
| 7833 | } |
| 7834 | |
| 7835 | // Param is passed by value, moved |
| 7836 | pub fn set_leading_comments(&mut self, v: ::std::string::String) { |
| 7837 | self.leading_comments = ::protobuf::SingularField::some(v); |
| 7838 | } |
| 7839 | |
| 7840 | // Mutable pointer to the field. |
| 7841 | // If field is not initialized, it is initialized with default value first. |
| 7842 | pub fn mut_leading_comments(&mut self) -> &mut ::std::string::String { |
| 7843 | if self.leading_comments.is_none() { |
| 7844 | self.leading_comments.set_default(); |
| 7845 | } |
| 7846 | self.leading_comments.as_mut().unwrap() |
| 7847 | } |
| 7848 | |
| 7849 | // Take field |
| 7850 | pub fn take_leading_comments(&mut self) -> ::std::string::String { |
| 7851 | self.leading_comments.take().unwrap_or_else(|| ::std::string::String::new()) |
| 7852 | } |
| 7853 | |
| 7854 | // optional string trailing_comments = 4; |
| 7855 | |
| 7856 | |
| 7857 | pub fn get_trailing_comments(&self) -> &str { |
| 7858 | match self.trailing_comments.as_ref() { |
| 7859 | Some(v) => &v, |
| 7860 | None => "", |
| 7861 | } |
| 7862 | } |
| 7863 | pub fn clear_trailing_comments(&mut self) { |
| 7864 | self.trailing_comments.clear(); |
| 7865 | } |
| 7866 | |
| 7867 | pub fn has_trailing_comments(&self) -> bool { |
| 7868 | self.trailing_comments.is_some() |
| 7869 | } |
| 7870 | |
| 7871 | // Param is passed by value, moved |
| 7872 | pub fn set_trailing_comments(&mut self, v: ::std::string::String) { |
| 7873 | self.trailing_comments = ::protobuf::SingularField::some(v); |
| 7874 | } |
| 7875 | |
| 7876 | // Mutable pointer to the field. |
| 7877 | // If field is not initialized, it is initialized with default value first. |
| 7878 | pub fn mut_trailing_comments(&mut self) -> &mut ::std::string::String { |
| 7879 | if self.trailing_comments.is_none() { |
| 7880 | self.trailing_comments.set_default(); |
| 7881 | } |
| 7882 | self.trailing_comments.as_mut().unwrap() |
| 7883 | } |
| 7884 | |
| 7885 | // Take field |
| 7886 | pub fn take_trailing_comments(&mut self) -> ::std::string::String { |
| 7887 | self.trailing_comments.take().unwrap_or_else(|| ::std::string::String::new()) |
| 7888 | } |
| 7889 | |
| 7890 | // repeated string leading_detached_comments = 6; |
| 7891 | |
| 7892 | |
| 7893 | pub fn get_leading_detached_comments(&self) -> &[::std::string::String] { |
| 7894 | &self.leading_detached_comments |
| 7895 | } |
| 7896 | pub fn clear_leading_detached_comments(&mut self) { |
| 7897 | self.leading_detached_comments.clear(); |
| 7898 | } |
| 7899 | |
| 7900 | // Param is passed by value, moved |
| 7901 | pub fn set_leading_detached_comments(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { |
| 7902 | self.leading_detached_comments = v; |
| 7903 | } |
| 7904 | |
| 7905 | // Mutable pointer to the field. |
| 7906 | pub fn mut_leading_detached_comments(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { |
| 7907 | &mut self.leading_detached_comments |
| 7908 | } |
| 7909 | |
| 7910 | // Take field |
| 7911 | pub fn take_leading_detached_comments(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { |
| 7912 | ::std::mem::replace(&mut self.leading_detached_comments, ::protobuf::RepeatedField::new()) |
| 7913 | } |
| 7914 | } |
| 7915 | |
| 7916 | impl ::protobuf::Message for SourceCodeInfo_Location { |
| 7917 | fn is_initialized(&self) -> bool { |
| 7918 | true |
| 7919 | } |
| 7920 | |
| 7921 | fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 7922 | while !is.eof()? { |
| 7923 | let (field_number, wire_type) = is.read_tag_unpack()?; |
| 7924 | match field_number { |
| 7925 | 1 => { |
| 7926 | ::protobuf::rt::read_repeated_int32_into(wire_type, is, &mut self.path)?; |
| 7927 | }, |
| 7928 | 2 => { |
| 7929 | ::protobuf::rt::read_repeated_int32_into(wire_type, is, &mut self.span)?; |
| 7930 | }, |
| 7931 | 3 => { |
| 7932 | ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.leading_comments)?; |
| 7933 | }, |
| 7934 | 4 => { |
| 7935 | ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.trailing_comments)?; |
| 7936 | }, |
| 7937 | 6 => { |
| 7938 | ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.leading_detached_comments)?; |
| 7939 | }, |
| 7940 | _ => { |
| 7941 | ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| 7942 | }, |
| 7943 | }; |
| 7944 | } |
| 7945 | ::std::result::Result::Ok(()) |
| 7946 | } |
| 7947 | |
| 7948 | // Compute sizes of nested messages |
| 7949 | #[allow(unused_variables)] |
| 7950 | fn compute_size(&self) -> u32 { |
| 7951 | let mut my_size = 0; |
| 7952 | if !self.path.is_empty() { |
| 7953 | my_size += ::protobuf::rt::vec_packed_varint_size(1, &self.path); |
| 7954 | } |
| 7955 | if !self.span.is_empty() { |
| 7956 | my_size += ::protobuf::rt::vec_packed_varint_size(2, &self.span); |
| 7957 | } |
| 7958 | if let Some(ref v) = self.leading_comments.as_ref() { |
| 7959 | my_size += ::protobuf::rt::string_size(3, &v); |
| 7960 | } |
| 7961 | if let Some(ref v) = self.trailing_comments.as_ref() { |
| 7962 | my_size += ::protobuf::rt::string_size(4, &v); |
| 7963 | } |
| 7964 | for value in &self.leading_detached_comments { |
| 7965 | my_size += ::protobuf::rt::string_size(6, &value); |
| 7966 | }; |
| 7967 | my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); |
| 7968 | self.cached_size.set(my_size); |
| 7969 | my_size |
| 7970 | } |
| 7971 | |
| 7972 | fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 7973 | if !self.path.is_empty() { |
| 7974 | os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 7975 | // TODO: Data size is computed again, it should be cached |
| 7976 | os.write_raw_varint32(::protobuf::rt::vec_packed_varint_data_size(&self.path))?; |
| 7977 | for v in &self.path { |
| 7978 | os.write_int32_no_tag(*v)?; |
| 7979 | }; |
| 7980 | } |
| 7981 | if !self.span.is_empty() { |
| 7982 | os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 7983 | // TODO: Data size is computed again, it should be cached |
| 7984 | os.write_raw_varint32(::protobuf::rt::vec_packed_varint_data_size(&self.span))?; |
| 7985 | for v in &self.span { |
| 7986 | os.write_int32_no_tag(*v)?; |
| 7987 | }; |
| 7988 | } |
| 7989 | if let Some(ref v) = self.leading_comments.as_ref() { |
| 7990 | os.write_string(3, &v)?; |
| 7991 | } |
| 7992 | if let Some(ref v) = self.trailing_comments.as_ref() { |
| 7993 | os.write_string(4, &v)?; |
| 7994 | } |
| 7995 | for v in &self.leading_detached_comments { |
| 7996 | os.write_string(6, &v)?; |
| 7997 | }; |
| 7998 | os.write_unknown_fields(self.get_unknown_fields())?; |
| 7999 | ::std::result::Result::Ok(()) |
| 8000 | } |
| 8001 | |
| 8002 | fn get_cached_size(&self) -> u32 { |
| 8003 | self.cached_size.get() |
| 8004 | } |
| 8005 | |
| 8006 | fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { |
| 8007 | &self.unknown_fields |
| 8008 | } |
| 8009 | |
| 8010 | fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { |
| 8011 | &mut self.unknown_fields |
| 8012 | } |
| 8013 | |
| 8014 | fn as_any(&self) -> &dyn (::std::any::Any) { |
| 8015 | self as &dyn (::std::any::Any) |
| 8016 | } |
| 8017 | fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| 8018 | self as &mut dyn (::std::any::Any) |
| 8019 | } |
| 8020 | fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| 8021 | self |
| 8022 | } |
| 8023 | |
| 8024 | fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { |
| 8025 | Self::descriptor_static() |
| 8026 | } |
| 8027 | |
| 8028 | fn new() -> SourceCodeInfo_Location { |
| 8029 | SourceCodeInfo_Location::new() |
| 8030 | } |
| 8031 | |
| 8032 | fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { |
| 8033 | static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; |
| 8034 | unsafe { |
| 8035 | descriptor.get(|| { |
| 8036 | let mut fields = ::std::vec::Vec::new(); |
| 8037 | fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( |
| 8038 | "path", |
| 8039 | |m: &SourceCodeInfo_Location| { &m.path }, |
| 8040 | |m: &mut SourceCodeInfo_Location| { &mut m.path }, |
| 8041 | )); |
| 8042 | fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( |
| 8043 | "span", |
| 8044 | |m: &SourceCodeInfo_Location| { &m.span }, |
| 8045 | |m: &mut SourceCodeInfo_Location| { &mut m.span }, |
| 8046 | )); |
| 8047 | fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( |
| 8048 | "leading_comments", |
| 8049 | |m: &SourceCodeInfo_Location| { &m.leading_comments }, |
| 8050 | |m: &mut SourceCodeInfo_Location| { &mut m.leading_comments }, |
| 8051 | )); |
| 8052 | fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( |
| 8053 | "trailing_comments", |
| 8054 | |m: &SourceCodeInfo_Location| { &m.trailing_comments }, |
| 8055 | |m: &mut SourceCodeInfo_Location| { &mut m.trailing_comments }, |
| 8056 | )); |
| 8057 | fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( |
| 8058 | "leading_detached_comments", |
| 8059 | |m: &SourceCodeInfo_Location| { &m.leading_detached_comments }, |
| 8060 | |m: &mut SourceCodeInfo_Location| { &mut m.leading_detached_comments }, |
| 8061 | )); |
| 8062 | ::protobuf::reflect::MessageDescriptor::new_pb_name::<SourceCodeInfo_Location>( |
| 8063 | "SourceCodeInfo.Location", |
| 8064 | fields, |
| 8065 | file_descriptor_proto() |
| 8066 | ) |
| 8067 | }) |
| 8068 | } |
| 8069 | } |
| 8070 | |
| 8071 | fn default_instance() -> &'static SourceCodeInfo_Location { |
| 8072 | static mut instance: ::protobuf::lazy::Lazy<SourceCodeInfo_Location> = ::protobuf::lazy::Lazy::INIT; |
| 8073 | unsafe { |
| 8074 | instance.get(SourceCodeInfo_Location::new) |
| 8075 | } |
| 8076 | } |
| 8077 | } |
| 8078 | |
| 8079 | impl ::protobuf::Clear for SourceCodeInfo_Location { |
| 8080 | fn clear(&mut self) { |
| 8081 | self.path.clear(); |
| 8082 | self.span.clear(); |
| 8083 | self.leading_comments.clear(); |
| 8084 | self.trailing_comments.clear(); |
| 8085 | self.leading_detached_comments.clear(); |
| 8086 | self.unknown_fields.clear(); |
| 8087 | } |
| 8088 | } |
| 8089 | |
| 8090 | impl ::std::fmt::Debug for SourceCodeInfo_Location { |
| 8091 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| 8092 | ::protobuf::text_format::fmt(self, f) |
| 8093 | } |
| 8094 | } |
| 8095 | |
| 8096 | impl ::protobuf::reflect::ProtobufValue for SourceCodeInfo_Location { |
| 8097 | fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { |
| 8098 | ::protobuf::reflect::ReflectValueRef::Message(self) |
| 8099 | } |
| 8100 | } |
| 8101 | |
| 8102 | #[derive(PartialEq,Clone,Default)] |
| 8103 | #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))] |
| 8104 | pub struct GeneratedCodeInfo { |
| 8105 | // message fields |
| 8106 | annotation: ::protobuf::RepeatedField<GeneratedCodeInfo_Annotation>, |
| 8107 | // special fields |
| 8108 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 8109 | pub unknown_fields: ::protobuf::UnknownFields, |
| 8110 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 8111 | pub cached_size: ::protobuf::CachedSize, |
| 8112 | } |
| 8113 | |
| 8114 | impl<'a> ::std::default::Default for &'a GeneratedCodeInfo { |
| 8115 | fn default() -> &'a GeneratedCodeInfo { |
| 8116 | <GeneratedCodeInfo as ::protobuf::Message>::default_instance() |
| 8117 | } |
| 8118 | } |
| 8119 | |
| 8120 | impl GeneratedCodeInfo { |
| 8121 | pub fn new() -> GeneratedCodeInfo { |
| 8122 | ::std::default::Default::default() |
| 8123 | } |
| 8124 | |
| 8125 | // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; |
| 8126 | |
| 8127 | |
| 8128 | pub fn get_annotation(&self) -> &[GeneratedCodeInfo_Annotation] { |
| 8129 | &self.annotation |
| 8130 | } |
| 8131 | pub fn clear_annotation(&mut self) { |
| 8132 | self.annotation.clear(); |
| 8133 | } |
| 8134 | |
| 8135 | // Param is passed by value, moved |
| 8136 | pub fn set_annotation(&mut self, v: ::protobuf::RepeatedField<GeneratedCodeInfo_Annotation>) { |
| 8137 | self.annotation = v; |
| 8138 | } |
| 8139 | |
| 8140 | // Mutable pointer to the field. |
| 8141 | pub fn mut_annotation(&mut self) -> &mut ::protobuf::RepeatedField<GeneratedCodeInfo_Annotation> { |
| 8142 | &mut self.annotation |
| 8143 | } |
| 8144 | |
| 8145 | // Take field |
| 8146 | pub fn take_annotation(&mut self) -> ::protobuf::RepeatedField<GeneratedCodeInfo_Annotation> { |
| 8147 | ::std::mem::replace(&mut self.annotation, ::protobuf::RepeatedField::new()) |
| 8148 | } |
| 8149 | } |
| 8150 | |
| 8151 | impl ::protobuf::Message for GeneratedCodeInfo { |
| 8152 | fn is_initialized(&self) -> bool { |
| 8153 | for v in &self.annotation { |
| 8154 | if !v.is_initialized() { |
| 8155 | return false; |
| 8156 | } |
| 8157 | }; |
| 8158 | true |
| 8159 | } |
| 8160 | |
| 8161 | fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 8162 | while !is.eof()? { |
| 8163 | let (field_number, wire_type) = is.read_tag_unpack()?; |
| 8164 | match field_number { |
| 8165 | 1 => { |
| 8166 | ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.annotation)?; |
| 8167 | }, |
| 8168 | _ => { |
| 8169 | ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| 8170 | }, |
| 8171 | }; |
| 8172 | } |
| 8173 | ::std::result::Result::Ok(()) |
| 8174 | } |
| 8175 | |
| 8176 | // Compute sizes of nested messages |
| 8177 | #[allow(unused_variables)] |
| 8178 | fn compute_size(&self) -> u32 { |
| 8179 | let mut my_size = 0; |
| 8180 | for value in &self.annotation { |
| 8181 | let len = value.compute_size(); |
| 8182 | my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; |
| 8183 | }; |
| 8184 | my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); |
| 8185 | self.cached_size.set(my_size); |
| 8186 | my_size |
| 8187 | } |
| 8188 | |
| 8189 | fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 8190 | for v in &self.annotation { |
| 8191 | os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 8192 | os.write_raw_varint32(v.get_cached_size())?; |
| 8193 | v.write_to_with_cached_sizes(os)?; |
| 8194 | }; |
| 8195 | os.write_unknown_fields(self.get_unknown_fields())?; |
| 8196 | ::std::result::Result::Ok(()) |
| 8197 | } |
| 8198 | |
| 8199 | fn get_cached_size(&self) -> u32 { |
| 8200 | self.cached_size.get() |
| 8201 | } |
| 8202 | |
| 8203 | fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { |
| 8204 | &self.unknown_fields |
| 8205 | } |
| 8206 | |
| 8207 | fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { |
| 8208 | &mut self.unknown_fields |
| 8209 | } |
| 8210 | |
| 8211 | fn as_any(&self) -> &dyn (::std::any::Any) { |
| 8212 | self as &dyn (::std::any::Any) |
| 8213 | } |
| 8214 | fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| 8215 | self as &mut dyn (::std::any::Any) |
| 8216 | } |
| 8217 | fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| 8218 | self |
| 8219 | } |
| 8220 | |
| 8221 | fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { |
| 8222 | Self::descriptor_static() |
| 8223 | } |
| 8224 | |
| 8225 | fn new() -> GeneratedCodeInfo { |
| 8226 | GeneratedCodeInfo::new() |
| 8227 | } |
| 8228 | |
| 8229 | fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { |
| 8230 | static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; |
| 8231 | unsafe { |
| 8232 | descriptor.get(|| { |
| 8233 | let mut fields = ::std::vec::Vec::new(); |
| 8234 | fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<GeneratedCodeInfo_Annotation>>( |
| 8235 | "annotation", |
| 8236 | |m: &GeneratedCodeInfo| { &m.annotation }, |
| 8237 | |m: &mut GeneratedCodeInfo| { &mut m.annotation }, |
| 8238 | )); |
| 8239 | ::protobuf::reflect::MessageDescriptor::new_pb_name::<GeneratedCodeInfo>( |
| 8240 | "GeneratedCodeInfo", |
| 8241 | fields, |
| 8242 | file_descriptor_proto() |
| 8243 | ) |
| 8244 | }) |
| 8245 | } |
| 8246 | } |
| 8247 | |
| 8248 | fn default_instance() -> &'static GeneratedCodeInfo { |
| 8249 | static mut instance: ::protobuf::lazy::Lazy<GeneratedCodeInfo> = ::protobuf::lazy::Lazy::INIT; |
| 8250 | unsafe { |
| 8251 | instance.get(GeneratedCodeInfo::new) |
| 8252 | } |
| 8253 | } |
| 8254 | } |
| 8255 | |
| 8256 | impl ::protobuf::Clear for GeneratedCodeInfo { |
| 8257 | fn clear(&mut self) { |
| 8258 | self.annotation.clear(); |
| 8259 | self.unknown_fields.clear(); |
| 8260 | } |
| 8261 | } |
| 8262 | |
| 8263 | impl ::std::fmt::Debug for GeneratedCodeInfo { |
| 8264 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| 8265 | ::protobuf::text_format::fmt(self, f) |
| 8266 | } |
| 8267 | } |
| 8268 | |
| 8269 | impl ::protobuf::reflect::ProtobufValue for GeneratedCodeInfo { |
| 8270 | fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { |
| 8271 | ::protobuf::reflect::ReflectValueRef::Message(self) |
| 8272 | } |
| 8273 | } |
| 8274 | |
| 8275 | #[derive(PartialEq,Clone,Default)] |
| 8276 | #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))] |
| 8277 | pub struct GeneratedCodeInfo_Annotation { |
| 8278 | // message fields |
| 8279 | path: ::std::vec::Vec<i32>, |
| 8280 | source_file: ::protobuf::SingularField<::std::string::String>, |
| 8281 | begin: ::std::option::Option<i32>, |
| 8282 | end: ::std::option::Option<i32>, |
| 8283 | // special fields |
| 8284 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 8285 | pub unknown_fields: ::protobuf::UnknownFields, |
| 8286 | #[cfg_attr(feature = "with-serde", serde(skip))] |
| 8287 | pub cached_size: ::protobuf::CachedSize, |
| 8288 | } |
| 8289 | |
| 8290 | impl<'a> ::std::default::Default for &'a GeneratedCodeInfo_Annotation { |
| 8291 | fn default() -> &'a GeneratedCodeInfo_Annotation { |
| 8292 | <GeneratedCodeInfo_Annotation as ::protobuf::Message>::default_instance() |
| 8293 | } |
| 8294 | } |
| 8295 | |
| 8296 | impl GeneratedCodeInfo_Annotation { |
| 8297 | pub fn new() -> GeneratedCodeInfo_Annotation { |
| 8298 | ::std::default::Default::default() |
| 8299 | } |
| 8300 | |
| 8301 | // repeated int32 path = 1; |
| 8302 | |
| 8303 | |
| 8304 | pub fn get_path(&self) -> &[i32] { |
| 8305 | &self.path |
| 8306 | } |
| 8307 | pub fn clear_path(&mut self) { |
| 8308 | self.path.clear(); |
| 8309 | } |
| 8310 | |
| 8311 | // Param is passed by value, moved |
| 8312 | pub fn set_path(&mut self, v: ::std::vec::Vec<i32>) { |
| 8313 | self.path = v; |
| 8314 | } |
| 8315 | |
| 8316 | // Mutable pointer to the field. |
| 8317 | pub fn mut_path(&mut self) -> &mut ::std::vec::Vec<i32> { |
| 8318 | &mut self.path |
| 8319 | } |
| 8320 | |
| 8321 | // Take field |
| 8322 | pub fn take_path(&mut self) -> ::std::vec::Vec<i32> { |
| 8323 | ::std::mem::replace(&mut self.path, ::std::vec::Vec::new()) |
| 8324 | } |
| 8325 | |
| 8326 | // optional string source_file = 2; |
| 8327 | |
| 8328 | |
| 8329 | pub fn get_source_file(&self) -> &str { |
| 8330 | match self.source_file.as_ref() { |
| 8331 | Some(v) => &v, |
| 8332 | None => "", |
| 8333 | } |
| 8334 | } |
| 8335 | pub fn clear_source_file(&mut self) { |
| 8336 | self.source_file.clear(); |
| 8337 | } |
| 8338 | |
| 8339 | pub fn has_source_file(&self) -> bool { |
| 8340 | self.source_file.is_some() |
| 8341 | } |
| 8342 | |
| 8343 | // Param is passed by value, moved |
| 8344 | pub fn set_source_file(&mut self, v: ::std::string::String) { |
| 8345 | self.source_file = ::protobuf::SingularField::some(v); |
| 8346 | } |
| 8347 | |
| 8348 | // Mutable pointer to the field. |
| 8349 | // If field is not initialized, it is initialized with default value first. |
| 8350 | pub fn mut_source_file(&mut self) -> &mut ::std::string::String { |
| 8351 | if self.source_file.is_none() { |
| 8352 | self.source_file.set_default(); |
| 8353 | } |
| 8354 | self.source_file.as_mut().unwrap() |
| 8355 | } |
| 8356 | |
| 8357 | // Take field |
| 8358 | pub fn take_source_file(&mut self) -> ::std::string::String { |
| 8359 | self.source_file.take().unwrap_or_else(|| ::std::string::String::new()) |
| 8360 | } |
| 8361 | |
| 8362 | // optional int32 begin = 3; |
| 8363 | |
| 8364 | |
| 8365 | pub fn get_begin(&self) -> i32 { |
| 8366 | self.begin.unwrap_or(0) |
| 8367 | } |
| 8368 | pub fn clear_begin(&mut self) { |
| 8369 | self.begin = ::std::option::Option::None; |
| 8370 | } |
| 8371 | |
| 8372 | pub fn has_begin(&self) -> bool { |
| 8373 | self.begin.is_some() |
| 8374 | } |
| 8375 | |
| 8376 | // Param is passed by value, moved |
| 8377 | pub fn set_begin(&mut self, v: i32) { |
| 8378 | self.begin = ::std::option::Option::Some(v); |
| 8379 | } |
| 8380 | |
| 8381 | // optional int32 end = 4; |
| 8382 | |
| 8383 | |
| 8384 | pub fn get_end(&self) -> i32 { |
| 8385 | self.end.unwrap_or(0) |
| 8386 | } |
| 8387 | pub fn clear_end(&mut self) { |
| 8388 | self.end = ::std::option::Option::None; |
| 8389 | } |
| 8390 | |
| 8391 | pub fn has_end(&self) -> bool { |
| 8392 | self.end.is_some() |
| 8393 | } |
| 8394 | |
| 8395 | // Param is passed by value, moved |
| 8396 | pub fn set_end(&mut self, v: i32) { |
| 8397 | self.end = ::std::option::Option::Some(v); |
| 8398 | } |
| 8399 | } |
| 8400 | |
| 8401 | impl ::protobuf::Message for GeneratedCodeInfo_Annotation { |
| 8402 | fn is_initialized(&self) -> bool { |
| 8403 | true |
| 8404 | } |
| 8405 | |
| 8406 | fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 8407 | while !is.eof()? { |
| 8408 | let (field_number, wire_type) = is.read_tag_unpack()?; |
| 8409 | match field_number { |
| 8410 | 1 => { |
| 8411 | ::protobuf::rt::read_repeated_int32_into(wire_type, is, &mut self.path)?; |
| 8412 | }, |
| 8413 | 2 => { |
| 8414 | ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.source_file)?; |
| 8415 | }, |
| 8416 | 3 => { |
| 8417 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 8418 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 8419 | } |
| 8420 | let tmp = is.read_int32()?; |
| 8421 | self.begin = ::std::option::Option::Some(tmp); |
| 8422 | }, |
| 8423 | 4 => { |
| 8424 | if wire_type != ::protobuf::wire_format::WireTypeVarint { |
| 8425 | return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); |
| 8426 | } |
| 8427 | let tmp = is.read_int32()?; |
| 8428 | self.end = ::std::option::Option::Some(tmp); |
| 8429 | }, |
| 8430 | _ => { |
| 8431 | ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| 8432 | }, |
| 8433 | }; |
| 8434 | } |
| 8435 | ::std::result::Result::Ok(()) |
| 8436 | } |
| 8437 | |
| 8438 | // Compute sizes of nested messages |
| 8439 | #[allow(unused_variables)] |
| 8440 | fn compute_size(&self) -> u32 { |
| 8441 | let mut my_size = 0; |
| 8442 | if !self.path.is_empty() { |
| 8443 | my_size += ::protobuf::rt::vec_packed_varint_size(1, &self.path); |
| 8444 | } |
| 8445 | if let Some(ref v) = self.source_file.as_ref() { |
| 8446 | my_size += ::protobuf::rt::string_size(2, &v); |
| 8447 | } |
| 8448 | if let Some(v) = self.begin { |
| 8449 | my_size += ::protobuf::rt::value_size(3, v, ::protobuf::wire_format::WireTypeVarint); |
| 8450 | } |
| 8451 | if let Some(v) = self.end { |
| 8452 | my_size += ::protobuf::rt::value_size(4, v, ::protobuf::wire_format::WireTypeVarint); |
| 8453 | } |
| 8454 | my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); |
| 8455 | self.cached_size.set(my_size); |
| 8456 | my_size |
| 8457 | } |
| 8458 | |
| 8459 | fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { |
| 8460 | if !self.path.is_empty() { |
| 8461 | os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; |
| 8462 | // TODO: Data size is computed again, it should be cached |
| 8463 | os.write_raw_varint32(::protobuf::rt::vec_packed_varint_data_size(&self.path))?; |
| 8464 | for v in &self.path { |
| 8465 | os.write_int32_no_tag(*v)?; |
| 8466 | }; |
| 8467 | } |
| 8468 | if let Some(ref v) = self.source_file.as_ref() { |
| 8469 | os.write_string(2, &v)?; |
| 8470 | } |
| 8471 | if let Some(v) = self.begin { |
| 8472 | os.write_int32(3, v)?; |
| 8473 | } |
| 8474 | if let Some(v) = self.end { |
| 8475 | os.write_int32(4, v)?; |
| 8476 | } |
| 8477 | os.write_unknown_fields(self.get_unknown_fields())?; |
| 8478 | ::std::result::Result::Ok(()) |
| 8479 | } |
| 8480 | |
| 8481 | fn get_cached_size(&self) -> u32 { |
| 8482 | self.cached_size.get() |
| 8483 | } |
| 8484 | |
| 8485 | fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { |
| 8486 | &self.unknown_fields |
| 8487 | } |
| 8488 | |
| 8489 | fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { |
| 8490 | &mut self.unknown_fields |
| 8491 | } |
| 8492 | |
| 8493 | fn as_any(&self) -> &dyn (::std::any::Any) { |
| 8494 | self as &dyn (::std::any::Any) |
| 8495 | } |
| 8496 | fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| 8497 | self as &mut dyn (::std::any::Any) |
| 8498 | } |
| 8499 | fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| 8500 | self |
| 8501 | } |
| 8502 | |
| 8503 | fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { |
| 8504 | Self::descriptor_static() |
| 8505 | } |
| 8506 | |
| 8507 | fn new() -> GeneratedCodeInfo_Annotation { |
| 8508 | GeneratedCodeInfo_Annotation::new() |
| 8509 | } |
| 8510 | |
| 8511 | fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { |
| 8512 | static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; |
| 8513 | unsafe { |
| 8514 | descriptor.get(|| { |
| 8515 | let mut fields = ::std::vec::Vec::new(); |
| 8516 | fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( |
| 8517 | "path", |
| 8518 | |m: &GeneratedCodeInfo_Annotation| { &m.path }, |
| 8519 | |m: &mut GeneratedCodeInfo_Annotation| { &mut m.path }, |
| 8520 | )); |
| 8521 | fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( |
| 8522 | "source_file", |
| 8523 | |m: &GeneratedCodeInfo_Annotation| { &m.source_file }, |
| 8524 | |m: &mut GeneratedCodeInfo_Annotation| { &mut m.source_file }, |
| 8525 | )); |
| 8526 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( |
| 8527 | "begin", |
| 8528 | |m: &GeneratedCodeInfo_Annotation| { &m.begin }, |
| 8529 | |m: &mut GeneratedCodeInfo_Annotation| { &mut m.begin }, |
| 8530 | )); |
| 8531 | fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( |
| 8532 | "end", |
| 8533 | |m: &GeneratedCodeInfo_Annotation| { &m.end }, |
| 8534 | |m: &mut GeneratedCodeInfo_Annotation| { &mut m.end }, |
| 8535 | )); |
| 8536 | ::protobuf::reflect::MessageDescriptor::new_pb_name::<GeneratedCodeInfo_Annotation>( |
| 8537 | "GeneratedCodeInfo.Annotation", |
| 8538 | fields, |
| 8539 | file_descriptor_proto() |
| 8540 | ) |
| 8541 | }) |
| 8542 | } |
| 8543 | } |
| 8544 | |
| 8545 | fn default_instance() -> &'static GeneratedCodeInfo_Annotation { |
| 8546 | static mut instance: ::protobuf::lazy::Lazy<GeneratedCodeInfo_Annotation> = ::protobuf::lazy::Lazy::INIT; |
| 8547 | unsafe { |
| 8548 | instance.get(GeneratedCodeInfo_Annotation::new) |
| 8549 | } |
| 8550 | } |
| 8551 | } |
| 8552 | |
| 8553 | impl ::protobuf::Clear for GeneratedCodeInfo_Annotation { |
| 8554 | fn clear(&mut self) { |
| 8555 | self.path.clear(); |
| 8556 | self.source_file.clear(); |
| 8557 | self.begin = ::std::option::Option::None; |
| 8558 | self.end = ::std::option::Option::None; |
| 8559 | self.unknown_fields.clear(); |
| 8560 | } |
| 8561 | } |
| 8562 | |
| 8563 | impl ::std::fmt::Debug for GeneratedCodeInfo_Annotation { |
| 8564 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| 8565 | ::protobuf::text_format::fmt(self, f) |
| 8566 | } |
| 8567 | } |
| 8568 | |
| 8569 | impl ::protobuf::reflect::ProtobufValue for GeneratedCodeInfo_Annotation { |
| 8570 | fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { |
| 8571 | ::protobuf::reflect::ReflectValueRef::Message(self) |
| 8572 | } |
| 8573 | } |
| 8574 | |
| 8575 | static file_descriptor_proto_data: &'static [u8] = b"\ |
| 8576 | \n\x20google/protobuf/descriptor.proto\x12\x0fgoogle.protobuf\"M\n\x11Fi\ |
| 8577 | leDescriptorSet\x128\n\x04file\x18\x01\x20\x03(\x0b2$.google.protobuf.Fi\ |
| 8578 | leDescriptorProtoR\x04file\"\xe4\x04\n\x13FileDescriptorProto\x12\x12\n\ |
| 8579 | \x04name\x18\x01\x20\x01(\tR\x04name\x12\x18\n\x07package\x18\x02\x20\ |
| 8580 | \x01(\tR\x07package\x12\x1e\n\ndependency\x18\x03\x20\x03(\tR\ndependenc\ |
| 8581 | y\x12+\n\x11public_dependency\x18\n\x20\x03(\x05R\x10publicDependency\ |
| 8582 | \x12'\n\x0fweak_dependency\x18\x0b\x20\x03(\x05R\x0eweakDependency\x12C\ |
| 8583 | \n\x0cmessage_type\x18\x04\x20\x03(\x0b2\x20.google.protobuf.DescriptorP\ |
| 8584 | rotoR\x0bmessageType\x12A\n\tenum_type\x18\x05\x20\x03(\x0b2$.google.pro\ |
| 8585 | tobuf.EnumDescriptorProtoR\x08enumType\x12A\n\x07service\x18\x06\x20\x03\ |
| 8586 | (\x0b2'.google.protobuf.ServiceDescriptorProtoR\x07service\x12C\n\texten\ |
| 8587 | sion\x18\x07\x20\x03(\x0b2%.google.protobuf.FieldDescriptorProtoR\texten\ |
| 8588 | sion\x126\n\x07options\x18\x08\x20\x01(\x0b2\x1c.google.protobuf.FileOpt\ |
| 8589 | ionsR\x07options\x12I\n\x10source_code_info\x18\t\x20\x01(\x0b2\x1f.goog\ |
| 8590 | le.protobuf.SourceCodeInfoR\x0esourceCodeInfo\x12\x16\n\x06syntax\x18\ |
| 8591 | \x0c\x20\x01(\tR\x06syntax\"\xf7\x05\n\x0fDescriptorProto\x12\x12\n\x04n\ |
| 8592 | ame\x18\x01\x20\x01(\tR\x04name\x12;\n\x05field\x18\x02\x20\x03(\x0b2%.g\ |
| 8593 | oogle.protobuf.FieldDescriptorProtoR\x05field\x12C\n\textension\x18\x06\ |
| 8594 | \x20\x03(\x0b2%.google.protobuf.FieldDescriptorProtoR\textension\x12A\n\ |
| 8595 | \x0bnested_type\x18\x03\x20\x03(\x0b2\x20.google.protobuf.DescriptorProt\ |
| 8596 | oR\nnestedType\x12A\n\tenum_type\x18\x04\x20\x03(\x0b2$.google.protobuf.\ |
| 8597 | EnumDescriptorProtoR\x08enumType\x12X\n\x0fextension_range\x18\x05\x20\ |
| 8598 | \x03(\x0b2/.google.protobuf.DescriptorProto.ExtensionRangeR\x0eextension\ |
| 8599 | Range\x12D\n\noneof_decl\x18\x08\x20\x03(\x0b2%.google.protobuf.OneofDes\ |
| 8600 | criptorProtoR\toneofDecl\x129\n\x07options\x18\x07\x20\x01(\x0b2\x1f.goo\ |
| 8601 | gle.protobuf.MessageOptionsR\x07options\x12U\n\x0ereserved_range\x18\t\ |
| 8602 | \x20\x03(\x0b2..google.protobuf.DescriptorProto.ReservedRangeR\rreserved\ |
| 8603 | Range\x12#\n\rreserved_name\x18\n\x20\x03(\tR\x0creservedName\x1a8\n\x0e\ |
| 8604 | ExtensionRange\x12\x14\n\x05start\x18\x01\x20\x01(\x05R\x05start\x12\x10\ |
| 8605 | \n\x03end\x18\x02\x20\x01(\x05R\x03end\x1a7\n\rReservedRange\x12\x14\n\ |
| 8606 | \x05start\x18\x01\x20\x01(\x05R\x05start\x12\x10\n\x03end\x18\x02\x20\ |
| 8607 | \x01(\x05R\x03end\"\x98\x06\n\x14FieldDescriptorProto\x12\x12\n\x04name\ |
| 8608 | \x18\x01\x20\x01(\tR\x04name\x12\x16\n\x06number\x18\x03\x20\x01(\x05R\ |
| 8609 | \x06number\x12A\n\x05label\x18\x04\x20\x01(\x0e2+.google.protobuf.FieldD\ |
| 8610 | escriptorProto.LabelR\x05label\x12>\n\x04type\x18\x05\x20\x01(\x0e2*.goo\ |
| 8611 | gle.protobuf.FieldDescriptorProto.TypeR\x04type\x12\x1b\n\ttype_name\x18\ |
| 8612 | \x06\x20\x01(\tR\x08typeName\x12\x1a\n\x08extendee\x18\x02\x20\x01(\tR\ |
| 8613 | \x08extendee\x12#\n\rdefault_value\x18\x07\x20\x01(\tR\x0cdefaultValue\ |
| 8614 | \x12\x1f\n\x0boneof_index\x18\t\x20\x01(\x05R\noneofIndex\x12\x1b\n\tjso\ |
| 8615 | n_name\x18\n\x20\x01(\tR\x08jsonName\x127\n\x07options\x18\x08\x20\x01(\ |
| 8616 | \x0b2\x1d.google.protobuf.FieldOptionsR\x07options\"\xb6\x02\n\x04Type\ |
| 8617 | \x12\x0f\n\x0bTYPE_DOUBLE\x10\x01\x12\x0e\n\nTYPE_FLOAT\x10\x02\x12\x0e\ |
| 8618 | \n\nTYPE_INT64\x10\x03\x12\x0f\n\x0bTYPE_UINT64\x10\x04\x12\x0e\n\nTYPE_\ |
| 8619 | INT32\x10\x05\x12\x10\n\x0cTYPE_FIXED64\x10\x06\x12\x10\n\x0cTYPE_FIXED3\ |
| 8620 | 2\x10\x07\x12\r\n\tTYPE_BOOL\x10\x08\x12\x0f\n\x0bTYPE_STRING\x10\t\x12\ |
| 8621 | \x0e\n\nTYPE_GROUP\x10\n\x12\x10\n\x0cTYPE_MESSAGE\x10\x0b\x12\x0e\n\nTY\ |
| 8622 | PE_BYTES\x10\x0c\x12\x0f\n\x0bTYPE_UINT32\x10\r\x12\r\n\tTYPE_ENUM\x10\ |
| 8623 | \x0e\x12\x11\n\rTYPE_SFIXED32\x10\x0f\x12\x11\n\rTYPE_SFIXED64\x10\x10\ |
| 8624 | \x12\x0f\n\x0bTYPE_SINT32\x10\x11\x12\x0f\n\x0bTYPE_SINT64\x10\x12\"C\n\ |
| 8625 | \x05Label\x12\x12\n\x0eLABEL_OPTIONAL\x10\x01\x12\x12\n\x0eLABEL_REQUIRE\ |
| 8626 | D\x10\x02\x12\x12\n\x0eLABEL_REPEATED\x10\x03\"c\n\x14OneofDescriptorPro\ |
| 8627 | to\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x127\n\x07options\x18\ |
| 8628 | \x02\x20\x01(\x0b2\x1d.google.protobuf.OneofOptionsR\x07options\"\xa2\ |
| 8629 | \x01\n\x13EnumDescriptorProto\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04n\ |
| 8630 | ame\x12?\n\x05value\x18\x02\x20\x03(\x0b2).google.protobuf.EnumValueDesc\ |
| 8631 | riptorProtoR\x05value\x126\n\x07options\x18\x03\x20\x01(\x0b2\x1c.google\ |
| 8632 | .protobuf.EnumOptionsR\x07options\"\x83\x01\n\x18EnumValueDescriptorProt\ |
| 8633 | o\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12\x16\n\x06number\x18\ |
| 8634 | \x02\x20\x01(\x05R\x06number\x12;\n\x07options\x18\x03\x20\x01(\x0b2!.go\ |
| 8635 | ogle.protobuf.EnumValueOptionsR\x07options\"\xa7\x01\n\x16ServiceDescrip\ |
| 8636 | torProto\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12>\n\x06method\ |
| 8637 | \x18\x02\x20\x03(\x0b2&.google.protobuf.MethodDescriptorProtoR\x06method\ |
| 8638 | \x129\n\x07options\x18\x03\x20\x01(\x0b2\x1f.google.protobuf.ServiceOpti\ |
| 8639 | onsR\x07options\"\x89\x02\n\x15MethodDescriptorProto\x12\x12\n\x04name\ |
| 8640 | \x18\x01\x20\x01(\tR\x04name\x12\x1d\n\ninput_type\x18\x02\x20\x01(\tR\t\ |
| 8641 | inputType\x12\x1f\n\x0boutput_type\x18\x03\x20\x01(\tR\noutputType\x128\ |
| 8642 | \n\x07options\x18\x04\x20\x01(\x0b2\x1e.google.protobuf.MethodOptionsR\ |
| 8643 | \x07options\x120\n\x10client_streaming\x18\x05\x20\x01(\x08:\x05falseR\ |
| 8644 | \x0fclientStreaming\x120\n\x10server_streaming\x18\x06\x20\x01(\x08:\x05\ |
| 8645 | falseR\x0fserverStreaming\"\x88\x07\n\x0bFileOptions\x12!\n\x0cjava_pack\ |
| 8646 | age\x18\x01\x20\x01(\tR\x0bjavaPackage\x120\n\x14java_outer_classname\ |
| 8647 | \x18\x08\x20\x01(\tR\x12javaOuterClassname\x125\n\x13java_multiple_files\ |
| 8648 | \x18\n\x20\x01(\x08:\x05falseR\x11javaMultipleFiles\x12D\n\x1djava_gener\ |
| 8649 | ate_equals_and_hash\x18\x14\x20\x01(\x08R\x19javaGenerateEqualsAndHashB\ |
| 8650 | \x02\x18\x01\x12:\n\x16java_string_check_utf8\x18\x1b\x20\x01(\x08:\x05f\ |
| 8651 | alseR\x13javaStringCheckUtf8\x12S\n\x0coptimize_for\x18\t\x20\x01(\x0e2)\ |
| 8652 | .google.protobuf.FileOptions.OptimizeMode:\x05SPEEDR\x0boptimizeFor\x12\ |
| 8653 | \x1d\n\ngo_package\x18\x0b\x20\x01(\tR\tgoPackage\x125\n\x13cc_generic_s\ |
| 8654 | ervices\x18\x10\x20\x01(\x08:\x05falseR\x11ccGenericServices\x129\n\x15j\ |
| 8655 | ava_generic_services\x18\x11\x20\x01(\x08:\x05falseR\x13javaGenericServi\ |
| 8656 | ces\x125\n\x13py_generic_services\x18\x12\x20\x01(\x08:\x05falseR\x11pyG\ |
| 8657 | enericServices\x12%\n\ndeprecated\x18\x17\x20\x01(\x08:\x05falseR\ndepre\ |
| 8658 | cated\x12/\n\x10cc_enable_arenas\x18\x1f\x20\x01(\x08:\x05falseR\x0eccEn\ |
| 8659 | ableArenas\x12*\n\x11objc_class_prefix\x18$\x20\x01(\tR\x0fobjcClassPref\ |
| 8660 | ix\x12)\n\x10csharp_namespace\x18%\x20\x01(\tR\x0fcsharpNamespace\x12X\n\ |
| 8661 | \x14uninterpreted_option\x18\xe7\x07\x20\x03(\x0b2$.google.protobuf.Unin\ |
| 8662 | terpretedOptionR\x13uninterpretedOption\":\n\x0cOptimizeMode\x12\t\n\x05\ |
| 8663 | SPEED\x10\x01\x12\r\n\tCODE_SIZE\x10\x02\x12\x10\n\x0cLITE_RUNTIME\x10\ |
| 8664 | \x03*\t\x08\xe8\x07\x10\x80\x80\x80\x80\x02\"\xc5\x02\n\x0eMessageOption\ |
| 8665 | s\x12<\n\x17message_set_wire_format\x18\x01\x20\x01(\x08:\x05falseR\x14m\ |
| 8666 | essageSetWireFormat\x12L\n\x1fno_standard_descriptor_accessor\x18\x02\ |
| 8667 | \x20\x01(\x08:\x05falseR\x1cnoStandardDescriptorAccessor\x12%\n\ndepreca\ |
| 8668 | ted\x18\x03\x20\x01(\x08:\x05falseR\ndeprecated\x12\x1b\n\tmap_entry\x18\ |
| 8669 | \x07\x20\x01(\x08R\x08mapEntry\x12X\n\x14uninterpreted_option\x18\xe7\ |
| 8670 | \x07\x20\x03(\x0b2$.google.protobuf.UninterpretedOptionR\x13uninterprete\ |
| 8671 | dOption*\t\x08\xe8\x07\x10\x80\x80\x80\x80\x02\"\xdc\x03\n\x0cFieldOptio\ |
| 8672 | ns\x12A\n\x05ctype\x18\x01\x20\x01(\x0e2#.google.protobuf.FieldOptions.C\ |
| 8673 | Type:\x06STRINGR\x05ctype\x12\x16\n\x06packed\x18\x02\x20\x01(\x08R\x06p\ |
| 8674 | acked\x12G\n\x06jstype\x18\x06\x20\x01(\x0e2$.google.protobuf.FieldOptio\ |
| 8675 | ns.JSType:\tJS_NORMALR\x06jstype\x12\x19\n\x04lazy\x18\x05\x20\x01(\x08:\ |
| 8676 | \x05falseR\x04lazy\x12%\n\ndeprecated\x18\x03\x20\x01(\x08:\x05falseR\nd\ |
| 8677 | eprecated\x12\x19\n\x04weak\x18\n\x20\x01(\x08:\x05falseR\x04weak\x12X\n\ |
| 8678 | \x14uninterpreted_option\x18\xe7\x07\x20\x03(\x0b2$.google.protobuf.Unin\ |
| 8679 | terpretedOptionR\x13uninterpretedOption\"/\n\x05CType\x12\n\n\x06STRING\ |
| 8680 | \x10\0\x12\x08\n\x04CORD\x10\x01\x12\x10\n\x0cSTRING_PIECE\x10\x02\"5\n\ |
| 8681 | \x06JSType\x12\r\n\tJS_NORMAL\x10\0\x12\r\n\tJS_STRING\x10\x01\x12\r\n\t\ |
| 8682 | JS_NUMBER\x10\x02*\t\x08\xe8\x07\x10\x80\x80\x80\x80\x02\"s\n\x0cOneofOp\ |
| 8683 | tions\x12X\n\x14uninterpreted_option\x18\xe7\x07\x20\x03(\x0b2$.google.p\ |
| 8684 | rotobuf.UninterpretedOptionR\x13uninterpretedOption*\t\x08\xe8\x07\x10\ |
| 8685 | \x80\x80\x80\x80\x02\"\xba\x01\n\x0bEnumOptions\x12\x1f\n\x0ballow_alias\ |
| 8686 | \x18\x02\x20\x01(\x08R\nallowAlias\x12%\n\ndeprecated\x18\x03\x20\x01(\ |
| 8687 | \x08:\x05falseR\ndeprecated\x12X\n\x14uninterpreted_option\x18\xe7\x07\ |
| 8688 | \x20\x03(\x0b2$.google.protobuf.UninterpretedOptionR\x13uninterpretedOpt\ |
| 8689 | ion*\t\x08\xe8\x07\x10\x80\x80\x80\x80\x02\"\x9e\x01\n\x10EnumValueOptio\ |
| 8690 | ns\x12%\n\ndeprecated\x18\x01\x20\x01(\x08:\x05falseR\ndeprecated\x12X\n\ |
| 8691 | \x14uninterpreted_option\x18\xe7\x07\x20\x03(\x0b2$.google.protobuf.Unin\ |
| 8692 | terpretedOptionR\x13uninterpretedOption*\t\x08\xe8\x07\x10\x80\x80\x80\ |
| 8693 | \x80\x02\"\x9c\x01\n\x0eServiceOptions\x12%\n\ndeprecated\x18!\x20\x01(\ |
| 8694 | \x08:\x05falseR\ndeprecated\x12X\n\x14uninterpreted_option\x18\xe7\x07\ |
| 8695 | \x20\x03(\x0b2$.google.protobuf.UninterpretedOptionR\x13uninterpretedOpt\ |
| 8696 | ion*\t\x08\xe8\x07\x10\x80\x80\x80\x80\x02\"\x9b\x01\n\rMethodOptions\ |
| 8697 | \x12%\n\ndeprecated\x18!\x20\x01(\x08:\x05falseR\ndeprecated\x12X\n\x14u\ |
| 8698 | ninterpreted_option\x18\xe7\x07\x20\x03(\x0b2$.google.protobuf.Uninterpr\ |
| 8699 | etedOptionR\x13uninterpretedOption*\t\x08\xe8\x07\x10\x80\x80\x80\x80\ |
| 8700 | \x02\"\x9a\x03\n\x13UninterpretedOption\x12A\n\x04name\x18\x02\x20\x03(\ |
| 8701 | \x0b2-.google.protobuf.UninterpretedOption.NamePartR\x04name\x12)\n\x10i\ |
| 8702 | dentifier_value\x18\x03\x20\x01(\tR\x0fidentifierValue\x12,\n\x12positiv\ |
| 8703 | e_int_value\x18\x04\x20\x01(\x04R\x10positiveIntValue\x12,\n\x12negative\ |
| 8704 | _int_value\x18\x05\x20\x01(\x03R\x10negativeIntValue\x12!\n\x0cdouble_va\ |
| 8705 | lue\x18\x06\x20\x01(\x01R\x0bdoubleValue\x12!\n\x0cstring_value\x18\x07\ |
| 8706 | \x20\x01(\x0cR\x0bstringValue\x12'\n\x0faggregate_value\x18\x08\x20\x01(\ |
| 8707 | \tR\x0eaggregateValue\x1aJ\n\x08NamePart\x12\x1b\n\tname_part\x18\x01\ |
| 8708 | \x20\x02(\tR\x08namePart\x12!\n\x0cis_extension\x18\x02\x20\x02(\x08R\ |
| 8709 | \x0bisExtension\"\xa7\x02\n\x0eSourceCodeInfo\x12D\n\x08location\x18\x01\ |
| 8710 | \x20\x03(\x0b2(.google.protobuf.SourceCodeInfo.LocationR\x08location\x1a\ |
| 8711 | \xce\x01\n\x08Location\x12\x16\n\x04path\x18\x01\x20\x03(\x05R\x04pathB\ |
| 8712 | \x02\x10\x01\x12\x16\n\x04span\x18\x02\x20\x03(\x05R\x04spanB\x02\x10\ |
| 8713 | \x01\x12)\n\x10leading_comments\x18\x03\x20\x01(\tR\x0fleadingComments\ |
| 8714 | \x12+\n\x11trailing_comments\x18\x04\x20\x01(\tR\x10trailingComments\x12\ |
| 8715 | :\n\x19leading_detached_comments\x18\x06\x20\x03(\tR\x17leadingDetachedC\ |
| 8716 | omments\"\xd1\x01\n\x11GeneratedCodeInfo\x12M\n\nannotation\x18\x01\x20\ |
| 8717 | \x03(\x0b2-.google.protobuf.GeneratedCodeInfo.AnnotationR\nannotation\ |
| 8718 | \x1am\n\nAnnotation\x12\x16\n\x04path\x18\x01\x20\x03(\x05R\x04pathB\x02\ |
| 8719 | \x10\x01\x12\x1f\n\x0bsource_file\x18\x02\x20\x01(\tR\nsourceFile\x12\ |
| 8720 | \x14\n\x05begin\x18\x03\x20\x01(\x05R\x05begin\x12\x10\n\x03end\x18\x04\ |
| 8721 | \x20\x01(\x05R\x03endBX\n\x13com.google.protobufB\x10DescriptorProtosH\ |
| 8722 | \x01Z\ndescriptor\xa2\x02\x03GPB\xaa\x02\x1aGoogle.Protobuf.ReflectionJ\ |
| 8723 | \xb3\x9f\x02\n\x07\x12\x05'\0\xa3\x06\x01\n\xaa\x0f\n\x01\x0c\x12\x03'\0\ |
| 8724 | \x122\xc1\x0c\x20Protocol\x20Buffers\x20-\x20Google's\x20data\x20interch\ |
| 8725 | ange\x20format\n\x20Copyright\x202008\x20Google\x20Inc.\x20\x20All\x20ri\ |
| 8726 | ghts\x20reserved.\n\x20https://developers.google.com/protocol-buffers/\n\ |
| 8727 | \n\x20Redistribution\x20and\x20use\x20in\x20source\x20and\x20binary\x20f\ |
| 8728 | orms,\x20with\x20or\x20without\n\x20modification,\x20are\x20permitted\ |
| 8729 | \x20provided\x20that\x20the\x20following\x20conditions\x20are\n\x20met:\ |
| 8730 | \n\n\x20\x20\x20\x20\x20*\x20Redistributions\x20of\x20source\x20code\x20\ |
| 8731 | must\x20retain\x20the\x20above\x20copyright\n\x20notice,\x20this\x20list\ |
| 8732 | \x20of\x20conditions\x20and\x20the\x20following\x20disclaimer.\n\x20\x20\ |
| 8733 | \x20\x20\x20*\x20Redistributions\x20in\x20binary\x20form\x20must\x20repr\ |
| 8734 | oduce\x20the\x20above\n\x20copyright\x20notice,\x20this\x20list\x20of\ |
| 8735 | \x20conditions\x20and\x20the\x20following\x20disclaimer\n\x20in\x20the\ |
| 8736 | \x20documentation\x20and/or\x20other\x20materials\x20provided\x20with\ |
| 8737 | \x20the\n\x20distribution.\n\x20\x20\x20\x20\x20*\x20Neither\x20the\x20n\ |
| 8738 | ame\x20of\x20Google\x20Inc.\x20nor\x20the\x20names\x20of\x20its\n\x20con\ |
| 8739 | tributors\x20may\x20be\x20used\x20to\x20endorse\x20or\x20promote\x20prod\ |
| 8740 | ucts\x20derived\x20from\n\x20this\x20software\x20without\x20specific\x20\ |
| 8741 | prior\x20written\x20permission.\n\n\x20THIS\x20SOFTWARE\x20IS\x20PROVIDE\ |
| 8742 | D\x20BY\x20THE\x20COPYRIGHT\x20HOLDERS\x20AND\x20CONTRIBUTORS\n\x20\"AS\ |
| 8743 | \x20IS\"\x20AND\x20ANY\x20EXPRESS\x20OR\x20IMPLIED\x20WARRANTIES,\x20INC\ |
| 8744 | LUDING,\x20BUT\x20NOT\n\x20LIMITED\x20TO,\x20THE\x20IMPLIED\x20WARRANTIE\ |
| 8745 | S\x20OF\x20MERCHANTABILITY\x20AND\x20FITNESS\x20FOR\n\x20A\x20PARTICULAR\ |
| 8746 | \x20PURPOSE\x20ARE\x20DISCLAIMED.\x20IN\x20NO\x20EVENT\x20SHALL\x20THE\ |
| 8747 | \x20COPYRIGHT\n\x20OWNER\x20OR\x20CONTRIBUTORS\x20BE\x20LIABLE\x20FOR\ |
| 8748 | \x20ANY\x20DIRECT,\x20INDIRECT,\x20INCIDENTAL,\n\x20SPECIAL,\x20EXEMPLAR\ |
| 8749 | Y,\x20OR\x20CONSEQUENTIAL\x20DAMAGES\x20(INCLUDING,\x20BUT\x20NOT\n\x20L\ |
| 8750 | IMITED\x20TO,\x20PROCUREMENT\x20OF\x20SUBSTITUTE\x20GOODS\x20OR\x20SERVI\ |
| 8751 | CES;\x20LOSS\x20OF\x20USE,\n\x20DATA,\x20OR\x20PROFITS;\x20OR\x20BUSINES\ |
| 8752 | S\x20INTERRUPTION)\x20HOWEVER\x20CAUSED\x20AND\x20ON\x20ANY\n\x20THEORY\ |
| 8753 | \x20OF\x20LIABILITY,\x20WHETHER\x20IN\x20CONTRACT,\x20STRICT\x20LIABILIT\ |
| 8754 | Y,\x20OR\x20TORT\n\x20(INCLUDING\x20NEGLIGENCE\x20OR\x20OTHERWISE)\x20AR\ |
| 8755 | ISING\x20IN\x20ANY\x20WAY\x20OUT\x20OF\x20THE\x20USE\n\x20OF\x20THIS\x20\ |
| 8756 | SOFTWARE,\x20EVEN\x20IF\x20ADVISED\x20OF\x20THE\x20POSSIBILITY\x20OF\x20\ |
| 8757 | SUCH\x20DAMAGE.\n2\xdb\x02\x20Author:\x20kenton@google.com\x20(Kenton\ |
| 8758 | \x20Varda)\n\x20\x20Based\x20on\x20original\x20Protocol\x20Buffers\x20de\ |
| 8759 | sign\x20by\n\x20\x20Sanjay\x20Ghemawat,\x20Jeff\x20Dean,\x20and\x20other\ |
| 8760 | s.\n\n\x20The\x20messages\x20in\x20this\x20file\x20describe\x20the\x20de\ |
| 8761 | finitions\x20found\x20in\x20.proto\x20files.\n\x20A\x20valid\x20.proto\ |
| 8762 | \x20file\x20can\x20be\x20translated\x20directly\x20to\x20a\x20FileDescri\ |
| 8763 | ptorProto\n\x20without\x20any\x20other\x20information\x20(e.g.\x20withou\ |
| 8764 | t\x20reading\x20its\x20imports).\n\n\x08\n\x01\x02\x12\x03)\0\x18\n\x08\ |
| 8765 | \n\x01\x08\x12\x03*\0!\n\t\n\x02\x08\x0b\x12\x03*\0!\n\x08\n\x01\x08\x12\ |
| 8766 | \x03+\0,\n\t\n\x02\x08\x01\x12\x03+\0,\n\x08\n\x01\x08\x12\x03,\01\n\t\n\ |
| 8767 | \x02\x08\x08\x12\x03,\01\n\x08\n\x01\x08\x12\x03-\07\n\t\n\x02\x08%\x12\ |
| 8768 | \x03-\07\n\x08\n\x01\x08\x12\x03.\0!\n\t\n\x02\x08$\x12\x03.\0!\n\x08\n\ |
| 8769 | \x01\x08\x12\x032\0\x1c\n\x7f\n\x02\x08\t\x12\x032\0\x1c\x1at\x20descrip\ |
| 8770 | tor.proto\x20must\x20be\x20optimized\x20for\x20speed\x20because\x20refle\ |
| 8771 | ction-based\n\x20algorithms\x20don't\x20work\x20during\x20bootstrapping.\ |
| 8772 | \n\nj\n\x02\x04\0\x12\x046\08\x01\x1a^\x20The\x20protocol\x20compiler\ |
| 8773 | \x20can\x20output\x20a\x20FileDescriptorSet\x20containing\x20the\x20.pro\ |
| 8774 | to\n\x20files\x20it\x20parses.\n\n\n\n\x03\x04\0\x01\x12\x036\x08\x19\n\ |
| 8775 | \x0b\n\x04\x04\0\x02\0\x12\x037\x02(\n\x0c\n\x05\x04\0\x02\0\x04\x12\x03\ |
| 8776 | 7\x02\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x037\x0b\x1e\n\x0c\n\x05\x04\0\ |
| 8777 | \x02\0\x01\x12\x037\x1f#\n\x0c\n\x05\x04\0\x02\0\x03\x12\x037&'\n/\n\x02\ |
| 8778 | \x04\x01\x12\x04;\0X\x01\x1a#\x20Describes\x20a\x20complete\x20.proto\ |
| 8779 | \x20file.\n\n\n\n\x03\x04\x01\x01\x12\x03;\x08\x1b\n9\n\x04\x04\x01\x02\ |
| 8780 | \0\x12\x03<\x02\x1b\",\x20file\x20name,\x20relative\x20to\x20root\x20of\ |
| 8781 | \x20source\x20tree\n\n\x0c\n\x05\x04\x01\x02\0\x04\x12\x03<\x02\n\n\x0c\ |
| 8782 | \n\x05\x04\x01\x02\0\x05\x12\x03<\x0b\x11\n\x0c\n\x05\x04\x01\x02\0\x01\ |
| 8783 | \x12\x03<\x12\x16\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03<\x19\x1a\n*\n\ |
| 8784 | \x04\x04\x01\x02\x01\x12\x03=\x02\x1e\"\x1d\x20e.g.\x20\"foo\",\x20\"foo\ |
| 8785 | .bar\",\x20etc.\n\n\x0c\n\x05\x04\x01\x02\x01\x04\x12\x03=\x02\n\n\x0c\n\ |
| 8786 | \x05\x04\x01\x02\x01\x05\x12\x03=\x0b\x11\n\x0c\n\x05\x04\x01\x02\x01\ |
| 8787 | \x01\x12\x03=\x12\x19\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03=\x1c\x1d\n\ |
| 8788 | 4\n\x04\x04\x01\x02\x02\x12\x03@\x02!\x1a'\x20Names\x20of\x20files\x20im\ |
| 8789 | ported\x20by\x20this\x20file.\n\n\x0c\n\x05\x04\x01\x02\x02\x04\x12\x03@\ |
| 8790 | \x02\n\n\x0c\n\x05\x04\x01\x02\x02\x05\x12\x03@\x0b\x11\n\x0c\n\x05\x04\ |
| 8791 | \x01\x02\x02\x01\x12\x03@\x12\x1c\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\ |
| 8792 | \x03@\x1f\x20\nQ\n\x04\x04\x01\x02\x03\x12\x03B\x02(\x1aD\x20Indexes\x20\ |
| 8793 | of\x20the\x20public\x20imported\x20files\x20in\x20the\x20dependency\x20l\ |
| 8794 | ist\x20above.\n\n\x0c\n\x05\x04\x01\x02\x03\x04\x12\x03B\x02\n\n\x0c\n\ |
| 8795 | \x05\x04\x01\x02\x03\x05\x12\x03B\x0b\x10\n\x0c\n\x05\x04\x01\x02\x03\ |
| 8796 | \x01\x12\x03B\x11\"\n\x0c\n\x05\x04\x01\x02\x03\x03\x12\x03B%'\nz\n\x04\ |
| 8797 | \x04\x01\x02\x04\x12\x03E\x02&\x1am\x20Indexes\x20of\x20the\x20weak\x20i\ |
| 8798 | mported\x20files\x20in\x20the\x20dependency\x20list.\n\x20For\x20Google-\ |
| 8799 | internal\x20migration\x20only.\x20Do\x20not\x20use.\n\n\x0c\n\x05\x04\ |
| 8800 | \x01\x02\x04\x04\x12\x03E\x02\n\n\x0c\n\x05\x04\x01\x02\x04\x05\x12\x03E\ |
| 8801 | \x0b\x10\n\x0c\n\x05\x04\x01\x02\x04\x01\x12\x03E\x11\x20\n\x0c\n\x05\ |
| 8802 | \x04\x01\x02\x04\x03\x12\x03E#%\n6\n\x04\x04\x01\x02\x05\x12\x03H\x02,\ |
| 8803 | \x1a)\x20All\x20top-level\x20definitions\x20in\x20this\x20file.\n\n\x0c\ |
| 8804 | \n\x05\x04\x01\x02\x05\x04\x12\x03H\x02\n\n\x0c\n\x05\x04\x01\x02\x05\ |
| 8805 | \x06\x12\x03H\x0b\x1a\n\x0c\n\x05\x04\x01\x02\x05\x01\x12\x03H\x1b'\n\ |
| 8806 | \x0c\n\x05\x04\x01\x02\x05\x03\x12\x03H*+\n\x0b\n\x04\x04\x01\x02\x06\ |
| 8807 | \x12\x03I\x02-\n\x0c\n\x05\x04\x01\x02\x06\x04\x12\x03I\x02\n\n\x0c\n\ |
| 8808 | \x05\x04\x01\x02\x06\x06\x12\x03I\x0b\x1e\n\x0c\n\x05\x04\x01\x02\x06\ |
| 8809 | \x01\x12\x03I\x1f(\n\x0c\n\x05\x04\x01\x02\x06\x03\x12\x03I+,\n\x0b\n\ |
| 8810 | \x04\x04\x01\x02\x07\x12\x03J\x02.\n\x0c\n\x05\x04\x01\x02\x07\x04\x12\ |
| 8811 | \x03J\x02\n\n\x0c\n\x05\x04\x01\x02\x07\x06\x12\x03J\x0b!\n\x0c\n\x05\ |
| 8812 | \x04\x01\x02\x07\x01\x12\x03J\")\n\x0c\n\x05\x04\x01\x02\x07\x03\x12\x03\ |
| 8813 | J,-\n\x0b\n\x04\x04\x01\x02\x08\x12\x03K\x02.\n\x0c\n\x05\x04\x01\x02\ |
| 8814 | \x08\x04\x12\x03K\x02\n\n\x0c\n\x05\x04\x01\x02\x08\x06\x12\x03K\x0b\x1f\ |
| 8815 | \n\x0c\n\x05\x04\x01\x02\x08\x01\x12\x03K\x20)\n\x0c\n\x05\x04\x01\x02\ |
| 8816 | \x08\x03\x12\x03K,-\n\x0b\n\x04\x04\x01\x02\t\x12\x03M\x02#\n\x0c\n\x05\ |
| 8817 | \x04\x01\x02\t\x04\x12\x03M\x02\n\n\x0c\n\x05\x04\x01\x02\t\x06\x12\x03M\ |
| 8818 | \x0b\x16\n\x0c\n\x05\x04\x01\x02\t\x01\x12\x03M\x17\x1e\n\x0c\n\x05\x04\ |
| 8819 | \x01\x02\t\x03\x12\x03M!\"\n\xf4\x01\n\x04\x04\x01\x02\n\x12\x03S\x02/\ |
| 8820 | \x1a\xe6\x01\x20This\x20field\x20contains\x20optional\x20information\x20\ |
| 8821 | about\x20the\x20original\x20source\x20code.\n\x20You\x20may\x20safely\ |
| 8822 | \x20remove\x20this\x20entire\x20field\x20without\x20harming\x20runtime\n\ |
| 8823 | \x20functionality\x20of\x20the\x20descriptors\x20--\x20the\x20informatio\ |
| 8824 | n\x20is\x20needed\x20only\x20by\n\x20development\x20tools.\n\n\x0c\n\x05\ |
| 8825 | \x04\x01\x02\n\x04\x12\x03S\x02\n\n\x0c\n\x05\x04\x01\x02\n\x06\x12\x03S\ |
| 8826 | \x0b\x19\n\x0c\n\x05\x04\x01\x02\n\x01\x12\x03S\x1a*\n\x0c\n\x05\x04\x01\ |
| 8827 | \x02\n\x03\x12\x03S-.\n]\n\x04\x04\x01\x02\x0b\x12\x03W\x02\x1e\x1aP\x20\ |
| 8828 | The\x20syntax\x20of\x20the\x20proto\x20file.\n\x20The\x20supported\x20va\ |
| 8829 | lues\x20are\x20\"proto2\"\x20and\x20\"proto3\".\n\n\x0c\n\x05\x04\x01\ |
| 8830 | \x02\x0b\x04\x12\x03W\x02\n\n\x0c\n\x05\x04\x01\x02\x0b\x05\x12\x03W\x0b\ |
| 8831 | \x11\n\x0c\n\x05\x04\x01\x02\x0b\x01\x12\x03W\x12\x18\n\x0c\n\x05\x04\ |
| 8832 | \x01\x02\x0b\x03\x12\x03W\x1b\x1d\n'\n\x02\x04\x02\x12\x04[\0y\x01\x1a\ |
| 8833 | \x1b\x20Describes\x20a\x20message\x20type.\n\n\n\n\x03\x04\x02\x01\x12\ |
| 8834 | \x03[\x08\x17\n\x0b\n\x04\x04\x02\x02\0\x12\x03\\\x02\x1b\n\x0c\n\x05\ |
| 8835 | \x04\x02\x02\0\x04\x12\x03\\\x02\n\n\x0c\n\x05\x04\x02\x02\0\x05\x12\x03\ |
| 8836 | \\\x0b\x11\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03\\\x12\x16\n\x0c\n\x05\ |
| 8837 | \x04\x02\x02\0\x03\x12\x03\\\x19\x1a\n\x0b\n\x04\x04\x02\x02\x01\x12\x03\ |
| 8838 | ^\x02*\n\x0c\n\x05\x04\x02\x02\x01\x04\x12\x03^\x02\n\n\x0c\n\x05\x04\ |
| 8839 | \x02\x02\x01\x06\x12\x03^\x0b\x1f\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\ |
| 8840 | \x03^\x20%\n\x0c\n\x05\x04\x02\x02\x01\x03\x12\x03^()\n\x0b\n\x04\x04\ |
| 8841 | \x02\x02\x02\x12\x03_\x02.\n\x0c\n\x05\x04\x02\x02\x02\x04\x12\x03_\x02\ |
| 8842 | \n\n\x0c\n\x05\x04\x02\x02\x02\x06\x12\x03_\x0b\x1f\n\x0c\n\x05\x04\x02\ |
| 8843 | \x02\x02\x01\x12\x03_\x20)\n\x0c\n\x05\x04\x02\x02\x02\x03\x12\x03_,-\n\ |
| 8844 | \x0b\n\x04\x04\x02\x02\x03\x12\x03a\x02+\n\x0c\n\x05\x04\x02\x02\x03\x04\ |
| 8845 | \x12\x03a\x02\n\n\x0c\n\x05\x04\x02\x02\x03\x06\x12\x03a\x0b\x1a\n\x0c\n\ |
| 8846 | \x05\x04\x02\x02\x03\x01\x12\x03a\x1b&\n\x0c\n\x05\x04\x02\x02\x03\x03\ |
| 8847 | \x12\x03a)*\n\x0b\n\x04\x04\x02\x02\x04\x12\x03b\x02-\n\x0c\n\x05\x04\ |
| 8848 | \x02\x02\x04\x04\x12\x03b\x02\n\n\x0c\n\x05\x04\x02\x02\x04\x06\x12\x03b\ |
| 8849 | \x0b\x1e\n\x0c\n\x05\x04\x02\x02\x04\x01\x12\x03b\x1f(\n\x0c\n\x05\x04\ |
| 8850 | \x02\x02\x04\x03\x12\x03b+,\n\x0c\n\x04\x04\x02\x03\0\x12\x04d\x02g\x03\ |
| 8851 | \n\x0c\n\x05\x04\x02\x03\0\x01\x12\x03d\n\x18\n\r\n\x06\x04\x02\x03\0\ |
| 8852 | \x02\0\x12\x03e\x04\x1d\n\x0e\n\x07\x04\x02\x03\0\x02\0\x04\x12\x03e\x04\ |
| 8853 | \x0c\n\x0e\n\x07\x04\x02\x03\0\x02\0\x05\x12\x03e\r\x12\n\x0e\n\x07\x04\ |
| 8854 | \x02\x03\0\x02\0\x01\x12\x03e\x13\x18\n\x0e\n\x07\x04\x02\x03\0\x02\0\ |
| 8855 | \x03\x12\x03e\x1b\x1c\n\r\n\x06\x04\x02\x03\0\x02\x01\x12\x03f\x04\x1b\n\ |
| 8856 | \x0e\n\x07\x04\x02\x03\0\x02\x01\x04\x12\x03f\x04\x0c\n\x0e\n\x07\x04\ |
| 8857 | \x02\x03\0\x02\x01\x05\x12\x03f\r\x12\n\x0e\n\x07\x04\x02\x03\0\x02\x01\ |
| 8858 | \x01\x12\x03f\x13\x16\n\x0e\n\x07\x04\x02\x03\0\x02\x01\x03\x12\x03f\x19\ |
| 8859 | \x1a\n\x0b\n\x04\x04\x02\x02\x05\x12\x03h\x02.\n\x0c\n\x05\x04\x02\x02\ |
| 8860 | \x05\x04\x12\x03h\x02\n\n\x0c\n\x05\x04\x02\x02\x05\x06\x12\x03h\x0b\x19\ |
| 8861 | \n\x0c\n\x05\x04\x02\x02\x05\x01\x12\x03h\x1a)\n\x0c\n\x05\x04\x02\x02\ |
| 8862 | \x05\x03\x12\x03h,-\n\x0b\n\x04\x04\x02\x02\x06\x12\x03j\x02/\n\x0c\n\ |
| 8863 | \x05\x04\x02\x02\x06\x04\x12\x03j\x02\n\n\x0c\n\x05\x04\x02\x02\x06\x06\ |
| 8864 | \x12\x03j\x0b\x1f\n\x0c\n\x05\x04\x02\x02\x06\x01\x12\x03j\x20*\n\x0c\n\ |
| 8865 | \x05\x04\x02\x02\x06\x03\x12\x03j-.\n\x0b\n\x04\x04\x02\x02\x07\x12\x03l\ |
| 8866 | \x02&\n\x0c\n\x05\x04\x02\x02\x07\x04\x12\x03l\x02\n\n\x0c\n\x05\x04\x02\ |
| 8867 | \x02\x07\x06\x12\x03l\x0b\x19\n\x0c\n\x05\x04\x02\x02\x07\x01\x12\x03l\ |
| 8868 | \x1a!\n\x0c\n\x05\x04\x02\x02\x07\x03\x12\x03l$%\n\xaa\x01\n\x04\x04\x02\ |
| 8869 | \x03\x01\x12\x04q\x02t\x03\x1a\x9b\x01\x20Range\x20of\x20reserved\x20tag\ |
| 8870 | \x20numbers.\x20Reserved\x20tag\x20numbers\x20may\x20not\x20be\x20used\ |
| 8871 | \x20by\n\x20fields\x20or\x20extension\x20ranges\x20in\x20the\x20same\x20\ |
| 8872 | message.\x20Reserved\x20ranges\x20may\n\x20not\x20overlap.\n\n\x0c\n\x05\ |
| 8873 | \x04\x02\x03\x01\x01\x12\x03q\n\x17\n\x1b\n\x06\x04\x02\x03\x01\x02\0\ |
| 8874 | \x12\x03r\x04\x1d\"\x0c\x20Inclusive.\n\n\x0e\n\x07\x04\x02\x03\x01\x02\ |
| 8875 | \0\x04\x12\x03r\x04\x0c\n\x0e\n\x07\x04\x02\x03\x01\x02\0\x05\x12\x03r\r\ |
| 8876 | \x12\n\x0e\n\x07\x04\x02\x03\x01\x02\0\x01\x12\x03r\x13\x18\n\x0e\n\x07\ |
| 8877 | \x04\x02\x03\x01\x02\0\x03\x12\x03r\x1b\x1c\n\x1b\n\x06\x04\x02\x03\x01\ |
| 8878 | \x02\x01\x12\x03s\x04\x1b\"\x0c\x20Exclusive.\n\n\x0e\n\x07\x04\x02\x03\ |
| 8879 | \x01\x02\x01\x04\x12\x03s\x04\x0c\n\x0e\n\x07\x04\x02\x03\x01\x02\x01\ |
| 8880 | \x05\x12\x03s\r\x12\n\x0e\n\x07\x04\x02\x03\x01\x02\x01\x01\x12\x03s\x13\ |
| 8881 | \x16\n\x0e\n\x07\x04\x02\x03\x01\x02\x01\x03\x12\x03s\x19\x1a\n\x0b\n\ |
| 8882 | \x04\x04\x02\x02\x08\x12\x03u\x02,\n\x0c\n\x05\x04\x02\x02\x08\x04\x12\ |
| 8883 | \x03u\x02\n\n\x0c\n\x05\x04\x02\x02\x08\x06\x12\x03u\x0b\x18\n\x0c\n\x05\ |
| 8884 | \x04\x02\x02\x08\x01\x12\x03u\x19'\n\x0c\n\x05\x04\x02\x02\x08\x03\x12\ |
| 8885 | \x03u*+\n\x82\x01\n\x04\x04\x02\x02\t\x12\x03x\x02%\x1au\x20Reserved\x20\ |
| 8886 | field\x20names,\x20which\x20may\x20not\x20be\x20used\x20by\x20fields\x20\ |
| 8887 | in\x20the\x20same\x20message.\n\x20A\x20given\x20name\x20may\x20only\x20\ |
| 8888 | be\x20reserved\x20once.\n\n\x0c\n\x05\x04\x02\x02\t\x04\x12\x03x\x02\n\n\ |
| 8889 | \x0c\n\x05\x04\x02\x02\t\x05\x12\x03x\x0b\x11\n\x0c\n\x05\x04\x02\x02\t\ |
| 8890 | \x01\x12\x03x\x12\x1f\n\x0c\n\x05\x04\x02\x02\t\x03\x12\x03x\"$\n2\n\x02\ |
| 8891 | \x04\x03\x12\x05|\0\xc7\x01\x01\x1a%\x20Describes\x20a\x20field\x20withi\ |
| 8892 | n\x20a\x20message.\n\n\n\n\x03\x04\x03\x01\x12\x03|\x08\x1c\n\r\n\x04\ |
| 8893 | \x04\x03\x04\0\x12\x05}\x02\x98\x01\x03\n\x0c\n\x05\x04\x03\x04\0\x01\ |
| 8894 | \x12\x03}\x07\x0b\nS\n\x06\x04\x03\x04\0\x02\0\x12\x04\x80\x01\x04\x1c\ |
| 8895 | \x1aC\x200\x20is\x20reserved\x20for\x20errors.\n\x20Order\x20is\x20weird\ |
| 8896 | \x20for\x20historical\x20reasons.\n\n\x0f\n\x07\x04\x03\x04\0\x02\0\x01\ |
| 8897 | \x12\x04\x80\x01\x04\x0f\n\x0f\n\x07\x04\x03\x04\0\x02\0\x02\x12\x04\x80\ |
| 8898 | \x01\x1a\x1b\n\x0e\n\x06\x04\x03\x04\0\x02\x01\x12\x04\x81\x01\x04\x1c\n\ |
| 8899 | \x0f\n\x07\x04\x03\x04\0\x02\x01\x01\x12\x04\x81\x01\x04\x0e\n\x0f\n\x07\ |
| 8900 | \x04\x03\x04\0\x02\x01\x02\x12\x04\x81\x01\x1a\x1b\nw\n\x06\x04\x03\x04\ |
| 8901 | \0\x02\x02\x12\x04\x84\x01\x04\x1c\x1ag\x20Not\x20ZigZag\x20encoded.\x20\ |
| 8902 | \x20Negative\x20numbers\x20take\x2010\x20bytes.\x20\x20Use\x20TYPE_SINT6\ |
| 8903 | 4\x20if\n\x20negative\x20values\x20are\x20likely.\n\n\x0f\n\x07\x04\x03\ |
| 8904 | \x04\0\x02\x02\x01\x12\x04\x84\x01\x04\x0e\n\x0f\n\x07\x04\x03\x04\0\x02\ |
| 8905 | \x02\x02\x12\x04\x84\x01\x1a\x1b\n\x0e\n\x06\x04\x03\x04\0\x02\x03\x12\ |
| 8906 | \x04\x85\x01\x04\x1c\n\x0f\n\x07\x04\x03\x04\0\x02\x03\x01\x12\x04\x85\ |
| 8907 | \x01\x04\x0f\n\x0f\n\x07\x04\x03\x04\0\x02\x03\x02\x12\x04\x85\x01\x1a\ |
| 8908 | \x1b\nw\n\x06\x04\x03\x04\0\x02\x04\x12\x04\x88\x01\x04\x1c\x1ag\x20Not\ |
| 8909 | \x20ZigZag\x20encoded.\x20\x20Negative\x20numbers\x20take\x2010\x20bytes\ |
| 8910 | .\x20\x20Use\x20TYPE_SINT32\x20if\n\x20negative\x20values\x20are\x20like\ |
| 8911 | ly.\n\n\x0f\n\x07\x04\x03\x04\0\x02\x04\x01\x12\x04\x88\x01\x04\x0e\n\ |
| 8912 | \x0f\n\x07\x04\x03\x04\0\x02\x04\x02\x12\x04\x88\x01\x1a\x1b\n\x0e\n\x06\ |
| 8913 | \x04\x03\x04\0\x02\x05\x12\x04\x89\x01\x04\x1c\n\x0f\n\x07\x04\x03\x04\0\ |
| 8914 | \x02\x05\x01\x12\x04\x89\x01\x04\x10\n\x0f\n\x07\x04\x03\x04\0\x02\x05\ |
| 8915 | \x02\x12\x04\x89\x01\x1a\x1b\n\x0e\n\x06\x04\x03\x04\0\x02\x06\x12\x04\ |
| 8916 | \x8a\x01\x04\x1c\n\x0f\n\x07\x04\x03\x04\0\x02\x06\x01\x12\x04\x8a\x01\ |
| 8917 | \x04\x10\n\x0f\n\x07\x04\x03\x04\0\x02\x06\x02\x12\x04\x8a\x01\x1a\x1b\n\ |
| 8918 | \x0e\n\x06\x04\x03\x04\0\x02\x07\x12\x04\x8b\x01\x04\x1c\n\x0f\n\x07\x04\ |
| 8919 | \x03\x04\0\x02\x07\x01\x12\x04\x8b\x01\x04\r\n\x0f\n\x07\x04\x03\x04\0\ |
| 8920 | \x02\x07\x02\x12\x04\x8b\x01\x1a\x1b\n\x0e\n\x06\x04\x03\x04\0\x02\x08\ |
| 8921 | \x12\x04\x8c\x01\x04\x1c\n\x0f\n\x07\x04\x03\x04\0\x02\x08\x01\x12\x04\ |
| 8922 | \x8c\x01\x04\x0f\n\x0f\n\x07\x04\x03\x04\0\x02\x08\x02\x12\x04\x8c\x01\ |
| 8923 | \x1a\x1b\n*\n\x06\x04\x03\x04\0\x02\t\x12\x04\x8d\x01\x04\x1d\"\x1a\x20T\ |
| 8924 | ag-delimited\x20aggregate.\n\n\x0f\n\x07\x04\x03\x04\0\x02\t\x01\x12\x04\ |
| 8925 | \x8d\x01\x04\x0e\n\x0f\n\x07\x04\x03\x04\0\x02\t\x02\x12\x04\x8d\x01\x1a\ |
| 8926 | \x1c\n-\n\x06\x04\x03\x04\0\x02\n\x12\x04\x8e\x01\x04\x1d\"\x1d\x20Lengt\ |
| 8927 | h-delimited\x20aggregate.\n\n\x0f\n\x07\x04\x03\x04\0\x02\n\x01\x12\x04\ |
| 8928 | \x8e\x01\x04\x10\n\x0f\n\x07\x04\x03\x04\0\x02\n\x02\x12\x04\x8e\x01\x1a\ |
| 8929 | \x1c\n#\n\x06\x04\x03\x04\0\x02\x0b\x12\x04\x91\x01\x04\x1d\x1a\x13\x20N\ |
| 8930 | ew\x20in\x20version\x202.\n\n\x0f\n\x07\x04\x03\x04\0\x02\x0b\x01\x12\ |
| 8931 | \x04\x91\x01\x04\x0e\n\x0f\n\x07\x04\x03\x04\0\x02\x0b\x02\x12\x04\x91\ |
| 8932 | \x01\x1a\x1c\n\x0e\n\x06\x04\x03\x04\0\x02\x0c\x12\x04\x92\x01\x04\x1d\n\ |
| 8933 | \x0f\n\x07\x04\x03\x04\0\x02\x0c\x01\x12\x04\x92\x01\x04\x0f\n\x0f\n\x07\ |
| 8934 | \x04\x03\x04\0\x02\x0c\x02\x12\x04\x92\x01\x1a\x1c\n\x0e\n\x06\x04\x03\ |
| 8935 | \x04\0\x02\r\x12\x04\x93\x01\x04\x1d\n\x0f\n\x07\x04\x03\x04\0\x02\r\x01\ |
| 8936 | \x12\x04\x93\x01\x04\r\n\x0f\n\x07\x04\x03\x04\0\x02\r\x02\x12\x04\x93\ |
| 8937 | \x01\x1a\x1c\n\x0e\n\x06\x04\x03\x04\0\x02\x0e\x12\x04\x94\x01\x04\x1d\n\ |
| 8938 | \x0f\n\x07\x04\x03\x04\0\x02\x0e\x01\x12\x04\x94\x01\x04\x11\n\x0f\n\x07\ |
| 8939 | \x04\x03\x04\0\x02\x0e\x02\x12\x04\x94\x01\x1a\x1c\n\x0e\n\x06\x04\x03\ |
| 8940 | \x04\0\x02\x0f\x12\x04\x95\x01\x04\x1d\n\x0f\n\x07\x04\x03\x04\0\x02\x0f\ |
| 8941 | \x01\x12\x04\x95\x01\x04\x11\n\x0f\n\x07\x04\x03\x04\0\x02\x0f\x02\x12\ |
| 8942 | \x04\x95\x01\x1a\x1c\n'\n\x06\x04\x03\x04\0\x02\x10\x12\x04\x96\x01\x04\ |
| 8943 | \x1d\"\x17\x20Uses\x20ZigZag\x20encoding.\n\n\x0f\n\x07\x04\x03\x04\0\ |
| 8944 | \x02\x10\x01\x12\x04\x96\x01\x04\x0f\n\x0f\n\x07\x04\x03\x04\0\x02\x10\ |
| 8945 | \x02\x12\x04\x96\x01\x1a\x1c\n'\n\x06\x04\x03\x04\0\x02\x11\x12\x04\x97\ |
| 8946 | \x01\x04\x1d\"\x17\x20Uses\x20ZigZag\x20encoding.\n\n\x0f\n\x07\x04\x03\ |
| 8947 | \x04\0\x02\x11\x01\x12\x04\x97\x01\x04\x0f\n\x0f\n\x07\x04\x03\x04\0\x02\ |
| 8948 | \x11\x02\x12\x04\x97\x01\x1a\x1c\n\x0e\n\x04\x04\x03\x04\x01\x12\x06\x9a\ |
| 8949 | \x01\x02\xa0\x01\x03\n\r\n\x05\x04\x03\x04\x01\x01\x12\x04\x9a\x01\x07\ |
| 8950 | \x0c\n*\n\x06\x04\x03\x04\x01\x02\0\x12\x04\x9c\x01\x04\x1c\x1a\x1a\x200\ |
| 8951 | \x20is\x20reserved\x20for\x20errors\n\n\x0f\n\x07\x04\x03\x04\x01\x02\0\ |
| 8952 | \x01\x12\x04\x9c\x01\x04\x12\n\x0f\n\x07\x04\x03\x04\x01\x02\0\x02\x12\ |
| 8953 | \x04\x9c\x01\x1a\x1b\n\x0e\n\x06\x04\x03\x04\x01\x02\x01\x12\x04\x9d\x01\ |
| 8954 | \x04\x1c\n\x0f\n\x07\x04\x03\x04\x01\x02\x01\x01\x12\x04\x9d\x01\x04\x12\ |
| 8955 | \n\x0f\n\x07\x04\x03\x04\x01\x02\x01\x02\x12\x04\x9d\x01\x1a\x1b\n8\n\ |
| 8956 | \x06\x04\x03\x04\x01\x02\x02\x12\x04\x9e\x01\x04\x1c\"(\x20TODO(sanjay):\ |
| 8957 | \x20Should\x20we\x20add\x20LABEL_MAP?\n\n\x0f\n\x07\x04\x03\x04\x01\x02\ |
| 8958 | \x02\x01\x12\x04\x9e\x01\x04\x12\n\x0f\n\x07\x04\x03\x04\x01\x02\x02\x02\ |
| 8959 | \x12\x04\x9e\x01\x1a\x1b\n\x0c\n\x04\x04\x03\x02\0\x12\x04\xa2\x01\x02\ |
| 8960 | \x1b\n\r\n\x05\x04\x03\x02\0\x04\x12\x04\xa2\x01\x02\n\n\r\n\x05\x04\x03\ |
| 8961 | \x02\0\x05\x12\x04\xa2\x01\x0b\x11\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\ |
| 8962 | \xa2\x01\x12\x16\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\xa2\x01\x19\x1a\n\ |
| 8963 | \x0c\n\x04\x04\x03\x02\x01\x12\x04\xa3\x01\x02\x1c\n\r\n\x05\x04\x03\x02\ |
| 8964 | \x01\x04\x12\x04\xa3\x01\x02\n\n\r\n\x05\x04\x03\x02\x01\x05\x12\x04\xa3\ |
| 8965 | \x01\x0b\x10\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\xa3\x01\x11\x17\n\r\n\ |
| 8966 | \x05\x04\x03\x02\x01\x03\x12\x04\xa3\x01\x1a\x1b\n\x0c\n\x04\x04\x03\x02\ |
| 8967 | \x02\x12\x04\xa4\x01\x02\x1b\n\r\n\x05\x04\x03\x02\x02\x04\x12\x04\xa4\ |
| 8968 | \x01\x02\n\n\r\n\x05\x04\x03\x02\x02\x06\x12\x04\xa4\x01\x0b\x10\n\r\n\ |
| 8969 | \x05\x04\x03\x02\x02\x01\x12\x04\xa4\x01\x11\x16\n\r\n\x05\x04\x03\x02\ |
| 8970 | \x02\x03\x12\x04\xa4\x01\x19\x1a\n\x9c\x01\n\x04\x04\x03\x02\x03\x12\x04\ |
| 8971 | \xa8\x01\x02\x19\x1a\x8d\x01\x20If\x20type_name\x20is\x20set,\x20this\ |
| 8972 | \x20need\x20not\x20be\x20set.\x20\x20If\x20both\x20this\x20and\x20type_n\ |
| 8973 | ame\n\x20are\x20set,\x20this\x20must\x20be\x20one\x20of\x20TYPE_ENUM,\ |
| 8974 | \x20TYPE_MESSAGE\x20or\x20TYPE_GROUP.\n\n\r\n\x05\x04\x03\x02\x03\x04\ |
| 8975 | \x12\x04\xa8\x01\x02\n\n\r\n\x05\x04\x03\x02\x03\x06\x12\x04\xa8\x01\x0b\ |
| 8976 | \x0f\n\r\n\x05\x04\x03\x02\x03\x01\x12\x04\xa8\x01\x10\x14\n\r\n\x05\x04\ |
| 8977 | \x03\x02\x03\x03\x12\x04\xa8\x01\x17\x18\n\xb7\x02\n\x04\x04\x03\x02\x04\ |
| 8978 | \x12\x04\xaf\x01\x02\x20\x1a\xa8\x02\x20For\x20message\x20and\x20enum\ |
| 8979 | \x20types,\x20this\x20is\x20the\x20name\x20of\x20the\x20type.\x20\x20If\ |
| 8980 | \x20the\x20name\n\x20starts\x20with\x20a\x20'.',\x20it\x20is\x20fully-qu\ |
| 8981 | alified.\x20\x20Otherwise,\x20C++-like\x20scoping\n\x20rules\x20are\x20u\ |
| 8982 | sed\x20to\x20find\x20the\x20type\x20(i.e.\x20first\x20the\x20nested\x20t\ |
| 8983 | ypes\x20within\x20this\n\x20message\x20are\x20searched,\x20then\x20withi\ |
| 8984 | n\x20the\x20parent,\x20on\x20up\x20to\x20the\x20root\n\x20namespace).\n\ |
| 8985 | \n\r\n\x05\x04\x03\x02\x04\x04\x12\x04\xaf\x01\x02\n\n\r\n\x05\x04\x03\ |
| 8986 | \x02\x04\x05\x12\x04\xaf\x01\x0b\x11\n\r\n\x05\x04\x03\x02\x04\x01\x12\ |
| 8987 | \x04\xaf\x01\x12\x1b\n\r\n\x05\x04\x03\x02\x04\x03\x12\x04\xaf\x01\x1e\ |
| 8988 | \x1f\n~\n\x04\x04\x03\x02\x05\x12\x04\xb3\x01\x02\x1f\x1ap\x20For\x20ext\ |
| 8989 | ensions,\x20this\x20is\x20the\x20name\x20of\x20the\x20type\x20being\x20e\ |
| 8990 | xtended.\x20\x20It\x20is\n\x20resolved\x20in\x20the\x20same\x20manner\ |
| 8991 | \x20as\x20type_name.\n\n\r\n\x05\x04\x03\x02\x05\x04\x12\x04\xb3\x01\x02\ |
| 8992 | \n\n\r\n\x05\x04\x03\x02\x05\x05\x12\x04\xb3\x01\x0b\x11\n\r\n\x05\x04\ |
| 8993 | \x03\x02\x05\x01\x12\x04\xb3\x01\x12\x1a\n\r\n\x05\x04\x03\x02\x05\x03\ |
| 8994 | \x12\x04\xb3\x01\x1d\x1e\n\xb1\x02\n\x04\x04\x03\x02\x06\x12\x04\xba\x01\ |
| 8995 | \x02$\x1a\xa2\x02\x20For\x20numeric\x20types,\x20contains\x20the\x20orig\ |
| 8996 | inal\x20text\x20representation\x20of\x20the\x20value.\n\x20For\x20boolea\ |
| 8997 | ns,\x20\"true\"\x20or\x20\"false\".\n\x20For\x20strings,\x20contains\x20\ |
| 8998 | the\x20default\x20text\x20contents\x20(not\x20escaped\x20in\x20any\x20wa\ |
| 8999 | y).\n\x20For\x20bytes,\x20contains\x20the\x20C\x20escaped\x20value.\x20\ |
| 9000 | \x20All\x20bytes\x20>=\x20128\x20are\x20escaped.\n\x20TODO(kenton):\x20\ |
| 9001 | \x20Base-64\x20encode?\n\n\r\n\x05\x04\x03\x02\x06\x04\x12\x04\xba\x01\ |
| 9002 | \x02\n\n\r\n\x05\x04\x03\x02\x06\x05\x12\x04\xba\x01\x0b\x11\n\r\n\x05\ |
| 9003 | \x04\x03\x02\x06\x01\x12\x04\xba\x01\x12\x1f\n\r\n\x05\x04\x03\x02\x06\ |
| 9004 | \x03\x12\x04\xba\x01\"#\n\x84\x01\n\x04\x04\x03\x02\x07\x12\x04\xbe\x01\ |
| 9005 | \x02!\x1av\x20If\x20set,\x20gives\x20the\x20index\x20of\x20a\x20oneof\ |
| 9006 | \x20in\x20the\x20containing\x20type's\x20oneof_decl\n\x20list.\x20\x20Th\ |
| 9007 | is\x20field\x20is\x20a\x20member\x20of\x20that\x20oneof.\n\n\r\n\x05\x04\ |
| 9008 | \x03\x02\x07\x04\x12\x04\xbe\x01\x02\n\n\r\n\x05\x04\x03\x02\x07\x05\x12\ |
| 9009 | \x04\xbe\x01\x0b\x10\n\r\n\x05\x04\x03\x02\x07\x01\x12\x04\xbe\x01\x11\ |
| 9010 | \x1c\n\r\n\x05\x04\x03\x02\x07\x03\x12\x04\xbe\x01\x1f\x20\n\xfa\x01\n\ |
| 9011 | \x04\x04\x03\x02\x08\x12\x04\xc4\x01\x02!\x1a\xeb\x01\x20JSON\x20name\ |
| 9012 | \x20of\x20this\x20field.\x20The\x20value\x20is\x20set\x20by\x20protocol\ |
| 9013 | \x20compiler.\x20If\x20the\n\x20user\x20has\x20set\x20a\x20\"json_name\"\ |
| 9014 | \x20option\x20on\x20this\x20field,\x20that\x20option's\x20value\n\x20wil\ |
| 9015 | l\x20be\x20used.\x20Otherwise,\x20it's\x20deduced\x20from\x20the\x20fiel\ |
| 9016 | d's\x20name\x20by\x20converting\n\x20it\x20to\x20camelCase.\n\n\r\n\x05\ |
| 9017 | \x04\x03\x02\x08\x04\x12\x04\xc4\x01\x02\n\n\r\n\x05\x04\x03\x02\x08\x05\ |
| 9018 | \x12\x04\xc4\x01\x0b\x11\n\r\n\x05\x04\x03\x02\x08\x01\x12\x04\xc4\x01\ |
| 9019 | \x12\x1b\n\r\n\x05\x04\x03\x02\x08\x03\x12\x04\xc4\x01\x1e\x20\n\x0c\n\ |
| 9020 | \x04\x04\x03\x02\t\x12\x04\xc6\x01\x02$\n\r\n\x05\x04\x03\x02\t\x04\x12\ |
| 9021 | \x04\xc6\x01\x02\n\n\r\n\x05\x04\x03\x02\t\x06\x12\x04\xc6\x01\x0b\x17\n\ |
| 9022 | \r\n\x05\x04\x03\x02\t\x01\x12\x04\xc6\x01\x18\x1f\n\r\n\x05\x04\x03\x02\ |
| 9023 | \t\x03\x12\x04\xc6\x01\"#\n\"\n\x02\x04\x04\x12\x06\xca\x01\0\xcd\x01\ |
| 9024 | \x01\x1a\x14\x20Describes\x20a\x20oneof.\n\n\x0b\n\x03\x04\x04\x01\x12\ |
| 9025 | \x04\xca\x01\x08\x1c\n\x0c\n\x04\x04\x04\x02\0\x12\x04\xcb\x01\x02\x1b\n\ |
| 9026 | \r\n\x05\x04\x04\x02\0\x04\x12\x04\xcb\x01\x02\n\n\r\n\x05\x04\x04\x02\0\ |
| 9027 | \x05\x12\x04\xcb\x01\x0b\x11\n\r\n\x05\x04\x04\x02\0\x01\x12\x04\xcb\x01\ |
| 9028 | \x12\x16\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\xcb\x01\x19\x1a\n\x0c\n\x04\ |
| 9029 | \x04\x04\x02\x01\x12\x04\xcc\x01\x02$\n\r\n\x05\x04\x04\x02\x01\x04\x12\ |
| 9030 | \x04\xcc\x01\x02\n\n\r\n\x05\x04\x04\x02\x01\x06\x12\x04\xcc\x01\x0b\x17\ |
| 9031 | \n\r\n\x05\x04\x04\x02\x01\x01\x12\x04\xcc\x01\x18\x1f\n\r\n\x05\x04\x04\ |
| 9032 | \x02\x01\x03\x12\x04\xcc\x01\"#\n'\n\x02\x04\x05\x12\x06\xd0\x01\0\xd6\ |
| 9033 | \x01\x01\x1a\x19\x20Describes\x20an\x20enum\x20type.\n\n\x0b\n\x03\x04\ |
| 9034 | \x05\x01\x12\x04\xd0\x01\x08\x1b\n\x0c\n\x04\x04\x05\x02\0\x12\x04\xd1\ |
| 9035 | \x01\x02\x1b\n\r\n\x05\x04\x05\x02\0\x04\x12\x04\xd1\x01\x02\n\n\r\n\x05\ |
| 9036 | \x04\x05\x02\0\x05\x12\x04\xd1\x01\x0b\x11\n\r\n\x05\x04\x05\x02\0\x01\ |
| 9037 | \x12\x04\xd1\x01\x12\x16\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\xd1\x01\x19\ |
| 9038 | \x1a\n\x0c\n\x04\x04\x05\x02\x01\x12\x04\xd3\x01\x02.\n\r\n\x05\x04\x05\ |
| 9039 | \x02\x01\x04\x12\x04\xd3\x01\x02\n\n\r\n\x05\x04\x05\x02\x01\x06\x12\x04\ |
| 9040 | \xd3\x01\x0b#\n\r\n\x05\x04\x05\x02\x01\x01\x12\x04\xd3\x01$)\n\r\n\x05\ |
| 9041 | \x04\x05\x02\x01\x03\x12\x04\xd3\x01,-\n\x0c\n\x04\x04\x05\x02\x02\x12\ |
| 9042 | \x04\xd5\x01\x02#\n\r\n\x05\x04\x05\x02\x02\x04\x12\x04\xd5\x01\x02\n\n\ |
| 9043 | \r\n\x05\x04\x05\x02\x02\x06\x12\x04\xd5\x01\x0b\x16\n\r\n\x05\x04\x05\ |
| 9044 | \x02\x02\x01\x12\x04\xd5\x01\x17\x1e\n\r\n\x05\x04\x05\x02\x02\x03\x12\ |
| 9045 | \x04\xd5\x01!\"\n1\n\x02\x04\x06\x12\x06\xd9\x01\0\xde\x01\x01\x1a#\x20D\ |
| 9046 | escribes\x20a\x20value\x20within\x20an\x20enum.\n\n\x0b\n\x03\x04\x06\ |
| 9047 | \x01\x12\x04\xd9\x01\x08\x20\n\x0c\n\x04\x04\x06\x02\0\x12\x04\xda\x01\ |
| 9048 | \x02\x1b\n\r\n\x05\x04\x06\x02\0\x04\x12\x04\xda\x01\x02\n\n\r\n\x05\x04\ |
| 9049 | \x06\x02\0\x05\x12\x04\xda\x01\x0b\x11\n\r\n\x05\x04\x06\x02\0\x01\x12\ |
| 9050 | \x04\xda\x01\x12\x16\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\xda\x01\x19\x1a\ |
| 9051 | \n\x0c\n\x04\x04\x06\x02\x01\x12\x04\xdb\x01\x02\x1c\n\r\n\x05\x04\x06\ |
| 9052 | \x02\x01\x04\x12\x04\xdb\x01\x02\n\n\r\n\x05\x04\x06\x02\x01\x05\x12\x04\ |
| 9053 | \xdb\x01\x0b\x10\n\r\n\x05\x04\x06\x02\x01\x01\x12\x04\xdb\x01\x11\x17\n\ |
| 9054 | \r\n\x05\x04\x06\x02\x01\x03\x12\x04\xdb\x01\x1a\x1b\n\x0c\n\x04\x04\x06\ |
| 9055 | \x02\x02\x12\x04\xdd\x01\x02(\n\r\n\x05\x04\x06\x02\x02\x04\x12\x04\xdd\ |
| 9056 | \x01\x02\n\n\r\n\x05\x04\x06\x02\x02\x06\x12\x04\xdd\x01\x0b\x1b\n\r\n\ |
| 9057 | \x05\x04\x06\x02\x02\x01\x12\x04\xdd\x01\x1c#\n\r\n\x05\x04\x06\x02\x02\ |
| 9058 | \x03\x12\x04\xdd\x01&'\n$\n\x02\x04\x07\x12\x06\xe1\x01\0\xe6\x01\x01\ |
| 9059 | \x1a\x16\x20Describes\x20a\x20service.\n\n\x0b\n\x03\x04\x07\x01\x12\x04\ |
| 9060 | \xe1\x01\x08\x1e\n\x0c\n\x04\x04\x07\x02\0\x12\x04\xe2\x01\x02\x1b\n\r\n\ |
| 9061 | \x05\x04\x07\x02\0\x04\x12\x04\xe2\x01\x02\n\n\r\n\x05\x04\x07\x02\0\x05\ |
| 9062 | \x12\x04\xe2\x01\x0b\x11\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\xe2\x01\x12\ |
| 9063 | \x16\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\xe2\x01\x19\x1a\n\x0c\n\x04\x04\ |
| 9064 | \x07\x02\x01\x12\x04\xe3\x01\x02,\n\r\n\x05\x04\x07\x02\x01\x04\x12\x04\ |
| 9065 | \xe3\x01\x02\n\n\r\n\x05\x04\x07\x02\x01\x06\x12\x04\xe3\x01\x0b\x20\n\r\ |
| 9066 | \n\x05\x04\x07\x02\x01\x01\x12\x04\xe3\x01!'\n\r\n\x05\x04\x07\x02\x01\ |
| 9067 | \x03\x12\x04\xe3\x01*+\n\x0c\n\x04\x04\x07\x02\x02\x12\x04\xe5\x01\x02&\ |
| 9068 | \n\r\n\x05\x04\x07\x02\x02\x04\x12\x04\xe5\x01\x02\n\n\r\n\x05\x04\x07\ |
| 9069 | \x02\x02\x06\x12\x04\xe5\x01\x0b\x19\n\r\n\x05\x04\x07\x02\x02\x01\x12\ |
| 9070 | \x04\xe5\x01\x1a!\n\r\n\x05\x04\x07\x02\x02\x03\x12\x04\xe5\x01$%\n0\n\ |
| 9071 | \x02\x04\x08\x12\x06\xe9\x01\0\xf7\x01\x01\x1a\"\x20Describes\x20a\x20me\ |
| 9072 | thod\x20of\x20a\x20service.\n\n\x0b\n\x03\x04\x08\x01\x12\x04\xe9\x01\ |
| 9073 | \x08\x1d\n\x0c\n\x04\x04\x08\x02\0\x12\x04\xea\x01\x02\x1b\n\r\n\x05\x04\ |
| 9074 | \x08\x02\0\x04\x12\x04\xea\x01\x02\n\n\r\n\x05\x04\x08\x02\0\x05\x12\x04\ |
| 9075 | \xea\x01\x0b\x11\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\xea\x01\x12\x16\n\r\ |
| 9076 | \n\x05\x04\x08\x02\0\x03\x12\x04\xea\x01\x19\x1a\n\x97\x01\n\x04\x04\x08\ |
| 9077 | \x02\x01\x12\x04\xee\x01\x02!\x1a\x88\x01\x20Input\x20and\x20output\x20t\ |
| 9078 | ype\x20names.\x20\x20These\x20are\x20resolved\x20in\x20the\x20same\x20wa\ |
| 9079 | y\x20as\n\x20FieldDescriptorProto.type_name,\x20but\x20must\x20refer\x20\ |
| 9080 | to\x20a\x20message\x20type.\n\n\r\n\x05\x04\x08\x02\x01\x04\x12\x04\xee\ |
| 9081 | \x01\x02\n\n\r\n\x05\x04\x08\x02\x01\x05\x12\x04\xee\x01\x0b\x11\n\r\n\ |
| 9082 | \x05\x04\x08\x02\x01\x01\x12\x04\xee\x01\x12\x1c\n\r\n\x05\x04\x08\x02\ |
| 9083 | \x01\x03\x12\x04\xee\x01\x1f\x20\n\x0c\n\x04\x04\x08\x02\x02\x12\x04\xef\ |
| 9084 | \x01\x02\"\n\r\n\x05\x04\x08\x02\x02\x04\x12\x04\xef\x01\x02\n\n\r\n\x05\ |
| 9085 | \x04\x08\x02\x02\x05\x12\x04\xef\x01\x0b\x11\n\r\n\x05\x04\x08\x02\x02\ |
| 9086 | \x01\x12\x04\xef\x01\x12\x1d\n\r\n\x05\x04\x08\x02\x02\x03\x12\x04\xef\ |
| 9087 | \x01\x20!\n\x0c\n\x04\x04\x08\x02\x03\x12\x04\xf1\x01\x02%\n\r\n\x05\x04\ |
| 9088 | \x08\x02\x03\x04\x12\x04\xf1\x01\x02\n\n\r\n\x05\x04\x08\x02\x03\x06\x12\ |
| 9089 | \x04\xf1\x01\x0b\x18\n\r\n\x05\x04\x08\x02\x03\x01\x12\x04\xf1\x01\x19\ |
| 9090 | \x20\n\r\n\x05\x04\x08\x02\x03\x03\x12\x04\xf1\x01#$\nE\n\x04\x04\x08\ |
| 9091 | \x02\x04\x12\x04\xf4\x01\x025\x1a7\x20Identifies\x20if\x20client\x20stre\ |
| 9092 | ams\x20multiple\x20client\x20messages\n\n\r\n\x05\x04\x08\x02\x04\x04\ |
| 9093 | \x12\x04\xf4\x01\x02\n\n\r\n\x05\x04\x08\x02\x04\x05\x12\x04\xf4\x01\x0b\ |
| 9094 | \x0f\n\r\n\x05\x04\x08\x02\x04\x01\x12\x04\xf4\x01\x10\x20\n\r\n\x05\x04\ |
| 9095 | \x08\x02\x04\x03\x12\x04\xf4\x01#$\n\r\n\x05\x04\x08\x02\x04\x08\x12\x04\ |
| 9096 | \xf4\x01%4\n\r\n\x05\x04\x08\x02\x04\x07\x12\x04\xf4\x01.3\nE\n\x04\x04\ |
| 9097 | \x08\x02\x05\x12\x04\xf6\x01\x025\x1a7\x20Identifies\x20if\x20server\x20\ |
| 9098 | streams\x20multiple\x20server\x20messages\n\n\r\n\x05\x04\x08\x02\x05\ |
| 9099 | \x04\x12\x04\xf6\x01\x02\n\n\r\n\x05\x04\x08\x02\x05\x05\x12\x04\xf6\x01\ |
| 9100 | \x0b\x0f\n\r\n\x05\x04\x08\x02\x05\x01\x12\x04\xf6\x01\x10\x20\n\r\n\x05\ |
| 9101 | \x04\x08\x02\x05\x03\x12\x04\xf6\x01#$\n\r\n\x05\x04\x08\x02\x05\x08\x12\ |
| 9102 | \x04\xf6\x01%4\n\r\n\x05\x04\x08\x02\x05\x07\x12\x04\xf6\x01.3\n\xaf\x0e\ |
| 9103 | \n\x02\x04\t\x12\x06\x9b\x02\0\xf8\x02\x012N\x20========================\ |
| 9104 | ===========================================\n\x20Options\n2\xd0\r\x20Eac\ |
| 9105 | h\x20of\x20the\x20definitions\x20above\x20may\x20have\x20\"options\"\x20\ |
| 9106 | attached.\x20\x20These\x20are\n\x20just\x20annotations\x20which\x20may\ |
| 9107 | \x20cause\x20code\x20to\x20be\x20generated\x20slightly\x20differently\n\ |
| 9108 | \x20or\x20may\x20contain\x20hints\x20for\x20code\x20that\x20manipulates\ |
| 9109 | \x20protocol\x20messages.\n\n\x20Clients\x20may\x20define\x20custom\x20o\ |
| 9110 | ptions\x20as\x20extensions\x20of\x20the\x20*Options\x20messages.\n\x20Th\ |
| 9111 | ese\x20extensions\x20may\x20not\x20yet\x20be\x20known\x20at\x20parsing\ |
| 9112 | \x20time,\x20so\x20the\x20parser\x20cannot\n\x20store\x20the\x20values\ |
| 9113 | \x20in\x20them.\x20\x20Instead\x20it\x20stores\x20them\x20in\x20a\x20fie\ |
| 9114 | ld\x20in\x20the\x20*Options\n\x20message\x20called\x20uninterpreted_opti\ |
| 9115 | on.\x20This\x20field\x20must\x20have\x20the\x20same\x20name\n\x20across\ |
| 9116 | \x20all\x20*Options\x20messages.\x20We\x20then\x20use\x20this\x20field\ |
| 9117 | \x20to\x20populate\x20the\n\x20extensions\x20when\x20we\x20build\x20a\ |
| 9118 | \x20descriptor,\x20at\x20which\x20point\x20all\x20protos\x20have\x20been\ |
| 9119 | \n\x20parsed\x20and\x20so\x20all\x20extensions\x20are\x20known.\n\n\x20E\ |
| 9120 | xtension\x20numbers\x20for\x20custom\x20options\x20may\x20be\x20chosen\ |
| 9121 | \x20as\x20follows:\n\x20*\x20For\x20options\x20which\x20will\x20only\x20\ |
| 9122 | be\x20used\x20within\x20a\x20single\x20application\x20or\n\x20\x20\x20or\ |
| 9123 | ganization,\x20or\x20for\x20experimental\x20options,\x20use\x20field\x20\ |
| 9124 | numbers\x2050000\n\x20\x20\x20through\x2099999.\x20\x20It\x20is\x20up\ |
| 9125 | \x20to\x20you\x20to\x20ensure\x20that\x20you\x20do\x20not\x20use\x20the\ |
| 9126 | \n\x20\x20\x20same\x20number\x20for\x20multiple\x20options.\n\x20*\x20Fo\ |
| 9127 | r\x20options\x20which\x20will\x20be\x20published\x20and\x20used\x20publi\ |
| 9128 | cly\x20by\x20multiple\n\x20\x20\x20independent\x20entities,\x20e-mail\ |
| 9129 | \x20protobuf-global-extension-registry@google.com\n\x20\x20\x20to\x20res\ |
| 9130 | erve\x20extension\x20numbers.\x20Simply\x20provide\x20your\x20project\ |
| 9131 | \x20name\x20(e.g.\n\x20\x20\x20Objective-C\x20plugin)\x20and\x20your\x20\ |
| 9132 | project\x20website\x20(if\x20available)\x20--\x20there's\x20no\n\x20\x20\ |
| 9133 | \x20need\x20to\x20explain\x20how\x20you\x20intend\x20to\x20use\x20them.\ |
| 9134 | \x20Usually\x20you\x20only\x20need\x20one\n\x20\x20\x20extension\x20numb\ |
| 9135 | er.\x20You\x20can\x20declare\x20multiple\x20options\x20with\x20only\x20o\ |
| 9136 | ne\x20extension\n\x20\x20\x20number\x20by\x20putting\x20them\x20in\x20a\ |
| 9137 | \x20sub-message.\x20See\x20the\x20Custom\x20Options\x20section\x20of\n\ |
| 9138 | \x20\x20\x20the\x20docs\x20for\x20examples:\n\x20\x20\x20https://develop\ |
| 9139 | ers.google.com/protocol-buffers/docs/proto#options\n\x20\x20\x20If\x20th\ |
| 9140 | is\x20turns\x20out\x20to\x20be\x20popular,\x20a\x20web\x20service\x20wil\ |
| 9141 | l\x20be\x20set\x20up\n\x20\x20\x20to\x20automatically\x20assign\x20optio\ |
| 9142 | n\x20numbers.\n\n\x0b\n\x03\x04\t\x01\x12\x04\x9b\x02\x08\x13\n\xf4\x01\ |
| 9143 | \n\x04\x04\t\x02\0\x12\x04\xa1\x02\x02#\x1a\xe5\x01\x20Sets\x20the\x20Ja\ |
| 9144 | va\x20package\x20where\x20classes\x20generated\x20from\x20this\x20.proto\ |
| 9145 | \x20will\x20be\n\x20placed.\x20\x20By\x20default,\x20the\x20proto\x20pac\ |
| 9146 | kage\x20is\x20used,\x20but\x20this\x20is\x20often\n\x20inappropriate\x20\ |
| 9147 | because\x20proto\x20packages\x20do\x20not\x20normally\x20start\x20with\ |
| 9148 | \x20backwards\n\x20domain\x20names.\n\n\r\n\x05\x04\t\x02\0\x04\x12\x04\ |
| 9149 | \xa1\x02\x02\n\n\r\n\x05\x04\t\x02\0\x05\x12\x04\xa1\x02\x0b\x11\n\r\n\ |
| 9150 | \x05\x04\t\x02\0\x01\x12\x04\xa1\x02\x12\x1e\n\r\n\x05\x04\t\x02\0\x03\ |
| 9151 | \x12\x04\xa1\x02!\"\n\xbf\x02\n\x04\x04\t\x02\x01\x12\x04\xa9\x02\x02+\ |
| 9152 | \x1a\xb0\x02\x20If\x20set,\x20all\x20the\x20classes\x20from\x20the\x20.p\ |
| 9153 | roto\x20file\x20are\x20wrapped\x20in\x20a\x20single\n\x20outer\x20class\ |
| 9154 | \x20with\x20the\x20given\x20name.\x20\x20This\x20applies\x20to\x20both\ |
| 9155 | \x20Proto1\n\x20(equivalent\x20to\x20the\x20old\x20\"--one_java_file\"\ |
| 9156 | \x20option)\x20and\x20Proto2\x20(where\n\x20a\x20.proto\x20always\x20tra\ |
| 9157 | nslates\x20to\x20a\x20single\x20class,\x20but\x20you\x20may\x20want\x20t\ |
| 9158 | o\n\x20explicitly\x20choose\x20the\x20class\x20name).\n\n\r\n\x05\x04\t\ |
| 9159 | \x02\x01\x04\x12\x04\xa9\x02\x02\n\n\r\n\x05\x04\t\x02\x01\x05\x12\x04\ |
| 9160 | \xa9\x02\x0b\x11\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\xa9\x02\x12&\n\r\n\ |
| 9161 | \x05\x04\t\x02\x01\x03\x12\x04\xa9\x02)*\n\xa3\x03\n\x04\x04\t\x02\x02\ |
| 9162 | \x12\x04\xb1\x02\x029\x1a\x94\x03\x20If\x20set\x20true,\x20then\x20the\ |
| 9163 | \x20Java\x20code\x20generator\x20will\x20generate\x20a\x20separate\x20.j\ |
| 9164 | ava\n\x20file\x20for\x20each\x20top-level\x20message,\x20enum,\x20and\ |
| 9165 | \x20service\x20defined\x20in\x20the\x20.proto\n\x20file.\x20\x20Thus,\ |
| 9166 | \x20these\x20types\x20will\x20*not*\x20be\x20nested\x20inside\x20the\x20\ |
| 9167 | outer\x20class\n\x20named\x20by\x20java_outer_classname.\x20\x20However,\ |
| 9168 | \x20the\x20outer\x20class\x20will\x20still\x20be\n\x20generated\x20to\ |
| 9169 | \x20contain\x20the\x20file's\x20getDescriptor()\x20method\x20as\x20well\ |
| 9170 | \x20as\x20any\n\x20top-level\x20extensions\x20defined\x20in\x20the\x20fi\ |
| 9171 | le.\n\n\r\n\x05\x04\t\x02\x02\x04\x12\x04\xb1\x02\x02\n\n\r\n\x05\x04\t\ |
| 9172 | \x02\x02\x05\x12\x04\xb1\x02\x0b\x0f\n\r\n\x05\x04\t\x02\x02\x01\x12\x04\ |
| 9173 | \xb1\x02\x10#\n\r\n\x05\x04\t\x02\x02\x03\x12\x04\xb1\x02&(\n\r\n\x05\ |
| 9174 | \x04\t\x02\x02\x08\x12\x04\xb1\x02)8\n\r\n\x05\x04\t\x02\x02\x07\x12\x04\ |
| 9175 | \xb1\x0227\n)\n\x04\x04\t\x02\x03\x12\x04\xb4\x02\x02E\x1a\x1b\x20This\ |
| 9176 | \x20option\x20does\x20nothing.\n\n\r\n\x05\x04\t\x02\x03\x04\x12\x04\xb4\ |
| 9177 | \x02\x02\n\n\r\n\x05\x04\t\x02\x03\x05\x12\x04\xb4\x02\x0b\x0f\n\r\n\x05\ |
| 9178 | \x04\t\x02\x03\x01\x12\x04\xb4\x02\x10-\n\r\n\x05\x04\t\x02\x03\x03\x12\ |
| 9179 | \x04\xb4\x0202\n\r\n\x05\x04\t\x02\x03\x08\x12\x04\xb4\x023D\n\x0e\n\x06\ |
| 9180 | \x04\t\x02\x03\x08\x03\x12\x04\xb4\x024C\n\xe6\x02\n\x04\x04\t\x02\x04\ |
| 9181 | \x12\x04\xbc\x02\x02<\x1a\xd7\x02\x20If\x20set\x20true,\x20then\x20the\ |
| 9182 | \x20Java2\x20code\x20generator\x20will\x20generate\x20code\x20that\n\x20\ |
| 9183 | throws\x20an\x20exception\x20whenever\x20an\x20attempt\x20is\x20made\x20\ |
| 9184 | to\x20assign\x20a\x20non-UTF-8\n\x20byte\x20sequence\x20to\x20a\x20strin\ |
| 9185 | g\x20field.\n\x20Message\x20reflection\x20will\x20do\x20the\x20same.\n\ |
| 9186 | \x20However,\x20an\x20extension\x20field\x20still\x20accepts\x20non-UTF-\ |
| 9187 | 8\x20byte\x20sequences.\n\x20This\x20option\x20has\x20no\x20effect\x20on\ |
| 9188 | \x20when\x20used\x20with\x20the\x20lite\x20runtime.\n\n\r\n\x05\x04\t\ |
| 9189 | \x02\x04\x04\x12\x04\xbc\x02\x02\n\n\r\n\x05\x04\t\x02\x04\x05\x12\x04\ |
| 9190 | \xbc\x02\x0b\x0f\n\r\n\x05\x04\t\x02\x04\x01\x12\x04\xbc\x02\x10&\n\r\n\ |
| 9191 | \x05\x04\t\x02\x04\x03\x12\x04\xbc\x02)+\n\r\n\x05\x04\t\x02\x04\x08\x12\ |
| 9192 | \x04\xbc\x02,;\n\r\n\x05\x04\t\x02\x04\x07\x12\x04\xbc\x025:\nL\n\x04\ |
| 9193 | \x04\t\x04\0\x12\x06\xc0\x02\x02\xc5\x02\x03\x1a<\x20Generated\x20classe\ |
| 9194 | s\x20can\x20be\x20optimized\x20for\x20speed\x20or\x20code\x20size.\n\n\r\ |
| 9195 | \n\x05\x04\t\x04\0\x01\x12\x04\xc0\x02\x07\x13\nD\n\x06\x04\t\x04\0\x02\ |
| 9196 | \0\x12\x04\xc1\x02\x04\x0e\"4\x20Generate\x20complete\x20code\x20for\x20\ |
| 9197 | parsing,\x20serialization,\n\n\x0f\n\x07\x04\t\x04\0\x02\0\x01\x12\x04\ |
| 9198 | \xc1\x02\x04\t\n\x0f\n\x07\x04\t\x04\0\x02\0\x02\x12\x04\xc1\x02\x0c\r\n\ |
| 9199 | G\n\x06\x04\t\x04\0\x02\x01\x12\x04\xc3\x02\x04\x12\x1a\x06\x20etc.\n\"/\ |
| 9200 | \x20Use\x20ReflectionOps\x20to\x20implement\x20these\x20methods.\n\n\x0f\ |
| 9201 | \n\x07\x04\t\x04\0\x02\x01\x01\x12\x04\xc3\x02\x04\r\n\x0f\n\x07\x04\t\ |
| 9202 | \x04\0\x02\x01\x02\x12\x04\xc3\x02\x10\x11\nG\n\x06\x04\t\x04\0\x02\x02\ |
| 9203 | \x12\x04\xc4\x02\x04\x15\"7\x20Generate\x20code\x20using\x20MessageLite\ |
| 9204 | \x20and\x20the\x20lite\x20runtime.\n\n\x0f\n\x07\x04\t\x04\0\x02\x02\x01\ |
| 9205 | \x12\x04\xc4\x02\x04\x10\n\x0f\n\x07\x04\t\x04\0\x02\x02\x02\x12\x04\xc4\ |
| 9206 | \x02\x13\x14\n\x0c\n\x04\x04\t\x02\x05\x12\x04\xc6\x02\x029\n\r\n\x05\ |
| 9207 | \x04\t\x02\x05\x04\x12\x04\xc6\x02\x02\n\n\r\n\x05\x04\t\x02\x05\x06\x12\ |
| 9208 | \x04\xc6\x02\x0b\x17\n\r\n\x05\x04\t\x02\x05\x01\x12\x04\xc6\x02\x18$\n\ |
| 9209 | \r\n\x05\x04\t\x02\x05\x03\x12\x04\xc6\x02'(\n\r\n\x05\x04\t\x02\x05\x08\ |
| 9210 | \x12\x04\xc6\x02)8\n\r\n\x05\x04\t\x02\x05\x07\x12\x04\xc6\x0227\n\xe2\ |
| 9211 | \x02\n\x04\x04\t\x02\x06\x12\x04\xcd\x02\x02\"\x1a\xd3\x02\x20Sets\x20th\ |
| 9212 | e\x20Go\x20package\x20where\x20structs\x20generated\x20from\x20this\x20.\ |
| 9213 | proto\x20will\x20be\n\x20placed.\x20If\x20omitted,\x20the\x20Go\x20packa\ |
| 9214 | ge\x20will\x20be\x20derived\x20from\x20the\x20following:\n\x20\x20\x20-\ |
| 9215 | \x20The\x20basename\x20of\x20the\x20package\x20import\x20path,\x20if\x20\ |
| 9216 | provided.\n\x20\x20\x20-\x20Otherwise,\x20the\x20package\x20statement\ |
| 9217 | \x20in\x20the\x20.proto\x20file,\x20if\x20present.\n\x20\x20\x20-\x20Oth\ |
| 9218 | erwise,\x20the\x20basename\x20of\x20the\x20.proto\x20file,\x20without\ |
| 9219 | \x20extension.\n\n\r\n\x05\x04\t\x02\x06\x04\x12\x04\xcd\x02\x02\n\n\r\n\ |
| 9220 | \x05\x04\t\x02\x06\x05\x12\x04\xcd\x02\x0b\x11\n\r\n\x05\x04\t\x02\x06\ |
| 9221 | \x01\x12\x04\xcd\x02\x12\x1c\n\r\n\x05\x04\t\x02\x06\x03\x12\x04\xcd\x02\ |
| 9222 | \x1f!\n\xd4\x04\n\x04\x04\t\x02\x07\x12\x04\xdb\x02\x029\x1a\xc5\x04\x20\ |
| 9223 | Should\x20generic\x20services\x20be\x20generated\x20in\x20each\x20langua\ |
| 9224 | ge?\x20\x20\"Generic\"\x20services\n\x20are\x20not\x20specific\x20to\x20\ |
| 9225 | any\x20particular\x20RPC\x20system.\x20\x20They\x20are\x20generated\x20b\ |
| 9226 | y\x20the\n\x20main\x20code\x20generators\x20in\x20each\x20language\x20(w\ |
| 9227 | ithout\x20additional\x20plugins).\n\x20Generic\x20services\x20were\x20th\ |
| 9228 | e\x20only\x20kind\x20of\x20service\x20generation\x20supported\x20by\n\ |
| 9229 | \x20early\x20versions\x20of\x20google.protobuf.\n\n\x20Generic\x20servic\ |
| 9230 | es\x20are\x20now\x20considered\x20deprecated\x20in\x20favor\x20of\x20usi\ |
| 9231 | ng\x20plugins\n\x20that\x20generate\x20code\x20specific\x20to\x20your\ |
| 9232 | \x20particular\x20RPC\x20system.\x20\x20Therefore,\n\x20these\x20default\ |
| 9233 | \x20to\x20false.\x20\x20Old\x20code\x20which\x20depends\x20on\x20generic\ |
| 9234 | \x20services\x20should\n\x20explicitly\x20set\x20them\x20to\x20true.\n\n\ |
| 9235 | \r\n\x05\x04\t\x02\x07\x04\x12\x04\xdb\x02\x02\n\n\r\n\x05\x04\t\x02\x07\ |
| 9236 | \x05\x12\x04\xdb\x02\x0b\x0f\n\r\n\x05\x04\t\x02\x07\x01\x12\x04\xdb\x02\ |
| 9237 | \x10#\n\r\n\x05\x04\t\x02\x07\x03\x12\x04\xdb\x02&(\n\r\n\x05\x04\t\x02\ |
| 9238 | \x07\x08\x12\x04\xdb\x02)8\n\r\n\x05\x04\t\x02\x07\x07\x12\x04\xdb\x0227\ |
| 9239 | \n\x0c\n\x04\x04\t\x02\x08\x12\x04\xdc\x02\x02;\n\r\n\x05\x04\t\x02\x08\ |
| 9240 | \x04\x12\x04\xdc\x02\x02\n\n\r\n\x05\x04\t\x02\x08\x05\x12\x04\xdc\x02\ |
| 9241 | \x0b\x0f\n\r\n\x05\x04\t\x02\x08\x01\x12\x04\xdc\x02\x10%\n\r\n\x05\x04\ |
| 9242 | \t\x02\x08\x03\x12\x04\xdc\x02(*\n\r\n\x05\x04\t\x02\x08\x08\x12\x04\xdc\ |
| 9243 | \x02+:\n\r\n\x05\x04\t\x02\x08\x07\x12\x04\xdc\x0249\n\x0c\n\x04\x04\t\ |
| 9244 | \x02\t\x12\x04\xdd\x02\x029\n\r\n\x05\x04\t\x02\t\x04\x12\x04\xdd\x02\ |
| 9245 | \x02\n\n\r\n\x05\x04\t\x02\t\x05\x12\x04\xdd\x02\x0b\x0f\n\r\n\x05\x04\t\ |
| 9246 | \x02\t\x01\x12\x04\xdd\x02\x10#\n\r\n\x05\x04\t\x02\t\x03\x12\x04\xdd\ |
| 9247 | \x02&(\n\r\n\x05\x04\t\x02\t\x08\x12\x04\xdd\x02)8\n\r\n\x05\x04\t\x02\t\ |
| 9248 | \x07\x12\x04\xdd\x0227\n\xf3\x01\n\x04\x04\t\x02\n\x12\x04\xe3\x02\x020\ |
| 9249 | \x1a\xe4\x01\x20Is\x20this\x20file\x20deprecated?\n\x20Depending\x20on\ |
| 9250 | \x20the\x20target\x20platform,\x20this\x20can\x20emit\x20Deprecated\x20a\ |
| 9251 | nnotations\n\x20for\x20everything\x20in\x20the\x20file,\x20or\x20it\x20w\ |
| 9252 | ill\x20be\x20completely\x20ignored;\x20in\x20the\x20very\n\x20least,\x20\ |
| 9253 | this\x20is\x20a\x20formalization\x20for\x20deprecating\x20files.\n\n\r\n\ |
| 9254 | \x05\x04\t\x02\n\x04\x12\x04\xe3\x02\x02\n\n\r\n\x05\x04\t\x02\n\x05\x12\ |
| 9255 | \x04\xe3\x02\x0b\x0f\n\r\n\x05\x04\t\x02\n\x01\x12\x04\xe3\x02\x10\x1a\n\ |
| 9256 | \r\n\x05\x04\t\x02\n\x03\x12\x04\xe3\x02\x1d\x1f\n\r\n\x05\x04\t\x02\n\ |
| 9257 | \x08\x12\x04\xe3\x02\x20/\n\r\n\x05\x04\t\x02\n\x07\x12\x04\xe3\x02).\n\ |
| 9258 | \x7f\n\x04\x04\t\x02\x0b\x12\x04\xe7\x02\x026\x1aq\x20Enables\x20the\x20\ |
| 9259 | use\x20of\x20arenas\x20for\x20the\x20proto\x20messages\x20in\x20this\x20\ |
| 9260 | file.\x20This\x20applies\n\x20only\x20to\x20generated\x20classes\x20for\ |
| 9261 | \x20C++.\n\n\r\n\x05\x04\t\x02\x0b\x04\x12\x04\xe7\x02\x02\n\n\r\n\x05\ |
| 9262 | \x04\t\x02\x0b\x05\x12\x04\xe7\x02\x0b\x0f\n\r\n\x05\x04\t\x02\x0b\x01\ |
| 9263 | \x12\x04\xe7\x02\x10\x20\n\r\n\x05\x04\t\x02\x0b\x03\x12\x04\xe7\x02#%\n\ |
| 9264 | \r\n\x05\x04\t\x02\x0b\x08\x12\x04\xe7\x02&5\n\r\n\x05\x04\t\x02\x0b\x07\ |
| 9265 | \x12\x04\xe7\x02/4\n\x92\x01\n\x04\x04\t\x02\x0c\x12\x04\xec\x02\x02)\ |
| 9266 | \x1a\x83\x01\x20Sets\x20the\x20objective\x20c\x20class\x20prefix\x20whic\ |
| 9267 | h\x20is\x20prepended\x20to\x20all\x20objective\x20c\n\x20generated\x20cl\ |
| 9268 | asses\x20from\x20this\x20.proto.\x20There\x20is\x20no\x20default.\n\n\r\ |
| 9269 | \n\x05\x04\t\x02\x0c\x04\x12\x04\xec\x02\x02\n\n\r\n\x05\x04\t\x02\x0c\ |
| 9270 | \x05\x12\x04\xec\x02\x0b\x11\n\r\n\x05\x04\t\x02\x0c\x01\x12\x04\xec\x02\ |
| 9271 | \x12#\n\r\n\x05\x04\t\x02\x0c\x03\x12\x04\xec\x02&(\nI\n\x04\x04\t\x02\r\ |
| 9272 | \x12\x04\xef\x02\x02(\x1a;\x20Namespace\x20for\x20generated\x20classes;\ |
| 9273 | \x20defaults\x20to\x20the\x20package.\n\n\r\n\x05\x04\t\x02\r\x04\x12\ |
| 9274 | \x04\xef\x02\x02\n\n\r\n\x05\x04\t\x02\r\x05\x12\x04\xef\x02\x0b\x11\n\r\ |
| 9275 | \n\x05\x04\t\x02\r\x01\x12\x04\xef\x02\x12\"\n\r\n\x05\x04\t\x02\r\x03\ |
| 9276 | \x12\x04\xef\x02%'\nO\n\x04\x04\t\x02\x0e\x12\x04\xf2\x02\x02:\x1aA\x20T\ |
| 9277 | he\x20parser\x20stores\x20options\x20it\x20doesn't\x20recognize\x20here.\ |
| 9278 | \x20See\x20above.\n\n\r\n\x05\x04\t\x02\x0e\x04\x12\x04\xf2\x02\x02\n\n\ |
| 9279 | \r\n\x05\x04\t\x02\x0e\x06\x12\x04\xf2\x02\x0b\x1e\n\r\n\x05\x04\t\x02\ |
| 9280 | \x0e\x01\x12\x04\xf2\x02\x1f3\n\r\n\x05\x04\t\x02\x0e\x03\x12\x04\xf2\ |
| 9281 | \x0269\nZ\n\x03\x04\t\x05\x12\x04\xf5\x02\x02\x19\x1aM\x20Clients\x20can\ |
| 9282 | \x20define\x20custom\x20options\x20in\x20extensions\x20of\x20this\x20mes\ |
| 9283 | sage.\x20See\x20above.\n\n\x0c\n\x04\x04\t\x05\0\x12\x04\xf5\x02\r\x18\n\ |
| 9284 | \r\n\x05\x04\t\x05\0\x01\x12\x04\xf5\x02\r\x11\n\r\n\x05\x04\t\x05\0\x02\ |
| 9285 | \x12\x04\xf5\x02\x15\x18\n\x0c\n\x02\x04\n\x12\x06\xfa\x02\0\xb8\x03\x01\ |
| 9286 | \n\x0b\n\x03\x04\n\x01\x12\x04\xfa\x02\x08\x16\n\xd8\x05\n\x04\x04\n\x02\ |
| 9287 | \0\x12\x04\x8d\x03\x02<\x1a\xc9\x05\x20Set\x20true\x20to\x20use\x20the\ |
| 9288 | \x20old\x20proto1\x20MessageSet\x20wire\x20format\x20for\x20extensions.\ |
| 9289 | \n\x20This\x20is\x20provided\x20for\x20backwards-compatibility\x20with\ |
| 9290 | \x20the\x20MessageSet\x20wire\n\x20format.\x20\x20You\x20should\x20not\ |
| 9291 | \x20use\x20this\x20for\x20any\x20other\x20reason:\x20\x20It's\x20less\n\ |
| 9292 | \x20efficient,\x20has\x20fewer\x20features,\x20and\x20is\x20more\x20comp\ |
| 9293 | licated.\n\n\x20The\x20message\x20must\x20be\x20defined\x20exactly\x20as\ |
| 9294 | \x20follows:\n\x20\x20\x20message\x20Foo\x20{\n\x20\x20\x20\x20\x20optio\ |
| 9295 | n\x20message_set_wire_format\x20=\x20true;\n\x20\x20\x20\x20\x20extensio\ |
| 9296 | ns\x204\x20to\x20max;\n\x20\x20\x20}\n\x20Note\x20that\x20the\x20message\ |
| 9297 | \x20cannot\x20have\x20any\x20defined\x20fields;\x20MessageSets\x20only\n\ |
| 9298 | \x20have\x20extensions.\n\n\x20All\x20extensions\x20of\x20your\x20type\ |
| 9299 | \x20must\x20be\x20singular\x20messages;\x20e.g.\x20they\x20cannot\n\x20b\ |
| 9300 | e\x20int32s,\x20enums,\x20or\x20repeated\x20messages.\n\n\x20Because\x20\ |
| 9301 | this\x20is\x20an\x20option,\x20the\x20above\x20two\x20restrictions\x20ar\ |
| 9302 | e\x20not\x20enforced\x20by\n\x20the\x20protocol\x20compiler.\n\n\r\n\x05\ |
| 9303 | \x04\n\x02\0\x04\x12\x04\x8d\x03\x02\n\n\r\n\x05\x04\n\x02\0\x05\x12\x04\ |
| 9304 | \x8d\x03\x0b\x0f\n\r\n\x05\x04\n\x02\0\x01\x12\x04\x8d\x03\x10'\n\r\n\ |
| 9305 | \x05\x04\n\x02\0\x03\x12\x04\x8d\x03*+\n\r\n\x05\x04\n\x02\0\x08\x12\x04\ |
| 9306 | \x8d\x03,;\n\r\n\x05\x04\n\x02\0\x07\x12\x04\x8d\x035:\n\xeb\x01\n\x04\ |
| 9307 | \x04\n\x02\x01\x12\x04\x92\x03\x02D\x1a\xdc\x01\x20Disables\x20the\x20ge\ |
| 9308 | neration\x20of\x20the\x20standard\x20\"descriptor()\"\x20accessor,\x20wh\ |
| 9309 | ich\x20can\n\x20conflict\x20with\x20a\x20field\x20of\x20the\x20same\x20n\ |
| 9310 | ame.\x20\x20This\x20is\x20meant\x20to\x20make\x20migration\n\x20from\x20\ |
| 9311 | proto1\x20easier;\x20new\x20code\x20should\x20avoid\x20fields\x20named\ |
| 9312 | \x20\"descriptor\".\n\n\r\n\x05\x04\n\x02\x01\x04\x12\x04\x92\x03\x02\n\ |
| 9313 | \n\r\n\x05\x04\n\x02\x01\x05\x12\x04\x92\x03\x0b\x0f\n\r\n\x05\x04\n\x02\ |
| 9314 | \x01\x01\x12\x04\x92\x03\x10/\n\r\n\x05\x04\n\x02\x01\x03\x12\x04\x92\ |
| 9315 | \x0323\n\r\n\x05\x04\n\x02\x01\x08\x12\x04\x92\x034C\n\r\n\x05\x04\n\x02\ |
| 9316 | \x01\x07\x12\x04\x92\x03=B\n\xee\x01\n\x04\x04\n\x02\x02\x12\x04\x98\x03\ |
| 9317 | \x02/\x1a\xdf\x01\x20Is\x20this\x20message\x20deprecated?\n\x20Depending\ |
| 9318 | \x20on\x20the\x20target\x20platform,\x20this\x20can\x20emit\x20Deprecate\ |
| 9319 | d\x20annotations\n\x20for\x20the\x20message,\x20or\x20it\x20will\x20be\ |
| 9320 | \x20completely\x20ignored;\x20in\x20the\x20very\x20least,\n\x20this\x20i\ |
| 9321 | s\x20a\x20formalization\x20for\x20deprecating\x20messages.\n\n\r\n\x05\ |
| 9322 | \x04\n\x02\x02\x04\x12\x04\x98\x03\x02\n\n\r\n\x05\x04\n\x02\x02\x05\x12\ |
| 9323 | \x04\x98\x03\x0b\x0f\n\r\n\x05\x04\n\x02\x02\x01\x12\x04\x98\x03\x10\x1a\ |
| 9324 | \n\r\n\x05\x04\n\x02\x02\x03\x12\x04\x98\x03\x1d\x1e\n\r\n\x05\x04\n\x02\ |
| 9325 | \x02\x08\x12\x04\x98\x03\x1f.\n\r\n\x05\x04\n\x02\x02\x07\x12\x04\x98\ |
| 9326 | \x03(-\n\x9e\x06\n\x04\x04\n\x02\x03\x12\x04\xaf\x03\x02\x1e\x1a\x8f\x06\ |
| 9327 | \x20Whether\x20the\x20message\x20is\x20an\x20automatically\x20generated\ |
| 9328 | \x20map\x20entry\x20type\x20for\x20the\n\x20maps\x20field.\n\n\x20For\ |
| 9329 | \x20maps\x20fields:\n\x20\x20\x20\x20\x20map<KeyType,\x20ValueType>\x20m\ |
| 9330 | ap_field\x20=\x201;\n\x20The\x20parsed\x20descriptor\x20looks\x20like:\n\ |
| 9331 | \x20\x20\x20\x20\x20message\x20MapFieldEntry\x20{\n\x20\x20\x20\x20\x20\ |
| 9332 | \x20\x20\x20\x20option\x20map_entry\x20=\x20true;\n\x20\x20\x20\x20\x20\ |
| 9333 | \x20\x20\x20\x20optional\x20KeyType\x20key\x20=\x201;\n\x20\x20\x20\x20\ |
| 9334 | \x20\x20\x20\x20\x20optional\x20ValueType\x20value\x20=\x202;\n\x20\x20\ |
| 9335 | \x20\x20\x20}\n\x20\x20\x20\x20\x20repeated\x20MapFieldEntry\x20map_fiel\ |
| 9336 | d\x20=\x201;\n\n\x20Implementations\x20may\x20choose\x20not\x20to\x20gen\ |
| 9337 | erate\x20the\x20map_entry=true\x20message,\x20but\n\x20use\x20a\x20nativ\ |
| 9338 | e\x20map\x20in\x20the\x20target\x20language\x20to\x20hold\x20the\x20keys\ |
| 9339 | \x20and\x20values.\n\x20The\x20reflection\x20APIs\x20in\x20such\x20imple\ |
| 9340 | mentions\x20still\x20need\x20to\x20work\x20as\n\x20if\x20the\x20field\ |
| 9341 | \x20is\x20a\x20repeated\x20message\x20field.\n\n\x20NOTE:\x20Do\x20not\ |
| 9342 | \x20set\x20the\x20option\x20in\x20.proto\x20files.\x20Always\x20use\x20t\ |
| 9343 | he\x20maps\x20syntax\n\x20instead.\x20The\x20option\x20should\x20only\ |
| 9344 | \x20be\x20implicitly\x20set\x20by\x20the\x20proto\x20compiler\n\x20parse\ |
| 9345 | r.\n\n\r\n\x05\x04\n\x02\x03\x04\x12\x04\xaf\x03\x02\n\n\r\n\x05\x04\n\ |
| 9346 | \x02\x03\x05\x12\x04\xaf\x03\x0b\x0f\n\r\n\x05\x04\n\x02\x03\x01\x12\x04\ |
| 9347 | \xaf\x03\x10\x19\n\r\n\x05\x04\n\x02\x03\x03\x12\x04\xaf\x03\x1c\x1d\nO\ |
| 9348 | \n\x04\x04\n\x02\x04\x12\x04\xb2\x03\x02:\x1aA\x20The\x20parser\x20store\ |
| 9349 | s\x20options\x20it\x20doesn't\x20recognize\x20here.\x20See\x20above.\n\n\ |
| 9350 | \r\n\x05\x04\n\x02\x04\x04\x12\x04\xb2\x03\x02\n\n\r\n\x05\x04\n\x02\x04\ |
| 9351 | \x06\x12\x04\xb2\x03\x0b\x1e\n\r\n\x05\x04\n\x02\x04\x01\x12\x04\xb2\x03\ |
| 9352 | \x1f3\n\r\n\x05\x04\n\x02\x04\x03\x12\x04\xb2\x0369\nZ\n\x03\x04\n\x05\ |
| 9353 | \x12\x04\xb5\x03\x02\x19\x1aM\x20Clients\x20can\x20define\x20custom\x20o\ |
| 9354 | ptions\x20in\x20extensions\x20of\x20this\x20message.\x20See\x20above.\n\ |
| 9355 | \n\x0c\n\x04\x04\n\x05\0\x12\x04\xb5\x03\r\x18\n\r\n\x05\x04\n\x05\0\x01\ |
| 9356 | \x12\x04\xb5\x03\r\x11\n\r\n\x05\x04\n\x05\0\x02\x12\x04\xb5\x03\x15\x18\ |
| 9357 | \n\x0c\n\x02\x04\x0b\x12\x06\xba\x03\0\x93\x04\x01\n\x0b\n\x03\x04\x0b\ |
| 9358 | \x01\x12\x04\xba\x03\x08\x14\n\xa3\x02\n\x04\x04\x0b\x02\0\x12\x04\xbf\ |
| 9359 | \x03\x02.\x1a\x94\x02\x20The\x20ctype\x20option\x20instructs\x20the\x20C\ |
| 9360 | ++\x20code\x20generator\x20to\x20use\x20a\x20different\n\x20representati\ |
| 9361 | on\x20of\x20the\x20field\x20than\x20it\x20normally\x20would.\x20\x20See\ |
| 9362 | \x20the\x20specific\n\x20options\x20below.\x20\x20This\x20option\x20is\ |
| 9363 | \x20not\x20yet\x20implemented\x20in\x20the\x20open\x20source\n\x20releas\ |
| 9364 | e\x20--\x20sorry,\x20we'll\x20try\x20to\x20include\x20it\x20in\x20a\x20f\ |
| 9365 | uture\x20version!\n\n\r\n\x05\x04\x0b\x02\0\x04\x12\x04\xbf\x03\x02\n\n\ |
| 9366 | \r\n\x05\x04\x0b\x02\0\x06\x12\x04\xbf\x03\x0b\x10\n\r\n\x05\x04\x0b\x02\ |
| 9367 | \0\x01\x12\x04\xbf\x03\x11\x16\n\r\n\x05\x04\x0b\x02\0\x03\x12\x04\xbf\ |
| 9368 | \x03\x19\x1a\n\r\n\x05\x04\x0b\x02\0\x08\x12\x04\xbf\x03\x1b-\n\r\n\x05\ |
| 9369 | \x04\x0b\x02\0\x07\x12\x04\xbf\x03&,\n\x0e\n\x04\x04\x0b\x04\0\x12\x06\ |
| 9370 | \xc0\x03\x02\xc7\x03\x03\n\r\n\x05\x04\x0b\x04\0\x01\x12\x04\xc0\x03\x07\ |
| 9371 | \x0c\n\x1f\n\x06\x04\x0b\x04\0\x02\0\x12\x04\xc2\x03\x04\x0f\x1a\x0f\x20\ |
| 9372 | Default\x20mode.\n\n\x0f\n\x07\x04\x0b\x04\0\x02\0\x01\x12\x04\xc2\x03\ |
| 9373 | \x04\n\n\x0f\n\x07\x04\x0b\x04\0\x02\0\x02\x12\x04\xc2\x03\r\x0e\n\x0e\n\ |
| 9374 | \x06\x04\x0b\x04\0\x02\x01\x12\x04\xc4\x03\x04\r\n\x0f\n\x07\x04\x0b\x04\ |
| 9375 | \0\x02\x01\x01\x12\x04\xc4\x03\x04\x08\n\x0f\n\x07\x04\x0b\x04\0\x02\x01\ |
| 9376 | \x02\x12\x04\xc4\x03\x0b\x0c\n\x0e\n\x06\x04\x0b\x04\0\x02\x02\x12\x04\ |
| 9377 | \xc6\x03\x04\x15\n\x0f\n\x07\x04\x0b\x04\0\x02\x02\x01\x12\x04\xc6\x03\ |
| 9378 | \x04\x10\n\x0f\n\x07\x04\x0b\x04\0\x02\x02\x02\x12\x04\xc6\x03\x13\x14\n\ |
| 9379 | \xda\x02\n\x04\x04\x0b\x02\x01\x12\x04\xcd\x03\x02\x1b\x1a\xcb\x02\x20Th\ |
| 9380 | e\x20packed\x20option\x20can\x20be\x20enabled\x20for\x20repeated\x20prim\ |
| 9381 | itive\x20fields\x20to\x20enable\n\x20a\x20more\x20efficient\x20represent\ |
| 9382 | ation\x20on\x20the\x20wire.\x20Rather\x20than\x20repeatedly\n\x20writing\ |
| 9383 | \x20the\x20tag\x20and\x20type\x20for\x20each\x20element,\x20the\x20entir\ |
| 9384 | e\x20array\x20is\x20encoded\x20as\n\x20a\x20single\x20length-delimited\ |
| 9385 | \x20blob.\x20In\x20proto3,\x20only\x20explicit\x20setting\x20it\x20to\n\ |
| 9386 | \x20false\x20will\x20avoid\x20using\x20packed\x20encoding.\n\n\r\n\x05\ |
| 9387 | \x04\x0b\x02\x01\x04\x12\x04\xcd\x03\x02\n\n\r\n\x05\x04\x0b\x02\x01\x05\ |
| 9388 | \x12\x04\xcd\x03\x0b\x0f\n\r\n\x05\x04\x0b\x02\x01\x01\x12\x04\xcd\x03\ |
| 9389 | \x10\x16\n\r\n\x05\x04\x0b\x02\x01\x03\x12\x04\xcd\x03\x19\x1a\n\xe4\x04\ |
| 9390 | \n\x04\x04\x0b\x02\x02\x12\x04\xd8\x03\x023\x1a\xd5\x04\x20The\x20jstype\ |
| 9391 | \x20option\x20determines\x20the\x20JavaScript\x20type\x20used\x20for\x20\ |
| 9392 | values\x20of\x20the\n\x20field.\x20\x20The\x20option\x20is\x20permitted\ |
| 9393 | \x20only\x20for\x2064\x20bit\x20integral\x20and\x20fixed\x20types\n\x20(\ |
| 9394 | int64,\x20uint64,\x20sint64,\x20fixed64,\x20sfixed64).\x20\x20By\x20defa\ |
| 9395 | ult\x20these\x20types\x20are\n\x20represented\x20as\x20JavaScript\x20str\ |
| 9396 | ings.\x20\x20This\x20avoids\x20loss\x20of\x20precision\x20that\x20can\n\ |
| 9397 | \x20happen\x20when\x20a\x20large\x20value\x20is\x20converted\x20to\x20a\ |
| 9398 | \x20floating\x20point\x20JavaScript\n\x20numbers.\x20\x20Specifying\x20J\ |
| 9399 | S_NUMBER\x20for\x20the\x20jstype\x20causes\x20the\x20generated\n\x20Java\ |
| 9400 | Script\x20code\x20to\x20use\x20the\x20JavaScript\x20\"number\"\x20type\ |
| 9401 | \x20instead\x20of\x20strings.\n\x20This\x20option\x20is\x20an\x20enum\ |
| 9402 | \x20to\x20permit\x20additional\x20types\x20to\x20be\x20added,\n\x20e.g.\ |
| 9403 | \x20goog.math.Integer.\n\n\r\n\x05\x04\x0b\x02\x02\x04\x12\x04\xd8\x03\ |
| 9404 | \x02\n\n\r\n\x05\x04\x0b\x02\x02\x06\x12\x04\xd8\x03\x0b\x11\n\r\n\x05\ |
| 9405 | \x04\x0b\x02\x02\x01\x12\x04\xd8\x03\x12\x18\n\r\n\x05\x04\x0b\x02\x02\ |
| 9406 | \x03\x12\x04\xd8\x03\x1b\x1c\n\r\n\x05\x04\x0b\x02\x02\x08\x12\x04\xd8\ |
| 9407 | \x03\x1d2\n\r\n\x05\x04\x0b\x02\x02\x07\x12\x04\xd8\x03(1\n\x0e\n\x04\ |
| 9408 | \x04\x0b\x04\x01\x12\x06\xd9\x03\x02\xe2\x03\x03\n\r\n\x05\x04\x0b\x04\ |
| 9409 | \x01\x01\x12\x04\xd9\x03\x07\r\n'\n\x06\x04\x0b\x04\x01\x02\0\x12\x04\ |
| 9410 | \xdb\x03\x04\x12\x1a\x17\x20Use\x20the\x20default\x20type.\n\n\x0f\n\x07\ |
| 9411 | \x04\x0b\x04\x01\x02\0\x01\x12\x04\xdb\x03\x04\r\n\x0f\n\x07\x04\x0b\x04\ |
| 9412 | \x01\x02\0\x02\x12\x04\xdb\x03\x10\x11\n)\n\x06\x04\x0b\x04\x01\x02\x01\ |
| 9413 | \x12\x04\xde\x03\x04\x12\x1a\x19\x20Use\x20JavaScript\x20strings.\n\n\ |
| 9414 | \x0f\n\x07\x04\x0b\x04\x01\x02\x01\x01\x12\x04\xde\x03\x04\r\n\x0f\n\x07\ |
| 9415 | \x04\x0b\x04\x01\x02\x01\x02\x12\x04\xde\x03\x10\x11\n)\n\x06\x04\x0b\ |
| 9416 | \x04\x01\x02\x02\x12\x04\xe1\x03\x04\x12\x1a\x19\x20Use\x20JavaScript\ |
| 9417 | \x20numbers.\n\n\x0f\n\x07\x04\x0b\x04\x01\x02\x02\x01\x12\x04\xe1\x03\ |
| 9418 | \x04\r\n\x0f\n\x07\x04\x0b\x04\x01\x02\x02\x02\x12\x04\xe1\x03\x10\x11\n\ |
| 9419 | \xef\x0c\n\x04\x04\x0b\x02\x03\x12\x04\x80\x04\x02)\x1a\xe0\x0c\x20Shoul\ |
| 9420 | d\x20this\x20field\x20be\x20parsed\x20lazily?\x20\x20Lazy\x20applies\x20\ |
| 9421 | only\x20to\x20message-type\n\x20fields.\x20\x20It\x20means\x20that\x20wh\ |
| 9422 | en\x20the\x20outer\x20message\x20is\x20initially\x20parsed,\x20the\n\x20\ |
| 9423 | inner\x20message's\x20contents\x20will\x20not\x20be\x20parsed\x20but\x20\ |
| 9424 | instead\x20stored\x20in\x20encoded\n\x20form.\x20\x20The\x20inner\x20mes\ |
| 9425 | sage\x20will\x20actually\x20be\x20parsed\x20when\x20it\x20is\x20first\ |
| 9426 | \x20accessed.\n\n\x20This\x20is\x20only\x20a\x20hint.\x20\x20Implementat\ |
| 9427 | ions\x20are\x20free\x20to\x20choose\x20whether\x20to\x20use\n\x20eager\ |
| 9428 | \x20or\x20lazy\x20parsing\x20regardless\x20of\x20the\x20value\x20of\x20t\ |
| 9429 | his\x20option.\x20\x20However,\n\x20setting\x20this\x20option\x20true\ |
| 9430 | \x20suggests\x20that\x20the\x20protocol\x20author\x20believes\x20that\n\ |
| 9431 | \x20using\x20lazy\x20parsing\x20on\x20this\x20field\x20is\x20worth\x20th\ |
| 9432 | e\x20additional\x20bookkeeping\n\x20overhead\x20typically\x20needed\x20t\ |
| 9433 | o\x20implement\x20it.\n\n\x20This\x20option\x20does\x20not\x20affect\x20\ |
| 9434 | the\x20public\x20interface\x20of\x20any\x20generated\x20code;\n\x20all\ |
| 9435 | \x20method\x20signatures\x20remain\x20the\x20same.\x20\x20Furthermore,\ |
| 9436 | \x20thread-safety\x20of\x20the\n\x20interface\x20is\x20not\x20affected\ |
| 9437 | \x20by\x20this\x20option;\x20const\x20methods\x20remain\x20safe\x20to\n\ |
| 9438 | \x20call\x20from\x20multiple\x20threads\x20concurrently,\x20while\x20non\ |
| 9439 | -const\x20methods\x20continue\n\x20to\x20require\x20exclusive\x20access.\ |
| 9440 | \n\n\n\x20Note\x20that\x20implementations\x20may\x20choose\x20not\x20to\ |
| 9441 | \x20check\x20required\x20fields\x20within\n\x20a\x20lazy\x20sub-message.\ |
| 9442 | \x20\x20That\x20is,\x20calling\x20IsInitialized()\x20on\x20the\x20outer\ |
| 9443 | \x20message\n\x20may\x20return\x20true\x20even\x20if\x20the\x20inner\x20\ |
| 9444 | message\x20has\x20missing\x20required\x20fields.\n\x20This\x20is\x20nece\ |
| 9445 | ssary\x20because\x20otherwise\x20the\x20inner\x20message\x20would\x20hav\ |
| 9446 | e\x20to\x20be\n\x20parsed\x20in\x20order\x20to\x20perform\x20the\x20chec\ |
| 9447 | k,\x20defeating\x20the\x20purpose\x20of\x20lazy\n\x20parsing.\x20\x20An\ |
| 9448 | \x20implementation\x20which\x20chooses\x20not\x20to\x20check\x20required\ |
| 9449 | \x20fields\n\x20must\x20be\x20consistent\x20about\x20it.\x20\x20That\x20\ |
| 9450 | is,\x20for\x20any\x20particular\x20sub-message,\x20the\n\x20implementati\ |
| 9451 | on\x20must\x20either\x20*always*\x20check\x20its\x20required\x20fields,\ |
| 9452 | \x20or\x20*never*\n\x20check\x20its\x20required\x20fields,\x20regardless\ |
| 9453 | \x20of\x20whether\x20or\x20not\x20the\x20message\x20has\n\x20been\x20par\ |
| 9454 | sed.\n\n\r\n\x05\x04\x0b\x02\x03\x04\x12\x04\x80\x04\x02\n\n\r\n\x05\x04\ |
| 9455 | \x0b\x02\x03\x05\x12\x04\x80\x04\x0b\x0f\n\r\n\x05\x04\x0b\x02\x03\x01\ |
| 9456 | \x12\x04\x80\x04\x10\x14\n\r\n\x05\x04\x0b\x02\x03\x03\x12\x04\x80\x04\ |
| 9457 | \x17\x18\n\r\n\x05\x04\x0b\x02\x03\x08\x12\x04\x80\x04\x19(\n\r\n\x05\ |
| 9458 | \x04\x0b\x02\x03\x07\x12\x04\x80\x04\"'\n\xe8\x01\n\x04\x04\x0b\x02\x04\ |
| 9459 | \x12\x04\x86\x04\x02/\x1a\xd9\x01\x20Is\x20this\x20field\x20deprecated?\ |
| 9460 | \n\x20Depending\x20on\x20the\x20target\x20platform,\x20this\x20can\x20em\ |
| 9461 | it\x20Deprecated\x20annotations\n\x20for\x20accessors,\x20or\x20it\x20wi\ |
| 9462 | ll\x20be\x20completely\x20ignored;\x20in\x20the\x20very\x20least,\x20thi\ |
| 9463 | s\n\x20is\x20a\x20formalization\x20for\x20deprecating\x20fields.\n\n\r\n\ |
| 9464 | \x05\x04\x0b\x02\x04\x04\x12\x04\x86\x04\x02\n\n\r\n\x05\x04\x0b\x02\x04\ |
| 9465 | \x05\x12\x04\x86\x04\x0b\x0f\n\r\n\x05\x04\x0b\x02\x04\x01\x12\x04\x86\ |
| 9466 | \x04\x10\x1a\n\r\n\x05\x04\x0b\x02\x04\x03\x12\x04\x86\x04\x1d\x1e\n\r\n\ |
| 9467 | \x05\x04\x0b\x02\x04\x08\x12\x04\x86\x04\x1f.\n\r\n\x05\x04\x0b\x02\x04\ |
| 9468 | \x07\x12\x04\x86\x04(-\n?\n\x04\x04\x0b\x02\x05\x12\x04\x89\x04\x02*\x1a\ |
| 9469 | 1\x20For\x20Google-internal\x20migration\x20only.\x20Do\x20not\x20use.\n\ |
| 9470 | \n\r\n\x05\x04\x0b\x02\x05\x04\x12\x04\x89\x04\x02\n\n\r\n\x05\x04\x0b\ |
| 9471 | \x02\x05\x05\x12\x04\x89\x04\x0b\x0f\n\r\n\x05\x04\x0b\x02\x05\x01\x12\ |
| 9472 | \x04\x89\x04\x10\x14\n\r\n\x05\x04\x0b\x02\x05\x03\x12\x04\x89\x04\x17\ |
| 9473 | \x19\n\r\n\x05\x04\x0b\x02\x05\x08\x12\x04\x89\x04\x1a)\n\r\n\x05\x04\ |
| 9474 | \x0b\x02\x05\x07\x12\x04\x89\x04#(\nO\n\x04\x04\x0b\x02\x06\x12\x04\x8d\ |
| 9475 | \x04\x02:\x1aA\x20The\x20parser\x20stores\x20options\x20it\x20doesn't\ |
| 9476 | \x20recognize\x20here.\x20See\x20above.\n\n\r\n\x05\x04\x0b\x02\x06\x04\ |
| 9477 | \x12\x04\x8d\x04\x02\n\n\r\n\x05\x04\x0b\x02\x06\x06\x12\x04\x8d\x04\x0b\ |
| 9478 | \x1e\n\r\n\x05\x04\x0b\x02\x06\x01\x12\x04\x8d\x04\x1f3\n\r\n\x05\x04\ |
| 9479 | \x0b\x02\x06\x03\x12\x04\x8d\x0469\nZ\n\x03\x04\x0b\x05\x12\x04\x90\x04\ |
| 9480 | \x02\x19\x1aM\x20Clients\x20can\x20define\x20custom\x20options\x20in\x20\ |
| 9481 | extensions\x20of\x20this\x20message.\x20See\x20above.\n\n\x0c\n\x04\x04\ |
| 9482 | \x0b\x05\0\x12\x04\x90\x04\r\x18\n\r\n\x05\x04\x0b\x05\0\x01\x12\x04\x90\ |
| 9483 | \x04\r\x11\n\r\n\x05\x04\x0b\x05\0\x02\x12\x04\x90\x04\x15\x18\n\x0c\n\ |
| 9484 | \x02\x04\x0c\x12\x06\x95\x04\0\x9b\x04\x01\n\x0b\n\x03\x04\x0c\x01\x12\ |
| 9485 | \x04\x95\x04\x08\x14\nO\n\x04\x04\x0c\x02\0\x12\x04\x97\x04\x02:\x1aA\ |
| 9486 | \x20The\x20parser\x20stores\x20options\x20it\x20doesn't\x20recognize\x20\ |
| 9487 | here.\x20See\x20above.\n\n\r\n\x05\x04\x0c\x02\0\x04\x12\x04\x97\x04\x02\ |
| 9488 | \n\n\r\n\x05\x04\x0c\x02\0\x06\x12\x04\x97\x04\x0b\x1e\n\r\n\x05\x04\x0c\ |
| 9489 | \x02\0\x01\x12\x04\x97\x04\x1f3\n\r\n\x05\x04\x0c\x02\0\x03\x12\x04\x97\ |
| 9490 | \x0469\nZ\n\x03\x04\x0c\x05\x12\x04\x9a\x04\x02\x19\x1aM\x20Clients\x20c\ |
| 9491 | an\x20define\x20custom\x20options\x20in\x20extensions\x20of\x20this\x20m\ |
| 9492 | essage.\x20See\x20above.\n\n\x0c\n\x04\x04\x0c\x05\0\x12\x04\x9a\x04\r\ |
| 9493 | \x18\n\r\n\x05\x04\x0c\x05\0\x01\x12\x04\x9a\x04\r\x11\n\r\n\x05\x04\x0c\ |
| 9494 | \x05\0\x02\x12\x04\x9a\x04\x15\x18\n\x0c\n\x02\x04\r\x12\x06\x9d\x04\0\ |
| 9495 | \xae\x04\x01\n\x0b\n\x03\x04\r\x01\x12\x04\x9d\x04\x08\x13\n`\n\x04\x04\ |
| 9496 | \r\x02\0\x12\x04\xa1\x04\x02\x20\x1aR\x20Set\x20this\x20option\x20to\x20\ |
| 9497 | true\x20to\x20allow\x20mapping\x20different\x20tag\x20names\x20to\x20the\ |
| 9498 | \x20same\n\x20value.\n\n\r\n\x05\x04\r\x02\0\x04\x12\x04\xa1\x04\x02\n\n\ |
| 9499 | \r\n\x05\x04\r\x02\0\x05\x12\x04\xa1\x04\x0b\x0f\n\r\n\x05\x04\r\x02\0\ |
| 9500 | \x01\x12\x04\xa1\x04\x10\x1b\n\r\n\x05\x04\r\x02\0\x03\x12\x04\xa1\x04\ |
| 9501 | \x1e\x1f\n\xe5\x01\n\x04\x04\r\x02\x01\x12\x04\xa7\x04\x02/\x1a\xd6\x01\ |
| 9502 | \x20Is\x20this\x20enum\x20deprecated?\n\x20Depending\x20on\x20the\x20tar\ |
| 9503 | get\x20platform,\x20this\x20can\x20emit\x20Deprecated\x20annotations\n\ |
| 9504 | \x20for\x20the\x20enum,\x20or\x20it\x20will\x20be\x20completely\x20ignor\ |
| 9505 | ed;\x20in\x20the\x20very\x20least,\x20this\n\x20is\x20a\x20formalization\ |
| 9506 | \x20for\x20deprecating\x20enums.\n\n\r\n\x05\x04\r\x02\x01\x04\x12\x04\ |
| 9507 | \xa7\x04\x02\n\n\r\n\x05\x04\r\x02\x01\x05\x12\x04\xa7\x04\x0b\x0f\n\r\n\ |
| 9508 | \x05\x04\r\x02\x01\x01\x12\x04\xa7\x04\x10\x1a\n\r\n\x05\x04\r\x02\x01\ |
| 9509 | \x03\x12\x04\xa7\x04\x1d\x1e\n\r\n\x05\x04\r\x02\x01\x08\x12\x04\xa7\x04\ |
| 9510 | \x1f.\n\r\n\x05\x04\r\x02\x01\x07\x12\x04\xa7\x04(-\nO\n\x04\x04\r\x02\ |
| 9511 | \x02\x12\x04\xaa\x04\x02:\x1aA\x20The\x20parser\x20stores\x20options\x20\ |
| 9512 | it\x20doesn't\x20recognize\x20here.\x20See\x20above.\n\n\r\n\x05\x04\r\ |
| 9513 | \x02\x02\x04\x12\x04\xaa\x04\x02\n\n\r\n\x05\x04\r\x02\x02\x06\x12\x04\ |
| 9514 | \xaa\x04\x0b\x1e\n\r\n\x05\x04\r\x02\x02\x01\x12\x04\xaa\x04\x1f3\n\r\n\ |
| 9515 | \x05\x04\r\x02\x02\x03\x12\x04\xaa\x0469\nZ\n\x03\x04\r\x05\x12\x04\xad\ |
| 9516 | \x04\x02\x19\x1aM\x20Clients\x20can\x20define\x20custom\x20options\x20in\ |
| 9517 | \x20extensions\x20of\x20this\x20message.\x20See\x20above.\n\n\x0c\n\x04\ |
| 9518 | \x04\r\x05\0\x12\x04\xad\x04\r\x18\n\r\n\x05\x04\r\x05\0\x01\x12\x04\xad\ |
| 9519 | \x04\r\x11\n\r\n\x05\x04\r\x05\0\x02\x12\x04\xad\x04\x15\x18\n\x0c\n\x02\ |
| 9520 | \x04\x0e\x12\x06\xb0\x04\0\xbc\x04\x01\n\x0b\n\x03\x04\x0e\x01\x12\x04\ |
| 9521 | \xb0\x04\x08\x18\n\xf7\x01\n\x04\x04\x0e\x02\0\x12\x04\xb5\x04\x02/\x1a\ |
| 9522 | \xe8\x01\x20Is\x20this\x20enum\x20value\x20deprecated?\n\x20Depending\ |
| 9523 | \x20on\x20the\x20target\x20platform,\x20this\x20can\x20emit\x20Deprecate\ |
| 9524 | d\x20annotations\n\x20for\x20the\x20enum\x20value,\x20or\x20it\x20will\ |
| 9525 | \x20be\x20completely\x20ignored;\x20in\x20the\x20very\x20least,\n\x20thi\ |
| 9526 | s\x20is\x20a\x20formalization\x20for\x20deprecating\x20enum\x20values.\n\ |
| 9527 | \n\r\n\x05\x04\x0e\x02\0\x04\x12\x04\xb5\x04\x02\n\n\r\n\x05\x04\x0e\x02\ |
| 9528 | \0\x05\x12\x04\xb5\x04\x0b\x0f\n\r\n\x05\x04\x0e\x02\0\x01\x12\x04\xb5\ |
| 9529 | \x04\x10\x1a\n\r\n\x05\x04\x0e\x02\0\x03\x12\x04\xb5\x04\x1d\x1e\n\r\n\ |
| 9530 | \x05\x04\x0e\x02\0\x08\x12\x04\xb5\x04\x1f.\n\r\n\x05\x04\x0e\x02\0\x07\ |
| 9531 | \x12\x04\xb5\x04(-\nO\n\x04\x04\x0e\x02\x01\x12\x04\xb8\x04\x02:\x1aA\ |
| 9532 | \x20The\x20parser\x20stores\x20options\x20it\x20doesn't\x20recognize\x20\ |
| 9533 | here.\x20See\x20above.\n\n\r\n\x05\x04\x0e\x02\x01\x04\x12\x04\xb8\x04\ |
| 9534 | \x02\n\n\r\n\x05\x04\x0e\x02\x01\x06\x12\x04\xb8\x04\x0b\x1e\n\r\n\x05\ |
| 9535 | \x04\x0e\x02\x01\x01\x12\x04\xb8\x04\x1f3\n\r\n\x05\x04\x0e\x02\x01\x03\ |
| 9536 | \x12\x04\xb8\x0469\nZ\n\x03\x04\x0e\x05\x12\x04\xbb\x04\x02\x19\x1aM\x20\ |
| 9537 | Clients\x20can\x20define\x20custom\x20options\x20in\x20extensions\x20of\ |
| 9538 | \x20this\x20message.\x20See\x20above.\n\n\x0c\n\x04\x04\x0e\x05\0\x12\ |
| 9539 | \x04\xbb\x04\r\x18\n\r\n\x05\x04\x0e\x05\0\x01\x12\x04\xbb\x04\r\x11\n\r\ |
| 9540 | \n\x05\x04\x0e\x05\0\x02\x12\x04\xbb\x04\x15\x18\n\x0c\n\x02\x04\x0f\x12\ |
| 9541 | \x06\xbe\x04\0\xd0\x04\x01\n\x0b\n\x03\x04\x0f\x01\x12\x04\xbe\x04\x08\ |
| 9542 | \x16\n\xd9\x03\n\x04\x04\x0f\x02\0\x12\x04\xc9\x04\x020\x1a\xdf\x01\x20I\ |
| 9543 | s\x20this\x20service\x20deprecated?\n\x20Depending\x20on\x20the\x20targe\ |
| 9544 | t\x20platform,\x20this\x20can\x20emit\x20Deprecated\x20annotations\n\x20\ |
| 9545 | for\x20the\x20service,\x20or\x20it\x20will\x20be\x20completely\x20ignore\ |
| 9546 | d;\x20in\x20the\x20very\x20least,\n\x20this\x20is\x20a\x20formalization\ |
| 9547 | \x20for\x20deprecating\x20services.\n2\xe8\x01\x20Note:\x20\x20Field\x20\ |
| 9548 | numbers\x201\x20through\x2032\x20are\x20reserved\x20for\x20Google's\x20i\ |
| 9549 | nternal\x20RPC\n\x20\x20\x20framework.\x20\x20We\x20apologize\x20for\x20\ |
| 9550 | hoarding\x20these\x20numbers\x20to\x20ourselves,\x20but\n\x20\x20\x20we\ |
| 9551 | \x20were\x20already\x20using\x20them\x20long\x20before\x20we\x20decided\ |
| 9552 | \x20to\x20release\x20Protocol\n\x20\x20\x20Buffers.\n\n\r\n\x05\x04\x0f\ |
| 9553 | \x02\0\x04\x12\x04\xc9\x04\x02\n\n\r\n\x05\x04\x0f\x02\0\x05\x12\x04\xc9\ |
| 9554 | \x04\x0b\x0f\n\r\n\x05\x04\x0f\x02\0\x01\x12\x04\xc9\x04\x10\x1a\n\r\n\ |
| 9555 | \x05\x04\x0f\x02\0\x03\x12\x04\xc9\x04\x1d\x1f\n\r\n\x05\x04\x0f\x02\0\ |
| 9556 | \x08\x12\x04\xc9\x04\x20/\n\r\n\x05\x04\x0f\x02\0\x07\x12\x04\xc9\x04).\ |
| 9557 | \nO\n\x04\x04\x0f\x02\x01\x12\x04\xcc\x04\x02:\x1aA\x20The\x20parser\x20\ |
| 9558 | stores\x20options\x20it\x20doesn't\x20recognize\x20here.\x20See\x20above\ |
| 9559 | .\n\n\r\n\x05\x04\x0f\x02\x01\x04\x12\x04\xcc\x04\x02\n\n\r\n\x05\x04\ |
| 9560 | \x0f\x02\x01\x06\x12\x04\xcc\x04\x0b\x1e\n\r\n\x05\x04\x0f\x02\x01\x01\ |
| 9561 | \x12\x04\xcc\x04\x1f3\n\r\n\x05\x04\x0f\x02\x01\x03\x12\x04\xcc\x0469\nZ\ |
| 9562 | \n\x03\x04\x0f\x05\x12\x04\xcf\x04\x02\x19\x1aM\x20Clients\x20can\x20def\ |
| 9563 | ine\x20custom\x20options\x20in\x20extensions\x20of\x20this\x20message.\ |
| 9564 | \x20See\x20above.\n\n\x0c\n\x04\x04\x0f\x05\0\x12\x04\xcf\x04\r\x18\n\r\ |
| 9565 | \n\x05\x04\x0f\x05\0\x01\x12\x04\xcf\x04\r\x11\n\r\n\x05\x04\x0f\x05\0\ |
| 9566 | \x02\x12\x04\xcf\x04\x15\x18\n\x0c\n\x02\x04\x10\x12\x06\xd2\x04\0\xe4\ |
| 9567 | \x04\x01\n\x0b\n\x03\x04\x10\x01\x12\x04\xd2\x04\x08\x15\n\xd6\x03\n\x04\ |
| 9568 | \x04\x10\x02\0\x12\x04\xdd\x04\x020\x1a\xdc\x01\x20Is\x20this\x20method\ |
| 9569 | \x20deprecated?\n\x20Depending\x20on\x20the\x20target\x20platform,\x20th\ |
| 9570 | is\x20can\x20emit\x20Deprecated\x20annotations\n\x20for\x20the\x20method\ |
| 9571 | ,\x20or\x20it\x20will\x20be\x20completely\x20ignored;\x20in\x20the\x20ve\ |
| 9572 | ry\x20least,\n\x20this\x20is\x20a\x20formalization\x20for\x20deprecating\ |
| 9573 | \x20methods.\n2\xe8\x01\x20Note:\x20\x20Field\x20numbers\x201\x20through\ |
| 9574 | \x2032\x20are\x20reserved\x20for\x20Google's\x20internal\x20RPC\n\x20\ |
| 9575 | \x20\x20framework.\x20\x20We\x20apologize\x20for\x20hoarding\x20these\ |
| 9576 | \x20numbers\x20to\x20ourselves,\x20but\n\x20\x20\x20we\x20were\x20alread\ |
| 9577 | y\x20using\x20them\x20long\x20before\x20we\x20decided\x20to\x20release\ |
| 9578 | \x20Protocol\n\x20\x20\x20Buffers.\n\n\r\n\x05\x04\x10\x02\0\x04\x12\x04\ |
| 9579 | \xdd\x04\x02\n\n\r\n\x05\x04\x10\x02\0\x05\x12\x04\xdd\x04\x0b\x0f\n\r\n\ |
| 9580 | \x05\x04\x10\x02\0\x01\x12\x04\xdd\x04\x10\x1a\n\r\n\x05\x04\x10\x02\0\ |
| 9581 | \x03\x12\x04\xdd\x04\x1d\x1f\n\r\n\x05\x04\x10\x02\0\x08\x12\x04\xdd\x04\ |
| 9582 | \x20/\n\r\n\x05\x04\x10\x02\0\x07\x12\x04\xdd\x04).\nO\n\x04\x04\x10\x02\ |
| 9583 | \x01\x12\x04\xe0\x04\x02:\x1aA\x20The\x20parser\x20stores\x20options\x20\ |
| 9584 | it\x20doesn't\x20recognize\x20here.\x20See\x20above.\n\n\r\n\x05\x04\x10\ |
| 9585 | \x02\x01\x04\x12\x04\xe0\x04\x02\n\n\r\n\x05\x04\x10\x02\x01\x06\x12\x04\ |
| 9586 | \xe0\x04\x0b\x1e\n\r\n\x05\x04\x10\x02\x01\x01\x12\x04\xe0\x04\x1f3\n\r\ |
| 9587 | \n\x05\x04\x10\x02\x01\x03\x12\x04\xe0\x0469\nZ\n\x03\x04\x10\x05\x12\ |
| 9588 | \x04\xe3\x04\x02\x19\x1aM\x20Clients\x20can\x20define\x20custom\x20optio\ |
| 9589 | ns\x20in\x20extensions\x20of\x20this\x20message.\x20See\x20above.\n\n\ |
| 9590 | \x0c\n\x04\x04\x10\x05\0\x12\x04\xe3\x04\r\x18\n\r\n\x05\x04\x10\x05\0\ |
| 9591 | \x01\x12\x04\xe3\x04\r\x11\n\r\n\x05\x04\x10\x05\0\x02\x12\x04\xe3\x04\ |
| 9592 | \x15\x18\n\x8b\x03\n\x02\x04\x11\x12\x06\xed\x04\0\x81\x05\x01\x1a\xfc\ |
| 9593 | \x02\x20A\x20message\x20representing\x20a\x20option\x20the\x20parser\x20\ |
| 9594 | does\x20not\x20recognize.\x20This\x20only\n\x20appears\x20in\x20options\ |
| 9595 | \x20protos\x20created\x20by\x20the\x20compiler::Parser\x20class.\n\x20De\ |
| 9596 | scriptorPool\x20resolves\x20these\x20when\x20building\x20Descriptor\x20o\ |
| 9597 | bjects.\x20Therefore,\n\x20options\x20protos\x20in\x20descriptor\x20obje\ |
| 9598 | cts\x20(e.g.\x20returned\x20by\x20Descriptor::options(),\n\x20or\x20prod\ |
| 9599 | uced\x20by\x20Descriptor::CopyTo())\x20will\x20never\x20have\x20Uninterp\ |
| 9600 | retedOptions\n\x20in\x20them.\n\n\x0b\n\x03\x04\x11\x01\x12\x04\xed\x04\ |
| 9601 | \x08\x1b\n\xcb\x02\n\x04\x04\x11\x03\0\x12\x06\xf3\x04\x02\xf6\x04\x03\ |
| 9602 | \x1a\xba\x02\x20The\x20name\x20of\x20the\x20uninterpreted\x20option.\x20\ |
| 9603 | \x20Each\x20string\x20represents\x20a\x20segment\x20in\n\x20a\x20dot-sep\ |
| 9604 | arated\x20name.\x20\x20is_extension\x20is\x20true\x20iff\x20a\x20segment\ |
| 9605 | \x20represents\x20an\n\x20extension\x20(denoted\x20with\x20parentheses\ |
| 9606 | \x20in\x20options\x20specs\x20in\x20.proto\x20files).\n\x20E.g.,{\x20[\"\ |
| 9607 | foo\",\x20false],\x20[\"bar.baz\",\x20true],\x20[\"qux\",\x20false]\x20}\ |
| 9608 | \x20represents\n\x20\"foo.(bar.baz).qux\".\n\n\r\n\x05\x04\x11\x03\0\x01\ |
| 9609 | \x12\x04\xf3\x04\n\x12\n\x0e\n\x06\x04\x11\x03\0\x02\0\x12\x04\xf4\x04\ |
| 9610 | \x04\"\n\x0f\n\x07\x04\x11\x03\0\x02\0\x04\x12\x04\xf4\x04\x04\x0c\n\x0f\ |
| 9611 | \n\x07\x04\x11\x03\0\x02\0\x05\x12\x04\xf4\x04\r\x13\n\x0f\n\x07\x04\x11\ |
| 9612 | \x03\0\x02\0\x01\x12\x04\xf4\x04\x14\x1d\n\x0f\n\x07\x04\x11\x03\0\x02\0\ |
| 9613 | \x03\x12\x04\xf4\x04\x20!\n\x0e\n\x06\x04\x11\x03\0\x02\x01\x12\x04\xf5\ |
| 9614 | \x04\x04#\n\x0f\n\x07\x04\x11\x03\0\x02\x01\x04\x12\x04\xf5\x04\x04\x0c\ |
| 9615 | \n\x0f\n\x07\x04\x11\x03\0\x02\x01\x05\x12\x04\xf5\x04\r\x11\n\x0f\n\x07\ |
| 9616 | \x04\x11\x03\0\x02\x01\x01\x12\x04\xf5\x04\x12\x1e\n\x0f\n\x07\x04\x11\ |
| 9617 | \x03\0\x02\x01\x03\x12\x04\xf5\x04!\"\n\x0c\n\x04\x04\x11\x02\0\x12\x04\ |
| 9618 | \xf7\x04\x02\x1d\n\r\n\x05\x04\x11\x02\0\x04\x12\x04\xf7\x04\x02\n\n\r\n\ |
| 9619 | \x05\x04\x11\x02\0\x06\x12\x04\xf7\x04\x0b\x13\n\r\n\x05\x04\x11\x02\0\ |
| 9620 | \x01\x12\x04\xf7\x04\x14\x18\n\r\n\x05\x04\x11\x02\0\x03\x12\x04\xf7\x04\ |
| 9621 | \x1b\x1c\n\x9c\x01\n\x04\x04\x11\x02\x01\x12\x04\xfb\x04\x02'\x1a\x8d\ |
| 9622 | \x01\x20The\x20value\x20of\x20the\x20uninterpreted\x20option,\x20in\x20w\ |
| 9623 | hatever\x20type\x20the\x20tokenizer\n\x20identified\x20it\x20as\x20durin\ |
| 9624 | g\x20parsing.\x20Exactly\x20one\x20of\x20these\x20should\x20be\x20set.\n\ |
| 9625 | \n\r\n\x05\x04\x11\x02\x01\x04\x12\x04\xfb\x04\x02\n\n\r\n\x05\x04\x11\ |
| 9626 | \x02\x01\x05\x12\x04\xfb\x04\x0b\x11\n\r\n\x05\x04\x11\x02\x01\x01\x12\ |
| 9627 | \x04\xfb\x04\x12\"\n\r\n\x05\x04\x11\x02\x01\x03\x12\x04\xfb\x04%&\n\x0c\ |
| 9628 | \n\x04\x04\x11\x02\x02\x12\x04\xfc\x04\x02)\n\r\n\x05\x04\x11\x02\x02\ |
| 9629 | \x04\x12\x04\xfc\x04\x02\n\n\r\n\x05\x04\x11\x02\x02\x05\x12\x04\xfc\x04\ |
| 9630 | \x0b\x11\n\r\n\x05\x04\x11\x02\x02\x01\x12\x04\xfc\x04\x12$\n\r\n\x05\ |
| 9631 | \x04\x11\x02\x02\x03\x12\x04\xfc\x04'(\n\x0c\n\x04\x04\x11\x02\x03\x12\ |
| 9632 | \x04\xfd\x04\x02(\n\r\n\x05\x04\x11\x02\x03\x04\x12\x04\xfd\x04\x02\n\n\ |
| 9633 | \r\n\x05\x04\x11\x02\x03\x05\x12\x04\xfd\x04\x0b\x10\n\r\n\x05\x04\x11\ |
| 9634 | \x02\x03\x01\x12\x04\xfd\x04\x11#\n\r\n\x05\x04\x11\x02\x03\x03\x12\x04\ |
| 9635 | \xfd\x04&'\n\x0c\n\x04\x04\x11\x02\x04\x12\x04\xfe\x04\x02#\n\r\n\x05\ |
| 9636 | \x04\x11\x02\x04\x04\x12\x04\xfe\x04\x02\n\n\r\n\x05\x04\x11\x02\x04\x05\ |
| 9637 | \x12\x04\xfe\x04\x0b\x11\n\r\n\x05\x04\x11\x02\x04\x01\x12\x04\xfe\x04\ |
| 9638 | \x12\x1e\n\r\n\x05\x04\x11\x02\x04\x03\x12\x04\xfe\x04!\"\n\x0c\n\x04\ |
| 9639 | \x04\x11\x02\x05\x12\x04\xff\x04\x02\"\n\r\n\x05\x04\x11\x02\x05\x04\x12\ |
| 9640 | \x04\xff\x04\x02\n\n\r\n\x05\x04\x11\x02\x05\x05\x12\x04\xff\x04\x0b\x10\ |
| 9641 | \n\r\n\x05\x04\x11\x02\x05\x01\x12\x04\xff\x04\x11\x1d\n\r\n\x05\x04\x11\ |
| 9642 | \x02\x05\x03\x12\x04\xff\x04\x20!\n\x0c\n\x04\x04\x11\x02\x06\x12\x04\ |
| 9643 | \x80\x05\x02&\n\r\n\x05\x04\x11\x02\x06\x04\x12\x04\x80\x05\x02\n\n\r\n\ |
| 9644 | \x05\x04\x11\x02\x06\x05\x12\x04\x80\x05\x0b\x11\n\r\n\x05\x04\x11\x02\ |
| 9645 | \x06\x01\x12\x04\x80\x05\x12!\n\r\n\x05\x04\x11\x02\x06\x03\x12\x04\x80\ |
| 9646 | \x05$%\n\xda\x01\n\x02\x04\x12\x12\x06\x88\x05\0\x89\x06\x01\x1aj\x20Enc\ |
| 9647 | apsulates\x20information\x20about\x20the\x20original\x20source\x20file\ |
| 9648 | \x20from\x20which\x20a\n\x20FileDescriptorProto\x20was\x20generated.\n2`\ |
| 9649 | \x20===================================================================\ |
| 9650 | \n\x20Optional\x20source\x20code\x20info\n\n\x0b\n\x03\x04\x12\x01\x12\ |
| 9651 | \x04\x88\x05\x08\x16\n\x82\x11\n\x04\x04\x12\x02\0\x12\x04\xb4\x05\x02!\ |
| 9652 | \x1a\xf3\x10\x20A\x20Location\x20identifies\x20a\x20piece\x20of\x20sourc\ |
| 9653 | e\x20code\x20in\x20a\x20.proto\x20file\x20which\n\x20corresponds\x20to\ |
| 9654 | \x20a\x20particular\x20definition.\x20\x20This\x20information\x20is\x20i\ |
| 9655 | ntended\n\x20to\x20be\x20useful\x20to\x20IDEs,\x20code\x20indexers,\x20d\ |
| 9656 | ocumentation\x20generators,\x20and\x20similar\n\x20tools.\n\n\x20For\x20\ |
| 9657 | example,\x20say\x20we\x20have\x20a\x20file\x20like:\n\x20\x20\x20message\ |
| 9658 | \x20Foo\x20{\n\x20\x20\x20\x20\x20optional\x20string\x20foo\x20=\x201;\n\ |
| 9659 | \x20\x20\x20}\n\x20Let's\x20look\x20at\x20just\x20the\x20field\x20defini\ |
| 9660 | tion:\n\x20\x20\x20optional\x20string\x20foo\x20=\x201;\n\x20\x20\x20^\ |
| 9661 | \x20\x20\x20\x20\x20\x20\x20^^\x20\x20\x20\x20\x20^^\x20\x20^\x20\x20^^^\ |
| 9662 | \n\x20\x20\x20a\x20\x20\x20\x20\x20\x20\x20bc\x20\x20\x20\x20\x20de\x20\ |
| 9663 | \x20f\x20\x20ghi\n\x20We\x20have\x20the\x20following\x20locations:\n\x20\ |
| 9664 | \x20\x20span\x20\x20\x20path\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ |
| 9665 | \x20\x20\x20\x20represents\n\x20\x20\x20[a,i)\x20\x20[\x204,\x200,\x202,\ |
| 9666 | \x200\x20]\x20\x20\x20\x20\x20The\x20whole\x20field\x20definition.\n\x20\ |
| 9667 | \x20\x20[a,b)\x20\x20[\x204,\x200,\x202,\x200,\x204\x20]\x20\x20The\x20l\ |
| 9668 | abel\x20(optional).\n\x20\x20\x20[c,d)\x20\x20[\x204,\x200,\x202,\x200,\ |
| 9669 | \x205\x20]\x20\x20The\x20type\x20(string).\n\x20\x20\x20[e,f)\x20\x20[\ |
| 9670 | \x204,\x200,\x202,\x200,\x201\x20]\x20\x20The\x20name\x20(foo).\n\x20\ |
| 9671 | \x20\x20[g,h)\x20\x20[\x204,\x200,\x202,\x200,\x203\x20]\x20\x20The\x20n\ |
| 9672 | umber\x20(1).\n\n\x20Notes:\n\x20-\x20A\x20location\x20may\x20refer\x20t\ |
| 9673 | o\x20a\x20repeated\x20field\x20itself\x20(i.e.\x20not\x20to\x20any\n\x20\ |
| 9674 | \x20\x20particular\x20index\x20within\x20it).\x20\x20This\x20is\x20used\ |
| 9675 | \x20whenever\x20a\x20set\x20of\x20elements\x20are\n\x20\x20\x20logically\ |
| 9676 | \x20enclosed\x20in\x20a\x20single\x20code\x20segment.\x20\x20For\x20exam\ |
| 9677 | ple,\x20an\x20entire\n\x20\x20\x20extend\x20block\x20(possibly\x20contai\ |
| 9678 | ning\x20multiple\x20extension\x20definitions)\x20will\n\x20\x20\x20have\ |
| 9679 | \x20an\x20outer\x20location\x20whose\x20path\x20refers\x20to\x20the\x20\ |
| 9680 | \"extensions\"\x20repeated\n\x20\x20\x20field\x20without\x20an\x20index.\ |
| 9681 | \n\x20-\x20Multiple\x20locations\x20may\x20have\x20the\x20same\x20path.\ |
| 9682 | \x20\x20This\x20happens\x20when\x20a\x20single\n\x20\x20\x20logical\x20d\ |
| 9683 | eclaration\x20is\x20spread\x20out\x20across\x20multiple\x20places.\x20\ |
| 9684 | \x20The\x20most\n\x20\x20\x20obvious\x20example\x20is\x20the\x20\"extend\ |
| 9685 | \"\x20block\x20again\x20--\x20there\x20may\x20be\x20multiple\n\x20\x20\ |
| 9686 | \x20extend\x20blocks\x20in\x20the\x20same\x20scope,\x20each\x20of\x20whi\ |
| 9687 | ch\x20will\x20have\x20the\x20same\x20path.\n\x20-\x20A\x20location's\x20\ |
| 9688 | span\x20is\x20not\x20always\x20a\x20subset\x20of\x20its\x20parent's\x20s\ |
| 9689 | pan.\x20\x20For\n\x20\x20\x20example,\x20the\x20\"extendee\"\x20of\x20an\ |
| 9690 | \x20extension\x20declaration\x20appears\x20at\x20the\n\x20\x20\x20beginn\ |
| 9691 | ing\x20of\x20the\x20\"extend\"\x20block\x20and\x20is\x20shared\x20by\x20\ |
| 9692 | all\x20extensions\x20within\n\x20\x20\x20the\x20block.\n\x20-\x20Just\ |
| 9693 | \x20because\x20a\x20location's\x20span\x20is\x20a\x20subset\x20of\x20som\ |
| 9694 | e\x20other\x20location's\x20span\n\x20\x20\x20does\x20not\x20mean\x20tha\ |
| 9695 | t\x20it\x20is\x20a\x20descendent.\x20\x20For\x20example,\x20a\x20\"group\ |
| 9696 | \"\x20defines\n\x20\x20\x20both\x20a\x20type\x20and\x20a\x20field\x20in\ |
| 9697 | \x20a\x20single\x20declaration.\x20\x20Thus,\x20the\x20locations\n\x20\ |
| 9698 | \x20\x20corresponding\x20to\x20the\x20type\x20and\x20field\x20and\x20the\ |
| 9699 | ir\x20components\x20will\x20overlap.\n\x20-\x20Code\x20which\x20tries\ |
| 9700 | \x20to\x20interpret\x20locations\x20should\x20probably\x20be\x20designed\ |
| 9701 | \x20to\n\x20\x20\x20ignore\x20those\x20that\x20it\x20doesn't\x20understa\ |
| 9702 | nd,\x20as\x20more\x20types\x20of\x20locations\x20could\n\x20\x20\x20be\ |
| 9703 | \x20recorded\x20in\x20the\x20future.\n\n\r\n\x05\x04\x12\x02\0\x04\x12\ |
| 9704 | \x04\xb4\x05\x02\n\n\r\n\x05\x04\x12\x02\0\x06\x12\x04\xb4\x05\x0b\x13\n\ |
| 9705 | \r\n\x05\x04\x12\x02\0\x01\x12\x04\xb4\x05\x14\x1c\n\r\n\x05\x04\x12\x02\ |
| 9706 | \0\x03\x12\x04\xb4\x05\x1f\x20\n\x0e\n\x04\x04\x12\x03\0\x12\x06\xb5\x05\ |
| 9707 | \x02\x88\x06\x03\n\r\n\x05\x04\x12\x03\0\x01\x12\x04\xb5\x05\n\x12\n\x83\ |
| 9708 | \x07\n\x06\x04\x12\x03\0\x02\0\x12\x04\xcd\x05\x04*\x1a\xf2\x06\x20Ident\ |
| 9709 | ifies\x20which\x20part\x20of\x20the\x20FileDescriptorProto\x20was\x20def\ |
| 9710 | ined\x20at\x20this\n\x20location.\n\n\x20Each\x20element\x20is\x20a\x20f\ |
| 9711 | ield\x20number\x20or\x20an\x20index.\x20\x20They\x20form\x20a\x20path\ |
| 9712 | \x20from\n\x20the\x20root\x20FileDescriptorProto\x20to\x20the\x20place\ |
| 9713 | \x20where\x20the\x20definition.\x20\x20For\n\x20example,\x20this\x20path\ |
| 9714 | :\n\x20\x20\x20[\x204,\x203,\x202,\x207,\x201\x20]\n\x20refers\x20to:\n\ |
| 9715 | \x20\x20\x20file.message_type(3)\x20\x20//\x204,\x203\n\x20\x20\x20\x20\ |
| 9716 | \x20\x20\x20.field(7)\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x202,\x207\n\ |
| 9717 | \x20\x20\x20\x20\x20\x20\x20.name()\x20\x20\x20\x20\x20\x20\x20\x20\x20\ |
| 9718 | \x20\x20//\x201\n\x20This\x20is\x20because\x20FileDescriptorProto.messag\ |
| 9719 | e_type\x20has\x20field\x20number\x204:\n\x20\x20\x20repeated\x20Descript\ |
| 9720 | orProto\x20message_type\x20=\x204;\n\x20and\x20DescriptorProto.field\x20\ |
| 9721 | has\x20field\x20number\x202:\n\x20\x20\x20repeated\x20FieldDescriptorPro\ |
| 9722 | to\x20field\x20=\x202;\n\x20and\x20FieldDescriptorProto.name\x20has\x20f\ |
| 9723 | ield\x20number\x201:\n\x20\x20\x20optional\x20string\x20name\x20=\x201;\ |
| 9724 | \n\n\x20Thus,\x20the\x20above\x20path\x20gives\x20the\x20location\x20of\ |
| 9725 | \x20a\x20field\x20name.\x20\x20If\x20we\x20removed\n\x20the\x20last\x20e\ |
| 9726 | lement:\n\x20\x20\x20[\x204,\x203,\x202,\x207\x20]\n\x20this\x20path\x20\ |
| 9727 | refers\x20to\x20the\x20whole\x20field\x20declaration\x20(from\x20the\x20\ |
| 9728 | beginning\n\x20of\x20the\x20label\x20to\x20the\x20terminating\x20semicol\ |
| 9729 | on).\n\n\x0f\n\x07\x04\x12\x03\0\x02\0\x04\x12\x04\xcd\x05\x04\x0c\n\x0f\ |
| 9730 | \n\x07\x04\x12\x03\0\x02\0\x05\x12\x04\xcd\x05\r\x12\n\x0f\n\x07\x04\x12\ |
| 9731 | \x03\0\x02\0\x01\x12\x04\xcd\x05\x13\x17\n\x0f\n\x07\x04\x12\x03\0\x02\0\ |
| 9732 | \x03\x12\x04\xcd\x05\x1a\x1b\n\x0f\n\x07\x04\x12\x03\0\x02\0\x08\x12\x04\ |
| 9733 | \xcd\x05\x1c)\n\x10\n\x08\x04\x12\x03\0\x02\0\x08\x02\x12\x04\xcd\x05\ |
| 9734 | \x1d(\n\xd2\x02\n\x06\x04\x12\x03\0\x02\x01\x12\x04\xd4\x05\x04*\x1a\xc1\ |
| 9735 | \x02\x20Always\x20has\x20exactly\x20three\x20or\x20four\x20elements:\x20\ |
| 9736 | start\x20line,\x20start\x20column,\n\x20end\x20line\x20(optional,\x20oth\ |
| 9737 | erwise\x20assumed\x20same\x20as\x20start\x20line),\x20end\x20column.\n\ |
| 9738 | \x20These\x20are\x20packed\x20into\x20a\x20single\x20field\x20for\x20eff\ |
| 9739 | iciency.\x20\x20Note\x20that\x20line\n\x20and\x20column\x20numbers\x20ar\ |
| 9740 | e\x20zero-based\x20--\x20typically\x20you\x20will\x20want\x20to\x20add\n\ |
| 9741 | \x201\x20to\x20each\x20before\x20displaying\x20to\x20a\x20user.\n\n\x0f\ |
| 9742 | \n\x07\x04\x12\x03\0\x02\x01\x04\x12\x04\xd4\x05\x04\x0c\n\x0f\n\x07\x04\ |
| 9743 | \x12\x03\0\x02\x01\x05\x12\x04\xd4\x05\r\x12\n\x0f\n\x07\x04\x12\x03\0\ |
| 9744 | \x02\x01\x01\x12\x04\xd4\x05\x13\x17\n\x0f\n\x07\x04\x12\x03\0\x02\x01\ |
| 9745 | \x03\x12\x04\xd4\x05\x1a\x1b\n\x0f\n\x07\x04\x12\x03\0\x02\x01\x08\x12\ |
| 9746 | \x04\xd4\x05\x1c)\n\x10\n\x08\x04\x12\x03\0\x02\x01\x08\x02\x12\x04\xd4\ |
| 9747 | \x05\x1d(\n\xa5\x0c\n\x06\x04\x12\x03\0\x02\x02\x12\x04\x85\x06\x04)\x1a\ |
| 9748 | \x94\x0c\x20If\x20this\x20SourceCodeInfo\x20represents\x20a\x20complete\ |
| 9749 | \x20declaration,\x20these\x20are\x20any\n\x20comments\x20appearing\x20be\ |
| 9750 | fore\x20and\x20after\x20the\x20declaration\x20which\x20appear\x20to\x20b\ |
| 9751 | e\n\x20attached\x20to\x20the\x20declaration.\n\n\x20A\x20series\x20of\ |
| 9752 | \x20line\x20comments\x20appearing\x20on\x20consecutive\x20lines,\x20with\ |
| 9753 | \x20no\x20other\n\x20tokens\x20appearing\x20on\x20those\x20lines,\x20wil\ |
| 9754 | l\x20be\x20treated\x20as\x20a\x20single\x20comment.\n\n\x20leading_detac\ |
| 9755 | hed_comments\x20will\x20keep\x20paragraphs\x20of\x20comments\x20that\x20\ |
| 9756 | appear\n\x20before\x20(but\x20not\x20connected\x20to)\x20the\x20current\ |
| 9757 | \x20element.\x20Each\x20paragraph,\n\x20separated\x20by\x20empty\x20line\ |
| 9758 | s,\x20will\x20be\x20one\x20comment\x20element\x20in\x20the\x20repeated\n\ |
| 9759 | \x20field.\n\n\x20Only\x20the\x20comment\x20content\x20is\x20provided;\ |
| 9760 | \x20comment\x20markers\x20(e.g.\x20//)\x20are\n\x20stripped\x20out.\x20\ |
| 9761 | \x20For\x20block\x20comments,\x20leading\x20whitespace\x20and\x20an\x20a\ |
| 9762 | sterisk\n\x20will\x20be\x20stripped\x20from\x20the\x20beginning\x20of\ |
| 9763 | \x20each\x20line\x20other\x20than\x20the\x20first.\n\x20Newlines\x20are\ |
| 9764 | \x20included\x20in\x20the\x20output.\n\n\x20Examples:\n\n\x20\x20\x20opt\ |
| 9765 | ional\x20int32\x20foo\x20=\x201;\x20\x20//\x20Comment\x20attached\x20to\ |
| 9766 | \x20foo.\n\x20\x20\x20//\x20Comment\x20attached\x20to\x20bar.\n\x20\x20\ |
| 9767 | \x20optional\x20int32\x20bar\x20=\x202;\n\n\x20\x20\x20optional\x20strin\ |
| 9768 | g\x20baz\x20=\x203;\n\x20\x20\x20//\x20Comment\x20attached\x20to\x20baz.\ |
| 9769 | \n\x20\x20\x20//\x20Another\x20line\x20attached\x20to\x20baz.\n\n\x20\ |
| 9770 | \x20\x20//\x20Comment\x20attached\x20to\x20qux.\n\x20\x20\x20//\n\x20\ |
| 9771 | \x20\x20//\x20Another\x20line\x20attached\x20to\x20qux.\n\x20\x20\x20opt\ |
| 9772 | ional\x20double\x20qux\x20=\x204;\n\n\x20\x20\x20//\x20Detached\x20comme\ |
| 9773 | nt\x20for\x20corge.\x20This\x20is\x20not\x20leading\x20or\x20trailing\ |
| 9774 | \x20comments\n\x20\x20\x20//\x20to\x20qux\x20or\x20corge\x20because\x20t\ |
| 9775 | here\x20are\x20blank\x20lines\x20separating\x20it\x20from\n\x20\x20\x20/\ |
| 9776 | /\x20both.\n\n\x20\x20\x20//\x20Detached\x20comment\x20for\x20corge\x20p\ |
| 9777 | aragraph\x202.\n\n\x20\x20\x20optional\x20string\x20corge\x20=\x205;\n\ |
| 9778 | \x20\x20\x20/*\x20Block\x20comment\x20attached\n\x20\x20\x20\x20*\x20to\ |
| 9779 | \x20corge.\x20\x20Leading\x20asterisks\n\x20\x20\x20\x20*\x20will\x20be\ |
| 9780 | \x20removed.\x20*/\n\x20\x20\x20/*\x20Block\x20comment\x20attached\x20to\ |
| 9781 | \n\x20\x20\x20\x20*\x20grault.\x20*/\n\x20\x20\x20optional\x20int32\x20g\ |
| 9782 | rault\x20=\x206;\n\n\x20\x20\x20//\x20ignored\x20detached\x20comments.\n\ |
| 9783 | \n\x0f\n\x07\x04\x12\x03\0\x02\x02\x04\x12\x04\x85\x06\x04\x0c\n\x0f\n\ |
| 9784 | \x07\x04\x12\x03\0\x02\x02\x05\x12\x04\x85\x06\r\x13\n\x0f\n\x07\x04\x12\ |
| 9785 | \x03\0\x02\x02\x01\x12\x04\x85\x06\x14$\n\x0f\n\x07\x04\x12\x03\0\x02\ |
| 9786 | \x02\x03\x12\x04\x85\x06'(\n\x0e\n\x06\x04\x12\x03\0\x02\x03\x12\x04\x86\ |
| 9787 | \x06\x04*\n\x0f\n\x07\x04\x12\x03\0\x02\x03\x04\x12\x04\x86\x06\x04\x0c\ |
| 9788 | \n\x0f\n\x07\x04\x12\x03\0\x02\x03\x05\x12\x04\x86\x06\r\x13\n\x0f\n\x07\ |
| 9789 | \x04\x12\x03\0\x02\x03\x01\x12\x04\x86\x06\x14%\n\x0f\n\x07\x04\x12\x03\ |
| 9790 | \0\x02\x03\x03\x12\x04\x86\x06()\n\x0e\n\x06\x04\x12\x03\0\x02\x04\x12\ |
| 9791 | \x04\x87\x06\x042\n\x0f\n\x07\x04\x12\x03\0\x02\x04\x04\x12\x04\x87\x06\ |
| 9792 | \x04\x0c\n\x0f\n\x07\x04\x12\x03\0\x02\x04\x05\x12\x04\x87\x06\r\x13\n\ |
| 9793 | \x0f\n\x07\x04\x12\x03\0\x02\x04\x01\x12\x04\x87\x06\x14-\n\x0f\n\x07\ |
| 9794 | \x04\x12\x03\0\x02\x04\x03\x12\x04\x87\x0601\n\xee\x01\n\x02\x04\x13\x12\ |
| 9795 | \x06\x8e\x06\0\xa3\x06\x01\x1a\xdf\x01\x20Describes\x20the\x20relationsh\ |
| 9796 | ip\x20between\x20generated\x20code\x20and\x20its\x20original\x20source\n\ |
| 9797 | \x20file.\x20A\x20GeneratedCodeInfo\x20message\x20is\x20associated\x20wi\ |
| 9798 | th\x20only\x20one\x20generated\n\x20source\x20file,\x20but\x20may\x20con\ |
| 9799 | tain\x20references\x20to\x20different\x20source\x20.proto\x20files.\n\n\ |
| 9800 | \x0b\n\x03\x04\x13\x01\x12\x04\x8e\x06\x08\x19\nx\n\x04\x04\x13\x02\0\ |
| 9801 | \x12\x04\x91\x06\x02%\x1aj\x20An\x20Annotation\x20connects\x20some\x20sp\ |
| 9802 | an\x20of\x20text\x20in\x20generated\x20code\x20to\x20an\x20element\n\x20\ |
| 9803 | of\x20its\x20generating\x20.proto\x20file.\n\n\r\n\x05\x04\x13\x02\0\x04\ |
| 9804 | \x12\x04\x91\x06\x02\n\n\r\n\x05\x04\x13\x02\0\x06\x12\x04\x91\x06\x0b\ |
| 9805 | \x15\n\r\n\x05\x04\x13\x02\0\x01\x12\x04\x91\x06\x16\x20\n\r\n\x05\x04\ |
| 9806 | \x13\x02\0\x03\x12\x04\x91\x06#$\n\x0e\n\x04\x04\x13\x03\0\x12\x06\x92\ |
| 9807 | \x06\x02\xa2\x06\x03\n\r\n\x05\x04\x13\x03\0\x01\x12\x04\x92\x06\n\x14\n\ |
| 9808 | \x8f\x01\n\x06\x04\x13\x03\0\x02\0\x12\x04\x95\x06\x04*\x1a\x7f\x20Ident\ |
| 9809 | ifies\x20the\x20element\x20in\x20the\x20original\x20source\x20.proto\x20\ |
| 9810 | file.\x20This\x20field\n\x20is\x20formatted\x20the\x20same\x20as\x20Sour\ |
| 9811 | ceCodeInfo.Location.path.\n\n\x0f\n\x07\x04\x13\x03\0\x02\0\x04\x12\x04\ |
| 9812 | \x95\x06\x04\x0c\n\x0f\n\x07\x04\x13\x03\0\x02\0\x05\x12\x04\x95\x06\r\ |
| 9813 | \x12\n\x0f\n\x07\x04\x13\x03\0\x02\0\x01\x12\x04\x95\x06\x13\x17\n\x0f\n\ |
| 9814 | \x07\x04\x13\x03\0\x02\0\x03\x12\x04\x95\x06\x1a\x1b\n\x0f\n\x07\x04\x13\ |
| 9815 | \x03\0\x02\0\x08\x12\x04\x95\x06\x1c)\n\x10\n\x08\x04\x13\x03\0\x02\0\ |
| 9816 | \x08\x02\x12\x04\x95\x06\x1d(\nO\n\x06\x04\x13\x03\0\x02\x01\x12\x04\x98\ |
| 9817 | \x06\x04$\x1a?\x20Identifies\x20the\x20filesystem\x20path\x20to\x20the\ |
| 9818 | \x20original\x20source\x20.proto.\n\n\x0f\n\x07\x04\x13\x03\0\x02\x01\ |
| 9819 | \x04\x12\x04\x98\x06\x04\x0c\n\x0f\n\x07\x04\x13\x03\0\x02\x01\x05\x12\ |
| 9820 | \x04\x98\x06\r\x13\n\x0f\n\x07\x04\x13\x03\0\x02\x01\x01\x12\x04\x98\x06\ |
| 9821 | \x14\x1f\n\x0f\n\x07\x04\x13\x03\0\x02\x01\x03\x12\x04\x98\x06\"#\nw\n\ |
| 9822 | \x06\x04\x13\x03\0\x02\x02\x12\x04\x9c\x06\x04\x1d\x1ag\x20Identifies\ |
| 9823 | \x20the\x20starting\x20offset\x20in\x20bytes\x20in\x20the\x20generated\ |
| 9824 | \x20code\n\x20that\x20relates\x20to\x20the\x20identified\x20object.\n\n\ |
| 9825 | \x0f\n\x07\x04\x13\x03\0\x02\x02\x04\x12\x04\x9c\x06\x04\x0c\n\x0f\n\x07\ |
| 9826 | \x04\x13\x03\0\x02\x02\x05\x12\x04\x9c\x06\r\x12\n\x0f\n\x07\x04\x13\x03\ |
| 9827 | \0\x02\x02\x01\x12\x04\x9c\x06\x13\x18\n\x0f\n\x07\x04\x13\x03\0\x02\x02\ |
| 9828 | \x03\x12\x04\x9c\x06\x1b\x1c\n\xdb\x01\n\x06\x04\x13\x03\0\x02\x03\x12\ |
| 9829 | \x04\xa1\x06\x04\x1b\x1a\xca\x01\x20Identifies\x20the\x20ending\x20offse\ |
| 9830 | t\x20in\x20bytes\x20in\x20the\x20generated\x20code\x20that\n\x20relates\ |
| 9831 | \x20to\x20the\x20identified\x20offset.\x20The\x20end\x20offset\x20should\ |
| 9832 | \x20be\x20one\x20past\n\x20the\x20last\x20relevant\x20byte\x20(so\x20the\ |
| 9833 | \x20length\x20of\x20the\x20text\x20=\x20end\x20-\x20begin).\n\n\x0f\n\ |
| 9834 | \x07\x04\x13\x03\0\x02\x03\x04\x12\x04\xa1\x06\x04\x0c\n\x0f\n\x07\x04\ |
| 9835 | \x13\x03\0\x02\x03\x05\x12\x04\xa1\x06\r\x12\n\x0f\n\x07\x04\x13\x03\0\ |
| 9836 | \x02\x03\x01\x12\x04\xa1\x06\x13\x16\n\x0f\n\x07\x04\x13\x03\0\x02\x03\ |
| 9837 | \x03\x12\x04\xa1\x06\x19\x1a\ |
| 9838 | "; |
| 9839 | |
| 9840 | static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy::INIT; |
| 9841 | |
| 9842 | fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { |
| 9843 | ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap() |
| 9844 | } |
| 9845 | |
| 9846 | pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { |
| 9847 | unsafe { |
| 9848 | file_descriptor_proto_lazy.get(|| { |
| 9849 | parse_descriptor_proto() |
| 9850 | }) |
| 9851 | } |
| 9852 | } |