avm99963 | 99bb77c | 2020-01-27 03:15:08 +0100 | [diff] [blame^] | 1 | <?php |
| 2 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 | # source: google/protobuf/descriptor.proto |
| 4 | |
| 5 | namespace Google\Protobuf\Internal\EnumDescriptorProto; |
| 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 | use Google\Protobuf\Internal\GPBUtil; |
| 12 | |
| 13 | /** |
| 14 | * Range of reserved numeric values. Reserved values may not be used by |
| 15 | * entries in the same enum. Reserved ranges may not overlap. |
| 16 | * Note that this is distinct from DescriptorProto.ReservedRange in that it |
| 17 | * is inclusive such that it can appropriately represent the entire int32 |
| 18 | * domain. |
| 19 | * |
| 20 | * Generated from protobuf message <code>google.protobuf.EnumDescriptorProto.EnumReservedRange</code> |
| 21 | */ |
| 22 | class EnumReservedRange extends \Google\Protobuf\Internal\Message |
| 23 | { |
| 24 | /** |
| 25 | * Inclusive. |
| 26 | * |
| 27 | * Generated from protobuf field <code>optional int32 start = 1;</code> |
| 28 | */ |
| 29 | protected $start = 0; |
| 30 | private $has_start = false; |
| 31 | /** |
| 32 | * Inclusive. |
| 33 | * |
| 34 | * Generated from protobuf field <code>optional int32 end = 2;</code> |
| 35 | */ |
| 36 | protected $end = 0; |
| 37 | private $has_end = false; |
| 38 | |
| 39 | /** |
| 40 | * Constructor. |
| 41 | * |
| 42 | * @param array $data { |
| 43 | * Optional. Data for populating the Message object. |
| 44 | * |
| 45 | * @type int $start |
| 46 | * Inclusive. |
| 47 | * @type int $end |
| 48 | * Inclusive. |
| 49 | * } |
| 50 | */ |
| 51 | public function __construct($data = NULL) { |
| 52 | \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce(); |
| 53 | parent::__construct($data); |
| 54 | } |
| 55 | |
| 56 | /** |
| 57 | * Inclusive. |
| 58 | * |
| 59 | * Generated from protobuf field <code>optional int32 start = 1;</code> |
| 60 | * @return int |
| 61 | */ |
| 62 | public function getStart() |
| 63 | { |
| 64 | return $this->start; |
| 65 | } |
| 66 | |
| 67 | /** |
| 68 | * Inclusive. |
| 69 | * |
| 70 | * Generated from protobuf field <code>optional int32 start = 1;</code> |
| 71 | * @param int $var |
| 72 | * @return $this |
| 73 | */ |
| 74 | public function setStart($var) |
| 75 | { |
| 76 | GPBUtil::checkInt32($var); |
| 77 | $this->start = $var; |
| 78 | $this->has_start = true; |
| 79 | |
| 80 | return $this; |
| 81 | } |
| 82 | |
| 83 | public function hasStart() |
| 84 | { |
| 85 | return $this->has_start; |
| 86 | } |
| 87 | |
| 88 | /** |
| 89 | * Inclusive. |
| 90 | * |
| 91 | * Generated from protobuf field <code>optional int32 end = 2;</code> |
| 92 | * @return int |
| 93 | */ |
| 94 | public function getEnd() |
| 95 | { |
| 96 | return $this->end; |
| 97 | } |
| 98 | |
| 99 | /** |
| 100 | * Inclusive. |
| 101 | * |
| 102 | * Generated from protobuf field <code>optional int32 end = 2;</code> |
| 103 | * @param int $var |
| 104 | * @return $this |
| 105 | */ |
| 106 | public function setEnd($var) |
| 107 | { |
| 108 | GPBUtil::checkInt32($var); |
| 109 | $this->end = $var; |
| 110 | $this->has_end = true; |
| 111 | |
| 112 | return $this; |
| 113 | } |
| 114 | |
| 115 | public function hasEnd() |
| 116 | { |
| 117 | return $this->has_end; |
| 118 | } |
| 119 | |
| 120 | } |
| 121 | |
| 122 | // Adding a class alias for backwards compatibility with the previous class name. |
| 123 | class_alias(EnumReservedRange::class, \Google\Protobuf\Internal\EnumDescriptorProto_EnumReservedRange::class); |
| 124 | |