Class EmbeddingResult
java.lang.Object
com.sap.ai.sdk.orchestration.model.EmbeddingResult
Represents an embedding vector returned by embedding endpoint.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class.static enumThe object type, which is always \"embedding\". -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for EmbeddingResult. -
Method Summary
Modifier and TypeMethodDescription_object(EmbeddingResult.ObjectEnum _object) Set the _object of thisEmbeddingResultinstance and return the same instance.static EmbeddingResult.Buildercreate()Create a type-safe, fluent-api builder object to construct a newEmbeddingResultinstance with all required arguments.Set the embedding of thisEmbeddingResultinstance and return the same instance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theEmbeddingResult.Get embeddinggetIndex()The index of the embedding in the list of embeddings.The object type, which is always \"embedding\".inthashCode()Set the index of thisEmbeddingResultinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisEmbeddingResultinstance.voidsetEmbedding(Embedding embedding) Set the embedding of thisEmbeddingResultinstance.voidSet the index of thisEmbeddingResultinstance.voidsetObject(EmbeddingResult.ObjectEnum _object) Set the _object of thisEmbeddingResultinstance.toMap()Get the value of all properties of thisEmbeddingResultinstance including unrecognized properties.toString()
-
Constructor Details
-
EmbeddingResult
protected EmbeddingResult()Default constructor for EmbeddingResult.
-
-
Method Details
-
_object
Set the _object of thisEmbeddingResultinstance and return the same instance.- Parameters:
_object- The object type, which is always \"embedding\".- Returns:
- The same instance of this
EmbeddingResultclass
-
getObject
The object type, which is always \"embedding\".- Returns:
- _object The _object of this
EmbeddingResultinstance.
-
setObject
Set the _object of thisEmbeddingResultinstance.- Parameters:
_object- The object type, which is always \"embedding\".
-
embedding
Set the embedding of thisEmbeddingResultinstance and return the same instance.- Parameters:
embedding- The embedding of thisEmbeddingResult- Returns:
- The same instance of this
EmbeddingResultclass
-
getEmbedding
Get embedding- Returns:
- embedding The embedding of this
EmbeddingResultinstance.
-
setEmbedding
Set the embedding of thisEmbeddingResultinstance.- Parameters:
embedding- The embedding of thisEmbeddingResult
-
index
Set the index of thisEmbeddingResultinstance and return the same instance.- Parameters:
index- The index of the embedding in the list of embeddings.- Returns:
- The same instance of this
EmbeddingResultclass
-
getIndex
The index of the embedding in the list of embeddings.- Returns:
- index The index of this
EmbeddingResultinstance.
-
setIndex
Set the index of thisEmbeddingResultinstance.- Parameters:
index- The index of the embedding in the list of embeddings.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theEmbeddingResult.- Returns:
- The set of properties names
-
getCustomField
@Nullable @Deprecated public Object getCustomField(@Nonnull String name) throws NoSuchElementException Deprecated.UsetoMap()instead.Get the value of an unrecognizable property of thisEmbeddingResultinstance.- Parameters:
name- The name of the property- Returns:
- The value of the property
- Throws:
NoSuchElementException- If no property with the given name could be found.
-
toMap
Get the value of all properties of thisEmbeddingResultinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisEmbeddingResultinstance. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
customFieldName- The name of the propertycustomFieldValue- The value of the property
-
equals
-
hashCode
public int hashCode() -
toString
-
create
Create a type-safe, fluent-api builder object to construct a newEmbeddingResultinstance with all required arguments.
-
toMap()instead.