public sealed class RiceDeltaEncoding : IMessage<RiceDeltaEncoding>, IEquatable<RiceDeltaEncoding>, IDeepCloneable<RiceDeltaEncoding>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Web Risk v1 API class RiceDeltaEncoding.
The Rice-Golomb encoded data. Used for sending compressed 4-byte hashes or
compressed removal indices.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eRiceDeltaEncoding\u003c/code\u003e class is part of the Google Cloud Web Risk v1 API and is used for encoding data with the Rice-Golomb method.\u003c/p\u003e\n"],["\u003cp\u003eThis class provides a way to compress 4-byte hashes or removal indices, and it implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eRiceDeltaEncoding\u003c/code\u003e include \u003ccode\u003eEncodedData\u003c/code\u003e (the compressed data), \u003ccode\u003eEntryCount\u003c/code\u003e (the number of encoded entries), \u003ccode\u003eFirstValue\u003c/code\u003e (the first entry's offset or single value), and \u003ccode\u003eRiceParameter\u003c/code\u003e (the Golomb-Rice parameter).\u003c/p\u003e\n"],["\u003cp\u003eThe API documentation includes versions from 1.2.0 up to the latest 2.6.0 version.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Web Risk v1 API - Class RiceDeltaEncoding (2.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.7.0 (latest)](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/latest/Google.Cloud.WebRisk.V1.RiceDeltaEncoding)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/2.6.0/Google.Cloud.WebRisk.V1.RiceDeltaEncoding)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/2.5.0/Google.Cloud.WebRisk.V1.RiceDeltaEncoding)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/2.4.0/Google.Cloud.WebRisk.V1.RiceDeltaEncoding)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/2.3.0/Google.Cloud.WebRisk.V1.RiceDeltaEncoding)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/2.2.0/Google.Cloud.WebRisk.V1.RiceDeltaEncoding)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/2.1.0/Google.Cloud.WebRisk.V1.RiceDeltaEncoding)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/2.0.0/Google.Cloud.WebRisk.V1.RiceDeltaEncoding)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/1.3.0/Google.Cloud.WebRisk.V1.RiceDeltaEncoding)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/1.2.0/Google.Cloud.WebRisk.V1.RiceDeltaEncoding) \n\n public sealed class RiceDeltaEncoding : IMessage\u003cRiceDeltaEncoding\u003e, IEquatable\u003cRiceDeltaEncoding\u003e, IDeepCloneable\u003cRiceDeltaEncoding\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Web Risk v1 API class RiceDeltaEncoding.\n\nThe Rice-Golomb encoded data. Used for sending compressed 4-byte hashes or\ncompressed removal indices. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e RiceDeltaEncoding \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[RiceDeltaEncoding](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/latest/Google.Cloud.WebRisk.V1.RiceDeltaEncoding), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RiceDeltaEncoding](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/latest/Google.Cloud.WebRisk.V1.RiceDeltaEncoding), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[RiceDeltaEncoding](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/latest/Google.Cloud.WebRisk.V1.RiceDeltaEncoding), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.WebRisk.V1](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/latest/Google.Cloud.WebRisk.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.WebRisk.V1.dll\n\nConstructors\n------------\n\n### RiceDeltaEncoding()\n\n public RiceDeltaEncoding()\n\n### RiceDeltaEncoding(RiceDeltaEncoding)\n\n public RiceDeltaEncoding(RiceDeltaEncoding other)\n\nProperties\n----------\n\n### EncodedData\n\n public ByteString EncodedData { get; set; }\n\nThe encoded deltas that are encoded using the Golomb-Rice coder.\n\n### EntryCount\n\n public int EntryCount { get; set; }\n\nThe number of entries that are delta encoded in the encoded data. If only a\nsingle integer was encoded, this will be zero and the single value will be\nstored in `first_value`.\n\n### FirstValue\n\n public long FirstValue { get; set; }\n\nThe offset of the first entry in the encoded data, or, if only a single\ninteger was encoded, that single integer's value. If the field is empty or\nmissing, assume zero.\n\n### RiceParameter\n\n public int RiceParameter { get; set; }\n\nThe Golomb-Rice parameter, which is a number between 2 and 28. This field\nis missing (that is, zero) if `num_entries` is zero."]]