@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-07-18T20:37:01.807093Z[Etc/UTC]")
public class CreateIndexRequest
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CreateIndexRequest.CustomTypeAdapterFactory |
static class |
CreateIndexRequest.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_METRIC |
static java.lang.String |
SERIALIZED_NAME_NAME |
static java.lang.String |
SERIALIZED_NAME_SPEC |
| Constructor and Description |
|---|
CreateIndexRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreateIndexRequest |
deletionProtection(DeletionProtection deletionProtection) |
CreateIndexRequest |
dimension(java.lang.Integer dimension) |
boolean |
equals(java.lang.Object o) |
static CreateIndexRequest |
fromJson(java.lang.String jsonString)
Create an instance of CreateIndexRequest 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.
|
CreateIndexRequest.MetricEnum |
getMetric()
The distance metric to be used for similarity search.
|
java.lang.String |
getName()
The name of the index.
|
IndexSpec |
getSpec()
Get spec
|
int |
hashCode() |
CreateIndexRequest |
metric(CreateIndexRequest.MetricEnum metric) |
CreateIndexRequest |
name(java.lang.String name) |
CreateIndexRequest |
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 |
setMetric(CreateIndexRequest.MetricEnum metric) |
void |
setName(java.lang.String name) |
void |
setSpec(IndexSpec spec) |
CreateIndexRequest |
spec(IndexSpec spec) |
java.lang.String |
toJson()
Convert an instance of CreateIndexRequest 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_DELETION_PROTECTION
public static final java.lang.String SERIALIZED_NAME_SPEC
public static java.util.HashSet<java.lang.String> openapiFields
public static java.util.HashSet<java.lang.String> openapiRequiredFields
public CreateIndexRequest name(java.lang.String name)
@Nonnull public java.lang.String getName()
public void setName(java.lang.String name)
public CreateIndexRequest dimension(java.lang.Integer dimension)
@Nonnull public java.lang.Integer getDimension()
public void setDimension(java.lang.Integer dimension)
public CreateIndexRequest metric(CreateIndexRequest.MetricEnum metric)
@Nullable public CreateIndexRequest.MetricEnum getMetric()
public void setMetric(CreateIndexRequest.MetricEnum metric)
public CreateIndexRequest deletionProtection(DeletionProtection deletionProtection)
@Nullable public DeletionProtection getDeletionProtection()
public void setDeletionProtection(DeletionProtection deletionProtection)
public CreateIndexRequest spec(IndexSpec spec)
@Nullable public IndexSpec getSpec()
public void setSpec(IndexSpec spec)
public CreateIndexRequest 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 CreateIndexRequestpublic static CreateIndexRequest fromJson(java.lang.String jsonString) throws java.io.IOException
jsonString - JSON stringjava.io.IOException - if the JSON string is invalid with respect to CreateIndexRequestpublic java.lang.String toJson()