tech.amikos.chromadb.model.CreateCollection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chromadb-java-client Show documentation
Show all versions of chromadb-java-client Show documentation
Chroma Vector DB Java Client
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;
/**
* CreateCollection
*/
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2024-08-13T09:37:37.268Z[Etc/UTC]")
public class CreateCollection {
@SerializedName("name")
private String name = null;
@SerializedName("metadata")
private Object metadata = null;
@SerializedName("get_or_create")
private Boolean getOrCreate = false;
public CreateCollection name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@Schema(required = true, description = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public CreateCollection metadata(Object metadata) {
this.metadata = metadata;
return this;
}
/**
* Get metadata
* @return metadata
**/
@Schema(description = "")
public Object getMetadata() {
return metadata;
}
public void setMetadata(Object metadata) {
this.metadata = metadata;
}
public CreateCollection getOrCreate(Boolean getOrCreate) {
this.getOrCreate = getOrCreate;
return this;
}
/**
* Get getOrCreate
* @return getOrCreate
**/
@Schema(description = "")
public Boolean isGetOrCreate() {
return getOrCreate;
}
public void setGetOrCreate(Boolean getOrCreate) {
this.getOrCreate = getOrCreate;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CreateCollection createCollection = (CreateCollection) o;
return Objects.equals(this.name, createCollection.name) &&
Objects.equals(this.metadata, createCollection.metadata) &&
Objects.equals(this.getOrCreate, createCollection.getOrCreate);
}
@Override
public int hashCode() {
return Objects.hash(name, metadata, getOrCreate);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateCollection {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
sb.append(" getOrCreate: ").append(toIndentedString(getOrCreate)).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 ");
}
}