<?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.ClearType</code>
 */
class ClearType extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.Action.ClearType.ClearTargetLayer target_layer = 2;</code>
     */
    protected $target_layer = 0;
    /**
     * Generated from protobuf field <code>.rv.data.Action.ContentDestination content_destination = 4;</code>
     */
    protected $content_destination = 0;

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

    /**
     * Generated from protobuf field <code>.rv.data.Action.ClearType.ClearTargetLayer target_layer = 2;</code>
     * @return int
     */
    public function getTargetLayer()
    {
        return $this->target_layer;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Action.ClearType.ClearTargetLayer target_layer = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setTargetLayer($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\Action\ClearType\ClearTargetLayer::class);
        $this->target_layer = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Action.ContentDestination content_destination = 4;</code>
     * @return int
     */
    public function getContentDestination()
    {
        return $this->content_destination;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Action.ContentDestination content_destination = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setContentDestination($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\Action\ContentDestination::class);
        $this->content_destination = $var;

        return $this;
    }

}

