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.DescriptorProto.ExtensionRange</code> |
| 16 */ |
| 17 class DescriptorProto_ExtensionRange extends \Google\Protobuf\Internal\Message |
| 18 { |
| 19 /** |
| 20 * <code>optional int32 start = 1;</code> |
| 21 */ |
| 22 private $start = 0; |
| 23 private $has_start = false; |
| 24 /** |
| 25 * <code>optional int32 end = 2;</code> |
| 26 */ |
| 27 private $end = 0; |
| 28 private $has_end = false; |
| 29 |
| 30 public function __construct() { |
| 31 \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce(); |
| 32 parent::__construct(); |
| 33 } |
| 34 |
| 35 /** |
| 36 * <code>optional int32 start = 1;</code> |
| 37 */ |
| 38 public function getStart() |
| 39 { |
| 40 return $this->start; |
| 41 } |
| 42 |
| 43 /** |
| 44 * <code>optional int32 start = 1;</code> |
| 45 */ |
| 46 public function setStart($var) |
| 47 { |
| 48 GPBUtil::checkInt32($var); |
| 49 $this->start = $var; |
| 50 $this->has_start = true; |
| 51 } |
| 52 |
| 53 public function hasStart() |
| 54 { |
| 55 return $this->has_start; |
| 56 } |
| 57 |
| 58 /** |
| 59 * <code>optional int32 end = 2;</code> |
| 60 */ |
| 61 public function getEnd() |
| 62 { |
| 63 return $this->end; |
| 64 } |
| 65 |
| 66 /** |
| 67 * <code>optional int32 end = 2;</code> |
| 68 */ |
| 69 public function setEnd($var) |
| 70 { |
| 71 GPBUtil::checkInt32($var); |
| 72 $this->end = $var; |
| 73 $this->has_end = true; |
| 74 } |
| 75 |
| 76 public function hasEnd() |
| 77 { |
| 78 return $this->has_end; |
| 79 } |
| 80 |
| 81 } |
| 82 |
OLD | NEW |