Class UpdateInferenceModelAction.Request

All Implemented Interfaces:
Writeable, RefCounted, TaskAwareRequest, TransportRequest
Enclosing class:
UpdateInferenceModelAction

public static class UpdateInferenceModelAction.Request extends AcknowledgedRequest<UpdateInferenceModelAction.Request>
  • Constructor Details

  • Method Details

    • getInferenceEntityId

      public String getInferenceEntityId()
    • getTaskType

      public TaskType getTaskType()
    • getTimeout

      public TimeValue getTimeout()
    • getContent

      public BytesReference 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

      @Nullable public Map<String,Object> getServiceSettings()
      Returns the service_settings block from the request body as a fresh, modifiable deep copy of the parsed content (or null if 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 call remove(...) at any depth without risking corruption of the cached state or interference between consumers reading the same body.

    • getTaskSettings

      @Nullable public Map<String,Object> getTaskSettings()
      Returns the task_settings block from the request body as a fresh, modifiable deep copy of the parsed content (or null if the body did not include any).
    • getChunkingSettings

      @Nullable public Map<String,Object> getChunkingSettings()
      Returns the chunking_settings block from the request body as a fresh, modifiable deep copy of the parsed content (or null if the body did not include any).
    • getBodyTaskType

      @Nullable public TaskType getBodyTaskType()
      Returns the task_type declared in the request body, or null if it was not present. Distinct from getTaskType(), which returns the task type taken from the request URL.
    • getContentType

      public XContentType getContentType()
    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Specified by:
      writeTo in interface Writeable
      Overrides:
      writeTo in class AcknowledgedRequest<UpdateInferenceModelAction.Request>
      Throws:
      IOException
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object