Constructs a new instance of a VolumeBackupName class from the component parts of pattern
projects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup}/volumeBackups/{volume_backup}
Formats the IDs into the string representation of this VolumeBackupName with pattern
projects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup}/volumeBackups/{volume_backup}
.
The string representation of this VolumeBackupName with pattern
projects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup}/volumeBackups/{volume_backup}
.
Formats the IDs into the string representation of this VolumeBackupName with pattern
projects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup}/volumeBackups/{volume_backup}
.
The string representation of this VolumeBackupName with pattern
projects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup}/volumeBackups/{volume_backup}
.
Creates a VolumeBackupName with the pattern
projects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup}/volumeBackups/{volume_backup}
.
If true will successfully store an unparseable resource name into the UnparsedResource
property; otherwise will throw an ArgumentException if an unparseable resource name is
specified.
If true will successfully store an unparseable resource name into the UnparsedResource
property; otherwise will throw an ArgumentException if an unparseable resource name is
specified.
[[["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\u003eVolumeBackupName\u003c/code\u003e API class is 2.6.0, part of the Google.Cloud.GkeBackup.V1 namespace for Backup for GKE.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eVolumeBackupName\u003c/code\u003e is a resource name class that implements \u003ccode\u003eIResourceName\u003c/code\u003e and \u003ccode\u003eIEquatable\u003c/code\u003e, representing the resource for a volume backup.\u003c/p\u003e\n"],["\u003cp\u003eThe class allows constructing a \u003ccode\u003eVolumeBackupName\u003c/code\u003e from its component parts: project ID, location ID, backup plan ID, backup ID, and volume backup ID, formatted as \u003ccode\u003eprojects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup}/volumeBackups/{volume_backup}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class contains methods to format, parse, and validate \u003ccode\u003eVolumeBackupName\u003c/code\u003e strings, ensuring they adhere to the required pattern and enabling the retrieval of individual IDs from an instance.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eVolumeBackupName\u003c/code\u003e class includes properties for identifying information, such as \u003ccode\u003eProjectId\u003c/code\u003e, \u003ccode\u003eLocationId\u003c/code\u003e, \u003ccode\u003eBackupPlanId\u003c/code\u003e, \u003ccode\u003eBackupId\u003c/code\u003e, and \u003ccode\u003eVolumeBackupId\u003c/code\u003e, as well as the methods to check if it is a known pattern, or even operate on unparsed resource names.\u003c/p\u003e\n"]]],[],null,["# Backup for GKE v1 API - Class VolumeBackupName (2.8.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.8.0 (latest)](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.VolumeBackupName)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.7.0/Google.Cloud.GkeBackup.V1.VolumeBackupName)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.6.0/Google.Cloud.GkeBackup.V1.VolumeBackupName)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.5.0/Google.Cloud.GkeBackup.V1.VolumeBackupName)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.4.0/Google.Cloud.GkeBackup.V1.VolumeBackupName)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.3.0/Google.Cloud.GkeBackup.V1.VolumeBackupName)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.2.0/Google.Cloud.GkeBackup.V1.VolumeBackupName)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.1.0/Google.Cloud.GkeBackup.V1.VolumeBackupName)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.0.0/Google.Cloud.GkeBackup.V1.VolumeBackupName)\n- [1.0.0-beta01](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/1.0.0-beta01/Google.Cloud.GkeBackup.V1.VolumeBackupName) \n\n public sealed class VolumeBackupName : IResourceName, IEquatable\u003cVolumeBackupName\u003e\n\nReference documentation and code samples for the Backup for GKE v1 API class VolumeBackupName.\n\nResource name for the `VolumeBackup` resource. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e VolumeBackupName \n\nImplements\n----------\n\n[IResourceName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[VolumeBackupName](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.VolumeBackupName) \n\nInherited Members\n-----------------\n\n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype)\n\nNamespace\n---------\n\n[Google.Cloud.GkeBackup.V1](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.GkeBackup.V1.dll\n\nConstructors\n------------\n\n### VolumeBackupName(string, string, string, string, string)\n\n public VolumeBackupName(string projectId, string locationId, string backupPlanId, string backupId, string volumeBackupId)\n\nConstructs a new instance of a [VolumeBackupName](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.VolumeBackupName) class from the component parts of pattern\n`\nprojects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup}/volumeBackups/{volume_backup}`\n\nProperties\n----------\n\n### BackupId\n\n public string BackupId { get; }\n\nThe `Backup` ID. Will not be `null`, unless this instance contains an unparsed resource name.\n\n### BackupPlanId\n\n public string BackupPlanId { get; }\n\nThe `BackupPlan` ID. Will not be `null`, unless this instance contains an unparsed resource name.\n\n### IsKnownPattern\n\n public bool IsKnownPattern { get; }\n\nWhether this instance contains a resource name with a known pattern.\n\n### LocationId\n\n public string LocationId { get; }\n\nThe `Location` ID. Will not be `null`, unless this instance contains an unparsed resource name.\n\n### ProjectId\n\n public string ProjectId { get; }\n\nThe `Project` ID. Will not be `null`, unless this instance contains an unparsed resource name.\n\n### Type\n\n public VolumeBackupName.ResourceNameType Type { get; }\n\nThe [VolumeBackupName.ResourceNameType](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.VolumeBackupName.ResourceNameType) of the contained resource name.\n\n### UnparsedResource\n\n public UnparsedResourceName UnparsedResource { get; }\n\nThe contained [UnparsedResourceName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.UnparsedResourceName.html). Only non-`null` if this instance contains an\nunparsed resource name.\n\n### VolumeBackupId\n\n public string VolumeBackupId { get; }\n\nThe `VolumeBackup` ID. Will not be `null`, unless this instance contains an unparsed resource\nname.\n\nMethods\n-------\n\n### Format(string, string, string, string, string)\n\n public static string Format(string projectId, string locationId, string backupPlanId, string backupId, string volumeBackupId)\n\nFormats the IDs into the string representation of this [VolumeBackupName](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.VolumeBackupName) with pattern\n`\nprojects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup}/volumeBackups/{volume_backup}`\n.\n\n### FormatProjectLocationBackupPlanBackupVolumeBackup(string, string, string, string, string)\n\n public static string FormatProjectLocationBackupPlanBackupVolumeBackup(string projectId, string locationId, string backupPlanId, string backupId, string volumeBackupId)\n\nFormats the IDs into the string representation of this [VolumeBackupName](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.VolumeBackupName) with pattern\n`\nprojects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup}/volumeBackups/{volume_backup}`\n.\n\n### FromProjectLocationBackupPlanBackupVolumeBackup(string, string, string, string, string)\n\n public static VolumeBackupName FromProjectLocationBackupPlanBackupVolumeBackup(string projectId, string locationId, string backupPlanId, string backupId, string volumeBackupId)\n\nCreates a [VolumeBackupName](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.VolumeBackupName) with the pattern\n`\nprojects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup}/volumeBackups/{volume_backup}`\n.\n\n### FromUnparsed(UnparsedResourceName)\n\n public static VolumeBackupName FromUnparsed(UnparsedResourceName unparsedResourceName)\n\nCreates a [VolumeBackupName](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.VolumeBackupName) containing an unparsed resource name.\n\n### GetHashCode()\n\n public override int GetHashCode()\n\nReturns a hash code for this resource name.\n\n**Overrides** \n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode)\n\n### Parse(string)\n\n public static VolumeBackupName Parse(string volumeBackupName)\n\nParses the given resource name string into a new [VolumeBackupName](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.VolumeBackupName) instance.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `\n projects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup}/volumeBackups/{volume_backup}`\n\n\u003cbr /\u003e\n\n### Parse(string, bool)\n\n public static VolumeBackupName Parse(string volumeBackupName, bool allowUnparsed)\n\nParses the given resource name string into a new [VolumeBackupName](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.VolumeBackupName) instance; optionally\nallowing an unparseable resource name.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `\n projects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup}/volumeBackups/{volume_backup}`\n\nOr may be in any format if `allowUnparsed` is `true`.\n\n\u003cbr /\u003e\n\n### ToString()\n\n public override string ToString()\n\nThe string representation of the resource name.\n\n**Overrides** \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\n### TryParse(string, out VolumeBackupName)\n\n public static bool TryParse(string volumeBackupName, out VolumeBackupName result)\n\nTries to parse the given resource name string into a new [VolumeBackupName](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.VolumeBackupName) instance.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `\n projects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup}/volumeBackups/{volume_backup}`\n\n\u003cbr /\u003e\n\n### TryParse(string, bool, out VolumeBackupName)\n\n public static bool TryParse(string volumeBackupName, bool allowUnparsed, out VolumeBackupName result)\n\nTries to parse the given resource name string into a new [VolumeBackupName](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.VolumeBackupName) instance; optionally\nallowing an unparseable resource name.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `\n projects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup}/volumeBackups/{volume_backup}`\n\nOr may be in any format if `allowUnparsed` is `true`.\n\n\u003cbr /\u003e\n\nOperators\n---------\n\n### operator ==(VolumeBackupName, VolumeBackupName)\n\n public static bool operator ==(VolumeBackupName a, VolumeBackupName b)\n\nDetermines whether two specified resource names have the same value.\n\n### operator !=(VolumeBackupName, VolumeBackupName)\n\n public static bool operator !=(VolumeBackupName a, VolumeBackupName b)\n\nDetermines whether two specified resource names have different values."]]