Class TextDeltaBlock
-
- All Implemented Interfaces:
public final class TextDeltaBlock
The text content that is part of a message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
TextDeltaBlock.Builder
A builder for TextDeltaBlock.
-
Method Summary
Modifier and Type Method Description final Long
index()
The index of the content part in the message. final JsonValue
_type()
Always text
.final Optional<TextDelta>
text()
final JsonField<Long>
_index()
Returns the raw JSON value of index. final JsonField<TextDelta>
_text()
Returns the raw JSON value of text. final Map<String, JsonValue>
_additionalProperties()
final TextDeltaBlock.Builder
toBuilder()
final TextDeltaBlock
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static TextDeltaBlock.Builder
builder()
Returns a mutable builder for constructing an instance of TextDeltaBlock. -
-
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).
-
_index
final JsonField<Long> _index()
Returns the raw JSON value of index.
Unlike index, this method doesn't throw if the JSON field has an unexpected type.
-
_text
final JsonField<TextDelta> _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 TextDeltaBlock.Builder toBuilder()
-
validate
final TextDeltaBlock validate()
-
builder
final static TextDeltaBlock.Builder builder()
Returns a mutable builder for constructing an instance of TextDeltaBlock.
The following fields are required:
.index()
-
-
-
-