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

namespace PhpWA\Protocol\Proto\AIRichResponseContentItemsMetadata;

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

/**
 * Generated from protobuf message <code>proto.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata</code>
 */
class AIRichResponseContentItemMetadata extends \Google\Protobuf\Internal\Message
{
    protected $aIRichResponseContentItem;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \PhpWA\Protocol\Proto\AIRichResponseContentItemsMetadata\AIRichResponseReelItem $reelItem
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.proto.AIRichResponseContentItemsMetadata.AIRichResponseReelItem reelItem = 1;</code>
     * @return \PhpWA\Protocol\Proto\AIRichResponseContentItemsMetadata\AIRichResponseReelItem|null
     */
    public function getReelItem()
    {
        return $this->readOneof(1);
    }

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

    /**
     * Generated from protobuf field <code>.proto.AIRichResponseContentItemsMetadata.AIRichResponseReelItem reelItem = 1;</code>
     * @param \PhpWA\Protocol\Proto\AIRichResponseContentItemsMetadata\AIRichResponseReelItem $var
     * @return $this
     */
    public function setReelItem($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\AIRichResponseContentItemsMetadata\AIRichResponseReelItem::class);
        $this->writeOneof(1, $var);

        return $this;
    }

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

}

