Class ModelProfile

java.lang.Object
org.opensearch.client.opensearch.ml.ModelProfile
All Implemented Interfaces:
JsonpSerializable, PlainJsonSerializable, ToCopyableBuilder<ModelProfile.Builder,ModelProfile>

@JsonpDeserializable @Generated("org.opensearch.client.codegen.CodeGenerator") public class ModelProfile extends Object implements PlainJsonSerializable, ToCopyableBuilder<ModelProfile.Builder,ModelProfile>
  • Field Details

  • Method Details

    • of

    • deploy

      @Nullable public final ModelStats deploy()
      API name: deploy
    • execute

      @Nullable public final ModelStats execute()
      API name: execute
    • memorySizeEstimationCpu

      @Nullable public final Long memorySizeEstimationCpu()
      The estimated memory size in CPU.

      API name: memory_size_estimation_cpu

    • memorySizeEstimationGpu

      @Nullable public final Long memorySizeEstimationGpu()
      The estimated memory size in GPU.

      API name: memory_size_estimation_gpu

    • modelState

      @Nullable public final String modelState()
      The model state.

      API name: model_state

    • predict

      @Nullable public final ModelStats predict()
      API name: predict
    • predictRequestStats

      @Nullable public final PredictRequestStats predictRequestStats()
      API name: predict_request_stats
    • predictor

      @Nullable public final String predictor()
      The predictor.

      API name: predictor

    • register

      @Nullable public final ModelStats register()
      API name: register
    • targetWorkerNodes

      @Nonnull public final List<List<String>> targetWorkerNodes()
      API name: target_worker_nodes
    • train

      @Nullable public final ModelStats train()
      API name: train
    • trainPredict

      @Nullable public final ModelStats trainPredict()
      API name: train_predict
    • undeploy

      @Nullable public final ModelStats undeploy()
      API name: undeploy
    • workerNodes

      @Nonnull public final List<List<String>> workerNodes()
      API name: worker_nodes
    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toBuilder

      @Nonnull public ModelProfile.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Create a new builder ToCopyableBuilder that is initialised with the current state of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<ModelProfile.Builder,ModelProfile>
      Returns:
      a new builder instance.
    • builder

      @Nonnull public static ModelProfile.Builder builder()
    • setupModelProfileDeserializer

      protected static void setupModelProfileDeserializer(ObjectDeserializer<ModelProfile.Builder> op)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

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