2.2.0 (latest) 2.0.6 1.34.2 1.33.1 1.32.3 1.31.0 1.30.0 1.29.2 1.28.2 1.26.0 1.25.0 1.24.4 1.23.0 1.22.1 1.21.2 1.19.0 1.18.1 1.17.1 Reference documentation and code samples for the Cloud Datastore V1 Client class PropertyFilter.

A filter on a specific property.

Generated from protobuf message `google.datastore.v1.PropertyFilter`

## Namespace

Google \\ Cloud \\ Datastore \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ property` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastore/latest/V1.PropertyReference` The property to filter by. |
| `↳ op` | `int` The operator to filter by. |
| `↳ value` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastore/latest/V1.Value` The value to compare the property to. |

### getProperty

The property to filter by.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datastore/latest/V1.PropertyReference|null` |   |

### hasProperty

### clearProperty

### setProperty

The property to filter by.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastore/latest/V1.PropertyReference` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getOp

The operator to filter by.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Operator](https://docs.cloud.google.com/php/docs/reference/cloud-datastore/latest/V1.PropertyFilter.Operator). |

### setOp

The operator to filter by.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Operator](https://docs.cloud.google.com/php/docs/reference/cloud-datastore/latest/V1.PropertyFilter.Operator). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getValue

The value to compare the property to.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datastore/latest/V1.Value|null` |   |

### hasValue

### clearValue

### setValue

The value to compare the property to.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastore/latest/V1.Value` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |