# Firebase.AI.ModelContent.TextPart

A text part containing a string value.

## Summary

### Inheritance

Inherits from: [Firebase.AI.ModelContent.Part](https://firebase.google.com/docs/reference/unity/interface/firebase/a-i/model-content/part)

| ### Constructors and Destructors ||
|---|---|
| `https://firebase.google.com/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_1af3521ac4e9974cfb24c5c3b911a5e824(string text, https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/speech-metadata#struct_firebase_1_1_a_i_1_1_speech_metadata? speechMetadata)` Creates a `https://firebase.google.com/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. ||

| ### Properties ||
|---|---|
| `https://firebase.google.com/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_1ac44382588379d7269386d34efe0864c0` | `bool` |
| `https://firebase.google.com/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_1a308d47583cda1971c97da3873bebfed3` | `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/speech-metadata#struct_firebase_1_1_a_i_1_1_speech_metadata` Optional metadata used to guide speech generation, such as speaker and vocal style. |
| `https://firebase.google.com/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_1a55ebcd8aba25c4c352db358eac1d7add` | `string` Text value. |

| ### Public functions ||
|---|---|
| `https://firebase.google.com/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_1a08f6d39ab1eb93c9c4c295342b20de2c()` | `Dictionary< string, object > Part.` |

## Properties

### IsThought

```c#
bool Firebase::AI::ModelContent::TextPart::IsThought
```

### SpeechMetadata

```c#
SpeechMetadata Firebase::AI::ModelContent::TextPart::SpeechMetadata
```
Optional metadata used to guide speech generation, such as speaker and vocal style.

### Text

```c#
string Firebase::AI::ModelContent::TextPart::Text
```
Text value.

## Public functions

### TextPart

```c#
 Firebase::AI::ModelContent::TextPart::TextPart(
  string text,
  SpeechMetadata? speechMetadata
)
```
Creates a `https://firebase.google.com/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.

<br />

Details Parameters `text` The text value to use. `speechMetadata` Optional [SpeechMetadata](https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/speech-metadata#struct_firebase_1_1_a_i_1_1_speech_metadata) used to guide speech generation.

### ToJson

```c#
Dictionary< string, object > Part. Firebase::AI::ModelContent::TextPart::ToJson()
```