Reference documentation and code samples for the Google Cloud Web Risk V1 Client class ComputeThreatListDiffRequest.
Describes an API diff request.
Generated from protobuf messagegoogle.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.
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.
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 onThreatType
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Web Risk V1 Client - Class ComputeThreatListDiffRequest (2.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.1 (latest)](/php/docs/reference/cloud-web-risk/latest/V1.ComputeThreatListDiffRequest)\n- [2.1.0](/php/docs/reference/cloud-web-risk/2.1.0/V1.ComputeThreatListDiffRequest)\n- [2.0.3](/php/docs/reference/cloud-web-risk/2.0.3/V1.ComputeThreatListDiffRequest)\n- [1.5.5](/php/docs/reference/cloud-web-risk/1.5.5/V1.ComputeThreatListDiffRequest)\n- [1.4.4](/php/docs/reference/cloud-web-risk/1.4.4/V1.ComputeThreatListDiffRequest)\n- [1.3.0](/php/docs/reference/cloud-web-risk/1.3.0/V1.ComputeThreatListDiffRequest)\n- [1.2.7](/php/docs/reference/cloud-web-risk/1.2.7/V1.ComputeThreatListDiffRequest) \nReference documentation and code samples for the Google Cloud Web Risk V1 Client class ComputeThreatListDiffRequest.\n\nDescribes an API diff request.\n\nGenerated from protobuf message `google.cloud.webrisk.v1.ComputeThreatListDiffRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ WebRisk \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getThreatType\n\nRequired. The threat list to update. Only a single ThreatType should be\nspecified per request. If you want to handle multiple ThreatTypes, you must\nmake one request per ThreatType.\n\n### setThreatType\n\nRequired. The threat list to update. Only a single ThreatType should be\nspecified per request. If you want to handle multiple ThreatTypes, you must\nmake one request per ThreatType.\n\n### getVersionToken\n\nThe current version token of the client for the requested list (the\nclient version that was received from the last successful diff).\n\nIf the client does not have a version token (this is the first time calling\nComputeThreatListDiff), this may be left empty and a full database\nsnapshot will be returned.\n\n### setVersionToken\n\nThe current version token of the client for the requested list (the\nclient version that was received from the last successful diff).\n\nIf the client does not have a version token (this is the first time calling\nComputeThreatListDiff), this may be left empty and a full database\nsnapshot will be returned.\n\n### getConstraints\n\nRequired. The constraints associated with this request.\n\n### hasConstraints\n\n### clearConstraints\n\n### setConstraints\n\nRequired. The constraints associated with this request.\n\n### static::build"]]