org.flyte.api.v1.AutoValue_NodeMetadata 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 java.time.Duration;
import javax.annotation.Nullable;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_NodeMetadata extends NodeMetadata {
@Nullable
private final String name;
@Nullable
private final Duration timeout;
@Nullable
private final RetryStrategy retries;
private AutoValue_NodeMetadata(
@Nullable String name,
@Nullable Duration timeout,
@Nullable RetryStrategy retries) {
this.name = name;
this.timeout = timeout;
this.retries = retries;
}
@Nullable
@Override
public String name() {
return name;
}
@Nullable
@Override
public Duration timeout() {
return timeout;
}
@Nullable
@Override
public RetryStrategy retries() {
return retries;
}
@Override
public String toString() {
return "NodeMetadata{"
+ "name=" + name + ", "
+ "timeout=" + timeout + ", "
+ "retries=" + retries
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof NodeMetadata) {
NodeMetadata that = (NodeMetadata) o;
return (this.name == null ? that.name() == null : this.name.equals(that.name()))
&& (this.timeout == null ? that.timeout() == null : this.timeout.equals(that.timeout()))
&& (this.retries == null ? that.retries() == null : this.retries.equals(that.retries()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (name == null) ? 0 : name.hashCode();
h$ *= 1000003;
h$ ^= (timeout == null) ? 0 : timeout.hashCode();
h$ *= 1000003;
h$ ^= (retries == null) ? 0 : retries.hashCode();
return h$;
}
static final class Builder extends NodeMetadata.Builder {
private String name;
private Duration timeout;
private RetryStrategy retries;
Builder() {
}
@Override
public NodeMetadata.Builder name(String name) {
this.name = name;
return this;
}
@Override
public NodeMetadata.Builder timeout(Duration timeout) {
this.timeout = timeout;
return this;
}
@Override
public NodeMetadata.Builder retries(RetryStrategy retries) {
this.retries = retries;
return this;
}
@Override
public NodeMetadata build() {
return new AutoValue_NodeMetadata(
this.name,
this.timeout,
this.retries);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy