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

namespace Rv\Data\Slide\Element\DataLink;

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

/**
 * Generated from protobuf message <code>rv.data.Slide.Element.DataLink.StageMessage</code>
 */
class StageMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>bool should_flash = 1;</code>
     */
    protected $should_flash = false;
    /**
     * Generated from protobuf field <code>.rv.data.Color flash_color = 2;</code>
     */
    protected $flash_color = null;

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

    /**
     * Generated from protobuf field <code>bool should_flash = 1;</code>
     * @return bool
     */
    public function getShouldFlash()
    {
        return $this->should_flash;
    }

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

        return $this;
    }

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

    public function hasFlashColor()
    {
        return isset($this->flash_color);
    }

    public function clearFlashColor()
    {
        unset($this->flash_color);
    }

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

        return $this;
    }

}

