Class MessageContentDelta
-
- All Implemented Interfaces:
public final class MessageContentDelta
References an image File in the content of a message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
MessageContentDelta.Visitor
An interface that defines how to map each variant of MessageContentDelta to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<ImageFileDeltaBlock>
imageFile()
References an image File in the content of a message. final Optional<TextDeltaBlock>
text()
The text content that is part of a message. final Optional<RefusalDeltaBlock>
refusal()
The refusal content that is part of a message. final Optional<ImageUrlDeltaBlock>
imageUrl()
References an image URL in the content of a message. final Boolean
isImageFile()
final Boolean
isText()
final Boolean
isRefusal()
final Boolean
isImageUrl()
final ImageFileDeltaBlock
asImageFile()
References an image File in the content of a message. final TextDeltaBlock
asText()
The text content that is part of a message. final RefusalDeltaBlock
asRefusal()
The refusal content that is part of a message. final ImageUrlDeltaBlock
asImageUrl()
References an image URL in the content of a message. final Optional<JsonValue>
_json()
final <T extends Any> T
accept(MessageContentDelta.Visitor<T> visitor)
final MessageContentDelta
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static MessageContentDelta
ofImageFile(ImageFileDeltaBlock imageFile)
References an image File in the content of a message. final static MessageContentDelta
ofText(TextDeltaBlock text)
The text content that is part of a message. final static MessageContentDelta
ofRefusal(RefusalDeltaBlock refusal)
The refusal content that is part of a message. final static MessageContentDelta
ofImageUrl(ImageUrlDeltaBlock imageUrl)
References an image URL in the content of a message. -
-
Method Detail
-
imageFile
final Optional<ImageFileDeltaBlock> imageFile()
References an image File in the content of a message.
-
text
final Optional<TextDeltaBlock> text()
The text content that is part of a message.
-
refusal
final Optional<RefusalDeltaBlock> refusal()
The refusal content that is part of a message.
-
imageUrl
final Optional<ImageUrlDeltaBlock> imageUrl()
References an image URL in the content of a message.
-
isImageFile
final Boolean isImageFile()
-
isImageUrl
final Boolean isImageUrl()
-
asImageFile
final ImageFileDeltaBlock asImageFile()
References an image File in the content of a message.
-
asText
final TextDeltaBlock asText()
The text content that is part of a message.
-
asRefusal
final RefusalDeltaBlock asRefusal()
The refusal content that is part of a message.
-
asImageUrl
final ImageUrlDeltaBlock asImageUrl()
References an image URL in the content of a message.
-
accept
final <T extends Any> T accept(MessageContentDelta.Visitor<T> visitor)
-
validate
final MessageContentDelta validate()
-
ofImageFile
final static MessageContentDelta ofImageFile(ImageFileDeltaBlock imageFile)
References an image File in the content of a message.
-
ofText
final static MessageContentDelta ofText(TextDeltaBlock text)
The text content that is part of a message.
-
ofRefusal
final static MessageContentDelta ofRefusal(RefusalDeltaBlock refusal)
The refusal content that is part of a message.
-
ofImageUrl
final static MessageContentDelta ofImageUrl(ImageUrlDeltaBlock imageUrl)
References an image URL in the content of a message.
-
-
-
-