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



229
230
231
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 229

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



214
215
216
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 214

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)


221
222
223
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 221

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)


227
228
229
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 227

def negative_cache_duration
  @negative_cache_duration
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



234
235
236
237
238
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 234

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