public sealed class FileShareConfig : IMessage<FileShareConfig>, IEquatable<FileShareConfig>, IDeepCloneable<FileShareConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Filestore v1 API class FileShareConfig.
Required. The name of the file share. Must use 1-16 characters for the
basic service tier and 1-63 characters for all other service tiers.
Must use lowercase letters, numbers, or underscores [a-z0-9_]. Must
start with a letter. Immutable.
The resource name of the backup, in the format
projects/{project_number}/locations/{location_id}/backups/{backup_id},
that this file share has been restored from.
[[["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\u003eThe latest version of the \u003ccode\u003eFileShareConfig\u003c/code\u003e class in the Cloud Filestore v1 API is 2.7.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFileShareConfig\u003c/code\u003e class is used for defining the file share configuration for a Filestore instance.\u003c/p\u003e\n"],["\u003cp\u003eThis class provides properties for setting the file share's \u003ccode\u003eCapacityGb\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003eNfsExportOptions\u003c/code\u003e, and \u003ccode\u003eSourceBackup\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe file share name must adhere to specific rules, such as being 1-16 characters for the basic tier and starting with a lowercase letter.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFileShareConfig\u003c/code\u003e class inherits from the \u003ccode\u003eobject\u003c/code\u003e class and 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.\u003c/p\u003e\n"]]],[],null,["# Cloud Filestore v1 API - Class FileShareConfig (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.FileShareConfig)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/2.6.0/Google.Cloud.Filestore.V1.FileShareConfig)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/2.5.0/Google.Cloud.Filestore.V1.FileShareConfig)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/2.4.0/Google.Cloud.Filestore.V1.FileShareConfig)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/2.3.0/Google.Cloud.Filestore.V1.FileShareConfig)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/2.2.0/Google.Cloud.Filestore.V1.FileShareConfig)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/2.1.0/Google.Cloud.Filestore.V1.FileShareConfig)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/2.0.0/Google.Cloud.Filestore.V1.FileShareConfig)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/1.2.0/Google.Cloud.Filestore.V1.FileShareConfig)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/1.1.0/Google.Cloud.Filestore.V1.FileShareConfig)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/1.0.0/Google.Cloud.Filestore.V1.FileShareConfig) \n\n public sealed class FileShareConfig : IMessage\u003cFileShareConfig\u003e, IEquatable\u003cFileShareConfig\u003e, IDeepCloneable\u003cFileShareConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Filestore v1 API class FileShareConfig.\n\nFile share configuration for the instance. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e FileShareConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[FileShareConfig](/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.FileShareConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[FileShareConfig](/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.FileShareConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[FileShareConfig](/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.FileShareConfig), [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### FileShareConfig()\n\n public FileShareConfig()\n\n### FileShareConfig(FileShareConfig)\n\n public FileShareConfig(FileShareConfig other)\n\nProperties\n----------\n\n### CapacityGb\n\n public long CapacityGb { get; set; }\n\nFile share capacity in gigabytes (GB).\nFilestore defines 1 GB as 1024\\^3 bytes.\n\n### HasSourceBackup\n\n public bool HasSourceBackup { get; }\n\nGets whether the \"source_backup\" field is set\n\n### Name\n\n public string Name { get; set; }\n\nRequired. The name of the file share. Must use 1-16 characters for the\nbasic service tier and 1-63 characters for all other service tiers.\nMust use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must\nstart with a letter. Immutable.\n\n### NfsExportOptions\n\n public RepeatedField\u003cNfsExportOptions\u003e NfsExportOptions { get; }\n\nNfs Export Options.\nThere is a limit of 10 export options per file share.\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}`,\nthat this file share has been restored from.\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.FileShareConfig#Google_Cloud_Filestore_V1_FileShareConfig_SourceBackup) resource name property.\n\n### SourceCase\n\n public FileShareConfig.SourceOneofCase SourceCase { get; }"]]