class Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntry

An individual threat; for example, a malicious URL or its hash representation. Only one of these fields should be set.

Attributes

digest[RW]

The digest of an executable in SHA256 format. The API supports both binary and hex digests. For JSON requests, digests are base64-encoded. Corresponds to the JSON property `digest` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]

hash_prop[RW]

A hash prefix, consisting of the most significant 4-32 bytes of a SHA256 hash. This field is in binary format. For JSON requests, hashes are base64-encoded. Corresponds to the JSON property `hash` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]

url[RW]

A URL. Corresponds to the JSON property `url` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/safebrowsing_v4/classes.rb, line 566
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/safebrowsing_v4/classes.rb, line 571
def update!(**args)
  @digest = args[:digest] if args.key?(:digest)
  @hash_prop = args[:hash_prop] if args.key?(:hash_prop)
  @url = args[:url] if args.key?(:url)
end