<?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.TransitionType</code>
 */
class TransitionType extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string transition_name = 1;</code>
     */
    protected $transition_name = '';
    /**
     * Generated from protobuf field <code>.rv.data.Transition transition = 2;</code>
     */
    protected $transition = null;

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

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

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

        return $this;
    }

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

    public function hasTransition()
    {
        return isset($this->transition);
    }

    public function clearTransition()
    {
        unset($this->transition);
    }

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

        return $this;
    }

}

