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

namespace Google\Ads\GoogleAds\V25\Services;

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

/**
 * Input for guiding image asset generation with a freeform prompt.
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.services.FreeformImageGenerationInput</code>
 */
class FreeformImageGenerationInput extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. A freeform text description to guide the image generation
     * process. The maximum length is 1500 characters. Required.
     *
     * Generated from protobuf field <code>string freeform_prompt = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $freeform_prompt = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $freeform_prompt
     *           Required. A freeform text description to guide the image generation
     *           process. The maximum length is 1500 characters. Required.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Services\AssetGenerationService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. A freeform text description to guide the image generation
     * process. The maximum length is 1500 characters. Required.
     *
     * Generated from protobuf field <code>string freeform_prompt = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getFreeformPrompt()
    {
        return $this->freeform_prompt;
    }

    /**
     * Required. A freeform text description to guide the image generation
     * process. The maximum length is 1500 characters. Required.
     *
     * Generated from protobuf field <code>string freeform_prompt = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setFreeformPrompt($var)
    {
        GPBUtil::checkString($var, True);
        $this->freeform_prompt = $var;

        return $this;
    }

}

