# Web Risk V1 API - Class Google::Cloud::WebRisk::V1::RawHashes (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::RawHashes.

The uncompressed threat entries in hash format.
Hashes can be anywhere from 4 to 32 bytes in size. A large majority are 4
bytes, but some hashes are lengthened if they collide with the hash of a
popular URI.


<br />

Used for sending ThreatEntryAdditons to clients that do not support
compression, or when sending non-4-byte hashes to clients that do support
compression.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #prefix_size

    def prefix_size() -> ::Integer

**Returns**

- (::Integer) --- The number of bytes for each prefix encoded below. This field can be anywhere from 4 (shortest prefix) to 32 (full SHA256 hash). In practice this is almost always 4, except in exceptional circumstances.

### #prefix_size=

    def prefix_size=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The number of bytes for each prefix encoded below. This field can be anywhere from 4 (shortest prefix) to 32 (full SHA256 hash). In practice this is almost always 4, except in exceptional circumstances.
**Returns**

- (::Integer) --- The number of bytes for each prefix encoded below. This field can be anywhere from 4 (shortest prefix) to 32 (full SHA256 hash). In practice this is almost always 4, except in exceptional circumstances.

### #raw_hashes

    def raw_hashes() -> ::String

**Returns**

- (::String) --- The hashes, in binary format, concatenated into one long string. Hashes are sorted in lexicographic order. For JSON API users, hashes are base64-encoded.

### #raw_hashes=

    def raw_hashes=(value) -> ::String

**Parameter**

- **value** (::String) --- The hashes, in binary format, concatenated into one long string. Hashes are sorted in lexicographic order. For JSON API users, hashes are base64-encoded.
**Returns**

- (::String) --- The hashes, in binary format, concatenated into one long string. Hashes are sorted in lexicographic order. For JSON API users, hashes are base64-encoded.