Reference documentation and code samples for the Google Cloud Web Risk V1 Client class Constraints.
The constraints for this diff.
Generated from protobuf message google.cloud.webrisk.v1.ComputeThreatListDiffRequest.Constraints
Namespace
Google \ Cloud \ WebRisk \ V1 \ ComputeThreatListDiffRequest
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ max_diff_entries
int
The maximum size in number of entries. The diff will not contain more entries than this value. This should be a power of 2 between 210 and 220. If zero, no diff size limit is set.
↳ max_database_entries
int
Sets the maximum number of entries that the client is willing to have in the local database. This should be a power of 2 between 210 and 220. If zero, no database size limit is set.
↳ supported_compressions
array
The compression types supported by the client.
getMaxDiffEntries
The maximum size in number of entries. The diff will not contain more
entries than this value. This should be a power of 2 between 210 and
220. If zero, no diff size limit is set.
Returns
Type
Description
int
setMaxDiffEntries
The maximum size in number of entries. The diff will not contain more
entries than this value. This should be a power of 2 between 210 and
220. If zero, no diff size limit is set.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getMaxDatabaseEntries
Sets the maximum number of entries that the client is willing to have
in the local database. This should be a power of 2 between 210 and
220. If zero, no database size limit is set.
Returns
Type
Description
int
setMaxDatabaseEntries
Sets the maximum number of entries that the client is willing to have
in the local database. This should be a power of 2 between 210 and
220. If zero, no database size limit is set.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Web Risk V1 Client - Class Constraints (2.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.1 (latest)](/php/docs/reference/cloud-web-risk/latest/V1.ComputeThreatListDiffRequest.Constraints)\n- [2.1.0](/php/docs/reference/cloud-web-risk/2.1.0/V1.ComputeThreatListDiffRequest.Constraints)\n- [2.0.3](/php/docs/reference/cloud-web-risk/2.0.3/V1.ComputeThreatListDiffRequest.Constraints)\n- [1.5.5](/php/docs/reference/cloud-web-risk/1.5.5/V1.ComputeThreatListDiffRequest.Constraints)\n- [1.4.4](/php/docs/reference/cloud-web-risk/1.4.4/V1.ComputeThreatListDiffRequest.Constraints)\n- [1.3.0](/php/docs/reference/cloud-web-risk/1.3.0/V1.ComputeThreatListDiffRequest.Constraints)\n- [1.2.7](/php/docs/reference/cloud-web-risk/1.2.7/V1.ComputeThreatListDiffRequest.Constraints) \nReference documentation and code samples for the Google Cloud Web Risk V1 Client class Constraints.\n\nThe constraints for this diff.\n\nGenerated from protobuf message `google.cloud.webrisk.v1.ComputeThreatListDiffRequest.Constraints`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ WebRisk \\\\ V1 \\\\ ComputeThreatListDiffRequest\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getMaxDiffEntries\n\nThe maximum size in number of entries. The diff will not contain more\nentries than this value. This should be a power of 2 between 2**10 and\n2**20. If zero, no diff size limit is set.\n\n### setMaxDiffEntries\n\nThe maximum size in number of entries. The diff will not contain more\nentries than this value. This should be a power of 2 between 2**10 and\n2**20. If zero, no diff size limit is set.\n\n### getMaxDatabaseEntries\n\nSets the maximum number of entries that the client is willing to have\nin the local database. This should be a power of 2 between 2**10 and\n2**20. If zero, no database size limit is set.\n\n### setMaxDatabaseEntries\n\nSets the maximum number of entries that the client is willing to have\nin the local database. This should be a power of 2 between 2**10 and\n2**20. If zero, no database size limit is set.\n\n### getSupportedCompressions\n\nThe compression types supported by the client.\n\n### setSupportedCompressions\n\nThe compression types supported by the client."]]