Class: Google::Apis::SafebrowsingV4::Checksum

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/safebrowsing_v4/classes.rb,
generated/google/apis/safebrowsing_v4/representations.rb,
generated/google/apis/safebrowsing_v4/representations.rb

Overview

The expected state of a client's local database.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Checksum

Returns a new instance of Checksum.



36
37
38
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 36

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#sha256String

The SHA256 hash of the client state; that is, of the sorted list of all hashes present in the database. Corresponds to the JSON property sha256 NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


34
35
36
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 34

def sha256
  @sha256
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



41
42
43
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 41

def update!(**args)
  @sha256 = args[:sha256] if args.key?(:sha256)
end