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

namespace Google\Cloud\DiscoveryEngine\V1;

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

/**
 * AlloyDB source import data from.
 *
 * Generated from protobuf message <code>google.cloud.discoveryengine.v1.AlloyDbSource</code>
 */
class AlloyDbSource extends \Google\Protobuf\Internal\Message
{
    /**
     * The project ID that contains the AlloyDB source.
     * Has a length limit of 128 characters. If not specified, inherits the
     * project ID from the parent request.
     *
     * Generated from protobuf field <code>string project_id = 1;</code>
     */
    protected $project_id = '';
    /**
     * Required. The AlloyDB location to copy the data from with a length limit of
     * 256 characters.
     *
     * Generated from protobuf field <code>string location_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $location_id = '';
    /**
     * Required. The AlloyDB cluster to copy the data from with a length limit of
     * 256 characters.
     *
     * Generated from protobuf field <code>string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $cluster_id = '';
    /**
     * Required. The AlloyDB database to copy the data from with a length limit of
     * 256 characters.
     *
     * Generated from protobuf field <code>string database_id = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $database_id = '';
    /**
     * Required. The AlloyDB table to copy the data from with a length limit of
     * 256 characters.
     *
     * Generated from protobuf field <code>string table_id = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $table_id = '';
    /**
     * Intermediate Cloud Storage directory used for the import with a length
     * limit of 2,000 characters. Can be specified if one wants to have the
     * AlloyDB export to a specific Cloud Storage directory.
     * Ensure that the AlloyDB service account has the necessary Cloud
     * Storage Admin permissions to access the specified Cloud Storage directory.
     *
     * Generated from protobuf field <code>string gcs_staging_dir = 6;</code>
     */
    protected $gcs_staging_dir = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $project_id
     *           The project ID that contains the AlloyDB source.
     *           Has a length limit of 128 characters. If not specified, inherits the
     *           project ID from the parent request.
     *     @type string $location_id
     *           Required. The AlloyDB location to copy the data from with a length limit of
     *           256 characters.
     *     @type string $cluster_id
     *           Required. The AlloyDB cluster to copy the data from with a length limit of
     *           256 characters.
     *     @type string $database_id
     *           Required. The AlloyDB database to copy the data from with a length limit of
     *           256 characters.
     *     @type string $table_id
     *           Required. The AlloyDB table to copy the data from with a length limit of
     *           256 characters.
     *     @type string $gcs_staging_dir
     *           Intermediate Cloud Storage directory used for the import with a length
     *           limit of 2,000 characters. Can be specified if one wants to have the
     *           AlloyDB export to a specific Cloud Storage directory.
     *           Ensure that the AlloyDB service account has the necessary Cloud
     *           Storage Admin permissions to access the specified Cloud Storage directory.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Discoveryengine\V1\ImportConfig::initOnce();
        parent::__construct($data);
    }

    /**
     * The project ID that contains the AlloyDB source.
     * Has a length limit of 128 characters. If not specified, inherits the
     * project ID from the parent request.
     *
     * Generated from protobuf field <code>string project_id = 1;</code>
     * @return string
     */
    public function getProjectId()
    {
        return $this->project_id;
    }

    /**
     * The project ID that contains the AlloyDB source.
     * Has a length limit of 128 characters. If not specified, inherits the
     * project ID from the parent request.
     *
     * Generated from protobuf field <code>string project_id = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setProjectId($var)
    {
        GPBUtil::checkString($var, True);
        $this->project_id = $var;

        return $this;
    }

    /**
     * Required. The AlloyDB location to copy the data from with a length limit of
     * 256 characters.
     *
     * Generated from protobuf field <code>string location_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getLocationId()
    {
        return $this->location_id;
    }

    /**
     * Required. The AlloyDB location to copy the data from with a length limit of
     * 256 characters.
     *
     * Generated from protobuf field <code>string location_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setLocationId($var)
    {
        GPBUtil::checkString($var, True);
        $this->location_id = $var;

        return $this;
    }

    /**
     * Required. The AlloyDB cluster to copy the data from with a length limit of
     * 256 characters.
     *
     * Generated from protobuf field <code>string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getClusterId()
    {
        return $this->cluster_id;
    }

    /**
     * Required. The AlloyDB cluster to copy the data from with a length limit of
     * 256 characters.
     *
     * Generated from protobuf field <code>string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setClusterId($var)
    {
        GPBUtil::checkString($var, True);
        $this->cluster_id = $var;

        return $this;
    }

    /**
     * Required. The AlloyDB database to copy the data from with a length limit of
     * 256 characters.
     *
     * Generated from protobuf field <code>string database_id = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getDatabaseId()
    {
        return $this->database_id;
    }

    /**
     * Required. The AlloyDB database to copy the data from with a length limit of
     * 256 characters.
     *
     * Generated from protobuf field <code>string database_id = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setDatabaseId($var)
    {
        GPBUtil::checkString($var, True);
        $this->database_id = $var;

        return $this;
    }

    /**
     * Required. The AlloyDB table to copy the data from with a length limit of
     * 256 characters.
     *
     * Generated from protobuf field <code>string table_id = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getTableId()
    {
        return $this->table_id;
    }

    /**
     * Required. The AlloyDB table to copy the data from with a length limit of
     * 256 characters.
     *
     * Generated from protobuf field <code>string table_id = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setTableId($var)
    {
        GPBUtil::checkString($var, True);
        $this->table_id = $var;

        return $this;
    }

    /**
     * Intermediate Cloud Storage directory used for the import with a length
     * limit of 2,000 characters. Can be specified if one wants to have the
     * AlloyDB export to a specific Cloud Storage directory.
     * Ensure that the AlloyDB service account has the necessary Cloud
     * Storage Admin permissions to access the specified Cloud Storage directory.
     *
     * Generated from protobuf field <code>string gcs_staging_dir = 6;</code>
     * @return string
     */
    public function getGcsStagingDir()
    {
        return $this->gcs_staging_dir;
    }

    /**
     * Intermediate Cloud Storage directory used for the import with a length
     * limit of 2,000 characters. Can be specified if one wants to have the
     * AlloyDB export to a specific Cloud Storage directory.
     * Ensure that the AlloyDB service account has the necessary Cloud
     * Storage Admin permissions to access the specified Cloud Storage directory.
     *
     * Generated from protobuf field <code>string gcs_staging_dir = 6;</code>
     * @param string $var
     * @return $this
     */
    public function setGcsStagingDir($var)
    {
        GPBUtil::checkString($var, True);
        $this->gcs_staging_dir = $var;

        return $this;
    }

}

