SanitizationResult(mapping=None, *, ignore_unknown_fields=False, **kwargs)Sanitization result after applying all the filters on input content.
Attributes |
|
|---|---|
| Name | Description |
filter_match_state |
google.cloud.modelarmor_v1.types.FilterMatchState
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 |
MutableMapping[str, google.cloud.modelarmor_v1.types.FilterResult]
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 |
google.cloud.modelarmor_v1.types.InvocationResult
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 |
google.cloud.modelarmor_v1.types.SanitizationResult.SanitizationMetadata
Output only. Metadata related to Sanitization. |
Classes
FilterResultsEntry
FilterResultsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)The abstract base class for a message.
| Parameters | |
|---|---|
| Name | Description |
kwargs |
dict
Keys and values corresponding to the fields of the message. |
mapping |
Union[dict,
A dictionary or message to be used to determine the values for this message. |
ignore_unknown_fields |
Optional(bool)
If True, do not raise errors for unknown fields. Only applied if |
SanitizationMetadata
SanitizationMetadata(mapping=None, *, ignore_unknown_fields=False, **kwargs)Message describing Sanitization metadata.