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 \ V1Methods
__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 |
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 |
Enum of type ThreatType. |
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
Enum of type ThreatType. |
| 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 |
ComputeThreatListDiffRequest\Constraints|null |
|
hasConstraints
clearConstraints
setConstraints
Required. The constraints associated with this request.
| Parameter | |
|---|---|
| Name | Description |
var |
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 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 |
ComputeThreatListDiffRequest\Constraints
Required. The constraints associated with this request. |
| Returns | |
|---|---|
| Type | Description |
ComputeThreatListDiffRequest |
|