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

namespace Rv\Data;

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

/**
 * Generated from protobuf message <code>rv.data.AlignmentGuide</code>
 */
class AlignmentGuide extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.UUID uuid = 1;</code>
     */
    protected $uuid = null;
    /**
     * Generated from protobuf field <code>.rv.data.AlignmentGuide.GuidelineOrientation orientation = 2;</code>
     */
    protected $orientation = 0;
    /**
     * Generated from protobuf field <code>double location = 3;</code>
     */
    protected $location = 0.0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\UUID $uuid
     *     @type int $orientation
     *     @type float $location
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\AlignmentGuide::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.UUID uuid = 1;</code>
     * @return \Rv\Data\UUID|null
     */
    public function getUuid()
    {
        return $this->uuid;
    }

    public function hasUuid()
    {
        return isset($this->uuid);
    }

    public function clearUuid()
    {
        unset($this->uuid);
    }

    /**
     * Generated from protobuf field <code>.rv.data.UUID uuid = 1;</code>
     * @param \Rv\Data\UUID $var
     * @return $this
     */
    public function setUuid($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\UUID::class);
        $this->uuid = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.AlignmentGuide.GuidelineOrientation orientation = 2;</code>
     * @return int
     */
    public function getOrientation()
    {
        return $this->orientation;
    }

    /**
     * Generated from protobuf field <code>.rv.data.AlignmentGuide.GuidelineOrientation orientation = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setOrientation($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\AlignmentGuide\GuidelineOrientation::class);
        $this->orientation = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>double location = 3;</code>
     * @return float
     */
    public function getLocation()
    {
        return $this->location;
    }

    /**
     * Generated from protobuf field <code>double location = 3;</code>
     * @param float $var
     * @return $this
     */
    public function setLocation($var)
    {
        GPBUtil::checkDouble($var);
        $this->location = $var;

        return $this;
    }

}

