Send feedback
Class RiceDeltaEncoding (2.10.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.10.0 keyboard_arrow_down
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
ENTRY_COUNT_FIELD_NUMBER
public static final int ENTRY_COUNT_FIELD_NUMBER
Field Value
FIRST_VALUE_FIELD_NUMBER
public static final int FIRST_VALUE_FIELD_NUMBER
Field Value
RICE_PARAMETER_FIELD_NUMBER
public static final int RICE_PARAMETER_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static RiceDeltaEncoding getDefaultInstance ()
Returns
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
newBuilder()
public static RiceDeltaEncoding . Builder newBuilder ()
Returns
newBuilder(RiceDeltaEncoding prototype)
public static RiceDeltaEncoding . Builder newBuilder ( RiceDeltaEncoding prototype )
Parameter
Returns
public static RiceDeltaEncoding parseDelimitedFrom ( InputStream input )
Parameter
Returns
Exceptions
public static RiceDeltaEncoding parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static RiceDeltaEncoding parseFrom ( byte [] data )
Parameter
Name Description data
byte []
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RiceDeltaEncoding parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static RiceDeltaEncoding parseFrom ( ByteString data )
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RiceDeltaEncoding parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static RiceDeltaEncoding parseFrom ( CodedInputStream input )
Parameter
Returns
Exceptions
public static RiceDeltaEncoding parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static RiceDeltaEncoding parseFrom ( InputStream input )
Parameter
Returns
Exceptions
public static RiceDeltaEncoding parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static RiceDeltaEncoding parseFrom ( ByteBuffer data )
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RiceDeltaEncoding parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parser()
public static Parser<RiceDeltaEncoding> parser ()
Returns
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Returns
Overrides
getDefaultInstanceForType()
public RiceDeltaEncoding getDefaultInstanceForType ()
Returns
getEncodedData()
public ByteString getEncodedData ()
The encoded deltas that are encoded using the Golomb-Rice coder.
bytes encoded_data = 4;
Returns
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
Type Description 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
Type Description long
The firstValue.
getParserForType()
public Parser<RiceDeltaEncoding> getParserForType ()
Returns
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
Type Description int
The riceParameter.
getSerializedSize()
public int getSerializedSize ()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields ()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
newBuilderForType()
public RiceDeltaEncoding . Builder newBuilderForType ()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected RiceDeltaEncoding . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Parameter
Returns
Overrides
toBuilder()
public RiceDeltaEncoding . Builder toBuilder ()
Returns
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Parameter
Overrides
Exceptions
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-14 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-14 UTC."],[],[]]