<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/functions/v1/functions.proto

namespace Google\Cloud\Functions\V1;

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

/**
 * Response of `GenerateDownloadUrl` method.
 *
 * Generated from protobuf message <code>google.cloud.functions.v1.GenerateDownloadUrlResponse</code>
 */
class GenerateDownloadUrlResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The generated Google Cloud Storage signed URL that should be used for
     * function source code download.
     *
     * Generated from protobuf field <code>string download_url = 1;</code>
     */
    private $download_url = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $download_url
     *           The generated Google Cloud Storage signed URL that should be used for
     *           function source code download.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Functions\V1\Functions::initOnce();
        parent::__construct($data);
    }

    /**
     * The generated Google Cloud Storage signed URL that should be used for
     * function source code download.
     *
     * Generated from protobuf field <code>string download_url = 1;</code>
     * @return string
     */
    public function getDownloadUrl()
    {
        return $this->download_url;
    }

    /**
     * The generated Google Cloud Storage signed URL that should be used for
     * function source code download.
     *
     * Generated from protobuf field <code>string download_url = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setDownloadUrl($var)
    {
        GPBUtil::checkString($var, True);
        $this->download_url = $var;

        return $this;
    }

}

