public sealed class RawHashes : IMessage<RawHashes>, IEquatable<RawHashes>, IDeepCloneable<RawHashes>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Web Risk v1 API class 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.
Used for sending ThreatEntryAdditons to clients that do not support compression, or when sending non-4-byte hashes to clients that do support compression.
Implements
IMessageRawHashes, IEquatableRawHashes, IDeepCloneableRawHashes, IBufferMessage, IMessageNamespace
Google.Cloud.WebRisk.V1Assembly
Google.Cloud.WebRisk.V1.dll
Constructors
RawHashes()
public RawHashes()
RawHashes(RawHashes)
public RawHashes(RawHashes other)
Parameter | |
---|---|
Name | Description |
other |
RawHashes |
Properties
PrefixSize
public int PrefixSize { get; set; }
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.
Property Value | |
---|---|
Type | Description |
int |
RawHashes_
public ByteString RawHashes_ { get; set; }
The hashes, in binary format, concatenated into one long string. Hashes are sorted in lexicographic order. For JSON API users, hashes are base64-encoded.
Property Value | |
---|---|
Type | Description |
ByteString |