Reference documentation and code samples for the Google Cloud Model Armor V1 Client class CsamFilterSettings.
Child sexual abuse material (CSAM) filter settings.
Generated from protobuf message google.cloud.modelarmor.v1.CsamFilterSettings
Namespace
Google \ Cloud \ ModelArmor \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ filter_enforcement |
int
Optional. Specifies whether the CSAM filter is enabled or disabled. |
↳ confidence_level |
int
Optional. Confidence level for this CSAM filter. This field is used to determine the threshold for the filter. If detection confidence is greater than or equal to the specified level, a positive match is reported. Confidence level will only be used if the filter is enabled. |
getFilterEnforcement
Optional. Specifies whether the CSAM filter is enabled or disabled.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type CsamFilterEnforcement. |
setFilterEnforcement
Optional. Specifies whether the CSAM filter is enabled or disabled.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type CsamFilterEnforcement. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getConfidenceLevel
Optional. Confidence level for this CSAM filter.
This field is used to determine the threshold for the filter. If detection confidence is greater than or equal to the specified level, a positive match is reported. Confidence level will only be used if the filter is enabled.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type DetectionConfidenceLevel. |
setConfidenceLevel
Optional. Confidence level for this CSAM filter.
This field is used to determine the threshold for the filter. If detection confidence is greater than or equal to the specified level, a positive match is reported. Confidence level will only be used if the filter is enabled.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type DetectionConfidenceLevel. |
| Returns | |
|---|---|
| Type | Description |
$this |
|