Class: Google::Cloud::Dialogflow::V2::RaiSettings::RaiCategoryConfig

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

Overview

Configuration for a specific RAI category.

Defined Under Namespace

Modules: RaiCategory, SensitivityLevel

Instance Attribute Summary collapse

Instance Attribute Details

#category::Google::Cloud::Dialogflow::V2::RaiSettings::RaiCategoryConfig::RaiCategory

Returns Optional. The RAI category.



581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
# File 'proto_docs/google/cloud/dialogflow/v2/generator.rb', line 581

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

  # Enum for RAI category.
  module RaiCategory
    # Default value.
    RAI_CATEGORY_UNSPECIFIED = 0

    # Dangerous content.
    DANGEROUS_CONTENT = 1

    # Sexually explicit content.
    SEXUALLY_EXPLICIT = 2

    # Harassment content.
    HARASSMENT = 3

    # Hate speech content.
    HATE_SPEECH = 4
  end

  # Enum for user-configurable sensitivity levels.
  module SensitivityLevel
    # Default value.
    # If unspecified, the default behavior is:
    # - DANGEROUS_CONTENT: BLOCK_FEW
    # - SEXUALLY_EXPLICIT: BLOCK_SOME
    # - HARASSMENT: BLOCK_SOME
    # - HATE_SPEECH: BLOCK_SOME
    SENSITIVITY_LEVEL_UNSPECIFIED = 0

    # Block most potentially sensitive responses.
    BLOCK_MOST = 1

    # Block some potentially sensitive responses.
    BLOCK_SOME = 2

    # Block a few potentially sensitive responses.
    BLOCK_FEW = 3

    # No filtering for this category.
    BLOCK_NONE = 4
  end
end

#sensitivity_level::Google::Cloud::Dialogflow::V2::RaiSettings::RaiCategoryConfig::SensitivityLevel

Returns Optional. The sensitivity level for this category.

Returns:



581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
# File 'proto_docs/google/cloud/dialogflow/v2/generator.rb', line 581

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

  # Enum for RAI category.
  module RaiCategory
    # Default value.
    RAI_CATEGORY_UNSPECIFIED = 0

    # Dangerous content.
    DANGEROUS_CONTENT = 1

    # Sexually explicit content.
    SEXUALLY_EXPLICIT = 2

    # Harassment content.
    HARASSMENT = 3

    # Hate speech content.
    HATE_SPEECH = 4
  end

  # Enum for user-configurable sensitivity levels.
  module SensitivityLevel
    # Default value.
    # If unspecified, the default behavior is:
    # - DANGEROUS_CONTENT: BLOCK_FEW
    # - SEXUALLY_EXPLICIT: BLOCK_SOME
    # - HARASSMENT: BLOCK_SOME
    # - HATE_SPEECH: BLOCK_SOME
    SENSITIVITY_LEVEL_UNSPECIFIED = 0

    # Block most potentially sensitive responses.
    BLOCK_MOST = 1

    # Block some potentially sensitive responses.
    BLOCK_SOME = 2

    # Block a few potentially sensitive responses.
    BLOCK_FEW = 3

    # No filtering for this category.
    BLOCK_NONE = 4
  end
end