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