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

io.weaviate.client.v1.graphql.query.argument.NearDepthArgument Maven / Gradle / Ivy

There is a newer version: 4.9.0
Show newest version
// Generated by delombok at Tue Mar 05 13:44:27 UTC 2024
package io.weaviate.client.v1.graphql.query.argument;

import java.io.File;

public class NearDepthArgument implements Argument {
  private final String depth;
  private final File depthFile;
  private final Float certainty;
  private final Float distance;
  private final String[] targetVectors;

  @Override
  public String build() {
    return NearMediaArgumentHelper.builder().certainty(certainty).distance(distance).targetVectors(targetVectors).data(depth).dataFile(depthFile).mediaField("depth").mediaName("nearDepth").build().build();
  }

  @java.lang.SuppressWarnings("all")
  NearDepthArgument(final String depth, final File depthFile, final Float certainty, final Float distance, final String[] targetVectors) {
    this.depth = depth;
    this.depthFile = depthFile;
    this.certainty = certainty;
    this.distance = distance;
    this.targetVectors = targetVectors;
  }


  @java.lang.SuppressWarnings("all")
  public static class NearDepthArgumentBuilder {
    @java.lang.SuppressWarnings("all")
    private String depth;
    @java.lang.SuppressWarnings("all")
    private File depthFile;
    @java.lang.SuppressWarnings("all")
    private Float certainty;
    @java.lang.SuppressWarnings("all")
    private Float distance;
    @java.lang.SuppressWarnings("all")
    private String[] targetVectors;

    @java.lang.SuppressWarnings("all")
    NearDepthArgumentBuilder() {
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public NearDepthArgument.NearDepthArgumentBuilder depth(final String depth) {
      this.depth = depth;
      return this;
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public NearDepthArgument.NearDepthArgumentBuilder depthFile(final File depthFile) {
      this.depthFile = depthFile;
      return this;
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public NearDepthArgument.NearDepthArgumentBuilder certainty(final Float certainty) {
      this.certainty = certainty;
      return this;
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public NearDepthArgument.NearDepthArgumentBuilder distance(final Float distance) {
      this.distance = distance;
      return this;
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public NearDepthArgument.NearDepthArgumentBuilder targetVectors(final String[] targetVectors) {
      this.targetVectors = targetVectors;
      return this;
    }

    @java.lang.SuppressWarnings("all")
    public NearDepthArgument build() {
      return new NearDepthArgument(this.depth, this.depthFile, this.certainty, this.distance, this.targetVectors);
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public java.lang.String toString() {
      return "NearDepthArgument.NearDepthArgumentBuilder(depth=" + this.depth + ", depthFile=" + this.depthFile + ", certainty=" + this.certainty + ", distance=" + this.distance + ", targetVectors=" + java.util.Arrays.deepToString(this.targetVectors) + ")";
    }
  }

  @java.lang.SuppressWarnings("all")
  public static NearDepthArgument.NearDepthArgumentBuilder builder() {
    return new NearDepthArgument.NearDepthArgumentBuilder();
  }

  @java.lang.SuppressWarnings("all")
  public String getDepth() {
    return this.depth;
  }

  @java.lang.SuppressWarnings("all")
  public File getDepthFile() {
    return this.depthFile;
  }

  @java.lang.SuppressWarnings("all")
  public Float getCertainty() {
    return this.certainty;
  }

  @java.lang.SuppressWarnings("all")
  public Float getDistance() {
    return this.distance;
  }

  @java.lang.SuppressWarnings("all")
  public String[] getTargetVectors() {
    return this.targetVectors;
  }

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  public java.lang.String toString() {
    return "NearDepthArgument(depth=" + this.getDepth() + ", depthFile=" + this.getDepthFile() + ", certainty=" + this.getCertainty() + ", distance=" + this.getDistance() + ", targetVectors=" + java.util.Arrays.deepToString(this.getTargetVectors()) + ")";
  }

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  public boolean equals(final java.lang.Object o) {
    if (o == this) return true;
    if (!(o instanceof NearDepthArgument)) return false;
    final NearDepthArgument other = (NearDepthArgument) o;
    if (!other.canEqual((java.lang.Object) this)) return false;
    final java.lang.Object this$certainty = this.getCertainty();
    final java.lang.Object other$certainty = other.getCertainty();
    if (this$certainty == null ? other$certainty != null : !this$certainty.equals(other$certainty)) return false;
    final java.lang.Object this$distance = this.getDistance();
    final java.lang.Object other$distance = other.getDistance();
    if (this$distance == null ? other$distance != null : !this$distance.equals(other$distance)) return false;
    final java.lang.Object this$depth = this.getDepth();
    final java.lang.Object other$depth = other.getDepth();
    if (this$depth == null ? other$depth != null : !this$depth.equals(other$depth)) return false;
    final java.lang.Object this$depthFile = this.getDepthFile();
    final java.lang.Object other$depthFile = other.getDepthFile();
    if (this$depthFile == null ? other$depthFile != null : !this$depthFile.equals(other$depthFile)) return false;
    if (!java.util.Arrays.deepEquals(this.getTargetVectors(), other.getTargetVectors())) return false;
    return true;
  }

  @java.lang.SuppressWarnings("all")
  protected boolean canEqual(final java.lang.Object other) {
    return other instanceof NearDepthArgument;
  }

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  public int hashCode() {
    final int PRIME = 59;
    int result = 1;
    final java.lang.Object $certainty = this.getCertainty();
    result = result * PRIME + ($certainty == null ? 43 : $certainty.hashCode());
    final java.lang.Object $distance = this.getDistance();
    result = result * PRIME + ($distance == null ? 43 : $distance.hashCode());
    final java.lang.Object $depth = this.getDepth();
    result = result * PRIME + ($depth == null ? 43 : $depth.hashCode());
    final java.lang.Object $depthFile = this.getDepthFile();
    result = result * PRIME + ($depthFile == null ? 43 : $depthFile.hashCode());
    result = result * PRIME + java.util.Arrays.deepHashCode(this.getTargetVectors());
    return result;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy