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

namespace Rv\Analytics\Startup;

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

/**
 * Generated from protobuf message <code>rv.analytics.Startup.ScreenConfiguration</code>
 */
class ScreenConfiguration extends \Google\Protobuf\Internal\Message
{
    protected $Component;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Analytics\Startup\ScreenConfiguration\Summary $summary
     *     @type \Rv\Analytics\Startup\ScreenConfiguration\Output $output
     *     @type \Rv\Analytics\Startup\ScreenConfiguration\Single $single
     *     @type \Rv\Analytics\Startup\ScreenConfiguration\Mirrored $mirrored
     *     @type \Rv\Analytics\Startup\ScreenConfiguration\EdgeBlend $edge_blend
     *     @type \Rv\Analytics\Startup\ScreenConfiguration\Grouped $grouped
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\AnalyticsStartup::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Startup.ScreenConfiguration.Summary summary = 1;</code>
     * @return \Rv\Analytics\Startup\ScreenConfiguration\Summary|null
     */
    public function getSummary()
    {
        return $this->readOneof(1);
    }

    public function hasSummary()
    {
        return $this->hasOneof(1);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Startup.ScreenConfiguration.Output output = 2;</code>
     * @return \Rv\Analytics\Startup\ScreenConfiguration\Output|null
     */
    public function getOutput()
    {
        return $this->readOneof(2);
    }

    public function hasOutput()
    {
        return $this->hasOneof(2);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Startup.ScreenConfiguration.Single single = 3;</code>
     * @return \Rv\Analytics\Startup\ScreenConfiguration\Single|null
     */
    public function getSingle()
    {
        return $this->readOneof(3);
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Startup.ScreenConfiguration.Mirrored mirrored = 4;</code>
     * @return \Rv\Analytics\Startup\ScreenConfiguration\Mirrored|null
     */
    public function getMirrored()
    {
        return $this->readOneof(4);
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Startup.ScreenConfiguration.EdgeBlend edge_blend = 5;</code>
     * @return \Rv\Analytics\Startup\ScreenConfiguration\EdgeBlend|null
     */
    public function getEdgeBlend()
    {
        return $this->readOneof(5);
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Startup.ScreenConfiguration.Grouped grouped = 6;</code>
     * @return \Rv\Analytics\Startup\ScreenConfiguration\Grouped|null
     */
    public function getGrouped()
    {
        return $this->readOneof(6);
    }

    public function hasGrouped()
    {
        return $this->hasOneof(6);
    }

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

        return $this;
    }

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

}

