Class: Google::Apis::WebriskV1::GoogleCloudWebriskV1ThreatEntryAdditions
- Inherits:
-
Object
- Object
- Google::Apis::WebriskV1::GoogleCloudWebriskV1ThreatEntryAdditions
- 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
Contains the set of entries to add to a local database. May contain a combination of compressed and raw data in a single response.
Instance Attribute Summary collapse
-
#raw_hashes ⇒ Array<Google::Apis::WebriskV1::GoogleCloudWebriskV1RawHashes>
The raw SHA256-formatted entries.
-
#rice_hashes ⇒ Google::Apis::WebriskV1::GoogleCloudWebriskV1RiceDeltaEncoding
The Rice-Golomb encoded data.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudWebriskV1ThreatEntryAdditions
constructor
A new instance of GoogleCloudWebriskV1ThreatEntryAdditions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudWebriskV1ThreatEntryAdditions
Returns a new instance of GoogleCloudWebriskV1ThreatEntryAdditions.
341 342 343 |
# File 'lib/google/apis/webrisk_v1/classes.rb', line 341 def initialize(**args) update!(**args) end |
Instance Attribute Details
#raw_hashes ⇒ Array<Google::Apis::WebriskV1::GoogleCloudWebriskV1RawHashes>
The raw SHA256-formatted entries. Repeated to allow returning sets of hashes
with different prefix sizes.
Corresponds to the JSON property rawHashes
333 334 335 |
# File 'lib/google/apis/webrisk_v1/classes.rb', line 333 def raw_hashes @raw_hashes end |
#rice_hashes ⇒ Google::Apis::WebriskV1::GoogleCloudWebriskV1RiceDeltaEncoding
The Rice-Golomb encoded data. Used for sending compressed 4-byte hashes or
compressed removal indices.
Corresponds to the JSON property riceHashes
339 340 341 |
# File 'lib/google/apis/webrisk_v1/classes.rb', line 339 def rice_hashes @rice_hashes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
346 347 348 349 |
# File 'lib/google/apis/webrisk_v1/classes.rb', line 346 def update!(**args) @raw_hashes = args[:raw_hashes] if args.key?(:raw_hashes) @rice_hashes = args[:rice_hashes] if args.key?(:rice_hashes) end |