@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-07-18T20:37:01.807093Z[Etc/UTC]")
public class IndexModel
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
IndexModel.CustomTypeAdapterFactory |
static class |
IndexModel.MetricEnum
The distance metric to be used for similarity search.
|
| Modifier and Type | Field and Description |
|---|---|
static java.util.HashSet<java.lang.String> |
openapiFields |
static java.util.HashSet<java.lang.String> |
openapiRequiredFields |
static java.lang.String |
SERIALIZED_NAME_DELETION_PROTECTION |
static java.lang.String |
SERIALIZED_NAME_DIMENSION |
static java.lang.String |
SERIALIZED_NAME_HOST |
static java.lang.String |
SERIALIZED_NAME_METRIC |
static java.lang.String |
SERIALIZED_NAME_NAME |
static java.lang.String |
SERIALIZED_NAME_SPEC |
static java.lang.String |
SERIALIZED_NAME_STATUS |
| Constructor and Description |
|---|
IndexModel() |
| Modifier and Type | Method and Description |
|---|---|
IndexModel |
deletionProtection(DeletionProtection deletionProtection) |
IndexModel |
dimension(java.lang.Integer dimension) |
boolean |
equals(java.lang.Object o) |
static IndexModel |
fromJson(java.lang.String jsonString)
Create an instance of IndexModel given an JSON string
|
java.util.Map<java.lang.String,java.lang.Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
java.lang.Object |
getAdditionalProperty(java.lang.String key)
Return the additional (undeclared) property with the specified name.
|
DeletionProtection |
getDeletionProtection()
Get deletionProtection
|
java.lang.Integer |
getDimension()
The dimensions of the vectors to be inserted in the index.
|
java.lang.String |
getHost()
The URL address where the index is hosted.
|
IndexModel.MetricEnum |
getMetric()
The distance metric to be used for similarity search.
|
java.lang.String |
getName()
The name of the index.
|
IndexModelSpec |
getSpec()
Get spec
|
IndexModelStatus |
getStatus()
Get status
|
int |
hashCode() |
IndexModel |
host(java.lang.String host) |
IndexModel |
metric(IndexModel.MetricEnum metric) |
IndexModel |
name(java.lang.String name) |
IndexModel |
putAdditionalProperty(java.lang.String key,
java.lang.Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setDeletionProtection(DeletionProtection deletionProtection) |
void |
setDimension(java.lang.Integer dimension) |
void |
setHost(java.lang.String host) |
void |
setMetric(IndexModel.MetricEnum metric) |
void |
setName(java.lang.String name) |
void |
setSpec(IndexModelSpec spec) |
void |
setStatus(IndexModelStatus status) |
IndexModel |
spec(IndexModelSpec spec) |
IndexModel |
status(IndexModelStatus status) |
java.lang.String |
toJson()
Convert an instance of IndexModel to an JSON string
|
java.lang.String |
toString() |
static void |
validateJsonElement(com.google.gson.JsonElement jsonElement)
Validates the JSON Element and throws an exception if issues found
|
public static final java.lang.String SERIALIZED_NAME_NAME
public static final java.lang.String SERIALIZED_NAME_DIMENSION
public static final java.lang.String SERIALIZED_NAME_METRIC
public static final java.lang.String SERIALIZED_NAME_HOST
public static final java.lang.String SERIALIZED_NAME_DELETION_PROTECTION
public static final java.lang.String SERIALIZED_NAME_SPEC
public static final java.lang.String SERIALIZED_NAME_STATUS
public static java.util.HashSet<java.lang.String> openapiFields
public static java.util.HashSet<java.lang.String> openapiRequiredFields
public IndexModel name(java.lang.String name)
@Nonnull public java.lang.String getName()
public void setName(java.lang.String name)
public IndexModel dimension(java.lang.Integer dimension)
@Nonnull public java.lang.Integer getDimension()
public void setDimension(java.lang.Integer dimension)
public IndexModel metric(IndexModel.MetricEnum metric)
@Nonnull public IndexModel.MetricEnum getMetric()
public void setMetric(IndexModel.MetricEnum metric)
public IndexModel host(java.lang.String host)
@Nonnull public java.lang.String getHost()
public void setHost(java.lang.String host)
public IndexModel deletionProtection(DeletionProtection deletionProtection)
@Nullable public DeletionProtection getDeletionProtection()
public void setDeletionProtection(DeletionProtection deletionProtection)
public IndexModel spec(IndexModelSpec spec)
@Nonnull public IndexModelSpec getSpec()
public void setSpec(IndexModelSpec spec)
public IndexModel status(IndexModelStatus status)
@Nonnull public IndexModelStatus getStatus()
public void setStatus(IndexModelStatus status)
public IndexModel putAdditionalProperty(java.lang.String key, java.lang.Object value)
key - name of the propertyvalue - value of the propertypublic java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
public java.lang.Object getAdditionalProperty(java.lang.String key)
key - name of the propertypublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static void validateJsonElement(com.google.gson.JsonElement jsonElement)
throws java.io.IOException
jsonElement - JSON Elementjava.io.IOException - if the JSON Element is invalid with respect to IndexModelpublic static IndexModel fromJson(java.lang.String jsonString) throws java.io.IOException
jsonString - JSON stringjava.io.IOException - if the JSON string is invalid with respect to IndexModelpublic java.lang.String toJson()