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

namespace Google\Cloud\AppEngine\V1;

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

/**
 * The zip file information for a zip deployment.
 *
 * Generated from protobuf message <code>google.appengine.v1.ZipInfo</code>
 */
class ZipInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * URL of the zip file to deploy from. Must be a URL to a resource in
     * Google Cloud Storage in the form
     * 'http(s)://storage.googleapis.com/\<bucket\>/\<object\>'.
     *
     * Generated from protobuf field <code>string source_url = 3;</code>
     */
    private $source_url = '';
    /**
     * An estimate of the number of files in a zip for a zip deployment.
     * If set, must be greater than or equal to the actual number of files.
     * Used for optimizing performance; if not provided, deployment may be slow.
     *
     * Generated from protobuf field <code>int32 files_count = 4;</code>
     */
    private $files_count = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $source_url
     *           URL of the zip file to deploy from. Must be a URL to a resource in
     *           Google Cloud Storage in the form
     *           'http(s)://storage.googleapis.com/\<bucket\>/\<object\>'.
     *     @type int $files_count
     *           An estimate of the number of files in a zip for a zip deployment.
     *           If set, must be greater than or equal to the actual number of files.
     *           Used for optimizing performance; if not provided, deployment may be slow.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Appengine\V1\Deploy::initOnce();
        parent::__construct($data);
    }

    /**
     * URL of the zip file to deploy from. Must be a URL to a resource in
     * Google Cloud Storage in the form
     * 'http(s)://storage.googleapis.com/\<bucket\>/\<object\>'.
     *
     * Generated from protobuf field <code>string source_url = 3;</code>
     * @return string
     */
    public function getSourceUrl()
    {
        return $this->source_url;
    }

    /**
     * URL of the zip file to deploy from. Must be a URL to a resource in
     * Google Cloud Storage in the form
     * 'http(s)://storage.googleapis.com/\<bucket\>/\<object\>'.
     *
     * Generated from protobuf field <code>string source_url = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setSourceUrl($var)
    {
        GPBUtil::checkString($var, True);
        $this->source_url = $var;

        return $this;
    }

    /**
     * An estimate of the number of files in a zip for a zip deployment.
     * If set, must be greater than or equal to the actual number of files.
     * Used for optimizing performance; if not provided, deployment may be slow.
     *
     * Generated from protobuf field <code>int32 files_count = 4;</code>
     * @return int
     */
    public function getFilesCount()
    {
        return $this->files_count;
    }

    /**
     * An estimate of the number of files in a zip for a zip deployment.
     * If set, must be greater than or equal to the actual number of files.
     * Used for optimizing performance; if not provided, deployment may be slow.
     *
     * Generated from protobuf field <code>int32 files_count = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setFilesCount($var)
    {
        GPBUtil::checkInt32($var);
        $this->files_count = $var;

        return $this;
    }

}

