Package com.sap.ai.sdk.grounding.model
Class DocumentsListResponse
java.lang.Object
com.sap.ai.sdk.grounding.model.DocumentsListResponse
A response containing documents retrieved from the server.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for DocumentsListResponse. -
Method Summary
Modifier and TypeMethodDescriptionaddDocumentsItem(DocumentWithoutChunks documentsItem) Add one documents instance to thisDocumentsListResponse.create()Create a type-safe, fluent-api builder object to construct a newDocumentsListResponseinstance with all required arguments.documents(List<DocumentWithoutChunks> documents) Set the documents of thisDocumentsListResponseinstance and return the same instance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theDocumentsListResponse.Get documentsinthashCode()voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisDocumentsListResponseinstance.voidsetDocuments(List<DocumentWithoutChunks> documents) Set the documents of thisDocumentsListResponseinstance.toMap()Get the value of all properties of thisDocumentsListResponseinstance including unrecognized properties.toString()
-
Constructor Details
-
DocumentsListResponse
protected DocumentsListResponse()Default constructor for DocumentsListResponse.
-
-
Method Details
-
documents
Set the documents of thisDocumentsListResponseinstance and return the same instance.- Parameters:
documents- The documents of thisDocumentsListResponse- Returns:
- The same instance of this
DocumentsListResponseclass
-
addDocumentsItem
@Nonnull public DocumentsListResponse addDocumentsItem(@Nonnull DocumentWithoutChunks documentsItem) Add one documents instance to thisDocumentsListResponse.- Parameters:
documentsItem- The documents that should be added- Returns:
- The same instance of type
DocumentsListResponse
-
getDocuments
Get documents- Returns:
- documents The documents of this
DocumentsListResponseinstance.
-
setDocuments
Set the documents of thisDocumentsListResponseinstance.- Parameters:
documents- The documents of thisDocumentsListResponse
-
getCustomFieldNames
Get the names of the unrecognizable properties of theDocumentsListResponse.- 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 thisDocumentsListResponseinstance.- 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 thisDocumentsListResponseinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisDocumentsListResponseinstance. 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 newDocumentsListResponseinstance with all required arguments.
-
toMap()instead.