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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis page provides reference documentation for the \u003ccode\u003eRestoreInstanceRequest\u003c/code\u003e class within the Google Cloud Filestore v1 API, which is used to restore a file share from a backup to an existing instance.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRestoreInstanceRequest\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and has multiple versions ranging from 1.0.0 to the latest, 2.7.0.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eRestoreInstanceRequest\u003c/code\u003e class include \u003ccode\u003eName\u003c/code\u003e for the instance's resource name, \u003ccode\u003eFileShare\u003c/code\u003e for the name of the file share being restored, and \u003ccode\u003eSourceBackup\u003c/code\u003e to specify the backup from which the restoration is taking place.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors, one empty and one taking in another instance of \u003ccode\u003eRestoreInstanceRequest\u003c/code\u003e, allowing a user to restore from an existing request.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the class is 2.7.0, with documentation provided for all versions back to 1.0.0, offering a comprehensive history of the class and its changes.\u003c/p\u003e\n"]]],[],null,["# Cloud Filestore v1 API - Class RestoreInstanceRequest (2.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.7.0 (latest)](/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.RestoreInstanceRequest)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/2.6.0/Google.Cloud.Filestore.V1.RestoreInstanceRequest)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/2.5.0/Google.Cloud.Filestore.V1.RestoreInstanceRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/2.4.0/Google.Cloud.Filestore.V1.RestoreInstanceRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/2.3.0/Google.Cloud.Filestore.V1.RestoreInstanceRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/2.2.0/Google.Cloud.Filestore.V1.RestoreInstanceRequest)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/2.1.0/Google.Cloud.Filestore.V1.RestoreInstanceRequest)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/2.0.0/Google.Cloud.Filestore.V1.RestoreInstanceRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/1.2.0/Google.Cloud.Filestore.V1.RestoreInstanceRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/1.1.0/Google.Cloud.Filestore.V1.RestoreInstanceRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/1.0.0/Google.Cloud.Filestore.V1.RestoreInstanceRequest) \n\n public sealed class RestoreInstanceRequest : IMessage\u003cRestoreInstanceRequest\u003e, IEquatable\u003cRestoreInstanceRequest\u003e, IDeepCloneable\u003cRestoreInstanceRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Filestore v1 API class RestoreInstanceRequest.\n\nRestoreInstanceRequest restores an existing instance's file share from a\nbackup. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e RestoreInstanceRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[RestoreInstanceRequest](/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.RestoreInstanceRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RestoreInstanceRequest](/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.RestoreInstanceRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[RestoreInstanceRequest](/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.RestoreInstanceRequest), [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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Filestore.V1](/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Filestore.V1.dll\n\nConstructors\n------------\n\n### RestoreInstanceRequest()\n\n public RestoreInstanceRequest()\n\n### RestoreInstanceRequest(RestoreInstanceRequest)\n\n public RestoreInstanceRequest(RestoreInstanceRequest other)\n\nProperties\n----------\n\n### FileShare\n\n public string FileShare { get; set; }\n\nRequired. Name of the file share in the Filestore instance that the backup\nis being restored to.\n\n### HasSourceBackup\n\n public bool HasSourceBackup { get; }\n\nGets whether the \"source_backup\" field is set\n\n### InstanceName\n\n public InstanceName InstanceName { get; set; }\n\n[InstanceName](/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.InstanceName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.RestoreInstanceRequest#Google_Cloud_Filestore_V1_RestoreInstanceRequest_Name) resource name property.\n\n### Name\n\n public string Name { get; set; }\n\nRequired. The resource name of the instance, in the format\n`projects/{project_number}/locations/{location_id}/instances/{instance_id}`.\n\n### SourceBackup\n\n public string SourceBackup { get; set; }\n\nThe resource name of the backup, in the format\n`projects/{project_number}/locations/{location_id}/backups/{backup_id}`.\n\n### SourceBackupAsBackupName\n\n public BackupName SourceBackupAsBackupName { get; set; }\n\n[BackupName](/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.BackupName)-typed view over the [SourceBackup](/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.RestoreInstanceRequest#Google_Cloud_Filestore_V1_RestoreInstanceRequest_SourceBackup) resource name property.\n\n### SourceCase\n\n public RestoreInstanceRequest.SourceOneofCase SourceCase { get; }"]]