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

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

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
int

setPlatform

Platform on which the threat was discovered.

Parameter
NameDescription
var int
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string[]
Returns
TypeDescription
$this