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

namespace PhpWA\Protocol\Proto;

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

/**
 * Generated from protobuf message <code>proto.AIRichResponseContentItemsMetadata</code>
 */
class AIRichResponseContentItemsMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>repeated .proto.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata itemsMetadata = 1;</code>
     */
    private $itemsMetadata;
    /**
     * Generated from protobuf field <code>optional .proto.AIRichResponseContentItemsMetadata.ContentType contentType = 2;</code>
     */
    protected $contentType = null;

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

    /**
     * Generated from protobuf field <code>repeated .proto.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata itemsMetadata = 1;</code>
     * @return RepeatedField<\PhpWA\Protocol\Proto\AIRichResponseContentItemsMetadata\AIRichResponseContentItemMetadata>
     */
    public function getItemsMetadata()
    {
        return $this->itemsMetadata;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata itemsMetadata = 1;</code>
     * @param \PhpWA\Protocol\Proto\AIRichResponseContentItemsMetadata\AIRichResponseContentItemMetadata[] $var
     * @return $this
     */
    public function setItemsMetadata($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \PhpWA\Protocol\Proto\AIRichResponseContentItemsMetadata\AIRichResponseContentItemMetadata::class);
        $this->itemsMetadata = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.AIRichResponseContentItemsMetadata.ContentType contentType = 2;</code>
     * @return int
     */
    public function getContentType()
    {
        return isset($this->contentType) ? $this->contentType : 0;
    }

    public function hasContentType()
    {
        return isset($this->contentType);
    }

    public function clearContentType()
    {
        unset($this->contentType);
    }

    /**
     * Generated from protobuf field <code>optional .proto.AIRichResponseContentItemsMetadata.ContentType contentType = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setContentType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\AIRichResponseContentItemsMetadata\ContentType::class);
        $this->contentType = $var;

        return $this;
    }

}

