ThreatInfo
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Informations concernant une ou plusieurs menaces envoyées par un client lors de la recherche de correspondances dans les listes de menaces.
Champs |
threatTypes[] |
enum (ThreatType )
Types de menaces à vérifier.
|
platformTypes[] |
enum (PlatformType )
Types de plates-formes à vérifier.
|
threatEntryTypes[] |
enum (ThreatEntryType )
Types d'entrées à vérifier.
|
threatEntries[] |
object (ThreatEntry )
Entrées de menaces à vérifier.
|
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/25 (UTC).
[null,null,["Dernière mise à jour le 2025/07/25 (UTC)."],[[["\u003cp\u003e\u003ccode\u003eThreatInfo\u003c/code\u003e describes the threats a client wants to check against threat lists, including threat types, platform types, and threat entry types.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ethreatEntries\u003c/code\u003e field contains a list of \u003ccode\u003eThreatEntry\u003c/code\u003e objects that provide details about the specific threats being checked.\u003c/p\u003e\n"],["\u003cp\u003eClients use \u003ccode\u003eThreatInfo\u003c/code\u003e to specify the parameters of their threat checks when interacting with the Safe Browsing API.\u003c/p\u003e\n"]]],["Clients submit threat information to check for matches in threat lists. This information, represented in JSON, includes four key fields: `threatTypes`, specifying the types of threats; `platformTypes`, indicating the relevant platforms; `threatEntryTypes`, defining the types of entries; and `threatEntries`, listing the specific entries to be checked. Each of the types are defined in an enum. These parameters collectively determine the scope and nature of the threat list check.\n"],null,["# ThreatInfo\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nThe information regarding one or more threats that a client submits when checking for matches in threat lists.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"threatTypes\": [ enum (/safe-browsing/reference/rest/v4/ThreatType) ], \"platformTypes\": [ enum (/safe-browsing/reference/rest/v4/PlatformType) ], \"threatEntryTypes\": [ enum (/safe-browsing/reference/rest/v4/ThreatEntryType) ], \"threatEntries\": [ { object (/safe-browsing/reference/rest/v4/ThreatEntry) } ] } ``` |\n\n| Fields ||\n|----------------------|---------------------------------------------------------------------------------------------------------------|\n| `threatTypes[]` | `enum (`[ThreatType](/safe-browsing/reference/rest/v4/ThreatType)`)` The threat types to be checked. |\n| `platformTypes[]` | `enum (`[PlatformType](/safe-browsing/reference/rest/v4/PlatformType)`)` The platform types to be checked. |\n| `threatEntryTypes[]` | `enum (`[ThreatEntryType](/safe-browsing/reference/rest/v4/ThreatEntryType)`)` The entry types to be checked. |\n| `threatEntries[]` | `object (`[ThreatEntry](/safe-browsing/reference/rest/v4/ThreatEntry)`)` The threat entries to be checked. |"]]