Google Cloud Model Armor V1beta Client - Class SanitizationResult (0.4.0)

Reference documentation and code samples for the Google Cloud Model Armor V1beta Client class SanitizationResult.

Sanitization result after applying all the filters on input content.

Generated from protobuf message google.cloud.modelarmor.v1beta.SanitizationResult

Namespace

Google \ Cloud \ ModelArmor \ V1beta

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ filter_match_state
int

Output only. Overall filter match state for Sanitization. The state can have below two values. 1) NO_MATCH_FOUND: No filters in configuration satisfy matching criteria. In other words, input passed all filters. 2) MATCH_FOUND: At least one filter in configuration satisfies matching. In other words, input did not pass one or more filters.

↳ filter_results
array| Google\Protobuf\Internal\MapField

Output only. Results for all filters where the key is the filter name - either of "csam", "malicious_uris", "rai", "pi_and_jailbreak" ,"sdp".

↳ invocation_result
int

Output only. A field indicating the outcome of the invocation, irrespective of match status. It can have the following three values: SUCCESS: All filters were executed successfully. PARTIAL: Some filters were skipped or failed execution. FAILURE: All filters were skipped or failed execution.

↳ sanitization_metadata
SanitizationResult\SanitizationMetadata

Output only. Metadata related to Sanitization.

getFilterMatchState

Output only. Overall filter match state for Sanitization.

The state can have below two values. 1) NO_MATCH_FOUND: No filters in configuration satisfy matching criteria. In other words, input passed all filters. 2) MATCH_FOUND: At least one filter in configuration satisfies matching. In other words, input did not pass one or more filters.

Returns
Type
Description
int

setFilterMatchState

Output only. Overall filter match state for Sanitization.

The state can have below two values. 1) NO_MATCH_FOUND: No filters in configuration satisfy matching criteria. In other words, input passed all filters. 2) MATCH_FOUND: At least one filter in configuration satisfies matching. In other words, input did not pass one or more filters.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getFilterResults

Output only. Results for all filters where the key is the filter name - either of "csam", "malicious_uris", "rai", "pi_and_jailbreak" ,"sdp".

Returns
Type
Description

setFilterResults

Output only. Results for all filters where the key is the filter name - either of "csam", "malicious_uris", "rai", "pi_and_jailbreak" ,"sdp".

Parameter
Name
Description
Returns
Type
Description
$this

getInvocationResult

Output only. A field indicating the outcome of the invocation, irrespective of match status. It can have the following three values: SUCCESS: All filters were executed successfully. PARTIAL: Some filters were skipped or failed execution. FAILURE: All filters were skipped or failed execution.

Returns
Type
Description
int

setInvocationResult

Output only. A field indicating the outcome of the invocation, irrespective of match status. It can have the following three values: SUCCESS: All filters were executed successfully. PARTIAL: Some filters were skipped or failed execution. FAILURE: All filters were skipped or failed execution.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

Output only. Metadata related to Sanitization.

Returns
Type
Description

Output only. Metadata related to Sanitization.

Parameter
Name
Description
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: