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.EnumOptions</code> 15 */ 16class EnumOptions extends \Google\Protobuf\Internal\Message 17{ 18 /** 19 * Set this option to true to allow mapping different tag names to the same 20 * value. 21 * 22 * Generated from protobuf field <code>optional bool allow_alias = 2;</code> 23 */ 24 private $allow_alias = false; 25 private $has_allow_alias = false; 26 /** 27 * Is this enum deprecated? 28 * Depending on the target platform, this can emit Deprecated annotations 29 * for the enum, or it will be completely ignored; in the very least, this 30 * is a formalization for deprecating enums. 31 * 32 * Generated from protobuf field <code>optional bool deprecated = 3 [default = false];</code> 33 */ 34 private $deprecated = false; 35 private $has_deprecated = false; 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 */ 41 private $uninterpreted_option; 42 private $has_uninterpreted_option = false; 43 44 /** 45 * Constructor. 46 * 47 * @param array $data { 48 * Optional. Data for populating the Message object. 49 * 50 * @type bool $allow_alias 51 * Set this option to true to allow mapping different tag names to the same 52 * value. 53 * @type bool $deprecated 54 * Is this enum deprecated? 55 * Depending on the target platform, this can emit Deprecated annotations 56 * for the enum, or it will be completely ignored; in the very least, this 57 * is a formalization for deprecating enums. 58 * @type \Google\Protobuf\Internal\UninterpretedOption[]|\Google\Protobuf\Internal\RepeatedField $uninterpreted_option 59 * The parser stores options it doesn't recognize here. See above. 60 * } 61 */ 62 public function __construct($data = NULL) { 63 \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce(); 64 parent::__construct($data); 65 } 66 67 /** 68 * Set this option to true to allow mapping different tag names to the same 69 * value. 70 * 71 * Generated from protobuf field <code>optional bool allow_alias = 2;</code> 72 * @return bool 73 */ 74 public function getAllowAlias() 75 { 76 return $this->allow_alias; 77 } 78 79 /** 80 * Set this option to true to allow mapping different tag names to the same 81 * value. 82 * 83 * Generated from protobuf field <code>optional bool allow_alias = 2;</code> 84 * @param bool $var 85 * @return $this 86 */ 87 public function setAllowAlias($var) 88 { 89 GPBUtil::checkBool($var); 90 $this->allow_alias = $var; 91 $this->has_allow_alias = true; 92 93 return $this; 94 } 95 96 public function hasAllowAlias() 97 { 98 return $this->has_allow_alias; 99 } 100 101 /** 102 * Is this enum deprecated? 103 * Depending on the target platform, this can emit Deprecated annotations 104 * for the enum, or it will be completely ignored; in the very least, this 105 * is a formalization for deprecating enums. 106 * 107 * Generated from protobuf field <code>optional bool deprecated = 3 [default = false];</code> 108 * @return bool 109 */ 110 public function getDeprecated() 111 { 112 return $this->deprecated; 113 } 114 115 /** 116 * Is this enum deprecated? 117 * Depending on the target platform, this can emit Deprecated annotations 118 * for the enum, or it will be completely ignored; in the very least, this 119 * is a formalization for deprecating enums. 120 * 121 * Generated from protobuf field <code>optional bool deprecated = 3 [default = false];</code> 122 * @param bool $var 123 * @return $this 124 */ 125 public function setDeprecated($var) 126 { 127 GPBUtil::checkBool($var); 128 $this->deprecated = $var; 129 $this->has_deprecated = true; 130 131 return $this; 132 } 133 134 public function hasDeprecated() 135 { 136 return $this->has_deprecated; 137 } 138 139 /** 140 * The parser stores options it doesn't recognize here. See above. 141 * 142 * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 143 * @return \Google\Protobuf\Internal\RepeatedField 144 */ 145 public function getUninterpretedOption() 146 { 147 return $this->uninterpreted_option; 148 } 149 150 /** 151 * The parser stores options it doesn't recognize here. See above. 152 * 153 * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> 154 * @param \Google\Protobuf\Internal\UninterpretedOption[]|\Google\Protobuf\Internal\RepeatedField $var 155 * @return $this 156 */ 157 public function setUninterpretedOption($var) 158 { 159 $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\UninterpretedOption::class); 160 $this->uninterpreted_option = $arr; 161 $this->has_uninterpreted_option = true; 162 163 return $this; 164 } 165 166 public function hasUninterpretedOption() 167 { 168 return $this->has_uninterpreted_option; 169 } 170 171} 172 173