<?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.AIRichResponseGridImageMetadata</code>
 */
class AIRichResponseGridImageMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.AIRichResponseImageURL gridImageUrl = 1;</code>
     */
    protected $gridImageUrl = null;
    /**
     * Generated from protobuf field <code>repeated .proto.AIRichResponseImageURL imageUrls = 2;</code>
     */
    private $imageUrls;

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

    /**
     * Generated from protobuf field <code>optional .proto.AIRichResponseImageURL gridImageUrl = 1;</code>
     * @return \PhpWA\Protocol\Proto\AIRichResponseImageURL|null
     */
    public function getGridImageUrl()
    {
        return $this->gridImageUrl;
    }

    public function hasGridImageUrl()
    {
        return isset($this->gridImageUrl);
    }

    public function clearGridImageUrl()
    {
        unset($this->gridImageUrl);
    }

    /**
     * Generated from protobuf field <code>optional .proto.AIRichResponseImageURL gridImageUrl = 1;</code>
     * @param \PhpWA\Protocol\Proto\AIRichResponseImageURL $var
     * @return $this
     */
    public function setGridImageUrl($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\AIRichResponseImageURL::class);
        $this->gridImageUrl = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.AIRichResponseImageURL imageUrls = 2;</code>
     * @return RepeatedField<\PhpWA\Protocol\Proto\AIRichResponseImageURL>
     */
    public function getImageUrls()
    {
        return $this->imageUrls;
    }

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

        return $this;
    }

}

