[[["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-05-20 UTC."],[],[],null,["# Firebase.AI.ModelContent.TextPart Struct Reference\n\nFirebase.AI.ModelContent.TextPart\n=================================\n\nA text part containing a string value.\n\nSummary\n-------\n\n### Inheritance\n\nInherits from: [Firebase.AI.ModelContent.Part](/docs/reference/unity/interface/firebase/a-i/model-content/part)\n\n| ### Constructors and Destructors ||\n|---|---|\n| [TextPart](#struct_firebase_1_1_a_i_1_1_model_content_1_1_text_part_1a983d40e956cb7e579b241ed1f3b9d003)`(string text)` Creates a [TextPart](/docs/reference/unity/struct/firebase/a-i/model-content/text-part#struct_firebase_1_1_a_i_1_1_model_content_1_1_text_part) with the given text. ||\n\n| ### Properties ||\n|-----------------------------------------------------------------------------------------------------|----------------------|\n| [Text](#struct_firebase_1_1_a_i_1_1_model_content_1_1_text_part_1a55ebcd8aba25c4c352db358eac1d7add) | `string` Text value. |\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------------|--------------------------------------|\n| [ToJson](#struct_firebase_1_1_a_i_1_1_model_content_1_1_text_part_1a08f6d39ab1eb93c9c4c295342b20de2c)`()` | `Dictionary\u003c string, object \u003e Part.` |\n\nProperties\n----------\n\n### Text\n\n```c#\nstring Firebase::AI::ModelContent::TextPart::Text\n``` \nText value.\n\nPublic functions\n----------------\n\n### TextPart\n\n```c#\n Firebase::AI::ModelContent::TextPart::TextPart(\n string text\n)\n``` \nCreates a [TextPart](/docs/reference/unity/struct/firebase/a-i/model-content/text-part#struct_firebase_1_1_a_i_1_1_model_content_1_1_text_part) with the given text.\n\n\u003cbr /\u003e\n\n| Details ||\n|------------|-------------------------------------------------------------------------|\n| Parameters | |--------|------------------------| | `text` | The text value to use. | |\n\n### ToJson\n\n```c#\nDictionary\u003c string, object \u003e Part. Firebase::AI::ModelContent::TextPart::ToJson()\n```"]]