Interface ConsumerPartitionMetadataOrBuilder (0.5.0)

public interface ConsumerPartitionMetadataOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getMetadata()

public abstract String getMetadata()

Optional. The associated metadata for this partition, or empty if it does not exist.

string metadata = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The metadata.

getMetadataBytes()

public abstract ByteString getMetadataBytes()

Optional. The associated metadata for this partition, or empty if it does not exist.

string metadata = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for metadata.

getOffset()

public abstract long getOffset()

Required. The current offset for this partition, or 0 if no offset has been committed.

int64 offset = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
long

The offset.