Package com.sap.ai.sdk.grounding.model
Class RetrievalDataRepositorySearchResult
java.lang.Object
com.sap.ai.sdk.grounding.model.RetrievalDataRepositorySearchResult
RetrievalDataRepositorySearchResult
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for RetrievalDataRepositorySearchResult. -
Method Summary
Modifier and TypeMethodDescriptioncreate()Create a type-safe, fluent-api builder object to construct a newRetrievalDataRepositorySearchResultinstance with all required arguments.dataRepository(DataRepositoryWithDocuments dataRepository) Set the dataRepository of thisRetrievalDataRepositorySearchResultinstance and return the same instance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theRetrievalDataRepositorySearchResult.Get dataRepositoryinthashCode()voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisRetrievalDataRepositorySearchResultinstance.voidsetDataRepository(DataRepositoryWithDocuments dataRepository) Set the dataRepository of thisRetrievalDataRepositorySearchResultinstance.toMap()Get the value of all properties of thisRetrievalDataRepositorySearchResultinstance including unrecognized properties.toString()
-
Constructor Details
-
RetrievalDataRepositorySearchResult
protected RetrievalDataRepositorySearchResult()Default constructor for RetrievalDataRepositorySearchResult.
-
-
Method Details
-
dataRepository
@Nonnull public RetrievalDataRepositorySearchResult dataRepository(@Nonnull DataRepositoryWithDocuments dataRepository) Set the dataRepository of thisRetrievalDataRepositorySearchResultinstance and return the same instance.- Parameters:
dataRepository- The dataRepository of thisRetrievalDataRepositorySearchResult- Returns:
- The same instance of this
RetrievalDataRepositorySearchResultclass
-
getDataRepository
Get dataRepository- Returns:
- dataRepository The dataRepository of this
RetrievalDataRepositorySearchResultinstance.
-
setDataRepository
Set the dataRepository of thisRetrievalDataRepositorySearchResultinstance.- Parameters:
dataRepository- The dataRepository of thisRetrievalDataRepositorySearchResult
-
getCustomFieldNames
Get the names of the unrecognizable properties of theRetrievalDataRepositorySearchResult.- 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 thisRetrievalDataRepositorySearchResultinstance.- 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 thisRetrievalDataRepositorySearchResultinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisRetrievalDataRepositorySearchResultinstance. 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 newRetrievalDataRepositorySearchResultinstance with all required arguments.
-
toMap()instead.