Class RiceDeltaEncoding (2.18.0)

public final class RiceDeltaEncoding extends GeneratedMessageV3 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

Static Fields

ENCODED_DATA_FIELD_NUMBER

public static final int ENCODED_DATA_FIELD_NUMBER
Field Value
TypeDescription
int

ENTRY_COUNT_FIELD_NUMBER

public static final int ENTRY_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

FIRST_VALUE_FIELD_NUMBER

public static final int FIRST_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

RICE_PARAMETER_FIELD_NUMBER

public static final int RICE_PARAMETER_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static RiceDeltaEncoding getDefaultInstance()
Returns
TypeDescription
RiceDeltaEncoding

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static RiceDeltaEncoding.Builder newBuilder()
Returns
TypeDescription
RiceDeltaEncoding.Builder

newBuilder(RiceDeltaEncoding prototype)

public static RiceDeltaEncoding.Builder newBuilder(RiceDeltaEncoding prototype)
Parameter
NameDescription
prototypeRiceDeltaEncoding
Returns
TypeDescription
RiceDeltaEncoding.Builder

parseDelimitedFrom(InputStream input)

public static RiceDeltaEncoding parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RiceDeltaEncoding
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RiceDeltaEncoding parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RiceDeltaEncoding
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static RiceDeltaEncoding parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
RiceDeltaEncoding
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RiceDeltaEncoding parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RiceDeltaEncoding
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RiceDeltaEncoding parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
RiceDeltaEncoding
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RiceDeltaEncoding parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RiceDeltaEncoding
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RiceDeltaEncoding parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
RiceDeltaEncoding
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RiceDeltaEncoding parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RiceDeltaEncoding
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static RiceDeltaEncoding parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RiceDeltaEncoding
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RiceDeltaEncoding parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RiceDeltaEncoding
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static RiceDeltaEncoding parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
RiceDeltaEncoding
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RiceDeltaEncoding parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RiceDeltaEncoding
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<RiceDeltaEncoding> parser()
Returns
TypeDescription
Parser<RiceDeltaEncoding>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public RiceDeltaEncoding getDefaultInstanceForType()
Returns
TypeDescription
RiceDeltaEncoding

getEncodedData()

public ByteString getEncodedData()

The encoded deltas that are encoded using the Golomb-Rice coder.

bytes encoded_data = 4;

Returns
TypeDescription
ByteString

The encodedData.

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;

Returns
TypeDescription
int

The entryCount.

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;

Returns
TypeDescription
long

The firstValue.

getParserForType()

public Parser<RiceDeltaEncoding> getParserForType()
Returns
TypeDescription
Parser<RiceDeltaEncoding>
Overrides

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;

Returns
TypeDescription
int

The riceParameter.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public RiceDeltaEncoding.Builder newBuilderForType()
Returns
TypeDescription
RiceDeltaEncoding.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RiceDeltaEncoding.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
RiceDeltaEncoding.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public RiceDeltaEncoding.Builder toBuilder()
Returns
TypeDescription
RiceDeltaEncoding.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException