Class RiceDeltaEncoding.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RiceDeltaEncoding.Builder>
com.google.webrisk.v1.RiceDeltaEncoding.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, RiceDeltaEncodingOrBuilder, Cloneable
Enclosing class:
RiceDeltaEncoding

public static final class RiceDeltaEncoding.Builder extends com.google.protobuf.GeneratedMessage.Builder<RiceDeltaEncoding.Builder> implements RiceDeltaEncodingOrBuilder
 The Rice-Golomb encoded data. Used for sending compressed 4-byte hashes or
 compressed removal indices.
 
Protobuf type google.cloud.webrisk.v1.RiceDeltaEncoding
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The encoded deltas that are encoded using the Golomb-Rice coder.
    The number of entries that are delta encoded in the encoded data.
    The offset of the first entry in the encoded data, or, if only a single integer was encoded, that single integer's value.
    The Golomb-Rice parameter, which is a number between 2 and 28.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.ByteString
    The encoded deltas that are encoded using the Golomb-Rice coder.
    int
    The number of entries that are delta encoded in the encoded data.
    long
    The offset of the first entry in the encoded data, or, if only a single integer was encoded, that single integer's value.
    int
    The Golomb-Rice parameter, which is a number between 2 and 28.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
     
    setEncodedData(com.google.protobuf.ByteString value)
    The encoded deltas that are encoded using the Golomb-Rice coder.
    setEntryCount(int value)
    The number of entries that are delta encoded in the encoded data.
    setFirstValue(long value)
    The offset of the first entry in the encoded data, or, if only a single integer was encoded, that single integer's value.
    setRiceParameter(int value)
    The Golomb-Rice parameter, which is a number between 2 and 28.

    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, 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

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<RiceDeltaEncoding.Builder>
    • clear

      public RiceDeltaEncoding.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<RiceDeltaEncoding.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<RiceDeltaEncoding.Builder>
    • getDefaultInstanceForType

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

      public RiceDeltaEncoding build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public RiceDeltaEncoding buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public RiceDeltaEncoding.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<RiceDeltaEncoding.Builder>
    • mergeFrom

      public RiceDeltaEncoding.Builder mergeFrom(RiceDeltaEncoding other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<RiceDeltaEncoding.Builder>
    • mergeFrom

      public RiceDeltaEncoding.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<RiceDeltaEncoding.Builder>
      Throws:
      IOException
    • getFirstValue

      public long getFirstValue()
       The offset of the first entry in the encoded data, or, if only a single
       integer was encoded, that single integer's value. If the field is empty or
       missing, assume zero.
       
      int64 first_value = 1;
      Specified by:
      getFirstValue in interface RiceDeltaEncodingOrBuilder
      Returns:
      The firstValue.
    • setFirstValue

      public RiceDeltaEncoding.Builder setFirstValue(long value)
       The offset of the first entry in the encoded data, or, if only a single
       integer was encoded, that single integer's value. If the field is empty or
       missing, assume zero.
       
      int64 first_value = 1;
      Parameters:
      value - The firstValue to set.
      Returns:
      This builder for chaining.
    • clearFirstValue

      public RiceDeltaEncoding.Builder clearFirstValue()
       The offset of the first entry in the encoded data, or, if only a single
       integer was encoded, that single integer's value. If the field is empty or
       missing, assume zero.
       
      int64 first_value = 1;
      Returns:
      This builder for chaining.
    • getRiceParameter

      public int getRiceParameter()
       The Golomb-Rice parameter, which is a number between 2 and 28. This field
       is missing (that is, zero) if `num_entries` is zero.
       
      int32 rice_parameter = 2;
      Specified by:
      getRiceParameter in interface RiceDeltaEncodingOrBuilder
      Returns:
      The riceParameter.
    • setRiceParameter

      public RiceDeltaEncoding.Builder setRiceParameter(int value)
       The Golomb-Rice parameter, which is a number between 2 and 28. This field
       is missing (that is, zero) if `num_entries` is zero.
       
      int32 rice_parameter = 2;
      Parameters:
      value - The riceParameter to set.
      Returns:
      This builder for chaining.
    • clearRiceParameter

      public RiceDeltaEncoding.Builder clearRiceParameter()
       The Golomb-Rice parameter, which is a number between 2 and 28. This field
       is missing (that is, zero) if `num_entries` is zero.
       
      int32 rice_parameter = 2;
      Returns:
      This builder for chaining.
    • getEntryCount

      public int getEntryCount()
       The number of entries that are delta encoded in the encoded data. If only a
       single integer was encoded, this will be zero and the single value will be
       stored in `first_value`.
       
      int32 entry_count = 3;
      Specified by:
      getEntryCount in interface RiceDeltaEncodingOrBuilder
      Returns:
      The entryCount.
    • setEntryCount

      public RiceDeltaEncoding.Builder setEntryCount(int value)
       The number of entries that are delta encoded in the encoded data. If only a
       single integer was encoded, this will be zero and the single value will be
       stored in `first_value`.
       
      int32 entry_count = 3;
      Parameters:
      value - The entryCount to set.
      Returns:
      This builder for chaining.
    • clearEntryCount

      public RiceDeltaEncoding.Builder clearEntryCount()
       The number of entries that are delta encoded in the encoded data. If only a
       single integer was encoded, this will be zero and the single value will be
       stored in `first_value`.
       
      int32 entry_count = 3;
      Returns:
      This builder for chaining.
    • getEncodedData

      public com.google.protobuf.ByteString getEncodedData()
       The encoded deltas that are encoded using the Golomb-Rice coder.
       
      bytes encoded_data = 4;
      Specified by:
      getEncodedData in interface RiceDeltaEncodingOrBuilder
      Returns:
      The encodedData.
    • setEncodedData

      public RiceDeltaEncoding.Builder setEncodedData(com.google.protobuf.ByteString value)
       The encoded deltas that are encoded using the Golomb-Rice coder.
       
      bytes encoded_data = 4;
      Parameters:
      value - The encodedData to set.
      Returns:
      This builder for chaining.
    • clearEncodedData

      public RiceDeltaEncoding.Builder clearEncodedData()
       The encoded deltas that are encoded using the Golomb-Rice coder.
       
      bytes encoded_data = 4;
      Returns:
      This builder for chaining.