Package com.sap.ai.sdk.grounding.model
Class TextOnlyBaseChunkCreate
java.lang.Object
com.sap.ai.sdk.grounding.model.TextOnlyBaseChunkCreate
Schema for a text-only chunk.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for TextOnlyBaseChunkCreate. -
Method Summary
Modifier and TypeMethodDescriptionaddMetadataItem(VectorKeyValueListPair metadataItem) Add one metadata instance to thisTextOnlyBaseChunkCreate.Set the content of thisTextOnlyBaseChunkCreateinstance and return the same instance.create()Create a type-safe, fluent-api builder object to construct a newTextOnlyBaseChunkCreateinstance with all required arguments.booleanGet contentgetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theTextOnlyBaseChunkCreate.Get metadatainthashCode()metadata(List<VectorKeyValueListPair> metadata) Set the metadata of thisTextOnlyBaseChunkCreateinstance and return the same instance.voidsetContent(String content) Set the content of thisTextOnlyBaseChunkCreateinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisTextOnlyBaseChunkCreateinstance.voidsetMetadata(List<VectorKeyValueListPair> metadata) Set the metadata of thisTextOnlyBaseChunkCreateinstance.toMap()Get the value of all properties of thisTextOnlyBaseChunkCreateinstance including unrecognized properties.toString()
-
Constructor Details
-
TextOnlyBaseChunkCreate
protected TextOnlyBaseChunkCreate()Default constructor for TextOnlyBaseChunkCreate.
-
-
Method Details
-
content
Set the content of thisTextOnlyBaseChunkCreateinstance and return the same instance.- Parameters:
content- The content of thisTextOnlyBaseChunkCreate- Returns:
- The same instance of this
TextOnlyBaseChunkCreateclass
-
getContent
Get content- Returns:
- content The content of this
TextOnlyBaseChunkCreateinstance.
-
setContent
Set the content of thisTextOnlyBaseChunkCreateinstance.- Parameters:
content- The content of thisTextOnlyBaseChunkCreate
-
metadata
Set the metadata of thisTextOnlyBaseChunkCreateinstance and return the same instance.- Parameters:
metadata- The metadata of thisTextOnlyBaseChunkCreate- Returns:
- The same instance of this
TextOnlyBaseChunkCreateclass
-
addMetadataItem
@Nonnull public TextOnlyBaseChunkCreate addMetadataItem(@Nonnull VectorKeyValueListPair metadataItem) Add one metadata instance to thisTextOnlyBaseChunkCreate.- Parameters:
metadataItem- The metadata that should be added- Returns:
- The same instance of type
TextOnlyBaseChunkCreate
-
getMetadata
Get metadata- Returns:
- metadata The metadata of this
TextOnlyBaseChunkCreateinstance.
-
setMetadata
Set the metadata of thisTextOnlyBaseChunkCreateinstance.- Parameters:
metadata- The metadata of thisTextOnlyBaseChunkCreate
-
getCustomFieldNames
Get the names of the unrecognizable properties of theTextOnlyBaseChunkCreate.- 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 thisTextOnlyBaseChunkCreateinstance.- 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 thisTextOnlyBaseChunkCreateinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisTextOnlyBaseChunkCreateinstance. 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 newTextOnlyBaseChunkCreateinstance with all required arguments.
-
toMap()instead.