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

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
NameDescription
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
TypeDescription
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
NameDescription
var int
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var int
Returns
TypeDescription
$this

getSupportedCompressions

The compression types supported by the client.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSupportedCompressions

The compression types supported by the client.

Parameter
NameDescription
var int[]
Returns
TypeDescription
$this