1
1
syntax = "proto2" ;
2
+ message KeyValue {
3
+ required string key = 1 ;
4
+ required string value = 2 ;
5
+ }
2
6
message Schema {
3
7
enum Type {
4
8
None = 0 ;
@@ -36,11 +40,6 @@ message MessageIdData {
36
40
optional int32 batch_index = 4 [default = -1 ];
37
41
repeated int64 ack_set = 5 ;
38
42
optional int32 batch_size = 6 ;
39
- optional MessageIdData first_chunk_message_id = 7 ;
40
- }
41
- message KeyValue {
42
- required string key = 1 ;
43
- required string value = 2 ;
44
43
}
45
44
message KeyLongValue {
46
45
required string key = 1 ;
@@ -171,6 +170,13 @@ enum ProtocolVersion {
171
170
v20 = 20 ;
172
171
v21 = 21 ;
173
172
}
173
+ message FeatureFlags {
174
+ optional bool supports_auth_refresh = 1 [default = false ];
175
+ optional bool supports_broker_entry_metadata = 2 [default = false ];
176
+ optional bool supports_partial_producer = 3 [default = false ];
177
+ optional bool supports_topic_watchers = 4 [default = false ];
178
+ optional bool supports_get_partitioned_metadata_without_auto_creation = 5 [default = false ];
179
+ }
174
180
message CommandConnect {
175
181
required string client_version = 1 ;
176
182
optional AuthMethod auth_method = 2 ;
@@ -184,19 +190,16 @@ message CommandConnect {
184
190
optional FeatureFlags feature_flags = 10 ;
185
191
optional string proxy_version = 11 ;
186
192
}
187
- message FeatureFlags {
188
- optional bool supports_auth_refresh = 1 [default = false ];
189
- optional bool supports_broker_entry_metadata = 2 [default = false ];
190
- optional bool supports_partial_producer = 3 [default = false ];
191
- optional bool supports_topic_watchers = 4 [default = false ];
192
- optional bool supports_get_partitioned_metadata_without_auto_creation = 5 [default = false ];
193
- }
194
193
message CommandConnected {
195
194
required string server_version = 1 ;
196
195
optional int32 protocol_version = 2 [default = 0 ];
197
196
optional int32 max_message_size = 3 ;
198
197
optional FeatureFlags feature_flags = 4 ;
199
198
}
199
+ message AuthData {
200
+ optional string auth_method_name = 1 ;
201
+ optional bytes auth_data = 2 ;
202
+ }
200
203
message CommandAuthResponse {
201
204
optional string client_version = 1 ;
202
205
optional AuthData response = 2 ;
@@ -207,10 +210,6 @@ message CommandAuthChallenge {
207
210
optional AuthData challenge = 2 ;
208
211
optional int32 protocol_version = 3 [default = 0 ];
209
212
}
210
- message AuthData {
211
- optional string auth_method_name = 1 ;
212
- optional bytes auth_data = 2 ;
213
- }
214
213
enum KeySharedMode {
215
214
AUTO_SPLIT = 0 ;
216
215
STICKY = 1 ;
@@ -260,13 +259,13 @@ message CommandPartitionedTopicMetadata {
260
259
optional bool metadata_auto_creation_enabled = 6 [default = true ];
261
260
}
262
261
message CommandPartitionedTopicMetadataResponse {
263
- enum LookupType {
262
+ enum CLookupType {
264
263
Success = 0 ;
265
264
Failed = 1 ;
266
265
}
267
266
optional uint32 partitions = 1 ;
268
267
required uint64 request_id = 2 ;
269
- optional LookupType response = 3 ;
268
+ optional CLookupType response = 3 ;
270
269
optional ServerError error = 4 ;
271
270
optional string message = 5 ;
272
271
}
@@ -633,7 +632,7 @@ message CommandEndTxnOnSubscriptionResponse {
633
632
optional string message = 5 ;
634
633
}
635
634
message BaseCommand {
636
- enum Type {
635
+ enum BaseCommandType {
637
636
CONNECT = 2 ;
638
637
CONNECTED = 3 ;
639
638
SUBSCRIBE = 4 ;
@@ -693,7 +692,7 @@ message BaseCommand {
693
692
WATCH_TOPIC_LIST_CLOSE = 67 ;
694
693
TOPIC_MIGRATED = 68 ;
695
694
}
696
- required Type type = 1 ;
695
+ required BaseCommandType type = 1 ;
697
696
optional CommandConnect connect = 2 ;
698
697
optional CommandConnected connected = 3 ;
699
698
optional CommandSubscribe subscribe = 4 ;
0 commit comments