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

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

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

import java.util.Map;
import javax.annotation.Nullable;
import javax.annotation.processing.Generated;

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

  @Nullable
  private final Map requests;

  @Nullable
  private final Map limits;

  private AutoValue_Resources(
      @Nullable Map requests,
      @Nullable Map limits) {
    this.requests = requests;
    this.limits = limits;
  }

  @Nullable
  @Override
  public Map requests() {
    return requests;
  }

  @Nullable
  @Override
  public Map limits() {
    return limits;
  }

  @Override
  public String toString() {
    return "Resources{"
        + "requests=" + requests + ", "
        + "limits=" + limits
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Resources) {
      Resources that = (Resources) o;
      return (this.requests == null ? that.requests() == null : this.requests.equals(that.requests()))
          && (this.limits == null ? that.limits() == null : this.limits.equals(that.limits()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= (requests == null) ? 0 : requests.hashCode();
    h$ *= 1000003;
    h$ ^= (limits == null) ? 0 : limits.hashCode();
    return h$;
  }

  static final class Builder extends Resources.Builder {
    private Map requests;
    private Map limits;
    Builder() {
    }
    @Override
    public Resources.Builder requests(Map requests) {
      this.requests = requests;
      return this;
    }
    @Override
    @Nullable public Map requests() {
      return requests;
    }
    @Override
    public Resources.Builder limits(Map limits) {
      this.limits = limits;
      return this;
    }
    @Override
    @Nullable public Map limits() {
      return limits;
    }
    @Override
    Resources autoBuild() {
      return new AutoValue_Resources(
          this.requests,
          this.limits);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy