Class Message
java.lang.Object
org.opensearch.client.opensearch.ml.Message
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<Message.Builder,Message>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class Message
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<Message.Builder,Message>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<Message> Json deserializer forMessage -
Method Summary
Modifier and TypeMethodDescriptionAPI name:additional_infostatic Message.Builderbuilder()final StringThe create time.booleaninthashCode()final Stringinput()The question in the message.final StringmemoryId()API name:memory_idfinal StringAPI name:message_idstatic Messagefinal Stringorigin()The system name that generated the response.final StringThe parent message ID.final StringThe prompt template.final Stringresponse()The answer to the question.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.final LongThe trace number.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forMessage
-
-
Method Details
-
of
-
additionalInfo
API name:additional_info -
createTime
The create time.API name:
create_time -
input
The question in the message.API name:
input -
memoryId
API name:memory_id -
messageId
API name:message_id -
origin
The system name that generated the response.API name:
origin -
parentMessageId
The parent message ID.API name:
parent_message_id -
promptTemplate
The prompt template.API name:
prompt_template -
response
The answer to the question.API name:
response -
traceNumber
The trace number.API name:
trace_number -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Message.Builder,Message> - Returns:
- a new builder instance.
-
builder
-
setupMessageDeserializer
-
hashCode
public int hashCode() -
equals
-