ExtensionRangeOptions.php 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: google/protobuf/descriptor.proto
  4. namespace Google\Protobuf\Internal;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\GPBWire;
  7. use Google\Protobuf\Internal\RepeatedField;
  8. use Google\Protobuf\Internal\InputStream;
  9. use Google\Protobuf\Internal\GPBUtil;
  10. /**
  11. * Generated from protobuf message <code>google.protobuf.ExtensionRangeOptions</code>
  12. */
  13. final class ExtensionRangeOptions extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * The parser stores options it doesn't recognize here. See above.
  17. *
  18. * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
  19. */
  20. private $uninterpreted_option;
  21. private $has_uninterpreted_option = false;
  22. /**
  23. * Constructor.
  24. *
  25. * @param array $data {
  26. * Optional. Data for populating the Message object.
  27. *
  28. * @type \Google\Protobuf\Internal\UninterpretedOption[]|\Google\Protobuf\Internal\RepeatedField $uninterpreted_option
  29. * The parser stores options it doesn't recognize here. See above.
  30. * }
  31. */
  32. public function __construct($data = NULL) {
  33. \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
  34. parent::__construct($data);
  35. }
  36. /**
  37. * The parser stores options it doesn't recognize here. See above.
  38. *
  39. * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
  40. * @return \Google\Protobuf\Internal\RepeatedField
  41. */
  42. public function getUninterpretedOption()
  43. {
  44. return $this->uninterpreted_option;
  45. }
  46. /**
  47. * The parser stores options it doesn't recognize here. See above.
  48. *
  49. * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
  50. * @param \Google\Protobuf\Internal\UninterpretedOption[]|\Google\Protobuf\Internal\RepeatedField $var
  51. * @return $this
  52. */
  53. public function setUninterpretedOption($var)
  54. {
  55. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\UninterpretedOption::class);
  56. $this->uninterpreted_option = $arr;
  57. $this->has_uninterpreted_option = true;
  58. return $this;
  59. }
  60. public function hasUninterpretedOption()
  61. {
  62. return $this->has_uninterpreted_option;
  63. }
  64. }