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

namespace Rv\Data;

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

/**
 * Generated from protobuf message <code>rv.data.CollectionElementType</code>
 */
class CollectionElementType extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.UUID parameter_uuid = 1;</code>
     */
    protected $parameter_uuid = null;
    /**
     * Generated from protobuf field <code>string parameter_name = 2;</code>
     */
    protected $parameter_name = '';
    /**
     * Generated from protobuf field <code>.rv.data.CollectionElementType parent_collection = 3;</code>
     */
    protected $parent_collection = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\UUID $parameter_uuid
     *     @type string $parameter_name
     *     @type \Rv\Data\CollectionElementType $parent_collection
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\CollectionElementType::initOnce();
        parent::__construct($data);
    }

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

    public function hasParameterUuid()
    {
        return isset($this->parameter_uuid);
    }

    public function clearParameterUuid()
    {
        unset($this->parameter_uuid);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string parameter_name = 2;</code>
     * @return string
     */
    public function getParameterName()
    {
        return $this->parameter_name;
    }

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

        return $this;
    }

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

    public function hasParentCollection()
    {
        return isset($this->parent_collection);
    }

    public function clearParentCollection()
    {
        unset($this->parent_collection);
    }

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

        return $this;
    }

}

