Google Cloud Dialogflow V2 Client - Class SensitivityLevel (2.3.0)

Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class SensitivityLevel.

Enum for user-configurable sensitivity levels.

Protobuf type google.cloud.dialogflow.v2.RaiSettings.RaiCategoryConfig.SensitivityLevel

Namespace

Google \ Cloud \ Dialogflow \ V2 \ RaiSettings \ RaiCategoryConfig

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

SENSITIVITY_LEVEL_UNSPECIFIED

Value: 0

Default value.

If unspecified, the default behavior is:

  • DANGEROUS_CONTENT: BLOCK_FEW
  • SEXUALLY_EXPLICIT: BLOCK_SOME
  • HARASSMENT: BLOCK_SOME
  • HATE_SPEECH: BLOCK_SOME

Generated from protobuf enum SENSITIVITY_LEVEL_UNSPECIFIED = 0;

BLOCK_MOST

Value: 1

Block most potentially sensitive responses.

Generated from protobuf enum BLOCK_MOST = 1;

BLOCK_SOME

Value: 2

Block some potentially sensitive responses.

Generated from protobuf enum BLOCK_SOME = 2;

BLOCK_FEW

Value: 3

Block a few potentially sensitive responses.

Generated from protobuf enum BLOCK_FEW = 3;

BLOCK_NONE

Value: 4

No filtering for this category.

Generated from protobuf enum BLOCK_NONE = 4;