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

tech.amikos.chromadb.model.UpdateEmbedding Maven / Gradle / Ivy

The newest version!
/*
 * 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;
/**
 * UpdateEmbedding
 */

@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2024-08-13T09:37:37.268Z[Etc/UTC]")

public class UpdateEmbedding {
  @SerializedName("embeddings")
  private List embeddings = null;

  @SerializedName("metadatas")
  private List metadatas = null;

  @SerializedName("documents")
  private List documents = null;

  @SerializedName("ids")
  private List ids = new ArrayList();

  @SerializedName("increment_index")
  private Boolean incrementIndex = true;

  public UpdateEmbedding embeddings(List embeddings) {
    this.embeddings = embeddings;
    return this;
  }

  public UpdateEmbedding addEmbeddingsItem(Object embeddingsItem) {
    if (this.embeddings == null) {
      this.embeddings = new ArrayList();
    }
    this.embeddings.add(embeddingsItem);
    return this;
  }

   /**
   * Get embeddings
   * @return embeddings
  **/
  @Schema(description = "")
  public List getEmbeddings() {
    return embeddings;
  }

  public void setEmbeddings(List embeddings) {
    this.embeddings = embeddings;
  }

  public UpdateEmbedding metadatas(List metadatas) {
    this.metadatas = metadatas;
    return this;
  }

  public UpdateEmbedding addMetadatasItem(Object metadatasItem) {
    if (this.metadatas == null) {
      this.metadatas = new ArrayList();
    }
    this.metadatas.add(metadatasItem);
    return this;
  }

   /**
   * Get metadatas
   * @return metadatas
  **/
  @Schema(description = "")
  public List getMetadatas() {
    return metadatas;
  }

  public void setMetadatas(List metadatas) {
    this.metadatas = metadatas;
  }

  public UpdateEmbedding documents(List documents) {
    this.documents = documents;
    return this;
  }

  public UpdateEmbedding addDocumentsItem(String documentsItem) {
    if (this.documents == null) {
      this.documents = new ArrayList();
    }
    this.documents.add(documentsItem);
    return this;
  }

   /**
   * Get documents
   * @return documents
  **/
  @Schema(description = "")
  public List getDocuments() {
    return documents;
  }

  public void setDocuments(List documents) {
    this.documents = documents;
  }

  public UpdateEmbedding ids(List ids) {
    this.ids = ids;
    return this;
  }

  public UpdateEmbedding addIdsItem(String idsItem) {
    this.ids.add(idsItem);
    return this;
  }

   /**
   * Get ids
   * @return ids
  **/
  @Schema(required = true, description = "")
  public List getIds() {
    return ids;
  }

  public void setIds(List ids) {
    this.ids = ids;
  }

  public UpdateEmbedding incrementIndex(Boolean incrementIndex) {
    this.incrementIndex = incrementIndex;
    return this;
  }

   /**
   * Get incrementIndex
   * @return incrementIndex
  **/
  @Schema(description = "")
  public Boolean isIncrementIndex() {
    return incrementIndex;
  }

  public void setIncrementIndex(Boolean incrementIndex) {
    this.incrementIndex = incrementIndex;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    UpdateEmbedding updateEmbedding = (UpdateEmbedding) o;
    return Objects.equals(this.embeddings, updateEmbedding.embeddings) &&
        Objects.equals(this.metadatas, updateEmbedding.metadatas) &&
        Objects.equals(this.documents, updateEmbedding.documents) &&
        Objects.equals(this.ids, updateEmbedding.ids) &&
        Objects.equals(this.incrementIndex, updateEmbedding.incrementIndex);
  }

  @Override
  public int hashCode() {
    return Objects.hash(embeddings, metadatas, documents, ids, incrementIndex);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class UpdateEmbedding {\n");
    
    sb.append("    embeddings: ").append(toIndentedString(embeddings)).append("\n");
    sb.append("    metadatas: ").append(toIndentedString(metadatas)).append("\n");
    sb.append("    documents: ").append(toIndentedString(documents)).append("\n");
    sb.append("    ids: ").append(toIndentedString(ids)).append("\n");
    sb.append("    incrementIndex: ").append(toIndentedString(incrementIndex)).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    ");
  }

}