# Google Cloud Migration Center V1 Client - Class AssetFrame (1.2.3)

1.2.3 (latest) 1.2.2 1.1.2 1.0.3 0.4.5 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Migration Center V1 Client class AssetFrame.

Contains data reported from an inventory source on an asset.

Generated from protobuf message `google.cloud.migrationcenter.v1.AssetFrame`

## Namespace

Google \\ Cloud \\ MigrationCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ machine_details` | `https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.MachineDetails` Asset information specific for virtual machines. |
| `↳ report_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The time the data was reported. |
| `↳ labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Labels as key value pairs. |
| `↳ attributes` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Generic asset attributes. |
| `↳ performance_samples` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.PerformanceSample>` Asset performance data samples. Samples that are from more than 40 days ago or after tomorrow are ignored. |
| `↳ trace_token` | `string` Optional. Trace token is optionally provided to assist with debugging and traceability. |

### getMachineDetails

Asset information specific for virtual machines.

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

### hasMachineDetails

### setMachineDetails

Asset information specific for virtual machines.

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

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

### getReportTime

The time the data was reported.

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

### hasReportTime

### clearReportTime

### setReportTime

The time the data was reported.

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

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

### getLabels

Labels as key value pairs.

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

### setLabels

Labels as key value pairs.

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

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

### getAttributes

Generic asset attributes.

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

### setAttributes

Generic asset attributes.

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

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

### getPerformanceSamples

Asset performance data samples.

Samples that are from more than 40 days ago or after tomorrow are ignored.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.PerformanceSample>` |   |

### setPerformanceSamples

Asset performance data samples.

Samples that are from more than 40 days ago or after tomorrow are ignored.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.PerformanceSample>` |

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

### getTraceToken

Optional. Trace token is optionally provided to assist with debugging and
traceability.

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

### setTraceToken

Optional. Trace token is optionally provided to assist with debugging and
traceability.

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

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

### getFrameData

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