Package com.google.webrisk.v1beta1
Class ComputeThreatListDiffRequest.Constraints.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ComputeThreatListDiffRequest.Constraints.Builder>
-
- com.google.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,ComputeThreatListDiffRequest.ConstraintsOrBuilder
,Cloneable
- Enclosing class:
- ComputeThreatListDiffRequest.Constraints
public static final class ComputeThreatListDiffRequest.Constraints.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ComputeThreatListDiffRequest.Constraints.Builder> implements ComputeThreatListDiffRequest.ConstraintsOrBuilder
The constraints for this diff.
Protobuf typegoogle.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeThreatListDiffRequest.Constraints.Builder>
-
clear
public ComputeThreatListDiffRequest.Constraints.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeThreatListDiffRequest.Constraints.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeThreatListDiffRequest.Constraints.Builder>
-
getDefaultInstanceForType
public ComputeThreatListDiffRequest.Constraints getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ComputeThreatListDiffRequest.Constraints build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ComputeThreatListDiffRequest.Constraints buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ComputeThreatListDiffRequest.Constraints.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeThreatListDiffRequest.Constraints.Builder>
-
setField
public ComputeThreatListDiffRequest.Constraints.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeThreatListDiffRequest.Constraints.Builder>
-
clearField
public ComputeThreatListDiffRequest.Constraints.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeThreatListDiffRequest.Constraints.Builder>
-
clearOneof
public ComputeThreatListDiffRequest.Constraints.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeThreatListDiffRequest.Constraints.Builder>
-
setRepeatedField
public ComputeThreatListDiffRequest.Constraints.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeThreatListDiffRequest.Constraints.Builder>
-
addRepeatedField
public ComputeThreatListDiffRequest.Constraints.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeThreatListDiffRequest.Constraints.Builder>
-
mergeFrom
public ComputeThreatListDiffRequest.Constraints.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ComputeThreatListDiffRequest.Constraints.Builder>
-
mergeFrom
public ComputeThreatListDiffRequest.Constraints.Builder mergeFrom(ComputeThreatListDiffRequest.Constraints other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeThreatListDiffRequest.Constraints.Builder>
-
mergeFrom
public ComputeThreatListDiffRequest.Constraints.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ComputeThreatListDiffRequest.Constraints.Builder>
- Throws:
IOException
-
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 2**10 and 2**20. If zero, no diff size limit is set.
int32 max_diff_entries = 1;
- Specified by:
getMaxDiffEntries
in interfaceComputeThreatListDiffRequest.ConstraintsOrBuilder
- Returns:
- The maxDiffEntries.
-
setMaxDiffEntries
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 2**10 and 2**20. If zero, no diff size limit is set.
int32 max_diff_entries = 1;
- Parameters:
value
- The maxDiffEntries to set.- Returns:
- 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 2**10 and 2**20. If zero, no diff size limit is set.
int32 max_diff_entries = 1;
- Returns:
- This builder for chaining.
-
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 2**10 and 2**20. If zero, no database size limit is set.
int32 max_database_entries = 2;
- Specified by:
getMaxDatabaseEntries
in interfaceComputeThreatListDiffRequest.ConstraintsOrBuilder
- Returns:
- The maxDatabaseEntries.
-
setMaxDatabaseEntries
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 2**10 and 2**20. If zero, no database size limit is set.
int32 max_database_entries = 2;
- Parameters:
value
- The maxDatabaseEntries to set.- Returns:
- This builder for chaining.
-
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 2**10 and 2**20. If zero, no database size limit is set.
int32 max_database_entries = 2;
- Returns:
- This builder for chaining.
-
getSupportedCompressionsList
public List<CompressionType> getSupportedCompressionsList()
The compression types supported by the client.
repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3;
- Specified by:
getSupportedCompressionsList
in interfaceComputeThreatListDiffRequest.ConstraintsOrBuilder
- Returns:
- A list containing the supportedCompressions.
-
getSupportedCompressionsCount
public int getSupportedCompressionsCount()
The compression types supported by the client.
repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3;
- Specified by:
getSupportedCompressionsCount
in interfaceComputeThreatListDiffRequest.ConstraintsOrBuilder
- Returns:
- The count of supportedCompressions.
-
getSupportedCompressions
public CompressionType getSupportedCompressions(int index)
The compression types supported by the client.
repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3;
- Specified by:
getSupportedCompressions
in interfaceComputeThreatListDiffRequest.ConstraintsOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The supportedCompressions at the given index.
-
setSupportedCompressions
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:
index
- The index to set the value at.value
- The supportedCompressions to set.- Returns:
- This builder for chaining.
-
addSupportedCompressions
public ComputeThreatListDiffRequest.Constraints.Builder addSupportedCompressions(CompressionType value)
The compression types supported by the client.
repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3;
- Parameters:
value
- The supportedCompressions to add.- Returns:
- This builder for chaining.
-
addAllSupportedCompressions
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;
- Parameters:
values
- The supportedCompressions to add.- Returns:
- This builder for chaining.
-
clearSupportedCompressions
public ComputeThreatListDiffRequest.Constraints.Builder clearSupportedCompressions()
The compression types supported by the client.
repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3;
- Returns:
- This builder for chaining.
-
getSupportedCompressionsValueList
public List<Integer> getSupportedCompressionsValueList()
The compression types supported by the client.
repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3;
- Specified by:
getSupportedCompressionsValueList
in interfaceComputeThreatListDiffRequest.ConstraintsOrBuilder
- Returns:
- A list containing the enum numeric values on the wire for supportedCompressions.
-
getSupportedCompressionsValue
public int getSupportedCompressionsValue(int index)
The compression types supported by the client.
repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3;
- Specified by:
getSupportedCompressionsValue
in interfaceComputeThreatListDiffRequest.ConstraintsOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The enum numeric value on the wire of supportedCompressions at the given index.
-
setSupportedCompressionsValue
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:
index
- The index to set the value at.value
- The enum numeric value on the wire for supportedCompressions to set.- Returns:
- This builder for chaining.
-
addSupportedCompressionsValue
public ComputeThreatListDiffRequest.Constraints.Builder addSupportedCompressionsValue(int value)
The compression types supported by the client.
repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3;
- Parameters:
value
- The enum numeric value on the wire for supportedCompressions to add.- Returns:
- This builder for chaining.
-
addAllSupportedCompressionsValue
public ComputeThreatListDiffRequest.Constraints.Builder addAllSupportedCompressionsValue(Iterable<Integer> values)
The compression types supported by the client.
repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3;
- Parameters:
values
- The enum numeric values on the wire for supportedCompressions to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ComputeThreatListDiffRequest.Constraints.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeThreatListDiffRequest.Constraints.Builder>
-
mergeUnknownFields
public final ComputeThreatListDiffRequest.Constraints.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeThreatListDiffRequest.Constraints.Builder>
-
-