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

namespace Google\Ads\GoogleAds\V24\Services;

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

/**
 * Input for guiding image asset generation with a final url.
 *
 * Generated from protobuf message <code>google.ads.googleads.v24.services.FinalUrlImageGenerationInput</code>
 */
class FinalUrlImageGenerationInput extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. A final url to guide the image generation process. Required.
     *
     * Generated from protobuf field <code>string final_url = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $final_url = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type string $final_url
     *           Required. A final url to guide the image generation process. Required.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V24\Services\AssetGenerationService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. A final url to guide the image generation process. Required.
     *
     * Generated from protobuf field <code>string final_url = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return string
     */
    public function getFinalUrl()
    {
        return $this->final_url;
    }

    /**
     * Required. A final url to guide the image generation process. Required.
     *
     * Generated from protobuf field <code>string final_url = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param  string $var
     * @return $this
     */
    public function setFinalUrl($var)
    {
        GPBUtil::checkString($var, true);
        $this->final_url = $var;

        return $this;
    }

}

