org.flyte.api.v1.AutoValue_CronSchedule 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.Nullable;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_CronSchedule extends CronSchedule {
private final String schedule;
@Nullable
private final String offset;
private AutoValue_CronSchedule(
String schedule,
@Nullable String offset) {
this.schedule = schedule;
this.offset = offset;
}
@Override
public String schedule() {
return schedule;
}
@Nullable
@Override
public String offset() {
return offset;
}
@Override
public String toString() {
return "CronSchedule{"
+ "schedule=" + schedule + ", "
+ "offset=" + offset
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof CronSchedule) {
CronSchedule that = (CronSchedule) o;
return this.schedule.equals(that.schedule())
&& (this.offset == null ? that.offset() == null : this.offset.equals(that.offset()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= schedule.hashCode();
h$ *= 1000003;
h$ ^= (offset == null) ? 0 : offset.hashCode();
return h$;
}
static final class Builder extends CronSchedule.Builder {
private String schedule;
private String offset;
Builder() {
}
@Override
public CronSchedule.Builder schedule(String schedule) {
if (schedule == null) {
throw new NullPointerException("Null schedule");
}
this.schedule = schedule;
return this;
}
@Override
public CronSchedule.Builder offset(String offset) {
this.offset = offset;
return this;
}
@Override
public CronSchedule build() {
if (this.schedule == null) {
String missing = " schedule";
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_CronSchedule(
this.schedule,
this.offset);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy