DescriptorProto_ExtensionRange.php 2.99 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/protobuf/descriptor.proto

namespace Google\Protobuf\Internal;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBWire;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\InputStream;
use Google\Protobuf\Internal\GPBUtil;

/**
14
 * Generated from protobuf message <code>google.protobuf.DescriptorProto.ExtensionRange</code>
15 16 17 18
 */
class DescriptorProto_ExtensionRange extends \Google\Protobuf\Internal\Message
{
    /**
19
     * Generated from protobuf field <code>optional int32 start = 1;</code>
20 21 22 23
     */
    private $start = 0;
    private $has_start = false;
    /**
24
     * Generated from protobuf field <code>optional int32 end = 2;</code>
25 26 27
     */
    private $end = 0;
    private $has_end = false;
28
    /**
Jisi Liu's avatar
Jisi Liu committed
29
     * Generated from protobuf field <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code>
30 31 32
     */
    private $options = null;
    private $has_options = false;
33 34 35 36 37 38 39

    public function __construct() {
        \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
        parent::__construct();
    }

    /**
40 41
     * Generated from protobuf field <code>optional int32 start = 1;</code>
     * @return int
42 43 44 45 46 47 48
     */
    public function getStart()
    {
        return $this->start;
    }

    /**
49 50 51
     * Generated from protobuf field <code>optional int32 start = 1;</code>
     * @param int $var
     * @return $this
52 53 54 55 56 57
     */
    public function setStart($var)
    {
        GPBUtil::checkInt32($var);
        $this->start = $var;
        $this->has_start = true;
58 59

        return $this;
60 61 62 63 64 65 66 67
    }

    public function hasStart()
    {
        return $this->has_start;
    }

    /**
68 69
     * Generated from protobuf field <code>optional int32 end = 2;</code>
     * @return int
70 71 72 73 74 75 76
     */
    public function getEnd()
    {
        return $this->end;
    }

    /**
77 78 79
     * Generated from protobuf field <code>optional int32 end = 2;</code>
     * @param int $var
     * @return $this
80 81 82 83 84 85
     */
    public function setEnd($var)
    {
        GPBUtil::checkInt32($var);
        $this->end = $var;
        $this->has_end = true;
86 87

        return $this;
88 89 90 91 92 93 94
    }

    public function hasEnd()
    {
        return $this->has_end;
    }

95
    /**
Jisi Liu's avatar
Jisi Liu committed
96 97
     * Generated from protobuf field <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code>
     * @return \Google\Protobuf\Internal\ExtensionRangeOptions
98 99 100 101 102 103 104
     */
    public function getOptions()
    {
        return $this->options;
    }

    /**
Jisi Liu's avatar
Jisi Liu committed
105 106 107
     * Generated from protobuf field <code>optional .google.protobuf.ExtensionRangeOptions options = 3;</code>
     * @param \Google\Protobuf\Internal\ExtensionRangeOptions $var
     * @return $this
108
     */
Jisi Liu's avatar
Jisi Liu committed
109
    public function setOptions($var)
110 111 112 113
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Internal\ExtensionRangeOptions::class);
        $this->options = $var;
        $this->has_options = true;
Jisi Liu's avatar
Jisi Liu committed
114 115

        return $this;
116 117 118 119 120 121 122
    }

    public function hasOptions()
    {
        return $this->has_options;
    }

123 124
}