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

namespace Google\Cloud\Deploy\V1\SkaffoldModules;

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

/**
 * Cloud Storage bucket containing Skaffold Config modules.
 *
 * Generated from protobuf message <code>google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource</code>
 */
class SkaffoldGCSSource extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Cloud Storage source paths to copy recursively. For example,
     * providing "gs://my-bucket/dir/configs/&#42;" will result in Skaffold copying
     * all files within the "dir/configs" directory in the bucket "my-bucket".
     *
     * Generated from protobuf field <code>string source = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $source = '';
    /**
     * Optional. Relative path from the source to the Skaffold file.
     *
     * Generated from protobuf field <code>string path = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $path = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $source
     *           Required. Cloud Storage source paths to copy recursively. For example,
     *           providing "gs://my-bucket/dir/configs/&#42;" will result in Skaffold copying
     *           all files within the "dir/configs" directory in the bucket "my-bucket".
     *     @type string $path
     *           Optional. Relative path from the source to the Skaffold file.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Cloud Storage source paths to copy recursively. For example,
     * providing "gs://my-bucket/dir/configs/&#42;" will result in Skaffold copying
     * all files within the "dir/configs" directory in the bucket "my-bucket".
     *
     * Generated from protobuf field <code>string source = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getSource()
    {
        return $this->source;
    }

    /**
     * Required. Cloud Storage source paths to copy recursively. For example,
     * providing "gs://my-bucket/dir/configs/&#42;" will result in Skaffold copying
     * all files within the "dir/configs" directory in the bucket "my-bucket".
     *
     * Generated from protobuf field <code>string source = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setSource($var)
    {
        GPBUtil::checkString($var, True);
        $this->source = $var;

        return $this;
    }

    /**
     * Optional. Relative path from the source to the Skaffold file.
     *
     * Generated from protobuf field <code>string path = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getPath()
    {
        return $this->path;
    }

    /**
     * Optional. Relative path from the source to the Skaffold file.
     *
     * Generated from protobuf field <code>string path = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setPath($var)
    {
        GPBUtil::checkString($var, True);
        $this->path = $var;

        return $this;
    }

}


