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 * Generated from protobuf message <code>google.protobuf.DescriptorProto.ExtensionRange</code> 15 */ 16class ExtensionRange extends \Google\Protobuf\Internal\Message 17{ 18 /** 19 * Inclusive. 20 * 21 * Generated from protobuf field <code>optional int32 start = 1;</code> 22 */ 23 protected $start = null; 24 /** 25 * Exclusive. 26 * 27 * Generated from protobuf field <code>optional int32 end = 2;</code> 28 */ 29 protected $end = null; 30 /** 31 * Generated from protobuf field <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> 32 */ 33 protected $options = 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 * @type \Google\Protobuf\Internal\ExtensionRangeOptions $options 46 * } 47 */ 48 public function __construct($data = NULL) { 49 \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce(); 50 parent::__construct($data); 51 } 52 53 /** 54 * Inclusive. 55 * 56 * Generated from protobuf field <code>optional int32 start = 1;</code> 57 * @return int 58 */ 59 public function getStart() 60 { 61 return isset($this->start) ? $this->start : 0; 62 } 63 64 public function hasStart() 65 { 66 return isset($this->start); 67 } 68 69 public function clearStart() 70 { 71 unset($this->start); 72 } 73 74 /** 75 * Inclusive. 76 * 77 * Generated from protobuf field <code>optional int32 start = 1;</code> 78 * @param int $var 79 * @return $this 80 */ 81 public function setStart($var) 82 { 83 GPBUtil::checkInt32($var); 84 $this->start = $var; 85 86 return $this; 87 } 88 89 /** 90 * Exclusive. 91 * 92 * Generated from protobuf field <code>optional int32 end = 2;</code> 93 * @return int 94 */ 95 public function getEnd() 96 { 97 return isset($this->end) ? $this->end : 0; 98 } 99 100 public function hasEnd() 101 { 102 return isset($this->end); 103 } 104 105 public function clearEnd() 106 { 107 unset($this->end); 108 } 109 110 /** 111 * Exclusive. 112 * 113 * Generated from protobuf field <code>optional int32 end = 2;</code> 114 * @param int $var 115 * @return $this 116 */ 117 public function setEnd($var) 118 { 119 GPBUtil::checkInt32($var); 120 $this->end = $var; 121 122 return $this; 123 } 124 125 /** 126 * Generated from protobuf field <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> 127 * @return \Google\Protobuf\Internal\ExtensionRangeOptions 128 */ 129 public function getOptions() 130 { 131 return isset($this->options) ? $this->options : null; 132 } 133 134 public function hasOptions() 135 { 136 return isset($this->options); 137 } 138 139 public function clearOptions() 140 { 141 unset($this->options); 142 } 143 144 /** 145 * Generated from protobuf field <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> 146 * @param \Google\Protobuf\Internal\ExtensionRangeOptions $var 147 * @return $this 148 */ 149 public function setOptions($var) 150 { 151 GPBUtil::checkMessage($var, \Google\Protobuf\Internal\ExtensionRangeOptions::class); 152 $this->options = $var; 153 154 return $this; 155 } 156 157} 158 159// Adding a class alias for backwards compatibility with the previous class name. 160class_alias(ExtensionRange::class, \Google\Protobuf\Internal\DescriptorProto_ExtensionRange::class); 161 162