Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions apache/rocketmq/v2/definition.proto
Original file line number Diff line number Diff line change
Expand Up @@ -596,4 +596,19 @@ enum QueryOffsetPolicy {

// Use this option if time-based seek is targeted.
TIMESTAMP = 2;
}

message OffsetOption {
oneof offset_type {
Policy policy = 1;
int64 offset = 2;
int64 tail_n = 3;
int64 timestamp = 4;
}

enum Policy {
LAST = 0;
MIN = 1;
MAX = 2;
}
}
1 change: 1 addition & 0 deletions apache/rocketmq/v2/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ message SyncLiteSubscriptionRequest {
// lite subscription set of lite topics
repeated string lite_topic_set = 4;
optional int64 version = 5;
optional OffsetOption offset_option = 6;
}

message SyncLiteSubscriptionResponse {
Expand Down