Reference documentation and code samples for the Google Cloud Web Risk V1 Client class ThreatEntryAdditions.
Contains the set of entries to add to a local database.
May contain a combination of compressed and raw data in a single response.
Generated from protobuf message google.cloud.webrisk.v1.ThreatEntryAdditions
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ raw_hashes |
array<Google\Cloud\WebRisk\V1\RawHashes>
The raw SHA256-formatted entries. Repeated to allow returning sets of hashes with different prefix sizes. |
↳ rice_hashes |
Google\Cloud\WebRisk\V1\RiceDeltaEncoding
The encoded 4-byte prefixes of SHA256-formatted entries, using a Golomb-Rice encoding. The hashes are converted to uint32, sorted in ascending order, then delta encoded and stored as encoded_data. |
getRawHashes
The raw SHA256-formatted entries.
Repeated to allow returning sets of hashes with different prefix sizes.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setRawHashes
The raw SHA256-formatted entries.
Repeated to allow returning sets of hashes with different prefix sizes.
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\WebRisk\V1\RawHashes>
|
Returns | |
---|---|
Type | Description |
$this |
getRiceHashes
The encoded 4-byte prefixes of SHA256-formatted entries, using a Golomb-Rice encoding. The hashes are converted to uint32, sorted in ascending order, then delta encoded and stored as encoded_data.
Returns | |
---|---|
Type | Description |
Google\Cloud\WebRisk\V1\RiceDeltaEncoding|null |
hasRiceHashes
clearRiceHashes
setRiceHashes
The encoded 4-byte prefixes of SHA256-formatted entries, using a Golomb-Rice encoding. The hashes are converted to uint32, sorted in ascending order, then delta encoded and stored as encoded_data.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\WebRisk\V1\RiceDeltaEncoding
|
Returns | |
---|---|
Type | Description |
$this |