Module org.elasticsearch.xcore
Class UpdateInferenceModelAction.Request
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.AbstractTransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.action.LegacyActionRequest
org.elasticsearch.action.support.master.MasterNodeRequest<UpdateInferenceModelAction.Request>
org.elasticsearch.action.support.master.AcknowledgedRequest<UpdateInferenceModelAction.Request>
org.elasticsearch.xpack.core.inference.action.UpdateInferenceModelAction.Request
- All Implemented Interfaces:
Writeable,org.elasticsearch.core.RefCounted,TaskAwareRequest,TransportRequest
- Enclosing class:
UpdateInferenceModelAction
public static class UpdateInferenceModelAction.Request
extends AcknowledgedRequest<UpdateInferenceModelAction.Request>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.action.support.master.AcknowledgedRequest
AcknowledgedRequest.PlainNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from class org.elasticsearch.action.support.master.AcknowledgedRequest
DEFAULT_ACK_TIMEOUTFields inherited from class org.elasticsearch.action.support.master.MasterNodeRequest
INFINITE_MASTER_NODE_TIMEOUT, TRAPPY_IMPLICIT_DEFAULT_MASTER_NODE_TIMEOUTFields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
ConstructorsConstructorDescriptionRequest(String inferenceEntityId, BytesReference content, org.elasticsearch.xcontent.XContentType contentType, TaskType taskType, org.elasticsearch.core.TimeValue timeout) Request(StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe body of the request.The body of the request as a map.org.elasticsearch.xcontent.XContentTypeinthashCode()validate()voidwriteTo(StreamOutput out) Methods inherited from class org.elasticsearch.action.support.master.AcknowledgedRequest
ackTimeout, ackTimeoutMethods inherited from class org.elasticsearch.action.support.master.MasterNodeRequest
masterNodeTimeout, masterNodeTimeout, masterTermMethods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResultMethods inherited from class org.elasticsearch.transport.AbstractTransportRequest
getParentTask, getRequestId, remoteAddress, remoteAddress, setParentTask, setRequestId, toStringMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, tryIncRefMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.core.RefCounted
decRef, hasReferences, incRef, mustIncRef, tryIncRefMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, createTask, getDescription, setParentTask
-
Constructor Details
-
Request
public Request(String inferenceEntityId, BytesReference content, org.elasticsearch.xcontent.XContentType contentType, TaskType taskType, org.elasticsearch.core.TimeValue timeout) -
Request
- Throws:
IOException
-
-
Method Details
-
getInferenceEntityId
-
getTaskType
-
getContent
The body of the request. For in-cluster models, this is expected to contain some of the following: "number_of_allocations": `an integer` For third-party services, this is expected to contain: "service_settings": { "api_key": `a string` // service settings can only contain an api key } "task_settings": { a map of settings } -
getContentAsSettings
The body of the request as a map. The map is validated such that only allowed fields are present. If any fields in the body are not on the allow list, this function will throw an exception. -
getContentType
public org.elasticsearch.xcontent.XContentType getContentType() -
writeTo
- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classAcknowledgedRequest<UpdateInferenceModelAction.Request>- Throws:
IOException
-
validate
- Overrides:
validatein classAcknowledgedRequest<UpdateInferenceModelAction.Request>
-
equals
-
hashCode
public int hashCode()
-