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 private $start = 0; 24 private $has_start = false; 25 /** 26 * Exclusive. 27 * 28 * Generated from protobuf field <code>optional int32 end = 2;</code> 29 */ 30 private $end = 0; 31 private $has_end = false; 32 /** 33 * Generated from protobuf field <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> 34 */ 35 private $options = null; 36 private $has_options = false; 37 38 /** 39 * Constructor. 40 * 41 * @param array $data { 42 * Optional. Data for populating the Message object. 43 * 44 * @type int $start 45 * Inclusive. 46 * @type int $end 47 * Exclusive. 48 * @type \Google\Protobuf\Internal\ExtensionRangeOptions $options 49 * } 50 */ 51 public function __construct($data = NULL) { 52 \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce(); 53 parent::__construct($data); 54 } 55 56 /** 57 * Inclusive. 58 * 59 * Generated from protobuf field <code>optional int32 start = 1;</code> 60 * @return int 61 */ 62 public function getStart() 63 { 64 return $this->start; 65 } 66 67 /** 68 * Inclusive. 69 * 70 * Generated from protobuf field <code>optional int32 start = 1;</code> 71 * @param int $var 72 * @return $this 73 */ 74 public function setStart($var) 75 { 76 GPBUtil::checkInt32($var); 77 $this->start = $var; 78 $this->has_start = true; 79 80 return $this; 81 } 82 83 public function hasStart() 84 { 85 return $this->has_start; 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 $this->end; 97 } 98 99 /** 100 * Exclusive. 101 * 102 * Generated from protobuf field <code>optional int32 end = 2;</code> 103 * @param int $var 104 * @return $this 105 */ 106 public function setEnd($var) 107 { 108 GPBUtil::checkInt32($var); 109 $this->end = $var; 110 $this->has_end = true; 111 112 return $this; 113 } 114 115 public function hasEnd() 116 { 117 return $this->has_end; 118 } 119 120 /** 121 * Generated from protobuf field <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> 122 * @return \Google\Protobuf\Internal\ExtensionRangeOptions 123 */ 124 public function getOptions() 125 { 126 return $this->options; 127 } 128 129 /** 130 * Generated from protobuf field <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code> 131 * @param \Google\Protobuf\Internal\ExtensionRangeOptions $var 132 * @return $this 133 */ 134 public function setOptions($var) 135 { 136 GPBUtil::checkMessage($var, \Google\Protobuf\Internal\ExtensionRangeOptions::class); 137 $this->options = $var; 138 $this->has_options = true; 139 140 return $this; 141 } 142 143 public function hasOptions() 144 { 145 return $this->has_options; 146 } 147 148} 149 150// Adding a class alias for backwards compatibility with the previous class name. 151class_alias(ExtensionRange::class, \Google\Protobuf\Internal\DescriptorProto_ExtensionRange::class); 152 153