Package com.sap.ai.sdk.grounding.model
Class TextSearchRequest
java.lang.Object
com.sap.ai.sdk.grounding.model.TextSearchRequest
TextSearchRequest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for TextSearchRequest. -
Method Summary
Modifier and TypeMethodDescriptionaddFiltersItem(VectorSearchFilter filtersItem) Add one filters instance to thisTextSearchRequest.static TextSearchRequest.Buildercreate()Create a type-safe, fluent-api builder object to construct a newTextSearchRequestinstance with all required arguments.booleanfilters(List<VectorSearchFilter> filters) Set the filters of thisTextSearchRequestinstance and return the same instance.getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theTextSearchRequest.Get filtersgetQuery()Query stringinthashCode()Set the query of thisTextSearchRequestinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisTextSearchRequestinstance.voidsetFilters(List<VectorSearchFilter> filters) Set the filters of thisTextSearchRequestinstance.voidSet the query of thisTextSearchRequestinstance.toMap()Get the value of all properties of thisTextSearchRequestinstance including unrecognized properties.toString()
-
Constructor Details
-
TextSearchRequest
protected TextSearchRequest()Default constructor for TextSearchRequest.
-
-
Method Details
-
query
Set the query of thisTextSearchRequestinstance and return the same instance.- Parameters:
query- Query string- Returns:
- The same instance of this
TextSearchRequestclass
-
getQuery
Query string- Returns:
- query The query of this
TextSearchRequestinstance.
-
setQuery
Set the query of thisTextSearchRequestinstance.- Parameters:
query- Query string
-
filters
Set the filters of thisTextSearchRequestinstance and return the same instance.- Parameters:
filters- The filters of thisTextSearchRequest- Returns:
- The same instance of this
TextSearchRequestclass
-
addFiltersItem
Add one filters instance to thisTextSearchRequest.- Parameters:
filtersItem- The filters that should be added- Returns:
- The same instance of type
TextSearchRequest
-
getFilters
Get filters- Returns:
- filters The filters of this
TextSearchRequestinstance.
-
setFilters
Set the filters of thisTextSearchRequestinstance.- Parameters:
filters- The filters of thisTextSearchRequest
-
getCustomFieldNames
Get the names of the unrecognizable properties of theTextSearchRequest.- 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 thisTextSearchRequestinstance.- 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 thisTextSearchRequestinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisTextSearchRequestinstance. 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 newTextSearchRequestinstance with all required arguments.
-
toMap()instead.