ExamplesArrayFilter

Filters for examples' array metadata fields. An array field is example metadata where multiple values are attributed to a single example.

Fields
values[]string

Required. The values by which to filter examples.

arrayOperatorenum (ArrayOperator)

Required. The operator logic to use for filtering.

JSON representation
{"values":[string],"arrayOperator":enum (ArrayOperator)}

ArrayOperator

The logic to use for filtering.

Enums
ARRAY_OPERATOR_UNSPECIFIEDNot specified. This value should not be used.
CONTAINS_ANYThe metadata array field in the example must contain at least one of the values.
CONTAINS_ALLThe metadata array field in the example must contain all of the values.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-06-27 UTC.