tech.amikos.chromadb.model.GetEmbedding Maven / Gradle / Ivy
/*
* FastAPI
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 0.1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package tech.amikos.chromadb.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* GetEmbedding
*/
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2024-10-17T13:09:12.083Z[Etc/UTC]")
public class GetEmbedding {
@SerializedName("ids")
private List ids = null;
@SerializedName("where")
private Object where = null;
@SerializedName("where_document")
private Object whereDocument = null;
@SerializedName("sort")
private String sort = null;
@SerializedName("limit")
private Integer limit = null;
@SerializedName("offset")
private Integer offset = null;
@SerializedName("include")
private List include = null;
public GetEmbedding ids(List ids) {
this.ids = ids;
return this;
}
public GetEmbedding addIdsItem(String idsItem) {
if (this.ids == null) {
this.ids = new ArrayList();
}
this.ids.add(idsItem);
return this;
}
/**
* Get ids
* @return ids
**/
@Schema(description = "")
public List getIds() {
return ids;
}
public void setIds(List ids) {
this.ids = ids;
}
public GetEmbedding where(Object where) {
this.where = where;
return this;
}
/**
* Get where
* @return where
**/
@Schema(description = "")
public Object getWhere() {
return where;
}
public void setWhere(Object where) {
this.where = where;
}
public GetEmbedding whereDocument(Object whereDocument) {
this.whereDocument = whereDocument;
return this;
}
/**
* Get whereDocument
* @return whereDocument
**/
@Schema(description = "")
public Object getWhereDocument() {
return whereDocument;
}
public void setWhereDocument(Object whereDocument) {
this.whereDocument = whereDocument;
}
public GetEmbedding sort(String sort) {
this.sort = sort;
return this;
}
/**
* Get sort
* @return sort
**/
@Schema(description = "")
public String getSort() {
return sort;
}
public void setSort(String sort) {
this.sort = sort;
}
public GetEmbedding limit(Integer limit) {
this.limit = limit;
return this;
}
/**
* Get limit
* @return limit
**/
@Schema(description = "")
public Integer getLimit() {
return limit;
}
public void setLimit(Integer limit) {
this.limit = limit;
}
public GetEmbedding offset(Integer offset) {
this.offset = offset;
return this;
}
/**
* Get offset
* @return offset
**/
@Schema(description = "")
public Integer getOffset() {
return offset;
}
public void setOffset(Integer offset) {
this.offset = offset;
}
public GetEmbedding include(List include) {
this.include = include;
return this;
}
public GetEmbedding addIncludeItem(AnyOfGetEmbeddingIncludeItems includeItem) {
if (this.include == null) {
this.include = new ArrayList();
}
this.include.add(includeItem);
return this;
}
/**
* Get include
* @return include
**/
@Schema(description = "")
public List getInclude() {
return include;
}
public void setInclude(List include) {
this.include = include;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetEmbedding getEmbedding = (GetEmbedding) o;
return Objects.equals(this.ids, getEmbedding.ids) &&
Objects.equals(this.where, getEmbedding.where) &&
Objects.equals(this.whereDocument, getEmbedding.whereDocument) &&
Objects.equals(this.sort, getEmbedding.sort) &&
Objects.equals(this.limit, getEmbedding.limit) &&
Objects.equals(this.offset, getEmbedding.offset) &&
Objects.equals(this.include, getEmbedding.include);
}
@Override
public int hashCode() {
return Objects.hash(ids, where, whereDocument, sort, limit, offset, include);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GetEmbedding {\n");
sb.append(" ids: ").append(toIndentedString(ids)).append("\n");
sb.append(" where: ").append(toIndentedString(where)).append("\n");
sb.append(" whereDocument: ").append(toIndentedString(whereDocument)).append("\n");
sb.append(" sort: ").append(toIndentedString(sort)).append("\n");
sb.append(" limit: ").append(toIndentedString(limit)).append("\n");
sb.append(" offset: ").append(toIndentedString(offset)).append("\n");
sb.append(" include: ").append(toIndentedString(include)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}