org.flyte.api.v1.AutoValue_PartialWorkflowIdentifier 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_PartialWorkflowIdentifier extends PartialWorkflowIdentifier {
@Nullable
private final String domain;
@Nullable
private final String project;
private final String name;
@Nullable
private final String version;
private AutoValue_PartialWorkflowIdentifier(
@Nullable String domain,
@Nullable String project,
String name,
@Nullable String version) {
this.domain = domain;
this.project = project;
this.name = name;
this.version = version;
}
@Nullable
@Override
public String domain() {
return domain;
}
@Nullable
@Override
public String project() {
return project;
}
@Override
public String name() {
return name;
}
@Nullable
@Override
public String version() {
return version;
}
@Override
public String toString() {
return "PartialWorkflowIdentifier{"
+ "domain=" + domain + ", "
+ "project=" + project + ", "
+ "name=" + name + ", "
+ "version=" + version
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof PartialWorkflowIdentifier) {
PartialWorkflowIdentifier that = (PartialWorkflowIdentifier) o;
return (this.domain == null ? that.domain() == null : this.domain.equals(that.domain()))
&& (this.project == null ? that.project() == null : this.project.equals(that.project()))
&& this.name.equals(that.name())
&& (this.version == null ? that.version() == null : this.version.equals(that.version()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (domain == null) ? 0 : domain.hashCode();
h$ *= 1000003;
h$ ^= (project == null) ? 0 : project.hashCode();
h$ *= 1000003;
h$ ^= name.hashCode();
h$ *= 1000003;
h$ ^= (version == null) ? 0 : version.hashCode();
return h$;
}
static final class Builder extends PartialWorkflowIdentifier.Builder {
private String domain;
private String project;
private String name;
private String version;
Builder() {
}
@Override
public PartialWorkflowIdentifier.Builder domain(String domain) {
this.domain = domain;
return this;
}
@Override
public PartialWorkflowIdentifier.Builder project(String project) {
this.project = project;
return this;
}
@Override
public PartialWorkflowIdentifier.Builder name(String name) {
if (name == null) {
throw new NullPointerException("Null name");
}
this.name = name;
return this;
}
@Override
public PartialWorkflowIdentifier.Builder version(String version) {
this.version = version;
return this;
}
@Override
public PartialWorkflowIdentifier build() {
if (this.name == null) {
String missing = " name";
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_PartialWorkflowIdentifier(
this.domain,
this.project,
this.name,
this.version);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy