Google Cloud Web Risk V1 Client - Class ThreatDiscovery (1.5.4)

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 array

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

setPlatform

Platform on which the threat was discovered.

Parameter
Name Description
var int
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
Google\Protobuf\Internal\RepeatedField

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