Package com.sap.ai.sdk.grounding.model
Class VectorSearchDocumentKeyValueListPair
java.lang.Object
com.sap.ai.sdk.grounding.model.VectorSearchDocumentKeyValueListPair
VectorSearchDocumentKeyValueListPair
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for VectorSearchDocumentKeyValueListPair. -
Method Summary
Modifier and TypeMethodDescriptionaddSelectModeItem(VectorSearchSelectOptionEnum selectModeItem) Add one selectMode instance to thisVectorSearchDocumentKeyValueListPair.addValueItem(String valueItem) Add one value instance to thisVectorSearchDocumentKeyValueListPair.create()Create a type-safe, fluent-api builder object to construct a newVectorSearchDocumentKeyValueListPairinstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theVectorSearchDocumentKeyValueListPair.getKey()Get keySelect mode for search filtersgetValue()Get valueinthashCode()Set the key of thisVectorSearchDocumentKeyValueListPairinstance and return the same instance.selectMode(List<VectorSearchSelectOptionEnum> selectMode) Set the selectMode of thisVectorSearchDocumentKeyValueListPairinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisVectorSearchDocumentKeyValueListPairinstance.voidSet the key of thisVectorSearchDocumentKeyValueListPairinstance.voidsetSelectMode(List<VectorSearchSelectOptionEnum> selectMode) Set the selectMode of thisVectorSearchDocumentKeyValueListPairinstance.voidSet the value of thisVectorSearchDocumentKeyValueListPairinstance.toMap()Get the value of all properties of thisVectorSearchDocumentKeyValueListPairinstance including unrecognized properties.toString()Set the value of thisVectorSearchDocumentKeyValueListPairinstance and return the same instance.
-
Constructor Details
-
VectorSearchDocumentKeyValueListPair
protected VectorSearchDocumentKeyValueListPair()Default constructor for VectorSearchDocumentKeyValueListPair.
-
-
Method Details
-
key
Set the key of thisVectorSearchDocumentKeyValueListPairinstance and return the same instance.- Parameters:
key- The key of thisVectorSearchDocumentKeyValueListPair- Returns:
- The same instance of this
VectorSearchDocumentKeyValueListPairclass
-
getKey
Get key- Returns:
- key The key of this
VectorSearchDocumentKeyValueListPairinstance.
-
setKey
Set the key of thisVectorSearchDocumentKeyValueListPairinstance.- Parameters:
key- The key of thisVectorSearchDocumentKeyValueListPair
-
value
Set the value of thisVectorSearchDocumentKeyValueListPairinstance and return the same instance.- Parameters:
value- The value of thisVectorSearchDocumentKeyValueListPair- Returns:
- The same instance of this
VectorSearchDocumentKeyValueListPairclass
-
addValueItem
Add one value instance to thisVectorSearchDocumentKeyValueListPair.- Parameters:
valueItem- The value that should be added- Returns:
- The same instance of type
VectorSearchDocumentKeyValueListPair
-
getValue
Get value- Returns:
- value The value of this
VectorSearchDocumentKeyValueListPairinstance.
-
setValue
Set the value of thisVectorSearchDocumentKeyValueListPairinstance.- Parameters:
value- The value of thisVectorSearchDocumentKeyValueListPair
-
selectMode
@Nonnull public VectorSearchDocumentKeyValueListPair selectMode(@Nullable List<VectorSearchSelectOptionEnum> selectMode) Set the selectMode of thisVectorSearchDocumentKeyValueListPairinstance and return the same instance.- Parameters:
selectMode- Select mode for search filters- Returns:
- The same instance of this
VectorSearchDocumentKeyValueListPairclass
-
addSelectModeItem
@Nonnull public VectorSearchDocumentKeyValueListPair addSelectModeItem(@Nonnull VectorSearchSelectOptionEnum selectModeItem) Add one selectMode instance to thisVectorSearchDocumentKeyValueListPair.- Parameters:
selectModeItem- The selectMode that should be added- Returns:
- The same instance of type
VectorSearchDocumentKeyValueListPair
-
getSelectMode
Select mode for search filters- Returns:
- selectMode The selectMode of this
VectorSearchDocumentKeyValueListPairinstance.
-
setSelectMode
Set the selectMode of thisVectorSearchDocumentKeyValueListPairinstance.- Parameters:
selectMode- Select mode for search filters
-
getCustomFieldNames
Get the names of the unrecognizable properties of theVectorSearchDocumentKeyValueListPair.- 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 thisVectorSearchDocumentKeyValueListPairinstance.- 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 thisVectorSearchDocumentKeyValueListPairinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisVectorSearchDocumentKeyValueListPairinstance. 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 newVectorSearchDocumentKeyValueListPairinstance with all required arguments.
-
toMap()instead.