Package com.sap.ai.sdk.grounding.model
Class MetadataUpdateItem
java.lang.Object
com.sap.ai.sdk.grounding.model.MetadataUpdateItem
MetadataUpdateItem
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for MetadataUpdateItem. -
Method Summary
Modifier and TypeMethodDescriptionaddIdsItem(UUID idsItem) Add one ids instance to thisMetadataUpdateItem.addMetadataUpdatesItem(MetadataKeyUpdate metadataUpdatesItem) Add one metadataUpdates instance to thisMetadataUpdateItem.static MetadataUpdateItem.Buildercreate()Create a type-safe, fluent-api builder object to construct a newMetadataUpdateIteminstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theMetadataUpdateItem.getIds()List of collection or document or chunk ids for which the metadata should be updatedList of metadata updates for the given resource idsinthashCode()Set the ids of thisMetadataUpdateIteminstance and return the same instance.metadataUpdates(List<MetadataKeyUpdate> metadataUpdates) Set the metadataUpdates of thisMetadataUpdateIteminstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisMetadataUpdateIteminstance.voidSet the ids of thisMetadataUpdateIteminstance.voidsetMetadataUpdates(List<MetadataKeyUpdate> metadataUpdates) Set the metadataUpdates of thisMetadataUpdateIteminstance.toMap()Get the value of all properties of thisMetadataUpdateIteminstance including unrecognized properties.toString()
-
Constructor Details
-
MetadataUpdateItem
protected MetadataUpdateItem()Default constructor for MetadataUpdateItem.
-
-
Method Details
-
ids
Set the ids of thisMetadataUpdateIteminstance and return the same instance.- Parameters:
ids- List of collection or document or chunk ids for which the metadata should be updated- Returns:
- The same instance of this
MetadataUpdateItemclass
-
addIdsItem
Add one ids instance to thisMetadataUpdateItem.- Parameters:
idsItem- The ids that should be added- Returns:
- The same instance of type
MetadataUpdateItem
-
getIds
List of collection or document or chunk ids for which the metadata should be updated- Returns:
- ids The ids of this
MetadataUpdateIteminstance.
-
setIds
Set the ids of thisMetadataUpdateIteminstance.- Parameters:
ids- List of collection or document or chunk ids for which the metadata should be updated
-
metadataUpdates
@Nonnull public MetadataUpdateItem metadataUpdates(@Nonnull List<MetadataKeyUpdate> metadataUpdates) Set the metadataUpdates of thisMetadataUpdateIteminstance and return the same instance.- Parameters:
metadataUpdates- List of metadata updates for the given resource ids- Returns:
- The same instance of this
MetadataUpdateItemclass
-
addMetadataUpdatesItem
@Nonnull public MetadataUpdateItem addMetadataUpdatesItem(@Nonnull MetadataKeyUpdate metadataUpdatesItem) Add one metadataUpdates instance to thisMetadataUpdateItem.- Parameters:
metadataUpdatesItem- The metadataUpdates that should be added- Returns:
- The same instance of type
MetadataUpdateItem
-
getMetadataUpdates
List of metadata updates for the given resource ids- Returns:
- metadataUpdates The metadataUpdates of this
MetadataUpdateIteminstance.
-
setMetadataUpdates
Set the metadataUpdates of thisMetadataUpdateIteminstance.- Parameters:
metadataUpdates- List of metadata updates for the given resource ids
-
getCustomFieldNames
Get the names of the unrecognizable properties of theMetadataUpdateItem.- 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 thisMetadataUpdateIteminstance.- 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 thisMetadataUpdateIteminstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisMetadataUpdateIteminstance. 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 newMetadataUpdateIteminstance with all required arguments.
-
toMap()instead.