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

namespace Rv\Data\Layer;

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

/**
 * Generated from protobuf message <code>rv.data.Layer.Blending</code>
 */
class Blending extends \Google\Protobuf\Internal\Message
{
    protected $BlendingType;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\Layer\Blending\Standard $standard
     *     @type \Rv\Data\Layer\Blending\Matte $matte
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Layers::initOnce();
        parent::__construct($data);
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

}

