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

namespace Google\Cloud\Metastore\V1beta;

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

/**
 * Specifies how metastore metadata should be integrated with the Dataplex
 * service.
 *
 * Generated from protobuf message <code>google.cloud.metastore.v1beta.DataplexConfig</code>
 */
class DataplexConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * A reference to the Lake resources that this metastore service is attached
     * to. The key is the lake resource name. Example:
     * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.metastore.v1beta.Lake> lake_resources = 1;</code>
     */
    private $lake_resources;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array|\Google\Protobuf\Internal\MapField $lake_resources
     *           A reference to the Lake resources that this metastore service is attached
     *           to. The key is the lake resource name. Example:
     *           `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce();
        parent::__construct($data);
    }

    /**
     * A reference to the Lake resources that this metastore service is attached
     * to. The key is the lake resource name. Example:
     * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.metastore.v1beta.Lake> lake_resources = 1;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getLakeResources()
    {
        return $this->lake_resources;
    }

    /**
     * A reference to the Lake resources that this metastore service is attached
     * to. The key is the lake resource name. Example:
     * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.metastore.v1beta.Lake> lake_resources = 1;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setLakeResources($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Metastore\V1beta\Lake::class);
        $this->lake_resources = $arr;

        return $this;
    }

}

