1.0.0 (latest) 1.0.0-beta01

    public sealed class Criteria : IMessage<Criteria>, IEquatable<Criteria>, IDeepCloneable<Criteria>, IBufferMessage, IMessage

Reference documentation and code samples for the Vision AI v1 API class Criteria.

Filter criteria applied to current search results.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Criteria

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Criteria](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.Criteria), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Criteria](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.Criteria), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Criteria](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.Criteria), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.VisionAI.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1)

## Assembly

Google.Cloud.VisionAI.V1.dll

## Constructors

### Criteria()

    public Criteria()

### Criteria(Criteria)

    public Criteria(Criteria other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.Criteria` |

## Properties

### BoolValue

    public BoolValue BoolValue { get; set; }

A Boolean value.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.BoolValue` |   |

### DateTimeRangeArray

    public DateTimeRangeArray DateTimeRangeArray { get; set; }

The datetime ranges associated with the field.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.DateTimeRangeArray` |   |

### FetchMatchedAnnotations

    public bool FetchMatchedAnnotations { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### Field

    public string Field { get; set; }

The UGA field or ML field to apply filtering criteria.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### FloatRangeArray

    public FloatRangeArray FloatRangeArray { get; set; }

The float ranges associated with the field.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.FloatRangeArray` |   |

### GeoLocationArray

    public GeoLocationArray GeoLocationArray { get; set; }

Geo Location array.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.GeoLocationArray` |   |

### IntRangeArray

    public IntRangeArray IntRangeArray { get; set; }

The integer ranges associated with the field.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.IntRangeArray` |   |

### TextArray

    public StringArray TextArray { get; set; }

The text values associated with the field.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.StringArray` |   |

### ValueCase

    public Criteria.ValueOneofCase ValueCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.Criteriahttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.Criteria.ValueOneofCase` |   |