io.weaviate.client.v1.graphql.query.argument.NearThermalArgument Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client Show documentation
Show all versions of client Show documentation
A java client for Weaviate Vector Search Engine
// Generated by delombok at Tue Aug 22 16:14:12 UTC 2023
package io.weaviate.client.v1.graphql.query.argument;
import java.io.File;
public class NearThermalArgument implements Argument {
private final String thermal;
private final File thermalFile;
private final Float certainty;
private final Float distance;
@Override
public String build() {
return NearMediaArgumentHelper.builder().certainty(certainty).distance(distance).data(thermal).dataFile(thermalFile).mediaField("thermal").mediaName("nearThermal").build().build();
}
@java.lang.SuppressWarnings("all")
NearThermalArgument(final String thermal, final File thermalFile, final Float certainty, final Float distance) {
this.thermal = thermal;
this.thermalFile = thermalFile;
this.certainty = certainty;
this.distance = distance;
}
@java.lang.SuppressWarnings("all")
public static class NearThermalArgumentBuilder {
@java.lang.SuppressWarnings("all")
private String thermal;
@java.lang.SuppressWarnings("all")
private File thermalFile;
@java.lang.SuppressWarnings("all")
private Float certainty;
@java.lang.SuppressWarnings("all")
private Float distance;
@java.lang.SuppressWarnings("all")
NearThermalArgumentBuilder() {
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public NearThermalArgument.NearThermalArgumentBuilder thermal(final String thermal) {
this.thermal = thermal;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public NearThermalArgument.NearThermalArgumentBuilder thermalFile(final File thermalFile) {
this.thermalFile = thermalFile;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public NearThermalArgument.NearThermalArgumentBuilder certainty(final Float certainty) {
this.certainty = certainty;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public NearThermalArgument.NearThermalArgumentBuilder distance(final Float distance) {
this.distance = distance;
return this;
}
@java.lang.SuppressWarnings("all")
public NearThermalArgument build() {
return new NearThermalArgument(this.thermal, this.thermalFile, this.certainty, this.distance);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "NearThermalArgument.NearThermalArgumentBuilder(thermal=" + this.thermal + ", thermalFile=" + this.thermalFile + ", certainty=" + this.certainty + ", distance=" + this.distance + ")";
}
}
@java.lang.SuppressWarnings("all")
public static NearThermalArgument.NearThermalArgumentBuilder builder() {
return new NearThermalArgument.NearThermalArgumentBuilder();
}
@java.lang.SuppressWarnings("all")
public String getThermal() {
return this.thermal;
}
@java.lang.SuppressWarnings("all")
public File getThermalFile() {
return this.thermalFile;
}
@java.lang.SuppressWarnings("all")
public Float getCertainty() {
return this.certainty;
}
@java.lang.SuppressWarnings("all")
public Float getDistance() {
return this.distance;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "NearThermalArgument(thermal=" + this.getThermal() + ", thermalFile=" + this.getThermalFile() + ", certainty=" + this.getCertainty() + ", distance=" + this.getDistance() + ")";
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof NearThermalArgument)) return false;
final NearThermalArgument other = (NearThermalArgument) 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$thermal = this.getThermal();
final java.lang.Object other$thermal = other.getThermal();
if (this$thermal == null ? other$thermal != null : !this$thermal.equals(other$thermal)) return false;
final java.lang.Object this$thermalFile = this.getThermalFile();
final java.lang.Object other$thermalFile = other.getThermalFile();
if (this$thermalFile == null ? other$thermalFile != null : !this$thermalFile.equals(other$thermalFile)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof NearThermalArgument;
}
@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 $thermal = this.getThermal();
result = result * PRIME + ($thermal == null ? 43 : $thermal.hashCode());
final java.lang.Object $thermalFile = this.getThermalFile();
result = result * PRIME + ($thermalFile == null ? 43 : $thermalFile.hashCode());
return result;
}
}