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

org.flyte.api.v1.AutoValue_NodeError Maven / Gradle / Ivy

There is a newer version: 0.4.60
Show newest version
package org.flyte.api.v1;

import javax.annotation.processing.Generated;

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

  private final String failedNodeId;

  private final String message;

  private AutoValue_NodeError(
      String failedNodeId,
      String message) {
    this.failedNodeId = failedNodeId;
    this.message = message;
  }

  @Override
  public String failedNodeId() {
    return failedNodeId;
  }

  @Override
  public String message() {
    return message;
  }

  @Override
  public String toString() {
    return "NodeError{"
        + "failedNodeId=" + failedNodeId + ", "
        + "message=" + message
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof NodeError) {
      NodeError that = (NodeError) o;
      return this.failedNodeId.equals(that.failedNodeId())
          && this.message.equals(that.message());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= failedNodeId.hashCode();
    h$ *= 1000003;
    h$ ^= message.hashCode();
    return h$;
  }

  static final class Builder extends NodeError.Builder {
    private String failedNodeId;
    private String message;
    Builder() {
    }
    @Override
    public NodeError.Builder failedNodeId(String failedNodeId) {
      if (failedNodeId == null) {
        throw new NullPointerException("Null failedNodeId");
      }
      this.failedNodeId = failedNodeId;
      return this;
    }
    @Override
    public NodeError.Builder message(String message) {
      if (message == null) {
        throw new NullPointerException("Null message");
      }
      this.message = message;
      return this;
    }
    @Override
    public NodeError build() {
      if (this.failedNodeId == null
          || this.message == null) {
        StringBuilder missing = new StringBuilder();
        if (this.failedNodeId == null) {
          missing.append(" failedNodeId");
        }
        if (this.message == null) {
          missing.append(" message");
        }
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_NodeError(
          this.failedNodeId,
          this.message);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy