Package com.sap.ai.sdk.grounding.model
Class PerFilterSearchResult
java.lang.Object
com.sap.ai.sdk.grounding.model.PerFilterSearchResult
PerFilterSearchResult
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for PerFilterSearchResult. -
Method Summary
Modifier and TypeMethodDescriptionaddResultsItem(DocumentsChunk resultsItem) Add one results instance to thisPerFilterSearchResult.create()Create a type-safe, fluent-api builder object to construct a newPerFilterSearchResultinstance with all required arguments.booleanSet the filterId of thisPerFilterSearchResultinstance and return the same instance.getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of thePerFilterSearchResult.Get filterIdGet resultsinthashCode()results(List<DocumentsChunk> results) Set the results of thisPerFilterSearchResultinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisPerFilterSearchResultinstance.voidsetFilterId(String filterId) Set the filterId of thisPerFilterSearchResultinstance.voidsetResults(List<DocumentsChunk> results) Set the results of thisPerFilterSearchResultinstance.toMap()Get the value of all properties of thisPerFilterSearchResultinstance including unrecognized properties.toString()
-
Constructor Details
-
PerFilterSearchResult
protected PerFilterSearchResult()Default constructor for PerFilterSearchResult.
-
-
Method Details
-
filterId
Set the filterId of thisPerFilterSearchResultinstance and return the same instance.- Parameters:
filterId- The filterId of thisPerFilterSearchResult- Returns:
- The same instance of this
PerFilterSearchResultclass
-
getFilterId
Get filterId- Returns:
- filterId The filterId of this
PerFilterSearchResultinstance.
-
setFilterId
Set the filterId of thisPerFilterSearchResultinstance.- Parameters:
filterId- The filterId of thisPerFilterSearchResult
-
results
Set the results of thisPerFilterSearchResultinstance and return the same instance.- Parameters:
results- The results of thisPerFilterSearchResult- Returns:
- The same instance of this
PerFilterSearchResultclass
-
addResultsItem
Add one results instance to thisPerFilterSearchResult.- Parameters:
resultsItem- The results that should be added- Returns:
- The same instance of type
PerFilterSearchResult
-
getResults
Get results- Returns:
- results The results of this
PerFilterSearchResultinstance.
-
setResults
Set the results of thisPerFilterSearchResultinstance.- Parameters:
results- The results of thisPerFilterSearchResult
-
getCustomFieldNames
Get the names of the unrecognizable properties of thePerFilterSearchResult.- 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 thisPerFilterSearchResultinstance.- 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 thisPerFilterSearchResultinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisPerFilterSearchResultinstance. 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 newPerFilterSearchResultinstance with all required arguments.
-
toMap()instead.