Class: Google::Cloud::WebRisk::V1::SearchHashesResponse::ThreatHash

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/webrisk/v1/webrisk.rb

Overview

Contains threat information on a matching hash.

Instance Attribute Summary collapse

Instance Attribute Details

#expire_time::Google::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.



196
197
198
199
# File 'proto_docs/google/cloud/webrisk/v1/webrisk.rb', line 196

class ThreatHash
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#hash::String

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.



196
197
198
199
# File 'proto_docs/google/cloud/webrisk/v1/webrisk.rb', line 196

class ThreatHash
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#threat_types::Array<::Google::Cloud::WebRisk::V1::ThreatType>

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

Returns:



196
197
198
199
# File 'proto_docs/google/cloud/webrisk/v1/webrisk.rb', line 196

class ThreatHash
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end