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.UntypedActionRequest
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,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, XContentType contentType, TaskType taskType, TimeValue timeout, TimeValue masterNodeTimeout, TimeValue ackTimeout) Request(StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns thetask_typedeclared in the request body, ornullif it was not present.Returns thechunking_settingsblock from the request body as a fresh, modifiable deep copy of the parsed content (ornullif the body did not include any).The body of the request.Returns theservice_settingsblock from the request body as a fresh, modifiable deep copy of the parsed content (ornullif the body did not include any).Returns thetask_settingsblock from the request body as a fresh, modifiable deep copy of the parsed content (ornullif the body did not include any).inthashCode()voidwriteTo(StreamOutput out) Methods inherited from class org.elasticsearch.action.support.master.AcknowledgedRequest
ackTimeout, ackTimeout, validateMethods 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
copyFieldsFrom, 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, XContentType contentType, TaskType taskType, @Nullable TimeValue timeout, TimeValue masterNodeTimeout, TimeValue ackTimeout) -
Request
- Throws:
IOException
-
-
Method Details
-
getInferenceEntityId
-
getTaskType
-
getTimeout
-
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 } -
getServiceSettings
Returns theservice_settingsblock from the request body as a fresh, modifiable deep copy of the parsed content (ornullif the body did not include any).Each invocation returns a new map instance so callers (notably the
*Settings.update*parsers in the inference services) may freely callremove(...)at any depth without risking corruption of the cached state or interference between consumers reading the same body. -
getTaskSettings
Returns thetask_settingsblock from the request body as a fresh, modifiable deep copy of the parsed content (ornullif the body did not include any). -
getChunkingSettings
Returns thechunking_settingsblock from the request body as a fresh, modifiable deep copy of the parsed content (ornullif the body did not include any). -
getBodyTaskType
Returns thetask_typedeclared in the request body, ornullif it was not present. Distinct fromgetTaskType(), which returns the task type taken from the request URL. -
getContentType
-
writeTo
- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classAcknowledgedRequest<UpdateInferenceModelAction.Request>- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-