# MPPTextRole

    enum MPPTextRole: RawRepresentable, Sendable, Equatable, Hashable, BitwiseCopyable

The role of the text in the context of the embedding task for Gecko models.
- `
  ### [document](https://developers.google.com/edge/api/mediapipe/swift/text/Enums/MPPTextRole.md.txt#/c:_E_MPPTextRole_MPPTextRoleDocument)

  `

  #### Declaration

  Swift

      case document

- `
  ### [query](https://developers.google.com/edge/api/mediapipe/swift/text/Enums/MPPTextRole.md.txt#/c:_E_MPPTextRole_MPPTextRoleQuery)

  `

  #### Declaration

  Swift

      case query

- `
  ### [init(rawValue:)](https://developers.google.com/edge/api/mediapipe/swift/text/Enums/MPPTextRole.md.txt#/s:So11MPPTextRoleV8rawValueABSgSu_tcfc)

  `

  #### Declaration

  Swift

      init?(rawValue: UInt)