livekit 1.2.1__py3-none-win_arm64.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 (71) hide show
  1. livekit/rtc/__init__.py +264 -0
  2. livekit/rtc/_ffi_client.py +321 -0
  3. livekit/rtc/_proto/__init__.py +0 -0
  4. livekit/rtc/_proto/audio_frame_pb2.py +159 -0
  5. livekit/rtc/_proto/audio_frame_pb2.pyi +1560 -0
  6. livekit/rtc/_proto/capture_pb2.py +70 -0
  7. livekit/rtc/_proto/capture_pb2.pyi +559 -0
  8. livekit/rtc/_proto/data_stream_pb2.py +171 -0
  9. livekit/rtc/_proto/data_stream_pb2.pyi +1498 -0
  10. livekit/rtc/_proto/data_track_pb2.py +120 -0
  11. livekit/rtc/_proto/data_track_pb2.pyi +1073 -0
  12. livekit/rtc/_proto/e2ee_pb2.py +81 -0
  13. livekit/rtc/_proto/e2ee_pb2.pyi +591 -0
  14. livekit/rtc/_proto/ffi_pb2.py +55 -0
  15. livekit/rtc/_proto/ffi_pb2.pyi +1246 -0
  16. livekit/rtc/_proto/handle_pb2.py +27 -0
  17. livekit/rtc/_proto/handle_pb2.pyi +51 -0
  18. livekit/rtc/_proto/participant_pb2.py +45 -0
  19. livekit/rtc/_proto/participant_pb2.pyi +313 -0
  20. livekit/rtc/_proto/room_pb2.py +311 -0
  21. livekit/rtc/_proto/room_pb2.pyi +3136 -0
  22. livekit/rtc/_proto/rpc_pb2.py +47 -0
  23. livekit/rtc/_proto/rpc_pb2.pyi +261 -0
  24. livekit/rtc/_proto/stats_pb2.py +123 -0
  25. livekit/rtc/_proto/stats_pb2.pyi +1514 -0
  26. livekit/rtc/_proto/track_pb2.py +76 -0
  27. livekit/rtc/_proto/track_pb2.pyi +544 -0
  28. livekit/rtc/_proto/track_publication_pb2.py +39 -0
  29. livekit/rtc/_proto/track_publication_pb2.pyi +145 -0
  30. livekit/rtc/_proto/video_frame_pb2.py +97 -0
  31. livekit/rtc/_proto/video_frame_pb2.pyi +838 -0
  32. livekit/rtc/_utils.py +187 -0
  33. livekit/rtc/apm.py +119 -0
  34. livekit/rtc/audio_filter.py +23 -0
  35. livekit/rtc/audio_frame.py +242 -0
  36. livekit/rtc/audio_mixer.py +247 -0
  37. livekit/rtc/audio_resampler.py +174 -0
  38. livekit/rtc/audio_source.py +191 -0
  39. livekit/rtc/audio_stream.py +354 -0
  40. livekit/rtc/data_stream.py +640 -0
  41. livekit/rtc/data_track.py +296 -0
  42. livekit/rtc/e2ee.py +320 -0
  43. livekit/rtc/encoded_video.py +127 -0
  44. livekit/rtc/event_emitter.py +215 -0
  45. livekit/rtc/frame_processor.py +37 -0
  46. livekit/rtc/jupyter.py +68 -0
  47. livekit/rtc/log.py +3 -0
  48. livekit/rtc/media_devices.py +596 -0
  49. livekit/rtc/participant.py +1171 -0
  50. livekit/rtc/platform_audio.py +426 -0
  51. livekit/rtc/py.typed +0 -0
  52. livekit/rtc/resources/LICENSE.md +4055 -0
  53. livekit/rtc/resources/__init__.py +1 -0
  54. livekit/rtc/resources/jupyter-html/index.html +101 -0
  55. livekit/rtc/resources/livekit_ffi.dll +0 -0
  56. livekit/rtc/resources/livekit_ffi.h +42 -0
  57. livekit/rtc/room.py +1304 -0
  58. livekit/rtc/rpc.py +244 -0
  59. livekit/rtc/synchronizer.py +202 -0
  60. livekit/rtc/track.py +264 -0
  61. livekit/rtc/track_publication.py +145 -0
  62. livekit/rtc/transcription.py +19 -0
  63. livekit/rtc/utils.py +138 -0
  64. livekit/rtc/version.py +1 -0
  65. livekit/rtc/video_frame.py +347 -0
  66. livekit/rtc/video_source.py +74 -0
  67. livekit/rtc/video_stream.py +191 -0
  68. livekit-1.2.1.dist-info/METADATA +80 -0
  69. livekit-1.2.1.dist-info/RECORD +71 -0
  70. livekit-1.2.1.dist-info/WHEEL +5 -0
  71. livekit-1.2.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,1498 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ Copyright 2025 LiveKit, Inc.
5
+
6
+ Licensed under the Apache License, Version 2.0 (the "License");
7
+ you may not use this file except in compliance with the License.
8
+ You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ """
18
+
19
+ import builtins
20
+ import collections.abc
21
+ from . import e2ee_pb2
22
+ import google.protobuf.descriptor
23
+ import google.protobuf.internal.containers
24
+ import google.protobuf.internal.enum_type_wrapper
25
+ import google.protobuf.message
26
+ from . import handle_pb2
27
+ import sys
28
+ import typing
29
+
30
+ if sys.version_info >= (3, 10):
31
+ import typing as typing_extensions
32
+ else:
33
+ import typing_extensions
34
+
35
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
36
+
37
+ @typing.final
38
+ class OwnedTextStreamReader(google.protobuf.message.Message):
39
+ """MARK: - Text stream reader
40
+
41
+ A reader for an incoming stream.
42
+ """
43
+
44
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
45
+
46
+ HANDLE_FIELD_NUMBER: builtins.int
47
+ INFO_FIELD_NUMBER: builtins.int
48
+ @property
49
+ def handle(self) -> handle_pb2.FfiOwnedHandle: ...
50
+ @property
51
+ def info(self) -> global___TextStreamInfo: ...
52
+ def __init__(
53
+ self,
54
+ *,
55
+ handle: handle_pb2.FfiOwnedHandle | None = ...,
56
+ info: global___TextStreamInfo | None = ...,
57
+ ) -> None: ...
58
+ def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ...
59
+ def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ...
60
+
61
+ global___OwnedTextStreamReader = OwnedTextStreamReader
62
+
63
+ @typing.final
64
+ class TextStreamReaderReadIncrementalRequest(google.protobuf.message.Message):
65
+ """Reads an incoming text stream incrementally."""
66
+
67
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
68
+
69
+ READER_HANDLE_FIELD_NUMBER: builtins.int
70
+ reader_handle: builtins.int
71
+ def __init__(
72
+ self,
73
+ *,
74
+ reader_handle: builtins.int | None = ...,
75
+ ) -> None: ...
76
+ def HasField(self, field_name: typing.Literal["reader_handle", b"reader_handle"]) -> builtins.bool: ...
77
+ def ClearField(self, field_name: typing.Literal["reader_handle", b"reader_handle"]) -> None: ...
78
+
79
+ global___TextStreamReaderReadIncrementalRequest = TextStreamReaderReadIncrementalRequest
80
+
81
+ @typing.final
82
+ class TextStreamReaderReadIncrementalResponse(google.protobuf.message.Message):
83
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
84
+
85
+ def __init__(
86
+ self,
87
+ ) -> None: ...
88
+
89
+ global___TextStreamReaderReadIncrementalResponse = TextStreamReaderReadIncrementalResponse
90
+
91
+ @typing.final
92
+ class TextStreamReaderReadAllRequest(google.protobuf.message.Message):
93
+ """Reads an incoming text stream in its entirety."""
94
+
95
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
96
+
97
+ READER_HANDLE_FIELD_NUMBER: builtins.int
98
+ REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int
99
+ reader_handle: builtins.int
100
+ request_async_id: builtins.int
101
+ def __init__(
102
+ self,
103
+ *,
104
+ reader_handle: builtins.int | None = ...,
105
+ request_async_id: builtins.int | None = ...,
106
+ ) -> None: ...
107
+ def HasField(self, field_name: typing.Literal["reader_handle", b"reader_handle", "request_async_id", b"request_async_id"]) -> builtins.bool: ...
108
+ def ClearField(self, field_name: typing.Literal["reader_handle", b"reader_handle", "request_async_id", b"request_async_id"]) -> None: ...
109
+
110
+ global___TextStreamReaderReadAllRequest = TextStreamReaderReadAllRequest
111
+
112
+ @typing.final
113
+ class TextStreamReaderReadAllResponse(google.protobuf.message.Message):
114
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
115
+
116
+ ASYNC_ID_FIELD_NUMBER: builtins.int
117
+ async_id: builtins.int
118
+ def __init__(
119
+ self,
120
+ *,
121
+ async_id: builtins.int | None = ...,
122
+ ) -> None: ...
123
+ def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ...
124
+ def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ...
125
+
126
+ global___TextStreamReaderReadAllResponse = TextStreamReaderReadAllResponse
127
+
128
+ @typing.final
129
+ class TextStreamReaderReadAllCallback(google.protobuf.message.Message):
130
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
131
+
132
+ ASYNC_ID_FIELD_NUMBER: builtins.int
133
+ CONTENT_FIELD_NUMBER: builtins.int
134
+ ERROR_FIELD_NUMBER: builtins.int
135
+ async_id: builtins.int
136
+ content: builtins.str
137
+ @property
138
+ def error(self) -> global___StreamError: ...
139
+ def __init__(
140
+ self,
141
+ *,
142
+ async_id: builtins.int | None = ...,
143
+ content: builtins.str | None = ...,
144
+ error: global___StreamError | None = ...,
145
+ ) -> None: ...
146
+ def HasField(self, field_name: typing.Literal["async_id", b"async_id", "content", b"content", "error", b"error", "result", b"result"]) -> builtins.bool: ...
147
+ def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "content", b"content", "error", b"error", "result", b"result"]) -> None: ...
148
+ def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["content", "error"] | None: ...
149
+
150
+ global___TextStreamReaderReadAllCallback = TextStreamReaderReadAllCallback
151
+
152
+ @typing.final
153
+ class TextStreamReaderEvent(google.protobuf.message.Message):
154
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
155
+
156
+ READER_HANDLE_FIELD_NUMBER: builtins.int
157
+ CHUNK_RECEIVED_FIELD_NUMBER: builtins.int
158
+ EOS_FIELD_NUMBER: builtins.int
159
+ reader_handle: builtins.int
160
+ @property
161
+ def chunk_received(self) -> global___TextStreamReaderChunkReceived: ...
162
+ @property
163
+ def eos(self) -> global___TextStreamReaderEOS: ...
164
+ def __init__(
165
+ self,
166
+ *,
167
+ reader_handle: builtins.int | None = ...,
168
+ chunk_received: global___TextStreamReaderChunkReceived | None = ...,
169
+ eos: global___TextStreamReaderEOS | None = ...,
170
+ ) -> None: ...
171
+ def HasField(self, field_name: typing.Literal["chunk_received", b"chunk_received", "detail", b"detail", "eos", b"eos", "reader_handle", b"reader_handle"]) -> builtins.bool: ...
172
+ def ClearField(self, field_name: typing.Literal["chunk_received", b"chunk_received", "detail", b"detail", "eos", b"eos", "reader_handle", b"reader_handle"]) -> None: ...
173
+ def WhichOneof(self, oneof_group: typing.Literal["detail", b"detail"]) -> typing.Literal["chunk_received", "eos"] | None: ...
174
+
175
+ global___TextStreamReaderEvent = TextStreamReaderEvent
176
+
177
+ @typing.final
178
+ class TextStreamReaderChunkReceived(google.protobuf.message.Message):
179
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
180
+
181
+ CONTENT_FIELD_NUMBER: builtins.int
182
+ content: builtins.str
183
+ def __init__(
184
+ self,
185
+ *,
186
+ content: builtins.str | None = ...,
187
+ ) -> None: ...
188
+ def HasField(self, field_name: typing.Literal["content", b"content"]) -> builtins.bool: ...
189
+ def ClearField(self, field_name: typing.Literal["content", b"content"]) -> None: ...
190
+
191
+ global___TextStreamReaderChunkReceived = TextStreamReaderChunkReceived
192
+
193
+ @typing.final
194
+ class TextStreamReaderEOS(google.protobuf.message.Message):
195
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
196
+
197
+ @typing.final
198
+ class AttributesEntry(google.protobuf.message.Message):
199
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
200
+
201
+ KEY_FIELD_NUMBER: builtins.int
202
+ VALUE_FIELD_NUMBER: builtins.int
203
+ key: builtins.str
204
+ value: builtins.str
205
+ def __init__(
206
+ self,
207
+ *,
208
+ key: builtins.str | None = ...,
209
+ value: builtins.str | None = ...,
210
+ ) -> None: ...
211
+ def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ...
212
+ def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
213
+
214
+ ERROR_FIELD_NUMBER: builtins.int
215
+ ATTRIBUTES_FIELD_NUMBER: builtins.int
216
+ @property
217
+ def error(self) -> global___StreamError: ...
218
+ @property
219
+ def attributes(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
220
+ """Final stream attributes, including any delivered in the stream trailer."""
221
+
222
+ def __init__(
223
+ self,
224
+ *,
225
+ error: global___StreamError | None = ...,
226
+ attributes: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
227
+ ) -> None: ...
228
+ def HasField(self, field_name: typing.Literal["error", b"error"]) -> builtins.bool: ...
229
+ def ClearField(self, field_name: typing.Literal["attributes", b"attributes", "error", b"error"]) -> None: ...
230
+
231
+ global___TextStreamReaderEOS = TextStreamReaderEOS
232
+
233
+ @typing.final
234
+ class OwnedByteStreamReader(google.protobuf.message.Message):
235
+ """MARK: - Byte stream reader
236
+
237
+ A reader for an incoming stream.
238
+ """
239
+
240
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
241
+
242
+ HANDLE_FIELD_NUMBER: builtins.int
243
+ INFO_FIELD_NUMBER: builtins.int
244
+ @property
245
+ def handle(self) -> handle_pb2.FfiOwnedHandle: ...
246
+ @property
247
+ def info(self) -> global___ByteStreamInfo: ...
248
+ def __init__(
249
+ self,
250
+ *,
251
+ handle: handle_pb2.FfiOwnedHandle | None = ...,
252
+ info: global___ByteStreamInfo | None = ...,
253
+ ) -> None: ...
254
+ def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ...
255
+ def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ...
256
+
257
+ global___OwnedByteStreamReader = OwnedByteStreamReader
258
+
259
+ @typing.final
260
+ class ByteStreamReaderReadIncrementalRequest(google.protobuf.message.Message):
261
+ """Reads an incoming byte stream incrementally."""
262
+
263
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
264
+
265
+ READER_HANDLE_FIELD_NUMBER: builtins.int
266
+ reader_handle: builtins.int
267
+ def __init__(
268
+ self,
269
+ *,
270
+ reader_handle: builtins.int | None = ...,
271
+ ) -> None: ...
272
+ def HasField(self, field_name: typing.Literal["reader_handle", b"reader_handle"]) -> builtins.bool: ...
273
+ def ClearField(self, field_name: typing.Literal["reader_handle", b"reader_handle"]) -> None: ...
274
+
275
+ global___ByteStreamReaderReadIncrementalRequest = ByteStreamReaderReadIncrementalRequest
276
+
277
+ @typing.final
278
+ class ByteStreamReaderReadIncrementalResponse(google.protobuf.message.Message):
279
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
280
+
281
+ def __init__(
282
+ self,
283
+ ) -> None: ...
284
+
285
+ global___ByteStreamReaderReadIncrementalResponse = ByteStreamReaderReadIncrementalResponse
286
+
287
+ @typing.final
288
+ class ByteStreamReaderReadAllRequest(google.protobuf.message.Message):
289
+ """Reads an incoming byte stream in its entirety."""
290
+
291
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
292
+
293
+ READER_HANDLE_FIELD_NUMBER: builtins.int
294
+ REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int
295
+ reader_handle: builtins.int
296
+ request_async_id: builtins.int
297
+ def __init__(
298
+ self,
299
+ *,
300
+ reader_handle: builtins.int | None = ...,
301
+ request_async_id: builtins.int | None = ...,
302
+ ) -> None: ...
303
+ def HasField(self, field_name: typing.Literal["reader_handle", b"reader_handle", "request_async_id", b"request_async_id"]) -> builtins.bool: ...
304
+ def ClearField(self, field_name: typing.Literal["reader_handle", b"reader_handle", "request_async_id", b"request_async_id"]) -> None: ...
305
+
306
+ global___ByteStreamReaderReadAllRequest = ByteStreamReaderReadAllRequest
307
+
308
+ @typing.final
309
+ class ByteStreamReaderReadAllResponse(google.protobuf.message.Message):
310
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
311
+
312
+ ASYNC_ID_FIELD_NUMBER: builtins.int
313
+ async_id: builtins.int
314
+ def __init__(
315
+ self,
316
+ *,
317
+ async_id: builtins.int | None = ...,
318
+ ) -> None: ...
319
+ def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ...
320
+ def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ...
321
+
322
+ global___ByteStreamReaderReadAllResponse = ByteStreamReaderReadAllResponse
323
+
324
+ @typing.final
325
+ class ByteStreamReaderReadAllCallback(google.protobuf.message.Message):
326
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
327
+
328
+ ASYNC_ID_FIELD_NUMBER: builtins.int
329
+ CONTENT_FIELD_NUMBER: builtins.int
330
+ ERROR_FIELD_NUMBER: builtins.int
331
+ async_id: builtins.int
332
+ content: builtins.bytes
333
+ @property
334
+ def error(self) -> global___StreamError: ...
335
+ def __init__(
336
+ self,
337
+ *,
338
+ async_id: builtins.int | None = ...,
339
+ content: builtins.bytes | None = ...,
340
+ error: global___StreamError | None = ...,
341
+ ) -> None: ...
342
+ def HasField(self, field_name: typing.Literal["async_id", b"async_id", "content", b"content", "error", b"error", "result", b"result"]) -> builtins.bool: ...
343
+ def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "content", b"content", "error", b"error", "result", b"result"]) -> None: ...
344
+ def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["content", "error"] | None: ...
345
+
346
+ global___ByteStreamReaderReadAllCallback = ByteStreamReaderReadAllCallback
347
+
348
+ @typing.final
349
+ class ByteStreamReaderWriteToFileRequest(google.protobuf.message.Message):
350
+ """Writes data from an incoming stream to a file as it arrives."""
351
+
352
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
353
+
354
+ READER_HANDLE_FIELD_NUMBER: builtins.int
355
+ REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int
356
+ DIRECTORY_FIELD_NUMBER: builtins.int
357
+ NAME_OVERRIDE_FIELD_NUMBER: builtins.int
358
+ reader_handle: builtins.int
359
+ request_async_id: builtins.int
360
+ directory: builtins.str
361
+ """Directory to write the file in (must be writable by the current process).
362
+ If not provided, the file will be written to the system's temp directory.
363
+ """
364
+ name_override: builtins.str
365
+ """Name to use for the written file.
366
+ If not provided, the file's name and extension will be inferred from
367
+ the stream's info.
368
+ """
369
+ def __init__(
370
+ self,
371
+ *,
372
+ reader_handle: builtins.int | None = ...,
373
+ request_async_id: builtins.int | None = ...,
374
+ directory: builtins.str | None = ...,
375
+ name_override: builtins.str | None = ...,
376
+ ) -> None: ...
377
+ def HasField(self, field_name: typing.Literal["directory", b"directory", "name_override", b"name_override", "reader_handle", b"reader_handle", "request_async_id", b"request_async_id"]) -> builtins.bool: ...
378
+ def ClearField(self, field_name: typing.Literal["directory", b"directory", "name_override", b"name_override", "reader_handle", b"reader_handle", "request_async_id", b"request_async_id"]) -> None: ...
379
+
380
+ global___ByteStreamReaderWriteToFileRequest = ByteStreamReaderWriteToFileRequest
381
+
382
+ @typing.final
383
+ class ByteStreamReaderWriteToFileResponse(google.protobuf.message.Message):
384
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
385
+
386
+ ASYNC_ID_FIELD_NUMBER: builtins.int
387
+ async_id: builtins.int
388
+ def __init__(
389
+ self,
390
+ *,
391
+ async_id: builtins.int | None = ...,
392
+ ) -> None: ...
393
+ def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ...
394
+ def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ...
395
+
396
+ global___ByteStreamReaderWriteToFileResponse = ByteStreamReaderWriteToFileResponse
397
+
398
+ @typing.final
399
+ class ByteStreamReaderWriteToFileCallback(google.protobuf.message.Message):
400
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
401
+
402
+ ASYNC_ID_FIELD_NUMBER: builtins.int
403
+ FILE_PATH_FIELD_NUMBER: builtins.int
404
+ ERROR_FIELD_NUMBER: builtins.int
405
+ async_id: builtins.int
406
+ file_path: builtins.str
407
+ """Path the file was written to."""
408
+ @property
409
+ def error(self) -> global___StreamError: ...
410
+ def __init__(
411
+ self,
412
+ *,
413
+ async_id: builtins.int | None = ...,
414
+ file_path: builtins.str | None = ...,
415
+ error: global___StreamError | None = ...,
416
+ ) -> None: ...
417
+ def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "file_path", b"file_path", "result", b"result"]) -> builtins.bool: ...
418
+ def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "file_path", b"file_path", "result", b"result"]) -> None: ...
419
+ def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["file_path", "error"] | None: ...
420
+
421
+ global___ByteStreamReaderWriteToFileCallback = ByteStreamReaderWriteToFileCallback
422
+
423
+ @typing.final
424
+ class ByteStreamReaderEvent(google.protobuf.message.Message):
425
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
426
+
427
+ READER_HANDLE_FIELD_NUMBER: builtins.int
428
+ CHUNK_RECEIVED_FIELD_NUMBER: builtins.int
429
+ EOS_FIELD_NUMBER: builtins.int
430
+ reader_handle: builtins.int
431
+ @property
432
+ def chunk_received(self) -> global___ByteStreamReaderChunkReceived: ...
433
+ @property
434
+ def eos(self) -> global___ByteStreamReaderEOS: ...
435
+ def __init__(
436
+ self,
437
+ *,
438
+ reader_handle: builtins.int | None = ...,
439
+ chunk_received: global___ByteStreamReaderChunkReceived | None = ...,
440
+ eos: global___ByteStreamReaderEOS | None = ...,
441
+ ) -> None: ...
442
+ def HasField(self, field_name: typing.Literal["chunk_received", b"chunk_received", "detail", b"detail", "eos", b"eos", "reader_handle", b"reader_handle"]) -> builtins.bool: ...
443
+ def ClearField(self, field_name: typing.Literal["chunk_received", b"chunk_received", "detail", b"detail", "eos", b"eos", "reader_handle", b"reader_handle"]) -> None: ...
444
+ def WhichOneof(self, oneof_group: typing.Literal["detail", b"detail"]) -> typing.Literal["chunk_received", "eos"] | None: ...
445
+
446
+ global___ByteStreamReaderEvent = ByteStreamReaderEvent
447
+
448
+ @typing.final
449
+ class ByteStreamReaderChunkReceived(google.protobuf.message.Message):
450
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
451
+
452
+ CONTENT_FIELD_NUMBER: builtins.int
453
+ content: builtins.bytes
454
+ def __init__(
455
+ self,
456
+ *,
457
+ content: builtins.bytes | None = ...,
458
+ ) -> None: ...
459
+ def HasField(self, field_name: typing.Literal["content", b"content"]) -> builtins.bool: ...
460
+ def ClearField(self, field_name: typing.Literal["content", b"content"]) -> None: ...
461
+
462
+ global___ByteStreamReaderChunkReceived = ByteStreamReaderChunkReceived
463
+
464
+ @typing.final
465
+ class ByteStreamReaderEOS(google.protobuf.message.Message):
466
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
467
+
468
+ @typing.final
469
+ class AttributesEntry(google.protobuf.message.Message):
470
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
471
+
472
+ KEY_FIELD_NUMBER: builtins.int
473
+ VALUE_FIELD_NUMBER: builtins.int
474
+ key: builtins.str
475
+ value: builtins.str
476
+ def __init__(
477
+ self,
478
+ *,
479
+ key: builtins.str | None = ...,
480
+ value: builtins.str | None = ...,
481
+ ) -> None: ...
482
+ def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ...
483
+ def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
484
+
485
+ ERROR_FIELD_NUMBER: builtins.int
486
+ ATTRIBUTES_FIELD_NUMBER: builtins.int
487
+ @property
488
+ def error(self) -> global___StreamError: ...
489
+ @property
490
+ def attributes(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
491
+ """Final stream attributes, including any delivered in the stream trailer."""
492
+
493
+ def __init__(
494
+ self,
495
+ *,
496
+ error: global___StreamError | None = ...,
497
+ attributes: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
498
+ ) -> None: ...
499
+ def HasField(self, field_name: typing.Literal["error", b"error"]) -> builtins.bool: ...
500
+ def ClearField(self, field_name: typing.Literal["attributes", b"attributes", "error", b"error"]) -> None: ...
501
+
502
+ global___ByteStreamReaderEOS = ByteStreamReaderEOS
503
+
504
+ @typing.final
505
+ class StreamSendFileRequest(google.protobuf.message.Message):
506
+ """MARK: - Send file
507
+
508
+ Sends the contents of a file over a data stream.
509
+ """
510
+
511
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
512
+
513
+ LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int
514
+ OPTIONS_FIELD_NUMBER: builtins.int
515
+ FILE_PATH_FIELD_NUMBER: builtins.int
516
+ REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int
517
+ local_participant_handle: builtins.int
518
+ file_path: builtins.str
519
+ """Path of the file to send (must be readable by the current process)."""
520
+ request_async_id: builtins.int
521
+ @property
522
+ def options(self) -> global___StreamByteOptions: ...
523
+ def __init__(
524
+ self,
525
+ *,
526
+ local_participant_handle: builtins.int | None = ...,
527
+ options: global___StreamByteOptions | None = ...,
528
+ file_path: builtins.str | None = ...,
529
+ request_async_id: builtins.int | None = ...,
530
+ ) -> None: ...
531
+ def HasField(self, field_name: typing.Literal["file_path", b"file_path", "local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"]) -> builtins.bool: ...
532
+ def ClearField(self, field_name: typing.Literal["file_path", b"file_path", "local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"]) -> None: ...
533
+
534
+ global___StreamSendFileRequest = StreamSendFileRequest
535
+
536
+ @typing.final
537
+ class StreamSendFileResponse(google.protobuf.message.Message):
538
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
539
+
540
+ ASYNC_ID_FIELD_NUMBER: builtins.int
541
+ async_id: builtins.int
542
+ def __init__(
543
+ self,
544
+ *,
545
+ async_id: builtins.int | None = ...,
546
+ ) -> None: ...
547
+ def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ...
548
+ def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ...
549
+
550
+ global___StreamSendFileResponse = StreamSendFileResponse
551
+
552
+ @typing.final
553
+ class StreamSendFileCallback(google.protobuf.message.Message):
554
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
555
+
556
+ ASYNC_ID_FIELD_NUMBER: builtins.int
557
+ INFO_FIELD_NUMBER: builtins.int
558
+ ERROR_FIELD_NUMBER: builtins.int
559
+ async_id: builtins.int
560
+ @property
561
+ def info(self) -> global___ByteStreamInfo: ...
562
+ @property
563
+ def error(self) -> global___StreamError: ...
564
+ def __init__(
565
+ self,
566
+ *,
567
+ async_id: builtins.int | None = ...,
568
+ info: global___ByteStreamInfo | None = ...,
569
+ error: global___StreamError | None = ...,
570
+ ) -> None: ...
571
+ def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"]) -> builtins.bool: ...
572
+ def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"]) -> None: ...
573
+ def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["info", "error"] | None: ...
574
+
575
+ global___StreamSendFileCallback = StreamSendFileCallback
576
+
577
+ @typing.final
578
+ class StreamSendBytesRequest(google.protobuf.message.Message):
579
+ """MARK: - Send bytes
580
+
581
+ Sends bytes over a data stream.
582
+ """
583
+
584
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
585
+
586
+ LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int
587
+ OPTIONS_FIELD_NUMBER: builtins.int
588
+ BYTES_FIELD_NUMBER: builtins.int
589
+ REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int
590
+ local_participant_handle: builtins.int
591
+ bytes: builtins.bytes
592
+ """Bytes to send."""
593
+ request_async_id: builtins.int
594
+ @property
595
+ def options(self) -> global___StreamByteOptions: ...
596
+ def __init__(
597
+ self,
598
+ *,
599
+ local_participant_handle: builtins.int | None = ...,
600
+ options: global___StreamByteOptions | None = ...,
601
+ bytes: builtins.bytes | None = ...,
602
+ request_async_id: builtins.int | None = ...,
603
+ ) -> None: ...
604
+ def HasField(self, field_name: typing.Literal["bytes", b"bytes", "local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"]) -> builtins.bool: ...
605
+ def ClearField(self, field_name: typing.Literal["bytes", b"bytes", "local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"]) -> None: ...
606
+
607
+ global___StreamSendBytesRequest = StreamSendBytesRequest
608
+
609
+ @typing.final
610
+ class StreamSendBytesResponse(google.protobuf.message.Message):
611
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
612
+
613
+ ASYNC_ID_FIELD_NUMBER: builtins.int
614
+ async_id: builtins.int
615
+ def __init__(
616
+ self,
617
+ *,
618
+ async_id: builtins.int | None = ...,
619
+ ) -> None: ...
620
+ def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ...
621
+ def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ...
622
+
623
+ global___StreamSendBytesResponse = StreamSendBytesResponse
624
+
625
+ @typing.final
626
+ class StreamSendBytesCallback(google.protobuf.message.Message):
627
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
628
+
629
+ ASYNC_ID_FIELD_NUMBER: builtins.int
630
+ INFO_FIELD_NUMBER: builtins.int
631
+ ERROR_FIELD_NUMBER: builtins.int
632
+ async_id: builtins.int
633
+ @property
634
+ def info(self) -> global___ByteStreamInfo: ...
635
+ @property
636
+ def error(self) -> global___StreamError: ...
637
+ def __init__(
638
+ self,
639
+ *,
640
+ async_id: builtins.int | None = ...,
641
+ info: global___ByteStreamInfo | None = ...,
642
+ error: global___StreamError | None = ...,
643
+ ) -> None: ...
644
+ def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"]) -> builtins.bool: ...
645
+ def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"]) -> None: ...
646
+ def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["info", "error"] | None: ...
647
+
648
+ global___StreamSendBytesCallback = StreamSendBytesCallback
649
+
650
+ @typing.final
651
+ class StreamSendTextRequest(google.protobuf.message.Message):
652
+ """MARK: - Send text
653
+
654
+ Sends text over a data stream.
655
+ """
656
+
657
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
658
+
659
+ LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int
660
+ OPTIONS_FIELD_NUMBER: builtins.int
661
+ TEXT_FIELD_NUMBER: builtins.int
662
+ REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int
663
+ local_participant_handle: builtins.int
664
+ text: builtins.str
665
+ """Text to send."""
666
+ request_async_id: builtins.int
667
+ @property
668
+ def options(self) -> global___StreamTextOptions: ...
669
+ def __init__(
670
+ self,
671
+ *,
672
+ local_participant_handle: builtins.int | None = ...,
673
+ options: global___StreamTextOptions | None = ...,
674
+ text: builtins.str | None = ...,
675
+ request_async_id: builtins.int | None = ...,
676
+ ) -> None: ...
677
+ def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id", "text", b"text"]) -> builtins.bool: ...
678
+ def ClearField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id", "text", b"text"]) -> None: ...
679
+
680
+ global___StreamSendTextRequest = StreamSendTextRequest
681
+
682
+ @typing.final
683
+ class StreamSendTextResponse(google.protobuf.message.Message):
684
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
685
+
686
+ ASYNC_ID_FIELD_NUMBER: builtins.int
687
+ async_id: builtins.int
688
+ def __init__(
689
+ self,
690
+ *,
691
+ async_id: builtins.int | None = ...,
692
+ ) -> None: ...
693
+ def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ...
694
+ def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ...
695
+
696
+ global___StreamSendTextResponse = StreamSendTextResponse
697
+
698
+ @typing.final
699
+ class StreamSendTextCallback(google.protobuf.message.Message):
700
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
701
+
702
+ ASYNC_ID_FIELD_NUMBER: builtins.int
703
+ INFO_FIELD_NUMBER: builtins.int
704
+ ERROR_FIELD_NUMBER: builtins.int
705
+ async_id: builtins.int
706
+ @property
707
+ def info(self) -> global___TextStreamInfo: ...
708
+ @property
709
+ def error(self) -> global___StreamError: ...
710
+ def __init__(
711
+ self,
712
+ *,
713
+ async_id: builtins.int | None = ...,
714
+ info: global___TextStreamInfo | None = ...,
715
+ error: global___StreamError | None = ...,
716
+ ) -> None: ...
717
+ def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"]) -> builtins.bool: ...
718
+ def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"]) -> None: ...
719
+ def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["info", "error"] | None: ...
720
+
721
+ global___StreamSendTextCallback = StreamSendTextCallback
722
+
723
+ @typing.final
724
+ class OwnedByteStreamWriter(google.protobuf.message.Message):
725
+ """MARK: - Byte stream writer"""
726
+
727
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
728
+
729
+ HANDLE_FIELD_NUMBER: builtins.int
730
+ INFO_FIELD_NUMBER: builtins.int
731
+ @property
732
+ def handle(self) -> handle_pb2.FfiOwnedHandle: ...
733
+ @property
734
+ def info(self) -> global___ByteStreamInfo: ...
735
+ def __init__(
736
+ self,
737
+ *,
738
+ handle: handle_pb2.FfiOwnedHandle | None = ...,
739
+ info: global___ByteStreamInfo | None = ...,
740
+ ) -> None: ...
741
+ def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ...
742
+ def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ...
743
+
744
+ global___OwnedByteStreamWriter = OwnedByteStreamWriter
745
+
746
+ @typing.final
747
+ class ByteStreamOpenRequest(google.protobuf.message.Message):
748
+ """Opens an outgoing stream.
749
+ Call must be balanced with a StreamCloseRequest.
750
+ """
751
+
752
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
753
+
754
+ LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int
755
+ OPTIONS_FIELD_NUMBER: builtins.int
756
+ REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int
757
+ local_participant_handle: builtins.int
758
+ request_async_id: builtins.int
759
+ @property
760
+ def options(self) -> global___StreamByteOptions:
761
+ """Options to use for opening the stream."""
762
+
763
+ def __init__(
764
+ self,
765
+ *,
766
+ local_participant_handle: builtins.int | None = ...,
767
+ options: global___StreamByteOptions | None = ...,
768
+ request_async_id: builtins.int | None = ...,
769
+ ) -> None: ...
770
+ def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"]) -> builtins.bool: ...
771
+ def ClearField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"]) -> None: ...
772
+
773
+ global___ByteStreamOpenRequest = ByteStreamOpenRequest
774
+
775
+ @typing.final
776
+ class ByteStreamOpenResponse(google.protobuf.message.Message):
777
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
778
+
779
+ ASYNC_ID_FIELD_NUMBER: builtins.int
780
+ async_id: builtins.int
781
+ def __init__(
782
+ self,
783
+ *,
784
+ async_id: builtins.int | None = ...,
785
+ ) -> None: ...
786
+ def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ...
787
+ def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ...
788
+
789
+ global___ByteStreamOpenResponse = ByteStreamOpenResponse
790
+
791
+ @typing.final
792
+ class ByteStreamOpenCallback(google.protobuf.message.Message):
793
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
794
+
795
+ ASYNC_ID_FIELD_NUMBER: builtins.int
796
+ WRITER_FIELD_NUMBER: builtins.int
797
+ ERROR_FIELD_NUMBER: builtins.int
798
+ async_id: builtins.int
799
+ @property
800
+ def writer(self) -> global___OwnedByteStreamWriter: ...
801
+ @property
802
+ def error(self) -> global___StreamError: ...
803
+ def __init__(
804
+ self,
805
+ *,
806
+ async_id: builtins.int | None = ...,
807
+ writer: global___OwnedByteStreamWriter | None = ...,
808
+ error: global___StreamError | None = ...,
809
+ ) -> None: ...
810
+ def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "writer", b"writer"]) -> builtins.bool: ...
811
+ def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "writer", b"writer"]) -> None: ...
812
+ def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["writer", "error"] | None: ...
813
+
814
+ global___ByteStreamOpenCallback = ByteStreamOpenCallback
815
+
816
+ @typing.final
817
+ class ByteStreamWriterWriteRequest(google.protobuf.message.Message):
818
+ """Writes data to a stream writer."""
819
+
820
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
821
+
822
+ WRITER_HANDLE_FIELD_NUMBER: builtins.int
823
+ BYTES_FIELD_NUMBER: builtins.int
824
+ REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int
825
+ writer_handle: builtins.int
826
+ bytes: builtins.bytes
827
+ request_async_id: builtins.int
828
+ def __init__(
829
+ self,
830
+ *,
831
+ writer_handle: builtins.int | None = ...,
832
+ bytes: builtins.bytes | None = ...,
833
+ request_async_id: builtins.int | None = ...,
834
+ ) -> None: ...
835
+ def HasField(self, field_name: typing.Literal["bytes", b"bytes", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"]) -> builtins.bool: ...
836
+ def ClearField(self, field_name: typing.Literal["bytes", b"bytes", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"]) -> None: ...
837
+
838
+ global___ByteStreamWriterWriteRequest = ByteStreamWriterWriteRequest
839
+
840
+ @typing.final
841
+ class ByteStreamWriterWriteResponse(google.protobuf.message.Message):
842
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
843
+
844
+ ASYNC_ID_FIELD_NUMBER: builtins.int
845
+ async_id: builtins.int
846
+ def __init__(
847
+ self,
848
+ *,
849
+ async_id: builtins.int | None = ...,
850
+ ) -> None: ...
851
+ def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ...
852
+ def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ...
853
+
854
+ global___ByteStreamWriterWriteResponse = ByteStreamWriterWriteResponse
855
+
856
+ @typing.final
857
+ class ByteStreamWriterWriteCallback(google.protobuf.message.Message):
858
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
859
+
860
+ ASYNC_ID_FIELD_NUMBER: builtins.int
861
+ ERROR_FIELD_NUMBER: builtins.int
862
+ async_id: builtins.int
863
+ @property
864
+ def error(self) -> global___StreamError: ...
865
+ def __init__(
866
+ self,
867
+ *,
868
+ async_id: builtins.int | None = ...,
869
+ error: global___StreamError | None = ...,
870
+ ) -> None: ...
871
+ def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ...
872
+ def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ...
873
+
874
+ global___ByteStreamWriterWriteCallback = ByteStreamWriterWriteCallback
875
+
876
+ @typing.final
877
+ class ByteStreamWriterCloseRequest(google.protobuf.message.Message):
878
+ """Closes a stream writer."""
879
+
880
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
881
+
882
+ @typing.final
883
+ class AttributesEntry(google.protobuf.message.Message):
884
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
885
+
886
+ KEY_FIELD_NUMBER: builtins.int
887
+ VALUE_FIELD_NUMBER: builtins.int
888
+ key: builtins.str
889
+ value: builtins.str
890
+ def __init__(
891
+ self,
892
+ *,
893
+ key: builtins.str | None = ...,
894
+ value: builtins.str | None = ...,
895
+ ) -> None: ...
896
+ def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ...
897
+ def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
898
+
899
+ WRITER_HANDLE_FIELD_NUMBER: builtins.int
900
+ REASON_FIELD_NUMBER: builtins.int
901
+ REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int
902
+ ATTRIBUTES_FIELD_NUMBER: builtins.int
903
+ writer_handle: builtins.int
904
+ reason: builtins.str
905
+ request_async_id: builtins.int
906
+ @property
907
+ def attributes(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
908
+ """Attributes to attach to the stream trailer."""
909
+
910
+ def __init__(
911
+ self,
912
+ *,
913
+ writer_handle: builtins.int | None = ...,
914
+ reason: builtins.str | None = ...,
915
+ request_async_id: builtins.int | None = ...,
916
+ attributes: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
917
+ ) -> None: ...
918
+ def HasField(self, field_name: typing.Literal["reason", b"reason", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"]) -> builtins.bool: ...
919
+ def ClearField(self, field_name: typing.Literal["attributes", b"attributes", "reason", b"reason", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"]) -> None: ...
920
+
921
+ global___ByteStreamWriterCloseRequest = ByteStreamWriterCloseRequest
922
+
923
+ @typing.final
924
+ class ByteStreamWriterCloseResponse(google.protobuf.message.Message):
925
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
926
+
927
+ ASYNC_ID_FIELD_NUMBER: builtins.int
928
+ async_id: builtins.int
929
+ def __init__(
930
+ self,
931
+ *,
932
+ async_id: builtins.int | None = ...,
933
+ ) -> None: ...
934
+ def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ...
935
+ def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ...
936
+
937
+ global___ByteStreamWriterCloseResponse = ByteStreamWriterCloseResponse
938
+
939
+ @typing.final
940
+ class ByteStreamWriterCloseCallback(google.protobuf.message.Message):
941
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
942
+
943
+ ASYNC_ID_FIELD_NUMBER: builtins.int
944
+ ERROR_FIELD_NUMBER: builtins.int
945
+ async_id: builtins.int
946
+ @property
947
+ def error(self) -> global___StreamError: ...
948
+ def __init__(
949
+ self,
950
+ *,
951
+ async_id: builtins.int | None = ...,
952
+ error: global___StreamError | None = ...,
953
+ ) -> None: ...
954
+ def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ...
955
+ def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ...
956
+
957
+ global___ByteStreamWriterCloseCallback = ByteStreamWriterCloseCallback
958
+
959
+ @typing.final
960
+ class OwnedTextStreamWriter(google.protobuf.message.Message):
961
+ """MARK: - Text stream writer"""
962
+
963
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
964
+
965
+ HANDLE_FIELD_NUMBER: builtins.int
966
+ INFO_FIELD_NUMBER: builtins.int
967
+ @property
968
+ def handle(self) -> handle_pb2.FfiOwnedHandle: ...
969
+ @property
970
+ def info(self) -> global___TextStreamInfo: ...
971
+ def __init__(
972
+ self,
973
+ *,
974
+ handle: handle_pb2.FfiOwnedHandle | None = ...,
975
+ info: global___TextStreamInfo | None = ...,
976
+ ) -> None: ...
977
+ def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ...
978
+ def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ...
979
+
980
+ global___OwnedTextStreamWriter = OwnedTextStreamWriter
981
+
982
+ @typing.final
983
+ class TextStreamOpenRequest(google.protobuf.message.Message):
984
+ """Opens an outgoing text stream.
985
+ Call must be balanced with a TextStreamCloseRequest.
986
+ """
987
+
988
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
989
+
990
+ LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int
991
+ OPTIONS_FIELD_NUMBER: builtins.int
992
+ REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int
993
+ local_participant_handle: builtins.int
994
+ request_async_id: builtins.int
995
+ @property
996
+ def options(self) -> global___StreamTextOptions:
997
+ """Options to use for opening the stream."""
998
+
999
+ def __init__(
1000
+ self,
1001
+ *,
1002
+ local_participant_handle: builtins.int | None = ...,
1003
+ options: global___StreamTextOptions | None = ...,
1004
+ request_async_id: builtins.int | None = ...,
1005
+ ) -> None: ...
1006
+ def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"]) -> builtins.bool: ...
1007
+ def ClearField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"]) -> None: ...
1008
+
1009
+ global___TextStreamOpenRequest = TextStreamOpenRequest
1010
+
1011
+ @typing.final
1012
+ class TextStreamOpenResponse(google.protobuf.message.Message):
1013
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1014
+
1015
+ ASYNC_ID_FIELD_NUMBER: builtins.int
1016
+ async_id: builtins.int
1017
+ def __init__(
1018
+ self,
1019
+ *,
1020
+ async_id: builtins.int | None = ...,
1021
+ ) -> None: ...
1022
+ def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ...
1023
+ def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ...
1024
+
1025
+ global___TextStreamOpenResponse = TextStreamOpenResponse
1026
+
1027
+ @typing.final
1028
+ class TextStreamOpenCallback(google.protobuf.message.Message):
1029
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1030
+
1031
+ ASYNC_ID_FIELD_NUMBER: builtins.int
1032
+ WRITER_FIELD_NUMBER: builtins.int
1033
+ ERROR_FIELD_NUMBER: builtins.int
1034
+ async_id: builtins.int
1035
+ @property
1036
+ def writer(self) -> global___OwnedTextStreamWriter: ...
1037
+ @property
1038
+ def error(self) -> global___StreamError: ...
1039
+ def __init__(
1040
+ self,
1041
+ *,
1042
+ async_id: builtins.int | None = ...,
1043
+ writer: global___OwnedTextStreamWriter | None = ...,
1044
+ error: global___StreamError | None = ...,
1045
+ ) -> None: ...
1046
+ def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "writer", b"writer"]) -> builtins.bool: ...
1047
+ def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "writer", b"writer"]) -> None: ...
1048
+ def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["writer", "error"] | None: ...
1049
+
1050
+ global___TextStreamOpenCallback = TextStreamOpenCallback
1051
+
1052
+ @typing.final
1053
+ class TextStreamWriterWriteRequest(google.protobuf.message.Message):
1054
+ """Writes text to a text stream writer."""
1055
+
1056
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1057
+
1058
+ WRITER_HANDLE_FIELD_NUMBER: builtins.int
1059
+ TEXT_FIELD_NUMBER: builtins.int
1060
+ REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int
1061
+ writer_handle: builtins.int
1062
+ text: builtins.str
1063
+ request_async_id: builtins.int
1064
+ def __init__(
1065
+ self,
1066
+ *,
1067
+ writer_handle: builtins.int | None = ...,
1068
+ text: builtins.str | None = ...,
1069
+ request_async_id: builtins.int | None = ...,
1070
+ ) -> None: ...
1071
+ def HasField(self, field_name: typing.Literal["request_async_id", b"request_async_id", "text", b"text", "writer_handle", b"writer_handle"]) -> builtins.bool: ...
1072
+ def ClearField(self, field_name: typing.Literal["request_async_id", b"request_async_id", "text", b"text", "writer_handle", b"writer_handle"]) -> None: ...
1073
+
1074
+ global___TextStreamWriterWriteRequest = TextStreamWriterWriteRequest
1075
+
1076
+ @typing.final
1077
+ class TextStreamWriterWriteResponse(google.protobuf.message.Message):
1078
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1079
+
1080
+ ASYNC_ID_FIELD_NUMBER: builtins.int
1081
+ async_id: builtins.int
1082
+ def __init__(
1083
+ self,
1084
+ *,
1085
+ async_id: builtins.int | None = ...,
1086
+ ) -> None: ...
1087
+ def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ...
1088
+ def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ...
1089
+
1090
+ global___TextStreamWriterWriteResponse = TextStreamWriterWriteResponse
1091
+
1092
+ @typing.final
1093
+ class TextStreamWriterWriteCallback(google.protobuf.message.Message):
1094
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1095
+
1096
+ ASYNC_ID_FIELD_NUMBER: builtins.int
1097
+ ERROR_FIELD_NUMBER: builtins.int
1098
+ async_id: builtins.int
1099
+ @property
1100
+ def error(self) -> global___StreamError: ...
1101
+ def __init__(
1102
+ self,
1103
+ *,
1104
+ async_id: builtins.int | None = ...,
1105
+ error: global___StreamError | None = ...,
1106
+ ) -> None: ...
1107
+ def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ...
1108
+ def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ...
1109
+
1110
+ global___TextStreamWriterWriteCallback = TextStreamWriterWriteCallback
1111
+
1112
+ @typing.final
1113
+ class TextStreamWriterCloseRequest(google.protobuf.message.Message):
1114
+ """Closes a text stream writer."""
1115
+
1116
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1117
+
1118
+ @typing.final
1119
+ class AttributesEntry(google.protobuf.message.Message):
1120
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1121
+
1122
+ KEY_FIELD_NUMBER: builtins.int
1123
+ VALUE_FIELD_NUMBER: builtins.int
1124
+ key: builtins.str
1125
+ value: builtins.str
1126
+ def __init__(
1127
+ self,
1128
+ *,
1129
+ key: builtins.str | None = ...,
1130
+ value: builtins.str | None = ...,
1131
+ ) -> None: ...
1132
+ def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ...
1133
+ def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
1134
+
1135
+ WRITER_HANDLE_FIELD_NUMBER: builtins.int
1136
+ REASON_FIELD_NUMBER: builtins.int
1137
+ REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int
1138
+ ATTRIBUTES_FIELD_NUMBER: builtins.int
1139
+ writer_handle: builtins.int
1140
+ reason: builtins.str
1141
+ request_async_id: builtins.int
1142
+ @property
1143
+ def attributes(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
1144
+ """Attributes to attach to the stream trailer."""
1145
+
1146
+ def __init__(
1147
+ self,
1148
+ *,
1149
+ writer_handle: builtins.int | None = ...,
1150
+ reason: builtins.str | None = ...,
1151
+ request_async_id: builtins.int | None = ...,
1152
+ attributes: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
1153
+ ) -> None: ...
1154
+ def HasField(self, field_name: typing.Literal["reason", b"reason", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"]) -> builtins.bool: ...
1155
+ def ClearField(self, field_name: typing.Literal["attributes", b"attributes", "reason", b"reason", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"]) -> None: ...
1156
+
1157
+ global___TextStreamWriterCloseRequest = TextStreamWriterCloseRequest
1158
+
1159
+ @typing.final
1160
+ class TextStreamWriterCloseResponse(google.protobuf.message.Message):
1161
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1162
+
1163
+ ASYNC_ID_FIELD_NUMBER: builtins.int
1164
+ async_id: builtins.int
1165
+ def __init__(
1166
+ self,
1167
+ *,
1168
+ async_id: builtins.int | None = ...,
1169
+ ) -> None: ...
1170
+ def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ...
1171
+ def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ...
1172
+
1173
+ global___TextStreamWriterCloseResponse = TextStreamWriterCloseResponse
1174
+
1175
+ @typing.final
1176
+ class TextStreamWriterCloseCallback(google.protobuf.message.Message):
1177
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1178
+
1179
+ ASYNC_ID_FIELD_NUMBER: builtins.int
1180
+ ERROR_FIELD_NUMBER: builtins.int
1181
+ async_id: builtins.int
1182
+ @property
1183
+ def error(self) -> global___StreamError: ...
1184
+ def __init__(
1185
+ self,
1186
+ *,
1187
+ async_id: builtins.int | None = ...,
1188
+ error: global___StreamError | None = ...,
1189
+ ) -> None: ...
1190
+ def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ...
1191
+ def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ...
1192
+
1193
+ global___TextStreamWriterCloseCallback = TextStreamWriterCloseCallback
1194
+
1195
+ @typing.final
1196
+ class TextStreamInfo(google.protobuf.message.Message):
1197
+ """Contains a subset of the fields from the stream header.
1198
+ Protocol-level fields not relevant to the FFI client are omitted (e.g. encryption info).
1199
+ """
1200
+
1201
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1202
+
1203
+ class _OperationType:
1204
+ ValueType = typing.NewType("ValueType", builtins.int)
1205
+ V: typing_extensions.TypeAlias = ValueType
1206
+
1207
+ class _OperationTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[TextStreamInfo._OperationType.ValueType], builtins.type):
1208
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
1209
+ CREATE: TextStreamInfo._OperationType.ValueType # 0
1210
+ UPDATE: TextStreamInfo._OperationType.ValueType # 1
1211
+ DELETE: TextStreamInfo._OperationType.ValueType # 2
1212
+ REACTION: TextStreamInfo._OperationType.ValueType # 3
1213
+
1214
+ class OperationType(_OperationType, metaclass=_OperationTypeEnumTypeWrapper): ...
1215
+ CREATE: TextStreamInfo.OperationType.ValueType # 0
1216
+ UPDATE: TextStreamInfo.OperationType.ValueType # 1
1217
+ DELETE: TextStreamInfo.OperationType.ValueType # 2
1218
+ REACTION: TextStreamInfo.OperationType.ValueType # 3
1219
+
1220
+ @typing.final
1221
+ class AttributesEntry(google.protobuf.message.Message):
1222
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1223
+
1224
+ KEY_FIELD_NUMBER: builtins.int
1225
+ VALUE_FIELD_NUMBER: builtins.int
1226
+ key: builtins.str
1227
+ value: builtins.str
1228
+ def __init__(
1229
+ self,
1230
+ *,
1231
+ key: builtins.str | None = ...,
1232
+ value: builtins.str | None = ...,
1233
+ ) -> None: ...
1234
+ def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ...
1235
+ def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
1236
+
1237
+ STREAM_ID_FIELD_NUMBER: builtins.int
1238
+ TIMESTAMP_FIELD_NUMBER: builtins.int
1239
+ MIME_TYPE_FIELD_NUMBER: builtins.int
1240
+ TOPIC_FIELD_NUMBER: builtins.int
1241
+ TOTAL_LENGTH_FIELD_NUMBER: builtins.int
1242
+ ATTRIBUTES_FIELD_NUMBER: builtins.int
1243
+ OPERATION_TYPE_FIELD_NUMBER: builtins.int
1244
+ VERSION_FIELD_NUMBER: builtins.int
1245
+ REPLY_TO_STREAM_ID_FIELD_NUMBER: builtins.int
1246
+ ATTACHED_STREAM_IDS_FIELD_NUMBER: builtins.int
1247
+ GENERATED_FIELD_NUMBER: builtins.int
1248
+ ENCRYPTION_TYPE_FIELD_NUMBER: builtins.int
1249
+ stream_id: builtins.str
1250
+ """unique identifier for this data stream"""
1251
+ timestamp: builtins.int
1252
+ """using int64 for Unix timestamp"""
1253
+ mime_type: builtins.str
1254
+ topic: builtins.str
1255
+ total_length: builtins.int
1256
+ """only populated for finite streams, if it's a stream of unknown size this stays empty"""
1257
+ operation_type: global___TextStreamInfo.OperationType.ValueType
1258
+ version: builtins.int
1259
+ """Optional: Version for updates/edits"""
1260
+ reply_to_stream_id: builtins.str
1261
+ """Optional: Reply to specific message"""
1262
+ generated: builtins.bool
1263
+ """true if the text has been generated by an agent from a participant's audio transcription"""
1264
+ encryption_type: e2ee_pb2.EncryptionType.ValueType
1265
+ @property
1266
+ def attributes(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
1267
+ """user defined attributes map that can carry additional info"""
1268
+
1269
+ @property
1270
+ def attached_stream_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
1271
+ """file attachments for text streams"""
1272
+
1273
+ def __init__(
1274
+ self,
1275
+ *,
1276
+ stream_id: builtins.str | None = ...,
1277
+ timestamp: builtins.int | None = ...,
1278
+ mime_type: builtins.str | None = ...,
1279
+ topic: builtins.str | None = ...,
1280
+ total_length: builtins.int | None = ...,
1281
+ attributes: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
1282
+ operation_type: global___TextStreamInfo.OperationType.ValueType | None = ...,
1283
+ version: builtins.int | None = ...,
1284
+ reply_to_stream_id: builtins.str | None = ...,
1285
+ attached_stream_ids: collections.abc.Iterable[builtins.str] | None = ...,
1286
+ generated: builtins.bool | None = ...,
1287
+ encryption_type: e2ee_pb2.EncryptionType.ValueType | None = ...,
1288
+ ) -> None: ...
1289
+ def HasField(self, field_name: typing.Literal["encryption_type", b"encryption_type", "generated", b"generated", "mime_type", b"mime_type", "operation_type", b"operation_type", "reply_to_stream_id", b"reply_to_stream_id", "stream_id", b"stream_id", "timestamp", b"timestamp", "topic", b"topic", "total_length", b"total_length", "version", b"version"]) -> builtins.bool: ...
1290
+ def ClearField(self, field_name: typing.Literal["attached_stream_ids", b"attached_stream_ids", "attributes", b"attributes", "encryption_type", b"encryption_type", "generated", b"generated", "mime_type", b"mime_type", "operation_type", b"operation_type", "reply_to_stream_id", b"reply_to_stream_id", "stream_id", b"stream_id", "timestamp", b"timestamp", "topic", b"topic", "total_length", b"total_length", "version", b"version"]) -> None: ...
1291
+
1292
+ global___TextStreamInfo = TextStreamInfo
1293
+
1294
+ @typing.final
1295
+ class ByteStreamInfo(google.protobuf.message.Message):
1296
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1297
+
1298
+ @typing.final
1299
+ class AttributesEntry(google.protobuf.message.Message):
1300
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1301
+
1302
+ KEY_FIELD_NUMBER: builtins.int
1303
+ VALUE_FIELD_NUMBER: builtins.int
1304
+ key: builtins.str
1305
+ value: builtins.str
1306
+ def __init__(
1307
+ self,
1308
+ *,
1309
+ key: builtins.str | None = ...,
1310
+ value: builtins.str | None = ...,
1311
+ ) -> None: ...
1312
+ def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ...
1313
+ def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
1314
+
1315
+ STREAM_ID_FIELD_NUMBER: builtins.int
1316
+ TIMESTAMP_FIELD_NUMBER: builtins.int
1317
+ MIME_TYPE_FIELD_NUMBER: builtins.int
1318
+ TOPIC_FIELD_NUMBER: builtins.int
1319
+ TOTAL_LENGTH_FIELD_NUMBER: builtins.int
1320
+ ATTRIBUTES_FIELD_NUMBER: builtins.int
1321
+ NAME_FIELD_NUMBER: builtins.int
1322
+ ENCRYPTION_TYPE_FIELD_NUMBER: builtins.int
1323
+ stream_id: builtins.str
1324
+ """unique identifier for this data stream"""
1325
+ timestamp: builtins.int
1326
+ """using int64 for Unix timestamp"""
1327
+ mime_type: builtins.str
1328
+ topic: builtins.str
1329
+ total_length: builtins.int
1330
+ """only populated for finite streams, if it's a stream of unknown size this stays empty"""
1331
+ name: builtins.str
1332
+ encryption_type: e2ee_pb2.EncryptionType.ValueType
1333
+ @property
1334
+ def attributes(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
1335
+ """user defined attributes map that can carry additional info"""
1336
+
1337
+ def __init__(
1338
+ self,
1339
+ *,
1340
+ stream_id: builtins.str | None = ...,
1341
+ timestamp: builtins.int | None = ...,
1342
+ mime_type: builtins.str | None = ...,
1343
+ topic: builtins.str | None = ...,
1344
+ total_length: builtins.int | None = ...,
1345
+ attributes: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
1346
+ name: builtins.str | None = ...,
1347
+ encryption_type: e2ee_pb2.EncryptionType.ValueType | None = ...,
1348
+ ) -> None: ...
1349
+ def HasField(self, field_name: typing.Literal["encryption_type", b"encryption_type", "mime_type", b"mime_type", "name", b"name", "stream_id", b"stream_id", "timestamp", b"timestamp", "topic", b"topic", "total_length", b"total_length"]) -> builtins.bool: ...
1350
+ def ClearField(self, field_name: typing.Literal["attributes", b"attributes", "encryption_type", b"encryption_type", "mime_type", b"mime_type", "name", b"name", "stream_id", b"stream_id", "timestamp", b"timestamp", "topic", b"topic", "total_length", b"total_length"]) -> None: ...
1351
+
1352
+ global___ByteStreamInfo = ByteStreamInfo
1353
+
1354
+ @typing.final
1355
+ class StreamTextOptions(google.protobuf.message.Message):
1356
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1357
+
1358
+ @typing.final
1359
+ class AttributesEntry(google.protobuf.message.Message):
1360
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1361
+
1362
+ KEY_FIELD_NUMBER: builtins.int
1363
+ VALUE_FIELD_NUMBER: builtins.int
1364
+ key: builtins.str
1365
+ value: builtins.str
1366
+ def __init__(
1367
+ self,
1368
+ *,
1369
+ key: builtins.str | None = ...,
1370
+ value: builtins.str | None = ...,
1371
+ ) -> None: ...
1372
+ def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ...
1373
+ def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
1374
+
1375
+ TOPIC_FIELD_NUMBER: builtins.int
1376
+ ATTRIBUTES_FIELD_NUMBER: builtins.int
1377
+ DESTINATION_IDENTITIES_FIELD_NUMBER: builtins.int
1378
+ ID_FIELD_NUMBER: builtins.int
1379
+ OPERATION_TYPE_FIELD_NUMBER: builtins.int
1380
+ VERSION_FIELD_NUMBER: builtins.int
1381
+ REPLY_TO_STREAM_ID_FIELD_NUMBER: builtins.int
1382
+ ATTACHED_STREAM_IDS_FIELD_NUMBER: builtins.int
1383
+ GENERATED_FIELD_NUMBER: builtins.int
1384
+ COMPRESS_FIELD_NUMBER: builtins.int
1385
+ SENDER_IDENTITY_FIELD_NUMBER: builtins.int
1386
+ topic: builtins.str
1387
+ id: builtins.str
1388
+ operation_type: global___TextStreamInfo.OperationType.ValueType
1389
+ version: builtins.int
1390
+ reply_to_stream_id: builtins.str
1391
+ generated: builtins.bool
1392
+ compress: builtins.bool
1393
+ sender_identity: builtins.str
1394
+ """Identity the stream's packets are attributed to; requires permission to impersonate."""
1395
+ @property
1396
+ def attributes(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ...
1397
+ @property
1398
+ def destination_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
1399
+ @property
1400
+ def attached_stream_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
1401
+ def __init__(
1402
+ self,
1403
+ *,
1404
+ topic: builtins.str | None = ...,
1405
+ attributes: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
1406
+ destination_identities: collections.abc.Iterable[builtins.str] | None = ...,
1407
+ id: builtins.str | None = ...,
1408
+ operation_type: global___TextStreamInfo.OperationType.ValueType | None = ...,
1409
+ version: builtins.int | None = ...,
1410
+ reply_to_stream_id: builtins.str | None = ...,
1411
+ attached_stream_ids: collections.abc.Iterable[builtins.str] | None = ...,
1412
+ generated: builtins.bool | None = ...,
1413
+ compress: builtins.bool | None = ...,
1414
+ sender_identity: builtins.str | None = ...,
1415
+ ) -> None: ...
1416
+ def HasField(self, field_name: typing.Literal["compress", b"compress", "generated", b"generated", "id", b"id", "operation_type", b"operation_type", "reply_to_stream_id", b"reply_to_stream_id", "sender_identity", b"sender_identity", "topic", b"topic", "version", b"version"]) -> builtins.bool: ...
1417
+ def ClearField(self, field_name: typing.Literal["attached_stream_ids", b"attached_stream_ids", "attributes", b"attributes", "compress", b"compress", "destination_identities", b"destination_identities", "generated", b"generated", "id", b"id", "operation_type", b"operation_type", "reply_to_stream_id", b"reply_to_stream_id", "sender_identity", b"sender_identity", "topic", b"topic", "version", b"version"]) -> None: ...
1418
+
1419
+ global___StreamTextOptions = StreamTextOptions
1420
+
1421
+ @typing.final
1422
+ class StreamByteOptions(google.protobuf.message.Message):
1423
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1424
+
1425
+ @typing.final
1426
+ class AttributesEntry(google.protobuf.message.Message):
1427
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1428
+
1429
+ KEY_FIELD_NUMBER: builtins.int
1430
+ VALUE_FIELD_NUMBER: builtins.int
1431
+ key: builtins.str
1432
+ value: builtins.str
1433
+ def __init__(
1434
+ self,
1435
+ *,
1436
+ key: builtins.str | None = ...,
1437
+ value: builtins.str | None = ...,
1438
+ ) -> None: ...
1439
+ def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ...
1440
+ def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
1441
+
1442
+ TOPIC_FIELD_NUMBER: builtins.int
1443
+ ATTRIBUTES_FIELD_NUMBER: builtins.int
1444
+ DESTINATION_IDENTITIES_FIELD_NUMBER: builtins.int
1445
+ ID_FIELD_NUMBER: builtins.int
1446
+ NAME_FIELD_NUMBER: builtins.int
1447
+ MIME_TYPE_FIELD_NUMBER: builtins.int
1448
+ TOTAL_LENGTH_FIELD_NUMBER: builtins.int
1449
+ COMPRESS_FIELD_NUMBER: builtins.int
1450
+ SENDER_IDENTITY_FIELD_NUMBER: builtins.int
1451
+ topic: builtins.str
1452
+ id: builtins.str
1453
+ name: builtins.str
1454
+ mime_type: builtins.str
1455
+ total_length: builtins.int
1456
+ compress: builtins.bool
1457
+ sender_identity: builtins.str
1458
+ """Identity the stream's packets are attributed to; requires permission to impersonate."""
1459
+ @property
1460
+ def attributes(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ...
1461
+ @property
1462
+ def destination_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
1463
+ def __init__(
1464
+ self,
1465
+ *,
1466
+ topic: builtins.str | None = ...,
1467
+ attributes: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
1468
+ destination_identities: collections.abc.Iterable[builtins.str] | None = ...,
1469
+ id: builtins.str | None = ...,
1470
+ name: builtins.str | None = ...,
1471
+ mime_type: builtins.str | None = ...,
1472
+ total_length: builtins.int | None = ...,
1473
+ compress: builtins.bool | None = ...,
1474
+ sender_identity: builtins.str | None = ...,
1475
+ ) -> None: ...
1476
+ def HasField(self, field_name: typing.Literal["compress", b"compress", "id", b"id", "mime_type", b"mime_type", "name", b"name", "sender_identity", b"sender_identity", "topic", b"topic", "total_length", b"total_length"]) -> builtins.bool: ...
1477
+ def ClearField(self, field_name: typing.Literal["attributes", b"attributes", "compress", b"compress", "destination_identities", b"destination_identities", "id", b"id", "mime_type", b"mime_type", "name", b"name", "sender_identity", b"sender_identity", "topic", b"topic", "total_length", b"total_length"]) -> None: ...
1478
+
1479
+ global___StreamByteOptions = StreamByteOptions
1480
+
1481
+ @typing.final
1482
+ class StreamError(google.protobuf.message.Message):
1483
+ """Error pertaining to a stream."""
1484
+
1485
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1486
+
1487
+ DESCRIPTION_FIELD_NUMBER: builtins.int
1488
+ description: builtins.str
1489
+ """TODO(ladvoc): make this an enum."""
1490
+ def __init__(
1491
+ self,
1492
+ *,
1493
+ description: builtins.str | None = ...,
1494
+ ) -> None: ...
1495
+ def HasField(self, field_name: typing.Literal["description", b"description"]) -> builtins.bool: ...
1496
+ def ClearField(self, field_name: typing.Literal["description", b"description"]) -> None: ...
1497
+
1498
+ global___StreamError = StreamError