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

namespace Google\Cloud\Metastore\V1;

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

/**
 * A managed metastore service that serves metadata queries.
 *
 * Generated from protobuf message <code>google.cloud.metastore.v1.Service</code>
 */
class Service extends \Google\Protobuf\Internal\Message
{
    /**
     * Immutable. The relative resource name of the metastore service, in the
     * following format:
     * `projects/{project_number}/locations/{location_id}/services/{service_id}`.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IMMUTABLE];</code>
     */
    protected $name = '';
    /**
     * Output only. The time when the metastore service was created.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $create_time = null;
    /**
     * Output only. The time when the metastore service was last updated.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $update_time = null;
    /**
     * User-defined labels for the metastore service.
     *
     * Generated from protobuf field <code>map<string, string> labels = 4;</code>
     */
    private $labels;
    /**
     * Immutable. The relative resource name of the VPC network on which the
     * instance can be accessed. It is specified in the following form:
     * `projects/{project_number}/global/networks/{network_id}`.
     *
     * Generated from protobuf field <code>string network = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = {</code>
     */
    protected $network = '';
    /**
     * Output only. The URI of the endpoint used to access the metastore service.
     *
     * Generated from protobuf field <code>string endpoint_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $endpoint_uri = '';
    /**
     * The TCP port at which the metastore service is reached. Default: 9083.
     *
     * Generated from protobuf field <code>int32 port = 9;</code>
     */
    protected $port = 0;
    /**
     * Output only. The current state of the metastore service.
     *
     * Generated from protobuf field <code>.google.cloud.metastore.v1.Service.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $state = 0;
    /**
     * Output only. Additional information about the current state of the
     * metastore service, if available.
     *
     * Generated from protobuf field <code>string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $state_message = '';
    /**
     * Output only. A Cloud Storage URI (starting with `gs://`) that specifies
     * where artifacts related to the metastore service are stored.
     *
     * Generated from protobuf field <code>string artifact_gcs_uri = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $artifact_gcs_uri = '';
    /**
     * The tier of the service.
     *
     * Generated from protobuf field <code>.google.cloud.metastore.v1.Service.Tier tier = 13;</code>
     */
    protected $tier = 0;
    /**
     * The one hour maintenance window of the metastore service. This specifies
     * when the service can be restarted for maintenance purposes in UTC time.
     * Maintenance window is not needed for services with the SPANNER
     * database type.
     *
     * Generated from protobuf field <code>.google.cloud.metastore.v1.MaintenanceWindow maintenance_window = 15;</code>
     */
    protected $maintenance_window = null;
    /**
     * Output only. The globally unique resource identifier of the metastore
     * service.
     *
     * Generated from protobuf field <code>string uid = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $uid = '';
    /**
     * Output only. The metadata management activities of the metastore service.
     *
     * Generated from protobuf field <code>.google.cloud.metastore.v1.MetadataManagementActivity metadata_management_activity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $metadata_management_activity = null;
    /**
     * Immutable. The release channel of the service.
     * If unspecified, defaults to `STABLE`.
     *
     * Generated from protobuf field <code>.google.cloud.metastore.v1.Service.ReleaseChannel release_channel = 19 [(.google.api.field_behavior) = IMMUTABLE];</code>
     */
    protected $release_channel = 0;
    /**
     * Immutable. Information used to configure the Dataproc Metastore service to
     * encrypt customer data at rest. Cannot be updated.
     *
     * Generated from protobuf field <code>.google.cloud.metastore.v1.EncryptionConfig encryption_config = 20 [(.google.api.field_behavior) = IMMUTABLE];</code>
     */
    protected $encryption_config = null;
    /**
     * The configuration specifying the network settings for the
     * Dataproc Metastore service.
     *
     * Generated from protobuf field <code>.google.cloud.metastore.v1.NetworkConfig network_config = 21;</code>
     */
    protected $network_config = null;
    /**
     * Immutable. The database type that the Metastore service stores its data.
     *
     * Generated from protobuf field <code>.google.cloud.metastore.v1.Service.DatabaseType database_type = 22 [(.google.api.field_behavior) = IMMUTABLE];</code>
     */
    protected $database_type = 0;
    /**
     * The configuration specifying telemetry settings for the Dataproc Metastore
     * service. If unspecified defaults to `JSON`.
     *
     * Generated from protobuf field <code>.google.cloud.metastore.v1.TelemetryConfig telemetry_config = 23;</code>
     */
    protected $telemetry_config = null;
    /**
     * Scaling configuration of the metastore service.
     *
     * Generated from protobuf field <code>.google.cloud.metastore.v1.ScalingConfig scaling_config = 24;</code>
     */
    protected $scaling_config = null;
    protected $metastore_config;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Metastore\V1\HiveMetastoreConfig $hive_metastore_config
     *           Configuration information specific to running Hive metastore
     *           software as the metastore service.
     *     @type string $name
     *           Immutable. The relative resource name of the metastore service, in the
     *           following format:
     *           `projects/{project_number}/locations/{location_id}/services/{service_id}`.
     *     @type \Google\Protobuf\Timestamp $create_time
     *           Output only. The time when the metastore service was created.
     *     @type \Google\Protobuf\Timestamp $update_time
     *           Output only. The time when the metastore service was last updated.
     *     @type array|\Google\Protobuf\Internal\MapField $labels
     *           User-defined labels for the metastore service.
     *     @type string $network
     *           Immutable. The relative resource name of the VPC network on which the
     *           instance can be accessed. It is specified in the following form:
     *           `projects/{project_number}/global/networks/{network_id}`.
     *     @type string $endpoint_uri
     *           Output only. The URI of the endpoint used to access the metastore service.
     *     @type int $port
     *           The TCP port at which the metastore service is reached. Default: 9083.
     *     @type int $state
     *           Output only. The current state of the metastore service.
     *     @type string $state_message
     *           Output only. Additional information about the current state of the
     *           metastore service, if available.
     *     @type string $artifact_gcs_uri
     *           Output only. A Cloud Storage URI (starting with `gs://`) that specifies
     *           where artifacts related to the metastore service are stored.
     *     @type int $tier
     *           The tier of the service.
     *     @type \Google\Cloud\Metastore\V1\MaintenanceWindow $maintenance_window
     *           The one hour maintenance window of the metastore service. This specifies
     *           when the service can be restarted for maintenance purposes in UTC time.
     *           Maintenance window is not needed for services with the SPANNER
     *           database type.
     *     @type string $uid
     *           Output only. The globally unique resource identifier of the metastore
     *           service.
     *     @type \Google\Cloud\Metastore\V1\MetadataManagementActivity $metadata_management_activity
     *           Output only. The metadata management activities of the metastore service.
     *     @type int $release_channel
     *           Immutable. The release channel of the service.
     *           If unspecified, defaults to `STABLE`.
     *     @type \Google\Cloud\Metastore\V1\EncryptionConfig $encryption_config
     *           Immutable. Information used to configure the Dataproc Metastore service to
     *           encrypt customer data at rest. Cannot be updated.
     *     @type \Google\Cloud\Metastore\V1\NetworkConfig $network_config
     *           The configuration specifying the network settings for the
     *           Dataproc Metastore service.
     *     @type int $database_type
     *           Immutable. The database type that the Metastore service stores its data.
     *     @type \Google\Cloud\Metastore\V1\TelemetryConfig $telemetry_config
     *           The configuration specifying telemetry settings for the Dataproc Metastore
     *           service. If unspecified defaults to `JSON`.
     *     @type \Google\Cloud\Metastore\V1\ScalingConfig $scaling_config
     *           Scaling configuration of the metastore service.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce();
        parent::__construct($data);
    }

    /**
     * Configuration information specific to running Hive metastore
     * software as the metastore service.
     *
     * Generated from protobuf field <code>.google.cloud.metastore.v1.HiveMetastoreConfig hive_metastore_config = 5;</code>
     * @return \Google\Cloud\Metastore\V1\HiveMetastoreConfig|null
     */
    public function getHiveMetastoreConfig()
    {
        return $this->readOneof(5);
    }

    public function hasHiveMetastoreConfig()
    {
        return $this->hasOneof(5);
    }

    /**
     * Configuration information specific to running Hive metastore
     * software as the metastore service.
     *
     * Generated from protobuf field <code>.google.cloud.metastore.v1.HiveMetastoreConfig hive_metastore_config = 5;</code>
     * @param \Google\Cloud\Metastore\V1\HiveMetastoreConfig $var
     * @return $this
     */
    public function setHiveMetastoreConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1\HiveMetastoreConfig::class);
        $this->writeOneof(5, $var);

        return $this;
    }

    /**
     * Immutable. The relative resource name of the metastore service, in the
     * following format:
     * `projects/{project_number}/locations/{location_id}/services/{service_id}`.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IMMUTABLE];</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Immutable. The relative resource name of the metastore service, in the
     * following format:
     * `projects/{project_number}/locations/{location_id}/services/{service_id}`.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IMMUTABLE];</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * Output only. The time when the metastore service was created.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getCreateTime()
    {
        return $this->create_time;
    }

    public function hasCreateTime()
    {
        return isset($this->create_time);
    }

    public function clearCreateTime()
    {
        unset($this->create_time);
    }

    /**
     * Output only. The time when the metastore service was created.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setCreateTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->create_time = $var;

        return $this;
    }

    /**
     * Output only. The time when the metastore service was last updated.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getUpdateTime()
    {
        return $this->update_time;
    }

    public function hasUpdateTime()
    {
        return isset($this->update_time);
    }

    public function clearUpdateTime()
    {
        unset($this->update_time);
    }

    /**
     * Output only. The time when the metastore service was last updated.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setUpdateTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->update_time = $var;

        return $this;
    }

    /**
     * User-defined labels for the metastore service.
     *
     * Generated from protobuf field <code>map<string, string> labels = 4;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getLabels()
    {
        return $this->labels;
    }

    /**
     * User-defined labels for the metastore service.
     *
     * Generated from protobuf field <code>map<string, string> labels = 4;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setLabels($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
        $this->labels = $arr;

        return $this;
    }

    /**
     * Immutable. The relative resource name of the VPC network on which the
     * instance can be accessed. It is specified in the following form:
     * `projects/{project_number}/global/networks/{network_id}`.
     *
     * Generated from protobuf field <code>string network = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getNetwork()
    {
        return $this->network;
    }

    /**
     * Immutable. The relative resource name of the VPC network on which the
     * instance can be accessed. It is specified in the following form:
     * `projects/{project_number}/global/networks/{network_id}`.
     *
     * Generated from protobuf field <code>string network = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setNetwork($var)
    {
        GPBUtil::checkString($var, True);
        $this->network = $var;

        return $this;
    }

    /**
     * Output only. The URI of the endpoint used to access the metastore service.
     *
     * Generated from protobuf field <code>string endpoint_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getEndpointUri()
    {
        return $this->endpoint_uri;
    }

    /**
     * Output only. The URI of the endpoint used to access the metastore service.
     *
     * Generated from protobuf field <code>string endpoint_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setEndpointUri($var)
    {
        GPBUtil::checkString($var, True);
        $this->endpoint_uri = $var;

        return $this;
    }

    /**
     * The TCP port at which the metastore service is reached. Default: 9083.
     *
     * Generated from protobuf field <code>int32 port = 9;</code>
     * @return int
     */
    public function getPort()
    {
        return $this->port;
    }

    /**
     * The TCP port at which the metastore service is reached. Default: 9083.
     *
     * Generated from protobuf field <code>int32 port = 9;</code>
     * @param int $var
     * @return $this
     */
    public function setPort($var)
    {
        GPBUtil::checkInt32($var);
        $this->port = $var;

        return $this;
    }

    /**
     * Output only. The current state of the metastore service.
     *
     * Generated from protobuf field <code>.google.cloud.metastore.v1.Service.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int
     */
    public function getState()
    {
        return $this->state;
    }

    /**
     * Output only. The current state of the metastore service.
     *
     * Generated from protobuf field <code>.google.cloud.metastore.v1.Service.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int $var
     * @return $this
     */
    public function setState($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1\Service\State::class);
        $this->state = $var;

        return $this;
    }

    /**
     * Output only. Additional information about the current state of the
     * metastore service, if available.
     *
     * Generated from protobuf field <code>string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getStateMessage()
    {
        return $this->state_message;
    }

    /**
     * Output only. Additional information about the current state of the
     * metastore service, if available.
     *
     * Generated from protobuf field <code>string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setStateMessage($var)
    {
        GPBUtil::checkString($var, True);
        $this->state_message = $var;

        return $this;
    }

    /**
     * Output only. A Cloud Storage URI (starting with `gs://`) that specifies
     * where artifacts related to the metastore service are stored.
     *
     * Generated from protobuf field <code>string artifact_gcs_uri = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getArtifactGcsUri()
    {
        return $this->artifact_gcs_uri;
    }

    /**
     * Output only. A Cloud Storage URI (starting with `gs://`) that specifies
     * where artifacts related to the metastore service are stored.
     *
     * Generated from protobuf field <code>string artifact_gcs_uri = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setArtifactGcsUri($var)
    {
        GPBUtil::checkString($var, True);
        $this->artifact_gcs_uri = $var;

        return $this;
    }

    /**
     * The tier of the service.
     *
     * Generated from protobuf field <code>.google.cloud.metastore.v1.Service.Tier tier = 13;</code>
     * @return int
     */
    public function getTier()
    {
        return $this->tier;
    }

    /**
     * The tier of the service.
     *
     * Generated from protobuf field <code>.google.cloud.metastore.v1.Service.Tier tier = 13;</code>
     * @param int $var
     * @return $this
     */
    public function setTier($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1\Service\Tier::class);
        $this->tier = $var;

        return $this;
    }

    /**
     * The one hour maintenance window of the metastore service. This specifies
     * when the service can be restarted for maintenance purposes in UTC time.
     * Maintenance window is not needed for services with the SPANNER
     * database type.
     *
     * Generated from protobuf field <code>.google.cloud.metastore.v1.MaintenanceWindow maintenance_window = 15;</code>
     * @return \Google\Cloud\Metastore\V1\MaintenanceWindow|null
     */
    public function getMaintenanceWindow()
    {
        return $this->maintenance_window;
    }

    public function hasMaintenanceWindow()
    {
        return isset($this->maintenance_window);
    }

    public function clearMaintenanceWindow()
    {
        unset($this->maintenance_window);
    }

    /**
     * The one hour maintenance window of the metastore service. This specifies
     * when the service can be restarted for maintenance purposes in UTC time.
     * Maintenance window is not needed for services with the SPANNER
     * database type.
     *
     * Generated from protobuf field <code>.google.cloud.metastore.v1.MaintenanceWindow maintenance_window = 15;</code>
     * @param \Google\Cloud\Metastore\V1\MaintenanceWindow $var
     * @return $this
     */
    public function setMaintenanceWindow($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1\MaintenanceWindow::class);
        $this->maintenance_window = $var;

        return $this;
    }

    /**
     * Output only. The globally unique resource identifier of the metastore
     * service.
     *
     * Generated from protobuf field <code>string uid = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getUid()
    {
        return $this->uid;
    }

    /**
     * Output only. The globally unique resource identifier of the metastore
     * service.
     *
     * Generated from protobuf field <code>string uid = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setUid($var)
    {
        GPBUtil::checkString($var, True);
        $this->uid = $var;

        return $this;
    }

    /**
     * Output only. The metadata management activities of the metastore service.
     *
     * Generated from protobuf field <code>.google.cloud.metastore.v1.MetadataManagementActivity metadata_management_activity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Cloud\Metastore\V1\MetadataManagementActivity|null
     */
    public function getMetadataManagementActivity()
    {
        return $this->metadata_management_activity;
    }

    public function hasMetadataManagementActivity()
    {
        return isset($this->metadata_management_activity);
    }

    public function clearMetadataManagementActivity()
    {
        unset($this->metadata_management_activity);
    }

    /**
     * Output only. The metadata management activities of the metastore service.
     *
     * Generated from protobuf field <code>.google.cloud.metastore.v1.MetadataManagementActivity metadata_management_activity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Cloud\Metastore\V1\MetadataManagementActivity $var
     * @return $this
     */
    public function setMetadataManagementActivity($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1\MetadataManagementActivity::class);
        $this->metadata_management_activity = $var;

        return $this;
    }

    /**
     * Immutable. The release channel of the service.
     * If unspecified, defaults to `STABLE`.
     *
     * Generated from protobuf field <code>.google.cloud.metastore.v1.Service.ReleaseChannel release_channel = 19 [(.google.api.field_behavior) = IMMUTABLE];</code>
     * @return int
     */
    public function getReleaseChannel()
    {
        return $this->release_channel;
    }

    /**
     * Immutable. The release channel of the service.
     * If unspecified, defaults to `STABLE`.
     *
     * Generated from protobuf field <code>.google.cloud.metastore.v1.Service.ReleaseChannel release_channel = 19 [(.google.api.field_behavior) = IMMUTABLE];</code>
     * @param int $var
     * @return $this
     */
    public function setReleaseChannel($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1\Service\ReleaseChannel::class);
        $this->release_channel = $var;

        return $this;
    }

    /**
     * Immutable. Information used to configure the Dataproc Metastore service to
     * encrypt customer data at rest. Cannot be updated.
     *
     * Generated from protobuf field <code>.google.cloud.metastore.v1.EncryptionConfig encryption_config = 20 [(.google.api.field_behavior) = IMMUTABLE];</code>
     * @return \Google\Cloud\Metastore\V1\EncryptionConfig|null
     */
    public function getEncryptionConfig()
    {
        return $this->encryption_config;
    }

    public function hasEncryptionConfig()
    {
        return isset($this->encryption_config);
    }

    public function clearEncryptionConfig()
    {
        unset($this->encryption_config);
    }

    /**
     * Immutable. Information used to configure the Dataproc Metastore service to
     * encrypt customer data at rest. Cannot be updated.
     *
     * Generated from protobuf field <code>.google.cloud.metastore.v1.EncryptionConfig encryption_config = 20 [(.google.api.field_behavior) = IMMUTABLE];</code>
     * @param \Google\Cloud\Metastore\V1\EncryptionConfig $var
     * @return $this
     */
    public function setEncryptionConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1\EncryptionConfig::class);
        $this->encryption_config = $var;

        return $this;
    }

    /**
     * The configuration specifying the network settings for the
     * Dataproc Metastore service.
     *
     * Generated from protobuf field <code>.google.cloud.metastore.v1.NetworkConfig network_config = 21;</code>
     * @return \Google\Cloud\Metastore\V1\NetworkConfig|null
     */
    public function getNetworkConfig()
    {
        return $this->network_config;
    }

    public function hasNetworkConfig()
    {
        return isset($this->network_config);
    }

    public function clearNetworkConfig()
    {
        unset($this->network_config);
    }

    /**
     * The configuration specifying the network settings for the
     * Dataproc Metastore service.
     *
     * Generated from protobuf field <code>.google.cloud.metastore.v1.NetworkConfig network_config = 21;</code>
     * @param \Google\Cloud\Metastore\V1\NetworkConfig $var
     * @return $this
     */
    public function setNetworkConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1\NetworkConfig::class);
        $this->network_config = $var;

        return $this;
    }

    /**
     * Immutable. The database type that the Metastore service stores its data.
     *
     * Generated from protobuf field <code>.google.cloud.metastore.v1.Service.DatabaseType database_type = 22 [(.google.api.field_behavior) = IMMUTABLE];</code>
     * @return int
     */
    public function getDatabaseType()
    {
        return $this->database_type;
    }

    /**
     * Immutable. The database type that the Metastore service stores its data.
     *
     * Generated from protobuf field <code>.google.cloud.metastore.v1.Service.DatabaseType database_type = 22 [(.google.api.field_behavior) = IMMUTABLE];</code>
     * @param int $var
     * @return $this
     */
    public function setDatabaseType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1\Service\DatabaseType::class);
        $this->database_type = $var;

        return $this;
    }

    /**
     * The configuration specifying telemetry settings for the Dataproc Metastore
     * service. If unspecified defaults to `JSON`.
     *
     * Generated from protobuf field <code>.google.cloud.metastore.v1.TelemetryConfig telemetry_config = 23;</code>
     * @return \Google\Cloud\Metastore\V1\TelemetryConfig|null
     */
    public function getTelemetryConfig()
    {
        return $this->telemetry_config;
    }

    public function hasTelemetryConfig()
    {
        return isset($this->telemetry_config);
    }

    public function clearTelemetryConfig()
    {
        unset($this->telemetry_config);
    }

    /**
     * The configuration specifying telemetry settings for the Dataproc Metastore
     * service. If unspecified defaults to `JSON`.
     *
     * Generated from protobuf field <code>.google.cloud.metastore.v1.TelemetryConfig telemetry_config = 23;</code>
     * @param \Google\Cloud\Metastore\V1\TelemetryConfig $var
     * @return $this
     */
    public function setTelemetryConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1\TelemetryConfig::class);
        $this->telemetry_config = $var;

        return $this;
    }

    /**
     * Scaling configuration of the metastore service.
     *
     * Generated from protobuf field <code>.google.cloud.metastore.v1.ScalingConfig scaling_config = 24;</code>
     * @return \Google\Cloud\Metastore\V1\ScalingConfig|null
     */
    public function getScalingConfig()
    {
        return $this->scaling_config;
    }

    public function hasScalingConfig()
    {
        return isset($this->scaling_config);
    }

    public function clearScalingConfig()
    {
        unset($this->scaling_config);
    }

    /**
     * Scaling configuration of the metastore service.
     *
     * Generated from protobuf field <code>.google.cloud.metastore.v1.ScalingConfig scaling_config = 24;</code>
     * @param \Google\Cloud\Metastore\V1\ScalingConfig $var
     * @return $this
     */
    public function setScalingConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1\ScalingConfig::class);
        $this->scaling_config = $var;

        return $this;
    }

    /**
     * @return string
     */
    public function getMetastoreConfig()
    {
        return $this->whichOneof("metastore_config");
    }

}

