ExtensionRangeOptions.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. 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. /**
  22. * Constructor.
  23. *
  24. * @param array $data {
  25. * Optional. Data for populating the Message object.
  26. *
  27. * @type \Google\Protobuf\Internal\UninterpretedOption[]|\Google\Protobuf\Internal\RepeatedField $uninterpreted_option
  28. * The parser stores options it doesn't recognize here. See above.
  29. * }
  30. */
  31. public function __construct($data = NULL) {
  32. \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
  33. parent::__construct($data);
  34. }
  35. /**
  36. * The parser stores options it doesn't recognize here. See above.
  37. *
  38. * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
  39. * @return \Google\Protobuf\Internal\RepeatedField
  40. */
  41. public function getUninterpretedOption()
  42. {
  43. return $this->uninterpreted_option;
  44. }
  45. /**
  46. * The parser stores options it doesn't recognize here. See above.
  47. *
  48. * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
  49. * @param \Google\Protobuf\Internal\UninterpretedOption[]|\Google\Protobuf\Internal\RepeatedField $var
  50. * @return $this
  51. */
  52. public function setUninterpretedOption($var)
  53. {
  54. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\UninterpretedOption::class);
  55. $this->uninterpreted_option = $arr;
  56. return $this;
  57. }
  58. }