# Google Cloud Asset V1 Client - Class TemporalAsset (2.3.3)

2.3.3 (latest) 2.3.2 2.2.3 2.1.3 2.0.1 1.16.4 1.14.1 1.13.2 1.12.2 1.11.3 1.10.2 1.9.2 Reference documentation and code samples for the Google Cloud Asset V1 Client class TemporalAsset.

An asset in Google Cloud and its temporal metadata, including the time window
when it was observed and its status during that window.

Generated from protobuf message `google.cloud.asset.v1.TemporalAsset`

## Namespace

Google \\ Cloud \\ Asset \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ window` | `https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.TimeWindow` The time window when the asset data and state was observed. |
| `↳ deleted` | `bool` Whether the asset has been deleted or not. |
| `↳ asset` | `https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.Asset` An asset in Google Cloud. |
| `↳ prior_asset_state` | `int` State of prior_asset. |
| `↳ prior_asset` | `https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.Asset` Prior copy of the asset. Populated if prior_asset_state is PRESENT. Currently this is only set for responses in Real-Time Feed. |

### getWindow

The time window when the asset data and state was observed.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.TimeWindow|null` |   |

### hasWindow

### clearWindow

### setWindow

The time window when the asset data and state was observed.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.TimeWindow` |

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

### getDeleted

Whether the asset has been deleted or not.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setDeleted

Whether the asset has been deleted or not.

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

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

### getAsset

An asset in Google Cloud.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.Asset|null` |   |

### hasAsset

### clearAsset

### setAsset

An asset in Google Cloud.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.Asset` |

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

### getPriorAssetState

State of prior_asset.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [PriorAssetState](https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.TemporalAsset.PriorAssetState). |

### setPriorAssetState

State of prior_asset.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [PriorAssetState](https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.TemporalAsset.PriorAssetState). |

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

### getPriorAsset

Prior copy of the asset. Populated if prior_asset_state is PRESENT.

Currently this is only set for responses in Real-Time Feed.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.Asset|null` |   |

### hasPriorAsset

### clearPriorAsset

### setPriorAsset

Prior copy of the asset. Populated if prior_asset_state is PRESENT.

Currently this is only set for responses in Real-Time Feed.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.Asset` |

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