Interface InitialPublishRequestOrBuilder (1.7.1)

public interface InitialPublishRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getPartition()

public abstract long getPartition()

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

int64 partition = 2;

Returns
TypeDescription
long

The partition.

getTopic()

public abstract String getTopic()

The topic to which messages will be written.

string topic = 1;

Returns
TypeDescription
String

The topic.

getTopicBytes()

public abstract ByteString getTopicBytes()

The topic to which messages will be written.

string topic = 1;

Returns
TypeDescription
ByteString

The bytes for topic.