# Cloud Firestore V1 Client - Class Operator (2.2.0-RC1)

2.2.0-RC1 2.1.0 (latest) 2.0.2-RC1 1.55.0 1.54.4 1.53.1 1.52.0 1.51.0 1.50.0 1.48.1 1.47.3 1.46.0 1.45.2 1.44.1 1.43.3 1.40.0 1.39.0 1.38.0 1.37.7 1.36.1 1.35.0 1.34.0 1.33.0 1.32.0 1.31.0 1.30.0 1.28.0 1.27.3 Reference documentation and code samples for the Cloud Firestore V1 Client class Operator.

A field filter operator.

Protobuf type `google.firestore.v1.StructuredQuery.FieldFilter.Operator`

## Namespace

Google \\ Cloud \\ Firestore \\ V1 \\ StructuredQuery \\ FieldFilter

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### OPERATOR_UNSPECIFIED

    Value: 0

Unspecified. This value must not be used.

Generated from protobuf enum `OPERATOR_UNSPECIFIED = 0;`

### LESS_THAN

    Value: 1

The given `field` is less than the given `value`.

Requires:

- That `field` come first in `order_by`.

Generated from protobuf enum `LESS_THAN = 1;`

### LESS_THAN_OR_EQUAL

    Value: 2

The given `field` is less than or equal to the given `value`.

Requires:

- That `field` come first in `order_by`.

Generated from protobuf enum `LESS_THAN_OR_EQUAL = 2;`

### GREATER_THAN

    Value: 3

The given `field` is greater than the given `value`.

Requires:

- That `field` come first in `order_by`.

Generated from protobuf enum `GREATER_THAN = 3;`

### GREATER_THAN_OR_EQUAL

    Value: 4

The given `field` is greater than or equal to the given `value`.

Requires:

- That `field` come first in `order_by`.

Generated from protobuf enum `GREATER_THAN_OR_EQUAL = 4;`

### EQUAL

    Value: 5

The given `field` is equal to the given `value`.

Generated from protobuf enum `EQUAL = 5;`

### NOT_EQUAL

    Value: 6

The given `field` is not equal to the given `value`.

Requires:

- No other `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`.
- That `field` comes first in the `order_by`.

Generated from protobuf enum `NOT_EQUAL = 6;`

### ARRAY_CONTAINS

    Value: 7

The given `field` is an array that contains the given `value`.

Generated from protobuf enum `ARRAY_CONTAINS = 7;`

### IN

    Value: 8

The given `field` is equal to at least one value in the given array.

Requires:

- That `value` is a non-empty `ArrayValue`, subject to disjunction limits.
- No `NOT_IN` filters in the same query.

Generated from protobuf enum `IN = 8;`

### ARRAY_CONTAINS_ANY

    Value: 9

The given `field` is an array that contains any of the values in the
given array.

Requires:

- That `value` is a non-empty `ArrayValue`, subject to disjunction limits.
- No other `ARRAY_CONTAINS_ANY` filters within the same disjunction.
- No `NOT_IN` filters in the same query.

Generated from protobuf enum `ARRAY_CONTAINS_ANY = 9;`

### NOT_IN

    Value: 10

The value of the `field` is not in the given array.

Requires:

- That `value` is a non-empty `ArrayValue` with at most 10 values.
- No other `OR`, `IN`, `ARRAY_CONTAINS_ANY`, `NOT_IN`, `NOT_EQUAL`, `IS_NOT_NULL`, or `IS_NOT_NAN`.
- That `field` comes first in the `order_by`.

Generated from protobuf enum `NOT_IN = 10;`