Interface InitialSubscribeRequestOrBuilder (1.4.12)

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
TypeDescription
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
TypeDescription
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
TypeDescription
long

The partition.

getSubscription()

public abstract String getSubscription()

The subscription from which to receive messages.

string subscription = 1;

Returns
TypeDescription
String

The subscription.

getSubscriptionBytes()

public abstract ByteString getSubscriptionBytes()

The subscription from which to receive messages.

string subscription = 1;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the initialLocation field is set.