# Dataproc Metastore V1 API - Class Google::Cloud::Metastore::V1::Federation (v2.5.0)

2.5.0 (latest) 2.4.0 2.3.1 2.2.0 2.1.0 2.0.1 1.2.0 1.1.0 1.0.1 0.13.0 0.12.2 0.11.0 0.10.0 0.9.0 0.8.1 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.2 Reference documentation and code samples for the Dataproc Metastore V1 API class Google::Cloud::Metastore::V1::Federation.

Represents a federation of multiple backend metastores.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #backend_metastores

    def backend_metastores() -> ::Google::Protobuf::Map{::Integer => ::Google::Cloud::Metastore::V1::BackendMetastore}

**Returns**

- (::Google::Protobuf::Map{::Integer =\> ::Google::Cloud::Metastore::V1::BackendMetastore}) --- A map from `BackendMetastore` rank to `BackendMetastore`s from which the federation service serves metadata at query time. The map key represents the order in which `BackendMetastore`s should be evaluated to resolve database names at query time and should be greater than or equal to zero. A `BackendMetastore` with a lower number will be evaluated before a `BackendMetastore` with a higher number.

### #backend_metastores=

    def backend_metastores=(value) -> ::Google::Protobuf::Map{::Integer => ::Google::Cloud::Metastore::V1::BackendMetastore}

**Parameter**

- **value** (::Google::Protobuf::Map{::Integer =\> ::Google::Cloud::Metastore::V1::BackendMetastore}) --- A map from `BackendMetastore` rank to `BackendMetastore`s from which the federation service serves metadata at query time. The map key represents the order in which `BackendMetastore`s should be evaluated to resolve database names at query time and should be greater than or equal to zero. A `BackendMetastore` with a lower number will be evaluated before a `BackendMetastore` with a higher number.
**Returns**

- (::Google::Protobuf::Map{::Integer =\> ::Google::Cloud::Metastore::V1::BackendMetastore}) --- A map from `BackendMetastore` rank to `BackendMetastore`s from which the federation service serves metadata at query time. The map key represents the order in which `BackendMetastore`s should be evaluated to resolve database names at query time and should be greater than or equal to zero. A `BackendMetastore` with a lower number will be evaluated before a `BackendMetastore` with a higher number.

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-metastore-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time when the metastore federation was created.

### #endpoint_uri

    def endpoint_uri() -> ::String

**Returns**

- (::String) --- Output only. The federation endpoint.

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- User-defined labels for the metastore federation.

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- User-defined labels for the metastore federation.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- User-defined labels for the metastore federation.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Immutable. The relative resource name of the federation, of the form: projects/{project_number}/locations/{location_id}/federations/{federation_id}\`.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Immutable. The relative resource name of the federation, of the form: projects/{project_number}/locations/{location_id}/federations/{federation_id}\`.
**Returns**

- (::String) --- Immutable. The relative resource name of the federation, of the form: projects/{project_number}/locations/{location_id}/federations/{federation_id}\`.

### #state

    def state() -> ::Google::Cloud::Metastore::V1::Federation::State

**Returns**

- ([::Google::Cloud::Metastore::V1::Federation::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-metastore-v1/latest/Google-Cloud-Metastore-V1-Federation-State)) --- Output only. The current state of the federation.

### #state_message

    def state_message() -> ::String

**Returns**

- (::String) --- Output only. Additional information about the current state of the metastore federation, if available.

### #uid

    def uid() -> ::String

**Returns**

- (::String) --- Output only. The globally unique resource identifier of the metastore federation.

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-metastore-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time when the metastore federation was last updated.

### #version

    def version() -> ::String

**Returns**

- (::String) --- Immutable. The Apache Hive metastore version of the federation. All backend metastore versions must be compatible with the federation version.

### #version=

    def version=(value) -> ::String

**Parameter**

- **value** (::String) --- Immutable. The Apache Hive metastore version of the federation. All backend metastore versions must be compatible with the federation version.
**Returns**

- (::String) --- Immutable. The Apache Hive metastore version of the federation. All backend metastore versions must be compatible with the federation version.