IMPORTANT: In July 2025, we stopped releasing new versions of KTX modules, and we removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the previously released KTX modules, we recommend that you migrate your app to use KTX APIs from the main modules instead. For details, see the FAQ about this initiative.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["TextPart\n\n\n```\npublic final class TextPart implements Part\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nRepresents text or string based data sent to and received from requests.\n\nSummary \n\n| Public fields |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------|\n| `boolean` | [isThought](/docs/reference/android/com/google/firebase/ai/type/TextPart#isThought()) |\n| `final @`[NonNull](https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html)` `[String](https://developer.android.com/reference/kotlin/java/lang/String.html) | [text](/docs/reference/android/com/google/firebase/ai/type/TextPart#text()) |\n\n| Public constructors |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [TextPart](/docs/reference/android/com/google/firebase/ai/type/TextPart#TextPart(kotlin.String))`(@`[NonNull](https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html)` `[String](https://developer.android.com/reference/kotlin/java/lang/String.html)` text)` |\n\nPublic fields \n\nisThought \n\n```\npublic boolean isThought\n``` \n\ntext \n\n```\npublic final @NonNull String text\n``` \n\nPublic constructors \n\nTextPart \n\n```\npublic TextPart(@NonNull String text)\n```"]]