# Criteria

- [JSON representation](https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/Criteria#SCHEMA_REPRESENTATION)
- [StringArray](https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/Criteria#StringArray)
  - [JSON representation](https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/Criteria#StringArray.SCHEMA_REPRESENTATION)
- [IntRangeArray](https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/Criteria#IntRangeArray)
  - [JSON representation](https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/Criteria#IntRangeArray.SCHEMA_REPRESENTATION)
- [IntRange](https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/Criteria#IntRange)
  - [JSON representation](https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/Criteria#IntRange.SCHEMA_REPRESENTATION)
- [FloatRangeArray](https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/Criteria#FloatRangeArray)
  - [JSON representation](https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/Criteria#FloatRangeArray.SCHEMA_REPRESENTATION)
- [FloatRange](https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/Criteria#FloatRange)
  - [JSON representation](https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/Criteria#FloatRange.SCHEMA_REPRESENTATION)
- [GeoLocationArray](https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/Criteria#GeoLocationArray)
  - [JSON representation](https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/Criteria#GeoLocationArray.SCHEMA_REPRESENTATION)
- [CircleArea](https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/Criteria#CircleArea)
  - [JSON representation](https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/Criteria#CircleArea.SCHEMA_REPRESENTATION)
- [BoolValue](https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/Criteria#BoolValue)
  - [JSON representation](https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/Criteria#BoolValue.SCHEMA_REPRESENTATION)

Filter criteria applied to current search results.

| JSON representation |
|---|
| ``` { "field": string, "fetchMatchedAnnotations": boolean, // Union field `value` can be only one of the following: "textArray": { object (`https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/Criteria#StringArray`) }, "intRangeArray": { object (`https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/Criteria#IntRangeArray`) }, "floatRangeArray": { object (`https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/Criteria#FloatRangeArray`) }, "dateTimeRangeArray": { object (`https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/DateTimeRangeArray`) }, "geoLocationArray": { object (`https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/Criteria#GeoLocationArray`) }, "boolValue": { object (`https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/Criteria#BoolValue`) } // End of list of possible types for union field `value`. } ``` |

| Fields ||
|---|---|
| `field` | `string` The UGA field or ML field to apply filtering criteria. |
| `fetchMatchedAnnotations` | `boolean` If true, return query matched annotations for this criteria. This option is only applicable for inclusion criteria, i.e., not exclusion criteria, with partition level annotations. It supports the following data types: - INTEGER - FLOAT - STRING (DataSchema.SearchStrategy.EXACT_SEARCH only) - BOOLEAN |
| Union field `value`. `value` can be only one of the following: ||
| `textArray` | ``object (`https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/Criteria#StringArray`)`` The text values associated with the field. |
| `intRangeArray` | ``object (`https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/Criteria#IntRangeArray`)`` The integer ranges associated with the field. |
| `floatRangeArray` | ``object (`https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/Criteria#FloatRangeArray`)`` The float ranges associated with the field. |
| `dateTimeRangeArray` | ``object (`https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/DateTimeRangeArray`)`` The datetime ranges associated with the field. |
| `geoLocationArray` | ``object (`https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/Criteria#GeoLocationArray`)`` Geo Location array. |
| `boolValue` | ``object (`https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/Criteria#BoolValue`)`` A Boolean value. |

## StringArray

A list of string-type values.

| JSON representation |
|---|
| ``` { "txtValues": [ string ] } ``` |

| Fields ||
|---|---|
| `txtValues[]` | `string` String type values. |

## IntRangeArray

A list of integer range values.

| JSON representation |
|---|
| ``` { "intRanges": [ { object (`https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/Criteria#IntRange`) } ] } ``` |

| Fields ||
|---|---|
| `intRanges[]` | ``object (`https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/Criteria#IntRange`)`` Int range values. |

## IntRange

Integer range type.

| JSON representation |
|---|
| ``` { "start": string, "end": string } ``` |

| Fields ||
|---|---|
| `start` | `string (https://developers.google.com/discovery/v1/type-format format)` Start of the int range. |
| `end` | `string (https://developers.google.com/discovery/v1/type-format format)` End of the int range. |

## FloatRangeArray

A list of float range values.

| JSON representation |
|---|
| ``` { "floatRanges": [ { object (`https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/Criteria#FloatRange`) } ] } ``` |

| Fields ||
|---|---|
| `floatRanges[]` | ``object (`https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/Criteria#FloatRange`)`` Float range values. |

## FloatRange

Float range type.

| JSON representation |
|---|
| ``` { "start": number, "end": number } ``` |

| Fields ||
|---|---|
| `start` | `number` Start of the float range. |
| `end` | `number` End of the float range. |

## GeoLocationArray

A list of locations.

| JSON representation |
|---|
| ``` { "circleAreas": [ { object (`https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/Criteria#CircleArea`) } ] } ``` |

| Fields ||
|---|---|
| `circleAreas[]` | ``object (`https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/Criteria#CircleArea`)`` A list of circle areas. |

## CircleArea

Representation of a circle area.

| JSON representation |
|---|
| ``` { "latitude": number, "longitude": number, "radiusMeter": number } ``` |

| Fields ||
|---|---|
| `latitude` | `number` Latitude of circle area's center. Degrees \[-90 .. 90\] |
| `longitude` | `number` Longitude of circle area's center. Degrees \[-180 .. 180\] |
| `radiusMeter` | `number` Radius of the circle area in meters. |

## BoolValue

| JSON representation |
|---|
| ``` { "value": boolean } ``` |

| Fields ||
|---|---|
| `value` | `boolean` |