Stay organized with collections
Save and categorize content based on your preferences.
Firebase.AI.ModelContent.TextPart
A text part containing a string value.
Summary
Inheritance
Inherits from:
Firebase.AI.ModelContent.Part
Constructors and Destructors
|
TextPart(string text)
|
Properties
|
Text
|
string
Text value.
|
Public functions
|
ToJson()
|
Dictionary< string, object > Part.
|
Properties
Text
string Firebase::AI::ModelContent::TextPart::Text
Public functions
TextPart
Firebase::AI::ModelContent::TextPart::TextPart(
string text
)
Creates a TextPart
with the given text.
Details |
Parameters |
text
|
The text value to use.
|
|
ToJson
Dictionary< string, object > Part. Firebase::AI::ModelContent::TextPart::ToJson()
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-20 UTC.
[null,null,["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```"]]