A user-supplied name for the volume. Used when mounting the volume into
[Actions][google.cloud.lifesciences.v2beta.Action]. The name must contain
only upper and lowercase alphanumeric characters and hyphens and cannot
start with a hyphen.
[[["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 \u003ccode\u003eVolume\u003c/code\u003e class in the Google Cloud Life Sciences v2beta API represents storage that can be attached to a virtual machine (VM).\u003c/p\u003e\n"],["\u003cp\u003eUsers can specify either a \u003ccode\u003eVolume\u003c/code\u003e or a \u003ccode\u003eDisk\u003c/code\u003e for storage, but not both simultaneously.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eVolume\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.\u003c/p\u003e\n"],["\u003cp\u003eThe class supports configurations for existing disks (\u003ccode\u003eExistingDisk\u003c/code\u003e), NFS mounts (\u003ccode\u003eNfsMount\u003c/code\u003e), and persistent disks (\u003ccode\u003ePersistentDisk\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eA user-supplied name for the volume can be set using the \u003ccode\u003eVolume_\u003c/code\u003e property, which is used when mounting the volume into Actions and must meet certain formatting requirements.\u003c/p\u003e\n"]]],[],null,["# Cloud Life Sciences v2beta API - Class Volume (2.0.0-beta06)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0-beta06 (latest)](/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.Volume)\n- [2.0.0-beta05](/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/2.0.0-beta05/Google.Cloud.LifeSciences.V2Beta.Volume)\n- [1.0.0-beta02](/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/1.0.0-beta02/Google.Cloud.LifeSciences.V2Beta.Volume) \n\n public sealed class Volume : IMessage\u003cVolume\u003e, IEquatable\u003cVolume\u003e, IDeepCloneable\u003cVolume\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Life Sciences v2beta API class Volume.\n\nCarries information about storage that can be attached to a VM.\n\nSpecify either \\[`Volume`\\]\\[google.cloud.lifesciences.v2beta.Volume\\] or\n\\[`Disk`\\]\\[google.cloud.lifesciences.v2beta.Disk\\], but not both. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Volume \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Volume](/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.Volume), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Volume](/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.Volume), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Volume](/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.Volume), [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.LifeSciences.V2Beta](/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta)\n\nAssembly\n--------\n\nGoogle.Cloud.LifeSciences.V2Beta.dll\n\nConstructors\n------------\n\n### Volume()\n\n public Volume()\n\n### Volume(Volume)\n\n public Volume(Volume other)\n\nProperties\n----------\n\n### ExistingDisk\n\n public ExistingDisk ExistingDisk { get; set; }\n\nConfiguration for a existing disk.\n\n### NfsMount\n\n public NFSMount NfsMount { get; set; }\n\nConfiguration for an NFS mount.\n\n### PersistentDisk\n\n public PersistentDisk PersistentDisk { get; set; }\n\nConfiguration for a persistent disk.\n\n### StorageCase\n\n public Volume.StorageOneofCase StorageCase { get; }\n\n### Volume_\n\n public string Volume_ { get; set; }\n\nA user-supplied name for the volume. Used when mounting the volume into\n\\[`Actions`\\]\\[google.cloud.lifesciences.v2beta.Action\\]. The name must contain\nonly upper and lowercase alphanumeric characters and hyphens and cannot\nstart with a hyphen."]]