<?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.Vector64</code>
 */
class Vector64 extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string name = 1;</code>
     */
    protected $name = '';
    /**
     * Generated from protobuf field <code>uint32 components = 2;</code>
     */
    protected $components = 0;
    /**
     * Generated from protobuf field <code>bool interleaved = 3;</code>
     */
    protected $interleaved = false;
    /**
     * Generated from protobuf field <code>.Messages.Revision revision = 4;</code>
     */
    protected $revision = null;
    /**
     * kg m s^2 and such string literals
     *
     * Generated from protobuf field <code>string units = 5;</code>
     */
    protected $units = '';
    /**
     * Generated from protobuf field <code>string comment = 6;</code>
     */
    protected $comment = '';
    /**
     *reserved
     *
     * Generated from protobuf field <code>uint64 offset = 9;</code>
     */
    protected $offset = 0;
    /**
     * Generated from protobuf field <code>repeated double values = 10 [packed = true];</code>
     */
    private $values;
    /**
     *reserved
     *
     * Generated from protobuf field <code>repeated uint32 size_hint = 11 [packed = true];</code>
     */
    private $size_hint;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *     @type int $components
     *     @type bool $interleaved
     *     @type \Messages\Revision $revision
     *     @type string $units
     *           kg m s^2 and such string literals
     *     @type string $comment
     *     @type int|string $offset
     *          reserved
     *     @type float[]|\Google\Protobuf\Internal\RepeatedField $values
     *     @type int[]|\Google\Protobuf\Internal\RepeatedField $size_hint
     *          reserved
     * }
     */
    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>uint32 components = 2;</code>
     * @return int
     */
    public function getComponents()
    {
        return $this->components;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool interleaved = 3;</code>
     * @return bool
     */
    public function getInterleaved()
    {
        return $this->interleaved;
    }

    /**
     * Generated from protobuf field <code>bool interleaved = 3;</code>
     * @param bool $var
     * @return $this
     */
    public function setInterleaved($var)
    {
        GPBUtil::checkBool($var);
        $this->interleaved = $var;

        return $this;
    }

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

        return $this;
    }

    /**
     * kg m s^2 and such string literals
     *
     * Generated from protobuf field <code>string units = 5;</code>
     * @return string
     */
    public function getUnits()
    {
        return $this->units;
    }

    /**
     * kg m s^2 and such string literals
     *
     * Generated from protobuf field <code>string units = 5;</code>
     * @param string $var
     * @return $this
     */
    public function setUnits($var)
    {
        GPBUtil::checkString($var, True);
        $this->units = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string comment = 6;</code>
     * @return string
     */
    public function getComment()
    {
        return $this->comment;
    }

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

        return $this;
    }

    /**
     *reserved
     *
     * Generated from protobuf field <code>uint64 offset = 9;</code>
     * @return int|string
     */
    public function getOffset()
    {
        return $this->offset;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated double values = 10 [packed = true];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getValues()
    {
        return $this->values;
    }

    /**
     * Generated from protobuf field <code>repeated double values = 10 [packed = true];</code>
     * @param float[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setValues($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::DOUBLE);
        $this->values = $arr;

        return $this;
    }

    /**
     *reserved
     *
     * Generated from protobuf field <code>repeated uint32 size_hint = 11 [packed = true];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getSizeHint()
    {
        return $this->size_hint;
    }

    /**
     *reserved
     *
     * Generated from protobuf field <code>repeated uint32 size_hint = 11 [packed = true];</code>
     * @param int[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setSizeHint($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::UINT32);
        $this->size_hint = $arr;

        return $this;
    }

}

