Class EmbeddingsInput
java.lang.Object
com.sap.ai.sdk.orchestration.model.EmbeddingsInput
EmbeddingsInput
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static enumGets or Sets type -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for EmbeddingsInput. -
Method Summary
Modifier and TypeMethodDescriptionstatic EmbeddingsInput.Buildercreate()Create a type-safe, fluent-api builder object to construct a newEmbeddingsInputinstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theEmbeddingsInput.getText()Get textgetType()Get typeinthashCode()voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisEmbeddingsInputinstance.voidsetText(EmbeddingsInputText text) Set the text of thisEmbeddingsInputinstance.voidSet the type of thisEmbeddingsInputinstance.text(EmbeddingsInputText text) Set the text of thisEmbeddingsInputinstance and return the same instance.toMap()Get the value of all properties of thisEmbeddingsInputinstance including unrecognized properties.toString()type(EmbeddingsInput.TypeEnum type) Set the type of thisEmbeddingsInputinstance and return the same instance.
-
Constructor Details
-
EmbeddingsInput
protected EmbeddingsInput()Default constructor for EmbeddingsInput.
-
-
Method Details
-
text
Set the text of thisEmbeddingsInputinstance and return the same instance.- Parameters:
text- The text of thisEmbeddingsInput- Returns:
- The same instance of this
EmbeddingsInputclass
-
getText
Get text- Returns:
- text The text of this
EmbeddingsInputinstance.
-
setText
Set the text of thisEmbeddingsInputinstance.- Parameters:
text- The text of thisEmbeddingsInput
-
type
Set the type of thisEmbeddingsInputinstance and return the same instance.- Parameters:
type- The type of thisEmbeddingsInput- Returns:
- The same instance of this
EmbeddingsInputclass
-
getType
Get type- Returns:
- type The type of this
EmbeddingsInputinstance.
-
setType
Set the type of thisEmbeddingsInputinstance.- Parameters:
type- The type of thisEmbeddingsInput
-
getCustomFieldNames
Get the names of the unrecognizable properties of theEmbeddingsInput.- 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 thisEmbeddingsInputinstance.- 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 thisEmbeddingsInputinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisEmbeddingsInputinstance. 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 newEmbeddingsInputinstance with all required arguments.
-
toMap()instead.