<?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.BlendModeType</code>
 */
class BlendModeType extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.Layer.BlendMode blend_mode = 1;</code>
     */
    protected $blend_mode = 0;
    /**
     * Generated from protobuf field <code>.rv.data.Layer.Blending blend = 2;</code>
     */
    protected $blend = null;

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

    /**
     * Generated from protobuf field <code>.rv.data.Layer.BlendMode blend_mode = 1;</code>
     * @return int
     */
    public function getBlendMode()
    {
        return $this->blend_mode;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Layer.BlendMode blend_mode = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setBlendMode($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\Layer\BlendMode::class);
        $this->blend_mode = $var;

        return $this;
    }

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

    public function hasBlend()
    {
        return isset($this->blend);
    }

    public function clearBlend()
    {
        unset($this->blend);
    }

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

        return $this;
    }

}

