Package com.sap.ai.sdk.grounding.model
Class DocumentMetadataUpdate
java.lang.Object
com.sap.ai.sdk.grounding.model.DocumentMetadataUpdate
- All Implemented Interfaces:
BatchUpdateDocumentsResponseInner
DocumentMetadataUpdate
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for DocumentMetadataUpdate. -
Method Summary
Modifier and TypeMethodDescriptionaddMetadataItem(DocumentMetadata metadataItem) Add one metadata instance to thisDocumentMetadataUpdate.create()Create a type-safe, fluent-api builder object to construct a newDocumentMetadataUpdateinstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theDocumentMetadataUpdate.getId()Unique identifier of the document to update.Metadata updates for this document.inthashCode()Set the id of thisDocumentMetadataUpdateinstance and return the same instance.metadata(List<DocumentMetadata> metadata) Set the metadata of thisDocumentMetadataUpdateinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisDocumentMetadataUpdateinstance.voidSet the id of thisDocumentMetadataUpdateinstance.voidsetMetadata(List<DocumentMetadata> metadata) Set the metadata of thisDocumentMetadataUpdateinstance.toMap()Get the value of all properties of thisDocumentMetadataUpdateinstance including unrecognized properties.toString()
-
Constructor Details
-
DocumentMetadataUpdate
protected DocumentMetadataUpdate()Default constructor for DocumentMetadataUpdate.
-
-
Method Details
-
id
Set the id of thisDocumentMetadataUpdateinstance and return the same instance.- Parameters:
id- Unique identifier of the document to update.- Returns:
- The same instance of this
DocumentMetadataUpdateclass
-
getId
Unique identifier of the document to update.- Returns:
- id The id of this
DocumentMetadataUpdateinstance.
-
setId
Set the id of thisDocumentMetadataUpdateinstance.- Parameters:
id- Unique identifier of the document to update.
-
metadata
Set the metadata of thisDocumentMetadataUpdateinstance and return the same instance.- Parameters:
metadata- Metadata updates for this document.- Returns:
- The same instance of this
DocumentMetadataUpdateclass
-
addMetadataItem
Add one metadata instance to thisDocumentMetadataUpdate.- Parameters:
metadataItem- The metadata that should be added- Returns:
- The same instance of type
DocumentMetadataUpdate
-
getMetadata
Metadata updates for this document.- Returns:
- metadata The metadata of this
DocumentMetadataUpdateinstance.
-
setMetadata
Set the metadata of thisDocumentMetadataUpdateinstance.- Parameters:
metadata- Metadata updates for this document.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theDocumentMetadataUpdate.- 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 thisDocumentMetadataUpdateinstance.- 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 thisDocumentMetadataUpdateinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisDocumentMetadataUpdateinstance. 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 newDocumentMetadataUpdateinstance with all required arguments.
-
toMap()instead.