Package com.sap.ai.sdk.grounding.model
Class ScopedKeyValueListPair
java.lang.Object
com.sap.ai.sdk.grounding.model.ScopedKeyValueListPair
ScopedKeyValueListPair
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class.static enumScope of the metadata filter (e.g., collection, document, chunk) -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for ScopedKeyValueListPair. -
Method Summary
Modifier and TypeMethodDescriptionaddValueItem(String valueItem) Add one value instance to thisScopedKeyValueListPair.create()Create a type-safe, fluent-api builder object to construct a newScopedKeyValueListPairinstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theScopedKeyValueListPair.getKey()Get keygetScope()Scope of the metadata filter (e.g., collection, document, chunk)getValue()Get valueinthashCode()Set the key of thisScopedKeyValueListPairinstance and return the same instance.Set the scope of thisScopedKeyValueListPairinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisScopedKeyValueListPairinstance.voidSet the key of thisScopedKeyValueListPairinstance.voidSet the scope of thisScopedKeyValueListPairinstance.voidSet the value of thisScopedKeyValueListPairinstance.toMap()Get the value of all properties of thisScopedKeyValueListPairinstance including unrecognized properties.toString()Set the value of thisScopedKeyValueListPairinstance and return the same instance.
-
Constructor Details
-
ScopedKeyValueListPair
protected ScopedKeyValueListPair()Default constructor for ScopedKeyValueListPair.
-
-
Method Details
-
key
Set the key of thisScopedKeyValueListPairinstance and return the same instance.- Parameters:
key- The key of thisScopedKeyValueListPair- Returns:
- The same instance of this
ScopedKeyValueListPairclass
-
getKey
Get key- Returns:
- key The key of this
ScopedKeyValueListPairinstance.
-
setKey
Set the key of thisScopedKeyValueListPairinstance.- Parameters:
key- The key of thisScopedKeyValueListPair
-
value
Set the value of thisScopedKeyValueListPairinstance and return the same instance.- Parameters:
value- The value of thisScopedKeyValueListPair- Returns:
- The same instance of this
ScopedKeyValueListPairclass
-
addValueItem
Add one value instance to thisScopedKeyValueListPair.- Parameters:
valueItem- The value that should be added- Returns:
- The same instance of type
ScopedKeyValueListPair
-
getValue
Get value- Returns:
- value The value of this
ScopedKeyValueListPairinstance.
-
setValue
Set the value of thisScopedKeyValueListPairinstance.- Parameters:
value- The value of thisScopedKeyValueListPair
-
scope
Set the scope of thisScopedKeyValueListPairinstance and return the same instance.- Parameters:
scope- Scope of the metadata filter (e.g., collection, document, chunk)- Returns:
- The same instance of this
ScopedKeyValueListPairclass
-
getScope
Scope of the metadata filter (e.g., collection, document, chunk)- Returns:
- scope The scope of this
ScopedKeyValueListPairinstance.
-
setScope
Set the scope of thisScopedKeyValueListPairinstance.- Parameters:
scope- Scope of the metadata filter (e.g., collection, document, chunk)
-
getCustomFieldNames
Get the names of the unrecognizable properties of theScopedKeyValueListPair.- 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 thisScopedKeyValueListPairinstance.- 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 thisScopedKeyValueListPairinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisScopedKeyValueListPairinstance. 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 newScopedKeyValueListPairinstance with all required arguments.
-
toMap()instead.