Class: Google::Cloud::WebRisk::V1::ThreatInfo

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

Overview

Context about the submission including the type of abuse found on the URI and supporting details. option (google.api.message_visibility).restriction = "TRUSTED_TESTER";

Defined Under Namespace

Modules: AbuseType Classes: Confidence, ThreatJustification

Instance Attribute Summary collapse

Instance Attribute Details

#abuse_type::Google::Cloud::WebRisk::V1::ThreatInfo::AbuseType

Returns The type of abuse.

Returns:



316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
# File 'proto_docs/google/cloud/webrisk/v1/webrisk.rb', line 316

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

  # Confidence that a URI is unsafe.
  # @!attribute [rw] score
  #   @return [::Float]
  #     A decimal representation of confidence in the range of 0
  #     to 1 where 0 indicates no confidence and 1 indicates
  #     complete confidence.
  # @!attribute [rw] level
  #   @return [::Google::Cloud::WebRisk::V1::ThreatInfo::Confidence::ConfidenceLevel]
  #     Enum representation of confidence.
  class Confidence
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Enum representation of confidence.
    module ConfidenceLevel
      # Default.
      CONFIDENCE_LEVEL_UNSPECIFIED = 0

      # Less than 60% confidence that the URI is unsafe.
      LOW = 1

      # Between 60% and 80% confidence that the URI is unsafe.
      MEDIUM = 2

      # Greater than 80% confidence that the URI is unsafe.
      HIGH = 3
    end
  end

  # Context about why the URI is unsafe.
  # @!attribute [rw] labels
  #   @return [::Array<::Google::Cloud::WebRisk::V1::ThreatInfo::ThreatJustification::JustificationLabel>]
  #     Labels associated with this URI that explain how it was classified.
  # @!attribute [rw] comments
  #   @return [::Array<::String>]
  #     Free-form context on why this URI is unsafe.
  class ThreatJustification
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Labels that explain how the URI was classified.
    module JustificationLabel
      # Default.
      JUSTIFICATION_LABEL_UNSPECIFIED = 0

      # The submitter manually verified that the submission is unsafe.
      MANUAL_VERIFICATION = 1

      # The submitter received the submission from an end user.
      USER_REPORT = 2

      # The submitter received the submission from an automated system.
      AUTOMATED_REPORT = 3
    end
  end

  # The abuse type found on the URI.
  module AbuseType
    # Default.
    ABUSE_TYPE_UNSPECIFIED = 0

    # The URI contains malware.
    MALWARE = 1

    # The URI contains social engineering.
    SOCIAL_ENGINEERING = 2

    # The URI contains unwanted software.
    UNWANTED_SOFTWARE = 3
  end
end

#threat_confidence::Google::Cloud::WebRisk::V1::ThreatInfo::Confidence

Returns Confidence that the URI is unsafe.

Returns:



316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
# File 'proto_docs/google/cloud/webrisk/v1/webrisk.rb', line 316

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

  # Confidence that a URI is unsafe.
  # @!attribute [rw] score
  #   @return [::Float]
  #     A decimal representation of confidence in the range of 0
  #     to 1 where 0 indicates no confidence and 1 indicates
  #     complete confidence.
  # @!attribute [rw] level
  #   @return [::Google::Cloud::WebRisk::V1::ThreatInfo::Confidence::ConfidenceLevel]
  #     Enum representation of confidence.
  class Confidence
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Enum representation of confidence.
    module ConfidenceLevel
      # Default.
      CONFIDENCE_LEVEL_UNSPECIFIED = 0

      # Less than 60% confidence that the URI is unsafe.
      LOW = 1

      # Between 60% and 80% confidence that the URI is unsafe.
      MEDIUM = 2

      # Greater than 80% confidence that the URI is unsafe.
      HIGH = 3
    end
  end

  # Context about why the URI is unsafe.
  # @!attribute [rw] labels
  #   @return [::Array<::Google::Cloud::WebRisk::V1::ThreatInfo::ThreatJustification::JustificationLabel>]
  #     Labels associated with this URI that explain how it was classified.
  # @!attribute [rw] comments
  #   @return [::Array<::String>]
  #     Free-form context on why this URI is unsafe.
  class ThreatJustification
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Labels that explain how the URI was classified.
    module JustificationLabel
      # Default.
      JUSTIFICATION_LABEL_UNSPECIFIED = 0

      # The submitter manually verified that the submission is unsafe.
      MANUAL_VERIFICATION = 1

      # The submitter received the submission from an end user.
      USER_REPORT = 2

      # The submitter received the submission from an automated system.
      AUTOMATED_REPORT = 3
    end
  end

  # The abuse type found on the URI.
  module AbuseType
    # Default.
    ABUSE_TYPE_UNSPECIFIED = 0

    # The URI contains malware.
    MALWARE = 1

    # The URI contains social engineering.
    SOCIAL_ENGINEERING = 2

    # The URI contains unwanted software.
    UNWANTED_SOFTWARE = 3
  end
end

#threat_justification::Google::Cloud::WebRisk::V1::ThreatInfo::ThreatJustification

Returns Context about why the URI is unsafe.

Returns:



316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
# File 'proto_docs/google/cloud/webrisk/v1/webrisk.rb', line 316

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

  # Confidence that a URI is unsafe.
  # @!attribute [rw] score
  #   @return [::Float]
  #     A decimal representation of confidence in the range of 0
  #     to 1 where 0 indicates no confidence and 1 indicates
  #     complete confidence.
  # @!attribute [rw] level
  #   @return [::Google::Cloud::WebRisk::V1::ThreatInfo::Confidence::ConfidenceLevel]
  #     Enum representation of confidence.
  class Confidence
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Enum representation of confidence.
    module ConfidenceLevel
      # Default.
      CONFIDENCE_LEVEL_UNSPECIFIED = 0

      # Less than 60% confidence that the URI is unsafe.
      LOW = 1

      # Between 60% and 80% confidence that the URI is unsafe.
      MEDIUM = 2

      # Greater than 80% confidence that the URI is unsafe.
      HIGH = 3
    end
  end

  # Context about why the URI is unsafe.
  # @!attribute [rw] labels
  #   @return [::Array<::Google::Cloud::WebRisk::V1::ThreatInfo::ThreatJustification::JustificationLabel>]
  #     Labels associated with this URI that explain how it was classified.
  # @!attribute [rw] comments
  #   @return [::Array<::String>]
  #     Free-form context on why this URI is unsafe.
  class ThreatJustification
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Labels that explain how the URI was classified.
    module JustificationLabel
      # Default.
      JUSTIFICATION_LABEL_UNSPECIFIED = 0

      # The submitter manually verified that the submission is unsafe.
      MANUAL_VERIFICATION = 1

      # The submitter received the submission from an end user.
      USER_REPORT = 2

      # The submitter received the submission from an automated system.
      AUTOMATED_REPORT = 3
    end
  end

  # The abuse type found on the URI.
  module AbuseType
    # Default.
    ABUSE_TYPE_UNSPECIFIED = 0

    # The URI contains malware.
    MALWARE = 1

    # The URI contains social engineering.
    SOCIAL_ENGINEERING = 2

    # The URI contains unwanted software.
    UNWANTED_SOFTWARE = 3
  end
end