Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::NearestNeighborQuery::StringFilter (v1.44.0)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::NearestNeighborQuery::StringFilter.
String filter is used to search a subset of the entities by using boolean
rules on string columns.
For example: if a query specifies string filter
with 'name = color, allow_tokens = {red, blue}, deny_tokens = {purple}','
then that query will match entities that are red or blue, but if those
points are also purple, then they will be excluded even if they are
red/blue. Only string filter is supported for now, numeric filter will be
supported in the near future.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#allow_tokens
defallow_tokens()->::Array<::String>
Returns
(::Array<::String>) — Optional. The allowed tokens.
#allow_tokens=
defallow_tokens=(value)->::Array<::String>
Parameter
value (::Array<::String>) — Optional. The allowed tokens.
Returns
(::Array<::String>) — Optional. The allowed tokens.
#deny_tokens
defdeny_tokens()->::Array<::String>
Returns
(::Array<::String>) — Optional. The denied tokens.
#deny_tokens=
defdeny_tokens=(value)->::Array<::String>
Parameter
value (::Array<::String>) — Optional. The denied tokens.
Returns
(::Array<::String>) — Optional. The denied tokens.
#name
defname()->::String
Returns
(::String) — Required. Column names in BigQuery that used as filters.
#name=
defname=(value)->::String
Parameter
value (::String) — Required. Column names in BigQuery that used as filters.
Returns
(::String) — Required. Column names in BigQuery that used as filters.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-06-19 UTC."],[],[]]