<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/dataflow/v1beta3/environment.proto

namespace Google\Cloud\Dataflow\V1beta3;

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

/**
 * The packages that must be installed in order for a worker to run the
 * steps of the Cloud Dataflow job that will be assigned to its worker
 * pool.
 * This is the mechanism by which the Cloud Dataflow SDK causes code to
 * be loaded onto the workers. For example, the Cloud Dataflow Java SDK
 * might use this to install jars containing the user's code and all of the
 * various dependencies (libraries, data files, etc.) required in order
 * for that code to run.
 *
 * Generated from protobuf message <code>google.dataflow.v1beta3.Package</code>
 */
class Package extends \Google\Protobuf\Internal\Message
{
    /**
     * The name of the package.
     *
     * Generated from protobuf field <code>string name = 1;</code>
     */
    private $name = '';
    /**
     * The resource to read the package from. The supported resource type is:
     * Google Cloud Storage:
     *   storage.googleapis.com/{bucket}
     *   bucket.storage.googleapis.com/
     *
     * Generated from protobuf field <code>string location = 2;</code>
     */
    private $location = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           The name of the package.
     *     @type string $location
     *           The resource to read the package from. The supported resource type is:
     *           Google Cloud Storage:
     *             storage.googleapis.com/{bucket}
     *             bucket.storage.googleapis.com/
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Dataflow\V1Beta3\Environment::initOnce();
        parent::__construct($data);
    }

    /**
     * The name of the package.
     *
     * Generated from protobuf field <code>string name = 1;</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * The name of the package.
     *
     * Generated from protobuf field <code>string name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * The resource to read the package from. The supported resource type is:
     * Google Cloud Storage:
     *   storage.googleapis.com/{bucket}
     *   bucket.storage.googleapis.com/
     *
     * Generated from protobuf field <code>string location = 2;</code>
     * @return string
     */
    public function getLocation()
    {
        return $this->location;
    }

    /**
     * The resource to read the package from. The supported resource type is:
     * Google Cloud Storage:
     *   storage.googleapis.com/{bucket}
     *   bucket.storage.googleapis.com/
     *
     * Generated from protobuf field <code>string location = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setLocation($var)
    {
        GPBUtil::checkString($var, True);
        $this->location = $var;

        return $this;
    }

}

