# Google Cloud Config Delivery V1beta Client - Class Variant (0.3.3)

0.3.3 (latest) 0.3.2 0.2.1 0.1.0

> [!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 Config Delivery V1beta Client class Variant.

Variant represents the content of a `ResourceBundle` variant.

Generated from protobuf message `google.cloud.configdelivery.v1beta.Variant`

## Namespace

Google \\ Cloud \\ ConfigDelivery \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Optional. labels to represent any metadata associated with the variant. |
| `↳ resources` | `string[]` Required. Input only. Unordered list. resources contain the kubernetes manifests (YAMLs) for this variant. |
| `↳ name` | `string` Identifier. Name follows format of projects/{project}/locations/{location}/resourceBundles/{resource_bundle}/releases/{release}/variants/{variant} |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. \[Output only\] Create time stamp |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. \[Output only\] Update time stamp |

### getLabels

Optional. labels to represent any metadata associated with the variant.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setLabels

Optional. labels to represent any metadata associated with the variant.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

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

### getResources

Required. Input only. Unordered list. resources contain the kubernetes
manifests (YAMLs) for this variant.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setResources

Required. Input only. Unordered list. resources contain the kubernetes
manifests (YAMLs) for this variant.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

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

### getName

Identifier. Name follows format of
projects/{project}/locations/{location}/resourceBundles/{resource_bundle}/releases/{release}/variants/{variant}

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Identifier. Name follows format of
projects/{project}/locations/{location}/resourceBundles/{resource_bundle}/releases/{release}/variants/{variant}

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getCreateTime

Output only. \[Output only\] Create time stamp

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. \[Output only\] Create time stamp

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getUpdateTime

Output only. \[Output only\] Update time stamp

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. \[Output only\] Update time stamp

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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