# Dataproc Metastore V1 API - Class Google::Cloud::Metastore::V1::Restore (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::Restore.

The details of a metadata restore operation.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #backup

    def backup() -> ::String

**Returns**

- (::String) --- Output only. The relative resource name of the metastore service backup to restore from, in the following form:

  `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.

### #details

    def details() -> ::String

**Returns**

- (::String) --- Output only. The restore details containing the revision of the service to be restored to, in format of JSON.

### #end_time

    def end_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 restore ended.

### #start_time

    def start_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 restore started.

### #state

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

**Returns**

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

### #type

    def type() -> ::Google::Cloud::Metastore::V1::Restore::RestoreType

**Returns**

- ([::Google::Cloud::Metastore::V1::Restore::RestoreType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-metastore-v1/latest/Google-Cloud-Metastore-V1-Restore-RestoreType)) --- Output only. The type of restore.