Google Cloud Dialogflow Cx V3 Client - Class CategoryFilter (0.11.0)

Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class CategoryFilter.

Configuration of the sensitivity level for blocking an RAI category.

Generated from protobuf message google.cloud.dialogflow.cx.v3.SafetySettings.RaiSettings.CategoryFilter

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3 \ SafetySettings \ RaiSettings

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ category int

RAI category to configure.

↳ filter_level int

Blocking sensitivity level to configure for the RAI category.

getCategory

RAI category to configure.

Returns
Type Description
int Enum of type SafetyCategory.

setCategory

RAI category to configure.

Parameter
Name Description
var int

Enum of type SafetyCategory.

Returns
Type Description
$this

getFilterLevel

Blocking sensitivity level to configure for the RAI category.

Returns
Type Description
int Enum of type SafetyFilterLevel.

setFilterLevel

Blocking sensitivity level to configure for the RAI category.

Parameter
Name Description
var int

Enum of type SafetyFilterLevel.

Returns
Type Description
$this