Class TextContentBlock
-
- All Implemented Interfaces:
public final class TextContentBlockThe text content that is part of a message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTextContentBlock.BuilderA builder for TextContentBlock.
-
Method Summary
Modifier and Type Method Description final Texttext()final JsonValue_type()Always text.final JsonField<Text>_text()Returns the raw JSON value of text. final Map<String, JsonValue>_additionalProperties()final TextContentBlock.BuildertoBuilder()final TextContentBlockvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static TextContentBlock.Builderbuilder()Returns a mutable builder for constructing an instance of TextContentBlock. -
-
Method Detail
-
_type
final JsonValue _type()
Always
text.Expected to always return the following:
JsonValue.from("text")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_text
final JsonField<Text> _text()
Returns the raw JSON value of text.
Unlike text, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final TextContentBlock.Builder toBuilder()
-
validate
final TextContentBlock validate()
-
builder
final static TextContentBlock.Builder builder()
Returns a mutable builder for constructing an instance of TextContentBlock.
The following fields are required:
.text()
-
-
-
-