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

namespace Google\Ads\GoogleAds\V24\Actions;

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

/**
 * Message to hold a UI preview result.
 *
 * Generated from protobuf message <code>google.ads.googleads.v24.actions.UiPreviewResult</code>
 */
class UiPreviewResult extends \Google\Protobuf\Internal\Message
{
    /**
     * The shareable preview URL.
     *
     * Generated from protobuf field <code>string shareable_preview_url = 1;</code>
     */
    protected $shareable_preview_url = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type string $shareable_preview_url
     *           The shareable preview URL.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V24\Actions\GenerateShareablePreviews::initOnce();
        parent::__construct($data);
    }

    /**
     * The shareable preview URL.
     *
     * Generated from protobuf field <code>string shareable_preview_url = 1;</code>
     *
     * @return string
     */
    public function getShareablePreviewUrl()
    {
        return $this->shareable_preview_url;
    }

    /**
     * The shareable preview URL.
     *
     * Generated from protobuf field <code>string shareable_preview_url = 1;</code>
     *
     * @param  string $var
     * @return $this
     */
    public function setShareablePreviewUrl($var)
    {
        GPBUtil::checkString($var, true);
        $this->shareable_preview_url = $var;

        return $this;
    }

}

