# Interface EntityResultOrBuilder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastore.v1.EntityResultOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.datastore.v1.EntityResultOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.datastore.v1.EntityResultOrBuilder)

    public interface EntityResultOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getCreateTime()

    public abstract Timestamp getCreateTime()

The time at which the entity was created.
This field is set for
`FULL` entity results.
If this entity is missing, this field will not be set.

`.google.protobuf.Timestamp create_time = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The createTime. |

### getCreateTimeOrBuilder()

    public abstract TimestampOrBuilder getCreateTimeOrBuilder()

The time at which the entity was created.
This field is set for
`FULL` entity results.
If this entity is missing, this field will not be set.

`.google.protobuf.Timestamp create_time = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getCursor()

    public abstract ByteString getCursor()

A cursor that points to the position after the result entity.
Set only when the `EntityResult` is part of a `QueryResultBatch` message.

`bytes cursor = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The cursor. |

### getEntity()

    public abstract Entity getEntity()

The resulting entity.

`.google.events.cloud.datastore.v1.Entity entity = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastore.v1.Entity` | The entity. |

### getEntityOrBuilder()

    public abstract EntityOrBuilder getEntityOrBuilder()

The resulting entity.

`.google.events.cloud.datastore.v1.Entity entity = 1;`

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

### getUpdateTime()

    public abstract Timestamp getUpdateTime()

The time at which the entity was last changed.
This field is set for
`FULL` entity results.
If this entity is missing, this field will not be set.

`.google.protobuf.Timestamp update_time = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The updateTime. |

### getUpdateTimeOrBuilder()

    public abstract TimestampOrBuilder getUpdateTimeOrBuilder()

The time at which the entity was last changed.
This field is set for
`FULL` entity results.
If this entity is missing, this field will not be set.

`.google.protobuf.Timestamp update_time = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getVersion()

    public abstract long getVersion()

The version of the entity, a strictly positive number that monotonically
increases with changes to the entity.
This field is set for
`FULL` entity results.
For missing entities in
`LookupResponse`, this is the version of the snapshot that was used to look
up the entity, and it is always set except for eventually consistent reads.

`int64 version = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The version. |

### hasCreateTime()

    public abstract boolean hasCreateTime()

The time at which the entity was created.
This field is set for
`FULL` entity results.
If this entity is missing, this field will not be set.

`.google.protobuf.Timestamp create_time = 6;`

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

### hasEntity()

    public abstract boolean hasEntity()

The resulting entity.

`.google.events.cloud.datastore.v1.Entity entity = 1;`

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

### hasUpdateTime()

    public abstract boolean hasUpdateTime()

The time at which the entity was last changed.
This field is set for
`FULL` entity results.
If this entity is missing, this field will not be set.

`.google.protobuf.Timestamp update_time = 5;`

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