Method: fullHashes.find
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
هش های کاملی را پیدا می کند که با پیشوندهای هش درخواستی مطابقت دارند.
درخواست HTTP
POST https://safebrowsing.googleapis.com/v4/fullHashes:find
URL از دستور GRPC Transcoding استفاده می کند.
درخواست بدن
بدنه درخواست حاوی داده هایی با ساختار زیر است:
نمایندگی JSON |
---|
{
"client": {
object (ClientInfo )
},
"clientStates": [
string
],
"threatInfo": {
object (ThreatInfo )
},
"apiClient": {
object (ClientInfo )
}
} |
فیلدها |
---|
client | object ( ClientInfo ) فراداده مشتری |
clientStates[] | string ( bytes format) کلاینت فعلی برای هر یک از لیست های تهدید محلی مشتری، حالت می دهد. رشته ای با کد base64. |
threatInfo | object ( ThreatInfo ) لیست ها و هش هایی که باید بررسی شوند. |
apiClient | object ( ClientInfo ) فراداده های مشتری مرتبط با تماس گیرندگان API های سطح بالاتر که بر روی پیاده سازی مشتری ساخته شده اند. |
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ حاوی داده هایی با ساختار زیر است:
نمایندگی JSON |
---|
{
"matches": [
{
object (ThreatMatch )
}
],
"minimumWaitDuration": string,
"negativeCacheDuration": string
} |
فیلدها |
---|
matches[] | object ( ThreatMatch ) هش کامل که با پیشوندهای درخواستی مطابقت دارد. |
minimumWaitDuration | string ( Duration format) حداقل مدت زمانی که مشتری باید قبل از صدور هرگونه درخواست هش یافتن منتظر بماند. اگر این فیلد تنظیم نشده باشد، مشتریان می توانند به محض اینکه بخواهند درخواستی را صادر کنند. مدت زمان در ثانیه با حداکثر نه رقم کسری که با ' s ' ختم می شود. مثال: "3.5s" . |
negativeCacheDuration | string ( Duration format) برای نهادهای درخواستی که با لیست تهدید مطابقت ندارند، چه مدت باید پاسخ را در حافظه پنهان نگه دارید. مدت زمان در ثانیه با حداکثر نه رقم کسری که با ' s ' ختم می شود. مثال: "3.5s" . |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eThis API finds full hashes that match requested hash prefixes using a POST request to \u003ccode\u003ehttps://safebrowsing.googleapis.com/v4/fullHashes:find\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body includes client metadata, client states, threat information, and API client details, structured according to the provided JSON schema.\u003c/p\u003e\n"],["\u003cp\u003eThe response body provides matching full hashes, minimum wait duration before the next request, and negative cache duration for non-matching entities, all formatted as described in the schema.\u003c/p\u003e\n"]]],["This document details the process for finding full hashes matching requested hash prefixes via the `fullHashes:find` API. A `POST` request to the specified URL includes a JSON request body with client metadata (`client`, `apiClient`), client states (`clientStates`), and threat information (`threatInfo`). The response, if successful, contains matched full hashes (`matches`), a minimum wait duration (`minimumWaitDuration`) before the next request, and a negative cache duration (`negativeCacheDuration`).\n"],null,["# Method: fullHashes.find\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n - [JSON representation](#body.FindFullHashesResponse.SCHEMA_REPRESENTATION)\n\nFinds the full hashes that match the requested hash prefixes.\n\n### HTTP request\n\n`POST https://safebrowsing.googleapis.com/v4/fullHashes:find`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"client\": { object (/safe-browsing/reference/rest/v4/ClientInfo) }, \"clientStates\": [ string ], \"threatInfo\": { object (/safe-browsing/reference/rest/v4/ThreatInfo) }, \"apiClient\": { object (/safe-browsing/reference/rest/v4/ClientInfo) } } ``` |\n\n| Fields ||\n|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `client` | `object (`[ClientInfo](/safe-browsing/reference/rest/v4/ClientInfo)`)` The client metadata. |\n| `clientStates[]` | `string (`[bytes](https://developers.google.com/discovery/v1/type-format)` format)` The current client states for each of the client's local threat lists. A base64-encoded string. |\n| `threatInfo` | `object (`[ThreatInfo](/safe-browsing/reference/rest/v4/ThreatInfo)`)` The lists and hashes to be checked. |\n| `apiClient` | `object (`[ClientInfo](/safe-browsing/reference/rest/v4/ClientInfo)`)` Client metadata associated with callers of higher-level APIs built on top of the client's implementation. |\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"matches\": [ { object (/safe-browsing/reference/rest/v4/ThreatMatch) } ], \"minimumWaitDuration\": string, \"negativeCacheDuration\": string } ``` |\n\n| Fields ||\n|-------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `matches[]` | `object (`[ThreatMatch](/safe-browsing/reference/rest/v4/ThreatMatch)`)` The full hashes that matched the requested prefixes. |\n| `minimumWaitDuration` | `string (`[Duration](https://protobuf.dev/reference/protobuf/google.protobuf/#duration)` format)` The minimum duration the client must wait before issuing any find hashes request. If this field is not set, clients can issue a request as soon as they want. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `\"3.5s\"`. |\n| `negativeCacheDuration` | `string (`[Duration](https://protobuf.dev/reference/protobuf/google.protobuf/#duration)` format)` For requested entities that did not match the threat list, how long to cache the response. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `\"3.5s\"`. |"]]