package google.security.safebrowsing.v5

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

service SafeBrowsing

safebrowsing.proto:32

The Safe Browsing APIs enable clients to check web resources (most commonly URLs) against Google's constantly updated lists of unsafe web resources.

message FullHash

safebrowsing.proto:220

The full hash identified with one or more matches.

Used in: SearchHashesResponse

message FullHash.FullHashDetail

safebrowsing.proto:234

Details about a matching full hash. An important note about forward compatibility: new threat types and threat attributes may be added by the server at any time; those additions are considered minor version changes. It is Google's policy not to expose minor version numbers in APIs (see https://cloud.google.com/apis/design/versioning for the versioning policy), so clients MUST be prepared to receive `FullHashDetail` messages containing `ThreatType` enum values or `ThreatAttribute` enum values that are considered invalid by the client. Therefore, it is the client's responsibility to check for the validity of all `ThreatType` and `ThreatAttribute` enum values; if any value is considered invalid, the client MUST disregard the entire `FullHashDetail` message.

Used in: FullHash

message HashList

safebrowsing.proto:461

A list of hashes identified by its name.

Used as response type in: SafeBrowsing.GetHashList

Used as field type in: BatchGetHashListsResponse, ListHashListsResponse

message HashListMetadata

safebrowsing.proto:416

Metadata about a particular hash list.

Used in: HashList

enum HashListMetadata.HashLength

safebrowsing.proto:418

The length of hashes in a hash list.

Used in: HashListMetadata

enum LikelySafeType

safebrowsing.proto:132

Types of likely-safe sites. Note that the `SearchHashesResponse` intentionally does not contain `LikelySafeType`.

Used in: HashListMetadata

message RiceDeltaEncoded128Bit

safebrowsing.proto:362

Same as `RiceDeltaEncoded32Bit` except this encodes 128-bit numbers.

Used in: HashList

message RiceDeltaEncoded256Bit

safebrowsing.proto:385

Same as `RiceDeltaEncoded32Bit` except this encodes 256-bit numbers.

Used in: HashList

message RiceDeltaEncoded32Bit

safebrowsing.proto:322

The Rice-Golomb encoded data. Used for either hashes or removal indices. It is guaranteed that every hash or index here has the same length, and this length is exactly 32 bits. Generally speaking, if we sort all the entries lexicographically, we will find that the higher order bits tend not to change as frequently as lower order bits. This means that if we also take the adjacent difference between entries, the higher order bits have a high probability of being zero. This exploits this high probability of zero by essentially choosing a certain number of bits; all bits more significant than this are likely to be zero so we use unary encoding. See the `rice_parameter` field. Historical note: the Rice-delta encoding was first used in V4 of this API. In V5, two significant improvements were made: firstly, the Rice-delta encoding is now available with hash prefixes longer than 4 bytes; secondly, the encoded data are now treated as big-endian so as to avoid a costly sorting step.

Used in: HashList

message RiceDeltaEncoded64Bit

safebrowsing.proto:342

Same as `RiceDeltaEncoded32Bit` except this encodes 64-bit numbers.

Used in: HashList

message SizeConstraints

safebrowsing.proto:291

The constraints on the sizes of the hash lists.

Used in: BatchGetHashListsRequest, GetHashListRequest

enum ThreatAttribute

safebrowsing.proto:153

Attributes of threats. These attributes may confer additional meaning to a particular threat but will not affect the threat type. For example, an attribute may specify a lower confidence while a different attribute may specify higher confidence. More attributes may be added in the future.

Used in: FullHash.FullHashDetail

enum ThreatType

safebrowsing.proto:90

Types of threats.

Used in: FullHash.FullHashDetail, HashListMetadata