Reference documentation and code samples for the google-cloud-webrisk class Google::Cloud::Webrisk::V1beta1::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.
Inherits
- Object
Methods
#raw_hashes
def raw_hashes() -> Array<Google::Cloud::Webrisk::V1beta1::RawHashes>
Returns
- (Array<Google::Cloud::Webrisk::V1beta1::RawHashes>) — The raw SHA256-formatted entries. Repeated to allow returning sets of hashes with different prefix sizes.
#raw_hashes=
def raw_hashes=(value) -> Array<Google::Cloud::Webrisk::V1beta1::RawHashes>
Parameter
- value (Array<Google::Cloud::Webrisk::V1beta1::RawHashes>) — The raw SHA256-formatted entries. Repeated to allow returning sets of hashes with different prefix sizes.
Returns
- (Array<Google::Cloud::Webrisk::V1beta1::RawHashes>) — The raw SHA256-formatted entries. Repeated to allow returning sets of hashes with different prefix sizes.
#rice_hashes
def rice_hashes() -> Google::Cloud::Webrisk::V1beta1::RiceDeltaEncoding
Returns
- (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.
#rice_hashes=
def rice_hashes=(value) -> Google::Cloud::Webrisk::V1beta1::RiceDeltaEncoding
Parameter
- value (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.
Returns
- (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.