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

Contains threat information on a matching hash.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #expire_time

    def expire_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_risk-v1/latest/Google-Protobuf-Timestamp)) --- The cache lifetime for the returned match. Clients must not cache this response past this timestamp to avoid false positives.

### #expire_time=

    def expire_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_risk-v1/latest/Google-Protobuf-Timestamp)) --- The cache lifetime for the returned match. Clients must not cache this response past this timestamp to avoid false positives.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_risk-v1/latest/Google-Protobuf-Timestamp)) --- The cache lifetime for the returned match. Clients must not cache this response past this timestamp to avoid false positives.

### #hash

    def hash() -> ::String

**Returns**

- (::String) --- A 32 byte SHA256 hash. This field is in binary format. For JSON requests, hashes are base64-encoded.

### #hash=

    def hash=(value) -> ::String

**Parameter**

- **value** (::String) --- A 32 byte SHA256 hash. This field is in binary format. For JSON requests, hashes are base64-encoded.
**Returns**

- (::String) --- A 32 byte SHA256 hash. This field is in binary format. For JSON requests, hashes are base64-encoded.

### #threat_types

    def threat_types() -> ::Array<::Google::Cloud::WebRisk::V1::ThreatType>

**Returns**

- (::Array\<[::Google::Cloud::WebRisk::V1::ThreatType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_risk-v1/latest/Google-Cloud-WebRisk-V1-ThreatType)\>) --- The ThreatList this threat belongs to. This must contain at least one entry.

### #threat_types=

    def threat_types=(value) -> ::Array<::Google::Cloud::WebRisk::V1::ThreatType>

**Parameter**

- **value** (::Array\<[::Google::Cloud::WebRisk::V1::ThreatType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_risk-v1/latest/Google-Cloud-WebRisk-V1-ThreatType)\>) --- The ThreatList this threat belongs to. This must contain at least one entry.
**Returns**

- (::Array\<[::Google::Cloud::WebRisk::V1::ThreatType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_risk-v1/latest/Google-Cloud-WebRisk-V1-ThreatType)\>) --- The ThreatList this threat belongs to. This must contain at least one entry.