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
Namespace
Google \ Cloud \ WebRisk \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ raw_hashes |
array<RawHashes>
The raw SHA256-formatted entries. Repeated to allow returning sets of hashes with different prefix sizes. |
↳ rice_hashes |
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<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 |
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 |
RiceDeltaEncoding
|
Returns | |
---|---|
Type | Description |
$this |