OLD | NEW |
(Empty) | |
| 1 <?php |
| 2 # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 # source: google/protobuf/descriptor.proto |
| 4 |
| 5 namespace Google\Protobuf\Internal; |
| 6 |
| 7 use Google\Protobuf\Internal\GPBType; |
| 8 use Google\Protobuf\Internal\GPBWire; |
| 9 use Google\Protobuf\Internal\RepeatedField; |
| 10 use Google\Protobuf\Internal\InputStream; |
| 11 |
| 12 use Google\Protobuf\Internal\GPBUtil; |
| 13 |
| 14 /** |
| 15 * Protobuf type <code>google.protobuf.EnumValueOptions</code> |
| 16 */ |
| 17 class EnumValueOptions extends \Google\Protobuf\Internal\Message |
| 18 { |
| 19 /** |
| 20 * <pre> |
| 21 * Is this enum value deprecated? |
| 22 * Depending on the target platform, this can emit Deprecated annotations |
| 23 * for the enum value, or it will be completely ignored; in the very least, |
| 24 * this is a formalization for deprecating enum values. |
| 25 * </pre> |
| 26 * |
| 27 * <code>optional bool deprecated = 1 [default = false];</code> |
| 28 */ |
| 29 private $deprecated = false; |
| 30 private $has_deprecated = false; |
| 31 /** |
| 32 * <pre> |
| 33 * The parser stores options it doesn't recognize here. See above. |
| 34 * </pre> |
| 35 * |
| 36 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option
= 999;</code> |
| 37 */ |
| 38 private $uninterpreted_option; |
| 39 private $has_uninterpreted_option = false; |
| 40 |
| 41 public function __construct() { |
| 42 \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce(); |
| 43 parent::__construct(); |
| 44 } |
| 45 |
| 46 /** |
| 47 * <pre> |
| 48 * Is this enum value deprecated? |
| 49 * Depending on the target platform, this can emit Deprecated annotations |
| 50 * for the enum value, or it will be completely ignored; in the very least, |
| 51 * this is a formalization for deprecating enum values. |
| 52 * </pre> |
| 53 * |
| 54 * <code>optional bool deprecated = 1 [default = false];</code> |
| 55 */ |
| 56 public function getDeprecated() |
| 57 { |
| 58 return $this->deprecated; |
| 59 } |
| 60 |
| 61 /** |
| 62 * <pre> |
| 63 * Is this enum value deprecated? |
| 64 * Depending on the target platform, this can emit Deprecated annotations |
| 65 * for the enum value, or it will be completely ignored; in the very least, |
| 66 * this is a formalization for deprecating enum values. |
| 67 * </pre> |
| 68 * |
| 69 * <code>optional bool deprecated = 1 [default = false];</code> |
| 70 */ |
| 71 public function setDeprecated($var) |
| 72 { |
| 73 GPBUtil::checkBool($var); |
| 74 $this->deprecated = $var; |
| 75 $this->has_deprecated = true; |
| 76 } |
| 77 |
| 78 public function hasDeprecated() |
| 79 { |
| 80 return $this->has_deprecated; |
| 81 } |
| 82 |
| 83 /** |
| 84 * <pre> |
| 85 * The parser stores options it doesn't recognize here. See above. |
| 86 * </pre> |
| 87 * |
| 88 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option
= 999;</code> |
| 89 */ |
| 90 public function getUninterpretedOption() |
| 91 { |
| 92 return $this->uninterpreted_option; |
| 93 } |
| 94 |
| 95 /** |
| 96 * <pre> |
| 97 * The parser stores options it doesn't recognize here. See above. |
| 98 * </pre> |
| 99 * |
| 100 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option
= 999;</code> |
| 101 */ |
| 102 public function setUninterpretedOption(&$var) |
| 103 { |
| 104 GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MES
SAGE, \Google\Protobuf\Internal\UninterpretedOption::class); |
| 105 $this->uninterpreted_option = $var; |
| 106 $this->has_uninterpreted_option = true; |
| 107 } |
| 108 |
| 109 public function hasUninterpretedOption() |
| 110 { |
| 111 return $this->has_uninterpreted_option; |
| 112 } |
| 113 |
| 114 } |
| 115 |
OLD | NEW |