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

com.spotify.styx.model.data.AutoValue_Execution Maven / Gradle / Ivy

package com.spotify.styx.model.data;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.spotify.styx.model.FlyteExecConf;
import java.util.List;
import java.util.Optional;
import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Execution extends Execution {

  private final Optional executionId;

  private final Optional dockerImage;

  private final Optional commitSha;

  private final Optional flyteExecConf;

  private final Optional flyteExecutionId;

  private final Optional runnerId;

  private final List statuses;

  AutoValue_Execution(
      Optional executionId,
      Optional dockerImage,
      Optional commitSha,
      Optional flyteExecConf,
      Optional flyteExecutionId,
      Optional runnerId,
      List statuses) {
    if (executionId == null) {
      throw new NullPointerException("Null executionId");
    }
    this.executionId = executionId;
    if (dockerImage == null) {
      throw new NullPointerException("Null dockerImage");
    }
    this.dockerImage = dockerImage;
    if (commitSha == null) {
      throw new NullPointerException("Null commitSha");
    }
    this.commitSha = commitSha;
    if (flyteExecConf == null) {
      throw new NullPointerException("Null flyteExecConf");
    }
    this.flyteExecConf = flyteExecConf;
    if (flyteExecutionId == null) {
      throw new NullPointerException("Null flyteExecutionId");
    }
    this.flyteExecutionId = flyteExecutionId;
    if (runnerId == null) {
      throw new NullPointerException("Null runnerId");
    }
    this.runnerId = runnerId;
    if (statuses == null) {
      throw new NullPointerException("Null statuses");
    }
    this.statuses = statuses;
  }

  @JsonProperty
  @Override
  public Optional executionId() {
    return executionId;
  }

  @JsonProperty
  @Override
  public Optional dockerImage() {
    return dockerImage;
  }

  @JsonProperty
  @Override
  public Optional commitSha() {
    return commitSha;
  }

  @JsonProperty
  @Override
  public Optional flyteExecConf() {
    return flyteExecConf;
  }

  @JsonProperty
  @Override
  public Optional flyteExecutionId() {
    return flyteExecutionId;
  }

  @JsonProperty
  @Override
  public Optional runnerId() {
    return runnerId;
  }

  @JsonProperty
  @Override
  public List statuses() {
    return statuses;
  }

  @Override
  public String toString() {
    return "Execution{"
        + "executionId=" + executionId + ", "
        + "dockerImage=" + dockerImage + ", "
        + "commitSha=" + commitSha + ", "
        + "flyteExecConf=" + flyteExecConf + ", "
        + "flyteExecutionId=" + flyteExecutionId + ", "
        + "runnerId=" + runnerId + ", "
        + "statuses=" + statuses
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Execution) {
      Execution that = (Execution) o;
      return this.executionId.equals(that.executionId())
          && this.dockerImage.equals(that.dockerImage())
          && this.commitSha.equals(that.commitSha())
          && this.flyteExecConf.equals(that.flyteExecConf())
          && this.flyteExecutionId.equals(that.flyteExecutionId())
          && this.runnerId.equals(that.runnerId())
          && this.statuses.equals(that.statuses());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= executionId.hashCode();
    h$ *= 1000003;
    h$ ^= dockerImage.hashCode();
    h$ *= 1000003;
    h$ ^= commitSha.hashCode();
    h$ *= 1000003;
    h$ ^= flyteExecConf.hashCode();
    h$ *= 1000003;
    h$ ^= flyteExecutionId.hashCode();
    h$ *= 1000003;
    h$ ^= runnerId.hashCode();
    h$ *= 1000003;
    h$ ^= statuses.hashCode();
    return h$;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy