Package com.google.webrisk.v1
Class ComputeThreatListDiffRequest.Constraints.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ComputeThreatListDiffRequest.Constraints.Builder>
com.google.webrisk.v1.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.GeneratedMessage.Builder<ComputeThreatListDiffRequest.Constraints.Builder>
implements ComputeThreatListDiffRequest.ConstraintsOrBuilder
The constraints for this diff.Protobuf type
google.cloud.webrisk.v1.ComputeThreatListDiffRequest.Constraints-
Method Summary
Modifier and TypeMethodDescriptionaddAllSupportedCompressions(Iterable<? extends CompressionType> values) The compression types supported by the client.The compression types supported by the client.The compression types supported by the client.addSupportedCompressionsValue(int value) The compression types supported by the client.build()clear()Sets the maximum number of entries that the client is willing to have in the local database.The maximum size in number of entries.The compression types supported by the client.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintSets the maximum number of entries that the client is willing to have in the local database.intThe maximum size in number of entries.getSupportedCompressions(int index) The compression types supported by the client.intThe compression types supported by the client.The compression types supported by the client.intgetSupportedCompressionsValue(int index) The compression types supported by the client.The compression types supported by the client.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setMaxDatabaseEntries(int value) Sets the maximum number of entries that the client is willing to have in the local database.setMaxDiffEntries(int value) The maximum size in number of entries.setSupportedCompressions(int index, CompressionType value) The compression types supported by the client.setSupportedCompressionsValue(int index, int value) The compression types supported by the client.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ComputeThreatListDiffRequest.Constraints.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ComputeThreatListDiffRequest.Constraints.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ComputeThreatListDiffRequest.Constraints.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public ComputeThreatListDiffRequest.Constraints.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ComputeThreatListDiffRequest.Constraints.Builder>
-
mergeFrom
public ComputeThreatListDiffRequest.Constraints.Builder mergeFrom(ComputeThreatListDiffRequest.Constraints other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ComputeThreatListDiffRequest.Constraints.Builder>
-
mergeFrom
public ComputeThreatListDiffRequest.Constraints.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getMaxDiffEntriesin interfaceComputeThreatListDiffRequest.ConstraintsOrBuilder- Returns:
- The maxDiffEntries.
-
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 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
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:
getMaxDatabaseEntriesin interfaceComputeThreatListDiffRequest.ConstraintsOrBuilder- Returns:
- The maxDatabaseEntries.
-
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 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
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
The compression types supported by the client.
repeated .google.cloud.webrisk.v1.CompressionType supported_compressions = 3;- Specified by:
getSupportedCompressionsListin interfaceComputeThreatListDiffRequest.ConstraintsOrBuilder- Returns:
- A list containing the supportedCompressions.
-
getSupportedCompressionsCount
public int getSupportedCompressionsCount()The compression types supported by the client.
repeated .google.cloud.webrisk.v1.CompressionType supported_compressions = 3;- Specified by:
getSupportedCompressionsCountin interfaceComputeThreatListDiffRequest.ConstraintsOrBuilder- Returns:
- The count of supportedCompressions.
-
getSupportedCompressions
The compression types supported by the client.
repeated .google.cloud.webrisk.v1.CompressionType supported_compressions = 3;- Specified by:
getSupportedCompressionsin 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.v1.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.v1.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.v1.CompressionType supported_compressions = 3;- Parameters:
values- The supportedCompressions to add.- Returns:
- This builder for chaining.
-
clearSupportedCompressions
The compression types supported by the client.
repeated .google.cloud.webrisk.v1.CompressionType supported_compressions = 3;- Returns:
- This builder for chaining.
-
getSupportedCompressionsValueList
The compression types supported by the client.
repeated .google.cloud.webrisk.v1.CompressionType supported_compressions = 3;- Specified by:
getSupportedCompressionsValueListin 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.v1.CompressionType supported_compressions = 3;- Specified by:
getSupportedCompressionsValuein 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.v1.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
The compression types supported by the client.
repeated .google.cloud.webrisk.v1.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.v1.CompressionType supported_compressions = 3;- Parameters:
values- The enum numeric values on the wire for supportedCompressions to add.- Returns:
- This builder for chaining.
-