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

namespace Rv\Data\Action;

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

/**
 * Generated from protobuf message <code>rv.data.Action.BackgroundType</code>
 */
class BackgroundType extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.Background element = 1;</code>
     */
    protected $element = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\Background $element
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Action::initOnce();
        parent::__construct($data);
    }

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

    public function hasElement()
    {
        return isset($this->element);
    }

    public function clearElement()
    {
        unset($this->element);
    }

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

        return $this;
    }

}

