OneofOptions.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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.OneofOptions</code>
  12. */
  13. class OneofOptions 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. public function __construct() {
  23. \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
  24. parent::__construct();
  25. }
  26. /**
  27. * The parser stores options it doesn't recognize here. See above.
  28. *
  29. * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
  30. * @return \Google\Protobuf\Internal\RepeatedField
  31. */
  32. public function getUninterpretedOption()
  33. {
  34. return $this->uninterpreted_option;
  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. * @param \Google\Protobuf\Internal\UninterpretedOption[]|\Google\Protobuf\Internal\RepeatedField $var
  41. * @return $this
  42. */
  43. public function setUninterpretedOption($var)
  44. {
  45. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\UninterpretedOption::class);
  46. $this->uninterpreted_option = $arr;
  47. $this->has_uninterpreted_option = true;
  48. return $this;
  49. }
  50. public function hasUninterpretedOption()
  51. {
  52. return $this->has_uninterpreted_option;
  53. }
  54. }