Reference documentation and code samples for the Google Cloud Model Armor V1 Client class SanitizationResult.
Sanitization result after applying all the filters on input content.
Generated from protobuf message google.cloud.modelarmor.v1.SanitizationResult
Namespace
Google \ Cloud \ ModelArmor \ V1Methods
__construct
Constructor.
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
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.
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.
var
int
$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".
setFilterResults
Output only. Results for all filters where the key is the filter name - either of "csam", "malicious_uris", "rai", "pi_and_jailbreak" ,"sdp".
$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.
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.
var
int
$this
getSanitizationMetadata
Output only. Metadata related to Sanitization.
hasSanitizationMetadata
clearSanitizationMetadata
setSanitizationMetadata
Output only. Metadata related to Sanitization.
$this