1<?php 2# Generated by the protocol buffer compiler. DO NOT EDIT! 3# source: google/protobuf/descriptor.proto 4 5namespace Google\Protobuf\Internal\DescriptorProto; 6 7use Google\Protobuf\Internal\GPBType; 8use Google\Protobuf\Internal\GPBWire; 9use Google\Protobuf\Internal\RepeatedField; 10use Google\Protobuf\Internal\InputStream; 11use 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 */ 20class 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 = null; 28 /** 29 * Exclusive. 30 * 31 * Generated from protobuf field <code>optional int32 end = 2;</code> 32 */ 33 protected $end = null; 34 35 /** 36 * Constructor. 37 * 38 * @param array $data { 39 * Optional. Data for populating the Message object. 40 * 41 * @type int $start 42 * Inclusive. 43 * @type int $end 44 * Exclusive. 45 * } 46 */ 47 public function __construct($data = NULL) { 48 \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce(); 49 parent::__construct($data); 50 } 51 52 /** 53 * Inclusive. 54 * 55 * Generated from protobuf field <code>optional int32 start = 1;</code> 56 * @return int 57 */ 58 public function getStart() 59 { 60 return isset($this->start) ? $this->start : 0; 61 } 62 63 public function hasStart() 64 { 65 return isset($this->start); 66 } 67 68 public function clearStart() 69 { 70 unset($this->start); 71 } 72 73 /** 74 * Inclusive. 75 * 76 * Generated from protobuf field <code>optional int32 start = 1;</code> 77 * @param int $var 78 * @return $this 79 */ 80 public function setStart($var) 81 { 82 GPBUtil::checkInt32($var); 83 $this->start = $var; 84 85 return $this; 86 } 87 88 /** 89 * Exclusive. 90 * 91 * Generated from protobuf field <code>optional int32 end = 2;</code> 92 * @return int 93 */ 94 public function getEnd() 95 { 96 return isset($this->end) ? $this->end : 0; 97 } 98 99 public function hasEnd() 100 { 101 return isset($this->end); 102 } 103 104 public function clearEnd() 105 { 106 unset($this->end); 107 } 108 109 /** 110 * Exclusive. 111 * 112 * Generated from protobuf field <code>optional int32 end = 2;</code> 113 * @param int $var 114 * @return $this 115 */ 116 public function setEnd($var) 117 { 118 GPBUtil::checkInt32($var); 119 $this->end = $var; 120 121 return $this; 122 } 123 124} 125 126// Adding a class alias for backwards compatibility with the previous class name. 127class_alias(ReservedRange::class, \Google\Protobuf\Internal\DescriptorProto_ReservedRange::class); 128 129