Interface PartitionAssignmentOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
PartitionAssignment,PartitionAssignment.Builder
public interface PartitionAssignmentOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionlonggetPartitions(int index) The list of partition numbers this subscriber is assigned to.intThe list of partition numbers this subscriber is assigned to.The list of partition numbers this subscriber is assigned to.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getPartitionsList
The list of partition numbers this subscriber is assigned to.
repeated int64 partitions = 1;- Returns:
- A list containing the partitions.
-
getPartitionsCount
int getPartitionsCount()The list of partition numbers this subscriber is assigned to.
repeated int64 partitions = 1;- Returns:
- The count of partitions.
-
getPartitions
long getPartitions(int index) The list of partition numbers this subscriber is assigned to.
repeated int64 partitions = 1;- Parameters:
index- The index of the element to return.- Returns:
- The partitions at the given index.
-