1.2.4 (latest) 1.2.3 1.1.1 1.0.4 0.11.5 0.10.2 0.9.0 0.8.1 0.7.0 0.6.1 0.5.1 0.4.1 Reference documentation and code samples for the Google Cloud Dataproc Metastore V1 Client class HiveMetastoreConfig.

Specifies configuration information specific to running Hive metastore
software as the metastore service.

Generated from protobuf message `google.cloud.metastore.v1.HiveMetastoreConfig`

## Namespace

Google \\ Cloud \\ Metastore \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ version` | `string` Immutable. The Hive metastore schema version. |
| `↳ config_overrides` | `array|Google\Protobuf\Internal\MapField` A mapping of Hive metastore configuration key-value pairs to apply to the Hive metastore (configured in `hive-site.xml`). The mappings override system defaults (some keys cannot be overridden). These overrides are also applied to auxiliary versions and can be further customized in the auxiliary version's `AuxiliaryVersionConfig`. |
| `↳ kerberos_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc-metastore/latest/V1.KerberosConfig` Information used to configure the Hive metastore service as a service principal in a Kerberos realm. To disable Kerberos, use the `UpdateService` method and specify this field's path (`hive_metastore_config.kerberos_config`) in the request's `update_mask` while omitting this field from the request's `service`. |
| `↳ endpoint_protocol` | `int` The protocol to use for the metastore service endpoint. If unspecified, defaults to `THRIFT`. |
| `↳ auxiliary_versions` | `array|Google\Protobuf\Internal\MapField` A mapping of Hive metastore version to the auxiliary version configuration. When specified, a secondary Hive metastore service is created along with the primary service. All auxiliary versions must be less than the service's primary version. The key is the auxiliary service name and it must match the regular expression [a-z](https://docs.cloud.google.com/php/docs/reference/cloud-dataproc-metastore/latest/[-a-z0-9]*[a-z0-9])?. This means that the first character must be a lowercase letter, and all the following characters must be hyphens, lowercase letters, or digits, except the last character, which cannot be a hyphen. |

### getVersion

Immutable. The Hive metastore schema version.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setVersion

Immutable. The Hive metastore schema version.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getConfigOverrides

A mapping of Hive metastore configuration key-value pairs to apply to the
Hive metastore (configured in `hive-site.xml`). The mappings
override system defaults (some keys cannot be overridden). These
overrides are also applied to auxiliary versions and can be further
customized in the auxiliary version's `AuxiliaryVersionConfig`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Internal\MapField` |   |

### setConfigOverrides

A mapping of Hive metastore configuration key-value pairs to apply to the
Hive metastore (configured in `hive-site.xml`). The mappings
override system defaults (some keys cannot be overridden). These
overrides are also applied to auxiliary versions and can be further
customized in the auxiliary version's `AuxiliaryVersionConfig`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|Google\Protobuf\Internal\MapField` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getKerberosConfig

Information used to configure the Hive metastore service as a service
principal in a Kerberos realm. To disable Kerberos, use the `UpdateService`
method and specify this field's path
(`hive_metastore_config.kerberos_config`) in the request's `update_mask`
while omitting this field from the request's `service`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc-metastore/latest/V1.KerberosConfig|null` |   |

### hasKerberosConfig

### clearKerberosConfig

### setKerberosConfig

Information used to configure the Hive metastore service as a service
principal in a Kerberos realm. To disable Kerberos, use the `UpdateService`
method and specify this field's path
(`hive_metastore_config.kerberos_config`) in the request's `update_mask`
while omitting this field from the request's `service`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc-metastore/latest/V1.KerberosConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEndpointProtocol

The protocol to use for the metastore service endpoint. If unspecified,
defaults to `THRIFT`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [EndpointProtocol](https://docs.cloud.google.com/php/docs/reference/cloud-dataproc-metastore/latest/V1.HiveMetastoreConfig.EndpointProtocol). |

### setEndpointProtocol

The protocol to use for the metastore service endpoint. If unspecified,
defaults to `THRIFT`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [EndpointProtocol](https://docs.cloud.google.com/php/docs/reference/cloud-dataproc-metastore/latest/V1.HiveMetastoreConfig.EndpointProtocol). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAuxiliaryVersions

A mapping of Hive metastore version to the auxiliary version
configuration. When specified, a secondary Hive metastore service is
created along with the primary service. All auxiliary versions must be less
than the service's primary version. The key is the auxiliary service name
and it must match the regular expression [a-z](https://docs.cloud.google.com/php/docs/reference/cloud-dataproc-metastore/latest/[-a-z0-9]*[a-z0-9])?. This
means that the first character must be a lowercase letter, and all the
following characters must be hyphens, lowercase letters, or digits, except
the last character, which cannot be a hyphen.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Internal\MapField` |   |

### setAuxiliaryVersions

A mapping of Hive metastore version to the auxiliary version
configuration. When specified, a secondary Hive metastore service is
created along with the primary service. All auxiliary versions must be less
than the service's primary version. The key is the auxiliary service name
and it must match the regular expression [a-z](https://docs.cloud.google.com/php/docs/reference/cloud-dataproc-metastore/latest/[-a-z0-9]*[a-z0-9])?. This
means that the first character must be a lowercase letter, and all the
following characters must be hyphens, lowercase letters, or digits, except
the last character, which cannot be a hyphen.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|Google\Protobuf\Internal\MapField` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |