Class ComputeThreatListDiffRequest.Constraints.Builder (2.0.11)

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.v1.ComputeThreatListDiffRequest.Constraints

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1.CompressionType supported_compressions = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.webrisk.v1.CompressionType>

The supportedCompressions to add.

Returns
TypeDescription
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.v1.CompressionType supported_compressions = 3;

Parameter
NameDescription
valuesIterable<Integer>

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

Returns
TypeDescription
ComputeThreatListDiffRequest.Constraints.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ComputeThreatListDiffRequest.Constraints.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1.CompressionType supported_compressions = 3;

Parameter
NameDescription
valueCompressionType

The supportedCompressions to add.

Returns
TypeDescription
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.v1.CompressionType supported_compressions = 3;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
ComputeThreatListDiffRequest.Constraints.Builder

This builder for chaining.

build()

public ComputeThreatListDiffRequest.Constraints build()
Returns
TypeDescription
ComputeThreatListDiffRequest.Constraints

buildPartial()

public ComputeThreatListDiffRequest.Constraints buildPartial()
Returns
TypeDescription
ComputeThreatListDiffRequest.Constraints

clear()

public ComputeThreatListDiffRequest.Constraints.Builder clear()
Returns
TypeDescription
ComputeThreatListDiffRequest.Constraints.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ComputeThreatListDiffRequest.Constraints.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ComputeThreatListDiffRequest.Constraints.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ComputeThreatListDiffRequest.Constraints.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ComputeThreatListDiffRequest.Constraints.Builder
Overrides

clearSupportedCompressions()

public ComputeThreatListDiffRequest.Constraints.Builder clearSupportedCompressions()

The compression types supported by the client.

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

Returns
TypeDescription
ComputeThreatListDiffRequest.Constraints.Builder

This builder for chaining.

clone()

public ComputeThreatListDiffRequest.Constraints.Builder clone()
Returns
TypeDescription
ComputeThreatListDiffRequest.Constraints.Builder
Overrides

getDefaultInstanceForType()

public ComputeThreatListDiffRequest.Constraints getDefaultInstanceForType()
Returns
TypeDescription
ComputeThreatListDiffRequest.Constraints

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The maxDiffEntries.

getSupportedCompressions(int index)

public CompressionType getSupportedCompressions(int index)

The compression types supported by the client.

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

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
CompressionType

The supportedCompressions at the given index.

getSupportedCompressionsCount()

public int getSupportedCompressionsCount()

The compression types supported by the client.

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

Returns
TypeDescription
int

The count of supportedCompressions.

getSupportedCompressionsList()

public List<CompressionType> getSupportedCompressionsList()

The compression types supported by the client.

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

Returns
TypeDescription
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.v1.CompressionType supported_compressions = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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.v1.CompressionType supported_compressions = 3;

Returns
TypeDescription
List<Integer>

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ComputeThreatListDiffRequest.Constraints.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComputeThreatListDiffRequest.Constraints.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ComputeThreatListDiffRequest.Constraints.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ComputeThreatListDiffRequest.Constraints.Builder
Overrides

mergeFrom(ComputeThreatListDiffRequest.Constraints other)

public ComputeThreatListDiffRequest.Constraints.Builder mergeFrom(ComputeThreatListDiffRequest.Constraints other)
Parameter
NameDescription
otherComputeThreatListDiffRequest.Constraints
Returns
TypeDescription
ComputeThreatListDiffRequest.Constraints.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ComputeThreatListDiffRequest.Constraints.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ComputeThreatListDiffRequest.Constraints.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ComputeThreatListDiffRequest.Constraints.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The maxDatabaseEntries to set.

Returns
TypeDescription
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
NameDescription
valueint

The maxDiffEntries to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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.v1.CompressionType supported_compressions = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valueCompressionType

The supportedCompressions to set.

Returns
TypeDescription
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.v1.CompressionType supported_compressions = 3;

Parameters
NameDescription
indexint

The index of the value to return.

valueint
Returns
TypeDescription
ComputeThreatListDiffRequest.Constraints.Builder

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

setUnknownFields(UnknownFieldSet unknownFields)

public final ComputeThreatListDiffRequest.Constraints.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ComputeThreatListDiffRequest.Constraints.Builder
Overrides