public class AIMessage extends DataClass
AIRequest.messages of an AI request.factoryCreated, factoryProperties| Constructor and Description |
|---|
AIMessage() |
AIMessage(com.google.gwt.core.client.JavaScriptObject jsObj) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object | getContent() The data for the message. |
static AIMessage | getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
AIContentType | getType() The type of data. |
AIMessage | setContent(java.lang.Object content) The data for the message. |
AIMessage | setType(AIContentType type) The type of data. |
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreatedpublic AIMessage()
public AIMessage(com.google.gwt.core.client.JavaScriptObject jsObj)
public static AIMessage getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public AIMessage setContent(java.lang.Object content)
type of this message is "jpegImage" or "pngImage", this will be the base64-encoded image data.content - New content value. Default value is nullAIMessage instance, for chaining setter callspublic java.lang.Object getContent()
type of this message is "jpegImage" or "pngImage", this will be the base64-encoded image data.public AIMessage setType(AIContentType type)
type - New type value. Default value is "text"AIMessage instance, for chaining setter callspublic AIContentType getType()