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\DescriptorProto; |
| 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 tag numbers. Reserved tag numbers may not be used by |
| 15 | * fields or extension ranges in the same message. Reserved ranges may |
| 16 | * not overlap. |
| 17 | * |
| 18 | * Generated from protobuf message <code>google.protobuf.DescriptorProto.ReservedRange</code> |
| 19 | */ |
| 20 | class ReservedRange extends \Google\Protobuf\Internal\Message |
| 21 | { |
| 22 | /** |
| 23 | * Inclusive. |
| 24 | * |
| 25 | * Generated from protobuf field <code>optional int32 start = 1;</code> |
| 26 | */ |
| 27 | protected $start = 0; |
| 28 | private $has_start = false; |
| 29 | /** |
| 30 | * Exclusive. |
| 31 | * |
| 32 | * Generated from protobuf field <code>optional int32 end = 2;</code> |
| 33 | */ |
| 34 | protected $end = 0; |
| 35 | private $has_end = false; |
| 36 | |
| 37 | /** |
| 38 | * Constructor. |
| 39 | * |
| 40 | * @param array $data { |
| 41 | * Optional. Data for populating the Message object. |
| 42 | * |
| 43 | * @type int $start |
| 44 | * Inclusive. |
| 45 | * @type int $end |
| 46 | * Exclusive. |
| 47 | * } |
| 48 | */ |
| 49 | public function __construct($data = NULL) { |
| 50 | \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce(); |
| 51 | parent::__construct($data); |
| 52 | } |
| 53 | |
| 54 | /** |
| 55 | * Inclusive. |
| 56 | * |
| 57 | * Generated from protobuf field <code>optional int32 start = 1;</code> |
| 58 | * @return int |
| 59 | */ |
| 60 | public function getStart() |
| 61 | { |
| 62 | return $this->start; |
| 63 | } |
| 64 | |
| 65 | /** |
| 66 | * Inclusive. |
| 67 | * |
| 68 | * Generated from protobuf field <code>optional int32 start = 1;</code> |
| 69 | * @param int $var |
| 70 | * @return $this |
| 71 | */ |
| 72 | public function setStart($var) |
| 73 | { |
| 74 | GPBUtil::checkInt32($var); |
| 75 | $this->start = $var; |
| 76 | $this->has_start = true; |
| 77 | |
| 78 | return $this; |
| 79 | } |
| 80 | |
| 81 | public function hasStart() |
| 82 | { |
| 83 | return $this->has_start; |
| 84 | } |
| 85 | |
| 86 | /** |
| 87 | * Exclusive. |
| 88 | * |
| 89 | * Generated from protobuf field <code>optional int32 end = 2;</code> |
| 90 | * @return int |
| 91 | */ |
| 92 | public function getEnd() |
| 93 | { |
| 94 | return $this->end; |
| 95 | } |
| 96 | |
| 97 | /** |
| 98 | * Exclusive. |
| 99 | * |
| 100 | * Generated from protobuf field <code>optional int32 end = 2;</code> |
| 101 | * @param int $var |
| 102 | * @return $this |
| 103 | */ |
| 104 | public function setEnd($var) |
| 105 | { |
| 106 | GPBUtil::checkInt32($var); |
| 107 | $this->end = $var; |
| 108 | $this->has_end = true; |
| 109 | |
| 110 | return $this; |
| 111 | } |
| 112 | |
| 113 | public function hasEnd() |
| 114 | { |
| 115 | return $this->has_end; |
| 116 | } |
| 117 | |
| 118 | } |
| 119 | |
| 120 | // Adding a class alias for backwards compatibility with the previous class name. |
| 121 | class_alias(ReservedRange::class, \Google\Protobuf\Internal\DescriptorProto_ReservedRange::class); |
| 122 | |