0.9.0 (latest) 0.8.0 0.7.2 0.5.0 0.4.0 0.3.0 0.2.3 0.1.2 Reference documentation and code samples for the Google Cloud Chronicle Client class Asset.

Information about a compute asset such as a workstation, laptop, phone,
virtual desktop, or VM.

Generated from protobuf message `google.backstory.Asset`

## Namespace

Google \\ Backstory

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ product_object_id` | `string` A vendor-specific identifier to uniquely identify the entity (a GUID or similar). This field can be used as an entity indicator for asset entities. |
| `↳ hostname` | `string` Asset hostname or domain name field. This field can be used as an entity indicator for asset entities. |
| `↳ asset_id` | `string` The asset ID. Value must contain the ':' character. For example, cs:abcdd23434. This field can be used as an entity indicator for asset entities. |
| `↳ ip` | `string[]` A list of IP addresses associated with an asset. This field can be used as an entity indicator for asset entities. |
| `↳ mac` | `string[]` List of MAC addresses associated with an asset. This field can be used as an entity indicator for asset entities. |
| `↳ nat_ip` | `string[]` List of NAT IP addresses associated with an asset. |
| `↳ first_seen_time` | `Google\Protobuf\Timestamp` The first observed time for an asset. The value is calculated on the basis of the first time the identifier was observed. |
| `↳ hardware` | `array<Hardware>` The asset hardware specifications. |
| `↳ platform_software` | `PlatformSoftware` The asset operating system platform software. |
| `↳ software` | `array<Software>` The asset software details. |
| `↳ location` | `Location` Location of the asset. |
| `↳ category` | `string` The category of the asset (e.g. "End User Asset", "Workstation", "Server"). |
| `↳ type` | `int` The type of the asset (e.g. workstation or laptop or server). |
| `↳ network_domain` | `string` The network domain of the asset (e.g. "corp.acme.com") |
| `↳ creation_time` | `Google\Protobuf\Timestamp` Time the asset was created or provisioned. Deprecate: creation_time should be populated in Attribute as generic metadata. |
| `↳ first_discover_time` | `Google\Protobuf\Timestamp` Time the asset was first discovered (by asset management/discoverability software). |
| `↳ last_discover_time` | `Google\Protobuf\Timestamp` Time the asset was last discovered (by asset management/discoverability software). |
| `↳ system_last_update_time` | `Google\Protobuf\Timestamp` Time the asset system or OS was last updated. For all other operations that are not system updates (such as resizing a VM), use Attribute.last_update_time. |
| `↳ last_boot_time` | `Google\Protobuf\Timestamp` Time the asset was last boot started. |
| `↳ labels` | `array<Label>` Metadata labels for the asset. Deprecated: labels should be populated in Attribute as generic metadata. |
| `↳ deployment_status` | `int` The deployment status of the asset for device lifecycle purposes. |
| `↳ vulnerabilities` | `array<Vulnerability>` Vulnerabilities discovered on asset. |
| `↳ attribute` | `Attribute` Generic entity metadata attributes of the asset. |
| `↳ wmi_persistence_item` | `WmiPersistenceItem` Information about a WMI persistence item. |

### getProductObjectId

A vendor-specific identifier to uniquely identify the entity (a GUID or
similar).

This field can be used as an entity indicator for asset entities.

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

### setProductObjectId

A vendor-specific identifier to uniquely identify the entity (a GUID or
similar).

This field can be used as an entity indicator for asset entities.

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

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

### getHostname

Asset hostname or domain name field.

This field can be used as an entity indicator for asset entities.

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

### setHostname

Asset hostname or domain name field.

This field can be used as an entity indicator for asset entities.

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

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

### getAssetId

The asset ID. Value must contain the ':' character. For example,
cs:abcdd23434.

This field can be used as an entity indicator for asset entities.

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

### setAssetId

The asset ID. Value must contain the ':' character. For example,
cs:abcdd23434.

This field can be used as an entity indicator for asset entities.

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

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

### getIp

A list of IP addresses associated with an asset.

This field can be used as an entity indicator for asset entities.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setIp

A list of IP addresses associated with an asset.

This field can be used as an entity indicator for asset entities.

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

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

### getMac

List of MAC addresses associated with an asset.

This field can be used as an entity indicator for asset entities.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setMac

List of MAC addresses associated with an asset.

This field can be used as an entity indicator for asset entities.

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

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

### getNatIp

List of NAT IP addresses associated with an asset.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setNatIp

List of NAT IP addresses associated with an asset.

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

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

### getFirstSeenTime

The first observed time for an asset.

The value is calculated on the basis of the
first time the identifier was observed.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasFirstSeenTime

### clearFirstSeenTime

### setFirstSeenTime

The first observed time for an asset.

The value is calculated on the basis of the
first time the identifier was observed.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getHardware

The asset hardware specifications.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<Hardware>` |   |

### setHardware

The asset hardware specifications.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<Hardware>` |

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

### getPlatformSoftware

The asset operating system platform software.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PlatformSoftware|null` |   |

### hasPlatformSoftware

### clearPlatformSoftware

### setPlatformSoftware

The asset operating system platform software.

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

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

### getSoftware

The asset software details.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<Software>` |   |

### setSoftware

The asset software details.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<Software>` |

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

### getLocation

Location of the asset.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Location|null` |   |

### hasLocation

### clearLocation

### setLocation

Location of the asset.

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

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

### getCategory

The category of the asset (e.g. "End User Asset", "Workstation", "Server").

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

### setCategory

The category of the asset (e.g. "End User Asset", "Workstation", "Server").

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

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

### getType

The type of the asset (e.g. workstation or laptop or server).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [AssetType](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.Asset.AssetType.md.txt). |

### setType

The type of the asset (e.g. workstation or laptop or server).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [AssetType](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.Asset.AssetType.md.txt). |

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

### getNetworkDomain

The network domain of the asset (e.g. "corp.acme.com")

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

### setNetworkDomain

The network domain of the asset (e.g. "corp.acme.com")

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

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

### getCreationTime

Time the asset was created or provisioned.

Deprecate: creation_time should be populated in Attribute as generic
metadata.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasCreationTime

### clearCreationTime

### setCreationTime

Time the asset was created or provisioned.

Deprecate: creation_time should be populated in Attribute as generic
metadata.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getFirstDiscoverTime

Time the asset was first discovered (by asset management/discoverability
software).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasFirstDiscoverTime

### clearFirstDiscoverTime

### setFirstDiscoverTime

Time the asset was first discovered (by asset management/discoverability
software).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getLastDiscoverTime

Time the asset was last discovered (by asset management/discoverability
software).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasLastDiscoverTime

### clearLastDiscoverTime

### setLastDiscoverTime

Time the asset was last discovered (by asset management/discoverability
software).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getSystemLastUpdateTime

Time the asset system or OS was last updated.

For all other operations that are not system updates (such as resizing a
VM), use Attribute.last_update_time.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasSystemLastUpdateTime

### clearSystemLastUpdateTime

### setSystemLastUpdateTime

Time the asset system or OS was last updated.

For all other operations that are not system updates (such as resizing a
VM), use Attribute.last_update_time.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getLastBootTime

Time the asset was last boot started.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasLastBootTime

### clearLastBootTime

### setLastBootTime

Time the asset was last boot started.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getLabels

Metadata labels for the asset.

Deprecated: labels should be populated in Attribute as generic metadata.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<Label>` |   |

### setLabels

Metadata labels for the asset.

Deprecated: labels should be populated in Attribute as generic metadata.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<Label>` |

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

### getDeploymentStatus

The deployment status of the asset for device lifecycle purposes.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [DeploymentStatus](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.Asset.DeploymentStatus.md.txt). |

### setDeploymentStatus

The deployment status of the asset for device lifecycle purposes.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [DeploymentStatus](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.Asset.DeploymentStatus.md.txt). |

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

### getVulnerabilities

Vulnerabilities discovered on asset.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<Vulnerability>` |   |

### setVulnerabilities

Vulnerabilities discovered on asset.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<Vulnerability>` |

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

### getAttribute

Generic entity metadata attributes of the asset.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Attribute|null` |   |

### hasAttribute

### clearAttribute

### setAttribute

Generic entity metadata attributes of the asset.

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

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

### getWmiPersistenceItem

Information about a WMI persistence item.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `WmiPersistenceItem|null` |   |

### hasWmiPersistenceItem

### clearWmiPersistenceItem

### setWmiPersistenceItem

Information about a WMI persistence item.

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

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