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

namespace Rv\Data\MacrosDocument\MacroCollection;

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

/**
 * Generated from protobuf message <code>rv.data.MacrosDocument.MacroCollection.Item</code>
 */
class Item extends \Google\Protobuf\Internal\Message
{
    protected $ItemType;

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

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

    public function hasMacroId()
    {
        return $this->hasOneof(1);
    }

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

        return $this;
    }

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

}

