Class GetMessageResponse.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ml.GetMessageResponse.Builder
- All Implemented Interfaces:
CopyableBuilder<GetMessageResponse.Builder,,GetMessageResponse> MutableBuilder<GetMessageResponse.Builder,,GetMessageResponse> ObjectBuilder<GetMessageResponse>
- Enclosing class:
GetMessageResponse
public static class GetMessageResponse.Builder
extends ObjectBuilderBase
implements CopyableBuilder<GetMessageResponse.Builder,GetMessageResponse>
Builder for
GetMessageResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadditionalInfo(String key, JsonData value) API name:additional_infoadditionalInfo(Map<String, JsonData> map) API name:additional_infobuild()Builds aGetMessageResponse.copy()Create a new builderCopyableBuilderthat is a copy of this one.createTime(String value) The create time.The question in the message.API name:memory_idAPI name:message_idThe system name that generated the response.parentMessageId(String value) The parent message ID.promptTemplate(String value) The prompt template.The answer to the question.traceNumber(Long value) The trace number.Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<GetMessageResponse.Builder,GetMessageResponse> - Returns:
- a new builder instance.
-
additionalInfo
API name:additional_infoAdds all elements of
maptoadditionalInfo. -
additionalInfo
API name:additional_infoAdds an entry to
additionalInfo. -
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 -
build
Builds aGetMessageResponse.- Specified by:
buildin interfaceObjectBuilder<GetMessageResponse>- Throws:
NullPointerException- if some of the required fields are null.
-