<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: WAProto.proto

namespace PhpWA\Protocol\Proto;

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

/**
 * Generated from protobuf message <code>proto.Reportable</code>
 */
class Reportable extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional uint32 minVersion = 1;</code>
     */
    protected $minVersion = null;
    /**
     * Generated from protobuf field <code>optional uint32 maxVersion = 2;</code>
     */
    protected $maxVersion = null;
    /**
     * Generated from protobuf field <code>optional uint32 notReportableMinVersion = 3;</code>
     */
    protected $notReportableMinVersion = null;
    /**
     * Generated from protobuf field <code>optional bool never = 4;</code>
     */
    protected $never = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $minVersion
     *     @type int $maxVersion
     *     @type int $notReportableMinVersion
     *     @type bool $never
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional uint32 minVersion = 1;</code>
     * @return int
     */
    public function getMinVersion()
    {
        return isset($this->minVersion) ? $this->minVersion : 0;
    }

    public function hasMinVersion()
    {
        return isset($this->minVersion);
    }

    public function clearMinVersion()
    {
        unset($this->minVersion);
    }

    /**
     * Generated from protobuf field <code>optional uint32 minVersion = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setMinVersion($var)
    {
        GPBUtil::checkUint32($var);
        $this->minVersion = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint32 maxVersion = 2;</code>
     * @return int
     */
    public function getMaxVersion()
    {
        return isset($this->maxVersion) ? $this->maxVersion : 0;
    }

    public function hasMaxVersion()
    {
        return isset($this->maxVersion);
    }

    public function clearMaxVersion()
    {
        unset($this->maxVersion);
    }

    /**
     * Generated from protobuf field <code>optional uint32 maxVersion = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setMaxVersion($var)
    {
        GPBUtil::checkUint32($var);
        $this->maxVersion = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint32 notReportableMinVersion = 3;</code>
     * @return int
     */
    public function getNotReportableMinVersion()
    {
        return isset($this->notReportableMinVersion) ? $this->notReportableMinVersion : 0;
    }

    public function hasNotReportableMinVersion()
    {
        return isset($this->notReportableMinVersion);
    }

    public function clearNotReportableMinVersion()
    {
        unset($this->notReportableMinVersion);
    }

    /**
     * Generated from protobuf field <code>optional uint32 notReportableMinVersion = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setNotReportableMinVersion($var)
    {
        GPBUtil::checkUint32($var);
        $this->notReportableMinVersion = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bool never = 4;</code>
     * @return bool
     */
    public function getNever()
    {
        return isset($this->never) ? $this->never : false;
    }

    public function hasNever()
    {
        return isset($this->never);
    }

    public function clearNever()
    {
        unset($this->never);
    }

    /**
     * Generated from protobuf field <code>optional bool never = 4;</code>
     * @param bool $var
     * @return $this
     */
    public function setNever($var)
    {
        GPBUtil::checkBool($var);
        $this->never = $var;

        return $this;
    }

}

