# Interface PropertyFilterOrBuilder (3.1.0)

3.1.0 (latest) 2.40.0 2.37.0 2.36.0 2.34.0 2.33.3 2.32.3 2.31.4 2.30.0 2.29.1 2.28.2 2.27.1 2.26.4 2.25.2 2.24.3 2.23.0 2.22.0 2.21.3 2.20.2 2.19.2 2.18.5 2.17.6

    public interface PropertyFilterOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getOp()

    public abstract PropertyFilter.Operator getOp()

The operator to filter by.

`.google.datastore.v1.PropertyFilter.Operator op = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.datastore.v1.PropertyFilter.Operator` | The op. |

### getOpValue()

    public abstract int getOpValue()

The operator to filter by.

`.google.datastore.v1.PropertyFilter.Operator op = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for op. |

### getProperty()

    public abstract PropertyReference getProperty()

The property to filter by.

`.google.datastore.v1.PropertyReference property = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.datastore.v1.PropertyReference` | The property. |

### getPropertyOrBuilder()

    public abstract PropertyReferenceOrBuilder getPropertyOrBuilder()

The property to filter by.

`.google.datastore.v1.PropertyReference property = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.datastore.v1.PropertyReferenceOrBuilder` |   |

### getValue()

    public abstract Value getValue()

The value to compare the property to.

`.google.datastore.v1.Value value = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.datastore.v1.Value` | The value. |

### getValueOrBuilder()

    public abstract ValueOrBuilder getValueOrBuilder()

The value to compare the property to.

`.google.datastore.v1.Value value = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.datastore.v1.ValueOrBuilder` |   |

### hasProperty()

    public abstract boolean hasProperty()

The property to filter by.

`.google.datastore.v1.PropertyReference property = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the property field is set. |

### hasValue()

    public abstract boolean hasValue()

The value to compare the property to.

`.google.datastore.v1.Value value = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the value field is set. |