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

namespace Google\Cloud\Dataproc\V1;

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

/**
 * Specifies a Metastore configuration.
 *
 * Generated from protobuf message <code>google.cloud.dataproc.v1.MetastoreConfig</code>
 */
class MetastoreConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Resource name of an existing Dataproc Metastore service.
     * Example:
     * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
     *
     * Generated from protobuf field <code>string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    private $dataproc_metastore_service = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $dataproc_metastore_service
     *           Required. Resource name of an existing Dataproc Metastore service.
     *           Example:
     *           * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataproc\V1\Clusters::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Resource name of an existing Dataproc Metastore service.
     * Example:
     * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
     *
     * Generated from protobuf field <code>string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getDataprocMetastoreService()
    {
        return $this->dataproc_metastore_service;
    }

    /**
     * Required. Resource name of an existing Dataproc Metastore service.
     * Example:
     * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
     *
     * Generated from protobuf field <code>string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setDataprocMetastoreService($var)
    {
        GPBUtil::checkString($var, True);
        $this->dataproc_metastore_service = $var;

        return $this;
    }

}

