Class EmbeddingsCreate200ResponseDataInner
java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.generated.model.EmbeddingsCreate200ResponseDataInner
EmbeddingsCreate200ResponseDataInner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet the _object of thisEmbeddingsCreate200ResponseDataInnerinstance and return the same instance.embedding(float[] embedding) Set the embedding of thisEmbeddingsCreate200ResponseDataInnerinstance and return the same instance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theEmbeddingsCreate200ResponseDataInner.float[]Get embeddinggetIndex()Get indexGet _objectinthashCode()Set the index of thisEmbeddingsCreate200ResponseDataInnerinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisEmbeddingsCreate200ResponseDataInnerinstance.voidsetEmbedding(float[] embedding) Set the embedding of thisEmbeddingsCreate200ResponseDataInnerinstance.voidSet the index of thisEmbeddingsCreate200ResponseDataInnerinstance.voidSet the _object of thisEmbeddingsCreate200ResponseDataInnerinstance.toMap()Get the value of all properties of thisEmbeddingsCreate200ResponseDataInnerinstance including unrecognized properties.toString()
-
Constructor Details
-
EmbeddingsCreate200ResponseDataInner
public EmbeddingsCreate200ResponseDataInner()
-
-
Method Details
-
index
Set the index of thisEmbeddingsCreate200ResponseDataInnerinstance and return the same instance.- Parameters:
index- The index of thisEmbeddingsCreate200ResponseDataInner- Returns:
- The same instance of this
EmbeddingsCreate200ResponseDataInnerclass
-
getIndex
Get index- Returns:
- index The index of this
EmbeddingsCreate200ResponseDataInnerinstance.
-
setIndex
Set the index of thisEmbeddingsCreate200ResponseDataInnerinstance.- Parameters:
index- The index of thisEmbeddingsCreate200ResponseDataInner
-
_object
Set the _object of thisEmbeddingsCreate200ResponseDataInnerinstance and return the same instance.- Parameters:
_object- The _object of thisEmbeddingsCreate200ResponseDataInner- Returns:
- The same instance of this
EmbeddingsCreate200ResponseDataInnerclass
-
getObject
Get _object- Returns:
- _object The _object of this
EmbeddingsCreate200ResponseDataInnerinstance.
-
setObject
Set the _object of thisEmbeddingsCreate200ResponseDataInnerinstance.- Parameters:
_object- The _object of thisEmbeddingsCreate200ResponseDataInner
-
embedding
Set the embedding of thisEmbeddingsCreate200ResponseDataInnerinstance and return the same instance.- Parameters:
embedding- The embedding of thisEmbeddingsCreate200ResponseDataInner- Returns:
- The same instance of this
EmbeddingsCreate200ResponseDataInnerclass
-
getEmbedding
@Nonnull public float[] getEmbedding()Get embedding- Returns:
- embedding The embedding of this
EmbeddingsCreate200ResponseDataInnerinstance.
-
setEmbedding
public void setEmbedding(@Nonnull float[] embedding) Set the embedding of thisEmbeddingsCreate200ResponseDataInnerinstance.- Parameters:
embedding- The embedding of thisEmbeddingsCreate200ResponseDataInner
-
getCustomFieldNames
Get the names of the unrecognizable properties of theEmbeddingsCreate200ResponseDataInner.- 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 thisEmbeddingsCreate200ResponseDataInnerinstance.- 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 thisEmbeddingsCreate200ResponseDataInnerinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisEmbeddingsCreate200ResponseDataInnerinstance. 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
-
toMap()instead.