public sealed class RenameFolderRequest : IMessage<RenameFolderRequest>, IEquatable<RenameFolderRequest>, IDeepCloneable<RenameFolderRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Storage v2 API class RenameFolderRequest.
Request message for RenameFolder. This operation is only applicable to a
hierarchical namespace enabled bucket.
Optional. A unique identifier for this request. UUID is the recommended
format, but other formats are still accepted. This request is only
idempotent if a request_id is provided.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eRenameFolderRequest\u003c/code\u003e class within the Google Cloud Storage v2 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRenameFolderRequest\u003c/code\u003e class is used to send a request to rename a folder within a hierarchical namespace enabled bucket in Cloud Storage.\u003c/p\u003e\n"],["\u003cp\u003eThis class allows the user to specify the destination folder ID, source folder name, and conditional metageneration match values.\u003c/p\u003e\n"],["\u003cp\u003eThe request can be made idempotent by providing a unique \u003ccode\u003erequest_id\u003c/code\u003e, and it contains properties to get or set the source folder's current metageneration match or not match values.\u003c/p\u003e\n"],["\u003cp\u003eThe current API version is 1.1.0 which is the latest version, but an older 1.0.1 version is available too.\u003c/p\u003e\n"]]],[],null,["# Cloud Storage v2 API - Class RenameFolderRequest (1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.RenameFolderRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/1.3.0/Google.Cloud.Storage.Control.V2.RenameFolderRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/1.2.0/Google.Cloud.Storage.Control.V2.RenameFolderRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/1.1.0/Google.Cloud.Storage.Control.V2.RenameFolderRequest)\n- [1.0.1](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/1.0.1/Google.Cloud.Storage.Control.V2.RenameFolderRequest) \n\n public sealed class RenameFolderRequest : IMessage\u003cRenameFolderRequest\u003e, IEquatable\u003cRenameFolderRequest\u003e, IDeepCloneable\u003cRenameFolderRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Storage v2 API class RenameFolderRequest.\n\nRequest message for RenameFolder. This operation is only applicable to a\nhierarchical namespace enabled bucket. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e RenameFolderRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[RenameFolderRequest](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.RenameFolderRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RenameFolderRequest](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.RenameFolderRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[RenameFolderRequest](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.RenameFolderRequest), [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.Storage.Control.V2](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Storage.Control.V2.dll\n\nConstructors\n------------\n\n### RenameFolderRequest()\n\n public RenameFolderRequest()\n\n### RenameFolderRequest(RenameFolderRequest)\n\n public RenameFolderRequest(RenameFolderRequest other)\n\nProperties\n----------\n\n### DestinationFolderId\n\n public string DestinationFolderId { get; set; }\n\nRequired. The destination folder ID, e.g. `foo/bar/`.\n\n### FolderName\n\n public FolderName FolderName { get; set; }\n\n[FolderName](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.FolderName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.RenameFolderRequest#Google_Cloud_Storage_Control_V2_RenameFolderRequest_Name) resource name property.\n\n### HasIfMetagenerationMatch\n\n public bool HasIfMetagenerationMatch { get; }\n\nGets whether the \"if_metageneration_match\" field is set\n\n### HasIfMetagenerationNotMatch\n\n public bool HasIfMetagenerationNotMatch { get; }\n\nGets whether the \"if_metageneration_not_match\" field is set\n\n### IfMetagenerationMatch\n\n public long IfMetagenerationMatch { get; set; }\n\nMakes the operation only succeed conditional on whether the source\nfolder's current metageneration matches the given value.\n\n### IfMetagenerationNotMatch\n\n public long IfMetagenerationNotMatch { get; set; }\n\nMakes the operation only succeed conditional on whether the source\nfolder's current metageneration does not match the given value.\n\n### Name\n\n public string Name { get; set; }\n\nRequired. Name of the source folder being renamed.\nFormat: `projects/{project}/buckets/{bucket}/folders/{folder}`\n\n### RequestId\n\n public string RequestId { get; set; }\n\nOptional. A unique identifier for this request. UUID is the recommended\nformat, but other formats are still accepted. This request is only\nidempotent if a `request_id` is provided."]]