संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
public final class TextPart implements Part
अनुरोधों से भेजे गए और उनसे मिले टेक्स्ट या स्ट्रिंग पर आधारित डेटा दिखाता है.
खास जानकारी
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया."],[],[],null,["# TextPart\n========\n\n*** ** * ** ***\n\n[Kotlin](/ai/reference/kotlin/com/google/ai/edge/aicore/TextPart \"View this page in Kotlin\") \\|Java \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\n| ### Public constructors |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [TextPart](/ai/reference/com/google/ai/edge/aicore/TextPart#TextPart(kotlin.String))`(@`[NonNull](https://developer.android.com/reference/androidx/annotation/NonNull.html)` `[String](https://developer.android.com/reference/java/lang/String.html)` text)` |\n\n| ### Public methods |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------|\n| `final @`[NonNull](https://developer.android.com/reference/androidx/annotation/NonNull.html)` `[String](https://developer.android.com/reference/java/lang/String.html) | [getText](/ai/reference/com/google/ai/edge/aicore/TextPart#getText())`()` |\n\nPublic constructors\n-------------------\n\n### TextPart\n\n```\npublic TextPart(@NonNull String text)\n``` \n\nPublic methods\n--------------\n\n### getText\n\n```\npublic final @NonNull String getText()\n```"]]