Class: Google::Apis::WebriskV1::GoogleCloudWebriskV1RiceDeltaEncoding
- Inherits:
-
Object
- Object
- Google::Apis::WebriskV1::GoogleCloudWebriskV1RiceDeltaEncoding
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/webrisk_v1/classes.rb,
lib/google/apis/webrisk_v1/representations.rb,
lib/google/apis/webrisk_v1/representations.rb
Overview
The Rice-Golomb encoded data. Used for sending compressed 4-byte hashes or compressed removal indices.
Instance Attribute Summary collapse
-
#encoded_data ⇒ String
The encoded deltas that are encoded using the Golomb-Rice coder.
-
#entry_count ⇒ Fixnum
The number of entries that are delta encoded in the encoded data.
-
#first_value ⇒ Fixnum
The offset of the first entry in the encoded data, or, if only a single integer was encoded, that single integer's value.
-
#rice_parameter ⇒ Fixnum
The Golomb-Rice parameter, which is a number between 2 and 28.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudWebriskV1RiceDeltaEncoding
constructor
A new instance of GoogleCloudWebriskV1RiceDeltaEncoding.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudWebriskV1RiceDeltaEncoding
Returns a new instance of GoogleCloudWebriskV1RiceDeltaEncoding.
186 187 188 |
# File 'lib/google/apis/webrisk_v1/classes.rb', line 186 def initialize(**args) update!(**args) end |
Instance Attribute Details
#encoded_data ⇒ String
The encoded deltas that are encoded using the Golomb-Rice coder.
Corresponds to the JSON property encodedData
NOTE: Values are automatically base64 encoded/decoded in the client library.
164 165 166 |
# File 'lib/google/apis/webrisk_v1/classes.rb', line 164 def encoded_data @encoded_data end |
#entry_count ⇒ Fixnum
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.
Corresponds to the JSON property entryCount
171 172 173 |
# File 'lib/google/apis/webrisk_v1/classes.rb', line 171 def entry_count @entry_count end |
#first_value ⇒ Fixnum
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.
Corresponds to the JSON property firstValue
178 179 180 |
# File 'lib/google/apis/webrisk_v1/classes.rb', line 178 def first_value @first_value end |
#rice_parameter ⇒ Fixnum
The Golomb-Rice parameter, which is a number between 2 and 28. This field is
missing (that is, zero) if num_entries is zero.
Corresponds to the JSON property riceParameter
184 185 186 |
# File 'lib/google/apis/webrisk_v1/classes.rb', line 184 def rice_parameter @rice_parameter end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
191 192 193 194 195 196 |
# File 'lib/google/apis/webrisk_v1/classes.rb', line 191 def update!(**args) @encoded_data = args[:encoded_data] if args.key?(:encoded_data) @entry_count = args[:entry_count] if args.key?(:entry_count) @first_value = args[:first_value] if args.key?(:first_value) @rice_parameter = args[:rice_parameter] if args.key?(:rice_parameter) end |