# Google Cloud Parallelstore V1beta Client - Class TransferMetadataOptions (0.13.2)

0.13.2 (latest) 0.13.1 0.12.1 0.11.3 0.10.0 0.9.0 0.8.3 0.7.1 0.6.1 0.5.0 0.4.0 0.3.1 0.2.0 0.1.1

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Parallelstore V1beta Client class TransferMetadataOptions.

Transfer metadata options for the instance.

Generated from protobuf message `google.cloud.parallelstore.v1beta.TransferMetadataOptions`

## Namespace

Google \\ Cloud \\ Parallelstore \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ uid` | `int` Optional. The UID preservation behavior. |
| `↳ gid` | `int` Optional. The GID preservation behavior. |
| `↳ mode` | `int` Optional. The mode preservation behavior. |

### getUid

Optional. The UID preservation behavior.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Uid](https://docs.cloud.google.com/php/docs/reference/cloud-parallelstore/latest/V1beta.TransferMetadataOptions.Uid). |

### setUid

Optional. The UID preservation behavior.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Uid](https://docs.cloud.google.com/php/docs/reference/cloud-parallelstore/latest/V1beta.TransferMetadataOptions.Uid). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getGid

Optional. The GID preservation behavior.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Gid](https://docs.cloud.google.com/php/docs/reference/cloud-parallelstore/latest/V1beta.TransferMetadataOptions.Gid). |

### setGid

Optional. The GID preservation behavior.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Gid](https://docs.cloud.google.com/php/docs/reference/cloud-parallelstore/latest/V1beta.TransferMetadataOptions.Gid). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMode

Optional. The mode preservation behavior.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Mode](https://docs.cloud.google.com/php/docs/reference/cloud-parallelstore/latest/V1beta.TransferMetadataOptions.Mode). |

### setMode

Optional. The mode preservation behavior.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Mode](https://docs.cloud.google.com/php/docs/reference/cloud-parallelstore/latest/V1beta.TransferMetadataOptions.Mode). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |