Google Cloud Dialogflow V2 Client - Class RaiCategoryConfig (2.3.0)

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

Configuration for a specific RAI category.

Generated from protobuf message google.cloud.dialogflow.v2.RaiSettings.RaiCategoryConfig

Namespace

Google \ Cloud \ Dialogflow \ V2 \ RaiSettings

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ category int

Optional. The RAI category.

↳ sensitivity_level int

Optional. The sensitivity level for this category.

getCategory

Optional. The RAI category.

Returns
Type Description
int Enum of type RaiCategory.

setCategory

Optional. The RAI category.

Parameter
Name Description
var int

Enum of type RaiCategory.

Returns
Type Description
$this

getSensitivityLevel

Optional. The sensitivity level for this category.

Returns
Type Description
int Enum of type SensitivityLevel.

setSensitivityLevel

Optional. The sensitivity level for this category.

Parameter
Name Description
var int

Enum of type SensitivityLevel.

Returns
Type Description
$this