# Google Cloud Web Risk V1 Client - Class ThreatDiscovery (2.3.0)

2.3.0 (latest) 2.2.2 2.1.1 2.0.3 1.5.5 1.4.4 1.3.0 1.2.7 Reference documentation and code samples for the Google Cloud Web Risk V1 Client class ThreatDiscovery.

Details about how the threat was discovered.

Generated from protobuf message `google.cloud.webrisk.v1.ThreatDiscovery`

## Namespace

Google \\ Cloud \\ WebRisk \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ platform` | `int` Platform on which the threat was discovered. |
| `↳ region_codes` | `string[]` CLDR region code of the countries/regions the URI poses a threat ordered from most impact to least impact. Example: "US" for United States. |

### getPlatform

Platform on which the threat was discovered.

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

### setPlatform

Platform on which the threat was discovered.

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

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

### getRegionCodes

CLDR region code of the countries/regions the URI poses a threat ordered
from most impact to least impact. Example: "US" for United States.

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

### setRegionCodes

CLDR region code of the countries/regions the URI poses a threat ordered
from most impact to least impact. Example: "US" for United States.

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

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