Package com.sap.ai.sdk.grounding.model
Class MetadataResponse
java.lang.Object
com.sap.ai.sdk.grounding.model.MetadataResponse
MetadataResponse
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for MetadataResponse. -
Method Summary
Modifier and TypeMethodDescriptionaddCurrentMetadataItem(MetadataItem currentMetadataItem) Add one currentMetadata instance to thisMetadataResponse.static MetadataResponsecreate()Create a newMetadataResponseinstance.currentMetadata(List<MetadataItem> currentMetadata) Set the currentMetadata of thisMetadataResponseinstance and return the same instance.booleanList of metadata after updates.getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theMetadataResponse.inthashCode()voidsetCurrentMetadata(List<MetadataItem> currentMetadata) Set the currentMetadata of thisMetadataResponseinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisMetadataResponseinstance.toMap()Get the value of all properties of thisMetadataResponseinstance including unrecognized properties.toString()
-
Constructor Details
-
MetadataResponse
protected MetadataResponse()Default constructor for MetadataResponse.
-
-
Method Details
-
currentMetadata
Set the currentMetadata of thisMetadataResponseinstance and return the same instance.- Parameters:
currentMetadata- List of metadata after updates.- Returns:
- The same instance of this
MetadataResponseclass
-
addCurrentMetadataItem
Add one currentMetadata instance to thisMetadataResponse.- Parameters:
currentMetadataItem- The currentMetadata that should be added- Returns:
- The same instance of type
MetadataResponse
-
getCurrentMetadata
List of metadata after updates.- Returns:
- currentMetadata The currentMetadata of this
MetadataResponseinstance.
-
setCurrentMetadata
Set the currentMetadata of thisMetadataResponseinstance.- Parameters:
currentMetadata- List of metadata after updates.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theMetadataResponse.- 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 thisMetadataResponseinstance.- 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 thisMetadataResponseinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisMetadataResponseinstance. 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 newMetadataResponseinstance. No arguments are required.
-
toMap()instead.