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