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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ComputeThreatListDiffRequest.Constraints.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ComputeThreatListDiffRequest.Constraints.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ComputeThreatListDiffRequest.Constraints.Builder>
    • getDefaultInstanceForType

      public ComputeThreatListDiffRequest.Constraints getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ComputeThreatListDiffRequest.Constraints.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ComputeThreatListDiffRequest.Constraints.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 interface ComputeThreatListDiffRequest.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

       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 interface ComputeThreatListDiffRequest.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.v1.CompressionType supported_compressions = 3;
      Specified by:
      getSupportedCompressionsList in interface ComputeThreatListDiffRequest.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:
      getSupportedCompressionsCount in interface ComputeThreatListDiffRequest.ConstraintsOrBuilder
      Returns:
      The count of supportedCompressions.
    • getSupportedCompressions

      public CompressionType getSupportedCompressions(int index)
       The compression types supported by the client.
       
      repeated .google.cloud.webrisk.v1.CompressionType supported_compressions = 3;
      Specified by:
      getSupportedCompressions in interface ComputeThreatListDiffRequest.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

      public ComputeThreatListDiffRequest.Constraints.Builder clearSupportedCompressions()
       The compression types supported by the client.
       
      repeated .google.cloud.webrisk.v1.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.v1.CompressionType supported_compressions = 3;
      Specified by:
      getSupportedCompressionsValueList in interface ComputeThreatListDiffRequest.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:
      getSupportedCompressionsValue in interface ComputeThreatListDiffRequest.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

      public ComputeThreatListDiffRequest.Constraints.Builder addSupportedCompressionsValue(int value)
       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.