<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: vector.proto

namespace Messages;

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

/**
 * Generated from protobuf message <code>Messages.Revision</code>
 */
class Revision extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>uint64 major_rev = 1;</code>
     */
    protected $major_rev = 0;
    /**
     * Generated from protobuf field <code>uint64 minor_rev = 2;</code>
     */
    protected $minor_rev = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $major_rev
     *     @type int|string $minor_rev
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Vector::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>uint64 major_rev = 1;</code>
     * @return int|string
     */
    public function getMajorRev()
    {
        return $this->major_rev;
    }

    /**
     * Generated from protobuf field <code>uint64 major_rev = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setMajorRev($var)
    {
        GPBUtil::checkUint64($var);
        $this->major_rev = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint64 minor_rev = 2;</code>
     * @return int|string
     */
    public function getMinorRev()
    {
        return $this->minor_rev;
    }

    /**
     * Generated from protobuf field <code>uint64 minor_rev = 2;</code>
     * @param int|string $var
     * @return $this
     */
    public function setMinorRev($var)
    {
        GPBUtil::checkUint64($var);
        $this->minor_rev = $var;

        return $this;
    }

}

