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