# Google Cloud Web Security Scanner V1 Client - Class Xss (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 Xss.

Information reported for an XSS.

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

## Namespace

Google \\ Cloud \\ WebSecurityScanner \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ stack_traces` | `string[]` Stack traces leading to the point where the XSS occurred. |
| `↳ error_message` | `string` An error message generated by a javascript breakage. |
| `↳ attack_vector` | `int` The attack vector of the payload triggering this XSS. |
| `↳ stored_xss_seeding_url` | `string` The reproduction url for the seeding POST request of a Stored XSS. |

### getStackTraces

Stack traces leading to the point where the XSS occurred.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setStackTraces

Stack traces leading to the point where the XSS occurred.

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

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

### getErrorMessage

An error message generated by a javascript breakage.

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

### setErrorMessage

An error message generated by a javascript breakage.

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

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

### getAttackVector

The attack vector of the payload triggering this XSS.

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

### setAttackVector

The attack vector of the payload triggering this XSS.

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

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

### getStoredXssSeedingUrl

The reproduction url for the seeding POST request of a Stored XSS.

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

### setStoredXssSeedingUrl

The reproduction url for the seeding POST request of a Stored XSS.

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

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