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

namespace PhpWA\Protocol\Proto\DeviceProps;

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

/**
 * Generated from protobuf message <code>proto.DeviceProps.AppVersion</code>
 */
class AppVersion extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional uint32 primary = 1;</code>
     */
    protected $primary = null;
    /**
     * Generated from protobuf field <code>optional uint32 secondary = 2;</code>
     */
    protected $secondary = null;
    /**
     * Generated from protobuf field <code>optional uint32 tertiary = 3;</code>
     */
    protected $tertiary = null;
    /**
     * Generated from protobuf field <code>optional uint32 quaternary = 4;</code>
     */
    protected $quaternary = null;
    /**
     * Generated from protobuf field <code>optional uint32 quinary = 5;</code>
     */
    protected $quinary = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $primary
     *     @type int $secondary
     *     @type int $tertiary
     *     @type int $quaternary
     *     @type int $quinary
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

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

    public function hasPrimary()
    {
        return isset($this->primary);
    }

    public function clearPrimary()
    {
        unset($this->primary);
    }

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

        return $this;
    }

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

    public function hasSecondary()
    {
        return isset($this->secondary);
    }

    public function clearSecondary()
    {
        unset($this->secondary);
    }

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

        return $this;
    }

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

    public function hasTertiary()
    {
        return isset($this->tertiary);
    }

    public function clearTertiary()
    {
        unset($this->tertiary);
    }

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

        return $this;
    }

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

    public function hasQuaternary()
    {
        return isset($this->quaternary);
    }

    public function clearQuaternary()
    {
        unset($this->quaternary);
    }

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

        return $this;
    }

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

    public function hasQuinary()
    {
        return isset($this->quinary);
    }

    public function clearQuinary()
    {
        unset($this->quinary);
    }

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

        return $this;
    }

}

