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

namespace Google\Cloud\Orchestration\Airflow\Service\V1;

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

/**
 * Request to create a snapshot of a Cloud Composer environment.
 *
 * Generated from protobuf message <code>google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest</code>
 */
class SaveSnapshotRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * The resource name of the source environment in the form:
     * "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
     *
     * Generated from protobuf field <code>string environment = 1;</code>
     */
    private $environment = '';
    /**
     * Location in a Cloud Storage where the snapshot is going to be stored, e.g.:
     * "gs://my-bucket/snapshots".
     *
     * Generated from protobuf field <code>string snapshot_location = 2;</code>
     */
    private $snapshot_location = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $environment
     *           The resource name of the source environment in the form:
     *           "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
     *     @type string $snapshot_location
     *           Location in a Cloud Storage where the snapshot is going to be stored, e.g.:
     *           "gs://my-bucket/snapshots".
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Orchestration\Airflow\Service\V1\Environments::initOnce();
        parent::__construct($data);
    }

    /**
     * The resource name of the source environment in the form:
     * "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
     *
     * Generated from protobuf field <code>string environment = 1;</code>
     * @return string
     */
    public function getEnvironment()
    {
        return $this->environment;
    }

    /**
     * The resource name of the source environment in the form:
     * "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
     *
     * Generated from protobuf field <code>string environment = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setEnvironment($var)
    {
        GPBUtil::checkString($var, True);
        $this->environment = $var;

        return $this;
    }

    /**
     * Location in a Cloud Storage where the snapshot is going to be stored, e.g.:
     * "gs://my-bucket/snapshots".
     *
     * Generated from protobuf field <code>string snapshot_location = 2;</code>
     * @return string
     */
    public function getSnapshotLocation()
    {
        return $this->snapshot_location;
    }

    /**
     * Location in a Cloud Storage where the snapshot is going to be stored, e.g.:
     * "gs://my-bucket/snapshots".
     *
     * Generated from protobuf field <code>string snapshot_location = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setSnapshotLocation($var)
    {
        GPBUtil::checkString($var, True);
        $this->snapshot_location = $var;

        return $this;
    }

}

