Interface InitialSubscribeRequestOrBuilder (1.13.8)

public interface InitialSubscribeRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getInitialLocation()

public abstract SeekRequest getInitialLocation()

Optional. Initial target location within the message backlog. If not set, messages will be delivered from the commit cursor for the given subscription and partition.

.google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SeekRequest

The initialLocation.

getInitialLocationOrBuilder()

public abstract SeekRequestOrBuilder getInitialLocationOrBuilder()

Optional. Initial target location within the message backlog. If not set, messages will be delivered from the commit cursor for the given subscription and partition.

.google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SeekRequestOrBuilder

getPartition()

public abstract long getPartition()

The partition from which to receive messages. Partitions are zero indexed, so partition must be in the range [0, topic.num_partitions).

int64 partition = 2;

Returns
Type Description
long

The partition.

getSubscription()

public abstract String getSubscription()

The subscription from which to receive messages.

string subscription = 1;

Returns
Type Description
String

The subscription.

getSubscriptionBytes()

public abstract ByteString getSubscriptionBytes()

The subscription from which to receive messages.

string subscription = 1;

Returns
Type Description
ByteString

The bytes for subscription.

hasInitialLocation()

public abstract boolean hasInitialLocation()

Optional. Initial target location within the message backlog. If not set, messages will be delivered from the commit cursor for the given subscription and partition.

.google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the initialLocation field is set.