2.8.0 (latest) 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.2.0 1.1.0 1.0.0

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

Reference documentation and code samples for the Cloud Filestore v1 API class RestoreInstanceRequest.

RestoreInstanceRequest restores an existing instance's file share from a
backup.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[RestoreInstanceRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.RestoreInstanceRequest.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RestoreInstanceRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.RestoreInstanceRequest.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[RestoreInstanceRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.RestoreInstanceRequest.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## 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.Filestore.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.md.txt)

## Assembly

Google.Cloud.Filestore.V1.dll

## Constructors

### RestoreInstanceRequest()

    public RestoreInstanceRequest()

### RestoreInstanceRequest(RestoreInstanceRequest)

    public RestoreInstanceRequest(RestoreInstanceRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `RestoreInstanceRequest` |

## Properties

### FileShare

    public string FileShare { get; set; }

Required. Name of the file share in the Filestore instance that the backup
is being restored to.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### HasSourceBackup

    public bool HasSourceBackup { get; }

Gets whether the "source_backup" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### InstanceName

    public InstanceName InstanceName { get; set; }

[InstanceName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.InstanceName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.RestoreInstanceRequest.md.txt#Google_Cloud_Filestore_V1_RestoreInstanceRequest_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `InstanceName` |   |

### Name

    public string Name { get; set; }

Required. The resource name of the instance, in the format
`projects/{project_number}/locations/{location_id}/instances/{instance_id}`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### SourceBackup

    public string SourceBackup { get; set; }

The resource name of the backup, in the format
`projects/{project_number}/locations/{location_id}/backups/{backup_id}`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### SourceBackupAsBackupName

    public BackupName SourceBackupAsBackupName { get; set; }

[BackupName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.BackupName.md.txt)-typed view over the [SourceBackup](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.RestoreInstanceRequest.md.txt#Google_Cloud_Filestore_V1_RestoreInstanceRequest_SourceBackup) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `BackupName` |   |

### SourceCase

    public RestoreInstanceRequest.SourceOneofCase SourceCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RestoreInstanceRequestSourceOneofCase` |   |