<?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;

/**
 * Input for generating new images by recontextualizing existing product images.
 *
 * Generated from protobuf message <code>google.ads.googleads.v22.services.ProductRecontextGenerationImageInput</code>
 */
class ProductRecontextGenerationImageInput extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. A freeform description of the assets to be generated.
     * Maximum character limit is 1500.
     *
     * Generated from protobuf field <code>string prompt = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $prompt = '';
    /**
     * Required. Product images to use for generating new images.
     * 1-3 images must be provided.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v22.services.SourceImage source_images = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $source_images;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $prompt
     *           Optional. A freeform description of the assets to be generated.
     *           Maximum character limit is 1500.
     *     @type array<\Google\Ads\GoogleAds\V22\Services\SourceImage>|\Google\Protobuf\Internal\RepeatedField $source_images
     *           Required. Product images to use for generating new images.
     *           1-3 images must be provided.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V22\Services\AssetGenerationService::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. A freeform description of the assets to be generated.
     * Maximum character limit is 1500.
     *
     * Generated from protobuf field <code>string prompt = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getPrompt()
    {
        return $this->prompt;
    }

    /**
     * Optional. A freeform description of the assets to be generated.
     * Maximum character limit is 1500.
     *
     * Generated from protobuf field <code>string prompt = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setPrompt($var)
    {
        GPBUtil::checkString($var, True);
        $this->prompt = $var;

        return $this;
    }

    /**
     * Required. Product images to use for generating new images.
     * 1-3 images must be provided.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v22.services.SourceImage source_images = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getSourceImages()
    {
        return $this->source_images;
    }

    /**
     * Required. Product images to use for generating new images.
     * 1-3 images must be provided.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v22.services.SourceImage source_images = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param array<\Google\Ads\GoogleAds\V22\Services\SourceImage>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setSourceImages($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V22\Services\SourceImage::class);
        $this->source_images = $arr;

        return $this;
    }

}

