Interface ComputeTimeCursorRequestOrBuilder (1.11.2)

public interface ComputeTimeCursorRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getPartition()

public abstract long getPartition()

Required. The partition for which we should compute the cursor.

int64 partition = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
long

The partition.

getTarget()

public abstract TimeTarget getTarget()

Required. The target publish or event time. Specifying a future time will return an unset cursor.

.google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
TimeTarget

The target.

getTargetOrBuilder()

public abstract TimeTargetOrBuilder getTargetOrBuilder()

Required. The target publish or event time. Specifying a future time will return an unset cursor.

.google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
TimeTargetOrBuilder

getTopic()

public abstract String getTopic()

Required. The topic for which we should compute the cursor.

string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The topic.

getTopicBytes()

public abstract ByteString getTopicBytes()

Required. The topic for which we should compute the cursor.

string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for topic.

hasTarget()

public abstract boolean hasTarget()

Required. The target publish or event time. Specifying a future time will return an unset cursor.

.google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the target field is set.