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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
ENCODED_DATA_FIELD_NUMBER
public static final int ENCODED_DATA_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
ENTRY_COUNT_FIELD_NUMBER
public static final int ENTRY_COUNT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
FIRST_VALUE_FIELD_NUMBER
public static final int FIRST_VALUE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
RICE_PARAMETER_FIELD_NUMBER
public static final int RICE_PARAMETER_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static RiceDeltaEncoding getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static RiceDeltaEncoding.Builder newBuilder()
newBuilder(RiceDeltaEncoding prototype)
public static RiceDeltaEncoding.Builder newBuilder(RiceDeltaEncoding prototype)
public static RiceDeltaEncoding parseDelimitedFrom(InputStream input)
public static RiceDeltaEncoding parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static RiceDeltaEncoding parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RiceDeltaEncoding parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static RiceDeltaEncoding parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RiceDeltaEncoding parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RiceDeltaEncoding parseFrom(CodedInputStream input)
public static RiceDeltaEncoding parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static RiceDeltaEncoding parseFrom(InputStream input)
public static RiceDeltaEncoding parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static RiceDeltaEncoding parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RiceDeltaEncoding parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<RiceDeltaEncoding> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public RiceDeltaEncoding getDefaultInstanceForType()
getEncodedData()
public ByteString getEncodedData()
The encoded deltas that are encoded using the Golomb-Rice coder.
bytes encoded_data = 4;
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()
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 |
---|
Type | Description |
int | |
Overrides
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public RiceDeltaEncoding.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected RiceDeltaEncoding.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public RiceDeltaEncoding.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides