SizeConstraints
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
JSON 表示法 |
{
"maxUpdateEntries": integer,
"maxDatabaseEntries": integer
} |
字段 |
maxUpdateEntries |
integer
条目数上限。更新不会包含多于此值的条目,但更新可能包含少于此值的条目。此值必须至少为 1024。如果省略或设为 0,则不设置更新大小限制。
|
maxDatabaseEntries |
integer
设置客户端愿意在本地数据库中为列表保留的条目数量上限。(服务器可能会导致客户端存储的条目数量少于此数值。)如果省略或设为 0,则表示不设置数据库大小限制。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],[],null,["# SizeConstraints\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nThe constraints on the sizes of the hash lists.\n\n| JSON representation |\n|------------------------------------------------------------------------|\n| ``` { \"maxUpdateEntries\": integer, \"maxDatabaseEntries\": integer } ``` |\n\n| Fields ||\n|----------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `maxUpdateEntries` | `integer` The maximum size in number of entries. The update will not contain more entries than this value, but it is possible that the update will contain fewer entries than this value. This MUST be at least 1024. If omitted or zero, no update size limit is set. |\n| `maxDatabaseEntries` | `integer` Sets the maximum number of entries that the client is willing to have in the local database for the list. (The server MAY cause the client to store less than this number of entries.) If omitted or zero, no database size limit is set. |"]]