# Google Cloud Web Risk v1beta1 API - Class SearchHashesResponse.Types.ThreatHash (3.0.0-beta06)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [3.0.0-beta06 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/latest/Google.Cloud.WebRisk.V1Beta1.SearchHashesResponse.Types.ThreatHash)
- [3.0.0-beta05](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/3.0.0-beta05/Google.Cloud.WebRisk.V1Beta1.SearchHashesResponse.Types.ThreatHash)
- [2.0.0-beta05](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/2.0.0-beta05/Google.Cloud.WebRisk.V1Beta1.SearchHashesResponse.Types.ThreatHash)

    public sealed class SearchHashesResponse.Types.ThreatHash : IMessage<SearchHashesResponse.Types.ThreatHash>, IEquatable<SearchHashesResponse.Types.ThreatHash>, IDeepCloneable<SearchHashesResponse.Types.ThreatHash>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Web Risk v1beta1 API class SearchHashesResponse.Types.ThreatHash.

Contains threat information on a matching hash.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> SearchHashesResponse.Types.ThreatHash

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SearchHashesResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/latest/Google.Cloud.WebRisk.V1Beta1.SearchHashesResponse)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/latest/Google.Cloud.WebRisk.V1Beta1.SearchHashesResponse.Types)[ThreatHash](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/latest/Google.Cloud.WebRisk.V1Beta1.SearchHashesResponse.Types.ThreatHash), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SearchHashesResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/latest/Google.Cloud.WebRisk.V1Beta1.SearchHashesResponse)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/latest/Google.Cloud.WebRisk.V1Beta1.SearchHashesResponse.Types)[ThreatHash](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/latest/Google.Cloud.WebRisk.V1Beta1.SearchHashesResponse.Types.ThreatHash), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SearchHashesResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/latest/Google.Cloud.WebRisk.V1Beta1.SearchHashesResponse)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/latest/Google.Cloud.WebRisk.V1Beta1.SearchHashesResponse.Types)[ThreatHash](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/latest/Google.Cloud.WebRisk.V1Beta1.SearchHashesResponse.Types.ThreatHash), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.WebRisk.V1Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/latest/Google.Cloud.WebRisk.V1Beta1)

## Assembly

Google.Cloud.WebRisk.V1Beta1.dll

## Constructors

### ThreatHash()

    public ThreatHash()

### ThreatHash(ThreatHash)

    public ThreatHash(SearchHashesResponse.Types.ThreatHash other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/latest/Google.Cloud.WebRisk.V1Beta1.SearchHashesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/latest/Google.Cloud.WebRisk.V1Beta1.SearchHashesResponse.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/latest/Google.Cloud.WebRisk.V1Beta1.SearchHashesResponse.Types.ThreatHash` |

## Properties

### ExpireTime

    public Timestamp ExpireTime { get; set; }

The cache lifetime for the returned match. Clients must not cache this
response past this timestamp to avoid false positives.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### Hash

    public ByteString Hash { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.ByteString.html` |   |

### ThreatTypes

    public RepeatedField<ThreatType> ThreatTypes { get; }

The ThreatList this threat belongs to.
This must contain at least one entry.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/latest/Google.Cloud.WebRisk.V1Beta1.ThreatType` |   |