All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.flyte.api.v1.AutoValue_PartialTaskIdentifier Maven / Gradle / Ivy

There is a newer version: 0.4.60
Show newest version
package org.flyte.api.v1;

import javax.annotation.Nullable;
import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_PartialTaskIdentifier extends PartialTaskIdentifier {

  @Nullable
  private final String domain;

  @Nullable
  private final String project;

  private final String name;

  @Nullable
  private final String version;

  private AutoValue_PartialTaskIdentifier(
      @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 "PartialTaskIdentifier{"
        + "domain=" + domain + ", "
        + "project=" + project + ", "
        + "name=" + name + ", "
        + "version=" + version
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof PartialTaskIdentifier) {
      PartialTaskIdentifier that = (PartialTaskIdentifier) 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 PartialTaskIdentifier.Builder {
    private String domain;
    private String project;
    private String name;
    private String version;
    Builder() {
    }
    @Override
    public PartialTaskIdentifier.Builder domain(String domain) {
      this.domain = domain;
      return this;
    }
    @Override
    public PartialTaskIdentifier.Builder project(String project) {
      this.project = project;
      return this;
    }
    @Override
    public PartialTaskIdentifier.Builder name(String name) {
      if (name == null) {
        throw new NullPointerException("Null name");
      }
      this.name = name;
      return this;
    }
    @Override
    public PartialTaskIdentifier.Builder version(String version) {
      this.version = version;
      return this;
    }
    @Override
    public PartialTaskIdentifier build() {
      if (this.name == null) {
        String missing = " name";
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_PartialTaskIdentifier(
          this.domain,
          this.project,
          this.name,
          this.version);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy