Class: Google::Cloud::Webrisk::V1beta1::SearchHashesResponse::ThreatHash

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/webrisk/v1beta1/doc/google/cloud/webrisk/v1beta1/webrisk.rb

Overview

Contains threat information on a matching hash.

Instance Attribute Summary collapse

Instance Attribute Details

#expire_timeGoogle::Protobuf::Timestamp

Returns The cache lifetime for the returned match. Clients must not cache this response past this timestamp to avoid false positives.

Returns:

  • (Google::Protobuf::Timestamp)

    The cache lifetime for the returned match. Clients must not cache this response past this timestamp to avoid false positives.



154
# File 'lib/google/cloud/webrisk/v1beta1/doc/google/cloud/webrisk/v1beta1/webrisk.rb', line 154

class ThreatHash; end

#hashString

Returns A 32 byte SHA256 hash. This field is in binary format. For JSON requests, hashes are base64-encoded.

Returns:

  • (String)

    A 32 byte SHA256 hash. This field is in binary format. For JSON requests, hashes are base64-encoded.



154
# File 'lib/google/cloud/webrisk/v1beta1/doc/google/cloud/webrisk/v1beta1/webrisk.rb', line 154

class ThreatHash; end

#threat_typesArray<Google::Cloud::Webrisk::V1beta1::ThreatType>

Returns The ThreatList this threat belongs to. This must contain at least one entry.

Returns:



154
# File 'lib/google/cloud/webrisk/v1beta1/doc/google/cloud/webrisk/v1beta1/webrisk.rb', line 154

class ThreatHash; end