Reference documentation and code samples for the Google Cloud Model Armor V1 Client class RaiFilterResult.
Responsible AI Result.
Generated from protobuf message google.cloud.modelarmor.v1.RaiFilterResult
Namespace
Google \ Cloud \ ModelArmor \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ execution_state
int
Output only. Reports whether the RAI filter was successfully executed or not.
↳ message_items
array< MessageItem
>
Optional messages corresponding to the result. A message can provide warnings or error details. For example, if execution state is skipped then this field provides related reason/explanation.
↳ match_state
int
Output only. Overall filter match state for RAI. Value is MATCH_FOUND if at least one RAI filter confidence level is equal to or higher than the confidence level defined in configuration.
↳ rai_filter_type_results
array| Google\Protobuf\Internal\MapField
The map of RAI filter results where key is RAI filter type - either of "sexually_explicit", "hate_speech", "harassment", "dangerous".
getExecutionState
Output only. Reports whether the RAI filter was successfully executed or not.
int
setExecutionState
Output only. Reports whether the RAI filter was successfully executed or not.
var
int
$this
getMessageItems
Optional messages corresponding to the result.
A message can provide warnings or error details. For example, if execution state is skipped then this field provides related reason/explanation.
setMessageItems
Optional messages corresponding to the result.
A message can provide warnings or error details. For example, if execution state is skipped then this field provides related reason/explanation.
$this
getMatchState
Output only. Overall filter match state for RAI.
Value is MATCH_FOUND if at least one RAI filter confidence level is equal to or higher than the confidence level defined in configuration.
int
setMatchState
Output only. Overall filter match state for RAI.
Value is MATCH_FOUND if at least one RAI filter confidence level is equal to or higher than the confidence level defined in configuration.
var
int
$this
getRaiFilterTypeResults
The map of RAI filter results where key is RAI filter type - either of "sexually_explicit", "hate_speech", "harassment", "dangerous".
setRaiFilterTypeResults
The map of RAI filter results where key is RAI filter type - either of "sexually_explicit", "hate_speech", "harassment", "dangerous".
$this