public sealed class SanitizationResult : IMessage<SanitizationResult>, IEquatable<SanitizationResult>, IDeepCloneable<SanitizationResult>, IBufferMessage, IMessage
Reference documentation and code samples for the Model Armor v1 API class SanitizationResult.
Sanitization result after applying all the filters on input content.
Implements
IMessageSanitizationResult, IEquatableSanitizationResult, IDeepCloneableSanitizationResult, IBufferMessage, IMessageNamespace
Google.Cloud.ModelArmor.V1Assembly
Google.Cloud.ModelArmor.V1.dll
Constructors
SanitizationResult()
public SanitizationResult()
SanitizationResult(SanitizationResult)
public SanitizationResult(SanitizationResult other)
Parameter | |
---|---|
Name | Description |
other |
SanitizationResult |
Properties
FilterMatchState
public FilterMatchState FilterMatchState { get; set; }
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.
Property Value | |
---|---|
Type | Description |
FilterMatchState |
FilterResults
public MapField<string, FilterResult> FilterResults { get; }
Output only. Results for all filters where the key is the filter name - either of "csam", "malicious_uris", "rai", "pi_and_jailbreak" ,"sdp".
Property Value | |
---|---|
Type | Description |
MapFieldstringFilterResult |
InvocationResult
public InvocationResult InvocationResult { get; set; }
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.
Property Value | |
---|---|
Type | Description |
InvocationResult |
SanitizationMetadata
public SanitizationResult.Types.SanitizationMetadata SanitizationMetadata { get; set; }
Output only. Metadata related to Sanitization.
Property Value | |
---|---|
Type | Description |
SanitizationResultTypesSanitizationMetadata |