Package com.sap.ai.sdk.grounding.model
Class RetrievalVectorSearchFilterFilter
java.lang.Object
com.sap.ai.sdk.grounding.model.RetrievalVectorSearchFilterFilter
Filter to apply on the search results. This cannot be used together with
'documentMetadata'. The depth of the filter must not exceed 5 levels.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class.static enumGets or Sets operatorstatic enumGets or Sets scope -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for RetrievalVectorSearchFilterFilter. -
Method Summary
Modifier and TypeMethodDescriptionaddValueItem(String valueItem) Add one value instance to thisRetrievalVectorSearchFilterFilter.create()Create a type-safe, fluent-api builder object to construct a newRetrievalVectorSearchFilterFilterinstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theRetrievalVectorSearchFilterFilter.getKey()Get keygetLeft()Get leftGet operatorgetRight()Get rightgetScope()Get scopegetValue()Get valueinthashCode()Set the key of thisRetrievalVectorSearchFilterFilterinstance and return the same instance.Set the left of thisRetrievalVectorSearchFilterFilterinstance and return the same instance.Set the operator of thisRetrievalVectorSearchFilterFilterinstance and return the same instance.Set the right of thisRetrievalVectorSearchFilterFilterinstance and return the same instance.Set the scope of thisRetrievalVectorSearchFilterFilterinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisRetrievalVectorSearchFilterFilterinstance.voidSet the key of thisRetrievalVectorSearchFilterFilterinstance.voidSet the left of thisRetrievalVectorSearchFilterFilterinstance.voidSet the operator of thisRetrievalVectorSearchFilterFilterinstance.voidSet the right of thisRetrievalVectorSearchFilterFilterinstance.voidSet the scope of thisRetrievalVectorSearchFilterFilterinstance.voidSet the value of thisRetrievalVectorSearchFilterFilterinstance.toMap()Get the value of all properties of thisRetrievalVectorSearchFilterFilterinstance including unrecognized properties.toString()Set the value of thisRetrievalVectorSearchFilterFilterinstance and return the same instance.
-
Constructor Details
-
RetrievalVectorSearchFilterFilter
protected RetrievalVectorSearchFilterFilter()Default constructor for RetrievalVectorSearchFilterFilter.
-
-
Method Details
-
operator
@Nonnull public RetrievalVectorSearchFilterFilter operator(@Nonnull RetrievalVectorSearchFilterFilter.OperatorEnum operator) Set the operator of thisRetrievalVectorSearchFilterFilterinstance and return the same instance.- Parameters:
operator- The operator of thisRetrievalVectorSearchFilterFilter- Returns:
- The same instance of this
RetrievalVectorSearchFilterFilterclass
-
getOperator
Get operator- Returns:
- operator The operator of this
RetrievalVectorSearchFilterFilterinstance.
-
setOperator
Set the operator of thisRetrievalVectorSearchFilterFilterinstance.- Parameters:
operator- The operator of thisRetrievalVectorSearchFilterFilter
-
left
Set the left of thisRetrievalVectorSearchFilterFilterinstance and return the same instance.- Parameters:
left- The left of thisRetrievalVectorSearchFilterFilter- Returns:
- The same instance of this
RetrievalVectorSearchFilterFilterclass
-
getLeft
Get left- Returns:
- left The left of this
RetrievalVectorSearchFilterFilterinstance.
-
setLeft
Set the left of thisRetrievalVectorSearchFilterFilterinstance.- Parameters:
left- The left of thisRetrievalVectorSearchFilterFilter
-
right
Set the right of thisRetrievalVectorSearchFilterFilterinstance and return the same instance.- Parameters:
right- The right of thisRetrievalVectorSearchFilterFilter- Returns:
- The same instance of this
RetrievalVectorSearchFilterFilterclass
-
getRight
Get right- Returns:
- right The right of this
RetrievalVectorSearchFilterFilterinstance.
-
setRight
Set the right of thisRetrievalVectorSearchFilterFilterinstance.- Parameters:
right- The right of thisRetrievalVectorSearchFilterFilter
-
key
Set the key of thisRetrievalVectorSearchFilterFilterinstance and return the same instance.- Parameters:
key- The key of thisRetrievalVectorSearchFilterFilter- Returns:
- The same instance of this
RetrievalVectorSearchFilterFilterclass
-
getKey
Get key- Returns:
- key The key of this
RetrievalVectorSearchFilterFilterinstance.
-
setKey
Set the key of thisRetrievalVectorSearchFilterFilterinstance.- Parameters:
key- The key of thisRetrievalVectorSearchFilterFilter
-
value
Set the value of thisRetrievalVectorSearchFilterFilterinstance and return the same instance.- Parameters:
value- The value of thisRetrievalVectorSearchFilterFilter- Returns:
- The same instance of this
RetrievalVectorSearchFilterFilterclass
-
addValueItem
Add one value instance to thisRetrievalVectorSearchFilterFilter.- Parameters:
valueItem- The value that should be added- Returns:
- The same instance of type
RetrievalVectorSearchFilterFilter
-
getValue
Get value- Returns:
- value The value of this
RetrievalVectorSearchFilterFilterinstance.
-
setValue
Set the value of thisRetrievalVectorSearchFilterFilterinstance.- Parameters:
value- The value of thisRetrievalVectorSearchFilterFilter
-
scope
@Nonnull public RetrievalVectorSearchFilterFilter scope(@Nullable RetrievalVectorSearchFilterFilter.ScopeEnum scope) Set the scope of thisRetrievalVectorSearchFilterFilterinstance and return the same instance.- Parameters:
scope- The scope of thisRetrievalVectorSearchFilterFilter- Returns:
- The same instance of this
RetrievalVectorSearchFilterFilterclass
-
getScope
Get scope- Returns:
- scope The scope of this
RetrievalVectorSearchFilterFilterinstance.
-
setScope
Set the scope of thisRetrievalVectorSearchFilterFilterinstance.- Parameters:
scope- The scope of thisRetrievalVectorSearchFilterFilter
-
getCustomFieldNames
Get the names of the unrecognizable properties of theRetrievalVectorSearchFilterFilter.- 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 thisRetrievalVectorSearchFilterFilterinstance.- 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 thisRetrievalVectorSearchFilterFilterinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisRetrievalVectorSearchFilterFilterinstance. 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 newRetrievalVectorSearchFilterFilterinstance with all required arguments.
-
toMap()instead.