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

namespace Rv\Data\Graphics;

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

/**
 * Generated from protobuf message <code>rv.data.Graphics.BackgroundEffect</code>
 */
class BackgroundEffect extends \Google\Protobuf\Internal\Message
{
    protected $EffectType;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\Graphics\BackgroundEffect\BackgroundEffectBlur $backgroundBlur
     *     @type \Rv\Data\Graphics\BackgroundEffect\BackgroundEffectInvert $backgroundInvert
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\GraphicsData::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Graphics.BackgroundEffect.BackgroundEffectBlur backgroundBlur = 2;</code>
     * @return \Rv\Data\Graphics\BackgroundEffect\BackgroundEffectBlur|null
     */
    public function getBackgroundBlur()
    {
        return $this->readOneof(2);
    }

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

    /**
     * Generated from protobuf field <code>.rv.data.Graphics.BackgroundEffect.BackgroundEffectBlur backgroundBlur = 2;</code>
     * @param \Rv\Data\Graphics\BackgroundEffect\BackgroundEffectBlur $var
     * @return $this
     */
    public function setBackgroundBlur($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\Graphics\BackgroundEffect\BackgroundEffectBlur::class);
        $this->writeOneof(2, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Graphics.BackgroundEffect.BackgroundEffectInvert backgroundInvert = 3;</code>
     * @return \Rv\Data\Graphics\BackgroundEffect\BackgroundEffectInvert|null
     */
    public function getBackgroundInvert()
    {
        return $this->readOneof(3);
    }

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

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

        return $this;
    }

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

}

