# Google Cloud Private Catalog V1beta1 Client - Class Version (0.6.3)

0.6.3 (latest) 0.6.2 0.5.3 0.4.6 0.3.3 0.2.13

> [!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 Private Catalog V1beta1 Client class Version.

The consumer representation of a version which is a child resource under a
`Product` with asset data.

Generated from protobuf message `google.cloud.privatecatalog.v1beta1.Version`

## Namespace

Google \\ Cloud \\ PrivateCatalog \\ V1beta1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. The resource name of the version, in the format `catalogs/{catalog}/products/{product}/versions/[a-z][-a-z0-9]*[a-z0-9]`. A unique identifier for the version under a product. |
| `↳ description` | `string` Output only. The user-supplied description of the version. Maximum of 256 characters. |
| `↳ asset` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct` Output only. The asset which has been validated and is ready to be provisioned. See google.cloud.privatecatalogproducer.v1beta.Version.asset for details. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time when the version was created. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time when the version was last updated. |

### getName

Output only. The resource name of the version, in the format
`catalogs/{catalog}/products/{product}/versions/[a-z][-a-z0-9]*[a-z0-9]`.

A unique identifier for the version under a product.

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

### setName

Output only. The resource name of the version, in the format
`catalogs/{catalog}/products/{product}/versions/[a-z][-a-z0-9]*[a-z0-9]`.

A unique identifier for the version under a product.

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

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

### getDescription

Output only. The user-supplied description of the version. Maximum of 256
characters.

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

### setDescription

Output only. The user-supplied description of the version. Maximum of 256
characters.

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

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

### getAsset

Output only. The asset which has been validated and is ready to be
provisioned. See
google.cloud.privatecatalogproducer.v1beta.Version.asset for details.

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

### hasAsset

### clearAsset

### setAsset

Output only. The asset which has been validated and is ready to be
provisioned. See
google.cloud.privatecatalogproducer.v1beta.Version.asset for details.

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

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

### getCreateTime

Output only. The time when the version was created.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The time when the version was created.

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

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

### getUpdateTime

Output only. The time when the version was last updated.

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

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The time when the version was last updated.

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

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