Class: Google::Apis::SafebrowsingV4::FindFullHashesResponse

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

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) ⇒ FindFullHashesResponse

Returns a new instance of FindFullHashesResponse



262
263
264
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 262

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

Instance Attribute Details

#matchesArray<Google::Apis::SafebrowsingV4::ThreatMatch>

The full hashes that matched the requested prefixes. Corresponds to the JSON property matches



247
248
249
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 247

def matches
  @matches
end

#minimum_wait_durationString

The minimum duration the client must wait before issuing any find hashes request. If this field is not set, clients can issue a request as soon as they want. Corresponds to the JSON property minimumWaitDuration

Returns:

  • (String)


254
255
256
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 254

def minimum_wait_duration
  @minimum_wait_duration
end

#negative_cache_durationString

For requested entities that did not match the threat list, how long to cache the response. Corresponds to the JSON property negativeCacheDuration

Returns:

  • (String)


260
261
262
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 260

def negative_cache_duration
  @negative_cache_duration
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



267
268
269
270
271
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 267

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