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

namespace Google\Ads\GoogleAds\V23\Services;

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

/**
 * Generated image data and metadata.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.services.GeneratedImage</code>
 */
class GeneratedImage extends \Google\Protobuf\Internal\Message
{
    /**
     * A temporary URL for the generated image.
     *
     * Generated from protobuf field <code>string image_temporary_url = 1;</code>
     */
    protected $image_temporary_url = '';
    /**
     * The intended field type for this generated image.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.enums.AssetFieldTypeEnum.AssetFieldType asset_field_type = 2;</code>
     */
    protected $asset_field_type = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $image_temporary_url
     *           A temporary URL for the generated image.
     *     @type int $asset_field_type
     *           The intended field type for this generated image.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Services\AssetGenerationService::initOnce();
        parent::__construct($data);
    }

    /**
     * A temporary URL for the generated image.
     *
     * Generated from protobuf field <code>string image_temporary_url = 1;</code>
     * @return string
     */
    public function getImageTemporaryUrl()
    {
        return $this->image_temporary_url;
    }

    /**
     * A temporary URL for the generated image.
     *
     * Generated from protobuf field <code>string image_temporary_url = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setImageTemporaryUrl($var)
    {
        GPBUtil::checkString($var, True);
        $this->image_temporary_url = $var;

        return $this;
    }

    /**
     * The intended field type for this generated image.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.enums.AssetFieldTypeEnum.AssetFieldType asset_field_type = 2;</code>
     * @return int
     */
    public function getAssetFieldType()
    {
        return $this->asset_field_type;
    }

    /**
     * The intended field type for this generated image.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.enums.AssetFieldTypeEnum.AssetFieldType asset_field_type = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setAssetFieldType($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V23\Enums\AssetFieldTypeEnum\AssetFieldType::class);
        $this->asset_field_type = $var;

        return $this;
    }

}

