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

namespace Rv\Analytics\Startup\ScreenConfiguration;

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

/**
 * Generated from protobuf message <code>rv.analytics.Startup.ScreenConfiguration.Output</code>
 */
class Output extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.analytics.Startup.ScreenConfiguration.Output.ProScreenType proscreen_type = 1;</code>
     */
    protected $proscreen_type = 0;
    /**
     * Generated from protobuf field <code>.rv.analytics.Startup.ScreenConfiguration.Output.OutputType output_type = 2;</code>
     */
    protected $output_type = 0;
    /**
     * Generated from protobuf field <code>bool color_correction_enabled = 3;</code>
     */
    protected $color_correction_enabled = false;
    /**
     * Generated from protobuf field <code>bool corner_pin_enabled = 4;</code>
     */
    protected $corner_pin_enabled = false;
    /**
     * Generated from protobuf field <code>.rv.analytics.Startup.ScreenConfiguration.Output.Alignment alignment = 6;</code>
     */
    protected $alignment = 0;
    /**
     * Generated from protobuf field <code>int32 width = 7;</code>
     */
    protected $width = 0;
    /**
     * Generated from protobuf field <code>int32 height = 8;</code>
     */
    protected $height = 0;
    /**
     * Generated from protobuf field <code>.rv.analytics.Startup.ScreenConfiguration.Screen screen = 9;</code>
     */
    protected $screen = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $proscreen_type
     *     @type int $output_type
     *     @type bool $color_correction_enabled
     *     @type bool $corner_pin_enabled
     *     @type int $alignment
     *     @type int $width
     *     @type int $height
     *     @type \Rv\Analytics\Startup\ScreenConfiguration\Screen $screen
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\AnalyticsStartup::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Startup.ScreenConfiguration.Output.ProScreenType proscreen_type = 1;</code>
     * @return int
     */
    public function getProscreenType()
    {
        return $this->proscreen_type;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Startup.ScreenConfiguration.Output.ProScreenType proscreen_type = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setProscreenType($var)
    {
        GPBUtil::checkEnum($var, \Rv\Analytics\Startup\ScreenConfiguration\Output\ProScreenType::class);
        $this->proscreen_type = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Startup.ScreenConfiguration.Output.OutputType output_type = 2;</code>
     * @return int
     */
    public function getOutputType()
    {
        return $this->output_type;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Startup.ScreenConfiguration.Output.OutputType output_type = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setOutputType($var)
    {
        GPBUtil::checkEnum($var, \Rv\Analytics\Startup\ScreenConfiguration\Output\OutputType::class);
        $this->output_type = $var;

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool corner_pin_enabled = 4;</code>
     * @return bool
     */
    public function getCornerPinEnabled()
    {
        return $this->corner_pin_enabled;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Startup.ScreenConfiguration.Output.Alignment alignment = 6;</code>
     * @return int
     */
    public function getAlignment()
    {
        return $this->alignment;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Startup.ScreenConfiguration.Output.Alignment alignment = 6;</code>
     * @param int $var
     * @return $this
     */
    public function setAlignment($var)
    {
        GPBUtil::checkEnum($var, \Rv\Analytics\Startup\ScreenConfiguration\Output\Alignment::class);
        $this->alignment = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>int32 width = 7;</code>
     * @return int
     */
    public function getWidth()
    {
        return $this->width;
    }

    /**
     * Generated from protobuf field <code>int32 width = 7;</code>
     * @param int $var
     * @return $this
     */
    public function setWidth($var)
    {
        GPBUtil::checkInt32($var);
        $this->width = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>int32 height = 8;</code>
     * @return int
     */
    public function getHeight()
    {
        return $this->height;
    }

    /**
     * Generated from protobuf field <code>int32 height = 8;</code>
     * @param int $var
     * @return $this
     */
    public function setHeight($var)
    {
        GPBUtil::checkInt32($var);
        $this->height = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Startup.ScreenConfiguration.Screen screen = 9;</code>
     * @return \Rv\Analytics\Startup\ScreenConfiguration\Screen|null
     */
    public function getScreen()
    {
        return $this->screen;
    }

    public function hasScreen()
    {
        return isset($this->screen);
    }

    public function clearScreen()
    {
        unset($this->screen);
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Startup.ScreenConfiguration.Screen screen = 9;</code>
     * @param \Rv\Analytics\Startup\ScreenConfiguration\Screen $var
     * @return $this
     */
    public function setScreen($var)
    {
        GPBUtil::checkMessage($var, \Rv\Analytics\Startup\ScreenConfiguration\Screen::class);
        $this->screen = $var;

        return $this;
    }

}

