SwiftstructSensitiveContentAnalysisML

struct SensitiveContentAnalysisML.BlocklistsConfig

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

inherits{}

Members 4

  1. funcstatic load(url: Foundation.URL) throws -> SensitiveContentAnalysisML.BlocklistsConfig
  2. fieldlet groups: [SensitiveContentAnalysisML.BlocklistsConfig.BlocklistGroupConfig]+0x0
  3. funcmatchTypeForName(String) throws -> SensitiveContentAnalysisML.MultiwordGazetteer.MatchType
  4. varvar containsUnknownEntries: Bool { get }
struct BlocklistsConfig {
    enum TextAttribute {
        case personalized
        case child
        case textGuidedRevision
        case unknown
    }
    enum Label {
        case desecration
        case nationalityFlags
        case customWords
        case personalization
        case minor
        case fullDisallow
        case fullPersonalization
        case appleProducts
        case nationality
        case countries
        case drugs
        case unknown
    }
    struct BlocklistGroupConfig {
        enum CodingKeys {
            case label
            case blocklists
            case textAttributes
        }
        let label: SensitiveContentAnalysisML.BlocklistsConfig.Label
        let blocklists: [SensitiveContentAnalysisML.BlocklistsConfig.BlocklistConfig]
        let textAttributes: [SensitiveContentAnalysisML.BlocklistsConfig.TextAttribute]
    }
    enum CodingKeys {
        case groups
    }
    struct BlocklistNameNotFound {
        enum CodingKeys {
            case name
        }
        let name: Swift.String
    }
    struct BlocklistConfigLoadFailed {
        let argument: Swift.String
        let cause: any Swift.Error
    }
    struct BlocklistConfig {
        enum CodingKeys {
            case name
            case type
        }
        let name: Swift.String
        let type: SensitiveContentAnalysisML.MultiwordGazetteer.MatchType
    }
    let groups: [SensitiveContentAnalysisML.BlocklistsConfig.BlocklistGroupConfig]

    var containsUnknownEntries: Swift.Bool {
        get
    }

    func matchTypeForName(_: Swift.String) throws -> SensitiveContentAnalysisML.MultiwordGazetteer.MatchType

    static func load(url: Foundation.URL) throws -> SensitiveContentAnalysisML.BlocklistsConfig
}