google.protobuf.DescriptorProto.ExtensionRange
*/
class DescriptorProto_ExtensionRange extends \Google\Protobuf\Internal\Message
{
/**
* optional int32 start = 1;
*/
private $start = 0;
private $has_start = false;
/**
* optional int32 end = 2;
*/
private $end = 0;
private $has_end = false;
/**
* optional .google.protobuf.ExtensionRangeOptions options = 3;
*/
private $options = null;
private $has_options = false;
public function __construct() {
\GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
parent::__construct();
}
/**
* optional int32 start = 1;
*/
public function getStart()
{
return $this->start;
}
/**
* optional int32 start = 1;
*/
public function setStart($var)
{
GPBUtil::checkInt32($var);
$this->start = $var;
$this->has_start = true;
}
public function hasStart()
{
return $this->has_start;
}
/**
* optional int32 end = 2;
*/
public function getEnd()
{
return $this->end;
}
/**
* optional int32 end = 2;
*/
public function setEnd($var)
{
GPBUtil::checkInt32($var);
$this->end = $var;
$this->has_end = true;
}
public function hasEnd()
{
return $this->has_end;
}
/**
* optional .google.protobuf.ExtensionRangeOptions options = 3;
*/
public function getOptions()
{
return $this->options;
}
/**
* optional .google.protobuf.ExtensionRangeOptions options = 3;
*/
public function setOptions(&$var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\Internal\ExtensionRangeOptions::class);
$this->options = $var;
$this->has_options = true;
}
public function hasOptions()
{
return $this->has_options;
}
}