# Firestore Admin v1 API - Class RestoreDatabaseMetadata (3.19.0)

3.19.0 (latest) 3.18.0 3.17.0 3.16.0 3.15.0 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.4.0 2.3.0 2.2.0

    public sealed class RestoreDatabaseMetadata : IMessage<RestoreDatabaseMetadata>, IEquatable<RestoreDatabaseMetadata>, IDeepCloneable<RestoreDatabaseMetadata>, IBufferMessage, IMessage

Reference documentation and code samples for the Firestore Admin v1 API class RestoreDatabaseMetadata.

Metadata for the \[long-running operation\]\[google.longrunning.Operation\] from
the \[RestoreDatabase\]\[google.firestore.admin.v1.RestoreDatabase\] request.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> RestoreDatabaseMetadata

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[RestoreDatabaseMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/latest/Google.Cloud.Firestore.Admin.V1.RestoreDatabaseMetadata), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RestoreDatabaseMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/latest/Google.Cloud.Firestore.Admin.V1.RestoreDatabaseMetadata), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[RestoreDatabaseMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/latest/Google.Cloud.Firestore.Admin.V1.RestoreDatabaseMetadata), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Firestore.Admin.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/latest/Google.Cloud.Firestore.Admin.V1)

## Assembly

Google.Cloud.Firestore.Admin.V1.dll

## Constructors

### RestoreDatabaseMetadata()

    public RestoreDatabaseMetadata()

### RestoreDatabaseMetadata(RestoreDatabaseMetadata)

    public RestoreDatabaseMetadata(RestoreDatabaseMetadata other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/latest/Google.Cloud.Firestore.Admin.V1.RestoreDatabaseMetadata` |

## Properties

### Backup

    public string Backup { get; set; }

The name of the backup restoring from.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### BackupAsBackupName

    public BackupName BackupAsBackupName { get; set; }

[BackupName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/latest/Google.Cloud.Firestore.Admin.V1.BackupName)-typed view over the [Backup](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/latest/Google.Cloud.Firestore.Admin.V1.RestoreDatabaseMetadata#Google_Cloud_Firestore_Admin_V1_RestoreDatabaseMetadata_Backup) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/latest/Google.Cloud.Firestore.Admin.V1.BackupName` |   |

### Database

    public string Database { get; set; }

The name of the database being restored to.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### DatabaseAsDatabaseName

    public DatabaseName DatabaseAsDatabaseName { get; set; }

[DatabaseName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/latest/Google.Cloud.Firestore.Admin.V1.DatabaseName)-typed view over the [Database](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/latest/Google.Cloud.Firestore.Admin.V1.RestoreDatabaseMetadata#Google_Cloud_Firestore_Admin_V1_RestoreDatabaseMetadata_Database) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/latest/Google.Cloud.Firestore.Admin.V1.DatabaseName` |   |

### EndTime

    public Timestamp EndTime { get; set; }

The time the restore finished, unset for ongoing restores.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### OperationState

    public OperationState OperationState { get; set; }

The operation state of the restore.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/latest/Google.Cloud.Firestore.Admin.V1.OperationState` |   |

### ProgressPercentage

    public Progress ProgressPercentage { get; set; }

How far along the restore is as an estimated percentage of remaining time.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/latest/Google.Cloud.Firestore.Admin.V1.Progress` |   |

### StartTime

    public Timestamp StartTime { get; set; }

The time the restore was started.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |