Google Cloud Web Risk V1 Client - Class ComputeThreatListDiffRequest (2.0.0-RC1)

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
Name Description
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
Type Description
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
Name Description
var int
Returns
Type Description
$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
Type Description
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
Name Description
var string
Returns
Type Description
$this

getConstraints

Required. The constraints associated with this request.

Returns
Type Description
Google\Cloud\WebRisk\V1\ComputeThreatListDiffRequest\Constraints|null

hasConstraints

clearConstraints

setConstraints

Required. The constraints associated with this request.

Parameter
Name Description
var Google\Cloud\WebRisk\V1\ComputeThreatListDiffRequest\Constraints
Returns
Type Description
$this

static::build

Parameters
Name Description
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
Type Description
Google\Cloud\WebRisk\V1\ComputeThreatListDiffRequest