requiresUTF8Validation

    Returns true if this is a string field and should do UTF-8 validation.

    Descriptor.swift:1116
    var requiresUTF8Validation: Bool { get }

    This api is for completeness, but it likely should never be used. The concept comes from the C++ FieldDescriptory::requires_utf8_validation(), but doesn’t make a lot of sense for Swift Protobuf because string fields are modeled as Swift String objects, and thus they always have to be valid UTF-8. If something were to try putting something else in the field, the library won’t be able to parse it. While that sounds bad, other languages have similar issues with their string types and thus have the same issues.

    Other members in extension

    Instance members

    Show obsolete interfaces (5)

    Hide obsolete interfaces