Google Cloud Web Risk V1beta1 Client - Class Constraints (1.5.5)

Reference documentation and code samples for the Google Cloud Web Risk V1beta1 Client class Constraints.

The constraints for this diff.

Generated from protobuf message google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints

Namespace

Google \ Cloud \ WebRisk \ V1beta1 \ 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.

Parameter
Name Description
var int
Returns
Type Description
$this

getSupportedCompressions

The compression types supported by the client.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setSupportedCompressions

The compression types supported by the client.

Parameter
Name Description
var int[]
Returns
Type Description
$this