From f2ffba22a2c3b73765acb7b20137fbddb0abf450 Mon Sep 17 00:00:00 2001 From: David Zhao Date: Sat, 9 May 2026 22:40:43 -0700 Subject: [PATCH 1/6] feat: expose SimulateScenario for e2e testing --- livekit-rtc/livekit/rtc/__init__.py | 2 + .../livekit/rtc/_proto/audio_frame_pb2.py | 16 +- .../livekit/rtc/_proto/audio_frame_pb2.pyi | 1546 +++--- .../livekit/rtc/_proto/data_stream_pb2.py | 24 +- .../livekit/rtc/_proto/data_stream_pb2.pyi | 2059 ++++---- .../livekit/rtc/_proto/data_track_pb2.py | 16 +- .../livekit/rtc/_proto/data_track_pb2.pyi | 837 ++-- livekit-rtc/livekit/rtc/_proto/e2ee_pb2.py | 16 +- livekit-rtc/livekit/rtc/_proto/e2ee_pb2.pyi | 866 ++-- livekit-rtc/livekit/rtc/_proto/ffi_pb2.py | 56 +- livekit-rtc/livekit/rtc/_proto/ffi_pb2.pyi | 1809 +++---- livekit-rtc/livekit/rtc/_proto/handle_pb2.py | 16 +- livekit-rtc/livekit/rtc/_proto/handle_pb2.pyi | 37 +- .../livekit/rtc/_proto/participant_pb2.py | 18 +- .../livekit/rtc/_proto/participant_pb2.pyi | 284 +- livekit-rtc/livekit/rtc/_proto/room_pb2.py | 502 +- livekit-rtc/livekit/rtc/_proto/room_pb2.pyi | 4305 +++++++++-------- livekit-rtc/livekit/rtc/_proto/rpc_pb2.py | 16 +- livekit-rtc/livekit/rtc/_proto/rpc_pb2.pyi | 383 +- livekit-rtc/livekit/rtc/_proto/stats_pb2.py | 18 +- livekit-rtc/livekit/rtc/_proto/stats_pb2.pyi | 2505 +++++----- livekit-rtc/livekit/rtc/_proto/track_pb2.py | 16 +- livekit-rtc/livekit/rtc/_proto/track_pb2.pyi | 693 +-- .../rtc/_proto/track_publication_pb2.py | 16 +- .../rtc/_proto/track_publication_pb2.pyi | 154 +- .../livekit/rtc/_proto/video_frame_pb2.py | 16 +- .../livekit/rtc/_proto/video_frame_pb2.pyi | 822 ++-- livekit-rtc/livekit/rtc/room.py | 50 + livekit-rtc/rust-sdks | 2 +- 29 files changed, 9350 insertions(+), 7750 deletions(-) diff --git a/livekit-rtc/livekit/rtc/__init__.py b/livekit-rtc/livekit/rtc/__init__.py index cc9c1b1e..25200b39 100644 --- a/livekit-rtc/livekit/rtc/__init__.py +++ b/livekit-rtc/livekit/rtc/__init__.py @@ -60,6 +60,7 @@ Room, RoomOptions, RtcConfiguration, + SimulateScenario, SipDTMF, RtcStats, ) @@ -152,6 +153,7 @@ "Room", "RoomOptions", "RtcConfiguration", + "SimulateScenario", "SipDTMF", "RtcStats", "DataPacket", diff --git a/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.py b/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.py index c634580d..b114db10 100644 --- a/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: audio_frame.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 7.34.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 7, + 34, + 1, + '', + 'audio_frame.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -21,8 +31,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'audio_frame_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'\252\002\rLiveKit.Proto' _globals['_SOXRESAMPLERDATATYPE']._serialized_start=4499 _globals['_SOXRESAMPLERDATATYPE']._serialized_end=4573 diff --git a/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.pyi index cb73e1ea..46b2244a 100644 --- a/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.pyi @@ -16,30 +16,30 @@ See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -from . import handle_pb2 +from collections import abc as _abc +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +import builtins as _builtins +from . import handle_pb2 as _handle_pb2 import sys -from . import track_pb2 -import typing +from . import track_pb2 as _track_pb2 +import typing as _typing -if sys.version_info >= (3, 10): - import typing as typing_extensions +if sys.version_info >= (3, 11): + from typing import TypeAlias as _TypeAlias, Never as _Never else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias, Never as _Never -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor class _SoxResamplerDataType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _SoxResamplerDataTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SoxResamplerDataType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _SoxResamplerDataTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_SoxResamplerDataType.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor SOXR_DATATYPE_INT16I: _SoxResamplerDataType.ValueType # 0 """TODO(theomonnom): support other datatypes (shouldn't really be needed)""" SOXR_DATATYPE_INT16S: _SoxResamplerDataType.ValueType # 1 @@ -49,14 +49,14 @@ class SoxResamplerDataType(_SoxResamplerDataType, metaclass=_SoxResamplerDataTyp SOXR_DATATYPE_INT16I: SoxResamplerDataType.ValueType # 0 """TODO(theomonnom): support other datatypes (shouldn't really be needed)""" SOXR_DATATYPE_INT16S: SoxResamplerDataType.ValueType # 1 -global___SoxResamplerDataType = SoxResamplerDataType +Global___SoxResamplerDataType: _TypeAlias = SoxResamplerDataType # noqa: Y015 class _SoxQualityRecipe: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _SoxQualityRecipeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SoxQualityRecipe.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _SoxQualityRecipeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_SoxQualityRecipe.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor SOXR_QUALITY_QUICK: _SoxQualityRecipe.ValueType # 0 SOXR_QUALITY_LOW: _SoxQualityRecipe.ValueType # 1 SOXR_QUALITY_MEDIUM: _SoxQualityRecipe.ValueType # 2 @@ -70,14 +70,14 @@ SOXR_QUALITY_LOW: SoxQualityRecipe.ValueType # 1 SOXR_QUALITY_MEDIUM: SoxQualityRecipe.ValueType # 2 SOXR_QUALITY_HIGH: SoxQualityRecipe.ValueType # 3 SOXR_QUALITY_VERYHIGH: SoxQualityRecipe.ValueType # 4 -global___SoxQualityRecipe = SoxQualityRecipe +Global___SoxQualityRecipe: _TypeAlias = SoxQualityRecipe # noqa: Y015 class _SoxFlagBits: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _SoxFlagBitsEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SoxFlagBits.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _SoxFlagBitsEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_SoxFlagBits.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor SOXR_ROLLOFF_SMALL: _SoxFlagBits.ValueType # 0 """1 << 0""" SOXR_ROLLOFF_MEDIUM: _SoxFlagBits.ValueType # 1 @@ -105,14 +105,14 @@ SOXR_DOUBLE_PRECISION: SoxFlagBits.ValueType # 4 """1 << 4""" SOXR_VR: SoxFlagBits.ValueType # 5 """1 << 5""" -global___SoxFlagBits = SoxFlagBits +Global___SoxFlagBits: _TypeAlias = SoxFlagBits # noqa: Y015 class _AudioStreamType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _AudioStreamTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_AudioStreamType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _AudioStreamTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_AudioStreamType.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor AUDIO_STREAM_NATIVE: _AudioStreamType.ValueType # 0 AUDIO_STREAM_HTML: _AudioStreamType.ValueType # 1 @@ -123,46 +123,46 @@ class AudioStreamType(_AudioStreamType, metaclass=_AudioStreamTypeEnumTypeWrappe AUDIO_STREAM_NATIVE: AudioStreamType.ValueType # 0 AUDIO_STREAM_HTML: AudioStreamType.ValueType # 1 -global___AudioStreamType = AudioStreamType +Global___AudioStreamType: _TypeAlias = AudioStreamType # noqa: Y015 class _AudioSourceType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _AudioSourceTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_AudioSourceType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _AudioSourceTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_AudioSourceType.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor AUDIO_SOURCE_NATIVE: _AudioSourceType.ValueType # 0 class AudioSourceType(_AudioSourceType, metaclass=_AudioSourceTypeEnumTypeWrapper): ... AUDIO_SOURCE_NATIVE: AudioSourceType.ValueType # 0 -global___AudioSourceType = AudioSourceType +Global___AudioSourceType: _TypeAlias = AudioSourceType # noqa: Y015 -@typing.final -class NewAudioStreamRequest(google.protobuf.message.Message): +@_typing.final +class NewAudioStreamRequest(_message.Message): """Create a new AudioStream AudioStream is used to receive audio frames from a track """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TRACK_HANDLE_FIELD_NUMBER: builtins.int - TYPE_FIELD_NUMBER: builtins.int - SAMPLE_RATE_FIELD_NUMBER: builtins.int - NUM_CHANNELS_FIELD_NUMBER: builtins.int - AUDIO_FILTER_MODULE_ID_FIELD_NUMBER: builtins.int - AUDIO_FILTER_OPTIONS_FIELD_NUMBER: builtins.int - FRAME_SIZE_MS_FIELD_NUMBER: builtins.int - QUEUE_SIZE_FRAMES_FIELD_NUMBER: builtins.int - track_handle: builtins.int - type: global___AudioStreamType.ValueType - sample_rate: builtins.int - num_channels: builtins.int - audio_filter_module_id: builtins.str + DESCRIPTOR: _descriptor.Descriptor + + TRACK_HANDLE_FIELD_NUMBER: _builtins.int + TYPE_FIELD_NUMBER: _builtins.int + SAMPLE_RATE_FIELD_NUMBER: _builtins.int + NUM_CHANNELS_FIELD_NUMBER: _builtins.int + AUDIO_FILTER_MODULE_ID_FIELD_NUMBER: _builtins.int + AUDIO_FILTER_OPTIONS_FIELD_NUMBER: _builtins.int + FRAME_SIZE_MS_FIELD_NUMBER: _builtins.int + QUEUE_SIZE_FRAMES_FIELD_NUMBER: _builtins.int + track_handle: _builtins.int + type: Global___AudioStreamType.ValueType + sample_rate: _builtins.int + num_channels: _builtins.int + audio_filter_module_id: _builtins.str """Unique identifier passed in LoadAudioFilterPluginRequest""" - audio_filter_options: builtins.str - frame_size_ms: builtins.int - queue_size_frames: builtins.int + audio_filter_options: _builtins.str + frame_size_ms: _builtins.int + queue_size_frames: _builtins.int """Maximum number of queued WebRTC sink frames. Each frame is typically 10 ms of decoded PCM audio on the receive path. Omit this field to use the default bounded queue size of 10 frames. Set it to 0 to request unbounded @@ -176,59 +176,65 @@ class NewAudioStreamRequest(google.protobuf.message.Message): def __init__( self, *, - track_handle: builtins.int | None = ..., - type: global___AudioStreamType.ValueType | None = ..., - sample_rate: builtins.int | None = ..., - num_channels: builtins.int | None = ..., - audio_filter_module_id: builtins.str | None = ..., - audio_filter_options: builtins.str | None = ..., - frame_size_ms: builtins.int | None = ..., - queue_size_frames: builtins.int | None = ..., + track_handle: _builtins.int | None = ..., + type: Global___AudioStreamType.ValueType | None = ..., + sample_rate: _builtins.int | None = ..., + num_channels: _builtins.int | None = ..., + audio_filter_module_id: _builtins.str | None = ..., + audio_filter_options: _builtins.str | None = ..., + frame_size_ms: _builtins.int | None = ..., + queue_size_frames: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["audio_filter_module_id", b"audio_filter_module_id", "audio_filter_options", b"audio_filter_options", "frame_size_ms", b"frame_size_ms", "num_channels", b"num_channels", "queue_size_frames", b"queue_size_frames", "sample_rate", b"sample_rate", "track_handle", b"track_handle", "type", b"type"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["audio_filter_module_id", b"audio_filter_module_id", "audio_filter_options", b"audio_filter_options", "frame_size_ms", b"frame_size_ms", "num_channels", b"num_channels", "queue_size_frames", b"queue_size_frames", "sample_rate", b"sample_rate", "track_handle", b"track_handle", "type", b"type"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["audio_filter_module_id", b"audio_filter_module_id", "audio_filter_options", b"audio_filter_options", "frame_size_ms", b"frame_size_ms", "num_channels", b"num_channels", "queue_size_frames", b"queue_size_frames", "sample_rate", b"sample_rate", "track_handle", b"track_handle", "type", b"type"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["audio_filter_module_id", b"audio_filter_module_id", "audio_filter_options", b"audio_filter_options", "frame_size_ms", b"frame_size_ms", "num_channels", b"num_channels", "queue_size_frames", b"queue_size_frames", "sample_rate", b"sample_rate", "track_handle", b"track_handle", "type", b"type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___NewAudioStreamRequest = NewAudioStreamRequest +Global___NewAudioStreamRequest: _TypeAlias = NewAudioStreamRequest # noqa: Y015 -@typing.final -class NewAudioStreamResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class NewAudioStreamResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - STREAM_FIELD_NUMBER: builtins.int - @property - def stream(self) -> global___OwnedAudioStream: ... + STREAM_FIELD_NUMBER: _builtins.int + @_builtins.property + def stream(self) -> Global___OwnedAudioStream: ... def __init__( self, *, - stream: global___OwnedAudioStream | None = ..., + stream: Global___OwnedAudioStream | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["stream", b"stream"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["stream", b"stream"]) -> None: ... - -global___NewAudioStreamResponse = NewAudioStreamResponse - -@typing.final -class AudioStreamFromParticipantRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - TYPE_FIELD_NUMBER: builtins.int - TRACK_SOURCE_FIELD_NUMBER: builtins.int - SAMPLE_RATE_FIELD_NUMBER: builtins.int - NUM_CHANNELS_FIELD_NUMBER: builtins.int - AUDIO_FILTER_MODULE_ID_FIELD_NUMBER: builtins.int - AUDIO_FILTER_OPTIONS_FIELD_NUMBER: builtins.int - FRAME_SIZE_MS_FIELD_NUMBER: builtins.int - QUEUE_SIZE_FRAMES_FIELD_NUMBER: builtins.int - participant_handle: builtins.int - type: global___AudioStreamType.ValueType - track_source: track_pb2.TrackSource.ValueType - sample_rate: builtins.int - num_channels: builtins.int - audio_filter_module_id: builtins.str - audio_filter_options: builtins.str - frame_size_ms: builtins.int - queue_size_frames: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["stream", b"stream"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["stream", b"stream"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___NewAudioStreamResponse: _TypeAlias = NewAudioStreamResponse # noqa: Y015 + +@_typing.final +class AudioStreamFromParticipantRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + TYPE_FIELD_NUMBER: _builtins.int + TRACK_SOURCE_FIELD_NUMBER: _builtins.int + SAMPLE_RATE_FIELD_NUMBER: _builtins.int + NUM_CHANNELS_FIELD_NUMBER: _builtins.int + AUDIO_FILTER_MODULE_ID_FIELD_NUMBER: _builtins.int + AUDIO_FILTER_OPTIONS_FIELD_NUMBER: _builtins.int + FRAME_SIZE_MS_FIELD_NUMBER: _builtins.int + QUEUE_SIZE_FRAMES_FIELD_NUMBER: _builtins.int + participant_handle: _builtins.int + type: Global___AudioStreamType.ValueType + track_source: _track_pb2.TrackSource.ValueType + sample_rate: _builtins.int + num_channels: _builtins.int + audio_filter_module_id: _builtins.str + audio_filter_options: _builtins.str + frame_size_ms: _builtins.int + queue_size_frames: _builtins.int """Maximum number of queued WebRTC sink frames. Each frame is typically 10 ms of decoded PCM audio on the receive path. Omit this field to use the default bounded queue size of 10 frames. Set it to 0 to request unbounded @@ -242,899 +248,1043 @@ class AudioStreamFromParticipantRequest(google.protobuf.message.Message): def __init__( self, *, - participant_handle: builtins.int | None = ..., - type: global___AudioStreamType.ValueType | None = ..., - track_source: track_pb2.TrackSource.ValueType | None = ..., - sample_rate: builtins.int | None = ..., - num_channels: builtins.int | None = ..., - audio_filter_module_id: builtins.str | None = ..., - audio_filter_options: builtins.str | None = ..., - frame_size_ms: builtins.int | None = ..., - queue_size_frames: builtins.int | None = ..., + participant_handle: _builtins.int | None = ..., + type: Global___AudioStreamType.ValueType | None = ..., + track_source: _track_pb2.TrackSource.ValueType | None = ..., + sample_rate: _builtins.int | None = ..., + num_channels: _builtins.int | None = ..., + audio_filter_module_id: _builtins.str | None = ..., + audio_filter_options: _builtins.str | None = ..., + frame_size_ms: _builtins.int | None = ..., + queue_size_frames: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["audio_filter_module_id", b"audio_filter_module_id", "audio_filter_options", b"audio_filter_options", "frame_size_ms", b"frame_size_ms", "num_channels", b"num_channels", "participant_handle", b"participant_handle", "queue_size_frames", b"queue_size_frames", "sample_rate", b"sample_rate", "track_source", b"track_source", "type", b"type"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["audio_filter_module_id", b"audio_filter_module_id", "audio_filter_options", b"audio_filter_options", "frame_size_ms", b"frame_size_ms", "num_channels", b"num_channels", "participant_handle", b"participant_handle", "queue_size_frames", b"queue_size_frames", "sample_rate", b"sample_rate", "track_source", b"track_source", "type", b"type"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["audio_filter_module_id", b"audio_filter_module_id", "audio_filter_options", b"audio_filter_options", "frame_size_ms", b"frame_size_ms", "num_channels", b"num_channels", "participant_handle", b"participant_handle", "queue_size_frames", b"queue_size_frames", "sample_rate", b"sample_rate", "track_source", b"track_source", "type", b"type"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["audio_filter_module_id", b"audio_filter_module_id", "audio_filter_options", b"audio_filter_options", "frame_size_ms", b"frame_size_ms", "num_channels", b"num_channels", "participant_handle", b"participant_handle", "queue_size_frames", b"queue_size_frames", "sample_rate", b"sample_rate", "track_source", b"track_source", "type", b"type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___AudioStreamFromParticipantRequest = AudioStreamFromParticipantRequest +Global___AudioStreamFromParticipantRequest: _TypeAlias = AudioStreamFromParticipantRequest # noqa: Y015 -@typing.final -class AudioStreamFromParticipantResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class AudioStreamFromParticipantResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - STREAM_FIELD_NUMBER: builtins.int - @property - def stream(self) -> global___OwnedAudioStream: ... + STREAM_FIELD_NUMBER: _builtins.int + @_builtins.property + def stream(self) -> Global___OwnedAudioStream: ... def __init__( self, *, - stream: global___OwnedAudioStream | None = ..., + stream: Global___OwnedAudioStream | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["stream", b"stream"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["stream", b"stream"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["stream", b"stream"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["stream", b"stream"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___AudioStreamFromParticipantResponse = AudioStreamFromParticipantResponse +Global___AudioStreamFromParticipantResponse: _TypeAlias = AudioStreamFromParticipantResponse # noqa: Y015 -@typing.final -class NewAudioSourceRequest(google.protobuf.message.Message): +@_typing.final +class NewAudioSourceRequest(_message.Message): """Create a new AudioSource""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TYPE_FIELD_NUMBER: builtins.int - OPTIONS_FIELD_NUMBER: builtins.int - SAMPLE_RATE_FIELD_NUMBER: builtins.int - NUM_CHANNELS_FIELD_NUMBER: builtins.int - QUEUE_SIZE_MS_FIELD_NUMBER: builtins.int - type: global___AudioSourceType.ValueType - sample_rate: builtins.int - num_channels: builtins.int - queue_size_ms: builtins.int - @property - def options(self) -> global___AudioSourceOptions: ... + DESCRIPTOR: _descriptor.Descriptor + + TYPE_FIELD_NUMBER: _builtins.int + OPTIONS_FIELD_NUMBER: _builtins.int + SAMPLE_RATE_FIELD_NUMBER: _builtins.int + NUM_CHANNELS_FIELD_NUMBER: _builtins.int + QUEUE_SIZE_MS_FIELD_NUMBER: _builtins.int + type: Global___AudioSourceType.ValueType + sample_rate: _builtins.int + num_channels: _builtins.int + queue_size_ms: _builtins.int + @_builtins.property + def options(self) -> Global___AudioSourceOptions: ... def __init__( self, *, - type: global___AudioSourceType.ValueType | None = ..., - options: global___AudioSourceOptions | None = ..., - sample_rate: builtins.int | None = ..., - num_channels: builtins.int | None = ..., - queue_size_ms: builtins.int | None = ..., + type: Global___AudioSourceType.ValueType | None = ..., + options: Global___AudioSourceOptions | None = ..., + sample_rate: _builtins.int | None = ..., + num_channels: _builtins.int | None = ..., + queue_size_ms: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["num_channels", b"num_channels", "options", b"options", "queue_size_ms", b"queue_size_ms", "sample_rate", b"sample_rate", "type", b"type"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["num_channels", b"num_channels", "options", b"options", "queue_size_ms", b"queue_size_ms", "sample_rate", b"sample_rate", "type", b"type"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["num_channels", b"num_channels", "options", b"options", "queue_size_ms", b"queue_size_ms", "sample_rate", b"sample_rate", "type", b"type"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["num_channels", b"num_channels", "options", b"options", "queue_size_ms", b"queue_size_ms", "sample_rate", b"sample_rate", "type", b"type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___NewAudioSourceRequest = NewAudioSourceRequest +Global___NewAudioSourceRequest: _TypeAlias = NewAudioSourceRequest # noqa: Y015 -@typing.final -class NewAudioSourceResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class NewAudioSourceResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - SOURCE_FIELD_NUMBER: builtins.int - @property - def source(self) -> global___OwnedAudioSource: ... + SOURCE_FIELD_NUMBER: _builtins.int + @_builtins.property + def source(self) -> Global___OwnedAudioSource: ... def __init__( self, *, - source: global___OwnedAudioSource | None = ..., + source: Global___OwnedAudioSource | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["source", b"source"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["source", b"source"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["source", b"source"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["source", b"source"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___NewAudioSourceResponse = NewAudioSourceResponse +Global___NewAudioSourceResponse: _TypeAlias = NewAudioSourceResponse # noqa: Y015 -@typing.final -class CaptureAudioFrameRequest(google.protobuf.message.Message): +@_typing.final +class CaptureAudioFrameRequest(_message.Message): """Push a frame to an AudioSource The data provided must be available as long as the client receive the callback. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - SOURCE_HANDLE_FIELD_NUMBER: builtins.int - BUFFER_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - source_handle: builtins.int - request_async_id: builtins.int - @property - def buffer(self) -> global___AudioFrameBufferInfo: ... + SOURCE_HANDLE_FIELD_NUMBER: _builtins.int + BUFFER_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + source_handle: _builtins.int + request_async_id: _builtins.int + @_builtins.property + def buffer(self) -> Global___AudioFrameBufferInfo: ... def __init__( self, *, - source_handle: builtins.int | None = ..., - buffer: global___AudioFrameBufferInfo | None = ..., - request_async_id: builtins.int | None = ..., + source_handle: _builtins.int | None = ..., + buffer: Global___AudioFrameBufferInfo | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["buffer", b"buffer", "request_async_id", b"request_async_id", "source_handle", b"source_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["buffer", b"buffer", "request_async_id", b"request_async_id", "source_handle", b"source_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "request_async_id", b"request_async_id", "source_handle", b"source_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "request_async_id", b"request_async_id", "source_handle", b"source_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___CaptureAudioFrameRequest = CaptureAudioFrameRequest +Global___CaptureAudioFrameRequest: _TypeAlias = CaptureAudioFrameRequest # noqa: Y015 -@typing.final -class CaptureAudioFrameResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class CaptureAudioFrameResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... - -global___CaptureAudioFrameResponse = CaptureAudioFrameResponse - -@typing.final -class CaptureAudioFrameCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___CaptureAudioFrameResponse: _TypeAlias = CaptureAudioFrameResponse # noqa: Y015 + +@_typing.final +class CaptureAudioFrameCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str def __init__( self, *, - async_id: builtins.int | None = ..., - error: builtins.str | None = ..., + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___CaptureAudioFrameCallback = CaptureAudioFrameCallback +Global___CaptureAudioFrameCallback: _TypeAlias = CaptureAudioFrameCallback # noqa: Y015 -@typing.final -class ClearAudioBufferRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ClearAudioBufferRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - SOURCE_HANDLE_FIELD_NUMBER: builtins.int - source_handle: builtins.int + SOURCE_HANDLE_FIELD_NUMBER: _builtins.int + source_handle: _builtins.int def __init__( self, *, - source_handle: builtins.int | None = ..., + source_handle: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["source_handle", b"source_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["source_handle", b"source_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["source_handle", b"source_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["source_handle", b"source_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ClearAudioBufferRequest = ClearAudioBufferRequest +Global___ClearAudioBufferRequest: _TypeAlias = ClearAudioBufferRequest # noqa: Y015 -@typing.final -class ClearAudioBufferResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ClearAudioBufferResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ClearAudioBufferResponse = ClearAudioBufferResponse +Global___ClearAudioBufferResponse: _TypeAlias = ClearAudioBufferResponse # noqa: Y015 -@typing.final -class NewAudioResamplerRequest(google.protobuf.message.Message): +@_typing.final +class NewAudioResamplerRequest(_message.Message): """Create a new AudioResampler""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___NewAudioResamplerRequest = NewAudioResamplerRequest +Global___NewAudioResamplerRequest: _TypeAlias = NewAudioResamplerRequest # noqa: Y015 -@typing.final -class NewAudioResamplerResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class NewAudioResamplerResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - RESAMPLER_FIELD_NUMBER: builtins.int - @property - def resampler(self) -> global___OwnedAudioResampler: ... + RESAMPLER_FIELD_NUMBER: _builtins.int + @_builtins.property + def resampler(self) -> Global___OwnedAudioResampler: ... def __init__( self, *, - resampler: global___OwnedAudioResampler | None = ..., + resampler: Global___OwnedAudioResampler | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["resampler", b"resampler"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["resampler", b"resampler"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["resampler", b"resampler"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["resampler", b"resampler"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___NewAudioResamplerResponse = NewAudioResamplerResponse +Global___NewAudioResamplerResponse: _TypeAlias = NewAudioResamplerResponse # noqa: Y015 -@typing.final -class RemixAndResampleRequest(google.protobuf.message.Message): +@_typing.final +class RemixAndResampleRequest(_message.Message): """Remix and resample an audio frame""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RESAMPLER_HANDLE_FIELD_NUMBER: builtins.int - BUFFER_FIELD_NUMBER: builtins.int - NUM_CHANNELS_FIELD_NUMBER: builtins.int - SAMPLE_RATE_FIELD_NUMBER: builtins.int - resampler_handle: builtins.int - num_channels: builtins.int - sample_rate: builtins.int - @property - def buffer(self) -> global___AudioFrameBufferInfo: ... + DESCRIPTOR: _descriptor.Descriptor + + RESAMPLER_HANDLE_FIELD_NUMBER: _builtins.int + BUFFER_FIELD_NUMBER: _builtins.int + NUM_CHANNELS_FIELD_NUMBER: _builtins.int + SAMPLE_RATE_FIELD_NUMBER: _builtins.int + resampler_handle: _builtins.int + num_channels: _builtins.int + sample_rate: _builtins.int + @_builtins.property + def buffer(self) -> Global___AudioFrameBufferInfo: ... def __init__( self, *, - resampler_handle: builtins.int | None = ..., - buffer: global___AudioFrameBufferInfo | None = ..., - num_channels: builtins.int | None = ..., - sample_rate: builtins.int | None = ..., + resampler_handle: _builtins.int | None = ..., + buffer: Global___AudioFrameBufferInfo | None = ..., + num_channels: _builtins.int | None = ..., + sample_rate: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["buffer", b"buffer", "num_channels", b"num_channels", "resampler_handle", b"resampler_handle", "sample_rate", b"sample_rate"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["buffer", b"buffer", "num_channels", b"num_channels", "resampler_handle", b"resampler_handle", "sample_rate", b"sample_rate"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "num_channels", b"num_channels", "resampler_handle", b"resampler_handle", "sample_rate", b"sample_rate"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "num_channels", b"num_channels", "resampler_handle", b"resampler_handle", "sample_rate", b"sample_rate"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RemixAndResampleRequest = RemixAndResampleRequest +Global___RemixAndResampleRequest: _TypeAlias = RemixAndResampleRequest # noqa: Y015 -@typing.final -class RemixAndResampleResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class RemixAndResampleResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - BUFFER_FIELD_NUMBER: builtins.int - @property - def buffer(self) -> global___OwnedAudioFrameBuffer: ... + BUFFER_FIELD_NUMBER: _builtins.int + @_builtins.property + def buffer(self) -> Global___OwnedAudioFrameBuffer: ... def __init__( self, *, - buffer: global___OwnedAudioFrameBuffer | None = ..., + buffer: Global___OwnedAudioFrameBuffer | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["buffer", b"buffer"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["buffer", b"buffer"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RemixAndResampleResponse = RemixAndResampleResponse +Global___RemixAndResampleResponse: _TypeAlias = RemixAndResampleResponse # noqa: Y015 -@typing.final -class NewApmRequest(google.protobuf.message.Message): +@_typing.final +class NewApmRequest(_message.Message): """AEC""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - ECHO_CANCELLER_ENABLED_FIELD_NUMBER: builtins.int - GAIN_CONTROLLER_ENABLED_FIELD_NUMBER: builtins.int - HIGH_PASS_FILTER_ENABLED_FIELD_NUMBER: builtins.int - NOISE_SUPPRESSION_ENABLED_FIELD_NUMBER: builtins.int - echo_canceller_enabled: builtins.bool - gain_controller_enabled: builtins.bool - high_pass_filter_enabled: builtins.bool - noise_suppression_enabled: builtins.bool + ECHO_CANCELLER_ENABLED_FIELD_NUMBER: _builtins.int + GAIN_CONTROLLER_ENABLED_FIELD_NUMBER: _builtins.int + HIGH_PASS_FILTER_ENABLED_FIELD_NUMBER: _builtins.int + NOISE_SUPPRESSION_ENABLED_FIELD_NUMBER: _builtins.int + echo_canceller_enabled: _builtins.bool + gain_controller_enabled: _builtins.bool + high_pass_filter_enabled: _builtins.bool + noise_suppression_enabled: _builtins.bool def __init__( self, *, - echo_canceller_enabled: builtins.bool | None = ..., - gain_controller_enabled: builtins.bool | None = ..., - high_pass_filter_enabled: builtins.bool | None = ..., - noise_suppression_enabled: builtins.bool | None = ..., + echo_canceller_enabled: _builtins.bool | None = ..., + gain_controller_enabled: _builtins.bool | None = ..., + high_pass_filter_enabled: _builtins.bool | None = ..., + noise_suppression_enabled: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["echo_canceller_enabled", b"echo_canceller_enabled", "gain_controller_enabled", b"gain_controller_enabled", "high_pass_filter_enabled", b"high_pass_filter_enabled", "noise_suppression_enabled", b"noise_suppression_enabled"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["echo_canceller_enabled", b"echo_canceller_enabled", "gain_controller_enabled", b"gain_controller_enabled", "high_pass_filter_enabled", b"high_pass_filter_enabled", "noise_suppression_enabled", b"noise_suppression_enabled"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["echo_canceller_enabled", b"echo_canceller_enabled", "gain_controller_enabled", b"gain_controller_enabled", "high_pass_filter_enabled", b"high_pass_filter_enabled", "noise_suppression_enabled", b"noise_suppression_enabled"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["echo_canceller_enabled", b"echo_canceller_enabled", "gain_controller_enabled", b"gain_controller_enabled", "high_pass_filter_enabled", b"high_pass_filter_enabled", "noise_suppression_enabled", b"noise_suppression_enabled"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___NewApmRequest = NewApmRequest +Global___NewApmRequest: _TypeAlias = NewApmRequest # noqa: Y015 -@typing.final -class NewApmResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class NewApmResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - APM_FIELD_NUMBER: builtins.int - @property - def apm(self) -> global___OwnedApm: ... + APM_FIELD_NUMBER: _builtins.int + @_builtins.property + def apm(self) -> Global___OwnedApm: ... def __init__( self, *, - apm: global___OwnedApm | None = ..., + apm: Global___OwnedApm | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["apm", b"apm"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["apm", b"apm"]) -> None: ... - -global___NewApmResponse = NewApmResponse - -@typing.final -class ApmProcessStreamRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - APM_HANDLE_FIELD_NUMBER: builtins.int - DATA_PTR_FIELD_NUMBER: builtins.int - SIZE_FIELD_NUMBER: builtins.int - SAMPLE_RATE_FIELD_NUMBER: builtins.int - NUM_CHANNELS_FIELD_NUMBER: builtins.int - apm_handle: builtins.int - data_ptr: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["apm", b"apm"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["apm", b"apm"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___NewApmResponse: _TypeAlias = NewApmResponse # noqa: Y015 + +@_typing.final +class ApmProcessStreamRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + APM_HANDLE_FIELD_NUMBER: _builtins.int + DATA_PTR_FIELD_NUMBER: _builtins.int + SIZE_FIELD_NUMBER: _builtins.int + SAMPLE_RATE_FIELD_NUMBER: _builtins.int + NUM_CHANNELS_FIELD_NUMBER: _builtins.int + apm_handle: _builtins.int + data_ptr: _builtins.int """*mut i16""" - size: builtins.int + size: _builtins.int """in bytes""" - sample_rate: builtins.int - num_channels: builtins.int + sample_rate: _builtins.int + num_channels: _builtins.int def __init__( self, *, - apm_handle: builtins.int | None = ..., - data_ptr: builtins.int | None = ..., - size: builtins.int | None = ..., - sample_rate: builtins.int | None = ..., - num_channels: builtins.int | None = ..., + apm_handle: _builtins.int | None = ..., + data_ptr: _builtins.int | None = ..., + size: _builtins.int | None = ..., + sample_rate: _builtins.int | None = ..., + num_channels: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["apm_handle", b"apm_handle", "data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "size", b"size"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["apm_handle", b"apm_handle", "data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "size", b"size"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["apm_handle", b"apm_handle", "data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "size", b"size"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["apm_handle", b"apm_handle", "data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "size", b"size"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ApmProcessStreamRequest = ApmProcessStreamRequest +Global___ApmProcessStreamRequest: _TypeAlias = ApmProcessStreamRequest # noqa: Y015 -@typing.final -class ApmProcessStreamResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ApmProcessStreamResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ERROR_FIELD_NUMBER: builtins.int - error: builtins.str + ERROR_FIELD_NUMBER: _builtins.int + error: _builtins.str def __init__( self, *, - error: builtins.str | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["error", b"error"]) -> None: ... - -global___ApmProcessStreamResponse = ApmProcessStreamResponse - -@typing.final -class ApmProcessReverseStreamRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - APM_HANDLE_FIELD_NUMBER: builtins.int - DATA_PTR_FIELD_NUMBER: builtins.int - SIZE_FIELD_NUMBER: builtins.int - SAMPLE_RATE_FIELD_NUMBER: builtins.int - NUM_CHANNELS_FIELD_NUMBER: builtins.int - apm_handle: builtins.int - data_ptr: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___ApmProcessStreamResponse: _TypeAlias = ApmProcessStreamResponse # noqa: Y015 + +@_typing.final +class ApmProcessReverseStreamRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + APM_HANDLE_FIELD_NUMBER: _builtins.int + DATA_PTR_FIELD_NUMBER: _builtins.int + SIZE_FIELD_NUMBER: _builtins.int + SAMPLE_RATE_FIELD_NUMBER: _builtins.int + NUM_CHANNELS_FIELD_NUMBER: _builtins.int + apm_handle: _builtins.int + data_ptr: _builtins.int """*mut i16""" - size: builtins.int + size: _builtins.int """in bytes""" - sample_rate: builtins.int - num_channels: builtins.int + sample_rate: _builtins.int + num_channels: _builtins.int def __init__( self, *, - apm_handle: builtins.int | None = ..., - data_ptr: builtins.int | None = ..., - size: builtins.int | None = ..., - sample_rate: builtins.int | None = ..., - num_channels: builtins.int | None = ..., + apm_handle: _builtins.int | None = ..., + data_ptr: _builtins.int | None = ..., + size: _builtins.int | None = ..., + sample_rate: _builtins.int | None = ..., + num_channels: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["apm_handle", b"apm_handle", "data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "size", b"size"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["apm_handle", b"apm_handle", "data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "size", b"size"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["apm_handle", b"apm_handle", "data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "size", b"size"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["apm_handle", b"apm_handle", "data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "size", b"size"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ApmProcessReverseStreamRequest = ApmProcessReverseStreamRequest +Global___ApmProcessReverseStreamRequest: _TypeAlias = ApmProcessReverseStreamRequest # noqa: Y015 -@typing.final -class ApmProcessReverseStreamResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ApmProcessReverseStreamResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ERROR_FIELD_NUMBER: builtins.int - error: builtins.str + ERROR_FIELD_NUMBER: _builtins.int + error: _builtins.str def __init__( self, *, - error: builtins.str | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["error", b"error"]) -> None: ... - -global___ApmProcessReverseStreamResponse = ApmProcessReverseStreamResponse - -@typing.final -class ApmSetStreamDelayRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - APM_HANDLE_FIELD_NUMBER: builtins.int - DELAY_MS_FIELD_NUMBER: builtins.int - apm_handle: builtins.int - delay_ms: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___ApmProcessReverseStreamResponse: _TypeAlias = ApmProcessReverseStreamResponse # noqa: Y015 + +@_typing.final +class ApmSetStreamDelayRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + APM_HANDLE_FIELD_NUMBER: _builtins.int + DELAY_MS_FIELD_NUMBER: _builtins.int + apm_handle: _builtins.int + delay_ms: _builtins.int def __init__( self, *, - apm_handle: builtins.int | None = ..., - delay_ms: builtins.int | None = ..., + apm_handle: _builtins.int | None = ..., + delay_ms: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["apm_handle", b"apm_handle", "delay_ms", b"delay_ms"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["apm_handle", b"apm_handle", "delay_ms", b"delay_ms"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["apm_handle", b"apm_handle", "delay_ms", b"delay_ms"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["apm_handle", b"apm_handle", "delay_ms", b"delay_ms"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ApmSetStreamDelayRequest = ApmSetStreamDelayRequest +Global___ApmSetStreamDelayRequest: _TypeAlias = ApmSetStreamDelayRequest # noqa: Y015 -@typing.final -class ApmSetStreamDelayResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ApmSetStreamDelayResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ERROR_FIELD_NUMBER: builtins.int - error: builtins.str + ERROR_FIELD_NUMBER: _builtins.int + error: _builtins.str def __init__( self, *, - error: builtins.str | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ApmSetStreamDelayResponse = ApmSetStreamDelayResponse +Global___ApmSetStreamDelayResponse: _TypeAlias = ApmSetStreamDelayResponse # noqa: Y015 -@typing.final -class NewSoxResamplerRequest(google.protobuf.message.Message): +@_typing.final +class NewSoxResamplerRequest(_message.Message): """New resampler using SoX (much better quality)""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - INPUT_RATE_FIELD_NUMBER: builtins.int - OUTPUT_RATE_FIELD_NUMBER: builtins.int - NUM_CHANNELS_FIELD_NUMBER: builtins.int - INPUT_DATA_TYPE_FIELD_NUMBER: builtins.int - OUTPUT_DATA_TYPE_FIELD_NUMBER: builtins.int - QUALITY_RECIPE_FIELD_NUMBER: builtins.int - FLAGS_FIELD_NUMBER: builtins.int - input_rate: builtins.float - output_rate: builtins.float - num_channels: builtins.int - input_data_type: global___SoxResamplerDataType.ValueType - output_data_type: global___SoxResamplerDataType.ValueType - quality_recipe: global___SoxQualityRecipe.ValueType - flags: builtins.int + DESCRIPTOR: _descriptor.Descriptor + + INPUT_RATE_FIELD_NUMBER: _builtins.int + OUTPUT_RATE_FIELD_NUMBER: _builtins.int + NUM_CHANNELS_FIELD_NUMBER: _builtins.int + INPUT_DATA_TYPE_FIELD_NUMBER: _builtins.int + OUTPUT_DATA_TYPE_FIELD_NUMBER: _builtins.int + QUALITY_RECIPE_FIELD_NUMBER: _builtins.int + FLAGS_FIELD_NUMBER: _builtins.int + input_rate: _builtins.float + output_rate: _builtins.float + num_channels: _builtins.int + input_data_type: Global___SoxResamplerDataType.ValueType + output_data_type: Global___SoxResamplerDataType.ValueType + quality_recipe: Global___SoxQualityRecipe.ValueType + flags: _builtins.int def __init__( self, *, - input_rate: builtins.float | None = ..., - output_rate: builtins.float | None = ..., - num_channels: builtins.int | None = ..., - input_data_type: global___SoxResamplerDataType.ValueType | None = ..., - output_data_type: global___SoxResamplerDataType.ValueType | None = ..., - quality_recipe: global___SoxQualityRecipe.ValueType | None = ..., - flags: builtins.int | None = ..., + input_rate: _builtins.float | None = ..., + output_rate: _builtins.float | None = ..., + num_channels: _builtins.int | None = ..., + input_data_type: Global___SoxResamplerDataType.ValueType | None = ..., + output_data_type: Global___SoxResamplerDataType.ValueType | None = ..., + quality_recipe: Global___SoxQualityRecipe.ValueType | None = ..., + flags: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["flags", b"flags", "input_data_type", b"input_data_type", "input_rate", b"input_rate", "num_channels", b"num_channels", "output_data_type", b"output_data_type", "output_rate", b"output_rate", "quality_recipe", b"quality_recipe"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["flags", b"flags", "input_data_type", b"input_data_type", "input_rate", b"input_rate", "num_channels", b"num_channels", "output_data_type", b"output_data_type", "output_rate", b"output_rate", "quality_recipe", b"quality_recipe"]) -> None: ... - -global___NewSoxResamplerRequest = NewSoxResamplerRequest - -@typing.final -class NewSoxResamplerResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RESAMPLER_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - error: builtins.str - @property - def resampler(self) -> global___OwnedSoxResampler: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["flags", b"flags", "input_data_type", b"input_data_type", "input_rate", b"input_rate", "num_channels", b"num_channels", "output_data_type", b"output_data_type", "output_rate", b"output_rate", "quality_recipe", b"quality_recipe"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["flags", b"flags", "input_data_type", b"input_data_type", "input_rate", b"input_rate", "num_channels", b"num_channels", "output_data_type", b"output_data_type", "output_rate", b"output_rate", "quality_recipe", b"quality_recipe"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___NewSoxResamplerRequest: _TypeAlias = NewSoxResamplerRequest # noqa: Y015 + +@_typing.final +class NewSoxResamplerResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RESAMPLER_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + error: _builtins.str + @_builtins.property + def resampler(self) -> Global___OwnedSoxResampler: ... def __init__( self, *, - resampler: global___OwnedSoxResampler | None = ..., - error: builtins.str | None = ..., + resampler: Global___OwnedSoxResampler | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["error", b"error", "message", b"message", "resampler", b"resampler"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["error", b"error", "message", b"message", "resampler", b"resampler"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["resampler", "error"] | None: ... - -global___NewSoxResamplerResponse = NewSoxResamplerResponse - -@typing.final -class PushSoxResamplerRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RESAMPLER_HANDLE_FIELD_NUMBER: builtins.int - DATA_PTR_FIELD_NUMBER: builtins.int - SIZE_FIELD_NUMBER: builtins.int - resampler_handle: builtins.int - data_ptr: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "message", b"message", "resampler", b"resampler"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "message", b"message", "resampler", b"resampler"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["resampler", "error"] # noqa: Y015 + _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... + +Global___NewSoxResamplerResponse: _TypeAlias = NewSoxResamplerResponse # noqa: Y015 + +@_typing.final +class PushSoxResamplerRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RESAMPLER_HANDLE_FIELD_NUMBER: _builtins.int + DATA_PTR_FIELD_NUMBER: _builtins.int + SIZE_FIELD_NUMBER: _builtins.int + resampler_handle: _builtins.int + data_ptr: _builtins.int """*const i16""" - size: builtins.int + size: _builtins.int """in bytes""" def __init__( self, *, - resampler_handle: builtins.int | None = ..., - data_ptr: builtins.int | None = ..., - size: builtins.int | None = ..., + resampler_handle: _builtins.int | None = ..., + data_ptr: _builtins.int | None = ..., + size: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["data_ptr", b"data_ptr", "resampler_handle", b"resampler_handle", "size", b"size"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["data_ptr", b"data_ptr", "resampler_handle", b"resampler_handle", "size", b"size"]) -> None: ... - -global___PushSoxResamplerRequest = PushSoxResamplerRequest - -@typing.final -class PushSoxResamplerResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - OUTPUT_PTR_FIELD_NUMBER: builtins.int - SIZE_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - output_ptr: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["data_ptr", b"data_ptr", "resampler_handle", b"resampler_handle", "size", b"size"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["data_ptr", b"data_ptr", "resampler_handle", b"resampler_handle", "size", b"size"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___PushSoxResamplerRequest: _TypeAlias = PushSoxResamplerRequest # noqa: Y015 + +@_typing.final +class PushSoxResamplerResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + OUTPUT_PTR_FIELD_NUMBER: _builtins.int + SIZE_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + output_ptr: _builtins.int """*const i16 (could be null)""" - size: builtins.int + size: _builtins.int """in bytes""" - error: builtins.str + error: _builtins.str def __init__( self, *, - output_ptr: builtins.int | None = ..., - size: builtins.int | None = ..., - error: builtins.str | None = ..., + output_ptr: _builtins.int | None = ..., + size: _builtins.int | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["error", b"error", "output_ptr", b"output_ptr", "size", b"size"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["error", b"error", "output_ptr", b"output_ptr", "size", b"size"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "output_ptr", b"output_ptr", "size", b"size"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "output_ptr", b"output_ptr", "size", b"size"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___PushSoxResamplerResponse = PushSoxResamplerResponse +Global___PushSoxResamplerResponse: _TypeAlias = PushSoxResamplerResponse # noqa: Y015 -@typing.final -class FlushSoxResamplerRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FlushSoxResamplerRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - RESAMPLER_HANDLE_FIELD_NUMBER: builtins.int - resampler_handle: builtins.int + RESAMPLER_HANDLE_FIELD_NUMBER: _builtins.int + resampler_handle: _builtins.int def __init__( self, *, - resampler_handle: builtins.int | None = ..., + resampler_handle: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["resampler_handle", b"resampler_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["resampler_handle", b"resampler_handle"]) -> None: ... - -global___FlushSoxResamplerRequest = FlushSoxResamplerRequest - -@typing.final -class FlushSoxResamplerResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - OUTPUT_PTR_FIELD_NUMBER: builtins.int - SIZE_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - output_ptr: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["resampler_handle", b"resampler_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["resampler_handle", b"resampler_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___FlushSoxResamplerRequest: _TypeAlias = FlushSoxResamplerRequest # noqa: Y015 + +@_typing.final +class FlushSoxResamplerResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + OUTPUT_PTR_FIELD_NUMBER: _builtins.int + SIZE_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + output_ptr: _builtins.int """*const i16 (could be null)""" - size: builtins.int + size: _builtins.int """in bytes""" - error: builtins.str + error: _builtins.str def __init__( self, *, - output_ptr: builtins.int | None = ..., - size: builtins.int | None = ..., - error: builtins.str | None = ..., + output_ptr: _builtins.int | None = ..., + size: _builtins.int | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["error", b"error", "output_ptr", b"output_ptr", "size", b"size"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["error", b"error", "output_ptr", b"output_ptr", "size", b"size"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "output_ptr", b"output_ptr", "size", b"size"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "output_ptr", b"output_ptr", "size", b"size"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___FlushSoxResamplerResponse = FlushSoxResamplerResponse +Global___FlushSoxResamplerResponse: _TypeAlias = FlushSoxResamplerResponse # noqa: Y015 -@typing.final -class AudioFrameBufferInfo(google.protobuf.message.Message): +@_typing.final +class AudioFrameBufferInfo(_message.Message): """ AudioFrame buffer """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - DATA_PTR_FIELD_NUMBER: builtins.int - NUM_CHANNELS_FIELD_NUMBER: builtins.int - SAMPLE_RATE_FIELD_NUMBER: builtins.int - SAMPLES_PER_CHANNEL_FIELD_NUMBER: builtins.int - data_ptr: builtins.int + DATA_PTR_FIELD_NUMBER: _builtins.int + NUM_CHANNELS_FIELD_NUMBER: _builtins.int + SAMPLE_RATE_FIELD_NUMBER: _builtins.int + SAMPLES_PER_CHANNEL_FIELD_NUMBER: _builtins.int + data_ptr: _builtins.int """*const i16""" - num_channels: builtins.int - sample_rate: builtins.int - samples_per_channel: builtins.int + num_channels: _builtins.int + sample_rate: _builtins.int + samples_per_channel: _builtins.int def __init__( self, *, - data_ptr: builtins.int | None = ..., - num_channels: builtins.int | None = ..., - sample_rate: builtins.int | None = ..., - samples_per_channel: builtins.int | None = ..., + data_ptr: _builtins.int | None = ..., + num_channels: _builtins.int | None = ..., + sample_rate: _builtins.int | None = ..., + samples_per_channel: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "samples_per_channel", b"samples_per_channel"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "samples_per_channel", b"samples_per_channel"]) -> None: ... - -global___AudioFrameBufferInfo = AudioFrameBufferInfo - -@typing.final -class OwnedAudioFrameBuffer(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___AudioFrameBufferInfo: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "samples_per_channel", b"samples_per_channel"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "samples_per_channel", b"samples_per_channel"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___AudioFrameBufferInfo: _TypeAlias = AudioFrameBufferInfo # noqa: Y015 + +@_typing.final +class OwnedAudioFrameBuffer(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___AudioFrameBufferInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___AudioFrameBufferInfo | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___AudioFrameBufferInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___OwnedAudioFrameBuffer = OwnedAudioFrameBuffer +Global___OwnedAudioFrameBuffer: _TypeAlias = OwnedAudioFrameBuffer # noqa: Y015 -@typing.final -class AudioStreamInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class AudioStreamInfo(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - TYPE_FIELD_NUMBER: builtins.int - type: global___AudioStreamType.ValueType + TYPE_FIELD_NUMBER: _builtins.int + type: Global___AudioStreamType.ValueType def __init__( self, *, - type: global___AudioStreamType.ValueType | None = ..., + type: Global___AudioStreamType.ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["type", b"type"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["type", b"type"]) -> None: ... - -global___AudioStreamInfo = AudioStreamInfo - -@typing.final -class OwnedAudioStream(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___AudioStreamInfo: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["type", b"type"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["type", b"type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___AudioStreamInfo: _TypeAlias = AudioStreamInfo # noqa: Y015 + +@_typing.final +class OwnedAudioStream(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___AudioStreamInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___AudioStreamInfo | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___AudioStreamInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... - -global___OwnedAudioStream = OwnedAudioStream - -@typing.final -class AudioStreamEvent(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - STREAM_HANDLE_FIELD_NUMBER: builtins.int - FRAME_RECEIVED_FIELD_NUMBER: builtins.int - EOS_FIELD_NUMBER: builtins.int - stream_handle: builtins.int - @property - def frame_received(self) -> global___AudioFrameReceived: ... - @property - def eos(self) -> global___AudioStreamEOS: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___OwnedAudioStream: _TypeAlias = OwnedAudioStream # noqa: Y015 + +@_typing.final +class AudioStreamEvent(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + STREAM_HANDLE_FIELD_NUMBER: _builtins.int + FRAME_RECEIVED_FIELD_NUMBER: _builtins.int + EOS_FIELD_NUMBER: _builtins.int + stream_handle: _builtins.int + @_builtins.property + def frame_received(self) -> Global___AudioFrameReceived: ... + @_builtins.property + def eos(self) -> Global___AudioStreamEOS: ... def __init__( self, *, - stream_handle: builtins.int | None = ..., - frame_received: global___AudioFrameReceived | None = ..., - eos: global___AudioStreamEOS | None = ..., + stream_handle: _builtins.int | None = ..., + frame_received: Global___AudioFrameReceived | None = ..., + eos: Global___AudioStreamEOS | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["eos", b"eos", "frame_received", b"frame_received", "message", b"message", "stream_handle", b"stream_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["eos", b"eos", "frame_received", b"frame_received", "message", b"message", "stream_handle", b"stream_handle"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["frame_received", "eos"] | None: ... - -global___AudioStreamEvent = AudioStreamEvent - -@typing.final -class AudioFrameReceived(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - FRAME_FIELD_NUMBER: builtins.int - @property - def frame(self) -> global___OwnedAudioFrameBuffer: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["eos", b"eos", "frame_received", b"frame_received", "message", b"message", "stream_handle", b"stream_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["eos", b"eos", "frame_received", b"frame_received", "message", b"message", "stream_handle", b"stream_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["frame_received", "eos"] # noqa: Y015 + _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... + +Global___AudioStreamEvent: _TypeAlias = AudioStreamEvent # noqa: Y015 + +@_typing.final +class AudioFrameReceived(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + FRAME_FIELD_NUMBER: _builtins.int + @_builtins.property + def frame(self) -> Global___OwnedAudioFrameBuffer: ... def __init__( self, *, - frame: global___OwnedAudioFrameBuffer | None = ..., + frame: Global___OwnedAudioFrameBuffer | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["frame", b"frame"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["frame", b"frame"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["frame", b"frame"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["frame", b"frame"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___AudioFrameReceived = AudioFrameReceived +Global___AudioFrameReceived: _TypeAlias = AudioFrameReceived # noqa: Y015 -@typing.final -class AudioStreamEOS(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class AudioStreamEOS(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___AudioStreamEOS = AudioStreamEOS +Global___AudioStreamEOS: _TypeAlias = AudioStreamEOS # noqa: Y015 -@typing.final -class AudioSourceOptions(google.protobuf.message.Message): +@_typing.final +class AudioSourceOptions(_message.Message): """ AudioSource """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - ECHO_CANCELLATION_FIELD_NUMBER: builtins.int - NOISE_SUPPRESSION_FIELD_NUMBER: builtins.int - AUTO_GAIN_CONTROL_FIELD_NUMBER: builtins.int - echo_cancellation: builtins.bool - noise_suppression: builtins.bool - auto_gain_control: builtins.bool + ECHO_CANCELLATION_FIELD_NUMBER: _builtins.int + NOISE_SUPPRESSION_FIELD_NUMBER: _builtins.int + AUTO_GAIN_CONTROL_FIELD_NUMBER: _builtins.int + echo_cancellation: _builtins.bool + noise_suppression: _builtins.bool + auto_gain_control: _builtins.bool def __init__( self, *, - echo_cancellation: builtins.bool | None = ..., - noise_suppression: builtins.bool | None = ..., - auto_gain_control: builtins.bool | None = ..., + echo_cancellation: _builtins.bool | None = ..., + noise_suppression: _builtins.bool | None = ..., + auto_gain_control: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["auto_gain_control", b"auto_gain_control", "echo_cancellation", b"echo_cancellation", "noise_suppression", b"noise_suppression"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["auto_gain_control", b"auto_gain_control", "echo_cancellation", b"echo_cancellation", "noise_suppression", b"noise_suppression"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["auto_gain_control", b"auto_gain_control", "echo_cancellation", b"echo_cancellation", "noise_suppression", b"noise_suppression"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["auto_gain_control", b"auto_gain_control", "echo_cancellation", b"echo_cancellation", "noise_suppression", b"noise_suppression"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___AudioSourceOptions = AudioSourceOptions +Global___AudioSourceOptions: _TypeAlias = AudioSourceOptions # noqa: Y015 -@typing.final -class AudioSourceInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class AudioSourceInfo(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - TYPE_FIELD_NUMBER: builtins.int - type: global___AudioSourceType.ValueType + TYPE_FIELD_NUMBER: _builtins.int + type: Global___AudioSourceType.ValueType def __init__( self, *, - type: global___AudioSourceType.ValueType | None = ..., + type: Global___AudioSourceType.ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["type", b"type"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["type", b"type"]) -> None: ... - -global___AudioSourceInfo = AudioSourceInfo - -@typing.final -class OwnedAudioSource(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___AudioSourceInfo: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["type", b"type"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["type", b"type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___AudioSourceInfo: _TypeAlias = AudioSourceInfo # noqa: Y015 + +@_typing.final +class OwnedAudioSource(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___AudioSourceInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___AudioSourceInfo | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___AudioSourceInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___OwnedAudioSource = OwnedAudioSource +Global___OwnedAudioSource: _TypeAlias = OwnedAudioSource # noqa: Y015 -@typing.final -class AudioResamplerInfo(google.protobuf.message.Message): +@_typing.final +class AudioResamplerInfo(_message.Message): """ AudioResampler """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... - -global___AudioResamplerInfo = AudioResamplerInfo - -@typing.final -class OwnedAudioResampler(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___AudioResamplerInfo: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___AudioResamplerInfo: _TypeAlias = AudioResamplerInfo # noqa: Y015 + +@_typing.final +class OwnedAudioResampler(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___AudioResamplerInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___AudioResamplerInfo | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___AudioResamplerInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___OwnedAudioResampler = OwnedAudioResampler +Global___OwnedAudioResampler: _TypeAlias = OwnedAudioResampler # noqa: Y015 -@typing.final -class OwnedApm(google.protobuf.message.Message): +@_typing.final +class OwnedApm(_message.Message): """ AEC """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - HANDLE_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... + HANDLE_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___OwnedApm = OwnedApm +Global___OwnedApm: _TypeAlias = OwnedApm # noqa: Y015 -@typing.final -class SoxResamplerInfo(google.protobuf.message.Message): +@_typing.final +class SoxResamplerInfo(_message.Message): """ Sox AudioResampler """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... - -global___SoxResamplerInfo = SoxResamplerInfo - -@typing.final -class OwnedSoxResampler(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___SoxResamplerInfo: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___SoxResamplerInfo: _TypeAlias = SoxResamplerInfo # noqa: Y015 + +@_typing.final +class OwnedSoxResampler(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___SoxResamplerInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___SoxResamplerInfo | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___SoxResamplerInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___OwnedSoxResampler = OwnedSoxResampler +Global___OwnedSoxResampler: _TypeAlias = OwnedSoxResampler # noqa: Y015 -@typing.final -class LoadAudioFilterPluginRequest(google.protobuf.message.Message): +@_typing.final +class LoadAudioFilterPluginRequest(_message.Message): """Audio Filter Plugin""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - PLUGIN_PATH_FIELD_NUMBER: builtins.int - DEPENDENCIES_FIELD_NUMBER: builtins.int - MODULE_ID_FIELD_NUMBER: builtins.int - plugin_path: builtins.str + PLUGIN_PATH_FIELD_NUMBER: _builtins.int + DEPENDENCIES_FIELD_NUMBER: _builtins.int + MODULE_ID_FIELD_NUMBER: _builtins.int + plugin_path: _builtins.str """path for ffi audio filter plugin""" - module_id: builtins.str + module_id: _builtins.str """Unique identifier of the plugin""" - @property - def dependencies(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + @_builtins.property + def dependencies(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: """Optional: paths for dependency dylibs""" def __init__( self, *, - plugin_path: builtins.str | None = ..., - dependencies: collections.abc.Iterable[builtins.str] | None = ..., - module_id: builtins.str | None = ..., + plugin_path: _builtins.str | None = ..., + dependencies: _abc.Iterable[_builtins.str] | None = ..., + module_id: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["module_id", b"module_id", "plugin_path", b"plugin_path"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["dependencies", b"dependencies", "module_id", b"module_id", "plugin_path", b"plugin_path"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["module_id", b"module_id", "plugin_path", b"plugin_path"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["dependencies", b"dependencies", "module_id", b"module_id", "plugin_path", b"plugin_path"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___LoadAudioFilterPluginRequest = LoadAudioFilterPluginRequest +Global___LoadAudioFilterPluginRequest: _TypeAlias = LoadAudioFilterPluginRequest # noqa: Y015 -@typing.final -class LoadAudioFilterPluginResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class LoadAudioFilterPluginResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ERROR_FIELD_NUMBER: builtins.int - error: builtins.str + ERROR_FIELD_NUMBER: _builtins.int + error: _builtins.str def __init__( self, *, - error: builtins.str | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___LoadAudioFilterPluginResponse = LoadAudioFilterPluginResponse +Global___LoadAudioFilterPluginResponse: _TypeAlias = LoadAudioFilterPluginResponse # noqa: Y015 diff --git a/livekit-rtc/livekit/rtc/_proto/data_stream_pb2.py b/livekit-rtc/livekit/rtc/_proto/data_stream_pb2.py index 3d12d60f..7df7a7f4 100644 --- a/livekit-rtc/livekit/rtc/_proto/data_stream_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/data_stream_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: data_stream.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 7.34.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 7, + 34, + 1, + '', + 'data_stream.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -21,16 +31,16 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'data_stream_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'\252\002\rLiveKit.Proto' - _globals['_TEXTSTREAMINFO_ATTRIBUTESENTRY']._options = None + _globals['_TEXTSTREAMINFO_ATTRIBUTESENTRY']._loaded_options = None _globals['_TEXTSTREAMINFO_ATTRIBUTESENTRY']._serialized_options = b'8\001' - _globals['_BYTESTREAMINFO_ATTRIBUTESENTRY']._options = None + _globals['_BYTESTREAMINFO_ATTRIBUTESENTRY']._loaded_options = None _globals['_BYTESTREAMINFO_ATTRIBUTESENTRY']._serialized_options = b'8\001' - _globals['_STREAMTEXTOPTIONS_ATTRIBUTESENTRY']._options = None + _globals['_STREAMTEXTOPTIONS_ATTRIBUTESENTRY']._loaded_options = None _globals['_STREAMTEXTOPTIONS_ATTRIBUTESENTRY']._serialized_options = b'8\001' - _globals['_STREAMBYTEOPTIONS_ATTRIBUTESENTRY']._options = None + _globals['_STREAMBYTEOPTIONS_ATTRIBUTESENTRY']._loaded_options = None _globals['_STREAMBYTEOPTIONS_ATTRIBUTESENTRY']._serialized_options = b'8\001' _globals['_OWNEDTEXTSTREAMREADER']._serialized_start=62 _globals['_OWNEDTEXTSTREAMREADER']._serialized_end=177 diff --git a/livekit-rtc/livekit/rtc/_proto/data_stream_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/data_stream_pb2.pyi index e68dc45f..ad6a7ecc 100644 --- a/livekit-rtc/livekit/rtc/_proto/data_stream_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/data_stream_pb2.pyi @@ -16,329 +16,381 @@ See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -from . import e2ee_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -from . import handle_pb2 +from collections import abc as _abc +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +import builtins as _builtins +from . import e2ee_pb2 as _e2ee_pb2 +from . import handle_pb2 as _handle_pb2 import sys -import typing +import typing as _typing -if sys.version_info >= (3, 10): - import typing as typing_extensions +if sys.version_info >= (3, 11): + from typing import TypeAlias as _TypeAlias, Never as _Never else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias, Never as _Never -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -@typing.final -class OwnedTextStreamReader(google.protobuf.message.Message): +@_typing.final +class OwnedTextStreamReader(_message.Message): """MARK: - Text stream reader A reader for an incoming stream. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___TextStreamInfo: ... + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___TextStreamInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___TextStreamInfo | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___TextStreamInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___OwnedTextStreamReader = OwnedTextStreamReader +Global___OwnedTextStreamReader: _TypeAlias = OwnedTextStreamReader # noqa: Y015 -@typing.final -class TextStreamReaderReadIncrementalRequest(google.protobuf.message.Message): +@_typing.final +class TextStreamReaderReadIncrementalRequest(_message.Message): """Reads an incoming text stream incrementally.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - READER_HANDLE_FIELD_NUMBER: builtins.int - reader_handle: builtins.int + READER_HANDLE_FIELD_NUMBER: _builtins.int + reader_handle: _builtins.int def __init__( self, *, - reader_handle: builtins.int | None = ..., + reader_handle: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["reader_handle", b"reader_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["reader_handle", b"reader_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["reader_handle", b"reader_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["reader_handle", b"reader_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TextStreamReaderReadIncrementalRequest = TextStreamReaderReadIncrementalRequest +Global___TextStreamReaderReadIncrementalRequest: _TypeAlias = TextStreamReaderReadIncrementalRequest # noqa: Y015 -@typing.final -class TextStreamReaderReadIncrementalResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class TextStreamReaderReadIncrementalResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TextStreamReaderReadIncrementalResponse = TextStreamReaderReadIncrementalResponse +Global___TextStreamReaderReadIncrementalResponse: _TypeAlias = TextStreamReaderReadIncrementalResponse # noqa: Y015 -@typing.final -class TextStreamReaderReadAllRequest(google.protobuf.message.Message): +@_typing.final +class TextStreamReaderReadAllRequest(_message.Message): """Reads an incoming text stream in its entirety.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - READER_HANDLE_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - reader_handle: builtins.int - request_async_id: builtins.int + READER_HANDLE_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + reader_handle: _builtins.int + request_async_id: _builtins.int def __init__( self, *, - reader_handle: builtins.int | None = ..., - request_async_id: builtins.int | None = ..., + reader_handle: _builtins.int | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["reader_handle", b"reader_handle", "request_async_id", b"request_async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["reader_handle", b"reader_handle", "request_async_id", b"request_async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["reader_handle", b"reader_handle", "request_async_id", b"request_async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["reader_handle", b"reader_handle", "request_async_id", b"request_async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TextStreamReaderReadAllRequest = TextStreamReaderReadAllRequest +Global___TextStreamReaderReadAllRequest: _TypeAlias = TextStreamReaderReadAllRequest # noqa: Y015 -@typing.final -class TextStreamReaderReadAllResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class TextStreamReaderReadAllResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... - -global___TextStreamReaderReadAllResponse = TextStreamReaderReadAllResponse - -@typing.final -class TextStreamReaderReadAllCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - CONTENT_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - content: builtins.str - @property - def error(self) -> global___StreamError: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___TextStreamReaderReadAllResponse: _TypeAlias = TextStreamReaderReadAllResponse # noqa: Y015 + +@_typing.final +class TextStreamReaderReadAllCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: _builtins.int + CONTENT_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + content: _builtins.str + @_builtins.property + def error(self) -> Global___StreamError: ... def __init__( self, *, - async_id: builtins.int | None = ..., - content: builtins.str | None = ..., - error: global___StreamError | None = ..., + async_id: _builtins.int | None = ..., + content: _builtins.str | None = ..., + error: Global___StreamError | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "content", b"content", "error", b"error", "result", b"result"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "content", b"content", "error", b"error", "result", b"result"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["content", "error"] | None: ... - -global___TextStreamReaderReadAllCallback = TextStreamReaderReadAllCallback - -@typing.final -class TextStreamReaderEvent(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - READER_HANDLE_FIELD_NUMBER: builtins.int - CHUNK_RECEIVED_FIELD_NUMBER: builtins.int - EOS_FIELD_NUMBER: builtins.int - reader_handle: builtins.int - @property - def chunk_received(self) -> global___TextStreamReaderChunkReceived: ... - @property - def eos(self) -> global___TextStreamReaderEOS: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "content", b"content", "error", b"error", "result", b"result"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "content", b"content", "error", b"error", "result", b"result"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_result: _TypeAlias = _typing.Literal["content", "error"] # noqa: Y015 + _WhichOneofArgType_result: _TypeAlias = _typing.Literal["result", b"result"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_result) -> _WhichOneofReturnType_result | None: ... + +Global___TextStreamReaderReadAllCallback: _TypeAlias = TextStreamReaderReadAllCallback # noqa: Y015 + +@_typing.final +class TextStreamReaderEvent(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + READER_HANDLE_FIELD_NUMBER: _builtins.int + CHUNK_RECEIVED_FIELD_NUMBER: _builtins.int + EOS_FIELD_NUMBER: _builtins.int + reader_handle: _builtins.int + @_builtins.property + def chunk_received(self) -> Global___TextStreamReaderChunkReceived: ... + @_builtins.property + def eos(self) -> Global___TextStreamReaderEOS: ... def __init__( self, *, - reader_handle: builtins.int | None = ..., - chunk_received: global___TextStreamReaderChunkReceived | None = ..., - eos: global___TextStreamReaderEOS | None = ..., + reader_handle: _builtins.int | None = ..., + chunk_received: Global___TextStreamReaderChunkReceived | None = ..., + eos: Global___TextStreamReaderEOS | None = ..., ) -> None: ... - 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: ... - def ClearField(self, field_name: typing.Literal["chunk_received", b"chunk_received", "detail", b"detail", "eos", b"eos", "reader_handle", b"reader_handle"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["detail", b"detail"]) -> typing.Literal["chunk_received", "eos"] | None: ... - -global___TextStreamReaderEvent = TextStreamReaderEvent - -@typing.final -class TextStreamReaderChunkReceived(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - CONTENT_FIELD_NUMBER: builtins.int - content: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["chunk_received", b"chunk_received", "detail", b"detail", "eos", b"eos", "reader_handle", b"reader_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["chunk_received", b"chunk_received", "detail", b"detail", "eos", b"eos", "reader_handle", b"reader_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_detail: _TypeAlias = _typing.Literal["chunk_received", "eos"] # noqa: Y015 + _WhichOneofArgType_detail: _TypeAlias = _typing.Literal["detail", b"detail"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_detail) -> _WhichOneofReturnType_detail | None: ... + +Global___TextStreamReaderEvent: _TypeAlias = TextStreamReaderEvent # noqa: Y015 + +@_typing.final +class TextStreamReaderChunkReceived(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + CONTENT_FIELD_NUMBER: _builtins.int + content: _builtins.str def __init__( self, *, - content: builtins.str | None = ..., + content: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["content", b"content"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["content", b"content"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["content", b"content"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["content", b"content"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TextStreamReaderChunkReceived = TextStreamReaderChunkReceived +Global___TextStreamReaderChunkReceived: _TypeAlias = TextStreamReaderChunkReceived # noqa: Y015 -@typing.final -class TextStreamReaderEOS(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class TextStreamReaderEOS(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ERROR_FIELD_NUMBER: builtins.int - @property - def error(self) -> global___StreamError: ... + ERROR_FIELD_NUMBER: _builtins.int + @_builtins.property + def error(self) -> Global___StreamError: ... def __init__( self, *, - error: global___StreamError | None = ..., + error: Global___StreamError | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TextStreamReaderEOS = TextStreamReaderEOS +Global___TextStreamReaderEOS: _TypeAlias = TextStreamReaderEOS # noqa: Y015 -@typing.final -class OwnedByteStreamReader(google.protobuf.message.Message): +@_typing.final +class OwnedByteStreamReader(_message.Message): """MARK: - Byte stream reader A reader for an incoming stream. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___ByteStreamInfo: ... + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___ByteStreamInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___ByteStreamInfo | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___ByteStreamInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___OwnedByteStreamReader = OwnedByteStreamReader +Global___OwnedByteStreamReader: _TypeAlias = OwnedByteStreamReader # noqa: Y015 -@typing.final -class ByteStreamReaderReadIncrementalRequest(google.protobuf.message.Message): +@_typing.final +class ByteStreamReaderReadIncrementalRequest(_message.Message): """Reads an incoming byte stream incrementally.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - READER_HANDLE_FIELD_NUMBER: builtins.int - reader_handle: builtins.int + READER_HANDLE_FIELD_NUMBER: _builtins.int + reader_handle: _builtins.int def __init__( self, *, - reader_handle: builtins.int | None = ..., + reader_handle: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["reader_handle", b"reader_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["reader_handle", b"reader_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["reader_handle", b"reader_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["reader_handle", b"reader_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ByteStreamReaderReadIncrementalRequest = ByteStreamReaderReadIncrementalRequest +Global___ByteStreamReaderReadIncrementalRequest: _TypeAlias = ByteStreamReaderReadIncrementalRequest # noqa: Y015 -@typing.final -class ByteStreamReaderReadIncrementalResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ByteStreamReaderReadIncrementalResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ByteStreamReaderReadIncrementalResponse = ByteStreamReaderReadIncrementalResponse +Global___ByteStreamReaderReadIncrementalResponse: _TypeAlias = ByteStreamReaderReadIncrementalResponse # noqa: Y015 -@typing.final -class ByteStreamReaderReadAllRequest(google.protobuf.message.Message): +@_typing.final +class ByteStreamReaderReadAllRequest(_message.Message): """Reads an incoming byte stream in its entirety.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - READER_HANDLE_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - reader_handle: builtins.int - request_async_id: builtins.int + READER_HANDLE_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + reader_handle: _builtins.int + request_async_id: _builtins.int def __init__( self, *, - reader_handle: builtins.int | None = ..., - request_async_id: builtins.int | None = ..., + reader_handle: _builtins.int | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["reader_handle", b"reader_handle", "request_async_id", b"request_async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["reader_handle", b"reader_handle", "request_async_id", b"request_async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["reader_handle", b"reader_handle", "request_async_id", b"request_async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["reader_handle", b"reader_handle", "request_async_id", b"request_async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ByteStreamReaderReadAllRequest = ByteStreamReaderReadAllRequest +Global___ByteStreamReaderReadAllRequest: _TypeAlias = ByteStreamReaderReadAllRequest # noqa: Y015 -@typing.final -class ByteStreamReaderReadAllResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ByteStreamReaderReadAllResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... - -global___ByteStreamReaderReadAllResponse = ByteStreamReaderReadAllResponse - -@typing.final -class ByteStreamReaderReadAllCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - CONTENT_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - content: builtins.bytes - @property - def error(self) -> global___StreamError: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___ByteStreamReaderReadAllResponse: _TypeAlias = ByteStreamReaderReadAllResponse # noqa: Y015 + +@_typing.final +class ByteStreamReaderReadAllCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: _builtins.int + CONTENT_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + content: _builtins.bytes + @_builtins.property + def error(self) -> Global___StreamError: ... def __init__( self, *, - async_id: builtins.int | None = ..., - content: builtins.bytes | None = ..., - error: global___StreamError | None = ..., + async_id: _builtins.int | None = ..., + content: _builtins.bytes | None = ..., + error: Global___StreamError | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "content", b"content", "error", b"error", "result", b"result"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "content", b"content", "error", b"error", "result", b"result"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["content", "error"] | None: ... - -global___ByteStreamReaderReadAllCallback = ByteStreamReaderReadAllCallback - -@typing.final -class ByteStreamReaderWriteToFileRequest(google.protobuf.message.Message): + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "content", b"content", "error", b"error", "result", b"result"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "content", b"content", "error", b"error", "result", b"result"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_result: _TypeAlias = _typing.Literal["content", "error"] # noqa: Y015 + _WhichOneofArgType_result: _TypeAlias = _typing.Literal["result", b"result"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_result) -> _WhichOneofReturnType_result | None: ... + +Global___ByteStreamReaderReadAllCallback: _TypeAlias = ByteStreamReaderReadAllCallback # noqa: Y015 + +@_typing.final +class ByteStreamReaderWriteToFileRequest(_message.Message): """Writes data from an incoming stream to a file as it arrives.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - READER_HANDLE_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - DIRECTORY_FIELD_NUMBER: builtins.int - NAME_OVERRIDE_FIELD_NUMBER: builtins.int - reader_handle: builtins.int - request_async_id: builtins.int - directory: builtins.str + READER_HANDLE_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + DIRECTORY_FIELD_NUMBER: _builtins.int + NAME_OVERRIDE_FIELD_NUMBER: _builtins.int + reader_handle: _builtins.int + request_async_id: _builtins.int + directory: _builtins.str """Directory to write the file in (must be writable by the current process). If not provided, the file will be written to the system's temp directory. """ - name_override: builtins.str + name_override: _builtins.str """Name to use for the written file. If not provided, the file's name and extension will be inferred from the stream's info. @@ -346,774 +398,886 @@ class ByteStreamReaderWriteToFileRequest(google.protobuf.message.Message): def __init__( self, *, - reader_handle: builtins.int | None = ..., - request_async_id: builtins.int | None = ..., - directory: builtins.str | None = ..., - name_override: builtins.str | None = ..., + reader_handle: _builtins.int | None = ..., + request_async_id: _builtins.int | None = ..., + directory: _builtins.str | None = ..., + name_override: _builtins.str | None = ..., ) -> None: ... - 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: ... - 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: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["directory", b"directory", "name_override", b"name_override", "reader_handle", b"reader_handle", "request_async_id", b"request_async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["directory", b"directory", "name_override", b"name_override", "reader_handle", b"reader_handle", "request_async_id", b"request_async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ByteStreamReaderWriteToFileRequest = ByteStreamReaderWriteToFileRequest +Global___ByteStreamReaderWriteToFileRequest: _TypeAlias = ByteStreamReaderWriteToFileRequest # noqa: Y015 -@typing.final -class ByteStreamReaderWriteToFileResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ByteStreamReaderWriteToFileResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... - -global___ByteStreamReaderWriteToFileResponse = ByteStreamReaderWriteToFileResponse - -@typing.final -class ByteStreamReaderWriteToFileCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - FILE_PATH_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - file_path: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___ByteStreamReaderWriteToFileResponse: _TypeAlias = ByteStreamReaderWriteToFileResponse # noqa: Y015 + +@_typing.final +class ByteStreamReaderWriteToFileCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: _builtins.int + FILE_PATH_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + file_path: _builtins.str """Path the file was written to.""" - @property - def error(self) -> global___StreamError: ... + @_builtins.property + def error(self) -> Global___StreamError: ... def __init__( self, *, - async_id: builtins.int | None = ..., - file_path: builtins.str | None = ..., - error: global___StreamError | None = ..., + async_id: _builtins.int | None = ..., + file_path: _builtins.str | None = ..., + error: Global___StreamError | None = ..., ) -> None: ... - 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: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "file_path", b"file_path", "result", b"result"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["file_path", "error"] | None: ... - -global___ByteStreamReaderWriteToFileCallback = ByteStreamReaderWriteToFileCallback - -@typing.final -class ByteStreamReaderEvent(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - READER_HANDLE_FIELD_NUMBER: builtins.int - CHUNK_RECEIVED_FIELD_NUMBER: builtins.int - EOS_FIELD_NUMBER: builtins.int - reader_handle: builtins.int - @property - def chunk_received(self) -> global___ByteStreamReaderChunkReceived: ... - @property - def eos(self) -> global___ByteStreamReaderEOS: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "file_path", b"file_path", "result", b"result"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "file_path", b"file_path", "result", b"result"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_result: _TypeAlias = _typing.Literal["file_path", "error"] # noqa: Y015 + _WhichOneofArgType_result: _TypeAlias = _typing.Literal["result", b"result"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_result) -> _WhichOneofReturnType_result | None: ... + +Global___ByteStreamReaderWriteToFileCallback: _TypeAlias = ByteStreamReaderWriteToFileCallback # noqa: Y015 + +@_typing.final +class ByteStreamReaderEvent(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + READER_HANDLE_FIELD_NUMBER: _builtins.int + CHUNK_RECEIVED_FIELD_NUMBER: _builtins.int + EOS_FIELD_NUMBER: _builtins.int + reader_handle: _builtins.int + @_builtins.property + def chunk_received(self) -> Global___ByteStreamReaderChunkReceived: ... + @_builtins.property + def eos(self) -> Global___ByteStreamReaderEOS: ... def __init__( self, *, - reader_handle: builtins.int | None = ..., - chunk_received: global___ByteStreamReaderChunkReceived | None = ..., - eos: global___ByteStreamReaderEOS | None = ..., + reader_handle: _builtins.int | None = ..., + chunk_received: Global___ByteStreamReaderChunkReceived | None = ..., + eos: Global___ByteStreamReaderEOS | None = ..., ) -> None: ... - 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: ... - def ClearField(self, field_name: typing.Literal["chunk_received", b"chunk_received", "detail", b"detail", "eos", b"eos", "reader_handle", b"reader_handle"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["detail", b"detail"]) -> typing.Literal["chunk_received", "eos"] | None: ... - -global___ByteStreamReaderEvent = ByteStreamReaderEvent - -@typing.final -class ByteStreamReaderChunkReceived(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - CONTENT_FIELD_NUMBER: builtins.int - content: builtins.bytes + _HasFieldArgType: _TypeAlias = _typing.Literal["chunk_received", b"chunk_received", "detail", b"detail", "eos", b"eos", "reader_handle", b"reader_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["chunk_received", b"chunk_received", "detail", b"detail", "eos", b"eos", "reader_handle", b"reader_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_detail: _TypeAlias = _typing.Literal["chunk_received", "eos"] # noqa: Y015 + _WhichOneofArgType_detail: _TypeAlias = _typing.Literal["detail", b"detail"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_detail) -> _WhichOneofReturnType_detail | None: ... + +Global___ByteStreamReaderEvent: _TypeAlias = ByteStreamReaderEvent # noqa: Y015 + +@_typing.final +class ByteStreamReaderChunkReceived(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + CONTENT_FIELD_NUMBER: _builtins.int + content: _builtins.bytes def __init__( self, *, - content: builtins.bytes | None = ..., + content: _builtins.bytes | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["content", b"content"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["content", b"content"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["content", b"content"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["content", b"content"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ByteStreamReaderChunkReceived = ByteStreamReaderChunkReceived +Global___ByteStreamReaderChunkReceived: _TypeAlias = ByteStreamReaderChunkReceived # noqa: Y015 -@typing.final -class ByteStreamReaderEOS(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ByteStreamReaderEOS(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ERROR_FIELD_NUMBER: builtins.int - @property - def error(self) -> global___StreamError: ... + ERROR_FIELD_NUMBER: _builtins.int + @_builtins.property + def error(self) -> Global___StreamError: ... def __init__( self, *, - error: global___StreamError | None = ..., + error: Global___StreamError | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ByteStreamReaderEOS = ByteStreamReaderEOS +Global___ByteStreamReaderEOS: _TypeAlias = ByteStreamReaderEOS # noqa: Y015 -@typing.final -class StreamSendFileRequest(google.protobuf.message.Message): +@_typing.final +class StreamSendFileRequest(_message.Message): """MARK: - Send file Sends the contents of a file over a data stream. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - OPTIONS_FIELD_NUMBER: builtins.int - FILE_PATH_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - file_path: builtins.str + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + OPTIONS_FIELD_NUMBER: _builtins.int + FILE_PATH_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + file_path: _builtins.str """Path of the file to send (must be readable by the current process).""" - request_async_id: builtins.int - @property - def options(self) -> global___StreamByteOptions: ... + request_async_id: _builtins.int + @_builtins.property + def options(self) -> Global___StreamByteOptions: ... def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - options: global___StreamByteOptions | None = ..., - file_path: builtins.str | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + options: Global___StreamByteOptions | None = ..., + file_path: _builtins.str | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - 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: ... - 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: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["file_path", b"file_path", "local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["file_path", b"file_path", "local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___StreamSendFileRequest = StreamSendFileRequest +Global___StreamSendFileRequest: _TypeAlias = StreamSendFileRequest # noqa: Y015 -@typing.final -class StreamSendFileResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class StreamSendFileResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... - -global___StreamSendFileResponse = StreamSendFileResponse - -@typing.final -class StreamSendFileCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - @property - def info(self) -> global___ByteStreamInfo: ... - @property - def error(self) -> global___StreamError: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___StreamSendFileResponse: _TypeAlias = StreamSendFileResponse # noqa: Y015 + +@_typing.final +class StreamSendFileCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + @_builtins.property + def info(self) -> Global___ByteStreamInfo: ... + @_builtins.property + def error(self) -> Global___StreamError: ... def __init__( self, *, - async_id: builtins.int | None = ..., - info: global___ByteStreamInfo | None = ..., - error: global___StreamError | None = ..., + async_id: _builtins.int | None = ..., + info: Global___ByteStreamInfo | None = ..., + error: Global___StreamError | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["info", "error"] | None: ... - -global___StreamSendFileCallback = StreamSendFileCallback - -@typing.final -class StreamSendBytesRequest(google.protobuf.message.Message): + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_result: _TypeAlias = _typing.Literal["info", "error"] # noqa: Y015 + _WhichOneofArgType_result: _TypeAlias = _typing.Literal["result", b"result"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_result) -> _WhichOneofReturnType_result | None: ... + +Global___StreamSendFileCallback: _TypeAlias = StreamSendFileCallback # noqa: Y015 + +@_typing.final +class StreamSendBytesRequest(_message.Message): """MARK: - Send bytes Sends bytes over a data stream. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - OPTIONS_FIELD_NUMBER: builtins.int - BYTES_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - bytes: builtins.bytes + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + OPTIONS_FIELD_NUMBER: _builtins.int + BYTES_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + bytes: _builtins.bytes """Bytes to send.""" - request_async_id: builtins.int - @property - def options(self) -> global___StreamByteOptions: ... + request_async_id: _builtins.int + @_builtins.property + def options(self) -> Global___StreamByteOptions: ... def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - options: global___StreamByteOptions | None = ..., - bytes: builtins.bytes | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + options: Global___StreamByteOptions | None = ..., + bytes: _builtins.bytes | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - 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: ... - 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: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["bytes", b"bytes", "local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["bytes", b"bytes", "local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___StreamSendBytesRequest = StreamSendBytesRequest +Global___StreamSendBytesRequest: _TypeAlias = StreamSendBytesRequest # noqa: Y015 -@typing.final -class StreamSendBytesResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class StreamSendBytesResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... - -global___StreamSendBytesResponse = StreamSendBytesResponse - -@typing.final -class StreamSendBytesCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - @property - def info(self) -> global___ByteStreamInfo: ... - @property - def error(self) -> global___StreamError: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___StreamSendBytesResponse: _TypeAlias = StreamSendBytesResponse # noqa: Y015 + +@_typing.final +class StreamSendBytesCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + @_builtins.property + def info(self) -> Global___ByteStreamInfo: ... + @_builtins.property + def error(self) -> Global___StreamError: ... def __init__( self, *, - async_id: builtins.int | None = ..., - info: global___ByteStreamInfo | None = ..., - error: global___StreamError | None = ..., + async_id: _builtins.int | None = ..., + info: Global___ByteStreamInfo | None = ..., + error: Global___StreamError | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["info", "error"] | None: ... - -global___StreamSendBytesCallback = StreamSendBytesCallback - -@typing.final -class StreamSendTextRequest(google.protobuf.message.Message): + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_result: _TypeAlias = _typing.Literal["info", "error"] # noqa: Y015 + _WhichOneofArgType_result: _TypeAlias = _typing.Literal["result", b"result"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_result) -> _WhichOneofReturnType_result | None: ... + +Global___StreamSendBytesCallback: _TypeAlias = StreamSendBytesCallback # noqa: Y015 + +@_typing.final +class StreamSendTextRequest(_message.Message): """MARK: - Send text Sends text over a data stream. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - OPTIONS_FIELD_NUMBER: builtins.int - TEXT_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - text: builtins.str + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + OPTIONS_FIELD_NUMBER: _builtins.int + TEXT_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + text: _builtins.str """Text to send.""" - request_async_id: builtins.int - @property - def options(self) -> global___StreamTextOptions: ... + request_async_id: _builtins.int + @_builtins.property + def options(self) -> Global___StreamTextOptions: ... def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - options: global___StreamTextOptions | None = ..., - text: builtins.str | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + options: Global___StreamTextOptions | None = ..., + text: _builtins.str | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - 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: ... - 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: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id", "text", b"text"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id", "text", b"text"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___StreamSendTextRequest = StreamSendTextRequest +Global___StreamSendTextRequest: _TypeAlias = StreamSendTextRequest # noqa: Y015 -@typing.final -class StreamSendTextResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class StreamSendTextResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... - -global___StreamSendTextResponse = StreamSendTextResponse - -@typing.final -class StreamSendTextCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - @property - def info(self) -> global___TextStreamInfo: ... - @property - def error(self) -> global___StreamError: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___StreamSendTextResponse: _TypeAlias = StreamSendTextResponse # noqa: Y015 + +@_typing.final +class StreamSendTextCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + @_builtins.property + def info(self) -> Global___TextStreamInfo: ... + @_builtins.property + def error(self) -> Global___StreamError: ... def __init__( self, *, - async_id: builtins.int | None = ..., - info: global___TextStreamInfo | None = ..., - error: global___StreamError | None = ..., + async_id: _builtins.int | None = ..., + info: Global___TextStreamInfo | None = ..., + error: Global___StreamError | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["info", "error"] | None: ... - -global___StreamSendTextCallback = StreamSendTextCallback - -@typing.final -class OwnedByteStreamWriter(google.protobuf.message.Message): + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_result: _TypeAlias = _typing.Literal["info", "error"] # noqa: Y015 + _WhichOneofArgType_result: _TypeAlias = _typing.Literal["result", b"result"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_result) -> _WhichOneofReturnType_result | None: ... + +Global___StreamSendTextCallback: _TypeAlias = StreamSendTextCallback # noqa: Y015 + +@_typing.final +class OwnedByteStreamWriter(_message.Message): """MARK: - Byte stream writer""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___ByteStreamInfo: ... + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___ByteStreamInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___ByteStreamInfo | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___ByteStreamInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___OwnedByteStreamWriter = OwnedByteStreamWriter +Global___OwnedByteStreamWriter: _TypeAlias = OwnedByteStreamWriter # noqa: Y015 -@typing.final -class ByteStreamOpenRequest(google.protobuf.message.Message): +@_typing.final +class ByteStreamOpenRequest(_message.Message): """Opens an outgoing stream. Call must be balanced with a StreamCloseRequest. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - OPTIONS_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - request_async_id: builtins.int - @property - def options(self) -> global___StreamByteOptions: + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + OPTIONS_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + request_async_id: _builtins.int + @_builtins.property + def options(self) -> Global___StreamByteOptions: """Options to use for opening the stream.""" def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - options: global___StreamByteOptions | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + options: Global___StreamByteOptions | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - 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: ... - 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: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ByteStreamOpenRequest = ByteStreamOpenRequest +Global___ByteStreamOpenRequest: _TypeAlias = ByteStreamOpenRequest # noqa: Y015 -@typing.final -class ByteStreamOpenResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ByteStreamOpenResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... - -global___ByteStreamOpenResponse = ByteStreamOpenResponse - -@typing.final -class ByteStreamOpenCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - WRITER_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - @property - def writer(self) -> global___OwnedByteStreamWriter: ... - @property - def error(self) -> global___StreamError: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___ByteStreamOpenResponse: _TypeAlias = ByteStreamOpenResponse # noqa: Y015 + +@_typing.final +class ByteStreamOpenCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: _builtins.int + WRITER_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + @_builtins.property + def writer(self) -> Global___OwnedByteStreamWriter: ... + @_builtins.property + def error(self) -> Global___StreamError: ... def __init__( self, *, - async_id: builtins.int | None = ..., - writer: global___OwnedByteStreamWriter | None = ..., - error: global___StreamError | None = ..., + async_id: _builtins.int | None = ..., + writer: Global___OwnedByteStreamWriter | None = ..., + error: Global___StreamError | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "writer", b"writer"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "writer", b"writer"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["writer", "error"] | None: ... - -global___ByteStreamOpenCallback = ByteStreamOpenCallback - -@typing.final -class ByteStreamWriterWriteRequest(google.protobuf.message.Message): + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "writer", b"writer"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "writer", b"writer"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_result: _TypeAlias = _typing.Literal["writer", "error"] # noqa: Y015 + _WhichOneofArgType_result: _TypeAlias = _typing.Literal["result", b"result"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_result) -> _WhichOneofReturnType_result | None: ... + +Global___ByteStreamOpenCallback: _TypeAlias = ByteStreamOpenCallback # noqa: Y015 + +@_typing.final +class ByteStreamWriterWriteRequest(_message.Message): """Writes data to a stream writer.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - WRITER_HANDLE_FIELD_NUMBER: builtins.int - BYTES_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - writer_handle: builtins.int - bytes: builtins.bytes - request_async_id: builtins.int + WRITER_HANDLE_FIELD_NUMBER: _builtins.int + BYTES_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + writer_handle: _builtins.int + bytes: _builtins.bytes + request_async_id: _builtins.int def __init__( self, *, - writer_handle: builtins.int | None = ..., - bytes: builtins.bytes | None = ..., - request_async_id: builtins.int | None = ..., + writer_handle: _builtins.int | None = ..., + bytes: _builtins.bytes | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["bytes", b"bytes", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["bytes", b"bytes", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["bytes", b"bytes", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["bytes", b"bytes", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ByteStreamWriterWriteRequest = ByteStreamWriterWriteRequest +Global___ByteStreamWriterWriteRequest: _TypeAlias = ByteStreamWriterWriteRequest # noqa: Y015 -@typing.final -class ByteStreamWriterWriteResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ByteStreamWriterWriteResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... - -global___ByteStreamWriterWriteResponse = ByteStreamWriterWriteResponse - -@typing.final -class ByteStreamWriterWriteCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - @property - def error(self) -> global___StreamError: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___ByteStreamWriterWriteResponse: _TypeAlias = ByteStreamWriterWriteResponse # noqa: Y015 + +@_typing.final +class ByteStreamWriterWriteCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + @_builtins.property + def error(self) -> Global___StreamError: ... def __init__( self, *, - async_id: builtins.int | None = ..., - error: global___StreamError | None = ..., + async_id: _builtins.int | None = ..., + error: Global___StreamError | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ByteStreamWriterWriteCallback = ByteStreamWriterWriteCallback +Global___ByteStreamWriterWriteCallback: _TypeAlias = ByteStreamWriterWriteCallback # noqa: Y015 -@typing.final -class ByteStreamWriterCloseRequest(google.protobuf.message.Message): +@_typing.final +class ByteStreamWriterCloseRequest(_message.Message): """Closes a stream writer.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - WRITER_HANDLE_FIELD_NUMBER: builtins.int - REASON_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - writer_handle: builtins.int - reason: builtins.str - request_async_id: builtins.int + WRITER_HANDLE_FIELD_NUMBER: _builtins.int + REASON_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + writer_handle: _builtins.int + reason: _builtins.str + request_async_id: _builtins.int def __init__( self, *, - writer_handle: builtins.int | None = ..., - reason: builtins.str | None = ..., - request_async_id: builtins.int | None = ..., + writer_handle: _builtins.int | None = ..., + reason: _builtins.str | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["reason", b"reason", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["reason", b"reason", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["reason", b"reason", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["reason", b"reason", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ByteStreamWriterCloseRequest = ByteStreamWriterCloseRequest +Global___ByteStreamWriterCloseRequest: _TypeAlias = ByteStreamWriterCloseRequest # noqa: Y015 -@typing.final -class ByteStreamWriterCloseResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ByteStreamWriterCloseResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... - -global___ByteStreamWriterCloseResponse = ByteStreamWriterCloseResponse - -@typing.final -class ByteStreamWriterCloseCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - @property - def error(self) -> global___StreamError: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___ByteStreamWriterCloseResponse: _TypeAlias = ByteStreamWriterCloseResponse # noqa: Y015 + +@_typing.final +class ByteStreamWriterCloseCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + @_builtins.property + def error(self) -> Global___StreamError: ... def __init__( self, *, - async_id: builtins.int | None = ..., - error: global___StreamError | None = ..., + async_id: _builtins.int | None = ..., + error: Global___StreamError | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ByteStreamWriterCloseCallback = ByteStreamWriterCloseCallback +Global___ByteStreamWriterCloseCallback: _TypeAlias = ByteStreamWriterCloseCallback # noqa: Y015 -@typing.final -class OwnedTextStreamWriter(google.protobuf.message.Message): +@_typing.final +class OwnedTextStreamWriter(_message.Message): """MARK: - Text stream writer""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___TextStreamInfo: ... + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___TextStreamInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___TextStreamInfo | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___TextStreamInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___OwnedTextStreamWriter = OwnedTextStreamWriter +Global___OwnedTextStreamWriter: _TypeAlias = OwnedTextStreamWriter # noqa: Y015 -@typing.final -class TextStreamOpenRequest(google.protobuf.message.Message): +@_typing.final +class TextStreamOpenRequest(_message.Message): """Opens an outgoing text stream. Call must be balanced with a TextStreamCloseRequest. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - OPTIONS_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - request_async_id: builtins.int - @property - def options(self) -> global___StreamTextOptions: + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + OPTIONS_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + request_async_id: _builtins.int + @_builtins.property + def options(self) -> Global___StreamTextOptions: """Options to use for opening the stream.""" def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - options: global___StreamTextOptions | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + options: Global___StreamTextOptions | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - 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: ... - 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: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TextStreamOpenRequest = TextStreamOpenRequest +Global___TextStreamOpenRequest: _TypeAlias = TextStreamOpenRequest # noqa: Y015 -@typing.final -class TextStreamOpenResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class TextStreamOpenResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... - -global___TextStreamOpenResponse = TextStreamOpenResponse - -@typing.final -class TextStreamOpenCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - WRITER_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - @property - def writer(self) -> global___OwnedTextStreamWriter: ... - @property - def error(self) -> global___StreamError: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___TextStreamOpenResponse: _TypeAlias = TextStreamOpenResponse # noqa: Y015 + +@_typing.final +class TextStreamOpenCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: _builtins.int + WRITER_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + @_builtins.property + def writer(self) -> Global___OwnedTextStreamWriter: ... + @_builtins.property + def error(self) -> Global___StreamError: ... def __init__( self, *, - async_id: builtins.int | None = ..., - writer: global___OwnedTextStreamWriter | None = ..., - error: global___StreamError | None = ..., + async_id: _builtins.int | None = ..., + writer: Global___OwnedTextStreamWriter | None = ..., + error: Global___StreamError | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "writer", b"writer"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "writer", b"writer"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["writer", "error"] | None: ... - -global___TextStreamOpenCallback = TextStreamOpenCallback - -@typing.final -class TextStreamWriterWriteRequest(google.protobuf.message.Message): + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "writer", b"writer"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "writer", b"writer"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_result: _TypeAlias = _typing.Literal["writer", "error"] # noqa: Y015 + _WhichOneofArgType_result: _TypeAlias = _typing.Literal["result", b"result"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_result) -> _WhichOneofReturnType_result | None: ... + +Global___TextStreamOpenCallback: _TypeAlias = TextStreamOpenCallback # noqa: Y015 + +@_typing.final +class TextStreamWriterWriteRequest(_message.Message): """Writes text to a text stream writer.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - WRITER_HANDLE_FIELD_NUMBER: builtins.int - TEXT_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - writer_handle: builtins.int - text: builtins.str - request_async_id: builtins.int + WRITER_HANDLE_FIELD_NUMBER: _builtins.int + TEXT_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + writer_handle: _builtins.int + text: _builtins.str + request_async_id: _builtins.int def __init__( self, *, - writer_handle: builtins.int | None = ..., - text: builtins.str | None = ..., - request_async_id: builtins.int | None = ..., + writer_handle: _builtins.int | None = ..., + text: _builtins.str | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["request_async_id", b"request_async_id", "text", b"text", "writer_handle", b"writer_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["request_async_id", b"request_async_id", "text", b"text", "writer_handle", b"writer_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["request_async_id", b"request_async_id", "text", b"text", "writer_handle", b"writer_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["request_async_id", b"request_async_id", "text", b"text", "writer_handle", b"writer_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TextStreamWriterWriteRequest = TextStreamWriterWriteRequest +Global___TextStreamWriterWriteRequest: _TypeAlias = TextStreamWriterWriteRequest # noqa: Y015 -@typing.final -class TextStreamWriterWriteResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class TextStreamWriterWriteResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... - -global___TextStreamWriterWriteResponse = TextStreamWriterWriteResponse - -@typing.final -class TextStreamWriterWriteCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - @property - def error(self) -> global___StreamError: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___TextStreamWriterWriteResponse: _TypeAlias = TextStreamWriterWriteResponse # noqa: Y015 + +@_typing.final +class TextStreamWriterWriteCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + @_builtins.property + def error(self) -> Global___StreamError: ... def __init__( self, *, - async_id: builtins.int | None = ..., - error: global___StreamError | None = ..., + async_id: _builtins.int | None = ..., + error: Global___StreamError | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TextStreamWriterWriteCallback = TextStreamWriterWriteCallback +Global___TextStreamWriterWriteCallback: _TypeAlias = TextStreamWriterWriteCallback # noqa: Y015 -@typing.final -class TextStreamWriterCloseRequest(google.protobuf.message.Message): +@_typing.final +class TextStreamWriterCloseRequest(_message.Message): """Closes a text stream writer.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - WRITER_HANDLE_FIELD_NUMBER: builtins.int - REASON_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - writer_handle: builtins.int - reason: builtins.str - request_async_id: builtins.int + WRITER_HANDLE_FIELD_NUMBER: _builtins.int + REASON_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + writer_handle: _builtins.int + reason: _builtins.str + request_async_id: _builtins.int def __init__( self, *, - writer_handle: builtins.int | None = ..., - reason: builtins.str | None = ..., - request_async_id: builtins.int | None = ..., + writer_handle: _builtins.int | None = ..., + reason: _builtins.str | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["reason", b"reason", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["reason", b"reason", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["reason", b"reason", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["reason", b"reason", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TextStreamWriterCloseRequest = TextStreamWriterCloseRequest +Global___TextStreamWriterCloseRequest: _TypeAlias = TextStreamWriterCloseRequest # noqa: Y015 -@typing.final -class TextStreamWriterCloseResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class TextStreamWriterCloseResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... - -global___TextStreamWriterCloseResponse = TextStreamWriterCloseResponse - -@typing.final -class TextStreamWriterCloseCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - @property - def error(self) -> global___StreamError: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___TextStreamWriterCloseResponse: _TypeAlias = TextStreamWriterCloseResponse # noqa: Y015 + +@_typing.final +class TextStreamWriterCloseCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + @_builtins.property + def error(self) -> Global___StreamError: ... def __init__( self, *, - async_id: builtins.int | None = ..., - error: global___StreamError | None = ..., + async_id: _builtins.int | None = ..., + error: Global___StreamError | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TextStreamWriterCloseCallback = TextStreamWriterCloseCallback +Global___TextStreamWriterCloseCallback: _TypeAlias = TextStreamWriterCloseCallback # noqa: Y015 -@typing.final -class TextStreamInfo(google.protobuf.message.Message): +@_typing.final +class TextStreamInfo(_message.Message): """Contains a subset of the fields from the stream header. Protocol-level fields not relevant to the FFI client are omitted (e.g. encryption info). """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor class _OperationType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 - class _OperationTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[TextStreamInfo._OperationType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + class _OperationTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[TextStreamInfo._OperationType.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor CREATE: TextStreamInfo._OperationType.ValueType # 0 UPDATE: TextStreamInfo._OperationType.ValueType # 1 DELETE: TextStreamInfo._OperationType.ValueType # 2 @@ -1125,268 +1289,295 @@ class TextStreamInfo(google.protobuf.message.Message): DELETE: TextStreamInfo.OperationType.ValueType # 2 REACTION: TextStreamInfo.OperationType.ValueType # 3 - @typing.final - class AttributesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class AttributesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str | None = ..., - value: builtins.str | None = ..., + key: _builtins.str | None = ..., + value: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - STREAM_ID_FIELD_NUMBER: builtins.int - TIMESTAMP_FIELD_NUMBER: builtins.int - MIME_TYPE_FIELD_NUMBER: builtins.int - TOPIC_FIELD_NUMBER: builtins.int - TOTAL_LENGTH_FIELD_NUMBER: builtins.int - ATTRIBUTES_FIELD_NUMBER: builtins.int - OPERATION_TYPE_FIELD_NUMBER: builtins.int - VERSION_FIELD_NUMBER: builtins.int - REPLY_TO_STREAM_ID_FIELD_NUMBER: builtins.int - ATTACHED_STREAM_IDS_FIELD_NUMBER: builtins.int - GENERATED_FIELD_NUMBER: builtins.int - ENCRYPTION_TYPE_FIELD_NUMBER: builtins.int - stream_id: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + STREAM_ID_FIELD_NUMBER: _builtins.int + TIMESTAMP_FIELD_NUMBER: _builtins.int + MIME_TYPE_FIELD_NUMBER: _builtins.int + TOPIC_FIELD_NUMBER: _builtins.int + TOTAL_LENGTH_FIELD_NUMBER: _builtins.int + ATTRIBUTES_FIELD_NUMBER: _builtins.int + OPERATION_TYPE_FIELD_NUMBER: _builtins.int + VERSION_FIELD_NUMBER: _builtins.int + REPLY_TO_STREAM_ID_FIELD_NUMBER: _builtins.int + ATTACHED_STREAM_IDS_FIELD_NUMBER: _builtins.int + GENERATED_FIELD_NUMBER: _builtins.int + ENCRYPTION_TYPE_FIELD_NUMBER: _builtins.int + stream_id: _builtins.str """unique identifier for this data stream""" - timestamp: builtins.int + timestamp: _builtins.int """using int64 for Unix timestamp""" - mime_type: builtins.str - topic: builtins.str - total_length: builtins.int + mime_type: _builtins.str + topic: _builtins.str + total_length: _builtins.int """only populated for finite streams, if it's a stream of unknown size this stays empty""" - operation_type: global___TextStreamInfo.OperationType.ValueType - version: builtins.int + operation_type: Global___TextStreamInfo.OperationType.ValueType + version: _builtins.int """Optional: Version for updates/edits""" - reply_to_stream_id: builtins.str + reply_to_stream_id: _builtins.str """Optional: Reply to specific message""" - generated: builtins.bool + generated: _builtins.bool """true if the text has been generated by an agent from a participant's audio transcription""" - encryption_type: e2ee_pb2.EncryptionType.ValueType - @property - def attributes(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + encryption_type: _e2ee_pb2.EncryptionType.ValueType + @_builtins.property + def attributes(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: """user defined attributes map that can carry additional info""" - @property - def attached_stream_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + @_builtins.property + def attached_stream_ids(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: """file attachments for text streams""" def __init__( self, *, - stream_id: builtins.str | None = ..., - timestamp: builtins.int | None = ..., - mime_type: builtins.str | None = ..., - topic: builtins.str | None = ..., - total_length: builtins.int | None = ..., - attributes: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - operation_type: global___TextStreamInfo.OperationType.ValueType | None = ..., - version: builtins.int | None = ..., - reply_to_stream_id: builtins.str | None = ..., - attached_stream_ids: collections.abc.Iterable[builtins.str] | None = ..., - generated: builtins.bool | None = ..., - encryption_type: e2ee_pb2.EncryptionType.ValueType | None = ..., + stream_id: _builtins.str | None = ..., + timestamp: _builtins.int | None = ..., + mime_type: _builtins.str | None = ..., + topic: _builtins.str | None = ..., + total_length: _builtins.int | None = ..., + attributes: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + operation_type: Global___TextStreamInfo.OperationType.ValueType | None = ..., + version: _builtins.int | None = ..., + reply_to_stream_id: _builtins.str | None = ..., + attached_stream_ids: _abc.Iterable[_builtins.str] | None = ..., + generated: _builtins.bool | None = ..., + encryption_type: _e2ee_pb2.EncryptionType.ValueType | None = ..., ) -> None: ... - 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: ... - 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: ... - -global___TextStreamInfo = TextStreamInfo - -@typing.final -class ByteStreamInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class AttributesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + _HasFieldArgType: _TypeAlias = _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"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _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"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___TextStreamInfo: _TypeAlias = TextStreamInfo # noqa: Y015 + +@_typing.final +class ByteStreamInfo(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class AttributesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str | None = ..., - value: builtins.str | None = ..., + key: _builtins.str | None = ..., + value: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - STREAM_ID_FIELD_NUMBER: builtins.int - TIMESTAMP_FIELD_NUMBER: builtins.int - MIME_TYPE_FIELD_NUMBER: builtins.int - TOPIC_FIELD_NUMBER: builtins.int - TOTAL_LENGTH_FIELD_NUMBER: builtins.int - ATTRIBUTES_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - ENCRYPTION_TYPE_FIELD_NUMBER: builtins.int - stream_id: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + STREAM_ID_FIELD_NUMBER: _builtins.int + TIMESTAMP_FIELD_NUMBER: _builtins.int + MIME_TYPE_FIELD_NUMBER: _builtins.int + TOPIC_FIELD_NUMBER: _builtins.int + TOTAL_LENGTH_FIELD_NUMBER: _builtins.int + ATTRIBUTES_FIELD_NUMBER: _builtins.int + NAME_FIELD_NUMBER: _builtins.int + ENCRYPTION_TYPE_FIELD_NUMBER: _builtins.int + stream_id: _builtins.str """unique identifier for this data stream""" - timestamp: builtins.int + timestamp: _builtins.int """using int64 for Unix timestamp""" - mime_type: builtins.str - topic: builtins.str - total_length: builtins.int + mime_type: _builtins.str + topic: _builtins.str + total_length: _builtins.int """only populated for finite streams, if it's a stream of unknown size this stays empty""" - name: builtins.str - encryption_type: e2ee_pb2.EncryptionType.ValueType - @property - def attributes(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + name: _builtins.str + encryption_type: _e2ee_pb2.EncryptionType.ValueType + @_builtins.property + def attributes(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: """user defined attributes map that can carry additional info""" def __init__( self, *, - stream_id: builtins.str | None = ..., - timestamp: builtins.int | None = ..., - mime_type: builtins.str | None = ..., - topic: builtins.str | None = ..., - total_length: builtins.int | None = ..., - attributes: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - name: builtins.str | None = ..., - encryption_type: e2ee_pb2.EncryptionType.ValueType | None = ..., + stream_id: _builtins.str | None = ..., + timestamp: _builtins.int | None = ..., + mime_type: _builtins.str | None = ..., + topic: _builtins.str | None = ..., + total_length: _builtins.int | None = ..., + attributes: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + name: _builtins.str | None = ..., + encryption_type: _e2ee_pb2.EncryptionType.ValueType | None = ..., ) -> None: ... - 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: ... - 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: ... - -global___ByteStreamInfo = ByteStreamInfo - -@typing.final -class StreamTextOptions(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class AttributesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + _HasFieldArgType: _TypeAlias = _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"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _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"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___ByteStreamInfo: _TypeAlias = ByteStreamInfo # noqa: Y015 + +@_typing.final +class StreamTextOptions(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class AttributesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str | None = ..., - value: builtins.str | None = ..., + key: _builtins.str | None = ..., + value: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - TOPIC_FIELD_NUMBER: builtins.int - ATTRIBUTES_FIELD_NUMBER: builtins.int - DESTINATION_IDENTITIES_FIELD_NUMBER: builtins.int - ID_FIELD_NUMBER: builtins.int - OPERATION_TYPE_FIELD_NUMBER: builtins.int - VERSION_FIELD_NUMBER: builtins.int - REPLY_TO_STREAM_ID_FIELD_NUMBER: builtins.int - ATTACHED_STREAM_IDS_FIELD_NUMBER: builtins.int - GENERATED_FIELD_NUMBER: builtins.int - topic: builtins.str - id: builtins.str - operation_type: global___TextStreamInfo.OperationType.ValueType - version: builtins.int - reply_to_stream_id: builtins.str - generated: builtins.bool - @property - def attributes(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - @property - def destination_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... - @property - def attached_stream_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + TOPIC_FIELD_NUMBER: _builtins.int + ATTRIBUTES_FIELD_NUMBER: _builtins.int + DESTINATION_IDENTITIES_FIELD_NUMBER: _builtins.int + ID_FIELD_NUMBER: _builtins.int + OPERATION_TYPE_FIELD_NUMBER: _builtins.int + VERSION_FIELD_NUMBER: _builtins.int + REPLY_TO_STREAM_ID_FIELD_NUMBER: _builtins.int + ATTACHED_STREAM_IDS_FIELD_NUMBER: _builtins.int + GENERATED_FIELD_NUMBER: _builtins.int + topic: _builtins.str + id: _builtins.str + operation_type: Global___TextStreamInfo.OperationType.ValueType + version: _builtins.int + reply_to_stream_id: _builtins.str + generated: _builtins.bool + @_builtins.property + def attributes(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def destination_identities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... + @_builtins.property + def attached_stream_ids(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... def __init__( self, *, - topic: builtins.str | None = ..., - attributes: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - destination_identities: collections.abc.Iterable[builtins.str] | None = ..., - id: builtins.str | None = ..., - operation_type: global___TextStreamInfo.OperationType.ValueType | None = ..., - version: builtins.int | None = ..., - reply_to_stream_id: builtins.str | None = ..., - attached_stream_ids: collections.abc.Iterable[builtins.str] | None = ..., - generated: builtins.bool | None = ..., + topic: _builtins.str | None = ..., + attributes: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + destination_identities: _abc.Iterable[_builtins.str] | None = ..., + id: _builtins.str | None = ..., + operation_type: Global___TextStreamInfo.OperationType.ValueType | None = ..., + version: _builtins.int | None = ..., + reply_to_stream_id: _builtins.str | None = ..., + attached_stream_ids: _abc.Iterable[_builtins.str] | None = ..., + generated: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["generated", b"generated", "id", b"id", "operation_type", b"operation_type", "reply_to_stream_id", b"reply_to_stream_id", "topic", b"topic", "version", b"version"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["attached_stream_ids", b"attached_stream_ids", "attributes", b"attributes", "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", "topic", b"topic", "version", b"version"]) -> None: ... - -global___StreamTextOptions = StreamTextOptions - -@typing.final -class StreamByteOptions(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class AttributesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["generated", b"generated", "id", b"id", "operation_type", b"operation_type", "reply_to_stream_id", b"reply_to_stream_id", "topic", b"topic", "version", b"version"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["attached_stream_ids", b"attached_stream_ids", "attributes", b"attributes", "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", "topic", b"topic", "version", b"version"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___StreamTextOptions: _TypeAlias = StreamTextOptions # noqa: Y015 + +@_typing.final +class StreamByteOptions(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class AttributesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str | None = ..., - value: builtins.str | None = ..., + key: _builtins.str | None = ..., + value: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - TOPIC_FIELD_NUMBER: builtins.int - ATTRIBUTES_FIELD_NUMBER: builtins.int - DESTINATION_IDENTITIES_FIELD_NUMBER: builtins.int - ID_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - MIME_TYPE_FIELD_NUMBER: builtins.int - TOTAL_LENGTH_FIELD_NUMBER: builtins.int - topic: builtins.str - id: builtins.str - name: builtins.str - mime_type: builtins.str - total_length: builtins.int - @property - def attributes(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - @property - def destination_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + TOPIC_FIELD_NUMBER: _builtins.int + ATTRIBUTES_FIELD_NUMBER: _builtins.int + DESTINATION_IDENTITIES_FIELD_NUMBER: _builtins.int + ID_FIELD_NUMBER: _builtins.int + NAME_FIELD_NUMBER: _builtins.int + MIME_TYPE_FIELD_NUMBER: _builtins.int + TOTAL_LENGTH_FIELD_NUMBER: _builtins.int + topic: _builtins.str + id: _builtins.str + name: _builtins.str + mime_type: _builtins.str + total_length: _builtins.int + @_builtins.property + def attributes(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def destination_identities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... def __init__( self, *, - topic: builtins.str | None = ..., - attributes: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - destination_identities: collections.abc.Iterable[builtins.str] | None = ..., - id: builtins.str | None = ..., - name: builtins.str | None = ..., - mime_type: builtins.str | None = ..., - total_length: builtins.int | None = ..., + topic: _builtins.str | None = ..., + attributes: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + destination_identities: _abc.Iterable[_builtins.str] | None = ..., + id: _builtins.str | None = ..., + name: _builtins.str | None = ..., + mime_type: _builtins.str | None = ..., + total_length: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["id", b"id", "mime_type", b"mime_type", "name", b"name", "topic", b"topic", "total_length", b"total_length"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["attributes", b"attributes", "destination_identities", b"destination_identities", "id", b"id", "mime_type", b"mime_type", "name", b"name", "topic", b"topic", "total_length", b"total_length"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["id", b"id", "mime_type", b"mime_type", "name", b"name", "topic", b"topic", "total_length", b"total_length"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["attributes", b"attributes", "destination_identities", b"destination_identities", "id", b"id", "mime_type", b"mime_type", "name", b"name", "topic", b"topic", "total_length", b"total_length"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___StreamByteOptions = StreamByteOptions +Global___StreamByteOptions: _TypeAlias = StreamByteOptions # noqa: Y015 -@typing.final -class StreamError(google.protobuf.message.Message): +@_typing.final +class StreamError(_message.Message): """Error pertaining to a stream.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - DESCRIPTION_FIELD_NUMBER: builtins.int - description: builtins.str + DESCRIPTION_FIELD_NUMBER: _builtins.int + description: _builtins.str """TODO(ladvoc): make this an enum.""" def __init__( self, *, - description: builtins.str | None = ..., + description: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["description", b"description"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["description", b"description"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["description", b"description"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["description", b"description"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___StreamError = StreamError +Global___StreamError: _TypeAlias = StreamError # noqa: Y015 diff --git a/livekit-rtc/livekit/rtc/_proto/data_track_pb2.py b/livekit-rtc/livekit/rtc/_proto/data_track_pb2.py index f59f0bf7..b20c60ac 100644 --- a/livekit-rtc/livekit/rtc/_proto/data_track_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/data_track_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: data_track.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 7.34.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 7, + 34, + 1, + '', + 'data_track.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -20,8 +30,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'data_track_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'\252\002\rLiveKit.Proto' _globals['_DATATRACKERRORCODE']._serialized_start=2415 _globals['_DATATRACKERRORCODE']._serialized_end=2806 diff --git a/livekit-rtc/livekit/rtc/_proto/data_track_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/data_track_pb2.pyi index a12996c2..45356042 100644 --- a/livekit-rtc/livekit/rtc/_proto/data_track_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/data_track_pb2.pyi @@ -16,27 +16,27 @@ See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -from . import handle_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +import builtins as _builtins +from . import handle_pb2 as _handle_pb2 import sys -import typing +import typing as _typing -if sys.version_info >= (3, 10): - import typing as typing_extensions +if sys.version_info >= (3, 11): + from typing import TypeAlias as _TypeAlias, Never as _Never else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias, Never as _Never -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor class _DataTrackErrorCode: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _DataTrackErrorCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DataTrackErrorCode.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _DataTrackErrorCodeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_DataTrackErrorCode.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor DATA_TRACK_ERROR_CODE_UNKNOWN: _DataTrackErrorCode.ValueType # 0 DATA_TRACK_ERROR_CODE_INVALID_HANDLE: _DataTrackErrorCode.ValueType # 1 DATA_TRACK_ERROR_CODE_DUPLICATE_TRACK_NAME: _DataTrackErrorCode.ValueType # 2 @@ -58,14 +58,14 @@ DATA_TRACK_ERROR_CODE_SUBSCRIPTION_CLOSED: DataTrackErrorCode.ValueType # 5 DATA_TRACK_ERROR_CODE_CANCELLED: DataTrackErrorCode.ValueType # 6 DATA_TRACK_ERROR_CODE_PROTOCOL_ERROR: DataTrackErrorCode.ValueType # 7 DATA_TRACK_ERROR_CODE_INTERNAL: DataTrackErrorCode.ValueType # 8 -global___DataTrackErrorCode = DataTrackErrorCode +Global___DataTrackErrorCode: _TypeAlias = DataTrackErrorCode # noqa: Y015 class _PublishDataTrackErrorCode: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _PublishDataTrackErrorCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_PublishDataTrackErrorCode.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _PublishDataTrackErrorCodeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_PublishDataTrackErrorCode.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor PUBLISH_DATA_TRACK_ERROR_CODE_UNKNOWN: _PublishDataTrackErrorCode.ValueType # 0 PUBLISH_DATA_TRACK_ERROR_CODE_INVALID_HANDLE: _PublishDataTrackErrorCode.ValueType # 1 PUBLISH_DATA_TRACK_ERROR_CODE_DUPLICATE_NAME: _PublishDataTrackErrorCode.ValueType # 2 @@ -89,14 +89,14 @@ PUBLISH_DATA_TRACK_ERROR_CODE_INVALID_NAME: PublishDataTrackErrorCode.ValueType PUBLISH_DATA_TRACK_ERROR_CODE_LIMIT_REACHED: PublishDataTrackErrorCode.ValueType # 7 PUBLISH_DATA_TRACK_ERROR_CODE_PROTOCOL_ERROR: PublishDataTrackErrorCode.ValueType # 8 PUBLISH_DATA_TRACK_ERROR_CODE_INTERNAL: PublishDataTrackErrorCode.ValueType # 9 -global___PublishDataTrackErrorCode = PublishDataTrackErrorCode +Global___PublishDataTrackErrorCode: _TypeAlias = PublishDataTrackErrorCode # noqa: Y015 class _LocalDataTrackTryPushErrorCode: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _LocalDataTrackTryPushErrorCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_LocalDataTrackTryPushErrorCode.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _LocalDataTrackTryPushErrorCodeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_LocalDataTrackTryPushErrorCode.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_UNKNOWN: _LocalDataTrackTryPushErrorCode.ValueType # 0 LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_INVALID_HANDLE: _LocalDataTrackTryPushErrorCode.ValueType # 1 LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_TRACK_UNPUBLISHED: _LocalDataTrackTryPushErrorCode.ValueType # 2 @@ -110,14 +110,14 @@ LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_INVALID_HANDLE: LocalDataTrackTryPushErrorC LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_TRACK_UNPUBLISHED: LocalDataTrackTryPushErrorCode.ValueType # 2 LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_QUEUE_FULL: LocalDataTrackTryPushErrorCode.ValueType # 3 LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_INTERNAL: LocalDataTrackTryPushErrorCode.ValueType # 4 -global___LocalDataTrackTryPushErrorCode = LocalDataTrackTryPushErrorCode +Global___LocalDataTrackTryPushErrorCode: _TypeAlias = LocalDataTrackTryPushErrorCode # noqa: Y015 class _SubscribeDataTrackErrorCode: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _SubscribeDataTrackErrorCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SubscribeDataTrackErrorCode.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _SubscribeDataTrackErrorCodeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_SubscribeDataTrackErrorCode.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor SUBSCRIBE_DATA_TRACK_ERROR_CODE_UNKNOWN: _SubscribeDataTrackErrorCode.ValueType # 0 SUBSCRIBE_DATA_TRACK_ERROR_CODE_INVALID_HANDLE: _SubscribeDataTrackErrorCode.ValueType # 1 SUBSCRIBE_DATA_TRACK_ERROR_CODE_UNPUBLISHED: _SubscribeDataTrackErrorCode.ValueType # 2 @@ -135,146 +135,164 @@ SUBSCRIBE_DATA_TRACK_ERROR_CODE_TIMEOUT: SubscribeDataTrackErrorCode.ValueType SUBSCRIBE_DATA_TRACK_ERROR_CODE_DISCONNECTED: SubscribeDataTrackErrorCode.ValueType # 4 SUBSCRIBE_DATA_TRACK_ERROR_CODE_PROTOCOL_ERROR: SubscribeDataTrackErrorCode.ValueType # 5 SUBSCRIBE_DATA_TRACK_ERROR_CODE_INTERNAL: SubscribeDataTrackErrorCode.ValueType # 6 -global___SubscribeDataTrackErrorCode = SubscribeDataTrackErrorCode +Global___SubscribeDataTrackErrorCode: _TypeAlias = SubscribeDataTrackErrorCode # noqa: Y015 -@typing.final -class DataTrackInfo(google.protobuf.message.Message): +@_typing.final +class DataTrackInfo(_message.Message): """MARK: - Common Information about a published data track. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - SID_FIELD_NUMBER: builtins.int - USES_E2EE_FIELD_NUMBER: builtins.int - name: builtins.str + NAME_FIELD_NUMBER: _builtins.int + SID_FIELD_NUMBER: _builtins.int + USES_E2EE_FIELD_NUMBER: _builtins.int + name: _builtins.str """Name of the track assigned by the publisher.""" - sid: builtins.str + sid: _builtins.str """SFU-assigned track identifier.""" - uses_e2ee: builtins.bool + uses_e2ee: _builtins.bool """Whether or not frames sent on the track use end-to-end encryption.""" def __init__( self, *, - name: builtins.str | None = ..., - sid: builtins.str | None = ..., - uses_e2ee: builtins.bool | None = ..., + name: _builtins.str | None = ..., + sid: _builtins.str | None = ..., + uses_e2ee: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["name", b"name", "sid", b"sid", "uses_e2ee", b"uses_e2ee"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["name", b"name", "sid", b"sid", "uses_e2ee", b"uses_e2ee"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "sid", b"sid", "uses_e2ee", b"uses_e2ee"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "sid", b"sid", "uses_e2ee", b"uses_e2ee"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DataTrackInfo = DataTrackInfo +Global___DataTrackInfo: _TypeAlias = DataTrackInfo # noqa: Y015 -@typing.final -class DataTrackFrame(google.protobuf.message.Message): +@_typing.final +class DataTrackFrame(_message.Message): """A frame published on a data track.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - PAYLOAD_FIELD_NUMBER: builtins.int - USER_TIMESTAMP_FIELD_NUMBER: builtins.int - payload: builtins.bytes - user_timestamp: builtins.int + PAYLOAD_FIELD_NUMBER: _builtins.int + USER_TIMESTAMP_FIELD_NUMBER: _builtins.int + payload: _builtins.bytes + user_timestamp: _builtins.int def __init__( self, *, - payload: builtins.bytes | None = ..., - user_timestamp: builtins.int | None = ..., + payload: _builtins.bytes | None = ..., + user_timestamp: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["payload", b"payload", "user_timestamp", b"user_timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["payload", b"payload", "user_timestamp", b"user_timestamp"]) -> None: ... - -global___DataTrackFrame = DataTrackFrame - -@typing.final -class DataTrackError(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - CODE_FIELD_NUMBER: builtins.int - MESSAGE_FIELD_NUMBER: builtins.int - code: global___DataTrackErrorCode.ValueType - message: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["payload", b"payload", "user_timestamp", b"user_timestamp"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["payload", b"payload", "user_timestamp", b"user_timestamp"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___DataTrackFrame: _TypeAlias = DataTrackFrame # noqa: Y015 + +@_typing.final +class DataTrackError(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + CODE_FIELD_NUMBER: _builtins.int + MESSAGE_FIELD_NUMBER: _builtins.int + code: Global___DataTrackErrorCode.ValueType + message: _builtins.str def __init__( self, *, - code: global___DataTrackErrorCode.ValueType | None = ..., - message: builtins.str | None = ..., + code: Global___DataTrackErrorCode.ValueType | None = ..., + message: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["code", b"code", "message", b"message"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["code", b"code", "message", b"message"]) -> None: ... - -global___DataTrackError = DataTrackError - -@typing.final -class PublishDataTrackError(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - CODE_FIELD_NUMBER: builtins.int - MESSAGE_FIELD_NUMBER: builtins.int - code: global___PublishDataTrackErrorCode.ValueType - message: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "message", b"message"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "message", b"message"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___DataTrackError: _TypeAlias = DataTrackError # noqa: Y015 + +@_typing.final +class PublishDataTrackError(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + CODE_FIELD_NUMBER: _builtins.int + MESSAGE_FIELD_NUMBER: _builtins.int + code: Global___PublishDataTrackErrorCode.ValueType + message: _builtins.str def __init__( self, *, - code: global___PublishDataTrackErrorCode.ValueType | None = ..., - message: builtins.str | None = ..., + code: Global___PublishDataTrackErrorCode.ValueType | None = ..., + message: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["code", b"code", "message", b"message"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["code", b"code", "message", b"message"]) -> None: ... - -global___PublishDataTrackError = PublishDataTrackError - -@typing.final -class LocalDataTrackTryPushError(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - CODE_FIELD_NUMBER: builtins.int - MESSAGE_FIELD_NUMBER: builtins.int - code: global___LocalDataTrackTryPushErrorCode.ValueType - message: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "message", b"message"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "message", b"message"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___PublishDataTrackError: _TypeAlias = PublishDataTrackError # noqa: Y015 + +@_typing.final +class LocalDataTrackTryPushError(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + CODE_FIELD_NUMBER: _builtins.int + MESSAGE_FIELD_NUMBER: _builtins.int + code: Global___LocalDataTrackTryPushErrorCode.ValueType + message: _builtins.str def __init__( self, *, - code: global___LocalDataTrackTryPushErrorCode.ValueType | None = ..., - message: builtins.str | None = ..., + code: Global___LocalDataTrackTryPushErrorCode.ValueType | None = ..., + message: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["code", b"code", "message", b"message"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["code", b"code", "message", b"message"]) -> None: ... - -global___LocalDataTrackTryPushError = LocalDataTrackTryPushError - -@typing.final -class SubscribeDataTrackError(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - CODE_FIELD_NUMBER: builtins.int - MESSAGE_FIELD_NUMBER: builtins.int - code: global___SubscribeDataTrackErrorCode.ValueType - message: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "message", b"message"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "message", b"message"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___LocalDataTrackTryPushError: _TypeAlias = LocalDataTrackTryPushError # noqa: Y015 + +@_typing.final +class SubscribeDataTrackError(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + CODE_FIELD_NUMBER: _builtins.int + MESSAGE_FIELD_NUMBER: _builtins.int + code: Global___SubscribeDataTrackErrorCode.ValueType + message: _builtins.str def __init__( self, *, - code: global___SubscribeDataTrackErrorCode.ValueType | None = ..., - message: builtins.str | None = ..., + code: Global___SubscribeDataTrackErrorCode.ValueType | None = ..., + message: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["code", b"code", "message", b"message"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["code", b"code", "message", b"message"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "message", b"message"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "message", b"message"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SubscribeDataTrackError = SubscribeDataTrackError +Global___SubscribeDataTrackError: _TypeAlias = SubscribeDataTrackError # noqa: Y015 -@typing.final -class DataTrackOptions(google.protobuf.message.Message): +@_typing.final +class DataTrackOptions(_message.Message): """MARK: - Local Options for publishing a data track. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - name: builtins.str + NAME_FIELD_NUMBER: _builtins.int + name: _builtins.str """Track name used to identify the track to other participants. Must not be empty and must be unique per publisher. @@ -282,344 +300,401 @@ class DataTrackOptions(google.protobuf.message.Message): def __init__( self, *, - name: builtins.str | None = ..., + name: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["name", b"name"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["name", b"name"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["name", b"name"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["name", b"name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DataTrackOptions = DataTrackOptions +Global___DataTrackOptions: _TypeAlias = DataTrackOptions # noqa: Y015 -@typing.final -class PublishDataTrackRequest(google.protobuf.message.Message): +@_typing.final +class PublishDataTrackRequest(_message.Message): """Publish a data track""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - OPTIONS_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - request_async_id: builtins.int - @property - def options(self) -> global___DataTrackOptions: ... + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + OPTIONS_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + request_async_id: _builtins.int + @_builtins.property + def options(self) -> Global___DataTrackOptions: ... def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - options: global___DataTrackOptions | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + options: Global___DataTrackOptions | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - 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: ... - 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: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___PublishDataTrackRequest = PublishDataTrackRequest +Global___PublishDataTrackRequest: _TypeAlias = PublishDataTrackRequest # noqa: Y015 -@typing.final -class PublishDataTrackResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class PublishDataTrackResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... - -global___PublishDataTrackResponse = PublishDataTrackResponse - -@typing.final -class PublishDataTrackCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - TRACK_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - @property - def track(self) -> global___OwnedLocalDataTrack: ... - @property - def error(self) -> global___PublishDataTrackError: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___PublishDataTrackResponse: _TypeAlias = PublishDataTrackResponse # noqa: Y015 + +@_typing.final +class PublishDataTrackCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: _builtins.int + TRACK_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + @_builtins.property + def track(self) -> Global___OwnedLocalDataTrack: ... + @_builtins.property + def error(self) -> Global___PublishDataTrackError: ... def __init__( self, *, - async_id: builtins.int | None = ..., - track: global___OwnedLocalDataTrack | None = ..., - error: global___PublishDataTrackError | None = ..., + async_id: _builtins.int | None = ..., + track: Global___OwnedLocalDataTrack | None = ..., + error: Global___PublishDataTrackError | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "track", b"track"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "track", b"track"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["track", "error"] | None: ... - -global___PublishDataTrackCallback = PublishDataTrackCallback - -@typing.final -class OwnedLocalDataTrack(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___DataTrackInfo: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "track", b"track"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "track", b"track"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_result: _TypeAlias = _typing.Literal["track", "error"] # noqa: Y015 + _WhichOneofArgType_result: _TypeAlias = _typing.Literal["result", b"result"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_result) -> _WhichOneofReturnType_result | None: ... + +Global___PublishDataTrackCallback: _TypeAlias = PublishDataTrackCallback # noqa: Y015 + +@_typing.final +class OwnedLocalDataTrack(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___DataTrackInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___DataTrackInfo | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___DataTrackInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___OwnedLocalDataTrack = OwnedLocalDataTrack +Global___OwnedLocalDataTrack: _TypeAlias = OwnedLocalDataTrack # noqa: Y015 -@typing.final -class LocalDataTrackTryPushRequest(google.protobuf.message.Message): +@_typing.final +class LocalDataTrackTryPushRequest(_message.Message): """Try pushing a frame to subscribers of the track.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TRACK_HANDLE_FIELD_NUMBER: builtins.int - FRAME_FIELD_NUMBER: builtins.int - track_handle: builtins.int - @property - def frame(self) -> global___DataTrackFrame: ... + TRACK_HANDLE_FIELD_NUMBER: _builtins.int + FRAME_FIELD_NUMBER: _builtins.int + track_handle: _builtins.int + @_builtins.property + def frame(self) -> Global___DataTrackFrame: ... def __init__( self, *, - track_handle: builtins.int | None = ..., - frame: global___DataTrackFrame | None = ..., + track_handle: _builtins.int | None = ..., + frame: Global___DataTrackFrame | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["frame", b"frame", "track_handle", b"track_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["frame", b"frame", "track_handle", b"track_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["frame", b"frame", "track_handle", b"track_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["frame", b"frame", "track_handle", b"track_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___LocalDataTrackTryPushRequest = LocalDataTrackTryPushRequest +Global___LocalDataTrackTryPushRequest: _TypeAlias = LocalDataTrackTryPushRequest # noqa: Y015 -@typing.final -class LocalDataTrackTryPushResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class LocalDataTrackTryPushResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ERROR_FIELD_NUMBER: builtins.int - @property - def error(self) -> global___LocalDataTrackTryPushError: ... + ERROR_FIELD_NUMBER: _builtins.int + @_builtins.property + def error(self) -> Global___LocalDataTrackTryPushError: ... def __init__( self, *, - error: global___LocalDataTrackTryPushError | None = ..., + error: Global___LocalDataTrackTryPushError | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___LocalDataTrackTryPushResponse = LocalDataTrackTryPushResponse +Global___LocalDataTrackTryPushResponse: _TypeAlias = LocalDataTrackTryPushResponse # noqa: Y015 -@typing.final -class LocalDataTrackIsPublishedRequest(google.protobuf.message.Message): +@_typing.final +class LocalDataTrackIsPublishedRequest(_message.Message): """Checks if the track is still published.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TRACK_HANDLE_FIELD_NUMBER: builtins.int - track_handle: builtins.int + TRACK_HANDLE_FIELD_NUMBER: _builtins.int + track_handle: _builtins.int def __init__( self, *, - track_handle: builtins.int | None = ..., + track_handle: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["track_handle", b"track_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["track_handle", b"track_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["track_handle", b"track_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["track_handle", b"track_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___LocalDataTrackIsPublishedRequest = LocalDataTrackIsPublishedRequest +Global___LocalDataTrackIsPublishedRequest: _TypeAlias = LocalDataTrackIsPublishedRequest # noqa: Y015 -@typing.final -class LocalDataTrackIsPublishedResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class LocalDataTrackIsPublishedResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - IS_PUBLISHED_FIELD_NUMBER: builtins.int - is_published: builtins.bool + IS_PUBLISHED_FIELD_NUMBER: _builtins.int + is_published: _builtins.bool def __init__( self, *, - is_published: builtins.bool | None = ..., + is_published: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["is_published", b"is_published"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["is_published", b"is_published"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["is_published", b"is_published"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["is_published", b"is_published"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___LocalDataTrackIsPublishedResponse = LocalDataTrackIsPublishedResponse +Global___LocalDataTrackIsPublishedResponse: _TypeAlias = LocalDataTrackIsPublishedResponse # noqa: Y015 -@typing.final -class LocalDataTrackUnpublishRequest(google.protobuf.message.Message): +@_typing.final +class LocalDataTrackUnpublishRequest(_message.Message): """Unpublishes the track.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TRACK_HANDLE_FIELD_NUMBER: builtins.int - track_handle: builtins.int + TRACK_HANDLE_FIELD_NUMBER: _builtins.int + track_handle: _builtins.int def __init__( self, *, - track_handle: builtins.int | None = ..., + track_handle: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["track_handle", b"track_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["track_handle", b"track_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["track_handle", b"track_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["track_handle", b"track_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___LocalDataTrackUnpublishRequest = LocalDataTrackUnpublishRequest +Global___LocalDataTrackUnpublishRequest: _TypeAlias = LocalDataTrackUnpublishRequest # noqa: Y015 -@typing.final -class LocalDataTrackUnpublishResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class LocalDataTrackUnpublishResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___LocalDataTrackUnpublishResponse = LocalDataTrackUnpublishResponse +Global___LocalDataTrackUnpublishResponse: _TypeAlias = LocalDataTrackUnpublishResponse # noqa: Y015 -@typing.final -class OwnedRemoteDataTrack(google.protobuf.message.Message): +@_typing.final +class OwnedRemoteDataTrack(_message.Message): """MARK: - Remote""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - PUBLISHER_IDENTITY_FIELD_NUMBER: builtins.int - publisher_identity: builtins.str + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + PUBLISHER_IDENTITY_FIELD_NUMBER: _builtins.int + publisher_identity: _builtins.str """Identity of the remote participant who published the track.""" - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___DataTrackInfo: ... + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___DataTrackInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___DataTrackInfo | None = ..., - publisher_identity: builtins.str | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___DataTrackInfo | None = ..., + publisher_identity: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info", "publisher_identity", b"publisher_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info", "publisher_identity", b"publisher_identity"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info", "publisher_identity", b"publisher_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info", "publisher_identity", b"publisher_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___OwnedRemoteDataTrack = OwnedRemoteDataTrack +Global___OwnedRemoteDataTrack: _TypeAlias = OwnedRemoteDataTrack # noqa: Y015 -@typing.final -class OwnedDataTrackStream(google.protobuf.message.Message): +@_typing.final +class OwnedDataTrackStream(_message.Message): """Handle to an active data track subscription. Dropping the handle will unsubscribe from the track. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - HANDLE_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... + HANDLE_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___OwnedDataTrackStream = OwnedDataTrackStream +Global___OwnedDataTrackStream: _TypeAlias = OwnedDataTrackStream # noqa: Y015 -@typing.final -class DataTrackSubscribeOptions(google.protobuf.message.Message): +@_typing.final +class DataTrackSubscribeOptions(_message.Message): """Reserved for future subscription options.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - BUFFER_SIZE_FIELD_NUMBER: builtins.int - buffer_size: builtins.int + BUFFER_SIZE_FIELD_NUMBER: _builtins.int + buffer_size: _builtins.int """Maximum number of frames to buffer internally.""" def __init__( self, *, - buffer_size: builtins.int | None = ..., + buffer_size: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["buffer_size", b"buffer_size"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["buffer_size", b"buffer_size"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["buffer_size", b"buffer_size"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["buffer_size", b"buffer_size"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DataTrackSubscribeOptions = DataTrackSubscribeOptions +Global___DataTrackSubscribeOptions: _TypeAlias = DataTrackSubscribeOptions # noqa: Y015 -@typing.final -class RemoteDataTrackIsPublishedRequest(google.protobuf.message.Message): +@_typing.final +class RemoteDataTrackIsPublishedRequest(_message.Message): """Checks if the track is still published.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TRACK_HANDLE_FIELD_NUMBER: builtins.int - track_handle: builtins.int + TRACK_HANDLE_FIELD_NUMBER: _builtins.int + track_handle: _builtins.int def __init__( self, *, - track_handle: builtins.int | None = ..., + track_handle: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["track_handle", b"track_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["track_handle", b"track_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["track_handle", b"track_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["track_handle", b"track_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RemoteDataTrackIsPublishedRequest = RemoteDataTrackIsPublishedRequest +Global___RemoteDataTrackIsPublishedRequest: _TypeAlias = RemoteDataTrackIsPublishedRequest # noqa: Y015 -@typing.final -class RemoteDataTrackIsPublishedResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class RemoteDataTrackIsPublishedResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - IS_PUBLISHED_FIELD_NUMBER: builtins.int - is_published: builtins.bool + IS_PUBLISHED_FIELD_NUMBER: _builtins.int + is_published: _builtins.bool def __init__( self, *, - is_published: builtins.bool | None = ..., + is_published: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["is_published", b"is_published"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["is_published", b"is_published"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["is_published", b"is_published"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["is_published", b"is_published"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RemoteDataTrackIsPublishedResponse = RemoteDataTrackIsPublishedResponse +Global___RemoteDataTrackIsPublishedResponse: _TypeAlias = RemoteDataTrackIsPublishedResponse # noqa: Y015 -@typing.final -class SubscribeDataTrackRequest(google.protobuf.message.Message): +@_typing.final +class SubscribeDataTrackRequest(_message.Message): """Subscribe to a data track.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TRACK_HANDLE_FIELD_NUMBER: builtins.int - OPTIONS_FIELD_NUMBER: builtins.int - track_handle: builtins.int - @property - def options(self) -> global___DataTrackSubscribeOptions: ... + TRACK_HANDLE_FIELD_NUMBER: _builtins.int + OPTIONS_FIELD_NUMBER: _builtins.int + track_handle: _builtins.int + @_builtins.property + def options(self) -> Global___DataTrackSubscribeOptions: ... def __init__( self, *, - track_handle: builtins.int | None = ..., - options: global___DataTrackSubscribeOptions | None = ..., + track_handle: _builtins.int | None = ..., + options: Global___DataTrackSubscribeOptions | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["options", b"options", "track_handle", b"track_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["options", b"options", "track_handle", b"track_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["options", b"options", "track_handle", b"track_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["options", b"options", "track_handle", b"track_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SubscribeDataTrackRequest = SubscribeDataTrackRequest +Global___SubscribeDataTrackRequest: _TypeAlias = SubscribeDataTrackRequest # noqa: Y015 -@typing.final -class SubscribeDataTrackResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SubscribeDataTrackResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - STREAM_FIELD_NUMBER: builtins.int - @property - def stream(self) -> global___OwnedDataTrackStream: ... + STREAM_FIELD_NUMBER: _builtins.int + @_builtins.property + def stream(self) -> Global___OwnedDataTrackStream: ... def __init__( self, *, - stream: global___OwnedDataTrackStream | None = ..., + stream: Global___OwnedDataTrackStream | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["stream", b"stream"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["stream", b"stream"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["stream", b"stream"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["stream", b"stream"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SubscribeDataTrackResponse = SubscribeDataTrackResponse +Global___SubscribeDataTrackResponse: _TypeAlias = SubscribeDataTrackResponse # noqa: Y015 -@typing.final -class DataTrackStreamReadRequest(google.protobuf.message.Message): +@_typing.final +class DataTrackStreamReadRequest(_message.Message): """Signal readiness to handle the next frame. This allows the client to put backpressure on the internal receive buffer. @@ -627,93 +702,111 @@ class DataTrackStreamReadRequest(google.protobuf.message.Message): once one is available. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - STREAM_HANDLE_FIELD_NUMBER: builtins.int - stream_handle: builtins.int + STREAM_HANDLE_FIELD_NUMBER: _builtins.int + stream_handle: _builtins.int def __init__( self, *, - stream_handle: builtins.int | None = ..., + stream_handle: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["stream_handle", b"stream_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["stream_handle", b"stream_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["stream_handle", b"stream_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["stream_handle", b"stream_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DataTrackStreamReadRequest = DataTrackStreamReadRequest +Global___DataTrackStreamReadRequest: _TypeAlias = DataTrackStreamReadRequest # noqa: Y015 -@typing.final -class DataTrackStreamReadResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DataTrackStreamReadResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DataTrackStreamReadResponse = DataTrackStreamReadResponse +Global___DataTrackStreamReadResponse: _TypeAlias = DataTrackStreamReadResponse # noqa: Y015 -@typing.final -class DataTrackStreamEvent(google.protobuf.message.Message): +@_typing.final +class DataTrackStreamEvent(_message.Message): """Event emitted on an active stream.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - STREAM_HANDLE_FIELD_NUMBER: builtins.int - FRAME_RECEIVED_FIELD_NUMBER: builtins.int - EOS_FIELD_NUMBER: builtins.int - stream_handle: builtins.int - @property - def frame_received(self) -> global___DataTrackStreamFrameReceived: ... - @property - def eos(self) -> global___DataTrackStreamEOS: ... + STREAM_HANDLE_FIELD_NUMBER: _builtins.int + FRAME_RECEIVED_FIELD_NUMBER: _builtins.int + EOS_FIELD_NUMBER: _builtins.int + stream_handle: _builtins.int + @_builtins.property + def frame_received(self) -> Global___DataTrackStreamFrameReceived: ... + @_builtins.property + def eos(self) -> Global___DataTrackStreamEOS: ... def __init__( self, *, - stream_handle: builtins.int | None = ..., - frame_received: global___DataTrackStreamFrameReceived | None = ..., - eos: global___DataTrackStreamEOS | None = ..., + stream_handle: _builtins.int | None = ..., + frame_received: Global___DataTrackStreamFrameReceived | None = ..., + eos: Global___DataTrackStreamEOS | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["detail", b"detail", "eos", b"eos", "frame_received", b"frame_received", "stream_handle", b"stream_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["detail", b"detail", "eos", b"eos", "frame_received", b"frame_received", "stream_handle", b"stream_handle"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["detail", b"detail"]) -> typing.Literal["frame_received", "eos"] | None: ... - -global___DataTrackStreamEvent = DataTrackStreamEvent - -@typing.final -class DataTrackStreamFrameReceived(google.protobuf.message.Message): + _HasFieldArgType: _TypeAlias = _typing.Literal["detail", b"detail", "eos", b"eos", "frame_received", b"frame_received", "stream_handle", b"stream_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["detail", b"detail", "eos", b"eos", "frame_received", b"frame_received", "stream_handle", b"stream_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_detail: _TypeAlias = _typing.Literal["frame_received", "eos"] # noqa: Y015 + _WhichOneofArgType_detail: _TypeAlias = _typing.Literal["detail", b"detail"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_detail) -> _WhichOneofReturnType_detail | None: ... + +Global___DataTrackStreamEvent: _TypeAlias = DataTrackStreamEvent # noqa: Y015 + +@_typing.final +class DataTrackStreamFrameReceived(_message.Message): """A frame was received.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - FRAME_FIELD_NUMBER: builtins.int - @property - def frame(self) -> global___DataTrackFrame: ... + FRAME_FIELD_NUMBER: _builtins.int + @_builtins.property + def frame(self) -> Global___DataTrackFrame: ... def __init__( self, *, - frame: global___DataTrackFrame | None = ..., + frame: Global___DataTrackFrame | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["frame", b"frame"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["frame", b"frame"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["frame", b"frame"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["frame", b"frame"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DataTrackStreamFrameReceived = DataTrackStreamFrameReceived +Global___DataTrackStreamFrameReceived: _TypeAlias = DataTrackStreamFrameReceived # noqa: Y015 -@typing.final -class DataTrackStreamEOS(google.protobuf.message.Message): +@_typing.final +class DataTrackStreamEOS(_message.Message): """Stream has ended.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - ERROR_FIELD_NUMBER: builtins.int - error: builtins.str + ERROR_FIELD_NUMBER: _builtins.int + error: _builtins.str """If the track could not be subscribed to, a message describing the error. Absent if the stream ended normally. """ def __init__( self, *, - error: builtins.str | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DataTrackStreamEOS = DataTrackStreamEOS +Global___DataTrackStreamEOS: _TypeAlias = DataTrackStreamEOS # noqa: Y015 diff --git a/livekit-rtc/livekit/rtc/_proto/e2ee_pb2.py b/livekit-rtc/livekit/rtc/_proto/e2ee_pb2.py index 0a0b9a52..ceffa883 100644 --- a/livekit-rtc/livekit/rtc/_proto/e2ee_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/e2ee_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: e2ee.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 7.34.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 7, + 34, + 1, + '', + 'e2ee.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -19,8 +29,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'e2ee_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'\252\002\rLiveKit.Proto' _globals['_ENCRYPTIONTYPE']._serialized_start=2951 _globals['_ENCRYPTIONTYPE']._serialized_end=2998 diff --git a/livekit-rtc/livekit/rtc/_proto/e2ee_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/e2ee_pb2.pyi index 53437b21..241b2f61 100644 --- a/livekit-rtc/livekit/rtc/_proto/e2ee_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/e2ee_pb2.pyi @@ -16,28 +16,28 @@ See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message +from collections import abc as _abc +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +import builtins as _builtins import sys -import typing +import typing as _typing -if sys.version_info >= (3, 10): - import typing as typing_extensions +if sys.version_info >= (3, 11): + from typing import TypeAlias as _TypeAlias, Never as _Never else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias, Never as _Never -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor class _EncryptionType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _EncryptionTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EncryptionType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _EncryptionTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_EncryptionType.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor NONE: _EncryptionType.ValueType # 0 GCM: _EncryptionType.ValueType # 1 CUSTOM: _EncryptionType.ValueType # 2 @@ -48,14 +48,14 @@ class EncryptionType(_EncryptionType, metaclass=_EncryptionTypeEnumTypeWrapper): NONE: EncryptionType.ValueType # 0 GCM: EncryptionType.ValueType # 1 CUSTOM: EncryptionType.ValueType # 2 -global___EncryptionType = EncryptionType +Global___EncryptionType: _TypeAlias = EncryptionType # noqa: Y015 class _KeyDerivationFunction: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _KeyDerivationFunctionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_KeyDerivationFunction.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _KeyDerivationFunctionEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_KeyDerivationFunction.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor PBKDF2: _KeyDerivationFunction.ValueType # 0 HKDF: _KeyDerivationFunction.ValueType # 1 @@ -63,14 +63,14 @@ class KeyDerivationFunction(_KeyDerivationFunction, metaclass=_KeyDerivationFunc PBKDF2: KeyDerivationFunction.ValueType # 0 HKDF: KeyDerivationFunction.ValueType # 1 -global___KeyDerivationFunction = KeyDerivationFunction +Global___KeyDerivationFunction: _TypeAlias = KeyDerivationFunction # noqa: Y015 class _EncryptionState: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _EncryptionStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EncryptionState.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _EncryptionStateEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_EncryptionState.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor NEW: _EncryptionState.ValueType # 0 OK: _EncryptionState.ValueType # 1 ENCRYPTION_FAILED: _EncryptionState.ValueType # 2 @@ -88,504 +88,594 @@ DECRYPTION_FAILED: EncryptionState.ValueType # 3 MISSING_KEY: EncryptionState.ValueType # 4 KEY_RATCHETED: EncryptionState.ValueType # 5 INTERNAL_ERROR: EncryptionState.ValueType # 6 -global___EncryptionState = EncryptionState - -@typing.final -class FrameCryptor(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - TRACK_SID_FIELD_NUMBER: builtins.int - KEY_INDEX_FIELD_NUMBER: builtins.int - ENABLED_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - track_sid: builtins.str - key_index: builtins.int - enabled: builtins.bool +Global___EncryptionState: _TypeAlias = EncryptionState # noqa: Y015 + +@_typing.final +class FrameCryptor(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + TRACK_SID_FIELD_NUMBER: _builtins.int + KEY_INDEX_FIELD_NUMBER: _builtins.int + ENABLED_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + track_sid: _builtins.str + key_index: _builtins.int + enabled: _builtins.bool def __init__( self, *, - participant_identity: builtins.str | None = ..., - track_sid: builtins.str | None = ..., - key_index: builtins.int | None = ..., - enabled: builtins.bool | None = ..., + participant_identity: _builtins.str | None = ..., + track_sid: _builtins.str | None = ..., + key_index: _builtins.int | None = ..., + enabled: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["enabled", b"enabled", "key_index", b"key_index", "participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["enabled", b"enabled", "key_index", b"key_index", "participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> None: ... - -global___FrameCryptor = FrameCryptor - -@typing.final -class KeyProviderOptions(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - SHARED_KEY_FIELD_NUMBER: builtins.int - RATCHET_WINDOW_SIZE_FIELD_NUMBER: builtins.int - RATCHET_SALT_FIELD_NUMBER: builtins.int - FAILURE_TOLERANCE_FIELD_NUMBER: builtins.int - KEY_RING_SIZE_FIELD_NUMBER: builtins.int - KEY_DERIVATION_FUNCTION_FIELD_NUMBER: builtins.int - shared_key: builtins.bytes + _HasFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled", "key_index", b"key_index", "participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled", "key_index", b"key_index", "participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___FrameCryptor: _TypeAlias = FrameCryptor # noqa: Y015 + +@_typing.final +class KeyProviderOptions(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + SHARED_KEY_FIELD_NUMBER: _builtins.int + RATCHET_WINDOW_SIZE_FIELD_NUMBER: _builtins.int + RATCHET_SALT_FIELD_NUMBER: _builtins.int + FAILURE_TOLERANCE_FIELD_NUMBER: _builtins.int + KEY_RING_SIZE_FIELD_NUMBER: _builtins.int + KEY_DERIVATION_FUNCTION_FIELD_NUMBER: _builtins.int + shared_key: _builtins.bytes """Only specify if you want to use a shared_key""" - ratchet_window_size: builtins.int - ratchet_salt: builtins.bytes - failure_tolerance: builtins.int + ratchet_window_size: _builtins.int + ratchet_salt: _builtins.bytes + failure_tolerance: _builtins.int """-1 = no tolerance""" - key_ring_size: builtins.int - key_derivation_function: global___KeyDerivationFunction.ValueType + key_ring_size: _builtins.int + key_derivation_function: Global___KeyDerivationFunction.ValueType def __init__( self, *, - shared_key: builtins.bytes | None = ..., - ratchet_window_size: builtins.int | None = ..., - ratchet_salt: builtins.bytes | None = ..., - failure_tolerance: builtins.int | None = ..., - key_ring_size: builtins.int | None = ..., - key_derivation_function: global___KeyDerivationFunction.ValueType | None = ..., + shared_key: _builtins.bytes | None = ..., + ratchet_window_size: _builtins.int | None = ..., + ratchet_salt: _builtins.bytes | None = ..., + failure_tolerance: _builtins.int | None = ..., + key_ring_size: _builtins.int | None = ..., + key_derivation_function: Global___KeyDerivationFunction.ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["failure_tolerance", b"failure_tolerance", "key_derivation_function", b"key_derivation_function", "key_ring_size", b"key_ring_size", "ratchet_salt", b"ratchet_salt", "ratchet_window_size", b"ratchet_window_size", "shared_key", b"shared_key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["failure_tolerance", b"failure_tolerance", "key_derivation_function", b"key_derivation_function", "key_ring_size", b"key_ring_size", "ratchet_salt", b"ratchet_salt", "ratchet_window_size", b"ratchet_window_size", "shared_key", b"shared_key"]) -> None: ... - -global___KeyProviderOptions = KeyProviderOptions - -@typing.final -class E2eeOptions(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ENCRYPTION_TYPE_FIELD_NUMBER: builtins.int - KEY_PROVIDER_OPTIONS_FIELD_NUMBER: builtins.int - encryption_type: global___EncryptionType.ValueType - @property - def key_provider_options(self) -> global___KeyProviderOptions: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["failure_tolerance", b"failure_tolerance", "key_derivation_function", b"key_derivation_function", "key_ring_size", b"key_ring_size", "ratchet_salt", b"ratchet_salt", "ratchet_window_size", b"ratchet_window_size", "shared_key", b"shared_key"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["failure_tolerance", b"failure_tolerance", "key_derivation_function", b"key_derivation_function", "key_ring_size", b"key_ring_size", "ratchet_salt", b"ratchet_salt", "ratchet_window_size", b"ratchet_window_size", "shared_key", b"shared_key"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___KeyProviderOptions: _TypeAlias = KeyProviderOptions # noqa: Y015 + +@_typing.final +class E2eeOptions(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ENCRYPTION_TYPE_FIELD_NUMBER: _builtins.int + KEY_PROVIDER_OPTIONS_FIELD_NUMBER: _builtins.int + encryption_type: Global___EncryptionType.ValueType + @_builtins.property + def key_provider_options(self) -> Global___KeyProviderOptions: ... def __init__( self, *, - encryption_type: global___EncryptionType.ValueType | None = ..., - key_provider_options: global___KeyProviderOptions | None = ..., + encryption_type: Global___EncryptionType.ValueType | None = ..., + key_provider_options: Global___KeyProviderOptions | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["encryption_type", b"encryption_type", "key_provider_options", b"key_provider_options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["encryption_type", b"encryption_type", "key_provider_options", b"key_provider_options"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["encryption_type", b"encryption_type", "key_provider_options", b"key_provider_options"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["encryption_type", b"encryption_type", "key_provider_options", b"key_provider_options"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___E2eeOptions = E2eeOptions +Global___E2eeOptions: _TypeAlias = E2eeOptions # noqa: Y015 -@typing.final -class E2eeManagerSetEnabledRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class E2eeManagerSetEnabledRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ENABLED_FIELD_NUMBER: builtins.int - enabled: builtins.bool + ENABLED_FIELD_NUMBER: _builtins.int + enabled: _builtins.bool def __init__( self, *, - enabled: builtins.bool | None = ..., + enabled: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["enabled", b"enabled"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["enabled", b"enabled"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___E2eeManagerSetEnabledRequest = E2eeManagerSetEnabledRequest +Global___E2eeManagerSetEnabledRequest: _TypeAlias = E2eeManagerSetEnabledRequest # noqa: Y015 -@typing.final -class E2eeManagerSetEnabledResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class E2eeManagerSetEnabledResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___E2eeManagerSetEnabledResponse = E2eeManagerSetEnabledResponse +Global___E2eeManagerSetEnabledResponse: _TypeAlias = E2eeManagerSetEnabledResponse # noqa: Y015 -@typing.final -class E2eeManagerGetFrameCryptorsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class E2eeManagerGetFrameCryptorsRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___E2eeManagerGetFrameCryptorsRequest = E2eeManagerGetFrameCryptorsRequest +Global___E2eeManagerGetFrameCryptorsRequest: _TypeAlias = E2eeManagerGetFrameCryptorsRequest # noqa: Y015 -@typing.final -class E2eeManagerGetFrameCryptorsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class E2eeManagerGetFrameCryptorsResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - FRAME_CRYPTORS_FIELD_NUMBER: builtins.int - @property - def frame_cryptors(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FrameCryptor]: ... + FRAME_CRYPTORS_FIELD_NUMBER: _builtins.int + @_builtins.property + def frame_cryptors(self) -> _containers.RepeatedCompositeFieldContainer[Global___FrameCryptor]: ... def __init__( self, *, - frame_cryptors: collections.abc.Iterable[global___FrameCryptor] | None = ..., + frame_cryptors: _abc.Iterable[Global___FrameCryptor] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing.Literal["frame_cryptors", b"frame_cryptors"]) -> None: ... - -global___E2eeManagerGetFrameCryptorsResponse = E2eeManagerGetFrameCryptorsResponse - -@typing.final -class FrameCryptorSetEnabledRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - TRACK_SID_FIELD_NUMBER: builtins.int - ENABLED_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - track_sid: builtins.str - enabled: builtins.bool + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["frame_cryptors", b"frame_cryptors"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___E2eeManagerGetFrameCryptorsResponse: _TypeAlias = E2eeManagerGetFrameCryptorsResponse # noqa: Y015 + +@_typing.final +class FrameCryptorSetEnabledRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + TRACK_SID_FIELD_NUMBER: _builtins.int + ENABLED_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + track_sid: _builtins.str + enabled: _builtins.bool def __init__( self, *, - participant_identity: builtins.str | None = ..., - track_sid: builtins.str | None = ..., - enabled: builtins.bool | None = ..., + participant_identity: _builtins.str | None = ..., + track_sid: _builtins.str | None = ..., + enabled: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["enabled", b"enabled", "participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["enabled", b"enabled", "participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled", "participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled", "participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___FrameCryptorSetEnabledRequest = FrameCryptorSetEnabledRequest +Global___FrameCryptorSetEnabledRequest: _TypeAlias = FrameCryptorSetEnabledRequest # noqa: Y015 -@typing.final -class FrameCryptorSetEnabledResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FrameCryptorSetEnabledResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... - -global___FrameCryptorSetEnabledResponse = FrameCryptorSetEnabledResponse - -@typing.final -class FrameCryptorSetKeyIndexRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - TRACK_SID_FIELD_NUMBER: builtins.int - KEY_INDEX_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - track_sid: builtins.str - key_index: builtins.int + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___FrameCryptorSetEnabledResponse: _TypeAlias = FrameCryptorSetEnabledResponse # noqa: Y015 + +@_typing.final +class FrameCryptorSetKeyIndexRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + TRACK_SID_FIELD_NUMBER: _builtins.int + KEY_INDEX_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + track_sid: _builtins.str + key_index: _builtins.int def __init__( self, *, - participant_identity: builtins.str | None = ..., - track_sid: builtins.str | None = ..., - key_index: builtins.int | None = ..., + participant_identity: _builtins.str | None = ..., + track_sid: _builtins.str | None = ..., + key_index: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___FrameCryptorSetKeyIndexRequest = FrameCryptorSetKeyIndexRequest +Global___FrameCryptorSetKeyIndexRequest: _TypeAlias = FrameCryptorSetKeyIndexRequest # noqa: Y015 -@typing.final -class FrameCryptorSetKeyIndexResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FrameCryptorSetKeyIndexResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... - -global___FrameCryptorSetKeyIndexResponse = FrameCryptorSetKeyIndexResponse - -@typing.final -class SetSharedKeyRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - SHARED_KEY_FIELD_NUMBER: builtins.int - KEY_INDEX_FIELD_NUMBER: builtins.int - shared_key: builtins.bytes - key_index: builtins.int + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___FrameCryptorSetKeyIndexResponse: _TypeAlias = FrameCryptorSetKeyIndexResponse # noqa: Y015 + +@_typing.final +class SetSharedKeyRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + SHARED_KEY_FIELD_NUMBER: _builtins.int + KEY_INDEX_FIELD_NUMBER: _builtins.int + shared_key: _builtins.bytes + key_index: _builtins.int def __init__( self, *, - shared_key: builtins.bytes | None = ..., - key_index: builtins.int | None = ..., + shared_key: _builtins.bytes | None = ..., + key_index: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key_index", b"key_index", "shared_key", b"shared_key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key_index", b"key_index", "shared_key", b"shared_key"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index", "shared_key", b"shared_key"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index", "shared_key", b"shared_key"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetSharedKeyRequest = SetSharedKeyRequest +Global___SetSharedKeyRequest: _TypeAlias = SetSharedKeyRequest # noqa: Y015 -@typing.final -class SetSharedKeyResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SetSharedKeyResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetSharedKeyResponse = SetSharedKeyResponse +Global___SetSharedKeyResponse: _TypeAlias = SetSharedKeyResponse # noqa: Y015 -@typing.final -class RatchetSharedKeyRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class RatchetSharedKeyRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_INDEX_FIELD_NUMBER: builtins.int - key_index: builtins.int + KEY_INDEX_FIELD_NUMBER: _builtins.int + key_index: _builtins.int def __init__( self, *, - key_index: builtins.int | None = ..., + key_index: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key_index", b"key_index"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key_index", b"key_index"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RatchetSharedKeyRequest = RatchetSharedKeyRequest +Global___RatchetSharedKeyRequest: _TypeAlias = RatchetSharedKeyRequest # noqa: Y015 -@typing.final -class RatchetSharedKeyResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class RatchetSharedKeyResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NEW_KEY_FIELD_NUMBER: builtins.int - new_key: builtins.bytes + NEW_KEY_FIELD_NUMBER: _builtins.int + new_key: _builtins.bytes def __init__( self, *, - new_key: builtins.bytes | None = ..., + new_key: _builtins.bytes | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["new_key", b"new_key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["new_key", b"new_key"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["new_key", b"new_key"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["new_key", b"new_key"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RatchetSharedKeyResponse = RatchetSharedKeyResponse +Global___RatchetSharedKeyResponse: _TypeAlias = RatchetSharedKeyResponse # noqa: Y015 -@typing.final -class GetSharedKeyRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetSharedKeyRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_INDEX_FIELD_NUMBER: builtins.int - key_index: builtins.int + KEY_INDEX_FIELD_NUMBER: _builtins.int + key_index: _builtins.int def __init__( self, *, - key_index: builtins.int | None = ..., + key_index: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key_index", b"key_index"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key_index", b"key_index"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___GetSharedKeyRequest = GetSharedKeyRequest +Global___GetSharedKeyRequest: _TypeAlias = GetSharedKeyRequest # noqa: Y015 -@typing.final -class GetSharedKeyResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetSharedKeyResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - key: builtins.bytes + KEY_FIELD_NUMBER: _builtins.int + key: _builtins.bytes def __init__( self, *, - key: builtins.bytes | None = ..., + key: _builtins.bytes | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key", b"key"]) -> None: ... - -global___GetSharedKeyResponse = GetSharedKeyResponse - -@typing.final -class SetKeyRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - KEY_FIELD_NUMBER: builtins.int - KEY_INDEX_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - key: builtins.bytes - key_index: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___GetSharedKeyResponse: _TypeAlias = GetSharedKeyResponse # noqa: Y015 + +@_typing.final +class SetKeyRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + KEY_FIELD_NUMBER: _builtins.int + KEY_INDEX_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + key: _builtins.bytes + key_index: _builtins.int def __init__( self, *, - participant_identity: builtins.str | None = ..., - key: builtins.bytes | None = ..., - key_index: builtins.int | None = ..., + participant_identity: _builtins.str | None = ..., + key: _builtins.bytes | None = ..., + key_index: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key", b"key", "key_index", b"key_index", "participant_identity", b"participant_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "key_index", b"key_index", "participant_identity", b"participant_identity"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "key_index", b"key_index", "participant_identity", b"participant_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "key_index", b"key_index", "participant_identity", b"participant_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetKeyRequest = SetKeyRequest +Global___SetKeyRequest: _TypeAlias = SetKeyRequest # noqa: Y015 -@typing.final -class SetKeyResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SetKeyResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... - -global___SetKeyResponse = SetKeyResponse - -@typing.final -class RatchetKeyRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - KEY_INDEX_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - key_index: builtins.int + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___SetKeyResponse: _TypeAlias = SetKeyResponse # noqa: Y015 + +@_typing.final +class RatchetKeyRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + KEY_INDEX_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + key_index: _builtins.int def __init__( self, *, - participant_identity: builtins.str | None = ..., - key_index: builtins.int | None = ..., + participant_identity: _builtins.str | None = ..., + key_index: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RatchetKeyRequest = RatchetKeyRequest +Global___RatchetKeyRequest: _TypeAlias = RatchetKeyRequest # noqa: Y015 -@typing.final -class RatchetKeyResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class RatchetKeyResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NEW_KEY_FIELD_NUMBER: builtins.int - new_key: builtins.bytes + NEW_KEY_FIELD_NUMBER: _builtins.int + new_key: _builtins.bytes def __init__( self, *, - new_key: builtins.bytes | None = ..., + new_key: _builtins.bytes | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["new_key", b"new_key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["new_key", b"new_key"]) -> None: ... - -global___RatchetKeyResponse = RatchetKeyResponse - -@typing.final -class GetKeyRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - KEY_INDEX_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - key_index: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["new_key", b"new_key"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["new_key", b"new_key"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___RatchetKeyResponse: _TypeAlias = RatchetKeyResponse # noqa: Y015 + +@_typing.final +class GetKeyRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + KEY_INDEX_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + key_index: _builtins.int def __init__( self, *, - participant_identity: builtins.str | None = ..., - key_index: builtins.int | None = ..., + participant_identity: _builtins.str | None = ..., + key_index: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___GetKeyRequest = GetKeyRequest +Global___GetKeyRequest: _TypeAlias = GetKeyRequest # noqa: Y015 -@typing.final -class GetKeyResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetKeyResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - key: builtins.bytes + KEY_FIELD_NUMBER: _builtins.int + key: _builtins.bytes def __init__( self, *, - key: builtins.bytes | None = ..., + key: _builtins.bytes | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key", b"key"]) -> None: ... - -global___GetKeyResponse = GetKeyResponse - -@typing.final -class E2eeRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ROOM_HANDLE_FIELD_NUMBER: builtins.int - MANAGER_SET_ENABLED_FIELD_NUMBER: builtins.int - MANAGER_GET_FRAME_CRYPTORS_FIELD_NUMBER: builtins.int - CRYPTOR_SET_ENABLED_FIELD_NUMBER: builtins.int - CRYPTOR_SET_KEY_INDEX_FIELD_NUMBER: builtins.int - SET_SHARED_KEY_FIELD_NUMBER: builtins.int - RATCHET_SHARED_KEY_FIELD_NUMBER: builtins.int - GET_SHARED_KEY_FIELD_NUMBER: builtins.int - SET_KEY_FIELD_NUMBER: builtins.int - RATCHET_KEY_FIELD_NUMBER: builtins.int - GET_KEY_FIELD_NUMBER: builtins.int - room_handle: builtins.int - @property - def manager_set_enabled(self) -> global___E2eeManagerSetEnabledRequest: ... - @property - def manager_get_frame_cryptors(self) -> global___E2eeManagerGetFrameCryptorsRequest: ... - @property - def cryptor_set_enabled(self) -> global___FrameCryptorSetEnabledRequest: ... - @property - def cryptor_set_key_index(self) -> global___FrameCryptorSetKeyIndexRequest: ... - @property - def set_shared_key(self) -> global___SetSharedKeyRequest: ... - @property - def ratchet_shared_key(self) -> global___RatchetSharedKeyRequest: ... - @property - def get_shared_key(self) -> global___GetSharedKeyRequest: ... - @property - def set_key(self) -> global___SetKeyRequest: ... - @property - def ratchet_key(self) -> global___RatchetKeyRequest: ... - @property - def get_key(self) -> global___GetKeyRequest: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___GetKeyResponse: _TypeAlias = GetKeyResponse # noqa: Y015 + +@_typing.final +class E2eeRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ROOM_HANDLE_FIELD_NUMBER: _builtins.int + MANAGER_SET_ENABLED_FIELD_NUMBER: _builtins.int + MANAGER_GET_FRAME_CRYPTORS_FIELD_NUMBER: _builtins.int + CRYPTOR_SET_ENABLED_FIELD_NUMBER: _builtins.int + CRYPTOR_SET_KEY_INDEX_FIELD_NUMBER: _builtins.int + SET_SHARED_KEY_FIELD_NUMBER: _builtins.int + RATCHET_SHARED_KEY_FIELD_NUMBER: _builtins.int + GET_SHARED_KEY_FIELD_NUMBER: _builtins.int + SET_KEY_FIELD_NUMBER: _builtins.int + RATCHET_KEY_FIELD_NUMBER: _builtins.int + GET_KEY_FIELD_NUMBER: _builtins.int + room_handle: _builtins.int + @_builtins.property + def manager_set_enabled(self) -> Global___E2eeManagerSetEnabledRequest: ... + @_builtins.property + def manager_get_frame_cryptors(self) -> Global___E2eeManagerGetFrameCryptorsRequest: ... + @_builtins.property + def cryptor_set_enabled(self) -> Global___FrameCryptorSetEnabledRequest: ... + @_builtins.property + def cryptor_set_key_index(self) -> Global___FrameCryptorSetKeyIndexRequest: ... + @_builtins.property + def set_shared_key(self) -> Global___SetSharedKeyRequest: ... + @_builtins.property + def ratchet_shared_key(self) -> Global___RatchetSharedKeyRequest: ... + @_builtins.property + def get_shared_key(self) -> Global___GetSharedKeyRequest: ... + @_builtins.property + def set_key(self) -> Global___SetKeyRequest: ... + @_builtins.property + def ratchet_key(self) -> Global___RatchetKeyRequest: ... + @_builtins.property + def get_key(self) -> Global___GetKeyRequest: ... def __init__( self, *, - room_handle: builtins.int | None = ..., - manager_set_enabled: global___E2eeManagerSetEnabledRequest | None = ..., - manager_get_frame_cryptors: global___E2eeManagerGetFrameCryptorsRequest | None = ..., - cryptor_set_enabled: global___FrameCryptorSetEnabledRequest | None = ..., - cryptor_set_key_index: global___FrameCryptorSetKeyIndexRequest | None = ..., - set_shared_key: global___SetSharedKeyRequest | None = ..., - ratchet_shared_key: global___RatchetSharedKeyRequest | None = ..., - get_shared_key: global___GetSharedKeyRequest | None = ..., - set_key: global___SetKeyRequest | None = ..., - ratchet_key: global___RatchetKeyRequest | None = ..., - get_key: global___GetKeyRequest | None = ..., + room_handle: _builtins.int | None = ..., + manager_set_enabled: Global___E2eeManagerSetEnabledRequest | None = ..., + manager_get_frame_cryptors: Global___E2eeManagerGetFrameCryptorsRequest | None = ..., + cryptor_set_enabled: Global___FrameCryptorSetEnabledRequest | None = ..., + cryptor_set_key_index: Global___FrameCryptorSetKeyIndexRequest | None = ..., + set_shared_key: Global___SetSharedKeyRequest | None = ..., + ratchet_shared_key: Global___RatchetSharedKeyRequest | None = ..., + get_shared_key: Global___GetSharedKeyRequest | None = ..., + set_key: Global___SetKeyRequest | None = ..., + ratchet_key: Global___RatchetKeyRequest | None = ..., + get_key: Global___GetKeyRequest | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["cryptor_set_enabled", b"cryptor_set_enabled", "cryptor_set_key_index", b"cryptor_set_key_index", "get_key", b"get_key", "get_shared_key", b"get_shared_key", "manager_get_frame_cryptors", b"manager_get_frame_cryptors", "manager_set_enabled", b"manager_set_enabled", "message", b"message", "ratchet_key", b"ratchet_key", "ratchet_shared_key", b"ratchet_shared_key", "room_handle", b"room_handle", "set_key", b"set_key", "set_shared_key", b"set_shared_key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["cryptor_set_enabled", b"cryptor_set_enabled", "cryptor_set_key_index", b"cryptor_set_key_index", "get_key", b"get_key", "get_shared_key", b"get_shared_key", "manager_get_frame_cryptors", b"manager_get_frame_cryptors", "manager_set_enabled", b"manager_set_enabled", "message", b"message", "ratchet_key", b"ratchet_key", "ratchet_shared_key", b"ratchet_shared_key", "room_handle", b"room_handle", "set_key", b"set_key", "set_shared_key", b"set_shared_key"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["manager_set_enabled", "manager_get_frame_cryptors", "cryptor_set_enabled", "cryptor_set_key_index", "set_shared_key", "ratchet_shared_key", "get_shared_key", "set_key", "ratchet_key", "get_key"] | None: ... - -global___E2eeRequest = E2eeRequest - -@typing.final -class E2eeResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - MANAGER_SET_ENABLED_FIELD_NUMBER: builtins.int - MANAGER_GET_FRAME_CRYPTORS_FIELD_NUMBER: builtins.int - CRYPTOR_SET_ENABLED_FIELD_NUMBER: builtins.int - CRYPTOR_SET_KEY_INDEX_FIELD_NUMBER: builtins.int - SET_SHARED_KEY_FIELD_NUMBER: builtins.int - RATCHET_SHARED_KEY_FIELD_NUMBER: builtins.int - GET_SHARED_KEY_FIELD_NUMBER: builtins.int - SET_KEY_FIELD_NUMBER: builtins.int - RATCHET_KEY_FIELD_NUMBER: builtins.int - GET_KEY_FIELD_NUMBER: builtins.int - @property - def manager_set_enabled(self) -> global___E2eeManagerSetEnabledResponse: ... - @property - def manager_get_frame_cryptors(self) -> global___E2eeManagerGetFrameCryptorsResponse: ... - @property - def cryptor_set_enabled(self) -> global___FrameCryptorSetEnabledResponse: ... - @property - def cryptor_set_key_index(self) -> global___FrameCryptorSetKeyIndexResponse: ... - @property - def set_shared_key(self) -> global___SetSharedKeyResponse: ... - @property - def ratchet_shared_key(self) -> global___RatchetSharedKeyResponse: ... - @property - def get_shared_key(self) -> global___GetSharedKeyResponse: ... - @property - def set_key(self) -> global___SetKeyResponse: ... - @property - def ratchet_key(self) -> global___RatchetKeyResponse: ... - @property - def get_key(self) -> global___GetKeyResponse: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["cryptor_set_enabled", b"cryptor_set_enabled", "cryptor_set_key_index", b"cryptor_set_key_index", "get_key", b"get_key", "get_shared_key", b"get_shared_key", "manager_get_frame_cryptors", b"manager_get_frame_cryptors", "manager_set_enabled", b"manager_set_enabled", "message", b"message", "ratchet_key", b"ratchet_key", "ratchet_shared_key", b"ratchet_shared_key", "room_handle", b"room_handle", "set_key", b"set_key", "set_shared_key", b"set_shared_key"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["cryptor_set_enabled", b"cryptor_set_enabled", "cryptor_set_key_index", b"cryptor_set_key_index", "get_key", b"get_key", "get_shared_key", b"get_shared_key", "manager_get_frame_cryptors", b"manager_get_frame_cryptors", "manager_set_enabled", b"manager_set_enabled", "message", b"message", "ratchet_key", b"ratchet_key", "ratchet_shared_key", b"ratchet_shared_key", "room_handle", b"room_handle", "set_key", b"set_key", "set_shared_key", b"set_shared_key"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["manager_set_enabled", "manager_get_frame_cryptors", "cryptor_set_enabled", "cryptor_set_key_index", "set_shared_key", "ratchet_shared_key", "get_shared_key", "set_key", "ratchet_key", "get_key"] # noqa: Y015 + _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... + +Global___E2eeRequest: _TypeAlias = E2eeRequest # noqa: Y015 + +@_typing.final +class E2eeResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + MANAGER_SET_ENABLED_FIELD_NUMBER: _builtins.int + MANAGER_GET_FRAME_CRYPTORS_FIELD_NUMBER: _builtins.int + CRYPTOR_SET_ENABLED_FIELD_NUMBER: _builtins.int + CRYPTOR_SET_KEY_INDEX_FIELD_NUMBER: _builtins.int + SET_SHARED_KEY_FIELD_NUMBER: _builtins.int + RATCHET_SHARED_KEY_FIELD_NUMBER: _builtins.int + GET_SHARED_KEY_FIELD_NUMBER: _builtins.int + SET_KEY_FIELD_NUMBER: _builtins.int + RATCHET_KEY_FIELD_NUMBER: _builtins.int + GET_KEY_FIELD_NUMBER: _builtins.int + @_builtins.property + def manager_set_enabled(self) -> Global___E2eeManagerSetEnabledResponse: ... + @_builtins.property + def manager_get_frame_cryptors(self) -> Global___E2eeManagerGetFrameCryptorsResponse: ... + @_builtins.property + def cryptor_set_enabled(self) -> Global___FrameCryptorSetEnabledResponse: ... + @_builtins.property + def cryptor_set_key_index(self) -> Global___FrameCryptorSetKeyIndexResponse: ... + @_builtins.property + def set_shared_key(self) -> Global___SetSharedKeyResponse: ... + @_builtins.property + def ratchet_shared_key(self) -> Global___RatchetSharedKeyResponse: ... + @_builtins.property + def get_shared_key(self) -> Global___GetSharedKeyResponse: ... + @_builtins.property + def set_key(self) -> Global___SetKeyResponse: ... + @_builtins.property + def ratchet_key(self) -> Global___RatchetKeyResponse: ... + @_builtins.property + def get_key(self) -> Global___GetKeyResponse: ... def __init__( self, *, - manager_set_enabled: global___E2eeManagerSetEnabledResponse | None = ..., - manager_get_frame_cryptors: global___E2eeManagerGetFrameCryptorsResponse | None = ..., - cryptor_set_enabled: global___FrameCryptorSetEnabledResponse | None = ..., - cryptor_set_key_index: global___FrameCryptorSetKeyIndexResponse | None = ..., - set_shared_key: global___SetSharedKeyResponse | None = ..., - ratchet_shared_key: global___RatchetSharedKeyResponse | None = ..., - get_shared_key: global___GetSharedKeyResponse | None = ..., - set_key: global___SetKeyResponse | None = ..., - ratchet_key: global___RatchetKeyResponse | None = ..., - get_key: global___GetKeyResponse | None = ..., + manager_set_enabled: Global___E2eeManagerSetEnabledResponse | None = ..., + manager_get_frame_cryptors: Global___E2eeManagerGetFrameCryptorsResponse | None = ..., + cryptor_set_enabled: Global___FrameCryptorSetEnabledResponse | None = ..., + cryptor_set_key_index: Global___FrameCryptorSetKeyIndexResponse | None = ..., + set_shared_key: Global___SetSharedKeyResponse | None = ..., + ratchet_shared_key: Global___RatchetSharedKeyResponse | None = ..., + get_shared_key: Global___GetSharedKeyResponse | None = ..., + set_key: Global___SetKeyResponse | None = ..., + ratchet_key: Global___RatchetKeyResponse | None = ..., + get_key: Global___GetKeyResponse | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["cryptor_set_enabled", b"cryptor_set_enabled", "cryptor_set_key_index", b"cryptor_set_key_index", "get_key", b"get_key", "get_shared_key", b"get_shared_key", "manager_get_frame_cryptors", b"manager_get_frame_cryptors", "manager_set_enabled", b"manager_set_enabled", "message", b"message", "ratchet_key", b"ratchet_key", "ratchet_shared_key", b"ratchet_shared_key", "set_key", b"set_key", "set_shared_key", b"set_shared_key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["cryptor_set_enabled", b"cryptor_set_enabled", "cryptor_set_key_index", b"cryptor_set_key_index", "get_key", b"get_key", "get_shared_key", b"get_shared_key", "manager_get_frame_cryptors", b"manager_get_frame_cryptors", "manager_set_enabled", b"manager_set_enabled", "message", b"message", "ratchet_key", b"ratchet_key", "ratchet_shared_key", b"ratchet_shared_key", "set_key", b"set_key", "set_shared_key", b"set_shared_key"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["manager_set_enabled", "manager_get_frame_cryptors", "cryptor_set_enabled", "cryptor_set_key_index", "set_shared_key", "ratchet_shared_key", "get_shared_key", "set_key", "ratchet_key", "get_key"] | None: ... - -global___E2eeResponse = E2eeResponse + _HasFieldArgType: _TypeAlias = _typing.Literal["cryptor_set_enabled", b"cryptor_set_enabled", "cryptor_set_key_index", b"cryptor_set_key_index", "get_key", b"get_key", "get_shared_key", b"get_shared_key", "manager_get_frame_cryptors", b"manager_get_frame_cryptors", "manager_set_enabled", b"manager_set_enabled", "message", b"message", "ratchet_key", b"ratchet_key", "ratchet_shared_key", b"ratchet_shared_key", "set_key", b"set_key", "set_shared_key", b"set_shared_key"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["cryptor_set_enabled", b"cryptor_set_enabled", "cryptor_set_key_index", b"cryptor_set_key_index", "get_key", b"get_key", "get_shared_key", b"get_shared_key", "manager_get_frame_cryptors", b"manager_get_frame_cryptors", "manager_set_enabled", b"manager_set_enabled", "message", b"message", "ratchet_key", b"ratchet_key", "ratchet_shared_key", b"ratchet_shared_key", "set_key", b"set_key", "set_shared_key", b"set_shared_key"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["manager_set_enabled", "manager_get_frame_cryptors", "cryptor_set_enabled", "cryptor_set_key_index", "set_shared_key", "ratchet_shared_key", "get_shared_key", "set_key", "ratchet_key", "get_key"] # noqa: Y015 + _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... + +Global___E2eeResponse: _TypeAlias = E2eeResponse # noqa: Y015 diff --git a/livekit-rtc/livekit/rtc/_proto/ffi_pb2.py b/livekit-rtc/livekit/rtc/_proto/ffi_pb2.py index 02c5dd28..3ad7807a 100644 --- a/livekit-rtc/livekit/rtc/_proto/ffi_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/ffi_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: ffi.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 7.34.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 7, + 34, + 1, + '', + 'ffi.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -23,32 +33,32 @@ from . import data_track_pb2 as data__track__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\tffi.proto\x12\rlivekit.proto\x1a\ne2ee.proto\x1a\x0btrack.proto\x1a\x17track_publication.proto\x1a\nroom.proto\x1a\x11video_frame.proto\x1a\x11\x61udio_frame.proto\x1a\trpc.proto\x1a\x11\x64\x61ta_stream.proto\x1a\x10\x64\x61ta_track.proto\"\xa0*\n\nFfiRequest\x12\x30\n\x07\x64ispose\x18\x02 \x01(\x0b\x32\x1d.livekit.proto.DisposeRequestH\x00\x12\x30\n\x07\x63onnect\x18\x03 \x01(\x0b\x32\x1d.livekit.proto.ConnectRequestH\x00\x12\x36\n\ndisconnect\x18\x04 \x01(\x0b\x32 .livekit.proto.DisconnectRequestH\x00\x12;\n\rpublish_track\x18\x05 \x01(\x0b\x32\".livekit.proto.PublishTrackRequestH\x00\x12?\n\x0funpublish_track\x18\x06 \x01(\x0b\x32$.livekit.proto.UnpublishTrackRequestH\x00\x12\x39\n\x0cpublish_data\x18\x07 \x01(\x0b\x32!.livekit.proto.PublishDataRequestH\x00\x12=\n\x0eset_subscribed\x18\x08 \x01(\x0b\x32#.livekit.proto.SetSubscribedRequestH\x00\x12\x44\n\x12set_local_metadata\x18\t \x01(\x0b\x32&.livekit.proto.SetLocalMetadataRequestH\x00\x12<\n\x0eset_local_name\x18\n \x01(\x0b\x32\".livekit.proto.SetLocalNameRequestH\x00\x12H\n\x14set_local_attributes\x18\x0b \x01(\x0b\x32(.livekit.proto.SetLocalAttributesRequestH\x00\x12\x42\n\x11get_session_stats\x18\x0c \x01(\x0b\x32%.livekit.proto.GetSessionStatsRequestH\x00\x12K\n\x15publish_transcription\x18\r \x01(\x0b\x32*.livekit.proto.PublishTranscriptionRequestH\x00\x12@\n\x10publish_sip_dtmf\x18\x0e \x01(\x0b\x32$.livekit.proto.PublishSipDtmfRequestH\x00\x12\x44\n\x12\x63reate_video_track\x18\x0f \x01(\x0b\x32&.livekit.proto.CreateVideoTrackRequestH\x00\x12\x44\n\x12\x63reate_audio_track\x18\x10 \x01(\x0b\x32&.livekit.proto.CreateAudioTrackRequestH\x00\x12@\n\x10local_track_mute\x18\x11 \x01(\x0b\x32$.livekit.proto.LocalTrackMuteRequestH\x00\x12\x46\n\x13\x65nable_remote_track\x18\x12 \x01(\x0b\x32\'.livekit.proto.EnableRemoteTrackRequestH\x00\x12\x33\n\tget_stats\x18\x13 \x01(\x0b\x32\x1e.livekit.proto.GetStatsRequestH\x00\x12\x63\n\"set_track_subscription_permissions\x18\x30 \x01(\x0b\x32\x35.livekit.proto.SetTrackSubscriptionPermissionsRequestH\x00\x12@\n\x10new_video_stream\x18\x14 \x01(\x0b\x32$.livekit.proto.NewVideoStreamRequestH\x00\x12@\n\x10new_video_source\x18\x15 \x01(\x0b\x32$.livekit.proto.NewVideoSourceRequestH\x00\x12\x46\n\x13\x63\x61pture_video_frame\x18\x16 \x01(\x0b\x32\'.livekit.proto.CaptureVideoFrameRequestH\x00\x12;\n\rvideo_convert\x18\x17 \x01(\x0b\x32\".livekit.proto.VideoConvertRequestH\x00\x12Y\n\x1dvideo_stream_from_participant\x18\x18 \x01(\x0b\x32\x30.livekit.proto.VideoStreamFromParticipantRequestH\x00\x12@\n\x10new_audio_stream\x18\x19 \x01(\x0b\x32$.livekit.proto.NewAudioStreamRequestH\x00\x12@\n\x10new_audio_source\x18\x1a \x01(\x0b\x32$.livekit.proto.NewAudioSourceRequestH\x00\x12\x46\n\x13\x63\x61pture_audio_frame\x18\x1b \x01(\x0b\x32\'.livekit.proto.CaptureAudioFrameRequestH\x00\x12\x44\n\x12\x63lear_audio_buffer\x18\x1c \x01(\x0b\x32&.livekit.proto.ClearAudioBufferRequestH\x00\x12\x46\n\x13new_audio_resampler\x18\x1d \x01(\x0b\x32\'.livekit.proto.NewAudioResamplerRequestH\x00\x12\x44\n\x12remix_and_resample\x18\x1e \x01(\x0b\x32&.livekit.proto.RemixAndResampleRequestH\x00\x12*\n\x04\x65\x32\x65\x65\x18\x1f \x01(\x0b\x32\x1a.livekit.proto.E2eeRequestH\x00\x12Y\n\x1d\x61udio_stream_from_participant\x18 \x01(\x0b\x32\x30.livekit.proto.AudioStreamFromParticipantRequestH\x00\x12\x42\n\x11new_sox_resampler\x18! \x01(\x0b\x32%.livekit.proto.NewSoxResamplerRequestH\x00\x12\x44\n\x12push_sox_resampler\x18\" \x01(\x0b\x32&.livekit.proto.PushSoxResamplerRequestH\x00\x12\x46\n\x13\x66lush_sox_resampler\x18# \x01(\x0b\x32\'.livekit.proto.FlushSoxResamplerRequestH\x00\x12\x42\n\x11send_chat_message\x18$ \x01(\x0b\x32%.livekit.proto.SendChatMessageRequestH\x00\x12\x42\n\x11\x65\x64it_chat_message\x18% \x01(\x0b\x32%.livekit.proto.EditChatMessageRequestH\x00\x12\x37\n\x0bperform_rpc\x18& \x01(\x0b\x32 .livekit.proto.PerformRpcRequestH\x00\x12\x46\n\x13register_rpc_method\x18\' \x01(\x0b\x32\'.livekit.proto.RegisterRpcMethodRequestH\x00\x12J\n\x15unregister_rpc_method\x18( \x01(\x0b\x32).livekit.proto.UnregisterRpcMethodRequestH\x00\x12[\n\x1erpc_method_invocation_response\x18) \x01(\x0b\x32\x31.livekit.proto.RpcMethodInvocationResponseRequestH\x00\x12]\n\x1f\x65nable_remote_track_publication\x18* \x01(\x0b\x32\x32.livekit.proto.EnableRemoteTrackPublicationRequestH\x00\x12p\n)update_remote_track_publication_dimension\x18+ \x01(\x0b\x32;.livekit.proto.UpdateRemoteTrackPublicationDimensionRequestH\x00\x12\x44\n\x12send_stream_header\x18, \x01(\x0b\x32&.livekit.proto.SendStreamHeaderRequestH\x00\x12\x42\n\x11send_stream_chunk\x18- \x01(\x0b\x32%.livekit.proto.SendStreamChunkRequestH\x00\x12\x46\n\x13send_stream_trailer\x18. \x01(\x0b\x32\'.livekit.proto.SendStreamTrailerRequestH\x00\x12x\n.set_data_channel_buffered_amount_low_threshold\x18/ \x01(\x0b\x32>.livekit.proto.SetDataChannelBufferedAmountLowThresholdRequestH\x00\x12O\n\x18load_audio_filter_plugin\x18\x31 \x01(\x0b\x32+.livekit.proto.LoadAudioFilterPluginRequestH\x00\x12/\n\x07new_apm\x18\x32 \x01(\x0b\x32\x1c.livekit.proto.NewApmRequestH\x00\x12\x44\n\x12\x61pm_process_stream\x18\x33 \x01(\x0b\x32&.livekit.proto.ApmProcessStreamRequestH\x00\x12S\n\x1a\x61pm_process_reverse_stream\x18\x34 \x01(\x0b\x32-.livekit.proto.ApmProcessReverseStreamRequestH\x00\x12G\n\x14\x61pm_set_stream_delay\x18\x35 \x01(\x0b\x32\'.livekit.proto.ApmSetStreamDelayRequestH\x00\x12V\n\x15\x62yte_read_incremental\x18\x36 \x01(\x0b\x32\x35.livekit.proto.ByteStreamReaderReadIncrementalRequestH\x00\x12\x46\n\rbyte_read_all\x18\x37 \x01(\x0b\x32-.livekit.proto.ByteStreamReaderReadAllRequestH\x00\x12O\n\x12\x62yte_write_to_file\x18\x38 \x01(\x0b\x32\x31.livekit.proto.ByteStreamReaderWriteToFileRequestH\x00\x12V\n\x15text_read_incremental\x18\x39 \x01(\x0b\x32\x35.livekit.proto.TextStreamReaderReadIncrementalRequestH\x00\x12\x46\n\rtext_read_all\x18: \x01(\x0b\x32-.livekit.proto.TextStreamReaderReadAllRequestH\x00\x12\x39\n\tsend_file\x18; \x01(\x0b\x32$.livekit.proto.StreamSendFileRequestH\x00\x12\x39\n\tsend_text\x18< \x01(\x0b\x32$.livekit.proto.StreamSendTextRequestH\x00\x12@\n\x10\x62yte_stream_open\x18= \x01(\x0b\x32$.livekit.proto.ByteStreamOpenRequestH\x00\x12H\n\x11\x62yte_stream_write\x18> \x01(\x0b\x32+.livekit.proto.ByteStreamWriterWriteRequestH\x00\x12H\n\x11\x62yte_stream_close\x18? \x01(\x0b\x32+.livekit.proto.ByteStreamWriterCloseRequestH\x00\x12@\n\x10text_stream_open\x18@ \x01(\x0b\x32$.livekit.proto.TextStreamOpenRequestH\x00\x12H\n\x11text_stream_write\x18\x41 \x01(\x0b\x32+.livekit.proto.TextStreamWriterWriteRequestH\x00\x12H\n\x11text_stream_close\x18\x42 \x01(\x0b\x32+.livekit.proto.TextStreamWriterCloseRequestH\x00\x12;\n\nsend_bytes\x18\x43 \x01(\x0b\x32%.livekit.proto.StreamSendBytesRequestH\x00\x12\x66\n$set_remote_track_publication_quality\x18\x44 \x01(\x0b\x32\x36.livekit.proto.SetRemoteTrackPublicationQualityRequestH\x00\x12\x44\n\x12publish_data_track\x18\x45 \x01(\x0b\x32&.livekit.proto.PublishDataTrackRequestH\x00\x12P\n\x19local_data_track_try_push\x18\x46 \x01(\x0b\x32+.livekit.proto.LocalDataTrackTryPushRequestH\x00\x12S\n\x1alocal_data_track_unpublish\x18G \x01(\x0b\x32-.livekit.proto.LocalDataTrackUnpublishRequestH\x00\x12X\n\x1dlocal_data_track_is_published\x18H \x01(\x0b\x32/.livekit.proto.LocalDataTrackIsPublishedRequestH\x00\x12H\n\x14subscribe_data_track\x18I \x01(\x0b\x32(.livekit.proto.SubscribeDataTrackRequestH\x00\x12Z\n\x1eremote_data_track_is_published\x18J \x01(\x0b\x32\x30.livekit.proto.RemoteDataTrackIsPublishedRequestH\x00\x12K\n\x16\x64\x61ta_track_stream_read\x18K \x01(\x0b\x32).livekit.proto.DataTrackStreamReadRequestH\x00\x42\t\n\x07message\"\xa6*\n\x0b\x46\x66iResponse\x12\x31\n\x07\x64ispose\x18\x02 \x01(\x0b\x32\x1e.livekit.proto.DisposeResponseH\x00\x12\x31\n\x07\x63onnect\x18\x03 \x01(\x0b\x32\x1e.livekit.proto.ConnectResponseH\x00\x12\x37\n\ndisconnect\x18\x04 \x01(\x0b\x32!.livekit.proto.DisconnectResponseH\x00\x12<\n\rpublish_track\x18\x05 \x01(\x0b\x32#.livekit.proto.PublishTrackResponseH\x00\x12@\n\x0funpublish_track\x18\x06 \x01(\x0b\x32%.livekit.proto.UnpublishTrackResponseH\x00\x12:\n\x0cpublish_data\x18\x07 \x01(\x0b\x32\".livekit.proto.PublishDataResponseH\x00\x12>\n\x0eset_subscribed\x18\x08 \x01(\x0b\x32$.livekit.proto.SetSubscribedResponseH\x00\x12\x45\n\x12set_local_metadata\x18\t \x01(\x0b\x32\'.livekit.proto.SetLocalMetadataResponseH\x00\x12=\n\x0eset_local_name\x18\n \x01(\x0b\x32#.livekit.proto.SetLocalNameResponseH\x00\x12I\n\x14set_local_attributes\x18\x0b \x01(\x0b\x32).livekit.proto.SetLocalAttributesResponseH\x00\x12\x43\n\x11get_session_stats\x18\x0c \x01(\x0b\x32&.livekit.proto.GetSessionStatsResponseH\x00\x12L\n\x15publish_transcription\x18\r \x01(\x0b\x32+.livekit.proto.PublishTranscriptionResponseH\x00\x12\x41\n\x10publish_sip_dtmf\x18\x0e \x01(\x0b\x32%.livekit.proto.PublishSipDtmfResponseH\x00\x12\x45\n\x12\x63reate_video_track\x18\x0f \x01(\x0b\x32\'.livekit.proto.CreateVideoTrackResponseH\x00\x12\x45\n\x12\x63reate_audio_track\x18\x10 \x01(\x0b\x32\'.livekit.proto.CreateAudioTrackResponseH\x00\x12\x41\n\x10local_track_mute\x18\x11 \x01(\x0b\x32%.livekit.proto.LocalTrackMuteResponseH\x00\x12G\n\x13\x65nable_remote_track\x18\x12 \x01(\x0b\x32(.livekit.proto.EnableRemoteTrackResponseH\x00\x12\x34\n\tget_stats\x18\x13 \x01(\x0b\x32\x1f.livekit.proto.GetStatsResponseH\x00\x12\x64\n\"set_track_subscription_permissions\x18/ \x01(\x0b\x32\x36.livekit.proto.SetTrackSubscriptionPermissionsResponseH\x00\x12\x41\n\x10new_video_stream\x18\x14 \x01(\x0b\x32%.livekit.proto.NewVideoStreamResponseH\x00\x12\x41\n\x10new_video_source\x18\x15 \x01(\x0b\x32%.livekit.proto.NewVideoSourceResponseH\x00\x12G\n\x13\x63\x61pture_video_frame\x18\x16 \x01(\x0b\x32(.livekit.proto.CaptureVideoFrameResponseH\x00\x12<\n\rvideo_convert\x18\x17 \x01(\x0b\x32#.livekit.proto.VideoConvertResponseH\x00\x12Z\n\x1dvideo_stream_from_participant\x18\x18 \x01(\x0b\x32\x31.livekit.proto.VideoStreamFromParticipantResponseH\x00\x12\x41\n\x10new_audio_stream\x18\x19 \x01(\x0b\x32%.livekit.proto.NewAudioStreamResponseH\x00\x12\x41\n\x10new_audio_source\x18\x1a \x01(\x0b\x32%.livekit.proto.NewAudioSourceResponseH\x00\x12G\n\x13\x63\x61pture_audio_frame\x18\x1b \x01(\x0b\x32(.livekit.proto.CaptureAudioFrameResponseH\x00\x12\x45\n\x12\x63lear_audio_buffer\x18\x1c \x01(\x0b\x32\'.livekit.proto.ClearAudioBufferResponseH\x00\x12G\n\x13new_audio_resampler\x18\x1d \x01(\x0b\x32(.livekit.proto.NewAudioResamplerResponseH\x00\x12\x45\n\x12remix_and_resample\x18\x1e \x01(\x0b\x32\'.livekit.proto.RemixAndResampleResponseH\x00\x12Z\n\x1d\x61udio_stream_from_participant\x18\x1f \x01(\x0b\x32\x31.livekit.proto.AudioStreamFromParticipantResponseH\x00\x12+\n\x04\x65\x32\x65\x65\x18 \x01(\x0b\x32\x1b.livekit.proto.E2eeResponseH\x00\x12\x43\n\x11new_sox_resampler\x18! \x01(\x0b\x32&.livekit.proto.NewSoxResamplerResponseH\x00\x12\x45\n\x12push_sox_resampler\x18\" \x01(\x0b\x32\'.livekit.proto.PushSoxResamplerResponseH\x00\x12G\n\x13\x66lush_sox_resampler\x18# \x01(\x0b\x32(.livekit.proto.FlushSoxResamplerResponseH\x00\x12\x43\n\x11send_chat_message\x18$ \x01(\x0b\x32&.livekit.proto.SendChatMessageResponseH\x00\x12\x38\n\x0bperform_rpc\x18% \x01(\x0b\x32!.livekit.proto.PerformRpcResponseH\x00\x12G\n\x13register_rpc_method\x18& \x01(\x0b\x32(.livekit.proto.RegisterRpcMethodResponseH\x00\x12K\n\x15unregister_rpc_method\x18\' \x01(\x0b\x32*.livekit.proto.UnregisterRpcMethodResponseH\x00\x12\\\n\x1erpc_method_invocation_response\x18( \x01(\x0b\x32\x32.livekit.proto.RpcMethodInvocationResponseResponseH\x00\x12^\n\x1f\x65nable_remote_track_publication\x18) \x01(\x0b\x32\x33.livekit.proto.EnableRemoteTrackPublicationResponseH\x00\x12q\n)update_remote_track_publication_dimension\x18* \x01(\x0b\x32<.livekit.proto.UpdateRemoteTrackPublicationDimensionResponseH\x00\x12\x45\n\x12send_stream_header\x18+ \x01(\x0b\x32\'.livekit.proto.SendStreamHeaderResponseH\x00\x12\x43\n\x11send_stream_chunk\x18, \x01(\x0b\x32&.livekit.proto.SendStreamChunkResponseH\x00\x12G\n\x13send_stream_trailer\x18- \x01(\x0b\x32(.livekit.proto.SendStreamTrailerResponseH\x00\x12y\n.set_data_channel_buffered_amount_low_threshold\x18. \x01(\x0b\x32?.livekit.proto.SetDataChannelBufferedAmountLowThresholdResponseH\x00\x12P\n\x18load_audio_filter_plugin\x18\x30 \x01(\x0b\x32,.livekit.proto.LoadAudioFilterPluginResponseH\x00\x12\x30\n\x07new_apm\x18\x31 \x01(\x0b\x32\x1d.livekit.proto.NewApmResponseH\x00\x12\x45\n\x12\x61pm_process_stream\x18\x32 \x01(\x0b\x32\'.livekit.proto.ApmProcessStreamResponseH\x00\x12T\n\x1a\x61pm_process_reverse_stream\x18\x33 \x01(\x0b\x32..livekit.proto.ApmProcessReverseStreamResponseH\x00\x12H\n\x14\x61pm_set_stream_delay\x18\x34 \x01(\x0b\x32(.livekit.proto.ApmSetStreamDelayResponseH\x00\x12W\n\x15\x62yte_read_incremental\x18\x35 \x01(\x0b\x32\x36.livekit.proto.ByteStreamReaderReadIncrementalResponseH\x00\x12G\n\rbyte_read_all\x18\x36 \x01(\x0b\x32..livekit.proto.ByteStreamReaderReadAllResponseH\x00\x12P\n\x12\x62yte_write_to_file\x18\x37 \x01(\x0b\x32\x32.livekit.proto.ByteStreamReaderWriteToFileResponseH\x00\x12W\n\x15text_read_incremental\x18\x38 \x01(\x0b\x32\x36.livekit.proto.TextStreamReaderReadIncrementalResponseH\x00\x12G\n\rtext_read_all\x18\x39 \x01(\x0b\x32..livekit.proto.TextStreamReaderReadAllResponseH\x00\x12:\n\tsend_file\x18: \x01(\x0b\x32%.livekit.proto.StreamSendFileResponseH\x00\x12:\n\tsend_text\x18; \x01(\x0b\x32%.livekit.proto.StreamSendTextResponseH\x00\x12\x41\n\x10\x62yte_stream_open\x18< \x01(\x0b\x32%.livekit.proto.ByteStreamOpenResponseH\x00\x12I\n\x11\x62yte_stream_write\x18= \x01(\x0b\x32,.livekit.proto.ByteStreamWriterWriteResponseH\x00\x12I\n\x11\x62yte_stream_close\x18> \x01(\x0b\x32,.livekit.proto.ByteStreamWriterCloseResponseH\x00\x12\x41\n\x10text_stream_open\x18? \x01(\x0b\x32%.livekit.proto.TextStreamOpenResponseH\x00\x12I\n\x11text_stream_write\x18@ \x01(\x0b\x32,.livekit.proto.TextStreamWriterWriteResponseH\x00\x12I\n\x11text_stream_close\x18\x41 \x01(\x0b\x32,.livekit.proto.TextStreamWriterCloseResponseH\x00\x12<\n\nsend_bytes\x18\x42 \x01(\x0b\x32&.livekit.proto.StreamSendBytesResponseH\x00\x12g\n$set_remote_track_publication_quality\x18\x43 \x01(\x0b\x32\x37.livekit.proto.SetRemoteTrackPublicationQualityResponseH\x00\x12\x45\n\x12publish_data_track\x18\x44 \x01(\x0b\x32\'.livekit.proto.PublishDataTrackResponseH\x00\x12Q\n\x19local_data_track_try_push\x18\x45 \x01(\x0b\x32,.livekit.proto.LocalDataTrackTryPushResponseH\x00\x12T\n\x1alocal_data_track_unpublish\x18\x46 \x01(\x0b\x32..livekit.proto.LocalDataTrackUnpublishResponseH\x00\x12Y\n\x1dlocal_data_track_is_published\x18G \x01(\x0b\x32\x30.livekit.proto.LocalDataTrackIsPublishedResponseH\x00\x12I\n\x14subscribe_data_track\x18H \x01(\x0b\x32).livekit.proto.SubscribeDataTrackResponseH\x00\x12[\n\x1eremote_data_track_is_published\x18I \x01(\x0b\x32\x31.livekit.proto.RemoteDataTrackIsPublishedResponseH\x00\x12L\n\x16\x64\x61ta_track_stream_read\x18J \x01(\x0b\x32*.livekit.proto.DataTrackStreamReadResponseH\x00\x42\t\n\x07message\"\x94\x16\n\x08\x46\x66iEvent\x12.\n\nroom_event\x18\x01 \x01(\x0b\x32\x18.livekit.proto.RoomEventH\x00\x12\x30\n\x0btrack_event\x18\x02 \x01(\x0b\x32\x19.livekit.proto.TrackEventH\x00\x12=\n\x12video_stream_event\x18\x03 \x01(\x0b\x32\x1f.livekit.proto.VideoStreamEventH\x00\x12=\n\x12\x61udio_stream_event\x18\x04 \x01(\x0b\x32\x1f.livekit.proto.AudioStreamEventH\x00\x12\x31\n\x07\x63onnect\x18\x05 \x01(\x0b\x32\x1e.livekit.proto.ConnectCallbackH\x00\x12\x37\n\ndisconnect\x18\x07 \x01(\x0b\x32!.livekit.proto.DisconnectCallbackH\x00\x12\x31\n\x07\x64ispose\x18\x08 \x01(\x0b\x32\x1e.livekit.proto.DisposeCallbackH\x00\x12<\n\rpublish_track\x18\t \x01(\x0b\x32#.livekit.proto.PublishTrackCallbackH\x00\x12@\n\x0funpublish_track\x18\n \x01(\x0b\x32%.livekit.proto.UnpublishTrackCallbackH\x00\x12:\n\x0cpublish_data\x18\x0b \x01(\x0b\x32\".livekit.proto.PublishDataCallbackH\x00\x12L\n\x15publish_transcription\x18\x0c \x01(\x0b\x32+.livekit.proto.PublishTranscriptionCallbackH\x00\x12G\n\x13\x63\x61pture_audio_frame\x18\r \x01(\x0b\x32(.livekit.proto.CaptureAudioFrameCallbackH\x00\x12\x45\n\x12set_local_metadata\x18\x0e \x01(\x0b\x32\'.livekit.proto.SetLocalMetadataCallbackH\x00\x12=\n\x0eset_local_name\x18\x0f \x01(\x0b\x32#.livekit.proto.SetLocalNameCallbackH\x00\x12I\n\x14set_local_attributes\x18\x10 \x01(\x0b\x32).livekit.proto.SetLocalAttributesCallbackH\x00\x12\x34\n\tget_stats\x18\x11 \x01(\x0b\x32\x1f.livekit.proto.GetStatsCallbackH\x00\x12\'\n\x04logs\x18\x12 \x01(\x0b\x32\x17.livekit.proto.LogBatchH\x00\x12\x43\n\x11get_session_stats\x18\x13 \x01(\x0b\x32&.livekit.proto.GetSessionStatsCallbackH\x00\x12%\n\x05panic\x18\x14 \x01(\x0b\x32\x14.livekit.proto.PanicH\x00\x12\x41\n\x10publish_sip_dtmf\x18\x15 \x01(\x0b\x32%.livekit.proto.PublishSipDtmfCallbackH\x00\x12>\n\x0c\x63hat_message\x18\x16 \x01(\x0b\x32&.livekit.proto.SendChatMessageCallbackH\x00\x12\x38\n\x0bperform_rpc\x18\x17 \x01(\x0b\x32!.livekit.proto.PerformRpcCallbackH\x00\x12H\n\x15rpc_method_invocation\x18\x18 \x01(\x0b\x32\'.livekit.proto.RpcMethodInvocationEventH\x00\x12\x45\n\x12send_stream_header\x18\x19 \x01(\x0b\x32\'.livekit.proto.SendStreamHeaderCallbackH\x00\x12\x43\n\x11send_stream_chunk\x18\x1a \x01(\x0b\x32&.livekit.proto.SendStreamChunkCallbackH\x00\x12G\n\x13send_stream_trailer\x18\x1b \x01(\x0b\x32(.livekit.proto.SendStreamTrailerCallbackH\x00\x12H\n\x18\x62yte_stream_reader_event\x18\x1c \x01(\x0b\x32$.livekit.proto.ByteStreamReaderEventH\x00\x12U\n\x1b\x62yte_stream_reader_read_all\x18\x1d \x01(\x0b\x32..livekit.proto.ByteStreamReaderReadAllCallbackH\x00\x12^\n byte_stream_reader_write_to_file\x18\x1e \x01(\x0b\x32\x32.livekit.proto.ByteStreamReaderWriteToFileCallbackH\x00\x12\x41\n\x10\x62yte_stream_open\x18\x1f \x01(\x0b\x32%.livekit.proto.ByteStreamOpenCallbackH\x00\x12P\n\x18\x62yte_stream_writer_write\x18 \x01(\x0b\x32,.livekit.proto.ByteStreamWriterWriteCallbackH\x00\x12P\n\x18\x62yte_stream_writer_close\x18! \x01(\x0b\x32,.livekit.proto.ByteStreamWriterCloseCallbackH\x00\x12:\n\tsend_file\x18\" \x01(\x0b\x32%.livekit.proto.StreamSendFileCallbackH\x00\x12H\n\x18text_stream_reader_event\x18# \x01(\x0b\x32$.livekit.proto.TextStreamReaderEventH\x00\x12U\n\x1btext_stream_reader_read_all\x18$ \x01(\x0b\x32..livekit.proto.TextStreamReaderReadAllCallbackH\x00\x12\x41\n\x10text_stream_open\x18% \x01(\x0b\x32%.livekit.proto.TextStreamOpenCallbackH\x00\x12P\n\x18text_stream_writer_write\x18& \x01(\x0b\x32,.livekit.proto.TextStreamWriterWriteCallbackH\x00\x12P\n\x18text_stream_writer_close\x18\' \x01(\x0b\x32,.livekit.proto.TextStreamWriterCloseCallbackH\x00\x12:\n\tsend_text\x18( \x01(\x0b\x32%.livekit.proto.StreamSendTextCallbackH\x00\x12<\n\nsend_bytes\x18) \x01(\x0b\x32&.livekit.proto.StreamSendBytesCallbackH\x00\x12\x45\n\x12publish_data_track\x18* \x01(\x0b\x32\'.livekit.proto.PublishDataTrackCallbackH\x00\x12\x46\n\x17\x64\x61ta_track_stream_event\x18+ \x01(\x0b\x32#.livekit.proto.DataTrackStreamEventH\x00\x42\t\n\x07message\"\x1f\n\x0e\x44isposeRequest\x12\r\n\x05\x61sync\x18\x01 \x02(\x08\"#\n\x0f\x44isposeResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"#\n\x0f\x44isposeCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\x85\x01\n\tLogRecord\x12&\n\x05level\x18\x01 \x02(\x0e\x32\x17.livekit.proto.LogLevel\x12\x0e\n\x06target\x18\x02 \x02(\t\x12\x13\n\x0bmodule_path\x18\x03 \x01(\t\x12\x0c\n\x04\x66ile\x18\x04 \x01(\t\x12\x0c\n\x04line\x18\x05 \x01(\r\x12\x0f\n\x07message\x18\x06 \x02(\t\"5\n\x08LogBatch\x12)\n\x07records\x18\x01 \x03(\x0b\x32\x18.livekit.proto.LogRecord\"\x18\n\x05Panic\x12\x0f\n\x07message\x18\x01 \x02(\t*S\n\x08LogLevel\x12\r\n\tLOG_ERROR\x10\x00\x12\x0c\n\x08LOG_WARN\x10\x01\x12\x0c\n\x08LOG_INFO\x10\x02\x12\r\n\tLOG_DEBUG\x10\x03\x12\r\n\tLOG_TRACE\x10\x04\x42\x10\xaa\x02\rLiveKit.Proto') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\tffi.proto\x12\rlivekit.proto\x1a\ne2ee.proto\x1a\x0btrack.proto\x1a\x17track_publication.proto\x1a\nroom.proto\x1a\x11video_frame.proto\x1a\x11\x61udio_frame.proto\x1a\trpc.proto\x1a\x11\x64\x61ta_stream.proto\x1a\x10\x64\x61ta_track.proto\"\xe5*\n\nFfiRequest\x12\x30\n\x07\x64ispose\x18\x02 \x01(\x0b\x32\x1d.livekit.proto.DisposeRequestH\x00\x12\x30\n\x07\x63onnect\x18\x03 \x01(\x0b\x32\x1d.livekit.proto.ConnectRequestH\x00\x12\x36\n\ndisconnect\x18\x04 \x01(\x0b\x32 .livekit.proto.DisconnectRequestH\x00\x12;\n\rpublish_track\x18\x05 \x01(\x0b\x32\".livekit.proto.PublishTrackRequestH\x00\x12?\n\x0funpublish_track\x18\x06 \x01(\x0b\x32$.livekit.proto.UnpublishTrackRequestH\x00\x12\x39\n\x0cpublish_data\x18\x07 \x01(\x0b\x32!.livekit.proto.PublishDataRequestH\x00\x12=\n\x0eset_subscribed\x18\x08 \x01(\x0b\x32#.livekit.proto.SetSubscribedRequestH\x00\x12\x44\n\x12set_local_metadata\x18\t \x01(\x0b\x32&.livekit.proto.SetLocalMetadataRequestH\x00\x12<\n\x0eset_local_name\x18\n \x01(\x0b\x32\".livekit.proto.SetLocalNameRequestH\x00\x12H\n\x14set_local_attributes\x18\x0b \x01(\x0b\x32(.livekit.proto.SetLocalAttributesRequestH\x00\x12\x42\n\x11get_session_stats\x18\x0c \x01(\x0b\x32%.livekit.proto.GetSessionStatsRequestH\x00\x12K\n\x15publish_transcription\x18\r \x01(\x0b\x32*.livekit.proto.PublishTranscriptionRequestH\x00\x12@\n\x10publish_sip_dtmf\x18\x0e \x01(\x0b\x32$.livekit.proto.PublishSipDtmfRequestH\x00\x12\x44\n\x12\x63reate_video_track\x18\x0f \x01(\x0b\x32&.livekit.proto.CreateVideoTrackRequestH\x00\x12\x44\n\x12\x63reate_audio_track\x18\x10 \x01(\x0b\x32&.livekit.proto.CreateAudioTrackRequestH\x00\x12@\n\x10local_track_mute\x18\x11 \x01(\x0b\x32$.livekit.proto.LocalTrackMuteRequestH\x00\x12\x46\n\x13\x65nable_remote_track\x18\x12 \x01(\x0b\x32\'.livekit.proto.EnableRemoteTrackRequestH\x00\x12\x33\n\tget_stats\x18\x13 \x01(\x0b\x32\x1e.livekit.proto.GetStatsRequestH\x00\x12\x63\n\"set_track_subscription_permissions\x18\x30 \x01(\x0b\x32\x35.livekit.proto.SetTrackSubscriptionPermissionsRequestH\x00\x12@\n\x10new_video_stream\x18\x14 \x01(\x0b\x32$.livekit.proto.NewVideoStreamRequestH\x00\x12@\n\x10new_video_source\x18\x15 \x01(\x0b\x32$.livekit.proto.NewVideoSourceRequestH\x00\x12\x46\n\x13\x63\x61pture_video_frame\x18\x16 \x01(\x0b\x32\'.livekit.proto.CaptureVideoFrameRequestH\x00\x12;\n\rvideo_convert\x18\x17 \x01(\x0b\x32\".livekit.proto.VideoConvertRequestH\x00\x12Y\n\x1dvideo_stream_from_participant\x18\x18 \x01(\x0b\x32\x30.livekit.proto.VideoStreamFromParticipantRequestH\x00\x12@\n\x10new_audio_stream\x18\x19 \x01(\x0b\x32$.livekit.proto.NewAudioStreamRequestH\x00\x12@\n\x10new_audio_source\x18\x1a \x01(\x0b\x32$.livekit.proto.NewAudioSourceRequestH\x00\x12\x46\n\x13\x63\x61pture_audio_frame\x18\x1b \x01(\x0b\x32\'.livekit.proto.CaptureAudioFrameRequestH\x00\x12\x44\n\x12\x63lear_audio_buffer\x18\x1c \x01(\x0b\x32&.livekit.proto.ClearAudioBufferRequestH\x00\x12\x46\n\x13new_audio_resampler\x18\x1d \x01(\x0b\x32\'.livekit.proto.NewAudioResamplerRequestH\x00\x12\x44\n\x12remix_and_resample\x18\x1e \x01(\x0b\x32&.livekit.proto.RemixAndResampleRequestH\x00\x12*\n\x04\x65\x32\x65\x65\x18\x1f \x01(\x0b\x32\x1a.livekit.proto.E2eeRequestH\x00\x12Y\n\x1d\x61udio_stream_from_participant\x18 \x01(\x0b\x32\x30.livekit.proto.AudioStreamFromParticipantRequestH\x00\x12\x42\n\x11new_sox_resampler\x18! \x01(\x0b\x32%.livekit.proto.NewSoxResamplerRequestH\x00\x12\x44\n\x12push_sox_resampler\x18\" \x01(\x0b\x32&.livekit.proto.PushSoxResamplerRequestH\x00\x12\x46\n\x13\x66lush_sox_resampler\x18# \x01(\x0b\x32\'.livekit.proto.FlushSoxResamplerRequestH\x00\x12\x42\n\x11send_chat_message\x18$ \x01(\x0b\x32%.livekit.proto.SendChatMessageRequestH\x00\x12\x42\n\x11\x65\x64it_chat_message\x18% \x01(\x0b\x32%.livekit.proto.EditChatMessageRequestH\x00\x12\x37\n\x0bperform_rpc\x18& \x01(\x0b\x32 .livekit.proto.PerformRpcRequestH\x00\x12\x46\n\x13register_rpc_method\x18\' \x01(\x0b\x32\'.livekit.proto.RegisterRpcMethodRequestH\x00\x12J\n\x15unregister_rpc_method\x18( \x01(\x0b\x32).livekit.proto.UnregisterRpcMethodRequestH\x00\x12[\n\x1erpc_method_invocation_response\x18) \x01(\x0b\x32\x31.livekit.proto.RpcMethodInvocationResponseRequestH\x00\x12]\n\x1f\x65nable_remote_track_publication\x18* \x01(\x0b\x32\x32.livekit.proto.EnableRemoteTrackPublicationRequestH\x00\x12p\n)update_remote_track_publication_dimension\x18+ \x01(\x0b\x32;.livekit.proto.UpdateRemoteTrackPublicationDimensionRequestH\x00\x12\x44\n\x12send_stream_header\x18, \x01(\x0b\x32&.livekit.proto.SendStreamHeaderRequestH\x00\x12\x42\n\x11send_stream_chunk\x18- \x01(\x0b\x32%.livekit.proto.SendStreamChunkRequestH\x00\x12\x46\n\x13send_stream_trailer\x18. \x01(\x0b\x32\'.livekit.proto.SendStreamTrailerRequestH\x00\x12x\n.set_data_channel_buffered_amount_low_threshold\x18/ \x01(\x0b\x32>.livekit.proto.SetDataChannelBufferedAmountLowThresholdRequestH\x00\x12O\n\x18load_audio_filter_plugin\x18\x31 \x01(\x0b\x32+.livekit.proto.LoadAudioFilterPluginRequestH\x00\x12/\n\x07new_apm\x18\x32 \x01(\x0b\x32\x1c.livekit.proto.NewApmRequestH\x00\x12\x44\n\x12\x61pm_process_stream\x18\x33 \x01(\x0b\x32&.livekit.proto.ApmProcessStreamRequestH\x00\x12S\n\x1a\x61pm_process_reverse_stream\x18\x34 \x01(\x0b\x32-.livekit.proto.ApmProcessReverseStreamRequestH\x00\x12G\n\x14\x61pm_set_stream_delay\x18\x35 \x01(\x0b\x32\'.livekit.proto.ApmSetStreamDelayRequestH\x00\x12V\n\x15\x62yte_read_incremental\x18\x36 \x01(\x0b\x32\x35.livekit.proto.ByteStreamReaderReadIncrementalRequestH\x00\x12\x46\n\rbyte_read_all\x18\x37 \x01(\x0b\x32-.livekit.proto.ByteStreamReaderReadAllRequestH\x00\x12O\n\x12\x62yte_write_to_file\x18\x38 \x01(\x0b\x32\x31.livekit.proto.ByteStreamReaderWriteToFileRequestH\x00\x12V\n\x15text_read_incremental\x18\x39 \x01(\x0b\x32\x35.livekit.proto.TextStreamReaderReadIncrementalRequestH\x00\x12\x46\n\rtext_read_all\x18: \x01(\x0b\x32-.livekit.proto.TextStreamReaderReadAllRequestH\x00\x12\x39\n\tsend_file\x18; \x01(\x0b\x32$.livekit.proto.StreamSendFileRequestH\x00\x12\x39\n\tsend_text\x18< \x01(\x0b\x32$.livekit.proto.StreamSendTextRequestH\x00\x12@\n\x10\x62yte_stream_open\x18= \x01(\x0b\x32$.livekit.proto.ByteStreamOpenRequestH\x00\x12H\n\x11\x62yte_stream_write\x18> \x01(\x0b\x32+.livekit.proto.ByteStreamWriterWriteRequestH\x00\x12H\n\x11\x62yte_stream_close\x18? \x01(\x0b\x32+.livekit.proto.ByteStreamWriterCloseRequestH\x00\x12@\n\x10text_stream_open\x18@ \x01(\x0b\x32$.livekit.proto.TextStreamOpenRequestH\x00\x12H\n\x11text_stream_write\x18\x41 \x01(\x0b\x32+.livekit.proto.TextStreamWriterWriteRequestH\x00\x12H\n\x11text_stream_close\x18\x42 \x01(\x0b\x32+.livekit.proto.TextStreamWriterCloseRequestH\x00\x12;\n\nsend_bytes\x18\x43 \x01(\x0b\x32%.livekit.proto.StreamSendBytesRequestH\x00\x12\x66\n$set_remote_track_publication_quality\x18\x44 \x01(\x0b\x32\x36.livekit.proto.SetRemoteTrackPublicationQualityRequestH\x00\x12\x44\n\x12publish_data_track\x18\x45 \x01(\x0b\x32&.livekit.proto.PublishDataTrackRequestH\x00\x12P\n\x19local_data_track_try_push\x18\x46 \x01(\x0b\x32+.livekit.proto.LocalDataTrackTryPushRequestH\x00\x12S\n\x1alocal_data_track_unpublish\x18G \x01(\x0b\x32-.livekit.proto.LocalDataTrackUnpublishRequestH\x00\x12X\n\x1dlocal_data_track_is_published\x18H \x01(\x0b\x32/.livekit.proto.LocalDataTrackIsPublishedRequestH\x00\x12H\n\x14subscribe_data_track\x18I \x01(\x0b\x32(.livekit.proto.SubscribeDataTrackRequestH\x00\x12Z\n\x1eremote_data_track_is_published\x18J \x01(\x0b\x32\x30.livekit.proto.RemoteDataTrackIsPublishedRequestH\x00\x12K\n\x16\x64\x61ta_track_stream_read\x18K \x01(\x0b\x32).livekit.proto.DataTrackStreamReadRequestH\x00\x12\x43\n\x11simulate_scenario\x18L \x01(\x0b\x32&.livekit.proto.SimulateScenarioRequestH\x00\x42\t\n\x07message\"\xec*\n\x0b\x46\x66iResponse\x12\x31\n\x07\x64ispose\x18\x02 \x01(\x0b\x32\x1e.livekit.proto.DisposeResponseH\x00\x12\x31\n\x07\x63onnect\x18\x03 \x01(\x0b\x32\x1e.livekit.proto.ConnectResponseH\x00\x12\x37\n\ndisconnect\x18\x04 \x01(\x0b\x32!.livekit.proto.DisconnectResponseH\x00\x12<\n\rpublish_track\x18\x05 \x01(\x0b\x32#.livekit.proto.PublishTrackResponseH\x00\x12@\n\x0funpublish_track\x18\x06 \x01(\x0b\x32%.livekit.proto.UnpublishTrackResponseH\x00\x12:\n\x0cpublish_data\x18\x07 \x01(\x0b\x32\".livekit.proto.PublishDataResponseH\x00\x12>\n\x0eset_subscribed\x18\x08 \x01(\x0b\x32$.livekit.proto.SetSubscribedResponseH\x00\x12\x45\n\x12set_local_metadata\x18\t \x01(\x0b\x32\'.livekit.proto.SetLocalMetadataResponseH\x00\x12=\n\x0eset_local_name\x18\n \x01(\x0b\x32#.livekit.proto.SetLocalNameResponseH\x00\x12I\n\x14set_local_attributes\x18\x0b \x01(\x0b\x32).livekit.proto.SetLocalAttributesResponseH\x00\x12\x43\n\x11get_session_stats\x18\x0c \x01(\x0b\x32&.livekit.proto.GetSessionStatsResponseH\x00\x12L\n\x15publish_transcription\x18\r \x01(\x0b\x32+.livekit.proto.PublishTranscriptionResponseH\x00\x12\x41\n\x10publish_sip_dtmf\x18\x0e \x01(\x0b\x32%.livekit.proto.PublishSipDtmfResponseH\x00\x12\x45\n\x12\x63reate_video_track\x18\x0f \x01(\x0b\x32\'.livekit.proto.CreateVideoTrackResponseH\x00\x12\x45\n\x12\x63reate_audio_track\x18\x10 \x01(\x0b\x32\'.livekit.proto.CreateAudioTrackResponseH\x00\x12\x41\n\x10local_track_mute\x18\x11 \x01(\x0b\x32%.livekit.proto.LocalTrackMuteResponseH\x00\x12G\n\x13\x65nable_remote_track\x18\x12 \x01(\x0b\x32(.livekit.proto.EnableRemoteTrackResponseH\x00\x12\x34\n\tget_stats\x18\x13 \x01(\x0b\x32\x1f.livekit.proto.GetStatsResponseH\x00\x12\x64\n\"set_track_subscription_permissions\x18/ \x01(\x0b\x32\x36.livekit.proto.SetTrackSubscriptionPermissionsResponseH\x00\x12\x41\n\x10new_video_stream\x18\x14 \x01(\x0b\x32%.livekit.proto.NewVideoStreamResponseH\x00\x12\x41\n\x10new_video_source\x18\x15 \x01(\x0b\x32%.livekit.proto.NewVideoSourceResponseH\x00\x12G\n\x13\x63\x61pture_video_frame\x18\x16 \x01(\x0b\x32(.livekit.proto.CaptureVideoFrameResponseH\x00\x12<\n\rvideo_convert\x18\x17 \x01(\x0b\x32#.livekit.proto.VideoConvertResponseH\x00\x12Z\n\x1dvideo_stream_from_participant\x18\x18 \x01(\x0b\x32\x31.livekit.proto.VideoStreamFromParticipantResponseH\x00\x12\x41\n\x10new_audio_stream\x18\x19 \x01(\x0b\x32%.livekit.proto.NewAudioStreamResponseH\x00\x12\x41\n\x10new_audio_source\x18\x1a \x01(\x0b\x32%.livekit.proto.NewAudioSourceResponseH\x00\x12G\n\x13\x63\x61pture_audio_frame\x18\x1b \x01(\x0b\x32(.livekit.proto.CaptureAudioFrameResponseH\x00\x12\x45\n\x12\x63lear_audio_buffer\x18\x1c \x01(\x0b\x32\'.livekit.proto.ClearAudioBufferResponseH\x00\x12G\n\x13new_audio_resampler\x18\x1d \x01(\x0b\x32(.livekit.proto.NewAudioResamplerResponseH\x00\x12\x45\n\x12remix_and_resample\x18\x1e \x01(\x0b\x32\'.livekit.proto.RemixAndResampleResponseH\x00\x12Z\n\x1d\x61udio_stream_from_participant\x18\x1f \x01(\x0b\x32\x31.livekit.proto.AudioStreamFromParticipantResponseH\x00\x12+\n\x04\x65\x32\x65\x65\x18 \x01(\x0b\x32\x1b.livekit.proto.E2eeResponseH\x00\x12\x43\n\x11new_sox_resampler\x18! \x01(\x0b\x32&.livekit.proto.NewSoxResamplerResponseH\x00\x12\x45\n\x12push_sox_resampler\x18\" \x01(\x0b\x32\'.livekit.proto.PushSoxResamplerResponseH\x00\x12G\n\x13\x66lush_sox_resampler\x18# \x01(\x0b\x32(.livekit.proto.FlushSoxResamplerResponseH\x00\x12\x43\n\x11send_chat_message\x18$ \x01(\x0b\x32&.livekit.proto.SendChatMessageResponseH\x00\x12\x38\n\x0bperform_rpc\x18% \x01(\x0b\x32!.livekit.proto.PerformRpcResponseH\x00\x12G\n\x13register_rpc_method\x18& \x01(\x0b\x32(.livekit.proto.RegisterRpcMethodResponseH\x00\x12K\n\x15unregister_rpc_method\x18\' \x01(\x0b\x32*.livekit.proto.UnregisterRpcMethodResponseH\x00\x12\\\n\x1erpc_method_invocation_response\x18( \x01(\x0b\x32\x32.livekit.proto.RpcMethodInvocationResponseResponseH\x00\x12^\n\x1f\x65nable_remote_track_publication\x18) \x01(\x0b\x32\x33.livekit.proto.EnableRemoteTrackPublicationResponseH\x00\x12q\n)update_remote_track_publication_dimension\x18* \x01(\x0b\x32<.livekit.proto.UpdateRemoteTrackPublicationDimensionResponseH\x00\x12\x45\n\x12send_stream_header\x18+ \x01(\x0b\x32\'.livekit.proto.SendStreamHeaderResponseH\x00\x12\x43\n\x11send_stream_chunk\x18, \x01(\x0b\x32&.livekit.proto.SendStreamChunkResponseH\x00\x12G\n\x13send_stream_trailer\x18- \x01(\x0b\x32(.livekit.proto.SendStreamTrailerResponseH\x00\x12y\n.set_data_channel_buffered_amount_low_threshold\x18. \x01(\x0b\x32?.livekit.proto.SetDataChannelBufferedAmountLowThresholdResponseH\x00\x12P\n\x18load_audio_filter_plugin\x18\x30 \x01(\x0b\x32,.livekit.proto.LoadAudioFilterPluginResponseH\x00\x12\x30\n\x07new_apm\x18\x31 \x01(\x0b\x32\x1d.livekit.proto.NewApmResponseH\x00\x12\x45\n\x12\x61pm_process_stream\x18\x32 \x01(\x0b\x32\'.livekit.proto.ApmProcessStreamResponseH\x00\x12T\n\x1a\x61pm_process_reverse_stream\x18\x33 \x01(\x0b\x32..livekit.proto.ApmProcessReverseStreamResponseH\x00\x12H\n\x14\x61pm_set_stream_delay\x18\x34 \x01(\x0b\x32(.livekit.proto.ApmSetStreamDelayResponseH\x00\x12W\n\x15\x62yte_read_incremental\x18\x35 \x01(\x0b\x32\x36.livekit.proto.ByteStreamReaderReadIncrementalResponseH\x00\x12G\n\rbyte_read_all\x18\x36 \x01(\x0b\x32..livekit.proto.ByteStreamReaderReadAllResponseH\x00\x12P\n\x12\x62yte_write_to_file\x18\x37 \x01(\x0b\x32\x32.livekit.proto.ByteStreamReaderWriteToFileResponseH\x00\x12W\n\x15text_read_incremental\x18\x38 \x01(\x0b\x32\x36.livekit.proto.TextStreamReaderReadIncrementalResponseH\x00\x12G\n\rtext_read_all\x18\x39 \x01(\x0b\x32..livekit.proto.TextStreamReaderReadAllResponseH\x00\x12:\n\tsend_file\x18: \x01(\x0b\x32%.livekit.proto.StreamSendFileResponseH\x00\x12:\n\tsend_text\x18; \x01(\x0b\x32%.livekit.proto.StreamSendTextResponseH\x00\x12\x41\n\x10\x62yte_stream_open\x18< \x01(\x0b\x32%.livekit.proto.ByteStreamOpenResponseH\x00\x12I\n\x11\x62yte_stream_write\x18= \x01(\x0b\x32,.livekit.proto.ByteStreamWriterWriteResponseH\x00\x12I\n\x11\x62yte_stream_close\x18> \x01(\x0b\x32,.livekit.proto.ByteStreamWriterCloseResponseH\x00\x12\x41\n\x10text_stream_open\x18? \x01(\x0b\x32%.livekit.proto.TextStreamOpenResponseH\x00\x12I\n\x11text_stream_write\x18@ \x01(\x0b\x32,.livekit.proto.TextStreamWriterWriteResponseH\x00\x12I\n\x11text_stream_close\x18\x41 \x01(\x0b\x32,.livekit.proto.TextStreamWriterCloseResponseH\x00\x12<\n\nsend_bytes\x18\x42 \x01(\x0b\x32&.livekit.proto.StreamSendBytesResponseH\x00\x12g\n$set_remote_track_publication_quality\x18\x43 \x01(\x0b\x32\x37.livekit.proto.SetRemoteTrackPublicationQualityResponseH\x00\x12\x45\n\x12publish_data_track\x18\x44 \x01(\x0b\x32\'.livekit.proto.PublishDataTrackResponseH\x00\x12Q\n\x19local_data_track_try_push\x18\x45 \x01(\x0b\x32,.livekit.proto.LocalDataTrackTryPushResponseH\x00\x12T\n\x1alocal_data_track_unpublish\x18\x46 \x01(\x0b\x32..livekit.proto.LocalDataTrackUnpublishResponseH\x00\x12Y\n\x1dlocal_data_track_is_published\x18G \x01(\x0b\x32\x30.livekit.proto.LocalDataTrackIsPublishedResponseH\x00\x12I\n\x14subscribe_data_track\x18H \x01(\x0b\x32).livekit.proto.SubscribeDataTrackResponseH\x00\x12[\n\x1eremote_data_track_is_published\x18I \x01(\x0b\x32\x31.livekit.proto.RemoteDataTrackIsPublishedResponseH\x00\x12L\n\x16\x64\x61ta_track_stream_read\x18J \x01(\x0b\x32*.livekit.proto.DataTrackStreamReadResponseH\x00\x12\x44\n\x11simulate_scenario\x18K \x01(\x0b\x32\'.livekit.proto.SimulateScenarioResponseH\x00\x42\t\n\x07message\"\xda\x16\n\x08\x46\x66iEvent\x12.\n\nroom_event\x18\x01 \x01(\x0b\x32\x18.livekit.proto.RoomEventH\x00\x12\x30\n\x0btrack_event\x18\x02 \x01(\x0b\x32\x19.livekit.proto.TrackEventH\x00\x12=\n\x12video_stream_event\x18\x03 \x01(\x0b\x32\x1f.livekit.proto.VideoStreamEventH\x00\x12=\n\x12\x61udio_stream_event\x18\x04 \x01(\x0b\x32\x1f.livekit.proto.AudioStreamEventH\x00\x12\x31\n\x07\x63onnect\x18\x05 \x01(\x0b\x32\x1e.livekit.proto.ConnectCallbackH\x00\x12\x37\n\ndisconnect\x18\x07 \x01(\x0b\x32!.livekit.proto.DisconnectCallbackH\x00\x12\x31\n\x07\x64ispose\x18\x08 \x01(\x0b\x32\x1e.livekit.proto.DisposeCallbackH\x00\x12<\n\rpublish_track\x18\t \x01(\x0b\x32#.livekit.proto.PublishTrackCallbackH\x00\x12@\n\x0funpublish_track\x18\n \x01(\x0b\x32%.livekit.proto.UnpublishTrackCallbackH\x00\x12:\n\x0cpublish_data\x18\x0b \x01(\x0b\x32\".livekit.proto.PublishDataCallbackH\x00\x12L\n\x15publish_transcription\x18\x0c \x01(\x0b\x32+.livekit.proto.PublishTranscriptionCallbackH\x00\x12G\n\x13\x63\x61pture_audio_frame\x18\r \x01(\x0b\x32(.livekit.proto.CaptureAudioFrameCallbackH\x00\x12\x45\n\x12set_local_metadata\x18\x0e \x01(\x0b\x32\'.livekit.proto.SetLocalMetadataCallbackH\x00\x12=\n\x0eset_local_name\x18\x0f \x01(\x0b\x32#.livekit.proto.SetLocalNameCallbackH\x00\x12I\n\x14set_local_attributes\x18\x10 \x01(\x0b\x32).livekit.proto.SetLocalAttributesCallbackH\x00\x12\x34\n\tget_stats\x18\x11 \x01(\x0b\x32\x1f.livekit.proto.GetStatsCallbackH\x00\x12\'\n\x04logs\x18\x12 \x01(\x0b\x32\x17.livekit.proto.LogBatchH\x00\x12\x43\n\x11get_session_stats\x18\x13 \x01(\x0b\x32&.livekit.proto.GetSessionStatsCallbackH\x00\x12%\n\x05panic\x18\x14 \x01(\x0b\x32\x14.livekit.proto.PanicH\x00\x12\x41\n\x10publish_sip_dtmf\x18\x15 \x01(\x0b\x32%.livekit.proto.PublishSipDtmfCallbackH\x00\x12>\n\x0c\x63hat_message\x18\x16 \x01(\x0b\x32&.livekit.proto.SendChatMessageCallbackH\x00\x12\x38\n\x0bperform_rpc\x18\x17 \x01(\x0b\x32!.livekit.proto.PerformRpcCallbackH\x00\x12H\n\x15rpc_method_invocation\x18\x18 \x01(\x0b\x32\'.livekit.proto.RpcMethodInvocationEventH\x00\x12\x45\n\x12send_stream_header\x18\x19 \x01(\x0b\x32\'.livekit.proto.SendStreamHeaderCallbackH\x00\x12\x43\n\x11send_stream_chunk\x18\x1a \x01(\x0b\x32&.livekit.proto.SendStreamChunkCallbackH\x00\x12G\n\x13send_stream_trailer\x18\x1b \x01(\x0b\x32(.livekit.proto.SendStreamTrailerCallbackH\x00\x12H\n\x18\x62yte_stream_reader_event\x18\x1c \x01(\x0b\x32$.livekit.proto.ByteStreamReaderEventH\x00\x12U\n\x1b\x62yte_stream_reader_read_all\x18\x1d \x01(\x0b\x32..livekit.proto.ByteStreamReaderReadAllCallbackH\x00\x12^\n byte_stream_reader_write_to_file\x18\x1e \x01(\x0b\x32\x32.livekit.proto.ByteStreamReaderWriteToFileCallbackH\x00\x12\x41\n\x10\x62yte_stream_open\x18\x1f \x01(\x0b\x32%.livekit.proto.ByteStreamOpenCallbackH\x00\x12P\n\x18\x62yte_stream_writer_write\x18 \x01(\x0b\x32,.livekit.proto.ByteStreamWriterWriteCallbackH\x00\x12P\n\x18\x62yte_stream_writer_close\x18! \x01(\x0b\x32,.livekit.proto.ByteStreamWriterCloseCallbackH\x00\x12:\n\tsend_file\x18\" \x01(\x0b\x32%.livekit.proto.StreamSendFileCallbackH\x00\x12H\n\x18text_stream_reader_event\x18# \x01(\x0b\x32$.livekit.proto.TextStreamReaderEventH\x00\x12U\n\x1btext_stream_reader_read_all\x18$ \x01(\x0b\x32..livekit.proto.TextStreamReaderReadAllCallbackH\x00\x12\x41\n\x10text_stream_open\x18% \x01(\x0b\x32%.livekit.proto.TextStreamOpenCallbackH\x00\x12P\n\x18text_stream_writer_write\x18& \x01(\x0b\x32,.livekit.proto.TextStreamWriterWriteCallbackH\x00\x12P\n\x18text_stream_writer_close\x18\' \x01(\x0b\x32,.livekit.proto.TextStreamWriterCloseCallbackH\x00\x12:\n\tsend_text\x18( \x01(\x0b\x32%.livekit.proto.StreamSendTextCallbackH\x00\x12<\n\nsend_bytes\x18) \x01(\x0b\x32&.livekit.proto.StreamSendBytesCallbackH\x00\x12\x45\n\x12publish_data_track\x18* \x01(\x0b\x32\'.livekit.proto.PublishDataTrackCallbackH\x00\x12\x46\n\x17\x64\x61ta_track_stream_event\x18+ \x01(\x0b\x32#.livekit.proto.DataTrackStreamEventH\x00\x12\x44\n\x11simulate_scenario\x18, \x01(\x0b\x32\'.livekit.proto.SimulateScenarioCallbackH\x00\x42\t\n\x07message\"\x1f\n\x0e\x44isposeRequest\x12\r\n\x05\x61sync\x18\x01 \x02(\x08\"#\n\x0f\x44isposeResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"#\n\x0f\x44isposeCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\x85\x01\n\tLogRecord\x12&\n\x05level\x18\x01 \x02(\x0e\x32\x17.livekit.proto.LogLevel\x12\x0e\n\x06target\x18\x02 \x02(\t\x12\x13\n\x0bmodule_path\x18\x03 \x01(\t\x12\x0c\n\x04\x66ile\x18\x04 \x01(\t\x12\x0c\n\x04line\x18\x05 \x01(\r\x12\x0f\n\x07message\x18\x06 \x02(\t\"5\n\x08LogBatch\x12)\n\x07records\x18\x01 \x03(\x0b\x32\x18.livekit.proto.LogRecord\"\x18\n\x05Panic\x12\x0f\n\x07message\x18\x01 \x02(\t*S\n\x08LogLevel\x12\r\n\tLOG_ERROR\x10\x00\x12\x0c\n\x08LOG_WARN\x10\x01\x12\x0c\n\x08LOG_INFO\x10\x02\x12\r\n\tLOG_DEBUG\x10\x03\x12\r\n\tLOG_TRACE\x10\x04\x42\x10\xaa\x02\rLiveKit.Proto') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ffi_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'\252\002\rLiveKit.Proto' - _globals['_LOGLEVEL']._serialized_start=14167 - _globals['_LOGLEVEL']._serialized_end=14250 + _globals['_LOGLEVEL']._serialized_start=14376 + _globals['_LOGLEVEL']._serialized_end=14459 _globals['_FFIREQUEST']._serialized_start=177 - _globals['_FFIREQUEST']._serialized_end=5585 - _globals['_FFIRESPONSE']._serialized_start=5588 - _globals['_FFIRESPONSE']._serialized_end=11002 - _globals['_FFIEVENT']._serialized_start=11005 - _globals['_FFIEVENT']._serialized_end=13841 - _globals['_DISPOSEREQUEST']._serialized_start=13843 - _globals['_DISPOSEREQUEST']._serialized_end=13874 - _globals['_DISPOSERESPONSE']._serialized_start=13876 - _globals['_DISPOSERESPONSE']._serialized_end=13911 - _globals['_DISPOSECALLBACK']._serialized_start=13913 - _globals['_DISPOSECALLBACK']._serialized_end=13948 - _globals['_LOGRECORD']._serialized_start=13951 - _globals['_LOGRECORD']._serialized_end=14084 - _globals['_LOGBATCH']._serialized_start=14086 - _globals['_LOGBATCH']._serialized_end=14139 - _globals['_PANIC']._serialized_start=14141 - _globals['_PANIC']._serialized_end=14165 + _globals['_FFIREQUEST']._serialized_end=5654 + _globals['_FFIRESPONSE']._serialized_start=5657 + _globals['_FFIRESPONSE']._serialized_end=11141 + _globals['_FFIEVENT']._serialized_start=11144 + _globals['_FFIEVENT']._serialized_end=14050 + _globals['_DISPOSEREQUEST']._serialized_start=14052 + _globals['_DISPOSEREQUEST']._serialized_end=14083 + _globals['_DISPOSERESPONSE']._serialized_start=14085 + _globals['_DISPOSERESPONSE']._serialized_end=14120 + _globals['_DISPOSECALLBACK']._serialized_start=14122 + _globals['_DISPOSECALLBACK']._serialized_end=14157 + _globals['_LOGRECORD']._serialized_start=14160 + _globals['_LOGRECORD']._serialized_end=14293 + _globals['_LOGBATCH']._serialized_start=14295 + _globals['_LOGBATCH']._serialized_end=14348 + _globals['_PANIC']._serialized_start=14350 + _globals['_PANIC']._serialized_end=14374 # @@protoc_insertion_point(module_scope) diff --git a/livekit-rtc/livekit/rtc/_proto/ffi_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/ffi_pb2.pyi index 3d71bcf0..3a4acbcc 100644 --- a/livekit-rtc/livekit/rtc/_proto/ffi_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/ffi_pb2.pyi @@ -16,37 +16,37 @@ See the License for the specific language governing permissions and limitations under the License. """ -from . import audio_frame_pb2 -import builtins -import collections.abc -from . import data_stream_pb2 -from . import data_track_pb2 -from . import e2ee_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -from . import room_pb2 -from . import rpc_pb2 +from collections import abc as _abc +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from . import audio_frame_pb2 as _audio_frame_pb2 +import builtins as _builtins +from . import data_stream_pb2 as _data_stream_pb2 +from . import data_track_pb2 as _data_track_pb2 +from . import e2ee_pb2 as _e2ee_pb2 +from . import room_pb2 as _room_pb2 +from . import rpc_pb2 as _rpc_pb2 import sys -from . import track_pb2 -from . import track_publication_pb2 -import typing -from . import video_frame_pb2 +from . import track_pb2 as _track_pb2 +from . import track_publication_pb2 as _track_publication_pb2 +import typing as _typing +from . import video_frame_pb2 as _video_frame_pb2 -if sys.version_info >= (3, 10): - import typing as typing_extensions +if sys.version_info >= (3, 11): + from typing import TypeAlias as _TypeAlias, Never as _Never else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias, Never as _Never -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor class _LogLevel: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _LogLevelEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_LogLevel.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _LogLevelEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_LogLevel.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor LOG_ERROR: _LogLevel.ValueType # 0 LOG_WARN: _LogLevel.ValueType # 1 LOG_INFO: _LogLevel.ValueType # 2 @@ -60,10 +60,10 @@ LOG_WARN: LogLevel.ValueType # 1 LOG_INFO: LogLevel.ValueType # 2 LOG_DEBUG: LogLevel.ValueType # 3 LOG_TRACE: LogLevel.ValueType # 4 -global___LogLevel = LogLevel +Global___LogLevel: _TypeAlias = LogLevel # noqa: Y015 -@typing.final -class FfiRequest(google.protobuf.message.Message): +@_typing.final +class FfiRequest(_message.Message): """**How is the livekit-ffi working: We refer as the ffi server the Rust server that is running the LiveKit client implementation, and we refer as the ffi client the foreign language that commumicates with the ffi server. (e.g Python SDK, Unity SDK, etc...) @@ -94,976 +94,1023 @@ class FfiRequest(google.protobuf.message.Message): We always expect a response (FFIResponse, even if it's empty) """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - DISPOSE_FIELD_NUMBER: builtins.int - CONNECT_FIELD_NUMBER: builtins.int - DISCONNECT_FIELD_NUMBER: builtins.int - PUBLISH_TRACK_FIELD_NUMBER: builtins.int - UNPUBLISH_TRACK_FIELD_NUMBER: builtins.int - PUBLISH_DATA_FIELD_NUMBER: builtins.int - SET_SUBSCRIBED_FIELD_NUMBER: builtins.int - SET_LOCAL_METADATA_FIELD_NUMBER: builtins.int - SET_LOCAL_NAME_FIELD_NUMBER: builtins.int - SET_LOCAL_ATTRIBUTES_FIELD_NUMBER: builtins.int - GET_SESSION_STATS_FIELD_NUMBER: builtins.int - PUBLISH_TRANSCRIPTION_FIELD_NUMBER: builtins.int - PUBLISH_SIP_DTMF_FIELD_NUMBER: builtins.int - CREATE_VIDEO_TRACK_FIELD_NUMBER: builtins.int - CREATE_AUDIO_TRACK_FIELD_NUMBER: builtins.int - LOCAL_TRACK_MUTE_FIELD_NUMBER: builtins.int - ENABLE_REMOTE_TRACK_FIELD_NUMBER: builtins.int - GET_STATS_FIELD_NUMBER: builtins.int - SET_TRACK_SUBSCRIPTION_PERMISSIONS_FIELD_NUMBER: builtins.int - NEW_VIDEO_STREAM_FIELD_NUMBER: builtins.int - NEW_VIDEO_SOURCE_FIELD_NUMBER: builtins.int - CAPTURE_VIDEO_FRAME_FIELD_NUMBER: builtins.int - VIDEO_CONVERT_FIELD_NUMBER: builtins.int - VIDEO_STREAM_FROM_PARTICIPANT_FIELD_NUMBER: builtins.int - NEW_AUDIO_STREAM_FIELD_NUMBER: builtins.int - NEW_AUDIO_SOURCE_FIELD_NUMBER: builtins.int - CAPTURE_AUDIO_FRAME_FIELD_NUMBER: builtins.int - CLEAR_AUDIO_BUFFER_FIELD_NUMBER: builtins.int - NEW_AUDIO_RESAMPLER_FIELD_NUMBER: builtins.int - REMIX_AND_RESAMPLE_FIELD_NUMBER: builtins.int - E2EE_FIELD_NUMBER: builtins.int - AUDIO_STREAM_FROM_PARTICIPANT_FIELD_NUMBER: builtins.int - NEW_SOX_RESAMPLER_FIELD_NUMBER: builtins.int - PUSH_SOX_RESAMPLER_FIELD_NUMBER: builtins.int - FLUSH_SOX_RESAMPLER_FIELD_NUMBER: builtins.int - SEND_CHAT_MESSAGE_FIELD_NUMBER: builtins.int - EDIT_CHAT_MESSAGE_FIELD_NUMBER: builtins.int - PERFORM_RPC_FIELD_NUMBER: builtins.int - REGISTER_RPC_METHOD_FIELD_NUMBER: builtins.int - UNREGISTER_RPC_METHOD_FIELD_NUMBER: builtins.int - RPC_METHOD_INVOCATION_RESPONSE_FIELD_NUMBER: builtins.int - ENABLE_REMOTE_TRACK_PUBLICATION_FIELD_NUMBER: builtins.int - UPDATE_REMOTE_TRACK_PUBLICATION_DIMENSION_FIELD_NUMBER: builtins.int - SEND_STREAM_HEADER_FIELD_NUMBER: builtins.int - SEND_STREAM_CHUNK_FIELD_NUMBER: builtins.int - SEND_STREAM_TRAILER_FIELD_NUMBER: builtins.int - SET_DATA_CHANNEL_BUFFERED_AMOUNT_LOW_THRESHOLD_FIELD_NUMBER: builtins.int - LOAD_AUDIO_FILTER_PLUGIN_FIELD_NUMBER: builtins.int - NEW_APM_FIELD_NUMBER: builtins.int - APM_PROCESS_STREAM_FIELD_NUMBER: builtins.int - APM_PROCESS_REVERSE_STREAM_FIELD_NUMBER: builtins.int - APM_SET_STREAM_DELAY_FIELD_NUMBER: builtins.int - BYTE_READ_INCREMENTAL_FIELD_NUMBER: builtins.int - BYTE_READ_ALL_FIELD_NUMBER: builtins.int - BYTE_WRITE_TO_FILE_FIELD_NUMBER: builtins.int - TEXT_READ_INCREMENTAL_FIELD_NUMBER: builtins.int - TEXT_READ_ALL_FIELD_NUMBER: builtins.int - SEND_FILE_FIELD_NUMBER: builtins.int - SEND_TEXT_FIELD_NUMBER: builtins.int - BYTE_STREAM_OPEN_FIELD_NUMBER: builtins.int - BYTE_STREAM_WRITE_FIELD_NUMBER: builtins.int - BYTE_STREAM_CLOSE_FIELD_NUMBER: builtins.int - TEXT_STREAM_OPEN_FIELD_NUMBER: builtins.int - TEXT_STREAM_WRITE_FIELD_NUMBER: builtins.int - TEXT_STREAM_CLOSE_FIELD_NUMBER: builtins.int - SEND_BYTES_FIELD_NUMBER: builtins.int - SET_REMOTE_TRACK_PUBLICATION_QUALITY_FIELD_NUMBER: builtins.int - PUBLISH_DATA_TRACK_FIELD_NUMBER: builtins.int - LOCAL_DATA_TRACK_TRY_PUSH_FIELD_NUMBER: builtins.int - LOCAL_DATA_TRACK_UNPUBLISH_FIELD_NUMBER: builtins.int - LOCAL_DATA_TRACK_IS_PUBLISHED_FIELD_NUMBER: builtins.int - SUBSCRIBE_DATA_TRACK_FIELD_NUMBER: builtins.int - REMOTE_DATA_TRACK_IS_PUBLISHED_FIELD_NUMBER: builtins.int - DATA_TRACK_STREAM_READ_FIELD_NUMBER: builtins.int - @property - def dispose(self) -> global___DisposeRequest: ... - @property - def connect(self) -> room_pb2.ConnectRequest: + DESCRIPTOR: _descriptor.Descriptor + + DISPOSE_FIELD_NUMBER: _builtins.int + CONNECT_FIELD_NUMBER: _builtins.int + DISCONNECT_FIELD_NUMBER: _builtins.int + PUBLISH_TRACK_FIELD_NUMBER: _builtins.int + UNPUBLISH_TRACK_FIELD_NUMBER: _builtins.int + PUBLISH_DATA_FIELD_NUMBER: _builtins.int + SET_SUBSCRIBED_FIELD_NUMBER: _builtins.int + SET_LOCAL_METADATA_FIELD_NUMBER: _builtins.int + SET_LOCAL_NAME_FIELD_NUMBER: _builtins.int + SET_LOCAL_ATTRIBUTES_FIELD_NUMBER: _builtins.int + GET_SESSION_STATS_FIELD_NUMBER: _builtins.int + PUBLISH_TRANSCRIPTION_FIELD_NUMBER: _builtins.int + PUBLISH_SIP_DTMF_FIELD_NUMBER: _builtins.int + CREATE_VIDEO_TRACK_FIELD_NUMBER: _builtins.int + CREATE_AUDIO_TRACK_FIELD_NUMBER: _builtins.int + LOCAL_TRACK_MUTE_FIELD_NUMBER: _builtins.int + ENABLE_REMOTE_TRACK_FIELD_NUMBER: _builtins.int + GET_STATS_FIELD_NUMBER: _builtins.int + SET_TRACK_SUBSCRIPTION_PERMISSIONS_FIELD_NUMBER: _builtins.int + NEW_VIDEO_STREAM_FIELD_NUMBER: _builtins.int + NEW_VIDEO_SOURCE_FIELD_NUMBER: _builtins.int + CAPTURE_VIDEO_FRAME_FIELD_NUMBER: _builtins.int + VIDEO_CONVERT_FIELD_NUMBER: _builtins.int + VIDEO_STREAM_FROM_PARTICIPANT_FIELD_NUMBER: _builtins.int + NEW_AUDIO_STREAM_FIELD_NUMBER: _builtins.int + NEW_AUDIO_SOURCE_FIELD_NUMBER: _builtins.int + CAPTURE_AUDIO_FRAME_FIELD_NUMBER: _builtins.int + CLEAR_AUDIO_BUFFER_FIELD_NUMBER: _builtins.int + NEW_AUDIO_RESAMPLER_FIELD_NUMBER: _builtins.int + REMIX_AND_RESAMPLE_FIELD_NUMBER: _builtins.int + E2EE_FIELD_NUMBER: _builtins.int + AUDIO_STREAM_FROM_PARTICIPANT_FIELD_NUMBER: _builtins.int + NEW_SOX_RESAMPLER_FIELD_NUMBER: _builtins.int + PUSH_SOX_RESAMPLER_FIELD_NUMBER: _builtins.int + FLUSH_SOX_RESAMPLER_FIELD_NUMBER: _builtins.int + SEND_CHAT_MESSAGE_FIELD_NUMBER: _builtins.int + EDIT_CHAT_MESSAGE_FIELD_NUMBER: _builtins.int + PERFORM_RPC_FIELD_NUMBER: _builtins.int + REGISTER_RPC_METHOD_FIELD_NUMBER: _builtins.int + UNREGISTER_RPC_METHOD_FIELD_NUMBER: _builtins.int + RPC_METHOD_INVOCATION_RESPONSE_FIELD_NUMBER: _builtins.int + ENABLE_REMOTE_TRACK_PUBLICATION_FIELD_NUMBER: _builtins.int + UPDATE_REMOTE_TRACK_PUBLICATION_DIMENSION_FIELD_NUMBER: _builtins.int + SEND_STREAM_HEADER_FIELD_NUMBER: _builtins.int + SEND_STREAM_CHUNK_FIELD_NUMBER: _builtins.int + SEND_STREAM_TRAILER_FIELD_NUMBER: _builtins.int + SET_DATA_CHANNEL_BUFFERED_AMOUNT_LOW_THRESHOLD_FIELD_NUMBER: _builtins.int + LOAD_AUDIO_FILTER_PLUGIN_FIELD_NUMBER: _builtins.int + NEW_APM_FIELD_NUMBER: _builtins.int + APM_PROCESS_STREAM_FIELD_NUMBER: _builtins.int + APM_PROCESS_REVERSE_STREAM_FIELD_NUMBER: _builtins.int + APM_SET_STREAM_DELAY_FIELD_NUMBER: _builtins.int + BYTE_READ_INCREMENTAL_FIELD_NUMBER: _builtins.int + BYTE_READ_ALL_FIELD_NUMBER: _builtins.int + BYTE_WRITE_TO_FILE_FIELD_NUMBER: _builtins.int + TEXT_READ_INCREMENTAL_FIELD_NUMBER: _builtins.int + TEXT_READ_ALL_FIELD_NUMBER: _builtins.int + SEND_FILE_FIELD_NUMBER: _builtins.int + SEND_TEXT_FIELD_NUMBER: _builtins.int + BYTE_STREAM_OPEN_FIELD_NUMBER: _builtins.int + BYTE_STREAM_WRITE_FIELD_NUMBER: _builtins.int + BYTE_STREAM_CLOSE_FIELD_NUMBER: _builtins.int + TEXT_STREAM_OPEN_FIELD_NUMBER: _builtins.int + TEXT_STREAM_WRITE_FIELD_NUMBER: _builtins.int + TEXT_STREAM_CLOSE_FIELD_NUMBER: _builtins.int + SEND_BYTES_FIELD_NUMBER: _builtins.int + SET_REMOTE_TRACK_PUBLICATION_QUALITY_FIELD_NUMBER: _builtins.int + PUBLISH_DATA_TRACK_FIELD_NUMBER: _builtins.int + LOCAL_DATA_TRACK_TRY_PUSH_FIELD_NUMBER: _builtins.int + LOCAL_DATA_TRACK_UNPUBLISH_FIELD_NUMBER: _builtins.int + LOCAL_DATA_TRACK_IS_PUBLISHED_FIELD_NUMBER: _builtins.int + SUBSCRIBE_DATA_TRACK_FIELD_NUMBER: _builtins.int + REMOTE_DATA_TRACK_IS_PUBLISHED_FIELD_NUMBER: _builtins.int + DATA_TRACK_STREAM_READ_FIELD_NUMBER: _builtins.int + SIMULATE_SCENARIO_FIELD_NUMBER: _builtins.int + @_builtins.property + def dispose(self) -> Global___DisposeRequest: ... + @_builtins.property + def connect(self) -> _room_pb2.ConnectRequest: """Room""" - @property - def disconnect(self) -> room_pb2.DisconnectRequest: ... - @property - def publish_track(self) -> room_pb2.PublishTrackRequest: ... - @property - def unpublish_track(self) -> room_pb2.UnpublishTrackRequest: ... - @property - def publish_data(self) -> room_pb2.PublishDataRequest: ... - @property - def set_subscribed(self) -> room_pb2.SetSubscribedRequest: ... - @property - def set_local_metadata(self) -> room_pb2.SetLocalMetadataRequest: ... - @property - def set_local_name(self) -> room_pb2.SetLocalNameRequest: ... - @property - def set_local_attributes(self) -> room_pb2.SetLocalAttributesRequest: ... - @property - def get_session_stats(self) -> room_pb2.GetSessionStatsRequest: ... - @property - def publish_transcription(self) -> room_pb2.PublishTranscriptionRequest: ... - @property - def publish_sip_dtmf(self) -> room_pb2.PublishSipDtmfRequest: ... - @property - def create_video_track(self) -> track_pb2.CreateVideoTrackRequest: + @_builtins.property + def disconnect(self) -> _room_pb2.DisconnectRequest: ... + @_builtins.property + def publish_track(self) -> _room_pb2.PublishTrackRequest: ... + @_builtins.property + def unpublish_track(self) -> _room_pb2.UnpublishTrackRequest: ... + @_builtins.property + def publish_data(self) -> _room_pb2.PublishDataRequest: ... + @_builtins.property + def set_subscribed(self) -> _room_pb2.SetSubscribedRequest: ... + @_builtins.property + def set_local_metadata(self) -> _room_pb2.SetLocalMetadataRequest: ... + @_builtins.property + def set_local_name(self) -> _room_pb2.SetLocalNameRequest: ... + @_builtins.property + def set_local_attributes(self) -> _room_pb2.SetLocalAttributesRequest: ... + @_builtins.property + def get_session_stats(self) -> _room_pb2.GetSessionStatsRequest: ... + @_builtins.property + def publish_transcription(self) -> _room_pb2.PublishTranscriptionRequest: ... + @_builtins.property + def publish_sip_dtmf(self) -> _room_pb2.PublishSipDtmfRequest: ... + @_builtins.property + def create_video_track(self) -> _track_pb2.CreateVideoTrackRequest: """Track""" - @property - def create_audio_track(self) -> track_pb2.CreateAudioTrackRequest: ... - @property - def local_track_mute(self) -> track_pb2.LocalTrackMuteRequest: ... - @property - def enable_remote_track(self) -> track_pb2.EnableRemoteTrackRequest: ... - @property - def get_stats(self) -> track_pb2.GetStatsRequest: ... - @property - def set_track_subscription_permissions(self) -> track_pb2.SetTrackSubscriptionPermissionsRequest: ... - @property - def new_video_stream(self) -> video_frame_pb2.NewVideoStreamRequest: + @_builtins.property + def create_audio_track(self) -> _track_pb2.CreateAudioTrackRequest: ... + @_builtins.property + def local_track_mute(self) -> _track_pb2.LocalTrackMuteRequest: ... + @_builtins.property + def enable_remote_track(self) -> _track_pb2.EnableRemoteTrackRequest: ... + @_builtins.property + def get_stats(self) -> _track_pb2.GetStatsRequest: ... + @_builtins.property + def set_track_subscription_permissions(self) -> _track_pb2.SetTrackSubscriptionPermissionsRequest: ... + @_builtins.property + def new_video_stream(self) -> _video_frame_pb2.NewVideoStreamRequest: """Video""" - @property - def new_video_source(self) -> video_frame_pb2.NewVideoSourceRequest: ... - @property - def capture_video_frame(self) -> video_frame_pb2.CaptureVideoFrameRequest: ... - @property - def video_convert(self) -> video_frame_pb2.VideoConvertRequest: ... - @property - def video_stream_from_participant(self) -> video_frame_pb2.VideoStreamFromParticipantRequest: ... - @property - def new_audio_stream(self) -> audio_frame_pb2.NewAudioStreamRequest: + @_builtins.property + def new_video_source(self) -> _video_frame_pb2.NewVideoSourceRequest: ... + @_builtins.property + def capture_video_frame(self) -> _video_frame_pb2.CaptureVideoFrameRequest: ... + @_builtins.property + def video_convert(self) -> _video_frame_pb2.VideoConvertRequest: ... + @_builtins.property + def video_stream_from_participant(self) -> _video_frame_pb2.VideoStreamFromParticipantRequest: ... + @_builtins.property + def new_audio_stream(self) -> _audio_frame_pb2.NewAudioStreamRequest: """Audio""" - @property - def new_audio_source(self) -> audio_frame_pb2.NewAudioSourceRequest: ... - @property - def capture_audio_frame(self) -> audio_frame_pb2.CaptureAudioFrameRequest: ... - @property - def clear_audio_buffer(self) -> audio_frame_pb2.ClearAudioBufferRequest: ... - @property - def new_audio_resampler(self) -> audio_frame_pb2.NewAudioResamplerRequest: ... - @property - def remix_and_resample(self) -> audio_frame_pb2.RemixAndResampleRequest: ... - @property - def e2ee(self) -> e2ee_pb2.E2eeRequest: ... - @property - def audio_stream_from_participant(self) -> audio_frame_pb2.AudioStreamFromParticipantRequest: ... - @property - def new_sox_resampler(self) -> audio_frame_pb2.NewSoxResamplerRequest: ... - @property - def push_sox_resampler(self) -> audio_frame_pb2.PushSoxResamplerRequest: ... - @property - def flush_sox_resampler(self) -> audio_frame_pb2.FlushSoxResamplerRequest: ... - @property - def send_chat_message(self) -> room_pb2.SendChatMessageRequest: ... - @property - def edit_chat_message(self) -> room_pb2.EditChatMessageRequest: ... - @property - def perform_rpc(self) -> rpc_pb2.PerformRpcRequest: + @_builtins.property + def new_audio_source(self) -> _audio_frame_pb2.NewAudioSourceRequest: ... + @_builtins.property + def capture_audio_frame(self) -> _audio_frame_pb2.CaptureAudioFrameRequest: ... + @_builtins.property + def clear_audio_buffer(self) -> _audio_frame_pb2.ClearAudioBufferRequest: ... + @_builtins.property + def new_audio_resampler(self) -> _audio_frame_pb2.NewAudioResamplerRequest: ... + @_builtins.property + def remix_and_resample(self) -> _audio_frame_pb2.RemixAndResampleRequest: ... + @_builtins.property + def e2ee(self) -> _e2ee_pb2.E2eeRequest: ... + @_builtins.property + def audio_stream_from_participant(self) -> _audio_frame_pb2.AudioStreamFromParticipantRequest: ... + @_builtins.property + def new_sox_resampler(self) -> _audio_frame_pb2.NewSoxResamplerRequest: ... + @_builtins.property + def push_sox_resampler(self) -> _audio_frame_pb2.PushSoxResamplerRequest: ... + @_builtins.property + def flush_sox_resampler(self) -> _audio_frame_pb2.FlushSoxResamplerRequest: ... + @_builtins.property + def send_chat_message(self) -> _room_pb2.SendChatMessageRequest: ... + @_builtins.property + def edit_chat_message(self) -> _room_pb2.EditChatMessageRequest: ... + @_builtins.property + def perform_rpc(self) -> _rpc_pb2.PerformRpcRequest: """RPC""" - @property - def register_rpc_method(self) -> rpc_pb2.RegisterRpcMethodRequest: ... - @property - def unregister_rpc_method(self) -> rpc_pb2.UnregisterRpcMethodRequest: ... - @property - def rpc_method_invocation_response(self) -> rpc_pb2.RpcMethodInvocationResponseRequest: ... - @property - def enable_remote_track_publication(self) -> track_publication_pb2.EnableRemoteTrackPublicationRequest: + @_builtins.property + def register_rpc_method(self) -> _rpc_pb2.RegisterRpcMethodRequest: ... + @_builtins.property + def unregister_rpc_method(self) -> _rpc_pb2.UnregisterRpcMethodRequest: ... + @_builtins.property + def rpc_method_invocation_response(self) -> _rpc_pb2.RpcMethodInvocationResponseRequest: ... + @_builtins.property + def enable_remote_track_publication(self) -> _track_publication_pb2.EnableRemoteTrackPublicationRequest: """Track Publication""" - @property - def update_remote_track_publication_dimension(self) -> track_publication_pb2.UpdateRemoteTrackPublicationDimensionRequest: ... - @property - def send_stream_header(self) -> room_pb2.SendStreamHeaderRequest: + @_builtins.property + def update_remote_track_publication_dimension(self) -> _track_publication_pb2.UpdateRemoteTrackPublicationDimensionRequest: ... + @_builtins.property + def send_stream_header(self) -> _room_pb2.SendStreamHeaderRequest: """Data Streams (low level)""" - @property - def send_stream_chunk(self) -> room_pb2.SendStreamChunkRequest: ... - @property - def send_stream_trailer(self) -> room_pb2.SendStreamTrailerRequest: ... - @property - def set_data_channel_buffered_amount_low_threshold(self) -> room_pb2.SetDataChannelBufferedAmountLowThresholdRequest: + @_builtins.property + def send_stream_chunk(self) -> _room_pb2.SendStreamChunkRequest: ... + @_builtins.property + def send_stream_trailer(self) -> _room_pb2.SendStreamTrailerRequest: ... + @_builtins.property + def set_data_channel_buffered_amount_low_threshold(self) -> _room_pb2.SetDataChannelBufferedAmountLowThresholdRequest: """Data Channel""" - @property - def load_audio_filter_plugin(self) -> audio_frame_pb2.LoadAudioFilterPluginRequest: + @_builtins.property + def load_audio_filter_plugin(self) -> _audio_frame_pb2.LoadAudioFilterPluginRequest: """Audio Filter Plugin""" - @property - def new_apm(self) -> audio_frame_pb2.NewApmRequest: ... - @property - def apm_process_stream(self) -> audio_frame_pb2.ApmProcessStreamRequest: ... - @property - def apm_process_reverse_stream(self) -> audio_frame_pb2.ApmProcessReverseStreamRequest: ... - @property - def apm_set_stream_delay(self) -> audio_frame_pb2.ApmSetStreamDelayRequest: ... - @property - def byte_read_incremental(self) -> data_stream_pb2.ByteStreamReaderReadIncrementalRequest: + @_builtins.property + def new_apm(self) -> _audio_frame_pb2.NewApmRequest: ... + @_builtins.property + def apm_process_stream(self) -> _audio_frame_pb2.ApmProcessStreamRequest: ... + @_builtins.property + def apm_process_reverse_stream(self) -> _audio_frame_pb2.ApmProcessReverseStreamRequest: ... + @_builtins.property + def apm_set_stream_delay(self) -> _audio_frame_pb2.ApmSetStreamDelayRequest: ... + @_builtins.property + def byte_read_incremental(self) -> _data_stream_pb2.ByteStreamReaderReadIncrementalRequest: """Data Streams (high level)""" - @property - def byte_read_all(self) -> data_stream_pb2.ByteStreamReaderReadAllRequest: ... - @property - def byte_write_to_file(self) -> data_stream_pb2.ByteStreamReaderWriteToFileRequest: ... - @property - def text_read_incremental(self) -> data_stream_pb2.TextStreamReaderReadIncrementalRequest: ... - @property - def text_read_all(self) -> data_stream_pb2.TextStreamReaderReadAllRequest: ... - @property - def send_file(self) -> data_stream_pb2.StreamSendFileRequest: ... - @property - def send_text(self) -> data_stream_pb2.StreamSendTextRequest: ... - @property - def byte_stream_open(self) -> data_stream_pb2.ByteStreamOpenRequest: ... - @property - def byte_stream_write(self) -> data_stream_pb2.ByteStreamWriterWriteRequest: ... - @property - def byte_stream_close(self) -> data_stream_pb2.ByteStreamWriterCloseRequest: ... - @property - def text_stream_open(self) -> data_stream_pb2.TextStreamOpenRequest: ... - @property - def text_stream_write(self) -> data_stream_pb2.TextStreamWriterWriteRequest: ... - @property - def text_stream_close(self) -> data_stream_pb2.TextStreamWriterCloseRequest: ... - @property - def send_bytes(self) -> data_stream_pb2.StreamSendBytesRequest: ... - @property - def set_remote_track_publication_quality(self) -> track_publication_pb2.SetRemoteTrackPublicationQualityRequest: ... - @property - def publish_data_track(self) -> data_track_pb2.PublishDataTrackRequest: + @_builtins.property + def byte_read_all(self) -> _data_stream_pb2.ByteStreamReaderReadAllRequest: ... + @_builtins.property + def byte_write_to_file(self) -> _data_stream_pb2.ByteStreamReaderWriteToFileRequest: ... + @_builtins.property + def text_read_incremental(self) -> _data_stream_pb2.TextStreamReaderReadIncrementalRequest: ... + @_builtins.property + def text_read_all(self) -> _data_stream_pb2.TextStreamReaderReadAllRequest: ... + @_builtins.property + def send_file(self) -> _data_stream_pb2.StreamSendFileRequest: ... + @_builtins.property + def send_text(self) -> _data_stream_pb2.StreamSendTextRequest: ... + @_builtins.property + def byte_stream_open(self) -> _data_stream_pb2.ByteStreamOpenRequest: ... + @_builtins.property + def byte_stream_write(self) -> _data_stream_pb2.ByteStreamWriterWriteRequest: ... + @_builtins.property + def byte_stream_close(self) -> _data_stream_pb2.ByteStreamWriterCloseRequest: ... + @_builtins.property + def text_stream_open(self) -> _data_stream_pb2.TextStreamOpenRequest: ... + @_builtins.property + def text_stream_write(self) -> _data_stream_pb2.TextStreamWriterWriteRequest: ... + @_builtins.property + def text_stream_close(self) -> _data_stream_pb2.TextStreamWriterCloseRequest: ... + @_builtins.property + def send_bytes(self) -> _data_stream_pb2.StreamSendBytesRequest: ... + @_builtins.property + def set_remote_track_publication_quality(self) -> _track_publication_pb2.SetRemoteTrackPublicationQualityRequest: ... + @_builtins.property + def publish_data_track(self) -> _data_track_pb2.PublishDataTrackRequest: """Data Track (local)""" - @property - def local_data_track_try_push(self) -> data_track_pb2.LocalDataTrackTryPushRequest: ... - @property - def local_data_track_unpublish(self) -> data_track_pb2.LocalDataTrackUnpublishRequest: ... - @property - def local_data_track_is_published(self) -> data_track_pb2.LocalDataTrackIsPublishedRequest: ... - @property - def subscribe_data_track(self) -> data_track_pb2.SubscribeDataTrackRequest: + @_builtins.property + def local_data_track_try_push(self) -> _data_track_pb2.LocalDataTrackTryPushRequest: ... + @_builtins.property + def local_data_track_unpublish(self) -> _data_track_pb2.LocalDataTrackUnpublishRequest: ... + @_builtins.property + def local_data_track_is_published(self) -> _data_track_pb2.LocalDataTrackIsPublishedRequest: ... + @_builtins.property + def subscribe_data_track(self) -> _data_track_pb2.SubscribeDataTrackRequest: """Data Track (remote)""" - @property - def remote_data_track_is_published(self) -> data_track_pb2.RemoteDataTrackIsPublishedRequest: ... - @property - def data_track_stream_read(self) -> data_track_pb2.DataTrackStreamReadRequest: ... + @_builtins.property + def remote_data_track_is_published(self) -> _data_track_pb2.RemoteDataTrackIsPublishedRequest: ... + @_builtins.property + def data_track_stream_read(self) -> _data_track_pb2.DataTrackStreamReadRequest: ... + @_builtins.property + def simulate_scenario(self) -> _room_pb2.SimulateScenarioRequest: + """Reconnection / chaos testing""" + def __init__( self, *, - dispose: global___DisposeRequest | None = ..., - connect: room_pb2.ConnectRequest | None = ..., - disconnect: room_pb2.DisconnectRequest | None = ..., - publish_track: room_pb2.PublishTrackRequest | None = ..., - unpublish_track: room_pb2.UnpublishTrackRequest | None = ..., - publish_data: room_pb2.PublishDataRequest | None = ..., - set_subscribed: room_pb2.SetSubscribedRequest | None = ..., - set_local_metadata: room_pb2.SetLocalMetadataRequest | None = ..., - set_local_name: room_pb2.SetLocalNameRequest | None = ..., - set_local_attributes: room_pb2.SetLocalAttributesRequest | None = ..., - get_session_stats: room_pb2.GetSessionStatsRequest | None = ..., - publish_transcription: room_pb2.PublishTranscriptionRequest | None = ..., - publish_sip_dtmf: room_pb2.PublishSipDtmfRequest | None = ..., - create_video_track: track_pb2.CreateVideoTrackRequest | None = ..., - create_audio_track: track_pb2.CreateAudioTrackRequest | None = ..., - local_track_mute: track_pb2.LocalTrackMuteRequest | None = ..., - enable_remote_track: track_pb2.EnableRemoteTrackRequest | None = ..., - get_stats: track_pb2.GetStatsRequest | None = ..., - set_track_subscription_permissions: track_pb2.SetTrackSubscriptionPermissionsRequest | None = ..., - new_video_stream: video_frame_pb2.NewVideoStreamRequest | None = ..., - new_video_source: video_frame_pb2.NewVideoSourceRequest | None = ..., - capture_video_frame: video_frame_pb2.CaptureVideoFrameRequest | None = ..., - video_convert: video_frame_pb2.VideoConvertRequest | None = ..., - video_stream_from_participant: video_frame_pb2.VideoStreamFromParticipantRequest | None = ..., - new_audio_stream: audio_frame_pb2.NewAudioStreamRequest | None = ..., - new_audio_source: audio_frame_pb2.NewAudioSourceRequest | None = ..., - capture_audio_frame: audio_frame_pb2.CaptureAudioFrameRequest | None = ..., - clear_audio_buffer: audio_frame_pb2.ClearAudioBufferRequest | None = ..., - new_audio_resampler: audio_frame_pb2.NewAudioResamplerRequest | None = ..., - remix_and_resample: audio_frame_pb2.RemixAndResampleRequest | None = ..., - e2ee: e2ee_pb2.E2eeRequest | None = ..., - audio_stream_from_participant: audio_frame_pb2.AudioStreamFromParticipantRequest | None = ..., - new_sox_resampler: audio_frame_pb2.NewSoxResamplerRequest | None = ..., - push_sox_resampler: audio_frame_pb2.PushSoxResamplerRequest | None = ..., - flush_sox_resampler: audio_frame_pb2.FlushSoxResamplerRequest | None = ..., - send_chat_message: room_pb2.SendChatMessageRequest | None = ..., - edit_chat_message: room_pb2.EditChatMessageRequest | None = ..., - perform_rpc: rpc_pb2.PerformRpcRequest | None = ..., - register_rpc_method: rpc_pb2.RegisterRpcMethodRequest | None = ..., - unregister_rpc_method: rpc_pb2.UnregisterRpcMethodRequest | None = ..., - rpc_method_invocation_response: rpc_pb2.RpcMethodInvocationResponseRequest | None = ..., - enable_remote_track_publication: track_publication_pb2.EnableRemoteTrackPublicationRequest | None = ..., - update_remote_track_publication_dimension: track_publication_pb2.UpdateRemoteTrackPublicationDimensionRequest | None = ..., - send_stream_header: room_pb2.SendStreamHeaderRequest | None = ..., - send_stream_chunk: room_pb2.SendStreamChunkRequest | None = ..., - send_stream_trailer: room_pb2.SendStreamTrailerRequest | None = ..., - set_data_channel_buffered_amount_low_threshold: room_pb2.SetDataChannelBufferedAmountLowThresholdRequest | None = ..., - load_audio_filter_plugin: audio_frame_pb2.LoadAudioFilterPluginRequest | None = ..., - new_apm: audio_frame_pb2.NewApmRequest | None = ..., - apm_process_stream: audio_frame_pb2.ApmProcessStreamRequest | None = ..., - apm_process_reverse_stream: audio_frame_pb2.ApmProcessReverseStreamRequest | None = ..., - apm_set_stream_delay: audio_frame_pb2.ApmSetStreamDelayRequest | None = ..., - byte_read_incremental: data_stream_pb2.ByteStreamReaderReadIncrementalRequest | None = ..., - byte_read_all: data_stream_pb2.ByteStreamReaderReadAllRequest | None = ..., - byte_write_to_file: data_stream_pb2.ByteStreamReaderWriteToFileRequest | None = ..., - text_read_incremental: data_stream_pb2.TextStreamReaderReadIncrementalRequest | None = ..., - text_read_all: data_stream_pb2.TextStreamReaderReadAllRequest | None = ..., - send_file: data_stream_pb2.StreamSendFileRequest | None = ..., - send_text: data_stream_pb2.StreamSendTextRequest | None = ..., - byte_stream_open: data_stream_pb2.ByteStreamOpenRequest | None = ..., - byte_stream_write: data_stream_pb2.ByteStreamWriterWriteRequest | None = ..., - byte_stream_close: data_stream_pb2.ByteStreamWriterCloseRequest | None = ..., - text_stream_open: data_stream_pb2.TextStreamOpenRequest | None = ..., - text_stream_write: data_stream_pb2.TextStreamWriterWriteRequest | None = ..., - text_stream_close: data_stream_pb2.TextStreamWriterCloseRequest | None = ..., - send_bytes: data_stream_pb2.StreamSendBytesRequest | None = ..., - set_remote_track_publication_quality: track_publication_pb2.SetRemoteTrackPublicationQualityRequest | None = ..., - publish_data_track: data_track_pb2.PublishDataTrackRequest | None = ..., - local_data_track_try_push: data_track_pb2.LocalDataTrackTryPushRequest | None = ..., - local_data_track_unpublish: data_track_pb2.LocalDataTrackUnpublishRequest | None = ..., - local_data_track_is_published: data_track_pb2.LocalDataTrackIsPublishedRequest | None = ..., - subscribe_data_track: data_track_pb2.SubscribeDataTrackRequest | None = ..., - remote_data_track_is_published: data_track_pb2.RemoteDataTrackIsPublishedRequest | None = ..., - data_track_stream_read: data_track_pb2.DataTrackStreamReadRequest | None = ..., + dispose: Global___DisposeRequest | None = ..., + connect: _room_pb2.ConnectRequest | None = ..., + disconnect: _room_pb2.DisconnectRequest | None = ..., + publish_track: _room_pb2.PublishTrackRequest | None = ..., + unpublish_track: _room_pb2.UnpublishTrackRequest | None = ..., + publish_data: _room_pb2.PublishDataRequest | None = ..., + set_subscribed: _room_pb2.SetSubscribedRequest | None = ..., + set_local_metadata: _room_pb2.SetLocalMetadataRequest | None = ..., + set_local_name: _room_pb2.SetLocalNameRequest | None = ..., + set_local_attributes: _room_pb2.SetLocalAttributesRequest | None = ..., + get_session_stats: _room_pb2.GetSessionStatsRequest | None = ..., + publish_transcription: _room_pb2.PublishTranscriptionRequest | None = ..., + publish_sip_dtmf: _room_pb2.PublishSipDtmfRequest | None = ..., + create_video_track: _track_pb2.CreateVideoTrackRequest | None = ..., + create_audio_track: _track_pb2.CreateAudioTrackRequest | None = ..., + local_track_mute: _track_pb2.LocalTrackMuteRequest | None = ..., + enable_remote_track: _track_pb2.EnableRemoteTrackRequest | None = ..., + get_stats: _track_pb2.GetStatsRequest | None = ..., + set_track_subscription_permissions: _track_pb2.SetTrackSubscriptionPermissionsRequest | None = ..., + new_video_stream: _video_frame_pb2.NewVideoStreamRequest | None = ..., + new_video_source: _video_frame_pb2.NewVideoSourceRequest | None = ..., + capture_video_frame: _video_frame_pb2.CaptureVideoFrameRequest | None = ..., + video_convert: _video_frame_pb2.VideoConvertRequest | None = ..., + video_stream_from_participant: _video_frame_pb2.VideoStreamFromParticipantRequest | None = ..., + new_audio_stream: _audio_frame_pb2.NewAudioStreamRequest | None = ..., + new_audio_source: _audio_frame_pb2.NewAudioSourceRequest | None = ..., + capture_audio_frame: _audio_frame_pb2.CaptureAudioFrameRequest | None = ..., + clear_audio_buffer: _audio_frame_pb2.ClearAudioBufferRequest | None = ..., + new_audio_resampler: _audio_frame_pb2.NewAudioResamplerRequest | None = ..., + remix_and_resample: _audio_frame_pb2.RemixAndResampleRequest | None = ..., + e2ee: _e2ee_pb2.E2eeRequest | None = ..., + audio_stream_from_participant: _audio_frame_pb2.AudioStreamFromParticipantRequest | None = ..., + new_sox_resampler: _audio_frame_pb2.NewSoxResamplerRequest | None = ..., + push_sox_resampler: _audio_frame_pb2.PushSoxResamplerRequest | None = ..., + flush_sox_resampler: _audio_frame_pb2.FlushSoxResamplerRequest | None = ..., + send_chat_message: _room_pb2.SendChatMessageRequest | None = ..., + edit_chat_message: _room_pb2.EditChatMessageRequest | None = ..., + perform_rpc: _rpc_pb2.PerformRpcRequest | None = ..., + register_rpc_method: _rpc_pb2.RegisterRpcMethodRequest | None = ..., + unregister_rpc_method: _rpc_pb2.UnregisterRpcMethodRequest | None = ..., + rpc_method_invocation_response: _rpc_pb2.RpcMethodInvocationResponseRequest | None = ..., + enable_remote_track_publication: _track_publication_pb2.EnableRemoteTrackPublicationRequest | None = ..., + update_remote_track_publication_dimension: _track_publication_pb2.UpdateRemoteTrackPublicationDimensionRequest | None = ..., + send_stream_header: _room_pb2.SendStreamHeaderRequest | None = ..., + send_stream_chunk: _room_pb2.SendStreamChunkRequest | None = ..., + send_stream_trailer: _room_pb2.SendStreamTrailerRequest | None = ..., + set_data_channel_buffered_amount_low_threshold: _room_pb2.SetDataChannelBufferedAmountLowThresholdRequest | None = ..., + load_audio_filter_plugin: _audio_frame_pb2.LoadAudioFilterPluginRequest | None = ..., + new_apm: _audio_frame_pb2.NewApmRequest | None = ..., + apm_process_stream: _audio_frame_pb2.ApmProcessStreamRequest | None = ..., + apm_process_reverse_stream: _audio_frame_pb2.ApmProcessReverseStreamRequest | None = ..., + apm_set_stream_delay: _audio_frame_pb2.ApmSetStreamDelayRequest | None = ..., + byte_read_incremental: _data_stream_pb2.ByteStreamReaderReadIncrementalRequest | None = ..., + byte_read_all: _data_stream_pb2.ByteStreamReaderReadAllRequest | None = ..., + byte_write_to_file: _data_stream_pb2.ByteStreamReaderWriteToFileRequest | None = ..., + text_read_incremental: _data_stream_pb2.TextStreamReaderReadIncrementalRequest | None = ..., + text_read_all: _data_stream_pb2.TextStreamReaderReadAllRequest | None = ..., + send_file: _data_stream_pb2.StreamSendFileRequest | None = ..., + send_text: _data_stream_pb2.StreamSendTextRequest | None = ..., + byte_stream_open: _data_stream_pb2.ByteStreamOpenRequest | None = ..., + byte_stream_write: _data_stream_pb2.ByteStreamWriterWriteRequest | None = ..., + byte_stream_close: _data_stream_pb2.ByteStreamWriterCloseRequest | None = ..., + text_stream_open: _data_stream_pb2.TextStreamOpenRequest | None = ..., + text_stream_write: _data_stream_pb2.TextStreamWriterWriteRequest | None = ..., + text_stream_close: _data_stream_pb2.TextStreamWriterCloseRequest | None = ..., + send_bytes: _data_stream_pb2.StreamSendBytesRequest | None = ..., + set_remote_track_publication_quality: _track_publication_pb2.SetRemoteTrackPublicationQualityRequest | None = ..., + publish_data_track: _data_track_pb2.PublishDataTrackRequest | None = ..., + local_data_track_try_push: _data_track_pb2.LocalDataTrackTryPushRequest | None = ..., + local_data_track_unpublish: _data_track_pb2.LocalDataTrackUnpublishRequest | None = ..., + local_data_track_is_published: _data_track_pb2.LocalDataTrackIsPublishedRequest | None = ..., + subscribe_data_track: _data_track_pb2.SubscribeDataTrackRequest | None = ..., + remote_data_track_is_published: _data_track_pb2.RemoteDataTrackIsPublishedRequest | None = ..., + data_track_stream_read: _data_track_pb2.DataTrackStreamReadRequest | None = ..., + simulate_scenario: _room_pb2.SimulateScenarioRequest | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["apm_process_reverse_stream", b"apm_process_reverse_stream", "apm_process_stream", b"apm_process_stream", "apm_set_stream_delay", b"apm_set_stream_delay", "audio_stream_from_participant", b"audio_stream_from_participant", "byte_read_all", b"byte_read_all", "byte_read_incremental", b"byte_read_incremental", "byte_stream_close", b"byte_stream_close", "byte_stream_open", b"byte_stream_open", "byte_stream_write", b"byte_stream_write", "byte_write_to_file", b"byte_write_to_file", "capture_audio_frame", b"capture_audio_frame", "capture_video_frame", b"capture_video_frame", "clear_audio_buffer", b"clear_audio_buffer", "connect", b"connect", "create_audio_track", b"create_audio_track", "create_video_track", b"create_video_track", "data_track_stream_read", b"data_track_stream_read", "disconnect", b"disconnect", "dispose", b"dispose", "e2ee", b"e2ee", "edit_chat_message", b"edit_chat_message", "enable_remote_track", b"enable_remote_track", "enable_remote_track_publication", b"enable_remote_track_publication", "flush_sox_resampler", b"flush_sox_resampler", "get_session_stats", b"get_session_stats", "get_stats", b"get_stats", "load_audio_filter_plugin", b"load_audio_filter_plugin", "local_data_track_is_published", b"local_data_track_is_published", "local_data_track_try_push", b"local_data_track_try_push", "local_data_track_unpublish", b"local_data_track_unpublish", "local_track_mute", b"local_track_mute", "message", b"message", "new_apm", b"new_apm", "new_audio_resampler", b"new_audio_resampler", "new_audio_source", b"new_audio_source", "new_audio_stream", b"new_audio_stream", "new_sox_resampler", b"new_sox_resampler", "new_video_source", b"new_video_source", "new_video_stream", b"new_video_stream", "perform_rpc", b"perform_rpc", "publish_data", b"publish_data", "publish_data_track", b"publish_data_track", "publish_sip_dtmf", b"publish_sip_dtmf", "publish_track", b"publish_track", "publish_transcription", b"publish_transcription", "push_sox_resampler", b"push_sox_resampler", "register_rpc_method", b"register_rpc_method", "remix_and_resample", b"remix_and_resample", "remote_data_track_is_published", b"remote_data_track_is_published", "rpc_method_invocation_response", b"rpc_method_invocation_response", "send_bytes", b"send_bytes", "send_chat_message", b"send_chat_message", "send_file", b"send_file", "send_stream_chunk", b"send_stream_chunk", "send_stream_header", b"send_stream_header", "send_stream_trailer", b"send_stream_trailer", "send_text", b"send_text", "set_data_channel_buffered_amount_low_threshold", b"set_data_channel_buffered_amount_low_threshold", "set_local_attributes", b"set_local_attributes", "set_local_metadata", b"set_local_metadata", "set_local_name", b"set_local_name", "set_remote_track_publication_quality", b"set_remote_track_publication_quality", "set_subscribed", b"set_subscribed", "set_track_subscription_permissions", b"set_track_subscription_permissions", "subscribe_data_track", b"subscribe_data_track", "text_read_all", b"text_read_all", "text_read_incremental", b"text_read_incremental", "text_stream_close", b"text_stream_close", "text_stream_open", b"text_stream_open", "text_stream_write", b"text_stream_write", "unpublish_track", b"unpublish_track", "unregister_rpc_method", b"unregister_rpc_method", "update_remote_track_publication_dimension", b"update_remote_track_publication_dimension", "video_convert", b"video_convert", "video_stream_from_participant", b"video_stream_from_participant"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["apm_process_reverse_stream", b"apm_process_reverse_stream", "apm_process_stream", b"apm_process_stream", "apm_set_stream_delay", b"apm_set_stream_delay", "audio_stream_from_participant", b"audio_stream_from_participant", "byte_read_all", b"byte_read_all", "byte_read_incremental", b"byte_read_incremental", "byte_stream_close", b"byte_stream_close", "byte_stream_open", b"byte_stream_open", "byte_stream_write", b"byte_stream_write", "byte_write_to_file", b"byte_write_to_file", "capture_audio_frame", b"capture_audio_frame", "capture_video_frame", b"capture_video_frame", "clear_audio_buffer", b"clear_audio_buffer", "connect", b"connect", "create_audio_track", b"create_audio_track", "create_video_track", b"create_video_track", "data_track_stream_read", b"data_track_stream_read", "disconnect", b"disconnect", "dispose", b"dispose", "e2ee", b"e2ee", "edit_chat_message", b"edit_chat_message", "enable_remote_track", b"enable_remote_track", "enable_remote_track_publication", b"enable_remote_track_publication", "flush_sox_resampler", b"flush_sox_resampler", "get_session_stats", b"get_session_stats", "get_stats", b"get_stats", "load_audio_filter_plugin", b"load_audio_filter_plugin", "local_data_track_is_published", b"local_data_track_is_published", "local_data_track_try_push", b"local_data_track_try_push", "local_data_track_unpublish", b"local_data_track_unpublish", "local_track_mute", b"local_track_mute", "message", b"message", "new_apm", b"new_apm", "new_audio_resampler", b"new_audio_resampler", "new_audio_source", b"new_audio_source", "new_audio_stream", b"new_audio_stream", "new_sox_resampler", b"new_sox_resampler", "new_video_source", b"new_video_source", "new_video_stream", b"new_video_stream", "perform_rpc", b"perform_rpc", "publish_data", b"publish_data", "publish_data_track", b"publish_data_track", "publish_sip_dtmf", b"publish_sip_dtmf", "publish_track", b"publish_track", "publish_transcription", b"publish_transcription", "push_sox_resampler", b"push_sox_resampler", "register_rpc_method", b"register_rpc_method", "remix_and_resample", b"remix_and_resample", "remote_data_track_is_published", b"remote_data_track_is_published", "rpc_method_invocation_response", b"rpc_method_invocation_response", "send_bytes", b"send_bytes", "send_chat_message", b"send_chat_message", "send_file", b"send_file", "send_stream_chunk", b"send_stream_chunk", "send_stream_header", b"send_stream_header", "send_stream_trailer", b"send_stream_trailer", "send_text", b"send_text", "set_data_channel_buffered_amount_low_threshold", b"set_data_channel_buffered_amount_low_threshold", "set_local_attributes", b"set_local_attributes", "set_local_metadata", b"set_local_metadata", "set_local_name", b"set_local_name", "set_remote_track_publication_quality", b"set_remote_track_publication_quality", "set_subscribed", b"set_subscribed", "set_track_subscription_permissions", b"set_track_subscription_permissions", "subscribe_data_track", b"subscribe_data_track", "text_read_all", b"text_read_all", "text_read_incremental", b"text_read_incremental", "text_stream_close", b"text_stream_close", "text_stream_open", b"text_stream_open", "text_stream_write", b"text_stream_write", "unpublish_track", b"unpublish_track", "unregister_rpc_method", b"unregister_rpc_method", "update_remote_track_publication_dimension", b"update_remote_track_publication_dimension", "video_convert", b"video_convert", "video_stream_from_participant", b"video_stream_from_participant"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["dispose", "connect", "disconnect", "publish_track", "unpublish_track", "publish_data", "set_subscribed", "set_local_metadata", "set_local_name", "set_local_attributes", "get_session_stats", "publish_transcription", "publish_sip_dtmf", "create_video_track", "create_audio_track", "local_track_mute", "enable_remote_track", "get_stats", "set_track_subscription_permissions", "new_video_stream", "new_video_source", "capture_video_frame", "video_convert", "video_stream_from_participant", "new_audio_stream", "new_audio_source", "capture_audio_frame", "clear_audio_buffer", "new_audio_resampler", "remix_and_resample", "e2ee", "audio_stream_from_participant", "new_sox_resampler", "push_sox_resampler", "flush_sox_resampler", "send_chat_message", "edit_chat_message", "perform_rpc", "register_rpc_method", "unregister_rpc_method", "rpc_method_invocation_response", "enable_remote_track_publication", "update_remote_track_publication_dimension", "send_stream_header", "send_stream_chunk", "send_stream_trailer", "set_data_channel_buffered_amount_low_threshold", "load_audio_filter_plugin", "new_apm", "apm_process_stream", "apm_process_reverse_stream", "apm_set_stream_delay", "byte_read_incremental", "byte_read_all", "byte_write_to_file", "text_read_incremental", "text_read_all", "send_file", "send_text", "byte_stream_open", "byte_stream_write", "byte_stream_close", "text_stream_open", "text_stream_write", "text_stream_close", "send_bytes", "set_remote_track_publication_quality", "publish_data_track", "local_data_track_try_push", "local_data_track_unpublish", "local_data_track_is_published", "subscribe_data_track", "remote_data_track_is_published", "data_track_stream_read"] | None: ... - -global___FfiRequest = FfiRequest - -@typing.final -class FfiResponse(google.protobuf.message.Message): + _HasFieldArgType: _TypeAlias = _typing.Literal["apm_process_reverse_stream", b"apm_process_reverse_stream", "apm_process_stream", b"apm_process_stream", "apm_set_stream_delay", b"apm_set_stream_delay", "audio_stream_from_participant", b"audio_stream_from_participant", "byte_read_all", b"byte_read_all", "byte_read_incremental", b"byte_read_incremental", "byte_stream_close", b"byte_stream_close", "byte_stream_open", b"byte_stream_open", "byte_stream_write", b"byte_stream_write", "byte_write_to_file", b"byte_write_to_file", "capture_audio_frame", b"capture_audio_frame", "capture_video_frame", b"capture_video_frame", "clear_audio_buffer", b"clear_audio_buffer", "connect", b"connect", "create_audio_track", b"create_audio_track", "create_video_track", b"create_video_track", "data_track_stream_read", b"data_track_stream_read", "disconnect", b"disconnect", "dispose", b"dispose", "e2ee", b"e2ee", "edit_chat_message", b"edit_chat_message", "enable_remote_track", b"enable_remote_track", "enable_remote_track_publication", b"enable_remote_track_publication", "flush_sox_resampler", b"flush_sox_resampler", "get_session_stats", b"get_session_stats", "get_stats", b"get_stats", "load_audio_filter_plugin", b"load_audio_filter_plugin", "local_data_track_is_published", b"local_data_track_is_published", "local_data_track_try_push", b"local_data_track_try_push", "local_data_track_unpublish", b"local_data_track_unpublish", "local_track_mute", b"local_track_mute", "message", b"message", "new_apm", b"new_apm", "new_audio_resampler", b"new_audio_resampler", "new_audio_source", b"new_audio_source", "new_audio_stream", b"new_audio_stream", "new_sox_resampler", b"new_sox_resampler", "new_video_source", b"new_video_source", "new_video_stream", b"new_video_stream", "perform_rpc", b"perform_rpc", "publish_data", b"publish_data", "publish_data_track", b"publish_data_track", "publish_sip_dtmf", b"publish_sip_dtmf", "publish_track", b"publish_track", "publish_transcription", b"publish_transcription", "push_sox_resampler", b"push_sox_resampler", "register_rpc_method", b"register_rpc_method", "remix_and_resample", b"remix_and_resample", "remote_data_track_is_published", b"remote_data_track_is_published", "rpc_method_invocation_response", b"rpc_method_invocation_response", "send_bytes", b"send_bytes", "send_chat_message", b"send_chat_message", "send_file", b"send_file", "send_stream_chunk", b"send_stream_chunk", "send_stream_header", b"send_stream_header", "send_stream_trailer", b"send_stream_trailer", "send_text", b"send_text", "set_data_channel_buffered_amount_low_threshold", b"set_data_channel_buffered_amount_low_threshold", "set_local_attributes", b"set_local_attributes", "set_local_metadata", b"set_local_metadata", "set_local_name", b"set_local_name", "set_remote_track_publication_quality", b"set_remote_track_publication_quality", "set_subscribed", b"set_subscribed", "set_track_subscription_permissions", b"set_track_subscription_permissions", "simulate_scenario", b"simulate_scenario", "subscribe_data_track", b"subscribe_data_track", "text_read_all", b"text_read_all", "text_read_incremental", b"text_read_incremental", "text_stream_close", b"text_stream_close", "text_stream_open", b"text_stream_open", "text_stream_write", b"text_stream_write", "unpublish_track", b"unpublish_track", "unregister_rpc_method", b"unregister_rpc_method", "update_remote_track_publication_dimension", b"update_remote_track_publication_dimension", "video_convert", b"video_convert", "video_stream_from_participant", b"video_stream_from_participant"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["apm_process_reverse_stream", b"apm_process_reverse_stream", "apm_process_stream", b"apm_process_stream", "apm_set_stream_delay", b"apm_set_stream_delay", "audio_stream_from_participant", b"audio_stream_from_participant", "byte_read_all", b"byte_read_all", "byte_read_incremental", b"byte_read_incremental", "byte_stream_close", b"byte_stream_close", "byte_stream_open", b"byte_stream_open", "byte_stream_write", b"byte_stream_write", "byte_write_to_file", b"byte_write_to_file", "capture_audio_frame", b"capture_audio_frame", "capture_video_frame", b"capture_video_frame", "clear_audio_buffer", b"clear_audio_buffer", "connect", b"connect", "create_audio_track", b"create_audio_track", "create_video_track", b"create_video_track", "data_track_stream_read", b"data_track_stream_read", "disconnect", b"disconnect", "dispose", b"dispose", "e2ee", b"e2ee", "edit_chat_message", b"edit_chat_message", "enable_remote_track", b"enable_remote_track", "enable_remote_track_publication", b"enable_remote_track_publication", "flush_sox_resampler", b"flush_sox_resampler", "get_session_stats", b"get_session_stats", "get_stats", b"get_stats", "load_audio_filter_plugin", b"load_audio_filter_plugin", "local_data_track_is_published", b"local_data_track_is_published", "local_data_track_try_push", b"local_data_track_try_push", "local_data_track_unpublish", b"local_data_track_unpublish", "local_track_mute", b"local_track_mute", "message", b"message", "new_apm", b"new_apm", "new_audio_resampler", b"new_audio_resampler", "new_audio_source", b"new_audio_source", "new_audio_stream", b"new_audio_stream", "new_sox_resampler", b"new_sox_resampler", "new_video_source", b"new_video_source", "new_video_stream", b"new_video_stream", "perform_rpc", b"perform_rpc", "publish_data", b"publish_data", "publish_data_track", b"publish_data_track", "publish_sip_dtmf", b"publish_sip_dtmf", "publish_track", b"publish_track", "publish_transcription", b"publish_transcription", "push_sox_resampler", b"push_sox_resampler", "register_rpc_method", b"register_rpc_method", "remix_and_resample", b"remix_and_resample", "remote_data_track_is_published", b"remote_data_track_is_published", "rpc_method_invocation_response", b"rpc_method_invocation_response", "send_bytes", b"send_bytes", "send_chat_message", b"send_chat_message", "send_file", b"send_file", "send_stream_chunk", b"send_stream_chunk", "send_stream_header", b"send_stream_header", "send_stream_trailer", b"send_stream_trailer", "send_text", b"send_text", "set_data_channel_buffered_amount_low_threshold", b"set_data_channel_buffered_amount_low_threshold", "set_local_attributes", b"set_local_attributes", "set_local_metadata", b"set_local_metadata", "set_local_name", b"set_local_name", "set_remote_track_publication_quality", b"set_remote_track_publication_quality", "set_subscribed", b"set_subscribed", "set_track_subscription_permissions", b"set_track_subscription_permissions", "simulate_scenario", b"simulate_scenario", "subscribe_data_track", b"subscribe_data_track", "text_read_all", b"text_read_all", "text_read_incremental", b"text_read_incremental", "text_stream_close", b"text_stream_close", "text_stream_open", b"text_stream_open", "text_stream_write", b"text_stream_write", "unpublish_track", b"unpublish_track", "unregister_rpc_method", b"unregister_rpc_method", "update_remote_track_publication_dimension", b"update_remote_track_publication_dimension", "video_convert", b"video_convert", "video_stream_from_participant", b"video_stream_from_participant"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["dispose", "connect", "disconnect", "publish_track", "unpublish_track", "publish_data", "set_subscribed", "set_local_metadata", "set_local_name", "set_local_attributes", "get_session_stats", "publish_transcription", "publish_sip_dtmf", "create_video_track", "create_audio_track", "local_track_mute", "enable_remote_track", "get_stats", "set_track_subscription_permissions", "new_video_stream", "new_video_source", "capture_video_frame", "video_convert", "video_stream_from_participant", "new_audio_stream", "new_audio_source", "capture_audio_frame", "clear_audio_buffer", "new_audio_resampler", "remix_and_resample", "e2ee", "audio_stream_from_participant", "new_sox_resampler", "push_sox_resampler", "flush_sox_resampler", "send_chat_message", "edit_chat_message", "perform_rpc", "register_rpc_method", "unregister_rpc_method", "rpc_method_invocation_response", "enable_remote_track_publication", "update_remote_track_publication_dimension", "send_stream_header", "send_stream_chunk", "send_stream_trailer", "set_data_channel_buffered_amount_low_threshold", "load_audio_filter_plugin", "new_apm", "apm_process_stream", "apm_process_reverse_stream", "apm_set_stream_delay", "byte_read_incremental", "byte_read_all", "byte_write_to_file", "text_read_incremental", "text_read_all", "send_file", "send_text", "byte_stream_open", "byte_stream_write", "byte_stream_close", "text_stream_open", "text_stream_write", "text_stream_close", "send_bytes", "set_remote_track_publication_quality", "publish_data_track", "local_data_track_try_push", "local_data_track_unpublish", "local_data_track_is_published", "subscribe_data_track", "remote_data_track_is_published", "data_track_stream_read", "simulate_scenario"] # noqa: Y015 + _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... + +Global___FfiRequest: _TypeAlias = FfiRequest # noqa: Y015 + +@_typing.final +class FfiResponse(_message.Message): """This is the output of livekit_ffi_request function.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - DISPOSE_FIELD_NUMBER: builtins.int - CONNECT_FIELD_NUMBER: builtins.int - DISCONNECT_FIELD_NUMBER: builtins.int - PUBLISH_TRACK_FIELD_NUMBER: builtins.int - UNPUBLISH_TRACK_FIELD_NUMBER: builtins.int - PUBLISH_DATA_FIELD_NUMBER: builtins.int - SET_SUBSCRIBED_FIELD_NUMBER: builtins.int - SET_LOCAL_METADATA_FIELD_NUMBER: builtins.int - SET_LOCAL_NAME_FIELD_NUMBER: builtins.int - SET_LOCAL_ATTRIBUTES_FIELD_NUMBER: builtins.int - GET_SESSION_STATS_FIELD_NUMBER: builtins.int - PUBLISH_TRANSCRIPTION_FIELD_NUMBER: builtins.int - PUBLISH_SIP_DTMF_FIELD_NUMBER: builtins.int - CREATE_VIDEO_TRACK_FIELD_NUMBER: builtins.int - CREATE_AUDIO_TRACK_FIELD_NUMBER: builtins.int - LOCAL_TRACK_MUTE_FIELD_NUMBER: builtins.int - ENABLE_REMOTE_TRACK_FIELD_NUMBER: builtins.int - GET_STATS_FIELD_NUMBER: builtins.int - SET_TRACK_SUBSCRIPTION_PERMISSIONS_FIELD_NUMBER: builtins.int - NEW_VIDEO_STREAM_FIELD_NUMBER: builtins.int - NEW_VIDEO_SOURCE_FIELD_NUMBER: builtins.int - CAPTURE_VIDEO_FRAME_FIELD_NUMBER: builtins.int - VIDEO_CONVERT_FIELD_NUMBER: builtins.int - VIDEO_STREAM_FROM_PARTICIPANT_FIELD_NUMBER: builtins.int - NEW_AUDIO_STREAM_FIELD_NUMBER: builtins.int - NEW_AUDIO_SOURCE_FIELD_NUMBER: builtins.int - CAPTURE_AUDIO_FRAME_FIELD_NUMBER: builtins.int - CLEAR_AUDIO_BUFFER_FIELD_NUMBER: builtins.int - NEW_AUDIO_RESAMPLER_FIELD_NUMBER: builtins.int - REMIX_AND_RESAMPLE_FIELD_NUMBER: builtins.int - AUDIO_STREAM_FROM_PARTICIPANT_FIELD_NUMBER: builtins.int - E2EE_FIELD_NUMBER: builtins.int - NEW_SOX_RESAMPLER_FIELD_NUMBER: builtins.int - PUSH_SOX_RESAMPLER_FIELD_NUMBER: builtins.int - FLUSH_SOX_RESAMPLER_FIELD_NUMBER: builtins.int - SEND_CHAT_MESSAGE_FIELD_NUMBER: builtins.int - PERFORM_RPC_FIELD_NUMBER: builtins.int - REGISTER_RPC_METHOD_FIELD_NUMBER: builtins.int - UNREGISTER_RPC_METHOD_FIELD_NUMBER: builtins.int - RPC_METHOD_INVOCATION_RESPONSE_FIELD_NUMBER: builtins.int - ENABLE_REMOTE_TRACK_PUBLICATION_FIELD_NUMBER: builtins.int - UPDATE_REMOTE_TRACK_PUBLICATION_DIMENSION_FIELD_NUMBER: builtins.int - SEND_STREAM_HEADER_FIELD_NUMBER: builtins.int - SEND_STREAM_CHUNK_FIELD_NUMBER: builtins.int - SEND_STREAM_TRAILER_FIELD_NUMBER: builtins.int - SET_DATA_CHANNEL_BUFFERED_AMOUNT_LOW_THRESHOLD_FIELD_NUMBER: builtins.int - LOAD_AUDIO_FILTER_PLUGIN_FIELD_NUMBER: builtins.int - NEW_APM_FIELD_NUMBER: builtins.int - APM_PROCESS_STREAM_FIELD_NUMBER: builtins.int - APM_PROCESS_REVERSE_STREAM_FIELD_NUMBER: builtins.int - APM_SET_STREAM_DELAY_FIELD_NUMBER: builtins.int - BYTE_READ_INCREMENTAL_FIELD_NUMBER: builtins.int - BYTE_READ_ALL_FIELD_NUMBER: builtins.int - BYTE_WRITE_TO_FILE_FIELD_NUMBER: builtins.int - TEXT_READ_INCREMENTAL_FIELD_NUMBER: builtins.int - TEXT_READ_ALL_FIELD_NUMBER: builtins.int - SEND_FILE_FIELD_NUMBER: builtins.int - SEND_TEXT_FIELD_NUMBER: builtins.int - BYTE_STREAM_OPEN_FIELD_NUMBER: builtins.int - BYTE_STREAM_WRITE_FIELD_NUMBER: builtins.int - BYTE_STREAM_CLOSE_FIELD_NUMBER: builtins.int - TEXT_STREAM_OPEN_FIELD_NUMBER: builtins.int - TEXT_STREAM_WRITE_FIELD_NUMBER: builtins.int - TEXT_STREAM_CLOSE_FIELD_NUMBER: builtins.int - SEND_BYTES_FIELD_NUMBER: builtins.int - SET_REMOTE_TRACK_PUBLICATION_QUALITY_FIELD_NUMBER: builtins.int - PUBLISH_DATA_TRACK_FIELD_NUMBER: builtins.int - LOCAL_DATA_TRACK_TRY_PUSH_FIELD_NUMBER: builtins.int - LOCAL_DATA_TRACK_UNPUBLISH_FIELD_NUMBER: builtins.int - LOCAL_DATA_TRACK_IS_PUBLISHED_FIELD_NUMBER: builtins.int - SUBSCRIBE_DATA_TRACK_FIELD_NUMBER: builtins.int - REMOTE_DATA_TRACK_IS_PUBLISHED_FIELD_NUMBER: builtins.int - DATA_TRACK_STREAM_READ_FIELD_NUMBER: builtins.int - @property - def dispose(self) -> global___DisposeResponse: ... - @property - def connect(self) -> room_pb2.ConnectResponse: + DESCRIPTOR: _descriptor.Descriptor + + DISPOSE_FIELD_NUMBER: _builtins.int + CONNECT_FIELD_NUMBER: _builtins.int + DISCONNECT_FIELD_NUMBER: _builtins.int + PUBLISH_TRACK_FIELD_NUMBER: _builtins.int + UNPUBLISH_TRACK_FIELD_NUMBER: _builtins.int + PUBLISH_DATA_FIELD_NUMBER: _builtins.int + SET_SUBSCRIBED_FIELD_NUMBER: _builtins.int + SET_LOCAL_METADATA_FIELD_NUMBER: _builtins.int + SET_LOCAL_NAME_FIELD_NUMBER: _builtins.int + SET_LOCAL_ATTRIBUTES_FIELD_NUMBER: _builtins.int + GET_SESSION_STATS_FIELD_NUMBER: _builtins.int + PUBLISH_TRANSCRIPTION_FIELD_NUMBER: _builtins.int + PUBLISH_SIP_DTMF_FIELD_NUMBER: _builtins.int + CREATE_VIDEO_TRACK_FIELD_NUMBER: _builtins.int + CREATE_AUDIO_TRACK_FIELD_NUMBER: _builtins.int + LOCAL_TRACK_MUTE_FIELD_NUMBER: _builtins.int + ENABLE_REMOTE_TRACK_FIELD_NUMBER: _builtins.int + GET_STATS_FIELD_NUMBER: _builtins.int + SET_TRACK_SUBSCRIPTION_PERMISSIONS_FIELD_NUMBER: _builtins.int + NEW_VIDEO_STREAM_FIELD_NUMBER: _builtins.int + NEW_VIDEO_SOURCE_FIELD_NUMBER: _builtins.int + CAPTURE_VIDEO_FRAME_FIELD_NUMBER: _builtins.int + VIDEO_CONVERT_FIELD_NUMBER: _builtins.int + VIDEO_STREAM_FROM_PARTICIPANT_FIELD_NUMBER: _builtins.int + NEW_AUDIO_STREAM_FIELD_NUMBER: _builtins.int + NEW_AUDIO_SOURCE_FIELD_NUMBER: _builtins.int + CAPTURE_AUDIO_FRAME_FIELD_NUMBER: _builtins.int + CLEAR_AUDIO_BUFFER_FIELD_NUMBER: _builtins.int + NEW_AUDIO_RESAMPLER_FIELD_NUMBER: _builtins.int + REMIX_AND_RESAMPLE_FIELD_NUMBER: _builtins.int + AUDIO_STREAM_FROM_PARTICIPANT_FIELD_NUMBER: _builtins.int + E2EE_FIELD_NUMBER: _builtins.int + NEW_SOX_RESAMPLER_FIELD_NUMBER: _builtins.int + PUSH_SOX_RESAMPLER_FIELD_NUMBER: _builtins.int + FLUSH_SOX_RESAMPLER_FIELD_NUMBER: _builtins.int + SEND_CHAT_MESSAGE_FIELD_NUMBER: _builtins.int + PERFORM_RPC_FIELD_NUMBER: _builtins.int + REGISTER_RPC_METHOD_FIELD_NUMBER: _builtins.int + UNREGISTER_RPC_METHOD_FIELD_NUMBER: _builtins.int + RPC_METHOD_INVOCATION_RESPONSE_FIELD_NUMBER: _builtins.int + ENABLE_REMOTE_TRACK_PUBLICATION_FIELD_NUMBER: _builtins.int + UPDATE_REMOTE_TRACK_PUBLICATION_DIMENSION_FIELD_NUMBER: _builtins.int + SEND_STREAM_HEADER_FIELD_NUMBER: _builtins.int + SEND_STREAM_CHUNK_FIELD_NUMBER: _builtins.int + SEND_STREAM_TRAILER_FIELD_NUMBER: _builtins.int + SET_DATA_CHANNEL_BUFFERED_AMOUNT_LOW_THRESHOLD_FIELD_NUMBER: _builtins.int + LOAD_AUDIO_FILTER_PLUGIN_FIELD_NUMBER: _builtins.int + NEW_APM_FIELD_NUMBER: _builtins.int + APM_PROCESS_STREAM_FIELD_NUMBER: _builtins.int + APM_PROCESS_REVERSE_STREAM_FIELD_NUMBER: _builtins.int + APM_SET_STREAM_DELAY_FIELD_NUMBER: _builtins.int + BYTE_READ_INCREMENTAL_FIELD_NUMBER: _builtins.int + BYTE_READ_ALL_FIELD_NUMBER: _builtins.int + BYTE_WRITE_TO_FILE_FIELD_NUMBER: _builtins.int + TEXT_READ_INCREMENTAL_FIELD_NUMBER: _builtins.int + TEXT_READ_ALL_FIELD_NUMBER: _builtins.int + SEND_FILE_FIELD_NUMBER: _builtins.int + SEND_TEXT_FIELD_NUMBER: _builtins.int + BYTE_STREAM_OPEN_FIELD_NUMBER: _builtins.int + BYTE_STREAM_WRITE_FIELD_NUMBER: _builtins.int + BYTE_STREAM_CLOSE_FIELD_NUMBER: _builtins.int + TEXT_STREAM_OPEN_FIELD_NUMBER: _builtins.int + TEXT_STREAM_WRITE_FIELD_NUMBER: _builtins.int + TEXT_STREAM_CLOSE_FIELD_NUMBER: _builtins.int + SEND_BYTES_FIELD_NUMBER: _builtins.int + SET_REMOTE_TRACK_PUBLICATION_QUALITY_FIELD_NUMBER: _builtins.int + PUBLISH_DATA_TRACK_FIELD_NUMBER: _builtins.int + LOCAL_DATA_TRACK_TRY_PUSH_FIELD_NUMBER: _builtins.int + LOCAL_DATA_TRACK_UNPUBLISH_FIELD_NUMBER: _builtins.int + LOCAL_DATA_TRACK_IS_PUBLISHED_FIELD_NUMBER: _builtins.int + SUBSCRIBE_DATA_TRACK_FIELD_NUMBER: _builtins.int + REMOTE_DATA_TRACK_IS_PUBLISHED_FIELD_NUMBER: _builtins.int + DATA_TRACK_STREAM_READ_FIELD_NUMBER: _builtins.int + SIMULATE_SCENARIO_FIELD_NUMBER: _builtins.int + @_builtins.property + def dispose(self) -> Global___DisposeResponse: ... + @_builtins.property + def connect(self) -> _room_pb2.ConnectResponse: """Room""" - @property - def disconnect(self) -> room_pb2.DisconnectResponse: ... - @property - def publish_track(self) -> room_pb2.PublishTrackResponse: ... - @property - def unpublish_track(self) -> room_pb2.UnpublishTrackResponse: ... - @property - def publish_data(self) -> room_pb2.PublishDataResponse: ... - @property - def set_subscribed(self) -> room_pb2.SetSubscribedResponse: ... - @property - def set_local_metadata(self) -> room_pb2.SetLocalMetadataResponse: ... - @property - def set_local_name(self) -> room_pb2.SetLocalNameResponse: ... - @property - def set_local_attributes(self) -> room_pb2.SetLocalAttributesResponse: ... - @property - def get_session_stats(self) -> room_pb2.GetSessionStatsResponse: ... - @property - def publish_transcription(self) -> room_pb2.PublishTranscriptionResponse: ... - @property - def publish_sip_dtmf(self) -> room_pb2.PublishSipDtmfResponse: ... - @property - def create_video_track(self) -> track_pb2.CreateVideoTrackResponse: + @_builtins.property + def disconnect(self) -> _room_pb2.DisconnectResponse: ... + @_builtins.property + def publish_track(self) -> _room_pb2.PublishTrackResponse: ... + @_builtins.property + def unpublish_track(self) -> _room_pb2.UnpublishTrackResponse: ... + @_builtins.property + def publish_data(self) -> _room_pb2.PublishDataResponse: ... + @_builtins.property + def set_subscribed(self) -> _room_pb2.SetSubscribedResponse: ... + @_builtins.property + def set_local_metadata(self) -> _room_pb2.SetLocalMetadataResponse: ... + @_builtins.property + def set_local_name(self) -> _room_pb2.SetLocalNameResponse: ... + @_builtins.property + def set_local_attributes(self) -> _room_pb2.SetLocalAttributesResponse: ... + @_builtins.property + def get_session_stats(self) -> _room_pb2.GetSessionStatsResponse: ... + @_builtins.property + def publish_transcription(self) -> _room_pb2.PublishTranscriptionResponse: ... + @_builtins.property + def publish_sip_dtmf(self) -> _room_pb2.PublishSipDtmfResponse: ... + @_builtins.property + def create_video_track(self) -> _track_pb2.CreateVideoTrackResponse: """Track""" - @property - def create_audio_track(self) -> track_pb2.CreateAudioTrackResponse: ... - @property - def local_track_mute(self) -> track_pb2.LocalTrackMuteResponse: ... - @property - def enable_remote_track(self) -> track_pb2.EnableRemoteTrackResponse: ... - @property - def get_stats(self) -> track_pb2.GetStatsResponse: ... - @property - def set_track_subscription_permissions(self) -> track_pb2.SetTrackSubscriptionPermissionsResponse: ... - @property - def new_video_stream(self) -> video_frame_pb2.NewVideoStreamResponse: + @_builtins.property + def create_audio_track(self) -> _track_pb2.CreateAudioTrackResponse: ... + @_builtins.property + def local_track_mute(self) -> _track_pb2.LocalTrackMuteResponse: ... + @_builtins.property + def enable_remote_track(self) -> _track_pb2.EnableRemoteTrackResponse: ... + @_builtins.property + def get_stats(self) -> _track_pb2.GetStatsResponse: ... + @_builtins.property + def set_track_subscription_permissions(self) -> _track_pb2.SetTrackSubscriptionPermissionsResponse: ... + @_builtins.property + def new_video_stream(self) -> _video_frame_pb2.NewVideoStreamResponse: """Video""" - @property - def new_video_source(self) -> video_frame_pb2.NewVideoSourceResponse: ... - @property - def capture_video_frame(self) -> video_frame_pb2.CaptureVideoFrameResponse: ... - @property - def video_convert(self) -> video_frame_pb2.VideoConvertResponse: ... - @property - def video_stream_from_participant(self) -> video_frame_pb2.VideoStreamFromParticipantResponse: ... - @property - def new_audio_stream(self) -> audio_frame_pb2.NewAudioStreamResponse: + @_builtins.property + def new_video_source(self) -> _video_frame_pb2.NewVideoSourceResponse: ... + @_builtins.property + def capture_video_frame(self) -> _video_frame_pb2.CaptureVideoFrameResponse: ... + @_builtins.property + def video_convert(self) -> _video_frame_pb2.VideoConvertResponse: ... + @_builtins.property + def video_stream_from_participant(self) -> _video_frame_pb2.VideoStreamFromParticipantResponse: ... + @_builtins.property + def new_audio_stream(self) -> _audio_frame_pb2.NewAudioStreamResponse: """Audio""" - @property - def new_audio_source(self) -> audio_frame_pb2.NewAudioSourceResponse: ... - @property - def capture_audio_frame(self) -> audio_frame_pb2.CaptureAudioFrameResponse: ... - @property - def clear_audio_buffer(self) -> audio_frame_pb2.ClearAudioBufferResponse: ... - @property - def new_audio_resampler(self) -> audio_frame_pb2.NewAudioResamplerResponse: ... - @property - def remix_and_resample(self) -> audio_frame_pb2.RemixAndResampleResponse: ... - @property - def audio_stream_from_participant(self) -> audio_frame_pb2.AudioStreamFromParticipantResponse: ... - @property - def e2ee(self) -> e2ee_pb2.E2eeResponse: ... - @property - def new_sox_resampler(self) -> audio_frame_pb2.NewSoxResamplerResponse: ... - @property - def push_sox_resampler(self) -> audio_frame_pb2.PushSoxResamplerResponse: ... - @property - def flush_sox_resampler(self) -> audio_frame_pb2.FlushSoxResamplerResponse: ... - @property - def send_chat_message(self) -> room_pb2.SendChatMessageResponse: ... - @property - def perform_rpc(self) -> rpc_pb2.PerformRpcResponse: + @_builtins.property + def new_audio_source(self) -> _audio_frame_pb2.NewAudioSourceResponse: ... + @_builtins.property + def capture_audio_frame(self) -> _audio_frame_pb2.CaptureAudioFrameResponse: ... + @_builtins.property + def clear_audio_buffer(self) -> _audio_frame_pb2.ClearAudioBufferResponse: ... + @_builtins.property + def new_audio_resampler(self) -> _audio_frame_pb2.NewAudioResamplerResponse: ... + @_builtins.property + def remix_and_resample(self) -> _audio_frame_pb2.RemixAndResampleResponse: ... + @_builtins.property + def audio_stream_from_participant(self) -> _audio_frame_pb2.AudioStreamFromParticipantResponse: ... + @_builtins.property + def e2ee(self) -> _e2ee_pb2.E2eeResponse: ... + @_builtins.property + def new_sox_resampler(self) -> _audio_frame_pb2.NewSoxResamplerResponse: ... + @_builtins.property + def push_sox_resampler(self) -> _audio_frame_pb2.PushSoxResamplerResponse: ... + @_builtins.property + def flush_sox_resampler(self) -> _audio_frame_pb2.FlushSoxResamplerResponse: ... + @_builtins.property + def send_chat_message(self) -> _room_pb2.SendChatMessageResponse: ... + @_builtins.property + def perform_rpc(self) -> _rpc_pb2.PerformRpcResponse: """RPC""" - @property - def register_rpc_method(self) -> rpc_pb2.RegisterRpcMethodResponse: ... - @property - def unregister_rpc_method(self) -> rpc_pb2.UnregisterRpcMethodResponse: ... - @property - def rpc_method_invocation_response(self) -> rpc_pb2.RpcMethodInvocationResponseResponse: ... - @property - def enable_remote_track_publication(self) -> track_publication_pb2.EnableRemoteTrackPublicationResponse: + @_builtins.property + def register_rpc_method(self) -> _rpc_pb2.RegisterRpcMethodResponse: ... + @_builtins.property + def unregister_rpc_method(self) -> _rpc_pb2.UnregisterRpcMethodResponse: ... + @_builtins.property + def rpc_method_invocation_response(self) -> _rpc_pb2.RpcMethodInvocationResponseResponse: ... + @_builtins.property + def enable_remote_track_publication(self) -> _track_publication_pb2.EnableRemoteTrackPublicationResponse: """Track Publication""" - @property - def update_remote_track_publication_dimension(self) -> track_publication_pb2.UpdateRemoteTrackPublicationDimensionResponse: ... - @property - def send_stream_header(self) -> room_pb2.SendStreamHeaderResponse: + @_builtins.property + def update_remote_track_publication_dimension(self) -> _track_publication_pb2.UpdateRemoteTrackPublicationDimensionResponse: ... + @_builtins.property + def send_stream_header(self) -> _room_pb2.SendStreamHeaderResponse: """Data Streams""" - @property - def send_stream_chunk(self) -> room_pb2.SendStreamChunkResponse: ... - @property - def send_stream_trailer(self) -> room_pb2.SendStreamTrailerResponse: ... - @property - def set_data_channel_buffered_amount_low_threshold(self) -> room_pb2.SetDataChannelBufferedAmountLowThresholdResponse: + @_builtins.property + def send_stream_chunk(self) -> _room_pb2.SendStreamChunkResponse: ... + @_builtins.property + def send_stream_trailer(self) -> _room_pb2.SendStreamTrailerResponse: ... + @_builtins.property + def set_data_channel_buffered_amount_low_threshold(self) -> _room_pb2.SetDataChannelBufferedAmountLowThresholdResponse: """Data Channel""" - @property - def load_audio_filter_plugin(self) -> audio_frame_pb2.LoadAudioFilterPluginResponse: + @_builtins.property + def load_audio_filter_plugin(self) -> _audio_frame_pb2.LoadAudioFilterPluginResponse: """Audio Filter Plugin""" - @property - def new_apm(self) -> audio_frame_pb2.NewApmResponse: ... - @property - def apm_process_stream(self) -> audio_frame_pb2.ApmProcessStreamResponse: ... - @property - def apm_process_reverse_stream(self) -> audio_frame_pb2.ApmProcessReverseStreamResponse: ... - @property - def apm_set_stream_delay(self) -> audio_frame_pb2.ApmSetStreamDelayResponse: ... - @property - def byte_read_incremental(self) -> data_stream_pb2.ByteStreamReaderReadIncrementalResponse: + @_builtins.property + def new_apm(self) -> _audio_frame_pb2.NewApmResponse: ... + @_builtins.property + def apm_process_stream(self) -> _audio_frame_pb2.ApmProcessStreamResponse: ... + @_builtins.property + def apm_process_reverse_stream(self) -> _audio_frame_pb2.ApmProcessReverseStreamResponse: ... + @_builtins.property + def apm_set_stream_delay(self) -> _audio_frame_pb2.ApmSetStreamDelayResponse: ... + @_builtins.property + def byte_read_incremental(self) -> _data_stream_pb2.ByteStreamReaderReadIncrementalResponse: """Data Streams (high level)""" - @property - def byte_read_all(self) -> data_stream_pb2.ByteStreamReaderReadAllResponse: ... - @property - def byte_write_to_file(self) -> data_stream_pb2.ByteStreamReaderWriteToFileResponse: ... - @property - def text_read_incremental(self) -> data_stream_pb2.TextStreamReaderReadIncrementalResponse: ... - @property - def text_read_all(self) -> data_stream_pb2.TextStreamReaderReadAllResponse: ... - @property - def send_file(self) -> data_stream_pb2.StreamSendFileResponse: ... - @property - def send_text(self) -> data_stream_pb2.StreamSendTextResponse: ... - @property - def byte_stream_open(self) -> data_stream_pb2.ByteStreamOpenResponse: ... - @property - def byte_stream_write(self) -> data_stream_pb2.ByteStreamWriterWriteResponse: ... - @property - def byte_stream_close(self) -> data_stream_pb2.ByteStreamWriterCloseResponse: ... - @property - def text_stream_open(self) -> data_stream_pb2.TextStreamOpenResponse: ... - @property - def text_stream_write(self) -> data_stream_pb2.TextStreamWriterWriteResponse: ... - @property - def text_stream_close(self) -> data_stream_pb2.TextStreamWriterCloseResponse: ... - @property - def send_bytes(self) -> data_stream_pb2.StreamSendBytesResponse: ... - @property - def set_remote_track_publication_quality(self) -> track_publication_pb2.SetRemoteTrackPublicationQualityResponse: ... - @property - def publish_data_track(self) -> data_track_pb2.PublishDataTrackResponse: + @_builtins.property + def byte_read_all(self) -> _data_stream_pb2.ByteStreamReaderReadAllResponse: ... + @_builtins.property + def byte_write_to_file(self) -> _data_stream_pb2.ByteStreamReaderWriteToFileResponse: ... + @_builtins.property + def text_read_incremental(self) -> _data_stream_pb2.TextStreamReaderReadIncrementalResponse: ... + @_builtins.property + def text_read_all(self) -> _data_stream_pb2.TextStreamReaderReadAllResponse: ... + @_builtins.property + def send_file(self) -> _data_stream_pb2.StreamSendFileResponse: ... + @_builtins.property + def send_text(self) -> _data_stream_pb2.StreamSendTextResponse: ... + @_builtins.property + def byte_stream_open(self) -> _data_stream_pb2.ByteStreamOpenResponse: ... + @_builtins.property + def byte_stream_write(self) -> _data_stream_pb2.ByteStreamWriterWriteResponse: ... + @_builtins.property + def byte_stream_close(self) -> _data_stream_pb2.ByteStreamWriterCloseResponse: ... + @_builtins.property + def text_stream_open(self) -> _data_stream_pb2.TextStreamOpenResponse: ... + @_builtins.property + def text_stream_write(self) -> _data_stream_pb2.TextStreamWriterWriteResponse: ... + @_builtins.property + def text_stream_close(self) -> _data_stream_pb2.TextStreamWriterCloseResponse: ... + @_builtins.property + def send_bytes(self) -> _data_stream_pb2.StreamSendBytesResponse: ... + @_builtins.property + def set_remote_track_publication_quality(self) -> _track_publication_pb2.SetRemoteTrackPublicationQualityResponse: ... + @_builtins.property + def publish_data_track(self) -> _data_track_pb2.PublishDataTrackResponse: """Data Track (local)""" - @property - def local_data_track_try_push(self) -> data_track_pb2.LocalDataTrackTryPushResponse: ... - @property - def local_data_track_unpublish(self) -> data_track_pb2.LocalDataTrackUnpublishResponse: ... - @property - def local_data_track_is_published(self) -> data_track_pb2.LocalDataTrackIsPublishedResponse: ... - @property - def subscribe_data_track(self) -> data_track_pb2.SubscribeDataTrackResponse: + @_builtins.property + def local_data_track_try_push(self) -> _data_track_pb2.LocalDataTrackTryPushResponse: ... + @_builtins.property + def local_data_track_unpublish(self) -> _data_track_pb2.LocalDataTrackUnpublishResponse: ... + @_builtins.property + def local_data_track_is_published(self) -> _data_track_pb2.LocalDataTrackIsPublishedResponse: ... + @_builtins.property + def subscribe_data_track(self) -> _data_track_pb2.SubscribeDataTrackResponse: """Data Track (remote)""" - @property - def remote_data_track_is_published(self) -> data_track_pb2.RemoteDataTrackIsPublishedResponse: ... - @property - def data_track_stream_read(self) -> data_track_pb2.DataTrackStreamReadResponse: ... + @_builtins.property + def remote_data_track_is_published(self) -> _data_track_pb2.RemoteDataTrackIsPublishedResponse: ... + @_builtins.property + def data_track_stream_read(self) -> _data_track_pb2.DataTrackStreamReadResponse: ... + @_builtins.property + def simulate_scenario(self) -> _room_pb2.SimulateScenarioResponse: + """Reconnection / chaos testing""" + def __init__( self, *, - dispose: global___DisposeResponse | None = ..., - connect: room_pb2.ConnectResponse | None = ..., - disconnect: room_pb2.DisconnectResponse | None = ..., - publish_track: room_pb2.PublishTrackResponse | None = ..., - unpublish_track: room_pb2.UnpublishTrackResponse | None = ..., - publish_data: room_pb2.PublishDataResponse | None = ..., - set_subscribed: room_pb2.SetSubscribedResponse | None = ..., - set_local_metadata: room_pb2.SetLocalMetadataResponse | None = ..., - set_local_name: room_pb2.SetLocalNameResponse | None = ..., - set_local_attributes: room_pb2.SetLocalAttributesResponse | None = ..., - get_session_stats: room_pb2.GetSessionStatsResponse | None = ..., - publish_transcription: room_pb2.PublishTranscriptionResponse | None = ..., - publish_sip_dtmf: room_pb2.PublishSipDtmfResponse | None = ..., - create_video_track: track_pb2.CreateVideoTrackResponse | None = ..., - create_audio_track: track_pb2.CreateAudioTrackResponse | None = ..., - local_track_mute: track_pb2.LocalTrackMuteResponse | None = ..., - enable_remote_track: track_pb2.EnableRemoteTrackResponse | None = ..., - get_stats: track_pb2.GetStatsResponse | None = ..., - set_track_subscription_permissions: track_pb2.SetTrackSubscriptionPermissionsResponse | None = ..., - new_video_stream: video_frame_pb2.NewVideoStreamResponse | None = ..., - new_video_source: video_frame_pb2.NewVideoSourceResponse | None = ..., - capture_video_frame: video_frame_pb2.CaptureVideoFrameResponse | None = ..., - video_convert: video_frame_pb2.VideoConvertResponse | None = ..., - video_stream_from_participant: video_frame_pb2.VideoStreamFromParticipantResponse | None = ..., - new_audio_stream: audio_frame_pb2.NewAudioStreamResponse | None = ..., - new_audio_source: audio_frame_pb2.NewAudioSourceResponse | None = ..., - capture_audio_frame: audio_frame_pb2.CaptureAudioFrameResponse | None = ..., - clear_audio_buffer: audio_frame_pb2.ClearAudioBufferResponse | None = ..., - new_audio_resampler: audio_frame_pb2.NewAudioResamplerResponse | None = ..., - remix_and_resample: audio_frame_pb2.RemixAndResampleResponse | None = ..., - audio_stream_from_participant: audio_frame_pb2.AudioStreamFromParticipantResponse | None = ..., - e2ee: e2ee_pb2.E2eeResponse | None = ..., - new_sox_resampler: audio_frame_pb2.NewSoxResamplerResponse | None = ..., - push_sox_resampler: audio_frame_pb2.PushSoxResamplerResponse | None = ..., - flush_sox_resampler: audio_frame_pb2.FlushSoxResamplerResponse | None = ..., - send_chat_message: room_pb2.SendChatMessageResponse | None = ..., - perform_rpc: rpc_pb2.PerformRpcResponse | None = ..., - register_rpc_method: rpc_pb2.RegisterRpcMethodResponse | None = ..., - unregister_rpc_method: rpc_pb2.UnregisterRpcMethodResponse | None = ..., - rpc_method_invocation_response: rpc_pb2.RpcMethodInvocationResponseResponse | None = ..., - enable_remote_track_publication: track_publication_pb2.EnableRemoteTrackPublicationResponse | None = ..., - update_remote_track_publication_dimension: track_publication_pb2.UpdateRemoteTrackPublicationDimensionResponse | None = ..., - send_stream_header: room_pb2.SendStreamHeaderResponse | None = ..., - send_stream_chunk: room_pb2.SendStreamChunkResponse | None = ..., - send_stream_trailer: room_pb2.SendStreamTrailerResponse | None = ..., - set_data_channel_buffered_amount_low_threshold: room_pb2.SetDataChannelBufferedAmountLowThresholdResponse | None = ..., - load_audio_filter_plugin: audio_frame_pb2.LoadAudioFilterPluginResponse | None = ..., - new_apm: audio_frame_pb2.NewApmResponse | None = ..., - apm_process_stream: audio_frame_pb2.ApmProcessStreamResponse | None = ..., - apm_process_reverse_stream: audio_frame_pb2.ApmProcessReverseStreamResponse | None = ..., - apm_set_stream_delay: audio_frame_pb2.ApmSetStreamDelayResponse | None = ..., - byte_read_incremental: data_stream_pb2.ByteStreamReaderReadIncrementalResponse | None = ..., - byte_read_all: data_stream_pb2.ByteStreamReaderReadAllResponse | None = ..., - byte_write_to_file: data_stream_pb2.ByteStreamReaderWriteToFileResponse | None = ..., - text_read_incremental: data_stream_pb2.TextStreamReaderReadIncrementalResponse | None = ..., - text_read_all: data_stream_pb2.TextStreamReaderReadAllResponse | None = ..., - send_file: data_stream_pb2.StreamSendFileResponse | None = ..., - send_text: data_stream_pb2.StreamSendTextResponse | None = ..., - byte_stream_open: data_stream_pb2.ByteStreamOpenResponse | None = ..., - byte_stream_write: data_stream_pb2.ByteStreamWriterWriteResponse | None = ..., - byte_stream_close: data_stream_pb2.ByteStreamWriterCloseResponse | None = ..., - text_stream_open: data_stream_pb2.TextStreamOpenResponse | None = ..., - text_stream_write: data_stream_pb2.TextStreamWriterWriteResponse | None = ..., - text_stream_close: data_stream_pb2.TextStreamWriterCloseResponse | None = ..., - send_bytes: data_stream_pb2.StreamSendBytesResponse | None = ..., - set_remote_track_publication_quality: track_publication_pb2.SetRemoteTrackPublicationQualityResponse | None = ..., - publish_data_track: data_track_pb2.PublishDataTrackResponse | None = ..., - local_data_track_try_push: data_track_pb2.LocalDataTrackTryPushResponse | None = ..., - local_data_track_unpublish: data_track_pb2.LocalDataTrackUnpublishResponse | None = ..., - local_data_track_is_published: data_track_pb2.LocalDataTrackIsPublishedResponse | None = ..., - subscribe_data_track: data_track_pb2.SubscribeDataTrackResponse | None = ..., - remote_data_track_is_published: data_track_pb2.RemoteDataTrackIsPublishedResponse | None = ..., - data_track_stream_read: data_track_pb2.DataTrackStreamReadResponse | None = ..., + dispose: Global___DisposeResponse | None = ..., + connect: _room_pb2.ConnectResponse | None = ..., + disconnect: _room_pb2.DisconnectResponse | None = ..., + publish_track: _room_pb2.PublishTrackResponse | None = ..., + unpublish_track: _room_pb2.UnpublishTrackResponse | None = ..., + publish_data: _room_pb2.PublishDataResponse | None = ..., + set_subscribed: _room_pb2.SetSubscribedResponse | None = ..., + set_local_metadata: _room_pb2.SetLocalMetadataResponse | None = ..., + set_local_name: _room_pb2.SetLocalNameResponse | None = ..., + set_local_attributes: _room_pb2.SetLocalAttributesResponse | None = ..., + get_session_stats: _room_pb2.GetSessionStatsResponse | None = ..., + publish_transcription: _room_pb2.PublishTranscriptionResponse | None = ..., + publish_sip_dtmf: _room_pb2.PublishSipDtmfResponse | None = ..., + create_video_track: _track_pb2.CreateVideoTrackResponse | None = ..., + create_audio_track: _track_pb2.CreateAudioTrackResponse | None = ..., + local_track_mute: _track_pb2.LocalTrackMuteResponse | None = ..., + enable_remote_track: _track_pb2.EnableRemoteTrackResponse | None = ..., + get_stats: _track_pb2.GetStatsResponse | None = ..., + set_track_subscription_permissions: _track_pb2.SetTrackSubscriptionPermissionsResponse | None = ..., + new_video_stream: _video_frame_pb2.NewVideoStreamResponse | None = ..., + new_video_source: _video_frame_pb2.NewVideoSourceResponse | None = ..., + capture_video_frame: _video_frame_pb2.CaptureVideoFrameResponse | None = ..., + video_convert: _video_frame_pb2.VideoConvertResponse | None = ..., + video_stream_from_participant: _video_frame_pb2.VideoStreamFromParticipantResponse | None = ..., + new_audio_stream: _audio_frame_pb2.NewAudioStreamResponse | None = ..., + new_audio_source: _audio_frame_pb2.NewAudioSourceResponse | None = ..., + capture_audio_frame: _audio_frame_pb2.CaptureAudioFrameResponse | None = ..., + clear_audio_buffer: _audio_frame_pb2.ClearAudioBufferResponse | None = ..., + new_audio_resampler: _audio_frame_pb2.NewAudioResamplerResponse | None = ..., + remix_and_resample: _audio_frame_pb2.RemixAndResampleResponse | None = ..., + audio_stream_from_participant: _audio_frame_pb2.AudioStreamFromParticipantResponse | None = ..., + e2ee: _e2ee_pb2.E2eeResponse | None = ..., + new_sox_resampler: _audio_frame_pb2.NewSoxResamplerResponse | None = ..., + push_sox_resampler: _audio_frame_pb2.PushSoxResamplerResponse | None = ..., + flush_sox_resampler: _audio_frame_pb2.FlushSoxResamplerResponse | None = ..., + send_chat_message: _room_pb2.SendChatMessageResponse | None = ..., + perform_rpc: _rpc_pb2.PerformRpcResponse | None = ..., + register_rpc_method: _rpc_pb2.RegisterRpcMethodResponse | None = ..., + unregister_rpc_method: _rpc_pb2.UnregisterRpcMethodResponse | None = ..., + rpc_method_invocation_response: _rpc_pb2.RpcMethodInvocationResponseResponse | None = ..., + enable_remote_track_publication: _track_publication_pb2.EnableRemoteTrackPublicationResponse | None = ..., + update_remote_track_publication_dimension: _track_publication_pb2.UpdateRemoteTrackPublicationDimensionResponse | None = ..., + send_stream_header: _room_pb2.SendStreamHeaderResponse | None = ..., + send_stream_chunk: _room_pb2.SendStreamChunkResponse | None = ..., + send_stream_trailer: _room_pb2.SendStreamTrailerResponse | None = ..., + set_data_channel_buffered_amount_low_threshold: _room_pb2.SetDataChannelBufferedAmountLowThresholdResponse | None = ..., + load_audio_filter_plugin: _audio_frame_pb2.LoadAudioFilterPluginResponse | None = ..., + new_apm: _audio_frame_pb2.NewApmResponse | None = ..., + apm_process_stream: _audio_frame_pb2.ApmProcessStreamResponse | None = ..., + apm_process_reverse_stream: _audio_frame_pb2.ApmProcessReverseStreamResponse | None = ..., + apm_set_stream_delay: _audio_frame_pb2.ApmSetStreamDelayResponse | None = ..., + byte_read_incremental: _data_stream_pb2.ByteStreamReaderReadIncrementalResponse | None = ..., + byte_read_all: _data_stream_pb2.ByteStreamReaderReadAllResponse | None = ..., + byte_write_to_file: _data_stream_pb2.ByteStreamReaderWriteToFileResponse | None = ..., + text_read_incremental: _data_stream_pb2.TextStreamReaderReadIncrementalResponse | None = ..., + text_read_all: _data_stream_pb2.TextStreamReaderReadAllResponse | None = ..., + send_file: _data_stream_pb2.StreamSendFileResponse | None = ..., + send_text: _data_stream_pb2.StreamSendTextResponse | None = ..., + byte_stream_open: _data_stream_pb2.ByteStreamOpenResponse | None = ..., + byte_stream_write: _data_stream_pb2.ByteStreamWriterWriteResponse | None = ..., + byte_stream_close: _data_stream_pb2.ByteStreamWriterCloseResponse | None = ..., + text_stream_open: _data_stream_pb2.TextStreamOpenResponse | None = ..., + text_stream_write: _data_stream_pb2.TextStreamWriterWriteResponse | None = ..., + text_stream_close: _data_stream_pb2.TextStreamWriterCloseResponse | None = ..., + send_bytes: _data_stream_pb2.StreamSendBytesResponse | None = ..., + set_remote_track_publication_quality: _track_publication_pb2.SetRemoteTrackPublicationQualityResponse | None = ..., + publish_data_track: _data_track_pb2.PublishDataTrackResponse | None = ..., + local_data_track_try_push: _data_track_pb2.LocalDataTrackTryPushResponse | None = ..., + local_data_track_unpublish: _data_track_pb2.LocalDataTrackUnpublishResponse | None = ..., + local_data_track_is_published: _data_track_pb2.LocalDataTrackIsPublishedResponse | None = ..., + subscribe_data_track: _data_track_pb2.SubscribeDataTrackResponse | None = ..., + remote_data_track_is_published: _data_track_pb2.RemoteDataTrackIsPublishedResponse | None = ..., + data_track_stream_read: _data_track_pb2.DataTrackStreamReadResponse | None = ..., + simulate_scenario: _room_pb2.SimulateScenarioResponse | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["apm_process_reverse_stream", b"apm_process_reverse_stream", "apm_process_stream", b"apm_process_stream", "apm_set_stream_delay", b"apm_set_stream_delay", "audio_stream_from_participant", b"audio_stream_from_participant", "byte_read_all", b"byte_read_all", "byte_read_incremental", b"byte_read_incremental", "byte_stream_close", b"byte_stream_close", "byte_stream_open", b"byte_stream_open", "byte_stream_write", b"byte_stream_write", "byte_write_to_file", b"byte_write_to_file", "capture_audio_frame", b"capture_audio_frame", "capture_video_frame", b"capture_video_frame", "clear_audio_buffer", b"clear_audio_buffer", "connect", b"connect", "create_audio_track", b"create_audio_track", "create_video_track", b"create_video_track", "data_track_stream_read", b"data_track_stream_read", "disconnect", b"disconnect", "dispose", b"dispose", "e2ee", b"e2ee", "enable_remote_track", b"enable_remote_track", "enable_remote_track_publication", b"enable_remote_track_publication", "flush_sox_resampler", b"flush_sox_resampler", "get_session_stats", b"get_session_stats", "get_stats", b"get_stats", "load_audio_filter_plugin", b"load_audio_filter_plugin", "local_data_track_is_published", b"local_data_track_is_published", "local_data_track_try_push", b"local_data_track_try_push", "local_data_track_unpublish", b"local_data_track_unpublish", "local_track_mute", b"local_track_mute", "message", b"message", "new_apm", b"new_apm", "new_audio_resampler", b"new_audio_resampler", "new_audio_source", b"new_audio_source", "new_audio_stream", b"new_audio_stream", "new_sox_resampler", b"new_sox_resampler", "new_video_source", b"new_video_source", "new_video_stream", b"new_video_stream", "perform_rpc", b"perform_rpc", "publish_data", b"publish_data", "publish_data_track", b"publish_data_track", "publish_sip_dtmf", b"publish_sip_dtmf", "publish_track", b"publish_track", "publish_transcription", b"publish_transcription", "push_sox_resampler", b"push_sox_resampler", "register_rpc_method", b"register_rpc_method", "remix_and_resample", b"remix_and_resample", "remote_data_track_is_published", b"remote_data_track_is_published", "rpc_method_invocation_response", b"rpc_method_invocation_response", "send_bytes", b"send_bytes", "send_chat_message", b"send_chat_message", "send_file", b"send_file", "send_stream_chunk", b"send_stream_chunk", "send_stream_header", b"send_stream_header", "send_stream_trailer", b"send_stream_trailer", "send_text", b"send_text", "set_data_channel_buffered_amount_low_threshold", b"set_data_channel_buffered_amount_low_threshold", "set_local_attributes", b"set_local_attributes", "set_local_metadata", b"set_local_metadata", "set_local_name", b"set_local_name", "set_remote_track_publication_quality", b"set_remote_track_publication_quality", "set_subscribed", b"set_subscribed", "set_track_subscription_permissions", b"set_track_subscription_permissions", "subscribe_data_track", b"subscribe_data_track", "text_read_all", b"text_read_all", "text_read_incremental", b"text_read_incremental", "text_stream_close", b"text_stream_close", "text_stream_open", b"text_stream_open", "text_stream_write", b"text_stream_write", "unpublish_track", b"unpublish_track", "unregister_rpc_method", b"unregister_rpc_method", "update_remote_track_publication_dimension", b"update_remote_track_publication_dimension", "video_convert", b"video_convert", "video_stream_from_participant", b"video_stream_from_participant"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["apm_process_reverse_stream", b"apm_process_reverse_stream", "apm_process_stream", b"apm_process_stream", "apm_set_stream_delay", b"apm_set_stream_delay", "audio_stream_from_participant", b"audio_stream_from_participant", "byte_read_all", b"byte_read_all", "byte_read_incremental", b"byte_read_incremental", "byte_stream_close", b"byte_stream_close", "byte_stream_open", b"byte_stream_open", "byte_stream_write", b"byte_stream_write", "byte_write_to_file", b"byte_write_to_file", "capture_audio_frame", b"capture_audio_frame", "capture_video_frame", b"capture_video_frame", "clear_audio_buffer", b"clear_audio_buffer", "connect", b"connect", "create_audio_track", b"create_audio_track", "create_video_track", b"create_video_track", "data_track_stream_read", b"data_track_stream_read", "disconnect", b"disconnect", "dispose", b"dispose", "e2ee", b"e2ee", "enable_remote_track", b"enable_remote_track", "enable_remote_track_publication", b"enable_remote_track_publication", "flush_sox_resampler", b"flush_sox_resampler", "get_session_stats", b"get_session_stats", "get_stats", b"get_stats", "load_audio_filter_plugin", b"load_audio_filter_plugin", "local_data_track_is_published", b"local_data_track_is_published", "local_data_track_try_push", b"local_data_track_try_push", "local_data_track_unpublish", b"local_data_track_unpublish", "local_track_mute", b"local_track_mute", "message", b"message", "new_apm", b"new_apm", "new_audio_resampler", b"new_audio_resampler", "new_audio_source", b"new_audio_source", "new_audio_stream", b"new_audio_stream", "new_sox_resampler", b"new_sox_resampler", "new_video_source", b"new_video_source", "new_video_stream", b"new_video_stream", "perform_rpc", b"perform_rpc", "publish_data", b"publish_data", "publish_data_track", b"publish_data_track", "publish_sip_dtmf", b"publish_sip_dtmf", "publish_track", b"publish_track", "publish_transcription", b"publish_transcription", "push_sox_resampler", b"push_sox_resampler", "register_rpc_method", b"register_rpc_method", "remix_and_resample", b"remix_and_resample", "remote_data_track_is_published", b"remote_data_track_is_published", "rpc_method_invocation_response", b"rpc_method_invocation_response", "send_bytes", b"send_bytes", "send_chat_message", b"send_chat_message", "send_file", b"send_file", "send_stream_chunk", b"send_stream_chunk", "send_stream_header", b"send_stream_header", "send_stream_trailer", b"send_stream_trailer", "send_text", b"send_text", "set_data_channel_buffered_amount_low_threshold", b"set_data_channel_buffered_amount_low_threshold", "set_local_attributes", b"set_local_attributes", "set_local_metadata", b"set_local_metadata", "set_local_name", b"set_local_name", "set_remote_track_publication_quality", b"set_remote_track_publication_quality", "set_subscribed", b"set_subscribed", "set_track_subscription_permissions", b"set_track_subscription_permissions", "subscribe_data_track", b"subscribe_data_track", "text_read_all", b"text_read_all", "text_read_incremental", b"text_read_incremental", "text_stream_close", b"text_stream_close", "text_stream_open", b"text_stream_open", "text_stream_write", b"text_stream_write", "unpublish_track", b"unpublish_track", "unregister_rpc_method", b"unregister_rpc_method", "update_remote_track_publication_dimension", b"update_remote_track_publication_dimension", "video_convert", b"video_convert", "video_stream_from_participant", b"video_stream_from_participant"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["dispose", "connect", "disconnect", "publish_track", "unpublish_track", "publish_data", "set_subscribed", "set_local_metadata", "set_local_name", "set_local_attributes", "get_session_stats", "publish_transcription", "publish_sip_dtmf", "create_video_track", "create_audio_track", "local_track_mute", "enable_remote_track", "get_stats", "set_track_subscription_permissions", "new_video_stream", "new_video_source", "capture_video_frame", "video_convert", "video_stream_from_participant", "new_audio_stream", "new_audio_source", "capture_audio_frame", "clear_audio_buffer", "new_audio_resampler", "remix_and_resample", "audio_stream_from_participant", "e2ee", "new_sox_resampler", "push_sox_resampler", "flush_sox_resampler", "send_chat_message", "perform_rpc", "register_rpc_method", "unregister_rpc_method", "rpc_method_invocation_response", "enable_remote_track_publication", "update_remote_track_publication_dimension", "send_stream_header", "send_stream_chunk", "send_stream_trailer", "set_data_channel_buffered_amount_low_threshold", "load_audio_filter_plugin", "new_apm", "apm_process_stream", "apm_process_reverse_stream", "apm_set_stream_delay", "byte_read_incremental", "byte_read_all", "byte_write_to_file", "text_read_incremental", "text_read_all", "send_file", "send_text", "byte_stream_open", "byte_stream_write", "byte_stream_close", "text_stream_open", "text_stream_write", "text_stream_close", "send_bytes", "set_remote_track_publication_quality", "publish_data_track", "local_data_track_try_push", "local_data_track_unpublish", "local_data_track_is_published", "subscribe_data_track", "remote_data_track_is_published", "data_track_stream_read"] | None: ... - -global___FfiResponse = FfiResponse - -@typing.final -class FfiEvent(google.protobuf.message.Message): + _HasFieldArgType: _TypeAlias = _typing.Literal["apm_process_reverse_stream", b"apm_process_reverse_stream", "apm_process_stream", b"apm_process_stream", "apm_set_stream_delay", b"apm_set_stream_delay", "audio_stream_from_participant", b"audio_stream_from_participant", "byte_read_all", b"byte_read_all", "byte_read_incremental", b"byte_read_incremental", "byte_stream_close", b"byte_stream_close", "byte_stream_open", b"byte_stream_open", "byte_stream_write", b"byte_stream_write", "byte_write_to_file", b"byte_write_to_file", "capture_audio_frame", b"capture_audio_frame", "capture_video_frame", b"capture_video_frame", "clear_audio_buffer", b"clear_audio_buffer", "connect", b"connect", "create_audio_track", b"create_audio_track", "create_video_track", b"create_video_track", "data_track_stream_read", b"data_track_stream_read", "disconnect", b"disconnect", "dispose", b"dispose", "e2ee", b"e2ee", "enable_remote_track", b"enable_remote_track", "enable_remote_track_publication", b"enable_remote_track_publication", "flush_sox_resampler", b"flush_sox_resampler", "get_session_stats", b"get_session_stats", "get_stats", b"get_stats", "load_audio_filter_plugin", b"load_audio_filter_plugin", "local_data_track_is_published", b"local_data_track_is_published", "local_data_track_try_push", b"local_data_track_try_push", "local_data_track_unpublish", b"local_data_track_unpublish", "local_track_mute", b"local_track_mute", "message", b"message", "new_apm", b"new_apm", "new_audio_resampler", b"new_audio_resampler", "new_audio_source", b"new_audio_source", "new_audio_stream", b"new_audio_stream", "new_sox_resampler", b"new_sox_resampler", "new_video_source", b"new_video_source", "new_video_stream", b"new_video_stream", "perform_rpc", b"perform_rpc", "publish_data", b"publish_data", "publish_data_track", b"publish_data_track", "publish_sip_dtmf", b"publish_sip_dtmf", "publish_track", b"publish_track", "publish_transcription", b"publish_transcription", "push_sox_resampler", b"push_sox_resampler", "register_rpc_method", b"register_rpc_method", "remix_and_resample", b"remix_and_resample", "remote_data_track_is_published", b"remote_data_track_is_published", "rpc_method_invocation_response", b"rpc_method_invocation_response", "send_bytes", b"send_bytes", "send_chat_message", b"send_chat_message", "send_file", b"send_file", "send_stream_chunk", b"send_stream_chunk", "send_stream_header", b"send_stream_header", "send_stream_trailer", b"send_stream_trailer", "send_text", b"send_text", "set_data_channel_buffered_amount_low_threshold", b"set_data_channel_buffered_amount_low_threshold", "set_local_attributes", b"set_local_attributes", "set_local_metadata", b"set_local_metadata", "set_local_name", b"set_local_name", "set_remote_track_publication_quality", b"set_remote_track_publication_quality", "set_subscribed", b"set_subscribed", "set_track_subscription_permissions", b"set_track_subscription_permissions", "simulate_scenario", b"simulate_scenario", "subscribe_data_track", b"subscribe_data_track", "text_read_all", b"text_read_all", "text_read_incremental", b"text_read_incremental", "text_stream_close", b"text_stream_close", "text_stream_open", b"text_stream_open", "text_stream_write", b"text_stream_write", "unpublish_track", b"unpublish_track", "unregister_rpc_method", b"unregister_rpc_method", "update_remote_track_publication_dimension", b"update_remote_track_publication_dimension", "video_convert", b"video_convert", "video_stream_from_participant", b"video_stream_from_participant"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["apm_process_reverse_stream", b"apm_process_reverse_stream", "apm_process_stream", b"apm_process_stream", "apm_set_stream_delay", b"apm_set_stream_delay", "audio_stream_from_participant", b"audio_stream_from_participant", "byte_read_all", b"byte_read_all", "byte_read_incremental", b"byte_read_incremental", "byte_stream_close", b"byte_stream_close", "byte_stream_open", b"byte_stream_open", "byte_stream_write", b"byte_stream_write", "byte_write_to_file", b"byte_write_to_file", "capture_audio_frame", b"capture_audio_frame", "capture_video_frame", b"capture_video_frame", "clear_audio_buffer", b"clear_audio_buffer", "connect", b"connect", "create_audio_track", b"create_audio_track", "create_video_track", b"create_video_track", "data_track_stream_read", b"data_track_stream_read", "disconnect", b"disconnect", "dispose", b"dispose", "e2ee", b"e2ee", "enable_remote_track", b"enable_remote_track", "enable_remote_track_publication", b"enable_remote_track_publication", "flush_sox_resampler", b"flush_sox_resampler", "get_session_stats", b"get_session_stats", "get_stats", b"get_stats", "load_audio_filter_plugin", b"load_audio_filter_plugin", "local_data_track_is_published", b"local_data_track_is_published", "local_data_track_try_push", b"local_data_track_try_push", "local_data_track_unpublish", b"local_data_track_unpublish", "local_track_mute", b"local_track_mute", "message", b"message", "new_apm", b"new_apm", "new_audio_resampler", b"new_audio_resampler", "new_audio_source", b"new_audio_source", "new_audio_stream", b"new_audio_stream", "new_sox_resampler", b"new_sox_resampler", "new_video_source", b"new_video_source", "new_video_stream", b"new_video_stream", "perform_rpc", b"perform_rpc", "publish_data", b"publish_data", "publish_data_track", b"publish_data_track", "publish_sip_dtmf", b"publish_sip_dtmf", "publish_track", b"publish_track", "publish_transcription", b"publish_transcription", "push_sox_resampler", b"push_sox_resampler", "register_rpc_method", b"register_rpc_method", "remix_and_resample", b"remix_and_resample", "remote_data_track_is_published", b"remote_data_track_is_published", "rpc_method_invocation_response", b"rpc_method_invocation_response", "send_bytes", b"send_bytes", "send_chat_message", b"send_chat_message", "send_file", b"send_file", "send_stream_chunk", b"send_stream_chunk", "send_stream_header", b"send_stream_header", "send_stream_trailer", b"send_stream_trailer", "send_text", b"send_text", "set_data_channel_buffered_amount_low_threshold", b"set_data_channel_buffered_amount_low_threshold", "set_local_attributes", b"set_local_attributes", "set_local_metadata", b"set_local_metadata", "set_local_name", b"set_local_name", "set_remote_track_publication_quality", b"set_remote_track_publication_quality", "set_subscribed", b"set_subscribed", "set_track_subscription_permissions", b"set_track_subscription_permissions", "simulate_scenario", b"simulate_scenario", "subscribe_data_track", b"subscribe_data_track", "text_read_all", b"text_read_all", "text_read_incremental", b"text_read_incremental", "text_stream_close", b"text_stream_close", "text_stream_open", b"text_stream_open", "text_stream_write", b"text_stream_write", "unpublish_track", b"unpublish_track", "unregister_rpc_method", b"unregister_rpc_method", "update_remote_track_publication_dimension", b"update_remote_track_publication_dimension", "video_convert", b"video_convert", "video_stream_from_participant", b"video_stream_from_participant"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["dispose", "connect", "disconnect", "publish_track", "unpublish_track", "publish_data", "set_subscribed", "set_local_metadata", "set_local_name", "set_local_attributes", "get_session_stats", "publish_transcription", "publish_sip_dtmf", "create_video_track", "create_audio_track", "local_track_mute", "enable_remote_track", "get_stats", "set_track_subscription_permissions", "new_video_stream", "new_video_source", "capture_video_frame", "video_convert", "video_stream_from_participant", "new_audio_stream", "new_audio_source", "capture_audio_frame", "clear_audio_buffer", "new_audio_resampler", "remix_and_resample", "audio_stream_from_participant", "e2ee", "new_sox_resampler", "push_sox_resampler", "flush_sox_resampler", "send_chat_message", "perform_rpc", "register_rpc_method", "unregister_rpc_method", "rpc_method_invocation_response", "enable_remote_track_publication", "update_remote_track_publication_dimension", "send_stream_header", "send_stream_chunk", "send_stream_trailer", "set_data_channel_buffered_amount_low_threshold", "load_audio_filter_plugin", "new_apm", "apm_process_stream", "apm_process_reverse_stream", "apm_set_stream_delay", "byte_read_incremental", "byte_read_all", "byte_write_to_file", "text_read_incremental", "text_read_all", "send_file", "send_text", "byte_stream_open", "byte_stream_write", "byte_stream_close", "text_stream_open", "text_stream_write", "text_stream_close", "send_bytes", "set_remote_track_publication_quality", "publish_data_track", "local_data_track_try_push", "local_data_track_unpublish", "local_data_track_is_published", "subscribe_data_track", "remote_data_track_is_published", "data_track_stream_read", "simulate_scenario"] # noqa: Y015 + _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... + +Global___FfiResponse: _TypeAlias = FfiResponse # noqa: Y015 + +@_typing.final +class FfiEvent(_message.Message): """To minimize complexity, participant events are not included in the protocol. It is easily deducible from the room events and it turned out that is is easier to implement on the ffi client side. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ROOM_EVENT_FIELD_NUMBER: builtins.int - TRACK_EVENT_FIELD_NUMBER: builtins.int - VIDEO_STREAM_EVENT_FIELD_NUMBER: builtins.int - AUDIO_STREAM_EVENT_FIELD_NUMBER: builtins.int - CONNECT_FIELD_NUMBER: builtins.int - DISCONNECT_FIELD_NUMBER: builtins.int - DISPOSE_FIELD_NUMBER: builtins.int - PUBLISH_TRACK_FIELD_NUMBER: builtins.int - UNPUBLISH_TRACK_FIELD_NUMBER: builtins.int - PUBLISH_DATA_FIELD_NUMBER: builtins.int - PUBLISH_TRANSCRIPTION_FIELD_NUMBER: builtins.int - CAPTURE_AUDIO_FRAME_FIELD_NUMBER: builtins.int - SET_LOCAL_METADATA_FIELD_NUMBER: builtins.int - SET_LOCAL_NAME_FIELD_NUMBER: builtins.int - SET_LOCAL_ATTRIBUTES_FIELD_NUMBER: builtins.int - GET_STATS_FIELD_NUMBER: builtins.int - LOGS_FIELD_NUMBER: builtins.int - GET_SESSION_STATS_FIELD_NUMBER: builtins.int - PANIC_FIELD_NUMBER: builtins.int - PUBLISH_SIP_DTMF_FIELD_NUMBER: builtins.int - CHAT_MESSAGE_FIELD_NUMBER: builtins.int - PERFORM_RPC_FIELD_NUMBER: builtins.int - RPC_METHOD_INVOCATION_FIELD_NUMBER: builtins.int - SEND_STREAM_HEADER_FIELD_NUMBER: builtins.int - SEND_STREAM_CHUNK_FIELD_NUMBER: builtins.int - SEND_STREAM_TRAILER_FIELD_NUMBER: builtins.int - BYTE_STREAM_READER_EVENT_FIELD_NUMBER: builtins.int - BYTE_STREAM_READER_READ_ALL_FIELD_NUMBER: builtins.int - BYTE_STREAM_READER_WRITE_TO_FILE_FIELD_NUMBER: builtins.int - BYTE_STREAM_OPEN_FIELD_NUMBER: builtins.int - BYTE_STREAM_WRITER_WRITE_FIELD_NUMBER: builtins.int - BYTE_STREAM_WRITER_CLOSE_FIELD_NUMBER: builtins.int - SEND_FILE_FIELD_NUMBER: builtins.int - TEXT_STREAM_READER_EVENT_FIELD_NUMBER: builtins.int - TEXT_STREAM_READER_READ_ALL_FIELD_NUMBER: builtins.int - TEXT_STREAM_OPEN_FIELD_NUMBER: builtins.int - TEXT_STREAM_WRITER_WRITE_FIELD_NUMBER: builtins.int - TEXT_STREAM_WRITER_CLOSE_FIELD_NUMBER: builtins.int - SEND_TEXT_FIELD_NUMBER: builtins.int - SEND_BYTES_FIELD_NUMBER: builtins.int - PUBLISH_DATA_TRACK_FIELD_NUMBER: builtins.int - DATA_TRACK_STREAM_EVENT_FIELD_NUMBER: builtins.int - @property - def room_event(self) -> room_pb2.RoomEvent: ... - @property - def track_event(self) -> track_pb2.TrackEvent: ... - @property - def video_stream_event(self) -> video_frame_pb2.VideoStreamEvent: ... - @property - def audio_stream_event(self) -> audio_frame_pb2.AudioStreamEvent: ... - @property - def connect(self) -> room_pb2.ConnectCallback: ... - @property - def disconnect(self) -> room_pb2.DisconnectCallback: ... - @property - def dispose(self) -> global___DisposeCallback: ... - @property - def publish_track(self) -> room_pb2.PublishTrackCallback: ... - @property - def unpublish_track(self) -> room_pb2.UnpublishTrackCallback: ... - @property - def publish_data(self) -> room_pb2.PublishDataCallback: ... - @property - def publish_transcription(self) -> room_pb2.PublishTranscriptionCallback: ... - @property - def capture_audio_frame(self) -> audio_frame_pb2.CaptureAudioFrameCallback: ... - @property - def set_local_metadata(self) -> room_pb2.SetLocalMetadataCallback: ... - @property - def set_local_name(self) -> room_pb2.SetLocalNameCallback: ... - @property - def set_local_attributes(self) -> room_pb2.SetLocalAttributesCallback: ... - @property - def get_stats(self) -> track_pb2.GetStatsCallback: ... - @property - def logs(self) -> global___LogBatch: ... - @property - def get_session_stats(self) -> room_pb2.GetSessionStatsCallback: ... - @property - def panic(self) -> global___Panic: ... - @property - def publish_sip_dtmf(self) -> room_pb2.PublishSipDtmfCallback: ... - @property - def chat_message(self) -> room_pb2.SendChatMessageCallback: ... - @property - def perform_rpc(self) -> rpc_pb2.PerformRpcCallback: ... - @property - def rpc_method_invocation(self) -> rpc_pb2.RpcMethodInvocationEvent: ... - @property - def send_stream_header(self) -> room_pb2.SendStreamHeaderCallback: + DESCRIPTOR: _descriptor.Descriptor + + ROOM_EVENT_FIELD_NUMBER: _builtins.int + TRACK_EVENT_FIELD_NUMBER: _builtins.int + VIDEO_STREAM_EVENT_FIELD_NUMBER: _builtins.int + AUDIO_STREAM_EVENT_FIELD_NUMBER: _builtins.int + CONNECT_FIELD_NUMBER: _builtins.int + DISCONNECT_FIELD_NUMBER: _builtins.int + DISPOSE_FIELD_NUMBER: _builtins.int + PUBLISH_TRACK_FIELD_NUMBER: _builtins.int + UNPUBLISH_TRACK_FIELD_NUMBER: _builtins.int + PUBLISH_DATA_FIELD_NUMBER: _builtins.int + PUBLISH_TRANSCRIPTION_FIELD_NUMBER: _builtins.int + CAPTURE_AUDIO_FRAME_FIELD_NUMBER: _builtins.int + SET_LOCAL_METADATA_FIELD_NUMBER: _builtins.int + SET_LOCAL_NAME_FIELD_NUMBER: _builtins.int + SET_LOCAL_ATTRIBUTES_FIELD_NUMBER: _builtins.int + GET_STATS_FIELD_NUMBER: _builtins.int + LOGS_FIELD_NUMBER: _builtins.int + GET_SESSION_STATS_FIELD_NUMBER: _builtins.int + PANIC_FIELD_NUMBER: _builtins.int + PUBLISH_SIP_DTMF_FIELD_NUMBER: _builtins.int + CHAT_MESSAGE_FIELD_NUMBER: _builtins.int + PERFORM_RPC_FIELD_NUMBER: _builtins.int + RPC_METHOD_INVOCATION_FIELD_NUMBER: _builtins.int + SEND_STREAM_HEADER_FIELD_NUMBER: _builtins.int + SEND_STREAM_CHUNK_FIELD_NUMBER: _builtins.int + SEND_STREAM_TRAILER_FIELD_NUMBER: _builtins.int + BYTE_STREAM_READER_EVENT_FIELD_NUMBER: _builtins.int + BYTE_STREAM_READER_READ_ALL_FIELD_NUMBER: _builtins.int + BYTE_STREAM_READER_WRITE_TO_FILE_FIELD_NUMBER: _builtins.int + BYTE_STREAM_OPEN_FIELD_NUMBER: _builtins.int + BYTE_STREAM_WRITER_WRITE_FIELD_NUMBER: _builtins.int + BYTE_STREAM_WRITER_CLOSE_FIELD_NUMBER: _builtins.int + SEND_FILE_FIELD_NUMBER: _builtins.int + TEXT_STREAM_READER_EVENT_FIELD_NUMBER: _builtins.int + TEXT_STREAM_READER_READ_ALL_FIELD_NUMBER: _builtins.int + TEXT_STREAM_OPEN_FIELD_NUMBER: _builtins.int + TEXT_STREAM_WRITER_WRITE_FIELD_NUMBER: _builtins.int + TEXT_STREAM_WRITER_CLOSE_FIELD_NUMBER: _builtins.int + SEND_TEXT_FIELD_NUMBER: _builtins.int + SEND_BYTES_FIELD_NUMBER: _builtins.int + PUBLISH_DATA_TRACK_FIELD_NUMBER: _builtins.int + DATA_TRACK_STREAM_EVENT_FIELD_NUMBER: _builtins.int + SIMULATE_SCENARIO_FIELD_NUMBER: _builtins.int + @_builtins.property + def room_event(self) -> _room_pb2.RoomEvent: ... + @_builtins.property + def track_event(self) -> _track_pb2.TrackEvent: ... + @_builtins.property + def video_stream_event(self) -> _video_frame_pb2.VideoStreamEvent: ... + @_builtins.property + def audio_stream_event(self) -> _audio_frame_pb2.AudioStreamEvent: ... + @_builtins.property + def connect(self) -> _room_pb2.ConnectCallback: ... + @_builtins.property + def disconnect(self) -> _room_pb2.DisconnectCallback: ... + @_builtins.property + def dispose(self) -> Global___DisposeCallback: ... + @_builtins.property + def publish_track(self) -> _room_pb2.PublishTrackCallback: ... + @_builtins.property + def unpublish_track(self) -> _room_pb2.UnpublishTrackCallback: ... + @_builtins.property + def publish_data(self) -> _room_pb2.PublishDataCallback: ... + @_builtins.property + def publish_transcription(self) -> _room_pb2.PublishTranscriptionCallback: ... + @_builtins.property + def capture_audio_frame(self) -> _audio_frame_pb2.CaptureAudioFrameCallback: ... + @_builtins.property + def set_local_metadata(self) -> _room_pb2.SetLocalMetadataCallback: ... + @_builtins.property + def set_local_name(self) -> _room_pb2.SetLocalNameCallback: ... + @_builtins.property + def set_local_attributes(self) -> _room_pb2.SetLocalAttributesCallback: ... + @_builtins.property + def get_stats(self) -> _track_pb2.GetStatsCallback: ... + @_builtins.property + def logs(self) -> Global___LogBatch: ... + @_builtins.property + def get_session_stats(self) -> _room_pb2.GetSessionStatsCallback: ... + @_builtins.property + def panic(self) -> Global___Panic: ... + @_builtins.property + def publish_sip_dtmf(self) -> _room_pb2.PublishSipDtmfCallback: ... + @_builtins.property + def chat_message(self) -> _room_pb2.SendChatMessageCallback: ... + @_builtins.property + def perform_rpc(self) -> _rpc_pb2.PerformRpcCallback: ... + @_builtins.property + def rpc_method_invocation(self) -> _rpc_pb2.RpcMethodInvocationEvent: ... + @_builtins.property + def send_stream_header(self) -> _room_pb2.SendStreamHeaderCallback: """Data Streams (low level)""" - @property - def send_stream_chunk(self) -> room_pb2.SendStreamChunkCallback: ... - @property - def send_stream_trailer(self) -> room_pb2.SendStreamTrailerCallback: ... - @property - def byte_stream_reader_event(self) -> data_stream_pb2.ByteStreamReaderEvent: + @_builtins.property + def send_stream_chunk(self) -> _room_pb2.SendStreamChunkCallback: ... + @_builtins.property + def send_stream_trailer(self) -> _room_pb2.SendStreamTrailerCallback: ... + @_builtins.property + def byte_stream_reader_event(self) -> _data_stream_pb2.ByteStreamReaderEvent: """Data Streams (high level)""" - @property - def byte_stream_reader_read_all(self) -> data_stream_pb2.ByteStreamReaderReadAllCallback: ... - @property - def byte_stream_reader_write_to_file(self) -> data_stream_pb2.ByteStreamReaderWriteToFileCallback: ... - @property - def byte_stream_open(self) -> data_stream_pb2.ByteStreamOpenCallback: ... - @property - def byte_stream_writer_write(self) -> data_stream_pb2.ByteStreamWriterWriteCallback: ... - @property - def byte_stream_writer_close(self) -> data_stream_pb2.ByteStreamWriterCloseCallback: ... - @property - def send_file(self) -> data_stream_pb2.StreamSendFileCallback: ... - @property - def text_stream_reader_event(self) -> data_stream_pb2.TextStreamReaderEvent: ... - @property - def text_stream_reader_read_all(self) -> data_stream_pb2.TextStreamReaderReadAllCallback: ... - @property - def text_stream_open(self) -> data_stream_pb2.TextStreamOpenCallback: ... - @property - def text_stream_writer_write(self) -> data_stream_pb2.TextStreamWriterWriteCallback: ... - @property - def text_stream_writer_close(self) -> data_stream_pb2.TextStreamWriterCloseCallback: ... - @property - def send_text(self) -> data_stream_pb2.StreamSendTextCallback: ... - @property - def send_bytes(self) -> data_stream_pb2.StreamSendBytesCallback: ... - @property - def publish_data_track(self) -> data_track_pb2.PublishDataTrackCallback: + @_builtins.property + def byte_stream_reader_read_all(self) -> _data_stream_pb2.ByteStreamReaderReadAllCallback: ... + @_builtins.property + def byte_stream_reader_write_to_file(self) -> _data_stream_pb2.ByteStreamReaderWriteToFileCallback: ... + @_builtins.property + def byte_stream_open(self) -> _data_stream_pb2.ByteStreamOpenCallback: ... + @_builtins.property + def byte_stream_writer_write(self) -> _data_stream_pb2.ByteStreamWriterWriteCallback: ... + @_builtins.property + def byte_stream_writer_close(self) -> _data_stream_pb2.ByteStreamWriterCloseCallback: ... + @_builtins.property + def send_file(self) -> _data_stream_pb2.StreamSendFileCallback: ... + @_builtins.property + def text_stream_reader_event(self) -> _data_stream_pb2.TextStreamReaderEvent: ... + @_builtins.property + def text_stream_reader_read_all(self) -> _data_stream_pb2.TextStreamReaderReadAllCallback: ... + @_builtins.property + def text_stream_open(self) -> _data_stream_pb2.TextStreamOpenCallback: ... + @_builtins.property + def text_stream_writer_write(self) -> _data_stream_pb2.TextStreamWriterWriteCallback: ... + @_builtins.property + def text_stream_writer_close(self) -> _data_stream_pb2.TextStreamWriterCloseCallback: ... + @_builtins.property + def send_text(self) -> _data_stream_pb2.StreamSendTextCallback: ... + @_builtins.property + def send_bytes(self) -> _data_stream_pb2.StreamSendBytesCallback: ... + @_builtins.property + def publish_data_track(self) -> _data_track_pb2.PublishDataTrackCallback: """Data Track (local)""" - @property - def data_track_stream_event(self) -> data_track_pb2.DataTrackStreamEvent: + @_builtins.property + def data_track_stream_event(self) -> _data_track_pb2.DataTrackStreamEvent: """Data Track (remote)""" + @_builtins.property + def simulate_scenario(self) -> _room_pb2.SimulateScenarioCallback: ... def __init__( self, *, - room_event: room_pb2.RoomEvent | None = ..., - track_event: track_pb2.TrackEvent | None = ..., - video_stream_event: video_frame_pb2.VideoStreamEvent | None = ..., - audio_stream_event: audio_frame_pb2.AudioStreamEvent | None = ..., - connect: room_pb2.ConnectCallback | None = ..., - disconnect: room_pb2.DisconnectCallback | None = ..., - dispose: global___DisposeCallback | None = ..., - publish_track: room_pb2.PublishTrackCallback | None = ..., - unpublish_track: room_pb2.UnpublishTrackCallback | None = ..., - publish_data: room_pb2.PublishDataCallback | None = ..., - publish_transcription: room_pb2.PublishTranscriptionCallback | None = ..., - capture_audio_frame: audio_frame_pb2.CaptureAudioFrameCallback | None = ..., - set_local_metadata: room_pb2.SetLocalMetadataCallback | None = ..., - set_local_name: room_pb2.SetLocalNameCallback | None = ..., - set_local_attributes: room_pb2.SetLocalAttributesCallback | None = ..., - get_stats: track_pb2.GetStatsCallback | None = ..., - logs: global___LogBatch | None = ..., - get_session_stats: room_pb2.GetSessionStatsCallback | None = ..., - panic: global___Panic | None = ..., - publish_sip_dtmf: room_pb2.PublishSipDtmfCallback | None = ..., - chat_message: room_pb2.SendChatMessageCallback | None = ..., - perform_rpc: rpc_pb2.PerformRpcCallback | None = ..., - rpc_method_invocation: rpc_pb2.RpcMethodInvocationEvent | None = ..., - send_stream_header: room_pb2.SendStreamHeaderCallback | None = ..., - send_stream_chunk: room_pb2.SendStreamChunkCallback | None = ..., - send_stream_trailer: room_pb2.SendStreamTrailerCallback | None = ..., - byte_stream_reader_event: data_stream_pb2.ByteStreamReaderEvent | None = ..., - byte_stream_reader_read_all: data_stream_pb2.ByteStreamReaderReadAllCallback | None = ..., - byte_stream_reader_write_to_file: data_stream_pb2.ByteStreamReaderWriteToFileCallback | None = ..., - byte_stream_open: data_stream_pb2.ByteStreamOpenCallback | None = ..., - byte_stream_writer_write: data_stream_pb2.ByteStreamWriterWriteCallback | None = ..., - byte_stream_writer_close: data_stream_pb2.ByteStreamWriterCloseCallback | None = ..., - send_file: data_stream_pb2.StreamSendFileCallback | None = ..., - text_stream_reader_event: data_stream_pb2.TextStreamReaderEvent | None = ..., - text_stream_reader_read_all: data_stream_pb2.TextStreamReaderReadAllCallback | None = ..., - text_stream_open: data_stream_pb2.TextStreamOpenCallback | None = ..., - text_stream_writer_write: data_stream_pb2.TextStreamWriterWriteCallback | None = ..., - text_stream_writer_close: data_stream_pb2.TextStreamWriterCloseCallback | None = ..., - send_text: data_stream_pb2.StreamSendTextCallback | None = ..., - send_bytes: data_stream_pb2.StreamSendBytesCallback | None = ..., - publish_data_track: data_track_pb2.PublishDataTrackCallback | None = ..., - data_track_stream_event: data_track_pb2.DataTrackStreamEvent | None = ..., + room_event: _room_pb2.RoomEvent | None = ..., + track_event: _track_pb2.TrackEvent | None = ..., + video_stream_event: _video_frame_pb2.VideoStreamEvent | None = ..., + audio_stream_event: _audio_frame_pb2.AudioStreamEvent | None = ..., + connect: _room_pb2.ConnectCallback | None = ..., + disconnect: _room_pb2.DisconnectCallback | None = ..., + dispose: Global___DisposeCallback | None = ..., + publish_track: _room_pb2.PublishTrackCallback | None = ..., + unpublish_track: _room_pb2.UnpublishTrackCallback | None = ..., + publish_data: _room_pb2.PublishDataCallback | None = ..., + publish_transcription: _room_pb2.PublishTranscriptionCallback | None = ..., + capture_audio_frame: _audio_frame_pb2.CaptureAudioFrameCallback | None = ..., + set_local_metadata: _room_pb2.SetLocalMetadataCallback | None = ..., + set_local_name: _room_pb2.SetLocalNameCallback | None = ..., + set_local_attributes: _room_pb2.SetLocalAttributesCallback | None = ..., + get_stats: _track_pb2.GetStatsCallback | None = ..., + logs: Global___LogBatch | None = ..., + get_session_stats: _room_pb2.GetSessionStatsCallback | None = ..., + panic: Global___Panic | None = ..., + publish_sip_dtmf: _room_pb2.PublishSipDtmfCallback | None = ..., + chat_message: _room_pb2.SendChatMessageCallback | None = ..., + perform_rpc: _rpc_pb2.PerformRpcCallback | None = ..., + rpc_method_invocation: _rpc_pb2.RpcMethodInvocationEvent | None = ..., + send_stream_header: _room_pb2.SendStreamHeaderCallback | None = ..., + send_stream_chunk: _room_pb2.SendStreamChunkCallback | None = ..., + send_stream_trailer: _room_pb2.SendStreamTrailerCallback | None = ..., + byte_stream_reader_event: _data_stream_pb2.ByteStreamReaderEvent | None = ..., + byte_stream_reader_read_all: _data_stream_pb2.ByteStreamReaderReadAllCallback | None = ..., + byte_stream_reader_write_to_file: _data_stream_pb2.ByteStreamReaderWriteToFileCallback | None = ..., + byte_stream_open: _data_stream_pb2.ByteStreamOpenCallback | None = ..., + byte_stream_writer_write: _data_stream_pb2.ByteStreamWriterWriteCallback | None = ..., + byte_stream_writer_close: _data_stream_pb2.ByteStreamWriterCloseCallback | None = ..., + send_file: _data_stream_pb2.StreamSendFileCallback | None = ..., + text_stream_reader_event: _data_stream_pb2.TextStreamReaderEvent | None = ..., + text_stream_reader_read_all: _data_stream_pb2.TextStreamReaderReadAllCallback | None = ..., + text_stream_open: _data_stream_pb2.TextStreamOpenCallback | None = ..., + text_stream_writer_write: _data_stream_pb2.TextStreamWriterWriteCallback | None = ..., + text_stream_writer_close: _data_stream_pb2.TextStreamWriterCloseCallback | None = ..., + send_text: _data_stream_pb2.StreamSendTextCallback | None = ..., + send_bytes: _data_stream_pb2.StreamSendBytesCallback | None = ..., + publish_data_track: _data_track_pb2.PublishDataTrackCallback | None = ..., + data_track_stream_event: _data_track_pb2.DataTrackStreamEvent | None = ..., + simulate_scenario: _room_pb2.SimulateScenarioCallback | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["audio_stream_event", b"audio_stream_event", "byte_stream_open", b"byte_stream_open", "byte_stream_reader_event", b"byte_stream_reader_event", "byte_stream_reader_read_all", b"byte_stream_reader_read_all", "byte_stream_reader_write_to_file", b"byte_stream_reader_write_to_file", "byte_stream_writer_close", b"byte_stream_writer_close", "byte_stream_writer_write", b"byte_stream_writer_write", "capture_audio_frame", b"capture_audio_frame", "chat_message", b"chat_message", "connect", b"connect", "data_track_stream_event", b"data_track_stream_event", "disconnect", b"disconnect", "dispose", b"dispose", "get_session_stats", b"get_session_stats", "get_stats", b"get_stats", "logs", b"logs", "message", b"message", "panic", b"panic", "perform_rpc", b"perform_rpc", "publish_data", b"publish_data", "publish_data_track", b"publish_data_track", "publish_sip_dtmf", b"publish_sip_dtmf", "publish_track", b"publish_track", "publish_transcription", b"publish_transcription", "room_event", b"room_event", "rpc_method_invocation", b"rpc_method_invocation", "send_bytes", b"send_bytes", "send_file", b"send_file", "send_stream_chunk", b"send_stream_chunk", "send_stream_header", b"send_stream_header", "send_stream_trailer", b"send_stream_trailer", "send_text", b"send_text", "set_local_attributes", b"set_local_attributes", "set_local_metadata", b"set_local_metadata", "set_local_name", b"set_local_name", "text_stream_open", b"text_stream_open", "text_stream_reader_event", b"text_stream_reader_event", "text_stream_reader_read_all", b"text_stream_reader_read_all", "text_stream_writer_close", b"text_stream_writer_close", "text_stream_writer_write", b"text_stream_writer_write", "track_event", b"track_event", "unpublish_track", b"unpublish_track", "video_stream_event", b"video_stream_event"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["audio_stream_event", b"audio_stream_event", "byte_stream_open", b"byte_stream_open", "byte_stream_reader_event", b"byte_stream_reader_event", "byte_stream_reader_read_all", b"byte_stream_reader_read_all", "byte_stream_reader_write_to_file", b"byte_stream_reader_write_to_file", "byte_stream_writer_close", b"byte_stream_writer_close", "byte_stream_writer_write", b"byte_stream_writer_write", "capture_audio_frame", b"capture_audio_frame", "chat_message", b"chat_message", "connect", b"connect", "data_track_stream_event", b"data_track_stream_event", "disconnect", b"disconnect", "dispose", b"dispose", "get_session_stats", b"get_session_stats", "get_stats", b"get_stats", "logs", b"logs", "message", b"message", "panic", b"panic", "perform_rpc", b"perform_rpc", "publish_data", b"publish_data", "publish_data_track", b"publish_data_track", "publish_sip_dtmf", b"publish_sip_dtmf", "publish_track", b"publish_track", "publish_transcription", b"publish_transcription", "room_event", b"room_event", "rpc_method_invocation", b"rpc_method_invocation", "send_bytes", b"send_bytes", "send_file", b"send_file", "send_stream_chunk", b"send_stream_chunk", "send_stream_header", b"send_stream_header", "send_stream_trailer", b"send_stream_trailer", "send_text", b"send_text", "set_local_attributes", b"set_local_attributes", "set_local_metadata", b"set_local_metadata", "set_local_name", b"set_local_name", "text_stream_open", b"text_stream_open", "text_stream_reader_event", b"text_stream_reader_event", "text_stream_reader_read_all", b"text_stream_reader_read_all", "text_stream_writer_close", b"text_stream_writer_close", "text_stream_writer_write", b"text_stream_writer_write", "track_event", b"track_event", "unpublish_track", b"unpublish_track", "video_stream_event", b"video_stream_event"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["room_event", "track_event", "video_stream_event", "audio_stream_event", "connect", "disconnect", "dispose", "publish_track", "unpublish_track", "publish_data", "publish_transcription", "capture_audio_frame", "set_local_metadata", "set_local_name", "set_local_attributes", "get_stats", "logs", "get_session_stats", "panic", "publish_sip_dtmf", "chat_message", "perform_rpc", "rpc_method_invocation", "send_stream_header", "send_stream_chunk", "send_stream_trailer", "byte_stream_reader_event", "byte_stream_reader_read_all", "byte_stream_reader_write_to_file", "byte_stream_open", "byte_stream_writer_write", "byte_stream_writer_close", "send_file", "text_stream_reader_event", "text_stream_reader_read_all", "text_stream_open", "text_stream_writer_write", "text_stream_writer_close", "send_text", "send_bytes", "publish_data_track", "data_track_stream_event"] | None: ... - -global___FfiEvent = FfiEvent - -@typing.final -class DisposeRequest(google.protobuf.message.Message): + _HasFieldArgType: _TypeAlias = _typing.Literal["audio_stream_event", b"audio_stream_event", "byte_stream_open", b"byte_stream_open", "byte_stream_reader_event", b"byte_stream_reader_event", "byte_stream_reader_read_all", b"byte_stream_reader_read_all", "byte_stream_reader_write_to_file", b"byte_stream_reader_write_to_file", "byte_stream_writer_close", b"byte_stream_writer_close", "byte_stream_writer_write", b"byte_stream_writer_write", "capture_audio_frame", b"capture_audio_frame", "chat_message", b"chat_message", "connect", b"connect", "data_track_stream_event", b"data_track_stream_event", "disconnect", b"disconnect", "dispose", b"dispose", "get_session_stats", b"get_session_stats", "get_stats", b"get_stats", "logs", b"logs", "message", b"message", "panic", b"panic", "perform_rpc", b"perform_rpc", "publish_data", b"publish_data", "publish_data_track", b"publish_data_track", "publish_sip_dtmf", b"publish_sip_dtmf", "publish_track", b"publish_track", "publish_transcription", b"publish_transcription", "room_event", b"room_event", "rpc_method_invocation", b"rpc_method_invocation", "send_bytes", b"send_bytes", "send_file", b"send_file", "send_stream_chunk", b"send_stream_chunk", "send_stream_header", b"send_stream_header", "send_stream_trailer", b"send_stream_trailer", "send_text", b"send_text", "set_local_attributes", b"set_local_attributes", "set_local_metadata", b"set_local_metadata", "set_local_name", b"set_local_name", "simulate_scenario", b"simulate_scenario", "text_stream_open", b"text_stream_open", "text_stream_reader_event", b"text_stream_reader_event", "text_stream_reader_read_all", b"text_stream_reader_read_all", "text_stream_writer_close", b"text_stream_writer_close", "text_stream_writer_write", b"text_stream_writer_write", "track_event", b"track_event", "unpublish_track", b"unpublish_track", "video_stream_event", b"video_stream_event"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["audio_stream_event", b"audio_stream_event", "byte_stream_open", b"byte_stream_open", "byte_stream_reader_event", b"byte_stream_reader_event", "byte_stream_reader_read_all", b"byte_stream_reader_read_all", "byte_stream_reader_write_to_file", b"byte_stream_reader_write_to_file", "byte_stream_writer_close", b"byte_stream_writer_close", "byte_stream_writer_write", b"byte_stream_writer_write", "capture_audio_frame", b"capture_audio_frame", "chat_message", b"chat_message", "connect", b"connect", "data_track_stream_event", b"data_track_stream_event", "disconnect", b"disconnect", "dispose", b"dispose", "get_session_stats", b"get_session_stats", "get_stats", b"get_stats", "logs", b"logs", "message", b"message", "panic", b"panic", "perform_rpc", b"perform_rpc", "publish_data", b"publish_data", "publish_data_track", b"publish_data_track", "publish_sip_dtmf", b"publish_sip_dtmf", "publish_track", b"publish_track", "publish_transcription", b"publish_transcription", "room_event", b"room_event", "rpc_method_invocation", b"rpc_method_invocation", "send_bytes", b"send_bytes", "send_file", b"send_file", "send_stream_chunk", b"send_stream_chunk", "send_stream_header", b"send_stream_header", "send_stream_trailer", b"send_stream_trailer", "send_text", b"send_text", "set_local_attributes", b"set_local_attributes", "set_local_metadata", b"set_local_metadata", "set_local_name", b"set_local_name", "simulate_scenario", b"simulate_scenario", "text_stream_open", b"text_stream_open", "text_stream_reader_event", b"text_stream_reader_event", "text_stream_reader_read_all", b"text_stream_reader_read_all", "text_stream_writer_close", b"text_stream_writer_close", "text_stream_writer_write", b"text_stream_writer_write", "track_event", b"track_event", "unpublish_track", b"unpublish_track", "video_stream_event", b"video_stream_event"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["room_event", "track_event", "video_stream_event", "audio_stream_event", "connect", "disconnect", "dispose", "publish_track", "unpublish_track", "publish_data", "publish_transcription", "capture_audio_frame", "set_local_metadata", "set_local_name", "set_local_attributes", "get_stats", "logs", "get_session_stats", "panic", "publish_sip_dtmf", "chat_message", "perform_rpc", "rpc_method_invocation", "send_stream_header", "send_stream_chunk", "send_stream_trailer", "byte_stream_reader_event", "byte_stream_reader_read_all", "byte_stream_reader_write_to_file", "byte_stream_open", "byte_stream_writer_write", "byte_stream_writer_close", "send_file", "text_stream_reader_event", "text_stream_reader_read_all", "text_stream_open", "text_stream_writer_write", "text_stream_writer_close", "send_text", "send_bytes", "publish_data_track", "data_track_stream_event", "simulate_scenario"] # noqa: Y015 + _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... + +Global___FfiEvent: _TypeAlias = FfiEvent # noqa: Y015 + +@_typing.final +class DisposeRequest(_message.Message): """Stop all rooms synchronously (Do we need async here?). e.g: This is used for the Unity Editor after each assemblies reload. TODO(theomonnom): Implement a debug mode where we can find all leaked handles? """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - ASYNC_FIELD_NUMBER: builtins.int + ASYNC_FIELD_NUMBER: _builtins.int def __init__( self, ) -> None: ... - def HasField(self, field_name: typing.Literal["async", b"async"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async", b"async"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async", b"async"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async", b"async"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DisposeRequest = DisposeRequest +Global___DisposeRequest: _TypeAlias = DisposeRequest # noqa: Y015 -@typing.final -class DisposeResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DisposeResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int """None if sync""" def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DisposeResponse = DisposeResponse +Global___DisposeResponse: _TypeAlias = DisposeResponse # noqa: Y015 -@typing.final -class DisposeCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DisposeCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... - -global___DisposeCallback = DisposeCallback - -@typing.final -class LogRecord(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - LEVEL_FIELD_NUMBER: builtins.int - TARGET_FIELD_NUMBER: builtins.int - MODULE_PATH_FIELD_NUMBER: builtins.int - FILE_FIELD_NUMBER: builtins.int - LINE_FIELD_NUMBER: builtins.int - MESSAGE_FIELD_NUMBER: builtins.int - level: global___LogLevel.ValueType - target: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___DisposeCallback: _TypeAlias = DisposeCallback # noqa: Y015 + +@_typing.final +class LogRecord(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + LEVEL_FIELD_NUMBER: _builtins.int + TARGET_FIELD_NUMBER: _builtins.int + MODULE_PATH_FIELD_NUMBER: _builtins.int + FILE_FIELD_NUMBER: _builtins.int + LINE_FIELD_NUMBER: _builtins.int + MESSAGE_FIELD_NUMBER: _builtins.int + level: Global___LogLevel.ValueType + target: _builtins.str """e.g "livekit", "libwebrtc", "tokio-tungstenite", etc...""" - module_path: builtins.str - file: builtins.str - line: builtins.int - message: builtins.str + module_path: _builtins.str + file: _builtins.str + line: _builtins.int + message: _builtins.str def __init__( self, *, - level: global___LogLevel.ValueType | None = ..., - target: builtins.str | None = ..., - module_path: builtins.str | None = ..., - file: builtins.str | None = ..., - line: builtins.int | None = ..., - message: builtins.str | None = ..., + level: Global___LogLevel.ValueType | None = ..., + target: _builtins.str | None = ..., + module_path: _builtins.str | None = ..., + file: _builtins.str | None = ..., + line: _builtins.int | None = ..., + message: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["file", b"file", "level", b"level", "line", b"line", "message", b"message", "module_path", b"module_path", "target", b"target"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["file", b"file", "level", b"level", "line", b"line", "message", b"message", "module_path", b"module_path", "target", b"target"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["file", b"file", "level", b"level", "line", b"line", "message", b"message", "module_path", b"module_path", "target", b"target"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["file", b"file", "level", b"level", "line", b"line", "message", b"message", "module_path", b"module_path", "target", b"target"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___LogRecord = LogRecord +Global___LogRecord: _TypeAlias = LogRecord # noqa: Y015 -@typing.final -class LogBatch(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class LogBatch(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - RECORDS_FIELD_NUMBER: builtins.int - @property - def records(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___LogRecord]: ... + RECORDS_FIELD_NUMBER: _builtins.int + @_builtins.property + def records(self) -> _containers.RepeatedCompositeFieldContainer[Global___LogRecord]: ... def __init__( self, *, - records: collections.abc.Iterable[global___LogRecord] | None = ..., + records: _abc.Iterable[Global___LogRecord] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing.Literal["records", b"records"]) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["records", b"records"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___LogBatch = LogBatch +Global___LogBatch: _TypeAlias = LogBatch # noqa: Y015 -@typing.final -class Panic(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class Panic(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - MESSAGE_FIELD_NUMBER: builtins.int - message: builtins.str + MESSAGE_FIELD_NUMBER: _builtins.int + message: _builtins.str def __init__( self, *, - message: builtins.str | None = ..., + message: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["message", b"message"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["message", b"message"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___Panic = Panic +Global___Panic: _TypeAlias = Panic # noqa: Y015 diff --git a/livekit-rtc/livekit/rtc/_proto/handle_pb2.py b/livekit-rtc/livekit/rtc/_proto/handle_pb2.py index 2ae2db78..303d831b 100644 --- a/livekit-rtc/livekit/rtc/_proto/handle_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/handle_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: handle.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 7.34.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 7, + 34, + 1, + '', + 'handle.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -19,8 +29,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'handle_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'\252\002\rLiveKit.Proto' _globals['_FFIOWNEDHANDLE']._serialized_start=31 _globals['_FFIOWNEDHANDLE']._serialized_end=59 diff --git a/livekit-rtc/livekit/rtc/_proto/handle_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/handle_pb2.pyi index d433a6c2..49362e17 100644 --- a/livekit-rtc/livekit/rtc/_proto/handle_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/handle_pb2.pyi @@ -16,15 +16,21 @@ See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import google.protobuf.descriptor -import google.protobuf.message -import typing +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +import builtins as _builtins +import sys +import typing as _typing -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +if sys.version_info >= (3, 11): + from typing import TypeAlias as _TypeAlias, Never as _Never +else: + from typing_extensions import TypeAlias as _TypeAlias, Never as _Never -@typing.final -class FfiOwnedHandle(google.protobuf.message.Message): +DESCRIPTOR: _descriptor.FileDescriptor + +@_typing.final +class FfiOwnedHandle(_message.Message): """# Safety The foreign language is responsable for disposing handles Forgetting to dispose the handle may lead to memory leaks @@ -36,16 +42,19 @@ class FfiOwnedHandle(google.protobuf.message.Message): (the variable name is suffixed with "_handle") """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - ID_FIELD_NUMBER: builtins.int - id: builtins.int + ID_FIELD_NUMBER: _builtins.int + id: _builtins.int def __init__( self, *, - id: builtins.int | None = ..., + id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["id", b"id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["id", b"id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["id", b"id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["id", b"id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___FfiOwnedHandle = FfiOwnedHandle +Global___FfiOwnedHandle: _TypeAlias = FfiOwnedHandle # noqa: Y015 diff --git a/livekit-rtc/livekit/rtc/_proto/participant_pb2.py b/livekit-rtc/livekit/rtc/_proto/participant_pb2.py index f4943934..5b195673 100644 --- a/livekit-rtc/livekit/rtc/_proto/participant_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/participant_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: participant.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 7.34.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 7, + 34, + 1, + '', + 'participant.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -21,10 +31,10 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'participant_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'\252\002\rLiveKit.Proto' - _globals['_PARTICIPANTINFO_ATTRIBUTESENTRY']._options = None + _globals['_PARTICIPANTINFO_ATTRIBUTESENTRY']._loaded_options = None _globals['_PARTICIPANTINFO_ATTRIBUTESENTRY']._serialized_options = b'8\001' _globals['_PARTICIPANTSTATE']._serialized_start=933 _globals['_PARTICIPANTSTATE']._serialized_end=1078 diff --git a/livekit-rtc/livekit/rtc/_proto/participant_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/participant_pb2.pyi index 4c84d2c6..a21898f1 100644 --- a/livekit-rtc/livekit/rtc/_proto/participant_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/participant_pb2.pyi @@ -16,30 +16,30 @@ See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -from . import handle_pb2 +from collections import abc as _abc +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +import builtins as _builtins +from . import handle_pb2 as _handle_pb2 import sys -from . import track_pb2 -import typing +from . import track_pb2 as _track_pb2 +import typing as _typing -if sys.version_info >= (3, 10): - import typing as typing_extensions +if sys.version_info >= (3, 11): + from typing import TypeAlias as _TypeAlias, Never as _Never else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias, Never as _Never -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor class _ParticipantState: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _ParticipantStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ParticipantState.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _ParticipantStateEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_ParticipantState.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor PARTICIPANT_STATE_JOINING: _ParticipantState.ValueType # 0 PARTICIPANT_STATE_JOINED: _ParticipantState.ValueType # 1 PARTICIPANT_STATE_ACTIVE: _ParticipantState.ValueType # 2 @@ -51,14 +51,14 @@ PARTICIPANT_STATE_JOINING: ParticipantState.ValueType # 0 PARTICIPANT_STATE_JOINED: ParticipantState.ValueType # 1 PARTICIPANT_STATE_ACTIVE: ParticipantState.ValueType # 2 PARTICIPANT_STATE_DISCONNECTED: ParticipantState.ValueType # 3 -global___ParticipantState = ParticipantState +Global___ParticipantState: _TypeAlias = ParticipantState # noqa: Y015 class _ParticipantKind: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _ParticipantKindEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ParticipantKind.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _ParticipantKindEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_ParticipantKind.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor PARTICIPANT_KIND_STANDARD: _ParticipantKind.ValueType # 0 PARTICIPANT_KIND_INGRESS: _ParticipantKind.ValueType # 1 PARTICIPANT_KIND_EGRESS: _ParticipantKind.ValueType # 2 @@ -76,14 +76,14 @@ PARTICIPANT_KIND_SIP: ParticipantKind.ValueType # 3 PARTICIPANT_KIND_AGENT: ParticipantKind.ValueType # 4 PARTICIPANT_KIND_CONNECTOR: ParticipantKind.ValueType # 5 PARTICIPANT_KIND_BRIDGE: ParticipantKind.ValueType # 6 -global___ParticipantKind = ParticipantKind +Global___ParticipantKind: _TypeAlias = ParticipantKind # noqa: Y015 class _ParticipantKindDetail: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _ParticipantKindDetailEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ParticipantKindDetail.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _ParticipantKindDetailEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_ParticipantKindDetail.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor PARTICIPANT_KIND_DETAIL_CLOUD_AGENT: _ParticipantKindDetail.ValueType # 0 PARTICIPANT_KIND_DETAIL_FORWARDED: _ParticipantKindDetail.ValueType # 1 PARTICIPANT_KIND_DETAIL_CONNECTOR_WHATSAPP: _ParticipantKindDetail.ValueType # 2 @@ -97,14 +97,14 @@ PARTICIPANT_KIND_DETAIL_FORWARDED: ParticipantKindDetail.ValueType # 1 PARTICIPANT_KIND_DETAIL_CONNECTOR_WHATSAPP: ParticipantKindDetail.ValueType # 2 PARTICIPANT_KIND_DETAIL_CONNECTOR_TWILIO: ParticipantKindDetail.ValueType # 3 PARTICIPANT_KIND_DETAIL_BRIDGE_RTSP: ParticipantKindDetail.ValueType # 4 -global___ParticipantKindDetail = ParticipantKindDetail +Global___ParticipantKindDetail: _TypeAlias = ParticipantKindDetail # noqa: Y015 class _DisconnectReason: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _DisconnectReasonEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DisconnectReason.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _DisconnectReasonEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_DisconnectReason.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor UNKNOWN_REASON: _DisconnectReason.ValueType # 0 CLIENT_INITIATED: _DisconnectReason.ValueType # 1 """the client initiated the disconnect""" @@ -168,141 +168,153 @@ SIP_TRUNK_FAILURE: DisconnectReason.ValueType # 13 CONNECTION_TIMEOUT: DisconnectReason.ValueType # 14 MEDIA_FAILURE: DisconnectReason.ValueType # 15 AGENT_ERROR: DisconnectReason.ValueType # 16 -global___DisconnectReason = DisconnectReason +Global___DisconnectReason: _TypeAlias = DisconnectReason # noqa: Y015 -@typing.final -class ParticipantInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ParticipantInfo(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - @typing.final - class AttributesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class AttributesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str | None = ..., - value: builtins.str | None = ..., + key: _builtins.str | None = ..., + value: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - SID_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - IDENTITY_FIELD_NUMBER: builtins.int - STATE_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - ATTRIBUTES_FIELD_NUMBER: builtins.int - KIND_FIELD_NUMBER: builtins.int - DISCONNECT_REASON_FIELD_NUMBER: builtins.int - JOINED_AT_FIELD_NUMBER: builtins.int - KIND_DETAILS_FIELD_NUMBER: builtins.int - PERMISSION_FIELD_NUMBER: builtins.int - sid: builtins.str - name: builtins.str - identity: builtins.str - state: global___ParticipantState.ValueType - metadata: builtins.str - kind: global___ParticipantKind.ValueType - disconnect_reason: global___DisconnectReason.ValueType - joined_at: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + SID_FIELD_NUMBER: _builtins.int + NAME_FIELD_NUMBER: _builtins.int + IDENTITY_FIELD_NUMBER: _builtins.int + STATE_FIELD_NUMBER: _builtins.int + METADATA_FIELD_NUMBER: _builtins.int + ATTRIBUTES_FIELD_NUMBER: _builtins.int + KIND_FIELD_NUMBER: _builtins.int + DISCONNECT_REASON_FIELD_NUMBER: _builtins.int + JOINED_AT_FIELD_NUMBER: _builtins.int + KIND_DETAILS_FIELD_NUMBER: _builtins.int + PERMISSION_FIELD_NUMBER: _builtins.int + sid: _builtins.str + name: _builtins.str + identity: _builtins.str + state: Global___ParticipantState.ValueType + metadata: _builtins.str + kind: Global___ParticipantKind.ValueType + disconnect_reason: Global___DisconnectReason.ValueType + joined_at: _builtins.int """ms timestamp of when the participant joined the room, maps to joined_at_ms in livekit_models""" - @property - def attributes(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - @property - def kind_details(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___ParticipantKindDetail.ValueType]: ... - @property - def permission(self) -> global___ParticipantPermission: ... + @_builtins.property + def attributes(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def kind_details(self) -> _containers.RepeatedScalarFieldContainer[Global___ParticipantKindDetail.ValueType]: ... + @_builtins.property + def permission(self) -> Global___ParticipantPermission: ... def __init__( self, *, - sid: builtins.str | None = ..., - name: builtins.str | None = ..., - identity: builtins.str | None = ..., - state: global___ParticipantState.ValueType | None = ..., - metadata: builtins.str | None = ..., - attributes: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - kind: global___ParticipantKind.ValueType | None = ..., - disconnect_reason: global___DisconnectReason.ValueType | None = ..., - joined_at: builtins.int | None = ..., - kind_details: collections.abc.Iterable[global___ParticipantKindDetail.ValueType] | None = ..., - permission: global___ParticipantPermission | None = ..., + sid: _builtins.str | None = ..., + name: _builtins.str | None = ..., + identity: _builtins.str | None = ..., + state: Global___ParticipantState.ValueType | None = ..., + metadata: _builtins.str | None = ..., + attributes: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + kind: Global___ParticipantKind.ValueType | None = ..., + disconnect_reason: Global___DisconnectReason.ValueType | None = ..., + joined_at: _builtins.int | None = ..., + kind_details: _abc.Iterable[Global___ParticipantKindDetail.ValueType] | None = ..., + permission: Global___ParticipantPermission | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["disconnect_reason", b"disconnect_reason", "identity", b"identity", "joined_at", b"joined_at", "kind", b"kind", "metadata", b"metadata", "name", b"name", "permission", b"permission", "sid", b"sid", "state", b"state"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["attributes", b"attributes", "disconnect_reason", b"disconnect_reason", "identity", b"identity", "joined_at", b"joined_at", "kind", b"kind", "kind_details", b"kind_details", "metadata", b"metadata", "name", b"name", "permission", b"permission", "sid", b"sid", "state", b"state"]) -> None: ... - -global___ParticipantInfo = ParticipantInfo - -@typing.final -class OwnedParticipant(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___ParticipantInfo: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["disconnect_reason", b"disconnect_reason", "identity", b"identity", "joined_at", b"joined_at", "kind", b"kind", "metadata", b"metadata", "name", b"name", "permission", b"permission", "sid", b"sid", "state", b"state"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["attributes", b"attributes", "disconnect_reason", b"disconnect_reason", "identity", b"identity", "joined_at", b"joined_at", "kind", b"kind", "kind_details", b"kind_details", "metadata", b"metadata", "name", b"name", "permission", b"permission", "sid", b"sid", "state", b"state"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___ParticipantInfo: _TypeAlias = ParticipantInfo # noqa: Y015 + +@_typing.final +class OwnedParticipant(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___ParticipantInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___ParticipantInfo | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___ParticipantInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___OwnedParticipant = OwnedParticipant +Global___OwnedParticipant: _TypeAlias = OwnedParticipant # noqa: Y015 -@typing.final -class ParticipantPermission(google.protobuf.message.Message): +@_typing.final +class ParticipantPermission(_message.Message): """copied from livekit-protocol/protocol/protobufs/livekit_models.proto and removed deprecated fields""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - CAN_SUBSCRIBE_FIELD_NUMBER: builtins.int - CAN_PUBLISH_FIELD_NUMBER: builtins.int - CAN_PUBLISH_DATA_FIELD_NUMBER: builtins.int - CAN_PUBLISH_SOURCES_FIELD_NUMBER: builtins.int - HIDDEN_FIELD_NUMBER: builtins.int - CAN_UPDATE_METADATA_FIELD_NUMBER: builtins.int - CAN_SUBSCRIBE_METRICS_FIELD_NUMBER: builtins.int - CAN_MANAGE_AGENT_SESSION_FIELD_NUMBER: builtins.int - can_subscribe: builtins.bool + DESCRIPTOR: _descriptor.Descriptor + + CAN_SUBSCRIBE_FIELD_NUMBER: _builtins.int + CAN_PUBLISH_FIELD_NUMBER: _builtins.int + CAN_PUBLISH_DATA_FIELD_NUMBER: _builtins.int + CAN_PUBLISH_SOURCES_FIELD_NUMBER: _builtins.int + HIDDEN_FIELD_NUMBER: _builtins.int + CAN_UPDATE_METADATA_FIELD_NUMBER: _builtins.int + CAN_SUBSCRIBE_METRICS_FIELD_NUMBER: _builtins.int + CAN_MANAGE_AGENT_SESSION_FIELD_NUMBER: _builtins.int + can_subscribe: _builtins.bool """allow participant to subscribe to other tracks in the room""" - can_publish: builtins.bool + can_publish: _builtins.bool """allow participant to publish new tracks to room""" - can_publish_data: builtins.bool + can_publish_data: _builtins.bool """allow participant to publish data""" - hidden: builtins.bool + hidden: _builtins.bool """indicates that it's hidden to others""" - can_update_metadata: builtins.bool + can_update_metadata: _builtins.bool """indicates that participant can update own metadata and attributes""" - can_subscribe_metrics: builtins.bool + can_subscribe_metrics: _builtins.bool """if a participant can subscribe to metrics""" - can_manage_agent_session: builtins.bool + can_manage_agent_session: _builtins.bool """if a participant can manage an agent session via RemoteSession (control and access state)""" - @property - def can_publish_sources(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[track_pb2.TrackSource.ValueType]: + @_builtins.property + def can_publish_sources(self) -> _containers.RepeatedScalarFieldContainer[_track_pb2.TrackSource.ValueType]: """sources that are allowed to be published""" def __init__( self, *, - can_subscribe: builtins.bool | None = ..., - can_publish: builtins.bool | None = ..., - can_publish_data: builtins.bool | None = ..., - can_publish_sources: collections.abc.Iterable[track_pb2.TrackSource.ValueType] | None = ..., - hidden: builtins.bool | None = ..., - can_update_metadata: builtins.bool | None = ..., - can_subscribe_metrics: builtins.bool | None = ..., - can_manage_agent_session: builtins.bool | None = ..., + can_subscribe: _builtins.bool | None = ..., + can_publish: _builtins.bool | None = ..., + can_publish_data: _builtins.bool | None = ..., + can_publish_sources: _abc.Iterable[_track_pb2.TrackSource.ValueType] | None = ..., + hidden: _builtins.bool | None = ..., + can_update_metadata: _builtins.bool | None = ..., + can_subscribe_metrics: _builtins.bool | None = ..., + can_manage_agent_session: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["can_manage_agent_session", b"can_manage_agent_session", "can_publish", b"can_publish", "can_publish_data", b"can_publish_data", "can_subscribe", b"can_subscribe", "can_subscribe_metrics", b"can_subscribe_metrics", "can_update_metadata", b"can_update_metadata", "hidden", b"hidden"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["can_manage_agent_session", b"can_manage_agent_session", "can_publish", b"can_publish", "can_publish_data", b"can_publish_data", "can_publish_sources", b"can_publish_sources", "can_subscribe", b"can_subscribe", "can_subscribe_metrics", b"can_subscribe_metrics", "can_update_metadata", b"can_update_metadata", "hidden", b"hidden"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["can_manage_agent_session", b"can_manage_agent_session", "can_publish", b"can_publish", "can_publish_data", b"can_publish_data", "can_subscribe", b"can_subscribe", "can_subscribe_metrics", b"can_subscribe_metrics", "can_update_metadata", b"can_update_metadata", "hidden", b"hidden"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["can_manage_agent_session", b"can_manage_agent_session", "can_publish", b"can_publish", "can_publish_data", b"can_publish_data", "can_publish_sources", b"can_publish_sources", "can_subscribe", b"can_subscribe", "can_subscribe_metrics", b"can_subscribe_metrics", "can_update_metadata", b"can_update_metadata", "hidden", b"hidden"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ParticipantPermission = ParticipantPermission +Global___ParticipantPermission: _TypeAlias = ParticipantPermission # noqa: Y015 diff --git a/livekit-rtc/livekit/rtc/_proto/room_pb2.py b/livekit-rtc/livekit/rtc/_proto/room_pb2.py index 45de6224..c2ec2b48 100644 --- a/livekit-rtc/livekit/rtc/_proto/room_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/room_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: room.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 7.34.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 7, + 34, + 1, + '', + 'room.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -22,32 +32,34 @@ from . import data_track_pb2 as data__track__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\nroom.proto\x12\rlivekit.proto\x1a\ne2ee.proto\x1a\x0chandle.proto\x1a\x11participant.proto\x1a\x0btrack.proto\x1a\x11video_frame.proto\x1a\x0bstats.proto\x1a\x11\x64\x61ta_stream.proto\x1a\x10\x64\x61ta_track.proto\"s\n\x0e\x43onnectRequest\x12\x0b\n\x03url\x18\x01 \x02(\t\x12\r\n\x05token\x18\x02 \x02(\t\x12+\n\x07options\x18\x03 \x02(\x0b\x32\x1a.livekit.proto.RoomOptions\x12\x18\n\x10request_async_id\x18\x04 \x01(\x04\"#\n\x0f\x43onnectResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\xbf\x03\n\x0f\x43onnectCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\x0f\n\x05\x65rror\x18\x02 \x01(\tH\x00\x12\x37\n\x06result\x18\x03 \x01(\x0b\x32%.livekit.proto.ConnectCallback.ResultH\x00\x1a\x89\x01\n\x15ParticipantWithTracks\x12\x34\n\x0bparticipant\x18\x01 \x02(\x0b\x32\x1f.livekit.proto.OwnedParticipant\x12:\n\x0cpublications\x18\x02 \x03(\x0b\x32$.livekit.proto.OwnedTrackPublication\x1a\xb8\x01\n\x06Result\x12&\n\x04room\x18\x01 \x02(\x0b\x32\x18.livekit.proto.OwnedRoom\x12:\n\x11local_participant\x18\x02 \x02(\x0b\x32\x1f.livekit.proto.OwnedParticipant\x12J\n\x0cparticipants\x18\x03 \x03(\x0b\x32\x34.livekit.proto.ConnectCallback.ParticipantWithTracksB\t\n\x07message\"s\n\x11\x44isconnectRequest\x12\x13\n\x0broom_handle\x18\x01 \x02(\x04\x12\x18\n\x10request_async_id\x18\x02 \x01(\x04\x12/\n\x06reason\x18\x03 \x01(\x0e\x32\x1f.livekit.proto.DisconnectReason\"&\n\x12\x44isconnectResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"&\n\x12\x44isconnectCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\x9c\x01\n\x13PublishTrackRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x14\n\x0ctrack_handle\x18\x02 \x02(\x04\x12\x33\n\x07options\x18\x03 \x02(\x0b\x32\".livekit.proto.TrackPublishOptions\x12\x18\n\x10request_async_id\x18\x04 \x01(\x04\"(\n\x14PublishTrackResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\x81\x01\n\x14PublishTrackCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\x0f\n\x05\x65rror\x18\x02 \x01(\tH\x00\x12;\n\x0bpublication\x18\x03 \x01(\x0b\x32$.livekit.proto.OwnedTrackPublicationH\x00\x42\t\n\x07message\"\x81\x01\n\x15UnpublishTrackRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x11\n\ttrack_sid\x18\x02 \x02(\t\x12\x19\n\x11stop_on_unpublish\x18\x03 \x02(\x08\x12\x18\n\x10request_async_id\x18\x04 \x01(\x04\"*\n\x16UnpublishTrackResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"9\n\x16UnpublishTrackCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"\xd3\x01\n\x12PublishDataRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x10\n\x08\x64\x61ta_ptr\x18\x02 \x02(\x04\x12\x10\n\x08\x64\x61ta_len\x18\x03 \x02(\x04\x12\x10\n\x08reliable\x18\x04 \x02(\x08\x12\x1c\n\x10\x64\x65stination_sids\x18\x05 \x03(\tB\x02\x18\x01\x12\r\n\x05topic\x18\x06 \x01(\t\x12\x1e\n\x16\x64\x65stination_identities\x18\x07 \x03(\t\x12\x18\n\x10request_async_id\x18\x08 \x01(\x04\"\'\n\x13PublishDataResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"6\n\x13PublishDataCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"\xc0\x01\n\x1bPublishTranscriptionRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x1c\n\x14participant_identity\x18\x02 \x02(\t\x12\x10\n\x08track_id\x18\x03 \x02(\t\x12\x35\n\x08segments\x18\x04 \x03(\x0b\x32#.livekit.proto.TranscriptionSegment\x12\x18\n\x10request_async_id\x18\x05 \x01(\x04\"0\n\x1cPublishTranscriptionResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"?\n\x1cPublishTranscriptionCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"\x90\x01\n\x15PublishSipDtmfRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x0c\n\x04\x63ode\x18\x02 \x02(\r\x12\r\n\x05\x64igit\x18\x03 \x02(\t\x12\x1e\n\x16\x64\x65stination_identities\x18\x04 \x03(\t\x12\x18\n\x10request_async_id\x18\x05 \x01(\x04\"*\n\x16PublishSipDtmfResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"9\n\x16PublishSipDtmfCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"g\n\x17SetLocalMetadataRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x10\n\x08metadata\x18\x02 \x02(\t\x12\x18\n\x10request_async_id\x18\x03 \x01(\x04\",\n\x18SetLocalMetadataResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\";\n\x18SetLocalMetadataCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"\x9e\x01\n\x16SendChatMessageRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x0f\n\x07message\x18\x02 \x02(\t\x12\x1e\n\x16\x64\x65stination_identities\x18\x03 \x03(\t\x12\x17\n\x0fsender_identity\x18\x04 \x01(\t\x12\x18\n\x10request_async_id\x18\x05 \x01(\x04\"\xd6\x01\n\x16\x45\x64itChatMessageRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x11\n\tedit_text\x18\x02 \x02(\t\x12\x34\n\x10original_message\x18\x03 \x02(\x0b\x32\x1a.livekit.proto.ChatMessage\x12\x1e\n\x16\x64\x65stination_identities\x18\x04 \x03(\t\x12\x17\n\x0fsender_identity\x18\x05 \x01(\t\x12\x18\n\x10request_async_id\x18\x06 \x01(\x04\"+\n\x17SendChatMessageResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"{\n\x17SendChatMessageCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\x0f\n\x05\x65rror\x18\x02 \x01(\tH\x00\x12\x32\n\x0c\x63hat_message\x18\x03 \x01(\x0b\x32\x1a.livekit.proto.ChatMessageH\x00\x42\t\n\x07message\"\x8b\x01\n\x19SetLocalAttributesRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x32\n\nattributes\x18\x02 \x03(\x0b\x32\x1e.livekit.proto.AttributesEntry\x12\x18\n\x10request_async_id\x18\x03 \x01(\x04\"-\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x02(\t\x12\r\n\x05value\x18\x02 \x02(\t\".\n\x1aSetLocalAttributesResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"=\n\x1aSetLocalAttributesCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"_\n\x13SetLocalNameRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x0c\n\x04name\x18\x02 \x02(\t\x12\x18\n\x10request_async_id\x18\x03 \x01(\x04\"(\n\x14SetLocalNameResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"7\n\x14SetLocalNameCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"E\n\x14SetSubscribedRequest\x12\x11\n\tsubscribe\x18\x01 \x02(\x08\x12\x1a\n\x12publication_handle\x18\x02 \x02(\x04\"\x17\n\x15SetSubscribedResponse\"G\n\x16GetSessionStatsRequest\x12\x13\n\x0broom_handle\x18\x01 \x02(\x04\x12\x18\n\x10request_async_id\x18\x02 \x01(\x04\"+\n\x17GetSessionStatsResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\xf7\x01\n\x17GetSessionStatsCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\x0f\n\x05\x65rror\x18\x02 \x01(\tH\x00\x12?\n\x06result\x18\x03 \x01(\x0b\x32-.livekit.proto.GetSessionStatsCallback.ResultH\x00\x1am\n\x06Result\x12\x30\n\x0fpublisher_stats\x18\x01 \x03(\x0b\x32\x17.livekit.proto.RtcStats\x12\x31\n\x10subscriber_stats\x18\x02 \x03(\x0b\x32\x17.livekit.proto.RtcStatsB\t\n\x07message\";\n\rVideoEncoding\x12\x13\n\x0bmax_bitrate\x18\x01 \x02(\x04\x12\x15\n\rmax_framerate\x18\x02 \x02(\x01\"$\n\rAudioEncoding\x12\x13\n\x0bmax_bitrate\x18\x01 \x02(\x04\"\xb5\x02\n\x13TrackPublishOptions\x12\x34\n\x0evideo_encoding\x18\x01 \x01(\x0b\x32\x1c.livekit.proto.VideoEncoding\x12\x34\n\x0e\x61udio_encoding\x18\x02 \x01(\x0b\x32\x1c.livekit.proto.AudioEncoding\x12.\n\x0bvideo_codec\x18\x03 \x01(\x0e\x32\x19.livekit.proto.VideoCodec\x12\x0b\n\x03\x64tx\x18\x04 \x01(\x08\x12\x0b\n\x03red\x18\x05 \x01(\x08\x12\x11\n\tsimulcast\x18\x06 \x01(\x08\x12*\n\x06source\x18\x07 \x01(\x0e\x32\x1a.livekit.proto.TrackSource\x12\x0e\n\x06stream\x18\x08 \x01(\t\x12\x19\n\x11preconnect_buffer\x18\t \x01(\x08\"=\n\tIceServer\x12\x0c\n\x04urls\x18\x01 \x03(\t\x12\x10\n\x08username\x18\x02 \x01(\t\x12\x10\n\x08password\x18\x03 \x01(\t\"\xc4\x01\n\tRtcConfig\x12;\n\x12ice_transport_type\x18\x01 \x01(\x0e\x32\x1f.livekit.proto.IceTransportType\x12K\n\x1a\x63ontinual_gathering_policy\x18\x02 \x01(\x0e\x32\'.livekit.proto.ContinualGatheringPolicy\x12-\n\x0bice_servers\x18\x03 \x03(\x0b\x32\x18.livekit.proto.IceServer\"\xae\x02\n\x0bRoomOptions\x12\x16\n\x0e\x61uto_subscribe\x18\x01 \x01(\x08\x12\x17\n\x0f\x61\x64\x61ptive_stream\x18\x02 \x01(\x08\x12\x10\n\x08\x64ynacast\x18\x03 \x01(\x08\x12,\n\x04\x65\x32\x65\x65\x18\x04 \x01(\x0b\x32\x1a.livekit.proto.E2eeOptionsB\x02\x18\x01\x12,\n\nrtc_config\x18\x05 \x01(\x0b\x32\x18.livekit.proto.RtcConfig\x12\x14\n\x0cjoin_retries\x18\x06 \x01(\r\x12.\n\nencryption\x18\x07 \x01(\x0b\x32\x1a.livekit.proto.E2eeOptions\x12\x1e\n\x16single_peer_connection\x18\x08 \x01(\x08\x12\x1a\n\x12\x63onnect_timeout_ms\x18\t \x01(\x04\"w\n\x14TranscriptionSegment\x12\n\n\x02id\x18\x01 \x02(\t\x12\x0c\n\x04text\x18\x02 \x02(\t\x12\x12\n\nstart_time\x18\x03 \x02(\x04\x12\x10\n\x08\x65nd_time\x18\x04 \x02(\x04\x12\r\n\x05\x66inal\x18\x05 \x02(\x08\x12\x10\n\x08language\x18\x06 \x02(\t\"0\n\nBufferInfo\x12\x10\n\x08\x64\x61ta_ptr\x18\x01 \x02(\x04\x12\x10\n\x08\x64\x61ta_len\x18\x02 \x02(\x04\"e\n\x0bOwnedBuffer\x12-\n\x06handle\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12\'\n\x04\x64\x61ta\x18\x02 \x02(\x0b\x32\x19.livekit.proto.BufferInfo\"\x85\x17\n\tRoomEvent\x12\x13\n\x0broom_handle\x18\x01 \x02(\x04\x12\x44\n\x15participant_connected\x18\x02 \x01(\x0b\x32#.livekit.proto.ParticipantConnectedH\x00\x12J\n\x18participant_disconnected\x18\x03 \x01(\x0b\x32&.livekit.proto.ParticipantDisconnectedH\x00\x12\x43\n\x15local_track_published\x18\x04 \x01(\x0b\x32\".livekit.proto.LocalTrackPublishedH\x00\x12G\n\x17local_track_unpublished\x18\x05 \x01(\x0b\x32$.livekit.proto.LocalTrackUnpublishedH\x00\x12\x45\n\x16local_track_subscribed\x18\x06 \x01(\x0b\x32#.livekit.proto.LocalTrackSubscribedH\x00\x12\x38\n\x0ftrack_published\x18\x07 \x01(\x0b\x32\x1d.livekit.proto.TrackPublishedH\x00\x12<\n\x11track_unpublished\x18\x08 \x01(\x0b\x32\x1f.livekit.proto.TrackUnpublishedH\x00\x12:\n\x10track_subscribed\x18\t \x01(\x0b\x32\x1e.livekit.proto.TrackSubscribedH\x00\x12>\n\x12track_unsubscribed\x18\n \x01(\x0b\x32 .livekit.proto.TrackUnsubscribedH\x00\x12K\n\x19track_subscription_failed\x18\x0b \x01(\x0b\x32&.livekit.proto.TrackSubscriptionFailedH\x00\x12\x30\n\x0btrack_muted\x18\x0c \x01(\x0b\x32\x19.livekit.proto.TrackMutedH\x00\x12\x34\n\rtrack_unmuted\x18\r \x01(\x0b\x32\x1b.livekit.proto.TrackUnmutedH\x00\x12G\n\x17\x61\x63tive_speakers_changed\x18\x0e \x01(\x0b\x32$.livekit.proto.ActiveSpeakersChangedH\x00\x12\x43\n\x15room_metadata_changed\x18\x0f \x01(\x0b\x32\".livekit.proto.RoomMetadataChangedH\x00\x12\x39\n\x10room_sid_changed\x18\x10 \x01(\x0b\x32\x1d.livekit.proto.RoomSidChangedH\x00\x12Q\n\x1cparticipant_metadata_changed\x18\x11 \x01(\x0b\x32).livekit.proto.ParticipantMetadataChangedH\x00\x12I\n\x18participant_name_changed\x18\x12 \x01(\x0b\x32%.livekit.proto.ParticipantNameChangedH\x00\x12U\n\x1eparticipant_attributes_changed\x18\x13 \x01(\x0b\x32+.livekit.proto.ParticipantAttributesChangedH\x00\x12M\n\x1a\x63onnection_quality_changed\x18\x14 \x01(\x0b\x32\'.livekit.proto.ConnectionQualityChangedH\x00\x12I\n\x18\x63onnection_state_changed\x18\x15 \x01(\x0b\x32%.livekit.proto.ConnectionStateChangedH\x00\x12\x33\n\x0c\x64isconnected\x18\x16 \x01(\x0b\x32\x1b.livekit.proto.DisconnectedH\x00\x12\x33\n\x0creconnecting\x18\x17 \x01(\x0b\x32\x1b.livekit.proto.ReconnectingH\x00\x12\x31\n\x0breconnected\x18\x18 \x01(\x0b\x32\x1a.livekit.proto.ReconnectedH\x00\x12=\n\x12\x65\x32\x65\x65_state_changed\x18\x19 \x01(\x0b\x32\x1f.livekit.proto.E2eeStateChangedH\x00\x12%\n\x03\x65os\x18\x1a \x01(\x0b\x32\x16.livekit.proto.RoomEOSH\x00\x12\x41\n\x14\x64\x61ta_packet_received\x18\x1b \x01(\x0b\x32!.livekit.proto.DataPacketReceivedH\x00\x12\x46\n\x16transcription_received\x18\x1c \x01(\x0b\x32$.livekit.proto.TranscriptionReceivedH\x00\x12:\n\x0c\x63hat_message\x18\x1d \x01(\x0b\x32\".livekit.proto.ChatMessageReceivedH\x00\x12I\n\x16stream_header_received\x18\x1e \x01(\x0b\x32\'.livekit.proto.DataStreamHeaderReceivedH\x00\x12G\n\x15stream_chunk_received\x18\x1f \x01(\x0b\x32&.livekit.proto.DataStreamChunkReceivedH\x00\x12K\n\x17stream_trailer_received\x18 \x01(\x0b\x32(.livekit.proto.DataStreamTrailerReceivedH\x00\x12i\n\"data_channel_low_threshold_changed\x18! \x01(\x0b\x32;.livekit.proto.DataChannelBufferedAmountLowThresholdChangedH\x00\x12=\n\x12\x62yte_stream_opened\x18\" \x01(\x0b\x32\x1f.livekit.proto.ByteStreamOpenedH\x00\x12=\n\x12text_stream_opened\x18# \x01(\x0b\x32\x1f.livekit.proto.TextStreamOpenedH\x00\x12/\n\x0croom_updated\x18$ \x01(\x0b\x32\x17.livekit.proto.RoomInfoH\x00\x12(\n\x05moved\x18% \x01(\x0b\x32\x17.livekit.proto.RoomInfoH\x00\x12\x42\n\x14participants_updated\x18& \x01(\x0b\x32\".livekit.proto.ParticipantsUpdatedH\x00\x12\x62\n%participant_encryption_status_changed\x18\' \x01(\x0b\x32\x31.livekit.proto.ParticipantEncryptionStatusChangedH\x00\x12U\n\x1eparticipant_permission_changed\x18) \x01(\x0b\x32+.livekit.proto.ParticipantPermissionChangedH\x00\x12\x38\n\x0ftoken_refreshed\x18( \x01(\x0b\x32\x1d.livekit.proto.TokenRefreshedH\x00\x12>\n\x12participant_active\x18* \x01(\x0b\x32 .livekit.proto.ParticipantActiveH\x00\x12\x41\n\x14\x64\x61ta_track_published\x18+ \x01(\x0b\x32!.livekit.proto.DataTrackPublishedH\x00\x12\x45\n\x16\x64\x61ta_track_unpublished\x18, \x01(\x0b\x32#.livekit.proto.DataTrackUnpublishedH\x00\x42\t\n\x07message\"\xc9\x02\n\x08RoomInfo\x12\x0b\n\x03sid\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x02(\t\x12\x10\n\x08metadata\x18\x03 \x02(\t\x12.\n&lossy_dc_buffered_amount_low_threshold\x18\x04 \x02(\x04\x12\x31\n)reliable_dc_buffered_amount_low_threshold\x18\x05 \x02(\x04\x12\x15\n\rempty_timeout\x18\x06 \x02(\r\x12\x19\n\x11\x64\x65parture_timeout\x18\x07 \x02(\r\x12\x18\n\x10max_participants\x18\x08 \x02(\r\x12\x15\n\rcreation_time\x18\t \x02(\x03\x12\x18\n\x10num_participants\x18\n \x02(\r\x12\x16\n\x0enum_publishers\x18\x0b \x02(\r\x12\x18\n\x10\x61\x63tive_recording\x18\x0c \x02(\x08\"a\n\tOwnedRoom\x12-\n\x06handle\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12%\n\x04info\x18\x02 \x02(\x0b\x32\x17.livekit.proto.RoomInfo\"K\n\x13ParticipantsUpdated\x12\x34\n\x0cparticipants\x18\x01 \x03(\x0b\x32\x1e.livekit.proto.ParticipantInfo\"E\n\x14ParticipantConnected\x12-\n\x04info\x18\x01 \x02(\x0b\x32\x1f.livekit.proto.OwnedParticipant\"1\n\x11ParticipantActive\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\"s\n\x17ParticipantDisconnected\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12:\n\x11\x64isconnect_reason\x18\x02 \x02(\x0e\x32\x1f.livekit.proto.DisconnectReason\"(\n\x13LocalTrackPublished\x12\x11\n\ttrack_sid\x18\x01 \x02(\t\"0\n\x15LocalTrackUnpublished\x12\x17\n\x0fpublication_sid\x18\x01 \x02(\t\")\n\x14LocalTrackSubscribed\x12\x11\n\ttrack_sid\x18\x02 \x02(\t\"i\n\x0eTrackPublished\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x39\n\x0bpublication\x18\x02 \x02(\x0b\x32$.livekit.proto.OwnedTrackPublication\"I\n\x10TrackUnpublished\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x17\n\x0fpublication_sid\x18\x02 \x02(\t\"Y\n\x0fTrackSubscribed\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12(\n\x05track\x18\x02 \x02(\x0b\x32\x19.livekit.proto.OwnedTrack\"D\n\x11TrackUnsubscribed\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x11\n\ttrack_sid\x18\x02 \x02(\t\"Y\n\x17TrackSubscriptionFailed\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x11\n\ttrack_sid\x18\x02 \x02(\t\x12\r\n\x05\x65rror\x18\x03 \x02(\t\"=\n\nTrackMuted\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x11\n\ttrack_sid\x18\x02 \x02(\t\"?\n\x0cTrackUnmuted\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x11\n\ttrack_sid\x18\x02 \x02(\t\"_\n\x10\x45\x32\x65\x65StateChanged\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12-\n\x05state\x18\x02 \x02(\x0e\x32\x1e.livekit.proto.EncryptionState\"7\n\x15\x41\x63tiveSpeakersChanged\x12\x1e\n\x16participant_identities\x18\x01 \x03(\t\"\'\n\x13RoomMetadataChanged\x12\x10\n\x08metadata\x18\x01 \x02(\t\"\x1d\n\x0eRoomSidChanged\x12\x0b\n\x03sid\x18\x01 \x02(\t\"L\n\x1aParticipantMetadataChanged\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x10\n\x08metadata\x18\x02 \x02(\t\"\xac\x01\n\x1cParticipantAttributesChanged\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x32\n\nattributes\x18\x02 \x03(\x0b\x32\x1e.livekit.proto.AttributesEntry\x12:\n\x12\x63hanged_attributes\x18\x03 \x03(\x0b\x32\x1e.livekit.proto.AttributesEntry\"X\n\"ParticipantEncryptionStatusChanged\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x14\n\x0cis_encrypted\x18\x02 \x02(\x08\"D\n\x16ParticipantNameChanged\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x0c\n\x04name\x18\x02 \x02(\t\"v\n\x1cParticipantPermissionChanged\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x38\n\npermission\x18\x02 \x01(\x0b\x32$.livekit.proto.ParticipantPermission\"k\n\x18\x43onnectionQualityChanged\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x31\n\x07quality\x18\x02 \x02(\x0e\x32 .livekit.proto.ConnectionQuality\"E\n\nUserPacket\x12(\n\x04\x64\x61ta\x18\x01 \x02(\x0b\x32\x1a.livekit.proto.OwnedBuffer\x12\r\n\x05topic\x18\x02 \x01(\t\"y\n\x0b\x43hatMessage\x12\n\n\x02id\x18\x01 \x02(\t\x12\x11\n\ttimestamp\x18\x02 \x02(\x03\x12\x0f\n\x07message\x18\x03 \x02(\t\x12\x16\n\x0e\x65\x64it_timestamp\x18\x04 \x01(\x03\x12\x0f\n\x07\x64\x65leted\x18\x05 \x01(\x08\x12\x11\n\tgenerated\x18\x06 \x01(\x08\"`\n\x13\x43hatMessageReceived\x12+\n\x07message\x18\x01 \x02(\x0b\x32\x1a.livekit.proto.ChatMessage\x12\x1c\n\x14participant_identity\x18\x02 \x02(\t\"&\n\x07SipDTMF\x12\x0c\n\x04\x63ode\x18\x01 \x02(\r\x12\r\n\x05\x64igit\x18\x02 \x01(\t\"\xbf\x01\n\x12\x44\x61taPacketReceived\x12+\n\x04kind\x18\x01 \x02(\x0e\x32\x1d.livekit.proto.DataPacketKind\x12\x1c\n\x14participant_identity\x18\x02 \x02(\t\x12)\n\x04user\x18\x04 \x01(\x0b\x32\x19.livekit.proto.UserPacketH\x00\x12*\n\x08sip_dtmf\x18\x05 \x01(\x0b\x32\x16.livekit.proto.SipDTMFH\x00\x42\x07\n\x05value\"\x7f\n\x15TranscriptionReceived\x12\x1c\n\x14participant_identity\x18\x01 \x01(\t\x12\x11\n\ttrack_sid\x18\x02 \x01(\t\x12\x35\n\x08segments\x18\x03 \x03(\x0b\x32#.livekit.proto.TranscriptionSegment\"G\n\x16\x43onnectionStateChanged\x12-\n\x05state\x18\x01 \x02(\x0e\x32\x1e.livekit.proto.ConnectionState\"\x0b\n\tConnected\"?\n\x0c\x44isconnected\x12/\n\x06reason\x18\x01 \x02(\x0e\x32\x1f.livekit.proto.DisconnectReason\"\x0e\n\x0cReconnecting\"\r\n\x0bReconnected\"\x1f\n\x0eTokenRefreshed\x12\r\n\x05token\x18\x01 \x02(\t\"\t\n\x07RoomEOS\"\x8e\x07\n\nDataStream\x1a\xaa\x01\n\nTextHeader\x12?\n\x0eoperation_type\x18\x01 \x02(\x0e\x32\'.livekit.proto.DataStream.OperationType\x12\x0f\n\x07version\x18\x02 \x01(\x05\x12\x1a\n\x12reply_to_stream_id\x18\x03 \x01(\t\x12\x1b\n\x13\x61ttached_stream_ids\x18\x04 \x03(\t\x12\x11\n\tgenerated\x18\x05 \x01(\x08\x1a\x1a\n\nByteHeader\x12\x0c\n\x04name\x18\x01 \x02(\t\x1a\xeb\x02\n\x06Header\x12\x11\n\tstream_id\x18\x01 \x02(\t\x12\x11\n\ttimestamp\x18\x02 \x02(\x03\x12\x11\n\tmime_type\x18\x03 \x02(\t\x12\r\n\x05topic\x18\x04 \x02(\t\x12\x14\n\x0ctotal_length\x18\x05 \x01(\x04\x12\x44\n\nattributes\x18\x06 \x03(\x0b\x32\x30.livekit.proto.DataStream.Header.AttributesEntry\x12;\n\x0btext_header\x18\x07 \x01(\x0b\x32$.livekit.proto.DataStream.TextHeaderH\x00\x12;\n\x0b\x62yte_header\x18\x08 \x01(\x0b\x32$.livekit.proto.DataStream.ByteHeaderH\x00\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x10\n\x0e\x63ontent_header\x1a]\n\x05\x43hunk\x12\x11\n\tstream_id\x18\x01 \x02(\t\x12\x13\n\x0b\x63hunk_index\x18\x02 \x02(\x04\x12\x0f\n\x07\x63ontent\x18\x03 \x02(\x0c\x12\x0f\n\x07version\x18\x04 \x01(\x05\x12\n\n\x02iv\x18\x05 \x01(\x0c\x1a\xa6\x01\n\x07Trailer\x12\x11\n\tstream_id\x18\x01 \x02(\t\x12\x0e\n\x06reason\x18\x02 \x02(\t\x12\x45\n\nattributes\x18\x03 \x03(\x0b\x32\x31.livekit.proto.DataStream.Trailer.AttributesEntry\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"A\n\rOperationType\x12\n\n\x06\x43REATE\x10\x00\x12\n\n\x06UPDATE\x10\x01\x12\n\n\x06\x44\x45LETE\x10\x02\x12\x0c\n\x08REACTION\x10\x03\"j\n\x18\x44\x61taStreamHeaderReceived\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x30\n\x06header\x18\x02 \x02(\x0b\x32 .livekit.proto.DataStream.Header\"g\n\x17\x44\x61taStreamChunkReceived\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12.\n\x05\x63hunk\x18\x02 \x02(\x0b\x32\x1f.livekit.proto.DataStream.Chunk\"m\n\x19\x44\x61taStreamTrailerReceived\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x32\n\x07trailer\x18\x02 \x02(\x0b\x32!.livekit.proto.DataStream.Trailer\"\xc0\x01\n\x17SendStreamHeaderRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x30\n\x06header\x18\x02 \x02(\x0b\x32 .livekit.proto.DataStream.Header\x12\x1e\n\x16\x64\x65stination_identities\x18\x03 \x03(\t\x12\x17\n\x0fsender_identity\x18\x04 \x02(\t\x12\x18\n\x10request_async_id\x18\x05 \x01(\x04\"\xbd\x01\n\x16SendStreamChunkRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12.\n\x05\x63hunk\x18\x02 \x02(\x0b\x32\x1f.livekit.proto.DataStream.Chunk\x12\x1e\n\x16\x64\x65stination_identities\x18\x03 \x03(\t\x12\x17\n\x0fsender_identity\x18\x04 \x02(\t\x12\x18\n\x10request_async_id\x18\x05 \x01(\x04\"\xc3\x01\n\x18SendStreamTrailerRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x32\n\x07trailer\x18\x02 \x02(\x0b\x32!.livekit.proto.DataStream.Trailer\x12\x1e\n\x16\x64\x65stination_identities\x18\x03 \x03(\t\x12\x17\n\x0fsender_identity\x18\x04 \x02(\t\x12\x18\n\x10request_async_id\x18\x05 \x01(\x04\",\n\x18SendStreamHeaderResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"+\n\x17SendStreamChunkResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"-\n\x19SendStreamTrailerResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\";\n\x18SendStreamHeaderCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\":\n\x17SendStreamChunkCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"<\n\x19SendStreamTrailerCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"\x93\x01\n/SetDataChannelBufferedAmountLowThresholdRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x11\n\tthreshold\x18\x02 \x02(\x04\x12+\n\x04kind\x18\x03 \x02(\x0e\x32\x1d.livekit.proto.DataPacketKind\"2\n0SetDataChannelBufferedAmountLowThresholdResponse\"n\n,DataChannelBufferedAmountLowThresholdChanged\x12+\n\x04kind\x18\x01 \x02(\x0e\x32\x1d.livekit.proto.DataPacketKind\x12\x11\n\tthreshold\x18\x02 \x02(\x04\"f\n\x10\x42yteStreamOpened\x12\x34\n\x06reader\x18\x01 \x02(\x0b\x32$.livekit.proto.OwnedByteStreamReader\x12\x1c\n\x14participant_identity\x18\x02 \x02(\t\"f\n\x10TextStreamOpened\x12\x34\n\x06reader\x18\x01 \x02(\x0b\x32$.livekit.proto.OwnedTextStreamReader\x12\x1c\n\x14participant_identity\x18\x02 \x02(\t\"H\n\x12\x44\x61taTrackPublished\x12\x32\n\x05track\x18\x01 \x02(\x0b\x32#.livekit.proto.OwnedRemoteDataTrack\"#\n\x14\x44\x61taTrackUnpublished\x12\x0b\n\x03sid\x18\x01 \x02(\t*P\n\x10IceTransportType\x12\x13\n\x0fTRANSPORT_RELAY\x10\x00\x12\x14\n\x10TRANSPORT_NOHOST\x10\x01\x12\x11\n\rTRANSPORT_ALL\x10\x02*C\n\x18\x43ontinualGatheringPolicy\x12\x0f\n\x0bGATHER_ONCE\x10\x00\x12\x16\n\x12GATHER_CONTINUALLY\x10\x01*`\n\x11\x43onnectionQuality\x12\x10\n\x0cQUALITY_POOR\x10\x00\x12\x10\n\x0cQUALITY_GOOD\x10\x01\x12\x15\n\x11QUALITY_EXCELLENT\x10\x02\x12\x10\n\x0cQUALITY_LOST\x10\x03*S\n\x0f\x43onnectionState\x12\x15\n\x11\x43ONN_DISCONNECTED\x10\x00\x12\x12\n\x0e\x43ONN_CONNECTED\x10\x01\x12\x15\n\x11\x43ONN_RECONNECTING\x10\x02*3\n\x0e\x44\x61taPacketKind\x12\x0e\n\nKIND_LOSSY\x10\x00\x12\x11\n\rKIND_RELIABLE\x10\x01\x42\x10\xaa\x02\rLiveKit.Proto') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\nroom.proto\x12\rlivekit.proto\x1a\ne2ee.proto\x1a\x0chandle.proto\x1a\x11participant.proto\x1a\x0btrack.proto\x1a\x11video_frame.proto\x1a\x0bstats.proto\x1a\x11\x64\x61ta_stream.proto\x1a\x10\x64\x61ta_track.proto\"s\n\x0e\x43onnectRequest\x12\x0b\n\x03url\x18\x01 \x02(\t\x12\r\n\x05token\x18\x02 \x02(\t\x12+\n\x07options\x18\x03 \x02(\x0b\x32\x1a.livekit.proto.RoomOptions\x12\x18\n\x10request_async_id\x18\x04 \x01(\x04\"#\n\x0f\x43onnectResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\xbf\x03\n\x0f\x43onnectCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\x0f\n\x05\x65rror\x18\x02 \x01(\tH\x00\x12\x37\n\x06result\x18\x03 \x01(\x0b\x32%.livekit.proto.ConnectCallback.ResultH\x00\x1a\x89\x01\n\x15ParticipantWithTracks\x12\x34\n\x0bparticipant\x18\x01 \x02(\x0b\x32\x1f.livekit.proto.OwnedParticipant\x12:\n\x0cpublications\x18\x02 \x03(\x0b\x32$.livekit.proto.OwnedTrackPublication\x1a\xb8\x01\n\x06Result\x12&\n\x04room\x18\x01 \x02(\x0b\x32\x18.livekit.proto.OwnedRoom\x12:\n\x11local_participant\x18\x02 \x02(\x0b\x32\x1f.livekit.proto.OwnedParticipant\x12J\n\x0cparticipants\x18\x03 \x03(\x0b\x32\x34.livekit.proto.ConnectCallback.ParticipantWithTracksB\t\n\x07message\"s\n\x11\x44isconnectRequest\x12\x13\n\x0broom_handle\x18\x01 \x02(\x04\x12\x18\n\x10request_async_id\x18\x02 \x01(\x04\x12/\n\x06reason\x18\x03 \x01(\x0e\x32\x1f.livekit.proto.DisconnectReason\"&\n\x12\x44isconnectResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"&\n\x12\x44isconnectCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\x7f\n\x17SimulateScenarioRequest\x12\x13\n\x0broom_handle\x18\x01 \x02(\x04\x12\x35\n\x08scenario\x18\x02 \x02(\x0e\x32#.livekit.proto.SimulateScenarioKind\x12\x18\n\x10request_async_id\x18\x03 \x01(\x04\",\n\x18SimulateScenarioResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\";\n\x18SimulateScenarioCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"\x9c\x01\n\x13PublishTrackRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x14\n\x0ctrack_handle\x18\x02 \x02(\x04\x12\x33\n\x07options\x18\x03 \x02(\x0b\x32\".livekit.proto.TrackPublishOptions\x12\x18\n\x10request_async_id\x18\x04 \x01(\x04\"(\n\x14PublishTrackResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\x81\x01\n\x14PublishTrackCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\x0f\n\x05\x65rror\x18\x02 \x01(\tH\x00\x12;\n\x0bpublication\x18\x03 \x01(\x0b\x32$.livekit.proto.OwnedTrackPublicationH\x00\x42\t\n\x07message\"\x81\x01\n\x15UnpublishTrackRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x11\n\ttrack_sid\x18\x02 \x02(\t\x12\x19\n\x11stop_on_unpublish\x18\x03 \x02(\x08\x12\x18\n\x10request_async_id\x18\x04 \x01(\x04\"*\n\x16UnpublishTrackResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"9\n\x16UnpublishTrackCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"\xd3\x01\n\x12PublishDataRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x10\n\x08\x64\x61ta_ptr\x18\x02 \x02(\x04\x12\x10\n\x08\x64\x61ta_len\x18\x03 \x02(\x04\x12\x10\n\x08reliable\x18\x04 \x02(\x08\x12\x1c\n\x10\x64\x65stination_sids\x18\x05 \x03(\tB\x02\x18\x01\x12\r\n\x05topic\x18\x06 \x01(\t\x12\x1e\n\x16\x64\x65stination_identities\x18\x07 \x03(\t\x12\x18\n\x10request_async_id\x18\x08 \x01(\x04\"\'\n\x13PublishDataResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"6\n\x13PublishDataCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"\xc0\x01\n\x1bPublishTranscriptionRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x1c\n\x14participant_identity\x18\x02 \x02(\t\x12\x10\n\x08track_id\x18\x03 \x02(\t\x12\x35\n\x08segments\x18\x04 \x03(\x0b\x32#.livekit.proto.TranscriptionSegment\x12\x18\n\x10request_async_id\x18\x05 \x01(\x04\"0\n\x1cPublishTranscriptionResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"?\n\x1cPublishTranscriptionCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"\x90\x01\n\x15PublishSipDtmfRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x0c\n\x04\x63ode\x18\x02 \x02(\r\x12\r\n\x05\x64igit\x18\x03 \x02(\t\x12\x1e\n\x16\x64\x65stination_identities\x18\x04 \x03(\t\x12\x18\n\x10request_async_id\x18\x05 \x01(\x04\"*\n\x16PublishSipDtmfResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"9\n\x16PublishSipDtmfCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"g\n\x17SetLocalMetadataRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x10\n\x08metadata\x18\x02 \x02(\t\x12\x18\n\x10request_async_id\x18\x03 \x01(\x04\",\n\x18SetLocalMetadataResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\";\n\x18SetLocalMetadataCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"\x9e\x01\n\x16SendChatMessageRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x0f\n\x07message\x18\x02 \x02(\t\x12\x1e\n\x16\x64\x65stination_identities\x18\x03 \x03(\t\x12\x17\n\x0fsender_identity\x18\x04 \x01(\t\x12\x18\n\x10request_async_id\x18\x05 \x01(\x04\"\xd6\x01\n\x16\x45\x64itChatMessageRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x11\n\tedit_text\x18\x02 \x02(\t\x12\x34\n\x10original_message\x18\x03 \x02(\x0b\x32\x1a.livekit.proto.ChatMessage\x12\x1e\n\x16\x64\x65stination_identities\x18\x04 \x03(\t\x12\x17\n\x0fsender_identity\x18\x05 \x01(\t\x12\x18\n\x10request_async_id\x18\x06 \x01(\x04\"+\n\x17SendChatMessageResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"{\n\x17SendChatMessageCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\x0f\n\x05\x65rror\x18\x02 \x01(\tH\x00\x12\x32\n\x0c\x63hat_message\x18\x03 \x01(\x0b\x32\x1a.livekit.proto.ChatMessageH\x00\x42\t\n\x07message\"\x8b\x01\n\x19SetLocalAttributesRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x32\n\nattributes\x18\x02 \x03(\x0b\x32\x1e.livekit.proto.AttributesEntry\x12\x18\n\x10request_async_id\x18\x03 \x01(\x04\"-\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x02(\t\x12\r\n\x05value\x18\x02 \x02(\t\".\n\x1aSetLocalAttributesResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"=\n\x1aSetLocalAttributesCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"_\n\x13SetLocalNameRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x0c\n\x04name\x18\x02 \x02(\t\x12\x18\n\x10request_async_id\x18\x03 \x01(\x04\"(\n\x14SetLocalNameResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"7\n\x14SetLocalNameCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"E\n\x14SetSubscribedRequest\x12\x11\n\tsubscribe\x18\x01 \x02(\x08\x12\x1a\n\x12publication_handle\x18\x02 \x02(\x04\"\x17\n\x15SetSubscribedResponse\"G\n\x16GetSessionStatsRequest\x12\x13\n\x0broom_handle\x18\x01 \x02(\x04\x12\x18\n\x10request_async_id\x18\x02 \x01(\x04\"+\n\x17GetSessionStatsResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\xf7\x01\n\x17GetSessionStatsCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\x0f\n\x05\x65rror\x18\x02 \x01(\tH\x00\x12?\n\x06result\x18\x03 \x01(\x0b\x32-.livekit.proto.GetSessionStatsCallback.ResultH\x00\x1am\n\x06Result\x12\x30\n\x0fpublisher_stats\x18\x01 \x03(\x0b\x32\x17.livekit.proto.RtcStats\x12\x31\n\x10subscriber_stats\x18\x02 \x03(\x0b\x32\x17.livekit.proto.RtcStatsB\t\n\x07message\";\n\rVideoEncoding\x12\x13\n\x0bmax_bitrate\x18\x01 \x02(\x04\x12\x15\n\rmax_framerate\x18\x02 \x02(\x01\"$\n\rAudioEncoding\x12\x13\n\x0bmax_bitrate\x18\x01 \x02(\x04\"\xb5\x02\n\x13TrackPublishOptions\x12\x34\n\x0evideo_encoding\x18\x01 \x01(\x0b\x32\x1c.livekit.proto.VideoEncoding\x12\x34\n\x0e\x61udio_encoding\x18\x02 \x01(\x0b\x32\x1c.livekit.proto.AudioEncoding\x12.\n\x0bvideo_codec\x18\x03 \x01(\x0e\x32\x19.livekit.proto.VideoCodec\x12\x0b\n\x03\x64tx\x18\x04 \x01(\x08\x12\x0b\n\x03red\x18\x05 \x01(\x08\x12\x11\n\tsimulcast\x18\x06 \x01(\x08\x12*\n\x06source\x18\x07 \x01(\x0e\x32\x1a.livekit.proto.TrackSource\x12\x0e\n\x06stream\x18\x08 \x01(\t\x12\x19\n\x11preconnect_buffer\x18\t \x01(\x08\"=\n\tIceServer\x12\x0c\n\x04urls\x18\x01 \x03(\t\x12\x10\n\x08username\x18\x02 \x01(\t\x12\x10\n\x08password\x18\x03 \x01(\t\"\xc4\x01\n\tRtcConfig\x12;\n\x12ice_transport_type\x18\x01 \x01(\x0e\x32\x1f.livekit.proto.IceTransportType\x12K\n\x1a\x63ontinual_gathering_policy\x18\x02 \x01(\x0e\x32\'.livekit.proto.ContinualGatheringPolicy\x12-\n\x0bice_servers\x18\x03 \x03(\x0b\x32\x18.livekit.proto.IceServer\"\xae\x02\n\x0bRoomOptions\x12\x16\n\x0e\x61uto_subscribe\x18\x01 \x01(\x08\x12\x17\n\x0f\x61\x64\x61ptive_stream\x18\x02 \x01(\x08\x12\x10\n\x08\x64ynacast\x18\x03 \x01(\x08\x12,\n\x04\x65\x32\x65\x65\x18\x04 \x01(\x0b\x32\x1a.livekit.proto.E2eeOptionsB\x02\x18\x01\x12,\n\nrtc_config\x18\x05 \x01(\x0b\x32\x18.livekit.proto.RtcConfig\x12\x14\n\x0cjoin_retries\x18\x06 \x01(\r\x12.\n\nencryption\x18\x07 \x01(\x0b\x32\x1a.livekit.proto.E2eeOptions\x12\x1e\n\x16single_peer_connection\x18\x08 \x01(\x08\x12\x1a\n\x12\x63onnect_timeout_ms\x18\t \x01(\x04\"w\n\x14TranscriptionSegment\x12\n\n\x02id\x18\x01 \x02(\t\x12\x0c\n\x04text\x18\x02 \x02(\t\x12\x12\n\nstart_time\x18\x03 \x02(\x04\x12\x10\n\x08\x65nd_time\x18\x04 \x02(\x04\x12\r\n\x05\x66inal\x18\x05 \x02(\x08\x12\x10\n\x08language\x18\x06 \x02(\t\"0\n\nBufferInfo\x12\x10\n\x08\x64\x61ta_ptr\x18\x01 \x02(\x04\x12\x10\n\x08\x64\x61ta_len\x18\x02 \x02(\x04\"e\n\x0bOwnedBuffer\x12-\n\x06handle\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12\'\n\x04\x64\x61ta\x18\x02 \x02(\x0b\x32\x19.livekit.proto.BufferInfo\"\x85\x17\n\tRoomEvent\x12\x13\n\x0broom_handle\x18\x01 \x02(\x04\x12\x44\n\x15participant_connected\x18\x02 \x01(\x0b\x32#.livekit.proto.ParticipantConnectedH\x00\x12J\n\x18participant_disconnected\x18\x03 \x01(\x0b\x32&.livekit.proto.ParticipantDisconnectedH\x00\x12\x43\n\x15local_track_published\x18\x04 \x01(\x0b\x32\".livekit.proto.LocalTrackPublishedH\x00\x12G\n\x17local_track_unpublished\x18\x05 \x01(\x0b\x32$.livekit.proto.LocalTrackUnpublishedH\x00\x12\x45\n\x16local_track_subscribed\x18\x06 \x01(\x0b\x32#.livekit.proto.LocalTrackSubscribedH\x00\x12\x38\n\x0ftrack_published\x18\x07 \x01(\x0b\x32\x1d.livekit.proto.TrackPublishedH\x00\x12<\n\x11track_unpublished\x18\x08 \x01(\x0b\x32\x1f.livekit.proto.TrackUnpublishedH\x00\x12:\n\x10track_subscribed\x18\t \x01(\x0b\x32\x1e.livekit.proto.TrackSubscribedH\x00\x12>\n\x12track_unsubscribed\x18\n \x01(\x0b\x32 .livekit.proto.TrackUnsubscribedH\x00\x12K\n\x19track_subscription_failed\x18\x0b \x01(\x0b\x32&.livekit.proto.TrackSubscriptionFailedH\x00\x12\x30\n\x0btrack_muted\x18\x0c \x01(\x0b\x32\x19.livekit.proto.TrackMutedH\x00\x12\x34\n\rtrack_unmuted\x18\r \x01(\x0b\x32\x1b.livekit.proto.TrackUnmutedH\x00\x12G\n\x17\x61\x63tive_speakers_changed\x18\x0e \x01(\x0b\x32$.livekit.proto.ActiveSpeakersChangedH\x00\x12\x43\n\x15room_metadata_changed\x18\x0f \x01(\x0b\x32\".livekit.proto.RoomMetadataChangedH\x00\x12\x39\n\x10room_sid_changed\x18\x10 \x01(\x0b\x32\x1d.livekit.proto.RoomSidChangedH\x00\x12Q\n\x1cparticipant_metadata_changed\x18\x11 \x01(\x0b\x32).livekit.proto.ParticipantMetadataChangedH\x00\x12I\n\x18participant_name_changed\x18\x12 \x01(\x0b\x32%.livekit.proto.ParticipantNameChangedH\x00\x12U\n\x1eparticipant_attributes_changed\x18\x13 \x01(\x0b\x32+.livekit.proto.ParticipantAttributesChangedH\x00\x12M\n\x1a\x63onnection_quality_changed\x18\x14 \x01(\x0b\x32\'.livekit.proto.ConnectionQualityChangedH\x00\x12I\n\x18\x63onnection_state_changed\x18\x15 \x01(\x0b\x32%.livekit.proto.ConnectionStateChangedH\x00\x12\x33\n\x0c\x64isconnected\x18\x16 \x01(\x0b\x32\x1b.livekit.proto.DisconnectedH\x00\x12\x33\n\x0creconnecting\x18\x17 \x01(\x0b\x32\x1b.livekit.proto.ReconnectingH\x00\x12\x31\n\x0breconnected\x18\x18 \x01(\x0b\x32\x1a.livekit.proto.ReconnectedH\x00\x12=\n\x12\x65\x32\x65\x65_state_changed\x18\x19 \x01(\x0b\x32\x1f.livekit.proto.E2eeStateChangedH\x00\x12%\n\x03\x65os\x18\x1a \x01(\x0b\x32\x16.livekit.proto.RoomEOSH\x00\x12\x41\n\x14\x64\x61ta_packet_received\x18\x1b \x01(\x0b\x32!.livekit.proto.DataPacketReceivedH\x00\x12\x46\n\x16transcription_received\x18\x1c \x01(\x0b\x32$.livekit.proto.TranscriptionReceivedH\x00\x12:\n\x0c\x63hat_message\x18\x1d \x01(\x0b\x32\".livekit.proto.ChatMessageReceivedH\x00\x12I\n\x16stream_header_received\x18\x1e \x01(\x0b\x32\'.livekit.proto.DataStreamHeaderReceivedH\x00\x12G\n\x15stream_chunk_received\x18\x1f \x01(\x0b\x32&.livekit.proto.DataStreamChunkReceivedH\x00\x12K\n\x17stream_trailer_received\x18 \x01(\x0b\x32(.livekit.proto.DataStreamTrailerReceivedH\x00\x12i\n\"data_channel_low_threshold_changed\x18! \x01(\x0b\x32;.livekit.proto.DataChannelBufferedAmountLowThresholdChangedH\x00\x12=\n\x12\x62yte_stream_opened\x18\" \x01(\x0b\x32\x1f.livekit.proto.ByteStreamOpenedH\x00\x12=\n\x12text_stream_opened\x18# \x01(\x0b\x32\x1f.livekit.proto.TextStreamOpenedH\x00\x12/\n\x0croom_updated\x18$ \x01(\x0b\x32\x17.livekit.proto.RoomInfoH\x00\x12(\n\x05moved\x18% \x01(\x0b\x32\x17.livekit.proto.RoomInfoH\x00\x12\x42\n\x14participants_updated\x18& \x01(\x0b\x32\".livekit.proto.ParticipantsUpdatedH\x00\x12\x62\n%participant_encryption_status_changed\x18\' \x01(\x0b\x32\x31.livekit.proto.ParticipantEncryptionStatusChangedH\x00\x12U\n\x1eparticipant_permission_changed\x18) \x01(\x0b\x32+.livekit.proto.ParticipantPermissionChangedH\x00\x12\x38\n\x0ftoken_refreshed\x18( \x01(\x0b\x32\x1d.livekit.proto.TokenRefreshedH\x00\x12>\n\x12participant_active\x18* \x01(\x0b\x32 .livekit.proto.ParticipantActiveH\x00\x12\x41\n\x14\x64\x61ta_track_published\x18+ \x01(\x0b\x32!.livekit.proto.DataTrackPublishedH\x00\x12\x45\n\x16\x64\x61ta_track_unpublished\x18, \x01(\x0b\x32#.livekit.proto.DataTrackUnpublishedH\x00\x42\t\n\x07message\"\xc9\x02\n\x08RoomInfo\x12\x0b\n\x03sid\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x02(\t\x12\x10\n\x08metadata\x18\x03 \x02(\t\x12.\n&lossy_dc_buffered_amount_low_threshold\x18\x04 \x02(\x04\x12\x31\n)reliable_dc_buffered_amount_low_threshold\x18\x05 \x02(\x04\x12\x15\n\rempty_timeout\x18\x06 \x02(\r\x12\x19\n\x11\x64\x65parture_timeout\x18\x07 \x02(\r\x12\x18\n\x10max_participants\x18\x08 \x02(\r\x12\x15\n\rcreation_time\x18\t \x02(\x03\x12\x18\n\x10num_participants\x18\n \x02(\r\x12\x16\n\x0enum_publishers\x18\x0b \x02(\r\x12\x18\n\x10\x61\x63tive_recording\x18\x0c \x02(\x08\"a\n\tOwnedRoom\x12-\n\x06handle\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12%\n\x04info\x18\x02 \x02(\x0b\x32\x17.livekit.proto.RoomInfo\"K\n\x13ParticipantsUpdated\x12\x34\n\x0cparticipants\x18\x01 \x03(\x0b\x32\x1e.livekit.proto.ParticipantInfo\"E\n\x14ParticipantConnected\x12-\n\x04info\x18\x01 \x02(\x0b\x32\x1f.livekit.proto.OwnedParticipant\"1\n\x11ParticipantActive\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\"s\n\x17ParticipantDisconnected\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12:\n\x11\x64isconnect_reason\x18\x02 \x02(\x0e\x32\x1f.livekit.proto.DisconnectReason\"(\n\x13LocalTrackPublished\x12\x11\n\ttrack_sid\x18\x01 \x02(\t\"0\n\x15LocalTrackUnpublished\x12\x17\n\x0fpublication_sid\x18\x01 \x02(\t\")\n\x14LocalTrackSubscribed\x12\x11\n\ttrack_sid\x18\x02 \x02(\t\"i\n\x0eTrackPublished\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x39\n\x0bpublication\x18\x02 \x02(\x0b\x32$.livekit.proto.OwnedTrackPublication\"I\n\x10TrackUnpublished\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x17\n\x0fpublication_sid\x18\x02 \x02(\t\"Y\n\x0fTrackSubscribed\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12(\n\x05track\x18\x02 \x02(\x0b\x32\x19.livekit.proto.OwnedTrack\"D\n\x11TrackUnsubscribed\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x11\n\ttrack_sid\x18\x02 \x02(\t\"Y\n\x17TrackSubscriptionFailed\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x11\n\ttrack_sid\x18\x02 \x02(\t\x12\r\n\x05\x65rror\x18\x03 \x02(\t\"=\n\nTrackMuted\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x11\n\ttrack_sid\x18\x02 \x02(\t\"?\n\x0cTrackUnmuted\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x11\n\ttrack_sid\x18\x02 \x02(\t\"_\n\x10\x45\x32\x65\x65StateChanged\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12-\n\x05state\x18\x02 \x02(\x0e\x32\x1e.livekit.proto.EncryptionState\"7\n\x15\x41\x63tiveSpeakersChanged\x12\x1e\n\x16participant_identities\x18\x01 \x03(\t\"\'\n\x13RoomMetadataChanged\x12\x10\n\x08metadata\x18\x01 \x02(\t\"\x1d\n\x0eRoomSidChanged\x12\x0b\n\x03sid\x18\x01 \x02(\t\"L\n\x1aParticipantMetadataChanged\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x10\n\x08metadata\x18\x02 \x02(\t\"\xac\x01\n\x1cParticipantAttributesChanged\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x32\n\nattributes\x18\x02 \x03(\x0b\x32\x1e.livekit.proto.AttributesEntry\x12:\n\x12\x63hanged_attributes\x18\x03 \x03(\x0b\x32\x1e.livekit.proto.AttributesEntry\"X\n\"ParticipantEncryptionStatusChanged\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x14\n\x0cis_encrypted\x18\x02 \x02(\x08\"D\n\x16ParticipantNameChanged\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x0c\n\x04name\x18\x02 \x02(\t\"v\n\x1cParticipantPermissionChanged\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x38\n\npermission\x18\x02 \x01(\x0b\x32$.livekit.proto.ParticipantPermission\"k\n\x18\x43onnectionQualityChanged\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x31\n\x07quality\x18\x02 \x02(\x0e\x32 .livekit.proto.ConnectionQuality\"E\n\nUserPacket\x12(\n\x04\x64\x61ta\x18\x01 \x02(\x0b\x32\x1a.livekit.proto.OwnedBuffer\x12\r\n\x05topic\x18\x02 \x01(\t\"y\n\x0b\x43hatMessage\x12\n\n\x02id\x18\x01 \x02(\t\x12\x11\n\ttimestamp\x18\x02 \x02(\x03\x12\x0f\n\x07message\x18\x03 \x02(\t\x12\x16\n\x0e\x65\x64it_timestamp\x18\x04 \x01(\x03\x12\x0f\n\x07\x64\x65leted\x18\x05 \x01(\x08\x12\x11\n\tgenerated\x18\x06 \x01(\x08\"`\n\x13\x43hatMessageReceived\x12+\n\x07message\x18\x01 \x02(\x0b\x32\x1a.livekit.proto.ChatMessage\x12\x1c\n\x14participant_identity\x18\x02 \x02(\t\"&\n\x07SipDTMF\x12\x0c\n\x04\x63ode\x18\x01 \x02(\r\x12\r\n\x05\x64igit\x18\x02 \x01(\t\"\xbf\x01\n\x12\x44\x61taPacketReceived\x12+\n\x04kind\x18\x01 \x02(\x0e\x32\x1d.livekit.proto.DataPacketKind\x12\x1c\n\x14participant_identity\x18\x02 \x02(\t\x12)\n\x04user\x18\x04 \x01(\x0b\x32\x19.livekit.proto.UserPacketH\x00\x12*\n\x08sip_dtmf\x18\x05 \x01(\x0b\x32\x16.livekit.proto.SipDTMFH\x00\x42\x07\n\x05value\"\x7f\n\x15TranscriptionReceived\x12\x1c\n\x14participant_identity\x18\x01 \x01(\t\x12\x11\n\ttrack_sid\x18\x02 \x01(\t\x12\x35\n\x08segments\x18\x03 \x03(\x0b\x32#.livekit.proto.TranscriptionSegment\"G\n\x16\x43onnectionStateChanged\x12-\n\x05state\x18\x01 \x02(\x0e\x32\x1e.livekit.proto.ConnectionState\"\x0b\n\tConnected\"?\n\x0c\x44isconnected\x12/\n\x06reason\x18\x01 \x02(\x0e\x32\x1f.livekit.proto.DisconnectReason\"\x0e\n\x0cReconnecting\"\r\n\x0bReconnected\"\x1f\n\x0eTokenRefreshed\x12\r\n\x05token\x18\x01 \x02(\t\"\t\n\x07RoomEOS\"\x8e\x07\n\nDataStream\x1a\xaa\x01\n\nTextHeader\x12?\n\x0eoperation_type\x18\x01 \x02(\x0e\x32\'.livekit.proto.DataStream.OperationType\x12\x0f\n\x07version\x18\x02 \x01(\x05\x12\x1a\n\x12reply_to_stream_id\x18\x03 \x01(\t\x12\x1b\n\x13\x61ttached_stream_ids\x18\x04 \x03(\t\x12\x11\n\tgenerated\x18\x05 \x01(\x08\x1a\x1a\n\nByteHeader\x12\x0c\n\x04name\x18\x01 \x02(\t\x1a\xeb\x02\n\x06Header\x12\x11\n\tstream_id\x18\x01 \x02(\t\x12\x11\n\ttimestamp\x18\x02 \x02(\x03\x12\x11\n\tmime_type\x18\x03 \x02(\t\x12\r\n\x05topic\x18\x04 \x02(\t\x12\x14\n\x0ctotal_length\x18\x05 \x01(\x04\x12\x44\n\nattributes\x18\x06 \x03(\x0b\x32\x30.livekit.proto.DataStream.Header.AttributesEntry\x12;\n\x0btext_header\x18\x07 \x01(\x0b\x32$.livekit.proto.DataStream.TextHeaderH\x00\x12;\n\x0b\x62yte_header\x18\x08 \x01(\x0b\x32$.livekit.proto.DataStream.ByteHeaderH\x00\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x10\n\x0e\x63ontent_header\x1a]\n\x05\x43hunk\x12\x11\n\tstream_id\x18\x01 \x02(\t\x12\x13\n\x0b\x63hunk_index\x18\x02 \x02(\x04\x12\x0f\n\x07\x63ontent\x18\x03 \x02(\x0c\x12\x0f\n\x07version\x18\x04 \x01(\x05\x12\n\n\x02iv\x18\x05 \x01(\x0c\x1a\xa6\x01\n\x07Trailer\x12\x11\n\tstream_id\x18\x01 \x02(\t\x12\x0e\n\x06reason\x18\x02 \x02(\t\x12\x45\n\nattributes\x18\x03 \x03(\x0b\x32\x31.livekit.proto.DataStream.Trailer.AttributesEntry\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"A\n\rOperationType\x12\n\n\x06\x43REATE\x10\x00\x12\n\n\x06UPDATE\x10\x01\x12\n\n\x06\x44\x45LETE\x10\x02\x12\x0c\n\x08REACTION\x10\x03\"j\n\x18\x44\x61taStreamHeaderReceived\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x30\n\x06header\x18\x02 \x02(\x0b\x32 .livekit.proto.DataStream.Header\"g\n\x17\x44\x61taStreamChunkReceived\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12.\n\x05\x63hunk\x18\x02 \x02(\x0b\x32\x1f.livekit.proto.DataStream.Chunk\"m\n\x19\x44\x61taStreamTrailerReceived\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x32\n\x07trailer\x18\x02 \x02(\x0b\x32!.livekit.proto.DataStream.Trailer\"\xc0\x01\n\x17SendStreamHeaderRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x30\n\x06header\x18\x02 \x02(\x0b\x32 .livekit.proto.DataStream.Header\x12\x1e\n\x16\x64\x65stination_identities\x18\x03 \x03(\t\x12\x17\n\x0fsender_identity\x18\x04 \x02(\t\x12\x18\n\x10request_async_id\x18\x05 \x01(\x04\"\xbd\x01\n\x16SendStreamChunkRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12.\n\x05\x63hunk\x18\x02 \x02(\x0b\x32\x1f.livekit.proto.DataStream.Chunk\x12\x1e\n\x16\x64\x65stination_identities\x18\x03 \x03(\t\x12\x17\n\x0fsender_identity\x18\x04 \x02(\t\x12\x18\n\x10request_async_id\x18\x05 \x01(\x04\"\xc3\x01\n\x18SendStreamTrailerRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x32\n\x07trailer\x18\x02 \x02(\x0b\x32!.livekit.proto.DataStream.Trailer\x12\x1e\n\x16\x64\x65stination_identities\x18\x03 \x03(\t\x12\x17\n\x0fsender_identity\x18\x04 \x02(\t\x12\x18\n\x10request_async_id\x18\x05 \x01(\x04\",\n\x18SendStreamHeaderResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"+\n\x17SendStreamChunkResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"-\n\x19SendStreamTrailerResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\";\n\x18SendStreamHeaderCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\":\n\x17SendStreamChunkCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"<\n\x19SendStreamTrailerCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"\x93\x01\n/SetDataChannelBufferedAmountLowThresholdRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x11\n\tthreshold\x18\x02 \x02(\x04\x12+\n\x04kind\x18\x03 \x02(\x0e\x32\x1d.livekit.proto.DataPacketKind\"2\n0SetDataChannelBufferedAmountLowThresholdResponse\"n\n,DataChannelBufferedAmountLowThresholdChanged\x12+\n\x04kind\x18\x01 \x02(\x0e\x32\x1d.livekit.proto.DataPacketKind\x12\x11\n\tthreshold\x18\x02 \x02(\x04\"f\n\x10\x42yteStreamOpened\x12\x34\n\x06reader\x18\x01 \x02(\x0b\x32$.livekit.proto.OwnedByteStreamReader\x12\x1c\n\x14participant_identity\x18\x02 \x02(\t\"f\n\x10TextStreamOpened\x12\x34\n\x06reader\x18\x01 \x02(\x0b\x32$.livekit.proto.OwnedTextStreamReader\x12\x1c\n\x14participant_identity\x18\x02 \x02(\t\"H\n\x12\x44\x61taTrackPublished\x12\x32\n\x05track\x18\x01 \x02(\x0b\x32#.livekit.proto.OwnedRemoteDataTrack\"#\n\x14\x44\x61taTrackUnpublished\x12\x0b\n\x03sid\x18\x01 \x02(\t*\xe6\x01\n\x14SimulateScenarioKind\x12\x1d\n\x19SIMULATE_SIGNAL_RECONNECT\x10\x00\x12\x14\n\x10SIMULATE_SPEAKER\x10\x01\x12\x19\n\x15SIMULATE_NODE_FAILURE\x10\x02\x12\x19\n\x15SIMULATE_SERVER_LEAVE\x10\x03\x12\x16\n\x12SIMULATE_MIGRATION\x10\x04\x12\x16\n\x12SIMULATE_FORCE_TCP\x10\x05\x12\x16\n\x12SIMULATE_FORCE_TLS\x10\x06\x12\x1b\n\x17SIMULATE_FULL_RECONNECT\x10\x07*P\n\x10IceTransportType\x12\x13\n\x0fTRANSPORT_RELAY\x10\x00\x12\x14\n\x10TRANSPORT_NOHOST\x10\x01\x12\x11\n\rTRANSPORT_ALL\x10\x02*C\n\x18\x43ontinualGatheringPolicy\x12\x0f\n\x0bGATHER_ONCE\x10\x00\x12\x16\n\x12GATHER_CONTINUALLY\x10\x01*`\n\x11\x43onnectionQuality\x12\x10\n\x0cQUALITY_POOR\x10\x00\x12\x10\n\x0cQUALITY_GOOD\x10\x01\x12\x15\n\x11QUALITY_EXCELLENT\x10\x02\x12\x10\n\x0cQUALITY_LOST\x10\x03*S\n\x0f\x43onnectionState\x12\x15\n\x11\x43ONN_DISCONNECTED\x10\x00\x12\x12\n\x0e\x43ONN_CONNECTED\x10\x01\x12\x15\n\x11\x43ONN_RECONNECTING\x10\x02*3\n\x0e\x44\x61taPacketKind\x12\x0e\n\nKIND_LOSSY\x10\x00\x12\x11\n\rKIND_RELIABLE\x10\x01\x42\x10\xaa\x02\rLiveKit.Proto') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'room_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'\252\002\rLiveKit.Proto' - _globals['_PUBLISHDATAREQUEST'].fields_by_name['destination_sids']._options = None + _globals['_PUBLISHDATAREQUEST'].fields_by_name['destination_sids']._loaded_options = None _globals['_PUBLISHDATAREQUEST'].fields_by_name['destination_sids']._serialized_options = b'\030\001' - _globals['_ROOMOPTIONS'].fields_by_name['e2ee']._options = None + _globals['_ROOMOPTIONS'].fields_by_name['e2ee']._loaded_options = None _globals['_ROOMOPTIONS'].fields_by_name['e2ee']._serialized_options = b'\030\001' - _globals['_DATASTREAM_HEADER_ATTRIBUTESENTRY']._options = None + _globals['_DATASTREAM_HEADER_ATTRIBUTESENTRY']._loaded_options = None _globals['_DATASTREAM_HEADER_ATTRIBUTESENTRY']._serialized_options = b'8\001' - _globals['_DATASTREAM_TRAILER_ATTRIBUTESENTRY']._options = None + _globals['_DATASTREAM_TRAILER_ATTRIBUTESENTRY']._loaded_options = None _globals['_DATASTREAM_TRAILER_ATTRIBUTESENTRY']._serialized_options = b'8\001' - _globals['_ICETRANSPORTTYPE']._serialized_start=14289 - _globals['_ICETRANSPORTTYPE']._serialized_end=14369 - _globals['_CONTINUALGATHERINGPOLICY']._serialized_start=14371 - _globals['_CONTINUALGATHERINGPOLICY']._serialized_end=14438 - _globals['_CONNECTIONQUALITY']._serialized_start=14440 - _globals['_CONNECTIONQUALITY']._serialized_end=14536 - _globals['_CONNECTIONSTATE']._serialized_start=14538 - _globals['_CONNECTIONSTATE']._serialized_end=14621 - _globals['_DATAPACKETKIND']._serialized_start=14623 - _globals['_DATAPACKETKIND']._serialized_end=14674 + _globals['_SIMULATESCENARIOKIND']._serialized_start=14526 + _globals['_SIMULATESCENARIOKIND']._serialized_end=14756 + _globals['_ICETRANSPORTTYPE']._serialized_start=14758 + _globals['_ICETRANSPORTTYPE']._serialized_end=14838 + _globals['_CONTINUALGATHERINGPOLICY']._serialized_start=14840 + _globals['_CONTINUALGATHERINGPOLICY']._serialized_end=14907 + _globals['_CONNECTIONQUALITY']._serialized_start=14909 + _globals['_CONNECTIONQUALITY']._serialized_end=15005 + _globals['_CONNECTIONSTATE']._serialized_start=15007 + _globals['_CONNECTIONSTATE']._serialized_end=15090 + _globals['_DATAPACKETKIND']._serialized_start=15092 + _globals['_DATAPACKETKIND']._serialized_end=15143 _globals['_CONNECTREQUEST']._serialized_start=156 _globals['_CONNECTREQUEST']._serialized_end=271 _globals['_CONNECTRESPONSE']._serialized_start=273 @@ -64,228 +76,234 @@ _globals['_DISCONNECTRESPONSE']._serialized_end=915 _globals['_DISCONNECTCALLBACK']._serialized_start=917 _globals['_DISCONNECTCALLBACK']._serialized_end=955 - _globals['_PUBLISHTRACKREQUEST']._serialized_start=958 - _globals['_PUBLISHTRACKREQUEST']._serialized_end=1114 - _globals['_PUBLISHTRACKRESPONSE']._serialized_start=1116 - _globals['_PUBLISHTRACKRESPONSE']._serialized_end=1156 - _globals['_PUBLISHTRACKCALLBACK']._serialized_start=1159 - _globals['_PUBLISHTRACKCALLBACK']._serialized_end=1288 - _globals['_UNPUBLISHTRACKREQUEST']._serialized_start=1291 - _globals['_UNPUBLISHTRACKREQUEST']._serialized_end=1420 - _globals['_UNPUBLISHTRACKRESPONSE']._serialized_start=1422 - _globals['_UNPUBLISHTRACKRESPONSE']._serialized_end=1464 - _globals['_UNPUBLISHTRACKCALLBACK']._serialized_start=1466 - _globals['_UNPUBLISHTRACKCALLBACK']._serialized_end=1523 - _globals['_PUBLISHDATAREQUEST']._serialized_start=1526 - _globals['_PUBLISHDATAREQUEST']._serialized_end=1737 - _globals['_PUBLISHDATARESPONSE']._serialized_start=1739 - _globals['_PUBLISHDATARESPONSE']._serialized_end=1778 - _globals['_PUBLISHDATACALLBACK']._serialized_start=1780 - _globals['_PUBLISHDATACALLBACK']._serialized_end=1834 - _globals['_PUBLISHTRANSCRIPTIONREQUEST']._serialized_start=1837 - _globals['_PUBLISHTRANSCRIPTIONREQUEST']._serialized_end=2029 - _globals['_PUBLISHTRANSCRIPTIONRESPONSE']._serialized_start=2031 - _globals['_PUBLISHTRANSCRIPTIONRESPONSE']._serialized_end=2079 - _globals['_PUBLISHTRANSCRIPTIONCALLBACK']._serialized_start=2081 - _globals['_PUBLISHTRANSCRIPTIONCALLBACK']._serialized_end=2144 - _globals['_PUBLISHSIPDTMFREQUEST']._serialized_start=2147 - _globals['_PUBLISHSIPDTMFREQUEST']._serialized_end=2291 - _globals['_PUBLISHSIPDTMFRESPONSE']._serialized_start=2293 - _globals['_PUBLISHSIPDTMFRESPONSE']._serialized_end=2335 - _globals['_PUBLISHSIPDTMFCALLBACK']._serialized_start=2337 - _globals['_PUBLISHSIPDTMFCALLBACK']._serialized_end=2394 - _globals['_SETLOCALMETADATAREQUEST']._serialized_start=2396 - _globals['_SETLOCALMETADATAREQUEST']._serialized_end=2499 - _globals['_SETLOCALMETADATARESPONSE']._serialized_start=2501 - _globals['_SETLOCALMETADATARESPONSE']._serialized_end=2545 - _globals['_SETLOCALMETADATACALLBACK']._serialized_start=2547 - _globals['_SETLOCALMETADATACALLBACK']._serialized_end=2606 - _globals['_SENDCHATMESSAGEREQUEST']._serialized_start=2609 - _globals['_SENDCHATMESSAGEREQUEST']._serialized_end=2767 - _globals['_EDITCHATMESSAGEREQUEST']._serialized_start=2770 - _globals['_EDITCHATMESSAGEREQUEST']._serialized_end=2984 - _globals['_SENDCHATMESSAGERESPONSE']._serialized_start=2986 - _globals['_SENDCHATMESSAGERESPONSE']._serialized_end=3029 - _globals['_SENDCHATMESSAGECALLBACK']._serialized_start=3031 - _globals['_SENDCHATMESSAGECALLBACK']._serialized_end=3154 - _globals['_SETLOCALATTRIBUTESREQUEST']._serialized_start=3157 - _globals['_SETLOCALATTRIBUTESREQUEST']._serialized_end=3296 - _globals['_ATTRIBUTESENTRY']._serialized_start=3298 - _globals['_ATTRIBUTESENTRY']._serialized_end=3343 - _globals['_SETLOCALATTRIBUTESRESPONSE']._serialized_start=3345 - _globals['_SETLOCALATTRIBUTESRESPONSE']._serialized_end=3391 - _globals['_SETLOCALATTRIBUTESCALLBACK']._serialized_start=3393 - _globals['_SETLOCALATTRIBUTESCALLBACK']._serialized_end=3454 - _globals['_SETLOCALNAMEREQUEST']._serialized_start=3456 - _globals['_SETLOCALNAMEREQUEST']._serialized_end=3551 - _globals['_SETLOCALNAMERESPONSE']._serialized_start=3553 - _globals['_SETLOCALNAMERESPONSE']._serialized_end=3593 - _globals['_SETLOCALNAMECALLBACK']._serialized_start=3595 - _globals['_SETLOCALNAMECALLBACK']._serialized_end=3650 - _globals['_SETSUBSCRIBEDREQUEST']._serialized_start=3652 - _globals['_SETSUBSCRIBEDREQUEST']._serialized_end=3721 - _globals['_SETSUBSCRIBEDRESPONSE']._serialized_start=3723 - _globals['_SETSUBSCRIBEDRESPONSE']._serialized_end=3746 - _globals['_GETSESSIONSTATSREQUEST']._serialized_start=3748 - _globals['_GETSESSIONSTATSREQUEST']._serialized_end=3819 - _globals['_GETSESSIONSTATSRESPONSE']._serialized_start=3821 - _globals['_GETSESSIONSTATSRESPONSE']._serialized_end=3864 - _globals['_GETSESSIONSTATSCALLBACK']._serialized_start=3867 - _globals['_GETSESSIONSTATSCALLBACK']._serialized_end=4114 - _globals['_GETSESSIONSTATSCALLBACK_RESULT']._serialized_start=3994 - _globals['_GETSESSIONSTATSCALLBACK_RESULT']._serialized_end=4103 - _globals['_VIDEOENCODING']._serialized_start=4116 - _globals['_VIDEOENCODING']._serialized_end=4175 - _globals['_AUDIOENCODING']._serialized_start=4177 - _globals['_AUDIOENCODING']._serialized_end=4213 - _globals['_TRACKPUBLISHOPTIONS']._serialized_start=4216 - _globals['_TRACKPUBLISHOPTIONS']._serialized_end=4525 - _globals['_ICESERVER']._serialized_start=4527 - _globals['_ICESERVER']._serialized_end=4588 - _globals['_RTCCONFIG']._serialized_start=4591 - _globals['_RTCCONFIG']._serialized_end=4787 - _globals['_ROOMOPTIONS']._serialized_start=4790 - _globals['_ROOMOPTIONS']._serialized_end=5092 - _globals['_TRANSCRIPTIONSEGMENT']._serialized_start=5094 - _globals['_TRANSCRIPTIONSEGMENT']._serialized_end=5213 - _globals['_BUFFERINFO']._serialized_start=5215 - _globals['_BUFFERINFO']._serialized_end=5263 - _globals['_OWNEDBUFFER']._serialized_start=5265 - _globals['_OWNEDBUFFER']._serialized_end=5366 - _globals['_ROOMEVENT']._serialized_start=5369 - _globals['_ROOMEVENT']._serialized_end=8318 - _globals['_ROOMINFO']._serialized_start=8321 - _globals['_ROOMINFO']._serialized_end=8650 - _globals['_OWNEDROOM']._serialized_start=8652 - _globals['_OWNEDROOM']._serialized_end=8749 - _globals['_PARTICIPANTSUPDATED']._serialized_start=8751 - _globals['_PARTICIPANTSUPDATED']._serialized_end=8826 - _globals['_PARTICIPANTCONNECTED']._serialized_start=8828 - _globals['_PARTICIPANTCONNECTED']._serialized_end=8897 - _globals['_PARTICIPANTACTIVE']._serialized_start=8899 - _globals['_PARTICIPANTACTIVE']._serialized_end=8948 - _globals['_PARTICIPANTDISCONNECTED']._serialized_start=8950 - _globals['_PARTICIPANTDISCONNECTED']._serialized_end=9065 - _globals['_LOCALTRACKPUBLISHED']._serialized_start=9067 - _globals['_LOCALTRACKPUBLISHED']._serialized_end=9107 - _globals['_LOCALTRACKUNPUBLISHED']._serialized_start=9109 - _globals['_LOCALTRACKUNPUBLISHED']._serialized_end=9157 - _globals['_LOCALTRACKSUBSCRIBED']._serialized_start=9159 - _globals['_LOCALTRACKSUBSCRIBED']._serialized_end=9200 - _globals['_TRACKPUBLISHED']._serialized_start=9202 - _globals['_TRACKPUBLISHED']._serialized_end=9307 - _globals['_TRACKUNPUBLISHED']._serialized_start=9309 - _globals['_TRACKUNPUBLISHED']._serialized_end=9382 - _globals['_TRACKSUBSCRIBED']._serialized_start=9384 - _globals['_TRACKSUBSCRIBED']._serialized_end=9473 - _globals['_TRACKUNSUBSCRIBED']._serialized_start=9475 - _globals['_TRACKUNSUBSCRIBED']._serialized_end=9543 - _globals['_TRACKSUBSCRIPTIONFAILED']._serialized_start=9545 - _globals['_TRACKSUBSCRIPTIONFAILED']._serialized_end=9634 - _globals['_TRACKMUTED']._serialized_start=9636 - _globals['_TRACKMUTED']._serialized_end=9697 - _globals['_TRACKUNMUTED']._serialized_start=9699 - _globals['_TRACKUNMUTED']._serialized_end=9762 - _globals['_E2EESTATECHANGED']._serialized_start=9764 - _globals['_E2EESTATECHANGED']._serialized_end=9859 - _globals['_ACTIVESPEAKERSCHANGED']._serialized_start=9861 - _globals['_ACTIVESPEAKERSCHANGED']._serialized_end=9916 - _globals['_ROOMMETADATACHANGED']._serialized_start=9918 - _globals['_ROOMMETADATACHANGED']._serialized_end=9957 - _globals['_ROOMSIDCHANGED']._serialized_start=9959 - _globals['_ROOMSIDCHANGED']._serialized_end=9988 - _globals['_PARTICIPANTMETADATACHANGED']._serialized_start=9990 - _globals['_PARTICIPANTMETADATACHANGED']._serialized_end=10066 - _globals['_PARTICIPANTATTRIBUTESCHANGED']._serialized_start=10069 - _globals['_PARTICIPANTATTRIBUTESCHANGED']._serialized_end=10241 - _globals['_PARTICIPANTENCRYPTIONSTATUSCHANGED']._serialized_start=10243 - _globals['_PARTICIPANTENCRYPTIONSTATUSCHANGED']._serialized_end=10331 - _globals['_PARTICIPANTNAMECHANGED']._serialized_start=10333 - _globals['_PARTICIPANTNAMECHANGED']._serialized_end=10401 - _globals['_PARTICIPANTPERMISSIONCHANGED']._serialized_start=10403 - _globals['_PARTICIPANTPERMISSIONCHANGED']._serialized_end=10521 - _globals['_CONNECTIONQUALITYCHANGED']._serialized_start=10523 - _globals['_CONNECTIONQUALITYCHANGED']._serialized_end=10630 - _globals['_USERPACKET']._serialized_start=10632 - _globals['_USERPACKET']._serialized_end=10701 - _globals['_CHATMESSAGE']._serialized_start=10703 - _globals['_CHATMESSAGE']._serialized_end=10824 - _globals['_CHATMESSAGERECEIVED']._serialized_start=10826 - _globals['_CHATMESSAGERECEIVED']._serialized_end=10922 - _globals['_SIPDTMF']._serialized_start=10924 - _globals['_SIPDTMF']._serialized_end=10962 - _globals['_DATAPACKETRECEIVED']._serialized_start=10965 - _globals['_DATAPACKETRECEIVED']._serialized_end=11156 - _globals['_TRANSCRIPTIONRECEIVED']._serialized_start=11158 - _globals['_TRANSCRIPTIONRECEIVED']._serialized_end=11285 - _globals['_CONNECTIONSTATECHANGED']._serialized_start=11287 - _globals['_CONNECTIONSTATECHANGED']._serialized_end=11358 - _globals['_CONNECTED']._serialized_start=11360 - _globals['_CONNECTED']._serialized_end=11371 - _globals['_DISCONNECTED']._serialized_start=11373 - _globals['_DISCONNECTED']._serialized_end=11436 - _globals['_RECONNECTING']._serialized_start=11438 - _globals['_RECONNECTING']._serialized_end=11452 - _globals['_RECONNECTED']._serialized_start=11454 - _globals['_RECONNECTED']._serialized_end=11467 - _globals['_TOKENREFRESHED']._serialized_start=11469 - _globals['_TOKENREFRESHED']._serialized_end=11500 - _globals['_ROOMEOS']._serialized_start=11502 - _globals['_ROOMEOS']._serialized_end=11511 - _globals['_DATASTREAM']._serialized_start=11514 - _globals['_DATASTREAM']._serialized_end=12424 - _globals['_DATASTREAM_TEXTHEADER']._serialized_start=11529 - _globals['_DATASTREAM_TEXTHEADER']._serialized_end=11699 - _globals['_DATASTREAM_BYTEHEADER']._serialized_start=11701 - _globals['_DATASTREAM_BYTEHEADER']._serialized_end=11727 - _globals['_DATASTREAM_HEADER']._serialized_start=11730 - _globals['_DATASTREAM_HEADER']._serialized_end=12093 - _globals['_DATASTREAM_HEADER_ATTRIBUTESENTRY']._serialized_start=12026 - _globals['_DATASTREAM_HEADER_ATTRIBUTESENTRY']._serialized_end=12075 - _globals['_DATASTREAM_CHUNK']._serialized_start=12095 - _globals['_DATASTREAM_CHUNK']._serialized_end=12188 - _globals['_DATASTREAM_TRAILER']._serialized_start=12191 - _globals['_DATASTREAM_TRAILER']._serialized_end=12357 - _globals['_DATASTREAM_TRAILER_ATTRIBUTESENTRY']._serialized_start=12026 - _globals['_DATASTREAM_TRAILER_ATTRIBUTESENTRY']._serialized_end=12075 - _globals['_DATASTREAM_OPERATIONTYPE']._serialized_start=12359 - _globals['_DATASTREAM_OPERATIONTYPE']._serialized_end=12424 - _globals['_DATASTREAMHEADERRECEIVED']._serialized_start=12426 - _globals['_DATASTREAMHEADERRECEIVED']._serialized_end=12532 - _globals['_DATASTREAMCHUNKRECEIVED']._serialized_start=12534 - _globals['_DATASTREAMCHUNKRECEIVED']._serialized_end=12637 - _globals['_DATASTREAMTRAILERRECEIVED']._serialized_start=12639 - _globals['_DATASTREAMTRAILERRECEIVED']._serialized_end=12748 - _globals['_SENDSTREAMHEADERREQUEST']._serialized_start=12751 - _globals['_SENDSTREAMHEADERREQUEST']._serialized_end=12943 - _globals['_SENDSTREAMCHUNKREQUEST']._serialized_start=12946 - _globals['_SENDSTREAMCHUNKREQUEST']._serialized_end=13135 - _globals['_SENDSTREAMTRAILERREQUEST']._serialized_start=13138 - _globals['_SENDSTREAMTRAILERREQUEST']._serialized_end=13333 - _globals['_SENDSTREAMHEADERRESPONSE']._serialized_start=13335 - _globals['_SENDSTREAMHEADERRESPONSE']._serialized_end=13379 - _globals['_SENDSTREAMCHUNKRESPONSE']._serialized_start=13381 - _globals['_SENDSTREAMCHUNKRESPONSE']._serialized_end=13424 - _globals['_SENDSTREAMTRAILERRESPONSE']._serialized_start=13426 - _globals['_SENDSTREAMTRAILERRESPONSE']._serialized_end=13471 - _globals['_SENDSTREAMHEADERCALLBACK']._serialized_start=13473 - _globals['_SENDSTREAMHEADERCALLBACK']._serialized_end=13532 - _globals['_SENDSTREAMCHUNKCALLBACK']._serialized_start=13534 - _globals['_SENDSTREAMCHUNKCALLBACK']._serialized_end=13592 - _globals['_SENDSTREAMTRAILERCALLBACK']._serialized_start=13594 - _globals['_SENDSTREAMTRAILERCALLBACK']._serialized_end=13654 - _globals['_SETDATACHANNELBUFFEREDAMOUNTLOWTHRESHOLDREQUEST']._serialized_start=13657 - _globals['_SETDATACHANNELBUFFEREDAMOUNTLOWTHRESHOLDREQUEST']._serialized_end=13804 - _globals['_SETDATACHANNELBUFFEREDAMOUNTLOWTHRESHOLDRESPONSE']._serialized_start=13806 - _globals['_SETDATACHANNELBUFFEREDAMOUNTLOWTHRESHOLDRESPONSE']._serialized_end=13856 - _globals['_DATACHANNELBUFFEREDAMOUNTLOWTHRESHOLDCHANGED']._serialized_start=13858 - _globals['_DATACHANNELBUFFEREDAMOUNTLOWTHRESHOLDCHANGED']._serialized_end=13968 - _globals['_BYTESTREAMOPENED']._serialized_start=13970 - _globals['_BYTESTREAMOPENED']._serialized_end=14072 - _globals['_TEXTSTREAMOPENED']._serialized_start=14074 - _globals['_TEXTSTREAMOPENED']._serialized_end=14176 - _globals['_DATATRACKPUBLISHED']._serialized_start=14178 - _globals['_DATATRACKPUBLISHED']._serialized_end=14250 - _globals['_DATATRACKUNPUBLISHED']._serialized_start=14252 - _globals['_DATATRACKUNPUBLISHED']._serialized_end=14287 + _globals['_SIMULATESCENARIOREQUEST']._serialized_start=957 + _globals['_SIMULATESCENARIOREQUEST']._serialized_end=1084 + _globals['_SIMULATESCENARIORESPONSE']._serialized_start=1086 + _globals['_SIMULATESCENARIORESPONSE']._serialized_end=1130 + _globals['_SIMULATESCENARIOCALLBACK']._serialized_start=1132 + _globals['_SIMULATESCENARIOCALLBACK']._serialized_end=1191 + _globals['_PUBLISHTRACKREQUEST']._serialized_start=1194 + _globals['_PUBLISHTRACKREQUEST']._serialized_end=1350 + _globals['_PUBLISHTRACKRESPONSE']._serialized_start=1352 + _globals['_PUBLISHTRACKRESPONSE']._serialized_end=1392 + _globals['_PUBLISHTRACKCALLBACK']._serialized_start=1395 + _globals['_PUBLISHTRACKCALLBACK']._serialized_end=1524 + _globals['_UNPUBLISHTRACKREQUEST']._serialized_start=1527 + _globals['_UNPUBLISHTRACKREQUEST']._serialized_end=1656 + _globals['_UNPUBLISHTRACKRESPONSE']._serialized_start=1658 + _globals['_UNPUBLISHTRACKRESPONSE']._serialized_end=1700 + _globals['_UNPUBLISHTRACKCALLBACK']._serialized_start=1702 + _globals['_UNPUBLISHTRACKCALLBACK']._serialized_end=1759 + _globals['_PUBLISHDATAREQUEST']._serialized_start=1762 + _globals['_PUBLISHDATAREQUEST']._serialized_end=1973 + _globals['_PUBLISHDATARESPONSE']._serialized_start=1975 + _globals['_PUBLISHDATARESPONSE']._serialized_end=2014 + _globals['_PUBLISHDATACALLBACK']._serialized_start=2016 + _globals['_PUBLISHDATACALLBACK']._serialized_end=2070 + _globals['_PUBLISHTRANSCRIPTIONREQUEST']._serialized_start=2073 + _globals['_PUBLISHTRANSCRIPTIONREQUEST']._serialized_end=2265 + _globals['_PUBLISHTRANSCRIPTIONRESPONSE']._serialized_start=2267 + _globals['_PUBLISHTRANSCRIPTIONRESPONSE']._serialized_end=2315 + _globals['_PUBLISHTRANSCRIPTIONCALLBACK']._serialized_start=2317 + _globals['_PUBLISHTRANSCRIPTIONCALLBACK']._serialized_end=2380 + _globals['_PUBLISHSIPDTMFREQUEST']._serialized_start=2383 + _globals['_PUBLISHSIPDTMFREQUEST']._serialized_end=2527 + _globals['_PUBLISHSIPDTMFRESPONSE']._serialized_start=2529 + _globals['_PUBLISHSIPDTMFRESPONSE']._serialized_end=2571 + _globals['_PUBLISHSIPDTMFCALLBACK']._serialized_start=2573 + _globals['_PUBLISHSIPDTMFCALLBACK']._serialized_end=2630 + _globals['_SETLOCALMETADATAREQUEST']._serialized_start=2632 + _globals['_SETLOCALMETADATAREQUEST']._serialized_end=2735 + _globals['_SETLOCALMETADATARESPONSE']._serialized_start=2737 + _globals['_SETLOCALMETADATARESPONSE']._serialized_end=2781 + _globals['_SETLOCALMETADATACALLBACK']._serialized_start=2783 + _globals['_SETLOCALMETADATACALLBACK']._serialized_end=2842 + _globals['_SENDCHATMESSAGEREQUEST']._serialized_start=2845 + _globals['_SENDCHATMESSAGEREQUEST']._serialized_end=3003 + _globals['_EDITCHATMESSAGEREQUEST']._serialized_start=3006 + _globals['_EDITCHATMESSAGEREQUEST']._serialized_end=3220 + _globals['_SENDCHATMESSAGERESPONSE']._serialized_start=3222 + _globals['_SENDCHATMESSAGERESPONSE']._serialized_end=3265 + _globals['_SENDCHATMESSAGECALLBACK']._serialized_start=3267 + _globals['_SENDCHATMESSAGECALLBACK']._serialized_end=3390 + _globals['_SETLOCALATTRIBUTESREQUEST']._serialized_start=3393 + _globals['_SETLOCALATTRIBUTESREQUEST']._serialized_end=3532 + _globals['_ATTRIBUTESENTRY']._serialized_start=3534 + _globals['_ATTRIBUTESENTRY']._serialized_end=3579 + _globals['_SETLOCALATTRIBUTESRESPONSE']._serialized_start=3581 + _globals['_SETLOCALATTRIBUTESRESPONSE']._serialized_end=3627 + _globals['_SETLOCALATTRIBUTESCALLBACK']._serialized_start=3629 + _globals['_SETLOCALATTRIBUTESCALLBACK']._serialized_end=3690 + _globals['_SETLOCALNAMEREQUEST']._serialized_start=3692 + _globals['_SETLOCALNAMEREQUEST']._serialized_end=3787 + _globals['_SETLOCALNAMERESPONSE']._serialized_start=3789 + _globals['_SETLOCALNAMERESPONSE']._serialized_end=3829 + _globals['_SETLOCALNAMECALLBACK']._serialized_start=3831 + _globals['_SETLOCALNAMECALLBACK']._serialized_end=3886 + _globals['_SETSUBSCRIBEDREQUEST']._serialized_start=3888 + _globals['_SETSUBSCRIBEDREQUEST']._serialized_end=3957 + _globals['_SETSUBSCRIBEDRESPONSE']._serialized_start=3959 + _globals['_SETSUBSCRIBEDRESPONSE']._serialized_end=3982 + _globals['_GETSESSIONSTATSREQUEST']._serialized_start=3984 + _globals['_GETSESSIONSTATSREQUEST']._serialized_end=4055 + _globals['_GETSESSIONSTATSRESPONSE']._serialized_start=4057 + _globals['_GETSESSIONSTATSRESPONSE']._serialized_end=4100 + _globals['_GETSESSIONSTATSCALLBACK']._serialized_start=4103 + _globals['_GETSESSIONSTATSCALLBACK']._serialized_end=4350 + _globals['_GETSESSIONSTATSCALLBACK_RESULT']._serialized_start=4230 + _globals['_GETSESSIONSTATSCALLBACK_RESULT']._serialized_end=4339 + _globals['_VIDEOENCODING']._serialized_start=4352 + _globals['_VIDEOENCODING']._serialized_end=4411 + _globals['_AUDIOENCODING']._serialized_start=4413 + _globals['_AUDIOENCODING']._serialized_end=4449 + _globals['_TRACKPUBLISHOPTIONS']._serialized_start=4452 + _globals['_TRACKPUBLISHOPTIONS']._serialized_end=4761 + _globals['_ICESERVER']._serialized_start=4763 + _globals['_ICESERVER']._serialized_end=4824 + _globals['_RTCCONFIG']._serialized_start=4827 + _globals['_RTCCONFIG']._serialized_end=5023 + _globals['_ROOMOPTIONS']._serialized_start=5026 + _globals['_ROOMOPTIONS']._serialized_end=5328 + _globals['_TRANSCRIPTIONSEGMENT']._serialized_start=5330 + _globals['_TRANSCRIPTIONSEGMENT']._serialized_end=5449 + _globals['_BUFFERINFO']._serialized_start=5451 + _globals['_BUFFERINFO']._serialized_end=5499 + _globals['_OWNEDBUFFER']._serialized_start=5501 + _globals['_OWNEDBUFFER']._serialized_end=5602 + _globals['_ROOMEVENT']._serialized_start=5605 + _globals['_ROOMEVENT']._serialized_end=8554 + _globals['_ROOMINFO']._serialized_start=8557 + _globals['_ROOMINFO']._serialized_end=8886 + _globals['_OWNEDROOM']._serialized_start=8888 + _globals['_OWNEDROOM']._serialized_end=8985 + _globals['_PARTICIPANTSUPDATED']._serialized_start=8987 + _globals['_PARTICIPANTSUPDATED']._serialized_end=9062 + _globals['_PARTICIPANTCONNECTED']._serialized_start=9064 + _globals['_PARTICIPANTCONNECTED']._serialized_end=9133 + _globals['_PARTICIPANTACTIVE']._serialized_start=9135 + _globals['_PARTICIPANTACTIVE']._serialized_end=9184 + _globals['_PARTICIPANTDISCONNECTED']._serialized_start=9186 + _globals['_PARTICIPANTDISCONNECTED']._serialized_end=9301 + _globals['_LOCALTRACKPUBLISHED']._serialized_start=9303 + _globals['_LOCALTRACKPUBLISHED']._serialized_end=9343 + _globals['_LOCALTRACKUNPUBLISHED']._serialized_start=9345 + _globals['_LOCALTRACKUNPUBLISHED']._serialized_end=9393 + _globals['_LOCALTRACKSUBSCRIBED']._serialized_start=9395 + _globals['_LOCALTRACKSUBSCRIBED']._serialized_end=9436 + _globals['_TRACKPUBLISHED']._serialized_start=9438 + _globals['_TRACKPUBLISHED']._serialized_end=9543 + _globals['_TRACKUNPUBLISHED']._serialized_start=9545 + _globals['_TRACKUNPUBLISHED']._serialized_end=9618 + _globals['_TRACKSUBSCRIBED']._serialized_start=9620 + _globals['_TRACKSUBSCRIBED']._serialized_end=9709 + _globals['_TRACKUNSUBSCRIBED']._serialized_start=9711 + _globals['_TRACKUNSUBSCRIBED']._serialized_end=9779 + _globals['_TRACKSUBSCRIPTIONFAILED']._serialized_start=9781 + _globals['_TRACKSUBSCRIPTIONFAILED']._serialized_end=9870 + _globals['_TRACKMUTED']._serialized_start=9872 + _globals['_TRACKMUTED']._serialized_end=9933 + _globals['_TRACKUNMUTED']._serialized_start=9935 + _globals['_TRACKUNMUTED']._serialized_end=9998 + _globals['_E2EESTATECHANGED']._serialized_start=10000 + _globals['_E2EESTATECHANGED']._serialized_end=10095 + _globals['_ACTIVESPEAKERSCHANGED']._serialized_start=10097 + _globals['_ACTIVESPEAKERSCHANGED']._serialized_end=10152 + _globals['_ROOMMETADATACHANGED']._serialized_start=10154 + _globals['_ROOMMETADATACHANGED']._serialized_end=10193 + _globals['_ROOMSIDCHANGED']._serialized_start=10195 + _globals['_ROOMSIDCHANGED']._serialized_end=10224 + _globals['_PARTICIPANTMETADATACHANGED']._serialized_start=10226 + _globals['_PARTICIPANTMETADATACHANGED']._serialized_end=10302 + _globals['_PARTICIPANTATTRIBUTESCHANGED']._serialized_start=10305 + _globals['_PARTICIPANTATTRIBUTESCHANGED']._serialized_end=10477 + _globals['_PARTICIPANTENCRYPTIONSTATUSCHANGED']._serialized_start=10479 + _globals['_PARTICIPANTENCRYPTIONSTATUSCHANGED']._serialized_end=10567 + _globals['_PARTICIPANTNAMECHANGED']._serialized_start=10569 + _globals['_PARTICIPANTNAMECHANGED']._serialized_end=10637 + _globals['_PARTICIPANTPERMISSIONCHANGED']._serialized_start=10639 + _globals['_PARTICIPANTPERMISSIONCHANGED']._serialized_end=10757 + _globals['_CONNECTIONQUALITYCHANGED']._serialized_start=10759 + _globals['_CONNECTIONQUALITYCHANGED']._serialized_end=10866 + _globals['_USERPACKET']._serialized_start=10868 + _globals['_USERPACKET']._serialized_end=10937 + _globals['_CHATMESSAGE']._serialized_start=10939 + _globals['_CHATMESSAGE']._serialized_end=11060 + _globals['_CHATMESSAGERECEIVED']._serialized_start=11062 + _globals['_CHATMESSAGERECEIVED']._serialized_end=11158 + _globals['_SIPDTMF']._serialized_start=11160 + _globals['_SIPDTMF']._serialized_end=11198 + _globals['_DATAPACKETRECEIVED']._serialized_start=11201 + _globals['_DATAPACKETRECEIVED']._serialized_end=11392 + _globals['_TRANSCRIPTIONRECEIVED']._serialized_start=11394 + _globals['_TRANSCRIPTIONRECEIVED']._serialized_end=11521 + _globals['_CONNECTIONSTATECHANGED']._serialized_start=11523 + _globals['_CONNECTIONSTATECHANGED']._serialized_end=11594 + _globals['_CONNECTED']._serialized_start=11596 + _globals['_CONNECTED']._serialized_end=11607 + _globals['_DISCONNECTED']._serialized_start=11609 + _globals['_DISCONNECTED']._serialized_end=11672 + _globals['_RECONNECTING']._serialized_start=11674 + _globals['_RECONNECTING']._serialized_end=11688 + _globals['_RECONNECTED']._serialized_start=11690 + _globals['_RECONNECTED']._serialized_end=11703 + _globals['_TOKENREFRESHED']._serialized_start=11705 + _globals['_TOKENREFRESHED']._serialized_end=11736 + _globals['_ROOMEOS']._serialized_start=11738 + _globals['_ROOMEOS']._serialized_end=11747 + _globals['_DATASTREAM']._serialized_start=11750 + _globals['_DATASTREAM']._serialized_end=12660 + _globals['_DATASTREAM_TEXTHEADER']._serialized_start=11765 + _globals['_DATASTREAM_TEXTHEADER']._serialized_end=11935 + _globals['_DATASTREAM_BYTEHEADER']._serialized_start=11937 + _globals['_DATASTREAM_BYTEHEADER']._serialized_end=11963 + _globals['_DATASTREAM_HEADER']._serialized_start=11966 + _globals['_DATASTREAM_HEADER']._serialized_end=12329 + _globals['_DATASTREAM_HEADER_ATTRIBUTESENTRY']._serialized_start=12262 + _globals['_DATASTREAM_HEADER_ATTRIBUTESENTRY']._serialized_end=12311 + _globals['_DATASTREAM_CHUNK']._serialized_start=12331 + _globals['_DATASTREAM_CHUNK']._serialized_end=12424 + _globals['_DATASTREAM_TRAILER']._serialized_start=12427 + _globals['_DATASTREAM_TRAILER']._serialized_end=12593 + _globals['_DATASTREAM_TRAILER_ATTRIBUTESENTRY']._serialized_start=12262 + _globals['_DATASTREAM_TRAILER_ATTRIBUTESENTRY']._serialized_end=12311 + _globals['_DATASTREAM_OPERATIONTYPE']._serialized_start=12595 + _globals['_DATASTREAM_OPERATIONTYPE']._serialized_end=12660 + _globals['_DATASTREAMHEADERRECEIVED']._serialized_start=12662 + _globals['_DATASTREAMHEADERRECEIVED']._serialized_end=12768 + _globals['_DATASTREAMCHUNKRECEIVED']._serialized_start=12770 + _globals['_DATASTREAMCHUNKRECEIVED']._serialized_end=12873 + _globals['_DATASTREAMTRAILERRECEIVED']._serialized_start=12875 + _globals['_DATASTREAMTRAILERRECEIVED']._serialized_end=12984 + _globals['_SENDSTREAMHEADERREQUEST']._serialized_start=12987 + _globals['_SENDSTREAMHEADERREQUEST']._serialized_end=13179 + _globals['_SENDSTREAMCHUNKREQUEST']._serialized_start=13182 + _globals['_SENDSTREAMCHUNKREQUEST']._serialized_end=13371 + _globals['_SENDSTREAMTRAILERREQUEST']._serialized_start=13374 + _globals['_SENDSTREAMTRAILERREQUEST']._serialized_end=13569 + _globals['_SENDSTREAMHEADERRESPONSE']._serialized_start=13571 + _globals['_SENDSTREAMHEADERRESPONSE']._serialized_end=13615 + _globals['_SENDSTREAMCHUNKRESPONSE']._serialized_start=13617 + _globals['_SENDSTREAMCHUNKRESPONSE']._serialized_end=13660 + _globals['_SENDSTREAMTRAILERRESPONSE']._serialized_start=13662 + _globals['_SENDSTREAMTRAILERRESPONSE']._serialized_end=13707 + _globals['_SENDSTREAMHEADERCALLBACK']._serialized_start=13709 + _globals['_SENDSTREAMHEADERCALLBACK']._serialized_end=13768 + _globals['_SENDSTREAMCHUNKCALLBACK']._serialized_start=13770 + _globals['_SENDSTREAMCHUNKCALLBACK']._serialized_end=13828 + _globals['_SENDSTREAMTRAILERCALLBACK']._serialized_start=13830 + _globals['_SENDSTREAMTRAILERCALLBACK']._serialized_end=13890 + _globals['_SETDATACHANNELBUFFEREDAMOUNTLOWTHRESHOLDREQUEST']._serialized_start=13893 + _globals['_SETDATACHANNELBUFFEREDAMOUNTLOWTHRESHOLDREQUEST']._serialized_end=14040 + _globals['_SETDATACHANNELBUFFEREDAMOUNTLOWTHRESHOLDRESPONSE']._serialized_start=14042 + _globals['_SETDATACHANNELBUFFEREDAMOUNTLOWTHRESHOLDRESPONSE']._serialized_end=14092 + _globals['_DATACHANNELBUFFEREDAMOUNTLOWTHRESHOLDCHANGED']._serialized_start=14094 + _globals['_DATACHANNELBUFFEREDAMOUNTLOWTHRESHOLDCHANGED']._serialized_end=14204 + _globals['_BYTESTREAMOPENED']._serialized_start=14206 + _globals['_BYTESTREAMOPENED']._serialized_end=14308 + _globals['_TEXTSTREAMOPENED']._serialized_start=14310 + _globals['_TEXTSTREAMOPENED']._serialized_end=14412 + _globals['_DATATRACKPUBLISHED']._serialized_start=14414 + _globals['_DATATRACKPUBLISHED']._serialized_end=14486 + _globals['_DATATRACKUNPUBLISHED']._serialized_start=14488 + _globals['_DATATRACKUNPUBLISHED']._serialized_end=14523 # @@protoc_insertion_point(module_scope) diff --git a/livekit-rtc/livekit/rtc/_proto/room_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/room_pb2.pyi index 25b9160e..525ee0b9 100644 --- a/livekit-rtc/livekit/rtc/_proto/room_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/room_pb2.pyi @@ -16,36 +16,81 @@ See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -from . import data_stream_pb2 -from . import data_track_pb2 -from . import e2ee_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -from . import handle_pb2 -from . import participant_pb2 -from . import stats_pb2 +from collections import abc as _abc +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +import builtins as _builtins +from . import data_stream_pb2 as _data_stream_pb2 +from . import data_track_pb2 as _data_track_pb2 +from . import e2ee_pb2 as _e2ee_pb2 +from . import handle_pb2 as _handle_pb2 +from . import participant_pb2 as _participant_pb2 +from . import stats_pb2 as _stats_pb2 import sys -from . import track_pb2 -import typing -from . import video_frame_pb2 +from . import track_pb2 as _track_pb2 +import typing as _typing +from . import video_frame_pb2 as _video_frame_pb2 -if sys.version_info >= (3, 10): - import typing as typing_extensions +if sys.version_info >= (3, 11): + from typing import TypeAlias as _TypeAlias, Never as _Never else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias, Never as _Never -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +if sys.version_info >= (3, 13): + from warnings import deprecated as _deprecated +else: + from typing_extensions import deprecated as _deprecated + +DESCRIPTOR: _descriptor.FileDescriptor + +class _SimulateScenarioKind: + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 + +class _SimulateScenarioKindEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_SimulateScenarioKind.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor + SIMULATE_SIGNAL_RECONNECT: _SimulateScenarioKind.ValueType # 0 + """Closes the signal channel locally; engine attempts a Resume.""" + SIMULATE_SPEAKER: _SimulateScenarioKind.ValueType # 1 + SIMULATE_NODE_FAILURE: _SimulateScenarioKind.ValueType # 2 + SIMULATE_SERVER_LEAVE: _SimulateScenarioKind.ValueType # 3 + SIMULATE_MIGRATION: _SimulateScenarioKind.ValueType # 4 + SIMULATE_FORCE_TCP: _SimulateScenarioKind.ValueType # 5 + SIMULATE_FORCE_TLS: _SimulateScenarioKind.ValueType # 6 + SIMULATE_FULL_RECONNECT: _SimulateScenarioKind.ValueType # 7 + """Asks the server to send `LeaveRequest{Reconnect}`, forcing a full + reconnect (new RtcSession; SDK republishes existing local tracks). + """ + +class SimulateScenarioKind(_SimulateScenarioKind, metaclass=_SimulateScenarioKindEnumTypeWrapper): + """Simulate a reconnection scenario for testing. Mirrors the variants of + `livekit::SimulateScenario`. The Resume / FullReconnect variants are + the relevant ones for verifying that resume preserves publications and + full reconnect republishes them exactly once. + """ + +SIMULATE_SIGNAL_RECONNECT: SimulateScenarioKind.ValueType # 0 +"""Closes the signal channel locally; engine attempts a Resume.""" +SIMULATE_SPEAKER: SimulateScenarioKind.ValueType # 1 +SIMULATE_NODE_FAILURE: SimulateScenarioKind.ValueType # 2 +SIMULATE_SERVER_LEAVE: SimulateScenarioKind.ValueType # 3 +SIMULATE_MIGRATION: SimulateScenarioKind.ValueType # 4 +SIMULATE_FORCE_TCP: SimulateScenarioKind.ValueType # 5 +SIMULATE_FORCE_TLS: SimulateScenarioKind.ValueType # 6 +SIMULATE_FULL_RECONNECT: SimulateScenarioKind.ValueType # 7 +"""Asks the server to send `LeaveRequest{Reconnect}`, forcing a full +reconnect (new RtcSession; SDK republishes existing local tracks). +""" +Global___SimulateScenarioKind: _TypeAlias = SimulateScenarioKind # noqa: Y015 class _IceTransportType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _IceTransportTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IceTransportType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _IceTransportTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_IceTransportType.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor TRANSPORT_RELAY: _IceTransportType.ValueType # 0 TRANSPORT_NOHOST: _IceTransportType.ValueType # 1 TRANSPORT_ALL: _IceTransportType.ValueType # 2 @@ -55,14 +100,14 @@ class IceTransportType(_IceTransportType, metaclass=_IceTransportTypeEnumTypeWra TRANSPORT_RELAY: IceTransportType.ValueType # 0 TRANSPORT_NOHOST: IceTransportType.ValueType # 1 TRANSPORT_ALL: IceTransportType.ValueType # 2 -global___IceTransportType = IceTransportType +Global___IceTransportType: _TypeAlias = IceTransportType # noqa: Y015 class _ContinualGatheringPolicy: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _ContinualGatheringPolicyEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ContinualGatheringPolicy.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _ContinualGatheringPolicyEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_ContinualGatheringPolicy.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor GATHER_ONCE: _ContinualGatheringPolicy.ValueType # 0 GATHER_CONTINUALLY: _ContinualGatheringPolicy.ValueType # 1 @@ -70,14 +115,14 @@ class ContinualGatheringPolicy(_ContinualGatheringPolicy, metaclass=_ContinualGa GATHER_ONCE: ContinualGatheringPolicy.ValueType # 0 GATHER_CONTINUALLY: ContinualGatheringPolicy.ValueType # 1 -global___ContinualGatheringPolicy = ContinualGatheringPolicy +Global___ContinualGatheringPolicy: _TypeAlias = ContinualGatheringPolicy # noqa: Y015 class _ConnectionQuality: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _ConnectionQualityEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ConnectionQuality.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _ConnectionQualityEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_ConnectionQuality.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor QUALITY_POOR: _ConnectionQuality.ValueType # 0 QUALITY_GOOD: _ConnectionQuality.ValueType # 1 QUALITY_EXCELLENT: _ConnectionQuality.ValueType # 2 @@ -92,14 +137,14 @@ QUALITY_POOR: ConnectionQuality.ValueType # 0 QUALITY_GOOD: ConnectionQuality.ValueType # 1 QUALITY_EXCELLENT: ConnectionQuality.ValueType # 2 QUALITY_LOST: ConnectionQuality.ValueType # 3 -global___ConnectionQuality = ConnectionQuality +Global___ConnectionQuality: _TypeAlias = ConnectionQuality # noqa: Y015 class _ConnectionState: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _ConnectionStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ConnectionState.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _ConnectionStateEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_ConnectionState.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor CONN_DISCONNECTED: _ConnectionState.ValueType # 0 CONN_CONNECTED: _ConnectionState.ValueType # 1 CONN_RECONNECTING: _ConnectionState.ValueType # 2 @@ -109,14 +154,14 @@ class ConnectionState(_ConnectionState, metaclass=_ConnectionStateEnumTypeWrappe CONN_DISCONNECTED: ConnectionState.ValueType # 0 CONN_CONNECTED: ConnectionState.ValueType # 1 CONN_RECONNECTING: ConnectionState.ValueType # 2 -global___ConnectionState = ConnectionState +Global___ConnectionState: _TypeAlias = ConnectionState # noqa: Y015 class _DataPacketKind: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _DataPacketKindEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DataPacketKind.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _DataPacketKindEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_DataPacketKind.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor KIND_LOSSY: _DataPacketKind.ValueType # 0 KIND_RELIABLE: _DataPacketKind.ValueType # 1 @@ -124,66 +169,72 @@ class DataPacketKind(_DataPacketKind, metaclass=_DataPacketKindEnumTypeWrapper): KIND_LOSSY: DataPacketKind.ValueType # 0 KIND_RELIABLE: DataPacketKind.ValueType # 1 -global___DataPacketKind = DataPacketKind +Global___DataPacketKind: _TypeAlias = DataPacketKind # noqa: Y015 -@typing.final -class ConnectRequest(google.protobuf.message.Message): +@_typing.final +class ConnectRequest(_message.Message): """Connect to a new LiveKit room""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - URL_FIELD_NUMBER: builtins.int - TOKEN_FIELD_NUMBER: builtins.int - OPTIONS_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - url: builtins.str - token: builtins.str - request_async_id: builtins.int - @property - def options(self) -> global___RoomOptions: ... + URL_FIELD_NUMBER: _builtins.int + TOKEN_FIELD_NUMBER: _builtins.int + OPTIONS_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + url: _builtins.str + token: _builtins.str + request_async_id: _builtins.int + @_builtins.property + def options(self) -> Global___RoomOptions: ... def __init__( self, *, - url: builtins.str | None = ..., - token: builtins.str | None = ..., - options: global___RoomOptions | None = ..., - request_async_id: builtins.int | None = ..., + url: _builtins.str | None = ..., + token: _builtins.str | None = ..., + options: Global___RoomOptions | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["options", b"options", "request_async_id", b"request_async_id", "token", b"token", "url", b"url"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["options", b"options", "request_async_id", b"request_async_id", "token", b"token", "url", b"url"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["options", b"options", "request_async_id", b"request_async_id", "token", b"token", "url", b"url"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["options", b"options", "request_async_id", b"request_async_id", "token", b"token", "url", b"url"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ConnectRequest = ConnectRequest +Global___ConnectRequest: _TypeAlias = ConnectRequest # noqa: Y015 -@typing.final -class ConnectResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ConnectResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ConnectResponse = ConnectResponse +Global___ConnectResponse: _TypeAlias = ConnectResponse # noqa: Y015 -@typing.final -class ConnectCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ConnectCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - @typing.final - class ParticipantWithTracks(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class ParticipantWithTracks(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_FIELD_NUMBER: builtins.int - PUBLICATIONS_FIELD_NUMBER: builtins.int - @property - def participant(self) -> participant_pb2.OwnedParticipant: ... - @property - def publications(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[track_pb2.OwnedTrackPublication]: + PARTICIPANT_FIELD_NUMBER: _builtins.int + PUBLICATIONS_FIELD_NUMBER: _builtins.int + @_builtins.property + def participant(self) -> _participant_pb2.OwnedParticipant: ... + @_builtins.property + def publications(self) -> _containers.RepeatedCompositeFieldContainer[_track_pb2.OwnedTrackPublication]: """TrackInfo are not needed here, if we're subscribed to a track, the FfiServer will send a TrackSubscribed event """ @@ -191,2068 +242,2432 @@ class ConnectCallback(google.protobuf.message.Message): def __init__( self, *, - participant: participant_pb2.OwnedParticipant | None = ..., - publications: collections.abc.Iterable[track_pb2.OwnedTrackPublication] | None = ..., + participant: _participant_pb2.OwnedParticipant | None = ..., + publications: _abc.Iterable[_track_pb2.OwnedTrackPublication] | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["participant", b"participant"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["participant", b"participant", "publications", b"publications"]) -> None: ... - - @typing.final - class Result(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ROOM_FIELD_NUMBER: builtins.int - LOCAL_PARTICIPANT_FIELD_NUMBER: builtins.int - PARTICIPANTS_FIELD_NUMBER: builtins.int - @property - def room(self) -> global___OwnedRoom: ... - @property - def local_participant(self) -> participant_pb2.OwnedParticipant: ... - @property - def participants(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConnectCallback.ParticipantWithTracks]: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["participant", b"participant"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participant", b"participant", "publications", b"publications"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class Result(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ROOM_FIELD_NUMBER: _builtins.int + LOCAL_PARTICIPANT_FIELD_NUMBER: _builtins.int + PARTICIPANTS_FIELD_NUMBER: _builtins.int + @_builtins.property + def room(self) -> Global___OwnedRoom: ... + @_builtins.property + def local_participant(self) -> _participant_pb2.OwnedParticipant: ... + @_builtins.property + def participants(self) -> _containers.RepeatedCompositeFieldContainer[Global___ConnectCallback.ParticipantWithTracks]: ... def __init__( self, *, - room: global___OwnedRoom | None = ..., - local_participant: participant_pb2.OwnedParticipant | None = ..., - participants: collections.abc.Iterable[global___ConnectCallback.ParticipantWithTracks] | None = ..., + room: Global___OwnedRoom | None = ..., + local_participant: _participant_pb2.OwnedParticipant | None = ..., + participants: _abc.Iterable[Global___ConnectCallback.ParticipantWithTracks] | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["local_participant", b"local_participant", "room", b"room"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["local_participant", b"local_participant", "participants", b"participants", "room", b"room"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant", b"local_participant", "room", b"room"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant", b"local_participant", "participants", b"participants", "room", b"room"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + RESULT_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str + @_builtins.property + def result(self) -> Global___ConnectCallback.Result: ... + def __init__( + self, + *, + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., + result: Global___ConnectCallback.Result | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "result", b"result"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "result", b"result"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["error", "result"] # noqa: Y015 + _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... + +Global___ConnectCallback: _TypeAlias = ConnectCallback # noqa: Y015 + +@_typing.final +class DisconnectRequest(_message.Message): + """Disconnect from the a room""" + + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - RESULT_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str - @property - def result(self) -> global___ConnectCallback.Result: ... + ROOM_HANDLE_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + REASON_FIELD_NUMBER: _builtins.int + room_handle: _builtins.int + request_async_id: _builtins.int + reason: _participant_pb2.DisconnectReason.ValueType def __init__( self, *, - async_id: builtins.int | None = ..., - error: builtins.str | None = ..., - result: global___ConnectCallback.Result | None = ..., + room_handle: _builtins.int | None = ..., + request_async_id: _builtins.int | None = ..., + reason: _participant_pb2.DisconnectReason.ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "result", b"result"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "result", b"result"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["error", "result"] | None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["reason", b"reason", "request_async_id", b"request_async_id", "room_handle", b"room_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["reason", b"reason", "request_async_id", b"request_async_id", "room_handle", b"room_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ConnectCallback = ConnectCallback +Global___DisconnectRequest: _TypeAlias = DisconnectRequest # noqa: Y015 -@typing.final -class DisconnectRequest(google.protobuf.message.Message): - """Disconnect from the a room""" +@_typing.final +class DisconnectResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + def __init__( + self, + *, + async_id: _builtins.int | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___DisconnectResponse: _TypeAlias = DisconnectResponse # noqa: Y015 + +@_typing.final +class DisconnectCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + def __init__( + self, + *, + async_id: _builtins.int | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... - DESCRIPTOR: google.protobuf.descriptor.Descriptor +Global___DisconnectCallback: _TypeAlias = DisconnectCallback # noqa: Y015 - ROOM_HANDLE_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - REASON_FIELD_NUMBER: builtins.int - room_handle: builtins.int - request_async_id: builtins.int - reason: participant_pb2.DisconnectReason.ValueType +@_typing.final +class SimulateScenarioRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ROOM_HANDLE_FIELD_NUMBER: _builtins.int + SCENARIO_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + room_handle: _builtins.int + scenario: Global___SimulateScenarioKind.ValueType + request_async_id: _builtins.int def __init__( self, *, - room_handle: builtins.int | None = ..., - request_async_id: builtins.int | None = ..., - reason: participant_pb2.DisconnectReason.ValueType | None = ..., + room_handle: _builtins.int | None = ..., + scenario: Global___SimulateScenarioKind.ValueType | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["reason", b"reason", "request_async_id", b"request_async_id", "room_handle", b"room_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["reason", b"reason", "request_async_id", b"request_async_id", "room_handle", b"room_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["request_async_id", b"request_async_id", "room_handle", b"room_handle", "scenario", b"scenario"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["request_async_id", b"request_async_id", "room_handle", b"room_handle", "scenario", b"scenario"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DisconnectRequest = DisconnectRequest +Global___SimulateScenarioRequest: _TypeAlias = SimulateScenarioRequest # noqa: Y015 -@typing.final -class DisconnectResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SimulateScenarioResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DisconnectResponse = DisconnectResponse +Global___SimulateScenarioResponse: _TypeAlias = SimulateScenarioResponse # noqa: Y015 -@typing.final -class DisconnectCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SimulateScenarioCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DisconnectCallback = DisconnectCallback +Global___SimulateScenarioCallback: _TypeAlias = SimulateScenarioCallback # noqa: Y015 -@typing.final -class PublishTrackRequest(google.protobuf.message.Message): +@_typing.final +class PublishTrackRequest(_message.Message): """Publish a track to the room""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - TRACK_HANDLE_FIELD_NUMBER: builtins.int - OPTIONS_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - track_handle: builtins.int - request_async_id: builtins.int - @property - def options(self) -> global___TrackPublishOptions: ... + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + TRACK_HANDLE_FIELD_NUMBER: _builtins.int + OPTIONS_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + track_handle: _builtins.int + request_async_id: _builtins.int + @_builtins.property + def options(self) -> Global___TrackPublishOptions: ... def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - track_handle: builtins.int | None = ..., - options: global___TrackPublishOptions | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + track_handle: _builtins.int | None = ..., + options: Global___TrackPublishOptions | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id", "track_handle", b"track_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id", "track_handle", b"track_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id", "track_handle", b"track_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id", "track_handle", b"track_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___PublishTrackRequest = PublishTrackRequest +Global___PublishTrackRequest: _TypeAlias = PublishTrackRequest # noqa: Y015 -@typing.final -class PublishTrackResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class PublishTrackResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___PublishTrackResponse = PublishTrackResponse +Global___PublishTrackResponse: _TypeAlias = PublishTrackResponse # noqa: Y015 -@typing.final -class PublishTrackCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class PublishTrackCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - PUBLICATION_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str - @property - def publication(self) -> track_pb2.OwnedTrackPublication: ... + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + PUBLICATION_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str + @_builtins.property + def publication(self) -> _track_pb2.OwnedTrackPublication: ... def __init__( self, *, - async_id: builtins.int | None = ..., - error: builtins.str | None = ..., - publication: track_pb2.OwnedTrackPublication | None = ..., + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., + publication: _track_pb2.OwnedTrackPublication | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "publication", b"publication"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "publication", b"publication"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["error", "publication"] | None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "publication", b"publication"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "publication", b"publication"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["error", "publication"] # noqa: Y015 + _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... -global___PublishTrackCallback = PublishTrackCallback +Global___PublishTrackCallback: _TypeAlias = PublishTrackCallback # noqa: Y015 -@typing.final -class UnpublishTrackRequest(google.protobuf.message.Message): +@_typing.final +class UnpublishTrackRequest(_message.Message): """Unpublish a track from the room""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - TRACK_SID_FIELD_NUMBER: builtins.int - STOP_ON_UNPUBLISH_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - track_sid: builtins.str - stop_on_unpublish: builtins.bool - request_async_id: builtins.int + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + TRACK_SID_FIELD_NUMBER: _builtins.int + STOP_ON_UNPUBLISH_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + track_sid: _builtins.str + stop_on_unpublish: _builtins.bool + request_async_id: _builtins.int def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - track_sid: builtins.str | None = ..., - stop_on_unpublish: builtins.bool | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + track_sid: _builtins.str | None = ..., + stop_on_unpublish: _builtins.bool | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "stop_on_unpublish", b"stop_on_unpublish", "track_sid", b"track_sid"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "stop_on_unpublish", b"stop_on_unpublish", "track_sid", b"track_sid"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "stop_on_unpublish", b"stop_on_unpublish", "track_sid", b"track_sid"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "stop_on_unpublish", b"stop_on_unpublish", "track_sid", b"track_sid"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___UnpublishTrackRequest = UnpublishTrackRequest +Global___UnpublishTrackRequest: _TypeAlias = UnpublishTrackRequest # noqa: Y015 -@typing.final -class UnpublishTrackResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class UnpublishTrackResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___UnpublishTrackResponse = UnpublishTrackResponse +Global___UnpublishTrackResponse: _TypeAlias = UnpublishTrackResponse # noqa: Y015 -@typing.final -class UnpublishTrackCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class UnpublishTrackCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str def __init__( self, *, - async_id: builtins.int | None = ..., - error: builtins.str | None = ..., + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___UnpublishTrackCallback = UnpublishTrackCallback +Global___UnpublishTrackCallback: _TypeAlias = UnpublishTrackCallback # noqa: Y015 -@typing.final -class PublishDataRequest(google.protobuf.message.Message): +@_typing.final +class PublishDataRequest(_message.Message): """Publish data to other participants""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - DATA_PTR_FIELD_NUMBER: builtins.int - DATA_LEN_FIELD_NUMBER: builtins.int - RELIABLE_FIELD_NUMBER: builtins.int - DESTINATION_SIDS_FIELD_NUMBER: builtins.int - TOPIC_FIELD_NUMBER: builtins.int - DESTINATION_IDENTITIES_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - data_ptr: builtins.int - data_len: builtins.int - reliable: builtins.bool - topic: builtins.str - request_async_id: builtins.int - @property - def destination_sids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... - @property - def destination_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + DATA_PTR_FIELD_NUMBER: _builtins.int + DATA_LEN_FIELD_NUMBER: _builtins.int + RELIABLE_FIELD_NUMBER: _builtins.int + DESTINATION_SIDS_FIELD_NUMBER: _builtins.int + TOPIC_FIELD_NUMBER: _builtins.int + DESTINATION_IDENTITIES_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + data_ptr: _builtins.int + data_len: _builtins.int + reliable: _builtins.bool + topic: _builtins.str + request_async_id: _builtins.int + @_builtins.property + @_deprecated("""This field has been marked as deprecated using proto field options.""") + def destination_sids(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... + @_builtins.property + def destination_identities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - data_ptr: builtins.int | None = ..., - data_len: builtins.int | None = ..., - reliable: builtins.bool | None = ..., - destination_sids: collections.abc.Iterable[builtins.str] | None = ..., - topic: builtins.str | None = ..., - destination_identities: collections.abc.Iterable[builtins.str] | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + data_ptr: _builtins.int | None = ..., + data_len: _builtins.int | None = ..., + reliable: _builtins.bool | None = ..., + destination_sids: _abc.Iterable[_builtins.str] | None = ..., + topic: _builtins.str | None = ..., + destination_identities: _abc.Iterable[_builtins.str] | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["data_len", b"data_len", "data_ptr", b"data_ptr", "local_participant_handle", b"local_participant_handle", "reliable", b"reliable", "request_async_id", b"request_async_id", "topic", b"topic"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["data_len", b"data_len", "data_ptr", b"data_ptr", "destination_identities", b"destination_identities", "destination_sids", b"destination_sids", "local_participant_handle", b"local_participant_handle", "reliable", b"reliable", "request_async_id", b"request_async_id", "topic", b"topic"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["data_len", b"data_len", "data_ptr", b"data_ptr", "local_participant_handle", b"local_participant_handle", "reliable", b"reliable", "request_async_id", b"request_async_id", "topic", b"topic"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["data_len", b"data_len", "data_ptr", b"data_ptr", "destination_identities", b"destination_identities", "destination_sids", b"destination_sids", "local_participant_handle", b"local_participant_handle", "reliable", b"reliable", "request_async_id", b"request_async_id", "topic", b"topic"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___PublishDataRequest = PublishDataRequest +Global___PublishDataRequest: _TypeAlias = PublishDataRequest # noqa: Y015 -@typing.final -class PublishDataResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class PublishDataResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___PublishDataResponse = PublishDataResponse +Global___PublishDataResponse: _TypeAlias = PublishDataResponse # noqa: Y015 -@typing.final -class PublishDataCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class PublishDataCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str def __init__( self, *, - async_id: builtins.int | None = ..., - error: builtins.str | None = ..., + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___PublishDataCallback = PublishDataCallback +Global___PublishDataCallback: _TypeAlias = PublishDataCallback # noqa: Y015 -@typing.final -class PublishTranscriptionRequest(google.protobuf.message.Message): +@_typing.final +class PublishTranscriptionRequest(_message.Message): """Publish transcription messages to room""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - TRACK_ID_FIELD_NUMBER: builtins.int - SEGMENTS_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - participant_identity: builtins.str - track_id: builtins.str - request_async_id: builtins.int - @property - def segments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___TranscriptionSegment]: ... + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + TRACK_ID_FIELD_NUMBER: _builtins.int + SEGMENTS_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + participant_identity: _builtins.str + track_id: _builtins.str + request_async_id: _builtins.int + @_builtins.property + def segments(self) -> _containers.RepeatedCompositeFieldContainer[Global___TranscriptionSegment]: ... def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - participant_identity: builtins.str | None = ..., - track_id: builtins.str | None = ..., - segments: collections.abc.Iterable[global___TranscriptionSegment] | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + participant_identity: _builtins.str | None = ..., + track_id: _builtins.str | None = ..., + segments: _abc.Iterable[Global___TranscriptionSegment] | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "participant_identity", b"participant_identity", "request_async_id", b"request_async_id", "track_id", b"track_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "participant_identity", b"participant_identity", "request_async_id", b"request_async_id", "segments", b"segments", "track_id", b"track_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "participant_identity", b"participant_identity", "request_async_id", b"request_async_id", "track_id", b"track_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "participant_identity", b"participant_identity", "request_async_id", b"request_async_id", "segments", b"segments", "track_id", b"track_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___PublishTranscriptionRequest = PublishTranscriptionRequest +Global___PublishTranscriptionRequest: _TypeAlias = PublishTranscriptionRequest # noqa: Y015 -@typing.final -class PublishTranscriptionResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class PublishTranscriptionResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___PublishTranscriptionResponse = PublishTranscriptionResponse +Global___PublishTranscriptionResponse: _TypeAlias = PublishTranscriptionResponse # noqa: Y015 -@typing.final -class PublishTranscriptionCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class PublishTranscriptionCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str def __init__( self, *, - async_id: builtins.int | None = ..., - error: builtins.str | None = ..., + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___PublishTranscriptionCallback = PublishTranscriptionCallback +Global___PublishTranscriptionCallback: _TypeAlias = PublishTranscriptionCallback # noqa: Y015 -@typing.final -class PublishSipDtmfRequest(google.protobuf.message.Message): +@_typing.final +class PublishSipDtmfRequest(_message.Message): """Publish Sip DTMF messages to other participants""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - CODE_FIELD_NUMBER: builtins.int - DIGIT_FIELD_NUMBER: builtins.int - DESTINATION_IDENTITIES_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - code: builtins.int - digit: builtins.str - request_async_id: builtins.int - @property - def destination_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + CODE_FIELD_NUMBER: _builtins.int + DIGIT_FIELD_NUMBER: _builtins.int + DESTINATION_IDENTITIES_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + code: _builtins.int + digit: _builtins.str + request_async_id: _builtins.int + @_builtins.property + def destination_identities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - code: builtins.int | None = ..., - digit: builtins.str | None = ..., - destination_identities: collections.abc.Iterable[builtins.str] | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + code: _builtins.int | None = ..., + digit: _builtins.str | None = ..., + destination_identities: _abc.Iterable[_builtins.str] | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["code", b"code", "digit", b"digit", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["code", b"code", "destination_identities", b"destination_identities", "digit", b"digit", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "digit", b"digit", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "destination_identities", b"destination_identities", "digit", b"digit", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___PublishSipDtmfRequest = PublishSipDtmfRequest +Global___PublishSipDtmfRequest: _TypeAlias = PublishSipDtmfRequest # noqa: Y015 -@typing.final -class PublishSipDtmfResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class PublishSipDtmfResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___PublishSipDtmfResponse = PublishSipDtmfResponse +Global___PublishSipDtmfResponse: _TypeAlias = PublishSipDtmfResponse # noqa: Y015 -@typing.final -class PublishSipDtmfCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class PublishSipDtmfCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str def __init__( self, *, - async_id: builtins.int | None = ..., - error: builtins.str | None = ..., + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___PublishSipDtmfCallback = PublishSipDtmfCallback +Global___PublishSipDtmfCallback: _TypeAlias = PublishSipDtmfCallback # noqa: Y015 -@typing.final -class SetLocalMetadataRequest(google.protobuf.message.Message): +@_typing.final +class SetLocalMetadataRequest(_message.Message): """Change the local participant's metadata""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - metadata: builtins.str - request_async_id: builtins.int + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + METADATA_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + metadata: _builtins.str + request_async_id: _builtins.int def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - metadata: builtins.str | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + metadata: _builtins.str | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "metadata", b"metadata", "request_async_id", b"request_async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "metadata", b"metadata", "request_async_id", b"request_async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "metadata", b"metadata", "request_async_id", b"request_async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "metadata", b"metadata", "request_async_id", b"request_async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetLocalMetadataRequest = SetLocalMetadataRequest +Global___SetLocalMetadataRequest: _TypeAlias = SetLocalMetadataRequest # noqa: Y015 -@typing.final -class SetLocalMetadataResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SetLocalMetadataResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetLocalMetadataResponse = SetLocalMetadataResponse +Global___SetLocalMetadataResponse: _TypeAlias = SetLocalMetadataResponse # noqa: Y015 -@typing.final -class SetLocalMetadataCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SetLocalMetadataCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str def __init__( self, *, - async_id: builtins.int | None = ..., - error: builtins.str | None = ..., + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetLocalMetadataCallback = SetLocalMetadataCallback +Global___SetLocalMetadataCallback: _TypeAlias = SetLocalMetadataCallback # noqa: Y015 -@typing.final -class SendChatMessageRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SendChatMessageRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - MESSAGE_FIELD_NUMBER: builtins.int - DESTINATION_IDENTITIES_FIELD_NUMBER: builtins.int - SENDER_IDENTITY_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - message: builtins.str - sender_identity: builtins.str - request_async_id: builtins.int - @property - def destination_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + MESSAGE_FIELD_NUMBER: _builtins.int + DESTINATION_IDENTITIES_FIELD_NUMBER: _builtins.int + SENDER_IDENTITY_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + message: _builtins.str + sender_identity: _builtins.str + request_async_id: _builtins.int + @_builtins.property + def destination_identities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - message: builtins.str | None = ..., - destination_identities: collections.abc.Iterable[builtins.str] | None = ..., - sender_identity: builtins.str | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + message: _builtins.str | None = ..., + destination_identities: _abc.Iterable[_builtins.str] | None = ..., + sender_identity: _builtins.str | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "message", b"message", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["destination_identities", b"destination_identities", "local_participant_handle", b"local_participant_handle", "message", b"message", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "message", b"message", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["destination_identities", b"destination_identities", "local_participant_handle", b"local_participant_handle", "message", b"message", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SendChatMessageRequest = SendChatMessageRequest +Global___SendChatMessageRequest: _TypeAlias = SendChatMessageRequest # noqa: Y015 -@typing.final -class EditChatMessageRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class EditChatMessageRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - EDIT_TEXT_FIELD_NUMBER: builtins.int - ORIGINAL_MESSAGE_FIELD_NUMBER: builtins.int - DESTINATION_IDENTITIES_FIELD_NUMBER: builtins.int - SENDER_IDENTITY_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - edit_text: builtins.str - sender_identity: builtins.str - request_async_id: builtins.int - @property - def original_message(self) -> global___ChatMessage: ... - @property - def destination_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + EDIT_TEXT_FIELD_NUMBER: _builtins.int + ORIGINAL_MESSAGE_FIELD_NUMBER: _builtins.int + DESTINATION_IDENTITIES_FIELD_NUMBER: _builtins.int + SENDER_IDENTITY_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + edit_text: _builtins.str + sender_identity: _builtins.str + request_async_id: _builtins.int + @_builtins.property + def original_message(self) -> Global___ChatMessage: ... + @_builtins.property + def destination_identities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - edit_text: builtins.str | None = ..., - original_message: global___ChatMessage | None = ..., - destination_identities: collections.abc.Iterable[builtins.str] | None = ..., - sender_identity: builtins.str | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + edit_text: _builtins.str | None = ..., + original_message: Global___ChatMessage | None = ..., + destination_identities: _abc.Iterable[_builtins.str] | None = ..., + sender_identity: _builtins.str | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["edit_text", b"edit_text", "local_participant_handle", b"local_participant_handle", "original_message", b"original_message", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["destination_identities", b"destination_identities", "edit_text", b"edit_text", "local_participant_handle", b"local_participant_handle", "original_message", b"original_message", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["edit_text", b"edit_text", "local_participant_handle", b"local_participant_handle", "original_message", b"original_message", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["destination_identities", b"destination_identities", "edit_text", b"edit_text", "local_participant_handle", b"local_participant_handle", "original_message", b"original_message", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___EditChatMessageRequest = EditChatMessageRequest +Global___EditChatMessageRequest: _TypeAlias = EditChatMessageRequest # noqa: Y015 -@typing.final -class SendChatMessageResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SendChatMessageResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SendChatMessageResponse = SendChatMessageResponse +Global___SendChatMessageResponse: _TypeAlias = SendChatMessageResponse # noqa: Y015 -@typing.final -class SendChatMessageCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SendChatMessageCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - CHAT_MESSAGE_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str - @property - def chat_message(self) -> global___ChatMessage: ... + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + CHAT_MESSAGE_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str + @_builtins.property + def chat_message(self) -> Global___ChatMessage: ... def __init__( self, - *, - async_id: builtins.int | None = ..., - error: builtins.str | None = ..., - chat_message: global___ChatMessage | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "chat_message", b"chat_message", "error", b"error", "message", b"message"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "chat_message", b"chat_message", "error", b"error", "message", b"message"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["error", "chat_message"] | None: ... + *, + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., + chat_message: Global___ChatMessage | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "chat_message", b"chat_message", "error", b"error", "message", b"message"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "chat_message", b"chat_message", "error", b"error", "message", b"message"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["error", "chat_message"] # noqa: Y015 + _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... -global___SendChatMessageCallback = SendChatMessageCallback +Global___SendChatMessageCallback: _TypeAlias = SendChatMessageCallback # noqa: Y015 -@typing.final -class SetLocalAttributesRequest(google.protobuf.message.Message): +@_typing.final +class SetLocalAttributesRequest(_message.Message): """Change the local participant's attributes""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - ATTRIBUTES_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - request_async_id: builtins.int - @property - def attributes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AttributesEntry]: ... + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + ATTRIBUTES_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + request_async_id: _builtins.int + @_builtins.property + def attributes(self) -> _containers.RepeatedCompositeFieldContainer[Global___AttributesEntry]: ... def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - attributes: collections.abc.Iterable[global___AttributesEntry] | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + attributes: _abc.Iterable[Global___AttributesEntry] | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["attributes", b"attributes", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["attributes", b"attributes", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetLocalAttributesRequest = SetLocalAttributesRequest +Global___SetLocalAttributesRequest: _TypeAlias = SetLocalAttributesRequest # noqa: Y015 -@typing.final -class AttributesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class AttributesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str | None = ..., - value: builtins.str | None = ..., + key: _builtins.str | None = ..., + value: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___AttributesEntry = AttributesEntry +Global___AttributesEntry: _TypeAlias = AttributesEntry # noqa: Y015 -@typing.final -class SetLocalAttributesResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SetLocalAttributesResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetLocalAttributesResponse = SetLocalAttributesResponse +Global___SetLocalAttributesResponse: _TypeAlias = SetLocalAttributesResponse # noqa: Y015 -@typing.final -class SetLocalAttributesCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SetLocalAttributesCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str def __init__( self, *, - async_id: builtins.int | None = ..., - error: builtins.str | None = ..., + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetLocalAttributesCallback = SetLocalAttributesCallback +Global___SetLocalAttributesCallback: _TypeAlias = SetLocalAttributesCallback # noqa: Y015 -@typing.final -class SetLocalNameRequest(google.protobuf.message.Message): +@_typing.final +class SetLocalNameRequest(_message.Message): """Change the local participant's name""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - name: builtins.str - request_async_id: builtins.int + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + NAME_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + name: _builtins.str + request_async_id: _builtins.int def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - name: builtins.str | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + name: _builtins.str | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "name", b"name", "request_async_id", b"request_async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "name", b"name", "request_async_id", b"request_async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "name", b"name", "request_async_id", b"request_async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "name", b"name", "request_async_id", b"request_async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetLocalNameRequest = SetLocalNameRequest +Global___SetLocalNameRequest: _TypeAlias = SetLocalNameRequest # noqa: Y015 -@typing.final -class SetLocalNameResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SetLocalNameResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetLocalNameResponse = SetLocalNameResponse +Global___SetLocalNameResponse: _TypeAlias = SetLocalNameResponse # noqa: Y015 -@typing.final -class SetLocalNameCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SetLocalNameCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str def __init__( self, *, - async_id: builtins.int | None = ..., - error: builtins.str | None = ..., + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetLocalNameCallback = SetLocalNameCallback +Global___SetLocalNameCallback: _TypeAlias = SetLocalNameCallback # noqa: Y015 -@typing.final -class SetSubscribedRequest(google.protobuf.message.Message): +@_typing.final +class SetSubscribedRequest(_message.Message): """Change the "desire" to subs2ribe to a track""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - SUBSCRIBE_FIELD_NUMBER: builtins.int - PUBLICATION_HANDLE_FIELD_NUMBER: builtins.int - subscribe: builtins.bool - publication_handle: builtins.int + SUBSCRIBE_FIELD_NUMBER: _builtins.int + PUBLICATION_HANDLE_FIELD_NUMBER: _builtins.int + subscribe: _builtins.bool + publication_handle: _builtins.int def __init__( self, *, - subscribe: builtins.bool | None = ..., - publication_handle: builtins.int | None = ..., + subscribe: _builtins.bool | None = ..., + publication_handle: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["publication_handle", b"publication_handle", "subscribe", b"subscribe"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["publication_handle", b"publication_handle", "subscribe", b"subscribe"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["publication_handle", b"publication_handle", "subscribe", b"subscribe"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["publication_handle", b"publication_handle", "subscribe", b"subscribe"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetSubscribedRequest = SetSubscribedRequest +Global___SetSubscribedRequest: _TypeAlias = SetSubscribedRequest # noqa: Y015 -@typing.final -class SetSubscribedResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SetSubscribedResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetSubscribedResponse = SetSubscribedResponse +Global___SetSubscribedResponse: _TypeAlias = SetSubscribedResponse # noqa: Y015 -@typing.final -class GetSessionStatsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetSessionStatsRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ROOM_HANDLE_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - room_handle: builtins.int - request_async_id: builtins.int + ROOM_HANDLE_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + room_handle: _builtins.int + request_async_id: _builtins.int def __init__( self, *, - room_handle: builtins.int | None = ..., - request_async_id: builtins.int | None = ..., + room_handle: _builtins.int | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["request_async_id", b"request_async_id", "room_handle", b"room_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["request_async_id", b"request_async_id", "room_handle", b"room_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["request_async_id", b"request_async_id", "room_handle", b"room_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["request_async_id", b"request_async_id", "room_handle", b"room_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___GetSessionStatsRequest = GetSessionStatsRequest +Global___GetSessionStatsRequest: _TypeAlias = GetSessionStatsRequest # noqa: Y015 -@typing.final -class GetSessionStatsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetSessionStatsResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___GetSessionStatsResponse = GetSessionStatsResponse +Global___GetSessionStatsResponse: _TypeAlias = GetSessionStatsResponse # noqa: Y015 -@typing.final -class GetSessionStatsCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetSessionStatsCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - @typing.final - class Result(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class Result(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PUBLISHER_STATS_FIELD_NUMBER: builtins.int - SUBSCRIBER_STATS_FIELD_NUMBER: builtins.int - @property - def publisher_stats(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[stats_pb2.RtcStats]: ... - @property - def subscriber_stats(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[stats_pb2.RtcStats]: ... + PUBLISHER_STATS_FIELD_NUMBER: _builtins.int + SUBSCRIBER_STATS_FIELD_NUMBER: _builtins.int + @_builtins.property + def publisher_stats(self) -> _containers.RepeatedCompositeFieldContainer[_stats_pb2.RtcStats]: ... + @_builtins.property + def subscriber_stats(self) -> _containers.RepeatedCompositeFieldContainer[_stats_pb2.RtcStats]: ... def __init__( self, *, - publisher_stats: collections.abc.Iterable[stats_pb2.RtcStats] | None = ..., - subscriber_stats: collections.abc.Iterable[stats_pb2.RtcStats] | None = ..., + publisher_stats: _abc.Iterable[_stats_pb2.RtcStats] | None = ..., + subscriber_stats: _abc.Iterable[_stats_pb2.RtcStats] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing.Literal["publisher_stats", b"publisher_stats", "subscriber_stats", b"subscriber_stats"]) -> None: ... - - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - RESULT_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str - @property - def result(self) -> global___GetSessionStatsCallback.Result: ... - def __init__( - self, - *, - async_id: builtins.int | None = ..., - error: builtins.str | None = ..., - result: global___GetSessionStatsCallback.Result | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "result", b"result"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "result", b"result"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["error", "result"] | None: ... - -global___GetSessionStatsCallback = GetSessionStatsCallback - -@typing.final -class VideoEncoding(google.protobuf.message.Message): + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["publisher_stats", b"publisher_stats", "subscriber_stats", b"subscriber_stats"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + RESULT_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str + @_builtins.property + def result(self) -> Global___GetSessionStatsCallback.Result: ... + def __init__( + self, + *, + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., + result: Global___GetSessionStatsCallback.Result | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "result", b"result"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "result", b"result"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["error", "result"] # noqa: Y015 + _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... + +Global___GetSessionStatsCallback: _TypeAlias = GetSessionStatsCallback # noqa: Y015 + +@_typing.final +class VideoEncoding(_message.Message): """ Options """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - MAX_BITRATE_FIELD_NUMBER: builtins.int - MAX_FRAMERATE_FIELD_NUMBER: builtins.int - max_bitrate: builtins.int - max_framerate: builtins.float + MAX_BITRATE_FIELD_NUMBER: _builtins.int + MAX_FRAMERATE_FIELD_NUMBER: _builtins.int + max_bitrate: _builtins.int + max_framerate: _builtins.float def __init__( self, *, - max_bitrate: builtins.int | None = ..., - max_framerate: builtins.float | None = ..., + max_bitrate: _builtins.int | None = ..., + max_framerate: _builtins.float | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["max_bitrate", b"max_bitrate", "max_framerate", b"max_framerate"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["max_bitrate", b"max_bitrate", "max_framerate", b"max_framerate"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["max_bitrate", b"max_bitrate", "max_framerate", b"max_framerate"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["max_bitrate", b"max_bitrate", "max_framerate", b"max_framerate"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___VideoEncoding = VideoEncoding +Global___VideoEncoding: _TypeAlias = VideoEncoding # noqa: Y015 -@typing.final -class AudioEncoding(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class AudioEncoding(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - MAX_BITRATE_FIELD_NUMBER: builtins.int - max_bitrate: builtins.int + MAX_BITRATE_FIELD_NUMBER: _builtins.int + max_bitrate: _builtins.int def __init__( self, *, - max_bitrate: builtins.int | None = ..., + max_bitrate: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["max_bitrate", b"max_bitrate"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["max_bitrate", b"max_bitrate"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["max_bitrate", b"max_bitrate"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["max_bitrate", b"max_bitrate"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___AudioEncoding = AudioEncoding +Global___AudioEncoding: _TypeAlias = AudioEncoding # noqa: Y015 -@typing.final -class TrackPublishOptions(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class TrackPublishOptions(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - VIDEO_ENCODING_FIELD_NUMBER: builtins.int - AUDIO_ENCODING_FIELD_NUMBER: builtins.int - VIDEO_CODEC_FIELD_NUMBER: builtins.int - DTX_FIELD_NUMBER: builtins.int - RED_FIELD_NUMBER: builtins.int - SIMULCAST_FIELD_NUMBER: builtins.int - SOURCE_FIELD_NUMBER: builtins.int - STREAM_FIELD_NUMBER: builtins.int - PRECONNECT_BUFFER_FIELD_NUMBER: builtins.int - video_codec: video_frame_pb2.VideoCodec.ValueType - dtx: builtins.bool - red: builtins.bool - simulcast: builtins.bool - source: track_pb2.TrackSource.ValueType - stream: builtins.str - preconnect_buffer: builtins.bool - @property - def video_encoding(self) -> global___VideoEncoding: + VIDEO_ENCODING_FIELD_NUMBER: _builtins.int + AUDIO_ENCODING_FIELD_NUMBER: _builtins.int + VIDEO_CODEC_FIELD_NUMBER: _builtins.int + DTX_FIELD_NUMBER: _builtins.int + RED_FIELD_NUMBER: _builtins.int + SIMULCAST_FIELD_NUMBER: _builtins.int + SOURCE_FIELD_NUMBER: _builtins.int + STREAM_FIELD_NUMBER: _builtins.int + PRECONNECT_BUFFER_FIELD_NUMBER: _builtins.int + video_codec: _video_frame_pb2.VideoCodec.ValueType + dtx: _builtins.bool + red: _builtins.bool + simulcast: _builtins.bool + source: _track_pb2.TrackSource.ValueType + stream: _builtins.str + preconnect_buffer: _builtins.bool + @_builtins.property + def video_encoding(self) -> Global___VideoEncoding: """encodings are optional""" - @property - def audio_encoding(self) -> global___AudioEncoding: ... + @_builtins.property + def audio_encoding(self) -> Global___AudioEncoding: ... def __init__( self, *, - video_encoding: global___VideoEncoding | None = ..., - audio_encoding: global___AudioEncoding | None = ..., - video_codec: video_frame_pb2.VideoCodec.ValueType | None = ..., - dtx: builtins.bool | None = ..., - red: builtins.bool | None = ..., - simulcast: builtins.bool | None = ..., - source: track_pb2.TrackSource.ValueType | None = ..., - stream: builtins.str | None = ..., - preconnect_buffer: builtins.bool | None = ..., + video_encoding: Global___VideoEncoding | None = ..., + audio_encoding: Global___AudioEncoding | None = ..., + video_codec: _video_frame_pb2.VideoCodec.ValueType | None = ..., + dtx: _builtins.bool | None = ..., + red: _builtins.bool | None = ..., + simulcast: _builtins.bool | None = ..., + source: _track_pb2.TrackSource.ValueType | None = ..., + stream: _builtins.str | None = ..., + preconnect_buffer: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["audio_encoding", b"audio_encoding", "dtx", b"dtx", "preconnect_buffer", b"preconnect_buffer", "red", b"red", "simulcast", b"simulcast", "source", b"source", "stream", b"stream", "video_codec", b"video_codec", "video_encoding", b"video_encoding"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["audio_encoding", b"audio_encoding", "dtx", b"dtx", "preconnect_buffer", b"preconnect_buffer", "red", b"red", "simulcast", b"simulcast", "source", b"source", "stream", b"stream", "video_codec", b"video_codec", "video_encoding", b"video_encoding"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["audio_encoding", b"audio_encoding", "dtx", b"dtx", "preconnect_buffer", b"preconnect_buffer", "red", b"red", "simulcast", b"simulcast", "source", b"source", "stream", b"stream", "video_codec", b"video_codec", "video_encoding", b"video_encoding"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["audio_encoding", b"audio_encoding", "dtx", b"dtx", "preconnect_buffer", b"preconnect_buffer", "red", b"red", "simulcast", b"simulcast", "source", b"source", "stream", b"stream", "video_codec", b"video_codec", "video_encoding", b"video_encoding"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TrackPublishOptions = TrackPublishOptions +Global___TrackPublishOptions: _TypeAlias = TrackPublishOptions # noqa: Y015 -@typing.final -class IceServer(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class IceServer(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - URLS_FIELD_NUMBER: builtins.int - USERNAME_FIELD_NUMBER: builtins.int - PASSWORD_FIELD_NUMBER: builtins.int - username: builtins.str - password: builtins.str - @property - def urls(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + URLS_FIELD_NUMBER: _builtins.int + USERNAME_FIELD_NUMBER: _builtins.int + PASSWORD_FIELD_NUMBER: _builtins.int + username: _builtins.str + password: _builtins.str + @_builtins.property + def urls(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... def __init__( self, *, - urls: collections.abc.Iterable[builtins.str] | None = ..., - username: builtins.str | None = ..., - password: builtins.str | None = ..., + urls: _abc.Iterable[_builtins.str] | None = ..., + username: _builtins.str | None = ..., + password: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["password", b"password", "username", b"username"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["password", b"password", "urls", b"urls", "username", b"username"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["password", b"password", "username", b"username"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["password", b"password", "urls", b"urls", "username", b"username"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___IceServer = IceServer +Global___IceServer: _TypeAlias = IceServer # noqa: Y015 -@typing.final -class RtcConfig(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class RtcConfig(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ICE_TRANSPORT_TYPE_FIELD_NUMBER: builtins.int - CONTINUAL_GATHERING_POLICY_FIELD_NUMBER: builtins.int - ICE_SERVERS_FIELD_NUMBER: builtins.int - ice_transport_type: global___IceTransportType.ValueType - continual_gathering_policy: global___ContinualGatheringPolicy.ValueType - @property - def ice_servers(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___IceServer]: + ICE_TRANSPORT_TYPE_FIELD_NUMBER: _builtins.int + CONTINUAL_GATHERING_POLICY_FIELD_NUMBER: _builtins.int + ICE_SERVERS_FIELD_NUMBER: _builtins.int + ice_transport_type: Global___IceTransportType.ValueType + continual_gathering_policy: Global___ContinualGatheringPolicy.ValueType + @_builtins.property + def ice_servers(self) -> _containers.RepeatedCompositeFieldContainer[Global___IceServer]: """empty fallback to default""" def __init__( self, *, - ice_transport_type: global___IceTransportType.ValueType | None = ..., - continual_gathering_policy: global___ContinualGatheringPolicy.ValueType | None = ..., - ice_servers: collections.abc.Iterable[global___IceServer] | None = ..., + ice_transport_type: Global___IceTransportType.ValueType | None = ..., + continual_gathering_policy: Global___ContinualGatheringPolicy.ValueType | None = ..., + ice_servers: _abc.Iterable[Global___IceServer] | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["continual_gathering_policy", b"continual_gathering_policy", "ice_transport_type", b"ice_transport_type"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["continual_gathering_policy", b"continual_gathering_policy", "ice_servers", b"ice_servers", "ice_transport_type", b"ice_transport_type"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["continual_gathering_policy", b"continual_gathering_policy", "ice_transport_type", b"ice_transport_type"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["continual_gathering_policy", b"continual_gathering_policy", "ice_servers", b"ice_servers", "ice_transport_type", b"ice_transport_type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RtcConfig = RtcConfig +Global___RtcConfig: _TypeAlias = RtcConfig # noqa: Y015 -@typing.final -class RoomOptions(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class RoomOptions(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - AUTO_SUBSCRIBE_FIELD_NUMBER: builtins.int - ADAPTIVE_STREAM_FIELD_NUMBER: builtins.int - DYNACAST_FIELD_NUMBER: builtins.int - E2EE_FIELD_NUMBER: builtins.int - RTC_CONFIG_FIELD_NUMBER: builtins.int - JOIN_RETRIES_FIELD_NUMBER: builtins.int - ENCRYPTION_FIELD_NUMBER: builtins.int - SINGLE_PEER_CONNECTION_FIELD_NUMBER: builtins.int - CONNECT_TIMEOUT_MS_FIELD_NUMBER: builtins.int - auto_subscribe: builtins.bool - adaptive_stream: builtins.bool - dynacast: builtins.bool - join_retries: builtins.int - single_peer_connection: builtins.bool + AUTO_SUBSCRIBE_FIELD_NUMBER: _builtins.int + ADAPTIVE_STREAM_FIELD_NUMBER: _builtins.int + DYNACAST_FIELD_NUMBER: _builtins.int + E2EE_FIELD_NUMBER: _builtins.int + RTC_CONFIG_FIELD_NUMBER: _builtins.int + JOIN_RETRIES_FIELD_NUMBER: _builtins.int + ENCRYPTION_FIELD_NUMBER: _builtins.int + SINGLE_PEER_CONNECTION_FIELD_NUMBER: _builtins.int + CONNECT_TIMEOUT_MS_FIELD_NUMBER: _builtins.int + auto_subscribe: _builtins.bool + adaptive_stream: _builtins.bool + dynacast: _builtins.bool + join_retries: _builtins.int + single_peer_connection: _builtins.bool """use single peer connection for both publish/subscribe (default: false)""" - connect_timeout_ms: builtins.int + connect_timeout_ms: _builtins.int """timeout in milliseconds for each signal connection attempt (default: 5000)""" - @property - def e2ee(self) -> e2ee_pb2.E2eeOptions: ... - @property - def rtc_config(self) -> global___RtcConfig: + @_builtins.property + @_deprecated("""This field has been marked as deprecated using proto field options.""") + def e2ee(self) -> _e2ee_pb2.E2eeOptions: ... + @_builtins.property + def rtc_config(self) -> Global___RtcConfig: """allow to setup a custom RtcConfiguration""" - @property - def encryption(self) -> e2ee_pb2.E2eeOptions: ... + @_builtins.property + def encryption(self) -> _e2ee_pb2.E2eeOptions: ... def __init__( self, *, - auto_subscribe: builtins.bool | None = ..., - adaptive_stream: builtins.bool | None = ..., - dynacast: builtins.bool | None = ..., - e2ee: e2ee_pb2.E2eeOptions | None = ..., - rtc_config: global___RtcConfig | None = ..., - join_retries: builtins.int | None = ..., - encryption: e2ee_pb2.E2eeOptions | None = ..., - single_peer_connection: builtins.bool | None = ..., - connect_timeout_ms: builtins.int | None = ..., + auto_subscribe: _builtins.bool | None = ..., + adaptive_stream: _builtins.bool | None = ..., + dynacast: _builtins.bool | None = ..., + e2ee: _e2ee_pb2.E2eeOptions | None = ..., + rtc_config: Global___RtcConfig | None = ..., + join_retries: _builtins.int | None = ..., + encryption: _e2ee_pb2.E2eeOptions | None = ..., + single_peer_connection: _builtins.bool | None = ..., + connect_timeout_ms: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["adaptive_stream", b"adaptive_stream", "auto_subscribe", b"auto_subscribe", "connect_timeout_ms", b"connect_timeout_ms", "dynacast", b"dynacast", "e2ee", b"e2ee", "encryption", b"encryption", "join_retries", b"join_retries", "rtc_config", b"rtc_config", "single_peer_connection", b"single_peer_connection"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["adaptive_stream", b"adaptive_stream", "auto_subscribe", b"auto_subscribe", "connect_timeout_ms", b"connect_timeout_ms", "dynacast", b"dynacast", "e2ee", b"e2ee", "encryption", b"encryption", "join_retries", b"join_retries", "rtc_config", b"rtc_config", "single_peer_connection", b"single_peer_connection"]) -> None: ... - -global___RoomOptions = RoomOptions - -@typing.final -class TranscriptionSegment(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ID_FIELD_NUMBER: builtins.int - TEXT_FIELD_NUMBER: builtins.int - START_TIME_FIELD_NUMBER: builtins.int - END_TIME_FIELD_NUMBER: builtins.int - FINAL_FIELD_NUMBER: builtins.int - LANGUAGE_FIELD_NUMBER: builtins.int - id: builtins.str - text: builtins.str - start_time: builtins.int - end_time: builtins.int - final: builtins.bool - language: builtins.str - def __init__( - self, - *, - id: builtins.str | None = ..., - text: builtins.str | None = ..., - start_time: builtins.int | None = ..., - end_time: builtins.int | None = ..., - final: builtins.bool | None = ..., - language: builtins.str | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["end_time", b"end_time", "final", b"final", "id", b"id", "language", b"language", "start_time", b"start_time", "text", b"text"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["end_time", b"end_time", "final", b"final", "id", b"id", "language", b"language", "start_time", b"start_time", "text", b"text"]) -> None: ... - -global___TranscriptionSegment = TranscriptionSegment - -@typing.final -class BufferInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - DATA_PTR_FIELD_NUMBER: builtins.int - DATA_LEN_FIELD_NUMBER: builtins.int - data_ptr: builtins.int - data_len: builtins.int - def __init__( - self, - *, - data_ptr: builtins.int | None = ..., - data_len: builtins.int | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["data_len", b"data_len", "data_ptr", b"data_ptr"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["data_len", b"data_len", "data_ptr", b"data_ptr"]) -> None: ... - -global___BufferInfo = BufferInfo - -@typing.final -class OwnedBuffer(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - DATA_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def data(self) -> global___BufferInfo: ... - def __init__( - self, - *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - data: global___BufferInfo | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["data", b"data", "handle", b"handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["data", b"data", "handle", b"handle"]) -> None: ... - -global___OwnedBuffer = OwnedBuffer - -@typing.final -class RoomEvent(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ROOM_HANDLE_FIELD_NUMBER: builtins.int - PARTICIPANT_CONNECTED_FIELD_NUMBER: builtins.int - PARTICIPANT_DISCONNECTED_FIELD_NUMBER: builtins.int - LOCAL_TRACK_PUBLISHED_FIELD_NUMBER: builtins.int - LOCAL_TRACK_UNPUBLISHED_FIELD_NUMBER: builtins.int - LOCAL_TRACK_SUBSCRIBED_FIELD_NUMBER: builtins.int - TRACK_PUBLISHED_FIELD_NUMBER: builtins.int - TRACK_UNPUBLISHED_FIELD_NUMBER: builtins.int - TRACK_SUBSCRIBED_FIELD_NUMBER: builtins.int - TRACK_UNSUBSCRIBED_FIELD_NUMBER: builtins.int - TRACK_SUBSCRIPTION_FAILED_FIELD_NUMBER: builtins.int - TRACK_MUTED_FIELD_NUMBER: builtins.int - TRACK_UNMUTED_FIELD_NUMBER: builtins.int - ACTIVE_SPEAKERS_CHANGED_FIELD_NUMBER: builtins.int - ROOM_METADATA_CHANGED_FIELD_NUMBER: builtins.int - ROOM_SID_CHANGED_FIELD_NUMBER: builtins.int - PARTICIPANT_METADATA_CHANGED_FIELD_NUMBER: builtins.int - PARTICIPANT_NAME_CHANGED_FIELD_NUMBER: builtins.int - PARTICIPANT_ATTRIBUTES_CHANGED_FIELD_NUMBER: builtins.int - CONNECTION_QUALITY_CHANGED_FIELD_NUMBER: builtins.int - CONNECTION_STATE_CHANGED_FIELD_NUMBER: builtins.int - DISCONNECTED_FIELD_NUMBER: builtins.int - RECONNECTING_FIELD_NUMBER: builtins.int - RECONNECTED_FIELD_NUMBER: builtins.int - E2EE_STATE_CHANGED_FIELD_NUMBER: builtins.int - EOS_FIELD_NUMBER: builtins.int - DATA_PACKET_RECEIVED_FIELD_NUMBER: builtins.int - TRANSCRIPTION_RECEIVED_FIELD_NUMBER: builtins.int - CHAT_MESSAGE_FIELD_NUMBER: builtins.int - STREAM_HEADER_RECEIVED_FIELD_NUMBER: builtins.int - STREAM_CHUNK_RECEIVED_FIELD_NUMBER: builtins.int - STREAM_TRAILER_RECEIVED_FIELD_NUMBER: builtins.int - DATA_CHANNEL_LOW_THRESHOLD_CHANGED_FIELD_NUMBER: builtins.int - BYTE_STREAM_OPENED_FIELD_NUMBER: builtins.int - TEXT_STREAM_OPENED_FIELD_NUMBER: builtins.int - ROOM_UPDATED_FIELD_NUMBER: builtins.int - MOVED_FIELD_NUMBER: builtins.int - PARTICIPANTS_UPDATED_FIELD_NUMBER: builtins.int - PARTICIPANT_ENCRYPTION_STATUS_CHANGED_FIELD_NUMBER: builtins.int - PARTICIPANT_PERMISSION_CHANGED_FIELD_NUMBER: builtins.int - TOKEN_REFRESHED_FIELD_NUMBER: builtins.int - PARTICIPANT_ACTIVE_FIELD_NUMBER: builtins.int - DATA_TRACK_PUBLISHED_FIELD_NUMBER: builtins.int - DATA_TRACK_UNPUBLISHED_FIELD_NUMBER: builtins.int - room_handle: builtins.int - @property - def participant_connected(self) -> global___ParticipantConnected: ... - @property - def participant_disconnected(self) -> global___ParticipantDisconnected: ... - @property - def local_track_published(self) -> global___LocalTrackPublished: ... - @property - def local_track_unpublished(self) -> global___LocalTrackUnpublished: ... - @property - def local_track_subscribed(self) -> global___LocalTrackSubscribed: ... - @property - def track_published(self) -> global___TrackPublished: ... - @property - def track_unpublished(self) -> global___TrackUnpublished: ... - @property - def track_subscribed(self) -> global___TrackSubscribed: ... - @property - def track_unsubscribed(self) -> global___TrackUnsubscribed: ... - @property - def track_subscription_failed(self) -> global___TrackSubscriptionFailed: ... - @property - def track_muted(self) -> global___TrackMuted: ... - @property - def track_unmuted(self) -> global___TrackUnmuted: ... - @property - def active_speakers_changed(self) -> global___ActiveSpeakersChanged: ... - @property - def room_metadata_changed(self) -> global___RoomMetadataChanged: ... - @property - def room_sid_changed(self) -> global___RoomSidChanged: ... - @property - def participant_metadata_changed(self) -> global___ParticipantMetadataChanged: ... - @property - def participant_name_changed(self) -> global___ParticipantNameChanged: ... - @property - def participant_attributes_changed(self) -> global___ParticipantAttributesChanged: ... - @property - def connection_quality_changed(self) -> global___ConnectionQualityChanged: ... - @property - def connection_state_changed(self) -> global___ConnectionStateChanged: ... - @property - def disconnected(self) -> global___Disconnected: + _HasFieldArgType: _TypeAlias = _typing.Literal["adaptive_stream", b"adaptive_stream", "auto_subscribe", b"auto_subscribe", "connect_timeout_ms", b"connect_timeout_ms", "dynacast", b"dynacast", "e2ee", b"e2ee", "encryption", b"encryption", "join_retries", b"join_retries", "rtc_config", b"rtc_config", "single_peer_connection", b"single_peer_connection"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["adaptive_stream", b"adaptive_stream", "auto_subscribe", b"auto_subscribe", "connect_timeout_ms", b"connect_timeout_ms", "dynacast", b"dynacast", "e2ee", b"e2ee", "encryption", b"encryption", "join_retries", b"join_retries", "rtc_config", b"rtc_config", "single_peer_connection", b"single_peer_connection"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___RoomOptions: _TypeAlias = RoomOptions # noqa: Y015 + +@_typing.final +class TranscriptionSegment(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ID_FIELD_NUMBER: _builtins.int + TEXT_FIELD_NUMBER: _builtins.int + START_TIME_FIELD_NUMBER: _builtins.int + END_TIME_FIELD_NUMBER: _builtins.int + FINAL_FIELD_NUMBER: _builtins.int + LANGUAGE_FIELD_NUMBER: _builtins.int + id: _builtins.str + text: _builtins.str + start_time: _builtins.int + end_time: _builtins.int + final: _builtins.bool + language: _builtins.str + def __init__( + self, + *, + id: _builtins.str | None = ..., + text: _builtins.str | None = ..., + start_time: _builtins.int | None = ..., + end_time: _builtins.int | None = ..., + final: _builtins.bool | None = ..., + language: _builtins.str | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["end_time", b"end_time", "final", b"final", "id", b"id", "language", b"language", "start_time", b"start_time", "text", b"text"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["end_time", b"end_time", "final", b"final", "id", b"id", "language", b"language", "start_time", b"start_time", "text", b"text"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___TranscriptionSegment: _TypeAlias = TranscriptionSegment # noqa: Y015 + +@_typing.final +class BufferInfo(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + DATA_PTR_FIELD_NUMBER: _builtins.int + DATA_LEN_FIELD_NUMBER: _builtins.int + data_ptr: _builtins.int + data_len: _builtins.int + def __init__( + self, + *, + data_ptr: _builtins.int | None = ..., + data_len: _builtins.int | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["data_len", b"data_len", "data_ptr", b"data_ptr"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["data_len", b"data_len", "data_ptr", b"data_ptr"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___BufferInfo: _TypeAlias = BufferInfo # noqa: Y015 + +@_typing.final +class OwnedBuffer(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + HANDLE_FIELD_NUMBER: _builtins.int + DATA_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def data(self) -> Global___BufferInfo: ... + def __init__( + self, + *, + handle: _handle_pb2.FfiOwnedHandle | None = ..., + data: Global___BufferInfo | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["data", b"data", "handle", b"handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["data", b"data", "handle", b"handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___OwnedBuffer: _TypeAlias = OwnedBuffer # noqa: Y015 + +@_typing.final +class RoomEvent(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ROOM_HANDLE_FIELD_NUMBER: _builtins.int + PARTICIPANT_CONNECTED_FIELD_NUMBER: _builtins.int + PARTICIPANT_DISCONNECTED_FIELD_NUMBER: _builtins.int + LOCAL_TRACK_PUBLISHED_FIELD_NUMBER: _builtins.int + LOCAL_TRACK_UNPUBLISHED_FIELD_NUMBER: _builtins.int + LOCAL_TRACK_SUBSCRIBED_FIELD_NUMBER: _builtins.int + TRACK_PUBLISHED_FIELD_NUMBER: _builtins.int + TRACK_UNPUBLISHED_FIELD_NUMBER: _builtins.int + TRACK_SUBSCRIBED_FIELD_NUMBER: _builtins.int + TRACK_UNSUBSCRIBED_FIELD_NUMBER: _builtins.int + TRACK_SUBSCRIPTION_FAILED_FIELD_NUMBER: _builtins.int + TRACK_MUTED_FIELD_NUMBER: _builtins.int + TRACK_UNMUTED_FIELD_NUMBER: _builtins.int + ACTIVE_SPEAKERS_CHANGED_FIELD_NUMBER: _builtins.int + ROOM_METADATA_CHANGED_FIELD_NUMBER: _builtins.int + ROOM_SID_CHANGED_FIELD_NUMBER: _builtins.int + PARTICIPANT_METADATA_CHANGED_FIELD_NUMBER: _builtins.int + PARTICIPANT_NAME_CHANGED_FIELD_NUMBER: _builtins.int + PARTICIPANT_ATTRIBUTES_CHANGED_FIELD_NUMBER: _builtins.int + CONNECTION_QUALITY_CHANGED_FIELD_NUMBER: _builtins.int + CONNECTION_STATE_CHANGED_FIELD_NUMBER: _builtins.int + DISCONNECTED_FIELD_NUMBER: _builtins.int + RECONNECTING_FIELD_NUMBER: _builtins.int + RECONNECTED_FIELD_NUMBER: _builtins.int + E2EE_STATE_CHANGED_FIELD_NUMBER: _builtins.int + EOS_FIELD_NUMBER: _builtins.int + DATA_PACKET_RECEIVED_FIELD_NUMBER: _builtins.int + TRANSCRIPTION_RECEIVED_FIELD_NUMBER: _builtins.int + CHAT_MESSAGE_FIELD_NUMBER: _builtins.int + STREAM_HEADER_RECEIVED_FIELD_NUMBER: _builtins.int + STREAM_CHUNK_RECEIVED_FIELD_NUMBER: _builtins.int + STREAM_TRAILER_RECEIVED_FIELD_NUMBER: _builtins.int + DATA_CHANNEL_LOW_THRESHOLD_CHANGED_FIELD_NUMBER: _builtins.int + BYTE_STREAM_OPENED_FIELD_NUMBER: _builtins.int + TEXT_STREAM_OPENED_FIELD_NUMBER: _builtins.int + ROOM_UPDATED_FIELD_NUMBER: _builtins.int + MOVED_FIELD_NUMBER: _builtins.int + PARTICIPANTS_UPDATED_FIELD_NUMBER: _builtins.int + PARTICIPANT_ENCRYPTION_STATUS_CHANGED_FIELD_NUMBER: _builtins.int + PARTICIPANT_PERMISSION_CHANGED_FIELD_NUMBER: _builtins.int + TOKEN_REFRESHED_FIELD_NUMBER: _builtins.int + PARTICIPANT_ACTIVE_FIELD_NUMBER: _builtins.int + DATA_TRACK_PUBLISHED_FIELD_NUMBER: _builtins.int + DATA_TRACK_UNPUBLISHED_FIELD_NUMBER: _builtins.int + room_handle: _builtins.int + @_builtins.property + def participant_connected(self) -> Global___ParticipantConnected: ... + @_builtins.property + def participant_disconnected(self) -> Global___ParticipantDisconnected: ... + @_builtins.property + def local_track_published(self) -> Global___LocalTrackPublished: ... + @_builtins.property + def local_track_unpublished(self) -> Global___LocalTrackUnpublished: ... + @_builtins.property + def local_track_subscribed(self) -> Global___LocalTrackSubscribed: ... + @_builtins.property + def track_published(self) -> Global___TrackPublished: ... + @_builtins.property + def track_unpublished(self) -> Global___TrackUnpublished: ... + @_builtins.property + def track_subscribed(self) -> Global___TrackSubscribed: ... + @_builtins.property + def track_unsubscribed(self) -> Global___TrackUnsubscribed: ... + @_builtins.property + def track_subscription_failed(self) -> Global___TrackSubscriptionFailed: ... + @_builtins.property + def track_muted(self) -> Global___TrackMuted: ... + @_builtins.property + def track_unmuted(self) -> Global___TrackUnmuted: ... + @_builtins.property + def active_speakers_changed(self) -> Global___ActiveSpeakersChanged: ... + @_builtins.property + def room_metadata_changed(self) -> Global___RoomMetadataChanged: ... + @_builtins.property + def room_sid_changed(self) -> Global___RoomSidChanged: ... + @_builtins.property + def participant_metadata_changed(self) -> Global___ParticipantMetadataChanged: ... + @_builtins.property + def participant_name_changed(self) -> Global___ParticipantNameChanged: ... + @_builtins.property + def participant_attributes_changed(self) -> Global___ParticipantAttributesChanged: ... + @_builtins.property + def connection_quality_changed(self) -> Global___ConnectionQualityChanged: ... + @_builtins.property + def connection_state_changed(self) -> Global___ConnectionStateChanged: ... + @_builtins.property + def disconnected(self) -> Global___Disconnected: """Connected connected = 21;""" - @property - def reconnecting(self) -> global___Reconnecting: ... - @property - def reconnected(self) -> global___Reconnected: ... - @property - def e2ee_state_changed(self) -> global___E2eeStateChanged: ... - @property - def eos(self) -> global___RoomEOS: + @_builtins.property + def reconnecting(self) -> Global___Reconnecting: ... + @_builtins.property + def reconnected(self) -> Global___Reconnected: ... + @_builtins.property + def e2ee_state_changed(self) -> Global___E2eeStateChanged: ... + @_builtins.property + def eos(self) -> Global___RoomEOS: """The stream of room events has ended""" - @property - def data_packet_received(self) -> global___DataPacketReceived: ... - @property - def transcription_received(self) -> global___TranscriptionReceived: ... - @property - def chat_message(self) -> global___ChatMessageReceived: ... - @property - def stream_header_received(self) -> global___DataStreamHeaderReceived: + @_builtins.property + def data_packet_received(self) -> Global___DataPacketReceived: ... + @_builtins.property + def transcription_received(self) -> Global___TranscriptionReceived: ... + @_builtins.property + def chat_message(self) -> Global___ChatMessageReceived: ... + @_builtins.property + def stream_header_received(self) -> Global___DataStreamHeaderReceived: """Data stream (low level)""" - @property - def stream_chunk_received(self) -> global___DataStreamChunkReceived: ... - @property - def stream_trailer_received(self) -> global___DataStreamTrailerReceived: ... - @property - def data_channel_low_threshold_changed(self) -> global___DataChannelBufferedAmountLowThresholdChanged: ... - @property - def byte_stream_opened(self) -> global___ByteStreamOpened: + @_builtins.property + def stream_chunk_received(self) -> Global___DataStreamChunkReceived: ... + @_builtins.property + def stream_trailer_received(self) -> Global___DataStreamTrailerReceived: ... + @_builtins.property + def data_channel_low_threshold_changed(self) -> Global___DataChannelBufferedAmountLowThresholdChanged: ... + @_builtins.property + def byte_stream_opened(self) -> Global___ByteStreamOpened: """Data stream (high level)""" - @property - def text_stream_opened(self) -> global___TextStreamOpened: ... - @property - def room_updated(self) -> global___RoomInfo: + @_builtins.property + def text_stream_opened(self) -> Global___TextStreamOpened: ... + @_builtins.property + def room_updated(self) -> Global___RoomInfo: """Room info updated""" - @property - def moved(self) -> global___RoomInfo: + @_builtins.property + def moved(self) -> Global___RoomInfo: """Participant moved to new room""" - @property - def participants_updated(self) -> global___ParticipantsUpdated: + @_builtins.property + def participants_updated(self) -> Global___ParticipantsUpdated: """carry over all participant info updates, including sid""" - @property - def participant_encryption_status_changed(self) -> global___ParticipantEncryptionStatusChanged: ... - @property - def participant_permission_changed(self) -> global___ParticipantPermissionChanged: ... - @property - def token_refreshed(self) -> global___TokenRefreshed: ... - @property - def participant_active(self) -> global___ParticipantActive: ... - @property - def data_track_published(self) -> global___DataTrackPublished: ... - @property - def data_track_unpublished(self) -> global___DataTrackUnpublished: ... - def __init__( - self, - *, - room_handle: builtins.int | None = ..., - participant_connected: global___ParticipantConnected | None = ..., - participant_disconnected: global___ParticipantDisconnected | None = ..., - local_track_published: global___LocalTrackPublished | None = ..., - local_track_unpublished: global___LocalTrackUnpublished | None = ..., - local_track_subscribed: global___LocalTrackSubscribed | None = ..., - track_published: global___TrackPublished | None = ..., - track_unpublished: global___TrackUnpublished | None = ..., - track_subscribed: global___TrackSubscribed | None = ..., - track_unsubscribed: global___TrackUnsubscribed | None = ..., - track_subscription_failed: global___TrackSubscriptionFailed | None = ..., - track_muted: global___TrackMuted | None = ..., - track_unmuted: global___TrackUnmuted | None = ..., - active_speakers_changed: global___ActiveSpeakersChanged | None = ..., - room_metadata_changed: global___RoomMetadataChanged | None = ..., - room_sid_changed: global___RoomSidChanged | None = ..., - participant_metadata_changed: global___ParticipantMetadataChanged | None = ..., - participant_name_changed: global___ParticipantNameChanged | None = ..., - participant_attributes_changed: global___ParticipantAttributesChanged | None = ..., - connection_quality_changed: global___ConnectionQualityChanged | None = ..., - connection_state_changed: global___ConnectionStateChanged | None = ..., - disconnected: global___Disconnected | None = ..., - reconnecting: global___Reconnecting | None = ..., - reconnected: global___Reconnected | None = ..., - e2ee_state_changed: global___E2eeStateChanged | None = ..., - eos: global___RoomEOS | None = ..., - data_packet_received: global___DataPacketReceived | None = ..., - transcription_received: global___TranscriptionReceived | None = ..., - chat_message: global___ChatMessageReceived | None = ..., - stream_header_received: global___DataStreamHeaderReceived | None = ..., - stream_chunk_received: global___DataStreamChunkReceived | None = ..., - stream_trailer_received: global___DataStreamTrailerReceived | None = ..., - data_channel_low_threshold_changed: global___DataChannelBufferedAmountLowThresholdChanged | None = ..., - byte_stream_opened: global___ByteStreamOpened | None = ..., - text_stream_opened: global___TextStreamOpened | None = ..., - room_updated: global___RoomInfo | None = ..., - moved: global___RoomInfo | None = ..., - participants_updated: global___ParticipantsUpdated | None = ..., - participant_encryption_status_changed: global___ParticipantEncryptionStatusChanged | None = ..., - participant_permission_changed: global___ParticipantPermissionChanged | None = ..., - token_refreshed: global___TokenRefreshed | None = ..., - participant_active: global___ParticipantActive | None = ..., - data_track_published: global___DataTrackPublished | None = ..., - data_track_unpublished: global___DataTrackUnpublished | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["active_speakers_changed", b"active_speakers_changed", "byte_stream_opened", b"byte_stream_opened", "chat_message", b"chat_message", "connection_quality_changed", b"connection_quality_changed", "connection_state_changed", b"connection_state_changed", "data_channel_low_threshold_changed", b"data_channel_low_threshold_changed", "data_packet_received", b"data_packet_received", "data_track_published", b"data_track_published", "data_track_unpublished", b"data_track_unpublished", "disconnected", b"disconnected", "e2ee_state_changed", b"e2ee_state_changed", "eos", b"eos", "local_track_published", b"local_track_published", "local_track_subscribed", b"local_track_subscribed", "local_track_unpublished", b"local_track_unpublished", "message", b"message", "moved", b"moved", "participant_active", b"participant_active", "participant_attributes_changed", b"participant_attributes_changed", "participant_connected", b"participant_connected", "participant_disconnected", b"participant_disconnected", "participant_encryption_status_changed", b"participant_encryption_status_changed", "participant_metadata_changed", b"participant_metadata_changed", "participant_name_changed", b"participant_name_changed", "participant_permission_changed", b"participant_permission_changed", "participants_updated", b"participants_updated", "reconnected", b"reconnected", "reconnecting", b"reconnecting", "room_handle", b"room_handle", "room_metadata_changed", b"room_metadata_changed", "room_sid_changed", b"room_sid_changed", "room_updated", b"room_updated", "stream_chunk_received", b"stream_chunk_received", "stream_header_received", b"stream_header_received", "stream_trailer_received", b"stream_trailer_received", "text_stream_opened", b"text_stream_opened", "token_refreshed", b"token_refreshed", "track_muted", b"track_muted", "track_published", b"track_published", "track_subscribed", b"track_subscribed", "track_subscription_failed", b"track_subscription_failed", "track_unmuted", b"track_unmuted", "track_unpublished", b"track_unpublished", "track_unsubscribed", b"track_unsubscribed", "transcription_received", b"transcription_received"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["active_speakers_changed", b"active_speakers_changed", "byte_stream_opened", b"byte_stream_opened", "chat_message", b"chat_message", "connection_quality_changed", b"connection_quality_changed", "connection_state_changed", b"connection_state_changed", "data_channel_low_threshold_changed", b"data_channel_low_threshold_changed", "data_packet_received", b"data_packet_received", "data_track_published", b"data_track_published", "data_track_unpublished", b"data_track_unpublished", "disconnected", b"disconnected", "e2ee_state_changed", b"e2ee_state_changed", "eos", b"eos", "local_track_published", b"local_track_published", "local_track_subscribed", b"local_track_subscribed", "local_track_unpublished", b"local_track_unpublished", "message", b"message", "moved", b"moved", "participant_active", b"participant_active", "participant_attributes_changed", b"participant_attributes_changed", "participant_connected", b"participant_connected", "participant_disconnected", b"participant_disconnected", "participant_encryption_status_changed", b"participant_encryption_status_changed", "participant_metadata_changed", b"participant_metadata_changed", "participant_name_changed", b"participant_name_changed", "participant_permission_changed", b"participant_permission_changed", "participants_updated", b"participants_updated", "reconnected", b"reconnected", "reconnecting", b"reconnecting", "room_handle", b"room_handle", "room_metadata_changed", b"room_metadata_changed", "room_sid_changed", b"room_sid_changed", "room_updated", b"room_updated", "stream_chunk_received", b"stream_chunk_received", "stream_header_received", b"stream_header_received", "stream_trailer_received", b"stream_trailer_received", "text_stream_opened", b"text_stream_opened", "token_refreshed", b"token_refreshed", "track_muted", b"track_muted", "track_published", b"track_published", "track_subscribed", b"track_subscribed", "track_subscription_failed", b"track_subscription_failed", "track_unmuted", b"track_unmuted", "track_unpublished", b"track_unpublished", "track_unsubscribed", b"track_unsubscribed", "transcription_received", b"transcription_received"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["participant_connected", "participant_disconnected", "local_track_published", "local_track_unpublished", "local_track_subscribed", "track_published", "track_unpublished", "track_subscribed", "track_unsubscribed", "track_subscription_failed", "track_muted", "track_unmuted", "active_speakers_changed", "room_metadata_changed", "room_sid_changed", "participant_metadata_changed", "participant_name_changed", "participant_attributes_changed", "connection_quality_changed", "connection_state_changed", "disconnected", "reconnecting", "reconnected", "e2ee_state_changed", "eos", "data_packet_received", "transcription_received", "chat_message", "stream_header_received", "stream_chunk_received", "stream_trailer_received", "data_channel_low_threshold_changed", "byte_stream_opened", "text_stream_opened", "room_updated", "moved", "participants_updated", "participant_encryption_status_changed", "participant_permission_changed", "token_refreshed", "participant_active", "data_track_published", "data_track_unpublished"] | None: ... - -global___RoomEvent = RoomEvent - -@typing.final -class RoomInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - SID_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - LOSSY_DC_BUFFERED_AMOUNT_LOW_THRESHOLD_FIELD_NUMBER: builtins.int - RELIABLE_DC_BUFFERED_AMOUNT_LOW_THRESHOLD_FIELD_NUMBER: builtins.int - EMPTY_TIMEOUT_FIELD_NUMBER: builtins.int - DEPARTURE_TIMEOUT_FIELD_NUMBER: builtins.int - MAX_PARTICIPANTS_FIELD_NUMBER: builtins.int - CREATION_TIME_FIELD_NUMBER: builtins.int - NUM_PARTICIPANTS_FIELD_NUMBER: builtins.int - NUM_PUBLISHERS_FIELD_NUMBER: builtins.int - ACTIVE_RECORDING_FIELD_NUMBER: builtins.int - sid: builtins.str - name: builtins.str - metadata: builtins.str - lossy_dc_buffered_amount_low_threshold: builtins.int - reliable_dc_buffered_amount_low_threshold: builtins.int - empty_timeout: builtins.int - departure_timeout: builtins.int - max_participants: builtins.int - creation_time: builtins.int - num_participants: builtins.int - num_publishers: builtins.int - active_recording: builtins.bool - def __init__( - self, - *, - sid: builtins.str | None = ..., - name: builtins.str | None = ..., - metadata: builtins.str | None = ..., - lossy_dc_buffered_amount_low_threshold: builtins.int | None = ..., - reliable_dc_buffered_amount_low_threshold: builtins.int | None = ..., - empty_timeout: builtins.int | None = ..., - departure_timeout: builtins.int | None = ..., - max_participants: builtins.int | None = ..., - creation_time: builtins.int | None = ..., - num_participants: builtins.int | None = ..., - num_publishers: builtins.int | None = ..., - active_recording: builtins.bool | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["active_recording", b"active_recording", "creation_time", b"creation_time", "departure_timeout", b"departure_timeout", "empty_timeout", b"empty_timeout", "lossy_dc_buffered_amount_low_threshold", b"lossy_dc_buffered_amount_low_threshold", "max_participants", b"max_participants", "metadata", b"metadata", "name", b"name", "num_participants", b"num_participants", "num_publishers", b"num_publishers", "reliable_dc_buffered_amount_low_threshold", b"reliable_dc_buffered_amount_low_threshold", "sid", b"sid"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["active_recording", b"active_recording", "creation_time", b"creation_time", "departure_timeout", b"departure_timeout", "empty_timeout", b"empty_timeout", "lossy_dc_buffered_amount_low_threshold", b"lossy_dc_buffered_amount_low_threshold", "max_participants", b"max_participants", "metadata", b"metadata", "name", b"name", "num_participants", b"num_participants", "num_publishers", b"num_publishers", "reliable_dc_buffered_amount_low_threshold", b"reliable_dc_buffered_amount_low_threshold", "sid", b"sid"]) -> None: ... + @_builtins.property + def participant_encryption_status_changed(self) -> Global___ParticipantEncryptionStatusChanged: ... + @_builtins.property + def participant_permission_changed(self) -> Global___ParticipantPermissionChanged: ... + @_builtins.property + def token_refreshed(self) -> Global___TokenRefreshed: ... + @_builtins.property + def participant_active(self) -> Global___ParticipantActive: ... + @_builtins.property + def data_track_published(self) -> Global___DataTrackPublished: ... + @_builtins.property + def data_track_unpublished(self) -> Global___DataTrackUnpublished: ... + def __init__( + self, + *, + room_handle: _builtins.int | None = ..., + participant_connected: Global___ParticipantConnected | None = ..., + participant_disconnected: Global___ParticipantDisconnected | None = ..., + local_track_published: Global___LocalTrackPublished | None = ..., + local_track_unpublished: Global___LocalTrackUnpublished | None = ..., + local_track_subscribed: Global___LocalTrackSubscribed | None = ..., + track_published: Global___TrackPublished | None = ..., + track_unpublished: Global___TrackUnpublished | None = ..., + track_subscribed: Global___TrackSubscribed | None = ..., + track_unsubscribed: Global___TrackUnsubscribed | None = ..., + track_subscription_failed: Global___TrackSubscriptionFailed | None = ..., + track_muted: Global___TrackMuted | None = ..., + track_unmuted: Global___TrackUnmuted | None = ..., + active_speakers_changed: Global___ActiveSpeakersChanged | None = ..., + room_metadata_changed: Global___RoomMetadataChanged | None = ..., + room_sid_changed: Global___RoomSidChanged | None = ..., + participant_metadata_changed: Global___ParticipantMetadataChanged | None = ..., + participant_name_changed: Global___ParticipantNameChanged | None = ..., + participant_attributes_changed: Global___ParticipantAttributesChanged | None = ..., + connection_quality_changed: Global___ConnectionQualityChanged | None = ..., + connection_state_changed: Global___ConnectionStateChanged | None = ..., + disconnected: Global___Disconnected | None = ..., + reconnecting: Global___Reconnecting | None = ..., + reconnected: Global___Reconnected | None = ..., + e2ee_state_changed: Global___E2eeStateChanged | None = ..., + eos: Global___RoomEOS | None = ..., + data_packet_received: Global___DataPacketReceived | None = ..., + transcription_received: Global___TranscriptionReceived | None = ..., + chat_message: Global___ChatMessageReceived | None = ..., + stream_header_received: Global___DataStreamHeaderReceived | None = ..., + stream_chunk_received: Global___DataStreamChunkReceived | None = ..., + stream_trailer_received: Global___DataStreamTrailerReceived | None = ..., + data_channel_low_threshold_changed: Global___DataChannelBufferedAmountLowThresholdChanged | None = ..., + byte_stream_opened: Global___ByteStreamOpened | None = ..., + text_stream_opened: Global___TextStreamOpened | None = ..., + room_updated: Global___RoomInfo | None = ..., + moved: Global___RoomInfo | None = ..., + participants_updated: Global___ParticipantsUpdated | None = ..., + participant_encryption_status_changed: Global___ParticipantEncryptionStatusChanged | None = ..., + participant_permission_changed: Global___ParticipantPermissionChanged | None = ..., + token_refreshed: Global___TokenRefreshed | None = ..., + participant_active: Global___ParticipantActive | None = ..., + data_track_published: Global___DataTrackPublished | None = ..., + data_track_unpublished: Global___DataTrackUnpublished | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["active_speakers_changed", b"active_speakers_changed", "byte_stream_opened", b"byte_stream_opened", "chat_message", b"chat_message", "connection_quality_changed", b"connection_quality_changed", "connection_state_changed", b"connection_state_changed", "data_channel_low_threshold_changed", b"data_channel_low_threshold_changed", "data_packet_received", b"data_packet_received", "data_track_published", b"data_track_published", "data_track_unpublished", b"data_track_unpublished", "disconnected", b"disconnected", "e2ee_state_changed", b"e2ee_state_changed", "eos", b"eos", "local_track_published", b"local_track_published", "local_track_subscribed", b"local_track_subscribed", "local_track_unpublished", b"local_track_unpublished", "message", b"message", "moved", b"moved", "participant_active", b"participant_active", "participant_attributes_changed", b"participant_attributes_changed", "participant_connected", b"participant_connected", "participant_disconnected", b"participant_disconnected", "participant_encryption_status_changed", b"participant_encryption_status_changed", "participant_metadata_changed", b"participant_metadata_changed", "participant_name_changed", b"participant_name_changed", "participant_permission_changed", b"participant_permission_changed", "participants_updated", b"participants_updated", "reconnected", b"reconnected", "reconnecting", b"reconnecting", "room_handle", b"room_handle", "room_metadata_changed", b"room_metadata_changed", "room_sid_changed", b"room_sid_changed", "room_updated", b"room_updated", "stream_chunk_received", b"stream_chunk_received", "stream_header_received", b"stream_header_received", "stream_trailer_received", b"stream_trailer_received", "text_stream_opened", b"text_stream_opened", "token_refreshed", b"token_refreshed", "track_muted", b"track_muted", "track_published", b"track_published", "track_subscribed", b"track_subscribed", "track_subscription_failed", b"track_subscription_failed", "track_unmuted", b"track_unmuted", "track_unpublished", b"track_unpublished", "track_unsubscribed", b"track_unsubscribed", "transcription_received", b"transcription_received"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["active_speakers_changed", b"active_speakers_changed", "byte_stream_opened", b"byte_stream_opened", "chat_message", b"chat_message", "connection_quality_changed", b"connection_quality_changed", "connection_state_changed", b"connection_state_changed", "data_channel_low_threshold_changed", b"data_channel_low_threshold_changed", "data_packet_received", b"data_packet_received", "data_track_published", b"data_track_published", "data_track_unpublished", b"data_track_unpublished", "disconnected", b"disconnected", "e2ee_state_changed", b"e2ee_state_changed", "eos", b"eos", "local_track_published", b"local_track_published", "local_track_subscribed", b"local_track_subscribed", "local_track_unpublished", b"local_track_unpublished", "message", b"message", "moved", b"moved", "participant_active", b"participant_active", "participant_attributes_changed", b"participant_attributes_changed", "participant_connected", b"participant_connected", "participant_disconnected", b"participant_disconnected", "participant_encryption_status_changed", b"participant_encryption_status_changed", "participant_metadata_changed", b"participant_metadata_changed", "participant_name_changed", b"participant_name_changed", "participant_permission_changed", b"participant_permission_changed", "participants_updated", b"participants_updated", "reconnected", b"reconnected", "reconnecting", b"reconnecting", "room_handle", b"room_handle", "room_metadata_changed", b"room_metadata_changed", "room_sid_changed", b"room_sid_changed", "room_updated", b"room_updated", "stream_chunk_received", b"stream_chunk_received", "stream_header_received", b"stream_header_received", "stream_trailer_received", b"stream_trailer_received", "text_stream_opened", b"text_stream_opened", "token_refreshed", b"token_refreshed", "track_muted", b"track_muted", "track_published", b"track_published", "track_subscribed", b"track_subscribed", "track_subscription_failed", b"track_subscription_failed", "track_unmuted", b"track_unmuted", "track_unpublished", b"track_unpublished", "track_unsubscribed", b"track_unsubscribed", "transcription_received", b"transcription_received"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["participant_connected", "participant_disconnected", "local_track_published", "local_track_unpublished", "local_track_subscribed", "track_published", "track_unpublished", "track_subscribed", "track_unsubscribed", "track_subscription_failed", "track_muted", "track_unmuted", "active_speakers_changed", "room_metadata_changed", "room_sid_changed", "participant_metadata_changed", "participant_name_changed", "participant_attributes_changed", "connection_quality_changed", "connection_state_changed", "disconnected", "reconnecting", "reconnected", "e2ee_state_changed", "eos", "data_packet_received", "transcription_received", "chat_message", "stream_header_received", "stream_chunk_received", "stream_trailer_received", "data_channel_low_threshold_changed", "byte_stream_opened", "text_stream_opened", "room_updated", "moved", "participants_updated", "participant_encryption_status_changed", "participant_permission_changed", "token_refreshed", "participant_active", "data_track_published", "data_track_unpublished"] # noqa: Y015 + _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... + +Global___RoomEvent: _TypeAlias = RoomEvent # noqa: Y015 + +@_typing.final +class RoomInfo(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + SID_FIELD_NUMBER: _builtins.int + NAME_FIELD_NUMBER: _builtins.int + METADATA_FIELD_NUMBER: _builtins.int + LOSSY_DC_BUFFERED_AMOUNT_LOW_THRESHOLD_FIELD_NUMBER: _builtins.int + RELIABLE_DC_BUFFERED_AMOUNT_LOW_THRESHOLD_FIELD_NUMBER: _builtins.int + EMPTY_TIMEOUT_FIELD_NUMBER: _builtins.int + DEPARTURE_TIMEOUT_FIELD_NUMBER: _builtins.int + MAX_PARTICIPANTS_FIELD_NUMBER: _builtins.int + CREATION_TIME_FIELD_NUMBER: _builtins.int + NUM_PARTICIPANTS_FIELD_NUMBER: _builtins.int + NUM_PUBLISHERS_FIELD_NUMBER: _builtins.int + ACTIVE_RECORDING_FIELD_NUMBER: _builtins.int + sid: _builtins.str + name: _builtins.str + metadata: _builtins.str + lossy_dc_buffered_amount_low_threshold: _builtins.int + reliable_dc_buffered_amount_low_threshold: _builtins.int + empty_timeout: _builtins.int + departure_timeout: _builtins.int + max_participants: _builtins.int + creation_time: _builtins.int + num_participants: _builtins.int + num_publishers: _builtins.int + active_recording: _builtins.bool + def __init__( + self, + *, + sid: _builtins.str | None = ..., + name: _builtins.str | None = ..., + metadata: _builtins.str | None = ..., + lossy_dc_buffered_amount_low_threshold: _builtins.int | None = ..., + reliable_dc_buffered_amount_low_threshold: _builtins.int | None = ..., + empty_timeout: _builtins.int | None = ..., + departure_timeout: _builtins.int | None = ..., + max_participants: _builtins.int | None = ..., + creation_time: _builtins.int | None = ..., + num_participants: _builtins.int | None = ..., + num_publishers: _builtins.int | None = ..., + active_recording: _builtins.bool | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["active_recording", b"active_recording", "creation_time", b"creation_time", "departure_timeout", b"departure_timeout", "empty_timeout", b"empty_timeout", "lossy_dc_buffered_amount_low_threshold", b"lossy_dc_buffered_amount_low_threshold", "max_participants", b"max_participants", "metadata", b"metadata", "name", b"name", "num_participants", b"num_participants", "num_publishers", b"num_publishers", "reliable_dc_buffered_amount_low_threshold", b"reliable_dc_buffered_amount_low_threshold", "sid", b"sid"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["active_recording", b"active_recording", "creation_time", b"creation_time", "departure_timeout", b"departure_timeout", "empty_timeout", b"empty_timeout", "lossy_dc_buffered_amount_low_threshold", b"lossy_dc_buffered_amount_low_threshold", "max_participants", b"max_participants", "metadata", b"metadata", "name", b"name", "num_participants", b"num_participants", "num_publishers", b"num_publishers", "reliable_dc_buffered_amount_low_threshold", b"reliable_dc_buffered_amount_low_threshold", "sid", b"sid"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___RoomInfo: _TypeAlias = RoomInfo # noqa: Y015 + +@_typing.final +class OwnedRoom(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___RoomInfo: ... + def __init__( + self, + *, + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___RoomInfo | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___OwnedRoom: _TypeAlias = OwnedRoom # noqa: Y015 + +@_typing.final +class ParticipantsUpdated(_message.Message): + DESCRIPTOR: _descriptor.Descriptor -global___RoomInfo = RoomInfo - -@typing.final -class OwnedRoom(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___RoomInfo: ... + PARTICIPANTS_FIELD_NUMBER: _builtins.int + @_builtins.property + def participants(self) -> _containers.RepeatedCompositeFieldContainer[_participant_pb2.ParticipantInfo]: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___RoomInfo | None = ..., + participants: _abc.Iterable[_participant_pb2.ParticipantInfo] | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participants", b"participants"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___OwnedRoom = OwnedRoom +Global___ParticipantsUpdated: _TypeAlias = ParticipantsUpdated # noqa: Y015 -@typing.final -class ParticipantsUpdated(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ParticipantConnected(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANTS_FIELD_NUMBER: builtins.int - @property - def participants(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[participant_pb2.ParticipantInfo]: ... + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def info(self) -> _participant_pb2.OwnedParticipant: ... def __init__( self, *, - participants: collections.abc.Iterable[participant_pb2.ParticipantInfo] | None = ..., + info: _participant_pb2.OwnedParticipant | None = ..., ) -> None: ... - def ClearField(self, field_name: typing.Literal["participants", b"participants"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ParticipantsUpdated = ParticipantsUpdated +Global___ParticipantConnected: _TypeAlias = ParticipantConnected # noqa: Y015 -@typing.final -class ParticipantConnected(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ParticipantActive(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - INFO_FIELD_NUMBER: builtins.int - @property - def info(self) -> participant_pb2.OwnedParticipant: ... + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str def __init__( self, *, - info: participant_pb2.OwnedParticipant | None = ..., + participant_identity: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["info", b"info"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ParticipantConnected = ParticipantConnected +Global___ParticipantActive: _TypeAlias = ParticipantActive # noqa: Y015 -@typing.final -class ParticipantActive(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ParticipantDisconnected(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - participant_identity: builtins.str + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + DISCONNECT_REASON_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + disconnect_reason: _participant_pb2.DisconnectReason.ValueType def __init__( self, *, - participant_identity: builtins.str | None = ..., + participant_identity: _builtins.str | None = ..., + disconnect_reason: _participant_pb2.DisconnectReason.ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["disconnect_reason", b"disconnect_reason", "participant_identity", b"participant_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["disconnect_reason", b"disconnect_reason", "participant_identity", b"participant_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ParticipantActive = ParticipantActive +Global___ParticipantDisconnected: _TypeAlias = ParticipantDisconnected # noqa: Y015 -@typing.final -class ParticipantDisconnected(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class LocalTrackPublished(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - DISCONNECT_REASON_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - disconnect_reason: participant_pb2.DisconnectReason.ValueType - def __init__( - self, - *, - participant_identity: builtins.str | None = ..., - disconnect_reason: participant_pb2.DisconnectReason.ValueType | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["disconnect_reason", b"disconnect_reason", "participant_identity", b"participant_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["disconnect_reason", b"disconnect_reason", "participant_identity", b"participant_identity"]) -> None: ... - -global___ParticipantDisconnected = ParticipantDisconnected - -@typing.final -class LocalTrackPublished(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TRACK_SID_FIELD_NUMBER: builtins.int - track_sid: builtins.str + TRACK_SID_FIELD_NUMBER: _builtins.int + track_sid: _builtins.str """The TrackPublicationInfo comes from the PublishTrack response and the FfiClient musts wait for it before firing this event """ def __init__( self, *, - track_sid: builtins.str | None = ..., + track_sid: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["track_sid", b"track_sid"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["track_sid", b"track_sid"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["track_sid", b"track_sid"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["track_sid", b"track_sid"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___LocalTrackPublished = LocalTrackPublished +Global___LocalTrackPublished: _TypeAlias = LocalTrackPublished # noqa: Y015 -@typing.final -class LocalTrackUnpublished(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class LocalTrackUnpublished(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PUBLICATION_SID_FIELD_NUMBER: builtins.int - publication_sid: builtins.str + PUBLICATION_SID_FIELD_NUMBER: _builtins.int + publication_sid: _builtins.str def __init__( self, *, - publication_sid: builtins.str | None = ..., + publication_sid: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["publication_sid", b"publication_sid"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["publication_sid", b"publication_sid"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["publication_sid", b"publication_sid"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["publication_sid", b"publication_sid"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___LocalTrackUnpublished = LocalTrackUnpublished +Global___LocalTrackUnpublished: _TypeAlias = LocalTrackUnpublished # noqa: Y015 -@typing.final -class LocalTrackSubscribed(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class LocalTrackSubscribed(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - TRACK_SID_FIELD_NUMBER: builtins.int - track_sid: builtins.str + TRACK_SID_FIELD_NUMBER: _builtins.int + track_sid: _builtins.str def __init__( self, *, - track_sid: builtins.str | None = ..., + track_sid: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["track_sid", b"track_sid"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["track_sid", b"track_sid"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["track_sid", b"track_sid"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["track_sid", b"track_sid"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___LocalTrackSubscribed = LocalTrackSubscribed +Global___LocalTrackSubscribed: _TypeAlias = LocalTrackSubscribed # noqa: Y015 -@typing.final -class TrackPublished(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class TrackPublished(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - PUBLICATION_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - @property - def publication(self) -> track_pb2.OwnedTrackPublication: ... + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + PUBLICATION_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + @_builtins.property + def publication(self) -> _track_pb2.OwnedTrackPublication: ... def __init__( self, *, - participant_identity: builtins.str | None = ..., - publication: track_pb2.OwnedTrackPublication | None = ..., + participant_identity: _builtins.str | None = ..., + publication: _track_pb2.OwnedTrackPublication | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "publication", b"publication"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "publication", b"publication"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "publication", b"publication"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "publication", b"publication"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TrackPublished = TrackPublished +Global___TrackPublished: _TypeAlias = TrackPublished # noqa: Y015 -@typing.final -class TrackUnpublished(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class TrackUnpublished(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - PUBLICATION_SID_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - publication_sid: builtins.str + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + PUBLICATION_SID_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + publication_sid: _builtins.str def __init__( self, *, - participant_identity: builtins.str | None = ..., - publication_sid: builtins.str | None = ..., + participant_identity: _builtins.str | None = ..., + publication_sid: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "publication_sid", b"publication_sid"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "publication_sid", b"publication_sid"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "publication_sid", b"publication_sid"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "publication_sid", b"publication_sid"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TrackUnpublished = TrackUnpublished +Global___TrackUnpublished: _TypeAlias = TrackUnpublished # noqa: Y015 -@typing.final -class TrackSubscribed(google.protobuf.message.Message): +@_typing.final +class TrackSubscribed(_message.Message): """Publication isn't needed for subscription events on the FFI The FFI will retrieve the publication using the Track sid """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - TRACK_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - @property - def track(self) -> track_pb2.OwnedTrack: ... + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + TRACK_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + @_builtins.property + def track(self) -> _track_pb2.OwnedTrack: ... def __init__( self, *, - participant_identity: builtins.str | None = ..., - track: track_pb2.OwnedTrack | None = ..., + participant_identity: _builtins.str | None = ..., + track: _track_pb2.OwnedTrack | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "track", b"track"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "track", b"track"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "track", b"track"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "track", b"track"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TrackSubscribed = TrackSubscribed +Global___TrackSubscribed: _TypeAlias = TrackSubscribed # noqa: Y015 -@typing.final -class TrackUnsubscribed(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class TrackUnsubscribed(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - TRACK_SID_FIELD_NUMBER: builtins.int - participant_identity: builtins.str + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + TRACK_SID_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str """The FFI language can dispose/remove the VideoSink here""" - track_sid: builtins.str + track_sid: _builtins.str def __init__( self, *, - participant_identity: builtins.str | None = ..., - track_sid: builtins.str | None = ..., + participant_identity: _builtins.str | None = ..., + track_sid: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TrackUnsubscribed = TrackUnsubscribed +Global___TrackUnsubscribed: _TypeAlias = TrackUnsubscribed # noqa: Y015 -@typing.final -class TrackSubscriptionFailed(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class TrackSubscriptionFailed(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - TRACK_SID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - track_sid: builtins.str - error: builtins.str + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + TRACK_SID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + track_sid: _builtins.str + error: _builtins.str def __init__( self, *, - participant_identity: builtins.str | None = ..., - track_sid: builtins.str | None = ..., - error: builtins.str | None = ..., + participant_identity: _builtins.str | None = ..., + track_sid: _builtins.str | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["error", b"error", "participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["error", b"error", "participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TrackSubscriptionFailed = TrackSubscriptionFailed +Global___TrackSubscriptionFailed: _TypeAlias = TrackSubscriptionFailed # noqa: Y015 -@typing.final -class TrackMuted(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class TrackMuted(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - TRACK_SID_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - track_sid: builtins.str + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + TRACK_SID_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + track_sid: _builtins.str def __init__( self, *, - participant_identity: builtins.str | None = ..., - track_sid: builtins.str | None = ..., + participant_identity: _builtins.str | None = ..., + track_sid: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TrackMuted = TrackMuted +Global___TrackMuted: _TypeAlias = TrackMuted # noqa: Y015 -@typing.final -class TrackUnmuted(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class TrackUnmuted(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - TRACK_SID_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - track_sid: builtins.str + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + TRACK_SID_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + track_sid: _builtins.str def __init__( self, *, - participant_identity: builtins.str | None = ..., - track_sid: builtins.str | None = ..., + participant_identity: _builtins.str | None = ..., + track_sid: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TrackUnmuted = TrackUnmuted +Global___TrackUnmuted: _TypeAlias = TrackUnmuted # noqa: Y015 -@typing.final -class E2eeStateChanged(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class E2eeStateChanged(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - STATE_FIELD_NUMBER: builtins.int - participant_identity: builtins.str + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + STATE_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str """Using sid instead of identity for ffi communication""" - state: e2ee_pb2.EncryptionState.ValueType + state: _e2ee_pb2.EncryptionState.ValueType def __init__( self, *, - participant_identity: builtins.str | None = ..., - state: e2ee_pb2.EncryptionState.ValueType | None = ..., + participant_identity: _builtins.str | None = ..., + state: _e2ee_pb2.EncryptionState.ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "state", b"state"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "state", b"state"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "state", b"state"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "state", b"state"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___E2eeStateChanged = E2eeStateChanged +Global___E2eeStateChanged: _TypeAlias = E2eeStateChanged # noqa: Y015 -@typing.final -class ActiveSpeakersChanged(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ActiveSpeakersChanged(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITIES_FIELD_NUMBER: builtins.int - @property - def participant_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + PARTICIPANT_IDENTITIES_FIELD_NUMBER: _builtins.int + @_builtins.property + def participant_identities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... def __init__( self, *, - participant_identities: collections.abc.Iterable[builtins.str] | None = ..., + participant_identities: _abc.Iterable[_builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing.Literal["participant_identities", b"participant_identities"]) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identities", b"participant_identities"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ActiveSpeakersChanged = ActiveSpeakersChanged +Global___ActiveSpeakersChanged: _TypeAlias = ActiveSpeakersChanged # noqa: Y015 -@typing.final -class RoomMetadataChanged(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class RoomMetadataChanged(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - METADATA_FIELD_NUMBER: builtins.int - metadata: builtins.str + METADATA_FIELD_NUMBER: _builtins.int + metadata: _builtins.str def __init__( self, *, - metadata: builtins.str | None = ..., + metadata: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["metadata", b"metadata"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["metadata", b"metadata"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["metadata", b"metadata"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["metadata", b"metadata"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RoomMetadataChanged = RoomMetadataChanged +Global___RoomMetadataChanged: _TypeAlias = RoomMetadataChanged # noqa: Y015 -@typing.final -class RoomSidChanged(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class RoomSidChanged(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - SID_FIELD_NUMBER: builtins.int - sid: builtins.str + SID_FIELD_NUMBER: _builtins.int + sid: _builtins.str def __init__( self, *, - sid: builtins.str | None = ..., + sid: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["sid", b"sid"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["sid", b"sid"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["sid", b"sid"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["sid", b"sid"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RoomSidChanged = RoomSidChanged +Global___RoomSidChanged: _TypeAlias = RoomSidChanged # noqa: Y015 -@typing.final -class ParticipantMetadataChanged(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ParticipantMetadataChanged(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - metadata: builtins.str + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + METADATA_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + metadata: _builtins.str def __init__( self, *, - participant_identity: builtins.str | None = ..., - metadata: builtins.str | None = ..., + participant_identity: _builtins.str | None = ..., + metadata: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["metadata", b"metadata", "participant_identity", b"participant_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["metadata", b"metadata", "participant_identity", b"participant_identity"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["metadata", b"metadata", "participant_identity", b"participant_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["metadata", b"metadata", "participant_identity", b"participant_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ParticipantMetadataChanged = ParticipantMetadataChanged +Global___ParticipantMetadataChanged: _TypeAlias = ParticipantMetadataChanged # noqa: Y015 -@typing.final -class ParticipantAttributesChanged(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ParticipantAttributesChanged(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - ATTRIBUTES_FIELD_NUMBER: builtins.int - CHANGED_ATTRIBUTES_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - @property - def attributes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AttributesEntry]: ... - @property - def changed_attributes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AttributesEntry]: ... + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + ATTRIBUTES_FIELD_NUMBER: _builtins.int + CHANGED_ATTRIBUTES_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + @_builtins.property + def attributes(self) -> _containers.RepeatedCompositeFieldContainer[Global___AttributesEntry]: ... + @_builtins.property + def changed_attributes(self) -> _containers.RepeatedCompositeFieldContainer[Global___AttributesEntry]: ... def __init__( self, *, - participant_identity: builtins.str | None = ..., - attributes: collections.abc.Iterable[global___AttributesEntry] | None = ..., - changed_attributes: collections.abc.Iterable[global___AttributesEntry] | None = ..., + participant_identity: _builtins.str | None = ..., + attributes: _abc.Iterable[Global___AttributesEntry] | None = ..., + changed_attributes: _abc.Iterable[Global___AttributesEntry] | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["attributes", b"attributes", "changed_attributes", b"changed_attributes", "participant_identity", b"participant_identity"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["attributes", b"attributes", "changed_attributes", b"changed_attributes", "participant_identity", b"participant_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ParticipantAttributesChanged = ParticipantAttributesChanged +Global___ParticipantAttributesChanged: _TypeAlias = ParticipantAttributesChanged # noqa: Y015 -@typing.final -class ParticipantEncryptionStatusChanged(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ParticipantEncryptionStatusChanged(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - IS_ENCRYPTED_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - is_encrypted: builtins.bool + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + IS_ENCRYPTED_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + is_encrypted: _builtins.bool def __init__( self, *, - participant_identity: builtins.str | None = ..., - is_encrypted: builtins.bool | None = ..., + participant_identity: _builtins.str | None = ..., + is_encrypted: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["is_encrypted", b"is_encrypted", "participant_identity", b"participant_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["is_encrypted", b"is_encrypted", "participant_identity", b"participant_identity"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["is_encrypted", b"is_encrypted", "participant_identity", b"participant_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["is_encrypted", b"is_encrypted", "participant_identity", b"participant_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ParticipantEncryptionStatusChanged = ParticipantEncryptionStatusChanged +Global___ParticipantEncryptionStatusChanged: _TypeAlias = ParticipantEncryptionStatusChanged # noqa: Y015 -@typing.final -class ParticipantNameChanged(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ParticipantNameChanged(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - name: builtins.str + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + NAME_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + name: _builtins.str def __init__( self, *, - participant_identity: builtins.str | None = ..., - name: builtins.str | None = ..., + participant_identity: _builtins.str | None = ..., + name: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["name", b"name", "participant_identity", b"participant_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["name", b"name", "participant_identity", b"participant_identity"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "participant_identity", b"participant_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "participant_identity", b"participant_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ParticipantNameChanged = ParticipantNameChanged +Global___ParticipantNameChanged: _TypeAlias = ParticipantNameChanged # noqa: Y015 -@typing.final -class ParticipantPermissionChanged(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ParticipantPermissionChanged(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - PERMISSION_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - @property - def permission(self) -> participant_pb2.ParticipantPermission: ... + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + PERMISSION_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + @_builtins.property + def permission(self) -> _participant_pb2.ParticipantPermission: ... def __init__( self, *, - participant_identity: builtins.str | None = ..., - permission: participant_pb2.ParticipantPermission | None = ..., + participant_identity: _builtins.str | None = ..., + permission: _participant_pb2.ParticipantPermission | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "permission", b"permission"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "permission", b"permission"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "permission", b"permission"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "permission", b"permission"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ParticipantPermissionChanged = ParticipantPermissionChanged +Global___ParticipantPermissionChanged: _TypeAlias = ParticipantPermissionChanged # noqa: Y015 -@typing.final -class ConnectionQualityChanged(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ConnectionQualityChanged(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - QUALITY_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - quality: global___ConnectionQuality.ValueType + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + QUALITY_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + quality: Global___ConnectionQuality.ValueType def __init__( self, *, - participant_identity: builtins.str | None = ..., - quality: global___ConnectionQuality.ValueType | None = ..., + participant_identity: _builtins.str | None = ..., + quality: Global___ConnectionQuality.ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "quality", b"quality"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "quality", b"quality"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "quality", b"quality"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "quality", b"quality"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ConnectionQualityChanged = ConnectionQualityChanged +Global___ConnectionQualityChanged: _TypeAlias = ConnectionQualityChanged # noqa: Y015 -@typing.final -class UserPacket(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class UserPacket(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - DATA_FIELD_NUMBER: builtins.int - TOPIC_FIELD_NUMBER: builtins.int - topic: builtins.str - @property - def data(self) -> global___OwnedBuffer: ... + DATA_FIELD_NUMBER: _builtins.int + TOPIC_FIELD_NUMBER: _builtins.int + topic: _builtins.str + @_builtins.property + def data(self) -> Global___OwnedBuffer: ... def __init__( self, *, - data: global___OwnedBuffer | None = ..., - topic: builtins.str | None = ..., + data: Global___OwnedBuffer | None = ..., + topic: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["data", b"data", "topic", b"topic"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["data", b"data", "topic", b"topic"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["data", b"data", "topic", b"topic"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["data", b"data", "topic", b"topic"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___UserPacket = UserPacket +Global___UserPacket: _TypeAlias = UserPacket # noqa: Y015 -@typing.final -class ChatMessage(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ChatMessage(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ID_FIELD_NUMBER: builtins.int - TIMESTAMP_FIELD_NUMBER: builtins.int - MESSAGE_FIELD_NUMBER: builtins.int - EDIT_TIMESTAMP_FIELD_NUMBER: builtins.int - DELETED_FIELD_NUMBER: builtins.int - GENERATED_FIELD_NUMBER: builtins.int - id: builtins.str - timestamp: builtins.int - message: builtins.str - edit_timestamp: builtins.int - deleted: builtins.bool - generated: builtins.bool + ID_FIELD_NUMBER: _builtins.int + TIMESTAMP_FIELD_NUMBER: _builtins.int + MESSAGE_FIELD_NUMBER: _builtins.int + EDIT_TIMESTAMP_FIELD_NUMBER: _builtins.int + DELETED_FIELD_NUMBER: _builtins.int + GENERATED_FIELD_NUMBER: _builtins.int + id: _builtins.str + timestamp: _builtins.int + message: _builtins.str + edit_timestamp: _builtins.int + deleted: _builtins.bool + generated: _builtins.bool def __init__( self, *, - id: builtins.str | None = ..., - timestamp: builtins.int | None = ..., - message: builtins.str | None = ..., - edit_timestamp: builtins.int | None = ..., - deleted: builtins.bool | None = ..., - generated: builtins.bool | None = ..., + id: _builtins.str | None = ..., + timestamp: _builtins.int | None = ..., + message: _builtins.str | None = ..., + edit_timestamp: _builtins.int | None = ..., + deleted: _builtins.bool | None = ..., + generated: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["deleted", b"deleted", "edit_timestamp", b"edit_timestamp", "generated", b"generated", "id", b"id", "message", b"message", "timestamp", b"timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["deleted", b"deleted", "edit_timestamp", b"edit_timestamp", "generated", b"generated", "id", b"id", "message", b"message", "timestamp", b"timestamp"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["deleted", b"deleted", "edit_timestamp", b"edit_timestamp", "generated", b"generated", "id", b"id", "message", b"message", "timestamp", b"timestamp"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["deleted", b"deleted", "edit_timestamp", b"edit_timestamp", "generated", b"generated", "id", b"id", "message", b"message", "timestamp", b"timestamp"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ChatMessage = ChatMessage +Global___ChatMessage: _TypeAlias = ChatMessage # noqa: Y015 -@typing.final -class ChatMessageReceived(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ChatMessageReceived(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - MESSAGE_FIELD_NUMBER: builtins.int - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - @property - def message(self) -> global___ChatMessage: ... + MESSAGE_FIELD_NUMBER: _builtins.int + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + @_builtins.property + def message(self) -> Global___ChatMessage: ... def __init__( self, *, - message: global___ChatMessage | None = ..., - participant_identity: builtins.str | None = ..., + message: Global___ChatMessage | None = ..., + participant_identity: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["message", b"message", "participant_identity", b"participant_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["message", b"message", "participant_identity", b"participant_identity"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["message", b"message", "participant_identity", b"participant_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["message", b"message", "participant_identity", b"participant_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ChatMessageReceived = ChatMessageReceived +Global___ChatMessageReceived: _TypeAlias = ChatMessageReceived # noqa: Y015 -@typing.final -class SipDTMF(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SipDTMF(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - CODE_FIELD_NUMBER: builtins.int - DIGIT_FIELD_NUMBER: builtins.int - code: builtins.int - digit: builtins.str + CODE_FIELD_NUMBER: _builtins.int + DIGIT_FIELD_NUMBER: _builtins.int + code: _builtins.int + digit: _builtins.str def __init__( self, *, - code: builtins.int | None = ..., - digit: builtins.str | None = ..., + code: _builtins.int | None = ..., + digit: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["code", b"code", "digit", b"digit"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["code", b"code", "digit", b"digit"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "digit", b"digit"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "digit", b"digit"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SipDTMF = SipDTMF +Global___SipDTMF: _TypeAlias = SipDTMF # noqa: Y015 -@typing.final -class DataPacketReceived(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DataPacketReceived(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KIND_FIELD_NUMBER: builtins.int - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - USER_FIELD_NUMBER: builtins.int - SIP_DTMF_FIELD_NUMBER: builtins.int - kind: global___DataPacketKind.ValueType - participant_identity: builtins.str + KIND_FIELD_NUMBER: _builtins.int + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + USER_FIELD_NUMBER: _builtins.int + SIP_DTMF_FIELD_NUMBER: _builtins.int + kind: Global___DataPacketKind.ValueType + participant_identity: _builtins.str """Can be empty if the data is sent a server SDK""" - @property - def user(self) -> global___UserPacket: ... - @property - def sip_dtmf(self) -> global___SipDTMF: ... + @_builtins.property + def user(self) -> Global___UserPacket: ... + @_builtins.property + def sip_dtmf(self) -> Global___SipDTMF: ... def __init__( self, *, - kind: global___DataPacketKind.ValueType | None = ..., - participant_identity: builtins.str | None = ..., - user: global___UserPacket | None = ..., - sip_dtmf: global___SipDTMF | None = ..., + kind: Global___DataPacketKind.ValueType | None = ..., + participant_identity: _builtins.str | None = ..., + user: Global___UserPacket | None = ..., + sip_dtmf: Global___SipDTMF | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["kind", b"kind", "participant_identity", b"participant_identity", "sip_dtmf", b"sip_dtmf", "user", b"user", "value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["kind", b"kind", "participant_identity", b"participant_identity", "sip_dtmf", b"sip_dtmf", "user", b"user", "value", b"value"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["value", b"value"]) -> typing.Literal["user", "sip_dtmf"] | None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "participant_identity", b"participant_identity", "sip_dtmf", b"sip_dtmf", "user", b"user", "value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "participant_identity", b"participant_identity", "sip_dtmf", b"sip_dtmf", "user", b"user", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_value: _TypeAlias = _typing.Literal["user", "sip_dtmf"] # noqa: Y015 + _WhichOneofArgType_value: _TypeAlias = _typing.Literal["value", b"value"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_value) -> _WhichOneofReturnType_value | None: ... -global___DataPacketReceived = DataPacketReceived +Global___DataPacketReceived: _TypeAlias = DataPacketReceived # noqa: Y015 -@typing.final -class TranscriptionReceived(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class TranscriptionReceived(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - TRACK_SID_FIELD_NUMBER: builtins.int - SEGMENTS_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - track_sid: builtins.str - @property - def segments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___TranscriptionSegment]: ... + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + TRACK_SID_FIELD_NUMBER: _builtins.int + SEGMENTS_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + track_sid: _builtins.str + @_builtins.property + def segments(self) -> _containers.RepeatedCompositeFieldContainer[Global___TranscriptionSegment]: ... def __init__( self, *, - participant_identity: builtins.str | None = ..., - track_sid: builtins.str | None = ..., - segments: collections.abc.Iterable[global___TranscriptionSegment] | None = ..., + participant_identity: _builtins.str | None = ..., + track_sid: _builtins.str | None = ..., + segments: _abc.Iterable[Global___TranscriptionSegment] | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "segments", b"segments", "track_sid", b"track_sid"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "segments", b"segments", "track_sid", b"track_sid"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TranscriptionReceived = TranscriptionReceived +Global___TranscriptionReceived: _TypeAlias = TranscriptionReceived # noqa: Y015 -@typing.final -class ConnectionStateChanged(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ConnectionStateChanged(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - STATE_FIELD_NUMBER: builtins.int - state: global___ConnectionState.ValueType + STATE_FIELD_NUMBER: _builtins.int + state: Global___ConnectionState.ValueType def __init__( self, *, - state: global___ConnectionState.ValueType | None = ..., + state: Global___ConnectionState.ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["state", b"state"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["state", b"state"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["state", b"state"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["state", b"state"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ConnectionStateChanged = ConnectionStateChanged +Global___ConnectionStateChanged: _TypeAlias = ConnectionStateChanged # noqa: Y015 -@typing.final -class Connected(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class Connected(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___Connected = Connected +Global___Connected: _TypeAlias = Connected # noqa: Y015 -@typing.final -class Disconnected(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class Disconnected(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - REASON_FIELD_NUMBER: builtins.int - reason: participant_pb2.DisconnectReason.ValueType + REASON_FIELD_NUMBER: _builtins.int + reason: _participant_pb2.DisconnectReason.ValueType def __init__( self, *, - reason: participant_pb2.DisconnectReason.ValueType | None = ..., + reason: _participant_pb2.DisconnectReason.ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["reason", b"reason"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["reason", b"reason"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["reason", b"reason"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["reason", b"reason"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___Disconnected = Disconnected +Global___Disconnected: _TypeAlias = Disconnected # noqa: Y015 -@typing.final -class Reconnecting(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class Reconnecting(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___Reconnecting = Reconnecting +Global___Reconnecting: _TypeAlias = Reconnecting # noqa: Y015 -@typing.final -class Reconnected(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class Reconnected(_message.Message): + """Fired only when a full reconnect succeeded — the RtcSession was rebuilt and + the SDK has already re-published existing local tracks against it (Track + handles are preserved; publication SIDs are new). Signal-only (resume) + reconnects do not fire this event; applications can observe those via + ConnectionStateChanged. + """ + + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___Reconnected = Reconnected +Global___Reconnected: _TypeAlias = Reconnected # noqa: Y015 -@typing.final -class TokenRefreshed(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class TokenRefreshed(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - TOKEN_FIELD_NUMBER: builtins.int - token: builtins.str + TOKEN_FIELD_NUMBER: _builtins.int + token: _builtins.str def __init__( self, *, - token: builtins.str | None = ..., + token: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["token", b"token"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["token", b"token"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["token", b"token"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["token", b"token"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TokenRefreshed = TokenRefreshed +Global___TokenRefreshed: _TypeAlias = TokenRefreshed # noqa: Y015 -@typing.final -class RoomEOS(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class RoomEOS(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RoomEOS = RoomEOS +Global___RoomEOS: _TypeAlias = RoomEOS # noqa: Y015 -@typing.final -class DataStream(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DataStream(_message.Message): + DESCRIPTOR: _descriptor.Descriptor class _OperationType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 - class _OperationTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[DataStream._OperationType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + class _OperationTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[DataStream._OperationType.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor CREATE: DataStream._OperationType.ValueType # 0 UPDATE: DataStream._OperationType.ValueType # 1 DELETE: DataStream._OperationType.ValueType # 2 @@ -2266,577 +2681,663 @@ class DataStream(google.protobuf.message.Message): DELETE: DataStream.OperationType.ValueType # 2 REACTION: DataStream.OperationType.ValueType # 3 - @typing.final - class TextHeader(google.protobuf.message.Message): + @_typing.final + class TextHeader(_message.Message): """header properties specific to text streams""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - OPERATION_TYPE_FIELD_NUMBER: builtins.int - VERSION_FIELD_NUMBER: builtins.int - REPLY_TO_STREAM_ID_FIELD_NUMBER: builtins.int - ATTACHED_STREAM_IDS_FIELD_NUMBER: builtins.int - GENERATED_FIELD_NUMBER: builtins.int - operation_type: global___DataStream.OperationType.ValueType - version: builtins.int + OPERATION_TYPE_FIELD_NUMBER: _builtins.int + VERSION_FIELD_NUMBER: _builtins.int + REPLY_TO_STREAM_ID_FIELD_NUMBER: _builtins.int + ATTACHED_STREAM_IDS_FIELD_NUMBER: _builtins.int + GENERATED_FIELD_NUMBER: _builtins.int + operation_type: Global___DataStream.OperationType.ValueType + version: _builtins.int """Optional: Version for updates/edits""" - reply_to_stream_id: builtins.str + reply_to_stream_id: _builtins.str """Optional: Reply to specific message""" - generated: builtins.bool + generated: _builtins.bool """true if the text has been generated by an agent from a participant's audio transcription""" - @property - def attached_stream_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + @_builtins.property + def attached_stream_ids(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: """file attachments for text streams""" def __init__( self, *, - operation_type: global___DataStream.OperationType.ValueType | None = ..., - version: builtins.int | None = ..., - reply_to_stream_id: builtins.str | None = ..., - attached_stream_ids: collections.abc.Iterable[builtins.str] | None = ..., - generated: builtins.bool | None = ..., + operation_type: Global___DataStream.OperationType.ValueType | None = ..., + version: _builtins.int | None = ..., + reply_to_stream_id: _builtins.str | None = ..., + attached_stream_ids: _abc.Iterable[_builtins.str] | None = ..., + generated: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["generated", b"generated", "operation_type", b"operation_type", "reply_to_stream_id", b"reply_to_stream_id", "version", b"version"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["attached_stream_ids", b"attached_stream_ids", "generated", b"generated", "operation_type", b"operation_type", "reply_to_stream_id", b"reply_to_stream_id", "version", b"version"]) -> None: ... - - @typing.final - class ByteHeader(google.protobuf.message.Message): + _HasFieldArgType: _TypeAlias = _typing.Literal["generated", b"generated", "operation_type", b"operation_type", "reply_to_stream_id", b"reply_to_stream_id", "version", b"version"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["attached_stream_ids", b"attached_stream_ids", "generated", b"generated", "operation_type", b"operation_type", "reply_to_stream_id", b"reply_to_stream_id", "version", b"version"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class ByteHeader(_message.Message): """header properties specific to byte or file streams""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - name: builtins.str + NAME_FIELD_NUMBER: _builtins.int + name: _builtins.str def __init__( self, *, - name: builtins.str | None = ..., + name: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["name", b"name"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["name", b"name"]) -> None: ... - - @typing.final - class Header(google.protobuf.message.Message): + _HasFieldArgType: _TypeAlias = _typing.Literal["name", b"name"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["name", b"name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class Header(_message.Message): """main DataStream.Header that contains a oneof for specific headers""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - @typing.final - class AttributesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class AttributesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str | None = ..., - value: builtins.str | None = ..., + key: _builtins.str | None = ..., + value: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - STREAM_ID_FIELD_NUMBER: builtins.int - TIMESTAMP_FIELD_NUMBER: builtins.int - MIME_TYPE_FIELD_NUMBER: builtins.int - TOPIC_FIELD_NUMBER: builtins.int - TOTAL_LENGTH_FIELD_NUMBER: builtins.int - ATTRIBUTES_FIELD_NUMBER: builtins.int - TEXT_HEADER_FIELD_NUMBER: builtins.int - BYTE_HEADER_FIELD_NUMBER: builtins.int - stream_id: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + STREAM_ID_FIELD_NUMBER: _builtins.int + TIMESTAMP_FIELD_NUMBER: _builtins.int + MIME_TYPE_FIELD_NUMBER: _builtins.int + TOPIC_FIELD_NUMBER: _builtins.int + TOTAL_LENGTH_FIELD_NUMBER: _builtins.int + ATTRIBUTES_FIELD_NUMBER: _builtins.int + TEXT_HEADER_FIELD_NUMBER: _builtins.int + BYTE_HEADER_FIELD_NUMBER: _builtins.int + stream_id: _builtins.str """unique identifier for this data stream""" - timestamp: builtins.int + timestamp: _builtins.int """using int64 for Unix timestamp""" - mime_type: builtins.str - topic: builtins.str - total_length: builtins.int + mime_type: _builtins.str + topic: _builtins.str + total_length: _builtins.int """only populated for finite streams, if it's a stream of unknown size this stays empty""" - @property - def attributes(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + @_builtins.property + def attributes(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: """user defined attributes map that can carry additional info""" - @property - def text_header(self) -> global___DataStream.TextHeader: ... - @property - def byte_header(self) -> global___DataStream.ByteHeader: ... + @_builtins.property + def text_header(self) -> Global___DataStream.TextHeader: ... + @_builtins.property + def byte_header(self) -> Global___DataStream.ByteHeader: ... def __init__( self, *, - stream_id: builtins.str | None = ..., - timestamp: builtins.int | None = ..., - mime_type: builtins.str | None = ..., - topic: builtins.str | None = ..., - total_length: builtins.int | None = ..., - attributes: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - text_header: global___DataStream.TextHeader | None = ..., - byte_header: global___DataStream.ByteHeader | None = ..., + stream_id: _builtins.str | None = ..., + timestamp: _builtins.int | None = ..., + mime_type: _builtins.str | None = ..., + topic: _builtins.str | None = ..., + total_length: _builtins.int | None = ..., + attributes: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + text_header: Global___DataStream.TextHeader | None = ..., + byte_header: Global___DataStream.ByteHeader | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["byte_header", b"byte_header", "content_header", b"content_header", "mime_type", b"mime_type", "stream_id", b"stream_id", "text_header", b"text_header", "timestamp", b"timestamp", "topic", b"topic", "total_length", b"total_length"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["attributes", b"attributes", "byte_header", b"byte_header", "content_header", b"content_header", "mime_type", b"mime_type", "stream_id", b"stream_id", "text_header", b"text_header", "timestamp", b"timestamp", "topic", b"topic", "total_length", b"total_length"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["content_header", b"content_header"]) -> typing.Literal["text_header", "byte_header"] | None: ... - - @typing.final - class Chunk(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - STREAM_ID_FIELD_NUMBER: builtins.int - CHUNK_INDEX_FIELD_NUMBER: builtins.int - CONTENT_FIELD_NUMBER: builtins.int - VERSION_FIELD_NUMBER: builtins.int - IV_FIELD_NUMBER: builtins.int - stream_id: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["byte_header", b"byte_header", "content_header", b"content_header", "mime_type", b"mime_type", "stream_id", b"stream_id", "text_header", b"text_header", "timestamp", b"timestamp", "topic", b"topic", "total_length", b"total_length"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["attributes", b"attributes", "byte_header", b"byte_header", "content_header", b"content_header", "mime_type", b"mime_type", "stream_id", b"stream_id", "text_header", b"text_header", "timestamp", b"timestamp", "topic", b"topic", "total_length", b"total_length"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_content_header: _TypeAlias = _typing.Literal["text_header", "byte_header"] # noqa: Y015 + _WhichOneofArgType_content_header: _TypeAlias = _typing.Literal["content_header", b"content_header"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_content_header) -> _WhichOneofReturnType_content_header | None: ... + + @_typing.final + class Chunk(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + STREAM_ID_FIELD_NUMBER: _builtins.int + CHUNK_INDEX_FIELD_NUMBER: _builtins.int + CONTENT_FIELD_NUMBER: _builtins.int + VERSION_FIELD_NUMBER: _builtins.int + IV_FIELD_NUMBER: _builtins.int + stream_id: _builtins.str """unique identifier for this data stream to map it to the correct header""" - chunk_index: builtins.int - content: builtins.bytes + chunk_index: _builtins.int + content: _builtins.bytes """content as binary (bytes)""" - version: builtins.int + version: _builtins.int """a version indicating that this chunk_index has been retroactively modified and the original one needs to be replaced""" - iv: builtins.bytes + iv: _builtins.bytes """optional, initialization vector for AES-GCM encryption""" def __init__( self, *, - stream_id: builtins.str | None = ..., - chunk_index: builtins.int | None = ..., - content: builtins.bytes | None = ..., - version: builtins.int | None = ..., - iv: builtins.bytes | None = ..., + stream_id: _builtins.str | None = ..., + chunk_index: _builtins.int | None = ..., + content: _builtins.bytes | None = ..., + version: _builtins.int | None = ..., + iv: _builtins.bytes | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["chunk_index", b"chunk_index", "content", b"content", "iv", b"iv", "stream_id", b"stream_id", "version", b"version"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["chunk_index", b"chunk_index", "content", b"content", "iv", b"iv", "stream_id", b"stream_id", "version", b"version"]) -> None: ... - - @typing.final - class Trailer(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class AttributesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["chunk_index", b"chunk_index", "content", b"content", "iv", b"iv", "stream_id", b"stream_id", "version", b"version"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["chunk_index", b"chunk_index", "content", b"content", "iv", b"iv", "stream_id", b"stream_id", "version", b"version"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class Trailer(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class AttributesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str | None = ..., - value: builtins.str | None = ..., + key: _builtins.str | None = ..., + value: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - STREAM_ID_FIELD_NUMBER: builtins.int - REASON_FIELD_NUMBER: builtins.int - ATTRIBUTES_FIELD_NUMBER: builtins.int - stream_id: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + STREAM_ID_FIELD_NUMBER: _builtins.int + REASON_FIELD_NUMBER: _builtins.int + ATTRIBUTES_FIELD_NUMBER: _builtins.int + stream_id: _builtins.str """unique identifier for this data stream""" - reason: builtins.str + reason: _builtins.str """reason why the stream was closed (could contain "error" / "interrupted" / empty for expected end)""" - @property - def attributes(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + @_builtins.property + def attributes(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: """finalizing updates for the stream, can also include additional insights for errors or endTime for transcription""" def __init__( self, *, - stream_id: builtins.str | None = ..., - reason: builtins.str | None = ..., - attributes: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + stream_id: _builtins.str | None = ..., + reason: _builtins.str | None = ..., + attributes: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["reason", b"reason", "stream_id", b"stream_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["attributes", b"attributes", "reason", b"reason", "stream_id", b"stream_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["reason", b"reason", "stream_id", b"stream_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["attributes", b"attributes", "reason", b"reason", "stream_id", b"stream_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DataStream = DataStream +Global___DataStream: _TypeAlias = DataStream # noqa: Y015 -@typing.final -class DataStreamHeaderReceived(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DataStreamHeaderReceived(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - HEADER_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - @property - def header(self) -> global___DataStream.Header: ... + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + HEADER_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + @_builtins.property + def header(self) -> Global___DataStream.Header: ... def __init__( self, *, - participant_identity: builtins.str | None = ..., - header: global___DataStream.Header | None = ..., + participant_identity: _builtins.str | None = ..., + header: Global___DataStream.Header | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["header", b"header", "participant_identity", b"participant_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["header", b"header", "participant_identity", b"participant_identity"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["header", b"header", "participant_identity", b"participant_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["header", b"header", "participant_identity", b"participant_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DataStreamHeaderReceived = DataStreamHeaderReceived +Global___DataStreamHeaderReceived: _TypeAlias = DataStreamHeaderReceived # noqa: Y015 -@typing.final -class DataStreamChunkReceived(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DataStreamChunkReceived(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - CHUNK_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - @property - def chunk(self) -> global___DataStream.Chunk: ... + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + CHUNK_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + @_builtins.property + def chunk(self) -> Global___DataStream.Chunk: ... def __init__( self, *, - participant_identity: builtins.str | None = ..., - chunk: global___DataStream.Chunk | None = ..., + participant_identity: _builtins.str | None = ..., + chunk: Global___DataStream.Chunk | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["chunk", b"chunk", "participant_identity", b"participant_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["chunk", b"chunk", "participant_identity", b"participant_identity"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["chunk", b"chunk", "participant_identity", b"participant_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["chunk", b"chunk", "participant_identity", b"participant_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DataStreamChunkReceived = DataStreamChunkReceived +Global___DataStreamChunkReceived: _TypeAlias = DataStreamChunkReceived # noqa: Y015 -@typing.final -class DataStreamTrailerReceived(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DataStreamTrailerReceived(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - TRAILER_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - @property - def trailer(self) -> global___DataStream.Trailer: ... + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + TRAILER_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + @_builtins.property + def trailer(self) -> Global___DataStream.Trailer: ... def __init__( self, *, - participant_identity: builtins.str | None = ..., - trailer: global___DataStream.Trailer | None = ..., + participant_identity: _builtins.str | None = ..., + trailer: Global___DataStream.Trailer | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "trailer", b"trailer"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "trailer", b"trailer"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "trailer", b"trailer"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "trailer", b"trailer"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DataStreamTrailerReceived = DataStreamTrailerReceived +Global___DataStreamTrailerReceived: _TypeAlias = DataStreamTrailerReceived # noqa: Y015 -@typing.final -class SendStreamHeaderRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SendStreamHeaderRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - HEADER_FIELD_NUMBER: builtins.int - DESTINATION_IDENTITIES_FIELD_NUMBER: builtins.int - SENDER_IDENTITY_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - sender_identity: builtins.str - request_async_id: builtins.int - @property - def header(self) -> global___DataStream.Header: ... - @property - def destination_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + HEADER_FIELD_NUMBER: _builtins.int + DESTINATION_IDENTITIES_FIELD_NUMBER: _builtins.int + SENDER_IDENTITY_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + sender_identity: _builtins.str + request_async_id: _builtins.int + @_builtins.property + def header(self) -> Global___DataStream.Header: ... + @_builtins.property + def destination_identities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - header: global___DataStream.Header | None = ..., - destination_identities: collections.abc.Iterable[builtins.str] | None = ..., - sender_identity: builtins.str | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + header: Global___DataStream.Header | None = ..., + destination_identities: _abc.Iterable[_builtins.str] | None = ..., + sender_identity: _builtins.str | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["header", b"header", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["destination_identities", b"destination_identities", "header", b"header", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["header", b"header", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["destination_identities", b"destination_identities", "header", b"header", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SendStreamHeaderRequest = SendStreamHeaderRequest +Global___SendStreamHeaderRequest: _TypeAlias = SendStreamHeaderRequest # noqa: Y015 -@typing.final -class SendStreamChunkRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SendStreamChunkRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - CHUNK_FIELD_NUMBER: builtins.int - DESTINATION_IDENTITIES_FIELD_NUMBER: builtins.int - SENDER_IDENTITY_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - sender_identity: builtins.str - request_async_id: builtins.int - @property - def chunk(self) -> global___DataStream.Chunk: ... - @property - def destination_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + CHUNK_FIELD_NUMBER: _builtins.int + DESTINATION_IDENTITIES_FIELD_NUMBER: _builtins.int + SENDER_IDENTITY_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + sender_identity: _builtins.str + request_async_id: _builtins.int + @_builtins.property + def chunk(self) -> Global___DataStream.Chunk: ... + @_builtins.property + def destination_identities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - chunk: global___DataStream.Chunk | None = ..., - destination_identities: collections.abc.Iterable[builtins.str] | None = ..., - sender_identity: builtins.str | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + chunk: Global___DataStream.Chunk | None = ..., + destination_identities: _abc.Iterable[_builtins.str] | None = ..., + sender_identity: _builtins.str | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["chunk", b"chunk", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["chunk", b"chunk", "destination_identities", b"destination_identities", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["chunk", b"chunk", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["chunk", b"chunk", "destination_identities", b"destination_identities", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SendStreamChunkRequest = SendStreamChunkRequest +Global___SendStreamChunkRequest: _TypeAlias = SendStreamChunkRequest # noqa: Y015 -@typing.final -class SendStreamTrailerRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SendStreamTrailerRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - TRAILER_FIELD_NUMBER: builtins.int - DESTINATION_IDENTITIES_FIELD_NUMBER: builtins.int - SENDER_IDENTITY_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - sender_identity: builtins.str - request_async_id: builtins.int - @property - def trailer(self) -> global___DataStream.Trailer: ... - @property - def destination_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + TRAILER_FIELD_NUMBER: _builtins.int + DESTINATION_IDENTITIES_FIELD_NUMBER: _builtins.int + SENDER_IDENTITY_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + sender_identity: _builtins.str + request_async_id: _builtins.int + @_builtins.property + def trailer(self) -> Global___DataStream.Trailer: ... + @_builtins.property + def destination_identities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - trailer: global___DataStream.Trailer | None = ..., - destination_identities: collections.abc.Iterable[builtins.str] | None = ..., - sender_identity: builtins.str | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + trailer: Global___DataStream.Trailer | None = ..., + destination_identities: _abc.Iterable[_builtins.str] | None = ..., + sender_identity: _builtins.str | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity", "trailer", b"trailer"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["destination_identities", b"destination_identities", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity", "trailer", b"trailer"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity", "trailer", b"trailer"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["destination_identities", b"destination_identities", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity", "trailer", b"trailer"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SendStreamTrailerRequest = SendStreamTrailerRequest +Global___SendStreamTrailerRequest: _TypeAlias = SendStreamTrailerRequest # noqa: Y015 -@typing.final -class SendStreamHeaderResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SendStreamHeaderResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SendStreamHeaderResponse = SendStreamHeaderResponse +Global___SendStreamHeaderResponse: _TypeAlias = SendStreamHeaderResponse # noqa: Y015 -@typing.final -class SendStreamChunkResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SendStreamChunkResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SendStreamChunkResponse = SendStreamChunkResponse +Global___SendStreamChunkResponse: _TypeAlias = SendStreamChunkResponse # noqa: Y015 -@typing.final -class SendStreamTrailerResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SendStreamTrailerResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SendStreamTrailerResponse = SendStreamTrailerResponse +Global___SendStreamTrailerResponse: _TypeAlias = SendStreamTrailerResponse # noqa: Y015 -@typing.final -class SendStreamHeaderCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SendStreamHeaderCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str def __init__( self, *, - async_id: builtins.int | None = ..., - error: builtins.str | None = ..., + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SendStreamHeaderCallback = SendStreamHeaderCallback +Global___SendStreamHeaderCallback: _TypeAlias = SendStreamHeaderCallback # noqa: Y015 -@typing.final -class SendStreamChunkCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SendStreamChunkCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str def __init__( self, *, - async_id: builtins.int | None = ..., - error: builtins.str | None = ..., + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SendStreamChunkCallback = SendStreamChunkCallback +Global___SendStreamChunkCallback: _TypeAlias = SendStreamChunkCallback # noqa: Y015 -@typing.final -class SendStreamTrailerCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SendStreamTrailerCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str def __init__( self, *, - async_id: builtins.int | None = ..., - error: builtins.str | None = ..., + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SendStreamTrailerCallback = SendStreamTrailerCallback +Global___SendStreamTrailerCallback: _TypeAlias = SendStreamTrailerCallback # noqa: Y015 -@typing.final -class SetDataChannelBufferedAmountLowThresholdRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SetDataChannelBufferedAmountLowThresholdRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - THRESHOLD_FIELD_NUMBER: builtins.int - KIND_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - threshold: builtins.int - kind: global___DataPacketKind.ValueType + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + THRESHOLD_FIELD_NUMBER: _builtins.int + KIND_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + threshold: _builtins.int + kind: Global___DataPacketKind.ValueType def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - threshold: builtins.int | None = ..., - kind: global___DataPacketKind.ValueType | None = ..., + local_participant_handle: _builtins.int | None = ..., + threshold: _builtins.int | None = ..., + kind: Global___DataPacketKind.ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["kind", b"kind", "local_participant_handle", b"local_participant_handle", "threshold", b"threshold"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["kind", b"kind", "local_participant_handle", b"local_participant_handle", "threshold", b"threshold"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "local_participant_handle", b"local_participant_handle", "threshold", b"threshold"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "local_participant_handle", b"local_participant_handle", "threshold", b"threshold"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetDataChannelBufferedAmountLowThresholdRequest = SetDataChannelBufferedAmountLowThresholdRequest +Global___SetDataChannelBufferedAmountLowThresholdRequest: _TypeAlias = SetDataChannelBufferedAmountLowThresholdRequest # noqa: Y015 -@typing.final -class SetDataChannelBufferedAmountLowThresholdResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SetDataChannelBufferedAmountLowThresholdResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetDataChannelBufferedAmountLowThresholdResponse = SetDataChannelBufferedAmountLowThresholdResponse +Global___SetDataChannelBufferedAmountLowThresholdResponse: _TypeAlias = SetDataChannelBufferedAmountLowThresholdResponse # noqa: Y015 -@typing.final -class DataChannelBufferedAmountLowThresholdChanged(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DataChannelBufferedAmountLowThresholdChanged(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KIND_FIELD_NUMBER: builtins.int - THRESHOLD_FIELD_NUMBER: builtins.int - kind: global___DataPacketKind.ValueType - threshold: builtins.int + KIND_FIELD_NUMBER: _builtins.int + THRESHOLD_FIELD_NUMBER: _builtins.int + kind: Global___DataPacketKind.ValueType + threshold: _builtins.int def __init__( self, *, - kind: global___DataPacketKind.ValueType | None = ..., - threshold: builtins.int | None = ..., + kind: Global___DataPacketKind.ValueType | None = ..., + threshold: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["kind", b"kind", "threshold", b"threshold"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["kind", b"kind", "threshold", b"threshold"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "threshold", b"threshold"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "threshold", b"threshold"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DataChannelBufferedAmountLowThresholdChanged = DataChannelBufferedAmountLowThresholdChanged +Global___DataChannelBufferedAmountLowThresholdChanged: _TypeAlias = DataChannelBufferedAmountLowThresholdChanged # noqa: Y015 -@typing.final -class ByteStreamOpened(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ByteStreamOpened(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - READER_FIELD_NUMBER: builtins.int - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - @property - def reader(self) -> data_stream_pb2.OwnedByteStreamReader: ... + READER_FIELD_NUMBER: _builtins.int + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + @_builtins.property + def reader(self) -> _data_stream_pb2.OwnedByteStreamReader: ... def __init__( self, *, - reader: data_stream_pb2.OwnedByteStreamReader | None = ..., - participant_identity: builtins.str | None = ..., + reader: _data_stream_pb2.OwnedByteStreamReader | None = ..., + participant_identity: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "reader", b"reader"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "reader", b"reader"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "reader", b"reader"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "reader", b"reader"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ByteStreamOpened = ByteStreamOpened +Global___ByteStreamOpened: _TypeAlias = ByteStreamOpened # noqa: Y015 -@typing.final -class TextStreamOpened(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class TextStreamOpened(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - READER_FIELD_NUMBER: builtins.int - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - @property - def reader(self) -> data_stream_pb2.OwnedTextStreamReader: ... + READER_FIELD_NUMBER: _builtins.int + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + @_builtins.property + def reader(self) -> _data_stream_pb2.OwnedTextStreamReader: ... def __init__( self, *, - reader: data_stream_pb2.OwnedTextStreamReader | None = ..., - participant_identity: builtins.str | None = ..., + reader: _data_stream_pb2.OwnedTextStreamReader | None = ..., + participant_identity: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "reader", b"reader"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "reader", b"reader"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "reader", b"reader"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "reader", b"reader"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TextStreamOpened = TextStreamOpened +Global___TextStreamOpened: _TypeAlias = TextStreamOpened # noqa: Y015 -@typing.final -class DataTrackPublished(google.protobuf.message.Message): +@_typing.final +class DataTrackPublished(_message.Message): """A remote participant published a data track.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TRACK_FIELD_NUMBER: builtins.int - @property - def track(self) -> data_track_pb2.OwnedRemoteDataTrack: ... + TRACK_FIELD_NUMBER: _builtins.int + @_builtins.property + def track(self) -> _data_track_pb2.OwnedRemoteDataTrack: ... def __init__( self, *, - track: data_track_pb2.OwnedRemoteDataTrack | None = ..., + track: _data_track_pb2.OwnedRemoteDataTrack | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["track", b"track"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["track", b"track"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["track", b"track"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["track", b"track"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DataTrackPublished = DataTrackPublished +Global___DataTrackPublished: _TypeAlias = DataTrackPublished # noqa: Y015 -@typing.final -class DataTrackUnpublished(google.protobuf.message.Message): +@_typing.final +class DataTrackUnpublished(_message.Message): """A remote participant unpublished a data track.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - SID_FIELD_NUMBER: builtins.int - sid: builtins.str + SID_FIELD_NUMBER: _builtins.int + sid: _builtins.str """SID of the track that was unpublished.""" def __init__( self, *, - sid: builtins.str | None = ..., + sid: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["sid", b"sid"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["sid", b"sid"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["sid", b"sid"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["sid", b"sid"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DataTrackUnpublished = DataTrackUnpublished +Global___DataTrackUnpublished: _TypeAlias = DataTrackUnpublished # noqa: Y015 diff --git a/livekit-rtc/livekit/rtc/_proto/rpc_pb2.py b/livekit-rtc/livekit/rtc/_proto/rpc_pb2.py index c7211917..de3064a5 100644 --- a/livekit-rtc/livekit/rtc/_proto/rpc_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/rpc_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: rpc.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 7.34.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 7, + 34, + 1, + '', + 'rpc.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -19,8 +29,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'rpc_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'\252\002\rLiveKit.Proto' _globals['_RPCERROR']._serialized_start=28 _globals['_RPCERROR']._serialized_end=83 diff --git a/livekit-rtc/livekit/rtc/_proto/rpc_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/rpc_pb2.pyi index bbed4217..6afbec26 100644 --- a/livekit-rtc/livekit/rtc/_proto/rpc_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/rpc_pb2.pyi @@ -16,243 +16,286 @@ See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import google.protobuf.descriptor -import google.protobuf.message -import typing - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor - -@typing.final -class RpcError(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - CODE_FIELD_NUMBER: builtins.int - MESSAGE_FIELD_NUMBER: builtins.int - DATA_FIELD_NUMBER: builtins.int - code: builtins.int - message: builtins.str - data: builtins.str +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +import builtins as _builtins +import sys +import typing as _typing + +if sys.version_info >= (3, 11): + from typing import TypeAlias as _TypeAlias, Never as _Never +else: + from typing_extensions import TypeAlias as _TypeAlias, Never as _Never + +DESCRIPTOR: _descriptor.FileDescriptor + +@_typing.final +class RpcError(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + CODE_FIELD_NUMBER: _builtins.int + MESSAGE_FIELD_NUMBER: _builtins.int + DATA_FIELD_NUMBER: _builtins.int + code: _builtins.int + message: _builtins.str + data: _builtins.str def __init__( self, *, - code: builtins.int | None = ..., - message: builtins.str | None = ..., - data: builtins.str | None = ..., + code: _builtins.int | None = ..., + message: _builtins.str | None = ..., + data: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["code", b"code", "data", b"data", "message", b"message"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["code", b"code", "data", b"data", "message", b"message"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "data", b"data", "message", b"message"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "data", b"data", "message", b"message"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RpcError = RpcError +Global___RpcError: _TypeAlias = RpcError # noqa: Y015 -@typing.final -class PerformRpcRequest(google.protobuf.message.Message): +@_typing.final +class PerformRpcRequest(_message.Message): """FFI Requests""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - DESTINATION_IDENTITY_FIELD_NUMBER: builtins.int - METHOD_FIELD_NUMBER: builtins.int - PAYLOAD_FIELD_NUMBER: builtins.int - RESPONSE_TIMEOUT_MS_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - destination_identity: builtins.str - method: builtins.str - payload: builtins.str - response_timeout_ms: builtins.int - request_async_id: builtins.int + DESCRIPTOR: _descriptor.Descriptor + + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + DESTINATION_IDENTITY_FIELD_NUMBER: _builtins.int + METHOD_FIELD_NUMBER: _builtins.int + PAYLOAD_FIELD_NUMBER: _builtins.int + RESPONSE_TIMEOUT_MS_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + destination_identity: _builtins.str + method: _builtins.str + payload: _builtins.str + response_timeout_ms: _builtins.int + request_async_id: _builtins.int def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - destination_identity: builtins.str | None = ..., - method: builtins.str | None = ..., - payload: builtins.str | None = ..., - response_timeout_ms: builtins.int | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + destination_identity: _builtins.str | None = ..., + method: _builtins.str | None = ..., + payload: _builtins.str | None = ..., + response_timeout_ms: _builtins.int | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["destination_identity", b"destination_identity", "local_participant_handle", b"local_participant_handle", "method", b"method", "payload", b"payload", "request_async_id", b"request_async_id", "response_timeout_ms", b"response_timeout_ms"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["destination_identity", b"destination_identity", "local_participant_handle", b"local_participant_handle", "method", b"method", "payload", b"payload", "request_async_id", b"request_async_id", "response_timeout_ms", b"response_timeout_ms"]) -> None: ... - -global___PerformRpcRequest = PerformRpcRequest - -@typing.final -class RegisterRpcMethodRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - METHOD_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - method: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["destination_identity", b"destination_identity", "local_participant_handle", b"local_participant_handle", "method", b"method", "payload", b"payload", "request_async_id", b"request_async_id", "response_timeout_ms", b"response_timeout_ms"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["destination_identity", b"destination_identity", "local_participant_handle", b"local_participant_handle", "method", b"method", "payload", b"payload", "request_async_id", b"request_async_id", "response_timeout_ms", b"response_timeout_ms"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___PerformRpcRequest: _TypeAlias = PerformRpcRequest # noqa: Y015 + +@_typing.final +class RegisterRpcMethodRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + METHOD_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + method: _builtins.str def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - method: builtins.str | None = ..., + local_participant_handle: _builtins.int | None = ..., + method: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "method", b"method"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "method", b"method"]) -> None: ... - -global___RegisterRpcMethodRequest = RegisterRpcMethodRequest - -@typing.final -class UnregisterRpcMethodRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - METHOD_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - method: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "method", b"method"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "method", b"method"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___RegisterRpcMethodRequest: _TypeAlias = RegisterRpcMethodRequest # noqa: Y015 + +@_typing.final +class UnregisterRpcMethodRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + METHOD_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + method: _builtins.str def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - method: builtins.str | None = ..., + local_participant_handle: _builtins.int | None = ..., + method: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "method", b"method"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "method", b"method"]) -> None: ... - -global___UnregisterRpcMethodRequest = UnregisterRpcMethodRequest - -@typing.final -class RpcMethodInvocationResponseRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - INVOCATION_ID_FIELD_NUMBER: builtins.int - PAYLOAD_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - invocation_id: builtins.int - payload: builtins.str - @property - def error(self) -> global___RpcError: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "method", b"method"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "method", b"method"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___UnregisterRpcMethodRequest: _TypeAlias = UnregisterRpcMethodRequest # noqa: Y015 + +@_typing.final +class RpcMethodInvocationResponseRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + INVOCATION_ID_FIELD_NUMBER: _builtins.int + PAYLOAD_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + invocation_id: _builtins.int + payload: _builtins.str + @_builtins.property + def error(self) -> Global___RpcError: ... def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - invocation_id: builtins.int | None = ..., - payload: builtins.str | None = ..., - error: global___RpcError | None = ..., + local_participant_handle: _builtins.int | None = ..., + invocation_id: _builtins.int | None = ..., + payload: _builtins.str | None = ..., + error: Global___RpcError | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["error", b"error", "invocation_id", b"invocation_id", "local_participant_handle", b"local_participant_handle", "payload", b"payload"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["error", b"error", "invocation_id", b"invocation_id", "local_participant_handle", b"local_participant_handle", "payload", b"payload"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "invocation_id", b"invocation_id", "local_participant_handle", b"local_participant_handle", "payload", b"payload"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "invocation_id", b"invocation_id", "local_participant_handle", b"local_participant_handle", "payload", b"payload"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RpcMethodInvocationResponseRequest = RpcMethodInvocationResponseRequest +Global___RpcMethodInvocationResponseRequest: _TypeAlias = RpcMethodInvocationResponseRequest # noqa: Y015 -@typing.final -class PerformRpcResponse(google.protobuf.message.Message): +@_typing.final +class PerformRpcResponse(_message.Message): """FFI Responses""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___PerformRpcResponse = PerformRpcResponse +Global___PerformRpcResponse: _TypeAlias = PerformRpcResponse # noqa: Y015 -@typing.final -class RegisterRpcMethodResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class RegisterRpcMethodResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RegisterRpcMethodResponse = RegisterRpcMethodResponse +Global___RegisterRpcMethodResponse: _TypeAlias = RegisterRpcMethodResponse # noqa: Y015 -@typing.final -class UnregisterRpcMethodResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class UnregisterRpcMethodResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___UnregisterRpcMethodResponse = UnregisterRpcMethodResponse +Global___UnregisterRpcMethodResponse: _TypeAlias = UnregisterRpcMethodResponse # noqa: Y015 -@typing.final -class RpcMethodInvocationResponseResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class RpcMethodInvocationResponseResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ERROR_FIELD_NUMBER: builtins.int - error: builtins.str + ERROR_FIELD_NUMBER: _builtins.int + error: _builtins.str def __init__( self, *, - error: builtins.str | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RpcMethodInvocationResponseResponse = RpcMethodInvocationResponseResponse +Global___RpcMethodInvocationResponseResponse: _TypeAlias = RpcMethodInvocationResponseResponse # noqa: Y015 -@typing.final -class PerformRpcCallback(google.protobuf.message.Message): +@_typing.final +class PerformRpcCallback(_message.Message): """FFI Callbacks""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - PAYLOAD_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - payload: builtins.str - @property - def error(self) -> global___RpcError: ... + ASYNC_ID_FIELD_NUMBER: _builtins.int + PAYLOAD_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + payload: _builtins.str + @_builtins.property + def error(self) -> Global___RpcError: ... def __init__( self, *, - async_id: builtins.int | None = ..., - payload: builtins.str | None = ..., - error: global___RpcError | None = ..., + async_id: _builtins.int | None = ..., + payload: _builtins.str | None = ..., + error: Global___RpcError | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "payload", b"payload"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "payload", b"payload"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "payload", b"payload"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "payload", b"payload"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___PerformRpcCallback = PerformRpcCallback +Global___PerformRpcCallback: _TypeAlias = PerformRpcCallback # noqa: Y015 -@typing.final -class RpcMethodInvocationEvent(google.protobuf.message.Message): +@_typing.final +class RpcMethodInvocationEvent(_message.Message): """FFI Events""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - INVOCATION_ID_FIELD_NUMBER: builtins.int - METHOD_FIELD_NUMBER: builtins.int - REQUEST_ID_FIELD_NUMBER: builtins.int - CALLER_IDENTITY_FIELD_NUMBER: builtins.int - PAYLOAD_FIELD_NUMBER: builtins.int - RESPONSE_TIMEOUT_MS_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - invocation_id: builtins.int - method: builtins.str - request_id: builtins.str - caller_identity: builtins.str - payload: builtins.str - response_timeout_ms: builtins.int + DESCRIPTOR: _descriptor.Descriptor + + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + INVOCATION_ID_FIELD_NUMBER: _builtins.int + METHOD_FIELD_NUMBER: _builtins.int + REQUEST_ID_FIELD_NUMBER: _builtins.int + CALLER_IDENTITY_FIELD_NUMBER: _builtins.int + PAYLOAD_FIELD_NUMBER: _builtins.int + RESPONSE_TIMEOUT_MS_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + invocation_id: _builtins.int + method: _builtins.str + request_id: _builtins.str + caller_identity: _builtins.str + payload: _builtins.str + response_timeout_ms: _builtins.int def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - invocation_id: builtins.int | None = ..., - method: builtins.str | None = ..., - request_id: builtins.str | None = ..., - caller_identity: builtins.str | None = ..., - payload: builtins.str | None = ..., - response_timeout_ms: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + invocation_id: _builtins.int | None = ..., + method: _builtins.str | None = ..., + request_id: _builtins.str | None = ..., + caller_identity: _builtins.str | None = ..., + payload: _builtins.str | None = ..., + response_timeout_ms: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["caller_identity", b"caller_identity", "invocation_id", b"invocation_id", "local_participant_handle", b"local_participant_handle", "method", b"method", "payload", b"payload", "request_id", b"request_id", "response_timeout_ms", b"response_timeout_ms"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["caller_identity", b"caller_identity", "invocation_id", b"invocation_id", "local_participant_handle", b"local_participant_handle", "method", b"method", "payload", b"payload", "request_id", b"request_id", "response_timeout_ms", b"response_timeout_ms"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["caller_identity", b"caller_identity", "invocation_id", b"invocation_id", "local_participant_handle", b"local_participant_handle", "method", b"method", "payload", b"payload", "request_id", b"request_id", "response_timeout_ms", b"response_timeout_ms"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["caller_identity", b"caller_identity", "invocation_id", b"invocation_id", "local_participant_handle", b"local_participant_handle", "method", b"method", "payload", b"payload", "request_id", b"request_id", "response_timeout_ms", b"response_timeout_ms"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RpcMethodInvocationEvent = RpcMethodInvocationEvent +Global___RpcMethodInvocationEvent: _TypeAlias = RpcMethodInvocationEvent # noqa: Y015 diff --git a/livekit-rtc/livekit/rtc/_proto/stats_pb2.py b/livekit-rtc/livekit/rtc/_proto/stats_pb2.py index ce7b411c..a5bd3971 100644 --- a/livekit-rtc/livekit/rtc/_proto/stats_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/stats_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: stats.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 7.34.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 7, + 34, + 1, + '', + 'stats.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -19,10 +29,10 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'stats_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'\252\002\rLiveKit.Proto' - _globals['_OUTBOUNDRTPSTREAMSTATS_QUALITYLIMITATIONDURATIONSENTRY']._options = None + _globals['_OUTBOUNDRTPSTREAMSTATS_QUALITYLIMITATIONDURATIONSENTRY']._loaded_options = None _globals['_OUTBOUNDRTPSTREAMSTATS_QUALITYLIMITATIONDURATIONSENTRY']._serialized_options = b'8\001' _globals['_DATACHANNELSTATE']._serialized_start=9282 _globals['_DATACHANNELSTATE']._serialized_end=9363 diff --git a/livekit-rtc/livekit/rtc/_proto/stats_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/stats_pb2.pyi index a77c233e..01d6b974 100644 --- a/livekit-rtc/livekit/rtc/_proto/stats_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/stats_pb2.pyi @@ -16,28 +16,28 @@ See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message +from collections import abc as _abc +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +import builtins as _builtins import sys -import typing +import typing as _typing -if sys.version_info >= (3, 10): - import typing as typing_extensions +if sys.version_info >= (3, 11): + from typing import TypeAlias as _TypeAlias, Never as _Never else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias, Never as _Never -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor class _DataChannelState: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _DataChannelStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DataChannelState.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _DataChannelStateEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_DataChannelState.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor DC_CONNECTING: _DataChannelState.ValueType # 0 DC_OPEN: _DataChannelState.ValueType # 1 DC_CLOSING: _DataChannelState.ValueType # 2 @@ -49,14 +49,14 @@ DC_CONNECTING: DataChannelState.ValueType # 0 DC_OPEN: DataChannelState.ValueType # 1 DC_CLOSING: DataChannelState.ValueType # 2 DC_CLOSED: DataChannelState.ValueType # 3 -global___DataChannelState = DataChannelState +Global___DataChannelState: _TypeAlias = DataChannelState # noqa: Y015 class _QualityLimitationReason: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _QualityLimitationReasonEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_QualityLimitationReason.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _QualityLimitationReasonEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_QualityLimitationReason.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor LIMITATION_NONE: _QualityLimitationReason.ValueType # 0 LIMITATION_CPU: _QualityLimitationReason.ValueType # 1 LIMITATION_BANDWIDTH: _QualityLimitationReason.ValueType # 2 @@ -68,14 +68,14 @@ LIMITATION_NONE: QualityLimitationReason.ValueType # 0 LIMITATION_CPU: QualityLimitationReason.ValueType # 1 LIMITATION_BANDWIDTH: QualityLimitationReason.ValueType # 2 LIMITATION_OTHER: QualityLimitationReason.ValueType # 3 -global___QualityLimitationReason = QualityLimitationReason +Global___QualityLimitationReason: _TypeAlias = QualityLimitationReason # noqa: Y015 class _IceRole: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _IceRoleEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IceRole.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _IceRoleEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_IceRole.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor ICE_UNKNOWN: _IceRole.ValueType # 0 ICE_CONTROLLING: _IceRole.ValueType # 1 ICE_CONTROLLED: _IceRole.ValueType # 2 @@ -85,14 +85,14 @@ class IceRole(_IceRole, metaclass=_IceRoleEnumTypeWrapper): ... ICE_UNKNOWN: IceRole.ValueType # 0 ICE_CONTROLLING: IceRole.ValueType # 1 ICE_CONTROLLED: IceRole.ValueType # 2 -global___IceRole = IceRole +Global___IceRole: _TypeAlias = IceRole # noqa: Y015 class _DtlsTransportState: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _DtlsTransportStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DtlsTransportState.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _DtlsTransportStateEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_DtlsTransportState.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor DTLS_TRANSPORT_NEW: _DtlsTransportState.ValueType # 0 DTLS_TRANSPORT_CONNECTING: _DtlsTransportState.ValueType # 1 DTLS_TRANSPORT_CONNECTED: _DtlsTransportState.ValueType # 2 @@ -106,14 +106,14 @@ DTLS_TRANSPORT_CONNECTING: DtlsTransportState.ValueType # 1 DTLS_TRANSPORT_CONNECTED: DtlsTransportState.ValueType # 2 DTLS_TRANSPORT_CLOSED: DtlsTransportState.ValueType # 3 DTLS_TRANSPORT_FAILED: DtlsTransportState.ValueType # 4 -global___DtlsTransportState = DtlsTransportState +Global___DtlsTransportState: _TypeAlias = DtlsTransportState # noqa: Y015 class _IceTransportState: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _IceTransportStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IceTransportState.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _IceTransportStateEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_IceTransportState.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor ICE_TRANSPORT_NEW: _IceTransportState.ValueType # 0 ICE_TRANSPORT_CHECKING: _IceTransportState.ValueType # 1 ICE_TRANSPORT_CONNECTED: _IceTransportState.ValueType # 2 @@ -131,14 +131,14 @@ ICE_TRANSPORT_COMPLETED: IceTransportState.ValueType # 3 ICE_TRANSPORT_DISCONNECTED: IceTransportState.ValueType # 4 ICE_TRANSPORT_FAILED: IceTransportState.ValueType # 5 ICE_TRANSPORT_CLOSED: IceTransportState.ValueType # 6 -global___IceTransportState = IceTransportState +Global___IceTransportState: _TypeAlias = IceTransportState # noqa: Y015 class _DtlsRole: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _DtlsRoleEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DtlsRole.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _DtlsRoleEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_DtlsRole.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor DTLS_CLIENT: _DtlsRole.ValueType # 0 DTLS_SERVER: _DtlsRole.ValueType # 1 DTLS_UNKNOWN: _DtlsRole.ValueType # 2 @@ -148,14 +148,14 @@ class DtlsRole(_DtlsRole, metaclass=_DtlsRoleEnumTypeWrapper): ... DTLS_CLIENT: DtlsRole.ValueType # 0 DTLS_SERVER: DtlsRole.ValueType # 1 DTLS_UNKNOWN: DtlsRole.ValueType # 2 -global___DtlsRole = DtlsRole +Global___DtlsRole: _TypeAlias = DtlsRole # noqa: Y015 class _IceCandidatePairState: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _IceCandidatePairStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IceCandidatePairState.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _IceCandidatePairStateEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_IceCandidatePairState.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor PAIR_FROZEN: _IceCandidatePairState.ValueType # 0 PAIR_WAITING: _IceCandidatePairState.ValueType # 1 PAIR_IN_PROGRESS: _IceCandidatePairState.ValueType # 2 @@ -169,14 +169,14 @@ PAIR_WAITING: IceCandidatePairState.ValueType # 1 PAIR_IN_PROGRESS: IceCandidatePairState.ValueType # 2 PAIR_FAILED: IceCandidatePairState.ValueType # 3 PAIR_SUCCEEDED: IceCandidatePairState.ValueType # 4 -global___IceCandidatePairState = IceCandidatePairState +Global___IceCandidatePairState: _TypeAlias = IceCandidatePairState # noqa: Y015 class _IceCandidateType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _IceCandidateTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IceCandidateType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _IceCandidateTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_IceCandidateType.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor HOST: _IceCandidateType.ValueType # 0 SRFLX: _IceCandidateType.ValueType # 1 PRFLX: _IceCandidateType.ValueType # 2 @@ -188,14 +188,14 @@ HOST: IceCandidateType.ValueType # 0 SRFLX: IceCandidateType.ValueType # 1 PRFLX: IceCandidateType.ValueType # 2 RELAY: IceCandidateType.ValueType # 3 -global___IceCandidateType = IceCandidateType +Global___IceCandidateType: _TypeAlias = IceCandidateType # noqa: Y015 class _IceServerTransportProtocol: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _IceServerTransportProtocolEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IceServerTransportProtocol.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _IceServerTransportProtocolEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_IceServerTransportProtocol.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor TRANSPORT_UDP: _IceServerTransportProtocol.ValueType # 0 TRANSPORT_TCP: _IceServerTransportProtocol.ValueType # 1 TRANSPORT_TLS: _IceServerTransportProtocol.ValueType # 2 @@ -205,14 +205,14 @@ class IceServerTransportProtocol(_IceServerTransportProtocol, metaclass=_IceServ TRANSPORT_UDP: IceServerTransportProtocol.ValueType # 0 TRANSPORT_TCP: IceServerTransportProtocol.ValueType # 1 TRANSPORT_TLS: IceServerTransportProtocol.ValueType # 2 -global___IceServerTransportProtocol = IceServerTransportProtocol +Global___IceServerTransportProtocol: _TypeAlias = IceServerTransportProtocol # noqa: Y015 class _IceTcpCandidateType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _IceTcpCandidateTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IceTcpCandidateType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _IceTcpCandidateTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_IceTcpCandidateType.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor CANDIDATE_ACTIVE: _IceTcpCandidateType.ValueType # 0 CANDIDATE_PASSIVE: _IceTcpCandidateType.ValueType # 1 CANDIDATE_SO: _IceTcpCandidateType.ValueType # 2 @@ -222,1293 +222,1410 @@ class IceTcpCandidateType(_IceTcpCandidateType, metaclass=_IceTcpCandidateTypeEn CANDIDATE_ACTIVE: IceTcpCandidateType.ValueType # 0 CANDIDATE_PASSIVE: IceTcpCandidateType.ValueType # 1 CANDIDATE_SO: IceTcpCandidateType.ValueType # 2 -global___IceTcpCandidateType = IceTcpCandidateType - -@typing.final -class RtcStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class Codec(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - CODEC_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def codec(self) -> global___CodecStats: ... +Global___IceTcpCandidateType: _TypeAlias = IceTcpCandidateType # noqa: Y015 + +@_typing.final +class RtcStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class Codec(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RTC_FIELD_NUMBER: _builtins.int + CODEC_FIELD_NUMBER: _builtins.int + @_builtins.property + def rtc(self) -> Global___RtcStatsData: ... + @_builtins.property + def codec(self) -> Global___CodecStats: ... def __init__( self, *, - rtc: global___RtcStatsData | None = ..., - codec: global___CodecStats | None = ..., + rtc: Global___RtcStatsData | None = ..., + codec: Global___CodecStats | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["codec", b"codec", "rtc", b"rtc"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["codec", b"codec", "rtc", b"rtc"]) -> None: ... - - @typing.final - class InboundRtp(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - STREAM_FIELD_NUMBER: builtins.int - RECEIVED_FIELD_NUMBER: builtins.int - INBOUND_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def stream(self) -> global___RtpStreamStats: ... - @property - def received(self) -> global___ReceivedRtpStreamStats: ... - @property - def inbound(self) -> global___InboundRtpStreamStats: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["codec", b"codec", "rtc", b"rtc"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["codec", b"codec", "rtc", b"rtc"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class InboundRtp(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RTC_FIELD_NUMBER: _builtins.int + STREAM_FIELD_NUMBER: _builtins.int + RECEIVED_FIELD_NUMBER: _builtins.int + INBOUND_FIELD_NUMBER: _builtins.int + @_builtins.property + def rtc(self) -> Global___RtcStatsData: ... + @_builtins.property + def stream(self) -> Global___RtpStreamStats: ... + @_builtins.property + def received(self) -> Global___ReceivedRtpStreamStats: ... + @_builtins.property + def inbound(self) -> Global___InboundRtpStreamStats: ... def __init__( self, *, - rtc: global___RtcStatsData | None = ..., - stream: global___RtpStreamStats | None = ..., - received: global___ReceivedRtpStreamStats | None = ..., - inbound: global___InboundRtpStreamStats | None = ..., + rtc: Global___RtcStatsData | None = ..., + stream: Global___RtpStreamStats | None = ..., + received: Global___ReceivedRtpStreamStats | None = ..., + inbound: Global___InboundRtpStreamStats | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["inbound", b"inbound", "received", b"received", "rtc", b"rtc", "stream", b"stream"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["inbound", b"inbound", "received", b"received", "rtc", b"rtc", "stream", b"stream"]) -> None: ... - - @typing.final - class OutboundRtp(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - STREAM_FIELD_NUMBER: builtins.int - SENT_FIELD_NUMBER: builtins.int - OUTBOUND_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def stream(self) -> global___RtpStreamStats: ... - @property - def sent(self) -> global___SentRtpStreamStats: ... - @property - def outbound(self) -> global___OutboundRtpStreamStats: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["inbound", b"inbound", "received", b"received", "rtc", b"rtc", "stream", b"stream"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["inbound", b"inbound", "received", b"received", "rtc", b"rtc", "stream", b"stream"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class OutboundRtp(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RTC_FIELD_NUMBER: _builtins.int + STREAM_FIELD_NUMBER: _builtins.int + SENT_FIELD_NUMBER: _builtins.int + OUTBOUND_FIELD_NUMBER: _builtins.int + @_builtins.property + def rtc(self) -> Global___RtcStatsData: ... + @_builtins.property + def stream(self) -> Global___RtpStreamStats: ... + @_builtins.property + def sent(self) -> Global___SentRtpStreamStats: ... + @_builtins.property + def outbound(self) -> Global___OutboundRtpStreamStats: ... def __init__( self, *, - rtc: global___RtcStatsData | None = ..., - stream: global___RtpStreamStats | None = ..., - sent: global___SentRtpStreamStats | None = ..., - outbound: global___OutboundRtpStreamStats | None = ..., + rtc: Global___RtcStatsData | None = ..., + stream: Global___RtpStreamStats | None = ..., + sent: Global___SentRtpStreamStats | None = ..., + outbound: Global___OutboundRtpStreamStats | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["outbound", b"outbound", "rtc", b"rtc", "sent", b"sent", "stream", b"stream"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["outbound", b"outbound", "rtc", b"rtc", "sent", b"sent", "stream", b"stream"]) -> None: ... - - @typing.final - class RemoteInboundRtp(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - STREAM_FIELD_NUMBER: builtins.int - RECEIVED_FIELD_NUMBER: builtins.int - REMOTE_INBOUND_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def stream(self) -> global___RtpStreamStats: ... - @property - def received(self) -> global___ReceivedRtpStreamStats: ... - @property - def remote_inbound(self) -> global___RemoteInboundRtpStreamStats: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["outbound", b"outbound", "rtc", b"rtc", "sent", b"sent", "stream", b"stream"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["outbound", b"outbound", "rtc", b"rtc", "sent", b"sent", "stream", b"stream"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class RemoteInboundRtp(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RTC_FIELD_NUMBER: _builtins.int + STREAM_FIELD_NUMBER: _builtins.int + RECEIVED_FIELD_NUMBER: _builtins.int + REMOTE_INBOUND_FIELD_NUMBER: _builtins.int + @_builtins.property + def rtc(self) -> Global___RtcStatsData: ... + @_builtins.property + def stream(self) -> Global___RtpStreamStats: ... + @_builtins.property + def received(self) -> Global___ReceivedRtpStreamStats: ... + @_builtins.property + def remote_inbound(self) -> Global___RemoteInboundRtpStreamStats: ... def __init__( self, *, - rtc: global___RtcStatsData | None = ..., - stream: global___RtpStreamStats | None = ..., - received: global___ReceivedRtpStreamStats | None = ..., - remote_inbound: global___RemoteInboundRtpStreamStats | None = ..., + rtc: Global___RtcStatsData | None = ..., + stream: Global___RtpStreamStats | None = ..., + received: Global___ReceivedRtpStreamStats | None = ..., + remote_inbound: Global___RemoteInboundRtpStreamStats | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["received", b"received", "remote_inbound", b"remote_inbound", "rtc", b"rtc", "stream", b"stream"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["received", b"received", "remote_inbound", b"remote_inbound", "rtc", b"rtc", "stream", b"stream"]) -> None: ... - - @typing.final - class RemoteOutboundRtp(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - STREAM_FIELD_NUMBER: builtins.int - SENT_FIELD_NUMBER: builtins.int - REMOTE_OUTBOUND_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def stream(self) -> global___RtpStreamStats: ... - @property - def sent(self) -> global___SentRtpStreamStats: ... - @property - def remote_outbound(self) -> global___RemoteOutboundRtpStreamStats: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["received", b"received", "remote_inbound", b"remote_inbound", "rtc", b"rtc", "stream", b"stream"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["received", b"received", "remote_inbound", b"remote_inbound", "rtc", b"rtc", "stream", b"stream"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class RemoteOutboundRtp(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RTC_FIELD_NUMBER: _builtins.int + STREAM_FIELD_NUMBER: _builtins.int + SENT_FIELD_NUMBER: _builtins.int + REMOTE_OUTBOUND_FIELD_NUMBER: _builtins.int + @_builtins.property + def rtc(self) -> Global___RtcStatsData: ... + @_builtins.property + def stream(self) -> Global___RtpStreamStats: ... + @_builtins.property + def sent(self) -> Global___SentRtpStreamStats: ... + @_builtins.property + def remote_outbound(self) -> Global___RemoteOutboundRtpStreamStats: ... def __init__( self, *, - rtc: global___RtcStatsData | None = ..., - stream: global___RtpStreamStats | None = ..., - sent: global___SentRtpStreamStats | None = ..., - remote_outbound: global___RemoteOutboundRtpStreamStats | None = ..., + rtc: Global___RtcStatsData | None = ..., + stream: Global___RtpStreamStats | None = ..., + sent: Global___SentRtpStreamStats | None = ..., + remote_outbound: Global___RemoteOutboundRtpStreamStats | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["remote_outbound", b"remote_outbound", "rtc", b"rtc", "sent", b"sent", "stream", b"stream"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["remote_outbound", b"remote_outbound", "rtc", b"rtc", "sent", b"sent", "stream", b"stream"]) -> None: ... - - @typing.final - class MediaSource(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - SOURCE_FIELD_NUMBER: builtins.int - AUDIO_FIELD_NUMBER: builtins.int - VIDEO_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def source(self) -> global___MediaSourceStats: ... - @property - def audio(self) -> global___AudioSourceStats: ... - @property - def video(self) -> global___VideoSourceStats: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["remote_outbound", b"remote_outbound", "rtc", b"rtc", "sent", b"sent", "stream", b"stream"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["remote_outbound", b"remote_outbound", "rtc", b"rtc", "sent", b"sent", "stream", b"stream"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class MediaSource(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RTC_FIELD_NUMBER: _builtins.int + SOURCE_FIELD_NUMBER: _builtins.int + AUDIO_FIELD_NUMBER: _builtins.int + VIDEO_FIELD_NUMBER: _builtins.int + @_builtins.property + def rtc(self) -> Global___RtcStatsData: ... + @_builtins.property + def source(self) -> Global___MediaSourceStats: ... + @_builtins.property + def audio(self) -> Global___AudioSourceStats: ... + @_builtins.property + def video(self) -> Global___VideoSourceStats: ... def __init__( self, *, - rtc: global___RtcStatsData | None = ..., - source: global___MediaSourceStats | None = ..., - audio: global___AudioSourceStats | None = ..., - video: global___VideoSourceStats | None = ..., + rtc: Global___RtcStatsData | None = ..., + source: Global___MediaSourceStats | None = ..., + audio: Global___AudioSourceStats | None = ..., + video: Global___VideoSourceStats | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["audio", b"audio", "rtc", b"rtc", "source", b"source", "video", b"video"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["audio", b"audio", "rtc", b"rtc", "source", b"source", "video", b"video"]) -> None: ... - - @typing.final - class MediaPlayout(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - AUDIO_PLAYOUT_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def audio_playout(self) -> global___AudioPlayoutStats: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["audio", b"audio", "rtc", b"rtc", "source", b"source", "video", b"video"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["audio", b"audio", "rtc", b"rtc", "source", b"source", "video", b"video"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class MediaPlayout(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RTC_FIELD_NUMBER: _builtins.int + AUDIO_PLAYOUT_FIELD_NUMBER: _builtins.int + @_builtins.property + def rtc(self) -> Global___RtcStatsData: ... + @_builtins.property + def audio_playout(self) -> Global___AudioPlayoutStats: ... def __init__( self, *, - rtc: global___RtcStatsData | None = ..., - audio_playout: global___AudioPlayoutStats | None = ..., + rtc: Global___RtcStatsData | None = ..., + audio_playout: Global___AudioPlayoutStats | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["audio_playout", b"audio_playout", "rtc", b"rtc"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["audio_playout", b"audio_playout", "rtc", b"rtc"]) -> None: ... - - @typing.final - class PeerConnection(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - PC_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def pc(self) -> global___PeerConnectionStats: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["audio_playout", b"audio_playout", "rtc", b"rtc"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["audio_playout", b"audio_playout", "rtc", b"rtc"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class PeerConnection(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RTC_FIELD_NUMBER: _builtins.int + PC_FIELD_NUMBER: _builtins.int + @_builtins.property + def rtc(self) -> Global___RtcStatsData: ... + @_builtins.property + def pc(self) -> Global___PeerConnectionStats: ... def __init__( self, *, - rtc: global___RtcStatsData | None = ..., - pc: global___PeerConnectionStats | None = ..., + rtc: Global___RtcStatsData | None = ..., + pc: Global___PeerConnectionStats | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["pc", b"pc", "rtc", b"rtc"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["pc", b"pc", "rtc", b"rtc"]) -> None: ... - - @typing.final - class DataChannel(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - DC_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def dc(self) -> global___DataChannelStats: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pc", b"pc", "rtc", b"rtc"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["pc", b"pc", "rtc", b"rtc"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class DataChannel(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RTC_FIELD_NUMBER: _builtins.int + DC_FIELD_NUMBER: _builtins.int + @_builtins.property + def rtc(self) -> Global___RtcStatsData: ... + @_builtins.property + def dc(self) -> Global___DataChannelStats: ... def __init__( self, *, - rtc: global___RtcStatsData | None = ..., - dc: global___DataChannelStats | None = ..., + rtc: Global___RtcStatsData | None = ..., + dc: Global___DataChannelStats | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["dc", b"dc", "rtc", b"rtc"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["dc", b"dc", "rtc", b"rtc"]) -> None: ... - - @typing.final - class Transport(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - TRANSPORT_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def transport(self) -> global___TransportStats: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["dc", b"dc", "rtc", b"rtc"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["dc", b"dc", "rtc", b"rtc"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class Transport(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RTC_FIELD_NUMBER: _builtins.int + TRANSPORT_FIELD_NUMBER: _builtins.int + @_builtins.property + def rtc(self) -> Global___RtcStatsData: ... + @_builtins.property + def transport(self) -> Global___TransportStats: ... def __init__( self, *, - rtc: global___RtcStatsData | None = ..., - transport: global___TransportStats | None = ..., + rtc: Global___RtcStatsData | None = ..., + transport: Global___TransportStats | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["rtc", b"rtc", "transport", b"transport"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["rtc", b"rtc", "transport", b"transport"]) -> None: ... - - @typing.final - class CandidatePair(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - CANDIDATE_PAIR_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def candidate_pair(self) -> global___CandidatePairStats: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["rtc", b"rtc", "transport", b"transport"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["rtc", b"rtc", "transport", b"transport"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class CandidatePair(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RTC_FIELD_NUMBER: _builtins.int + CANDIDATE_PAIR_FIELD_NUMBER: _builtins.int + @_builtins.property + def rtc(self) -> Global___RtcStatsData: ... + @_builtins.property + def candidate_pair(self) -> Global___CandidatePairStats: ... def __init__( self, *, - rtc: global___RtcStatsData | None = ..., - candidate_pair: global___CandidatePairStats | None = ..., + rtc: Global___RtcStatsData | None = ..., + candidate_pair: Global___CandidatePairStats | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["candidate_pair", b"candidate_pair", "rtc", b"rtc"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["candidate_pair", b"candidate_pair", "rtc", b"rtc"]) -> None: ... - - @typing.final - class LocalCandidate(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - CANDIDATE_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def candidate(self) -> global___IceCandidateStats: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["candidate_pair", b"candidate_pair", "rtc", b"rtc"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["candidate_pair", b"candidate_pair", "rtc", b"rtc"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class LocalCandidate(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RTC_FIELD_NUMBER: _builtins.int + CANDIDATE_FIELD_NUMBER: _builtins.int + @_builtins.property + def rtc(self) -> Global___RtcStatsData: ... + @_builtins.property + def candidate(self) -> Global___IceCandidateStats: ... def __init__( self, *, - rtc: global___RtcStatsData | None = ..., - candidate: global___IceCandidateStats | None = ..., + rtc: Global___RtcStatsData | None = ..., + candidate: Global___IceCandidateStats | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["candidate", b"candidate", "rtc", b"rtc"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["candidate", b"candidate", "rtc", b"rtc"]) -> None: ... - - @typing.final - class RemoteCandidate(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - CANDIDATE_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def candidate(self) -> global___IceCandidateStats: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["candidate", b"candidate", "rtc", b"rtc"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["candidate", b"candidate", "rtc", b"rtc"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class RemoteCandidate(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RTC_FIELD_NUMBER: _builtins.int + CANDIDATE_FIELD_NUMBER: _builtins.int + @_builtins.property + def rtc(self) -> Global___RtcStatsData: ... + @_builtins.property + def candidate(self) -> Global___IceCandidateStats: ... def __init__( self, *, - rtc: global___RtcStatsData | None = ..., - candidate: global___IceCandidateStats | None = ..., + rtc: Global___RtcStatsData | None = ..., + candidate: Global___IceCandidateStats | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["candidate", b"candidate", "rtc", b"rtc"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["candidate", b"candidate", "rtc", b"rtc"]) -> None: ... - - @typing.final - class Certificate(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - CERTIFICATE_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def certificate(self) -> global___CertificateStats: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["candidate", b"candidate", "rtc", b"rtc"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["candidate", b"candidate", "rtc", b"rtc"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class Certificate(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RTC_FIELD_NUMBER: _builtins.int + CERTIFICATE_FIELD_NUMBER: _builtins.int + @_builtins.property + def rtc(self) -> Global___RtcStatsData: ... + @_builtins.property + def certificate(self) -> Global___CertificateStats: ... def __init__( self, *, - rtc: global___RtcStatsData | None = ..., - certificate: global___CertificateStats | None = ..., + rtc: Global___RtcStatsData | None = ..., + certificate: Global___CertificateStats | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["certificate", b"certificate", "rtc", b"rtc"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["certificate", b"certificate", "rtc", b"rtc"]) -> None: ... - - @typing.final - class Stream(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - STREAM_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def stream(self) -> global___StreamStats: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["certificate", b"certificate", "rtc", b"rtc"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["certificate", b"certificate", "rtc", b"rtc"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class Stream(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RTC_FIELD_NUMBER: _builtins.int + STREAM_FIELD_NUMBER: _builtins.int + @_builtins.property + def rtc(self) -> Global___RtcStatsData: ... + @_builtins.property + def stream(self) -> Global___StreamStats: ... def __init__( self, *, - rtc: global___RtcStatsData | None = ..., - stream: global___StreamStats | None = ..., + rtc: Global___RtcStatsData | None = ..., + stream: Global___StreamStats | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["rtc", b"rtc", "stream", b"stream"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["rtc", b"rtc", "stream", b"stream"]) -> None: ... - - @typing.final - class Track(google.protobuf.message.Message): + _HasFieldArgType: _TypeAlias = _typing.Literal["rtc", b"rtc", "stream", b"stream"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["rtc", b"rtc", "stream", b"stream"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class Track(_message.Message): """Deprecated""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... - - CODEC_FIELD_NUMBER: builtins.int - INBOUND_RTP_FIELD_NUMBER: builtins.int - OUTBOUND_RTP_FIELD_NUMBER: builtins.int - REMOTE_INBOUND_RTP_FIELD_NUMBER: builtins.int - REMOTE_OUTBOUND_RTP_FIELD_NUMBER: builtins.int - MEDIA_SOURCE_FIELD_NUMBER: builtins.int - MEDIA_PLAYOUT_FIELD_NUMBER: builtins.int - PEER_CONNECTION_FIELD_NUMBER: builtins.int - DATA_CHANNEL_FIELD_NUMBER: builtins.int - TRANSPORT_FIELD_NUMBER: builtins.int - CANDIDATE_PAIR_FIELD_NUMBER: builtins.int - LOCAL_CANDIDATE_FIELD_NUMBER: builtins.int - REMOTE_CANDIDATE_FIELD_NUMBER: builtins.int - CERTIFICATE_FIELD_NUMBER: builtins.int - STREAM_FIELD_NUMBER: builtins.int - TRACK_FIELD_NUMBER: builtins.int - @property - def codec(self) -> global___RtcStats.Codec: ... - @property - def inbound_rtp(self) -> global___RtcStats.InboundRtp: ... - @property - def outbound_rtp(self) -> global___RtcStats.OutboundRtp: ... - @property - def remote_inbound_rtp(self) -> global___RtcStats.RemoteInboundRtp: ... - @property - def remote_outbound_rtp(self) -> global___RtcStats.RemoteOutboundRtp: ... - @property - def media_source(self) -> global___RtcStats.MediaSource: ... - @property - def media_playout(self) -> global___RtcStats.MediaPlayout: ... - @property - def peer_connection(self) -> global___RtcStats.PeerConnection: ... - @property - def data_channel(self) -> global___RtcStats.DataChannel: ... - @property - def transport(self) -> global___RtcStats.Transport: ... - @property - def candidate_pair(self) -> global___RtcStats.CandidatePair: ... - @property - def local_candidate(self) -> global___RtcStats.LocalCandidate: ... - @property - def remote_candidate(self) -> global___RtcStats.RemoteCandidate: ... - @property - def certificate(self) -> global___RtcStats.Certificate: ... - @property - def stream(self) -> global___RtcStats.Stream: ... - @property - def track(self) -> global___RtcStats.Track: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + CODEC_FIELD_NUMBER: _builtins.int + INBOUND_RTP_FIELD_NUMBER: _builtins.int + OUTBOUND_RTP_FIELD_NUMBER: _builtins.int + REMOTE_INBOUND_RTP_FIELD_NUMBER: _builtins.int + REMOTE_OUTBOUND_RTP_FIELD_NUMBER: _builtins.int + MEDIA_SOURCE_FIELD_NUMBER: _builtins.int + MEDIA_PLAYOUT_FIELD_NUMBER: _builtins.int + PEER_CONNECTION_FIELD_NUMBER: _builtins.int + DATA_CHANNEL_FIELD_NUMBER: _builtins.int + TRANSPORT_FIELD_NUMBER: _builtins.int + CANDIDATE_PAIR_FIELD_NUMBER: _builtins.int + LOCAL_CANDIDATE_FIELD_NUMBER: _builtins.int + REMOTE_CANDIDATE_FIELD_NUMBER: _builtins.int + CERTIFICATE_FIELD_NUMBER: _builtins.int + STREAM_FIELD_NUMBER: _builtins.int + TRACK_FIELD_NUMBER: _builtins.int + @_builtins.property + def codec(self) -> Global___RtcStats.Codec: ... + @_builtins.property + def inbound_rtp(self) -> Global___RtcStats.InboundRtp: ... + @_builtins.property + def outbound_rtp(self) -> Global___RtcStats.OutboundRtp: ... + @_builtins.property + def remote_inbound_rtp(self) -> Global___RtcStats.RemoteInboundRtp: ... + @_builtins.property + def remote_outbound_rtp(self) -> Global___RtcStats.RemoteOutboundRtp: ... + @_builtins.property + def media_source(self) -> Global___RtcStats.MediaSource: ... + @_builtins.property + def media_playout(self) -> Global___RtcStats.MediaPlayout: ... + @_builtins.property + def peer_connection(self) -> Global___RtcStats.PeerConnection: ... + @_builtins.property + def data_channel(self) -> Global___RtcStats.DataChannel: ... + @_builtins.property + def transport(self) -> Global___RtcStats.Transport: ... + @_builtins.property + def candidate_pair(self) -> Global___RtcStats.CandidatePair: ... + @_builtins.property + def local_candidate(self) -> Global___RtcStats.LocalCandidate: ... + @_builtins.property + def remote_candidate(self) -> Global___RtcStats.RemoteCandidate: ... + @_builtins.property + def certificate(self) -> Global___RtcStats.Certificate: ... + @_builtins.property + def stream(self) -> Global___RtcStats.Stream: ... + @_builtins.property + def track(self) -> Global___RtcStats.Track: ... def __init__( self, *, - codec: global___RtcStats.Codec | None = ..., - inbound_rtp: global___RtcStats.InboundRtp | None = ..., - outbound_rtp: global___RtcStats.OutboundRtp | None = ..., - remote_inbound_rtp: global___RtcStats.RemoteInboundRtp | None = ..., - remote_outbound_rtp: global___RtcStats.RemoteOutboundRtp | None = ..., - media_source: global___RtcStats.MediaSource | None = ..., - media_playout: global___RtcStats.MediaPlayout | None = ..., - peer_connection: global___RtcStats.PeerConnection | None = ..., - data_channel: global___RtcStats.DataChannel | None = ..., - transport: global___RtcStats.Transport | None = ..., - candidate_pair: global___RtcStats.CandidatePair | None = ..., - local_candidate: global___RtcStats.LocalCandidate | None = ..., - remote_candidate: global___RtcStats.RemoteCandidate | None = ..., - certificate: global___RtcStats.Certificate | None = ..., - stream: global___RtcStats.Stream | None = ..., - track: global___RtcStats.Track | None = ..., + codec: Global___RtcStats.Codec | None = ..., + inbound_rtp: Global___RtcStats.InboundRtp | None = ..., + outbound_rtp: Global___RtcStats.OutboundRtp | None = ..., + remote_inbound_rtp: Global___RtcStats.RemoteInboundRtp | None = ..., + remote_outbound_rtp: Global___RtcStats.RemoteOutboundRtp | None = ..., + media_source: Global___RtcStats.MediaSource | None = ..., + media_playout: Global___RtcStats.MediaPlayout | None = ..., + peer_connection: Global___RtcStats.PeerConnection | None = ..., + data_channel: Global___RtcStats.DataChannel | None = ..., + transport: Global___RtcStats.Transport | None = ..., + candidate_pair: Global___RtcStats.CandidatePair | None = ..., + local_candidate: Global___RtcStats.LocalCandidate | None = ..., + remote_candidate: Global___RtcStats.RemoteCandidate | None = ..., + certificate: Global___RtcStats.Certificate | None = ..., + stream: Global___RtcStats.Stream | None = ..., + track: Global___RtcStats.Track | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["candidate_pair", b"candidate_pair", "certificate", b"certificate", "codec", b"codec", "data_channel", b"data_channel", "inbound_rtp", b"inbound_rtp", "local_candidate", b"local_candidate", "media_playout", b"media_playout", "media_source", b"media_source", "outbound_rtp", b"outbound_rtp", "peer_connection", b"peer_connection", "remote_candidate", b"remote_candidate", "remote_inbound_rtp", b"remote_inbound_rtp", "remote_outbound_rtp", b"remote_outbound_rtp", "stats", b"stats", "stream", b"stream", "track", b"track", "transport", b"transport"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["candidate_pair", b"candidate_pair", "certificate", b"certificate", "codec", b"codec", "data_channel", b"data_channel", "inbound_rtp", b"inbound_rtp", "local_candidate", b"local_candidate", "media_playout", b"media_playout", "media_source", b"media_source", "outbound_rtp", b"outbound_rtp", "peer_connection", b"peer_connection", "remote_candidate", b"remote_candidate", "remote_inbound_rtp", b"remote_inbound_rtp", "remote_outbound_rtp", b"remote_outbound_rtp", "stats", b"stats", "stream", b"stream", "track", b"track", "transport", b"transport"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["stats", b"stats"]) -> typing.Literal["codec", "inbound_rtp", "outbound_rtp", "remote_inbound_rtp", "remote_outbound_rtp", "media_source", "media_playout", "peer_connection", "data_channel", "transport", "candidate_pair", "local_candidate", "remote_candidate", "certificate", "stream", "track"] | None: ... - -global___RtcStats = RtcStats - -@typing.final -class RtcStatsData(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ID_FIELD_NUMBER: builtins.int - TIMESTAMP_FIELD_NUMBER: builtins.int - id: builtins.str - timestamp: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["candidate_pair", b"candidate_pair", "certificate", b"certificate", "codec", b"codec", "data_channel", b"data_channel", "inbound_rtp", b"inbound_rtp", "local_candidate", b"local_candidate", "media_playout", b"media_playout", "media_source", b"media_source", "outbound_rtp", b"outbound_rtp", "peer_connection", b"peer_connection", "remote_candidate", b"remote_candidate", "remote_inbound_rtp", b"remote_inbound_rtp", "remote_outbound_rtp", b"remote_outbound_rtp", "stats", b"stats", "stream", b"stream", "track", b"track", "transport", b"transport"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["candidate_pair", b"candidate_pair", "certificate", b"certificate", "codec", b"codec", "data_channel", b"data_channel", "inbound_rtp", b"inbound_rtp", "local_candidate", b"local_candidate", "media_playout", b"media_playout", "media_source", b"media_source", "outbound_rtp", b"outbound_rtp", "peer_connection", b"peer_connection", "remote_candidate", b"remote_candidate", "remote_inbound_rtp", b"remote_inbound_rtp", "remote_outbound_rtp", b"remote_outbound_rtp", "stats", b"stats", "stream", b"stream", "track", b"track", "transport", b"transport"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_stats: _TypeAlias = _typing.Literal["codec", "inbound_rtp", "outbound_rtp", "remote_inbound_rtp", "remote_outbound_rtp", "media_source", "media_playout", "peer_connection", "data_channel", "transport", "candidate_pair", "local_candidate", "remote_candidate", "certificate", "stream", "track"] # noqa: Y015 + _WhichOneofArgType_stats: _TypeAlias = _typing.Literal["stats", b"stats"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_stats) -> _WhichOneofReturnType_stats | None: ... + +Global___RtcStats: _TypeAlias = RtcStats # noqa: Y015 + +@_typing.final +class RtcStatsData(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ID_FIELD_NUMBER: _builtins.int + TIMESTAMP_FIELD_NUMBER: _builtins.int + id: _builtins.str + timestamp: _builtins.int def __init__( self, *, - id: builtins.str | None = ..., - timestamp: builtins.int | None = ..., + id: _builtins.str | None = ..., + timestamp: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["id", b"id", "timestamp", b"timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["id", b"id", "timestamp", b"timestamp"]) -> None: ... - -global___RtcStatsData = RtcStatsData - -@typing.final -class CodecStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PAYLOAD_TYPE_FIELD_NUMBER: builtins.int - TRANSPORT_ID_FIELD_NUMBER: builtins.int - MIME_TYPE_FIELD_NUMBER: builtins.int - CLOCK_RATE_FIELD_NUMBER: builtins.int - CHANNELS_FIELD_NUMBER: builtins.int - SDP_FMTP_LINE_FIELD_NUMBER: builtins.int - payload_type: builtins.int - transport_id: builtins.str - mime_type: builtins.str - clock_rate: builtins.int - channels: builtins.int - sdp_fmtp_line: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["id", b"id", "timestamp", b"timestamp"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["id", b"id", "timestamp", b"timestamp"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___RtcStatsData: _TypeAlias = RtcStatsData # noqa: Y015 + +@_typing.final +class CodecStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PAYLOAD_TYPE_FIELD_NUMBER: _builtins.int + TRANSPORT_ID_FIELD_NUMBER: _builtins.int + MIME_TYPE_FIELD_NUMBER: _builtins.int + CLOCK_RATE_FIELD_NUMBER: _builtins.int + CHANNELS_FIELD_NUMBER: _builtins.int + SDP_FMTP_LINE_FIELD_NUMBER: _builtins.int + payload_type: _builtins.int + transport_id: _builtins.str + mime_type: _builtins.str + clock_rate: _builtins.int + channels: _builtins.int + sdp_fmtp_line: _builtins.str def __init__( self, *, - payload_type: builtins.int | None = ..., - transport_id: builtins.str | None = ..., - mime_type: builtins.str | None = ..., - clock_rate: builtins.int | None = ..., - channels: builtins.int | None = ..., - sdp_fmtp_line: builtins.str | None = ..., + payload_type: _builtins.int | None = ..., + transport_id: _builtins.str | None = ..., + mime_type: _builtins.str | None = ..., + clock_rate: _builtins.int | None = ..., + channels: _builtins.int | None = ..., + sdp_fmtp_line: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["channels", b"channels", "clock_rate", b"clock_rate", "mime_type", b"mime_type", "payload_type", b"payload_type", "sdp_fmtp_line", b"sdp_fmtp_line", "transport_id", b"transport_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["channels", b"channels", "clock_rate", b"clock_rate", "mime_type", b"mime_type", "payload_type", b"payload_type", "sdp_fmtp_line", b"sdp_fmtp_line", "transport_id", b"transport_id"]) -> None: ... - -global___CodecStats = CodecStats - -@typing.final -class RtpStreamStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - SSRC_FIELD_NUMBER: builtins.int - KIND_FIELD_NUMBER: builtins.int - TRANSPORT_ID_FIELD_NUMBER: builtins.int - CODEC_ID_FIELD_NUMBER: builtins.int - ssrc: builtins.int - kind: builtins.str - transport_id: builtins.str - codec_id: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["channels", b"channels", "clock_rate", b"clock_rate", "mime_type", b"mime_type", "payload_type", b"payload_type", "sdp_fmtp_line", b"sdp_fmtp_line", "transport_id", b"transport_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["channels", b"channels", "clock_rate", b"clock_rate", "mime_type", b"mime_type", "payload_type", b"payload_type", "sdp_fmtp_line", b"sdp_fmtp_line", "transport_id", b"transport_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___CodecStats: _TypeAlias = CodecStats # noqa: Y015 + +@_typing.final +class RtpStreamStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + SSRC_FIELD_NUMBER: _builtins.int + KIND_FIELD_NUMBER: _builtins.int + TRANSPORT_ID_FIELD_NUMBER: _builtins.int + CODEC_ID_FIELD_NUMBER: _builtins.int + ssrc: _builtins.int + kind: _builtins.str + transport_id: _builtins.str + codec_id: _builtins.str def __init__( self, *, - ssrc: builtins.int | None = ..., - kind: builtins.str | None = ..., - transport_id: builtins.str | None = ..., - codec_id: builtins.str | None = ..., + ssrc: _builtins.int | None = ..., + kind: _builtins.str | None = ..., + transport_id: _builtins.str | None = ..., + codec_id: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["codec_id", b"codec_id", "kind", b"kind", "ssrc", b"ssrc", "transport_id", b"transport_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["codec_id", b"codec_id", "kind", b"kind", "ssrc", b"ssrc", "transport_id", b"transport_id"]) -> None: ... - -global___RtpStreamStats = RtpStreamStats - -@typing.final -class ReceivedRtpStreamStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PACKETS_RECEIVED_FIELD_NUMBER: builtins.int - PACKETS_LOST_FIELD_NUMBER: builtins.int - JITTER_FIELD_NUMBER: builtins.int - packets_received: builtins.int - packets_lost: builtins.int - jitter: builtins.float + _HasFieldArgType: _TypeAlias = _typing.Literal["codec_id", b"codec_id", "kind", b"kind", "ssrc", b"ssrc", "transport_id", b"transport_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["codec_id", b"codec_id", "kind", b"kind", "ssrc", b"ssrc", "transport_id", b"transport_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___RtpStreamStats: _TypeAlias = RtpStreamStats # noqa: Y015 + +@_typing.final +class ReceivedRtpStreamStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PACKETS_RECEIVED_FIELD_NUMBER: _builtins.int + PACKETS_LOST_FIELD_NUMBER: _builtins.int + JITTER_FIELD_NUMBER: _builtins.int + packets_received: _builtins.int + packets_lost: _builtins.int + jitter: _builtins.float def __init__( self, *, - packets_received: builtins.int | None = ..., - packets_lost: builtins.int | None = ..., - jitter: builtins.float | None = ..., + packets_received: _builtins.int | None = ..., + packets_lost: _builtins.int | None = ..., + jitter: _builtins.float | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["jitter", b"jitter", "packets_lost", b"packets_lost", "packets_received", b"packets_received"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["jitter", b"jitter", "packets_lost", b"packets_lost", "packets_received", b"packets_received"]) -> None: ... - -global___ReceivedRtpStreamStats = ReceivedRtpStreamStats - -@typing.final -class InboundRtpStreamStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TRACK_IDENTIFIER_FIELD_NUMBER: builtins.int - MID_FIELD_NUMBER: builtins.int - REMOTE_ID_FIELD_NUMBER: builtins.int - FRAMES_DECODED_FIELD_NUMBER: builtins.int - KEY_FRAMES_DECODED_FIELD_NUMBER: builtins.int - FRAMES_RENDERED_FIELD_NUMBER: builtins.int - FRAMES_DROPPED_FIELD_NUMBER: builtins.int - FRAME_WIDTH_FIELD_NUMBER: builtins.int - FRAME_HEIGHT_FIELD_NUMBER: builtins.int - FRAMES_PER_SECOND_FIELD_NUMBER: builtins.int - QP_SUM_FIELD_NUMBER: builtins.int - TOTAL_DECODE_TIME_FIELD_NUMBER: builtins.int - TOTAL_INTER_FRAME_DELAY_FIELD_NUMBER: builtins.int - TOTAL_SQUARED_INTER_FRAME_DELAY_FIELD_NUMBER: builtins.int - PAUSE_COUNT_FIELD_NUMBER: builtins.int - TOTAL_PAUSE_DURATION_FIELD_NUMBER: builtins.int - FREEZE_COUNT_FIELD_NUMBER: builtins.int - TOTAL_FREEZE_DURATION_FIELD_NUMBER: builtins.int - LAST_PACKET_RECEIVED_TIMESTAMP_FIELD_NUMBER: builtins.int - HEADER_BYTES_RECEIVED_FIELD_NUMBER: builtins.int - PACKETS_DISCARDED_FIELD_NUMBER: builtins.int - FEC_BYTES_RECEIVED_FIELD_NUMBER: builtins.int - FEC_PACKETS_RECEIVED_FIELD_NUMBER: builtins.int - FEC_PACKETS_DISCARDED_FIELD_NUMBER: builtins.int - BYTES_RECEIVED_FIELD_NUMBER: builtins.int - NACK_COUNT_FIELD_NUMBER: builtins.int - FIR_COUNT_FIELD_NUMBER: builtins.int - PLI_COUNT_FIELD_NUMBER: builtins.int - TOTAL_PROCESSING_DELAY_FIELD_NUMBER: builtins.int - ESTIMATED_PLAYOUT_TIMESTAMP_FIELD_NUMBER: builtins.int - JITTER_BUFFER_DELAY_FIELD_NUMBER: builtins.int - JITTER_BUFFER_TARGET_DELAY_FIELD_NUMBER: builtins.int - JITTER_BUFFER_EMITTED_COUNT_FIELD_NUMBER: builtins.int - JITTER_BUFFER_MINIMUM_DELAY_FIELD_NUMBER: builtins.int - TOTAL_SAMPLES_RECEIVED_FIELD_NUMBER: builtins.int - CONCEALED_SAMPLES_FIELD_NUMBER: builtins.int - SILENT_CONCEALED_SAMPLES_FIELD_NUMBER: builtins.int - CONCEALMENT_EVENTS_FIELD_NUMBER: builtins.int - INSERTED_SAMPLES_FOR_DECELERATION_FIELD_NUMBER: builtins.int - REMOVED_SAMPLES_FOR_ACCELERATION_FIELD_NUMBER: builtins.int - AUDIO_LEVEL_FIELD_NUMBER: builtins.int - TOTAL_AUDIO_ENERGY_FIELD_NUMBER: builtins.int - TOTAL_SAMPLES_DURATION_FIELD_NUMBER: builtins.int - FRAMES_RECEIVED_FIELD_NUMBER: builtins.int - DECODER_IMPLEMENTATION_FIELD_NUMBER: builtins.int - PLAYOUT_ID_FIELD_NUMBER: builtins.int - POWER_EFFICIENT_DECODER_FIELD_NUMBER: builtins.int - FRAMES_ASSEMBLED_FROM_MULTIPLE_PACKETS_FIELD_NUMBER: builtins.int - TOTAL_ASSEMBLY_TIME_FIELD_NUMBER: builtins.int - RETRANSMITTED_PACKETS_RECEIVED_FIELD_NUMBER: builtins.int - RETRANSMITTED_BYTES_RECEIVED_FIELD_NUMBER: builtins.int - RTX_SSRC_FIELD_NUMBER: builtins.int - FEC_SSRC_FIELD_NUMBER: builtins.int - track_identifier: builtins.str - mid: builtins.str - remote_id: builtins.str - frames_decoded: builtins.int - key_frames_decoded: builtins.int - frames_rendered: builtins.int - frames_dropped: builtins.int - frame_width: builtins.int - frame_height: builtins.int - frames_per_second: builtins.float - qp_sum: builtins.int - total_decode_time: builtins.float - total_inter_frame_delay: builtins.float - total_squared_inter_frame_delay: builtins.float - pause_count: builtins.int - total_pause_duration: builtins.float - freeze_count: builtins.int - total_freeze_duration: builtins.float - last_packet_received_timestamp: builtins.float - header_bytes_received: builtins.int - packets_discarded: builtins.int - fec_bytes_received: builtins.int - fec_packets_received: builtins.int - fec_packets_discarded: builtins.int - bytes_received: builtins.int - nack_count: builtins.int - fir_count: builtins.int - pli_count: builtins.int - total_processing_delay: builtins.float - estimated_playout_timestamp: builtins.float - jitter_buffer_delay: builtins.float - jitter_buffer_target_delay: builtins.float - jitter_buffer_emitted_count: builtins.int - jitter_buffer_minimum_delay: builtins.float - total_samples_received: builtins.int - concealed_samples: builtins.int - silent_concealed_samples: builtins.int - concealment_events: builtins.int - inserted_samples_for_deceleration: builtins.int - removed_samples_for_acceleration: builtins.int - audio_level: builtins.float - total_audio_energy: builtins.float - total_samples_duration: builtins.float - frames_received: builtins.int - decoder_implementation: builtins.str - playout_id: builtins.str - power_efficient_decoder: builtins.bool - frames_assembled_from_multiple_packets: builtins.int - total_assembly_time: builtins.float - retransmitted_packets_received: builtins.int - retransmitted_bytes_received: builtins.int - rtx_ssrc: builtins.int - fec_ssrc: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["jitter", b"jitter", "packets_lost", b"packets_lost", "packets_received", b"packets_received"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["jitter", b"jitter", "packets_lost", b"packets_lost", "packets_received", b"packets_received"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___ReceivedRtpStreamStats: _TypeAlias = ReceivedRtpStreamStats # noqa: Y015 + +@_typing.final +class InboundRtpStreamStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + TRACK_IDENTIFIER_FIELD_NUMBER: _builtins.int + MID_FIELD_NUMBER: _builtins.int + REMOTE_ID_FIELD_NUMBER: _builtins.int + FRAMES_DECODED_FIELD_NUMBER: _builtins.int + KEY_FRAMES_DECODED_FIELD_NUMBER: _builtins.int + FRAMES_RENDERED_FIELD_NUMBER: _builtins.int + FRAMES_DROPPED_FIELD_NUMBER: _builtins.int + FRAME_WIDTH_FIELD_NUMBER: _builtins.int + FRAME_HEIGHT_FIELD_NUMBER: _builtins.int + FRAMES_PER_SECOND_FIELD_NUMBER: _builtins.int + QP_SUM_FIELD_NUMBER: _builtins.int + TOTAL_DECODE_TIME_FIELD_NUMBER: _builtins.int + TOTAL_INTER_FRAME_DELAY_FIELD_NUMBER: _builtins.int + TOTAL_SQUARED_INTER_FRAME_DELAY_FIELD_NUMBER: _builtins.int + PAUSE_COUNT_FIELD_NUMBER: _builtins.int + TOTAL_PAUSE_DURATION_FIELD_NUMBER: _builtins.int + FREEZE_COUNT_FIELD_NUMBER: _builtins.int + TOTAL_FREEZE_DURATION_FIELD_NUMBER: _builtins.int + LAST_PACKET_RECEIVED_TIMESTAMP_FIELD_NUMBER: _builtins.int + HEADER_BYTES_RECEIVED_FIELD_NUMBER: _builtins.int + PACKETS_DISCARDED_FIELD_NUMBER: _builtins.int + FEC_BYTES_RECEIVED_FIELD_NUMBER: _builtins.int + FEC_PACKETS_RECEIVED_FIELD_NUMBER: _builtins.int + FEC_PACKETS_DISCARDED_FIELD_NUMBER: _builtins.int + BYTES_RECEIVED_FIELD_NUMBER: _builtins.int + NACK_COUNT_FIELD_NUMBER: _builtins.int + FIR_COUNT_FIELD_NUMBER: _builtins.int + PLI_COUNT_FIELD_NUMBER: _builtins.int + TOTAL_PROCESSING_DELAY_FIELD_NUMBER: _builtins.int + ESTIMATED_PLAYOUT_TIMESTAMP_FIELD_NUMBER: _builtins.int + JITTER_BUFFER_DELAY_FIELD_NUMBER: _builtins.int + JITTER_BUFFER_TARGET_DELAY_FIELD_NUMBER: _builtins.int + JITTER_BUFFER_EMITTED_COUNT_FIELD_NUMBER: _builtins.int + JITTER_BUFFER_MINIMUM_DELAY_FIELD_NUMBER: _builtins.int + TOTAL_SAMPLES_RECEIVED_FIELD_NUMBER: _builtins.int + CONCEALED_SAMPLES_FIELD_NUMBER: _builtins.int + SILENT_CONCEALED_SAMPLES_FIELD_NUMBER: _builtins.int + CONCEALMENT_EVENTS_FIELD_NUMBER: _builtins.int + INSERTED_SAMPLES_FOR_DECELERATION_FIELD_NUMBER: _builtins.int + REMOVED_SAMPLES_FOR_ACCELERATION_FIELD_NUMBER: _builtins.int + AUDIO_LEVEL_FIELD_NUMBER: _builtins.int + TOTAL_AUDIO_ENERGY_FIELD_NUMBER: _builtins.int + TOTAL_SAMPLES_DURATION_FIELD_NUMBER: _builtins.int + FRAMES_RECEIVED_FIELD_NUMBER: _builtins.int + DECODER_IMPLEMENTATION_FIELD_NUMBER: _builtins.int + PLAYOUT_ID_FIELD_NUMBER: _builtins.int + POWER_EFFICIENT_DECODER_FIELD_NUMBER: _builtins.int + FRAMES_ASSEMBLED_FROM_MULTIPLE_PACKETS_FIELD_NUMBER: _builtins.int + TOTAL_ASSEMBLY_TIME_FIELD_NUMBER: _builtins.int + RETRANSMITTED_PACKETS_RECEIVED_FIELD_NUMBER: _builtins.int + RETRANSMITTED_BYTES_RECEIVED_FIELD_NUMBER: _builtins.int + RTX_SSRC_FIELD_NUMBER: _builtins.int + FEC_SSRC_FIELD_NUMBER: _builtins.int + track_identifier: _builtins.str + mid: _builtins.str + remote_id: _builtins.str + frames_decoded: _builtins.int + key_frames_decoded: _builtins.int + frames_rendered: _builtins.int + frames_dropped: _builtins.int + frame_width: _builtins.int + frame_height: _builtins.int + frames_per_second: _builtins.float + qp_sum: _builtins.int + total_decode_time: _builtins.float + total_inter_frame_delay: _builtins.float + total_squared_inter_frame_delay: _builtins.float + pause_count: _builtins.int + total_pause_duration: _builtins.float + freeze_count: _builtins.int + total_freeze_duration: _builtins.float + last_packet_received_timestamp: _builtins.float + header_bytes_received: _builtins.int + packets_discarded: _builtins.int + fec_bytes_received: _builtins.int + fec_packets_received: _builtins.int + fec_packets_discarded: _builtins.int + bytes_received: _builtins.int + nack_count: _builtins.int + fir_count: _builtins.int + pli_count: _builtins.int + total_processing_delay: _builtins.float + estimated_playout_timestamp: _builtins.float + jitter_buffer_delay: _builtins.float + jitter_buffer_target_delay: _builtins.float + jitter_buffer_emitted_count: _builtins.int + jitter_buffer_minimum_delay: _builtins.float + total_samples_received: _builtins.int + concealed_samples: _builtins.int + silent_concealed_samples: _builtins.int + concealment_events: _builtins.int + inserted_samples_for_deceleration: _builtins.int + removed_samples_for_acceleration: _builtins.int + audio_level: _builtins.float + total_audio_energy: _builtins.float + total_samples_duration: _builtins.float + frames_received: _builtins.int + decoder_implementation: _builtins.str + playout_id: _builtins.str + power_efficient_decoder: _builtins.bool + frames_assembled_from_multiple_packets: _builtins.int + total_assembly_time: _builtins.float + retransmitted_packets_received: _builtins.int + retransmitted_bytes_received: _builtins.int + rtx_ssrc: _builtins.int + fec_ssrc: _builtins.int def __init__( self, *, - track_identifier: builtins.str | None = ..., - mid: builtins.str | None = ..., - remote_id: builtins.str | None = ..., - frames_decoded: builtins.int | None = ..., - key_frames_decoded: builtins.int | None = ..., - frames_rendered: builtins.int | None = ..., - frames_dropped: builtins.int | None = ..., - frame_width: builtins.int | None = ..., - frame_height: builtins.int | None = ..., - frames_per_second: builtins.float | None = ..., - qp_sum: builtins.int | None = ..., - total_decode_time: builtins.float | None = ..., - total_inter_frame_delay: builtins.float | None = ..., - total_squared_inter_frame_delay: builtins.float | None = ..., - pause_count: builtins.int | None = ..., - total_pause_duration: builtins.float | None = ..., - freeze_count: builtins.int | None = ..., - total_freeze_duration: builtins.float | None = ..., - last_packet_received_timestamp: builtins.float | None = ..., - header_bytes_received: builtins.int | None = ..., - packets_discarded: builtins.int | None = ..., - fec_bytes_received: builtins.int | None = ..., - fec_packets_received: builtins.int | None = ..., - fec_packets_discarded: builtins.int | None = ..., - bytes_received: builtins.int | None = ..., - nack_count: builtins.int | None = ..., - fir_count: builtins.int | None = ..., - pli_count: builtins.int | None = ..., - total_processing_delay: builtins.float | None = ..., - estimated_playout_timestamp: builtins.float | None = ..., - jitter_buffer_delay: builtins.float | None = ..., - jitter_buffer_target_delay: builtins.float | None = ..., - jitter_buffer_emitted_count: builtins.int | None = ..., - jitter_buffer_minimum_delay: builtins.float | None = ..., - total_samples_received: builtins.int | None = ..., - concealed_samples: builtins.int | None = ..., - silent_concealed_samples: builtins.int | None = ..., - concealment_events: builtins.int | None = ..., - inserted_samples_for_deceleration: builtins.int | None = ..., - removed_samples_for_acceleration: builtins.int | None = ..., - audio_level: builtins.float | None = ..., - total_audio_energy: builtins.float | None = ..., - total_samples_duration: builtins.float | None = ..., - frames_received: builtins.int | None = ..., - decoder_implementation: builtins.str | None = ..., - playout_id: builtins.str | None = ..., - power_efficient_decoder: builtins.bool | None = ..., - frames_assembled_from_multiple_packets: builtins.int | None = ..., - total_assembly_time: builtins.float | None = ..., - retransmitted_packets_received: builtins.int | None = ..., - retransmitted_bytes_received: builtins.int | None = ..., - rtx_ssrc: builtins.int | None = ..., - fec_ssrc: builtins.int | None = ..., + track_identifier: _builtins.str | None = ..., + mid: _builtins.str | None = ..., + remote_id: _builtins.str | None = ..., + frames_decoded: _builtins.int | None = ..., + key_frames_decoded: _builtins.int | None = ..., + frames_rendered: _builtins.int | None = ..., + frames_dropped: _builtins.int | None = ..., + frame_width: _builtins.int | None = ..., + frame_height: _builtins.int | None = ..., + frames_per_second: _builtins.float | None = ..., + qp_sum: _builtins.int | None = ..., + total_decode_time: _builtins.float | None = ..., + total_inter_frame_delay: _builtins.float | None = ..., + total_squared_inter_frame_delay: _builtins.float | None = ..., + pause_count: _builtins.int | None = ..., + total_pause_duration: _builtins.float | None = ..., + freeze_count: _builtins.int | None = ..., + total_freeze_duration: _builtins.float | None = ..., + last_packet_received_timestamp: _builtins.float | None = ..., + header_bytes_received: _builtins.int | None = ..., + packets_discarded: _builtins.int | None = ..., + fec_bytes_received: _builtins.int | None = ..., + fec_packets_received: _builtins.int | None = ..., + fec_packets_discarded: _builtins.int | None = ..., + bytes_received: _builtins.int | None = ..., + nack_count: _builtins.int | None = ..., + fir_count: _builtins.int | None = ..., + pli_count: _builtins.int | None = ..., + total_processing_delay: _builtins.float | None = ..., + estimated_playout_timestamp: _builtins.float | None = ..., + jitter_buffer_delay: _builtins.float | None = ..., + jitter_buffer_target_delay: _builtins.float | None = ..., + jitter_buffer_emitted_count: _builtins.int | None = ..., + jitter_buffer_minimum_delay: _builtins.float | None = ..., + total_samples_received: _builtins.int | None = ..., + concealed_samples: _builtins.int | None = ..., + silent_concealed_samples: _builtins.int | None = ..., + concealment_events: _builtins.int | None = ..., + inserted_samples_for_deceleration: _builtins.int | None = ..., + removed_samples_for_acceleration: _builtins.int | None = ..., + audio_level: _builtins.float | None = ..., + total_audio_energy: _builtins.float | None = ..., + total_samples_duration: _builtins.float | None = ..., + frames_received: _builtins.int | None = ..., + decoder_implementation: _builtins.str | None = ..., + playout_id: _builtins.str | None = ..., + power_efficient_decoder: _builtins.bool | None = ..., + frames_assembled_from_multiple_packets: _builtins.int | None = ..., + total_assembly_time: _builtins.float | None = ..., + retransmitted_packets_received: _builtins.int | None = ..., + retransmitted_bytes_received: _builtins.int | None = ..., + rtx_ssrc: _builtins.int | None = ..., + fec_ssrc: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["audio_level", b"audio_level", "bytes_received", b"bytes_received", "concealed_samples", b"concealed_samples", "concealment_events", b"concealment_events", "decoder_implementation", b"decoder_implementation", "estimated_playout_timestamp", b"estimated_playout_timestamp", "fec_bytes_received", b"fec_bytes_received", "fec_packets_discarded", b"fec_packets_discarded", "fec_packets_received", b"fec_packets_received", "fec_ssrc", b"fec_ssrc", "fir_count", b"fir_count", "frame_height", b"frame_height", "frame_width", b"frame_width", "frames_assembled_from_multiple_packets", b"frames_assembled_from_multiple_packets", "frames_decoded", b"frames_decoded", "frames_dropped", b"frames_dropped", "frames_per_second", b"frames_per_second", "frames_received", b"frames_received", "frames_rendered", b"frames_rendered", "freeze_count", b"freeze_count", "header_bytes_received", b"header_bytes_received", "inserted_samples_for_deceleration", b"inserted_samples_for_deceleration", "jitter_buffer_delay", b"jitter_buffer_delay", "jitter_buffer_emitted_count", b"jitter_buffer_emitted_count", "jitter_buffer_minimum_delay", b"jitter_buffer_minimum_delay", "jitter_buffer_target_delay", b"jitter_buffer_target_delay", "key_frames_decoded", b"key_frames_decoded", "last_packet_received_timestamp", b"last_packet_received_timestamp", "mid", b"mid", "nack_count", b"nack_count", "packets_discarded", b"packets_discarded", "pause_count", b"pause_count", "playout_id", b"playout_id", "pli_count", b"pli_count", "power_efficient_decoder", b"power_efficient_decoder", "qp_sum", b"qp_sum", "remote_id", b"remote_id", "removed_samples_for_acceleration", b"removed_samples_for_acceleration", "retransmitted_bytes_received", b"retransmitted_bytes_received", "retransmitted_packets_received", b"retransmitted_packets_received", "rtx_ssrc", b"rtx_ssrc", "silent_concealed_samples", b"silent_concealed_samples", "total_assembly_time", b"total_assembly_time", "total_audio_energy", b"total_audio_energy", "total_decode_time", b"total_decode_time", "total_freeze_duration", b"total_freeze_duration", "total_inter_frame_delay", b"total_inter_frame_delay", "total_pause_duration", b"total_pause_duration", "total_processing_delay", b"total_processing_delay", "total_samples_duration", b"total_samples_duration", "total_samples_received", b"total_samples_received", "total_squared_inter_frame_delay", b"total_squared_inter_frame_delay", "track_identifier", b"track_identifier"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["audio_level", b"audio_level", "bytes_received", b"bytes_received", "concealed_samples", b"concealed_samples", "concealment_events", b"concealment_events", "decoder_implementation", b"decoder_implementation", "estimated_playout_timestamp", b"estimated_playout_timestamp", "fec_bytes_received", b"fec_bytes_received", "fec_packets_discarded", b"fec_packets_discarded", "fec_packets_received", b"fec_packets_received", "fec_ssrc", b"fec_ssrc", "fir_count", b"fir_count", "frame_height", b"frame_height", "frame_width", b"frame_width", "frames_assembled_from_multiple_packets", b"frames_assembled_from_multiple_packets", "frames_decoded", b"frames_decoded", "frames_dropped", b"frames_dropped", "frames_per_second", b"frames_per_second", "frames_received", b"frames_received", "frames_rendered", b"frames_rendered", "freeze_count", b"freeze_count", "header_bytes_received", b"header_bytes_received", "inserted_samples_for_deceleration", b"inserted_samples_for_deceleration", "jitter_buffer_delay", b"jitter_buffer_delay", "jitter_buffer_emitted_count", b"jitter_buffer_emitted_count", "jitter_buffer_minimum_delay", b"jitter_buffer_minimum_delay", "jitter_buffer_target_delay", b"jitter_buffer_target_delay", "key_frames_decoded", b"key_frames_decoded", "last_packet_received_timestamp", b"last_packet_received_timestamp", "mid", b"mid", "nack_count", b"nack_count", "packets_discarded", b"packets_discarded", "pause_count", b"pause_count", "playout_id", b"playout_id", "pli_count", b"pli_count", "power_efficient_decoder", b"power_efficient_decoder", "qp_sum", b"qp_sum", "remote_id", b"remote_id", "removed_samples_for_acceleration", b"removed_samples_for_acceleration", "retransmitted_bytes_received", b"retransmitted_bytes_received", "retransmitted_packets_received", b"retransmitted_packets_received", "rtx_ssrc", b"rtx_ssrc", "silent_concealed_samples", b"silent_concealed_samples", "total_assembly_time", b"total_assembly_time", "total_audio_energy", b"total_audio_energy", "total_decode_time", b"total_decode_time", "total_freeze_duration", b"total_freeze_duration", "total_inter_frame_delay", b"total_inter_frame_delay", "total_pause_duration", b"total_pause_duration", "total_processing_delay", b"total_processing_delay", "total_samples_duration", b"total_samples_duration", "total_samples_received", b"total_samples_received", "total_squared_inter_frame_delay", b"total_squared_inter_frame_delay", "track_identifier", b"track_identifier"]) -> None: ... - -global___InboundRtpStreamStats = InboundRtpStreamStats - -@typing.final -class SentRtpStreamStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PACKETS_SENT_FIELD_NUMBER: builtins.int - BYTES_SENT_FIELD_NUMBER: builtins.int - packets_sent: builtins.int - bytes_sent: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["audio_level", b"audio_level", "bytes_received", b"bytes_received", "concealed_samples", b"concealed_samples", "concealment_events", b"concealment_events", "decoder_implementation", b"decoder_implementation", "estimated_playout_timestamp", b"estimated_playout_timestamp", "fec_bytes_received", b"fec_bytes_received", "fec_packets_discarded", b"fec_packets_discarded", "fec_packets_received", b"fec_packets_received", "fec_ssrc", b"fec_ssrc", "fir_count", b"fir_count", "frame_height", b"frame_height", "frame_width", b"frame_width", "frames_assembled_from_multiple_packets", b"frames_assembled_from_multiple_packets", "frames_decoded", b"frames_decoded", "frames_dropped", b"frames_dropped", "frames_per_second", b"frames_per_second", "frames_received", b"frames_received", "frames_rendered", b"frames_rendered", "freeze_count", b"freeze_count", "header_bytes_received", b"header_bytes_received", "inserted_samples_for_deceleration", b"inserted_samples_for_deceleration", "jitter_buffer_delay", b"jitter_buffer_delay", "jitter_buffer_emitted_count", b"jitter_buffer_emitted_count", "jitter_buffer_minimum_delay", b"jitter_buffer_minimum_delay", "jitter_buffer_target_delay", b"jitter_buffer_target_delay", "key_frames_decoded", b"key_frames_decoded", "last_packet_received_timestamp", b"last_packet_received_timestamp", "mid", b"mid", "nack_count", b"nack_count", "packets_discarded", b"packets_discarded", "pause_count", b"pause_count", "playout_id", b"playout_id", "pli_count", b"pli_count", "power_efficient_decoder", b"power_efficient_decoder", "qp_sum", b"qp_sum", "remote_id", b"remote_id", "removed_samples_for_acceleration", b"removed_samples_for_acceleration", "retransmitted_bytes_received", b"retransmitted_bytes_received", "retransmitted_packets_received", b"retransmitted_packets_received", "rtx_ssrc", b"rtx_ssrc", "silent_concealed_samples", b"silent_concealed_samples", "total_assembly_time", b"total_assembly_time", "total_audio_energy", b"total_audio_energy", "total_decode_time", b"total_decode_time", "total_freeze_duration", b"total_freeze_duration", "total_inter_frame_delay", b"total_inter_frame_delay", "total_pause_duration", b"total_pause_duration", "total_processing_delay", b"total_processing_delay", "total_samples_duration", b"total_samples_duration", "total_samples_received", b"total_samples_received", "total_squared_inter_frame_delay", b"total_squared_inter_frame_delay", "track_identifier", b"track_identifier"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["audio_level", b"audio_level", "bytes_received", b"bytes_received", "concealed_samples", b"concealed_samples", "concealment_events", b"concealment_events", "decoder_implementation", b"decoder_implementation", "estimated_playout_timestamp", b"estimated_playout_timestamp", "fec_bytes_received", b"fec_bytes_received", "fec_packets_discarded", b"fec_packets_discarded", "fec_packets_received", b"fec_packets_received", "fec_ssrc", b"fec_ssrc", "fir_count", b"fir_count", "frame_height", b"frame_height", "frame_width", b"frame_width", "frames_assembled_from_multiple_packets", b"frames_assembled_from_multiple_packets", "frames_decoded", b"frames_decoded", "frames_dropped", b"frames_dropped", "frames_per_second", b"frames_per_second", "frames_received", b"frames_received", "frames_rendered", b"frames_rendered", "freeze_count", b"freeze_count", "header_bytes_received", b"header_bytes_received", "inserted_samples_for_deceleration", b"inserted_samples_for_deceleration", "jitter_buffer_delay", b"jitter_buffer_delay", "jitter_buffer_emitted_count", b"jitter_buffer_emitted_count", "jitter_buffer_minimum_delay", b"jitter_buffer_minimum_delay", "jitter_buffer_target_delay", b"jitter_buffer_target_delay", "key_frames_decoded", b"key_frames_decoded", "last_packet_received_timestamp", b"last_packet_received_timestamp", "mid", b"mid", "nack_count", b"nack_count", "packets_discarded", b"packets_discarded", "pause_count", b"pause_count", "playout_id", b"playout_id", "pli_count", b"pli_count", "power_efficient_decoder", b"power_efficient_decoder", "qp_sum", b"qp_sum", "remote_id", b"remote_id", "removed_samples_for_acceleration", b"removed_samples_for_acceleration", "retransmitted_bytes_received", b"retransmitted_bytes_received", "retransmitted_packets_received", b"retransmitted_packets_received", "rtx_ssrc", b"rtx_ssrc", "silent_concealed_samples", b"silent_concealed_samples", "total_assembly_time", b"total_assembly_time", "total_audio_energy", b"total_audio_energy", "total_decode_time", b"total_decode_time", "total_freeze_duration", b"total_freeze_duration", "total_inter_frame_delay", b"total_inter_frame_delay", "total_pause_duration", b"total_pause_duration", "total_processing_delay", b"total_processing_delay", "total_samples_duration", b"total_samples_duration", "total_samples_received", b"total_samples_received", "total_squared_inter_frame_delay", b"total_squared_inter_frame_delay", "track_identifier", b"track_identifier"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___InboundRtpStreamStats: _TypeAlias = InboundRtpStreamStats # noqa: Y015 + +@_typing.final +class SentRtpStreamStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PACKETS_SENT_FIELD_NUMBER: _builtins.int + BYTES_SENT_FIELD_NUMBER: _builtins.int + packets_sent: _builtins.int + bytes_sent: _builtins.int def __init__( self, *, - packets_sent: builtins.int | None = ..., - bytes_sent: builtins.int | None = ..., + packets_sent: _builtins.int | None = ..., + bytes_sent: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["bytes_sent", b"bytes_sent", "packets_sent", b"packets_sent"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["bytes_sent", b"bytes_sent", "packets_sent", b"packets_sent"]) -> None: ... - -global___SentRtpStreamStats = SentRtpStreamStats - -@typing.final -class OutboundRtpStreamStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class QualityLimitationDurationsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.float + _HasFieldArgType: _TypeAlias = _typing.Literal["bytes_sent", b"bytes_sent", "packets_sent", b"packets_sent"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["bytes_sent", b"bytes_sent", "packets_sent", b"packets_sent"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___SentRtpStreamStats: _TypeAlias = SentRtpStreamStats # noqa: Y015 + +@_typing.final +class OutboundRtpStreamStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class QualityLimitationDurationsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.float def __init__( self, *, - key: builtins.str | None = ..., - value: builtins.float | None = ..., + key: _builtins.str | None = ..., + value: _builtins.float | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - MID_FIELD_NUMBER: builtins.int - MEDIA_SOURCE_ID_FIELD_NUMBER: builtins.int - REMOTE_ID_FIELD_NUMBER: builtins.int - RID_FIELD_NUMBER: builtins.int - HEADER_BYTES_SENT_FIELD_NUMBER: builtins.int - RETRANSMITTED_PACKETS_SENT_FIELD_NUMBER: builtins.int - RETRANSMITTED_BYTES_SENT_FIELD_NUMBER: builtins.int - RTX_SSRC_FIELD_NUMBER: builtins.int - TARGET_BITRATE_FIELD_NUMBER: builtins.int - TOTAL_ENCODED_BYTES_TARGET_FIELD_NUMBER: builtins.int - FRAME_WIDTH_FIELD_NUMBER: builtins.int - FRAME_HEIGHT_FIELD_NUMBER: builtins.int - FRAMES_PER_SECOND_FIELD_NUMBER: builtins.int - FRAMES_SENT_FIELD_NUMBER: builtins.int - HUGE_FRAMES_SENT_FIELD_NUMBER: builtins.int - FRAMES_ENCODED_FIELD_NUMBER: builtins.int - KEY_FRAMES_ENCODED_FIELD_NUMBER: builtins.int - QP_SUM_FIELD_NUMBER: builtins.int - TOTAL_ENCODE_TIME_FIELD_NUMBER: builtins.int - TOTAL_PACKET_SEND_DELAY_FIELD_NUMBER: builtins.int - QUALITY_LIMITATION_REASON_FIELD_NUMBER: builtins.int - QUALITY_LIMITATION_DURATIONS_FIELD_NUMBER: builtins.int - QUALITY_LIMITATION_RESOLUTION_CHANGES_FIELD_NUMBER: builtins.int - NACK_COUNT_FIELD_NUMBER: builtins.int - FIR_COUNT_FIELD_NUMBER: builtins.int - PLI_COUNT_FIELD_NUMBER: builtins.int - ENCODER_IMPLEMENTATION_FIELD_NUMBER: builtins.int - POWER_EFFICIENT_ENCODER_FIELD_NUMBER: builtins.int - ACTIVE_FIELD_NUMBER: builtins.int - SCALABILITY_MODE_FIELD_NUMBER: builtins.int - mid: builtins.str - media_source_id: builtins.str - remote_id: builtins.str - rid: builtins.str - header_bytes_sent: builtins.int - retransmitted_packets_sent: builtins.int - retransmitted_bytes_sent: builtins.int - rtx_ssrc: builtins.int - target_bitrate: builtins.float - total_encoded_bytes_target: builtins.int - frame_width: builtins.int - frame_height: builtins.int - frames_per_second: builtins.float - frames_sent: builtins.int - huge_frames_sent: builtins.int - frames_encoded: builtins.int - key_frames_encoded: builtins.int - qp_sum: builtins.int - total_encode_time: builtins.float - total_packet_send_delay: builtins.float - quality_limitation_reason: global___QualityLimitationReason.ValueType - quality_limitation_resolution_changes: builtins.int - nack_count: builtins.int - fir_count: builtins.int - pli_count: builtins.int - encoder_implementation: builtins.str - power_efficient_encoder: builtins.bool - active: builtins.bool - scalability_mode: builtins.str - @property - def quality_limitation_durations(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.float]: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + MID_FIELD_NUMBER: _builtins.int + MEDIA_SOURCE_ID_FIELD_NUMBER: _builtins.int + REMOTE_ID_FIELD_NUMBER: _builtins.int + RID_FIELD_NUMBER: _builtins.int + HEADER_BYTES_SENT_FIELD_NUMBER: _builtins.int + RETRANSMITTED_PACKETS_SENT_FIELD_NUMBER: _builtins.int + RETRANSMITTED_BYTES_SENT_FIELD_NUMBER: _builtins.int + RTX_SSRC_FIELD_NUMBER: _builtins.int + TARGET_BITRATE_FIELD_NUMBER: _builtins.int + TOTAL_ENCODED_BYTES_TARGET_FIELD_NUMBER: _builtins.int + FRAME_WIDTH_FIELD_NUMBER: _builtins.int + FRAME_HEIGHT_FIELD_NUMBER: _builtins.int + FRAMES_PER_SECOND_FIELD_NUMBER: _builtins.int + FRAMES_SENT_FIELD_NUMBER: _builtins.int + HUGE_FRAMES_SENT_FIELD_NUMBER: _builtins.int + FRAMES_ENCODED_FIELD_NUMBER: _builtins.int + KEY_FRAMES_ENCODED_FIELD_NUMBER: _builtins.int + QP_SUM_FIELD_NUMBER: _builtins.int + TOTAL_ENCODE_TIME_FIELD_NUMBER: _builtins.int + TOTAL_PACKET_SEND_DELAY_FIELD_NUMBER: _builtins.int + QUALITY_LIMITATION_REASON_FIELD_NUMBER: _builtins.int + QUALITY_LIMITATION_DURATIONS_FIELD_NUMBER: _builtins.int + QUALITY_LIMITATION_RESOLUTION_CHANGES_FIELD_NUMBER: _builtins.int + NACK_COUNT_FIELD_NUMBER: _builtins.int + FIR_COUNT_FIELD_NUMBER: _builtins.int + PLI_COUNT_FIELD_NUMBER: _builtins.int + ENCODER_IMPLEMENTATION_FIELD_NUMBER: _builtins.int + POWER_EFFICIENT_ENCODER_FIELD_NUMBER: _builtins.int + ACTIVE_FIELD_NUMBER: _builtins.int + SCALABILITY_MODE_FIELD_NUMBER: _builtins.int + mid: _builtins.str + media_source_id: _builtins.str + remote_id: _builtins.str + rid: _builtins.str + header_bytes_sent: _builtins.int + retransmitted_packets_sent: _builtins.int + retransmitted_bytes_sent: _builtins.int + rtx_ssrc: _builtins.int + target_bitrate: _builtins.float + total_encoded_bytes_target: _builtins.int + frame_width: _builtins.int + frame_height: _builtins.int + frames_per_second: _builtins.float + frames_sent: _builtins.int + huge_frames_sent: _builtins.int + frames_encoded: _builtins.int + key_frames_encoded: _builtins.int + qp_sum: _builtins.int + total_encode_time: _builtins.float + total_packet_send_delay: _builtins.float + quality_limitation_reason: Global___QualityLimitationReason.ValueType + quality_limitation_resolution_changes: _builtins.int + nack_count: _builtins.int + fir_count: _builtins.int + pli_count: _builtins.int + encoder_implementation: _builtins.str + power_efficient_encoder: _builtins.bool + active: _builtins.bool + scalability_mode: _builtins.str + @_builtins.property + def quality_limitation_durations(self) -> _containers.ScalarMap[_builtins.str, _builtins.float]: ... def __init__( self, *, - mid: builtins.str | None = ..., - media_source_id: builtins.str | None = ..., - remote_id: builtins.str | None = ..., - rid: builtins.str | None = ..., - header_bytes_sent: builtins.int | None = ..., - retransmitted_packets_sent: builtins.int | None = ..., - retransmitted_bytes_sent: builtins.int | None = ..., - rtx_ssrc: builtins.int | None = ..., - target_bitrate: builtins.float | None = ..., - total_encoded_bytes_target: builtins.int | None = ..., - frame_width: builtins.int | None = ..., - frame_height: builtins.int | None = ..., - frames_per_second: builtins.float | None = ..., - frames_sent: builtins.int | None = ..., - huge_frames_sent: builtins.int | None = ..., - frames_encoded: builtins.int | None = ..., - key_frames_encoded: builtins.int | None = ..., - qp_sum: builtins.int | None = ..., - total_encode_time: builtins.float | None = ..., - total_packet_send_delay: builtins.float | None = ..., - quality_limitation_reason: global___QualityLimitationReason.ValueType | None = ..., - quality_limitation_durations: collections.abc.Mapping[builtins.str, builtins.float] | None = ..., - quality_limitation_resolution_changes: builtins.int | None = ..., - nack_count: builtins.int | None = ..., - fir_count: builtins.int | None = ..., - pli_count: builtins.int | None = ..., - encoder_implementation: builtins.str | None = ..., - power_efficient_encoder: builtins.bool | None = ..., - active: builtins.bool | None = ..., - scalability_mode: builtins.str | None = ..., + mid: _builtins.str | None = ..., + media_source_id: _builtins.str | None = ..., + remote_id: _builtins.str | None = ..., + rid: _builtins.str | None = ..., + header_bytes_sent: _builtins.int | None = ..., + retransmitted_packets_sent: _builtins.int | None = ..., + retransmitted_bytes_sent: _builtins.int | None = ..., + rtx_ssrc: _builtins.int | None = ..., + target_bitrate: _builtins.float | None = ..., + total_encoded_bytes_target: _builtins.int | None = ..., + frame_width: _builtins.int | None = ..., + frame_height: _builtins.int | None = ..., + frames_per_second: _builtins.float | None = ..., + frames_sent: _builtins.int | None = ..., + huge_frames_sent: _builtins.int | None = ..., + frames_encoded: _builtins.int | None = ..., + key_frames_encoded: _builtins.int | None = ..., + qp_sum: _builtins.int | None = ..., + total_encode_time: _builtins.float | None = ..., + total_packet_send_delay: _builtins.float | None = ..., + quality_limitation_reason: Global___QualityLimitationReason.ValueType | None = ..., + quality_limitation_durations: _abc.Mapping[_builtins.str, _builtins.float] | None = ..., + quality_limitation_resolution_changes: _builtins.int | None = ..., + nack_count: _builtins.int | None = ..., + fir_count: _builtins.int | None = ..., + pli_count: _builtins.int | None = ..., + encoder_implementation: _builtins.str | None = ..., + power_efficient_encoder: _builtins.bool | None = ..., + active: _builtins.bool | None = ..., + scalability_mode: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["active", b"active", "encoder_implementation", b"encoder_implementation", "fir_count", b"fir_count", "frame_height", b"frame_height", "frame_width", b"frame_width", "frames_encoded", b"frames_encoded", "frames_per_second", b"frames_per_second", "frames_sent", b"frames_sent", "header_bytes_sent", b"header_bytes_sent", "huge_frames_sent", b"huge_frames_sent", "key_frames_encoded", b"key_frames_encoded", "media_source_id", b"media_source_id", "mid", b"mid", "nack_count", b"nack_count", "pli_count", b"pli_count", "power_efficient_encoder", b"power_efficient_encoder", "qp_sum", b"qp_sum", "quality_limitation_reason", b"quality_limitation_reason", "quality_limitation_resolution_changes", b"quality_limitation_resolution_changes", "remote_id", b"remote_id", "retransmitted_bytes_sent", b"retransmitted_bytes_sent", "retransmitted_packets_sent", b"retransmitted_packets_sent", "rid", b"rid", "rtx_ssrc", b"rtx_ssrc", "scalability_mode", b"scalability_mode", "target_bitrate", b"target_bitrate", "total_encode_time", b"total_encode_time", "total_encoded_bytes_target", b"total_encoded_bytes_target", "total_packet_send_delay", b"total_packet_send_delay"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["active", b"active", "encoder_implementation", b"encoder_implementation", "fir_count", b"fir_count", "frame_height", b"frame_height", "frame_width", b"frame_width", "frames_encoded", b"frames_encoded", "frames_per_second", b"frames_per_second", "frames_sent", b"frames_sent", "header_bytes_sent", b"header_bytes_sent", "huge_frames_sent", b"huge_frames_sent", "key_frames_encoded", b"key_frames_encoded", "media_source_id", b"media_source_id", "mid", b"mid", "nack_count", b"nack_count", "pli_count", b"pli_count", "power_efficient_encoder", b"power_efficient_encoder", "qp_sum", b"qp_sum", "quality_limitation_durations", b"quality_limitation_durations", "quality_limitation_reason", b"quality_limitation_reason", "quality_limitation_resolution_changes", b"quality_limitation_resolution_changes", "remote_id", b"remote_id", "retransmitted_bytes_sent", b"retransmitted_bytes_sent", "retransmitted_packets_sent", b"retransmitted_packets_sent", "rid", b"rid", "rtx_ssrc", b"rtx_ssrc", "scalability_mode", b"scalability_mode", "target_bitrate", b"target_bitrate", "total_encode_time", b"total_encode_time", "total_encoded_bytes_target", b"total_encoded_bytes_target", "total_packet_send_delay", b"total_packet_send_delay"]) -> None: ... - -global___OutboundRtpStreamStats = OutboundRtpStreamStats - -@typing.final -class RemoteInboundRtpStreamStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - LOCAL_ID_FIELD_NUMBER: builtins.int - ROUND_TRIP_TIME_FIELD_NUMBER: builtins.int - TOTAL_ROUND_TRIP_TIME_FIELD_NUMBER: builtins.int - FRACTION_LOST_FIELD_NUMBER: builtins.int - ROUND_TRIP_TIME_MEASUREMENTS_FIELD_NUMBER: builtins.int - local_id: builtins.str - round_trip_time: builtins.float - total_round_trip_time: builtins.float - fraction_lost: builtins.float - round_trip_time_measurements: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["active", b"active", "encoder_implementation", b"encoder_implementation", "fir_count", b"fir_count", "frame_height", b"frame_height", "frame_width", b"frame_width", "frames_encoded", b"frames_encoded", "frames_per_second", b"frames_per_second", "frames_sent", b"frames_sent", "header_bytes_sent", b"header_bytes_sent", "huge_frames_sent", b"huge_frames_sent", "key_frames_encoded", b"key_frames_encoded", "media_source_id", b"media_source_id", "mid", b"mid", "nack_count", b"nack_count", "pli_count", b"pli_count", "power_efficient_encoder", b"power_efficient_encoder", "qp_sum", b"qp_sum", "quality_limitation_reason", b"quality_limitation_reason", "quality_limitation_resolution_changes", b"quality_limitation_resolution_changes", "remote_id", b"remote_id", "retransmitted_bytes_sent", b"retransmitted_bytes_sent", "retransmitted_packets_sent", b"retransmitted_packets_sent", "rid", b"rid", "rtx_ssrc", b"rtx_ssrc", "scalability_mode", b"scalability_mode", "target_bitrate", b"target_bitrate", "total_encode_time", b"total_encode_time", "total_encoded_bytes_target", b"total_encoded_bytes_target", "total_packet_send_delay", b"total_packet_send_delay"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["active", b"active", "encoder_implementation", b"encoder_implementation", "fir_count", b"fir_count", "frame_height", b"frame_height", "frame_width", b"frame_width", "frames_encoded", b"frames_encoded", "frames_per_second", b"frames_per_second", "frames_sent", b"frames_sent", "header_bytes_sent", b"header_bytes_sent", "huge_frames_sent", b"huge_frames_sent", "key_frames_encoded", b"key_frames_encoded", "media_source_id", b"media_source_id", "mid", b"mid", "nack_count", b"nack_count", "pli_count", b"pli_count", "power_efficient_encoder", b"power_efficient_encoder", "qp_sum", b"qp_sum", "quality_limitation_durations", b"quality_limitation_durations", "quality_limitation_reason", b"quality_limitation_reason", "quality_limitation_resolution_changes", b"quality_limitation_resolution_changes", "remote_id", b"remote_id", "retransmitted_bytes_sent", b"retransmitted_bytes_sent", "retransmitted_packets_sent", b"retransmitted_packets_sent", "rid", b"rid", "rtx_ssrc", b"rtx_ssrc", "scalability_mode", b"scalability_mode", "target_bitrate", b"target_bitrate", "total_encode_time", b"total_encode_time", "total_encoded_bytes_target", b"total_encoded_bytes_target", "total_packet_send_delay", b"total_packet_send_delay"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___OutboundRtpStreamStats: _TypeAlias = OutboundRtpStreamStats # noqa: Y015 + +@_typing.final +class RemoteInboundRtpStreamStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + LOCAL_ID_FIELD_NUMBER: _builtins.int + ROUND_TRIP_TIME_FIELD_NUMBER: _builtins.int + TOTAL_ROUND_TRIP_TIME_FIELD_NUMBER: _builtins.int + FRACTION_LOST_FIELD_NUMBER: _builtins.int + ROUND_TRIP_TIME_MEASUREMENTS_FIELD_NUMBER: _builtins.int + local_id: _builtins.str + round_trip_time: _builtins.float + total_round_trip_time: _builtins.float + fraction_lost: _builtins.float + round_trip_time_measurements: _builtins.int def __init__( self, *, - local_id: builtins.str | None = ..., - round_trip_time: builtins.float | None = ..., - total_round_trip_time: builtins.float | None = ..., - fraction_lost: builtins.float | None = ..., - round_trip_time_measurements: builtins.int | None = ..., + local_id: _builtins.str | None = ..., + round_trip_time: _builtins.float | None = ..., + total_round_trip_time: _builtins.float | None = ..., + fraction_lost: _builtins.float | None = ..., + round_trip_time_measurements: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["fraction_lost", b"fraction_lost", "local_id", b"local_id", "round_trip_time", b"round_trip_time", "round_trip_time_measurements", b"round_trip_time_measurements", "total_round_trip_time", b"total_round_trip_time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["fraction_lost", b"fraction_lost", "local_id", b"local_id", "round_trip_time", b"round_trip_time", "round_trip_time_measurements", b"round_trip_time_measurements", "total_round_trip_time", b"total_round_trip_time"]) -> None: ... - -global___RemoteInboundRtpStreamStats = RemoteInboundRtpStreamStats - -@typing.final -class RemoteOutboundRtpStreamStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - LOCAL_ID_FIELD_NUMBER: builtins.int - REMOTE_TIMESTAMP_FIELD_NUMBER: builtins.int - REPORTS_SENT_FIELD_NUMBER: builtins.int - ROUND_TRIP_TIME_FIELD_NUMBER: builtins.int - TOTAL_ROUND_TRIP_TIME_FIELD_NUMBER: builtins.int - ROUND_TRIP_TIME_MEASUREMENTS_FIELD_NUMBER: builtins.int - local_id: builtins.str - remote_timestamp: builtins.float - reports_sent: builtins.int - round_trip_time: builtins.float - total_round_trip_time: builtins.float - round_trip_time_measurements: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["fraction_lost", b"fraction_lost", "local_id", b"local_id", "round_trip_time", b"round_trip_time", "round_trip_time_measurements", b"round_trip_time_measurements", "total_round_trip_time", b"total_round_trip_time"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["fraction_lost", b"fraction_lost", "local_id", b"local_id", "round_trip_time", b"round_trip_time", "round_trip_time_measurements", b"round_trip_time_measurements", "total_round_trip_time", b"total_round_trip_time"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___RemoteInboundRtpStreamStats: _TypeAlias = RemoteInboundRtpStreamStats # noqa: Y015 + +@_typing.final +class RemoteOutboundRtpStreamStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + LOCAL_ID_FIELD_NUMBER: _builtins.int + REMOTE_TIMESTAMP_FIELD_NUMBER: _builtins.int + REPORTS_SENT_FIELD_NUMBER: _builtins.int + ROUND_TRIP_TIME_FIELD_NUMBER: _builtins.int + TOTAL_ROUND_TRIP_TIME_FIELD_NUMBER: _builtins.int + ROUND_TRIP_TIME_MEASUREMENTS_FIELD_NUMBER: _builtins.int + local_id: _builtins.str + remote_timestamp: _builtins.float + reports_sent: _builtins.int + round_trip_time: _builtins.float + total_round_trip_time: _builtins.float + round_trip_time_measurements: _builtins.int def __init__( self, *, - local_id: builtins.str | None = ..., - remote_timestamp: builtins.float | None = ..., - reports_sent: builtins.int | None = ..., - round_trip_time: builtins.float | None = ..., - total_round_trip_time: builtins.float | None = ..., - round_trip_time_measurements: builtins.int | None = ..., + local_id: _builtins.str | None = ..., + remote_timestamp: _builtins.float | None = ..., + reports_sent: _builtins.int | None = ..., + round_trip_time: _builtins.float | None = ..., + total_round_trip_time: _builtins.float | None = ..., + round_trip_time_measurements: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["local_id", b"local_id", "remote_timestamp", b"remote_timestamp", "reports_sent", b"reports_sent", "round_trip_time", b"round_trip_time", "round_trip_time_measurements", b"round_trip_time_measurements", "total_round_trip_time", b"total_round_trip_time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["local_id", b"local_id", "remote_timestamp", b"remote_timestamp", "reports_sent", b"reports_sent", "round_trip_time", b"round_trip_time", "round_trip_time_measurements", b"round_trip_time_measurements", "total_round_trip_time", b"total_round_trip_time"]) -> None: ... - -global___RemoteOutboundRtpStreamStats = RemoteOutboundRtpStreamStats - -@typing.final -class MediaSourceStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TRACK_IDENTIFIER_FIELD_NUMBER: builtins.int - KIND_FIELD_NUMBER: builtins.int - track_identifier: builtins.str - kind: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["local_id", b"local_id", "remote_timestamp", b"remote_timestamp", "reports_sent", b"reports_sent", "round_trip_time", b"round_trip_time", "round_trip_time_measurements", b"round_trip_time_measurements", "total_round_trip_time", b"total_round_trip_time"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["local_id", b"local_id", "remote_timestamp", b"remote_timestamp", "reports_sent", b"reports_sent", "round_trip_time", b"round_trip_time", "round_trip_time_measurements", b"round_trip_time_measurements", "total_round_trip_time", b"total_round_trip_time"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___RemoteOutboundRtpStreamStats: _TypeAlias = RemoteOutboundRtpStreamStats # noqa: Y015 + +@_typing.final +class MediaSourceStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + TRACK_IDENTIFIER_FIELD_NUMBER: _builtins.int + KIND_FIELD_NUMBER: _builtins.int + track_identifier: _builtins.str + kind: _builtins.str def __init__( self, *, - track_identifier: builtins.str | None = ..., - kind: builtins.str | None = ..., + track_identifier: _builtins.str | None = ..., + kind: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["kind", b"kind", "track_identifier", b"track_identifier"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["kind", b"kind", "track_identifier", b"track_identifier"]) -> None: ... - -global___MediaSourceStats = MediaSourceStats - -@typing.final -class AudioSourceStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - AUDIO_LEVEL_FIELD_NUMBER: builtins.int - TOTAL_AUDIO_ENERGY_FIELD_NUMBER: builtins.int - TOTAL_SAMPLES_DURATION_FIELD_NUMBER: builtins.int - ECHO_RETURN_LOSS_FIELD_NUMBER: builtins.int - ECHO_RETURN_LOSS_ENHANCEMENT_FIELD_NUMBER: builtins.int - DROPPED_SAMPLES_DURATION_FIELD_NUMBER: builtins.int - DROPPED_SAMPLES_EVENTS_FIELD_NUMBER: builtins.int - TOTAL_CAPTURE_DELAY_FIELD_NUMBER: builtins.int - TOTAL_SAMPLES_CAPTURED_FIELD_NUMBER: builtins.int - audio_level: builtins.float - total_audio_energy: builtins.float - total_samples_duration: builtins.float - echo_return_loss: builtins.float - echo_return_loss_enhancement: builtins.float - dropped_samples_duration: builtins.float - dropped_samples_events: builtins.int - total_capture_delay: builtins.float - total_samples_captured: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "track_identifier", b"track_identifier"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "track_identifier", b"track_identifier"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___MediaSourceStats: _TypeAlias = MediaSourceStats # noqa: Y015 + +@_typing.final +class AudioSourceStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + AUDIO_LEVEL_FIELD_NUMBER: _builtins.int + TOTAL_AUDIO_ENERGY_FIELD_NUMBER: _builtins.int + TOTAL_SAMPLES_DURATION_FIELD_NUMBER: _builtins.int + ECHO_RETURN_LOSS_FIELD_NUMBER: _builtins.int + ECHO_RETURN_LOSS_ENHANCEMENT_FIELD_NUMBER: _builtins.int + DROPPED_SAMPLES_DURATION_FIELD_NUMBER: _builtins.int + DROPPED_SAMPLES_EVENTS_FIELD_NUMBER: _builtins.int + TOTAL_CAPTURE_DELAY_FIELD_NUMBER: _builtins.int + TOTAL_SAMPLES_CAPTURED_FIELD_NUMBER: _builtins.int + audio_level: _builtins.float + total_audio_energy: _builtins.float + total_samples_duration: _builtins.float + echo_return_loss: _builtins.float + echo_return_loss_enhancement: _builtins.float + dropped_samples_duration: _builtins.float + dropped_samples_events: _builtins.int + total_capture_delay: _builtins.float + total_samples_captured: _builtins.int def __init__( self, *, - audio_level: builtins.float | None = ..., - total_audio_energy: builtins.float | None = ..., - total_samples_duration: builtins.float | None = ..., - echo_return_loss: builtins.float | None = ..., - echo_return_loss_enhancement: builtins.float | None = ..., - dropped_samples_duration: builtins.float | None = ..., - dropped_samples_events: builtins.int | None = ..., - total_capture_delay: builtins.float | None = ..., - total_samples_captured: builtins.int | None = ..., + audio_level: _builtins.float | None = ..., + total_audio_energy: _builtins.float | None = ..., + total_samples_duration: _builtins.float | None = ..., + echo_return_loss: _builtins.float | None = ..., + echo_return_loss_enhancement: _builtins.float | None = ..., + dropped_samples_duration: _builtins.float | None = ..., + dropped_samples_events: _builtins.int | None = ..., + total_capture_delay: _builtins.float | None = ..., + total_samples_captured: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["audio_level", b"audio_level", "dropped_samples_duration", b"dropped_samples_duration", "dropped_samples_events", b"dropped_samples_events", "echo_return_loss", b"echo_return_loss", "echo_return_loss_enhancement", b"echo_return_loss_enhancement", "total_audio_energy", b"total_audio_energy", "total_capture_delay", b"total_capture_delay", "total_samples_captured", b"total_samples_captured", "total_samples_duration", b"total_samples_duration"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["audio_level", b"audio_level", "dropped_samples_duration", b"dropped_samples_duration", "dropped_samples_events", b"dropped_samples_events", "echo_return_loss", b"echo_return_loss", "echo_return_loss_enhancement", b"echo_return_loss_enhancement", "total_audio_energy", b"total_audio_energy", "total_capture_delay", b"total_capture_delay", "total_samples_captured", b"total_samples_captured", "total_samples_duration", b"total_samples_duration"]) -> None: ... - -global___AudioSourceStats = AudioSourceStats - -@typing.final -class VideoSourceStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - WIDTH_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - FRAMES_FIELD_NUMBER: builtins.int - FRAMES_PER_SECOND_FIELD_NUMBER: builtins.int - width: builtins.int - height: builtins.int - frames: builtins.int - frames_per_second: builtins.float + _HasFieldArgType: _TypeAlias = _typing.Literal["audio_level", b"audio_level", "dropped_samples_duration", b"dropped_samples_duration", "dropped_samples_events", b"dropped_samples_events", "echo_return_loss", b"echo_return_loss", "echo_return_loss_enhancement", b"echo_return_loss_enhancement", "total_audio_energy", b"total_audio_energy", "total_capture_delay", b"total_capture_delay", "total_samples_captured", b"total_samples_captured", "total_samples_duration", b"total_samples_duration"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["audio_level", b"audio_level", "dropped_samples_duration", b"dropped_samples_duration", "dropped_samples_events", b"dropped_samples_events", "echo_return_loss", b"echo_return_loss", "echo_return_loss_enhancement", b"echo_return_loss_enhancement", "total_audio_energy", b"total_audio_energy", "total_capture_delay", b"total_capture_delay", "total_samples_captured", b"total_samples_captured", "total_samples_duration", b"total_samples_duration"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___AudioSourceStats: _TypeAlias = AudioSourceStats # noqa: Y015 + +@_typing.final +class VideoSourceStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + WIDTH_FIELD_NUMBER: _builtins.int + HEIGHT_FIELD_NUMBER: _builtins.int + FRAMES_FIELD_NUMBER: _builtins.int + FRAMES_PER_SECOND_FIELD_NUMBER: _builtins.int + width: _builtins.int + height: _builtins.int + frames: _builtins.int + frames_per_second: _builtins.float def __init__( self, *, - width: builtins.int | None = ..., - height: builtins.int | None = ..., - frames: builtins.int | None = ..., - frames_per_second: builtins.float | None = ..., + width: _builtins.int | None = ..., + height: _builtins.int | None = ..., + frames: _builtins.int | None = ..., + frames_per_second: _builtins.float | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["frames", b"frames", "frames_per_second", b"frames_per_second", "height", b"height", "width", b"width"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["frames", b"frames", "frames_per_second", b"frames_per_second", "height", b"height", "width", b"width"]) -> None: ... - -global___VideoSourceStats = VideoSourceStats - -@typing.final -class AudioPlayoutStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KIND_FIELD_NUMBER: builtins.int - SYNTHESIZED_SAMPLES_DURATION_FIELD_NUMBER: builtins.int - SYNTHESIZED_SAMPLES_EVENTS_FIELD_NUMBER: builtins.int - TOTAL_SAMPLES_DURATION_FIELD_NUMBER: builtins.int - TOTAL_PLAYOUT_DELAY_FIELD_NUMBER: builtins.int - TOTAL_SAMPLES_COUNT_FIELD_NUMBER: builtins.int - kind: builtins.str - synthesized_samples_duration: builtins.float - synthesized_samples_events: builtins.int - total_samples_duration: builtins.float - total_playout_delay: builtins.float - total_samples_count: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["frames", b"frames", "frames_per_second", b"frames_per_second", "height", b"height", "width", b"width"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["frames", b"frames", "frames_per_second", b"frames_per_second", "height", b"height", "width", b"width"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___VideoSourceStats: _TypeAlias = VideoSourceStats # noqa: Y015 + +@_typing.final +class AudioPlayoutStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KIND_FIELD_NUMBER: _builtins.int + SYNTHESIZED_SAMPLES_DURATION_FIELD_NUMBER: _builtins.int + SYNTHESIZED_SAMPLES_EVENTS_FIELD_NUMBER: _builtins.int + TOTAL_SAMPLES_DURATION_FIELD_NUMBER: _builtins.int + TOTAL_PLAYOUT_DELAY_FIELD_NUMBER: _builtins.int + TOTAL_SAMPLES_COUNT_FIELD_NUMBER: _builtins.int + kind: _builtins.str + synthesized_samples_duration: _builtins.float + synthesized_samples_events: _builtins.int + total_samples_duration: _builtins.float + total_playout_delay: _builtins.float + total_samples_count: _builtins.int def __init__( self, *, - kind: builtins.str | None = ..., - synthesized_samples_duration: builtins.float | None = ..., - synthesized_samples_events: builtins.int | None = ..., - total_samples_duration: builtins.float | None = ..., - total_playout_delay: builtins.float | None = ..., - total_samples_count: builtins.int | None = ..., + kind: _builtins.str | None = ..., + synthesized_samples_duration: _builtins.float | None = ..., + synthesized_samples_events: _builtins.int | None = ..., + total_samples_duration: _builtins.float | None = ..., + total_playout_delay: _builtins.float | None = ..., + total_samples_count: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["kind", b"kind", "synthesized_samples_duration", b"synthesized_samples_duration", "synthesized_samples_events", b"synthesized_samples_events", "total_playout_delay", b"total_playout_delay", "total_samples_count", b"total_samples_count", "total_samples_duration", b"total_samples_duration"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["kind", b"kind", "synthesized_samples_duration", b"synthesized_samples_duration", "synthesized_samples_events", b"synthesized_samples_events", "total_playout_delay", b"total_playout_delay", "total_samples_count", b"total_samples_count", "total_samples_duration", b"total_samples_duration"]) -> None: ... - -global___AudioPlayoutStats = AudioPlayoutStats - -@typing.final -class PeerConnectionStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - DATA_CHANNELS_OPENED_FIELD_NUMBER: builtins.int - DATA_CHANNELS_CLOSED_FIELD_NUMBER: builtins.int - data_channels_opened: builtins.int - data_channels_closed: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "synthesized_samples_duration", b"synthesized_samples_duration", "synthesized_samples_events", b"synthesized_samples_events", "total_playout_delay", b"total_playout_delay", "total_samples_count", b"total_samples_count", "total_samples_duration", b"total_samples_duration"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "synthesized_samples_duration", b"synthesized_samples_duration", "synthesized_samples_events", b"synthesized_samples_events", "total_playout_delay", b"total_playout_delay", "total_samples_count", b"total_samples_count", "total_samples_duration", b"total_samples_duration"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___AudioPlayoutStats: _TypeAlias = AudioPlayoutStats # noqa: Y015 + +@_typing.final +class PeerConnectionStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + DATA_CHANNELS_OPENED_FIELD_NUMBER: _builtins.int + DATA_CHANNELS_CLOSED_FIELD_NUMBER: _builtins.int + data_channels_opened: _builtins.int + data_channels_closed: _builtins.int def __init__( self, *, - data_channels_opened: builtins.int | None = ..., - data_channels_closed: builtins.int | None = ..., + data_channels_opened: _builtins.int | None = ..., + data_channels_closed: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["data_channels_closed", b"data_channels_closed", "data_channels_opened", b"data_channels_opened"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["data_channels_closed", b"data_channels_closed", "data_channels_opened", b"data_channels_opened"]) -> None: ... - -global___PeerConnectionStats = PeerConnectionStats - -@typing.final -class DataChannelStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - LABEL_FIELD_NUMBER: builtins.int - PROTOCOL_FIELD_NUMBER: builtins.int - DATA_CHANNEL_IDENTIFIER_FIELD_NUMBER: builtins.int - STATE_FIELD_NUMBER: builtins.int - MESSAGES_SENT_FIELD_NUMBER: builtins.int - BYTES_SENT_FIELD_NUMBER: builtins.int - MESSAGES_RECEIVED_FIELD_NUMBER: builtins.int - BYTES_RECEIVED_FIELD_NUMBER: builtins.int - label: builtins.str - protocol: builtins.str - data_channel_identifier: builtins.int - state: global___DataChannelState.ValueType - messages_sent: builtins.int - bytes_sent: builtins.int - messages_received: builtins.int - bytes_received: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["data_channels_closed", b"data_channels_closed", "data_channels_opened", b"data_channels_opened"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["data_channels_closed", b"data_channels_closed", "data_channels_opened", b"data_channels_opened"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___PeerConnectionStats: _TypeAlias = PeerConnectionStats # noqa: Y015 + +@_typing.final +class DataChannelStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + LABEL_FIELD_NUMBER: _builtins.int + PROTOCOL_FIELD_NUMBER: _builtins.int + DATA_CHANNEL_IDENTIFIER_FIELD_NUMBER: _builtins.int + STATE_FIELD_NUMBER: _builtins.int + MESSAGES_SENT_FIELD_NUMBER: _builtins.int + BYTES_SENT_FIELD_NUMBER: _builtins.int + MESSAGES_RECEIVED_FIELD_NUMBER: _builtins.int + BYTES_RECEIVED_FIELD_NUMBER: _builtins.int + label: _builtins.str + protocol: _builtins.str + data_channel_identifier: _builtins.int + state: Global___DataChannelState.ValueType + messages_sent: _builtins.int + bytes_sent: _builtins.int + messages_received: _builtins.int + bytes_received: _builtins.int def __init__( self, *, - label: builtins.str | None = ..., - protocol: builtins.str | None = ..., - data_channel_identifier: builtins.int | None = ..., - state: global___DataChannelState.ValueType | None = ..., - messages_sent: builtins.int | None = ..., - bytes_sent: builtins.int | None = ..., - messages_received: builtins.int | None = ..., - bytes_received: builtins.int | None = ..., + label: _builtins.str | None = ..., + protocol: _builtins.str | None = ..., + data_channel_identifier: _builtins.int | None = ..., + state: Global___DataChannelState.ValueType | None = ..., + messages_sent: _builtins.int | None = ..., + bytes_sent: _builtins.int | None = ..., + messages_received: _builtins.int | None = ..., + bytes_received: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "data_channel_identifier", b"data_channel_identifier", "label", b"label", "messages_received", b"messages_received", "messages_sent", b"messages_sent", "protocol", b"protocol", "state", b"state"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "data_channel_identifier", b"data_channel_identifier", "label", b"label", "messages_received", b"messages_received", "messages_sent", b"messages_sent", "protocol", b"protocol", "state", b"state"]) -> None: ... - -global___DataChannelStats = DataChannelStats - -@typing.final -class TransportStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PACKETS_SENT_FIELD_NUMBER: builtins.int - PACKETS_RECEIVED_FIELD_NUMBER: builtins.int - BYTES_SENT_FIELD_NUMBER: builtins.int - BYTES_RECEIVED_FIELD_NUMBER: builtins.int - ICE_ROLE_FIELD_NUMBER: builtins.int - ICE_LOCAL_USERNAME_FRAGMENT_FIELD_NUMBER: builtins.int - DTLS_STATE_FIELD_NUMBER: builtins.int - ICE_STATE_FIELD_NUMBER: builtins.int - SELECTED_CANDIDATE_PAIR_ID_FIELD_NUMBER: builtins.int - LOCAL_CERTIFICATE_ID_FIELD_NUMBER: builtins.int - REMOTE_CERTIFICATE_ID_FIELD_NUMBER: builtins.int - TLS_VERSION_FIELD_NUMBER: builtins.int - DTLS_CIPHER_FIELD_NUMBER: builtins.int - DTLS_ROLE_FIELD_NUMBER: builtins.int - SRTP_CIPHER_FIELD_NUMBER: builtins.int - SELECTED_CANDIDATE_PAIR_CHANGES_FIELD_NUMBER: builtins.int - packets_sent: builtins.int - packets_received: builtins.int - bytes_sent: builtins.int - bytes_received: builtins.int - ice_role: global___IceRole.ValueType - ice_local_username_fragment: builtins.str - dtls_state: global___DtlsTransportState.ValueType - ice_state: global___IceTransportState.ValueType - selected_candidate_pair_id: builtins.str - local_certificate_id: builtins.str - remote_certificate_id: builtins.str - tls_version: builtins.str - dtls_cipher: builtins.str - dtls_role: global___DtlsRole.ValueType - srtp_cipher: builtins.str - selected_candidate_pair_changes: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "data_channel_identifier", b"data_channel_identifier", "label", b"label", "messages_received", b"messages_received", "messages_sent", b"messages_sent", "protocol", b"protocol", "state", b"state"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "data_channel_identifier", b"data_channel_identifier", "label", b"label", "messages_received", b"messages_received", "messages_sent", b"messages_sent", "protocol", b"protocol", "state", b"state"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___DataChannelStats: _TypeAlias = DataChannelStats # noqa: Y015 + +@_typing.final +class TransportStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PACKETS_SENT_FIELD_NUMBER: _builtins.int + PACKETS_RECEIVED_FIELD_NUMBER: _builtins.int + BYTES_SENT_FIELD_NUMBER: _builtins.int + BYTES_RECEIVED_FIELD_NUMBER: _builtins.int + ICE_ROLE_FIELD_NUMBER: _builtins.int + ICE_LOCAL_USERNAME_FRAGMENT_FIELD_NUMBER: _builtins.int + DTLS_STATE_FIELD_NUMBER: _builtins.int + ICE_STATE_FIELD_NUMBER: _builtins.int + SELECTED_CANDIDATE_PAIR_ID_FIELD_NUMBER: _builtins.int + LOCAL_CERTIFICATE_ID_FIELD_NUMBER: _builtins.int + REMOTE_CERTIFICATE_ID_FIELD_NUMBER: _builtins.int + TLS_VERSION_FIELD_NUMBER: _builtins.int + DTLS_CIPHER_FIELD_NUMBER: _builtins.int + DTLS_ROLE_FIELD_NUMBER: _builtins.int + SRTP_CIPHER_FIELD_NUMBER: _builtins.int + SELECTED_CANDIDATE_PAIR_CHANGES_FIELD_NUMBER: _builtins.int + packets_sent: _builtins.int + packets_received: _builtins.int + bytes_sent: _builtins.int + bytes_received: _builtins.int + ice_role: Global___IceRole.ValueType + ice_local_username_fragment: _builtins.str + dtls_state: Global___DtlsTransportState.ValueType + ice_state: Global___IceTransportState.ValueType + selected_candidate_pair_id: _builtins.str + local_certificate_id: _builtins.str + remote_certificate_id: _builtins.str + tls_version: _builtins.str + dtls_cipher: _builtins.str + dtls_role: Global___DtlsRole.ValueType + srtp_cipher: _builtins.str + selected_candidate_pair_changes: _builtins.int def __init__( self, *, - packets_sent: builtins.int | None = ..., - packets_received: builtins.int | None = ..., - bytes_sent: builtins.int | None = ..., - bytes_received: builtins.int | None = ..., - ice_role: global___IceRole.ValueType | None = ..., - ice_local_username_fragment: builtins.str | None = ..., - dtls_state: global___DtlsTransportState.ValueType | None = ..., - ice_state: global___IceTransportState.ValueType | None = ..., - selected_candidate_pair_id: builtins.str | None = ..., - local_certificate_id: builtins.str | None = ..., - remote_certificate_id: builtins.str | None = ..., - tls_version: builtins.str | None = ..., - dtls_cipher: builtins.str | None = ..., - dtls_role: global___DtlsRole.ValueType | None = ..., - srtp_cipher: builtins.str | None = ..., - selected_candidate_pair_changes: builtins.int | None = ..., + packets_sent: _builtins.int | None = ..., + packets_received: _builtins.int | None = ..., + bytes_sent: _builtins.int | None = ..., + bytes_received: _builtins.int | None = ..., + ice_role: Global___IceRole.ValueType | None = ..., + ice_local_username_fragment: _builtins.str | None = ..., + dtls_state: Global___DtlsTransportState.ValueType | None = ..., + ice_state: Global___IceTransportState.ValueType | None = ..., + selected_candidate_pair_id: _builtins.str | None = ..., + local_certificate_id: _builtins.str | None = ..., + remote_certificate_id: _builtins.str | None = ..., + tls_version: _builtins.str | None = ..., + dtls_cipher: _builtins.str | None = ..., + dtls_role: Global___DtlsRole.ValueType | None = ..., + srtp_cipher: _builtins.str | None = ..., + selected_candidate_pair_changes: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "dtls_cipher", b"dtls_cipher", "dtls_role", b"dtls_role", "dtls_state", b"dtls_state", "ice_local_username_fragment", b"ice_local_username_fragment", "ice_role", b"ice_role", "ice_state", b"ice_state", "local_certificate_id", b"local_certificate_id", "packets_received", b"packets_received", "packets_sent", b"packets_sent", "remote_certificate_id", b"remote_certificate_id", "selected_candidate_pair_changes", b"selected_candidate_pair_changes", "selected_candidate_pair_id", b"selected_candidate_pair_id", "srtp_cipher", b"srtp_cipher", "tls_version", b"tls_version"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "dtls_cipher", b"dtls_cipher", "dtls_role", b"dtls_role", "dtls_state", b"dtls_state", "ice_local_username_fragment", b"ice_local_username_fragment", "ice_role", b"ice_role", "ice_state", b"ice_state", "local_certificate_id", b"local_certificate_id", "packets_received", b"packets_received", "packets_sent", b"packets_sent", "remote_certificate_id", b"remote_certificate_id", "selected_candidate_pair_changes", b"selected_candidate_pair_changes", "selected_candidate_pair_id", b"selected_candidate_pair_id", "srtp_cipher", b"srtp_cipher", "tls_version", b"tls_version"]) -> None: ... - -global___TransportStats = TransportStats - -@typing.final -class CandidatePairStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TRANSPORT_ID_FIELD_NUMBER: builtins.int - LOCAL_CANDIDATE_ID_FIELD_NUMBER: builtins.int - REMOTE_CANDIDATE_ID_FIELD_NUMBER: builtins.int - STATE_FIELD_NUMBER: builtins.int - NOMINATED_FIELD_NUMBER: builtins.int - PACKETS_SENT_FIELD_NUMBER: builtins.int - PACKETS_RECEIVED_FIELD_NUMBER: builtins.int - BYTES_SENT_FIELD_NUMBER: builtins.int - BYTES_RECEIVED_FIELD_NUMBER: builtins.int - LAST_PACKET_SENT_TIMESTAMP_FIELD_NUMBER: builtins.int - LAST_PACKET_RECEIVED_TIMESTAMP_FIELD_NUMBER: builtins.int - TOTAL_ROUND_TRIP_TIME_FIELD_NUMBER: builtins.int - CURRENT_ROUND_TRIP_TIME_FIELD_NUMBER: builtins.int - AVAILABLE_OUTGOING_BITRATE_FIELD_NUMBER: builtins.int - AVAILABLE_INCOMING_BITRATE_FIELD_NUMBER: builtins.int - REQUESTS_RECEIVED_FIELD_NUMBER: builtins.int - REQUESTS_SENT_FIELD_NUMBER: builtins.int - RESPONSES_RECEIVED_FIELD_NUMBER: builtins.int - RESPONSES_SENT_FIELD_NUMBER: builtins.int - CONSENT_REQUESTS_SENT_FIELD_NUMBER: builtins.int - PACKETS_DISCARDED_ON_SEND_FIELD_NUMBER: builtins.int - BYTES_DISCARDED_ON_SEND_FIELD_NUMBER: builtins.int - transport_id: builtins.str - local_candidate_id: builtins.str - remote_candidate_id: builtins.str - state: global___IceCandidatePairState.ValueType - nominated: builtins.bool - packets_sent: builtins.int - packets_received: builtins.int - bytes_sent: builtins.int - bytes_received: builtins.int - last_packet_sent_timestamp: builtins.float - last_packet_received_timestamp: builtins.float - total_round_trip_time: builtins.float - current_round_trip_time: builtins.float - available_outgoing_bitrate: builtins.float - available_incoming_bitrate: builtins.float - requests_received: builtins.int - requests_sent: builtins.int - responses_received: builtins.int - responses_sent: builtins.int - consent_requests_sent: builtins.int - packets_discarded_on_send: builtins.int - bytes_discarded_on_send: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "dtls_cipher", b"dtls_cipher", "dtls_role", b"dtls_role", "dtls_state", b"dtls_state", "ice_local_username_fragment", b"ice_local_username_fragment", "ice_role", b"ice_role", "ice_state", b"ice_state", "local_certificate_id", b"local_certificate_id", "packets_received", b"packets_received", "packets_sent", b"packets_sent", "remote_certificate_id", b"remote_certificate_id", "selected_candidate_pair_changes", b"selected_candidate_pair_changes", "selected_candidate_pair_id", b"selected_candidate_pair_id", "srtp_cipher", b"srtp_cipher", "tls_version", b"tls_version"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "dtls_cipher", b"dtls_cipher", "dtls_role", b"dtls_role", "dtls_state", b"dtls_state", "ice_local_username_fragment", b"ice_local_username_fragment", "ice_role", b"ice_role", "ice_state", b"ice_state", "local_certificate_id", b"local_certificate_id", "packets_received", b"packets_received", "packets_sent", b"packets_sent", "remote_certificate_id", b"remote_certificate_id", "selected_candidate_pair_changes", b"selected_candidate_pair_changes", "selected_candidate_pair_id", b"selected_candidate_pair_id", "srtp_cipher", b"srtp_cipher", "tls_version", b"tls_version"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___TransportStats: _TypeAlias = TransportStats # noqa: Y015 + +@_typing.final +class CandidatePairStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + TRANSPORT_ID_FIELD_NUMBER: _builtins.int + LOCAL_CANDIDATE_ID_FIELD_NUMBER: _builtins.int + REMOTE_CANDIDATE_ID_FIELD_NUMBER: _builtins.int + STATE_FIELD_NUMBER: _builtins.int + NOMINATED_FIELD_NUMBER: _builtins.int + PACKETS_SENT_FIELD_NUMBER: _builtins.int + PACKETS_RECEIVED_FIELD_NUMBER: _builtins.int + BYTES_SENT_FIELD_NUMBER: _builtins.int + BYTES_RECEIVED_FIELD_NUMBER: _builtins.int + LAST_PACKET_SENT_TIMESTAMP_FIELD_NUMBER: _builtins.int + LAST_PACKET_RECEIVED_TIMESTAMP_FIELD_NUMBER: _builtins.int + TOTAL_ROUND_TRIP_TIME_FIELD_NUMBER: _builtins.int + CURRENT_ROUND_TRIP_TIME_FIELD_NUMBER: _builtins.int + AVAILABLE_OUTGOING_BITRATE_FIELD_NUMBER: _builtins.int + AVAILABLE_INCOMING_BITRATE_FIELD_NUMBER: _builtins.int + REQUESTS_RECEIVED_FIELD_NUMBER: _builtins.int + REQUESTS_SENT_FIELD_NUMBER: _builtins.int + RESPONSES_RECEIVED_FIELD_NUMBER: _builtins.int + RESPONSES_SENT_FIELD_NUMBER: _builtins.int + CONSENT_REQUESTS_SENT_FIELD_NUMBER: _builtins.int + PACKETS_DISCARDED_ON_SEND_FIELD_NUMBER: _builtins.int + BYTES_DISCARDED_ON_SEND_FIELD_NUMBER: _builtins.int + transport_id: _builtins.str + local_candidate_id: _builtins.str + remote_candidate_id: _builtins.str + state: Global___IceCandidatePairState.ValueType + nominated: _builtins.bool + packets_sent: _builtins.int + packets_received: _builtins.int + bytes_sent: _builtins.int + bytes_received: _builtins.int + last_packet_sent_timestamp: _builtins.float + last_packet_received_timestamp: _builtins.float + total_round_trip_time: _builtins.float + current_round_trip_time: _builtins.float + available_outgoing_bitrate: _builtins.float + available_incoming_bitrate: _builtins.float + requests_received: _builtins.int + requests_sent: _builtins.int + responses_received: _builtins.int + responses_sent: _builtins.int + consent_requests_sent: _builtins.int + packets_discarded_on_send: _builtins.int + bytes_discarded_on_send: _builtins.int def __init__( self, *, - transport_id: builtins.str | None = ..., - local_candidate_id: builtins.str | None = ..., - remote_candidate_id: builtins.str | None = ..., - state: global___IceCandidatePairState.ValueType | None = ..., - nominated: builtins.bool | None = ..., - packets_sent: builtins.int | None = ..., - packets_received: builtins.int | None = ..., - bytes_sent: builtins.int | None = ..., - bytes_received: builtins.int | None = ..., - last_packet_sent_timestamp: builtins.float | None = ..., - last_packet_received_timestamp: builtins.float | None = ..., - total_round_trip_time: builtins.float | None = ..., - current_round_trip_time: builtins.float | None = ..., - available_outgoing_bitrate: builtins.float | None = ..., - available_incoming_bitrate: builtins.float | None = ..., - requests_received: builtins.int | None = ..., - requests_sent: builtins.int | None = ..., - responses_received: builtins.int | None = ..., - responses_sent: builtins.int | None = ..., - consent_requests_sent: builtins.int | None = ..., - packets_discarded_on_send: builtins.int | None = ..., - bytes_discarded_on_send: builtins.int | None = ..., + transport_id: _builtins.str | None = ..., + local_candidate_id: _builtins.str | None = ..., + remote_candidate_id: _builtins.str | None = ..., + state: Global___IceCandidatePairState.ValueType | None = ..., + nominated: _builtins.bool | None = ..., + packets_sent: _builtins.int | None = ..., + packets_received: _builtins.int | None = ..., + bytes_sent: _builtins.int | None = ..., + bytes_received: _builtins.int | None = ..., + last_packet_sent_timestamp: _builtins.float | None = ..., + last_packet_received_timestamp: _builtins.float | None = ..., + total_round_trip_time: _builtins.float | None = ..., + current_round_trip_time: _builtins.float | None = ..., + available_outgoing_bitrate: _builtins.float | None = ..., + available_incoming_bitrate: _builtins.float | None = ..., + requests_received: _builtins.int | None = ..., + requests_sent: _builtins.int | None = ..., + responses_received: _builtins.int | None = ..., + responses_sent: _builtins.int | None = ..., + consent_requests_sent: _builtins.int | None = ..., + packets_discarded_on_send: _builtins.int | None = ..., + bytes_discarded_on_send: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["available_incoming_bitrate", b"available_incoming_bitrate", "available_outgoing_bitrate", b"available_outgoing_bitrate", "bytes_discarded_on_send", b"bytes_discarded_on_send", "bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "consent_requests_sent", b"consent_requests_sent", "current_round_trip_time", b"current_round_trip_time", "last_packet_received_timestamp", b"last_packet_received_timestamp", "last_packet_sent_timestamp", b"last_packet_sent_timestamp", "local_candidate_id", b"local_candidate_id", "nominated", b"nominated", "packets_discarded_on_send", b"packets_discarded_on_send", "packets_received", b"packets_received", "packets_sent", b"packets_sent", "remote_candidate_id", b"remote_candidate_id", "requests_received", b"requests_received", "requests_sent", b"requests_sent", "responses_received", b"responses_received", "responses_sent", b"responses_sent", "state", b"state", "total_round_trip_time", b"total_round_trip_time", "transport_id", b"transport_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["available_incoming_bitrate", b"available_incoming_bitrate", "available_outgoing_bitrate", b"available_outgoing_bitrate", "bytes_discarded_on_send", b"bytes_discarded_on_send", "bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "consent_requests_sent", b"consent_requests_sent", "current_round_trip_time", b"current_round_trip_time", "last_packet_received_timestamp", b"last_packet_received_timestamp", "last_packet_sent_timestamp", b"last_packet_sent_timestamp", "local_candidate_id", b"local_candidate_id", "nominated", b"nominated", "packets_discarded_on_send", b"packets_discarded_on_send", "packets_received", b"packets_received", "packets_sent", b"packets_sent", "remote_candidate_id", b"remote_candidate_id", "requests_received", b"requests_received", "requests_sent", b"requests_sent", "responses_received", b"responses_received", "responses_sent", b"responses_sent", "state", b"state", "total_round_trip_time", b"total_round_trip_time", "transport_id", b"transport_id"]) -> None: ... - -global___CandidatePairStats = CandidatePairStats - -@typing.final -class IceCandidateStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TRANSPORT_ID_FIELD_NUMBER: builtins.int - ADDRESS_FIELD_NUMBER: builtins.int - PORT_FIELD_NUMBER: builtins.int - PROTOCOL_FIELD_NUMBER: builtins.int - CANDIDATE_TYPE_FIELD_NUMBER: builtins.int - PRIORITY_FIELD_NUMBER: builtins.int - URL_FIELD_NUMBER: builtins.int - RELAY_PROTOCOL_FIELD_NUMBER: builtins.int - FOUNDATION_FIELD_NUMBER: builtins.int - RELATED_ADDRESS_FIELD_NUMBER: builtins.int - RELATED_PORT_FIELD_NUMBER: builtins.int - USERNAME_FRAGMENT_FIELD_NUMBER: builtins.int - TCP_TYPE_FIELD_NUMBER: builtins.int - transport_id: builtins.str - address: builtins.str - port: builtins.int - protocol: builtins.str - candidate_type: global___IceCandidateType.ValueType - priority: builtins.int - url: builtins.str - relay_protocol: global___IceServerTransportProtocol.ValueType - foundation: builtins.str - related_address: builtins.str - related_port: builtins.int - username_fragment: builtins.str - tcp_type: global___IceTcpCandidateType.ValueType + _HasFieldArgType: _TypeAlias = _typing.Literal["available_incoming_bitrate", b"available_incoming_bitrate", "available_outgoing_bitrate", b"available_outgoing_bitrate", "bytes_discarded_on_send", b"bytes_discarded_on_send", "bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "consent_requests_sent", b"consent_requests_sent", "current_round_trip_time", b"current_round_trip_time", "last_packet_received_timestamp", b"last_packet_received_timestamp", "last_packet_sent_timestamp", b"last_packet_sent_timestamp", "local_candidate_id", b"local_candidate_id", "nominated", b"nominated", "packets_discarded_on_send", b"packets_discarded_on_send", "packets_received", b"packets_received", "packets_sent", b"packets_sent", "remote_candidate_id", b"remote_candidate_id", "requests_received", b"requests_received", "requests_sent", b"requests_sent", "responses_received", b"responses_received", "responses_sent", b"responses_sent", "state", b"state", "total_round_trip_time", b"total_round_trip_time", "transport_id", b"transport_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["available_incoming_bitrate", b"available_incoming_bitrate", "available_outgoing_bitrate", b"available_outgoing_bitrate", "bytes_discarded_on_send", b"bytes_discarded_on_send", "bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "consent_requests_sent", b"consent_requests_sent", "current_round_trip_time", b"current_round_trip_time", "last_packet_received_timestamp", b"last_packet_received_timestamp", "last_packet_sent_timestamp", b"last_packet_sent_timestamp", "local_candidate_id", b"local_candidate_id", "nominated", b"nominated", "packets_discarded_on_send", b"packets_discarded_on_send", "packets_received", b"packets_received", "packets_sent", b"packets_sent", "remote_candidate_id", b"remote_candidate_id", "requests_received", b"requests_received", "requests_sent", b"requests_sent", "responses_received", b"responses_received", "responses_sent", b"responses_sent", "state", b"state", "total_round_trip_time", b"total_round_trip_time", "transport_id", b"transport_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___CandidatePairStats: _TypeAlias = CandidatePairStats # noqa: Y015 + +@_typing.final +class IceCandidateStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + TRANSPORT_ID_FIELD_NUMBER: _builtins.int + ADDRESS_FIELD_NUMBER: _builtins.int + PORT_FIELD_NUMBER: _builtins.int + PROTOCOL_FIELD_NUMBER: _builtins.int + CANDIDATE_TYPE_FIELD_NUMBER: _builtins.int + PRIORITY_FIELD_NUMBER: _builtins.int + URL_FIELD_NUMBER: _builtins.int + RELAY_PROTOCOL_FIELD_NUMBER: _builtins.int + FOUNDATION_FIELD_NUMBER: _builtins.int + RELATED_ADDRESS_FIELD_NUMBER: _builtins.int + RELATED_PORT_FIELD_NUMBER: _builtins.int + USERNAME_FRAGMENT_FIELD_NUMBER: _builtins.int + TCP_TYPE_FIELD_NUMBER: _builtins.int + transport_id: _builtins.str + address: _builtins.str + port: _builtins.int + protocol: _builtins.str + candidate_type: Global___IceCandidateType.ValueType + priority: _builtins.int + url: _builtins.str + relay_protocol: Global___IceServerTransportProtocol.ValueType + foundation: _builtins.str + related_address: _builtins.str + related_port: _builtins.int + username_fragment: _builtins.str + tcp_type: Global___IceTcpCandidateType.ValueType def __init__( self, *, - transport_id: builtins.str | None = ..., - address: builtins.str | None = ..., - port: builtins.int | None = ..., - protocol: builtins.str | None = ..., - candidate_type: global___IceCandidateType.ValueType | None = ..., - priority: builtins.int | None = ..., - url: builtins.str | None = ..., - relay_protocol: global___IceServerTransportProtocol.ValueType | None = ..., - foundation: builtins.str | None = ..., - related_address: builtins.str | None = ..., - related_port: builtins.int | None = ..., - username_fragment: builtins.str | None = ..., - tcp_type: global___IceTcpCandidateType.ValueType | None = ..., + transport_id: _builtins.str | None = ..., + address: _builtins.str | None = ..., + port: _builtins.int | None = ..., + protocol: _builtins.str | None = ..., + candidate_type: Global___IceCandidateType.ValueType | None = ..., + priority: _builtins.int | None = ..., + url: _builtins.str | None = ..., + relay_protocol: Global___IceServerTransportProtocol.ValueType | None = ..., + foundation: _builtins.str | None = ..., + related_address: _builtins.str | None = ..., + related_port: _builtins.int | None = ..., + username_fragment: _builtins.str | None = ..., + tcp_type: Global___IceTcpCandidateType.ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["address", b"address", "candidate_type", b"candidate_type", "foundation", b"foundation", "port", b"port", "priority", b"priority", "protocol", b"protocol", "related_address", b"related_address", "related_port", b"related_port", "relay_protocol", b"relay_protocol", "tcp_type", b"tcp_type", "transport_id", b"transport_id", "url", b"url", "username_fragment", b"username_fragment"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["address", b"address", "candidate_type", b"candidate_type", "foundation", b"foundation", "port", b"port", "priority", b"priority", "protocol", b"protocol", "related_address", b"related_address", "related_port", b"related_port", "relay_protocol", b"relay_protocol", "tcp_type", b"tcp_type", "transport_id", b"transport_id", "url", b"url", "username_fragment", b"username_fragment"]) -> None: ... - -global___IceCandidateStats = IceCandidateStats - -@typing.final -class CertificateStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - FINGERPRINT_FIELD_NUMBER: builtins.int - FINGERPRINT_ALGORITHM_FIELD_NUMBER: builtins.int - BASE64_CERTIFICATE_FIELD_NUMBER: builtins.int - ISSUER_CERTIFICATE_ID_FIELD_NUMBER: builtins.int - fingerprint: builtins.str - fingerprint_algorithm: builtins.str - base64_certificate: builtins.str - issuer_certificate_id: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["address", b"address", "candidate_type", b"candidate_type", "foundation", b"foundation", "port", b"port", "priority", b"priority", "protocol", b"protocol", "related_address", b"related_address", "related_port", b"related_port", "relay_protocol", b"relay_protocol", "tcp_type", b"tcp_type", "transport_id", b"transport_id", "url", b"url", "username_fragment", b"username_fragment"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["address", b"address", "candidate_type", b"candidate_type", "foundation", b"foundation", "port", b"port", "priority", b"priority", "protocol", b"protocol", "related_address", b"related_address", "related_port", b"related_port", "relay_protocol", b"relay_protocol", "tcp_type", b"tcp_type", "transport_id", b"transport_id", "url", b"url", "username_fragment", b"username_fragment"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___IceCandidateStats: _TypeAlias = IceCandidateStats # noqa: Y015 + +@_typing.final +class CertificateStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + FINGERPRINT_FIELD_NUMBER: _builtins.int + FINGERPRINT_ALGORITHM_FIELD_NUMBER: _builtins.int + BASE64_CERTIFICATE_FIELD_NUMBER: _builtins.int + ISSUER_CERTIFICATE_ID_FIELD_NUMBER: _builtins.int + fingerprint: _builtins.str + fingerprint_algorithm: _builtins.str + base64_certificate: _builtins.str + issuer_certificate_id: _builtins.str def __init__( self, *, - fingerprint: builtins.str | None = ..., - fingerprint_algorithm: builtins.str | None = ..., - base64_certificate: builtins.str | None = ..., - issuer_certificate_id: builtins.str | None = ..., + fingerprint: _builtins.str | None = ..., + fingerprint_algorithm: _builtins.str | None = ..., + base64_certificate: _builtins.str | None = ..., + issuer_certificate_id: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["base64_certificate", b"base64_certificate", "fingerprint", b"fingerprint", "fingerprint_algorithm", b"fingerprint_algorithm", "issuer_certificate_id", b"issuer_certificate_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["base64_certificate", b"base64_certificate", "fingerprint", b"fingerprint", "fingerprint_algorithm", b"fingerprint_algorithm", "issuer_certificate_id", b"issuer_certificate_id"]) -> None: ... - -global___CertificateStats = CertificateStats - -@typing.final -class StreamStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ID_FIELD_NUMBER: builtins.int - STREAM_IDENTIFIER_FIELD_NUMBER: builtins.int - id: builtins.str - stream_identifier: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["base64_certificate", b"base64_certificate", "fingerprint", b"fingerprint", "fingerprint_algorithm", b"fingerprint_algorithm", "issuer_certificate_id", b"issuer_certificate_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["base64_certificate", b"base64_certificate", "fingerprint", b"fingerprint", "fingerprint_algorithm", b"fingerprint_algorithm", "issuer_certificate_id", b"issuer_certificate_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___CertificateStats: _TypeAlias = CertificateStats # noqa: Y015 + +@_typing.final +class StreamStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ID_FIELD_NUMBER: _builtins.int + STREAM_IDENTIFIER_FIELD_NUMBER: _builtins.int + id: _builtins.str + stream_identifier: _builtins.str """required int64 timestamp = 3;""" def __init__( self, *, - id: builtins.str | None = ..., - stream_identifier: builtins.str | None = ..., + id: _builtins.str | None = ..., + stream_identifier: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["id", b"id", "stream_identifier", b"stream_identifier"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["id", b"id", "stream_identifier", b"stream_identifier"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["id", b"id", "stream_identifier", b"stream_identifier"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["id", b"id", "stream_identifier", b"stream_identifier"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___StreamStats = StreamStats +Global___StreamStats: _TypeAlias = StreamStats # noqa: Y015 diff --git a/livekit-rtc/livekit/rtc/_proto/track_pb2.py b/livekit-rtc/livekit/rtc/_proto/track_pb2.py index 4bae5528..3226af76 100644 --- a/livekit-rtc/livekit/rtc/_proto/track_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/track_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: track.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 7.34.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 7, + 34, + 1, + '', + 'track.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -22,8 +32,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'track_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'\252\002\rLiveKit.Proto' _globals['_TRACKKIND']._serialized_start=1827 _globals['_TRACKKIND']._serialized_end=1888 diff --git a/livekit-rtc/livekit/rtc/_proto/track_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/track_pb2.pyi index 79ac3c4e..8a317fd3 100644 --- a/livekit-rtc/livekit/rtc/_proto/track_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/track_pb2.pyi @@ -16,31 +16,31 @@ See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -from . import e2ee_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -from . import handle_pb2 -from . import stats_pb2 +from collections import abc as _abc +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +import builtins as _builtins +from . import e2ee_pb2 as _e2ee_pb2 +from . import handle_pb2 as _handle_pb2 +from . import stats_pb2 as _stats_pb2 import sys -import typing +import typing as _typing -if sys.version_info >= (3, 10): - import typing as typing_extensions +if sys.version_info >= (3, 11): + from typing import TypeAlias as _TypeAlias, Never as _Never else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias, Never as _Never -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor class _TrackKind: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _TrackKindEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_TrackKind.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _TrackKindEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_TrackKind.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor KIND_UNKNOWN: _TrackKind.ValueType # 0 KIND_AUDIO: _TrackKind.ValueType # 1 KIND_VIDEO: _TrackKind.ValueType # 2 @@ -50,14 +50,14 @@ class TrackKind(_TrackKind, metaclass=_TrackKindEnumTypeWrapper): ... KIND_UNKNOWN: TrackKind.ValueType # 0 KIND_AUDIO: TrackKind.ValueType # 1 KIND_VIDEO: TrackKind.ValueType # 2 -global___TrackKind = TrackKind +Global___TrackKind: _TypeAlias = TrackKind # noqa: Y015 class _TrackSource: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _TrackSourceEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_TrackSource.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _TrackSourceEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_TrackSource.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor SOURCE_UNKNOWN: _TrackSource.ValueType # 0 SOURCE_CAMERA: _TrackSource.ValueType # 1 SOURCE_MICROPHONE: _TrackSource.ValueType # 2 @@ -71,14 +71,14 @@ SOURCE_CAMERA: TrackSource.ValueType # 1 SOURCE_MICROPHONE: TrackSource.ValueType # 2 SOURCE_SCREENSHARE: TrackSource.ValueType # 3 SOURCE_SCREENSHARE_AUDIO: TrackSource.ValueType # 4 -global___TrackSource = TrackSource +Global___TrackSource: _TypeAlias = TrackSource # noqa: Y015 class _StreamState: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _StreamStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_StreamState.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _StreamStateEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_StreamState.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor STATE_UNKNOWN: _StreamState.ValueType # 0 STATE_ACTIVE: _StreamState.ValueType # 1 STATE_PAUSED: _StreamState.ValueType # 2 @@ -88,14 +88,14 @@ class StreamState(_StreamState, metaclass=_StreamStateEnumTypeWrapper): ... STATE_UNKNOWN: StreamState.ValueType # 0 STATE_ACTIVE: StreamState.ValueType # 1 STATE_PAUSED: StreamState.ValueType # 2 -global___StreamState = StreamState +Global___StreamState: _TypeAlias = StreamState # noqa: Y015 class _AudioTrackFeature: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _AudioTrackFeatureEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_AudioTrackFeature.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _AudioTrackFeatureEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_AudioTrackFeature.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor TF_STEREO: _AudioTrackFeature.ValueType # 0 TF_NO_DTX: _AudioTrackFeature.ValueType # 1 TF_AUTO_GAIN_CONTROL: _AudioTrackFeature.ValueType # 2 @@ -115,409 +115,470 @@ TF_NOISE_SUPPRESSION: AudioTrackFeature.ValueType # 4 TF_ENHANCED_NOISE_CANCELLATION: AudioTrackFeature.ValueType # 5 TF_PRECONNECT_BUFFER: AudioTrackFeature.ValueType # 6 """client will buffer audio once available and send it to the server via bytes stream once connected""" -global___AudioTrackFeature = AudioTrackFeature +Global___AudioTrackFeature: _TypeAlias = AudioTrackFeature # noqa: Y015 -@typing.final -class CreateVideoTrackRequest(google.protobuf.message.Message): +@_typing.final +class CreateVideoTrackRequest(_message.Message): """Create a new VideoTrack from a VideoSource""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - SOURCE_HANDLE_FIELD_NUMBER: builtins.int - name: builtins.str - source_handle: builtins.int + NAME_FIELD_NUMBER: _builtins.int + SOURCE_HANDLE_FIELD_NUMBER: _builtins.int + name: _builtins.str + source_handle: _builtins.int def __init__( self, *, - name: builtins.str | None = ..., - source_handle: builtins.int | None = ..., + name: _builtins.str | None = ..., + source_handle: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["name", b"name", "source_handle", b"source_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["name", b"name", "source_handle", b"source_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "source_handle", b"source_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "source_handle", b"source_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___CreateVideoTrackRequest = CreateVideoTrackRequest +Global___CreateVideoTrackRequest: _TypeAlias = CreateVideoTrackRequest # noqa: Y015 -@typing.final -class CreateVideoTrackResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class CreateVideoTrackResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - TRACK_FIELD_NUMBER: builtins.int - @property - def track(self) -> global___OwnedTrack: ... + TRACK_FIELD_NUMBER: _builtins.int + @_builtins.property + def track(self) -> Global___OwnedTrack: ... def __init__( self, *, - track: global___OwnedTrack | None = ..., + track: Global___OwnedTrack | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["track", b"track"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["track", b"track"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["track", b"track"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["track", b"track"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___CreateVideoTrackResponse = CreateVideoTrackResponse +Global___CreateVideoTrackResponse: _TypeAlias = CreateVideoTrackResponse # noqa: Y015 -@typing.final -class CreateAudioTrackRequest(google.protobuf.message.Message): +@_typing.final +class CreateAudioTrackRequest(_message.Message): """Create a new AudioTrack from a AudioSource""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - SOURCE_HANDLE_FIELD_NUMBER: builtins.int - name: builtins.str - source_handle: builtins.int + NAME_FIELD_NUMBER: _builtins.int + SOURCE_HANDLE_FIELD_NUMBER: _builtins.int + name: _builtins.str + source_handle: _builtins.int def __init__( self, *, - name: builtins.str | None = ..., - source_handle: builtins.int | None = ..., + name: _builtins.str | None = ..., + source_handle: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["name", b"name", "source_handle", b"source_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["name", b"name", "source_handle", b"source_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "source_handle", b"source_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "source_handle", b"source_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___CreateAudioTrackRequest = CreateAudioTrackRequest +Global___CreateAudioTrackRequest: _TypeAlias = CreateAudioTrackRequest # noqa: Y015 -@typing.final -class CreateAudioTrackResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class CreateAudioTrackResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - TRACK_FIELD_NUMBER: builtins.int - @property - def track(self) -> global___OwnedTrack: ... + TRACK_FIELD_NUMBER: _builtins.int + @_builtins.property + def track(self) -> Global___OwnedTrack: ... def __init__( self, *, - track: global___OwnedTrack | None = ..., + track: Global___OwnedTrack | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["track", b"track"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["track", b"track"]) -> None: ... - -global___CreateAudioTrackResponse = CreateAudioTrackResponse - -@typing.final -class GetStatsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TRACK_HANDLE_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - track_handle: builtins.int - request_async_id: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["track", b"track"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["track", b"track"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___CreateAudioTrackResponse: _TypeAlias = CreateAudioTrackResponse # noqa: Y015 + +@_typing.final +class GetStatsRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + TRACK_HANDLE_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + track_handle: _builtins.int + request_async_id: _builtins.int def __init__( self, *, - track_handle: builtins.int | None = ..., - request_async_id: builtins.int | None = ..., + track_handle: _builtins.int | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["request_async_id", b"request_async_id", "track_handle", b"track_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["request_async_id", b"request_async_id", "track_handle", b"track_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["request_async_id", b"request_async_id", "track_handle", b"track_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["request_async_id", b"request_async_id", "track_handle", b"track_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___GetStatsRequest = GetStatsRequest +Global___GetStatsRequest: _TypeAlias = GetStatsRequest # noqa: Y015 -@typing.final -class GetStatsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetStatsResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... - -global___GetStatsResponse = GetStatsResponse - -@typing.final -class GetStatsCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - STATS_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str - @property - def stats(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[stats_pb2.RtcStats]: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___GetStatsResponse: _TypeAlias = GetStatsResponse # noqa: Y015 + +@_typing.final +class GetStatsCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + STATS_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str + @_builtins.property + def stats(self) -> _containers.RepeatedCompositeFieldContainer[_stats_pb2.RtcStats]: ... def __init__( self, *, - async_id: builtins.int | None = ..., - error: builtins.str | None = ..., - stats: collections.abc.Iterable[stats_pb2.RtcStats] | None = ..., + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., + stats: _abc.Iterable[_stats_pb2.RtcStats] | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "stats", b"stats"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "stats", b"stats"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___GetStatsCallback = GetStatsCallback +Global___GetStatsCallback: _TypeAlias = GetStatsCallback # noqa: Y015 -@typing.final -class TrackEvent(google.protobuf.message.Message): +@_typing.final +class TrackEvent(_message.Message): """ Track """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... - -global___TrackEvent = TrackEvent - -@typing.final -class TrackPublicationInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - SID_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - KIND_FIELD_NUMBER: builtins.int - SOURCE_FIELD_NUMBER: builtins.int - SIMULCASTED_FIELD_NUMBER: builtins.int - WIDTH_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - MIME_TYPE_FIELD_NUMBER: builtins.int - MUTED_FIELD_NUMBER: builtins.int - REMOTE_FIELD_NUMBER: builtins.int - ENCRYPTION_TYPE_FIELD_NUMBER: builtins.int - AUDIO_FEATURES_FIELD_NUMBER: builtins.int - sid: builtins.str - name: builtins.str - kind: global___TrackKind.ValueType - source: global___TrackSource.ValueType - simulcasted: builtins.bool - width: builtins.int - height: builtins.int - mime_type: builtins.str - muted: builtins.bool - remote: builtins.bool - encryption_type: e2ee_pb2.EncryptionType.ValueType - @property - def audio_features(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___AudioTrackFeature.ValueType]: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___TrackEvent: _TypeAlias = TrackEvent # noqa: Y015 + +@_typing.final +class TrackPublicationInfo(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + SID_FIELD_NUMBER: _builtins.int + NAME_FIELD_NUMBER: _builtins.int + KIND_FIELD_NUMBER: _builtins.int + SOURCE_FIELD_NUMBER: _builtins.int + SIMULCASTED_FIELD_NUMBER: _builtins.int + WIDTH_FIELD_NUMBER: _builtins.int + HEIGHT_FIELD_NUMBER: _builtins.int + MIME_TYPE_FIELD_NUMBER: _builtins.int + MUTED_FIELD_NUMBER: _builtins.int + REMOTE_FIELD_NUMBER: _builtins.int + ENCRYPTION_TYPE_FIELD_NUMBER: _builtins.int + AUDIO_FEATURES_FIELD_NUMBER: _builtins.int + sid: _builtins.str + name: _builtins.str + kind: Global___TrackKind.ValueType + source: Global___TrackSource.ValueType + simulcasted: _builtins.bool + width: _builtins.int + height: _builtins.int + mime_type: _builtins.str + muted: _builtins.bool + remote: _builtins.bool + encryption_type: _e2ee_pb2.EncryptionType.ValueType + @_builtins.property + def audio_features(self) -> _containers.RepeatedScalarFieldContainer[Global___AudioTrackFeature.ValueType]: ... def __init__( self, *, - sid: builtins.str | None = ..., - name: builtins.str | None = ..., - kind: global___TrackKind.ValueType | None = ..., - source: global___TrackSource.ValueType | None = ..., - simulcasted: builtins.bool | None = ..., - width: builtins.int | None = ..., - height: builtins.int | None = ..., - mime_type: builtins.str | None = ..., - muted: builtins.bool | None = ..., - remote: builtins.bool | None = ..., - encryption_type: e2ee_pb2.EncryptionType.ValueType | None = ..., - audio_features: collections.abc.Iterable[global___AudioTrackFeature.ValueType] | None = ..., + sid: _builtins.str | None = ..., + name: _builtins.str | None = ..., + kind: Global___TrackKind.ValueType | None = ..., + source: Global___TrackSource.ValueType | None = ..., + simulcasted: _builtins.bool | None = ..., + width: _builtins.int | None = ..., + height: _builtins.int | None = ..., + mime_type: _builtins.str | None = ..., + muted: _builtins.bool | None = ..., + remote: _builtins.bool | None = ..., + encryption_type: _e2ee_pb2.EncryptionType.ValueType | None = ..., + audio_features: _abc.Iterable[Global___AudioTrackFeature.ValueType] | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["encryption_type", b"encryption_type", "height", b"height", "kind", b"kind", "mime_type", b"mime_type", "muted", b"muted", "name", b"name", "remote", b"remote", "sid", b"sid", "simulcasted", b"simulcasted", "source", b"source", "width", b"width"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["audio_features", b"audio_features", "encryption_type", b"encryption_type", "height", b"height", "kind", b"kind", "mime_type", b"mime_type", "muted", b"muted", "name", b"name", "remote", b"remote", "sid", b"sid", "simulcasted", b"simulcasted", "source", b"source", "width", b"width"]) -> None: ... - -global___TrackPublicationInfo = TrackPublicationInfo - -@typing.final -class OwnedTrackPublication(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___TrackPublicationInfo: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["encryption_type", b"encryption_type", "height", b"height", "kind", b"kind", "mime_type", b"mime_type", "muted", b"muted", "name", b"name", "remote", b"remote", "sid", b"sid", "simulcasted", b"simulcasted", "source", b"source", "width", b"width"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["audio_features", b"audio_features", "encryption_type", b"encryption_type", "height", b"height", "kind", b"kind", "mime_type", b"mime_type", "muted", b"muted", "name", b"name", "remote", b"remote", "sid", b"sid", "simulcasted", b"simulcasted", "source", b"source", "width", b"width"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___TrackPublicationInfo: _TypeAlias = TrackPublicationInfo # noqa: Y015 + +@_typing.final +class OwnedTrackPublication(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___TrackPublicationInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___TrackPublicationInfo | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___TrackPublicationInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... - -global___OwnedTrackPublication = OwnedTrackPublication - -@typing.final -class TrackInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - SID_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - KIND_FIELD_NUMBER: builtins.int - STREAM_STATE_FIELD_NUMBER: builtins.int - MUTED_FIELD_NUMBER: builtins.int - REMOTE_FIELD_NUMBER: builtins.int - sid: builtins.str - name: builtins.str - kind: global___TrackKind.ValueType - stream_state: global___StreamState.ValueType - muted: builtins.bool - remote: builtins.bool + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___OwnedTrackPublication: _TypeAlias = OwnedTrackPublication # noqa: Y015 + +@_typing.final +class TrackInfo(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + SID_FIELD_NUMBER: _builtins.int + NAME_FIELD_NUMBER: _builtins.int + KIND_FIELD_NUMBER: _builtins.int + STREAM_STATE_FIELD_NUMBER: _builtins.int + MUTED_FIELD_NUMBER: _builtins.int + REMOTE_FIELD_NUMBER: _builtins.int + sid: _builtins.str + name: _builtins.str + kind: Global___TrackKind.ValueType + stream_state: Global___StreamState.ValueType + muted: _builtins.bool + remote: _builtins.bool def __init__( self, *, - sid: builtins.str | None = ..., - name: builtins.str | None = ..., - kind: global___TrackKind.ValueType | None = ..., - stream_state: global___StreamState.ValueType | None = ..., - muted: builtins.bool | None = ..., - remote: builtins.bool | None = ..., + sid: _builtins.str | None = ..., + name: _builtins.str | None = ..., + kind: Global___TrackKind.ValueType | None = ..., + stream_state: Global___StreamState.ValueType | None = ..., + muted: _builtins.bool | None = ..., + remote: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["kind", b"kind", "muted", b"muted", "name", b"name", "remote", b"remote", "sid", b"sid", "stream_state", b"stream_state"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["kind", b"kind", "muted", b"muted", "name", b"name", "remote", b"remote", "sid", b"sid", "stream_state", b"stream_state"]) -> None: ... - -global___TrackInfo = TrackInfo - -@typing.final -class OwnedTrack(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___TrackInfo: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "muted", b"muted", "name", b"name", "remote", b"remote", "sid", b"sid", "stream_state", b"stream_state"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "muted", b"muted", "name", b"name", "remote", b"remote", "sid", b"sid", "stream_state", b"stream_state"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___TrackInfo: _TypeAlias = TrackInfo # noqa: Y015 + +@_typing.final +class OwnedTrack(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___TrackInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___TrackInfo | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___TrackInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___OwnedTrack = OwnedTrack +Global___OwnedTrack: _TypeAlias = OwnedTrack # noqa: Y015 -@typing.final -class LocalTrackMuteRequest(google.protobuf.message.Message): +@_typing.final +class LocalTrackMuteRequest(_message.Message): """Mute/UnMute a track""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TRACK_HANDLE_FIELD_NUMBER: builtins.int - MUTE_FIELD_NUMBER: builtins.int - track_handle: builtins.int - mute: builtins.bool + TRACK_HANDLE_FIELD_NUMBER: _builtins.int + MUTE_FIELD_NUMBER: _builtins.int + track_handle: _builtins.int + mute: _builtins.bool def __init__( self, *, - track_handle: builtins.int | None = ..., - mute: builtins.bool | None = ..., + track_handle: _builtins.int | None = ..., + mute: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["mute", b"mute", "track_handle", b"track_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["mute", b"mute", "track_handle", b"track_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["mute", b"mute", "track_handle", b"track_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["mute", b"mute", "track_handle", b"track_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___LocalTrackMuteRequest = LocalTrackMuteRequest +Global___LocalTrackMuteRequest: _TypeAlias = LocalTrackMuteRequest # noqa: Y015 -@typing.final -class LocalTrackMuteResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class LocalTrackMuteResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - MUTED_FIELD_NUMBER: builtins.int - muted: builtins.bool + MUTED_FIELD_NUMBER: _builtins.int + muted: _builtins.bool def __init__( self, *, - muted: builtins.bool | None = ..., + muted: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["muted", b"muted"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["muted", b"muted"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["muted", b"muted"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["muted", b"muted"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___LocalTrackMuteResponse = LocalTrackMuteResponse +Global___LocalTrackMuteResponse: _TypeAlias = LocalTrackMuteResponse # noqa: Y015 -@typing.final -class EnableRemoteTrackRequest(google.protobuf.message.Message): +@_typing.final +class EnableRemoteTrackRequest(_message.Message): """Enable/Disable a remote track""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TRACK_HANDLE_FIELD_NUMBER: builtins.int - ENABLED_FIELD_NUMBER: builtins.int - track_handle: builtins.int - enabled: builtins.bool + TRACK_HANDLE_FIELD_NUMBER: _builtins.int + ENABLED_FIELD_NUMBER: _builtins.int + track_handle: _builtins.int + enabled: _builtins.bool def __init__( self, *, - track_handle: builtins.int | None = ..., - enabled: builtins.bool | None = ..., + track_handle: _builtins.int | None = ..., + enabled: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["enabled", b"enabled", "track_handle", b"track_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["enabled", b"enabled", "track_handle", b"track_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled", "track_handle", b"track_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled", "track_handle", b"track_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___EnableRemoteTrackRequest = EnableRemoteTrackRequest +Global___EnableRemoteTrackRequest: _TypeAlias = EnableRemoteTrackRequest # noqa: Y015 -@typing.final -class EnableRemoteTrackResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class EnableRemoteTrackResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ENABLED_FIELD_NUMBER: builtins.int - enabled: builtins.bool + ENABLED_FIELD_NUMBER: _builtins.int + enabled: _builtins.bool def __init__( self, *, - enabled: builtins.bool | None = ..., + enabled: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["enabled", b"enabled"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["enabled", b"enabled"]) -> None: ... - -global___EnableRemoteTrackResponse = EnableRemoteTrackResponse - -@typing.final -class SetTrackSubscriptionPermissionsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - ALL_PARTICIPANTS_ALLOWED_FIELD_NUMBER: builtins.int - PERMISSIONS_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - all_participants_allowed: builtins.bool - @property - def permissions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ParticipantTrackPermission]: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___EnableRemoteTrackResponse: _TypeAlias = EnableRemoteTrackResponse # noqa: Y015 + +@_typing.final +class SetTrackSubscriptionPermissionsRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + ALL_PARTICIPANTS_ALLOWED_FIELD_NUMBER: _builtins.int + PERMISSIONS_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + all_participants_allowed: _builtins.bool + @_builtins.property + def permissions(self) -> _containers.RepeatedCompositeFieldContainer[Global___ParticipantTrackPermission]: ... def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - all_participants_allowed: builtins.bool | None = ..., - permissions: collections.abc.Iterable[global___ParticipantTrackPermission] | None = ..., + local_participant_handle: _builtins.int | None = ..., + all_participants_allowed: _builtins.bool | None = ..., + permissions: _abc.Iterable[Global___ParticipantTrackPermission] | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["all_participants_allowed", b"all_participants_allowed", "local_participant_handle", b"local_participant_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["all_participants_allowed", b"all_participants_allowed", "local_participant_handle", b"local_participant_handle", "permissions", b"permissions"]) -> None: ... - -global___SetTrackSubscriptionPermissionsRequest = SetTrackSubscriptionPermissionsRequest - -@typing.final -class ParticipantTrackPermission(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - ALLOW_ALL_FIELD_NUMBER: builtins.int - ALLOWED_TRACK_SIDS_FIELD_NUMBER: builtins.int - participant_identity: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["all_participants_allowed", b"all_participants_allowed", "local_participant_handle", b"local_participant_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["all_participants_allowed", b"all_participants_allowed", "local_participant_handle", b"local_participant_handle", "permissions", b"permissions"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___SetTrackSubscriptionPermissionsRequest: _TypeAlias = SetTrackSubscriptionPermissionsRequest # noqa: Y015 + +@_typing.final +class ParticipantTrackPermission(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + ALLOW_ALL_FIELD_NUMBER: _builtins.int + ALLOWED_TRACK_SIDS_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str """The participant identity this permission applies to.""" - allow_all: builtins.bool + allow_all: _builtins.bool """Grant permission to all all tracks. Takes precedence over allowedTrackSids.""" - @property - def allowed_track_sids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + @_builtins.property + def allowed_track_sids(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: """List of track sids to grant permission to.""" def __init__( self, *, - participant_identity: builtins.str | None = ..., - allow_all: builtins.bool | None = ..., - allowed_track_sids: collections.abc.Iterable[builtins.str] | None = ..., + participant_identity: _builtins.str | None = ..., + allow_all: _builtins.bool | None = ..., + allowed_track_sids: _abc.Iterable[_builtins.str] | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["allow_all", b"allow_all", "participant_identity", b"participant_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["allow_all", b"allow_all", "allowed_track_sids", b"allowed_track_sids", "participant_identity", b"participant_identity"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["allow_all", b"allow_all", "participant_identity", b"participant_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_all", b"allow_all", "allowed_track_sids", b"allowed_track_sids", "participant_identity", b"participant_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ParticipantTrackPermission = ParticipantTrackPermission +Global___ParticipantTrackPermission: _TypeAlias = ParticipantTrackPermission # noqa: Y015 -@typing.final -class SetTrackSubscriptionPermissionsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SetTrackSubscriptionPermissionsResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetTrackSubscriptionPermissionsResponse = SetTrackSubscriptionPermissionsResponse +Global___SetTrackSubscriptionPermissionsResponse: _TypeAlias = SetTrackSubscriptionPermissionsResponse # noqa: Y015 diff --git a/livekit-rtc/livekit/rtc/_proto/track_publication_pb2.py b/livekit-rtc/livekit/rtc/_proto/track_publication_pb2.py index e9eba74e..147a048a 100644 --- a/livekit-rtc/livekit/rtc/_proto/track_publication_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/track_publication_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: track_publication.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 7.34.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 7, + 34, + 1, + '', + 'track_publication.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -19,8 +29,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'track_publication_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'\252\002\rLiveKit.Proto' _globals['_VIDEOQUALITY']._serialized_start=501 _globals['_VIDEOQUALITY']._serialized_end=588 diff --git a/livekit-rtc/livekit/rtc/_proto/track_publication_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/track_publication_pb2.pyi index 9e70c7b4..05696f97 100644 --- a/livekit-rtc/livekit/rtc/_proto/track_publication_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/track_publication_pb2.pyi @@ -16,26 +16,26 @@ See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +import builtins as _builtins import sys -import typing +import typing as _typing -if sys.version_info >= (3, 10): - import typing as typing_extensions +if sys.version_info >= (3, 11): + from typing import TypeAlias as _TypeAlias, Never as _Never else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias, Never as _Never -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor class _VideoQuality: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _VideoQualityEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoQuality.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _VideoQualityEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_VideoQuality.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor VIDEO_QUALITY_LOW: _VideoQuality.ValueType # 0 VIDEO_QUALITY_MEDIUM: _VideoQuality.ValueType # 1 VIDEO_QUALITY_HIGH: _VideoQuality.ValueType # 2 @@ -46,100 +46,124 @@ class VideoQuality(_VideoQuality, metaclass=_VideoQualityEnumTypeWrapper): VIDEO_QUALITY_LOW: VideoQuality.ValueType # 0 VIDEO_QUALITY_MEDIUM: VideoQuality.ValueType # 1 VIDEO_QUALITY_HIGH: VideoQuality.ValueType # 2 -global___VideoQuality = VideoQuality +Global___VideoQuality: _TypeAlias = VideoQuality # noqa: Y015 -@typing.final -class EnableRemoteTrackPublicationRequest(google.protobuf.message.Message): +@_typing.final +class EnableRemoteTrackPublicationRequest(_message.Message): """Enable/Disable a remote track publication""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TRACK_PUBLICATION_HANDLE_FIELD_NUMBER: builtins.int - ENABLED_FIELD_NUMBER: builtins.int - track_publication_handle: builtins.int - enabled: builtins.bool + TRACK_PUBLICATION_HANDLE_FIELD_NUMBER: _builtins.int + ENABLED_FIELD_NUMBER: _builtins.int + track_publication_handle: _builtins.int + enabled: _builtins.bool def __init__( self, *, - track_publication_handle: builtins.int | None = ..., - enabled: builtins.bool | None = ..., + track_publication_handle: _builtins.int | None = ..., + enabled: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["enabled", b"enabled", "track_publication_handle", b"track_publication_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["enabled", b"enabled", "track_publication_handle", b"track_publication_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled", "track_publication_handle", b"track_publication_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled", "track_publication_handle", b"track_publication_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___EnableRemoteTrackPublicationRequest = EnableRemoteTrackPublicationRequest +Global___EnableRemoteTrackPublicationRequest: _TypeAlias = EnableRemoteTrackPublicationRequest # noqa: Y015 -@typing.final -class EnableRemoteTrackPublicationResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class EnableRemoteTrackPublicationResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___EnableRemoteTrackPublicationResponse = EnableRemoteTrackPublicationResponse +Global___EnableRemoteTrackPublicationResponse: _TypeAlias = EnableRemoteTrackPublicationResponse # noqa: Y015 -@typing.final -class UpdateRemoteTrackPublicationDimensionRequest(google.protobuf.message.Message): +@_typing.final +class UpdateRemoteTrackPublicationDimensionRequest(_message.Message): """update a remote track publication dimension""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TRACK_PUBLICATION_HANDLE_FIELD_NUMBER: builtins.int - WIDTH_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - track_publication_handle: builtins.int - width: builtins.int - height: builtins.int + TRACK_PUBLICATION_HANDLE_FIELD_NUMBER: _builtins.int + WIDTH_FIELD_NUMBER: _builtins.int + HEIGHT_FIELD_NUMBER: _builtins.int + track_publication_handle: _builtins.int + width: _builtins.int + height: _builtins.int def __init__( self, *, - track_publication_handle: builtins.int | None = ..., - width: builtins.int | None = ..., - height: builtins.int | None = ..., + track_publication_handle: _builtins.int | None = ..., + width: _builtins.int | None = ..., + height: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["height", b"height", "track_publication_handle", b"track_publication_handle", "width", b"width"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["height", b"height", "track_publication_handle", b"track_publication_handle", "width", b"width"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["height", b"height", "track_publication_handle", b"track_publication_handle", "width", b"width"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["height", b"height", "track_publication_handle", b"track_publication_handle", "width", b"width"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___UpdateRemoteTrackPublicationDimensionRequest = UpdateRemoteTrackPublicationDimensionRequest +Global___UpdateRemoteTrackPublicationDimensionRequest: _TypeAlias = UpdateRemoteTrackPublicationDimensionRequest # noqa: Y015 -@typing.final -class UpdateRemoteTrackPublicationDimensionResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class UpdateRemoteTrackPublicationDimensionResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___UpdateRemoteTrackPublicationDimensionResponse = UpdateRemoteTrackPublicationDimensionResponse +Global___UpdateRemoteTrackPublicationDimensionResponse: _TypeAlias = UpdateRemoteTrackPublicationDimensionResponse # noqa: Y015 -@typing.final -class SetRemoteTrackPublicationQualityRequest(google.protobuf.message.Message): +@_typing.final +class SetRemoteTrackPublicationQualityRequest(_message.Message): """For tracks that support simulcasting, adjust subscribed quality.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TRACK_PUBLICATION_HANDLE_FIELD_NUMBER: builtins.int - QUALITY_FIELD_NUMBER: builtins.int - track_publication_handle: builtins.int - quality: global___VideoQuality.ValueType + TRACK_PUBLICATION_HANDLE_FIELD_NUMBER: _builtins.int + QUALITY_FIELD_NUMBER: _builtins.int + track_publication_handle: _builtins.int + quality: Global___VideoQuality.ValueType def __init__( self, *, - track_publication_handle: builtins.int | None = ..., - quality: global___VideoQuality.ValueType | None = ..., + track_publication_handle: _builtins.int | None = ..., + quality: Global___VideoQuality.ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["quality", b"quality", "track_publication_handle", b"track_publication_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["quality", b"quality", "track_publication_handle", b"track_publication_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["quality", b"quality", "track_publication_handle", b"track_publication_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["quality", b"quality", "track_publication_handle", b"track_publication_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetRemoteTrackPublicationQualityRequest = SetRemoteTrackPublicationQualityRequest +Global___SetRemoteTrackPublicationQualityRequest: _TypeAlias = SetRemoteTrackPublicationQualityRequest # noqa: Y015 -@typing.final -class SetRemoteTrackPublicationQualityResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SetRemoteTrackPublicationQualityResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetRemoteTrackPublicationQualityResponse = SetRemoteTrackPublicationQualityResponse +Global___SetRemoteTrackPublicationQualityResponse: _TypeAlias = SetRemoteTrackPublicationQualityResponse # noqa: Y015 diff --git a/livekit-rtc/livekit/rtc/_proto/video_frame_pb2.py b/livekit-rtc/livekit/rtc/_proto/video_frame_pb2.py index 4fdd812a..50341c78 100644 --- a/livekit-rtc/livekit/rtc/_proto/video_frame_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/video_frame_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: video_frame.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 7.34.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 7, + 34, + 1, + '', + 'video_frame.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -21,8 +31,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'video_frame_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'\252\002\rLiveKit.Proto' _globals['_VIDEOCODEC']._serialized_start=2530 _globals['_VIDEOCODEC']._serialized_end=2589 diff --git a/livekit-rtc/livekit/rtc/_proto/video_frame_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/video_frame_pb2.pyi index 3a5ca1d9..8fa30b61 100644 --- a/livekit-rtc/livekit/rtc/_proto/video_frame_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/video_frame_pb2.pyi @@ -16,30 +16,30 @@ See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -from . import handle_pb2 +from collections import abc as _abc +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +import builtins as _builtins +from . import handle_pb2 as _handle_pb2 import sys -from . import track_pb2 -import typing +from . import track_pb2 as _track_pb2 +import typing as _typing -if sys.version_info >= (3, 10): - import typing as typing_extensions +if sys.version_info >= (3, 11): + from typing import TypeAlias as _TypeAlias, Never as _Never else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias, Never as _Never -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor class _VideoCodec: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _VideoCodecEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoCodec.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _VideoCodecEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_VideoCodec.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor VP8: _VideoCodec.ValueType # 0 H264: _VideoCodec.ValueType # 1 AV1: _VideoCodec.ValueType # 2 @@ -53,14 +53,14 @@ H264: VideoCodec.ValueType # 1 AV1: VideoCodec.ValueType # 2 VP9: VideoCodec.ValueType # 3 H265: VideoCodec.ValueType # 4 -global___VideoCodec = VideoCodec +Global___VideoCodec: _TypeAlias = VideoCodec # noqa: Y015 class _VideoRotation: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _VideoRotationEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoRotation.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _VideoRotationEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_VideoRotation.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor VIDEO_ROTATION_0: _VideoRotation.ValueType # 0 VIDEO_ROTATION_90: _VideoRotation.ValueType # 1 VIDEO_ROTATION_180: _VideoRotation.ValueType # 2 @@ -72,14 +72,14 @@ VIDEO_ROTATION_0: VideoRotation.ValueType # 0 VIDEO_ROTATION_90: VideoRotation.ValueType # 1 VIDEO_ROTATION_180: VideoRotation.ValueType # 2 VIDEO_ROTATION_270: VideoRotation.ValueType # 3 -global___VideoRotation = VideoRotation +Global___VideoRotation: _TypeAlias = VideoRotation # noqa: Y015 class _VideoBufferType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _VideoBufferTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoBufferType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _VideoBufferTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_VideoBufferType.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor RGBA: _VideoBufferType.ValueType # 0 ABGR: _VideoBufferType.ValueType # 1 ARGB: _VideoBufferType.ValueType # 2 @@ -108,14 +108,14 @@ I422: VideoBufferType.ValueType # 7 I444: VideoBufferType.ValueType # 8 I010: VideoBufferType.ValueType # 9 NV12: VideoBufferType.ValueType # 10 -global___VideoBufferType = VideoBufferType +Global___VideoBufferType: _TypeAlias = VideoBufferType # noqa: Y015 class _VideoStreamType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _VideoStreamTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoStreamType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _VideoStreamTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_VideoStreamType.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor VIDEO_STREAM_NATIVE: _VideoStreamType.ValueType # 0 VIDEO_STREAM_WEBGL: _VideoStreamType.ValueType # 1 VIDEO_STREAM_HTML: _VideoStreamType.ValueType # 2 @@ -128,41 +128,41 @@ class VideoStreamType(_VideoStreamType, metaclass=_VideoStreamTypeEnumTypeWrappe VIDEO_STREAM_NATIVE: VideoStreamType.ValueType # 0 VIDEO_STREAM_WEBGL: VideoStreamType.ValueType # 1 VIDEO_STREAM_HTML: VideoStreamType.ValueType # 2 -global___VideoStreamType = VideoStreamType +Global___VideoStreamType: _TypeAlias = VideoStreamType # noqa: Y015 class _VideoSourceType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _VideoSourceTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoSourceType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _VideoSourceTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_VideoSourceType.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor VIDEO_SOURCE_NATIVE: _VideoSourceType.ValueType # 0 class VideoSourceType(_VideoSourceType, metaclass=_VideoSourceTypeEnumTypeWrapper): ... VIDEO_SOURCE_NATIVE: VideoSourceType.ValueType # 0 -global___VideoSourceType = VideoSourceType +Global___VideoSourceType: _TypeAlias = VideoSourceType # noqa: Y015 -@typing.final -class NewVideoStreamRequest(google.protobuf.message.Message): +@_typing.final +class NewVideoStreamRequest(_message.Message): """Create a new VideoStream VideoStream is used to receive video frames from a track """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TRACK_HANDLE_FIELD_NUMBER: builtins.int - TYPE_FIELD_NUMBER: builtins.int - FORMAT_FIELD_NUMBER: builtins.int - NORMALIZE_STRIDE_FIELD_NUMBER: builtins.int - QUEUE_SIZE_FRAMES_FIELD_NUMBER: builtins.int - track_handle: builtins.int - type: global___VideoStreamType.ValueType - format: global___VideoBufferType.ValueType + TRACK_HANDLE_FIELD_NUMBER: _builtins.int + TYPE_FIELD_NUMBER: _builtins.int + FORMAT_FIELD_NUMBER: _builtins.int + NORMALIZE_STRIDE_FIELD_NUMBER: _builtins.int + QUEUE_SIZE_FRAMES_FIELD_NUMBER: _builtins.int + track_handle: _builtins.int + type: Global___VideoStreamType.ValueType + format: Global___VideoBufferType.ValueType """Get the frame on a specific format""" - normalize_stride: builtins.bool + normalize_stride: _builtins.bool """if true, stride will be set to width/chroma_width""" - queue_size_frames: builtins.int + queue_size_frames: _builtins.int """Maximum number of queued WebRTC sink frames on the receive path. Omit this field to use the default bounded queue size of 1 frame. Set it to 0 to request unbounded buffering. @@ -175,52 +175,58 @@ class NewVideoStreamRequest(google.protobuf.message.Message): def __init__( self, *, - track_handle: builtins.int | None = ..., - type: global___VideoStreamType.ValueType | None = ..., - format: global___VideoBufferType.ValueType | None = ..., - normalize_stride: builtins.bool | None = ..., - queue_size_frames: builtins.int | None = ..., + track_handle: _builtins.int | None = ..., + type: Global___VideoStreamType.ValueType | None = ..., + format: Global___VideoBufferType.ValueType | None = ..., + normalize_stride: _builtins.bool | None = ..., + queue_size_frames: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["format", b"format", "normalize_stride", b"normalize_stride", "queue_size_frames", b"queue_size_frames", "track_handle", b"track_handle", "type", b"type"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["format", b"format", "normalize_stride", b"normalize_stride", "queue_size_frames", b"queue_size_frames", "track_handle", b"track_handle", "type", b"type"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["format", b"format", "normalize_stride", b"normalize_stride", "queue_size_frames", b"queue_size_frames", "track_handle", b"track_handle", "type", b"type"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["format", b"format", "normalize_stride", b"normalize_stride", "queue_size_frames", b"queue_size_frames", "track_handle", b"track_handle", "type", b"type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___NewVideoStreamRequest = NewVideoStreamRequest +Global___NewVideoStreamRequest: _TypeAlias = NewVideoStreamRequest # noqa: Y015 -@typing.final -class NewVideoStreamResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class NewVideoStreamResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - STREAM_FIELD_NUMBER: builtins.int - @property - def stream(self) -> global___OwnedVideoStream: ... + STREAM_FIELD_NUMBER: _builtins.int + @_builtins.property + def stream(self) -> Global___OwnedVideoStream: ... def __init__( self, *, - stream: global___OwnedVideoStream | None = ..., + stream: Global___OwnedVideoStream | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["stream", b"stream"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["stream", b"stream"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["stream", b"stream"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["stream", b"stream"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___NewVideoStreamResponse = NewVideoStreamResponse +Global___NewVideoStreamResponse: _TypeAlias = NewVideoStreamResponse # noqa: Y015 -@typing.final -class VideoStreamFromParticipantRequest(google.protobuf.message.Message): +@_typing.final +class VideoStreamFromParticipantRequest(_message.Message): """Request a video stream from a participant""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - TYPE_FIELD_NUMBER: builtins.int - TRACK_SOURCE_FIELD_NUMBER: builtins.int - FORMAT_FIELD_NUMBER: builtins.int - NORMALIZE_STRIDE_FIELD_NUMBER: builtins.int - QUEUE_SIZE_FRAMES_FIELD_NUMBER: builtins.int - participant_handle: builtins.int - type: global___VideoStreamType.ValueType - track_source: track_pb2.TrackSource.ValueType - format: global___VideoBufferType.ValueType - normalize_stride: builtins.bool - queue_size_frames: builtins.int + DESCRIPTOR: _descriptor.Descriptor + + PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + TYPE_FIELD_NUMBER: _builtins.int + TRACK_SOURCE_FIELD_NUMBER: _builtins.int + FORMAT_FIELD_NUMBER: _builtins.int + NORMALIZE_STRIDE_FIELD_NUMBER: _builtins.int + QUEUE_SIZE_FRAMES_FIELD_NUMBER: _builtins.int + participant_handle: _builtins.int + type: Global___VideoStreamType.ValueType + track_source: _track_pb2.TrackSource.ValueType + format: Global___VideoBufferType.ValueType + normalize_stride: _builtins.bool + queue_size_frames: _builtins.int """Maximum number of queued WebRTC sink frames on the receive path. Omit this field to use the default bounded queue size of 1 frame. Set it to 0 to request unbounded buffering. @@ -233,50 +239,56 @@ class VideoStreamFromParticipantRequest(google.protobuf.message.Message): def __init__( self, *, - participant_handle: builtins.int | None = ..., - type: global___VideoStreamType.ValueType | None = ..., - track_source: track_pb2.TrackSource.ValueType | None = ..., - format: global___VideoBufferType.ValueType | None = ..., - normalize_stride: builtins.bool | None = ..., - queue_size_frames: builtins.int | None = ..., + participant_handle: _builtins.int | None = ..., + type: Global___VideoStreamType.ValueType | None = ..., + track_source: _track_pb2.TrackSource.ValueType | None = ..., + format: Global___VideoBufferType.ValueType | None = ..., + normalize_stride: _builtins.bool | None = ..., + queue_size_frames: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["format", b"format", "normalize_stride", b"normalize_stride", "participant_handle", b"participant_handle", "queue_size_frames", b"queue_size_frames", "track_source", b"track_source", "type", b"type"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["format", b"format", "normalize_stride", b"normalize_stride", "participant_handle", b"participant_handle", "queue_size_frames", b"queue_size_frames", "track_source", b"track_source", "type", b"type"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["format", b"format", "normalize_stride", b"normalize_stride", "participant_handle", b"participant_handle", "queue_size_frames", b"queue_size_frames", "track_source", b"track_source", "type", b"type"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["format", b"format", "normalize_stride", b"normalize_stride", "participant_handle", b"participant_handle", "queue_size_frames", b"queue_size_frames", "track_source", b"track_source", "type", b"type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___VideoStreamFromParticipantRequest = VideoStreamFromParticipantRequest +Global___VideoStreamFromParticipantRequest: _TypeAlias = VideoStreamFromParticipantRequest # noqa: Y015 -@typing.final -class VideoStreamFromParticipantResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class VideoStreamFromParticipantResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - STREAM_FIELD_NUMBER: builtins.int - @property - def stream(self) -> global___OwnedVideoStream: ... + STREAM_FIELD_NUMBER: _builtins.int + @_builtins.property + def stream(self) -> Global___OwnedVideoStream: ... def __init__( self, *, - stream: global___OwnedVideoStream | None = ..., + stream: Global___OwnedVideoStream | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["stream", b"stream"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["stream", b"stream"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["stream", b"stream"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["stream", b"stream"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___VideoStreamFromParticipantResponse = VideoStreamFromParticipantResponse +Global___VideoStreamFromParticipantResponse: _TypeAlias = VideoStreamFromParticipantResponse # noqa: Y015 -@typing.final -class NewVideoSourceRequest(google.protobuf.message.Message): +@_typing.final +class NewVideoSourceRequest(_message.Message): """Create a new VideoSource VideoSource is used to send video frame to a track """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TYPE_FIELD_NUMBER: builtins.int - RESOLUTION_FIELD_NUMBER: builtins.int - IS_SCREENCAST_FIELD_NUMBER: builtins.int - type: global___VideoSourceType.ValueType - is_screencast: builtins.bool - @property - def resolution(self) -> global___VideoSourceResolution: + TYPE_FIELD_NUMBER: _builtins.int + RESOLUTION_FIELD_NUMBER: _builtins.int + IS_SCREENCAST_FIELD_NUMBER: _builtins.int + type: Global___VideoSourceType.ValueType + is_screencast: _builtins.bool + @_builtins.property + def resolution(self) -> Global___VideoSourceResolution: """Used to determine which encodings to use + simulcast layers Most of the time it corresponds to the source resolution """ @@ -284,367 +296,427 @@ class NewVideoSourceRequest(google.protobuf.message.Message): def __init__( self, *, - type: global___VideoSourceType.ValueType | None = ..., - resolution: global___VideoSourceResolution | None = ..., - is_screencast: builtins.bool | None = ..., + type: Global___VideoSourceType.ValueType | None = ..., + resolution: Global___VideoSourceResolution | None = ..., + is_screencast: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["is_screencast", b"is_screencast", "resolution", b"resolution", "type", b"type"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["is_screencast", b"is_screencast", "resolution", b"resolution", "type", b"type"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["is_screencast", b"is_screencast", "resolution", b"resolution", "type", b"type"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["is_screencast", b"is_screencast", "resolution", b"resolution", "type", b"type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___NewVideoSourceRequest = NewVideoSourceRequest +Global___NewVideoSourceRequest: _TypeAlias = NewVideoSourceRequest # noqa: Y015 -@typing.final -class NewVideoSourceResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class NewVideoSourceResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - SOURCE_FIELD_NUMBER: builtins.int - @property - def source(self) -> global___OwnedVideoSource: ... + SOURCE_FIELD_NUMBER: _builtins.int + @_builtins.property + def source(self) -> Global___OwnedVideoSource: ... def __init__( self, *, - source: global___OwnedVideoSource | None = ..., + source: Global___OwnedVideoSource | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["source", b"source"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["source", b"source"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["source", b"source"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["source", b"source"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___NewVideoSourceResponse = NewVideoSourceResponse +Global___NewVideoSourceResponse: _TypeAlias = NewVideoSourceResponse # noqa: Y015 -@typing.final -class CaptureVideoFrameRequest(google.protobuf.message.Message): +@_typing.final +class CaptureVideoFrameRequest(_message.Message): """Push a frame to a VideoSource""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - SOURCE_HANDLE_FIELD_NUMBER: builtins.int - BUFFER_FIELD_NUMBER: builtins.int - TIMESTAMP_US_FIELD_NUMBER: builtins.int - ROTATION_FIELD_NUMBER: builtins.int - source_handle: builtins.int - timestamp_us: builtins.int + SOURCE_HANDLE_FIELD_NUMBER: _builtins.int + BUFFER_FIELD_NUMBER: _builtins.int + TIMESTAMP_US_FIELD_NUMBER: _builtins.int + ROTATION_FIELD_NUMBER: _builtins.int + source_handle: _builtins.int + timestamp_us: _builtins.int """In microseconds""" - rotation: global___VideoRotation.ValueType - @property - def buffer(self) -> global___VideoBufferInfo: ... + rotation: Global___VideoRotation.ValueType + @_builtins.property + def buffer(self) -> Global___VideoBufferInfo: ... def __init__( self, *, - source_handle: builtins.int | None = ..., - buffer: global___VideoBufferInfo | None = ..., - timestamp_us: builtins.int | None = ..., - rotation: global___VideoRotation.ValueType | None = ..., + source_handle: _builtins.int | None = ..., + buffer: Global___VideoBufferInfo | None = ..., + timestamp_us: _builtins.int | None = ..., + rotation: Global___VideoRotation.ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["buffer", b"buffer", "rotation", b"rotation", "source_handle", b"source_handle", "timestamp_us", b"timestamp_us"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["buffer", b"buffer", "rotation", b"rotation", "source_handle", b"source_handle", "timestamp_us", b"timestamp_us"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "rotation", b"rotation", "source_handle", b"source_handle", "timestamp_us", b"timestamp_us"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "rotation", b"rotation", "source_handle", b"source_handle", "timestamp_us", b"timestamp_us"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___CaptureVideoFrameRequest = CaptureVideoFrameRequest +Global___CaptureVideoFrameRequest: _TypeAlias = CaptureVideoFrameRequest # noqa: Y015 -@typing.final -class CaptureVideoFrameResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class CaptureVideoFrameResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... - -global___CaptureVideoFrameResponse = CaptureVideoFrameResponse - -@typing.final -class VideoConvertRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - FLIP_Y_FIELD_NUMBER: builtins.int - BUFFER_FIELD_NUMBER: builtins.int - DST_TYPE_FIELD_NUMBER: builtins.int - flip_y: builtins.bool - dst_type: global___VideoBufferType.ValueType - @property - def buffer(self) -> global___VideoBufferInfo: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___CaptureVideoFrameResponse: _TypeAlias = CaptureVideoFrameResponse # noqa: Y015 + +@_typing.final +class VideoConvertRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + FLIP_Y_FIELD_NUMBER: _builtins.int + BUFFER_FIELD_NUMBER: _builtins.int + DST_TYPE_FIELD_NUMBER: _builtins.int + flip_y: _builtins.bool + dst_type: Global___VideoBufferType.ValueType + @_builtins.property + def buffer(self) -> Global___VideoBufferInfo: ... def __init__( self, *, - flip_y: builtins.bool | None = ..., - buffer: global___VideoBufferInfo | None = ..., - dst_type: global___VideoBufferType.ValueType | None = ..., + flip_y: _builtins.bool | None = ..., + buffer: Global___VideoBufferInfo | None = ..., + dst_type: Global___VideoBufferType.ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["buffer", b"buffer", "dst_type", b"dst_type", "flip_y", b"flip_y"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["buffer", b"buffer", "dst_type", b"dst_type", "flip_y", b"flip_y"]) -> None: ... - -global___VideoConvertRequest = VideoConvertRequest - -@typing.final -class VideoConvertResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ERROR_FIELD_NUMBER: builtins.int - BUFFER_FIELD_NUMBER: builtins.int - error: builtins.str - @property - def buffer(self) -> global___OwnedVideoBuffer: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "dst_type", b"dst_type", "flip_y", b"flip_y"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "dst_type", b"dst_type", "flip_y", b"flip_y"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___VideoConvertRequest: _TypeAlias = VideoConvertRequest # noqa: Y015 + +@_typing.final +class VideoConvertResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ERROR_FIELD_NUMBER: _builtins.int + BUFFER_FIELD_NUMBER: _builtins.int + error: _builtins.str + @_builtins.property + def buffer(self) -> Global___OwnedVideoBuffer: ... def __init__( self, *, - error: builtins.str | None = ..., - buffer: global___OwnedVideoBuffer | None = ..., + error: _builtins.str | None = ..., + buffer: Global___OwnedVideoBuffer | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["buffer", b"buffer", "error", b"error", "message", b"message"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["buffer", b"buffer", "error", b"error", "message", b"message"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["error", "buffer"] | None: ... - -global___VideoConvertResponse = VideoConvertResponse - -@typing.final -class VideoResolution(google.protobuf.message.Message): + _HasFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "error", b"error", "message", b"message"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "error", b"error", "message", b"message"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["error", "buffer"] # noqa: Y015 + _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... + +Global___VideoConvertResponse: _TypeAlias = VideoConvertResponse # noqa: Y015 + +@_typing.final +class VideoResolution(_message.Message): """ VideoFrame buffers """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - WIDTH_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - FRAME_RATE_FIELD_NUMBER: builtins.int - width: builtins.int - height: builtins.int - frame_rate: builtins.float + WIDTH_FIELD_NUMBER: _builtins.int + HEIGHT_FIELD_NUMBER: _builtins.int + FRAME_RATE_FIELD_NUMBER: _builtins.int + width: _builtins.int + height: _builtins.int + frame_rate: _builtins.float def __init__( self, *, - width: builtins.int | None = ..., - height: builtins.int | None = ..., - frame_rate: builtins.float | None = ..., + width: _builtins.int | None = ..., + height: _builtins.int | None = ..., + frame_rate: _builtins.float | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["frame_rate", b"frame_rate", "height", b"height", "width", b"width"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["frame_rate", b"frame_rate", "height", b"height", "width", b"width"]) -> None: ... - -global___VideoResolution = VideoResolution - -@typing.final -class VideoBufferInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class ComponentInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - DATA_PTR_FIELD_NUMBER: builtins.int - STRIDE_FIELD_NUMBER: builtins.int - SIZE_FIELD_NUMBER: builtins.int - data_ptr: builtins.int - stride: builtins.int - size: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["frame_rate", b"frame_rate", "height", b"height", "width", b"width"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["frame_rate", b"frame_rate", "height", b"height", "width", b"width"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___VideoResolution: _TypeAlias = VideoResolution # noqa: Y015 + +@_typing.final +class VideoBufferInfo(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class ComponentInfo(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + DATA_PTR_FIELD_NUMBER: _builtins.int + STRIDE_FIELD_NUMBER: _builtins.int + SIZE_FIELD_NUMBER: _builtins.int + data_ptr: _builtins.int + stride: _builtins.int + size: _builtins.int def __init__( self, *, - data_ptr: builtins.int | None = ..., - stride: builtins.int | None = ..., - size: builtins.int | None = ..., + data_ptr: _builtins.int | None = ..., + stride: _builtins.int | None = ..., + size: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["data_ptr", b"data_ptr", "size", b"size", "stride", b"stride"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["data_ptr", b"data_ptr", "size", b"size", "stride", b"stride"]) -> None: ... - - TYPE_FIELD_NUMBER: builtins.int - WIDTH_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - DATA_PTR_FIELD_NUMBER: builtins.int - STRIDE_FIELD_NUMBER: builtins.int - COMPONENTS_FIELD_NUMBER: builtins.int - type: global___VideoBufferType.ValueType - width: builtins.int - height: builtins.int - data_ptr: builtins.int - stride: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["data_ptr", b"data_ptr", "size", b"size", "stride", b"stride"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["data_ptr", b"data_ptr", "size", b"size", "stride", b"stride"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + TYPE_FIELD_NUMBER: _builtins.int + WIDTH_FIELD_NUMBER: _builtins.int + HEIGHT_FIELD_NUMBER: _builtins.int + DATA_PTR_FIELD_NUMBER: _builtins.int + STRIDE_FIELD_NUMBER: _builtins.int + COMPONENTS_FIELD_NUMBER: _builtins.int + type: Global___VideoBufferType.ValueType + width: _builtins.int + height: _builtins.int + data_ptr: _builtins.int + stride: _builtins.int """only for packed formats""" - @property - def components(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___VideoBufferInfo.ComponentInfo]: ... + @_builtins.property + def components(self) -> _containers.RepeatedCompositeFieldContainer[Global___VideoBufferInfo.ComponentInfo]: ... def __init__( self, *, - type: global___VideoBufferType.ValueType | None = ..., - width: builtins.int | None = ..., - height: builtins.int | None = ..., - data_ptr: builtins.int | None = ..., - stride: builtins.int | None = ..., - components: collections.abc.Iterable[global___VideoBufferInfo.ComponentInfo] | None = ..., + type: Global___VideoBufferType.ValueType | None = ..., + width: _builtins.int | None = ..., + height: _builtins.int | None = ..., + data_ptr: _builtins.int | None = ..., + stride: _builtins.int | None = ..., + components: _abc.Iterable[Global___VideoBufferInfo.ComponentInfo] | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["data_ptr", b"data_ptr", "height", b"height", "stride", b"stride", "type", b"type", "width", b"width"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["components", b"components", "data_ptr", b"data_ptr", "height", b"height", "stride", b"stride", "type", b"type", "width", b"width"]) -> None: ... - -global___VideoBufferInfo = VideoBufferInfo - -@typing.final -class OwnedVideoBuffer(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___VideoBufferInfo: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["data_ptr", b"data_ptr", "height", b"height", "stride", b"stride", "type", b"type", "width", b"width"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["components", b"components", "data_ptr", b"data_ptr", "height", b"height", "stride", b"stride", "type", b"type", "width", b"width"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___VideoBufferInfo: _TypeAlias = VideoBufferInfo # noqa: Y015 + +@_typing.final +class OwnedVideoBuffer(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___VideoBufferInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___VideoBufferInfo | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___VideoBufferInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___OwnedVideoBuffer = OwnedVideoBuffer +Global___OwnedVideoBuffer: _TypeAlias = OwnedVideoBuffer # noqa: Y015 -@typing.final -class VideoStreamInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class VideoStreamInfo(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - TYPE_FIELD_NUMBER: builtins.int - type: global___VideoStreamType.ValueType + TYPE_FIELD_NUMBER: _builtins.int + type: Global___VideoStreamType.ValueType def __init__( self, *, - type: global___VideoStreamType.ValueType | None = ..., + type: Global___VideoStreamType.ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["type", b"type"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["type", b"type"]) -> None: ... - -global___VideoStreamInfo = VideoStreamInfo - -@typing.final -class OwnedVideoStream(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___VideoStreamInfo: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["type", b"type"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["type", b"type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___VideoStreamInfo: _TypeAlias = VideoStreamInfo # noqa: Y015 + +@_typing.final +class OwnedVideoStream(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___VideoStreamInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___VideoStreamInfo | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___VideoStreamInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... - -global___OwnedVideoStream = OwnedVideoStream - -@typing.final -class VideoStreamEvent(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - STREAM_HANDLE_FIELD_NUMBER: builtins.int - FRAME_RECEIVED_FIELD_NUMBER: builtins.int - EOS_FIELD_NUMBER: builtins.int - stream_handle: builtins.int - @property - def frame_received(self) -> global___VideoFrameReceived: ... - @property - def eos(self) -> global___VideoStreamEOS: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___OwnedVideoStream: _TypeAlias = OwnedVideoStream # noqa: Y015 + +@_typing.final +class VideoStreamEvent(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + STREAM_HANDLE_FIELD_NUMBER: _builtins.int + FRAME_RECEIVED_FIELD_NUMBER: _builtins.int + EOS_FIELD_NUMBER: _builtins.int + stream_handle: _builtins.int + @_builtins.property + def frame_received(self) -> Global___VideoFrameReceived: ... + @_builtins.property + def eos(self) -> Global___VideoStreamEOS: ... def __init__( self, *, - stream_handle: builtins.int | None = ..., - frame_received: global___VideoFrameReceived | None = ..., - eos: global___VideoStreamEOS | None = ..., + stream_handle: _builtins.int | None = ..., + frame_received: Global___VideoFrameReceived | None = ..., + eos: Global___VideoStreamEOS | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["eos", b"eos", "frame_received", b"frame_received", "message", b"message", "stream_handle", b"stream_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["eos", b"eos", "frame_received", b"frame_received", "message", b"message", "stream_handle", b"stream_handle"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["frame_received", "eos"] | None: ... - -global___VideoStreamEvent = VideoStreamEvent - -@typing.final -class VideoFrameReceived(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - BUFFER_FIELD_NUMBER: builtins.int - TIMESTAMP_US_FIELD_NUMBER: builtins.int - ROTATION_FIELD_NUMBER: builtins.int - timestamp_us: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["eos", b"eos", "frame_received", b"frame_received", "message", b"message", "stream_handle", b"stream_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["eos", b"eos", "frame_received", b"frame_received", "message", b"message", "stream_handle", b"stream_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["frame_received", "eos"] # noqa: Y015 + _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... + +Global___VideoStreamEvent: _TypeAlias = VideoStreamEvent # noqa: Y015 + +@_typing.final +class VideoFrameReceived(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + BUFFER_FIELD_NUMBER: _builtins.int + TIMESTAMP_US_FIELD_NUMBER: _builtins.int + ROTATION_FIELD_NUMBER: _builtins.int + timestamp_us: _builtins.int """In microseconds""" - rotation: global___VideoRotation.ValueType - @property - def buffer(self) -> global___OwnedVideoBuffer: ... + rotation: Global___VideoRotation.ValueType + @_builtins.property + def buffer(self) -> Global___OwnedVideoBuffer: ... def __init__( self, *, - buffer: global___OwnedVideoBuffer | None = ..., - timestamp_us: builtins.int | None = ..., - rotation: global___VideoRotation.ValueType | None = ..., + buffer: Global___OwnedVideoBuffer | None = ..., + timestamp_us: _builtins.int | None = ..., + rotation: Global___VideoRotation.ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["buffer", b"buffer", "rotation", b"rotation", "timestamp_us", b"timestamp_us"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["buffer", b"buffer", "rotation", b"rotation", "timestamp_us", b"timestamp_us"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "rotation", b"rotation", "timestamp_us", b"timestamp_us"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "rotation", b"rotation", "timestamp_us", b"timestamp_us"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___VideoFrameReceived = VideoFrameReceived +Global___VideoFrameReceived: _TypeAlias = VideoFrameReceived # noqa: Y015 -@typing.final -class VideoStreamEOS(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class VideoStreamEOS(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___VideoStreamEOS = VideoStreamEOS +Global___VideoStreamEOS: _TypeAlias = VideoStreamEOS # noqa: Y015 -@typing.final -class VideoSourceResolution(google.protobuf.message.Message): +@_typing.final +class VideoSourceResolution(_message.Message): """ VideoSource """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - WIDTH_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - width: builtins.int - height: builtins.int + WIDTH_FIELD_NUMBER: _builtins.int + HEIGHT_FIELD_NUMBER: _builtins.int + width: _builtins.int + height: _builtins.int def __init__( self, *, - width: builtins.int | None = ..., - height: builtins.int | None = ..., + width: _builtins.int | None = ..., + height: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["height", b"height", "width", b"width"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["height", b"height", "width", b"width"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["height", b"height", "width", b"width"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["height", b"height", "width", b"width"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___VideoSourceResolution = VideoSourceResolution +Global___VideoSourceResolution: _TypeAlias = VideoSourceResolution # noqa: Y015 -@typing.final -class VideoSourceInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class VideoSourceInfo(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - TYPE_FIELD_NUMBER: builtins.int - type: global___VideoSourceType.ValueType + TYPE_FIELD_NUMBER: _builtins.int + type: Global___VideoSourceType.ValueType def __init__( self, *, - type: global___VideoSourceType.ValueType | None = ..., + type: Global___VideoSourceType.ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["type", b"type"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["type", b"type"]) -> None: ... - -global___VideoSourceInfo = VideoSourceInfo - -@typing.final -class OwnedVideoSource(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___VideoSourceInfo: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["type", b"type"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["type", b"type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___VideoSourceInfo: _TypeAlias = VideoSourceInfo # noqa: Y015 + +@_typing.final +class OwnedVideoSource(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___VideoSourceInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___VideoSourceInfo | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___VideoSourceInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___OwnedVideoSource = OwnedVideoSource +Global___OwnedVideoSource: _TypeAlias = OwnedVideoSource # noqa: Y015 diff --git a/livekit-rtc/livekit/rtc/room.py b/livekit-rtc/livekit/rtc/room.py index 7fd778ae..9962cdab 100644 --- a/livekit-rtc/livekit/rtc/room.py +++ b/livekit-rtc/livekit/rtc/room.py @@ -16,6 +16,7 @@ import datetime import asyncio import ctypes +import enum import logging from dataclasses import dataclass, field from typing import Callable, Dict, Literal, Optional, cast, Mapping @@ -583,6 +584,35 @@ def unregister_text_stream_handler(self, topic: str): if self._text_stream_handlers.get(topic): self._text_stream_handlers.pop(topic) + async def simulate_scenario(self, scenario: "SimulateScenario") -> None: + """Trigger a reconnection / chaos scenario for testing. + + See `SimulateScenario` for the available variants. Most useful in + tests to deterministically force a Resume (signal-only reconnect + that preserves the PeerConnection and existing publications) or a + full reconnect (the SDK rebuilds the RtcSession and re-publishes + existing local tracks). + + Raises a `RuntimeError` if the SDK reports a failure. + """ + if not self.isconnected() or self._ffi_handle is None: + raise RuntimeError("simulate_scenario requires a connected room") + + req = proto_ffi.FfiRequest() + req.simulate_scenario.room_handle = self._ffi_handle.handle + req.simulate_scenario.scenario = scenario.value + queue = FfiClient.instance.queue.subscribe() + try: + resp = FfiClient.instance.request(req) + cb = await queue.wait_for( + lambda e: e.simulate_scenario.async_id == resp.simulate_scenario.async_id + ) + finally: + FfiClient.instance.queue.unsubscribe(queue) + + if cb.simulate_scenario.HasField("error") and cb.simulate_scenario.error: + raise RuntimeError(f"simulate_scenario failed: {cb.simulate_scenario.error}") + async def disconnect( self, *, reason: DisconnectReason.ValueType = DisconnectReason.CLIENT_INITIATED ) -> None: @@ -1040,3 +1070,23 @@ def __repr__(self) -> str: sid = self._first_sid_future.result() return f"rtc.Room(sid={sid}, name={self.name}, metadata={self.metadata}, connection_state={ConnectionState.Name(self._connection_state)})" + + +class SimulateScenario(enum.IntEnum): + """Reconnection / chaos scenarios that can be triggered via + :meth:`Room.simulate_scenario`. The values match the underlying FFI + ``SimulateScenarioKind`` proto enum.""" + + # Closes the signal channel locally; engine attempts a Resume reconnect + # (PeerConnection preserved, publications kept). + SIGNAL_RECONNECT = proto_room.SimulateScenarioKind.SIMULATE_SIGNAL_RECONNECT + SPEAKER = proto_room.SimulateScenarioKind.SIMULATE_SPEAKER + NODE_FAILURE = proto_room.SimulateScenarioKind.SIMULATE_NODE_FAILURE + SERVER_LEAVE = proto_room.SimulateScenarioKind.SIMULATE_SERVER_LEAVE + MIGRATION = proto_room.SimulateScenarioKind.SIMULATE_MIGRATION + FORCE_TCP = proto_room.SimulateScenarioKind.SIMULATE_FORCE_TCP + FORCE_TLS = proto_room.SimulateScenarioKind.SIMULATE_FORCE_TLS + # Asks the server to send LeaveRequest{Reconnect}, forcing a full + # reconnect (new RtcSession; SDK republishes existing local tracks; + # `Reconnected` event will fire). + FULL_RECONNECT = proto_room.SimulateScenarioKind.SIMULATE_FULL_RECONNECT diff --git a/livekit-rtc/rust-sdks b/livekit-rtc/rust-sdks index 07af4203..2ea09e6e 160000 --- a/livekit-rtc/rust-sdks +++ b/livekit-rtc/rust-sdks @@ -1 +1 @@ -Subproject commit 07af42030bf207fc6a9909addd8fbf068e868e25 +Subproject commit 2ea09e6e5b7cc22f0fb8066bd6f0637a5ed38f08 From e107a7981cd6d80e44609b6b565907179fa0191e Mon Sep 17 00:00:00 2001 From: David Zhao Date: Sat, 9 May 2026 22:42:49 -0700 Subject: [PATCH 2/6] fix --- livekit-protocol/protocol | 2 +- .../livekit/rtc/_proto/data_track_pb2.py | 20 +++++++++---------- .../livekit/rtc/_proto/data_track_pb2.pyi | 12 ++++++----- 3 files changed, 18 insertions(+), 16 deletions(-) diff --git a/livekit-protocol/protocol b/livekit-protocol/protocol index b053fb2f..da9e3f70 160000 --- a/livekit-protocol/protocol +++ b/livekit-protocol/protocol @@ -1 +1 @@ -Subproject commit b053fb2f69eee53a11c47649ce9c85a5e77125ae +Subproject commit da9e3f70b89e7b1874b2712bb92b58687c853fcf diff --git a/livekit-rtc/livekit/rtc/_proto/data_track_pb2.py b/livekit-rtc/livekit/rtc/_proto/data_track_pb2.py index b20c60ac..a787b6e1 100644 --- a/livekit-rtc/livekit/rtc/_proto/data_track_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/data_track_pb2.py @@ -25,7 +25,7 @@ from . import handle_pb2 as handle__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x10\x64\x61ta_track.proto\x12\rlivekit.proto\x1a\x0chandle.proto\"=\n\rDataTrackInfo\x12\x0c\n\x04name\x18\x01 \x02(\t\x12\x0b\n\x03sid\x18\x02 \x02(\t\x12\x11\n\tuses_e2ee\x18\x03 \x02(\x08\"9\n\x0e\x44\x61taTrackFrame\x12\x0f\n\x07payload\x18\x01 \x02(\x0c\x12\x16\n\x0euser_timestamp\x18\x02 \x01(\x04\"R\n\x0e\x44\x61taTrackError\x12/\n\x04\x63ode\x18\x01 \x02(\x0e\x32!.livekit.proto.DataTrackErrorCode\x12\x0f\n\x07message\x18\x02 \x02(\t\"`\n\x15PublishDataTrackError\x12\x36\n\x04\x63ode\x18\x01 \x02(\x0e\x32(.livekit.proto.PublishDataTrackErrorCode\x12\x0f\n\x07message\x18\x02 \x02(\t\"j\n\x1aLocalDataTrackTryPushError\x12;\n\x04\x63ode\x18\x01 \x02(\x0e\x32-.livekit.proto.LocalDataTrackTryPushErrorCode\x12\x0f\n\x07message\x18\x02 \x02(\t\"d\n\x17SubscribeDataTrackError\x12\x38\n\x04\x63ode\x18\x01 \x02(\x0e\x32*.livekit.proto.SubscribeDataTrackErrorCode\x12\x0f\n\x07message\x18\x02 \x02(\t\" \n\x10\x44\x61taTrackOptions\x12\x0c\n\x04name\x18\x01 \x02(\t\"\x87\x01\n\x17PublishDataTrackRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x30\n\x07options\x18\x02 \x02(\x0b\x32\x1f.livekit.proto.DataTrackOptions\x12\x18\n\x10request_async_id\x18\x03 \x01(\x04\",\n\x18PublishDataTrackResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\xa2\x01\n\x18PublishDataTrackCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\x33\n\x05track\x18\x02 \x01(\x0b\x32\".livekit.proto.OwnedLocalDataTrackH\x00\x12\x35\n\x05\x65rror\x18\x03 \x01(\x0b\x32$.livekit.proto.PublishDataTrackErrorH\x00\x42\x08\n\x06result\"p\n\x13OwnedLocalDataTrack\x12-\n\x06handle\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12*\n\x04info\x18\x02 \x02(\x0b\x32\x1c.livekit.proto.DataTrackInfo\"b\n\x1cLocalDataTrackTryPushRequest\x12\x14\n\x0ctrack_handle\x18\x01 \x02(\x04\x12,\n\x05\x66rame\x18\x02 \x02(\x0b\x32\x1d.livekit.proto.DataTrackFrame\"Y\n\x1dLocalDataTrackTryPushResponse\x12\x38\n\x05\x65rror\x18\x02 \x01(\x0b\x32).livekit.proto.LocalDataTrackTryPushError\"8\n LocalDataTrackIsPublishedRequest\x12\x14\n\x0ctrack_handle\x18\x01 \x02(\x04\"9\n!LocalDataTrackIsPublishedResponse\x12\x14\n\x0cis_published\x18\x01 \x02(\x08\"6\n\x1eLocalDataTrackUnpublishRequest\x12\x14\n\x0ctrack_handle\x18\x01 \x02(\x04\"!\n\x1fLocalDataTrackUnpublishResponse\"\x8d\x01\n\x14OwnedRemoteDataTrack\x12-\n\x06handle\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12*\n\x04info\x18\x02 \x02(\x0b\x32\x1c.livekit.proto.DataTrackInfo\x12\x1a\n\x12publisher_identity\x18\x03 \x02(\t\"E\n\x14OwnedDataTrackStream\x12-\n\x06handle\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\"0\n\x19\x44\x61taTrackSubscribeOptions\x12\x13\n\x0b\x62uffer_size\x18\x01 \x01(\r\"9\n!RemoteDataTrackIsPublishedRequest\x12\x14\n\x0ctrack_handle\x18\x01 \x02(\x04\":\n\"RemoteDataTrackIsPublishedResponse\x12\x14\n\x0cis_published\x18\x01 \x02(\x08\"l\n\x19SubscribeDataTrackRequest\x12\x14\n\x0ctrack_handle\x18\x01 \x02(\x04\x12\x39\n\x07options\x18\x02 \x02(\x0b\x32(.livekit.proto.DataTrackSubscribeOptions\"Q\n\x1aSubscribeDataTrackResponse\x12\x33\n\x06stream\x18\x01 \x02(\x0b\x32#.livekit.proto.OwnedDataTrackStream\"3\n\x1a\x44\x61taTrackStreamReadRequest\x12\x15\n\rstream_handle\x18\x01 \x02(\x04\"\x1d\n\x1b\x44\x61taTrackStreamReadResponse\"\xb0\x01\n\x14\x44\x61taTrackStreamEvent\x12\x15\n\rstream_handle\x18\x01 \x02(\x04\x12\x45\n\x0e\x66rame_received\x18\x02 \x01(\x0b\x32+.livekit.proto.DataTrackStreamFrameReceivedH\x00\x12\x30\n\x03\x65os\x18\x03 \x01(\x0b\x32!.livekit.proto.DataTrackStreamEOSH\x00\x42\x08\n\x06\x64\x65tail\"L\n\x1c\x44\x61taTrackStreamFrameReceived\x12,\n\x05\x66rame\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.DataTrackFrame\"#\n\x12\x44\x61taTrackStreamEOS\x12\r\n\x05\x65rror\x18\x01 \x01(\t*\x87\x03\n\x12\x44\x61taTrackErrorCode\x12!\n\x1d\x44\x41TA_TRACK_ERROR_CODE_UNKNOWN\x10\x00\x12(\n$DATA_TRACK_ERROR_CODE_INVALID_HANDLE\x10\x01\x12.\n*DATA_TRACK_ERROR_CODE_DUPLICATE_TRACK_NAME\x10\x02\x12+\n\'DATA_TRACK_ERROR_CODE_TRACK_UNPUBLISHED\x10\x03\x12%\n!DATA_TRACK_ERROR_CODE_BUFFER_FULL\x10\x04\x12-\n)DATA_TRACK_ERROR_CODE_SUBSCRIPTION_CLOSED\x10\x05\x12#\n\x1f\x44\x41TA_TRACK_ERROR_CODE_CANCELLED\x10\x06\x12(\n$DATA_TRACK_ERROR_CODE_PROTOCOL_ERROR\x10\x07\x12\"\n\x1e\x44\x41TA_TRACK_ERROR_CODE_INTERNAL\x10\x08*\xf3\x03\n\x19PublishDataTrackErrorCode\x12)\n%PUBLISH_DATA_TRACK_ERROR_CODE_UNKNOWN\x10\x00\x12\x30\n,PUBLISH_DATA_TRACK_ERROR_CODE_INVALID_HANDLE\x10\x01\x12\x30\n,PUBLISH_DATA_TRACK_ERROR_CODE_DUPLICATE_NAME\x10\x02\x12)\n%PUBLISH_DATA_TRACK_ERROR_CODE_TIMEOUT\x10\x03\x12.\n*PUBLISH_DATA_TRACK_ERROR_CODE_DISCONNECTED\x10\x04\x12-\n)PUBLISH_DATA_TRACK_ERROR_CODE_NOT_ALLOWED\x10\x05\x12.\n*PUBLISH_DATA_TRACK_ERROR_CODE_INVALID_NAME\x10\x06\x12/\n+PUBLISH_DATA_TRACK_ERROR_CODE_LIMIT_REACHED\x10\x07\x12\x30\n,PUBLISH_DATA_TRACK_ERROR_CODE_PROTOCOL_ERROR\x10\x08\x12*\n&PUBLISH_DATA_TRACK_ERROR_CODE_INTERNAL\x10\t*\xaf\x02\n\x1eLocalDataTrackTryPushErrorCode\x12\x30\n,LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_UNKNOWN\x10\x00\x12\x37\n3LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_INVALID_HANDLE\x10\x01\x12:\n6LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_TRACK_UNPUBLISHED\x10\x02\x12\x33\n/LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_QUEUE_FULL\x10\x03\x12\x31\n-LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_INTERNAL\x10\x04*\xf0\x02\n\x1bSubscribeDataTrackErrorCode\x12+\n\'SUBSCRIBE_DATA_TRACK_ERROR_CODE_UNKNOWN\x10\x00\x12\x32\n.SUBSCRIBE_DATA_TRACK_ERROR_CODE_INVALID_HANDLE\x10\x01\x12/\n+SUBSCRIBE_DATA_TRACK_ERROR_CODE_UNPUBLISHED\x10\x02\x12+\n\'SUBSCRIBE_DATA_TRACK_ERROR_CODE_TIMEOUT\x10\x03\x12\x30\n,SUBSCRIBE_DATA_TRACK_ERROR_CODE_DISCONNECTED\x10\x04\x12\x32\n.SUBSCRIBE_DATA_TRACK_ERROR_CODE_PROTOCOL_ERROR\x10\x05\x12,\n(SUBSCRIBE_DATA_TRACK_ERROR_CODE_INTERNAL\x10\x06\x42\x10\xaa\x02\rLiveKit.Proto') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x10\x64\x61ta_track.proto\x12\rlivekit.proto\x1a\x0chandle.proto\"=\n\rDataTrackInfo\x12\x0c\n\x04name\x18\x01 \x02(\t\x12\x0b\n\x03sid\x18\x02 \x02(\t\x12\x11\n\tuses_e2ee\x18\x03 \x02(\x08\"9\n\x0e\x44\x61taTrackFrame\x12\x0f\n\x07payload\x18\x01 \x02(\x0c\x12\x16\n\x0euser_timestamp\x18\x02 \x01(\x04\"R\n\x0e\x44\x61taTrackError\x12/\n\x04\x63ode\x18\x01 \x02(\x0e\x32!.livekit.proto.DataTrackErrorCode\x12\x0f\n\x07message\x18\x02 \x02(\t\"`\n\x15PublishDataTrackError\x12\x36\n\x04\x63ode\x18\x01 \x02(\x0e\x32(.livekit.proto.PublishDataTrackErrorCode\x12\x0f\n\x07message\x18\x02 \x02(\t\"j\n\x1aLocalDataTrackTryPushError\x12;\n\x04\x63ode\x18\x01 \x02(\x0e\x32-.livekit.proto.LocalDataTrackTryPushErrorCode\x12\x0f\n\x07message\x18\x02 \x02(\t\"d\n\x17SubscribeDataTrackError\x12\x38\n\x04\x63ode\x18\x01 \x02(\x0e\x32*.livekit.proto.SubscribeDataTrackErrorCode\x12\x0f\n\x07message\x18\x02 \x02(\t\" \n\x10\x44\x61taTrackOptions\x12\x0c\n\x04name\x18\x01 \x02(\t\"\x87\x01\n\x17PublishDataTrackRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x30\n\x07options\x18\x02 \x02(\x0b\x32\x1f.livekit.proto.DataTrackOptions\x12\x18\n\x10request_async_id\x18\x03 \x01(\x04\",\n\x18PublishDataTrackResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\xa2\x01\n\x18PublishDataTrackCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\x33\n\x05track\x18\x02 \x01(\x0b\x32\".livekit.proto.OwnedLocalDataTrackH\x00\x12\x35\n\x05\x65rror\x18\x03 \x01(\x0b\x32$.livekit.proto.PublishDataTrackErrorH\x00\x42\x08\n\x06result\"p\n\x13OwnedLocalDataTrack\x12-\n\x06handle\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12*\n\x04info\x18\x02 \x02(\x0b\x32\x1c.livekit.proto.DataTrackInfo\"b\n\x1cLocalDataTrackTryPushRequest\x12\x14\n\x0ctrack_handle\x18\x01 \x02(\x04\x12,\n\x05\x66rame\x18\x02 \x02(\x0b\x32\x1d.livekit.proto.DataTrackFrame\"Y\n\x1dLocalDataTrackTryPushResponse\x12\x38\n\x05\x65rror\x18\x02 \x01(\x0b\x32).livekit.proto.LocalDataTrackTryPushError\"8\n LocalDataTrackIsPublishedRequest\x12\x14\n\x0ctrack_handle\x18\x01 \x02(\x04\"9\n!LocalDataTrackIsPublishedResponse\x12\x14\n\x0cis_published\x18\x01 \x02(\x08\"6\n\x1eLocalDataTrackUnpublishRequest\x12\x14\n\x0ctrack_handle\x18\x01 \x02(\x04\"!\n\x1fLocalDataTrackUnpublishResponse\"\x8d\x01\n\x14OwnedRemoteDataTrack\x12-\n\x06handle\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12*\n\x04info\x18\x02 \x02(\x0b\x32\x1c.livekit.proto.DataTrackInfo\x12\x1a\n\x12publisher_identity\x18\x03 \x02(\t\"E\n\x14OwnedDataTrackStream\x12-\n\x06handle\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\"0\n\x19\x44\x61taTrackSubscribeOptions\x12\x13\n\x0b\x62uffer_size\x18\x01 \x01(\r\"9\n!RemoteDataTrackIsPublishedRequest\x12\x14\n\x0ctrack_handle\x18\x01 \x02(\x04\":\n\"RemoteDataTrackIsPublishedResponse\x12\x14\n\x0cis_published\x18\x01 \x02(\x08\"l\n\x19SubscribeDataTrackRequest\x12\x14\n\x0ctrack_handle\x18\x01 \x02(\x04\x12\x39\n\x07options\x18\x02 \x02(\x0b\x32(.livekit.proto.DataTrackSubscribeOptions\"Q\n\x1aSubscribeDataTrackResponse\x12\x33\n\x06stream\x18\x01 \x02(\x0b\x32#.livekit.proto.OwnedDataTrackStream\"3\n\x1a\x44\x61taTrackStreamReadRequest\x12\x15\n\rstream_handle\x18\x01 \x02(\x04\"\x1d\n\x1b\x44\x61taTrackStreamReadResponse\"\xb0\x01\n\x14\x44\x61taTrackStreamEvent\x12\x15\n\rstream_handle\x18\x01 \x02(\x04\x12\x45\n\x0e\x66rame_received\x18\x02 \x01(\x0b\x32+.livekit.proto.DataTrackStreamFrameReceivedH\x00\x12\x30\n\x03\x65os\x18\x03 \x01(\x0b\x32!.livekit.proto.DataTrackStreamEOSH\x00\x42\x08\n\x06\x64\x65tail\"L\n\x1c\x44\x61taTrackStreamFrameReceived\x12,\n\x05\x66rame\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.DataTrackFrame\"K\n\x12\x44\x61taTrackStreamEOS\x12\x35\n\x05\x65rror\x18\x01 \x01(\x0b\x32&.livekit.proto.SubscribeDataTrackError*\x87\x03\n\x12\x44\x61taTrackErrorCode\x12!\n\x1d\x44\x41TA_TRACK_ERROR_CODE_UNKNOWN\x10\x00\x12(\n$DATA_TRACK_ERROR_CODE_INVALID_HANDLE\x10\x01\x12.\n*DATA_TRACK_ERROR_CODE_DUPLICATE_TRACK_NAME\x10\x02\x12+\n\'DATA_TRACK_ERROR_CODE_TRACK_UNPUBLISHED\x10\x03\x12%\n!DATA_TRACK_ERROR_CODE_BUFFER_FULL\x10\x04\x12-\n)DATA_TRACK_ERROR_CODE_SUBSCRIPTION_CLOSED\x10\x05\x12#\n\x1f\x44\x41TA_TRACK_ERROR_CODE_CANCELLED\x10\x06\x12(\n$DATA_TRACK_ERROR_CODE_PROTOCOL_ERROR\x10\x07\x12\"\n\x1e\x44\x41TA_TRACK_ERROR_CODE_INTERNAL\x10\x08*\xf3\x03\n\x19PublishDataTrackErrorCode\x12)\n%PUBLISH_DATA_TRACK_ERROR_CODE_UNKNOWN\x10\x00\x12\x30\n,PUBLISH_DATA_TRACK_ERROR_CODE_INVALID_HANDLE\x10\x01\x12\x30\n,PUBLISH_DATA_TRACK_ERROR_CODE_DUPLICATE_NAME\x10\x02\x12)\n%PUBLISH_DATA_TRACK_ERROR_CODE_TIMEOUT\x10\x03\x12.\n*PUBLISH_DATA_TRACK_ERROR_CODE_DISCONNECTED\x10\x04\x12-\n)PUBLISH_DATA_TRACK_ERROR_CODE_NOT_ALLOWED\x10\x05\x12.\n*PUBLISH_DATA_TRACK_ERROR_CODE_INVALID_NAME\x10\x06\x12/\n+PUBLISH_DATA_TRACK_ERROR_CODE_LIMIT_REACHED\x10\x07\x12\x30\n,PUBLISH_DATA_TRACK_ERROR_CODE_PROTOCOL_ERROR\x10\x08\x12*\n&PUBLISH_DATA_TRACK_ERROR_CODE_INTERNAL\x10\t*\xaf\x02\n\x1eLocalDataTrackTryPushErrorCode\x12\x30\n,LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_UNKNOWN\x10\x00\x12\x37\n3LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_INVALID_HANDLE\x10\x01\x12:\n6LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_TRACK_UNPUBLISHED\x10\x02\x12\x33\n/LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_QUEUE_FULL\x10\x03\x12\x31\n-LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_INTERNAL\x10\x04*\xf0\x02\n\x1bSubscribeDataTrackErrorCode\x12+\n\'SUBSCRIBE_DATA_TRACK_ERROR_CODE_UNKNOWN\x10\x00\x12\x32\n.SUBSCRIBE_DATA_TRACK_ERROR_CODE_INVALID_HANDLE\x10\x01\x12/\n+SUBSCRIBE_DATA_TRACK_ERROR_CODE_UNPUBLISHED\x10\x02\x12+\n\'SUBSCRIBE_DATA_TRACK_ERROR_CODE_TIMEOUT\x10\x03\x12\x30\n,SUBSCRIBE_DATA_TRACK_ERROR_CODE_DISCONNECTED\x10\x04\x12\x32\n.SUBSCRIBE_DATA_TRACK_ERROR_CODE_PROTOCOL_ERROR\x10\x05\x12,\n(SUBSCRIBE_DATA_TRACK_ERROR_CODE_INTERNAL\x10\x06\x42\x10\xaa\x02\rLiveKit.Proto') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -33,14 +33,14 @@ if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'\252\002\rLiveKit.Proto' - _globals['_DATATRACKERRORCODE']._serialized_start=2415 - _globals['_DATATRACKERRORCODE']._serialized_end=2806 - _globals['_PUBLISHDATATRACKERRORCODE']._serialized_start=2809 - _globals['_PUBLISHDATATRACKERRORCODE']._serialized_end=3308 - _globals['_LOCALDATATRACKTRYPUSHERRORCODE']._serialized_start=3311 - _globals['_LOCALDATATRACKTRYPUSHERRORCODE']._serialized_end=3614 - _globals['_SUBSCRIBEDATATRACKERRORCODE']._serialized_start=3617 - _globals['_SUBSCRIBEDATATRACKERRORCODE']._serialized_end=3985 + _globals['_DATATRACKERRORCODE']._serialized_start=2455 + _globals['_DATATRACKERRORCODE']._serialized_end=2846 + _globals['_PUBLISHDATATRACKERRORCODE']._serialized_start=2849 + _globals['_PUBLISHDATATRACKERRORCODE']._serialized_end=3348 + _globals['_LOCALDATATRACKTRYPUSHERRORCODE']._serialized_start=3351 + _globals['_LOCALDATATRACKTRYPUSHERRORCODE']._serialized_end=3654 + _globals['_SUBSCRIBEDATATRACKERRORCODE']._serialized_start=3657 + _globals['_SUBSCRIBEDATATRACKERRORCODE']._serialized_end=4025 _globals['_DATATRACKINFO']._serialized_start=49 _globals['_DATATRACKINFO']._serialized_end=110 _globals['_DATATRACKFRAME']._serialized_start=112 @@ -98,5 +98,5 @@ _globals['_DATATRACKSTREAMFRAMERECEIVED']._serialized_start=2299 _globals['_DATATRACKSTREAMFRAMERECEIVED']._serialized_end=2375 _globals['_DATATRACKSTREAMEOS']._serialized_start=2377 - _globals['_DATATRACKSTREAMEOS']._serialized_end=2412 + _globals['_DATATRACKSTREAMEOS']._serialized_end=2452 # @@protoc_insertion_point(module_scope) diff --git a/livekit-rtc/livekit/rtc/_proto/data_track_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/data_track_pb2.pyi index 45356042..ada1a5b2 100644 --- a/livekit-rtc/livekit/rtc/_proto/data_track_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/data_track_pb2.pyi @@ -794,14 +794,16 @@ class DataTrackStreamEOS(_message.Message): DESCRIPTOR: _descriptor.Descriptor ERROR_FIELD_NUMBER: _builtins.int - error: _builtins.str - """If the track could not be subscribed to, a message describing the error. - Absent if the stream ended normally. - """ + @_builtins.property + def error(self) -> Global___SubscribeDataTrackError: + """Present if stream ended before any frames were emitted due to subscription establishment failing. + Absent if the stream ended normally (i.e., due to the track being unpublished). + """ + def __init__( self, *, - error: _builtins.str | None = ..., + error: Global___SubscribeDataTrackError | None = ..., ) -> None: ... _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... From 23680a170e6d0757ce176cfacec4359a79ce753d Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 10 May 2026 05:43:28 +0000 Subject: [PATCH 3/6] generated protobuf --- .../livekit/rtc/_proto/audio_frame_pb2.py | 16 +- .../livekit/rtc/_proto/audio_frame_pb2.pyi | 1546 +++--- .../livekit/rtc/_proto/data_stream_pb2.py | 24 +- .../livekit/rtc/_proto/data_stream_pb2.pyi | 2059 ++++---- .../livekit/rtc/_proto/data_track_pb2.py | 16 +- .../livekit/rtc/_proto/data_track_pb2.pyi | 839 ++-- livekit-rtc/livekit/rtc/_proto/e2ee_pb2.py | 16 +- livekit-rtc/livekit/rtc/_proto/e2ee_pb2.pyi | 866 ++-- livekit-rtc/livekit/rtc/_proto/ffi_pb2.py | 16 +- livekit-rtc/livekit/rtc/_proto/ffi_pb2.pyi | 1817 ++++--- livekit-rtc/livekit/rtc/_proto/handle_pb2.py | 16 +- livekit-rtc/livekit/rtc/_proto/handle_pb2.pyi | 37 +- .../livekit/rtc/_proto/participant_pb2.py | 18 +- .../livekit/rtc/_proto/participant_pb2.pyi | 284 +- livekit-rtc/livekit/rtc/_proto/room_pb2.py | 24 +- livekit-rtc/livekit/rtc/_proto/room_pb2.pyi | 4331 ++++++++--------- livekit-rtc/livekit/rtc/_proto/rpc_pb2.py | 16 +- livekit-rtc/livekit/rtc/_proto/rpc_pb2.pyi | 383 +- livekit-rtc/livekit/rtc/_proto/stats_pb2.py | 18 +- livekit-rtc/livekit/rtc/_proto/stats_pb2.pyi | 2505 +++++----- livekit-rtc/livekit/rtc/_proto/track_pb2.py | 16 +- livekit-rtc/livekit/rtc/_proto/track_pb2.pyi | 711 ++- .../rtc/_proto/track_publication_pb2.py | 16 +- .../rtc/_proto/track_publication_pb2.pyi | 154 +- .../livekit/rtc/_proto/video_frame_pb2.py | 16 +- .../livekit/rtc/_proto/video_frame_pb2.pyi | 871 ++-- 26 files changed, 7604 insertions(+), 9027 deletions(-) diff --git a/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.py b/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.py index b114db10..c634580d 100644 --- a/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.py @@ -1,22 +1,12 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE # source: audio_frame.proto -# Protobuf Python Version: 7.34.1 +# Protobuf Python Version: 4.25.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 7, - 34, - 1, - '', - 'audio_frame.proto' -) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -31,8 +21,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'audio_frame_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None _globals['DESCRIPTOR']._serialized_options = b'\252\002\rLiveKit.Proto' _globals['_SOXRESAMPLERDATATYPE']._serialized_start=4499 _globals['_SOXRESAMPLERDATATYPE']._serialized_end=4573 diff --git a/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.pyi index 46b2244a..cb73e1ea 100644 --- a/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.pyi @@ -16,30 +16,30 @@ See the License for the specific language governing permissions and limitations under the License. """ -from collections import abc as _abc -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -import builtins as _builtins -from . import handle_pb2 as _handle_pb2 +import builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +from . import handle_pb2 import sys -from . import track_pb2 as _track_pb2 -import typing as _typing +from . import track_pb2 +import typing -if sys.version_info >= (3, 11): - from typing import TypeAlias as _TypeAlias, Never as _Never +if sys.version_info >= (3, 10): + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias, Never as _Never + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class _SoxResamplerDataType: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _SoxResamplerDataTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_SoxResamplerDataType.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _SoxResamplerDataTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SoxResamplerDataType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor SOXR_DATATYPE_INT16I: _SoxResamplerDataType.ValueType # 0 """TODO(theomonnom): support other datatypes (shouldn't really be needed)""" SOXR_DATATYPE_INT16S: _SoxResamplerDataType.ValueType # 1 @@ -49,14 +49,14 @@ class SoxResamplerDataType(_SoxResamplerDataType, metaclass=_SoxResamplerDataTyp SOXR_DATATYPE_INT16I: SoxResamplerDataType.ValueType # 0 """TODO(theomonnom): support other datatypes (shouldn't really be needed)""" SOXR_DATATYPE_INT16S: SoxResamplerDataType.ValueType # 1 -Global___SoxResamplerDataType: _TypeAlias = SoxResamplerDataType # noqa: Y015 +global___SoxResamplerDataType = SoxResamplerDataType class _SoxQualityRecipe: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _SoxQualityRecipeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_SoxQualityRecipe.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _SoxQualityRecipeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SoxQualityRecipe.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor SOXR_QUALITY_QUICK: _SoxQualityRecipe.ValueType # 0 SOXR_QUALITY_LOW: _SoxQualityRecipe.ValueType # 1 SOXR_QUALITY_MEDIUM: _SoxQualityRecipe.ValueType # 2 @@ -70,14 +70,14 @@ SOXR_QUALITY_LOW: SoxQualityRecipe.ValueType # 1 SOXR_QUALITY_MEDIUM: SoxQualityRecipe.ValueType # 2 SOXR_QUALITY_HIGH: SoxQualityRecipe.ValueType # 3 SOXR_QUALITY_VERYHIGH: SoxQualityRecipe.ValueType # 4 -Global___SoxQualityRecipe: _TypeAlias = SoxQualityRecipe # noqa: Y015 +global___SoxQualityRecipe = SoxQualityRecipe class _SoxFlagBits: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _SoxFlagBitsEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_SoxFlagBits.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _SoxFlagBitsEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SoxFlagBits.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor SOXR_ROLLOFF_SMALL: _SoxFlagBits.ValueType # 0 """1 << 0""" SOXR_ROLLOFF_MEDIUM: _SoxFlagBits.ValueType # 1 @@ -105,14 +105,14 @@ SOXR_DOUBLE_PRECISION: SoxFlagBits.ValueType # 4 """1 << 4""" SOXR_VR: SoxFlagBits.ValueType # 5 """1 << 5""" -Global___SoxFlagBits: _TypeAlias = SoxFlagBits # noqa: Y015 +global___SoxFlagBits = SoxFlagBits class _AudioStreamType: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _AudioStreamTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_AudioStreamType.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _AudioStreamTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_AudioStreamType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor AUDIO_STREAM_NATIVE: _AudioStreamType.ValueType # 0 AUDIO_STREAM_HTML: _AudioStreamType.ValueType # 1 @@ -123,46 +123,46 @@ class AudioStreamType(_AudioStreamType, metaclass=_AudioStreamTypeEnumTypeWrappe AUDIO_STREAM_NATIVE: AudioStreamType.ValueType # 0 AUDIO_STREAM_HTML: AudioStreamType.ValueType # 1 -Global___AudioStreamType: _TypeAlias = AudioStreamType # noqa: Y015 +global___AudioStreamType = AudioStreamType class _AudioSourceType: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _AudioSourceTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_AudioSourceType.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _AudioSourceTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_AudioSourceType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor AUDIO_SOURCE_NATIVE: _AudioSourceType.ValueType # 0 class AudioSourceType(_AudioSourceType, metaclass=_AudioSourceTypeEnumTypeWrapper): ... AUDIO_SOURCE_NATIVE: AudioSourceType.ValueType # 0 -Global___AudioSourceType: _TypeAlias = AudioSourceType # noqa: Y015 +global___AudioSourceType = AudioSourceType -@_typing.final -class NewAudioStreamRequest(_message.Message): +@typing.final +class NewAudioStreamRequest(google.protobuf.message.Message): """Create a new AudioStream AudioStream is used to receive audio frames from a track """ - DESCRIPTOR: _descriptor.Descriptor - - TRACK_HANDLE_FIELD_NUMBER: _builtins.int - TYPE_FIELD_NUMBER: _builtins.int - SAMPLE_RATE_FIELD_NUMBER: _builtins.int - NUM_CHANNELS_FIELD_NUMBER: _builtins.int - AUDIO_FILTER_MODULE_ID_FIELD_NUMBER: _builtins.int - AUDIO_FILTER_OPTIONS_FIELD_NUMBER: _builtins.int - FRAME_SIZE_MS_FIELD_NUMBER: _builtins.int - QUEUE_SIZE_FRAMES_FIELD_NUMBER: _builtins.int - track_handle: _builtins.int - type: Global___AudioStreamType.ValueType - sample_rate: _builtins.int - num_channels: _builtins.int - audio_filter_module_id: _builtins.str + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TRACK_HANDLE_FIELD_NUMBER: builtins.int + TYPE_FIELD_NUMBER: builtins.int + SAMPLE_RATE_FIELD_NUMBER: builtins.int + NUM_CHANNELS_FIELD_NUMBER: builtins.int + AUDIO_FILTER_MODULE_ID_FIELD_NUMBER: builtins.int + AUDIO_FILTER_OPTIONS_FIELD_NUMBER: builtins.int + FRAME_SIZE_MS_FIELD_NUMBER: builtins.int + QUEUE_SIZE_FRAMES_FIELD_NUMBER: builtins.int + track_handle: builtins.int + type: global___AudioStreamType.ValueType + sample_rate: builtins.int + num_channels: builtins.int + audio_filter_module_id: builtins.str """Unique identifier passed in LoadAudioFilterPluginRequest""" - audio_filter_options: _builtins.str - frame_size_ms: _builtins.int - queue_size_frames: _builtins.int + audio_filter_options: builtins.str + frame_size_ms: builtins.int + queue_size_frames: builtins.int """Maximum number of queued WebRTC sink frames. Each frame is typically 10 ms of decoded PCM audio on the receive path. Omit this field to use the default bounded queue size of 10 frames. Set it to 0 to request unbounded @@ -176,65 +176,59 @@ class NewAudioStreamRequest(_message.Message): def __init__( self, *, - track_handle: _builtins.int | None = ..., - type: Global___AudioStreamType.ValueType | None = ..., - sample_rate: _builtins.int | None = ..., - num_channels: _builtins.int | None = ..., - audio_filter_module_id: _builtins.str | None = ..., - audio_filter_options: _builtins.str | None = ..., - frame_size_ms: _builtins.int | None = ..., - queue_size_frames: _builtins.int | None = ..., + track_handle: builtins.int | None = ..., + type: global___AudioStreamType.ValueType | None = ..., + sample_rate: builtins.int | None = ..., + num_channels: builtins.int | None = ..., + audio_filter_module_id: builtins.str | None = ..., + audio_filter_options: builtins.str | None = ..., + frame_size_ms: builtins.int | None = ..., + queue_size_frames: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["audio_filter_module_id", b"audio_filter_module_id", "audio_filter_options", b"audio_filter_options", "frame_size_ms", b"frame_size_ms", "num_channels", b"num_channels", "queue_size_frames", b"queue_size_frames", "sample_rate", b"sample_rate", "track_handle", b"track_handle", "type", b"type"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["audio_filter_module_id", b"audio_filter_module_id", "audio_filter_options", b"audio_filter_options", "frame_size_ms", b"frame_size_ms", "num_channels", b"num_channels", "queue_size_frames", b"queue_size_frames", "sample_rate", b"sample_rate", "track_handle", b"track_handle", "type", b"type"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["audio_filter_module_id", b"audio_filter_module_id", "audio_filter_options", b"audio_filter_options", "frame_size_ms", b"frame_size_ms", "num_channels", b"num_channels", "queue_size_frames", b"queue_size_frames", "sample_rate", b"sample_rate", "track_handle", b"track_handle", "type", b"type"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["audio_filter_module_id", b"audio_filter_module_id", "audio_filter_options", b"audio_filter_options", "frame_size_ms", b"frame_size_ms", "num_channels", b"num_channels", "queue_size_frames", b"queue_size_frames", "sample_rate", b"sample_rate", "track_handle", b"track_handle", "type", b"type"]) -> None: ... -Global___NewAudioStreamRequest: _TypeAlias = NewAudioStreamRequest # noqa: Y015 +global___NewAudioStreamRequest = NewAudioStreamRequest -@_typing.final -class NewAudioStreamResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class NewAudioStreamResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - STREAM_FIELD_NUMBER: _builtins.int - @_builtins.property - def stream(self) -> Global___OwnedAudioStream: ... + STREAM_FIELD_NUMBER: builtins.int + @property + def stream(self) -> global___OwnedAudioStream: ... def __init__( self, *, - stream: Global___OwnedAudioStream | None = ..., + stream: global___OwnedAudioStream | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["stream", b"stream"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["stream", b"stream"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___NewAudioStreamResponse: _TypeAlias = NewAudioStreamResponse # noqa: Y015 - -@_typing.final -class AudioStreamFromParticipantRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int - TYPE_FIELD_NUMBER: _builtins.int - TRACK_SOURCE_FIELD_NUMBER: _builtins.int - SAMPLE_RATE_FIELD_NUMBER: _builtins.int - NUM_CHANNELS_FIELD_NUMBER: _builtins.int - AUDIO_FILTER_MODULE_ID_FIELD_NUMBER: _builtins.int - AUDIO_FILTER_OPTIONS_FIELD_NUMBER: _builtins.int - FRAME_SIZE_MS_FIELD_NUMBER: _builtins.int - QUEUE_SIZE_FRAMES_FIELD_NUMBER: _builtins.int - participant_handle: _builtins.int - type: Global___AudioStreamType.ValueType - track_source: _track_pb2.TrackSource.ValueType - sample_rate: _builtins.int - num_channels: _builtins.int - audio_filter_module_id: _builtins.str - audio_filter_options: _builtins.str - frame_size_ms: _builtins.int - queue_size_frames: _builtins.int + def HasField(self, field_name: typing.Literal["stream", b"stream"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["stream", b"stream"]) -> None: ... + +global___NewAudioStreamResponse = NewAudioStreamResponse + +@typing.final +class AudioStreamFromParticipantRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int + TYPE_FIELD_NUMBER: builtins.int + TRACK_SOURCE_FIELD_NUMBER: builtins.int + SAMPLE_RATE_FIELD_NUMBER: builtins.int + NUM_CHANNELS_FIELD_NUMBER: builtins.int + AUDIO_FILTER_MODULE_ID_FIELD_NUMBER: builtins.int + AUDIO_FILTER_OPTIONS_FIELD_NUMBER: builtins.int + FRAME_SIZE_MS_FIELD_NUMBER: builtins.int + QUEUE_SIZE_FRAMES_FIELD_NUMBER: builtins.int + participant_handle: builtins.int + type: global___AudioStreamType.ValueType + track_source: track_pb2.TrackSource.ValueType + sample_rate: builtins.int + num_channels: builtins.int + audio_filter_module_id: builtins.str + audio_filter_options: builtins.str + frame_size_ms: builtins.int + queue_size_frames: builtins.int """Maximum number of queued WebRTC sink frames. Each frame is typically 10 ms of decoded PCM audio on the receive path. Omit this field to use the default bounded queue size of 10 frames. Set it to 0 to request unbounded @@ -248,1043 +242,899 @@ class AudioStreamFromParticipantRequest(_message.Message): def __init__( self, *, - participant_handle: _builtins.int | None = ..., - type: Global___AudioStreamType.ValueType | None = ..., - track_source: _track_pb2.TrackSource.ValueType | None = ..., - sample_rate: _builtins.int | None = ..., - num_channels: _builtins.int | None = ..., - audio_filter_module_id: _builtins.str | None = ..., - audio_filter_options: _builtins.str | None = ..., - frame_size_ms: _builtins.int | None = ..., - queue_size_frames: _builtins.int | None = ..., + participant_handle: builtins.int | None = ..., + type: global___AudioStreamType.ValueType | None = ..., + track_source: track_pb2.TrackSource.ValueType | None = ..., + sample_rate: builtins.int | None = ..., + num_channels: builtins.int | None = ..., + audio_filter_module_id: builtins.str | None = ..., + audio_filter_options: builtins.str | None = ..., + frame_size_ms: builtins.int | None = ..., + queue_size_frames: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["audio_filter_module_id", b"audio_filter_module_id", "audio_filter_options", b"audio_filter_options", "frame_size_ms", b"frame_size_ms", "num_channels", b"num_channels", "participant_handle", b"participant_handle", "queue_size_frames", b"queue_size_frames", "sample_rate", b"sample_rate", "track_source", b"track_source", "type", b"type"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["audio_filter_module_id", b"audio_filter_module_id", "audio_filter_options", b"audio_filter_options", "frame_size_ms", b"frame_size_ms", "num_channels", b"num_channels", "participant_handle", b"participant_handle", "queue_size_frames", b"queue_size_frames", "sample_rate", b"sample_rate", "track_source", b"track_source", "type", b"type"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["audio_filter_module_id", b"audio_filter_module_id", "audio_filter_options", b"audio_filter_options", "frame_size_ms", b"frame_size_ms", "num_channels", b"num_channels", "participant_handle", b"participant_handle", "queue_size_frames", b"queue_size_frames", "sample_rate", b"sample_rate", "track_source", b"track_source", "type", b"type"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["audio_filter_module_id", b"audio_filter_module_id", "audio_filter_options", b"audio_filter_options", "frame_size_ms", b"frame_size_ms", "num_channels", b"num_channels", "participant_handle", b"participant_handle", "queue_size_frames", b"queue_size_frames", "sample_rate", b"sample_rate", "track_source", b"track_source", "type", b"type"]) -> None: ... -Global___AudioStreamFromParticipantRequest: _TypeAlias = AudioStreamFromParticipantRequest # noqa: Y015 +global___AudioStreamFromParticipantRequest = AudioStreamFromParticipantRequest -@_typing.final -class AudioStreamFromParticipantResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class AudioStreamFromParticipantResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - STREAM_FIELD_NUMBER: _builtins.int - @_builtins.property - def stream(self) -> Global___OwnedAudioStream: ... + STREAM_FIELD_NUMBER: builtins.int + @property + def stream(self) -> global___OwnedAudioStream: ... def __init__( self, *, - stream: Global___OwnedAudioStream | None = ..., + stream: global___OwnedAudioStream | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["stream", b"stream"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["stream", b"stream"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["stream", b"stream"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["stream", b"stream"]) -> None: ... -Global___AudioStreamFromParticipantResponse: _TypeAlias = AudioStreamFromParticipantResponse # noqa: Y015 +global___AudioStreamFromParticipantResponse = AudioStreamFromParticipantResponse -@_typing.final -class NewAudioSourceRequest(_message.Message): +@typing.final +class NewAudioSourceRequest(google.protobuf.message.Message): """Create a new AudioSource""" - DESCRIPTOR: _descriptor.Descriptor - - TYPE_FIELD_NUMBER: _builtins.int - OPTIONS_FIELD_NUMBER: _builtins.int - SAMPLE_RATE_FIELD_NUMBER: _builtins.int - NUM_CHANNELS_FIELD_NUMBER: _builtins.int - QUEUE_SIZE_MS_FIELD_NUMBER: _builtins.int - type: Global___AudioSourceType.ValueType - sample_rate: _builtins.int - num_channels: _builtins.int - queue_size_ms: _builtins.int - @_builtins.property - def options(self) -> Global___AudioSourceOptions: ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TYPE_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + SAMPLE_RATE_FIELD_NUMBER: builtins.int + NUM_CHANNELS_FIELD_NUMBER: builtins.int + QUEUE_SIZE_MS_FIELD_NUMBER: builtins.int + type: global___AudioSourceType.ValueType + sample_rate: builtins.int + num_channels: builtins.int + queue_size_ms: builtins.int + @property + def options(self) -> global___AudioSourceOptions: ... def __init__( self, *, - type: Global___AudioSourceType.ValueType | None = ..., - options: Global___AudioSourceOptions | None = ..., - sample_rate: _builtins.int | None = ..., - num_channels: _builtins.int | None = ..., - queue_size_ms: _builtins.int | None = ..., + type: global___AudioSourceType.ValueType | None = ..., + options: global___AudioSourceOptions | None = ..., + sample_rate: builtins.int | None = ..., + num_channels: builtins.int | None = ..., + queue_size_ms: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["num_channels", b"num_channels", "options", b"options", "queue_size_ms", b"queue_size_ms", "sample_rate", b"sample_rate", "type", b"type"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["num_channels", b"num_channels", "options", b"options", "queue_size_ms", b"queue_size_ms", "sample_rate", b"sample_rate", "type", b"type"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["num_channels", b"num_channels", "options", b"options", "queue_size_ms", b"queue_size_ms", "sample_rate", b"sample_rate", "type", b"type"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["num_channels", b"num_channels", "options", b"options", "queue_size_ms", b"queue_size_ms", "sample_rate", b"sample_rate", "type", b"type"]) -> None: ... -Global___NewAudioSourceRequest: _TypeAlias = NewAudioSourceRequest # noqa: Y015 +global___NewAudioSourceRequest = NewAudioSourceRequest -@_typing.final -class NewAudioSourceResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class NewAudioSourceResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - SOURCE_FIELD_NUMBER: _builtins.int - @_builtins.property - def source(self) -> Global___OwnedAudioSource: ... + SOURCE_FIELD_NUMBER: builtins.int + @property + def source(self) -> global___OwnedAudioSource: ... def __init__( self, *, - source: Global___OwnedAudioSource | None = ..., + source: global___OwnedAudioSource | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["source", b"source"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["source", b"source"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["source", b"source"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["source", b"source"]) -> None: ... -Global___NewAudioSourceResponse: _TypeAlias = NewAudioSourceResponse # noqa: Y015 +global___NewAudioSourceResponse = NewAudioSourceResponse -@_typing.final -class CaptureAudioFrameRequest(_message.Message): +@typing.final +class CaptureAudioFrameRequest(google.protobuf.message.Message): """Push a frame to an AudioSource The data provided must be available as long as the client receive the callback. """ - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - SOURCE_HANDLE_FIELD_NUMBER: _builtins.int - BUFFER_FIELD_NUMBER: _builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int - source_handle: _builtins.int - request_async_id: _builtins.int - @_builtins.property - def buffer(self) -> Global___AudioFrameBufferInfo: ... + SOURCE_HANDLE_FIELD_NUMBER: builtins.int + BUFFER_FIELD_NUMBER: builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int + source_handle: builtins.int + request_async_id: builtins.int + @property + def buffer(self) -> global___AudioFrameBufferInfo: ... def __init__( self, *, - source_handle: _builtins.int | None = ..., - buffer: Global___AudioFrameBufferInfo | None = ..., - request_async_id: _builtins.int | None = ..., + source_handle: builtins.int | None = ..., + buffer: global___AudioFrameBufferInfo | None = ..., + request_async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "request_async_id", b"request_async_id", "source_handle", b"source_handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "request_async_id", b"request_async_id", "source_handle", b"source_handle"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["buffer", b"buffer", "request_async_id", b"request_async_id", "source_handle", b"source_handle"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["buffer", b"buffer", "request_async_id", b"request_async_id", "source_handle", b"source_handle"]) -> None: ... -Global___CaptureAudioFrameRequest: _TypeAlias = CaptureAudioFrameRequest # noqa: Y015 +global___CaptureAudioFrameRequest = CaptureAudioFrameRequest -@_typing.final -class CaptureAudioFrameResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class CaptureAudioFrameResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___CaptureAudioFrameResponse: _TypeAlias = CaptureAudioFrameResponse # noqa: Y015 - -@_typing.final -class CaptureAudioFrameCallback(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - async_id: _builtins.int - error: _builtins.str + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + +global___CaptureAudioFrameResponse = CaptureAudioFrameResponse + +@typing.final +class CaptureAudioFrameCallback(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + async_id: builtins.int + error: builtins.str def __init__( self, *, - async_id: _builtins.int | None = ..., - error: _builtins.str | None = ..., + async_id: builtins.int | None = ..., + error: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... -Global___CaptureAudioFrameCallback: _TypeAlias = CaptureAudioFrameCallback # noqa: Y015 +global___CaptureAudioFrameCallback = CaptureAudioFrameCallback -@_typing.final -class ClearAudioBufferRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ClearAudioBufferRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - SOURCE_HANDLE_FIELD_NUMBER: _builtins.int - source_handle: _builtins.int + SOURCE_HANDLE_FIELD_NUMBER: builtins.int + source_handle: builtins.int def __init__( self, *, - source_handle: _builtins.int | None = ..., + source_handle: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["source_handle", b"source_handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["source_handle", b"source_handle"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["source_handle", b"source_handle"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["source_handle", b"source_handle"]) -> None: ... -Global___ClearAudioBufferRequest: _TypeAlias = ClearAudioBufferRequest # noqa: Y015 +global___ClearAudioBufferRequest = ClearAudioBufferRequest -@_typing.final -class ClearAudioBufferResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ClearAudioBufferResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... -Global___ClearAudioBufferResponse: _TypeAlias = ClearAudioBufferResponse # noqa: Y015 +global___ClearAudioBufferResponse = ClearAudioBufferResponse -@_typing.final -class NewAudioResamplerRequest(_message.Message): +@typing.final +class NewAudioResamplerRequest(google.protobuf.message.Message): """Create a new AudioResampler""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... -Global___NewAudioResamplerRequest: _TypeAlias = NewAudioResamplerRequest # noqa: Y015 +global___NewAudioResamplerRequest = NewAudioResamplerRequest -@_typing.final -class NewAudioResamplerResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class NewAudioResamplerResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - RESAMPLER_FIELD_NUMBER: _builtins.int - @_builtins.property - def resampler(self) -> Global___OwnedAudioResampler: ... + RESAMPLER_FIELD_NUMBER: builtins.int + @property + def resampler(self) -> global___OwnedAudioResampler: ... def __init__( self, *, - resampler: Global___OwnedAudioResampler | None = ..., + resampler: global___OwnedAudioResampler | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["resampler", b"resampler"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["resampler", b"resampler"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["resampler", b"resampler"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["resampler", b"resampler"]) -> None: ... -Global___NewAudioResamplerResponse: _TypeAlias = NewAudioResamplerResponse # noqa: Y015 +global___NewAudioResamplerResponse = NewAudioResamplerResponse -@_typing.final -class RemixAndResampleRequest(_message.Message): +@typing.final +class RemixAndResampleRequest(google.protobuf.message.Message): """Remix and resample an audio frame""" - DESCRIPTOR: _descriptor.Descriptor - - RESAMPLER_HANDLE_FIELD_NUMBER: _builtins.int - BUFFER_FIELD_NUMBER: _builtins.int - NUM_CHANNELS_FIELD_NUMBER: _builtins.int - SAMPLE_RATE_FIELD_NUMBER: _builtins.int - resampler_handle: _builtins.int - num_channels: _builtins.int - sample_rate: _builtins.int - @_builtins.property - def buffer(self) -> Global___AudioFrameBufferInfo: ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESAMPLER_HANDLE_FIELD_NUMBER: builtins.int + BUFFER_FIELD_NUMBER: builtins.int + NUM_CHANNELS_FIELD_NUMBER: builtins.int + SAMPLE_RATE_FIELD_NUMBER: builtins.int + resampler_handle: builtins.int + num_channels: builtins.int + sample_rate: builtins.int + @property + def buffer(self) -> global___AudioFrameBufferInfo: ... def __init__( self, *, - resampler_handle: _builtins.int | None = ..., - buffer: Global___AudioFrameBufferInfo | None = ..., - num_channels: _builtins.int | None = ..., - sample_rate: _builtins.int | None = ..., + resampler_handle: builtins.int | None = ..., + buffer: global___AudioFrameBufferInfo | None = ..., + num_channels: builtins.int | None = ..., + sample_rate: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "num_channels", b"num_channels", "resampler_handle", b"resampler_handle", "sample_rate", b"sample_rate"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "num_channels", b"num_channels", "resampler_handle", b"resampler_handle", "sample_rate", b"sample_rate"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["buffer", b"buffer", "num_channels", b"num_channels", "resampler_handle", b"resampler_handle", "sample_rate", b"sample_rate"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["buffer", b"buffer", "num_channels", b"num_channels", "resampler_handle", b"resampler_handle", "sample_rate", b"sample_rate"]) -> None: ... -Global___RemixAndResampleRequest: _TypeAlias = RemixAndResampleRequest # noqa: Y015 +global___RemixAndResampleRequest = RemixAndResampleRequest -@_typing.final -class RemixAndResampleResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class RemixAndResampleResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - BUFFER_FIELD_NUMBER: _builtins.int - @_builtins.property - def buffer(self) -> Global___OwnedAudioFrameBuffer: ... + BUFFER_FIELD_NUMBER: builtins.int + @property + def buffer(self) -> global___OwnedAudioFrameBuffer: ... def __init__( self, *, - buffer: Global___OwnedAudioFrameBuffer | None = ..., + buffer: global___OwnedAudioFrameBuffer | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["buffer", b"buffer"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["buffer", b"buffer"]) -> None: ... -Global___RemixAndResampleResponse: _TypeAlias = RemixAndResampleResponse # noqa: Y015 +global___RemixAndResampleResponse = RemixAndResampleResponse -@_typing.final -class NewApmRequest(_message.Message): +@typing.final +class NewApmRequest(google.protobuf.message.Message): """AEC""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ECHO_CANCELLER_ENABLED_FIELD_NUMBER: _builtins.int - GAIN_CONTROLLER_ENABLED_FIELD_NUMBER: _builtins.int - HIGH_PASS_FILTER_ENABLED_FIELD_NUMBER: _builtins.int - NOISE_SUPPRESSION_ENABLED_FIELD_NUMBER: _builtins.int - echo_canceller_enabled: _builtins.bool - gain_controller_enabled: _builtins.bool - high_pass_filter_enabled: _builtins.bool - noise_suppression_enabled: _builtins.bool + ECHO_CANCELLER_ENABLED_FIELD_NUMBER: builtins.int + GAIN_CONTROLLER_ENABLED_FIELD_NUMBER: builtins.int + HIGH_PASS_FILTER_ENABLED_FIELD_NUMBER: builtins.int + NOISE_SUPPRESSION_ENABLED_FIELD_NUMBER: builtins.int + echo_canceller_enabled: builtins.bool + gain_controller_enabled: builtins.bool + high_pass_filter_enabled: builtins.bool + noise_suppression_enabled: builtins.bool def __init__( self, *, - echo_canceller_enabled: _builtins.bool | None = ..., - gain_controller_enabled: _builtins.bool | None = ..., - high_pass_filter_enabled: _builtins.bool | None = ..., - noise_suppression_enabled: _builtins.bool | None = ..., + echo_canceller_enabled: builtins.bool | None = ..., + gain_controller_enabled: builtins.bool | None = ..., + high_pass_filter_enabled: builtins.bool | None = ..., + noise_suppression_enabled: builtins.bool | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["echo_canceller_enabled", b"echo_canceller_enabled", "gain_controller_enabled", b"gain_controller_enabled", "high_pass_filter_enabled", b"high_pass_filter_enabled", "noise_suppression_enabled", b"noise_suppression_enabled"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["echo_canceller_enabled", b"echo_canceller_enabled", "gain_controller_enabled", b"gain_controller_enabled", "high_pass_filter_enabled", b"high_pass_filter_enabled", "noise_suppression_enabled", b"noise_suppression_enabled"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["echo_canceller_enabled", b"echo_canceller_enabled", "gain_controller_enabled", b"gain_controller_enabled", "high_pass_filter_enabled", b"high_pass_filter_enabled", "noise_suppression_enabled", b"noise_suppression_enabled"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["echo_canceller_enabled", b"echo_canceller_enabled", "gain_controller_enabled", b"gain_controller_enabled", "high_pass_filter_enabled", b"high_pass_filter_enabled", "noise_suppression_enabled", b"noise_suppression_enabled"]) -> None: ... -Global___NewApmRequest: _TypeAlias = NewApmRequest # noqa: Y015 +global___NewApmRequest = NewApmRequest -@_typing.final -class NewApmResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class NewApmResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - APM_FIELD_NUMBER: _builtins.int - @_builtins.property - def apm(self) -> Global___OwnedApm: ... + APM_FIELD_NUMBER: builtins.int + @property + def apm(self) -> global___OwnedApm: ... def __init__( self, *, - apm: Global___OwnedApm | None = ..., + apm: global___OwnedApm | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["apm", b"apm"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["apm", b"apm"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___NewApmResponse: _TypeAlias = NewApmResponse # noqa: Y015 - -@_typing.final -class ApmProcessStreamRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - APM_HANDLE_FIELD_NUMBER: _builtins.int - DATA_PTR_FIELD_NUMBER: _builtins.int - SIZE_FIELD_NUMBER: _builtins.int - SAMPLE_RATE_FIELD_NUMBER: _builtins.int - NUM_CHANNELS_FIELD_NUMBER: _builtins.int - apm_handle: _builtins.int - data_ptr: _builtins.int + def HasField(self, field_name: typing.Literal["apm", b"apm"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["apm", b"apm"]) -> None: ... + +global___NewApmResponse = NewApmResponse + +@typing.final +class ApmProcessStreamRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + APM_HANDLE_FIELD_NUMBER: builtins.int + DATA_PTR_FIELD_NUMBER: builtins.int + SIZE_FIELD_NUMBER: builtins.int + SAMPLE_RATE_FIELD_NUMBER: builtins.int + NUM_CHANNELS_FIELD_NUMBER: builtins.int + apm_handle: builtins.int + data_ptr: builtins.int """*mut i16""" - size: _builtins.int + size: builtins.int """in bytes""" - sample_rate: _builtins.int - num_channels: _builtins.int + sample_rate: builtins.int + num_channels: builtins.int def __init__( self, *, - apm_handle: _builtins.int | None = ..., - data_ptr: _builtins.int | None = ..., - size: _builtins.int | None = ..., - sample_rate: _builtins.int | None = ..., - num_channels: _builtins.int | None = ..., + apm_handle: builtins.int | None = ..., + data_ptr: builtins.int | None = ..., + size: builtins.int | None = ..., + sample_rate: builtins.int | None = ..., + num_channels: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["apm_handle", b"apm_handle", "data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "size", b"size"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["apm_handle", b"apm_handle", "data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "size", b"size"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["apm_handle", b"apm_handle", "data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "size", b"size"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["apm_handle", b"apm_handle", "data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "size", b"size"]) -> None: ... -Global___ApmProcessStreamRequest: _TypeAlias = ApmProcessStreamRequest # noqa: Y015 +global___ApmProcessStreamRequest = ApmProcessStreamRequest -@_typing.final -class ApmProcessStreamResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ApmProcessStreamResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ERROR_FIELD_NUMBER: _builtins.int - error: _builtins.str + ERROR_FIELD_NUMBER: builtins.int + error: builtins.str def __init__( self, *, - error: _builtins.str | None = ..., + error: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___ApmProcessStreamResponse: _TypeAlias = ApmProcessStreamResponse # noqa: Y015 - -@_typing.final -class ApmProcessReverseStreamRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - APM_HANDLE_FIELD_NUMBER: _builtins.int - DATA_PTR_FIELD_NUMBER: _builtins.int - SIZE_FIELD_NUMBER: _builtins.int - SAMPLE_RATE_FIELD_NUMBER: _builtins.int - NUM_CHANNELS_FIELD_NUMBER: _builtins.int - apm_handle: _builtins.int - data_ptr: _builtins.int + def HasField(self, field_name: typing.Literal["error", b"error"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error"]) -> None: ... + +global___ApmProcessStreamResponse = ApmProcessStreamResponse + +@typing.final +class ApmProcessReverseStreamRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + APM_HANDLE_FIELD_NUMBER: builtins.int + DATA_PTR_FIELD_NUMBER: builtins.int + SIZE_FIELD_NUMBER: builtins.int + SAMPLE_RATE_FIELD_NUMBER: builtins.int + NUM_CHANNELS_FIELD_NUMBER: builtins.int + apm_handle: builtins.int + data_ptr: builtins.int """*mut i16""" - size: _builtins.int + size: builtins.int """in bytes""" - sample_rate: _builtins.int - num_channels: _builtins.int + sample_rate: builtins.int + num_channels: builtins.int def __init__( self, *, - apm_handle: _builtins.int | None = ..., - data_ptr: _builtins.int | None = ..., - size: _builtins.int | None = ..., - sample_rate: _builtins.int | None = ..., - num_channels: _builtins.int | None = ..., + apm_handle: builtins.int | None = ..., + data_ptr: builtins.int | None = ..., + size: builtins.int | None = ..., + sample_rate: builtins.int | None = ..., + num_channels: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["apm_handle", b"apm_handle", "data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "size", b"size"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["apm_handle", b"apm_handle", "data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "size", b"size"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["apm_handle", b"apm_handle", "data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "size", b"size"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["apm_handle", b"apm_handle", "data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "size", b"size"]) -> None: ... -Global___ApmProcessReverseStreamRequest: _TypeAlias = ApmProcessReverseStreamRequest # noqa: Y015 +global___ApmProcessReverseStreamRequest = ApmProcessReverseStreamRequest -@_typing.final -class ApmProcessReverseStreamResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ApmProcessReverseStreamResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ERROR_FIELD_NUMBER: _builtins.int - error: _builtins.str + ERROR_FIELD_NUMBER: builtins.int + error: builtins.str def __init__( self, *, - error: _builtins.str | None = ..., + error: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___ApmProcessReverseStreamResponse: _TypeAlias = ApmProcessReverseStreamResponse # noqa: Y015 - -@_typing.final -class ApmSetStreamDelayRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - APM_HANDLE_FIELD_NUMBER: _builtins.int - DELAY_MS_FIELD_NUMBER: _builtins.int - apm_handle: _builtins.int - delay_ms: _builtins.int + def HasField(self, field_name: typing.Literal["error", b"error"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error"]) -> None: ... + +global___ApmProcessReverseStreamResponse = ApmProcessReverseStreamResponse + +@typing.final +class ApmSetStreamDelayRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + APM_HANDLE_FIELD_NUMBER: builtins.int + DELAY_MS_FIELD_NUMBER: builtins.int + apm_handle: builtins.int + delay_ms: builtins.int def __init__( self, *, - apm_handle: _builtins.int | None = ..., - delay_ms: _builtins.int | None = ..., + apm_handle: builtins.int | None = ..., + delay_ms: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["apm_handle", b"apm_handle", "delay_ms", b"delay_ms"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["apm_handle", b"apm_handle", "delay_ms", b"delay_ms"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["apm_handle", b"apm_handle", "delay_ms", b"delay_ms"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["apm_handle", b"apm_handle", "delay_ms", b"delay_ms"]) -> None: ... -Global___ApmSetStreamDelayRequest: _TypeAlias = ApmSetStreamDelayRequest # noqa: Y015 +global___ApmSetStreamDelayRequest = ApmSetStreamDelayRequest -@_typing.final -class ApmSetStreamDelayResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ApmSetStreamDelayResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ERROR_FIELD_NUMBER: _builtins.int - error: _builtins.str + ERROR_FIELD_NUMBER: builtins.int + error: builtins.str def __init__( self, *, - error: _builtins.str | None = ..., + error: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error"]) -> None: ... -Global___ApmSetStreamDelayResponse: _TypeAlias = ApmSetStreamDelayResponse # noqa: Y015 +global___ApmSetStreamDelayResponse = ApmSetStreamDelayResponse -@_typing.final -class NewSoxResamplerRequest(_message.Message): +@typing.final +class NewSoxResamplerRequest(google.protobuf.message.Message): """New resampler using SoX (much better quality)""" - DESCRIPTOR: _descriptor.Descriptor - - INPUT_RATE_FIELD_NUMBER: _builtins.int - OUTPUT_RATE_FIELD_NUMBER: _builtins.int - NUM_CHANNELS_FIELD_NUMBER: _builtins.int - INPUT_DATA_TYPE_FIELD_NUMBER: _builtins.int - OUTPUT_DATA_TYPE_FIELD_NUMBER: _builtins.int - QUALITY_RECIPE_FIELD_NUMBER: _builtins.int - FLAGS_FIELD_NUMBER: _builtins.int - input_rate: _builtins.float - output_rate: _builtins.float - num_channels: _builtins.int - input_data_type: Global___SoxResamplerDataType.ValueType - output_data_type: Global___SoxResamplerDataType.ValueType - quality_recipe: Global___SoxQualityRecipe.ValueType - flags: _builtins.int + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INPUT_RATE_FIELD_NUMBER: builtins.int + OUTPUT_RATE_FIELD_NUMBER: builtins.int + NUM_CHANNELS_FIELD_NUMBER: builtins.int + INPUT_DATA_TYPE_FIELD_NUMBER: builtins.int + OUTPUT_DATA_TYPE_FIELD_NUMBER: builtins.int + QUALITY_RECIPE_FIELD_NUMBER: builtins.int + FLAGS_FIELD_NUMBER: builtins.int + input_rate: builtins.float + output_rate: builtins.float + num_channels: builtins.int + input_data_type: global___SoxResamplerDataType.ValueType + output_data_type: global___SoxResamplerDataType.ValueType + quality_recipe: global___SoxQualityRecipe.ValueType + flags: builtins.int def __init__( self, *, - input_rate: _builtins.float | None = ..., - output_rate: _builtins.float | None = ..., - num_channels: _builtins.int | None = ..., - input_data_type: Global___SoxResamplerDataType.ValueType | None = ..., - output_data_type: Global___SoxResamplerDataType.ValueType | None = ..., - quality_recipe: Global___SoxQualityRecipe.ValueType | None = ..., - flags: _builtins.int | None = ..., + input_rate: builtins.float | None = ..., + output_rate: builtins.float | None = ..., + num_channels: builtins.int | None = ..., + input_data_type: global___SoxResamplerDataType.ValueType | None = ..., + output_data_type: global___SoxResamplerDataType.ValueType | None = ..., + quality_recipe: global___SoxQualityRecipe.ValueType | None = ..., + flags: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["flags", b"flags", "input_data_type", b"input_data_type", "input_rate", b"input_rate", "num_channels", b"num_channels", "output_data_type", b"output_data_type", "output_rate", b"output_rate", "quality_recipe", b"quality_recipe"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["flags", b"flags", "input_data_type", b"input_data_type", "input_rate", b"input_rate", "num_channels", b"num_channels", "output_data_type", b"output_data_type", "output_rate", b"output_rate", "quality_recipe", b"quality_recipe"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___NewSoxResamplerRequest: _TypeAlias = NewSoxResamplerRequest # noqa: Y015 - -@_typing.final -class NewSoxResamplerResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - RESAMPLER_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - error: _builtins.str - @_builtins.property - def resampler(self) -> Global___OwnedSoxResampler: ... + def HasField(self, field_name: typing.Literal["flags", b"flags", "input_data_type", b"input_data_type", "input_rate", b"input_rate", "num_channels", b"num_channels", "output_data_type", b"output_data_type", "output_rate", b"output_rate", "quality_recipe", b"quality_recipe"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["flags", b"flags", "input_data_type", b"input_data_type", "input_rate", b"input_rate", "num_channels", b"num_channels", "output_data_type", b"output_data_type", "output_rate", b"output_rate", "quality_recipe", b"quality_recipe"]) -> None: ... + +global___NewSoxResamplerRequest = NewSoxResamplerRequest + +@typing.final +class NewSoxResamplerResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESAMPLER_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + error: builtins.str + @property + def resampler(self) -> global___OwnedSoxResampler: ... def __init__( self, *, - resampler: Global___OwnedSoxResampler | None = ..., - error: _builtins.str | None = ..., + resampler: global___OwnedSoxResampler | None = ..., + error: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "message", b"message", "resampler", b"resampler"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "message", b"message", "resampler", b"resampler"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["resampler", "error"] # noqa: Y015 - _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 - def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... - -Global___NewSoxResamplerResponse: _TypeAlias = NewSoxResamplerResponse # noqa: Y015 - -@_typing.final -class PushSoxResamplerRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - RESAMPLER_HANDLE_FIELD_NUMBER: _builtins.int - DATA_PTR_FIELD_NUMBER: _builtins.int - SIZE_FIELD_NUMBER: _builtins.int - resampler_handle: _builtins.int - data_ptr: _builtins.int + def HasField(self, field_name: typing.Literal["error", b"error", "message", b"message", "resampler", b"resampler"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "message", b"message", "resampler", b"resampler"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["resampler", "error"] | None: ... + +global___NewSoxResamplerResponse = NewSoxResamplerResponse + +@typing.final +class PushSoxResamplerRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESAMPLER_HANDLE_FIELD_NUMBER: builtins.int + DATA_PTR_FIELD_NUMBER: builtins.int + SIZE_FIELD_NUMBER: builtins.int + resampler_handle: builtins.int + data_ptr: builtins.int """*const i16""" - size: _builtins.int + size: builtins.int """in bytes""" def __init__( self, *, - resampler_handle: _builtins.int | None = ..., - data_ptr: _builtins.int | None = ..., - size: _builtins.int | None = ..., + resampler_handle: builtins.int | None = ..., + data_ptr: builtins.int | None = ..., + size: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["data_ptr", b"data_ptr", "resampler_handle", b"resampler_handle", "size", b"size"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["data_ptr", b"data_ptr", "resampler_handle", b"resampler_handle", "size", b"size"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___PushSoxResamplerRequest: _TypeAlias = PushSoxResamplerRequest # noqa: Y015 - -@_typing.final -class PushSoxResamplerResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - OUTPUT_PTR_FIELD_NUMBER: _builtins.int - SIZE_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - output_ptr: _builtins.int + def HasField(self, field_name: typing.Literal["data_ptr", b"data_ptr", "resampler_handle", b"resampler_handle", "size", b"size"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["data_ptr", b"data_ptr", "resampler_handle", b"resampler_handle", "size", b"size"]) -> None: ... + +global___PushSoxResamplerRequest = PushSoxResamplerRequest + +@typing.final +class PushSoxResamplerResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + OUTPUT_PTR_FIELD_NUMBER: builtins.int + SIZE_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + output_ptr: builtins.int """*const i16 (could be null)""" - size: _builtins.int + size: builtins.int """in bytes""" - error: _builtins.str + error: builtins.str def __init__( self, *, - output_ptr: _builtins.int | None = ..., - size: _builtins.int | None = ..., - error: _builtins.str | None = ..., + output_ptr: builtins.int | None = ..., + size: builtins.int | None = ..., + error: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "output_ptr", b"output_ptr", "size", b"size"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "output_ptr", b"output_ptr", "size", b"size"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "output_ptr", b"output_ptr", "size", b"size"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "output_ptr", b"output_ptr", "size", b"size"]) -> None: ... -Global___PushSoxResamplerResponse: _TypeAlias = PushSoxResamplerResponse # noqa: Y015 +global___PushSoxResamplerResponse = PushSoxResamplerResponse -@_typing.final -class FlushSoxResamplerRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class FlushSoxResamplerRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - RESAMPLER_HANDLE_FIELD_NUMBER: _builtins.int - resampler_handle: _builtins.int + RESAMPLER_HANDLE_FIELD_NUMBER: builtins.int + resampler_handle: builtins.int def __init__( self, *, - resampler_handle: _builtins.int | None = ..., + resampler_handle: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["resampler_handle", b"resampler_handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["resampler_handle", b"resampler_handle"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___FlushSoxResamplerRequest: _TypeAlias = FlushSoxResamplerRequest # noqa: Y015 - -@_typing.final -class FlushSoxResamplerResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - OUTPUT_PTR_FIELD_NUMBER: _builtins.int - SIZE_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - output_ptr: _builtins.int + def HasField(self, field_name: typing.Literal["resampler_handle", b"resampler_handle"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["resampler_handle", b"resampler_handle"]) -> None: ... + +global___FlushSoxResamplerRequest = FlushSoxResamplerRequest + +@typing.final +class FlushSoxResamplerResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + OUTPUT_PTR_FIELD_NUMBER: builtins.int + SIZE_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + output_ptr: builtins.int """*const i16 (could be null)""" - size: _builtins.int + size: builtins.int """in bytes""" - error: _builtins.str + error: builtins.str def __init__( self, *, - output_ptr: _builtins.int | None = ..., - size: _builtins.int | None = ..., - error: _builtins.str | None = ..., + output_ptr: builtins.int | None = ..., + size: builtins.int | None = ..., + error: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "output_ptr", b"output_ptr", "size", b"size"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "output_ptr", b"output_ptr", "size", b"size"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "output_ptr", b"output_ptr", "size", b"size"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "output_ptr", b"output_ptr", "size", b"size"]) -> None: ... -Global___FlushSoxResamplerResponse: _TypeAlias = FlushSoxResamplerResponse # noqa: Y015 +global___FlushSoxResamplerResponse = FlushSoxResamplerResponse -@_typing.final -class AudioFrameBufferInfo(_message.Message): +@typing.final +class AudioFrameBufferInfo(google.protobuf.message.Message): """ AudioFrame buffer """ - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - DATA_PTR_FIELD_NUMBER: _builtins.int - NUM_CHANNELS_FIELD_NUMBER: _builtins.int - SAMPLE_RATE_FIELD_NUMBER: _builtins.int - SAMPLES_PER_CHANNEL_FIELD_NUMBER: _builtins.int - data_ptr: _builtins.int + DATA_PTR_FIELD_NUMBER: builtins.int + NUM_CHANNELS_FIELD_NUMBER: builtins.int + SAMPLE_RATE_FIELD_NUMBER: builtins.int + SAMPLES_PER_CHANNEL_FIELD_NUMBER: builtins.int + data_ptr: builtins.int """*const i16""" - num_channels: _builtins.int - sample_rate: _builtins.int - samples_per_channel: _builtins.int + num_channels: builtins.int + sample_rate: builtins.int + samples_per_channel: builtins.int def __init__( self, *, - data_ptr: _builtins.int | None = ..., - num_channels: _builtins.int | None = ..., - sample_rate: _builtins.int | None = ..., - samples_per_channel: _builtins.int | None = ..., + data_ptr: builtins.int | None = ..., + num_channels: builtins.int | None = ..., + sample_rate: builtins.int | None = ..., + samples_per_channel: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "samples_per_channel", b"samples_per_channel"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "samples_per_channel", b"samples_per_channel"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___AudioFrameBufferInfo: _TypeAlias = AudioFrameBufferInfo # noqa: Y015 - -@_typing.final -class OwnedAudioFrameBuffer(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - HANDLE_FIELD_NUMBER: _builtins.int - INFO_FIELD_NUMBER: _builtins.int - @_builtins.property - def handle(self) -> _handle_pb2.FfiOwnedHandle: ... - @_builtins.property - def info(self) -> Global___AudioFrameBufferInfo: ... + def HasField(self, field_name: typing.Literal["data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "samples_per_channel", b"samples_per_channel"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "samples_per_channel", b"samples_per_channel"]) -> None: ... + +global___AudioFrameBufferInfo = AudioFrameBufferInfo + +@typing.final +class OwnedAudioFrameBuffer(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HANDLE_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + @property + def handle(self) -> handle_pb2.FfiOwnedHandle: ... + @property + def info(self) -> global___AudioFrameBufferInfo: ... def __init__( self, *, - handle: _handle_pb2.FfiOwnedHandle | None = ..., - info: Global___AudioFrameBufferInfo | None = ..., + handle: handle_pb2.FfiOwnedHandle | None = ..., + info: global___AudioFrameBufferInfo | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... -Global___OwnedAudioFrameBuffer: _TypeAlias = OwnedAudioFrameBuffer # noqa: Y015 +global___OwnedAudioFrameBuffer = OwnedAudioFrameBuffer -@_typing.final -class AudioStreamInfo(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class AudioStreamInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - TYPE_FIELD_NUMBER: _builtins.int - type: Global___AudioStreamType.ValueType + TYPE_FIELD_NUMBER: builtins.int + type: global___AudioStreamType.ValueType def __init__( self, *, - type: Global___AudioStreamType.ValueType | None = ..., + type: global___AudioStreamType.ValueType | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["type", b"type"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["type", b"type"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___AudioStreamInfo: _TypeAlias = AudioStreamInfo # noqa: Y015 - -@_typing.final -class OwnedAudioStream(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - HANDLE_FIELD_NUMBER: _builtins.int - INFO_FIELD_NUMBER: _builtins.int - @_builtins.property - def handle(self) -> _handle_pb2.FfiOwnedHandle: ... - @_builtins.property - def info(self) -> Global___AudioStreamInfo: ... + def HasField(self, field_name: typing.Literal["type", b"type"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["type", b"type"]) -> None: ... + +global___AudioStreamInfo = AudioStreamInfo + +@typing.final +class OwnedAudioStream(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HANDLE_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + @property + def handle(self) -> handle_pb2.FfiOwnedHandle: ... + @property + def info(self) -> global___AudioStreamInfo: ... def __init__( self, *, - handle: _handle_pb2.FfiOwnedHandle | None = ..., - info: Global___AudioStreamInfo | None = ..., + handle: handle_pb2.FfiOwnedHandle | None = ..., + info: global___AudioStreamInfo | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___OwnedAudioStream: _TypeAlias = OwnedAudioStream # noqa: Y015 - -@_typing.final -class AudioStreamEvent(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - STREAM_HANDLE_FIELD_NUMBER: _builtins.int - FRAME_RECEIVED_FIELD_NUMBER: _builtins.int - EOS_FIELD_NUMBER: _builtins.int - stream_handle: _builtins.int - @_builtins.property - def frame_received(self) -> Global___AudioFrameReceived: ... - @_builtins.property - def eos(self) -> Global___AudioStreamEOS: ... + def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... + +global___OwnedAudioStream = OwnedAudioStream + +@typing.final +class AudioStreamEvent(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + STREAM_HANDLE_FIELD_NUMBER: builtins.int + FRAME_RECEIVED_FIELD_NUMBER: builtins.int + EOS_FIELD_NUMBER: builtins.int + stream_handle: builtins.int + @property + def frame_received(self) -> global___AudioFrameReceived: ... + @property + def eos(self) -> global___AudioStreamEOS: ... def __init__( self, *, - stream_handle: _builtins.int | None = ..., - frame_received: Global___AudioFrameReceived | None = ..., - eos: Global___AudioStreamEOS | None = ..., + stream_handle: builtins.int | None = ..., + frame_received: global___AudioFrameReceived | None = ..., + eos: global___AudioStreamEOS | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["eos", b"eos", "frame_received", b"frame_received", "message", b"message", "stream_handle", b"stream_handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["eos", b"eos", "frame_received", b"frame_received", "message", b"message", "stream_handle", b"stream_handle"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["frame_received", "eos"] # noqa: Y015 - _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 - def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... - -Global___AudioStreamEvent: _TypeAlias = AudioStreamEvent # noqa: Y015 - -@_typing.final -class AudioFrameReceived(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - FRAME_FIELD_NUMBER: _builtins.int - @_builtins.property - def frame(self) -> Global___OwnedAudioFrameBuffer: ... + def HasField(self, field_name: typing.Literal["eos", b"eos", "frame_received", b"frame_received", "message", b"message", "stream_handle", b"stream_handle"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["eos", b"eos", "frame_received", b"frame_received", "message", b"message", "stream_handle", b"stream_handle"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["frame_received", "eos"] | None: ... + +global___AudioStreamEvent = AudioStreamEvent + +@typing.final +class AudioFrameReceived(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FRAME_FIELD_NUMBER: builtins.int + @property + def frame(self) -> global___OwnedAudioFrameBuffer: ... def __init__( self, *, - frame: Global___OwnedAudioFrameBuffer | None = ..., + frame: global___OwnedAudioFrameBuffer | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["frame", b"frame"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["frame", b"frame"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["frame", b"frame"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["frame", b"frame"]) -> None: ... -Global___AudioFrameReceived: _TypeAlias = AudioFrameReceived # noqa: Y015 +global___AudioFrameReceived = AudioFrameReceived -@_typing.final -class AudioStreamEOS(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class AudioStreamEOS(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... -Global___AudioStreamEOS: _TypeAlias = AudioStreamEOS # noqa: Y015 +global___AudioStreamEOS = AudioStreamEOS -@_typing.final -class AudioSourceOptions(_message.Message): +@typing.final +class AudioSourceOptions(google.protobuf.message.Message): """ AudioSource """ - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ECHO_CANCELLATION_FIELD_NUMBER: _builtins.int - NOISE_SUPPRESSION_FIELD_NUMBER: _builtins.int - AUTO_GAIN_CONTROL_FIELD_NUMBER: _builtins.int - echo_cancellation: _builtins.bool - noise_suppression: _builtins.bool - auto_gain_control: _builtins.bool + ECHO_CANCELLATION_FIELD_NUMBER: builtins.int + NOISE_SUPPRESSION_FIELD_NUMBER: builtins.int + AUTO_GAIN_CONTROL_FIELD_NUMBER: builtins.int + echo_cancellation: builtins.bool + noise_suppression: builtins.bool + auto_gain_control: builtins.bool def __init__( self, *, - echo_cancellation: _builtins.bool | None = ..., - noise_suppression: _builtins.bool | None = ..., - auto_gain_control: _builtins.bool | None = ..., + echo_cancellation: builtins.bool | None = ..., + noise_suppression: builtins.bool | None = ..., + auto_gain_control: builtins.bool | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["auto_gain_control", b"auto_gain_control", "echo_cancellation", b"echo_cancellation", "noise_suppression", b"noise_suppression"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["auto_gain_control", b"auto_gain_control", "echo_cancellation", b"echo_cancellation", "noise_suppression", b"noise_suppression"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["auto_gain_control", b"auto_gain_control", "echo_cancellation", b"echo_cancellation", "noise_suppression", b"noise_suppression"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["auto_gain_control", b"auto_gain_control", "echo_cancellation", b"echo_cancellation", "noise_suppression", b"noise_suppression"]) -> None: ... -Global___AudioSourceOptions: _TypeAlias = AudioSourceOptions # noqa: Y015 +global___AudioSourceOptions = AudioSourceOptions -@_typing.final -class AudioSourceInfo(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class AudioSourceInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - TYPE_FIELD_NUMBER: _builtins.int - type: Global___AudioSourceType.ValueType + TYPE_FIELD_NUMBER: builtins.int + type: global___AudioSourceType.ValueType def __init__( self, *, - type: Global___AudioSourceType.ValueType | None = ..., + type: global___AudioSourceType.ValueType | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["type", b"type"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["type", b"type"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___AudioSourceInfo: _TypeAlias = AudioSourceInfo # noqa: Y015 - -@_typing.final -class OwnedAudioSource(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - HANDLE_FIELD_NUMBER: _builtins.int - INFO_FIELD_NUMBER: _builtins.int - @_builtins.property - def handle(self) -> _handle_pb2.FfiOwnedHandle: ... - @_builtins.property - def info(self) -> Global___AudioSourceInfo: ... + def HasField(self, field_name: typing.Literal["type", b"type"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["type", b"type"]) -> None: ... + +global___AudioSourceInfo = AudioSourceInfo + +@typing.final +class OwnedAudioSource(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HANDLE_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + @property + def handle(self) -> handle_pb2.FfiOwnedHandle: ... + @property + def info(self) -> global___AudioSourceInfo: ... def __init__( self, *, - handle: _handle_pb2.FfiOwnedHandle | None = ..., - info: Global___AudioSourceInfo | None = ..., + handle: handle_pb2.FfiOwnedHandle | None = ..., + info: global___AudioSourceInfo | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... -Global___OwnedAudioSource: _TypeAlias = OwnedAudioSource # noqa: Y015 +global___OwnedAudioSource = OwnedAudioSource -@_typing.final -class AudioResamplerInfo(_message.Message): +@typing.final +class AudioResamplerInfo(google.protobuf.message.Message): """ AudioResampler """ - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___AudioResamplerInfo: _TypeAlias = AudioResamplerInfo # noqa: Y015 - -@_typing.final -class OwnedAudioResampler(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - HANDLE_FIELD_NUMBER: _builtins.int - INFO_FIELD_NUMBER: _builtins.int - @_builtins.property - def handle(self) -> _handle_pb2.FfiOwnedHandle: ... - @_builtins.property - def info(self) -> Global___AudioResamplerInfo: ... + +global___AudioResamplerInfo = AudioResamplerInfo + +@typing.final +class OwnedAudioResampler(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HANDLE_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + @property + def handle(self) -> handle_pb2.FfiOwnedHandle: ... + @property + def info(self) -> global___AudioResamplerInfo: ... def __init__( self, *, - handle: _handle_pb2.FfiOwnedHandle | None = ..., - info: Global___AudioResamplerInfo | None = ..., + handle: handle_pb2.FfiOwnedHandle | None = ..., + info: global___AudioResamplerInfo | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... -Global___OwnedAudioResampler: _TypeAlias = OwnedAudioResampler # noqa: Y015 +global___OwnedAudioResampler = OwnedAudioResampler -@_typing.final -class OwnedApm(_message.Message): +@typing.final +class OwnedApm(google.protobuf.message.Message): """ AEC """ - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - HANDLE_FIELD_NUMBER: _builtins.int - @_builtins.property - def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + HANDLE_FIELD_NUMBER: builtins.int + @property + def handle(self) -> handle_pb2.FfiOwnedHandle: ... def __init__( self, *, - handle: _handle_pb2.FfiOwnedHandle | None = ..., + handle: handle_pb2.FfiOwnedHandle | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["handle", b"handle"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["handle", b"handle"]) -> None: ... -Global___OwnedApm: _TypeAlias = OwnedApm # noqa: Y015 +global___OwnedApm = OwnedApm -@_typing.final -class SoxResamplerInfo(_message.Message): +@typing.final +class SoxResamplerInfo(google.protobuf.message.Message): """ Sox AudioResampler """ - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___SoxResamplerInfo: _TypeAlias = SoxResamplerInfo # noqa: Y015 - -@_typing.final -class OwnedSoxResampler(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - HANDLE_FIELD_NUMBER: _builtins.int - INFO_FIELD_NUMBER: _builtins.int - @_builtins.property - def handle(self) -> _handle_pb2.FfiOwnedHandle: ... - @_builtins.property - def info(self) -> Global___SoxResamplerInfo: ... + +global___SoxResamplerInfo = SoxResamplerInfo + +@typing.final +class OwnedSoxResampler(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HANDLE_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + @property + def handle(self) -> handle_pb2.FfiOwnedHandle: ... + @property + def info(self) -> global___SoxResamplerInfo: ... def __init__( self, *, - handle: _handle_pb2.FfiOwnedHandle | None = ..., - info: Global___SoxResamplerInfo | None = ..., + handle: handle_pb2.FfiOwnedHandle | None = ..., + info: global___SoxResamplerInfo | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... -Global___OwnedSoxResampler: _TypeAlias = OwnedSoxResampler # noqa: Y015 +global___OwnedSoxResampler = OwnedSoxResampler -@_typing.final -class LoadAudioFilterPluginRequest(_message.Message): +@typing.final +class LoadAudioFilterPluginRequest(google.protobuf.message.Message): """Audio Filter Plugin""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - PLUGIN_PATH_FIELD_NUMBER: _builtins.int - DEPENDENCIES_FIELD_NUMBER: _builtins.int - MODULE_ID_FIELD_NUMBER: _builtins.int - plugin_path: _builtins.str + PLUGIN_PATH_FIELD_NUMBER: builtins.int + DEPENDENCIES_FIELD_NUMBER: builtins.int + MODULE_ID_FIELD_NUMBER: builtins.int + plugin_path: builtins.str """path for ffi audio filter plugin""" - module_id: _builtins.str + module_id: builtins.str """Unique identifier of the plugin""" - @_builtins.property - def dependencies(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: + @property + def dependencies(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """Optional: paths for dependency dylibs""" def __init__( self, *, - plugin_path: _builtins.str | None = ..., - dependencies: _abc.Iterable[_builtins.str] | None = ..., - module_id: _builtins.str | None = ..., + plugin_path: builtins.str | None = ..., + dependencies: collections.abc.Iterable[builtins.str] | None = ..., + module_id: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["module_id", b"module_id", "plugin_path", b"plugin_path"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["dependencies", b"dependencies", "module_id", b"module_id", "plugin_path", b"plugin_path"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["module_id", b"module_id", "plugin_path", b"plugin_path"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["dependencies", b"dependencies", "module_id", b"module_id", "plugin_path", b"plugin_path"]) -> None: ... -Global___LoadAudioFilterPluginRequest: _TypeAlias = LoadAudioFilterPluginRequest # noqa: Y015 +global___LoadAudioFilterPluginRequest = LoadAudioFilterPluginRequest -@_typing.final -class LoadAudioFilterPluginResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class LoadAudioFilterPluginResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ERROR_FIELD_NUMBER: _builtins.int - error: _builtins.str + ERROR_FIELD_NUMBER: builtins.int + error: builtins.str def __init__( self, *, - error: _builtins.str | None = ..., + error: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error"]) -> None: ... -Global___LoadAudioFilterPluginResponse: _TypeAlias = LoadAudioFilterPluginResponse # noqa: Y015 +global___LoadAudioFilterPluginResponse = LoadAudioFilterPluginResponse diff --git a/livekit-rtc/livekit/rtc/_proto/data_stream_pb2.py b/livekit-rtc/livekit/rtc/_proto/data_stream_pb2.py index 7df7a7f4..3d12d60f 100644 --- a/livekit-rtc/livekit/rtc/_proto/data_stream_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/data_stream_pb2.py @@ -1,22 +1,12 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE # source: data_stream.proto -# Protobuf Python Version: 7.34.1 +# Protobuf Python Version: 4.25.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 7, - 34, - 1, - '', - 'data_stream.proto' -) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -31,16 +21,16 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'data_stream_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None _globals['DESCRIPTOR']._serialized_options = b'\252\002\rLiveKit.Proto' - _globals['_TEXTSTREAMINFO_ATTRIBUTESENTRY']._loaded_options = None + _globals['_TEXTSTREAMINFO_ATTRIBUTESENTRY']._options = None _globals['_TEXTSTREAMINFO_ATTRIBUTESENTRY']._serialized_options = b'8\001' - _globals['_BYTESTREAMINFO_ATTRIBUTESENTRY']._loaded_options = None + _globals['_BYTESTREAMINFO_ATTRIBUTESENTRY']._options = None _globals['_BYTESTREAMINFO_ATTRIBUTESENTRY']._serialized_options = b'8\001' - _globals['_STREAMTEXTOPTIONS_ATTRIBUTESENTRY']._loaded_options = None + _globals['_STREAMTEXTOPTIONS_ATTRIBUTESENTRY']._options = None _globals['_STREAMTEXTOPTIONS_ATTRIBUTESENTRY']._serialized_options = b'8\001' - _globals['_STREAMBYTEOPTIONS_ATTRIBUTESENTRY']._loaded_options = None + _globals['_STREAMBYTEOPTIONS_ATTRIBUTESENTRY']._options = None _globals['_STREAMBYTEOPTIONS_ATTRIBUTESENTRY']._serialized_options = b'8\001' _globals['_OWNEDTEXTSTREAMREADER']._serialized_start=62 _globals['_OWNEDTEXTSTREAMREADER']._serialized_end=177 diff --git a/livekit-rtc/livekit/rtc/_proto/data_stream_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/data_stream_pb2.pyi index ad6a7ecc..e68dc45f 100644 --- a/livekit-rtc/livekit/rtc/_proto/data_stream_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/data_stream_pb2.pyi @@ -16,381 +16,329 @@ See the License for the specific language governing permissions and limitations under the License. """ -from collections import abc as _abc -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -import builtins as _builtins -from . import e2ee_pb2 as _e2ee_pb2 -from . import handle_pb2 as _handle_pb2 +import builtins +import collections.abc +from . import e2ee_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +from . import handle_pb2 import sys -import typing as _typing +import typing -if sys.version_info >= (3, 11): - from typing import TypeAlias as _TypeAlias, Never as _Never +if sys.version_info >= (3, 10): + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias, Never as _Never + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -@_typing.final -class OwnedTextStreamReader(_message.Message): +@typing.final +class OwnedTextStreamReader(google.protobuf.message.Message): """MARK: - Text stream reader A reader for an incoming stream. """ - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - HANDLE_FIELD_NUMBER: _builtins.int - INFO_FIELD_NUMBER: _builtins.int - @_builtins.property - def handle(self) -> _handle_pb2.FfiOwnedHandle: ... - @_builtins.property - def info(self) -> Global___TextStreamInfo: ... + HANDLE_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + @property + def handle(self) -> handle_pb2.FfiOwnedHandle: ... + @property + def info(self) -> global___TextStreamInfo: ... def __init__( self, *, - handle: _handle_pb2.FfiOwnedHandle | None = ..., - info: Global___TextStreamInfo | None = ..., + handle: handle_pb2.FfiOwnedHandle | None = ..., + info: global___TextStreamInfo | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... -Global___OwnedTextStreamReader: _TypeAlias = OwnedTextStreamReader # noqa: Y015 +global___OwnedTextStreamReader = OwnedTextStreamReader -@_typing.final -class TextStreamReaderReadIncrementalRequest(_message.Message): +@typing.final +class TextStreamReaderReadIncrementalRequest(google.protobuf.message.Message): """Reads an incoming text stream incrementally.""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - READER_HANDLE_FIELD_NUMBER: _builtins.int - reader_handle: _builtins.int + READER_HANDLE_FIELD_NUMBER: builtins.int + reader_handle: builtins.int def __init__( self, *, - reader_handle: _builtins.int | None = ..., + reader_handle: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["reader_handle", b"reader_handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["reader_handle", b"reader_handle"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["reader_handle", b"reader_handle"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["reader_handle", b"reader_handle"]) -> None: ... -Global___TextStreamReaderReadIncrementalRequest: _TypeAlias = TextStreamReaderReadIncrementalRequest # noqa: Y015 +global___TextStreamReaderReadIncrementalRequest = TextStreamReaderReadIncrementalRequest -@_typing.final -class TextStreamReaderReadIncrementalResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class TextStreamReaderReadIncrementalResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... -Global___TextStreamReaderReadIncrementalResponse: _TypeAlias = TextStreamReaderReadIncrementalResponse # noqa: Y015 +global___TextStreamReaderReadIncrementalResponse = TextStreamReaderReadIncrementalResponse -@_typing.final -class TextStreamReaderReadAllRequest(_message.Message): +@typing.final +class TextStreamReaderReadAllRequest(google.protobuf.message.Message): """Reads an incoming text stream in its entirety.""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - READER_HANDLE_FIELD_NUMBER: _builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int - reader_handle: _builtins.int - request_async_id: _builtins.int + READER_HANDLE_FIELD_NUMBER: builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int + reader_handle: builtins.int + request_async_id: builtins.int def __init__( self, *, - reader_handle: _builtins.int | None = ..., - request_async_id: _builtins.int | None = ..., + reader_handle: builtins.int | None = ..., + request_async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["reader_handle", b"reader_handle", "request_async_id", b"request_async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["reader_handle", b"reader_handle", "request_async_id", b"request_async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["reader_handle", b"reader_handle", "request_async_id", b"request_async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["reader_handle", b"reader_handle", "request_async_id", b"request_async_id"]) -> None: ... -Global___TextStreamReaderReadAllRequest: _TypeAlias = TextStreamReaderReadAllRequest # noqa: Y015 +global___TextStreamReaderReadAllRequest = TextStreamReaderReadAllRequest -@_typing.final -class TextStreamReaderReadAllResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class TextStreamReaderReadAllResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___TextStreamReaderReadAllResponse: _TypeAlias = TextStreamReaderReadAllResponse # noqa: Y015 - -@_typing.final -class TextStreamReaderReadAllCallback(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: _builtins.int - CONTENT_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - async_id: _builtins.int - content: _builtins.str - @_builtins.property - def error(self) -> Global___StreamError: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + +global___TextStreamReaderReadAllResponse = TextStreamReaderReadAllResponse + +@typing.final +class TextStreamReaderReadAllCallback(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: builtins.int + CONTENT_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + async_id: builtins.int + content: builtins.str + @property + def error(self) -> global___StreamError: ... def __init__( self, *, - async_id: _builtins.int | None = ..., - content: _builtins.str | None = ..., - error: Global___StreamError | None = ..., + async_id: builtins.int | None = ..., + content: builtins.str | None = ..., + error: global___StreamError | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "content", b"content", "error", b"error", "result", b"result"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "content", b"content", "error", b"error", "result", b"result"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - _WhichOneofReturnType_result: _TypeAlias = _typing.Literal["content", "error"] # noqa: Y015 - _WhichOneofArgType_result: _TypeAlias = _typing.Literal["result", b"result"] # noqa: Y015 - def WhichOneof(self, oneof_group: _WhichOneofArgType_result) -> _WhichOneofReturnType_result | None: ... - -Global___TextStreamReaderReadAllCallback: _TypeAlias = TextStreamReaderReadAllCallback # noqa: Y015 - -@_typing.final -class TextStreamReaderEvent(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - READER_HANDLE_FIELD_NUMBER: _builtins.int - CHUNK_RECEIVED_FIELD_NUMBER: _builtins.int - EOS_FIELD_NUMBER: _builtins.int - reader_handle: _builtins.int - @_builtins.property - def chunk_received(self) -> Global___TextStreamReaderChunkReceived: ... - @_builtins.property - def eos(self) -> Global___TextStreamReaderEOS: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id", "content", b"content", "error", b"error", "result", b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "content", b"content", "error", b"error", "result", b"result"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["content", "error"] | None: ... + +global___TextStreamReaderReadAllCallback = TextStreamReaderReadAllCallback + +@typing.final +class TextStreamReaderEvent(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + READER_HANDLE_FIELD_NUMBER: builtins.int + CHUNK_RECEIVED_FIELD_NUMBER: builtins.int + EOS_FIELD_NUMBER: builtins.int + reader_handle: builtins.int + @property + def chunk_received(self) -> global___TextStreamReaderChunkReceived: ... + @property + def eos(self) -> global___TextStreamReaderEOS: ... def __init__( self, *, - reader_handle: _builtins.int | None = ..., - chunk_received: Global___TextStreamReaderChunkReceived | None = ..., - eos: Global___TextStreamReaderEOS | None = ..., + reader_handle: builtins.int | None = ..., + chunk_received: global___TextStreamReaderChunkReceived | None = ..., + eos: global___TextStreamReaderEOS | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["chunk_received", b"chunk_received", "detail", b"detail", "eos", b"eos", "reader_handle", b"reader_handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["chunk_received", b"chunk_received", "detail", b"detail", "eos", b"eos", "reader_handle", b"reader_handle"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - _WhichOneofReturnType_detail: _TypeAlias = _typing.Literal["chunk_received", "eos"] # noqa: Y015 - _WhichOneofArgType_detail: _TypeAlias = _typing.Literal["detail", b"detail"] # noqa: Y015 - def WhichOneof(self, oneof_group: _WhichOneofArgType_detail) -> _WhichOneofReturnType_detail | None: ... - -Global___TextStreamReaderEvent: _TypeAlias = TextStreamReaderEvent # noqa: Y015 - -@_typing.final -class TextStreamReaderChunkReceived(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - CONTENT_FIELD_NUMBER: _builtins.int - content: _builtins.str + 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: ... + def ClearField(self, field_name: typing.Literal["chunk_received", b"chunk_received", "detail", b"detail", "eos", b"eos", "reader_handle", b"reader_handle"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["detail", b"detail"]) -> typing.Literal["chunk_received", "eos"] | None: ... + +global___TextStreamReaderEvent = TextStreamReaderEvent + +@typing.final +class TextStreamReaderChunkReceived(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CONTENT_FIELD_NUMBER: builtins.int + content: builtins.str def __init__( self, *, - content: _builtins.str | None = ..., + content: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["content", b"content"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["content", b"content"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["content", b"content"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["content", b"content"]) -> None: ... -Global___TextStreamReaderChunkReceived: _TypeAlias = TextStreamReaderChunkReceived # noqa: Y015 +global___TextStreamReaderChunkReceived = TextStreamReaderChunkReceived -@_typing.final -class TextStreamReaderEOS(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class TextStreamReaderEOS(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ERROR_FIELD_NUMBER: _builtins.int - @_builtins.property - def error(self) -> Global___StreamError: ... + ERROR_FIELD_NUMBER: builtins.int + @property + def error(self) -> global___StreamError: ... def __init__( self, *, - error: Global___StreamError | None = ..., + error: global___StreamError | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error"]) -> None: ... -Global___TextStreamReaderEOS: _TypeAlias = TextStreamReaderEOS # noqa: Y015 +global___TextStreamReaderEOS = TextStreamReaderEOS -@_typing.final -class OwnedByteStreamReader(_message.Message): +@typing.final +class OwnedByteStreamReader(google.protobuf.message.Message): """MARK: - Byte stream reader A reader for an incoming stream. """ - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - HANDLE_FIELD_NUMBER: _builtins.int - INFO_FIELD_NUMBER: _builtins.int - @_builtins.property - def handle(self) -> _handle_pb2.FfiOwnedHandle: ... - @_builtins.property - def info(self) -> Global___ByteStreamInfo: ... + HANDLE_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + @property + def handle(self) -> handle_pb2.FfiOwnedHandle: ... + @property + def info(self) -> global___ByteStreamInfo: ... def __init__( self, *, - handle: _handle_pb2.FfiOwnedHandle | None = ..., - info: Global___ByteStreamInfo | None = ..., + handle: handle_pb2.FfiOwnedHandle | None = ..., + info: global___ByteStreamInfo | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... -Global___OwnedByteStreamReader: _TypeAlias = OwnedByteStreamReader # noqa: Y015 +global___OwnedByteStreamReader = OwnedByteStreamReader -@_typing.final -class ByteStreamReaderReadIncrementalRequest(_message.Message): +@typing.final +class ByteStreamReaderReadIncrementalRequest(google.protobuf.message.Message): """Reads an incoming byte stream incrementally.""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - READER_HANDLE_FIELD_NUMBER: _builtins.int - reader_handle: _builtins.int + READER_HANDLE_FIELD_NUMBER: builtins.int + reader_handle: builtins.int def __init__( self, *, - reader_handle: _builtins.int | None = ..., + reader_handle: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["reader_handle", b"reader_handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["reader_handle", b"reader_handle"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["reader_handle", b"reader_handle"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["reader_handle", b"reader_handle"]) -> None: ... -Global___ByteStreamReaderReadIncrementalRequest: _TypeAlias = ByteStreamReaderReadIncrementalRequest # noqa: Y015 +global___ByteStreamReaderReadIncrementalRequest = ByteStreamReaderReadIncrementalRequest -@_typing.final -class ByteStreamReaderReadIncrementalResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ByteStreamReaderReadIncrementalResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... -Global___ByteStreamReaderReadIncrementalResponse: _TypeAlias = ByteStreamReaderReadIncrementalResponse # noqa: Y015 +global___ByteStreamReaderReadIncrementalResponse = ByteStreamReaderReadIncrementalResponse -@_typing.final -class ByteStreamReaderReadAllRequest(_message.Message): +@typing.final +class ByteStreamReaderReadAllRequest(google.protobuf.message.Message): """Reads an incoming byte stream in its entirety.""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - READER_HANDLE_FIELD_NUMBER: _builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int - reader_handle: _builtins.int - request_async_id: _builtins.int + READER_HANDLE_FIELD_NUMBER: builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int + reader_handle: builtins.int + request_async_id: builtins.int def __init__( self, *, - reader_handle: _builtins.int | None = ..., - request_async_id: _builtins.int | None = ..., + reader_handle: builtins.int | None = ..., + request_async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["reader_handle", b"reader_handle", "request_async_id", b"request_async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["reader_handle", b"reader_handle", "request_async_id", b"request_async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["reader_handle", b"reader_handle", "request_async_id", b"request_async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["reader_handle", b"reader_handle", "request_async_id", b"request_async_id"]) -> None: ... -Global___ByteStreamReaderReadAllRequest: _TypeAlias = ByteStreamReaderReadAllRequest # noqa: Y015 +global___ByteStreamReaderReadAllRequest = ByteStreamReaderReadAllRequest -@_typing.final -class ByteStreamReaderReadAllResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ByteStreamReaderReadAllResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___ByteStreamReaderReadAllResponse: _TypeAlias = ByteStreamReaderReadAllResponse # noqa: Y015 - -@_typing.final -class ByteStreamReaderReadAllCallback(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: _builtins.int - CONTENT_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - async_id: _builtins.int - content: _builtins.bytes - @_builtins.property - def error(self) -> Global___StreamError: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + +global___ByteStreamReaderReadAllResponse = ByteStreamReaderReadAllResponse + +@typing.final +class ByteStreamReaderReadAllCallback(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: builtins.int + CONTENT_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + async_id: builtins.int + content: builtins.bytes + @property + def error(self) -> global___StreamError: ... def __init__( self, *, - async_id: _builtins.int | None = ..., - content: _builtins.bytes | None = ..., - error: Global___StreamError | None = ..., + async_id: builtins.int | None = ..., + content: builtins.bytes | None = ..., + error: global___StreamError | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "content", b"content", "error", b"error", "result", b"result"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "content", b"content", "error", b"error", "result", b"result"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - _WhichOneofReturnType_result: _TypeAlias = _typing.Literal["content", "error"] # noqa: Y015 - _WhichOneofArgType_result: _TypeAlias = _typing.Literal["result", b"result"] # noqa: Y015 - def WhichOneof(self, oneof_group: _WhichOneofArgType_result) -> _WhichOneofReturnType_result | None: ... - -Global___ByteStreamReaderReadAllCallback: _TypeAlias = ByteStreamReaderReadAllCallback # noqa: Y015 - -@_typing.final -class ByteStreamReaderWriteToFileRequest(_message.Message): + def HasField(self, field_name: typing.Literal["async_id", b"async_id", "content", b"content", "error", b"error", "result", b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "content", b"content", "error", b"error", "result", b"result"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["content", "error"] | None: ... + +global___ByteStreamReaderReadAllCallback = ByteStreamReaderReadAllCallback + +@typing.final +class ByteStreamReaderWriteToFileRequest(google.protobuf.message.Message): """Writes data from an incoming stream to a file as it arrives.""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - READER_HANDLE_FIELD_NUMBER: _builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int - DIRECTORY_FIELD_NUMBER: _builtins.int - NAME_OVERRIDE_FIELD_NUMBER: _builtins.int - reader_handle: _builtins.int - request_async_id: _builtins.int - directory: _builtins.str + READER_HANDLE_FIELD_NUMBER: builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int + DIRECTORY_FIELD_NUMBER: builtins.int + NAME_OVERRIDE_FIELD_NUMBER: builtins.int + reader_handle: builtins.int + request_async_id: builtins.int + directory: builtins.str """Directory to write the file in (must be writable by the current process). If not provided, the file will be written to the system's temp directory. """ - name_override: _builtins.str + name_override: builtins.str """Name to use for the written file. If not provided, the file's name and extension will be inferred from the stream's info. @@ -398,886 +346,774 @@ class ByteStreamReaderWriteToFileRequest(_message.Message): def __init__( self, *, - reader_handle: _builtins.int | None = ..., - request_async_id: _builtins.int | None = ..., - directory: _builtins.str | None = ..., - name_override: _builtins.str | None = ..., + reader_handle: builtins.int | None = ..., + request_async_id: builtins.int | None = ..., + directory: builtins.str | None = ..., + name_override: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["directory", b"directory", "name_override", b"name_override", "reader_handle", b"reader_handle", "request_async_id", b"request_async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["directory", b"directory", "name_override", b"name_override", "reader_handle", b"reader_handle", "request_async_id", b"request_async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + 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: ... + 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: ... -Global___ByteStreamReaderWriteToFileRequest: _TypeAlias = ByteStreamReaderWriteToFileRequest # noqa: Y015 +global___ByteStreamReaderWriteToFileRequest = ByteStreamReaderWriteToFileRequest -@_typing.final -class ByteStreamReaderWriteToFileResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ByteStreamReaderWriteToFileResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___ByteStreamReaderWriteToFileResponse: _TypeAlias = ByteStreamReaderWriteToFileResponse # noqa: Y015 - -@_typing.final -class ByteStreamReaderWriteToFileCallback(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: _builtins.int - FILE_PATH_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - async_id: _builtins.int - file_path: _builtins.str + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + +global___ByteStreamReaderWriteToFileResponse = ByteStreamReaderWriteToFileResponse + +@typing.final +class ByteStreamReaderWriteToFileCallback(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: builtins.int + FILE_PATH_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + async_id: builtins.int + file_path: builtins.str """Path the file was written to.""" - @_builtins.property - def error(self) -> Global___StreamError: ... + @property + def error(self) -> global___StreamError: ... def __init__( self, *, - async_id: _builtins.int | None = ..., - file_path: _builtins.str | None = ..., - error: Global___StreamError | None = ..., + async_id: builtins.int | None = ..., + file_path: builtins.str | None = ..., + error: global___StreamError | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "file_path", b"file_path", "result", b"result"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "file_path", b"file_path", "result", b"result"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - _WhichOneofReturnType_result: _TypeAlias = _typing.Literal["file_path", "error"] # noqa: Y015 - _WhichOneofArgType_result: _TypeAlias = _typing.Literal["result", b"result"] # noqa: Y015 - def WhichOneof(self, oneof_group: _WhichOneofArgType_result) -> _WhichOneofReturnType_result | None: ... - -Global___ByteStreamReaderWriteToFileCallback: _TypeAlias = ByteStreamReaderWriteToFileCallback # noqa: Y015 - -@_typing.final -class ByteStreamReaderEvent(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - READER_HANDLE_FIELD_NUMBER: _builtins.int - CHUNK_RECEIVED_FIELD_NUMBER: _builtins.int - EOS_FIELD_NUMBER: _builtins.int - reader_handle: _builtins.int - @_builtins.property - def chunk_received(self) -> Global___ByteStreamReaderChunkReceived: ... - @_builtins.property - def eos(self) -> Global___ByteStreamReaderEOS: ... + 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: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "file_path", b"file_path", "result", b"result"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["file_path", "error"] | None: ... + +global___ByteStreamReaderWriteToFileCallback = ByteStreamReaderWriteToFileCallback + +@typing.final +class ByteStreamReaderEvent(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + READER_HANDLE_FIELD_NUMBER: builtins.int + CHUNK_RECEIVED_FIELD_NUMBER: builtins.int + EOS_FIELD_NUMBER: builtins.int + reader_handle: builtins.int + @property + def chunk_received(self) -> global___ByteStreamReaderChunkReceived: ... + @property + def eos(self) -> global___ByteStreamReaderEOS: ... def __init__( self, *, - reader_handle: _builtins.int | None = ..., - chunk_received: Global___ByteStreamReaderChunkReceived | None = ..., - eos: Global___ByteStreamReaderEOS | None = ..., + reader_handle: builtins.int | None = ..., + chunk_received: global___ByteStreamReaderChunkReceived | None = ..., + eos: global___ByteStreamReaderEOS | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["chunk_received", b"chunk_received", "detail", b"detail", "eos", b"eos", "reader_handle", b"reader_handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["chunk_received", b"chunk_received", "detail", b"detail", "eos", b"eos", "reader_handle", b"reader_handle"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - _WhichOneofReturnType_detail: _TypeAlias = _typing.Literal["chunk_received", "eos"] # noqa: Y015 - _WhichOneofArgType_detail: _TypeAlias = _typing.Literal["detail", b"detail"] # noqa: Y015 - def WhichOneof(self, oneof_group: _WhichOneofArgType_detail) -> _WhichOneofReturnType_detail | None: ... - -Global___ByteStreamReaderEvent: _TypeAlias = ByteStreamReaderEvent # noqa: Y015 - -@_typing.final -class ByteStreamReaderChunkReceived(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - CONTENT_FIELD_NUMBER: _builtins.int - content: _builtins.bytes + 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: ... + def ClearField(self, field_name: typing.Literal["chunk_received", b"chunk_received", "detail", b"detail", "eos", b"eos", "reader_handle", b"reader_handle"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["detail", b"detail"]) -> typing.Literal["chunk_received", "eos"] | None: ... + +global___ByteStreamReaderEvent = ByteStreamReaderEvent + +@typing.final +class ByteStreamReaderChunkReceived(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CONTENT_FIELD_NUMBER: builtins.int + content: builtins.bytes def __init__( self, *, - content: _builtins.bytes | None = ..., + content: builtins.bytes | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["content", b"content"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["content", b"content"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["content", b"content"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["content", b"content"]) -> None: ... -Global___ByteStreamReaderChunkReceived: _TypeAlias = ByteStreamReaderChunkReceived # noqa: Y015 +global___ByteStreamReaderChunkReceived = ByteStreamReaderChunkReceived -@_typing.final -class ByteStreamReaderEOS(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ByteStreamReaderEOS(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ERROR_FIELD_NUMBER: _builtins.int - @_builtins.property - def error(self) -> Global___StreamError: ... + ERROR_FIELD_NUMBER: builtins.int + @property + def error(self) -> global___StreamError: ... def __init__( self, *, - error: Global___StreamError | None = ..., + error: global___StreamError | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error"]) -> None: ... -Global___ByteStreamReaderEOS: _TypeAlias = ByteStreamReaderEOS # noqa: Y015 +global___ByteStreamReaderEOS = ByteStreamReaderEOS -@_typing.final -class StreamSendFileRequest(_message.Message): +@typing.final +class StreamSendFileRequest(google.protobuf.message.Message): """MARK: - Send file Sends the contents of a file over a data stream. """ - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int - OPTIONS_FIELD_NUMBER: _builtins.int - FILE_PATH_FIELD_NUMBER: _builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int - local_participant_handle: _builtins.int - file_path: _builtins.str + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + FILE_PATH_FIELD_NUMBER: builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int + local_participant_handle: builtins.int + file_path: builtins.str """Path of the file to send (must be readable by the current process).""" - request_async_id: _builtins.int - @_builtins.property - def options(self) -> Global___StreamByteOptions: ... + request_async_id: builtins.int + @property + def options(self) -> global___StreamByteOptions: ... def __init__( self, *, - local_participant_handle: _builtins.int | None = ..., - options: Global___StreamByteOptions | None = ..., - file_path: _builtins.str | None = ..., - request_async_id: _builtins.int | None = ..., + local_participant_handle: builtins.int | None = ..., + options: global___StreamByteOptions | None = ..., + file_path: builtins.str | None = ..., + request_async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["file_path", b"file_path", "local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["file_path", b"file_path", "local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + 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: ... + 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: ... -Global___StreamSendFileRequest: _TypeAlias = StreamSendFileRequest # noqa: Y015 +global___StreamSendFileRequest = StreamSendFileRequest -@_typing.final -class StreamSendFileResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class StreamSendFileResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___StreamSendFileResponse: _TypeAlias = StreamSendFileResponse # noqa: Y015 - -@_typing.final -class StreamSendFileCallback(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: _builtins.int - INFO_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - async_id: _builtins.int - @_builtins.property - def info(self) -> Global___ByteStreamInfo: ... - @_builtins.property - def error(self) -> Global___StreamError: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + +global___StreamSendFileResponse = StreamSendFileResponse + +@typing.final +class StreamSendFileCallback(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + async_id: builtins.int + @property + def info(self) -> global___ByteStreamInfo: ... + @property + def error(self) -> global___StreamError: ... def __init__( self, *, - async_id: _builtins.int | None = ..., - info: Global___ByteStreamInfo | None = ..., - error: Global___StreamError | None = ..., + async_id: builtins.int | None = ..., + info: global___ByteStreamInfo | None = ..., + error: global___StreamError | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - _WhichOneofReturnType_result: _TypeAlias = _typing.Literal["info", "error"] # noqa: Y015 - _WhichOneofArgType_result: _TypeAlias = _typing.Literal["result", b"result"] # noqa: Y015 - def WhichOneof(self, oneof_group: _WhichOneofArgType_result) -> _WhichOneofReturnType_result | None: ... - -Global___StreamSendFileCallback: _TypeAlias = StreamSendFileCallback # noqa: Y015 - -@_typing.final -class StreamSendBytesRequest(_message.Message): + def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["info", "error"] | None: ... + +global___StreamSendFileCallback = StreamSendFileCallback + +@typing.final +class StreamSendBytesRequest(google.protobuf.message.Message): """MARK: - Send bytes Sends bytes over a data stream. """ - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int - OPTIONS_FIELD_NUMBER: _builtins.int - BYTES_FIELD_NUMBER: _builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int - local_participant_handle: _builtins.int - bytes: _builtins.bytes + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + BYTES_FIELD_NUMBER: builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int + local_participant_handle: builtins.int + bytes: builtins.bytes """Bytes to send.""" - request_async_id: _builtins.int - @_builtins.property - def options(self) -> Global___StreamByteOptions: ... + request_async_id: builtins.int + @property + def options(self) -> global___StreamByteOptions: ... def __init__( self, *, - local_participant_handle: _builtins.int | None = ..., - options: Global___StreamByteOptions | None = ..., - bytes: _builtins.bytes | None = ..., - request_async_id: _builtins.int | None = ..., + local_participant_handle: builtins.int | None = ..., + options: global___StreamByteOptions | None = ..., + bytes: builtins.bytes | None = ..., + request_async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["bytes", b"bytes", "local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["bytes", b"bytes", "local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + 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: ... + 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: ... -Global___StreamSendBytesRequest: _TypeAlias = StreamSendBytesRequest # noqa: Y015 +global___StreamSendBytesRequest = StreamSendBytesRequest -@_typing.final -class StreamSendBytesResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class StreamSendBytesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___StreamSendBytesResponse: _TypeAlias = StreamSendBytesResponse # noqa: Y015 - -@_typing.final -class StreamSendBytesCallback(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: _builtins.int - INFO_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - async_id: _builtins.int - @_builtins.property - def info(self) -> Global___ByteStreamInfo: ... - @_builtins.property - def error(self) -> Global___StreamError: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + +global___StreamSendBytesResponse = StreamSendBytesResponse + +@typing.final +class StreamSendBytesCallback(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + async_id: builtins.int + @property + def info(self) -> global___ByteStreamInfo: ... + @property + def error(self) -> global___StreamError: ... def __init__( self, *, - async_id: _builtins.int | None = ..., - info: Global___ByteStreamInfo | None = ..., - error: Global___StreamError | None = ..., + async_id: builtins.int | None = ..., + info: global___ByteStreamInfo | None = ..., + error: global___StreamError | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - _WhichOneofReturnType_result: _TypeAlias = _typing.Literal["info", "error"] # noqa: Y015 - _WhichOneofArgType_result: _TypeAlias = _typing.Literal["result", b"result"] # noqa: Y015 - def WhichOneof(self, oneof_group: _WhichOneofArgType_result) -> _WhichOneofReturnType_result | None: ... - -Global___StreamSendBytesCallback: _TypeAlias = StreamSendBytesCallback # noqa: Y015 - -@_typing.final -class StreamSendTextRequest(_message.Message): + def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["info", "error"] | None: ... + +global___StreamSendBytesCallback = StreamSendBytesCallback + +@typing.final +class StreamSendTextRequest(google.protobuf.message.Message): """MARK: - Send text Sends text over a data stream. """ - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int - OPTIONS_FIELD_NUMBER: _builtins.int - TEXT_FIELD_NUMBER: _builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int - local_participant_handle: _builtins.int - text: _builtins.str + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + TEXT_FIELD_NUMBER: builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int + local_participant_handle: builtins.int + text: builtins.str """Text to send.""" - request_async_id: _builtins.int - @_builtins.property - def options(self) -> Global___StreamTextOptions: ... + request_async_id: builtins.int + @property + def options(self) -> global___StreamTextOptions: ... def __init__( self, *, - local_participant_handle: _builtins.int | None = ..., - options: Global___StreamTextOptions | None = ..., - text: _builtins.str | None = ..., - request_async_id: _builtins.int | None = ..., + local_participant_handle: builtins.int | None = ..., + options: global___StreamTextOptions | None = ..., + text: builtins.str | None = ..., + request_async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id", "text", b"text"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id", "text", b"text"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + 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: ... + 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: ... -Global___StreamSendTextRequest: _TypeAlias = StreamSendTextRequest # noqa: Y015 +global___StreamSendTextRequest = StreamSendTextRequest -@_typing.final -class StreamSendTextResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class StreamSendTextResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___StreamSendTextResponse: _TypeAlias = StreamSendTextResponse # noqa: Y015 - -@_typing.final -class StreamSendTextCallback(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: _builtins.int - INFO_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - async_id: _builtins.int - @_builtins.property - def info(self) -> Global___TextStreamInfo: ... - @_builtins.property - def error(self) -> Global___StreamError: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + +global___StreamSendTextResponse = StreamSendTextResponse + +@typing.final +class StreamSendTextCallback(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + async_id: builtins.int + @property + def info(self) -> global___TextStreamInfo: ... + @property + def error(self) -> global___StreamError: ... def __init__( self, *, - async_id: _builtins.int | None = ..., - info: Global___TextStreamInfo | None = ..., - error: Global___StreamError | None = ..., + async_id: builtins.int | None = ..., + info: global___TextStreamInfo | None = ..., + error: global___StreamError | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - _WhichOneofReturnType_result: _TypeAlias = _typing.Literal["info", "error"] # noqa: Y015 - _WhichOneofArgType_result: _TypeAlias = _typing.Literal["result", b"result"] # noqa: Y015 - def WhichOneof(self, oneof_group: _WhichOneofArgType_result) -> _WhichOneofReturnType_result | None: ... - -Global___StreamSendTextCallback: _TypeAlias = StreamSendTextCallback # noqa: Y015 - -@_typing.final -class OwnedByteStreamWriter(_message.Message): + def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["info", "error"] | None: ... + +global___StreamSendTextCallback = StreamSendTextCallback + +@typing.final +class OwnedByteStreamWriter(google.protobuf.message.Message): """MARK: - Byte stream writer""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - HANDLE_FIELD_NUMBER: _builtins.int - INFO_FIELD_NUMBER: _builtins.int - @_builtins.property - def handle(self) -> _handle_pb2.FfiOwnedHandle: ... - @_builtins.property - def info(self) -> Global___ByteStreamInfo: ... + HANDLE_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + @property + def handle(self) -> handle_pb2.FfiOwnedHandle: ... + @property + def info(self) -> global___ByteStreamInfo: ... def __init__( self, *, - handle: _handle_pb2.FfiOwnedHandle | None = ..., - info: Global___ByteStreamInfo | None = ..., + handle: handle_pb2.FfiOwnedHandle | None = ..., + info: global___ByteStreamInfo | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... -Global___OwnedByteStreamWriter: _TypeAlias = OwnedByteStreamWriter # noqa: Y015 +global___OwnedByteStreamWriter = OwnedByteStreamWriter -@_typing.final -class ByteStreamOpenRequest(_message.Message): +@typing.final +class ByteStreamOpenRequest(google.protobuf.message.Message): """Opens an outgoing stream. Call must be balanced with a StreamCloseRequest. """ - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int - OPTIONS_FIELD_NUMBER: _builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int - local_participant_handle: _builtins.int - request_async_id: _builtins.int - @_builtins.property - def options(self) -> Global___StreamByteOptions: + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int + local_participant_handle: builtins.int + request_async_id: builtins.int + @property + def options(self) -> global___StreamByteOptions: """Options to use for opening the stream.""" def __init__( self, *, - local_participant_handle: _builtins.int | None = ..., - options: Global___StreamByteOptions | None = ..., - request_async_id: _builtins.int | None = ..., + local_participant_handle: builtins.int | None = ..., + options: global___StreamByteOptions | None = ..., + request_async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + 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: ... + 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: ... -Global___ByteStreamOpenRequest: _TypeAlias = ByteStreamOpenRequest # noqa: Y015 +global___ByteStreamOpenRequest = ByteStreamOpenRequest -@_typing.final -class ByteStreamOpenResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ByteStreamOpenResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___ByteStreamOpenResponse: _TypeAlias = ByteStreamOpenResponse # noqa: Y015 - -@_typing.final -class ByteStreamOpenCallback(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: _builtins.int - WRITER_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - async_id: _builtins.int - @_builtins.property - def writer(self) -> Global___OwnedByteStreamWriter: ... - @_builtins.property - def error(self) -> Global___StreamError: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + +global___ByteStreamOpenResponse = ByteStreamOpenResponse + +@typing.final +class ByteStreamOpenCallback(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: builtins.int + WRITER_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + async_id: builtins.int + @property + def writer(self) -> global___OwnedByteStreamWriter: ... + @property + def error(self) -> global___StreamError: ... def __init__( self, *, - async_id: _builtins.int | None = ..., - writer: Global___OwnedByteStreamWriter | None = ..., - error: Global___StreamError | None = ..., + async_id: builtins.int | None = ..., + writer: global___OwnedByteStreamWriter | None = ..., + error: global___StreamError | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "writer", b"writer"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "writer", b"writer"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - _WhichOneofReturnType_result: _TypeAlias = _typing.Literal["writer", "error"] # noqa: Y015 - _WhichOneofArgType_result: _TypeAlias = _typing.Literal["result", b"result"] # noqa: Y015 - def WhichOneof(self, oneof_group: _WhichOneofArgType_result) -> _WhichOneofReturnType_result | None: ... - -Global___ByteStreamOpenCallback: _TypeAlias = ByteStreamOpenCallback # noqa: Y015 - -@_typing.final -class ByteStreamWriterWriteRequest(_message.Message): + def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "writer", b"writer"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "writer", b"writer"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["writer", "error"] | None: ... + +global___ByteStreamOpenCallback = ByteStreamOpenCallback + +@typing.final +class ByteStreamWriterWriteRequest(google.protobuf.message.Message): """Writes data to a stream writer.""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - WRITER_HANDLE_FIELD_NUMBER: _builtins.int - BYTES_FIELD_NUMBER: _builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int - writer_handle: _builtins.int - bytes: _builtins.bytes - request_async_id: _builtins.int + WRITER_HANDLE_FIELD_NUMBER: builtins.int + BYTES_FIELD_NUMBER: builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int + writer_handle: builtins.int + bytes: builtins.bytes + request_async_id: builtins.int def __init__( self, *, - writer_handle: _builtins.int | None = ..., - bytes: _builtins.bytes | None = ..., - request_async_id: _builtins.int | None = ..., + writer_handle: builtins.int | None = ..., + bytes: builtins.bytes | None = ..., + request_async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["bytes", b"bytes", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["bytes", b"bytes", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["bytes", b"bytes", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["bytes", b"bytes", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"]) -> None: ... -Global___ByteStreamWriterWriteRequest: _TypeAlias = ByteStreamWriterWriteRequest # noqa: Y015 +global___ByteStreamWriterWriteRequest = ByteStreamWriterWriteRequest -@_typing.final -class ByteStreamWriterWriteResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ByteStreamWriterWriteResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___ByteStreamWriterWriteResponse: _TypeAlias = ByteStreamWriterWriteResponse # noqa: Y015 - -@_typing.final -class ByteStreamWriterWriteCallback(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - async_id: _builtins.int - @_builtins.property - def error(self) -> Global___StreamError: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + +global___ByteStreamWriterWriteResponse = ByteStreamWriterWriteResponse + +@typing.final +class ByteStreamWriterWriteCallback(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + async_id: builtins.int + @property + def error(self) -> global___StreamError: ... def __init__( self, *, - async_id: _builtins.int | None = ..., - error: Global___StreamError | None = ..., + async_id: builtins.int | None = ..., + error: global___StreamError | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... -Global___ByteStreamWriterWriteCallback: _TypeAlias = ByteStreamWriterWriteCallback # noqa: Y015 +global___ByteStreamWriterWriteCallback = ByteStreamWriterWriteCallback -@_typing.final -class ByteStreamWriterCloseRequest(_message.Message): +@typing.final +class ByteStreamWriterCloseRequest(google.protobuf.message.Message): """Closes a stream writer.""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - WRITER_HANDLE_FIELD_NUMBER: _builtins.int - REASON_FIELD_NUMBER: _builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int - writer_handle: _builtins.int - reason: _builtins.str - request_async_id: _builtins.int + WRITER_HANDLE_FIELD_NUMBER: builtins.int + REASON_FIELD_NUMBER: builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int + writer_handle: builtins.int + reason: builtins.str + request_async_id: builtins.int def __init__( self, *, - writer_handle: _builtins.int | None = ..., - reason: _builtins.str | None = ..., - request_async_id: _builtins.int | None = ..., + writer_handle: builtins.int | None = ..., + reason: builtins.str | None = ..., + request_async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["reason", b"reason", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["reason", b"reason", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["reason", b"reason", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["reason", b"reason", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"]) -> None: ... -Global___ByteStreamWriterCloseRequest: _TypeAlias = ByteStreamWriterCloseRequest # noqa: Y015 +global___ByteStreamWriterCloseRequest = ByteStreamWriterCloseRequest -@_typing.final -class ByteStreamWriterCloseResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ByteStreamWriterCloseResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___ByteStreamWriterCloseResponse: _TypeAlias = ByteStreamWriterCloseResponse # noqa: Y015 - -@_typing.final -class ByteStreamWriterCloseCallback(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - async_id: _builtins.int - @_builtins.property - def error(self) -> Global___StreamError: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + +global___ByteStreamWriterCloseResponse = ByteStreamWriterCloseResponse + +@typing.final +class ByteStreamWriterCloseCallback(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + async_id: builtins.int + @property + def error(self) -> global___StreamError: ... def __init__( self, *, - async_id: _builtins.int | None = ..., - error: Global___StreamError | None = ..., + async_id: builtins.int | None = ..., + error: global___StreamError | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... -Global___ByteStreamWriterCloseCallback: _TypeAlias = ByteStreamWriterCloseCallback # noqa: Y015 +global___ByteStreamWriterCloseCallback = ByteStreamWriterCloseCallback -@_typing.final -class OwnedTextStreamWriter(_message.Message): +@typing.final +class OwnedTextStreamWriter(google.protobuf.message.Message): """MARK: - Text stream writer""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - HANDLE_FIELD_NUMBER: _builtins.int - INFO_FIELD_NUMBER: _builtins.int - @_builtins.property - def handle(self) -> _handle_pb2.FfiOwnedHandle: ... - @_builtins.property - def info(self) -> Global___TextStreamInfo: ... + HANDLE_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + @property + def handle(self) -> handle_pb2.FfiOwnedHandle: ... + @property + def info(self) -> global___TextStreamInfo: ... def __init__( self, *, - handle: _handle_pb2.FfiOwnedHandle | None = ..., - info: Global___TextStreamInfo | None = ..., + handle: handle_pb2.FfiOwnedHandle | None = ..., + info: global___TextStreamInfo | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... -Global___OwnedTextStreamWriter: _TypeAlias = OwnedTextStreamWriter # noqa: Y015 +global___OwnedTextStreamWriter = OwnedTextStreamWriter -@_typing.final -class TextStreamOpenRequest(_message.Message): +@typing.final +class TextStreamOpenRequest(google.protobuf.message.Message): """Opens an outgoing text stream. Call must be balanced with a TextStreamCloseRequest. """ - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int - OPTIONS_FIELD_NUMBER: _builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int - local_participant_handle: _builtins.int - request_async_id: _builtins.int - @_builtins.property - def options(self) -> Global___StreamTextOptions: + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int + local_participant_handle: builtins.int + request_async_id: builtins.int + @property + def options(self) -> global___StreamTextOptions: """Options to use for opening the stream.""" def __init__( self, *, - local_participant_handle: _builtins.int | None = ..., - options: Global___StreamTextOptions | None = ..., - request_async_id: _builtins.int | None = ..., + local_participant_handle: builtins.int | None = ..., + options: global___StreamTextOptions | None = ..., + request_async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + 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: ... + 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: ... -Global___TextStreamOpenRequest: _TypeAlias = TextStreamOpenRequest # noqa: Y015 +global___TextStreamOpenRequest = TextStreamOpenRequest -@_typing.final -class TextStreamOpenResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class TextStreamOpenResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___TextStreamOpenResponse: _TypeAlias = TextStreamOpenResponse # noqa: Y015 - -@_typing.final -class TextStreamOpenCallback(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: _builtins.int - WRITER_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - async_id: _builtins.int - @_builtins.property - def writer(self) -> Global___OwnedTextStreamWriter: ... - @_builtins.property - def error(self) -> Global___StreamError: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + +global___TextStreamOpenResponse = TextStreamOpenResponse + +@typing.final +class TextStreamOpenCallback(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: builtins.int + WRITER_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + async_id: builtins.int + @property + def writer(self) -> global___OwnedTextStreamWriter: ... + @property + def error(self) -> global___StreamError: ... def __init__( self, *, - async_id: _builtins.int | None = ..., - writer: Global___OwnedTextStreamWriter | None = ..., - error: Global___StreamError | None = ..., + async_id: builtins.int | None = ..., + writer: global___OwnedTextStreamWriter | None = ..., + error: global___StreamError | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "writer", b"writer"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "writer", b"writer"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - _WhichOneofReturnType_result: _TypeAlias = _typing.Literal["writer", "error"] # noqa: Y015 - _WhichOneofArgType_result: _TypeAlias = _typing.Literal["result", b"result"] # noqa: Y015 - def WhichOneof(self, oneof_group: _WhichOneofArgType_result) -> _WhichOneofReturnType_result | None: ... - -Global___TextStreamOpenCallback: _TypeAlias = TextStreamOpenCallback # noqa: Y015 - -@_typing.final -class TextStreamWriterWriteRequest(_message.Message): + def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "writer", b"writer"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "writer", b"writer"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["writer", "error"] | None: ... + +global___TextStreamOpenCallback = TextStreamOpenCallback + +@typing.final +class TextStreamWriterWriteRequest(google.protobuf.message.Message): """Writes text to a text stream writer.""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - WRITER_HANDLE_FIELD_NUMBER: _builtins.int - TEXT_FIELD_NUMBER: _builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int - writer_handle: _builtins.int - text: _builtins.str - request_async_id: _builtins.int + WRITER_HANDLE_FIELD_NUMBER: builtins.int + TEXT_FIELD_NUMBER: builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int + writer_handle: builtins.int + text: builtins.str + request_async_id: builtins.int def __init__( self, *, - writer_handle: _builtins.int | None = ..., - text: _builtins.str | None = ..., - request_async_id: _builtins.int | None = ..., + writer_handle: builtins.int | None = ..., + text: builtins.str | None = ..., + request_async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["request_async_id", b"request_async_id", "text", b"text", "writer_handle", b"writer_handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["request_async_id", b"request_async_id", "text", b"text", "writer_handle", b"writer_handle"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["request_async_id", b"request_async_id", "text", b"text", "writer_handle", b"writer_handle"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["request_async_id", b"request_async_id", "text", b"text", "writer_handle", b"writer_handle"]) -> None: ... -Global___TextStreamWriterWriteRequest: _TypeAlias = TextStreamWriterWriteRequest # noqa: Y015 +global___TextStreamWriterWriteRequest = TextStreamWriterWriteRequest -@_typing.final -class TextStreamWriterWriteResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class TextStreamWriterWriteResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___TextStreamWriterWriteResponse: _TypeAlias = TextStreamWriterWriteResponse # noqa: Y015 - -@_typing.final -class TextStreamWriterWriteCallback(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - async_id: _builtins.int - @_builtins.property - def error(self) -> Global___StreamError: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + +global___TextStreamWriterWriteResponse = TextStreamWriterWriteResponse + +@typing.final +class TextStreamWriterWriteCallback(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + async_id: builtins.int + @property + def error(self) -> global___StreamError: ... def __init__( self, *, - async_id: _builtins.int | None = ..., - error: Global___StreamError | None = ..., + async_id: builtins.int | None = ..., + error: global___StreamError | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... -Global___TextStreamWriterWriteCallback: _TypeAlias = TextStreamWriterWriteCallback # noqa: Y015 +global___TextStreamWriterWriteCallback = TextStreamWriterWriteCallback -@_typing.final -class TextStreamWriterCloseRequest(_message.Message): +@typing.final +class TextStreamWriterCloseRequest(google.protobuf.message.Message): """Closes a text stream writer.""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - WRITER_HANDLE_FIELD_NUMBER: _builtins.int - REASON_FIELD_NUMBER: _builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int - writer_handle: _builtins.int - reason: _builtins.str - request_async_id: _builtins.int + WRITER_HANDLE_FIELD_NUMBER: builtins.int + REASON_FIELD_NUMBER: builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int + writer_handle: builtins.int + reason: builtins.str + request_async_id: builtins.int def __init__( self, *, - writer_handle: _builtins.int | None = ..., - reason: _builtins.str | None = ..., - request_async_id: _builtins.int | None = ..., + writer_handle: builtins.int | None = ..., + reason: builtins.str | None = ..., + request_async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["reason", b"reason", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["reason", b"reason", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["reason", b"reason", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["reason", b"reason", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"]) -> None: ... -Global___TextStreamWriterCloseRequest: _TypeAlias = TextStreamWriterCloseRequest # noqa: Y015 +global___TextStreamWriterCloseRequest = TextStreamWriterCloseRequest -@_typing.final -class TextStreamWriterCloseResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class TextStreamWriterCloseResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___TextStreamWriterCloseResponse: _TypeAlias = TextStreamWriterCloseResponse # noqa: Y015 - -@_typing.final -class TextStreamWriterCloseCallback(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - async_id: _builtins.int - @_builtins.property - def error(self) -> Global___StreamError: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + +global___TextStreamWriterCloseResponse = TextStreamWriterCloseResponse + +@typing.final +class TextStreamWriterCloseCallback(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + async_id: builtins.int + @property + def error(self) -> global___StreamError: ... def __init__( self, *, - async_id: _builtins.int | None = ..., - error: Global___StreamError | None = ..., + async_id: builtins.int | None = ..., + error: global___StreamError | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... -Global___TextStreamWriterCloseCallback: _TypeAlias = TextStreamWriterCloseCallback # noqa: Y015 +global___TextStreamWriterCloseCallback = TextStreamWriterCloseCallback -@_typing.final -class TextStreamInfo(_message.Message): +@typing.final +class TextStreamInfo(google.protobuf.message.Message): """Contains a subset of the fields from the stream header. Protocol-level fields not relevant to the FFI client are omitted (e.g. encryption info). """ - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor class _OperationType: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType - class _OperationTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[TextStreamInfo._OperationType.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor + class _OperationTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[TextStreamInfo._OperationType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor CREATE: TextStreamInfo._OperationType.ValueType # 0 UPDATE: TextStreamInfo._OperationType.ValueType # 1 DELETE: TextStreamInfo._OperationType.ValueType # 2 @@ -1289,295 +1125,268 @@ class TextStreamInfo(_message.Message): DELETE: TextStreamInfo.OperationType.ValueType # 2 REACTION: TextStreamInfo.OperationType.ValueType # 3 - @_typing.final - class AttributesEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + @typing.final + class AttributesEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - KEY_FIELD_NUMBER: _builtins.int - VALUE_FIELD_NUMBER: _builtins.int - key: _builtins.str - value: _builtins.str + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + value: builtins.str def __init__( self, *, - key: _builtins.str | None = ..., - value: _builtins.str | None = ..., + key: builtins.str | None = ..., + value: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - - STREAM_ID_FIELD_NUMBER: _builtins.int - TIMESTAMP_FIELD_NUMBER: _builtins.int - MIME_TYPE_FIELD_NUMBER: _builtins.int - TOPIC_FIELD_NUMBER: _builtins.int - TOTAL_LENGTH_FIELD_NUMBER: _builtins.int - ATTRIBUTES_FIELD_NUMBER: _builtins.int - OPERATION_TYPE_FIELD_NUMBER: _builtins.int - VERSION_FIELD_NUMBER: _builtins.int - REPLY_TO_STREAM_ID_FIELD_NUMBER: _builtins.int - ATTACHED_STREAM_IDS_FIELD_NUMBER: _builtins.int - GENERATED_FIELD_NUMBER: _builtins.int - ENCRYPTION_TYPE_FIELD_NUMBER: _builtins.int - stream_id: _builtins.str + def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + + STREAM_ID_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + MIME_TYPE_FIELD_NUMBER: builtins.int + TOPIC_FIELD_NUMBER: builtins.int + TOTAL_LENGTH_FIELD_NUMBER: builtins.int + ATTRIBUTES_FIELD_NUMBER: builtins.int + OPERATION_TYPE_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + REPLY_TO_STREAM_ID_FIELD_NUMBER: builtins.int + ATTACHED_STREAM_IDS_FIELD_NUMBER: builtins.int + GENERATED_FIELD_NUMBER: builtins.int + ENCRYPTION_TYPE_FIELD_NUMBER: builtins.int + stream_id: builtins.str """unique identifier for this data stream""" - timestamp: _builtins.int + timestamp: builtins.int """using int64 for Unix timestamp""" - mime_type: _builtins.str - topic: _builtins.str - total_length: _builtins.int + mime_type: builtins.str + topic: builtins.str + total_length: builtins.int """only populated for finite streams, if it's a stream of unknown size this stays empty""" - operation_type: Global___TextStreamInfo.OperationType.ValueType - version: _builtins.int + operation_type: global___TextStreamInfo.OperationType.ValueType + version: builtins.int """Optional: Version for updates/edits""" - reply_to_stream_id: _builtins.str + reply_to_stream_id: builtins.str """Optional: Reply to specific message""" - generated: _builtins.bool + generated: builtins.bool """true if the text has been generated by an agent from a participant's audio transcription""" - encryption_type: _e2ee_pb2.EncryptionType.ValueType - @_builtins.property - def attributes(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + encryption_type: e2ee_pb2.EncryptionType.ValueType + @property + def attributes(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: """user defined attributes map that can carry additional info""" - @_builtins.property - def attached_stream_ids(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: + @property + def attached_stream_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """file attachments for text streams""" def __init__( self, *, - stream_id: _builtins.str | None = ..., - timestamp: _builtins.int | None = ..., - mime_type: _builtins.str | None = ..., - topic: _builtins.str | None = ..., - total_length: _builtins.int | None = ..., - attributes: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., - operation_type: Global___TextStreamInfo.OperationType.ValueType | None = ..., - version: _builtins.int | None = ..., - reply_to_stream_id: _builtins.str | None = ..., - attached_stream_ids: _abc.Iterable[_builtins.str] | None = ..., - generated: _builtins.bool | None = ..., - encryption_type: _e2ee_pb2.EncryptionType.ValueType | None = ..., + stream_id: builtins.str | None = ..., + timestamp: builtins.int | None = ..., + mime_type: builtins.str | None = ..., + topic: builtins.str | None = ..., + total_length: builtins.int | None = ..., + attributes: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + operation_type: global___TextStreamInfo.OperationType.ValueType | None = ..., + version: builtins.int | None = ..., + reply_to_stream_id: builtins.str | None = ..., + attached_stream_ids: collections.abc.Iterable[builtins.str] | None = ..., + generated: builtins.bool | None = ..., + encryption_type: e2ee_pb2.EncryptionType.ValueType | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _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"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _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"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___TextStreamInfo: _TypeAlias = TextStreamInfo # noqa: Y015 - -@_typing.final -class ByteStreamInfo(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - @_typing.final - class AttributesEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - KEY_FIELD_NUMBER: _builtins.int - VALUE_FIELD_NUMBER: _builtins.int - key: _builtins.str - value: _builtins.str + 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: ... + 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: ... + +global___TextStreamInfo = TextStreamInfo + +@typing.final +class ByteStreamInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class AttributesEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + value: builtins.str def __init__( self, *, - key: _builtins.str | None = ..., - value: _builtins.str | None = ..., + key: builtins.str | None = ..., + value: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - - STREAM_ID_FIELD_NUMBER: _builtins.int - TIMESTAMP_FIELD_NUMBER: _builtins.int - MIME_TYPE_FIELD_NUMBER: _builtins.int - TOPIC_FIELD_NUMBER: _builtins.int - TOTAL_LENGTH_FIELD_NUMBER: _builtins.int - ATTRIBUTES_FIELD_NUMBER: _builtins.int - NAME_FIELD_NUMBER: _builtins.int - ENCRYPTION_TYPE_FIELD_NUMBER: _builtins.int - stream_id: _builtins.str + def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + + STREAM_ID_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + MIME_TYPE_FIELD_NUMBER: builtins.int + TOPIC_FIELD_NUMBER: builtins.int + TOTAL_LENGTH_FIELD_NUMBER: builtins.int + ATTRIBUTES_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + ENCRYPTION_TYPE_FIELD_NUMBER: builtins.int + stream_id: builtins.str """unique identifier for this data stream""" - timestamp: _builtins.int + timestamp: builtins.int """using int64 for Unix timestamp""" - mime_type: _builtins.str - topic: _builtins.str - total_length: _builtins.int + mime_type: builtins.str + topic: builtins.str + total_length: builtins.int """only populated for finite streams, if it's a stream of unknown size this stays empty""" - name: _builtins.str - encryption_type: _e2ee_pb2.EncryptionType.ValueType - @_builtins.property - def attributes(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + name: builtins.str + encryption_type: e2ee_pb2.EncryptionType.ValueType + @property + def attributes(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: """user defined attributes map that can carry additional info""" def __init__( self, *, - stream_id: _builtins.str | None = ..., - timestamp: _builtins.int | None = ..., - mime_type: _builtins.str | None = ..., - topic: _builtins.str | None = ..., - total_length: _builtins.int | None = ..., - attributes: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., - name: _builtins.str | None = ..., - encryption_type: _e2ee_pb2.EncryptionType.ValueType | None = ..., + stream_id: builtins.str | None = ..., + timestamp: builtins.int | None = ..., + mime_type: builtins.str | None = ..., + topic: builtins.str | None = ..., + total_length: builtins.int | None = ..., + attributes: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + name: builtins.str | None = ..., + encryption_type: e2ee_pb2.EncryptionType.ValueType | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _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"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _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"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___ByteStreamInfo: _TypeAlias = ByteStreamInfo # noqa: Y015 - -@_typing.final -class StreamTextOptions(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - @_typing.final - class AttributesEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - KEY_FIELD_NUMBER: _builtins.int - VALUE_FIELD_NUMBER: _builtins.int - key: _builtins.str - value: _builtins.str + 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: ... + 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: ... + +global___ByteStreamInfo = ByteStreamInfo + +@typing.final +class StreamTextOptions(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class AttributesEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + value: builtins.str def __init__( self, *, - key: _builtins.str | None = ..., - value: _builtins.str | None = ..., + key: builtins.str | None = ..., + value: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - - TOPIC_FIELD_NUMBER: _builtins.int - ATTRIBUTES_FIELD_NUMBER: _builtins.int - DESTINATION_IDENTITIES_FIELD_NUMBER: _builtins.int - ID_FIELD_NUMBER: _builtins.int - OPERATION_TYPE_FIELD_NUMBER: _builtins.int - VERSION_FIELD_NUMBER: _builtins.int - REPLY_TO_STREAM_ID_FIELD_NUMBER: _builtins.int - ATTACHED_STREAM_IDS_FIELD_NUMBER: _builtins.int - GENERATED_FIELD_NUMBER: _builtins.int - topic: _builtins.str - id: _builtins.str - operation_type: Global___TextStreamInfo.OperationType.ValueType - version: _builtins.int - reply_to_stream_id: _builtins.str - generated: _builtins.bool - @_builtins.property - def attributes(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... - @_builtins.property - def destination_identities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... - @_builtins.property - def attached_stream_ids(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... + def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + + TOPIC_FIELD_NUMBER: builtins.int + ATTRIBUTES_FIELD_NUMBER: builtins.int + DESTINATION_IDENTITIES_FIELD_NUMBER: builtins.int + ID_FIELD_NUMBER: builtins.int + OPERATION_TYPE_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + REPLY_TO_STREAM_ID_FIELD_NUMBER: builtins.int + ATTACHED_STREAM_IDS_FIELD_NUMBER: builtins.int + GENERATED_FIELD_NUMBER: builtins.int + topic: builtins.str + id: builtins.str + operation_type: global___TextStreamInfo.OperationType.ValueType + version: builtins.int + reply_to_stream_id: builtins.str + generated: builtins.bool + @property + def attributes(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... + @property + def destination_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + @property + def attached_stream_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... def __init__( self, *, - topic: _builtins.str | None = ..., - attributes: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., - destination_identities: _abc.Iterable[_builtins.str] | None = ..., - id: _builtins.str | None = ..., - operation_type: Global___TextStreamInfo.OperationType.ValueType | None = ..., - version: _builtins.int | None = ..., - reply_to_stream_id: _builtins.str | None = ..., - attached_stream_ids: _abc.Iterable[_builtins.str] | None = ..., - generated: _builtins.bool | None = ..., + topic: builtins.str | None = ..., + attributes: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + destination_identities: collections.abc.Iterable[builtins.str] | None = ..., + id: builtins.str | None = ..., + operation_type: global___TextStreamInfo.OperationType.ValueType | None = ..., + version: builtins.int | None = ..., + reply_to_stream_id: builtins.str | None = ..., + attached_stream_ids: collections.abc.Iterable[builtins.str] | None = ..., + generated: builtins.bool | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["generated", b"generated", "id", b"id", "operation_type", b"operation_type", "reply_to_stream_id", b"reply_to_stream_id", "topic", b"topic", "version", b"version"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["attached_stream_ids", b"attached_stream_ids", "attributes", b"attributes", "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", "topic", b"topic", "version", b"version"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___StreamTextOptions: _TypeAlias = StreamTextOptions # noqa: Y015 - -@_typing.final -class StreamByteOptions(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - @_typing.final - class AttributesEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - KEY_FIELD_NUMBER: _builtins.int - VALUE_FIELD_NUMBER: _builtins.int - key: _builtins.str - value: _builtins.str + def HasField(self, field_name: typing.Literal["generated", b"generated", "id", b"id", "operation_type", b"operation_type", "reply_to_stream_id", b"reply_to_stream_id", "topic", b"topic", "version", b"version"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["attached_stream_ids", b"attached_stream_ids", "attributes", b"attributes", "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", "topic", b"topic", "version", b"version"]) -> None: ... + +global___StreamTextOptions = StreamTextOptions + +@typing.final +class StreamByteOptions(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class AttributesEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + value: builtins.str def __init__( self, *, - key: _builtins.str | None = ..., - value: _builtins.str | None = ..., + key: builtins.str | None = ..., + value: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - - TOPIC_FIELD_NUMBER: _builtins.int - ATTRIBUTES_FIELD_NUMBER: _builtins.int - DESTINATION_IDENTITIES_FIELD_NUMBER: _builtins.int - ID_FIELD_NUMBER: _builtins.int - NAME_FIELD_NUMBER: _builtins.int - MIME_TYPE_FIELD_NUMBER: _builtins.int - TOTAL_LENGTH_FIELD_NUMBER: _builtins.int - topic: _builtins.str - id: _builtins.str - name: _builtins.str - mime_type: _builtins.str - total_length: _builtins.int - @_builtins.property - def attributes(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... - @_builtins.property - def destination_identities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... + def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + + TOPIC_FIELD_NUMBER: builtins.int + ATTRIBUTES_FIELD_NUMBER: builtins.int + DESTINATION_IDENTITIES_FIELD_NUMBER: builtins.int + ID_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + MIME_TYPE_FIELD_NUMBER: builtins.int + TOTAL_LENGTH_FIELD_NUMBER: builtins.int + topic: builtins.str + id: builtins.str + name: builtins.str + mime_type: builtins.str + total_length: builtins.int + @property + def attributes(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... + @property + def destination_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... def __init__( self, *, - topic: _builtins.str | None = ..., - attributes: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., - destination_identities: _abc.Iterable[_builtins.str] | None = ..., - id: _builtins.str | None = ..., - name: _builtins.str | None = ..., - mime_type: _builtins.str | None = ..., - total_length: _builtins.int | None = ..., + topic: builtins.str | None = ..., + attributes: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + destination_identities: collections.abc.Iterable[builtins.str] | None = ..., + id: builtins.str | None = ..., + name: builtins.str | None = ..., + mime_type: builtins.str | None = ..., + total_length: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["id", b"id", "mime_type", b"mime_type", "name", b"name", "topic", b"topic", "total_length", b"total_length"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["attributes", b"attributes", "destination_identities", b"destination_identities", "id", b"id", "mime_type", b"mime_type", "name", b"name", "topic", b"topic", "total_length", b"total_length"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["id", b"id", "mime_type", b"mime_type", "name", b"name", "topic", b"topic", "total_length", b"total_length"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["attributes", b"attributes", "destination_identities", b"destination_identities", "id", b"id", "mime_type", b"mime_type", "name", b"name", "topic", b"topic", "total_length", b"total_length"]) -> None: ... -Global___StreamByteOptions: _TypeAlias = StreamByteOptions # noqa: Y015 +global___StreamByteOptions = StreamByteOptions -@_typing.final -class StreamError(_message.Message): +@typing.final +class StreamError(google.protobuf.message.Message): """Error pertaining to a stream.""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - DESCRIPTION_FIELD_NUMBER: _builtins.int - description: _builtins.str + DESCRIPTION_FIELD_NUMBER: builtins.int + description: builtins.str """TODO(ladvoc): make this an enum.""" def __init__( self, *, - description: _builtins.str | None = ..., + description: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["description", b"description"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["description", b"description"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["description", b"description"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["description", b"description"]) -> None: ... -Global___StreamError: _TypeAlias = StreamError # noqa: Y015 +global___StreamError = StreamError diff --git a/livekit-rtc/livekit/rtc/_proto/data_track_pb2.py b/livekit-rtc/livekit/rtc/_proto/data_track_pb2.py index a787b6e1..813c85a2 100644 --- a/livekit-rtc/livekit/rtc/_proto/data_track_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/data_track_pb2.py @@ -1,22 +1,12 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE # source: data_track.proto -# Protobuf Python Version: 7.34.1 +# Protobuf Python Version: 4.25.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 7, - 34, - 1, - '', - 'data_track.proto' -) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -30,8 +20,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'data_track_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None _globals['DESCRIPTOR']._serialized_options = b'\252\002\rLiveKit.Proto' _globals['_DATATRACKERRORCODE']._serialized_start=2455 _globals['_DATATRACKERRORCODE']._serialized_end=2846 diff --git a/livekit-rtc/livekit/rtc/_proto/data_track_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/data_track_pb2.pyi index ada1a5b2..0c804b81 100644 --- a/livekit-rtc/livekit/rtc/_proto/data_track_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/data_track_pb2.pyi @@ -16,27 +16,27 @@ See the License for the specific language governing permissions and limitations under the License. """ -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -import builtins as _builtins -from . import handle_pb2 as _handle_pb2 +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +from . import handle_pb2 import sys -import typing as _typing +import typing -if sys.version_info >= (3, 11): - from typing import TypeAlias as _TypeAlias, Never as _Never +if sys.version_info >= (3, 10): + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias, Never as _Never + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class _DataTrackErrorCode: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _DataTrackErrorCodeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_DataTrackErrorCode.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _DataTrackErrorCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DataTrackErrorCode.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor DATA_TRACK_ERROR_CODE_UNKNOWN: _DataTrackErrorCode.ValueType # 0 DATA_TRACK_ERROR_CODE_INVALID_HANDLE: _DataTrackErrorCode.ValueType # 1 DATA_TRACK_ERROR_CODE_DUPLICATE_TRACK_NAME: _DataTrackErrorCode.ValueType # 2 @@ -58,14 +58,14 @@ DATA_TRACK_ERROR_CODE_SUBSCRIPTION_CLOSED: DataTrackErrorCode.ValueType # 5 DATA_TRACK_ERROR_CODE_CANCELLED: DataTrackErrorCode.ValueType # 6 DATA_TRACK_ERROR_CODE_PROTOCOL_ERROR: DataTrackErrorCode.ValueType # 7 DATA_TRACK_ERROR_CODE_INTERNAL: DataTrackErrorCode.ValueType # 8 -Global___DataTrackErrorCode: _TypeAlias = DataTrackErrorCode # noqa: Y015 +global___DataTrackErrorCode = DataTrackErrorCode class _PublishDataTrackErrorCode: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _PublishDataTrackErrorCodeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_PublishDataTrackErrorCode.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _PublishDataTrackErrorCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_PublishDataTrackErrorCode.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor PUBLISH_DATA_TRACK_ERROR_CODE_UNKNOWN: _PublishDataTrackErrorCode.ValueType # 0 PUBLISH_DATA_TRACK_ERROR_CODE_INVALID_HANDLE: _PublishDataTrackErrorCode.ValueType # 1 PUBLISH_DATA_TRACK_ERROR_CODE_DUPLICATE_NAME: _PublishDataTrackErrorCode.ValueType # 2 @@ -89,14 +89,14 @@ PUBLISH_DATA_TRACK_ERROR_CODE_INVALID_NAME: PublishDataTrackErrorCode.ValueType PUBLISH_DATA_TRACK_ERROR_CODE_LIMIT_REACHED: PublishDataTrackErrorCode.ValueType # 7 PUBLISH_DATA_TRACK_ERROR_CODE_PROTOCOL_ERROR: PublishDataTrackErrorCode.ValueType # 8 PUBLISH_DATA_TRACK_ERROR_CODE_INTERNAL: PublishDataTrackErrorCode.ValueType # 9 -Global___PublishDataTrackErrorCode: _TypeAlias = PublishDataTrackErrorCode # noqa: Y015 +global___PublishDataTrackErrorCode = PublishDataTrackErrorCode class _LocalDataTrackTryPushErrorCode: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _LocalDataTrackTryPushErrorCodeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_LocalDataTrackTryPushErrorCode.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _LocalDataTrackTryPushErrorCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_LocalDataTrackTryPushErrorCode.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_UNKNOWN: _LocalDataTrackTryPushErrorCode.ValueType # 0 LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_INVALID_HANDLE: _LocalDataTrackTryPushErrorCode.ValueType # 1 LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_TRACK_UNPUBLISHED: _LocalDataTrackTryPushErrorCode.ValueType # 2 @@ -110,14 +110,14 @@ LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_INVALID_HANDLE: LocalDataTrackTryPushErrorC LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_TRACK_UNPUBLISHED: LocalDataTrackTryPushErrorCode.ValueType # 2 LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_QUEUE_FULL: LocalDataTrackTryPushErrorCode.ValueType # 3 LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_INTERNAL: LocalDataTrackTryPushErrorCode.ValueType # 4 -Global___LocalDataTrackTryPushErrorCode: _TypeAlias = LocalDataTrackTryPushErrorCode # noqa: Y015 +global___LocalDataTrackTryPushErrorCode = LocalDataTrackTryPushErrorCode class _SubscribeDataTrackErrorCode: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _SubscribeDataTrackErrorCodeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_SubscribeDataTrackErrorCode.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _SubscribeDataTrackErrorCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SubscribeDataTrackErrorCode.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor SUBSCRIBE_DATA_TRACK_ERROR_CODE_UNKNOWN: _SubscribeDataTrackErrorCode.ValueType # 0 SUBSCRIBE_DATA_TRACK_ERROR_CODE_INVALID_HANDLE: _SubscribeDataTrackErrorCode.ValueType # 1 SUBSCRIBE_DATA_TRACK_ERROR_CODE_UNPUBLISHED: _SubscribeDataTrackErrorCode.ValueType # 2 @@ -135,164 +135,146 @@ SUBSCRIBE_DATA_TRACK_ERROR_CODE_TIMEOUT: SubscribeDataTrackErrorCode.ValueType SUBSCRIBE_DATA_TRACK_ERROR_CODE_DISCONNECTED: SubscribeDataTrackErrorCode.ValueType # 4 SUBSCRIBE_DATA_TRACK_ERROR_CODE_PROTOCOL_ERROR: SubscribeDataTrackErrorCode.ValueType # 5 SUBSCRIBE_DATA_TRACK_ERROR_CODE_INTERNAL: SubscribeDataTrackErrorCode.ValueType # 6 -Global___SubscribeDataTrackErrorCode: _TypeAlias = SubscribeDataTrackErrorCode # noqa: Y015 +global___SubscribeDataTrackErrorCode = SubscribeDataTrackErrorCode -@_typing.final -class DataTrackInfo(_message.Message): +@typing.final +class DataTrackInfo(google.protobuf.message.Message): """MARK: - Common Information about a published data track. """ - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - NAME_FIELD_NUMBER: _builtins.int - SID_FIELD_NUMBER: _builtins.int - USES_E2EE_FIELD_NUMBER: _builtins.int - name: _builtins.str + NAME_FIELD_NUMBER: builtins.int + SID_FIELD_NUMBER: builtins.int + USES_E2EE_FIELD_NUMBER: builtins.int + name: builtins.str """Name of the track assigned by the publisher.""" - sid: _builtins.str + sid: builtins.str """SFU-assigned track identifier.""" - uses_e2ee: _builtins.bool + uses_e2ee: builtins.bool """Whether or not frames sent on the track use end-to-end encryption.""" def __init__( self, *, - name: _builtins.str | None = ..., - sid: _builtins.str | None = ..., - uses_e2ee: _builtins.bool | None = ..., + name: builtins.str | None = ..., + sid: builtins.str | None = ..., + uses_e2ee: builtins.bool | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "sid", b"sid", "uses_e2ee", b"uses_e2ee"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "sid", b"sid", "uses_e2ee", b"uses_e2ee"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["name", b"name", "sid", b"sid", "uses_e2ee", b"uses_e2ee"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["name", b"name", "sid", b"sid", "uses_e2ee", b"uses_e2ee"]) -> None: ... -Global___DataTrackInfo: _TypeAlias = DataTrackInfo # noqa: Y015 +global___DataTrackInfo = DataTrackInfo -@_typing.final -class DataTrackFrame(_message.Message): +@typing.final +class DataTrackFrame(google.protobuf.message.Message): """A frame published on a data track.""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - PAYLOAD_FIELD_NUMBER: _builtins.int - USER_TIMESTAMP_FIELD_NUMBER: _builtins.int - payload: _builtins.bytes - user_timestamp: _builtins.int + PAYLOAD_FIELD_NUMBER: builtins.int + USER_TIMESTAMP_FIELD_NUMBER: builtins.int + payload: builtins.bytes + user_timestamp: builtins.int def __init__( self, *, - payload: _builtins.bytes | None = ..., - user_timestamp: _builtins.int | None = ..., + payload: builtins.bytes | None = ..., + user_timestamp: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["payload", b"payload", "user_timestamp", b"user_timestamp"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["payload", b"payload", "user_timestamp", b"user_timestamp"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___DataTrackFrame: _TypeAlias = DataTrackFrame # noqa: Y015 - -@_typing.final -class DataTrackError(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - CODE_FIELD_NUMBER: _builtins.int - MESSAGE_FIELD_NUMBER: _builtins.int - code: Global___DataTrackErrorCode.ValueType - message: _builtins.str + def HasField(self, field_name: typing.Literal["payload", b"payload", "user_timestamp", b"user_timestamp"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["payload", b"payload", "user_timestamp", b"user_timestamp"]) -> None: ... + +global___DataTrackFrame = DataTrackFrame + +@typing.final +class DataTrackError(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CODE_FIELD_NUMBER: builtins.int + MESSAGE_FIELD_NUMBER: builtins.int + code: global___DataTrackErrorCode.ValueType + message: builtins.str def __init__( self, *, - code: Global___DataTrackErrorCode.ValueType | None = ..., - message: _builtins.str | None = ..., + code: global___DataTrackErrorCode.ValueType | None = ..., + message: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "message", b"message"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "message", b"message"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___DataTrackError: _TypeAlias = DataTrackError # noqa: Y015 - -@_typing.final -class PublishDataTrackError(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - CODE_FIELD_NUMBER: _builtins.int - MESSAGE_FIELD_NUMBER: _builtins.int - code: Global___PublishDataTrackErrorCode.ValueType - message: _builtins.str + def HasField(self, field_name: typing.Literal["code", b"code", "message", b"message"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["code", b"code", "message", b"message"]) -> None: ... + +global___DataTrackError = DataTrackError + +@typing.final +class PublishDataTrackError(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CODE_FIELD_NUMBER: builtins.int + MESSAGE_FIELD_NUMBER: builtins.int + code: global___PublishDataTrackErrorCode.ValueType + message: builtins.str def __init__( self, *, - code: Global___PublishDataTrackErrorCode.ValueType | None = ..., - message: _builtins.str | None = ..., + code: global___PublishDataTrackErrorCode.ValueType | None = ..., + message: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "message", b"message"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "message", b"message"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___PublishDataTrackError: _TypeAlias = PublishDataTrackError # noqa: Y015 - -@_typing.final -class LocalDataTrackTryPushError(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - CODE_FIELD_NUMBER: _builtins.int - MESSAGE_FIELD_NUMBER: _builtins.int - code: Global___LocalDataTrackTryPushErrorCode.ValueType - message: _builtins.str + def HasField(self, field_name: typing.Literal["code", b"code", "message", b"message"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["code", b"code", "message", b"message"]) -> None: ... + +global___PublishDataTrackError = PublishDataTrackError + +@typing.final +class LocalDataTrackTryPushError(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CODE_FIELD_NUMBER: builtins.int + MESSAGE_FIELD_NUMBER: builtins.int + code: global___LocalDataTrackTryPushErrorCode.ValueType + message: builtins.str def __init__( self, *, - code: Global___LocalDataTrackTryPushErrorCode.ValueType | None = ..., - message: _builtins.str | None = ..., + code: global___LocalDataTrackTryPushErrorCode.ValueType | None = ..., + message: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "message", b"message"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "message", b"message"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___LocalDataTrackTryPushError: _TypeAlias = LocalDataTrackTryPushError # noqa: Y015 - -@_typing.final -class SubscribeDataTrackError(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - CODE_FIELD_NUMBER: _builtins.int - MESSAGE_FIELD_NUMBER: _builtins.int - code: Global___SubscribeDataTrackErrorCode.ValueType - message: _builtins.str + def HasField(self, field_name: typing.Literal["code", b"code", "message", b"message"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["code", b"code", "message", b"message"]) -> None: ... + +global___LocalDataTrackTryPushError = LocalDataTrackTryPushError + +@typing.final +class SubscribeDataTrackError(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CODE_FIELD_NUMBER: builtins.int + MESSAGE_FIELD_NUMBER: builtins.int + code: global___SubscribeDataTrackErrorCode.ValueType + message: builtins.str def __init__( self, *, - code: Global___SubscribeDataTrackErrorCode.ValueType | None = ..., - message: _builtins.str | None = ..., + code: global___SubscribeDataTrackErrorCode.ValueType | None = ..., + message: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "message", b"message"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "message", b"message"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["code", b"code", "message", b"message"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["code", b"code", "message", b"message"]) -> None: ... -Global___SubscribeDataTrackError: _TypeAlias = SubscribeDataTrackError # noqa: Y015 +global___SubscribeDataTrackError = SubscribeDataTrackError -@_typing.final -class DataTrackOptions(_message.Message): +@typing.final +class DataTrackOptions(google.protobuf.message.Message): """MARK: - Local Options for publishing a data track. """ - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - NAME_FIELD_NUMBER: _builtins.int - name: _builtins.str + NAME_FIELD_NUMBER: builtins.int + name: builtins.str """Track name used to identify the track to other participants. Must not be empty and must be unique per publisher. @@ -300,401 +282,344 @@ class DataTrackOptions(_message.Message): def __init__( self, *, - name: _builtins.str | None = ..., + name: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["name", b"name"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["name", b"name"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["name", b"name"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["name", b"name"]) -> None: ... -Global___DataTrackOptions: _TypeAlias = DataTrackOptions # noqa: Y015 +global___DataTrackOptions = DataTrackOptions -@_typing.final -class PublishDataTrackRequest(_message.Message): +@typing.final +class PublishDataTrackRequest(google.protobuf.message.Message): """Publish a data track""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int - OPTIONS_FIELD_NUMBER: _builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int - local_participant_handle: _builtins.int - request_async_id: _builtins.int - @_builtins.property - def options(self) -> Global___DataTrackOptions: ... + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int + local_participant_handle: builtins.int + request_async_id: builtins.int + @property + def options(self) -> global___DataTrackOptions: ... def __init__( self, *, - local_participant_handle: _builtins.int | None = ..., - options: Global___DataTrackOptions | None = ..., - request_async_id: _builtins.int | None = ..., + local_participant_handle: builtins.int | None = ..., + options: global___DataTrackOptions | None = ..., + request_async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + 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: ... + 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: ... -Global___PublishDataTrackRequest: _TypeAlias = PublishDataTrackRequest # noqa: Y015 +global___PublishDataTrackRequest = PublishDataTrackRequest -@_typing.final -class PublishDataTrackResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class PublishDataTrackResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___PublishDataTrackResponse: _TypeAlias = PublishDataTrackResponse # noqa: Y015 - -@_typing.final -class PublishDataTrackCallback(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: _builtins.int - TRACK_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - async_id: _builtins.int - @_builtins.property - def track(self) -> Global___OwnedLocalDataTrack: ... - @_builtins.property - def error(self) -> Global___PublishDataTrackError: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + +global___PublishDataTrackResponse = PublishDataTrackResponse + +@typing.final +class PublishDataTrackCallback(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: builtins.int + TRACK_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + async_id: builtins.int + @property + def track(self) -> global___OwnedLocalDataTrack: ... + @property + def error(self) -> global___PublishDataTrackError: ... def __init__( self, *, - async_id: _builtins.int | None = ..., - track: Global___OwnedLocalDataTrack | None = ..., - error: Global___PublishDataTrackError | None = ..., + async_id: builtins.int | None = ..., + track: global___OwnedLocalDataTrack | None = ..., + error: global___PublishDataTrackError | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "track", b"track"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "track", b"track"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - _WhichOneofReturnType_result: _TypeAlias = _typing.Literal["track", "error"] # noqa: Y015 - _WhichOneofArgType_result: _TypeAlias = _typing.Literal["result", b"result"] # noqa: Y015 - def WhichOneof(self, oneof_group: _WhichOneofArgType_result) -> _WhichOneofReturnType_result | None: ... - -Global___PublishDataTrackCallback: _TypeAlias = PublishDataTrackCallback # noqa: Y015 - -@_typing.final -class OwnedLocalDataTrack(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - HANDLE_FIELD_NUMBER: _builtins.int - INFO_FIELD_NUMBER: _builtins.int - @_builtins.property - def handle(self) -> _handle_pb2.FfiOwnedHandle: ... - @_builtins.property - def info(self) -> Global___DataTrackInfo: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "track", b"track"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "track", b"track"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["track", "error"] | None: ... + +global___PublishDataTrackCallback = PublishDataTrackCallback + +@typing.final +class OwnedLocalDataTrack(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HANDLE_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + @property + def handle(self) -> handle_pb2.FfiOwnedHandle: ... + @property + def info(self) -> global___DataTrackInfo: ... def __init__( self, *, - handle: _handle_pb2.FfiOwnedHandle | None = ..., - info: Global___DataTrackInfo | None = ..., + handle: handle_pb2.FfiOwnedHandle | None = ..., + info: global___DataTrackInfo | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... -Global___OwnedLocalDataTrack: _TypeAlias = OwnedLocalDataTrack # noqa: Y015 +global___OwnedLocalDataTrack = OwnedLocalDataTrack -@_typing.final -class LocalDataTrackTryPushRequest(_message.Message): +@typing.final +class LocalDataTrackTryPushRequest(google.protobuf.message.Message): """Try pushing a frame to subscribers of the track.""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - TRACK_HANDLE_FIELD_NUMBER: _builtins.int - FRAME_FIELD_NUMBER: _builtins.int - track_handle: _builtins.int - @_builtins.property - def frame(self) -> Global___DataTrackFrame: ... + TRACK_HANDLE_FIELD_NUMBER: builtins.int + FRAME_FIELD_NUMBER: builtins.int + track_handle: builtins.int + @property + def frame(self) -> global___DataTrackFrame: ... def __init__( self, *, - track_handle: _builtins.int | None = ..., - frame: Global___DataTrackFrame | None = ..., + track_handle: builtins.int | None = ..., + frame: global___DataTrackFrame | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["frame", b"frame", "track_handle", b"track_handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["frame", b"frame", "track_handle", b"track_handle"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["frame", b"frame", "track_handle", b"track_handle"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["frame", b"frame", "track_handle", b"track_handle"]) -> None: ... -Global___LocalDataTrackTryPushRequest: _TypeAlias = LocalDataTrackTryPushRequest # noqa: Y015 +global___LocalDataTrackTryPushRequest = LocalDataTrackTryPushRequest -@_typing.final -class LocalDataTrackTryPushResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class LocalDataTrackTryPushResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ERROR_FIELD_NUMBER: _builtins.int - @_builtins.property - def error(self) -> Global___LocalDataTrackTryPushError: ... + ERROR_FIELD_NUMBER: builtins.int + @property + def error(self) -> global___LocalDataTrackTryPushError: ... def __init__( self, *, - error: Global___LocalDataTrackTryPushError | None = ..., + error: global___LocalDataTrackTryPushError | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error"]) -> None: ... -Global___LocalDataTrackTryPushResponse: _TypeAlias = LocalDataTrackTryPushResponse # noqa: Y015 +global___LocalDataTrackTryPushResponse = LocalDataTrackTryPushResponse -@_typing.final -class LocalDataTrackIsPublishedRequest(_message.Message): +@typing.final +class LocalDataTrackIsPublishedRequest(google.protobuf.message.Message): """Checks if the track is still published.""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - TRACK_HANDLE_FIELD_NUMBER: _builtins.int - track_handle: _builtins.int + TRACK_HANDLE_FIELD_NUMBER: builtins.int + track_handle: builtins.int def __init__( self, *, - track_handle: _builtins.int | None = ..., + track_handle: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["track_handle", b"track_handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["track_handle", b"track_handle"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["track_handle", b"track_handle"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["track_handle", b"track_handle"]) -> None: ... -Global___LocalDataTrackIsPublishedRequest: _TypeAlias = LocalDataTrackIsPublishedRequest # noqa: Y015 +global___LocalDataTrackIsPublishedRequest = LocalDataTrackIsPublishedRequest -@_typing.final -class LocalDataTrackIsPublishedResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class LocalDataTrackIsPublishedResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - IS_PUBLISHED_FIELD_NUMBER: _builtins.int - is_published: _builtins.bool + IS_PUBLISHED_FIELD_NUMBER: builtins.int + is_published: builtins.bool def __init__( self, *, - is_published: _builtins.bool | None = ..., + is_published: builtins.bool | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["is_published", b"is_published"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["is_published", b"is_published"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["is_published", b"is_published"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["is_published", b"is_published"]) -> None: ... -Global___LocalDataTrackIsPublishedResponse: _TypeAlias = LocalDataTrackIsPublishedResponse # noqa: Y015 +global___LocalDataTrackIsPublishedResponse = LocalDataTrackIsPublishedResponse -@_typing.final -class LocalDataTrackUnpublishRequest(_message.Message): +@typing.final +class LocalDataTrackUnpublishRequest(google.protobuf.message.Message): """Unpublishes the track.""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - TRACK_HANDLE_FIELD_NUMBER: _builtins.int - track_handle: _builtins.int + TRACK_HANDLE_FIELD_NUMBER: builtins.int + track_handle: builtins.int def __init__( self, *, - track_handle: _builtins.int | None = ..., + track_handle: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["track_handle", b"track_handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["track_handle", b"track_handle"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["track_handle", b"track_handle"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["track_handle", b"track_handle"]) -> None: ... -Global___LocalDataTrackUnpublishRequest: _TypeAlias = LocalDataTrackUnpublishRequest # noqa: Y015 +global___LocalDataTrackUnpublishRequest = LocalDataTrackUnpublishRequest -@_typing.final -class LocalDataTrackUnpublishResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class LocalDataTrackUnpublishResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... -Global___LocalDataTrackUnpublishResponse: _TypeAlias = LocalDataTrackUnpublishResponse # noqa: Y015 +global___LocalDataTrackUnpublishResponse = LocalDataTrackUnpublishResponse -@_typing.final -class OwnedRemoteDataTrack(_message.Message): +@typing.final +class OwnedRemoteDataTrack(google.protobuf.message.Message): """MARK: - Remote""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - HANDLE_FIELD_NUMBER: _builtins.int - INFO_FIELD_NUMBER: _builtins.int - PUBLISHER_IDENTITY_FIELD_NUMBER: _builtins.int - publisher_identity: _builtins.str + HANDLE_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + PUBLISHER_IDENTITY_FIELD_NUMBER: builtins.int + publisher_identity: builtins.str """Identity of the remote participant who published the track.""" - @_builtins.property - def handle(self) -> _handle_pb2.FfiOwnedHandle: ... - @_builtins.property - def info(self) -> Global___DataTrackInfo: ... + @property + def handle(self) -> handle_pb2.FfiOwnedHandle: ... + @property + def info(self) -> global___DataTrackInfo: ... def __init__( self, *, - handle: _handle_pb2.FfiOwnedHandle | None = ..., - info: Global___DataTrackInfo | None = ..., - publisher_identity: _builtins.str | None = ..., + handle: handle_pb2.FfiOwnedHandle | None = ..., + info: global___DataTrackInfo | None = ..., + publisher_identity: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info", "publisher_identity", b"publisher_identity"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info", "publisher_identity", b"publisher_identity"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info", "publisher_identity", b"publisher_identity"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info", "publisher_identity", b"publisher_identity"]) -> None: ... -Global___OwnedRemoteDataTrack: _TypeAlias = OwnedRemoteDataTrack # noqa: Y015 +global___OwnedRemoteDataTrack = OwnedRemoteDataTrack -@_typing.final -class OwnedDataTrackStream(_message.Message): +@typing.final +class OwnedDataTrackStream(google.protobuf.message.Message): """Handle to an active data track subscription. Dropping the handle will unsubscribe from the track. """ - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - HANDLE_FIELD_NUMBER: _builtins.int - @_builtins.property - def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + HANDLE_FIELD_NUMBER: builtins.int + @property + def handle(self) -> handle_pb2.FfiOwnedHandle: ... def __init__( self, *, - handle: _handle_pb2.FfiOwnedHandle | None = ..., + handle: handle_pb2.FfiOwnedHandle | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["handle", b"handle"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["handle", b"handle"]) -> None: ... -Global___OwnedDataTrackStream: _TypeAlias = OwnedDataTrackStream # noqa: Y015 +global___OwnedDataTrackStream = OwnedDataTrackStream -@_typing.final -class DataTrackSubscribeOptions(_message.Message): +@typing.final +class DataTrackSubscribeOptions(google.protobuf.message.Message): """Reserved for future subscription options.""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - BUFFER_SIZE_FIELD_NUMBER: _builtins.int - buffer_size: _builtins.int + BUFFER_SIZE_FIELD_NUMBER: builtins.int + buffer_size: builtins.int """Maximum number of frames to buffer internally.""" def __init__( self, *, - buffer_size: _builtins.int | None = ..., + buffer_size: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["buffer_size", b"buffer_size"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["buffer_size", b"buffer_size"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["buffer_size", b"buffer_size"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["buffer_size", b"buffer_size"]) -> None: ... -Global___DataTrackSubscribeOptions: _TypeAlias = DataTrackSubscribeOptions # noqa: Y015 +global___DataTrackSubscribeOptions = DataTrackSubscribeOptions -@_typing.final -class RemoteDataTrackIsPublishedRequest(_message.Message): +@typing.final +class RemoteDataTrackIsPublishedRequest(google.protobuf.message.Message): """Checks if the track is still published.""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - TRACK_HANDLE_FIELD_NUMBER: _builtins.int - track_handle: _builtins.int + TRACK_HANDLE_FIELD_NUMBER: builtins.int + track_handle: builtins.int def __init__( self, *, - track_handle: _builtins.int | None = ..., + track_handle: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["track_handle", b"track_handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["track_handle", b"track_handle"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["track_handle", b"track_handle"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["track_handle", b"track_handle"]) -> None: ... -Global___RemoteDataTrackIsPublishedRequest: _TypeAlias = RemoteDataTrackIsPublishedRequest # noqa: Y015 +global___RemoteDataTrackIsPublishedRequest = RemoteDataTrackIsPublishedRequest -@_typing.final -class RemoteDataTrackIsPublishedResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class RemoteDataTrackIsPublishedResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - IS_PUBLISHED_FIELD_NUMBER: _builtins.int - is_published: _builtins.bool + IS_PUBLISHED_FIELD_NUMBER: builtins.int + is_published: builtins.bool def __init__( self, *, - is_published: _builtins.bool | None = ..., + is_published: builtins.bool | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["is_published", b"is_published"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["is_published", b"is_published"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["is_published", b"is_published"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["is_published", b"is_published"]) -> None: ... -Global___RemoteDataTrackIsPublishedResponse: _TypeAlias = RemoteDataTrackIsPublishedResponse # noqa: Y015 +global___RemoteDataTrackIsPublishedResponse = RemoteDataTrackIsPublishedResponse -@_typing.final -class SubscribeDataTrackRequest(_message.Message): +@typing.final +class SubscribeDataTrackRequest(google.protobuf.message.Message): """Subscribe to a data track.""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - TRACK_HANDLE_FIELD_NUMBER: _builtins.int - OPTIONS_FIELD_NUMBER: _builtins.int - track_handle: _builtins.int - @_builtins.property - def options(self) -> Global___DataTrackSubscribeOptions: ... + TRACK_HANDLE_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + track_handle: builtins.int + @property + def options(self) -> global___DataTrackSubscribeOptions: ... def __init__( self, *, - track_handle: _builtins.int | None = ..., - options: Global___DataTrackSubscribeOptions | None = ..., + track_handle: builtins.int | None = ..., + options: global___DataTrackSubscribeOptions | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["options", b"options", "track_handle", b"track_handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["options", b"options", "track_handle", b"track_handle"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["options", b"options", "track_handle", b"track_handle"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["options", b"options", "track_handle", b"track_handle"]) -> None: ... -Global___SubscribeDataTrackRequest: _TypeAlias = SubscribeDataTrackRequest # noqa: Y015 +global___SubscribeDataTrackRequest = SubscribeDataTrackRequest -@_typing.final -class SubscribeDataTrackResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class SubscribeDataTrackResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - STREAM_FIELD_NUMBER: _builtins.int - @_builtins.property - def stream(self) -> Global___OwnedDataTrackStream: ... + STREAM_FIELD_NUMBER: builtins.int + @property + def stream(self) -> global___OwnedDataTrackStream: ... def __init__( self, *, - stream: Global___OwnedDataTrackStream | None = ..., + stream: global___OwnedDataTrackStream | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["stream", b"stream"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["stream", b"stream"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["stream", b"stream"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["stream", b"stream"]) -> None: ... -Global___SubscribeDataTrackResponse: _TypeAlias = SubscribeDataTrackResponse # noqa: Y015 +global___SubscribeDataTrackResponse = SubscribeDataTrackResponse -@_typing.final -class DataTrackStreamReadRequest(_message.Message): +@typing.final +class DataTrackStreamReadRequest(google.protobuf.message.Message): """Signal readiness to handle the next frame. This allows the client to put backpressure on the internal receive buffer. @@ -702,100 +627,85 @@ class DataTrackStreamReadRequest(_message.Message): once one is available. """ - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - STREAM_HANDLE_FIELD_NUMBER: _builtins.int - stream_handle: _builtins.int + STREAM_HANDLE_FIELD_NUMBER: builtins.int + stream_handle: builtins.int def __init__( self, *, - stream_handle: _builtins.int | None = ..., + stream_handle: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["stream_handle", b"stream_handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["stream_handle", b"stream_handle"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["stream_handle", b"stream_handle"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["stream_handle", b"stream_handle"]) -> None: ... -Global___DataTrackStreamReadRequest: _TypeAlias = DataTrackStreamReadRequest # noqa: Y015 +global___DataTrackStreamReadRequest = DataTrackStreamReadRequest -@_typing.final -class DataTrackStreamReadResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class DataTrackStreamReadResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... -Global___DataTrackStreamReadResponse: _TypeAlias = DataTrackStreamReadResponse # noqa: Y015 +global___DataTrackStreamReadResponse = DataTrackStreamReadResponse -@_typing.final -class DataTrackStreamEvent(_message.Message): +@typing.final +class DataTrackStreamEvent(google.protobuf.message.Message): """Event emitted on an active stream.""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - STREAM_HANDLE_FIELD_NUMBER: _builtins.int - FRAME_RECEIVED_FIELD_NUMBER: _builtins.int - EOS_FIELD_NUMBER: _builtins.int - stream_handle: _builtins.int - @_builtins.property - def frame_received(self) -> Global___DataTrackStreamFrameReceived: ... - @_builtins.property - def eos(self) -> Global___DataTrackStreamEOS: ... + STREAM_HANDLE_FIELD_NUMBER: builtins.int + FRAME_RECEIVED_FIELD_NUMBER: builtins.int + EOS_FIELD_NUMBER: builtins.int + stream_handle: builtins.int + @property + def frame_received(self) -> global___DataTrackStreamFrameReceived: ... + @property + def eos(self) -> global___DataTrackStreamEOS: ... def __init__( self, *, - stream_handle: _builtins.int | None = ..., - frame_received: Global___DataTrackStreamFrameReceived | None = ..., - eos: Global___DataTrackStreamEOS | None = ..., + stream_handle: builtins.int | None = ..., + frame_received: global___DataTrackStreamFrameReceived | None = ..., + eos: global___DataTrackStreamEOS | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["detail", b"detail", "eos", b"eos", "frame_received", b"frame_received", "stream_handle", b"stream_handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["detail", b"detail", "eos", b"eos", "frame_received", b"frame_received", "stream_handle", b"stream_handle"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - _WhichOneofReturnType_detail: _TypeAlias = _typing.Literal["frame_received", "eos"] # noqa: Y015 - _WhichOneofArgType_detail: _TypeAlias = _typing.Literal["detail", b"detail"] # noqa: Y015 - def WhichOneof(self, oneof_group: _WhichOneofArgType_detail) -> _WhichOneofReturnType_detail | None: ... - -Global___DataTrackStreamEvent: _TypeAlias = DataTrackStreamEvent # noqa: Y015 - -@_typing.final -class DataTrackStreamFrameReceived(_message.Message): + def HasField(self, field_name: typing.Literal["detail", b"detail", "eos", b"eos", "frame_received", b"frame_received", "stream_handle", b"stream_handle"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["detail", b"detail", "eos", b"eos", "frame_received", b"frame_received", "stream_handle", b"stream_handle"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["detail", b"detail"]) -> typing.Literal["frame_received", "eos"] | None: ... + +global___DataTrackStreamEvent = DataTrackStreamEvent + +@typing.final +class DataTrackStreamFrameReceived(google.protobuf.message.Message): """A frame was received.""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - FRAME_FIELD_NUMBER: _builtins.int - @_builtins.property - def frame(self) -> Global___DataTrackFrame: ... + FRAME_FIELD_NUMBER: builtins.int + @property + def frame(self) -> global___DataTrackFrame: ... def __init__( self, *, - frame: Global___DataTrackFrame | None = ..., + frame: global___DataTrackFrame | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["frame", b"frame"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["frame", b"frame"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["frame", b"frame"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["frame", b"frame"]) -> None: ... -Global___DataTrackStreamFrameReceived: _TypeAlias = DataTrackStreamFrameReceived # noqa: Y015 +global___DataTrackStreamFrameReceived = DataTrackStreamFrameReceived -@_typing.final -class DataTrackStreamEOS(_message.Message): +@typing.final +class DataTrackStreamEOS(google.protobuf.message.Message): """Stream has ended.""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ERROR_FIELD_NUMBER: _builtins.int - @_builtins.property - def error(self) -> Global___SubscribeDataTrackError: + ERROR_FIELD_NUMBER: builtins.int + @property + def error(self) -> global___SubscribeDataTrackError: """Present if stream ended before any frames were emitted due to subscription establishment failing. Absent if the stream ended normally (i.e., due to the track being unpublished). """ @@ -803,12 +713,9 @@ class DataTrackStreamEOS(_message.Message): def __init__( self, *, - error: Global___SubscribeDataTrackError | None = ..., + error: global___SubscribeDataTrackError | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error"]) -> None: ... -Global___DataTrackStreamEOS: _TypeAlias = DataTrackStreamEOS # noqa: Y015 +global___DataTrackStreamEOS = DataTrackStreamEOS diff --git a/livekit-rtc/livekit/rtc/_proto/e2ee_pb2.py b/livekit-rtc/livekit/rtc/_proto/e2ee_pb2.py index ceffa883..0a0b9a52 100644 --- a/livekit-rtc/livekit/rtc/_proto/e2ee_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/e2ee_pb2.py @@ -1,22 +1,12 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE # source: e2ee.proto -# Protobuf Python Version: 7.34.1 +# Protobuf Python Version: 4.25.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 7, - 34, - 1, - '', - 'e2ee.proto' -) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -29,8 +19,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'e2ee_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None _globals['DESCRIPTOR']._serialized_options = b'\252\002\rLiveKit.Proto' _globals['_ENCRYPTIONTYPE']._serialized_start=2951 _globals['_ENCRYPTIONTYPE']._serialized_end=2998 diff --git a/livekit-rtc/livekit/rtc/_proto/e2ee_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/e2ee_pb2.pyi index 241b2f61..53437b21 100644 --- a/livekit-rtc/livekit/rtc/_proto/e2ee_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/e2ee_pb2.pyi @@ -16,28 +16,28 @@ See the License for the specific language governing permissions and limitations under the License. """ -from collections import abc as _abc -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -import builtins as _builtins +import builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message import sys -import typing as _typing +import typing -if sys.version_info >= (3, 11): - from typing import TypeAlias as _TypeAlias, Never as _Never +if sys.version_info >= (3, 10): + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias, Never as _Never + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class _EncryptionType: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _EncryptionTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_EncryptionType.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _EncryptionTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EncryptionType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor NONE: _EncryptionType.ValueType # 0 GCM: _EncryptionType.ValueType # 1 CUSTOM: _EncryptionType.ValueType # 2 @@ -48,14 +48,14 @@ class EncryptionType(_EncryptionType, metaclass=_EncryptionTypeEnumTypeWrapper): NONE: EncryptionType.ValueType # 0 GCM: EncryptionType.ValueType # 1 CUSTOM: EncryptionType.ValueType # 2 -Global___EncryptionType: _TypeAlias = EncryptionType # noqa: Y015 +global___EncryptionType = EncryptionType class _KeyDerivationFunction: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _KeyDerivationFunctionEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_KeyDerivationFunction.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _KeyDerivationFunctionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_KeyDerivationFunction.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor PBKDF2: _KeyDerivationFunction.ValueType # 0 HKDF: _KeyDerivationFunction.ValueType # 1 @@ -63,14 +63,14 @@ class KeyDerivationFunction(_KeyDerivationFunction, metaclass=_KeyDerivationFunc PBKDF2: KeyDerivationFunction.ValueType # 0 HKDF: KeyDerivationFunction.ValueType # 1 -Global___KeyDerivationFunction: _TypeAlias = KeyDerivationFunction # noqa: Y015 +global___KeyDerivationFunction = KeyDerivationFunction class _EncryptionState: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _EncryptionStateEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_EncryptionState.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _EncryptionStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EncryptionState.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor NEW: _EncryptionState.ValueType # 0 OK: _EncryptionState.ValueType # 1 ENCRYPTION_FAILED: _EncryptionState.ValueType # 2 @@ -88,594 +88,504 @@ DECRYPTION_FAILED: EncryptionState.ValueType # 3 MISSING_KEY: EncryptionState.ValueType # 4 KEY_RATCHETED: EncryptionState.ValueType # 5 INTERNAL_ERROR: EncryptionState.ValueType # 6 -Global___EncryptionState: _TypeAlias = EncryptionState # noqa: Y015 - -@_typing.final -class FrameCryptor(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int - TRACK_SID_FIELD_NUMBER: _builtins.int - KEY_INDEX_FIELD_NUMBER: _builtins.int - ENABLED_FIELD_NUMBER: _builtins.int - participant_identity: _builtins.str - track_sid: _builtins.str - key_index: _builtins.int - enabled: _builtins.bool +global___EncryptionState = EncryptionState + +@typing.final +class FrameCryptor(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + TRACK_SID_FIELD_NUMBER: builtins.int + KEY_INDEX_FIELD_NUMBER: builtins.int + ENABLED_FIELD_NUMBER: builtins.int + participant_identity: builtins.str + track_sid: builtins.str + key_index: builtins.int + enabled: builtins.bool def __init__( self, *, - participant_identity: _builtins.str | None = ..., - track_sid: _builtins.str | None = ..., - key_index: _builtins.int | None = ..., - enabled: _builtins.bool | None = ..., + participant_identity: builtins.str | None = ..., + track_sid: builtins.str | None = ..., + key_index: builtins.int | None = ..., + enabled: builtins.bool | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled", "key_index", b"key_index", "participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled", "key_index", b"key_index", "participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___FrameCryptor: _TypeAlias = FrameCryptor # noqa: Y015 - -@_typing.final -class KeyProviderOptions(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - SHARED_KEY_FIELD_NUMBER: _builtins.int - RATCHET_WINDOW_SIZE_FIELD_NUMBER: _builtins.int - RATCHET_SALT_FIELD_NUMBER: _builtins.int - FAILURE_TOLERANCE_FIELD_NUMBER: _builtins.int - KEY_RING_SIZE_FIELD_NUMBER: _builtins.int - KEY_DERIVATION_FUNCTION_FIELD_NUMBER: _builtins.int - shared_key: _builtins.bytes + def HasField(self, field_name: typing.Literal["enabled", b"enabled", "key_index", b"key_index", "participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["enabled", b"enabled", "key_index", b"key_index", "participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> None: ... + +global___FrameCryptor = FrameCryptor + +@typing.final +class KeyProviderOptions(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SHARED_KEY_FIELD_NUMBER: builtins.int + RATCHET_WINDOW_SIZE_FIELD_NUMBER: builtins.int + RATCHET_SALT_FIELD_NUMBER: builtins.int + FAILURE_TOLERANCE_FIELD_NUMBER: builtins.int + KEY_RING_SIZE_FIELD_NUMBER: builtins.int + KEY_DERIVATION_FUNCTION_FIELD_NUMBER: builtins.int + shared_key: builtins.bytes """Only specify if you want to use a shared_key""" - ratchet_window_size: _builtins.int - ratchet_salt: _builtins.bytes - failure_tolerance: _builtins.int + ratchet_window_size: builtins.int + ratchet_salt: builtins.bytes + failure_tolerance: builtins.int """-1 = no tolerance""" - key_ring_size: _builtins.int - key_derivation_function: Global___KeyDerivationFunction.ValueType + key_ring_size: builtins.int + key_derivation_function: global___KeyDerivationFunction.ValueType def __init__( self, *, - shared_key: _builtins.bytes | None = ..., - ratchet_window_size: _builtins.int | None = ..., - ratchet_salt: _builtins.bytes | None = ..., - failure_tolerance: _builtins.int | None = ..., - key_ring_size: _builtins.int | None = ..., - key_derivation_function: Global___KeyDerivationFunction.ValueType | None = ..., + shared_key: builtins.bytes | None = ..., + ratchet_window_size: builtins.int | None = ..., + ratchet_salt: builtins.bytes | None = ..., + failure_tolerance: builtins.int | None = ..., + key_ring_size: builtins.int | None = ..., + key_derivation_function: global___KeyDerivationFunction.ValueType | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["failure_tolerance", b"failure_tolerance", "key_derivation_function", b"key_derivation_function", "key_ring_size", b"key_ring_size", "ratchet_salt", b"ratchet_salt", "ratchet_window_size", b"ratchet_window_size", "shared_key", b"shared_key"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["failure_tolerance", b"failure_tolerance", "key_derivation_function", b"key_derivation_function", "key_ring_size", b"key_ring_size", "ratchet_salt", b"ratchet_salt", "ratchet_window_size", b"ratchet_window_size", "shared_key", b"shared_key"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___KeyProviderOptions: _TypeAlias = KeyProviderOptions # noqa: Y015 - -@_typing.final -class E2eeOptions(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - ENCRYPTION_TYPE_FIELD_NUMBER: _builtins.int - KEY_PROVIDER_OPTIONS_FIELD_NUMBER: _builtins.int - encryption_type: Global___EncryptionType.ValueType - @_builtins.property - def key_provider_options(self) -> Global___KeyProviderOptions: ... + def HasField(self, field_name: typing.Literal["failure_tolerance", b"failure_tolerance", "key_derivation_function", b"key_derivation_function", "key_ring_size", b"key_ring_size", "ratchet_salt", b"ratchet_salt", "ratchet_window_size", b"ratchet_window_size", "shared_key", b"shared_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["failure_tolerance", b"failure_tolerance", "key_derivation_function", b"key_derivation_function", "key_ring_size", b"key_ring_size", "ratchet_salt", b"ratchet_salt", "ratchet_window_size", b"ratchet_window_size", "shared_key", b"shared_key"]) -> None: ... + +global___KeyProviderOptions = KeyProviderOptions + +@typing.final +class E2eeOptions(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ENCRYPTION_TYPE_FIELD_NUMBER: builtins.int + KEY_PROVIDER_OPTIONS_FIELD_NUMBER: builtins.int + encryption_type: global___EncryptionType.ValueType + @property + def key_provider_options(self) -> global___KeyProviderOptions: ... def __init__( self, *, - encryption_type: Global___EncryptionType.ValueType | None = ..., - key_provider_options: Global___KeyProviderOptions | None = ..., + encryption_type: global___EncryptionType.ValueType | None = ..., + key_provider_options: global___KeyProviderOptions | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["encryption_type", b"encryption_type", "key_provider_options", b"key_provider_options"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["encryption_type", b"encryption_type", "key_provider_options", b"key_provider_options"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["encryption_type", b"encryption_type", "key_provider_options", b"key_provider_options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["encryption_type", b"encryption_type", "key_provider_options", b"key_provider_options"]) -> None: ... -Global___E2eeOptions: _TypeAlias = E2eeOptions # noqa: Y015 +global___E2eeOptions = E2eeOptions -@_typing.final -class E2eeManagerSetEnabledRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class E2eeManagerSetEnabledRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ENABLED_FIELD_NUMBER: _builtins.int - enabled: _builtins.bool + ENABLED_FIELD_NUMBER: builtins.int + enabled: builtins.bool def __init__( self, *, - enabled: _builtins.bool | None = ..., + enabled: builtins.bool | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["enabled", b"enabled"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["enabled", b"enabled"]) -> None: ... -Global___E2eeManagerSetEnabledRequest: _TypeAlias = E2eeManagerSetEnabledRequest # noqa: Y015 +global___E2eeManagerSetEnabledRequest = E2eeManagerSetEnabledRequest -@_typing.final -class E2eeManagerSetEnabledResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class E2eeManagerSetEnabledResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... -Global___E2eeManagerSetEnabledResponse: _TypeAlias = E2eeManagerSetEnabledResponse # noqa: Y015 +global___E2eeManagerSetEnabledResponse = E2eeManagerSetEnabledResponse -@_typing.final -class E2eeManagerGetFrameCryptorsRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class E2eeManagerGetFrameCryptorsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... -Global___E2eeManagerGetFrameCryptorsRequest: _TypeAlias = E2eeManagerGetFrameCryptorsRequest # noqa: Y015 +global___E2eeManagerGetFrameCryptorsRequest = E2eeManagerGetFrameCryptorsRequest -@_typing.final -class E2eeManagerGetFrameCryptorsResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class E2eeManagerGetFrameCryptorsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - FRAME_CRYPTORS_FIELD_NUMBER: _builtins.int - @_builtins.property - def frame_cryptors(self) -> _containers.RepeatedCompositeFieldContainer[Global___FrameCryptor]: ... + FRAME_CRYPTORS_FIELD_NUMBER: builtins.int + @property + def frame_cryptors(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FrameCryptor]: ... def __init__( self, *, - frame_cryptors: _abc.Iterable[Global___FrameCryptor] | None = ..., + frame_cryptors: collections.abc.Iterable[global___FrameCryptor] | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["frame_cryptors", b"frame_cryptors"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___E2eeManagerGetFrameCryptorsResponse: _TypeAlias = E2eeManagerGetFrameCryptorsResponse # noqa: Y015 - -@_typing.final -class FrameCryptorSetEnabledRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int - TRACK_SID_FIELD_NUMBER: _builtins.int - ENABLED_FIELD_NUMBER: _builtins.int - participant_identity: _builtins.str - track_sid: _builtins.str - enabled: _builtins.bool + def ClearField(self, field_name: typing.Literal["frame_cryptors", b"frame_cryptors"]) -> None: ... + +global___E2eeManagerGetFrameCryptorsResponse = E2eeManagerGetFrameCryptorsResponse + +@typing.final +class FrameCryptorSetEnabledRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + TRACK_SID_FIELD_NUMBER: builtins.int + ENABLED_FIELD_NUMBER: builtins.int + participant_identity: builtins.str + track_sid: builtins.str + enabled: builtins.bool def __init__( self, *, - participant_identity: _builtins.str | None = ..., - track_sid: _builtins.str | None = ..., - enabled: _builtins.bool | None = ..., + participant_identity: builtins.str | None = ..., + track_sid: builtins.str | None = ..., + enabled: builtins.bool | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled", "participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled", "participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["enabled", b"enabled", "participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["enabled", b"enabled", "participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> None: ... -Global___FrameCryptorSetEnabledRequest: _TypeAlias = FrameCryptorSetEnabledRequest # noqa: Y015 +global___FrameCryptorSetEnabledRequest = FrameCryptorSetEnabledRequest -@_typing.final -class FrameCryptorSetEnabledResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class FrameCryptorSetEnabledResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___FrameCryptorSetEnabledResponse: _TypeAlias = FrameCryptorSetEnabledResponse # noqa: Y015 - -@_typing.final -class FrameCryptorSetKeyIndexRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int - TRACK_SID_FIELD_NUMBER: _builtins.int - KEY_INDEX_FIELD_NUMBER: _builtins.int - participant_identity: _builtins.str - track_sid: _builtins.str - key_index: _builtins.int + +global___FrameCryptorSetEnabledResponse = FrameCryptorSetEnabledResponse + +@typing.final +class FrameCryptorSetKeyIndexRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + TRACK_SID_FIELD_NUMBER: builtins.int + KEY_INDEX_FIELD_NUMBER: builtins.int + participant_identity: builtins.str + track_sid: builtins.str + key_index: builtins.int def __init__( self, *, - participant_identity: _builtins.str | None = ..., - track_sid: _builtins.str | None = ..., - key_index: _builtins.int | None = ..., + participant_identity: builtins.str | None = ..., + track_sid: builtins.str | None = ..., + key_index: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> None: ... -Global___FrameCryptorSetKeyIndexRequest: _TypeAlias = FrameCryptorSetKeyIndexRequest # noqa: Y015 +global___FrameCryptorSetKeyIndexRequest = FrameCryptorSetKeyIndexRequest -@_typing.final -class FrameCryptorSetKeyIndexResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class FrameCryptorSetKeyIndexResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___FrameCryptorSetKeyIndexResponse: _TypeAlias = FrameCryptorSetKeyIndexResponse # noqa: Y015 - -@_typing.final -class SetSharedKeyRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - SHARED_KEY_FIELD_NUMBER: _builtins.int - KEY_INDEX_FIELD_NUMBER: _builtins.int - shared_key: _builtins.bytes - key_index: _builtins.int + +global___FrameCryptorSetKeyIndexResponse = FrameCryptorSetKeyIndexResponse + +@typing.final +class SetSharedKeyRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SHARED_KEY_FIELD_NUMBER: builtins.int + KEY_INDEX_FIELD_NUMBER: builtins.int + shared_key: builtins.bytes + key_index: builtins.int def __init__( self, *, - shared_key: _builtins.bytes | None = ..., - key_index: _builtins.int | None = ..., + shared_key: builtins.bytes | None = ..., + key_index: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index", "shared_key", b"shared_key"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index", "shared_key", b"shared_key"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["key_index", b"key_index", "shared_key", b"shared_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key_index", b"key_index", "shared_key", b"shared_key"]) -> None: ... -Global___SetSharedKeyRequest: _TypeAlias = SetSharedKeyRequest # noqa: Y015 +global___SetSharedKeyRequest = SetSharedKeyRequest -@_typing.final -class SetSharedKeyResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class SetSharedKeyResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... -Global___SetSharedKeyResponse: _TypeAlias = SetSharedKeyResponse # noqa: Y015 +global___SetSharedKeyResponse = SetSharedKeyResponse -@_typing.final -class RatchetSharedKeyRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class RatchetSharedKeyRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - KEY_INDEX_FIELD_NUMBER: _builtins.int - key_index: _builtins.int + KEY_INDEX_FIELD_NUMBER: builtins.int + key_index: builtins.int def __init__( self, *, - key_index: _builtins.int | None = ..., + key_index: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["key_index", b"key_index"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key_index", b"key_index"]) -> None: ... -Global___RatchetSharedKeyRequest: _TypeAlias = RatchetSharedKeyRequest # noqa: Y015 +global___RatchetSharedKeyRequest = RatchetSharedKeyRequest -@_typing.final -class RatchetSharedKeyResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class RatchetSharedKeyResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - NEW_KEY_FIELD_NUMBER: _builtins.int - new_key: _builtins.bytes + NEW_KEY_FIELD_NUMBER: builtins.int + new_key: builtins.bytes def __init__( self, *, - new_key: _builtins.bytes | None = ..., + new_key: builtins.bytes | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["new_key", b"new_key"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["new_key", b"new_key"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["new_key", b"new_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["new_key", b"new_key"]) -> None: ... -Global___RatchetSharedKeyResponse: _TypeAlias = RatchetSharedKeyResponse # noqa: Y015 +global___RatchetSharedKeyResponse = RatchetSharedKeyResponse -@_typing.final -class GetSharedKeyRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class GetSharedKeyRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - KEY_INDEX_FIELD_NUMBER: _builtins.int - key_index: _builtins.int + KEY_INDEX_FIELD_NUMBER: builtins.int + key_index: builtins.int def __init__( self, *, - key_index: _builtins.int | None = ..., + key_index: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["key_index", b"key_index"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key_index", b"key_index"]) -> None: ... -Global___GetSharedKeyRequest: _TypeAlias = GetSharedKeyRequest # noqa: Y015 +global___GetSharedKeyRequest = GetSharedKeyRequest -@_typing.final -class GetSharedKeyResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class GetSharedKeyResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - KEY_FIELD_NUMBER: _builtins.int - key: _builtins.bytes + KEY_FIELD_NUMBER: builtins.int + key: builtins.bytes def __init__( self, *, - key: _builtins.bytes | None = ..., + key: builtins.bytes | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___GetSharedKeyResponse: _TypeAlias = GetSharedKeyResponse # noqa: Y015 - -@_typing.final -class SetKeyRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int - KEY_FIELD_NUMBER: _builtins.int - KEY_INDEX_FIELD_NUMBER: _builtins.int - participant_identity: _builtins.str - key: _builtins.bytes - key_index: _builtins.int + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key"]) -> None: ... + +global___GetSharedKeyResponse = GetSharedKeyResponse + +@typing.final +class SetKeyRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + KEY_FIELD_NUMBER: builtins.int + KEY_INDEX_FIELD_NUMBER: builtins.int + participant_identity: builtins.str + key: builtins.bytes + key_index: builtins.int def __init__( self, *, - participant_identity: _builtins.str | None = ..., - key: _builtins.bytes | None = ..., - key_index: _builtins.int | None = ..., + participant_identity: builtins.str | None = ..., + key: builtins.bytes | None = ..., + key_index: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "key_index", b"key_index", "participant_identity", b"participant_identity"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "key_index", b"key_index", "participant_identity", b"participant_identity"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "key_index", b"key_index", "participant_identity", b"participant_identity"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "key_index", b"key_index", "participant_identity", b"participant_identity"]) -> None: ... -Global___SetKeyRequest: _TypeAlias = SetKeyRequest # noqa: Y015 +global___SetKeyRequest = SetKeyRequest -@_typing.final -class SetKeyResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class SetKeyResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___SetKeyResponse: _TypeAlias = SetKeyResponse # noqa: Y015 - -@_typing.final -class RatchetKeyRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int - KEY_INDEX_FIELD_NUMBER: _builtins.int - participant_identity: _builtins.str - key_index: _builtins.int + +global___SetKeyResponse = SetKeyResponse + +@typing.final +class RatchetKeyRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + KEY_INDEX_FIELD_NUMBER: builtins.int + participant_identity: builtins.str + key_index: builtins.int def __init__( self, *, - participant_identity: _builtins.str | None = ..., - key_index: _builtins.int | None = ..., + participant_identity: builtins.str | None = ..., + key_index: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity"]) -> None: ... -Global___RatchetKeyRequest: _TypeAlias = RatchetKeyRequest # noqa: Y015 +global___RatchetKeyRequest = RatchetKeyRequest -@_typing.final -class RatchetKeyResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class RatchetKeyResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - NEW_KEY_FIELD_NUMBER: _builtins.int - new_key: _builtins.bytes + NEW_KEY_FIELD_NUMBER: builtins.int + new_key: builtins.bytes def __init__( self, *, - new_key: _builtins.bytes | None = ..., + new_key: builtins.bytes | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["new_key", b"new_key"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["new_key", b"new_key"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___RatchetKeyResponse: _TypeAlias = RatchetKeyResponse # noqa: Y015 - -@_typing.final -class GetKeyRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int - KEY_INDEX_FIELD_NUMBER: _builtins.int - participant_identity: _builtins.str - key_index: _builtins.int + def HasField(self, field_name: typing.Literal["new_key", b"new_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["new_key", b"new_key"]) -> None: ... + +global___RatchetKeyResponse = RatchetKeyResponse + +@typing.final +class GetKeyRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + KEY_INDEX_FIELD_NUMBER: builtins.int + participant_identity: builtins.str + key_index: builtins.int def __init__( self, *, - participant_identity: _builtins.str | None = ..., - key_index: _builtins.int | None = ..., + participant_identity: builtins.str | None = ..., + key_index: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity"]) -> None: ... -Global___GetKeyRequest: _TypeAlias = GetKeyRequest # noqa: Y015 +global___GetKeyRequest = GetKeyRequest -@_typing.final -class GetKeyResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class GetKeyResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - KEY_FIELD_NUMBER: _builtins.int - key: _builtins.bytes + KEY_FIELD_NUMBER: builtins.int + key: builtins.bytes def __init__( self, *, - key: _builtins.bytes | None = ..., + key: builtins.bytes | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___GetKeyResponse: _TypeAlias = GetKeyResponse # noqa: Y015 - -@_typing.final -class E2eeRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - ROOM_HANDLE_FIELD_NUMBER: _builtins.int - MANAGER_SET_ENABLED_FIELD_NUMBER: _builtins.int - MANAGER_GET_FRAME_CRYPTORS_FIELD_NUMBER: _builtins.int - CRYPTOR_SET_ENABLED_FIELD_NUMBER: _builtins.int - CRYPTOR_SET_KEY_INDEX_FIELD_NUMBER: _builtins.int - SET_SHARED_KEY_FIELD_NUMBER: _builtins.int - RATCHET_SHARED_KEY_FIELD_NUMBER: _builtins.int - GET_SHARED_KEY_FIELD_NUMBER: _builtins.int - SET_KEY_FIELD_NUMBER: _builtins.int - RATCHET_KEY_FIELD_NUMBER: _builtins.int - GET_KEY_FIELD_NUMBER: _builtins.int - room_handle: _builtins.int - @_builtins.property - def manager_set_enabled(self) -> Global___E2eeManagerSetEnabledRequest: ... - @_builtins.property - def manager_get_frame_cryptors(self) -> Global___E2eeManagerGetFrameCryptorsRequest: ... - @_builtins.property - def cryptor_set_enabled(self) -> Global___FrameCryptorSetEnabledRequest: ... - @_builtins.property - def cryptor_set_key_index(self) -> Global___FrameCryptorSetKeyIndexRequest: ... - @_builtins.property - def set_shared_key(self) -> Global___SetSharedKeyRequest: ... - @_builtins.property - def ratchet_shared_key(self) -> Global___RatchetSharedKeyRequest: ... - @_builtins.property - def get_shared_key(self) -> Global___GetSharedKeyRequest: ... - @_builtins.property - def set_key(self) -> Global___SetKeyRequest: ... - @_builtins.property - def ratchet_key(self) -> Global___RatchetKeyRequest: ... - @_builtins.property - def get_key(self) -> Global___GetKeyRequest: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key"]) -> None: ... + +global___GetKeyResponse = GetKeyResponse + +@typing.final +class E2eeRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ROOM_HANDLE_FIELD_NUMBER: builtins.int + MANAGER_SET_ENABLED_FIELD_NUMBER: builtins.int + MANAGER_GET_FRAME_CRYPTORS_FIELD_NUMBER: builtins.int + CRYPTOR_SET_ENABLED_FIELD_NUMBER: builtins.int + CRYPTOR_SET_KEY_INDEX_FIELD_NUMBER: builtins.int + SET_SHARED_KEY_FIELD_NUMBER: builtins.int + RATCHET_SHARED_KEY_FIELD_NUMBER: builtins.int + GET_SHARED_KEY_FIELD_NUMBER: builtins.int + SET_KEY_FIELD_NUMBER: builtins.int + RATCHET_KEY_FIELD_NUMBER: builtins.int + GET_KEY_FIELD_NUMBER: builtins.int + room_handle: builtins.int + @property + def manager_set_enabled(self) -> global___E2eeManagerSetEnabledRequest: ... + @property + def manager_get_frame_cryptors(self) -> global___E2eeManagerGetFrameCryptorsRequest: ... + @property + def cryptor_set_enabled(self) -> global___FrameCryptorSetEnabledRequest: ... + @property + def cryptor_set_key_index(self) -> global___FrameCryptorSetKeyIndexRequest: ... + @property + def set_shared_key(self) -> global___SetSharedKeyRequest: ... + @property + def ratchet_shared_key(self) -> global___RatchetSharedKeyRequest: ... + @property + def get_shared_key(self) -> global___GetSharedKeyRequest: ... + @property + def set_key(self) -> global___SetKeyRequest: ... + @property + def ratchet_key(self) -> global___RatchetKeyRequest: ... + @property + def get_key(self) -> global___GetKeyRequest: ... def __init__( self, *, - room_handle: _builtins.int | None = ..., - manager_set_enabled: Global___E2eeManagerSetEnabledRequest | None = ..., - manager_get_frame_cryptors: Global___E2eeManagerGetFrameCryptorsRequest | None = ..., - cryptor_set_enabled: Global___FrameCryptorSetEnabledRequest | None = ..., - cryptor_set_key_index: Global___FrameCryptorSetKeyIndexRequest | None = ..., - set_shared_key: Global___SetSharedKeyRequest | None = ..., - ratchet_shared_key: Global___RatchetSharedKeyRequest | None = ..., - get_shared_key: Global___GetSharedKeyRequest | None = ..., - set_key: Global___SetKeyRequest | None = ..., - ratchet_key: Global___RatchetKeyRequest | None = ..., - get_key: Global___GetKeyRequest | None = ..., + room_handle: builtins.int | None = ..., + manager_set_enabled: global___E2eeManagerSetEnabledRequest | None = ..., + manager_get_frame_cryptors: global___E2eeManagerGetFrameCryptorsRequest | None = ..., + cryptor_set_enabled: global___FrameCryptorSetEnabledRequest | None = ..., + cryptor_set_key_index: global___FrameCryptorSetKeyIndexRequest | None = ..., + set_shared_key: global___SetSharedKeyRequest | None = ..., + ratchet_shared_key: global___RatchetSharedKeyRequest | None = ..., + get_shared_key: global___GetSharedKeyRequest | None = ..., + set_key: global___SetKeyRequest | None = ..., + ratchet_key: global___RatchetKeyRequest | None = ..., + get_key: global___GetKeyRequest | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["cryptor_set_enabled", b"cryptor_set_enabled", "cryptor_set_key_index", b"cryptor_set_key_index", "get_key", b"get_key", "get_shared_key", b"get_shared_key", "manager_get_frame_cryptors", b"manager_get_frame_cryptors", "manager_set_enabled", b"manager_set_enabled", "message", b"message", "ratchet_key", b"ratchet_key", "ratchet_shared_key", b"ratchet_shared_key", "room_handle", b"room_handle", "set_key", b"set_key", "set_shared_key", b"set_shared_key"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["cryptor_set_enabled", b"cryptor_set_enabled", "cryptor_set_key_index", b"cryptor_set_key_index", "get_key", b"get_key", "get_shared_key", b"get_shared_key", "manager_get_frame_cryptors", b"manager_get_frame_cryptors", "manager_set_enabled", b"manager_set_enabled", "message", b"message", "ratchet_key", b"ratchet_key", "ratchet_shared_key", b"ratchet_shared_key", "room_handle", b"room_handle", "set_key", b"set_key", "set_shared_key", b"set_shared_key"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["manager_set_enabled", "manager_get_frame_cryptors", "cryptor_set_enabled", "cryptor_set_key_index", "set_shared_key", "ratchet_shared_key", "get_shared_key", "set_key", "ratchet_key", "get_key"] # noqa: Y015 - _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 - def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... - -Global___E2eeRequest: _TypeAlias = E2eeRequest # noqa: Y015 - -@_typing.final -class E2eeResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - MANAGER_SET_ENABLED_FIELD_NUMBER: _builtins.int - MANAGER_GET_FRAME_CRYPTORS_FIELD_NUMBER: _builtins.int - CRYPTOR_SET_ENABLED_FIELD_NUMBER: _builtins.int - CRYPTOR_SET_KEY_INDEX_FIELD_NUMBER: _builtins.int - SET_SHARED_KEY_FIELD_NUMBER: _builtins.int - RATCHET_SHARED_KEY_FIELD_NUMBER: _builtins.int - GET_SHARED_KEY_FIELD_NUMBER: _builtins.int - SET_KEY_FIELD_NUMBER: _builtins.int - RATCHET_KEY_FIELD_NUMBER: _builtins.int - GET_KEY_FIELD_NUMBER: _builtins.int - @_builtins.property - def manager_set_enabled(self) -> Global___E2eeManagerSetEnabledResponse: ... - @_builtins.property - def manager_get_frame_cryptors(self) -> Global___E2eeManagerGetFrameCryptorsResponse: ... - @_builtins.property - def cryptor_set_enabled(self) -> Global___FrameCryptorSetEnabledResponse: ... - @_builtins.property - def cryptor_set_key_index(self) -> Global___FrameCryptorSetKeyIndexResponse: ... - @_builtins.property - def set_shared_key(self) -> Global___SetSharedKeyResponse: ... - @_builtins.property - def ratchet_shared_key(self) -> Global___RatchetSharedKeyResponse: ... - @_builtins.property - def get_shared_key(self) -> Global___GetSharedKeyResponse: ... - @_builtins.property - def set_key(self) -> Global___SetKeyResponse: ... - @_builtins.property - def ratchet_key(self) -> Global___RatchetKeyResponse: ... - @_builtins.property - def get_key(self) -> Global___GetKeyResponse: ... + def HasField(self, field_name: typing.Literal["cryptor_set_enabled", b"cryptor_set_enabled", "cryptor_set_key_index", b"cryptor_set_key_index", "get_key", b"get_key", "get_shared_key", b"get_shared_key", "manager_get_frame_cryptors", b"manager_get_frame_cryptors", "manager_set_enabled", b"manager_set_enabled", "message", b"message", "ratchet_key", b"ratchet_key", "ratchet_shared_key", b"ratchet_shared_key", "room_handle", b"room_handle", "set_key", b"set_key", "set_shared_key", b"set_shared_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["cryptor_set_enabled", b"cryptor_set_enabled", "cryptor_set_key_index", b"cryptor_set_key_index", "get_key", b"get_key", "get_shared_key", b"get_shared_key", "manager_get_frame_cryptors", b"manager_get_frame_cryptors", "manager_set_enabled", b"manager_set_enabled", "message", b"message", "ratchet_key", b"ratchet_key", "ratchet_shared_key", b"ratchet_shared_key", "room_handle", b"room_handle", "set_key", b"set_key", "set_shared_key", b"set_shared_key"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["manager_set_enabled", "manager_get_frame_cryptors", "cryptor_set_enabled", "cryptor_set_key_index", "set_shared_key", "ratchet_shared_key", "get_shared_key", "set_key", "ratchet_key", "get_key"] | None: ... + +global___E2eeRequest = E2eeRequest + +@typing.final +class E2eeResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MANAGER_SET_ENABLED_FIELD_NUMBER: builtins.int + MANAGER_GET_FRAME_CRYPTORS_FIELD_NUMBER: builtins.int + CRYPTOR_SET_ENABLED_FIELD_NUMBER: builtins.int + CRYPTOR_SET_KEY_INDEX_FIELD_NUMBER: builtins.int + SET_SHARED_KEY_FIELD_NUMBER: builtins.int + RATCHET_SHARED_KEY_FIELD_NUMBER: builtins.int + GET_SHARED_KEY_FIELD_NUMBER: builtins.int + SET_KEY_FIELD_NUMBER: builtins.int + RATCHET_KEY_FIELD_NUMBER: builtins.int + GET_KEY_FIELD_NUMBER: builtins.int + @property + def manager_set_enabled(self) -> global___E2eeManagerSetEnabledResponse: ... + @property + def manager_get_frame_cryptors(self) -> global___E2eeManagerGetFrameCryptorsResponse: ... + @property + def cryptor_set_enabled(self) -> global___FrameCryptorSetEnabledResponse: ... + @property + def cryptor_set_key_index(self) -> global___FrameCryptorSetKeyIndexResponse: ... + @property + def set_shared_key(self) -> global___SetSharedKeyResponse: ... + @property + def ratchet_shared_key(self) -> global___RatchetSharedKeyResponse: ... + @property + def get_shared_key(self) -> global___GetSharedKeyResponse: ... + @property + def set_key(self) -> global___SetKeyResponse: ... + @property + def ratchet_key(self) -> global___RatchetKeyResponse: ... + @property + def get_key(self) -> global___GetKeyResponse: ... def __init__( self, *, - manager_set_enabled: Global___E2eeManagerSetEnabledResponse | None = ..., - manager_get_frame_cryptors: Global___E2eeManagerGetFrameCryptorsResponse | None = ..., - cryptor_set_enabled: Global___FrameCryptorSetEnabledResponse | None = ..., - cryptor_set_key_index: Global___FrameCryptorSetKeyIndexResponse | None = ..., - set_shared_key: Global___SetSharedKeyResponse | None = ..., - ratchet_shared_key: Global___RatchetSharedKeyResponse | None = ..., - get_shared_key: Global___GetSharedKeyResponse | None = ..., - set_key: Global___SetKeyResponse | None = ..., - ratchet_key: Global___RatchetKeyResponse | None = ..., - get_key: Global___GetKeyResponse | None = ..., + manager_set_enabled: global___E2eeManagerSetEnabledResponse | None = ..., + manager_get_frame_cryptors: global___E2eeManagerGetFrameCryptorsResponse | None = ..., + cryptor_set_enabled: global___FrameCryptorSetEnabledResponse | None = ..., + cryptor_set_key_index: global___FrameCryptorSetKeyIndexResponse | None = ..., + set_shared_key: global___SetSharedKeyResponse | None = ..., + ratchet_shared_key: global___RatchetSharedKeyResponse | None = ..., + get_shared_key: global___GetSharedKeyResponse | None = ..., + set_key: global___SetKeyResponse | None = ..., + ratchet_key: global___RatchetKeyResponse | None = ..., + get_key: global___GetKeyResponse | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["cryptor_set_enabled", b"cryptor_set_enabled", "cryptor_set_key_index", b"cryptor_set_key_index", "get_key", b"get_key", "get_shared_key", b"get_shared_key", "manager_get_frame_cryptors", b"manager_get_frame_cryptors", "manager_set_enabled", b"manager_set_enabled", "message", b"message", "ratchet_key", b"ratchet_key", "ratchet_shared_key", b"ratchet_shared_key", "set_key", b"set_key", "set_shared_key", b"set_shared_key"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["cryptor_set_enabled", b"cryptor_set_enabled", "cryptor_set_key_index", b"cryptor_set_key_index", "get_key", b"get_key", "get_shared_key", b"get_shared_key", "manager_get_frame_cryptors", b"manager_get_frame_cryptors", "manager_set_enabled", b"manager_set_enabled", "message", b"message", "ratchet_key", b"ratchet_key", "ratchet_shared_key", b"ratchet_shared_key", "set_key", b"set_key", "set_shared_key", b"set_shared_key"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["manager_set_enabled", "manager_get_frame_cryptors", "cryptor_set_enabled", "cryptor_set_key_index", "set_shared_key", "ratchet_shared_key", "get_shared_key", "set_key", "ratchet_key", "get_key"] # noqa: Y015 - _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 - def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... - -Global___E2eeResponse: _TypeAlias = E2eeResponse # noqa: Y015 + def HasField(self, field_name: typing.Literal["cryptor_set_enabled", b"cryptor_set_enabled", "cryptor_set_key_index", b"cryptor_set_key_index", "get_key", b"get_key", "get_shared_key", b"get_shared_key", "manager_get_frame_cryptors", b"manager_get_frame_cryptors", "manager_set_enabled", b"manager_set_enabled", "message", b"message", "ratchet_key", b"ratchet_key", "ratchet_shared_key", b"ratchet_shared_key", "set_key", b"set_key", "set_shared_key", b"set_shared_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["cryptor_set_enabled", b"cryptor_set_enabled", "cryptor_set_key_index", b"cryptor_set_key_index", "get_key", b"get_key", "get_shared_key", b"get_shared_key", "manager_get_frame_cryptors", b"manager_get_frame_cryptors", "manager_set_enabled", b"manager_set_enabled", "message", b"message", "ratchet_key", b"ratchet_key", "ratchet_shared_key", b"ratchet_shared_key", "set_key", b"set_key", "set_shared_key", b"set_shared_key"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["manager_set_enabled", "manager_get_frame_cryptors", "cryptor_set_enabled", "cryptor_set_key_index", "set_shared_key", "ratchet_shared_key", "get_shared_key", "set_key", "ratchet_key", "get_key"] | None: ... + +global___E2eeResponse = E2eeResponse diff --git a/livekit-rtc/livekit/rtc/_proto/ffi_pb2.py b/livekit-rtc/livekit/rtc/_proto/ffi_pb2.py index 3ad7807a..e1154526 100644 --- a/livekit-rtc/livekit/rtc/_proto/ffi_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/ffi_pb2.py @@ -1,22 +1,12 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE # source: ffi.proto -# Protobuf Python Version: 7.34.1 +# Protobuf Python Version: 4.25.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 7, - 34, - 1, - '', - 'ffi.proto' -) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -38,8 +28,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ffi_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None _globals['DESCRIPTOR']._serialized_options = b'\252\002\rLiveKit.Proto' _globals['_LOGLEVEL']._serialized_start=14376 _globals['_LOGLEVEL']._serialized_end=14459 diff --git a/livekit-rtc/livekit/rtc/_proto/ffi_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/ffi_pb2.pyi index 3a4acbcc..04909555 100644 --- a/livekit-rtc/livekit/rtc/_proto/ffi_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/ffi_pb2.pyi @@ -16,37 +16,37 @@ See the License for the specific language governing permissions and limitations under the License. """ -from collections import abc as _abc -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from . import audio_frame_pb2 as _audio_frame_pb2 -import builtins as _builtins -from . import data_stream_pb2 as _data_stream_pb2 -from . import data_track_pb2 as _data_track_pb2 -from . import e2ee_pb2 as _e2ee_pb2 -from . import room_pb2 as _room_pb2 -from . import rpc_pb2 as _rpc_pb2 +from . import audio_frame_pb2 +import builtins +import collections.abc +from . import data_stream_pb2 +from . import data_track_pb2 +from . import e2ee_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +from . import room_pb2 +from . import rpc_pb2 import sys -from . import track_pb2 as _track_pb2 -from . import track_publication_pb2 as _track_publication_pb2 -import typing as _typing -from . import video_frame_pb2 as _video_frame_pb2 +from . import track_pb2 +from . import track_publication_pb2 +import typing +from . import video_frame_pb2 -if sys.version_info >= (3, 11): - from typing import TypeAlias as _TypeAlias, Never as _Never +if sys.version_info >= (3, 10): + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias, Never as _Never + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class _LogLevel: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _LogLevelEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_LogLevel.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _LogLevelEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_LogLevel.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor LOG_ERROR: _LogLevel.ValueType # 0 LOG_WARN: _LogLevel.ValueType # 1 LOG_INFO: _LogLevel.ValueType # 2 @@ -60,10 +60,10 @@ LOG_WARN: LogLevel.ValueType # 1 LOG_INFO: LogLevel.ValueType # 2 LOG_DEBUG: LogLevel.ValueType # 3 LOG_TRACE: LogLevel.ValueType # 4 -Global___LogLevel: _TypeAlias = LogLevel # noqa: Y015 +global___LogLevel = LogLevel -@_typing.final -class FfiRequest(_message.Message): +@typing.final +class FfiRequest(google.protobuf.message.Message): """**How is the livekit-ffi working: We refer as the ffi server the Rust server that is running the LiveKit client implementation, and we refer as the ffi client the foreign language that commumicates with the ffi server. (e.g Python SDK, Unity SDK, etc...) @@ -94,1023 +94,992 @@ class FfiRequest(_message.Message): We always expect a response (FFIResponse, even if it's empty) """ - DESCRIPTOR: _descriptor.Descriptor - - DISPOSE_FIELD_NUMBER: _builtins.int - CONNECT_FIELD_NUMBER: _builtins.int - DISCONNECT_FIELD_NUMBER: _builtins.int - PUBLISH_TRACK_FIELD_NUMBER: _builtins.int - UNPUBLISH_TRACK_FIELD_NUMBER: _builtins.int - PUBLISH_DATA_FIELD_NUMBER: _builtins.int - SET_SUBSCRIBED_FIELD_NUMBER: _builtins.int - SET_LOCAL_METADATA_FIELD_NUMBER: _builtins.int - SET_LOCAL_NAME_FIELD_NUMBER: _builtins.int - SET_LOCAL_ATTRIBUTES_FIELD_NUMBER: _builtins.int - GET_SESSION_STATS_FIELD_NUMBER: _builtins.int - PUBLISH_TRANSCRIPTION_FIELD_NUMBER: _builtins.int - PUBLISH_SIP_DTMF_FIELD_NUMBER: _builtins.int - CREATE_VIDEO_TRACK_FIELD_NUMBER: _builtins.int - CREATE_AUDIO_TRACK_FIELD_NUMBER: _builtins.int - LOCAL_TRACK_MUTE_FIELD_NUMBER: _builtins.int - ENABLE_REMOTE_TRACK_FIELD_NUMBER: _builtins.int - GET_STATS_FIELD_NUMBER: _builtins.int - SET_TRACK_SUBSCRIPTION_PERMISSIONS_FIELD_NUMBER: _builtins.int - NEW_VIDEO_STREAM_FIELD_NUMBER: _builtins.int - NEW_VIDEO_SOURCE_FIELD_NUMBER: _builtins.int - CAPTURE_VIDEO_FRAME_FIELD_NUMBER: _builtins.int - VIDEO_CONVERT_FIELD_NUMBER: _builtins.int - VIDEO_STREAM_FROM_PARTICIPANT_FIELD_NUMBER: _builtins.int - NEW_AUDIO_STREAM_FIELD_NUMBER: _builtins.int - NEW_AUDIO_SOURCE_FIELD_NUMBER: _builtins.int - CAPTURE_AUDIO_FRAME_FIELD_NUMBER: _builtins.int - CLEAR_AUDIO_BUFFER_FIELD_NUMBER: _builtins.int - NEW_AUDIO_RESAMPLER_FIELD_NUMBER: _builtins.int - REMIX_AND_RESAMPLE_FIELD_NUMBER: _builtins.int - E2EE_FIELD_NUMBER: _builtins.int - AUDIO_STREAM_FROM_PARTICIPANT_FIELD_NUMBER: _builtins.int - NEW_SOX_RESAMPLER_FIELD_NUMBER: _builtins.int - PUSH_SOX_RESAMPLER_FIELD_NUMBER: _builtins.int - FLUSH_SOX_RESAMPLER_FIELD_NUMBER: _builtins.int - SEND_CHAT_MESSAGE_FIELD_NUMBER: _builtins.int - EDIT_CHAT_MESSAGE_FIELD_NUMBER: _builtins.int - PERFORM_RPC_FIELD_NUMBER: _builtins.int - REGISTER_RPC_METHOD_FIELD_NUMBER: _builtins.int - UNREGISTER_RPC_METHOD_FIELD_NUMBER: _builtins.int - RPC_METHOD_INVOCATION_RESPONSE_FIELD_NUMBER: _builtins.int - ENABLE_REMOTE_TRACK_PUBLICATION_FIELD_NUMBER: _builtins.int - UPDATE_REMOTE_TRACK_PUBLICATION_DIMENSION_FIELD_NUMBER: _builtins.int - SEND_STREAM_HEADER_FIELD_NUMBER: _builtins.int - SEND_STREAM_CHUNK_FIELD_NUMBER: _builtins.int - SEND_STREAM_TRAILER_FIELD_NUMBER: _builtins.int - SET_DATA_CHANNEL_BUFFERED_AMOUNT_LOW_THRESHOLD_FIELD_NUMBER: _builtins.int - LOAD_AUDIO_FILTER_PLUGIN_FIELD_NUMBER: _builtins.int - NEW_APM_FIELD_NUMBER: _builtins.int - APM_PROCESS_STREAM_FIELD_NUMBER: _builtins.int - APM_PROCESS_REVERSE_STREAM_FIELD_NUMBER: _builtins.int - APM_SET_STREAM_DELAY_FIELD_NUMBER: _builtins.int - BYTE_READ_INCREMENTAL_FIELD_NUMBER: _builtins.int - BYTE_READ_ALL_FIELD_NUMBER: _builtins.int - BYTE_WRITE_TO_FILE_FIELD_NUMBER: _builtins.int - TEXT_READ_INCREMENTAL_FIELD_NUMBER: _builtins.int - TEXT_READ_ALL_FIELD_NUMBER: _builtins.int - SEND_FILE_FIELD_NUMBER: _builtins.int - SEND_TEXT_FIELD_NUMBER: _builtins.int - BYTE_STREAM_OPEN_FIELD_NUMBER: _builtins.int - BYTE_STREAM_WRITE_FIELD_NUMBER: _builtins.int - BYTE_STREAM_CLOSE_FIELD_NUMBER: _builtins.int - TEXT_STREAM_OPEN_FIELD_NUMBER: _builtins.int - TEXT_STREAM_WRITE_FIELD_NUMBER: _builtins.int - TEXT_STREAM_CLOSE_FIELD_NUMBER: _builtins.int - SEND_BYTES_FIELD_NUMBER: _builtins.int - SET_REMOTE_TRACK_PUBLICATION_QUALITY_FIELD_NUMBER: _builtins.int - PUBLISH_DATA_TRACK_FIELD_NUMBER: _builtins.int - LOCAL_DATA_TRACK_TRY_PUSH_FIELD_NUMBER: _builtins.int - LOCAL_DATA_TRACK_UNPUBLISH_FIELD_NUMBER: _builtins.int - LOCAL_DATA_TRACK_IS_PUBLISHED_FIELD_NUMBER: _builtins.int - SUBSCRIBE_DATA_TRACK_FIELD_NUMBER: _builtins.int - REMOTE_DATA_TRACK_IS_PUBLISHED_FIELD_NUMBER: _builtins.int - DATA_TRACK_STREAM_READ_FIELD_NUMBER: _builtins.int - SIMULATE_SCENARIO_FIELD_NUMBER: _builtins.int - @_builtins.property - def dispose(self) -> Global___DisposeRequest: ... - @_builtins.property - def connect(self) -> _room_pb2.ConnectRequest: + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DISPOSE_FIELD_NUMBER: builtins.int + CONNECT_FIELD_NUMBER: builtins.int + DISCONNECT_FIELD_NUMBER: builtins.int + PUBLISH_TRACK_FIELD_NUMBER: builtins.int + UNPUBLISH_TRACK_FIELD_NUMBER: builtins.int + PUBLISH_DATA_FIELD_NUMBER: builtins.int + SET_SUBSCRIBED_FIELD_NUMBER: builtins.int + SET_LOCAL_METADATA_FIELD_NUMBER: builtins.int + SET_LOCAL_NAME_FIELD_NUMBER: builtins.int + SET_LOCAL_ATTRIBUTES_FIELD_NUMBER: builtins.int + GET_SESSION_STATS_FIELD_NUMBER: builtins.int + PUBLISH_TRANSCRIPTION_FIELD_NUMBER: builtins.int + PUBLISH_SIP_DTMF_FIELD_NUMBER: builtins.int + CREATE_VIDEO_TRACK_FIELD_NUMBER: builtins.int + CREATE_AUDIO_TRACK_FIELD_NUMBER: builtins.int + LOCAL_TRACK_MUTE_FIELD_NUMBER: builtins.int + ENABLE_REMOTE_TRACK_FIELD_NUMBER: builtins.int + GET_STATS_FIELD_NUMBER: builtins.int + SET_TRACK_SUBSCRIPTION_PERMISSIONS_FIELD_NUMBER: builtins.int + NEW_VIDEO_STREAM_FIELD_NUMBER: builtins.int + NEW_VIDEO_SOURCE_FIELD_NUMBER: builtins.int + CAPTURE_VIDEO_FRAME_FIELD_NUMBER: builtins.int + VIDEO_CONVERT_FIELD_NUMBER: builtins.int + VIDEO_STREAM_FROM_PARTICIPANT_FIELD_NUMBER: builtins.int + NEW_AUDIO_STREAM_FIELD_NUMBER: builtins.int + NEW_AUDIO_SOURCE_FIELD_NUMBER: builtins.int + CAPTURE_AUDIO_FRAME_FIELD_NUMBER: builtins.int + CLEAR_AUDIO_BUFFER_FIELD_NUMBER: builtins.int + NEW_AUDIO_RESAMPLER_FIELD_NUMBER: builtins.int + REMIX_AND_RESAMPLE_FIELD_NUMBER: builtins.int + E2EE_FIELD_NUMBER: builtins.int + AUDIO_STREAM_FROM_PARTICIPANT_FIELD_NUMBER: builtins.int + NEW_SOX_RESAMPLER_FIELD_NUMBER: builtins.int + PUSH_SOX_RESAMPLER_FIELD_NUMBER: builtins.int + FLUSH_SOX_RESAMPLER_FIELD_NUMBER: builtins.int + SEND_CHAT_MESSAGE_FIELD_NUMBER: builtins.int + EDIT_CHAT_MESSAGE_FIELD_NUMBER: builtins.int + PERFORM_RPC_FIELD_NUMBER: builtins.int + REGISTER_RPC_METHOD_FIELD_NUMBER: builtins.int + UNREGISTER_RPC_METHOD_FIELD_NUMBER: builtins.int + RPC_METHOD_INVOCATION_RESPONSE_FIELD_NUMBER: builtins.int + ENABLE_REMOTE_TRACK_PUBLICATION_FIELD_NUMBER: builtins.int + UPDATE_REMOTE_TRACK_PUBLICATION_DIMENSION_FIELD_NUMBER: builtins.int + SEND_STREAM_HEADER_FIELD_NUMBER: builtins.int + SEND_STREAM_CHUNK_FIELD_NUMBER: builtins.int + SEND_STREAM_TRAILER_FIELD_NUMBER: builtins.int + SET_DATA_CHANNEL_BUFFERED_AMOUNT_LOW_THRESHOLD_FIELD_NUMBER: builtins.int + LOAD_AUDIO_FILTER_PLUGIN_FIELD_NUMBER: builtins.int + NEW_APM_FIELD_NUMBER: builtins.int + APM_PROCESS_STREAM_FIELD_NUMBER: builtins.int + APM_PROCESS_REVERSE_STREAM_FIELD_NUMBER: builtins.int + APM_SET_STREAM_DELAY_FIELD_NUMBER: builtins.int + BYTE_READ_INCREMENTAL_FIELD_NUMBER: builtins.int + BYTE_READ_ALL_FIELD_NUMBER: builtins.int + BYTE_WRITE_TO_FILE_FIELD_NUMBER: builtins.int + TEXT_READ_INCREMENTAL_FIELD_NUMBER: builtins.int + TEXT_READ_ALL_FIELD_NUMBER: builtins.int + SEND_FILE_FIELD_NUMBER: builtins.int + SEND_TEXT_FIELD_NUMBER: builtins.int + BYTE_STREAM_OPEN_FIELD_NUMBER: builtins.int + BYTE_STREAM_WRITE_FIELD_NUMBER: builtins.int + BYTE_STREAM_CLOSE_FIELD_NUMBER: builtins.int + TEXT_STREAM_OPEN_FIELD_NUMBER: builtins.int + TEXT_STREAM_WRITE_FIELD_NUMBER: builtins.int + TEXT_STREAM_CLOSE_FIELD_NUMBER: builtins.int + SEND_BYTES_FIELD_NUMBER: builtins.int + SET_REMOTE_TRACK_PUBLICATION_QUALITY_FIELD_NUMBER: builtins.int + PUBLISH_DATA_TRACK_FIELD_NUMBER: builtins.int + LOCAL_DATA_TRACK_TRY_PUSH_FIELD_NUMBER: builtins.int + LOCAL_DATA_TRACK_UNPUBLISH_FIELD_NUMBER: builtins.int + LOCAL_DATA_TRACK_IS_PUBLISHED_FIELD_NUMBER: builtins.int + SUBSCRIBE_DATA_TRACK_FIELD_NUMBER: builtins.int + REMOTE_DATA_TRACK_IS_PUBLISHED_FIELD_NUMBER: builtins.int + DATA_TRACK_STREAM_READ_FIELD_NUMBER: builtins.int + SIMULATE_SCENARIO_FIELD_NUMBER: builtins.int + @property + def dispose(self) -> global___DisposeRequest: ... + @property + def connect(self) -> room_pb2.ConnectRequest: """Room""" - @_builtins.property - def disconnect(self) -> _room_pb2.DisconnectRequest: ... - @_builtins.property - def publish_track(self) -> _room_pb2.PublishTrackRequest: ... - @_builtins.property - def unpublish_track(self) -> _room_pb2.UnpublishTrackRequest: ... - @_builtins.property - def publish_data(self) -> _room_pb2.PublishDataRequest: ... - @_builtins.property - def set_subscribed(self) -> _room_pb2.SetSubscribedRequest: ... - @_builtins.property - def set_local_metadata(self) -> _room_pb2.SetLocalMetadataRequest: ... - @_builtins.property - def set_local_name(self) -> _room_pb2.SetLocalNameRequest: ... - @_builtins.property - def set_local_attributes(self) -> _room_pb2.SetLocalAttributesRequest: ... - @_builtins.property - def get_session_stats(self) -> _room_pb2.GetSessionStatsRequest: ... - @_builtins.property - def publish_transcription(self) -> _room_pb2.PublishTranscriptionRequest: ... - @_builtins.property - def publish_sip_dtmf(self) -> _room_pb2.PublishSipDtmfRequest: ... - @_builtins.property - def create_video_track(self) -> _track_pb2.CreateVideoTrackRequest: + @property + def disconnect(self) -> room_pb2.DisconnectRequest: ... + @property + def publish_track(self) -> room_pb2.PublishTrackRequest: ... + @property + def unpublish_track(self) -> room_pb2.UnpublishTrackRequest: ... + @property + def publish_data(self) -> room_pb2.PublishDataRequest: ... + @property + def set_subscribed(self) -> room_pb2.SetSubscribedRequest: ... + @property + def set_local_metadata(self) -> room_pb2.SetLocalMetadataRequest: ... + @property + def set_local_name(self) -> room_pb2.SetLocalNameRequest: ... + @property + def set_local_attributes(self) -> room_pb2.SetLocalAttributesRequest: ... + @property + def get_session_stats(self) -> room_pb2.GetSessionStatsRequest: ... + @property + def publish_transcription(self) -> room_pb2.PublishTranscriptionRequest: ... + @property + def publish_sip_dtmf(self) -> room_pb2.PublishSipDtmfRequest: ... + @property + def create_video_track(self) -> track_pb2.CreateVideoTrackRequest: """Track""" - @_builtins.property - def create_audio_track(self) -> _track_pb2.CreateAudioTrackRequest: ... - @_builtins.property - def local_track_mute(self) -> _track_pb2.LocalTrackMuteRequest: ... - @_builtins.property - def enable_remote_track(self) -> _track_pb2.EnableRemoteTrackRequest: ... - @_builtins.property - def get_stats(self) -> _track_pb2.GetStatsRequest: ... - @_builtins.property - def set_track_subscription_permissions(self) -> _track_pb2.SetTrackSubscriptionPermissionsRequest: ... - @_builtins.property - def new_video_stream(self) -> _video_frame_pb2.NewVideoStreamRequest: + @property + def create_audio_track(self) -> track_pb2.CreateAudioTrackRequest: ... + @property + def local_track_mute(self) -> track_pb2.LocalTrackMuteRequest: ... + @property + def enable_remote_track(self) -> track_pb2.EnableRemoteTrackRequest: ... + @property + def get_stats(self) -> track_pb2.GetStatsRequest: ... + @property + def set_track_subscription_permissions(self) -> track_pb2.SetTrackSubscriptionPermissionsRequest: ... + @property + def new_video_stream(self) -> video_frame_pb2.NewVideoStreamRequest: """Video""" - @_builtins.property - def new_video_source(self) -> _video_frame_pb2.NewVideoSourceRequest: ... - @_builtins.property - def capture_video_frame(self) -> _video_frame_pb2.CaptureVideoFrameRequest: ... - @_builtins.property - def video_convert(self) -> _video_frame_pb2.VideoConvertRequest: ... - @_builtins.property - def video_stream_from_participant(self) -> _video_frame_pb2.VideoStreamFromParticipantRequest: ... - @_builtins.property - def new_audio_stream(self) -> _audio_frame_pb2.NewAudioStreamRequest: + @property + def new_video_source(self) -> video_frame_pb2.NewVideoSourceRequest: ... + @property + def capture_video_frame(self) -> video_frame_pb2.CaptureVideoFrameRequest: ... + @property + def video_convert(self) -> video_frame_pb2.VideoConvertRequest: ... + @property + def video_stream_from_participant(self) -> video_frame_pb2.VideoStreamFromParticipantRequest: ... + @property + def new_audio_stream(self) -> audio_frame_pb2.NewAudioStreamRequest: """Audio""" - @_builtins.property - def new_audio_source(self) -> _audio_frame_pb2.NewAudioSourceRequest: ... - @_builtins.property - def capture_audio_frame(self) -> _audio_frame_pb2.CaptureAudioFrameRequest: ... - @_builtins.property - def clear_audio_buffer(self) -> _audio_frame_pb2.ClearAudioBufferRequest: ... - @_builtins.property - def new_audio_resampler(self) -> _audio_frame_pb2.NewAudioResamplerRequest: ... - @_builtins.property - def remix_and_resample(self) -> _audio_frame_pb2.RemixAndResampleRequest: ... - @_builtins.property - def e2ee(self) -> _e2ee_pb2.E2eeRequest: ... - @_builtins.property - def audio_stream_from_participant(self) -> _audio_frame_pb2.AudioStreamFromParticipantRequest: ... - @_builtins.property - def new_sox_resampler(self) -> _audio_frame_pb2.NewSoxResamplerRequest: ... - @_builtins.property - def push_sox_resampler(self) -> _audio_frame_pb2.PushSoxResamplerRequest: ... - @_builtins.property - def flush_sox_resampler(self) -> _audio_frame_pb2.FlushSoxResamplerRequest: ... - @_builtins.property - def send_chat_message(self) -> _room_pb2.SendChatMessageRequest: ... - @_builtins.property - def edit_chat_message(self) -> _room_pb2.EditChatMessageRequest: ... - @_builtins.property - def perform_rpc(self) -> _rpc_pb2.PerformRpcRequest: + @property + def new_audio_source(self) -> audio_frame_pb2.NewAudioSourceRequest: ... + @property + def capture_audio_frame(self) -> audio_frame_pb2.CaptureAudioFrameRequest: ... + @property + def clear_audio_buffer(self) -> audio_frame_pb2.ClearAudioBufferRequest: ... + @property + def new_audio_resampler(self) -> audio_frame_pb2.NewAudioResamplerRequest: ... + @property + def remix_and_resample(self) -> audio_frame_pb2.RemixAndResampleRequest: ... + @property + def e2ee(self) -> e2ee_pb2.E2eeRequest: ... + @property + def audio_stream_from_participant(self) -> audio_frame_pb2.AudioStreamFromParticipantRequest: ... + @property + def new_sox_resampler(self) -> audio_frame_pb2.NewSoxResamplerRequest: ... + @property + def push_sox_resampler(self) -> audio_frame_pb2.PushSoxResamplerRequest: ... + @property + def flush_sox_resampler(self) -> audio_frame_pb2.FlushSoxResamplerRequest: ... + @property + def send_chat_message(self) -> room_pb2.SendChatMessageRequest: ... + @property + def edit_chat_message(self) -> room_pb2.EditChatMessageRequest: ... + @property + def perform_rpc(self) -> rpc_pb2.PerformRpcRequest: """RPC""" - @_builtins.property - def register_rpc_method(self) -> _rpc_pb2.RegisterRpcMethodRequest: ... - @_builtins.property - def unregister_rpc_method(self) -> _rpc_pb2.UnregisterRpcMethodRequest: ... - @_builtins.property - def rpc_method_invocation_response(self) -> _rpc_pb2.RpcMethodInvocationResponseRequest: ... - @_builtins.property - def enable_remote_track_publication(self) -> _track_publication_pb2.EnableRemoteTrackPublicationRequest: + @property + def register_rpc_method(self) -> rpc_pb2.RegisterRpcMethodRequest: ... + @property + def unregister_rpc_method(self) -> rpc_pb2.UnregisterRpcMethodRequest: ... + @property + def rpc_method_invocation_response(self) -> rpc_pb2.RpcMethodInvocationResponseRequest: ... + @property + def enable_remote_track_publication(self) -> track_publication_pb2.EnableRemoteTrackPublicationRequest: """Track Publication""" - @_builtins.property - def update_remote_track_publication_dimension(self) -> _track_publication_pb2.UpdateRemoteTrackPublicationDimensionRequest: ... - @_builtins.property - def send_stream_header(self) -> _room_pb2.SendStreamHeaderRequest: + @property + def update_remote_track_publication_dimension(self) -> track_publication_pb2.UpdateRemoteTrackPublicationDimensionRequest: ... + @property + def send_stream_header(self) -> room_pb2.SendStreamHeaderRequest: """Data Streams (low level)""" - @_builtins.property - def send_stream_chunk(self) -> _room_pb2.SendStreamChunkRequest: ... - @_builtins.property - def send_stream_trailer(self) -> _room_pb2.SendStreamTrailerRequest: ... - @_builtins.property - def set_data_channel_buffered_amount_low_threshold(self) -> _room_pb2.SetDataChannelBufferedAmountLowThresholdRequest: + @property + def send_stream_chunk(self) -> room_pb2.SendStreamChunkRequest: ... + @property + def send_stream_trailer(self) -> room_pb2.SendStreamTrailerRequest: ... + @property + def set_data_channel_buffered_amount_low_threshold(self) -> room_pb2.SetDataChannelBufferedAmountLowThresholdRequest: """Data Channel""" - @_builtins.property - def load_audio_filter_plugin(self) -> _audio_frame_pb2.LoadAudioFilterPluginRequest: + @property + def load_audio_filter_plugin(self) -> audio_frame_pb2.LoadAudioFilterPluginRequest: """Audio Filter Plugin""" - @_builtins.property - def new_apm(self) -> _audio_frame_pb2.NewApmRequest: ... - @_builtins.property - def apm_process_stream(self) -> _audio_frame_pb2.ApmProcessStreamRequest: ... - @_builtins.property - def apm_process_reverse_stream(self) -> _audio_frame_pb2.ApmProcessReverseStreamRequest: ... - @_builtins.property - def apm_set_stream_delay(self) -> _audio_frame_pb2.ApmSetStreamDelayRequest: ... - @_builtins.property - def byte_read_incremental(self) -> _data_stream_pb2.ByteStreamReaderReadIncrementalRequest: + @property + def new_apm(self) -> audio_frame_pb2.NewApmRequest: ... + @property + def apm_process_stream(self) -> audio_frame_pb2.ApmProcessStreamRequest: ... + @property + def apm_process_reverse_stream(self) -> audio_frame_pb2.ApmProcessReverseStreamRequest: ... + @property + def apm_set_stream_delay(self) -> audio_frame_pb2.ApmSetStreamDelayRequest: ... + @property + def byte_read_incremental(self) -> data_stream_pb2.ByteStreamReaderReadIncrementalRequest: """Data Streams (high level)""" - @_builtins.property - def byte_read_all(self) -> _data_stream_pb2.ByteStreamReaderReadAllRequest: ... - @_builtins.property - def byte_write_to_file(self) -> _data_stream_pb2.ByteStreamReaderWriteToFileRequest: ... - @_builtins.property - def text_read_incremental(self) -> _data_stream_pb2.TextStreamReaderReadIncrementalRequest: ... - @_builtins.property - def text_read_all(self) -> _data_stream_pb2.TextStreamReaderReadAllRequest: ... - @_builtins.property - def send_file(self) -> _data_stream_pb2.StreamSendFileRequest: ... - @_builtins.property - def send_text(self) -> _data_stream_pb2.StreamSendTextRequest: ... - @_builtins.property - def byte_stream_open(self) -> _data_stream_pb2.ByteStreamOpenRequest: ... - @_builtins.property - def byte_stream_write(self) -> _data_stream_pb2.ByteStreamWriterWriteRequest: ... - @_builtins.property - def byte_stream_close(self) -> _data_stream_pb2.ByteStreamWriterCloseRequest: ... - @_builtins.property - def text_stream_open(self) -> _data_stream_pb2.TextStreamOpenRequest: ... - @_builtins.property - def text_stream_write(self) -> _data_stream_pb2.TextStreamWriterWriteRequest: ... - @_builtins.property - def text_stream_close(self) -> _data_stream_pb2.TextStreamWriterCloseRequest: ... - @_builtins.property - def send_bytes(self) -> _data_stream_pb2.StreamSendBytesRequest: ... - @_builtins.property - def set_remote_track_publication_quality(self) -> _track_publication_pb2.SetRemoteTrackPublicationQualityRequest: ... - @_builtins.property - def publish_data_track(self) -> _data_track_pb2.PublishDataTrackRequest: + @property + def byte_read_all(self) -> data_stream_pb2.ByteStreamReaderReadAllRequest: ... + @property + def byte_write_to_file(self) -> data_stream_pb2.ByteStreamReaderWriteToFileRequest: ... + @property + def text_read_incremental(self) -> data_stream_pb2.TextStreamReaderReadIncrementalRequest: ... + @property + def text_read_all(self) -> data_stream_pb2.TextStreamReaderReadAllRequest: ... + @property + def send_file(self) -> data_stream_pb2.StreamSendFileRequest: ... + @property + def send_text(self) -> data_stream_pb2.StreamSendTextRequest: ... + @property + def byte_stream_open(self) -> data_stream_pb2.ByteStreamOpenRequest: ... + @property + def byte_stream_write(self) -> data_stream_pb2.ByteStreamWriterWriteRequest: ... + @property + def byte_stream_close(self) -> data_stream_pb2.ByteStreamWriterCloseRequest: ... + @property + def text_stream_open(self) -> data_stream_pb2.TextStreamOpenRequest: ... + @property + def text_stream_write(self) -> data_stream_pb2.TextStreamWriterWriteRequest: ... + @property + def text_stream_close(self) -> data_stream_pb2.TextStreamWriterCloseRequest: ... + @property + def send_bytes(self) -> data_stream_pb2.StreamSendBytesRequest: ... + @property + def set_remote_track_publication_quality(self) -> track_publication_pb2.SetRemoteTrackPublicationQualityRequest: ... + @property + def publish_data_track(self) -> data_track_pb2.PublishDataTrackRequest: """Data Track (local)""" - @_builtins.property - def local_data_track_try_push(self) -> _data_track_pb2.LocalDataTrackTryPushRequest: ... - @_builtins.property - def local_data_track_unpublish(self) -> _data_track_pb2.LocalDataTrackUnpublishRequest: ... - @_builtins.property - def local_data_track_is_published(self) -> _data_track_pb2.LocalDataTrackIsPublishedRequest: ... - @_builtins.property - def subscribe_data_track(self) -> _data_track_pb2.SubscribeDataTrackRequest: + @property + def local_data_track_try_push(self) -> data_track_pb2.LocalDataTrackTryPushRequest: ... + @property + def local_data_track_unpublish(self) -> data_track_pb2.LocalDataTrackUnpublishRequest: ... + @property + def local_data_track_is_published(self) -> data_track_pb2.LocalDataTrackIsPublishedRequest: ... + @property + def subscribe_data_track(self) -> data_track_pb2.SubscribeDataTrackRequest: """Data Track (remote)""" - @_builtins.property - def remote_data_track_is_published(self) -> _data_track_pb2.RemoteDataTrackIsPublishedRequest: ... - @_builtins.property - def data_track_stream_read(self) -> _data_track_pb2.DataTrackStreamReadRequest: ... - @_builtins.property - def simulate_scenario(self) -> _room_pb2.SimulateScenarioRequest: + @property + def remote_data_track_is_published(self) -> data_track_pb2.RemoteDataTrackIsPublishedRequest: ... + @property + def data_track_stream_read(self) -> data_track_pb2.DataTrackStreamReadRequest: ... + @property + def simulate_scenario(self) -> room_pb2.SimulateScenarioRequest: """Reconnection / chaos testing""" def __init__( self, *, - dispose: Global___DisposeRequest | None = ..., - connect: _room_pb2.ConnectRequest | None = ..., - disconnect: _room_pb2.DisconnectRequest | None = ..., - publish_track: _room_pb2.PublishTrackRequest | None = ..., - unpublish_track: _room_pb2.UnpublishTrackRequest | None = ..., - publish_data: _room_pb2.PublishDataRequest | None = ..., - set_subscribed: _room_pb2.SetSubscribedRequest | None = ..., - set_local_metadata: _room_pb2.SetLocalMetadataRequest | None = ..., - set_local_name: _room_pb2.SetLocalNameRequest | None = ..., - set_local_attributes: _room_pb2.SetLocalAttributesRequest | None = ..., - get_session_stats: _room_pb2.GetSessionStatsRequest | None = ..., - publish_transcription: _room_pb2.PublishTranscriptionRequest | None = ..., - publish_sip_dtmf: _room_pb2.PublishSipDtmfRequest | None = ..., - create_video_track: _track_pb2.CreateVideoTrackRequest | None = ..., - create_audio_track: _track_pb2.CreateAudioTrackRequest | None = ..., - local_track_mute: _track_pb2.LocalTrackMuteRequest | None = ..., - enable_remote_track: _track_pb2.EnableRemoteTrackRequest | None = ..., - get_stats: _track_pb2.GetStatsRequest | None = ..., - set_track_subscription_permissions: _track_pb2.SetTrackSubscriptionPermissionsRequest | None = ..., - new_video_stream: _video_frame_pb2.NewVideoStreamRequest | None = ..., - new_video_source: _video_frame_pb2.NewVideoSourceRequest | None = ..., - capture_video_frame: _video_frame_pb2.CaptureVideoFrameRequest | None = ..., - video_convert: _video_frame_pb2.VideoConvertRequest | None = ..., - video_stream_from_participant: _video_frame_pb2.VideoStreamFromParticipantRequest | None = ..., - new_audio_stream: _audio_frame_pb2.NewAudioStreamRequest | None = ..., - new_audio_source: _audio_frame_pb2.NewAudioSourceRequest | None = ..., - capture_audio_frame: _audio_frame_pb2.CaptureAudioFrameRequest | None = ..., - clear_audio_buffer: _audio_frame_pb2.ClearAudioBufferRequest | None = ..., - new_audio_resampler: _audio_frame_pb2.NewAudioResamplerRequest | None = ..., - remix_and_resample: _audio_frame_pb2.RemixAndResampleRequest | None = ..., - e2ee: _e2ee_pb2.E2eeRequest | None = ..., - audio_stream_from_participant: _audio_frame_pb2.AudioStreamFromParticipantRequest | None = ..., - new_sox_resampler: _audio_frame_pb2.NewSoxResamplerRequest | None = ..., - push_sox_resampler: _audio_frame_pb2.PushSoxResamplerRequest | None = ..., - flush_sox_resampler: _audio_frame_pb2.FlushSoxResamplerRequest | None = ..., - send_chat_message: _room_pb2.SendChatMessageRequest | None = ..., - edit_chat_message: _room_pb2.EditChatMessageRequest | None = ..., - perform_rpc: _rpc_pb2.PerformRpcRequest | None = ..., - register_rpc_method: _rpc_pb2.RegisterRpcMethodRequest | None = ..., - unregister_rpc_method: _rpc_pb2.UnregisterRpcMethodRequest | None = ..., - rpc_method_invocation_response: _rpc_pb2.RpcMethodInvocationResponseRequest | None = ..., - enable_remote_track_publication: _track_publication_pb2.EnableRemoteTrackPublicationRequest | None = ..., - update_remote_track_publication_dimension: _track_publication_pb2.UpdateRemoteTrackPublicationDimensionRequest | None = ..., - send_stream_header: _room_pb2.SendStreamHeaderRequest | None = ..., - send_stream_chunk: _room_pb2.SendStreamChunkRequest | None = ..., - send_stream_trailer: _room_pb2.SendStreamTrailerRequest | None = ..., - set_data_channel_buffered_amount_low_threshold: _room_pb2.SetDataChannelBufferedAmountLowThresholdRequest | None = ..., - load_audio_filter_plugin: _audio_frame_pb2.LoadAudioFilterPluginRequest | None = ..., - new_apm: _audio_frame_pb2.NewApmRequest | None = ..., - apm_process_stream: _audio_frame_pb2.ApmProcessStreamRequest | None = ..., - apm_process_reverse_stream: _audio_frame_pb2.ApmProcessReverseStreamRequest | None = ..., - apm_set_stream_delay: _audio_frame_pb2.ApmSetStreamDelayRequest | None = ..., - byte_read_incremental: _data_stream_pb2.ByteStreamReaderReadIncrementalRequest | None = ..., - byte_read_all: _data_stream_pb2.ByteStreamReaderReadAllRequest | None = ..., - byte_write_to_file: _data_stream_pb2.ByteStreamReaderWriteToFileRequest | None = ..., - text_read_incremental: _data_stream_pb2.TextStreamReaderReadIncrementalRequest | None = ..., - text_read_all: _data_stream_pb2.TextStreamReaderReadAllRequest | None = ..., - send_file: _data_stream_pb2.StreamSendFileRequest | None = ..., - send_text: _data_stream_pb2.StreamSendTextRequest | None = ..., - byte_stream_open: _data_stream_pb2.ByteStreamOpenRequest | None = ..., - byte_stream_write: _data_stream_pb2.ByteStreamWriterWriteRequest | None = ..., - byte_stream_close: _data_stream_pb2.ByteStreamWriterCloseRequest | None = ..., - text_stream_open: _data_stream_pb2.TextStreamOpenRequest | None = ..., - text_stream_write: _data_stream_pb2.TextStreamWriterWriteRequest | None = ..., - text_stream_close: _data_stream_pb2.TextStreamWriterCloseRequest | None = ..., - send_bytes: _data_stream_pb2.StreamSendBytesRequest | None = ..., - set_remote_track_publication_quality: _track_publication_pb2.SetRemoteTrackPublicationQualityRequest | None = ..., - publish_data_track: _data_track_pb2.PublishDataTrackRequest | None = ..., - local_data_track_try_push: _data_track_pb2.LocalDataTrackTryPushRequest | None = ..., - local_data_track_unpublish: _data_track_pb2.LocalDataTrackUnpublishRequest | None = ..., - local_data_track_is_published: _data_track_pb2.LocalDataTrackIsPublishedRequest | None = ..., - subscribe_data_track: _data_track_pb2.SubscribeDataTrackRequest | None = ..., - remote_data_track_is_published: _data_track_pb2.RemoteDataTrackIsPublishedRequest | None = ..., - data_track_stream_read: _data_track_pb2.DataTrackStreamReadRequest | None = ..., - simulate_scenario: _room_pb2.SimulateScenarioRequest | None = ..., + dispose: global___DisposeRequest | None = ..., + connect: room_pb2.ConnectRequest | None = ..., + disconnect: room_pb2.DisconnectRequest | None = ..., + publish_track: room_pb2.PublishTrackRequest | None = ..., + unpublish_track: room_pb2.UnpublishTrackRequest | None = ..., + publish_data: room_pb2.PublishDataRequest | None = ..., + set_subscribed: room_pb2.SetSubscribedRequest | None = ..., + set_local_metadata: room_pb2.SetLocalMetadataRequest | None = ..., + set_local_name: room_pb2.SetLocalNameRequest | None = ..., + set_local_attributes: room_pb2.SetLocalAttributesRequest | None = ..., + get_session_stats: room_pb2.GetSessionStatsRequest | None = ..., + publish_transcription: room_pb2.PublishTranscriptionRequest | None = ..., + publish_sip_dtmf: room_pb2.PublishSipDtmfRequest | None = ..., + create_video_track: track_pb2.CreateVideoTrackRequest | None = ..., + create_audio_track: track_pb2.CreateAudioTrackRequest | None = ..., + local_track_mute: track_pb2.LocalTrackMuteRequest | None = ..., + enable_remote_track: track_pb2.EnableRemoteTrackRequest | None = ..., + get_stats: track_pb2.GetStatsRequest | None = ..., + set_track_subscription_permissions: track_pb2.SetTrackSubscriptionPermissionsRequest | None = ..., + new_video_stream: video_frame_pb2.NewVideoStreamRequest | None = ..., + new_video_source: video_frame_pb2.NewVideoSourceRequest | None = ..., + capture_video_frame: video_frame_pb2.CaptureVideoFrameRequest | None = ..., + video_convert: video_frame_pb2.VideoConvertRequest | None = ..., + video_stream_from_participant: video_frame_pb2.VideoStreamFromParticipantRequest | None = ..., + new_audio_stream: audio_frame_pb2.NewAudioStreamRequest | None = ..., + new_audio_source: audio_frame_pb2.NewAudioSourceRequest | None = ..., + capture_audio_frame: audio_frame_pb2.CaptureAudioFrameRequest | None = ..., + clear_audio_buffer: audio_frame_pb2.ClearAudioBufferRequest | None = ..., + new_audio_resampler: audio_frame_pb2.NewAudioResamplerRequest | None = ..., + remix_and_resample: audio_frame_pb2.RemixAndResampleRequest | None = ..., + e2ee: e2ee_pb2.E2eeRequest | None = ..., + audio_stream_from_participant: audio_frame_pb2.AudioStreamFromParticipantRequest | None = ..., + new_sox_resampler: audio_frame_pb2.NewSoxResamplerRequest | None = ..., + push_sox_resampler: audio_frame_pb2.PushSoxResamplerRequest | None = ..., + flush_sox_resampler: audio_frame_pb2.FlushSoxResamplerRequest | None = ..., + send_chat_message: room_pb2.SendChatMessageRequest | None = ..., + edit_chat_message: room_pb2.EditChatMessageRequest | None = ..., + perform_rpc: rpc_pb2.PerformRpcRequest | None = ..., + register_rpc_method: rpc_pb2.RegisterRpcMethodRequest | None = ..., + unregister_rpc_method: rpc_pb2.UnregisterRpcMethodRequest | None = ..., + rpc_method_invocation_response: rpc_pb2.RpcMethodInvocationResponseRequest | None = ..., + enable_remote_track_publication: track_publication_pb2.EnableRemoteTrackPublicationRequest | None = ..., + update_remote_track_publication_dimension: track_publication_pb2.UpdateRemoteTrackPublicationDimensionRequest | None = ..., + send_stream_header: room_pb2.SendStreamHeaderRequest | None = ..., + send_stream_chunk: room_pb2.SendStreamChunkRequest | None = ..., + send_stream_trailer: room_pb2.SendStreamTrailerRequest | None = ..., + set_data_channel_buffered_amount_low_threshold: room_pb2.SetDataChannelBufferedAmountLowThresholdRequest | None = ..., + load_audio_filter_plugin: audio_frame_pb2.LoadAudioFilterPluginRequest | None = ..., + new_apm: audio_frame_pb2.NewApmRequest | None = ..., + apm_process_stream: audio_frame_pb2.ApmProcessStreamRequest | None = ..., + apm_process_reverse_stream: audio_frame_pb2.ApmProcessReverseStreamRequest | None = ..., + apm_set_stream_delay: audio_frame_pb2.ApmSetStreamDelayRequest | None = ..., + byte_read_incremental: data_stream_pb2.ByteStreamReaderReadIncrementalRequest | None = ..., + byte_read_all: data_stream_pb2.ByteStreamReaderReadAllRequest | None = ..., + byte_write_to_file: data_stream_pb2.ByteStreamReaderWriteToFileRequest | None = ..., + text_read_incremental: data_stream_pb2.TextStreamReaderReadIncrementalRequest | None = ..., + text_read_all: data_stream_pb2.TextStreamReaderReadAllRequest | None = ..., + send_file: data_stream_pb2.StreamSendFileRequest | None = ..., + send_text: data_stream_pb2.StreamSendTextRequest | None = ..., + byte_stream_open: data_stream_pb2.ByteStreamOpenRequest | None = ..., + byte_stream_write: data_stream_pb2.ByteStreamWriterWriteRequest | None = ..., + byte_stream_close: data_stream_pb2.ByteStreamWriterCloseRequest | None = ..., + text_stream_open: data_stream_pb2.TextStreamOpenRequest | None = ..., + text_stream_write: data_stream_pb2.TextStreamWriterWriteRequest | None = ..., + text_stream_close: data_stream_pb2.TextStreamWriterCloseRequest | None = ..., + send_bytes: data_stream_pb2.StreamSendBytesRequest | None = ..., + set_remote_track_publication_quality: track_publication_pb2.SetRemoteTrackPublicationQualityRequest | None = ..., + publish_data_track: data_track_pb2.PublishDataTrackRequest | None = ..., + local_data_track_try_push: data_track_pb2.LocalDataTrackTryPushRequest | None = ..., + local_data_track_unpublish: data_track_pb2.LocalDataTrackUnpublishRequest | None = ..., + local_data_track_is_published: data_track_pb2.LocalDataTrackIsPublishedRequest | None = ..., + subscribe_data_track: data_track_pb2.SubscribeDataTrackRequest | None = ..., + remote_data_track_is_published: data_track_pb2.RemoteDataTrackIsPublishedRequest | None = ..., + data_track_stream_read: data_track_pb2.DataTrackStreamReadRequest | None = ..., + simulate_scenario: room_pb2.SimulateScenarioRequest | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["apm_process_reverse_stream", b"apm_process_reverse_stream", "apm_process_stream", b"apm_process_stream", "apm_set_stream_delay", b"apm_set_stream_delay", "audio_stream_from_participant", b"audio_stream_from_participant", "byte_read_all", b"byte_read_all", "byte_read_incremental", b"byte_read_incremental", "byte_stream_close", b"byte_stream_close", "byte_stream_open", b"byte_stream_open", "byte_stream_write", b"byte_stream_write", "byte_write_to_file", b"byte_write_to_file", "capture_audio_frame", b"capture_audio_frame", "capture_video_frame", b"capture_video_frame", "clear_audio_buffer", b"clear_audio_buffer", "connect", b"connect", "create_audio_track", b"create_audio_track", "create_video_track", b"create_video_track", "data_track_stream_read", b"data_track_stream_read", "disconnect", b"disconnect", "dispose", b"dispose", "e2ee", b"e2ee", "edit_chat_message", b"edit_chat_message", "enable_remote_track", b"enable_remote_track", "enable_remote_track_publication", b"enable_remote_track_publication", "flush_sox_resampler", b"flush_sox_resampler", "get_session_stats", b"get_session_stats", "get_stats", b"get_stats", "load_audio_filter_plugin", b"load_audio_filter_plugin", "local_data_track_is_published", b"local_data_track_is_published", "local_data_track_try_push", b"local_data_track_try_push", "local_data_track_unpublish", b"local_data_track_unpublish", "local_track_mute", b"local_track_mute", "message", b"message", "new_apm", b"new_apm", "new_audio_resampler", b"new_audio_resampler", "new_audio_source", b"new_audio_source", "new_audio_stream", b"new_audio_stream", "new_sox_resampler", b"new_sox_resampler", "new_video_source", b"new_video_source", "new_video_stream", b"new_video_stream", "perform_rpc", b"perform_rpc", "publish_data", b"publish_data", "publish_data_track", b"publish_data_track", "publish_sip_dtmf", b"publish_sip_dtmf", "publish_track", b"publish_track", "publish_transcription", b"publish_transcription", "push_sox_resampler", b"push_sox_resampler", "register_rpc_method", b"register_rpc_method", "remix_and_resample", b"remix_and_resample", "remote_data_track_is_published", b"remote_data_track_is_published", "rpc_method_invocation_response", b"rpc_method_invocation_response", "send_bytes", b"send_bytes", "send_chat_message", b"send_chat_message", "send_file", b"send_file", "send_stream_chunk", b"send_stream_chunk", "send_stream_header", b"send_stream_header", "send_stream_trailer", b"send_stream_trailer", "send_text", b"send_text", "set_data_channel_buffered_amount_low_threshold", b"set_data_channel_buffered_amount_low_threshold", "set_local_attributes", b"set_local_attributes", "set_local_metadata", b"set_local_metadata", "set_local_name", b"set_local_name", "set_remote_track_publication_quality", b"set_remote_track_publication_quality", "set_subscribed", b"set_subscribed", "set_track_subscription_permissions", b"set_track_subscription_permissions", "simulate_scenario", b"simulate_scenario", "subscribe_data_track", b"subscribe_data_track", "text_read_all", b"text_read_all", "text_read_incremental", b"text_read_incremental", "text_stream_close", b"text_stream_close", "text_stream_open", b"text_stream_open", "text_stream_write", b"text_stream_write", "unpublish_track", b"unpublish_track", "unregister_rpc_method", b"unregister_rpc_method", "update_remote_track_publication_dimension", b"update_remote_track_publication_dimension", "video_convert", b"video_convert", "video_stream_from_participant", b"video_stream_from_participant"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["apm_process_reverse_stream", b"apm_process_reverse_stream", "apm_process_stream", b"apm_process_stream", "apm_set_stream_delay", b"apm_set_stream_delay", "audio_stream_from_participant", b"audio_stream_from_participant", "byte_read_all", b"byte_read_all", "byte_read_incremental", b"byte_read_incremental", "byte_stream_close", b"byte_stream_close", "byte_stream_open", b"byte_stream_open", "byte_stream_write", b"byte_stream_write", "byte_write_to_file", b"byte_write_to_file", "capture_audio_frame", b"capture_audio_frame", "capture_video_frame", b"capture_video_frame", "clear_audio_buffer", b"clear_audio_buffer", "connect", b"connect", "create_audio_track", b"create_audio_track", "create_video_track", b"create_video_track", "data_track_stream_read", b"data_track_stream_read", "disconnect", b"disconnect", "dispose", b"dispose", "e2ee", b"e2ee", "edit_chat_message", b"edit_chat_message", "enable_remote_track", b"enable_remote_track", "enable_remote_track_publication", b"enable_remote_track_publication", "flush_sox_resampler", b"flush_sox_resampler", "get_session_stats", b"get_session_stats", "get_stats", b"get_stats", "load_audio_filter_plugin", b"load_audio_filter_plugin", "local_data_track_is_published", b"local_data_track_is_published", "local_data_track_try_push", b"local_data_track_try_push", "local_data_track_unpublish", b"local_data_track_unpublish", "local_track_mute", b"local_track_mute", "message", b"message", "new_apm", b"new_apm", "new_audio_resampler", b"new_audio_resampler", "new_audio_source", b"new_audio_source", "new_audio_stream", b"new_audio_stream", "new_sox_resampler", b"new_sox_resampler", "new_video_source", b"new_video_source", "new_video_stream", b"new_video_stream", "perform_rpc", b"perform_rpc", "publish_data", b"publish_data", "publish_data_track", b"publish_data_track", "publish_sip_dtmf", b"publish_sip_dtmf", "publish_track", b"publish_track", "publish_transcription", b"publish_transcription", "push_sox_resampler", b"push_sox_resampler", "register_rpc_method", b"register_rpc_method", "remix_and_resample", b"remix_and_resample", "remote_data_track_is_published", b"remote_data_track_is_published", "rpc_method_invocation_response", b"rpc_method_invocation_response", "send_bytes", b"send_bytes", "send_chat_message", b"send_chat_message", "send_file", b"send_file", "send_stream_chunk", b"send_stream_chunk", "send_stream_header", b"send_stream_header", "send_stream_trailer", b"send_stream_trailer", "send_text", b"send_text", "set_data_channel_buffered_amount_low_threshold", b"set_data_channel_buffered_amount_low_threshold", "set_local_attributes", b"set_local_attributes", "set_local_metadata", b"set_local_metadata", "set_local_name", b"set_local_name", "set_remote_track_publication_quality", b"set_remote_track_publication_quality", "set_subscribed", b"set_subscribed", "set_track_subscription_permissions", b"set_track_subscription_permissions", "simulate_scenario", b"simulate_scenario", "subscribe_data_track", b"subscribe_data_track", "text_read_all", b"text_read_all", "text_read_incremental", b"text_read_incremental", "text_stream_close", b"text_stream_close", "text_stream_open", b"text_stream_open", "text_stream_write", b"text_stream_write", "unpublish_track", b"unpublish_track", "unregister_rpc_method", b"unregister_rpc_method", "update_remote_track_publication_dimension", b"update_remote_track_publication_dimension", "video_convert", b"video_convert", "video_stream_from_participant", b"video_stream_from_participant"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["dispose", "connect", "disconnect", "publish_track", "unpublish_track", "publish_data", "set_subscribed", "set_local_metadata", "set_local_name", "set_local_attributes", "get_session_stats", "publish_transcription", "publish_sip_dtmf", "create_video_track", "create_audio_track", "local_track_mute", "enable_remote_track", "get_stats", "set_track_subscription_permissions", "new_video_stream", "new_video_source", "capture_video_frame", "video_convert", "video_stream_from_participant", "new_audio_stream", "new_audio_source", "capture_audio_frame", "clear_audio_buffer", "new_audio_resampler", "remix_and_resample", "e2ee", "audio_stream_from_participant", "new_sox_resampler", "push_sox_resampler", "flush_sox_resampler", "send_chat_message", "edit_chat_message", "perform_rpc", "register_rpc_method", "unregister_rpc_method", "rpc_method_invocation_response", "enable_remote_track_publication", "update_remote_track_publication_dimension", "send_stream_header", "send_stream_chunk", "send_stream_trailer", "set_data_channel_buffered_amount_low_threshold", "load_audio_filter_plugin", "new_apm", "apm_process_stream", "apm_process_reverse_stream", "apm_set_stream_delay", "byte_read_incremental", "byte_read_all", "byte_write_to_file", "text_read_incremental", "text_read_all", "send_file", "send_text", "byte_stream_open", "byte_stream_write", "byte_stream_close", "text_stream_open", "text_stream_write", "text_stream_close", "send_bytes", "set_remote_track_publication_quality", "publish_data_track", "local_data_track_try_push", "local_data_track_unpublish", "local_data_track_is_published", "subscribe_data_track", "remote_data_track_is_published", "data_track_stream_read", "simulate_scenario"] # noqa: Y015 - _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 - def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... - -Global___FfiRequest: _TypeAlias = FfiRequest # noqa: Y015 - -@_typing.final -class FfiResponse(_message.Message): + def HasField(self, field_name: typing.Literal["apm_process_reverse_stream", b"apm_process_reverse_stream", "apm_process_stream", b"apm_process_stream", "apm_set_stream_delay", b"apm_set_stream_delay", "audio_stream_from_participant", b"audio_stream_from_participant", "byte_read_all", b"byte_read_all", "byte_read_incremental", b"byte_read_incremental", "byte_stream_close", b"byte_stream_close", "byte_stream_open", b"byte_stream_open", "byte_stream_write", b"byte_stream_write", "byte_write_to_file", b"byte_write_to_file", "capture_audio_frame", b"capture_audio_frame", "capture_video_frame", b"capture_video_frame", "clear_audio_buffer", b"clear_audio_buffer", "connect", b"connect", "create_audio_track", b"create_audio_track", "create_video_track", b"create_video_track", "data_track_stream_read", b"data_track_stream_read", "disconnect", b"disconnect", "dispose", b"dispose", "e2ee", b"e2ee", "edit_chat_message", b"edit_chat_message", "enable_remote_track", b"enable_remote_track", "enable_remote_track_publication", b"enable_remote_track_publication", "flush_sox_resampler", b"flush_sox_resampler", "get_session_stats", b"get_session_stats", "get_stats", b"get_stats", "load_audio_filter_plugin", b"load_audio_filter_plugin", "local_data_track_is_published", b"local_data_track_is_published", "local_data_track_try_push", b"local_data_track_try_push", "local_data_track_unpublish", b"local_data_track_unpublish", "local_track_mute", b"local_track_mute", "message", b"message", "new_apm", b"new_apm", "new_audio_resampler", b"new_audio_resampler", "new_audio_source", b"new_audio_source", "new_audio_stream", b"new_audio_stream", "new_sox_resampler", b"new_sox_resampler", "new_video_source", b"new_video_source", "new_video_stream", b"new_video_stream", "perform_rpc", b"perform_rpc", "publish_data", b"publish_data", "publish_data_track", b"publish_data_track", "publish_sip_dtmf", b"publish_sip_dtmf", "publish_track", b"publish_track", "publish_transcription", b"publish_transcription", "push_sox_resampler", b"push_sox_resampler", "register_rpc_method", b"register_rpc_method", "remix_and_resample", b"remix_and_resample", "remote_data_track_is_published", b"remote_data_track_is_published", "rpc_method_invocation_response", b"rpc_method_invocation_response", "send_bytes", b"send_bytes", "send_chat_message", b"send_chat_message", "send_file", b"send_file", "send_stream_chunk", b"send_stream_chunk", "send_stream_header", b"send_stream_header", "send_stream_trailer", b"send_stream_trailer", "send_text", b"send_text", "set_data_channel_buffered_amount_low_threshold", b"set_data_channel_buffered_amount_low_threshold", "set_local_attributes", b"set_local_attributes", "set_local_metadata", b"set_local_metadata", "set_local_name", b"set_local_name", "set_remote_track_publication_quality", b"set_remote_track_publication_quality", "set_subscribed", b"set_subscribed", "set_track_subscription_permissions", b"set_track_subscription_permissions", "simulate_scenario", b"simulate_scenario", "subscribe_data_track", b"subscribe_data_track", "text_read_all", b"text_read_all", "text_read_incremental", b"text_read_incremental", "text_stream_close", b"text_stream_close", "text_stream_open", b"text_stream_open", "text_stream_write", b"text_stream_write", "unpublish_track", b"unpublish_track", "unregister_rpc_method", b"unregister_rpc_method", "update_remote_track_publication_dimension", b"update_remote_track_publication_dimension", "video_convert", b"video_convert", "video_stream_from_participant", b"video_stream_from_participant"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["apm_process_reverse_stream", b"apm_process_reverse_stream", "apm_process_stream", b"apm_process_stream", "apm_set_stream_delay", b"apm_set_stream_delay", "audio_stream_from_participant", b"audio_stream_from_participant", "byte_read_all", b"byte_read_all", "byte_read_incremental", b"byte_read_incremental", "byte_stream_close", b"byte_stream_close", "byte_stream_open", b"byte_stream_open", "byte_stream_write", b"byte_stream_write", "byte_write_to_file", b"byte_write_to_file", "capture_audio_frame", b"capture_audio_frame", "capture_video_frame", b"capture_video_frame", "clear_audio_buffer", b"clear_audio_buffer", "connect", b"connect", "create_audio_track", b"create_audio_track", "create_video_track", b"create_video_track", "data_track_stream_read", b"data_track_stream_read", "disconnect", b"disconnect", "dispose", b"dispose", "e2ee", b"e2ee", "edit_chat_message", b"edit_chat_message", "enable_remote_track", b"enable_remote_track", "enable_remote_track_publication", b"enable_remote_track_publication", "flush_sox_resampler", b"flush_sox_resampler", "get_session_stats", b"get_session_stats", "get_stats", b"get_stats", "load_audio_filter_plugin", b"load_audio_filter_plugin", "local_data_track_is_published", b"local_data_track_is_published", "local_data_track_try_push", b"local_data_track_try_push", "local_data_track_unpublish", b"local_data_track_unpublish", "local_track_mute", b"local_track_mute", "message", b"message", "new_apm", b"new_apm", "new_audio_resampler", b"new_audio_resampler", "new_audio_source", b"new_audio_source", "new_audio_stream", b"new_audio_stream", "new_sox_resampler", b"new_sox_resampler", "new_video_source", b"new_video_source", "new_video_stream", b"new_video_stream", "perform_rpc", b"perform_rpc", "publish_data", b"publish_data", "publish_data_track", b"publish_data_track", "publish_sip_dtmf", b"publish_sip_dtmf", "publish_track", b"publish_track", "publish_transcription", b"publish_transcription", "push_sox_resampler", b"push_sox_resampler", "register_rpc_method", b"register_rpc_method", "remix_and_resample", b"remix_and_resample", "remote_data_track_is_published", b"remote_data_track_is_published", "rpc_method_invocation_response", b"rpc_method_invocation_response", "send_bytes", b"send_bytes", "send_chat_message", b"send_chat_message", "send_file", b"send_file", "send_stream_chunk", b"send_stream_chunk", "send_stream_header", b"send_stream_header", "send_stream_trailer", b"send_stream_trailer", "send_text", b"send_text", "set_data_channel_buffered_amount_low_threshold", b"set_data_channel_buffered_amount_low_threshold", "set_local_attributes", b"set_local_attributes", "set_local_metadata", b"set_local_metadata", "set_local_name", b"set_local_name", "set_remote_track_publication_quality", b"set_remote_track_publication_quality", "set_subscribed", b"set_subscribed", "set_track_subscription_permissions", b"set_track_subscription_permissions", "simulate_scenario", b"simulate_scenario", "subscribe_data_track", b"subscribe_data_track", "text_read_all", b"text_read_all", "text_read_incremental", b"text_read_incremental", "text_stream_close", b"text_stream_close", "text_stream_open", b"text_stream_open", "text_stream_write", b"text_stream_write", "unpublish_track", b"unpublish_track", "unregister_rpc_method", b"unregister_rpc_method", "update_remote_track_publication_dimension", b"update_remote_track_publication_dimension", "video_convert", b"video_convert", "video_stream_from_participant", b"video_stream_from_participant"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["dispose", "connect", "disconnect", "publish_track", "unpublish_track", "publish_data", "set_subscribed", "set_local_metadata", "set_local_name", "set_local_attributes", "get_session_stats", "publish_transcription", "publish_sip_dtmf", "create_video_track", "create_audio_track", "local_track_mute", "enable_remote_track", "get_stats", "set_track_subscription_permissions", "new_video_stream", "new_video_source", "capture_video_frame", "video_convert", "video_stream_from_participant", "new_audio_stream", "new_audio_source", "capture_audio_frame", "clear_audio_buffer", "new_audio_resampler", "remix_and_resample", "e2ee", "audio_stream_from_participant", "new_sox_resampler", "push_sox_resampler", "flush_sox_resampler", "send_chat_message", "edit_chat_message", "perform_rpc", "register_rpc_method", "unregister_rpc_method", "rpc_method_invocation_response", "enable_remote_track_publication", "update_remote_track_publication_dimension", "send_stream_header", "send_stream_chunk", "send_stream_trailer", "set_data_channel_buffered_amount_low_threshold", "load_audio_filter_plugin", "new_apm", "apm_process_stream", "apm_process_reverse_stream", "apm_set_stream_delay", "byte_read_incremental", "byte_read_all", "byte_write_to_file", "text_read_incremental", "text_read_all", "send_file", "send_text", "byte_stream_open", "byte_stream_write", "byte_stream_close", "text_stream_open", "text_stream_write", "text_stream_close", "send_bytes", "set_remote_track_publication_quality", "publish_data_track", "local_data_track_try_push", "local_data_track_unpublish", "local_data_track_is_published", "subscribe_data_track", "remote_data_track_is_published", "data_track_stream_read", "simulate_scenario"] | None: ... + +global___FfiRequest = FfiRequest + +@typing.final +class FfiResponse(google.protobuf.message.Message): """This is the output of livekit_ffi_request function.""" - DESCRIPTOR: _descriptor.Descriptor - - DISPOSE_FIELD_NUMBER: _builtins.int - CONNECT_FIELD_NUMBER: _builtins.int - DISCONNECT_FIELD_NUMBER: _builtins.int - PUBLISH_TRACK_FIELD_NUMBER: _builtins.int - UNPUBLISH_TRACK_FIELD_NUMBER: _builtins.int - PUBLISH_DATA_FIELD_NUMBER: _builtins.int - SET_SUBSCRIBED_FIELD_NUMBER: _builtins.int - SET_LOCAL_METADATA_FIELD_NUMBER: _builtins.int - SET_LOCAL_NAME_FIELD_NUMBER: _builtins.int - SET_LOCAL_ATTRIBUTES_FIELD_NUMBER: _builtins.int - GET_SESSION_STATS_FIELD_NUMBER: _builtins.int - PUBLISH_TRANSCRIPTION_FIELD_NUMBER: _builtins.int - PUBLISH_SIP_DTMF_FIELD_NUMBER: _builtins.int - CREATE_VIDEO_TRACK_FIELD_NUMBER: _builtins.int - CREATE_AUDIO_TRACK_FIELD_NUMBER: _builtins.int - LOCAL_TRACK_MUTE_FIELD_NUMBER: _builtins.int - ENABLE_REMOTE_TRACK_FIELD_NUMBER: _builtins.int - GET_STATS_FIELD_NUMBER: _builtins.int - SET_TRACK_SUBSCRIPTION_PERMISSIONS_FIELD_NUMBER: _builtins.int - NEW_VIDEO_STREAM_FIELD_NUMBER: _builtins.int - NEW_VIDEO_SOURCE_FIELD_NUMBER: _builtins.int - CAPTURE_VIDEO_FRAME_FIELD_NUMBER: _builtins.int - VIDEO_CONVERT_FIELD_NUMBER: _builtins.int - VIDEO_STREAM_FROM_PARTICIPANT_FIELD_NUMBER: _builtins.int - NEW_AUDIO_STREAM_FIELD_NUMBER: _builtins.int - NEW_AUDIO_SOURCE_FIELD_NUMBER: _builtins.int - CAPTURE_AUDIO_FRAME_FIELD_NUMBER: _builtins.int - CLEAR_AUDIO_BUFFER_FIELD_NUMBER: _builtins.int - NEW_AUDIO_RESAMPLER_FIELD_NUMBER: _builtins.int - REMIX_AND_RESAMPLE_FIELD_NUMBER: _builtins.int - AUDIO_STREAM_FROM_PARTICIPANT_FIELD_NUMBER: _builtins.int - E2EE_FIELD_NUMBER: _builtins.int - NEW_SOX_RESAMPLER_FIELD_NUMBER: _builtins.int - PUSH_SOX_RESAMPLER_FIELD_NUMBER: _builtins.int - FLUSH_SOX_RESAMPLER_FIELD_NUMBER: _builtins.int - SEND_CHAT_MESSAGE_FIELD_NUMBER: _builtins.int - PERFORM_RPC_FIELD_NUMBER: _builtins.int - REGISTER_RPC_METHOD_FIELD_NUMBER: _builtins.int - UNREGISTER_RPC_METHOD_FIELD_NUMBER: _builtins.int - RPC_METHOD_INVOCATION_RESPONSE_FIELD_NUMBER: _builtins.int - ENABLE_REMOTE_TRACK_PUBLICATION_FIELD_NUMBER: _builtins.int - UPDATE_REMOTE_TRACK_PUBLICATION_DIMENSION_FIELD_NUMBER: _builtins.int - SEND_STREAM_HEADER_FIELD_NUMBER: _builtins.int - SEND_STREAM_CHUNK_FIELD_NUMBER: _builtins.int - SEND_STREAM_TRAILER_FIELD_NUMBER: _builtins.int - SET_DATA_CHANNEL_BUFFERED_AMOUNT_LOW_THRESHOLD_FIELD_NUMBER: _builtins.int - LOAD_AUDIO_FILTER_PLUGIN_FIELD_NUMBER: _builtins.int - NEW_APM_FIELD_NUMBER: _builtins.int - APM_PROCESS_STREAM_FIELD_NUMBER: _builtins.int - APM_PROCESS_REVERSE_STREAM_FIELD_NUMBER: _builtins.int - APM_SET_STREAM_DELAY_FIELD_NUMBER: _builtins.int - BYTE_READ_INCREMENTAL_FIELD_NUMBER: _builtins.int - BYTE_READ_ALL_FIELD_NUMBER: _builtins.int - BYTE_WRITE_TO_FILE_FIELD_NUMBER: _builtins.int - TEXT_READ_INCREMENTAL_FIELD_NUMBER: _builtins.int - TEXT_READ_ALL_FIELD_NUMBER: _builtins.int - SEND_FILE_FIELD_NUMBER: _builtins.int - SEND_TEXT_FIELD_NUMBER: _builtins.int - BYTE_STREAM_OPEN_FIELD_NUMBER: _builtins.int - BYTE_STREAM_WRITE_FIELD_NUMBER: _builtins.int - BYTE_STREAM_CLOSE_FIELD_NUMBER: _builtins.int - TEXT_STREAM_OPEN_FIELD_NUMBER: _builtins.int - TEXT_STREAM_WRITE_FIELD_NUMBER: _builtins.int - TEXT_STREAM_CLOSE_FIELD_NUMBER: _builtins.int - SEND_BYTES_FIELD_NUMBER: _builtins.int - SET_REMOTE_TRACK_PUBLICATION_QUALITY_FIELD_NUMBER: _builtins.int - PUBLISH_DATA_TRACK_FIELD_NUMBER: _builtins.int - LOCAL_DATA_TRACK_TRY_PUSH_FIELD_NUMBER: _builtins.int - LOCAL_DATA_TRACK_UNPUBLISH_FIELD_NUMBER: _builtins.int - LOCAL_DATA_TRACK_IS_PUBLISHED_FIELD_NUMBER: _builtins.int - SUBSCRIBE_DATA_TRACK_FIELD_NUMBER: _builtins.int - REMOTE_DATA_TRACK_IS_PUBLISHED_FIELD_NUMBER: _builtins.int - DATA_TRACK_STREAM_READ_FIELD_NUMBER: _builtins.int - SIMULATE_SCENARIO_FIELD_NUMBER: _builtins.int - @_builtins.property - def dispose(self) -> Global___DisposeResponse: ... - @_builtins.property - def connect(self) -> _room_pb2.ConnectResponse: + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DISPOSE_FIELD_NUMBER: builtins.int + CONNECT_FIELD_NUMBER: builtins.int + DISCONNECT_FIELD_NUMBER: builtins.int + PUBLISH_TRACK_FIELD_NUMBER: builtins.int + UNPUBLISH_TRACK_FIELD_NUMBER: builtins.int + PUBLISH_DATA_FIELD_NUMBER: builtins.int + SET_SUBSCRIBED_FIELD_NUMBER: builtins.int + SET_LOCAL_METADATA_FIELD_NUMBER: builtins.int + SET_LOCAL_NAME_FIELD_NUMBER: builtins.int + SET_LOCAL_ATTRIBUTES_FIELD_NUMBER: builtins.int + GET_SESSION_STATS_FIELD_NUMBER: builtins.int + PUBLISH_TRANSCRIPTION_FIELD_NUMBER: builtins.int + PUBLISH_SIP_DTMF_FIELD_NUMBER: builtins.int + CREATE_VIDEO_TRACK_FIELD_NUMBER: builtins.int + CREATE_AUDIO_TRACK_FIELD_NUMBER: builtins.int + LOCAL_TRACK_MUTE_FIELD_NUMBER: builtins.int + ENABLE_REMOTE_TRACK_FIELD_NUMBER: builtins.int + GET_STATS_FIELD_NUMBER: builtins.int + SET_TRACK_SUBSCRIPTION_PERMISSIONS_FIELD_NUMBER: builtins.int + NEW_VIDEO_STREAM_FIELD_NUMBER: builtins.int + NEW_VIDEO_SOURCE_FIELD_NUMBER: builtins.int + CAPTURE_VIDEO_FRAME_FIELD_NUMBER: builtins.int + VIDEO_CONVERT_FIELD_NUMBER: builtins.int + VIDEO_STREAM_FROM_PARTICIPANT_FIELD_NUMBER: builtins.int + NEW_AUDIO_STREAM_FIELD_NUMBER: builtins.int + NEW_AUDIO_SOURCE_FIELD_NUMBER: builtins.int + CAPTURE_AUDIO_FRAME_FIELD_NUMBER: builtins.int + CLEAR_AUDIO_BUFFER_FIELD_NUMBER: builtins.int + NEW_AUDIO_RESAMPLER_FIELD_NUMBER: builtins.int + REMIX_AND_RESAMPLE_FIELD_NUMBER: builtins.int + AUDIO_STREAM_FROM_PARTICIPANT_FIELD_NUMBER: builtins.int + E2EE_FIELD_NUMBER: builtins.int + NEW_SOX_RESAMPLER_FIELD_NUMBER: builtins.int + PUSH_SOX_RESAMPLER_FIELD_NUMBER: builtins.int + FLUSH_SOX_RESAMPLER_FIELD_NUMBER: builtins.int + SEND_CHAT_MESSAGE_FIELD_NUMBER: builtins.int + PERFORM_RPC_FIELD_NUMBER: builtins.int + REGISTER_RPC_METHOD_FIELD_NUMBER: builtins.int + UNREGISTER_RPC_METHOD_FIELD_NUMBER: builtins.int + RPC_METHOD_INVOCATION_RESPONSE_FIELD_NUMBER: builtins.int + ENABLE_REMOTE_TRACK_PUBLICATION_FIELD_NUMBER: builtins.int + UPDATE_REMOTE_TRACK_PUBLICATION_DIMENSION_FIELD_NUMBER: builtins.int + SEND_STREAM_HEADER_FIELD_NUMBER: builtins.int + SEND_STREAM_CHUNK_FIELD_NUMBER: builtins.int + SEND_STREAM_TRAILER_FIELD_NUMBER: builtins.int + SET_DATA_CHANNEL_BUFFERED_AMOUNT_LOW_THRESHOLD_FIELD_NUMBER: builtins.int + LOAD_AUDIO_FILTER_PLUGIN_FIELD_NUMBER: builtins.int + NEW_APM_FIELD_NUMBER: builtins.int + APM_PROCESS_STREAM_FIELD_NUMBER: builtins.int + APM_PROCESS_REVERSE_STREAM_FIELD_NUMBER: builtins.int + APM_SET_STREAM_DELAY_FIELD_NUMBER: builtins.int + BYTE_READ_INCREMENTAL_FIELD_NUMBER: builtins.int + BYTE_READ_ALL_FIELD_NUMBER: builtins.int + BYTE_WRITE_TO_FILE_FIELD_NUMBER: builtins.int + TEXT_READ_INCREMENTAL_FIELD_NUMBER: builtins.int + TEXT_READ_ALL_FIELD_NUMBER: builtins.int + SEND_FILE_FIELD_NUMBER: builtins.int + SEND_TEXT_FIELD_NUMBER: builtins.int + BYTE_STREAM_OPEN_FIELD_NUMBER: builtins.int + BYTE_STREAM_WRITE_FIELD_NUMBER: builtins.int + BYTE_STREAM_CLOSE_FIELD_NUMBER: builtins.int + TEXT_STREAM_OPEN_FIELD_NUMBER: builtins.int + TEXT_STREAM_WRITE_FIELD_NUMBER: builtins.int + TEXT_STREAM_CLOSE_FIELD_NUMBER: builtins.int + SEND_BYTES_FIELD_NUMBER: builtins.int + SET_REMOTE_TRACK_PUBLICATION_QUALITY_FIELD_NUMBER: builtins.int + PUBLISH_DATA_TRACK_FIELD_NUMBER: builtins.int + LOCAL_DATA_TRACK_TRY_PUSH_FIELD_NUMBER: builtins.int + LOCAL_DATA_TRACK_UNPUBLISH_FIELD_NUMBER: builtins.int + LOCAL_DATA_TRACK_IS_PUBLISHED_FIELD_NUMBER: builtins.int + SUBSCRIBE_DATA_TRACK_FIELD_NUMBER: builtins.int + REMOTE_DATA_TRACK_IS_PUBLISHED_FIELD_NUMBER: builtins.int + DATA_TRACK_STREAM_READ_FIELD_NUMBER: builtins.int + SIMULATE_SCENARIO_FIELD_NUMBER: builtins.int + @property + def dispose(self) -> global___DisposeResponse: ... + @property + def connect(self) -> room_pb2.ConnectResponse: """Room""" - @_builtins.property - def disconnect(self) -> _room_pb2.DisconnectResponse: ... - @_builtins.property - def publish_track(self) -> _room_pb2.PublishTrackResponse: ... - @_builtins.property - def unpublish_track(self) -> _room_pb2.UnpublishTrackResponse: ... - @_builtins.property - def publish_data(self) -> _room_pb2.PublishDataResponse: ... - @_builtins.property - def set_subscribed(self) -> _room_pb2.SetSubscribedResponse: ... - @_builtins.property - def set_local_metadata(self) -> _room_pb2.SetLocalMetadataResponse: ... - @_builtins.property - def set_local_name(self) -> _room_pb2.SetLocalNameResponse: ... - @_builtins.property - def set_local_attributes(self) -> _room_pb2.SetLocalAttributesResponse: ... - @_builtins.property - def get_session_stats(self) -> _room_pb2.GetSessionStatsResponse: ... - @_builtins.property - def publish_transcription(self) -> _room_pb2.PublishTranscriptionResponse: ... - @_builtins.property - def publish_sip_dtmf(self) -> _room_pb2.PublishSipDtmfResponse: ... - @_builtins.property - def create_video_track(self) -> _track_pb2.CreateVideoTrackResponse: + @property + def disconnect(self) -> room_pb2.DisconnectResponse: ... + @property + def publish_track(self) -> room_pb2.PublishTrackResponse: ... + @property + def unpublish_track(self) -> room_pb2.UnpublishTrackResponse: ... + @property + def publish_data(self) -> room_pb2.PublishDataResponse: ... + @property + def set_subscribed(self) -> room_pb2.SetSubscribedResponse: ... + @property + def set_local_metadata(self) -> room_pb2.SetLocalMetadataResponse: ... + @property + def set_local_name(self) -> room_pb2.SetLocalNameResponse: ... + @property + def set_local_attributes(self) -> room_pb2.SetLocalAttributesResponse: ... + @property + def get_session_stats(self) -> room_pb2.GetSessionStatsResponse: ... + @property + def publish_transcription(self) -> room_pb2.PublishTranscriptionResponse: ... + @property + def publish_sip_dtmf(self) -> room_pb2.PublishSipDtmfResponse: ... + @property + def create_video_track(self) -> track_pb2.CreateVideoTrackResponse: """Track""" - @_builtins.property - def create_audio_track(self) -> _track_pb2.CreateAudioTrackResponse: ... - @_builtins.property - def local_track_mute(self) -> _track_pb2.LocalTrackMuteResponse: ... - @_builtins.property - def enable_remote_track(self) -> _track_pb2.EnableRemoteTrackResponse: ... - @_builtins.property - def get_stats(self) -> _track_pb2.GetStatsResponse: ... - @_builtins.property - def set_track_subscription_permissions(self) -> _track_pb2.SetTrackSubscriptionPermissionsResponse: ... - @_builtins.property - def new_video_stream(self) -> _video_frame_pb2.NewVideoStreamResponse: + @property + def create_audio_track(self) -> track_pb2.CreateAudioTrackResponse: ... + @property + def local_track_mute(self) -> track_pb2.LocalTrackMuteResponse: ... + @property + def enable_remote_track(self) -> track_pb2.EnableRemoteTrackResponse: ... + @property + def get_stats(self) -> track_pb2.GetStatsResponse: ... + @property + def set_track_subscription_permissions(self) -> track_pb2.SetTrackSubscriptionPermissionsResponse: ... + @property + def new_video_stream(self) -> video_frame_pb2.NewVideoStreamResponse: """Video""" - @_builtins.property - def new_video_source(self) -> _video_frame_pb2.NewVideoSourceResponse: ... - @_builtins.property - def capture_video_frame(self) -> _video_frame_pb2.CaptureVideoFrameResponse: ... - @_builtins.property - def video_convert(self) -> _video_frame_pb2.VideoConvertResponse: ... - @_builtins.property - def video_stream_from_participant(self) -> _video_frame_pb2.VideoStreamFromParticipantResponse: ... - @_builtins.property - def new_audio_stream(self) -> _audio_frame_pb2.NewAudioStreamResponse: + @property + def new_video_source(self) -> video_frame_pb2.NewVideoSourceResponse: ... + @property + def capture_video_frame(self) -> video_frame_pb2.CaptureVideoFrameResponse: ... + @property + def video_convert(self) -> video_frame_pb2.VideoConvertResponse: ... + @property + def video_stream_from_participant(self) -> video_frame_pb2.VideoStreamFromParticipantResponse: ... + @property + def new_audio_stream(self) -> audio_frame_pb2.NewAudioStreamResponse: """Audio""" - @_builtins.property - def new_audio_source(self) -> _audio_frame_pb2.NewAudioSourceResponse: ... - @_builtins.property - def capture_audio_frame(self) -> _audio_frame_pb2.CaptureAudioFrameResponse: ... - @_builtins.property - def clear_audio_buffer(self) -> _audio_frame_pb2.ClearAudioBufferResponse: ... - @_builtins.property - def new_audio_resampler(self) -> _audio_frame_pb2.NewAudioResamplerResponse: ... - @_builtins.property - def remix_and_resample(self) -> _audio_frame_pb2.RemixAndResampleResponse: ... - @_builtins.property - def audio_stream_from_participant(self) -> _audio_frame_pb2.AudioStreamFromParticipantResponse: ... - @_builtins.property - def e2ee(self) -> _e2ee_pb2.E2eeResponse: ... - @_builtins.property - def new_sox_resampler(self) -> _audio_frame_pb2.NewSoxResamplerResponse: ... - @_builtins.property - def push_sox_resampler(self) -> _audio_frame_pb2.PushSoxResamplerResponse: ... - @_builtins.property - def flush_sox_resampler(self) -> _audio_frame_pb2.FlushSoxResamplerResponse: ... - @_builtins.property - def send_chat_message(self) -> _room_pb2.SendChatMessageResponse: ... - @_builtins.property - def perform_rpc(self) -> _rpc_pb2.PerformRpcResponse: + @property + def new_audio_source(self) -> audio_frame_pb2.NewAudioSourceResponse: ... + @property + def capture_audio_frame(self) -> audio_frame_pb2.CaptureAudioFrameResponse: ... + @property + def clear_audio_buffer(self) -> audio_frame_pb2.ClearAudioBufferResponse: ... + @property + def new_audio_resampler(self) -> audio_frame_pb2.NewAudioResamplerResponse: ... + @property + def remix_and_resample(self) -> audio_frame_pb2.RemixAndResampleResponse: ... + @property + def audio_stream_from_participant(self) -> audio_frame_pb2.AudioStreamFromParticipantResponse: ... + @property + def e2ee(self) -> e2ee_pb2.E2eeResponse: ... + @property + def new_sox_resampler(self) -> audio_frame_pb2.NewSoxResamplerResponse: ... + @property + def push_sox_resampler(self) -> audio_frame_pb2.PushSoxResamplerResponse: ... + @property + def flush_sox_resampler(self) -> audio_frame_pb2.FlushSoxResamplerResponse: ... + @property + def send_chat_message(self) -> room_pb2.SendChatMessageResponse: ... + @property + def perform_rpc(self) -> rpc_pb2.PerformRpcResponse: """RPC""" - @_builtins.property - def register_rpc_method(self) -> _rpc_pb2.RegisterRpcMethodResponse: ... - @_builtins.property - def unregister_rpc_method(self) -> _rpc_pb2.UnregisterRpcMethodResponse: ... - @_builtins.property - def rpc_method_invocation_response(self) -> _rpc_pb2.RpcMethodInvocationResponseResponse: ... - @_builtins.property - def enable_remote_track_publication(self) -> _track_publication_pb2.EnableRemoteTrackPublicationResponse: + @property + def register_rpc_method(self) -> rpc_pb2.RegisterRpcMethodResponse: ... + @property + def unregister_rpc_method(self) -> rpc_pb2.UnregisterRpcMethodResponse: ... + @property + def rpc_method_invocation_response(self) -> rpc_pb2.RpcMethodInvocationResponseResponse: ... + @property + def enable_remote_track_publication(self) -> track_publication_pb2.EnableRemoteTrackPublicationResponse: """Track Publication""" - @_builtins.property - def update_remote_track_publication_dimension(self) -> _track_publication_pb2.UpdateRemoteTrackPublicationDimensionResponse: ... - @_builtins.property - def send_stream_header(self) -> _room_pb2.SendStreamHeaderResponse: + @property + def update_remote_track_publication_dimension(self) -> track_publication_pb2.UpdateRemoteTrackPublicationDimensionResponse: ... + @property + def send_stream_header(self) -> room_pb2.SendStreamHeaderResponse: """Data Streams""" - @_builtins.property - def send_stream_chunk(self) -> _room_pb2.SendStreamChunkResponse: ... - @_builtins.property - def send_stream_trailer(self) -> _room_pb2.SendStreamTrailerResponse: ... - @_builtins.property - def set_data_channel_buffered_amount_low_threshold(self) -> _room_pb2.SetDataChannelBufferedAmountLowThresholdResponse: + @property + def send_stream_chunk(self) -> room_pb2.SendStreamChunkResponse: ... + @property + def send_stream_trailer(self) -> room_pb2.SendStreamTrailerResponse: ... + @property + def set_data_channel_buffered_amount_low_threshold(self) -> room_pb2.SetDataChannelBufferedAmountLowThresholdResponse: """Data Channel""" - @_builtins.property - def load_audio_filter_plugin(self) -> _audio_frame_pb2.LoadAudioFilterPluginResponse: + @property + def load_audio_filter_plugin(self) -> audio_frame_pb2.LoadAudioFilterPluginResponse: """Audio Filter Plugin""" - @_builtins.property - def new_apm(self) -> _audio_frame_pb2.NewApmResponse: ... - @_builtins.property - def apm_process_stream(self) -> _audio_frame_pb2.ApmProcessStreamResponse: ... - @_builtins.property - def apm_process_reverse_stream(self) -> _audio_frame_pb2.ApmProcessReverseStreamResponse: ... - @_builtins.property - def apm_set_stream_delay(self) -> _audio_frame_pb2.ApmSetStreamDelayResponse: ... - @_builtins.property - def byte_read_incremental(self) -> _data_stream_pb2.ByteStreamReaderReadIncrementalResponse: + @property + def new_apm(self) -> audio_frame_pb2.NewApmResponse: ... + @property + def apm_process_stream(self) -> audio_frame_pb2.ApmProcessStreamResponse: ... + @property + def apm_process_reverse_stream(self) -> audio_frame_pb2.ApmProcessReverseStreamResponse: ... + @property + def apm_set_stream_delay(self) -> audio_frame_pb2.ApmSetStreamDelayResponse: ... + @property + def byte_read_incremental(self) -> data_stream_pb2.ByteStreamReaderReadIncrementalResponse: """Data Streams (high level)""" - @_builtins.property - def byte_read_all(self) -> _data_stream_pb2.ByteStreamReaderReadAllResponse: ... - @_builtins.property - def byte_write_to_file(self) -> _data_stream_pb2.ByteStreamReaderWriteToFileResponse: ... - @_builtins.property - def text_read_incremental(self) -> _data_stream_pb2.TextStreamReaderReadIncrementalResponse: ... - @_builtins.property - def text_read_all(self) -> _data_stream_pb2.TextStreamReaderReadAllResponse: ... - @_builtins.property - def send_file(self) -> _data_stream_pb2.StreamSendFileResponse: ... - @_builtins.property - def send_text(self) -> _data_stream_pb2.StreamSendTextResponse: ... - @_builtins.property - def byte_stream_open(self) -> _data_stream_pb2.ByteStreamOpenResponse: ... - @_builtins.property - def byte_stream_write(self) -> _data_stream_pb2.ByteStreamWriterWriteResponse: ... - @_builtins.property - def byte_stream_close(self) -> _data_stream_pb2.ByteStreamWriterCloseResponse: ... - @_builtins.property - def text_stream_open(self) -> _data_stream_pb2.TextStreamOpenResponse: ... - @_builtins.property - def text_stream_write(self) -> _data_stream_pb2.TextStreamWriterWriteResponse: ... - @_builtins.property - def text_stream_close(self) -> _data_stream_pb2.TextStreamWriterCloseResponse: ... - @_builtins.property - def send_bytes(self) -> _data_stream_pb2.StreamSendBytesResponse: ... - @_builtins.property - def set_remote_track_publication_quality(self) -> _track_publication_pb2.SetRemoteTrackPublicationQualityResponse: ... - @_builtins.property - def publish_data_track(self) -> _data_track_pb2.PublishDataTrackResponse: + @property + def byte_read_all(self) -> data_stream_pb2.ByteStreamReaderReadAllResponse: ... + @property + def byte_write_to_file(self) -> data_stream_pb2.ByteStreamReaderWriteToFileResponse: ... + @property + def text_read_incremental(self) -> data_stream_pb2.TextStreamReaderReadIncrementalResponse: ... + @property + def text_read_all(self) -> data_stream_pb2.TextStreamReaderReadAllResponse: ... + @property + def send_file(self) -> data_stream_pb2.StreamSendFileResponse: ... + @property + def send_text(self) -> data_stream_pb2.StreamSendTextResponse: ... + @property + def byte_stream_open(self) -> data_stream_pb2.ByteStreamOpenResponse: ... + @property + def byte_stream_write(self) -> data_stream_pb2.ByteStreamWriterWriteResponse: ... + @property + def byte_stream_close(self) -> data_stream_pb2.ByteStreamWriterCloseResponse: ... + @property + def text_stream_open(self) -> data_stream_pb2.TextStreamOpenResponse: ... + @property + def text_stream_write(self) -> data_stream_pb2.TextStreamWriterWriteResponse: ... + @property + def text_stream_close(self) -> data_stream_pb2.TextStreamWriterCloseResponse: ... + @property + def send_bytes(self) -> data_stream_pb2.StreamSendBytesResponse: ... + @property + def set_remote_track_publication_quality(self) -> track_publication_pb2.SetRemoteTrackPublicationQualityResponse: ... + @property + def publish_data_track(self) -> data_track_pb2.PublishDataTrackResponse: """Data Track (local)""" - @_builtins.property - def local_data_track_try_push(self) -> _data_track_pb2.LocalDataTrackTryPushResponse: ... - @_builtins.property - def local_data_track_unpublish(self) -> _data_track_pb2.LocalDataTrackUnpublishResponse: ... - @_builtins.property - def local_data_track_is_published(self) -> _data_track_pb2.LocalDataTrackIsPublishedResponse: ... - @_builtins.property - def subscribe_data_track(self) -> _data_track_pb2.SubscribeDataTrackResponse: + @property + def local_data_track_try_push(self) -> data_track_pb2.LocalDataTrackTryPushResponse: ... + @property + def local_data_track_unpublish(self) -> data_track_pb2.LocalDataTrackUnpublishResponse: ... + @property + def local_data_track_is_published(self) -> data_track_pb2.LocalDataTrackIsPublishedResponse: ... + @property + def subscribe_data_track(self) -> data_track_pb2.SubscribeDataTrackResponse: """Data Track (remote)""" - @_builtins.property - def remote_data_track_is_published(self) -> _data_track_pb2.RemoteDataTrackIsPublishedResponse: ... - @_builtins.property - def data_track_stream_read(self) -> _data_track_pb2.DataTrackStreamReadResponse: ... - @_builtins.property - def simulate_scenario(self) -> _room_pb2.SimulateScenarioResponse: + @property + def remote_data_track_is_published(self) -> data_track_pb2.RemoteDataTrackIsPublishedResponse: ... + @property + def data_track_stream_read(self) -> data_track_pb2.DataTrackStreamReadResponse: ... + @property + def simulate_scenario(self) -> room_pb2.SimulateScenarioResponse: """Reconnection / chaos testing""" def __init__( self, *, - dispose: Global___DisposeResponse | None = ..., - connect: _room_pb2.ConnectResponse | None = ..., - disconnect: _room_pb2.DisconnectResponse | None = ..., - publish_track: _room_pb2.PublishTrackResponse | None = ..., - unpublish_track: _room_pb2.UnpublishTrackResponse | None = ..., - publish_data: _room_pb2.PublishDataResponse | None = ..., - set_subscribed: _room_pb2.SetSubscribedResponse | None = ..., - set_local_metadata: _room_pb2.SetLocalMetadataResponse | None = ..., - set_local_name: _room_pb2.SetLocalNameResponse | None = ..., - set_local_attributes: _room_pb2.SetLocalAttributesResponse | None = ..., - get_session_stats: _room_pb2.GetSessionStatsResponse | None = ..., - publish_transcription: _room_pb2.PublishTranscriptionResponse | None = ..., - publish_sip_dtmf: _room_pb2.PublishSipDtmfResponse | None = ..., - create_video_track: _track_pb2.CreateVideoTrackResponse | None = ..., - create_audio_track: _track_pb2.CreateAudioTrackResponse | None = ..., - local_track_mute: _track_pb2.LocalTrackMuteResponse | None = ..., - enable_remote_track: _track_pb2.EnableRemoteTrackResponse | None = ..., - get_stats: _track_pb2.GetStatsResponse | None = ..., - set_track_subscription_permissions: _track_pb2.SetTrackSubscriptionPermissionsResponse | None = ..., - new_video_stream: _video_frame_pb2.NewVideoStreamResponse | None = ..., - new_video_source: _video_frame_pb2.NewVideoSourceResponse | None = ..., - capture_video_frame: _video_frame_pb2.CaptureVideoFrameResponse | None = ..., - video_convert: _video_frame_pb2.VideoConvertResponse | None = ..., - video_stream_from_participant: _video_frame_pb2.VideoStreamFromParticipantResponse | None = ..., - new_audio_stream: _audio_frame_pb2.NewAudioStreamResponse | None = ..., - new_audio_source: _audio_frame_pb2.NewAudioSourceResponse | None = ..., - capture_audio_frame: _audio_frame_pb2.CaptureAudioFrameResponse | None = ..., - clear_audio_buffer: _audio_frame_pb2.ClearAudioBufferResponse | None = ..., - new_audio_resampler: _audio_frame_pb2.NewAudioResamplerResponse | None = ..., - remix_and_resample: _audio_frame_pb2.RemixAndResampleResponse | None = ..., - audio_stream_from_participant: _audio_frame_pb2.AudioStreamFromParticipantResponse | None = ..., - e2ee: _e2ee_pb2.E2eeResponse | None = ..., - new_sox_resampler: _audio_frame_pb2.NewSoxResamplerResponse | None = ..., - push_sox_resampler: _audio_frame_pb2.PushSoxResamplerResponse | None = ..., - flush_sox_resampler: _audio_frame_pb2.FlushSoxResamplerResponse | None = ..., - send_chat_message: _room_pb2.SendChatMessageResponse | None = ..., - perform_rpc: _rpc_pb2.PerformRpcResponse | None = ..., - register_rpc_method: _rpc_pb2.RegisterRpcMethodResponse | None = ..., - unregister_rpc_method: _rpc_pb2.UnregisterRpcMethodResponse | None = ..., - rpc_method_invocation_response: _rpc_pb2.RpcMethodInvocationResponseResponse | None = ..., - enable_remote_track_publication: _track_publication_pb2.EnableRemoteTrackPublicationResponse | None = ..., - update_remote_track_publication_dimension: _track_publication_pb2.UpdateRemoteTrackPublicationDimensionResponse | None = ..., - send_stream_header: _room_pb2.SendStreamHeaderResponse | None = ..., - send_stream_chunk: _room_pb2.SendStreamChunkResponse | None = ..., - send_stream_trailer: _room_pb2.SendStreamTrailerResponse | None = ..., - set_data_channel_buffered_amount_low_threshold: _room_pb2.SetDataChannelBufferedAmountLowThresholdResponse | None = ..., - load_audio_filter_plugin: _audio_frame_pb2.LoadAudioFilterPluginResponse | None = ..., - new_apm: _audio_frame_pb2.NewApmResponse | None = ..., - apm_process_stream: _audio_frame_pb2.ApmProcessStreamResponse | None = ..., - apm_process_reverse_stream: _audio_frame_pb2.ApmProcessReverseStreamResponse | None = ..., - apm_set_stream_delay: _audio_frame_pb2.ApmSetStreamDelayResponse | None = ..., - byte_read_incremental: _data_stream_pb2.ByteStreamReaderReadIncrementalResponse | None = ..., - byte_read_all: _data_stream_pb2.ByteStreamReaderReadAllResponse | None = ..., - byte_write_to_file: _data_stream_pb2.ByteStreamReaderWriteToFileResponse | None = ..., - text_read_incremental: _data_stream_pb2.TextStreamReaderReadIncrementalResponse | None = ..., - text_read_all: _data_stream_pb2.TextStreamReaderReadAllResponse | None = ..., - send_file: _data_stream_pb2.StreamSendFileResponse | None = ..., - send_text: _data_stream_pb2.StreamSendTextResponse | None = ..., - byte_stream_open: _data_stream_pb2.ByteStreamOpenResponse | None = ..., - byte_stream_write: _data_stream_pb2.ByteStreamWriterWriteResponse | None = ..., - byte_stream_close: _data_stream_pb2.ByteStreamWriterCloseResponse | None = ..., - text_stream_open: _data_stream_pb2.TextStreamOpenResponse | None = ..., - text_stream_write: _data_stream_pb2.TextStreamWriterWriteResponse | None = ..., - text_stream_close: _data_stream_pb2.TextStreamWriterCloseResponse | None = ..., - send_bytes: _data_stream_pb2.StreamSendBytesResponse | None = ..., - set_remote_track_publication_quality: _track_publication_pb2.SetRemoteTrackPublicationQualityResponse | None = ..., - publish_data_track: _data_track_pb2.PublishDataTrackResponse | None = ..., - local_data_track_try_push: _data_track_pb2.LocalDataTrackTryPushResponse | None = ..., - local_data_track_unpublish: _data_track_pb2.LocalDataTrackUnpublishResponse | None = ..., - local_data_track_is_published: _data_track_pb2.LocalDataTrackIsPublishedResponse | None = ..., - subscribe_data_track: _data_track_pb2.SubscribeDataTrackResponse | None = ..., - remote_data_track_is_published: _data_track_pb2.RemoteDataTrackIsPublishedResponse | None = ..., - data_track_stream_read: _data_track_pb2.DataTrackStreamReadResponse | None = ..., - simulate_scenario: _room_pb2.SimulateScenarioResponse | None = ..., + dispose: global___DisposeResponse | None = ..., + connect: room_pb2.ConnectResponse | None = ..., + disconnect: room_pb2.DisconnectResponse | None = ..., + publish_track: room_pb2.PublishTrackResponse | None = ..., + unpublish_track: room_pb2.UnpublishTrackResponse | None = ..., + publish_data: room_pb2.PublishDataResponse | None = ..., + set_subscribed: room_pb2.SetSubscribedResponse | None = ..., + set_local_metadata: room_pb2.SetLocalMetadataResponse | None = ..., + set_local_name: room_pb2.SetLocalNameResponse | None = ..., + set_local_attributes: room_pb2.SetLocalAttributesResponse | None = ..., + get_session_stats: room_pb2.GetSessionStatsResponse | None = ..., + publish_transcription: room_pb2.PublishTranscriptionResponse | None = ..., + publish_sip_dtmf: room_pb2.PublishSipDtmfResponse | None = ..., + create_video_track: track_pb2.CreateVideoTrackResponse | None = ..., + create_audio_track: track_pb2.CreateAudioTrackResponse | None = ..., + local_track_mute: track_pb2.LocalTrackMuteResponse | None = ..., + enable_remote_track: track_pb2.EnableRemoteTrackResponse | None = ..., + get_stats: track_pb2.GetStatsResponse | None = ..., + set_track_subscription_permissions: track_pb2.SetTrackSubscriptionPermissionsResponse | None = ..., + new_video_stream: video_frame_pb2.NewVideoStreamResponse | None = ..., + new_video_source: video_frame_pb2.NewVideoSourceResponse | None = ..., + capture_video_frame: video_frame_pb2.CaptureVideoFrameResponse | None = ..., + video_convert: video_frame_pb2.VideoConvertResponse | None = ..., + video_stream_from_participant: video_frame_pb2.VideoStreamFromParticipantResponse | None = ..., + new_audio_stream: audio_frame_pb2.NewAudioStreamResponse | None = ..., + new_audio_source: audio_frame_pb2.NewAudioSourceResponse | None = ..., + capture_audio_frame: audio_frame_pb2.CaptureAudioFrameResponse | None = ..., + clear_audio_buffer: audio_frame_pb2.ClearAudioBufferResponse | None = ..., + new_audio_resampler: audio_frame_pb2.NewAudioResamplerResponse | None = ..., + remix_and_resample: audio_frame_pb2.RemixAndResampleResponse | None = ..., + audio_stream_from_participant: audio_frame_pb2.AudioStreamFromParticipantResponse | None = ..., + e2ee: e2ee_pb2.E2eeResponse | None = ..., + new_sox_resampler: audio_frame_pb2.NewSoxResamplerResponse | None = ..., + push_sox_resampler: audio_frame_pb2.PushSoxResamplerResponse | None = ..., + flush_sox_resampler: audio_frame_pb2.FlushSoxResamplerResponse | None = ..., + send_chat_message: room_pb2.SendChatMessageResponse | None = ..., + perform_rpc: rpc_pb2.PerformRpcResponse | None = ..., + register_rpc_method: rpc_pb2.RegisterRpcMethodResponse | None = ..., + unregister_rpc_method: rpc_pb2.UnregisterRpcMethodResponse | None = ..., + rpc_method_invocation_response: rpc_pb2.RpcMethodInvocationResponseResponse | None = ..., + enable_remote_track_publication: track_publication_pb2.EnableRemoteTrackPublicationResponse | None = ..., + update_remote_track_publication_dimension: track_publication_pb2.UpdateRemoteTrackPublicationDimensionResponse | None = ..., + send_stream_header: room_pb2.SendStreamHeaderResponse | None = ..., + send_stream_chunk: room_pb2.SendStreamChunkResponse | None = ..., + send_stream_trailer: room_pb2.SendStreamTrailerResponse | None = ..., + set_data_channel_buffered_amount_low_threshold: room_pb2.SetDataChannelBufferedAmountLowThresholdResponse | None = ..., + load_audio_filter_plugin: audio_frame_pb2.LoadAudioFilterPluginResponse | None = ..., + new_apm: audio_frame_pb2.NewApmResponse | None = ..., + apm_process_stream: audio_frame_pb2.ApmProcessStreamResponse | None = ..., + apm_process_reverse_stream: audio_frame_pb2.ApmProcessReverseStreamResponse | None = ..., + apm_set_stream_delay: audio_frame_pb2.ApmSetStreamDelayResponse | None = ..., + byte_read_incremental: data_stream_pb2.ByteStreamReaderReadIncrementalResponse | None = ..., + byte_read_all: data_stream_pb2.ByteStreamReaderReadAllResponse | None = ..., + byte_write_to_file: data_stream_pb2.ByteStreamReaderWriteToFileResponse | None = ..., + text_read_incremental: data_stream_pb2.TextStreamReaderReadIncrementalResponse | None = ..., + text_read_all: data_stream_pb2.TextStreamReaderReadAllResponse | None = ..., + send_file: data_stream_pb2.StreamSendFileResponse | None = ..., + send_text: data_stream_pb2.StreamSendTextResponse | None = ..., + byte_stream_open: data_stream_pb2.ByteStreamOpenResponse | None = ..., + byte_stream_write: data_stream_pb2.ByteStreamWriterWriteResponse | None = ..., + byte_stream_close: data_stream_pb2.ByteStreamWriterCloseResponse | None = ..., + text_stream_open: data_stream_pb2.TextStreamOpenResponse | None = ..., + text_stream_write: data_stream_pb2.TextStreamWriterWriteResponse | None = ..., + text_stream_close: data_stream_pb2.TextStreamWriterCloseResponse | None = ..., + send_bytes: data_stream_pb2.StreamSendBytesResponse | None = ..., + set_remote_track_publication_quality: track_publication_pb2.SetRemoteTrackPublicationQualityResponse | None = ..., + publish_data_track: data_track_pb2.PublishDataTrackResponse | None = ..., + local_data_track_try_push: data_track_pb2.LocalDataTrackTryPushResponse | None = ..., + local_data_track_unpublish: data_track_pb2.LocalDataTrackUnpublishResponse | None = ..., + local_data_track_is_published: data_track_pb2.LocalDataTrackIsPublishedResponse | None = ..., + subscribe_data_track: data_track_pb2.SubscribeDataTrackResponse | None = ..., + remote_data_track_is_published: data_track_pb2.RemoteDataTrackIsPublishedResponse | None = ..., + data_track_stream_read: data_track_pb2.DataTrackStreamReadResponse | None = ..., + simulate_scenario: room_pb2.SimulateScenarioResponse | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["apm_process_reverse_stream", b"apm_process_reverse_stream", "apm_process_stream", b"apm_process_stream", "apm_set_stream_delay", b"apm_set_stream_delay", "audio_stream_from_participant", b"audio_stream_from_participant", "byte_read_all", b"byte_read_all", "byte_read_incremental", b"byte_read_incremental", "byte_stream_close", b"byte_stream_close", "byte_stream_open", b"byte_stream_open", "byte_stream_write", b"byte_stream_write", "byte_write_to_file", b"byte_write_to_file", "capture_audio_frame", b"capture_audio_frame", "capture_video_frame", b"capture_video_frame", "clear_audio_buffer", b"clear_audio_buffer", "connect", b"connect", "create_audio_track", b"create_audio_track", "create_video_track", b"create_video_track", "data_track_stream_read", b"data_track_stream_read", "disconnect", b"disconnect", "dispose", b"dispose", "e2ee", b"e2ee", "enable_remote_track", b"enable_remote_track", "enable_remote_track_publication", b"enable_remote_track_publication", "flush_sox_resampler", b"flush_sox_resampler", "get_session_stats", b"get_session_stats", "get_stats", b"get_stats", "load_audio_filter_plugin", b"load_audio_filter_plugin", "local_data_track_is_published", b"local_data_track_is_published", "local_data_track_try_push", b"local_data_track_try_push", "local_data_track_unpublish", b"local_data_track_unpublish", "local_track_mute", b"local_track_mute", "message", b"message", "new_apm", b"new_apm", "new_audio_resampler", b"new_audio_resampler", "new_audio_source", b"new_audio_source", "new_audio_stream", b"new_audio_stream", "new_sox_resampler", b"new_sox_resampler", "new_video_source", b"new_video_source", "new_video_stream", b"new_video_stream", "perform_rpc", b"perform_rpc", "publish_data", b"publish_data", "publish_data_track", b"publish_data_track", "publish_sip_dtmf", b"publish_sip_dtmf", "publish_track", b"publish_track", "publish_transcription", b"publish_transcription", "push_sox_resampler", b"push_sox_resampler", "register_rpc_method", b"register_rpc_method", "remix_and_resample", b"remix_and_resample", "remote_data_track_is_published", b"remote_data_track_is_published", "rpc_method_invocation_response", b"rpc_method_invocation_response", "send_bytes", b"send_bytes", "send_chat_message", b"send_chat_message", "send_file", b"send_file", "send_stream_chunk", b"send_stream_chunk", "send_stream_header", b"send_stream_header", "send_stream_trailer", b"send_stream_trailer", "send_text", b"send_text", "set_data_channel_buffered_amount_low_threshold", b"set_data_channel_buffered_amount_low_threshold", "set_local_attributes", b"set_local_attributes", "set_local_metadata", b"set_local_metadata", "set_local_name", b"set_local_name", "set_remote_track_publication_quality", b"set_remote_track_publication_quality", "set_subscribed", b"set_subscribed", "set_track_subscription_permissions", b"set_track_subscription_permissions", "simulate_scenario", b"simulate_scenario", "subscribe_data_track", b"subscribe_data_track", "text_read_all", b"text_read_all", "text_read_incremental", b"text_read_incremental", "text_stream_close", b"text_stream_close", "text_stream_open", b"text_stream_open", "text_stream_write", b"text_stream_write", "unpublish_track", b"unpublish_track", "unregister_rpc_method", b"unregister_rpc_method", "update_remote_track_publication_dimension", b"update_remote_track_publication_dimension", "video_convert", b"video_convert", "video_stream_from_participant", b"video_stream_from_participant"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["apm_process_reverse_stream", b"apm_process_reverse_stream", "apm_process_stream", b"apm_process_stream", "apm_set_stream_delay", b"apm_set_stream_delay", "audio_stream_from_participant", b"audio_stream_from_participant", "byte_read_all", b"byte_read_all", "byte_read_incremental", b"byte_read_incremental", "byte_stream_close", b"byte_stream_close", "byte_stream_open", b"byte_stream_open", "byte_stream_write", b"byte_stream_write", "byte_write_to_file", b"byte_write_to_file", "capture_audio_frame", b"capture_audio_frame", "capture_video_frame", b"capture_video_frame", "clear_audio_buffer", b"clear_audio_buffer", "connect", b"connect", "create_audio_track", b"create_audio_track", "create_video_track", b"create_video_track", "data_track_stream_read", b"data_track_stream_read", "disconnect", b"disconnect", "dispose", b"dispose", "e2ee", b"e2ee", "enable_remote_track", b"enable_remote_track", "enable_remote_track_publication", b"enable_remote_track_publication", "flush_sox_resampler", b"flush_sox_resampler", "get_session_stats", b"get_session_stats", "get_stats", b"get_stats", "load_audio_filter_plugin", b"load_audio_filter_plugin", "local_data_track_is_published", b"local_data_track_is_published", "local_data_track_try_push", b"local_data_track_try_push", "local_data_track_unpublish", b"local_data_track_unpublish", "local_track_mute", b"local_track_mute", "message", b"message", "new_apm", b"new_apm", "new_audio_resampler", b"new_audio_resampler", "new_audio_source", b"new_audio_source", "new_audio_stream", b"new_audio_stream", "new_sox_resampler", b"new_sox_resampler", "new_video_source", b"new_video_source", "new_video_stream", b"new_video_stream", "perform_rpc", b"perform_rpc", "publish_data", b"publish_data", "publish_data_track", b"publish_data_track", "publish_sip_dtmf", b"publish_sip_dtmf", "publish_track", b"publish_track", "publish_transcription", b"publish_transcription", "push_sox_resampler", b"push_sox_resampler", "register_rpc_method", b"register_rpc_method", "remix_and_resample", b"remix_and_resample", "remote_data_track_is_published", b"remote_data_track_is_published", "rpc_method_invocation_response", b"rpc_method_invocation_response", "send_bytes", b"send_bytes", "send_chat_message", b"send_chat_message", "send_file", b"send_file", "send_stream_chunk", b"send_stream_chunk", "send_stream_header", b"send_stream_header", "send_stream_trailer", b"send_stream_trailer", "send_text", b"send_text", "set_data_channel_buffered_amount_low_threshold", b"set_data_channel_buffered_amount_low_threshold", "set_local_attributes", b"set_local_attributes", "set_local_metadata", b"set_local_metadata", "set_local_name", b"set_local_name", "set_remote_track_publication_quality", b"set_remote_track_publication_quality", "set_subscribed", b"set_subscribed", "set_track_subscription_permissions", b"set_track_subscription_permissions", "simulate_scenario", b"simulate_scenario", "subscribe_data_track", b"subscribe_data_track", "text_read_all", b"text_read_all", "text_read_incremental", b"text_read_incremental", "text_stream_close", b"text_stream_close", "text_stream_open", b"text_stream_open", "text_stream_write", b"text_stream_write", "unpublish_track", b"unpublish_track", "unregister_rpc_method", b"unregister_rpc_method", "update_remote_track_publication_dimension", b"update_remote_track_publication_dimension", "video_convert", b"video_convert", "video_stream_from_participant", b"video_stream_from_participant"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["dispose", "connect", "disconnect", "publish_track", "unpublish_track", "publish_data", "set_subscribed", "set_local_metadata", "set_local_name", "set_local_attributes", "get_session_stats", "publish_transcription", "publish_sip_dtmf", "create_video_track", "create_audio_track", "local_track_mute", "enable_remote_track", "get_stats", "set_track_subscription_permissions", "new_video_stream", "new_video_source", "capture_video_frame", "video_convert", "video_stream_from_participant", "new_audio_stream", "new_audio_source", "capture_audio_frame", "clear_audio_buffer", "new_audio_resampler", "remix_and_resample", "audio_stream_from_participant", "e2ee", "new_sox_resampler", "push_sox_resampler", "flush_sox_resampler", "send_chat_message", "perform_rpc", "register_rpc_method", "unregister_rpc_method", "rpc_method_invocation_response", "enable_remote_track_publication", "update_remote_track_publication_dimension", "send_stream_header", "send_stream_chunk", "send_stream_trailer", "set_data_channel_buffered_amount_low_threshold", "load_audio_filter_plugin", "new_apm", "apm_process_stream", "apm_process_reverse_stream", "apm_set_stream_delay", "byte_read_incremental", "byte_read_all", "byte_write_to_file", "text_read_incremental", "text_read_all", "send_file", "send_text", "byte_stream_open", "byte_stream_write", "byte_stream_close", "text_stream_open", "text_stream_write", "text_stream_close", "send_bytes", "set_remote_track_publication_quality", "publish_data_track", "local_data_track_try_push", "local_data_track_unpublish", "local_data_track_is_published", "subscribe_data_track", "remote_data_track_is_published", "data_track_stream_read", "simulate_scenario"] # noqa: Y015 - _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 - def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... - -Global___FfiResponse: _TypeAlias = FfiResponse # noqa: Y015 - -@_typing.final -class FfiEvent(_message.Message): + def HasField(self, field_name: typing.Literal["apm_process_reverse_stream", b"apm_process_reverse_stream", "apm_process_stream", b"apm_process_stream", "apm_set_stream_delay", b"apm_set_stream_delay", "audio_stream_from_participant", b"audio_stream_from_participant", "byte_read_all", b"byte_read_all", "byte_read_incremental", b"byte_read_incremental", "byte_stream_close", b"byte_stream_close", "byte_stream_open", b"byte_stream_open", "byte_stream_write", b"byte_stream_write", "byte_write_to_file", b"byte_write_to_file", "capture_audio_frame", b"capture_audio_frame", "capture_video_frame", b"capture_video_frame", "clear_audio_buffer", b"clear_audio_buffer", "connect", b"connect", "create_audio_track", b"create_audio_track", "create_video_track", b"create_video_track", "data_track_stream_read", b"data_track_stream_read", "disconnect", b"disconnect", "dispose", b"dispose", "e2ee", b"e2ee", "enable_remote_track", b"enable_remote_track", "enable_remote_track_publication", b"enable_remote_track_publication", "flush_sox_resampler", b"flush_sox_resampler", "get_session_stats", b"get_session_stats", "get_stats", b"get_stats", "load_audio_filter_plugin", b"load_audio_filter_plugin", "local_data_track_is_published", b"local_data_track_is_published", "local_data_track_try_push", b"local_data_track_try_push", "local_data_track_unpublish", b"local_data_track_unpublish", "local_track_mute", b"local_track_mute", "message", b"message", "new_apm", b"new_apm", "new_audio_resampler", b"new_audio_resampler", "new_audio_source", b"new_audio_source", "new_audio_stream", b"new_audio_stream", "new_sox_resampler", b"new_sox_resampler", "new_video_source", b"new_video_source", "new_video_stream", b"new_video_stream", "perform_rpc", b"perform_rpc", "publish_data", b"publish_data", "publish_data_track", b"publish_data_track", "publish_sip_dtmf", b"publish_sip_dtmf", "publish_track", b"publish_track", "publish_transcription", b"publish_transcription", "push_sox_resampler", b"push_sox_resampler", "register_rpc_method", b"register_rpc_method", "remix_and_resample", b"remix_and_resample", "remote_data_track_is_published", b"remote_data_track_is_published", "rpc_method_invocation_response", b"rpc_method_invocation_response", "send_bytes", b"send_bytes", "send_chat_message", b"send_chat_message", "send_file", b"send_file", "send_stream_chunk", b"send_stream_chunk", "send_stream_header", b"send_stream_header", "send_stream_trailer", b"send_stream_trailer", "send_text", b"send_text", "set_data_channel_buffered_amount_low_threshold", b"set_data_channel_buffered_amount_low_threshold", "set_local_attributes", b"set_local_attributes", "set_local_metadata", b"set_local_metadata", "set_local_name", b"set_local_name", "set_remote_track_publication_quality", b"set_remote_track_publication_quality", "set_subscribed", b"set_subscribed", "set_track_subscription_permissions", b"set_track_subscription_permissions", "simulate_scenario", b"simulate_scenario", "subscribe_data_track", b"subscribe_data_track", "text_read_all", b"text_read_all", "text_read_incremental", b"text_read_incremental", "text_stream_close", b"text_stream_close", "text_stream_open", b"text_stream_open", "text_stream_write", b"text_stream_write", "unpublish_track", b"unpublish_track", "unregister_rpc_method", b"unregister_rpc_method", "update_remote_track_publication_dimension", b"update_remote_track_publication_dimension", "video_convert", b"video_convert", "video_stream_from_participant", b"video_stream_from_participant"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["apm_process_reverse_stream", b"apm_process_reverse_stream", "apm_process_stream", b"apm_process_stream", "apm_set_stream_delay", b"apm_set_stream_delay", "audio_stream_from_participant", b"audio_stream_from_participant", "byte_read_all", b"byte_read_all", "byte_read_incremental", b"byte_read_incremental", "byte_stream_close", b"byte_stream_close", "byte_stream_open", b"byte_stream_open", "byte_stream_write", b"byte_stream_write", "byte_write_to_file", b"byte_write_to_file", "capture_audio_frame", b"capture_audio_frame", "capture_video_frame", b"capture_video_frame", "clear_audio_buffer", b"clear_audio_buffer", "connect", b"connect", "create_audio_track", b"create_audio_track", "create_video_track", b"create_video_track", "data_track_stream_read", b"data_track_stream_read", "disconnect", b"disconnect", "dispose", b"dispose", "e2ee", b"e2ee", "enable_remote_track", b"enable_remote_track", "enable_remote_track_publication", b"enable_remote_track_publication", "flush_sox_resampler", b"flush_sox_resampler", "get_session_stats", b"get_session_stats", "get_stats", b"get_stats", "load_audio_filter_plugin", b"load_audio_filter_plugin", "local_data_track_is_published", b"local_data_track_is_published", "local_data_track_try_push", b"local_data_track_try_push", "local_data_track_unpublish", b"local_data_track_unpublish", "local_track_mute", b"local_track_mute", "message", b"message", "new_apm", b"new_apm", "new_audio_resampler", b"new_audio_resampler", "new_audio_source", b"new_audio_source", "new_audio_stream", b"new_audio_stream", "new_sox_resampler", b"new_sox_resampler", "new_video_source", b"new_video_source", "new_video_stream", b"new_video_stream", "perform_rpc", b"perform_rpc", "publish_data", b"publish_data", "publish_data_track", b"publish_data_track", "publish_sip_dtmf", b"publish_sip_dtmf", "publish_track", b"publish_track", "publish_transcription", b"publish_transcription", "push_sox_resampler", b"push_sox_resampler", "register_rpc_method", b"register_rpc_method", "remix_and_resample", b"remix_and_resample", "remote_data_track_is_published", b"remote_data_track_is_published", "rpc_method_invocation_response", b"rpc_method_invocation_response", "send_bytes", b"send_bytes", "send_chat_message", b"send_chat_message", "send_file", b"send_file", "send_stream_chunk", b"send_stream_chunk", "send_stream_header", b"send_stream_header", "send_stream_trailer", b"send_stream_trailer", "send_text", b"send_text", "set_data_channel_buffered_amount_low_threshold", b"set_data_channel_buffered_amount_low_threshold", "set_local_attributes", b"set_local_attributes", "set_local_metadata", b"set_local_metadata", "set_local_name", b"set_local_name", "set_remote_track_publication_quality", b"set_remote_track_publication_quality", "set_subscribed", b"set_subscribed", "set_track_subscription_permissions", b"set_track_subscription_permissions", "simulate_scenario", b"simulate_scenario", "subscribe_data_track", b"subscribe_data_track", "text_read_all", b"text_read_all", "text_read_incremental", b"text_read_incremental", "text_stream_close", b"text_stream_close", "text_stream_open", b"text_stream_open", "text_stream_write", b"text_stream_write", "unpublish_track", b"unpublish_track", "unregister_rpc_method", b"unregister_rpc_method", "update_remote_track_publication_dimension", b"update_remote_track_publication_dimension", "video_convert", b"video_convert", "video_stream_from_participant", b"video_stream_from_participant"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["dispose", "connect", "disconnect", "publish_track", "unpublish_track", "publish_data", "set_subscribed", "set_local_metadata", "set_local_name", "set_local_attributes", "get_session_stats", "publish_transcription", "publish_sip_dtmf", "create_video_track", "create_audio_track", "local_track_mute", "enable_remote_track", "get_stats", "set_track_subscription_permissions", "new_video_stream", "new_video_source", "capture_video_frame", "video_convert", "video_stream_from_participant", "new_audio_stream", "new_audio_source", "capture_audio_frame", "clear_audio_buffer", "new_audio_resampler", "remix_and_resample", "audio_stream_from_participant", "e2ee", "new_sox_resampler", "push_sox_resampler", "flush_sox_resampler", "send_chat_message", "perform_rpc", "register_rpc_method", "unregister_rpc_method", "rpc_method_invocation_response", "enable_remote_track_publication", "update_remote_track_publication_dimension", "send_stream_header", "send_stream_chunk", "send_stream_trailer", "set_data_channel_buffered_amount_low_threshold", "load_audio_filter_plugin", "new_apm", "apm_process_stream", "apm_process_reverse_stream", "apm_set_stream_delay", "byte_read_incremental", "byte_read_all", "byte_write_to_file", "text_read_incremental", "text_read_all", "send_file", "send_text", "byte_stream_open", "byte_stream_write", "byte_stream_close", "text_stream_open", "text_stream_write", "text_stream_close", "send_bytes", "set_remote_track_publication_quality", "publish_data_track", "local_data_track_try_push", "local_data_track_unpublish", "local_data_track_is_published", "subscribe_data_track", "remote_data_track_is_published", "data_track_stream_read", "simulate_scenario"] | None: ... + +global___FfiResponse = FfiResponse + +@typing.final +class FfiEvent(google.protobuf.message.Message): """To minimize complexity, participant events are not included in the protocol. It is easily deducible from the room events and it turned out that is is easier to implement on the ffi client side. """ - DESCRIPTOR: _descriptor.Descriptor - - ROOM_EVENT_FIELD_NUMBER: _builtins.int - TRACK_EVENT_FIELD_NUMBER: _builtins.int - VIDEO_STREAM_EVENT_FIELD_NUMBER: _builtins.int - AUDIO_STREAM_EVENT_FIELD_NUMBER: _builtins.int - CONNECT_FIELD_NUMBER: _builtins.int - DISCONNECT_FIELD_NUMBER: _builtins.int - DISPOSE_FIELD_NUMBER: _builtins.int - PUBLISH_TRACK_FIELD_NUMBER: _builtins.int - UNPUBLISH_TRACK_FIELD_NUMBER: _builtins.int - PUBLISH_DATA_FIELD_NUMBER: _builtins.int - PUBLISH_TRANSCRIPTION_FIELD_NUMBER: _builtins.int - CAPTURE_AUDIO_FRAME_FIELD_NUMBER: _builtins.int - SET_LOCAL_METADATA_FIELD_NUMBER: _builtins.int - SET_LOCAL_NAME_FIELD_NUMBER: _builtins.int - SET_LOCAL_ATTRIBUTES_FIELD_NUMBER: _builtins.int - GET_STATS_FIELD_NUMBER: _builtins.int - LOGS_FIELD_NUMBER: _builtins.int - GET_SESSION_STATS_FIELD_NUMBER: _builtins.int - PANIC_FIELD_NUMBER: _builtins.int - PUBLISH_SIP_DTMF_FIELD_NUMBER: _builtins.int - CHAT_MESSAGE_FIELD_NUMBER: _builtins.int - PERFORM_RPC_FIELD_NUMBER: _builtins.int - RPC_METHOD_INVOCATION_FIELD_NUMBER: _builtins.int - SEND_STREAM_HEADER_FIELD_NUMBER: _builtins.int - SEND_STREAM_CHUNK_FIELD_NUMBER: _builtins.int - SEND_STREAM_TRAILER_FIELD_NUMBER: _builtins.int - BYTE_STREAM_READER_EVENT_FIELD_NUMBER: _builtins.int - BYTE_STREAM_READER_READ_ALL_FIELD_NUMBER: _builtins.int - BYTE_STREAM_READER_WRITE_TO_FILE_FIELD_NUMBER: _builtins.int - BYTE_STREAM_OPEN_FIELD_NUMBER: _builtins.int - BYTE_STREAM_WRITER_WRITE_FIELD_NUMBER: _builtins.int - BYTE_STREAM_WRITER_CLOSE_FIELD_NUMBER: _builtins.int - SEND_FILE_FIELD_NUMBER: _builtins.int - TEXT_STREAM_READER_EVENT_FIELD_NUMBER: _builtins.int - TEXT_STREAM_READER_READ_ALL_FIELD_NUMBER: _builtins.int - TEXT_STREAM_OPEN_FIELD_NUMBER: _builtins.int - TEXT_STREAM_WRITER_WRITE_FIELD_NUMBER: _builtins.int - TEXT_STREAM_WRITER_CLOSE_FIELD_NUMBER: _builtins.int - SEND_TEXT_FIELD_NUMBER: _builtins.int - SEND_BYTES_FIELD_NUMBER: _builtins.int - PUBLISH_DATA_TRACK_FIELD_NUMBER: _builtins.int - DATA_TRACK_STREAM_EVENT_FIELD_NUMBER: _builtins.int - SIMULATE_SCENARIO_FIELD_NUMBER: _builtins.int - @_builtins.property - def room_event(self) -> _room_pb2.RoomEvent: ... - @_builtins.property - def track_event(self) -> _track_pb2.TrackEvent: ... - @_builtins.property - def video_stream_event(self) -> _video_frame_pb2.VideoStreamEvent: ... - @_builtins.property - def audio_stream_event(self) -> _audio_frame_pb2.AudioStreamEvent: ... - @_builtins.property - def connect(self) -> _room_pb2.ConnectCallback: ... - @_builtins.property - def disconnect(self) -> _room_pb2.DisconnectCallback: ... - @_builtins.property - def dispose(self) -> Global___DisposeCallback: ... - @_builtins.property - def publish_track(self) -> _room_pb2.PublishTrackCallback: ... - @_builtins.property - def unpublish_track(self) -> _room_pb2.UnpublishTrackCallback: ... - @_builtins.property - def publish_data(self) -> _room_pb2.PublishDataCallback: ... - @_builtins.property - def publish_transcription(self) -> _room_pb2.PublishTranscriptionCallback: ... - @_builtins.property - def capture_audio_frame(self) -> _audio_frame_pb2.CaptureAudioFrameCallback: ... - @_builtins.property - def set_local_metadata(self) -> _room_pb2.SetLocalMetadataCallback: ... - @_builtins.property - def set_local_name(self) -> _room_pb2.SetLocalNameCallback: ... - @_builtins.property - def set_local_attributes(self) -> _room_pb2.SetLocalAttributesCallback: ... - @_builtins.property - def get_stats(self) -> _track_pb2.GetStatsCallback: ... - @_builtins.property - def logs(self) -> Global___LogBatch: ... - @_builtins.property - def get_session_stats(self) -> _room_pb2.GetSessionStatsCallback: ... - @_builtins.property - def panic(self) -> Global___Panic: ... - @_builtins.property - def publish_sip_dtmf(self) -> _room_pb2.PublishSipDtmfCallback: ... - @_builtins.property - def chat_message(self) -> _room_pb2.SendChatMessageCallback: ... - @_builtins.property - def perform_rpc(self) -> _rpc_pb2.PerformRpcCallback: ... - @_builtins.property - def rpc_method_invocation(self) -> _rpc_pb2.RpcMethodInvocationEvent: ... - @_builtins.property - def send_stream_header(self) -> _room_pb2.SendStreamHeaderCallback: + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ROOM_EVENT_FIELD_NUMBER: builtins.int + TRACK_EVENT_FIELD_NUMBER: builtins.int + VIDEO_STREAM_EVENT_FIELD_NUMBER: builtins.int + AUDIO_STREAM_EVENT_FIELD_NUMBER: builtins.int + CONNECT_FIELD_NUMBER: builtins.int + DISCONNECT_FIELD_NUMBER: builtins.int + DISPOSE_FIELD_NUMBER: builtins.int + PUBLISH_TRACK_FIELD_NUMBER: builtins.int + UNPUBLISH_TRACK_FIELD_NUMBER: builtins.int + PUBLISH_DATA_FIELD_NUMBER: builtins.int + PUBLISH_TRANSCRIPTION_FIELD_NUMBER: builtins.int + CAPTURE_AUDIO_FRAME_FIELD_NUMBER: builtins.int + SET_LOCAL_METADATA_FIELD_NUMBER: builtins.int + SET_LOCAL_NAME_FIELD_NUMBER: builtins.int + SET_LOCAL_ATTRIBUTES_FIELD_NUMBER: builtins.int + GET_STATS_FIELD_NUMBER: builtins.int + LOGS_FIELD_NUMBER: builtins.int + GET_SESSION_STATS_FIELD_NUMBER: builtins.int + PANIC_FIELD_NUMBER: builtins.int + PUBLISH_SIP_DTMF_FIELD_NUMBER: builtins.int + CHAT_MESSAGE_FIELD_NUMBER: builtins.int + PERFORM_RPC_FIELD_NUMBER: builtins.int + RPC_METHOD_INVOCATION_FIELD_NUMBER: builtins.int + SEND_STREAM_HEADER_FIELD_NUMBER: builtins.int + SEND_STREAM_CHUNK_FIELD_NUMBER: builtins.int + SEND_STREAM_TRAILER_FIELD_NUMBER: builtins.int + BYTE_STREAM_READER_EVENT_FIELD_NUMBER: builtins.int + BYTE_STREAM_READER_READ_ALL_FIELD_NUMBER: builtins.int + BYTE_STREAM_READER_WRITE_TO_FILE_FIELD_NUMBER: builtins.int + BYTE_STREAM_OPEN_FIELD_NUMBER: builtins.int + BYTE_STREAM_WRITER_WRITE_FIELD_NUMBER: builtins.int + BYTE_STREAM_WRITER_CLOSE_FIELD_NUMBER: builtins.int + SEND_FILE_FIELD_NUMBER: builtins.int + TEXT_STREAM_READER_EVENT_FIELD_NUMBER: builtins.int + TEXT_STREAM_READER_READ_ALL_FIELD_NUMBER: builtins.int + TEXT_STREAM_OPEN_FIELD_NUMBER: builtins.int + TEXT_STREAM_WRITER_WRITE_FIELD_NUMBER: builtins.int + TEXT_STREAM_WRITER_CLOSE_FIELD_NUMBER: builtins.int + SEND_TEXT_FIELD_NUMBER: builtins.int + SEND_BYTES_FIELD_NUMBER: builtins.int + PUBLISH_DATA_TRACK_FIELD_NUMBER: builtins.int + DATA_TRACK_STREAM_EVENT_FIELD_NUMBER: builtins.int + SIMULATE_SCENARIO_FIELD_NUMBER: builtins.int + @property + def room_event(self) -> room_pb2.RoomEvent: ... + @property + def track_event(self) -> track_pb2.TrackEvent: ... + @property + def video_stream_event(self) -> video_frame_pb2.VideoStreamEvent: ... + @property + def audio_stream_event(self) -> audio_frame_pb2.AudioStreamEvent: ... + @property + def connect(self) -> room_pb2.ConnectCallback: ... + @property + def disconnect(self) -> room_pb2.DisconnectCallback: ... + @property + def dispose(self) -> global___DisposeCallback: ... + @property + def publish_track(self) -> room_pb2.PublishTrackCallback: ... + @property + def unpublish_track(self) -> room_pb2.UnpublishTrackCallback: ... + @property + def publish_data(self) -> room_pb2.PublishDataCallback: ... + @property + def publish_transcription(self) -> room_pb2.PublishTranscriptionCallback: ... + @property + def capture_audio_frame(self) -> audio_frame_pb2.CaptureAudioFrameCallback: ... + @property + def set_local_metadata(self) -> room_pb2.SetLocalMetadataCallback: ... + @property + def set_local_name(self) -> room_pb2.SetLocalNameCallback: ... + @property + def set_local_attributes(self) -> room_pb2.SetLocalAttributesCallback: ... + @property + def get_stats(self) -> track_pb2.GetStatsCallback: ... + @property + def logs(self) -> global___LogBatch: ... + @property + def get_session_stats(self) -> room_pb2.GetSessionStatsCallback: ... + @property + def panic(self) -> global___Panic: ... + @property + def publish_sip_dtmf(self) -> room_pb2.PublishSipDtmfCallback: ... + @property + def chat_message(self) -> room_pb2.SendChatMessageCallback: ... + @property + def perform_rpc(self) -> rpc_pb2.PerformRpcCallback: ... + @property + def rpc_method_invocation(self) -> rpc_pb2.RpcMethodInvocationEvent: ... + @property + def send_stream_header(self) -> room_pb2.SendStreamHeaderCallback: """Data Streams (low level)""" - @_builtins.property - def send_stream_chunk(self) -> _room_pb2.SendStreamChunkCallback: ... - @_builtins.property - def send_stream_trailer(self) -> _room_pb2.SendStreamTrailerCallback: ... - @_builtins.property - def byte_stream_reader_event(self) -> _data_stream_pb2.ByteStreamReaderEvent: + @property + def send_stream_chunk(self) -> room_pb2.SendStreamChunkCallback: ... + @property + def send_stream_trailer(self) -> room_pb2.SendStreamTrailerCallback: ... + @property + def byte_stream_reader_event(self) -> data_stream_pb2.ByteStreamReaderEvent: """Data Streams (high level)""" - @_builtins.property - def byte_stream_reader_read_all(self) -> _data_stream_pb2.ByteStreamReaderReadAllCallback: ... - @_builtins.property - def byte_stream_reader_write_to_file(self) -> _data_stream_pb2.ByteStreamReaderWriteToFileCallback: ... - @_builtins.property - def byte_stream_open(self) -> _data_stream_pb2.ByteStreamOpenCallback: ... - @_builtins.property - def byte_stream_writer_write(self) -> _data_stream_pb2.ByteStreamWriterWriteCallback: ... - @_builtins.property - def byte_stream_writer_close(self) -> _data_stream_pb2.ByteStreamWriterCloseCallback: ... - @_builtins.property - def send_file(self) -> _data_stream_pb2.StreamSendFileCallback: ... - @_builtins.property - def text_stream_reader_event(self) -> _data_stream_pb2.TextStreamReaderEvent: ... - @_builtins.property - def text_stream_reader_read_all(self) -> _data_stream_pb2.TextStreamReaderReadAllCallback: ... - @_builtins.property - def text_stream_open(self) -> _data_stream_pb2.TextStreamOpenCallback: ... - @_builtins.property - def text_stream_writer_write(self) -> _data_stream_pb2.TextStreamWriterWriteCallback: ... - @_builtins.property - def text_stream_writer_close(self) -> _data_stream_pb2.TextStreamWriterCloseCallback: ... - @_builtins.property - def send_text(self) -> _data_stream_pb2.StreamSendTextCallback: ... - @_builtins.property - def send_bytes(self) -> _data_stream_pb2.StreamSendBytesCallback: ... - @_builtins.property - def publish_data_track(self) -> _data_track_pb2.PublishDataTrackCallback: + @property + def byte_stream_reader_read_all(self) -> data_stream_pb2.ByteStreamReaderReadAllCallback: ... + @property + def byte_stream_reader_write_to_file(self) -> data_stream_pb2.ByteStreamReaderWriteToFileCallback: ... + @property + def byte_stream_open(self) -> data_stream_pb2.ByteStreamOpenCallback: ... + @property + def byte_stream_writer_write(self) -> data_stream_pb2.ByteStreamWriterWriteCallback: ... + @property + def byte_stream_writer_close(self) -> data_stream_pb2.ByteStreamWriterCloseCallback: ... + @property + def send_file(self) -> data_stream_pb2.StreamSendFileCallback: ... + @property + def text_stream_reader_event(self) -> data_stream_pb2.TextStreamReaderEvent: ... + @property + def text_stream_reader_read_all(self) -> data_stream_pb2.TextStreamReaderReadAllCallback: ... + @property + def text_stream_open(self) -> data_stream_pb2.TextStreamOpenCallback: ... + @property + def text_stream_writer_write(self) -> data_stream_pb2.TextStreamWriterWriteCallback: ... + @property + def text_stream_writer_close(self) -> data_stream_pb2.TextStreamWriterCloseCallback: ... + @property + def send_text(self) -> data_stream_pb2.StreamSendTextCallback: ... + @property + def send_bytes(self) -> data_stream_pb2.StreamSendBytesCallback: ... + @property + def publish_data_track(self) -> data_track_pb2.PublishDataTrackCallback: """Data Track (local)""" - @_builtins.property - def data_track_stream_event(self) -> _data_track_pb2.DataTrackStreamEvent: + @property + def data_track_stream_event(self) -> data_track_pb2.DataTrackStreamEvent: """Data Track (remote)""" - @_builtins.property - def simulate_scenario(self) -> _room_pb2.SimulateScenarioCallback: ... + @property + def simulate_scenario(self) -> room_pb2.SimulateScenarioCallback: ... def __init__( self, *, - room_event: _room_pb2.RoomEvent | None = ..., - track_event: _track_pb2.TrackEvent | None = ..., - video_stream_event: _video_frame_pb2.VideoStreamEvent | None = ..., - audio_stream_event: _audio_frame_pb2.AudioStreamEvent | None = ..., - connect: _room_pb2.ConnectCallback | None = ..., - disconnect: _room_pb2.DisconnectCallback | None = ..., - dispose: Global___DisposeCallback | None = ..., - publish_track: _room_pb2.PublishTrackCallback | None = ..., - unpublish_track: _room_pb2.UnpublishTrackCallback | None = ..., - publish_data: _room_pb2.PublishDataCallback | None = ..., - publish_transcription: _room_pb2.PublishTranscriptionCallback | None = ..., - capture_audio_frame: _audio_frame_pb2.CaptureAudioFrameCallback | None = ..., - set_local_metadata: _room_pb2.SetLocalMetadataCallback | None = ..., - set_local_name: _room_pb2.SetLocalNameCallback | None = ..., - set_local_attributes: _room_pb2.SetLocalAttributesCallback | None = ..., - get_stats: _track_pb2.GetStatsCallback | None = ..., - logs: Global___LogBatch | None = ..., - get_session_stats: _room_pb2.GetSessionStatsCallback | None = ..., - panic: Global___Panic | None = ..., - publish_sip_dtmf: _room_pb2.PublishSipDtmfCallback | None = ..., - chat_message: _room_pb2.SendChatMessageCallback | None = ..., - perform_rpc: _rpc_pb2.PerformRpcCallback | None = ..., - rpc_method_invocation: _rpc_pb2.RpcMethodInvocationEvent | None = ..., - send_stream_header: _room_pb2.SendStreamHeaderCallback | None = ..., - send_stream_chunk: _room_pb2.SendStreamChunkCallback | None = ..., - send_stream_trailer: _room_pb2.SendStreamTrailerCallback | None = ..., - byte_stream_reader_event: _data_stream_pb2.ByteStreamReaderEvent | None = ..., - byte_stream_reader_read_all: _data_stream_pb2.ByteStreamReaderReadAllCallback | None = ..., - byte_stream_reader_write_to_file: _data_stream_pb2.ByteStreamReaderWriteToFileCallback | None = ..., - byte_stream_open: _data_stream_pb2.ByteStreamOpenCallback | None = ..., - byte_stream_writer_write: _data_stream_pb2.ByteStreamWriterWriteCallback | None = ..., - byte_stream_writer_close: _data_stream_pb2.ByteStreamWriterCloseCallback | None = ..., - send_file: _data_stream_pb2.StreamSendFileCallback | None = ..., - text_stream_reader_event: _data_stream_pb2.TextStreamReaderEvent | None = ..., - text_stream_reader_read_all: _data_stream_pb2.TextStreamReaderReadAllCallback | None = ..., - text_stream_open: _data_stream_pb2.TextStreamOpenCallback | None = ..., - text_stream_writer_write: _data_stream_pb2.TextStreamWriterWriteCallback | None = ..., - text_stream_writer_close: _data_stream_pb2.TextStreamWriterCloseCallback | None = ..., - send_text: _data_stream_pb2.StreamSendTextCallback | None = ..., - send_bytes: _data_stream_pb2.StreamSendBytesCallback | None = ..., - publish_data_track: _data_track_pb2.PublishDataTrackCallback | None = ..., - data_track_stream_event: _data_track_pb2.DataTrackStreamEvent | None = ..., - simulate_scenario: _room_pb2.SimulateScenarioCallback | None = ..., + room_event: room_pb2.RoomEvent | None = ..., + track_event: track_pb2.TrackEvent | None = ..., + video_stream_event: video_frame_pb2.VideoStreamEvent | None = ..., + audio_stream_event: audio_frame_pb2.AudioStreamEvent | None = ..., + connect: room_pb2.ConnectCallback | None = ..., + disconnect: room_pb2.DisconnectCallback | None = ..., + dispose: global___DisposeCallback | None = ..., + publish_track: room_pb2.PublishTrackCallback | None = ..., + unpublish_track: room_pb2.UnpublishTrackCallback | None = ..., + publish_data: room_pb2.PublishDataCallback | None = ..., + publish_transcription: room_pb2.PublishTranscriptionCallback | None = ..., + capture_audio_frame: audio_frame_pb2.CaptureAudioFrameCallback | None = ..., + set_local_metadata: room_pb2.SetLocalMetadataCallback | None = ..., + set_local_name: room_pb2.SetLocalNameCallback | None = ..., + set_local_attributes: room_pb2.SetLocalAttributesCallback | None = ..., + get_stats: track_pb2.GetStatsCallback | None = ..., + logs: global___LogBatch | None = ..., + get_session_stats: room_pb2.GetSessionStatsCallback | None = ..., + panic: global___Panic | None = ..., + publish_sip_dtmf: room_pb2.PublishSipDtmfCallback | None = ..., + chat_message: room_pb2.SendChatMessageCallback | None = ..., + perform_rpc: rpc_pb2.PerformRpcCallback | None = ..., + rpc_method_invocation: rpc_pb2.RpcMethodInvocationEvent | None = ..., + send_stream_header: room_pb2.SendStreamHeaderCallback | None = ..., + send_stream_chunk: room_pb2.SendStreamChunkCallback | None = ..., + send_stream_trailer: room_pb2.SendStreamTrailerCallback | None = ..., + byte_stream_reader_event: data_stream_pb2.ByteStreamReaderEvent | None = ..., + byte_stream_reader_read_all: data_stream_pb2.ByteStreamReaderReadAllCallback | None = ..., + byte_stream_reader_write_to_file: data_stream_pb2.ByteStreamReaderWriteToFileCallback | None = ..., + byte_stream_open: data_stream_pb2.ByteStreamOpenCallback | None = ..., + byte_stream_writer_write: data_stream_pb2.ByteStreamWriterWriteCallback | None = ..., + byte_stream_writer_close: data_stream_pb2.ByteStreamWriterCloseCallback | None = ..., + send_file: data_stream_pb2.StreamSendFileCallback | None = ..., + text_stream_reader_event: data_stream_pb2.TextStreamReaderEvent | None = ..., + text_stream_reader_read_all: data_stream_pb2.TextStreamReaderReadAllCallback | None = ..., + text_stream_open: data_stream_pb2.TextStreamOpenCallback | None = ..., + text_stream_writer_write: data_stream_pb2.TextStreamWriterWriteCallback | None = ..., + text_stream_writer_close: data_stream_pb2.TextStreamWriterCloseCallback | None = ..., + send_text: data_stream_pb2.StreamSendTextCallback | None = ..., + send_bytes: data_stream_pb2.StreamSendBytesCallback | None = ..., + publish_data_track: data_track_pb2.PublishDataTrackCallback | None = ..., + data_track_stream_event: data_track_pb2.DataTrackStreamEvent | None = ..., + simulate_scenario: room_pb2.SimulateScenarioCallback | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["audio_stream_event", b"audio_stream_event", "byte_stream_open", b"byte_stream_open", "byte_stream_reader_event", b"byte_stream_reader_event", "byte_stream_reader_read_all", b"byte_stream_reader_read_all", "byte_stream_reader_write_to_file", b"byte_stream_reader_write_to_file", "byte_stream_writer_close", b"byte_stream_writer_close", "byte_stream_writer_write", b"byte_stream_writer_write", "capture_audio_frame", b"capture_audio_frame", "chat_message", b"chat_message", "connect", b"connect", "data_track_stream_event", b"data_track_stream_event", "disconnect", b"disconnect", "dispose", b"dispose", "get_session_stats", b"get_session_stats", "get_stats", b"get_stats", "logs", b"logs", "message", b"message", "panic", b"panic", "perform_rpc", b"perform_rpc", "publish_data", b"publish_data", "publish_data_track", b"publish_data_track", "publish_sip_dtmf", b"publish_sip_dtmf", "publish_track", b"publish_track", "publish_transcription", b"publish_transcription", "room_event", b"room_event", "rpc_method_invocation", b"rpc_method_invocation", "send_bytes", b"send_bytes", "send_file", b"send_file", "send_stream_chunk", b"send_stream_chunk", "send_stream_header", b"send_stream_header", "send_stream_trailer", b"send_stream_trailer", "send_text", b"send_text", "set_local_attributes", b"set_local_attributes", "set_local_metadata", b"set_local_metadata", "set_local_name", b"set_local_name", "simulate_scenario", b"simulate_scenario", "text_stream_open", b"text_stream_open", "text_stream_reader_event", b"text_stream_reader_event", "text_stream_reader_read_all", b"text_stream_reader_read_all", "text_stream_writer_close", b"text_stream_writer_close", "text_stream_writer_write", b"text_stream_writer_write", "track_event", b"track_event", "unpublish_track", b"unpublish_track", "video_stream_event", b"video_stream_event"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["audio_stream_event", b"audio_stream_event", "byte_stream_open", b"byte_stream_open", "byte_stream_reader_event", b"byte_stream_reader_event", "byte_stream_reader_read_all", b"byte_stream_reader_read_all", "byte_stream_reader_write_to_file", b"byte_stream_reader_write_to_file", "byte_stream_writer_close", b"byte_stream_writer_close", "byte_stream_writer_write", b"byte_stream_writer_write", "capture_audio_frame", b"capture_audio_frame", "chat_message", b"chat_message", "connect", b"connect", "data_track_stream_event", b"data_track_stream_event", "disconnect", b"disconnect", "dispose", b"dispose", "get_session_stats", b"get_session_stats", "get_stats", b"get_stats", "logs", b"logs", "message", b"message", "panic", b"panic", "perform_rpc", b"perform_rpc", "publish_data", b"publish_data", "publish_data_track", b"publish_data_track", "publish_sip_dtmf", b"publish_sip_dtmf", "publish_track", b"publish_track", "publish_transcription", b"publish_transcription", "room_event", b"room_event", "rpc_method_invocation", b"rpc_method_invocation", "send_bytes", b"send_bytes", "send_file", b"send_file", "send_stream_chunk", b"send_stream_chunk", "send_stream_header", b"send_stream_header", "send_stream_trailer", b"send_stream_trailer", "send_text", b"send_text", "set_local_attributes", b"set_local_attributes", "set_local_metadata", b"set_local_metadata", "set_local_name", b"set_local_name", "simulate_scenario", b"simulate_scenario", "text_stream_open", b"text_stream_open", "text_stream_reader_event", b"text_stream_reader_event", "text_stream_reader_read_all", b"text_stream_reader_read_all", "text_stream_writer_close", b"text_stream_writer_close", "text_stream_writer_write", b"text_stream_writer_write", "track_event", b"track_event", "unpublish_track", b"unpublish_track", "video_stream_event", b"video_stream_event"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["room_event", "track_event", "video_stream_event", "audio_stream_event", "connect", "disconnect", "dispose", "publish_track", "unpublish_track", "publish_data", "publish_transcription", "capture_audio_frame", "set_local_metadata", "set_local_name", "set_local_attributes", "get_stats", "logs", "get_session_stats", "panic", "publish_sip_dtmf", "chat_message", "perform_rpc", "rpc_method_invocation", "send_stream_header", "send_stream_chunk", "send_stream_trailer", "byte_stream_reader_event", "byte_stream_reader_read_all", "byte_stream_reader_write_to_file", "byte_stream_open", "byte_stream_writer_write", "byte_stream_writer_close", "send_file", "text_stream_reader_event", "text_stream_reader_read_all", "text_stream_open", "text_stream_writer_write", "text_stream_writer_close", "send_text", "send_bytes", "publish_data_track", "data_track_stream_event", "simulate_scenario"] # noqa: Y015 - _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 - def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... - -Global___FfiEvent: _TypeAlias = FfiEvent # noqa: Y015 - -@_typing.final -class DisposeRequest(_message.Message): + def HasField(self, field_name: typing.Literal["audio_stream_event", b"audio_stream_event", "byte_stream_open", b"byte_stream_open", "byte_stream_reader_event", b"byte_stream_reader_event", "byte_stream_reader_read_all", b"byte_stream_reader_read_all", "byte_stream_reader_write_to_file", b"byte_stream_reader_write_to_file", "byte_stream_writer_close", b"byte_stream_writer_close", "byte_stream_writer_write", b"byte_stream_writer_write", "capture_audio_frame", b"capture_audio_frame", "chat_message", b"chat_message", "connect", b"connect", "data_track_stream_event", b"data_track_stream_event", "disconnect", b"disconnect", "dispose", b"dispose", "get_session_stats", b"get_session_stats", "get_stats", b"get_stats", "logs", b"logs", "message", b"message", "panic", b"panic", "perform_rpc", b"perform_rpc", "publish_data", b"publish_data", "publish_data_track", b"publish_data_track", "publish_sip_dtmf", b"publish_sip_dtmf", "publish_track", b"publish_track", "publish_transcription", b"publish_transcription", "room_event", b"room_event", "rpc_method_invocation", b"rpc_method_invocation", "send_bytes", b"send_bytes", "send_file", b"send_file", "send_stream_chunk", b"send_stream_chunk", "send_stream_header", b"send_stream_header", "send_stream_trailer", b"send_stream_trailer", "send_text", b"send_text", "set_local_attributes", b"set_local_attributes", "set_local_metadata", b"set_local_metadata", "set_local_name", b"set_local_name", "simulate_scenario", b"simulate_scenario", "text_stream_open", b"text_stream_open", "text_stream_reader_event", b"text_stream_reader_event", "text_stream_reader_read_all", b"text_stream_reader_read_all", "text_stream_writer_close", b"text_stream_writer_close", "text_stream_writer_write", b"text_stream_writer_write", "track_event", b"track_event", "unpublish_track", b"unpublish_track", "video_stream_event", b"video_stream_event"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["audio_stream_event", b"audio_stream_event", "byte_stream_open", b"byte_stream_open", "byte_stream_reader_event", b"byte_stream_reader_event", "byte_stream_reader_read_all", b"byte_stream_reader_read_all", "byte_stream_reader_write_to_file", b"byte_stream_reader_write_to_file", "byte_stream_writer_close", b"byte_stream_writer_close", "byte_stream_writer_write", b"byte_stream_writer_write", "capture_audio_frame", b"capture_audio_frame", "chat_message", b"chat_message", "connect", b"connect", "data_track_stream_event", b"data_track_stream_event", "disconnect", b"disconnect", "dispose", b"dispose", "get_session_stats", b"get_session_stats", "get_stats", b"get_stats", "logs", b"logs", "message", b"message", "panic", b"panic", "perform_rpc", b"perform_rpc", "publish_data", b"publish_data", "publish_data_track", b"publish_data_track", "publish_sip_dtmf", b"publish_sip_dtmf", "publish_track", b"publish_track", "publish_transcription", b"publish_transcription", "room_event", b"room_event", "rpc_method_invocation", b"rpc_method_invocation", "send_bytes", b"send_bytes", "send_file", b"send_file", "send_stream_chunk", b"send_stream_chunk", "send_stream_header", b"send_stream_header", "send_stream_trailer", b"send_stream_trailer", "send_text", b"send_text", "set_local_attributes", b"set_local_attributes", "set_local_metadata", b"set_local_metadata", "set_local_name", b"set_local_name", "simulate_scenario", b"simulate_scenario", "text_stream_open", b"text_stream_open", "text_stream_reader_event", b"text_stream_reader_event", "text_stream_reader_read_all", b"text_stream_reader_read_all", "text_stream_writer_close", b"text_stream_writer_close", "text_stream_writer_write", b"text_stream_writer_write", "track_event", b"track_event", "unpublish_track", b"unpublish_track", "video_stream_event", b"video_stream_event"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["room_event", "track_event", "video_stream_event", "audio_stream_event", "connect", "disconnect", "dispose", "publish_track", "unpublish_track", "publish_data", "publish_transcription", "capture_audio_frame", "set_local_metadata", "set_local_name", "set_local_attributes", "get_stats", "logs", "get_session_stats", "panic", "publish_sip_dtmf", "chat_message", "perform_rpc", "rpc_method_invocation", "send_stream_header", "send_stream_chunk", "send_stream_trailer", "byte_stream_reader_event", "byte_stream_reader_read_all", "byte_stream_reader_write_to_file", "byte_stream_open", "byte_stream_writer_write", "byte_stream_writer_close", "send_file", "text_stream_reader_event", "text_stream_reader_read_all", "text_stream_open", "text_stream_writer_write", "text_stream_writer_close", "send_text", "send_bytes", "publish_data_track", "data_track_stream_event", "simulate_scenario"] | None: ... + +global___FfiEvent = FfiEvent + +@typing.final +class DisposeRequest(google.protobuf.message.Message): """Stop all rooms synchronously (Do we need async here?). e.g: This is used for the Unity Editor after each assemblies reload. TODO(theomonnom): Implement a debug mode where we can find all leaked handles? """ - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_FIELD_NUMBER: _builtins.int + ASYNC_FIELD_NUMBER: builtins.int def __init__( self, ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async", b"async"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async", b"async"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async", b"async"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async", b"async"]) -> None: ... -Global___DisposeRequest: _TypeAlias = DisposeRequest # noqa: Y015 +global___DisposeRequest = DisposeRequest -@_typing.final -class DisposeResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class DisposeResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int """None if sync""" def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... -Global___DisposeResponse: _TypeAlias = DisposeResponse # noqa: Y015 +global___DisposeResponse = DisposeResponse -@_typing.final -class DisposeCallback(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class DisposeCallback(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___DisposeCallback: _TypeAlias = DisposeCallback # noqa: Y015 - -@_typing.final -class LogRecord(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - LEVEL_FIELD_NUMBER: _builtins.int - TARGET_FIELD_NUMBER: _builtins.int - MODULE_PATH_FIELD_NUMBER: _builtins.int - FILE_FIELD_NUMBER: _builtins.int - LINE_FIELD_NUMBER: _builtins.int - MESSAGE_FIELD_NUMBER: _builtins.int - level: Global___LogLevel.ValueType - target: _builtins.str + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + +global___DisposeCallback = DisposeCallback + +@typing.final +class LogRecord(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + LEVEL_FIELD_NUMBER: builtins.int + TARGET_FIELD_NUMBER: builtins.int + MODULE_PATH_FIELD_NUMBER: builtins.int + FILE_FIELD_NUMBER: builtins.int + LINE_FIELD_NUMBER: builtins.int + MESSAGE_FIELD_NUMBER: builtins.int + level: global___LogLevel.ValueType + target: builtins.str """e.g "livekit", "libwebrtc", "tokio-tungstenite", etc...""" - module_path: _builtins.str - file: _builtins.str - line: _builtins.int - message: _builtins.str + module_path: builtins.str + file: builtins.str + line: builtins.int + message: builtins.str def __init__( self, *, - level: Global___LogLevel.ValueType | None = ..., - target: _builtins.str | None = ..., - module_path: _builtins.str | None = ..., - file: _builtins.str | None = ..., - line: _builtins.int | None = ..., - message: _builtins.str | None = ..., + level: global___LogLevel.ValueType | None = ..., + target: builtins.str | None = ..., + module_path: builtins.str | None = ..., + file: builtins.str | None = ..., + line: builtins.int | None = ..., + message: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["file", b"file", "level", b"level", "line", b"line", "message", b"message", "module_path", b"module_path", "target", b"target"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["file", b"file", "level", b"level", "line", b"line", "message", b"message", "module_path", b"module_path", "target", b"target"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["file", b"file", "level", b"level", "line", b"line", "message", b"message", "module_path", b"module_path", "target", b"target"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["file", b"file", "level", b"level", "line", b"line", "message", b"message", "module_path", b"module_path", "target", b"target"]) -> None: ... -Global___LogRecord: _TypeAlias = LogRecord # noqa: Y015 +global___LogRecord = LogRecord -@_typing.final -class LogBatch(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class LogBatch(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - RECORDS_FIELD_NUMBER: _builtins.int - @_builtins.property - def records(self) -> _containers.RepeatedCompositeFieldContainer[Global___LogRecord]: ... + RECORDS_FIELD_NUMBER: builtins.int + @property + def records(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___LogRecord]: ... def __init__( self, *, - records: _abc.Iterable[Global___LogRecord] | None = ..., + records: collections.abc.Iterable[global___LogRecord] | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["records", b"records"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def ClearField(self, field_name: typing.Literal["records", b"records"]) -> None: ... -Global___LogBatch: _TypeAlias = LogBatch # noqa: Y015 +global___LogBatch = LogBatch -@_typing.final -class Panic(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class Panic(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - MESSAGE_FIELD_NUMBER: _builtins.int - message: _builtins.str + MESSAGE_FIELD_NUMBER: builtins.int + message: builtins.str def __init__( self, *, - message: _builtins.str | None = ..., + message: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["message", b"message"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["message", b"message"]) -> None: ... -Global___Panic: _TypeAlias = Panic # noqa: Y015 +global___Panic = Panic diff --git a/livekit-rtc/livekit/rtc/_proto/handle_pb2.py b/livekit-rtc/livekit/rtc/_proto/handle_pb2.py index 303d831b..2ae2db78 100644 --- a/livekit-rtc/livekit/rtc/_proto/handle_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/handle_pb2.py @@ -1,22 +1,12 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE # source: handle.proto -# Protobuf Python Version: 7.34.1 +# Protobuf Python Version: 4.25.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 7, - 34, - 1, - '', - 'handle.proto' -) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -29,8 +19,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'handle_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None _globals['DESCRIPTOR']._serialized_options = b'\252\002\rLiveKit.Proto' _globals['_FFIOWNEDHANDLE']._serialized_start=31 _globals['_FFIOWNEDHANDLE']._serialized_end=59 diff --git a/livekit-rtc/livekit/rtc/_proto/handle_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/handle_pb2.pyi index 49362e17..d433a6c2 100644 --- a/livekit-rtc/livekit/rtc/_proto/handle_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/handle_pb2.pyi @@ -16,21 +16,15 @@ See the License for the specific language governing permissions and limitations under the License. """ -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -import builtins as _builtins -import sys -import typing as _typing +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import typing -if sys.version_info >= (3, 11): - from typing import TypeAlias as _TypeAlias, Never as _Never -else: - from typing_extensions import TypeAlias as _TypeAlias, Never as _Never +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -DESCRIPTOR: _descriptor.FileDescriptor - -@_typing.final -class FfiOwnedHandle(_message.Message): +@typing.final +class FfiOwnedHandle(google.protobuf.message.Message): """# Safety The foreign language is responsable for disposing handles Forgetting to dispose the handle may lead to memory leaks @@ -42,19 +36,16 @@ class FfiOwnedHandle(_message.Message): (the variable name is suffixed with "_handle") """ - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ID_FIELD_NUMBER: _builtins.int - id: _builtins.int + ID_FIELD_NUMBER: builtins.int + id: builtins.int def __init__( self, *, - id: _builtins.int | None = ..., + id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["id", b"id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["id", b"id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["id", b"id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["id", b"id"]) -> None: ... -Global___FfiOwnedHandle: _TypeAlias = FfiOwnedHandle # noqa: Y015 +global___FfiOwnedHandle = FfiOwnedHandle diff --git a/livekit-rtc/livekit/rtc/_proto/participant_pb2.py b/livekit-rtc/livekit/rtc/_proto/participant_pb2.py index 5b195673..f4943934 100644 --- a/livekit-rtc/livekit/rtc/_proto/participant_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/participant_pb2.py @@ -1,22 +1,12 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE # source: participant.proto -# Protobuf Python Version: 7.34.1 +# Protobuf Python Version: 4.25.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 7, - 34, - 1, - '', - 'participant.proto' -) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -31,10 +21,10 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'participant_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None _globals['DESCRIPTOR']._serialized_options = b'\252\002\rLiveKit.Proto' - _globals['_PARTICIPANTINFO_ATTRIBUTESENTRY']._loaded_options = None + _globals['_PARTICIPANTINFO_ATTRIBUTESENTRY']._options = None _globals['_PARTICIPANTINFO_ATTRIBUTESENTRY']._serialized_options = b'8\001' _globals['_PARTICIPANTSTATE']._serialized_start=933 _globals['_PARTICIPANTSTATE']._serialized_end=1078 diff --git a/livekit-rtc/livekit/rtc/_proto/participant_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/participant_pb2.pyi index a21898f1..4c84d2c6 100644 --- a/livekit-rtc/livekit/rtc/_proto/participant_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/participant_pb2.pyi @@ -16,30 +16,30 @@ See the License for the specific language governing permissions and limitations under the License. """ -from collections import abc as _abc -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -import builtins as _builtins -from . import handle_pb2 as _handle_pb2 +import builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +from . import handle_pb2 import sys -from . import track_pb2 as _track_pb2 -import typing as _typing +from . import track_pb2 +import typing -if sys.version_info >= (3, 11): - from typing import TypeAlias as _TypeAlias, Never as _Never +if sys.version_info >= (3, 10): + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias, Never as _Never + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class _ParticipantState: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _ParticipantStateEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_ParticipantState.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _ParticipantStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ParticipantState.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor PARTICIPANT_STATE_JOINING: _ParticipantState.ValueType # 0 PARTICIPANT_STATE_JOINED: _ParticipantState.ValueType # 1 PARTICIPANT_STATE_ACTIVE: _ParticipantState.ValueType # 2 @@ -51,14 +51,14 @@ PARTICIPANT_STATE_JOINING: ParticipantState.ValueType # 0 PARTICIPANT_STATE_JOINED: ParticipantState.ValueType # 1 PARTICIPANT_STATE_ACTIVE: ParticipantState.ValueType # 2 PARTICIPANT_STATE_DISCONNECTED: ParticipantState.ValueType # 3 -Global___ParticipantState: _TypeAlias = ParticipantState # noqa: Y015 +global___ParticipantState = ParticipantState class _ParticipantKind: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _ParticipantKindEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_ParticipantKind.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _ParticipantKindEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ParticipantKind.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor PARTICIPANT_KIND_STANDARD: _ParticipantKind.ValueType # 0 PARTICIPANT_KIND_INGRESS: _ParticipantKind.ValueType # 1 PARTICIPANT_KIND_EGRESS: _ParticipantKind.ValueType # 2 @@ -76,14 +76,14 @@ PARTICIPANT_KIND_SIP: ParticipantKind.ValueType # 3 PARTICIPANT_KIND_AGENT: ParticipantKind.ValueType # 4 PARTICIPANT_KIND_CONNECTOR: ParticipantKind.ValueType # 5 PARTICIPANT_KIND_BRIDGE: ParticipantKind.ValueType # 6 -Global___ParticipantKind: _TypeAlias = ParticipantKind # noqa: Y015 +global___ParticipantKind = ParticipantKind class _ParticipantKindDetail: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _ParticipantKindDetailEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_ParticipantKindDetail.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _ParticipantKindDetailEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ParticipantKindDetail.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor PARTICIPANT_KIND_DETAIL_CLOUD_AGENT: _ParticipantKindDetail.ValueType # 0 PARTICIPANT_KIND_DETAIL_FORWARDED: _ParticipantKindDetail.ValueType # 1 PARTICIPANT_KIND_DETAIL_CONNECTOR_WHATSAPP: _ParticipantKindDetail.ValueType # 2 @@ -97,14 +97,14 @@ PARTICIPANT_KIND_DETAIL_FORWARDED: ParticipantKindDetail.ValueType # 1 PARTICIPANT_KIND_DETAIL_CONNECTOR_WHATSAPP: ParticipantKindDetail.ValueType # 2 PARTICIPANT_KIND_DETAIL_CONNECTOR_TWILIO: ParticipantKindDetail.ValueType # 3 PARTICIPANT_KIND_DETAIL_BRIDGE_RTSP: ParticipantKindDetail.ValueType # 4 -Global___ParticipantKindDetail: _TypeAlias = ParticipantKindDetail # noqa: Y015 +global___ParticipantKindDetail = ParticipantKindDetail class _DisconnectReason: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _DisconnectReasonEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_DisconnectReason.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _DisconnectReasonEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DisconnectReason.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor UNKNOWN_REASON: _DisconnectReason.ValueType # 0 CLIENT_INITIATED: _DisconnectReason.ValueType # 1 """the client initiated the disconnect""" @@ -168,153 +168,141 @@ SIP_TRUNK_FAILURE: DisconnectReason.ValueType # 13 CONNECTION_TIMEOUT: DisconnectReason.ValueType # 14 MEDIA_FAILURE: DisconnectReason.ValueType # 15 AGENT_ERROR: DisconnectReason.ValueType # 16 -Global___DisconnectReason: _TypeAlias = DisconnectReason # noqa: Y015 +global___DisconnectReason = DisconnectReason -@_typing.final -class ParticipantInfo(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ParticipantInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class AttributesEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + @typing.final + class AttributesEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - KEY_FIELD_NUMBER: _builtins.int - VALUE_FIELD_NUMBER: _builtins.int - key: _builtins.str - value: _builtins.str + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + value: builtins.str def __init__( self, *, - key: _builtins.str | None = ..., - value: _builtins.str | None = ..., + key: builtins.str | None = ..., + value: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - - SID_FIELD_NUMBER: _builtins.int - NAME_FIELD_NUMBER: _builtins.int - IDENTITY_FIELD_NUMBER: _builtins.int - STATE_FIELD_NUMBER: _builtins.int - METADATA_FIELD_NUMBER: _builtins.int - ATTRIBUTES_FIELD_NUMBER: _builtins.int - KIND_FIELD_NUMBER: _builtins.int - DISCONNECT_REASON_FIELD_NUMBER: _builtins.int - JOINED_AT_FIELD_NUMBER: _builtins.int - KIND_DETAILS_FIELD_NUMBER: _builtins.int - PERMISSION_FIELD_NUMBER: _builtins.int - sid: _builtins.str - name: _builtins.str - identity: _builtins.str - state: Global___ParticipantState.ValueType - metadata: _builtins.str - kind: Global___ParticipantKind.ValueType - disconnect_reason: Global___DisconnectReason.ValueType - joined_at: _builtins.int + def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + + SID_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + IDENTITY_FIELD_NUMBER: builtins.int + STATE_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + ATTRIBUTES_FIELD_NUMBER: builtins.int + KIND_FIELD_NUMBER: builtins.int + DISCONNECT_REASON_FIELD_NUMBER: builtins.int + JOINED_AT_FIELD_NUMBER: builtins.int + KIND_DETAILS_FIELD_NUMBER: builtins.int + PERMISSION_FIELD_NUMBER: builtins.int + sid: builtins.str + name: builtins.str + identity: builtins.str + state: global___ParticipantState.ValueType + metadata: builtins.str + kind: global___ParticipantKind.ValueType + disconnect_reason: global___DisconnectReason.ValueType + joined_at: builtins.int """ms timestamp of when the participant joined the room, maps to joined_at_ms in livekit_models""" - @_builtins.property - def attributes(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... - @_builtins.property - def kind_details(self) -> _containers.RepeatedScalarFieldContainer[Global___ParticipantKindDetail.ValueType]: ... - @_builtins.property - def permission(self) -> Global___ParticipantPermission: ... + @property + def attributes(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... + @property + def kind_details(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___ParticipantKindDetail.ValueType]: ... + @property + def permission(self) -> global___ParticipantPermission: ... def __init__( self, *, - sid: _builtins.str | None = ..., - name: _builtins.str | None = ..., - identity: _builtins.str | None = ..., - state: Global___ParticipantState.ValueType | None = ..., - metadata: _builtins.str | None = ..., - attributes: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., - kind: Global___ParticipantKind.ValueType | None = ..., - disconnect_reason: Global___DisconnectReason.ValueType | None = ..., - joined_at: _builtins.int | None = ..., - kind_details: _abc.Iterable[Global___ParticipantKindDetail.ValueType] | None = ..., - permission: Global___ParticipantPermission | None = ..., + sid: builtins.str | None = ..., + name: builtins.str | None = ..., + identity: builtins.str | None = ..., + state: global___ParticipantState.ValueType | None = ..., + metadata: builtins.str | None = ..., + attributes: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + kind: global___ParticipantKind.ValueType | None = ..., + disconnect_reason: global___DisconnectReason.ValueType | None = ..., + joined_at: builtins.int | None = ..., + kind_details: collections.abc.Iterable[global___ParticipantKindDetail.ValueType] | None = ..., + permission: global___ParticipantPermission | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["disconnect_reason", b"disconnect_reason", "identity", b"identity", "joined_at", b"joined_at", "kind", b"kind", "metadata", b"metadata", "name", b"name", "permission", b"permission", "sid", b"sid", "state", b"state"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["attributes", b"attributes", "disconnect_reason", b"disconnect_reason", "identity", b"identity", "joined_at", b"joined_at", "kind", b"kind", "kind_details", b"kind_details", "metadata", b"metadata", "name", b"name", "permission", b"permission", "sid", b"sid", "state", b"state"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___ParticipantInfo: _TypeAlias = ParticipantInfo # noqa: Y015 - -@_typing.final -class OwnedParticipant(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - HANDLE_FIELD_NUMBER: _builtins.int - INFO_FIELD_NUMBER: _builtins.int - @_builtins.property - def handle(self) -> _handle_pb2.FfiOwnedHandle: ... - @_builtins.property - def info(self) -> Global___ParticipantInfo: ... + def HasField(self, field_name: typing.Literal["disconnect_reason", b"disconnect_reason", "identity", b"identity", "joined_at", b"joined_at", "kind", b"kind", "metadata", b"metadata", "name", b"name", "permission", b"permission", "sid", b"sid", "state", b"state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["attributes", b"attributes", "disconnect_reason", b"disconnect_reason", "identity", b"identity", "joined_at", b"joined_at", "kind", b"kind", "kind_details", b"kind_details", "metadata", b"metadata", "name", b"name", "permission", b"permission", "sid", b"sid", "state", b"state"]) -> None: ... + +global___ParticipantInfo = ParticipantInfo + +@typing.final +class OwnedParticipant(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HANDLE_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + @property + def handle(self) -> handle_pb2.FfiOwnedHandle: ... + @property + def info(self) -> global___ParticipantInfo: ... def __init__( self, *, - handle: _handle_pb2.FfiOwnedHandle | None = ..., - info: Global___ParticipantInfo | None = ..., + handle: handle_pb2.FfiOwnedHandle | None = ..., + info: global___ParticipantInfo | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... -Global___OwnedParticipant: _TypeAlias = OwnedParticipant # noqa: Y015 +global___OwnedParticipant = OwnedParticipant -@_typing.final -class ParticipantPermission(_message.Message): +@typing.final +class ParticipantPermission(google.protobuf.message.Message): """copied from livekit-protocol/protocol/protobufs/livekit_models.proto and removed deprecated fields""" - DESCRIPTOR: _descriptor.Descriptor - - CAN_SUBSCRIBE_FIELD_NUMBER: _builtins.int - CAN_PUBLISH_FIELD_NUMBER: _builtins.int - CAN_PUBLISH_DATA_FIELD_NUMBER: _builtins.int - CAN_PUBLISH_SOURCES_FIELD_NUMBER: _builtins.int - HIDDEN_FIELD_NUMBER: _builtins.int - CAN_UPDATE_METADATA_FIELD_NUMBER: _builtins.int - CAN_SUBSCRIBE_METRICS_FIELD_NUMBER: _builtins.int - CAN_MANAGE_AGENT_SESSION_FIELD_NUMBER: _builtins.int - can_subscribe: _builtins.bool + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CAN_SUBSCRIBE_FIELD_NUMBER: builtins.int + CAN_PUBLISH_FIELD_NUMBER: builtins.int + CAN_PUBLISH_DATA_FIELD_NUMBER: builtins.int + CAN_PUBLISH_SOURCES_FIELD_NUMBER: builtins.int + HIDDEN_FIELD_NUMBER: builtins.int + CAN_UPDATE_METADATA_FIELD_NUMBER: builtins.int + CAN_SUBSCRIBE_METRICS_FIELD_NUMBER: builtins.int + CAN_MANAGE_AGENT_SESSION_FIELD_NUMBER: builtins.int + can_subscribe: builtins.bool """allow participant to subscribe to other tracks in the room""" - can_publish: _builtins.bool + can_publish: builtins.bool """allow participant to publish new tracks to room""" - can_publish_data: _builtins.bool + can_publish_data: builtins.bool """allow participant to publish data""" - hidden: _builtins.bool + hidden: builtins.bool """indicates that it's hidden to others""" - can_update_metadata: _builtins.bool + can_update_metadata: builtins.bool """indicates that participant can update own metadata and attributes""" - can_subscribe_metrics: _builtins.bool + can_subscribe_metrics: builtins.bool """if a participant can subscribe to metrics""" - can_manage_agent_session: _builtins.bool + can_manage_agent_session: builtins.bool """if a participant can manage an agent session via RemoteSession (control and access state)""" - @_builtins.property - def can_publish_sources(self) -> _containers.RepeatedScalarFieldContainer[_track_pb2.TrackSource.ValueType]: + @property + def can_publish_sources(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[track_pb2.TrackSource.ValueType]: """sources that are allowed to be published""" def __init__( self, *, - can_subscribe: _builtins.bool | None = ..., - can_publish: _builtins.bool | None = ..., - can_publish_data: _builtins.bool | None = ..., - can_publish_sources: _abc.Iterable[_track_pb2.TrackSource.ValueType] | None = ..., - hidden: _builtins.bool | None = ..., - can_update_metadata: _builtins.bool | None = ..., - can_subscribe_metrics: _builtins.bool | None = ..., - can_manage_agent_session: _builtins.bool | None = ..., + can_subscribe: builtins.bool | None = ..., + can_publish: builtins.bool | None = ..., + can_publish_data: builtins.bool | None = ..., + can_publish_sources: collections.abc.Iterable[track_pb2.TrackSource.ValueType] | None = ..., + hidden: builtins.bool | None = ..., + can_update_metadata: builtins.bool | None = ..., + can_subscribe_metrics: builtins.bool | None = ..., + can_manage_agent_session: builtins.bool | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["can_manage_agent_session", b"can_manage_agent_session", "can_publish", b"can_publish", "can_publish_data", b"can_publish_data", "can_subscribe", b"can_subscribe", "can_subscribe_metrics", b"can_subscribe_metrics", "can_update_metadata", b"can_update_metadata", "hidden", b"hidden"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["can_manage_agent_session", b"can_manage_agent_session", "can_publish", b"can_publish", "can_publish_data", b"can_publish_data", "can_publish_sources", b"can_publish_sources", "can_subscribe", b"can_subscribe", "can_subscribe_metrics", b"can_subscribe_metrics", "can_update_metadata", b"can_update_metadata", "hidden", b"hidden"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["can_manage_agent_session", b"can_manage_agent_session", "can_publish", b"can_publish", "can_publish_data", b"can_publish_data", "can_subscribe", b"can_subscribe", "can_subscribe_metrics", b"can_subscribe_metrics", "can_update_metadata", b"can_update_metadata", "hidden", b"hidden"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["can_manage_agent_session", b"can_manage_agent_session", "can_publish", b"can_publish", "can_publish_data", b"can_publish_data", "can_publish_sources", b"can_publish_sources", "can_subscribe", b"can_subscribe", "can_subscribe_metrics", b"can_subscribe_metrics", "can_update_metadata", b"can_update_metadata", "hidden", b"hidden"]) -> None: ... -Global___ParticipantPermission: _TypeAlias = ParticipantPermission # noqa: Y015 +global___ParticipantPermission = ParticipantPermission diff --git a/livekit-rtc/livekit/rtc/_proto/room_pb2.py b/livekit-rtc/livekit/rtc/_proto/room_pb2.py index b32a7ebb..dd224581 100644 --- a/livekit-rtc/livekit/rtc/_proto/room_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/room_pb2.py @@ -1,22 +1,12 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE # source: room.proto -# Protobuf Python Version: 7.34.1 +# Protobuf Python Version: 4.25.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 7, - 34, - 1, - '', - 'room.proto' -) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -37,16 +27,16 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'room_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None _globals['DESCRIPTOR']._serialized_options = b'\252\002\rLiveKit.Proto' - _globals['_PUBLISHDATAREQUEST'].fields_by_name['destination_sids']._loaded_options = None + _globals['_PUBLISHDATAREQUEST'].fields_by_name['destination_sids']._options = None _globals['_PUBLISHDATAREQUEST'].fields_by_name['destination_sids']._serialized_options = b'\030\001' - _globals['_ROOMOPTIONS'].fields_by_name['e2ee']._loaded_options = None + _globals['_ROOMOPTIONS'].fields_by_name['e2ee']._options = None _globals['_ROOMOPTIONS'].fields_by_name['e2ee']._serialized_options = b'\030\001' - _globals['_DATASTREAM_HEADER_ATTRIBUTESENTRY']._loaded_options = None + _globals['_DATASTREAM_HEADER_ATTRIBUTESENTRY']._options = None _globals['_DATASTREAM_HEADER_ATTRIBUTESENTRY']._serialized_options = b'8\001' - _globals['_DATASTREAM_TRAILER_ATTRIBUTESENTRY']._loaded_options = None + _globals['_DATASTREAM_TRAILER_ATTRIBUTESENTRY']._options = None _globals['_DATASTREAM_TRAILER_ATTRIBUTESENTRY']._serialized_options = b'8\001' _globals['_SIMULATESCENARIOKIND']._serialized_start=14596 _globals['_SIMULATESCENARIOKIND']._serialized_end=14826 diff --git a/livekit-rtc/livekit/rtc/_proto/room_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/room_pb2.pyi index 2823e812..f7f36c7d 100644 --- a/livekit-rtc/livekit/rtc/_proto/room_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/room_pb2.pyi @@ -16,41 +16,36 @@ See the License for the specific language governing permissions and limitations under the License. """ -from collections import abc as _abc -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -import builtins as _builtins -from . import data_stream_pb2 as _data_stream_pb2 -from . import data_track_pb2 as _data_track_pb2 -from . import e2ee_pb2 as _e2ee_pb2 -from . import handle_pb2 as _handle_pb2 -from . import participant_pb2 as _participant_pb2 -from . import stats_pb2 as _stats_pb2 +import builtins +import collections.abc +from . import data_stream_pb2 +from . import data_track_pb2 +from . import e2ee_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +from . import handle_pb2 +from . import participant_pb2 +from . import stats_pb2 import sys -from . import track_pb2 as _track_pb2 -import typing as _typing -from . import video_frame_pb2 as _video_frame_pb2 +from . import track_pb2 +import typing +from . import video_frame_pb2 -if sys.version_info >= (3, 11): - from typing import TypeAlias as _TypeAlias, Never as _Never +if sys.version_info >= (3, 10): + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias, Never as _Never + import typing_extensions -if sys.version_info >= (3, 13): - from warnings import deprecated as _deprecated -else: - from typing_extensions import deprecated as _deprecated - -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class _SimulateScenarioKind: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _SimulateScenarioKindEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_SimulateScenarioKind.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _SimulateScenarioKindEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SimulateScenarioKind.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor SIMULATE_SIGNAL_RECONNECT: _SimulateScenarioKind.ValueType # 0 """Closes the signal channel locally; engine attempts a Resume.""" SIMULATE_SPEAKER: _SimulateScenarioKind.ValueType # 1 @@ -83,14 +78,14 @@ SIMULATE_FULL_RECONNECT: SimulateScenarioKind.ValueType # 7 """Asks the server to send `LeaveRequest{Reconnect}`, forcing a full reconnect (new RtcSession; SDK republishes existing local tracks). """ -Global___SimulateScenarioKind: _TypeAlias = SimulateScenarioKind # noqa: Y015 +global___SimulateScenarioKind = SimulateScenarioKind class _IceTransportType: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _IceTransportTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_IceTransportType.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _IceTransportTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IceTransportType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor TRANSPORT_RELAY: _IceTransportType.ValueType # 0 TRANSPORT_NOHOST: _IceTransportType.ValueType # 1 TRANSPORT_ALL: _IceTransportType.ValueType # 2 @@ -100,14 +95,14 @@ class IceTransportType(_IceTransportType, metaclass=_IceTransportTypeEnumTypeWra TRANSPORT_RELAY: IceTransportType.ValueType # 0 TRANSPORT_NOHOST: IceTransportType.ValueType # 1 TRANSPORT_ALL: IceTransportType.ValueType # 2 -Global___IceTransportType: _TypeAlias = IceTransportType # noqa: Y015 +global___IceTransportType = IceTransportType class _ContinualGatheringPolicy: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _ContinualGatheringPolicyEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_ContinualGatheringPolicy.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _ContinualGatheringPolicyEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ContinualGatheringPolicy.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor GATHER_ONCE: _ContinualGatheringPolicy.ValueType # 0 GATHER_CONTINUALLY: _ContinualGatheringPolicy.ValueType # 1 @@ -115,14 +110,14 @@ class ContinualGatheringPolicy(_ContinualGatheringPolicy, metaclass=_ContinualGa GATHER_ONCE: ContinualGatheringPolicy.ValueType # 0 GATHER_CONTINUALLY: ContinualGatheringPolicy.ValueType # 1 -Global___ContinualGatheringPolicy: _TypeAlias = ContinualGatheringPolicy # noqa: Y015 +global___ContinualGatheringPolicy = ContinualGatheringPolicy class _ConnectionQuality: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _ConnectionQualityEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_ConnectionQuality.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _ConnectionQualityEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ConnectionQuality.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor QUALITY_POOR: _ConnectionQuality.ValueType # 0 QUALITY_GOOD: _ConnectionQuality.ValueType # 1 QUALITY_EXCELLENT: _ConnectionQuality.ValueType # 2 @@ -137,14 +132,14 @@ QUALITY_POOR: ConnectionQuality.ValueType # 0 QUALITY_GOOD: ConnectionQuality.ValueType # 1 QUALITY_EXCELLENT: ConnectionQuality.ValueType # 2 QUALITY_LOST: ConnectionQuality.ValueType # 3 -Global___ConnectionQuality: _TypeAlias = ConnectionQuality # noqa: Y015 +global___ConnectionQuality = ConnectionQuality class _ConnectionState: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _ConnectionStateEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_ConnectionState.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _ConnectionStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ConnectionState.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor CONN_DISCONNECTED: _ConnectionState.ValueType # 0 CONN_CONNECTED: _ConnectionState.ValueType # 1 CONN_RECONNECTING: _ConnectionState.ValueType # 2 @@ -154,14 +149,14 @@ class ConnectionState(_ConnectionState, metaclass=_ConnectionStateEnumTypeWrappe CONN_DISCONNECTED: ConnectionState.ValueType # 0 CONN_CONNECTED: ConnectionState.ValueType # 1 CONN_RECONNECTING: ConnectionState.ValueType # 2 -Global___ConnectionState: _TypeAlias = ConnectionState # noqa: Y015 +global___ConnectionState = ConnectionState class _DataPacketKind: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _DataPacketKindEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_DataPacketKind.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _DataPacketKindEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DataPacketKind.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor KIND_LOSSY: _DataPacketKind.ValueType # 0 KIND_RELIABLE: _DataPacketKind.ValueType # 1 @@ -169,72 +164,66 @@ class DataPacketKind(_DataPacketKind, metaclass=_DataPacketKindEnumTypeWrapper): KIND_LOSSY: DataPacketKind.ValueType # 0 KIND_RELIABLE: DataPacketKind.ValueType # 1 -Global___DataPacketKind: _TypeAlias = DataPacketKind # noqa: Y015 +global___DataPacketKind = DataPacketKind -@_typing.final -class ConnectRequest(_message.Message): +@typing.final +class ConnectRequest(google.protobuf.message.Message): """Connect to a new LiveKit room""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - URL_FIELD_NUMBER: _builtins.int - TOKEN_FIELD_NUMBER: _builtins.int - OPTIONS_FIELD_NUMBER: _builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int - url: _builtins.str - token: _builtins.str - request_async_id: _builtins.int - @_builtins.property - def options(self) -> Global___RoomOptions: ... + URL_FIELD_NUMBER: builtins.int + TOKEN_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int + url: builtins.str + token: builtins.str + request_async_id: builtins.int + @property + def options(self) -> global___RoomOptions: ... def __init__( self, *, - url: _builtins.str | None = ..., - token: _builtins.str | None = ..., - options: Global___RoomOptions | None = ..., - request_async_id: _builtins.int | None = ..., + url: builtins.str | None = ..., + token: builtins.str | None = ..., + options: global___RoomOptions | None = ..., + request_async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["options", b"options", "request_async_id", b"request_async_id", "token", b"token", "url", b"url"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["options", b"options", "request_async_id", b"request_async_id", "token", b"token", "url", b"url"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["options", b"options", "request_async_id", b"request_async_id", "token", b"token", "url", b"url"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["options", b"options", "request_async_id", b"request_async_id", "token", b"token", "url", b"url"]) -> None: ... -Global___ConnectRequest: _TypeAlias = ConnectRequest # noqa: Y015 +global___ConnectRequest = ConnectRequest -@_typing.final -class ConnectResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ConnectResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... -Global___ConnectResponse: _TypeAlias = ConnectResponse # noqa: Y015 +global___ConnectResponse = ConnectResponse -@_typing.final -class ConnectCallback(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ConnectCallback(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class ParticipantWithTracks(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + @typing.final + class ParticipantWithTracks(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - PARTICIPANT_FIELD_NUMBER: _builtins.int - PUBLICATIONS_FIELD_NUMBER: _builtins.int - @_builtins.property - def participant(self) -> _participant_pb2.OwnedParticipant: ... - @_builtins.property - def publications(self) -> _containers.RepeatedCompositeFieldContainer[_track_pb2.OwnedTrackPublication]: + PARTICIPANT_FIELD_NUMBER: builtins.int + PUBLICATIONS_FIELD_NUMBER: builtins.int + @property + def participant(self) -> participant_pb2.OwnedParticipant: ... + @property + def publications(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[track_pb2.OwnedTrackPublication]: """TrackInfo are not needed here, if we're subscribed to a track, the FfiServer will send a TrackSubscribed event """ @@ -242,2429 +231,2129 @@ class ConnectCallback(_message.Message): def __init__( self, *, - participant: _participant_pb2.OwnedParticipant | None = ..., - publications: _abc.Iterable[_track_pb2.OwnedTrackPublication] | None = ..., + participant: participant_pb2.OwnedParticipant | None = ..., + publications: collections.abc.Iterable[track_pb2.OwnedTrackPublication] | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["participant", b"participant"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["participant", b"participant", "publications", b"publications"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - - @_typing.final - class Result(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - ROOM_FIELD_NUMBER: _builtins.int - LOCAL_PARTICIPANT_FIELD_NUMBER: _builtins.int - PARTICIPANTS_FIELD_NUMBER: _builtins.int - @_builtins.property - def room(self) -> Global___OwnedRoom: ... - @_builtins.property - def local_participant(self) -> _participant_pb2.OwnedParticipant: ... - @_builtins.property - def participants(self) -> _containers.RepeatedCompositeFieldContainer[Global___ConnectCallback.ParticipantWithTracks]: ... + def HasField(self, field_name: typing.Literal["participant", b"participant"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["participant", b"participant", "publications", b"publications"]) -> None: ... + + @typing.final + class Result(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ROOM_FIELD_NUMBER: builtins.int + LOCAL_PARTICIPANT_FIELD_NUMBER: builtins.int + PARTICIPANTS_FIELD_NUMBER: builtins.int + @property + def room(self) -> global___OwnedRoom: ... + @property + def local_participant(self) -> participant_pb2.OwnedParticipant: ... + @property + def participants(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConnectCallback.ParticipantWithTracks]: ... def __init__( self, *, - room: Global___OwnedRoom | None = ..., - local_participant: _participant_pb2.OwnedParticipant | None = ..., - participants: _abc.Iterable[Global___ConnectCallback.ParticipantWithTracks] | None = ..., + room: global___OwnedRoom | None = ..., + local_participant: participant_pb2.OwnedParticipant | None = ..., + participants: collections.abc.Iterable[global___ConnectCallback.ParticipantWithTracks] | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant", b"local_participant", "room", b"room"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant", b"local_participant", "participants", b"participants", "room", b"room"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - - ASYNC_ID_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - RESULT_FIELD_NUMBER: _builtins.int - async_id: _builtins.int - error: _builtins.str - @_builtins.property - def result(self) -> Global___ConnectCallback.Result: ... - def __init__( - self, - *, - async_id: _builtins.int | None = ..., - error: _builtins.str | None = ..., - result: Global___ConnectCallback.Result | None = ..., - ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "result", b"result"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "result", b"result"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["error", "result"] # noqa: Y015 - _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 - def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... - -Global___ConnectCallback: _TypeAlias = ConnectCallback # noqa: Y015 - -@_typing.final -class DisconnectRequest(_message.Message): + def HasField(self, field_name: typing.Literal["local_participant", b"local_participant", "room", b"room"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["local_participant", b"local_participant", "participants", b"participants", "room", b"room"]) -> None: ... + + ASYNC_ID_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + RESULT_FIELD_NUMBER: builtins.int + async_id: builtins.int + error: builtins.str + @property + def result(self) -> global___ConnectCallback.Result: ... + def __init__( + self, + *, + async_id: builtins.int | None = ..., + error: builtins.str | None = ..., + result: global___ConnectCallback.Result | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "result", b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "result", b"result"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["error", "result"] | None: ... + +global___ConnectCallback = ConnectCallback + +@typing.final +class DisconnectRequest(google.protobuf.message.Message): """Disconnect from the a room""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ROOM_HANDLE_FIELD_NUMBER: _builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int - REASON_FIELD_NUMBER: _builtins.int - room_handle: _builtins.int - request_async_id: _builtins.int - reason: _participant_pb2.DisconnectReason.ValueType + ROOM_HANDLE_FIELD_NUMBER: builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int + REASON_FIELD_NUMBER: builtins.int + room_handle: builtins.int + request_async_id: builtins.int + reason: participant_pb2.DisconnectReason.ValueType def __init__( self, *, - room_handle: _builtins.int | None = ..., - request_async_id: _builtins.int | None = ..., - reason: _participant_pb2.DisconnectReason.ValueType | None = ..., + room_handle: builtins.int | None = ..., + request_async_id: builtins.int | None = ..., + reason: participant_pb2.DisconnectReason.ValueType | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["reason", b"reason", "request_async_id", b"request_async_id", "room_handle", b"room_handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["reason", b"reason", "request_async_id", b"request_async_id", "room_handle", b"room_handle"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["reason", b"reason", "request_async_id", b"request_async_id", "room_handle", b"room_handle"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["reason", b"reason", "request_async_id", b"request_async_id", "room_handle", b"room_handle"]) -> None: ... -Global___DisconnectRequest: _TypeAlias = DisconnectRequest # noqa: Y015 +global___DisconnectRequest = DisconnectRequest -@_typing.final -class DisconnectResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class DisconnectResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... -Global___DisconnectResponse: _TypeAlias = DisconnectResponse # noqa: Y015 +global___DisconnectResponse = DisconnectResponse -@_typing.final -class DisconnectCallback(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class DisconnectCallback(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... -Global___DisconnectCallback: _TypeAlias = DisconnectCallback # noqa: Y015 +global___DisconnectCallback = DisconnectCallback -@_typing.final -class SimulateScenarioRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class SimulateScenarioRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ROOM_HANDLE_FIELD_NUMBER: _builtins.int - SCENARIO_FIELD_NUMBER: _builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int - room_handle: _builtins.int - scenario: Global___SimulateScenarioKind.ValueType - request_async_id: _builtins.int + ROOM_HANDLE_FIELD_NUMBER: builtins.int + SCENARIO_FIELD_NUMBER: builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int + room_handle: builtins.int + scenario: global___SimulateScenarioKind.ValueType + request_async_id: builtins.int def __init__( self, *, - room_handle: _builtins.int | None = ..., - scenario: Global___SimulateScenarioKind.ValueType | None = ..., - request_async_id: _builtins.int | None = ..., + room_handle: builtins.int | None = ..., + scenario: global___SimulateScenarioKind.ValueType | None = ..., + request_async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["request_async_id", b"request_async_id", "room_handle", b"room_handle", "scenario", b"scenario"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["request_async_id", b"request_async_id", "room_handle", b"room_handle", "scenario", b"scenario"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["request_async_id", b"request_async_id", "room_handle", b"room_handle", "scenario", b"scenario"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["request_async_id", b"request_async_id", "room_handle", b"room_handle", "scenario", b"scenario"]) -> None: ... -Global___SimulateScenarioRequest: _TypeAlias = SimulateScenarioRequest # noqa: Y015 +global___SimulateScenarioRequest = SimulateScenarioRequest -@_typing.final -class SimulateScenarioResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class SimulateScenarioResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... -Global___SimulateScenarioResponse: _TypeAlias = SimulateScenarioResponse # noqa: Y015 +global___SimulateScenarioResponse = SimulateScenarioResponse -@_typing.final -class SimulateScenarioCallback(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class SimulateScenarioCallback(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - async_id: _builtins.int - error: _builtins.str + ASYNC_ID_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + async_id: builtins.int + error: builtins.str def __init__( self, *, - async_id: _builtins.int | None = ..., - error: _builtins.str | None = ..., + async_id: builtins.int | None = ..., + error: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... -Global___SimulateScenarioCallback: _TypeAlias = SimulateScenarioCallback # noqa: Y015 +global___SimulateScenarioCallback = SimulateScenarioCallback -@_typing.final -class PublishTrackRequest(_message.Message): +@typing.final +class PublishTrackRequest(google.protobuf.message.Message): """Publish a track to the room""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int - TRACK_HANDLE_FIELD_NUMBER: _builtins.int - OPTIONS_FIELD_NUMBER: _builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int - local_participant_handle: _builtins.int - track_handle: _builtins.int - request_async_id: _builtins.int - @_builtins.property - def options(self) -> Global___TrackPublishOptions: ... + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int + TRACK_HANDLE_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int + local_participant_handle: builtins.int + track_handle: builtins.int + request_async_id: builtins.int + @property + def options(self) -> global___TrackPublishOptions: ... def __init__( self, *, - local_participant_handle: _builtins.int | None = ..., - track_handle: _builtins.int | None = ..., - options: Global___TrackPublishOptions | None = ..., - request_async_id: _builtins.int | None = ..., + local_participant_handle: builtins.int | None = ..., + track_handle: builtins.int | None = ..., + options: global___TrackPublishOptions | None = ..., + request_async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id", "track_handle", b"track_handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id", "track_handle", b"track_handle"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id", "track_handle", b"track_handle"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id", "track_handle", b"track_handle"]) -> None: ... -Global___PublishTrackRequest: _TypeAlias = PublishTrackRequest # noqa: Y015 +global___PublishTrackRequest = PublishTrackRequest -@_typing.final -class PublishTrackResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class PublishTrackResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... -Global___PublishTrackResponse: _TypeAlias = PublishTrackResponse # noqa: Y015 +global___PublishTrackResponse = PublishTrackResponse -@_typing.final -class PublishTrackCallback(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class PublishTrackCallback(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - PUBLICATION_FIELD_NUMBER: _builtins.int - async_id: _builtins.int - error: _builtins.str - @_builtins.property - def publication(self) -> _track_pb2.OwnedTrackPublication: ... + ASYNC_ID_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + PUBLICATION_FIELD_NUMBER: builtins.int + async_id: builtins.int + error: builtins.str + @property + def publication(self) -> track_pb2.OwnedTrackPublication: ... def __init__( self, *, - async_id: _builtins.int | None = ..., - error: _builtins.str | None = ..., - publication: _track_pb2.OwnedTrackPublication | None = ..., + async_id: builtins.int | None = ..., + error: builtins.str | None = ..., + publication: track_pb2.OwnedTrackPublication | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "publication", b"publication"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "publication", b"publication"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["error", "publication"] # noqa: Y015 - _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 - def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "publication", b"publication"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "publication", b"publication"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["error", "publication"] | None: ... -Global___PublishTrackCallback: _TypeAlias = PublishTrackCallback # noqa: Y015 +global___PublishTrackCallback = PublishTrackCallback -@_typing.final -class UnpublishTrackRequest(_message.Message): +@typing.final +class UnpublishTrackRequest(google.protobuf.message.Message): """Unpublish a track from the room""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int - TRACK_SID_FIELD_NUMBER: _builtins.int - STOP_ON_UNPUBLISH_FIELD_NUMBER: _builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int - local_participant_handle: _builtins.int - track_sid: _builtins.str - stop_on_unpublish: _builtins.bool - request_async_id: _builtins.int + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int + TRACK_SID_FIELD_NUMBER: builtins.int + STOP_ON_UNPUBLISH_FIELD_NUMBER: builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int + local_participant_handle: builtins.int + track_sid: builtins.str + stop_on_unpublish: builtins.bool + request_async_id: builtins.int def __init__( self, *, - local_participant_handle: _builtins.int | None = ..., - track_sid: _builtins.str | None = ..., - stop_on_unpublish: _builtins.bool | None = ..., - request_async_id: _builtins.int | None = ..., + local_participant_handle: builtins.int | None = ..., + track_sid: builtins.str | None = ..., + stop_on_unpublish: builtins.bool | None = ..., + request_async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "stop_on_unpublish", b"stop_on_unpublish", "track_sid", b"track_sid"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "stop_on_unpublish", b"stop_on_unpublish", "track_sid", b"track_sid"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "stop_on_unpublish", b"stop_on_unpublish", "track_sid", b"track_sid"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "stop_on_unpublish", b"stop_on_unpublish", "track_sid", b"track_sid"]) -> None: ... -Global___UnpublishTrackRequest: _TypeAlias = UnpublishTrackRequest # noqa: Y015 +global___UnpublishTrackRequest = UnpublishTrackRequest -@_typing.final -class UnpublishTrackResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class UnpublishTrackResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... -Global___UnpublishTrackResponse: _TypeAlias = UnpublishTrackResponse # noqa: Y015 +global___UnpublishTrackResponse = UnpublishTrackResponse -@_typing.final -class UnpublishTrackCallback(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class UnpublishTrackCallback(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - async_id: _builtins.int - error: _builtins.str + ASYNC_ID_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + async_id: builtins.int + error: builtins.str def __init__( self, *, - async_id: _builtins.int | None = ..., - error: _builtins.str | None = ..., + async_id: builtins.int | None = ..., + error: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... -Global___UnpublishTrackCallback: _TypeAlias = UnpublishTrackCallback # noqa: Y015 +global___UnpublishTrackCallback = UnpublishTrackCallback -@_typing.final -class PublishDataRequest(_message.Message): +@typing.final +class PublishDataRequest(google.protobuf.message.Message): """Publish data to other participants""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int - DATA_PTR_FIELD_NUMBER: _builtins.int - DATA_LEN_FIELD_NUMBER: _builtins.int - RELIABLE_FIELD_NUMBER: _builtins.int - DESTINATION_SIDS_FIELD_NUMBER: _builtins.int - TOPIC_FIELD_NUMBER: _builtins.int - DESTINATION_IDENTITIES_FIELD_NUMBER: _builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int - local_participant_handle: _builtins.int - data_ptr: _builtins.int - data_len: _builtins.int - reliable: _builtins.bool - topic: _builtins.str - request_async_id: _builtins.int - @_builtins.property - @_deprecated("""This field has been marked as deprecated using proto field options.""") - def destination_sids(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... - @_builtins.property - def destination_identities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int + DATA_PTR_FIELD_NUMBER: builtins.int + DATA_LEN_FIELD_NUMBER: builtins.int + RELIABLE_FIELD_NUMBER: builtins.int + DESTINATION_SIDS_FIELD_NUMBER: builtins.int + TOPIC_FIELD_NUMBER: builtins.int + DESTINATION_IDENTITIES_FIELD_NUMBER: builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int + local_participant_handle: builtins.int + data_ptr: builtins.int + data_len: builtins.int + reliable: builtins.bool + topic: builtins.str + request_async_id: builtins.int + @property + def destination_sids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + @property + def destination_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... def __init__( self, *, - local_participant_handle: _builtins.int | None = ..., - data_ptr: _builtins.int | None = ..., - data_len: _builtins.int | None = ..., - reliable: _builtins.bool | None = ..., - destination_sids: _abc.Iterable[_builtins.str] | None = ..., - topic: _builtins.str | None = ..., - destination_identities: _abc.Iterable[_builtins.str] | None = ..., - request_async_id: _builtins.int | None = ..., + local_participant_handle: builtins.int | None = ..., + data_ptr: builtins.int | None = ..., + data_len: builtins.int | None = ..., + reliable: builtins.bool | None = ..., + destination_sids: collections.abc.Iterable[builtins.str] | None = ..., + topic: builtins.str | None = ..., + destination_identities: collections.abc.Iterable[builtins.str] | None = ..., + request_async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["data_len", b"data_len", "data_ptr", b"data_ptr", "local_participant_handle", b"local_participant_handle", "reliable", b"reliable", "request_async_id", b"request_async_id", "topic", b"topic"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["data_len", b"data_len", "data_ptr", b"data_ptr", "destination_identities", b"destination_identities", "destination_sids", b"destination_sids", "local_participant_handle", b"local_participant_handle", "reliable", b"reliable", "request_async_id", b"request_async_id", "topic", b"topic"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["data_len", b"data_len", "data_ptr", b"data_ptr", "local_participant_handle", b"local_participant_handle", "reliable", b"reliable", "request_async_id", b"request_async_id", "topic", b"topic"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["data_len", b"data_len", "data_ptr", b"data_ptr", "destination_identities", b"destination_identities", "destination_sids", b"destination_sids", "local_participant_handle", b"local_participant_handle", "reliable", b"reliable", "request_async_id", b"request_async_id", "topic", b"topic"]) -> None: ... -Global___PublishDataRequest: _TypeAlias = PublishDataRequest # noqa: Y015 +global___PublishDataRequest = PublishDataRequest -@_typing.final -class PublishDataResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class PublishDataResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... -Global___PublishDataResponse: _TypeAlias = PublishDataResponse # noqa: Y015 +global___PublishDataResponse = PublishDataResponse -@_typing.final -class PublishDataCallback(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class PublishDataCallback(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - async_id: _builtins.int - error: _builtins.str + ASYNC_ID_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + async_id: builtins.int + error: builtins.str def __init__( self, *, - async_id: _builtins.int | None = ..., - error: _builtins.str | None = ..., + async_id: builtins.int | None = ..., + error: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... -Global___PublishDataCallback: _TypeAlias = PublishDataCallback # noqa: Y015 +global___PublishDataCallback = PublishDataCallback -@_typing.final -class PublishTranscriptionRequest(_message.Message): +@typing.final +class PublishTranscriptionRequest(google.protobuf.message.Message): """Publish transcription messages to room""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int - PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int - TRACK_ID_FIELD_NUMBER: _builtins.int - SEGMENTS_FIELD_NUMBER: _builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int - local_participant_handle: _builtins.int - participant_identity: _builtins.str - track_id: _builtins.str - request_async_id: _builtins.int - @_builtins.property - def segments(self) -> _containers.RepeatedCompositeFieldContainer[Global___TranscriptionSegment]: ... + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + TRACK_ID_FIELD_NUMBER: builtins.int + SEGMENTS_FIELD_NUMBER: builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int + local_participant_handle: builtins.int + participant_identity: builtins.str + track_id: builtins.str + request_async_id: builtins.int + @property + def segments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___TranscriptionSegment]: ... def __init__( self, *, - local_participant_handle: _builtins.int | None = ..., - participant_identity: _builtins.str | None = ..., - track_id: _builtins.str | None = ..., - segments: _abc.Iterable[Global___TranscriptionSegment] | None = ..., - request_async_id: _builtins.int | None = ..., + local_participant_handle: builtins.int | None = ..., + participant_identity: builtins.str | None = ..., + track_id: builtins.str | None = ..., + segments: collections.abc.Iterable[global___TranscriptionSegment] | None = ..., + request_async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "participant_identity", b"participant_identity", "request_async_id", b"request_async_id", "track_id", b"track_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "participant_identity", b"participant_identity", "request_async_id", b"request_async_id", "segments", b"segments", "track_id", b"track_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "participant_identity", b"participant_identity", "request_async_id", b"request_async_id", "track_id", b"track_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "participant_identity", b"participant_identity", "request_async_id", b"request_async_id", "segments", b"segments", "track_id", b"track_id"]) -> None: ... -Global___PublishTranscriptionRequest: _TypeAlias = PublishTranscriptionRequest # noqa: Y015 +global___PublishTranscriptionRequest = PublishTranscriptionRequest -@_typing.final -class PublishTranscriptionResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class PublishTranscriptionResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... -Global___PublishTranscriptionResponse: _TypeAlias = PublishTranscriptionResponse # noqa: Y015 +global___PublishTranscriptionResponse = PublishTranscriptionResponse -@_typing.final -class PublishTranscriptionCallback(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class PublishTranscriptionCallback(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - async_id: _builtins.int - error: _builtins.str + ASYNC_ID_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + async_id: builtins.int + error: builtins.str def __init__( self, *, - async_id: _builtins.int | None = ..., - error: _builtins.str | None = ..., + async_id: builtins.int | None = ..., + error: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... -Global___PublishTranscriptionCallback: _TypeAlias = PublishTranscriptionCallback # noqa: Y015 +global___PublishTranscriptionCallback = PublishTranscriptionCallback -@_typing.final -class PublishSipDtmfRequest(_message.Message): +@typing.final +class PublishSipDtmfRequest(google.protobuf.message.Message): """Publish Sip DTMF messages to other participants""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int - CODE_FIELD_NUMBER: _builtins.int - DIGIT_FIELD_NUMBER: _builtins.int - DESTINATION_IDENTITIES_FIELD_NUMBER: _builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int - local_participant_handle: _builtins.int - code: _builtins.int - digit: _builtins.str - request_async_id: _builtins.int - @_builtins.property - def destination_identities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int + CODE_FIELD_NUMBER: builtins.int + DIGIT_FIELD_NUMBER: builtins.int + DESTINATION_IDENTITIES_FIELD_NUMBER: builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int + local_participant_handle: builtins.int + code: builtins.int + digit: builtins.str + request_async_id: builtins.int + @property + def destination_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... def __init__( self, *, - local_participant_handle: _builtins.int | None = ..., - code: _builtins.int | None = ..., - digit: _builtins.str | None = ..., - destination_identities: _abc.Iterable[_builtins.str] | None = ..., - request_async_id: _builtins.int | None = ..., + local_participant_handle: builtins.int | None = ..., + code: builtins.int | None = ..., + digit: builtins.str | None = ..., + destination_identities: collections.abc.Iterable[builtins.str] | None = ..., + request_async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "digit", b"digit", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "destination_identities", b"destination_identities", "digit", b"digit", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["code", b"code", "digit", b"digit", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["code", b"code", "destination_identities", b"destination_identities", "digit", b"digit", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id"]) -> None: ... -Global___PublishSipDtmfRequest: _TypeAlias = PublishSipDtmfRequest # noqa: Y015 +global___PublishSipDtmfRequest = PublishSipDtmfRequest -@_typing.final -class PublishSipDtmfResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class PublishSipDtmfResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... -Global___PublishSipDtmfResponse: _TypeAlias = PublishSipDtmfResponse # noqa: Y015 +global___PublishSipDtmfResponse = PublishSipDtmfResponse -@_typing.final -class PublishSipDtmfCallback(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class PublishSipDtmfCallback(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - async_id: _builtins.int - error: _builtins.str + ASYNC_ID_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + async_id: builtins.int + error: builtins.str def __init__( self, *, - async_id: _builtins.int | None = ..., - error: _builtins.str | None = ..., + async_id: builtins.int | None = ..., + error: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... -Global___PublishSipDtmfCallback: _TypeAlias = PublishSipDtmfCallback # noqa: Y015 +global___PublishSipDtmfCallback = PublishSipDtmfCallback -@_typing.final -class SetLocalMetadataRequest(_message.Message): +@typing.final +class SetLocalMetadataRequest(google.protobuf.message.Message): """Change the local participant's metadata""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int - METADATA_FIELD_NUMBER: _builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int - local_participant_handle: _builtins.int - metadata: _builtins.str - request_async_id: _builtins.int + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int + local_participant_handle: builtins.int + metadata: builtins.str + request_async_id: builtins.int def __init__( self, *, - local_participant_handle: _builtins.int | None = ..., - metadata: _builtins.str | None = ..., - request_async_id: _builtins.int | None = ..., + local_participant_handle: builtins.int | None = ..., + metadata: builtins.str | None = ..., + request_async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "metadata", b"metadata", "request_async_id", b"request_async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "metadata", b"metadata", "request_async_id", b"request_async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "metadata", b"metadata", "request_async_id", b"request_async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "metadata", b"metadata", "request_async_id", b"request_async_id"]) -> None: ... -Global___SetLocalMetadataRequest: _TypeAlias = SetLocalMetadataRequest # noqa: Y015 +global___SetLocalMetadataRequest = SetLocalMetadataRequest -@_typing.final -class SetLocalMetadataResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class SetLocalMetadataResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... -Global___SetLocalMetadataResponse: _TypeAlias = SetLocalMetadataResponse # noqa: Y015 +global___SetLocalMetadataResponse = SetLocalMetadataResponse -@_typing.final -class SetLocalMetadataCallback(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class SetLocalMetadataCallback(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - async_id: _builtins.int - error: _builtins.str + ASYNC_ID_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + async_id: builtins.int + error: builtins.str def __init__( self, *, - async_id: _builtins.int | None = ..., - error: _builtins.str | None = ..., + async_id: builtins.int | None = ..., + error: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... -Global___SetLocalMetadataCallback: _TypeAlias = SetLocalMetadataCallback # noqa: Y015 +global___SetLocalMetadataCallback = SetLocalMetadataCallback -@_typing.final -class SendChatMessageRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class SendChatMessageRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int - MESSAGE_FIELD_NUMBER: _builtins.int - DESTINATION_IDENTITIES_FIELD_NUMBER: _builtins.int - SENDER_IDENTITY_FIELD_NUMBER: _builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int - local_participant_handle: _builtins.int - message: _builtins.str - sender_identity: _builtins.str - request_async_id: _builtins.int - @_builtins.property - def destination_identities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int + MESSAGE_FIELD_NUMBER: builtins.int + DESTINATION_IDENTITIES_FIELD_NUMBER: builtins.int + SENDER_IDENTITY_FIELD_NUMBER: builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int + local_participant_handle: builtins.int + message: builtins.str + sender_identity: builtins.str + request_async_id: builtins.int + @property + def destination_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... def __init__( self, *, - local_participant_handle: _builtins.int | None = ..., - message: _builtins.str | None = ..., - destination_identities: _abc.Iterable[_builtins.str] | None = ..., - sender_identity: _builtins.str | None = ..., - request_async_id: _builtins.int | None = ..., + local_participant_handle: builtins.int | None = ..., + message: builtins.str | None = ..., + destination_identities: collections.abc.Iterable[builtins.str] | None = ..., + sender_identity: builtins.str | None = ..., + request_async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "message", b"message", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["destination_identities", b"destination_identities", "local_participant_handle", b"local_participant_handle", "message", b"message", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "message", b"message", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["destination_identities", b"destination_identities", "local_participant_handle", b"local_participant_handle", "message", b"message", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"]) -> None: ... -Global___SendChatMessageRequest: _TypeAlias = SendChatMessageRequest # noqa: Y015 +global___SendChatMessageRequest = SendChatMessageRequest -@_typing.final -class EditChatMessageRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class EditChatMessageRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int - EDIT_TEXT_FIELD_NUMBER: _builtins.int - ORIGINAL_MESSAGE_FIELD_NUMBER: _builtins.int - DESTINATION_IDENTITIES_FIELD_NUMBER: _builtins.int - SENDER_IDENTITY_FIELD_NUMBER: _builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int - local_participant_handle: _builtins.int - edit_text: _builtins.str - sender_identity: _builtins.str - request_async_id: _builtins.int - @_builtins.property - def original_message(self) -> Global___ChatMessage: ... - @_builtins.property - def destination_identities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int + EDIT_TEXT_FIELD_NUMBER: builtins.int + ORIGINAL_MESSAGE_FIELD_NUMBER: builtins.int + DESTINATION_IDENTITIES_FIELD_NUMBER: builtins.int + SENDER_IDENTITY_FIELD_NUMBER: builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int + local_participant_handle: builtins.int + edit_text: builtins.str + sender_identity: builtins.str + request_async_id: builtins.int + @property + def original_message(self) -> global___ChatMessage: ... + @property + def destination_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... def __init__( self, *, - local_participant_handle: _builtins.int | None = ..., - edit_text: _builtins.str | None = ..., - original_message: Global___ChatMessage | None = ..., - destination_identities: _abc.Iterable[_builtins.str] | None = ..., - sender_identity: _builtins.str | None = ..., - request_async_id: _builtins.int | None = ..., + local_participant_handle: builtins.int | None = ..., + edit_text: builtins.str | None = ..., + original_message: global___ChatMessage | None = ..., + destination_identities: collections.abc.Iterable[builtins.str] | None = ..., + sender_identity: builtins.str | None = ..., + request_async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["edit_text", b"edit_text", "local_participant_handle", b"local_participant_handle", "original_message", b"original_message", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["destination_identities", b"destination_identities", "edit_text", b"edit_text", "local_participant_handle", b"local_participant_handle", "original_message", b"original_message", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["edit_text", b"edit_text", "local_participant_handle", b"local_participant_handle", "original_message", b"original_message", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["destination_identities", b"destination_identities", "edit_text", b"edit_text", "local_participant_handle", b"local_participant_handle", "original_message", b"original_message", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"]) -> None: ... -Global___EditChatMessageRequest: _TypeAlias = EditChatMessageRequest # noqa: Y015 +global___EditChatMessageRequest = EditChatMessageRequest -@_typing.final -class SendChatMessageResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class SendChatMessageResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... -Global___SendChatMessageResponse: _TypeAlias = SendChatMessageResponse # noqa: Y015 +global___SendChatMessageResponse = SendChatMessageResponse -@_typing.final -class SendChatMessageCallback(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class SendChatMessageCallback(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - CHAT_MESSAGE_FIELD_NUMBER: _builtins.int - async_id: _builtins.int - error: _builtins.str - @_builtins.property - def chat_message(self) -> Global___ChatMessage: ... + ASYNC_ID_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + CHAT_MESSAGE_FIELD_NUMBER: builtins.int + async_id: builtins.int + error: builtins.str + @property + def chat_message(self) -> global___ChatMessage: ... def __init__( self, - *, - async_id: _builtins.int | None = ..., - error: _builtins.str | None = ..., - chat_message: Global___ChatMessage | None = ..., - ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "chat_message", b"chat_message", "error", b"error", "message", b"message"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "chat_message", b"chat_message", "error", b"error", "message", b"message"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["error", "chat_message"] # noqa: Y015 - _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 - def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... + *, + async_id: builtins.int | None = ..., + error: builtins.str | None = ..., + chat_message: global___ChatMessage | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id", "chat_message", b"chat_message", "error", b"error", "message", b"message"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "chat_message", b"chat_message", "error", b"error", "message", b"message"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["error", "chat_message"] | None: ... -Global___SendChatMessageCallback: _TypeAlias = SendChatMessageCallback # noqa: Y015 +global___SendChatMessageCallback = SendChatMessageCallback -@_typing.final -class SetLocalAttributesRequest(_message.Message): +@typing.final +class SetLocalAttributesRequest(google.protobuf.message.Message): """Change the local participant's attributes""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int - ATTRIBUTES_FIELD_NUMBER: _builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int - local_participant_handle: _builtins.int - request_async_id: _builtins.int - @_builtins.property - def attributes(self) -> _containers.RepeatedCompositeFieldContainer[Global___AttributesEntry]: ... + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int + ATTRIBUTES_FIELD_NUMBER: builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int + local_participant_handle: builtins.int + request_async_id: builtins.int + @property + def attributes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AttributesEntry]: ... def __init__( self, *, - local_participant_handle: _builtins.int | None = ..., - attributes: _abc.Iterable[Global___AttributesEntry] | None = ..., - request_async_id: _builtins.int | None = ..., + local_participant_handle: builtins.int | None = ..., + attributes: collections.abc.Iterable[global___AttributesEntry] | None = ..., + request_async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["attributes", b"attributes", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["attributes", b"attributes", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id"]) -> None: ... -Global___SetLocalAttributesRequest: _TypeAlias = SetLocalAttributesRequest # noqa: Y015 +global___SetLocalAttributesRequest = SetLocalAttributesRequest -@_typing.final -class AttributesEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class AttributesEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - KEY_FIELD_NUMBER: _builtins.int - VALUE_FIELD_NUMBER: _builtins.int - key: _builtins.str - value: _builtins.str + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + value: builtins.str def __init__( self, *, - key: _builtins.str | None = ..., - value: _builtins.str | None = ..., + key: builtins.str | None = ..., + value: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... -Global___AttributesEntry: _TypeAlias = AttributesEntry # noqa: Y015 +global___AttributesEntry = AttributesEntry -@_typing.final -class SetLocalAttributesResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class SetLocalAttributesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... -Global___SetLocalAttributesResponse: _TypeAlias = SetLocalAttributesResponse # noqa: Y015 +global___SetLocalAttributesResponse = SetLocalAttributesResponse -@_typing.final -class SetLocalAttributesCallback(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class SetLocalAttributesCallback(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - async_id: _builtins.int - error: _builtins.str + ASYNC_ID_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + async_id: builtins.int + error: builtins.str def __init__( self, *, - async_id: _builtins.int | None = ..., - error: _builtins.str | None = ..., + async_id: builtins.int | None = ..., + error: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... -Global___SetLocalAttributesCallback: _TypeAlias = SetLocalAttributesCallback # noqa: Y015 +global___SetLocalAttributesCallback = SetLocalAttributesCallback -@_typing.final -class SetLocalNameRequest(_message.Message): +@typing.final +class SetLocalNameRequest(google.protobuf.message.Message): """Change the local participant's name""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int - NAME_FIELD_NUMBER: _builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int - local_participant_handle: _builtins.int - name: _builtins.str - request_async_id: _builtins.int + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int + local_participant_handle: builtins.int + name: builtins.str + request_async_id: builtins.int def __init__( self, *, - local_participant_handle: _builtins.int | None = ..., - name: _builtins.str | None = ..., - request_async_id: _builtins.int | None = ..., + local_participant_handle: builtins.int | None = ..., + name: builtins.str | None = ..., + request_async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "name", b"name", "request_async_id", b"request_async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "name", b"name", "request_async_id", b"request_async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "name", b"name", "request_async_id", b"request_async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "name", b"name", "request_async_id", b"request_async_id"]) -> None: ... -Global___SetLocalNameRequest: _TypeAlias = SetLocalNameRequest # noqa: Y015 +global___SetLocalNameRequest = SetLocalNameRequest -@_typing.final -class SetLocalNameResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class SetLocalNameResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... -Global___SetLocalNameResponse: _TypeAlias = SetLocalNameResponse # noqa: Y015 +global___SetLocalNameResponse = SetLocalNameResponse -@_typing.final -class SetLocalNameCallback(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class SetLocalNameCallback(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - async_id: _builtins.int - error: _builtins.str + ASYNC_ID_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + async_id: builtins.int + error: builtins.str def __init__( self, *, - async_id: _builtins.int | None = ..., - error: _builtins.str | None = ..., + async_id: builtins.int | None = ..., + error: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... -Global___SetLocalNameCallback: _TypeAlias = SetLocalNameCallback # noqa: Y015 +global___SetLocalNameCallback = SetLocalNameCallback -@_typing.final -class SetSubscribedRequest(_message.Message): +@typing.final +class SetSubscribedRequest(google.protobuf.message.Message): """Change the "desire" to subs2ribe to a track""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - SUBSCRIBE_FIELD_NUMBER: _builtins.int - PUBLICATION_HANDLE_FIELD_NUMBER: _builtins.int - subscribe: _builtins.bool - publication_handle: _builtins.int + SUBSCRIBE_FIELD_NUMBER: builtins.int + PUBLICATION_HANDLE_FIELD_NUMBER: builtins.int + subscribe: builtins.bool + publication_handle: builtins.int def __init__( self, *, - subscribe: _builtins.bool | None = ..., - publication_handle: _builtins.int | None = ..., + subscribe: builtins.bool | None = ..., + publication_handle: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["publication_handle", b"publication_handle", "subscribe", b"subscribe"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["publication_handle", b"publication_handle", "subscribe", b"subscribe"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["publication_handle", b"publication_handle", "subscribe", b"subscribe"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["publication_handle", b"publication_handle", "subscribe", b"subscribe"]) -> None: ... -Global___SetSubscribedRequest: _TypeAlias = SetSubscribedRequest # noqa: Y015 +global___SetSubscribedRequest = SetSubscribedRequest -@_typing.final -class SetSubscribedResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class SetSubscribedResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... -Global___SetSubscribedResponse: _TypeAlias = SetSubscribedResponse # noqa: Y015 +global___SetSubscribedResponse = SetSubscribedResponse -@_typing.final -class GetSessionStatsRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class GetSessionStatsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ROOM_HANDLE_FIELD_NUMBER: _builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int - room_handle: _builtins.int - request_async_id: _builtins.int + ROOM_HANDLE_FIELD_NUMBER: builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int + room_handle: builtins.int + request_async_id: builtins.int def __init__( self, *, - room_handle: _builtins.int | None = ..., - request_async_id: _builtins.int | None = ..., + room_handle: builtins.int | None = ..., + request_async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["request_async_id", b"request_async_id", "room_handle", b"room_handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["request_async_id", b"request_async_id", "room_handle", b"room_handle"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["request_async_id", b"request_async_id", "room_handle", b"room_handle"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["request_async_id", b"request_async_id", "room_handle", b"room_handle"]) -> None: ... -Global___GetSessionStatsRequest: _TypeAlias = GetSessionStatsRequest # noqa: Y015 +global___GetSessionStatsRequest = GetSessionStatsRequest -@_typing.final -class GetSessionStatsResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class GetSessionStatsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... -Global___GetSessionStatsResponse: _TypeAlias = GetSessionStatsResponse # noqa: Y015 +global___GetSessionStatsResponse = GetSessionStatsResponse -@_typing.final -class GetSessionStatsCallback(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class GetSessionStatsCallback(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class Result(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + @typing.final + class Result(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - PUBLISHER_STATS_FIELD_NUMBER: _builtins.int - SUBSCRIBER_STATS_FIELD_NUMBER: _builtins.int - @_builtins.property - def publisher_stats(self) -> _containers.RepeatedCompositeFieldContainer[_stats_pb2.RtcStats]: ... - @_builtins.property - def subscriber_stats(self) -> _containers.RepeatedCompositeFieldContainer[_stats_pb2.RtcStats]: ... + PUBLISHER_STATS_FIELD_NUMBER: builtins.int + SUBSCRIBER_STATS_FIELD_NUMBER: builtins.int + @property + def publisher_stats(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[stats_pb2.RtcStats]: ... + @property + def subscriber_stats(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[stats_pb2.RtcStats]: ... def __init__( self, *, - publisher_stats: _abc.Iterable[_stats_pb2.RtcStats] | None = ..., - subscriber_stats: _abc.Iterable[_stats_pb2.RtcStats] | None = ..., + publisher_stats: collections.abc.Iterable[stats_pb2.RtcStats] | None = ..., + subscriber_stats: collections.abc.Iterable[stats_pb2.RtcStats] | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["publisher_stats", b"publisher_stats", "subscriber_stats", b"subscriber_stats"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - - ASYNC_ID_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - RESULT_FIELD_NUMBER: _builtins.int - async_id: _builtins.int - error: _builtins.str - @_builtins.property - def result(self) -> Global___GetSessionStatsCallback.Result: ... - def __init__( - self, - *, - async_id: _builtins.int | None = ..., - error: _builtins.str | None = ..., - result: Global___GetSessionStatsCallback.Result | None = ..., - ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "result", b"result"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "result", b"result"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["error", "result"] # noqa: Y015 - _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 - def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... - -Global___GetSessionStatsCallback: _TypeAlias = GetSessionStatsCallback # noqa: Y015 - -@_typing.final -class VideoEncoding(_message.Message): + def ClearField(self, field_name: typing.Literal["publisher_stats", b"publisher_stats", "subscriber_stats", b"subscriber_stats"]) -> None: ... + + ASYNC_ID_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + RESULT_FIELD_NUMBER: builtins.int + async_id: builtins.int + error: builtins.str + @property + def result(self) -> global___GetSessionStatsCallback.Result: ... + def __init__( + self, + *, + async_id: builtins.int | None = ..., + error: builtins.str | None = ..., + result: global___GetSessionStatsCallback.Result | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "result", b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "result", b"result"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["error", "result"] | None: ... + +global___GetSessionStatsCallback = GetSessionStatsCallback + +@typing.final +class VideoEncoding(google.protobuf.message.Message): """ Options """ - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - MAX_BITRATE_FIELD_NUMBER: _builtins.int - MAX_FRAMERATE_FIELD_NUMBER: _builtins.int - max_bitrate: _builtins.int - max_framerate: _builtins.float + MAX_BITRATE_FIELD_NUMBER: builtins.int + MAX_FRAMERATE_FIELD_NUMBER: builtins.int + max_bitrate: builtins.int + max_framerate: builtins.float def __init__( self, *, - max_bitrate: _builtins.int | None = ..., - max_framerate: _builtins.float | None = ..., + max_bitrate: builtins.int | None = ..., + max_framerate: builtins.float | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["max_bitrate", b"max_bitrate", "max_framerate", b"max_framerate"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["max_bitrate", b"max_bitrate", "max_framerate", b"max_framerate"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["max_bitrate", b"max_bitrate", "max_framerate", b"max_framerate"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_bitrate", b"max_bitrate", "max_framerate", b"max_framerate"]) -> None: ... -Global___VideoEncoding: _TypeAlias = VideoEncoding # noqa: Y015 +global___VideoEncoding = VideoEncoding -@_typing.final -class AudioEncoding(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class AudioEncoding(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - MAX_BITRATE_FIELD_NUMBER: _builtins.int - max_bitrate: _builtins.int + MAX_BITRATE_FIELD_NUMBER: builtins.int + max_bitrate: builtins.int def __init__( self, *, - max_bitrate: _builtins.int | None = ..., + max_bitrate: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["max_bitrate", b"max_bitrate"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["max_bitrate", b"max_bitrate"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["max_bitrate", b"max_bitrate"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_bitrate", b"max_bitrate"]) -> None: ... -Global___AudioEncoding: _TypeAlias = AudioEncoding # noqa: Y015 +global___AudioEncoding = AudioEncoding -@_typing.final -class TrackPublishOptions(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class TrackPublishOptions(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - VIDEO_ENCODING_FIELD_NUMBER: _builtins.int - AUDIO_ENCODING_FIELD_NUMBER: _builtins.int - VIDEO_CODEC_FIELD_NUMBER: _builtins.int - DTX_FIELD_NUMBER: _builtins.int - RED_FIELD_NUMBER: _builtins.int - SIMULCAST_FIELD_NUMBER: _builtins.int - SOURCE_FIELD_NUMBER: _builtins.int - STREAM_FIELD_NUMBER: _builtins.int - PRECONNECT_BUFFER_FIELD_NUMBER: _builtins.int - PACKET_TRAILER_FEATURES_FIELD_NUMBER: _builtins.int - video_codec: _video_frame_pb2.VideoCodec.ValueType - dtx: _builtins.bool - red: _builtins.bool - simulcast: _builtins.bool - source: _track_pb2.TrackSource.ValueType - stream: _builtins.str - preconnect_buffer: _builtins.bool - @_builtins.property - def video_encoding(self) -> Global___VideoEncoding: + VIDEO_ENCODING_FIELD_NUMBER: builtins.int + AUDIO_ENCODING_FIELD_NUMBER: builtins.int + VIDEO_CODEC_FIELD_NUMBER: builtins.int + DTX_FIELD_NUMBER: builtins.int + RED_FIELD_NUMBER: builtins.int + SIMULCAST_FIELD_NUMBER: builtins.int + SOURCE_FIELD_NUMBER: builtins.int + STREAM_FIELD_NUMBER: builtins.int + PRECONNECT_BUFFER_FIELD_NUMBER: builtins.int + PACKET_TRAILER_FEATURES_FIELD_NUMBER: builtins.int + video_codec: video_frame_pb2.VideoCodec.ValueType + dtx: builtins.bool + red: builtins.bool + simulcast: builtins.bool + source: track_pb2.TrackSource.ValueType + stream: builtins.str + preconnect_buffer: builtins.bool + @property + def video_encoding(self) -> global___VideoEncoding: """encodings are optional""" - @_builtins.property - def audio_encoding(self) -> Global___AudioEncoding: ... - @_builtins.property - def packet_trailer_features(self) -> _containers.RepeatedScalarFieldContainer[_track_pb2.PacketTrailerFeature.ValueType]: ... - def __init__( - self, - *, - video_encoding: Global___VideoEncoding | None = ..., - audio_encoding: Global___AudioEncoding | None = ..., - video_codec: _video_frame_pb2.VideoCodec.ValueType | None = ..., - dtx: _builtins.bool | None = ..., - red: _builtins.bool | None = ..., - simulcast: _builtins.bool | None = ..., - source: _track_pb2.TrackSource.ValueType | None = ..., - stream: _builtins.str | None = ..., - preconnect_buffer: _builtins.bool | None = ..., - packet_trailer_features: _abc.Iterable[_track_pb2.PacketTrailerFeature.ValueType] | None = ..., - ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["audio_encoding", b"audio_encoding", "dtx", b"dtx", "preconnect_buffer", b"preconnect_buffer", "red", b"red", "simulcast", b"simulcast", "source", b"source", "stream", b"stream", "video_codec", b"video_codec", "video_encoding", b"video_encoding"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["audio_encoding", b"audio_encoding", "dtx", b"dtx", "packet_trailer_features", b"packet_trailer_features", "preconnect_buffer", b"preconnect_buffer", "red", b"red", "simulcast", b"simulcast", "source", b"source", "stream", b"stream", "video_codec", b"video_codec", "video_encoding", b"video_encoding"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___TrackPublishOptions: _TypeAlias = TrackPublishOptions # noqa: Y015 - -@_typing.final -class IceServer(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - URLS_FIELD_NUMBER: _builtins.int - USERNAME_FIELD_NUMBER: _builtins.int - PASSWORD_FIELD_NUMBER: _builtins.int - username: _builtins.str - password: _builtins.str - @_builtins.property - def urls(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... - def __init__( - self, - *, - urls: _abc.Iterable[_builtins.str] | None = ..., - username: _builtins.str | None = ..., - password: _builtins.str | None = ..., - ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["password", b"password", "username", b"username"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["password", b"password", "urls", b"urls", "username", b"username"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___IceServer: _TypeAlias = IceServer # noqa: Y015 - -@_typing.final -class RtcConfig(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - ICE_TRANSPORT_TYPE_FIELD_NUMBER: _builtins.int - CONTINUAL_GATHERING_POLICY_FIELD_NUMBER: _builtins.int - ICE_SERVERS_FIELD_NUMBER: _builtins.int - ice_transport_type: Global___IceTransportType.ValueType - continual_gathering_policy: Global___ContinualGatheringPolicy.ValueType - @_builtins.property - def ice_servers(self) -> _containers.RepeatedCompositeFieldContainer[Global___IceServer]: + @property + def audio_encoding(self) -> global___AudioEncoding: ... + @property + def packet_trailer_features(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[track_pb2.PacketTrailerFeature.ValueType]: ... + def __init__( + self, + *, + video_encoding: global___VideoEncoding | None = ..., + audio_encoding: global___AudioEncoding | None = ..., + video_codec: video_frame_pb2.VideoCodec.ValueType | None = ..., + dtx: builtins.bool | None = ..., + red: builtins.bool | None = ..., + simulcast: builtins.bool | None = ..., + source: track_pb2.TrackSource.ValueType | None = ..., + stream: builtins.str | None = ..., + preconnect_buffer: builtins.bool | None = ..., + packet_trailer_features: collections.abc.Iterable[track_pb2.PacketTrailerFeature.ValueType] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["audio_encoding", b"audio_encoding", "dtx", b"dtx", "preconnect_buffer", b"preconnect_buffer", "red", b"red", "simulcast", b"simulcast", "source", b"source", "stream", b"stream", "video_codec", b"video_codec", "video_encoding", b"video_encoding"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["audio_encoding", b"audio_encoding", "dtx", b"dtx", "packet_trailer_features", b"packet_trailer_features", "preconnect_buffer", b"preconnect_buffer", "red", b"red", "simulcast", b"simulcast", "source", b"source", "stream", b"stream", "video_codec", b"video_codec", "video_encoding", b"video_encoding"]) -> None: ... + +global___TrackPublishOptions = TrackPublishOptions + +@typing.final +class IceServer(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + URLS_FIELD_NUMBER: builtins.int + USERNAME_FIELD_NUMBER: builtins.int + PASSWORD_FIELD_NUMBER: builtins.int + username: builtins.str + password: builtins.str + @property + def urls(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + def __init__( + self, + *, + urls: collections.abc.Iterable[builtins.str] | None = ..., + username: builtins.str | None = ..., + password: builtins.str | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["password", b"password", "username", b"username"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["password", b"password", "urls", b"urls", "username", b"username"]) -> None: ... + +global___IceServer = IceServer + +@typing.final +class RtcConfig(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ICE_TRANSPORT_TYPE_FIELD_NUMBER: builtins.int + CONTINUAL_GATHERING_POLICY_FIELD_NUMBER: builtins.int + ICE_SERVERS_FIELD_NUMBER: builtins.int + ice_transport_type: global___IceTransportType.ValueType + continual_gathering_policy: global___ContinualGatheringPolicy.ValueType + @property + def ice_servers(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___IceServer]: """empty fallback to default""" def __init__( self, *, - ice_transport_type: Global___IceTransportType.ValueType | None = ..., - continual_gathering_policy: Global___ContinualGatheringPolicy.ValueType | None = ..., - ice_servers: _abc.Iterable[Global___IceServer] | None = ..., + ice_transport_type: global___IceTransportType.ValueType | None = ..., + continual_gathering_policy: global___ContinualGatheringPolicy.ValueType | None = ..., + ice_servers: collections.abc.Iterable[global___IceServer] | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["continual_gathering_policy", b"continual_gathering_policy", "ice_transport_type", b"ice_transport_type"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["continual_gathering_policy", b"continual_gathering_policy", "ice_servers", b"ice_servers", "ice_transport_type", b"ice_transport_type"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["continual_gathering_policy", b"continual_gathering_policy", "ice_transport_type", b"ice_transport_type"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["continual_gathering_policy", b"continual_gathering_policy", "ice_servers", b"ice_servers", "ice_transport_type", b"ice_transport_type"]) -> None: ... -Global___RtcConfig: _TypeAlias = RtcConfig # noqa: Y015 +global___RtcConfig = RtcConfig -@_typing.final -class RoomOptions(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class RoomOptions(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - AUTO_SUBSCRIBE_FIELD_NUMBER: _builtins.int - ADAPTIVE_STREAM_FIELD_NUMBER: _builtins.int - DYNACAST_FIELD_NUMBER: _builtins.int - E2EE_FIELD_NUMBER: _builtins.int - RTC_CONFIG_FIELD_NUMBER: _builtins.int - JOIN_RETRIES_FIELD_NUMBER: _builtins.int - ENCRYPTION_FIELD_NUMBER: _builtins.int - SINGLE_PEER_CONNECTION_FIELD_NUMBER: _builtins.int - CONNECT_TIMEOUT_MS_FIELD_NUMBER: _builtins.int - auto_subscribe: _builtins.bool - adaptive_stream: _builtins.bool - dynacast: _builtins.bool - join_retries: _builtins.int - single_peer_connection: _builtins.bool + AUTO_SUBSCRIBE_FIELD_NUMBER: builtins.int + ADAPTIVE_STREAM_FIELD_NUMBER: builtins.int + DYNACAST_FIELD_NUMBER: builtins.int + E2EE_FIELD_NUMBER: builtins.int + RTC_CONFIG_FIELD_NUMBER: builtins.int + JOIN_RETRIES_FIELD_NUMBER: builtins.int + ENCRYPTION_FIELD_NUMBER: builtins.int + SINGLE_PEER_CONNECTION_FIELD_NUMBER: builtins.int + CONNECT_TIMEOUT_MS_FIELD_NUMBER: builtins.int + auto_subscribe: builtins.bool + adaptive_stream: builtins.bool + dynacast: builtins.bool + join_retries: builtins.int + single_peer_connection: builtins.bool """use single peer connection for both publish/subscribe (default: false)""" - connect_timeout_ms: _builtins.int + connect_timeout_ms: builtins.int """timeout in milliseconds for each signal connection attempt (default: 5000)""" - @_builtins.property - @_deprecated("""This field has been marked as deprecated using proto field options.""") - def e2ee(self) -> _e2ee_pb2.E2eeOptions: ... - @_builtins.property - def rtc_config(self) -> Global___RtcConfig: + @property + def e2ee(self) -> e2ee_pb2.E2eeOptions: ... + @property + def rtc_config(self) -> global___RtcConfig: """allow to setup a custom RtcConfiguration""" - @_builtins.property - def encryption(self) -> _e2ee_pb2.E2eeOptions: ... + @property + def encryption(self) -> e2ee_pb2.E2eeOptions: ... def __init__( self, *, - auto_subscribe: _builtins.bool | None = ..., - adaptive_stream: _builtins.bool | None = ..., - dynacast: _builtins.bool | None = ..., - e2ee: _e2ee_pb2.E2eeOptions | None = ..., - rtc_config: Global___RtcConfig | None = ..., - join_retries: _builtins.int | None = ..., - encryption: _e2ee_pb2.E2eeOptions | None = ..., - single_peer_connection: _builtins.bool | None = ..., - connect_timeout_ms: _builtins.int | None = ..., + auto_subscribe: builtins.bool | None = ..., + adaptive_stream: builtins.bool | None = ..., + dynacast: builtins.bool | None = ..., + e2ee: e2ee_pb2.E2eeOptions | None = ..., + rtc_config: global___RtcConfig | None = ..., + join_retries: builtins.int | None = ..., + encryption: e2ee_pb2.E2eeOptions | None = ..., + single_peer_connection: builtins.bool | None = ..., + connect_timeout_ms: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["adaptive_stream", b"adaptive_stream", "auto_subscribe", b"auto_subscribe", "connect_timeout_ms", b"connect_timeout_ms", "dynacast", b"dynacast", "e2ee", b"e2ee", "encryption", b"encryption", "join_retries", b"join_retries", "rtc_config", b"rtc_config", "single_peer_connection", b"single_peer_connection"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["adaptive_stream", b"adaptive_stream", "auto_subscribe", b"auto_subscribe", "connect_timeout_ms", b"connect_timeout_ms", "dynacast", b"dynacast", "e2ee", b"e2ee", "encryption", b"encryption", "join_retries", b"join_retries", "rtc_config", b"rtc_config", "single_peer_connection", b"single_peer_connection"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___RoomOptions: _TypeAlias = RoomOptions # noqa: Y015 - -@_typing.final -class TranscriptionSegment(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - ID_FIELD_NUMBER: _builtins.int - TEXT_FIELD_NUMBER: _builtins.int - START_TIME_FIELD_NUMBER: _builtins.int - END_TIME_FIELD_NUMBER: _builtins.int - FINAL_FIELD_NUMBER: _builtins.int - LANGUAGE_FIELD_NUMBER: _builtins.int - id: _builtins.str - text: _builtins.str - start_time: _builtins.int - end_time: _builtins.int - final: _builtins.bool - language: _builtins.str - def __init__( - self, - *, - id: _builtins.str | None = ..., - text: _builtins.str | None = ..., - start_time: _builtins.int | None = ..., - end_time: _builtins.int | None = ..., - final: _builtins.bool | None = ..., - language: _builtins.str | None = ..., - ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["end_time", b"end_time", "final", b"final", "id", b"id", "language", b"language", "start_time", b"start_time", "text", b"text"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["end_time", b"end_time", "final", b"final", "id", b"id", "language", b"language", "start_time", b"start_time", "text", b"text"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___TranscriptionSegment: _TypeAlias = TranscriptionSegment # noqa: Y015 - -@_typing.final -class BufferInfo(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - DATA_PTR_FIELD_NUMBER: _builtins.int - DATA_LEN_FIELD_NUMBER: _builtins.int - data_ptr: _builtins.int - data_len: _builtins.int - def __init__( - self, - *, - data_ptr: _builtins.int | None = ..., - data_len: _builtins.int | None = ..., - ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["data_len", b"data_len", "data_ptr", b"data_ptr"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["data_len", b"data_len", "data_ptr", b"data_ptr"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___BufferInfo: _TypeAlias = BufferInfo # noqa: Y015 - -@_typing.final -class OwnedBuffer(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - HANDLE_FIELD_NUMBER: _builtins.int - DATA_FIELD_NUMBER: _builtins.int - @_builtins.property - def handle(self) -> _handle_pb2.FfiOwnedHandle: ... - @_builtins.property - def data(self) -> Global___BufferInfo: ... - def __init__( - self, - *, - handle: _handle_pb2.FfiOwnedHandle | None = ..., - data: Global___BufferInfo | None = ..., - ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["data", b"data", "handle", b"handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["data", b"data", "handle", b"handle"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___OwnedBuffer: _TypeAlias = OwnedBuffer # noqa: Y015 - -@_typing.final -class RoomEvent(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - ROOM_HANDLE_FIELD_NUMBER: _builtins.int - PARTICIPANT_CONNECTED_FIELD_NUMBER: _builtins.int - PARTICIPANT_DISCONNECTED_FIELD_NUMBER: _builtins.int - LOCAL_TRACK_PUBLISHED_FIELD_NUMBER: _builtins.int - LOCAL_TRACK_UNPUBLISHED_FIELD_NUMBER: _builtins.int - LOCAL_TRACK_SUBSCRIBED_FIELD_NUMBER: _builtins.int - TRACK_PUBLISHED_FIELD_NUMBER: _builtins.int - TRACK_UNPUBLISHED_FIELD_NUMBER: _builtins.int - TRACK_SUBSCRIBED_FIELD_NUMBER: _builtins.int - TRACK_UNSUBSCRIBED_FIELD_NUMBER: _builtins.int - TRACK_SUBSCRIPTION_FAILED_FIELD_NUMBER: _builtins.int - TRACK_MUTED_FIELD_NUMBER: _builtins.int - TRACK_UNMUTED_FIELD_NUMBER: _builtins.int - ACTIVE_SPEAKERS_CHANGED_FIELD_NUMBER: _builtins.int - ROOM_METADATA_CHANGED_FIELD_NUMBER: _builtins.int - ROOM_SID_CHANGED_FIELD_NUMBER: _builtins.int - PARTICIPANT_METADATA_CHANGED_FIELD_NUMBER: _builtins.int - PARTICIPANT_NAME_CHANGED_FIELD_NUMBER: _builtins.int - PARTICIPANT_ATTRIBUTES_CHANGED_FIELD_NUMBER: _builtins.int - CONNECTION_QUALITY_CHANGED_FIELD_NUMBER: _builtins.int - CONNECTION_STATE_CHANGED_FIELD_NUMBER: _builtins.int - DISCONNECTED_FIELD_NUMBER: _builtins.int - RECONNECTING_FIELD_NUMBER: _builtins.int - RECONNECTED_FIELD_NUMBER: _builtins.int - E2EE_STATE_CHANGED_FIELD_NUMBER: _builtins.int - EOS_FIELD_NUMBER: _builtins.int - DATA_PACKET_RECEIVED_FIELD_NUMBER: _builtins.int - TRANSCRIPTION_RECEIVED_FIELD_NUMBER: _builtins.int - CHAT_MESSAGE_FIELD_NUMBER: _builtins.int - STREAM_HEADER_RECEIVED_FIELD_NUMBER: _builtins.int - STREAM_CHUNK_RECEIVED_FIELD_NUMBER: _builtins.int - STREAM_TRAILER_RECEIVED_FIELD_NUMBER: _builtins.int - DATA_CHANNEL_LOW_THRESHOLD_CHANGED_FIELD_NUMBER: _builtins.int - BYTE_STREAM_OPENED_FIELD_NUMBER: _builtins.int - TEXT_STREAM_OPENED_FIELD_NUMBER: _builtins.int - ROOM_UPDATED_FIELD_NUMBER: _builtins.int - MOVED_FIELD_NUMBER: _builtins.int - PARTICIPANTS_UPDATED_FIELD_NUMBER: _builtins.int - PARTICIPANT_ENCRYPTION_STATUS_CHANGED_FIELD_NUMBER: _builtins.int - PARTICIPANT_PERMISSION_CHANGED_FIELD_NUMBER: _builtins.int - TOKEN_REFRESHED_FIELD_NUMBER: _builtins.int - PARTICIPANT_ACTIVE_FIELD_NUMBER: _builtins.int - DATA_TRACK_PUBLISHED_FIELD_NUMBER: _builtins.int - DATA_TRACK_UNPUBLISHED_FIELD_NUMBER: _builtins.int - room_handle: _builtins.int - @_builtins.property - def participant_connected(self) -> Global___ParticipantConnected: ... - @_builtins.property - def participant_disconnected(self) -> Global___ParticipantDisconnected: ... - @_builtins.property - def local_track_published(self) -> Global___LocalTrackPublished: ... - @_builtins.property - def local_track_unpublished(self) -> Global___LocalTrackUnpublished: ... - @_builtins.property - def local_track_subscribed(self) -> Global___LocalTrackSubscribed: ... - @_builtins.property - def track_published(self) -> Global___TrackPublished: ... - @_builtins.property - def track_unpublished(self) -> Global___TrackUnpublished: ... - @_builtins.property - def track_subscribed(self) -> Global___TrackSubscribed: ... - @_builtins.property - def track_unsubscribed(self) -> Global___TrackUnsubscribed: ... - @_builtins.property - def track_subscription_failed(self) -> Global___TrackSubscriptionFailed: ... - @_builtins.property - def track_muted(self) -> Global___TrackMuted: ... - @_builtins.property - def track_unmuted(self) -> Global___TrackUnmuted: ... - @_builtins.property - def active_speakers_changed(self) -> Global___ActiveSpeakersChanged: ... - @_builtins.property - def room_metadata_changed(self) -> Global___RoomMetadataChanged: ... - @_builtins.property - def room_sid_changed(self) -> Global___RoomSidChanged: ... - @_builtins.property - def participant_metadata_changed(self) -> Global___ParticipantMetadataChanged: ... - @_builtins.property - def participant_name_changed(self) -> Global___ParticipantNameChanged: ... - @_builtins.property - def participant_attributes_changed(self) -> Global___ParticipantAttributesChanged: ... - @_builtins.property - def connection_quality_changed(self) -> Global___ConnectionQualityChanged: ... - @_builtins.property - def connection_state_changed(self) -> Global___ConnectionStateChanged: ... - @_builtins.property - def disconnected(self) -> Global___Disconnected: + def HasField(self, field_name: typing.Literal["adaptive_stream", b"adaptive_stream", "auto_subscribe", b"auto_subscribe", "connect_timeout_ms", b"connect_timeout_ms", "dynacast", b"dynacast", "e2ee", b"e2ee", "encryption", b"encryption", "join_retries", b"join_retries", "rtc_config", b"rtc_config", "single_peer_connection", b"single_peer_connection"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["adaptive_stream", b"adaptive_stream", "auto_subscribe", b"auto_subscribe", "connect_timeout_ms", b"connect_timeout_ms", "dynacast", b"dynacast", "e2ee", b"e2ee", "encryption", b"encryption", "join_retries", b"join_retries", "rtc_config", b"rtc_config", "single_peer_connection", b"single_peer_connection"]) -> None: ... + +global___RoomOptions = RoomOptions + +@typing.final +class TranscriptionSegment(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ID_FIELD_NUMBER: builtins.int + TEXT_FIELD_NUMBER: builtins.int + START_TIME_FIELD_NUMBER: builtins.int + END_TIME_FIELD_NUMBER: builtins.int + FINAL_FIELD_NUMBER: builtins.int + LANGUAGE_FIELD_NUMBER: builtins.int + id: builtins.str + text: builtins.str + start_time: builtins.int + end_time: builtins.int + final: builtins.bool + language: builtins.str + def __init__( + self, + *, + id: builtins.str | None = ..., + text: builtins.str | None = ..., + start_time: builtins.int | None = ..., + end_time: builtins.int | None = ..., + final: builtins.bool | None = ..., + language: builtins.str | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["end_time", b"end_time", "final", b"final", "id", b"id", "language", b"language", "start_time", b"start_time", "text", b"text"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["end_time", b"end_time", "final", b"final", "id", b"id", "language", b"language", "start_time", b"start_time", "text", b"text"]) -> None: ... + +global___TranscriptionSegment = TranscriptionSegment + +@typing.final +class BufferInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DATA_PTR_FIELD_NUMBER: builtins.int + DATA_LEN_FIELD_NUMBER: builtins.int + data_ptr: builtins.int + data_len: builtins.int + def __init__( + self, + *, + data_ptr: builtins.int | None = ..., + data_len: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["data_len", b"data_len", "data_ptr", b"data_ptr"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["data_len", b"data_len", "data_ptr", b"data_ptr"]) -> None: ... + +global___BufferInfo = BufferInfo + +@typing.final +class OwnedBuffer(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HANDLE_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + @property + def handle(self) -> handle_pb2.FfiOwnedHandle: ... + @property + def data(self) -> global___BufferInfo: ... + def __init__( + self, + *, + handle: handle_pb2.FfiOwnedHandle | None = ..., + data: global___BufferInfo | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["data", b"data", "handle", b"handle"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["data", b"data", "handle", b"handle"]) -> None: ... + +global___OwnedBuffer = OwnedBuffer + +@typing.final +class RoomEvent(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ROOM_HANDLE_FIELD_NUMBER: builtins.int + PARTICIPANT_CONNECTED_FIELD_NUMBER: builtins.int + PARTICIPANT_DISCONNECTED_FIELD_NUMBER: builtins.int + LOCAL_TRACK_PUBLISHED_FIELD_NUMBER: builtins.int + LOCAL_TRACK_UNPUBLISHED_FIELD_NUMBER: builtins.int + LOCAL_TRACK_SUBSCRIBED_FIELD_NUMBER: builtins.int + TRACK_PUBLISHED_FIELD_NUMBER: builtins.int + TRACK_UNPUBLISHED_FIELD_NUMBER: builtins.int + TRACK_SUBSCRIBED_FIELD_NUMBER: builtins.int + TRACK_UNSUBSCRIBED_FIELD_NUMBER: builtins.int + TRACK_SUBSCRIPTION_FAILED_FIELD_NUMBER: builtins.int + TRACK_MUTED_FIELD_NUMBER: builtins.int + TRACK_UNMUTED_FIELD_NUMBER: builtins.int + ACTIVE_SPEAKERS_CHANGED_FIELD_NUMBER: builtins.int + ROOM_METADATA_CHANGED_FIELD_NUMBER: builtins.int + ROOM_SID_CHANGED_FIELD_NUMBER: builtins.int + PARTICIPANT_METADATA_CHANGED_FIELD_NUMBER: builtins.int + PARTICIPANT_NAME_CHANGED_FIELD_NUMBER: builtins.int + PARTICIPANT_ATTRIBUTES_CHANGED_FIELD_NUMBER: builtins.int + CONNECTION_QUALITY_CHANGED_FIELD_NUMBER: builtins.int + CONNECTION_STATE_CHANGED_FIELD_NUMBER: builtins.int + DISCONNECTED_FIELD_NUMBER: builtins.int + RECONNECTING_FIELD_NUMBER: builtins.int + RECONNECTED_FIELD_NUMBER: builtins.int + E2EE_STATE_CHANGED_FIELD_NUMBER: builtins.int + EOS_FIELD_NUMBER: builtins.int + DATA_PACKET_RECEIVED_FIELD_NUMBER: builtins.int + TRANSCRIPTION_RECEIVED_FIELD_NUMBER: builtins.int + CHAT_MESSAGE_FIELD_NUMBER: builtins.int + STREAM_HEADER_RECEIVED_FIELD_NUMBER: builtins.int + STREAM_CHUNK_RECEIVED_FIELD_NUMBER: builtins.int + STREAM_TRAILER_RECEIVED_FIELD_NUMBER: builtins.int + DATA_CHANNEL_LOW_THRESHOLD_CHANGED_FIELD_NUMBER: builtins.int + BYTE_STREAM_OPENED_FIELD_NUMBER: builtins.int + TEXT_STREAM_OPENED_FIELD_NUMBER: builtins.int + ROOM_UPDATED_FIELD_NUMBER: builtins.int + MOVED_FIELD_NUMBER: builtins.int + PARTICIPANTS_UPDATED_FIELD_NUMBER: builtins.int + PARTICIPANT_ENCRYPTION_STATUS_CHANGED_FIELD_NUMBER: builtins.int + PARTICIPANT_PERMISSION_CHANGED_FIELD_NUMBER: builtins.int + TOKEN_REFRESHED_FIELD_NUMBER: builtins.int + PARTICIPANT_ACTIVE_FIELD_NUMBER: builtins.int + DATA_TRACK_PUBLISHED_FIELD_NUMBER: builtins.int + DATA_TRACK_UNPUBLISHED_FIELD_NUMBER: builtins.int + room_handle: builtins.int + @property + def participant_connected(self) -> global___ParticipantConnected: ... + @property + def participant_disconnected(self) -> global___ParticipantDisconnected: ... + @property + def local_track_published(self) -> global___LocalTrackPublished: ... + @property + def local_track_unpublished(self) -> global___LocalTrackUnpublished: ... + @property + def local_track_subscribed(self) -> global___LocalTrackSubscribed: ... + @property + def track_published(self) -> global___TrackPublished: ... + @property + def track_unpublished(self) -> global___TrackUnpublished: ... + @property + def track_subscribed(self) -> global___TrackSubscribed: ... + @property + def track_unsubscribed(self) -> global___TrackUnsubscribed: ... + @property + def track_subscription_failed(self) -> global___TrackSubscriptionFailed: ... + @property + def track_muted(self) -> global___TrackMuted: ... + @property + def track_unmuted(self) -> global___TrackUnmuted: ... + @property + def active_speakers_changed(self) -> global___ActiveSpeakersChanged: ... + @property + def room_metadata_changed(self) -> global___RoomMetadataChanged: ... + @property + def room_sid_changed(self) -> global___RoomSidChanged: ... + @property + def participant_metadata_changed(self) -> global___ParticipantMetadataChanged: ... + @property + def participant_name_changed(self) -> global___ParticipantNameChanged: ... + @property + def participant_attributes_changed(self) -> global___ParticipantAttributesChanged: ... + @property + def connection_quality_changed(self) -> global___ConnectionQualityChanged: ... + @property + def connection_state_changed(self) -> global___ConnectionStateChanged: ... + @property + def disconnected(self) -> global___Disconnected: """Connected connected = 21;""" - @_builtins.property - def reconnecting(self) -> Global___Reconnecting: ... - @_builtins.property - def reconnected(self) -> Global___Reconnected: ... - @_builtins.property - def e2ee_state_changed(self) -> Global___E2eeStateChanged: ... - @_builtins.property - def eos(self) -> Global___RoomEOS: + @property + def reconnecting(self) -> global___Reconnecting: ... + @property + def reconnected(self) -> global___Reconnected: ... + @property + def e2ee_state_changed(self) -> global___E2eeStateChanged: ... + @property + def eos(self) -> global___RoomEOS: """The stream of room events has ended""" - @_builtins.property - def data_packet_received(self) -> Global___DataPacketReceived: ... - @_builtins.property - def transcription_received(self) -> Global___TranscriptionReceived: ... - @_builtins.property - def chat_message(self) -> Global___ChatMessageReceived: ... - @_builtins.property - def stream_header_received(self) -> Global___DataStreamHeaderReceived: + @property + def data_packet_received(self) -> global___DataPacketReceived: ... + @property + def transcription_received(self) -> global___TranscriptionReceived: ... + @property + def chat_message(self) -> global___ChatMessageReceived: ... + @property + def stream_header_received(self) -> global___DataStreamHeaderReceived: """Data stream (low level)""" - @_builtins.property - def stream_chunk_received(self) -> Global___DataStreamChunkReceived: ... - @_builtins.property - def stream_trailer_received(self) -> Global___DataStreamTrailerReceived: ... - @_builtins.property - def data_channel_low_threshold_changed(self) -> Global___DataChannelBufferedAmountLowThresholdChanged: ... - @_builtins.property - def byte_stream_opened(self) -> Global___ByteStreamOpened: + @property + def stream_chunk_received(self) -> global___DataStreamChunkReceived: ... + @property + def stream_trailer_received(self) -> global___DataStreamTrailerReceived: ... + @property + def data_channel_low_threshold_changed(self) -> global___DataChannelBufferedAmountLowThresholdChanged: ... + @property + def byte_stream_opened(self) -> global___ByteStreamOpened: """Data stream (high level)""" - @_builtins.property - def text_stream_opened(self) -> Global___TextStreamOpened: ... - @_builtins.property - def room_updated(self) -> Global___RoomInfo: + @property + def text_stream_opened(self) -> global___TextStreamOpened: ... + @property + def room_updated(self) -> global___RoomInfo: """Room info updated""" - @_builtins.property - def moved(self) -> Global___RoomInfo: + @property + def moved(self) -> global___RoomInfo: """Participant moved to new room""" - @_builtins.property - def participants_updated(self) -> Global___ParticipantsUpdated: + @property + def participants_updated(self) -> global___ParticipantsUpdated: """carry over all participant info updates, including sid""" - @_builtins.property - def participant_encryption_status_changed(self) -> Global___ParticipantEncryptionStatusChanged: ... - @_builtins.property - def participant_permission_changed(self) -> Global___ParticipantPermissionChanged: ... - @_builtins.property - def token_refreshed(self) -> Global___TokenRefreshed: ... - @_builtins.property - def participant_active(self) -> Global___ParticipantActive: ... - @_builtins.property - def data_track_published(self) -> Global___DataTrackPublished: ... - @_builtins.property - def data_track_unpublished(self) -> Global___DataTrackUnpublished: ... - def __init__( - self, - *, - room_handle: _builtins.int | None = ..., - participant_connected: Global___ParticipantConnected | None = ..., - participant_disconnected: Global___ParticipantDisconnected | None = ..., - local_track_published: Global___LocalTrackPublished | None = ..., - local_track_unpublished: Global___LocalTrackUnpublished | None = ..., - local_track_subscribed: Global___LocalTrackSubscribed | None = ..., - track_published: Global___TrackPublished | None = ..., - track_unpublished: Global___TrackUnpublished | None = ..., - track_subscribed: Global___TrackSubscribed | None = ..., - track_unsubscribed: Global___TrackUnsubscribed | None = ..., - track_subscription_failed: Global___TrackSubscriptionFailed | None = ..., - track_muted: Global___TrackMuted | None = ..., - track_unmuted: Global___TrackUnmuted | None = ..., - active_speakers_changed: Global___ActiveSpeakersChanged | None = ..., - room_metadata_changed: Global___RoomMetadataChanged | None = ..., - room_sid_changed: Global___RoomSidChanged | None = ..., - participant_metadata_changed: Global___ParticipantMetadataChanged | None = ..., - participant_name_changed: Global___ParticipantNameChanged | None = ..., - participant_attributes_changed: Global___ParticipantAttributesChanged | None = ..., - connection_quality_changed: Global___ConnectionQualityChanged | None = ..., - connection_state_changed: Global___ConnectionStateChanged | None = ..., - disconnected: Global___Disconnected | None = ..., - reconnecting: Global___Reconnecting | None = ..., - reconnected: Global___Reconnected | None = ..., - e2ee_state_changed: Global___E2eeStateChanged | None = ..., - eos: Global___RoomEOS | None = ..., - data_packet_received: Global___DataPacketReceived | None = ..., - transcription_received: Global___TranscriptionReceived | None = ..., - chat_message: Global___ChatMessageReceived | None = ..., - stream_header_received: Global___DataStreamHeaderReceived | None = ..., - stream_chunk_received: Global___DataStreamChunkReceived | None = ..., - stream_trailer_received: Global___DataStreamTrailerReceived | None = ..., - data_channel_low_threshold_changed: Global___DataChannelBufferedAmountLowThresholdChanged | None = ..., - byte_stream_opened: Global___ByteStreamOpened | None = ..., - text_stream_opened: Global___TextStreamOpened | None = ..., - room_updated: Global___RoomInfo | None = ..., - moved: Global___RoomInfo | None = ..., - participants_updated: Global___ParticipantsUpdated | None = ..., - participant_encryption_status_changed: Global___ParticipantEncryptionStatusChanged | None = ..., - participant_permission_changed: Global___ParticipantPermissionChanged | None = ..., - token_refreshed: Global___TokenRefreshed | None = ..., - participant_active: Global___ParticipantActive | None = ..., - data_track_published: Global___DataTrackPublished | None = ..., - data_track_unpublished: Global___DataTrackUnpublished | None = ..., - ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["active_speakers_changed", b"active_speakers_changed", "byte_stream_opened", b"byte_stream_opened", "chat_message", b"chat_message", "connection_quality_changed", b"connection_quality_changed", "connection_state_changed", b"connection_state_changed", "data_channel_low_threshold_changed", b"data_channel_low_threshold_changed", "data_packet_received", b"data_packet_received", "data_track_published", b"data_track_published", "data_track_unpublished", b"data_track_unpublished", "disconnected", b"disconnected", "e2ee_state_changed", b"e2ee_state_changed", "eos", b"eos", "local_track_published", b"local_track_published", "local_track_subscribed", b"local_track_subscribed", "local_track_unpublished", b"local_track_unpublished", "message", b"message", "moved", b"moved", "participant_active", b"participant_active", "participant_attributes_changed", b"participant_attributes_changed", "participant_connected", b"participant_connected", "participant_disconnected", b"participant_disconnected", "participant_encryption_status_changed", b"participant_encryption_status_changed", "participant_metadata_changed", b"participant_metadata_changed", "participant_name_changed", b"participant_name_changed", "participant_permission_changed", b"participant_permission_changed", "participants_updated", b"participants_updated", "reconnected", b"reconnected", "reconnecting", b"reconnecting", "room_handle", b"room_handle", "room_metadata_changed", b"room_metadata_changed", "room_sid_changed", b"room_sid_changed", "room_updated", b"room_updated", "stream_chunk_received", b"stream_chunk_received", "stream_header_received", b"stream_header_received", "stream_trailer_received", b"stream_trailer_received", "text_stream_opened", b"text_stream_opened", "token_refreshed", b"token_refreshed", "track_muted", b"track_muted", "track_published", b"track_published", "track_subscribed", b"track_subscribed", "track_subscription_failed", b"track_subscription_failed", "track_unmuted", b"track_unmuted", "track_unpublished", b"track_unpublished", "track_unsubscribed", b"track_unsubscribed", "transcription_received", b"transcription_received"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["active_speakers_changed", b"active_speakers_changed", "byte_stream_opened", b"byte_stream_opened", "chat_message", b"chat_message", "connection_quality_changed", b"connection_quality_changed", "connection_state_changed", b"connection_state_changed", "data_channel_low_threshold_changed", b"data_channel_low_threshold_changed", "data_packet_received", b"data_packet_received", "data_track_published", b"data_track_published", "data_track_unpublished", b"data_track_unpublished", "disconnected", b"disconnected", "e2ee_state_changed", b"e2ee_state_changed", "eos", b"eos", "local_track_published", b"local_track_published", "local_track_subscribed", b"local_track_subscribed", "local_track_unpublished", b"local_track_unpublished", "message", b"message", "moved", b"moved", "participant_active", b"participant_active", "participant_attributes_changed", b"participant_attributes_changed", "participant_connected", b"participant_connected", "participant_disconnected", b"participant_disconnected", "participant_encryption_status_changed", b"participant_encryption_status_changed", "participant_metadata_changed", b"participant_metadata_changed", "participant_name_changed", b"participant_name_changed", "participant_permission_changed", b"participant_permission_changed", "participants_updated", b"participants_updated", "reconnected", b"reconnected", "reconnecting", b"reconnecting", "room_handle", b"room_handle", "room_metadata_changed", b"room_metadata_changed", "room_sid_changed", b"room_sid_changed", "room_updated", b"room_updated", "stream_chunk_received", b"stream_chunk_received", "stream_header_received", b"stream_header_received", "stream_trailer_received", b"stream_trailer_received", "text_stream_opened", b"text_stream_opened", "token_refreshed", b"token_refreshed", "track_muted", b"track_muted", "track_published", b"track_published", "track_subscribed", b"track_subscribed", "track_subscription_failed", b"track_subscription_failed", "track_unmuted", b"track_unmuted", "track_unpublished", b"track_unpublished", "track_unsubscribed", b"track_unsubscribed", "transcription_received", b"transcription_received"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["participant_connected", "participant_disconnected", "local_track_published", "local_track_unpublished", "local_track_subscribed", "track_published", "track_unpublished", "track_subscribed", "track_unsubscribed", "track_subscription_failed", "track_muted", "track_unmuted", "active_speakers_changed", "room_metadata_changed", "room_sid_changed", "participant_metadata_changed", "participant_name_changed", "participant_attributes_changed", "connection_quality_changed", "connection_state_changed", "disconnected", "reconnecting", "reconnected", "e2ee_state_changed", "eos", "data_packet_received", "transcription_received", "chat_message", "stream_header_received", "stream_chunk_received", "stream_trailer_received", "data_channel_low_threshold_changed", "byte_stream_opened", "text_stream_opened", "room_updated", "moved", "participants_updated", "participant_encryption_status_changed", "participant_permission_changed", "token_refreshed", "participant_active", "data_track_published", "data_track_unpublished"] # noqa: Y015 - _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 - def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... - -Global___RoomEvent: _TypeAlias = RoomEvent # noqa: Y015 - -@_typing.final -class RoomInfo(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - SID_FIELD_NUMBER: _builtins.int - NAME_FIELD_NUMBER: _builtins.int - METADATA_FIELD_NUMBER: _builtins.int - LOSSY_DC_BUFFERED_AMOUNT_LOW_THRESHOLD_FIELD_NUMBER: _builtins.int - RELIABLE_DC_BUFFERED_AMOUNT_LOW_THRESHOLD_FIELD_NUMBER: _builtins.int - EMPTY_TIMEOUT_FIELD_NUMBER: _builtins.int - DEPARTURE_TIMEOUT_FIELD_NUMBER: _builtins.int - MAX_PARTICIPANTS_FIELD_NUMBER: _builtins.int - CREATION_TIME_FIELD_NUMBER: _builtins.int - NUM_PARTICIPANTS_FIELD_NUMBER: _builtins.int - NUM_PUBLISHERS_FIELD_NUMBER: _builtins.int - ACTIVE_RECORDING_FIELD_NUMBER: _builtins.int - sid: _builtins.str - name: _builtins.str - metadata: _builtins.str - lossy_dc_buffered_amount_low_threshold: _builtins.int - reliable_dc_buffered_amount_low_threshold: _builtins.int - empty_timeout: _builtins.int - departure_timeout: _builtins.int - max_participants: _builtins.int - creation_time: _builtins.int - num_participants: _builtins.int - num_publishers: _builtins.int - active_recording: _builtins.bool - def __init__( - self, - *, - sid: _builtins.str | None = ..., - name: _builtins.str | None = ..., - metadata: _builtins.str | None = ..., - lossy_dc_buffered_amount_low_threshold: _builtins.int | None = ..., - reliable_dc_buffered_amount_low_threshold: _builtins.int | None = ..., - empty_timeout: _builtins.int | None = ..., - departure_timeout: _builtins.int | None = ..., - max_participants: _builtins.int | None = ..., - creation_time: _builtins.int | None = ..., - num_participants: _builtins.int | None = ..., - num_publishers: _builtins.int | None = ..., - active_recording: _builtins.bool | None = ..., - ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["active_recording", b"active_recording", "creation_time", b"creation_time", "departure_timeout", b"departure_timeout", "empty_timeout", b"empty_timeout", "lossy_dc_buffered_amount_low_threshold", b"lossy_dc_buffered_amount_low_threshold", "max_participants", b"max_participants", "metadata", b"metadata", "name", b"name", "num_participants", b"num_participants", "num_publishers", b"num_publishers", "reliable_dc_buffered_amount_low_threshold", b"reliable_dc_buffered_amount_low_threshold", "sid", b"sid"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["active_recording", b"active_recording", "creation_time", b"creation_time", "departure_timeout", b"departure_timeout", "empty_timeout", b"empty_timeout", "lossy_dc_buffered_amount_low_threshold", b"lossy_dc_buffered_amount_low_threshold", "max_participants", b"max_participants", "metadata", b"metadata", "name", b"name", "num_participants", b"num_participants", "num_publishers", b"num_publishers", "reliable_dc_buffered_amount_low_threshold", b"reliable_dc_buffered_amount_low_threshold", "sid", b"sid"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___RoomInfo: _TypeAlias = RoomInfo # noqa: Y015 - -@_typing.final -class OwnedRoom(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - HANDLE_FIELD_NUMBER: _builtins.int - INFO_FIELD_NUMBER: _builtins.int - @_builtins.property - def handle(self) -> _handle_pb2.FfiOwnedHandle: ... - @_builtins.property - def info(self) -> Global___RoomInfo: ... - def __init__( - self, - *, - handle: _handle_pb2.FfiOwnedHandle | None = ..., - info: Global___RoomInfo | None = ..., - ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___OwnedRoom: _TypeAlias = OwnedRoom # noqa: Y015 - -@_typing.final -class ParticipantsUpdated(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + @property + def participant_encryption_status_changed(self) -> global___ParticipantEncryptionStatusChanged: ... + @property + def participant_permission_changed(self) -> global___ParticipantPermissionChanged: ... + @property + def token_refreshed(self) -> global___TokenRefreshed: ... + @property + def participant_active(self) -> global___ParticipantActive: ... + @property + def data_track_published(self) -> global___DataTrackPublished: ... + @property + def data_track_unpublished(self) -> global___DataTrackUnpublished: ... + def __init__( + self, + *, + room_handle: builtins.int | None = ..., + participant_connected: global___ParticipantConnected | None = ..., + participant_disconnected: global___ParticipantDisconnected | None = ..., + local_track_published: global___LocalTrackPublished | None = ..., + local_track_unpublished: global___LocalTrackUnpublished | None = ..., + local_track_subscribed: global___LocalTrackSubscribed | None = ..., + track_published: global___TrackPublished | None = ..., + track_unpublished: global___TrackUnpublished | None = ..., + track_subscribed: global___TrackSubscribed | None = ..., + track_unsubscribed: global___TrackUnsubscribed | None = ..., + track_subscription_failed: global___TrackSubscriptionFailed | None = ..., + track_muted: global___TrackMuted | None = ..., + track_unmuted: global___TrackUnmuted | None = ..., + active_speakers_changed: global___ActiveSpeakersChanged | None = ..., + room_metadata_changed: global___RoomMetadataChanged | None = ..., + room_sid_changed: global___RoomSidChanged | None = ..., + participant_metadata_changed: global___ParticipantMetadataChanged | None = ..., + participant_name_changed: global___ParticipantNameChanged | None = ..., + participant_attributes_changed: global___ParticipantAttributesChanged | None = ..., + connection_quality_changed: global___ConnectionQualityChanged | None = ..., + connection_state_changed: global___ConnectionStateChanged | None = ..., + disconnected: global___Disconnected | None = ..., + reconnecting: global___Reconnecting | None = ..., + reconnected: global___Reconnected | None = ..., + e2ee_state_changed: global___E2eeStateChanged | None = ..., + eos: global___RoomEOS | None = ..., + data_packet_received: global___DataPacketReceived | None = ..., + transcription_received: global___TranscriptionReceived | None = ..., + chat_message: global___ChatMessageReceived | None = ..., + stream_header_received: global___DataStreamHeaderReceived | None = ..., + stream_chunk_received: global___DataStreamChunkReceived | None = ..., + stream_trailer_received: global___DataStreamTrailerReceived | None = ..., + data_channel_low_threshold_changed: global___DataChannelBufferedAmountLowThresholdChanged | None = ..., + byte_stream_opened: global___ByteStreamOpened | None = ..., + text_stream_opened: global___TextStreamOpened | None = ..., + room_updated: global___RoomInfo | None = ..., + moved: global___RoomInfo | None = ..., + participants_updated: global___ParticipantsUpdated | None = ..., + participant_encryption_status_changed: global___ParticipantEncryptionStatusChanged | None = ..., + participant_permission_changed: global___ParticipantPermissionChanged | None = ..., + token_refreshed: global___TokenRefreshed | None = ..., + participant_active: global___ParticipantActive | None = ..., + data_track_published: global___DataTrackPublished | None = ..., + data_track_unpublished: global___DataTrackUnpublished | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["active_speakers_changed", b"active_speakers_changed", "byte_stream_opened", b"byte_stream_opened", "chat_message", b"chat_message", "connection_quality_changed", b"connection_quality_changed", "connection_state_changed", b"connection_state_changed", "data_channel_low_threshold_changed", b"data_channel_low_threshold_changed", "data_packet_received", b"data_packet_received", "data_track_published", b"data_track_published", "data_track_unpublished", b"data_track_unpublished", "disconnected", b"disconnected", "e2ee_state_changed", b"e2ee_state_changed", "eos", b"eos", "local_track_published", b"local_track_published", "local_track_subscribed", b"local_track_subscribed", "local_track_unpublished", b"local_track_unpublished", "message", b"message", "moved", b"moved", "participant_active", b"participant_active", "participant_attributes_changed", b"participant_attributes_changed", "participant_connected", b"participant_connected", "participant_disconnected", b"participant_disconnected", "participant_encryption_status_changed", b"participant_encryption_status_changed", "participant_metadata_changed", b"participant_metadata_changed", "participant_name_changed", b"participant_name_changed", "participant_permission_changed", b"participant_permission_changed", "participants_updated", b"participants_updated", "reconnected", b"reconnected", "reconnecting", b"reconnecting", "room_handle", b"room_handle", "room_metadata_changed", b"room_metadata_changed", "room_sid_changed", b"room_sid_changed", "room_updated", b"room_updated", "stream_chunk_received", b"stream_chunk_received", "stream_header_received", b"stream_header_received", "stream_trailer_received", b"stream_trailer_received", "text_stream_opened", b"text_stream_opened", "token_refreshed", b"token_refreshed", "track_muted", b"track_muted", "track_published", b"track_published", "track_subscribed", b"track_subscribed", "track_subscription_failed", b"track_subscription_failed", "track_unmuted", b"track_unmuted", "track_unpublished", b"track_unpublished", "track_unsubscribed", b"track_unsubscribed", "transcription_received", b"transcription_received"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["active_speakers_changed", b"active_speakers_changed", "byte_stream_opened", b"byte_stream_opened", "chat_message", b"chat_message", "connection_quality_changed", b"connection_quality_changed", "connection_state_changed", b"connection_state_changed", "data_channel_low_threshold_changed", b"data_channel_low_threshold_changed", "data_packet_received", b"data_packet_received", "data_track_published", b"data_track_published", "data_track_unpublished", b"data_track_unpublished", "disconnected", b"disconnected", "e2ee_state_changed", b"e2ee_state_changed", "eos", b"eos", "local_track_published", b"local_track_published", "local_track_subscribed", b"local_track_subscribed", "local_track_unpublished", b"local_track_unpublished", "message", b"message", "moved", b"moved", "participant_active", b"participant_active", "participant_attributes_changed", b"participant_attributes_changed", "participant_connected", b"participant_connected", "participant_disconnected", b"participant_disconnected", "participant_encryption_status_changed", b"participant_encryption_status_changed", "participant_metadata_changed", b"participant_metadata_changed", "participant_name_changed", b"participant_name_changed", "participant_permission_changed", b"participant_permission_changed", "participants_updated", b"participants_updated", "reconnected", b"reconnected", "reconnecting", b"reconnecting", "room_handle", b"room_handle", "room_metadata_changed", b"room_metadata_changed", "room_sid_changed", b"room_sid_changed", "room_updated", b"room_updated", "stream_chunk_received", b"stream_chunk_received", "stream_header_received", b"stream_header_received", "stream_trailer_received", b"stream_trailer_received", "text_stream_opened", b"text_stream_opened", "token_refreshed", b"token_refreshed", "track_muted", b"track_muted", "track_published", b"track_published", "track_subscribed", b"track_subscribed", "track_subscription_failed", b"track_subscription_failed", "track_unmuted", b"track_unmuted", "track_unpublished", b"track_unpublished", "track_unsubscribed", b"track_unsubscribed", "transcription_received", b"transcription_received"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["participant_connected", "participant_disconnected", "local_track_published", "local_track_unpublished", "local_track_subscribed", "track_published", "track_unpublished", "track_subscribed", "track_unsubscribed", "track_subscription_failed", "track_muted", "track_unmuted", "active_speakers_changed", "room_metadata_changed", "room_sid_changed", "participant_metadata_changed", "participant_name_changed", "participant_attributes_changed", "connection_quality_changed", "connection_state_changed", "disconnected", "reconnecting", "reconnected", "e2ee_state_changed", "eos", "data_packet_received", "transcription_received", "chat_message", "stream_header_received", "stream_chunk_received", "stream_trailer_received", "data_channel_low_threshold_changed", "byte_stream_opened", "text_stream_opened", "room_updated", "moved", "participants_updated", "participant_encryption_status_changed", "participant_permission_changed", "token_refreshed", "participant_active", "data_track_published", "data_track_unpublished"] | None: ... + +global___RoomEvent = RoomEvent + +@typing.final +class RoomInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SID_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + LOSSY_DC_BUFFERED_AMOUNT_LOW_THRESHOLD_FIELD_NUMBER: builtins.int + RELIABLE_DC_BUFFERED_AMOUNT_LOW_THRESHOLD_FIELD_NUMBER: builtins.int + EMPTY_TIMEOUT_FIELD_NUMBER: builtins.int + DEPARTURE_TIMEOUT_FIELD_NUMBER: builtins.int + MAX_PARTICIPANTS_FIELD_NUMBER: builtins.int + CREATION_TIME_FIELD_NUMBER: builtins.int + NUM_PARTICIPANTS_FIELD_NUMBER: builtins.int + NUM_PUBLISHERS_FIELD_NUMBER: builtins.int + ACTIVE_RECORDING_FIELD_NUMBER: builtins.int + sid: builtins.str + name: builtins.str + metadata: builtins.str + lossy_dc_buffered_amount_low_threshold: builtins.int + reliable_dc_buffered_amount_low_threshold: builtins.int + empty_timeout: builtins.int + departure_timeout: builtins.int + max_participants: builtins.int + creation_time: builtins.int + num_participants: builtins.int + num_publishers: builtins.int + active_recording: builtins.bool + def __init__( + self, + *, + sid: builtins.str | None = ..., + name: builtins.str | None = ..., + metadata: builtins.str | None = ..., + lossy_dc_buffered_amount_low_threshold: builtins.int | None = ..., + reliable_dc_buffered_amount_low_threshold: builtins.int | None = ..., + empty_timeout: builtins.int | None = ..., + departure_timeout: builtins.int | None = ..., + max_participants: builtins.int | None = ..., + creation_time: builtins.int | None = ..., + num_participants: builtins.int | None = ..., + num_publishers: builtins.int | None = ..., + active_recording: builtins.bool | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["active_recording", b"active_recording", "creation_time", b"creation_time", "departure_timeout", b"departure_timeout", "empty_timeout", b"empty_timeout", "lossy_dc_buffered_amount_low_threshold", b"lossy_dc_buffered_amount_low_threshold", "max_participants", b"max_participants", "metadata", b"metadata", "name", b"name", "num_participants", b"num_participants", "num_publishers", b"num_publishers", "reliable_dc_buffered_amount_low_threshold", b"reliable_dc_buffered_amount_low_threshold", "sid", b"sid"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["active_recording", b"active_recording", "creation_time", b"creation_time", "departure_timeout", b"departure_timeout", "empty_timeout", b"empty_timeout", "lossy_dc_buffered_amount_low_threshold", b"lossy_dc_buffered_amount_low_threshold", "max_participants", b"max_participants", "metadata", b"metadata", "name", b"name", "num_participants", b"num_participants", "num_publishers", b"num_publishers", "reliable_dc_buffered_amount_low_threshold", b"reliable_dc_buffered_amount_low_threshold", "sid", b"sid"]) -> None: ... - PARTICIPANTS_FIELD_NUMBER: _builtins.int - @_builtins.property - def participants(self) -> _containers.RepeatedCompositeFieldContainer[_participant_pb2.ParticipantInfo]: ... +global___RoomInfo = RoomInfo + +@typing.final +class OwnedRoom(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HANDLE_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + @property + def handle(self) -> handle_pb2.FfiOwnedHandle: ... + @property + def info(self) -> global___RoomInfo: ... def __init__( self, *, - participants: _abc.Iterable[_participant_pb2.ParticipantInfo] | None = ..., + handle: handle_pb2.FfiOwnedHandle | None = ..., + info: global___RoomInfo | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["participants", b"participants"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... -Global___ParticipantsUpdated: _TypeAlias = ParticipantsUpdated # noqa: Y015 +global___OwnedRoom = OwnedRoom -@_typing.final -class ParticipantConnected(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ParticipantsUpdated(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - INFO_FIELD_NUMBER: _builtins.int - @_builtins.property - def info(self) -> _participant_pb2.OwnedParticipant: ... + PARTICIPANTS_FIELD_NUMBER: builtins.int + @property + def participants(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[participant_pb2.ParticipantInfo]: ... def __init__( self, *, - info: _participant_pb2.OwnedParticipant | None = ..., + participants: collections.abc.Iterable[participant_pb2.ParticipantInfo] | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["info", b"info"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["info", b"info"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def ClearField(self, field_name: typing.Literal["participants", b"participants"]) -> None: ... -Global___ParticipantConnected: _TypeAlias = ParticipantConnected # noqa: Y015 +global___ParticipantsUpdated = ParticipantsUpdated -@_typing.final -class ParticipantActive(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ParticipantConnected(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int - participant_identity: _builtins.str + INFO_FIELD_NUMBER: builtins.int + @property + def info(self) -> participant_pb2.OwnedParticipant: ... def __init__( self, *, - participant_identity: _builtins.str | None = ..., + info: participant_pb2.OwnedParticipant | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["info", b"info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["info", b"info"]) -> None: ... -Global___ParticipantActive: _TypeAlias = ParticipantActive # noqa: Y015 +global___ParticipantConnected = ParticipantConnected -@_typing.final -class ParticipantDisconnected(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ParticipantActive(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int - DISCONNECT_REASON_FIELD_NUMBER: _builtins.int - participant_identity: _builtins.str - disconnect_reason: _participant_pb2.DisconnectReason.ValueType + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + participant_identity: builtins.str def __init__( self, *, - participant_identity: _builtins.str | None = ..., - disconnect_reason: _participant_pb2.DisconnectReason.ValueType | None = ..., + participant_identity: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["disconnect_reason", b"disconnect_reason", "participant_identity", b"participant_identity"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["disconnect_reason", b"disconnect_reason", "participant_identity", b"participant_identity"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity"]) -> None: ... -Global___ParticipantDisconnected: _TypeAlias = ParticipantDisconnected # noqa: Y015 +global___ParticipantActive = ParticipantActive -@_typing.final -class LocalTrackPublished(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ParticipantDisconnected(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - TRACK_SID_FIELD_NUMBER: _builtins.int - track_sid: _builtins.str + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + DISCONNECT_REASON_FIELD_NUMBER: builtins.int + participant_identity: builtins.str + disconnect_reason: participant_pb2.DisconnectReason.ValueType + def __init__( + self, + *, + participant_identity: builtins.str | None = ..., + disconnect_reason: participant_pb2.DisconnectReason.ValueType | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["disconnect_reason", b"disconnect_reason", "participant_identity", b"participant_identity"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["disconnect_reason", b"disconnect_reason", "participant_identity", b"participant_identity"]) -> None: ... + +global___ParticipantDisconnected = ParticipantDisconnected + +@typing.final +class LocalTrackPublished(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TRACK_SID_FIELD_NUMBER: builtins.int + track_sid: builtins.str """The TrackPublicationInfo comes from the PublishTrack response and the FfiClient musts wait for it before firing this event """ def __init__( self, *, - track_sid: _builtins.str | None = ..., + track_sid: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["track_sid", b"track_sid"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["track_sid", b"track_sid"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["track_sid", b"track_sid"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["track_sid", b"track_sid"]) -> None: ... -Global___LocalTrackPublished: _TypeAlias = LocalTrackPublished # noqa: Y015 +global___LocalTrackPublished = LocalTrackPublished -@_typing.final -class LocalTrackUnpublished(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class LocalTrackUnpublished(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - PUBLICATION_SID_FIELD_NUMBER: _builtins.int - publication_sid: _builtins.str + PUBLICATION_SID_FIELD_NUMBER: builtins.int + publication_sid: builtins.str def __init__( self, *, - publication_sid: _builtins.str | None = ..., + publication_sid: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["publication_sid", b"publication_sid"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["publication_sid", b"publication_sid"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["publication_sid", b"publication_sid"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["publication_sid", b"publication_sid"]) -> None: ... -Global___LocalTrackUnpublished: _TypeAlias = LocalTrackUnpublished # noqa: Y015 +global___LocalTrackUnpublished = LocalTrackUnpublished -@_typing.final -class LocalTrackSubscribed(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class LocalTrackSubscribed(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - TRACK_SID_FIELD_NUMBER: _builtins.int - track_sid: _builtins.str + TRACK_SID_FIELD_NUMBER: builtins.int + track_sid: builtins.str def __init__( self, *, - track_sid: _builtins.str | None = ..., + track_sid: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["track_sid", b"track_sid"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["track_sid", b"track_sid"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["track_sid", b"track_sid"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["track_sid", b"track_sid"]) -> None: ... -Global___LocalTrackSubscribed: _TypeAlias = LocalTrackSubscribed # noqa: Y015 +global___LocalTrackSubscribed = LocalTrackSubscribed -@_typing.final -class TrackPublished(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class TrackPublished(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int - PUBLICATION_FIELD_NUMBER: _builtins.int - participant_identity: _builtins.str - @_builtins.property - def publication(self) -> _track_pb2.OwnedTrackPublication: ... + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + PUBLICATION_FIELD_NUMBER: builtins.int + participant_identity: builtins.str + @property + def publication(self) -> track_pb2.OwnedTrackPublication: ... def __init__( self, *, - participant_identity: _builtins.str | None = ..., - publication: _track_pb2.OwnedTrackPublication | None = ..., + participant_identity: builtins.str | None = ..., + publication: track_pb2.OwnedTrackPublication | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "publication", b"publication"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "publication", b"publication"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "publication", b"publication"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "publication", b"publication"]) -> None: ... -Global___TrackPublished: _TypeAlias = TrackPublished # noqa: Y015 +global___TrackPublished = TrackPublished -@_typing.final -class TrackUnpublished(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class TrackUnpublished(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int - PUBLICATION_SID_FIELD_NUMBER: _builtins.int - participant_identity: _builtins.str - publication_sid: _builtins.str + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + PUBLICATION_SID_FIELD_NUMBER: builtins.int + participant_identity: builtins.str + publication_sid: builtins.str def __init__( self, *, - participant_identity: _builtins.str | None = ..., - publication_sid: _builtins.str | None = ..., + participant_identity: builtins.str | None = ..., + publication_sid: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "publication_sid", b"publication_sid"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "publication_sid", b"publication_sid"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "publication_sid", b"publication_sid"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "publication_sid", b"publication_sid"]) -> None: ... -Global___TrackUnpublished: _TypeAlias = TrackUnpublished # noqa: Y015 +global___TrackUnpublished = TrackUnpublished -@_typing.final -class TrackSubscribed(_message.Message): +@typing.final +class TrackSubscribed(google.protobuf.message.Message): """Publication isn't needed for subscription events on the FFI The FFI will retrieve the publication using the Track sid """ - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int - TRACK_FIELD_NUMBER: _builtins.int - participant_identity: _builtins.str - @_builtins.property - def track(self) -> _track_pb2.OwnedTrack: ... + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + TRACK_FIELD_NUMBER: builtins.int + participant_identity: builtins.str + @property + def track(self) -> track_pb2.OwnedTrack: ... def __init__( self, *, - participant_identity: _builtins.str | None = ..., - track: _track_pb2.OwnedTrack | None = ..., + participant_identity: builtins.str | None = ..., + track: track_pb2.OwnedTrack | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "track", b"track"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "track", b"track"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "track", b"track"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "track", b"track"]) -> None: ... -Global___TrackSubscribed: _TypeAlias = TrackSubscribed # noqa: Y015 +global___TrackSubscribed = TrackSubscribed -@_typing.final -class TrackUnsubscribed(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class TrackUnsubscribed(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int - TRACK_SID_FIELD_NUMBER: _builtins.int - participant_identity: _builtins.str + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + TRACK_SID_FIELD_NUMBER: builtins.int + participant_identity: builtins.str """The FFI language can dispose/remove the VideoSink here""" - track_sid: _builtins.str + track_sid: builtins.str def __init__( self, *, - participant_identity: _builtins.str | None = ..., - track_sid: _builtins.str | None = ..., + participant_identity: builtins.str | None = ..., + track_sid: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> None: ... -Global___TrackUnsubscribed: _TypeAlias = TrackUnsubscribed # noqa: Y015 +global___TrackUnsubscribed = TrackUnsubscribed -@_typing.final -class TrackSubscriptionFailed(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class TrackSubscriptionFailed(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int - TRACK_SID_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - participant_identity: _builtins.str - track_sid: _builtins.str - error: _builtins.str + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + TRACK_SID_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + participant_identity: builtins.str + track_sid: builtins.str + error: builtins.str def __init__( self, *, - participant_identity: _builtins.str | None = ..., - track_sid: _builtins.str | None = ..., - error: _builtins.str | None = ..., + participant_identity: builtins.str | None = ..., + track_sid: builtins.str | None = ..., + error: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> None: ... -Global___TrackSubscriptionFailed: _TypeAlias = TrackSubscriptionFailed # noqa: Y015 +global___TrackSubscriptionFailed = TrackSubscriptionFailed -@_typing.final -class TrackMuted(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class TrackMuted(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int - TRACK_SID_FIELD_NUMBER: _builtins.int - participant_identity: _builtins.str - track_sid: _builtins.str + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + TRACK_SID_FIELD_NUMBER: builtins.int + participant_identity: builtins.str + track_sid: builtins.str def __init__( self, *, - participant_identity: _builtins.str | None = ..., - track_sid: _builtins.str | None = ..., + participant_identity: builtins.str | None = ..., + track_sid: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> None: ... -Global___TrackMuted: _TypeAlias = TrackMuted # noqa: Y015 +global___TrackMuted = TrackMuted -@_typing.final -class TrackUnmuted(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class TrackUnmuted(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int - TRACK_SID_FIELD_NUMBER: _builtins.int - participant_identity: _builtins.str - track_sid: _builtins.str + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + TRACK_SID_FIELD_NUMBER: builtins.int + participant_identity: builtins.str + track_sid: builtins.str def __init__( self, *, - participant_identity: _builtins.str | None = ..., - track_sid: _builtins.str | None = ..., + participant_identity: builtins.str | None = ..., + track_sid: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> None: ... -Global___TrackUnmuted: _TypeAlias = TrackUnmuted # noqa: Y015 +global___TrackUnmuted = TrackUnmuted -@_typing.final -class E2eeStateChanged(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class E2eeStateChanged(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int - STATE_FIELD_NUMBER: _builtins.int - participant_identity: _builtins.str + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + STATE_FIELD_NUMBER: builtins.int + participant_identity: builtins.str """Using sid instead of identity for ffi communication""" - state: _e2ee_pb2.EncryptionState.ValueType + state: e2ee_pb2.EncryptionState.ValueType def __init__( self, *, - participant_identity: _builtins.str | None = ..., - state: _e2ee_pb2.EncryptionState.ValueType | None = ..., + participant_identity: builtins.str | None = ..., + state: e2ee_pb2.EncryptionState.ValueType | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "state", b"state"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "state", b"state"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "state", b"state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "state", b"state"]) -> None: ... -Global___E2eeStateChanged: _TypeAlias = E2eeStateChanged # noqa: Y015 +global___E2eeStateChanged = E2eeStateChanged -@_typing.final -class ActiveSpeakersChanged(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ActiveSpeakersChanged(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - PARTICIPANT_IDENTITIES_FIELD_NUMBER: _builtins.int - @_builtins.property - def participant_identities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... + PARTICIPANT_IDENTITIES_FIELD_NUMBER: builtins.int + @property + def participant_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... def __init__( self, *, - participant_identities: _abc.Iterable[_builtins.str] | None = ..., + participant_identities: collections.abc.Iterable[builtins.str] | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identities", b"participant_identities"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def ClearField(self, field_name: typing.Literal["participant_identities", b"participant_identities"]) -> None: ... -Global___ActiveSpeakersChanged: _TypeAlias = ActiveSpeakersChanged # noqa: Y015 +global___ActiveSpeakersChanged = ActiveSpeakersChanged -@_typing.final -class RoomMetadataChanged(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class RoomMetadataChanged(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - METADATA_FIELD_NUMBER: _builtins.int - metadata: _builtins.str + METADATA_FIELD_NUMBER: builtins.int + metadata: builtins.str def __init__( self, *, - metadata: _builtins.str | None = ..., + metadata: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["metadata", b"metadata"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["metadata", b"metadata"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["metadata", b"metadata"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["metadata", b"metadata"]) -> None: ... -Global___RoomMetadataChanged: _TypeAlias = RoomMetadataChanged # noqa: Y015 +global___RoomMetadataChanged = RoomMetadataChanged -@_typing.final -class RoomSidChanged(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class RoomSidChanged(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - SID_FIELD_NUMBER: _builtins.int - sid: _builtins.str + SID_FIELD_NUMBER: builtins.int + sid: builtins.str def __init__( self, *, - sid: _builtins.str | None = ..., + sid: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["sid", b"sid"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["sid", b"sid"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["sid", b"sid"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["sid", b"sid"]) -> None: ... -Global___RoomSidChanged: _TypeAlias = RoomSidChanged # noqa: Y015 +global___RoomSidChanged = RoomSidChanged -@_typing.final -class ParticipantMetadataChanged(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ParticipantMetadataChanged(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int - METADATA_FIELD_NUMBER: _builtins.int - participant_identity: _builtins.str - metadata: _builtins.str + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + participant_identity: builtins.str + metadata: builtins.str def __init__( self, *, - participant_identity: _builtins.str | None = ..., - metadata: _builtins.str | None = ..., + participant_identity: builtins.str | None = ..., + metadata: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["metadata", b"metadata", "participant_identity", b"participant_identity"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["metadata", b"metadata", "participant_identity", b"participant_identity"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["metadata", b"metadata", "participant_identity", b"participant_identity"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["metadata", b"metadata", "participant_identity", b"participant_identity"]) -> None: ... -Global___ParticipantMetadataChanged: _TypeAlias = ParticipantMetadataChanged # noqa: Y015 +global___ParticipantMetadataChanged = ParticipantMetadataChanged -@_typing.final -class ParticipantAttributesChanged(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ParticipantAttributesChanged(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int - ATTRIBUTES_FIELD_NUMBER: _builtins.int - CHANGED_ATTRIBUTES_FIELD_NUMBER: _builtins.int - participant_identity: _builtins.str - @_builtins.property - def attributes(self) -> _containers.RepeatedCompositeFieldContainer[Global___AttributesEntry]: ... - @_builtins.property - def changed_attributes(self) -> _containers.RepeatedCompositeFieldContainer[Global___AttributesEntry]: ... + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + ATTRIBUTES_FIELD_NUMBER: builtins.int + CHANGED_ATTRIBUTES_FIELD_NUMBER: builtins.int + participant_identity: builtins.str + @property + def attributes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AttributesEntry]: ... + @property + def changed_attributes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AttributesEntry]: ... def __init__( self, *, - participant_identity: _builtins.str | None = ..., - attributes: _abc.Iterable[Global___AttributesEntry] | None = ..., - changed_attributes: _abc.Iterable[Global___AttributesEntry] | None = ..., + participant_identity: builtins.str | None = ..., + attributes: collections.abc.Iterable[global___AttributesEntry] | None = ..., + changed_attributes: collections.abc.Iterable[global___AttributesEntry] | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["attributes", b"attributes", "changed_attributes", b"changed_attributes", "participant_identity", b"participant_identity"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["attributes", b"attributes", "changed_attributes", b"changed_attributes", "participant_identity", b"participant_identity"]) -> None: ... -Global___ParticipantAttributesChanged: _TypeAlias = ParticipantAttributesChanged # noqa: Y015 +global___ParticipantAttributesChanged = ParticipantAttributesChanged -@_typing.final -class ParticipantEncryptionStatusChanged(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ParticipantEncryptionStatusChanged(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int - IS_ENCRYPTED_FIELD_NUMBER: _builtins.int - participant_identity: _builtins.str - is_encrypted: _builtins.bool + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + IS_ENCRYPTED_FIELD_NUMBER: builtins.int + participant_identity: builtins.str + is_encrypted: builtins.bool def __init__( self, *, - participant_identity: _builtins.str | None = ..., - is_encrypted: _builtins.bool | None = ..., + participant_identity: builtins.str | None = ..., + is_encrypted: builtins.bool | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["is_encrypted", b"is_encrypted", "participant_identity", b"participant_identity"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["is_encrypted", b"is_encrypted", "participant_identity", b"participant_identity"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["is_encrypted", b"is_encrypted", "participant_identity", b"participant_identity"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["is_encrypted", b"is_encrypted", "participant_identity", b"participant_identity"]) -> None: ... -Global___ParticipantEncryptionStatusChanged: _TypeAlias = ParticipantEncryptionStatusChanged # noqa: Y015 +global___ParticipantEncryptionStatusChanged = ParticipantEncryptionStatusChanged -@_typing.final -class ParticipantNameChanged(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ParticipantNameChanged(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int - NAME_FIELD_NUMBER: _builtins.int - participant_identity: _builtins.str - name: _builtins.str + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + participant_identity: builtins.str + name: builtins.str def __init__( self, *, - participant_identity: _builtins.str | None = ..., - name: _builtins.str | None = ..., + participant_identity: builtins.str | None = ..., + name: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "participant_identity", b"participant_identity"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "participant_identity", b"participant_identity"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["name", b"name", "participant_identity", b"participant_identity"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["name", b"name", "participant_identity", b"participant_identity"]) -> None: ... -Global___ParticipantNameChanged: _TypeAlias = ParticipantNameChanged # noqa: Y015 +global___ParticipantNameChanged = ParticipantNameChanged -@_typing.final -class ParticipantPermissionChanged(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ParticipantPermissionChanged(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int - PERMISSION_FIELD_NUMBER: _builtins.int - participant_identity: _builtins.str - @_builtins.property - def permission(self) -> _participant_pb2.ParticipantPermission: ... + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + PERMISSION_FIELD_NUMBER: builtins.int + participant_identity: builtins.str + @property + def permission(self) -> participant_pb2.ParticipantPermission: ... def __init__( self, *, - participant_identity: _builtins.str | None = ..., - permission: _participant_pb2.ParticipantPermission | None = ..., + participant_identity: builtins.str | None = ..., + permission: participant_pb2.ParticipantPermission | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "permission", b"permission"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "permission", b"permission"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "permission", b"permission"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "permission", b"permission"]) -> None: ... -Global___ParticipantPermissionChanged: _TypeAlias = ParticipantPermissionChanged # noqa: Y015 +global___ParticipantPermissionChanged = ParticipantPermissionChanged -@_typing.final -class ConnectionQualityChanged(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ConnectionQualityChanged(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int - QUALITY_FIELD_NUMBER: _builtins.int - participant_identity: _builtins.str - quality: Global___ConnectionQuality.ValueType + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + QUALITY_FIELD_NUMBER: builtins.int + participant_identity: builtins.str + quality: global___ConnectionQuality.ValueType def __init__( self, *, - participant_identity: _builtins.str | None = ..., - quality: Global___ConnectionQuality.ValueType | None = ..., + participant_identity: builtins.str | None = ..., + quality: global___ConnectionQuality.ValueType | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "quality", b"quality"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "quality", b"quality"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "quality", b"quality"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "quality", b"quality"]) -> None: ... -Global___ConnectionQualityChanged: _TypeAlias = ConnectionQualityChanged # noqa: Y015 +global___ConnectionQualityChanged = ConnectionQualityChanged -@_typing.final -class UserPacket(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class UserPacket(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - DATA_FIELD_NUMBER: _builtins.int - TOPIC_FIELD_NUMBER: _builtins.int - topic: _builtins.str - @_builtins.property - def data(self) -> Global___OwnedBuffer: ... + DATA_FIELD_NUMBER: builtins.int + TOPIC_FIELD_NUMBER: builtins.int + topic: builtins.str + @property + def data(self) -> global___OwnedBuffer: ... def __init__( self, *, - data: Global___OwnedBuffer | None = ..., - topic: _builtins.str | None = ..., + data: global___OwnedBuffer | None = ..., + topic: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["data", b"data", "topic", b"topic"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["data", b"data", "topic", b"topic"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["data", b"data", "topic", b"topic"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["data", b"data", "topic", b"topic"]) -> None: ... -Global___UserPacket: _TypeAlias = UserPacket # noqa: Y015 +global___UserPacket = UserPacket -@_typing.final -class ChatMessage(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ChatMessage(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ID_FIELD_NUMBER: _builtins.int - TIMESTAMP_FIELD_NUMBER: _builtins.int - MESSAGE_FIELD_NUMBER: _builtins.int - EDIT_TIMESTAMP_FIELD_NUMBER: _builtins.int - DELETED_FIELD_NUMBER: _builtins.int - GENERATED_FIELD_NUMBER: _builtins.int - id: _builtins.str - timestamp: _builtins.int - message: _builtins.str - edit_timestamp: _builtins.int - deleted: _builtins.bool - generated: _builtins.bool + ID_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + MESSAGE_FIELD_NUMBER: builtins.int + EDIT_TIMESTAMP_FIELD_NUMBER: builtins.int + DELETED_FIELD_NUMBER: builtins.int + GENERATED_FIELD_NUMBER: builtins.int + id: builtins.str + timestamp: builtins.int + message: builtins.str + edit_timestamp: builtins.int + deleted: builtins.bool + generated: builtins.bool def __init__( self, *, - id: _builtins.str | None = ..., - timestamp: _builtins.int | None = ..., - message: _builtins.str | None = ..., - edit_timestamp: _builtins.int | None = ..., - deleted: _builtins.bool | None = ..., - generated: _builtins.bool | None = ..., + id: builtins.str | None = ..., + timestamp: builtins.int | None = ..., + message: builtins.str | None = ..., + edit_timestamp: builtins.int | None = ..., + deleted: builtins.bool | None = ..., + generated: builtins.bool | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["deleted", b"deleted", "edit_timestamp", b"edit_timestamp", "generated", b"generated", "id", b"id", "message", b"message", "timestamp", b"timestamp"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["deleted", b"deleted", "edit_timestamp", b"edit_timestamp", "generated", b"generated", "id", b"id", "message", b"message", "timestamp", b"timestamp"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["deleted", b"deleted", "edit_timestamp", b"edit_timestamp", "generated", b"generated", "id", b"id", "message", b"message", "timestamp", b"timestamp"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["deleted", b"deleted", "edit_timestamp", b"edit_timestamp", "generated", b"generated", "id", b"id", "message", b"message", "timestamp", b"timestamp"]) -> None: ... -Global___ChatMessage: _TypeAlias = ChatMessage # noqa: Y015 +global___ChatMessage = ChatMessage -@_typing.final -class ChatMessageReceived(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ChatMessageReceived(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - MESSAGE_FIELD_NUMBER: _builtins.int - PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int - participant_identity: _builtins.str - @_builtins.property - def message(self) -> Global___ChatMessage: ... + MESSAGE_FIELD_NUMBER: builtins.int + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + participant_identity: builtins.str + @property + def message(self) -> global___ChatMessage: ... def __init__( self, *, - message: Global___ChatMessage | None = ..., - participant_identity: _builtins.str | None = ..., + message: global___ChatMessage | None = ..., + participant_identity: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["message", b"message", "participant_identity", b"participant_identity"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["message", b"message", "participant_identity", b"participant_identity"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["message", b"message", "participant_identity", b"participant_identity"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["message", b"message", "participant_identity", b"participant_identity"]) -> None: ... -Global___ChatMessageReceived: _TypeAlias = ChatMessageReceived # noqa: Y015 +global___ChatMessageReceived = ChatMessageReceived -@_typing.final -class SipDTMF(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class SipDTMF(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - CODE_FIELD_NUMBER: _builtins.int - DIGIT_FIELD_NUMBER: _builtins.int - code: _builtins.int - digit: _builtins.str + CODE_FIELD_NUMBER: builtins.int + DIGIT_FIELD_NUMBER: builtins.int + code: builtins.int + digit: builtins.str def __init__( self, *, - code: _builtins.int | None = ..., - digit: _builtins.str | None = ..., + code: builtins.int | None = ..., + digit: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "digit", b"digit"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "digit", b"digit"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["code", b"code", "digit", b"digit"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["code", b"code", "digit", b"digit"]) -> None: ... -Global___SipDTMF: _TypeAlias = SipDTMF # noqa: Y015 +global___SipDTMF = SipDTMF -@_typing.final -class DataPacketReceived(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class DataPacketReceived(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - KIND_FIELD_NUMBER: _builtins.int - PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int - USER_FIELD_NUMBER: _builtins.int - SIP_DTMF_FIELD_NUMBER: _builtins.int - kind: Global___DataPacketKind.ValueType - participant_identity: _builtins.str + KIND_FIELD_NUMBER: builtins.int + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + USER_FIELD_NUMBER: builtins.int + SIP_DTMF_FIELD_NUMBER: builtins.int + kind: global___DataPacketKind.ValueType + participant_identity: builtins.str """Can be empty if the data is sent a server SDK""" - @_builtins.property - def user(self) -> Global___UserPacket: ... - @_builtins.property - def sip_dtmf(self) -> Global___SipDTMF: ... + @property + def user(self) -> global___UserPacket: ... + @property + def sip_dtmf(self) -> global___SipDTMF: ... def __init__( self, *, - kind: Global___DataPacketKind.ValueType | None = ..., - participant_identity: _builtins.str | None = ..., - user: Global___UserPacket | None = ..., - sip_dtmf: Global___SipDTMF | None = ..., + kind: global___DataPacketKind.ValueType | None = ..., + participant_identity: builtins.str | None = ..., + user: global___UserPacket | None = ..., + sip_dtmf: global___SipDTMF | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "participant_identity", b"participant_identity", "sip_dtmf", b"sip_dtmf", "user", b"user", "value", b"value"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "participant_identity", b"participant_identity", "sip_dtmf", b"sip_dtmf", "user", b"user", "value", b"value"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - _WhichOneofReturnType_value: _TypeAlias = _typing.Literal["user", "sip_dtmf"] # noqa: Y015 - _WhichOneofArgType_value: _TypeAlias = _typing.Literal["value", b"value"] # noqa: Y015 - def WhichOneof(self, oneof_group: _WhichOneofArgType_value) -> _WhichOneofReturnType_value | None: ... + def HasField(self, field_name: typing.Literal["kind", b"kind", "participant_identity", b"participant_identity", "sip_dtmf", b"sip_dtmf", "user", b"user", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["kind", b"kind", "participant_identity", b"participant_identity", "sip_dtmf", b"sip_dtmf", "user", b"user", "value", b"value"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["value", b"value"]) -> typing.Literal["user", "sip_dtmf"] | None: ... -Global___DataPacketReceived: _TypeAlias = DataPacketReceived # noqa: Y015 +global___DataPacketReceived = DataPacketReceived -@_typing.final -class TranscriptionReceived(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class TranscriptionReceived(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int - TRACK_SID_FIELD_NUMBER: _builtins.int - SEGMENTS_FIELD_NUMBER: _builtins.int - participant_identity: _builtins.str - track_sid: _builtins.str - @_builtins.property - def segments(self) -> _containers.RepeatedCompositeFieldContainer[Global___TranscriptionSegment]: ... + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + TRACK_SID_FIELD_NUMBER: builtins.int + SEGMENTS_FIELD_NUMBER: builtins.int + participant_identity: builtins.str + track_sid: builtins.str + @property + def segments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___TranscriptionSegment]: ... def __init__( self, *, - participant_identity: _builtins.str | None = ..., - track_sid: _builtins.str | None = ..., - segments: _abc.Iterable[Global___TranscriptionSegment] | None = ..., + participant_identity: builtins.str | None = ..., + track_sid: builtins.str | None = ..., + segments: collections.abc.Iterable[global___TranscriptionSegment] | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "segments", b"segments", "track_sid", b"track_sid"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "segments", b"segments", "track_sid", b"track_sid"]) -> None: ... -Global___TranscriptionReceived: _TypeAlias = TranscriptionReceived # noqa: Y015 +global___TranscriptionReceived = TranscriptionReceived -@_typing.final -class ConnectionStateChanged(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ConnectionStateChanged(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - STATE_FIELD_NUMBER: _builtins.int - state: Global___ConnectionState.ValueType + STATE_FIELD_NUMBER: builtins.int + state: global___ConnectionState.ValueType def __init__( self, *, - state: Global___ConnectionState.ValueType | None = ..., + state: global___ConnectionState.ValueType | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["state", b"state"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["state", b"state"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["state", b"state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["state", b"state"]) -> None: ... -Global___ConnectionStateChanged: _TypeAlias = ConnectionStateChanged # noqa: Y015 +global___ConnectionStateChanged = ConnectionStateChanged -@_typing.final -class Connected(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class Connected(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... -Global___Connected: _TypeAlias = Connected # noqa: Y015 +global___Connected = Connected -@_typing.final -class Disconnected(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class Disconnected(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - REASON_FIELD_NUMBER: _builtins.int - reason: _participant_pb2.DisconnectReason.ValueType + REASON_FIELD_NUMBER: builtins.int + reason: participant_pb2.DisconnectReason.ValueType def __init__( self, *, - reason: _participant_pb2.DisconnectReason.ValueType | None = ..., + reason: participant_pb2.DisconnectReason.ValueType | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["reason", b"reason"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["reason", b"reason"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["reason", b"reason"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["reason", b"reason"]) -> None: ... -Global___Disconnected: _TypeAlias = Disconnected # noqa: Y015 +global___Disconnected = Disconnected -@_typing.final -class Reconnecting(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class Reconnecting(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... -Global___Reconnecting: _TypeAlias = Reconnecting # noqa: Y015 +global___Reconnecting = Reconnecting -@_typing.final -class Reconnected(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class Reconnected(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... -Global___Reconnected: _TypeAlias = Reconnected # noqa: Y015 +global___Reconnected = Reconnected -@_typing.final -class TokenRefreshed(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class TokenRefreshed(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - TOKEN_FIELD_NUMBER: _builtins.int - token: _builtins.str + TOKEN_FIELD_NUMBER: builtins.int + token: builtins.str def __init__( self, *, - token: _builtins.str | None = ..., + token: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["token", b"token"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["token", b"token"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["token", b"token"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["token", b"token"]) -> None: ... -Global___TokenRefreshed: _TypeAlias = TokenRefreshed # noqa: Y015 +global___TokenRefreshed = TokenRefreshed -@_typing.final -class RoomEOS(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class RoomEOS(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... -Global___RoomEOS: _TypeAlias = RoomEOS # noqa: Y015 +global___RoomEOS = RoomEOS -@_typing.final -class DataStream(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class DataStream(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor class _OperationType: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType - class _OperationTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[DataStream._OperationType.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor + class _OperationTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[DataStream._OperationType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor CREATE: DataStream._OperationType.ValueType # 0 UPDATE: DataStream._OperationType.ValueType # 1 DELETE: DataStream._OperationType.ValueType # 2 @@ -2678,663 +2367,577 @@ class DataStream(_message.Message): DELETE: DataStream.OperationType.ValueType # 2 REACTION: DataStream.OperationType.ValueType # 3 - @_typing.final - class TextHeader(_message.Message): + @typing.final + class TextHeader(google.protobuf.message.Message): """header properties specific to text streams""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - OPERATION_TYPE_FIELD_NUMBER: _builtins.int - VERSION_FIELD_NUMBER: _builtins.int - REPLY_TO_STREAM_ID_FIELD_NUMBER: _builtins.int - ATTACHED_STREAM_IDS_FIELD_NUMBER: _builtins.int - GENERATED_FIELD_NUMBER: _builtins.int - operation_type: Global___DataStream.OperationType.ValueType - version: _builtins.int + OPERATION_TYPE_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + REPLY_TO_STREAM_ID_FIELD_NUMBER: builtins.int + ATTACHED_STREAM_IDS_FIELD_NUMBER: builtins.int + GENERATED_FIELD_NUMBER: builtins.int + operation_type: global___DataStream.OperationType.ValueType + version: builtins.int """Optional: Version for updates/edits""" - reply_to_stream_id: _builtins.str + reply_to_stream_id: builtins.str """Optional: Reply to specific message""" - generated: _builtins.bool + generated: builtins.bool """true if the text has been generated by an agent from a participant's audio transcription""" - @_builtins.property - def attached_stream_ids(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: + @property + def attached_stream_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """file attachments for text streams""" def __init__( self, *, - operation_type: Global___DataStream.OperationType.ValueType | None = ..., - version: _builtins.int | None = ..., - reply_to_stream_id: _builtins.str | None = ..., - attached_stream_ids: _abc.Iterable[_builtins.str] | None = ..., - generated: _builtins.bool | None = ..., + operation_type: global___DataStream.OperationType.ValueType | None = ..., + version: builtins.int | None = ..., + reply_to_stream_id: builtins.str | None = ..., + attached_stream_ids: collections.abc.Iterable[builtins.str] | None = ..., + generated: builtins.bool | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["generated", b"generated", "operation_type", b"operation_type", "reply_to_stream_id", b"reply_to_stream_id", "version", b"version"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["attached_stream_ids", b"attached_stream_ids", "generated", b"generated", "operation_type", b"operation_type", "reply_to_stream_id", b"reply_to_stream_id", "version", b"version"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - - @_typing.final - class ByteHeader(_message.Message): + def HasField(self, field_name: typing.Literal["generated", b"generated", "operation_type", b"operation_type", "reply_to_stream_id", b"reply_to_stream_id", "version", b"version"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["attached_stream_ids", b"attached_stream_ids", "generated", b"generated", "operation_type", b"operation_type", "reply_to_stream_id", b"reply_to_stream_id", "version", b"version"]) -> None: ... + + @typing.final + class ByteHeader(google.protobuf.message.Message): """header properties specific to byte or file streams""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - NAME_FIELD_NUMBER: _builtins.int - name: _builtins.str + NAME_FIELD_NUMBER: builtins.int + name: builtins.str def __init__( self, *, - name: _builtins.str | None = ..., + name: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["name", b"name"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["name", b"name"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - - @_typing.final - class Header(_message.Message): + def HasField(self, field_name: typing.Literal["name", b"name"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["name", b"name"]) -> None: ... + + @typing.final + class Header(google.protobuf.message.Message): """main DataStream.Header that contains a oneof for specific headers""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class AttributesEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor + @typing.final + class AttributesEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - KEY_FIELD_NUMBER: _builtins.int - VALUE_FIELD_NUMBER: _builtins.int - key: _builtins.str - value: _builtins.str + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + value: builtins.str def __init__( self, *, - key: _builtins.str | None = ..., - value: _builtins.str | None = ..., + key: builtins.str | None = ..., + value: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - - STREAM_ID_FIELD_NUMBER: _builtins.int - TIMESTAMP_FIELD_NUMBER: _builtins.int - MIME_TYPE_FIELD_NUMBER: _builtins.int - TOPIC_FIELD_NUMBER: _builtins.int - TOTAL_LENGTH_FIELD_NUMBER: _builtins.int - ATTRIBUTES_FIELD_NUMBER: _builtins.int - TEXT_HEADER_FIELD_NUMBER: _builtins.int - BYTE_HEADER_FIELD_NUMBER: _builtins.int - stream_id: _builtins.str + def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + + STREAM_ID_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + MIME_TYPE_FIELD_NUMBER: builtins.int + TOPIC_FIELD_NUMBER: builtins.int + TOTAL_LENGTH_FIELD_NUMBER: builtins.int + ATTRIBUTES_FIELD_NUMBER: builtins.int + TEXT_HEADER_FIELD_NUMBER: builtins.int + BYTE_HEADER_FIELD_NUMBER: builtins.int + stream_id: builtins.str """unique identifier for this data stream""" - timestamp: _builtins.int + timestamp: builtins.int """using int64 for Unix timestamp""" - mime_type: _builtins.str - topic: _builtins.str - total_length: _builtins.int + mime_type: builtins.str + topic: builtins.str + total_length: builtins.int """only populated for finite streams, if it's a stream of unknown size this stays empty""" - @_builtins.property - def attributes(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + @property + def attributes(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: """user defined attributes map that can carry additional info""" - @_builtins.property - def text_header(self) -> Global___DataStream.TextHeader: ... - @_builtins.property - def byte_header(self) -> Global___DataStream.ByteHeader: ... + @property + def text_header(self) -> global___DataStream.TextHeader: ... + @property + def byte_header(self) -> global___DataStream.ByteHeader: ... def __init__( self, *, - stream_id: _builtins.str | None = ..., - timestamp: _builtins.int | None = ..., - mime_type: _builtins.str | None = ..., - topic: _builtins.str | None = ..., - total_length: _builtins.int | None = ..., - attributes: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., - text_header: Global___DataStream.TextHeader | None = ..., - byte_header: Global___DataStream.ByteHeader | None = ..., + stream_id: builtins.str | None = ..., + timestamp: builtins.int | None = ..., + mime_type: builtins.str | None = ..., + topic: builtins.str | None = ..., + total_length: builtins.int | None = ..., + attributes: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + text_header: global___DataStream.TextHeader | None = ..., + byte_header: global___DataStream.ByteHeader | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["byte_header", b"byte_header", "content_header", b"content_header", "mime_type", b"mime_type", "stream_id", b"stream_id", "text_header", b"text_header", "timestamp", b"timestamp", "topic", b"topic", "total_length", b"total_length"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["attributes", b"attributes", "byte_header", b"byte_header", "content_header", b"content_header", "mime_type", b"mime_type", "stream_id", b"stream_id", "text_header", b"text_header", "timestamp", b"timestamp", "topic", b"topic", "total_length", b"total_length"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - _WhichOneofReturnType_content_header: _TypeAlias = _typing.Literal["text_header", "byte_header"] # noqa: Y015 - _WhichOneofArgType_content_header: _TypeAlias = _typing.Literal["content_header", b"content_header"] # noqa: Y015 - def WhichOneof(self, oneof_group: _WhichOneofArgType_content_header) -> _WhichOneofReturnType_content_header | None: ... - - @_typing.final - class Chunk(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - STREAM_ID_FIELD_NUMBER: _builtins.int - CHUNK_INDEX_FIELD_NUMBER: _builtins.int - CONTENT_FIELD_NUMBER: _builtins.int - VERSION_FIELD_NUMBER: _builtins.int - IV_FIELD_NUMBER: _builtins.int - stream_id: _builtins.str + def HasField(self, field_name: typing.Literal["byte_header", b"byte_header", "content_header", b"content_header", "mime_type", b"mime_type", "stream_id", b"stream_id", "text_header", b"text_header", "timestamp", b"timestamp", "topic", b"topic", "total_length", b"total_length"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["attributes", b"attributes", "byte_header", b"byte_header", "content_header", b"content_header", "mime_type", b"mime_type", "stream_id", b"stream_id", "text_header", b"text_header", "timestamp", b"timestamp", "topic", b"topic", "total_length", b"total_length"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["content_header", b"content_header"]) -> typing.Literal["text_header", "byte_header"] | None: ... + + @typing.final + class Chunk(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + STREAM_ID_FIELD_NUMBER: builtins.int + CHUNK_INDEX_FIELD_NUMBER: builtins.int + CONTENT_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + IV_FIELD_NUMBER: builtins.int + stream_id: builtins.str """unique identifier for this data stream to map it to the correct header""" - chunk_index: _builtins.int - content: _builtins.bytes + chunk_index: builtins.int + content: builtins.bytes """content as binary (bytes)""" - version: _builtins.int + version: builtins.int """a version indicating that this chunk_index has been retroactively modified and the original one needs to be replaced""" - iv: _builtins.bytes + iv: builtins.bytes """optional, initialization vector for AES-GCM encryption""" def __init__( self, *, - stream_id: _builtins.str | None = ..., - chunk_index: _builtins.int | None = ..., - content: _builtins.bytes | None = ..., - version: _builtins.int | None = ..., - iv: _builtins.bytes | None = ..., + stream_id: builtins.str | None = ..., + chunk_index: builtins.int | None = ..., + content: builtins.bytes | None = ..., + version: builtins.int | None = ..., + iv: builtins.bytes | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["chunk_index", b"chunk_index", "content", b"content", "iv", b"iv", "stream_id", b"stream_id", "version", b"version"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["chunk_index", b"chunk_index", "content", b"content", "iv", b"iv", "stream_id", b"stream_id", "version", b"version"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - - @_typing.final - class Trailer(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - @_typing.final - class AttributesEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - KEY_FIELD_NUMBER: _builtins.int - VALUE_FIELD_NUMBER: _builtins.int - key: _builtins.str - value: _builtins.str + def HasField(self, field_name: typing.Literal["chunk_index", b"chunk_index", "content", b"content", "iv", b"iv", "stream_id", b"stream_id", "version", b"version"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["chunk_index", b"chunk_index", "content", b"content", "iv", b"iv", "stream_id", b"stream_id", "version", b"version"]) -> None: ... + + @typing.final + class Trailer(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class AttributesEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + value: builtins.str def __init__( self, *, - key: _builtins.str | None = ..., - value: _builtins.str | None = ..., + key: builtins.str | None = ..., + value: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - - STREAM_ID_FIELD_NUMBER: _builtins.int - REASON_FIELD_NUMBER: _builtins.int - ATTRIBUTES_FIELD_NUMBER: _builtins.int - stream_id: _builtins.str + def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + + STREAM_ID_FIELD_NUMBER: builtins.int + REASON_FIELD_NUMBER: builtins.int + ATTRIBUTES_FIELD_NUMBER: builtins.int + stream_id: builtins.str """unique identifier for this data stream""" - reason: _builtins.str + reason: builtins.str """reason why the stream was closed (could contain "error" / "interrupted" / empty for expected end)""" - @_builtins.property - def attributes(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + @property + def attributes(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: """finalizing updates for the stream, can also include additional insights for errors or endTime for transcription""" def __init__( self, *, - stream_id: _builtins.str | None = ..., - reason: _builtins.str | None = ..., - attributes: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + stream_id: builtins.str | None = ..., + reason: builtins.str | None = ..., + attributes: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["reason", b"reason", "stream_id", b"stream_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["attributes", b"attributes", "reason", b"reason", "stream_id", b"stream_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["reason", b"reason", "stream_id", b"stream_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["attributes", b"attributes", "reason", b"reason", "stream_id", b"stream_id"]) -> None: ... def __init__( self, ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... -Global___DataStream: _TypeAlias = DataStream # noqa: Y015 +global___DataStream = DataStream -@_typing.final -class DataStreamHeaderReceived(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class DataStreamHeaderReceived(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int - HEADER_FIELD_NUMBER: _builtins.int - participant_identity: _builtins.str - @_builtins.property - def header(self) -> Global___DataStream.Header: ... + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + HEADER_FIELD_NUMBER: builtins.int + participant_identity: builtins.str + @property + def header(self) -> global___DataStream.Header: ... def __init__( self, *, - participant_identity: _builtins.str | None = ..., - header: Global___DataStream.Header | None = ..., + participant_identity: builtins.str | None = ..., + header: global___DataStream.Header | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["header", b"header", "participant_identity", b"participant_identity"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["header", b"header", "participant_identity", b"participant_identity"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["header", b"header", "participant_identity", b"participant_identity"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["header", b"header", "participant_identity", b"participant_identity"]) -> None: ... -Global___DataStreamHeaderReceived: _TypeAlias = DataStreamHeaderReceived # noqa: Y015 +global___DataStreamHeaderReceived = DataStreamHeaderReceived -@_typing.final -class DataStreamChunkReceived(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class DataStreamChunkReceived(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int - CHUNK_FIELD_NUMBER: _builtins.int - participant_identity: _builtins.str - @_builtins.property - def chunk(self) -> Global___DataStream.Chunk: ... + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + CHUNK_FIELD_NUMBER: builtins.int + participant_identity: builtins.str + @property + def chunk(self) -> global___DataStream.Chunk: ... def __init__( self, *, - participant_identity: _builtins.str | None = ..., - chunk: Global___DataStream.Chunk | None = ..., + participant_identity: builtins.str | None = ..., + chunk: global___DataStream.Chunk | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["chunk", b"chunk", "participant_identity", b"participant_identity"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["chunk", b"chunk", "participant_identity", b"participant_identity"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["chunk", b"chunk", "participant_identity", b"participant_identity"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["chunk", b"chunk", "participant_identity", b"participant_identity"]) -> None: ... -Global___DataStreamChunkReceived: _TypeAlias = DataStreamChunkReceived # noqa: Y015 +global___DataStreamChunkReceived = DataStreamChunkReceived -@_typing.final -class DataStreamTrailerReceived(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class DataStreamTrailerReceived(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int - TRAILER_FIELD_NUMBER: _builtins.int - participant_identity: _builtins.str - @_builtins.property - def trailer(self) -> Global___DataStream.Trailer: ... + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + TRAILER_FIELD_NUMBER: builtins.int + participant_identity: builtins.str + @property + def trailer(self) -> global___DataStream.Trailer: ... def __init__( self, *, - participant_identity: _builtins.str | None = ..., - trailer: Global___DataStream.Trailer | None = ..., + participant_identity: builtins.str | None = ..., + trailer: global___DataStream.Trailer | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "trailer", b"trailer"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "trailer", b"trailer"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "trailer", b"trailer"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "trailer", b"trailer"]) -> None: ... -Global___DataStreamTrailerReceived: _TypeAlias = DataStreamTrailerReceived # noqa: Y015 +global___DataStreamTrailerReceived = DataStreamTrailerReceived -@_typing.final -class SendStreamHeaderRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class SendStreamHeaderRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int - HEADER_FIELD_NUMBER: _builtins.int - DESTINATION_IDENTITIES_FIELD_NUMBER: _builtins.int - SENDER_IDENTITY_FIELD_NUMBER: _builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int - local_participant_handle: _builtins.int - sender_identity: _builtins.str - request_async_id: _builtins.int - @_builtins.property - def header(self) -> Global___DataStream.Header: ... - @_builtins.property - def destination_identities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int + HEADER_FIELD_NUMBER: builtins.int + DESTINATION_IDENTITIES_FIELD_NUMBER: builtins.int + SENDER_IDENTITY_FIELD_NUMBER: builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int + local_participant_handle: builtins.int + sender_identity: builtins.str + request_async_id: builtins.int + @property + def header(self) -> global___DataStream.Header: ... + @property + def destination_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... def __init__( self, *, - local_participant_handle: _builtins.int | None = ..., - header: Global___DataStream.Header | None = ..., - destination_identities: _abc.Iterable[_builtins.str] | None = ..., - sender_identity: _builtins.str | None = ..., - request_async_id: _builtins.int | None = ..., + local_participant_handle: builtins.int | None = ..., + header: global___DataStream.Header | None = ..., + destination_identities: collections.abc.Iterable[builtins.str] | None = ..., + sender_identity: builtins.str | None = ..., + request_async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["header", b"header", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["destination_identities", b"destination_identities", "header", b"header", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["header", b"header", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["destination_identities", b"destination_identities", "header", b"header", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"]) -> None: ... -Global___SendStreamHeaderRequest: _TypeAlias = SendStreamHeaderRequest # noqa: Y015 +global___SendStreamHeaderRequest = SendStreamHeaderRequest -@_typing.final -class SendStreamChunkRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class SendStreamChunkRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int - CHUNK_FIELD_NUMBER: _builtins.int - DESTINATION_IDENTITIES_FIELD_NUMBER: _builtins.int - SENDER_IDENTITY_FIELD_NUMBER: _builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int - local_participant_handle: _builtins.int - sender_identity: _builtins.str - request_async_id: _builtins.int - @_builtins.property - def chunk(self) -> Global___DataStream.Chunk: ... - @_builtins.property - def destination_identities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int + CHUNK_FIELD_NUMBER: builtins.int + DESTINATION_IDENTITIES_FIELD_NUMBER: builtins.int + SENDER_IDENTITY_FIELD_NUMBER: builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int + local_participant_handle: builtins.int + sender_identity: builtins.str + request_async_id: builtins.int + @property + def chunk(self) -> global___DataStream.Chunk: ... + @property + def destination_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... def __init__( self, *, - local_participant_handle: _builtins.int | None = ..., - chunk: Global___DataStream.Chunk | None = ..., - destination_identities: _abc.Iterable[_builtins.str] | None = ..., - sender_identity: _builtins.str | None = ..., - request_async_id: _builtins.int | None = ..., + local_participant_handle: builtins.int | None = ..., + chunk: global___DataStream.Chunk | None = ..., + destination_identities: collections.abc.Iterable[builtins.str] | None = ..., + sender_identity: builtins.str | None = ..., + request_async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["chunk", b"chunk", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["chunk", b"chunk", "destination_identities", b"destination_identities", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["chunk", b"chunk", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["chunk", b"chunk", "destination_identities", b"destination_identities", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"]) -> None: ... -Global___SendStreamChunkRequest: _TypeAlias = SendStreamChunkRequest # noqa: Y015 +global___SendStreamChunkRequest = SendStreamChunkRequest -@_typing.final -class SendStreamTrailerRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class SendStreamTrailerRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int - TRAILER_FIELD_NUMBER: _builtins.int - DESTINATION_IDENTITIES_FIELD_NUMBER: _builtins.int - SENDER_IDENTITY_FIELD_NUMBER: _builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int - local_participant_handle: _builtins.int - sender_identity: _builtins.str - request_async_id: _builtins.int - @_builtins.property - def trailer(self) -> Global___DataStream.Trailer: ... - @_builtins.property - def destination_identities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int + TRAILER_FIELD_NUMBER: builtins.int + DESTINATION_IDENTITIES_FIELD_NUMBER: builtins.int + SENDER_IDENTITY_FIELD_NUMBER: builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int + local_participant_handle: builtins.int + sender_identity: builtins.str + request_async_id: builtins.int + @property + def trailer(self) -> global___DataStream.Trailer: ... + @property + def destination_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... def __init__( self, *, - local_participant_handle: _builtins.int | None = ..., - trailer: Global___DataStream.Trailer | None = ..., - destination_identities: _abc.Iterable[_builtins.str] | None = ..., - sender_identity: _builtins.str | None = ..., - request_async_id: _builtins.int | None = ..., + local_participant_handle: builtins.int | None = ..., + trailer: global___DataStream.Trailer | None = ..., + destination_identities: collections.abc.Iterable[builtins.str] | None = ..., + sender_identity: builtins.str | None = ..., + request_async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity", "trailer", b"trailer"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["destination_identities", b"destination_identities", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity", "trailer", b"trailer"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity", "trailer", b"trailer"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["destination_identities", b"destination_identities", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity", "trailer", b"trailer"]) -> None: ... -Global___SendStreamTrailerRequest: _TypeAlias = SendStreamTrailerRequest # noqa: Y015 +global___SendStreamTrailerRequest = SendStreamTrailerRequest -@_typing.final -class SendStreamHeaderResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class SendStreamHeaderResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... -Global___SendStreamHeaderResponse: _TypeAlias = SendStreamHeaderResponse # noqa: Y015 +global___SendStreamHeaderResponse = SendStreamHeaderResponse -@_typing.final -class SendStreamChunkResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class SendStreamChunkResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... -Global___SendStreamChunkResponse: _TypeAlias = SendStreamChunkResponse # noqa: Y015 +global___SendStreamChunkResponse = SendStreamChunkResponse -@_typing.final -class SendStreamTrailerResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class SendStreamTrailerResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... -Global___SendStreamTrailerResponse: _TypeAlias = SendStreamTrailerResponse # noqa: Y015 +global___SendStreamTrailerResponse = SendStreamTrailerResponse -@_typing.final -class SendStreamHeaderCallback(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class SendStreamHeaderCallback(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - async_id: _builtins.int - error: _builtins.str + ASYNC_ID_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + async_id: builtins.int + error: builtins.str def __init__( self, *, - async_id: _builtins.int | None = ..., - error: _builtins.str | None = ..., + async_id: builtins.int | None = ..., + error: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... -Global___SendStreamHeaderCallback: _TypeAlias = SendStreamHeaderCallback # noqa: Y015 +global___SendStreamHeaderCallback = SendStreamHeaderCallback -@_typing.final -class SendStreamChunkCallback(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class SendStreamChunkCallback(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - async_id: _builtins.int - error: _builtins.str + ASYNC_ID_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + async_id: builtins.int + error: builtins.str def __init__( self, *, - async_id: _builtins.int | None = ..., - error: _builtins.str | None = ..., + async_id: builtins.int | None = ..., + error: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... -Global___SendStreamChunkCallback: _TypeAlias = SendStreamChunkCallback # noqa: Y015 +global___SendStreamChunkCallback = SendStreamChunkCallback -@_typing.final -class SendStreamTrailerCallback(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class SendStreamTrailerCallback(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - async_id: _builtins.int - error: _builtins.str + ASYNC_ID_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + async_id: builtins.int + error: builtins.str def __init__( self, *, - async_id: _builtins.int | None = ..., - error: _builtins.str | None = ..., + async_id: builtins.int | None = ..., + error: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... -Global___SendStreamTrailerCallback: _TypeAlias = SendStreamTrailerCallback # noqa: Y015 +global___SendStreamTrailerCallback = SendStreamTrailerCallback -@_typing.final -class SetDataChannelBufferedAmountLowThresholdRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class SetDataChannelBufferedAmountLowThresholdRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int - THRESHOLD_FIELD_NUMBER: _builtins.int - KIND_FIELD_NUMBER: _builtins.int - local_participant_handle: _builtins.int - threshold: _builtins.int - kind: Global___DataPacketKind.ValueType + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int + THRESHOLD_FIELD_NUMBER: builtins.int + KIND_FIELD_NUMBER: builtins.int + local_participant_handle: builtins.int + threshold: builtins.int + kind: global___DataPacketKind.ValueType def __init__( self, *, - local_participant_handle: _builtins.int | None = ..., - threshold: _builtins.int | None = ..., - kind: Global___DataPacketKind.ValueType | None = ..., + local_participant_handle: builtins.int | None = ..., + threshold: builtins.int | None = ..., + kind: global___DataPacketKind.ValueType | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "local_participant_handle", b"local_participant_handle", "threshold", b"threshold"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "local_participant_handle", b"local_participant_handle", "threshold", b"threshold"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["kind", b"kind", "local_participant_handle", b"local_participant_handle", "threshold", b"threshold"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["kind", b"kind", "local_participant_handle", b"local_participant_handle", "threshold", b"threshold"]) -> None: ... -Global___SetDataChannelBufferedAmountLowThresholdRequest: _TypeAlias = SetDataChannelBufferedAmountLowThresholdRequest # noqa: Y015 +global___SetDataChannelBufferedAmountLowThresholdRequest = SetDataChannelBufferedAmountLowThresholdRequest -@_typing.final -class SetDataChannelBufferedAmountLowThresholdResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class SetDataChannelBufferedAmountLowThresholdResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... -Global___SetDataChannelBufferedAmountLowThresholdResponse: _TypeAlias = SetDataChannelBufferedAmountLowThresholdResponse # noqa: Y015 +global___SetDataChannelBufferedAmountLowThresholdResponse = SetDataChannelBufferedAmountLowThresholdResponse -@_typing.final -class DataChannelBufferedAmountLowThresholdChanged(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class DataChannelBufferedAmountLowThresholdChanged(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - KIND_FIELD_NUMBER: _builtins.int - THRESHOLD_FIELD_NUMBER: _builtins.int - kind: Global___DataPacketKind.ValueType - threshold: _builtins.int + KIND_FIELD_NUMBER: builtins.int + THRESHOLD_FIELD_NUMBER: builtins.int + kind: global___DataPacketKind.ValueType + threshold: builtins.int def __init__( self, *, - kind: Global___DataPacketKind.ValueType | None = ..., - threshold: _builtins.int | None = ..., + kind: global___DataPacketKind.ValueType | None = ..., + threshold: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "threshold", b"threshold"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "threshold", b"threshold"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["kind", b"kind", "threshold", b"threshold"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["kind", b"kind", "threshold", b"threshold"]) -> None: ... -Global___DataChannelBufferedAmountLowThresholdChanged: _TypeAlias = DataChannelBufferedAmountLowThresholdChanged # noqa: Y015 +global___DataChannelBufferedAmountLowThresholdChanged = DataChannelBufferedAmountLowThresholdChanged -@_typing.final -class ByteStreamOpened(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ByteStreamOpened(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - READER_FIELD_NUMBER: _builtins.int - PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int - participant_identity: _builtins.str - @_builtins.property - def reader(self) -> _data_stream_pb2.OwnedByteStreamReader: ... + READER_FIELD_NUMBER: builtins.int + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + participant_identity: builtins.str + @property + def reader(self) -> data_stream_pb2.OwnedByteStreamReader: ... def __init__( self, *, - reader: _data_stream_pb2.OwnedByteStreamReader | None = ..., - participant_identity: _builtins.str | None = ..., + reader: data_stream_pb2.OwnedByteStreamReader | None = ..., + participant_identity: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "reader", b"reader"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "reader", b"reader"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "reader", b"reader"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "reader", b"reader"]) -> None: ... -Global___ByteStreamOpened: _TypeAlias = ByteStreamOpened # noqa: Y015 +global___ByteStreamOpened = ByteStreamOpened -@_typing.final -class TextStreamOpened(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class TextStreamOpened(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - READER_FIELD_NUMBER: _builtins.int - PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int - participant_identity: _builtins.str - @_builtins.property - def reader(self) -> _data_stream_pb2.OwnedTextStreamReader: ... + READER_FIELD_NUMBER: builtins.int + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + participant_identity: builtins.str + @property + def reader(self) -> data_stream_pb2.OwnedTextStreamReader: ... def __init__( self, *, - reader: _data_stream_pb2.OwnedTextStreamReader | None = ..., - participant_identity: _builtins.str | None = ..., + reader: data_stream_pb2.OwnedTextStreamReader | None = ..., + participant_identity: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "reader", b"reader"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "reader", b"reader"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "reader", b"reader"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "reader", b"reader"]) -> None: ... -Global___TextStreamOpened: _TypeAlias = TextStreamOpened # noqa: Y015 +global___TextStreamOpened = TextStreamOpened -@_typing.final -class DataTrackPublished(_message.Message): +@typing.final +class DataTrackPublished(google.protobuf.message.Message): """A remote participant published a data track.""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - TRACK_FIELD_NUMBER: _builtins.int - @_builtins.property - def track(self) -> _data_track_pb2.OwnedRemoteDataTrack: ... + TRACK_FIELD_NUMBER: builtins.int + @property + def track(self) -> data_track_pb2.OwnedRemoteDataTrack: ... def __init__( self, *, - track: _data_track_pb2.OwnedRemoteDataTrack | None = ..., + track: data_track_pb2.OwnedRemoteDataTrack | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["track", b"track"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["track", b"track"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["track", b"track"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["track", b"track"]) -> None: ... -Global___DataTrackPublished: _TypeAlias = DataTrackPublished # noqa: Y015 +global___DataTrackPublished = DataTrackPublished -@_typing.final -class DataTrackUnpublished(_message.Message): +@typing.final +class DataTrackUnpublished(google.protobuf.message.Message): """A remote participant unpublished a data track.""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - SID_FIELD_NUMBER: _builtins.int - sid: _builtins.str + SID_FIELD_NUMBER: builtins.int + sid: builtins.str """SID of the track that was unpublished.""" def __init__( self, *, - sid: _builtins.str | None = ..., + sid: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["sid", b"sid"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["sid", b"sid"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["sid", b"sid"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["sid", b"sid"]) -> None: ... -Global___DataTrackUnpublished: _TypeAlias = DataTrackUnpublished # noqa: Y015 +global___DataTrackUnpublished = DataTrackUnpublished diff --git a/livekit-rtc/livekit/rtc/_proto/rpc_pb2.py b/livekit-rtc/livekit/rtc/_proto/rpc_pb2.py index de3064a5..c7211917 100644 --- a/livekit-rtc/livekit/rtc/_proto/rpc_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/rpc_pb2.py @@ -1,22 +1,12 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE # source: rpc.proto -# Protobuf Python Version: 7.34.1 +# Protobuf Python Version: 4.25.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 7, - 34, - 1, - '', - 'rpc.proto' -) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -29,8 +19,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'rpc_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None _globals['DESCRIPTOR']._serialized_options = b'\252\002\rLiveKit.Proto' _globals['_RPCERROR']._serialized_start=28 _globals['_RPCERROR']._serialized_end=83 diff --git a/livekit-rtc/livekit/rtc/_proto/rpc_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/rpc_pb2.pyi index 6afbec26..bbed4217 100644 --- a/livekit-rtc/livekit/rtc/_proto/rpc_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/rpc_pb2.pyi @@ -16,286 +16,243 @@ See the License for the specific language governing permissions and limitations under the License. """ -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -import builtins as _builtins -import sys -import typing as _typing - -if sys.version_info >= (3, 11): - from typing import TypeAlias as _TypeAlias, Never as _Never -else: - from typing_extensions import TypeAlias as _TypeAlias, Never as _Never - -DESCRIPTOR: _descriptor.FileDescriptor - -@_typing.final -class RpcError(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - CODE_FIELD_NUMBER: _builtins.int - MESSAGE_FIELD_NUMBER: _builtins.int - DATA_FIELD_NUMBER: _builtins.int - code: _builtins.int - message: _builtins.str - data: _builtins.str +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import typing + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing.final +class RpcError(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CODE_FIELD_NUMBER: builtins.int + MESSAGE_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + code: builtins.int + message: builtins.str + data: builtins.str def __init__( self, *, - code: _builtins.int | None = ..., - message: _builtins.str | None = ..., - data: _builtins.str | None = ..., + code: builtins.int | None = ..., + message: builtins.str | None = ..., + data: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "data", b"data", "message", b"message"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "data", b"data", "message", b"message"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["code", b"code", "data", b"data", "message", b"message"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["code", b"code", "data", b"data", "message", b"message"]) -> None: ... -Global___RpcError: _TypeAlias = RpcError # noqa: Y015 +global___RpcError = RpcError -@_typing.final -class PerformRpcRequest(_message.Message): +@typing.final +class PerformRpcRequest(google.protobuf.message.Message): """FFI Requests""" - DESCRIPTOR: _descriptor.Descriptor - - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int - DESTINATION_IDENTITY_FIELD_NUMBER: _builtins.int - METHOD_FIELD_NUMBER: _builtins.int - PAYLOAD_FIELD_NUMBER: _builtins.int - RESPONSE_TIMEOUT_MS_FIELD_NUMBER: _builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int - local_participant_handle: _builtins.int - destination_identity: _builtins.str - method: _builtins.str - payload: _builtins.str - response_timeout_ms: _builtins.int - request_async_id: _builtins.int + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int + DESTINATION_IDENTITY_FIELD_NUMBER: builtins.int + METHOD_FIELD_NUMBER: builtins.int + PAYLOAD_FIELD_NUMBER: builtins.int + RESPONSE_TIMEOUT_MS_FIELD_NUMBER: builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int + local_participant_handle: builtins.int + destination_identity: builtins.str + method: builtins.str + payload: builtins.str + response_timeout_ms: builtins.int + request_async_id: builtins.int def __init__( self, *, - local_participant_handle: _builtins.int | None = ..., - destination_identity: _builtins.str | None = ..., - method: _builtins.str | None = ..., - payload: _builtins.str | None = ..., - response_timeout_ms: _builtins.int | None = ..., - request_async_id: _builtins.int | None = ..., + local_participant_handle: builtins.int | None = ..., + destination_identity: builtins.str | None = ..., + method: builtins.str | None = ..., + payload: builtins.str | None = ..., + response_timeout_ms: builtins.int | None = ..., + request_async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["destination_identity", b"destination_identity", "local_participant_handle", b"local_participant_handle", "method", b"method", "payload", b"payload", "request_async_id", b"request_async_id", "response_timeout_ms", b"response_timeout_ms"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["destination_identity", b"destination_identity", "local_participant_handle", b"local_participant_handle", "method", b"method", "payload", b"payload", "request_async_id", b"request_async_id", "response_timeout_ms", b"response_timeout_ms"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___PerformRpcRequest: _TypeAlias = PerformRpcRequest # noqa: Y015 - -@_typing.final -class RegisterRpcMethodRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int - METHOD_FIELD_NUMBER: _builtins.int - local_participant_handle: _builtins.int - method: _builtins.str + def HasField(self, field_name: typing.Literal["destination_identity", b"destination_identity", "local_participant_handle", b"local_participant_handle", "method", b"method", "payload", b"payload", "request_async_id", b"request_async_id", "response_timeout_ms", b"response_timeout_ms"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["destination_identity", b"destination_identity", "local_participant_handle", b"local_participant_handle", "method", b"method", "payload", b"payload", "request_async_id", b"request_async_id", "response_timeout_ms", b"response_timeout_ms"]) -> None: ... + +global___PerformRpcRequest = PerformRpcRequest + +@typing.final +class RegisterRpcMethodRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int + METHOD_FIELD_NUMBER: builtins.int + local_participant_handle: builtins.int + method: builtins.str def __init__( self, *, - local_participant_handle: _builtins.int | None = ..., - method: _builtins.str | None = ..., + local_participant_handle: builtins.int | None = ..., + method: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "method", b"method"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "method", b"method"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___RegisterRpcMethodRequest: _TypeAlias = RegisterRpcMethodRequest # noqa: Y015 - -@_typing.final -class UnregisterRpcMethodRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int - METHOD_FIELD_NUMBER: _builtins.int - local_participant_handle: _builtins.int - method: _builtins.str + def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "method", b"method"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "method", b"method"]) -> None: ... + +global___RegisterRpcMethodRequest = RegisterRpcMethodRequest + +@typing.final +class UnregisterRpcMethodRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int + METHOD_FIELD_NUMBER: builtins.int + local_participant_handle: builtins.int + method: builtins.str def __init__( self, *, - local_participant_handle: _builtins.int | None = ..., - method: _builtins.str | None = ..., + local_participant_handle: builtins.int | None = ..., + method: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "method", b"method"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "method", b"method"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___UnregisterRpcMethodRequest: _TypeAlias = UnregisterRpcMethodRequest # noqa: Y015 - -@_typing.final -class RpcMethodInvocationResponseRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int - INVOCATION_ID_FIELD_NUMBER: _builtins.int - PAYLOAD_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - local_participant_handle: _builtins.int - invocation_id: _builtins.int - payload: _builtins.str - @_builtins.property - def error(self) -> Global___RpcError: ... + def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "method", b"method"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "method", b"method"]) -> None: ... + +global___UnregisterRpcMethodRequest = UnregisterRpcMethodRequest + +@typing.final +class RpcMethodInvocationResponseRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int + INVOCATION_ID_FIELD_NUMBER: builtins.int + PAYLOAD_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + local_participant_handle: builtins.int + invocation_id: builtins.int + payload: builtins.str + @property + def error(self) -> global___RpcError: ... def __init__( self, *, - local_participant_handle: _builtins.int | None = ..., - invocation_id: _builtins.int | None = ..., - payload: _builtins.str | None = ..., - error: Global___RpcError | None = ..., + local_participant_handle: builtins.int | None = ..., + invocation_id: builtins.int | None = ..., + payload: builtins.str | None = ..., + error: global___RpcError | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "invocation_id", b"invocation_id", "local_participant_handle", b"local_participant_handle", "payload", b"payload"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "invocation_id", b"invocation_id", "local_participant_handle", b"local_participant_handle", "payload", b"payload"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "invocation_id", b"invocation_id", "local_participant_handle", b"local_participant_handle", "payload", b"payload"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "invocation_id", b"invocation_id", "local_participant_handle", b"local_participant_handle", "payload", b"payload"]) -> None: ... -Global___RpcMethodInvocationResponseRequest: _TypeAlias = RpcMethodInvocationResponseRequest # noqa: Y015 +global___RpcMethodInvocationResponseRequest = RpcMethodInvocationResponseRequest -@_typing.final -class PerformRpcResponse(_message.Message): +@typing.final +class PerformRpcResponse(google.protobuf.message.Message): """FFI Responses""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... -Global___PerformRpcResponse: _TypeAlias = PerformRpcResponse # noqa: Y015 +global___PerformRpcResponse = PerformRpcResponse -@_typing.final -class RegisterRpcMethodResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class RegisterRpcMethodResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... -Global___RegisterRpcMethodResponse: _TypeAlias = RegisterRpcMethodResponse # noqa: Y015 +global___RegisterRpcMethodResponse = RegisterRpcMethodResponse -@_typing.final -class UnregisterRpcMethodResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class UnregisterRpcMethodResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... -Global___UnregisterRpcMethodResponse: _TypeAlias = UnregisterRpcMethodResponse # noqa: Y015 +global___UnregisterRpcMethodResponse = UnregisterRpcMethodResponse -@_typing.final -class RpcMethodInvocationResponseResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class RpcMethodInvocationResponseResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ERROR_FIELD_NUMBER: _builtins.int - error: _builtins.str + ERROR_FIELD_NUMBER: builtins.int + error: builtins.str def __init__( self, *, - error: _builtins.str | None = ..., + error: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error"]) -> None: ... -Global___RpcMethodInvocationResponseResponse: _TypeAlias = RpcMethodInvocationResponseResponse # noqa: Y015 +global___RpcMethodInvocationResponseResponse = RpcMethodInvocationResponseResponse -@_typing.final -class PerformRpcCallback(_message.Message): +@typing.final +class PerformRpcCallback(google.protobuf.message.Message): """FFI Callbacks""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - PAYLOAD_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - async_id: _builtins.int - payload: _builtins.str - @_builtins.property - def error(self) -> Global___RpcError: ... + ASYNC_ID_FIELD_NUMBER: builtins.int + PAYLOAD_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + async_id: builtins.int + payload: builtins.str + @property + def error(self) -> global___RpcError: ... def __init__( self, *, - async_id: _builtins.int | None = ..., - payload: _builtins.str | None = ..., - error: Global___RpcError | None = ..., + async_id: builtins.int | None = ..., + payload: builtins.str | None = ..., + error: global___RpcError | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "payload", b"payload"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "payload", b"payload"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "payload", b"payload"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "payload", b"payload"]) -> None: ... -Global___PerformRpcCallback: _TypeAlias = PerformRpcCallback # noqa: Y015 +global___PerformRpcCallback = PerformRpcCallback -@_typing.final -class RpcMethodInvocationEvent(_message.Message): +@typing.final +class RpcMethodInvocationEvent(google.protobuf.message.Message): """FFI Events""" - DESCRIPTOR: _descriptor.Descriptor - - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int - INVOCATION_ID_FIELD_NUMBER: _builtins.int - METHOD_FIELD_NUMBER: _builtins.int - REQUEST_ID_FIELD_NUMBER: _builtins.int - CALLER_IDENTITY_FIELD_NUMBER: _builtins.int - PAYLOAD_FIELD_NUMBER: _builtins.int - RESPONSE_TIMEOUT_MS_FIELD_NUMBER: _builtins.int - local_participant_handle: _builtins.int - invocation_id: _builtins.int - method: _builtins.str - request_id: _builtins.str - caller_identity: _builtins.str - payload: _builtins.str - response_timeout_ms: _builtins.int + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int + INVOCATION_ID_FIELD_NUMBER: builtins.int + METHOD_FIELD_NUMBER: builtins.int + REQUEST_ID_FIELD_NUMBER: builtins.int + CALLER_IDENTITY_FIELD_NUMBER: builtins.int + PAYLOAD_FIELD_NUMBER: builtins.int + RESPONSE_TIMEOUT_MS_FIELD_NUMBER: builtins.int + local_participant_handle: builtins.int + invocation_id: builtins.int + method: builtins.str + request_id: builtins.str + caller_identity: builtins.str + payload: builtins.str + response_timeout_ms: builtins.int def __init__( self, *, - local_participant_handle: _builtins.int | None = ..., - invocation_id: _builtins.int | None = ..., - method: _builtins.str | None = ..., - request_id: _builtins.str | None = ..., - caller_identity: _builtins.str | None = ..., - payload: _builtins.str | None = ..., - response_timeout_ms: _builtins.int | None = ..., + local_participant_handle: builtins.int | None = ..., + invocation_id: builtins.int | None = ..., + method: builtins.str | None = ..., + request_id: builtins.str | None = ..., + caller_identity: builtins.str | None = ..., + payload: builtins.str | None = ..., + response_timeout_ms: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["caller_identity", b"caller_identity", "invocation_id", b"invocation_id", "local_participant_handle", b"local_participant_handle", "method", b"method", "payload", b"payload", "request_id", b"request_id", "response_timeout_ms", b"response_timeout_ms"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["caller_identity", b"caller_identity", "invocation_id", b"invocation_id", "local_participant_handle", b"local_participant_handle", "method", b"method", "payload", b"payload", "request_id", b"request_id", "response_timeout_ms", b"response_timeout_ms"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["caller_identity", b"caller_identity", "invocation_id", b"invocation_id", "local_participant_handle", b"local_participant_handle", "method", b"method", "payload", b"payload", "request_id", b"request_id", "response_timeout_ms", b"response_timeout_ms"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["caller_identity", b"caller_identity", "invocation_id", b"invocation_id", "local_participant_handle", b"local_participant_handle", "method", b"method", "payload", b"payload", "request_id", b"request_id", "response_timeout_ms", b"response_timeout_ms"]) -> None: ... -Global___RpcMethodInvocationEvent: _TypeAlias = RpcMethodInvocationEvent # noqa: Y015 +global___RpcMethodInvocationEvent = RpcMethodInvocationEvent diff --git a/livekit-rtc/livekit/rtc/_proto/stats_pb2.py b/livekit-rtc/livekit/rtc/_proto/stats_pb2.py index a5bd3971..ce7b411c 100644 --- a/livekit-rtc/livekit/rtc/_proto/stats_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/stats_pb2.py @@ -1,22 +1,12 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE # source: stats.proto -# Protobuf Python Version: 7.34.1 +# Protobuf Python Version: 4.25.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 7, - 34, - 1, - '', - 'stats.proto' -) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -29,10 +19,10 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'stats_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None _globals['DESCRIPTOR']._serialized_options = b'\252\002\rLiveKit.Proto' - _globals['_OUTBOUNDRTPSTREAMSTATS_QUALITYLIMITATIONDURATIONSENTRY']._loaded_options = None + _globals['_OUTBOUNDRTPSTREAMSTATS_QUALITYLIMITATIONDURATIONSENTRY']._options = None _globals['_OUTBOUNDRTPSTREAMSTATS_QUALITYLIMITATIONDURATIONSENTRY']._serialized_options = b'8\001' _globals['_DATACHANNELSTATE']._serialized_start=9282 _globals['_DATACHANNELSTATE']._serialized_end=9363 diff --git a/livekit-rtc/livekit/rtc/_proto/stats_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/stats_pb2.pyi index 01d6b974..a77c233e 100644 --- a/livekit-rtc/livekit/rtc/_proto/stats_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/stats_pb2.pyi @@ -16,28 +16,28 @@ See the License for the specific language governing permissions and limitations under the License. """ -from collections import abc as _abc -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -import builtins as _builtins +import builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message import sys -import typing as _typing +import typing -if sys.version_info >= (3, 11): - from typing import TypeAlias as _TypeAlias, Never as _Never +if sys.version_info >= (3, 10): + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias, Never as _Never + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class _DataChannelState: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _DataChannelStateEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_DataChannelState.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _DataChannelStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DataChannelState.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor DC_CONNECTING: _DataChannelState.ValueType # 0 DC_OPEN: _DataChannelState.ValueType # 1 DC_CLOSING: _DataChannelState.ValueType # 2 @@ -49,14 +49,14 @@ DC_CONNECTING: DataChannelState.ValueType # 0 DC_OPEN: DataChannelState.ValueType # 1 DC_CLOSING: DataChannelState.ValueType # 2 DC_CLOSED: DataChannelState.ValueType # 3 -Global___DataChannelState: _TypeAlias = DataChannelState # noqa: Y015 +global___DataChannelState = DataChannelState class _QualityLimitationReason: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _QualityLimitationReasonEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_QualityLimitationReason.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _QualityLimitationReasonEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_QualityLimitationReason.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor LIMITATION_NONE: _QualityLimitationReason.ValueType # 0 LIMITATION_CPU: _QualityLimitationReason.ValueType # 1 LIMITATION_BANDWIDTH: _QualityLimitationReason.ValueType # 2 @@ -68,14 +68,14 @@ LIMITATION_NONE: QualityLimitationReason.ValueType # 0 LIMITATION_CPU: QualityLimitationReason.ValueType # 1 LIMITATION_BANDWIDTH: QualityLimitationReason.ValueType # 2 LIMITATION_OTHER: QualityLimitationReason.ValueType # 3 -Global___QualityLimitationReason: _TypeAlias = QualityLimitationReason # noqa: Y015 +global___QualityLimitationReason = QualityLimitationReason class _IceRole: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _IceRoleEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_IceRole.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _IceRoleEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IceRole.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor ICE_UNKNOWN: _IceRole.ValueType # 0 ICE_CONTROLLING: _IceRole.ValueType # 1 ICE_CONTROLLED: _IceRole.ValueType # 2 @@ -85,14 +85,14 @@ class IceRole(_IceRole, metaclass=_IceRoleEnumTypeWrapper): ... ICE_UNKNOWN: IceRole.ValueType # 0 ICE_CONTROLLING: IceRole.ValueType # 1 ICE_CONTROLLED: IceRole.ValueType # 2 -Global___IceRole: _TypeAlias = IceRole # noqa: Y015 +global___IceRole = IceRole class _DtlsTransportState: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _DtlsTransportStateEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_DtlsTransportState.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _DtlsTransportStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DtlsTransportState.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor DTLS_TRANSPORT_NEW: _DtlsTransportState.ValueType # 0 DTLS_TRANSPORT_CONNECTING: _DtlsTransportState.ValueType # 1 DTLS_TRANSPORT_CONNECTED: _DtlsTransportState.ValueType # 2 @@ -106,14 +106,14 @@ DTLS_TRANSPORT_CONNECTING: DtlsTransportState.ValueType # 1 DTLS_TRANSPORT_CONNECTED: DtlsTransportState.ValueType # 2 DTLS_TRANSPORT_CLOSED: DtlsTransportState.ValueType # 3 DTLS_TRANSPORT_FAILED: DtlsTransportState.ValueType # 4 -Global___DtlsTransportState: _TypeAlias = DtlsTransportState # noqa: Y015 +global___DtlsTransportState = DtlsTransportState class _IceTransportState: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _IceTransportStateEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_IceTransportState.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _IceTransportStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IceTransportState.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor ICE_TRANSPORT_NEW: _IceTransportState.ValueType # 0 ICE_TRANSPORT_CHECKING: _IceTransportState.ValueType # 1 ICE_TRANSPORT_CONNECTED: _IceTransportState.ValueType # 2 @@ -131,14 +131,14 @@ ICE_TRANSPORT_COMPLETED: IceTransportState.ValueType # 3 ICE_TRANSPORT_DISCONNECTED: IceTransportState.ValueType # 4 ICE_TRANSPORT_FAILED: IceTransportState.ValueType # 5 ICE_TRANSPORT_CLOSED: IceTransportState.ValueType # 6 -Global___IceTransportState: _TypeAlias = IceTransportState # noqa: Y015 +global___IceTransportState = IceTransportState class _DtlsRole: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _DtlsRoleEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_DtlsRole.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _DtlsRoleEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DtlsRole.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor DTLS_CLIENT: _DtlsRole.ValueType # 0 DTLS_SERVER: _DtlsRole.ValueType # 1 DTLS_UNKNOWN: _DtlsRole.ValueType # 2 @@ -148,14 +148,14 @@ class DtlsRole(_DtlsRole, metaclass=_DtlsRoleEnumTypeWrapper): ... DTLS_CLIENT: DtlsRole.ValueType # 0 DTLS_SERVER: DtlsRole.ValueType # 1 DTLS_UNKNOWN: DtlsRole.ValueType # 2 -Global___DtlsRole: _TypeAlias = DtlsRole # noqa: Y015 +global___DtlsRole = DtlsRole class _IceCandidatePairState: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _IceCandidatePairStateEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_IceCandidatePairState.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _IceCandidatePairStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IceCandidatePairState.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor PAIR_FROZEN: _IceCandidatePairState.ValueType # 0 PAIR_WAITING: _IceCandidatePairState.ValueType # 1 PAIR_IN_PROGRESS: _IceCandidatePairState.ValueType # 2 @@ -169,14 +169,14 @@ PAIR_WAITING: IceCandidatePairState.ValueType # 1 PAIR_IN_PROGRESS: IceCandidatePairState.ValueType # 2 PAIR_FAILED: IceCandidatePairState.ValueType # 3 PAIR_SUCCEEDED: IceCandidatePairState.ValueType # 4 -Global___IceCandidatePairState: _TypeAlias = IceCandidatePairState # noqa: Y015 +global___IceCandidatePairState = IceCandidatePairState class _IceCandidateType: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _IceCandidateTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_IceCandidateType.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _IceCandidateTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IceCandidateType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor HOST: _IceCandidateType.ValueType # 0 SRFLX: _IceCandidateType.ValueType # 1 PRFLX: _IceCandidateType.ValueType # 2 @@ -188,14 +188,14 @@ HOST: IceCandidateType.ValueType # 0 SRFLX: IceCandidateType.ValueType # 1 PRFLX: IceCandidateType.ValueType # 2 RELAY: IceCandidateType.ValueType # 3 -Global___IceCandidateType: _TypeAlias = IceCandidateType # noqa: Y015 +global___IceCandidateType = IceCandidateType class _IceServerTransportProtocol: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _IceServerTransportProtocolEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_IceServerTransportProtocol.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _IceServerTransportProtocolEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IceServerTransportProtocol.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor TRANSPORT_UDP: _IceServerTransportProtocol.ValueType # 0 TRANSPORT_TCP: _IceServerTransportProtocol.ValueType # 1 TRANSPORT_TLS: _IceServerTransportProtocol.ValueType # 2 @@ -205,14 +205,14 @@ class IceServerTransportProtocol(_IceServerTransportProtocol, metaclass=_IceServ TRANSPORT_UDP: IceServerTransportProtocol.ValueType # 0 TRANSPORT_TCP: IceServerTransportProtocol.ValueType # 1 TRANSPORT_TLS: IceServerTransportProtocol.ValueType # 2 -Global___IceServerTransportProtocol: _TypeAlias = IceServerTransportProtocol # noqa: Y015 +global___IceServerTransportProtocol = IceServerTransportProtocol class _IceTcpCandidateType: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _IceTcpCandidateTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_IceTcpCandidateType.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _IceTcpCandidateTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IceTcpCandidateType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor CANDIDATE_ACTIVE: _IceTcpCandidateType.ValueType # 0 CANDIDATE_PASSIVE: _IceTcpCandidateType.ValueType # 1 CANDIDATE_SO: _IceTcpCandidateType.ValueType # 2 @@ -222,1410 +222,1293 @@ class IceTcpCandidateType(_IceTcpCandidateType, metaclass=_IceTcpCandidateTypeEn CANDIDATE_ACTIVE: IceTcpCandidateType.ValueType # 0 CANDIDATE_PASSIVE: IceTcpCandidateType.ValueType # 1 CANDIDATE_SO: IceTcpCandidateType.ValueType # 2 -Global___IceTcpCandidateType: _TypeAlias = IceTcpCandidateType # noqa: Y015 - -@_typing.final -class RtcStats(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - @_typing.final - class Codec(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - RTC_FIELD_NUMBER: _builtins.int - CODEC_FIELD_NUMBER: _builtins.int - @_builtins.property - def rtc(self) -> Global___RtcStatsData: ... - @_builtins.property - def codec(self) -> Global___CodecStats: ... +global___IceTcpCandidateType = IceTcpCandidateType + +@typing.final +class RtcStats(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class Codec(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RTC_FIELD_NUMBER: builtins.int + CODEC_FIELD_NUMBER: builtins.int + @property + def rtc(self) -> global___RtcStatsData: ... + @property + def codec(self) -> global___CodecStats: ... def __init__( self, *, - rtc: Global___RtcStatsData | None = ..., - codec: Global___CodecStats | None = ..., + rtc: global___RtcStatsData | None = ..., + codec: global___CodecStats | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["codec", b"codec", "rtc", b"rtc"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["codec", b"codec", "rtc", b"rtc"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - - @_typing.final - class InboundRtp(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - RTC_FIELD_NUMBER: _builtins.int - STREAM_FIELD_NUMBER: _builtins.int - RECEIVED_FIELD_NUMBER: _builtins.int - INBOUND_FIELD_NUMBER: _builtins.int - @_builtins.property - def rtc(self) -> Global___RtcStatsData: ... - @_builtins.property - def stream(self) -> Global___RtpStreamStats: ... - @_builtins.property - def received(self) -> Global___ReceivedRtpStreamStats: ... - @_builtins.property - def inbound(self) -> Global___InboundRtpStreamStats: ... + def HasField(self, field_name: typing.Literal["codec", b"codec", "rtc", b"rtc"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["codec", b"codec", "rtc", b"rtc"]) -> None: ... + + @typing.final + class InboundRtp(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RTC_FIELD_NUMBER: builtins.int + STREAM_FIELD_NUMBER: builtins.int + RECEIVED_FIELD_NUMBER: builtins.int + INBOUND_FIELD_NUMBER: builtins.int + @property + def rtc(self) -> global___RtcStatsData: ... + @property + def stream(self) -> global___RtpStreamStats: ... + @property + def received(self) -> global___ReceivedRtpStreamStats: ... + @property + def inbound(self) -> global___InboundRtpStreamStats: ... def __init__( self, *, - rtc: Global___RtcStatsData | None = ..., - stream: Global___RtpStreamStats | None = ..., - received: Global___ReceivedRtpStreamStats | None = ..., - inbound: Global___InboundRtpStreamStats | None = ..., + rtc: global___RtcStatsData | None = ..., + stream: global___RtpStreamStats | None = ..., + received: global___ReceivedRtpStreamStats | None = ..., + inbound: global___InboundRtpStreamStats | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["inbound", b"inbound", "received", b"received", "rtc", b"rtc", "stream", b"stream"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["inbound", b"inbound", "received", b"received", "rtc", b"rtc", "stream", b"stream"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - - @_typing.final - class OutboundRtp(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - RTC_FIELD_NUMBER: _builtins.int - STREAM_FIELD_NUMBER: _builtins.int - SENT_FIELD_NUMBER: _builtins.int - OUTBOUND_FIELD_NUMBER: _builtins.int - @_builtins.property - def rtc(self) -> Global___RtcStatsData: ... - @_builtins.property - def stream(self) -> Global___RtpStreamStats: ... - @_builtins.property - def sent(self) -> Global___SentRtpStreamStats: ... - @_builtins.property - def outbound(self) -> Global___OutboundRtpStreamStats: ... + def HasField(self, field_name: typing.Literal["inbound", b"inbound", "received", b"received", "rtc", b"rtc", "stream", b"stream"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["inbound", b"inbound", "received", b"received", "rtc", b"rtc", "stream", b"stream"]) -> None: ... + + @typing.final + class OutboundRtp(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RTC_FIELD_NUMBER: builtins.int + STREAM_FIELD_NUMBER: builtins.int + SENT_FIELD_NUMBER: builtins.int + OUTBOUND_FIELD_NUMBER: builtins.int + @property + def rtc(self) -> global___RtcStatsData: ... + @property + def stream(self) -> global___RtpStreamStats: ... + @property + def sent(self) -> global___SentRtpStreamStats: ... + @property + def outbound(self) -> global___OutboundRtpStreamStats: ... def __init__( self, *, - rtc: Global___RtcStatsData | None = ..., - stream: Global___RtpStreamStats | None = ..., - sent: Global___SentRtpStreamStats | None = ..., - outbound: Global___OutboundRtpStreamStats | None = ..., + rtc: global___RtcStatsData | None = ..., + stream: global___RtpStreamStats | None = ..., + sent: global___SentRtpStreamStats | None = ..., + outbound: global___OutboundRtpStreamStats | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["outbound", b"outbound", "rtc", b"rtc", "sent", b"sent", "stream", b"stream"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["outbound", b"outbound", "rtc", b"rtc", "sent", b"sent", "stream", b"stream"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - - @_typing.final - class RemoteInboundRtp(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - RTC_FIELD_NUMBER: _builtins.int - STREAM_FIELD_NUMBER: _builtins.int - RECEIVED_FIELD_NUMBER: _builtins.int - REMOTE_INBOUND_FIELD_NUMBER: _builtins.int - @_builtins.property - def rtc(self) -> Global___RtcStatsData: ... - @_builtins.property - def stream(self) -> Global___RtpStreamStats: ... - @_builtins.property - def received(self) -> Global___ReceivedRtpStreamStats: ... - @_builtins.property - def remote_inbound(self) -> Global___RemoteInboundRtpStreamStats: ... + def HasField(self, field_name: typing.Literal["outbound", b"outbound", "rtc", b"rtc", "sent", b"sent", "stream", b"stream"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["outbound", b"outbound", "rtc", b"rtc", "sent", b"sent", "stream", b"stream"]) -> None: ... + + @typing.final + class RemoteInboundRtp(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RTC_FIELD_NUMBER: builtins.int + STREAM_FIELD_NUMBER: builtins.int + RECEIVED_FIELD_NUMBER: builtins.int + REMOTE_INBOUND_FIELD_NUMBER: builtins.int + @property + def rtc(self) -> global___RtcStatsData: ... + @property + def stream(self) -> global___RtpStreamStats: ... + @property + def received(self) -> global___ReceivedRtpStreamStats: ... + @property + def remote_inbound(self) -> global___RemoteInboundRtpStreamStats: ... def __init__( self, *, - rtc: Global___RtcStatsData | None = ..., - stream: Global___RtpStreamStats | None = ..., - received: Global___ReceivedRtpStreamStats | None = ..., - remote_inbound: Global___RemoteInboundRtpStreamStats | None = ..., + rtc: global___RtcStatsData | None = ..., + stream: global___RtpStreamStats | None = ..., + received: global___ReceivedRtpStreamStats | None = ..., + remote_inbound: global___RemoteInboundRtpStreamStats | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["received", b"received", "remote_inbound", b"remote_inbound", "rtc", b"rtc", "stream", b"stream"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["received", b"received", "remote_inbound", b"remote_inbound", "rtc", b"rtc", "stream", b"stream"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - - @_typing.final - class RemoteOutboundRtp(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - RTC_FIELD_NUMBER: _builtins.int - STREAM_FIELD_NUMBER: _builtins.int - SENT_FIELD_NUMBER: _builtins.int - REMOTE_OUTBOUND_FIELD_NUMBER: _builtins.int - @_builtins.property - def rtc(self) -> Global___RtcStatsData: ... - @_builtins.property - def stream(self) -> Global___RtpStreamStats: ... - @_builtins.property - def sent(self) -> Global___SentRtpStreamStats: ... - @_builtins.property - def remote_outbound(self) -> Global___RemoteOutboundRtpStreamStats: ... + def HasField(self, field_name: typing.Literal["received", b"received", "remote_inbound", b"remote_inbound", "rtc", b"rtc", "stream", b"stream"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["received", b"received", "remote_inbound", b"remote_inbound", "rtc", b"rtc", "stream", b"stream"]) -> None: ... + + @typing.final + class RemoteOutboundRtp(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RTC_FIELD_NUMBER: builtins.int + STREAM_FIELD_NUMBER: builtins.int + SENT_FIELD_NUMBER: builtins.int + REMOTE_OUTBOUND_FIELD_NUMBER: builtins.int + @property + def rtc(self) -> global___RtcStatsData: ... + @property + def stream(self) -> global___RtpStreamStats: ... + @property + def sent(self) -> global___SentRtpStreamStats: ... + @property + def remote_outbound(self) -> global___RemoteOutboundRtpStreamStats: ... def __init__( self, *, - rtc: Global___RtcStatsData | None = ..., - stream: Global___RtpStreamStats | None = ..., - sent: Global___SentRtpStreamStats | None = ..., - remote_outbound: Global___RemoteOutboundRtpStreamStats | None = ..., + rtc: global___RtcStatsData | None = ..., + stream: global___RtpStreamStats | None = ..., + sent: global___SentRtpStreamStats | None = ..., + remote_outbound: global___RemoteOutboundRtpStreamStats | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["remote_outbound", b"remote_outbound", "rtc", b"rtc", "sent", b"sent", "stream", b"stream"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["remote_outbound", b"remote_outbound", "rtc", b"rtc", "sent", b"sent", "stream", b"stream"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - - @_typing.final - class MediaSource(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - RTC_FIELD_NUMBER: _builtins.int - SOURCE_FIELD_NUMBER: _builtins.int - AUDIO_FIELD_NUMBER: _builtins.int - VIDEO_FIELD_NUMBER: _builtins.int - @_builtins.property - def rtc(self) -> Global___RtcStatsData: ... - @_builtins.property - def source(self) -> Global___MediaSourceStats: ... - @_builtins.property - def audio(self) -> Global___AudioSourceStats: ... - @_builtins.property - def video(self) -> Global___VideoSourceStats: ... + def HasField(self, field_name: typing.Literal["remote_outbound", b"remote_outbound", "rtc", b"rtc", "sent", b"sent", "stream", b"stream"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["remote_outbound", b"remote_outbound", "rtc", b"rtc", "sent", b"sent", "stream", b"stream"]) -> None: ... + + @typing.final + class MediaSource(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RTC_FIELD_NUMBER: builtins.int + SOURCE_FIELD_NUMBER: builtins.int + AUDIO_FIELD_NUMBER: builtins.int + VIDEO_FIELD_NUMBER: builtins.int + @property + def rtc(self) -> global___RtcStatsData: ... + @property + def source(self) -> global___MediaSourceStats: ... + @property + def audio(self) -> global___AudioSourceStats: ... + @property + def video(self) -> global___VideoSourceStats: ... def __init__( self, *, - rtc: Global___RtcStatsData | None = ..., - source: Global___MediaSourceStats | None = ..., - audio: Global___AudioSourceStats | None = ..., - video: Global___VideoSourceStats | None = ..., + rtc: global___RtcStatsData | None = ..., + source: global___MediaSourceStats | None = ..., + audio: global___AudioSourceStats | None = ..., + video: global___VideoSourceStats | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["audio", b"audio", "rtc", b"rtc", "source", b"source", "video", b"video"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["audio", b"audio", "rtc", b"rtc", "source", b"source", "video", b"video"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - - @_typing.final - class MediaPlayout(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - RTC_FIELD_NUMBER: _builtins.int - AUDIO_PLAYOUT_FIELD_NUMBER: _builtins.int - @_builtins.property - def rtc(self) -> Global___RtcStatsData: ... - @_builtins.property - def audio_playout(self) -> Global___AudioPlayoutStats: ... + def HasField(self, field_name: typing.Literal["audio", b"audio", "rtc", b"rtc", "source", b"source", "video", b"video"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["audio", b"audio", "rtc", b"rtc", "source", b"source", "video", b"video"]) -> None: ... + + @typing.final + class MediaPlayout(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RTC_FIELD_NUMBER: builtins.int + AUDIO_PLAYOUT_FIELD_NUMBER: builtins.int + @property + def rtc(self) -> global___RtcStatsData: ... + @property + def audio_playout(self) -> global___AudioPlayoutStats: ... def __init__( self, *, - rtc: Global___RtcStatsData | None = ..., - audio_playout: Global___AudioPlayoutStats | None = ..., + rtc: global___RtcStatsData | None = ..., + audio_playout: global___AudioPlayoutStats | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["audio_playout", b"audio_playout", "rtc", b"rtc"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["audio_playout", b"audio_playout", "rtc", b"rtc"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - - @_typing.final - class PeerConnection(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - RTC_FIELD_NUMBER: _builtins.int - PC_FIELD_NUMBER: _builtins.int - @_builtins.property - def rtc(self) -> Global___RtcStatsData: ... - @_builtins.property - def pc(self) -> Global___PeerConnectionStats: ... + def HasField(self, field_name: typing.Literal["audio_playout", b"audio_playout", "rtc", b"rtc"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["audio_playout", b"audio_playout", "rtc", b"rtc"]) -> None: ... + + @typing.final + class PeerConnection(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RTC_FIELD_NUMBER: builtins.int + PC_FIELD_NUMBER: builtins.int + @property + def rtc(self) -> global___RtcStatsData: ... + @property + def pc(self) -> global___PeerConnectionStats: ... def __init__( self, *, - rtc: Global___RtcStatsData | None = ..., - pc: Global___PeerConnectionStats | None = ..., + rtc: global___RtcStatsData | None = ..., + pc: global___PeerConnectionStats | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["pc", b"pc", "rtc", b"rtc"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["pc", b"pc", "rtc", b"rtc"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - - @_typing.final - class DataChannel(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - RTC_FIELD_NUMBER: _builtins.int - DC_FIELD_NUMBER: _builtins.int - @_builtins.property - def rtc(self) -> Global___RtcStatsData: ... - @_builtins.property - def dc(self) -> Global___DataChannelStats: ... + def HasField(self, field_name: typing.Literal["pc", b"pc", "rtc", b"rtc"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["pc", b"pc", "rtc", b"rtc"]) -> None: ... + + @typing.final + class DataChannel(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RTC_FIELD_NUMBER: builtins.int + DC_FIELD_NUMBER: builtins.int + @property + def rtc(self) -> global___RtcStatsData: ... + @property + def dc(self) -> global___DataChannelStats: ... def __init__( self, *, - rtc: Global___RtcStatsData | None = ..., - dc: Global___DataChannelStats | None = ..., + rtc: global___RtcStatsData | None = ..., + dc: global___DataChannelStats | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["dc", b"dc", "rtc", b"rtc"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["dc", b"dc", "rtc", b"rtc"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - - @_typing.final - class Transport(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - RTC_FIELD_NUMBER: _builtins.int - TRANSPORT_FIELD_NUMBER: _builtins.int - @_builtins.property - def rtc(self) -> Global___RtcStatsData: ... - @_builtins.property - def transport(self) -> Global___TransportStats: ... + def HasField(self, field_name: typing.Literal["dc", b"dc", "rtc", b"rtc"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["dc", b"dc", "rtc", b"rtc"]) -> None: ... + + @typing.final + class Transport(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RTC_FIELD_NUMBER: builtins.int + TRANSPORT_FIELD_NUMBER: builtins.int + @property + def rtc(self) -> global___RtcStatsData: ... + @property + def transport(self) -> global___TransportStats: ... def __init__( self, *, - rtc: Global___RtcStatsData | None = ..., - transport: Global___TransportStats | None = ..., + rtc: global___RtcStatsData | None = ..., + transport: global___TransportStats | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["rtc", b"rtc", "transport", b"transport"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["rtc", b"rtc", "transport", b"transport"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - - @_typing.final - class CandidatePair(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - RTC_FIELD_NUMBER: _builtins.int - CANDIDATE_PAIR_FIELD_NUMBER: _builtins.int - @_builtins.property - def rtc(self) -> Global___RtcStatsData: ... - @_builtins.property - def candidate_pair(self) -> Global___CandidatePairStats: ... + def HasField(self, field_name: typing.Literal["rtc", b"rtc", "transport", b"transport"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["rtc", b"rtc", "transport", b"transport"]) -> None: ... + + @typing.final + class CandidatePair(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RTC_FIELD_NUMBER: builtins.int + CANDIDATE_PAIR_FIELD_NUMBER: builtins.int + @property + def rtc(self) -> global___RtcStatsData: ... + @property + def candidate_pair(self) -> global___CandidatePairStats: ... def __init__( self, *, - rtc: Global___RtcStatsData | None = ..., - candidate_pair: Global___CandidatePairStats | None = ..., + rtc: global___RtcStatsData | None = ..., + candidate_pair: global___CandidatePairStats | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["candidate_pair", b"candidate_pair", "rtc", b"rtc"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["candidate_pair", b"candidate_pair", "rtc", b"rtc"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - - @_typing.final - class LocalCandidate(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - RTC_FIELD_NUMBER: _builtins.int - CANDIDATE_FIELD_NUMBER: _builtins.int - @_builtins.property - def rtc(self) -> Global___RtcStatsData: ... - @_builtins.property - def candidate(self) -> Global___IceCandidateStats: ... + def HasField(self, field_name: typing.Literal["candidate_pair", b"candidate_pair", "rtc", b"rtc"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["candidate_pair", b"candidate_pair", "rtc", b"rtc"]) -> None: ... + + @typing.final + class LocalCandidate(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RTC_FIELD_NUMBER: builtins.int + CANDIDATE_FIELD_NUMBER: builtins.int + @property + def rtc(self) -> global___RtcStatsData: ... + @property + def candidate(self) -> global___IceCandidateStats: ... def __init__( self, *, - rtc: Global___RtcStatsData | None = ..., - candidate: Global___IceCandidateStats | None = ..., + rtc: global___RtcStatsData | None = ..., + candidate: global___IceCandidateStats | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["candidate", b"candidate", "rtc", b"rtc"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["candidate", b"candidate", "rtc", b"rtc"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - - @_typing.final - class RemoteCandidate(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - RTC_FIELD_NUMBER: _builtins.int - CANDIDATE_FIELD_NUMBER: _builtins.int - @_builtins.property - def rtc(self) -> Global___RtcStatsData: ... - @_builtins.property - def candidate(self) -> Global___IceCandidateStats: ... + def HasField(self, field_name: typing.Literal["candidate", b"candidate", "rtc", b"rtc"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["candidate", b"candidate", "rtc", b"rtc"]) -> None: ... + + @typing.final + class RemoteCandidate(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RTC_FIELD_NUMBER: builtins.int + CANDIDATE_FIELD_NUMBER: builtins.int + @property + def rtc(self) -> global___RtcStatsData: ... + @property + def candidate(self) -> global___IceCandidateStats: ... def __init__( self, *, - rtc: Global___RtcStatsData | None = ..., - candidate: Global___IceCandidateStats | None = ..., + rtc: global___RtcStatsData | None = ..., + candidate: global___IceCandidateStats | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["candidate", b"candidate", "rtc", b"rtc"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["candidate", b"candidate", "rtc", b"rtc"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - - @_typing.final - class Certificate(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - RTC_FIELD_NUMBER: _builtins.int - CERTIFICATE_FIELD_NUMBER: _builtins.int - @_builtins.property - def rtc(self) -> Global___RtcStatsData: ... - @_builtins.property - def certificate(self) -> Global___CertificateStats: ... + def HasField(self, field_name: typing.Literal["candidate", b"candidate", "rtc", b"rtc"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["candidate", b"candidate", "rtc", b"rtc"]) -> None: ... + + @typing.final + class Certificate(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RTC_FIELD_NUMBER: builtins.int + CERTIFICATE_FIELD_NUMBER: builtins.int + @property + def rtc(self) -> global___RtcStatsData: ... + @property + def certificate(self) -> global___CertificateStats: ... def __init__( self, *, - rtc: Global___RtcStatsData | None = ..., - certificate: Global___CertificateStats | None = ..., + rtc: global___RtcStatsData | None = ..., + certificate: global___CertificateStats | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["certificate", b"certificate", "rtc", b"rtc"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["certificate", b"certificate", "rtc", b"rtc"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - - @_typing.final - class Stream(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - RTC_FIELD_NUMBER: _builtins.int - STREAM_FIELD_NUMBER: _builtins.int - @_builtins.property - def rtc(self) -> Global___RtcStatsData: ... - @_builtins.property - def stream(self) -> Global___StreamStats: ... + def HasField(self, field_name: typing.Literal["certificate", b"certificate", "rtc", b"rtc"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["certificate", b"certificate", "rtc", b"rtc"]) -> None: ... + + @typing.final + class Stream(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RTC_FIELD_NUMBER: builtins.int + STREAM_FIELD_NUMBER: builtins.int + @property + def rtc(self) -> global___RtcStatsData: ... + @property + def stream(self) -> global___StreamStats: ... def __init__( self, *, - rtc: Global___RtcStatsData | None = ..., - stream: Global___StreamStats | None = ..., + rtc: global___RtcStatsData | None = ..., + stream: global___StreamStats | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["rtc", b"rtc", "stream", b"stream"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["rtc", b"rtc", "stream", b"stream"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - - @_typing.final - class Track(_message.Message): + def HasField(self, field_name: typing.Literal["rtc", b"rtc", "stream", b"stream"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["rtc", b"rtc", "stream", b"stream"]) -> None: ... + + @typing.final + class Track(google.protobuf.message.Message): """Deprecated""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - - CODEC_FIELD_NUMBER: _builtins.int - INBOUND_RTP_FIELD_NUMBER: _builtins.int - OUTBOUND_RTP_FIELD_NUMBER: _builtins.int - REMOTE_INBOUND_RTP_FIELD_NUMBER: _builtins.int - REMOTE_OUTBOUND_RTP_FIELD_NUMBER: _builtins.int - MEDIA_SOURCE_FIELD_NUMBER: _builtins.int - MEDIA_PLAYOUT_FIELD_NUMBER: _builtins.int - PEER_CONNECTION_FIELD_NUMBER: _builtins.int - DATA_CHANNEL_FIELD_NUMBER: _builtins.int - TRANSPORT_FIELD_NUMBER: _builtins.int - CANDIDATE_PAIR_FIELD_NUMBER: _builtins.int - LOCAL_CANDIDATE_FIELD_NUMBER: _builtins.int - REMOTE_CANDIDATE_FIELD_NUMBER: _builtins.int - CERTIFICATE_FIELD_NUMBER: _builtins.int - STREAM_FIELD_NUMBER: _builtins.int - TRACK_FIELD_NUMBER: _builtins.int - @_builtins.property - def codec(self) -> Global___RtcStats.Codec: ... - @_builtins.property - def inbound_rtp(self) -> Global___RtcStats.InboundRtp: ... - @_builtins.property - def outbound_rtp(self) -> Global___RtcStats.OutboundRtp: ... - @_builtins.property - def remote_inbound_rtp(self) -> Global___RtcStats.RemoteInboundRtp: ... - @_builtins.property - def remote_outbound_rtp(self) -> Global___RtcStats.RemoteOutboundRtp: ... - @_builtins.property - def media_source(self) -> Global___RtcStats.MediaSource: ... - @_builtins.property - def media_playout(self) -> Global___RtcStats.MediaPlayout: ... - @_builtins.property - def peer_connection(self) -> Global___RtcStats.PeerConnection: ... - @_builtins.property - def data_channel(self) -> Global___RtcStats.DataChannel: ... - @_builtins.property - def transport(self) -> Global___RtcStats.Transport: ... - @_builtins.property - def candidate_pair(self) -> Global___RtcStats.CandidatePair: ... - @_builtins.property - def local_candidate(self) -> Global___RtcStats.LocalCandidate: ... - @_builtins.property - def remote_candidate(self) -> Global___RtcStats.RemoteCandidate: ... - @_builtins.property - def certificate(self) -> Global___RtcStats.Certificate: ... - @_builtins.property - def stream(self) -> Global___RtcStats.Stream: ... - @_builtins.property - def track(self) -> Global___RtcStats.Track: ... + + CODEC_FIELD_NUMBER: builtins.int + INBOUND_RTP_FIELD_NUMBER: builtins.int + OUTBOUND_RTP_FIELD_NUMBER: builtins.int + REMOTE_INBOUND_RTP_FIELD_NUMBER: builtins.int + REMOTE_OUTBOUND_RTP_FIELD_NUMBER: builtins.int + MEDIA_SOURCE_FIELD_NUMBER: builtins.int + MEDIA_PLAYOUT_FIELD_NUMBER: builtins.int + PEER_CONNECTION_FIELD_NUMBER: builtins.int + DATA_CHANNEL_FIELD_NUMBER: builtins.int + TRANSPORT_FIELD_NUMBER: builtins.int + CANDIDATE_PAIR_FIELD_NUMBER: builtins.int + LOCAL_CANDIDATE_FIELD_NUMBER: builtins.int + REMOTE_CANDIDATE_FIELD_NUMBER: builtins.int + CERTIFICATE_FIELD_NUMBER: builtins.int + STREAM_FIELD_NUMBER: builtins.int + TRACK_FIELD_NUMBER: builtins.int + @property + def codec(self) -> global___RtcStats.Codec: ... + @property + def inbound_rtp(self) -> global___RtcStats.InboundRtp: ... + @property + def outbound_rtp(self) -> global___RtcStats.OutboundRtp: ... + @property + def remote_inbound_rtp(self) -> global___RtcStats.RemoteInboundRtp: ... + @property + def remote_outbound_rtp(self) -> global___RtcStats.RemoteOutboundRtp: ... + @property + def media_source(self) -> global___RtcStats.MediaSource: ... + @property + def media_playout(self) -> global___RtcStats.MediaPlayout: ... + @property + def peer_connection(self) -> global___RtcStats.PeerConnection: ... + @property + def data_channel(self) -> global___RtcStats.DataChannel: ... + @property + def transport(self) -> global___RtcStats.Transport: ... + @property + def candidate_pair(self) -> global___RtcStats.CandidatePair: ... + @property + def local_candidate(self) -> global___RtcStats.LocalCandidate: ... + @property + def remote_candidate(self) -> global___RtcStats.RemoteCandidate: ... + @property + def certificate(self) -> global___RtcStats.Certificate: ... + @property + def stream(self) -> global___RtcStats.Stream: ... + @property + def track(self) -> global___RtcStats.Track: ... def __init__( self, *, - codec: Global___RtcStats.Codec | None = ..., - inbound_rtp: Global___RtcStats.InboundRtp | None = ..., - outbound_rtp: Global___RtcStats.OutboundRtp | None = ..., - remote_inbound_rtp: Global___RtcStats.RemoteInboundRtp | None = ..., - remote_outbound_rtp: Global___RtcStats.RemoteOutboundRtp | None = ..., - media_source: Global___RtcStats.MediaSource | None = ..., - media_playout: Global___RtcStats.MediaPlayout | None = ..., - peer_connection: Global___RtcStats.PeerConnection | None = ..., - data_channel: Global___RtcStats.DataChannel | None = ..., - transport: Global___RtcStats.Transport | None = ..., - candidate_pair: Global___RtcStats.CandidatePair | None = ..., - local_candidate: Global___RtcStats.LocalCandidate | None = ..., - remote_candidate: Global___RtcStats.RemoteCandidate | None = ..., - certificate: Global___RtcStats.Certificate | None = ..., - stream: Global___RtcStats.Stream | None = ..., - track: Global___RtcStats.Track | None = ..., + codec: global___RtcStats.Codec | None = ..., + inbound_rtp: global___RtcStats.InboundRtp | None = ..., + outbound_rtp: global___RtcStats.OutboundRtp | None = ..., + remote_inbound_rtp: global___RtcStats.RemoteInboundRtp | None = ..., + remote_outbound_rtp: global___RtcStats.RemoteOutboundRtp | None = ..., + media_source: global___RtcStats.MediaSource | None = ..., + media_playout: global___RtcStats.MediaPlayout | None = ..., + peer_connection: global___RtcStats.PeerConnection | None = ..., + data_channel: global___RtcStats.DataChannel | None = ..., + transport: global___RtcStats.Transport | None = ..., + candidate_pair: global___RtcStats.CandidatePair | None = ..., + local_candidate: global___RtcStats.LocalCandidate | None = ..., + remote_candidate: global___RtcStats.RemoteCandidate | None = ..., + certificate: global___RtcStats.Certificate | None = ..., + stream: global___RtcStats.Stream | None = ..., + track: global___RtcStats.Track | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["candidate_pair", b"candidate_pair", "certificate", b"certificate", "codec", b"codec", "data_channel", b"data_channel", "inbound_rtp", b"inbound_rtp", "local_candidate", b"local_candidate", "media_playout", b"media_playout", "media_source", b"media_source", "outbound_rtp", b"outbound_rtp", "peer_connection", b"peer_connection", "remote_candidate", b"remote_candidate", "remote_inbound_rtp", b"remote_inbound_rtp", "remote_outbound_rtp", b"remote_outbound_rtp", "stats", b"stats", "stream", b"stream", "track", b"track", "transport", b"transport"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["candidate_pair", b"candidate_pair", "certificate", b"certificate", "codec", b"codec", "data_channel", b"data_channel", "inbound_rtp", b"inbound_rtp", "local_candidate", b"local_candidate", "media_playout", b"media_playout", "media_source", b"media_source", "outbound_rtp", b"outbound_rtp", "peer_connection", b"peer_connection", "remote_candidate", b"remote_candidate", "remote_inbound_rtp", b"remote_inbound_rtp", "remote_outbound_rtp", b"remote_outbound_rtp", "stats", b"stats", "stream", b"stream", "track", b"track", "transport", b"transport"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - _WhichOneofReturnType_stats: _TypeAlias = _typing.Literal["codec", "inbound_rtp", "outbound_rtp", "remote_inbound_rtp", "remote_outbound_rtp", "media_source", "media_playout", "peer_connection", "data_channel", "transport", "candidate_pair", "local_candidate", "remote_candidate", "certificate", "stream", "track"] # noqa: Y015 - _WhichOneofArgType_stats: _TypeAlias = _typing.Literal["stats", b"stats"] # noqa: Y015 - def WhichOneof(self, oneof_group: _WhichOneofArgType_stats) -> _WhichOneofReturnType_stats | None: ... - -Global___RtcStats: _TypeAlias = RtcStats # noqa: Y015 - -@_typing.final -class RtcStatsData(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - ID_FIELD_NUMBER: _builtins.int - TIMESTAMP_FIELD_NUMBER: _builtins.int - id: _builtins.str - timestamp: _builtins.int + def HasField(self, field_name: typing.Literal["candidate_pair", b"candidate_pair", "certificate", b"certificate", "codec", b"codec", "data_channel", b"data_channel", "inbound_rtp", b"inbound_rtp", "local_candidate", b"local_candidate", "media_playout", b"media_playout", "media_source", b"media_source", "outbound_rtp", b"outbound_rtp", "peer_connection", b"peer_connection", "remote_candidate", b"remote_candidate", "remote_inbound_rtp", b"remote_inbound_rtp", "remote_outbound_rtp", b"remote_outbound_rtp", "stats", b"stats", "stream", b"stream", "track", b"track", "transport", b"transport"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["candidate_pair", b"candidate_pair", "certificate", b"certificate", "codec", b"codec", "data_channel", b"data_channel", "inbound_rtp", b"inbound_rtp", "local_candidate", b"local_candidate", "media_playout", b"media_playout", "media_source", b"media_source", "outbound_rtp", b"outbound_rtp", "peer_connection", b"peer_connection", "remote_candidate", b"remote_candidate", "remote_inbound_rtp", b"remote_inbound_rtp", "remote_outbound_rtp", b"remote_outbound_rtp", "stats", b"stats", "stream", b"stream", "track", b"track", "transport", b"transport"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["stats", b"stats"]) -> typing.Literal["codec", "inbound_rtp", "outbound_rtp", "remote_inbound_rtp", "remote_outbound_rtp", "media_source", "media_playout", "peer_connection", "data_channel", "transport", "candidate_pair", "local_candidate", "remote_candidate", "certificate", "stream", "track"] | None: ... + +global___RtcStats = RtcStats + +@typing.final +class RtcStatsData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ID_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + id: builtins.str + timestamp: builtins.int def __init__( self, *, - id: _builtins.str | None = ..., - timestamp: _builtins.int | None = ..., + id: builtins.str | None = ..., + timestamp: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["id", b"id", "timestamp", b"timestamp"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["id", b"id", "timestamp", b"timestamp"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___RtcStatsData: _TypeAlias = RtcStatsData # noqa: Y015 - -@_typing.final -class CodecStats(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - PAYLOAD_TYPE_FIELD_NUMBER: _builtins.int - TRANSPORT_ID_FIELD_NUMBER: _builtins.int - MIME_TYPE_FIELD_NUMBER: _builtins.int - CLOCK_RATE_FIELD_NUMBER: _builtins.int - CHANNELS_FIELD_NUMBER: _builtins.int - SDP_FMTP_LINE_FIELD_NUMBER: _builtins.int - payload_type: _builtins.int - transport_id: _builtins.str - mime_type: _builtins.str - clock_rate: _builtins.int - channels: _builtins.int - sdp_fmtp_line: _builtins.str + def HasField(self, field_name: typing.Literal["id", b"id", "timestamp", b"timestamp"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["id", b"id", "timestamp", b"timestamp"]) -> None: ... + +global___RtcStatsData = RtcStatsData + +@typing.final +class CodecStats(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PAYLOAD_TYPE_FIELD_NUMBER: builtins.int + TRANSPORT_ID_FIELD_NUMBER: builtins.int + MIME_TYPE_FIELD_NUMBER: builtins.int + CLOCK_RATE_FIELD_NUMBER: builtins.int + CHANNELS_FIELD_NUMBER: builtins.int + SDP_FMTP_LINE_FIELD_NUMBER: builtins.int + payload_type: builtins.int + transport_id: builtins.str + mime_type: builtins.str + clock_rate: builtins.int + channels: builtins.int + sdp_fmtp_line: builtins.str def __init__( self, *, - payload_type: _builtins.int | None = ..., - transport_id: _builtins.str | None = ..., - mime_type: _builtins.str | None = ..., - clock_rate: _builtins.int | None = ..., - channels: _builtins.int | None = ..., - sdp_fmtp_line: _builtins.str | None = ..., + payload_type: builtins.int | None = ..., + transport_id: builtins.str | None = ..., + mime_type: builtins.str | None = ..., + clock_rate: builtins.int | None = ..., + channels: builtins.int | None = ..., + sdp_fmtp_line: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["channels", b"channels", "clock_rate", b"clock_rate", "mime_type", b"mime_type", "payload_type", b"payload_type", "sdp_fmtp_line", b"sdp_fmtp_line", "transport_id", b"transport_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["channels", b"channels", "clock_rate", b"clock_rate", "mime_type", b"mime_type", "payload_type", b"payload_type", "sdp_fmtp_line", b"sdp_fmtp_line", "transport_id", b"transport_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___CodecStats: _TypeAlias = CodecStats # noqa: Y015 - -@_typing.final -class RtpStreamStats(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - SSRC_FIELD_NUMBER: _builtins.int - KIND_FIELD_NUMBER: _builtins.int - TRANSPORT_ID_FIELD_NUMBER: _builtins.int - CODEC_ID_FIELD_NUMBER: _builtins.int - ssrc: _builtins.int - kind: _builtins.str - transport_id: _builtins.str - codec_id: _builtins.str + def HasField(self, field_name: typing.Literal["channels", b"channels", "clock_rate", b"clock_rate", "mime_type", b"mime_type", "payload_type", b"payload_type", "sdp_fmtp_line", b"sdp_fmtp_line", "transport_id", b"transport_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["channels", b"channels", "clock_rate", b"clock_rate", "mime_type", b"mime_type", "payload_type", b"payload_type", "sdp_fmtp_line", b"sdp_fmtp_line", "transport_id", b"transport_id"]) -> None: ... + +global___CodecStats = CodecStats + +@typing.final +class RtpStreamStats(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SSRC_FIELD_NUMBER: builtins.int + KIND_FIELD_NUMBER: builtins.int + TRANSPORT_ID_FIELD_NUMBER: builtins.int + CODEC_ID_FIELD_NUMBER: builtins.int + ssrc: builtins.int + kind: builtins.str + transport_id: builtins.str + codec_id: builtins.str def __init__( self, *, - ssrc: _builtins.int | None = ..., - kind: _builtins.str | None = ..., - transport_id: _builtins.str | None = ..., - codec_id: _builtins.str | None = ..., + ssrc: builtins.int | None = ..., + kind: builtins.str | None = ..., + transport_id: builtins.str | None = ..., + codec_id: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["codec_id", b"codec_id", "kind", b"kind", "ssrc", b"ssrc", "transport_id", b"transport_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["codec_id", b"codec_id", "kind", b"kind", "ssrc", b"ssrc", "transport_id", b"transport_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___RtpStreamStats: _TypeAlias = RtpStreamStats # noqa: Y015 - -@_typing.final -class ReceivedRtpStreamStats(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - PACKETS_RECEIVED_FIELD_NUMBER: _builtins.int - PACKETS_LOST_FIELD_NUMBER: _builtins.int - JITTER_FIELD_NUMBER: _builtins.int - packets_received: _builtins.int - packets_lost: _builtins.int - jitter: _builtins.float + def HasField(self, field_name: typing.Literal["codec_id", b"codec_id", "kind", b"kind", "ssrc", b"ssrc", "transport_id", b"transport_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["codec_id", b"codec_id", "kind", b"kind", "ssrc", b"ssrc", "transport_id", b"transport_id"]) -> None: ... + +global___RtpStreamStats = RtpStreamStats + +@typing.final +class ReceivedRtpStreamStats(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PACKETS_RECEIVED_FIELD_NUMBER: builtins.int + PACKETS_LOST_FIELD_NUMBER: builtins.int + JITTER_FIELD_NUMBER: builtins.int + packets_received: builtins.int + packets_lost: builtins.int + jitter: builtins.float def __init__( self, *, - packets_received: _builtins.int | None = ..., - packets_lost: _builtins.int | None = ..., - jitter: _builtins.float | None = ..., + packets_received: builtins.int | None = ..., + packets_lost: builtins.int | None = ..., + jitter: builtins.float | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["jitter", b"jitter", "packets_lost", b"packets_lost", "packets_received", b"packets_received"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["jitter", b"jitter", "packets_lost", b"packets_lost", "packets_received", b"packets_received"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___ReceivedRtpStreamStats: _TypeAlias = ReceivedRtpStreamStats # noqa: Y015 - -@_typing.final -class InboundRtpStreamStats(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - TRACK_IDENTIFIER_FIELD_NUMBER: _builtins.int - MID_FIELD_NUMBER: _builtins.int - REMOTE_ID_FIELD_NUMBER: _builtins.int - FRAMES_DECODED_FIELD_NUMBER: _builtins.int - KEY_FRAMES_DECODED_FIELD_NUMBER: _builtins.int - FRAMES_RENDERED_FIELD_NUMBER: _builtins.int - FRAMES_DROPPED_FIELD_NUMBER: _builtins.int - FRAME_WIDTH_FIELD_NUMBER: _builtins.int - FRAME_HEIGHT_FIELD_NUMBER: _builtins.int - FRAMES_PER_SECOND_FIELD_NUMBER: _builtins.int - QP_SUM_FIELD_NUMBER: _builtins.int - TOTAL_DECODE_TIME_FIELD_NUMBER: _builtins.int - TOTAL_INTER_FRAME_DELAY_FIELD_NUMBER: _builtins.int - TOTAL_SQUARED_INTER_FRAME_DELAY_FIELD_NUMBER: _builtins.int - PAUSE_COUNT_FIELD_NUMBER: _builtins.int - TOTAL_PAUSE_DURATION_FIELD_NUMBER: _builtins.int - FREEZE_COUNT_FIELD_NUMBER: _builtins.int - TOTAL_FREEZE_DURATION_FIELD_NUMBER: _builtins.int - LAST_PACKET_RECEIVED_TIMESTAMP_FIELD_NUMBER: _builtins.int - HEADER_BYTES_RECEIVED_FIELD_NUMBER: _builtins.int - PACKETS_DISCARDED_FIELD_NUMBER: _builtins.int - FEC_BYTES_RECEIVED_FIELD_NUMBER: _builtins.int - FEC_PACKETS_RECEIVED_FIELD_NUMBER: _builtins.int - FEC_PACKETS_DISCARDED_FIELD_NUMBER: _builtins.int - BYTES_RECEIVED_FIELD_NUMBER: _builtins.int - NACK_COUNT_FIELD_NUMBER: _builtins.int - FIR_COUNT_FIELD_NUMBER: _builtins.int - PLI_COUNT_FIELD_NUMBER: _builtins.int - TOTAL_PROCESSING_DELAY_FIELD_NUMBER: _builtins.int - ESTIMATED_PLAYOUT_TIMESTAMP_FIELD_NUMBER: _builtins.int - JITTER_BUFFER_DELAY_FIELD_NUMBER: _builtins.int - JITTER_BUFFER_TARGET_DELAY_FIELD_NUMBER: _builtins.int - JITTER_BUFFER_EMITTED_COUNT_FIELD_NUMBER: _builtins.int - JITTER_BUFFER_MINIMUM_DELAY_FIELD_NUMBER: _builtins.int - TOTAL_SAMPLES_RECEIVED_FIELD_NUMBER: _builtins.int - CONCEALED_SAMPLES_FIELD_NUMBER: _builtins.int - SILENT_CONCEALED_SAMPLES_FIELD_NUMBER: _builtins.int - CONCEALMENT_EVENTS_FIELD_NUMBER: _builtins.int - INSERTED_SAMPLES_FOR_DECELERATION_FIELD_NUMBER: _builtins.int - REMOVED_SAMPLES_FOR_ACCELERATION_FIELD_NUMBER: _builtins.int - AUDIO_LEVEL_FIELD_NUMBER: _builtins.int - TOTAL_AUDIO_ENERGY_FIELD_NUMBER: _builtins.int - TOTAL_SAMPLES_DURATION_FIELD_NUMBER: _builtins.int - FRAMES_RECEIVED_FIELD_NUMBER: _builtins.int - DECODER_IMPLEMENTATION_FIELD_NUMBER: _builtins.int - PLAYOUT_ID_FIELD_NUMBER: _builtins.int - POWER_EFFICIENT_DECODER_FIELD_NUMBER: _builtins.int - FRAMES_ASSEMBLED_FROM_MULTIPLE_PACKETS_FIELD_NUMBER: _builtins.int - TOTAL_ASSEMBLY_TIME_FIELD_NUMBER: _builtins.int - RETRANSMITTED_PACKETS_RECEIVED_FIELD_NUMBER: _builtins.int - RETRANSMITTED_BYTES_RECEIVED_FIELD_NUMBER: _builtins.int - RTX_SSRC_FIELD_NUMBER: _builtins.int - FEC_SSRC_FIELD_NUMBER: _builtins.int - track_identifier: _builtins.str - mid: _builtins.str - remote_id: _builtins.str - frames_decoded: _builtins.int - key_frames_decoded: _builtins.int - frames_rendered: _builtins.int - frames_dropped: _builtins.int - frame_width: _builtins.int - frame_height: _builtins.int - frames_per_second: _builtins.float - qp_sum: _builtins.int - total_decode_time: _builtins.float - total_inter_frame_delay: _builtins.float - total_squared_inter_frame_delay: _builtins.float - pause_count: _builtins.int - total_pause_duration: _builtins.float - freeze_count: _builtins.int - total_freeze_duration: _builtins.float - last_packet_received_timestamp: _builtins.float - header_bytes_received: _builtins.int - packets_discarded: _builtins.int - fec_bytes_received: _builtins.int - fec_packets_received: _builtins.int - fec_packets_discarded: _builtins.int - bytes_received: _builtins.int - nack_count: _builtins.int - fir_count: _builtins.int - pli_count: _builtins.int - total_processing_delay: _builtins.float - estimated_playout_timestamp: _builtins.float - jitter_buffer_delay: _builtins.float - jitter_buffer_target_delay: _builtins.float - jitter_buffer_emitted_count: _builtins.int - jitter_buffer_minimum_delay: _builtins.float - total_samples_received: _builtins.int - concealed_samples: _builtins.int - silent_concealed_samples: _builtins.int - concealment_events: _builtins.int - inserted_samples_for_deceleration: _builtins.int - removed_samples_for_acceleration: _builtins.int - audio_level: _builtins.float - total_audio_energy: _builtins.float - total_samples_duration: _builtins.float - frames_received: _builtins.int - decoder_implementation: _builtins.str - playout_id: _builtins.str - power_efficient_decoder: _builtins.bool - frames_assembled_from_multiple_packets: _builtins.int - total_assembly_time: _builtins.float - retransmitted_packets_received: _builtins.int - retransmitted_bytes_received: _builtins.int - rtx_ssrc: _builtins.int - fec_ssrc: _builtins.int + def HasField(self, field_name: typing.Literal["jitter", b"jitter", "packets_lost", b"packets_lost", "packets_received", b"packets_received"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["jitter", b"jitter", "packets_lost", b"packets_lost", "packets_received", b"packets_received"]) -> None: ... + +global___ReceivedRtpStreamStats = ReceivedRtpStreamStats + +@typing.final +class InboundRtpStreamStats(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TRACK_IDENTIFIER_FIELD_NUMBER: builtins.int + MID_FIELD_NUMBER: builtins.int + REMOTE_ID_FIELD_NUMBER: builtins.int + FRAMES_DECODED_FIELD_NUMBER: builtins.int + KEY_FRAMES_DECODED_FIELD_NUMBER: builtins.int + FRAMES_RENDERED_FIELD_NUMBER: builtins.int + FRAMES_DROPPED_FIELD_NUMBER: builtins.int + FRAME_WIDTH_FIELD_NUMBER: builtins.int + FRAME_HEIGHT_FIELD_NUMBER: builtins.int + FRAMES_PER_SECOND_FIELD_NUMBER: builtins.int + QP_SUM_FIELD_NUMBER: builtins.int + TOTAL_DECODE_TIME_FIELD_NUMBER: builtins.int + TOTAL_INTER_FRAME_DELAY_FIELD_NUMBER: builtins.int + TOTAL_SQUARED_INTER_FRAME_DELAY_FIELD_NUMBER: builtins.int + PAUSE_COUNT_FIELD_NUMBER: builtins.int + TOTAL_PAUSE_DURATION_FIELD_NUMBER: builtins.int + FREEZE_COUNT_FIELD_NUMBER: builtins.int + TOTAL_FREEZE_DURATION_FIELD_NUMBER: builtins.int + LAST_PACKET_RECEIVED_TIMESTAMP_FIELD_NUMBER: builtins.int + HEADER_BYTES_RECEIVED_FIELD_NUMBER: builtins.int + PACKETS_DISCARDED_FIELD_NUMBER: builtins.int + FEC_BYTES_RECEIVED_FIELD_NUMBER: builtins.int + FEC_PACKETS_RECEIVED_FIELD_NUMBER: builtins.int + FEC_PACKETS_DISCARDED_FIELD_NUMBER: builtins.int + BYTES_RECEIVED_FIELD_NUMBER: builtins.int + NACK_COUNT_FIELD_NUMBER: builtins.int + FIR_COUNT_FIELD_NUMBER: builtins.int + PLI_COUNT_FIELD_NUMBER: builtins.int + TOTAL_PROCESSING_DELAY_FIELD_NUMBER: builtins.int + ESTIMATED_PLAYOUT_TIMESTAMP_FIELD_NUMBER: builtins.int + JITTER_BUFFER_DELAY_FIELD_NUMBER: builtins.int + JITTER_BUFFER_TARGET_DELAY_FIELD_NUMBER: builtins.int + JITTER_BUFFER_EMITTED_COUNT_FIELD_NUMBER: builtins.int + JITTER_BUFFER_MINIMUM_DELAY_FIELD_NUMBER: builtins.int + TOTAL_SAMPLES_RECEIVED_FIELD_NUMBER: builtins.int + CONCEALED_SAMPLES_FIELD_NUMBER: builtins.int + SILENT_CONCEALED_SAMPLES_FIELD_NUMBER: builtins.int + CONCEALMENT_EVENTS_FIELD_NUMBER: builtins.int + INSERTED_SAMPLES_FOR_DECELERATION_FIELD_NUMBER: builtins.int + REMOVED_SAMPLES_FOR_ACCELERATION_FIELD_NUMBER: builtins.int + AUDIO_LEVEL_FIELD_NUMBER: builtins.int + TOTAL_AUDIO_ENERGY_FIELD_NUMBER: builtins.int + TOTAL_SAMPLES_DURATION_FIELD_NUMBER: builtins.int + FRAMES_RECEIVED_FIELD_NUMBER: builtins.int + DECODER_IMPLEMENTATION_FIELD_NUMBER: builtins.int + PLAYOUT_ID_FIELD_NUMBER: builtins.int + POWER_EFFICIENT_DECODER_FIELD_NUMBER: builtins.int + FRAMES_ASSEMBLED_FROM_MULTIPLE_PACKETS_FIELD_NUMBER: builtins.int + TOTAL_ASSEMBLY_TIME_FIELD_NUMBER: builtins.int + RETRANSMITTED_PACKETS_RECEIVED_FIELD_NUMBER: builtins.int + RETRANSMITTED_BYTES_RECEIVED_FIELD_NUMBER: builtins.int + RTX_SSRC_FIELD_NUMBER: builtins.int + FEC_SSRC_FIELD_NUMBER: builtins.int + track_identifier: builtins.str + mid: builtins.str + remote_id: builtins.str + frames_decoded: builtins.int + key_frames_decoded: builtins.int + frames_rendered: builtins.int + frames_dropped: builtins.int + frame_width: builtins.int + frame_height: builtins.int + frames_per_second: builtins.float + qp_sum: builtins.int + total_decode_time: builtins.float + total_inter_frame_delay: builtins.float + total_squared_inter_frame_delay: builtins.float + pause_count: builtins.int + total_pause_duration: builtins.float + freeze_count: builtins.int + total_freeze_duration: builtins.float + last_packet_received_timestamp: builtins.float + header_bytes_received: builtins.int + packets_discarded: builtins.int + fec_bytes_received: builtins.int + fec_packets_received: builtins.int + fec_packets_discarded: builtins.int + bytes_received: builtins.int + nack_count: builtins.int + fir_count: builtins.int + pli_count: builtins.int + total_processing_delay: builtins.float + estimated_playout_timestamp: builtins.float + jitter_buffer_delay: builtins.float + jitter_buffer_target_delay: builtins.float + jitter_buffer_emitted_count: builtins.int + jitter_buffer_minimum_delay: builtins.float + total_samples_received: builtins.int + concealed_samples: builtins.int + silent_concealed_samples: builtins.int + concealment_events: builtins.int + inserted_samples_for_deceleration: builtins.int + removed_samples_for_acceleration: builtins.int + audio_level: builtins.float + total_audio_energy: builtins.float + total_samples_duration: builtins.float + frames_received: builtins.int + decoder_implementation: builtins.str + playout_id: builtins.str + power_efficient_decoder: builtins.bool + frames_assembled_from_multiple_packets: builtins.int + total_assembly_time: builtins.float + retransmitted_packets_received: builtins.int + retransmitted_bytes_received: builtins.int + rtx_ssrc: builtins.int + fec_ssrc: builtins.int def __init__( self, *, - track_identifier: _builtins.str | None = ..., - mid: _builtins.str | None = ..., - remote_id: _builtins.str | None = ..., - frames_decoded: _builtins.int | None = ..., - key_frames_decoded: _builtins.int | None = ..., - frames_rendered: _builtins.int | None = ..., - frames_dropped: _builtins.int | None = ..., - frame_width: _builtins.int | None = ..., - frame_height: _builtins.int | None = ..., - frames_per_second: _builtins.float | None = ..., - qp_sum: _builtins.int | None = ..., - total_decode_time: _builtins.float | None = ..., - total_inter_frame_delay: _builtins.float | None = ..., - total_squared_inter_frame_delay: _builtins.float | None = ..., - pause_count: _builtins.int | None = ..., - total_pause_duration: _builtins.float | None = ..., - freeze_count: _builtins.int | None = ..., - total_freeze_duration: _builtins.float | None = ..., - last_packet_received_timestamp: _builtins.float | None = ..., - header_bytes_received: _builtins.int | None = ..., - packets_discarded: _builtins.int | None = ..., - fec_bytes_received: _builtins.int | None = ..., - fec_packets_received: _builtins.int | None = ..., - fec_packets_discarded: _builtins.int | None = ..., - bytes_received: _builtins.int | None = ..., - nack_count: _builtins.int | None = ..., - fir_count: _builtins.int | None = ..., - pli_count: _builtins.int | None = ..., - total_processing_delay: _builtins.float | None = ..., - estimated_playout_timestamp: _builtins.float | None = ..., - jitter_buffer_delay: _builtins.float | None = ..., - jitter_buffer_target_delay: _builtins.float | None = ..., - jitter_buffer_emitted_count: _builtins.int | None = ..., - jitter_buffer_minimum_delay: _builtins.float | None = ..., - total_samples_received: _builtins.int | None = ..., - concealed_samples: _builtins.int | None = ..., - silent_concealed_samples: _builtins.int | None = ..., - concealment_events: _builtins.int | None = ..., - inserted_samples_for_deceleration: _builtins.int | None = ..., - removed_samples_for_acceleration: _builtins.int | None = ..., - audio_level: _builtins.float | None = ..., - total_audio_energy: _builtins.float | None = ..., - total_samples_duration: _builtins.float | None = ..., - frames_received: _builtins.int | None = ..., - decoder_implementation: _builtins.str | None = ..., - playout_id: _builtins.str | None = ..., - power_efficient_decoder: _builtins.bool | None = ..., - frames_assembled_from_multiple_packets: _builtins.int | None = ..., - total_assembly_time: _builtins.float | None = ..., - retransmitted_packets_received: _builtins.int | None = ..., - retransmitted_bytes_received: _builtins.int | None = ..., - rtx_ssrc: _builtins.int | None = ..., - fec_ssrc: _builtins.int | None = ..., + track_identifier: builtins.str | None = ..., + mid: builtins.str | None = ..., + remote_id: builtins.str | None = ..., + frames_decoded: builtins.int | None = ..., + key_frames_decoded: builtins.int | None = ..., + frames_rendered: builtins.int | None = ..., + frames_dropped: builtins.int | None = ..., + frame_width: builtins.int | None = ..., + frame_height: builtins.int | None = ..., + frames_per_second: builtins.float | None = ..., + qp_sum: builtins.int | None = ..., + total_decode_time: builtins.float | None = ..., + total_inter_frame_delay: builtins.float | None = ..., + total_squared_inter_frame_delay: builtins.float | None = ..., + pause_count: builtins.int | None = ..., + total_pause_duration: builtins.float | None = ..., + freeze_count: builtins.int | None = ..., + total_freeze_duration: builtins.float | None = ..., + last_packet_received_timestamp: builtins.float | None = ..., + header_bytes_received: builtins.int | None = ..., + packets_discarded: builtins.int | None = ..., + fec_bytes_received: builtins.int | None = ..., + fec_packets_received: builtins.int | None = ..., + fec_packets_discarded: builtins.int | None = ..., + bytes_received: builtins.int | None = ..., + nack_count: builtins.int | None = ..., + fir_count: builtins.int | None = ..., + pli_count: builtins.int | None = ..., + total_processing_delay: builtins.float | None = ..., + estimated_playout_timestamp: builtins.float | None = ..., + jitter_buffer_delay: builtins.float | None = ..., + jitter_buffer_target_delay: builtins.float | None = ..., + jitter_buffer_emitted_count: builtins.int | None = ..., + jitter_buffer_minimum_delay: builtins.float | None = ..., + total_samples_received: builtins.int | None = ..., + concealed_samples: builtins.int | None = ..., + silent_concealed_samples: builtins.int | None = ..., + concealment_events: builtins.int | None = ..., + inserted_samples_for_deceleration: builtins.int | None = ..., + removed_samples_for_acceleration: builtins.int | None = ..., + audio_level: builtins.float | None = ..., + total_audio_energy: builtins.float | None = ..., + total_samples_duration: builtins.float | None = ..., + frames_received: builtins.int | None = ..., + decoder_implementation: builtins.str | None = ..., + playout_id: builtins.str | None = ..., + power_efficient_decoder: builtins.bool | None = ..., + frames_assembled_from_multiple_packets: builtins.int | None = ..., + total_assembly_time: builtins.float | None = ..., + retransmitted_packets_received: builtins.int | None = ..., + retransmitted_bytes_received: builtins.int | None = ..., + rtx_ssrc: builtins.int | None = ..., + fec_ssrc: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["audio_level", b"audio_level", "bytes_received", b"bytes_received", "concealed_samples", b"concealed_samples", "concealment_events", b"concealment_events", "decoder_implementation", b"decoder_implementation", "estimated_playout_timestamp", b"estimated_playout_timestamp", "fec_bytes_received", b"fec_bytes_received", "fec_packets_discarded", b"fec_packets_discarded", "fec_packets_received", b"fec_packets_received", "fec_ssrc", b"fec_ssrc", "fir_count", b"fir_count", "frame_height", b"frame_height", "frame_width", b"frame_width", "frames_assembled_from_multiple_packets", b"frames_assembled_from_multiple_packets", "frames_decoded", b"frames_decoded", "frames_dropped", b"frames_dropped", "frames_per_second", b"frames_per_second", "frames_received", b"frames_received", "frames_rendered", b"frames_rendered", "freeze_count", b"freeze_count", "header_bytes_received", b"header_bytes_received", "inserted_samples_for_deceleration", b"inserted_samples_for_deceleration", "jitter_buffer_delay", b"jitter_buffer_delay", "jitter_buffer_emitted_count", b"jitter_buffer_emitted_count", "jitter_buffer_minimum_delay", b"jitter_buffer_minimum_delay", "jitter_buffer_target_delay", b"jitter_buffer_target_delay", "key_frames_decoded", b"key_frames_decoded", "last_packet_received_timestamp", b"last_packet_received_timestamp", "mid", b"mid", "nack_count", b"nack_count", "packets_discarded", b"packets_discarded", "pause_count", b"pause_count", "playout_id", b"playout_id", "pli_count", b"pli_count", "power_efficient_decoder", b"power_efficient_decoder", "qp_sum", b"qp_sum", "remote_id", b"remote_id", "removed_samples_for_acceleration", b"removed_samples_for_acceleration", "retransmitted_bytes_received", b"retransmitted_bytes_received", "retransmitted_packets_received", b"retransmitted_packets_received", "rtx_ssrc", b"rtx_ssrc", "silent_concealed_samples", b"silent_concealed_samples", "total_assembly_time", b"total_assembly_time", "total_audio_energy", b"total_audio_energy", "total_decode_time", b"total_decode_time", "total_freeze_duration", b"total_freeze_duration", "total_inter_frame_delay", b"total_inter_frame_delay", "total_pause_duration", b"total_pause_duration", "total_processing_delay", b"total_processing_delay", "total_samples_duration", b"total_samples_duration", "total_samples_received", b"total_samples_received", "total_squared_inter_frame_delay", b"total_squared_inter_frame_delay", "track_identifier", b"track_identifier"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["audio_level", b"audio_level", "bytes_received", b"bytes_received", "concealed_samples", b"concealed_samples", "concealment_events", b"concealment_events", "decoder_implementation", b"decoder_implementation", "estimated_playout_timestamp", b"estimated_playout_timestamp", "fec_bytes_received", b"fec_bytes_received", "fec_packets_discarded", b"fec_packets_discarded", "fec_packets_received", b"fec_packets_received", "fec_ssrc", b"fec_ssrc", "fir_count", b"fir_count", "frame_height", b"frame_height", "frame_width", b"frame_width", "frames_assembled_from_multiple_packets", b"frames_assembled_from_multiple_packets", "frames_decoded", b"frames_decoded", "frames_dropped", b"frames_dropped", "frames_per_second", b"frames_per_second", "frames_received", b"frames_received", "frames_rendered", b"frames_rendered", "freeze_count", b"freeze_count", "header_bytes_received", b"header_bytes_received", "inserted_samples_for_deceleration", b"inserted_samples_for_deceleration", "jitter_buffer_delay", b"jitter_buffer_delay", "jitter_buffer_emitted_count", b"jitter_buffer_emitted_count", "jitter_buffer_minimum_delay", b"jitter_buffer_minimum_delay", "jitter_buffer_target_delay", b"jitter_buffer_target_delay", "key_frames_decoded", b"key_frames_decoded", "last_packet_received_timestamp", b"last_packet_received_timestamp", "mid", b"mid", "nack_count", b"nack_count", "packets_discarded", b"packets_discarded", "pause_count", b"pause_count", "playout_id", b"playout_id", "pli_count", b"pli_count", "power_efficient_decoder", b"power_efficient_decoder", "qp_sum", b"qp_sum", "remote_id", b"remote_id", "removed_samples_for_acceleration", b"removed_samples_for_acceleration", "retransmitted_bytes_received", b"retransmitted_bytes_received", "retransmitted_packets_received", b"retransmitted_packets_received", "rtx_ssrc", b"rtx_ssrc", "silent_concealed_samples", b"silent_concealed_samples", "total_assembly_time", b"total_assembly_time", "total_audio_energy", b"total_audio_energy", "total_decode_time", b"total_decode_time", "total_freeze_duration", b"total_freeze_duration", "total_inter_frame_delay", b"total_inter_frame_delay", "total_pause_duration", b"total_pause_duration", "total_processing_delay", b"total_processing_delay", "total_samples_duration", b"total_samples_duration", "total_samples_received", b"total_samples_received", "total_squared_inter_frame_delay", b"total_squared_inter_frame_delay", "track_identifier", b"track_identifier"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___InboundRtpStreamStats: _TypeAlias = InboundRtpStreamStats # noqa: Y015 - -@_typing.final -class SentRtpStreamStats(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - PACKETS_SENT_FIELD_NUMBER: _builtins.int - BYTES_SENT_FIELD_NUMBER: _builtins.int - packets_sent: _builtins.int - bytes_sent: _builtins.int + def HasField(self, field_name: typing.Literal["audio_level", b"audio_level", "bytes_received", b"bytes_received", "concealed_samples", b"concealed_samples", "concealment_events", b"concealment_events", "decoder_implementation", b"decoder_implementation", "estimated_playout_timestamp", b"estimated_playout_timestamp", "fec_bytes_received", b"fec_bytes_received", "fec_packets_discarded", b"fec_packets_discarded", "fec_packets_received", b"fec_packets_received", "fec_ssrc", b"fec_ssrc", "fir_count", b"fir_count", "frame_height", b"frame_height", "frame_width", b"frame_width", "frames_assembled_from_multiple_packets", b"frames_assembled_from_multiple_packets", "frames_decoded", b"frames_decoded", "frames_dropped", b"frames_dropped", "frames_per_second", b"frames_per_second", "frames_received", b"frames_received", "frames_rendered", b"frames_rendered", "freeze_count", b"freeze_count", "header_bytes_received", b"header_bytes_received", "inserted_samples_for_deceleration", b"inserted_samples_for_deceleration", "jitter_buffer_delay", b"jitter_buffer_delay", "jitter_buffer_emitted_count", b"jitter_buffer_emitted_count", "jitter_buffer_minimum_delay", b"jitter_buffer_minimum_delay", "jitter_buffer_target_delay", b"jitter_buffer_target_delay", "key_frames_decoded", b"key_frames_decoded", "last_packet_received_timestamp", b"last_packet_received_timestamp", "mid", b"mid", "nack_count", b"nack_count", "packets_discarded", b"packets_discarded", "pause_count", b"pause_count", "playout_id", b"playout_id", "pli_count", b"pli_count", "power_efficient_decoder", b"power_efficient_decoder", "qp_sum", b"qp_sum", "remote_id", b"remote_id", "removed_samples_for_acceleration", b"removed_samples_for_acceleration", "retransmitted_bytes_received", b"retransmitted_bytes_received", "retransmitted_packets_received", b"retransmitted_packets_received", "rtx_ssrc", b"rtx_ssrc", "silent_concealed_samples", b"silent_concealed_samples", "total_assembly_time", b"total_assembly_time", "total_audio_energy", b"total_audio_energy", "total_decode_time", b"total_decode_time", "total_freeze_duration", b"total_freeze_duration", "total_inter_frame_delay", b"total_inter_frame_delay", "total_pause_duration", b"total_pause_duration", "total_processing_delay", b"total_processing_delay", "total_samples_duration", b"total_samples_duration", "total_samples_received", b"total_samples_received", "total_squared_inter_frame_delay", b"total_squared_inter_frame_delay", "track_identifier", b"track_identifier"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["audio_level", b"audio_level", "bytes_received", b"bytes_received", "concealed_samples", b"concealed_samples", "concealment_events", b"concealment_events", "decoder_implementation", b"decoder_implementation", "estimated_playout_timestamp", b"estimated_playout_timestamp", "fec_bytes_received", b"fec_bytes_received", "fec_packets_discarded", b"fec_packets_discarded", "fec_packets_received", b"fec_packets_received", "fec_ssrc", b"fec_ssrc", "fir_count", b"fir_count", "frame_height", b"frame_height", "frame_width", b"frame_width", "frames_assembled_from_multiple_packets", b"frames_assembled_from_multiple_packets", "frames_decoded", b"frames_decoded", "frames_dropped", b"frames_dropped", "frames_per_second", b"frames_per_second", "frames_received", b"frames_received", "frames_rendered", b"frames_rendered", "freeze_count", b"freeze_count", "header_bytes_received", b"header_bytes_received", "inserted_samples_for_deceleration", b"inserted_samples_for_deceleration", "jitter_buffer_delay", b"jitter_buffer_delay", "jitter_buffer_emitted_count", b"jitter_buffer_emitted_count", "jitter_buffer_minimum_delay", b"jitter_buffer_minimum_delay", "jitter_buffer_target_delay", b"jitter_buffer_target_delay", "key_frames_decoded", b"key_frames_decoded", "last_packet_received_timestamp", b"last_packet_received_timestamp", "mid", b"mid", "nack_count", b"nack_count", "packets_discarded", b"packets_discarded", "pause_count", b"pause_count", "playout_id", b"playout_id", "pli_count", b"pli_count", "power_efficient_decoder", b"power_efficient_decoder", "qp_sum", b"qp_sum", "remote_id", b"remote_id", "removed_samples_for_acceleration", b"removed_samples_for_acceleration", "retransmitted_bytes_received", b"retransmitted_bytes_received", "retransmitted_packets_received", b"retransmitted_packets_received", "rtx_ssrc", b"rtx_ssrc", "silent_concealed_samples", b"silent_concealed_samples", "total_assembly_time", b"total_assembly_time", "total_audio_energy", b"total_audio_energy", "total_decode_time", b"total_decode_time", "total_freeze_duration", b"total_freeze_duration", "total_inter_frame_delay", b"total_inter_frame_delay", "total_pause_duration", b"total_pause_duration", "total_processing_delay", b"total_processing_delay", "total_samples_duration", b"total_samples_duration", "total_samples_received", b"total_samples_received", "total_squared_inter_frame_delay", b"total_squared_inter_frame_delay", "track_identifier", b"track_identifier"]) -> None: ... + +global___InboundRtpStreamStats = InboundRtpStreamStats + +@typing.final +class SentRtpStreamStats(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PACKETS_SENT_FIELD_NUMBER: builtins.int + BYTES_SENT_FIELD_NUMBER: builtins.int + packets_sent: builtins.int + bytes_sent: builtins.int def __init__( self, *, - packets_sent: _builtins.int | None = ..., - bytes_sent: _builtins.int | None = ..., + packets_sent: builtins.int | None = ..., + bytes_sent: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["bytes_sent", b"bytes_sent", "packets_sent", b"packets_sent"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["bytes_sent", b"bytes_sent", "packets_sent", b"packets_sent"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___SentRtpStreamStats: _TypeAlias = SentRtpStreamStats # noqa: Y015 - -@_typing.final -class OutboundRtpStreamStats(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - @_typing.final - class QualityLimitationDurationsEntry(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - KEY_FIELD_NUMBER: _builtins.int - VALUE_FIELD_NUMBER: _builtins.int - key: _builtins.str - value: _builtins.float + def HasField(self, field_name: typing.Literal["bytes_sent", b"bytes_sent", "packets_sent", b"packets_sent"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["bytes_sent", b"bytes_sent", "packets_sent", b"packets_sent"]) -> None: ... + +global___SentRtpStreamStats = SentRtpStreamStats + +@typing.final +class OutboundRtpStreamStats(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class QualityLimitationDurationsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + value: builtins.float def __init__( self, *, - key: _builtins.str | None = ..., - value: _builtins.float | None = ..., + key: builtins.str | None = ..., + value: builtins.float | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - - MID_FIELD_NUMBER: _builtins.int - MEDIA_SOURCE_ID_FIELD_NUMBER: _builtins.int - REMOTE_ID_FIELD_NUMBER: _builtins.int - RID_FIELD_NUMBER: _builtins.int - HEADER_BYTES_SENT_FIELD_NUMBER: _builtins.int - RETRANSMITTED_PACKETS_SENT_FIELD_NUMBER: _builtins.int - RETRANSMITTED_BYTES_SENT_FIELD_NUMBER: _builtins.int - RTX_SSRC_FIELD_NUMBER: _builtins.int - TARGET_BITRATE_FIELD_NUMBER: _builtins.int - TOTAL_ENCODED_BYTES_TARGET_FIELD_NUMBER: _builtins.int - FRAME_WIDTH_FIELD_NUMBER: _builtins.int - FRAME_HEIGHT_FIELD_NUMBER: _builtins.int - FRAMES_PER_SECOND_FIELD_NUMBER: _builtins.int - FRAMES_SENT_FIELD_NUMBER: _builtins.int - HUGE_FRAMES_SENT_FIELD_NUMBER: _builtins.int - FRAMES_ENCODED_FIELD_NUMBER: _builtins.int - KEY_FRAMES_ENCODED_FIELD_NUMBER: _builtins.int - QP_SUM_FIELD_NUMBER: _builtins.int - TOTAL_ENCODE_TIME_FIELD_NUMBER: _builtins.int - TOTAL_PACKET_SEND_DELAY_FIELD_NUMBER: _builtins.int - QUALITY_LIMITATION_REASON_FIELD_NUMBER: _builtins.int - QUALITY_LIMITATION_DURATIONS_FIELD_NUMBER: _builtins.int - QUALITY_LIMITATION_RESOLUTION_CHANGES_FIELD_NUMBER: _builtins.int - NACK_COUNT_FIELD_NUMBER: _builtins.int - FIR_COUNT_FIELD_NUMBER: _builtins.int - PLI_COUNT_FIELD_NUMBER: _builtins.int - ENCODER_IMPLEMENTATION_FIELD_NUMBER: _builtins.int - POWER_EFFICIENT_ENCODER_FIELD_NUMBER: _builtins.int - ACTIVE_FIELD_NUMBER: _builtins.int - SCALABILITY_MODE_FIELD_NUMBER: _builtins.int - mid: _builtins.str - media_source_id: _builtins.str - remote_id: _builtins.str - rid: _builtins.str - header_bytes_sent: _builtins.int - retransmitted_packets_sent: _builtins.int - retransmitted_bytes_sent: _builtins.int - rtx_ssrc: _builtins.int - target_bitrate: _builtins.float - total_encoded_bytes_target: _builtins.int - frame_width: _builtins.int - frame_height: _builtins.int - frames_per_second: _builtins.float - frames_sent: _builtins.int - huge_frames_sent: _builtins.int - frames_encoded: _builtins.int - key_frames_encoded: _builtins.int - qp_sum: _builtins.int - total_encode_time: _builtins.float - total_packet_send_delay: _builtins.float - quality_limitation_reason: Global___QualityLimitationReason.ValueType - quality_limitation_resolution_changes: _builtins.int - nack_count: _builtins.int - fir_count: _builtins.int - pli_count: _builtins.int - encoder_implementation: _builtins.str - power_efficient_encoder: _builtins.bool - active: _builtins.bool - scalability_mode: _builtins.str - @_builtins.property - def quality_limitation_durations(self) -> _containers.ScalarMap[_builtins.str, _builtins.float]: ... + def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + + MID_FIELD_NUMBER: builtins.int + MEDIA_SOURCE_ID_FIELD_NUMBER: builtins.int + REMOTE_ID_FIELD_NUMBER: builtins.int + RID_FIELD_NUMBER: builtins.int + HEADER_BYTES_SENT_FIELD_NUMBER: builtins.int + RETRANSMITTED_PACKETS_SENT_FIELD_NUMBER: builtins.int + RETRANSMITTED_BYTES_SENT_FIELD_NUMBER: builtins.int + RTX_SSRC_FIELD_NUMBER: builtins.int + TARGET_BITRATE_FIELD_NUMBER: builtins.int + TOTAL_ENCODED_BYTES_TARGET_FIELD_NUMBER: builtins.int + FRAME_WIDTH_FIELD_NUMBER: builtins.int + FRAME_HEIGHT_FIELD_NUMBER: builtins.int + FRAMES_PER_SECOND_FIELD_NUMBER: builtins.int + FRAMES_SENT_FIELD_NUMBER: builtins.int + HUGE_FRAMES_SENT_FIELD_NUMBER: builtins.int + FRAMES_ENCODED_FIELD_NUMBER: builtins.int + KEY_FRAMES_ENCODED_FIELD_NUMBER: builtins.int + QP_SUM_FIELD_NUMBER: builtins.int + TOTAL_ENCODE_TIME_FIELD_NUMBER: builtins.int + TOTAL_PACKET_SEND_DELAY_FIELD_NUMBER: builtins.int + QUALITY_LIMITATION_REASON_FIELD_NUMBER: builtins.int + QUALITY_LIMITATION_DURATIONS_FIELD_NUMBER: builtins.int + QUALITY_LIMITATION_RESOLUTION_CHANGES_FIELD_NUMBER: builtins.int + NACK_COUNT_FIELD_NUMBER: builtins.int + FIR_COUNT_FIELD_NUMBER: builtins.int + PLI_COUNT_FIELD_NUMBER: builtins.int + ENCODER_IMPLEMENTATION_FIELD_NUMBER: builtins.int + POWER_EFFICIENT_ENCODER_FIELD_NUMBER: builtins.int + ACTIVE_FIELD_NUMBER: builtins.int + SCALABILITY_MODE_FIELD_NUMBER: builtins.int + mid: builtins.str + media_source_id: builtins.str + remote_id: builtins.str + rid: builtins.str + header_bytes_sent: builtins.int + retransmitted_packets_sent: builtins.int + retransmitted_bytes_sent: builtins.int + rtx_ssrc: builtins.int + target_bitrate: builtins.float + total_encoded_bytes_target: builtins.int + frame_width: builtins.int + frame_height: builtins.int + frames_per_second: builtins.float + frames_sent: builtins.int + huge_frames_sent: builtins.int + frames_encoded: builtins.int + key_frames_encoded: builtins.int + qp_sum: builtins.int + total_encode_time: builtins.float + total_packet_send_delay: builtins.float + quality_limitation_reason: global___QualityLimitationReason.ValueType + quality_limitation_resolution_changes: builtins.int + nack_count: builtins.int + fir_count: builtins.int + pli_count: builtins.int + encoder_implementation: builtins.str + power_efficient_encoder: builtins.bool + active: builtins.bool + scalability_mode: builtins.str + @property + def quality_limitation_durations(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.float]: ... def __init__( self, *, - mid: _builtins.str | None = ..., - media_source_id: _builtins.str | None = ..., - remote_id: _builtins.str | None = ..., - rid: _builtins.str | None = ..., - header_bytes_sent: _builtins.int | None = ..., - retransmitted_packets_sent: _builtins.int | None = ..., - retransmitted_bytes_sent: _builtins.int | None = ..., - rtx_ssrc: _builtins.int | None = ..., - target_bitrate: _builtins.float | None = ..., - total_encoded_bytes_target: _builtins.int | None = ..., - frame_width: _builtins.int | None = ..., - frame_height: _builtins.int | None = ..., - frames_per_second: _builtins.float | None = ..., - frames_sent: _builtins.int | None = ..., - huge_frames_sent: _builtins.int | None = ..., - frames_encoded: _builtins.int | None = ..., - key_frames_encoded: _builtins.int | None = ..., - qp_sum: _builtins.int | None = ..., - total_encode_time: _builtins.float | None = ..., - total_packet_send_delay: _builtins.float | None = ..., - quality_limitation_reason: Global___QualityLimitationReason.ValueType | None = ..., - quality_limitation_durations: _abc.Mapping[_builtins.str, _builtins.float] | None = ..., - quality_limitation_resolution_changes: _builtins.int | None = ..., - nack_count: _builtins.int | None = ..., - fir_count: _builtins.int | None = ..., - pli_count: _builtins.int | None = ..., - encoder_implementation: _builtins.str | None = ..., - power_efficient_encoder: _builtins.bool | None = ..., - active: _builtins.bool | None = ..., - scalability_mode: _builtins.str | None = ..., + mid: builtins.str | None = ..., + media_source_id: builtins.str | None = ..., + remote_id: builtins.str | None = ..., + rid: builtins.str | None = ..., + header_bytes_sent: builtins.int | None = ..., + retransmitted_packets_sent: builtins.int | None = ..., + retransmitted_bytes_sent: builtins.int | None = ..., + rtx_ssrc: builtins.int | None = ..., + target_bitrate: builtins.float | None = ..., + total_encoded_bytes_target: builtins.int | None = ..., + frame_width: builtins.int | None = ..., + frame_height: builtins.int | None = ..., + frames_per_second: builtins.float | None = ..., + frames_sent: builtins.int | None = ..., + huge_frames_sent: builtins.int | None = ..., + frames_encoded: builtins.int | None = ..., + key_frames_encoded: builtins.int | None = ..., + qp_sum: builtins.int | None = ..., + total_encode_time: builtins.float | None = ..., + total_packet_send_delay: builtins.float | None = ..., + quality_limitation_reason: global___QualityLimitationReason.ValueType | None = ..., + quality_limitation_durations: collections.abc.Mapping[builtins.str, builtins.float] | None = ..., + quality_limitation_resolution_changes: builtins.int | None = ..., + nack_count: builtins.int | None = ..., + fir_count: builtins.int | None = ..., + pli_count: builtins.int | None = ..., + encoder_implementation: builtins.str | None = ..., + power_efficient_encoder: builtins.bool | None = ..., + active: builtins.bool | None = ..., + scalability_mode: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["active", b"active", "encoder_implementation", b"encoder_implementation", "fir_count", b"fir_count", "frame_height", b"frame_height", "frame_width", b"frame_width", "frames_encoded", b"frames_encoded", "frames_per_second", b"frames_per_second", "frames_sent", b"frames_sent", "header_bytes_sent", b"header_bytes_sent", "huge_frames_sent", b"huge_frames_sent", "key_frames_encoded", b"key_frames_encoded", "media_source_id", b"media_source_id", "mid", b"mid", "nack_count", b"nack_count", "pli_count", b"pli_count", "power_efficient_encoder", b"power_efficient_encoder", "qp_sum", b"qp_sum", "quality_limitation_reason", b"quality_limitation_reason", "quality_limitation_resolution_changes", b"quality_limitation_resolution_changes", "remote_id", b"remote_id", "retransmitted_bytes_sent", b"retransmitted_bytes_sent", "retransmitted_packets_sent", b"retransmitted_packets_sent", "rid", b"rid", "rtx_ssrc", b"rtx_ssrc", "scalability_mode", b"scalability_mode", "target_bitrate", b"target_bitrate", "total_encode_time", b"total_encode_time", "total_encoded_bytes_target", b"total_encoded_bytes_target", "total_packet_send_delay", b"total_packet_send_delay"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["active", b"active", "encoder_implementation", b"encoder_implementation", "fir_count", b"fir_count", "frame_height", b"frame_height", "frame_width", b"frame_width", "frames_encoded", b"frames_encoded", "frames_per_second", b"frames_per_second", "frames_sent", b"frames_sent", "header_bytes_sent", b"header_bytes_sent", "huge_frames_sent", b"huge_frames_sent", "key_frames_encoded", b"key_frames_encoded", "media_source_id", b"media_source_id", "mid", b"mid", "nack_count", b"nack_count", "pli_count", b"pli_count", "power_efficient_encoder", b"power_efficient_encoder", "qp_sum", b"qp_sum", "quality_limitation_durations", b"quality_limitation_durations", "quality_limitation_reason", b"quality_limitation_reason", "quality_limitation_resolution_changes", b"quality_limitation_resolution_changes", "remote_id", b"remote_id", "retransmitted_bytes_sent", b"retransmitted_bytes_sent", "retransmitted_packets_sent", b"retransmitted_packets_sent", "rid", b"rid", "rtx_ssrc", b"rtx_ssrc", "scalability_mode", b"scalability_mode", "target_bitrate", b"target_bitrate", "total_encode_time", b"total_encode_time", "total_encoded_bytes_target", b"total_encoded_bytes_target", "total_packet_send_delay", b"total_packet_send_delay"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___OutboundRtpStreamStats: _TypeAlias = OutboundRtpStreamStats # noqa: Y015 - -@_typing.final -class RemoteInboundRtpStreamStats(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - LOCAL_ID_FIELD_NUMBER: _builtins.int - ROUND_TRIP_TIME_FIELD_NUMBER: _builtins.int - TOTAL_ROUND_TRIP_TIME_FIELD_NUMBER: _builtins.int - FRACTION_LOST_FIELD_NUMBER: _builtins.int - ROUND_TRIP_TIME_MEASUREMENTS_FIELD_NUMBER: _builtins.int - local_id: _builtins.str - round_trip_time: _builtins.float - total_round_trip_time: _builtins.float - fraction_lost: _builtins.float - round_trip_time_measurements: _builtins.int + def HasField(self, field_name: typing.Literal["active", b"active", "encoder_implementation", b"encoder_implementation", "fir_count", b"fir_count", "frame_height", b"frame_height", "frame_width", b"frame_width", "frames_encoded", b"frames_encoded", "frames_per_second", b"frames_per_second", "frames_sent", b"frames_sent", "header_bytes_sent", b"header_bytes_sent", "huge_frames_sent", b"huge_frames_sent", "key_frames_encoded", b"key_frames_encoded", "media_source_id", b"media_source_id", "mid", b"mid", "nack_count", b"nack_count", "pli_count", b"pli_count", "power_efficient_encoder", b"power_efficient_encoder", "qp_sum", b"qp_sum", "quality_limitation_reason", b"quality_limitation_reason", "quality_limitation_resolution_changes", b"quality_limitation_resolution_changes", "remote_id", b"remote_id", "retransmitted_bytes_sent", b"retransmitted_bytes_sent", "retransmitted_packets_sent", b"retransmitted_packets_sent", "rid", b"rid", "rtx_ssrc", b"rtx_ssrc", "scalability_mode", b"scalability_mode", "target_bitrate", b"target_bitrate", "total_encode_time", b"total_encode_time", "total_encoded_bytes_target", b"total_encoded_bytes_target", "total_packet_send_delay", b"total_packet_send_delay"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["active", b"active", "encoder_implementation", b"encoder_implementation", "fir_count", b"fir_count", "frame_height", b"frame_height", "frame_width", b"frame_width", "frames_encoded", b"frames_encoded", "frames_per_second", b"frames_per_second", "frames_sent", b"frames_sent", "header_bytes_sent", b"header_bytes_sent", "huge_frames_sent", b"huge_frames_sent", "key_frames_encoded", b"key_frames_encoded", "media_source_id", b"media_source_id", "mid", b"mid", "nack_count", b"nack_count", "pli_count", b"pli_count", "power_efficient_encoder", b"power_efficient_encoder", "qp_sum", b"qp_sum", "quality_limitation_durations", b"quality_limitation_durations", "quality_limitation_reason", b"quality_limitation_reason", "quality_limitation_resolution_changes", b"quality_limitation_resolution_changes", "remote_id", b"remote_id", "retransmitted_bytes_sent", b"retransmitted_bytes_sent", "retransmitted_packets_sent", b"retransmitted_packets_sent", "rid", b"rid", "rtx_ssrc", b"rtx_ssrc", "scalability_mode", b"scalability_mode", "target_bitrate", b"target_bitrate", "total_encode_time", b"total_encode_time", "total_encoded_bytes_target", b"total_encoded_bytes_target", "total_packet_send_delay", b"total_packet_send_delay"]) -> None: ... + +global___OutboundRtpStreamStats = OutboundRtpStreamStats + +@typing.final +class RemoteInboundRtpStreamStats(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + LOCAL_ID_FIELD_NUMBER: builtins.int + ROUND_TRIP_TIME_FIELD_NUMBER: builtins.int + TOTAL_ROUND_TRIP_TIME_FIELD_NUMBER: builtins.int + FRACTION_LOST_FIELD_NUMBER: builtins.int + ROUND_TRIP_TIME_MEASUREMENTS_FIELD_NUMBER: builtins.int + local_id: builtins.str + round_trip_time: builtins.float + total_round_trip_time: builtins.float + fraction_lost: builtins.float + round_trip_time_measurements: builtins.int def __init__( self, *, - local_id: _builtins.str | None = ..., - round_trip_time: _builtins.float | None = ..., - total_round_trip_time: _builtins.float | None = ..., - fraction_lost: _builtins.float | None = ..., - round_trip_time_measurements: _builtins.int | None = ..., + local_id: builtins.str | None = ..., + round_trip_time: builtins.float | None = ..., + total_round_trip_time: builtins.float | None = ..., + fraction_lost: builtins.float | None = ..., + round_trip_time_measurements: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["fraction_lost", b"fraction_lost", "local_id", b"local_id", "round_trip_time", b"round_trip_time", "round_trip_time_measurements", b"round_trip_time_measurements", "total_round_trip_time", b"total_round_trip_time"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["fraction_lost", b"fraction_lost", "local_id", b"local_id", "round_trip_time", b"round_trip_time", "round_trip_time_measurements", b"round_trip_time_measurements", "total_round_trip_time", b"total_round_trip_time"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___RemoteInboundRtpStreamStats: _TypeAlias = RemoteInboundRtpStreamStats # noqa: Y015 - -@_typing.final -class RemoteOutboundRtpStreamStats(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - LOCAL_ID_FIELD_NUMBER: _builtins.int - REMOTE_TIMESTAMP_FIELD_NUMBER: _builtins.int - REPORTS_SENT_FIELD_NUMBER: _builtins.int - ROUND_TRIP_TIME_FIELD_NUMBER: _builtins.int - TOTAL_ROUND_TRIP_TIME_FIELD_NUMBER: _builtins.int - ROUND_TRIP_TIME_MEASUREMENTS_FIELD_NUMBER: _builtins.int - local_id: _builtins.str - remote_timestamp: _builtins.float - reports_sent: _builtins.int - round_trip_time: _builtins.float - total_round_trip_time: _builtins.float - round_trip_time_measurements: _builtins.int + def HasField(self, field_name: typing.Literal["fraction_lost", b"fraction_lost", "local_id", b"local_id", "round_trip_time", b"round_trip_time", "round_trip_time_measurements", b"round_trip_time_measurements", "total_round_trip_time", b"total_round_trip_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["fraction_lost", b"fraction_lost", "local_id", b"local_id", "round_trip_time", b"round_trip_time", "round_trip_time_measurements", b"round_trip_time_measurements", "total_round_trip_time", b"total_round_trip_time"]) -> None: ... + +global___RemoteInboundRtpStreamStats = RemoteInboundRtpStreamStats + +@typing.final +class RemoteOutboundRtpStreamStats(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + LOCAL_ID_FIELD_NUMBER: builtins.int + REMOTE_TIMESTAMP_FIELD_NUMBER: builtins.int + REPORTS_SENT_FIELD_NUMBER: builtins.int + ROUND_TRIP_TIME_FIELD_NUMBER: builtins.int + TOTAL_ROUND_TRIP_TIME_FIELD_NUMBER: builtins.int + ROUND_TRIP_TIME_MEASUREMENTS_FIELD_NUMBER: builtins.int + local_id: builtins.str + remote_timestamp: builtins.float + reports_sent: builtins.int + round_trip_time: builtins.float + total_round_trip_time: builtins.float + round_trip_time_measurements: builtins.int def __init__( self, *, - local_id: _builtins.str | None = ..., - remote_timestamp: _builtins.float | None = ..., - reports_sent: _builtins.int | None = ..., - round_trip_time: _builtins.float | None = ..., - total_round_trip_time: _builtins.float | None = ..., - round_trip_time_measurements: _builtins.int | None = ..., + local_id: builtins.str | None = ..., + remote_timestamp: builtins.float | None = ..., + reports_sent: builtins.int | None = ..., + round_trip_time: builtins.float | None = ..., + total_round_trip_time: builtins.float | None = ..., + round_trip_time_measurements: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["local_id", b"local_id", "remote_timestamp", b"remote_timestamp", "reports_sent", b"reports_sent", "round_trip_time", b"round_trip_time", "round_trip_time_measurements", b"round_trip_time_measurements", "total_round_trip_time", b"total_round_trip_time"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["local_id", b"local_id", "remote_timestamp", b"remote_timestamp", "reports_sent", b"reports_sent", "round_trip_time", b"round_trip_time", "round_trip_time_measurements", b"round_trip_time_measurements", "total_round_trip_time", b"total_round_trip_time"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___RemoteOutboundRtpStreamStats: _TypeAlias = RemoteOutboundRtpStreamStats # noqa: Y015 - -@_typing.final -class MediaSourceStats(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - TRACK_IDENTIFIER_FIELD_NUMBER: _builtins.int - KIND_FIELD_NUMBER: _builtins.int - track_identifier: _builtins.str - kind: _builtins.str + def HasField(self, field_name: typing.Literal["local_id", b"local_id", "remote_timestamp", b"remote_timestamp", "reports_sent", b"reports_sent", "round_trip_time", b"round_trip_time", "round_trip_time_measurements", b"round_trip_time_measurements", "total_round_trip_time", b"total_round_trip_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["local_id", b"local_id", "remote_timestamp", b"remote_timestamp", "reports_sent", b"reports_sent", "round_trip_time", b"round_trip_time", "round_trip_time_measurements", b"round_trip_time_measurements", "total_round_trip_time", b"total_round_trip_time"]) -> None: ... + +global___RemoteOutboundRtpStreamStats = RemoteOutboundRtpStreamStats + +@typing.final +class MediaSourceStats(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TRACK_IDENTIFIER_FIELD_NUMBER: builtins.int + KIND_FIELD_NUMBER: builtins.int + track_identifier: builtins.str + kind: builtins.str def __init__( self, *, - track_identifier: _builtins.str | None = ..., - kind: _builtins.str | None = ..., + track_identifier: builtins.str | None = ..., + kind: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "track_identifier", b"track_identifier"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "track_identifier", b"track_identifier"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___MediaSourceStats: _TypeAlias = MediaSourceStats # noqa: Y015 - -@_typing.final -class AudioSourceStats(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - AUDIO_LEVEL_FIELD_NUMBER: _builtins.int - TOTAL_AUDIO_ENERGY_FIELD_NUMBER: _builtins.int - TOTAL_SAMPLES_DURATION_FIELD_NUMBER: _builtins.int - ECHO_RETURN_LOSS_FIELD_NUMBER: _builtins.int - ECHO_RETURN_LOSS_ENHANCEMENT_FIELD_NUMBER: _builtins.int - DROPPED_SAMPLES_DURATION_FIELD_NUMBER: _builtins.int - DROPPED_SAMPLES_EVENTS_FIELD_NUMBER: _builtins.int - TOTAL_CAPTURE_DELAY_FIELD_NUMBER: _builtins.int - TOTAL_SAMPLES_CAPTURED_FIELD_NUMBER: _builtins.int - audio_level: _builtins.float - total_audio_energy: _builtins.float - total_samples_duration: _builtins.float - echo_return_loss: _builtins.float - echo_return_loss_enhancement: _builtins.float - dropped_samples_duration: _builtins.float - dropped_samples_events: _builtins.int - total_capture_delay: _builtins.float - total_samples_captured: _builtins.int + def HasField(self, field_name: typing.Literal["kind", b"kind", "track_identifier", b"track_identifier"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["kind", b"kind", "track_identifier", b"track_identifier"]) -> None: ... + +global___MediaSourceStats = MediaSourceStats + +@typing.final +class AudioSourceStats(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AUDIO_LEVEL_FIELD_NUMBER: builtins.int + TOTAL_AUDIO_ENERGY_FIELD_NUMBER: builtins.int + TOTAL_SAMPLES_DURATION_FIELD_NUMBER: builtins.int + ECHO_RETURN_LOSS_FIELD_NUMBER: builtins.int + ECHO_RETURN_LOSS_ENHANCEMENT_FIELD_NUMBER: builtins.int + DROPPED_SAMPLES_DURATION_FIELD_NUMBER: builtins.int + DROPPED_SAMPLES_EVENTS_FIELD_NUMBER: builtins.int + TOTAL_CAPTURE_DELAY_FIELD_NUMBER: builtins.int + TOTAL_SAMPLES_CAPTURED_FIELD_NUMBER: builtins.int + audio_level: builtins.float + total_audio_energy: builtins.float + total_samples_duration: builtins.float + echo_return_loss: builtins.float + echo_return_loss_enhancement: builtins.float + dropped_samples_duration: builtins.float + dropped_samples_events: builtins.int + total_capture_delay: builtins.float + total_samples_captured: builtins.int def __init__( self, *, - audio_level: _builtins.float | None = ..., - total_audio_energy: _builtins.float | None = ..., - total_samples_duration: _builtins.float | None = ..., - echo_return_loss: _builtins.float | None = ..., - echo_return_loss_enhancement: _builtins.float | None = ..., - dropped_samples_duration: _builtins.float | None = ..., - dropped_samples_events: _builtins.int | None = ..., - total_capture_delay: _builtins.float | None = ..., - total_samples_captured: _builtins.int | None = ..., + audio_level: builtins.float | None = ..., + total_audio_energy: builtins.float | None = ..., + total_samples_duration: builtins.float | None = ..., + echo_return_loss: builtins.float | None = ..., + echo_return_loss_enhancement: builtins.float | None = ..., + dropped_samples_duration: builtins.float | None = ..., + dropped_samples_events: builtins.int | None = ..., + total_capture_delay: builtins.float | None = ..., + total_samples_captured: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["audio_level", b"audio_level", "dropped_samples_duration", b"dropped_samples_duration", "dropped_samples_events", b"dropped_samples_events", "echo_return_loss", b"echo_return_loss", "echo_return_loss_enhancement", b"echo_return_loss_enhancement", "total_audio_energy", b"total_audio_energy", "total_capture_delay", b"total_capture_delay", "total_samples_captured", b"total_samples_captured", "total_samples_duration", b"total_samples_duration"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["audio_level", b"audio_level", "dropped_samples_duration", b"dropped_samples_duration", "dropped_samples_events", b"dropped_samples_events", "echo_return_loss", b"echo_return_loss", "echo_return_loss_enhancement", b"echo_return_loss_enhancement", "total_audio_energy", b"total_audio_energy", "total_capture_delay", b"total_capture_delay", "total_samples_captured", b"total_samples_captured", "total_samples_duration", b"total_samples_duration"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___AudioSourceStats: _TypeAlias = AudioSourceStats # noqa: Y015 - -@_typing.final -class VideoSourceStats(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - WIDTH_FIELD_NUMBER: _builtins.int - HEIGHT_FIELD_NUMBER: _builtins.int - FRAMES_FIELD_NUMBER: _builtins.int - FRAMES_PER_SECOND_FIELD_NUMBER: _builtins.int - width: _builtins.int - height: _builtins.int - frames: _builtins.int - frames_per_second: _builtins.float + def HasField(self, field_name: typing.Literal["audio_level", b"audio_level", "dropped_samples_duration", b"dropped_samples_duration", "dropped_samples_events", b"dropped_samples_events", "echo_return_loss", b"echo_return_loss", "echo_return_loss_enhancement", b"echo_return_loss_enhancement", "total_audio_energy", b"total_audio_energy", "total_capture_delay", b"total_capture_delay", "total_samples_captured", b"total_samples_captured", "total_samples_duration", b"total_samples_duration"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["audio_level", b"audio_level", "dropped_samples_duration", b"dropped_samples_duration", "dropped_samples_events", b"dropped_samples_events", "echo_return_loss", b"echo_return_loss", "echo_return_loss_enhancement", b"echo_return_loss_enhancement", "total_audio_energy", b"total_audio_energy", "total_capture_delay", b"total_capture_delay", "total_samples_captured", b"total_samples_captured", "total_samples_duration", b"total_samples_duration"]) -> None: ... + +global___AudioSourceStats = AudioSourceStats + +@typing.final +class VideoSourceStats(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + WIDTH_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + FRAMES_FIELD_NUMBER: builtins.int + FRAMES_PER_SECOND_FIELD_NUMBER: builtins.int + width: builtins.int + height: builtins.int + frames: builtins.int + frames_per_second: builtins.float def __init__( self, *, - width: _builtins.int | None = ..., - height: _builtins.int | None = ..., - frames: _builtins.int | None = ..., - frames_per_second: _builtins.float | None = ..., + width: builtins.int | None = ..., + height: builtins.int | None = ..., + frames: builtins.int | None = ..., + frames_per_second: builtins.float | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["frames", b"frames", "frames_per_second", b"frames_per_second", "height", b"height", "width", b"width"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["frames", b"frames", "frames_per_second", b"frames_per_second", "height", b"height", "width", b"width"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___VideoSourceStats: _TypeAlias = VideoSourceStats # noqa: Y015 - -@_typing.final -class AudioPlayoutStats(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - KIND_FIELD_NUMBER: _builtins.int - SYNTHESIZED_SAMPLES_DURATION_FIELD_NUMBER: _builtins.int - SYNTHESIZED_SAMPLES_EVENTS_FIELD_NUMBER: _builtins.int - TOTAL_SAMPLES_DURATION_FIELD_NUMBER: _builtins.int - TOTAL_PLAYOUT_DELAY_FIELD_NUMBER: _builtins.int - TOTAL_SAMPLES_COUNT_FIELD_NUMBER: _builtins.int - kind: _builtins.str - synthesized_samples_duration: _builtins.float - synthesized_samples_events: _builtins.int - total_samples_duration: _builtins.float - total_playout_delay: _builtins.float - total_samples_count: _builtins.int + def HasField(self, field_name: typing.Literal["frames", b"frames", "frames_per_second", b"frames_per_second", "height", b"height", "width", b"width"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["frames", b"frames", "frames_per_second", b"frames_per_second", "height", b"height", "width", b"width"]) -> None: ... + +global___VideoSourceStats = VideoSourceStats + +@typing.final +class AudioPlayoutStats(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KIND_FIELD_NUMBER: builtins.int + SYNTHESIZED_SAMPLES_DURATION_FIELD_NUMBER: builtins.int + SYNTHESIZED_SAMPLES_EVENTS_FIELD_NUMBER: builtins.int + TOTAL_SAMPLES_DURATION_FIELD_NUMBER: builtins.int + TOTAL_PLAYOUT_DELAY_FIELD_NUMBER: builtins.int + TOTAL_SAMPLES_COUNT_FIELD_NUMBER: builtins.int + kind: builtins.str + synthesized_samples_duration: builtins.float + synthesized_samples_events: builtins.int + total_samples_duration: builtins.float + total_playout_delay: builtins.float + total_samples_count: builtins.int def __init__( self, *, - kind: _builtins.str | None = ..., - synthesized_samples_duration: _builtins.float | None = ..., - synthesized_samples_events: _builtins.int | None = ..., - total_samples_duration: _builtins.float | None = ..., - total_playout_delay: _builtins.float | None = ..., - total_samples_count: _builtins.int | None = ..., + kind: builtins.str | None = ..., + synthesized_samples_duration: builtins.float | None = ..., + synthesized_samples_events: builtins.int | None = ..., + total_samples_duration: builtins.float | None = ..., + total_playout_delay: builtins.float | None = ..., + total_samples_count: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "synthesized_samples_duration", b"synthesized_samples_duration", "synthesized_samples_events", b"synthesized_samples_events", "total_playout_delay", b"total_playout_delay", "total_samples_count", b"total_samples_count", "total_samples_duration", b"total_samples_duration"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "synthesized_samples_duration", b"synthesized_samples_duration", "synthesized_samples_events", b"synthesized_samples_events", "total_playout_delay", b"total_playout_delay", "total_samples_count", b"total_samples_count", "total_samples_duration", b"total_samples_duration"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___AudioPlayoutStats: _TypeAlias = AudioPlayoutStats # noqa: Y015 - -@_typing.final -class PeerConnectionStats(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - DATA_CHANNELS_OPENED_FIELD_NUMBER: _builtins.int - DATA_CHANNELS_CLOSED_FIELD_NUMBER: _builtins.int - data_channels_opened: _builtins.int - data_channels_closed: _builtins.int + def HasField(self, field_name: typing.Literal["kind", b"kind", "synthesized_samples_duration", b"synthesized_samples_duration", "synthesized_samples_events", b"synthesized_samples_events", "total_playout_delay", b"total_playout_delay", "total_samples_count", b"total_samples_count", "total_samples_duration", b"total_samples_duration"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["kind", b"kind", "synthesized_samples_duration", b"synthesized_samples_duration", "synthesized_samples_events", b"synthesized_samples_events", "total_playout_delay", b"total_playout_delay", "total_samples_count", b"total_samples_count", "total_samples_duration", b"total_samples_duration"]) -> None: ... + +global___AudioPlayoutStats = AudioPlayoutStats + +@typing.final +class PeerConnectionStats(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DATA_CHANNELS_OPENED_FIELD_NUMBER: builtins.int + DATA_CHANNELS_CLOSED_FIELD_NUMBER: builtins.int + data_channels_opened: builtins.int + data_channels_closed: builtins.int def __init__( self, *, - data_channels_opened: _builtins.int | None = ..., - data_channels_closed: _builtins.int | None = ..., + data_channels_opened: builtins.int | None = ..., + data_channels_closed: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["data_channels_closed", b"data_channels_closed", "data_channels_opened", b"data_channels_opened"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["data_channels_closed", b"data_channels_closed", "data_channels_opened", b"data_channels_opened"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___PeerConnectionStats: _TypeAlias = PeerConnectionStats # noqa: Y015 - -@_typing.final -class DataChannelStats(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - LABEL_FIELD_NUMBER: _builtins.int - PROTOCOL_FIELD_NUMBER: _builtins.int - DATA_CHANNEL_IDENTIFIER_FIELD_NUMBER: _builtins.int - STATE_FIELD_NUMBER: _builtins.int - MESSAGES_SENT_FIELD_NUMBER: _builtins.int - BYTES_SENT_FIELD_NUMBER: _builtins.int - MESSAGES_RECEIVED_FIELD_NUMBER: _builtins.int - BYTES_RECEIVED_FIELD_NUMBER: _builtins.int - label: _builtins.str - protocol: _builtins.str - data_channel_identifier: _builtins.int - state: Global___DataChannelState.ValueType - messages_sent: _builtins.int - bytes_sent: _builtins.int - messages_received: _builtins.int - bytes_received: _builtins.int + def HasField(self, field_name: typing.Literal["data_channels_closed", b"data_channels_closed", "data_channels_opened", b"data_channels_opened"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["data_channels_closed", b"data_channels_closed", "data_channels_opened", b"data_channels_opened"]) -> None: ... + +global___PeerConnectionStats = PeerConnectionStats + +@typing.final +class DataChannelStats(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + LABEL_FIELD_NUMBER: builtins.int + PROTOCOL_FIELD_NUMBER: builtins.int + DATA_CHANNEL_IDENTIFIER_FIELD_NUMBER: builtins.int + STATE_FIELD_NUMBER: builtins.int + MESSAGES_SENT_FIELD_NUMBER: builtins.int + BYTES_SENT_FIELD_NUMBER: builtins.int + MESSAGES_RECEIVED_FIELD_NUMBER: builtins.int + BYTES_RECEIVED_FIELD_NUMBER: builtins.int + label: builtins.str + protocol: builtins.str + data_channel_identifier: builtins.int + state: global___DataChannelState.ValueType + messages_sent: builtins.int + bytes_sent: builtins.int + messages_received: builtins.int + bytes_received: builtins.int def __init__( self, *, - label: _builtins.str | None = ..., - protocol: _builtins.str | None = ..., - data_channel_identifier: _builtins.int | None = ..., - state: Global___DataChannelState.ValueType | None = ..., - messages_sent: _builtins.int | None = ..., - bytes_sent: _builtins.int | None = ..., - messages_received: _builtins.int | None = ..., - bytes_received: _builtins.int | None = ..., + label: builtins.str | None = ..., + protocol: builtins.str | None = ..., + data_channel_identifier: builtins.int | None = ..., + state: global___DataChannelState.ValueType | None = ..., + messages_sent: builtins.int | None = ..., + bytes_sent: builtins.int | None = ..., + messages_received: builtins.int | None = ..., + bytes_received: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "data_channel_identifier", b"data_channel_identifier", "label", b"label", "messages_received", b"messages_received", "messages_sent", b"messages_sent", "protocol", b"protocol", "state", b"state"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "data_channel_identifier", b"data_channel_identifier", "label", b"label", "messages_received", b"messages_received", "messages_sent", b"messages_sent", "protocol", b"protocol", "state", b"state"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___DataChannelStats: _TypeAlias = DataChannelStats # noqa: Y015 - -@_typing.final -class TransportStats(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - PACKETS_SENT_FIELD_NUMBER: _builtins.int - PACKETS_RECEIVED_FIELD_NUMBER: _builtins.int - BYTES_SENT_FIELD_NUMBER: _builtins.int - BYTES_RECEIVED_FIELD_NUMBER: _builtins.int - ICE_ROLE_FIELD_NUMBER: _builtins.int - ICE_LOCAL_USERNAME_FRAGMENT_FIELD_NUMBER: _builtins.int - DTLS_STATE_FIELD_NUMBER: _builtins.int - ICE_STATE_FIELD_NUMBER: _builtins.int - SELECTED_CANDIDATE_PAIR_ID_FIELD_NUMBER: _builtins.int - LOCAL_CERTIFICATE_ID_FIELD_NUMBER: _builtins.int - REMOTE_CERTIFICATE_ID_FIELD_NUMBER: _builtins.int - TLS_VERSION_FIELD_NUMBER: _builtins.int - DTLS_CIPHER_FIELD_NUMBER: _builtins.int - DTLS_ROLE_FIELD_NUMBER: _builtins.int - SRTP_CIPHER_FIELD_NUMBER: _builtins.int - SELECTED_CANDIDATE_PAIR_CHANGES_FIELD_NUMBER: _builtins.int - packets_sent: _builtins.int - packets_received: _builtins.int - bytes_sent: _builtins.int - bytes_received: _builtins.int - ice_role: Global___IceRole.ValueType - ice_local_username_fragment: _builtins.str - dtls_state: Global___DtlsTransportState.ValueType - ice_state: Global___IceTransportState.ValueType - selected_candidate_pair_id: _builtins.str - local_certificate_id: _builtins.str - remote_certificate_id: _builtins.str - tls_version: _builtins.str - dtls_cipher: _builtins.str - dtls_role: Global___DtlsRole.ValueType - srtp_cipher: _builtins.str - selected_candidate_pair_changes: _builtins.int + def HasField(self, field_name: typing.Literal["bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "data_channel_identifier", b"data_channel_identifier", "label", b"label", "messages_received", b"messages_received", "messages_sent", b"messages_sent", "protocol", b"protocol", "state", b"state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "data_channel_identifier", b"data_channel_identifier", "label", b"label", "messages_received", b"messages_received", "messages_sent", b"messages_sent", "protocol", b"protocol", "state", b"state"]) -> None: ... + +global___DataChannelStats = DataChannelStats + +@typing.final +class TransportStats(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PACKETS_SENT_FIELD_NUMBER: builtins.int + PACKETS_RECEIVED_FIELD_NUMBER: builtins.int + BYTES_SENT_FIELD_NUMBER: builtins.int + BYTES_RECEIVED_FIELD_NUMBER: builtins.int + ICE_ROLE_FIELD_NUMBER: builtins.int + ICE_LOCAL_USERNAME_FRAGMENT_FIELD_NUMBER: builtins.int + DTLS_STATE_FIELD_NUMBER: builtins.int + ICE_STATE_FIELD_NUMBER: builtins.int + SELECTED_CANDIDATE_PAIR_ID_FIELD_NUMBER: builtins.int + LOCAL_CERTIFICATE_ID_FIELD_NUMBER: builtins.int + REMOTE_CERTIFICATE_ID_FIELD_NUMBER: builtins.int + TLS_VERSION_FIELD_NUMBER: builtins.int + DTLS_CIPHER_FIELD_NUMBER: builtins.int + DTLS_ROLE_FIELD_NUMBER: builtins.int + SRTP_CIPHER_FIELD_NUMBER: builtins.int + SELECTED_CANDIDATE_PAIR_CHANGES_FIELD_NUMBER: builtins.int + packets_sent: builtins.int + packets_received: builtins.int + bytes_sent: builtins.int + bytes_received: builtins.int + ice_role: global___IceRole.ValueType + ice_local_username_fragment: builtins.str + dtls_state: global___DtlsTransportState.ValueType + ice_state: global___IceTransportState.ValueType + selected_candidate_pair_id: builtins.str + local_certificate_id: builtins.str + remote_certificate_id: builtins.str + tls_version: builtins.str + dtls_cipher: builtins.str + dtls_role: global___DtlsRole.ValueType + srtp_cipher: builtins.str + selected_candidate_pair_changes: builtins.int def __init__( self, *, - packets_sent: _builtins.int | None = ..., - packets_received: _builtins.int | None = ..., - bytes_sent: _builtins.int | None = ..., - bytes_received: _builtins.int | None = ..., - ice_role: Global___IceRole.ValueType | None = ..., - ice_local_username_fragment: _builtins.str | None = ..., - dtls_state: Global___DtlsTransportState.ValueType | None = ..., - ice_state: Global___IceTransportState.ValueType | None = ..., - selected_candidate_pair_id: _builtins.str | None = ..., - local_certificate_id: _builtins.str | None = ..., - remote_certificate_id: _builtins.str | None = ..., - tls_version: _builtins.str | None = ..., - dtls_cipher: _builtins.str | None = ..., - dtls_role: Global___DtlsRole.ValueType | None = ..., - srtp_cipher: _builtins.str | None = ..., - selected_candidate_pair_changes: _builtins.int | None = ..., + packets_sent: builtins.int | None = ..., + packets_received: builtins.int | None = ..., + bytes_sent: builtins.int | None = ..., + bytes_received: builtins.int | None = ..., + ice_role: global___IceRole.ValueType | None = ..., + ice_local_username_fragment: builtins.str | None = ..., + dtls_state: global___DtlsTransportState.ValueType | None = ..., + ice_state: global___IceTransportState.ValueType | None = ..., + selected_candidate_pair_id: builtins.str | None = ..., + local_certificate_id: builtins.str | None = ..., + remote_certificate_id: builtins.str | None = ..., + tls_version: builtins.str | None = ..., + dtls_cipher: builtins.str | None = ..., + dtls_role: global___DtlsRole.ValueType | None = ..., + srtp_cipher: builtins.str | None = ..., + selected_candidate_pair_changes: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "dtls_cipher", b"dtls_cipher", "dtls_role", b"dtls_role", "dtls_state", b"dtls_state", "ice_local_username_fragment", b"ice_local_username_fragment", "ice_role", b"ice_role", "ice_state", b"ice_state", "local_certificate_id", b"local_certificate_id", "packets_received", b"packets_received", "packets_sent", b"packets_sent", "remote_certificate_id", b"remote_certificate_id", "selected_candidate_pair_changes", b"selected_candidate_pair_changes", "selected_candidate_pair_id", b"selected_candidate_pair_id", "srtp_cipher", b"srtp_cipher", "tls_version", b"tls_version"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "dtls_cipher", b"dtls_cipher", "dtls_role", b"dtls_role", "dtls_state", b"dtls_state", "ice_local_username_fragment", b"ice_local_username_fragment", "ice_role", b"ice_role", "ice_state", b"ice_state", "local_certificate_id", b"local_certificate_id", "packets_received", b"packets_received", "packets_sent", b"packets_sent", "remote_certificate_id", b"remote_certificate_id", "selected_candidate_pair_changes", b"selected_candidate_pair_changes", "selected_candidate_pair_id", b"selected_candidate_pair_id", "srtp_cipher", b"srtp_cipher", "tls_version", b"tls_version"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___TransportStats: _TypeAlias = TransportStats # noqa: Y015 - -@_typing.final -class CandidatePairStats(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - TRANSPORT_ID_FIELD_NUMBER: _builtins.int - LOCAL_CANDIDATE_ID_FIELD_NUMBER: _builtins.int - REMOTE_CANDIDATE_ID_FIELD_NUMBER: _builtins.int - STATE_FIELD_NUMBER: _builtins.int - NOMINATED_FIELD_NUMBER: _builtins.int - PACKETS_SENT_FIELD_NUMBER: _builtins.int - PACKETS_RECEIVED_FIELD_NUMBER: _builtins.int - BYTES_SENT_FIELD_NUMBER: _builtins.int - BYTES_RECEIVED_FIELD_NUMBER: _builtins.int - LAST_PACKET_SENT_TIMESTAMP_FIELD_NUMBER: _builtins.int - LAST_PACKET_RECEIVED_TIMESTAMP_FIELD_NUMBER: _builtins.int - TOTAL_ROUND_TRIP_TIME_FIELD_NUMBER: _builtins.int - CURRENT_ROUND_TRIP_TIME_FIELD_NUMBER: _builtins.int - AVAILABLE_OUTGOING_BITRATE_FIELD_NUMBER: _builtins.int - AVAILABLE_INCOMING_BITRATE_FIELD_NUMBER: _builtins.int - REQUESTS_RECEIVED_FIELD_NUMBER: _builtins.int - REQUESTS_SENT_FIELD_NUMBER: _builtins.int - RESPONSES_RECEIVED_FIELD_NUMBER: _builtins.int - RESPONSES_SENT_FIELD_NUMBER: _builtins.int - CONSENT_REQUESTS_SENT_FIELD_NUMBER: _builtins.int - PACKETS_DISCARDED_ON_SEND_FIELD_NUMBER: _builtins.int - BYTES_DISCARDED_ON_SEND_FIELD_NUMBER: _builtins.int - transport_id: _builtins.str - local_candidate_id: _builtins.str - remote_candidate_id: _builtins.str - state: Global___IceCandidatePairState.ValueType - nominated: _builtins.bool - packets_sent: _builtins.int - packets_received: _builtins.int - bytes_sent: _builtins.int - bytes_received: _builtins.int - last_packet_sent_timestamp: _builtins.float - last_packet_received_timestamp: _builtins.float - total_round_trip_time: _builtins.float - current_round_trip_time: _builtins.float - available_outgoing_bitrate: _builtins.float - available_incoming_bitrate: _builtins.float - requests_received: _builtins.int - requests_sent: _builtins.int - responses_received: _builtins.int - responses_sent: _builtins.int - consent_requests_sent: _builtins.int - packets_discarded_on_send: _builtins.int - bytes_discarded_on_send: _builtins.int + def HasField(self, field_name: typing.Literal["bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "dtls_cipher", b"dtls_cipher", "dtls_role", b"dtls_role", "dtls_state", b"dtls_state", "ice_local_username_fragment", b"ice_local_username_fragment", "ice_role", b"ice_role", "ice_state", b"ice_state", "local_certificate_id", b"local_certificate_id", "packets_received", b"packets_received", "packets_sent", b"packets_sent", "remote_certificate_id", b"remote_certificate_id", "selected_candidate_pair_changes", b"selected_candidate_pair_changes", "selected_candidate_pair_id", b"selected_candidate_pair_id", "srtp_cipher", b"srtp_cipher", "tls_version", b"tls_version"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "dtls_cipher", b"dtls_cipher", "dtls_role", b"dtls_role", "dtls_state", b"dtls_state", "ice_local_username_fragment", b"ice_local_username_fragment", "ice_role", b"ice_role", "ice_state", b"ice_state", "local_certificate_id", b"local_certificate_id", "packets_received", b"packets_received", "packets_sent", b"packets_sent", "remote_certificate_id", b"remote_certificate_id", "selected_candidate_pair_changes", b"selected_candidate_pair_changes", "selected_candidate_pair_id", b"selected_candidate_pair_id", "srtp_cipher", b"srtp_cipher", "tls_version", b"tls_version"]) -> None: ... + +global___TransportStats = TransportStats + +@typing.final +class CandidatePairStats(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TRANSPORT_ID_FIELD_NUMBER: builtins.int + LOCAL_CANDIDATE_ID_FIELD_NUMBER: builtins.int + REMOTE_CANDIDATE_ID_FIELD_NUMBER: builtins.int + STATE_FIELD_NUMBER: builtins.int + NOMINATED_FIELD_NUMBER: builtins.int + PACKETS_SENT_FIELD_NUMBER: builtins.int + PACKETS_RECEIVED_FIELD_NUMBER: builtins.int + BYTES_SENT_FIELD_NUMBER: builtins.int + BYTES_RECEIVED_FIELD_NUMBER: builtins.int + LAST_PACKET_SENT_TIMESTAMP_FIELD_NUMBER: builtins.int + LAST_PACKET_RECEIVED_TIMESTAMP_FIELD_NUMBER: builtins.int + TOTAL_ROUND_TRIP_TIME_FIELD_NUMBER: builtins.int + CURRENT_ROUND_TRIP_TIME_FIELD_NUMBER: builtins.int + AVAILABLE_OUTGOING_BITRATE_FIELD_NUMBER: builtins.int + AVAILABLE_INCOMING_BITRATE_FIELD_NUMBER: builtins.int + REQUESTS_RECEIVED_FIELD_NUMBER: builtins.int + REQUESTS_SENT_FIELD_NUMBER: builtins.int + RESPONSES_RECEIVED_FIELD_NUMBER: builtins.int + RESPONSES_SENT_FIELD_NUMBER: builtins.int + CONSENT_REQUESTS_SENT_FIELD_NUMBER: builtins.int + PACKETS_DISCARDED_ON_SEND_FIELD_NUMBER: builtins.int + BYTES_DISCARDED_ON_SEND_FIELD_NUMBER: builtins.int + transport_id: builtins.str + local_candidate_id: builtins.str + remote_candidate_id: builtins.str + state: global___IceCandidatePairState.ValueType + nominated: builtins.bool + packets_sent: builtins.int + packets_received: builtins.int + bytes_sent: builtins.int + bytes_received: builtins.int + last_packet_sent_timestamp: builtins.float + last_packet_received_timestamp: builtins.float + total_round_trip_time: builtins.float + current_round_trip_time: builtins.float + available_outgoing_bitrate: builtins.float + available_incoming_bitrate: builtins.float + requests_received: builtins.int + requests_sent: builtins.int + responses_received: builtins.int + responses_sent: builtins.int + consent_requests_sent: builtins.int + packets_discarded_on_send: builtins.int + bytes_discarded_on_send: builtins.int def __init__( self, *, - transport_id: _builtins.str | None = ..., - local_candidate_id: _builtins.str | None = ..., - remote_candidate_id: _builtins.str | None = ..., - state: Global___IceCandidatePairState.ValueType | None = ..., - nominated: _builtins.bool | None = ..., - packets_sent: _builtins.int | None = ..., - packets_received: _builtins.int | None = ..., - bytes_sent: _builtins.int | None = ..., - bytes_received: _builtins.int | None = ..., - last_packet_sent_timestamp: _builtins.float | None = ..., - last_packet_received_timestamp: _builtins.float | None = ..., - total_round_trip_time: _builtins.float | None = ..., - current_round_trip_time: _builtins.float | None = ..., - available_outgoing_bitrate: _builtins.float | None = ..., - available_incoming_bitrate: _builtins.float | None = ..., - requests_received: _builtins.int | None = ..., - requests_sent: _builtins.int | None = ..., - responses_received: _builtins.int | None = ..., - responses_sent: _builtins.int | None = ..., - consent_requests_sent: _builtins.int | None = ..., - packets_discarded_on_send: _builtins.int | None = ..., - bytes_discarded_on_send: _builtins.int | None = ..., + transport_id: builtins.str | None = ..., + local_candidate_id: builtins.str | None = ..., + remote_candidate_id: builtins.str | None = ..., + state: global___IceCandidatePairState.ValueType | None = ..., + nominated: builtins.bool | None = ..., + packets_sent: builtins.int | None = ..., + packets_received: builtins.int | None = ..., + bytes_sent: builtins.int | None = ..., + bytes_received: builtins.int | None = ..., + last_packet_sent_timestamp: builtins.float | None = ..., + last_packet_received_timestamp: builtins.float | None = ..., + total_round_trip_time: builtins.float | None = ..., + current_round_trip_time: builtins.float | None = ..., + available_outgoing_bitrate: builtins.float | None = ..., + available_incoming_bitrate: builtins.float | None = ..., + requests_received: builtins.int | None = ..., + requests_sent: builtins.int | None = ..., + responses_received: builtins.int | None = ..., + responses_sent: builtins.int | None = ..., + consent_requests_sent: builtins.int | None = ..., + packets_discarded_on_send: builtins.int | None = ..., + bytes_discarded_on_send: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["available_incoming_bitrate", b"available_incoming_bitrate", "available_outgoing_bitrate", b"available_outgoing_bitrate", "bytes_discarded_on_send", b"bytes_discarded_on_send", "bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "consent_requests_sent", b"consent_requests_sent", "current_round_trip_time", b"current_round_trip_time", "last_packet_received_timestamp", b"last_packet_received_timestamp", "last_packet_sent_timestamp", b"last_packet_sent_timestamp", "local_candidate_id", b"local_candidate_id", "nominated", b"nominated", "packets_discarded_on_send", b"packets_discarded_on_send", "packets_received", b"packets_received", "packets_sent", b"packets_sent", "remote_candidate_id", b"remote_candidate_id", "requests_received", b"requests_received", "requests_sent", b"requests_sent", "responses_received", b"responses_received", "responses_sent", b"responses_sent", "state", b"state", "total_round_trip_time", b"total_round_trip_time", "transport_id", b"transport_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["available_incoming_bitrate", b"available_incoming_bitrate", "available_outgoing_bitrate", b"available_outgoing_bitrate", "bytes_discarded_on_send", b"bytes_discarded_on_send", "bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "consent_requests_sent", b"consent_requests_sent", "current_round_trip_time", b"current_round_trip_time", "last_packet_received_timestamp", b"last_packet_received_timestamp", "last_packet_sent_timestamp", b"last_packet_sent_timestamp", "local_candidate_id", b"local_candidate_id", "nominated", b"nominated", "packets_discarded_on_send", b"packets_discarded_on_send", "packets_received", b"packets_received", "packets_sent", b"packets_sent", "remote_candidate_id", b"remote_candidate_id", "requests_received", b"requests_received", "requests_sent", b"requests_sent", "responses_received", b"responses_received", "responses_sent", b"responses_sent", "state", b"state", "total_round_trip_time", b"total_round_trip_time", "transport_id", b"transport_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___CandidatePairStats: _TypeAlias = CandidatePairStats # noqa: Y015 - -@_typing.final -class IceCandidateStats(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - TRANSPORT_ID_FIELD_NUMBER: _builtins.int - ADDRESS_FIELD_NUMBER: _builtins.int - PORT_FIELD_NUMBER: _builtins.int - PROTOCOL_FIELD_NUMBER: _builtins.int - CANDIDATE_TYPE_FIELD_NUMBER: _builtins.int - PRIORITY_FIELD_NUMBER: _builtins.int - URL_FIELD_NUMBER: _builtins.int - RELAY_PROTOCOL_FIELD_NUMBER: _builtins.int - FOUNDATION_FIELD_NUMBER: _builtins.int - RELATED_ADDRESS_FIELD_NUMBER: _builtins.int - RELATED_PORT_FIELD_NUMBER: _builtins.int - USERNAME_FRAGMENT_FIELD_NUMBER: _builtins.int - TCP_TYPE_FIELD_NUMBER: _builtins.int - transport_id: _builtins.str - address: _builtins.str - port: _builtins.int - protocol: _builtins.str - candidate_type: Global___IceCandidateType.ValueType - priority: _builtins.int - url: _builtins.str - relay_protocol: Global___IceServerTransportProtocol.ValueType - foundation: _builtins.str - related_address: _builtins.str - related_port: _builtins.int - username_fragment: _builtins.str - tcp_type: Global___IceTcpCandidateType.ValueType + def HasField(self, field_name: typing.Literal["available_incoming_bitrate", b"available_incoming_bitrate", "available_outgoing_bitrate", b"available_outgoing_bitrate", "bytes_discarded_on_send", b"bytes_discarded_on_send", "bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "consent_requests_sent", b"consent_requests_sent", "current_round_trip_time", b"current_round_trip_time", "last_packet_received_timestamp", b"last_packet_received_timestamp", "last_packet_sent_timestamp", b"last_packet_sent_timestamp", "local_candidate_id", b"local_candidate_id", "nominated", b"nominated", "packets_discarded_on_send", b"packets_discarded_on_send", "packets_received", b"packets_received", "packets_sent", b"packets_sent", "remote_candidate_id", b"remote_candidate_id", "requests_received", b"requests_received", "requests_sent", b"requests_sent", "responses_received", b"responses_received", "responses_sent", b"responses_sent", "state", b"state", "total_round_trip_time", b"total_round_trip_time", "transport_id", b"transport_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["available_incoming_bitrate", b"available_incoming_bitrate", "available_outgoing_bitrate", b"available_outgoing_bitrate", "bytes_discarded_on_send", b"bytes_discarded_on_send", "bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "consent_requests_sent", b"consent_requests_sent", "current_round_trip_time", b"current_round_trip_time", "last_packet_received_timestamp", b"last_packet_received_timestamp", "last_packet_sent_timestamp", b"last_packet_sent_timestamp", "local_candidate_id", b"local_candidate_id", "nominated", b"nominated", "packets_discarded_on_send", b"packets_discarded_on_send", "packets_received", b"packets_received", "packets_sent", b"packets_sent", "remote_candidate_id", b"remote_candidate_id", "requests_received", b"requests_received", "requests_sent", b"requests_sent", "responses_received", b"responses_received", "responses_sent", b"responses_sent", "state", b"state", "total_round_trip_time", b"total_round_trip_time", "transport_id", b"transport_id"]) -> None: ... + +global___CandidatePairStats = CandidatePairStats + +@typing.final +class IceCandidateStats(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TRANSPORT_ID_FIELD_NUMBER: builtins.int + ADDRESS_FIELD_NUMBER: builtins.int + PORT_FIELD_NUMBER: builtins.int + PROTOCOL_FIELD_NUMBER: builtins.int + CANDIDATE_TYPE_FIELD_NUMBER: builtins.int + PRIORITY_FIELD_NUMBER: builtins.int + URL_FIELD_NUMBER: builtins.int + RELAY_PROTOCOL_FIELD_NUMBER: builtins.int + FOUNDATION_FIELD_NUMBER: builtins.int + RELATED_ADDRESS_FIELD_NUMBER: builtins.int + RELATED_PORT_FIELD_NUMBER: builtins.int + USERNAME_FRAGMENT_FIELD_NUMBER: builtins.int + TCP_TYPE_FIELD_NUMBER: builtins.int + transport_id: builtins.str + address: builtins.str + port: builtins.int + protocol: builtins.str + candidate_type: global___IceCandidateType.ValueType + priority: builtins.int + url: builtins.str + relay_protocol: global___IceServerTransportProtocol.ValueType + foundation: builtins.str + related_address: builtins.str + related_port: builtins.int + username_fragment: builtins.str + tcp_type: global___IceTcpCandidateType.ValueType def __init__( self, *, - transport_id: _builtins.str | None = ..., - address: _builtins.str | None = ..., - port: _builtins.int | None = ..., - protocol: _builtins.str | None = ..., - candidate_type: Global___IceCandidateType.ValueType | None = ..., - priority: _builtins.int | None = ..., - url: _builtins.str | None = ..., - relay_protocol: Global___IceServerTransportProtocol.ValueType | None = ..., - foundation: _builtins.str | None = ..., - related_address: _builtins.str | None = ..., - related_port: _builtins.int | None = ..., - username_fragment: _builtins.str | None = ..., - tcp_type: Global___IceTcpCandidateType.ValueType | None = ..., + transport_id: builtins.str | None = ..., + address: builtins.str | None = ..., + port: builtins.int | None = ..., + protocol: builtins.str | None = ..., + candidate_type: global___IceCandidateType.ValueType | None = ..., + priority: builtins.int | None = ..., + url: builtins.str | None = ..., + relay_protocol: global___IceServerTransportProtocol.ValueType | None = ..., + foundation: builtins.str | None = ..., + related_address: builtins.str | None = ..., + related_port: builtins.int | None = ..., + username_fragment: builtins.str | None = ..., + tcp_type: global___IceTcpCandidateType.ValueType | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["address", b"address", "candidate_type", b"candidate_type", "foundation", b"foundation", "port", b"port", "priority", b"priority", "protocol", b"protocol", "related_address", b"related_address", "related_port", b"related_port", "relay_protocol", b"relay_protocol", "tcp_type", b"tcp_type", "transport_id", b"transport_id", "url", b"url", "username_fragment", b"username_fragment"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["address", b"address", "candidate_type", b"candidate_type", "foundation", b"foundation", "port", b"port", "priority", b"priority", "protocol", b"protocol", "related_address", b"related_address", "related_port", b"related_port", "relay_protocol", b"relay_protocol", "tcp_type", b"tcp_type", "transport_id", b"transport_id", "url", b"url", "username_fragment", b"username_fragment"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___IceCandidateStats: _TypeAlias = IceCandidateStats # noqa: Y015 - -@_typing.final -class CertificateStats(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - FINGERPRINT_FIELD_NUMBER: _builtins.int - FINGERPRINT_ALGORITHM_FIELD_NUMBER: _builtins.int - BASE64_CERTIFICATE_FIELD_NUMBER: _builtins.int - ISSUER_CERTIFICATE_ID_FIELD_NUMBER: _builtins.int - fingerprint: _builtins.str - fingerprint_algorithm: _builtins.str - base64_certificate: _builtins.str - issuer_certificate_id: _builtins.str + def HasField(self, field_name: typing.Literal["address", b"address", "candidate_type", b"candidate_type", "foundation", b"foundation", "port", b"port", "priority", b"priority", "protocol", b"protocol", "related_address", b"related_address", "related_port", b"related_port", "relay_protocol", b"relay_protocol", "tcp_type", b"tcp_type", "transport_id", b"transport_id", "url", b"url", "username_fragment", b"username_fragment"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["address", b"address", "candidate_type", b"candidate_type", "foundation", b"foundation", "port", b"port", "priority", b"priority", "protocol", b"protocol", "related_address", b"related_address", "related_port", b"related_port", "relay_protocol", b"relay_protocol", "tcp_type", b"tcp_type", "transport_id", b"transport_id", "url", b"url", "username_fragment", b"username_fragment"]) -> None: ... + +global___IceCandidateStats = IceCandidateStats + +@typing.final +class CertificateStats(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FINGERPRINT_FIELD_NUMBER: builtins.int + FINGERPRINT_ALGORITHM_FIELD_NUMBER: builtins.int + BASE64_CERTIFICATE_FIELD_NUMBER: builtins.int + ISSUER_CERTIFICATE_ID_FIELD_NUMBER: builtins.int + fingerprint: builtins.str + fingerprint_algorithm: builtins.str + base64_certificate: builtins.str + issuer_certificate_id: builtins.str def __init__( self, *, - fingerprint: _builtins.str | None = ..., - fingerprint_algorithm: _builtins.str | None = ..., - base64_certificate: _builtins.str | None = ..., - issuer_certificate_id: _builtins.str | None = ..., + fingerprint: builtins.str | None = ..., + fingerprint_algorithm: builtins.str | None = ..., + base64_certificate: builtins.str | None = ..., + issuer_certificate_id: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["base64_certificate", b"base64_certificate", "fingerprint", b"fingerprint", "fingerprint_algorithm", b"fingerprint_algorithm", "issuer_certificate_id", b"issuer_certificate_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["base64_certificate", b"base64_certificate", "fingerprint", b"fingerprint", "fingerprint_algorithm", b"fingerprint_algorithm", "issuer_certificate_id", b"issuer_certificate_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___CertificateStats: _TypeAlias = CertificateStats # noqa: Y015 - -@_typing.final -class StreamStats(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - ID_FIELD_NUMBER: _builtins.int - STREAM_IDENTIFIER_FIELD_NUMBER: _builtins.int - id: _builtins.str - stream_identifier: _builtins.str + def HasField(self, field_name: typing.Literal["base64_certificate", b"base64_certificate", "fingerprint", b"fingerprint", "fingerprint_algorithm", b"fingerprint_algorithm", "issuer_certificate_id", b"issuer_certificate_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["base64_certificate", b"base64_certificate", "fingerprint", b"fingerprint", "fingerprint_algorithm", b"fingerprint_algorithm", "issuer_certificate_id", b"issuer_certificate_id"]) -> None: ... + +global___CertificateStats = CertificateStats + +@typing.final +class StreamStats(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ID_FIELD_NUMBER: builtins.int + STREAM_IDENTIFIER_FIELD_NUMBER: builtins.int + id: builtins.str + stream_identifier: builtins.str """required int64 timestamp = 3;""" def __init__( self, *, - id: _builtins.str | None = ..., - stream_identifier: _builtins.str | None = ..., + id: builtins.str | None = ..., + stream_identifier: builtins.str | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["id", b"id", "stream_identifier", b"stream_identifier"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["id", b"id", "stream_identifier", b"stream_identifier"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["id", b"id", "stream_identifier", b"stream_identifier"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["id", b"id", "stream_identifier", b"stream_identifier"]) -> None: ... -Global___StreamStats: _TypeAlias = StreamStats # noqa: Y015 +global___StreamStats = StreamStats diff --git a/livekit-rtc/livekit/rtc/_proto/track_pb2.py b/livekit-rtc/livekit/rtc/_proto/track_pb2.py index ed9e67ac..562a267c 100644 --- a/livekit-rtc/livekit/rtc/_proto/track_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/track_pb2.py @@ -1,22 +1,12 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE # source: track.proto -# Protobuf Python Version: 7.34.1 +# Protobuf Python Version: 4.25.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 7, - 34, - 1, - '', - 'track.proto' -) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -32,8 +22,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'track_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None _globals['DESCRIPTOR']._serialized_options = b'\252\002\rLiveKit.Proto' _globals['_TRACKKIND']._serialized_start=1897 _globals['_TRACKKIND']._serialized_end=1958 diff --git a/livekit-rtc/livekit/rtc/_proto/track_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/track_pb2.pyi index 9fb75301..6b81c596 100644 --- a/livekit-rtc/livekit/rtc/_proto/track_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/track_pb2.pyi @@ -16,31 +16,31 @@ See the License for the specific language governing permissions and limitations under the License. """ -from collections import abc as _abc -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -import builtins as _builtins -from . import e2ee_pb2 as _e2ee_pb2 -from . import handle_pb2 as _handle_pb2 -from . import stats_pb2 as _stats_pb2 +import builtins +import collections.abc +from . import e2ee_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +from . import handle_pb2 +from . import stats_pb2 import sys -import typing as _typing +import typing -if sys.version_info >= (3, 11): - from typing import TypeAlias as _TypeAlias, Never as _Never +if sys.version_info >= (3, 10): + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias, Never as _Never + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class _TrackKind: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _TrackKindEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_TrackKind.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _TrackKindEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_TrackKind.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor KIND_UNKNOWN: _TrackKind.ValueType # 0 KIND_AUDIO: _TrackKind.ValueType # 1 KIND_VIDEO: _TrackKind.ValueType # 2 @@ -50,14 +50,14 @@ class TrackKind(_TrackKind, metaclass=_TrackKindEnumTypeWrapper): ... KIND_UNKNOWN: TrackKind.ValueType # 0 KIND_AUDIO: TrackKind.ValueType # 1 KIND_VIDEO: TrackKind.ValueType # 2 -Global___TrackKind: _TypeAlias = TrackKind # noqa: Y015 +global___TrackKind = TrackKind class _TrackSource: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _TrackSourceEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_TrackSource.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _TrackSourceEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_TrackSource.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor SOURCE_UNKNOWN: _TrackSource.ValueType # 0 SOURCE_CAMERA: _TrackSource.ValueType # 1 SOURCE_MICROPHONE: _TrackSource.ValueType # 2 @@ -71,14 +71,14 @@ SOURCE_CAMERA: TrackSource.ValueType # 1 SOURCE_MICROPHONE: TrackSource.ValueType # 2 SOURCE_SCREENSHARE: TrackSource.ValueType # 3 SOURCE_SCREENSHARE_AUDIO: TrackSource.ValueType # 4 -Global___TrackSource: _TypeAlias = TrackSource # noqa: Y015 +global___TrackSource = TrackSource class _StreamState: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _StreamStateEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_StreamState.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _StreamStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_StreamState.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor STATE_UNKNOWN: _StreamState.ValueType # 0 STATE_ACTIVE: _StreamState.ValueType # 1 STATE_PAUSED: _StreamState.ValueType # 2 @@ -88,14 +88,14 @@ class StreamState(_StreamState, metaclass=_StreamStateEnumTypeWrapper): ... STATE_UNKNOWN: StreamState.ValueType # 0 STATE_ACTIVE: StreamState.ValueType # 1 STATE_PAUSED: StreamState.ValueType # 2 -Global___StreamState: _TypeAlias = StreamState # noqa: Y015 +global___StreamState = StreamState class _AudioTrackFeature: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _AudioTrackFeatureEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_AudioTrackFeature.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _AudioTrackFeatureEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_AudioTrackFeature.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor TF_STEREO: _AudioTrackFeature.ValueType # 0 TF_NO_DTX: _AudioTrackFeature.ValueType # 1 TF_AUTO_GAIN_CONTROL: _AudioTrackFeature.ValueType # 2 @@ -115,14 +115,14 @@ TF_NOISE_SUPPRESSION: AudioTrackFeature.ValueType # 4 TF_ENHANCED_NOISE_CANCELLATION: AudioTrackFeature.ValueType # 5 TF_PRECONNECT_BUFFER: AudioTrackFeature.ValueType # 6 """client will buffer audio once available and send it to the server via bytes stream once connected""" -Global___AudioTrackFeature: _TypeAlias = AudioTrackFeature # noqa: Y015 +global___AudioTrackFeature = AudioTrackFeature class _PacketTrailerFeature: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _PacketTrailerFeatureEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_PacketTrailerFeature.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _PacketTrailerFeatureEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_PacketTrailerFeature.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor PTF_USER_TIMESTAMP: _PacketTrailerFeature.ValueType # 0 PTF_FRAME_ID: _PacketTrailerFeature.ValueType # 1 @@ -130,474 +130,413 @@ class PacketTrailerFeature(_PacketTrailerFeature, metaclass=_PacketTrailerFeatur PTF_USER_TIMESTAMP: PacketTrailerFeature.ValueType # 0 PTF_FRAME_ID: PacketTrailerFeature.ValueType # 1 -Global___PacketTrailerFeature: _TypeAlias = PacketTrailerFeature # noqa: Y015 +global___PacketTrailerFeature = PacketTrailerFeature -@_typing.final -class CreateVideoTrackRequest(_message.Message): +@typing.final +class CreateVideoTrackRequest(google.protobuf.message.Message): """Create a new VideoTrack from a VideoSource""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - NAME_FIELD_NUMBER: _builtins.int - SOURCE_HANDLE_FIELD_NUMBER: _builtins.int - name: _builtins.str - source_handle: _builtins.int + NAME_FIELD_NUMBER: builtins.int + SOURCE_HANDLE_FIELD_NUMBER: builtins.int + name: builtins.str + source_handle: builtins.int def __init__( self, *, - name: _builtins.str | None = ..., - source_handle: _builtins.int | None = ..., + name: builtins.str | None = ..., + source_handle: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "source_handle", b"source_handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "source_handle", b"source_handle"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["name", b"name", "source_handle", b"source_handle"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["name", b"name", "source_handle", b"source_handle"]) -> None: ... -Global___CreateVideoTrackRequest: _TypeAlias = CreateVideoTrackRequest # noqa: Y015 +global___CreateVideoTrackRequest = CreateVideoTrackRequest -@_typing.final -class CreateVideoTrackResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class CreateVideoTrackResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - TRACK_FIELD_NUMBER: _builtins.int - @_builtins.property - def track(self) -> Global___OwnedTrack: ... + TRACK_FIELD_NUMBER: builtins.int + @property + def track(self) -> global___OwnedTrack: ... def __init__( self, *, - track: Global___OwnedTrack | None = ..., + track: global___OwnedTrack | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["track", b"track"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["track", b"track"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["track", b"track"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["track", b"track"]) -> None: ... -Global___CreateVideoTrackResponse: _TypeAlias = CreateVideoTrackResponse # noqa: Y015 +global___CreateVideoTrackResponse = CreateVideoTrackResponse -@_typing.final -class CreateAudioTrackRequest(_message.Message): +@typing.final +class CreateAudioTrackRequest(google.protobuf.message.Message): """Create a new AudioTrack from a AudioSource""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - NAME_FIELD_NUMBER: _builtins.int - SOURCE_HANDLE_FIELD_NUMBER: _builtins.int - name: _builtins.str - source_handle: _builtins.int + NAME_FIELD_NUMBER: builtins.int + SOURCE_HANDLE_FIELD_NUMBER: builtins.int + name: builtins.str + source_handle: builtins.int def __init__( self, *, - name: _builtins.str | None = ..., - source_handle: _builtins.int | None = ..., + name: builtins.str | None = ..., + source_handle: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "source_handle", b"source_handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "source_handle", b"source_handle"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["name", b"name", "source_handle", b"source_handle"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["name", b"name", "source_handle", b"source_handle"]) -> None: ... -Global___CreateAudioTrackRequest: _TypeAlias = CreateAudioTrackRequest # noqa: Y015 +global___CreateAudioTrackRequest = CreateAudioTrackRequest -@_typing.final -class CreateAudioTrackResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class CreateAudioTrackResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - TRACK_FIELD_NUMBER: _builtins.int - @_builtins.property - def track(self) -> Global___OwnedTrack: ... + TRACK_FIELD_NUMBER: builtins.int + @property + def track(self) -> global___OwnedTrack: ... def __init__( self, *, - track: Global___OwnedTrack | None = ..., + track: global___OwnedTrack | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["track", b"track"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["track", b"track"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___CreateAudioTrackResponse: _TypeAlias = CreateAudioTrackResponse # noqa: Y015 - -@_typing.final -class GetStatsRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - TRACK_HANDLE_FIELD_NUMBER: _builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int - track_handle: _builtins.int - request_async_id: _builtins.int + def HasField(self, field_name: typing.Literal["track", b"track"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["track", b"track"]) -> None: ... + +global___CreateAudioTrackResponse = CreateAudioTrackResponse + +@typing.final +class GetStatsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TRACK_HANDLE_FIELD_NUMBER: builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int + track_handle: builtins.int + request_async_id: builtins.int def __init__( self, *, - track_handle: _builtins.int | None = ..., - request_async_id: _builtins.int | None = ..., + track_handle: builtins.int | None = ..., + request_async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["request_async_id", b"request_async_id", "track_handle", b"track_handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["request_async_id", b"request_async_id", "track_handle", b"track_handle"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["request_async_id", b"request_async_id", "track_handle", b"track_handle"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["request_async_id", b"request_async_id", "track_handle", b"track_handle"]) -> None: ... -Global___GetStatsRequest: _TypeAlias = GetStatsRequest # noqa: Y015 +global___GetStatsRequest = GetStatsRequest -@_typing.final -class GetStatsResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class GetStatsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: _builtins.int - async_id: _builtins.int + ASYNC_ID_FIELD_NUMBER: builtins.int + async_id: builtins.int def __init__( self, *, - async_id: _builtins.int | None = ..., + async_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___GetStatsResponse: _TypeAlias = GetStatsResponse # noqa: Y015 - -@_typing.final -class GetStatsCallback(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: _builtins.int - ERROR_FIELD_NUMBER: _builtins.int - STATS_FIELD_NUMBER: _builtins.int - async_id: _builtins.int - error: _builtins.str - @_builtins.property - def stats(self) -> _containers.RepeatedCompositeFieldContainer[_stats_pb2.RtcStats]: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + +global___GetStatsResponse = GetStatsResponse + +@typing.final +class GetStatsCallback(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + STATS_FIELD_NUMBER: builtins.int + async_id: builtins.int + error: builtins.str + @property + def stats(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[stats_pb2.RtcStats]: ... def __init__( self, *, - async_id: _builtins.int | None = ..., - error: _builtins.str | None = ..., - stats: _abc.Iterable[_stats_pb2.RtcStats] | None = ..., + async_id: builtins.int | None = ..., + error: builtins.str | None = ..., + stats: collections.abc.Iterable[stats_pb2.RtcStats] | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "stats", b"stats"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "stats", b"stats"]) -> None: ... -Global___GetStatsCallback: _TypeAlias = GetStatsCallback # noqa: Y015 +global___GetStatsCallback = GetStatsCallback -@_typing.final -class TrackEvent(_message.Message): +@typing.final +class TrackEvent(google.protobuf.message.Message): """ Track """ - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___TrackEvent: _TypeAlias = TrackEvent # noqa: Y015 - -@_typing.final -class TrackPublicationInfo(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - SID_FIELD_NUMBER: _builtins.int - NAME_FIELD_NUMBER: _builtins.int - KIND_FIELD_NUMBER: _builtins.int - SOURCE_FIELD_NUMBER: _builtins.int - SIMULCASTED_FIELD_NUMBER: _builtins.int - WIDTH_FIELD_NUMBER: _builtins.int - HEIGHT_FIELD_NUMBER: _builtins.int - MIME_TYPE_FIELD_NUMBER: _builtins.int - MUTED_FIELD_NUMBER: _builtins.int - REMOTE_FIELD_NUMBER: _builtins.int - ENCRYPTION_TYPE_FIELD_NUMBER: _builtins.int - AUDIO_FEATURES_FIELD_NUMBER: _builtins.int - PACKET_TRAILER_FEATURES_FIELD_NUMBER: _builtins.int - sid: _builtins.str - name: _builtins.str - kind: Global___TrackKind.ValueType - source: Global___TrackSource.ValueType - simulcasted: _builtins.bool - width: _builtins.int - height: _builtins.int - mime_type: _builtins.str - muted: _builtins.bool - remote: _builtins.bool - encryption_type: _e2ee_pb2.EncryptionType.ValueType - @_builtins.property - def audio_features(self) -> _containers.RepeatedScalarFieldContainer[Global___AudioTrackFeature.ValueType]: ... - @_builtins.property - def packet_trailer_features(self) -> _containers.RepeatedScalarFieldContainer[Global___PacketTrailerFeature.ValueType]: ... + +global___TrackEvent = TrackEvent + +@typing.final +class TrackPublicationInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SID_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + KIND_FIELD_NUMBER: builtins.int + SOURCE_FIELD_NUMBER: builtins.int + SIMULCASTED_FIELD_NUMBER: builtins.int + WIDTH_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + MIME_TYPE_FIELD_NUMBER: builtins.int + MUTED_FIELD_NUMBER: builtins.int + REMOTE_FIELD_NUMBER: builtins.int + ENCRYPTION_TYPE_FIELD_NUMBER: builtins.int + AUDIO_FEATURES_FIELD_NUMBER: builtins.int + PACKET_TRAILER_FEATURES_FIELD_NUMBER: builtins.int + sid: builtins.str + name: builtins.str + kind: global___TrackKind.ValueType + source: global___TrackSource.ValueType + simulcasted: builtins.bool + width: builtins.int + height: builtins.int + mime_type: builtins.str + muted: builtins.bool + remote: builtins.bool + encryption_type: e2ee_pb2.EncryptionType.ValueType + @property + def audio_features(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___AudioTrackFeature.ValueType]: ... + @property + def packet_trailer_features(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___PacketTrailerFeature.ValueType]: ... def __init__( self, *, - sid: _builtins.str | None = ..., - name: _builtins.str | None = ..., - kind: Global___TrackKind.ValueType | None = ..., - source: Global___TrackSource.ValueType | None = ..., - simulcasted: _builtins.bool | None = ..., - width: _builtins.int | None = ..., - height: _builtins.int | None = ..., - mime_type: _builtins.str | None = ..., - muted: _builtins.bool | None = ..., - remote: _builtins.bool | None = ..., - encryption_type: _e2ee_pb2.EncryptionType.ValueType | None = ..., - audio_features: _abc.Iterable[Global___AudioTrackFeature.ValueType] | None = ..., - packet_trailer_features: _abc.Iterable[Global___PacketTrailerFeature.ValueType] | None = ..., + sid: builtins.str | None = ..., + name: builtins.str | None = ..., + kind: global___TrackKind.ValueType | None = ..., + source: global___TrackSource.ValueType | None = ..., + simulcasted: builtins.bool | None = ..., + width: builtins.int | None = ..., + height: builtins.int | None = ..., + mime_type: builtins.str | None = ..., + muted: builtins.bool | None = ..., + remote: builtins.bool | None = ..., + encryption_type: e2ee_pb2.EncryptionType.ValueType | None = ..., + audio_features: collections.abc.Iterable[global___AudioTrackFeature.ValueType] | None = ..., + packet_trailer_features: collections.abc.Iterable[global___PacketTrailerFeature.ValueType] | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["encryption_type", b"encryption_type", "height", b"height", "kind", b"kind", "mime_type", b"mime_type", "muted", b"muted", "name", b"name", "remote", b"remote", "sid", b"sid", "simulcasted", b"simulcasted", "source", b"source", "width", b"width"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["audio_features", b"audio_features", "encryption_type", b"encryption_type", "height", b"height", "kind", b"kind", "mime_type", b"mime_type", "muted", b"muted", "name", b"name", "packet_trailer_features", b"packet_trailer_features", "remote", b"remote", "sid", b"sid", "simulcasted", b"simulcasted", "source", b"source", "width", b"width"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___TrackPublicationInfo: _TypeAlias = TrackPublicationInfo # noqa: Y015 - -@_typing.final -class OwnedTrackPublication(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - HANDLE_FIELD_NUMBER: _builtins.int - INFO_FIELD_NUMBER: _builtins.int - @_builtins.property - def handle(self) -> _handle_pb2.FfiOwnedHandle: ... - @_builtins.property - def info(self) -> Global___TrackPublicationInfo: ... + def HasField(self, field_name: typing.Literal["encryption_type", b"encryption_type", "height", b"height", "kind", b"kind", "mime_type", b"mime_type", "muted", b"muted", "name", b"name", "remote", b"remote", "sid", b"sid", "simulcasted", b"simulcasted", "source", b"source", "width", b"width"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["audio_features", b"audio_features", "encryption_type", b"encryption_type", "height", b"height", "kind", b"kind", "mime_type", b"mime_type", "muted", b"muted", "name", b"name", "packet_trailer_features", b"packet_trailer_features", "remote", b"remote", "sid", b"sid", "simulcasted", b"simulcasted", "source", b"source", "width", b"width"]) -> None: ... + +global___TrackPublicationInfo = TrackPublicationInfo + +@typing.final +class OwnedTrackPublication(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HANDLE_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + @property + def handle(self) -> handle_pb2.FfiOwnedHandle: ... + @property + def info(self) -> global___TrackPublicationInfo: ... def __init__( self, *, - handle: _handle_pb2.FfiOwnedHandle | None = ..., - info: Global___TrackPublicationInfo | None = ..., + handle: handle_pb2.FfiOwnedHandle | None = ..., + info: global___TrackPublicationInfo | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___OwnedTrackPublication: _TypeAlias = OwnedTrackPublication # noqa: Y015 - -@_typing.final -class TrackInfo(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - SID_FIELD_NUMBER: _builtins.int - NAME_FIELD_NUMBER: _builtins.int - KIND_FIELD_NUMBER: _builtins.int - STREAM_STATE_FIELD_NUMBER: _builtins.int - MUTED_FIELD_NUMBER: _builtins.int - REMOTE_FIELD_NUMBER: _builtins.int - sid: _builtins.str - name: _builtins.str - kind: Global___TrackKind.ValueType - stream_state: Global___StreamState.ValueType - muted: _builtins.bool - remote: _builtins.bool + def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... + +global___OwnedTrackPublication = OwnedTrackPublication + +@typing.final +class TrackInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SID_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + KIND_FIELD_NUMBER: builtins.int + STREAM_STATE_FIELD_NUMBER: builtins.int + MUTED_FIELD_NUMBER: builtins.int + REMOTE_FIELD_NUMBER: builtins.int + sid: builtins.str + name: builtins.str + kind: global___TrackKind.ValueType + stream_state: global___StreamState.ValueType + muted: builtins.bool + remote: builtins.bool def __init__( self, *, - sid: _builtins.str | None = ..., - name: _builtins.str | None = ..., - kind: Global___TrackKind.ValueType | None = ..., - stream_state: Global___StreamState.ValueType | None = ..., - muted: _builtins.bool | None = ..., - remote: _builtins.bool | None = ..., + sid: builtins.str | None = ..., + name: builtins.str | None = ..., + kind: global___TrackKind.ValueType | None = ..., + stream_state: global___StreamState.ValueType | None = ..., + muted: builtins.bool | None = ..., + remote: builtins.bool | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "muted", b"muted", "name", b"name", "remote", b"remote", "sid", b"sid", "stream_state", b"stream_state"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "muted", b"muted", "name", b"name", "remote", b"remote", "sid", b"sid", "stream_state", b"stream_state"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___TrackInfo: _TypeAlias = TrackInfo # noqa: Y015 - -@_typing.final -class OwnedTrack(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - HANDLE_FIELD_NUMBER: _builtins.int - INFO_FIELD_NUMBER: _builtins.int - @_builtins.property - def handle(self) -> _handle_pb2.FfiOwnedHandle: ... - @_builtins.property - def info(self) -> Global___TrackInfo: ... + def HasField(self, field_name: typing.Literal["kind", b"kind", "muted", b"muted", "name", b"name", "remote", b"remote", "sid", b"sid", "stream_state", b"stream_state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["kind", b"kind", "muted", b"muted", "name", b"name", "remote", b"remote", "sid", b"sid", "stream_state", b"stream_state"]) -> None: ... + +global___TrackInfo = TrackInfo + +@typing.final +class OwnedTrack(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HANDLE_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + @property + def handle(self) -> handle_pb2.FfiOwnedHandle: ... + @property + def info(self) -> global___TrackInfo: ... def __init__( self, *, - handle: _handle_pb2.FfiOwnedHandle | None = ..., - info: Global___TrackInfo | None = ..., + handle: handle_pb2.FfiOwnedHandle | None = ..., + info: global___TrackInfo | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... -Global___OwnedTrack: _TypeAlias = OwnedTrack # noqa: Y015 +global___OwnedTrack = OwnedTrack -@_typing.final -class LocalTrackMuteRequest(_message.Message): +@typing.final +class LocalTrackMuteRequest(google.protobuf.message.Message): """Mute/UnMute a track""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - TRACK_HANDLE_FIELD_NUMBER: _builtins.int - MUTE_FIELD_NUMBER: _builtins.int - track_handle: _builtins.int - mute: _builtins.bool + TRACK_HANDLE_FIELD_NUMBER: builtins.int + MUTE_FIELD_NUMBER: builtins.int + track_handle: builtins.int + mute: builtins.bool def __init__( self, *, - track_handle: _builtins.int | None = ..., - mute: _builtins.bool | None = ..., + track_handle: builtins.int | None = ..., + mute: builtins.bool | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["mute", b"mute", "track_handle", b"track_handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["mute", b"mute", "track_handle", b"track_handle"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["mute", b"mute", "track_handle", b"track_handle"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["mute", b"mute", "track_handle", b"track_handle"]) -> None: ... -Global___LocalTrackMuteRequest: _TypeAlias = LocalTrackMuteRequest # noqa: Y015 +global___LocalTrackMuteRequest = LocalTrackMuteRequest -@_typing.final -class LocalTrackMuteResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class LocalTrackMuteResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - MUTED_FIELD_NUMBER: _builtins.int - muted: _builtins.bool + MUTED_FIELD_NUMBER: builtins.int + muted: builtins.bool def __init__( self, *, - muted: _builtins.bool | None = ..., + muted: builtins.bool | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["muted", b"muted"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["muted", b"muted"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["muted", b"muted"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["muted", b"muted"]) -> None: ... -Global___LocalTrackMuteResponse: _TypeAlias = LocalTrackMuteResponse # noqa: Y015 +global___LocalTrackMuteResponse = LocalTrackMuteResponse -@_typing.final -class EnableRemoteTrackRequest(_message.Message): +@typing.final +class EnableRemoteTrackRequest(google.protobuf.message.Message): """Enable/Disable a remote track""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - TRACK_HANDLE_FIELD_NUMBER: _builtins.int - ENABLED_FIELD_NUMBER: _builtins.int - track_handle: _builtins.int - enabled: _builtins.bool + TRACK_HANDLE_FIELD_NUMBER: builtins.int + ENABLED_FIELD_NUMBER: builtins.int + track_handle: builtins.int + enabled: builtins.bool def __init__( self, *, - track_handle: _builtins.int | None = ..., - enabled: _builtins.bool | None = ..., + track_handle: builtins.int | None = ..., + enabled: builtins.bool | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled", "track_handle", b"track_handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled", "track_handle", b"track_handle"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["enabled", b"enabled", "track_handle", b"track_handle"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["enabled", b"enabled", "track_handle", b"track_handle"]) -> None: ... -Global___EnableRemoteTrackRequest: _TypeAlias = EnableRemoteTrackRequest # noqa: Y015 +global___EnableRemoteTrackRequest = EnableRemoteTrackRequest -@_typing.final -class EnableRemoteTrackResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class EnableRemoteTrackResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ENABLED_FIELD_NUMBER: _builtins.int - enabled: _builtins.bool + ENABLED_FIELD_NUMBER: builtins.int + enabled: builtins.bool def __init__( self, *, - enabled: _builtins.bool | None = ..., + enabled: builtins.bool | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___EnableRemoteTrackResponse: _TypeAlias = EnableRemoteTrackResponse # noqa: Y015 - -@_typing.final -class SetTrackSubscriptionPermissionsRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int - ALL_PARTICIPANTS_ALLOWED_FIELD_NUMBER: _builtins.int - PERMISSIONS_FIELD_NUMBER: _builtins.int - local_participant_handle: _builtins.int - all_participants_allowed: _builtins.bool - @_builtins.property - def permissions(self) -> _containers.RepeatedCompositeFieldContainer[Global___ParticipantTrackPermission]: ... + def HasField(self, field_name: typing.Literal["enabled", b"enabled"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["enabled", b"enabled"]) -> None: ... + +global___EnableRemoteTrackResponse = EnableRemoteTrackResponse + +@typing.final +class SetTrackSubscriptionPermissionsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int + ALL_PARTICIPANTS_ALLOWED_FIELD_NUMBER: builtins.int + PERMISSIONS_FIELD_NUMBER: builtins.int + local_participant_handle: builtins.int + all_participants_allowed: builtins.bool + @property + def permissions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ParticipantTrackPermission]: ... def __init__( self, *, - local_participant_handle: _builtins.int | None = ..., - all_participants_allowed: _builtins.bool | None = ..., - permissions: _abc.Iterable[Global___ParticipantTrackPermission] | None = ..., + local_participant_handle: builtins.int | None = ..., + all_participants_allowed: builtins.bool | None = ..., + permissions: collections.abc.Iterable[global___ParticipantTrackPermission] | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["all_participants_allowed", b"all_participants_allowed", "local_participant_handle", b"local_participant_handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["all_participants_allowed", b"all_participants_allowed", "local_participant_handle", b"local_participant_handle", "permissions", b"permissions"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___SetTrackSubscriptionPermissionsRequest: _TypeAlias = SetTrackSubscriptionPermissionsRequest # noqa: Y015 - -@_typing.final -class ParticipantTrackPermission(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int - ALLOW_ALL_FIELD_NUMBER: _builtins.int - ALLOWED_TRACK_SIDS_FIELD_NUMBER: _builtins.int - participant_identity: _builtins.str + def HasField(self, field_name: typing.Literal["all_participants_allowed", b"all_participants_allowed", "local_participant_handle", b"local_participant_handle"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["all_participants_allowed", b"all_participants_allowed", "local_participant_handle", b"local_participant_handle", "permissions", b"permissions"]) -> None: ... + +global___SetTrackSubscriptionPermissionsRequest = SetTrackSubscriptionPermissionsRequest + +@typing.final +class ParticipantTrackPermission(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + ALLOW_ALL_FIELD_NUMBER: builtins.int + ALLOWED_TRACK_SIDS_FIELD_NUMBER: builtins.int + participant_identity: builtins.str """The participant identity this permission applies to.""" - allow_all: _builtins.bool + allow_all: builtins.bool """Grant permission to all all tracks. Takes precedence over allowedTrackSids.""" - @_builtins.property - def allowed_track_sids(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: + @property + def allowed_track_sids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """List of track sids to grant permission to.""" def __init__( self, *, - participant_identity: _builtins.str | None = ..., - allow_all: _builtins.bool | None = ..., - allowed_track_sids: _abc.Iterable[_builtins.str] | None = ..., + participant_identity: builtins.str | None = ..., + allow_all: builtins.bool | None = ..., + allowed_track_sids: collections.abc.Iterable[builtins.str] | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["allow_all", b"allow_all", "participant_identity", b"participant_identity"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_all", b"allow_all", "allowed_track_sids", b"allowed_track_sids", "participant_identity", b"participant_identity"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["allow_all", b"allow_all", "participant_identity", b"participant_identity"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["allow_all", b"allow_all", "allowed_track_sids", b"allowed_track_sids", "participant_identity", b"participant_identity"]) -> None: ... -Global___ParticipantTrackPermission: _TypeAlias = ParticipantTrackPermission # noqa: Y015 +global___ParticipantTrackPermission = ParticipantTrackPermission -@_typing.final -class SetTrackSubscriptionPermissionsResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class SetTrackSubscriptionPermissionsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... -Global___SetTrackSubscriptionPermissionsResponse: _TypeAlias = SetTrackSubscriptionPermissionsResponse # noqa: Y015 +global___SetTrackSubscriptionPermissionsResponse = SetTrackSubscriptionPermissionsResponse diff --git a/livekit-rtc/livekit/rtc/_proto/track_publication_pb2.py b/livekit-rtc/livekit/rtc/_proto/track_publication_pb2.py index 147a048a..e9eba74e 100644 --- a/livekit-rtc/livekit/rtc/_proto/track_publication_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/track_publication_pb2.py @@ -1,22 +1,12 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE # source: track_publication.proto -# Protobuf Python Version: 7.34.1 +# Protobuf Python Version: 4.25.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 7, - 34, - 1, - '', - 'track_publication.proto' -) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -29,8 +19,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'track_publication_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None _globals['DESCRIPTOR']._serialized_options = b'\252\002\rLiveKit.Proto' _globals['_VIDEOQUALITY']._serialized_start=501 _globals['_VIDEOQUALITY']._serialized_end=588 diff --git a/livekit-rtc/livekit/rtc/_proto/track_publication_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/track_publication_pb2.pyi index 05696f97..9e70c7b4 100644 --- a/livekit-rtc/livekit/rtc/_proto/track_publication_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/track_publication_pb2.pyi @@ -16,26 +16,26 @@ See the License for the specific language governing permissions and limitations under the License. """ -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -import builtins as _builtins +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message import sys -import typing as _typing +import typing -if sys.version_info >= (3, 11): - from typing import TypeAlias as _TypeAlias, Never as _Never +if sys.version_info >= (3, 10): + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias, Never as _Never + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class _VideoQuality: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _VideoQualityEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_VideoQuality.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _VideoQualityEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoQuality.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor VIDEO_QUALITY_LOW: _VideoQuality.ValueType # 0 VIDEO_QUALITY_MEDIUM: _VideoQuality.ValueType # 1 VIDEO_QUALITY_HIGH: _VideoQuality.ValueType # 2 @@ -46,124 +46,100 @@ class VideoQuality(_VideoQuality, metaclass=_VideoQualityEnumTypeWrapper): VIDEO_QUALITY_LOW: VideoQuality.ValueType # 0 VIDEO_QUALITY_MEDIUM: VideoQuality.ValueType # 1 VIDEO_QUALITY_HIGH: VideoQuality.ValueType # 2 -Global___VideoQuality: _TypeAlias = VideoQuality # noqa: Y015 +global___VideoQuality = VideoQuality -@_typing.final -class EnableRemoteTrackPublicationRequest(_message.Message): +@typing.final +class EnableRemoteTrackPublicationRequest(google.protobuf.message.Message): """Enable/Disable a remote track publication""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - TRACK_PUBLICATION_HANDLE_FIELD_NUMBER: _builtins.int - ENABLED_FIELD_NUMBER: _builtins.int - track_publication_handle: _builtins.int - enabled: _builtins.bool + TRACK_PUBLICATION_HANDLE_FIELD_NUMBER: builtins.int + ENABLED_FIELD_NUMBER: builtins.int + track_publication_handle: builtins.int + enabled: builtins.bool def __init__( self, *, - track_publication_handle: _builtins.int | None = ..., - enabled: _builtins.bool | None = ..., + track_publication_handle: builtins.int | None = ..., + enabled: builtins.bool | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled", "track_publication_handle", b"track_publication_handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled", "track_publication_handle", b"track_publication_handle"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["enabled", b"enabled", "track_publication_handle", b"track_publication_handle"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["enabled", b"enabled", "track_publication_handle", b"track_publication_handle"]) -> None: ... -Global___EnableRemoteTrackPublicationRequest: _TypeAlias = EnableRemoteTrackPublicationRequest # noqa: Y015 +global___EnableRemoteTrackPublicationRequest = EnableRemoteTrackPublicationRequest -@_typing.final -class EnableRemoteTrackPublicationResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class EnableRemoteTrackPublicationResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... -Global___EnableRemoteTrackPublicationResponse: _TypeAlias = EnableRemoteTrackPublicationResponse # noqa: Y015 +global___EnableRemoteTrackPublicationResponse = EnableRemoteTrackPublicationResponse -@_typing.final -class UpdateRemoteTrackPublicationDimensionRequest(_message.Message): +@typing.final +class UpdateRemoteTrackPublicationDimensionRequest(google.protobuf.message.Message): """update a remote track publication dimension""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - TRACK_PUBLICATION_HANDLE_FIELD_NUMBER: _builtins.int - WIDTH_FIELD_NUMBER: _builtins.int - HEIGHT_FIELD_NUMBER: _builtins.int - track_publication_handle: _builtins.int - width: _builtins.int - height: _builtins.int + TRACK_PUBLICATION_HANDLE_FIELD_NUMBER: builtins.int + WIDTH_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + track_publication_handle: builtins.int + width: builtins.int + height: builtins.int def __init__( self, *, - track_publication_handle: _builtins.int | None = ..., - width: _builtins.int | None = ..., - height: _builtins.int | None = ..., + track_publication_handle: builtins.int | None = ..., + width: builtins.int | None = ..., + height: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["height", b"height", "track_publication_handle", b"track_publication_handle", "width", b"width"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["height", b"height", "track_publication_handle", b"track_publication_handle", "width", b"width"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["height", b"height", "track_publication_handle", b"track_publication_handle", "width", b"width"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["height", b"height", "track_publication_handle", b"track_publication_handle", "width", b"width"]) -> None: ... -Global___UpdateRemoteTrackPublicationDimensionRequest: _TypeAlias = UpdateRemoteTrackPublicationDimensionRequest # noqa: Y015 +global___UpdateRemoteTrackPublicationDimensionRequest = UpdateRemoteTrackPublicationDimensionRequest -@_typing.final -class UpdateRemoteTrackPublicationDimensionResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class UpdateRemoteTrackPublicationDimensionResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... -Global___UpdateRemoteTrackPublicationDimensionResponse: _TypeAlias = UpdateRemoteTrackPublicationDimensionResponse # noqa: Y015 +global___UpdateRemoteTrackPublicationDimensionResponse = UpdateRemoteTrackPublicationDimensionResponse -@_typing.final -class SetRemoteTrackPublicationQualityRequest(_message.Message): +@typing.final +class SetRemoteTrackPublicationQualityRequest(google.protobuf.message.Message): """For tracks that support simulcasting, adjust subscribed quality.""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - TRACK_PUBLICATION_HANDLE_FIELD_NUMBER: _builtins.int - QUALITY_FIELD_NUMBER: _builtins.int - track_publication_handle: _builtins.int - quality: Global___VideoQuality.ValueType + TRACK_PUBLICATION_HANDLE_FIELD_NUMBER: builtins.int + QUALITY_FIELD_NUMBER: builtins.int + track_publication_handle: builtins.int + quality: global___VideoQuality.ValueType def __init__( self, *, - track_publication_handle: _builtins.int | None = ..., - quality: Global___VideoQuality.ValueType | None = ..., + track_publication_handle: builtins.int | None = ..., + quality: global___VideoQuality.ValueType | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["quality", b"quality", "track_publication_handle", b"track_publication_handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["quality", b"quality", "track_publication_handle", b"track_publication_handle"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["quality", b"quality", "track_publication_handle", b"track_publication_handle"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["quality", b"quality", "track_publication_handle", b"track_publication_handle"]) -> None: ... -Global___SetRemoteTrackPublicationQualityRequest: _TypeAlias = SetRemoteTrackPublicationQualityRequest # noqa: Y015 +global___SetRemoteTrackPublicationQualityRequest = SetRemoteTrackPublicationQualityRequest -@_typing.final -class SetRemoteTrackPublicationQualityResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class SetRemoteTrackPublicationQualityResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... -Global___SetRemoteTrackPublicationQualityResponse: _TypeAlias = SetRemoteTrackPublicationQualityResponse # noqa: Y015 +global___SetRemoteTrackPublicationQualityResponse = SetRemoteTrackPublicationQualityResponse diff --git a/livekit-rtc/livekit/rtc/_proto/video_frame_pb2.py b/livekit-rtc/livekit/rtc/_proto/video_frame_pb2.py index 81ffbbea..6ff10dde 100644 --- a/livekit-rtc/livekit/rtc/_proto/video_frame_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/video_frame_pb2.py @@ -1,22 +1,12 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE # source: video_frame.proto -# Protobuf Python Version: 7.34.1 +# Protobuf Python Version: 4.25.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 7, - 34, - 1, - '', - 'video_frame.proto' -) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -31,8 +21,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'video_frame_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None _globals['DESCRIPTOR']._serialized_options = b'\252\002\rLiveKit.Proto' _globals['_VIDEOCODEC']._serialized_start=2685 _globals['_VIDEOCODEC']._serialized_end=2744 diff --git a/livekit-rtc/livekit/rtc/_proto/video_frame_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/video_frame_pb2.pyi index 9370b93e..e4df4b99 100644 --- a/livekit-rtc/livekit/rtc/_proto/video_frame_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/video_frame_pb2.pyi @@ -16,30 +16,30 @@ See the License for the specific language governing permissions and limitations under the License. """ -from collections import abc as _abc -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -import builtins as _builtins -from . import handle_pb2 as _handle_pb2 +import builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +from . import handle_pb2 import sys -from . import track_pb2 as _track_pb2 -import typing as _typing +from . import track_pb2 +import typing -if sys.version_info >= (3, 11): - from typing import TypeAlias as _TypeAlias, Never as _Never +if sys.version_info >= (3, 10): + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias, Never as _Never + import typing_extensions -DESCRIPTOR: _descriptor.FileDescriptor +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class _VideoCodec: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _VideoCodecEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_VideoCodec.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _VideoCodecEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoCodec.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor VP8: _VideoCodec.ValueType # 0 H264: _VideoCodec.ValueType # 1 AV1: _VideoCodec.ValueType # 2 @@ -53,14 +53,14 @@ H264: VideoCodec.ValueType # 1 AV1: VideoCodec.ValueType # 2 VP9: VideoCodec.ValueType # 3 H265: VideoCodec.ValueType # 4 -Global___VideoCodec: _TypeAlias = VideoCodec # noqa: Y015 +global___VideoCodec = VideoCodec class _VideoRotation: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _VideoRotationEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_VideoRotation.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _VideoRotationEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoRotation.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor VIDEO_ROTATION_0: _VideoRotation.ValueType # 0 VIDEO_ROTATION_90: _VideoRotation.ValueType # 1 VIDEO_ROTATION_180: _VideoRotation.ValueType # 2 @@ -72,14 +72,14 @@ VIDEO_ROTATION_0: VideoRotation.ValueType # 0 VIDEO_ROTATION_90: VideoRotation.ValueType # 1 VIDEO_ROTATION_180: VideoRotation.ValueType # 2 VIDEO_ROTATION_270: VideoRotation.ValueType # 3 -Global___VideoRotation: _TypeAlias = VideoRotation # noqa: Y015 +global___VideoRotation = VideoRotation class _VideoBufferType: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _VideoBufferTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_VideoBufferType.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _VideoBufferTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoBufferType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor RGBA: _VideoBufferType.ValueType # 0 ABGR: _VideoBufferType.ValueType # 1 ARGB: _VideoBufferType.ValueType # 2 @@ -108,14 +108,14 @@ I422: VideoBufferType.ValueType # 7 I444: VideoBufferType.ValueType # 8 I010: VideoBufferType.ValueType # 9 NV12: VideoBufferType.ValueType # 10 -Global___VideoBufferType: _TypeAlias = VideoBufferType # noqa: Y015 +global___VideoBufferType = VideoBufferType class _VideoStreamType: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _VideoStreamTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_VideoStreamType.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _VideoStreamTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoStreamType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor VIDEO_STREAM_NATIVE: _VideoStreamType.ValueType # 0 VIDEO_STREAM_WEBGL: _VideoStreamType.ValueType # 1 VIDEO_STREAM_HTML: _VideoStreamType.ValueType # 2 @@ -128,41 +128,41 @@ class VideoStreamType(_VideoStreamType, metaclass=_VideoStreamTypeEnumTypeWrappe VIDEO_STREAM_NATIVE: VideoStreamType.ValueType # 0 VIDEO_STREAM_WEBGL: VideoStreamType.ValueType # 1 VIDEO_STREAM_HTML: VideoStreamType.ValueType # 2 -Global___VideoStreamType: _TypeAlias = VideoStreamType # noqa: Y015 +global___VideoStreamType = VideoStreamType class _VideoSourceType: - ValueType = _typing.NewType("ValueType", _builtins.int) - V: _TypeAlias = ValueType # noqa: Y015 + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType -class _VideoSourceTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_VideoSourceType.ValueType], _builtins.type): - DESCRIPTOR: _descriptor.EnumDescriptor +class _VideoSourceTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoSourceType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor VIDEO_SOURCE_NATIVE: _VideoSourceType.ValueType # 0 class VideoSourceType(_VideoSourceType, metaclass=_VideoSourceTypeEnumTypeWrapper): ... VIDEO_SOURCE_NATIVE: VideoSourceType.ValueType # 0 -Global___VideoSourceType: _TypeAlias = VideoSourceType # noqa: Y015 +global___VideoSourceType = VideoSourceType -@_typing.final -class NewVideoStreamRequest(_message.Message): +@typing.final +class NewVideoStreamRequest(google.protobuf.message.Message): """Create a new VideoStream VideoStream is used to receive video frames from a track """ - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - TRACK_HANDLE_FIELD_NUMBER: _builtins.int - TYPE_FIELD_NUMBER: _builtins.int - FORMAT_FIELD_NUMBER: _builtins.int - NORMALIZE_STRIDE_FIELD_NUMBER: _builtins.int - QUEUE_SIZE_FRAMES_FIELD_NUMBER: _builtins.int - track_handle: _builtins.int - type: Global___VideoStreamType.ValueType - format: Global___VideoBufferType.ValueType + TRACK_HANDLE_FIELD_NUMBER: builtins.int + TYPE_FIELD_NUMBER: builtins.int + FORMAT_FIELD_NUMBER: builtins.int + NORMALIZE_STRIDE_FIELD_NUMBER: builtins.int + QUEUE_SIZE_FRAMES_FIELD_NUMBER: builtins.int + track_handle: builtins.int + type: global___VideoStreamType.ValueType + format: global___VideoBufferType.ValueType """Get the frame on a specific format""" - normalize_stride: _builtins.bool + normalize_stride: builtins.bool """if true, stride will be set to width/chroma_width""" - queue_size_frames: _builtins.int + queue_size_frames: builtins.int """Maximum number of queued WebRTC sink frames on the receive path. Omit this field to use the default bounded queue size of 1 frame. Set it to 0 to request unbounded buffering. @@ -175,58 +175,52 @@ class NewVideoStreamRequest(_message.Message): def __init__( self, *, - track_handle: _builtins.int | None = ..., - type: Global___VideoStreamType.ValueType | None = ..., - format: Global___VideoBufferType.ValueType | None = ..., - normalize_stride: _builtins.bool | None = ..., - queue_size_frames: _builtins.int | None = ..., + track_handle: builtins.int | None = ..., + type: global___VideoStreamType.ValueType | None = ..., + format: global___VideoBufferType.ValueType | None = ..., + normalize_stride: builtins.bool | None = ..., + queue_size_frames: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["format", b"format", "normalize_stride", b"normalize_stride", "queue_size_frames", b"queue_size_frames", "track_handle", b"track_handle", "type", b"type"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["format", b"format", "normalize_stride", b"normalize_stride", "queue_size_frames", b"queue_size_frames", "track_handle", b"track_handle", "type", b"type"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["format", b"format", "normalize_stride", b"normalize_stride", "queue_size_frames", b"queue_size_frames", "track_handle", b"track_handle", "type", b"type"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["format", b"format", "normalize_stride", b"normalize_stride", "queue_size_frames", b"queue_size_frames", "track_handle", b"track_handle", "type", b"type"]) -> None: ... -Global___NewVideoStreamRequest: _TypeAlias = NewVideoStreamRequest # noqa: Y015 +global___NewVideoStreamRequest = NewVideoStreamRequest -@_typing.final -class NewVideoStreamResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class NewVideoStreamResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - STREAM_FIELD_NUMBER: _builtins.int - @_builtins.property - def stream(self) -> Global___OwnedVideoStream: ... + STREAM_FIELD_NUMBER: builtins.int + @property + def stream(self) -> global___OwnedVideoStream: ... def __init__( self, *, - stream: Global___OwnedVideoStream | None = ..., + stream: global___OwnedVideoStream | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["stream", b"stream"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["stream", b"stream"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["stream", b"stream"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["stream", b"stream"]) -> None: ... -Global___NewVideoStreamResponse: _TypeAlias = NewVideoStreamResponse # noqa: Y015 +global___NewVideoStreamResponse = NewVideoStreamResponse -@_typing.final -class VideoStreamFromParticipantRequest(_message.Message): +@typing.final +class VideoStreamFromParticipantRequest(google.protobuf.message.Message): """Request a video stream from a participant""" - DESCRIPTOR: _descriptor.Descriptor - - PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int - TYPE_FIELD_NUMBER: _builtins.int - TRACK_SOURCE_FIELD_NUMBER: _builtins.int - FORMAT_FIELD_NUMBER: _builtins.int - NORMALIZE_STRIDE_FIELD_NUMBER: _builtins.int - QUEUE_SIZE_FRAMES_FIELD_NUMBER: _builtins.int - participant_handle: _builtins.int - type: Global___VideoStreamType.ValueType - track_source: _track_pb2.TrackSource.ValueType - format: Global___VideoBufferType.ValueType - normalize_stride: _builtins.bool - queue_size_frames: _builtins.int + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int + TYPE_FIELD_NUMBER: builtins.int + TRACK_SOURCE_FIELD_NUMBER: builtins.int + FORMAT_FIELD_NUMBER: builtins.int + NORMALIZE_STRIDE_FIELD_NUMBER: builtins.int + QUEUE_SIZE_FRAMES_FIELD_NUMBER: builtins.int + participant_handle: builtins.int + type: global___VideoStreamType.ValueType + track_source: track_pb2.TrackSource.ValueType + format: global___VideoBufferType.ValueType + normalize_stride: builtins.bool + queue_size_frames: builtins.int """Maximum number of queued WebRTC sink frames on the receive path. Omit this field to use the default bounded queue size of 1 frame. Set it to 0 to request unbounded buffering. @@ -239,56 +233,50 @@ class VideoStreamFromParticipantRequest(_message.Message): def __init__( self, *, - participant_handle: _builtins.int | None = ..., - type: Global___VideoStreamType.ValueType | None = ..., - track_source: _track_pb2.TrackSource.ValueType | None = ..., - format: Global___VideoBufferType.ValueType | None = ..., - normalize_stride: _builtins.bool | None = ..., - queue_size_frames: _builtins.int | None = ..., + participant_handle: builtins.int | None = ..., + type: global___VideoStreamType.ValueType | None = ..., + track_source: track_pb2.TrackSource.ValueType | None = ..., + format: global___VideoBufferType.ValueType | None = ..., + normalize_stride: builtins.bool | None = ..., + queue_size_frames: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["format", b"format", "normalize_stride", b"normalize_stride", "participant_handle", b"participant_handle", "queue_size_frames", b"queue_size_frames", "track_source", b"track_source", "type", b"type"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["format", b"format", "normalize_stride", b"normalize_stride", "participant_handle", b"participant_handle", "queue_size_frames", b"queue_size_frames", "track_source", b"track_source", "type", b"type"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["format", b"format", "normalize_stride", b"normalize_stride", "participant_handle", b"participant_handle", "queue_size_frames", b"queue_size_frames", "track_source", b"track_source", "type", b"type"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["format", b"format", "normalize_stride", b"normalize_stride", "participant_handle", b"participant_handle", "queue_size_frames", b"queue_size_frames", "track_source", b"track_source", "type", b"type"]) -> None: ... -Global___VideoStreamFromParticipantRequest: _TypeAlias = VideoStreamFromParticipantRequest # noqa: Y015 +global___VideoStreamFromParticipantRequest = VideoStreamFromParticipantRequest -@_typing.final -class VideoStreamFromParticipantResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class VideoStreamFromParticipantResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - STREAM_FIELD_NUMBER: _builtins.int - @_builtins.property - def stream(self) -> Global___OwnedVideoStream: ... + STREAM_FIELD_NUMBER: builtins.int + @property + def stream(self) -> global___OwnedVideoStream: ... def __init__( self, *, - stream: Global___OwnedVideoStream | None = ..., + stream: global___OwnedVideoStream | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["stream", b"stream"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["stream", b"stream"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["stream", b"stream"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["stream", b"stream"]) -> None: ... -Global___VideoStreamFromParticipantResponse: _TypeAlias = VideoStreamFromParticipantResponse # noqa: Y015 +global___VideoStreamFromParticipantResponse = VideoStreamFromParticipantResponse -@_typing.final -class NewVideoSourceRequest(_message.Message): +@typing.final +class NewVideoSourceRequest(google.protobuf.message.Message): """Create a new VideoSource VideoSource is used to send video frame to a track """ - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - TYPE_FIELD_NUMBER: _builtins.int - RESOLUTION_FIELD_NUMBER: _builtins.int - IS_SCREENCAST_FIELD_NUMBER: _builtins.int - type: Global___VideoSourceType.ValueType - is_screencast: _builtins.bool - @_builtins.property - def resolution(self) -> Global___VideoSourceResolution: + TYPE_FIELD_NUMBER: builtins.int + RESOLUTION_FIELD_NUMBER: builtins.int + IS_SCREENCAST_FIELD_NUMBER: builtins.int + type: global___VideoSourceType.ValueType + is_screencast: builtins.bool + @property + def resolution(self) -> global___VideoSourceResolution: """Used to determine which encodings to use + simulcast layers Most of the time it corresponds to the source resolution """ @@ -296,457 +284,394 @@ class NewVideoSourceRequest(_message.Message): def __init__( self, *, - type: Global___VideoSourceType.ValueType | None = ..., - resolution: Global___VideoSourceResolution | None = ..., - is_screencast: _builtins.bool | None = ..., + type: global___VideoSourceType.ValueType | None = ..., + resolution: global___VideoSourceResolution | None = ..., + is_screencast: builtins.bool | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["is_screencast", b"is_screencast", "resolution", b"resolution", "type", b"type"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["is_screencast", b"is_screencast", "resolution", b"resolution", "type", b"type"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["is_screencast", b"is_screencast", "resolution", b"resolution", "type", b"type"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["is_screencast", b"is_screencast", "resolution", b"resolution", "type", b"type"]) -> None: ... -Global___NewVideoSourceRequest: _TypeAlias = NewVideoSourceRequest # noqa: Y015 +global___NewVideoSourceRequest = NewVideoSourceRequest -@_typing.final -class NewVideoSourceResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class NewVideoSourceResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - SOURCE_FIELD_NUMBER: _builtins.int - @_builtins.property - def source(self) -> Global___OwnedVideoSource: ... + SOURCE_FIELD_NUMBER: builtins.int + @property + def source(self) -> global___OwnedVideoSource: ... def __init__( self, *, - source: Global___OwnedVideoSource | None = ..., + source: global___OwnedVideoSource | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["source", b"source"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["source", b"source"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["source", b"source"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["source", b"source"]) -> None: ... -Global___NewVideoSourceResponse: _TypeAlias = NewVideoSourceResponse # noqa: Y015 +global___NewVideoSourceResponse = NewVideoSourceResponse -@_typing.final -class CaptureVideoFrameRequest(_message.Message): +@typing.final +class CaptureVideoFrameRequest(google.protobuf.message.Message): """Push a frame to a VideoSource""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - SOURCE_HANDLE_FIELD_NUMBER: _builtins.int - BUFFER_FIELD_NUMBER: _builtins.int - TIMESTAMP_US_FIELD_NUMBER: _builtins.int - ROTATION_FIELD_NUMBER: _builtins.int - METADATA_FIELD_NUMBER: _builtins.int - source_handle: _builtins.int - timestamp_us: _builtins.int + SOURCE_HANDLE_FIELD_NUMBER: builtins.int + BUFFER_FIELD_NUMBER: builtins.int + TIMESTAMP_US_FIELD_NUMBER: builtins.int + ROTATION_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + source_handle: builtins.int + timestamp_us: builtins.int """In microseconds""" - rotation: Global___VideoRotation.ValueType - @_builtins.property - def buffer(self) -> Global___VideoBufferInfo: ... - @_builtins.property - def metadata(self) -> Global___FrameMetadata: ... + rotation: global___VideoRotation.ValueType + @property + def buffer(self) -> global___VideoBufferInfo: ... + @property + def metadata(self) -> global___FrameMetadata: ... def __init__( self, *, - source_handle: _builtins.int | None = ..., - buffer: Global___VideoBufferInfo | None = ..., - timestamp_us: _builtins.int | None = ..., - rotation: Global___VideoRotation.ValueType | None = ..., - metadata: Global___FrameMetadata | None = ..., + source_handle: builtins.int | None = ..., + buffer: global___VideoBufferInfo | None = ..., + timestamp_us: builtins.int | None = ..., + rotation: global___VideoRotation.ValueType | None = ..., + metadata: global___FrameMetadata | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "metadata", b"metadata", "rotation", b"rotation", "source_handle", b"source_handle", "timestamp_us", b"timestamp_us"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "metadata", b"metadata", "rotation", b"rotation", "source_handle", b"source_handle", "timestamp_us", b"timestamp_us"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["buffer", b"buffer", "metadata", b"metadata", "rotation", b"rotation", "source_handle", b"source_handle", "timestamp_us", b"timestamp_us"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["buffer", b"buffer", "metadata", b"metadata", "rotation", b"rotation", "source_handle", b"source_handle", "timestamp_us", b"timestamp_us"]) -> None: ... -Global___CaptureVideoFrameRequest: _TypeAlias = CaptureVideoFrameRequest # noqa: Y015 +global___CaptureVideoFrameRequest = CaptureVideoFrameRequest -@_typing.final -class CaptureVideoFrameResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class CaptureVideoFrameResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___CaptureVideoFrameResponse: _TypeAlias = CaptureVideoFrameResponse # noqa: Y015 - -@_typing.final -class VideoConvertRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - FLIP_Y_FIELD_NUMBER: _builtins.int - BUFFER_FIELD_NUMBER: _builtins.int - DST_TYPE_FIELD_NUMBER: _builtins.int - flip_y: _builtins.bool - dst_type: Global___VideoBufferType.ValueType - @_builtins.property - def buffer(self) -> Global___VideoBufferInfo: ... + +global___CaptureVideoFrameResponse = CaptureVideoFrameResponse + +@typing.final +class VideoConvertRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FLIP_Y_FIELD_NUMBER: builtins.int + BUFFER_FIELD_NUMBER: builtins.int + DST_TYPE_FIELD_NUMBER: builtins.int + flip_y: builtins.bool + dst_type: global___VideoBufferType.ValueType + @property + def buffer(self) -> global___VideoBufferInfo: ... def __init__( self, *, - flip_y: _builtins.bool | None = ..., - buffer: Global___VideoBufferInfo | None = ..., - dst_type: Global___VideoBufferType.ValueType | None = ..., + flip_y: builtins.bool | None = ..., + buffer: global___VideoBufferInfo | None = ..., + dst_type: global___VideoBufferType.ValueType | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "dst_type", b"dst_type", "flip_y", b"flip_y"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "dst_type", b"dst_type", "flip_y", b"flip_y"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___VideoConvertRequest: _TypeAlias = VideoConvertRequest # noqa: Y015 - -@_typing.final -class VideoConvertResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - ERROR_FIELD_NUMBER: _builtins.int - BUFFER_FIELD_NUMBER: _builtins.int - error: _builtins.str - @_builtins.property - def buffer(self) -> Global___OwnedVideoBuffer: ... + def HasField(self, field_name: typing.Literal["buffer", b"buffer", "dst_type", b"dst_type", "flip_y", b"flip_y"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["buffer", b"buffer", "dst_type", b"dst_type", "flip_y", b"flip_y"]) -> None: ... + +global___VideoConvertRequest = VideoConvertRequest + +@typing.final +class VideoConvertResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ERROR_FIELD_NUMBER: builtins.int + BUFFER_FIELD_NUMBER: builtins.int + error: builtins.str + @property + def buffer(self) -> global___OwnedVideoBuffer: ... def __init__( self, *, - error: _builtins.str | None = ..., - buffer: Global___OwnedVideoBuffer | None = ..., + error: builtins.str | None = ..., + buffer: global___OwnedVideoBuffer | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "error", b"error", "message", b"message"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "error", b"error", "message", b"message"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["error", "buffer"] # noqa: Y015 - _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 - def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... - -Global___VideoConvertResponse: _TypeAlias = VideoConvertResponse # noqa: Y015 - -@_typing.final -class VideoResolution(_message.Message): + def HasField(self, field_name: typing.Literal["buffer", b"buffer", "error", b"error", "message", b"message"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["buffer", b"buffer", "error", b"error", "message", b"message"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["error", "buffer"] | None: ... + +global___VideoConvertResponse = VideoConvertResponse + +@typing.final +class VideoResolution(google.protobuf.message.Message): """ VideoFrame buffers """ - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - WIDTH_FIELD_NUMBER: _builtins.int - HEIGHT_FIELD_NUMBER: _builtins.int - FRAME_RATE_FIELD_NUMBER: _builtins.int - width: _builtins.int - height: _builtins.int - frame_rate: _builtins.float + WIDTH_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + FRAME_RATE_FIELD_NUMBER: builtins.int + width: builtins.int + height: builtins.int + frame_rate: builtins.float def __init__( self, *, - width: _builtins.int | None = ..., - height: _builtins.int | None = ..., - frame_rate: _builtins.float | None = ..., + width: builtins.int | None = ..., + height: builtins.int | None = ..., + frame_rate: builtins.float | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["frame_rate", b"frame_rate", "height", b"height", "width", b"width"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["frame_rate", b"frame_rate", "height", b"height", "width", b"width"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___VideoResolution: _TypeAlias = VideoResolution # noqa: Y015 - -@_typing.final -class VideoBufferInfo(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - @_typing.final - class ComponentInfo(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - DATA_PTR_FIELD_NUMBER: _builtins.int - STRIDE_FIELD_NUMBER: _builtins.int - SIZE_FIELD_NUMBER: _builtins.int - data_ptr: _builtins.int - stride: _builtins.int - size: _builtins.int + def HasField(self, field_name: typing.Literal["frame_rate", b"frame_rate", "height", b"height", "width", b"width"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["frame_rate", b"frame_rate", "height", b"height", "width", b"width"]) -> None: ... + +global___VideoResolution = VideoResolution + +@typing.final +class VideoBufferInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class ComponentInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DATA_PTR_FIELD_NUMBER: builtins.int + STRIDE_FIELD_NUMBER: builtins.int + SIZE_FIELD_NUMBER: builtins.int + data_ptr: builtins.int + stride: builtins.int + size: builtins.int def __init__( self, *, - data_ptr: _builtins.int | None = ..., - stride: _builtins.int | None = ..., - size: _builtins.int | None = ..., + data_ptr: builtins.int | None = ..., + stride: builtins.int | None = ..., + size: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["data_ptr", b"data_ptr", "size", b"size", "stride", b"stride"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["data_ptr", b"data_ptr", "size", b"size", "stride", b"stride"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - - TYPE_FIELD_NUMBER: _builtins.int - WIDTH_FIELD_NUMBER: _builtins.int - HEIGHT_FIELD_NUMBER: _builtins.int - DATA_PTR_FIELD_NUMBER: _builtins.int - STRIDE_FIELD_NUMBER: _builtins.int - COMPONENTS_FIELD_NUMBER: _builtins.int - type: Global___VideoBufferType.ValueType - width: _builtins.int - height: _builtins.int - data_ptr: _builtins.int - stride: _builtins.int + def HasField(self, field_name: typing.Literal["data_ptr", b"data_ptr", "size", b"size", "stride", b"stride"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["data_ptr", b"data_ptr", "size", b"size", "stride", b"stride"]) -> None: ... + + TYPE_FIELD_NUMBER: builtins.int + WIDTH_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + DATA_PTR_FIELD_NUMBER: builtins.int + STRIDE_FIELD_NUMBER: builtins.int + COMPONENTS_FIELD_NUMBER: builtins.int + type: global___VideoBufferType.ValueType + width: builtins.int + height: builtins.int + data_ptr: builtins.int + stride: builtins.int """only for packed formats""" - @_builtins.property - def components(self) -> _containers.RepeatedCompositeFieldContainer[Global___VideoBufferInfo.ComponentInfo]: ... + @property + def components(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___VideoBufferInfo.ComponentInfo]: ... def __init__( self, *, - type: Global___VideoBufferType.ValueType | None = ..., - width: _builtins.int | None = ..., - height: _builtins.int | None = ..., - data_ptr: _builtins.int | None = ..., - stride: _builtins.int | None = ..., - components: _abc.Iterable[Global___VideoBufferInfo.ComponentInfo] | None = ..., + type: global___VideoBufferType.ValueType | None = ..., + width: builtins.int | None = ..., + height: builtins.int | None = ..., + data_ptr: builtins.int | None = ..., + stride: builtins.int | None = ..., + components: collections.abc.Iterable[global___VideoBufferInfo.ComponentInfo] | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["data_ptr", b"data_ptr", "height", b"height", "stride", b"stride", "type", b"type", "width", b"width"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["components", b"components", "data_ptr", b"data_ptr", "height", b"height", "stride", b"stride", "type", b"type", "width", b"width"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___VideoBufferInfo: _TypeAlias = VideoBufferInfo # noqa: Y015 - -@_typing.final -class OwnedVideoBuffer(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - HANDLE_FIELD_NUMBER: _builtins.int - INFO_FIELD_NUMBER: _builtins.int - @_builtins.property - def handle(self) -> _handle_pb2.FfiOwnedHandle: ... - @_builtins.property - def info(self) -> Global___VideoBufferInfo: ... + def HasField(self, field_name: typing.Literal["data_ptr", b"data_ptr", "height", b"height", "stride", b"stride", "type", b"type", "width", b"width"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["components", b"components", "data_ptr", b"data_ptr", "height", b"height", "stride", b"stride", "type", b"type", "width", b"width"]) -> None: ... + +global___VideoBufferInfo = VideoBufferInfo + +@typing.final +class OwnedVideoBuffer(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HANDLE_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + @property + def handle(self) -> handle_pb2.FfiOwnedHandle: ... + @property + def info(self) -> global___VideoBufferInfo: ... def __init__( self, *, - handle: _handle_pb2.FfiOwnedHandle | None = ..., - info: Global___VideoBufferInfo | None = ..., + handle: handle_pb2.FfiOwnedHandle | None = ..., + info: global___VideoBufferInfo | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___OwnedVideoBuffer: _TypeAlias = OwnedVideoBuffer # noqa: Y015 - -@_typing.final -class FrameMetadata(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - USER_TIMESTAMP_FIELD_NUMBER: _builtins.int - FRAME_ID_FIELD_NUMBER: _builtins.int - user_timestamp: _builtins.int - frame_id: _builtins.int + def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... + +global___OwnedVideoBuffer = OwnedVideoBuffer + +@typing.final +class FrameMetadata(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + USER_TIMESTAMP_FIELD_NUMBER: builtins.int + FRAME_ID_FIELD_NUMBER: builtins.int + user_timestamp: builtins.int + frame_id: builtins.int def __init__( self, *, - user_timestamp: _builtins.int | None = ..., - frame_id: _builtins.int | None = ..., + user_timestamp: builtins.int | None = ..., + frame_id: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["frame_id", b"frame_id", "user_timestamp", b"user_timestamp"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["frame_id", b"frame_id", "user_timestamp", b"user_timestamp"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["frame_id", b"frame_id", "user_timestamp", b"user_timestamp"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["frame_id", b"frame_id", "user_timestamp", b"user_timestamp"]) -> None: ... -Global___FrameMetadata: _TypeAlias = FrameMetadata # noqa: Y015 +global___FrameMetadata = FrameMetadata -@_typing.final -class VideoStreamInfo(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class VideoStreamInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - TYPE_FIELD_NUMBER: _builtins.int - type: Global___VideoStreamType.ValueType + TYPE_FIELD_NUMBER: builtins.int + type: global___VideoStreamType.ValueType def __init__( self, *, - type: Global___VideoStreamType.ValueType | None = ..., + type: global___VideoStreamType.ValueType | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["type", b"type"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["type", b"type"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___VideoStreamInfo: _TypeAlias = VideoStreamInfo # noqa: Y015 - -@_typing.final -class OwnedVideoStream(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - HANDLE_FIELD_NUMBER: _builtins.int - INFO_FIELD_NUMBER: _builtins.int - @_builtins.property - def handle(self) -> _handle_pb2.FfiOwnedHandle: ... - @_builtins.property - def info(self) -> Global___VideoStreamInfo: ... + def HasField(self, field_name: typing.Literal["type", b"type"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["type", b"type"]) -> None: ... + +global___VideoStreamInfo = VideoStreamInfo + +@typing.final +class OwnedVideoStream(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HANDLE_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + @property + def handle(self) -> handle_pb2.FfiOwnedHandle: ... + @property + def info(self) -> global___VideoStreamInfo: ... def __init__( self, *, - handle: _handle_pb2.FfiOwnedHandle | None = ..., - info: Global___VideoStreamInfo | None = ..., + handle: handle_pb2.FfiOwnedHandle | None = ..., + info: global___VideoStreamInfo | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___OwnedVideoStream: _TypeAlias = OwnedVideoStream # noqa: Y015 - -@_typing.final -class VideoStreamEvent(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - STREAM_HANDLE_FIELD_NUMBER: _builtins.int - FRAME_RECEIVED_FIELD_NUMBER: _builtins.int - EOS_FIELD_NUMBER: _builtins.int - stream_handle: _builtins.int - @_builtins.property - def frame_received(self) -> Global___VideoFrameReceived: ... - @_builtins.property - def eos(self) -> Global___VideoStreamEOS: ... + def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... + +global___OwnedVideoStream = OwnedVideoStream + +@typing.final +class VideoStreamEvent(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + STREAM_HANDLE_FIELD_NUMBER: builtins.int + FRAME_RECEIVED_FIELD_NUMBER: builtins.int + EOS_FIELD_NUMBER: builtins.int + stream_handle: builtins.int + @property + def frame_received(self) -> global___VideoFrameReceived: ... + @property + def eos(self) -> global___VideoStreamEOS: ... def __init__( self, *, - stream_handle: _builtins.int | None = ..., - frame_received: Global___VideoFrameReceived | None = ..., - eos: Global___VideoStreamEOS | None = ..., + stream_handle: builtins.int | None = ..., + frame_received: global___VideoFrameReceived | None = ..., + eos: global___VideoStreamEOS | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["eos", b"eos", "frame_received", b"frame_received", "message", b"message", "stream_handle", b"stream_handle"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["eos", b"eos", "frame_received", b"frame_received", "message", b"message", "stream_handle", b"stream_handle"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["frame_received", "eos"] # noqa: Y015 - _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 - def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... - -Global___VideoStreamEvent: _TypeAlias = VideoStreamEvent # noqa: Y015 - -@_typing.final -class VideoFrameReceived(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - BUFFER_FIELD_NUMBER: _builtins.int - TIMESTAMP_US_FIELD_NUMBER: _builtins.int - ROTATION_FIELD_NUMBER: _builtins.int - METADATA_FIELD_NUMBER: _builtins.int - timestamp_us: _builtins.int + def HasField(self, field_name: typing.Literal["eos", b"eos", "frame_received", b"frame_received", "message", b"message", "stream_handle", b"stream_handle"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["eos", b"eos", "frame_received", b"frame_received", "message", b"message", "stream_handle", b"stream_handle"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["frame_received", "eos"] | None: ... + +global___VideoStreamEvent = VideoStreamEvent + +@typing.final +class VideoFrameReceived(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BUFFER_FIELD_NUMBER: builtins.int + TIMESTAMP_US_FIELD_NUMBER: builtins.int + ROTATION_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + timestamp_us: builtins.int """In microseconds""" - rotation: Global___VideoRotation.ValueType - @_builtins.property - def buffer(self) -> Global___OwnedVideoBuffer: ... - @_builtins.property - def metadata(self) -> Global___FrameMetadata: ... + rotation: global___VideoRotation.ValueType + @property + def buffer(self) -> global___OwnedVideoBuffer: ... + @property + def metadata(self) -> global___FrameMetadata: ... def __init__( self, *, - buffer: Global___OwnedVideoBuffer | None = ..., - timestamp_us: _builtins.int | None = ..., - rotation: Global___VideoRotation.ValueType | None = ..., - metadata: Global___FrameMetadata | None = ..., + buffer: global___OwnedVideoBuffer | None = ..., + timestamp_us: builtins.int | None = ..., + rotation: global___VideoRotation.ValueType | None = ..., + metadata: global___FrameMetadata | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "metadata", b"metadata", "rotation", b"rotation", "timestamp_us", b"timestamp_us"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "metadata", b"metadata", "rotation", b"rotation", "timestamp_us", b"timestamp_us"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["buffer", b"buffer", "metadata", b"metadata", "rotation", b"rotation", "timestamp_us", b"timestamp_us"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["buffer", b"buffer", "metadata", b"metadata", "rotation", b"rotation", "timestamp_us", b"timestamp_us"]) -> None: ... -Global___VideoFrameReceived: _TypeAlias = VideoFrameReceived # noqa: Y015 +global___VideoFrameReceived = VideoFrameReceived -@_typing.final -class VideoStreamEOS(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class VideoStreamEOS(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... - _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... -Global___VideoStreamEOS: _TypeAlias = VideoStreamEOS # noqa: Y015 +global___VideoStreamEOS = VideoStreamEOS -@_typing.final -class VideoSourceResolution(_message.Message): +@typing.final +class VideoSourceResolution(google.protobuf.message.Message): """ VideoSource """ - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.descriptor.Descriptor - WIDTH_FIELD_NUMBER: _builtins.int - HEIGHT_FIELD_NUMBER: _builtins.int - width: _builtins.int - height: _builtins.int + WIDTH_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + width: builtins.int + height: builtins.int def __init__( self, *, - width: _builtins.int | None = ..., - height: _builtins.int | None = ..., + width: builtins.int | None = ..., + height: builtins.int | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["height", b"height", "width", b"width"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["height", b"height", "width", b"width"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["height", b"height", "width", b"width"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["height", b"height", "width", b"width"]) -> None: ... -Global___VideoSourceResolution: _TypeAlias = VideoSourceResolution # noqa: Y015 +global___VideoSourceResolution = VideoSourceResolution -@_typing.final -class VideoSourceInfo(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class VideoSourceInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - TYPE_FIELD_NUMBER: _builtins.int - type: Global___VideoSourceType.ValueType + TYPE_FIELD_NUMBER: builtins.int + type: global___VideoSourceType.ValueType def __init__( self, *, - type: Global___VideoSourceType.ValueType | None = ..., + type: global___VideoSourceType.ValueType | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["type", b"type"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["type", b"type"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... - -Global___VideoSourceInfo: _TypeAlias = VideoSourceInfo # noqa: Y015 - -@_typing.final -class OwnedVideoSource(_message.Message): - DESCRIPTOR: _descriptor.Descriptor - - HANDLE_FIELD_NUMBER: _builtins.int - INFO_FIELD_NUMBER: _builtins.int - @_builtins.property - def handle(self) -> _handle_pb2.FfiOwnedHandle: ... - @_builtins.property - def info(self) -> Global___VideoSourceInfo: ... + def HasField(self, field_name: typing.Literal["type", b"type"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["type", b"type"]) -> None: ... + +global___VideoSourceInfo = VideoSourceInfo + +@typing.final +class OwnedVideoSource(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HANDLE_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + @property + def handle(self) -> handle_pb2.FfiOwnedHandle: ... + @property + def info(self) -> global___VideoSourceInfo: ... def __init__( self, *, - handle: _handle_pb2.FfiOwnedHandle | None = ..., - info: Global___VideoSourceInfo | None = ..., + handle: handle_pb2.FfiOwnedHandle | None = ..., + info: global___VideoSourceInfo | None = ..., ) -> None: ... - _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def WhichOneof(self, oneof_group: _Never) -> None: ... + def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... -Global___OwnedVideoSource: _TypeAlias = OwnedVideoSource # noqa: Y015 +global___OwnedVideoSource = OwnedVideoSource From acfdf2eca11f40382a42247ba80a6186b5b1cfc9 Mon Sep 17 00:00:00 2001 From: David Zhao Date: Sat, 9 May 2026 22:46:17 -0700 Subject: [PATCH 4/6] update protocol --- livekit-protocol/protocol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/livekit-protocol/protocol b/livekit-protocol/protocol index da9e3f70..a0e71499 160000 --- a/livekit-protocol/protocol +++ b/livekit-protocol/protocol @@ -1 +1 @@ -Subproject commit da9e3f70b89e7b1874b2712bb92b58687c853fcf +Subproject commit a0e714995ccbf0a2f4c8df29630e4910c8c9a09a From 57d403065b71958cc685479be3c7621dc6dfa8b5 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 10 May 2026 05:46:51 +0000 Subject: [PATCH 5/6] generated protobuf --- livekit-protocol/livekit/protocol/agent.py | 80 ++--- livekit-protocol/livekit/protocol/agent.pyi | 16 +- .../livekit/protocol/agent_dispatch.py | 36 +-- .../livekit/protocol/agent_dispatch.pyi | 24 +- livekit-protocol/livekit/protocol/sip.py | 276 +++++++++--------- livekit-protocol/livekit/protocol/sip.pyi | 36 ++- 6 files changed, 251 insertions(+), 217 deletions(-) diff --git a/livekit-protocol/livekit/protocol/agent.py b/livekit-protocol/livekit/protocol/agent.py index 1bbd903d..ab8a4b52 100644 --- a/livekit-protocol/livekit/protocol/agent.py +++ b/livekit-protocol/livekit/protocol/agent.py @@ -16,7 +16,7 @@ from .logger_pb import options as logger_dot_options__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13livekit_agent.proto\x12\x07livekit\x1a\x14livekit_models.proto\x1a\x14logger/options.proto\"\xc4\x02\n\x03Job\x12\n\n\x02id\x18\x01 \x01(\t\x12\"\n\x0b\x64ispatch_id\x18\t \x01(\tB\r\xbaP\ndispatchID\x12\x1e\n\x04type\x18\x02 \x01(\x0e\x32\x10.livekit.JobType\x12\x1b\n\x04room\x18\x03 \x01(\x0b\x32\r.livekit.Room\x12\x32\n\x0bparticipant\x18\x04 \x01(\x0b\x32\x18.livekit.ParticipantInfoH\x00\x88\x01\x01\x12\x15\n\tnamespace\x18\x05 \x01(\tB\x02\x18\x01\x12\x10\n\x08metadata\x18\x06 \x01(\t\x12\x12\n\nagent_name\x18\x07 \x01(\t\x12 \n\x05state\x18\x08 \x01(\x0b\x32\x11.livekit.JobState\x12\x18\n\x10\x65nable_recording\x18\n \x01(\x08\x12\x13\n\x0b\x65nvironment\x18\x0b \x01(\tB\x0e\n\x0c_participant\"\xd3\x01\n\x08JobState\x12\"\n\x06status\x18\x01 \x01(\x0e\x32\x12.livekit.JobStatus\x12\r\n\x05\x65rror\x18\x02 \x01(\t\x12\x12\n\nstarted_at\x18\x03 \x01(\x03\x12\x10\n\x08\x65nded_at\x18\x04 \x01(\x03\x12\x12\n\nupdated_at\x18\x05 \x01(\x03\x12\x1c\n\x14participant_identity\x18\x06 \x01(\t\x12\x1e\n\tworker_id\x18\x07 \x01(\tB\x0b\xbaP\x08workerID\x12\x1c\n\x08\x61gent_id\x18\x08 \x01(\tB\n\xbaP\x07\x61gentID\"\xf8\x02\n\rWorkerMessage\x12\x32\n\x08register\x18\x01 \x01(\x0b\x32\x1e.livekit.RegisterWorkerRequestH\x00\x12\x35\n\x0c\x61vailability\x18\x02 \x01(\x0b\x32\x1d.livekit.AvailabilityResponseH\x00\x12\x34\n\rupdate_worker\x18\x03 \x01(\x0b\x32\x1b.livekit.UpdateWorkerStatusH\x00\x12.\n\nupdate_job\x18\x04 \x01(\x0b\x32\x18.livekit.UpdateJobStatusH\x00\x12#\n\x04ping\x18\x05 \x01(\x0b\x32\x13.livekit.WorkerPingH\x00\x12\x33\n\x0csimulate_job\x18\x06 \x01(\x0b\x32\x1b.livekit.SimulateJobRequestH\x00\x12\x31\n\x0bmigrate_job\x18\x07 \x01(\x0b\x32\x1a.livekit.MigrateJobRequestH\x00\x42\t\n\x07message\"\x88\x02\n\rServerMessage\x12\x33\n\x08register\x18\x01 \x01(\x0b\x32\x1f.livekit.RegisterWorkerResponseH\x00\x12\x34\n\x0c\x61vailability\x18\x02 \x01(\x0b\x32\x1c.livekit.AvailabilityRequestH\x00\x12,\n\nassignment\x18\x03 \x01(\x0b\x32\x16.livekit.JobAssignmentH\x00\x12.\n\x0btermination\x18\x05 \x01(\x0b\x32\x17.livekit.JobTerminationH\x00\x12#\n\x04pong\x18\x04 \x01(\x0b\x32\x13.livekit.WorkerPongH\x00\x42\t\n\x07message\"\x80\x01\n\x12SimulateJobRequest\x12\x1e\n\x04type\x18\x01 \x01(\x0e\x32\x10.livekit.JobType\x12\x1b\n\x04room\x18\x02 \x01(\x0b\x32\r.livekit.Room\x12-\n\x0bparticipant\x18\x03 \x01(\x0b\x32\x18.livekit.ParticipantInfo\"\x1f\n\nWorkerPing\x12\x11\n\ttimestamp\x18\x01 \x01(\x03\"7\n\nWorkerPong\x12\x16\n\x0elast_timestamp\x18\x01 \x01(\x03\x12\x11\n\ttimestamp\x18\x02 \x01(\x03\"\xeb\x01\n\x15RegisterWorkerRequest\x12\x1e\n\x04type\x18\x01 \x01(\x0e\x32\x10.livekit.JobType\x12\x12\n\nagent_name\x18\x08 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t\x12\x15\n\rping_interval\x18\x05 \x01(\r\x12\x16\n\tnamespace\x18\x06 \x01(\tH\x00\x88\x01\x01\x12;\n\x13\x61llowed_permissions\x18\x07 \x01(\x0b\x32\x1e.livekit.ParticipantPermission\x12\x13\n\x0b\x65nvironment\x18\t \x01(\tB\x0c\n\n_namespace\"b\n\x16RegisterWorkerResponse\x12\x1e\n\tworker_id\x18\x01 \x01(\tB\x0b\xbaP\x08workerID\x12(\n\x0bserver_info\x18\x03 \x01(\x0b\x32\x13.livekit.ServerInfo\"$\n\x11MigrateJobRequest\x12\x0f\n\x07job_ids\x18\x02 \x03(\t\"B\n\x13\x41vailabilityRequest\x12\x19\n\x03job\x18\x01 \x01(\x0b\x32\x0c.livekit.Job\x12\x10\n\x08resuming\x18\x02 \x01(\x08\"\xdd\x02\n\x14\x41vailabilityResponse\x12\x18\n\x06job_id\x18\x01 \x01(\tB\x08\xbaP\x05jobID\x12\x11\n\tavailable\x18\x02 \x01(\x08\x12\x17\n\x0fsupports_resume\x18\x03 \x01(\x08\x12\x11\n\tterminate\x18\x08 \x01(\x08\x12\x18\n\x10participant_name\x18\x04 \x01(\t\x12\x1c\n\x14participant_identity\x18\x05 \x01(\t\x12\x1c\n\x14participant_metadata\x18\x06 \x01(\t\x12X\n\x16participant_attributes\x18\x07 \x03(\x0b\x32\x38.livekit.AvailabilityResponse.ParticipantAttributesEntry\x1a<\n\x1aParticipantAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"^\n\x0fUpdateJobStatus\x12\x18\n\x06job_id\x18\x01 \x01(\tB\x08\xbaP\x05jobID\x12\"\n\x06status\x18\x02 \x01(\x0e\x32\x12.livekit.JobStatus\x12\r\n\x05\x65rror\x18\x03 \x01(\t\"l\n\x12UpdateWorkerStatus\x12*\n\x06status\x18\x01 \x01(\x0e\x32\x15.livekit.WorkerStatusH\x00\x88\x01\x01\x12\x0c\n\x04load\x18\x03 \x01(\x02\x12\x11\n\tjob_count\x18\x04 \x01(\rB\t\n\x07_status\"S\n\rJobAssignment\x12\x19\n\x03job\x18\x01 \x01(\x0b\x32\x0c.livekit.Job\x12\x10\n\x03url\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\r\n\x05token\x18\x03 \x01(\tB\x06\n\x04_url\"*\n\x0eJobTermination\x12\x18\n\x06job_id\x18\x01 \x01(\tB\x08\xbaP\x05jobID*<\n\x07JobType\x12\x0b\n\x07JT_ROOM\x10\x00\x12\x10\n\x0cJT_PUBLISHER\x10\x01\x12\x12\n\x0eJT_PARTICIPANT\x10\x02*-\n\x0cWorkerStatus\x12\x10\n\x0cWS_AVAILABLE\x10\x00\x12\x0b\n\x07WS_FULL\x10\x01*J\n\tJobStatus\x12\x0e\n\nJS_PENDING\x10\x00\x12\x0e\n\nJS_RUNNING\x10\x01\x12\x0e\n\nJS_SUCCESS\x10\x02\x12\r\n\tJS_FAILED\x10\x03\x42\x46Z#github.com/livekit/protocol/livekit\xaa\x02\rLiveKit.Proto\xea\x02\x0eLiveKit::Protob\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13livekit_agent.proto\x12\x07livekit\x1a\x14livekit_models.proto\x1a\x14logger/options.proto\"\xc3\x02\n\x03Job\x12\n\n\x02id\x18\x01 \x01(\t\x12\"\n\x0b\x64ispatch_id\x18\t \x01(\tB\r\xbaP\ndispatchID\x12\x1e\n\x04type\x18\x02 \x01(\x0e\x32\x10.livekit.JobType\x12\x1b\n\x04room\x18\x03 \x01(\x0b\x32\r.livekit.Room\x12\x32\n\x0bparticipant\x18\x04 \x01(\x0b\x32\x18.livekit.ParticipantInfoH\x00\x88\x01\x01\x12\x15\n\tnamespace\x18\x05 \x01(\tB\x02\x18\x01\x12\x10\n\x08metadata\x18\x06 \x01(\t\x12\x12\n\nagent_name\x18\x07 \x01(\t\x12 \n\x05state\x18\x08 \x01(\x0b\x32\x11.livekit.JobState\x12\x18\n\x10\x65nable_recording\x18\n \x01(\x08\x12\x12\n\ndeployment\x18\x0b \x01(\tB\x0e\n\x0c_participant\"\xd3\x01\n\x08JobState\x12\"\n\x06status\x18\x01 \x01(\x0e\x32\x12.livekit.JobStatus\x12\r\n\x05\x65rror\x18\x02 \x01(\t\x12\x12\n\nstarted_at\x18\x03 \x01(\x03\x12\x10\n\x08\x65nded_at\x18\x04 \x01(\x03\x12\x12\n\nupdated_at\x18\x05 \x01(\x03\x12\x1c\n\x14participant_identity\x18\x06 \x01(\t\x12\x1e\n\tworker_id\x18\x07 \x01(\tB\x0b\xbaP\x08workerID\x12\x1c\n\x08\x61gent_id\x18\x08 \x01(\tB\n\xbaP\x07\x61gentID\"\xf8\x02\n\rWorkerMessage\x12\x32\n\x08register\x18\x01 \x01(\x0b\x32\x1e.livekit.RegisterWorkerRequestH\x00\x12\x35\n\x0c\x61vailability\x18\x02 \x01(\x0b\x32\x1d.livekit.AvailabilityResponseH\x00\x12\x34\n\rupdate_worker\x18\x03 \x01(\x0b\x32\x1b.livekit.UpdateWorkerStatusH\x00\x12.\n\nupdate_job\x18\x04 \x01(\x0b\x32\x18.livekit.UpdateJobStatusH\x00\x12#\n\x04ping\x18\x05 \x01(\x0b\x32\x13.livekit.WorkerPingH\x00\x12\x33\n\x0csimulate_job\x18\x06 \x01(\x0b\x32\x1b.livekit.SimulateJobRequestH\x00\x12\x31\n\x0bmigrate_job\x18\x07 \x01(\x0b\x32\x1a.livekit.MigrateJobRequestH\x00\x42\t\n\x07message\"\x88\x02\n\rServerMessage\x12\x33\n\x08register\x18\x01 \x01(\x0b\x32\x1f.livekit.RegisterWorkerResponseH\x00\x12\x34\n\x0c\x61vailability\x18\x02 \x01(\x0b\x32\x1c.livekit.AvailabilityRequestH\x00\x12,\n\nassignment\x18\x03 \x01(\x0b\x32\x16.livekit.JobAssignmentH\x00\x12.\n\x0btermination\x18\x05 \x01(\x0b\x32\x17.livekit.JobTerminationH\x00\x12#\n\x04pong\x18\x04 \x01(\x0b\x32\x13.livekit.WorkerPongH\x00\x42\t\n\x07message\"\x80\x01\n\x12SimulateJobRequest\x12\x1e\n\x04type\x18\x01 \x01(\x0e\x32\x10.livekit.JobType\x12\x1b\n\x04room\x18\x02 \x01(\x0b\x32\r.livekit.Room\x12-\n\x0bparticipant\x18\x03 \x01(\x0b\x32\x18.livekit.ParticipantInfo\"\x1f\n\nWorkerPing\x12\x11\n\ttimestamp\x18\x01 \x01(\x03\"7\n\nWorkerPong\x12\x16\n\x0elast_timestamp\x18\x01 \x01(\x03\x12\x11\n\ttimestamp\x18\x02 \x01(\x03\"\xea\x01\n\x15RegisterWorkerRequest\x12\x1e\n\x04type\x18\x01 \x01(\x0e\x32\x10.livekit.JobType\x12\x12\n\nagent_name\x18\x08 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t\x12\x15\n\rping_interval\x18\x05 \x01(\r\x12\x16\n\tnamespace\x18\x06 \x01(\tH\x00\x88\x01\x01\x12;\n\x13\x61llowed_permissions\x18\x07 \x01(\x0b\x32\x1e.livekit.ParticipantPermission\x12\x12\n\ndeployment\x18\t \x01(\tB\x0c\n\n_namespace\"b\n\x16RegisterWorkerResponse\x12\x1e\n\tworker_id\x18\x01 \x01(\tB\x0b\xbaP\x08workerID\x12(\n\x0bserver_info\x18\x03 \x01(\x0b\x32\x13.livekit.ServerInfo\"$\n\x11MigrateJobRequest\x12\x0f\n\x07job_ids\x18\x02 \x03(\t\"B\n\x13\x41vailabilityRequest\x12\x19\n\x03job\x18\x01 \x01(\x0b\x32\x0c.livekit.Job\x12\x10\n\x08resuming\x18\x02 \x01(\x08\"\xdd\x02\n\x14\x41vailabilityResponse\x12\x18\n\x06job_id\x18\x01 \x01(\tB\x08\xbaP\x05jobID\x12\x11\n\tavailable\x18\x02 \x01(\x08\x12\x17\n\x0fsupports_resume\x18\x03 \x01(\x08\x12\x11\n\tterminate\x18\x08 \x01(\x08\x12\x18\n\x10participant_name\x18\x04 \x01(\t\x12\x1c\n\x14participant_identity\x18\x05 \x01(\t\x12\x1c\n\x14participant_metadata\x18\x06 \x01(\t\x12X\n\x16participant_attributes\x18\x07 \x03(\x0b\x32\x38.livekit.AvailabilityResponse.ParticipantAttributesEntry\x1a<\n\x1aParticipantAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"^\n\x0fUpdateJobStatus\x12\x18\n\x06job_id\x18\x01 \x01(\tB\x08\xbaP\x05jobID\x12\"\n\x06status\x18\x02 \x01(\x0e\x32\x12.livekit.JobStatus\x12\r\n\x05\x65rror\x18\x03 \x01(\t\"l\n\x12UpdateWorkerStatus\x12*\n\x06status\x18\x01 \x01(\x0e\x32\x15.livekit.WorkerStatusH\x00\x88\x01\x01\x12\x0c\n\x04load\x18\x03 \x01(\x02\x12\x11\n\tjob_count\x18\x04 \x01(\rB\t\n\x07_status\"S\n\rJobAssignment\x12\x19\n\x03job\x18\x01 \x01(\x0b\x32\x0c.livekit.Job\x12\x10\n\x03url\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\r\n\x05token\x18\x03 \x01(\tB\x06\n\x04_url\"*\n\x0eJobTermination\x12\x18\n\x06job_id\x18\x01 \x01(\tB\x08\xbaP\x05jobID*<\n\x07JobType\x12\x0b\n\x07JT_ROOM\x10\x00\x12\x10\n\x0cJT_PUBLISHER\x10\x01\x12\x12\n\x0eJT_PARTICIPANT\x10\x02*-\n\x0cWorkerStatus\x12\x10\n\x0cWS_AVAILABLE\x10\x00\x12\x0b\n\x07WS_FULL\x10\x01*J\n\tJobStatus\x12\x0e\n\nJS_PENDING\x10\x00\x12\x0e\n\nJS_RUNNING\x10\x01\x12\x0e\n\nJS_SUCCESS\x10\x02\x12\r\n\tJS_FAILED\x10\x03\x42\x46Z#github.com/livekit/protocol/livekit\xaa\x02\rLiveKit.Proto\xea\x02\x0eLiveKit::Protob\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -42,44 +42,44 @@ _globals['_UPDATEJOBSTATUS'].fields_by_name['job_id']._serialized_options = b'\272P\005jobID' _globals['_JOBTERMINATION'].fields_by_name['job_id']._options = None _globals['_JOBTERMINATION'].fields_by_name['job_id']._serialized_options = b'\272P\005jobID' - _globals['_JOBTYPE']._serialized_start=2615 - _globals['_JOBTYPE']._serialized_end=2675 - _globals['_WORKERSTATUS']._serialized_start=2677 - _globals['_WORKERSTATUS']._serialized_end=2722 - _globals['_JOBSTATUS']._serialized_start=2724 - _globals['_JOBSTATUS']._serialized_end=2798 + _globals['_JOBTYPE']._serialized_start=2613 + _globals['_JOBTYPE']._serialized_end=2673 + _globals['_WORKERSTATUS']._serialized_start=2675 + _globals['_WORKERSTATUS']._serialized_end=2720 + _globals['_JOBSTATUS']._serialized_start=2722 + _globals['_JOBSTATUS']._serialized_end=2796 _globals['_JOB']._serialized_start=77 - _globals['_JOB']._serialized_end=401 - _globals['_JOBSTATE']._serialized_start=404 - _globals['_JOBSTATE']._serialized_end=615 - _globals['_WORKERMESSAGE']._serialized_start=618 - _globals['_WORKERMESSAGE']._serialized_end=994 - _globals['_SERVERMESSAGE']._serialized_start=997 - _globals['_SERVERMESSAGE']._serialized_end=1261 - _globals['_SIMULATEJOBREQUEST']._serialized_start=1264 - _globals['_SIMULATEJOBREQUEST']._serialized_end=1392 - _globals['_WORKERPING']._serialized_start=1394 - _globals['_WORKERPING']._serialized_end=1425 - _globals['_WORKERPONG']._serialized_start=1427 - _globals['_WORKERPONG']._serialized_end=1482 - _globals['_REGISTERWORKERREQUEST']._serialized_start=1485 - _globals['_REGISTERWORKERREQUEST']._serialized_end=1720 - _globals['_REGISTERWORKERRESPONSE']._serialized_start=1722 - _globals['_REGISTERWORKERRESPONSE']._serialized_end=1820 - _globals['_MIGRATEJOBREQUEST']._serialized_start=1822 - _globals['_MIGRATEJOBREQUEST']._serialized_end=1858 - _globals['_AVAILABILITYREQUEST']._serialized_start=1860 - _globals['_AVAILABILITYREQUEST']._serialized_end=1926 - _globals['_AVAILABILITYRESPONSE']._serialized_start=1929 - _globals['_AVAILABILITYRESPONSE']._serialized_end=2278 - _globals['_AVAILABILITYRESPONSE_PARTICIPANTATTRIBUTESENTRY']._serialized_start=2218 - _globals['_AVAILABILITYRESPONSE_PARTICIPANTATTRIBUTESENTRY']._serialized_end=2278 - _globals['_UPDATEJOBSTATUS']._serialized_start=2280 - _globals['_UPDATEJOBSTATUS']._serialized_end=2374 - _globals['_UPDATEWORKERSTATUS']._serialized_start=2376 - _globals['_UPDATEWORKERSTATUS']._serialized_end=2484 - _globals['_JOBASSIGNMENT']._serialized_start=2486 - _globals['_JOBASSIGNMENT']._serialized_end=2569 - _globals['_JOBTERMINATION']._serialized_start=2571 - _globals['_JOBTERMINATION']._serialized_end=2613 + _globals['_JOB']._serialized_end=400 + _globals['_JOBSTATE']._serialized_start=403 + _globals['_JOBSTATE']._serialized_end=614 + _globals['_WORKERMESSAGE']._serialized_start=617 + _globals['_WORKERMESSAGE']._serialized_end=993 + _globals['_SERVERMESSAGE']._serialized_start=996 + _globals['_SERVERMESSAGE']._serialized_end=1260 + _globals['_SIMULATEJOBREQUEST']._serialized_start=1263 + _globals['_SIMULATEJOBREQUEST']._serialized_end=1391 + _globals['_WORKERPING']._serialized_start=1393 + _globals['_WORKERPING']._serialized_end=1424 + _globals['_WORKERPONG']._serialized_start=1426 + _globals['_WORKERPONG']._serialized_end=1481 + _globals['_REGISTERWORKERREQUEST']._serialized_start=1484 + _globals['_REGISTERWORKERREQUEST']._serialized_end=1718 + _globals['_REGISTERWORKERRESPONSE']._serialized_start=1720 + _globals['_REGISTERWORKERRESPONSE']._serialized_end=1818 + _globals['_MIGRATEJOBREQUEST']._serialized_start=1820 + _globals['_MIGRATEJOBREQUEST']._serialized_end=1856 + _globals['_AVAILABILITYREQUEST']._serialized_start=1858 + _globals['_AVAILABILITYREQUEST']._serialized_end=1924 + _globals['_AVAILABILITYRESPONSE']._serialized_start=1927 + _globals['_AVAILABILITYRESPONSE']._serialized_end=2276 + _globals['_AVAILABILITYRESPONSE_PARTICIPANTATTRIBUTESENTRY']._serialized_start=2216 + _globals['_AVAILABILITYRESPONSE_PARTICIPANTATTRIBUTESENTRY']._serialized_end=2276 + _globals['_UPDATEJOBSTATUS']._serialized_start=2278 + _globals['_UPDATEJOBSTATUS']._serialized_end=2372 + _globals['_UPDATEWORKERSTATUS']._serialized_start=2374 + _globals['_UPDATEWORKERSTATUS']._serialized_end=2482 + _globals['_JOBASSIGNMENT']._serialized_start=2484 + _globals['_JOBASSIGNMENT']._serialized_end=2567 + _globals['_JOBTERMINATION']._serialized_start=2569 + _globals['_JOBTERMINATION']._serialized_end=2611 # @@protoc_insertion_point(module_scope) diff --git a/livekit-protocol/livekit/protocol/agent.pyi b/livekit-protocol/livekit/protocol/agent.pyi index 38c52f07..4d18c7b9 100644 --- a/livekit-protocol/livekit/protocol/agent.pyi +++ b/livekit-protocol/livekit/protocol/agent.pyi @@ -36,7 +36,7 @@ JS_SUCCESS: JobStatus JS_FAILED: JobStatus class Job(_message.Message): - __slots__ = ("id", "dispatch_id", "type", "room", "participant", "namespace", "metadata", "agent_name", "state", "enable_recording", "environment") + __slots__ = ("id", "dispatch_id", "type", "room", "participant", "namespace", "metadata", "agent_name", "state", "enable_recording", "deployment") ID_FIELD_NUMBER: _ClassVar[int] DISPATCH_ID_FIELD_NUMBER: _ClassVar[int] TYPE_FIELD_NUMBER: _ClassVar[int] @@ -47,7 +47,7 @@ class Job(_message.Message): AGENT_NAME_FIELD_NUMBER: _ClassVar[int] STATE_FIELD_NUMBER: _ClassVar[int] ENABLE_RECORDING_FIELD_NUMBER: _ClassVar[int] - ENVIRONMENT_FIELD_NUMBER: _ClassVar[int] + DEPLOYMENT_FIELD_NUMBER: _ClassVar[int] id: str dispatch_id: str type: JobType @@ -58,8 +58,8 @@ class Job(_message.Message): agent_name: str state: JobState enable_recording: bool - environment: str - def __init__(self, id: _Optional[str] = ..., dispatch_id: _Optional[str] = ..., type: _Optional[_Union[JobType, str]] = ..., room: _Optional[_Union[_models.Room, _Mapping]] = ..., participant: _Optional[_Union[_models.ParticipantInfo, _Mapping]] = ..., namespace: _Optional[str] = ..., metadata: _Optional[str] = ..., agent_name: _Optional[str] = ..., state: _Optional[_Union[JobState, _Mapping]] = ..., enable_recording: bool = ..., environment: _Optional[str] = ...) -> None: ... + deployment: str + def __init__(self, id: _Optional[str] = ..., dispatch_id: _Optional[str] = ..., type: _Optional[_Union[JobType, str]] = ..., room: _Optional[_Union[_models.Room, _Mapping]] = ..., participant: _Optional[_Union[_models.ParticipantInfo, _Mapping]] = ..., namespace: _Optional[str] = ..., metadata: _Optional[str] = ..., agent_name: _Optional[str] = ..., state: _Optional[_Union[JobState, _Mapping]] = ..., enable_recording: bool = ..., deployment: _Optional[str] = ...) -> None: ... class JobState(_message.Message): __slots__ = ("status", "error", "started_at", "ended_at", "updated_at", "participant_identity", "worker_id", "agent_id") @@ -138,22 +138,22 @@ class WorkerPong(_message.Message): def __init__(self, last_timestamp: _Optional[int] = ..., timestamp: _Optional[int] = ...) -> None: ... class RegisterWorkerRequest(_message.Message): - __slots__ = ("type", "agent_name", "version", "ping_interval", "namespace", "allowed_permissions", "environment") + __slots__ = ("type", "agent_name", "version", "ping_interval", "namespace", "allowed_permissions", "deployment") TYPE_FIELD_NUMBER: _ClassVar[int] AGENT_NAME_FIELD_NUMBER: _ClassVar[int] VERSION_FIELD_NUMBER: _ClassVar[int] PING_INTERVAL_FIELD_NUMBER: _ClassVar[int] NAMESPACE_FIELD_NUMBER: _ClassVar[int] ALLOWED_PERMISSIONS_FIELD_NUMBER: _ClassVar[int] - ENVIRONMENT_FIELD_NUMBER: _ClassVar[int] + DEPLOYMENT_FIELD_NUMBER: _ClassVar[int] type: JobType agent_name: str version: str ping_interval: int namespace: str allowed_permissions: _models.ParticipantPermission - environment: str - def __init__(self, type: _Optional[_Union[JobType, str]] = ..., agent_name: _Optional[str] = ..., version: _Optional[str] = ..., ping_interval: _Optional[int] = ..., namespace: _Optional[str] = ..., allowed_permissions: _Optional[_Union[_models.ParticipantPermission, _Mapping]] = ..., environment: _Optional[str] = ...) -> None: ... + deployment: str + def __init__(self, type: _Optional[_Union[JobType, str]] = ..., agent_name: _Optional[str] = ..., version: _Optional[str] = ..., ping_interval: _Optional[int] = ..., namespace: _Optional[str] = ..., allowed_permissions: _Optional[_Union[_models.ParticipantPermission, _Mapping]] = ..., deployment: _Optional[str] = ...) -> None: ... class RegisterWorkerResponse(_message.Message): __slots__ = ("worker_id", "server_info") diff --git a/livekit-protocol/livekit/protocol/agent_dispatch.py b/livekit-protocol/livekit/protocol/agent_dispatch.py index 59e7f996..518a3506 100644 --- a/livekit-protocol/livekit/protocol/agent_dispatch.py +++ b/livekit-protocol/livekit/protocol/agent_dispatch.py @@ -16,7 +16,7 @@ from .logger_pb import options as logger_dot_options__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1clivekit_agent_dispatch.proto\x12\x07livekit\x1a\x13livekit_agent.proto\x1a\x14logger/options.proto\"\x9d\x01\n\x1a\x43reateAgentDispatchRequest\x12\x12\n\nagent_name\x18\x01 \x01(\t\x12\x0c\n\x04room\x18\x02 \x01(\t\x12\x15\n\x08metadata\x18\x03 \x01(\tB\x03\xa8P\x01\x12\x31\n\x0erestart_policy\x18\x04 \x01(\x0e\x32\x19.livekit.JobRestartPolicy\x12\x13\n\x0b\x65nvironment\x18\x05 \x01(\t\"\x86\x01\n\x11RoomAgentDispatch\x12\x12\n\nagent_name\x18\x01 \x01(\t\x12\x15\n\x08metadata\x18\x02 \x01(\tB\x03\xa8P\x01\x12\x31\n\x0erestart_policy\x18\x03 \x01(\x0e\x32\x19.livekit.JobRestartPolicy\x12\x13\n\x0b\x65nvironment\x18\x04 \x01(\t\"N\n\x1a\x44\x65leteAgentDispatchRequest\x12\"\n\x0b\x64ispatch_id\x18\x01 \x01(\tB\r\xbaP\ndispatchID\x12\x0c\n\x04room\x18\x02 \x01(\t\"L\n\x18ListAgentDispatchRequest\x12\"\n\x0b\x64ispatch_id\x18\x01 \x01(\tB\r\xbaP\ndispatchID\x12\x0c\n\x04room\x18\x02 \x01(\t\"M\n\x19ListAgentDispatchResponse\x12\x30\n\x10\x61gent_dispatches\x18\x01 \x03(\x0b\x32\x16.livekit.AgentDispatch\"\xc8\x01\n\rAgentDispatch\x12\n\n\x02id\x18\x01 \x01(\t\x12\x12\n\nagent_name\x18\x02 \x01(\t\x12\x0c\n\x04room\x18\x03 \x01(\t\x12\x15\n\x08metadata\x18\x04 \x01(\tB\x03\xa8P\x01\x12*\n\x05state\x18\x05 \x01(\x0b\x32\x1b.livekit.AgentDispatchState\x12\x31\n\x0erestart_policy\x18\x06 \x01(\x0e\x32\x19.livekit.JobRestartPolicy\x12\x13\n\x0b\x65nvironment\x18\x07 \x01(\t\"X\n\x12\x41gentDispatchState\x12\x1a\n\x04jobs\x18\x01 \x03(\x0b\x32\x0c.livekit.Job\x12\x12\n\ncreated_at\x18\x02 \x01(\x03\x12\x12\n\ndeleted_at\x18\x03 \x01(\x03*5\n\x10JobRestartPolicy\x12\x12\n\x0eJRP_ON_FAILURE\x10\x00\x12\r\n\tJRP_NEVER\x10\x01\x32\x8b\x02\n\x14\x41gentDispatchService\x12M\n\x0e\x43reateDispatch\x12#.livekit.CreateAgentDispatchRequest\x1a\x16.livekit.AgentDispatch\x12M\n\x0e\x44\x65leteDispatch\x12#.livekit.DeleteAgentDispatchRequest\x1a\x16.livekit.AgentDispatch\x12U\n\x0cListDispatch\x12!.livekit.ListAgentDispatchRequest\x1a\".livekit.ListAgentDispatchResponseBFZ#github.com/livekit/protocol/livekit\xaa\x02\rLiveKit.Proto\xea\x02\x0eLiveKit::Protob\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1clivekit_agent_dispatch.proto\x12\x07livekit\x1a\x13livekit_agent.proto\x1a\x14logger/options.proto\"\x9c\x01\n\x1a\x43reateAgentDispatchRequest\x12\x12\n\nagent_name\x18\x01 \x01(\t\x12\x0c\n\x04room\x18\x02 \x01(\t\x12\x15\n\x08metadata\x18\x03 \x01(\tB\x03\xa8P\x01\x12\x31\n\x0erestart_policy\x18\x04 \x01(\x0e\x32\x19.livekit.JobRestartPolicy\x12\x12\n\ndeployment\x18\x05 \x01(\t\"\x85\x01\n\x11RoomAgentDispatch\x12\x12\n\nagent_name\x18\x01 \x01(\t\x12\x15\n\x08metadata\x18\x02 \x01(\tB\x03\xa8P\x01\x12\x31\n\x0erestart_policy\x18\x03 \x01(\x0e\x32\x19.livekit.JobRestartPolicy\x12\x12\n\ndeployment\x18\x04 \x01(\t\"N\n\x1a\x44\x65leteAgentDispatchRequest\x12\"\n\x0b\x64ispatch_id\x18\x01 \x01(\tB\r\xbaP\ndispatchID\x12\x0c\n\x04room\x18\x02 \x01(\t\"L\n\x18ListAgentDispatchRequest\x12\"\n\x0b\x64ispatch_id\x18\x01 \x01(\tB\r\xbaP\ndispatchID\x12\x0c\n\x04room\x18\x02 \x01(\t\"M\n\x19ListAgentDispatchResponse\x12\x30\n\x10\x61gent_dispatches\x18\x01 \x03(\x0b\x32\x16.livekit.AgentDispatch\"\xc7\x01\n\rAgentDispatch\x12\n\n\x02id\x18\x01 \x01(\t\x12\x12\n\nagent_name\x18\x02 \x01(\t\x12\x0c\n\x04room\x18\x03 \x01(\t\x12\x15\n\x08metadata\x18\x04 \x01(\tB\x03\xa8P\x01\x12*\n\x05state\x18\x05 \x01(\x0b\x32\x1b.livekit.AgentDispatchState\x12\x31\n\x0erestart_policy\x18\x06 \x01(\x0e\x32\x19.livekit.JobRestartPolicy\x12\x12\n\ndeployment\x18\x07 \x01(\t\"X\n\x12\x41gentDispatchState\x12\x1a\n\x04jobs\x18\x01 \x03(\x0b\x32\x0c.livekit.Job\x12\x12\n\ncreated_at\x18\x02 \x01(\x03\x12\x12\n\ndeleted_at\x18\x03 \x01(\x03*5\n\x10JobRestartPolicy\x12\x12\n\x0eJRP_ON_FAILURE\x10\x00\x12\r\n\tJRP_NEVER\x10\x01\x32\x8b\x02\n\x14\x41gentDispatchService\x12M\n\x0e\x43reateDispatch\x12#.livekit.CreateAgentDispatchRequest\x1a\x16.livekit.AgentDispatch\x12M\n\x0e\x44\x65leteDispatch\x12#.livekit.DeleteAgentDispatchRequest\x1a\x16.livekit.AgentDispatch\x12U\n\x0cListDispatch\x12!.livekit.ListAgentDispatchRequest\x1a\".livekit.ListAgentDispatchResponseBFZ#github.com/livekit/protocol/livekit\xaa\x02\rLiveKit.Proto\xea\x02\x0eLiveKit::Protob\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -34,22 +34,22 @@ _globals['_LISTAGENTDISPATCHREQUEST'].fields_by_name['dispatch_id']._serialized_options = b'\272P\ndispatchID' _globals['_AGENTDISPATCH'].fields_by_name['metadata']._options = None _globals['_AGENTDISPATCH'].fields_by_name['metadata']._serialized_options = b'\250P\001' - _globals['_JOBRESTARTPOLICY']._serialized_start=911 - _globals['_JOBRESTARTPOLICY']._serialized_end=964 + _globals['_JOBRESTARTPOLICY']._serialized_start=908 + _globals['_JOBRESTARTPOLICY']._serialized_end=961 _globals['_CREATEAGENTDISPATCHREQUEST']._serialized_start=85 - _globals['_CREATEAGENTDISPATCHREQUEST']._serialized_end=242 - _globals['_ROOMAGENTDISPATCH']._serialized_start=245 - _globals['_ROOMAGENTDISPATCH']._serialized_end=379 - _globals['_DELETEAGENTDISPATCHREQUEST']._serialized_start=381 - _globals['_DELETEAGENTDISPATCHREQUEST']._serialized_end=459 - _globals['_LISTAGENTDISPATCHREQUEST']._serialized_start=461 - _globals['_LISTAGENTDISPATCHREQUEST']._serialized_end=537 - _globals['_LISTAGENTDISPATCHRESPONSE']._serialized_start=539 - _globals['_LISTAGENTDISPATCHRESPONSE']._serialized_end=616 - _globals['_AGENTDISPATCH']._serialized_start=619 - _globals['_AGENTDISPATCH']._serialized_end=819 - _globals['_AGENTDISPATCHSTATE']._serialized_start=821 - _globals['_AGENTDISPATCHSTATE']._serialized_end=909 - _globals['_AGENTDISPATCHSERVICE']._serialized_start=967 - _globals['_AGENTDISPATCHSERVICE']._serialized_end=1234 + _globals['_CREATEAGENTDISPATCHREQUEST']._serialized_end=241 + _globals['_ROOMAGENTDISPATCH']._serialized_start=244 + _globals['_ROOMAGENTDISPATCH']._serialized_end=377 + _globals['_DELETEAGENTDISPATCHREQUEST']._serialized_start=379 + _globals['_DELETEAGENTDISPATCHREQUEST']._serialized_end=457 + _globals['_LISTAGENTDISPATCHREQUEST']._serialized_start=459 + _globals['_LISTAGENTDISPATCHREQUEST']._serialized_end=535 + _globals['_LISTAGENTDISPATCHRESPONSE']._serialized_start=537 + _globals['_LISTAGENTDISPATCHRESPONSE']._serialized_end=614 + _globals['_AGENTDISPATCH']._serialized_start=617 + _globals['_AGENTDISPATCH']._serialized_end=816 + _globals['_AGENTDISPATCHSTATE']._serialized_start=818 + _globals['_AGENTDISPATCHSTATE']._serialized_end=906 + _globals['_AGENTDISPATCHSERVICE']._serialized_start=964 + _globals['_AGENTDISPATCHSERVICE']._serialized_end=1231 # @@protoc_insertion_point(module_scope) diff --git a/livekit-protocol/livekit/protocol/agent_dispatch.pyi b/livekit-protocol/livekit/protocol/agent_dispatch.pyi index 52644060..1dae0e1a 100644 --- a/livekit-protocol/livekit/protocol/agent_dispatch.pyi +++ b/livekit-protocol/livekit/protocol/agent_dispatch.pyi @@ -16,30 +16,30 @@ JRP_ON_FAILURE: JobRestartPolicy JRP_NEVER: JobRestartPolicy class CreateAgentDispatchRequest(_message.Message): - __slots__ = ("agent_name", "room", "metadata", "restart_policy", "environment") + __slots__ = ("agent_name", "room", "metadata", "restart_policy", "deployment") AGENT_NAME_FIELD_NUMBER: _ClassVar[int] ROOM_FIELD_NUMBER: _ClassVar[int] METADATA_FIELD_NUMBER: _ClassVar[int] RESTART_POLICY_FIELD_NUMBER: _ClassVar[int] - ENVIRONMENT_FIELD_NUMBER: _ClassVar[int] + DEPLOYMENT_FIELD_NUMBER: _ClassVar[int] agent_name: str room: str metadata: str restart_policy: JobRestartPolicy - environment: str - def __init__(self, agent_name: _Optional[str] = ..., room: _Optional[str] = ..., metadata: _Optional[str] = ..., restart_policy: _Optional[_Union[JobRestartPolicy, str]] = ..., environment: _Optional[str] = ...) -> None: ... + deployment: str + def __init__(self, agent_name: _Optional[str] = ..., room: _Optional[str] = ..., metadata: _Optional[str] = ..., restart_policy: _Optional[_Union[JobRestartPolicy, str]] = ..., deployment: _Optional[str] = ...) -> None: ... class RoomAgentDispatch(_message.Message): - __slots__ = ("agent_name", "metadata", "restart_policy", "environment") + __slots__ = ("agent_name", "metadata", "restart_policy", "deployment") AGENT_NAME_FIELD_NUMBER: _ClassVar[int] METADATA_FIELD_NUMBER: _ClassVar[int] RESTART_POLICY_FIELD_NUMBER: _ClassVar[int] - ENVIRONMENT_FIELD_NUMBER: _ClassVar[int] + DEPLOYMENT_FIELD_NUMBER: _ClassVar[int] agent_name: str metadata: str restart_policy: JobRestartPolicy - environment: str - def __init__(self, agent_name: _Optional[str] = ..., metadata: _Optional[str] = ..., restart_policy: _Optional[_Union[JobRestartPolicy, str]] = ..., environment: _Optional[str] = ...) -> None: ... + deployment: str + def __init__(self, agent_name: _Optional[str] = ..., metadata: _Optional[str] = ..., restart_policy: _Optional[_Union[JobRestartPolicy, str]] = ..., deployment: _Optional[str] = ...) -> None: ... class DeleteAgentDispatchRequest(_message.Message): __slots__ = ("dispatch_id", "room") @@ -64,22 +64,22 @@ class ListAgentDispatchResponse(_message.Message): def __init__(self, agent_dispatches: _Optional[_Iterable[_Union[AgentDispatch, _Mapping]]] = ...) -> None: ... class AgentDispatch(_message.Message): - __slots__ = ("id", "agent_name", "room", "metadata", "state", "restart_policy", "environment") + __slots__ = ("id", "agent_name", "room", "metadata", "state", "restart_policy", "deployment") ID_FIELD_NUMBER: _ClassVar[int] AGENT_NAME_FIELD_NUMBER: _ClassVar[int] ROOM_FIELD_NUMBER: _ClassVar[int] METADATA_FIELD_NUMBER: _ClassVar[int] STATE_FIELD_NUMBER: _ClassVar[int] RESTART_POLICY_FIELD_NUMBER: _ClassVar[int] - ENVIRONMENT_FIELD_NUMBER: _ClassVar[int] + DEPLOYMENT_FIELD_NUMBER: _ClassVar[int] id: str agent_name: str room: str metadata: str state: AgentDispatchState restart_policy: JobRestartPolicy - environment: str - def __init__(self, id: _Optional[str] = ..., agent_name: _Optional[str] = ..., room: _Optional[str] = ..., metadata: _Optional[str] = ..., state: _Optional[_Union[AgentDispatchState, _Mapping]] = ..., restart_policy: _Optional[_Union[JobRestartPolicy, str]] = ..., environment: _Optional[str] = ...) -> None: ... + deployment: str + def __init__(self, id: _Optional[str] = ..., agent_name: _Optional[str] = ..., room: _Optional[str] = ..., metadata: _Optional[str] = ..., state: _Optional[_Union[AgentDispatchState, _Mapping]] = ..., restart_policy: _Optional[_Union[JobRestartPolicy, str]] = ..., deployment: _Optional[str] = ...) -> None: ... class AgentDispatchState(_message.Message): __slots__ = ("jobs", "created_at", "deleted_at") diff --git a/livekit-protocol/livekit/protocol/sip.py b/livekit-protocol/livekit/protocol/sip.py index 1ece178b..0dc310ba 100644 --- a/livekit-protocol/livekit/protocol/sip.py +++ b/livekit-protocol/livekit/protocol/sip.py @@ -21,7 +21,7 @@ from .logger_pb import options as logger_dot_options__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11livekit_sip.proto\x12\x07livekit\x1a\x19google/protobuf/any.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x14livekit_models.proto\x1a\x12livekit_room.proto\x1a\x14logger/options.proto\"A\n\tSIPStatus\x12$\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x16.livekit.SIPStatusCode\x12\x0e\n\x06status\x18\x02 \x01(\t\"\xe9\x02\n\x15\x43reateSIPTrunkRequest\x12\x19\n\x11inbound_addresses\x18\x01 \x03(\t\x12\x18\n\x10outbound_address\x18\x02 \x01(\t\x12\x17\n\x0foutbound_number\x18\x03 \x01(\t\x12!\n\x15inbound_numbers_regex\x18\x04 \x03(\tB\x02\x18\x01\x12\x17\n\x0finbound_numbers\x18\t \x03(\t\x12\x1d\n\x10inbound_username\x18\x05 \x01(\tB\x03\xa8P\x01\x12\x1d\n\x10inbound_password\x18\x06 \x01(\tB\x03\xa8P\x01\x12\x1e\n\x11outbound_username\x18\x07 \x01(\tB\x03\xa8P\x01\x12\x1e\n\x11outbound_password\x18\x08 \x01(\tB\x03\xa8P\x01\x12\x0c\n\x04name\x18\n \x01(\t\x12\x36\n\x08metadata\x18\x0b \x01(\tB$\xa8P\x01\xb2P\x1e:\x02\x18\x01\"g\n\x0cProviderInfo\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12#\n\x04type\x18\x03 \x01(\x0e\x32\x15.livekit.ProviderType\x12\x18\n\x10prevent_transfer\x18\x04 \x01(\x08\"\xa4\x04\n\x0cSIPTrunkInfo\x12#\n\x0csip_trunk_id\x18\x01 \x01(\tB\r\xbaP\nsipTrunkID\x12-\n\x04kind\x18\x0e \x01(\x0e\x32\x1f.livekit.SIPTrunkInfo.TrunkKind\x12\x19\n\x11inbound_addresses\x18\x02 \x03(\t\x12\x18\n\x10outbound_address\x18\x03 \x01(\t\x12\x17\n\x0foutbound_number\x18\x04 \x01(\t\x12(\n\ttransport\x18\r \x01(\x0e\x32\x15.livekit.SIPTransport\x12!\n\x15inbound_numbers_regex\x18\x05 \x03(\tB\x02\x18\x01\x12\x17\n\x0finbound_numbers\x18\n \x03(\t\x12\x1d\n\x10inbound_username\x18\x06 \x01(\tB\x03\xa8P\x01\x12\x1d\n\x10inbound_password\x18\x07 \x01(\tB\x03\xa8P\x01\x12\x1e\n\x11outbound_username\x18\x08 \x01(\tB\x03\xa8P\x01\x12\x1e\n\x11outbound_password\x18\t \x01(\tB\x03\xa8P\x01\x12\x0c\n\x04name\x18\x0b \x01(\t\x12\x36\n\x08metadata\x18\x0c \x01(\tB$\xa8P\x01\xb2P\x1e\"D\n\tTrunkKind\x12\x10\n\x0cTRUNK_LEGACY\x10\x00\x12\x11\n\rTRUNK_INBOUND\x10\x01\x12\x12\n\x0eTRUNK_OUTBOUND\x10\x02:\x02\x18\x01\"K\n\x1c\x43reateSIPInboundTrunkRequest\x12+\n\x05trunk\x18\x01 \x01(\x0b\x32\x1c.livekit.SIPInboundTrunkInfo\"\xb0\x01\n\x1cUpdateSIPInboundTrunkRequest\x12#\n\x0csip_trunk_id\x18\x01 \x01(\tB\r\xbaP\nsipTrunkID\x12/\n\x07replace\x18\x02 \x01(\x0b\x32\x1c.livekit.SIPInboundTrunkInfoH\x00\x12\x30\n\x06update\x18\x03 \x01(\x0b\x32\x1e.livekit.SIPInboundTrunkUpdateH\x00\x42\x08\n\x06\x61\x63tion\"\xff\x07\n\x13SIPInboundTrunkInfo\x12#\n\x0csip_trunk_id\x18\x01 \x01(\tB\r\xbaP\nsipTrunkID\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x36\n\x08metadata\x18\x03 \x01(\tB$\xa8P\x01\xb2P\x1e\x12\x0f\n\x07numbers\x18\x04 \x03(\t\x12\x19\n\x11\x61llowed_addresses\x18\x05 \x03(\t\x12\x17\n\x0f\x61llowed_numbers\x18\x06 \x03(\t\x12\x1a\n\rauth_username\x18\x07 \x01(\tB\x03\xa8P\x01\x12\x1a\n\rauth_password\x18\x08 \x01(\tB\x03\xa8P\x01\x12`\n\x07headers\x18\t \x03(\x0b\x32).livekit.SIPInboundTrunkInfo.HeadersEntryB$\xa8P\x01\xb2P\x1e\x12T\n\x15headers_to_attributes\x18\n \x03(\x0b\x32\x35.livekit.SIPInboundTrunkInfo.HeadersToAttributesEntry\x12T\n\x15\x61ttributes_to_headers\x18\x0e \x03(\x0b\x32\x35.livekit.SIPInboundTrunkInfo.AttributesToHeadersEntry\x12\x32\n\x0finclude_headers\x18\x0f \x01(\x0e\x32\x19.livekit.SIPHeaderOptions\x12\x32\n\x0fringing_timeout\x18\x0b \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11max_call_duration\x18\x0c \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x15\n\rkrisp_enabled\x18\r \x01(\x08\x12\x35\n\x10media_encryption\x18\x10 \x01(\x0e\x32\x1b.livekit.SIPMediaEncryption\x12.\n\ncreated_at\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a:\n\x18HeadersToAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a:\n\x18\x41ttributesToHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb8\x03\n\x15SIPInboundTrunkUpdate\x12$\n\x07numbers\x18\x01 \x01(\x0b\x32\x13.livekit.ListUpdate\x12.\n\x11\x61llowed_addresses\x18\x02 \x01(\x0b\x32\x13.livekit.ListUpdate\x12,\n\x0f\x61llowed_numbers\x18\x03 \x01(\x0b\x32\x13.livekit.ListUpdate\x12\x1f\n\rauth_username\x18\x04 \x01(\tB\x03\xa8P\x01H\x00\x88\x01\x01\x12\x1f\n\rauth_password\x18\x05 \x01(\tB\x03\xa8P\x01H\x01\x88\x01\x01\x12\x11\n\x04name\x18\x06 \x01(\tH\x02\x88\x01\x01\x12;\n\x08metadata\x18\x07 \x01(\tB$\xa8P\x01\xb2P\x1eH\x03\x88\x01\x01\x12:\n\x10media_encryption\x18\x08 \x01(\x0e\x32\x1b.livekit.SIPMediaEncryptionH\x04\x88\x01\x01\x42\x10\n\x0e_auth_usernameB\x10\n\x0e_auth_passwordB\x07\n\x05_nameB\x0b\n\t_metadataB\x13\n\x11_media_encryption\"M\n\x1d\x43reateSIPOutboundTrunkRequest\x12,\n\x05trunk\x18\x01 \x01(\x0b\x32\x1d.livekit.SIPOutboundTrunkInfo\"\xb3\x01\n\x1dUpdateSIPOutboundTrunkRequest\x12#\n\x0csip_trunk_id\x18\x01 \x01(\tB\r\xbaP\nsipTrunkID\x12\x30\n\x07replace\x18\x02 \x01(\x0b\x32\x1d.livekit.SIPOutboundTrunkInfoH\x00\x12\x31\n\x06update\x18\x03 \x01(\x0b\x32\x1f.livekit.SIPOutboundTrunkUpdateH\x00\x42\x08\n\x06\x61\x63tion\"\xb9\x07\n\x14SIPOutboundTrunkInfo\x12#\n\x0csip_trunk_id\x18\x01 \x01(\tB\r\xbaP\nsipTrunkID\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x36\n\x08metadata\x18\x03 \x01(\tB$\xa8P\x01\xb2P\x1e\x12\x0f\n\x07\x61\x64\x64ress\x18\x04 \x01(\t\x12\x1b\n\x13\x64\x65stination_country\x18\x0e \x01(\t\x12(\n\ttransport\x18\x05 \x01(\x0e\x32\x15.livekit.SIPTransport\x12\x0f\n\x07numbers\x18\x06 \x03(\t\x12\x1a\n\rauth_username\x18\x07 \x01(\tB\x03\xa8P\x01\x12\x1a\n\rauth_password\x18\x08 \x01(\tB\x03\xa8P\x01\x12\x61\n\x07headers\x18\t \x03(\x0b\x32*.livekit.SIPOutboundTrunkInfo.HeadersEntryB$\xa8P\x01\xb2P\x1e\x12U\n\x15headers_to_attributes\x18\n \x03(\x0b\x32\x36.livekit.SIPOutboundTrunkInfo.HeadersToAttributesEntry\x12U\n\x15\x61ttributes_to_headers\x18\x0b \x03(\x0b\x32\x36.livekit.SIPOutboundTrunkInfo.AttributesToHeadersEntry\x12\x32\n\x0finclude_headers\x18\x0c \x01(\x0e\x32\x19.livekit.SIPHeaderOptions\x12\x35\n\x10media_encryption\x18\r \x01(\x0e\x32\x1b.livekit.SIPMediaEncryption\x12\x11\n\tfrom_host\x18\x0f \x01(\t\x12.\n\ncreated_at\x18\x10 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a:\n\x18HeadersToAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a:\n\x18\x41ttributesToHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x9a\x04\n\x16SIPOutboundTrunkUpdate\x12\x14\n\x07\x61\x64\x64ress\x18\x01 \x01(\tH\x00\x88\x01\x01\x12-\n\ttransport\x18\x02 \x01(\x0e\x32\x15.livekit.SIPTransportH\x01\x88\x01\x01\x12 \n\x13\x64\x65stination_country\x18\t \x01(\tH\x02\x88\x01\x01\x12$\n\x07numbers\x18\x03 \x01(\x0b\x32\x13.livekit.ListUpdate\x12\x1f\n\rauth_username\x18\x04 \x01(\tB\x03\xa8P\x01H\x03\x88\x01\x01\x12\x1f\n\rauth_password\x18\x05 \x01(\tB\x03\xa8P\x01H\x04\x88\x01\x01\x12\x11\n\x04name\x18\x06 \x01(\tH\x05\x88\x01\x01\x12;\n\x08metadata\x18\x07 \x01(\tB$\xa8P\x01\xb2P\x1eH\x06\x88\x01\x01\x12:\n\x10media_encryption\x18\x08 \x01(\x0e\x32\x1b.livekit.SIPMediaEncryptionH\x07\x88\x01\x01\x12\x16\n\tfrom_host\x18\n \x01(\tH\x08\x88\x01\x01\x42\n\n\x08_addressB\x0c\n\n_transportB\x16\n\x14_destination_countryB\x10\n\x0e_auth_usernameB\x10\n\x0e_auth_passwordB\x07\n\x05_nameB\x0b\n\t_metadataB\x13\n\x11_media_encryptionB\x0c\n\n_from_host\"@\n\x19GetSIPInboundTrunkRequest\x12#\n\x0csip_trunk_id\x18\x01 \x01(\tB\r\xbaP\nsipTrunkID\"I\n\x1aGetSIPInboundTrunkResponse\x12+\n\x05trunk\x18\x01 \x01(\x0b\x32\x1c.livekit.SIPInboundTrunkInfo\"A\n\x1aGetSIPOutboundTrunkRequest\x12#\n\x0csip_trunk_id\x18\x01 \x01(\tB\r\xbaP\nsipTrunkID\"K\n\x1bGetSIPOutboundTrunkResponse\x12,\n\x05trunk\x18\x01 \x01(\x0b\x32\x1d.livekit.SIPOutboundTrunkInfo\"<\n\x13ListSIPTrunkRequest\x12!\n\x04page\x18\x01 \x01(\x0b\x32\x13.livekit.Pagination:\x02\x18\x01\"@\n\x14ListSIPTrunkResponse\x12$\n\x05items\x18\x01 \x03(\x0b\x32\x15.livekit.SIPTrunkInfo:\x02\x18\x01\"c\n\x1aListSIPInboundTrunkRequest\x12!\n\x04page\x18\x03 \x01(\x0b\x32\x13.livekit.Pagination\x12\x11\n\ttrunk_ids\x18\x01 \x03(\t\x12\x0f\n\x07numbers\x18\x02 \x03(\t\"J\n\x1bListSIPInboundTrunkResponse\x12+\n\x05items\x18\x01 \x03(\x0b\x32\x1c.livekit.SIPInboundTrunkInfo\"d\n\x1bListSIPOutboundTrunkRequest\x12!\n\x04page\x18\x03 \x01(\x0b\x32\x13.livekit.Pagination\x12\x11\n\ttrunk_ids\x18\x01 \x03(\t\x12\x0f\n\x07numbers\x18\x02 \x03(\t\"L\n\x1cListSIPOutboundTrunkResponse\x12,\n\x05items\x18\x01 \x03(\x0b\x32\x1d.livekit.SIPOutboundTrunkInfo\"<\n\x15\x44\x65leteSIPTrunkRequest\x12#\n\x0csip_trunk_id\x18\x01 \x01(\tB\r\xbaP\nsipTrunkID\"7\n\x15SIPDispatchRuleDirect\x12\x11\n\troom_name\x18\x01 \x01(\t\x12\x0b\n\x03pin\x18\x02 \x01(\t\"T\n\x19SIPDispatchRuleIndividual\x12\x13\n\x0broom_prefix\x18\x01 \x01(\t\x12\x0b\n\x03pin\x18\x02 \x01(\t\x12\x15\n\rno_randomness\x18\x03 \x01(\x08\"L\n\x15SIPDispatchRuleCallee\x12\x13\n\x0broom_prefix\x18\x01 \x01(\t\x12\x0b\n\x03pin\x18\x02 \x01(\t\x12\x11\n\trandomize\x18\x03 \x01(\x08\"\xe1\x01\n\x0fSIPDispatchRule\x12>\n\x14\x64ispatch_rule_direct\x18\x01 \x01(\x0b\x32\x1e.livekit.SIPDispatchRuleDirectH\x00\x12\x46\n\x18\x64ispatch_rule_individual\x18\x02 \x01(\x0b\x32\".livekit.SIPDispatchRuleIndividualH\x00\x12>\n\x14\x64ispatch_rule_callee\x18\x03 \x01(\x0b\x32\x1e.livekit.SIPDispatchRuleCalleeH\x00\x42\x06\n\x04rule\"\x92\x04\n\x1c\x43reateSIPDispatchRuleRequest\x12\x33\n\rdispatch_rule\x18\n \x01(\x0b\x32\x1c.livekit.SIPDispatchRuleInfo\x12*\n\x04rule\x18\x01 \x01(\x0b\x32\x18.livekit.SIPDispatchRuleB\x02\x18\x01\x12\x15\n\ttrunk_ids\x18\x02 \x03(\tB\x02\x18\x01\x12\x1d\n\x11hide_phone_number\x18\x03 \x01(\x08\x42\x02\x18\x01\x12\x1b\n\x0finbound_numbers\x18\x06 \x03(\tB\x02\x18\x01\x12\x10\n\x04name\x18\x04 \x01(\tB\x02\x18\x01\x12\x38\n\x08metadata\x18\x05 \x01(\tB&\x18\x01\xa8P\x01\xb2P\x1e\x12q\n\nattributes\x18\x07 \x03(\x0b\x32\x35.livekit.CreateSIPDispatchRuleRequest.AttributesEntryB&\x18\x01\xa8P\x01\xb2P\x1e\x12\x17\n\x0broom_preset\x18\x08 \x01(\tB\x02\x18\x01\x12\x33\n\x0broom_config\x18\t \x01(\x0b\x32\x1a.livekit.RoomConfigurationB\x02\x18\x01\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xbf\x01\n\x1cUpdateSIPDispatchRuleRequest\x12\x32\n\x14sip_dispatch_rule_id\x18\x01 \x01(\tB\x14\xbaP\x11sipDispatchRuleID\x12/\n\x07replace\x18\x02 \x01(\x0b\x32\x1c.livekit.SIPDispatchRuleInfoH\x00\x12\x30\n\x06update\x18\x03 \x01(\x0b\x32\x1e.livekit.SIPDispatchRuleUpdateH\x00\x42\x08\n\x06\x61\x63tion\"\x9e\x05\n\x13SIPDispatchRuleInfo\x12\x32\n\x14sip_dispatch_rule_id\x18\x01 \x01(\tB\x14\xbaP\x11sipDispatchRuleID\x12&\n\x04rule\x18\x02 \x01(\x0b\x32\x18.livekit.SIPDispatchRule\x12\x11\n\ttrunk_ids\x18\x03 \x03(\t\x12\x19\n\x11hide_phone_number\x18\x04 \x01(\x08\x12\x17\n\x0finbound_numbers\x18\x07 \x03(\t\x12\x0f\n\x07numbers\x18\r \x03(\t\x12\x0c\n\x04name\x18\x05 \x01(\t\x12\x36\n\x08metadata\x18\x06 \x01(\tB$\xa8P\x01\xb2P\x1e\x12\x66\n\nattributes\x18\x08 \x03(\x0b\x32,.livekit.SIPDispatchRuleInfo.AttributesEntryB$\xa8P\x01\xb2P\x1e\x12\x13\n\x0broom_preset\x18\t \x01(\t\x12/\n\x0broom_config\x18\n \x01(\x0b\x32\x1a.livekit.RoomConfiguration\x12\x15\n\rkrisp_enabled\x18\x0b \x01(\x08\x12\x35\n\x10media_encryption\x18\x0c \x01(\x0e\x32\x1b.livekit.SIPMediaEncryption\x12.\n\ncreated_at\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x0f \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xbb\x03\n\x15SIPDispatchRuleUpdate\x12&\n\ttrunk_ids\x18\x01 \x01(\x0b\x32\x13.livekit.ListUpdate\x12&\n\x04rule\x18\x02 \x01(\x0b\x32\x18.livekit.SIPDispatchRule\x12\x11\n\x04name\x18\x03 \x01(\tH\x00\x88\x01\x01\x12;\n\x08metadata\x18\x04 \x01(\tB$\xa8P\x01\xb2P\x1eH\x01\x88\x01\x01\x12h\n\nattributes\x18\x05 \x03(\x0b\x32..livekit.SIPDispatchRuleUpdate.AttributesEntryB$\xa8P\x01\xb2P\x1e\x12:\n\x10media_encryption\x18\x06 \x01(\x0e\x32\x1b.livekit.SIPMediaEncryptionH\x02\x88\x01\x01\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x07\n\x05_nameB\x0b\n\t_metadataB\x13\n\x11_media_encryption\"m\n\x1aListSIPDispatchRuleRequest\x12!\n\x04page\x18\x03 \x01(\x0b\x32\x13.livekit.Pagination\x12\x19\n\x11\x64ispatch_rule_ids\x18\x01 \x03(\t\x12\x11\n\ttrunk_ids\x18\x02 \x03(\t\"J\n\x1bListSIPDispatchRuleResponse\x12+\n\x05items\x18\x01 \x03(\x0b\x32\x1c.livekit.SIPDispatchRuleInfo\"R\n\x1c\x44\x65leteSIPDispatchRuleRequest\x12\x32\n\x14sip_dispatch_rule_id\x18\x01 \x01(\tB\x14\xbaP\x11sipDispatchRuleID\"\xd7\x03\n\x11SIPOutboundConfig\x12\x10\n\x08hostname\x18\x01 \x01(\t\x12\x1b\n\x13\x64\x65stination_country\x18\x07 \x01(\t\x12(\n\ttransport\x18\x02 \x01(\x0e\x32\x15.livekit.SIPTransport\x12\x1a\n\rauth_username\x18\x03 \x01(\tB\x03\xa8P\x01\x12\x1a\n\rauth_password\x18\x04 \x01(\tB\x03\xa8P\x01\x12R\n\x15headers_to_attributes\x18\x05 \x03(\x0b\x32\x33.livekit.SIPOutboundConfig.HeadersToAttributesEntry\x12R\n\x15\x61ttributes_to_headers\x18\x06 \x03(\x0b\x32\x33.livekit.SIPOutboundConfig.AttributesToHeadersEntry\x12\x11\n\tfrom_host\x18\x08 \x01(\t\x1a:\n\x18HeadersToAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a:\n\x18\x41ttributesToHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa1\t\n\x1b\x43reateSIPParticipantRequest\x12#\n\x0csip_trunk_id\x18\x01 \x01(\tB\r\xbaP\nsipTrunkID\x12)\n\x05trunk\x18\x14 \x01(\x0b\x32\x1a.livekit.SIPOutboundConfig\x12\x13\n\x0bsip_call_to\x18\x02 \x01(\t\x12\x12\n\nsip_number\x18\x0f \x01(\t\x12\x11\n\troom_name\x18\x03 \x01(\t\x12\x1c\n\x14participant_identity\x18\x04 \x01(\t\x12>\n\x10participant_name\x18\x07 \x01(\tB$\xa8P\x01\xb2P\x1e\x12\x42\n\x14participant_metadata\x18\x08 \x01(\tB$\xa8P\x01\xb2P\x1e\x12\x85\x01\n\x16participant_attributes\x18\t \x03(\x0b\x32?.livekit.CreateSIPParticipantRequest.ParticipantAttributesEntryB$\xa8P\x01\xb2P\x1e\x12\x0c\n\x04\x64tmf\x18\x05 \x01(\t\x12\x19\n\rplay_ringtone\x18\x06 \x01(\x08\x42\x02\x18\x01\x12\x15\n\rplay_dialtone\x18\r \x01(\x08\x12\x19\n\x11hide_phone_number\x18\n \x01(\x08\x12h\n\x07headers\x18\x10 \x03(\x0b\x32\x31.livekit.CreateSIPParticipantRequest.HeadersEntryB$\xa8P\x01\xb2P\x1e\x12\x32\n\x0finclude_headers\x18\x11 \x01(\x0e\x32\x19.livekit.SIPHeaderOptions\x12\x32\n\x0fringing_timeout\x18\x0b \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11max_call_duration\x18\x0c \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x15\n\rkrisp_enabled\x18\x0e \x01(\x08\x12\x35\n\x10media_encryption\x18\x12 \x01(\x0e\x32\x1b.livekit.SIPMediaEncryption\x12\x1b\n\x13wait_until_answered\x18\x13 \x01(\x08\x12?\n\x0c\x64isplay_name\x18\x15 \x01(\tB$\xa8P\x01\xb2P\x1eH\x00\x88\x01\x01\x12.\n\x0b\x64\x65stination\x18\x16 \x01(\x0b\x32\x14.livekit.DestinationH\x01\x88\x01\x01\x1a<\n\x1aParticipantAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x0f\n\r_display_nameB\x0e\n\x0c_destination\"\x92\x01\n\x12SIPParticipantInfo\x12(\n\x0eparticipant_id\x18\x01 \x01(\tB\x10\xbaP\rparticipantID\x12\x1c\n\x14participant_identity\x18\x02 \x01(\t\x12\x11\n\troom_name\x18\x03 \x01(\t\x12!\n\x0bsip_call_id\x18\x04 \x01(\tB\x0c\xbaP\tsipCallID\"\xcc\x02\n\x1dTransferSIPParticipantRequest\x12\x1c\n\x14participant_identity\x18\x01 \x01(\t\x12\x11\n\troom_name\x18\x02 \x01(\t\x12\x13\n\x0btransfer_to\x18\x03 \x01(\t\x12\x15\n\rplay_dialtone\x18\x04 \x01(\x08\x12j\n\x07headers\x18\x05 \x03(\x0b\x32\x33.livekit.TransferSIPParticipantRequest.HeadersEntryB$\xa8P\x01\xb2P\x1e\x12\x32\n\x0fringing_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x99\x08\n\x0bSIPCallInfo\x12\x1a\n\x07\x63\x61ll_id\x18\x01 \x01(\tB\t\xbaP\x06\x63\x61llID\x12\x1c\n\x08trunk_id\x18\x02 \x01(\tB\n\xbaP\x07trunkID\x12+\n\x10\x64ispatch_rule_id\x18\x10 \x01(\tB\x11\xbaP\x0e\x64ispatchRuleID\x12\x0e\n\x06region\x18\x11 \x01(\t\x12\x11\n\troom_name\x18\x03 \x01(\t\x12\x1a\n\x07room_id\x18\x04 \x01(\tB\t\xbaP\x06roomID\x12\x1c\n\x14participant_identity\x18\x05 \x01(\t\x12u\n\x16participant_attributes\x18\x12 \x03(\x0b\x32/.livekit.SIPCallInfo.ParticipantAttributesEntryB$\xa8P\x01\xb2P\x1e\x12!\n\x08\x66rom_uri\x18\x06 \x01(\x0b\x32\x0f.livekit.SIPUri\x12\x1f\n\x06to_uri\x18\x07 \x01(\x0b\x32\x0f.livekit.SIPUri\x12\x16\n\ncreated_at\x18\t \x01(\x03\x42\x02\x18\x01\x12\x16\n\nstarted_at\x18\n \x01(\x03\x42\x02\x18\x01\x12\x14\n\x08\x65nded_at\x18\x0b \x01(\x03\x42\x02\x18\x01\x12-\n\x10\x65nabled_features\x18\x0e \x03(\x0e\x32\x13.livekit.SIPFeature\x12\x31\n\x0e\x63\x61ll_direction\x18\x0f \x01(\x0e\x32\x19.livekit.SIPCallDirection\x12+\n\x0b\x63\x61ll_status\x18\x08 \x01(\x0e\x32\x16.livekit.SIPCallStatus\x12\x15\n\rcreated_at_ns\x18\x16 \x01(\x03\x12\x15\n\rstarted_at_ns\x18\x17 \x01(\x03\x12\x13\n\x0b\x65nded_at_ns\x18\x18 \x01(\x03\x12\x34\n\x11\x64isconnect_reason\x18\x0c \x01(\x0e\x32\x19.livekit.DisconnectReason\x12\r\n\x05\x65rror\x18\r \x01(\t\x12,\n\x10\x63\x61ll_status_code\x18\x13 \x01(\x0b\x32\x12.livekit.SIPStatus\x12\x13\n\x0b\x61udio_codec\x18\x14 \x01(\t\x12\x18\n\x10media_encryption\x18\x15 \x01(\t\x12\x16\n\x0epcap_file_link\x18\x19 \x01(\t\x12*\n\x0c\x63\x61ll_context\x18\x1a \x03(\x0b\x32\x14.google.protobuf.Any\x12,\n\rprovider_info\x18\x1b \x01(\x0b\x32\x15.livekit.ProviderInfo\x12!\n\x0bsip_call_id\x18\x1c \x01(\tB\x0c\xbaP\tsipCallID\x1a<\n\x1aParticipantAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa0\x02\n\x0fSIPTransferInfo\x12\"\n\x0btransfer_id\x18\x01 \x01(\tB\r\xbaP\ntransferID\x12\x1a\n\x07\x63\x61ll_id\x18\x02 \x01(\tB\t\xbaP\x06\x63\x61llID\x12\x13\n\x0btransfer_to\x18\x03 \x01(\t\x12 \n\x18transfer_initiated_at_ns\x18\x04 \x01(\x03\x12 \n\x18transfer_completed_at_ns\x18\x05 \x01(\x03\x12\x33\n\x0ftransfer_status\x18\x06 \x01(\x0e\x32\x1a.livekit.SIPTransferStatus\x12\r\n\x05\x65rror\x18\x07 \x01(\t\x12\x30\n\x14transfer_status_code\x18\x08 \x01(\x0b\x32\x12.livekit.SIPStatus\"h\n\x06SIPUri\x12\x0c\n\x04user\x18\x01 \x01(\t\x12\x0c\n\x04host\x18\x02 \x01(\t\x12\n\n\x02ip\x18\x03 \x01(\t\x12\x0c\n\x04port\x18\x04 \x01(\r\x12(\n\ttransport\x18\x05 \x01(\x0e\x32\x15.livekit.SIPTransport\"<\n\x0b\x44\x65stination\x12\x0c\n\x04\x63ity\x18\x01 \x01(\t\x12\x0f\n\x07\x63ountry\x18\x02 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t*\xde\x14\n\rSIPStatusCode\x12\x16\n\x12SIP_STATUS_UNKNOWN\x10\x00\x12\x15\n\x11SIP_STATUS_TRYING\x10\x64\x12\x17\n\x12SIP_STATUS_RINGING\x10\xb4\x01\x12!\n\x1cSIP_STATUS_CALL_IS_FORWARDED\x10\xb5\x01\x12\x16\n\x11SIP_STATUS_QUEUED\x10\xb6\x01\x12 \n\x1bSIP_STATUS_SESSION_PROGRESS\x10\xb7\x01\x12\'\n\"SIP_STATUS_EARLY_DIALOG_TERMINATED\x10\xc7\x01\x12\x12\n\rSIP_STATUS_OK\x10\xc8\x01\x12\x18\n\x13SIP_STATUS_ACCEPTED\x10\xca\x01\x12\x1f\n\x1aSIP_STATUS_NO_NOTIFICATION\x10\xcc\x01\x12 \n\x1bSIP_STATUS_MULTIPLE_CHOICES\x10\xac\x02\x12!\n\x1cSIP_STATUS_MOVED_PERMANENTLY\x10\xad\x02\x12!\n\x1cSIP_STATUS_MOVED_TEMPORARILY\x10\xae\x02\x12\x19\n\x14SIP_STATUS_USE_PROXY\x10\xb1\x02\x12#\n\x1eSIP_STATUS_ALTERNATIVE_SERVICE\x10\xfc\x02\x12\x1b\n\x16SIP_STATUS_BAD_REQUEST\x10\x90\x03\x12\x1c\n\x17SIP_STATUS_UNAUTHORIZED\x10\x91\x03\x12 \n\x1bSIP_STATUS_PAYMENT_REQUIRED\x10\x92\x03\x12\x19\n\x14SIP_STATUS_FORBIDDEN\x10\x93\x03\x12\x18\n\x13SIP_STATUS_NOTFOUND\x10\x94\x03\x12\"\n\x1dSIP_STATUS_METHOD_NOT_ALLOWED\x10\x95\x03\x12\x1e\n\x19SIP_STATUS_NOT_ACCEPTABLE\x10\x96\x03\x12#\n\x1eSIP_STATUS_PROXY_AUTH_REQUIRED\x10\x97\x03\x12\x1f\n\x1aSIP_STATUS_REQUEST_TIMEOUT\x10\x98\x03\x12\x18\n\x13SIP_STATUS_CONFLICT\x10\x99\x03\x12\x14\n\x0fSIP_STATUS_GONE\x10\x9a\x03\x12\x1f\n\x1aSIP_STATUS_LENGTH_REQUIRED\x10\x9b\x03\x12*\n%SIP_STATUS_CONDITIONAL_REQUEST_FAILED\x10\x9c\x03\x12(\n#SIP_STATUS_REQUEST_ENTITY_TOO_LARGE\x10\x9d\x03\x12$\n\x1fSIP_STATUS_REQUEST_URI_TOO_LONG\x10\x9e\x03\x12&\n!SIP_STATUS_UNSUPPORTED_MEDIA_TYPE\x10\x9f\x03\x12/\n*SIP_STATUS_REQUESTED_RANGE_NOT_SATISFIABLE\x10\xa0\x03\x12)\n$SIP_STATUS_UNKNOWN_RESOURCE_PRIORITY\x10\xa1\x03\x12\x1d\n\x18SIP_STATUS_BAD_EXTENSION\x10\xa4\x03\x12\"\n\x1dSIP_STATUS_EXTENSION_REQUIRED\x10\xa5\x03\x12*\n%SIP_STATUS_SESSION_INTERVAL_TOO_SMALL\x10\xa6\x03\x12\"\n\x1dSIP_STATUS_INTERVAL_TOO_BRIEF\x10\xa7\x03\x12(\n#SIP_STATUS_BAD_LOCATION_INFORMATION\x10\xa8\x03\x12!\n\x1cSIP_STATUS_BAD_ALERT_MESSAGE\x10\xa9\x03\x12#\n\x1eSIP_STATUS_USE_IDENTITY_HEADER\x10\xac\x03\x12)\n$SIP_STATUS_PROVIDE_REFERRER_IDENTITY\x10\xad\x03\x12\x1b\n\x16SIP_STATUS_FLOW_FAILED\x10\xae\x03\x12$\n\x1fSIP_STATUS_ANONYMITY_DISALLOWED\x10\xb1\x03\x12!\n\x1cSIP_STATUS_BAD_IDENTITY_INFO\x10\xb4\x03\x12\'\n\"SIP_STATUS_UNSUPPORTED_CERTIFICATE\x10\xb5\x03\x12\'\n\"SIP_STATUS_INVALID_IDENTITY_HEADER\x10\xb6\x03\x12\x30\n+SIP_STATUS_FIRST_HOP_LACKS_OUTBOUND_SUPPORT\x10\xb7\x03\x12$\n\x1fSIP_STATUS_MAX_BREADTH_EXCEEDED\x10\xb8\x03\x12 \n\x1bSIP_STATUS_BAD_INFO_PACKAGE\x10\xd5\x03\x12\x1e\n\x19SIP_STATUS_CONSENT_NEEDED\x10\xd6\x03\x12\'\n\"SIP_STATUS_TEMPORARILY_UNAVAILABLE\x10\xe0\x03\x12\x30\n+SIP_STATUS_CALL_TRANSACTION_DOES_NOT_EXISTS\x10\xe1\x03\x12\x1d\n\x18SIP_STATUS_LOOP_DETECTED\x10\xe2\x03\x12\x1d\n\x18SIP_STATUS_TOO_MANY_HOPS\x10\xe3\x03\x12\"\n\x1dSIP_STATUS_ADDRESS_INCOMPLETE\x10\xe4\x03\x12\x19\n\x14SIP_STATUS_AMBIGUOUS\x10\xe5\x03\x12\x19\n\x14SIP_STATUS_BUSY_HERE\x10\xe6\x03\x12\"\n\x1dSIP_STATUS_REQUEST_TERMINATED\x10\xe7\x03\x12#\n\x1eSIP_STATUS_NOT_ACCEPTABLE_HERE\x10\xe8\x03\x12\x19\n\x14SIP_STATUS_BAD_EVENT\x10\xe9\x03\x12\x1f\n\x1aSIP_STATUS_REQUEST_PENDING\x10\xeb\x03\x12\x1e\n\x19SIP_STATUS_UNDECIPHERABLE\x10\xed\x03\x12+\n&SIP_STATUS_SECURITY_AGREEMENT_REQUIRED\x10\xee\x03\x12%\n SIP_STATUS_INTERNAL_SERVER_ERROR\x10\xf4\x03\x12\x1f\n\x1aSIP_STATUS_NOT_IMPLEMENTED\x10\xf5\x03\x12\x1b\n\x16SIP_STATUS_BAD_GATEWAY\x10\xf6\x03\x12#\n\x1eSIP_STATUS_SERVICE_UNAVAILABLE\x10\xf7\x03\x12\x1f\n\x1aSIP_STATUS_GATEWAY_TIMEOUT\x10\xf8\x03\x12%\n SIP_STATUS_VERSION_NOT_SUPPORTED\x10\xf9\x03\x12!\n\x1cSIP_STATUS_MESSAGE_TOO_LARGE\x10\x81\x04\x12&\n!SIP_STATUS_GLOBAL_BUSY_EVERYWHERE\x10\xd8\x04\x12\x1e\n\x19SIP_STATUS_GLOBAL_DECLINE\x10\xdb\x04\x12.\n)SIP_STATUS_GLOBAL_DOES_NOT_EXIST_ANYWHERE\x10\xdc\x04\x12%\n SIP_STATUS_GLOBAL_NOT_ACCEPTABLE\x10\xde\x04\x12\x1f\n\x1aSIP_STATUS_GLOBAL_UNWANTED\x10\xdf\x04\x12\x1f\n\x1aSIP_STATUS_GLOBAL_REJECTED\x10\xe0\x04*k\n\x0cSIPTransport\x12\x16\n\x12SIP_TRANSPORT_AUTO\x10\x00\x12\x15\n\x11SIP_TRANSPORT_UDP\x10\x01\x12\x15\n\x11SIP_TRANSPORT_TCP\x10\x02\x12\x15\n\x11SIP_TRANSPORT_TLS\x10\x03*N\n\x10SIPHeaderOptions\x12\x12\n\x0eSIP_NO_HEADERS\x10\x00\x12\x11\n\rSIP_X_HEADERS\x10\x01\x12\x13\n\x0fSIP_ALL_HEADERS\x10\x02*o\n\x12SIPMediaEncryption\x12\x1d\n\x19SIP_MEDIA_ENCRYPT_DISABLE\x10\x00\x12\x1b\n\x17SIP_MEDIA_ENCRYPT_ALLOW\x10\x01\x12\x1d\n\x19SIP_MEDIA_ENCRYPT_REQUIRE\x10\x02*a\n\x0cProviderType\x12\x19\n\x15PROVIDER_TYPE_UNKNOWN\x10\x00\x12\x1a\n\x16PROVIDER_TYPE_INTERNAL\x10\x01\x12\x1a\n\x16PROVIDER_TYPE_EXTERNAL\x10\x02*w\n\rSIPCallStatus\x12\x15\n\x11SCS_CALL_INCOMING\x10\x00\x12\x1a\n\x16SCS_PARTICIPANT_JOINED\x10\x01\x12\x0e\n\nSCS_ACTIVE\x10\x02\x12\x14\n\x10SCS_DISCONNECTED\x10\x03\x12\r\n\tSCS_ERROR\x10\x04*c\n\x11SIPTransferStatus\x12\x18\n\x14STS_TRANSFER_ONGOING\x10\x00\x12\x17\n\x13STS_TRANSFER_FAILED\x10\x01\x12\x1b\n\x17STS_TRANSFER_SUCCESSFUL\x10\x02*)\n\nSIPFeature\x12\x08\n\x04NONE\x10\x00\x12\x11\n\rKRISP_ENABLED\x10\x01*F\n\x10SIPCallDirection\x12\x0f\n\x0bSCD_UNKNOWN\x10\x00\x12\x0f\n\x0bSCD_INBOUND\x10\x01\x12\x10\n\x0cSCD_OUTBOUND\x10\x02\x32\xd7\x0b\n\x03SIP\x12P\n\x0cListSIPTrunk\x12\x1c.livekit.ListSIPTrunkRequest\x1a\x1d.livekit.ListSIPTrunkResponse\"\x03\x88\x02\x01\x12\\\n\x15\x43reateSIPInboundTrunk\x12%.livekit.CreateSIPInboundTrunkRequest\x1a\x1c.livekit.SIPInboundTrunkInfo\x12_\n\x16\x43reateSIPOutboundTrunk\x12&.livekit.CreateSIPOutboundTrunkRequest\x1a\x1d.livekit.SIPOutboundTrunkInfo\x12\\\n\x15UpdateSIPInboundTrunk\x12%.livekit.UpdateSIPInboundTrunkRequest\x1a\x1c.livekit.SIPInboundTrunkInfo\x12_\n\x16UpdateSIPOutboundTrunk\x12&.livekit.UpdateSIPOutboundTrunkRequest\x1a\x1d.livekit.SIPOutboundTrunkInfo\x12]\n\x12GetSIPInboundTrunk\x12\".livekit.GetSIPInboundTrunkRequest\x1a#.livekit.GetSIPInboundTrunkResponse\x12`\n\x13GetSIPOutboundTrunk\x12#.livekit.GetSIPOutboundTrunkRequest\x1a$.livekit.GetSIPOutboundTrunkResponse\x12`\n\x13ListSIPInboundTrunk\x12#.livekit.ListSIPInboundTrunkRequest\x1a$.livekit.ListSIPInboundTrunkResponse\x12\x63\n\x14ListSIPOutboundTrunk\x12$.livekit.ListSIPOutboundTrunkRequest\x1a%.livekit.ListSIPOutboundTrunkResponse\x12G\n\x0e\x44\x65leteSIPTrunk\x12\x1e.livekit.DeleteSIPTrunkRequest\x1a\x15.livekit.SIPTrunkInfo\x12\\\n\x15\x43reateSIPDispatchRule\x12%.livekit.CreateSIPDispatchRuleRequest\x1a\x1c.livekit.SIPDispatchRuleInfo\x12\\\n\x15UpdateSIPDispatchRule\x12%.livekit.UpdateSIPDispatchRuleRequest\x1a\x1c.livekit.SIPDispatchRuleInfo\x12`\n\x13ListSIPDispatchRule\x12#.livekit.ListSIPDispatchRuleRequest\x1a$.livekit.ListSIPDispatchRuleResponse\x12\\\n\x15\x44\x65leteSIPDispatchRule\x12%.livekit.DeleteSIPDispatchRuleRequest\x1a\x1c.livekit.SIPDispatchRuleInfo\x12Y\n\x14\x43reateSIPParticipant\x12$.livekit.CreateSIPParticipantRequest\x1a\x1b.livekit.SIPParticipantInfo\x12X\n\x16TransferSIPParticipant\x12&.livekit.TransferSIPParticipantRequest\x1a\x16.google.protobuf.EmptyBFZ#github.com/livekit/protocol/livekit\xaa\x02\rLiveKit.Proto\xea\x02\x0eLiveKit::Protob\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11livekit_sip.proto\x12\x07livekit\x1a\x19google/protobuf/any.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x14livekit_models.proto\x1a\x12livekit_room.proto\x1a\x14logger/options.proto\"A\n\tSIPStatus\x12$\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x16.livekit.SIPStatusCode\x12\x0e\n\x06status\x18\x02 \x01(\t\"\xe9\x02\n\x15\x43reateSIPTrunkRequest\x12\x19\n\x11inbound_addresses\x18\x01 \x03(\t\x12\x18\n\x10outbound_address\x18\x02 \x01(\t\x12\x17\n\x0foutbound_number\x18\x03 \x01(\t\x12!\n\x15inbound_numbers_regex\x18\x04 \x03(\tB\x02\x18\x01\x12\x17\n\x0finbound_numbers\x18\t \x03(\t\x12\x1d\n\x10inbound_username\x18\x05 \x01(\tB\x03\xa8P\x01\x12\x1d\n\x10inbound_password\x18\x06 \x01(\tB\x03\xa8P\x01\x12\x1e\n\x11outbound_username\x18\x07 \x01(\tB\x03\xa8P\x01\x12\x1e\n\x11outbound_password\x18\x08 \x01(\tB\x03\xa8P\x01\x12\x0c\n\x04name\x18\n \x01(\t\x12\x36\n\x08metadata\x18\x0b \x01(\tB$\xa8P\x01\xb2P\x1e:\x02\x18\x01\"&\n\x08SIPCodec\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04rate\x18\x02 \x01(\r\"\x94\x01\n\x0eSIPMediaConfig\x12\x1a\n\x12only_listed_codecs\x18\x01 \x01(\x08\x12!\n\x06\x63odecs\x18\x02 \x03(\x0b\x32\x11.livekit.SIPCodec\x12\x34\n\nencryption\x18\x03 \x01(\x0e\x32\x1b.livekit.SIPMediaEncryptionH\x00\x88\x01\x01\x42\r\n\x0b_encryption\"g\n\x0cProviderInfo\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12#\n\x04type\x18\x03 \x01(\x0e\x32\x15.livekit.ProviderType\x12\x18\n\x10prevent_transfer\x18\x04 \x01(\x08\"\xa4\x04\n\x0cSIPTrunkInfo\x12#\n\x0csip_trunk_id\x18\x01 \x01(\tB\r\xbaP\nsipTrunkID\x12-\n\x04kind\x18\x0e \x01(\x0e\x32\x1f.livekit.SIPTrunkInfo.TrunkKind\x12\x19\n\x11inbound_addresses\x18\x02 \x03(\t\x12\x18\n\x10outbound_address\x18\x03 \x01(\t\x12\x17\n\x0foutbound_number\x18\x04 \x01(\t\x12(\n\ttransport\x18\r \x01(\x0e\x32\x15.livekit.SIPTransport\x12!\n\x15inbound_numbers_regex\x18\x05 \x03(\tB\x02\x18\x01\x12\x17\n\x0finbound_numbers\x18\n \x03(\t\x12\x1d\n\x10inbound_username\x18\x06 \x01(\tB\x03\xa8P\x01\x12\x1d\n\x10inbound_password\x18\x07 \x01(\tB\x03\xa8P\x01\x12\x1e\n\x11outbound_username\x18\x08 \x01(\tB\x03\xa8P\x01\x12\x1e\n\x11outbound_password\x18\t \x01(\tB\x03\xa8P\x01\x12\x0c\n\x04name\x18\x0b \x01(\t\x12\x36\n\x08metadata\x18\x0c \x01(\tB$\xa8P\x01\xb2P\x1e\"D\n\tTrunkKind\x12\x10\n\x0cTRUNK_LEGACY\x10\x00\x12\x11\n\rTRUNK_INBOUND\x10\x01\x12\x12\n\x0eTRUNK_OUTBOUND\x10\x02:\x02\x18\x01\"K\n\x1c\x43reateSIPInboundTrunkRequest\x12+\n\x05trunk\x18\x01 \x01(\x0b\x32\x1c.livekit.SIPInboundTrunkInfo\"\xb0\x01\n\x1cUpdateSIPInboundTrunkRequest\x12#\n\x0csip_trunk_id\x18\x01 \x01(\tB\r\xbaP\nsipTrunkID\x12/\n\x07replace\x18\x02 \x01(\x0b\x32\x1c.livekit.SIPInboundTrunkInfoH\x00\x12\x30\n\x06update\x18\x03 \x01(\x0b\x32\x1e.livekit.SIPInboundTrunkUpdateH\x00\x42\x08\n\x06\x61\x63tion\"\xff\x07\n\x13SIPInboundTrunkInfo\x12#\n\x0csip_trunk_id\x18\x01 \x01(\tB\r\xbaP\nsipTrunkID\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x36\n\x08metadata\x18\x03 \x01(\tB$\xa8P\x01\xb2P\x1e\x12\x0f\n\x07numbers\x18\x04 \x03(\t\x12\x19\n\x11\x61llowed_addresses\x18\x05 \x03(\t\x12\x17\n\x0f\x61llowed_numbers\x18\x06 \x03(\t\x12\x1a\n\rauth_username\x18\x07 \x01(\tB\x03\xa8P\x01\x12\x1a\n\rauth_password\x18\x08 \x01(\tB\x03\xa8P\x01\x12`\n\x07headers\x18\t \x03(\x0b\x32).livekit.SIPInboundTrunkInfo.HeadersEntryB$\xa8P\x01\xb2P\x1e\x12T\n\x15headers_to_attributes\x18\n \x03(\x0b\x32\x35.livekit.SIPInboundTrunkInfo.HeadersToAttributesEntry\x12T\n\x15\x61ttributes_to_headers\x18\x0e \x03(\x0b\x32\x35.livekit.SIPInboundTrunkInfo.AttributesToHeadersEntry\x12\x32\n\x0finclude_headers\x18\x0f \x01(\x0e\x32\x19.livekit.SIPHeaderOptions\x12\x32\n\x0fringing_timeout\x18\x0b \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11max_call_duration\x18\x0c \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x15\n\rkrisp_enabled\x18\r \x01(\x08\x12\x35\n\x10media_encryption\x18\x10 \x01(\x0e\x32\x1b.livekit.SIPMediaEncryption\x12.\n\ncreated_at\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a:\n\x18HeadersToAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a:\n\x18\x41ttributesToHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb8\x03\n\x15SIPInboundTrunkUpdate\x12$\n\x07numbers\x18\x01 \x01(\x0b\x32\x13.livekit.ListUpdate\x12.\n\x11\x61llowed_addresses\x18\x02 \x01(\x0b\x32\x13.livekit.ListUpdate\x12,\n\x0f\x61llowed_numbers\x18\x03 \x01(\x0b\x32\x13.livekit.ListUpdate\x12\x1f\n\rauth_username\x18\x04 \x01(\tB\x03\xa8P\x01H\x00\x88\x01\x01\x12\x1f\n\rauth_password\x18\x05 \x01(\tB\x03\xa8P\x01H\x01\x88\x01\x01\x12\x11\n\x04name\x18\x06 \x01(\tH\x02\x88\x01\x01\x12;\n\x08metadata\x18\x07 \x01(\tB$\xa8P\x01\xb2P\x1eH\x03\x88\x01\x01\x12:\n\x10media_encryption\x18\x08 \x01(\x0e\x32\x1b.livekit.SIPMediaEncryptionH\x04\x88\x01\x01\x42\x10\n\x0e_auth_usernameB\x10\n\x0e_auth_passwordB\x07\n\x05_nameB\x0b\n\t_metadataB\x13\n\x11_media_encryption\"M\n\x1d\x43reateSIPOutboundTrunkRequest\x12,\n\x05trunk\x18\x01 \x01(\x0b\x32\x1d.livekit.SIPOutboundTrunkInfo\"\xb3\x01\n\x1dUpdateSIPOutboundTrunkRequest\x12#\n\x0csip_trunk_id\x18\x01 \x01(\tB\r\xbaP\nsipTrunkID\x12\x30\n\x07replace\x18\x02 \x01(\x0b\x32\x1d.livekit.SIPOutboundTrunkInfoH\x00\x12\x31\n\x06update\x18\x03 \x01(\x0b\x32\x1f.livekit.SIPOutboundTrunkUpdateH\x00\x42\x08\n\x06\x61\x63tion\"\xb9\x07\n\x14SIPOutboundTrunkInfo\x12#\n\x0csip_trunk_id\x18\x01 \x01(\tB\r\xbaP\nsipTrunkID\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x36\n\x08metadata\x18\x03 \x01(\tB$\xa8P\x01\xb2P\x1e\x12\x0f\n\x07\x61\x64\x64ress\x18\x04 \x01(\t\x12\x1b\n\x13\x64\x65stination_country\x18\x0e \x01(\t\x12(\n\ttransport\x18\x05 \x01(\x0e\x32\x15.livekit.SIPTransport\x12\x0f\n\x07numbers\x18\x06 \x03(\t\x12\x1a\n\rauth_username\x18\x07 \x01(\tB\x03\xa8P\x01\x12\x1a\n\rauth_password\x18\x08 \x01(\tB\x03\xa8P\x01\x12\x61\n\x07headers\x18\t \x03(\x0b\x32*.livekit.SIPOutboundTrunkInfo.HeadersEntryB$\xa8P\x01\xb2P\x1e\x12U\n\x15headers_to_attributes\x18\n \x03(\x0b\x32\x36.livekit.SIPOutboundTrunkInfo.HeadersToAttributesEntry\x12U\n\x15\x61ttributes_to_headers\x18\x0b \x03(\x0b\x32\x36.livekit.SIPOutboundTrunkInfo.AttributesToHeadersEntry\x12\x32\n\x0finclude_headers\x18\x0c \x01(\x0e\x32\x19.livekit.SIPHeaderOptions\x12\x35\n\x10media_encryption\x18\r \x01(\x0e\x32\x1b.livekit.SIPMediaEncryption\x12\x11\n\tfrom_host\x18\x0f \x01(\t\x12.\n\ncreated_at\x18\x10 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a:\n\x18HeadersToAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a:\n\x18\x41ttributesToHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x9a\x04\n\x16SIPOutboundTrunkUpdate\x12\x14\n\x07\x61\x64\x64ress\x18\x01 \x01(\tH\x00\x88\x01\x01\x12-\n\ttransport\x18\x02 \x01(\x0e\x32\x15.livekit.SIPTransportH\x01\x88\x01\x01\x12 \n\x13\x64\x65stination_country\x18\t \x01(\tH\x02\x88\x01\x01\x12$\n\x07numbers\x18\x03 \x01(\x0b\x32\x13.livekit.ListUpdate\x12\x1f\n\rauth_username\x18\x04 \x01(\tB\x03\xa8P\x01H\x03\x88\x01\x01\x12\x1f\n\rauth_password\x18\x05 \x01(\tB\x03\xa8P\x01H\x04\x88\x01\x01\x12\x11\n\x04name\x18\x06 \x01(\tH\x05\x88\x01\x01\x12;\n\x08metadata\x18\x07 \x01(\tB$\xa8P\x01\xb2P\x1eH\x06\x88\x01\x01\x12:\n\x10media_encryption\x18\x08 \x01(\x0e\x32\x1b.livekit.SIPMediaEncryptionH\x07\x88\x01\x01\x12\x16\n\tfrom_host\x18\n \x01(\tH\x08\x88\x01\x01\x42\n\n\x08_addressB\x0c\n\n_transportB\x16\n\x14_destination_countryB\x10\n\x0e_auth_usernameB\x10\n\x0e_auth_passwordB\x07\n\x05_nameB\x0b\n\t_metadataB\x13\n\x11_media_encryptionB\x0c\n\n_from_host\"@\n\x19GetSIPInboundTrunkRequest\x12#\n\x0csip_trunk_id\x18\x01 \x01(\tB\r\xbaP\nsipTrunkID\"I\n\x1aGetSIPInboundTrunkResponse\x12+\n\x05trunk\x18\x01 \x01(\x0b\x32\x1c.livekit.SIPInboundTrunkInfo\"A\n\x1aGetSIPOutboundTrunkRequest\x12#\n\x0csip_trunk_id\x18\x01 \x01(\tB\r\xbaP\nsipTrunkID\"K\n\x1bGetSIPOutboundTrunkResponse\x12,\n\x05trunk\x18\x01 \x01(\x0b\x32\x1d.livekit.SIPOutboundTrunkInfo\"<\n\x13ListSIPTrunkRequest\x12!\n\x04page\x18\x01 \x01(\x0b\x32\x13.livekit.Pagination:\x02\x18\x01\"@\n\x14ListSIPTrunkResponse\x12$\n\x05items\x18\x01 \x03(\x0b\x32\x15.livekit.SIPTrunkInfo:\x02\x18\x01\"c\n\x1aListSIPInboundTrunkRequest\x12!\n\x04page\x18\x03 \x01(\x0b\x32\x13.livekit.Pagination\x12\x11\n\ttrunk_ids\x18\x01 \x03(\t\x12\x0f\n\x07numbers\x18\x02 \x03(\t\"J\n\x1bListSIPInboundTrunkResponse\x12+\n\x05items\x18\x01 \x03(\x0b\x32\x1c.livekit.SIPInboundTrunkInfo\"d\n\x1bListSIPOutboundTrunkRequest\x12!\n\x04page\x18\x03 \x01(\x0b\x32\x13.livekit.Pagination\x12\x11\n\ttrunk_ids\x18\x01 \x03(\t\x12\x0f\n\x07numbers\x18\x02 \x03(\t\"L\n\x1cListSIPOutboundTrunkResponse\x12,\n\x05items\x18\x01 \x03(\x0b\x32\x1d.livekit.SIPOutboundTrunkInfo\"<\n\x15\x44\x65leteSIPTrunkRequest\x12#\n\x0csip_trunk_id\x18\x01 \x01(\tB\r\xbaP\nsipTrunkID\"7\n\x15SIPDispatchRuleDirect\x12\x11\n\troom_name\x18\x01 \x01(\t\x12\x0b\n\x03pin\x18\x02 \x01(\t\"T\n\x19SIPDispatchRuleIndividual\x12\x13\n\x0broom_prefix\x18\x01 \x01(\t\x12\x0b\n\x03pin\x18\x02 \x01(\t\x12\x15\n\rno_randomness\x18\x03 \x01(\x08\"L\n\x15SIPDispatchRuleCallee\x12\x13\n\x0broom_prefix\x18\x01 \x01(\t\x12\x0b\n\x03pin\x18\x02 \x01(\t\x12\x11\n\trandomize\x18\x03 \x01(\x08\"\xe1\x01\n\x0fSIPDispatchRule\x12>\n\x14\x64ispatch_rule_direct\x18\x01 \x01(\x0b\x32\x1e.livekit.SIPDispatchRuleDirectH\x00\x12\x46\n\x18\x64ispatch_rule_individual\x18\x02 \x01(\x0b\x32\".livekit.SIPDispatchRuleIndividualH\x00\x12>\n\x14\x64ispatch_rule_callee\x18\x03 \x01(\x0b\x32\x1e.livekit.SIPDispatchRuleCalleeH\x00\x42\x06\n\x04rule\"\x92\x04\n\x1c\x43reateSIPDispatchRuleRequest\x12\x33\n\rdispatch_rule\x18\n \x01(\x0b\x32\x1c.livekit.SIPDispatchRuleInfo\x12*\n\x04rule\x18\x01 \x01(\x0b\x32\x18.livekit.SIPDispatchRuleB\x02\x18\x01\x12\x15\n\ttrunk_ids\x18\x02 \x03(\tB\x02\x18\x01\x12\x1d\n\x11hide_phone_number\x18\x03 \x01(\x08\x42\x02\x18\x01\x12\x1b\n\x0finbound_numbers\x18\x06 \x03(\tB\x02\x18\x01\x12\x10\n\x04name\x18\x04 \x01(\tB\x02\x18\x01\x12\x38\n\x08metadata\x18\x05 \x01(\tB&\x18\x01\xa8P\x01\xb2P\x1e\x12q\n\nattributes\x18\x07 \x03(\x0b\x32\x35.livekit.CreateSIPDispatchRuleRequest.AttributesEntryB&\x18\x01\xa8P\x01\xb2P\x1e\x12\x17\n\x0broom_preset\x18\x08 \x01(\tB\x02\x18\x01\x12\x33\n\x0broom_config\x18\t \x01(\x0b\x32\x1a.livekit.RoomConfigurationB\x02\x18\x01\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xbf\x01\n\x1cUpdateSIPDispatchRuleRequest\x12\x32\n\x14sip_dispatch_rule_id\x18\x01 \x01(\tB\x14\xbaP\x11sipDispatchRuleID\x12/\n\x07replace\x18\x02 \x01(\x0b\x32\x1c.livekit.SIPDispatchRuleInfoH\x00\x12\x30\n\x06update\x18\x03 \x01(\x0b\x32\x1e.livekit.SIPDispatchRuleUpdateH\x00\x42\x08\n\x06\x61\x63tion\"\xca\x05\n\x13SIPDispatchRuleInfo\x12\x32\n\x14sip_dispatch_rule_id\x18\x01 \x01(\tB\x14\xbaP\x11sipDispatchRuleID\x12&\n\x04rule\x18\x02 \x01(\x0b\x32\x18.livekit.SIPDispatchRule\x12\x11\n\ttrunk_ids\x18\x03 \x03(\t\x12\x19\n\x11hide_phone_number\x18\x04 \x01(\x08\x12\x17\n\x0finbound_numbers\x18\x07 \x03(\t\x12\x0f\n\x07numbers\x18\r \x03(\t\x12\x0c\n\x04name\x18\x05 \x01(\t\x12\x36\n\x08metadata\x18\x06 \x01(\tB$\xa8P\x01\xb2P\x1e\x12\x66\n\nattributes\x18\x08 \x03(\x0b\x32,.livekit.SIPDispatchRuleInfo.AttributesEntryB$\xa8P\x01\xb2P\x1e\x12\x13\n\x0broom_preset\x18\t \x01(\t\x12/\n\x0broom_config\x18\n \x01(\x0b\x32\x1a.livekit.RoomConfiguration\x12&\n\x05media\x18\x10 \x01(\x0b\x32\x17.livekit.SIPMediaConfig\x12\x15\n\rkrisp_enabled\x18\x0b \x01(\x08\x12\x39\n\x10media_encryption\x18\x0c \x01(\x0e\x32\x1b.livekit.SIPMediaEncryptionB\x02\x18\x01\x12.\n\ncreated_at\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x0f \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xe7\x03\n\x15SIPDispatchRuleUpdate\x12&\n\ttrunk_ids\x18\x01 \x01(\x0b\x32\x13.livekit.ListUpdate\x12&\n\x04rule\x18\x02 \x01(\x0b\x32\x18.livekit.SIPDispatchRule\x12\x11\n\x04name\x18\x03 \x01(\tH\x00\x88\x01\x01\x12;\n\x08metadata\x18\x04 \x01(\tB$\xa8P\x01\xb2P\x1eH\x01\x88\x01\x01\x12h\n\nattributes\x18\x05 \x03(\x0b\x32..livekit.SIPDispatchRuleUpdate.AttributesEntryB$\xa8P\x01\xb2P\x1e\x12>\n\x10media_encryption\x18\x06 \x01(\x0e\x32\x1b.livekit.SIPMediaEncryptionB\x02\x18\x01H\x02\x88\x01\x01\x12&\n\x05media\x18\x07 \x01(\x0b\x32\x17.livekit.SIPMediaConfig\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x07\n\x05_nameB\x0b\n\t_metadataB\x13\n\x11_media_encryption\"m\n\x1aListSIPDispatchRuleRequest\x12!\n\x04page\x18\x03 \x01(\x0b\x32\x13.livekit.Pagination\x12\x19\n\x11\x64ispatch_rule_ids\x18\x01 \x03(\t\x12\x11\n\ttrunk_ids\x18\x02 \x03(\t\"J\n\x1bListSIPDispatchRuleResponse\x12+\n\x05items\x18\x01 \x03(\x0b\x32\x1c.livekit.SIPDispatchRuleInfo\"R\n\x1c\x44\x65leteSIPDispatchRuleRequest\x12\x32\n\x14sip_dispatch_rule_id\x18\x01 \x01(\tB\x14\xbaP\x11sipDispatchRuleID\"\xd7\x03\n\x11SIPOutboundConfig\x12\x10\n\x08hostname\x18\x01 \x01(\t\x12\x1b\n\x13\x64\x65stination_country\x18\x07 \x01(\t\x12(\n\ttransport\x18\x02 \x01(\x0e\x32\x15.livekit.SIPTransport\x12\x1a\n\rauth_username\x18\x03 \x01(\tB\x03\xa8P\x01\x12\x1a\n\rauth_password\x18\x04 \x01(\tB\x03\xa8P\x01\x12R\n\x15headers_to_attributes\x18\x05 \x03(\x0b\x32\x33.livekit.SIPOutboundConfig.HeadersToAttributesEntry\x12R\n\x15\x61ttributes_to_headers\x18\x06 \x03(\x0b\x32\x33.livekit.SIPOutboundConfig.AttributesToHeadersEntry\x12\x11\n\tfrom_host\x18\x08 \x01(\t\x1a:\n\x18HeadersToAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a:\n\x18\x41ttributesToHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xcd\t\n\x1b\x43reateSIPParticipantRequest\x12#\n\x0csip_trunk_id\x18\x01 \x01(\tB\r\xbaP\nsipTrunkID\x12)\n\x05trunk\x18\x14 \x01(\x0b\x32\x1a.livekit.SIPOutboundConfig\x12\x13\n\x0bsip_call_to\x18\x02 \x01(\t\x12\x12\n\nsip_number\x18\x0f \x01(\t\x12\x11\n\troom_name\x18\x03 \x01(\t\x12\x1c\n\x14participant_identity\x18\x04 \x01(\t\x12>\n\x10participant_name\x18\x07 \x01(\tB$\xa8P\x01\xb2P\x1e\x12\x42\n\x14participant_metadata\x18\x08 \x01(\tB$\xa8P\x01\xb2P\x1e\x12\x85\x01\n\x16participant_attributes\x18\t \x03(\x0b\x32?.livekit.CreateSIPParticipantRequest.ParticipantAttributesEntryB$\xa8P\x01\xb2P\x1e\x12\x0c\n\x04\x64tmf\x18\x05 \x01(\t\x12\x19\n\rplay_ringtone\x18\x06 \x01(\x08\x42\x02\x18\x01\x12\x15\n\rplay_dialtone\x18\r \x01(\x08\x12\x19\n\x11hide_phone_number\x18\n \x01(\x08\x12h\n\x07headers\x18\x10 \x03(\x0b\x32\x31.livekit.CreateSIPParticipantRequest.HeadersEntryB$\xa8P\x01\xb2P\x1e\x12\x32\n\x0finclude_headers\x18\x11 \x01(\x0e\x32\x19.livekit.SIPHeaderOptions\x12\x32\n\x0fringing_timeout\x18\x0b \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11max_call_duration\x18\x0c \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x15\n\rkrisp_enabled\x18\x0e \x01(\x08\x12\x39\n\x10media_encryption\x18\x12 \x01(\x0e\x32\x1b.livekit.SIPMediaEncryptionB\x02\x18\x01\x12&\n\x05media\x18\x17 \x01(\x0b\x32\x17.livekit.SIPMediaConfig\x12\x1b\n\x13wait_until_answered\x18\x13 \x01(\x08\x12?\n\x0c\x64isplay_name\x18\x15 \x01(\tB$\xa8P\x01\xb2P\x1eH\x00\x88\x01\x01\x12.\n\x0b\x64\x65stination\x18\x16 \x01(\x0b\x32\x14.livekit.DestinationH\x01\x88\x01\x01\x1a<\n\x1aParticipantAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x0f\n\r_display_nameB\x0e\n\x0c_destination\"\x92\x01\n\x12SIPParticipantInfo\x12(\n\x0eparticipant_id\x18\x01 \x01(\tB\x10\xbaP\rparticipantID\x12\x1c\n\x14participant_identity\x18\x02 \x01(\t\x12\x11\n\troom_name\x18\x03 \x01(\t\x12!\n\x0bsip_call_id\x18\x04 \x01(\tB\x0c\xbaP\tsipCallID\"\xcc\x02\n\x1dTransferSIPParticipantRequest\x12\x1c\n\x14participant_identity\x18\x01 \x01(\t\x12\x11\n\troom_name\x18\x02 \x01(\t\x12\x13\n\x0btransfer_to\x18\x03 \x01(\t\x12\x15\n\rplay_dialtone\x18\x04 \x01(\x08\x12j\n\x07headers\x18\x05 \x03(\x0b\x32\x33.livekit.TransferSIPParticipantRequest.HeadersEntryB$\xa8P\x01\xb2P\x1e\x12\x32\n\x0fringing_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x99\x08\n\x0bSIPCallInfo\x12\x1a\n\x07\x63\x61ll_id\x18\x01 \x01(\tB\t\xbaP\x06\x63\x61llID\x12\x1c\n\x08trunk_id\x18\x02 \x01(\tB\n\xbaP\x07trunkID\x12+\n\x10\x64ispatch_rule_id\x18\x10 \x01(\tB\x11\xbaP\x0e\x64ispatchRuleID\x12\x0e\n\x06region\x18\x11 \x01(\t\x12\x11\n\troom_name\x18\x03 \x01(\t\x12\x1a\n\x07room_id\x18\x04 \x01(\tB\t\xbaP\x06roomID\x12\x1c\n\x14participant_identity\x18\x05 \x01(\t\x12u\n\x16participant_attributes\x18\x12 \x03(\x0b\x32/.livekit.SIPCallInfo.ParticipantAttributesEntryB$\xa8P\x01\xb2P\x1e\x12!\n\x08\x66rom_uri\x18\x06 \x01(\x0b\x32\x0f.livekit.SIPUri\x12\x1f\n\x06to_uri\x18\x07 \x01(\x0b\x32\x0f.livekit.SIPUri\x12\x16\n\ncreated_at\x18\t \x01(\x03\x42\x02\x18\x01\x12\x16\n\nstarted_at\x18\n \x01(\x03\x42\x02\x18\x01\x12\x14\n\x08\x65nded_at\x18\x0b \x01(\x03\x42\x02\x18\x01\x12-\n\x10\x65nabled_features\x18\x0e \x03(\x0e\x32\x13.livekit.SIPFeature\x12\x31\n\x0e\x63\x61ll_direction\x18\x0f \x01(\x0e\x32\x19.livekit.SIPCallDirection\x12+\n\x0b\x63\x61ll_status\x18\x08 \x01(\x0e\x32\x16.livekit.SIPCallStatus\x12\x15\n\rcreated_at_ns\x18\x16 \x01(\x03\x12\x15\n\rstarted_at_ns\x18\x17 \x01(\x03\x12\x13\n\x0b\x65nded_at_ns\x18\x18 \x01(\x03\x12\x34\n\x11\x64isconnect_reason\x18\x0c \x01(\x0e\x32\x19.livekit.DisconnectReason\x12\r\n\x05\x65rror\x18\r \x01(\t\x12,\n\x10\x63\x61ll_status_code\x18\x13 \x01(\x0b\x32\x12.livekit.SIPStatus\x12\x13\n\x0b\x61udio_codec\x18\x14 \x01(\t\x12\x18\n\x10media_encryption\x18\x15 \x01(\t\x12\x16\n\x0epcap_file_link\x18\x19 \x01(\t\x12*\n\x0c\x63\x61ll_context\x18\x1a \x03(\x0b\x32\x14.google.protobuf.Any\x12,\n\rprovider_info\x18\x1b \x01(\x0b\x32\x15.livekit.ProviderInfo\x12!\n\x0bsip_call_id\x18\x1c \x01(\tB\x0c\xbaP\tsipCallID\x1a<\n\x1aParticipantAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa0\x02\n\x0fSIPTransferInfo\x12\"\n\x0btransfer_id\x18\x01 \x01(\tB\r\xbaP\ntransferID\x12\x1a\n\x07\x63\x61ll_id\x18\x02 \x01(\tB\t\xbaP\x06\x63\x61llID\x12\x13\n\x0btransfer_to\x18\x03 \x01(\t\x12 \n\x18transfer_initiated_at_ns\x18\x04 \x01(\x03\x12 \n\x18transfer_completed_at_ns\x18\x05 \x01(\x03\x12\x33\n\x0ftransfer_status\x18\x06 \x01(\x0e\x32\x1a.livekit.SIPTransferStatus\x12\r\n\x05\x65rror\x18\x07 \x01(\t\x12\x30\n\x14transfer_status_code\x18\x08 \x01(\x0b\x32\x12.livekit.SIPStatus\"h\n\x06SIPUri\x12\x0c\n\x04user\x18\x01 \x01(\t\x12\x0c\n\x04host\x18\x02 \x01(\t\x12\n\n\x02ip\x18\x03 \x01(\t\x12\x0c\n\x04port\x18\x04 \x01(\r\x12(\n\ttransport\x18\x05 \x01(\x0e\x32\x15.livekit.SIPTransport\"<\n\x0b\x44\x65stination\x12\x0c\n\x04\x63ity\x18\x01 \x01(\t\x12\x0f\n\x07\x63ountry\x18\x02 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t*\xde\x14\n\rSIPStatusCode\x12\x16\n\x12SIP_STATUS_UNKNOWN\x10\x00\x12\x15\n\x11SIP_STATUS_TRYING\x10\x64\x12\x17\n\x12SIP_STATUS_RINGING\x10\xb4\x01\x12!\n\x1cSIP_STATUS_CALL_IS_FORWARDED\x10\xb5\x01\x12\x16\n\x11SIP_STATUS_QUEUED\x10\xb6\x01\x12 \n\x1bSIP_STATUS_SESSION_PROGRESS\x10\xb7\x01\x12\'\n\"SIP_STATUS_EARLY_DIALOG_TERMINATED\x10\xc7\x01\x12\x12\n\rSIP_STATUS_OK\x10\xc8\x01\x12\x18\n\x13SIP_STATUS_ACCEPTED\x10\xca\x01\x12\x1f\n\x1aSIP_STATUS_NO_NOTIFICATION\x10\xcc\x01\x12 \n\x1bSIP_STATUS_MULTIPLE_CHOICES\x10\xac\x02\x12!\n\x1cSIP_STATUS_MOVED_PERMANENTLY\x10\xad\x02\x12!\n\x1cSIP_STATUS_MOVED_TEMPORARILY\x10\xae\x02\x12\x19\n\x14SIP_STATUS_USE_PROXY\x10\xb1\x02\x12#\n\x1eSIP_STATUS_ALTERNATIVE_SERVICE\x10\xfc\x02\x12\x1b\n\x16SIP_STATUS_BAD_REQUEST\x10\x90\x03\x12\x1c\n\x17SIP_STATUS_UNAUTHORIZED\x10\x91\x03\x12 \n\x1bSIP_STATUS_PAYMENT_REQUIRED\x10\x92\x03\x12\x19\n\x14SIP_STATUS_FORBIDDEN\x10\x93\x03\x12\x18\n\x13SIP_STATUS_NOTFOUND\x10\x94\x03\x12\"\n\x1dSIP_STATUS_METHOD_NOT_ALLOWED\x10\x95\x03\x12\x1e\n\x19SIP_STATUS_NOT_ACCEPTABLE\x10\x96\x03\x12#\n\x1eSIP_STATUS_PROXY_AUTH_REQUIRED\x10\x97\x03\x12\x1f\n\x1aSIP_STATUS_REQUEST_TIMEOUT\x10\x98\x03\x12\x18\n\x13SIP_STATUS_CONFLICT\x10\x99\x03\x12\x14\n\x0fSIP_STATUS_GONE\x10\x9a\x03\x12\x1f\n\x1aSIP_STATUS_LENGTH_REQUIRED\x10\x9b\x03\x12*\n%SIP_STATUS_CONDITIONAL_REQUEST_FAILED\x10\x9c\x03\x12(\n#SIP_STATUS_REQUEST_ENTITY_TOO_LARGE\x10\x9d\x03\x12$\n\x1fSIP_STATUS_REQUEST_URI_TOO_LONG\x10\x9e\x03\x12&\n!SIP_STATUS_UNSUPPORTED_MEDIA_TYPE\x10\x9f\x03\x12/\n*SIP_STATUS_REQUESTED_RANGE_NOT_SATISFIABLE\x10\xa0\x03\x12)\n$SIP_STATUS_UNKNOWN_RESOURCE_PRIORITY\x10\xa1\x03\x12\x1d\n\x18SIP_STATUS_BAD_EXTENSION\x10\xa4\x03\x12\"\n\x1dSIP_STATUS_EXTENSION_REQUIRED\x10\xa5\x03\x12*\n%SIP_STATUS_SESSION_INTERVAL_TOO_SMALL\x10\xa6\x03\x12\"\n\x1dSIP_STATUS_INTERVAL_TOO_BRIEF\x10\xa7\x03\x12(\n#SIP_STATUS_BAD_LOCATION_INFORMATION\x10\xa8\x03\x12!\n\x1cSIP_STATUS_BAD_ALERT_MESSAGE\x10\xa9\x03\x12#\n\x1eSIP_STATUS_USE_IDENTITY_HEADER\x10\xac\x03\x12)\n$SIP_STATUS_PROVIDE_REFERRER_IDENTITY\x10\xad\x03\x12\x1b\n\x16SIP_STATUS_FLOW_FAILED\x10\xae\x03\x12$\n\x1fSIP_STATUS_ANONYMITY_DISALLOWED\x10\xb1\x03\x12!\n\x1cSIP_STATUS_BAD_IDENTITY_INFO\x10\xb4\x03\x12\'\n\"SIP_STATUS_UNSUPPORTED_CERTIFICATE\x10\xb5\x03\x12\'\n\"SIP_STATUS_INVALID_IDENTITY_HEADER\x10\xb6\x03\x12\x30\n+SIP_STATUS_FIRST_HOP_LACKS_OUTBOUND_SUPPORT\x10\xb7\x03\x12$\n\x1fSIP_STATUS_MAX_BREADTH_EXCEEDED\x10\xb8\x03\x12 \n\x1bSIP_STATUS_BAD_INFO_PACKAGE\x10\xd5\x03\x12\x1e\n\x19SIP_STATUS_CONSENT_NEEDED\x10\xd6\x03\x12\'\n\"SIP_STATUS_TEMPORARILY_UNAVAILABLE\x10\xe0\x03\x12\x30\n+SIP_STATUS_CALL_TRANSACTION_DOES_NOT_EXISTS\x10\xe1\x03\x12\x1d\n\x18SIP_STATUS_LOOP_DETECTED\x10\xe2\x03\x12\x1d\n\x18SIP_STATUS_TOO_MANY_HOPS\x10\xe3\x03\x12\"\n\x1dSIP_STATUS_ADDRESS_INCOMPLETE\x10\xe4\x03\x12\x19\n\x14SIP_STATUS_AMBIGUOUS\x10\xe5\x03\x12\x19\n\x14SIP_STATUS_BUSY_HERE\x10\xe6\x03\x12\"\n\x1dSIP_STATUS_REQUEST_TERMINATED\x10\xe7\x03\x12#\n\x1eSIP_STATUS_NOT_ACCEPTABLE_HERE\x10\xe8\x03\x12\x19\n\x14SIP_STATUS_BAD_EVENT\x10\xe9\x03\x12\x1f\n\x1aSIP_STATUS_REQUEST_PENDING\x10\xeb\x03\x12\x1e\n\x19SIP_STATUS_UNDECIPHERABLE\x10\xed\x03\x12+\n&SIP_STATUS_SECURITY_AGREEMENT_REQUIRED\x10\xee\x03\x12%\n SIP_STATUS_INTERNAL_SERVER_ERROR\x10\xf4\x03\x12\x1f\n\x1aSIP_STATUS_NOT_IMPLEMENTED\x10\xf5\x03\x12\x1b\n\x16SIP_STATUS_BAD_GATEWAY\x10\xf6\x03\x12#\n\x1eSIP_STATUS_SERVICE_UNAVAILABLE\x10\xf7\x03\x12\x1f\n\x1aSIP_STATUS_GATEWAY_TIMEOUT\x10\xf8\x03\x12%\n SIP_STATUS_VERSION_NOT_SUPPORTED\x10\xf9\x03\x12!\n\x1cSIP_STATUS_MESSAGE_TOO_LARGE\x10\x81\x04\x12&\n!SIP_STATUS_GLOBAL_BUSY_EVERYWHERE\x10\xd8\x04\x12\x1e\n\x19SIP_STATUS_GLOBAL_DECLINE\x10\xdb\x04\x12.\n)SIP_STATUS_GLOBAL_DOES_NOT_EXIST_ANYWHERE\x10\xdc\x04\x12%\n SIP_STATUS_GLOBAL_NOT_ACCEPTABLE\x10\xde\x04\x12\x1f\n\x1aSIP_STATUS_GLOBAL_UNWANTED\x10\xdf\x04\x12\x1f\n\x1aSIP_STATUS_GLOBAL_REJECTED\x10\xe0\x04*k\n\x0cSIPTransport\x12\x16\n\x12SIP_TRANSPORT_AUTO\x10\x00\x12\x15\n\x11SIP_TRANSPORT_UDP\x10\x01\x12\x15\n\x11SIP_TRANSPORT_TCP\x10\x02\x12\x15\n\x11SIP_TRANSPORT_TLS\x10\x03*N\n\x10SIPHeaderOptions\x12\x12\n\x0eSIP_NO_HEADERS\x10\x00\x12\x11\n\rSIP_X_HEADERS\x10\x01\x12\x13\n\x0fSIP_ALL_HEADERS\x10\x02*o\n\x12SIPMediaEncryption\x12\x1d\n\x19SIP_MEDIA_ENCRYPT_DISABLE\x10\x00\x12\x1b\n\x17SIP_MEDIA_ENCRYPT_ALLOW\x10\x01\x12\x1d\n\x19SIP_MEDIA_ENCRYPT_REQUIRE\x10\x02*a\n\x0cProviderType\x12\x19\n\x15PROVIDER_TYPE_UNKNOWN\x10\x00\x12\x1a\n\x16PROVIDER_TYPE_INTERNAL\x10\x01\x12\x1a\n\x16PROVIDER_TYPE_EXTERNAL\x10\x02*w\n\rSIPCallStatus\x12\x15\n\x11SCS_CALL_INCOMING\x10\x00\x12\x1a\n\x16SCS_PARTICIPANT_JOINED\x10\x01\x12\x0e\n\nSCS_ACTIVE\x10\x02\x12\x14\n\x10SCS_DISCONNECTED\x10\x03\x12\r\n\tSCS_ERROR\x10\x04*c\n\x11SIPTransferStatus\x12\x18\n\x14STS_TRANSFER_ONGOING\x10\x00\x12\x17\n\x13STS_TRANSFER_FAILED\x10\x01\x12\x1b\n\x17STS_TRANSFER_SUCCESSFUL\x10\x02*)\n\nSIPFeature\x12\x08\n\x04NONE\x10\x00\x12\x11\n\rKRISP_ENABLED\x10\x01*F\n\x10SIPCallDirection\x12\x0f\n\x0bSCD_UNKNOWN\x10\x00\x12\x0f\n\x0bSCD_INBOUND\x10\x01\x12\x10\n\x0cSCD_OUTBOUND\x10\x02\x32\xd7\x0b\n\x03SIP\x12P\n\x0cListSIPTrunk\x12\x1c.livekit.ListSIPTrunkRequest\x1a\x1d.livekit.ListSIPTrunkResponse\"\x03\x88\x02\x01\x12\\\n\x15\x43reateSIPInboundTrunk\x12%.livekit.CreateSIPInboundTrunkRequest\x1a\x1c.livekit.SIPInboundTrunkInfo\x12_\n\x16\x43reateSIPOutboundTrunk\x12&.livekit.CreateSIPOutboundTrunkRequest\x1a\x1d.livekit.SIPOutboundTrunkInfo\x12\\\n\x15UpdateSIPInboundTrunk\x12%.livekit.UpdateSIPInboundTrunkRequest\x1a\x1c.livekit.SIPInboundTrunkInfo\x12_\n\x16UpdateSIPOutboundTrunk\x12&.livekit.UpdateSIPOutboundTrunkRequest\x1a\x1d.livekit.SIPOutboundTrunkInfo\x12]\n\x12GetSIPInboundTrunk\x12\".livekit.GetSIPInboundTrunkRequest\x1a#.livekit.GetSIPInboundTrunkResponse\x12`\n\x13GetSIPOutboundTrunk\x12#.livekit.GetSIPOutboundTrunkRequest\x1a$.livekit.GetSIPOutboundTrunkResponse\x12`\n\x13ListSIPInboundTrunk\x12#.livekit.ListSIPInboundTrunkRequest\x1a$.livekit.ListSIPInboundTrunkResponse\x12\x63\n\x14ListSIPOutboundTrunk\x12$.livekit.ListSIPOutboundTrunkRequest\x1a%.livekit.ListSIPOutboundTrunkResponse\x12G\n\x0e\x44\x65leteSIPTrunk\x12\x1e.livekit.DeleteSIPTrunkRequest\x1a\x15.livekit.SIPTrunkInfo\x12\\\n\x15\x43reateSIPDispatchRule\x12%.livekit.CreateSIPDispatchRuleRequest\x1a\x1c.livekit.SIPDispatchRuleInfo\x12\\\n\x15UpdateSIPDispatchRule\x12%.livekit.UpdateSIPDispatchRuleRequest\x1a\x1c.livekit.SIPDispatchRuleInfo\x12`\n\x13ListSIPDispatchRule\x12#.livekit.ListSIPDispatchRuleRequest\x1a$.livekit.ListSIPDispatchRuleResponse\x12\\\n\x15\x44\x65leteSIPDispatchRule\x12%.livekit.DeleteSIPDispatchRuleRequest\x1a\x1c.livekit.SIPDispatchRuleInfo\x12Y\n\x14\x43reateSIPParticipant\x12$.livekit.CreateSIPParticipantRequest\x1a\x1b.livekit.SIPParticipantInfo\x12X\n\x16TransferSIPParticipant\x12&.livekit.TransferSIPParticipantRequest\x1a\x16.google.protobuf.EmptyBFZ#github.com/livekit/protocol/livekit\xaa\x02\rLiveKit.Proto\xea\x02\x0eLiveKit::Protob\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -147,12 +147,16 @@ _globals['_SIPDISPATCHRULEINFO'].fields_by_name['metadata']._serialized_options = b'\250P\001\262P\036' _globals['_SIPDISPATCHRULEINFO'].fields_by_name['attributes']._options = None _globals['_SIPDISPATCHRULEINFO'].fields_by_name['attributes']._serialized_options = b'\250P\001\262P\036' + _globals['_SIPDISPATCHRULEINFO'].fields_by_name['media_encryption']._options = None + _globals['_SIPDISPATCHRULEINFO'].fields_by_name['media_encryption']._serialized_options = b'\030\001' _globals['_SIPDISPATCHRULEUPDATE_ATTRIBUTESENTRY']._options = None _globals['_SIPDISPATCHRULEUPDATE_ATTRIBUTESENTRY']._serialized_options = b'8\001' _globals['_SIPDISPATCHRULEUPDATE'].fields_by_name['metadata']._options = None _globals['_SIPDISPATCHRULEUPDATE'].fields_by_name['metadata']._serialized_options = b'\250P\001\262P\036' _globals['_SIPDISPATCHRULEUPDATE'].fields_by_name['attributes']._options = None _globals['_SIPDISPATCHRULEUPDATE'].fields_by_name['attributes']._serialized_options = b'\250P\001\262P\036' + _globals['_SIPDISPATCHRULEUPDATE'].fields_by_name['media_encryption']._options = None + _globals['_SIPDISPATCHRULEUPDATE'].fields_by_name['media_encryption']._serialized_options = b'\030\001' _globals['_DELETESIPDISPATCHRULEREQUEST'].fields_by_name['sip_dispatch_rule_id']._options = None _globals['_DELETESIPDISPATCHRULEREQUEST'].fields_by_name['sip_dispatch_rule_id']._serialized_options = b'\272P\021sipDispatchRuleID' _globals['_SIPOUTBOUNDCONFIG_HEADERSTOATTRIBUTESENTRY']._options = None @@ -179,6 +183,8 @@ _globals['_CREATESIPPARTICIPANTREQUEST'].fields_by_name['play_ringtone']._serialized_options = b'\030\001' _globals['_CREATESIPPARTICIPANTREQUEST'].fields_by_name['headers']._options = None _globals['_CREATESIPPARTICIPANTREQUEST'].fields_by_name['headers']._serialized_options = b'\250P\001\262P\036' + _globals['_CREATESIPPARTICIPANTREQUEST'].fields_by_name['media_encryption']._options = None + _globals['_CREATESIPPARTICIPANTREQUEST'].fields_by_name['media_encryption']._serialized_options = b'\030\001' _globals['_CREATESIPPARTICIPANTREQUEST'].fields_by_name['display_name']._options = None _globals['_CREATESIPPARTICIPANTREQUEST'].fields_by_name['display_name']._serialized_options = b'\250P\001\262P\036' _globals['_SIPPARTICIPANTINFO'].fields_by_name['participant_id']._options = None @@ -215,140 +221,144 @@ _globals['_SIPTRANSFERINFO'].fields_by_name['call_id']._serialized_options = b'\272P\006callID' _globals['_SIP'].methods_by_name['ListSIPTrunk']._options = None _globals['_SIP'].methods_by_name['ListSIPTrunk']._serialized_options = b'\210\002\001' - _globals['_SIPSTATUSCODE']._serialized_start=11841 - _globals['_SIPSTATUSCODE']._serialized_end=14495 - _globals['_SIPTRANSPORT']._serialized_start=14497 - _globals['_SIPTRANSPORT']._serialized_end=14604 - _globals['_SIPHEADEROPTIONS']._serialized_start=14606 - _globals['_SIPHEADEROPTIONS']._serialized_end=14684 - _globals['_SIPMEDIAENCRYPTION']._serialized_start=14686 - _globals['_SIPMEDIAENCRYPTION']._serialized_end=14797 - _globals['_PROVIDERTYPE']._serialized_start=14799 - _globals['_PROVIDERTYPE']._serialized_end=14896 - _globals['_SIPCALLSTATUS']._serialized_start=14898 - _globals['_SIPCALLSTATUS']._serialized_end=15017 - _globals['_SIPTRANSFERSTATUS']._serialized_start=15019 - _globals['_SIPTRANSFERSTATUS']._serialized_end=15118 - _globals['_SIPFEATURE']._serialized_start=15120 - _globals['_SIPFEATURE']._serialized_end=15161 - _globals['_SIPCALLDIRECTION']._serialized_start=15163 - _globals['_SIPCALLDIRECTION']._serialized_end=15233 + _globals['_SIPSTATUSCODE']._serialized_start=12164 + _globals['_SIPSTATUSCODE']._serialized_end=14818 + _globals['_SIPTRANSPORT']._serialized_start=14820 + _globals['_SIPTRANSPORT']._serialized_end=14927 + _globals['_SIPHEADEROPTIONS']._serialized_start=14929 + _globals['_SIPHEADEROPTIONS']._serialized_end=15007 + _globals['_SIPMEDIAENCRYPTION']._serialized_start=15009 + _globals['_SIPMEDIAENCRYPTION']._serialized_end=15120 + _globals['_PROVIDERTYPE']._serialized_start=15122 + _globals['_PROVIDERTYPE']._serialized_end=15219 + _globals['_SIPCALLSTATUS']._serialized_start=15221 + _globals['_SIPCALLSTATUS']._serialized_end=15340 + _globals['_SIPTRANSFERSTATUS']._serialized_start=15342 + _globals['_SIPTRANSFERSTATUS']._serialized_end=15441 + _globals['_SIPFEATURE']._serialized_start=15443 + _globals['_SIPFEATURE']._serialized_end=15484 + _globals['_SIPCALLDIRECTION']._serialized_start=15486 + _globals['_SIPCALLDIRECTION']._serialized_end=15556 _globals['_SIPSTATUS']._serialized_start=215 _globals['_SIPSTATUS']._serialized_end=280 _globals['_CREATESIPTRUNKREQUEST']._serialized_start=283 _globals['_CREATESIPTRUNKREQUEST']._serialized_end=644 - _globals['_PROVIDERINFO']._serialized_start=646 - _globals['_PROVIDERINFO']._serialized_end=749 - _globals['_SIPTRUNKINFO']._serialized_start=752 - _globals['_SIPTRUNKINFO']._serialized_end=1300 - _globals['_SIPTRUNKINFO_TRUNKKIND']._serialized_start=1228 - _globals['_SIPTRUNKINFO_TRUNKKIND']._serialized_end=1296 - _globals['_CREATESIPINBOUNDTRUNKREQUEST']._serialized_start=1302 - _globals['_CREATESIPINBOUNDTRUNKREQUEST']._serialized_end=1377 - _globals['_UPDATESIPINBOUNDTRUNKREQUEST']._serialized_start=1380 - _globals['_UPDATESIPINBOUNDTRUNKREQUEST']._serialized_end=1556 - _globals['_SIPINBOUNDTRUNKINFO']._serialized_start=1559 - _globals['_SIPINBOUNDTRUNKINFO']._serialized_end=2582 - _globals['_SIPINBOUNDTRUNKINFO_HEADERSENTRY']._serialized_start=2416 - _globals['_SIPINBOUNDTRUNKINFO_HEADERSENTRY']._serialized_end=2462 - _globals['_SIPINBOUNDTRUNKINFO_HEADERSTOATTRIBUTESENTRY']._serialized_start=2464 - _globals['_SIPINBOUNDTRUNKINFO_HEADERSTOATTRIBUTESENTRY']._serialized_end=2522 - _globals['_SIPINBOUNDTRUNKINFO_ATTRIBUTESTOHEADERSENTRY']._serialized_start=2524 - _globals['_SIPINBOUNDTRUNKINFO_ATTRIBUTESTOHEADERSENTRY']._serialized_end=2582 - _globals['_SIPINBOUNDTRUNKUPDATE']._serialized_start=2585 - _globals['_SIPINBOUNDTRUNKUPDATE']._serialized_end=3025 - _globals['_CREATESIPOUTBOUNDTRUNKREQUEST']._serialized_start=3027 - _globals['_CREATESIPOUTBOUNDTRUNKREQUEST']._serialized_end=3104 - _globals['_UPDATESIPOUTBOUNDTRUNKREQUEST']._serialized_start=3107 - _globals['_UPDATESIPOUTBOUNDTRUNKREQUEST']._serialized_end=3286 - _globals['_SIPOUTBOUNDTRUNKINFO']._serialized_start=3289 - _globals['_SIPOUTBOUNDTRUNKINFO']._serialized_end=4242 - _globals['_SIPOUTBOUNDTRUNKINFO_HEADERSENTRY']._serialized_start=2416 - _globals['_SIPOUTBOUNDTRUNKINFO_HEADERSENTRY']._serialized_end=2462 - _globals['_SIPOUTBOUNDTRUNKINFO_HEADERSTOATTRIBUTESENTRY']._serialized_start=2464 - _globals['_SIPOUTBOUNDTRUNKINFO_HEADERSTOATTRIBUTESENTRY']._serialized_end=2522 - _globals['_SIPOUTBOUNDTRUNKINFO_ATTRIBUTESTOHEADERSENTRY']._serialized_start=2524 - _globals['_SIPOUTBOUNDTRUNKINFO_ATTRIBUTESTOHEADERSENTRY']._serialized_end=2582 - _globals['_SIPOUTBOUNDTRUNKUPDATE']._serialized_start=4245 - _globals['_SIPOUTBOUNDTRUNKUPDATE']._serialized_end=4783 - _globals['_GETSIPINBOUNDTRUNKREQUEST']._serialized_start=4785 - _globals['_GETSIPINBOUNDTRUNKREQUEST']._serialized_end=4849 - _globals['_GETSIPINBOUNDTRUNKRESPONSE']._serialized_start=4851 - _globals['_GETSIPINBOUNDTRUNKRESPONSE']._serialized_end=4924 - _globals['_GETSIPOUTBOUNDTRUNKREQUEST']._serialized_start=4926 - _globals['_GETSIPOUTBOUNDTRUNKREQUEST']._serialized_end=4991 - _globals['_GETSIPOUTBOUNDTRUNKRESPONSE']._serialized_start=4993 - _globals['_GETSIPOUTBOUNDTRUNKRESPONSE']._serialized_end=5068 - _globals['_LISTSIPTRUNKREQUEST']._serialized_start=5070 - _globals['_LISTSIPTRUNKREQUEST']._serialized_end=5130 - _globals['_LISTSIPTRUNKRESPONSE']._serialized_start=5132 - _globals['_LISTSIPTRUNKRESPONSE']._serialized_end=5196 - _globals['_LISTSIPINBOUNDTRUNKREQUEST']._serialized_start=5198 - _globals['_LISTSIPINBOUNDTRUNKREQUEST']._serialized_end=5297 - _globals['_LISTSIPINBOUNDTRUNKRESPONSE']._serialized_start=5299 - _globals['_LISTSIPINBOUNDTRUNKRESPONSE']._serialized_end=5373 - _globals['_LISTSIPOUTBOUNDTRUNKREQUEST']._serialized_start=5375 - _globals['_LISTSIPOUTBOUNDTRUNKREQUEST']._serialized_end=5475 - _globals['_LISTSIPOUTBOUNDTRUNKRESPONSE']._serialized_start=5477 - _globals['_LISTSIPOUTBOUNDTRUNKRESPONSE']._serialized_end=5553 - _globals['_DELETESIPTRUNKREQUEST']._serialized_start=5555 - _globals['_DELETESIPTRUNKREQUEST']._serialized_end=5615 - _globals['_SIPDISPATCHRULEDIRECT']._serialized_start=5617 - _globals['_SIPDISPATCHRULEDIRECT']._serialized_end=5672 - _globals['_SIPDISPATCHRULEINDIVIDUAL']._serialized_start=5674 - _globals['_SIPDISPATCHRULEINDIVIDUAL']._serialized_end=5758 - _globals['_SIPDISPATCHRULECALLEE']._serialized_start=5760 - _globals['_SIPDISPATCHRULECALLEE']._serialized_end=5836 - _globals['_SIPDISPATCHRULE']._serialized_start=5839 - _globals['_SIPDISPATCHRULE']._serialized_end=6064 - _globals['_CREATESIPDISPATCHRULEREQUEST']._serialized_start=6067 - _globals['_CREATESIPDISPATCHRULEREQUEST']._serialized_end=6597 - _globals['_CREATESIPDISPATCHRULEREQUEST_ATTRIBUTESENTRY']._serialized_start=6548 - _globals['_CREATESIPDISPATCHRULEREQUEST_ATTRIBUTESENTRY']._serialized_end=6597 - _globals['_UPDATESIPDISPATCHRULEREQUEST']._serialized_start=6600 - _globals['_UPDATESIPDISPATCHRULEREQUEST']._serialized_end=6791 - _globals['_SIPDISPATCHRULEINFO']._serialized_start=6794 - _globals['_SIPDISPATCHRULEINFO']._serialized_end=7464 - _globals['_SIPDISPATCHRULEINFO_ATTRIBUTESENTRY']._serialized_start=6548 - _globals['_SIPDISPATCHRULEINFO_ATTRIBUTESENTRY']._serialized_end=6597 - _globals['_SIPDISPATCHRULEUPDATE']._serialized_start=7467 - _globals['_SIPDISPATCHRULEUPDATE']._serialized_end=7910 - _globals['_SIPDISPATCHRULEUPDATE_ATTRIBUTESENTRY']._serialized_start=6548 - _globals['_SIPDISPATCHRULEUPDATE_ATTRIBUTESENTRY']._serialized_end=6597 - _globals['_LISTSIPDISPATCHRULEREQUEST']._serialized_start=7912 - _globals['_LISTSIPDISPATCHRULEREQUEST']._serialized_end=8021 - _globals['_LISTSIPDISPATCHRULERESPONSE']._serialized_start=8023 - _globals['_LISTSIPDISPATCHRULERESPONSE']._serialized_end=8097 - _globals['_DELETESIPDISPATCHRULEREQUEST']._serialized_start=8099 - _globals['_DELETESIPDISPATCHRULEREQUEST']._serialized_end=8181 - _globals['_SIPOUTBOUNDCONFIG']._serialized_start=8184 - _globals['_SIPOUTBOUNDCONFIG']._serialized_end=8655 - _globals['_SIPOUTBOUNDCONFIG_HEADERSTOATTRIBUTESENTRY']._serialized_start=2464 - _globals['_SIPOUTBOUNDCONFIG_HEADERSTOATTRIBUTESENTRY']._serialized_end=2522 - _globals['_SIPOUTBOUNDCONFIG_ATTRIBUTESTOHEADERSENTRY']._serialized_start=2524 - _globals['_SIPOUTBOUNDCONFIG_ATTRIBUTESTOHEADERSENTRY']._serialized_end=2582 - _globals['_CREATESIPPARTICIPANTREQUEST']._serialized_start=8658 - _globals['_CREATESIPPARTICIPANTREQUEST']._serialized_end=9843 - _globals['_CREATESIPPARTICIPANTREQUEST_PARTICIPANTATTRIBUTESENTRY']._serialized_start=9702 - _globals['_CREATESIPPARTICIPANTREQUEST_PARTICIPANTATTRIBUTESENTRY']._serialized_end=9762 - _globals['_CREATESIPPARTICIPANTREQUEST_HEADERSENTRY']._serialized_start=2416 - _globals['_CREATESIPPARTICIPANTREQUEST_HEADERSENTRY']._serialized_end=2462 - _globals['_SIPPARTICIPANTINFO']._serialized_start=9846 - _globals['_SIPPARTICIPANTINFO']._serialized_end=9992 - _globals['_TRANSFERSIPPARTICIPANTREQUEST']._serialized_start=9995 - _globals['_TRANSFERSIPPARTICIPANTREQUEST']._serialized_end=10327 - _globals['_TRANSFERSIPPARTICIPANTREQUEST_HEADERSENTRY']._serialized_start=2416 - _globals['_TRANSFERSIPPARTICIPANTREQUEST_HEADERSENTRY']._serialized_end=2462 - _globals['_SIPCALLINFO']._serialized_start=10330 - _globals['_SIPCALLINFO']._serialized_end=11379 - _globals['_SIPCALLINFO_PARTICIPANTATTRIBUTESENTRY']._serialized_start=9702 - _globals['_SIPCALLINFO_PARTICIPANTATTRIBUTESENTRY']._serialized_end=9762 - _globals['_SIPTRANSFERINFO']._serialized_start=11382 - _globals['_SIPTRANSFERINFO']._serialized_end=11670 - _globals['_SIPURI']._serialized_start=11672 - _globals['_SIPURI']._serialized_end=11776 - _globals['_DESTINATION']._serialized_start=11778 - _globals['_DESTINATION']._serialized_end=11838 - _globals['_SIP']._serialized_start=15236 - _globals['_SIP']._serialized_end=16731 + _globals['_SIPCODEC']._serialized_start=646 + _globals['_SIPCODEC']._serialized_end=684 + _globals['_SIPMEDIACONFIG']._serialized_start=687 + _globals['_SIPMEDIACONFIG']._serialized_end=835 + _globals['_PROVIDERINFO']._serialized_start=837 + _globals['_PROVIDERINFO']._serialized_end=940 + _globals['_SIPTRUNKINFO']._serialized_start=943 + _globals['_SIPTRUNKINFO']._serialized_end=1491 + _globals['_SIPTRUNKINFO_TRUNKKIND']._serialized_start=1419 + _globals['_SIPTRUNKINFO_TRUNKKIND']._serialized_end=1487 + _globals['_CREATESIPINBOUNDTRUNKREQUEST']._serialized_start=1493 + _globals['_CREATESIPINBOUNDTRUNKREQUEST']._serialized_end=1568 + _globals['_UPDATESIPINBOUNDTRUNKREQUEST']._serialized_start=1571 + _globals['_UPDATESIPINBOUNDTRUNKREQUEST']._serialized_end=1747 + _globals['_SIPINBOUNDTRUNKINFO']._serialized_start=1750 + _globals['_SIPINBOUNDTRUNKINFO']._serialized_end=2773 + _globals['_SIPINBOUNDTRUNKINFO_HEADERSENTRY']._serialized_start=2607 + _globals['_SIPINBOUNDTRUNKINFO_HEADERSENTRY']._serialized_end=2653 + _globals['_SIPINBOUNDTRUNKINFO_HEADERSTOATTRIBUTESENTRY']._serialized_start=2655 + _globals['_SIPINBOUNDTRUNKINFO_HEADERSTOATTRIBUTESENTRY']._serialized_end=2713 + _globals['_SIPINBOUNDTRUNKINFO_ATTRIBUTESTOHEADERSENTRY']._serialized_start=2715 + _globals['_SIPINBOUNDTRUNKINFO_ATTRIBUTESTOHEADERSENTRY']._serialized_end=2773 + _globals['_SIPINBOUNDTRUNKUPDATE']._serialized_start=2776 + _globals['_SIPINBOUNDTRUNKUPDATE']._serialized_end=3216 + _globals['_CREATESIPOUTBOUNDTRUNKREQUEST']._serialized_start=3218 + _globals['_CREATESIPOUTBOUNDTRUNKREQUEST']._serialized_end=3295 + _globals['_UPDATESIPOUTBOUNDTRUNKREQUEST']._serialized_start=3298 + _globals['_UPDATESIPOUTBOUNDTRUNKREQUEST']._serialized_end=3477 + _globals['_SIPOUTBOUNDTRUNKINFO']._serialized_start=3480 + _globals['_SIPOUTBOUNDTRUNKINFO']._serialized_end=4433 + _globals['_SIPOUTBOUNDTRUNKINFO_HEADERSENTRY']._serialized_start=2607 + _globals['_SIPOUTBOUNDTRUNKINFO_HEADERSENTRY']._serialized_end=2653 + _globals['_SIPOUTBOUNDTRUNKINFO_HEADERSTOATTRIBUTESENTRY']._serialized_start=2655 + _globals['_SIPOUTBOUNDTRUNKINFO_HEADERSTOATTRIBUTESENTRY']._serialized_end=2713 + _globals['_SIPOUTBOUNDTRUNKINFO_ATTRIBUTESTOHEADERSENTRY']._serialized_start=2715 + _globals['_SIPOUTBOUNDTRUNKINFO_ATTRIBUTESTOHEADERSENTRY']._serialized_end=2773 + _globals['_SIPOUTBOUNDTRUNKUPDATE']._serialized_start=4436 + _globals['_SIPOUTBOUNDTRUNKUPDATE']._serialized_end=4974 + _globals['_GETSIPINBOUNDTRUNKREQUEST']._serialized_start=4976 + _globals['_GETSIPINBOUNDTRUNKREQUEST']._serialized_end=5040 + _globals['_GETSIPINBOUNDTRUNKRESPONSE']._serialized_start=5042 + _globals['_GETSIPINBOUNDTRUNKRESPONSE']._serialized_end=5115 + _globals['_GETSIPOUTBOUNDTRUNKREQUEST']._serialized_start=5117 + _globals['_GETSIPOUTBOUNDTRUNKREQUEST']._serialized_end=5182 + _globals['_GETSIPOUTBOUNDTRUNKRESPONSE']._serialized_start=5184 + _globals['_GETSIPOUTBOUNDTRUNKRESPONSE']._serialized_end=5259 + _globals['_LISTSIPTRUNKREQUEST']._serialized_start=5261 + _globals['_LISTSIPTRUNKREQUEST']._serialized_end=5321 + _globals['_LISTSIPTRUNKRESPONSE']._serialized_start=5323 + _globals['_LISTSIPTRUNKRESPONSE']._serialized_end=5387 + _globals['_LISTSIPINBOUNDTRUNKREQUEST']._serialized_start=5389 + _globals['_LISTSIPINBOUNDTRUNKREQUEST']._serialized_end=5488 + _globals['_LISTSIPINBOUNDTRUNKRESPONSE']._serialized_start=5490 + _globals['_LISTSIPINBOUNDTRUNKRESPONSE']._serialized_end=5564 + _globals['_LISTSIPOUTBOUNDTRUNKREQUEST']._serialized_start=5566 + _globals['_LISTSIPOUTBOUNDTRUNKREQUEST']._serialized_end=5666 + _globals['_LISTSIPOUTBOUNDTRUNKRESPONSE']._serialized_start=5668 + _globals['_LISTSIPOUTBOUNDTRUNKRESPONSE']._serialized_end=5744 + _globals['_DELETESIPTRUNKREQUEST']._serialized_start=5746 + _globals['_DELETESIPTRUNKREQUEST']._serialized_end=5806 + _globals['_SIPDISPATCHRULEDIRECT']._serialized_start=5808 + _globals['_SIPDISPATCHRULEDIRECT']._serialized_end=5863 + _globals['_SIPDISPATCHRULEINDIVIDUAL']._serialized_start=5865 + _globals['_SIPDISPATCHRULEINDIVIDUAL']._serialized_end=5949 + _globals['_SIPDISPATCHRULECALLEE']._serialized_start=5951 + _globals['_SIPDISPATCHRULECALLEE']._serialized_end=6027 + _globals['_SIPDISPATCHRULE']._serialized_start=6030 + _globals['_SIPDISPATCHRULE']._serialized_end=6255 + _globals['_CREATESIPDISPATCHRULEREQUEST']._serialized_start=6258 + _globals['_CREATESIPDISPATCHRULEREQUEST']._serialized_end=6788 + _globals['_CREATESIPDISPATCHRULEREQUEST_ATTRIBUTESENTRY']._serialized_start=6739 + _globals['_CREATESIPDISPATCHRULEREQUEST_ATTRIBUTESENTRY']._serialized_end=6788 + _globals['_UPDATESIPDISPATCHRULEREQUEST']._serialized_start=6791 + _globals['_UPDATESIPDISPATCHRULEREQUEST']._serialized_end=6982 + _globals['_SIPDISPATCHRULEINFO']._serialized_start=6985 + _globals['_SIPDISPATCHRULEINFO']._serialized_end=7699 + _globals['_SIPDISPATCHRULEINFO_ATTRIBUTESENTRY']._serialized_start=6739 + _globals['_SIPDISPATCHRULEINFO_ATTRIBUTESENTRY']._serialized_end=6788 + _globals['_SIPDISPATCHRULEUPDATE']._serialized_start=7702 + _globals['_SIPDISPATCHRULEUPDATE']._serialized_end=8189 + _globals['_SIPDISPATCHRULEUPDATE_ATTRIBUTESENTRY']._serialized_start=6739 + _globals['_SIPDISPATCHRULEUPDATE_ATTRIBUTESENTRY']._serialized_end=6788 + _globals['_LISTSIPDISPATCHRULEREQUEST']._serialized_start=8191 + _globals['_LISTSIPDISPATCHRULEREQUEST']._serialized_end=8300 + _globals['_LISTSIPDISPATCHRULERESPONSE']._serialized_start=8302 + _globals['_LISTSIPDISPATCHRULERESPONSE']._serialized_end=8376 + _globals['_DELETESIPDISPATCHRULEREQUEST']._serialized_start=8378 + _globals['_DELETESIPDISPATCHRULEREQUEST']._serialized_end=8460 + _globals['_SIPOUTBOUNDCONFIG']._serialized_start=8463 + _globals['_SIPOUTBOUNDCONFIG']._serialized_end=8934 + _globals['_SIPOUTBOUNDCONFIG_HEADERSTOATTRIBUTESENTRY']._serialized_start=2655 + _globals['_SIPOUTBOUNDCONFIG_HEADERSTOATTRIBUTESENTRY']._serialized_end=2713 + _globals['_SIPOUTBOUNDCONFIG_ATTRIBUTESTOHEADERSENTRY']._serialized_start=2715 + _globals['_SIPOUTBOUNDCONFIG_ATTRIBUTESTOHEADERSENTRY']._serialized_end=2773 + _globals['_CREATESIPPARTICIPANTREQUEST']._serialized_start=8937 + _globals['_CREATESIPPARTICIPANTREQUEST']._serialized_end=10166 + _globals['_CREATESIPPARTICIPANTREQUEST_PARTICIPANTATTRIBUTESENTRY']._serialized_start=10025 + _globals['_CREATESIPPARTICIPANTREQUEST_PARTICIPANTATTRIBUTESENTRY']._serialized_end=10085 + _globals['_CREATESIPPARTICIPANTREQUEST_HEADERSENTRY']._serialized_start=2607 + _globals['_CREATESIPPARTICIPANTREQUEST_HEADERSENTRY']._serialized_end=2653 + _globals['_SIPPARTICIPANTINFO']._serialized_start=10169 + _globals['_SIPPARTICIPANTINFO']._serialized_end=10315 + _globals['_TRANSFERSIPPARTICIPANTREQUEST']._serialized_start=10318 + _globals['_TRANSFERSIPPARTICIPANTREQUEST']._serialized_end=10650 + _globals['_TRANSFERSIPPARTICIPANTREQUEST_HEADERSENTRY']._serialized_start=2607 + _globals['_TRANSFERSIPPARTICIPANTREQUEST_HEADERSENTRY']._serialized_end=2653 + _globals['_SIPCALLINFO']._serialized_start=10653 + _globals['_SIPCALLINFO']._serialized_end=11702 + _globals['_SIPCALLINFO_PARTICIPANTATTRIBUTESENTRY']._serialized_start=10025 + _globals['_SIPCALLINFO_PARTICIPANTATTRIBUTESENTRY']._serialized_end=10085 + _globals['_SIPTRANSFERINFO']._serialized_start=11705 + _globals['_SIPTRANSFERINFO']._serialized_end=11993 + _globals['_SIPURI']._serialized_start=11995 + _globals['_SIPURI']._serialized_end=12099 + _globals['_DESTINATION']._serialized_start=12101 + _globals['_DESTINATION']._serialized_end=12161 + _globals['_SIP']._serialized_start=15559 + _globals['_SIP']._serialized_end=17054 # @@protoc_insertion_point(module_scope) diff --git a/livekit-protocol/livekit/protocol/sip.pyi b/livekit-protocol/livekit/protocol/sip.pyi index 58da739b..7541fa4a 100644 --- a/livekit-protocol/livekit/protocol/sip.pyi +++ b/livekit-protocol/livekit/protocol/sip.pyi @@ -278,6 +278,24 @@ class CreateSIPTrunkRequest(_message.Message): metadata: str def __init__(self, inbound_addresses: _Optional[_Iterable[str]] = ..., outbound_address: _Optional[str] = ..., outbound_number: _Optional[str] = ..., inbound_numbers_regex: _Optional[_Iterable[str]] = ..., inbound_numbers: _Optional[_Iterable[str]] = ..., inbound_username: _Optional[str] = ..., inbound_password: _Optional[str] = ..., outbound_username: _Optional[str] = ..., outbound_password: _Optional[str] = ..., name: _Optional[str] = ..., metadata: _Optional[str] = ...) -> None: ... +class SIPCodec(_message.Message): + __slots__ = ("name", "rate") + NAME_FIELD_NUMBER: _ClassVar[int] + RATE_FIELD_NUMBER: _ClassVar[int] + name: str + rate: int + def __init__(self, name: _Optional[str] = ..., rate: _Optional[int] = ...) -> None: ... + +class SIPMediaConfig(_message.Message): + __slots__ = ("only_listed_codecs", "codecs", "encryption") + ONLY_LISTED_CODECS_FIELD_NUMBER: _ClassVar[int] + CODECS_FIELD_NUMBER: _ClassVar[int] + ENCRYPTION_FIELD_NUMBER: _ClassVar[int] + only_listed_codecs: bool + codecs: _containers.RepeatedCompositeFieldContainer[SIPCodec] + encryption: SIPMediaEncryption + def __init__(self, only_listed_codecs: bool = ..., codecs: _Optional[_Iterable[_Union[SIPCodec, _Mapping]]] = ..., encryption: _Optional[_Union[SIPMediaEncryption, str]] = ...) -> None: ... + class ProviderInfo(_message.Message): __slots__ = ("id", "name", "type", "prevent_transfer") ID_FIELD_NUMBER: _ClassVar[int] @@ -680,7 +698,7 @@ class UpdateSIPDispatchRuleRequest(_message.Message): def __init__(self, sip_dispatch_rule_id: _Optional[str] = ..., replace: _Optional[_Union[SIPDispatchRuleInfo, _Mapping]] = ..., update: _Optional[_Union[SIPDispatchRuleUpdate, _Mapping]] = ...) -> None: ... class SIPDispatchRuleInfo(_message.Message): - __slots__ = ("sip_dispatch_rule_id", "rule", "trunk_ids", "hide_phone_number", "inbound_numbers", "numbers", "name", "metadata", "attributes", "room_preset", "room_config", "krisp_enabled", "media_encryption", "created_at", "updated_at") + __slots__ = ("sip_dispatch_rule_id", "rule", "trunk_ids", "hide_phone_number", "inbound_numbers", "numbers", "name", "metadata", "attributes", "room_preset", "room_config", "media", "krisp_enabled", "media_encryption", "created_at", "updated_at") class AttributesEntry(_message.Message): __slots__ = ("key", "value") KEY_FIELD_NUMBER: _ClassVar[int] @@ -699,6 +717,7 @@ class SIPDispatchRuleInfo(_message.Message): ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] ROOM_PRESET_FIELD_NUMBER: _ClassVar[int] ROOM_CONFIG_FIELD_NUMBER: _ClassVar[int] + MEDIA_FIELD_NUMBER: _ClassVar[int] KRISP_ENABLED_FIELD_NUMBER: _ClassVar[int] MEDIA_ENCRYPTION_FIELD_NUMBER: _ClassVar[int] CREATED_AT_FIELD_NUMBER: _ClassVar[int] @@ -714,14 +733,15 @@ class SIPDispatchRuleInfo(_message.Message): attributes: _containers.ScalarMap[str, str] room_preset: str room_config: _room.RoomConfiguration + media: SIPMediaConfig krisp_enabled: bool media_encryption: SIPMediaEncryption created_at: _timestamp_pb2.Timestamp updated_at: _timestamp_pb2.Timestamp - def __init__(self, sip_dispatch_rule_id: _Optional[str] = ..., rule: _Optional[_Union[SIPDispatchRule, _Mapping]] = ..., trunk_ids: _Optional[_Iterable[str]] = ..., hide_phone_number: bool = ..., inbound_numbers: _Optional[_Iterable[str]] = ..., numbers: _Optional[_Iterable[str]] = ..., name: _Optional[str] = ..., metadata: _Optional[str] = ..., attributes: _Optional[_Mapping[str, str]] = ..., room_preset: _Optional[str] = ..., room_config: _Optional[_Union[_room.RoomConfiguration, _Mapping]] = ..., krisp_enabled: bool = ..., media_encryption: _Optional[_Union[SIPMediaEncryption, str]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... + def __init__(self, sip_dispatch_rule_id: _Optional[str] = ..., rule: _Optional[_Union[SIPDispatchRule, _Mapping]] = ..., trunk_ids: _Optional[_Iterable[str]] = ..., hide_phone_number: bool = ..., inbound_numbers: _Optional[_Iterable[str]] = ..., numbers: _Optional[_Iterable[str]] = ..., name: _Optional[str] = ..., metadata: _Optional[str] = ..., attributes: _Optional[_Mapping[str, str]] = ..., room_preset: _Optional[str] = ..., room_config: _Optional[_Union[_room.RoomConfiguration, _Mapping]] = ..., media: _Optional[_Union[SIPMediaConfig, _Mapping]] = ..., krisp_enabled: bool = ..., media_encryption: _Optional[_Union[SIPMediaEncryption, str]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... class SIPDispatchRuleUpdate(_message.Message): - __slots__ = ("trunk_ids", "rule", "name", "metadata", "attributes", "media_encryption") + __slots__ = ("trunk_ids", "rule", "name", "metadata", "attributes", "media_encryption", "media") class AttributesEntry(_message.Message): __slots__ = ("key", "value") KEY_FIELD_NUMBER: _ClassVar[int] @@ -735,13 +755,15 @@ class SIPDispatchRuleUpdate(_message.Message): METADATA_FIELD_NUMBER: _ClassVar[int] ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] MEDIA_ENCRYPTION_FIELD_NUMBER: _ClassVar[int] + MEDIA_FIELD_NUMBER: _ClassVar[int] trunk_ids: _models.ListUpdate rule: SIPDispatchRule name: str metadata: str attributes: _containers.ScalarMap[str, str] media_encryption: SIPMediaEncryption - def __init__(self, trunk_ids: _Optional[_Union[_models.ListUpdate, _Mapping]] = ..., rule: _Optional[_Union[SIPDispatchRule, _Mapping]] = ..., name: _Optional[str] = ..., metadata: _Optional[str] = ..., attributes: _Optional[_Mapping[str, str]] = ..., media_encryption: _Optional[_Union[SIPMediaEncryption, str]] = ...) -> None: ... + media: SIPMediaConfig + def __init__(self, trunk_ids: _Optional[_Union[_models.ListUpdate, _Mapping]] = ..., rule: _Optional[_Union[SIPDispatchRule, _Mapping]] = ..., name: _Optional[str] = ..., metadata: _Optional[str] = ..., attributes: _Optional[_Mapping[str, str]] = ..., media_encryption: _Optional[_Union[SIPMediaEncryption, str]] = ..., media: _Optional[_Union[SIPMediaConfig, _Mapping]] = ...) -> None: ... class ListSIPDispatchRuleRequest(_message.Message): __slots__ = ("page", "dispatch_rule_ids", "trunk_ids") @@ -800,7 +822,7 @@ class SIPOutboundConfig(_message.Message): def __init__(self, hostname: _Optional[str] = ..., destination_country: _Optional[str] = ..., transport: _Optional[_Union[SIPTransport, str]] = ..., auth_username: _Optional[str] = ..., auth_password: _Optional[str] = ..., headers_to_attributes: _Optional[_Mapping[str, str]] = ..., attributes_to_headers: _Optional[_Mapping[str, str]] = ..., from_host: _Optional[str] = ...) -> None: ... class CreateSIPParticipantRequest(_message.Message): - __slots__ = ("sip_trunk_id", "trunk", "sip_call_to", "sip_number", "room_name", "participant_identity", "participant_name", "participant_metadata", "participant_attributes", "dtmf", "play_ringtone", "play_dialtone", "hide_phone_number", "headers", "include_headers", "ringing_timeout", "max_call_duration", "krisp_enabled", "media_encryption", "wait_until_answered", "display_name", "destination") + __slots__ = ("sip_trunk_id", "trunk", "sip_call_to", "sip_number", "room_name", "participant_identity", "participant_name", "participant_metadata", "participant_attributes", "dtmf", "play_ringtone", "play_dialtone", "hide_phone_number", "headers", "include_headers", "ringing_timeout", "max_call_duration", "krisp_enabled", "media_encryption", "media", "wait_until_answered", "display_name", "destination") class ParticipantAttributesEntry(_message.Message): __slots__ = ("key", "value") KEY_FIELD_NUMBER: _ClassVar[int] @@ -834,6 +856,7 @@ class CreateSIPParticipantRequest(_message.Message): MAX_CALL_DURATION_FIELD_NUMBER: _ClassVar[int] KRISP_ENABLED_FIELD_NUMBER: _ClassVar[int] MEDIA_ENCRYPTION_FIELD_NUMBER: _ClassVar[int] + MEDIA_FIELD_NUMBER: _ClassVar[int] WAIT_UNTIL_ANSWERED_FIELD_NUMBER: _ClassVar[int] DISPLAY_NAME_FIELD_NUMBER: _ClassVar[int] DESTINATION_FIELD_NUMBER: _ClassVar[int] @@ -856,10 +879,11 @@ class CreateSIPParticipantRequest(_message.Message): max_call_duration: _duration_pb2.Duration krisp_enabled: bool media_encryption: SIPMediaEncryption + media: SIPMediaConfig wait_until_answered: bool display_name: str destination: Destination - def __init__(self, sip_trunk_id: _Optional[str] = ..., trunk: _Optional[_Union[SIPOutboundConfig, _Mapping]] = ..., sip_call_to: _Optional[str] = ..., sip_number: _Optional[str] = ..., room_name: _Optional[str] = ..., participant_identity: _Optional[str] = ..., participant_name: _Optional[str] = ..., participant_metadata: _Optional[str] = ..., participant_attributes: _Optional[_Mapping[str, str]] = ..., dtmf: _Optional[str] = ..., play_ringtone: bool = ..., play_dialtone: bool = ..., hide_phone_number: bool = ..., headers: _Optional[_Mapping[str, str]] = ..., include_headers: _Optional[_Union[SIPHeaderOptions, str]] = ..., ringing_timeout: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., max_call_duration: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., krisp_enabled: bool = ..., media_encryption: _Optional[_Union[SIPMediaEncryption, str]] = ..., wait_until_answered: bool = ..., display_name: _Optional[str] = ..., destination: _Optional[_Union[Destination, _Mapping]] = ...) -> None: ... + def __init__(self, sip_trunk_id: _Optional[str] = ..., trunk: _Optional[_Union[SIPOutboundConfig, _Mapping]] = ..., sip_call_to: _Optional[str] = ..., sip_number: _Optional[str] = ..., room_name: _Optional[str] = ..., participant_identity: _Optional[str] = ..., participant_name: _Optional[str] = ..., participant_metadata: _Optional[str] = ..., participant_attributes: _Optional[_Mapping[str, str]] = ..., dtmf: _Optional[str] = ..., play_ringtone: bool = ..., play_dialtone: bool = ..., hide_phone_number: bool = ..., headers: _Optional[_Mapping[str, str]] = ..., include_headers: _Optional[_Union[SIPHeaderOptions, str]] = ..., ringing_timeout: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., max_call_duration: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., krisp_enabled: bool = ..., media_encryption: _Optional[_Union[SIPMediaEncryption, str]] = ..., media: _Optional[_Union[SIPMediaConfig, _Mapping]] = ..., wait_until_answered: bool = ..., display_name: _Optional[str] = ..., destination: _Optional[_Union[Destination, _Mapping]] = ...) -> None: ... class SIPParticipantInfo(_message.Message): __slots__ = ("participant_id", "participant_identity", "room_name", "sip_call_id") From 0f9e0260b9d5e256d25e694d3a6c2023cee31b91 Mon Sep 17 00:00:00 2001 From: David Zhao Date: Sat, 9 May 2026 22:57:48 -0700 Subject: [PATCH 6/6] avoid redefining SimulateScenario --- livekit-rtc/livekit/rtc/__init__.py | 4 ++-- livekit-rtc/livekit/rtc/data_track.py | 2 +- livekit-rtc/livekit/rtc/room.py | 31 +++++---------------------- 3 files changed, 8 insertions(+), 29 deletions(-) diff --git a/livekit-rtc/livekit/rtc/__init__.py b/livekit-rtc/livekit/rtc/__init__.py index b65361bd..23f9cbf1 100644 --- a/livekit-rtc/livekit/rtc/__init__.py +++ b/livekit-rtc/livekit/rtc/__init__.py @@ -33,6 +33,7 @@ DataPacketKind, IceServer, IceTransportType, + SimulateScenarioKind, TrackPublishOptions, VideoEncoding, ) @@ -65,7 +66,6 @@ Room, RoomOptions, RtcConfiguration, - SimulateScenario, SipDTMF, RtcStats, ) @@ -160,7 +160,7 @@ "Room", "RoomOptions", "RtcConfiguration", - "SimulateScenario", + "SimulateScenarioKind", "SipDTMF", "RtcStats", "DataPacket", diff --git a/livekit-rtc/livekit/rtc/data_track.py b/livekit-rtc/livekit/rtc/data_track.py index 2fb26b71..255b49aa 100644 --- a/livekit-rtc/livekit/rtc/data_track.py +++ b/livekit-rtc/livekit/rtc/data_track.py @@ -248,7 +248,7 @@ async def __anext__(self) -> DataTrackFrame: elif detail == "eos": self._close() if stream_event.eos.HasField("error"): - raise SubscribeDataTrackError(stream_event.eos.error) + raise SubscribeDataTrackError(stream_event.eos.error.message) raise StopAsyncIteration else: self._close() diff --git a/livekit-rtc/livekit/rtc/room.py b/livekit-rtc/livekit/rtc/room.py index 036fc9a9..b4a822a5 100644 --- a/livekit-rtc/livekit/rtc/room.py +++ b/livekit-rtc/livekit/rtc/room.py @@ -16,7 +16,6 @@ import datetime import asyncio import ctypes -import enum import logging from dataclasses import dataclass, field from typing import Callable, Dict, Literal, Optional, cast, Mapping @@ -29,7 +28,7 @@ from ._proto import room_pb2 as proto_room from ._proto import stats_pb2 as proto_stats from ._proto.participant_pb2 import DisconnectReason -from ._proto.room_pb2 import ConnectionState +from ._proto.room_pb2 import ConnectionState, SimulateScenarioKind from ._proto.track_pb2 import TrackKind from ._proto.rpc_pb2 import RpcMethodInvocationEvent from ._utils import BroadcastQueue @@ -596,11 +595,11 @@ def unregister_text_stream_handler(self, topic: str): if self._text_stream_handlers.get(topic): self._text_stream_handlers.pop(topic) - async def simulate_scenario(self, scenario: "SimulateScenario") -> None: + async def simulate_scenario(self, scenario: SimulateScenarioKind.ValueType) -> None: """Trigger a reconnection / chaos scenario for testing. - See `SimulateScenario` for the available variants. Most useful in - tests to deterministically force a Resume (signal-only reconnect + See `SimulateScenarioKind` for the available variants. Most useful + in tests to deterministically force a Resume (signal-only reconnect that preserves the PeerConnection and existing publications) or a full reconnect (the SDK rebuilds the RtcSession and re-publishes existing local tracks). @@ -612,7 +611,7 @@ async def simulate_scenario(self, scenario: "SimulateScenario") -> None: req = proto_ffi.FfiRequest() req.simulate_scenario.room_handle = self._ffi_handle.handle - req.simulate_scenario.scenario = scenario.value + req.simulate_scenario.scenario = scenario queue = FfiClient.instance.queue.subscribe() try: resp = FfiClient.instance.request(req) @@ -1082,23 +1081,3 @@ def __repr__(self) -> str: sid = self._first_sid_future.result() return f"rtc.Room(sid={sid}, name={self.name}, metadata={self.metadata}, connection_state={ConnectionState.Name(self._connection_state)})" - - -class SimulateScenario(enum.IntEnum): - """Reconnection / chaos scenarios that can be triggered via - :meth:`Room.simulate_scenario`. The values match the underlying FFI - ``SimulateScenarioKind`` proto enum.""" - - # Closes the signal channel locally; engine attempts a Resume reconnect - # (PeerConnection preserved, publications kept). - SIGNAL_RECONNECT = proto_room.SimulateScenarioKind.SIMULATE_SIGNAL_RECONNECT - SPEAKER = proto_room.SimulateScenarioKind.SIMULATE_SPEAKER - NODE_FAILURE = proto_room.SimulateScenarioKind.SIMULATE_NODE_FAILURE - SERVER_LEAVE = proto_room.SimulateScenarioKind.SIMULATE_SERVER_LEAVE - MIGRATION = proto_room.SimulateScenarioKind.SIMULATE_MIGRATION - FORCE_TCP = proto_room.SimulateScenarioKind.SIMULATE_FORCE_TCP - FORCE_TLS = proto_room.SimulateScenarioKind.SIMULATE_FORCE_TLS - # Asks the server to send LeaveRequest{Reconnect}, forcing a full - # reconnect (new RtcSession; SDK republishes existing local tracks; - # `Reconnected` event will fire). - FULL_RECONNECT = proto_room.SimulateScenarioKind.SIMULATE_FULL_RECONNECT