org.flyte.api.v1.AutoValue_RetryStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flytekit-api Show documentation
Show all versions of flytekit-api Show documentation
Java friendly representation of flyteidl protos.
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