tech.ytsaurus.client.request.RegistrationPartitions Maven / Gradle / Ivy
The newest version!
package tech.ytsaurus.client.request;
import java.util.List;
import tech.ytsaurus.rpcproxy.TReqRegisterQueueConsumer;
public class RegistrationPartitions {
private final List items;
public RegistrationPartitions(List items) {
this.items = items;
}
public List getPartitions() {
return items;
}
public TReqRegisterQueueConsumer.TRegistrationPartitions toProto() {
return TReqRegisterQueueConsumer.TRegistrationPartitions.newBuilder()
.addAllItems(items)
.build();
}
}