Interface CommitCursorRequestOrBuilder (1.12.22)

public interface CommitCursorRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCursor()

public abstract Cursor getCursor()

The new value for the committed cursor.

.google.cloud.pubsublite.v1.Cursor cursor = 3;

Returns
TypeDescription
Cursor

The cursor.

getCursorOrBuilder()

public abstract CursorOrBuilder getCursorOrBuilder()

The new value for the committed cursor.

.google.cloud.pubsublite.v1.Cursor cursor = 3;

Returns
TypeDescription
CursorOrBuilder

getPartition()

public abstract long getPartition()

The partition for which to update the cursor. Partitions are zero indexed, so partition must be in the range [0, topic.num_partitions).

int64 partition = 2;

Returns
TypeDescription
long

The partition.

getSubscription()

public abstract String getSubscription()

The subscription for which to update the cursor.

string subscription = 1;

Returns
TypeDescription
String

The subscription.

getSubscriptionBytes()

public abstract ByteString getSubscriptionBytes()

The subscription for which to update the cursor.

string subscription = 1;

Returns
TypeDescription
ByteString

The bytes for subscription.

hasCursor()

public abstract boolean hasCursor()

The new value for the committed cursor.

.google.cloud.pubsublite.v1.Cursor cursor = 3;

Returns
TypeDescription
boolean

Whether the cursor field is set.