Package com.sap.ai.sdk.grounding.model
Class DocumentMetadataBatchRequest
java.lang.Object
com.sap.ai.sdk.grounding.model.DocumentMetadataBatchRequest
DocumentMetadataBatchRequest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for DocumentMetadataBatchRequest. -
Method Summary
Modifier and TypeMethodDescriptionaddValueItem(DocumentMetadataUpdate valueItem) Add one value instance to thisDocumentMetadataBatchRequest.create()Create a type-safe, fluent-api builder object to construct a newDocumentMetadataBatchRequestinstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theDocumentMetadataBatchRequest.getValue()List of document metadata updates to be applied in batch.inthashCode()voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisDocumentMetadataBatchRequestinstance.voidsetValue(List<DocumentMetadataUpdate> value) Set the value of thisDocumentMetadataBatchRequestinstance.toMap()Get the value of all properties of thisDocumentMetadataBatchRequestinstance including unrecognized properties.toString()value(List<DocumentMetadataUpdate> value) Set the value of thisDocumentMetadataBatchRequestinstance and return the same instance.
-
Constructor Details
-
DocumentMetadataBatchRequest
protected DocumentMetadataBatchRequest()Default constructor for DocumentMetadataBatchRequest.
-
-
Method Details
-
value
Set the value of thisDocumentMetadataBatchRequestinstance and return the same instance.- Parameters:
value- List of document metadata updates to be applied in batch.- Returns:
- The same instance of this
DocumentMetadataBatchRequestclass
-
addValueItem
@Nonnull public DocumentMetadataBatchRequest addValueItem(@Nonnull DocumentMetadataUpdate valueItem) Add one value instance to thisDocumentMetadataBatchRequest.- Parameters:
valueItem- The value that should be added- Returns:
- The same instance of type
DocumentMetadataBatchRequest
-
getValue
List of document metadata updates to be applied in batch.- Returns:
- value The value of this
DocumentMetadataBatchRequestinstance.
-
setValue
Set the value of thisDocumentMetadataBatchRequestinstance.- Parameters:
value- List of document metadata updates to be applied in batch.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theDocumentMetadataBatchRequest.- 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 thisDocumentMetadataBatchRequestinstance.- 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 thisDocumentMetadataBatchRequestinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisDocumentMetadataBatchRequestinstance. 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 newDocumentMetadataBatchRequestinstance with all required arguments.
-
toMap()instead.