pulsar-client-ruby 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,930 @@
1
+ # encoding: utf-8
2
+
3
+ ##
4
+ # This file is auto-generated. DO NOT EDIT!
5
+ #
6
+ require 'protobuf'
7
+
8
+ module Pulsar
9
+ module Proto
10
+ ::Protobuf::Optionable.inject(self) { ::Google::Protobuf::FileOptions }
11
+
12
+ ##
13
+ # Enum Classes
14
+ #
15
+ class CompressionType < ::Protobuf::Enum
16
+ define :NONE, 0
17
+ define :LZ4, 1
18
+ define :ZLIB, 2
19
+ define :ZSTD, 3
20
+ define :SNAPPY, 4
21
+ end
22
+
23
+ class ProducerAccessMode < ::Protobuf::Enum
24
+ define :SHARED, 0
25
+ define :EXCLUSIVE, 1
26
+ define :WAITFOREXCLUSIVE, 2
27
+ define :EXCLUSIVEWITHFENCING, 3
28
+ end
29
+
30
+ class ServerError < ::Protobuf::Enum
31
+ define :UNKNOWNERROR, 0
32
+ define :METADATAERROR, 1
33
+ define :PERSISTENCEERROR, 2
34
+ define :AUTHENTICATIONERROR, 3
35
+ define :AUTHORIZATIONERROR, 4
36
+ define :CONSUMERBUSY, 5
37
+ define :SERVICENOTREADY, 6
38
+ define :PRODUCERBLOCKEDQUOTAEXCEEDEDERROR, 7
39
+ define :PRODUCERBLOCKEDQUOTAEXCEEDEDEXCEPTION, 8
40
+ define :CHECKSUMERROR, 9
41
+ define :UNSUPPORTEDVERSIONERROR, 10
42
+ define :TOPICNOTFOUND, 11
43
+ define :SUBSCRIPTIONNOTFOUND, 12
44
+ define :CONSUMERNOTFOUND, 13
45
+ define :TOOMANYREQUESTS, 14
46
+ define :TOPICTERMINATEDERROR, 15
47
+ define :PRODUCERBUSY, 16
48
+ define :INVALIDTOPICNAME, 17
49
+ define :INCOMPATIBLESCHEMA, 18
50
+ define :CONSUMERASSIGNERROR, 19
51
+ define :TRANSACTIONCOORDINATORNOTFOUND, 20
52
+ define :INVALIDTXNSTATUS, 21
53
+ define :NOTALLOWEDERROR, 22
54
+ define :TRANSACTIONCONFLICT, 23
55
+ define :TRANSACTIONNOTFOUND, 24
56
+ define :PRODUCERFENCED, 25
57
+ end
58
+
59
+ class AuthMethod < ::Protobuf::Enum
60
+ define :AUTHMETHODNONE, 0
61
+ define :AUTHMETHODYCAV1, 1
62
+ define :AUTHMETHODATHENS, 2
63
+ end
64
+
65
+ class ProtocolVersion < ::Protobuf::Enum
66
+ define :V0, 0
67
+ define :V1, 1
68
+ define :V2, 2
69
+ define :V3, 3
70
+ define :V4, 4
71
+ define :V5, 5
72
+ define :V6, 6
73
+ define :V7, 7
74
+ define :V8, 8
75
+ define :V9, 9
76
+ define :V10, 10
77
+ define :V11, 11
78
+ define :V12, 12
79
+ define :V13, 13
80
+ define :V14, 14
81
+ define :V15, 15
82
+ define :V16, 16
83
+ define :V17, 17
84
+ define :V18, 18
85
+ define :V19, 19
86
+ end
87
+
88
+ class KeySharedMode < ::Protobuf::Enum
89
+ define :AUTO_SPLIT, 0
90
+ define :STICKY, 1
91
+ end
92
+
93
+ class TxnAction < ::Protobuf::Enum
94
+ define :COMMIT, 0
95
+ define :ABORT, 1
96
+ end
97
+
98
+
99
+ ##
100
+ # Message Classes
101
+ #
102
+ class Schema < ::Protobuf::Message
103
+ class Type < ::Protobuf::Enum
104
+ define :NONE, 0
105
+ define :STRING, 1
106
+ define :JSON, 2
107
+ define :PROTOBUF, 3
108
+ define :AVRO, 4
109
+ define :BOOL, 5
110
+ define :INT8, 6
111
+ define :INT16, 7
112
+ define :INT32, 8
113
+ define :INT64, 9
114
+ define :FLOAT, 10
115
+ define :DOUBLE, 11
116
+ define :DATE, 12
117
+ define :TIME, 13
118
+ define :TIMESTAMP, 14
119
+ define :KEYVALUE, 15
120
+ define :INSTANT, 16
121
+ define :LOCALDATE, 17
122
+ define :LOCALTIME, 18
123
+ define :LOCALDATETIME, 19
124
+ define :PROTOBUFNATIVE, 20
125
+ end
126
+
127
+ end
128
+
129
+ class MessageIdData < ::Protobuf::Message; end
130
+ class KeyValue < ::Protobuf::Message; end
131
+ class KeyLongValue < ::Protobuf::Message; end
132
+ class IntRange < ::Protobuf::Message; end
133
+ class EncryptionKeys < ::Protobuf::Message; end
134
+ class MessageMetadata < ::Protobuf::Message; end
135
+ class SingleMessageMetadata < ::Protobuf::Message; end
136
+ class BrokerEntryMetadata < ::Protobuf::Message; end
137
+ class CommandConnect < ::Protobuf::Message; end
138
+ class FeatureFlags < ::Protobuf::Message; end
139
+ class CommandConnected < ::Protobuf::Message; end
140
+ class CommandAuthResponse < ::Protobuf::Message; end
141
+ class CommandAuthChallenge < ::Protobuf::Message; end
142
+ class AuthData < ::Protobuf::Message; end
143
+ class KeySharedMeta < ::Protobuf::Message; end
144
+ class CommandSubscribe < ::Protobuf::Message
145
+ class SubType < ::Protobuf::Enum
146
+ define :EXCLUSIVE, 0
147
+ define :SHARED, 1
148
+ define :FAILOVER, 2
149
+ define :KEY_SHARED, 3
150
+ end
151
+
152
+ class InitialPosition < ::Protobuf::Enum
153
+ define :LATEST, 0
154
+ define :EARLIEST, 1
155
+ end
156
+
157
+ end
158
+
159
+ class CommandPartitionedTopicMetadata < ::Protobuf::Message; end
160
+ class CommandPartitionedTopicMetadataResponse < ::Protobuf::Message
161
+ class LookupType < ::Protobuf::Enum
162
+ define :SUCCESS, 0
163
+ define :FAILED, 1
164
+ end
165
+
166
+ end
167
+
168
+ class CommandLookupTopic < ::Protobuf::Message; end
169
+ class CommandLookupTopicResponse < ::Protobuf::Message
170
+ class LookupType < ::Protobuf::Enum
171
+ define :REDIRECT, 0
172
+ define :CONNECT, 1
173
+ define :FAILED, 2
174
+ end
175
+
176
+ end
177
+
178
+ class CommandProducer < ::Protobuf::Message; end
179
+ class CommandSend < ::Protobuf::Message; end
180
+ class CommandSendReceipt < ::Protobuf::Message; end
181
+ class CommandSendError < ::Protobuf::Message; end
182
+ class CommandMessage < ::Protobuf::Message; end
183
+ class CommandAck < ::Protobuf::Message
184
+ class AckType < ::Protobuf::Enum
185
+ define :INDIVIDUAL, 0
186
+ define :CUMULATIVE, 1
187
+ end
188
+
189
+ class ValidationError < ::Protobuf::Enum
190
+ define :UNCOMPRESSEDSIZECORRUPTION, 0
191
+ define :DECOMPRESSIONERROR, 1
192
+ define :CHECKSUMMISMATCH, 2
193
+ define :BATCHDESERIALIZEERROR, 3
194
+ define :DECRYPTIONERROR, 4
195
+ end
196
+
197
+ end
198
+
199
+ class CommandAckResponse < ::Protobuf::Message; end
200
+ class CommandActiveConsumerChange < ::Protobuf::Message; end
201
+ class CommandFlow < ::Protobuf::Message; end
202
+ class CommandUnsubscribe < ::Protobuf::Message; end
203
+ class CommandSeek < ::Protobuf::Message; end
204
+ class CommandReachedEndOfTopic < ::Protobuf::Message; end
205
+ class CommandCloseProducer < ::Protobuf::Message; end
206
+ class CommandCloseConsumer < ::Protobuf::Message; end
207
+ class CommandRedeliverUnacknowledgedMessages < ::Protobuf::Message; end
208
+ class CommandSuccess < ::Protobuf::Message; end
209
+ class CommandProducerSuccess < ::Protobuf::Message; end
210
+ class CommandError < ::Protobuf::Message; end
211
+ class CommandPing < ::Protobuf::Message; end
212
+ class CommandPong < ::Protobuf::Message; end
213
+ class CommandConsumerStats < ::Protobuf::Message; end
214
+ class CommandConsumerStatsResponse < ::Protobuf::Message; end
215
+ class CommandGetLastMessageId < ::Protobuf::Message; end
216
+ class CommandGetLastMessageIdResponse < ::Protobuf::Message; end
217
+ class CommandGetTopicsOfNamespace < ::Protobuf::Message
218
+ class Mode < ::Protobuf::Enum
219
+ define :PERSISTENT, 0
220
+ define :NON_PERSISTENT, 1
221
+ define :ALL, 2
222
+ end
223
+
224
+ end
225
+
226
+ class CommandGetTopicsOfNamespaceResponse < ::Protobuf::Message; end
227
+ class CommandWatchTopicList < ::Protobuf::Message; end
228
+ class CommandWatchTopicListSuccess < ::Protobuf::Message; end
229
+ class CommandWatchTopicUpdate < ::Protobuf::Message; end
230
+ class CommandWatchTopicListClose < ::Protobuf::Message; end
231
+ class CommandGetSchema < ::Protobuf::Message; end
232
+ class CommandGetSchemaResponse < ::Protobuf::Message; end
233
+ class CommandGetOrCreateSchema < ::Protobuf::Message; end
234
+ class CommandGetOrCreateSchemaResponse < ::Protobuf::Message; end
235
+ class CommandTcClientConnectRequest < ::Protobuf::Message; end
236
+ class CommandTcClientConnectResponse < ::Protobuf::Message; end
237
+ class CommandNewTxn < ::Protobuf::Message; end
238
+ class CommandNewTxnResponse < ::Protobuf::Message; end
239
+ class CommandAddPartitionToTxn < ::Protobuf::Message; end
240
+ class CommandAddPartitionToTxnResponse < ::Protobuf::Message; end
241
+ class Subscription < ::Protobuf::Message; end
242
+ class CommandAddSubscriptionToTxn < ::Protobuf::Message; end
243
+ class CommandAddSubscriptionToTxnResponse < ::Protobuf::Message; end
244
+ class CommandEndTxn < ::Protobuf::Message; end
245
+ class CommandEndTxnResponse < ::Protobuf::Message; end
246
+ class CommandEndTxnOnPartition < ::Protobuf::Message; end
247
+ class CommandEndTxnOnPartitionResponse < ::Protobuf::Message; end
248
+ class CommandEndTxnOnSubscription < ::Protobuf::Message; end
249
+ class CommandEndTxnOnSubscriptionResponse < ::Protobuf::Message; end
250
+ class BaseCommand < ::Protobuf::Message
251
+ class Type < ::Protobuf::Enum
252
+ define :CONNECT, 2
253
+ define :CONNECTED, 3
254
+ define :SUBSCRIBE, 4
255
+ define :PRODUCER, 5
256
+ define :SEND, 6
257
+ define :SEND_RECEIPT, 7
258
+ define :SEND_ERROR, 8
259
+ define :MESSAGE, 9
260
+ define :ACK, 10
261
+ define :FLOW, 11
262
+ define :UNSUBSCRIBE, 12
263
+ define :SUCCESS, 13
264
+ define :ERROR, 14
265
+ define :CLOSE_PRODUCER, 15
266
+ define :CLOSE_CONSUMER, 16
267
+ define :PRODUCER_SUCCESS, 17
268
+ define :PING, 18
269
+ define :PONG, 19
270
+ define :REDELIVER_UNACKNOWLEDGED_MESSAGES, 20
271
+ define :PARTITIONED_METADATA, 21
272
+ define :PARTITIONED_METADATA_RESPONSE, 22
273
+ define :LOOKUP, 23
274
+ define :LOOKUP_RESPONSE, 24
275
+ define :CONSUMER_STATS, 25
276
+ define :CONSUMER_STATS_RESPONSE, 26
277
+ define :REACHED_END_OF_TOPIC, 27
278
+ define :SEEK, 28
279
+ define :GET_LAST_MESSAGE_ID, 29
280
+ define :GET_LAST_MESSAGE_ID_RESPONSE, 30
281
+ define :ACTIVE_CONSUMER_CHANGE, 31
282
+ define :GET_TOPICS_OF_NAMESPACE, 32
283
+ define :GET_TOPICS_OF_NAMESPACE_RESPONSE, 33
284
+ define :GET_SCHEMA, 34
285
+ define :GET_SCHEMA_RESPONSE, 35
286
+ define :AUTH_CHALLENGE, 36
287
+ define :AUTH_RESPONSE, 37
288
+ define :ACK_RESPONSE, 38
289
+ define :GET_OR_CREATE_SCHEMA, 39
290
+ define :GET_OR_CREATE_SCHEMA_RESPONSE, 40
291
+ define :NEW_TXN, 50
292
+ define :NEW_TXN_RESPONSE, 51
293
+ define :ADD_PARTITION_TO_TXN, 52
294
+ define :ADD_PARTITION_TO_TXN_RESPONSE, 53
295
+ define :ADD_SUBSCRIPTION_TO_TXN, 54
296
+ define :ADD_SUBSCRIPTION_TO_TXN_RESPONSE, 55
297
+ define :END_TXN, 56
298
+ define :END_TXN_RESPONSE, 57
299
+ define :END_TXN_ON_PARTITION, 58
300
+ define :END_TXN_ON_PARTITION_RESPONSE, 59
301
+ define :END_TXN_ON_SUBSCRIPTION, 60
302
+ define :END_TXN_ON_SUBSCRIPTION_RESPONSE, 61
303
+ define :TC_CLIENT_CONNECT_REQUEST, 62
304
+ define :TC_CLIENT_CONNECT_RESPONSE, 63
305
+ define :WATCH_TOPIC_LIST, 64
306
+ define :WATCH_TOPIC_LIST_SUCCESS, 65
307
+ define :WATCH_TOPIC_UPDATE, 66
308
+ define :WATCH_TOPIC_LIST_CLOSE, 67
309
+ end
310
+
311
+ end
312
+
313
+
314
+
315
+ ##
316
+ # File Options
317
+ #
318
+ set_option :java_package, "org.apache.pulsar.common.api.proto"
319
+ set_option :optimize_for, ::Google::Protobuf::FileOptions::OptimizeMode::LITE_RUNTIME
320
+
321
+
322
+ ##
323
+ # Message Fields
324
+ #
325
+ class Schema
326
+ required :string, :name, 1
327
+ required :bytes, :schema_data, 3
328
+ required ::Pulsar::Proto::Schema::Type, :type, 4
329
+ repeated ::Pulsar::Proto::KeyValue, :properties, 5
330
+ end
331
+
332
+ class MessageIdData
333
+ required :uint64, :ledgerId, 1
334
+ required :uint64, :entryId, 2
335
+ optional :int32, :partition, 3, :default => -1
336
+ optional :int32, :batch_index, 4, :default => -1
337
+ repeated :int64, :ack_set, 5
338
+ optional :int32, :batch_size, 6
339
+ optional ::Pulsar::Proto::MessageIdData, :first_chunk_message_id, 7
340
+ end
341
+
342
+ class KeyValue
343
+ required :string, :key, 1
344
+ required :string, :value, 2
345
+ end
346
+
347
+ class KeyLongValue
348
+ required :string, :key, 1
349
+ required :uint64, :value, 2
350
+ end
351
+
352
+ class IntRange
353
+ required :int32, :start, 1
354
+ required :int32, :end, 2
355
+ end
356
+
357
+ class EncryptionKeys
358
+ required :string, :key, 1
359
+ required :bytes, :value, 2
360
+ repeated ::Pulsar::Proto::KeyValue, :metadata, 3
361
+ end
362
+
363
+ class MessageMetadata
364
+ required :string, :producer_name, 1
365
+ required :uint64, :sequence_id, 2
366
+ required :uint64, :publish_time, 3
367
+ repeated ::Pulsar::Proto::KeyValue, :properties, 4
368
+ optional :string, :replicated_from, 5
369
+ optional :string, :partition_key, 6
370
+ repeated :string, :replicate_to, 7
371
+ optional ::Pulsar::Proto::CompressionType, :compression, 8, :default => ::Pulsar::Proto::CompressionType::NONE
372
+ optional :uint32, :uncompressed_size, 9, :default => 0
373
+ optional :int32, :num_messages_in_batch, 11, :default => 1
374
+ optional :uint64, :event_time, 12, :default => 0
375
+ repeated ::Pulsar::Proto::EncryptionKeys, :encryption_keys, 13
376
+ optional :string, :encryption_algo, 14
377
+ optional :bytes, :encryption_param, 15
378
+ optional :bytes, :schema_version, 16
379
+ optional :bool, :partition_key_b64_encoded, 17, :default => false
380
+ optional :bytes, :ordering_key, 18
381
+ optional :int64, :deliver_at_time, 19
382
+ optional :int32, :marker_type, 20
383
+ optional :uint64, :txnid_least_bits, 22
384
+ optional :uint64, :txnid_most_bits, 23
385
+ optional :uint64, :highest_sequence_id, 24, :default => 0
386
+ optional :bool, :null_value, 25, :default => false
387
+ optional :string, :uuid, 26
388
+ optional :int32, :num_chunks_from_msg, 27
389
+ optional :int32, :total_chunk_msg_size, 28
390
+ optional :int32, :chunk_id, 29
391
+ optional :bool, :null_partition_key, 30, :default => false
392
+ end
393
+
394
+ class SingleMessageMetadata
395
+ repeated ::Pulsar::Proto::KeyValue, :properties, 1
396
+ optional :string, :partition_key, 2
397
+ required :int32, :payload_size, 3
398
+ optional :bool, :compacted_out, 4, :default => false
399
+ optional :uint64, :event_time, 5, :default => 0
400
+ optional :bool, :partition_key_b64_encoded, 6, :default => false
401
+ optional :bytes, :ordering_key, 7
402
+ optional :uint64, :sequence_id, 8
403
+ optional :bool, :null_value, 9, :default => false
404
+ optional :bool, :null_partition_key, 10, :default => false
405
+ end
406
+
407
+ class BrokerEntryMetadata
408
+ optional :uint64, :broker_timestamp, 1
409
+ optional :uint64, :index, 2
410
+ end
411
+
412
+ class CommandConnect
413
+ required :string, :client_version, 1
414
+ optional ::Pulsar::Proto::AuthMethod, :auth_method, 2
415
+ optional :string, :auth_method_name, 5
416
+ optional :bytes, :auth_data, 3
417
+ optional :int32, :protocol_version, 4, :default => 0
418
+ optional :string, :proxy_to_broker_url, 6
419
+ optional :string, :original_principal, 7
420
+ optional :string, :original_auth_data, 8
421
+ optional :string, :original_auth_method, 9
422
+ optional ::Pulsar::Proto::FeatureFlags, :feature_flags, 10
423
+ end
424
+
425
+ class FeatureFlags
426
+ optional :bool, :supports_auth_refresh, 1, :default => false
427
+ optional :bool, :supports_broker_entry_metadata, 2, :default => false
428
+ optional :bool, :supports_partial_producer, 3, :default => false
429
+ optional :bool, :supports_topic_watchers, 4, :default => false
430
+ end
431
+
432
+ class CommandConnected
433
+ required :string, :server_version, 1
434
+ optional :int32, :protocol_version, 2, :default => 0
435
+ optional :int32, :max_message_size, 3
436
+ optional ::Pulsar::Proto::FeatureFlags, :feature_flags, 4
437
+ end
438
+
439
+ class CommandAuthResponse
440
+ optional :string, :client_version, 1
441
+ optional ::Pulsar::Proto::AuthData, :response, 2
442
+ optional :int32, :protocol_version, 3, :default => 0
443
+ end
444
+
445
+ class CommandAuthChallenge
446
+ optional :string, :server_version, 1
447
+ optional ::Pulsar::Proto::AuthData, :challenge, 2
448
+ optional :int32, :protocol_version, 3, :default => 0
449
+ end
450
+
451
+ class AuthData
452
+ optional :string, :auth_method_name, 1
453
+ optional :bytes, :auth_data, 2
454
+ end
455
+
456
+ class KeySharedMeta
457
+ required ::Pulsar::Proto::KeySharedMode, :keySharedMode, 1
458
+ repeated ::Pulsar::Proto::IntRange, :hashRanges, 3
459
+ optional :bool, :allowOutOfOrderDelivery, 4, :default => false
460
+ end
461
+
462
+ class CommandSubscribe
463
+ required :string, :topic, 1
464
+ required :string, :subscription, 2
465
+ required ::Pulsar::Proto::CommandSubscribe::SubType, :subType, 3
466
+ required :uint64, :consumer_id, 4
467
+ required :uint64, :request_id, 5
468
+ optional :string, :consumer_name, 6
469
+ optional :int32, :priority_level, 7
470
+ optional :bool, :durable, 8, :default => true
471
+ optional ::Pulsar::Proto::MessageIdData, :start_message_id, 9
472
+ repeated ::Pulsar::Proto::KeyValue, :metadata, 10
473
+ optional :bool, :read_compacted, 11
474
+ optional ::Pulsar::Proto::Schema, :schema, 12
475
+ optional ::Pulsar::Proto::CommandSubscribe::InitialPosition, :initialPosition, 13, :default => ::Pulsar::Proto::CommandSubscribe::InitialPosition::LATEST
476
+ optional :bool, :replicate_subscription_state, 14
477
+ optional :bool, :force_topic_creation, 15, :default => true
478
+ optional :uint64, :start_message_rollback_duration_sec, 16, :default => 0
479
+ optional ::Pulsar::Proto::KeySharedMeta, :keySharedMeta, 17
480
+ repeated ::Pulsar::Proto::KeyValue, :subscription_properties, 18
481
+ optional :uint64, :consumer_epoch, 19
482
+ end
483
+
484
+ class CommandPartitionedTopicMetadata
485
+ required :string, :topic, 1
486
+ required :uint64, :request_id, 2
487
+ optional :string, :original_principal, 3
488
+ optional :string, :original_auth_data, 4
489
+ optional :string, :original_auth_method, 5
490
+ end
491
+
492
+ class CommandPartitionedTopicMetadataResponse
493
+ optional :uint32, :partitions, 1
494
+ required :uint64, :request_id, 2
495
+ optional ::Pulsar::Proto::CommandPartitionedTopicMetadataResponse::LookupType, :response, 3
496
+ optional ::Pulsar::Proto::ServerError, :error, 4
497
+ optional :string, :message, 5
498
+ end
499
+
500
+ class CommandLookupTopic
501
+ required :string, :topic, 1
502
+ required :uint64, :request_id, 2
503
+ optional :bool, :authoritative, 3, :default => false
504
+ optional :string, :original_principal, 4
505
+ optional :string, :original_auth_data, 5
506
+ optional :string, :original_auth_method, 6
507
+ optional :string, :advertised_listener_name, 7
508
+ end
509
+
510
+ class CommandLookupTopicResponse
511
+ optional :string, :brokerServiceUrl, 1
512
+ optional :string, :brokerServiceUrlTls, 2
513
+ optional ::Pulsar::Proto::CommandLookupTopicResponse::LookupType, :response, 3
514
+ required :uint64, :request_id, 4
515
+ optional :bool, :authoritative, 5, :default => false
516
+ optional ::Pulsar::Proto::ServerError, :error, 6
517
+ optional :string, :message, 7
518
+ optional :bool, :proxy_through_service_url, 8, :default => false
519
+ end
520
+
521
+ class CommandProducer
522
+ required :string, :topic, 1
523
+ required :uint64, :producer_id, 2
524
+ required :uint64, :request_id, 3
525
+ optional :string, :producer_name, 4
526
+ optional :bool, :encrypted, 5, :default => false
527
+ repeated ::Pulsar::Proto::KeyValue, :metadata, 6
528
+ optional ::Pulsar::Proto::Schema, :schema, 7
529
+ optional :uint64, :epoch, 8, :default => 0
530
+ optional :bool, :user_provided_producer_name, 9, :default => true
531
+ optional ::Pulsar::Proto::ProducerAccessMode, :producer_access_mode, 10, :default => ::Pulsar::Proto::ProducerAccessMode::SHARED
532
+ optional :uint64, :topic_epoch, 11
533
+ optional :bool, :txn_enabled, 12, :default => false
534
+ optional :string, :initial_subscription_name, 13
535
+ end
536
+
537
+ class CommandSend
538
+ required :uint64, :producer_id, 1
539
+ required :uint64, :sequence_id, 2
540
+ optional :int32, :num_messages, 3, :default => 1
541
+ optional :uint64, :txnid_least_bits, 4, :default => 0
542
+ optional :uint64, :txnid_most_bits, 5, :default => 0
543
+ optional :uint64, :highest_sequence_id, 6, :default => 0
544
+ optional :bool, :is_chunk, 7, :default => false
545
+ optional :bool, :marker, 8, :default => false
546
+ end
547
+
548
+ class CommandSendReceipt
549
+ required :uint64, :producer_id, 1
550
+ required :uint64, :sequence_id, 2
551
+ optional ::Pulsar::Proto::MessageIdData, :message_id, 3
552
+ optional :uint64, :highest_sequence_id, 4, :default => 0
553
+ end
554
+
555
+ class CommandSendError
556
+ required :uint64, :producer_id, 1
557
+ required :uint64, :sequence_id, 2
558
+ required ::Pulsar::Proto::ServerError, :error, 3
559
+ required :string, :message, 4
560
+ end
561
+
562
+ class CommandMessage
563
+ required :uint64, :consumer_id, 1
564
+ required ::Pulsar::Proto::MessageIdData, :message_id, 2
565
+ optional :uint32, :redelivery_count, 3, :default => 0
566
+ repeated :int64, :ack_set, 4
567
+ optional :uint64, :consumer_epoch, 5
568
+ end
569
+
570
+ class CommandAck
571
+ required :uint64, :consumer_id, 1
572
+ required ::Pulsar::Proto::CommandAck::AckType, :ack_type, 2
573
+ repeated ::Pulsar::Proto::MessageIdData, :message_id, 3
574
+ optional ::Pulsar::Proto::CommandAck::ValidationError, :validation_error, 4
575
+ repeated ::Pulsar::Proto::KeyLongValue, :properties, 5
576
+ optional :uint64, :txnid_least_bits, 6, :default => 0
577
+ optional :uint64, :txnid_most_bits, 7, :default => 0
578
+ optional :uint64, :request_id, 8
579
+ end
580
+
581
+ class CommandAckResponse
582
+ required :uint64, :consumer_id, 1
583
+ optional :uint64, :txnid_least_bits, 2, :default => 0
584
+ optional :uint64, :txnid_most_bits, 3, :default => 0
585
+ optional ::Pulsar::Proto::ServerError, :error, 4
586
+ optional :string, :message, 5
587
+ optional :uint64, :request_id, 6
588
+ end
589
+
590
+ class CommandActiveConsumerChange
591
+ required :uint64, :consumer_id, 1
592
+ optional :bool, :is_active, 2, :default => false
593
+ end
594
+
595
+ class CommandFlow
596
+ required :uint64, :consumer_id, 1
597
+ required :uint32, :messagePermits, 2
598
+ end
599
+
600
+ class CommandUnsubscribe
601
+ required :uint64, :consumer_id, 1
602
+ required :uint64, :request_id, 2
603
+ end
604
+
605
+ class CommandSeek
606
+ required :uint64, :consumer_id, 1
607
+ required :uint64, :request_id, 2
608
+ optional ::Pulsar::Proto::MessageIdData, :message_id, 3
609
+ optional :uint64, :message_publish_time, 4
610
+ end
611
+
612
+ class CommandReachedEndOfTopic
613
+ required :uint64, :consumer_id, 1
614
+ end
615
+
616
+ class CommandCloseProducer
617
+ required :uint64, :producer_id, 1
618
+ required :uint64, :request_id, 2
619
+ end
620
+
621
+ class CommandCloseConsumer
622
+ required :uint64, :consumer_id, 1
623
+ required :uint64, :request_id, 2
624
+ end
625
+
626
+ class CommandRedeliverUnacknowledgedMessages
627
+ required :uint64, :consumer_id, 1
628
+ repeated ::Pulsar::Proto::MessageIdData, :message_ids, 2
629
+ optional :uint64, :consumer_epoch, 3
630
+ end
631
+
632
+ class CommandSuccess
633
+ required :uint64, :request_id, 1
634
+ optional ::Pulsar::Proto::Schema, :schema, 2
635
+ end
636
+
637
+ class CommandProducerSuccess
638
+ required :uint64, :request_id, 1
639
+ required :string, :producer_name, 2
640
+ optional :int64, :last_sequence_id, 3, :default => -1
641
+ optional :bytes, :schema_version, 4
642
+ optional :uint64, :topic_epoch, 5
643
+ optional :bool, :producer_ready, 6, :default => true
644
+ end
645
+
646
+ class CommandError
647
+ required :uint64, :request_id, 1
648
+ required ::Pulsar::Proto::ServerError, :error, 2
649
+ required :string, :message, 3
650
+ end
651
+
652
+ class CommandConsumerStats
653
+ required :uint64, :request_id, 1
654
+ required :uint64, :consumer_id, 4
655
+ end
656
+
657
+ class CommandConsumerStatsResponse
658
+ required :uint64, :request_id, 1
659
+ optional ::Pulsar::Proto::ServerError, :error_code, 2
660
+ optional :string, :error_message, 3
661
+ optional :double, :msgRateOut, 4
662
+ optional :double, :msgThroughputOut, 5
663
+ optional :double, :msgRateRedeliver, 6
664
+ optional :string, :consumerName, 7
665
+ optional :uint64, :availablePermits, 8
666
+ optional :uint64, :unackedMessages, 9
667
+ optional :bool, :blockedConsumerOnUnackedMsgs, 10
668
+ optional :string, :address, 11
669
+ optional :string, :connectedSince, 12
670
+ optional :string, :type, 13
671
+ optional :double, :msgRateExpired, 14
672
+ optional :uint64, :msgBacklog, 15
673
+ optional :double, :messageAckRate, 16
674
+ end
675
+
676
+ class CommandGetLastMessageId
677
+ required :uint64, :consumer_id, 1
678
+ required :uint64, :request_id, 2
679
+ end
680
+
681
+ class CommandGetLastMessageIdResponse
682
+ required ::Pulsar::Proto::MessageIdData, :last_message_id, 1
683
+ required :uint64, :request_id, 2
684
+ optional ::Pulsar::Proto::MessageIdData, :consumer_mark_delete_position, 3
685
+ end
686
+
687
+ class CommandGetTopicsOfNamespace
688
+ required :uint64, :request_id, 1
689
+ required :string, :namespace, 2
690
+ optional ::Pulsar::Proto::CommandGetTopicsOfNamespace::Mode, :mode, 3, :default => ::Pulsar::Proto::CommandGetTopicsOfNamespace::Mode::PERSISTENT
691
+ optional :string, :topics_pattern, 4
692
+ optional :string, :topics_hash, 5
693
+ end
694
+
695
+ class CommandGetTopicsOfNamespaceResponse
696
+ required :uint64, :request_id, 1
697
+ repeated :string, :topics, 2
698
+ optional :bool, :filtered, 3, :default => false
699
+ optional :string, :topics_hash, 4
700
+ optional :bool, :changed, 5, :default => true
701
+ end
702
+
703
+ class CommandWatchTopicList
704
+ required :uint64, :request_id, 1
705
+ required :uint64, :watcher_id, 2
706
+ required :string, :namespace, 3
707
+ required :string, :topics_pattern, 4
708
+ optional :string, :topics_hash, 5
709
+ end
710
+
711
+ class CommandWatchTopicListSuccess
712
+ required :uint64, :request_id, 1
713
+ required :uint64, :watcher_id, 2
714
+ repeated :string, :topic, 3
715
+ required :string, :topics_hash, 4
716
+ end
717
+
718
+ class CommandWatchTopicUpdate
719
+ required :uint64, :watcher_id, 1
720
+ repeated :string, :new_topics, 2
721
+ repeated :string, :deleted_topics, 3
722
+ required :string, :topics_hash, 4
723
+ end
724
+
725
+ class CommandWatchTopicListClose
726
+ required :uint64, :request_id, 1
727
+ required :uint64, :watcher_id, 2
728
+ end
729
+
730
+ class CommandGetSchema
731
+ required :uint64, :request_id, 1
732
+ required :string, :topic, 2
733
+ optional :bytes, :schema_version, 3
734
+ end
735
+
736
+ class CommandGetSchemaResponse
737
+ required :uint64, :request_id, 1
738
+ optional ::Pulsar::Proto::ServerError, :error_code, 2
739
+ optional :string, :error_message, 3
740
+ optional ::Pulsar::Proto::Schema, :schema, 4
741
+ optional :bytes, :schema_version, 5
742
+ end
743
+
744
+ class CommandGetOrCreateSchema
745
+ required :uint64, :request_id, 1
746
+ required :string, :topic, 2
747
+ required ::Pulsar::Proto::Schema, :schema, 3
748
+ end
749
+
750
+ class CommandGetOrCreateSchemaResponse
751
+ required :uint64, :request_id, 1
752
+ optional ::Pulsar::Proto::ServerError, :error_code, 2
753
+ optional :string, :error_message, 3
754
+ optional :bytes, :schema_version, 4
755
+ end
756
+
757
+ class CommandTcClientConnectRequest
758
+ required :uint64, :request_id, 1
759
+ required :uint64, :tc_id, 2, :default => 0
760
+ end
761
+
762
+ class CommandTcClientConnectResponse
763
+ required :uint64, :request_id, 1
764
+ optional ::Pulsar::Proto::ServerError, :error, 2
765
+ optional :string, :message, 3
766
+ end
767
+
768
+ class CommandNewTxn
769
+ required :uint64, :request_id, 1
770
+ optional :uint64, :txn_ttl_seconds, 2, :default => 0
771
+ optional :uint64, :tc_id, 3, :default => 0
772
+ end
773
+
774
+ class CommandNewTxnResponse
775
+ required :uint64, :request_id, 1
776
+ optional :uint64, :txnid_least_bits, 2, :default => 0
777
+ optional :uint64, :txnid_most_bits, 3, :default => 0
778
+ optional ::Pulsar::Proto::ServerError, :error, 4
779
+ optional :string, :message, 5
780
+ end
781
+
782
+ class CommandAddPartitionToTxn
783
+ required :uint64, :request_id, 1
784
+ optional :uint64, :txnid_least_bits, 2, :default => 0
785
+ optional :uint64, :txnid_most_bits, 3, :default => 0
786
+ repeated :string, :partitions, 4
787
+ end
788
+
789
+ class CommandAddPartitionToTxnResponse
790
+ required :uint64, :request_id, 1
791
+ optional :uint64, :txnid_least_bits, 2, :default => 0
792
+ optional :uint64, :txnid_most_bits, 3, :default => 0
793
+ optional ::Pulsar::Proto::ServerError, :error, 4
794
+ optional :string, :message, 5
795
+ end
796
+
797
+ class Subscription
798
+ required :string, :topic, 1
799
+ required :string, :subscription, 2
800
+ end
801
+
802
+ class CommandAddSubscriptionToTxn
803
+ required :uint64, :request_id, 1
804
+ optional :uint64, :txnid_least_bits, 2, :default => 0
805
+ optional :uint64, :txnid_most_bits, 3, :default => 0
806
+ repeated ::Pulsar::Proto::Subscription, :subscription, 4
807
+ end
808
+
809
+ class CommandAddSubscriptionToTxnResponse
810
+ required :uint64, :request_id, 1
811
+ optional :uint64, :txnid_least_bits, 2, :default => 0
812
+ optional :uint64, :txnid_most_bits, 3, :default => 0
813
+ optional ::Pulsar::Proto::ServerError, :error, 4
814
+ optional :string, :message, 5
815
+ end
816
+
817
+ class CommandEndTxn
818
+ required :uint64, :request_id, 1
819
+ optional :uint64, :txnid_least_bits, 2, :default => 0
820
+ optional :uint64, :txnid_most_bits, 3, :default => 0
821
+ optional ::Pulsar::Proto::TxnAction, :txn_action, 4
822
+ end
823
+
824
+ class CommandEndTxnResponse
825
+ required :uint64, :request_id, 1
826
+ optional :uint64, :txnid_least_bits, 2, :default => 0
827
+ optional :uint64, :txnid_most_bits, 3, :default => 0
828
+ optional ::Pulsar::Proto::ServerError, :error, 4
829
+ optional :string, :message, 5
830
+ end
831
+
832
+ class CommandEndTxnOnPartition
833
+ required :uint64, :request_id, 1
834
+ optional :uint64, :txnid_least_bits, 2, :default => 0
835
+ optional :uint64, :txnid_most_bits, 3, :default => 0
836
+ optional :string, :topic, 4
837
+ optional ::Pulsar::Proto::TxnAction, :txn_action, 5
838
+ optional :uint64, :txnid_least_bits_of_low_watermark, 6
839
+ end
840
+
841
+ class CommandEndTxnOnPartitionResponse
842
+ required :uint64, :request_id, 1
843
+ optional :uint64, :txnid_least_bits, 2, :default => 0
844
+ optional :uint64, :txnid_most_bits, 3, :default => 0
845
+ optional ::Pulsar::Proto::ServerError, :error, 4
846
+ optional :string, :message, 5
847
+ end
848
+
849
+ class CommandEndTxnOnSubscription
850
+ required :uint64, :request_id, 1
851
+ optional :uint64, :txnid_least_bits, 2, :default => 0
852
+ optional :uint64, :txnid_most_bits, 3, :default => 0
853
+ optional ::Pulsar::Proto::Subscription, :subscription, 4
854
+ optional ::Pulsar::Proto::TxnAction, :txn_action, 5
855
+ optional :uint64, :txnid_least_bits_of_low_watermark, 6
856
+ end
857
+
858
+ class CommandEndTxnOnSubscriptionResponse
859
+ required :uint64, :request_id, 1
860
+ optional :uint64, :txnid_least_bits, 2, :default => 0
861
+ optional :uint64, :txnid_most_bits, 3, :default => 0
862
+ optional ::Pulsar::Proto::ServerError, :error, 4
863
+ optional :string, :message, 5
864
+ end
865
+
866
+ class BaseCommand
867
+ required ::Pulsar::Proto::BaseCommand::Type, :type, 1
868
+ optional ::Pulsar::Proto::CommandConnect, :connect, 2
869
+ optional ::Pulsar::Proto::CommandConnected, :connected, 3
870
+ optional ::Pulsar::Proto::CommandSubscribe, :subscribe, 4
871
+ optional ::Pulsar::Proto::CommandProducer, :producer, 5
872
+ optional ::Pulsar::Proto::CommandSend, :send, 6
873
+ optional ::Pulsar::Proto::CommandSendReceipt, :send_receipt, 7
874
+ optional ::Pulsar::Proto::CommandSendError, :send_error, 8
875
+ optional ::Pulsar::Proto::CommandMessage, :message, 9
876
+ optional ::Pulsar::Proto::CommandAck, :ack, 10
877
+ optional ::Pulsar::Proto::CommandFlow, :flow, 11
878
+ optional ::Pulsar::Proto::CommandUnsubscribe, :unsubscribe, 12
879
+ optional ::Pulsar::Proto::CommandSuccess, :success, 13
880
+ optional ::Pulsar::Proto::CommandError, :error, 14
881
+ optional ::Pulsar::Proto::CommandCloseProducer, :close_producer, 15
882
+ optional ::Pulsar::Proto::CommandCloseConsumer, :close_consumer, 16
883
+ optional ::Pulsar::Proto::CommandProducerSuccess, :producer_success, 17
884
+ optional ::Pulsar::Proto::CommandPing, :ping, 18
885
+ optional ::Pulsar::Proto::CommandPong, :pong, 19
886
+ optional ::Pulsar::Proto::CommandRedeliverUnacknowledgedMessages, :redeliverUnacknowledgedMessages, 20
887
+ optional ::Pulsar::Proto::CommandPartitionedTopicMetadata, :partitionMetadata, 21
888
+ optional ::Pulsar::Proto::CommandPartitionedTopicMetadataResponse, :partitionMetadataResponse, 22
889
+ optional ::Pulsar::Proto::CommandLookupTopic, :lookupTopic, 23
890
+ optional ::Pulsar::Proto::CommandLookupTopicResponse, :lookupTopicResponse, 24
891
+ optional ::Pulsar::Proto::CommandConsumerStats, :consumerStats, 25
892
+ optional ::Pulsar::Proto::CommandConsumerStatsResponse, :consumerStatsResponse, 26
893
+ optional ::Pulsar::Proto::CommandReachedEndOfTopic, :reachedEndOfTopic, 27
894
+ optional ::Pulsar::Proto::CommandSeek, :seek, 28
895
+ optional ::Pulsar::Proto::CommandGetLastMessageId, :getLastMessageId, 29
896
+ optional ::Pulsar::Proto::CommandGetLastMessageIdResponse, :getLastMessageIdResponse, 30
897
+ optional ::Pulsar::Proto::CommandActiveConsumerChange, :active_consumer_change, 31
898
+ optional ::Pulsar::Proto::CommandGetTopicsOfNamespace, :getTopicsOfNamespace, 32
899
+ optional ::Pulsar::Proto::CommandGetTopicsOfNamespaceResponse, :getTopicsOfNamespaceResponse, 33
900
+ optional ::Pulsar::Proto::CommandGetSchema, :getSchema, 34
901
+ optional ::Pulsar::Proto::CommandGetSchemaResponse, :getSchemaResponse, 35
902
+ optional ::Pulsar::Proto::CommandAuthChallenge, :authChallenge, 36
903
+ optional ::Pulsar::Proto::CommandAuthResponse, :authResponse, 37
904
+ optional ::Pulsar::Proto::CommandAckResponse, :ackResponse, 38
905
+ optional ::Pulsar::Proto::CommandGetOrCreateSchema, :getOrCreateSchema, 39
906
+ optional ::Pulsar::Proto::CommandGetOrCreateSchemaResponse, :getOrCreateSchemaResponse, 40
907
+ optional ::Pulsar::Proto::CommandNewTxn, :newTxn, 50
908
+ optional ::Pulsar::Proto::CommandNewTxnResponse, :newTxnResponse, 51
909
+ optional ::Pulsar::Proto::CommandAddPartitionToTxn, :addPartitionToTxn, 52
910
+ optional ::Pulsar::Proto::CommandAddPartitionToTxnResponse, :addPartitionToTxnResponse, 53
911
+ optional ::Pulsar::Proto::CommandAddSubscriptionToTxn, :addSubscriptionToTxn, 54
912
+ optional ::Pulsar::Proto::CommandAddSubscriptionToTxnResponse, :addSubscriptionToTxnResponse, 55
913
+ optional ::Pulsar::Proto::CommandEndTxn, :endTxn, 56
914
+ optional ::Pulsar::Proto::CommandEndTxnResponse, :endTxnResponse, 57
915
+ optional ::Pulsar::Proto::CommandEndTxnOnPartition, :endTxnOnPartition, 58
916
+ optional ::Pulsar::Proto::CommandEndTxnOnPartitionResponse, :endTxnOnPartitionResponse, 59
917
+ optional ::Pulsar::Proto::CommandEndTxnOnSubscription, :endTxnOnSubscription, 60
918
+ optional ::Pulsar::Proto::CommandEndTxnOnSubscriptionResponse, :endTxnOnSubscriptionResponse, 61
919
+ optional ::Pulsar::Proto::CommandTcClientConnectRequest, :tcClientConnectRequest, 62
920
+ optional ::Pulsar::Proto::CommandTcClientConnectResponse, :tcClientConnectResponse, 63
921
+ optional ::Pulsar::Proto::CommandWatchTopicList, :watchTopicList, 64
922
+ optional ::Pulsar::Proto::CommandWatchTopicListSuccess, :watchTopicListSuccess, 65
923
+ optional ::Pulsar::Proto::CommandWatchTopicUpdate, :watchTopicUpdate, 66
924
+ optional ::Pulsar::Proto::CommandWatchTopicListClose, :watchTopicListClose, 67
925
+ end
926
+
927
+ end
928
+
929
+ end
930
+