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

org.flyte.api.v1.AutoValue_RetryStrategy 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_RetryStrategy extends RetryStrategy {

  private final int retries;

  private AutoValue_RetryStrategy(
      int retries) {
    this.retries = retries;
  }

  @Override
  public int retries() {
    return retries;
  }

  @Override
  public String toString() {
    return "RetryStrategy{"
        + "retries=" + retries
        + "}";
  }

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

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

  static final class Builder extends RetryStrategy.Builder {
    private int retries;
    private byte set$0;
    Builder() {
    }
    @Override
    public RetryStrategy.Builder retries(int retries) {
      this.retries = retries;
      set$0 |= (byte) 1;
      return this;
    }
    @Override
    public RetryStrategy build() {
      if (set$0 != 1) {
        String missing = " retries";
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_RetryStrategy(
          this.retries);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy