@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-10-23T20:47:14.512003Z[Etc/UTC]")
public class RankedDocument
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RankedDocument.CustomTypeAdapterFactory |
| 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_DOCUMENT |
static java.lang.String |
SERIALIZED_NAME_INDEX |
static java.lang.String |
SERIALIZED_NAME_SCORE |
| Constructor and Description |
|---|
RankedDocument() |
| Modifier and Type | Method and Description |
|---|---|
RankedDocument |
document(java.util.Map<java.lang.String,java.lang.String> document) |
boolean |
equals(java.lang.Object o) |
static RankedDocument |
fromJson(java.lang.String jsonString)
Create an instance of RankedDocument 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.
|
java.util.Map<java.lang.String,java.lang.String> |
getDocument()
Document for reranking
|
java.lang.Integer |
getIndex()
The index of the document
|
java.math.BigDecimal |
getScore()
The relevance score of the document normalized between 0 and 1.
|
int |
hashCode() |
RankedDocument |
index(java.lang.Integer index) |
RankedDocument |
putAdditionalProperty(java.lang.String key,
java.lang.Object value)
Set the additional (undeclared) property with the specified name and value.
|
RankedDocument |
putDocumentItem(java.lang.String key,
java.lang.String documentItem) |
RankedDocument |
score(java.math.BigDecimal score) |
void |
setDocument(java.util.Map<java.lang.String,java.lang.String> document) |
void |
setIndex(java.lang.Integer index) |
void |
setScore(java.math.BigDecimal score) |
java.lang.String |
toJson()
Convert an instance of RankedDocument 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_INDEX
public static final java.lang.String SERIALIZED_NAME_SCORE
public static final java.lang.String SERIALIZED_NAME_DOCUMENT
public static java.util.HashSet<java.lang.String> openapiFields
public static java.util.HashSet<java.lang.String> openapiRequiredFields
public RankedDocument index(java.lang.Integer index)
@Nonnull public java.lang.Integer getIndex()
public void setIndex(java.lang.Integer index)
public RankedDocument score(java.math.BigDecimal score)
@Nonnull public java.math.BigDecimal getScore()
public void setScore(java.math.BigDecimal score)
public RankedDocument document(java.util.Map<java.lang.String,java.lang.String> document)
public RankedDocument putDocumentItem(java.lang.String key, java.lang.String documentItem)
@Nullable public java.util.Map<java.lang.String,java.lang.String> getDocument()
public void setDocument(java.util.Map<java.lang.String,java.lang.String> document)
public RankedDocument 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 RankedDocumentpublic static RankedDocument fromJson(java.lang.String jsonString) throws java.io.IOException
jsonString - JSON stringjava.io.IOException - if the JSON string is invalid with respect to RankedDocumentpublic java.lang.String toJson()