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