Class ComputeThreatListDiffRequest.Constraints.Builder (2.52.0)

public static final class ComputeThreatListDiffRequest.Constraints.Builder extends GeneratedMessageV3.Builder<ComputeThreatListDiffRequest.Constraints.Builder> implements ComputeThreatListDiffRequest.ConstraintsOrBuilder

The constraints for this diff.

Protobuf type google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllSupportedCompressions(Iterable<? extends CompressionType> values)

public ComputeThreatListDiffRequest.Constraints.Builder addAllSupportedCompressions(Iterable<? extends CompressionType> values)

The compression types supported by the client.

repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3;

Parameter
Name Description
values Iterable<? extends com.google.webrisk.v1beta1.CompressionType>

The supportedCompressions to add.

Returns
Type Description
ComputeThreatListDiffRequest.Constraints.Builder

This builder for chaining.

addAllSupportedCompressionsValue(Iterable<Integer> values)

public ComputeThreatListDiffRequest.Constraints.Builder addAllSupportedCompressionsValue(Iterable<Integer> values)

The compression types supported by the client.

repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3;

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for supportedCompressions to add.

Returns
Type Description
ComputeThreatListDiffRequest.Constraints.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ComputeThreatListDiffRequest.Constraints.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ComputeThreatListDiffRequest.Constraints.Builder
Overrides

addSupportedCompressions(CompressionType value)

public ComputeThreatListDiffRequest.Constraints.Builder addSupportedCompressions(CompressionType value)

The compression types supported by the client.

repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3;

Parameter
Name Description
value CompressionType

The supportedCompressions to add.

Returns
Type Description
ComputeThreatListDiffRequest.Constraints.Builder

This builder for chaining.

addSupportedCompressionsValue(int value)

public ComputeThreatListDiffRequest.Constraints.Builder addSupportedCompressionsValue(int value)

The compression types supported by the client.

repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3;

Parameter
Name Description
value int

The enum numeric value on the wire for supportedCompressions to add.

Returns
Type Description
ComputeThreatListDiffRequest.Constraints.Builder

This builder for chaining.

build()

public ComputeThreatListDiffRequest.Constraints build()
Returns
Type Description
ComputeThreatListDiffRequest.Constraints

buildPartial()

public ComputeThreatListDiffRequest.Constraints buildPartial()
Returns
Type Description
ComputeThreatListDiffRequest.Constraints

clear()

public ComputeThreatListDiffRequest.Constraints.Builder clear()
Returns
Type Description
ComputeThreatListDiffRequest.Constraints.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ComputeThreatListDiffRequest.Constraints.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ComputeThreatListDiffRequest.Constraints.Builder
Overrides

clearMaxDatabaseEntries()

public ComputeThreatListDiffRequest.Constraints.Builder clearMaxDatabaseEntries()

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.

int32 max_database_entries = 2;

Returns
Type Description
ComputeThreatListDiffRequest.Constraints.Builder

This builder for chaining.

clearMaxDiffEntries()

public ComputeThreatListDiffRequest.Constraints.Builder clearMaxDiffEntries()

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.

int32 max_diff_entries = 1;

Returns
Type Description
ComputeThreatListDiffRequest.Constraints.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ComputeThreatListDiffRequest.Constraints.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ComputeThreatListDiffRequest.Constraints.Builder
Overrides

clearSupportedCompressions()

public ComputeThreatListDiffRequest.Constraints.Builder clearSupportedCompressions()

The compression types supported by the client.

repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3;

Returns
Type Description
ComputeThreatListDiffRequest.Constraints.Builder

This builder for chaining.

clone()

public ComputeThreatListDiffRequest.Constraints.Builder clone()
Returns
Type Description
ComputeThreatListDiffRequest.Constraints.Builder
Overrides

getDefaultInstanceForType()

public ComputeThreatListDiffRequest.Constraints getDefaultInstanceForType()
Returns
Type Description
ComputeThreatListDiffRequest.Constraints

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMaxDatabaseEntries()

public int 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.

int32 max_database_entries = 2;

Returns
Type Description
int

The maxDatabaseEntries.

getMaxDiffEntries()

public int 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.

int32 max_diff_entries = 1;

Returns
Type Description
int

The maxDiffEntries.

getSupportedCompressions(int index)

public CompressionType getSupportedCompressions(int index)

The compression types supported by the client.

repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
CompressionType

The supportedCompressions at the given index.

getSupportedCompressionsCount()

public int getSupportedCompressionsCount()

The compression types supported by the client.

repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3;

Returns
Type Description
int

The count of supportedCompressions.

getSupportedCompressionsList()

public List<CompressionType> getSupportedCompressionsList()

The compression types supported by the client.

repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3;

Returns
Type Description
List<CompressionType>

A list containing the supportedCompressions.

getSupportedCompressionsValue(int index)

public int getSupportedCompressionsValue(int index)

The compression types supported by the client.

repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of supportedCompressions at the given index.

getSupportedCompressionsValueList()

public List<Integer> getSupportedCompressionsValueList()

The compression types supported by the client.

repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for supportedCompressions.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ComputeThreatListDiffRequest.Constraints.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ComputeThreatListDiffRequest.Constraints.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ComputeThreatListDiffRequest.Constraints.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ComputeThreatListDiffRequest.Constraints.Builder
Overrides

mergeFrom(ComputeThreatListDiffRequest.Constraints other)

public ComputeThreatListDiffRequest.Constraints.Builder mergeFrom(ComputeThreatListDiffRequest.Constraints other)
Parameter
Name Description
other ComputeThreatListDiffRequest.Constraints
Returns
Type Description
ComputeThreatListDiffRequest.Constraints.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ComputeThreatListDiffRequest.Constraints.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ComputeThreatListDiffRequest.Constraints.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ComputeThreatListDiffRequest.Constraints.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ComputeThreatListDiffRequest.Constraints.Builder
Overrides

setMaxDatabaseEntries(int value)

public ComputeThreatListDiffRequest.Constraints.Builder setMaxDatabaseEntries(int value)

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.

int32 max_database_entries = 2;

Parameter
Name Description
value int

The maxDatabaseEntries to set.

Returns
Type Description
ComputeThreatListDiffRequest.Constraints.Builder

This builder for chaining.

setMaxDiffEntries(int value)

public ComputeThreatListDiffRequest.Constraints.Builder setMaxDiffEntries(int value)

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.

int32 max_diff_entries = 1;

Parameter
Name Description
value int

The maxDiffEntries to set.

Returns
Type Description
ComputeThreatListDiffRequest.Constraints.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ComputeThreatListDiffRequest.Constraints.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ComputeThreatListDiffRequest.Constraints.Builder
Overrides

setSupportedCompressions(int index, CompressionType value)

public ComputeThreatListDiffRequest.Constraints.Builder setSupportedCompressions(int index, CompressionType value)

The compression types supported by the client.

repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3;

Parameters
Name Description
index int

The index to set the value at.

value CompressionType

The supportedCompressions to set.

Returns
Type Description
ComputeThreatListDiffRequest.Constraints.Builder

This builder for chaining.

setSupportedCompressionsValue(int index, int value)

public ComputeThreatListDiffRequest.Constraints.Builder setSupportedCompressionsValue(int index, int value)

The compression types supported by the client.

repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3;

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for supportedCompressions to set.

Returns
Type Description
ComputeThreatListDiffRequest.Constraints.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ComputeThreatListDiffRequest.Constraints.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ComputeThreatListDiffRequest.Constraints.Builder
Overrides