<?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.PropType</code>
 */
class PropType extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.CollectionElementType identification = 3;</code>
     */
    protected $identification = null;
    protected $TriggerType;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\CollectionElementType $identification
     *     @type \Rv\Data\Action\PropType\PropTrigger $trigger
     *     @type \Rv\Data\Action\PropType\PropClear $clear
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Action::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.CollectionElementType identification = 3;</code>
     * @return \Rv\Data\CollectionElementType|null
     */
    public function getIdentification()
    {
        return $this->identification;
    }

    public function hasIdentification()
    {
        return isset($this->identification);
    }

    public function clearIdentification()
    {
        unset($this->identification);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Action.PropType.PropTrigger trigger = 4;</code>
     * @return \Rv\Data\Action\PropType\PropTrigger|null
     */
    public function getTrigger()
    {
        return $this->readOneof(4);
    }

    public function hasTrigger()
    {
        return $this->hasOneof(4);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Action.PropType.PropTrigger trigger = 4;</code>
     * @param \Rv\Data\Action\PropType\PropTrigger $var
     * @return $this
     */
    public function setTrigger($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\Action\PropType\PropTrigger::class);
        $this->writeOneof(4, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Action.PropType.PropClear clear = 5;</code>
     * @return \Rv\Data\Action\PropType\PropClear|null
     */
    public function getClear()
    {
        return $this->readOneof(5);
    }

    public function hasClear()
    {
        return $this->hasOneof(5);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Action.PropType.PropClear clear = 5;</code>
     * @param \Rv\Data\Action\PropType\PropClear $var
     * @return $this
     */
    public function setClear($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\Action\PropType\PropClear::class);
        $this->writeOneof(5, $var);

        return $this;
    }

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

}

