ExamplesArrayFilter Stay organized with collections Save and categorize content based on your preferences.
Filters for examples' array metadata fields. An array field is example metadata where multiple values are attributed to a single example.
values[]stringRequired. The values by which to filter examples.
arrayOperatorenum (ArrayOperator)Required. The operator logic to use for filtering.
| JSON representation |
|---|
{"values":[string],"arrayOperator":enum ( |
ArrayOperator
The logic to use for filtering.
| Enums | |
|---|---|
ARRAY_OPERATOR_UNSPECIFIED | Not specified. This value should not be used. |
CONTAINS_ANY | The metadata array field in the example must contain at least one of the values. |
CONTAINS_ALL | The 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.