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

namespace Google\Cloud\Dataplex\V1\Lake;

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

/**
 * Settings to manage association of Dataproc Metastore with a lake.
 *
 * Generated from protobuf message <code>google.cloud.dataplex.v1.Lake.Metastore</code>
 */
class Metastore extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. A relative reference to the Dataproc Metastore
     * (https://cloud.google.com/dataproc-metastore/docs) service associated
     * with the lake:
     * `projects/{project_id}/locations/{location_id}/services/{service_id}`
     *
     * Generated from protobuf field <code>string service = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $service = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $service
     *           Optional. A relative reference to the Dataproc Metastore
     *           (https://cloud.google.com/dataproc-metastore/docs) service associated
     *           with the lake:
     *           `projects/{project_id}/locations/{location_id}/services/{service_id}`
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. A relative reference to the Dataproc Metastore
     * (https://cloud.google.com/dataproc-metastore/docs) service associated
     * with the lake:
     * `projects/{project_id}/locations/{location_id}/services/{service_id}`
     *
     * Generated from protobuf field <code>string service = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getService()
    {
        return $this->service;
    }

    /**
     * Optional. A relative reference to the Dataproc Metastore
     * (https://cloud.google.com/dataproc-metastore/docs) service associated
     * with the lake:
     * `projects/{project_id}/locations/{location_id}/services/{service_id}`
     *
     * Generated from protobuf field <code>string service = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setService($var)
    {
        GPBUtil::checkString($var, True);
        $this->service = $var;

        return $this;
    }

}


