<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: proscreen.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.ProPresenterScreen</code>
 */
class ProPresenterScreen extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string name = 1;</code>
     */
    protected $name = '';
    /**
     * Generated from protobuf field <code>.rv.data.ProPresenterScreen.ScreenType screen_type = 2;</code>
     */
    protected $screen_type = 0;
    /**
     * Generated from protobuf field <code>.rv.data.Color background_color = 6;</code>
     */
    protected $background_color = null;
    /**
     * Generated from protobuf field <code>.rv.data.UUID uuid = 7;</code>
     */
    protected $uuid = null;
    /**
     * Generated from protobuf field <code>bool background_color_enabled = 8;</code>
     */
    protected $background_color_enabled = false;
    protected $Arrangement;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *     @type int $screen_type
     *     @type \Rv\Data\Color $background_color
     *     @type \Rv\Data\UUID $uuid
     *     @type bool $background_color_enabled
     *     @type \Rv\Data\ProPresenterScreen\SingleArrangement $arrangement_single
     *     @type \Rv\Data\ProPresenterScreen\CombinedArrangement $arrangement_combined
     *     @type \Rv\Data\ProPresenterScreen\EdgeBlendArrangement $arrangement_edge_blend
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Proscreen::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>.rv.data.ProPresenterScreen.ScreenType screen_type = 2;</code>
     * @return int
     */
    public function getScreenType()
    {
        return $this->screen_type;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Color background_color = 6;</code>
     * @return \Rv\Data\Color|null
     */
    public function getBackgroundColor()
    {
        return $this->background_color;
    }

    public function hasBackgroundColor()
    {
        return isset($this->background_color);
    }

    public function clearBackgroundColor()
    {
        unset($this->background_color);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.UUID uuid = 7;</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 = 7;</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>bool background_color_enabled = 8;</code>
     * @return bool
     */
    public function getBackgroundColorEnabled()
    {
        return $this->background_color_enabled;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.ProPresenterScreen.SingleArrangement arrangement_single = 3;</code>
     * @return \Rv\Data\ProPresenterScreen\SingleArrangement|null
     */
    public function getArrangementSingle()
    {
        return $this->readOneof(3);
    }

    public function hasArrangementSingle()
    {
        return $this->hasOneof(3);
    }

    /**
     * Generated from protobuf field <code>.rv.data.ProPresenterScreen.SingleArrangement arrangement_single = 3;</code>
     * @param \Rv\Data\ProPresenterScreen\SingleArrangement $var
     * @return $this
     */
    public function setArrangementSingle($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\ProPresenterScreen\SingleArrangement::class);
        $this->writeOneof(3, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.ProPresenterScreen.CombinedArrangement arrangement_combined = 4;</code>
     * @return \Rv\Data\ProPresenterScreen\CombinedArrangement|null
     */
    public function getArrangementCombined()
    {
        return $this->readOneof(4);
    }

    public function hasArrangementCombined()
    {
        return $this->hasOneof(4);
    }

    /**
     * Generated from protobuf field <code>.rv.data.ProPresenterScreen.CombinedArrangement arrangement_combined = 4;</code>
     * @param \Rv\Data\ProPresenterScreen\CombinedArrangement $var
     * @return $this
     */
    public function setArrangementCombined($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\ProPresenterScreen\CombinedArrangement::class);
        $this->writeOneof(4, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.ProPresenterScreen.EdgeBlendArrangement arrangement_edge_blend = 5;</code>
     * @return \Rv\Data\ProPresenterScreen\EdgeBlendArrangement|null
     */
    public function getArrangementEdgeBlend()
    {
        return $this->readOneof(5);
    }

    public function hasArrangementEdgeBlend()
    {
        return $this->hasOneof(5);
    }

    /**
     * Generated from protobuf field <code>.rv.data.ProPresenterScreen.EdgeBlendArrangement arrangement_edge_blend = 5;</code>
     * @param \Rv\Data\ProPresenterScreen\EdgeBlendArrangement $var
     * @return $this
     */
    public function setArrangementEdgeBlend($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\ProPresenterScreen\EdgeBlendArrangement::class);
        $this->writeOneof(5, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getArrangement()
    {
        return $this->whichOneof("Arrangement");
    }

}

