Class SearchHashesResponse.Types.ThreatHash (1.2.0)

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

Contains threat information on a matching hash.

Inheritance

Object > SearchHashesResponse.Types.ThreatHash

Namespace

Google.Cloud.WebRisk.V1

Assembly

Google.Cloud.WebRisk.V1.dll

Constructors

ThreatHash()

public ThreatHash()

ThreatHash(SearchHashesResponse.Types.ThreatHash)

public ThreatHash(SearchHashesResponse.Types.ThreatHash other)
Parameter
NameDescription
otherSearchHashesResponse.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
TypeDescription
Timestamp

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
TypeDescription
ByteString

ThreatTypes

public RepeatedField<ThreatType> ThreatTypes { get; }

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

Property Value
TypeDescription
RepeatedField<ThreatType>