OLD | NEW |
(Empty) | |
| 1 <?php |
| 2 # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 # source: google/protobuf/descriptor.proto |
| 4 |
| 5 namespace Google\Protobuf\Internal; |
| 6 |
| 7 use Google\Protobuf\Internal\DescriptorPool; |
| 8 use Google\Protobuf\Internal\GPBType; |
| 9 use Google\Protobuf\Internal\GPBWire; |
| 10 use Google\Protobuf\Internal\RepeatedField; |
| 11 use Google\Protobuf\Internal\InputStream; |
| 12 |
| 13 use Google\Protobuf\Internal\GPBUtil; |
| 14 |
| 15 class FileDescriptorSet extends \Google\Protobuf\Internal\Message |
| 16 { |
| 17 private $file; |
| 18 private $has_file = false; |
| 19 |
| 20 public function getFile() |
| 21 { |
| 22 return $this->file; |
| 23 } |
| 24 |
| 25 public function setFile(&$var) |
| 26 { |
| 27 GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Int
ernal\FileDescriptorProto::class); |
| 28 $this->file = $var; |
| 29 $this->has_file = true; |
| 30 } |
| 31 |
| 32 public function hasFile() |
| 33 { |
| 34 return $this->has_file; |
| 35 } |
| 36 |
| 37 } |
| 38 |
| 39 class FileDescriptorProto extends \Google\Protobuf\Internal\Message |
| 40 { |
| 41 private $name = ''; |
| 42 private $has_name = false; |
| 43 private $package = ''; |
| 44 private $has_package = false; |
| 45 private $dependency; |
| 46 private $has_dependency = false; |
| 47 private $public_dependency; |
| 48 private $has_public_dependency = false; |
| 49 private $weak_dependency; |
| 50 private $has_weak_dependency = false; |
| 51 private $message_type; |
| 52 private $has_message_type = false; |
| 53 private $enum_type; |
| 54 private $has_enum_type = false; |
| 55 private $service; |
| 56 private $has_service = false; |
| 57 private $extension; |
| 58 private $has_extension = false; |
| 59 private $options = null; |
| 60 private $has_options = false; |
| 61 private $source_code_info = null; |
| 62 private $has_source_code_info = false; |
| 63 private $syntax = ''; |
| 64 private $has_syntax = false; |
| 65 |
| 66 public function getName() |
| 67 { |
| 68 return $this->name; |
| 69 } |
| 70 |
| 71 public function setName($var) |
| 72 { |
| 73 GPBUtil::checkString($var, True); |
| 74 $this->name = $var; |
| 75 $this->has_name = true; |
| 76 } |
| 77 |
| 78 public function hasName() |
| 79 { |
| 80 return $this->has_name; |
| 81 } |
| 82 |
| 83 public function getPackage() |
| 84 { |
| 85 return $this->package; |
| 86 } |
| 87 |
| 88 public function setPackage($var) |
| 89 { |
| 90 GPBUtil::checkString($var, True); |
| 91 $this->package = $var; |
| 92 $this->has_package = true; |
| 93 } |
| 94 |
| 95 public function hasPackage() |
| 96 { |
| 97 return $this->has_package; |
| 98 } |
| 99 |
| 100 public function getDependency() |
| 101 { |
| 102 return $this->dependency; |
| 103 } |
| 104 |
| 105 public function setDependency(&$var) |
| 106 { |
| 107 GPBUtil::checkRepeatedField($var, GPBType::STRING); |
| 108 $this->dependency = $var; |
| 109 $this->has_dependency = true; |
| 110 } |
| 111 |
| 112 public function hasDependency() |
| 113 { |
| 114 return $this->has_dependency; |
| 115 } |
| 116 |
| 117 public function getPublicDependency() |
| 118 { |
| 119 return $this->public_dependency; |
| 120 } |
| 121 |
| 122 public function setPublicDependency(&$var) |
| 123 { |
| 124 GPBUtil::checkRepeatedField($var, GPBType::INT32); |
| 125 $this->public_dependency = $var; |
| 126 $this->has_public_dependency = true; |
| 127 } |
| 128 |
| 129 public function hasPublicDependency() |
| 130 { |
| 131 return $this->has_public_dependency; |
| 132 } |
| 133 |
| 134 public function getWeakDependency() |
| 135 { |
| 136 return $this->weak_dependency; |
| 137 } |
| 138 |
| 139 public function setWeakDependency(&$var) |
| 140 { |
| 141 GPBUtil::checkRepeatedField($var, GPBType::INT32); |
| 142 $this->weak_dependency = $var; |
| 143 $this->has_weak_dependency = true; |
| 144 } |
| 145 |
| 146 public function hasWeakDependency() |
| 147 { |
| 148 return $this->has_weak_dependency; |
| 149 } |
| 150 |
| 151 public function getMessageType() |
| 152 { |
| 153 return $this->message_type; |
| 154 } |
| 155 |
| 156 public function setMessageType(&$var) |
| 157 { |
| 158 GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Int
ernal\DescriptorProto::class); |
| 159 $this->message_type = $var; |
| 160 $this->has_message_type = true; |
| 161 } |
| 162 |
| 163 public function hasMessageType() |
| 164 { |
| 165 return $this->has_message_type; |
| 166 } |
| 167 |
| 168 public function getEnumType() |
| 169 { |
| 170 return $this->enum_type; |
| 171 } |
| 172 |
| 173 public function setEnumType(&$var) |
| 174 { |
| 175 GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Int
ernal\EnumDescriptorProto::class); |
| 176 $this->enum_type = $var; |
| 177 $this->has_enum_type = true; |
| 178 } |
| 179 |
| 180 public function hasEnumType() |
| 181 { |
| 182 return $this->has_enum_type; |
| 183 } |
| 184 |
| 185 public function getService() |
| 186 { |
| 187 return $this->service; |
| 188 } |
| 189 |
| 190 public function setService(&$var) |
| 191 { |
| 192 GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Int
ernal\ServiceDescriptorProto::class); |
| 193 $this->service = $var; |
| 194 $this->has_service = true; |
| 195 } |
| 196 |
| 197 public function hasService() |
| 198 { |
| 199 return $this->has_service; |
| 200 } |
| 201 |
| 202 public function getExtension() |
| 203 { |
| 204 return $this->extension; |
| 205 } |
| 206 |
| 207 public function setExtension(&$var) |
| 208 { |
| 209 GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Int
ernal\FieldDescriptorProto::class); |
| 210 $this->extension = $var; |
| 211 $this->has_extension = true; |
| 212 } |
| 213 |
| 214 public function hasExtension() |
| 215 { |
| 216 return $this->has_extension; |
| 217 } |
| 218 |
| 219 public function getOptions() |
| 220 { |
| 221 return $this->options; |
| 222 } |
| 223 |
| 224 public function setOptions(&$var) |
| 225 { |
| 226 GPBUtil::checkMessage($var, \Google\Protobuf\Internal\FileOptions::class
); |
| 227 $this->options = $var; |
| 228 $this->has_options = true; |
| 229 } |
| 230 |
| 231 public function hasOptions() |
| 232 { |
| 233 return $this->has_options; |
| 234 } |
| 235 |
| 236 public function getSourceCodeInfo() |
| 237 { |
| 238 return $this->source_code_info; |
| 239 } |
| 240 |
| 241 public function setSourceCodeInfo(&$var) |
| 242 { |
| 243 GPBUtil::checkMessage($var, \Google\Protobuf\Internal\SourceCodeInfo::cl
ass); |
| 244 $this->source_code_info = $var; |
| 245 $this->has_source_code_info = true; |
| 246 } |
| 247 |
| 248 public function hasSourceCodeInfo() |
| 249 { |
| 250 return $this->has_source_code_info; |
| 251 } |
| 252 |
| 253 public function getSyntax() |
| 254 { |
| 255 return $this->syntax; |
| 256 } |
| 257 |
| 258 public function setSyntax($var) |
| 259 { |
| 260 GPBUtil::checkString($var, True); |
| 261 $this->syntax = $var; |
| 262 $this->has_syntax = true; |
| 263 } |
| 264 |
| 265 public function hasSyntax() |
| 266 { |
| 267 return $this->has_syntax; |
| 268 } |
| 269 |
| 270 } |
| 271 |
| 272 class DescriptorProto extends \Google\Protobuf\Internal\Message |
| 273 { |
| 274 private $name = ''; |
| 275 private $has_name = false; |
| 276 private $field; |
| 277 private $has_field = false; |
| 278 private $extension; |
| 279 private $has_extension = false; |
| 280 private $nested_type; |
| 281 private $has_nested_type = false; |
| 282 private $enum_type; |
| 283 private $has_enum_type = false; |
| 284 private $extension_range; |
| 285 private $has_extension_range = false; |
| 286 private $oneof_decl; |
| 287 private $has_oneof_decl = false; |
| 288 private $options = null; |
| 289 private $has_options = false; |
| 290 private $reserved_range; |
| 291 private $has_reserved_range = false; |
| 292 private $reserved_name; |
| 293 private $has_reserved_name = false; |
| 294 |
| 295 public function getName() |
| 296 { |
| 297 return $this->name; |
| 298 } |
| 299 |
| 300 public function setName($var) |
| 301 { |
| 302 GPBUtil::checkString($var, True); |
| 303 $this->name = $var; |
| 304 $this->has_name = true; |
| 305 } |
| 306 |
| 307 public function hasName() |
| 308 { |
| 309 return $this->has_name; |
| 310 } |
| 311 |
| 312 public function getField() |
| 313 { |
| 314 return $this->field; |
| 315 } |
| 316 |
| 317 public function setField(&$var) |
| 318 { |
| 319 GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Int
ernal\FieldDescriptorProto::class); |
| 320 $this->field = $var; |
| 321 $this->has_field = true; |
| 322 } |
| 323 |
| 324 public function hasField() |
| 325 { |
| 326 return $this->has_field; |
| 327 } |
| 328 |
| 329 public function getExtension() |
| 330 { |
| 331 return $this->extension; |
| 332 } |
| 333 |
| 334 public function setExtension(&$var) |
| 335 { |
| 336 GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Int
ernal\FieldDescriptorProto::class); |
| 337 $this->extension = $var; |
| 338 $this->has_extension = true; |
| 339 } |
| 340 |
| 341 public function hasExtension() |
| 342 { |
| 343 return $this->has_extension; |
| 344 } |
| 345 |
| 346 public function getNestedType() |
| 347 { |
| 348 return $this->nested_type; |
| 349 } |
| 350 |
| 351 public function setNestedType(&$var) |
| 352 { |
| 353 GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Int
ernal\DescriptorProto::class); |
| 354 $this->nested_type = $var; |
| 355 $this->has_nested_type = true; |
| 356 } |
| 357 |
| 358 public function hasNestedType() |
| 359 { |
| 360 return $this->has_nested_type; |
| 361 } |
| 362 |
| 363 public function getEnumType() |
| 364 { |
| 365 return $this->enum_type; |
| 366 } |
| 367 |
| 368 public function setEnumType(&$var) |
| 369 { |
| 370 GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Int
ernal\EnumDescriptorProto::class); |
| 371 $this->enum_type = $var; |
| 372 $this->has_enum_type = true; |
| 373 } |
| 374 |
| 375 public function hasEnumType() |
| 376 { |
| 377 return $this->has_enum_type; |
| 378 } |
| 379 |
| 380 public function getExtensionRange() |
| 381 { |
| 382 return $this->extension_range; |
| 383 } |
| 384 |
| 385 public function setExtensionRange(&$var) |
| 386 { |
| 387 GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Int
ernal\DescriptorProto_ExtensionRange::class); |
| 388 $this->extension_range = $var; |
| 389 $this->has_extension_range = true; |
| 390 } |
| 391 |
| 392 public function hasExtensionRange() |
| 393 { |
| 394 return $this->has_extension_range; |
| 395 } |
| 396 |
| 397 public function getOneofDecl() |
| 398 { |
| 399 return $this->oneof_decl; |
| 400 } |
| 401 |
| 402 public function setOneofDecl(&$var) |
| 403 { |
| 404 GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Int
ernal\OneofDescriptorProto::class); |
| 405 $this->oneof_decl = $var; |
| 406 $this->has_oneof_decl = true; |
| 407 } |
| 408 |
| 409 public function hasOneofDecl() |
| 410 { |
| 411 return $this->has_oneof_decl; |
| 412 } |
| 413 |
| 414 public function getOptions() |
| 415 { |
| 416 return $this->options; |
| 417 } |
| 418 |
| 419 public function setOptions(&$var) |
| 420 { |
| 421 GPBUtil::checkMessage($var, \Google\Protobuf\Internal\MessageOptions::cl
ass); |
| 422 $this->options = $var; |
| 423 $this->has_options = true; |
| 424 } |
| 425 |
| 426 public function hasOptions() |
| 427 { |
| 428 return $this->has_options; |
| 429 } |
| 430 |
| 431 public function getReservedRange() |
| 432 { |
| 433 return $this->reserved_range; |
| 434 } |
| 435 |
| 436 public function setReservedRange(&$var) |
| 437 { |
| 438 GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Int
ernal\DescriptorProto_ReservedRange::class); |
| 439 $this->reserved_range = $var; |
| 440 $this->has_reserved_range = true; |
| 441 } |
| 442 |
| 443 public function hasReservedRange() |
| 444 { |
| 445 return $this->has_reserved_range; |
| 446 } |
| 447 |
| 448 public function getReservedName() |
| 449 { |
| 450 return $this->reserved_name; |
| 451 } |
| 452 |
| 453 public function setReservedName(&$var) |
| 454 { |
| 455 GPBUtil::checkRepeatedField($var, GPBType::STRING); |
| 456 $this->reserved_name = $var; |
| 457 $this->has_reserved_name = true; |
| 458 } |
| 459 |
| 460 public function hasReservedName() |
| 461 { |
| 462 return $this->has_reserved_name; |
| 463 } |
| 464 |
| 465 } |
| 466 |
| 467 class DescriptorProto_ExtensionRange extends \Google\Protobuf\Internal\Message |
| 468 { |
| 469 private $start = 0; |
| 470 private $has_start = false; |
| 471 private $end = 0; |
| 472 private $has_end = false; |
| 473 |
| 474 public function getStart() |
| 475 { |
| 476 return $this->start; |
| 477 } |
| 478 |
| 479 public function setStart($var) |
| 480 { |
| 481 GPBUtil::checkInt32($var); |
| 482 $this->start = $var; |
| 483 $this->has_start = true; |
| 484 } |
| 485 |
| 486 public function hasStart() |
| 487 { |
| 488 return $this->has_start; |
| 489 } |
| 490 |
| 491 public function getEnd() |
| 492 { |
| 493 return $this->end; |
| 494 } |
| 495 |
| 496 public function setEnd($var) |
| 497 { |
| 498 GPBUtil::checkInt32($var); |
| 499 $this->end = $var; |
| 500 $this->has_end = true; |
| 501 } |
| 502 |
| 503 public function hasEnd() |
| 504 { |
| 505 return $this->has_end; |
| 506 } |
| 507 |
| 508 } |
| 509 |
| 510 class DescriptorProto_ReservedRange extends \Google\Protobuf\Internal\Message |
| 511 { |
| 512 private $start = 0; |
| 513 private $has_start = false; |
| 514 private $end = 0; |
| 515 private $has_end = false; |
| 516 |
| 517 public function getStart() |
| 518 { |
| 519 return $this->start; |
| 520 } |
| 521 |
| 522 public function setStart($var) |
| 523 { |
| 524 GPBUtil::checkInt32($var); |
| 525 $this->start = $var; |
| 526 $this->has_start = true; |
| 527 } |
| 528 |
| 529 public function hasStart() |
| 530 { |
| 531 return $this->has_start; |
| 532 } |
| 533 |
| 534 public function getEnd() |
| 535 { |
| 536 return $this->end; |
| 537 } |
| 538 |
| 539 public function setEnd($var) |
| 540 { |
| 541 GPBUtil::checkInt32($var); |
| 542 $this->end = $var; |
| 543 $this->has_end = true; |
| 544 } |
| 545 |
| 546 public function hasEnd() |
| 547 { |
| 548 return $this->has_end; |
| 549 } |
| 550 |
| 551 } |
| 552 |
| 553 class FieldDescriptorProto extends \Google\Protobuf\Internal\Message |
| 554 { |
| 555 private $name = ''; |
| 556 private $has_name = false; |
| 557 private $number = 0; |
| 558 private $has_number = false; |
| 559 private $label = 0; |
| 560 private $has_label = false; |
| 561 private $type = 0; |
| 562 private $has_type = false; |
| 563 private $type_name = ''; |
| 564 private $has_type_name = false; |
| 565 private $extendee = ''; |
| 566 private $has_extendee = false; |
| 567 private $default_value = ''; |
| 568 private $has_default_value = false; |
| 569 private $oneof_index = 0; |
| 570 private $has_oneof_index = false; |
| 571 private $json_name = ''; |
| 572 private $has_json_name = false; |
| 573 private $options = null; |
| 574 private $has_options = false; |
| 575 |
| 576 public function getName() |
| 577 { |
| 578 return $this->name; |
| 579 } |
| 580 |
| 581 public function setName($var) |
| 582 { |
| 583 GPBUtil::checkString($var, True); |
| 584 $this->name = $var; |
| 585 $this->has_name = true; |
| 586 } |
| 587 |
| 588 public function hasName() |
| 589 { |
| 590 return $this->has_name; |
| 591 } |
| 592 |
| 593 public function getNumber() |
| 594 { |
| 595 return $this->number; |
| 596 } |
| 597 |
| 598 public function setNumber($var) |
| 599 { |
| 600 GPBUtil::checkInt32($var); |
| 601 $this->number = $var; |
| 602 $this->has_number = true; |
| 603 } |
| 604 |
| 605 public function hasNumber() |
| 606 { |
| 607 return $this->has_number; |
| 608 } |
| 609 |
| 610 public function getLabel() |
| 611 { |
| 612 return $this->label; |
| 613 } |
| 614 |
| 615 public function setLabel($var) |
| 616 { |
| 617 GPBUtil::checkEnum($var, \Google\Protobuf\Internal\FieldDescriptorProto_
Label::class); |
| 618 $this->label = $var; |
| 619 $this->has_label = true; |
| 620 } |
| 621 |
| 622 public function hasLabel() |
| 623 { |
| 624 return $this->has_label; |
| 625 } |
| 626 |
| 627 public function getType() |
| 628 { |
| 629 return $this->type; |
| 630 } |
| 631 |
| 632 public function setType($var) |
| 633 { |
| 634 GPBUtil::checkEnum($var, \Google\Protobuf\Internal\FieldDescriptorProto_
Type::class); |
| 635 $this->type = $var; |
| 636 $this->has_type = true; |
| 637 } |
| 638 |
| 639 public function hasType() |
| 640 { |
| 641 return $this->has_type; |
| 642 } |
| 643 |
| 644 public function getTypeName() |
| 645 { |
| 646 return $this->type_name; |
| 647 } |
| 648 |
| 649 public function setTypeName($var) |
| 650 { |
| 651 GPBUtil::checkString($var, True); |
| 652 $this->type_name = $var; |
| 653 $this->has_type_name = true; |
| 654 } |
| 655 |
| 656 public function hasTypeName() |
| 657 { |
| 658 return $this->has_type_name; |
| 659 } |
| 660 |
| 661 public function getExtendee() |
| 662 { |
| 663 return $this->extendee; |
| 664 } |
| 665 |
| 666 public function setExtendee($var) |
| 667 { |
| 668 GPBUtil::checkString($var, True); |
| 669 $this->extendee = $var; |
| 670 $this->has_extendee = true; |
| 671 } |
| 672 |
| 673 public function hasExtendee() |
| 674 { |
| 675 return $this->has_extendee; |
| 676 } |
| 677 |
| 678 public function getDefaultValue() |
| 679 { |
| 680 return $this->default_value; |
| 681 } |
| 682 |
| 683 public function setDefaultValue($var) |
| 684 { |
| 685 GPBUtil::checkString($var, True); |
| 686 $this->default_value = $var; |
| 687 $this->has_default_value = true; |
| 688 } |
| 689 |
| 690 public function hasDefaultValue() |
| 691 { |
| 692 return $this->has_default_value; |
| 693 } |
| 694 |
| 695 public function getOneofIndex() |
| 696 { |
| 697 return $this->oneof_index; |
| 698 } |
| 699 |
| 700 public function setOneofIndex($var) |
| 701 { |
| 702 GPBUtil::checkInt32($var); |
| 703 $this->oneof_index = $var; |
| 704 $this->has_oneof_index = true; |
| 705 } |
| 706 |
| 707 public function hasOneofIndex() |
| 708 { |
| 709 return $this->has_oneof_index; |
| 710 } |
| 711 |
| 712 public function getJsonName() |
| 713 { |
| 714 return $this->json_name; |
| 715 } |
| 716 |
| 717 public function setJsonName($var) |
| 718 { |
| 719 GPBUtil::checkString($var, True); |
| 720 $this->json_name = $var; |
| 721 $this->has_json_name = true; |
| 722 } |
| 723 |
| 724 public function hasJsonName() |
| 725 { |
| 726 return $this->has_json_name; |
| 727 } |
| 728 |
| 729 public function getOptions() |
| 730 { |
| 731 return $this->options; |
| 732 } |
| 733 |
| 734 public function setOptions(&$var) |
| 735 { |
| 736 GPBUtil::checkMessage($var, \Google\Protobuf\Internal\FieldOptions::clas
s); |
| 737 $this->options = $var; |
| 738 $this->has_options = true; |
| 739 } |
| 740 |
| 741 public function hasOptions() |
| 742 { |
| 743 return $this->has_options; |
| 744 } |
| 745 |
| 746 } |
| 747 |
| 748 class FieldDescriptorProto_Type |
| 749 { |
| 750 const TYPE_DOUBLE = 1; |
| 751 const TYPE_FLOAT = 2; |
| 752 const TYPE_INT64 = 3; |
| 753 const TYPE_UINT64 = 4; |
| 754 const TYPE_INT32 = 5; |
| 755 const TYPE_FIXED64 = 6; |
| 756 const TYPE_FIXED32 = 7; |
| 757 const TYPE_BOOL = 8; |
| 758 const TYPE_STRING = 9; |
| 759 const TYPE_GROUP = 10; |
| 760 const TYPE_MESSAGE = 11; |
| 761 const TYPE_BYTES = 12; |
| 762 const TYPE_UINT32 = 13; |
| 763 const TYPE_ENUM = 14; |
| 764 const TYPE_SFIXED32 = 15; |
| 765 const TYPE_SFIXED64 = 16; |
| 766 const TYPE_SINT32 = 17; |
| 767 const TYPE_SINT64 = 18; |
| 768 } |
| 769 |
| 770 class FieldDescriptorProto_Label |
| 771 { |
| 772 const LABEL_OPTIONAL = 1; |
| 773 const LABEL_REQUIRED = 2; |
| 774 const LABEL_REPEATED = 3; |
| 775 } |
| 776 |
| 777 class OneofDescriptorProto extends \Google\Protobuf\Internal\Message |
| 778 { |
| 779 private $name = ''; |
| 780 private $has_name = false; |
| 781 private $options = null; |
| 782 private $has_options = false; |
| 783 |
| 784 public function getName() |
| 785 { |
| 786 return $this->name; |
| 787 } |
| 788 |
| 789 public function setName($var) |
| 790 { |
| 791 GPBUtil::checkString($var, True); |
| 792 $this->name = $var; |
| 793 $this->has_name = true; |
| 794 } |
| 795 |
| 796 public function hasName() |
| 797 { |
| 798 return $this->has_name; |
| 799 } |
| 800 |
| 801 public function getOptions() |
| 802 { |
| 803 return $this->options; |
| 804 } |
| 805 |
| 806 public function setOptions(&$var) |
| 807 { |
| 808 GPBUtil::checkMessage($var, \Google\Protobuf\Internal\OneofOptions::clas
s); |
| 809 $this->options = $var; |
| 810 $this->has_options = true; |
| 811 } |
| 812 |
| 813 public function hasOptions() |
| 814 { |
| 815 return $this->has_options; |
| 816 } |
| 817 |
| 818 } |
| 819 |
| 820 class EnumDescriptorProto extends \Google\Protobuf\Internal\Message |
| 821 { |
| 822 private $name = ''; |
| 823 private $has_name = false; |
| 824 private $value; |
| 825 private $has_value = false; |
| 826 private $options = null; |
| 827 private $has_options = false; |
| 828 |
| 829 public function getName() |
| 830 { |
| 831 return $this->name; |
| 832 } |
| 833 |
| 834 public function setName($var) |
| 835 { |
| 836 GPBUtil::checkString($var, True); |
| 837 $this->name = $var; |
| 838 $this->has_name = true; |
| 839 } |
| 840 |
| 841 public function hasName() |
| 842 { |
| 843 return $this->has_name; |
| 844 } |
| 845 |
| 846 public function getValue() |
| 847 { |
| 848 return $this->value; |
| 849 } |
| 850 |
| 851 public function setValue(&$var) |
| 852 { |
| 853 GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Int
ernal\EnumValueDescriptorProto::class); |
| 854 $this->value = $var; |
| 855 $this->has_value = true; |
| 856 } |
| 857 |
| 858 public function hasValue() |
| 859 { |
| 860 return $this->has_value; |
| 861 } |
| 862 |
| 863 public function getOptions() |
| 864 { |
| 865 return $this->options; |
| 866 } |
| 867 |
| 868 public function setOptions(&$var) |
| 869 { |
| 870 GPBUtil::checkMessage($var, \Google\Protobuf\Internal\EnumOptions::class
); |
| 871 $this->options = $var; |
| 872 $this->has_options = true; |
| 873 } |
| 874 |
| 875 public function hasOptions() |
| 876 { |
| 877 return $this->has_options; |
| 878 } |
| 879 |
| 880 } |
| 881 |
| 882 class EnumValueDescriptorProto extends \Google\Protobuf\Internal\Message |
| 883 { |
| 884 private $name = ''; |
| 885 private $has_name = false; |
| 886 private $number = 0; |
| 887 private $has_number = false; |
| 888 private $options = null; |
| 889 private $has_options = false; |
| 890 |
| 891 public function getName() |
| 892 { |
| 893 return $this->name; |
| 894 } |
| 895 |
| 896 public function setName($var) |
| 897 { |
| 898 GPBUtil::checkString($var, True); |
| 899 $this->name = $var; |
| 900 $this->has_name = true; |
| 901 } |
| 902 |
| 903 public function hasName() |
| 904 { |
| 905 return $this->has_name; |
| 906 } |
| 907 |
| 908 public function getNumber() |
| 909 { |
| 910 return $this->number; |
| 911 } |
| 912 |
| 913 public function setNumber($var) |
| 914 { |
| 915 GPBUtil::checkInt32($var); |
| 916 $this->number = $var; |
| 917 $this->has_number = true; |
| 918 } |
| 919 |
| 920 public function hasNumber() |
| 921 { |
| 922 return $this->has_number; |
| 923 } |
| 924 |
| 925 public function getOptions() |
| 926 { |
| 927 return $this->options; |
| 928 } |
| 929 |
| 930 public function setOptions(&$var) |
| 931 { |
| 932 GPBUtil::checkMessage($var, \Google\Protobuf\Internal\EnumValueOptions::
class); |
| 933 $this->options = $var; |
| 934 $this->has_options = true; |
| 935 } |
| 936 |
| 937 public function hasOptions() |
| 938 { |
| 939 return $this->has_options; |
| 940 } |
| 941 |
| 942 } |
| 943 |
| 944 class ServiceDescriptorProto extends \Google\Protobuf\Internal\Message |
| 945 { |
| 946 private $name = ''; |
| 947 private $has_name = false; |
| 948 private $method; |
| 949 private $has_method = false; |
| 950 private $options = null; |
| 951 private $has_options = false; |
| 952 |
| 953 public function getName() |
| 954 { |
| 955 return $this->name; |
| 956 } |
| 957 |
| 958 public function setName($var) |
| 959 { |
| 960 GPBUtil::checkString($var, True); |
| 961 $this->name = $var; |
| 962 $this->has_name = true; |
| 963 } |
| 964 |
| 965 public function hasName() |
| 966 { |
| 967 return $this->has_name; |
| 968 } |
| 969 |
| 970 public function getMethod() |
| 971 { |
| 972 return $this->method; |
| 973 } |
| 974 |
| 975 public function setMethod(&$var) |
| 976 { |
| 977 GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Int
ernal\MethodDescriptorProto::class); |
| 978 $this->method = $var; |
| 979 $this->has_method = true; |
| 980 } |
| 981 |
| 982 public function hasMethod() |
| 983 { |
| 984 return $this->has_method; |
| 985 } |
| 986 |
| 987 public function getOptions() |
| 988 { |
| 989 return $this->options; |
| 990 } |
| 991 |
| 992 public function setOptions(&$var) |
| 993 { |
| 994 GPBUtil::checkMessage($var, \Google\Protobuf\Internal\ServiceOptions::cl
ass); |
| 995 $this->options = $var; |
| 996 $this->has_options = true; |
| 997 } |
| 998 |
| 999 public function hasOptions() |
| 1000 { |
| 1001 return $this->has_options; |
| 1002 } |
| 1003 |
| 1004 } |
| 1005 |
| 1006 class MethodDescriptorProto extends \Google\Protobuf\Internal\Message |
| 1007 { |
| 1008 private $name = ''; |
| 1009 private $has_name = false; |
| 1010 private $input_type = ''; |
| 1011 private $has_input_type = false; |
| 1012 private $output_type = ''; |
| 1013 private $has_output_type = false; |
| 1014 private $options = null; |
| 1015 private $has_options = false; |
| 1016 private $client_streaming = false; |
| 1017 private $has_client_streaming = false; |
| 1018 private $server_streaming = false; |
| 1019 private $has_server_streaming = false; |
| 1020 |
| 1021 public function getName() |
| 1022 { |
| 1023 return $this->name; |
| 1024 } |
| 1025 |
| 1026 public function setName($var) |
| 1027 { |
| 1028 GPBUtil::checkString($var, True); |
| 1029 $this->name = $var; |
| 1030 $this->has_name = true; |
| 1031 } |
| 1032 |
| 1033 public function hasName() |
| 1034 { |
| 1035 return $this->has_name; |
| 1036 } |
| 1037 |
| 1038 public function getInputType() |
| 1039 { |
| 1040 return $this->input_type; |
| 1041 } |
| 1042 |
| 1043 public function setInputType($var) |
| 1044 { |
| 1045 GPBUtil::checkString($var, True); |
| 1046 $this->input_type = $var; |
| 1047 $this->has_input_type = true; |
| 1048 } |
| 1049 |
| 1050 public function hasInputType() |
| 1051 { |
| 1052 return $this->has_input_type; |
| 1053 } |
| 1054 |
| 1055 public function getOutputType() |
| 1056 { |
| 1057 return $this->output_type; |
| 1058 } |
| 1059 |
| 1060 public function setOutputType($var) |
| 1061 { |
| 1062 GPBUtil::checkString($var, True); |
| 1063 $this->output_type = $var; |
| 1064 $this->has_output_type = true; |
| 1065 } |
| 1066 |
| 1067 public function hasOutputType() |
| 1068 { |
| 1069 return $this->has_output_type; |
| 1070 } |
| 1071 |
| 1072 public function getOptions() |
| 1073 { |
| 1074 return $this->options; |
| 1075 } |
| 1076 |
| 1077 public function setOptions(&$var) |
| 1078 { |
| 1079 GPBUtil::checkMessage($var, \Google\Protobuf\Internal\MethodOptions::cla
ss); |
| 1080 $this->options = $var; |
| 1081 $this->has_options = true; |
| 1082 } |
| 1083 |
| 1084 public function hasOptions() |
| 1085 { |
| 1086 return $this->has_options; |
| 1087 } |
| 1088 |
| 1089 public function getClientStreaming() |
| 1090 { |
| 1091 return $this->client_streaming; |
| 1092 } |
| 1093 |
| 1094 public function setClientStreaming($var) |
| 1095 { |
| 1096 GPBUtil::checkBool($var); |
| 1097 $this->client_streaming = $var; |
| 1098 $this->has_client_streaming = true; |
| 1099 } |
| 1100 |
| 1101 public function hasClientStreaming() |
| 1102 { |
| 1103 return $this->has_client_streaming; |
| 1104 } |
| 1105 |
| 1106 public function getServerStreaming() |
| 1107 { |
| 1108 return $this->server_streaming; |
| 1109 } |
| 1110 |
| 1111 public function setServerStreaming($var) |
| 1112 { |
| 1113 GPBUtil::checkBool($var); |
| 1114 $this->server_streaming = $var; |
| 1115 $this->has_server_streaming = true; |
| 1116 } |
| 1117 |
| 1118 public function hasServerStreaming() |
| 1119 { |
| 1120 return $this->has_server_streaming; |
| 1121 } |
| 1122 |
| 1123 } |
| 1124 |
| 1125 class FileOptions extends \Google\Protobuf\Internal\Message |
| 1126 { |
| 1127 private $java_package = ''; |
| 1128 private $has_java_package = false; |
| 1129 private $java_outer_classname = ''; |
| 1130 private $has_java_outer_classname = false; |
| 1131 private $java_multiple_files = false; |
| 1132 private $has_java_multiple_files = false; |
| 1133 private $java_generate_equals_and_hash = false; |
| 1134 private $has_java_generate_equals_and_hash = false; |
| 1135 private $java_string_check_utf8 = false; |
| 1136 private $has_java_string_check_utf8 = false; |
| 1137 private $optimize_for = 0; |
| 1138 private $has_optimize_for = false; |
| 1139 private $go_package = ''; |
| 1140 private $has_go_package = false; |
| 1141 private $cc_generic_services = false; |
| 1142 private $has_cc_generic_services = false; |
| 1143 private $java_generic_services = false; |
| 1144 private $has_java_generic_services = false; |
| 1145 private $py_generic_services = false; |
| 1146 private $has_py_generic_services = false; |
| 1147 private $deprecated = false; |
| 1148 private $has_deprecated = false; |
| 1149 private $cc_enable_arenas = false; |
| 1150 private $has_cc_enable_arenas = false; |
| 1151 private $objc_class_prefix = ''; |
| 1152 private $has_objc_class_prefix = false; |
| 1153 private $csharp_namespace = ''; |
| 1154 private $has_csharp_namespace = false; |
| 1155 private $uninterpreted_option; |
| 1156 private $has_uninterpreted_option = false; |
| 1157 |
| 1158 public function getJavaPackage() |
| 1159 { |
| 1160 return $this->java_package; |
| 1161 } |
| 1162 |
| 1163 public function setJavaPackage($var) |
| 1164 { |
| 1165 GPBUtil::checkString($var, True); |
| 1166 $this->java_package = $var; |
| 1167 $this->has_java_package = true; |
| 1168 } |
| 1169 |
| 1170 public function hasJavaPackage() |
| 1171 { |
| 1172 return $this->has_java_package; |
| 1173 } |
| 1174 |
| 1175 public function getJavaOuterClassname() |
| 1176 { |
| 1177 return $this->java_outer_classname; |
| 1178 } |
| 1179 |
| 1180 public function setJavaOuterClassname($var) |
| 1181 { |
| 1182 GPBUtil::checkString($var, True); |
| 1183 $this->java_outer_classname = $var; |
| 1184 $this->has_java_outer_classname = true; |
| 1185 } |
| 1186 |
| 1187 public function hasJavaOuterClassname() |
| 1188 { |
| 1189 return $this->has_java_outer_classname; |
| 1190 } |
| 1191 |
| 1192 public function getJavaMultipleFiles() |
| 1193 { |
| 1194 return $this->java_multiple_files; |
| 1195 } |
| 1196 |
| 1197 public function setJavaMultipleFiles($var) |
| 1198 { |
| 1199 GPBUtil::checkBool($var); |
| 1200 $this->java_multiple_files = $var; |
| 1201 $this->has_java_multiple_files = true; |
| 1202 } |
| 1203 |
| 1204 public function hasJavaMultipleFiles() |
| 1205 { |
| 1206 return $this->has_java_multiple_files; |
| 1207 } |
| 1208 |
| 1209 public function getJavaGenerateEqualsAndHash() |
| 1210 { |
| 1211 return $this->java_generate_equals_and_hash; |
| 1212 } |
| 1213 |
| 1214 public function setJavaGenerateEqualsAndHash($var) |
| 1215 { |
| 1216 GPBUtil::checkBool($var); |
| 1217 $this->java_generate_equals_and_hash = $var; |
| 1218 $this->has_java_generate_equals_and_hash = true; |
| 1219 } |
| 1220 |
| 1221 public function hasJavaGenerateEqualsAndHash() |
| 1222 { |
| 1223 return $this->has_java_generate_equals_and_hash; |
| 1224 } |
| 1225 |
| 1226 public function getJavaStringCheckUtf8() |
| 1227 { |
| 1228 return $this->java_string_check_utf8; |
| 1229 } |
| 1230 |
| 1231 public function setJavaStringCheckUtf8($var) |
| 1232 { |
| 1233 GPBUtil::checkBool($var); |
| 1234 $this->java_string_check_utf8 = $var; |
| 1235 $this->has_java_string_check_utf8 = true; |
| 1236 } |
| 1237 |
| 1238 public function hasJavaStringCheckUtf8() |
| 1239 { |
| 1240 return $this->has_java_string_check_utf8; |
| 1241 } |
| 1242 |
| 1243 public function getOptimizeFor() |
| 1244 { |
| 1245 return $this->optimize_for; |
| 1246 } |
| 1247 |
| 1248 public function setOptimizeFor($var) |
| 1249 { |
| 1250 GPBUtil::checkEnum($var, \Google\Protobuf\Internal\FileOptions_OptimizeM
ode::class); |
| 1251 $this->optimize_for = $var; |
| 1252 $this->has_optimize_for = true; |
| 1253 } |
| 1254 |
| 1255 public function hasOptimizeFor() |
| 1256 { |
| 1257 return $this->has_optimize_for; |
| 1258 } |
| 1259 |
| 1260 public function getGoPackage() |
| 1261 { |
| 1262 return $this->go_package; |
| 1263 } |
| 1264 |
| 1265 public function setGoPackage($var) |
| 1266 { |
| 1267 GPBUtil::checkString($var, True); |
| 1268 $this->go_package = $var; |
| 1269 $this->has_go_package = true; |
| 1270 } |
| 1271 |
| 1272 public function hasGoPackage() |
| 1273 { |
| 1274 return $this->has_go_package; |
| 1275 } |
| 1276 |
| 1277 public function getCcGenericServices() |
| 1278 { |
| 1279 return $this->cc_generic_services; |
| 1280 } |
| 1281 |
| 1282 public function setCcGenericServices($var) |
| 1283 { |
| 1284 GPBUtil::checkBool($var); |
| 1285 $this->cc_generic_services = $var; |
| 1286 $this->has_cc_generic_services = true; |
| 1287 } |
| 1288 |
| 1289 public function hasCcGenericServices() |
| 1290 { |
| 1291 return $this->has_cc_generic_services; |
| 1292 } |
| 1293 |
| 1294 public function getJavaGenericServices() |
| 1295 { |
| 1296 return $this->java_generic_services; |
| 1297 } |
| 1298 |
| 1299 public function setJavaGenericServices($var) |
| 1300 { |
| 1301 GPBUtil::checkBool($var); |
| 1302 $this->java_generic_services = $var; |
| 1303 $this->has_java_generic_services = true; |
| 1304 } |
| 1305 |
| 1306 public function hasJavaGenericServices() |
| 1307 { |
| 1308 return $this->has_java_generic_services; |
| 1309 } |
| 1310 |
| 1311 public function getPyGenericServices() |
| 1312 { |
| 1313 return $this->py_generic_services; |
| 1314 } |
| 1315 |
| 1316 public function setPyGenericServices($var) |
| 1317 { |
| 1318 GPBUtil::checkBool($var); |
| 1319 $this->py_generic_services = $var; |
| 1320 $this->has_py_generic_services = true; |
| 1321 } |
| 1322 |
| 1323 public function hasPyGenericServices() |
| 1324 { |
| 1325 return $this->has_py_generic_services; |
| 1326 } |
| 1327 |
| 1328 public function getDeprecated() |
| 1329 { |
| 1330 return $this->deprecated; |
| 1331 } |
| 1332 |
| 1333 public function setDeprecated($var) |
| 1334 { |
| 1335 GPBUtil::checkBool($var); |
| 1336 $this->deprecated = $var; |
| 1337 $this->has_deprecated = true; |
| 1338 } |
| 1339 |
| 1340 public function hasDeprecated() |
| 1341 { |
| 1342 return $this->has_deprecated; |
| 1343 } |
| 1344 |
| 1345 public function getCcEnableArenas() |
| 1346 { |
| 1347 return $this->cc_enable_arenas; |
| 1348 } |
| 1349 |
| 1350 public function setCcEnableArenas($var) |
| 1351 { |
| 1352 GPBUtil::checkBool($var); |
| 1353 $this->cc_enable_arenas = $var; |
| 1354 $this->has_cc_enable_arenas = true; |
| 1355 } |
| 1356 |
| 1357 public function hasCcEnableArenas() |
| 1358 { |
| 1359 return $this->has_cc_enable_arenas; |
| 1360 } |
| 1361 |
| 1362 public function getObjcClassPrefix() |
| 1363 { |
| 1364 return $this->objc_class_prefix; |
| 1365 } |
| 1366 |
| 1367 public function setObjcClassPrefix($var) |
| 1368 { |
| 1369 GPBUtil::checkString($var, True); |
| 1370 $this->objc_class_prefix = $var; |
| 1371 $this->has_objc_class_prefix = true; |
| 1372 } |
| 1373 |
| 1374 public function hasObjcClassPrefix() |
| 1375 { |
| 1376 return $this->has_objc_class_prefix; |
| 1377 } |
| 1378 |
| 1379 public function getCsharpNamespace() |
| 1380 { |
| 1381 return $this->csharp_namespace; |
| 1382 } |
| 1383 |
| 1384 public function setCsharpNamespace($var) |
| 1385 { |
| 1386 GPBUtil::checkString($var, True); |
| 1387 $this->csharp_namespace = $var; |
| 1388 $this->has_csharp_namespace = true; |
| 1389 } |
| 1390 |
| 1391 public function hasCsharpNamespace() |
| 1392 { |
| 1393 return $this->has_csharp_namespace; |
| 1394 } |
| 1395 |
| 1396 public function getUninterpretedOption() |
| 1397 { |
| 1398 return $this->uninterpreted_option; |
| 1399 } |
| 1400 |
| 1401 public function setUninterpretedOption(&$var) |
| 1402 { |
| 1403 GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Int
ernal\UninterpretedOption::class); |
| 1404 $this->uninterpreted_option = $var; |
| 1405 $this->has_uninterpreted_option = true; |
| 1406 } |
| 1407 |
| 1408 public function hasUninterpretedOption() |
| 1409 { |
| 1410 return $this->has_uninterpreted_option; |
| 1411 } |
| 1412 |
| 1413 } |
| 1414 |
| 1415 class FileOptions_OptimizeMode |
| 1416 { |
| 1417 const SPEED = 1; |
| 1418 const CODE_SIZE = 2; |
| 1419 const LITE_RUNTIME = 3; |
| 1420 } |
| 1421 |
| 1422 class MessageOptions extends \Google\Protobuf\Internal\Message |
| 1423 { |
| 1424 private $message_set_wire_format = false; |
| 1425 private $has_message_set_wire_format = false; |
| 1426 private $no_standard_descriptor_accessor = false; |
| 1427 private $has_no_standard_descriptor_accessor = false; |
| 1428 private $deprecated = false; |
| 1429 private $has_deprecated = false; |
| 1430 private $map_entry = false; |
| 1431 private $has_map_entry = false; |
| 1432 private $uninterpreted_option; |
| 1433 private $has_uninterpreted_option = false; |
| 1434 |
| 1435 public function getMessageSetWireFormat() |
| 1436 { |
| 1437 return $this->message_set_wire_format; |
| 1438 } |
| 1439 |
| 1440 public function setMessageSetWireFormat($var) |
| 1441 { |
| 1442 GPBUtil::checkBool($var); |
| 1443 $this->message_set_wire_format = $var; |
| 1444 $this->has_message_set_wire_format = true; |
| 1445 } |
| 1446 |
| 1447 public function hasMessageSetWireFormat() |
| 1448 { |
| 1449 return $this->has_message_set_wire_format; |
| 1450 } |
| 1451 |
| 1452 public function getNoStandardDescriptorAccessor() |
| 1453 { |
| 1454 return $this->no_standard_descriptor_accessor; |
| 1455 } |
| 1456 |
| 1457 public function setNoStandardDescriptorAccessor($var) |
| 1458 { |
| 1459 GPBUtil::checkBool($var); |
| 1460 $this->no_standard_descriptor_accessor = $var; |
| 1461 $this->has_no_standard_descriptor_accessor = true; |
| 1462 } |
| 1463 |
| 1464 public function hasNoStandardDescriptorAccessor() |
| 1465 { |
| 1466 return $this->has_no_standard_descriptor_accessor; |
| 1467 } |
| 1468 |
| 1469 public function getDeprecated() |
| 1470 { |
| 1471 return $this->deprecated; |
| 1472 } |
| 1473 |
| 1474 public function setDeprecated($var) |
| 1475 { |
| 1476 GPBUtil::checkBool($var); |
| 1477 $this->deprecated = $var; |
| 1478 $this->has_deprecated = true; |
| 1479 } |
| 1480 |
| 1481 public function hasDeprecated() |
| 1482 { |
| 1483 return $this->has_deprecated; |
| 1484 } |
| 1485 |
| 1486 public function getMapEntry() |
| 1487 { |
| 1488 return $this->map_entry; |
| 1489 } |
| 1490 |
| 1491 public function setMapEntry($var) |
| 1492 { |
| 1493 GPBUtil::checkBool($var); |
| 1494 $this->map_entry = $var; |
| 1495 $this->has_map_entry = true; |
| 1496 } |
| 1497 |
| 1498 public function hasMapEntry() |
| 1499 { |
| 1500 return $this->has_map_entry; |
| 1501 } |
| 1502 |
| 1503 public function getUninterpretedOption() |
| 1504 { |
| 1505 return $this->uninterpreted_option; |
| 1506 } |
| 1507 |
| 1508 public function setUninterpretedOption(&$var) |
| 1509 { |
| 1510 GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Int
ernal\UninterpretedOption::class); |
| 1511 $this->uninterpreted_option = $var; |
| 1512 $this->has_uninterpreted_option = true; |
| 1513 } |
| 1514 |
| 1515 public function hasUninterpretedOption() |
| 1516 { |
| 1517 return $this->has_uninterpreted_option; |
| 1518 } |
| 1519 |
| 1520 } |
| 1521 |
| 1522 class FieldOptions extends \Google\Protobuf\Internal\Message |
| 1523 { |
| 1524 private $ctype = 0; |
| 1525 private $has_ctype = false; |
| 1526 private $packed = false; |
| 1527 private $has_packed = false; |
| 1528 private $jstype = 0; |
| 1529 private $has_jstype = false; |
| 1530 private $lazy = false; |
| 1531 private $has_lazy = false; |
| 1532 private $deprecated = false; |
| 1533 private $has_deprecated = false; |
| 1534 private $weak = false; |
| 1535 private $has_weak = false; |
| 1536 private $uninterpreted_option; |
| 1537 private $has_uninterpreted_option = false; |
| 1538 |
| 1539 public function getCtype() |
| 1540 { |
| 1541 return $this->ctype; |
| 1542 } |
| 1543 |
| 1544 public function setCtype($var) |
| 1545 { |
| 1546 GPBUtil::checkEnum($var, \Google\Protobuf\Internal\FieldOptions_CType::c
lass); |
| 1547 $this->ctype = $var; |
| 1548 $this->has_ctype = true; |
| 1549 } |
| 1550 |
| 1551 public function hasCtype() |
| 1552 { |
| 1553 return $this->has_ctype; |
| 1554 } |
| 1555 |
| 1556 public function getPacked() |
| 1557 { |
| 1558 return $this->packed; |
| 1559 } |
| 1560 |
| 1561 public function setPacked($var) |
| 1562 { |
| 1563 GPBUtil::checkBool($var); |
| 1564 $this->packed = $var; |
| 1565 $this->has_packed = true; |
| 1566 } |
| 1567 |
| 1568 public function hasPacked() |
| 1569 { |
| 1570 return $this->has_packed; |
| 1571 } |
| 1572 |
| 1573 public function getJstype() |
| 1574 { |
| 1575 return $this->jstype; |
| 1576 } |
| 1577 |
| 1578 public function setJstype($var) |
| 1579 { |
| 1580 GPBUtil::checkEnum($var, \Google\Protobuf\Internal\FieldOptions_JSType::
class); |
| 1581 $this->jstype = $var; |
| 1582 $this->has_jstype = true; |
| 1583 } |
| 1584 |
| 1585 public function hasJstype() |
| 1586 { |
| 1587 return $this->has_jstype; |
| 1588 } |
| 1589 |
| 1590 public function getLazy() |
| 1591 { |
| 1592 return $this->lazy; |
| 1593 } |
| 1594 |
| 1595 public function setLazy($var) |
| 1596 { |
| 1597 GPBUtil::checkBool($var); |
| 1598 $this->lazy = $var; |
| 1599 $this->has_lazy = true; |
| 1600 } |
| 1601 |
| 1602 public function hasLazy() |
| 1603 { |
| 1604 return $this->has_lazy; |
| 1605 } |
| 1606 |
| 1607 public function getDeprecated() |
| 1608 { |
| 1609 return $this->deprecated; |
| 1610 } |
| 1611 |
| 1612 public function setDeprecated($var) |
| 1613 { |
| 1614 GPBUtil::checkBool($var); |
| 1615 $this->deprecated = $var; |
| 1616 $this->has_deprecated = true; |
| 1617 } |
| 1618 |
| 1619 public function hasDeprecated() |
| 1620 { |
| 1621 return $this->has_deprecated; |
| 1622 } |
| 1623 |
| 1624 public function getWeak() |
| 1625 { |
| 1626 return $this->weak; |
| 1627 } |
| 1628 |
| 1629 public function setWeak($var) |
| 1630 { |
| 1631 GPBUtil::checkBool($var); |
| 1632 $this->weak = $var; |
| 1633 $this->has_weak = true; |
| 1634 } |
| 1635 |
| 1636 public function hasWeak() |
| 1637 { |
| 1638 return $this->has_weak; |
| 1639 } |
| 1640 |
| 1641 public function getUninterpretedOption() |
| 1642 { |
| 1643 return $this->uninterpreted_option; |
| 1644 } |
| 1645 |
| 1646 public function setUninterpretedOption(&$var) |
| 1647 { |
| 1648 GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Int
ernal\UninterpretedOption::class); |
| 1649 $this->uninterpreted_option = $var; |
| 1650 $this->has_uninterpreted_option = true; |
| 1651 } |
| 1652 |
| 1653 public function hasUninterpretedOption() |
| 1654 { |
| 1655 return $this->has_uninterpreted_option; |
| 1656 } |
| 1657 |
| 1658 } |
| 1659 |
| 1660 class FieldOptions_CType |
| 1661 { |
| 1662 const STRING = 0; |
| 1663 const CORD = 1; |
| 1664 const STRING_PIECE = 2; |
| 1665 } |
| 1666 |
| 1667 class FieldOptions_JSType |
| 1668 { |
| 1669 const JS_NORMAL = 0; |
| 1670 const JS_STRING = 1; |
| 1671 const JS_NUMBER = 2; |
| 1672 } |
| 1673 |
| 1674 class OneofOptions extends \Google\Protobuf\Internal\Message |
| 1675 { |
| 1676 private $uninterpreted_option; |
| 1677 private $has_uninterpreted_option = false; |
| 1678 |
| 1679 public function getUninterpretedOption() |
| 1680 { |
| 1681 return $this->uninterpreted_option; |
| 1682 } |
| 1683 |
| 1684 public function setUninterpretedOption(&$var) |
| 1685 { |
| 1686 GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Int
ernal\UninterpretedOption::class); |
| 1687 $this->uninterpreted_option = $var; |
| 1688 $this->has_uninterpreted_option = true; |
| 1689 } |
| 1690 |
| 1691 public function hasUninterpretedOption() |
| 1692 { |
| 1693 return $this->has_uninterpreted_option; |
| 1694 } |
| 1695 |
| 1696 } |
| 1697 |
| 1698 class EnumOptions extends \Google\Protobuf\Internal\Message |
| 1699 { |
| 1700 private $allow_alias = false; |
| 1701 private $has_allow_alias = false; |
| 1702 private $deprecated = false; |
| 1703 private $has_deprecated = false; |
| 1704 private $uninterpreted_option; |
| 1705 private $has_uninterpreted_option = false; |
| 1706 |
| 1707 public function getAllowAlias() |
| 1708 { |
| 1709 return $this->allow_alias; |
| 1710 } |
| 1711 |
| 1712 public function setAllowAlias($var) |
| 1713 { |
| 1714 GPBUtil::checkBool($var); |
| 1715 $this->allow_alias = $var; |
| 1716 $this->has_allow_alias = true; |
| 1717 } |
| 1718 |
| 1719 public function hasAllowAlias() |
| 1720 { |
| 1721 return $this->has_allow_alias; |
| 1722 } |
| 1723 |
| 1724 public function getDeprecated() |
| 1725 { |
| 1726 return $this->deprecated; |
| 1727 } |
| 1728 |
| 1729 public function setDeprecated($var) |
| 1730 { |
| 1731 GPBUtil::checkBool($var); |
| 1732 $this->deprecated = $var; |
| 1733 $this->has_deprecated = true; |
| 1734 } |
| 1735 |
| 1736 public function hasDeprecated() |
| 1737 { |
| 1738 return $this->has_deprecated; |
| 1739 } |
| 1740 |
| 1741 public function getUninterpretedOption() |
| 1742 { |
| 1743 return $this->uninterpreted_option; |
| 1744 } |
| 1745 |
| 1746 public function setUninterpretedOption(&$var) |
| 1747 { |
| 1748 GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Int
ernal\UninterpretedOption::class); |
| 1749 $this->uninterpreted_option = $var; |
| 1750 $this->has_uninterpreted_option = true; |
| 1751 } |
| 1752 |
| 1753 public function hasUninterpretedOption() |
| 1754 { |
| 1755 return $this->has_uninterpreted_option; |
| 1756 } |
| 1757 |
| 1758 } |
| 1759 |
| 1760 class EnumValueOptions extends \Google\Protobuf\Internal\Message |
| 1761 { |
| 1762 private $deprecated = false; |
| 1763 private $has_deprecated = false; |
| 1764 private $uninterpreted_option; |
| 1765 private $has_uninterpreted_option = false; |
| 1766 |
| 1767 public function getDeprecated() |
| 1768 { |
| 1769 return $this->deprecated; |
| 1770 } |
| 1771 |
| 1772 public function setDeprecated($var) |
| 1773 { |
| 1774 GPBUtil::checkBool($var); |
| 1775 $this->deprecated = $var; |
| 1776 $this->has_deprecated = true; |
| 1777 } |
| 1778 |
| 1779 public function hasDeprecated() |
| 1780 { |
| 1781 return $this->has_deprecated; |
| 1782 } |
| 1783 |
| 1784 public function getUninterpretedOption() |
| 1785 { |
| 1786 return $this->uninterpreted_option; |
| 1787 } |
| 1788 |
| 1789 public function setUninterpretedOption(&$var) |
| 1790 { |
| 1791 GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Int
ernal\UninterpretedOption::class); |
| 1792 $this->uninterpreted_option = $var; |
| 1793 $this->has_uninterpreted_option = true; |
| 1794 } |
| 1795 |
| 1796 public function hasUninterpretedOption() |
| 1797 { |
| 1798 return $this->has_uninterpreted_option; |
| 1799 } |
| 1800 |
| 1801 } |
| 1802 |
| 1803 class ServiceOptions extends \Google\Protobuf\Internal\Message |
| 1804 { |
| 1805 private $deprecated = false; |
| 1806 private $has_deprecated = false; |
| 1807 private $uninterpreted_option; |
| 1808 private $has_uninterpreted_option = false; |
| 1809 |
| 1810 public function getDeprecated() |
| 1811 { |
| 1812 return $this->deprecated; |
| 1813 } |
| 1814 |
| 1815 public function setDeprecated($var) |
| 1816 { |
| 1817 GPBUtil::checkBool($var); |
| 1818 $this->deprecated = $var; |
| 1819 $this->has_deprecated = true; |
| 1820 } |
| 1821 |
| 1822 public function hasDeprecated() |
| 1823 { |
| 1824 return $this->has_deprecated; |
| 1825 } |
| 1826 |
| 1827 public function getUninterpretedOption() |
| 1828 { |
| 1829 return $this->uninterpreted_option; |
| 1830 } |
| 1831 |
| 1832 public function setUninterpretedOption(&$var) |
| 1833 { |
| 1834 GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Int
ernal\UninterpretedOption::class); |
| 1835 $this->uninterpreted_option = $var; |
| 1836 $this->has_uninterpreted_option = true; |
| 1837 } |
| 1838 |
| 1839 public function hasUninterpretedOption() |
| 1840 { |
| 1841 return $this->has_uninterpreted_option; |
| 1842 } |
| 1843 |
| 1844 } |
| 1845 |
| 1846 class MethodOptions extends \Google\Protobuf\Internal\Message |
| 1847 { |
| 1848 private $deprecated = false; |
| 1849 private $has_deprecated = false; |
| 1850 private $uninterpreted_option; |
| 1851 private $has_uninterpreted_option = false; |
| 1852 |
| 1853 public function getDeprecated() |
| 1854 { |
| 1855 return $this->deprecated; |
| 1856 } |
| 1857 |
| 1858 public function setDeprecated($var) |
| 1859 { |
| 1860 GPBUtil::checkBool($var); |
| 1861 $this->deprecated = $var; |
| 1862 $this->has_deprecated = true; |
| 1863 } |
| 1864 |
| 1865 public function hasDeprecated() |
| 1866 { |
| 1867 return $this->has_deprecated; |
| 1868 } |
| 1869 |
| 1870 public function getUninterpretedOption() |
| 1871 { |
| 1872 return $this->uninterpreted_option; |
| 1873 } |
| 1874 |
| 1875 public function setUninterpretedOption(&$var) |
| 1876 { |
| 1877 GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Int
ernal\UninterpretedOption::class); |
| 1878 $this->uninterpreted_option = $var; |
| 1879 $this->has_uninterpreted_option = true; |
| 1880 } |
| 1881 |
| 1882 public function hasUninterpretedOption() |
| 1883 { |
| 1884 return $this->has_uninterpreted_option; |
| 1885 } |
| 1886 |
| 1887 } |
| 1888 |
| 1889 class UninterpretedOption extends \Google\Protobuf\Internal\Message |
| 1890 { |
| 1891 private $name; |
| 1892 private $has_name = false; |
| 1893 private $identifier_value = ''; |
| 1894 private $has_identifier_value = false; |
| 1895 private $positive_int_value = 0; |
| 1896 private $has_positive_int_value = false; |
| 1897 private $negative_int_value = 0; |
| 1898 private $has_negative_int_value = false; |
| 1899 private $double_value = 0.0; |
| 1900 private $has_double_value = false; |
| 1901 private $string_value = ''; |
| 1902 private $has_string_value = false; |
| 1903 private $aggregate_value = ''; |
| 1904 private $has_aggregate_value = false; |
| 1905 |
| 1906 public function getName() |
| 1907 { |
| 1908 return $this->name; |
| 1909 } |
| 1910 |
| 1911 public function setName(&$var) |
| 1912 { |
| 1913 GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Int
ernal\UninterpretedOption_NamePart::class); |
| 1914 $this->name = $var; |
| 1915 $this->has_name = true; |
| 1916 } |
| 1917 |
| 1918 public function hasName() |
| 1919 { |
| 1920 return $this->has_name; |
| 1921 } |
| 1922 |
| 1923 public function getIdentifierValue() |
| 1924 { |
| 1925 return $this->identifier_value; |
| 1926 } |
| 1927 |
| 1928 public function setIdentifierValue($var) |
| 1929 { |
| 1930 GPBUtil::checkString($var, True); |
| 1931 $this->identifier_value = $var; |
| 1932 $this->has_identifier_value = true; |
| 1933 } |
| 1934 |
| 1935 public function hasIdentifierValue() |
| 1936 { |
| 1937 return $this->has_identifier_value; |
| 1938 } |
| 1939 |
| 1940 public function getPositiveIntValue() |
| 1941 { |
| 1942 return $this->positive_int_value; |
| 1943 } |
| 1944 |
| 1945 public function setPositiveIntValue($var) |
| 1946 { |
| 1947 GPBUtil::checkUint64($var); |
| 1948 $this->positive_int_value = $var; |
| 1949 $this->has_positive_int_value = true; |
| 1950 } |
| 1951 |
| 1952 public function hasPositiveIntValue() |
| 1953 { |
| 1954 return $this->has_positive_int_value; |
| 1955 } |
| 1956 |
| 1957 public function getNegativeIntValue() |
| 1958 { |
| 1959 return $this->negative_int_value; |
| 1960 } |
| 1961 |
| 1962 public function setNegativeIntValue($var) |
| 1963 { |
| 1964 GPBUtil::checkInt64($var); |
| 1965 $this->negative_int_value = $var; |
| 1966 $this->has_negative_int_value = true; |
| 1967 } |
| 1968 |
| 1969 public function hasNegativeIntValue() |
| 1970 { |
| 1971 return $this->has_negative_int_value; |
| 1972 } |
| 1973 |
| 1974 public function getDoubleValue() |
| 1975 { |
| 1976 return $this->double_value; |
| 1977 } |
| 1978 |
| 1979 public function setDoubleValue($var) |
| 1980 { |
| 1981 GPBUtil::checkDouble($var); |
| 1982 $this->double_value = $var; |
| 1983 $this->has_double_value = true; |
| 1984 } |
| 1985 |
| 1986 public function hasDoubleValue() |
| 1987 { |
| 1988 return $this->has_double_value; |
| 1989 } |
| 1990 |
| 1991 public function getStringValue() |
| 1992 { |
| 1993 return $this->string_value; |
| 1994 } |
| 1995 |
| 1996 public function setStringValue($var) |
| 1997 { |
| 1998 GPBUtil::checkString($var, False); |
| 1999 $this->string_value = $var; |
| 2000 $this->has_string_value = true; |
| 2001 } |
| 2002 |
| 2003 public function hasStringValue() |
| 2004 { |
| 2005 return $this->has_string_value; |
| 2006 } |
| 2007 |
| 2008 public function getAggregateValue() |
| 2009 { |
| 2010 return $this->aggregate_value; |
| 2011 } |
| 2012 |
| 2013 public function setAggregateValue($var) |
| 2014 { |
| 2015 GPBUtil::checkString($var, True); |
| 2016 $this->aggregate_value = $var; |
| 2017 $this->has_aggregate_value = true; |
| 2018 } |
| 2019 |
| 2020 public function hasAggregateValue() |
| 2021 { |
| 2022 return $this->has_aggregate_value; |
| 2023 } |
| 2024 |
| 2025 } |
| 2026 |
| 2027 class UninterpretedOption_NamePart extends \Google\Protobuf\Internal\Message |
| 2028 { |
| 2029 private $name_part = ''; |
| 2030 private $has_name_part = false; |
| 2031 private $is_extension = false; |
| 2032 private $has_is_extension = false; |
| 2033 |
| 2034 public function getNamePart() |
| 2035 { |
| 2036 return $this->name_part; |
| 2037 } |
| 2038 |
| 2039 public function setNamePart($var) |
| 2040 { |
| 2041 GPBUtil::checkString($var, True); |
| 2042 $this->name_part = $var; |
| 2043 $this->has_name_part = true; |
| 2044 } |
| 2045 |
| 2046 public function hasNamePart() |
| 2047 { |
| 2048 return $this->has_name_part; |
| 2049 } |
| 2050 |
| 2051 public function getIsExtension() |
| 2052 { |
| 2053 return $this->is_extension; |
| 2054 } |
| 2055 |
| 2056 public function setIsExtension($var) |
| 2057 { |
| 2058 GPBUtil::checkBool($var); |
| 2059 $this->is_extension = $var; |
| 2060 $this->has_is_extension = true; |
| 2061 } |
| 2062 |
| 2063 public function hasIsExtension() |
| 2064 { |
| 2065 return $this->has_is_extension; |
| 2066 } |
| 2067 |
| 2068 } |
| 2069 |
| 2070 class SourceCodeInfo extends \Google\Protobuf\Internal\Message |
| 2071 { |
| 2072 private $location; |
| 2073 private $has_location = false; |
| 2074 |
| 2075 public function getLocation() |
| 2076 { |
| 2077 return $this->location; |
| 2078 } |
| 2079 |
| 2080 public function setLocation(&$var) |
| 2081 { |
| 2082 GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Int
ernal\SourceCodeInfo_Location::class); |
| 2083 $this->location = $var; |
| 2084 $this->has_location = true; |
| 2085 } |
| 2086 |
| 2087 public function hasLocation() |
| 2088 { |
| 2089 return $this->has_location; |
| 2090 } |
| 2091 |
| 2092 } |
| 2093 |
| 2094 class SourceCodeInfo_Location extends \Google\Protobuf\Internal\Message |
| 2095 { |
| 2096 private $path; |
| 2097 private $has_path = false; |
| 2098 private $span; |
| 2099 private $has_span = false; |
| 2100 private $leading_comments = ''; |
| 2101 private $has_leading_comments = false; |
| 2102 private $trailing_comments = ''; |
| 2103 private $has_trailing_comments = false; |
| 2104 private $leading_detached_comments; |
| 2105 private $has_leading_detached_comments = false; |
| 2106 |
| 2107 public function getPath() |
| 2108 { |
| 2109 return $this->path; |
| 2110 } |
| 2111 |
| 2112 public function setPath(&$var) |
| 2113 { |
| 2114 GPBUtil::checkRepeatedField($var, GPBType::INT32); |
| 2115 $this->path = $var; |
| 2116 $this->has_path = true; |
| 2117 } |
| 2118 |
| 2119 public function hasPath() |
| 2120 { |
| 2121 return $this->has_path; |
| 2122 } |
| 2123 |
| 2124 public function getSpan() |
| 2125 { |
| 2126 return $this->span; |
| 2127 } |
| 2128 |
| 2129 public function setSpan(&$var) |
| 2130 { |
| 2131 GPBUtil::checkRepeatedField($var, GPBType::INT32); |
| 2132 $this->span = $var; |
| 2133 $this->has_span = true; |
| 2134 } |
| 2135 |
| 2136 public function hasSpan() |
| 2137 { |
| 2138 return $this->has_span; |
| 2139 } |
| 2140 |
| 2141 public function getLeadingComments() |
| 2142 { |
| 2143 return $this->leading_comments; |
| 2144 } |
| 2145 |
| 2146 public function setLeadingComments($var) |
| 2147 { |
| 2148 GPBUtil::checkString($var, True); |
| 2149 $this->leading_comments = $var; |
| 2150 $this->has_leading_comments = true; |
| 2151 } |
| 2152 |
| 2153 public function hasLeadingComments() |
| 2154 { |
| 2155 return $this->has_leading_comments; |
| 2156 } |
| 2157 |
| 2158 public function getTrailingComments() |
| 2159 { |
| 2160 return $this->trailing_comments; |
| 2161 } |
| 2162 |
| 2163 public function setTrailingComments($var) |
| 2164 { |
| 2165 GPBUtil::checkString($var, True); |
| 2166 $this->trailing_comments = $var; |
| 2167 $this->has_trailing_comments = true; |
| 2168 } |
| 2169 |
| 2170 public function hasTrailingComments() |
| 2171 { |
| 2172 return $this->has_trailing_comments; |
| 2173 } |
| 2174 |
| 2175 public function getLeadingDetachedComments() |
| 2176 { |
| 2177 return $this->leading_detached_comments; |
| 2178 } |
| 2179 |
| 2180 public function setLeadingDetachedComments(&$var) |
| 2181 { |
| 2182 GPBUtil::checkRepeatedField($var, GPBType::STRING); |
| 2183 $this->leading_detached_comments = $var; |
| 2184 $this->has_leading_detached_comments = true; |
| 2185 } |
| 2186 |
| 2187 public function hasLeadingDetachedComments() |
| 2188 { |
| 2189 return $this->has_leading_detached_comments; |
| 2190 } |
| 2191 |
| 2192 } |
| 2193 |
| 2194 class GeneratedCodeInfo extends \Google\Protobuf\Internal\Message |
| 2195 { |
| 2196 private $annotation; |
| 2197 private $has_annotation = false; |
| 2198 |
| 2199 public function getAnnotation() |
| 2200 { |
| 2201 return $this->annotation; |
| 2202 } |
| 2203 |
| 2204 public function setAnnotation(&$var) |
| 2205 { |
| 2206 GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Google\Protobuf\Int
ernal\GeneratedCodeInfo_Annotation::class); |
| 2207 $this->annotation = $var; |
| 2208 $this->has_annotation = true; |
| 2209 } |
| 2210 |
| 2211 public function hasAnnotation() |
| 2212 { |
| 2213 return $this->has_annotation; |
| 2214 } |
| 2215 |
| 2216 } |
| 2217 |
| 2218 class GeneratedCodeInfo_Annotation extends \Google\Protobuf\Internal\Message |
| 2219 { |
| 2220 private $path; |
| 2221 private $has_path = false; |
| 2222 private $source_file = ''; |
| 2223 private $has_source_file = false; |
| 2224 private $begin = 0; |
| 2225 private $has_begin = false; |
| 2226 private $end = 0; |
| 2227 private $has_end = false; |
| 2228 |
| 2229 public function getPath() |
| 2230 { |
| 2231 return $this->path; |
| 2232 } |
| 2233 |
| 2234 public function setPath(&$var) |
| 2235 { |
| 2236 GPBUtil::checkRepeatedField($var, GPBType::INT32); |
| 2237 $this->path = $var; |
| 2238 $this->has_path = true; |
| 2239 } |
| 2240 |
| 2241 public function hasPath() |
| 2242 { |
| 2243 return $this->has_path; |
| 2244 } |
| 2245 |
| 2246 public function getSourceFile() |
| 2247 { |
| 2248 return $this->source_file; |
| 2249 } |
| 2250 |
| 2251 public function setSourceFile($var) |
| 2252 { |
| 2253 GPBUtil::checkString($var, True); |
| 2254 $this->source_file = $var; |
| 2255 $this->has_source_file = true; |
| 2256 } |
| 2257 |
| 2258 public function hasSourceFile() |
| 2259 { |
| 2260 return $this->has_source_file; |
| 2261 } |
| 2262 |
| 2263 public function getBegin() |
| 2264 { |
| 2265 return $this->begin; |
| 2266 } |
| 2267 |
| 2268 public function setBegin($var) |
| 2269 { |
| 2270 GPBUtil::checkInt32($var); |
| 2271 $this->begin = $var; |
| 2272 $this->has_begin = true; |
| 2273 } |
| 2274 |
| 2275 public function hasBegin() |
| 2276 { |
| 2277 return $this->has_begin; |
| 2278 } |
| 2279 |
| 2280 public function getEnd() |
| 2281 { |
| 2282 return $this->end; |
| 2283 } |
| 2284 |
| 2285 public function setEnd($var) |
| 2286 { |
| 2287 GPBUtil::checkInt32($var); |
| 2288 $this->end = $var; |
| 2289 $this->has_end = true; |
| 2290 } |
| 2291 |
| 2292 public function hasEnd() |
| 2293 { |
| 2294 return $this->has_end; |
| 2295 } |
| 2296 |
| 2297 } |
| 2298 |
| 2299 $pool = DescriptorPool::getGeneratedPool(); |
| 2300 |
| 2301 $pool->addMessage('google.protobuf.internal.FileDescriptorSet', FileDescriptorSe
t::class) |
| 2302 ->repeated('file', GPBType::MESSAGE, 1, 'google.protobuf.internal.FileDescri
ptorProto') |
| 2303 ->finalizeToPool(); |
| 2304 |
| 2305 $pool->addMessage('google.protobuf.internal.FileDescriptorProto', FileDescriptor
Proto::class) |
| 2306 ->optional('name', GPBType::STRING, 1) |
| 2307 ->optional('package', GPBType::STRING, 2) |
| 2308 ->repeated('dependency', GPBType::STRING, 3) |
| 2309 ->repeated('public_dependency', GPBType::INT32, 10) |
| 2310 ->repeated('weak_dependency', GPBType::INT32, 11) |
| 2311 ->repeated('message_type', GPBType::MESSAGE, 4, 'google.protobuf.internal.De
scriptorProto') |
| 2312 ->repeated('enum_type', GPBType::MESSAGE, 5, 'google.protobuf.internal.EnumD
escriptorProto') |
| 2313 ->repeated('service', GPBType::MESSAGE, 6, 'google.protobuf.internal.Service
DescriptorProto') |
| 2314 ->repeated('extension', GPBType::MESSAGE, 7, 'google.protobuf.internal.Field
DescriptorProto') |
| 2315 ->optional('options', GPBType::MESSAGE, 8, 'google.protobuf.internal.FileOpt
ions') |
| 2316 ->optional('source_code_info', GPBType::MESSAGE, 9, 'google.protobuf.interna
l.SourceCodeInfo') |
| 2317 ->optional('syntax', GPBType::STRING, 12) |
| 2318 ->finalizeToPool(); |
| 2319 |
| 2320 $pool->addMessage('google.protobuf.internal.DescriptorProto', DescriptorProto::c
lass) |
| 2321 ->optional('name', GPBType::STRING, 1) |
| 2322 ->repeated('field', GPBType::MESSAGE, 2, 'google.protobuf.internal.FieldDesc
riptorProto') |
| 2323 ->repeated('extension', GPBType::MESSAGE, 6, 'google.protobuf.internal.Field
DescriptorProto') |
| 2324 ->repeated('nested_type', GPBType::MESSAGE, 3, 'google.protobuf.internal.Des
criptorProto') |
| 2325 ->repeated('enum_type', GPBType::MESSAGE, 4, 'google.protobuf.internal.EnumD
escriptorProto') |
| 2326 ->repeated('extension_range', GPBType::MESSAGE, 5, 'google.protobuf.internal
.DescriptorProto.ExtensionRange') |
| 2327 ->repeated('oneof_decl', GPBType::MESSAGE, 8, 'google.protobuf.internal.Oneo
fDescriptorProto') |
| 2328 ->optional('options', GPBType::MESSAGE, 7, 'google.protobuf.internal.Message
Options') |
| 2329 ->repeated('reserved_range', GPBType::MESSAGE, 9, 'google.protobuf.internal.
DescriptorProto.ReservedRange') |
| 2330 ->repeated('reserved_name', GPBType::STRING, 10) |
| 2331 ->finalizeToPool(); |
| 2332 |
| 2333 $pool->addMessage('google.protobuf.internal.DescriptorProto.ExtensionRange', Des
criptorProto_ExtensionRange::class) |
| 2334 ->optional('start', GPBType::INT32, 1) |
| 2335 ->optional('end', GPBType::INT32, 2) |
| 2336 ->finalizeToPool(); |
| 2337 |
| 2338 $pool->addMessage('google.protobuf.internal.DescriptorProto.ReservedRange', Desc
riptorProto_ReservedRange::class) |
| 2339 ->optional('start', GPBType::INT32, 1) |
| 2340 ->optional('end', GPBType::INT32, 2) |
| 2341 ->finalizeToPool(); |
| 2342 |
| 2343 $pool->addMessage('google.protobuf.internal.FieldDescriptorProto', FieldDescript
orProto::class) |
| 2344 ->optional('name', GPBType::STRING, 1) |
| 2345 ->optional('number', GPBType::INT32, 3) |
| 2346 ->optional('label', GPBType::ENUM, 4, 'google.protobuf.internal.FieldDescrip
torProto.Label') |
| 2347 ->optional('type', GPBType::ENUM, 5, 'google.protobuf.internal.FieldDescript
orProto.Type') |
| 2348 ->optional('type_name', GPBType::STRING, 6) |
| 2349 ->optional('extendee', GPBType::STRING, 2) |
| 2350 ->optional('default_value', GPBType::STRING, 7) |
| 2351 ->optional('oneof_index', GPBType::INT32, 9) |
| 2352 ->optional('json_name', GPBType::STRING, 10) |
| 2353 ->optional('options', GPBType::MESSAGE, 8, 'google.protobuf.internal.FieldOp
tions') |
| 2354 ->finalizeToPool(); |
| 2355 |
| 2356 $pool->addEnum('google.protobuf.internal.FieldDescriptorProto.Type', Type::class
) |
| 2357 ->value("TYPE_DOUBLE", 1) |
| 2358 ->value("TYPE_FLOAT", 2) |
| 2359 ->value("TYPE_INT64", 3) |
| 2360 ->value("TYPE_UINT64", 4) |
| 2361 ->value("TYPE_INT32", 5) |
| 2362 ->value("TYPE_FIXED64", 6) |
| 2363 ->value("TYPE_FIXED32", 7) |
| 2364 ->value("TYPE_BOOL", 8) |
| 2365 ->value("TYPE_STRING", 9) |
| 2366 ->value("TYPE_GROUP", 10) |
| 2367 ->value("TYPE_MESSAGE", 11) |
| 2368 ->value("TYPE_BYTES", 12) |
| 2369 ->value("TYPE_UINT32", 13) |
| 2370 ->value("TYPE_ENUM", 14) |
| 2371 ->value("TYPE_SFIXED32", 15) |
| 2372 ->value("TYPE_SFIXED64", 16) |
| 2373 ->value("TYPE_SINT32", 17) |
| 2374 ->value("TYPE_SINT64", 18) |
| 2375 ->finalizeToPool(); |
| 2376 |
| 2377 $pool->addEnum('google.protobuf.internal.FieldDescriptorProto.Label', Label::cla
ss) |
| 2378 ->value("LABEL_OPTIONAL", 1) |
| 2379 ->value("LABEL_REQUIRED", 2) |
| 2380 ->value("LABEL_REPEATED", 3) |
| 2381 ->finalizeToPool(); |
| 2382 |
| 2383 $pool->addMessage('google.protobuf.internal.OneofDescriptorProto', OneofDescript
orProto::class) |
| 2384 ->optional('name', GPBType::STRING, 1) |
| 2385 ->optional('options', GPBType::MESSAGE, 2, 'google.protobuf.internal.OneofOp
tions') |
| 2386 ->finalizeToPool(); |
| 2387 |
| 2388 $pool->addMessage('google.protobuf.internal.EnumDescriptorProto', EnumDescriptor
Proto::class) |
| 2389 ->optional('name', GPBType::STRING, 1) |
| 2390 ->repeated('value', GPBType::MESSAGE, 2, 'google.protobuf.internal.EnumValue
DescriptorProto') |
| 2391 ->optional('options', GPBType::MESSAGE, 3, 'google.protobuf.internal.EnumOpt
ions') |
| 2392 ->finalizeToPool(); |
| 2393 |
| 2394 $pool->addMessage('google.protobuf.internal.EnumValueDescriptorProto', EnumValue
DescriptorProto::class) |
| 2395 ->optional('name', GPBType::STRING, 1) |
| 2396 ->optional('number', GPBType::INT32, 2) |
| 2397 ->optional('options', GPBType::MESSAGE, 3, 'google.protobuf.internal.EnumVal
ueOptions') |
| 2398 ->finalizeToPool(); |
| 2399 |
| 2400 $pool->addMessage('google.protobuf.internal.ServiceDescriptorProto', ServiceDesc
riptorProto::class) |
| 2401 ->optional('name', GPBType::STRING, 1) |
| 2402 ->repeated('method', GPBType::MESSAGE, 2, 'google.protobuf.internal.MethodDe
scriptorProto') |
| 2403 ->optional('options', GPBType::MESSAGE, 3, 'google.protobuf.internal.Service
Options') |
| 2404 ->finalizeToPool(); |
| 2405 |
| 2406 $pool->addMessage('google.protobuf.internal.MethodDescriptorProto', MethodDescri
ptorProto::class) |
| 2407 ->optional('name', GPBType::STRING, 1) |
| 2408 ->optional('input_type', GPBType::STRING, 2) |
| 2409 ->optional('output_type', GPBType::STRING, 3) |
| 2410 ->optional('options', GPBType::MESSAGE, 4, 'google.protobuf.internal.MethodO
ptions') |
| 2411 ->optional('client_streaming', GPBType::BOOL, 5) |
| 2412 ->optional('server_streaming', GPBType::BOOL, 6) |
| 2413 ->finalizeToPool(); |
| 2414 |
| 2415 $pool->addMessage('google.protobuf.internal.FileOptions', FileOptions::class) |
| 2416 ->optional('java_package', GPBType::STRING, 1) |
| 2417 ->optional('java_outer_classname', GPBType::STRING, 8) |
| 2418 ->optional('java_multiple_files', GPBType::BOOL, 10) |
| 2419 ->optional('java_generate_equals_and_hash', GPBType::BOOL, 20) |
| 2420 ->optional('java_string_check_utf8', GPBType::BOOL, 27) |
| 2421 ->optional('optimize_for', GPBType::ENUM, 9, 'google.protobuf.internal.FileO
ptions.OptimizeMode') |
| 2422 ->optional('go_package', GPBType::STRING, 11) |
| 2423 ->optional('cc_generic_services', GPBType::BOOL, 16) |
| 2424 ->optional('java_generic_services', GPBType::BOOL, 17) |
| 2425 ->optional('py_generic_services', GPBType::BOOL, 18) |
| 2426 ->optional('deprecated', GPBType::BOOL, 23) |
| 2427 ->optional('cc_enable_arenas', GPBType::BOOL, 31) |
| 2428 ->optional('objc_class_prefix', GPBType::STRING, 36) |
| 2429 ->optional('csharp_namespace', GPBType::STRING, 37) |
| 2430 ->repeated('uninterpreted_option', GPBType::MESSAGE, 999, 'google.protobuf.i
nternal.UninterpretedOption') |
| 2431 ->finalizeToPool(); |
| 2432 |
| 2433 $pool->addEnum('google.protobuf.internal.FileOptions.OptimizeMode', OptimizeMode
::class) |
| 2434 ->value("SPEED", 1) |
| 2435 ->value("CODE_SIZE", 2) |
| 2436 ->value("LITE_RUNTIME", 3) |
| 2437 ->finalizeToPool(); |
| 2438 |
| 2439 $pool->addMessage('google.protobuf.internal.MessageOptions', MessageOptions::cla
ss) |
| 2440 ->optional('message_set_wire_format', GPBType::BOOL, 1) |
| 2441 ->optional('no_standard_descriptor_accessor', GPBType::BOOL, 2) |
| 2442 ->optional('deprecated', GPBType::BOOL, 3) |
| 2443 ->optional('map_entry', GPBType::BOOL, 7) |
| 2444 ->repeated('uninterpreted_option', GPBType::MESSAGE, 999, 'google.protobuf.i
nternal.UninterpretedOption') |
| 2445 ->finalizeToPool(); |
| 2446 |
| 2447 $pool->addMessage('google.protobuf.internal.FieldOptions', FieldOptions::class) |
| 2448 ->optional('ctype', GPBType::ENUM, 1, 'google.protobuf.internal.FieldOptions
.CType') |
| 2449 ->optional('packed', GPBType::BOOL, 2) |
| 2450 ->optional('jstype', GPBType::ENUM, 6, 'google.protobuf.internal.FieldOption
s.JSType') |
| 2451 ->optional('lazy', GPBType::BOOL, 5) |
| 2452 ->optional('deprecated', GPBType::BOOL, 3) |
| 2453 ->optional('weak', GPBType::BOOL, 10) |
| 2454 ->repeated('uninterpreted_option', GPBType::MESSAGE, 999, 'google.protobuf.i
nternal.UninterpretedOption') |
| 2455 ->finalizeToPool(); |
| 2456 |
| 2457 $pool->addEnum('google.protobuf.internal.FieldOptions.CType', CType::class) |
| 2458 ->value("STRING", 0) |
| 2459 ->value("CORD", 1) |
| 2460 ->value("STRING_PIECE", 2) |
| 2461 ->finalizeToPool(); |
| 2462 |
| 2463 $pool->addEnum('google.protobuf.internal.FieldOptions.JSType', JSType::class) |
| 2464 ->value("JS_NORMAL", 0) |
| 2465 ->value("JS_STRING", 1) |
| 2466 ->value("JS_NUMBER", 2) |
| 2467 ->finalizeToPool(); |
| 2468 |
| 2469 $pool->addMessage('google.protobuf.internal.OneofOptions', OneofOptions::class) |
| 2470 ->repeated('uninterpreted_option', GPBType::MESSAGE, 999, 'google.protobuf.i
nternal.UninterpretedOption') |
| 2471 ->finalizeToPool(); |
| 2472 |
| 2473 $pool->addMessage('google.protobuf.internal.EnumOptions', EnumOptions::class) |
| 2474 ->optional('allow_alias', GPBType::BOOL, 2) |
| 2475 ->optional('deprecated', GPBType::BOOL, 3) |
| 2476 ->repeated('uninterpreted_option', GPBType::MESSAGE, 999, 'google.protobuf.i
nternal.UninterpretedOption') |
| 2477 ->finalizeToPool(); |
| 2478 |
| 2479 $pool->addMessage('google.protobuf.internal.EnumValueOptions', EnumValueOptions:
:class) |
| 2480 ->optional('deprecated', GPBType::BOOL, 1) |
| 2481 ->repeated('uninterpreted_option', GPBType::MESSAGE, 999, 'google.protobuf.i
nternal.UninterpretedOption') |
| 2482 ->finalizeToPool(); |
| 2483 |
| 2484 $pool->addMessage('google.protobuf.internal.ServiceOptions', ServiceOptions::cla
ss) |
| 2485 ->optional('deprecated', GPBType::BOOL, 33) |
| 2486 ->repeated('uninterpreted_option', GPBType::MESSAGE, 999, 'google.protobuf.i
nternal.UninterpretedOption') |
| 2487 ->finalizeToPool(); |
| 2488 |
| 2489 $pool->addMessage('google.protobuf.internal.MethodOptions', MethodOptions::class
) |
| 2490 ->optional('deprecated', GPBType::BOOL, 33) |
| 2491 ->repeated('uninterpreted_option', GPBType::MESSAGE, 999, 'google.protobuf.i
nternal.UninterpretedOption') |
| 2492 ->finalizeToPool(); |
| 2493 |
| 2494 $pool->addMessage('google.protobuf.internal.UninterpretedOption', UninterpretedO
ption::class) |
| 2495 ->repeated('name', GPBType::MESSAGE, 2, 'google.protobuf.internal.Uninterpre
tedOption.NamePart') |
| 2496 ->optional('identifier_value', GPBType::STRING, 3) |
| 2497 ->optional('positive_int_value', GPBType::UINT64, 4) |
| 2498 ->optional('negative_int_value', GPBType::INT64, 5) |
| 2499 ->optional('double_value', GPBType::DOUBLE, 6) |
| 2500 ->optional('string_value', GPBType::BYTES, 7) |
| 2501 ->optional('aggregate_value', GPBType::STRING, 8) |
| 2502 ->finalizeToPool(); |
| 2503 |
| 2504 $pool->addMessage('google.protobuf.internal.UninterpretedOption.NamePart', Unint
erpretedOption_NamePart::class) |
| 2505 ->required('name_part', GPBType::STRING, 1) |
| 2506 ->required('is_extension', GPBType::BOOL, 2) |
| 2507 ->finalizeToPool(); |
| 2508 |
| 2509 $pool->addMessage('google.protobuf.internal.SourceCodeInfo', SourceCodeInfo::cla
ss) |
| 2510 ->repeated('location', GPBType::MESSAGE, 1, 'google.protobuf.internal.Source
CodeInfo.Location') |
| 2511 ->finalizeToPool(); |
| 2512 |
| 2513 $pool->addMessage('google.protobuf.internal.SourceCodeInfo.Location', SourceCode
Info_Location::class) |
| 2514 ->repeated('path', GPBType::INT32, 1) |
| 2515 ->repeated('span', GPBType::INT32, 2) |
| 2516 ->optional('leading_comments', GPBType::STRING, 3) |
| 2517 ->optional('trailing_comments', GPBType::STRING, 4) |
| 2518 ->repeated('leading_detached_comments', GPBType::STRING, 6) |
| 2519 ->finalizeToPool(); |
| 2520 |
| 2521 $pool->addMessage('google.protobuf.internal.GeneratedCodeInfo', GeneratedCodeInf
o::class) |
| 2522 ->repeated('annotation', GPBType::MESSAGE, 1, 'google.protobuf.internal.Gene
ratedCodeInfo.Annotation') |
| 2523 ->finalizeToPool(); |
| 2524 |
| 2525 $pool->addMessage('google.protobuf.internal.GeneratedCodeInfo.Annotation', Gener
atedCodeInfo_Annotation::class) |
| 2526 ->repeated('path', GPBType::INT32, 1) |
| 2527 ->optional('source_file', GPBType::STRING, 2) |
| 2528 ->optional('begin', GPBType::INT32, 3) |
| 2529 ->optional('end', GPBType::INT32, 4) |
| 2530 ->finalizeToPool(); |
| 2531 |
| 2532 $pool->finish(); |
OLD | NEW |