# Google Cloud Web Security Scanner V1 Client - Class ScanRunWarningTrace (1.2.0)

1.2.0 (latest) 1.1.2 1.0.5 0.8.5 0.7.18 Reference documentation and code samples for the Google Cloud Web Security Scanner V1 Client class ScanRunWarningTrace.

Output only.

Defines a warning trace message for ScanRun. Warning traces provide customers
with useful information that helps make the scanning process more effective.

Generated from protobuf message `google.cloud.websecurityscanner.v1.ScanRunWarningTrace`

## Namespace

Google \\ Cloud \\ WebSecurityScanner \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ code` | `int` Output only. Indicates the warning code. |

### getCode

Output only. Indicates the warning code.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Code](https://docs.cloud.google.com/php/docs/reference/cloud-web-security-scanner/latest/V1.ScanRunWarningTrace.Code). |

### setCode

Output only. Indicates the warning code.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Code](https://docs.cloud.google.com/php/docs/reference/cloud-web-security-scanner/latest/V1.ScanRunWarningTrace.Code). |

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