<?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.MessageType</code>
 */
class MessageType extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.CollectionElementType message_identificaton = 1;</code>
     */
    protected $message_identificaton = null;
    /**
     * Generated from protobuf field <code>repeated .rv.data.Message.TokenValue content = 3;</code>
     */
    private $content;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\CollectionElementType $message_identificaton
     *     @type array<\Rv\Data\Message\TokenValue>|\Google\Protobuf\Internal\RepeatedField $content
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Action::initOnce();
        parent::__construct($data);
    }

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

    public function hasMessageIdentificaton()
    {
        return isset($this->message_identificaton);
    }

    public function clearMessageIdentificaton()
    {
        unset($this->message_identificaton);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .rv.data.Message.TokenValue content = 3;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getContent()
    {
        return $this->content;
    }

    /**
     * Generated from protobuf field <code>repeated .rv.data.Message.TokenValue content = 3;</code>
     * @param array<\Rv\Data\Message\TokenValue>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setContent($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\Message\TokenValue::class);
        $this->content = $arr;

        return $this;
    }

}

