Google Cloud Model Armor V1 Client - Class RaiFilterTypeResult (0.6.0)

Reference documentation and code samples for the Google Cloud Model Armor V1 Client class RaiFilterTypeResult.

Detailed Filter result for each of the responsible AI Filter Types.

Generated from protobuf message google.cloud.modelarmor.v1.RaiFilterResult.RaiFilterTypeResult

Namespace

Google \ Cloud \ ModelArmor \ V1 \ RaiFilterResult

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ filter_type int

Type of responsible AI filter.

↳ confidence_level int

Confidence level identified for this RAI filter.

↳ match_state int

Output only. Match state for this RAI filter.

getFilterType

Type of responsible AI filter.

Returns
Type Description
int Enum of type RaiFilterType.

setFilterType

Type of responsible AI filter.

Parameter
Name Description
var int

Enum of type RaiFilterType.

Returns
Type Description
$this

getConfidenceLevel

Confidence level identified for this RAI filter.

Returns
Type Description
int Enum of type DetectionConfidenceLevel.

setConfidenceLevel

Confidence level identified for this RAI filter.

Parameter
Name Description
var int

Enum of type DetectionConfidenceLevel.

Returns
Type Description
$this

getMatchState

Output only. Match state for this RAI filter.

Returns
Type Description
int Enum of type FilterMatchState.

setMatchState

Output only. Match state for this RAI filter.

Parameter
Name Description
var int

Enum of type FilterMatchState.

Returns
Type Description
$this