<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v22/services/asset_generation_service.proto

namespace Google\Ads\GoogleAds\V22\Services;

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

/**
 * Response message for
 * [AssetGenerationService.GenerateImages][google.ads.googleads.v22.services.AssetGenerationService.GenerateImages]
 *
 * Generated from protobuf message <code>google.ads.googleads.v22.services.GenerateImagesResponse</code>
 */
class GenerateImagesResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Successfully generated images.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v22.services.GeneratedImage generated_images = 1;</code>
     */
    private $generated_images;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Ads\GoogleAds\V22\Services\GeneratedImage>|\Google\Protobuf\Internal\RepeatedField $generated_images
     *           Successfully generated images.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V22\Services\AssetGenerationService::initOnce();
        parent::__construct($data);
    }

    /**
     * Successfully generated images.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v22.services.GeneratedImage generated_images = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getGeneratedImages()
    {
        return $this->generated_images;
    }

    /**
     * Successfully generated images.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v22.services.GeneratedImage generated_images = 1;</code>
     * @param array<\Google\Ads\GoogleAds\V22\Services\GeneratedImage>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setGeneratedImages($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V22\Services\GeneratedImage::class);
        $this->generated_images = $arr;

        return $this;
    }

}

