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

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

Defined Under Namespace

Classes: ThreatHash

Instance Attribute Summary collapse

Instance Attribute Details

#negative_expire_time::Google::Protobuf::Timestamp

Returns For requested entities that did not match the threat list, how long to cache the response until.

Returns:



179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
# File 'proto_docs/google/cloud/webrisk/v1/webrisk.rb', line 179

class SearchHashesResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Contains threat information on a matching hash.
  # @!attribute [rw] threat_types
  #   @return [::Array<::Google::Cloud::WebRisk::V1::ThreatType>]
  #     The ThreatList this threat belongs to.
  #     This must contain at least one entry.
  # @!attribute [rw] hash
  #   @return [::String]
  #     A 32 byte SHA256 hash. This field is in binary format. For JSON
  #     requests, hashes are base64-encoded.
  # @!attribute [rw] expire_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The cache lifetime for the returned match. Clients must not cache this
  #     response past this timestamp to avoid false positives.
  class ThreatHash
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#threats::Array<::Google::Cloud::WebRisk::V1::SearchHashesResponse::ThreatHash>

Returns The full hashes that matched the requested prefixes. The hash will be populated in the key.

Returns:



179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
# File 'proto_docs/google/cloud/webrisk/v1/webrisk.rb', line 179

class SearchHashesResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Contains threat information on a matching hash.
  # @!attribute [rw] threat_types
  #   @return [::Array<::Google::Cloud::WebRisk::V1::ThreatType>]
  #     The ThreatList this threat belongs to.
  #     This must contain at least one entry.
  # @!attribute [rw] hash
  #   @return [::String]
  #     A 32 byte SHA256 hash. This field is in binary format. For JSON
  #     requests, hashes are base64-encoded.
  # @!attribute [rw] expire_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The cache lifetime for the returned match. Clients must not cache this
  #     response past this timestamp to avoid false positives.
  class ThreatHash
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end