From 8f310b3883f736931aadc5178e92c2ff0a7d81c3 Mon Sep 17 00:00:00 2001 From: shijing xian Date: Wed, 15 Apr 2026 13:18:18 -0700 Subject: [PATCH 1/3] Making a new rtc-v1.1.6 release --- .../livekit/rtc/_proto/audio_frame_pb2.py | 16 +- .../livekit/rtc/_proto/audio_frame_pb2.pyi | 1444 +++--- .../livekit/rtc/_proto/data_stream_pb2.py | 24 +- .../livekit/rtc/_proto/data_stream_pb2.pyi | 1976 ++++---- .../livekit/rtc/_proto/data_track_pb2.py | 16 +- .../livekit/rtc/_proto/data_track_pb2.pyi | 776 ++-- livekit-rtc/livekit/rtc/_proto/e2ee_pb2.py | 16 +- livekit-rtc/livekit/rtc/_proto/e2ee_pb2.pyi | 785 ++-- livekit-rtc/livekit/rtc/_proto/ffi_pb2.py | 16 +- livekit-rtc/livekit/rtc/_proto/ffi_pb2.pyi | 1783 ++++---- livekit-rtc/livekit/rtc/_proto/handle_pb2.py | 16 +- livekit-rtc/livekit/rtc/_proto/handle_pb2.pyi | 36 +- .../livekit/rtc/_proto/participant_pb2.py | 18 +- .../livekit/rtc/_proto/participant_pb2.pyi | 278 +- livekit-rtc/livekit/rtc/_proto/room_pb2.py | 24 +- livekit-rtc/livekit/rtc/_proto/room_pb2.pyi | 4016 +++++++++-------- livekit-rtc/livekit/rtc/_proto/rpc_pb2.py | 16 +- livekit-rtc/livekit/rtc/_proto/rpc_pb2.pyi | 352 +- livekit-rtc/livekit/rtc/_proto/stats_pb2.py | 18 +- livekit-rtc/livekit/rtc/_proto/stats_pb2.pyi | 2426 +++++----- livekit-rtc/livekit/rtc/_proto/track_pb2.py | 16 +- livekit-rtc/livekit/rtc/_proto/track_pb2.pyi | 650 +-- .../rtc/_proto/track_publication_pb2.py | 16 +- .../rtc/_proto/track_publication_pb2.pyi | 134 +- .../livekit/rtc/_proto/video_frame_pb2.py | 16 +- .../livekit/rtc/_proto/video_frame_pb2.pyi | 786 ++-- livekit-rtc/livekit/rtc/version.py | 2 +- livekit-rtc/rust-sdks | 2 +- 28 files changed, 8294 insertions(+), 7380 deletions(-) diff --git a/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.py b/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.py index c634580d..c0749867 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: 6.32.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, + 6, + 32, + 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..18a2af72 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 + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -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,63 @@ 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: ... -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: ... + +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 +246,981 @@ 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: ... -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: ... -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: ... -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: ... -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: ... -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: ... + _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: ... -global___CaptureAudioFrameResponse = CaptureAudioFrameResponse +Global___CaptureAudioFrameResponse: _TypeAlias = CaptureAudioFrameResponse # noqa: Y015 -@typing.final -class CaptureAudioFrameCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_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 + 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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... + +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: ... -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: ... + +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: ... -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: ... + _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: ... -global___ApmProcessReverseStreamResponse = ApmProcessReverseStreamResponse +Global___ApmProcessReverseStreamResponse: _TypeAlias = ApmProcessReverseStreamResponse # noqa: Y015 -@typing.final -class ApmSetStreamDelayRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_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 + 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: ... -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: ... -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: ... + +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: ... + _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: ... -global___PushSoxResamplerRequest = PushSoxResamplerRequest +Global___PushSoxResamplerRequest: _TypeAlias = PushSoxResamplerRequest # noqa: Y015 -@typing.final -class PushSoxResamplerResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_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 + 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: ... -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: ... + _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: ... -global___FlushSoxResamplerRequest = FlushSoxResamplerRequest +Global___FlushSoxResamplerRequest: _TypeAlias = FlushSoxResamplerRequest # noqa: Y015 -@typing.final -class FlushSoxResamplerResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_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 + 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: ... -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: ... + +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: ... -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: ... + +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: ... + +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: ... -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: ... -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: ... -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: ... + +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: ... -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 +Global___AudioResamplerInfo: _TypeAlias = AudioResamplerInfo # noqa: Y015 -@typing.final -class OwnedAudioResampler(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class OwnedAudioResampler(_message.Message): + 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___AudioResamplerInfo: ... + 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: ... -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: ... -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 +Global___SoxResamplerInfo: _TypeAlias = SoxResamplerInfo # noqa: Y015 -@typing.final -class OwnedSoxResampler(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class OwnedSoxResampler(_message.Message): + 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___SoxResamplerInfo: ... + 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: ... -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: ... -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: ... -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..d5a21d91 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: 6.32.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, + 6, + 32, + 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..fe14c8cb 100644 --- a/livekit-rtc/livekit/rtc/_proto/data_stream_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/data_stream_pb2.pyi @@ -16,329 +16,361 @@ 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 + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -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: ... -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: ... -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: ... -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: ... -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: ... + +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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... + +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 +378,858 @@ 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: ... -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: ... + +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: ... -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: ... -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: ... -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: ... + +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: ... -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: ... + +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: ... -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: ... + +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: ... -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: ... -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: ... + +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: ... -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: ... + +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: ... -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: ... -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: ... + +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: ... -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: ... -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: ... -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: ... + +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: ... -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: ... + +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: ... -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: ... -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: ... + +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: ... -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 +1241,286 @@ 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: ... + + 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: ... + _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: ... -global___TextStreamInfo = TextStreamInfo +Global___TextStreamInfo: _TypeAlias = TextStreamInfo # noqa: Y015 -@typing.final -class ByteStreamInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ByteStreamInfo(_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: ... - - 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: ... + + 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: ... + _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: ... -global___ByteStreamInfo = ByteStreamInfo +Global___ByteStreamInfo: _TypeAlias = ByteStreamInfo # noqa: Y015 -@typing.final -class StreamTextOptions(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class StreamTextOptions(_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: ... - - 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: ... + + 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: ... + _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: ... -global___StreamTextOptions = StreamTextOptions +Global___StreamTextOptions: _TypeAlias = StreamTextOptions # noqa: Y015 -@typing.final -class StreamByteOptions(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class StreamByteOptions(_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: ... - - 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: ... + + 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: ... -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: ... -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..18a83691 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: 6.32.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, + 6, + 32, + 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..cf226ece 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 + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -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,158 @@ 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: ... -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: ... + _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: ... -global___DataTrackFrame = DataTrackFrame +Global___DataTrackFrame: _TypeAlias = DataTrackFrame # noqa: Y015 -@typing.final -class DataTrackError(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_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 + 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: ... + _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: ... -global___DataTrackError = DataTrackError +Global___DataTrackError: _TypeAlias = DataTrackError # noqa: Y015 -@typing.final -class PublishDataTrackError(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_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 + 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: ... + _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: ... -global___PublishDataTrackError = PublishDataTrackError +Global___PublishDataTrackError: _TypeAlias = PublishDataTrackError # noqa: Y015 -@typing.final -class LocalDataTrackTryPushError(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_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 + 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: ... + _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: ... -global___LocalDataTrackTryPushError = LocalDataTrackTryPushError +Global___LocalDataTrackTryPushError: _TypeAlias = LocalDataTrackTryPushError # noqa: Y015 -@typing.final -class SubscribeDataTrackError(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_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 + 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: ... -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 +294,380 @@ 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: ... -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: ... -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: ... + +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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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 +675,103 @@ 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: ... -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: ... -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: ... -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: ... -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..c71a25fb 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: 6.32.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, + 6, + 32, + 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..7904d786 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 + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -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,545 @@ 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: ... + +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: ... + +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: ... -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: ... -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: ... -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: ... -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: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["frame_cryptors", b"frame_cryptors"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___E2eeManagerGetFrameCryptorsResponse = E2eeManagerGetFrameCryptorsResponse +Global___E2eeManagerGetFrameCryptorsResponse: _TypeAlias = E2eeManagerGetFrameCryptorsResponse # noqa: Y015 -@typing.final -class FrameCryptorSetEnabledRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_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 + 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: ... -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 +Global___FrameCryptorSetEnabledResponse: _TypeAlias = FrameCryptorSetEnabledResponse # noqa: Y015 -@typing.final -class FrameCryptorSetKeyIndexRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_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 + 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: ... -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 +Global___FrameCryptorSetKeyIndexResponse: _TypeAlias = FrameCryptorSetKeyIndexResponse # noqa: Y015 -@typing.final -class SetSharedKeyRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_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 + 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: ... -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: ... -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: ... -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: ... -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: ... -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: ... + +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: ... -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 +Global___SetKeyResponse: _TypeAlias = SetKeyResponse # noqa: Y015 -@typing.final -class RatchetKeyRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_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 + 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: ... -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: ... + _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: ... -global___RatchetKeyResponse = RatchetKeyResponse +Global___RatchetKeyResponse: _TypeAlias = RatchetKeyResponse # noqa: Y015 -@typing.final -class GetKeyRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_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 + 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: ... -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: ... + +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..4c487b63 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: 6.32.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, + 6, + 32, + 1, + '', + 'ffi.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -28,8 +38,8 @@ _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 diff --git a/livekit-rtc/livekit/rtc/_proto/ffi_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/ffi_pb2.pyi index 3d71bcf0..eb919cfc 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 + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -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,999 @@ 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 + @_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: ... 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 = ..., ) -> 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", "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", "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"] # 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 + @_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: ... 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 = ..., ) -> 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", "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", "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"] # 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 + @_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)""" 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 = ..., ) -> 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", "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", "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"] # 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: ... -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: ... -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: ... + +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: ... -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: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["records", b"records"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> 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: ... -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..348e0645 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: 6.32.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, + 6, + 32, + 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..23b0851f 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, 10): + from typing import TypeAlias as _TypeAlias +else: + from typing_extensions import TypeAlias as _TypeAlias -@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,18 @@ 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: ... -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..b9fa3e6a 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: 6.32.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, + 6, + 32, + 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..53f74ae1 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 + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -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,149 @@ 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: ... + + 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: ... + +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: ... -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: ... -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..90934362 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: 6.32.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, + 6, + 32, + 1, + '', + 'room.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -27,16 +37,16 @@ _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 diff --git a/livekit-rtc/livekit/rtc/_proto/room_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/room_pb2.pyi index 25b9160e..552d13dc 100644 --- a/livekit-rtc/livekit/rtc/_proto/room_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/room_pb2.pyi @@ -16,36 +16,41 @@ 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 + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -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 _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 +60,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 +75,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 +97,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 +114,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 +129,70 @@ 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: ... -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: ... -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 +200,2249 @@ 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: ... + + @_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: ... - 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: ... + 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 = ..., + 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: ... + _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 = ConnectCallback +Global___ConnectCallback: _TypeAlias = ConnectCallback # noqa: Y015 -@typing.final -class DisconnectRequest(google.protobuf.message.Message): +@_typing.final +class DisconnectRequest(_message.Message): """Disconnect from the a room""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _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: ... - 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["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: ... -global___DisconnectRequest = DisconnectRequest +Global___DisconnectRequest: _TypeAlias = DisconnectRequest # noqa: Y015 -@typing.final -class DisconnectResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DisconnectResponse(_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: ... -global___DisconnectResponse = DisconnectResponse +Global___DisconnectResponse: _TypeAlias = DisconnectResponse # noqa: Y015 -@typing.final -class DisconnectCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DisconnectCallback(_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: ... -global___DisconnectCallback = DisconnectCallback +Global___DisconnectCallback: _TypeAlias = DisconnectCallback # 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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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 = ..., + 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: ... + _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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["publisher_stats", b"publisher_stats", "subscriber_stats", b"subscriber_stats"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> 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: ... + 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 = ..., + 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: ... + _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 = GetSessionStatsCallback +Global___GetSessionStatsCallback: _TypeAlias = GetSessionStatsCallback # noqa: Y015 -@typing.final -class VideoEncoding(google.protobuf.message.Message): +@_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: ... -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: ... -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: ... -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: ... -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: ... -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: ... + +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: ... + +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: ... + +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: ... + +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: ... - -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, - *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___RoomInfo | 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: ... + @_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: ... + +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: ... -global___OwnedRoom = OwnedRoom +Global___OwnedRoom: _TypeAlias = OwnedRoom # noqa: Y015 -@typing.final -class ParticipantsUpdated(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ParticipantsUpdated(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANTS_FIELD_NUMBER: builtins.int - @property - def participants(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[participant_pb2.ParticipantInfo]: ... + PARTICIPANTS_FIELD_NUMBER: _builtins.int + @_builtins.property + def participants(self) -> _containers.RepeatedCompositeFieldContainer[_participant_pb2.ParticipantInfo]: ... def __init__( self, *, - participants: collections.abc.Iterable[participant_pb2.ParticipantInfo] | None = ..., + participants: _abc.Iterable[_participant_pb2.ParticipantInfo] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing.Literal["participants", b"participants"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participants", b"participants"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ParticipantsUpdated = ParticipantsUpdated +Global___ParticipantsUpdated: _TypeAlias = ParticipantsUpdated # noqa: Y015 -@typing.final -class ParticipantConnected(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ParticipantConnected(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - INFO_FIELD_NUMBER: builtins.int - @property - def info(self) -> participant_pb2.OwnedParticipant: ... + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def info(self) -> _participant_pb2.OwnedParticipant: ... def __init__( self, *, - info: participant_pb2.OwnedParticipant | None = ..., + info: _participant_pb2.OwnedParticipant | 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["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: ... -global___ParticipantConnected = ParticipantConnected +Global___ParticipantConnected: _TypeAlias = ParticipantConnected # noqa: Y015 -@typing.final -class ParticipantActive(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ParticipantActive(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - participant_identity: builtins.str + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str def __init__( self, *, - participant_identity: builtins.str | None = ..., + participant_identity: _builtins.str | 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["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: ... -global___ParticipantActive = ParticipantActive +Global___ParticipantActive: _TypeAlias = ParticipantActive # noqa: Y015 -@typing.final -class ParticipantDisconnected(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ParticipantDisconnected(_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 + 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 = ..., + 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: ... + _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: ... -global___ParticipantDisconnected = ParticipantDisconnected +Global___ParticipantDisconnected: _TypeAlias = ParticipantDisconnected # noqa: Y015 -@typing.final -class LocalTrackPublished(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class LocalTrackPublished(_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 """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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identities", b"participant_identities"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> 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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> 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: ... -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: ... -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 +2456,629 @@ 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: ... + _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: ... - @typing.final - class ByteHeader(google.protobuf.message.Message): + @_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: ... + _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: ... - @typing.final - class Header(google.protobuf.message.Message): + @_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: ... + + 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: ... + + @_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: ... + + 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 __init__( self, ) -> 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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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..c691413a 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: 6.32.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, + 6, + 32, + 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..2972b728 100644 --- a/livekit-rtc/livekit/rtc/_proto/rpc_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/rpc_pb2.pyi @@ -16,243 +16,267 @@ 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, 10): + from typing import TypeAlias as _TypeAlias +else: + from typing_extensions import TypeAlias as _TypeAlias + +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: ... -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: ... + _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: ... -global___PerformRpcRequest = PerformRpcRequest +Global___PerformRpcRequest: _TypeAlias = PerformRpcRequest # noqa: Y015 -@typing.final -class RegisterRpcMethodRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_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 + 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: ... + _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: ... -global___RegisterRpcMethodRequest = RegisterRpcMethodRequest +Global___RegisterRpcMethodRequest: _TypeAlias = RegisterRpcMethodRequest # noqa: Y015 -@typing.final -class UnregisterRpcMethodRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_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 + 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: ... + +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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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..7c40b648 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: 6.32.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, + 6, + 32, + 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..957fa990 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 + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -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,1369 @@ 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: ... + + @_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: ... + + @_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: ... + + @_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: ... + + @_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: ... + + @_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: ... + + @_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: ... + + @_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: ... + + @_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: ... + + @_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: ... + + @_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: ... + + @_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: ... + + @_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: ... + + @_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: ... + + @_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: ... + _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: ... - @typing.final - class Track(google.protobuf.message.Message): + @_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: ... + 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: ... + +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: ... + +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: ... + +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: ... + +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: ... + _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: ... -global___InboundRtpStreamStats = InboundRtpStreamStats +Global___InboundRtpStreamStats: _TypeAlias = InboundRtpStreamStats # noqa: Y015 -@typing.final -class SentRtpStreamStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_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 + 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: ... + _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: ... -global___SentRtpStreamStats = SentRtpStreamStats +Global___SentRtpStreamStats: _TypeAlias = SentRtpStreamStats # noqa: Y015 -@typing.final -class OutboundRtpStreamStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class OutboundRtpStreamStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - @typing.final - class QualityLimitationDurationsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.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 + 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: ... + + 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: ... + +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: ... + +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: ... + _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: ... -global___RemoteOutboundRtpStreamStats = RemoteOutboundRtpStreamStats +Global___RemoteOutboundRtpStreamStats: _TypeAlias = RemoteOutboundRtpStreamStats # noqa: Y015 -@typing.final -class MediaSourceStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_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 + 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: ... + +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: ... + +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: ... + +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: ... + _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: ... -global___AudioPlayoutStats = AudioPlayoutStats +Global___AudioPlayoutStats: _TypeAlias = AudioPlayoutStats # noqa: Y015 -@typing.final -class PeerConnectionStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_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 + 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: ... + +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: ... + +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: ... + +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: ... + +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: ... + +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: ... + _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: ... -global___CertificateStats = CertificateStats +Global___CertificateStats: _TypeAlias = CertificateStats # noqa: Y015 -@typing.final -class StreamStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_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 + 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: ... -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..c0f18502 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: 6.32.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, + 6, + 32, + 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..ac372939 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 + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -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,443 @@ 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: ... -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: ... -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: ... -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: ... + _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: ... -global___CreateAudioTrackResponse = CreateAudioTrackResponse +Global___CreateAudioTrackResponse: _TypeAlias = CreateAudioTrackResponse # noqa: Y015 -@typing.final -class GetStatsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_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 + 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: ... -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: ... + +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: ... -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]: ... +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: ... + +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: ... + +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: ... + +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: ... -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: ... -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: ... -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: ... -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: ... + +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: ... + _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: ... -global___SetTrackSubscriptionPermissionsRequest = SetTrackSubscriptionPermissionsRequest +Global___SetTrackSubscriptionPermissionsRequest: _TypeAlias = SetTrackSubscriptionPermissionsRequest # noqa: Y015 -@typing.final -class ParticipantTrackPermission(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_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 + 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: ... -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: ... -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..e8932e08 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: 6.32.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, + 6, + 32, + 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..94a1a99d 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 + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -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,106 @@ 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: ... -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: ... -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: ... -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: ... -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: ... -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: ... -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..01a79411 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: 6.32.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, + 6, + 32, + 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..08cd6400 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 + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -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,56 @@ 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: ... -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: ... -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 +237,54 @@ 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: ... -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: ... -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 +292,403 @@ 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: ... -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: ... -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: ... -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 +Global___CaptureVideoFrameResponse: _TypeAlias = CaptureVideoFrameResponse # noqa: Y015 -@typing.final -class VideoConvertRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_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 - @property - def buffer(self) -> global___VideoBufferInfo: ... + 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: ... + +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: ... + +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: ... + + 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: ... + +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: ... -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: ... + +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: ... + +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: ... -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: ... -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: ... -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: ... + +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: ... -global___OwnedVideoSource = OwnedVideoSource +Global___OwnedVideoSource: _TypeAlias = OwnedVideoSource # noqa: Y015 diff --git a/livekit-rtc/livekit/rtc/version.py b/livekit-rtc/livekit/rtc/version.py index 9b102be7..1436d8fe 100644 --- a/livekit-rtc/livekit/rtc/version.py +++ b/livekit-rtc/livekit/rtc/version.py @@ -1 +1 @@ -__version__ = "1.1.5" +__version__ = "1.1.6" diff --git a/livekit-rtc/rust-sdks b/livekit-rtc/rust-sdks index 07af4203..70acaa40 160000 --- a/livekit-rtc/rust-sdks +++ b/livekit-rtc/rust-sdks @@ -1 +1 @@ -Subproject commit 07af42030bf207fc6a9909addd8fbf068e868e25 +Subproject commit 70acaa40baab966867d8fe99c0fbf193bad0f743 From a0a4b3852f681ec48c1dd3c0673361154551589c Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 15 Apr 2026 20:19:42 +0000 Subject: [PATCH 2/3] generated protobuf --- .../livekit/rtc/_proto/audio_frame_pb2.py | 16 +- .../livekit/rtc/_proto/audio_frame_pb2.pyi | 1444 +++--- .../livekit/rtc/_proto/data_stream_pb2.py | 24 +- .../livekit/rtc/_proto/data_stream_pb2.pyi | 1976 ++++---- .../livekit/rtc/_proto/data_track_pb2.py | 16 +- .../livekit/rtc/_proto/data_track_pb2.pyi | 776 ++-- livekit-rtc/livekit/rtc/_proto/e2ee_pb2.py | 16 +- livekit-rtc/livekit/rtc/_proto/e2ee_pb2.pyi | 785 ++-- livekit-rtc/livekit/rtc/_proto/ffi_pb2.py | 16 +- livekit-rtc/livekit/rtc/_proto/ffi_pb2.pyi | 1783 ++++---- livekit-rtc/livekit/rtc/_proto/handle_pb2.py | 16 +- livekit-rtc/livekit/rtc/_proto/handle_pb2.pyi | 36 +- .../livekit/rtc/_proto/participant_pb2.py | 18 +- .../livekit/rtc/_proto/participant_pb2.pyi | 278 +- livekit-rtc/livekit/rtc/_proto/room_pb2.py | 24 +- livekit-rtc/livekit/rtc/_proto/room_pb2.pyi | 4016 ++++++++--------- livekit-rtc/livekit/rtc/_proto/rpc_pb2.py | 16 +- livekit-rtc/livekit/rtc/_proto/rpc_pb2.pyi | 352 +- livekit-rtc/livekit/rtc/_proto/stats_pb2.py | 18 +- livekit-rtc/livekit/rtc/_proto/stats_pb2.pyi | 2426 +++++----- livekit-rtc/livekit/rtc/_proto/track_pb2.py | 16 +- livekit-rtc/livekit/rtc/_proto/track_pb2.pyi | 650 ++- .../rtc/_proto/track_publication_pb2.py | 16 +- .../rtc/_proto/track_publication_pb2.pyi | 134 +- .../livekit/rtc/_proto/video_frame_pb2.py | 16 +- .../livekit/rtc/_proto/video_frame_pb2.pyi | 786 ++-- 26 files changed, 7378 insertions(+), 8292 deletions(-) diff --git a/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.py b/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.py index c0749867..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: 6.32.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, - 6, - 32, - 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 18a2af72..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, 10): - from typing import TypeAlias as _TypeAlias + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + 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,63 +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 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: ... - -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 @@ -246,981 +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 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 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 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 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 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 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: _TypeAlias = CaptureAudioFrameResponse # noqa: Y015 +global___CaptureAudioFrameResponse = CaptureAudioFrameResponse -@_typing.final -class CaptureAudioFrameCallback(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@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 + 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 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 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: ... -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: ... -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 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 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 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 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: ... - -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 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: ... - -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 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 HasField(self, field_name: typing.Literal["error", b"error"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error"]) -> None: ... -Global___ApmProcessReverseStreamResponse: _TypeAlias = ApmProcessReverseStreamResponse # noqa: Y015 +global___ApmProcessReverseStreamResponse = ApmProcessReverseStreamResponse -@_typing.final -class ApmSetStreamDelayRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@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 + 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 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 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: ... - -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 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: _TypeAlias = PushSoxResamplerRequest # noqa: Y015 +global___PushSoxResamplerRequest = PushSoxResamplerRequest -@_typing.final -class PushSoxResamplerResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@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 + 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 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 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: _TypeAlias = FlushSoxResamplerRequest # noqa: Y015 +global___FlushSoxResamplerRequest = FlushSoxResamplerRequest -@_typing.final -class FlushSoxResamplerResponse(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@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 + 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 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: ... - -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 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: ... - -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: ... - -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 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: ... -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 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: ... - -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 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: ... -Global___AudioResamplerInfo: _TypeAlias = AudioResamplerInfo # noqa: Y015 +global___AudioResamplerInfo = AudioResamplerInfo -@_typing.final -class OwnedAudioResampler(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class OwnedAudioResampler(google.protobuf.message.Message): + 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___AudioResamplerInfo: ... + 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 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 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: ... -Global___SoxResamplerInfo: _TypeAlias = SoxResamplerInfo # noqa: Y015 +global___SoxResamplerInfo = SoxResamplerInfo -@_typing.final -class OwnedSoxResampler(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class OwnedSoxResampler(google.protobuf.message.Message): + 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___SoxResamplerInfo: ... + 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 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 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 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 d5a21d91..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: 6.32.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, - 6, - 32, - 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 fe14c8cb..e68dc45f 100644 --- a/livekit-rtc/livekit/rtc/_proto/data_stream_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/data_stream_pb2.pyi @@ -16,361 +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, 10): - from typing import TypeAlias as _TypeAlias + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + 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 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 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: ... -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 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: ... - -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 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 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 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 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: ... -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 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: ... - -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. @@ -378,858 +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 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: ... - -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 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 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 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: ... - -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 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: ... - -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 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: ... - -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 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 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: ... - -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 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: ... - -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 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 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: ... - -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 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 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 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: ... - -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 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: ... - -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 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 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: ... - -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 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 @@ -1241,286 +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: ... - - 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 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: _TypeAlias = TextStreamInfo # noqa: Y015 +global___TextStreamInfo = TextStreamInfo -@_typing.final -class ByteStreamInfo(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ByteStreamInfo(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: ... - - 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 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: _TypeAlias = ByteStreamInfo # noqa: Y015 +global___ByteStreamInfo = ByteStreamInfo -@_typing.final -class StreamTextOptions(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class StreamTextOptions(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: ... - - 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 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: _TypeAlias = StreamTextOptions # noqa: Y015 +global___StreamTextOptions = StreamTextOptions -@_typing.final -class StreamByteOptions(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class StreamByteOptions(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: ... - - 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 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 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 18a83691..f59f0bf7 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: 6.32.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, - 6, - 32, - 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=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 cf226ece..a12996c2 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, 10): - from typing import TypeAlias as _TypeAlias + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + 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,158 +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 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 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: _TypeAlias = DataTrackFrame # noqa: Y015 +global___DataTrackFrame = DataTrackFrame -@_typing.final -class DataTrackError(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@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 + 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 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: _TypeAlias = DataTrackError # noqa: Y015 +global___DataTrackError = DataTrackError -@_typing.final -class PublishDataTrackError(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@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 + 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 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: _TypeAlias = PublishDataTrackError # noqa: Y015 +global___PublishDataTrackError = PublishDataTrackError -@_typing.final -class LocalDataTrackTryPushError(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@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 + 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 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: _TypeAlias = LocalDataTrackTryPushError # noqa: Y015 +global___LocalDataTrackTryPushError = LocalDataTrackTryPushError -@_typing.final -class SubscribeDataTrackError(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@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 + 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 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. @@ -294,380 +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 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 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: ... - -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 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 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 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 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 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 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: ... -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 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 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 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 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 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 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 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. @@ -675,103 +627,93 @@ 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 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: ... -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 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 - 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: ... - _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 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 c71a25fb..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: 6.32.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, - 6, - 32, - 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 7904d786..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, 10): - from typing import TypeAlias as _TypeAlias + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + 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,545 +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: ... - -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: ... - -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 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 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: ... -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: ... -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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["frame_cryptors", b"frame_cryptors"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing.Literal["frame_cryptors", b"frame_cryptors"]) -> None: ... -Global___E2eeManagerGetFrameCryptorsResponse: _TypeAlias = E2eeManagerGetFrameCryptorsResponse # noqa: Y015 +global___E2eeManagerGetFrameCryptorsResponse = E2eeManagerGetFrameCryptorsResponse -@_typing.final -class FrameCryptorSetEnabledRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@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 + 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 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: ... -Global___FrameCryptorSetEnabledResponse: _TypeAlias = FrameCryptorSetEnabledResponse # noqa: Y015 +global___FrameCryptorSetEnabledResponse = FrameCryptorSetEnabledResponse -@_typing.final -class FrameCryptorSetKeyIndexRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@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 + 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 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: ... -Global___FrameCryptorSetKeyIndexResponse: _TypeAlias = FrameCryptorSetKeyIndexResponse # noqa: Y015 +global___FrameCryptorSetKeyIndexResponse = FrameCryptorSetKeyIndexResponse -@_typing.final -class SetSharedKeyRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@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 + 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 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: ... -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 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 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 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: ... - -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 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: ... -Global___SetKeyResponse: _TypeAlias = SetKeyResponse # noqa: Y015 +global___SetKeyResponse = SetKeyResponse -@_typing.final -class RatchetKeyRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@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 + 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 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 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: _TypeAlias = RatchetKeyResponse # noqa: Y015 +global___RatchetKeyResponse = RatchetKeyResponse -@_typing.final -class GetKeyRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@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 + 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 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: ... - -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 4c487b63..02c5dd28 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: 6.32.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, - 6, - 32, - 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=14167 _globals['_LOGLEVEL']._serialized_end=14250 diff --git a/livekit-rtc/livekit/rtc/_proto/ffi_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/ffi_pb2.pyi index eb919cfc..3d71bcf0 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, 10): - from typing import TypeAlias as _TypeAlias + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + 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,999 +94,976 @@ 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 - @_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 + @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: ... + @property + def remote_data_track_is_published(self) -> data_track_pb2.RemoteDataTrackIsPublishedRequest: ... + @property + def data_track_stream_read(self) -> data_track_pb2.DataTrackStreamReadRequest: ... 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 = ..., ) -> 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", "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", "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"] # 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", "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): """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 - @_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 + @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: ... + @property + def remote_data_track_is_published(self) -> data_track_pb2.RemoteDataTrackIsPublishedResponse: ... + @property + def data_track_stream_read(self) -> data_track_pb2.DataTrackStreamReadResponse: ... 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 = ..., ) -> 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", "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", "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"] # 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", "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): """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 - @_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 + @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)""" 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 = ..., ) -> 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", "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", "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"] # 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", "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): """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 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 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: ... - -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 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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["records", b"records"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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 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 348e0645..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: 6.32.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, - 6, - 32, - 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 23b0851f..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, 10): - from typing import TypeAlias as _TypeAlias -else: - from typing_extensions import TypeAlias as _TypeAlias +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,18 +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 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 b9fa3e6a..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: 6.32.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, - 6, - 32, - 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 53f74ae1..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, 10): - from typing import TypeAlias as _TypeAlias + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + 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,149 +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: ... - - 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: ... - -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 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 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 90934362..45de6224 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: 6.32.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, - 6, - 32, - 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['_ICETRANSPORTTYPE']._serialized_start=14289 _globals['_ICETRANSPORTTYPE']._serialized_end=14369 diff --git a/livekit-rtc/livekit/rtc/_proto/room_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/room_pb2.pyi index 552d13dc..25b9160e 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, 10): - from typing import TypeAlias as _TypeAlias + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + 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 _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 @@ -60,14 +55,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 @@ -75,14 +70,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 @@ -97,14 +92,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 @@ -114,14 +109,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 @@ -129,70 +124,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 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 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 """ @@ -200,2249 +191,2068 @@ 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: ... - - @_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 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 - @_builtins.property - def result(self) -> Global___ConnectCallback.Result: ... + 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 = ..., + 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: ... + 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: _TypeAlias = ConnectCallback # noqa: Y015 +global___ConnectCallback = ConnectCallback -@_typing.final -class DisconnectRequest(_message.Message): +@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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 = ..., + 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: ... + 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 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 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 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 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 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 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 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 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: ... -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 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 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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["publisher_stats", b"publisher_stats", "subscriber_stats", b"subscriber_stats"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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 - @_builtins.property - def result(self) -> Global___GetSessionStatsCallback.Result: ... + 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 = ..., + 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: ... + 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: _TypeAlias = GetSessionStatsCallback # noqa: Y015 +global___GetSessionStatsCallback = GetSessionStatsCallback -@_typing.final -class VideoEncoding(_message.Message): +@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 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 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 - 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 + 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: ... + @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: ... - _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 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: ... -Global___TrackPublishOptions: _TypeAlias = TrackPublishOptions # noqa: Y015 +global___TrackPublishOptions = TrackPublishOptions -@_typing.final -class IceServer(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@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 - @_builtins.property - def urls(self) -> _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 + @property + def urls(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... def __init__( self, *, - urls: _abc.Iterable[_builtins.str] | None = ..., - username: _builtins.str | None = ..., - password: _builtins.str | None = ..., + urls: collections.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 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: _TypeAlias = IceServer # noqa: Y015 +global___IceServer = IceServer -@_typing.final -class RtcConfig(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@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 - @_builtins.property - def ice_servers(self) -> _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 + @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 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: ... - -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: ... - -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: ... - -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: ... - -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: ... - -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: ... + @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: ... + +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, + *, + handle: handle_pb2.FfiOwnedHandle | None = ..., + info: global___RoomInfo | 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___OwnedRoom: _TypeAlias = OwnedRoom # noqa: Y015 +global___OwnedRoom = OwnedRoom -@_typing.final -class ParticipantsUpdated(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ParticipantsUpdated(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - PARTICIPANTS_FIELD_NUMBER: _builtins.int - @_builtins.property - def participants(self) -> _containers.RepeatedCompositeFieldContainer[_participant_pb2.ParticipantInfo]: ... + PARTICIPANTS_FIELD_NUMBER: builtins.int + @property + def participants(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[participant_pb2.ParticipantInfo]: ... def __init__( self, *, - participants: _abc.Iterable[_participant_pb2.ParticipantInfo] | None = ..., + participants: collections.abc.Iterable[participant_pb2.ParticipantInfo] | None = ..., ) -> None: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["participants", b"participants"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def ClearField(self, field_name: typing.Literal["participants", b"participants"]) -> None: ... -Global___ParticipantsUpdated: _TypeAlias = ParticipantsUpdated # noqa: Y015 +global___ParticipantsUpdated = ParticipantsUpdated -@_typing.final -class ParticipantConnected(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ParticipantConnected(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - INFO_FIELD_NUMBER: _builtins.int - @_builtins.property - def info(self) -> _participant_pb2.OwnedParticipant: ... + INFO_FIELD_NUMBER: builtins.int + @property + def info(self) -> participant_pb2.OwnedParticipant: ... def __init__( self, *, - info: _participant_pb2.OwnedParticipant | None = ..., + info: participant_pb2.OwnedParticipant | 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 HasField(self, field_name: typing.Literal["info", b"info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["info", b"info"]) -> None: ... -Global___ParticipantConnected: _TypeAlias = ParticipantConnected # noqa: Y015 +global___ParticipantConnected = ParticipantConnected -@_typing.final -class ParticipantActive(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ParticipantActive(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int - participant_identity: _builtins.str + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + participant_identity: builtins.str def __init__( self, *, - participant_identity: _builtins.str | None = ..., + participant_identity: builtins.str | 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 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___ParticipantActive: _TypeAlias = ParticipantActive # noqa: Y015 +global___ParticipantActive = ParticipantActive -@_typing.final -class ParticipantDisconnected(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class ParticipantDisconnected(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 + 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 = ..., + participant_identity: builtins.str | None = ..., + disconnect_reason: participant_pb2.DisconnectReason.ValueType | 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 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: _TypeAlias = ParticipantDisconnected # noqa: Y015 +global___ParticipantDisconnected = ParticipantDisconnected -@_typing.final -class LocalTrackPublished(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@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: ... - _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 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 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 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 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 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 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 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 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 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 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 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: ... - _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identities", b"participant_identities"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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: ... -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 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: ... -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: ... -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 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: ... -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 @@ -2456,629 +2266,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 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(_message.Message): + @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 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(_message.Message): + @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: ... - - 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: ... - - @_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: ... - - 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 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: ... -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 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 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 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 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 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 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 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 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 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 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 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 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 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: ... -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 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 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 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 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 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 c691413a..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: 6.32.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, - 6, - 32, - 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 2972b728..bbed4217 100644 --- a/livekit-rtc/livekit/rtc/_proto/rpc_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/rpc_pb2.pyi @@ -16,267 +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, 10): - from typing import TypeAlias as _TypeAlias -else: - from typing_extensions import TypeAlias as _TypeAlias - -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 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 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: _TypeAlias = PerformRpcRequest # noqa: Y015 +global___PerformRpcRequest = PerformRpcRequest -@_typing.final -class RegisterRpcMethodRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@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 + 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 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: _TypeAlias = RegisterRpcMethodRequest # noqa: Y015 +global___RegisterRpcMethodRequest = RegisterRpcMethodRequest -@_typing.final -class UnregisterRpcMethodRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@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 + 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: ... - -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 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 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: ... -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: ... -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 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 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 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 7c40b648..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: 6.32.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, - 6, - 32, - 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 957fa990..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, 10): - from typing import TypeAlias as _TypeAlias + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + 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,1369 +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: ... - - @_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: ... - - @_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: ... - - @_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: ... - - @_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: ... - - @_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: ... - - @_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: ... - - @_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: ... - - @_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: ... - - @_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: ... - - @_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: ... - - @_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: ... - - @_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: ... - - @_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: ... - - @_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 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(_message.Message): + @typing.final + class Track(google.protobuf.message.Message): """Deprecated""" - DESCRIPTOR: _descriptor.Descriptor + DESCRIPTOR: google.protobuf.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 - @_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: ... - -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: ... - -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: ... - -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: ... - -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 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: _TypeAlias = InboundRtpStreamStats # noqa: Y015 +global___InboundRtpStreamStats = InboundRtpStreamStats -@_typing.final -class SentRtpStreamStats(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@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 + 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 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: _TypeAlias = SentRtpStreamStats # noqa: Y015 +global___SentRtpStreamStats = SentRtpStreamStats -@_typing.final -class OutboundRtpStreamStats(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@typing.final +class OutboundRtpStreamStats(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @_typing.final - class QualityLimitationDurationsEntry(_message.Message): - DESCRIPTOR: _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 + 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: ... - - 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: ... - -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: ... - -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 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: _TypeAlias = RemoteOutboundRtpStreamStats # noqa: Y015 +global___RemoteOutboundRtpStreamStats = RemoteOutboundRtpStreamStats -@_typing.final -class MediaSourceStats(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@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 + 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: ... - -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: ... - -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: ... - -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 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: _TypeAlias = AudioPlayoutStats # noqa: Y015 +global___AudioPlayoutStats = AudioPlayoutStats -@_typing.final -class PeerConnectionStats(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@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 + 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: ... - -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: ... - -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: ... - -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: ... - -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: ... - -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 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: _TypeAlias = CertificateStats # noqa: Y015 +global___CertificateStats = CertificateStats -@_typing.final -class StreamStats(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@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 + 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 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 c0f18502..4bae5528 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: 6.32.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, - 6, - 32, - 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=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 ac372939..79ac3c4e 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, 10): - from typing import TypeAlias as _TypeAlias + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + 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,443 +115,409 @@ 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 -@_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 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 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 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 HasField(self, field_name: typing.Literal["track", b"track"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["track", b"track"]) -> None: ... -Global___CreateAudioTrackResponse: _TypeAlias = CreateAudioTrackResponse # noqa: Y015 +global___CreateAudioTrackResponse = CreateAudioTrackResponse -@_typing.final -class GetStatsRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@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 + 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 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: ... - -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 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: ... -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]: ... +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]: ... 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 = ..., + 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 = ..., ) -> 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", "remote", b"remote", "sid", b"sid", "simulcasted", b"simulcasted", "source", b"source", "width", b"width"] # noqa: Y015 - def ClearField(self, field_name: _ClearFieldArgType) -> 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", "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: ... - -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: ... - -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 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 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 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 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: ... - -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 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: _TypeAlias = SetTrackSubscriptionPermissionsRequest # noqa: Y015 +global___SetTrackSubscriptionPermissionsRequest = SetTrackSubscriptionPermissionsRequest -@_typing.final -class ParticipantTrackPermission(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@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 + 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 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: ... -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 e8932e08..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: 6.32.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, - 6, - 32, - 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 94a1a99d..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, 10): - from typing import TypeAlias as _TypeAlias + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + 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,106 +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 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: ... -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 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: ... -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 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: ... -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 01a79411..4fdd812a 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: 6.32.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, - 6, - 32, - 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=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 08cd6400..3a5ca1d9 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, 10): - from typing import TypeAlias as _TypeAlias + import typing as typing_extensions else: - from typing_extensions import TypeAlias as _TypeAlias + 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,56 +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 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 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. @@ -237,54 +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 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 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 """ @@ -292,403 +284,367 @@ 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 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 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 - 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 - @_builtins.property - def buffer(self) -> Global___VideoBufferInfo: ... + rotation: global___VideoRotation.ValueType + @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: ... - _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 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: ... -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: ... -Global___CaptureVideoFrameResponse: _TypeAlias = CaptureVideoFrameResponse # noqa: Y015 +global___CaptureVideoFrameResponse = CaptureVideoFrameResponse -@_typing.final -class VideoConvertRequest(_message.Message): - DESCRIPTOR: _descriptor.Descriptor +@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 - @_builtins.property - def buffer(self) -> Global___VideoBufferInfo: ... + 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: ... - -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: ... - -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: ... - - 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: ... - -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 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: _TypeAlias = OwnedVideoBuffer # noqa: Y015 +global___OwnedVideoBuffer = OwnedVideoBuffer -@_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: ... - -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: ... - -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 - 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 + timestamp_us: builtins.int """In microseconds""" - rotation: Global___VideoRotation.ValueType - @_builtins.property - def buffer(self) -> Global___OwnedVideoBuffer: ... + rotation: global___VideoRotation.ValueType + @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: ... - _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 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: ... -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: ... -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 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: ... - -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 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 22ee381d05443f45b3f402a19bc94c31a625299e Mon Sep 17 00:00:00 2001 From: shijing xian Date: Wed, 15 Apr 2026 14:29:35 -0700 Subject: [PATCH 3/3] revert the version.py change --- livekit-rtc/livekit/rtc/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/livekit-rtc/livekit/rtc/version.py b/livekit-rtc/livekit/rtc/version.py index 1436d8fe..9b102be7 100644 --- a/livekit-rtc/livekit/rtc/version.py +++ b/livekit-rtc/livekit/rtc/version.py @@ -1 +1 @@ -__version__ = "1.1.6" +__version__ = "1.1.5"