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

org.flyte.api.v1.AutoValue_WorkflowMetadata 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_WorkflowMetadata extends WorkflowMetadata {

  private final OnFailurePolicy onFailure;

  private AutoValue_WorkflowMetadata(
      OnFailurePolicy onFailure) {
    this.onFailure = onFailure;
  }

  @Override
  public OnFailurePolicy onFailure() {
    return onFailure;
  }

  @Override
  public String toString() {
    return "WorkflowMetadata{"
        + "onFailure=" + onFailure
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof WorkflowMetadata) {
      WorkflowMetadata that = (WorkflowMetadata) o;
      return this.onFailure.equals(that.onFailure());
    }
    return false;
  }

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

  static final class Builder extends WorkflowMetadata.Builder {
    private OnFailurePolicy onFailure;
    Builder() {
    }
    @Override
    public WorkflowMetadata.Builder onFailure(OnFailurePolicy onFailure) {
      if (onFailure == null) {
        throw new NullPointerException("Null onFailure");
      }
      this.onFailure = onFailure;
      return this;
    }
    @Override
    public WorkflowMetadata build() {
      if (this.onFailure == null) {
        String missing = " onFailure";
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_WorkflowMetadata(
          this.onFailure);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy