# google-cloud-webrisk - Class Google::Cloud::Webrisk::V1beta1::SearchHashesRequest (v0.6.1)

Reference documentation and code samples for the google-cloud-webrisk class Google::Cloud::Webrisk::V1beta1::SearchHashesRequest.

Request to return full hashes matched by the provided hash prefixes.

## Inherits

- Object

## Methods

### #hash_prefix

    def hash_prefix() -> String

**Returns**

- (String) --- A hash prefix, consisting of the most significant 4-32 bytes of a SHA256 hash. For JSON requests, this field is base64-encoded.

### #hash_prefix=

    def hash_prefix=(value) -> String

**Parameter**

- **value** (String) --- A hash prefix, consisting of the most significant 4-32 bytes of a SHA256 hash. For JSON requests, this field is base64-encoded.
**Returns**

- (String) --- A hash prefix, consisting of the most significant 4-32 bytes of a SHA256 hash. For JSON requests, this field is base64-encoded.

### #threat_types

    def threat_types() -> Array<Google::Cloud::Webrisk::V1beta1::ThreatType>

**Returns**

- (Array\<[Google::Cloud::Webrisk::V1beta1::ThreatType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-webrisk/latest/Google-Cloud-Webrisk-V1beta1-ThreatType)\>) --- Required. The ThreatLists to search in.

### #threat_types=

    def threat_types=(value) -> Array<Google::Cloud::Webrisk::V1beta1::ThreatType>

**Parameter**

- **value** (Array\<[Google::Cloud::Webrisk::V1beta1::ThreatType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-webrisk/latest/Google-Cloud-Webrisk-V1beta1-ThreatType)\>) --- Required. The ThreatLists to search in.
**Returns**

- (Array\<[Google::Cloud::Webrisk::V1beta1::ThreatType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-webrisk/latest/Google-Cloud-Webrisk-V1beta1-ThreatType)\>) --- Required. The ThreatLists to search in.