# Web Risk V1 API - Class Google::Cloud::WebRisk::V1::ThreatEntryAdditions (v1.8.0)

1.8.0 (latest) 1.7.1 1.6.1 1.5.0 1.4.0 1.3.1 1.2.0 1.1.0 1.0.2 0.12.0 0.11.2 0.10.0 0.9.1 0.8.0 0.7.0 0.6.0 0.5.0 0.4.5 Reference documentation and code samples for the Web Risk V1 API class Google::Cloud::WebRisk::V1::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

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #raw_hashes

    def raw_hashes() -> ::Array<::Google::Cloud::WebRisk::V1::RawHashes>

**Returns**

- (::Array\<[::Google::Cloud::WebRisk::V1::RawHashes](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_risk-v1/latest/Google-Cloud-WebRisk-V1-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::V1::RawHashes>

**Parameter**

- **value** (::Array\<[::Google::Cloud::WebRisk::V1::RawHashes](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_risk-v1/latest/Google-Cloud-WebRisk-V1-RawHashes)\>) --- The raw SHA256-formatted entries. Repeated to allow returning sets of hashes with different prefix sizes.
**Returns**

- (::Array\<[::Google::Cloud::WebRisk::V1::RawHashes](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_risk-v1/latest/Google-Cloud-WebRisk-V1-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::V1::RiceDeltaEncoding

**Returns**

- ([::Google::Cloud::WebRisk::V1::RiceDeltaEncoding](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_risk-v1/latest/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.

### #rice_hashes=

    def rice_hashes=(value) -> ::Google::Cloud::WebRisk::V1::RiceDeltaEncoding

**Parameter**

- **value** ([::Google::Cloud::WebRisk::V1::RiceDeltaEncoding](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_risk-v1/latest/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.
**Returns**

- ([::Google::Cloud::WebRisk::V1::RiceDeltaEncoding](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_risk-v1/latest/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.