<?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.Record64</code>
 */
class Record64 extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string name = 1;</code>
     */
    protected $name = '';
    /**
     * Generated from protobuf field <code>string owner = 2;</code>
     */
    protected $owner = '';
    /**
     * Generated from protobuf field <code>.Messages.Revision revision = 3;</code>
     */
    protected $revision = null;
    /**
     *reserved
     *
     * Generated from protobuf field <code>uint32 length_units = 8;</code>
     */
    protected $length_units = 0;
    /**
     * Generated from protobuf field <code>repeated .Messages.Rule requirements = 9;</code>
     */
    private $requirements;
    /**
     * Generated from protobuf field <code>repeated .Messages.Vector64 data = 10;</code>
     */
    private $data;
    /**
     * Generated from protobuf field <code>repeated .Messages.SparseMatrix matrix = 11;</code>
     */
    private $matrix;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *     @type string $owner
     *     @type \Messages\Revision $revision
     *     @type int $length_units
     *          reserved
     *     @type \Messages\Rule[]|\Google\Protobuf\Internal\RepeatedField $requirements
     *     @type \Messages\Vector64[]|\Google\Protobuf\Internal\RepeatedField $data
     *     @type \Messages\SparseMatrix[]|\Google\Protobuf\Internal\RepeatedField $matrix
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Vector::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string name = 1;</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Generated from protobuf field <code>string name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string owner = 2;</code>
     * @return string
     */
    public function getOwner()
    {
        return $this->owner;
    }

    /**
     * Generated from protobuf field <code>string owner = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setOwner($var)
    {
        GPBUtil::checkString($var, True);
        $this->owner = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.Messages.Revision revision = 3;</code>
     * @return \Messages\Revision|null
     */
    public function getRevision()
    {
        return $this->revision;
    }

    public function hasRevision()
    {
        return isset($this->revision);
    }

    public function clearRevision()
    {
        unset($this->revision);
    }

    /**
     * Generated from protobuf field <code>.Messages.Revision revision = 3;</code>
     * @param \Messages\Revision $var
     * @return $this
     */
    public function setRevision($var)
    {
        GPBUtil::checkMessage($var, \Messages\Revision::class);
        $this->revision = $var;

        return $this;
    }

    /**
     *reserved
     *
     * Generated from protobuf field <code>uint32 length_units = 8;</code>
     * @return int
     */
    public function getLengthUnits()
    {
        return $this->length_units;
    }

    /**
     *reserved
     *
     * Generated from protobuf field <code>uint32 length_units = 8;</code>
     * @param int $var
     * @return $this
     */
    public function setLengthUnits($var)
    {
        GPBUtil::checkUint32($var);
        $this->length_units = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .Messages.Rule requirements = 9;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getRequirements()
    {
        return $this->requirements;
    }

    /**
     * Generated from protobuf field <code>repeated .Messages.Rule requirements = 9;</code>
     * @param \Messages\Rule[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setRequirements($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Messages\Rule::class);
        $this->requirements = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .Messages.Vector64 data = 10;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getData()
    {
        return $this->data;
    }

    /**
     * Generated from protobuf field <code>repeated .Messages.Vector64 data = 10;</code>
     * @param \Messages\Vector64[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setData($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Messages\Vector64::class);
        $this->data = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .Messages.SparseMatrix matrix = 11;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getMatrix()
    {
        return $this->matrix;
    }

    /**
     * Generated from protobuf field <code>repeated .Messages.SparseMatrix matrix = 11;</code>
     * @param \Messages\SparseMatrix[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setMatrix($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Messages\SparseMatrix::class);
        $this->matrix = $arr;

        return $this;
    }

}

