Google Cloud Web Risk V1 Client - Class ComputeThreatListDiffRequest (1.5.0)

Reference documentation and code samples for the Google Cloud Web Risk V1 Client class ComputeThreatListDiffRequest.

Describes an API diff request.

Generated from protobuf message google.cloud.webrisk.v1.ComputeThreatListDiffRequest

Namespace

Google \ Cloud \ WebRisk \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ threat_type int

Required. The threat list to update. Only a single ThreatType should be specified per request. If you want to handle multiple ThreatTypes, you must make one request per ThreatType.

↳ version_token string

The current version token of the client for the requested list (the client version that was received from the last successful diff). If the client does not have a version token (this is the first time calling ComputeThreatListDiff), this may be left empty and a full database snapshot will be returned.

↳ constraints Google\Cloud\WebRisk\V1\ComputeThreatListDiffRequest\Constraints

Required. The constraints associated with this request.

getThreatType

Required. The threat list to update. Only a single ThreatType should be specified per request. If you want to handle multiple ThreatTypes, you must make one request per ThreatType.

Returns
TypeDescription
int

setThreatType

Required. The threat list to update. Only a single ThreatType should be specified per request. If you want to handle multiple ThreatTypes, you must make one request per ThreatType.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getVersionToken

The current version token of the client for the requested list (the client version that was received from the last successful diff).

If the client does not have a version token (this is the first time calling ComputeThreatListDiff), this may be left empty and a full database snapshot will be returned.

Returns
TypeDescription
string

setVersionToken

The current version token of the client for the requested list (the client version that was received from the last successful diff).

If the client does not have a version token (this is the first time calling ComputeThreatListDiff), this may be left empty and a full database snapshot will be returned.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getConstraints

Required. The constraints associated with this request.

Returns
TypeDescription
Google\Cloud\WebRisk\V1\ComputeThreatListDiffRequest\Constraints|null

hasConstraints

clearConstraints

setConstraints

Required. The constraints associated with this request.

Parameter
NameDescription
var Google\Cloud\WebRisk\V1\ComputeThreatListDiffRequest\Constraints
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
threatType int

Required. The threat list to update. Only a single ThreatType should be specified per request. If you want to handle multiple ThreatTypes, you must make one request per ThreatType. For allowed values, use constants defined on Google\Cloud\WebRisk\V1\ThreatType

versionToken string

The current version token of the client for the requested list (the client version that was received from the last successful diff). If the client does not have a version token (this is the first time calling ComputeThreatListDiff), this may be left empty and a full database snapshot will be returned.

constraints Google\Cloud\WebRisk\V1\ComputeThreatListDiffRequest\Constraints

Required. The constraints associated with this request.

Returns
TypeDescription
Google\Cloud\WebRisk\V1\ComputeThreatListDiffRequest