Package dev.cachly.api.model
Class IndexRequest
java.lang.Object
dev.cachly.api.model.IndexRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-04-17T00:43:25.074268745Z[Etc/UTC]",
comments="Generator version: 7.5.0")
public class IndexRequest
extends Object
IndexRequest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumModality of the entry -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEmbeddingItem(BigDecimal embeddingItem) addImageEmbeddingItem(BigDecimal imageEmbeddingItem) embedding(List<BigDecimal> embedding) embeddingQ8(QuantizedEmbedding embeddingQ8) embeddingType(IndexRequest.EmbeddingTypeEnum embeddingType) booleanReturn true if this IndexRequest object is equal to o.expiresAt(OffsetDateTime expiresAt) Float64 text embedding vectorint8-quantized text embeddingModality of the entryOptional TTL – mirrors Valkey key expirygetId()Optional custom ID (auto-generated if absent)Float64 image embedding vector for multimodal entriesint8-quantized image embedding for multimodal entriesGet namespaceGet promptinthashCode()imageEmbedding(List<BigDecimal> imageEmbedding) imageEmbeddingQ8(QuantizedEmbedding imageEmbeddingQ8) voidsetEmbedding(List<BigDecimal> embedding) voidsetEmbeddingQ8(QuantizedEmbedding embeddingQ8) voidsetEmbeddingType(IndexRequest.EmbeddingTypeEnum embeddingType) voidsetExpiresAt(OffsetDateTime expiresAt) voidvoidsetImageEmbedding(List<BigDecimal> imageEmbedding) voidsetImageEmbeddingQ8(QuantizedEmbedding imageEmbeddingQ8) voidsetNamespace(String namespace) voidtoString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_EMBEDDING
- See Also:
-
JSON_PROPERTY_EMBEDDING_Q8
- See Also:
-
JSON_PROPERTY_IMAGE_EMBEDDING
- See Also:
-
JSON_PROPERTY_IMAGE_EMBEDDING_Q8
- See Also:
-
JSON_PROPERTY_EMBEDDING_TYPE
- See Also:
-
JSON_PROPERTY_PROMPT
- See Also:
-
JSON_PROPERTY_NAMESPACE
- See Also:
-
JSON_PROPERTY_EXPIRES_AT
- See Also:
-
-
Constructor Details
-
IndexRequest
public IndexRequest()
-
-
Method Details
-
id
-
getId
Optional custom ID (auto-generated if absent)- Returns:
- id
-
setId
-
embedding
-
addEmbeddingItem
-
getEmbedding
Float64 text embedding vector- Returns:
- embedding
-
setEmbedding
-
embeddingQ8
-
getEmbeddingQ8
int8-quantized text embedding- Returns:
- embeddingQ8
-
setEmbeddingQ8
-
imageEmbedding
-
addImageEmbeddingItem
-
getImageEmbedding
Float64 image embedding vector for multimodal entries- Returns:
- imageEmbedding
-
setImageEmbedding
-
imageEmbeddingQ8
-
getImageEmbeddingQ8
int8-quantized image embedding for multimodal entries- Returns:
- imageEmbeddingQ8
-
setImageEmbeddingQ8
-
embeddingType
-
getEmbeddingType
Modality of the entry- Returns:
- embeddingType
-
setEmbeddingType
-
prompt
-
getPrompt
Get prompt- Returns:
- prompt
-
setPrompt
-
namespace
-
getNamespace
Get namespace- Returns:
- namespace
-
setNamespace
-
expiresAt
-
getExpiresAt
Optional TTL – mirrors Valkey key expiry- Returns:
- expiresAt
-
setExpiresAt
-
equals
Return true if this IndexRequest object is equal to o. -
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-