1.11.0 (latest) 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.1

    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.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> RenameFolderRequest

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[RenameFolderRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.RenameFolderRequest.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RenameFolderRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.RenameFolderRequest.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[RenameFolderRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.RenameFolderRequest.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Storage.Control.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.md.txt)

## Assembly

Google.Cloud.Storage.Control.V2.dll

## Constructors

### RenameFolderRequest()

    public RenameFolderRequest()

### RenameFolderRequest(RenameFolderRequest)

    public RenameFolderRequest(RenameFolderRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `RenameFolderRequest` |

## Properties

### DestinationFolderId

    public string DestinationFolderId { get; set; }

Required. The destination folder ID, e.g. `foo/bar/`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### FolderName

    public FolderName FolderName { get; set; }

[FolderName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.FolderName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.RenameFolderRequest.md.txt#Google_Cloud_Storage_Control_V2_RenameFolderRequest_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `FolderName` |   |

### HasIfMetagenerationMatch

    public bool HasIfMetagenerationMatch { get; }

Gets whether the "if_metageneration_match" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasIfMetagenerationNotMatch

    public bool HasIfMetagenerationNotMatch { get; }

Gets whether the "if_metageneration_not_match" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### IfMetagenerationMatch

    public long IfMetagenerationMatch { get; set; }

Makes the operation only succeed conditional on whether the source
folder's current metageneration matches the given value.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `long` |   |

### IfMetagenerationNotMatch

    public long IfMetagenerationNotMatch { get; set; }

Makes the operation only succeed conditional on whether the source
folder's current metageneration does not match the given value.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `long` |   |

### Name

    public string Name { get; set; }

Required. Name of the source folder being renamed.
Format: `projects/{project}/buckets/{bucket}/folders/{folder}`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### RequestId

    public string RequestId { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |