Package com.sap.ai.sdk.grounding.model
Class DataRepository
java.lang.Object
com.sap.ai.sdk.grounding.model.DataRepository
DataRepository schema expected by Retrieval.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMetadataItem(RetrievalKeyValueListPair metadataItem) Add one metadata instance to thisDataRepository.static DataRepository.Buildercreate()Create a type-safe, fluent-api builder object to construct a newDataRepositoryinstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theDataRepository.getId()Unique identifier of this DataRepository.Get messageMetadata attached to DataRepository.Get remoteGroundingNamegetTitle()Get titlegetType()Get typeinthashCode()Set the id of thisDataRepositoryinstance and return the same instance.Set the message of thisDataRepositoryinstance and return the same instance.metadata(List<RetrievalKeyValueListPair> metadata) Set the metadata of thisDataRepositoryinstance and return the same instance.remoteGroundingName(String remoteGroundingName) Set the remoteGroundingName of thisDataRepositoryinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisDataRepositoryinstance.voidSet the id of thisDataRepositoryinstance.voidsetMessage(String message) Set the message of thisDataRepositoryinstance.voidsetMetadata(List<RetrievalKeyValueListPair> metadata) Set the metadata of thisDataRepositoryinstance.voidsetRemoteGroundingName(String remoteGroundingName) Set the remoteGroundingName of thisDataRepositoryinstance.voidSet the title of thisDataRepositoryinstance.voidsetType(DataRepositoryType type) Set the type of thisDataRepositoryinstance.Set the title of thisDataRepositoryinstance and return the same instance.toMap()Get the value of all properties of thisDataRepositoryinstance including unrecognized properties.toString()type(DataRepositoryType type) Set the type of thisDataRepositoryinstance and return the same instance.
-
Constructor Details
-
DataRepository
protected DataRepository()Default constructor for DataRepository.
-
-
Method Details
-
id
Set the id of thisDataRepositoryinstance and return the same instance.- Parameters:
id- Unique identifier of this DataRepository.- Returns:
- The same instance of this
DataRepositoryclass
-
getId
Unique identifier of this DataRepository.- Returns:
- id The id of this
DataRepositoryinstance.
-
setId
Set the id of thisDataRepositoryinstance.- Parameters:
id- Unique identifier of this DataRepository.
-
title
Set the title of thisDataRepositoryinstance and return the same instance.- Parameters:
title- The title of thisDataRepository- Returns:
- The same instance of this
DataRepositoryclass
-
getTitle
Get title- Returns:
- title The title of this
DataRepositoryinstance.
-
setTitle
Set the title of thisDataRepositoryinstance.- Parameters:
title- The title of thisDataRepository
-
metadata
Set the metadata of thisDataRepositoryinstance 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
DataRepositoryclass
-
addMetadataItem
Add one metadata instance to thisDataRepository.- Parameters:
metadataItem- The metadata that should be added- Returns:
- The same instance of type
DataRepository
-
getMetadata
Metadata attached to DataRepository. Useful to later limit search to a subset of DataRepositories.- Returns:
- metadata The metadata of this
DataRepositoryinstance.
-
setMetadata
Set the metadata of thisDataRepositoryinstance.- Parameters:
metadata- Metadata attached to DataRepository. Useful to later limit search to a subset of DataRepositories.
-
remoteGroundingName
Set the remoteGroundingName of thisDataRepositoryinstance and return the same instance.- Parameters:
remoteGroundingName- The remoteGroundingName of thisDataRepository- Returns:
- The same instance of this
DataRepositoryclass
-
getRemoteGroundingName
Get remoteGroundingName- Returns:
- remoteGroundingName The remoteGroundingName of this
DataRepositoryinstance.
-
setRemoteGroundingName
Set the remoteGroundingName of thisDataRepositoryinstance.- Parameters:
remoteGroundingName- The remoteGroundingName of thisDataRepository
-
message
Set the message of thisDataRepositoryinstance and return the same instance.- Parameters:
message- The message of thisDataRepository- Returns:
- The same instance of this
DataRepositoryclass
-
getMessage
Get message- Returns:
- message The message of this
DataRepositoryinstance.
-
setMessage
Set the message of thisDataRepositoryinstance.- Parameters:
message- The message of thisDataRepository
-
type
Set the type of thisDataRepositoryinstance and return the same instance.- Parameters:
type- The type of thisDataRepository- Returns:
- The same instance of this
DataRepositoryclass
-
getType
Get type- Returns:
- type The type of this
DataRepositoryinstance.
-
setType
Set the type of thisDataRepositoryinstance.- Parameters:
type- The type of thisDataRepository
-
getCustomFieldNames
Get the names of the unrecognizable properties of theDataRepository.- 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 thisDataRepositoryinstance.- 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 thisDataRepositoryinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisDataRepositoryinstance. 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 newDataRepositoryinstance with all required arguments.
-
toMap()instead.