# Google Cloud Private Catalog V1beta1 Client - Class AssetReference (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 AssetReference.

Defines the reference of an asset belonging to a product.

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

## Namespace

Google \\ Cloud \\ PrivateCatalog \\ V1beta1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ id` | `string` Output only. A unique identifier among asset references in a product. |
| `↳ description` | `string` Output only. The human-readable description of the referenced asset. Maximum 256 characters in length. |
| `↳ inputs` | `https://docs.cloud.google.com/php/docs/reference/cloud-private-catalog/latest/V1beta1.Inputs` Output only. The definition of input parameters to hydrate the asset template. |
| `↳ validation_status` | `int` Output only. The current state of the asset reference. |
| `↳ validation_operation` | `Google\LongRunning\Operation` Output only. The validation process metadata. |
| `↳ asset` | `string` Output only. The asset resource name if an asset is hosted by Private Catalog. |
| `↳ gcs_path` | `string` Output only. The cloud storage object path. |
| `↳ git_source` | `https://docs.cloud.google.com/php/docs/reference/cloud-private-catalog/latest/V1beta1.GitSource` Output only. The git source. |
| `↳ gcs_source` | `https://docs.cloud.google.com/php/docs/reference/cloud-private-catalog/latest/V1beta1.GcsSource` Output only. The cloud storage source. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The creation timestamp of the asset reference. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The last update timestamp of the asset reference. |
| `↳ version` | `string` The version of the source used for this asset reference. |

### getId

Output only. A unique identifier among asset references in a product.

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

### setId

Output only. A unique identifier among asset references in a product.

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

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

### getDescription

Output only. The human-readable description of the referenced asset. Maximum 256
characters in length.

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

### setDescription

Output only. The human-readable description of the referenced asset. Maximum 256
characters in length.

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

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

### getInputs

Output only. The definition of input parameters to hydrate the asset template.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-private-catalog/latest/V1beta1.Inputs|null` |   |

### hasInputs

### clearInputs

### setInputs

Output only. The definition of input parameters to hydrate the asset template.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-private-catalog/latest/V1beta1.Inputs` |

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

### getValidationStatus

Output only. The current state of the asset reference.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [AssetValidationState](https://docs.cloud.google.com/php/docs/reference/cloud-private-catalog/latest/V1beta1.AssetReference.AssetValidationState). |

### setValidationStatus

Output only. The current state of the asset reference.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [AssetValidationState](https://docs.cloud.google.com/php/docs/reference/cloud-private-catalog/latest/V1beta1.AssetReference.AssetValidationState). |

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

### getValidationOperation

Output only. The validation process metadata.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\LongRunning\Operation|null` |   |

### hasValidationOperation

### clearValidationOperation

### setValidationOperation

Output only. The validation process metadata.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\LongRunning\Operation` |

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

### getAsset

Output only. The asset resource name if an asset is hosted by Private Catalog.

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

### hasAsset

### setAsset

Output only. The asset resource name if an asset is hosted by Private Catalog.

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

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

### getGcsPath

Output only. The cloud storage object path.

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

### hasGcsPath

### setGcsPath

Output only. The cloud storage object path.

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

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

### getGitSource

Output only. The git source.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-private-catalog/latest/V1beta1.GitSource|null` |   |

### hasGitSource

### setGitSource

Output only. The git source.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-private-catalog/latest/V1beta1.GitSource` |

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

### getGcsSource

Output only. The cloud storage source.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-private-catalog/latest/V1beta1.GcsSource|null` |   |

### hasGcsSource

### clearGcsSource

### setGcsSource

Output only. The cloud storage source.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-private-catalog/latest/V1beta1.GcsSource` |

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

### getCreateTime

Output only. The creation timestamp of the asset reference.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The creation timestamp of the asset reference.

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

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

### getUpdateTime

Output only. The last update timestamp of the asset reference.

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

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The last update timestamp of the asset reference.

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

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

### getVersion

The version of the source used for this asset reference.

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

### setVersion

The version of the source used for this asset reference.

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

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

### getSource

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