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

namespace Rv\Analytics\Trigger;

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

/**
 * Generated from protobuf message <code>rv.analytics.trigger.ActionProp</code>
 */
class ActionProp extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string transition = 1;</code>
     */
    protected $transition = '';
    /**
     * Generated from protobuf field <code>.rv.analytics.trigger.ActionProp.Type type = 2;</code>
     */
    protected $type = 0;
    /**
     * Generated from protobuf field <code>.rv.analytics.trigger.ActionProp.AutoClear auto_clear = 3;</code>
     */
    protected $auto_clear = 0;

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

    /**
     * Generated from protobuf field <code>string transition = 1;</code>
     * @return string
     */
    public function getTransition()
    {
        return $this->transition;
    }

    /**
     * Generated from protobuf field <code>string transition = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setTransition($var)
    {
        GPBUtil::checkString($var, True);
        $this->transition = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.trigger.ActionProp.Type type = 2;</code>
     * @return int
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.trigger.ActionProp.Type type = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setType($var)
    {
        GPBUtil::checkEnum($var, \Rv\Analytics\Trigger\ActionProp\Type::class);
        $this->type = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.trigger.ActionProp.AutoClear auto_clear = 3;</code>
     * @return int
     */
    public function getAutoClear()
    {
        return $this->auto_clear;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.trigger.ActionProp.AutoClear auto_clear = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setAutoClear($var)
    {
        GPBUtil::checkEnum($var, \Rv\Analytics\Trigger\ActionProp\AutoClear::class);
        $this->auto_clear = $var;

        return $this;
    }

}

