Package com.sap.ai.sdk.grounding.model
Class DataRepositoryWithDocuments
java.lang.Object
com.sap.ai.sdk.grounding.model.DataRepositoryWithDocuments
DataRepository schema returned by the Vector search endpoint
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for DataRepositoryWithDocuments. -
Method Summary
Modifier and TypeMethodDescriptionaddDocumentsItem(Document documentsItem) Add one documents instance to thisDataRepositoryWithDocuments.addMetadataItem(RetrievalKeyValueListPair metadataItem) Add one metadata instance to thisDataRepositoryWithDocuments.create()Create a type-safe, fluent-api builder object to construct a newDataRepositoryWithDocumentsinstance with all required arguments.Set the documents of thisDataRepositoryWithDocumentsinstance and return the same instance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theDataRepositoryWithDocuments.Get documentsgetId()Unique identifier of this DataRepository.Optional message.Metadata attached to DataRepository.Friendly destination Name (grounding.name) of remote instance.getTitle()Get titleinthashCode()Set the id of thisDataRepositoryWithDocumentsinstance and return the same instance.Set the message of thisDataRepositoryWithDocumentsinstance and return the same instance.metadata(List<RetrievalKeyValueListPair> metadata) Set the metadata of thisDataRepositoryWithDocumentsinstance and return the same instance.remoteGroundingName(String remoteGroundingName) Set the remoteGroundingName of thisDataRepositoryWithDocumentsinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisDataRepositoryWithDocumentsinstance.voidsetDocuments(List<Document> documents) Set the documents of thisDataRepositoryWithDocumentsinstance.voidSet the id of thisDataRepositoryWithDocumentsinstance.voidsetMessage(String message) Set the message of thisDataRepositoryWithDocumentsinstance.voidsetMetadata(List<RetrievalKeyValueListPair> metadata) Set the metadata of thisDataRepositoryWithDocumentsinstance.voidsetRemoteGroundingName(String remoteGroundingName) Set the remoteGroundingName of thisDataRepositoryWithDocumentsinstance.voidSet the title of thisDataRepositoryWithDocumentsinstance.Set the title of thisDataRepositoryWithDocumentsinstance and return the same instance.toMap()Get the value of all properties of thisDataRepositoryWithDocumentsinstance including unrecognized properties.toString()
-
Constructor Details
-
DataRepositoryWithDocuments
protected DataRepositoryWithDocuments()Default constructor for DataRepositoryWithDocuments.
-
-
Method Details
-
id
Set the id of thisDataRepositoryWithDocumentsinstance and return the same instance.- Parameters:
id- Unique identifier of this DataRepository.- Returns:
- The same instance of this
DataRepositoryWithDocumentsclass
-
getId
Unique identifier of this DataRepository.- Returns:
- id The id of this
DataRepositoryWithDocumentsinstance.
-
setId
Set the id of thisDataRepositoryWithDocumentsinstance.- Parameters:
id- Unique identifier of this DataRepository.
-
title
Set the title of thisDataRepositoryWithDocumentsinstance and return the same instance.- Parameters:
title- The title of thisDataRepositoryWithDocuments- Returns:
- The same instance of this
DataRepositoryWithDocumentsclass
-
getTitle
Get title- Returns:
- title The title of this
DataRepositoryWithDocumentsinstance.
-
setTitle
Set the title of thisDataRepositoryWithDocumentsinstance.- Parameters:
title- The title of thisDataRepositoryWithDocuments
-
metadata
@Nonnull public DataRepositoryWithDocuments metadata(@Nullable List<RetrievalKeyValueListPair> metadata) Set the metadata of thisDataRepositoryWithDocumentsinstance and return the same instance.- Parameters:
metadata- Metadata attached to DataRepository. Useful to later limit search to a subset of DataRepositories.- Returns:
- The same instance of this
DataRepositoryWithDocumentsclass
-
addMetadataItem
@Nonnull public DataRepositoryWithDocuments addMetadataItem(@Nonnull RetrievalKeyValueListPair metadataItem) Add one metadata instance to thisDataRepositoryWithDocuments.- Parameters:
metadataItem- The metadata that should be added- Returns:
- The same instance of type
DataRepositoryWithDocuments
-
getMetadata
Metadata attached to DataRepository. Useful to later limit search to a subset of DataRepositories.- Returns:
- metadata The metadata of this
DataRepositoryWithDocumentsinstance.
-
setMetadata
Set the metadata of thisDataRepositoryWithDocumentsinstance.- Parameters:
metadata- Metadata attached to DataRepository. Useful to later limit search to a subset of DataRepositories.
-
remoteGroundingName
@Nonnull public DataRepositoryWithDocuments remoteGroundingName(@Nullable String remoteGroundingName) Set the remoteGroundingName of thisDataRepositoryWithDocumentsinstance and return the same instance.- Parameters:
remoteGroundingName- Friendly destination Name (grounding.name) of remote instance.- Returns:
- The same instance of this
DataRepositoryWithDocumentsclass
-
getRemoteGroundingName
Friendly destination Name (grounding.name) of remote instance.- Returns:
- remoteGroundingName The remoteGroundingName of this
DataRepositoryWithDocumentsinstance.
-
setRemoteGroundingName
Set the remoteGroundingName of thisDataRepositoryWithDocumentsinstance.- Parameters:
remoteGroundingName- Friendly destination Name (grounding.name) of remote instance.
-
message
Set the message of thisDataRepositoryWithDocumentsinstance and return the same instance.- Parameters:
message- Optional message.- Returns:
- The same instance of this
DataRepositoryWithDocumentsclass
-
getMessage
Optional message.- Returns:
- message The message of this
DataRepositoryWithDocumentsinstance.
-
setMessage
Set the message of thisDataRepositoryWithDocumentsinstance.- Parameters:
message- Optional message.
-
documents
Set the documents of thisDataRepositoryWithDocumentsinstance and return the same instance.- Parameters:
documents- The documents of thisDataRepositoryWithDocuments- Returns:
- The same instance of this
DataRepositoryWithDocumentsclass
-
addDocumentsItem
Add one documents instance to thisDataRepositoryWithDocuments.- Parameters:
documentsItem- The documents that should be added- Returns:
- The same instance of type
DataRepositoryWithDocuments
-
getDocuments
Get documents- Returns:
- documents The documents of this
DataRepositoryWithDocumentsinstance.
-
setDocuments
Set the documents of thisDataRepositoryWithDocumentsinstance.- Parameters:
documents- The documents of thisDataRepositoryWithDocuments
-
getCustomFieldNames
Get the names of the unrecognizable properties of theDataRepositoryWithDocuments.- 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 thisDataRepositoryWithDocumentsinstance.- 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 thisDataRepositoryWithDocumentsinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisDataRepositoryWithDocumentsinstance. 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 newDataRepositoryWithDocumentsinstance with all required arguments.
-
toMap()instead.