Google Cloud Web Risk V1beta1 Client - Class ThreatEntryAdditions (1.5.0)

Reference documentation and code samples for the Google Cloud Web Risk V1beta1 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.v1beta1.ThreatEntryAdditions

Namespace

Google \ Cloud \ WebRisk \ V1beta1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ raw_hashes array<Google\Cloud\WebRisk\V1beta1\RawHashes>

The raw SHA256-formatted entries. Repeated to allow returning sets of hashes with different prefix sizes.

↳ rice_hashes Google\Cloud\WebRisk\V1beta1\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
TypeDescription
Google\Protobuf\Internal\RepeatedField

setRawHashes

The raw SHA256-formatted entries.

Repeated to allow returning sets of hashes with different prefix sizes.

Parameter
NameDescription
var array<Google\Cloud\WebRisk\V1beta1\RawHashes>
Returns
TypeDescription
$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
TypeDescription
Google\Cloud\WebRisk\V1beta1\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
NameDescription
var Google\Cloud\WebRisk\V1beta1\RiceDeltaEncoding
Returns
TypeDescription
$this