kurrentdbclient 0.3__py3-none-any.whl

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.
Files changed (49) hide show
  1. kurrentdbclient/__init__.py +49 -0
  2. kurrentdbclient/asyncio_client.py +1662 -0
  3. kurrentdbclient/client.py +1914 -0
  4. kurrentdbclient/common.py +535 -0
  5. kurrentdbclient/connection.py +107 -0
  6. kurrentdbclient/connection_spec.py +371 -0
  7. kurrentdbclient/events.py +141 -0
  8. kurrentdbclient/exceptions.py +239 -0
  9. kurrentdbclient/gossip.py +104 -0
  10. kurrentdbclient/instrumentation/__init__.py +0 -0
  11. kurrentdbclient/instrumentation/opentelemetry/__init__.py +185 -0
  12. kurrentdbclient/instrumentation/opentelemetry/attributes.py +20 -0
  13. kurrentdbclient/instrumentation/opentelemetry/grpc.py +165 -0
  14. kurrentdbclient/instrumentation/opentelemetry/package.py +2 -0
  15. kurrentdbclient/instrumentation/opentelemetry/spanners.py +1097 -0
  16. kurrentdbclient/instrumentation/opentelemetry/utils.py +199 -0
  17. kurrentdbclient/instrumentation/opentelemetry/version.py +2 -0
  18. kurrentdbclient/persistent.py +1982 -0
  19. kurrentdbclient/projections.py +735 -0
  20. kurrentdbclient/protos/Grpc/cluster_pb2.py +92 -0
  21. kurrentdbclient/protos/Grpc/cluster_pb2.pyi +765 -0
  22. kurrentdbclient/protos/Grpc/cluster_pb2_grpc.py +514 -0
  23. kurrentdbclient/protos/Grpc/code_pb2.py +37 -0
  24. kurrentdbclient/protos/Grpc/code_pb2.pyi +357 -0
  25. kurrentdbclient/protos/Grpc/code_pb2_grpc.py +24 -0
  26. kurrentdbclient/protos/Grpc/gossip_pb2.py +46 -0
  27. kurrentdbclient/protos/Grpc/gossip_pb2.pyi +126 -0
  28. kurrentdbclient/protos/Grpc/gossip_pb2_grpc.py +98 -0
  29. kurrentdbclient/protos/Grpc/persistent_pb2.py +140 -0
  30. kurrentdbclient/protos/Grpc/persistent_pb2.pyi +1135 -0
  31. kurrentdbclient/protos/Grpc/persistent_pb2_grpc.py +399 -0
  32. kurrentdbclient/protos/Grpc/projections_pb2.py +99 -0
  33. kurrentdbclient/protos/Grpc/projections_pb2.pyi +558 -0
  34. kurrentdbclient/protos/Grpc/projections_pb2_grpc.py +485 -0
  35. kurrentdbclient/protos/Grpc/shared_pb2.py +62 -0
  36. kurrentdbclient/protos/Grpc/shared_pb2.pyi +218 -0
  37. kurrentdbclient/protos/Grpc/shared_pb2_grpc.py +24 -0
  38. kurrentdbclient/protos/Grpc/status_pb2.py +39 -0
  39. kurrentdbclient/protos/Grpc/status_pb2.pyi +67 -0
  40. kurrentdbclient/protos/Grpc/status_pb2_grpc.py +24 -0
  41. kurrentdbclient/protos/Grpc/streams_pb2.py +132 -0
  42. kurrentdbclient/protos/Grpc/streams_pb2.pyi +1038 -0
  43. kurrentdbclient/protos/Grpc/streams_pb2_grpc.py +269 -0
  44. kurrentdbclient/py.typed +0 -0
  45. kurrentdbclient/streams.py +1400 -0
  46. kurrentdbclient-0.3.dist-info/LICENSE +29 -0
  47. kurrentdbclient-0.3.dist-info/METADATA +3769 -0
  48. kurrentdbclient-0.3.dist-info/RECORD +49 -0
  49. kurrentdbclient-0.3.dist-info/WHEEL +4 -0
@@ -0,0 +1,1038 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
6
+ import builtins
7
+ import collections.abc
8
+ import google.protobuf.descriptor
9
+ import google.protobuf.duration_pb2
10
+ import google.protobuf.empty_pb2
11
+ import google.protobuf.internal.containers
12
+ import google.protobuf.internal.enum_type_wrapper
13
+ import google.protobuf.message
14
+ import google.protobuf.timestamp_pb2
15
+ import kurrentdbclient.protos.Grpc.shared_pb2
16
+ import kurrentdbclient.protos.Grpc.status_pb2
17
+ import sys
18
+ import typing
19
+
20
+ if sys.version_info >= (3, 10):
21
+ import typing as typing_extensions
22
+ else:
23
+ import typing_extensions
24
+
25
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
26
+
27
+ @typing.final
28
+ class ReadReq(google.protobuf.message.Message):
29
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
30
+
31
+ @typing.final
32
+ class Options(google.protobuf.message.Message):
33
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
34
+
35
+ class _ReadDirection:
36
+ ValueType = typing.NewType("ValueType", builtins.int)
37
+ V: typing_extensions.TypeAlias = ValueType
38
+
39
+ class _ReadDirectionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ReadReq.Options._ReadDirection.ValueType], builtins.type):
40
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
41
+ Forwards: ReadReq.Options._ReadDirection.ValueType # 0
42
+ Backwards: ReadReq.Options._ReadDirection.ValueType # 1
43
+
44
+ class ReadDirection(_ReadDirection, metaclass=_ReadDirectionEnumTypeWrapper): ...
45
+ Forwards: ReadReq.Options.ReadDirection.ValueType # 0
46
+ Backwards: ReadReq.Options.ReadDirection.ValueType # 1
47
+
48
+ @typing.final
49
+ class StreamOptions(google.protobuf.message.Message):
50
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
51
+
52
+ STREAM_IDENTIFIER_FIELD_NUMBER: builtins.int
53
+ REVISION_FIELD_NUMBER: builtins.int
54
+ START_FIELD_NUMBER: builtins.int
55
+ END_FIELD_NUMBER: builtins.int
56
+ revision: builtins.int
57
+ @property
58
+ def stream_identifier(self) -> kurrentdbclient.protos.Grpc.shared_pb2.StreamIdentifier: ...
59
+ @property
60
+ def start(self) -> kurrentdbclient.protos.Grpc.shared_pb2.Empty: ...
61
+ @property
62
+ def end(self) -> kurrentdbclient.protos.Grpc.shared_pb2.Empty: ...
63
+ def __init__(
64
+ self,
65
+ *,
66
+ stream_identifier: kurrentdbclient.protos.Grpc.shared_pb2.StreamIdentifier | None = ...,
67
+ revision: builtins.int = ...,
68
+ start: kurrentdbclient.protos.Grpc.shared_pb2.Empty | None = ...,
69
+ end: kurrentdbclient.protos.Grpc.shared_pb2.Empty | None = ...,
70
+ ) -> None: ...
71
+ def HasField(self, field_name: typing.Literal["end", b"end", "revision", b"revision", "revision_option", b"revision_option", "start", b"start", "stream_identifier", b"stream_identifier"]) -> builtins.bool: ...
72
+ def ClearField(self, field_name: typing.Literal["end", b"end", "revision", b"revision", "revision_option", b"revision_option", "start", b"start", "stream_identifier", b"stream_identifier"]) -> None: ...
73
+ def WhichOneof(self, oneof_group: typing.Literal["revision_option", b"revision_option"]) -> typing.Literal["revision", "start", "end"] | None: ...
74
+
75
+ @typing.final
76
+ class AllOptions(google.protobuf.message.Message):
77
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
78
+
79
+ POSITION_FIELD_NUMBER: builtins.int
80
+ START_FIELD_NUMBER: builtins.int
81
+ END_FIELD_NUMBER: builtins.int
82
+ @property
83
+ def position(self) -> global___ReadReq.Options.Position: ...
84
+ @property
85
+ def start(self) -> kurrentdbclient.protos.Grpc.shared_pb2.Empty: ...
86
+ @property
87
+ def end(self) -> kurrentdbclient.protos.Grpc.shared_pb2.Empty: ...
88
+ def __init__(
89
+ self,
90
+ *,
91
+ position: global___ReadReq.Options.Position | None = ...,
92
+ start: kurrentdbclient.protos.Grpc.shared_pb2.Empty | None = ...,
93
+ end: kurrentdbclient.protos.Grpc.shared_pb2.Empty | None = ...,
94
+ ) -> None: ...
95
+ def HasField(self, field_name: typing.Literal["all_option", b"all_option", "end", b"end", "position", b"position", "start", b"start"]) -> builtins.bool: ...
96
+ def ClearField(self, field_name: typing.Literal["all_option", b"all_option", "end", b"end", "position", b"position", "start", b"start"]) -> None: ...
97
+ def WhichOneof(self, oneof_group: typing.Literal["all_option", b"all_option"]) -> typing.Literal["position", "start", "end"] | None: ...
98
+
99
+ @typing.final
100
+ class SubscriptionOptions(google.protobuf.message.Message):
101
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
102
+
103
+ def __init__(
104
+ self,
105
+ ) -> None: ...
106
+
107
+ @typing.final
108
+ class Position(google.protobuf.message.Message):
109
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
110
+
111
+ COMMIT_POSITION_FIELD_NUMBER: builtins.int
112
+ PREPARE_POSITION_FIELD_NUMBER: builtins.int
113
+ commit_position: builtins.int
114
+ prepare_position: builtins.int
115
+ def __init__(
116
+ self,
117
+ *,
118
+ commit_position: builtins.int = ...,
119
+ prepare_position: builtins.int = ...,
120
+ ) -> None: ...
121
+ def ClearField(self, field_name: typing.Literal["commit_position", b"commit_position", "prepare_position", b"prepare_position"]) -> None: ...
122
+
123
+ @typing.final
124
+ class FilterOptions(google.protobuf.message.Message):
125
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
126
+
127
+ @typing.final
128
+ class Expression(google.protobuf.message.Message):
129
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
130
+
131
+ REGEX_FIELD_NUMBER: builtins.int
132
+ PREFIX_FIELD_NUMBER: builtins.int
133
+ regex: builtins.str
134
+ @property
135
+ def prefix(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
136
+ def __init__(
137
+ self,
138
+ *,
139
+ regex: builtins.str = ...,
140
+ prefix: collections.abc.Iterable[builtins.str] | None = ...,
141
+ ) -> None: ...
142
+ def ClearField(self, field_name: typing.Literal["prefix", b"prefix", "regex", b"regex"]) -> None: ...
143
+
144
+ STREAM_IDENTIFIER_FIELD_NUMBER: builtins.int
145
+ EVENT_TYPE_FIELD_NUMBER: builtins.int
146
+ MAX_FIELD_NUMBER: builtins.int
147
+ COUNT_FIELD_NUMBER: builtins.int
148
+ CHECKPOINTINTERVALMULTIPLIER_FIELD_NUMBER: builtins.int
149
+ max: builtins.int
150
+ checkpointIntervalMultiplier: builtins.int
151
+ @property
152
+ def stream_identifier(self) -> global___ReadReq.Options.FilterOptions.Expression: ...
153
+ @property
154
+ def event_type(self) -> global___ReadReq.Options.FilterOptions.Expression: ...
155
+ @property
156
+ def count(self) -> kurrentdbclient.protos.Grpc.shared_pb2.Empty: ...
157
+ def __init__(
158
+ self,
159
+ *,
160
+ stream_identifier: global___ReadReq.Options.FilterOptions.Expression | None = ...,
161
+ event_type: global___ReadReq.Options.FilterOptions.Expression | None = ...,
162
+ max: builtins.int = ...,
163
+ count: kurrentdbclient.protos.Grpc.shared_pb2.Empty | None = ...,
164
+ checkpointIntervalMultiplier: builtins.int = ...,
165
+ ) -> None: ...
166
+ def HasField(self, field_name: typing.Literal["count", b"count", "event_type", b"event_type", "filter", b"filter", "max", b"max", "stream_identifier", b"stream_identifier", "window", b"window"]) -> builtins.bool: ...
167
+ def ClearField(self, field_name: typing.Literal["checkpointIntervalMultiplier", b"checkpointIntervalMultiplier", "count", b"count", "event_type", b"event_type", "filter", b"filter", "max", b"max", "stream_identifier", b"stream_identifier", "window", b"window"]) -> None: ...
168
+ @typing.overload
169
+ def WhichOneof(self, oneof_group: typing.Literal["filter", b"filter"]) -> typing.Literal["stream_identifier", "event_type"] | None: ...
170
+ @typing.overload
171
+ def WhichOneof(self, oneof_group: typing.Literal["window", b"window"]) -> typing.Literal["max", "count"] | None: ...
172
+
173
+ @typing.final
174
+ class UUIDOption(google.protobuf.message.Message):
175
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
176
+
177
+ STRUCTURED_FIELD_NUMBER: builtins.int
178
+ STRING_FIELD_NUMBER: builtins.int
179
+ @property
180
+ def structured(self) -> kurrentdbclient.protos.Grpc.shared_pb2.Empty: ...
181
+ @property
182
+ def string(self) -> kurrentdbclient.protos.Grpc.shared_pb2.Empty: ...
183
+ def __init__(
184
+ self,
185
+ *,
186
+ structured: kurrentdbclient.protos.Grpc.shared_pb2.Empty | None = ...,
187
+ string: kurrentdbclient.protos.Grpc.shared_pb2.Empty | None = ...,
188
+ ) -> None: ...
189
+ def HasField(self, field_name: typing.Literal["content", b"content", "string", b"string", "structured", b"structured"]) -> builtins.bool: ...
190
+ def ClearField(self, field_name: typing.Literal["content", b"content", "string", b"string", "structured", b"structured"]) -> None: ...
191
+ def WhichOneof(self, oneof_group: typing.Literal["content", b"content"]) -> typing.Literal["structured", "string"] | None: ...
192
+
193
+ @typing.final
194
+ class ControlOption(google.protobuf.message.Message):
195
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
196
+
197
+ COMPATIBILITY_FIELD_NUMBER: builtins.int
198
+ compatibility: builtins.int
199
+ def __init__(
200
+ self,
201
+ *,
202
+ compatibility: builtins.int = ...,
203
+ ) -> None: ...
204
+ def ClearField(self, field_name: typing.Literal["compatibility", b"compatibility"]) -> None: ...
205
+
206
+ STREAM_FIELD_NUMBER: builtins.int
207
+ ALL_FIELD_NUMBER: builtins.int
208
+ READ_DIRECTION_FIELD_NUMBER: builtins.int
209
+ RESOLVE_LINKS_FIELD_NUMBER: builtins.int
210
+ COUNT_FIELD_NUMBER: builtins.int
211
+ SUBSCRIPTION_FIELD_NUMBER: builtins.int
212
+ FILTER_FIELD_NUMBER: builtins.int
213
+ NO_FILTER_FIELD_NUMBER: builtins.int
214
+ UUID_OPTION_FIELD_NUMBER: builtins.int
215
+ CONTROL_OPTION_FIELD_NUMBER: builtins.int
216
+ read_direction: global___ReadReq.Options.ReadDirection.ValueType
217
+ resolve_links: builtins.bool
218
+ count: builtins.int
219
+ @property
220
+ def stream(self) -> global___ReadReq.Options.StreamOptions: ...
221
+ @property
222
+ def all(self) -> global___ReadReq.Options.AllOptions: ...
223
+ @property
224
+ def subscription(self) -> global___ReadReq.Options.SubscriptionOptions: ...
225
+ @property
226
+ def filter(self) -> global___ReadReq.Options.FilterOptions: ...
227
+ @property
228
+ def no_filter(self) -> kurrentdbclient.protos.Grpc.shared_pb2.Empty: ...
229
+ @property
230
+ def uuid_option(self) -> global___ReadReq.Options.UUIDOption: ...
231
+ @property
232
+ def control_option(self) -> global___ReadReq.Options.ControlOption: ...
233
+ def __init__(
234
+ self,
235
+ *,
236
+ stream: global___ReadReq.Options.StreamOptions | None = ...,
237
+ all: global___ReadReq.Options.AllOptions | None = ...,
238
+ read_direction: global___ReadReq.Options.ReadDirection.ValueType = ...,
239
+ resolve_links: builtins.bool = ...,
240
+ count: builtins.int = ...,
241
+ subscription: global___ReadReq.Options.SubscriptionOptions | None = ...,
242
+ filter: global___ReadReq.Options.FilterOptions | None = ...,
243
+ no_filter: kurrentdbclient.protos.Grpc.shared_pb2.Empty | None = ...,
244
+ uuid_option: global___ReadReq.Options.UUIDOption | None = ...,
245
+ control_option: global___ReadReq.Options.ControlOption | None = ...,
246
+ ) -> None: ...
247
+ def HasField(self, field_name: typing.Literal["all", b"all", "control_option", b"control_option", "count", b"count", "count_option", b"count_option", "filter", b"filter", "filter_option", b"filter_option", "no_filter", b"no_filter", "stream", b"stream", "stream_option", b"stream_option", "subscription", b"subscription", "uuid_option", b"uuid_option"]) -> builtins.bool: ...
248
+ def ClearField(self, field_name: typing.Literal["all", b"all", "control_option", b"control_option", "count", b"count", "count_option", b"count_option", "filter", b"filter", "filter_option", b"filter_option", "no_filter", b"no_filter", "read_direction", b"read_direction", "resolve_links", b"resolve_links", "stream", b"stream", "stream_option", b"stream_option", "subscription", b"subscription", "uuid_option", b"uuid_option"]) -> None: ...
249
+ @typing.overload
250
+ def WhichOneof(self, oneof_group: typing.Literal["count_option", b"count_option"]) -> typing.Literal["count", "subscription"] | None: ...
251
+ @typing.overload
252
+ def WhichOneof(self, oneof_group: typing.Literal["filter_option", b"filter_option"]) -> typing.Literal["filter", "no_filter"] | None: ...
253
+ @typing.overload
254
+ def WhichOneof(self, oneof_group: typing.Literal["stream_option", b"stream_option"]) -> typing.Literal["stream", "all"] | None: ...
255
+
256
+ OPTIONS_FIELD_NUMBER: builtins.int
257
+ @property
258
+ def options(self) -> global___ReadReq.Options: ...
259
+ def __init__(
260
+ self,
261
+ *,
262
+ options: global___ReadReq.Options | None = ...,
263
+ ) -> None: ...
264
+ def HasField(self, field_name: typing.Literal["options", b"options"]) -> builtins.bool: ...
265
+ def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ...
266
+
267
+ global___ReadReq = ReadReq
268
+
269
+ @typing.final
270
+ class ReadResp(google.protobuf.message.Message):
271
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
272
+
273
+ @typing.final
274
+ class ReadEvent(google.protobuf.message.Message):
275
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
276
+
277
+ @typing.final
278
+ class RecordedEvent(google.protobuf.message.Message):
279
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
280
+
281
+ @typing.final
282
+ class MetadataEntry(google.protobuf.message.Message):
283
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
284
+
285
+ KEY_FIELD_NUMBER: builtins.int
286
+ VALUE_FIELD_NUMBER: builtins.int
287
+ key: builtins.str
288
+ value: builtins.str
289
+ def __init__(
290
+ self,
291
+ *,
292
+ key: builtins.str = ...,
293
+ value: builtins.str = ...,
294
+ ) -> None: ...
295
+ def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
296
+
297
+ ID_FIELD_NUMBER: builtins.int
298
+ STREAM_IDENTIFIER_FIELD_NUMBER: builtins.int
299
+ STREAM_REVISION_FIELD_NUMBER: builtins.int
300
+ PREPARE_POSITION_FIELD_NUMBER: builtins.int
301
+ COMMIT_POSITION_FIELD_NUMBER: builtins.int
302
+ METADATA_FIELD_NUMBER: builtins.int
303
+ CUSTOM_METADATA_FIELD_NUMBER: builtins.int
304
+ DATA_FIELD_NUMBER: builtins.int
305
+ stream_revision: builtins.int
306
+ prepare_position: builtins.int
307
+ commit_position: builtins.int
308
+ custom_metadata: builtins.bytes
309
+ data: builtins.bytes
310
+ @property
311
+ def id(self) -> kurrentdbclient.protos.Grpc.shared_pb2.UUID: ...
312
+ @property
313
+ def stream_identifier(self) -> kurrentdbclient.protos.Grpc.shared_pb2.StreamIdentifier: ...
314
+ @property
315
+ def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ...
316
+ def __init__(
317
+ self,
318
+ *,
319
+ id: kurrentdbclient.protos.Grpc.shared_pb2.UUID | None = ...,
320
+ stream_identifier: kurrentdbclient.protos.Grpc.shared_pb2.StreamIdentifier | None = ...,
321
+ stream_revision: builtins.int = ...,
322
+ prepare_position: builtins.int = ...,
323
+ commit_position: builtins.int = ...,
324
+ metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
325
+ custom_metadata: builtins.bytes = ...,
326
+ data: builtins.bytes = ...,
327
+ ) -> None: ...
328
+ def HasField(self, field_name: typing.Literal["id", b"id", "stream_identifier", b"stream_identifier"]) -> builtins.bool: ...
329
+ def ClearField(self, field_name: typing.Literal["commit_position", b"commit_position", "custom_metadata", b"custom_metadata", "data", b"data", "id", b"id", "metadata", b"metadata", "prepare_position", b"prepare_position", "stream_identifier", b"stream_identifier", "stream_revision", b"stream_revision"]) -> None: ...
330
+
331
+ EVENT_FIELD_NUMBER: builtins.int
332
+ LINK_FIELD_NUMBER: builtins.int
333
+ COMMIT_POSITION_FIELD_NUMBER: builtins.int
334
+ NO_POSITION_FIELD_NUMBER: builtins.int
335
+ commit_position: builtins.int
336
+ @property
337
+ def event(self) -> global___ReadResp.ReadEvent.RecordedEvent: ...
338
+ @property
339
+ def link(self) -> global___ReadResp.ReadEvent.RecordedEvent: ...
340
+ @property
341
+ def no_position(self) -> kurrentdbclient.protos.Grpc.shared_pb2.Empty: ...
342
+ def __init__(
343
+ self,
344
+ *,
345
+ event: global___ReadResp.ReadEvent.RecordedEvent | None = ...,
346
+ link: global___ReadResp.ReadEvent.RecordedEvent | None = ...,
347
+ commit_position: builtins.int = ...,
348
+ no_position: kurrentdbclient.protos.Grpc.shared_pb2.Empty | None = ...,
349
+ ) -> None: ...
350
+ def HasField(self, field_name: typing.Literal["commit_position", b"commit_position", "event", b"event", "link", b"link", "no_position", b"no_position", "position", b"position"]) -> builtins.bool: ...
351
+ def ClearField(self, field_name: typing.Literal["commit_position", b"commit_position", "event", b"event", "link", b"link", "no_position", b"no_position", "position", b"position"]) -> None: ...
352
+ def WhichOneof(self, oneof_group: typing.Literal["position", b"position"]) -> typing.Literal["commit_position", "no_position"] | None: ...
353
+
354
+ @typing.final
355
+ class SubscriptionConfirmation(google.protobuf.message.Message):
356
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
357
+
358
+ SUBSCRIPTION_ID_FIELD_NUMBER: builtins.int
359
+ subscription_id: builtins.str
360
+ def __init__(
361
+ self,
362
+ *,
363
+ subscription_id: builtins.str = ...,
364
+ ) -> None: ...
365
+ def ClearField(self, field_name: typing.Literal["subscription_id", b"subscription_id"]) -> None: ...
366
+
367
+ @typing.final
368
+ class Checkpoint(google.protobuf.message.Message):
369
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
370
+
371
+ COMMIT_POSITION_FIELD_NUMBER: builtins.int
372
+ PREPARE_POSITION_FIELD_NUMBER: builtins.int
373
+ commit_position: builtins.int
374
+ prepare_position: builtins.int
375
+ def __init__(
376
+ self,
377
+ *,
378
+ commit_position: builtins.int = ...,
379
+ prepare_position: builtins.int = ...,
380
+ ) -> None: ...
381
+ def ClearField(self, field_name: typing.Literal["commit_position", b"commit_position", "prepare_position", b"prepare_position"]) -> None: ...
382
+
383
+ @typing.final
384
+ class CaughtUp(google.protobuf.message.Message):
385
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
386
+
387
+ def __init__(
388
+ self,
389
+ ) -> None: ...
390
+
391
+ @typing.final
392
+ class FellBehind(google.protobuf.message.Message):
393
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
394
+
395
+ def __init__(
396
+ self,
397
+ ) -> None: ...
398
+
399
+ @typing.final
400
+ class StreamNotFound(google.protobuf.message.Message):
401
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
402
+
403
+ STREAM_IDENTIFIER_FIELD_NUMBER: builtins.int
404
+ @property
405
+ def stream_identifier(self) -> kurrentdbclient.protos.Grpc.shared_pb2.StreamIdentifier: ...
406
+ def __init__(
407
+ self,
408
+ *,
409
+ stream_identifier: kurrentdbclient.protos.Grpc.shared_pb2.StreamIdentifier | None = ...,
410
+ ) -> None: ...
411
+ def HasField(self, field_name: typing.Literal["stream_identifier", b"stream_identifier"]) -> builtins.bool: ...
412
+ def ClearField(self, field_name: typing.Literal["stream_identifier", b"stream_identifier"]) -> None: ...
413
+
414
+ EVENT_FIELD_NUMBER: builtins.int
415
+ CONFIRMATION_FIELD_NUMBER: builtins.int
416
+ CHECKPOINT_FIELD_NUMBER: builtins.int
417
+ STREAM_NOT_FOUND_FIELD_NUMBER: builtins.int
418
+ FIRST_STREAM_POSITION_FIELD_NUMBER: builtins.int
419
+ LAST_STREAM_POSITION_FIELD_NUMBER: builtins.int
420
+ LAST_ALL_STREAM_POSITION_FIELD_NUMBER: builtins.int
421
+ CAUGHT_UP_FIELD_NUMBER: builtins.int
422
+ FELL_BEHIND_FIELD_NUMBER: builtins.int
423
+ first_stream_position: builtins.int
424
+ last_stream_position: builtins.int
425
+ @property
426
+ def event(self) -> global___ReadResp.ReadEvent: ...
427
+ @property
428
+ def confirmation(self) -> global___ReadResp.SubscriptionConfirmation: ...
429
+ @property
430
+ def checkpoint(self) -> global___ReadResp.Checkpoint: ...
431
+ @property
432
+ def stream_not_found(self) -> global___ReadResp.StreamNotFound: ...
433
+ @property
434
+ def last_all_stream_position(self) -> kurrentdbclient.protos.Grpc.shared_pb2.AllStreamPosition: ...
435
+ @property
436
+ def caught_up(self) -> global___ReadResp.CaughtUp: ...
437
+ @property
438
+ def fell_behind(self) -> global___ReadResp.FellBehind: ...
439
+ def __init__(
440
+ self,
441
+ *,
442
+ event: global___ReadResp.ReadEvent | None = ...,
443
+ confirmation: global___ReadResp.SubscriptionConfirmation | None = ...,
444
+ checkpoint: global___ReadResp.Checkpoint | None = ...,
445
+ stream_not_found: global___ReadResp.StreamNotFound | None = ...,
446
+ first_stream_position: builtins.int = ...,
447
+ last_stream_position: builtins.int = ...,
448
+ last_all_stream_position: kurrentdbclient.protos.Grpc.shared_pb2.AllStreamPosition | None = ...,
449
+ caught_up: global___ReadResp.CaughtUp | None = ...,
450
+ fell_behind: global___ReadResp.FellBehind | None = ...,
451
+ ) -> None: ...
452
+ def HasField(self, field_name: typing.Literal["caught_up", b"caught_up", "checkpoint", b"checkpoint", "confirmation", b"confirmation", "content", b"content", "event", b"event", "fell_behind", b"fell_behind", "first_stream_position", b"first_stream_position", "last_all_stream_position", b"last_all_stream_position", "last_stream_position", b"last_stream_position", "stream_not_found", b"stream_not_found"]) -> builtins.bool: ...
453
+ def ClearField(self, field_name: typing.Literal["caught_up", b"caught_up", "checkpoint", b"checkpoint", "confirmation", b"confirmation", "content", b"content", "event", b"event", "fell_behind", b"fell_behind", "first_stream_position", b"first_stream_position", "last_all_stream_position", b"last_all_stream_position", "last_stream_position", b"last_stream_position", "stream_not_found", b"stream_not_found"]) -> None: ...
454
+ def WhichOneof(self, oneof_group: typing.Literal["content", b"content"]) -> typing.Literal["event", "confirmation", "checkpoint", "stream_not_found", "first_stream_position", "last_stream_position", "last_all_stream_position", "caught_up", "fell_behind"] | None: ...
455
+
456
+ global___ReadResp = ReadResp
457
+
458
+ @typing.final
459
+ class AppendReq(google.protobuf.message.Message):
460
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
461
+
462
+ @typing.final
463
+ class Options(google.protobuf.message.Message):
464
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
465
+
466
+ STREAM_IDENTIFIER_FIELD_NUMBER: builtins.int
467
+ REVISION_FIELD_NUMBER: builtins.int
468
+ NO_STREAM_FIELD_NUMBER: builtins.int
469
+ ANY_FIELD_NUMBER: builtins.int
470
+ STREAM_EXISTS_FIELD_NUMBER: builtins.int
471
+ revision: builtins.int
472
+ @property
473
+ def stream_identifier(self) -> kurrentdbclient.protos.Grpc.shared_pb2.StreamIdentifier: ...
474
+ @property
475
+ def no_stream(self) -> kurrentdbclient.protos.Grpc.shared_pb2.Empty: ...
476
+ @property
477
+ def any(self) -> kurrentdbclient.protos.Grpc.shared_pb2.Empty: ...
478
+ @property
479
+ def stream_exists(self) -> kurrentdbclient.protos.Grpc.shared_pb2.Empty: ...
480
+ def __init__(
481
+ self,
482
+ *,
483
+ stream_identifier: kurrentdbclient.protos.Grpc.shared_pb2.StreamIdentifier | None = ...,
484
+ revision: builtins.int = ...,
485
+ no_stream: kurrentdbclient.protos.Grpc.shared_pb2.Empty | None = ...,
486
+ any: kurrentdbclient.protos.Grpc.shared_pb2.Empty | None = ...,
487
+ stream_exists: kurrentdbclient.protos.Grpc.shared_pb2.Empty | None = ...,
488
+ ) -> None: ...
489
+ def HasField(self, field_name: typing.Literal["any", b"any", "expected_stream_revision", b"expected_stream_revision", "no_stream", b"no_stream", "revision", b"revision", "stream_exists", b"stream_exists", "stream_identifier", b"stream_identifier"]) -> builtins.bool: ...
490
+ def ClearField(self, field_name: typing.Literal["any", b"any", "expected_stream_revision", b"expected_stream_revision", "no_stream", b"no_stream", "revision", b"revision", "stream_exists", b"stream_exists", "stream_identifier", b"stream_identifier"]) -> None: ...
491
+ def WhichOneof(self, oneof_group: typing.Literal["expected_stream_revision", b"expected_stream_revision"]) -> typing.Literal["revision", "no_stream", "any", "stream_exists"] | None: ...
492
+
493
+ @typing.final
494
+ class ProposedMessage(google.protobuf.message.Message):
495
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
496
+
497
+ @typing.final
498
+ class MetadataEntry(google.protobuf.message.Message):
499
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
500
+
501
+ KEY_FIELD_NUMBER: builtins.int
502
+ VALUE_FIELD_NUMBER: builtins.int
503
+ key: builtins.str
504
+ value: builtins.str
505
+ def __init__(
506
+ self,
507
+ *,
508
+ key: builtins.str = ...,
509
+ value: builtins.str = ...,
510
+ ) -> None: ...
511
+ def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
512
+
513
+ ID_FIELD_NUMBER: builtins.int
514
+ METADATA_FIELD_NUMBER: builtins.int
515
+ CUSTOM_METADATA_FIELD_NUMBER: builtins.int
516
+ DATA_FIELD_NUMBER: builtins.int
517
+ custom_metadata: builtins.bytes
518
+ data: builtins.bytes
519
+ @property
520
+ def id(self) -> kurrentdbclient.protos.Grpc.shared_pb2.UUID: ...
521
+ @property
522
+ def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ...
523
+ def __init__(
524
+ self,
525
+ *,
526
+ id: kurrentdbclient.protos.Grpc.shared_pb2.UUID | None = ...,
527
+ metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
528
+ custom_metadata: builtins.bytes = ...,
529
+ data: builtins.bytes = ...,
530
+ ) -> None: ...
531
+ def HasField(self, field_name: typing.Literal["id", b"id"]) -> builtins.bool: ...
532
+ def ClearField(self, field_name: typing.Literal["custom_metadata", b"custom_metadata", "data", b"data", "id", b"id", "metadata", b"metadata"]) -> None: ...
533
+
534
+ OPTIONS_FIELD_NUMBER: builtins.int
535
+ PROPOSED_MESSAGE_FIELD_NUMBER: builtins.int
536
+ @property
537
+ def options(self) -> global___AppendReq.Options: ...
538
+ @property
539
+ def proposed_message(self) -> global___AppendReq.ProposedMessage: ...
540
+ def __init__(
541
+ self,
542
+ *,
543
+ options: global___AppendReq.Options | None = ...,
544
+ proposed_message: global___AppendReq.ProposedMessage | None = ...,
545
+ ) -> None: ...
546
+ def HasField(self, field_name: typing.Literal["content", b"content", "options", b"options", "proposed_message", b"proposed_message"]) -> builtins.bool: ...
547
+ def ClearField(self, field_name: typing.Literal["content", b"content", "options", b"options", "proposed_message", b"proposed_message"]) -> None: ...
548
+ def WhichOneof(self, oneof_group: typing.Literal["content", b"content"]) -> typing.Literal["options", "proposed_message"] | None: ...
549
+
550
+ global___AppendReq = AppendReq
551
+
552
+ @typing.final
553
+ class AppendResp(google.protobuf.message.Message):
554
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
555
+
556
+ @typing.final
557
+ class Position(google.protobuf.message.Message):
558
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
559
+
560
+ COMMIT_POSITION_FIELD_NUMBER: builtins.int
561
+ PREPARE_POSITION_FIELD_NUMBER: builtins.int
562
+ commit_position: builtins.int
563
+ prepare_position: builtins.int
564
+ def __init__(
565
+ self,
566
+ *,
567
+ commit_position: builtins.int = ...,
568
+ prepare_position: builtins.int = ...,
569
+ ) -> None: ...
570
+ def ClearField(self, field_name: typing.Literal["commit_position", b"commit_position", "prepare_position", b"prepare_position"]) -> None: ...
571
+
572
+ @typing.final
573
+ class Success(google.protobuf.message.Message):
574
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
575
+
576
+ CURRENT_REVISION_FIELD_NUMBER: builtins.int
577
+ NO_STREAM_FIELD_NUMBER: builtins.int
578
+ POSITION_FIELD_NUMBER: builtins.int
579
+ NO_POSITION_FIELD_NUMBER: builtins.int
580
+ current_revision: builtins.int
581
+ @property
582
+ def no_stream(self) -> kurrentdbclient.protos.Grpc.shared_pb2.Empty: ...
583
+ @property
584
+ def position(self) -> global___AppendResp.Position: ...
585
+ @property
586
+ def no_position(self) -> kurrentdbclient.protos.Grpc.shared_pb2.Empty: ...
587
+ def __init__(
588
+ self,
589
+ *,
590
+ current_revision: builtins.int = ...,
591
+ no_stream: kurrentdbclient.protos.Grpc.shared_pb2.Empty | None = ...,
592
+ position: global___AppendResp.Position | None = ...,
593
+ no_position: kurrentdbclient.protos.Grpc.shared_pb2.Empty | None = ...,
594
+ ) -> None: ...
595
+ def HasField(self, field_name: typing.Literal["current_revision", b"current_revision", "current_revision_option", b"current_revision_option", "no_position", b"no_position", "no_stream", b"no_stream", "position", b"position", "position_option", b"position_option"]) -> builtins.bool: ...
596
+ def ClearField(self, field_name: typing.Literal["current_revision", b"current_revision", "current_revision_option", b"current_revision_option", "no_position", b"no_position", "no_stream", b"no_stream", "position", b"position", "position_option", b"position_option"]) -> None: ...
597
+ @typing.overload
598
+ def WhichOneof(self, oneof_group: typing.Literal["current_revision_option", b"current_revision_option"]) -> typing.Literal["current_revision", "no_stream"] | None: ...
599
+ @typing.overload
600
+ def WhichOneof(self, oneof_group: typing.Literal["position_option", b"position_option"]) -> typing.Literal["position", "no_position"] | None: ...
601
+
602
+ @typing.final
603
+ class WrongExpectedVersion(google.protobuf.message.Message):
604
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
605
+
606
+ CURRENT_REVISION_20_6_0_FIELD_NUMBER: builtins.int
607
+ NO_STREAM_20_6_0_FIELD_NUMBER: builtins.int
608
+ EXPECTED_REVISION_20_6_0_FIELD_NUMBER: builtins.int
609
+ ANY_20_6_0_FIELD_NUMBER: builtins.int
610
+ STREAM_EXISTS_20_6_0_FIELD_NUMBER: builtins.int
611
+ CURRENT_REVISION_FIELD_NUMBER: builtins.int
612
+ CURRENT_NO_STREAM_FIELD_NUMBER: builtins.int
613
+ EXPECTED_REVISION_FIELD_NUMBER: builtins.int
614
+ EXPECTED_ANY_FIELD_NUMBER: builtins.int
615
+ EXPECTED_STREAM_EXISTS_FIELD_NUMBER: builtins.int
616
+ EXPECTED_NO_STREAM_FIELD_NUMBER: builtins.int
617
+ current_revision_20_6_0: builtins.int
618
+ expected_revision_20_6_0: builtins.int
619
+ current_revision: builtins.int
620
+ expected_revision: builtins.int
621
+ @property
622
+ def no_stream_20_6_0(self) -> kurrentdbclient.protos.Grpc.shared_pb2.Empty: ...
623
+ @property
624
+ def any_20_6_0(self) -> kurrentdbclient.protos.Grpc.shared_pb2.Empty: ...
625
+ @property
626
+ def stream_exists_20_6_0(self) -> kurrentdbclient.protos.Grpc.shared_pb2.Empty: ...
627
+ @property
628
+ def current_no_stream(self) -> kurrentdbclient.protos.Grpc.shared_pb2.Empty: ...
629
+ @property
630
+ def expected_any(self) -> kurrentdbclient.protos.Grpc.shared_pb2.Empty: ...
631
+ @property
632
+ def expected_stream_exists(self) -> kurrentdbclient.protos.Grpc.shared_pb2.Empty: ...
633
+ @property
634
+ def expected_no_stream(self) -> kurrentdbclient.protos.Grpc.shared_pb2.Empty: ...
635
+ def __init__(
636
+ self,
637
+ *,
638
+ current_revision_20_6_0: builtins.int = ...,
639
+ no_stream_20_6_0: kurrentdbclient.protos.Grpc.shared_pb2.Empty | None = ...,
640
+ expected_revision_20_6_0: builtins.int = ...,
641
+ any_20_6_0: kurrentdbclient.protos.Grpc.shared_pb2.Empty | None = ...,
642
+ stream_exists_20_6_0: kurrentdbclient.protos.Grpc.shared_pb2.Empty | None = ...,
643
+ current_revision: builtins.int = ...,
644
+ current_no_stream: kurrentdbclient.protos.Grpc.shared_pb2.Empty | None = ...,
645
+ expected_revision: builtins.int = ...,
646
+ expected_any: kurrentdbclient.protos.Grpc.shared_pb2.Empty | None = ...,
647
+ expected_stream_exists: kurrentdbclient.protos.Grpc.shared_pb2.Empty | None = ...,
648
+ expected_no_stream: kurrentdbclient.protos.Grpc.shared_pb2.Empty | None = ...,
649
+ ) -> None: ...
650
+ def HasField(self, field_name: typing.Literal["any_20_6_0", b"any_20_6_0", "current_no_stream", b"current_no_stream", "current_revision", b"current_revision", "current_revision_20_6_0", b"current_revision_20_6_0", "current_revision_option", b"current_revision_option", "current_revision_option_20_6_0", b"current_revision_option_20_6_0", "expected_any", b"expected_any", "expected_no_stream", b"expected_no_stream", "expected_revision", b"expected_revision", "expected_revision_20_6_0", b"expected_revision_20_6_0", "expected_revision_option", b"expected_revision_option", "expected_revision_option_20_6_0", b"expected_revision_option_20_6_0", "expected_stream_exists", b"expected_stream_exists", "no_stream_20_6_0", b"no_stream_20_6_0", "stream_exists_20_6_0", b"stream_exists_20_6_0"]) -> builtins.bool: ...
651
+ def ClearField(self, field_name: typing.Literal["any_20_6_0", b"any_20_6_0", "current_no_stream", b"current_no_stream", "current_revision", b"current_revision", "current_revision_20_6_0", b"current_revision_20_6_0", "current_revision_option", b"current_revision_option", "current_revision_option_20_6_0", b"current_revision_option_20_6_0", "expected_any", b"expected_any", "expected_no_stream", b"expected_no_stream", "expected_revision", b"expected_revision", "expected_revision_20_6_0", b"expected_revision_20_6_0", "expected_revision_option", b"expected_revision_option", "expected_revision_option_20_6_0", b"expected_revision_option_20_6_0", "expected_stream_exists", b"expected_stream_exists", "no_stream_20_6_0", b"no_stream_20_6_0", "stream_exists_20_6_0", b"stream_exists_20_6_0"]) -> None: ...
652
+ @typing.overload
653
+ def WhichOneof(self, oneof_group: typing.Literal["current_revision_option", b"current_revision_option"]) -> typing.Literal["current_revision", "current_no_stream"] | None: ...
654
+ @typing.overload
655
+ def WhichOneof(self, oneof_group: typing.Literal["current_revision_option_20_6_0", b"current_revision_option_20_6_0"]) -> typing.Literal["current_revision_20_6_0", "no_stream_20_6_0"] | None: ...
656
+ @typing.overload
657
+ def WhichOneof(self, oneof_group: typing.Literal["expected_revision_option", b"expected_revision_option"]) -> typing.Literal["expected_revision", "expected_any", "expected_stream_exists", "expected_no_stream"] | None: ...
658
+ @typing.overload
659
+ def WhichOneof(self, oneof_group: typing.Literal["expected_revision_option_20_6_0", b"expected_revision_option_20_6_0"]) -> typing.Literal["expected_revision_20_6_0", "any_20_6_0", "stream_exists_20_6_0"] | None: ...
660
+
661
+ SUCCESS_FIELD_NUMBER: builtins.int
662
+ WRONG_EXPECTED_VERSION_FIELD_NUMBER: builtins.int
663
+ @property
664
+ def success(self) -> global___AppendResp.Success: ...
665
+ @property
666
+ def wrong_expected_version(self) -> global___AppendResp.WrongExpectedVersion: ...
667
+ def __init__(
668
+ self,
669
+ *,
670
+ success: global___AppendResp.Success | None = ...,
671
+ wrong_expected_version: global___AppendResp.WrongExpectedVersion | None = ...,
672
+ ) -> None: ...
673
+ def HasField(self, field_name: typing.Literal["result", b"result", "success", b"success", "wrong_expected_version", b"wrong_expected_version"]) -> builtins.bool: ...
674
+ def ClearField(self, field_name: typing.Literal["result", b"result", "success", b"success", "wrong_expected_version", b"wrong_expected_version"]) -> None: ...
675
+ def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["success", "wrong_expected_version"] | None: ...
676
+
677
+ global___AppendResp = AppendResp
678
+
679
+ @typing.final
680
+ class BatchAppendReq(google.protobuf.message.Message):
681
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
682
+
683
+ @typing.final
684
+ class Options(google.protobuf.message.Message):
685
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
686
+
687
+ STREAM_IDENTIFIER_FIELD_NUMBER: builtins.int
688
+ STREAM_POSITION_FIELD_NUMBER: builtins.int
689
+ NO_STREAM_FIELD_NUMBER: builtins.int
690
+ ANY_FIELD_NUMBER: builtins.int
691
+ STREAM_EXISTS_FIELD_NUMBER: builtins.int
692
+ DEADLINE_21_10_0_FIELD_NUMBER: builtins.int
693
+ DEADLINE_FIELD_NUMBER: builtins.int
694
+ stream_position: builtins.int
695
+ @property
696
+ def stream_identifier(self) -> kurrentdbclient.protos.Grpc.shared_pb2.StreamIdentifier: ...
697
+ @property
698
+ def no_stream(self) -> google.protobuf.empty_pb2.Empty: ...
699
+ @property
700
+ def any(self) -> google.protobuf.empty_pb2.Empty: ...
701
+ @property
702
+ def stream_exists(self) -> google.protobuf.empty_pb2.Empty: ...
703
+ @property
704
+ def deadline_21_10_0(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
705
+ @property
706
+ def deadline(self) -> google.protobuf.duration_pb2.Duration: ...
707
+ def __init__(
708
+ self,
709
+ *,
710
+ stream_identifier: kurrentdbclient.protos.Grpc.shared_pb2.StreamIdentifier | None = ...,
711
+ stream_position: builtins.int = ...,
712
+ no_stream: google.protobuf.empty_pb2.Empty | None = ...,
713
+ any: google.protobuf.empty_pb2.Empty | None = ...,
714
+ stream_exists: google.protobuf.empty_pb2.Empty | None = ...,
715
+ deadline_21_10_0: google.protobuf.timestamp_pb2.Timestamp | None = ...,
716
+ deadline: google.protobuf.duration_pb2.Duration | None = ...,
717
+ ) -> None: ...
718
+ def HasField(self, field_name: typing.Literal["any", b"any", "deadline", b"deadline", "deadline_21_10_0", b"deadline_21_10_0", "deadline_option", b"deadline_option", "expected_stream_position", b"expected_stream_position", "no_stream", b"no_stream", "stream_exists", b"stream_exists", "stream_identifier", b"stream_identifier", "stream_position", b"stream_position"]) -> builtins.bool: ...
719
+ def ClearField(self, field_name: typing.Literal["any", b"any", "deadline", b"deadline", "deadline_21_10_0", b"deadline_21_10_0", "deadline_option", b"deadline_option", "expected_stream_position", b"expected_stream_position", "no_stream", b"no_stream", "stream_exists", b"stream_exists", "stream_identifier", b"stream_identifier", "stream_position", b"stream_position"]) -> None: ...
720
+ @typing.overload
721
+ def WhichOneof(self, oneof_group: typing.Literal["deadline_option", b"deadline_option"]) -> typing.Literal["deadline_21_10_0", "deadline"] | None: ...
722
+ @typing.overload
723
+ def WhichOneof(self, oneof_group: typing.Literal["expected_stream_position", b"expected_stream_position"]) -> typing.Literal["stream_position", "no_stream", "any", "stream_exists"] | None: ...
724
+
725
+ @typing.final
726
+ class ProposedMessage(google.protobuf.message.Message):
727
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
728
+
729
+ @typing.final
730
+ class MetadataEntry(google.protobuf.message.Message):
731
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
732
+
733
+ KEY_FIELD_NUMBER: builtins.int
734
+ VALUE_FIELD_NUMBER: builtins.int
735
+ key: builtins.str
736
+ value: builtins.str
737
+ def __init__(
738
+ self,
739
+ *,
740
+ key: builtins.str = ...,
741
+ value: builtins.str = ...,
742
+ ) -> None: ...
743
+ def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
744
+
745
+ ID_FIELD_NUMBER: builtins.int
746
+ METADATA_FIELD_NUMBER: builtins.int
747
+ CUSTOM_METADATA_FIELD_NUMBER: builtins.int
748
+ DATA_FIELD_NUMBER: builtins.int
749
+ custom_metadata: builtins.bytes
750
+ data: builtins.bytes
751
+ @property
752
+ def id(self) -> kurrentdbclient.protos.Grpc.shared_pb2.UUID: ...
753
+ @property
754
+ def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ...
755
+ def __init__(
756
+ self,
757
+ *,
758
+ id: kurrentdbclient.protos.Grpc.shared_pb2.UUID | None = ...,
759
+ metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
760
+ custom_metadata: builtins.bytes = ...,
761
+ data: builtins.bytes = ...,
762
+ ) -> None: ...
763
+ def HasField(self, field_name: typing.Literal["id", b"id"]) -> builtins.bool: ...
764
+ def ClearField(self, field_name: typing.Literal["custom_metadata", b"custom_metadata", "data", b"data", "id", b"id", "metadata", b"metadata"]) -> None: ...
765
+
766
+ CORRELATION_ID_FIELD_NUMBER: builtins.int
767
+ OPTIONS_FIELD_NUMBER: builtins.int
768
+ PROPOSED_MESSAGES_FIELD_NUMBER: builtins.int
769
+ IS_FINAL_FIELD_NUMBER: builtins.int
770
+ is_final: builtins.bool
771
+ @property
772
+ def correlation_id(self) -> kurrentdbclient.protos.Grpc.shared_pb2.UUID: ...
773
+ @property
774
+ def options(self) -> global___BatchAppendReq.Options: ...
775
+ @property
776
+ def proposed_messages(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___BatchAppendReq.ProposedMessage]: ...
777
+ def __init__(
778
+ self,
779
+ *,
780
+ correlation_id: kurrentdbclient.protos.Grpc.shared_pb2.UUID | None = ...,
781
+ options: global___BatchAppendReq.Options | None = ...,
782
+ proposed_messages: collections.abc.Iterable[global___BatchAppendReq.ProposedMessage] | None = ...,
783
+ is_final: builtins.bool = ...,
784
+ ) -> None: ...
785
+ def HasField(self, field_name: typing.Literal["correlation_id", b"correlation_id", "options", b"options"]) -> builtins.bool: ...
786
+ def ClearField(self, field_name: typing.Literal["correlation_id", b"correlation_id", "is_final", b"is_final", "options", b"options", "proposed_messages", b"proposed_messages"]) -> None: ...
787
+
788
+ global___BatchAppendReq = BatchAppendReq
789
+
790
+ @typing.final
791
+ class BatchAppendResp(google.protobuf.message.Message):
792
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
793
+
794
+ @typing.final
795
+ class Success(google.protobuf.message.Message):
796
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
797
+
798
+ CURRENT_REVISION_FIELD_NUMBER: builtins.int
799
+ NO_STREAM_FIELD_NUMBER: builtins.int
800
+ POSITION_FIELD_NUMBER: builtins.int
801
+ NO_POSITION_FIELD_NUMBER: builtins.int
802
+ current_revision: builtins.int
803
+ @property
804
+ def no_stream(self) -> google.protobuf.empty_pb2.Empty: ...
805
+ @property
806
+ def position(self) -> kurrentdbclient.protos.Grpc.shared_pb2.AllStreamPosition: ...
807
+ @property
808
+ def no_position(self) -> google.protobuf.empty_pb2.Empty: ...
809
+ def __init__(
810
+ self,
811
+ *,
812
+ current_revision: builtins.int = ...,
813
+ no_stream: google.protobuf.empty_pb2.Empty | None = ...,
814
+ position: kurrentdbclient.protos.Grpc.shared_pb2.AllStreamPosition | None = ...,
815
+ no_position: google.protobuf.empty_pb2.Empty | None = ...,
816
+ ) -> None: ...
817
+ def HasField(self, field_name: typing.Literal["current_revision", b"current_revision", "current_revision_option", b"current_revision_option", "no_position", b"no_position", "no_stream", b"no_stream", "position", b"position", "position_option", b"position_option"]) -> builtins.bool: ...
818
+ def ClearField(self, field_name: typing.Literal["current_revision", b"current_revision", "current_revision_option", b"current_revision_option", "no_position", b"no_position", "no_stream", b"no_stream", "position", b"position", "position_option", b"position_option"]) -> None: ...
819
+ @typing.overload
820
+ def WhichOneof(self, oneof_group: typing.Literal["current_revision_option", b"current_revision_option"]) -> typing.Literal["current_revision", "no_stream"] | None: ...
821
+ @typing.overload
822
+ def WhichOneof(self, oneof_group: typing.Literal["position_option", b"position_option"]) -> typing.Literal["position", "no_position"] | None: ...
823
+
824
+ CORRELATION_ID_FIELD_NUMBER: builtins.int
825
+ ERROR_FIELD_NUMBER: builtins.int
826
+ SUCCESS_FIELD_NUMBER: builtins.int
827
+ STREAM_IDENTIFIER_FIELD_NUMBER: builtins.int
828
+ STREAM_POSITION_FIELD_NUMBER: builtins.int
829
+ NO_STREAM_FIELD_NUMBER: builtins.int
830
+ ANY_FIELD_NUMBER: builtins.int
831
+ STREAM_EXISTS_FIELD_NUMBER: builtins.int
832
+ stream_position: builtins.int
833
+ @property
834
+ def correlation_id(self) -> kurrentdbclient.protos.Grpc.shared_pb2.UUID: ...
835
+ @property
836
+ def error(self) -> kurrentdbclient.protos.Grpc.status_pb2.Status: ...
837
+ @property
838
+ def success(self) -> global___BatchAppendResp.Success: ...
839
+ @property
840
+ def stream_identifier(self) -> kurrentdbclient.protos.Grpc.shared_pb2.StreamIdentifier: ...
841
+ @property
842
+ def no_stream(self) -> google.protobuf.empty_pb2.Empty: ...
843
+ @property
844
+ def any(self) -> google.protobuf.empty_pb2.Empty: ...
845
+ @property
846
+ def stream_exists(self) -> google.protobuf.empty_pb2.Empty: ...
847
+ def __init__(
848
+ self,
849
+ *,
850
+ correlation_id: kurrentdbclient.protos.Grpc.shared_pb2.UUID | None = ...,
851
+ error: kurrentdbclient.protos.Grpc.status_pb2.Status | None = ...,
852
+ success: global___BatchAppendResp.Success | None = ...,
853
+ stream_identifier: kurrentdbclient.protos.Grpc.shared_pb2.StreamIdentifier | None = ...,
854
+ stream_position: builtins.int = ...,
855
+ no_stream: google.protobuf.empty_pb2.Empty | None = ...,
856
+ any: google.protobuf.empty_pb2.Empty | None = ...,
857
+ stream_exists: google.protobuf.empty_pb2.Empty | None = ...,
858
+ ) -> None: ...
859
+ def HasField(self, field_name: typing.Literal["any", b"any", "correlation_id", b"correlation_id", "error", b"error", "expected_stream_position", b"expected_stream_position", "no_stream", b"no_stream", "result", b"result", "stream_exists", b"stream_exists", "stream_identifier", b"stream_identifier", "stream_position", b"stream_position", "success", b"success"]) -> builtins.bool: ...
860
+ def ClearField(self, field_name: typing.Literal["any", b"any", "correlation_id", b"correlation_id", "error", b"error", "expected_stream_position", b"expected_stream_position", "no_stream", b"no_stream", "result", b"result", "stream_exists", b"stream_exists", "stream_identifier", b"stream_identifier", "stream_position", b"stream_position", "success", b"success"]) -> None: ...
861
+ @typing.overload
862
+ def WhichOneof(self, oneof_group: typing.Literal["expected_stream_position", b"expected_stream_position"]) -> typing.Literal["stream_position", "no_stream", "any", "stream_exists"] | None: ...
863
+ @typing.overload
864
+ def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["error", "success"] | None: ...
865
+
866
+ global___BatchAppendResp = BatchAppendResp
867
+
868
+ @typing.final
869
+ class DeleteReq(google.protobuf.message.Message):
870
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
871
+
872
+ @typing.final
873
+ class Options(google.protobuf.message.Message):
874
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
875
+
876
+ STREAM_IDENTIFIER_FIELD_NUMBER: builtins.int
877
+ REVISION_FIELD_NUMBER: builtins.int
878
+ NO_STREAM_FIELD_NUMBER: builtins.int
879
+ ANY_FIELD_NUMBER: builtins.int
880
+ STREAM_EXISTS_FIELD_NUMBER: builtins.int
881
+ revision: builtins.int
882
+ @property
883
+ def stream_identifier(self) -> kurrentdbclient.protos.Grpc.shared_pb2.StreamIdentifier: ...
884
+ @property
885
+ def no_stream(self) -> kurrentdbclient.protos.Grpc.shared_pb2.Empty: ...
886
+ @property
887
+ def any(self) -> kurrentdbclient.protos.Grpc.shared_pb2.Empty: ...
888
+ @property
889
+ def stream_exists(self) -> kurrentdbclient.protos.Grpc.shared_pb2.Empty: ...
890
+ def __init__(
891
+ self,
892
+ *,
893
+ stream_identifier: kurrentdbclient.protos.Grpc.shared_pb2.StreamIdentifier | None = ...,
894
+ revision: builtins.int = ...,
895
+ no_stream: kurrentdbclient.protos.Grpc.shared_pb2.Empty | None = ...,
896
+ any: kurrentdbclient.protos.Grpc.shared_pb2.Empty | None = ...,
897
+ stream_exists: kurrentdbclient.protos.Grpc.shared_pb2.Empty | None = ...,
898
+ ) -> None: ...
899
+ def HasField(self, field_name: typing.Literal["any", b"any", "expected_stream_revision", b"expected_stream_revision", "no_stream", b"no_stream", "revision", b"revision", "stream_exists", b"stream_exists", "stream_identifier", b"stream_identifier"]) -> builtins.bool: ...
900
+ def ClearField(self, field_name: typing.Literal["any", b"any", "expected_stream_revision", b"expected_stream_revision", "no_stream", b"no_stream", "revision", b"revision", "stream_exists", b"stream_exists", "stream_identifier", b"stream_identifier"]) -> None: ...
901
+ def WhichOneof(self, oneof_group: typing.Literal["expected_stream_revision", b"expected_stream_revision"]) -> typing.Literal["revision", "no_stream", "any", "stream_exists"] | None: ...
902
+
903
+ OPTIONS_FIELD_NUMBER: builtins.int
904
+ @property
905
+ def options(self) -> global___DeleteReq.Options: ...
906
+ def __init__(
907
+ self,
908
+ *,
909
+ options: global___DeleteReq.Options | None = ...,
910
+ ) -> None: ...
911
+ def HasField(self, field_name: typing.Literal["options", b"options"]) -> builtins.bool: ...
912
+ def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ...
913
+
914
+ global___DeleteReq = DeleteReq
915
+
916
+ @typing.final
917
+ class DeleteResp(google.protobuf.message.Message):
918
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
919
+
920
+ @typing.final
921
+ class Position(google.protobuf.message.Message):
922
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
923
+
924
+ COMMIT_POSITION_FIELD_NUMBER: builtins.int
925
+ PREPARE_POSITION_FIELD_NUMBER: builtins.int
926
+ commit_position: builtins.int
927
+ prepare_position: builtins.int
928
+ def __init__(
929
+ self,
930
+ *,
931
+ commit_position: builtins.int = ...,
932
+ prepare_position: builtins.int = ...,
933
+ ) -> None: ...
934
+ def ClearField(self, field_name: typing.Literal["commit_position", b"commit_position", "prepare_position", b"prepare_position"]) -> None: ...
935
+
936
+ POSITION_FIELD_NUMBER: builtins.int
937
+ NO_POSITION_FIELD_NUMBER: builtins.int
938
+ @property
939
+ def position(self) -> global___DeleteResp.Position: ...
940
+ @property
941
+ def no_position(self) -> kurrentdbclient.protos.Grpc.shared_pb2.Empty: ...
942
+ def __init__(
943
+ self,
944
+ *,
945
+ position: global___DeleteResp.Position | None = ...,
946
+ no_position: kurrentdbclient.protos.Grpc.shared_pb2.Empty | None = ...,
947
+ ) -> None: ...
948
+ def HasField(self, field_name: typing.Literal["no_position", b"no_position", "position", b"position", "position_option", b"position_option"]) -> builtins.bool: ...
949
+ def ClearField(self, field_name: typing.Literal["no_position", b"no_position", "position", b"position", "position_option", b"position_option"]) -> None: ...
950
+ def WhichOneof(self, oneof_group: typing.Literal["position_option", b"position_option"]) -> typing.Literal["position", "no_position"] | None: ...
951
+
952
+ global___DeleteResp = DeleteResp
953
+
954
+ @typing.final
955
+ class TombstoneReq(google.protobuf.message.Message):
956
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
957
+
958
+ @typing.final
959
+ class Options(google.protobuf.message.Message):
960
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
961
+
962
+ STREAM_IDENTIFIER_FIELD_NUMBER: builtins.int
963
+ REVISION_FIELD_NUMBER: builtins.int
964
+ NO_STREAM_FIELD_NUMBER: builtins.int
965
+ ANY_FIELD_NUMBER: builtins.int
966
+ STREAM_EXISTS_FIELD_NUMBER: builtins.int
967
+ revision: builtins.int
968
+ @property
969
+ def stream_identifier(self) -> kurrentdbclient.protos.Grpc.shared_pb2.StreamIdentifier: ...
970
+ @property
971
+ def no_stream(self) -> kurrentdbclient.protos.Grpc.shared_pb2.Empty: ...
972
+ @property
973
+ def any(self) -> kurrentdbclient.protos.Grpc.shared_pb2.Empty: ...
974
+ @property
975
+ def stream_exists(self) -> kurrentdbclient.protos.Grpc.shared_pb2.Empty: ...
976
+ def __init__(
977
+ self,
978
+ *,
979
+ stream_identifier: kurrentdbclient.protos.Grpc.shared_pb2.StreamIdentifier | None = ...,
980
+ revision: builtins.int = ...,
981
+ no_stream: kurrentdbclient.protos.Grpc.shared_pb2.Empty | None = ...,
982
+ any: kurrentdbclient.protos.Grpc.shared_pb2.Empty | None = ...,
983
+ stream_exists: kurrentdbclient.protos.Grpc.shared_pb2.Empty | None = ...,
984
+ ) -> None: ...
985
+ def HasField(self, field_name: typing.Literal["any", b"any", "expected_stream_revision", b"expected_stream_revision", "no_stream", b"no_stream", "revision", b"revision", "stream_exists", b"stream_exists", "stream_identifier", b"stream_identifier"]) -> builtins.bool: ...
986
+ def ClearField(self, field_name: typing.Literal["any", b"any", "expected_stream_revision", b"expected_stream_revision", "no_stream", b"no_stream", "revision", b"revision", "stream_exists", b"stream_exists", "stream_identifier", b"stream_identifier"]) -> None: ...
987
+ def WhichOneof(self, oneof_group: typing.Literal["expected_stream_revision", b"expected_stream_revision"]) -> typing.Literal["revision", "no_stream", "any", "stream_exists"] | None: ...
988
+
989
+ OPTIONS_FIELD_NUMBER: builtins.int
990
+ @property
991
+ def options(self) -> global___TombstoneReq.Options: ...
992
+ def __init__(
993
+ self,
994
+ *,
995
+ options: global___TombstoneReq.Options | None = ...,
996
+ ) -> None: ...
997
+ def HasField(self, field_name: typing.Literal["options", b"options"]) -> builtins.bool: ...
998
+ def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ...
999
+
1000
+ global___TombstoneReq = TombstoneReq
1001
+
1002
+ @typing.final
1003
+ class TombstoneResp(google.protobuf.message.Message):
1004
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1005
+
1006
+ @typing.final
1007
+ class Position(google.protobuf.message.Message):
1008
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1009
+
1010
+ COMMIT_POSITION_FIELD_NUMBER: builtins.int
1011
+ PREPARE_POSITION_FIELD_NUMBER: builtins.int
1012
+ commit_position: builtins.int
1013
+ prepare_position: builtins.int
1014
+ def __init__(
1015
+ self,
1016
+ *,
1017
+ commit_position: builtins.int = ...,
1018
+ prepare_position: builtins.int = ...,
1019
+ ) -> None: ...
1020
+ def ClearField(self, field_name: typing.Literal["commit_position", b"commit_position", "prepare_position", b"prepare_position"]) -> None: ...
1021
+
1022
+ POSITION_FIELD_NUMBER: builtins.int
1023
+ NO_POSITION_FIELD_NUMBER: builtins.int
1024
+ @property
1025
+ def position(self) -> global___TombstoneResp.Position: ...
1026
+ @property
1027
+ def no_position(self) -> kurrentdbclient.protos.Grpc.shared_pb2.Empty: ...
1028
+ def __init__(
1029
+ self,
1030
+ *,
1031
+ position: global___TombstoneResp.Position | None = ...,
1032
+ no_position: kurrentdbclient.protos.Grpc.shared_pb2.Empty | None = ...,
1033
+ ) -> None: ...
1034
+ def HasField(self, field_name: typing.Literal["no_position", b"no_position", "position", b"position", "position_option", b"position_option"]) -> builtins.bool: ...
1035
+ def ClearField(self, field_name: typing.Literal["no_position", b"no_position", "position", b"position", "position_option", b"position_option"]) -> None: ...
1036
+ def WhichOneof(self, oneof_group: typing.Literal["position_option", b"position_option"]) -> typing.Literal["position", "no_position"] | None: ...
1037
+
1038
+ global___TombstoneResp = TombstoneResp