# Interface TimeTargetOrBuilder (1.16.5)

1.16.5 (latest) 1.16.2 1.15.21 1.14.8 1.13.8 1.12.22 1.11.2 1.10.0 1.9.4 1.8.0 1.7.1 1.6.3 1.5.5 1.4.12

    public interface TimeTargetOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getEventTime()

    public abstract Timestamp getEventTime()

Request the cursor of the first message with event time greater than or
equal to `event_time`. If messages are missing an event time, the publish
time is used as a fallback. As event times are user supplied, subsequent
messages may have event times less than `event_time` and should be
filtered by the client, if necessary.

`.google.protobuf.Timestamp event_time = 2;`

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

### getEventTimeOrBuilder()

    public abstract TimestampOrBuilder getEventTimeOrBuilder()

Request the cursor of the first message with event time greater than or
equal to `event_time`. If messages are missing an event time, the publish
time is used as a fallback. As event times are user supplied, subsequent
messages may have event times less than `event_time` and should be
filtered by the client, if necessary.

`.google.protobuf.Timestamp event_time = 2;`

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

### getPublishTime()

    public abstract Timestamp getPublishTime()

Request the cursor of the first message with publish time greater than or
equal to `publish_time`. All messages thereafter are guaranteed to have
publish times \>= `publish_time`.

`.google.protobuf.Timestamp publish_time = 1;`

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

### getPublishTimeOrBuilder()

    public abstract TimestampOrBuilder getPublishTimeOrBuilder()

Request the cursor of the first message with publish time greater than or
equal to `publish_time`. All messages thereafter are guaranteed to have
publish times \>= `publish_time`.

`.google.protobuf.Timestamp publish_time = 1;`

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

### getTimeCase()

    public abstract TimeTarget.TimeCase getTimeCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsublite/latest/com.google.cloud.pubsublite.proto.TimeTarget.TimeCase` |   |

### hasEventTime()

    public abstract boolean hasEventTime()

Request the cursor of the first message with event time greater than or
equal to `event_time`. If messages are missing an event time, the publish
time is used as a fallback. As event times are user supplied, subsequent
messages may have event times less than `event_time` and should be
filtered by the client, if necessary.

`.google.protobuf.Timestamp event_time = 2;`

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

### hasPublishTime()

    public abstract boolean hasPublishTime()

Request the cursor of the first message with publish time greater than or
equal to `publish_time`. All messages thereafter are guaranteed to have
publish times \>= `publish_time`.

`.google.protobuf.Timestamp publish_time = 1;`

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