com.databricks.sdk.service.ml.CreateRun Maven / Gradle / Ivy
// 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.Collection;
import java.util.Objects;
@Generated
public class CreateRun {
/** ID of the associated experiment. */
@JsonProperty("experiment_id")
private String experimentId;
/** Unix timestamp in milliseconds of when the run started. */
@JsonProperty("start_time")
private Long startTime;
/** Additional metadata for run. */
@JsonProperty("tags")
private Collection tags;
/**
* ID of the user executing 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 CreateRun setExperimentId(String experimentId) {
this.experimentId = experimentId;
return this;
}
public String getExperimentId() {
return experimentId;
}
public CreateRun setStartTime(Long startTime) {
this.startTime = startTime;
return this;
}
public Long getStartTime() {
return startTime;
}
public CreateRun setTags(Collection tags) {
this.tags = tags;
return this;
}
public Collection getTags() {
return tags;
}
public CreateRun 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;
CreateRun that = (CreateRun) o;
return Objects.equals(experimentId, that.experimentId)
&& Objects.equals(startTime, that.startTime)
&& Objects.equals(tags, that.tags)
&& Objects.equals(userId, that.userId);
}
@Override
public int hashCode() {
return Objects.hash(experimentId, startTime, tags, userId);
}
@Override
public String toString() {
return new ToStringer(CreateRun.class)
.add("experimentId", experimentId)
.add("startTime", startTime)
.add("tags", tags)
.add("userId", userId)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy