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 Classes Modifier and Type Class Description static classUpdateMessageRequest.BuilderBuilder forUpdateMessageRequest.-
Nested classes/interfaces inherited from class org.opensearch.client.opensearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<UpdateMessageRequest>_DESERIALIZERJson deserializer forUpdateMessageRequeststatic Endpoint<UpdateMessageRequest,UpdateMessageResponse,ErrorResponse>_ENDPOINTEndpoint "ml.update_message".
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,JsonData>additionalInfo()API name:additional_infostatic UpdateMessageRequest.Builderbuilder()booleanequals(java.lang.Object o)inthashCode()java.lang.Stringinput()The question in the message.java.lang.StringmessageId()Required - API name:message_idstatic UpdateMessageRequestof(java.util.function.Function<UpdateMessageRequest.Builder,ObjectBuilder<UpdateMessageRequest>> fn)java.lang.Stringorigin()The system name that generated the response.java.lang.StringpromptTemplate()The prompt template.java.lang.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 voidsetupUpdateMessageRequestDeserializer(ObjectDeserializer<UpdateMessageRequest.Builder> op)UpdateMessageRequest.BuildertoBuilder()Create a new builderToCopyableBuilderthat is initialised with the current state of this object.-
Methods inherited from class org.opensearch.client.opensearch._types.RequestBase
applyQueryParameters, errorTrace, human
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
Methods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<UpdateMessageRequest> _DESERIALIZER
Json deserializer forUpdateMessageRequest
-
_ENDPOINT
public static final Endpoint<UpdateMessageRequest,UpdateMessageResponse,ErrorResponse> _ENDPOINT
Endpoint "ml.update_message".
-
-
Method Detail
-
of
public static UpdateMessageRequest of(java.util.function.Function<UpdateMessageRequest.Builder,ObjectBuilder<UpdateMessageRequest>> fn)
-
additionalInfo
@Nonnull public final java.util.Map<java.lang.String,JsonData> additionalInfo()
API name:additional_info
-
input
@Nullable public final java.lang.String input()
The question in the message.API name:
input
-
messageId
@Nonnull public final java.lang.String messageId()
Required - API name:message_id
-
origin
@Nullable public final java.lang.String origin()
The system name that generated the response.API name:
origin
-
promptTemplate
@Nullable public final java.lang.String promptTemplate()
The prompt template.API name:
prompt_template
-
response
@Nullable public final java.lang.String response()
The answer to the question.API name:
response
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
toBuilder
@Nonnull public UpdateMessageRequest.Builder 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
@Nonnull public static UpdateMessageRequest.Builder builder()
-
setupUpdateMessageRequestDeserializer
protected static void setupUpdateMessageRequestDeserializer(ObjectDeserializer<UpdateMessageRequest.Builder> op)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-