Class UpdateMessageRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.ml.UpdateMessageRequest
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<UpdateMessageRequest.Builder,UpdateMessageRequest>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class UpdateMessageRequest
extends RequestBase
implements PlainJsonSerializable, ToCopyableBuilder<UpdateMessageRequest.Builder,UpdateMessageRequest>
Update a message.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<UpdateMessageRequest> Json deserializer forUpdateMessageRequeststatic final Endpoint<UpdateMessageRequest, UpdateMessageResponse, ErrorResponse> Endpoint "ml.update_message". -
Method Summary
Modifier and TypeMethodDescriptionAPI name:additional_infostatic UpdateMessageRequest.Builderbuilder()booleaninthashCode()final Stringinput()The question in the message.final StringRequired - API name:message_idstatic UpdateMessageRequestfinal Stringorigin()The system name that generated the response.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.Methods inherited from class org.opensearch.client.opensearch._types.RequestBase
applyQueryParameters, errorTrace, humanMethods 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 forUpdateMessageRequest -
_ENDPOINT
Endpoint "ml.update_message".
-
-
Method Details
-
of
public static UpdateMessageRequest of(Function<UpdateMessageRequest.Builder, ObjectBuilder<UpdateMessageRequest>> fn) -
additionalInfo
API name:additional_info -
input
The question in the message.API name:
input -
messageId
Required - API name:message_id -
origin
The system name that generated the response.API name:
origin -
promptTemplate
The prompt template.API name:
prompt_template -
response
The answer to the question.API name:
response -
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<UpdateMessageRequest.Builder,UpdateMessageRequest> - Returns:
- a new builder instance.
-
builder
-
setupUpdateMessageRequestDeserializer
protected static void setupUpdateMessageRequestDeserializer(ObjectDeserializer<UpdateMessageRequest.Builder> op) -
hashCode
public int hashCode() -
equals
-