All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.databricks.sdk.service.ml.RunInfo Maven / Gradle / Ivy

There is a newer version: 0.38.0
Show newest version
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.

package com.databricks.sdk.service.ml;

import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;

@Generated
public class RunInfo {
  /**
   * URI of the directory where artifacts should be uploaded. This can be a local path (starting
   * with "/"), or a distributed file system (DFS) path, like `s3://bucket/directory` or
   * `dbfs:/my/directory`. If not set, the local `./mlruns` directory is chosen.
   */
  @JsonProperty("artifact_uri")
  private String artifactUri;

  /** Unix timestamp of when the run ended in milliseconds. */
  @JsonProperty("end_time")
  private Long endTime;

  /** The experiment ID. */
  @JsonProperty("experiment_id")
  private String experimentId;

  /** Current life cycle stage of the experiment : OneOf("active", "deleted") */
  @JsonProperty("lifecycle_stage")
  private String lifecycleStage;

  /** Unique identifier for the run. */
  @JsonProperty("run_id")
  private String runId;

  /**
   * [Deprecated, use run_id instead] Unique identifier for the run. This field will be removed in a
   * future MLflow version.
   */
  @JsonProperty("run_uuid")
  private String runUuid;

  /** Unix timestamp of when the run started in milliseconds. */
  @JsonProperty("start_time")
  private Long startTime;

  /** Current status of the run. */
  @JsonProperty("status")
  private RunInfoStatus status;

  /**
   * User who initiated the run. This field is deprecated as of MLflow 1.0, and will be removed in a
   * future MLflow release. Use 'mlflow.user' tag instead.
   */
  @JsonProperty("user_id")
  private String userId;

  public RunInfo setArtifactUri(String artifactUri) {
    this.artifactUri = artifactUri;
    return this;
  }

  public String getArtifactUri() {
    return artifactUri;
  }

  public RunInfo setEndTime(Long endTime) {
    this.endTime = endTime;
    return this;
  }

  public Long getEndTime() {
    return endTime;
  }

  public RunInfo setExperimentId(String experimentId) {
    this.experimentId = experimentId;
    return this;
  }

  public String getExperimentId() {
    return experimentId;
  }

  public RunInfo setLifecycleStage(String lifecycleStage) {
    this.lifecycleStage = lifecycleStage;
    return this;
  }

  public String getLifecycleStage() {
    return lifecycleStage;
  }

  public RunInfo setRunId(String runId) {
    this.runId = runId;
    return this;
  }

  public String getRunId() {
    return runId;
  }

  public RunInfo setRunUuid(String runUuid) {
    this.runUuid = runUuid;
    return this;
  }

  public String getRunUuid() {
    return runUuid;
  }

  public RunInfo setStartTime(Long startTime) {
    this.startTime = startTime;
    return this;
  }

  public Long getStartTime() {
    return startTime;
  }

  public RunInfo setStatus(RunInfoStatus status) {
    this.status = status;
    return this;
  }

  public RunInfoStatus getStatus() {
    return status;
  }

  public RunInfo setUserId(String userId) {
    this.userId = userId;
    return this;
  }

  public String getUserId() {
    return userId;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    RunInfo that = (RunInfo) o;
    return Objects.equals(artifactUri, that.artifactUri)
        && Objects.equals(endTime, that.endTime)
        && Objects.equals(experimentId, that.experimentId)
        && Objects.equals(lifecycleStage, that.lifecycleStage)
        && Objects.equals(runId, that.runId)
        && Objects.equals(runUuid, that.runUuid)
        && Objects.equals(startTime, that.startTime)
        && Objects.equals(status, that.status)
        && Objects.equals(userId, that.userId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(
        artifactUri,
        endTime,
        experimentId,
        lifecycleStage,
        runId,
        runUuid,
        startTime,
        status,
        userId);
  }

  @Override
  public String toString() {
    return new ToStringer(RunInfo.class)
        .add("artifactUri", artifactUri)
        .add("endTime", endTime)
        .add("experimentId", experimentId)
        .add("lifecycleStage", lifecycleStage)
        .add("runId", runId)
        .add("runUuid", runUuid)
        .add("startTime", startTime)
        .add("status", status)
        .add("userId", userId)
        .toString();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy