diff --git a/livekit-rtc/livekit/rtc/__init__.py b/livekit-rtc/livekit/rtc/__init__.py index 6ba91b2c..6a442eb3 100644 --- a/livekit-rtc/livekit/rtc/__init__.py +++ b/livekit-rtc/livekit/rtc/__init__.py @@ -37,12 +37,16 @@ VideoEncoding, ) from ._proto.track_pb2 import ( - PacketTrailerFeature, + FrameMetadataFeature, StreamState, TrackKind, TrackSource, ParticipantTrackPermission, ) + +# Backwards-compatible alias for the enum renamed to FrameMetadataFeature in the +# FFI protocol (note: member names changed from PTF_* to FMF_*). +PacketTrailerFeature = FrameMetadataFeature from ._proto.video_frame_pb2 import FrameMetadata, VideoBufferType, VideoCodec, VideoRotation from ._proto.track_publication_pb2 import VideoQuality from .audio_frame import AudioFrame @@ -148,6 +152,7 @@ "StreamState", "TrackKind", "TrackSource", + "FrameMetadataFeature", "PacketTrailerFeature", "ParticipantTrackPermission", "VideoBufferType", diff --git a/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.py b/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.py index b033cb80..4337d367 100644 --- a/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: audio_frame.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 4.25.2 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool diff --git a/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.pyi index 3e227c7e..7a8a75e4 100644 --- a/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.pyi @@ -16,30 +16,30 @@ See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -from . import handle_pb2 +from collections import abc as _abc +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +import builtins as _builtins +from . import handle_pb2 as _handle_pb2 import sys -from . import track_pb2 -import typing +from . import track_pb2 as _track_pb2 +import typing as _typing -if sys.version_info >= (3, 10): - import typing as typing_extensions +if sys.version_info >= (3, 11): + from typing import TypeAlias as _TypeAlias, Never as _Never else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias, Never as _Never -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor class _SoxResamplerDataType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _SoxResamplerDataTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SoxResamplerDataType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _SoxResamplerDataTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_SoxResamplerDataType.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor SOXR_DATATYPE_INT16I: _SoxResamplerDataType.ValueType # 0 """TODO(theomonnom): support other datatypes (shouldn't really be needed)""" SOXR_DATATYPE_INT16S: _SoxResamplerDataType.ValueType # 1 @@ -49,14 +49,14 @@ class SoxResamplerDataType(_SoxResamplerDataType, metaclass=_SoxResamplerDataTyp SOXR_DATATYPE_INT16I: SoxResamplerDataType.ValueType # 0 """TODO(theomonnom): support other datatypes (shouldn't really be needed)""" SOXR_DATATYPE_INT16S: SoxResamplerDataType.ValueType # 1 -global___SoxResamplerDataType = SoxResamplerDataType +Global___SoxResamplerDataType: _TypeAlias = SoxResamplerDataType # noqa: Y015 class _SoxQualityRecipe: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _SoxQualityRecipeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SoxQualityRecipe.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _SoxQualityRecipeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_SoxQualityRecipe.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor SOXR_QUALITY_QUICK: _SoxQualityRecipe.ValueType # 0 SOXR_QUALITY_LOW: _SoxQualityRecipe.ValueType # 1 SOXR_QUALITY_MEDIUM: _SoxQualityRecipe.ValueType # 2 @@ -70,14 +70,14 @@ SOXR_QUALITY_LOW: SoxQualityRecipe.ValueType # 1 SOXR_QUALITY_MEDIUM: SoxQualityRecipe.ValueType # 2 SOXR_QUALITY_HIGH: SoxQualityRecipe.ValueType # 3 SOXR_QUALITY_VERYHIGH: SoxQualityRecipe.ValueType # 4 -global___SoxQualityRecipe = SoxQualityRecipe +Global___SoxQualityRecipe: _TypeAlias = SoxQualityRecipe # noqa: Y015 class _SoxFlagBits: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _SoxFlagBitsEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SoxFlagBits.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _SoxFlagBitsEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_SoxFlagBits.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor SOXR_ROLLOFF_SMALL: _SoxFlagBits.ValueType # 0 """1 << 0""" SOXR_ROLLOFF_MEDIUM: _SoxFlagBits.ValueType # 1 @@ -105,14 +105,14 @@ SOXR_DOUBLE_PRECISION: SoxFlagBits.ValueType # 4 """1 << 4""" SOXR_VR: SoxFlagBits.ValueType # 5 """1 << 5""" -global___SoxFlagBits = SoxFlagBits +Global___SoxFlagBits: _TypeAlias = SoxFlagBits # noqa: Y015 class _AudioStreamType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _AudioStreamTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_AudioStreamType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _AudioStreamTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_AudioStreamType.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor AUDIO_STREAM_NATIVE: _AudioStreamType.ValueType # 0 AUDIO_STREAM_HTML: _AudioStreamType.ValueType # 1 @@ -123,14 +123,14 @@ 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 """Push-based audio source - manually capture frames via CaptureAudioFrameRequest""" AUDIO_SOURCE_PLATFORM: _AudioSourceType.ValueType # 1 @@ -146,33 +146,33 @@ AUDIO_SOURCE_PLATFORM: AudioSourceType.ValueType # 1 """Platform ADM-based audio source - captures from microphone automatically Requires PlatformAudio to be created first to enable ADM recording """ -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 @@ -186,59 +186,65 @@ class NewAudioStreamRequest(google.protobuf.message.Message): def __init__( self, *, - track_handle: builtins.int | None = ..., - type: global___AudioStreamType.ValueType | None = ..., - sample_rate: builtins.int | None = ..., - num_channels: builtins.int | None = ..., - audio_filter_module_id: builtins.str | None = ..., - audio_filter_options: builtins.str | None = ..., - frame_size_ms: builtins.int | None = ..., - queue_size_frames: builtins.int | None = ..., + track_handle: _builtins.int | None = ..., + type: Global___AudioStreamType.ValueType | None = ..., + sample_rate: _builtins.int | None = ..., + num_channels: _builtins.int | None = ..., + audio_filter_module_id: _builtins.str | None = ..., + audio_filter_options: _builtins.str | None = ..., + frame_size_ms: _builtins.int | None = ..., + queue_size_frames: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["audio_filter_module_id", b"audio_filter_module_id", "audio_filter_options", b"audio_filter_options", "frame_size_ms", b"frame_size_ms", "num_channels", b"num_channels", "queue_size_frames", b"queue_size_frames", "sample_rate", b"sample_rate", "track_handle", b"track_handle", "type", b"type"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["audio_filter_module_id", b"audio_filter_module_id", "audio_filter_options", b"audio_filter_options", "frame_size_ms", b"frame_size_ms", "num_channels", b"num_channels", "queue_size_frames", b"queue_size_frames", "sample_rate", b"sample_rate", "track_handle", b"track_handle", "type", b"type"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["audio_filter_module_id", b"audio_filter_module_id", "audio_filter_options", b"audio_filter_options", "frame_size_ms", b"frame_size_ms", "num_channels", b"num_channels", "queue_size_frames", b"queue_size_frames", "sample_rate", b"sample_rate", "track_handle", b"track_handle", "type", b"type"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["audio_filter_module_id", b"audio_filter_module_id", "audio_filter_options", b"audio_filter_options", "frame_size_ms", b"frame_size_ms", "num_channels", b"num_channels", "queue_size_frames", b"queue_size_frames", "sample_rate", b"sample_rate", "track_handle", b"track_handle", "type", b"type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___NewAudioStreamRequest = NewAudioStreamRequest +Global___NewAudioStreamRequest: _TypeAlias = NewAudioStreamRequest # noqa: Y015 -@typing.final -class NewAudioStreamResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class NewAudioStreamResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - STREAM_FIELD_NUMBER: builtins.int - @property - def stream(self) -> global___OwnedAudioStream: ... + STREAM_FIELD_NUMBER: _builtins.int + @_builtins.property + def stream(self) -> Global___OwnedAudioStream: ... def __init__( self, *, - stream: global___OwnedAudioStream | None = ..., + stream: Global___OwnedAudioStream | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["stream", b"stream"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["stream", b"stream"]) -> None: ... - -global___NewAudioStreamResponse = NewAudioStreamResponse - -@typing.final -class AudioStreamFromParticipantRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - TYPE_FIELD_NUMBER: builtins.int - TRACK_SOURCE_FIELD_NUMBER: builtins.int - SAMPLE_RATE_FIELD_NUMBER: builtins.int - NUM_CHANNELS_FIELD_NUMBER: builtins.int - AUDIO_FILTER_MODULE_ID_FIELD_NUMBER: builtins.int - AUDIO_FILTER_OPTIONS_FIELD_NUMBER: builtins.int - FRAME_SIZE_MS_FIELD_NUMBER: builtins.int - QUEUE_SIZE_FRAMES_FIELD_NUMBER: builtins.int - participant_handle: builtins.int - type: global___AudioStreamType.ValueType - track_source: track_pb2.TrackSource.ValueType - sample_rate: builtins.int - num_channels: builtins.int - audio_filter_module_id: builtins.str - audio_filter_options: builtins.str - frame_size_ms: builtins.int - queue_size_frames: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["stream", b"stream"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["stream", b"stream"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___NewAudioStreamResponse: _TypeAlias = NewAudioStreamResponse # noqa: Y015 + +@_typing.final +class AudioStreamFromParticipantRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + TYPE_FIELD_NUMBER: _builtins.int + TRACK_SOURCE_FIELD_NUMBER: _builtins.int + SAMPLE_RATE_FIELD_NUMBER: _builtins.int + NUM_CHANNELS_FIELD_NUMBER: _builtins.int + AUDIO_FILTER_MODULE_ID_FIELD_NUMBER: _builtins.int + AUDIO_FILTER_OPTIONS_FIELD_NUMBER: _builtins.int + FRAME_SIZE_MS_FIELD_NUMBER: _builtins.int + QUEUE_SIZE_FRAMES_FIELD_NUMBER: _builtins.int + participant_handle: _builtins.int + type: Global___AudioStreamType.ValueType + track_source: _track_pb2.TrackSource.ValueType + sample_rate: _builtins.int + num_channels: _builtins.int + audio_filter_module_id: _builtins.str + audio_filter_options: _builtins.str + frame_size_ms: _builtins.int + queue_size_frames: _builtins.int """Maximum number of queued WebRTC sink frames. Each frame is typically 10 ms of decoded PCM audio on the receive path. Omit this field to use the default bounded queue size of 10 frames. Set it to 0 to request unbounded @@ -252,925 +258,1069 @@ class AudioStreamFromParticipantRequest(google.protobuf.message.Message): def __init__( self, *, - participant_handle: builtins.int | None = ..., - type: global___AudioStreamType.ValueType | None = ..., - track_source: track_pb2.TrackSource.ValueType | None = ..., - sample_rate: builtins.int | None = ..., - num_channels: builtins.int | None = ..., - audio_filter_module_id: builtins.str | None = ..., - audio_filter_options: builtins.str | None = ..., - frame_size_ms: builtins.int | None = ..., - queue_size_frames: builtins.int | None = ..., + participant_handle: _builtins.int | None = ..., + type: Global___AudioStreamType.ValueType | None = ..., + track_source: _track_pb2.TrackSource.ValueType | None = ..., + sample_rate: _builtins.int | None = ..., + num_channels: _builtins.int | None = ..., + audio_filter_module_id: _builtins.str | None = ..., + audio_filter_options: _builtins.str | None = ..., + frame_size_ms: _builtins.int | None = ..., + queue_size_frames: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["audio_filter_module_id", b"audio_filter_module_id", "audio_filter_options", b"audio_filter_options", "frame_size_ms", b"frame_size_ms", "num_channels", b"num_channels", "participant_handle", b"participant_handle", "queue_size_frames", b"queue_size_frames", "sample_rate", b"sample_rate", "track_source", b"track_source", "type", b"type"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["audio_filter_module_id", b"audio_filter_module_id", "audio_filter_options", b"audio_filter_options", "frame_size_ms", b"frame_size_ms", "num_channels", b"num_channels", "participant_handle", b"participant_handle", "queue_size_frames", b"queue_size_frames", "sample_rate", b"sample_rate", "track_source", b"track_source", "type", b"type"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["audio_filter_module_id", b"audio_filter_module_id", "audio_filter_options", b"audio_filter_options", "frame_size_ms", b"frame_size_ms", "num_channels", b"num_channels", "participant_handle", b"participant_handle", "queue_size_frames", b"queue_size_frames", "sample_rate", b"sample_rate", "track_source", b"track_source", "type", b"type"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["audio_filter_module_id", b"audio_filter_module_id", "audio_filter_options", b"audio_filter_options", "frame_size_ms", b"frame_size_ms", "num_channels", b"num_channels", "participant_handle", b"participant_handle", "queue_size_frames", b"queue_size_frames", "sample_rate", b"sample_rate", "track_source", b"track_source", "type", b"type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___AudioStreamFromParticipantRequest = AudioStreamFromParticipantRequest +Global___AudioStreamFromParticipantRequest: _TypeAlias = AudioStreamFromParticipantRequest # noqa: Y015 -@typing.final -class AudioStreamFromParticipantResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class AudioStreamFromParticipantResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - STREAM_FIELD_NUMBER: builtins.int - @property - def stream(self) -> global___OwnedAudioStream: ... + STREAM_FIELD_NUMBER: _builtins.int + @_builtins.property + def stream(self) -> Global___OwnedAudioStream: ... def __init__( self, *, - stream: global___OwnedAudioStream | None = ..., + stream: Global___OwnedAudioStream | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["stream", b"stream"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["stream", b"stream"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["stream", b"stream"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["stream", b"stream"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___AudioStreamFromParticipantResponse = AudioStreamFromParticipantResponse +Global___AudioStreamFromParticipantResponse: _TypeAlias = AudioStreamFromParticipantResponse # noqa: Y015 -@typing.final -class NewAudioSourceRequest(google.protobuf.message.Message): +@_typing.final +class NewAudioSourceRequest(_message.Message): """Create a new AudioSource""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + 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 - PLATFORM_AUDIO_HANDLE_FIELD_NUMBER: builtins.int - type: global___AudioSourceType.ValueType - sample_rate: builtins.int + 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 + PLATFORM_AUDIO_HANDLE_FIELD_NUMBER: _builtins.int + type: Global___AudioSourceType.ValueType + sample_rate: _builtins.int """Sample rate in Hz. Optional - defaults to 48000 if not specified. For AudioSourcePlatform: ignored, ADM uses hardware native sample rate. For AudioSourceNative with queue_size_ms=0 (fast path): ignored, frame values used directly. """ - num_channels: builtins.int + num_channels: _builtins.int """Number of audio channels. Optional - defaults to 1 (mono) if not specified. For AudioSourcePlatform: ignored, ADM uses hardware native channels. For AudioSourceNative with queue_size_ms=0 (fast path): ignored, frame values used directly. """ - queue_size_ms: builtins.int - platform_audio_handle: builtins.int + queue_size_ms: _builtins.int + platform_audio_handle: _builtins.int """For AudioSourcePlatform: the PlatformAudio handle to configure audio processing on. If provided with options, audio processing will be configured on the PlatformAudio. """ - @property - def options(self) -> global___AudioSourceOptions: ... + @_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 = ..., - platform_audio_handle: 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 = ..., + platform_audio_handle: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["num_channels", b"num_channels", "options", b"options", "platform_audio_handle", b"platform_audio_handle", "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", "platform_audio_handle", b"platform_audio_handle", "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", "platform_audio_handle", b"platform_audio_handle", "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", "platform_audio_handle", b"platform_audio_handle", "queue_size_ms", b"queue_size_ms", "sample_rate", b"sample_rate", "type", b"type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___NewAudioSourceRequest = NewAudioSourceRequest +Global___NewAudioSourceRequest: _TypeAlias = NewAudioSourceRequest # noqa: Y015 -@typing.final -class NewAudioSourceResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class NewAudioSourceResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - SOURCE_FIELD_NUMBER: builtins.int - @property - def source(self) -> global___OwnedAudioSource: ... + SOURCE_FIELD_NUMBER: _builtins.int + @_builtins.property + def source(self) -> Global___OwnedAudioSource: ... def __init__( self, *, - source: global___OwnedAudioSource | None = ..., + source: Global___OwnedAudioSource | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["source", b"source"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["source", b"source"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["source", b"source"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["source", b"source"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___NewAudioSourceResponse = NewAudioSourceResponse +Global___NewAudioSourceResponse: _TypeAlias = NewAudioSourceResponse # noqa: Y015 -@typing.final -class CaptureAudioFrameRequest(google.protobuf.message.Message): +@_typing.final +class CaptureAudioFrameRequest(_message.Message): """Push a frame to an AudioSource The data provided must be available as long as the client receive the callback. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - SOURCE_HANDLE_FIELD_NUMBER: builtins.int - BUFFER_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - source_handle: builtins.int - request_async_id: builtins.int - @property - def buffer(self) -> global___AudioFrameBufferInfo: ... + SOURCE_HANDLE_FIELD_NUMBER: _builtins.int + BUFFER_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + source_handle: _builtins.int + request_async_id: _builtins.int + @_builtins.property + def buffer(self) -> Global___AudioFrameBufferInfo: ... def __init__( self, *, - source_handle: builtins.int | None = ..., - buffer: global___AudioFrameBufferInfo | None = ..., - request_async_id: builtins.int | None = ..., + source_handle: _builtins.int | None = ..., + buffer: Global___AudioFrameBufferInfo | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["buffer", b"buffer", "request_async_id", b"request_async_id", "source_handle", b"source_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["buffer", b"buffer", "request_async_id", b"request_async_id", "source_handle", b"source_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "request_async_id", b"request_async_id", "source_handle", b"source_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "request_async_id", b"request_async_id", "source_handle", b"source_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___CaptureAudioFrameRequest = CaptureAudioFrameRequest +Global___CaptureAudioFrameRequest: _TypeAlias = CaptureAudioFrameRequest # noqa: Y015 -@typing.final -class CaptureAudioFrameResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class CaptureAudioFrameResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... - -global___CaptureAudioFrameResponse = CaptureAudioFrameResponse - -@typing.final -class CaptureAudioFrameCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___CaptureAudioFrameResponse: _TypeAlias = CaptureAudioFrameResponse # noqa: Y015 + +@_typing.final +class CaptureAudioFrameCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str def __init__( self, *, - async_id: builtins.int | None = ..., - error: builtins.str | None = ..., + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___CaptureAudioFrameCallback = CaptureAudioFrameCallback +Global___CaptureAudioFrameCallback: _TypeAlias = CaptureAudioFrameCallback # noqa: Y015 -@typing.final -class ClearAudioBufferRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ClearAudioBufferRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - SOURCE_HANDLE_FIELD_NUMBER: builtins.int - source_handle: builtins.int + SOURCE_HANDLE_FIELD_NUMBER: _builtins.int + source_handle: _builtins.int def __init__( self, *, - source_handle: builtins.int | None = ..., + source_handle: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["source_handle", b"source_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["source_handle", b"source_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["source_handle", b"source_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["source_handle", b"source_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ClearAudioBufferRequest = ClearAudioBufferRequest +Global___ClearAudioBufferRequest: _TypeAlias = ClearAudioBufferRequest # noqa: Y015 -@typing.final -class ClearAudioBufferResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ClearAudioBufferResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ClearAudioBufferResponse = ClearAudioBufferResponse +Global___ClearAudioBufferResponse: _TypeAlias = ClearAudioBufferResponse # noqa: Y015 -@typing.final -class NewAudioResamplerRequest(google.protobuf.message.Message): +@_typing.final +class NewAudioResamplerRequest(_message.Message): """Create a new AudioResampler""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___NewAudioResamplerRequest = NewAudioResamplerRequest +Global___NewAudioResamplerRequest: _TypeAlias = NewAudioResamplerRequest # noqa: Y015 -@typing.final -class NewAudioResamplerResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class NewAudioResamplerResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - RESAMPLER_FIELD_NUMBER: builtins.int - @property - def resampler(self) -> global___OwnedAudioResampler: ... + RESAMPLER_FIELD_NUMBER: _builtins.int + @_builtins.property + def resampler(self) -> Global___OwnedAudioResampler: ... def __init__( self, *, - resampler: global___OwnedAudioResampler | None = ..., + resampler: Global___OwnedAudioResampler | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["resampler", b"resampler"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["resampler", b"resampler"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["resampler", b"resampler"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["resampler", b"resampler"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___NewAudioResamplerResponse = NewAudioResamplerResponse +Global___NewAudioResamplerResponse: _TypeAlias = NewAudioResamplerResponse # noqa: Y015 -@typing.final -class RemixAndResampleRequest(google.protobuf.message.Message): +@_typing.final +class RemixAndResampleRequest(_message.Message): """Remix and resample an audio frame""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RESAMPLER_HANDLE_FIELD_NUMBER: builtins.int - BUFFER_FIELD_NUMBER: builtins.int - NUM_CHANNELS_FIELD_NUMBER: builtins.int - SAMPLE_RATE_FIELD_NUMBER: builtins.int - resampler_handle: builtins.int - num_channels: builtins.int - sample_rate: builtins.int - @property - def buffer(self) -> global___AudioFrameBufferInfo: ... + DESCRIPTOR: _descriptor.Descriptor + + RESAMPLER_HANDLE_FIELD_NUMBER: _builtins.int + BUFFER_FIELD_NUMBER: _builtins.int + NUM_CHANNELS_FIELD_NUMBER: _builtins.int + SAMPLE_RATE_FIELD_NUMBER: _builtins.int + resampler_handle: _builtins.int + num_channels: _builtins.int + sample_rate: _builtins.int + @_builtins.property + def buffer(self) -> Global___AudioFrameBufferInfo: ... def __init__( self, *, - resampler_handle: builtins.int | None = ..., - buffer: global___AudioFrameBufferInfo | None = ..., - num_channels: builtins.int | None = ..., - sample_rate: builtins.int | None = ..., + resampler_handle: _builtins.int | None = ..., + buffer: Global___AudioFrameBufferInfo | None = ..., + num_channels: _builtins.int | None = ..., + sample_rate: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["buffer", b"buffer", "num_channels", b"num_channels", "resampler_handle", b"resampler_handle", "sample_rate", b"sample_rate"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["buffer", b"buffer", "num_channels", b"num_channels", "resampler_handle", b"resampler_handle", "sample_rate", b"sample_rate"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "num_channels", b"num_channels", "resampler_handle", b"resampler_handle", "sample_rate", b"sample_rate"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "num_channels", b"num_channels", "resampler_handle", b"resampler_handle", "sample_rate", b"sample_rate"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RemixAndResampleRequest = RemixAndResampleRequest +Global___RemixAndResampleRequest: _TypeAlias = RemixAndResampleRequest # noqa: Y015 -@typing.final -class RemixAndResampleResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class RemixAndResampleResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - BUFFER_FIELD_NUMBER: builtins.int - @property - def buffer(self) -> global___OwnedAudioFrameBuffer: ... + BUFFER_FIELD_NUMBER: _builtins.int + @_builtins.property + def buffer(self) -> Global___OwnedAudioFrameBuffer: ... def __init__( self, *, - buffer: global___OwnedAudioFrameBuffer | None = ..., + buffer: Global___OwnedAudioFrameBuffer | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["buffer", b"buffer"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["buffer", b"buffer"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RemixAndResampleResponse = RemixAndResampleResponse +Global___RemixAndResampleResponse: _TypeAlias = RemixAndResampleResponse # noqa: Y015 -@typing.final -class NewApmRequest(google.protobuf.message.Message): +@_typing.final +class NewApmRequest(_message.Message): """AEC""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - ECHO_CANCELLER_ENABLED_FIELD_NUMBER: builtins.int - GAIN_CONTROLLER_ENABLED_FIELD_NUMBER: builtins.int - HIGH_PASS_FILTER_ENABLED_FIELD_NUMBER: builtins.int - NOISE_SUPPRESSION_ENABLED_FIELD_NUMBER: builtins.int - echo_canceller_enabled: builtins.bool - gain_controller_enabled: builtins.bool - high_pass_filter_enabled: builtins.bool - noise_suppression_enabled: builtins.bool + ECHO_CANCELLER_ENABLED_FIELD_NUMBER: _builtins.int + GAIN_CONTROLLER_ENABLED_FIELD_NUMBER: _builtins.int + HIGH_PASS_FILTER_ENABLED_FIELD_NUMBER: _builtins.int + NOISE_SUPPRESSION_ENABLED_FIELD_NUMBER: _builtins.int + echo_canceller_enabled: _builtins.bool + gain_controller_enabled: _builtins.bool + high_pass_filter_enabled: _builtins.bool + noise_suppression_enabled: _builtins.bool def __init__( self, *, - echo_canceller_enabled: builtins.bool | None = ..., - gain_controller_enabled: builtins.bool | None = ..., - high_pass_filter_enabled: builtins.bool | None = ..., - noise_suppression_enabled: builtins.bool | None = ..., + echo_canceller_enabled: _builtins.bool | None = ..., + gain_controller_enabled: _builtins.bool | None = ..., + high_pass_filter_enabled: _builtins.bool | None = ..., + noise_suppression_enabled: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["echo_canceller_enabled", b"echo_canceller_enabled", "gain_controller_enabled", b"gain_controller_enabled", "high_pass_filter_enabled", b"high_pass_filter_enabled", "noise_suppression_enabled", b"noise_suppression_enabled"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["echo_canceller_enabled", b"echo_canceller_enabled", "gain_controller_enabled", b"gain_controller_enabled", "high_pass_filter_enabled", b"high_pass_filter_enabled", "noise_suppression_enabled", b"noise_suppression_enabled"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["echo_canceller_enabled", b"echo_canceller_enabled", "gain_controller_enabled", b"gain_controller_enabled", "high_pass_filter_enabled", b"high_pass_filter_enabled", "noise_suppression_enabled", b"noise_suppression_enabled"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["echo_canceller_enabled", b"echo_canceller_enabled", "gain_controller_enabled", b"gain_controller_enabled", "high_pass_filter_enabled", b"high_pass_filter_enabled", "noise_suppression_enabled", b"noise_suppression_enabled"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___NewApmRequest = NewApmRequest +Global___NewApmRequest: _TypeAlias = NewApmRequest # noqa: Y015 -@typing.final -class NewApmResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class NewApmResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - APM_FIELD_NUMBER: builtins.int - @property - def apm(self) -> global___OwnedApm: ... + APM_FIELD_NUMBER: _builtins.int + @_builtins.property + def apm(self) -> Global___OwnedApm: ... def __init__( self, *, - apm: global___OwnedApm | None = ..., + apm: Global___OwnedApm | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["apm", b"apm"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["apm", b"apm"]) -> None: ... - -global___NewApmResponse = NewApmResponse - -@typing.final -class ApmProcessStreamRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - APM_HANDLE_FIELD_NUMBER: builtins.int - DATA_PTR_FIELD_NUMBER: builtins.int - SIZE_FIELD_NUMBER: builtins.int - SAMPLE_RATE_FIELD_NUMBER: builtins.int - NUM_CHANNELS_FIELD_NUMBER: builtins.int - apm_handle: builtins.int - data_ptr: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["apm", b"apm"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["apm", b"apm"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___NewApmResponse: _TypeAlias = NewApmResponse # noqa: Y015 + +@_typing.final +class ApmProcessStreamRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + APM_HANDLE_FIELD_NUMBER: _builtins.int + DATA_PTR_FIELD_NUMBER: _builtins.int + SIZE_FIELD_NUMBER: _builtins.int + SAMPLE_RATE_FIELD_NUMBER: _builtins.int + NUM_CHANNELS_FIELD_NUMBER: _builtins.int + apm_handle: _builtins.int + data_ptr: _builtins.int """*mut i16""" - size: builtins.int + size: _builtins.int """in bytes""" - sample_rate: builtins.int - num_channels: builtins.int + sample_rate: _builtins.int + num_channels: _builtins.int def __init__( self, *, - apm_handle: builtins.int | None = ..., - data_ptr: builtins.int | None = ..., - size: builtins.int | None = ..., - sample_rate: builtins.int | None = ..., - num_channels: builtins.int | None = ..., + apm_handle: _builtins.int | None = ..., + data_ptr: _builtins.int | None = ..., + size: _builtins.int | None = ..., + sample_rate: _builtins.int | None = ..., + num_channels: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["apm_handle", b"apm_handle", "data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "size", b"size"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["apm_handle", b"apm_handle", "data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "size", b"size"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["apm_handle", b"apm_handle", "data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "size", b"size"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["apm_handle", b"apm_handle", "data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "size", b"size"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ApmProcessStreamRequest = ApmProcessStreamRequest +Global___ApmProcessStreamRequest: _TypeAlias = ApmProcessStreamRequest # noqa: Y015 -@typing.final -class ApmProcessStreamResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ApmProcessStreamResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ERROR_FIELD_NUMBER: builtins.int - error: builtins.str + ERROR_FIELD_NUMBER: _builtins.int + error: _builtins.str def __init__( self, *, - error: builtins.str | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["error", b"error"]) -> None: ... - -global___ApmProcessStreamResponse = ApmProcessStreamResponse - -@typing.final -class ApmProcessReverseStreamRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - APM_HANDLE_FIELD_NUMBER: builtins.int - DATA_PTR_FIELD_NUMBER: builtins.int - SIZE_FIELD_NUMBER: builtins.int - SAMPLE_RATE_FIELD_NUMBER: builtins.int - NUM_CHANNELS_FIELD_NUMBER: builtins.int - apm_handle: builtins.int - data_ptr: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___ApmProcessStreamResponse: _TypeAlias = ApmProcessStreamResponse # noqa: Y015 + +@_typing.final +class ApmProcessReverseStreamRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + APM_HANDLE_FIELD_NUMBER: _builtins.int + DATA_PTR_FIELD_NUMBER: _builtins.int + SIZE_FIELD_NUMBER: _builtins.int + SAMPLE_RATE_FIELD_NUMBER: _builtins.int + NUM_CHANNELS_FIELD_NUMBER: _builtins.int + apm_handle: _builtins.int + data_ptr: _builtins.int """*mut i16""" - size: builtins.int + size: _builtins.int """in bytes""" - sample_rate: builtins.int - num_channels: builtins.int + sample_rate: _builtins.int + num_channels: _builtins.int def __init__( self, *, - apm_handle: builtins.int | None = ..., - data_ptr: builtins.int | None = ..., - size: builtins.int | None = ..., - sample_rate: builtins.int | None = ..., - num_channels: builtins.int | None = ..., + apm_handle: _builtins.int | None = ..., + data_ptr: _builtins.int | None = ..., + size: _builtins.int | None = ..., + sample_rate: _builtins.int | None = ..., + num_channels: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["apm_handle", b"apm_handle", "data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "size", b"size"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["apm_handle", b"apm_handle", "data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "size", b"size"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["apm_handle", b"apm_handle", "data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "size", b"size"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["apm_handle", b"apm_handle", "data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "size", b"size"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ApmProcessReverseStreamRequest = ApmProcessReverseStreamRequest +Global___ApmProcessReverseStreamRequest: _TypeAlias = ApmProcessReverseStreamRequest # noqa: Y015 -@typing.final -class ApmProcessReverseStreamResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ApmProcessReverseStreamResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ERROR_FIELD_NUMBER: builtins.int - error: builtins.str + ERROR_FIELD_NUMBER: _builtins.int + error: _builtins.str def __init__( self, *, - error: builtins.str | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["error", b"error"]) -> None: ... - -global___ApmProcessReverseStreamResponse = ApmProcessReverseStreamResponse - -@typing.final -class ApmSetStreamDelayRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - APM_HANDLE_FIELD_NUMBER: builtins.int - DELAY_MS_FIELD_NUMBER: builtins.int - apm_handle: builtins.int - delay_ms: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___ApmProcessReverseStreamResponse: _TypeAlias = ApmProcessReverseStreamResponse # noqa: Y015 + +@_typing.final +class ApmSetStreamDelayRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + APM_HANDLE_FIELD_NUMBER: _builtins.int + DELAY_MS_FIELD_NUMBER: _builtins.int + apm_handle: _builtins.int + delay_ms: _builtins.int def __init__( self, *, - apm_handle: builtins.int | None = ..., - delay_ms: builtins.int | None = ..., + apm_handle: _builtins.int | None = ..., + delay_ms: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["apm_handle", b"apm_handle", "delay_ms", b"delay_ms"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["apm_handle", b"apm_handle", "delay_ms", b"delay_ms"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["apm_handle", b"apm_handle", "delay_ms", b"delay_ms"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["apm_handle", b"apm_handle", "delay_ms", b"delay_ms"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ApmSetStreamDelayRequest = ApmSetStreamDelayRequest +Global___ApmSetStreamDelayRequest: _TypeAlias = ApmSetStreamDelayRequest # noqa: Y015 -@typing.final -class ApmSetStreamDelayResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ApmSetStreamDelayResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ERROR_FIELD_NUMBER: builtins.int - error: builtins.str + ERROR_FIELD_NUMBER: _builtins.int + error: _builtins.str def __init__( self, *, - error: builtins.str | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ApmSetStreamDelayResponse = ApmSetStreamDelayResponse +Global___ApmSetStreamDelayResponse: _TypeAlias = ApmSetStreamDelayResponse # noqa: Y015 -@typing.final -class NewSoxResamplerRequest(google.protobuf.message.Message): +@_typing.final +class NewSoxResamplerRequest(_message.Message): """New resampler using SoX (much better quality)""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - INPUT_RATE_FIELD_NUMBER: builtins.int - OUTPUT_RATE_FIELD_NUMBER: builtins.int - NUM_CHANNELS_FIELD_NUMBER: builtins.int - INPUT_DATA_TYPE_FIELD_NUMBER: builtins.int - OUTPUT_DATA_TYPE_FIELD_NUMBER: builtins.int - QUALITY_RECIPE_FIELD_NUMBER: builtins.int - FLAGS_FIELD_NUMBER: builtins.int - input_rate: builtins.float - output_rate: builtins.float - num_channels: builtins.int - input_data_type: global___SoxResamplerDataType.ValueType - output_data_type: global___SoxResamplerDataType.ValueType - quality_recipe: global___SoxQualityRecipe.ValueType - flags: builtins.int + DESCRIPTOR: _descriptor.Descriptor + + INPUT_RATE_FIELD_NUMBER: _builtins.int + OUTPUT_RATE_FIELD_NUMBER: _builtins.int + NUM_CHANNELS_FIELD_NUMBER: _builtins.int + INPUT_DATA_TYPE_FIELD_NUMBER: _builtins.int + OUTPUT_DATA_TYPE_FIELD_NUMBER: _builtins.int + QUALITY_RECIPE_FIELD_NUMBER: _builtins.int + FLAGS_FIELD_NUMBER: _builtins.int + input_rate: _builtins.float + output_rate: _builtins.float + num_channels: _builtins.int + input_data_type: Global___SoxResamplerDataType.ValueType + output_data_type: Global___SoxResamplerDataType.ValueType + quality_recipe: Global___SoxQualityRecipe.ValueType + flags: _builtins.int def __init__( self, *, - input_rate: builtins.float | None = ..., - output_rate: builtins.float | None = ..., - num_channels: builtins.int | None = ..., - input_data_type: global___SoxResamplerDataType.ValueType | None = ..., - output_data_type: global___SoxResamplerDataType.ValueType | None = ..., - quality_recipe: global___SoxQualityRecipe.ValueType | None = ..., - flags: builtins.int | None = ..., + input_rate: _builtins.float | None = ..., + output_rate: _builtins.float | None = ..., + num_channels: _builtins.int | None = ..., + input_data_type: Global___SoxResamplerDataType.ValueType | None = ..., + output_data_type: Global___SoxResamplerDataType.ValueType | None = ..., + quality_recipe: Global___SoxQualityRecipe.ValueType | None = ..., + flags: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["flags", b"flags", "input_data_type", b"input_data_type", "input_rate", b"input_rate", "num_channels", b"num_channels", "output_data_type", b"output_data_type", "output_rate", b"output_rate", "quality_recipe", b"quality_recipe"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["flags", b"flags", "input_data_type", b"input_data_type", "input_rate", b"input_rate", "num_channels", b"num_channels", "output_data_type", b"output_data_type", "output_rate", b"output_rate", "quality_recipe", b"quality_recipe"]) -> None: ... - -global___NewSoxResamplerRequest = NewSoxResamplerRequest - -@typing.final -class NewSoxResamplerResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RESAMPLER_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - error: builtins.str - @property - def resampler(self) -> global___OwnedSoxResampler: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["flags", b"flags", "input_data_type", b"input_data_type", "input_rate", b"input_rate", "num_channels", b"num_channels", "output_data_type", b"output_data_type", "output_rate", b"output_rate", "quality_recipe", b"quality_recipe"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["flags", b"flags", "input_data_type", b"input_data_type", "input_rate", b"input_rate", "num_channels", b"num_channels", "output_data_type", b"output_data_type", "output_rate", b"output_rate", "quality_recipe", b"quality_recipe"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___NewSoxResamplerRequest: _TypeAlias = NewSoxResamplerRequest # noqa: Y015 + +@_typing.final +class NewSoxResamplerResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RESAMPLER_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + error: _builtins.str + @_builtins.property + def resampler(self) -> Global___OwnedSoxResampler: ... def __init__( self, *, - resampler: global___OwnedSoxResampler | None = ..., - error: builtins.str | None = ..., + resampler: Global___OwnedSoxResampler | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["error", b"error", "message", b"message", "resampler", b"resampler"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["error", b"error", "message", b"message", "resampler", b"resampler"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["resampler", "error"] | None: ... - -global___NewSoxResamplerResponse = NewSoxResamplerResponse - -@typing.final -class PushSoxResamplerRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RESAMPLER_HANDLE_FIELD_NUMBER: builtins.int - DATA_PTR_FIELD_NUMBER: builtins.int - SIZE_FIELD_NUMBER: builtins.int - resampler_handle: builtins.int - data_ptr: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "message", b"message", "resampler", b"resampler"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "message", b"message", "resampler", b"resampler"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["resampler", "error"] # noqa: Y015 + _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... + +Global___NewSoxResamplerResponse: _TypeAlias = NewSoxResamplerResponse # noqa: Y015 + +@_typing.final +class PushSoxResamplerRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RESAMPLER_HANDLE_FIELD_NUMBER: _builtins.int + DATA_PTR_FIELD_NUMBER: _builtins.int + SIZE_FIELD_NUMBER: _builtins.int + resampler_handle: _builtins.int + data_ptr: _builtins.int """*const i16""" - size: builtins.int + size: _builtins.int """in bytes""" def __init__( self, *, - resampler_handle: builtins.int | None = ..., - data_ptr: builtins.int | None = ..., - size: builtins.int | None = ..., + resampler_handle: _builtins.int | None = ..., + data_ptr: _builtins.int | None = ..., + size: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["data_ptr", b"data_ptr", "resampler_handle", b"resampler_handle", "size", b"size"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["data_ptr", b"data_ptr", "resampler_handle", b"resampler_handle", "size", b"size"]) -> None: ... - -global___PushSoxResamplerRequest = PushSoxResamplerRequest - -@typing.final -class PushSoxResamplerResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - OUTPUT_PTR_FIELD_NUMBER: builtins.int - SIZE_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - output_ptr: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["data_ptr", b"data_ptr", "resampler_handle", b"resampler_handle", "size", b"size"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["data_ptr", b"data_ptr", "resampler_handle", b"resampler_handle", "size", b"size"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___PushSoxResamplerRequest: _TypeAlias = PushSoxResamplerRequest # noqa: Y015 + +@_typing.final +class PushSoxResamplerResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + OUTPUT_PTR_FIELD_NUMBER: _builtins.int + SIZE_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + output_ptr: _builtins.int """*const i16 (could be null)""" - size: builtins.int + size: _builtins.int """in bytes""" - error: builtins.str + error: _builtins.str def __init__( self, *, - output_ptr: builtins.int | None = ..., - size: builtins.int | None = ..., - error: builtins.str | None = ..., + output_ptr: _builtins.int | None = ..., + size: _builtins.int | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["error", b"error", "output_ptr", b"output_ptr", "size", b"size"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["error", b"error", "output_ptr", b"output_ptr", "size", b"size"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "output_ptr", b"output_ptr", "size", b"size"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "output_ptr", b"output_ptr", "size", b"size"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___PushSoxResamplerResponse = PushSoxResamplerResponse +Global___PushSoxResamplerResponse: _TypeAlias = PushSoxResamplerResponse # noqa: Y015 -@typing.final -class FlushSoxResamplerRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FlushSoxResamplerRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - RESAMPLER_HANDLE_FIELD_NUMBER: builtins.int - resampler_handle: builtins.int + RESAMPLER_HANDLE_FIELD_NUMBER: _builtins.int + resampler_handle: _builtins.int def __init__( self, *, - resampler_handle: builtins.int | None = ..., + resampler_handle: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["resampler_handle", b"resampler_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["resampler_handle", b"resampler_handle"]) -> None: ... - -global___FlushSoxResamplerRequest = FlushSoxResamplerRequest - -@typing.final -class FlushSoxResamplerResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - OUTPUT_PTR_FIELD_NUMBER: builtins.int - SIZE_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - output_ptr: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["resampler_handle", b"resampler_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["resampler_handle", b"resampler_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___FlushSoxResamplerRequest: _TypeAlias = FlushSoxResamplerRequest # noqa: Y015 + +@_typing.final +class FlushSoxResamplerResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + OUTPUT_PTR_FIELD_NUMBER: _builtins.int + SIZE_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + output_ptr: _builtins.int """*const i16 (could be null)""" - size: builtins.int + size: _builtins.int """in bytes""" - error: builtins.str + error: _builtins.str def __init__( self, *, - output_ptr: builtins.int | None = ..., - size: builtins.int | None = ..., - error: builtins.str | None = ..., + output_ptr: _builtins.int | None = ..., + size: _builtins.int | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["error", b"error", "output_ptr", b"output_ptr", "size", b"size"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["error", b"error", "output_ptr", b"output_ptr", "size", b"size"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "output_ptr", b"output_ptr", "size", b"size"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "output_ptr", b"output_ptr", "size", b"size"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___FlushSoxResamplerResponse = FlushSoxResamplerResponse +Global___FlushSoxResamplerResponse: _TypeAlias = FlushSoxResamplerResponse # noqa: Y015 -@typing.final -class AudioFrameBufferInfo(google.protobuf.message.Message): +@_typing.final +class AudioFrameBufferInfo(_message.Message): """ AudioFrame buffer """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - DATA_PTR_FIELD_NUMBER: builtins.int - NUM_CHANNELS_FIELD_NUMBER: builtins.int - SAMPLE_RATE_FIELD_NUMBER: builtins.int - SAMPLES_PER_CHANNEL_FIELD_NUMBER: builtins.int - data_ptr: builtins.int + DATA_PTR_FIELD_NUMBER: _builtins.int + NUM_CHANNELS_FIELD_NUMBER: _builtins.int + SAMPLE_RATE_FIELD_NUMBER: _builtins.int + SAMPLES_PER_CHANNEL_FIELD_NUMBER: _builtins.int + data_ptr: _builtins.int """*const i16""" - num_channels: builtins.int - sample_rate: builtins.int - samples_per_channel: builtins.int + num_channels: _builtins.int + sample_rate: _builtins.int + samples_per_channel: _builtins.int def __init__( self, *, - data_ptr: builtins.int | None = ..., - num_channels: builtins.int | None = ..., - sample_rate: builtins.int | None = ..., - samples_per_channel: builtins.int | None = ..., + data_ptr: _builtins.int | None = ..., + num_channels: _builtins.int | None = ..., + sample_rate: _builtins.int | None = ..., + samples_per_channel: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "samples_per_channel", b"samples_per_channel"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "samples_per_channel", b"samples_per_channel"]) -> None: ... - -global___AudioFrameBufferInfo = AudioFrameBufferInfo - -@typing.final -class OwnedAudioFrameBuffer(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___AudioFrameBufferInfo: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "samples_per_channel", b"samples_per_channel"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "samples_per_channel", b"samples_per_channel"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___AudioFrameBufferInfo: _TypeAlias = AudioFrameBufferInfo # noqa: Y015 + +@_typing.final +class OwnedAudioFrameBuffer(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___AudioFrameBufferInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___AudioFrameBufferInfo | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___AudioFrameBufferInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___OwnedAudioFrameBuffer = OwnedAudioFrameBuffer +Global___OwnedAudioFrameBuffer: _TypeAlias = OwnedAudioFrameBuffer # noqa: Y015 -@typing.final -class AudioStreamInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class AudioStreamInfo(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - TYPE_FIELD_NUMBER: builtins.int - type: global___AudioStreamType.ValueType + TYPE_FIELD_NUMBER: _builtins.int + type: Global___AudioStreamType.ValueType def __init__( self, *, - type: global___AudioStreamType.ValueType | None = ..., + type: Global___AudioStreamType.ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["type", b"type"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["type", b"type"]) -> None: ... - -global___AudioStreamInfo = AudioStreamInfo - -@typing.final -class OwnedAudioStream(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___AudioStreamInfo: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["type", b"type"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["type", b"type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___AudioStreamInfo: _TypeAlias = AudioStreamInfo # noqa: Y015 + +@_typing.final +class OwnedAudioStream(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___AudioStreamInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___AudioStreamInfo | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___AudioStreamInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... - -global___OwnedAudioStream = OwnedAudioStream - -@typing.final -class AudioStreamEvent(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - STREAM_HANDLE_FIELD_NUMBER: builtins.int - FRAME_RECEIVED_FIELD_NUMBER: builtins.int - EOS_FIELD_NUMBER: builtins.int - stream_handle: builtins.int - @property - def frame_received(self) -> global___AudioFrameReceived: ... - @property - def eos(self) -> global___AudioStreamEOS: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___OwnedAudioStream: _TypeAlias = OwnedAudioStream # noqa: Y015 + +@_typing.final +class AudioStreamEvent(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + STREAM_HANDLE_FIELD_NUMBER: _builtins.int + FRAME_RECEIVED_FIELD_NUMBER: _builtins.int + EOS_FIELD_NUMBER: _builtins.int + stream_handle: _builtins.int + @_builtins.property + def frame_received(self) -> Global___AudioFrameReceived: ... + @_builtins.property + def eos(self) -> Global___AudioStreamEOS: ... def __init__( self, *, - stream_handle: builtins.int | None = ..., - frame_received: global___AudioFrameReceived | None = ..., - eos: global___AudioStreamEOS | None = ..., + stream_handle: _builtins.int | None = ..., + frame_received: Global___AudioFrameReceived | None = ..., + eos: Global___AudioStreamEOS | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["eos", b"eos", "frame_received", b"frame_received", "message", b"message", "stream_handle", b"stream_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["eos", b"eos", "frame_received", b"frame_received", "message", b"message", "stream_handle", b"stream_handle"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["frame_received", "eos"] | None: ... - -global___AudioStreamEvent = AudioStreamEvent - -@typing.final -class AudioFrameReceived(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - FRAME_FIELD_NUMBER: builtins.int - @property - def frame(self) -> global___OwnedAudioFrameBuffer: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["eos", b"eos", "frame_received", b"frame_received", "message", b"message", "stream_handle", b"stream_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["eos", b"eos", "frame_received", b"frame_received", "message", b"message", "stream_handle", b"stream_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["frame_received", "eos"] # noqa: Y015 + _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... + +Global___AudioStreamEvent: _TypeAlias = AudioStreamEvent # noqa: Y015 + +@_typing.final +class AudioFrameReceived(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + FRAME_FIELD_NUMBER: _builtins.int + @_builtins.property + def frame(self) -> Global___OwnedAudioFrameBuffer: ... def __init__( self, *, - frame: global___OwnedAudioFrameBuffer | None = ..., + frame: Global___OwnedAudioFrameBuffer | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["frame", b"frame"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["frame", b"frame"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["frame", b"frame"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["frame", b"frame"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___AudioFrameReceived = AudioFrameReceived +Global___AudioFrameReceived: _TypeAlias = AudioFrameReceived # noqa: Y015 -@typing.final -class AudioStreamEOS(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class AudioStreamEOS(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___AudioStreamEOS = AudioStreamEOS +Global___AudioStreamEOS: _TypeAlias = AudioStreamEOS # noqa: Y015 -@typing.final -class AudioSourceOptions(google.protobuf.message.Message): +@_typing.final +class AudioSourceOptions(_message.Message): """ AudioSource """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - ECHO_CANCELLATION_FIELD_NUMBER: builtins.int - NOISE_SUPPRESSION_FIELD_NUMBER: builtins.int - AUTO_GAIN_CONTROL_FIELD_NUMBER: builtins.int - PREFER_HARDWARE_FIELD_NUMBER: builtins.int - echo_cancellation: builtins.bool - noise_suppression: builtins.bool - auto_gain_control: builtins.bool - prefer_hardware: builtins.bool + ECHO_CANCELLATION_FIELD_NUMBER: _builtins.int + NOISE_SUPPRESSION_FIELD_NUMBER: _builtins.int + AUTO_GAIN_CONTROL_FIELD_NUMBER: _builtins.int + PREFER_HARDWARE_FIELD_NUMBER: _builtins.int + echo_cancellation: _builtins.bool + noise_suppression: _builtins.bool + auto_gain_control: _builtins.bool + prefer_hardware: _builtins.bool """Prefer hardware audio processing (e.g., iOS VPIO). Lower latency. Only applies to AudioSourcePlatform. Default: true. """ def __init__( self, *, - echo_cancellation: builtins.bool | None = ..., - noise_suppression: builtins.bool | None = ..., - auto_gain_control: builtins.bool | None = ..., - prefer_hardware: builtins.bool | None = ..., + echo_cancellation: _builtins.bool | None = ..., + noise_suppression: _builtins.bool | None = ..., + auto_gain_control: _builtins.bool | None = ..., + prefer_hardware: _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", "prefer_hardware", b"prefer_hardware"]) -> 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", "prefer_hardware", b"prefer_hardware"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["auto_gain_control", b"auto_gain_control", "echo_cancellation", b"echo_cancellation", "noise_suppression", b"noise_suppression", "prefer_hardware", b"prefer_hardware"] # 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", "prefer_hardware", b"prefer_hardware"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___AudioSourceOptions = AudioSourceOptions +Global___AudioSourceOptions: _TypeAlias = AudioSourceOptions # noqa: Y015 -@typing.final -class AudioSourceInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class AudioSourceInfo(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - TYPE_FIELD_NUMBER: builtins.int - type: global___AudioSourceType.ValueType + TYPE_FIELD_NUMBER: _builtins.int + type: Global___AudioSourceType.ValueType def __init__( self, *, - type: global___AudioSourceType.ValueType | None = ..., + type: Global___AudioSourceType.ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["type", b"type"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["type", b"type"]) -> None: ... - -global___AudioSourceInfo = AudioSourceInfo - -@typing.final -class OwnedAudioSource(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___AudioSourceInfo: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["type", b"type"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["type", b"type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___AudioSourceInfo: _TypeAlias = AudioSourceInfo # noqa: Y015 + +@_typing.final +class OwnedAudioSource(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___AudioSourceInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___AudioSourceInfo | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___AudioSourceInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___OwnedAudioSource = OwnedAudioSource +Global___OwnedAudioSource: _TypeAlias = OwnedAudioSource # noqa: Y015 -@typing.final -class AudioResamplerInfo(google.protobuf.message.Message): +@_typing.final +class AudioResamplerInfo(_message.Message): """ AudioResampler """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... - -global___AudioResamplerInfo = AudioResamplerInfo - -@typing.final -class OwnedAudioResampler(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___AudioResamplerInfo: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___AudioResamplerInfo: _TypeAlias = AudioResamplerInfo # noqa: Y015 + +@_typing.final +class OwnedAudioResampler(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___AudioResamplerInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___AudioResamplerInfo | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___AudioResamplerInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___OwnedAudioResampler = OwnedAudioResampler +Global___OwnedAudioResampler: _TypeAlias = OwnedAudioResampler # noqa: Y015 -@typing.final -class OwnedApm(google.protobuf.message.Message): +@_typing.final +class OwnedApm(_message.Message): """ AEC """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - HANDLE_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... + HANDLE_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___OwnedApm = OwnedApm +Global___OwnedApm: _TypeAlias = OwnedApm # noqa: Y015 -@typing.final -class SoxResamplerInfo(google.protobuf.message.Message): +@_typing.final +class SoxResamplerInfo(_message.Message): """ Sox AudioResampler """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... - -global___SoxResamplerInfo = SoxResamplerInfo - -@typing.final -class OwnedSoxResampler(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___SoxResamplerInfo: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___SoxResamplerInfo: _TypeAlias = SoxResamplerInfo # noqa: Y015 + +@_typing.final +class OwnedSoxResampler(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___SoxResamplerInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___SoxResamplerInfo | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___SoxResamplerInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___OwnedSoxResampler = OwnedSoxResampler +Global___OwnedSoxResampler: _TypeAlias = OwnedSoxResampler # noqa: Y015 -@typing.final -class LoadAudioFilterPluginRequest(google.protobuf.message.Message): +@_typing.final +class LoadAudioFilterPluginRequest(_message.Message): """Audio Filter Plugin""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - PLUGIN_PATH_FIELD_NUMBER: builtins.int - DEPENDENCIES_FIELD_NUMBER: builtins.int - MODULE_ID_FIELD_NUMBER: builtins.int - plugin_path: builtins.str + PLUGIN_PATH_FIELD_NUMBER: _builtins.int + DEPENDENCIES_FIELD_NUMBER: _builtins.int + MODULE_ID_FIELD_NUMBER: _builtins.int + plugin_path: _builtins.str """path for ffi audio filter plugin""" - module_id: builtins.str + module_id: _builtins.str """Unique identifier of the plugin""" - @property - def dependencies(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + @_builtins.property + def dependencies(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: """Optional: paths for dependency dylibs""" def __init__( self, *, - plugin_path: builtins.str | None = ..., - dependencies: collections.abc.Iterable[builtins.str] | None = ..., - module_id: builtins.str | None = ..., + plugin_path: _builtins.str | None = ..., + dependencies: _abc.Iterable[_builtins.str] | None = ..., + module_id: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["module_id", b"module_id", "plugin_path", b"plugin_path"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["dependencies", b"dependencies", "module_id", b"module_id", "plugin_path", b"plugin_path"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["module_id", b"module_id", "plugin_path", b"plugin_path"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["dependencies", b"dependencies", "module_id", b"module_id", "plugin_path", b"plugin_path"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___LoadAudioFilterPluginRequest = LoadAudioFilterPluginRequest +Global___LoadAudioFilterPluginRequest: _TypeAlias = LoadAudioFilterPluginRequest # noqa: Y015 -@typing.final -class LoadAudioFilterPluginResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class LoadAudioFilterPluginResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ERROR_FIELD_NUMBER: builtins.int - error: builtins.str + ERROR_FIELD_NUMBER: _builtins.int + error: _builtins.str def __init__( self, *, - error: builtins.str | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___LoadAudioFilterPluginResponse = LoadAudioFilterPluginResponse +Global___LoadAudioFilterPluginResponse: _TypeAlias = LoadAudioFilterPluginResponse # noqa: Y015 -@typing.final -class AudioDeviceInfo(google.protobuf.message.Message): +@_typing.final +class AudioDeviceInfo(_message.Message): """ PlatformAudio - Platform audio device management via WebRTC's ADM @@ -1192,16 +1342,16 @@ class AudioDeviceInfo(google.protobuf.message.Message): Information about an audio device. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - INDEX_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - GUID_FIELD_NUMBER: builtins.int - index: builtins.int + INDEX_FIELD_NUMBER: _builtins.int + NAME_FIELD_NUMBER: _builtins.int + GUID_FIELD_NUMBER: _builtins.int + index: _builtins.int """Device index (0-based). Note: indices can change when devices are added/removed.""" - name: builtins.str + name: _builtins.str """Device name as reported by the operating system.""" - guid: builtins.str + guid: _builtins.str """Platform-specific unique device identifier (GUID). This is stable across device additions/removals and should be preferred over index for device selection. Format varies by platform: @@ -1212,63 +1362,72 @@ class AudioDeviceInfo(google.protobuf.message.Message): def __init__( self, *, - index: builtins.int | None = ..., - name: builtins.str | None = ..., - guid: builtins.str | None = ..., + index: _builtins.int | None = ..., + name: _builtins.str | None = ..., + guid: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["guid", b"guid", "index", b"index", "name", b"name"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["guid", b"guid", "index", b"index", "name", b"name"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["guid", b"guid", "index", b"index", "name", b"name"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["guid", b"guid", "index", b"index", "name", b"name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___AudioDeviceInfo = AudioDeviceInfo +Global___AudioDeviceInfo: _TypeAlias = AudioDeviceInfo # noqa: Y015 -@typing.final -class PlatformAudioInfo(google.protobuf.message.Message): +@_typing.final +class PlatformAudioInfo(_message.Message): """Information about a PlatformAudio instance.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - RECORDING_DEVICE_COUNT_FIELD_NUMBER: builtins.int - PLAYOUT_DEVICE_COUNT_FIELD_NUMBER: builtins.int - recording_device_count: builtins.int + RECORDING_DEVICE_COUNT_FIELD_NUMBER: _builtins.int + PLAYOUT_DEVICE_COUNT_FIELD_NUMBER: _builtins.int + recording_device_count: _builtins.int """Number of available recording (microphone) devices.""" - playout_device_count: builtins.int + playout_device_count: _builtins.int """Number of available playout (speaker) devices.""" def __init__( self, *, - recording_device_count: builtins.int | None = ..., - playout_device_count: builtins.int | None = ..., + recording_device_count: _builtins.int | None = ..., + playout_device_count: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["playout_device_count", b"playout_device_count", "recording_device_count", b"recording_device_count"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["playout_device_count", b"playout_device_count", "recording_device_count", b"recording_device_count"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["playout_device_count", b"playout_device_count", "recording_device_count", b"recording_device_count"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["playout_device_count", b"playout_device_count", "recording_device_count", b"recording_device_count"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___PlatformAudioInfo = PlatformAudioInfo +Global___PlatformAudioInfo: _TypeAlias = PlatformAudioInfo # noqa: Y015 -@typing.final -class OwnedPlatformAudio(google.protobuf.message.Message): +@_typing.final +class OwnedPlatformAudio(_message.Message): """Owned PlatformAudio handle with info.""" - 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___PlatformAudioInfo: ... + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___PlatformAudioInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___PlatformAudioInfo | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___PlatformAudioInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___OwnedPlatformAudio = OwnedPlatformAudio +Global___OwnedPlatformAudio: _TypeAlias = OwnedPlatformAudio # noqa: Y015 -@typing.final -class NewPlatformAudioRequest(google.protobuf.message.Message): +@_typing.final +class NewPlatformAudioRequest(_message.Message): """Create a new PlatformAudio instance. This enables the platform ADM for microphone capture and speaker playout. @@ -1278,40 +1437,49 @@ class NewPlatformAudioRequest(google.protobuf.message.Message): When all handles are released, the ADM is automatically disabled. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___NewPlatformAudioRequest = NewPlatformAudioRequest +Global___NewPlatformAudioRequest: _TypeAlias = NewPlatformAudioRequest # noqa: Y015 -@typing.final -class NewPlatformAudioResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class NewPlatformAudioResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PLATFORM_AUDIO_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - error: builtins.str + PLATFORM_AUDIO_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + error: _builtins.str """Error message if creation failed.""" - @property - def platform_audio(self) -> global___OwnedPlatformAudio: + @_builtins.property + def platform_audio(self) -> Global___OwnedPlatformAudio: """The PlatformAudio handle on success.""" def __init__( self, *, - platform_audio: global___OwnedPlatformAudio | None = ..., - error: builtins.str | None = ..., + platform_audio: Global___OwnedPlatformAudio | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["error", b"error", "message", b"message", "platform_audio", b"platform_audio"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["error", b"error", "message", b"message", "platform_audio", b"platform_audio"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["platform_audio", "error"] | None: ... - -global___NewPlatformAudioResponse = NewPlatformAudioResponse - -@typing.final -class GetAudioDevicesRequest(google.protobuf.message.Message): + _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "message", b"message", "platform_audio", b"platform_audio"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "message", b"message", "platform_audio", b"platform_audio"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["platform_audio", "error"] # noqa: Y015 + _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... + +Global___NewPlatformAudioResponse: _TypeAlias = NewPlatformAudioResponse # noqa: Y015 + +@_typing.final +class GetAudioDevicesRequest(_message.Message): """Get available audio devices. Returns lists of available recording (microphone) and playout (speaker) devices. @@ -1323,52 +1491,58 @@ class GetAudioDevicesRequest(google.protobuf.message.Message): Device enumeration is not meaningful on mobile - use for device count only. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - PLATFORM_AUDIO_HANDLE_FIELD_NUMBER: builtins.int - platform_audio_handle: builtins.int + PLATFORM_AUDIO_HANDLE_FIELD_NUMBER: _builtins.int + platform_audio_handle: _builtins.int """The PlatformAudio handle.""" def __init__( self, *, - platform_audio_handle: builtins.int | None = ..., + platform_audio_handle: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["platform_audio_handle", b"platform_audio_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["platform_audio_handle", b"platform_audio_handle"]) -> None: ... - -global___GetAudioDevicesRequest = GetAudioDevicesRequest - -@typing.final -class GetAudioDevicesResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PLAYOUT_DEVICES_FIELD_NUMBER: builtins.int - RECORDING_DEVICES_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - error: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["platform_audio_handle", b"platform_audio_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["platform_audio_handle", b"platform_audio_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___GetAudioDevicesRequest: _TypeAlias = GetAudioDevicesRequest # noqa: Y015 + +@_typing.final +class GetAudioDevicesResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PLAYOUT_DEVICES_FIELD_NUMBER: _builtins.int + RECORDING_DEVICES_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + error: _builtins.str """Error message if enumeration failed, empty/absent on success.""" - @property - def playout_devices(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AudioDeviceInfo]: + @_builtins.property + def playout_devices(self) -> _containers.RepeatedCompositeFieldContainer[Global___AudioDeviceInfo]: """Available playout devices (speakers/headphones).""" - @property - def recording_devices(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AudioDeviceInfo]: + @_builtins.property + def recording_devices(self) -> _containers.RepeatedCompositeFieldContainer[Global___AudioDeviceInfo]: """Available recording devices (microphones).""" def __init__( self, *, - playout_devices: collections.abc.Iterable[global___AudioDeviceInfo] | None = ..., - recording_devices: collections.abc.Iterable[global___AudioDeviceInfo] | None = ..., - error: builtins.str | None = ..., + playout_devices: _abc.Iterable[Global___AudioDeviceInfo] | None = ..., + recording_devices: _abc.Iterable[Global___AudioDeviceInfo] | 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", "playout_devices", b"playout_devices", "recording_devices", b"recording_devices"]) -> 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", "playout_devices", b"playout_devices", "recording_devices", b"recording_devices"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___GetAudioDevicesResponse = GetAudioDevicesResponse +Global___GetAudioDevicesResponse: _TypeAlias = GetAudioDevicesResponse # noqa: Y015 -@typing.final -class SetRecordingDeviceRequest(google.protobuf.message.Message): +@_typing.final +class SetRecordingDeviceRequest(_message.Message): """Set the recording device (microphone). Call this before creating audio tracks to select which microphone to use. @@ -1381,46 +1555,52 @@ class SetRecordingDeviceRequest(google.protobuf.message.Message): system level. This will succeed but has no effect. Skip calling on mobile. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - PLATFORM_AUDIO_HANDLE_FIELD_NUMBER: builtins.int - DEVICE_ID_FIELD_NUMBER: builtins.int - platform_audio_handle: builtins.int + PLATFORM_AUDIO_HANDLE_FIELD_NUMBER: _builtins.int + DEVICE_ID_FIELD_NUMBER: _builtins.int + platform_audio_handle: _builtins.int """The PlatformAudio handle.""" - device_id: builtins.str + device_id: _builtins.str """Device GUID from AudioDeviceInfo.guid - stable across device additions/removals.""" def __init__( self, *, - platform_audio_handle: builtins.int | None = ..., - device_id: builtins.str | None = ..., + platform_audio_handle: _builtins.int | None = ..., + device_id: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["device_id", b"device_id", "platform_audio_handle", b"platform_audio_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["device_id", b"device_id", "platform_audio_handle", b"platform_audio_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["device_id", b"device_id", "platform_audio_handle", b"platform_audio_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["device_id", b"device_id", "platform_audio_handle", b"platform_audio_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetRecordingDeviceRequest = SetRecordingDeviceRequest +Global___SetRecordingDeviceRequest: _TypeAlias = SetRecordingDeviceRequest # noqa: Y015 -@typing.final -class SetRecordingDeviceResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SetRecordingDeviceResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ERROR_FIELD_NUMBER: builtins.int - error: builtins.str + ERROR_FIELD_NUMBER: _builtins.int + error: _builtins.str """Error message if the operation failed. Empty/absent on success (including no-op success on mobile). """ def __init__( self, *, - error: builtins.str | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetRecordingDeviceResponse = SetRecordingDeviceResponse +Global___SetRecordingDeviceResponse: _TypeAlias = SetRecordingDeviceResponse # noqa: Y015 -@typing.final -class SetPlayoutDeviceRequest(google.protobuf.message.Message): +@_typing.final +class SetPlayoutDeviceRequest(_message.Message): """Set the playout device (speaker/headphones). Call this before connecting to select which speaker to use for audio output. @@ -1435,46 +1615,52 @@ class SetPlayoutDeviceRequest(google.protobuf.message.Message): - Android: Use AudioManager.setSpeakerphoneOn() to switch outputs """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - PLATFORM_AUDIO_HANDLE_FIELD_NUMBER: builtins.int - DEVICE_ID_FIELD_NUMBER: builtins.int - platform_audio_handle: builtins.int + PLATFORM_AUDIO_HANDLE_FIELD_NUMBER: _builtins.int + DEVICE_ID_FIELD_NUMBER: _builtins.int + platform_audio_handle: _builtins.int """The PlatformAudio handle.""" - device_id: builtins.str + device_id: _builtins.str """Device GUID from AudioDeviceInfo.guid - stable across device additions/removals.""" def __init__( self, *, - platform_audio_handle: builtins.int | None = ..., - device_id: builtins.str | None = ..., + platform_audio_handle: _builtins.int | None = ..., + device_id: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["device_id", b"device_id", "platform_audio_handle", b"platform_audio_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["device_id", b"device_id", "platform_audio_handle", b"platform_audio_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["device_id", b"device_id", "platform_audio_handle", b"platform_audio_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["device_id", b"device_id", "platform_audio_handle", b"platform_audio_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetPlayoutDeviceRequest = SetPlayoutDeviceRequest +Global___SetPlayoutDeviceRequest: _TypeAlias = SetPlayoutDeviceRequest # noqa: Y015 -@typing.final -class SetPlayoutDeviceResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SetPlayoutDeviceResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ERROR_FIELD_NUMBER: builtins.int - error: builtins.str + ERROR_FIELD_NUMBER: _builtins.int + error: _builtins.str """Error message if the operation failed. Empty/absent on success (including no-op success on mobile). """ def __init__( self, *, - error: builtins.str | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetPlayoutDeviceResponse = SetPlayoutDeviceResponse +Global___SetPlayoutDeviceResponse: _TypeAlias = SetPlayoutDeviceResponse # noqa: Y015 -@typing.final -class StartRecordingRequest(google.protobuf.message.Message): +@_typing.final +class StartRecordingRequest(_message.Message): """Start recording from the microphone. Recording is started automatically when PlatformAudio is created. @@ -1482,42 +1668,48 @@ class StartRecordingRequest(google.protobuf.message.Message): This also turns on the system's recording privacy indicator. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - PLATFORM_AUDIO_HANDLE_FIELD_NUMBER: builtins.int - platform_audio_handle: builtins.int + PLATFORM_AUDIO_HANDLE_FIELD_NUMBER: _builtins.int + platform_audio_handle: _builtins.int """The PlatformAudio handle.""" def __init__( self, *, - platform_audio_handle: builtins.int | None = ..., + platform_audio_handle: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["platform_audio_handle", b"platform_audio_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["platform_audio_handle", b"platform_audio_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["platform_audio_handle", b"platform_audio_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["platform_audio_handle", b"platform_audio_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___StartRecordingRequest = StartRecordingRequest +Global___StartRecordingRequest: _TypeAlias = StartRecordingRequest # noqa: Y015 -@typing.final -class StartRecordingResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class StartRecordingResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ERROR_FIELD_NUMBER: builtins.int - error: builtins.str + ERROR_FIELD_NUMBER: _builtins.int + error: _builtins.str """Error message if the operation failed. Empty/absent on success. """ def __init__( self, *, - error: builtins.str | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___StartRecordingResponse = StartRecordingResponse +Global___StartRecordingResponse: _TypeAlias = StartRecordingResponse # noqa: Y015 -@typing.final -class StopRecordingRequest(google.protobuf.message.Message): +@_typing.final +class StopRecordingRequest(_message.Message): """Stop recording from the microphone. Use this to temporarily stop recording without disposing PlatformAudio. @@ -1525,36 +1717,42 @@ class StopRecordingRequest(google.protobuf.message.Message): Call StartRecording to resume recording. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - PLATFORM_AUDIO_HANDLE_FIELD_NUMBER: builtins.int - platform_audio_handle: builtins.int + PLATFORM_AUDIO_HANDLE_FIELD_NUMBER: _builtins.int + platform_audio_handle: _builtins.int """The PlatformAudio handle.""" def __init__( self, *, - platform_audio_handle: builtins.int | None = ..., + platform_audio_handle: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["platform_audio_handle", b"platform_audio_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["platform_audio_handle", b"platform_audio_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["platform_audio_handle", b"platform_audio_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["platform_audio_handle", b"platform_audio_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___StopRecordingRequest = StopRecordingRequest +Global___StopRecordingRequest: _TypeAlias = StopRecordingRequest # noqa: Y015 -@typing.final -class StopRecordingResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class StopRecordingResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ERROR_FIELD_NUMBER: builtins.int - error: builtins.str + ERROR_FIELD_NUMBER: _builtins.int + error: _builtins.str """Error message if the operation failed. Empty/absent on success. """ def __init__( self, *, - error: builtins.str | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___StopRecordingResponse = StopRecordingResponse +Global___StopRecordingResponse: _TypeAlias = StopRecordingResponse # 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..cdc79a5b 100644 --- a/livekit-rtc/livekit/rtc/_proto/data_stream_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/data_stream_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: data_stream.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 4.25.2 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -16,7 +16,7 @@ from . import e2ee_pb2 as e2ee__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11\x64\x61ta_stream.proto\x12\rlivekit.proto\x1a\x0chandle.proto\x1a\ne2ee.proto\"s\n\x15OwnedTextStreamReader\x12-\n\x06handle\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12+\n\x04info\x18\x02 \x02(\x0b\x32\x1d.livekit.proto.TextStreamInfo\"?\n&TextStreamReaderReadIncrementalRequest\x12\x15\n\rreader_handle\x18\x01 \x02(\x04\")\n\'TextStreamReaderReadIncrementalResponse\"Q\n\x1eTextStreamReaderReadAllRequest\x12\x15\n\rreader_handle\x18\x01 \x02(\x04\x12\x18\n\x10request_async_id\x18\x02 \x01(\x04\"3\n\x1fTextStreamReaderReadAllResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"}\n\x1fTextStreamReaderReadAllCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\x11\n\x07\x63ontent\x18\x02 \x01(\tH\x00\x12+\n\x05\x65rror\x18\x03 \x01(\x0b\x32\x1a.livekit.proto.StreamErrorH\x00\x42\x08\n\x06result\"\xb3\x01\n\x15TextStreamReaderEvent\x12\x15\n\rreader_handle\x18\x01 \x02(\x04\x12\x46\n\x0e\x63hunk_received\x18\x02 \x01(\x0b\x32,.livekit.proto.TextStreamReaderChunkReceivedH\x00\x12\x31\n\x03\x65os\x18\x03 \x01(\x0b\x32\".livekit.proto.TextStreamReaderEOSH\x00\x42\x08\n\x06\x64\x65tail\"0\n\x1dTextStreamReaderChunkReceived\x12\x0f\n\x07\x63ontent\x18\x01 \x02(\t\"@\n\x13TextStreamReaderEOS\x12)\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x1a.livekit.proto.StreamError\"s\n\x15OwnedByteStreamReader\x12-\n\x06handle\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12+\n\x04info\x18\x02 \x02(\x0b\x32\x1d.livekit.proto.ByteStreamInfo\"?\n&ByteStreamReaderReadIncrementalRequest\x12\x15\n\rreader_handle\x18\x01 \x02(\x04\")\n\'ByteStreamReaderReadIncrementalResponse\"Q\n\x1e\x42yteStreamReaderReadAllRequest\x12\x15\n\rreader_handle\x18\x01 \x02(\x04\x12\x18\n\x10request_async_id\x18\x02 \x01(\x04\"3\n\x1f\x42yteStreamReaderReadAllResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"}\n\x1f\x42yteStreamReaderReadAllCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\x11\n\x07\x63ontent\x18\x02 \x01(\x0cH\x00\x12+\n\x05\x65rror\x18\x03 \x01(\x0b\x32\x1a.livekit.proto.StreamErrorH\x00\x42\x08\n\x06result\"\x7f\n\"ByteStreamReaderWriteToFileRequest\x12\x15\n\rreader_handle\x18\x01 \x02(\x04\x12\x18\n\x10request_async_id\x18\x02 \x01(\x04\x12\x11\n\tdirectory\x18\x03 \x01(\t\x12\x15\n\rname_override\x18\x04 \x01(\t\"7\n#ByteStreamReaderWriteToFileResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\x83\x01\n#ByteStreamReaderWriteToFileCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\x13\n\tfile_path\x18\x02 \x01(\tH\x00\x12+\n\x05\x65rror\x18\x03 \x01(\x0b\x32\x1a.livekit.proto.StreamErrorH\x00\x42\x08\n\x06result\"\xb3\x01\n\x15\x42yteStreamReaderEvent\x12\x15\n\rreader_handle\x18\x01 \x02(\x04\x12\x46\n\x0e\x63hunk_received\x18\x02 \x01(\x0b\x32,.livekit.proto.ByteStreamReaderChunkReceivedH\x00\x12\x31\n\x03\x65os\x18\x03 \x01(\x0b\x32\".livekit.proto.ByteStreamReaderEOSH\x00\x42\x08\n\x06\x64\x65tail\"0\n\x1d\x42yteStreamReaderChunkReceived\x12\x0f\n\x07\x63ontent\x18\x01 \x02(\x0c\"@\n\x13\x42yteStreamReaderEOS\x12)\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x1a.livekit.proto.StreamError\"\x99\x01\n\x15StreamSendFileRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x31\n\x07options\x18\x02 \x02(\x0b\x32 .livekit.proto.StreamByteOptions\x12\x11\n\tfile_path\x18\x03 \x02(\t\x12\x18\n\x10request_async_id\x18\x04 \x01(\x04\"*\n\x16StreamSendFileResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\x90\x01\n\x16StreamSendFileCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12-\n\x04info\x18\x02 \x01(\x0b\x32\x1d.livekit.proto.ByteStreamInfoH\x00\x12+\n\x05\x65rror\x18\x03 \x01(\x0b\x32\x1a.livekit.proto.StreamErrorH\x00\x42\x08\n\x06result\"\x96\x01\n\x16StreamSendBytesRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x31\n\x07options\x18\x02 \x02(\x0b\x32 .livekit.proto.StreamByteOptions\x12\r\n\x05\x62ytes\x18\x03 \x02(\x0c\x12\x18\n\x10request_async_id\x18\x04 \x01(\x04\"+\n\x17StreamSendBytesResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\x91\x01\n\x17StreamSendBytesCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12-\n\x04info\x18\x02 \x01(\x0b\x32\x1d.livekit.proto.ByteStreamInfoH\x00\x12+\n\x05\x65rror\x18\x03 \x01(\x0b\x32\x1a.livekit.proto.StreamErrorH\x00\x42\x08\n\x06result\"\x94\x01\n\x15StreamSendTextRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x31\n\x07options\x18\x02 \x02(\x0b\x32 .livekit.proto.StreamTextOptions\x12\x0c\n\x04text\x18\x03 \x02(\t\x12\x18\n\x10request_async_id\x18\x04 \x01(\x04\"*\n\x16StreamSendTextResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\x90\x01\n\x16StreamSendTextCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12-\n\x04info\x18\x02 \x01(\x0b\x32\x1d.livekit.proto.TextStreamInfoH\x00\x12+\n\x05\x65rror\x18\x03 \x01(\x0b\x32\x1a.livekit.proto.StreamErrorH\x00\x42\x08\n\x06result\"s\n\x15OwnedByteStreamWriter\x12-\n\x06handle\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12+\n\x04info\x18\x02 \x02(\x0b\x32\x1d.livekit.proto.ByteStreamInfo\"\x86\x01\n\x15\x42yteStreamOpenRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x31\n\x07options\x18\x02 \x02(\x0b\x32 .livekit.proto.StreamByteOptions\x12\x18\n\x10request_async_id\x18\x03 \x01(\x04\"*\n\x16\x42yteStreamOpenResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\x99\x01\n\x16\x42yteStreamOpenCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\x36\n\x06writer\x18\x02 \x01(\x0b\x32$.livekit.proto.OwnedByteStreamWriterH\x00\x12+\n\x05\x65rror\x18\x03 \x01(\x0b\x32\x1a.livekit.proto.StreamErrorH\x00\x42\x08\n\x06result\"^\n\x1c\x42yteStreamWriterWriteRequest\x12\x15\n\rwriter_handle\x18\x01 \x02(\x04\x12\r\n\x05\x62ytes\x18\x02 \x02(\x0c\x12\x18\n\x10request_async_id\x18\x03 \x01(\x04\"1\n\x1d\x42yteStreamWriterWriteResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\\\n\x1d\x42yteStreamWriterWriteCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12)\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x1a.livekit.proto.StreamError\"_\n\x1c\x42yteStreamWriterCloseRequest\x12\x15\n\rwriter_handle\x18\x01 \x02(\x04\x12\x0e\n\x06reason\x18\x02 \x01(\t\x12\x18\n\x10request_async_id\x18\x03 \x01(\x04\"1\n\x1d\x42yteStreamWriterCloseResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\\\n\x1d\x42yteStreamWriterCloseCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12)\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x1a.livekit.proto.StreamError\"s\n\x15OwnedTextStreamWriter\x12-\n\x06handle\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12+\n\x04info\x18\x02 \x02(\x0b\x32\x1d.livekit.proto.TextStreamInfo\"\x86\x01\n\x15TextStreamOpenRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x31\n\x07options\x18\x02 \x02(\x0b\x32 .livekit.proto.StreamTextOptions\x12\x18\n\x10request_async_id\x18\x03 \x01(\x04\"*\n\x16TextStreamOpenResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\x99\x01\n\x16TextStreamOpenCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\x36\n\x06writer\x18\x02 \x01(\x0b\x32$.livekit.proto.OwnedTextStreamWriterH\x00\x12+\n\x05\x65rror\x18\x03 \x01(\x0b\x32\x1a.livekit.proto.StreamErrorH\x00\x42\x08\n\x06result\"]\n\x1cTextStreamWriterWriteRequest\x12\x15\n\rwriter_handle\x18\x01 \x02(\x04\x12\x0c\n\x04text\x18\x02 \x02(\t\x12\x18\n\x10request_async_id\x18\x03 \x01(\x04\"1\n\x1dTextStreamWriterWriteResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\\\n\x1dTextStreamWriterWriteCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12)\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x1a.livekit.proto.StreamError\"_\n\x1cTextStreamWriterCloseRequest\x12\x15\n\rwriter_handle\x18\x01 \x02(\x04\x12\x0e\n\x06reason\x18\x02 \x01(\t\x12\x18\n\x10request_async_id\x18\x03 \x01(\x04\"1\n\x1dTextStreamWriterCloseResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\\\n\x1dTextStreamWriterCloseCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12)\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x1a.livekit.proto.StreamError\"\x81\x04\n\x0eTextStreamInfo\x12\x11\n\tstream_id\x18\x01 \x02(\t\x12\x11\n\ttimestamp\x18\x02 \x02(\x03\x12\x11\n\tmime_type\x18\x03 \x02(\t\x12\r\n\x05topic\x18\x04 \x02(\t\x12\x14\n\x0ctotal_length\x18\x05 \x01(\x04\x12\x41\n\nattributes\x18\x06 \x03(\x0b\x32-.livekit.proto.TextStreamInfo.AttributesEntry\x12\x43\n\x0eoperation_type\x18\x07 \x02(\x0e\x32+.livekit.proto.TextStreamInfo.OperationType\x12\x0f\n\x07version\x18\x08 \x01(\x05\x12\x1a\n\x12reply_to_stream_id\x18\t \x01(\t\x12\x1b\n\x13\x61ttached_stream_ids\x18\n \x03(\t\x12\x11\n\tgenerated\x18\x0b \x01(\x08\x12\x36\n\x0f\x65ncryption_type\x18\x0c \x02(\x0e\x32\x1d.livekit.proto.EncryptionType\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"A\n\rOperationType\x12\n\n\x06\x43REATE\x10\x00\x12\n\n\x06UPDATE\x10\x01\x12\n\n\x06\x44\x45LETE\x10\x02\x12\x0c\n\x08REACTION\x10\x03\"\xaa\x02\n\x0e\x42yteStreamInfo\x12\x11\n\tstream_id\x18\x01 \x02(\t\x12\x11\n\ttimestamp\x18\x02 \x02(\x03\x12\x11\n\tmime_type\x18\x03 \x02(\t\x12\r\n\x05topic\x18\x04 \x02(\t\x12\x14\n\x0ctotal_length\x18\x05 \x01(\x04\x12\x41\n\nattributes\x18\x06 \x03(\x0b\x32-.livekit.proto.ByteStreamInfo.AttributesEntry\x12\x0c\n\x04name\x18\x07 \x02(\t\x12\x36\n\x0f\x65ncryption_type\x18\x08 \x02(\x0e\x32\x1d.livekit.proto.EncryptionType\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xe9\x02\n\x11StreamTextOptions\x12\r\n\x05topic\x18\x01 \x02(\t\x12\x44\n\nattributes\x18\x02 \x03(\x0b\x32\x30.livekit.proto.StreamTextOptions.AttributesEntry\x12\x1e\n\x16\x64\x65stination_identities\x18\x03 \x03(\t\x12\n\n\x02id\x18\x04 \x01(\t\x12\x43\n\x0eoperation_type\x18\x05 \x01(\x0e\x32+.livekit.proto.TextStreamInfo.OperationType\x12\x0f\n\x07version\x18\x06 \x01(\x05\x12\x1a\n\x12reply_to_stream_id\x18\x07 \x01(\t\x12\x1b\n\x13\x61ttached_stream_ids\x18\x08 \x03(\t\x12\x11\n\tgenerated\x18\t \x01(\x08\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xfe\x01\n\x11StreamByteOptions\x12\r\n\x05topic\x18\x01 \x02(\t\x12\x44\n\nattributes\x18\x02 \x03(\x0b\x32\x30.livekit.proto.StreamByteOptions.AttributesEntry\x12\x1e\n\x16\x64\x65stination_identities\x18\x03 \x03(\t\x12\n\n\x02id\x18\x04 \x01(\t\x12\x0c\n\x04name\x18\x05 \x01(\t\x12\x11\n\tmime_type\x18\x06 \x01(\t\x12\x14\n\x0ctotal_length\x18\x07 \x01(\x04\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\"\n\x0bStreamError\x12\x13\n\x0b\x64\x65scription\x18\x01 \x02(\tB\x10\xaa\x02\rLiveKit.Proto') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11\x64\x61ta_stream.proto\x12\rlivekit.proto\x1a\x0chandle.proto\x1a\ne2ee.proto\"s\n\x15OwnedTextStreamReader\x12-\n\x06handle\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12+\n\x04info\x18\x02 \x02(\x0b\x32\x1d.livekit.proto.TextStreamInfo\"?\n&TextStreamReaderReadIncrementalRequest\x12\x15\n\rreader_handle\x18\x01 \x02(\x04\")\n\'TextStreamReaderReadIncrementalResponse\"Q\n\x1eTextStreamReaderReadAllRequest\x12\x15\n\rreader_handle\x18\x01 \x02(\x04\x12\x18\n\x10request_async_id\x18\x02 \x01(\x04\"3\n\x1fTextStreamReaderReadAllResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"}\n\x1fTextStreamReaderReadAllCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\x11\n\x07\x63ontent\x18\x02 \x01(\tH\x00\x12+\n\x05\x65rror\x18\x03 \x01(\x0b\x32\x1a.livekit.proto.StreamErrorH\x00\x42\x08\n\x06result\"\xb3\x01\n\x15TextStreamReaderEvent\x12\x15\n\rreader_handle\x18\x01 \x02(\x04\x12\x46\n\x0e\x63hunk_received\x18\x02 \x01(\x0b\x32,.livekit.proto.TextStreamReaderChunkReceivedH\x00\x12\x31\n\x03\x65os\x18\x03 \x01(\x0b\x32\".livekit.proto.TextStreamReaderEOSH\x00\x42\x08\n\x06\x64\x65tail\"0\n\x1dTextStreamReaderChunkReceived\x12\x0f\n\x07\x63ontent\x18\x01 \x02(\t\"\xbb\x01\n\x13TextStreamReaderEOS\x12)\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x1a.livekit.proto.StreamError\x12\x46\n\nattributes\x18\x02 \x03(\x0b\x32\x32.livekit.proto.TextStreamReaderEOS.AttributesEntry\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"s\n\x15OwnedByteStreamReader\x12-\n\x06handle\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12+\n\x04info\x18\x02 \x02(\x0b\x32\x1d.livekit.proto.ByteStreamInfo\"?\n&ByteStreamReaderReadIncrementalRequest\x12\x15\n\rreader_handle\x18\x01 \x02(\x04\")\n\'ByteStreamReaderReadIncrementalResponse\"Q\n\x1e\x42yteStreamReaderReadAllRequest\x12\x15\n\rreader_handle\x18\x01 \x02(\x04\x12\x18\n\x10request_async_id\x18\x02 \x01(\x04\"3\n\x1f\x42yteStreamReaderReadAllResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"}\n\x1f\x42yteStreamReaderReadAllCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\x11\n\x07\x63ontent\x18\x02 \x01(\x0cH\x00\x12+\n\x05\x65rror\x18\x03 \x01(\x0b\x32\x1a.livekit.proto.StreamErrorH\x00\x42\x08\n\x06result\"\x7f\n\"ByteStreamReaderWriteToFileRequest\x12\x15\n\rreader_handle\x18\x01 \x02(\x04\x12\x18\n\x10request_async_id\x18\x02 \x01(\x04\x12\x11\n\tdirectory\x18\x03 \x01(\t\x12\x15\n\rname_override\x18\x04 \x01(\t\"7\n#ByteStreamReaderWriteToFileResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\x83\x01\n#ByteStreamReaderWriteToFileCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\x13\n\tfile_path\x18\x02 \x01(\tH\x00\x12+\n\x05\x65rror\x18\x03 \x01(\x0b\x32\x1a.livekit.proto.StreamErrorH\x00\x42\x08\n\x06result\"\xb3\x01\n\x15\x42yteStreamReaderEvent\x12\x15\n\rreader_handle\x18\x01 \x02(\x04\x12\x46\n\x0e\x63hunk_received\x18\x02 \x01(\x0b\x32,.livekit.proto.ByteStreamReaderChunkReceivedH\x00\x12\x31\n\x03\x65os\x18\x03 \x01(\x0b\x32\".livekit.proto.ByteStreamReaderEOSH\x00\x42\x08\n\x06\x64\x65tail\"0\n\x1d\x42yteStreamReaderChunkReceived\x12\x0f\n\x07\x63ontent\x18\x01 \x02(\x0c\"\xbb\x01\n\x13\x42yteStreamReaderEOS\x12)\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x1a.livekit.proto.StreamError\x12\x46\n\nattributes\x18\x02 \x03(\x0b\x32\x32.livekit.proto.ByteStreamReaderEOS.AttributesEntry\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x99\x01\n\x15StreamSendFileRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x31\n\x07options\x18\x02 \x02(\x0b\x32 .livekit.proto.StreamByteOptions\x12\x11\n\tfile_path\x18\x03 \x02(\t\x12\x18\n\x10request_async_id\x18\x04 \x01(\x04\"*\n\x16StreamSendFileResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\x90\x01\n\x16StreamSendFileCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12-\n\x04info\x18\x02 \x01(\x0b\x32\x1d.livekit.proto.ByteStreamInfoH\x00\x12+\n\x05\x65rror\x18\x03 \x01(\x0b\x32\x1a.livekit.proto.StreamErrorH\x00\x42\x08\n\x06result\"\x96\x01\n\x16StreamSendBytesRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x31\n\x07options\x18\x02 \x02(\x0b\x32 .livekit.proto.StreamByteOptions\x12\r\n\x05\x62ytes\x18\x03 \x02(\x0c\x12\x18\n\x10request_async_id\x18\x04 \x01(\x04\"+\n\x17StreamSendBytesResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\x91\x01\n\x17StreamSendBytesCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12-\n\x04info\x18\x02 \x01(\x0b\x32\x1d.livekit.proto.ByteStreamInfoH\x00\x12+\n\x05\x65rror\x18\x03 \x01(\x0b\x32\x1a.livekit.proto.StreamErrorH\x00\x42\x08\n\x06result\"\x94\x01\n\x15StreamSendTextRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x31\n\x07options\x18\x02 \x02(\x0b\x32 .livekit.proto.StreamTextOptions\x12\x0c\n\x04text\x18\x03 \x02(\t\x12\x18\n\x10request_async_id\x18\x04 \x01(\x04\"*\n\x16StreamSendTextResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\x90\x01\n\x16StreamSendTextCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12-\n\x04info\x18\x02 \x01(\x0b\x32\x1d.livekit.proto.TextStreamInfoH\x00\x12+\n\x05\x65rror\x18\x03 \x01(\x0b\x32\x1a.livekit.proto.StreamErrorH\x00\x42\x08\n\x06result\"s\n\x15OwnedByteStreamWriter\x12-\n\x06handle\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12+\n\x04info\x18\x02 \x02(\x0b\x32\x1d.livekit.proto.ByteStreamInfo\"\x86\x01\n\x15\x42yteStreamOpenRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x31\n\x07options\x18\x02 \x02(\x0b\x32 .livekit.proto.StreamByteOptions\x12\x18\n\x10request_async_id\x18\x03 \x01(\x04\"*\n\x16\x42yteStreamOpenResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\x99\x01\n\x16\x42yteStreamOpenCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\x36\n\x06writer\x18\x02 \x01(\x0b\x32$.livekit.proto.OwnedByteStreamWriterH\x00\x12+\n\x05\x65rror\x18\x03 \x01(\x0b\x32\x1a.livekit.proto.StreamErrorH\x00\x42\x08\n\x06result\"^\n\x1c\x42yteStreamWriterWriteRequest\x12\x15\n\rwriter_handle\x18\x01 \x02(\x04\x12\r\n\x05\x62ytes\x18\x02 \x02(\x0c\x12\x18\n\x10request_async_id\x18\x03 \x01(\x04\"1\n\x1d\x42yteStreamWriterWriteResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\\\n\x1d\x42yteStreamWriterWriteCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12)\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x1a.livekit.proto.StreamError\"\xe3\x01\n\x1c\x42yteStreamWriterCloseRequest\x12\x15\n\rwriter_handle\x18\x01 \x02(\x04\x12\x0e\n\x06reason\x18\x02 \x01(\t\x12\x18\n\x10request_async_id\x18\x03 \x01(\x04\x12O\n\nattributes\x18\x04 \x03(\x0b\x32;.livekit.proto.ByteStreamWriterCloseRequest.AttributesEntry\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"1\n\x1d\x42yteStreamWriterCloseResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\\\n\x1d\x42yteStreamWriterCloseCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12)\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x1a.livekit.proto.StreamError\"s\n\x15OwnedTextStreamWriter\x12-\n\x06handle\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12+\n\x04info\x18\x02 \x02(\x0b\x32\x1d.livekit.proto.TextStreamInfo\"\x86\x01\n\x15TextStreamOpenRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x31\n\x07options\x18\x02 \x02(\x0b\x32 .livekit.proto.StreamTextOptions\x12\x18\n\x10request_async_id\x18\x03 \x01(\x04\"*\n\x16TextStreamOpenResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\x99\x01\n\x16TextStreamOpenCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\x36\n\x06writer\x18\x02 \x01(\x0b\x32$.livekit.proto.OwnedTextStreamWriterH\x00\x12+\n\x05\x65rror\x18\x03 \x01(\x0b\x32\x1a.livekit.proto.StreamErrorH\x00\x42\x08\n\x06result\"]\n\x1cTextStreamWriterWriteRequest\x12\x15\n\rwriter_handle\x18\x01 \x02(\x04\x12\x0c\n\x04text\x18\x02 \x02(\t\x12\x18\n\x10request_async_id\x18\x03 \x01(\x04\"1\n\x1dTextStreamWriterWriteResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\\\n\x1dTextStreamWriterWriteCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12)\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x1a.livekit.proto.StreamError\"\xe3\x01\n\x1cTextStreamWriterCloseRequest\x12\x15\n\rwriter_handle\x18\x01 \x02(\x04\x12\x0e\n\x06reason\x18\x02 \x01(\t\x12\x18\n\x10request_async_id\x18\x03 \x01(\x04\x12O\n\nattributes\x18\x04 \x03(\x0b\x32;.livekit.proto.TextStreamWriterCloseRequest.AttributesEntry\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"1\n\x1dTextStreamWriterCloseResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\\\n\x1dTextStreamWriterCloseCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12)\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x1a.livekit.proto.StreamError\"\x81\x04\n\x0eTextStreamInfo\x12\x11\n\tstream_id\x18\x01 \x02(\t\x12\x11\n\ttimestamp\x18\x02 \x02(\x03\x12\x11\n\tmime_type\x18\x03 \x02(\t\x12\r\n\x05topic\x18\x04 \x02(\t\x12\x14\n\x0ctotal_length\x18\x05 \x01(\x04\x12\x41\n\nattributes\x18\x06 \x03(\x0b\x32-.livekit.proto.TextStreamInfo.AttributesEntry\x12\x43\n\x0eoperation_type\x18\x07 \x02(\x0e\x32+.livekit.proto.TextStreamInfo.OperationType\x12\x0f\n\x07version\x18\x08 \x01(\x05\x12\x1a\n\x12reply_to_stream_id\x18\t \x01(\t\x12\x1b\n\x13\x61ttached_stream_ids\x18\n \x03(\t\x12\x11\n\tgenerated\x18\x0b \x01(\x08\x12\x36\n\x0f\x65ncryption_type\x18\x0c \x02(\x0e\x32\x1d.livekit.proto.EncryptionType\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"A\n\rOperationType\x12\n\n\x06\x43REATE\x10\x00\x12\n\n\x06UPDATE\x10\x01\x12\n\n\x06\x44\x45LETE\x10\x02\x12\x0c\n\x08REACTION\x10\x03\"\xaa\x02\n\x0e\x42yteStreamInfo\x12\x11\n\tstream_id\x18\x01 \x02(\t\x12\x11\n\ttimestamp\x18\x02 \x02(\x03\x12\x11\n\tmime_type\x18\x03 \x02(\t\x12\r\n\x05topic\x18\x04 \x02(\t\x12\x14\n\x0ctotal_length\x18\x05 \x01(\x04\x12\x41\n\nattributes\x18\x06 \x03(\x0b\x32-.livekit.proto.ByteStreamInfo.AttributesEntry\x12\x0c\n\x04name\x18\x07 \x02(\t\x12\x36\n\x0f\x65ncryption_type\x18\x08 \x02(\x0e\x32\x1d.livekit.proto.EncryptionType\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x94\x03\n\x11StreamTextOptions\x12\r\n\x05topic\x18\x01 \x02(\t\x12\x44\n\nattributes\x18\x02 \x03(\x0b\x32\x30.livekit.proto.StreamTextOptions.AttributesEntry\x12\x1e\n\x16\x64\x65stination_identities\x18\x03 \x03(\t\x12\n\n\x02id\x18\x04 \x01(\t\x12\x43\n\x0eoperation_type\x18\x05 \x01(\x0e\x32+.livekit.proto.TextStreamInfo.OperationType\x12\x0f\n\x07version\x18\x06 \x01(\x05\x12\x1a\n\x12reply_to_stream_id\x18\x07 \x01(\t\x12\x1b\n\x13\x61ttached_stream_ids\x18\x08 \x03(\t\x12\x11\n\tgenerated\x18\t \x01(\x08\x12\x10\n\x08\x63ompress\x18\n \x01(\x08\x12\x17\n\x0fsender_identity\x18\x0b \x01(\t\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa9\x02\n\x11StreamByteOptions\x12\r\n\x05topic\x18\x01 \x02(\t\x12\x44\n\nattributes\x18\x02 \x03(\x0b\x32\x30.livekit.proto.StreamByteOptions.AttributesEntry\x12\x1e\n\x16\x64\x65stination_identities\x18\x03 \x03(\t\x12\n\n\x02id\x18\x04 \x01(\t\x12\x0c\n\x04name\x18\x05 \x01(\t\x12\x11\n\tmime_type\x18\x06 \x01(\t\x12\x14\n\x0ctotal_length\x18\x07 \x01(\x04\x12\x10\n\x08\x63ompress\x18\x08 \x01(\x08\x12\x17\n\x0fsender_identity\x18\t \x01(\t\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\"\n\x0bStreamError\x12\x13\n\x0b\x64\x65scription\x18\x01 \x02(\tB\x10\xaa\x02\rLiveKit.Proto') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -24,6 +24,14 @@ if _descriptor._USE_C_DESCRIPTORS == False: _globals['DESCRIPTOR']._options = None _globals['DESCRIPTOR']._serialized_options = b'\252\002\rLiveKit.Proto' + _globals['_TEXTSTREAMREADEREOS_ATTRIBUTESENTRY']._options = None + _globals['_TEXTSTREAMREADEREOS_ATTRIBUTESENTRY']._serialized_options = b'8\001' + _globals['_BYTESTREAMREADEREOS_ATTRIBUTESENTRY']._options = None + _globals['_BYTESTREAMREADEREOS_ATTRIBUTESENTRY']._serialized_options = b'8\001' + _globals['_BYTESTREAMWRITERCLOSEREQUEST_ATTRIBUTESENTRY']._options = None + _globals['_BYTESTREAMWRITERCLOSEREQUEST_ATTRIBUTESENTRY']._serialized_options = b'8\001' + _globals['_TEXTSTREAMWRITERCLOSEREQUEST_ATTRIBUTESENTRY']._options = None + _globals['_TEXTSTREAMWRITERCLOSEREQUEST_ATTRIBUTESENTRY']._serialized_options = b'8\001' _globals['_TEXTSTREAMINFO_ATTRIBUTESENTRY']._options = None _globals['_TEXTSTREAMINFO_ATTRIBUTESENTRY']._serialized_options = b'8\001' _globals['_BYTESTREAMINFO_ATTRIBUTESENTRY']._options = None @@ -48,108 +56,116 @@ _globals['_TEXTSTREAMREADEREVENT']._serialized_end=730 _globals['_TEXTSTREAMREADERCHUNKRECEIVED']._serialized_start=732 _globals['_TEXTSTREAMREADERCHUNKRECEIVED']._serialized_end=780 - _globals['_TEXTSTREAMREADEREOS']._serialized_start=782 - _globals['_TEXTSTREAMREADEREOS']._serialized_end=846 - _globals['_OWNEDBYTESTREAMREADER']._serialized_start=848 - _globals['_OWNEDBYTESTREAMREADER']._serialized_end=963 - _globals['_BYTESTREAMREADERREADINCREMENTALREQUEST']._serialized_start=965 - _globals['_BYTESTREAMREADERREADINCREMENTALREQUEST']._serialized_end=1028 - _globals['_BYTESTREAMREADERREADINCREMENTALRESPONSE']._serialized_start=1030 - _globals['_BYTESTREAMREADERREADINCREMENTALRESPONSE']._serialized_end=1071 - _globals['_BYTESTREAMREADERREADALLREQUEST']._serialized_start=1073 - _globals['_BYTESTREAMREADERREADALLREQUEST']._serialized_end=1154 - _globals['_BYTESTREAMREADERREADALLRESPONSE']._serialized_start=1156 - _globals['_BYTESTREAMREADERREADALLRESPONSE']._serialized_end=1207 - _globals['_BYTESTREAMREADERREADALLCALLBACK']._serialized_start=1209 - _globals['_BYTESTREAMREADERREADALLCALLBACK']._serialized_end=1334 - _globals['_BYTESTREAMREADERWRITETOFILEREQUEST']._serialized_start=1336 - _globals['_BYTESTREAMREADERWRITETOFILEREQUEST']._serialized_end=1463 - _globals['_BYTESTREAMREADERWRITETOFILERESPONSE']._serialized_start=1465 - _globals['_BYTESTREAMREADERWRITETOFILERESPONSE']._serialized_end=1520 - _globals['_BYTESTREAMREADERWRITETOFILECALLBACK']._serialized_start=1523 - _globals['_BYTESTREAMREADERWRITETOFILECALLBACK']._serialized_end=1654 - _globals['_BYTESTREAMREADEREVENT']._serialized_start=1657 - _globals['_BYTESTREAMREADEREVENT']._serialized_end=1836 - _globals['_BYTESTREAMREADERCHUNKRECEIVED']._serialized_start=1838 - _globals['_BYTESTREAMREADERCHUNKRECEIVED']._serialized_end=1886 - _globals['_BYTESTREAMREADEREOS']._serialized_start=1888 - _globals['_BYTESTREAMREADEREOS']._serialized_end=1952 - _globals['_STREAMSENDFILEREQUEST']._serialized_start=1955 - _globals['_STREAMSENDFILEREQUEST']._serialized_end=2108 - _globals['_STREAMSENDFILERESPONSE']._serialized_start=2110 - _globals['_STREAMSENDFILERESPONSE']._serialized_end=2152 - _globals['_STREAMSENDFILECALLBACK']._serialized_start=2155 - _globals['_STREAMSENDFILECALLBACK']._serialized_end=2299 - _globals['_STREAMSENDBYTESREQUEST']._serialized_start=2302 - _globals['_STREAMSENDBYTESREQUEST']._serialized_end=2452 - _globals['_STREAMSENDBYTESRESPONSE']._serialized_start=2454 - _globals['_STREAMSENDBYTESRESPONSE']._serialized_end=2497 - _globals['_STREAMSENDBYTESCALLBACK']._serialized_start=2500 - _globals['_STREAMSENDBYTESCALLBACK']._serialized_end=2645 - _globals['_STREAMSENDTEXTREQUEST']._serialized_start=2648 - _globals['_STREAMSENDTEXTREQUEST']._serialized_end=2796 - _globals['_STREAMSENDTEXTRESPONSE']._serialized_start=2798 - _globals['_STREAMSENDTEXTRESPONSE']._serialized_end=2840 - _globals['_STREAMSENDTEXTCALLBACK']._serialized_start=2843 - _globals['_STREAMSENDTEXTCALLBACK']._serialized_end=2987 - _globals['_OWNEDBYTESTREAMWRITER']._serialized_start=2989 - _globals['_OWNEDBYTESTREAMWRITER']._serialized_end=3104 - _globals['_BYTESTREAMOPENREQUEST']._serialized_start=3107 - _globals['_BYTESTREAMOPENREQUEST']._serialized_end=3241 - _globals['_BYTESTREAMOPENRESPONSE']._serialized_start=3243 - _globals['_BYTESTREAMOPENRESPONSE']._serialized_end=3285 - _globals['_BYTESTREAMOPENCALLBACK']._serialized_start=3288 - _globals['_BYTESTREAMOPENCALLBACK']._serialized_end=3441 - _globals['_BYTESTREAMWRITERWRITEREQUEST']._serialized_start=3443 - _globals['_BYTESTREAMWRITERWRITEREQUEST']._serialized_end=3537 - _globals['_BYTESTREAMWRITERWRITERESPONSE']._serialized_start=3539 - _globals['_BYTESTREAMWRITERWRITERESPONSE']._serialized_end=3588 - _globals['_BYTESTREAMWRITERWRITECALLBACK']._serialized_start=3590 - _globals['_BYTESTREAMWRITERWRITECALLBACK']._serialized_end=3682 - _globals['_BYTESTREAMWRITERCLOSEREQUEST']._serialized_start=3684 - _globals['_BYTESTREAMWRITERCLOSEREQUEST']._serialized_end=3779 - _globals['_BYTESTREAMWRITERCLOSERESPONSE']._serialized_start=3781 - _globals['_BYTESTREAMWRITERCLOSERESPONSE']._serialized_end=3830 - _globals['_BYTESTREAMWRITERCLOSECALLBACK']._serialized_start=3832 - _globals['_BYTESTREAMWRITERCLOSECALLBACK']._serialized_end=3924 - _globals['_OWNEDTEXTSTREAMWRITER']._serialized_start=3926 - _globals['_OWNEDTEXTSTREAMWRITER']._serialized_end=4041 - _globals['_TEXTSTREAMOPENREQUEST']._serialized_start=4044 - _globals['_TEXTSTREAMOPENREQUEST']._serialized_end=4178 - _globals['_TEXTSTREAMOPENRESPONSE']._serialized_start=4180 - _globals['_TEXTSTREAMOPENRESPONSE']._serialized_end=4222 - _globals['_TEXTSTREAMOPENCALLBACK']._serialized_start=4225 - _globals['_TEXTSTREAMOPENCALLBACK']._serialized_end=4378 - _globals['_TEXTSTREAMWRITERWRITEREQUEST']._serialized_start=4380 - _globals['_TEXTSTREAMWRITERWRITEREQUEST']._serialized_end=4473 - _globals['_TEXTSTREAMWRITERWRITERESPONSE']._serialized_start=4475 - _globals['_TEXTSTREAMWRITERWRITERESPONSE']._serialized_end=4524 - _globals['_TEXTSTREAMWRITERWRITECALLBACK']._serialized_start=4526 - _globals['_TEXTSTREAMWRITERWRITECALLBACK']._serialized_end=4618 - _globals['_TEXTSTREAMWRITERCLOSEREQUEST']._serialized_start=4620 - _globals['_TEXTSTREAMWRITERCLOSEREQUEST']._serialized_end=4715 - _globals['_TEXTSTREAMWRITERCLOSERESPONSE']._serialized_start=4717 - _globals['_TEXTSTREAMWRITERCLOSERESPONSE']._serialized_end=4766 - _globals['_TEXTSTREAMWRITERCLOSECALLBACK']._serialized_start=4768 - _globals['_TEXTSTREAMWRITERCLOSECALLBACK']._serialized_end=4860 - _globals['_TEXTSTREAMINFO']._serialized_start=4863 - _globals['_TEXTSTREAMINFO']._serialized_end=5376 - _globals['_TEXTSTREAMINFO_ATTRIBUTESENTRY']._serialized_start=5260 - _globals['_TEXTSTREAMINFO_ATTRIBUTESENTRY']._serialized_end=5309 - _globals['_TEXTSTREAMINFO_OPERATIONTYPE']._serialized_start=5311 - _globals['_TEXTSTREAMINFO_OPERATIONTYPE']._serialized_end=5376 - _globals['_BYTESTREAMINFO']._serialized_start=5379 - _globals['_BYTESTREAMINFO']._serialized_end=5677 - _globals['_BYTESTREAMINFO_ATTRIBUTESENTRY']._serialized_start=5260 - _globals['_BYTESTREAMINFO_ATTRIBUTESENTRY']._serialized_end=5309 - _globals['_STREAMTEXTOPTIONS']._serialized_start=5680 - _globals['_STREAMTEXTOPTIONS']._serialized_end=6041 - _globals['_STREAMTEXTOPTIONS_ATTRIBUTESENTRY']._serialized_start=5260 - _globals['_STREAMTEXTOPTIONS_ATTRIBUTESENTRY']._serialized_end=5309 - _globals['_STREAMBYTEOPTIONS']._serialized_start=6044 - _globals['_STREAMBYTEOPTIONS']._serialized_end=6298 - _globals['_STREAMBYTEOPTIONS_ATTRIBUTESENTRY']._serialized_start=5260 - _globals['_STREAMBYTEOPTIONS_ATTRIBUTESENTRY']._serialized_end=5309 - _globals['_STREAMERROR']._serialized_start=6300 - _globals['_STREAMERROR']._serialized_end=6334 + _globals['_TEXTSTREAMREADEREOS']._serialized_start=783 + _globals['_TEXTSTREAMREADEREOS']._serialized_end=970 + _globals['_TEXTSTREAMREADEREOS_ATTRIBUTESENTRY']._serialized_start=921 + _globals['_TEXTSTREAMREADEREOS_ATTRIBUTESENTRY']._serialized_end=970 + _globals['_OWNEDBYTESTREAMREADER']._serialized_start=972 + _globals['_OWNEDBYTESTREAMREADER']._serialized_end=1087 + _globals['_BYTESTREAMREADERREADINCREMENTALREQUEST']._serialized_start=1089 + _globals['_BYTESTREAMREADERREADINCREMENTALREQUEST']._serialized_end=1152 + _globals['_BYTESTREAMREADERREADINCREMENTALRESPONSE']._serialized_start=1154 + _globals['_BYTESTREAMREADERREADINCREMENTALRESPONSE']._serialized_end=1195 + _globals['_BYTESTREAMREADERREADALLREQUEST']._serialized_start=1197 + _globals['_BYTESTREAMREADERREADALLREQUEST']._serialized_end=1278 + _globals['_BYTESTREAMREADERREADALLRESPONSE']._serialized_start=1280 + _globals['_BYTESTREAMREADERREADALLRESPONSE']._serialized_end=1331 + _globals['_BYTESTREAMREADERREADALLCALLBACK']._serialized_start=1333 + _globals['_BYTESTREAMREADERREADALLCALLBACK']._serialized_end=1458 + _globals['_BYTESTREAMREADERWRITETOFILEREQUEST']._serialized_start=1460 + _globals['_BYTESTREAMREADERWRITETOFILEREQUEST']._serialized_end=1587 + _globals['_BYTESTREAMREADERWRITETOFILERESPONSE']._serialized_start=1589 + _globals['_BYTESTREAMREADERWRITETOFILERESPONSE']._serialized_end=1644 + _globals['_BYTESTREAMREADERWRITETOFILECALLBACK']._serialized_start=1647 + _globals['_BYTESTREAMREADERWRITETOFILECALLBACK']._serialized_end=1778 + _globals['_BYTESTREAMREADEREVENT']._serialized_start=1781 + _globals['_BYTESTREAMREADEREVENT']._serialized_end=1960 + _globals['_BYTESTREAMREADERCHUNKRECEIVED']._serialized_start=1962 + _globals['_BYTESTREAMREADERCHUNKRECEIVED']._serialized_end=2010 + _globals['_BYTESTREAMREADEREOS']._serialized_start=2013 + _globals['_BYTESTREAMREADEREOS']._serialized_end=2200 + _globals['_BYTESTREAMREADEREOS_ATTRIBUTESENTRY']._serialized_start=921 + _globals['_BYTESTREAMREADEREOS_ATTRIBUTESENTRY']._serialized_end=970 + _globals['_STREAMSENDFILEREQUEST']._serialized_start=2203 + _globals['_STREAMSENDFILEREQUEST']._serialized_end=2356 + _globals['_STREAMSENDFILERESPONSE']._serialized_start=2358 + _globals['_STREAMSENDFILERESPONSE']._serialized_end=2400 + _globals['_STREAMSENDFILECALLBACK']._serialized_start=2403 + _globals['_STREAMSENDFILECALLBACK']._serialized_end=2547 + _globals['_STREAMSENDBYTESREQUEST']._serialized_start=2550 + _globals['_STREAMSENDBYTESREQUEST']._serialized_end=2700 + _globals['_STREAMSENDBYTESRESPONSE']._serialized_start=2702 + _globals['_STREAMSENDBYTESRESPONSE']._serialized_end=2745 + _globals['_STREAMSENDBYTESCALLBACK']._serialized_start=2748 + _globals['_STREAMSENDBYTESCALLBACK']._serialized_end=2893 + _globals['_STREAMSENDTEXTREQUEST']._serialized_start=2896 + _globals['_STREAMSENDTEXTREQUEST']._serialized_end=3044 + _globals['_STREAMSENDTEXTRESPONSE']._serialized_start=3046 + _globals['_STREAMSENDTEXTRESPONSE']._serialized_end=3088 + _globals['_STREAMSENDTEXTCALLBACK']._serialized_start=3091 + _globals['_STREAMSENDTEXTCALLBACK']._serialized_end=3235 + _globals['_OWNEDBYTESTREAMWRITER']._serialized_start=3237 + _globals['_OWNEDBYTESTREAMWRITER']._serialized_end=3352 + _globals['_BYTESTREAMOPENREQUEST']._serialized_start=3355 + _globals['_BYTESTREAMOPENREQUEST']._serialized_end=3489 + _globals['_BYTESTREAMOPENRESPONSE']._serialized_start=3491 + _globals['_BYTESTREAMOPENRESPONSE']._serialized_end=3533 + _globals['_BYTESTREAMOPENCALLBACK']._serialized_start=3536 + _globals['_BYTESTREAMOPENCALLBACK']._serialized_end=3689 + _globals['_BYTESTREAMWRITERWRITEREQUEST']._serialized_start=3691 + _globals['_BYTESTREAMWRITERWRITEREQUEST']._serialized_end=3785 + _globals['_BYTESTREAMWRITERWRITERESPONSE']._serialized_start=3787 + _globals['_BYTESTREAMWRITERWRITERESPONSE']._serialized_end=3836 + _globals['_BYTESTREAMWRITERWRITECALLBACK']._serialized_start=3838 + _globals['_BYTESTREAMWRITERWRITECALLBACK']._serialized_end=3930 + _globals['_BYTESTREAMWRITERCLOSEREQUEST']._serialized_start=3933 + _globals['_BYTESTREAMWRITERCLOSEREQUEST']._serialized_end=4160 + _globals['_BYTESTREAMWRITERCLOSEREQUEST_ATTRIBUTESENTRY']._serialized_start=921 + _globals['_BYTESTREAMWRITERCLOSEREQUEST_ATTRIBUTESENTRY']._serialized_end=970 + _globals['_BYTESTREAMWRITERCLOSERESPONSE']._serialized_start=4162 + _globals['_BYTESTREAMWRITERCLOSERESPONSE']._serialized_end=4211 + _globals['_BYTESTREAMWRITERCLOSECALLBACK']._serialized_start=4213 + _globals['_BYTESTREAMWRITERCLOSECALLBACK']._serialized_end=4305 + _globals['_OWNEDTEXTSTREAMWRITER']._serialized_start=4307 + _globals['_OWNEDTEXTSTREAMWRITER']._serialized_end=4422 + _globals['_TEXTSTREAMOPENREQUEST']._serialized_start=4425 + _globals['_TEXTSTREAMOPENREQUEST']._serialized_end=4559 + _globals['_TEXTSTREAMOPENRESPONSE']._serialized_start=4561 + _globals['_TEXTSTREAMOPENRESPONSE']._serialized_end=4603 + _globals['_TEXTSTREAMOPENCALLBACK']._serialized_start=4606 + _globals['_TEXTSTREAMOPENCALLBACK']._serialized_end=4759 + _globals['_TEXTSTREAMWRITERWRITEREQUEST']._serialized_start=4761 + _globals['_TEXTSTREAMWRITERWRITEREQUEST']._serialized_end=4854 + _globals['_TEXTSTREAMWRITERWRITERESPONSE']._serialized_start=4856 + _globals['_TEXTSTREAMWRITERWRITERESPONSE']._serialized_end=4905 + _globals['_TEXTSTREAMWRITERWRITECALLBACK']._serialized_start=4907 + _globals['_TEXTSTREAMWRITERWRITECALLBACK']._serialized_end=4999 + _globals['_TEXTSTREAMWRITERCLOSEREQUEST']._serialized_start=5002 + _globals['_TEXTSTREAMWRITERCLOSEREQUEST']._serialized_end=5229 + _globals['_TEXTSTREAMWRITERCLOSEREQUEST_ATTRIBUTESENTRY']._serialized_start=921 + _globals['_TEXTSTREAMWRITERCLOSEREQUEST_ATTRIBUTESENTRY']._serialized_end=970 + _globals['_TEXTSTREAMWRITERCLOSERESPONSE']._serialized_start=5231 + _globals['_TEXTSTREAMWRITERCLOSERESPONSE']._serialized_end=5280 + _globals['_TEXTSTREAMWRITERCLOSECALLBACK']._serialized_start=5282 + _globals['_TEXTSTREAMWRITERCLOSECALLBACK']._serialized_end=5374 + _globals['_TEXTSTREAMINFO']._serialized_start=5377 + _globals['_TEXTSTREAMINFO']._serialized_end=5890 + _globals['_TEXTSTREAMINFO_ATTRIBUTESENTRY']._serialized_start=921 + _globals['_TEXTSTREAMINFO_ATTRIBUTESENTRY']._serialized_end=970 + _globals['_TEXTSTREAMINFO_OPERATIONTYPE']._serialized_start=5825 + _globals['_TEXTSTREAMINFO_OPERATIONTYPE']._serialized_end=5890 + _globals['_BYTESTREAMINFO']._serialized_start=5893 + _globals['_BYTESTREAMINFO']._serialized_end=6191 + _globals['_BYTESTREAMINFO_ATTRIBUTESENTRY']._serialized_start=921 + _globals['_BYTESTREAMINFO_ATTRIBUTESENTRY']._serialized_end=970 + _globals['_STREAMTEXTOPTIONS']._serialized_start=6194 + _globals['_STREAMTEXTOPTIONS']._serialized_end=6598 + _globals['_STREAMTEXTOPTIONS_ATTRIBUTESENTRY']._serialized_start=921 + _globals['_STREAMTEXTOPTIONS_ATTRIBUTESENTRY']._serialized_end=970 + _globals['_STREAMBYTEOPTIONS']._serialized_start=6601 + _globals['_STREAMBYTEOPTIONS']._serialized_end=6898 + _globals['_STREAMBYTEOPTIONS_ATTRIBUTESENTRY']._serialized_start=921 + _globals['_STREAMBYTEOPTIONS_ATTRIBUTESENTRY']._serialized_end=970 + _globals['_STREAMERROR']._serialized_start=6900 + _globals['_STREAMERROR']._serialized_end=6934 # @@protoc_insertion_point(module_scope) diff --git a/livekit-rtc/livekit/rtc/_proto/data_stream_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/data_stream_pb2.pyi index e68dc45f..55a97daa 100644 --- a/livekit-rtc/livekit/rtc/_proto/data_stream_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/data_stream_pb2.pyi @@ -16,329 +16,407 @@ See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -from . import e2ee_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -from . import handle_pb2 +from collections import abc as _abc +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +import builtins as _builtins +from . import e2ee_pb2 as _e2ee_pb2 +from . import handle_pb2 as _handle_pb2 import sys -import typing +import typing as _typing -if sys.version_info >= (3, 10): - import typing as typing_extensions +if sys.version_info >= (3, 11): + from typing import TypeAlias as _TypeAlias, Never as _Never else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias, Never as _Never -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -@typing.final -class OwnedTextStreamReader(google.protobuf.message.Message): +@_typing.final +class OwnedTextStreamReader(_message.Message): """MARK: - Text stream reader A reader for an incoming stream. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___TextStreamInfo: ... + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___TextStreamInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___TextStreamInfo | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___TextStreamInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___OwnedTextStreamReader = OwnedTextStreamReader +Global___OwnedTextStreamReader: _TypeAlias = OwnedTextStreamReader # noqa: Y015 -@typing.final -class TextStreamReaderReadIncrementalRequest(google.protobuf.message.Message): +@_typing.final +class TextStreamReaderReadIncrementalRequest(_message.Message): """Reads an incoming text stream incrementally.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - READER_HANDLE_FIELD_NUMBER: builtins.int - reader_handle: builtins.int + READER_HANDLE_FIELD_NUMBER: _builtins.int + reader_handle: _builtins.int def __init__( self, *, - reader_handle: builtins.int | None = ..., + reader_handle: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["reader_handle", b"reader_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["reader_handle", b"reader_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["reader_handle", b"reader_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["reader_handle", b"reader_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TextStreamReaderReadIncrementalRequest = TextStreamReaderReadIncrementalRequest +Global___TextStreamReaderReadIncrementalRequest: _TypeAlias = TextStreamReaderReadIncrementalRequest # noqa: Y015 -@typing.final -class TextStreamReaderReadIncrementalResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class TextStreamReaderReadIncrementalResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TextStreamReaderReadIncrementalResponse = TextStreamReaderReadIncrementalResponse +Global___TextStreamReaderReadIncrementalResponse: _TypeAlias = TextStreamReaderReadIncrementalResponse # noqa: Y015 -@typing.final -class TextStreamReaderReadAllRequest(google.protobuf.message.Message): +@_typing.final +class TextStreamReaderReadAllRequest(_message.Message): """Reads an incoming text stream in its entirety.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - READER_HANDLE_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - reader_handle: builtins.int - request_async_id: builtins.int + READER_HANDLE_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + reader_handle: _builtins.int + request_async_id: _builtins.int def __init__( self, *, - reader_handle: builtins.int | None = ..., - request_async_id: builtins.int | None = ..., + reader_handle: _builtins.int | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["reader_handle", b"reader_handle", "request_async_id", b"request_async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["reader_handle", b"reader_handle", "request_async_id", b"request_async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["reader_handle", b"reader_handle", "request_async_id", b"request_async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["reader_handle", b"reader_handle", "request_async_id", b"request_async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TextStreamReaderReadAllRequest = TextStreamReaderReadAllRequest +Global___TextStreamReaderReadAllRequest: _TypeAlias = TextStreamReaderReadAllRequest # noqa: Y015 -@typing.final -class TextStreamReaderReadAllResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class TextStreamReaderReadAllResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... - -global___TextStreamReaderReadAllResponse = TextStreamReaderReadAllResponse - -@typing.final -class TextStreamReaderReadAllCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - CONTENT_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - content: builtins.str - @property - def error(self) -> global___StreamError: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___TextStreamReaderReadAllResponse: _TypeAlias = TextStreamReaderReadAllResponse # noqa: Y015 + +@_typing.final +class TextStreamReaderReadAllCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: _builtins.int + CONTENT_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + content: _builtins.str + @_builtins.property + def error(self) -> Global___StreamError: ... def __init__( self, *, - async_id: builtins.int | None = ..., - content: builtins.str | None = ..., - error: global___StreamError | None = ..., + async_id: _builtins.int | None = ..., + content: _builtins.str | None = ..., + error: Global___StreamError | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "content", b"content", "error", b"error", "result", b"result"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "content", b"content", "error", b"error", "result", b"result"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["content", "error"] | None: ... - -global___TextStreamReaderReadAllCallback = TextStreamReaderReadAllCallback - -@typing.final -class TextStreamReaderEvent(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - READER_HANDLE_FIELD_NUMBER: builtins.int - CHUNK_RECEIVED_FIELD_NUMBER: builtins.int - EOS_FIELD_NUMBER: builtins.int - reader_handle: builtins.int - @property - def chunk_received(self) -> global___TextStreamReaderChunkReceived: ... - @property - def eos(self) -> global___TextStreamReaderEOS: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "content", b"content", "error", b"error", "result", b"result"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "content", b"content", "error", b"error", "result", b"result"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_result: _TypeAlias = _typing.Literal["content", "error"] # noqa: Y015 + _WhichOneofArgType_result: _TypeAlias = _typing.Literal["result", b"result"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_result) -> _WhichOneofReturnType_result | None: ... + +Global___TextStreamReaderReadAllCallback: _TypeAlias = TextStreamReaderReadAllCallback # noqa: Y015 + +@_typing.final +class TextStreamReaderEvent(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + READER_HANDLE_FIELD_NUMBER: _builtins.int + CHUNK_RECEIVED_FIELD_NUMBER: _builtins.int + EOS_FIELD_NUMBER: _builtins.int + reader_handle: _builtins.int + @_builtins.property + def chunk_received(self) -> Global___TextStreamReaderChunkReceived: ... + @_builtins.property + def eos(self) -> Global___TextStreamReaderEOS: ... def __init__( self, *, - reader_handle: builtins.int | None = ..., - chunk_received: global___TextStreamReaderChunkReceived | None = ..., - eos: global___TextStreamReaderEOS | None = ..., + reader_handle: _builtins.int | None = ..., + chunk_received: Global___TextStreamReaderChunkReceived | None = ..., + eos: Global___TextStreamReaderEOS | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["chunk_received", b"chunk_received", "detail", b"detail", "eos", b"eos", "reader_handle", b"reader_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["chunk_received", b"chunk_received", "detail", b"detail", "eos", b"eos", "reader_handle", b"reader_handle"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["detail", b"detail"]) -> typing.Literal["chunk_received", "eos"] | None: ... - -global___TextStreamReaderEvent = TextStreamReaderEvent - -@typing.final -class TextStreamReaderChunkReceived(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - CONTENT_FIELD_NUMBER: builtins.int - content: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["chunk_received", b"chunk_received", "detail", b"detail", "eos", b"eos", "reader_handle", b"reader_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["chunk_received", b"chunk_received", "detail", b"detail", "eos", b"eos", "reader_handle", b"reader_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_detail: _TypeAlias = _typing.Literal["chunk_received", "eos"] # noqa: Y015 + _WhichOneofArgType_detail: _TypeAlias = _typing.Literal["detail", b"detail"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_detail) -> _WhichOneofReturnType_detail | None: ... + +Global___TextStreamReaderEvent: _TypeAlias = TextStreamReaderEvent # noqa: Y015 + +@_typing.final +class TextStreamReaderChunkReceived(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + CONTENT_FIELD_NUMBER: _builtins.int + content: _builtins.str def __init__( self, *, - content: builtins.str | None = ..., + content: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["content", b"content"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["content", b"content"]) -> None: ... - -global___TextStreamReaderChunkReceived = TextStreamReaderChunkReceived - -@typing.final -class TextStreamReaderEOS(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + _HasFieldArgType: _TypeAlias = _typing.Literal["content", b"content"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["content", b"content"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___TextStreamReaderChunkReceived: _TypeAlias = TextStreamReaderChunkReceived # noqa: Y015 + +@_typing.final +class TextStreamReaderEOS(_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 = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + ERROR_FIELD_NUMBER: _builtins.int + ATTRIBUTES_FIELD_NUMBER: _builtins.int + @_builtins.property + def error(self) -> Global___StreamError: ... + @_builtins.property + def attributes(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + """Final stream attributes, including any delivered in the stream trailer.""" - ERROR_FIELD_NUMBER: builtins.int - @property - def error(self) -> global___StreamError: ... def __init__( self, *, - error: global___StreamError | None = ..., + error: Global___StreamError | None = ..., + attributes: _abc.Mapping[_builtins.str, _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["attributes", b"attributes", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TextStreamReaderEOS = TextStreamReaderEOS +Global___TextStreamReaderEOS: _TypeAlias = TextStreamReaderEOS # noqa: Y015 -@typing.final -class OwnedByteStreamReader(google.protobuf.message.Message): +@_typing.final +class OwnedByteStreamReader(_message.Message): """MARK: - Byte stream reader A reader for an incoming stream. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___ByteStreamInfo: ... + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___ByteStreamInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___ByteStreamInfo | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___ByteStreamInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___OwnedByteStreamReader = OwnedByteStreamReader +Global___OwnedByteStreamReader: _TypeAlias = OwnedByteStreamReader # noqa: Y015 -@typing.final -class ByteStreamReaderReadIncrementalRequest(google.protobuf.message.Message): +@_typing.final +class ByteStreamReaderReadIncrementalRequest(_message.Message): """Reads an incoming byte stream incrementally.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - READER_HANDLE_FIELD_NUMBER: builtins.int - reader_handle: builtins.int + READER_HANDLE_FIELD_NUMBER: _builtins.int + reader_handle: _builtins.int def __init__( self, *, - reader_handle: builtins.int | None = ..., + reader_handle: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["reader_handle", b"reader_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["reader_handle", b"reader_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["reader_handle", b"reader_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["reader_handle", b"reader_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ByteStreamReaderReadIncrementalRequest = ByteStreamReaderReadIncrementalRequest +Global___ByteStreamReaderReadIncrementalRequest: _TypeAlias = ByteStreamReaderReadIncrementalRequest # noqa: Y015 -@typing.final -class ByteStreamReaderReadIncrementalResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ByteStreamReaderReadIncrementalResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ByteStreamReaderReadIncrementalResponse = ByteStreamReaderReadIncrementalResponse +Global___ByteStreamReaderReadIncrementalResponse: _TypeAlias = ByteStreamReaderReadIncrementalResponse # noqa: Y015 -@typing.final -class ByteStreamReaderReadAllRequest(google.protobuf.message.Message): +@_typing.final +class ByteStreamReaderReadAllRequest(_message.Message): """Reads an incoming byte stream in its entirety.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - READER_HANDLE_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - reader_handle: builtins.int - request_async_id: builtins.int + READER_HANDLE_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + reader_handle: _builtins.int + request_async_id: _builtins.int def __init__( self, *, - reader_handle: builtins.int | None = ..., - request_async_id: builtins.int | None = ..., + reader_handle: _builtins.int | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["reader_handle", b"reader_handle", "request_async_id", b"request_async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["reader_handle", b"reader_handle", "request_async_id", b"request_async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["reader_handle", b"reader_handle", "request_async_id", b"request_async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["reader_handle", b"reader_handle", "request_async_id", b"request_async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ByteStreamReaderReadAllRequest = ByteStreamReaderReadAllRequest +Global___ByteStreamReaderReadAllRequest: _TypeAlias = ByteStreamReaderReadAllRequest # noqa: Y015 -@typing.final -class ByteStreamReaderReadAllResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ByteStreamReaderReadAllResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... - -global___ByteStreamReaderReadAllResponse = ByteStreamReaderReadAllResponse - -@typing.final -class ByteStreamReaderReadAllCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - CONTENT_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - content: builtins.bytes - @property - def error(self) -> global___StreamError: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___ByteStreamReaderReadAllResponse: _TypeAlias = ByteStreamReaderReadAllResponse # noqa: Y015 + +@_typing.final +class ByteStreamReaderReadAllCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: _builtins.int + CONTENT_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + content: _builtins.bytes + @_builtins.property + def error(self) -> Global___StreamError: ... def __init__( self, *, - async_id: builtins.int | None = ..., - content: builtins.bytes | None = ..., - error: global___StreamError | None = ..., + async_id: _builtins.int | None = ..., + content: _builtins.bytes | None = ..., + error: Global___StreamError | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "content", b"content", "error", b"error", "result", b"result"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "content", b"content", "error", b"error", "result", b"result"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["content", "error"] | None: ... - -global___ByteStreamReaderReadAllCallback = ByteStreamReaderReadAllCallback - -@typing.final -class ByteStreamReaderWriteToFileRequest(google.protobuf.message.Message): + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "content", b"content", "error", b"error", "result", b"result"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "content", b"content", "error", b"error", "result", b"result"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_result: _TypeAlias = _typing.Literal["content", "error"] # noqa: Y015 + _WhichOneofArgType_result: _TypeAlias = _typing.Literal["result", b"result"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_result) -> _WhichOneofReturnType_result | None: ... + +Global___ByteStreamReaderReadAllCallback: _TypeAlias = ByteStreamReaderReadAllCallback # noqa: Y015 + +@_typing.final +class ByteStreamReaderWriteToFileRequest(_message.Message): """Writes data from an incoming stream to a file as it arrives.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - READER_HANDLE_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - DIRECTORY_FIELD_NUMBER: builtins.int - NAME_OVERRIDE_FIELD_NUMBER: builtins.int - reader_handle: builtins.int - request_async_id: builtins.int - directory: builtins.str + READER_HANDLE_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + DIRECTORY_FIELD_NUMBER: _builtins.int + NAME_OVERRIDE_FIELD_NUMBER: _builtins.int + reader_handle: _builtins.int + request_async_id: _builtins.int + directory: _builtins.str """Directory to write the file in (must be writable by the current process). If not provided, the file will be written to the system's temp directory. """ - name_override: builtins.str + name_override: _builtins.str """Name to use for the written file. If not provided, the file's name and extension will be inferred from the stream's info. @@ -346,774 +424,964 @@ class ByteStreamReaderWriteToFileRequest(google.protobuf.message.Message): def __init__( self, *, - reader_handle: builtins.int | None = ..., - request_async_id: builtins.int | None = ..., - directory: builtins.str | None = ..., - name_override: builtins.str | None = ..., + reader_handle: _builtins.int | None = ..., + request_async_id: _builtins.int | None = ..., + directory: _builtins.str | None = ..., + name_override: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["directory", b"directory", "name_override", b"name_override", "reader_handle", b"reader_handle", "request_async_id", b"request_async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["directory", b"directory", "name_override", b"name_override", "reader_handle", b"reader_handle", "request_async_id", b"request_async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["directory", b"directory", "name_override", b"name_override", "reader_handle", b"reader_handle", "request_async_id", b"request_async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["directory", b"directory", "name_override", b"name_override", "reader_handle", b"reader_handle", "request_async_id", b"request_async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ByteStreamReaderWriteToFileRequest = ByteStreamReaderWriteToFileRequest +Global___ByteStreamReaderWriteToFileRequest: _TypeAlias = ByteStreamReaderWriteToFileRequest # noqa: Y015 -@typing.final -class ByteStreamReaderWriteToFileResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ByteStreamReaderWriteToFileResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... - -global___ByteStreamReaderWriteToFileResponse = ByteStreamReaderWriteToFileResponse - -@typing.final -class ByteStreamReaderWriteToFileCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - FILE_PATH_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - file_path: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___ByteStreamReaderWriteToFileResponse: _TypeAlias = ByteStreamReaderWriteToFileResponse # noqa: Y015 + +@_typing.final +class ByteStreamReaderWriteToFileCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: _builtins.int + FILE_PATH_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + file_path: _builtins.str """Path the file was written to.""" - @property - def error(self) -> global___StreamError: ... + @_builtins.property + def error(self) -> Global___StreamError: ... def __init__( self, *, - async_id: builtins.int | None = ..., - file_path: builtins.str | None = ..., - error: global___StreamError | None = ..., + async_id: _builtins.int | None = ..., + file_path: _builtins.str | None = ..., + error: Global___StreamError | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "file_path", b"file_path", "result", b"result"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "file_path", b"file_path", "result", b"result"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["file_path", "error"] | None: ... - -global___ByteStreamReaderWriteToFileCallback = ByteStreamReaderWriteToFileCallback - -@typing.final -class ByteStreamReaderEvent(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - READER_HANDLE_FIELD_NUMBER: builtins.int - CHUNK_RECEIVED_FIELD_NUMBER: builtins.int - EOS_FIELD_NUMBER: builtins.int - reader_handle: builtins.int - @property - def chunk_received(self) -> global___ByteStreamReaderChunkReceived: ... - @property - def eos(self) -> global___ByteStreamReaderEOS: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "file_path", b"file_path", "result", b"result"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "file_path", b"file_path", "result", b"result"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_result: _TypeAlias = _typing.Literal["file_path", "error"] # noqa: Y015 + _WhichOneofArgType_result: _TypeAlias = _typing.Literal["result", b"result"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_result) -> _WhichOneofReturnType_result | None: ... + +Global___ByteStreamReaderWriteToFileCallback: _TypeAlias = ByteStreamReaderWriteToFileCallback # noqa: Y015 + +@_typing.final +class ByteStreamReaderEvent(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + READER_HANDLE_FIELD_NUMBER: _builtins.int + CHUNK_RECEIVED_FIELD_NUMBER: _builtins.int + EOS_FIELD_NUMBER: _builtins.int + reader_handle: _builtins.int + @_builtins.property + def chunk_received(self) -> Global___ByteStreamReaderChunkReceived: ... + @_builtins.property + def eos(self) -> Global___ByteStreamReaderEOS: ... def __init__( self, *, - reader_handle: builtins.int | None = ..., - chunk_received: global___ByteStreamReaderChunkReceived | None = ..., - eos: global___ByteStreamReaderEOS | None = ..., + reader_handle: _builtins.int | None = ..., + chunk_received: Global___ByteStreamReaderChunkReceived | None = ..., + eos: Global___ByteStreamReaderEOS | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["chunk_received", b"chunk_received", "detail", b"detail", "eos", b"eos", "reader_handle", b"reader_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["chunk_received", b"chunk_received", "detail", b"detail", "eos", b"eos", "reader_handle", b"reader_handle"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["detail", b"detail"]) -> typing.Literal["chunk_received", "eos"] | None: ... - -global___ByteStreamReaderEvent = ByteStreamReaderEvent - -@typing.final -class ByteStreamReaderChunkReceived(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - CONTENT_FIELD_NUMBER: builtins.int - content: builtins.bytes + _HasFieldArgType: _TypeAlias = _typing.Literal["chunk_received", b"chunk_received", "detail", b"detail", "eos", b"eos", "reader_handle", b"reader_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["chunk_received", b"chunk_received", "detail", b"detail", "eos", b"eos", "reader_handle", b"reader_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_detail: _TypeAlias = _typing.Literal["chunk_received", "eos"] # noqa: Y015 + _WhichOneofArgType_detail: _TypeAlias = _typing.Literal["detail", b"detail"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_detail) -> _WhichOneofReturnType_detail | None: ... + +Global___ByteStreamReaderEvent: _TypeAlias = ByteStreamReaderEvent # noqa: Y015 + +@_typing.final +class ByteStreamReaderChunkReceived(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + CONTENT_FIELD_NUMBER: _builtins.int + content: _builtins.bytes def __init__( self, *, - content: builtins.bytes | None = ..., + content: _builtins.bytes | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["content", b"content"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["content", b"content"]) -> None: ... - -global___ByteStreamReaderChunkReceived = ByteStreamReaderChunkReceived - -@typing.final -class ByteStreamReaderEOS(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + _HasFieldArgType: _TypeAlias = _typing.Literal["content", b"content"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["content", b"content"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___ByteStreamReaderChunkReceived: _TypeAlias = ByteStreamReaderChunkReceived # noqa: Y015 + +@_typing.final +class ByteStreamReaderEOS(_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 = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + ERROR_FIELD_NUMBER: _builtins.int + ATTRIBUTES_FIELD_NUMBER: _builtins.int + @_builtins.property + def error(self) -> Global___StreamError: ... + @_builtins.property + def attributes(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + """Final stream attributes, including any delivered in the stream trailer.""" - ERROR_FIELD_NUMBER: builtins.int - @property - def error(self) -> global___StreamError: ... def __init__( self, *, - error: global___StreamError | None = ..., + error: Global___StreamError | None = ..., + attributes: _abc.Mapping[_builtins.str, _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["attributes", b"attributes", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ByteStreamReaderEOS = ByteStreamReaderEOS +Global___ByteStreamReaderEOS: _TypeAlias = ByteStreamReaderEOS # noqa: Y015 -@typing.final -class StreamSendFileRequest(google.protobuf.message.Message): +@_typing.final +class StreamSendFileRequest(_message.Message): """MARK: - Send file Sends the contents of a file over a data stream. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - OPTIONS_FIELD_NUMBER: builtins.int - FILE_PATH_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - file_path: builtins.str + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + OPTIONS_FIELD_NUMBER: _builtins.int + FILE_PATH_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + file_path: _builtins.str """Path of the file to send (must be readable by the current process).""" - request_async_id: builtins.int - @property - def options(self) -> global___StreamByteOptions: ... + request_async_id: _builtins.int + @_builtins.property + def options(self) -> Global___StreamByteOptions: ... def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - options: global___StreamByteOptions | None = ..., - file_path: builtins.str | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + options: Global___StreamByteOptions | None = ..., + file_path: _builtins.str | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["file_path", b"file_path", "local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["file_path", b"file_path", "local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["file_path", b"file_path", "local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["file_path", b"file_path", "local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___StreamSendFileRequest = StreamSendFileRequest +Global___StreamSendFileRequest: _TypeAlias = StreamSendFileRequest # noqa: Y015 -@typing.final -class StreamSendFileResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class StreamSendFileResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... - -global___StreamSendFileResponse = StreamSendFileResponse - -@typing.final -class StreamSendFileCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - @property - def info(self) -> global___ByteStreamInfo: ... - @property - def error(self) -> global___StreamError: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___StreamSendFileResponse: _TypeAlias = StreamSendFileResponse # noqa: Y015 + +@_typing.final +class StreamSendFileCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + @_builtins.property + def info(self) -> Global___ByteStreamInfo: ... + @_builtins.property + def error(self) -> Global___StreamError: ... def __init__( self, *, - async_id: builtins.int | None = ..., - info: global___ByteStreamInfo | None = ..., - error: global___StreamError | None = ..., + async_id: _builtins.int | None = ..., + info: Global___ByteStreamInfo | None = ..., + error: Global___StreamError | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["info", "error"] | None: ... - -global___StreamSendFileCallback = StreamSendFileCallback - -@typing.final -class StreamSendBytesRequest(google.protobuf.message.Message): + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_result: _TypeAlias = _typing.Literal["info", "error"] # noqa: Y015 + _WhichOneofArgType_result: _TypeAlias = _typing.Literal["result", b"result"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_result) -> _WhichOneofReturnType_result | None: ... + +Global___StreamSendFileCallback: _TypeAlias = StreamSendFileCallback # noqa: Y015 + +@_typing.final +class StreamSendBytesRequest(_message.Message): """MARK: - Send bytes Sends bytes over a data stream. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - OPTIONS_FIELD_NUMBER: builtins.int - BYTES_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - bytes: builtins.bytes + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + OPTIONS_FIELD_NUMBER: _builtins.int + BYTES_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + bytes: _builtins.bytes """Bytes to send.""" - request_async_id: builtins.int - @property - def options(self) -> global___StreamByteOptions: ... + request_async_id: _builtins.int + @_builtins.property + def options(self) -> Global___StreamByteOptions: ... def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - options: global___StreamByteOptions | None = ..., - bytes: builtins.bytes | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + options: Global___StreamByteOptions | None = ..., + bytes: _builtins.bytes | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["bytes", b"bytes", "local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["bytes", b"bytes", "local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["bytes", b"bytes", "local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["bytes", b"bytes", "local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___StreamSendBytesRequest = StreamSendBytesRequest +Global___StreamSendBytesRequest: _TypeAlias = StreamSendBytesRequest # noqa: Y015 -@typing.final -class StreamSendBytesResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class StreamSendBytesResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... - -global___StreamSendBytesResponse = StreamSendBytesResponse - -@typing.final -class StreamSendBytesCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - @property - def info(self) -> global___ByteStreamInfo: ... - @property - def error(self) -> global___StreamError: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___StreamSendBytesResponse: _TypeAlias = StreamSendBytesResponse # noqa: Y015 + +@_typing.final +class StreamSendBytesCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + @_builtins.property + def info(self) -> Global___ByteStreamInfo: ... + @_builtins.property + def error(self) -> Global___StreamError: ... def __init__( self, *, - async_id: builtins.int | None = ..., - info: global___ByteStreamInfo | None = ..., - error: global___StreamError | None = ..., + async_id: _builtins.int | None = ..., + info: Global___ByteStreamInfo | None = ..., + error: Global___StreamError | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["info", "error"] | None: ... - -global___StreamSendBytesCallback = StreamSendBytesCallback - -@typing.final -class StreamSendTextRequest(google.protobuf.message.Message): + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_result: _TypeAlias = _typing.Literal["info", "error"] # noqa: Y015 + _WhichOneofArgType_result: _TypeAlias = _typing.Literal["result", b"result"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_result) -> _WhichOneofReturnType_result | None: ... + +Global___StreamSendBytesCallback: _TypeAlias = StreamSendBytesCallback # noqa: Y015 + +@_typing.final +class StreamSendTextRequest(_message.Message): """MARK: - Send text Sends text over a data stream. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - OPTIONS_FIELD_NUMBER: builtins.int - TEXT_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - text: builtins.str + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + OPTIONS_FIELD_NUMBER: _builtins.int + TEXT_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + text: _builtins.str """Text to send.""" - request_async_id: builtins.int - @property - def options(self) -> global___StreamTextOptions: ... + request_async_id: _builtins.int + @_builtins.property + def options(self) -> Global___StreamTextOptions: ... def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - options: global___StreamTextOptions | None = ..., - text: builtins.str | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + options: Global___StreamTextOptions | None = ..., + text: _builtins.str | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id", "text", b"text"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id", "text", b"text"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id", "text", b"text"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id", "text", b"text"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___StreamSendTextRequest = StreamSendTextRequest +Global___StreamSendTextRequest: _TypeAlias = StreamSendTextRequest # noqa: Y015 -@typing.final -class StreamSendTextResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class StreamSendTextResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... - -global___StreamSendTextResponse = StreamSendTextResponse - -@typing.final -class StreamSendTextCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - @property - def info(self) -> global___TextStreamInfo: ... - @property - def error(self) -> global___StreamError: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___StreamSendTextResponse: _TypeAlias = StreamSendTextResponse # noqa: Y015 + +@_typing.final +class StreamSendTextCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + @_builtins.property + def info(self) -> Global___TextStreamInfo: ... + @_builtins.property + def error(self) -> Global___StreamError: ... def __init__( self, *, - async_id: builtins.int | None = ..., - info: global___TextStreamInfo | None = ..., - error: global___StreamError | None = ..., + async_id: _builtins.int | None = ..., + info: Global___TextStreamInfo | None = ..., + error: Global___StreamError | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["info", "error"] | None: ... - -global___StreamSendTextCallback = StreamSendTextCallback - -@typing.final -class OwnedByteStreamWriter(google.protobuf.message.Message): + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "info", b"info", "result", b"result"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_result: _TypeAlias = _typing.Literal["info", "error"] # noqa: Y015 + _WhichOneofArgType_result: _TypeAlias = _typing.Literal["result", b"result"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_result) -> _WhichOneofReturnType_result | None: ... + +Global___StreamSendTextCallback: _TypeAlias = StreamSendTextCallback # noqa: Y015 + +@_typing.final +class OwnedByteStreamWriter(_message.Message): """MARK: - Byte stream writer""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___ByteStreamInfo: ... + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___ByteStreamInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___ByteStreamInfo | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___ByteStreamInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___OwnedByteStreamWriter = OwnedByteStreamWriter +Global___OwnedByteStreamWriter: _TypeAlias = OwnedByteStreamWriter # noqa: Y015 -@typing.final -class ByteStreamOpenRequest(google.protobuf.message.Message): +@_typing.final +class ByteStreamOpenRequest(_message.Message): """Opens an outgoing stream. Call must be balanced with a StreamCloseRequest. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - OPTIONS_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - request_async_id: builtins.int - @property - def options(self) -> global___StreamByteOptions: + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + OPTIONS_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + request_async_id: _builtins.int + @_builtins.property + def options(self) -> Global___StreamByteOptions: """Options to use for opening the stream.""" def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - options: global___StreamByteOptions | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + options: Global___StreamByteOptions | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ByteStreamOpenRequest = ByteStreamOpenRequest +Global___ByteStreamOpenRequest: _TypeAlias = ByteStreamOpenRequest # noqa: Y015 -@typing.final -class ByteStreamOpenResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ByteStreamOpenResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... - -global___ByteStreamOpenResponse = ByteStreamOpenResponse - -@typing.final -class ByteStreamOpenCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - WRITER_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - @property - def writer(self) -> global___OwnedByteStreamWriter: ... - @property - def error(self) -> global___StreamError: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___ByteStreamOpenResponse: _TypeAlias = ByteStreamOpenResponse # noqa: Y015 + +@_typing.final +class ByteStreamOpenCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: _builtins.int + WRITER_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + @_builtins.property + def writer(self) -> Global___OwnedByteStreamWriter: ... + @_builtins.property + def error(self) -> Global___StreamError: ... def __init__( self, *, - async_id: builtins.int | None = ..., - writer: global___OwnedByteStreamWriter | None = ..., - error: global___StreamError | None = ..., + async_id: _builtins.int | None = ..., + writer: Global___OwnedByteStreamWriter | None = ..., + error: Global___StreamError | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "writer", b"writer"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "writer", b"writer"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["writer", "error"] | None: ... - -global___ByteStreamOpenCallback = ByteStreamOpenCallback - -@typing.final -class ByteStreamWriterWriteRequest(google.protobuf.message.Message): + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "writer", b"writer"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "writer", b"writer"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_result: _TypeAlias = _typing.Literal["writer", "error"] # noqa: Y015 + _WhichOneofArgType_result: _TypeAlias = _typing.Literal["result", b"result"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_result) -> _WhichOneofReturnType_result | None: ... + +Global___ByteStreamOpenCallback: _TypeAlias = ByteStreamOpenCallback # noqa: Y015 + +@_typing.final +class ByteStreamWriterWriteRequest(_message.Message): """Writes data to a stream writer.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - WRITER_HANDLE_FIELD_NUMBER: builtins.int - BYTES_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - writer_handle: builtins.int - bytes: builtins.bytes - request_async_id: builtins.int + WRITER_HANDLE_FIELD_NUMBER: _builtins.int + BYTES_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + writer_handle: _builtins.int + bytes: _builtins.bytes + request_async_id: _builtins.int def __init__( self, *, - writer_handle: builtins.int | None = ..., - bytes: builtins.bytes | None = ..., - request_async_id: builtins.int | None = ..., + writer_handle: _builtins.int | None = ..., + bytes: _builtins.bytes | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["bytes", b"bytes", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["bytes", b"bytes", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["bytes", b"bytes", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["bytes", b"bytes", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ByteStreamWriterWriteRequest = ByteStreamWriterWriteRequest +Global___ByteStreamWriterWriteRequest: _TypeAlias = ByteStreamWriterWriteRequest # noqa: Y015 -@typing.final -class ByteStreamWriterWriteResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ByteStreamWriterWriteResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... - -global___ByteStreamWriterWriteResponse = ByteStreamWriterWriteResponse - -@typing.final -class ByteStreamWriterWriteCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - @property - def error(self) -> global___StreamError: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___ByteStreamWriterWriteResponse: _TypeAlias = ByteStreamWriterWriteResponse # noqa: Y015 + +@_typing.final +class ByteStreamWriterWriteCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + @_builtins.property + def error(self) -> Global___StreamError: ... def __init__( self, *, - async_id: builtins.int | None = ..., - error: global___StreamError | None = ..., + async_id: _builtins.int | None = ..., + error: Global___StreamError | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ByteStreamWriterWriteCallback = ByteStreamWriterWriteCallback +Global___ByteStreamWriterWriteCallback: _TypeAlias = ByteStreamWriterWriteCallback # noqa: Y015 -@typing.final -class ByteStreamWriterCloseRequest(google.protobuf.message.Message): +@_typing.final +class ByteStreamWriterCloseRequest(_message.Message): """Closes a stream writer.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor + + @_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 = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + WRITER_HANDLE_FIELD_NUMBER: _builtins.int + REASON_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + ATTRIBUTES_FIELD_NUMBER: _builtins.int + writer_handle: _builtins.int + reason: _builtins.str + request_async_id: _builtins.int + @_builtins.property + def attributes(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + """Attributes to attach to the stream trailer.""" - 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 = ..., + attributes: _abc.Mapping[_builtins.str, _builtins.str] | 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["attributes", b"attributes", "reason", b"reason", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ByteStreamWriterCloseRequest = ByteStreamWriterCloseRequest +Global___ByteStreamWriterCloseRequest: _TypeAlias = ByteStreamWriterCloseRequest # noqa: Y015 -@typing.final -class ByteStreamWriterCloseResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ByteStreamWriterCloseResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... - -global___ByteStreamWriterCloseResponse = ByteStreamWriterCloseResponse - -@typing.final -class ByteStreamWriterCloseCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - @property - def error(self) -> global___StreamError: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___ByteStreamWriterCloseResponse: _TypeAlias = ByteStreamWriterCloseResponse # noqa: Y015 + +@_typing.final +class ByteStreamWriterCloseCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + @_builtins.property + def error(self) -> Global___StreamError: ... def __init__( self, *, - async_id: builtins.int | None = ..., - error: global___StreamError | None = ..., + async_id: _builtins.int | None = ..., + error: Global___StreamError | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ByteStreamWriterCloseCallback = ByteStreamWriterCloseCallback +Global___ByteStreamWriterCloseCallback: _TypeAlias = ByteStreamWriterCloseCallback # noqa: Y015 -@typing.final -class OwnedTextStreamWriter(google.protobuf.message.Message): +@_typing.final +class OwnedTextStreamWriter(_message.Message): """MARK: - Text stream writer""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___TextStreamInfo: ... + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___TextStreamInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___TextStreamInfo | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___TextStreamInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___OwnedTextStreamWriter = OwnedTextStreamWriter +Global___OwnedTextStreamWriter: _TypeAlias = OwnedTextStreamWriter # noqa: Y015 -@typing.final -class TextStreamOpenRequest(google.protobuf.message.Message): +@_typing.final +class TextStreamOpenRequest(_message.Message): """Opens an outgoing text stream. Call must be balanced with a TextStreamCloseRequest. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - OPTIONS_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - request_async_id: builtins.int - @property - def options(self) -> global___StreamTextOptions: + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + OPTIONS_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + request_async_id: _builtins.int + @_builtins.property + def options(self) -> Global___StreamTextOptions: """Options to use for opening the stream.""" def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - options: global___StreamTextOptions | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + options: Global___StreamTextOptions | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TextStreamOpenRequest = TextStreamOpenRequest +Global___TextStreamOpenRequest: _TypeAlias = TextStreamOpenRequest # noqa: Y015 -@typing.final -class TextStreamOpenResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class TextStreamOpenResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... - -global___TextStreamOpenResponse = TextStreamOpenResponse - -@typing.final -class TextStreamOpenCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - WRITER_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - @property - def writer(self) -> global___OwnedTextStreamWriter: ... - @property - def error(self) -> global___StreamError: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___TextStreamOpenResponse: _TypeAlias = TextStreamOpenResponse # noqa: Y015 + +@_typing.final +class TextStreamOpenCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: _builtins.int + WRITER_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + @_builtins.property + def writer(self) -> Global___OwnedTextStreamWriter: ... + @_builtins.property + def error(self) -> Global___StreamError: ... def __init__( self, *, - async_id: builtins.int | None = ..., - writer: global___OwnedTextStreamWriter | None = ..., - error: global___StreamError | None = ..., + async_id: _builtins.int | None = ..., + writer: Global___OwnedTextStreamWriter | None = ..., + error: Global___StreamError | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "writer", b"writer"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "writer", b"writer"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["result", b"result"]) -> typing.Literal["writer", "error"] | None: ... - -global___TextStreamOpenCallback = TextStreamOpenCallback - -@typing.final -class TextStreamWriterWriteRequest(google.protobuf.message.Message): + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "writer", b"writer"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "result", b"result", "writer", b"writer"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_result: _TypeAlias = _typing.Literal["writer", "error"] # noqa: Y015 + _WhichOneofArgType_result: _TypeAlias = _typing.Literal["result", b"result"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_result) -> _WhichOneofReturnType_result | None: ... + +Global___TextStreamOpenCallback: _TypeAlias = TextStreamOpenCallback # noqa: Y015 + +@_typing.final +class TextStreamWriterWriteRequest(_message.Message): """Writes text to a text stream writer.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - WRITER_HANDLE_FIELD_NUMBER: builtins.int - TEXT_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - writer_handle: builtins.int - text: builtins.str - request_async_id: builtins.int + WRITER_HANDLE_FIELD_NUMBER: _builtins.int + TEXT_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + writer_handle: _builtins.int + text: _builtins.str + request_async_id: _builtins.int def __init__( self, *, - writer_handle: builtins.int | None = ..., - text: builtins.str | None = ..., - request_async_id: builtins.int | None = ..., + writer_handle: _builtins.int | None = ..., + text: _builtins.str | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["request_async_id", b"request_async_id", "text", b"text", "writer_handle", b"writer_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["request_async_id", b"request_async_id", "text", b"text", "writer_handle", b"writer_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["request_async_id", b"request_async_id", "text", b"text", "writer_handle", b"writer_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["request_async_id", b"request_async_id", "text", b"text", "writer_handle", b"writer_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TextStreamWriterWriteRequest = TextStreamWriterWriteRequest +Global___TextStreamWriterWriteRequest: _TypeAlias = TextStreamWriterWriteRequest # noqa: Y015 -@typing.final -class TextStreamWriterWriteResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class TextStreamWriterWriteResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... - -global___TextStreamWriterWriteResponse = TextStreamWriterWriteResponse - -@typing.final -class TextStreamWriterWriteCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - @property - def error(self) -> global___StreamError: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___TextStreamWriterWriteResponse: _TypeAlias = TextStreamWriterWriteResponse # noqa: Y015 + +@_typing.final +class TextStreamWriterWriteCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + @_builtins.property + def error(self) -> Global___StreamError: ... def __init__( self, *, - async_id: builtins.int | None = ..., - error: global___StreamError | None = ..., + async_id: _builtins.int | None = ..., + error: Global___StreamError | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TextStreamWriterWriteCallback = TextStreamWriterWriteCallback +Global___TextStreamWriterWriteCallback: _TypeAlias = TextStreamWriterWriteCallback # noqa: Y015 -@typing.final -class TextStreamWriterCloseRequest(google.protobuf.message.Message): +@_typing.final +class TextStreamWriterCloseRequest(_message.Message): """Closes a text stream writer.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor + + @_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 = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + WRITER_HANDLE_FIELD_NUMBER: _builtins.int + REASON_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + ATTRIBUTES_FIELD_NUMBER: _builtins.int + writer_handle: _builtins.int + reason: _builtins.str + request_async_id: _builtins.int + @_builtins.property + def attributes(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + """Attributes to attach to the stream trailer.""" - 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 = ..., + attributes: _abc.Mapping[_builtins.str, _builtins.str] | 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["attributes", b"attributes", "reason", b"reason", "request_async_id", b"request_async_id", "writer_handle", b"writer_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TextStreamWriterCloseRequest = TextStreamWriterCloseRequest +Global___TextStreamWriterCloseRequest: _TypeAlias = TextStreamWriterCloseRequest # noqa: Y015 -@typing.final -class TextStreamWriterCloseResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class TextStreamWriterCloseResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... - -global___TextStreamWriterCloseResponse = TextStreamWriterCloseResponse - -@typing.final -class TextStreamWriterCloseCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - @property - def error(self) -> global___StreamError: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___TextStreamWriterCloseResponse: _TypeAlias = TextStreamWriterCloseResponse # noqa: Y015 + +@_typing.final +class TextStreamWriterCloseCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + @_builtins.property + def error(self) -> Global___StreamError: ... def __init__( self, *, - async_id: builtins.int | None = ..., - error: global___StreamError | None = ..., + async_id: _builtins.int | None = ..., + error: Global___StreamError | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TextStreamWriterCloseCallback = TextStreamWriterCloseCallback +Global___TextStreamWriterCloseCallback: _TypeAlias = TextStreamWriterCloseCallback # noqa: Y015 -@typing.final -class TextStreamInfo(google.protobuf.message.Message): +@_typing.final +class TextStreamInfo(_message.Message): """Contains a subset of the fields from the stream header. Protocol-level fields not relevant to the FFI client are omitted (e.g. encryption info). """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor class _OperationType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 - class _OperationTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[TextStreamInfo._OperationType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + class _OperationTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[TextStreamInfo._OperationType.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor CREATE: TextStreamInfo._OperationType.ValueType # 0 UPDATE: TextStreamInfo._OperationType.ValueType # 1 DELETE: TextStreamInfo._OperationType.ValueType # 2 @@ -1125,268 +1393,309 @@ class TextStreamInfo(google.protobuf.message.Message): DELETE: TextStreamInfo.OperationType.ValueType # 2 REACTION: TextStreamInfo.OperationType.ValueType # 3 - @typing.final - class AttributesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class AttributesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str | None = ..., - value: builtins.str | None = ..., + key: _builtins.str | None = ..., + value: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - STREAM_ID_FIELD_NUMBER: builtins.int - TIMESTAMP_FIELD_NUMBER: builtins.int - MIME_TYPE_FIELD_NUMBER: builtins.int - TOPIC_FIELD_NUMBER: builtins.int - TOTAL_LENGTH_FIELD_NUMBER: builtins.int - ATTRIBUTES_FIELD_NUMBER: builtins.int - OPERATION_TYPE_FIELD_NUMBER: builtins.int - VERSION_FIELD_NUMBER: builtins.int - REPLY_TO_STREAM_ID_FIELD_NUMBER: builtins.int - ATTACHED_STREAM_IDS_FIELD_NUMBER: builtins.int - GENERATED_FIELD_NUMBER: builtins.int - ENCRYPTION_TYPE_FIELD_NUMBER: builtins.int - stream_id: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + STREAM_ID_FIELD_NUMBER: _builtins.int + TIMESTAMP_FIELD_NUMBER: _builtins.int + MIME_TYPE_FIELD_NUMBER: _builtins.int + TOPIC_FIELD_NUMBER: _builtins.int + TOTAL_LENGTH_FIELD_NUMBER: _builtins.int + ATTRIBUTES_FIELD_NUMBER: _builtins.int + OPERATION_TYPE_FIELD_NUMBER: _builtins.int + VERSION_FIELD_NUMBER: _builtins.int + REPLY_TO_STREAM_ID_FIELD_NUMBER: _builtins.int + ATTACHED_STREAM_IDS_FIELD_NUMBER: _builtins.int + GENERATED_FIELD_NUMBER: _builtins.int + ENCRYPTION_TYPE_FIELD_NUMBER: _builtins.int + stream_id: _builtins.str """unique identifier for this data stream""" - timestamp: builtins.int + timestamp: _builtins.int """using int64 for Unix timestamp""" - mime_type: builtins.str - topic: builtins.str - total_length: builtins.int + mime_type: _builtins.str + topic: _builtins.str + total_length: _builtins.int """only populated for finite streams, if it's a stream of unknown size this stays empty""" - operation_type: global___TextStreamInfo.OperationType.ValueType - version: builtins.int + operation_type: Global___TextStreamInfo.OperationType.ValueType + version: _builtins.int """Optional: Version for updates/edits""" - reply_to_stream_id: builtins.str + reply_to_stream_id: _builtins.str """Optional: Reply to specific message""" - generated: builtins.bool + generated: _builtins.bool """true if the text has been generated by an agent from a participant's audio transcription""" - encryption_type: e2ee_pb2.EncryptionType.ValueType - @property - def attributes(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + encryption_type: _e2ee_pb2.EncryptionType.ValueType + @_builtins.property + def attributes(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: """user defined attributes map that can carry additional info""" - @property - def attached_stream_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + @_builtins.property + def attached_stream_ids(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: """file attachments for text streams""" def __init__( self, *, - stream_id: builtins.str | None = ..., - timestamp: builtins.int | None = ..., - mime_type: builtins.str | None = ..., - topic: builtins.str | None = ..., - total_length: builtins.int | None = ..., - attributes: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - operation_type: global___TextStreamInfo.OperationType.ValueType | None = ..., - version: builtins.int | None = ..., - reply_to_stream_id: builtins.str | None = ..., - attached_stream_ids: collections.abc.Iterable[builtins.str] | None = ..., - generated: builtins.bool | None = ..., - encryption_type: e2ee_pb2.EncryptionType.ValueType | None = ..., + stream_id: _builtins.str | None = ..., + timestamp: _builtins.int | None = ..., + mime_type: _builtins.str | None = ..., + topic: _builtins.str | None = ..., + total_length: _builtins.int | None = ..., + attributes: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + operation_type: Global___TextStreamInfo.OperationType.ValueType | None = ..., + version: _builtins.int | None = ..., + reply_to_stream_id: _builtins.str | None = ..., + attached_stream_ids: _abc.Iterable[_builtins.str] | None = ..., + generated: _builtins.bool | None = ..., + encryption_type: _e2ee_pb2.EncryptionType.ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["encryption_type", b"encryption_type", "generated", b"generated", "mime_type", b"mime_type", "operation_type", b"operation_type", "reply_to_stream_id", b"reply_to_stream_id", "stream_id", b"stream_id", "timestamp", b"timestamp", "topic", b"topic", "total_length", b"total_length", "version", b"version"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["attached_stream_ids", b"attached_stream_ids", "attributes", b"attributes", "encryption_type", b"encryption_type", "generated", b"generated", "mime_type", b"mime_type", "operation_type", b"operation_type", "reply_to_stream_id", b"reply_to_stream_id", "stream_id", b"stream_id", "timestamp", b"timestamp", "topic", b"topic", "total_length", b"total_length", "version", b"version"]) -> None: ... - -global___TextStreamInfo = TextStreamInfo - -@typing.final -class ByteStreamInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class AttributesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["encryption_type", b"encryption_type", "generated", b"generated", "mime_type", b"mime_type", "operation_type", b"operation_type", "reply_to_stream_id", b"reply_to_stream_id", "stream_id", b"stream_id", "timestamp", b"timestamp", "topic", b"topic", "total_length", b"total_length", "version", b"version"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["attached_stream_ids", b"attached_stream_ids", "attributes", b"attributes", "encryption_type", b"encryption_type", "generated", b"generated", "mime_type", b"mime_type", "operation_type", b"operation_type", "reply_to_stream_id", b"reply_to_stream_id", "stream_id", b"stream_id", "timestamp", b"timestamp", "topic", b"topic", "total_length", b"total_length", "version", b"version"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___TextStreamInfo: _TypeAlias = TextStreamInfo # noqa: Y015 + +@_typing.final +class ByteStreamInfo(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class AttributesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str | None = ..., - value: builtins.str | None = ..., + key: _builtins.str | None = ..., + value: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - STREAM_ID_FIELD_NUMBER: builtins.int - TIMESTAMP_FIELD_NUMBER: builtins.int - MIME_TYPE_FIELD_NUMBER: builtins.int - TOPIC_FIELD_NUMBER: builtins.int - TOTAL_LENGTH_FIELD_NUMBER: builtins.int - ATTRIBUTES_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - ENCRYPTION_TYPE_FIELD_NUMBER: builtins.int - stream_id: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + STREAM_ID_FIELD_NUMBER: _builtins.int + TIMESTAMP_FIELD_NUMBER: _builtins.int + MIME_TYPE_FIELD_NUMBER: _builtins.int + TOPIC_FIELD_NUMBER: _builtins.int + TOTAL_LENGTH_FIELD_NUMBER: _builtins.int + ATTRIBUTES_FIELD_NUMBER: _builtins.int + NAME_FIELD_NUMBER: _builtins.int + ENCRYPTION_TYPE_FIELD_NUMBER: _builtins.int + stream_id: _builtins.str """unique identifier for this data stream""" - timestamp: builtins.int + timestamp: _builtins.int """using int64 for Unix timestamp""" - mime_type: builtins.str - topic: builtins.str - total_length: builtins.int + mime_type: _builtins.str + topic: _builtins.str + total_length: _builtins.int """only populated for finite streams, if it's a stream of unknown size this stays empty""" - name: builtins.str - encryption_type: e2ee_pb2.EncryptionType.ValueType - @property - def attributes(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + name: _builtins.str + encryption_type: _e2ee_pb2.EncryptionType.ValueType + @_builtins.property + def attributes(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: """user defined attributes map that can carry additional info""" def __init__( self, *, - stream_id: builtins.str | None = ..., - timestamp: builtins.int | None = ..., - mime_type: builtins.str | None = ..., - topic: builtins.str | None = ..., - total_length: builtins.int | None = ..., - attributes: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - name: builtins.str | None = ..., - encryption_type: e2ee_pb2.EncryptionType.ValueType | None = ..., + stream_id: _builtins.str | None = ..., + timestamp: _builtins.int | None = ..., + mime_type: _builtins.str | None = ..., + topic: _builtins.str | None = ..., + total_length: _builtins.int | None = ..., + attributes: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + name: _builtins.str | None = ..., + encryption_type: _e2ee_pb2.EncryptionType.ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["encryption_type", b"encryption_type", "mime_type", b"mime_type", "name", b"name", "stream_id", b"stream_id", "timestamp", b"timestamp", "topic", b"topic", "total_length", b"total_length"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["attributes", b"attributes", "encryption_type", b"encryption_type", "mime_type", b"mime_type", "name", b"name", "stream_id", b"stream_id", "timestamp", b"timestamp", "topic", b"topic", "total_length", b"total_length"]) -> None: ... - -global___ByteStreamInfo = ByteStreamInfo - -@typing.final -class StreamTextOptions(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class AttributesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["encryption_type", b"encryption_type", "mime_type", b"mime_type", "name", b"name", "stream_id", b"stream_id", "timestamp", b"timestamp", "topic", b"topic", "total_length", b"total_length"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["attributes", b"attributes", "encryption_type", b"encryption_type", "mime_type", b"mime_type", "name", b"name", "stream_id", b"stream_id", "timestamp", b"timestamp", "topic", b"topic", "total_length", b"total_length"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___ByteStreamInfo: _TypeAlias = ByteStreamInfo # noqa: Y015 + +@_typing.final +class StreamTextOptions(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class AttributesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str | None = ..., - value: builtins.str | None = ..., + key: _builtins.str | None = ..., + value: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - TOPIC_FIELD_NUMBER: builtins.int - ATTRIBUTES_FIELD_NUMBER: builtins.int - DESTINATION_IDENTITIES_FIELD_NUMBER: builtins.int - ID_FIELD_NUMBER: builtins.int - OPERATION_TYPE_FIELD_NUMBER: builtins.int - VERSION_FIELD_NUMBER: builtins.int - REPLY_TO_STREAM_ID_FIELD_NUMBER: builtins.int - ATTACHED_STREAM_IDS_FIELD_NUMBER: builtins.int - GENERATED_FIELD_NUMBER: builtins.int - topic: builtins.str - id: builtins.str - operation_type: global___TextStreamInfo.OperationType.ValueType - version: builtins.int - reply_to_stream_id: builtins.str - generated: builtins.bool - @property - def attributes(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - @property - def destination_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... - @property - def attached_stream_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + TOPIC_FIELD_NUMBER: _builtins.int + ATTRIBUTES_FIELD_NUMBER: _builtins.int + DESTINATION_IDENTITIES_FIELD_NUMBER: _builtins.int + ID_FIELD_NUMBER: _builtins.int + OPERATION_TYPE_FIELD_NUMBER: _builtins.int + VERSION_FIELD_NUMBER: _builtins.int + REPLY_TO_STREAM_ID_FIELD_NUMBER: _builtins.int + ATTACHED_STREAM_IDS_FIELD_NUMBER: _builtins.int + GENERATED_FIELD_NUMBER: _builtins.int + COMPRESS_FIELD_NUMBER: _builtins.int + SENDER_IDENTITY_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 + compress: _builtins.bool + sender_identity: _builtins.str + """Identity the stream's packets are attributed to; requires permission to impersonate.""" + @_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 = ..., + compress: _builtins.bool | None = ..., + sender_identity: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["generated", b"generated", "id", b"id", "operation_type", b"operation_type", "reply_to_stream_id", b"reply_to_stream_id", "topic", b"topic", "version", b"version"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["attached_stream_ids", b"attached_stream_ids", "attributes", b"attributes", "destination_identities", b"destination_identities", "generated", b"generated", "id", b"id", "operation_type", b"operation_type", "reply_to_stream_id", b"reply_to_stream_id", "topic", b"topic", "version", b"version"]) -> None: ... - -global___StreamTextOptions = StreamTextOptions - -@typing.final -class StreamByteOptions(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class AttributesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["compress", b"compress", "generated", b"generated", "id", b"id", "operation_type", b"operation_type", "reply_to_stream_id", b"reply_to_stream_id", "sender_identity", b"sender_identity", "topic", b"topic", "version", b"version"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["attached_stream_ids", b"attached_stream_ids", "attributes", b"attributes", "compress", b"compress", "destination_identities", b"destination_identities", "generated", b"generated", "id", b"id", "operation_type", b"operation_type", "reply_to_stream_id", b"reply_to_stream_id", "sender_identity", b"sender_identity", "topic", b"topic", "version", b"version"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___StreamTextOptions: _TypeAlias = StreamTextOptions # noqa: Y015 + +@_typing.final +class StreamByteOptions(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class AttributesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str | None = ..., - value: builtins.str | None = ..., + key: _builtins.str | None = ..., + value: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - TOPIC_FIELD_NUMBER: builtins.int - ATTRIBUTES_FIELD_NUMBER: builtins.int - DESTINATION_IDENTITIES_FIELD_NUMBER: builtins.int - ID_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - MIME_TYPE_FIELD_NUMBER: builtins.int - TOTAL_LENGTH_FIELD_NUMBER: builtins.int - topic: builtins.str - id: builtins.str - name: builtins.str - mime_type: builtins.str - total_length: builtins.int - @property - def attributes(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - @property - def destination_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + TOPIC_FIELD_NUMBER: _builtins.int + ATTRIBUTES_FIELD_NUMBER: _builtins.int + DESTINATION_IDENTITIES_FIELD_NUMBER: _builtins.int + ID_FIELD_NUMBER: _builtins.int + NAME_FIELD_NUMBER: _builtins.int + MIME_TYPE_FIELD_NUMBER: _builtins.int + TOTAL_LENGTH_FIELD_NUMBER: _builtins.int + COMPRESS_FIELD_NUMBER: _builtins.int + SENDER_IDENTITY_FIELD_NUMBER: _builtins.int + topic: _builtins.str + id: _builtins.str + name: _builtins.str + mime_type: _builtins.str + total_length: _builtins.int + compress: _builtins.bool + sender_identity: _builtins.str + """Identity the stream's packets are attributed to; requires permission to impersonate.""" + @_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 = ..., + compress: _builtins.bool | None = ..., + sender_identity: _builtins.str | 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["compress", b"compress", "id", b"id", "mime_type", b"mime_type", "name", b"name", "sender_identity", b"sender_identity", "topic", b"topic", "total_length", b"total_length"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["attributes", b"attributes", "compress", b"compress", "destination_identities", b"destination_identities", "id", b"id", "mime_type", b"mime_type", "name", b"name", "sender_identity", b"sender_identity", "topic", b"topic", "total_length", b"total_length"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___StreamByteOptions = StreamByteOptions +Global___StreamByteOptions: _TypeAlias = StreamByteOptions # noqa: Y015 -@typing.final -class StreamError(google.protobuf.message.Message): +@_typing.final +class StreamError(_message.Message): """Error pertaining to a stream.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - DESCRIPTION_FIELD_NUMBER: builtins.int - description: builtins.str + DESCRIPTION_FIELD_NUMBER: _builtins.int + description: _builtins.str """TODO(ladvoc): make this an enum.""" def __init__( self, *, - description: builtins.str | None = ..., + description: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["description", b"description"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["description", b"description"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["description", b"description"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["description", b"description"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___StreamError = StreamError +Global___StreamError: _TypeAlias = StreamError # noqa: Y015 diff --git a/livekit-rtc/livekit/rtc/_proto/data_track_pb2.py b/livekit-rtc/livekit/rtc/_proto/data_track_pb2.py index 995dbf3a..c03f5489 100644 --- a/livekit-rtc/livekit/rtc/_proto/data_track_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/data_track_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: data_track.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 4.25.2 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool diff --git a/livekit-rtc/livekit/rtc/_proto/data_track_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/data_track_pb2.pyi index 21fca5ad..983fabbe 100644 --- a/livekit-rtc/livekit/rtc/_proto/data_track_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/data_track_pb2.pyi @@ -16,27 +16,27 @@ See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -from . import handle_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +import builtins as _builtins +from . import handle_pb2 as _handle_pb2 import sys -import typing +import typing as _typing -if sys.version_info >= (3, 10): - import typing as typing_extensions +if sys.version_info >= (3, 11): + from typing import TypeAlias as _TypeAlias, Never as _Never else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias, Never as _Never -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor class _DataTrackErrorCode: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _DataTrackErrorCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DataTrackErrorCode.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _DataTrackErrorCodeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_DataTrackErrorCode.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor DATA_TRACK_ERROR_CODE_UNKNOWN: _DataTrackErrorCode.ValueType # 0 DATA_TRACK_ERROR_CODE_INVALID_HANDLE: _DataTrackErrorCode.ValueType # 1 DATA_TRACK_ERROR_CODE_DUPLICATE_TRACK_NAME: _DataTrackErrorCode.ValueType # 2 @@ -58,14 +58,14 @@ DATA_TRACK_ERROR_CODE_SUBSCRIPTION_CLOSED: DataTrackErrorCode.ValueType # 5 DATA_TRACK_ERROR_CODE_CANCELLED: DataTrackErrorCode.ValueType # 6 DATA_TRACK_ERROR_CODE_PROTOCOL_ERROR: DataTrackErrorCode.ValueType # 7 DATA_TRACK_ERROR_CODE_INTERNAL: DataTrackErrorCode.ValueType # 8 -global___DataTrackErrorCode = DataTrackErrorCode +Global___DataTrackErrorCode: _TypeAlias = DataTrackErrorCode # noqa: Y015 class _PublishDataTrackErrorCode: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _PublishDataTrackErrorCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_PublishDataTrackErrorCode.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _PublishDataTrackErrorCodeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_PublishDataTrackErrorCode.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor PUBLISH_DATA_TRACK_ERROR_CODE_UNKNOWN: _PublishDataTrackErrorCode.ValueType # 0 PUBLISH_DATA_TRACK_ERROR_CODE_INVALID_HANDLE: _PublishDataTrackErrorCode.ValueType # 1 PUBLISH_DATA_TRACK_ERROR_CODE_DUPLICATE_NAME: _PublishDataTrackErrorCode.ValueType # 2 @@ -89,14 +89,14 @@ PUBLISH_DATA_TRACK_ERROR_CODE_INVALID_NAME: PublishDataTrackErrorCode.ValueType PUBLISH_DATA_TRACK_ERROR_CODE_LIMIT_REACHED: PublishDataTrackErrorCode.ValueType # 7 PUBLISH_DATA_TRACK_ERROR_CODE_PROTOCOL_ERROR: PublishDataTrackErrorCode.ValueType # 8 PUBLISH_DATA_TRACK_ERROR_CODE_INTERNAL: PublishDataTrackErrorCode.ValueType # 9 -global___PublishDataTrackErrorCode = PublishDataTrackErrorCode +Global___PublishDataTrackErrorCode: _TypeAlias = PublishDataTrackErrorCode # noqa: Y015 class _LocalDataTrackTryPushErrorCode: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _LocalDataTrackTryPushErrorCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_LocalDataTrackTryPushErrorCode.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _LocalDataTrackTryPushErrorCodeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_LocalDataTrackTryPushErrorCode.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_UNKNOWN: _LocalDataTrackTryPushErrorCode.ValueType # 0 LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_INVALID_HANDLE: _LocalDataTrackTryPushErrorCode.ValueType # 1 LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_TRACK_UNPUBLISHED: _LocalDataTrackTryPushErrorCode.ValueType # 2 @@ -110,14 +110,14 @@ LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_INVALID_HANDLE: LocalDataTrackTryPushErrorC LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_TRACK_UNPUBLISHED: LocalDataTrackTryPushErrorCode.ValueType # 2 LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_QUEUE_FULL: LocalDataTrackTryPushErrorCode.ValueType # 3 LOCAL_DATA_TRACK_TRY_PUSH_ERROR_CODE_INTERNAL: LocalDataTrackTryPushErrorCode.ValueType # 4 -global___LocalDataTrackTryPushErrorCode = LocalDataTrackTryPushErrorCode +Global___LocalDataTrackTryPushErrorCode: _TypeAlias = LocalDataTrackTryPushErrorCode # noqa: Y015 class _SubscribeDataTrackErrorCode: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _SubscribeDataTrackErrorCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SubscribeDataTrackErrorCode.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _SubscribeDataTrackErrorCodeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_SubscribeDataTrackErrorCode.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor SUBSCRIBE_DATA_TRACK_ERROR_CODE_UNKNOWN: _SubscribeDataTrackErrorCode.ValueType # 0 SUBSCRIBE_DATA_TRACK_ERROR_CODE_INVALID_HANDLE: _SubscribeDataTrackErrorCode.ValueType # 1 SUBSCRIBE_DATA_TRACK_ERROR_CODE_UNPUBLISHED: _SubscribeDataTrackErrorCode.ValueType # 2 @@ -135,146 +135,164 @@ SUBSCRIBE_DATA_TRACK_ERROR_CODE_TIMEOUT: SubscribeDataTrackErrorCode.ValueType SUBSCRIBE_DATA_TRACK_ERROR_CODE_DISCONNECTED: SubscribeDataTrackErrorCode.ValueType # 4 SUBSCRIBE_DATA_TRACK_ERROR_CODE_PROTOCOL_ERROR: SubscribeDataTrackErrorCode.ValueType # 5 SUBSCRIBE_DATA_TRACK_ERROR_CODE_INTERNAL: SubscribeDataTrackErrorCode.ValueType # 6 -global___SubscribeDataTrackErrorCode = SubscribeDataTrackErrorCode +Global___SubscribeDataTrackErrorCode: _TypeAlias = SubscribeDataTrackErrorCode # noqa: Y015 -@typing.final -class DataTrackInfo(google.protobuf.message.Message): +@_typing.final +class DataTrackInfo(_message.Message): """MARK: - Common Information about a published data track. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - SID_FIELD_NUMBER: builtins.int - USES_E2EE_FIELD_NUMBER: builtins.int - name: builtins.str + NAME_FIELD_NUMBER: _builtins.int + SID_FIELD_NUMBER: _builtins.int + USES_E2EE_FIELD_NUMBER: _builtins.int + name: _builtins.str """Name of the track assigned by the publisher.""" - sid: builtins.str + sid: _builtins.str """SFU-assigned track identifier.""" - uses_e2ee: builtins.bool + uses_e2ee: _builtins.bool """Whether or not frames sent on the track use end-to-end encryption.""" def __init__( self, *, - name: builtins.str | None = ..., - sid: builtins.str | None = ..., - uses_e2ee: builtins.bool | None = ..., + name: _builtins.str | None = ..., + sid: _builtins.str | None = ..., + uses_e2ee: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["name", b"name", "sid", b"sid", "uses_e2ee", b"uses_e2ee"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["name", b"name", "sid", b"sid", "uses_e2ee", b"uses_e2ee"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "sid", b"sid", "uses_e2ee", b"uses_e2ee"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "sid", b"sid", "uses_e2ee", b"uses_e2ee"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DataTrackInfo = DataTrackInfo +Global___DataTrackInfo: _TypeAlias = DataTrackInfo # noqa: Y015 -@typing.final -class DataTrackFrame(google.protobuf.message.Message): +@_typing.final +class DataTrackFrame(_message.Message): """A frame published on a data track.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - PAYLOAD_FIELD_NUMBER: builtins.int - USER_TIMESTAMP_FIELD_NUMBER: builtins.int - payload: builtins.bytes - user_timestamp: builtins.int + PAYLOAD_FIELD_NUMBER: _builtins.int + USER_TIMESTAMP_FIELD_NUMBER: _builtins.int + payload: _builtins.bytes + user_timestamp: _builtins.int def __init__( self, *, - payload: builtins.bytes | None = ..., - user_timestamp: builtins.int | None = ..., + payload: _builtins.bytes | None = ..., + user_timestamp: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["payload", b"payload", "user_timestamp", b"user_timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["payload", b"payload", "user_timestamp", b"user_timestamp"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["payload", b"payload", "user_timestamp", b"user_timestamp"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["payload", b"payload", "user_timestamp", b"user_timestamp"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DataTrackFrame = 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: ... + def WhichOneof(self, oneof_group: _Never) -> 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: ... + def WhichOneof(self, oneof_group: _Never) -> 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: ... + def WhichOneof(self, oneof_group: _Never) -> 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: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SubscribeDataTrackError = SubscribeDataTrackError +Global___SubscribeDataTrackError: _TypeAlias = SubscribeDataTrackError # noqa: Y015 -@typing.final -class DataTrackOptions(google.protobuf.message.Message): +@_typing.final +class DataTrackOptions(_message.Message): """MARK: - Local Options for publishing a data track. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - name: builtins.str + NAME_FIELD_NUMBER: _builtins.int + name: _builtins.str """Track name used to identify the track to other participants. Must not be empty and must be unique per publisher. @@ -282,311 +300,362 @@ class DataTrackOptions(google.protobuf.message.Message): def __init__( self, *, - name: builtins.str | None = ..., + name: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["name", b"name"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["name", b"name"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["name", b"name"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["name", b"name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DataTrackOptions = DataTrackOptions +Global___DataTrackOptions: _TypeAlias = DataTrackOptions # noqa: Y015 -@typing.final -class PublishDataTrackRequest(google.protobuf.message.Message): +@_typing.final +class PublishDataTrackRequest(_message.Message): """Publish a data track""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - OPTIONS_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - request_async_id: builtins.int - @property - def options(self) -> global___DataTrackOptions: ... + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + OPTIONS_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + request_async_id: _builtins.int + @_builtins.property + def options(self) -> Global___DataTrackOptions: ... def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - options: global___DataTrackOptions | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + options: Global___DataTrackOptions | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___PublishDataTrackRequest = PublishDataTrackRequest +Global___PublishDataTrackRequest: _TypeAlias = PublishDataTrackRequest # noqa: Y015 -@typing.final -class PublishDataTrackResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class PublishDataTrackResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___PublishDataTrackResponse = PublishDataTrackResponse +Global___PublishDataTrackResponse: _TypeAlias = PublishDataTrackResponse # noqa: Y015 -@typing.final -class PublishDataTrackCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_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 - @property - def track(self) -> global___OwnedLocalDataTrack: ... - @property - def error(self) -> global___PublishDataTrackError: ... + 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: ... + _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 = PublishDataTrackCallback +Global___PublishDataTrackCallback: _TypeAlias = PublishDataTrackCallback # noqa: Y015 -@typing.final -class OwnedLocalDataTrack(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class OwnedLocalDataTrack(_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___DataTrackInfo: ... + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___DataTrackInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___DataTrackInfo | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___DataTrackInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___OwnedLocalDataTrack = OwnedLocalDataTrack +Global___OwnedLocalDataTrack: _TypeAlias = OwnedLocalDataTrack # noqa: Y015 -@typing.final -class LocalDataTrackTryPushRequest(google.protobuf.message.Message): +@_typing.final +class LocalDataTrackTryPushRequest(_message.Message): """Try pushing a frame to subscribers of the track.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TRACK_HANDLE_FIELD_NUMBER: builtins.int - FRAME_FIELD_NUMBER: builtins.int - track_handle: builtins.int - @property - def frame(self) -> global___DataTrackFrame: ... + TRACK_HANDLE_FIELD_NUMBER: _builtins.int + FRAME_FIELD_NUMBER: _builtins.int + track_handle: _builtins.int + @_builtins.property + def frame(self) -> Global___DataTrackFrame: ... def __init__( self, *, - track_handle: builtins.int | None = ..., - frame: global___DataTrackFrame | None = ..., + track_handle: _builtins.int | None = ..., + frame: Global___DataTrackFrame | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["frame", b"frame", "track_handle", b"track_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["frame", b"frame", "track_handle", b"track_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["frame", b"frame", "track_handle", b"track_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["frame", b"frame", "track_handle", b"track_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___LocalDataTrackTryPushRequest = LocalDataTrackTryPushRequest +Global___LocalDataTrackTryPushRequest: _TypeAlias = LocalDataTrackTryPushRequest # noqa: Y015 -@typing.final -class LocalDataTrackTryPushResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class LocalDataTrackTryPushResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ERROR_FIELD_NUMBER: builtins.int - @property - def error(self) -> global___LocalDataTrackTryPushError: ... + ERROR_FIELD_NUMBER: _builtins.int + @_builtins.property + def error(self) -> Global___LocalDataTrackTryPushError: ... def __init__( self, *, - error: global___LocalDataTrackTryPushError | None = ..., + error: Global___LocalDataTrackTryPushError | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___LocalDataTrackTryPushResponse = LocalDataTrackTryPushResponse +Global___LocalDataTrackTryPushResponse: _TypeAlias = LocalDataTrackTryPushResponse # noqa: Y015 -@typing.final -class LocalDataTrackIsPublishedRequest(google.protobuf.message.Message): +@_typing.final +class LocalDataTrackIsPublishedRequest(_message.Message): """Checks if the track is still published.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TRACK_HANDLE_FIELD_NUMBER: builtins.int - track_handle: builtins.int + TRACK_HANDLE_FIELD_NUMBER: _builtins.int + track_handle: _builtins.int def __init__( self, *, - track_handle: builtins.int | None = ..., + track_handle: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["track_handle", b"track_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["track_handle", b"track_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["track_handle", b"track_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["track_handle", b"track_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___LocalDataTrackIsPublishedRequest = LocalDataTrackIsPublishedRequest +Global___LocalDataTrackIsPublishedRequest: _TypeAlias = LocalDataTrackIsPublishedRequest # noqa: Y015 -@typing.final -class LocalDataTrackIsPublishedResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class LocalDataTrackIsPublishedResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - IS_PUBLISHED_FIELD_NUMBER: builtins.int - is_published: builtins.bool + IS_PUBLISHED_FIELD_NUMBER: _builtins.int + is_published: _builtins.bool def __init__( self, *, - is_published: builtins.bool | None = ..., + is_published: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["is_published", b"is_published"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["is_published", b"is_published"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["is_published", b"is_published"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["is_published", b"is_published"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___LocalDataTrackIsPublishedResponse = LocalDataTrackIsPublishedResponse +Global___LocalDataTrackIsPublishedResponse: _TypeAlias = LocalDataTrackIsPublishedResponse # noqa: Y015 -@typing.final -class LocalDataTrackUnpublishRequest(google.protobuf.message.Message): +@_typing.final +class LocalDataTrackUnpublishRequest(_message.Message): """Unpublishes the track.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TRACK_HANDLE_FIELD_NUMBER: builtins.int - track_handle: builtins.int + TRACK_HANDLE_FIELD_NUMBER: _builtins.int + track_handle: _builtins.int def __init__( self, *, - track_handle: builtins.int | None = ..., + track_handle: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["track_handle", b"track_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["track_handle", b"track_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["track_handle", b"track_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["track_handle", b"track_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___LocalDataTrackUnpublishRequest = LocalDataTrackUnpublishRequest +Global___LocalDataTrackUnpublishRequest: _TypeAlias = LocalDataTrackUnpublishRequest # noqa: Y015 -@typing.final -class LocalDataTrackUnpublishResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class LocalDataTrackUnpublishResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___LocalDataTrackUnpublishResponse = LocalDataTrackUnpublishResponse +Global___LocalDataTrackUnpublishResponse: _TypeAlias = LocalDataTrackUnpublishResponse # noqa: Y015 -@typing.final -class OwnedRemoteDataTrack(google.protobuf.message.Message): +@_typing.final +class OwnedRemoteDataTrack(_message.Message): """MARK: - Remote""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - PUBLISHER_IDENTITY_FIELD_NUMBER: builtins.int - publisher_identity: builtins.str + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + PUBLISHER_IDENTITY_FIELD_NUMBER: _builtins.int + publisher_identity: _builtins.str """Identity of the remote participant who published the track.""" - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___DataTrackInfo: ... + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___DataTrackInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___DataTrackInfo | None = ..., - publisher_identity: builtins.str | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___DataTrackInfo | None = ..., + publisher_identity: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info", "publisher_identity", b"publisher_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info", "publisher_identity", b"publisher_identity"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info", "publisher_identity", b"publisher_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info", "publisher_identity", b"publisher_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___OwnedRemoteDataTrack = OwnedRemoteDataTrack +Global___OwnedRemoteDataTrack: _TypeAlias = OwnedRemoteDataTrack # noqa: Y015 -@typing.final -class OwnedDataTrackStream(google.protobuf.message.Message): +@_typing.final +class OwnedDataTrackStream(_message.Message): """Handle to an active data track subscription. Dropping the handle will unsubscribe from the track. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - HANDLE_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... + HANDLE_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___OwnedDataTrackStream = OwnedDataTrackStream +Global___OwnedDataTrackStream: _TypeAlias = OwnedDataTrackStream # noqa: Y015 -@typing.final -class DataTrackSubscribeOptions(google.protobuf.message.Message): +@_typing.final +class DataTrackSubscribeOptions(_message.Message): """Reserved for future subscription options.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - BUFFER_SIZE_FIELD_NUMBER: builtins.int - buffer_size: builtins.int + BUFFER_SIZE_FIELD_NUMBER: _builtins.int + buffer_size: _builtins.int """Maximum number of frames to buffer internally.""" def __init__( self, *, - buffer_size: builtins.int | None = ..., + buffer_size: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["buffer_size", b"buffer_size"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["buffer_size", b"buffer_size"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["buffer_size", b"buffer_size"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["buffer_size", b"buffer_size"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DataTrackSubscribeOptions = DataTrackSubscribeOptions +Global___DataTrackSubscribeOptions: _TypeAlias = DataTrackSubscribeOptions # noqa: Y015 -@typing.final -class RemoteDataTrackIsPublishedRequest(google.protobuf.message.Message): +@_typing.final +class RemoteDataTrackIsPublishedRequest(_message.Message): """Checks if the track is still published.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TRACK_HANDLE_FIELD_NUMBER: builtins.int - track_handle: builtins.int + TRACK_HANDLE_FIELD_NUMBER: _builtins.int + track_handle: _builtins.int def __init__( self, *, - track_handle: builtins.int | None = ..., + track_handle: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["track_handle", b"track_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["track_handle", b"track_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["track_handle", b"track_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["track_handle", b"track_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RemoteDataTrackIsPublishedRequest = RemoteDataTrackIsPublishedRequest +Global___RemoteDataTrackIsPublishedRequest: _TypeAlias = RemoteDataTrackIsPublishedRequest # noqa: Y015 -@typing.final -class RemoteDataTrackIsPublishedResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class RemoteDataTrackIsPublishedResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - IS_PUBLISHED_FIELD_NUMBER: builtins.int - is_published: builtins.bool + IS_PUBLISHED_FIELD_NUMBER: _builtins.int + is_published: _builtins.bool def __init__( self, *, - is_published: builtins.bool | None = ..., + is_published: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["is_published", b"is_published"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["is_published", b"is_published"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["is_published", b"is_published"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["is_published", b"is_published"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RemoteDataTrackIsPublishedResponse = RemoteDataTrackIsPublishedResponse +Global___RemoteDataTrackIsPublishedResponse: _TypeAlias = RemoteDataTrackIsPublishedResponse # noqa: Y015 -@typing.final -class RemoteDataTrackPipelineOptions(google.protobuf.message.Message): +@_typing.final +class RemoteDataTrackPipelineOptions(_message.Message): """Track-level options that configure how the incoming-frame pipeline reassembles packets for a remote data track.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - MAX_PARTIAL_FRAMES_FIELD_NUMBER: builtins.int - max_partial_frames: builtins.int + MAX_PARTIAL_FRAMES_FIELD_NUMBER: _builtins.int + max_partial_frames: _builtins.int """Maximum number of partial frames the depacketizer will track concurrently for this track. Zero is not a valid value; if a value of zero is provided, it will be clamped to one. @@ -594,84 +663,101 @@ class RemoteDataTrackPipelineOptions(google.protobuf.message.Message): def __init__( self, *, - max_partial_frames: builtins.int | None = ..., + max_partial_frames: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["max_partial_frames", b"max_partial_frames"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["max_partial_frames", b"max_partial_frames"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["max_partial_frames", b"max_partial_frames"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["max_partial_frames", b"max_partial_frames"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RemoteDataTrackPipelineOptions = RemoteDataTrackPipelineOptions +Global___RemoteDataTrackPipelineOptions: _TypeAlias = RemoteDataTrackPipelineOptions # noqa: Y015 -@typing.final -class RemoteDataTrackSetPipelineOptionsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class RemoteDataTrackSetPipelineOptionsRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - TRACK_HANDLE_FIELD_NUMBER: builtins.int - OPTIONS_FIELD_NUMBER: builtins.int - track_handle: builtins.int - @property - def options(self) -> global___RemoteDataTrackPipelineOptions: ... + TRACK_HANDLE_FIELD_NUMBER: _builtins.int + OPTIONS_FIELD_NUMBER: _builtins.int + track_handle: _builtins.int + @_builtins.property + def options(self) -> Global___RemoteDataTrackPipelineOptions: ... def __init__( self, *, - track_handle: builtins.int | None = ..., - options: global___RemoteDataTrackPipelineOptions | None = ..., + track_handle: _builtins.int | None = ..., + options: Global___RemoteDataTrackPipelineOptions | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["options", b"options", "track_handle", b"track_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["options", b"options", "track_handle", b"track_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["options", b"options", "track_handle", b"track_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["options", b"options", "track_handle", b"track_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RemoteDataTrackSetPipelineOptionsRequest = RemoteDataTrackSetPipelineOptionsRequest +Global___RemoteDataTrackSetPipelineOptionsRequest: _TypeAlias = RemoteDataTrackSetPipelineOptionsRequest # noqa: Y015 -@typing.final -class RemoteDataTrackSetPipelineOptionsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class RemoteDataTrackSetPipelineOptionsResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RemoteDataTrackSetPipelineOptionsResponse = RemoteDataTrackSetPipelineOptionsResponse +Global___RemoteDataTrackSetPipelineOptionsResponse: _TypeAlias = RemoteDataTrackSetPipelineOptionsResponse # noqa: Y015 -@typing.final -class SubscribeDataTrackRequest(google.protobuf.message.Message): +@_typing.final +class SubscribeDataTrackRequest(_message.Message): """Subscribe to a data track.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TRACK_HANDLE_FIELD_NUMBER: builtins.int - OPTIONS_FIELD_NUMBER: builtins.int - track_handle: builtins.int - @property - def options(self) -> global___DataTrackSubscribeOptions: ... + TRACK_HANDLE_FIELD_NUMBER: _builtins.int + OPTIONS_FIELD_NUMBER: _builtins.int + track_handle: _builtins.int + @_builtins.property + def options(self) -> Global___DataTrackSubscribeOptions: ... def __init__( self, *, - track_handle: builtins.int | None = ..., - options: global___DataTrackSubscribeOptions | None = ..., + track_handle: _builtins.int | None = ..., + options: Global___DataTrackSubscribeOptions | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["options", b"options", "track_handle", b"track_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["options", b"options", "track_handle", b"track_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["options", b"options", "track_handle", b"track_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["options", b"options", "track_handle", b"track_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SubscribeDataTrackRequest = SubscribeDataTrackRequest +Global___SubscribeDataTrackRequest: _TypeAlias = SubscribeDataTrackRequest # noqa: Y015 -@typing.final -class SubscribeDataTrackResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SubscribeDataTrackResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - STREAM_FIELD_NUMBER: builtins.int - @property - def stream(self) -> global___OwnedDataTrackStream: ... + STREAM_FIELD_NUMBER: _builtins.int + @_builtins.property + def stream(self) -> Global___OwnedDataTrackStream: ... def __init__( self, *, - stream: global___OwnedDataTrackStream | None = ..., + stream: Global___OwnedDataTrackStream | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["stream", b"stream"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["stream", b"stream"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["stream", b"stream"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["stream", b"stream"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SubscribeDataTrackResponse = SubscribeDataTrackResponse +Global___SubscribeDataTrackResponse: _TypeAlias = SubscribeDataTrackResponse # noqa: Y015 -@typing.final -class DataTrackStreamReadRequest(google.protobuf.message.Message): +@_typing.final +class DataTrackStreamReadRequest(_message.Message): """Signal readiness to handle the next frame. This allows the client to put backpressure on the internal receive buffer. @@ -679,94 +765,107 @@ class DataTrackStreamReadRequest(google.protobuf.message.Message): once one is available. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - STREAM_HANDLE_FIELD_NUMBER: builtins.int - stream_handle: builtins.int + STREAM_HANDLE_FIELD_NUMBER: _builtins.int + stream_handle: _builtins.int def __init__( self, *, - stream_handle: builtins.int | None = ..., + stream_handle: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["stream_handle", b"stream_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["stream_handle", b"stream_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["stream_handle", b"stream_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["stream_handle", b"stream_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DataTrackStreamReadRequest = DataTrackStreamReadRequest +Global___DataTrackStreamReadRequest: _TypeAlias = DataTrackStreamReadRequest # noqa: Y015 -@typing.final -class DataTrackStreamReadResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DataTrackStreamReadResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - EOS_EVENT_FIELD_NUMBER: builtins.int - @property - def eos_event(self) -> global___DataTrackStreamEOS: + EOS_EVENT_FIELD_NUMBER: _builtins.int + @_builtins.property + def eos_event(self) -> Global___DataTrackStreamEOS: """The end-of-stream event if the stream has already ended.""" def __init__( self, *, - eos_event: global___DataTrackStreamEOS | None = ..., + eos_event: Global___DataTrackStreamEOS | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["eos_event", b"eos_event"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["eos_event", b"eos_event"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["eos_event", b"eos_event"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["eos_event", b"eos_event"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DataTrackStreamReadResponse = DataTrackStreamReadResponse +Global___DataTrackStreamReadResponse: _TypeAlias = DataTrackStreamReadResponse # noqa: Y015 -@typing.final -class DataTrackStreamEvent(google.protobuf.message.Message): +@_typing.final +class DataTrackStreamEvent(_message.Message): """Event emitted on an active stream.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - STREAM_HANDLE_FIELD_NUMBER: builtins.int - FRAME_RECEIVED_FIELD_NUMBER: builtins.int - EOS_FIELD_NUMBER: builtins.int - stream_handle: builtins.int - @property - def frame_received(self) -> global___DataTrackStreamFrameReceived: ... - @property - def eos(self) -> global___DataTrackStreamEOS: ... + STREAM_HANDLE_FIELD_NUMBER: _builtins.int + FRAME_RECEIVED_FIELD_NUMBER: _builtins.int + EOS_FIELD_NUMBER: _builtins.int + stream_handle: _builtins.int + @_builtins.property + def frame_received(self) -> Global___DataTrackStreamFrameReceived: ... + @_builtins.property + def eos(self) -> Global___DataTrackStreamEOS: ... def __init__( self, *, - stream_handle: builtins.int | None = ..., - frame_received: global___DataTrackStreamFrameReceived | None = ..., - eos: global___DataTrackStreamEOS | None = ..., - ) -> 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): + 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): """A frame was received.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - FRAME_FIELD_NUMBER: builtins.int - @property - def frame(self) -> global___DataTrackFrame: ... + FRAME_FIELD_NUMBER: _builtins.int + @_builtins.property + def frame(self) -> Global___DataTrackFrame: ... def __init__( self, *, - frame: global___DataTrackFrame | None = ..., + frame: Global___DataTrackFrame | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["frame", b"frame"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["frame", b"frame"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["frame", b"frame"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["frame", b"frame"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DataTrackStreamFrameReceived = DataTrackStreamFrameReceived +Global___DataTrackStreamFrameReceived: _TypeAlias = DataTrackStreamFrameReceived # noqa: Y015 -@typing.final -class DataTrackStreamEOS(google.protobuf.message.Message): +@_typing.final +class DataTrackStreamEOS(_message.Message): """Stream has ended.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - ERROR_FIELD_NUMBER: builtins.int - @property - def error(self) -> global___SubscribeDataTrackError: + ERROR_FIELD_NUMBER: _builtins.int + @_builtins.property + def error(self) -> Global___SubscribeDataTrackError: """Present if stream ended before any frames were emitted due to subscription establishment failing. Absent if the stream ended normally (i.e., due to the track being unpublished). """ @@ -774,9 +873,12 @@ class DataTrackStreamEOS(google.protobuf.message.Message): def __init__( self, *, - error: global___SubscribeDataTrackError | None = ..., + error: Global___SubscribeDataTrackError | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DataTrackStreamEOS = DataTrackStreamEOS +Global___DataTrackStreamEOS: _TypeAlias = DataTrackStreamEOS # noqa: Y015 diff --git a/livekit-rtc/livekit/rtc/_proto/e2ee_pb2.py b/livekit-rtc/livekit/rtc/_proto/e2ee_pb2.py index 0a0b9a52..85619f73 100644 --- a/livekit-rtc/livekit/rtc/_proto/e2ee_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/e2ee_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: e2ee.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 4.25.2 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool diff --git a/livekit-rtc/livekit/rtc/_proto/e2ee_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/e2ee_pb2.pyi index 53437b21..241b2f61 100644 --- a/livekit-rtc/livekit/rtc/_proto/e2ee_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/e2ee_pb2.pyi @@ -16,28 +16,28 @@ See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message +from collections import abc as _abc +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +import builtins as _builtins import sys -import typing +import typing as _typing -if sys.version_info >= (3, 10): - import typing as typing_extensions +if sys.version_info >= (3, 11): + from typing import TypeAlias as _TypeAlias, Never as _Never else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias, Never as _Never -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor class _EncryptionType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _EncryptionTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EncryptionType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _EncryptionTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_EncryptionType.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor NONE: _EncryptionType.ValueType # 0 GCM: _EncryptionType.ValueType # 1 CUSTOM: _EncryptionType.ValueType # 2 @@ -48,14 +48,14 @@ class EncryptionType(_EncryptionType, metaclass=_EncryptionTypeEnumTypeWrapper): NONE: EncryptionType.ValueType # 0 GCM: EncryptionType.ValueType # 1 CUSTOM: EncryptionType.ValueType # 2 -global___EncryptionType = EncryptionType +Global___EncryptionType: _TypeAlias = EncryptionType # noqa: Y015 class _KeyDerivationFunction: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _KeyDerivationFunctionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_KeyDerivationFunction.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _KeyDerivationFunctionEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_KeyDerivationFunction.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor PBKDF2: _KeyDerivationFunction.ValueType # 0 HKDF: _KeyDerivationFunction.ValueType # 1 @@ -63,14 +63,14 @@ class KeyDerivationFunction(_KeyDerivationFunction, metaclass=_KeyDerivationFunc PBKDF2: KeyDerivationFunction.ValueType # 0 HKDF: KeyDerivationFunction.ValueType # 1 -global___KeyDerivationFunction = KeyDerivationFunction +Global___KeyDerivationFunction: _TypeAlias = KeyDerivationFunction # noqa: Y015 class _EncryptionState: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _EncryptionStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EncryptionState.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _EncryptionStateEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_EncryptionState.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor NEW: _EncryptionState.ValueType # 0 OK: _EncryptionState.ValueType # 1 ENCRYPTION_FAILED: _EncryptionState.ValueType # 2 @@ -88,504 +88,594 @@ DECRYPTION_FAILED: EncryptionState.ValueType # 3 MISSING_KEY: EncryptionState.ValueType # 4 KEY_RATCHETED: EncryptionState.ValueType # 5 INTERNAL_ERROR: EncryptionState.ValueType # 6 -global___EncryptionState = EncryptionState - -@typing.final -class FrameCryptor(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - TRACK_SID_FIELD_NUMBER: builtins.int - KEY_INDEX_FIELD_NUMBER: builtins.int - ENABLED_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - track_sid: builtins.str - key_index: builtins.int - enabled: builtins.bool +Global___EncryptionState: _TypeAlias = EncryptionState # noqa: Y015 + +@_typing.final +class FrameCryptor(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + TRACK_SID_FIELD_NUMBER: _builtins.int + KEY_INDEX_FIELD_NUMBER: _builtins.int + ENABLED_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + track_sid: _builtins.str + key_index: _builtins.int + enabled: _builtins.bool def __init__( self, *, - participant_identity: builtins.str | None = ..., - track_sid: builtins.str | None = ..., - key_index: builtins.int | None = ..., - enabled: builtins.bool | None = ..., + participant_identity: _builtins.str | None = ..., + track_sid: _builtins.str | None = ..., + key_index: _builtins.int | None = ..., + enabled: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["enabled", b"enabled", "key_index", b"key_index", "participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["enabled", b"enabled", "key_index", b"key_index", "participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> None: ... - -global___FrameCryptor = FrameCryptor - -@typing.final -class KeyProviderOptions(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - SHARED_KEY_FIELD_NUMBER: builtins.int - RATCHET_WINDOW_SIZE_FIELD_NUMBER: builtins.int - RATCHET_SALT_FIELD_NUMBER: builtins.int - FAILURE_TOLERANCE_FIELD_NUMBER: builtins.int - KEY_RING_SIZE_FIELD_NUMBER: builtins.int - KEY_DERIVATION_FUNCTION_FIELD_NUMBER: builtins.int - shared_key: builtins.bytes + _HasFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled", "key_index", b"key_index", "participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled", "key_index", b"key_index", "participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___FrameCryptor: _TypeAlias = FrameCryptor # noqa: Y015 + +@_typing.final +class KeyProviderOptions(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + SHARED_KEY_FIELD_NUMBER: _builtins.int + RATCHET_WINDOW_SIZE_FIELD_NUMBER: _builtins.int + RATCHET_SALT_FIELD_NUMBER: _builtins.int + FAILURE_TOLERANCE_FIELD_NUMBER: _builtins.int + KEY_RING_SIZE_FIELD_NUMBER: _builtins.int + KEY_DERIVATION_FUNCTION_FIELD_NUMBER: _builtins.int + shared_key: _builtins.bytes """Only specify if you want to use a shared_key""" - ratchet_window_size: builtins.int - ratchet_salt: builtins.bytes - failure_tolerance: builtins.int + ratchet_window_size: _builtins.int + ratchet_salt: _builtins.bytes + failure_tolerance: _builtins.int """-1 = no tolerance""" - key_ring_size: builtins.int - key_derivation_function: global___KeyDerivationFunction.ValueType + key_ring_size: _builtins.int + key_derivation_function: Global___KeyDerivationFunction.ValueType def __init__( self, *, - shared_key: builtins.bytes | None = ..., - ratchet_window_size: builtins.int | None = ..., - ratchet_salt: builtins.bytes | None = ..., - failure_tolerance: builtins.int | None = ..., - key_ring_size: builtins.int | None = ..., - key_derivation_function: global___KeyDerivationFunction.ValueType | None = ..., + shared_key: _builtins.bytes | None = ..., + ratchet_window_size: _builtins.int | None = ..., + ratchet_salt: _builtins.bytes | None = ..., + failure_tolerance: _builtins.int | None = ..., + key_ring_size: _builtins.int | None = ..., + key_derivation_function: Global___KeyDerivationFunction.ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["failure_tolerance", b"failure_tolerance", "key_derivation_function", b"key_derivation_function", "key_ring_size", b"key_ring_size", "ratchet_salt", b"ratchet_salt", "ratchet_window_size", b"ratchet_window_size", "shared_key", b"shared_key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["failure_tolerance", b"failure_tolerance", "key_derivation_function", b"key_derivation_function", "key_ring_size", b"key_ring_size", "ratchet_salt", b"ratchet_salt", "ratchet_window_size", b"ratchet_window_size", "shared_key", b"shared_key"]) -> None: ... - -global___KeyProviderOptions = KeyProviderOptions - -@typing.final -class E2eeOptions(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ENCRYPTION_TYPE_FIELD_NUMBER: builtins.int - KEY_PROVIDER_OPTIONS_FIELD_NUMBER: builtins.int - encryption_type: global___EncryptionType.ValueType - @property - def key_provider_options(self) -> global___KeyProviderOptions: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["failure_tolerance", b"failure_tolerance", "key_derivation_function", b"key_derivation_function", "key_ring_size", b"key_ring_size", "ratchet_salt", b"ratchet_salt", "ratchet_window_size", b"ratchet_window_size", "shared_key", b"shared_key"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["failure_tolerance", b"failure_tolerance", "key_derivation_function", b"key_derivation_function", "key_ring_size", b"key_ring_size", "ratchet_salt", b"ratchet_salt", "ratchet_window_size", b"ratchet_window_size", "shared_key", b"shared_key"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___KeyProviderOptions: _TypeAlias = KeyProviderOptions # noqa: Y015 + +@_typing.final +class E2eeOptions(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ENCRYPTION_TYPE_FIELD_NUMBER: _builtins.int + KEY_PROVIDER_OPTIONS_FIELD_NUMBER: _builtins.int + encryption_type: Global___EncryptionType.ValueType + @_builtins.property + def key_provider_options(self) -> Global___KeyProviderOptions: ... def __init__( self, *, - encryption_type: global___EncryptionType.ValueType | None = ..., - key_provider_options: global___KeyProviderOptions | None = ..., + encryption_type: Global___EncryptionType.ValueType | None = ..., + key_provider_options: Global___KeyProviderOptions | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["encryption_type", b"encryption_type", "key_provider_options", b"key_provider_options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["encryption_type", b"encryption_type", "key_provider_options", b"key_provider_options"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["encryption_type", b"encryption_type", "key_provider_options", b"key_provider_options"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["encryption_type", b"encryption_type", "key_provider_options", b"key_provider_options"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___E2eeOptions = E2eeOptions +Global___E2eeOptions: _TypeAlias = E2eeOptions # noqa: Y015 -@typing.final -class E2eeManagerSetEnabledRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class E2eeManagerSetEnabledRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ENABLED_FIELD_NUMBER: builtins.int - enabled: builtins.bool + ENABLED_FIELD_NUMBER: _builtins.int + enabled: _builtins.bool def __init__( self, *, - enabled: builtins.bool | None = ..., + enabled: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["enabled", b"enabled"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["enabled", b"enabled"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___E2eeManagerSetEnabledRequest = E2eeManagerSetEnabledRequest +Global___E2eeManagerSetEnabledRequest: _TypeAlias = E2eeManagerSetEnabledRequest # noqa: Y015 -@typing.final -class E2eeManagerSetEnabledResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class E2eeManagerSetEnabledResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___E2eeManagerSetEnabledResponse = E2eeManagerSetEnabledResponse +Global___E2eeManagerSetEnabledResponse: _TypeAlias = E2eeManagerSetEnabledResponse # noqa: Y015 -@typing.final -class E2eeManagerGetFrameCryptorsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class E2eeManagerGetFrameCryptorsRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___E2eeManagerGetFrameCryptorsRequest = E2eeManagerGetFrameCryptorsRequest +Global___E2eeManagerGetFrameCryptorsRequest: _TypeAlias = E2eeManagerGetFrameCryptorsRequest # noqa: Y015 -@typing.final -class E2eeManagerGetFrameCryptorsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class E2eeManagerGetFrameCryptorsResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - FRAME_CRYPTORS_FIELD_NUMBER: builtins.int - @property - def frame_cryptors(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FrameCryptor]: ... + FRAME_CRYPTORS_FIELD_NUMBER: _builtins.int + @_builtins.property + def frame_cryptors(self) -> _containers.RepeatedCompositeFieldContainer[Global___FrameCryptor]: ... def __init__( self, *, - frame_cryptors: collections.abc.Iterable[global___FrameCryptor] | None = ..., + frame_cryptors: _abc.Iterable[Global___FrameCryptor] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing.Literal["frame_cryptors", b"frame_cryptors"]) -> None: ... - -global___E2eeManagerGetFrameCryptorsResponse = E2eeManagerGetFrameCryptorsResponse - -@typing.final -class FrameCryptorSetEnabledRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - TRACK_SID_FIELD_NUMBER: builtins.int - ENABLED_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - track_sid: builtins.str - enabled: builtins.bool + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["frame_cryptors", b"frame_cryptors"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___E2eeManagerGetFrameCryptorsResponse: _TypeAlias = E2eeManagerGetFrameCryptorsResponse # noqa: Y015 + +@_typing.final +class FrameCryptorSetEnabledRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + TRACK_SID_FIELD_NUMBER: _builtins.int + ENABLED_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + track_sid: _builtins.str + enabled: _builtins.bool def __init__( self, *, - participant_identity: builtins.str | None = ..., - track_sid: builtins.str | None = ..., - enabled: builtins.bool | None = ..., + participant_identity: _builtins.str | None = ..., + track_sid: _builtins.str | None = ..., + enabled: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["enabled", b"enabled", "participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["enabled", b"enabled", "participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled", "participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled", "participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___FrameCryptorSetEnabledRequest = FrameCryptorSetEnabledRequest +Global___FrameCryptorSetEnabledRequest: _TypeAlias = FrameCryptorSetEnabledRequest # noqa: Y015 -@typing.final -class FrameCryptorSetEnabledResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FrameCryptorSetEnabledResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... - -global___FrameCryptorSetEnabledResponse = FrameCryptorSetEnabledResponse - -@typing.final -class FrameCryptorSetKeyIndexRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - TRACK_SID_FIELD_NUMBER: builtins.int - KEY_INDEX_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - track_sid: builtins.str - key_index: builtins.int + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___FrameCryptorSetEnabledResponse: _TypeAlias = FrameCryptorSetEnabledResponse # noqa: Y015 + +@_typing.final +class FrameCryptorSetKeyIndexRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + TRACK_SID_FIELD_NUMBER: _builtins.int + KEY_INDEX_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + track_sid: _builtins.str + key_index: _builtins.int def __init__( self, *, - participant_identity: builtins.str | None = ..., - track_sid: builtins.str | None = ..., - key_index: builtins.int | None = ..., + participant_identity: _builtins.str | None = ..., + track_sid: _builtins.str | None = ..., + key_index: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___FrameCryptorSetKeyIndexRequest = FrameCryptorSetKeyIndexRequest +Global___FrameCryptorSetKeyIndexRequest: _TypeAlias = FrameCryptorSetKeyIndexRequest # noqa: Y015 -@typing.final -class FrameCryptorSetKeyIndexResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FrameCryptorSetKeyIndexResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... - -global___FrameCryptorSetKeyIndexResponse = FrameCryptorSetKeyIndexResponse - -@typing.final -class SetSharedKeyRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - SHARED_KEY_FIELD_NUMBER: builtins.int - KEY_INDEX_FIELD_NUMBER: builtins.int - shared_key: builtins.bytes - key_index: builtins.int + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___FrameCryptorSetKeyIndexResponse: _TypeAlias = FrameCryptorSetKeyIndexResponse # noqa: Y015 + +@_typing.final +class SetSharedKeyRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + SHARED_KEY_FIELD_NUMBER: _builtins.int + KEY_INDEX_FIELD_NUMBER: _builtins.int + shared_key: _builtins.bytes + key_index: _builtins.int def __init__( self, *, - shared_key: builtins.bytes | None = ..., - key_index: builtins.int | None = ..., + shared_key: _builtins.bytes | None = ..., + key_index: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key_index", b"key_index", "shared_key", b"shared_key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key_index", b"key_index", "shared_key", b"shared_key"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index", "shared_key", b"shared_key"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index", "shared_key", b"shared_key"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetSharedKeyRequest = SetSharedKeyRequest +Global___SetSharedKeyRequest: _TypeAlias = SetSharedKeyRequest # noqa: Y015 -@typing.final -class SetSharedKeyResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SetSharedKeyResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetSharedKeyResponse = SetSharedKeyResponse +Global___SetSharedKeyResponse: _TypeAlias = SetSharedKeyResponse # noqa: Y015 -@typing.final -class RatchetSharedKeyRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class RatchetSharedKeyRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_INDEX_FIELD_NUMBER: builtins.int - key_index: builtins.int + KEY_INDEX_FIELD_NUMBER: _builtins.int + key_index: _builtins.int def __init__( self, *, - key_index: builtins.int | None = ..., + key_index: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key_index", b"key_index"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key_index", b"key_index"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RatchetSharedKeyRequest = RatchetSharedKeyRequest +Global___RatchetSharedKeyRequest: _TypeAlias = RatchetSharedKeyRequest # noqa: Y015 -@typing.final -class RatchetSharedKeyResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class RatchetSharedKeyResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NEW_KEY_FIELD_NUMBER: builtins.int - new_key: builtins.bytes + NEW_KEY_FIELD_NUMBER: _builtins.int + new_key: _builtins.bytes def __init__( self, *, - new_key: builtins.bytes | None = ..., + new_key: _builtins.bytes | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["new_key", b"new_key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["new_key", b"new_key"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["new_key", b"new_key"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["new_key", b"new_key"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RatchetSharedKeyResponse = RatchetSharedKeyResponse +Global___RatchetSharedKeyResponse: _TypeAlias = RatchetSharedKeyResponse # noqa: Y015 -@typing.final -class GetSharedKeyRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetSharedKeyRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_INDEX_FIELD_NUMBER: builtins.int - key_index: builtins.int + KEY_INDEX_FIELD_NUMBER: _builtins.int + key_index: _builtins.int def __init__( self, *, - key_index: builtins.int | None = ..., + key_index: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key_index", b"key_index"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key_index", b"key_index"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___GetSharedKeyRequest = GetSharedKeyRequest +Global___GetSharedKeyRequest: _TypeAlias = GetSharedKeyRequest # noqa: Y015 -@typing.final -class GetSharedKeyResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetSharedKeyResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - key: builtins.bytes + KEY_FIELD_NUMBER: _builtins.int + key: _builtins.bytes def __init__( self, *, - key: builtins.bytes | None = ..., + key: _builtins.bytes | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key", b"key"]) -> None: ... - -global___GetSharedKeyResponse = GetSharedKeyResponse - -@typing.final -class SetKeyRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - KEY_FIELD_NUMBER: builtins.int - KEY_INDEX_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - key: builtins.bytes - key_index: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___GetSharedKeyResponse: _TypeAlias = GetSharedKeyResponse # noqa: Y015 + +@_typing.final +class SetKeyRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + KEY_FIELD_NUMBER: _builtins.int + KEY_INDEX_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + key: _builtins.bytes + key_index: _builtins.int def __init__( self, *, - participant_identity: builtins.str | None = ..., - key: builtins.bytes | None = ..., - key_index: builtins.int | None = ..., + participant_identity: _builtins.str | None = ..., + key: _builtins.bytes | None = ..., + key_index: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key", b"key", "key_index", b"key_index", "participant_identity", b"participant_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "key_index", b"key_index", "participant_identity", b"participant_identity"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "key_index", b"key_index", "participant_identity", b"participant_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "key_index", b"key_index", "participant_identity", b"participant_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetKeyRequest = SetKeyRequest +Global___SetKeyRequest: _TypeAlias = SetKeyRequest # noqa: Y015 -@typing.final -class SetKeyResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SetKeyResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... - -global___SetKeyResponse = SetKeyResponse - -@typing.final -class RatchetKeyRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - KEY_INDEX_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - key_index: builtins.int + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___SetKeyResponse: _TypeAlias = SetKeyResponse # noqa: Y015 + +@_typing.final +class RatchetKeyRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + KEY_INDEX_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + key_index: _builtins.int def __init__( self, *, - participant_identity: builtins.str | None = ..., - key_index: builtins.int | None = ..., + participant_identity: _builtins.str | None = ..., + key_index: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RatchetKeyRequest = RatchetKeyRequest +Global___RatchetKeyRequest: _TypeAlias = RatchetKeyRequest # noqa: Y015 -@typing.final -class RatchetKeyResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class RatchetKeyResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NEW_KEY_FIELD_NUMBER: builtins.int - new_key: builtins.bytes + NEW_KEY_FIELD_NUMBER: _builtins.int + new_key: _builtins.bytes def __init__( self, *, - new_key: builtins.bytes | None = ..., + new_key: _builtins.bytes | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["new_key", b"new_key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["new_key", b"new_key"]) -> None: ... - -global___RatchetKeyResponse = RatchetKeyResponse - -@typing.final -class GetKeyRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - KEY_INDEX_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - key_index: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["new_key", b"new_key"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["new_key", b"new_key"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___RatchetKeyResponse: _TypeAlias = RatchetKeyResponse # noqa: Y015 + +@_typing.final +class GetKeyRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + KEY_INDEX_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + key_index: _builtins.int def __init__( self, *, - participant_identity: builtins.str | None = ..., - key_index: builtins.int | None = ..., + participant_identity: _builtins.str | None = ..., + key_index: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key_index", b"key_index", "participant_identity", b"participant_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___GetKeyRequest = GetKeyRequest +Global___GetKeyRequest: _TypeAlias = GetKeyRequest # noqa: Y015 -@typing.final -class GetKeyResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetKeyResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - key: builtins.bytes + KEY_FIELD_NUMBER: _builtins.int + key: _builtins.bytes def __init__( self, *, - key: builtins.bytes | None = ..., + key: _builtins.bytes | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key", b"key"]) -> None: ... - -global___GetKeyResponse = GetKeyResponse - -@typing.final -class E2eeRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ROOM_HANDLE_FIELD_NUMBER: builtins.int - MANAGER_SET_ENABLED_FIELD_NUMBER: builtins.int - MANAGER_GET_FRAME_CRYPTORS_FIELD_NUMBER: builtins.int - CRYPTOR_SET_ENABLED_FIELD_NUMBER: builtins.int - CRYPTOR_SET_KEY_INDEX_FIELD_NUMBER: builtins.int - SET_SHARED_KEY_FIELD_NUMBER: builtins.int - RATCHET_SHARED_KEY_FIELD_NUMBER: builtins.int - GET_SHARED_KEY_FIELD_NUMBER: builtins.int - SET_KEY_FIELD_NUMBER: builtins.int - RATCHET_KEY_FIELD_NUMBER: builtins.int - GET_KEY_FIELD_NUMBER: builtins.int - room_handle: builtins.int - @property - def manager_set_enabled(self) -> global___E2eeManagerSetEnabledRequest: ... - @property - def manager_get_frame_cryptors(self) -> global___E2eeManagerGetFrameCryptorsRequest: ... - @property - def cryptor_set_enabled(self) -> global___FrameCryptorSetEnabledRequest: ... - @property - def cryptor_set_key_index(self) -> global___FrameCryptorSetKeyIndexRequest: ... - @property - def set_shared_key(self) -> global___SetSharedKeyRequest: ... - @property - def ratchet_shared_key(self) -> global___RatchetSharedKeyRequest: ... - @property - def get_shared_key(self) -> global___GetSharedKeyRequest: ... - @property - def set_key(self) -> global___SetKeyRequest: ... - @property - def ratchet_key(self) -> global___RatchetKeyRequest: ... - @property - def get_key(self) -> global___GetKeyRequest: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___GetKeyResponse: _TypeAlias = GetKeyResponse # noqa: Y015 + +@_typing.final +class E2eeRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ROOM_HANDLE_FIELD_NUMBER: _builtins.int + MANAGER_SET_ENABLED_FIELD_NUMBER: _builtins.int + MANAGER_GET_FRAME_CRYPTORS_FIELD_NUMBER: _builtins.int + CRYPTOR_SET_ENABLED_FIELD_NUMBER: _builtins.int + CRYPTOR_SET_KEY_INDEX_FIELD_NUMBER: _builtins.int + SET_SHARED_KEY_FIELD_NUMBER: _builtins.int + RATCHET_SHARED_KEY_FIELD_NUMBER: _builtins.int + GET_SHARED_KEY_FIELD_NUMBER: _builtins.int + SET_KEY_FIELD_NUMBER: _builtins.int + RATCHET_KEY_FIELD_NUMBER: _builtins.int + GET_KEY_FIELD_NUMBER: _builtins.int + room_handle: _builtins.int + @_builtins.property + def manager_set_enabled(self) -> Global___E2eeManagerSetEnabledRequest: ... + @_builtins.property + def manager_get_frame_cryptors(self) -> Global___E2eeManagerGetFrameCryptorsRequest: ... + @_builtins.property + def cryptor_set_enabled(self) -> Global___FrameCryptorSetEnabledRequest: ... + @_builtins.property + def cryptor_set_key_index(self) -> Global___FrameCryptorSetKeyIndexRequest: ... + @_builtins.property + def set_shared_key(self) -> Global___SetSharedKeyRequest: ... + @_builtins.property + def ratchet_shared_key(self) -> Global___RatchetSharedKeyRequest: ... + @_builtins.property + def get_shared_key(self) -> Global___GetSharedKeyRequest: ... + @_builtins.property + def set_key(self) -> Global___SetKeyRequest: ... + @_builtins.property + def ratchet_key(self) -> Global___RatchetKeyRequest: ... + @_builtins.property + def get_key(self) -> Global___GetKeyRequest: ... def __init__( self, *, - room_handle: builtins.int | None = ..., - manager_set_enabled: global___E2eeManagerSetEnabledRequest | None = ..., - manager_get_frame_cryptors: global___E2eeManagerGetFrameCryptorsRequest | None = ..., - cryptor_set_enabled: global___FrameCryptorSetEnabledRequest | None = ..., - cryptor_set_key_index: global___FrameCryptorSetKeyIndexRequest | None = ..., - set_shared_key: global___SetSharedKeyRequest | None = ..., - ratchet_shared_key: global___RatchetSharedKeyRequest | None = ..., - get_shared_key: global___GetSharedKeyRequest | None = ..., - set_key: global___SetKeyRequest | None = ..., - ratchet_key: global___RatchetKeyRequest | None = ..., - get_key: global___GetKeyRequest | None = ..., + room_handle: _builtins.int | None = ..., + manager_set_enabled: Global___E2eeManagerSetEnabledRequest | None = ..., + manager_get_frame_cryptors: Global___E2eeManagerGetFrameCryptorsRequest | None = ..., + cryptor_set_enabled: Global___FrameCryptorSetEnabledRequest | None = ..., + cryptor_set_key_index: Global___FrameCryptorSetKeyIndexRequest | None = ..., + set_shared_key: Global___SetSharedKeyRequest | None = ..., + ratchet_shared_key: Global___RatchetSharedKeyRequest | None = ..., + get_shared_key: Global___GetSharedKeyRequest | None = ..., + set_key: Global___SetKeyRequest | None = ..., + ratchet_key: Global___RatchetKeyRequest | None = ..., + get_key: Global___GetKeyRequest | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["cryptor_set_enabled", b"cryptor_set_enabled", "cryptor_set_key_index", b"cryptor_set_key_index", "get_key", b"get_key", "get_shared_key", b"get_shared_key", "manager_get_frame_cryptors", b"manager_get_frame_cryptors", "manager_set_enabled", b"manager_set_enabled", "message", b"message", "ratchet_key", b"ratchet_key", "ratchet_shared_key", b"ratchet_shared_key", "room_handle", b"room_handle", "set_key", b"set_key", "set_shared_key", b"set_shared_key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["cryptor_set_enabled", b"cryptor_set_enabled", "cryptor_set_key_index", b"cryptor_set_key_index", "get_key", b"get_key", "get_shared_key", b"get_shared_key", "manager_get_frame_cryptors", b"manager_get_frame_cryptors", "manager_set_enabled", b"manager_set_enabled", "message", b"message", "ratchet_key", b"ratchet_key", "ratchet_shared_key", b"ratchet_shared_key", "room_handle", b"room_handle", "set_key", b"set_key", "set_shared_key", b"set_shared_key"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["manager_set_enabled", "manager_get_frame_cryptors", "cryptor_set_enabled", "cryptor_set_key_index", "set_shared_key", "ratchet_shared_key", "get_shared_key", "set_key", "ratchet_key", "get_key"] | None: ... - -global___E2eeRequest = E2eeRequest - -@typing.final -class E2eeResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - MANAGER_SET_ENABLED_FIELD_NUMBER: builtins.int - MANAGER_GET_FRAME_CRYPTORS_FIELD_NUMBER: builtins.int - CRYPTOR_SET_ENABLED_FIELD_NUMBER: builtins.int - CRYPTOR_SET_KEY_INDEX_FIELD_NUMBER: builtins.int - SET_SHARED_KEY_FIELD_NUMBER: builtins.int - RATCHET_SHARED_KEY_FIELD_NUMBER: builtins.int - GET_SHARED_KEY_FIELD_NUMBER: builtins.int - SET_KEY_FIELD_NUMBER: builtins.int - RATCHET_KEY_FIELD_NUMBER: builtins.int - GET_KEY_FIELD_NUMBER: builtins.int - @property - def manager_set_enabled(self) -> global___E2eeManagerSetEnabledResponse: ... - @property - def manager_get_frame_cryptors(self) -> global___E2eeManagerGetFrameCryptorsResponse: ... - @property - def cryptor_set_enabled(self) -> global___FrameCryptorSetEnabledResponse: ... - @property - def cryptor_set_key_index(self) -> global___FrameCryptorSetKeyIndexResponse: ... - @property - def set_shared_key(self) -> global___SetSharedKeyResponse: ... - @property - def ratchet_shared_key(self) -> global___RatchetSharedKeyResponse: ... - @property - def get_shared_key(self) -> global___GetSharedKeyResponse: ... - @property - def set_key(self) -> global___SetKeyResponse: ... - @property - def ratchet_key(self) -> global___RatchetKeyResponse: ... - @property - def get_key(self) -> global___GetKeyResponse: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["cryptor_set_enabled", b"cryptor_set_enabled", "cryptor_set_key_index", b"cryptor_set_key_index", "get_key", b"get_key", "get_shared_key", b"get_shared_key", "manager_get_frame_cryptors", b"manager_get_frame_cryptors", "manager_set_enabled", b"manager_set_enabled", "message", b"message", "ratchet_key", b"ratchet_key", "ratchet_shared_key", b"ratchet_shared_key", "room_handle", b"room_handle", "set_key", b"set_key", "set_shared_key", b"set_shared_key"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["cryptor_set_enabled", b"cryptor_set_enabled", "cryptor_set_key_index", b"cryptor_set_key_index", "get_key", b"get_key", "get_shared_key", b"get_shared_key", "manager_get_frame_cryptors", b"manager_get_frame_cryptors", "manager_set_enabled", b"manager_set_enabled", "message", b"message", "ratchet_key", b"ratchet_key", "ratchet_shared_key", b"ratchet_shared_key", "room_handle", b"room_handle", "set_key", b"set_key", "set_shared_key", b"set_shared_key"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["manager_set_enabled", "manager_get_frame_cryptors", "cryptor_set_enabled", "cryptor_set_key_index", "set_shared_key", "ratchet_shared_key", "get_shared_key", "set_key", "ratchet_key", "get_key"] # noqa: Y015 + _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... + +Global___E2eeRequest: _TypeAlias = E2eeRequest # noqa: Y015 + +@_typing.final +class E2eeResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + MANAGER_SET_ENABLED_FIELD_NUMBER: _builtins.int + MANAGER_GET_FRAME_CRYPTORS_FIELD_NUMBER: _builtins.int + CRYPTOR_SET_ENABLED_FIELD_NUMBER: _builtins.int + CRYPTOR_SET_KEY_INDEX_FIELD_NUMBER: _builtins.int + SET_SHARED_KEY_FIELD_NUMBER: _builtins.int + RATCHET_SHARED_KEY_FIELD_NUMBER: _builtins.int + GET_SHARED_KEY_FIELD_NUMBER: _builtins.int + SET_KEY_FIELD_NUMBER: _builtins.int + RATCHET_KEY_FIELD_NUMBER: _builtins.int + GET_KEY_FIELD_NUMBER: _builtins.int + @_builtins.property + def manager_set_enabled(self) -> Global___E2eeManagerSetEnabledResponse: ... + @_builtins.property + def manager_get_frame_cryptors(self) -> Global___E2eeManagerGetFrameCryptorsResponse: ... + @_builtins.property + def cryptor_set_enabled(self) -> Global___FrameCryptorSetEnabledResponse: ... + @_builtins.property + def cryptor_set_key_index(self) -> Global___FrameCryptorSetKeyIndexResponse: ... + @_builtins.property + def set_shared_key(self) -> Global___SetSharedKeyResponse: ... + @_builtins.property + def ratchet_shared_key(self) -> Global___RatchetSharedKeyResponse: ... + @_builtins.property + def get_shared_key(self) -> Global___GetSharedKeyResponse: ... + @_builtins.property + def set_key(self) -> Global___SetKeyResponse: ... + @_builtins.property + def ratchet_key(self) -> Global___RatchetKeyResponse: ... + @_builtins.property + def get_key(self) -> Global___GetKeyResponse: ... def __init__( self, *, - manager_set_enabled: global___E2eeManagerSetEnabledResponse | None = ..., - manager_get_frame_cryptors: global___E2eeManagerGetFrameCryptorsResponse | None = ..., - cryptor_set_enabled: global___FrameCryptorSetEnabledResponse | None = ..., - cryptor_set_key_index: global___FrameCryptorSetKeyIndexResponse | None = ..., - set_shared_key: global___SetSharedKeyResponse | None = ..., - ratchet_shared_key: global___RatchetSharedKeyResponse | None = ..., - get_shared_key: global___GetSharedKeyResponse | None = ..., - set_key: global___SetKeyResponse | None = ..., - ratchet_key: global___RatchetKeyResponse | None = ..., - get_key: global___GetKeyResponse | None = ..., + manager_set_enabled: Global___E2eeManagerSetEnabledResponse | None = ..., + manager_get_frame_cryptors: Global___E2eeManagerGetFrameCryptorsResponse | None = ..., + cryptor_set_enabled: Global___FrameCryptorSetEnabledResponse | None = ..., + cryptor_set_key_index: Global___FrameCryptorSetKeyIndexResponse | None = ..., + set_shared_key: Global___SetSharedKeyResponse | None = ..., + ratchet_shared_key: Global___RatchetSharedKeyResponse | None = ..., + get_shared_key: Global___GetSharedKeyResponse | None = ..., + set_key: Global___SetKeyResponse | None = ..., + ratchet_key: Global___RatchetKeyResponse | None = ..., + get_key: Global___GetKeyResponse | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["cryptor_set_enabled", b"cryptor_set_enabled", "cryptor_set_key_index", b"cryptor_set_key_index", "get_key", b"get_key", "get_shared_key", b"get_shared_key", "manager_get_frame_cryptors", b"manager_get_frame_cryptors", "manager_set_enabled", b"manager_set_enabled", "message", b"message", "ratchet_key", b"ratchet_key", "ratchet_shared_key", b"ratchet_shared_key", "set_key", b"set_key", "set_shared_key", b"set_shared_key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["cryptor_set_enabled", b"cryptor_set_enabled", "cryptor_set_key_index", b"cryptor_set_key_index", "get_key", b"get_key", "get_shared_key", b"get_shared_key", "manager_get_frame_cryptors", b"manager_get_frame_cryptors", "manager_set_enabled", b"manager_set_enabled", "message", b"message", "ratchet_key", b"ratchet_key", "ratchet_shared_key", b"ratchet_shared_key", "set_key", b"set_key", "set_shared_key", b"set_shared_key"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["manager_set_enabled", "manager_get_frame_cryptors", "cryptor_set_enabled", "cryptor_set_key_index", "set_shared_key", "ratchet_shared_key", "get_shared_key", "set_key", "ratchet_key", "get_key"] | None: ... - -global___E2eeResponse = E2eeResponse + _HasFieldArgType: _TypeAlias = _typing.Literal["cryptor_set_enabled", b"cryptor_set_enabled", "cryptor_set_key_index", b"cryptor_set_key_index", "get_key", b"get_key", "get_shared_key", b"get_shared_key", "manager_get_frame_cryptors", b"manager_get_frame_cryptors", "manager_set_enabled", b"manager_set_enabled", "message", b"message", "ratchet_key", b"ratchet_key", "ratchet_shared_key", b"ratchet_shared_key", "set_key", b"set_key", "set_shared_key", b"set_shared_key"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["cryptor_set_enabled", b"cryptor_set_enabled", "cryptor_set_key_index", b"cryptor_set_key_index", "get_key", b"get_key", "get_shared_key", b"get_shared_key", "manager_get_frame_cryptors", b"manager_get_frame_cryptors", "manager_set_enabled", b"manager_set_enabled", "message", b"message", "ratchet_key", b"ratchet_key", "ratchet_shared_key", b"ratchet_shared_key", "set_key", b"set_key", "set_shared_key", b"set_shared_key"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["manager_set_enabled", "manager_get_frame_cryptors", "cryptor_set_enabled", "cryptor_set_key_index", "set_shared_key", "ratchet_shared_key", "get_shared_key", "set_key", "ratchet_key", "get_key"] # noqa: Y015 + _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... + +Global___E2eeResponse: _TypeAlias = E2eeResponse # noqa: Y015 diff --git a/livekit-rtc/livekit/rtc/_proto/ffi_pb2.py b/livekit-rtc/livekit/rtc/_proto/ffi_pb2.py index 5690457e..ce6055f4 100644 --- a/livekit-rtc/livekit/rtc/_proto/ffi_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/ffi_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: ffi.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 4.25.2 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool diff --git a/livekit-rtc/livekit/rtc/_proto/ffi_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/ffi_pb2.pyi index 2f150095..4412b355 100644 --- a/livekit-rtc/livekit/rtc/_proto/ffi_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/ffi_pb2.pyi @@ -16,37 +16,37 @@ See the License for the specific language governing permissions and limitations under the License. """ -from . import audio_frame_pb2 -import builtins -import collections.abc -from . import data_stream_pb2 -from . import data_track_pb2 -from . import e2ee_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -from . import room_pb2 -from . import rpc_pb2 +from collections import abc as _abc +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from . import audio_frame_pb2 as _audio_frame_pb2 +import builtins as _builtins +from . import data_stream_pb2 as _data_stream_pb2 +from . import data_track_pb2 as _data_track_pb2 +from . import e2ee_pb2 as _e2ee_pb2 +from . import room_pb2 as _room_pb2 +from . import rpc_pb2 as _rpc_pb2 import sys -from . import track_pb2 -from . import track_publication_pb2 -import typing -from . import video_frame_pb2 +from . import track_pb2 as _track_pb2 +from . import track_publication_pb2 as _track_publication_pb2 +import typing as _typing +from . import video_frame_pb2 as _video_frame_pb2 -if sys.version_info >= (3, 10): - import typing as typing_extensions +if sys.version_info >= (3, 11): + from typing import TypeAlias as _TypeAlias, Never as _Never else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias, Never as _Never -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor class _LogLevel: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _LogLevelEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_LogLevel.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _LogLevelEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_LogLevel.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor LOG_ERROR: _LogLevel.ValueType # 0 LOG_WARN: _LogLevel.ValueType # 1 LOG_INFO: _LogLevel.ValueType # 2 @@ -60,10 +60,10 @@ LOG_WARN: LogLevel.ValueType # 1 LOG_INFO: LogLevel.ValueType # 2 LOG_DEBUG: LogLevel.ValueType # 3 LOG_TRACE: LogLevel.ValueType # 4 -global___LogLevel = LogLevel +Global___LogLevel: _TypeAlias = LogLevel # noqa: Y015 -@typing.final -class FfiRequest(google.protobuf.message.Message): +@_typing.final +class FfiRequest(_message.Message): """**How is the livekit-ffi working: We refer as the ffi server the Rust server that is running the LiveKit client implementation, and we refer as the ffi client the foreign language that commumicates with the ffi server. (e.g Python SDK, Unity SDK, etc...) @@ -94,1064 +94,1095 @@ 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 - REMOTE_DATA_TRACK_SET_PIPELINE_OPTIONS_FIELD_NUMBER: builtins.int - SIMULATE_SCENARIO_FIELD_NUMBER: builtins.int - NEW_PLATFORM_AUDIO_FIELD_NUMBER: builtins.int - GET_AUDIO_DEVICES_FIELD_NUMBER: builtins.int - SET_RECORDING_DEVICE_FIELD_NUMBER: builtins.int - SET_PLAYOUT_DEVICE_FIELD_NUMBER: builtins.int - START_RECORDING_FIELD_NUMBER: builtins.int - STOP_RECORDING_FIELD_NUMBER: builtins.int - READY_FOR_ROOM_EVENT_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 + REMOTE_DATA_TRACK_SET_PIPELINE_OPTIONS_FIELD_NUMBER: _builtins.int + SIMULATE_SCENARIO_FIELD_NUMBER: _builtins.int + NEW_PLATFORM_AUDIO_FIELD_NUMBER: _builtins.int + GET_AUDIO_DEVICES_FIELD_NUMBER: _builtins.int + SET_RECORDING_DEVICE_FIELD_NUMBER: _builtins.int + SET_PLAYOUT_DEVICE_FIELD_NUMBER: _builtins.int + START_RECORDING_FIELD_NUMBER: _builtins.int + STOP_RECORDING_FIELD_NUMBER: _builtins.int + READY_FOR_ROOM_EVENT_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: ... - @property - def remote_data_track_set_pipeline_options(self) -> data_track_pb2.RemoteDataTrackSetPipelineOptionsRequest: ... - @property - def simulate_scenario(self) -> room_pb2.SimulateScenarioRequest: + @_builtins.property + def remote_data_track_is_published(self) -> _data_track_pb2.RemoteDataTrackIsPublishedRequest: ... + @_builtins.property + def data_track_stream_read(self) -> _data_track_pb2.DataTrackStreamReadRequest: ... + @_builtins.property + def remote_data_track_set_pipeline_options(self) -> _data_track_pb2.RemoteDataTrackSetPipelineOptionsRequest: ... + @_builtins.property + def simulate_scenario(self) -> _room_pb2.SimulateScenarioRequest: """Reconnection / chaos testing""" - @property - def new_platform_audio(self) -> audio_frame_pb2.NewPlatformAudioRequest: + @_builtins.property + def new_platform_audio(self) -> _audio_frame_pb2.NewPlatformAudioRequest: """Platform Audio (ADM)""" - @property - def get_audio_devices(self) -> audio_frame_pb2.GetAudioDevicesRequest: ... - @property - def set_recording_device(self) -> audio_frame_pb2.SetRecordingDeviceRequest: ... - @property - def set_playout_device(self) -> audio_frame_pb2.SetPlayoutDeviceRequest: ... - @property - def start_recording(self) -> audio_frame_pb2.StartRecordingRequest: ... - @property - def stop_recording(self) -> audio_frame_pb2.StopRecordingRequest: ... - @property - def ready_for_room_event(self) -> room_pb2.ReadyForRoomEventRequest: + @_builtins.property + def get_audio_devices(self) -> _audio_frame_pb2.GetAudioDevicesRequest: ... + @_builtins.property + def set_recording_device(self) -> _audio_frame_pb2.SetRecordingDeviceRequest: ... + @_builtins.property + def set_playout_device(self) -> _audio_frame_pb2.SetPlayoutDeviceRequest: ... + @_builtins.property + def start_recording(self) -> _audio_frame_pb2.StartRecordingRequest: ... + @_builtins.property + def stop_recording(self) -> _audio_frame_pb2.StopRecordingRequest: ... + @_builtins.property + def ready_for_room_event(self) -> _room_pb2.ReadyForRoomEventRequest: """Room event ready signal""" 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 = ..., - remote_data_track_set_pipeline_options: data_track_pb2.RemoteDataTrackSetPipelineOptionsRequest | None = ..., - simulate_scenario: room_pb2.SimulateScenarioRequest | None = ..., - new_platform_audio: audio_frame_pb2.NewPlatformAudioRequest | None = ..., - get_audio_devices: audio_frame_pb2.GetAudioDevicesRequest | None = ..., - set_recording_device: audio_frame_pb2.SetRecordingDeviceRequest | None = ..., - set_playout_device: audio_frame_pb2.SetPlayoutDeviceRequest | None = ..., - start_recording: audio_frame_pb2.StartRecordingRequest | None = ..., - stop_recording: audio_frame_pb2.StopRecordingRequest | None = ..., - ready_for_room_event: room_pb2.ReadyForRoomEventRequest | 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 = ..., + remote_data_track_set_pipeline_options: _data_track_pb2.RemoteDataTrackSetPipelineOptionsRequest | None = ..., + simulate_scenario: _room_pb2.SimulateScenarioRequest | None = ..., + new_platform_audio: _audio_frame_pb2.NewPlatformAudioRequest | None = ..., + get_audio_devices: _audio_frame_pb2.GetAudioDevicesRequest | None = ..., + set_recording_device: _audio_frame_pb2.SetRecordingDeviceRequest | None = ..., + set_playout_device: _audio_frame_pb2.SetPlayoutDeviceRequest | None = ..., + start_recording: _audio_frame_pb2.StartRecordingRequest | None = ..., + stop_recording: _audio_frame_pb2.StopRecordingRequest | None = ..., + ready_for_room_event: _room_pb2.ReadyForRoomEventRequest | 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_audio_devices", b"get_audio_devices", "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_platform_audio", b"new_platform_audio", "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", "ready_for_room_event", b"ready_for_room_event", "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", "remote_data_track_set_pipeline_options", b"remote_data_track_set_pipeline_options", "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_playout_device", b"set_playout_device", "set_recording_device", b"set_recording_device", "set_remote_track_publication_quality", b"set_remote_track_publication_quality", "set_subscribed", b"set_subscribed", "set_track_subscription_permissions", b"set_track_subscription_permissions", "simulate_scenario", b"simulate_scenario", "start_recording", b"start_recording", "stop_recording", b"stop_recording", "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_audio_devices", b"get_audio_devices", "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_platform_audio", b"new_platform_audio", "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", "ready_for_room_event", b"ready_for_room_event", "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", "remote_data_track_set_pipeline_options", b"remote_data_track_set_pipeline_options", "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_playout_device", b"set_playout_device", "set_recording_device", b"set_recording_device", "set_remote_track_publication_quality", b"set_remote_track_publication_quality", "set_subscribed", b"set_subscribed", "set_track_subscription_permissions", b"set_track_subscription_permissions", "simulate_scenario", b"simulate_scenario", "start_recording", b"start_recording", "stop_recording", b"stop_recording", "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", "remote_data_track_set_pipeline_options", "simulate_scenario", "new_platform_audio", "get_audio_devices", "set_recording_device", "set_playout_device", "start_recording", "stop_recording", "ready_for_room_event"] | 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_audio_devices", b"get_audio_devices", "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_platform_audio", b"new_platform_audio", "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", "ready_for_room_event", b"ready_for_room_event", "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", "remote_data_track_set_pipeline_options", b"remote_data_track_set_pipeline_options", "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_playout_device", b"set_playout_device", "set_recording_device", b"set_recording_device", "set_remote_track_publication_quality", b"set_remote_track_publication_quality", "set_subscribed", b"set_subscribed", "set_track_subscription_permissions", b"set_track_subscription_permissions", "simulate_scenario", b"simulate_scenario", "start_recording", b"start_recording", "stop_recording", b"stop_recording", "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_audio_devices", b"get_audio_devices", "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_platform_audio", b"new_platform_audio", "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", "ready_for_room_event", b"ready_for_room_event", "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", "remote_data_track_set_pipeline_options", b"remote_data_track_set_pipeline_options", "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_playout_device", b"set_playout_device", "set_recording_device", b"set_recording_device", "set_remote_track_publication_quality", b"set_remote_track_publication_quality", "set_subscribed", b"set_subscribed", "set_track_subscription_permissions", b"set_track_subscription_permissions", "simulate_scenario", b"simulate_scenario", "start_recording", b"start_recording", "stop_recording", b"stop_recording", "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", "remote_data_track_set_pipeline_options", "simulate_scenario", "new_platform_audio", "get_audio_devices", "set_recording_device", "set_playout_device", "start_recording", "stop_recording", "ready_for_room_event"] # 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 - REMOTE_DATA_TRACK_SET_PIPELINE_OPTIONS_FIELD_NUMBER: builtins.int - SIMULATE_SCENARIO_FIELD_NUMBER: builtins.int - NEW_PLATFORM_AUDIO_FIELD_NUMBER: builtins.int - GET_AUDIO_DEVICES_FIELD_NUMBER: builtins.int - SET_RECORDING_DEVICE_FIELD_NUMBER: builtins.int - SET_PLAYOUT_DEVICE_FIELD_NUMBER: builtins.int - START_RECORDING_FIELD_NUMBER: builtins.int - STOP_RECORDING_FIELD_NUMBER: builtins.int - READY_FOR_ROOM_EVENT_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 + REMOTE_DATA_TRACK_SET_PIPELINE_OPTIONS_FIELD_NUMBER: _builtins.int + SIMULATE_SCENARIO_FIELD_NUMBER: _builtins.int + NEW_PLATFORM_AUDIO_FIELD_NUMBER: _builtins.int + GET_AUDIO_DEVICES_FIELD_NUMBER: _builtins.int + SET_RECORDING_DEVICE_FIELD_NUMBER: _builtins.int + SET_PLAYOUT_DEVICE_FIELD_NUMBER: _builtins.int + START_RECORDING_FIELD_NUMBER: _builtins.int + STOP_RECORDING_FIELD_NUMBER: _builtins.int + READY_FOR_ROOM_EVENT_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: ... - @property - def remote_data_track_set_pipeline_options(self) -> data_track_pb2.RemoteDataTrackSetPipelineOptionsResponse: ... - @property - def simulate_scenario(self) -> room_pb2.SimulateScenarioResponse: + @_builtins.property + def remote_data_track_is_published(self) -> _data_track_pb2.RemoteDataTrackIsPublishedResponse: ... + @_builtins.property + def data_track_stream_read(self) -> _data_track_pb2.DataTrackStreamReadResponse: ... + @_builtins.property + def remote_data_track_set_pipeline_options(self) -> _data_track_pb2.RemoteDataTrackSetPipelineOptionsResponse: ... + @_builtins.property + def simulate_scenario(self) -> _room_pb2.SimulateScenarioResponse: """Reconnection / chaos testing""" - @property - def new_platform_audio(self) -> audio_frame_pb2.NewPlatformAudioResponse: + @_builtins.property + def new_platform_audio(self) -> _audio_frame_pb2.NewPlatformAudioResponse: """Platform Audio (ADM)""" - @property - def get_audio_devices(self) -> audio_frame_pb2.GetAudioDevicesResponse: ... - @property - def set_recording_device(self) -> audio_frame_pb2.SetRecordingDeviceResponse: ... - @property - def set_playout_device(self) -> audio_frame_pb2.SetPlayoutDeviceResponse: ... - @property - def start_recording(self) -> audio_frame_pb2.StartRecordingResponse: ... - @property - def stop_recording(self) -> audio_frame_pb2.StopRecordingResponse: ... - @property - def ready_for_room_event(self) -> room_pb2.ReadyForRoomEventResponse: + @_builtins.property + def get_audio_devices(self) -> _audio_frame_pb2.GetAudioDevicesResponse: ... + @_builtins.property + def set_recording_device(self) -> _audio_frame_pb2.SetRecordingDeviceResponse: ... + @_builtins.property + def set_playout_device(self) -> _audio_frame_pb2.SetPlayoutDeviceResponse: ... + @_builtins.property + def start_recording(self) -> _audio_frame_pb2.StartRecordingResponse: ... + @_builtins.property + def stop_recording(self) -> _audio_frame_pb2.StopRecordingResponse: ... + @_builtins.property + def ready_for_room_event(self) -> _room_pb2.ReadyForRoomEventResponse: """Room event ready signal""" 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 = ..., - remote_data_track_set_pipeline_options: data_track_pb2.RemoteDataTrackSetPipelineOptionsResponse | None = ..., - simulate_scenario: room_pb2.SimulateScenarioResponse | None = ..., - new_platform_audio: audio_frame_pb2.NewPlatformAudioResponse | None = ..., - get_audio_devices: audio_frame_pb2.GetAudioDevicesResponse | None = ..., - set_recording_device: audio_frame_pb2.SetRecordingDeviceResponse | None = ..., - set_playout_device: audio_frame_pb2.SetPlayoutDeviceResponse | None = ..., - start_recording: audio_frame_pb2.StartRecordingResponse | None = ..., - stop_recording: audio_frame_pb2.StopRecordingResponse | None = ..., - ready_for_room_event: room_pb2.ReadyForRoomEventResponse | 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 = ..., + remote_data_track_set_pipeline_options: _data_track_pb2.RemoteDataTrackSetPipelineOptionsResponse | None = ..., + simulate_scenario: _room_pb2.SimulateScenarioResponse | None = ..., + new_platform_audio: _audio_frame_pb2.NewPlatformAudioResponse | None = ..., + get_audio_devices: _audio_frame_pb2.GetAudioDevicesResponse | None = ..., + set_recording_device: _audio_frame_pb2.SetRecordingDeviceResponse | None = ..., + set_playout_device: _audio_frame_pb2.SetPlayoutDeviceResponse | None = ..., + start_recording: _audio_frame_pb2.StartRecordingResponse | None = ..., + stop_recording: _audio_frame_pb2.StopRecordingResponse | None = ..., + ready_for_room_event: _room_pb2.ReadyForRoomEventResponse | 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_audio_devices", b"get_audio_devices", "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_platform_audio", b"new_platform_audio", "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", "ready_for_room_event", b"ready_for_room_event", "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", "remote_data_track_set_pipeline_options", b"remote_data_track_set_pipeline_options", "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_playout_device", b"set_playout_device", "set_recording_device", b"set_recording_device", "set_remote_track_publication_quality", b"set_remote_track_publication_quality", "set_subscribed", b"set_subscribed", "set_track_subscription_permissions", b"set_track_subscription_permissions", "simulate_scenario", b"simulate_scenario", "start_recording", b"start_recording", "stop_recording", b"stop_recording", "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_audio_devices", b"get_audio_devices", "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_platform_audio", b"new_platform_audio", "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", "ready_for_room_event", b"ready_for_room_event", "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", "remote_data_track_set_pipeline_options", b"remote_data_track_set_pipeline_options", "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_playout_device", b"set_playout_device", "set_recording_device", b"set_recording_device", "set_remote_track_publication_quality", b"set_remote_track_publication_quality", "set_subscribed", b"set_subscribed", "set_track_subscription_permissions", b"set_track_subscription_permissions", "simulate_scenario", b"simulate_scenario", "start_recording", b"start_recording", "stop_recording", b"stop_recording", "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", "remote_data_track_set_pipeline_options", "simulate_scenario", "new_platform_audio", "get_audio_devices", "set_recording_device", "set_playout_device", "start_recording", "stop_recording", "ready_for_room_event"] | 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_audio_devices", b"get_audio_devices", "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_platform_audio", b"new_platform_audio", "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", "ready_for_room_event", b"ready_for_room_event", "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", "remote_data_track_set_pipeline_options", b"remote_data_track_set_pipeline_options", "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_playout_device", b"set_playout_device", "set_recording_device", b"set_recording_device", "set_remote_track_publication_quality", b"set_remote_track_publication_quality", "set_subscribed", b"set_subscribed", "set_track_subscription_permissions", b"set_track_subscription_permissions", "simulate_scenario", b"simulate_scenario", "start_recording", b"start_recording", "stop_recording", b"stop_recording", "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_audio_devices", b"get_audio_devices", "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_platform_audio", b"new_platform_audio", "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", "ready_for_room_event", b"ready_for_room_event", "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", "remote_data_track_set_pipeline_options", b"remote_data_track_set_pipeline_options", "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_playout_device", b"set_playout_device", "set_recording_device", b"set_recording_device", "set_remote_track_publication_quality", b"set_remote_track_publication_quality", "set_subscribed", b"set_subscribed", "set_track_subscription_permissions", b"set_track_subscription_permissions", "simulate_scenario", b"simulate_scenario", "start_recording", b"start_recording", "stop_recording", b"stop_recording", "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", "remote_data_track_set_pipeline_options", "simulate_scenario", "new_platform_audio", "get_audio_devices", "set_recording_device", "set_playout_device", "start_recording", "stop_recording", "ready_for_room_event"] # 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 - SIMULATE_SCENARIO_FIELD_NUMBER: builtins.int - @property - def room_event(self) -> room_pb2.RoomEvent: ... - @property - def track_event(self) -> track_pb2.TrackEvent: ... - @property - def video_stream_event(self) -> video_frame_pb2.VideoStreamEvent: ... - @property - def audio_stream_event(self) -> audio_frame_pb2.AudioStreamEvent: ... - @property - def connect(self) -> room_pb2.ConnectCallback: ... - @property - def disconnect(self) -> room_pb2.DisconnectCallback: ... - @property - def dispose(self) -> global___DisposeCallback: ... - @property - def publish_track(self) -> room_pb2.PublishTrackCallback: ... - @property - def unpublish_track(self) -> room_pb2.UnpublishTrackCallback: ... - @property - def publish_data(self) -> room_pb2.PublishDataCallback: ... - @property - def publish_transcription(self) -> room_pb2.PublishTranscriptionCallback: ... - @property - def capture_audio_frame(self) -> audio_frame_pb2.CaptureAudioFrameCallback: ... - @property - def set_local_metadata(self) -> room_pb2.SetLocalMetadataCallback: ... - @property - def set_local_name(self) -> room_pb2.SetLocalNameCallback: ... - @property - def set_local_attributes(self) -> room_pb2.SetLocalAttributesCallback: ... - @property - def get_stats(self) -> track_pb2.GetStatsCallback: ... - @property - def logs(self) -> global___LogBatch: ... - @property - def get_session_stats(self) -> room_pb2.GetSessionStatsCallback: ... - @property - def panic(self) -> global___Panic: ... - @property - def publish_sip_dtmf(self) -> room_pb2.PublishSipDtmfCallback: ... - @property - def chat_message(self) -> room_pb2.SendChatMessageCallback: ... - @property - def perform_rpc(self) -> rpc_pb2.PerformRpcCallback: ... - @property - def rpc_method_invocation(self) -> rpc_pb2.RpcMethodInvocationEvent: ... - @property - def send_stream_header(self) -> room_pb2.SendStreamHeaderCallback: + DESCRIPTOR: _descriptor.Descriptor + + ROOM_EVENT_FIELD_NUMBER: _builtins.int + TRACK_EVENT_FIELD_NUMBER: _builtins.int + VIDEO_STREAM_EVENT_FIELD_NUMBER: _builtins.int + AUDIO_STREAM_EVENT_FIELD_NUMBER: _builtins.int + CONNECT_FIELD_NUMBER: _builtins.int + DISCONNECT_FIELD_NUMBER: _builtins.int + DISPOSE_FIELD_NUMBER: _builtins.int + PUBLISH_TRACK_FIELD_NUMBER: _builtins.int + UNPUBLISH_TRACK_FIELD_NUMBER: _builtins.int + PUBLISH_DATA_FIELD_NUMBER: _builtins.int + PUBLISH_TRANSCRIPTION_FIELD_NUMBER: _builtins.int + CAPTURE_AUDIO_FRAME_FIELD_NUMBER: _builtins.int + SET_LOCAL_METADATA_FIELD_NUMBER: _builtins.int + SET_LOCAL_NAME_FIELD_NUMBER: _builtins.int + SET_LOCAL_ATTRIBUTES_FIELD_NUMBER: _builtins.int + GET_STATS_FIELD_NUMBER: _builtins.int + LOGS_FIELD_NUMBER: _builtins.int + GET_SESSION_STATS_FIELD_NUMBER: _builtins.int + PANIC_FIELD_NUMBER: _builtins.int + PUBLISH_SIP_DTMF_FIELD_NUMBER: _builtins.int + CHAT_MESSAGE_FIELD_NUMBER: _builtins.int + PERFORM_RPC_FIELD_NUMBER: _builtins.int + RPC_METHOD_INVOCATION_FIELD_NUMBER: _builtins.int + SEND_STREAM_HEADER_FIELD_NUMBER: _builtins.int + SEND_STREAM_CHUNK_FIELD_NUMBER: _builtins.int + SEND_STREAM_TRAILER_FIELD_NUMBER: _builtins.int + BYTE_STREAM_READER_EVENT_FIELD_NUMBER: _builtins.int + BYTE_STREAM_READER_READ_ALL_FIELD_NUMBER: _builtins.int + BYTE_STREAM_READER_WRITE_TO_FILE_FIELD_NUMBER: _builtins.int + BYTE_STREAM_OPEN_FIELD_NUMBER: _builtins.int + BYTE_STREAM_WRITER_WRITE_FIELD_NUMBER: _builtins.int + BYTE_STREAM_WRITER_CLOSE_FIELD_NUMBER: _builtins.int + SEND_FILE_FIELD_NUMBER: _builtins.int + TEXT_STREAM_READER_EVENT_FIELD_NUMBER: _builtins.int + TEXT_STREAM_READER_READ_ALL_FIELD_NUMBER: _builtins.int + TEXT_STREAM_OPEN_FIELD_NUMBER: _builtins.int + TEXT_STREAM_WRITER_WRITE_FIELD_NUMBER: _builtins.int + TEXT_STREAM_WRITER_CLOSE_FIELD_NUMBER: _builtins.int + SEND_TEXT_FIELD_NUMBER: _builtins.int + SEND_BYTES_FIELD_NUMBER: _builtins.int + PUBLISH_DATA_TRACK_FIELD_NUMBER: _builtins.int + DATA_TRACK_STREAM_EVENT_FIELD_NUMBER: _builtins.int + SIMULATE_SCENARIO_FIELD_NUMBER: _builtins.int + @_builtins.property + def room_event(self) -> _room_pb2.RoomEvent: ... + @_builtins.property + def track_event(self) -> _track_pb2.TrackEvent: ... + @_builtins.property + def video_stream_event(self) -> _video_frame_pb2.VideoStreamEvent: ... + @_builtins.property + def audio_stream_event(self) -> _audio_frame_pb2.AudioStreamEvent: ... + @_builtins.property + def connect(self) -> _room_pb2.ConnectCallback: ... + @_builtins.property + def disconnect(self) -> _room_pb2.DisconnectCallback: ... + @_builtins.property + def dispose(self) -> Global___DisposeCallback: ... + @_builtins.property + def publish_track(self) -> _room_pb2.PublishTrackCallback: ... + @_builtins.property + def unpublish_track(self) -> _room_pb2.UnpublishTrackCallback: ... + @_builtins.property + def publish_data(self) -> _room_pb2.PublishDataCallback: ... + @_builtins.property + def publish_transcription(self) -> _room_pb2.PublishTranscriptionCallback: ... + @_builtins.property + def capture_audio_frame(self) -> _audio_frame_pb2.CaptureAudioFrameCallback: ... + @_builtins.property + def set_local_metadata(self) -> _room_pb2.SetLocalMetadataCallback: ... + @_builtins.property + def set_local_name(self) -> _room_pb2.SetLocalNameCallback: ... + @_builtins.property + def set_local_attributes(self) -> _room_pb2.SetLocalAttributesCallback: ... + @_builtins.property + def get_stats(self) -> _track_pb2.GetStatsCallback: ... + @_builtins.property + def logs(self) -> Global___LogBatch: ... + @_builtins.property + def get_session_stats(self) -> _room_pb2.GetSessionStatsCallback: ... + @_builtins.property + def panic(self) -> Global___Panic: ... + @_builtins.property + def publish_sip_dtmf(self) -> _room_pb2.PublishSipDtmfCallback: ... + @_builtins.property + def chat_message(self) -> _room_pb2.SendChatMessageCallback: ... + @_builtins.property + def perform_rpc(self) -> _rpc_pb2.PerformRpcCallback: ... + @_builtins.property + def rpc_method_invocation(self) -> _rpc_pb2.RpcMethodInvocationEvent: ... + @_builtins.property + def send_stream_header(self) -> _room_pb2.SendStreamHeaderCallback: """Data Streams (low level)""" - @property - def send_stream_chunk(self) -> room_pb2.SendStreamChunkCallback: ... - @property - def send_stream_trailer(self) -> room_pb2.SendStreamTrailerCallback: ... - @property - def byte_stream_reader_event(self) -> data_stream_pb2.ByteStreamReaderEvent: + @_builtins.property + def send_stream_chunk(self) -> _room_pb2.SendStreamChunkCallback: ... + @_builtins.property + def send_stream_trailer(self) -> _room_pb2.SendStreamTrailerCallback: ... + @_builtins.property + def byte_stream_reader_event(self) -> _data_stream_pb2.ByteStreamReaderEvent: """Data Streams (high level)""" - @property - def byte_stream_reader_read_all(self) -> data_stream_pb2.ByteStreamReaderReadAllCallback: ... - @property - def byte_stream_reader_write_to_file(self) -> data_stream_pb2.ByteStreamReaderWriteToFileCallback: ... - @property - def byte_stream_open(self) -> data_stream_pb2.ByteStreamOpenCallback: ... - @property - def byte_stream_writer_write(self) -> data_stream_pb2.ByteStreamWriterWriteCallback: ... - @property - def byte_stream_writer_close(self) -> data_stream_pb2.ByteStreamWriterCloseCallback: ... - @property - def send_file(self) -> data_stream_pb2.StreamSendFileCallback: ... - @property - def text_stream_reader_event(self) -> data_stream_pb2.TextStreamReaderEvent: ... - @property - def text_stream_reader_read_all(self) -> data_stream_pb2.TextStreamReaderReadAllCallback: ... - @property - def text_stream_open(self) -> data_stream_pb2.TextStreamOpenCallback: ... - @property - def text_stream_writer_write(self) -> data_stream_pb2.TextStreamWriterWriteCallback: ... - @property - def text_stream_writer_close(self) -> data_stream_pb2.TextStreamWriterCloseCallback: ... - @property - def send_text(self) -> data_stream_pb2.StreamSendTextCallback: ... - @property - def send_bytes(self) -> data_stream_pb2.StreamSendBytesCallback: ... - @property - def publish_data_track(self) -> data_track_pb2.PublishDataTrackCallback: + @_builtins.property + def byte_stream_reader_read_all(self) -> _data_stream_pb2.ByteStreamReaderReadAllCallback: ... + @_builtins.property + def byte_stream_reader_write_to_file(self) -> _data_stream_pb2.ByteStreamReaderWriteToFileCallback: ... + @_builtins.property + def byte_stream_open(self) -> _data_stream_pb2.ByteStreamOpenCallback: ... + @_builtins.property + def byte_stream_writer_write(self) -> _data_stream_pb2.ByteStreamWriterWriteCallback: ... + @_builtins.property + def byte_stream_writer_close(self) -> _data_stream_pb2.ByteStreamWriterCloseCallback: ... + @_builtins.property + def send_file(self) -> _data_stream_pb2.StreamSendFileCallback: ... + @_builtins.property + def text_stream_reader_event(self) -> _data_stream_pb2.TextStreamReaderEvent: ... + @_builtins.property + def text_stream_reader_read_all(self) -> _data_stream_pb2.TextStreamReaderReadAllCallback: ... + @_builtins.property + def text_stream_open(self) -> _data_stream_pb2.TextStreamOpenCallback: ... + @_builtins.property + def text_stream_writer_write(self) -> _data_stream_pb2.TextStreamWriterWriteCallback: ... + @_builtins.property + def text_stream_writer_close(self) -> _data_stream_pb2.TextStreamWriterCloseCallback: ... + @_builtins.property + def send_text(self) -> _data_stream_pb2.StreamSendTextCallback: ... + @_builtins.property + def send_bytes(self) -> _data_stream_pb2.StreamSendBytesCallback: ... + @_builtins.property + def publish_data_track(self) -> _data_track_pb2.PublishDataTrackCallback: """Data Track (local)""" - @property - def data_track_stream_event(self) -> data_track_pb2.DataTrackStreamEvent: + @_builtins.property + def data_track_stream_event(self) -> _data_track_pb2.DataTrackStreamEvent: """Data Track (remote)""" - @property - def simulate_scenario(self) -> room_pb2.SimulateScenarioCallback: ... + @_builtins.property + def simulate_scenario(self) -> _room_pb2.SimulateScenarioCallback: ... def __init__( self, *, - room_event: room_pb2.RoomEvent | None = ..., - track_event: track_pb2.TrackEvent | None = ..., - video_stream_event: video_frame_pb2.VideoStreamEvent | None = ..., - audio_stream_event: audio_frame_pb2.AudioStreamEvent | None = ..., - connect: room_pb2.ConnectCallback | None = ..., - disconnect: room_pb2.DisconnectCallback | None = ..., - dispose: global___DisposeCallback | None = ..., - publish_track: room_pb2.PublishTrackCallback | None = ..., - unpublish_track: room_pb2.UnpublishTrackCallback | None = ..., - publish_data: room_pb2.PublishDataCallback | None = ..., - publish_transcription: room_pb2.PublishTranscriptionCallback | None = ..., - capture_audio_frame: audio_frame_pb2.CaptureAudioFrameCallback | None = ..., - set_local_metadata: room_pb2.SetLocalMetadataCallback | None = ..., - set_local_name: room_pb2.SetLocalNameCallback | None = ..., - set_local_attributes: room_pb2.SetLocalAttributesCallback | None = ..., - get_stats: track_pb2.GetStatsCallback | None = ..., - logs: global___LogBatch | None = ..., - get_session_stats: room_pb2.GetSessionStatsCallback | None = ..., - panic: global___Panic | None = ..., - publish_sip_dtmf: room_pb2.PublishSipDtmfCallback | None = ..., - chat_message: room_pb2.SendChatMessageCallback | None = ..., - perform_rpc: rpc_pb2.PerformRpcCallback | None = ..., - rpc_method_invocation: rpc_pb2.RpcMethodInvocationEvent | None = ..., - send_stream_header: room_pb2.SendStreamHeaderCallback | None = ..., - send_stream_chunk: room_pb2.SendStreamChunkCallback | None = ..., - send_stream_trailer: room_pb2.SendStreamTrailerCallback | None = ..., - byte_stream_reader_event: data_stream_pb2.ByteStreamReaderEvent | None = ..., - byte_stream_reader_read_all: data_stream_pb2.ByteStreamReaderReadAllCallback | None = ..., - byte_stream_reader_write_to_file: data_stream_pb2.ByteStreamReaderWriteToFileCallback | None = ..., - byte_stream_open: data_stream_pb2.ByteStreamOpenCallback | None = ..., - byte_stream_writer_write: data_stream_pb2.ByteStreamWriterWriteCallback | None = ..., - byte_stream_writer_close: data_stream_pb2.ByteStreamWriterCloseCallback | None = ..., - send_file: data_stream_pb2.StreamSendFileCallback | None = ..., - text_stream_reader_event: data_stream_pb2.TextStreamReaderEvent | None = ..., - text_stream_reader_read_all: data_stream_pb2.TextStreamReaderReadAllCallback | None = ..., - text_stream_open: data_stream_pb2.TextStreamOpenCallback | None = ..., - text_stream_writer_write: data_stream_pb2.TextStreamWriterWriteCallback | None = ..., - text_stream_writer_close: data_stream_pb2.TextStreamWriterCloseCallback | None = ..., - send_text: data_stream_pb2.StreamSendTextCallback | None = ..., - send_bytes: data_stream_pb2.StreamSendBytesCallback | None = ..., - publish_data_track: data_track_pb2.PublishDataTrackCallback | None = ..., - data_track_stream_event: data_track_pb2.DataTrackStreamEvent | None = ..., - simulate_scenario: room_pb2.SimulateScenarioCallback | None = ..., + room_event: _room_pb2.RoomEvent | None = ..., + track_event: _track_pb2.TrackEvent | None = ..., + video_stream_event: _video_frame_pb2.VideoStreamEvent | None = ..., + audio_stream_event: _audio_frame_pb2.AudioStreamEvent | None = ..., + connect: _room_pb2.ConnectCallback | None = ..., + disconnect: _room_pb2.DisconnectCallback | None = ..., + dispose: Global___DisposeCallback | None = ..., + publish_track: _room_pb2.PublishTrackCallback | None = ..., + unpublish_track: _room_pb2.UnpublishTrackCallback | None = ..., + publish_data: _room_pb2.PublishDataCallback | None = ..., + publish_transcription: _room_pb2.PublishTranscriptionCallback | None = ..., + capture_audio_frame: _audio_frame_pb2.CaptureAudioFrameCallback | None = ..., + set_local_metadata: _room_pb2.SetLocalMetadataCallback | None = ..., + set_local_name: _room_pb2.SetLocalNameCallback | None = ..., + set_local_attributes: _room_pb2.SetLocalAttributesCallback | None = ..., + get_stats: _track_pb2.GetStatsCallback | None = ..., + logs: Global___LogBatch | None = ..., + get_session_stats: _room_pb2.GetSessionStatsCallback | None = ..., + panic: Global___Panic | None = ..., + publish_sip_dtmf: _room_pb2.PublishSipDtmfCallback | None = ..., + chat_message: _room_pb2.SendChatMessageCallback | None = ..., + perform_rpc: _rpc_pb2.PerformRpcCallback | None = ..., + rpc_method_invocation: _rpc_pb2.RpcMethodInvocationEvent | None = ..., + send_stream_header: _room_pb2.SendStreamHeaderCallback | None = ..., + send_stream_chunk: _room_pb2.SendStreamChunkCallback | None = ..., + send_stream_trailer: _room_pb2.SendStreamTrailerCallback | None = ..., + byte_stream_reader_event: _data_stream_pb2.ByteStreamReaderEvent | None = ..., + byte_stream_reader_read_all: _data_stream_pb2.ByteStreamReaderReadAllCallback | None = ..., + byte_stream_reader_write_to_file: _data_stream_pb2.ByteStreamReaderWriteToFileCallback | None = ..., + byte_stream_open: _data_stream_pb2.ByteStreamOpenCallback | None = ..., + byte_stream_writer_write: _data_stream_pb2.ByteStreamWriterWriteCallback | None = ..., + byte_stream_writer_close: _data_stream_pb2.ByteStreamWriterCloseCallback | None = ..., + send_file: _data_stream_pb2.StreamSendFileCallback | None = ..., + text_stream_reader_event: _data_stream_pb2.TextStreamReaderEvent | None = ..., + text_stream_reader_read_all: _data_stream_pb2.TextStreamReaderReadAllCallback | None = ..., + text_stream_open: _data_stream_pb2.TextStreamOpenCallback | None = ..., + text_stream_writer_write: _data_stream_pb2.TextStreamWriterWriteCallback | None = ..., + text_stream_writer_close: _data_stream_pb2.TextStreamWriterCloseCallback | None = ..., + send_text: _data_stream_pb2.StreamSendTextCallback | None = ..., + send_bytes: _data_stream_pb2.StreamSendBytesCallback | None = ..., + publish_data_track: _data_track_pb2.PublishDataTrackCallback | None = ..., + data_track_stream_event: _data_track_pb2.DataTrackStreamEvent | None = ..., + simulate_scenario: _room_pb2.SimulateScenarioCallback | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["audio_stream_event", b"audio_stream_event", "byte_stream_open", b"byte_stream_open", "byte_stream_reader_event", b"byte_stream_reader_event", "byte_stream_reader_read_all", b"byte_stream_reader_read_all", "byte_stream_reader_write_to_file", b"byte_stream_reader_write_to_file", "byte_stream_writer_close", b"byte_stream_writer_close", "byte_stream_writer_write", b"byte_stream_writer_write", "capture_audio_frame", b"capture_audio_frame", "chat_message", b"chat_message", "connect", b"connect", "data_track_stream_event", b"data_track_stream_event", "disconnect", b"disconnect", "dispose", b"dispose", "get_session_stats", b"get_session_stats", "get_stats", b"get_stats", "logs", b"logs", "message", b"message", "panic", b"panic", "perform_rpc", b"perform_rpc", "publish_data", b"publish_data", "publish_data_track", b"publish_data_track", "publish_sip_dtmf", b"publish_sip_dtmf", "publish_track", b"publish_track", "publish_transcription", b"publish_transcription", "room_event", b"room_event", "rpc_method_invocation", b"rpc_method_invocation", "send_bytes", b"send_bytes", "send_file", b"send_file", "send_stream_chunk", b"send_stream_chunk", "send_stream_header", b"send_stream_header", "send_stream_trailer", b"send_stream_trailer", "send_text", b"send_text", "set_local_attributes", b"set_local_attributes", "set_local_metadata", b"set_local_metadata", "set_local_name", b"set_local_name", "simulate_scenario", b"simulate_scenario", "text_stream_open", b"text_stream_open", "text_stream_reader_event", b"text_stream_reader_event", "text_stream_reader_read_all", b"text_stream_reader_read_all", "text_stream_writer_close", b"text_stream_writer_close", "text_stream_writer_write", b"text_stream_writer_write", "track_event", b"track_event", "unpublish_track", b"unpublish_track", "video_stream_event", b"video_stream_event"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["audio_stream_event", b"audio_stream_event", "byte_stream_open", b"byte_stream_open", "byte_stream_reader_event", b"byte_stream_reader_event", "byte_stream_reader_read_all", b"byte_stream_reader_read_all", "byte_stream_reader_write_to_file", b"byte_stream_reader_write_to_file", "byte_stream_writer_close", b"byte_stream_writer_close", "byte_stream_writer_write", b"byte_stream_writer_write", "capture_audio_frame", b"capture_audio_frame", "chat_message", b"chat_message", "connect", b"connect", "data_track_stream_event", b"data_track_stream_event", "disconnect", b"disconnect", "dispose", b"dispose", "get_session_stats", b"get_session_stats", "get_stats", b"get_stats", "logs", b"logs", "message", b"message", "panic", b"panic", "perform_rpc", b"perform_rpc", "publish_data", b"publish_data", "publish_data_track", b"publish_data_track", "publish_sip_dtmf", b"publish_sip_dtmf", "publish_track", b"publish_track", "publish_transcription", b"publish_transcription", "room_event", b"room_event", "rpc_method_invocation", b"rpc_method_invocation", "send_bytes", b"send_bytes", "send_file", b"send_file", "send_stream_chunk", b"send_stream_chunk", "send_stream_header", b"send_stream_header", "send_stream_trailer", b"send_stream_trailer", "send_text", b"send_text", "set_local_attributes", b"set_local_attributes", "set_local_metadata", b"set_local_metadata", "set_local_name", b"set_local_name", "simulate_scenario", b"simulate_scenario", "text_stream_open", b"text_stream_open", "text_stream_reader_event", b"text_stream_reader_event", "text_stream_reader_read_all", b"text_stream_reader_read_all", "text_stream_writer_close", b"text_stream_writer_close", "text_stream_writer_write", b"text_stream_writer_write", "track_event", b"track_event", "unpublish_track", b"unpublish_track", "video_stream_event", b"video_stream_event"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["room_event", "track_event", "video_stream_event", "audio_stream_event", "connect", "disconnect", "dispose", "publish_track", "unpublish_track", "publish_data", "publish_transcription", "capture_audio_frame", "set_local_metadata", "set_local_name", "set_local_attributes", "get_stats", "logs", "get_session_stats", "panic", "publish_sip_dtmf", "chat_message", "perform_rpc", "rpc_method_invocation", "send_stream_header", "send_stream_chunk", "send_stream_trailer", "byte_stream_reader_event", "byte_stream_reader_read_all", "byte_stream_reader_write_to_file", "byte_stream_open", "byte_stream_writer_write", "byte_stream_writer_close", "send_file", "text_stream_reader_event", "text_stream_reader_read_all", "text_stream_open", "text_stream_writer_write", "text_stream_writer_close", "send_text", "send_bytes", "publish_data_track", "data_track_stream_event", "simulate_scenario"] | None: ... - -global___FfiEvent = FfiEvent - -@typing.final -class DisposeRequest(google.protobuf.message.Message): + _HasFieldArgType: _TypeAlias = _typing.Literal["audio_stream_event", b"audio_stream_event", "byte_stream_open", b"byte_stream_open", "byte_stream_reader_event", b"byte_stream_reader_event", "byte_stream_reader_read_all", b"byte_stream_reader_read_all", "byte_stream_reader_write_to_file", b"byte_stream_reader_write_to_file", "byte_stream_writer_close", b"byte_stream_writer_close", "byte_stream_writer_write", b"byte_stream_writer_write", "capture_audio_frame", b"capture_audio_frame", "chat_message", b"chat_message", "connect", b"connect", "data_track_stream_event", b"data_track_stream_event", "disconnect", b"disconnect", "dispose", b"dispose", "get_session_stats", b"get_session_stats", "get_stats", b"get_stats", "logs", b"logs", "message", b"message", "panic", b"panic", "perform_rpc", b"perform_rpc", "publish_data", b"publish_data", "publish_data_track", b"publish_data_track", "publish_sip_dtmf", b"publish_sip_dtmf", "publish_track", b"publish_track", "publish_transcription", b"publish_transcription", "room_event", b"room_event", "rpc_method_invocation", b"rpc_method_invocation", "send_bytes", b"send_bytes", "send_file", b"send_file", "send_stream_chunk", b"send_stream_chunk", "send_stream_header", b"send_stream_header", "send_stream_trailer", b"send_stream_trailer", "send_text", b"send_text", "set_local_attributes", b"set_local_attributes", "set_local_metadata", b"set_local_metadata", "set_local_name", b"set_local_name", "simulate_scenario", b"simulate_scenario", "text_stream_open", b"text_stream_open", "text_stream_reader_event", b"text_stream_reader_event", "text_stream_reader_read_all", b"text_stream_reader_read_all", "text_stream_writer_close", b"text_stream_writer_close", "text_stream_writer_write", b"text_stream_writer_write", "track_event", b"track_event", "unpublish_track", b"unpublish_track", "video_stream_event", b"video_stream_event"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["audio_stream_event", b"audio_stream_event", "byte_stream_open", b"byte_stream_open", "byte_stream_reader_event", b"byte_stream_reader_event", "byte_stream_reader_read_all", b"byte_stream_reader_read_all", "byte_stream_reader_write_to_file", b"byte_stream_reader_write_to_file", "byte_stream_writer_close", b"byte_stream_writer_close", "byte_stream_writer_write", b"byte_stream_writer_write", "capture_audio_frame", b"capture_audio_frame", "chat_message", b"chat_message", "connect", b"connect", "data_track_stream_event", b"data_track_stream_event", "disconnect", b"disconnect", "dispose", b"dispose", "get_session_stats", b"get_session_stats", "get_stats", b"get_stats", "logs", b"logs", "message", b"message", "panic", b"panic", "perform_rpc", b"perform_rpc", "publish_data", b"publish_data", "publish_data_track", b"publish_data_track", "publish_sip_dtmf", b"publish_sip_dtmf", "publish_track", b"publish_track", "publish_transcription", b"publish_transcription", "room_event", b"room_event", "rpc_method_invocation", b"rpc_method_invocation", "send_bytes", b"send_bytes", "send_file", b"send_file", "send_stream_chunk", b"send_stream_chunk", "send_stream_header", b"send_stream_header", "send_stream_trailer", b"send_stream_trailer", "send_text", b"send_text", "set_local_attributes", b"set_local_attributes", "set_local_metadata", b"set_local_metadata", "set_local_name", b"set_local_name", "simulate_scenario", b"simulate_scenario", "text_stream_open", b"text_stream_open", "text_stream_reader_event", b"text_stream_reader_event", "text_stream_reader_read_all", b"text_stream_reader_read_all", "text_stream_writer_close", b"text_stream_writer_close", "text_stream_writer_write", b"text_stream_writer_write", "track_event", b"track_event", "unpublish_track", b"unpublish_track", "video_stream_event", b"video_stream_event"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["room_event", "track_event", "video_stream_event", "audio_stream_event", "connect", "disconnect", "dispose", "publish_track", "unpublish_track", "publish_data", "publish_transcription", "capture_audio_frame", "set_local_metadata", "set_local_name", "set_local_attributes", "get_stats", "logs", "get_session_stats", "panic", "publish_sip_dtmf", "chat_message", "perform_rpc", "rpc_method_invocation", "send_stream_header", "send_stream_chunk", "send_stream_trailer", "byte_stream_reader_event", "byte_stream_reader_read_all", "byte_stream_reader_write_to_file", "byte_stream_open", "byte_stream_writer_write", "byte_stream_writer_close", "send_file", "text_stream_reader_event", "text_stream_reader_read_all", "text_stream_open", "text_stream_writer_write", "text_stream_writer_close", "send_text", "send_bytes", "publish_data_track", "data_track_stream_event", "simulate_scenario"] # noqa: Y015 + _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... + +Global___FfiEvent: _TypeAlias = FfiEvent # noqa: Y015 + +@_typing.final +class DisposeRequest(_message.Message): """Stop all rooms synchronously (Do we need async here?). e.g: This is used for the Unity Editor after each assemblies reload. TODO(theomonnom): Implement a debug mode where we can find all leaked handles? """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - ASYNC_FIELD_NUMBER: builtins.int + ASYNC_FIELD_NUMBER: _builtins.int def __init__( self, ) -> None: ... - def HasField(self, field_name: typing.Literal["async", b"async"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async", b"async"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async", b"async"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async", b"async"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DisposeRequest = DisposeRequest +Global___DisposeRequest: _TypeAlias = DisposeRequest # noqa: Y015 -@typing.final -class DisposeResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DisposeResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int """None if sync""" def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DisposeResponse = DisposeResponse +Global___DisposeResponse: _TypeAlias = DisposeResponse # noqa: Y015 -@typing.final -class DisposeCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DisposeCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... - -global___DisposeCallback = DisposeCallback - -@typing.final -class LogRecord(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - LEVEL_FIELD_NUMBER: builtins.int - TARGET_FIELD_NUMBER: builtins.int - MODULE_PATH_FIELD_NUMBER: builtins.int - FILE_FIELD_NUMBER: builtins.int - LINE_FIELD_NUMBER: builtins.int - MESSAGE_FIELD_NUMBER: builtins.int - level: global___LogLevel.ValueType - target: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___DisposeCallback: _TypeAlias = DisposeCallback # noqa: Y015 + +@_typing.final +class LogRecord(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + LEVEL_FIELD_NUMBER: _builtins.int + TARGET_FIELD_NUMBER: _builtins.int + MODULE_PATH_FIELD_NUMBER: _builtins.int + FILE_FIELD_NUMBER: _builtins.int + LINE_FIELD_NUMBER: _builtins.int + MESSAGE_FIELD_NUMBER: _builtins.int + level: Global___LogLevel.ValueType + target: _builtins.str """e.g "livekit", "libwebrtc", "tokio-tungstenite", etc...""" - module_path: builtins.str - file: builtins.str - line: builtins.int - message: builtins.str + module_path: _builtins.str + file: _builtins.str + line: _builtins.int + message: _builtins.str def __init__( self, *, - level: global___LogLevel.ValueType | None = ..., - target: builtins.str | None = ..., - module_path: builtins.str | None = ..., - file: builtins.str | None = ..., - line: builtins.int | None = ..., - message: builtins.str | None = ..., + level: Global___LogLevel.ValueType | None = ..., + target: _builtins.str | None = ..., + module_path: _builtins.str | None = ..., + file: _builtins.str | None = ..., + line: _builtins.int | None = ..., + message: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["file", b"file", "level", b"level", "line", b"line", "message", b"message", "module_path", b"module_path", "target", b"target"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["file", b"file", "level", b"level", "line", b"line", "message", b"message", "module_path", b"module_path", "target", b"target"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["file", b"file", "level", b"level", "line", b"line", "message", b"message", "module_path", b"module_path", "target", b"target"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["file", b"file", "level", b"level", "line", b"line", "message", b"message", "module_path", b"module_path", "target", b"target"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___LogRecord = LogRecord +Global___LogRecord: _TypeAlias = LogRecord # noqa: Y015 -@typing.final -class LogBatch(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class LogBatch(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - RECORDS_FIELD_NUMBER: builtins.int - @property - def records(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___LogRecord]: ... + RECORDS_FIELD_NUMBER: _builtins.int + @_builtins.property + def records(self) -> _containers.RepeatedCompositeFieldContainer[Global___LogRecord]: ... def __init__( self, *, - records: collections.abc.Iterable[global___LogRecord] | None = ..., + records: _abc.Iterable[Global___LogRecord] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing.Literal["records", b"records"]) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["records", b"records"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___LogBatch = LogBatch +Global___LogBatch: _TypeAlias = LogBatch # noqa: Y015 -@typing.final -class Panic(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class Panic(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - MESSAGE_FIELD_NUMBER: builtins.int - message: builtins.str + MESSAGE_FIELD_NUMBER: _builtins.int + message: _builtins.str def __init__( self, *, - message: builtins.str | None = ..., + message: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["message", b"message"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["message", b"message"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___Panic = Panic +Global___Panic: _TypeAlias = Panic # noqa: Y015 diff --git a/livekit-rtc/livekit/rtc/_proto/handle_pb2.py b/livekit-rtc/livekit/rtc/_proto/handle_pb2.py index 2ae2db78..1e797ebe 100644 --- a/livekit-rtc/livekit/rtc/_proto/handle_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/handle_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: handle.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 4.25.2 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool diff --git a/livekit-rtc/livekit/rtc/_proto/handle_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/handle_pb2.pyi index d433a6c2..49362e17 100644 --- a/livekit-rtc/livekit/rtc/_proto/handle_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/handle_pb2.pyi @@ -16,15 +16,21 @@ See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import google.protobuf.descriptor -import google.protobuf.message -import typing +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +import builtins as _builtins +import sys +import typing as _typing -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +if sys.version_info >= (3, 11): + from typing import TypeAlias as _TypeAlias, Never as _Never +else: + from typing_extensions import TypeAlias as _TypeAlias, Never as _Never -@typing.final -class FfiOwnedHandle(google.protobuf.message.Message): +DESCRIPTOR: _descriptor.FileDescriptor + +@_typing.final +class FfiOwnedHandle(_message.Message): """# Safety The foreign language is responsable for disposing handles Forgetting to dispose the handle may lead to memory leaks @@ -36,16 +42,19 @@ class FfiOwnedHandle(google.protobuf.message.Message): (the variable name is suffixed with "_handle") """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - ID_FIELD_NUMBER: builtins.int - id: builtins.int + ID_FIELD_NUMBER: _builtins.int + id: _builtins.int def __init__( self, *, - id: builtins.int | None = ..., + id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["id", b"id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["id", b"id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["id", b"id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["id", b"id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___FfiOwnedHandle = FfiOwnedHandle +Global___FfiOwnedHandle: _TypeAlias = FfiOwnedHandle # noqa: Y015 diff --git a/livekit-rtc/livekit/rtc/_proto/participant_pb2.py b/livekit-rtc/livekit/rtc/_proto/participant_pb2.py index 79aa322c..d9a3c5f3 100644 --- a/livekit-rtc/livekit/rtc/_proto/participant_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/participant_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: participant.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 4.25.2 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool diff --git a/livekit-rtc/livekit/rtc/_proto/participant_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/participant_pb2.pyi index be255f03..6c1dd678 100644 --- a/livekit-rtc/livekit/rtc/_proto/participant_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/participant_pb2.pyi @@ -16,30 +16,30 @@ See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -from . import handle_pb2 +from collections import abc as _abc +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +import builtins as _builtins +from . import handle_pb2 as _handle_pb2 import sys -from . import track_pb2 -import typing +from . import track_pb2 as _track_pb2 +import typing as _typing -if sys.version_info >= (3, 10): - import typing as typing_extensions +if sys.version_info >= (3, 11): + from typing import TypeAlias as _TypeAlias, Never as _Never else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias, Never as _Never -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor class _ParticipantState: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _ParticipantStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ParticipantState.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _ParticipantStateEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_ParticipantState.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor PARTICIPANT_STATE_JOINING: _ParticipantState.ValueType # 0 PARTICIPANT_STATE_JOINED: _ParticipantState.ValueType # 1 PARTICIPANT_STATE_ACTIVE: _ParticipantState.ValueType # 2 @@ -51,14 +51,14 @@ PARTICIPANT_STATE_JOINING: ParticipantState.ValueType # 0 PARTICIPANT_STATE_JOINED: ParticipantState.ValueType # 1 PARTICIPANT_STATE_ACTIVE: ParticipantState.ValueType # 2 PARTICIPANT_STATE_DISCONNECTED: ParticipantState.ValueType # 3 -global___ParticipantState = ParticipantState +Global___ParticipantState: _TypeAlias = ParticipantState # noqa: Y015 class _ParticipantKind: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _ParticipantKindEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ParticipantKind.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _ParticipantKindEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_ParticipantKind.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor PARTICIPANT_KIND_STANDARD: _ParticipantKind.ValueType # 0 PARTICIPANT_KIND_INGRESS: _ParticipantKind.ValueType # 1 PARTICIPANT_KIND_EGRESS: _ParticipantKind.ValueType # 2 @@ -76,14 +76,14 @@ PARTICIPANT_KIND_SIP: ParticipantKind.ValueType # 3 PARTICIPANT_KIND_AGENT: ParticipantKind.ValueType # 4 PARTICIPANT_KIND_CONNECTOR: ParticipantKind.ValueType # 5 PARTICIPANT_KIND_BRIDGE: ParticipantKind.ValueType # 6 -global___ParticipantKind = ParticipantKind +Global___ParticipantKind: _TypeAlias = ParticipantKind # noqa: Y015 class _ParticipantKindDetail: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _ParticipantKindDetailEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ParticipantKindDetail.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _ParticipantKindDetailEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_ParticipantKindDetail.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor PARTICIPANT_KIND_DETAIL_CLOUD_AGENT: _ParticipantKindDetail.ValueType # 0 PARTICIPANT_KIND_DETAIL_FORWARDED: _ParticipantKindDetail.ValueType # 1 PARTICIPANT_KIND_DETAIL_CONNECTOR_WHATSAPP: _ParticipantKindDetail.ValueType # 2 @@ -97,14 +97,14 @@ PARTICIPANT_KIND_DETAIL_FORWARDED: ParticipantKindDetail.ValueType # 1 PARTICIPANT_KIND_DETAIL_CONNECTOR_WHATSAPP: ParticipantKindDetail.ValueType # 2 PARTICIPANT_KIND_DETAIL_CONNECTOR_TWILIO: ParticipantKindDetail.ValueType # 3 PARTICIPANT_KIND_DETAIL_BRIDGE_RTSP: ParticipantKindDetail.ValueType # 4 -global___ParticipantKindDetail = ParticipantKindDetail +Global___ParticipantKindDetail: _TypeAlias = ParticipantKindDetail # noqa: Y015 class _DisconnectReason: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _DisconnectReasonEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DisconnectReason.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _DisconnectReasonEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_DisconnectReason.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor UNKNOWN_REASON: _DisconnectReason.ValueType # 0 CLIENT_INITIATED: _DisconnectReason.ValueType # 1 """the client initiated the disconnect""" @@ -168,144 +168,156 @@ 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 - CLIENT_PROTOCOL_FIELD_NUMBER: builtins.int - sid: builtins.str - name: builtins.str - identity: builtins.str - state: global___ParticipantState.ValueType - metadata: builtins.str - kind: global___ParticipantKind.ValueType - disconnect_reason: global___DisconnectReason.ValueType - joined_at: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + SID_FIELD_NUMBER: _builtins.int + NAME_FIELD_NUMBER: _builtins.int + IDENTITY_FIELD_NUMBER: _builtins.int + STATE_FIELD_NUMBER: _builtins.int + METADATA_FIELD_NUMBER: _builtins.int + ATTRIBUTES_FIELD_NUMBER: _builtins.int + KIND_FIELD_NUMBER: _builtins.int + DISCONNECT_REASON_FIELD_NUMBER: _builtins.int + JOINED_AT_FIELD_NUMBER: _builtins.int + KIND_DETAILS_FIELD_NUMBER: _builtins.int + PERMISSION_FIELD_NUMBER: _builtins.int + CLIENT_PROTOCOL_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""" - client_protocol: builtins.int - @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: ... + client_protocol: _builtins.int + @_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 = ..., - client_protocol: builtins.int | 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 = ..., + client_protocol: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["client_protocol", b"client_protocol", "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", "client_protocol", b"client_protocol", "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["client_protocol", b"client_protocol", "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", "client_protocol", b"client_protocol", "disconnect_reason", b"disconnect_reason", "identity", b"identity", "joined_at", b"joined_at", "kind", b"kind", "kind_details", b"kind_details", "metadata", b"metadata", "name", b"name", "permission", b"permission", "sid", b"sid", "state", b"state"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___ParticipantInfo: _TypeAlias = ParticipantInfo # noqa: Y015 + +@_typing.final +class OwnedParticipant(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___ParticipantInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___ParticipantInfo | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___ParticipantInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___OwnedParticipant = OwnedParticipant +Global___OwnedParticipant: _TypeAlias = OwnedParticipant # noqa: Y015 -@typing.final -class ParticipantPermission(google.protobuf.message.Message): +@_typing.final +class ParticipantPermission(_message.Message): """copied from livekit-protocol/protocol/protobufs/livekit_models.proto and removed deprecated fields""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - CAN_SUBSCRIBE_FIELD_NUMBER: builtins.int - CAN_PUBLISH_FIELD_NUMBER: builtins.int - CAN_PUBLISH_DATA_FIELD_NUMBER: builtins.int - CAN_PUBLISH_SOURCES_FIELD_NUMBER: builtins.int - HIDDEN_FIELD_NUMBER: builtins.int - CAN_UPDATE_METADATA_FIELD_NUMBER: builtins.int - CAN_SUBSCRIBE_METRICS_FIELD_NUMBER: builtins.int - CAN_MANAGE_AGENT_SESSION_FIELD_NUMBER: builtins.int - can_subscribe: builtins.bool + DESCRIPTOR: _descriptor.Descriptor + + CAN_SUBSCRIBE_FIELD_NUMBER: _builtins.int + CAN_PUBLISH_FIELD_NUMBER: _builtins.int + CAN_PUBLISH_DATA_FIELD_NUMBER: _builtins.int + CAN_PUBLISH_SOURCES_FIELD_NUMBER: _builtins.int + HIDDEN_FIELD_NUMBER: _builtins.int + CAN_UPDATE_METADATA_FIELD_NUMBER: _builtins.int + CAN_SUBSCRIBE_METRICS_FIELD_NUMBER: _builtins.int + CAN_MANAGE_AGENT_SESSION_FIELD_NUMBER: _builtins.int + can_subscribe: _builtins.bool """allow participant to subscribe to other tracks in the room""" - can_publish: builtins.bool + can_publish: _builtins.bool """allow participant to publish new tracks to room""" - can_publish_data: builtins.bool + can_publish_data: _builtins.bool """allow participant to publish data""" - hidden: builtins.bool + hidden: _builtins.bool """indicates that it's hidden to others""" - can_update_metadata: builtins.bool + can_update_metadata: _builtins.bool """indicates that participant can update own metadata and attributes""" - can_subscribe_metrics: builtins.bool + can_subscribe_metrics: _builtins.bool """if a participant can subscribe to metrics""" - can_manage_agent_session: builtins.bool + can_manage_agent_session: _builtins.bool """if a participant can manage an agent session via RemoteSession (control and access state)""" - @property - def can_publish_sources(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[track_pb2.TrackSource.ValueType]: + @_builtins.property + def can_publish_sources(self) -> _containers.RepeatedScalarFieldContainer[_track_pb2.TrackSource.ValueType]: """sources that are allowed to be published""" def __init__( self, *, - can_subscribe: builtins.bool | None = ..., - can_publish: builtins.bool | None = ..., - can_publish_data: builtins.bool | None = ..., - can_publish_sources: collections.abc.Iterable[track_pb2.TrackSource.ValueType] | None = ..., - hidden: builtins.bool | None = ..., - can_update_metadata: builtins.bool | None = ..., - can_subscribe_metrics: builtins.bool | None = ..., - can_manage_agent_session: builtins.bool | None = ..., + can_subscribe: _builtins.bool | None = ..., + can_publish: _builtins.bool | None = ..., + can_publish_data: _builtins.bool | None = ..., + can_publish_sources: _abc.Iterable[_track_pb2.TrackSource.ValueType] | None = ..., + hidden: _builtins.bool | None = ..., + can_update_metadata: _builtins.bool | None = ..., + can_subscribe_metrics: _builtins.bool | None = ..., + can_manage_agent_session: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["can_manage_agent_session", b"can_manage_agent_session", "can_publish", b"can_publish", "can_publish_data", b"can_publish_data", "can_subscribe", b"can_subscribe", "can_subscribe_metrics", b"can_subscribe_metrics", "can_update_metadata", b"can_update_metadata", "hidden", b"hidden"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["can_manage_agent_session", b"can_manage_agent_session", "can_publish", b"can_publish", "can_publish_data", b"can_publish_data", "can_publish_sources", b"can_publish_sources", "can_subscribe", b"can_subscribe", "can_subscribe_metrics", b"can_subscribe_metrics", "can_update_metadata", b"can_update_metadata", "hidden", b"hidden"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["can_manage_agent_session", b"can_manage_agent_session", "can_publish", b"can_publish", "can_publish_data", b"can_publish_data", "can_subscribe", b"can_subscribe", "can_subscribe_metrics", b"can_subscribe_metrics", "can_update_metadata", b"can_update_metadata", "hidden", b"hidden"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["can_manage_agent_session", b"can_manage_agent_session", "can_publish", b"can_publish", "can_publish_data", b"can_publish_data", "can_publish_sources", b"can_publish_sources", "can_subscribe", b"can_subscribe", "can_subscribe_metrics", b"can_subscribe_metrics", "can_update_metadata", b"can_update_metadata", "hidden", b"hidden"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ParticipantPermission = ParticipantPermission +Global___ParticipantPermission: _TypeAlias = ParticipantPermission # noqa: Y015 diff --git a/livekit-rtc/livekit/rtc/_proto/room_pb2.py b/livekit-rtc/livekit/rtc/_proto/room_pb2.py index 9ca4ed63..532ec429 100644 --- a/livekit-rtc/livekit/rtc/_proto/room_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/room_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: room.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 4.25.2 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -22,7 +22,7 @@ from . import data_track_pb2 as data__track__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\nroom.proto\x12\rlivekit.proto\x1a\ne2ee.proto\x1a\x0chandle.proto\x1a\x11participant.proto\x1a\x0btrack.proto\x1a\x11video_frame.proto\x1a\x0bstats.proto\x1a\x11\x64\x61ta_stream.proto\x1a\x10\x64\x61ta_track.proto\"s\n\x0e\x43onnectRequest\x12\x0b\n\x03url\x18\x01 \x02(\t\x12\r\n\x05token\x18\x02 \x02(\t\x12+\n\x07options\x18\x03 \x02(\x0b\x32\x1a.livekit.proto.RoomOptions\x12\x18\n\x10request_async_id\x18\x04 \x01(\x04\"#\n\x0f\x43onnectResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\xbf\x03\n\x0f\x43onnectCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\x0f\n\x05\x65rror\x18\x02 \x01(\tH\x00\x12\x37\n\x06result\x18\x03 \x01(\x0b\x32%.livekit.proto.ConnectCallback.ResultH\x00\x1a\x89\x01\n\x15ParticipantWithTracks\x12\x34\n\x0bparticipant\x18\x01 \x02(\x0b\x32\x1f.livekit.proto.OwnedParticipant\x12:\n\x0cpublications\x18\x02 \x03(\x0b\x32$.livekit.proto.OwnedTrackPublication\x1a\xb8\x01\n\x06Result\x12&\n\x04room\x18\x01 \x02(\x0b\x32\x18.livekit.proto.OwnedRoom\x12:\n\x11local_participant\x18\x02 \x02(\x0b\x32\x1f.livekit.proto.OwnedParticipant\x12J\n\x0cparticipants\x18\x03 \x03(\x0b\x32\x34.livekit.proto.ConnectCallback.ParticipantWithTracksB\t\n\x07message\"s\n\x11\x44isconnectRequest\x12\x13\n\x0broom_handle\x18\x01 \x02(\x04\x12\x18\n\x10request_async_id\x18\x02 \x01(\x04\x12/\n\x06reason\x18\x03 \x01(\x0e\x32\x1f.livekit.proto.DisconnectReason\"&\n\x12\x44isconnectResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"&\n\x12\x44isconnectCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\x7f\n\x17SimulateScenarioRequest\x12\x13\n\x0broom_handle\x18\x01 \x02(\x04\x12\x35\n\x08scenario\x18\x02 \x02(\x0e\x32#.livekit.proto.SimulateScenarioKind\x12\x18\n\x10request_async_id\x18\x03 \x01(\x04\",\n\x18SimulateScenarioResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\";\n\x18SimulateScenarioCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"\x9c\x01\n\x13PublishTrackRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x14\n\x0ctrack_handle\x18\x02 \x02(\x04\x12\x33\n\x07options\x18\x03 \x02(\x0b\x32\".livekit.proto.TrackPublishOptions\x12\x18\n\x10request_async_id\x18\x04 \x01(\x04\"(\n\x14PublishTrackResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\x81\x01\n\x14PublishTrackCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\x0f\n\x05\x65rror\x18\x02 \x01(\tH\x00\x12;\n\x0bpublication\x18\x03 \x01(\x0b\x32$.livekit.proto.OwnedTrackPublicationH\x00\x42\t\n\x07message\"/\n\x18ReadyForRoomEventRequest\x12\x13\n\x0broom_handle\x18\x01 \x02(\x04\"\x1b\n\x19ReadyForRoomEventResponse\"\x81\x01\n\x15UnpublishTrackRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x11\n\ttrack_sid\x18\x02 \x02(\t\x12\x19\n\x11stop_on_unpublish\x18\x03 \x02(\x08\x12\x18\n\x10request_async_id\x18\x04 \x01(\x04\"*\n\x16UnpublishTrackResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"9\n\x16UnpublishTrackCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"\xd3\x01\n\x12PublishDataRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x10\n\x08\x64\x61ta_ptr\x18\x02 \x02(\x04\x12\x10\n\x08\x64\x61ta_len\x18\x03 \x02(\x04\x12\x10\n\x08reliable\x18\x04 \x02(\x08\x12\x1c\n\x10\x64\x65stination_sids\x18\x05 \x03(\tB\x02\x18\x01\x12\r\n\x05topic\x18\x06 \x01(\t\x12\x1e\n\x16\x64\x65stination_identities\x18\x07 \x03(\t\x12\x18\n\x10request_async_id\x18\x08 \x01(\x04\"\'\n\x13PublishDataResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"6\n\x13PublishDataCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"\xc0\x01\n\x1bPublishTranscriptionRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x1c\n\x14participant_identity\x18\x02 \x02(\t\x12\x10\n\x08track_id\x18\x03 \x02(\t\x12\x35\n\x08segments\x18\x04 \x03(\x0b\x32#.livekit.proto.TranscriptionSegment\x12\x18\n\x10request_async_id\x18\x05 \x01(\x04\"0\n\x1cPublishTranscriptionResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"?\n\x1cPublishTranscriptionCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"\x90\x01\n\x15PublishSipDtmfRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x0c\n\x04\x63ode\x18\x02 \x02(\r\x12\r\n\x05\x64igit\x18\x03 \x02(\t\x12\x1e\n\x16\x64\x65stination_identities\x18\x04 \x03(\t\x12\x18\n\x10request_async_id\x18\x05 \x01(\x04\"*\n\x16PublishSipDtmfResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"9\n\x16PublishSipDtmfCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"g\n\x17SetLocalMetadataRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x10\n\x08metadata\x18\x02 \x02(\t\x12\x18\n\x10request_async_id\x18\x03 \x01(\x04\",\n\x18SetLocalMetadataResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\";\n\x18SetLocalMetadataCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"\x9e\x01\n\x16SendChatMessageRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x0f\n\x07message\x18\x02 \x02(\t\x12\x1e\n\x16\x64\x65stination_identities\x18\x03 \x03(\t\x12\x17\n\x0fsender_identity\x18\x04 \x01(\t\x12\x18\n\x10request_async_id\x18\x05 \x01(\x04\"\xd6\x01\n\x16\x45\x64itChatMessageRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x11\n\tedit_text\x18\x02 \x02(\t\x12\x34\n\x10original_message\x18\x03 \x02(\x0b\x32\x1a.livekit.proto.ChatMessage\x12\x1e\n\x16\x64\x65stination_identities\x18\x04 \x03(\t\x12\x17\n\x0fsender_identity\x18\x05 \x01(\t\x12\x18\n\x10request_async_id\x18\x06 \x01(\x04\"+\n\x17SendChatMessageResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"{\n\x17SendChatMessageCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\x0f\n\x05\x65rror\x18\x02 \x01(\tH\x00\x12\x32\n\x0c\x63hat_message\x18\x03 \x01(\x0b\x32\x1a.livekit.proto.ChatMessageH\x00\x42\t\n\x07message\"\x8b\x01\n\x19SetLocalAttributesRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x32\n\nattributes\x18\x02 \x03(\x0b\x32\x1e.livekit.proto.AttributesEntry\x12\x18\n\x10request_async_id\x18\x03 \x01(\x04\"-\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x02(\t\x12\r\n\x05value\x18\x02 \x02(\t\".\n\x1aSetLocalAttributesResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"=\n\x1aSetLocalAttributesCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"_\n\x13SetLocalNameRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x0c\n\x04name\x18\x02 \x02(\t\x12\x18\n\x10request_async_id\x18\x03 \x01(\x04\"(\n\x14SetLocalNameResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"7\n\x14SetLocalNameCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"E\n\x14SetSubscribedRequest\x12\x11\n\tsubscribe\x18\x01 \x02(\x08\x12\x1a\n\x12publication_handle\x18\x02 \x02(\x04\"\x17\n\x15SetSubscribedResponse\"G\n\x16GetSessionStatsRequest\x12\x13\n\x0broom_handle\x18\x01 \x02(\x04\x12\x18\n\x10request_async_id\x18\x02 \x01(\x04\"+\n\x17GetSessionStatsResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\xf7\x01\n\x17GetSessionStatsCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\x0f\n\x05\x65rror\x18\x02 \x01(\tH\x00\x12?\n\x06result\x18\x03 \x01(\x0b\x32-.livekit.proto.GetSessionStatsCallback.ResultH\x00\x1am\n\x06Result\x12\x30\n\x0fpublisher_stats\x18\x01 \x03(\x0b\x32\x17.livekit.proto.RtcStats\x12\x31\n\x10subscriber_stats\x18\x02 \x03(\x0b\x32\x17.livekit.proto.RtcStatsB\t\n\x07message\";\n\rVideoEncoding\x12\x13\n\x0bmax_bitrate\x18\x01 \x02(\x04\x12\x15\n\rmax_framerate\x18\x02 \x02(\x01\"$\n\rAudioEncoding\x12\x13\n\x0bmax_bitrate\x18\x01 \x02(\x04\"\xd0\x03\n\x13TrackPublishOptions\x12\x34\n\x0evideo_encoding\x18\x01 \x01(\x0b\x32\x1c.livekit.proto.VideoEncoding\x12\x34\n\x0e\x61udio_encoding\x18\x02 \x01(\x0b\x32\x1c.livekit.proto.AudioEncoding\x12.\n\x0bvideo_codec\x18\x03 \x01(\x0e\x32\x19.livekit.proto.VideoCodec\x12\x0b\n\x03\x64tx\x18\x04 \x01(\x08\x12\x0b\n\x03red\x18\x05 \x01(\x08\x12\x11\n\tsimulcast\x18\x06 \x01(\x08\x12*\n\x06source\x18\x07 \x01(\x0e\x32\x1a.livekit.proto.TrackSource\x12\x0e\n\x06stream\x18\x08 \x01(\t\x12\x19\n\x11preconnect_buffer\x18\t \x01(\x08\x12\x44\n\x17packet_trailer_features\x18\n \x03(\x0e\x32#.livekit.proto.PacketTrailerFeature\x12\x18\n\x10scalability_mode\x18\x0b \x01(\t\x12\x39\n\rvideo_encoder\x18\x0c \x01(\x0e\x32\".livekit.proto.VideoEncoderBackend\"=\n\tIceServer\x12\x0c\n\x04urls\x18\x01 \x03(\t\x12\x10\n\x08username\x18\x02 \x01(\t\x12\x10\n\x08password\x18\x03 \x01(\t\"\xc4\x01\n\tRtcConfig\x12;\n\x12ice_transport_type\x18\x01 \x01(\x0e\x32\x1f.livekit.proto.IceTransportType\x12K\n\x1a\x63ontinual_gathering_policy\x18\x02 \x01(\x0e\x32\'.livekit.proto.ContinualGatheringPolicy\x12-\n\x0bice_servers\x18\x03 \x03(\x0b\x32\x18.livekit.proto.IceServer\"\xae\x02\n\x0bRoomOptions\x12\x16\n\x0e\x61uto_subscribe\x18\x01 \x01(\x08\x12\x17\n\x0f\x61\x64\x61ptive_stream\x18\x02 \x01(\x08\x12\x10\n\x08\x64ynacast\x18\x03 \x01(\x08\x12,\n\x04\x65\x32\x65\x65\x18\x04 \x01(\x0b\x32\x1a.livekit.proto.E2eeOptionsB\x02\x18\x01\x12,\n\nrtc_config\x18\x05 \x01(\x0b\x32\x18.livekit.proto.RtcConfig\x12\x14\n\x0cjoin_retries\x18\x06 \x01(\r\x12.\n\nencryption\x18\x07 \x01(\x0b\x32\x1a.livekit.proto.E2eeOptions\x12\x1e\n\x16single_peer_connection\x18\x08 \x01(\x08\x12\x1a\n\x12\x63onnect_timeout_ms\x18\t \x01(\x04\"w\n\x14TranscriptionSegment\x12\n\n\x02id\x18\x01 \x02(\t\x12\x0c\n\x04text\x18\x02 \x02(\t\x12\x12\n\nstart_time\x18\x03 \x02(\x04\x12\x10\n\x08\x65nd_time\x18\x04 \x02(\x04\x12\r\n\x05\x66inal\x18\x05 \x02(\x08\x12\x10\n\x08language\x18\x06 \x02(\t\"0\n\nBufferInfo\x12\x10\n\x08\x64\x61ta_ptr\x18\x01 \x02(\x04\x12\x10\n\x08\x64\x61ta_len\x18\x02 \x02(\x04\"e\n\x0bOwnedBuffer\x12-\n\x06handle\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12\'\n\x04\x64\x61ta\x18\x02 \x02(\x0b\x32\x19.livekit.proto.BufferInfo\"\xce\x17\n\tRoomEvent\x12\x13\n\x0broom_handle\x18\x01 \x02(\x04\x12\x44\n\x15participant_connected\x18\x02 \x01(\x0b\x32#.livekit.proto.ParticipantConnectedH\x00\x12J\n\x18participant_disconnected\x18\x03 \x01(\x0b\x32&.livekit.proto.ParticipantDisconnectedH\x00\x12\x43\n\x15local_track_published\x18\x04 \x01(\x0b\x32\".livekit.proto.LocalTrackPublishedH\x00\x12G\n\x17local_track_unpublished\x18\x05 \x01(\x0b\x32$.livekit.proto.LocalTrackUnpublishedH\x00\x12\x45\n\x16local_track_subscribed\x18\x06 \x01(\x0b\x32#.livekit.proto.LocalTrackSubscribedH\x00\x12\x38\n\x0ftrack_published\x18\x07 \x01(\x0b\x32\x1d.livekit.proto.TrackPublishedH\x00\x12<\n\x11track_unpublished\x18\x08 \x01(\x0b\x32\x1f.livekit.proto.TrackUnpublishedH\x00\x12:\n\x10track_subscribed\x18\t \x01(\x0b\x32\x1e.livekit.proto.TrackSubscribedH\x00\x12>\n\x12track_unsubscribed\x18\n \x01(\x0b\x32 .livekit.proto.TrackUnsubscribedH\x00\x12K\n\x19track_subscription_failed\x18\x0b \x01(\x0b\x32&.livekit.proto.TrackSubscriptionFailedH\x00\x12\x30\n\x0btrack_muted\x18\x0c \x01(\x0b\x32\x19.livekit.proto.TrackMutedH\x00\x12\x34\n\rtrack_unmuted\x18\r \x01(\x0b\x32\x1b.livekit.proto.TrackUnmutedH\x00\x12G\n\x17\x61\x63tive_speakers_changed\x18\x0e \x01(\x0b\x32$.livekit.proto.ActiveSpeakersChangedH\x00\x12\x43\n\x15room_metadata_changed\x18\x0f \x01(\x0b\x32\".livekit.proto.RoomMetadataChangedH\x00\x12\x39\n\x10room_sid_changed\x18\x10 \x01(\x0b\x32\x1d.livekit.proto.RoomSidChangedH\x00\x12Q\n\x1cparticipant_metadata_changed\x18\x11 \x01(\x0b\x32).livekit.proto.ParticipantMetadataChangedH\x00\x12I\n\x18participant_name_changed\x18\x12 \x01(\x0b\x32%.livekit.proto.ParticipantNameChangedH\x00\x12U\n\x1eparticipant_attributes_changed\x18\x13 \x01(\x0b\x32+.livekit.proto.ParticipantAttributesChangedH\x00\x12M\n\x1a\x63onnection_quality_changed\x18\x14 \x01(\x0b\x32\'.livekit.proto.ConnectionQualityChangedH\x00\x12I\n\x18\x63onnection_state_changed\x18\x15 \x01(\x0b\x32%.livekit.proto.ConnectionStateChangedH\x00\x12\x33\n\x0c\x64isconnected\x18\x16 \x01(\x0b\x32\x1b.livekit.proto.DisconnectedH\x00\x12\x33\n\x0creconnecting\x18\x17 \x01(\x0b\x32\x1b.livekit.proto.ReconnectingH\x00\x12\x31\n\x0breconnected\x18\x18 \x01(\x0b\x32\x1a.livekit.proto.ReconnectedH\x00\x12=\n\x12\x65\x32\x65\x65_state_changed\x18\x19 \x01(\x0b\x32\x1f.livekit.proto.E2eeStateChangedH\x00\x12%\n\x03\x65os\x18\x1a \x01(\x0b\x32\x16.livekit.proto.RoomEOSH\x00\x12\x41\n\x14\x64\x61ta_packet_received\x18\x1b \x01(\x0b\x32!.livekit.proto.DataPacketReceivedH\x00\x12\x46\n\x16transcription_received\x18\x1c \x01(\x0b\x32$.livekit.proto.TranscriptionReceivedH\x00\x12:\n\x0c\x63hat_message\x18\x1d \x01(\x0b\x32\".livekit.proto.ChatMessageReceivedH\x00\x12I\n\x16stream_header_received\x18\x1e \x01(\x0b\x32\'.livekit.proto.DataStreamHeaderReceivedH\x00\x12G\n\x15stream_chunk_received\x18\x1f \x01(\x0b\x32&.livekit.proto.DataStreamChunkReceivedH\x00\x12K\n\x17stream_trailer_received\x18 \x01(\x0b\x32(.livekit.proto.DataStreamTrailerReceivedH\x00\x12i\n\"data_channel_low_threshold_changed\x18! \x01(\x0b\x32;.livekit.proto.DataChannelBufferedAmountLowThresholdChangedH\x00\x12=\n\x12\x62yte_stream_opened\x18\" \x01(\x0b\x32\x1f.livekit.proto.ByteStreamOpenedH\x00\x12=\n\x12text_stream_opened\x18# \x01(\x0b\x32\x1f.livekit.proto.TextStreamOpenedH\x00\x12/\n\x0croom_updated\x18$ \x01(\x0b\x32\x17.livekit.proto.RoomInfoH\x00\x12(\n\x05moved\x18% \x01(\x0b\x32\x17.livekit.proto.RoomInfoH\x00\x12\x42\n\x14participants_updated\x18& \x01(\x0b\x32\".livekit.proto.ParticipantsUpdatedH\x00\x12\x62\n%participant_encryption_status_changed\x18\' \x01(\x0b\x32\x31.livekit.proto.ParticipantEncryptionStatusChangedH\x00\x12U\n\x1eparticipant_permission_changed\x18) \x01(\x0b\x32+.livekit.proto.ParticipantPermissionChangedH\x00\x12\x38\n\x0ftoken_refreshed\x18( \x01(\x0b\x32\x1d.livekit.proto.TokenRefreshedH\x00\x12>\n\x12participant_active\x18* \x01(\x0b\x32 .livekit.proto.ParticipantActiveH\x00\x12\x41\n\x14\x64\x61ta_track_published\x18+ \x01(\x0b\x32!.livekit.proto.DataTrackPublishedH\x00\x12\x45\n\x16\x64\x61ta_track_unpublished\x18, \x01(\x0b\x32#.livekit.proto.DataTrackUnpublishedH\x00\x12G\n\x17local_track_republished\x18- \x01(\x0b\x32$.livekit.proto.LocalTrackRepublishedH\x00\x42\t\n\x07message\"\xc9\x02\n\x08RoomInfo\x12\x0b\n\x03sid\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x02(\t\x12\x10\n\x08metadata\x18\x03 \x02(\t\x12.\n&lossy_dc_buffered_amount_low_threshold\x18\x04 \x02(\x04\x12\x31\n)reliable_dc_buffered_amount_low_threshold\x18\x05 \x02(\x04\x12\x15\n\rempty_timeout\x18\x06 \x02(\r\x12\x19\n\x11\x64\x65parture_timeout\x18\x07 \x02(\r\x12\x18\n\x10max_participants\x18\x08 \x02(\r\x12\x15\n\rcreation_time\x18\t \x02(\x03\x12\x18\n\x10num_participants\x18\n \x02(\r\x12\x16\n\x0enum_publishers\x18\x0b \x02(\r\x12\x18\n\x10\x61\x63tive_recording\x18\x0c \x02(\x08\"a\n\tOwnedRoom\x12-\n\x06handle\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12%\n\x04info\x18\x02 \x02(\x0b\x32\x17.livekit.proto.RoomInfo\"K\n\x13ParticipantsUpdated\x12\x34\n\x0cparticipants\x18\x01 \x03(\x0b\x32\x1e.livekit.proto.ParticipantInfo\"E\n\x14ParticipantConnected\x12-\n\x04info\x18\x01 \x02(\x0b\x32\x1f.livekit.proto.OwnedParticipant\"1\n\x11ParticipantActive\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\"s\n\x17ParticipantDisconnected\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12:\n\x11\x64isconnect_reason\x18\x02 \x02(\x0e\x32\x1f.livekit.proto.DisconnectReason\"(\n\x13LocalTrackPublished\x12\x11\n\ttrack_sid\x18\x01 \x02(\t\"0\n\x15LocalTrackUnpublished\x12\x17\n\x0fpublication_sid\x18\x01 \x02(\t\"|\n\x15LocalTrackRepublished\x12\x1a\n\x12publication_handle\x18\x01 \x02(\x04\x12\x14\n\x0cprevious_sid\x18\x02 \x02(\t\x12\x31\n\x04info\x18\x03 \x02(\x0b\x32#.livekit.proto.TrackPublicationInfo\")\n\x14LocalTrackSubscribed\x12\x11\n\ttrack_sid\x18\x02 \x02(\t\"i\n\x0eTrackPublished\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x39\n\x0bpublication\x18\x02 \x02(\x0b\x32$.livekit.proto.OwnedTrackPublication\"I\n\x10TrackUnpublished\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x17\n\x0fpublication_sid\x18\x02 \x02(\t\"Y\n\x0fTrackSubscribed\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12(\n\x05track\x18\x02 \x02(\x0b\x32\x19.livekit.proto.OwnedTrack\"D\n\x11TrackUnsubscribed\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x11\n\ttrack_sid\x18\x02 \x02(\t\"Y\n\x17TrackSubscriptionFailed\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x11\n\ttrack_sid\x18\x02 \x02(\t\x12\r\n\x05\x65rror\x18\x03 \x02(\t\"=\n\nTrackMuted\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x11\n\ttrack_sid\x18\x02 \x02(\t\"?\n\x0cTrackUnmuted\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x11\n\ttrack_sid\x18\x02 \x02(\t\"_\n\x10\x45\x32\x65\x65StateChanged\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12-\n\x05state\x18\x02 \x02(\x0e\x32\x1e.livekit.proto.EncryptionState\"7\n\x15\x41\x63tiveSpeakersChanged\x12\x1e\n\x16participant_identities\x18\x01 \x03(\t\"\'\n\x13RoomMetadataChanged\x12\x10\n\x08metadata\x18\x01 \x02(\t\"\x1d\n\x0eRoomSidChanged\x12\x0b\n\x03sid\x18\x01 \x02(\t\"L\n\x1aParticipantMetadataChanged\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x10\n\x08metadata\x18\x02 \x02(\t\"\xac\x01\n\x1cParticipantAttributesChanged\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x32\n\nattributes\x18\x02 \x03(\x0b\x32\x1e.livekit.proto.AttributesEntry\x12:\n\x12\x63hanged_attributes\x18\x03 \x03(\x0b\x32\x1e.livekit.proto.AttributesEntry\"X\n\"ParticipantEncryptionStatusChanged\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x14\n\x0cis_encrypted\x18\x02 \x02(\x08\"D\n\x16ParticipantNameChanged\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x0c\n\x04name\x18\x02 \x02(\t\"v\n\x1cParticipantPermissionChanged\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x38\n\npermission\x18\x02 \x01(\x0b\x32$.livekit.proto.ParticipantPermission\"k\n\x18\x43onnectionQualityChanged\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x31\n\x07quality\x18\x02 \x02(\x0e\x32 .livekit.proto.ConnectionQuality\"E\n\nUserPacket\x12(\n\x04\x64\x61ta\x18\x01 \x02(\x0b\x32\x1a.livekit.proto.OwnedBuffer\x12\r\n\x05topic\x18\x02 \x01(\t\"y\n\x0b\x43hatMessage\x12\n\n\x02id\x18\x01 \x02(\t\x12\x11\n\ttimestamp\x18\x02 \x02(\x03\x12\x0f\n\x07message\x18\x03 \x02(\t\x12\x16\n\x0e\x65\x64it_timestamp\x18\x04 \x01(\x03\x12\x0f\n\x07\x64\x65leted\x18\x05 \x01(\x08\x12\x11\n\tgenerated\x18\x06 \x01(\x08\"`\n\x13\x43hatMessageReceived\x12+\n\x07message\x18\x01 \x02(\x0b\x32\x1a.livekit.proto.ChatMessage\x12\x1c\n\x14participant_identity\x18\x02 \x02(\t\"&\n\x07SipDTMF\x12\x0c\n\x04\x63ode\x18\x01 \x02(\r\x12\r\n\x05\x64igit\x18\x02 \x01(\t\"\xbf\x01\n\x12\x44\x61taPacketReceived\x12+\n\x04kind\x18\x01 \x02(\x0e\x32\x1d.livekit.proto.DataPacketKind\x12\x1c\n\x14participant_identity\x18\x02 \x02(\t\x12)\n\x04user\x18\x04 \x01(\x0b\x32\x19.livekit.proto.UserPacketH\x00\x12*\n\x08sip_dtmf\x18\x05 \x01(\x0b\x32\x16.livekit.proto.SipDTMFH\x00\x42\x07\n\x05value\"\x7f\n\x15TranscriptionReceived\x12\x1c\n\x14participant_identity\x18\x01 \x01(\t\x12\x11\n\ttrack_sid\x18\x02 \x01(\t\x12\x35\n\x08segments\x18\x03 \x03(\x0b\x32#.livekit.proto.TranscriptionSegment\"G\n\x16\x43onnectionStateChanged\x12-\n\x05state\x18\x01 \x02(\x0e\x32\x1e.livekit.proto.ConnectionState\"\x0b\n\tConnected\"?\n\x0c\x44isconnected\x12/\n\x06reason\x18\x01 \x02(\x0e\x32\x1f.livekit.proto.DisconnectReason\"\x0e\n\x0cReconnecting\"\r\n\x0bReconnected\"\x1f\n\x0eTokenRefreshed\x12\r\n\x05token\x18\x01 \x02(\t\"\t\n\x07RoomEOS\"\x8e\x07\n\nDataStream\x1a\xaa\x01\n\nTextHeader\x12?\n\x0eoperation_type\x18\x01 \x02(\x0e\x32\'.livekit.proto.DataStream.OperationType\x12\x0f\n\x07version\x18\x02 \x01(\x05\x12\x1a\n\x12reply_to_stream_id\x18\x03 \x01(\t\x12\x1b\n\x13\x61ttached_stream_ids\x18\x04 \x03(\t\x12\x11\n\tgenerated\x18\x05 \x01(\x08\x1a\x1a\n\nByteHeader\x12\x0c\n\x04name\x18\x01 \x02(\t\x1a\xeb\x02\n\x06Header\x12\x11\n\tstream_id\x18\x01 \x02(\t\x12\x11\n\ttimestamp\x18\x02 \x02(\x03\x12\x11\n\tmime_type\x18\x03 \x02(\t\x12\r\n\x05topic\x18\x04 \x02(\t\x12\x14\n\x0ctotal_length\x18\x05 \x01(\x04\x12\x44\n\nattributes\x18\x06 \x03(\x0b\x32\x30.livekit.proto.DataStream.Header.AttributesEntry\x12;\n\x0btext_header\x18\x07 \x01(\x0b\x32$.livekit.proto.DataStream.TextHeaderH\x00\x12;\n\x0b\x62yte_header\x18\x08 \x01(\x0b\x32$.livekit.proto.DataStream.ByteHeaderH\x00\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x10\n\x0e\x63ontent_header\x1a]\n\x05\x43hunk\x12\x11\n\tstream_id\x18\x01 \x02(\t\x12\x13\n\x0b\x63hunk_index\x18\x02 \x02(\x04\x12\x0f\n\x07\x63ontent\x18\x03 \x02(\x0c\x12\x0f\n\x07version\x18\x04 \x01(\x05\x12\n\n\x02iv\x18\x05 \x01(\x0c\x1a\xa6\x01\n\x07Trailer\x12\x11\n\tstream_id\x18\x01 \x02(\t\x12\x0e\n\x06reason\x18\x02 \x02(\t\x12\x45\n\nattributes\x18\x03 \x03(\x0b\x32\x31.livekit.proto.DataStream.Trailer.AttributesEntry\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"A\n\rOperationType\x12\n\n\x06\x43REATE\x10\x00\x12\n\n\x06UPDATE\x10\x01\x12\n\n\x06\x44\x45LETE\x10\x02\x12\x0c\n\x08REACTION\x10\x03\"j\n\x18\x44\x61taStreamHeaderReceived\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x30\n\x06header\x18\x02 \x02(\x0b\x32 .livekit.proto.DataStream.Header\"g\n\x17\x44\x61taStreamChunkReceived\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12.\n\x05\x63hunk\x18\x02 \x02(\x0b\x32\x1f.livekit.proto.DataStream.Chunk\"m\n\x19\x44\x61taStreamTrailerReceived\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x32\n\x07trailer\x18\x02 \x02(\x0b\x32!.livekit.proto.DataStream.Trailer\"\xc0\x01\n\x17SendStreamHeaderRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x30\n\x06header\x18\x02 \x02(\x0b\x32 .livekit.proto.DataStream.Header\x12\x1e\n\x16\x64\x65stination_identities\x18\x03 \x03(\t\x12\x17\n\x0fsender_identity\x18\x04 \x02(\t\x12\x18\n\x10request_async_id\x18\x05 \x01(\x04\"\xbd\x01\n\x16SendStreamChunkRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12.\n\x05\x63hunk\x18\x02 \x02(\x0b\x32\x1f.livekit.proto.DataStream.Chunk\x12\x1e\n\x16\x64\x65stination_identities\x18\x03 \x03(\t\x12\x17\n\x0fsender_identity\x18\x04 \x02(\t\x12\x18\n\x10request_async_id\x18\x05 \x01(\x04\"\xc3\x01\n\x18SendStreamTrailerRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x32\n\x07trailer\x18\x02 \x02(\x0b\x32!.livekit.proto.DataStream.Trailer\x12\x1e\n\x16\x64\x65stination_identities\x18\x03 \x03(\t\x12\x17\n\x0fsender_identity\x18\x04 \x02(\t\x12\x18\n\x10request_async_id\x18\x05 \x01(\x04\",\n\x18SendStreamHeaderResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"+\n\x17SendStreamChunkResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"-\n\x19SendStreamTrailerResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\";\n\x18SendStreamHeaderCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\":\n\x17SendStreamChunkCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"<\n\x19SendStreamTrailerCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"\x93\x01\n/SetDataChannelBufferedAmountLowThresholdRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x11\n\tthreshold\x18\x02 \x02(\x04\x12+\n\x04kind\x18\x03 \x02(\x0e\x32\x1d.livekit.proto.DataPacketKind\"2\n0SetDataChannelBufferedAmountLowThresholdResponse\"n\n,DataChannelBufferedAmountLowThresholdChanged\x12+\n\x04kind\x18\x01 \x02(\x0e\x32\x1d.livekit.proto.DataPacketKind\x12\x11\n\tthreshold\x18\x02 \x02(\x04\"f\n\x10\x42yteStreamOpened\x12\x34\n\x06reader\x18\x01 \x02(\x0b\x32$.livekit.proto.OwnedByteStreamReader\x12\x1c\n\x14participant_identity\x18\x02 \x02(\t\"f\n\x10TextStreamOpened\x12\x34\n\x06reader\x18\x01 \x02(\x0b\x32$.livekit.proto.OwnedTextStreamReader\x12\x1c\n\x14participant_identity\x18\x02 \x02(\t\"H\n\x12\x44\x61taTrackPublished\x12\x32\n\x05track\x18\x01 \x02(\x0b\x32#.livekit.proto.OwnedRemoteDataTrack\"#\n\x14\x44\x61taTrackUnpublished\x12\x0b\n\x03sid\x18\x01 \x02(\t*\xe6\x01\n\x14SimulateScenarioKind\x12\x1d\n\x19SIMULATE_SIGNAL_RECONNECT\x10\x00\x12\x14\n\x10SIMULATE_SPEAKER\x10\x01\x12\x19\n\x15SIMULATE_NODE_FAILURE\x10\x02\x12\x19\n\x15SIMULATE_SERVER_LEAVE\x10\x03\x12\x16\n\x12SIMULATE_MIGRATION\x10\x04\x12\x16\n\x12SIMULATE_FORCE_TCP\x10\x05\x12\x16\n\x12SIMULATE_FORCE_TLS\x10\x06\x12\x1b\n\x17SIMULATE_FULL_RECONNECT\x10\x07*\xc3\x01\n\x13VideoEncoderBackend\x12\x18\n\x14\x45NCODER_BACKEND_AUTO\x10\x00\x12\x1c\n\x18\x45NCODER_BACKEND_SOFTWARE\x10\x01\x12\x1c\n\x18\x45NCODER_BACKEND_HARDWARE\x10\x02\x12\x19\n\x15\x45NCODER_BACKEND_NVENC\x10\x03\x12\x19\n\x15\x45NCODER_BACKEND_VAAPI\x10\x04\x12 \n\x1c\x45NCODER_BACKEND_VIDEOTOOLBOX\x10\x05*P\n\x10IceTransportType\x12\x13\n\x0fTRANSPORT_RELAY\x10\x00\x12\x14\n\x10TRANSPORT_NOHOST\x10\x01\x12\x11\n\rTRANSPORT_ALL\x10\x02*C\n\x18\x43ontinualGatheringPolicy\x12\x0f\n\x0bGATHER_ONCE\x10\x00\x12\x16\n\x12GATHER_CONTINUALLY\x10\x01*`\n\x11\x43onnectionQuality\x12\x10\n\x0cQUALITY_POOR\x10\x00\x12\x10\n\x0cQUALITY_GOOD\x10\x01\x12\x15\n\x11QUALITY_EXCELLENT\x10\x02\x12\x10\n\x0cQUALITY_LOST\x10\x03*S\n\x0f\x43onnectionState\x12\x15\n\x11\x43ONN_DISCONNECTED\x10\x00\x12\x12\n\x0e\x43ONN_CONNECTED\x10\x01\x12\x15\n\x11\x43ONN_RECONNECTING\x10\x02*3\n\x0e\x44\x61taPacketKind\x12\x0e\n\nKIND_LOSSY\x10\x00\x12\x11\n\rKIND_RELIABLE\x10\x01\x42\x10\xaa\x02\rLiveKit.Proto') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\nroom.proto\x12\rlivekit.proto\x1a\ne2ee.proto\x1a\x0chandle.proto\x1a\x11participant.proto\x1a\x0btrack.proto\x1a\x11video_frame.proto\x1a\x0bstats.proto\x1a\x11\x64\x61ta_stream.proto\x1a\x10\x64\x61ta_track.proto\"s\n\x0e\x43onnectRequest\x12\x0b\n\x03url\x18\x01 \x02(\t\x12\r\n\x05token\x18\x02 \x02(\t\x12+\n\x07options\x18\x03 \x02(\x0b\x32\x1a.livekit.proto.RoomOptions\x12\x18\n\x10request_async_id\x18\x04 \x01(\x04\"#\n\x0f\x43onnectResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\xbf\x03\n\x0f\x43onnectCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\x0f\n\x05\x65rror\x18\x02 \x01(\tH\x00\x12\x37\n\x06result\x18\x03 \x01(\x0b\x32%.livekit.proto.ConnectCallback.ResultH\x00\x1a\x89\x01\n\x15ParticipantWithTracks\x12\x34\n\x0bparticipant\x18\x01 \x02(\x0b\x32\x1f.livekit.proto.OwnedParticipant\x12:\n\x0cpublications\x18\x02 \x03(\x0b\x32$.livekit.proto.OwnedTrackPublication\x1a\xb8\x01\n\x06Result\x12&\n\x04room\x18\x01 \x02(\x0b\x32\x18.livekit.proto.OwnedRoom\x12:\n\x11local_participant\x18\x02 \x02(\x0b\x32\x1f.livekit.proto.OwnedParticipant\x12J\n\x0cparticipants\x18\x03 \x03(\x0b\x32\x34.livekit.proto.ConnectCallback.ParticipantWithTracksB\t\n\x07message\"s\n\x11\x44isconnectRequest\x12\x13\n\x0broom_handle\x18\x01 \x02(\x04\x12\x18\n\x10request_async_id\x18\x02 \x01(\x04\x12/\n\x06reason\x18\x03 \x01(\x0e\x32\x1f.livekit.proto.DisconnectReason\"&\n\x12\x44isconnectResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"&\n\x12\x44isconnectCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\x7f\n\x17SimulateScenarioRequest\x12\x13\n\x0broom_handle\x18\x01 \x02(\x04\x12\x35\n\x08scenario\x18\x02 \x02(\x0e\x32#.livekit.proto.SimulateScenarioKind\x12\x18\n\x10request_async_id\x18\x03 \x01(\x04\",\n\x18SimulateScenarioResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\";\n\x18SimulateScenarioCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"\x9c\x01\n\x13PublishTrackRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x14\n\x0ctrack_handle\x18\x02 \x02(\x04\x12\x33\n\x07options\x18\x03 \x02(\x0b\x32\".livekit.proto.TrackPublishOptions\x12\x18\n\x10request_async_id\x18\x04 \x01(\x04\"(\n\x14PublishTrackResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\x81\x01\n\x14PublishTrackCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\x0f\n\x05\x65rror\x18\x02 \x01(\tH\x00\x12;\n\x0bpublication\x18\x03 \x01(\x0b\x32$.livekit.proto.OwnedTrackPublicationH\x00\x42\t\n\x07message\"/\n\x18ReadyForRoomEventRequest\x12\x13\n\x0broom_handle\x18\x01 \x02(\x04\"\x1b\n\x19ReadyForRoomEventResponse\"\x81\x01\n\x15UnpublishTrackRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x11\n\ttrack_sid\x18\x02 \x02(\t\x12\x19\n\x11stop_on_unpublish\x18\x03 \x02(\x08\x12\x18\n\x10request_async_id\x18\x04 \x01(\x04\"*\n\x16UnpublishTrackResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"9\n\x16UnpublishTrackCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"\xd3\x01\n\x12PublishDataRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x10\n\x08\x64\x61ta_ptr\x18\x02 \x02(\x04\x12\x10\n\x08\x64\x61ta_len\x18\x03 \x02(\x04\x12\x10\n\x08reliable\x18\x04 \x02(\x08\x12\x1c\n\x10\x64\x65stination_sids\x18\x05 \x03(\tB\x02\x18\x01\x12\r\n\x05topic\x18\x06 \x01(\t\x12\x1e\n\x16\x64\x65stination_identities\x18\x07 \x03(\t\x12\x18\n\x10request_async_id\x18\x08 \x01(\x04\"\'\n\x13PublishDataResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"6\n\x13PublishDataCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"\xc0\x01\n\x1bPublishTranscriptionRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x1c\n\x14participant_identity\x18\x02 \x02(\t\x12\x10\n\x08track_id\x18\x03 \x02(\t\x12\x35\n\x08segments\x18\x04 \x03(\x0b\x32#.livekit.proto.TranscriptionSegment\x12\x18\n\x10request_async_id\x18\x05 \x01(\x04\"0\n\x1cPublishTranscriptionResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"?\n\x1cPublishTranscriptionCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"\x90\x01\n\x15PublishSipDtmfRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x0c\n\x04\x63ode\x18\x02 \x02(\r\x12\r\n\x05\x64igit\x18\x03 \x02(\t\x12\x1e\n\x16\x64\x65stination_identities\x18\x04 \x03(\t\x12\x18\n\x10request_async_id\x18\x05 \x01(\x04\"*\n\x16PublishSipDtmfResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"9\n\x16PublishSipDtmfCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"g\n\x17SetLocalMetadataRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x10\n\x08metadata\x18\x02 \x02(\t\x12\x18\n\x10request_async_id\x18\x03 \x01(\x04\",\n\x18SetLocalMetadataResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\";\n\x18SetLocalMetadataCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"\x9e\x01\n\x16SendChatMessageRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x0f\n\x07message\x18\x02 \x02(\t\x12\x1e\n\x16\x64\x65stination_identities\x18\x03 \x03(\t\x12\x17\n\x0fsender_identity\x18\x04 \x01(\t\x12\x18\n\x10request_async_id\x18\x05 \x01(\x04\"\xd6\x01\n\x16\x45\x64itChatMessageRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x11\n\tedit_text\x18\x02 \x02(\t\x12\x34\n\x10original_message\x18\x03 \x02(\x0b\x32\x1a.livekit.proto.ChatMessage\x12\x1e\n\x16\x64\x65stination_identities\x18\x04 \x03(\t\x12\x17\n\x0fsender_identity\x18\x05 \x01(\t\x12\x18\n\x10request_async_id\x18\x06 \x01(\x04\"+\n\x17SendChatMessageResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"{\n\x17SendChatMessageCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\x0f\n\x05\x65rror\x18\x02 \x01(\tH\x00\x12\x32\n\x0c\x63hat_message\x18\x03 \x01(\x0b\x32\x1a.livekit.proto.ChatMessageH\x00\x42\t\n\x07message\"\x8b\x01\n\x19SetLocalAttributesRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x32\n\nattributes\x18\x02 \x03(\x0b\x32\x1e.livekit.proto.AttributesEntry\x12\x18\n\x10request_async_id\x18\x03 \x01(\x04\"-\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x02(\t\x12\r\n\x05value\x18\x02 \x02(\t\".\n\x1aSetLocalAttributesResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"=\n\x1aSetLocalAttributesCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"_\n\x13SetLocalNameRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x0c\n\x04name\x18\x02 \x02(\t\x12\x18\n\x10request_async_id\x18\x03 \x01(\x04\"(\n\x14SetLocalNameResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"7\n\x14SetLocalNameCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"E\n\x14SetSubscribedRequest\x12\x11\n\tsubscribe\x18\x01 \x02(\x08\x12\x1a\n\x12publication_handle\x18\x02 \x02(\x04\"\x17\n\x15SetSubscribedResponse\"G\n\x16GetSessionStatsRequest\x12\x13\n\x0broom_handle\x18\x01 \x02(\x04\x12\x18\n\x10request_async_id\x18\x02 \x01(\x04\"+\n\x17GetSessionStatsResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"\xf7\x01\n\x17GetSessionStatsCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\x0f\n\x05\x65rror\x18\x02 \x01(\tH\x00\x12?\n\x06result\x18\x03 \x01(\x0b\x32-.livekit.proto.GetSessionStatsCallback.ResultH\x00\x1am\n\x06Result\x12\x30\n\x0fpublisher_stats\x18\x01 \x03(\x0b\x32\x17.livekit.proto.RtcStats\x12\x31\n\x10subscriber_stats\x18\x02 \x03(\x0b\x32\x17.livekit.proto.RtcStatsB\t\n\x07message\";\n\rVideoEncoding\x12\x13\n\x0bmax_bitrate\x18\x01 \x02(\x04\x12\x15\n\rmax_framerate\x18\x02 \x02(\x01\"$\n\rAudioEncoding\x12\x13\n\x0bmax_bitrate\x18\x01 \x02(\x04\"\x96\x04\n\x13TrackPublishOptions\x12\x34\n\x0evideo_encoding\x18\x01 \x01(\x0b\x32\x1c.livekit.proto.VideoEncoding\x12\x34\n\x0e\x61udio_encoding\x18\x02 \x01(\x0b\x32\x1c.livekit.proto.AudioEncoding\x12.\n\x0bvideo_codec\x18\x03 \x01(\x0e\x32\x19.livekit.proto.VideoCodec\x12\x0b\n\x03\x64tx\x18\x04 \x01(\x08\x12\x0b\n\x03red\x18\x05 \x01(\x08\x12\x11\n\tsimulcast\x18\x06 \x01(\x08\x12*\n\x06source\x18\x07 \x01(\x0e\x32\x1a.livekit.proto.TrackSource\x12\x0e\n\x06stream\x18\x08 \x01(\t\x12\x19\n\x11preconnect_buffer\x18\t \x01(\x08\x12\x44\n\x17\x66rame_metadata_features\x18\n \x03(\x0e\x32#.livekit.proto.FrameMetadataFeature\x12\x18\n\x10scalability_mode\x18\x0b \x01(\t\x12\x39\n\rvideo_encoder\x18\x0c \x01(\x0e\x32\".livekit.proto.VideoEncoderBackend\x12\x44\n\x16\x64\x65gradation_preference\x18\r \x01(\x0e\x32$.livekit.proto.DegradationPreference\"=\n\tIceServer\x12\x0c\n\x04urls\x18\x01 \x03(\t\x12\x10\n\x08username\x18\x02 \x01(\t\x12\x10\n\x08password\x18\x03 \x01(\t\"\xc4\x01\n\tRtcConfig\x12;\n\x12ice_transport_type\x18\x01 \x01(\x0e\x32\x1f.livekit.proto.IceTransportType\x12K\n\x1a\x63ontinual_gathering_policy\x18\x02 \x01(\x0e\x32\'.livekit.proto.ContinualGatheringPolicy\x12-\n\x0bice_servers\x18\x03 \x03(\x0b\x32\x18.livekit.proto.IceServer\"b\n\x15RoomDataStreamOptions\x12\x1f\n\x17max_payload_byte_length\x18\x01 \x01(\x04\x12(\n use_legacy_client_implementation\x18\x02 \x01(\x08\"\xe9\x02\n\x0bRoomOptions\x12\x16\n\x0e\x61uto_subscribe\x18\x01 \x01(\x08\x12\x17\n\x0f\x61\x64\x61ptive_stream\x18\x02 \x01(\x08\x12\x10\n\x08\x64ynacast\x18\x03 \x01(\x08\x12,\n\x04\x65\x32\x65\x65\x18\x04 \x01(\x0b\x32\x1a.livekit.proto.E2eeOptionsB\x02\x18\x01\x12,\n\nrtc_config\x18\x05 \x01(\x0b\x32\x18.livekit.proto.RtcConfig\x12\x14\n\x0cjoin_retries\x18\x06 \x01(\r\x12.\n\nencryption\x18\x07 \x01(\x0b\x32\x1a.livekit.proto.E2eeOptions\x12\x1e\n\x16single_peer_connection\x18\x08 \x01(\x08\x12\x1a\n\x12\x63onnect_timeout_ms\x18\t \x01(\x04\x12\x39\n\x0b\x64\x61ta_stream\x18\n \x01(\x0b\x32$.livekit.proto.RoomDataStreamOptions\"w\n\x14TranscriptionSegment\x12\n\n\x02id\x18\x01 \x02(\t\x12\x0c\n\x04text\x18\x02 \x02(\t\x12\x12\n\nstart_time\x18\x03 \x02(\x04\x12\x10\n\x08\x65nd_time\x18\x04 \x02(\x04\x12\r\n\x05\x66inal\x18\x05 \x02(\x08\x12\x10\n\x08language\x18\x06 \x02(\t\"0\n\nBufferInfo\x12\x10\n\x08\x64\x61ta_ptr\x18\x01 \x02(\x04\x12\x10\n\x08\x64\x61ta_len\x18\x02 \x02(\x04\"e\n\x0bOwnedBuffer\x12-\n\x06handle\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12\'\n\x04\x64\x61ta\x18\x02 \x02(\x0b\x32\x19.livekit.proto.BufferInfo\"\xce\x17\n\tRoomEvent\x12\x13\n\x0broom_handle\x18\x01 \x02(\x04\x12\x44\n\x15participant_connected\x18\x02 \x01(\x0b\x32#.livekit.proto.ParticipantConnectedH\x00\x12J\n\x18participant_disconnected\x18\x03 \x01(\x0b\x32&.livekit.proto.ParticipantDisconnectedH\x00\x12\x43\n\x15local_track_published\x18\x04 \x01(\x0b\x32\".livekit.proto.LocalTrackPublishedH\x00\x12G\n\x17local_track_unpublished\x18\x05 \x01(\x0b\x32$.livekit.proto.LocalTrackUnpublishedH\x00\x12\x45\n\x16local_track_subscribed\x18\x06 \x01(\x0b\x32#.livekit.proto.LocalTrackSubscribedH\x00\x12\x38\n\x0ftrack_published\x18\x07 \x01(\x0b\x32\x1d.livekit.proto.TrackPublishedH\x00\x12<\n\x11track_unpublished\x18\x08 \x01(\x0b\x32\x1f.livekit.proto.TrackUnpublishedH\x00\x12:\n\x10track_subscribed\x18\t \x01(\x0b\x32\x1e.livekit.proto.TrackSubscribedH\x00\x12>\n\x12track_unsubscribed\x18\n \x01(\x0b\x32 .livekit.proto.TrackUnsubscribedH\x00\x12K\n\x19track_subscription_failed\x18\x0b \x01(\x0b\x32&.livekit.proto.TrackSubscriptionFailedH\x00\x12\x30\n\x0btrack_muted\x18\x0c \x01(\x0b\x32\x19.livekit.proto.TrackMutedH\x00\x12\x34\n\rtrack_unmuted\x18\r \x01(\x0b\x32\x1b.livekit.proto.TrackUnmutedH\x00\x12G\n\x17\x61\x63tive_speakers_changed\x18\x0e \x01(\x0b\x32$.livekit.proto.ActiveSpeakersChangedH\x00\x12\x43\n\x15room_metadata_changed\x18\x0f \x01(\x0b\x32\".livekit.proto.RoomMetadataChangedH\x00\x12\x39\n\x10room_sid_changed\x18\x10 \x01(\x0b\x32\x1d.livekit.proto.RoomSidChangedH\x00\x12Q\n\x1cparticipant_metadata_changed\x18\x11 \x01(\x0b\x32).livekit.proto.ParticipantMetadataChangedH\x00\x12I\n\x18participant_name_changed\x18\x12 \x01(\x0b\x32%.livekit.proto.ParticipantNameChangedH\x00\x12U\n\x1eparticipant_attributes_changed\x18\x13 \x01(\x0b\x32+.livekit.proto.ParticipantAttributesChangedH\x00\x12M\n\x1a\x63onnection_quality_changed\x18\x14 \x01(\x0b\x32\'.livekit.proto.ConnectionQualityChangedH\x00\x12I\n\x18\x63onnection_state_changed\x18\x15 \x01(\x0b\x32%.livekit.proto.ConnectionStateChangedH\x00\x12\x33\n\x0c\x64isconnected\x18\x16 \x01(\x0b\x32\x1b.livekit.proto.DisconnectedH\x00\x12\x33\n\x0creconnecting\x18\x17 \x01(\x0b\x32\x1b.livekit.proto.ReconnectingH\x00\x12\x31\n\x0breconnected\x18\x18 \x01(\x0b\x32\x1a.livekit.proto.ReconnectedH\x00\x12=\n\x12\x65\x32\x65\x65_state_changed\x18\x19 \x01(\x0b\x32\x1f.livekit.proto.E2eeStateChangedH\x00\x12%\n\x03\x65os\x18\x1a \x01(\x0b\x32\x16.livekit.proto.RoomEOSH\x00\x12\x41\n\x14\x64\x61ta_packet_received\x18\x1b \x01(\x0b\x32!.livekit.proto.DataPacketReceivedH\x00\x12\x46\n\x16transcription_received\x18\x1c \x01(\x0b\x32$.livekit.proto.TranscriptionReceivedH\x00\x12:\n\x0c\x63hat_message\x18\x1d \x01(\x0b\x32\".livekit.proto.ChatMessageReceivedH\x00\x12I\n\x16stream_header_received\x18\x1e \x01(\x0b\x32\'.livekit.proto.DataStreamHeaderReceivedH\x00\x12G\n\x15stream_chunk_received\x18\x1f \x01(\x0b\x32&.livekit.proto.DataStreamChunkReceivedH\x00\x12K\n\x17stream_trailer_received\x18 \x01(\x0b\x32(.livekit.proto.DataStreamTrailerReceivedH\x00\x12i\n\"data_channel_low_threshold_changed\x18! \x01(\x0b\x32;.livekit.proto.DataChannelBufferedAmountLowThresholdChangedH\x00\x12=\n\x12\x62yte_stream_opened\x18\" \x01(\x0b\x32\x1f.livekit.proto.ByteStreamOpenedH\x00\x12=\n\x12text_stream_opened\x18# \x01(\x0b\x32\x1f.livekit.proto.TextStreamOpenedH\x00\x12/\n\x0croom_updated\x18$ \x01(\x0b\x32\x17.livekit.proto.RoomInfoH\x00\x12(\n\x05moved\x18% \x01(\x0b\x32\x17.livekit.proto.RoomInfoH\x00\x12\x42\n\x14participants_updated\x18& \x01(\x0b\x32\".livekit.proto.ParticipantsUpdatedH\x00\x12\x62\n%participant_encryption_status_changed\x18\' \x01(\x0b\x32\x31.livekit.proto.ParticipantEncryptionStatusChangedH\x00\x12U\n\x1eparticipant_permission_changed\x18) \x01(\x0b\x32+.livekit.proto.ParticipantPermissionChangedH\x00\x12\x38\n\x0ftoken_refreshed\x18( \x01(\x0b\x32\x1d.livekit.proto.TokenRefreshedH\x00\x12>\n\x12participant_active\x18* \x01(\x0b\x32 .livekit.proto.ParticipantActiveH\x00\x12\x41\n\x14\x64\x61ta_track_published\x18+ \x01(\x0b\x32!.livekit.proto.DataTrackPublishedH\x00\x12\x45\n\x16\x64\x61ta_track_unpublished\x18, \x01(\x0b\x32#.livekit.proto.DataTrackUnpublishedH\x00\x12G\n\x17local_track_republished\x18- \x01(\x0b\x32$.livekit.proto.LocalTrackRepublishedH\x00\x42\t\n\x07message\"\xc9\x02\n\x08RoomInfo\x12\x0b\n\x03sid\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x02(\t\x12\x10\n\x08metadata\x18\x03 \x02(\t\x12.\n&lossy_dc_buffered_amount_low_threshold\x18\x04 \x02(\x04\x12\x31\n)reliable_dc_buffered_amount_low_threshold\x18\x05 \x02(\x04\x12\x15\n\rempty_timeout\x18\x06 \x02(\r\x12\x19\n\x11\x64\x65parture_timeout\x18\x07 \x02(\r\x12\x18\n\x10max_participants\x18\x08 \x02(\r\x12\x15\n\rcreation_time\x18\t \x02(\x03\x12\x18\n\x10num_participants\x18\n \x02(\r\x12\x16\n\x0enum_publishers\x18\x0b \x02(\r\x12\x18\n\x10\x61\x63tive_recording\x18\x0c \x02(\x08\"a\n\tOwnedRoom\x12-\n\x06handle\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12%\n\x04info\x18\x02 \x02(\x0b\x32\x17.livekit.proto.RoomInfo\"K\n\x13ParticipantsUpdated\x12\x34\n\x0cparticipants\x18\x01 \x03(\x0b\x32\x1e.livekit.proto.ParticipantInfo\"E\n\x14ParticipantConnected\x12-\n\x04info\x18\x01 \x02(\x0b\x32\x1f.livekit.proto.OwnedParticipant\"1\n\x11ParticipantActive\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\"s\n\x17ParticipantDisconnected\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12:\n\x11\x64isconnect_reason\x18\x02 \x02(\x0e\x32\x1f.livekit.proto.DisconnectReason\"(\n\x13LocalTrackPublished\x12\x11\n\ttrack_sid\x18\x01 \x02(\t\"0\n\x15LocalTrackUnpublished\x12\x17\n\x0fpublication_sid\x18\x01 \x02(\t\"|\n\x15LocalTrackRepublished\x12\x1a\n\x12publication_handle\x18\x01 \x02(\x04\x12\x14\n\x0cprevious_sid\x18\x02 \x02(\t\x12\x31\n\x04info\x18\x03 \x02(\x0b\x32#.livekit.proto.TrackPublicationInfo\")\n\x14LocalTrackSubscribed\x12\x11\n\ttrack_sid\x18\x02 \x02(\t\"i\n\x0eTrackPublished\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x39\n\x0bpublication\x18\x02 \x02(\x0b\x32$.livekit.proto.OwnedTrackPublication\"I\n\x10TrackUnpublished\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x17\n\x0fpublication_sid\x18\x02 \x02(\t\"Y\n\x0fTrackSubscribed\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12(\n\x05track\x18\x02 \x02(\x0b\x32\x19.livekit.proto.OwnedTrack\"D\n\x11TrackUnsubscribed\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x11\n\ttrack_sid\x18\x02 \x02(\t\"Y\n\x17TrackSubscriptionFailed\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x11\n\ttrack_sid\x18\x02 \x02(\t\x12\r\n\x05\x65rror\x18\x03 \x02(\t\"=\n\nTrackMuted\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x11\n\ttrack_sid\x18\x02 \x02(\t\"?\n\x0cTrackUnmuted\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x11\n\ttrack_sid\x18\x02 \x02(\t\"_\n\x10\x45\x32\x65\x65StateChanged\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12-\n\x05state\x18\x02 \x02(\x0e\x32\x1e.livekit.proto.EncryptionState\"7\n\x15\x41\x63tiveSpeakersChanged\x12\x1e\n\x16participant_identities\x18\x01 \x03(\t\"\'\n\x13RoomMetadataChanged\x12\x10\n\x08metadata\x18\x01 \x02(\t\"\x1d\n\x0eRoomSidChanged\x12\x0b\n\x03sid\x18\x01 \x02(\t\"L\n\x1aParticipantMetadataChanged\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x10\n\x08metadata\x18\x02 \x02(\t\"\xac\x01\n\x1cParticipantAttributesChanged\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x32\n\nattributes\x18\x02 \x03(\x0b\x32\x1e.livekit.proto.AttributesEntry\x12:\n\x12\x63hanged_attributes\x18\x03 \x03(\x0b\x32\x1e.livekit.proto.AttributesEntry\"X\n\"ParticipantEncryptionStatusChanged\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x14\n\x0cis_encrypted\x18\x02 \x02(\x08\"D\n\x16ParticipantNameChanged\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x0c\n\x04name\x18\x02 \x02(\t\"v\n\x1cParticipantPermissionChanged\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x38\n\npermission\x18\x02 \x01(\x0b\x32$.livekit.proto.ParticipantPermission\"k\n\x18\x43onnectionQualityChanged\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x31\n\x07quality\x18\x02 \x02(\x0e\x32 .livekit.proto.ConnectionQuality\"E\n\nUserPacket\x12(\n\x04\x64\x61ta\x18\x01 \x02(\x0b\x32\x1a.livekit.proto.OwnedBuffer\x12\r\n\x05topic\x18\x02 \x01(\t\"y\n\x0b\x43hatMessage\x12\n\n\x02id\x18\x01 \x02(\t\x12\x11\n\ttimestamp\x18\x02 \x02(\x03\x12\x0f\n\x07message\x18\x03 \x02(\t\x12\x16\n\x0e\x65\x64it_timestamp\x18\x04 \x01(\x03\x12\x0f\n\x07\x64\x65leted\x18\x05 \x01(\x08\x12\x11\n\tgenerated\x18\x06 \x01(\x08\"`\n\x13\x43hatMessageReceived\x12+\n\x07message\x18\x01 \x02(\x0b\x32\x1a.livekit.proto.ChatMessage\x12\x1c\n\x14participant_identity\x18\x02 \x02(\t\"&\n\x07SipDTMF\x12\x0c\n\x04\x63ode\x18\x01 \x02(\r\x12\r\n\x05\x64igit\x18\x02 \x01(\t\"\xbf\x01\n\x12\x44\x61taPacketReceived\x12+\n\x04kind\x18\x01 \x02(\x0e\x32\x1d.livekit.proto.DataPacketKind\x12\x1c\n\x14participant_identity\x18\x02 \x02(\t\x12)\n\x04user\x18\x04 \x01(\x0b\x32\x19.livekit.proto.UserPacketH\x00\x12*\n\x08sip_dtmf\x18\x05 \x01(\x0b\x32\x16.livekit.proto.SipDTMFH\x00\x42\x07\n\x05value\"\x7f\n\x15TranscriptionReceived\x12\x1c\n\x14participant_identity\x18\x01 \x01(\t\x12\x11\n\ttrack_sid\x18\x02 \x01(\t\x12\x35\n\x08segments\x18\x03 \x03(\x0b\x32#.livekit.proto.TranscriptionSegment\"G\n\x16\x43onnectionStateChanged\x12-\n\x05state\x18\x01 \x02(\x0e\x32\x1e.livekit.proto.ConnectionState\"\x0b\n\tConnected\"?\n\x0c\x44isconnected\x12/\n\x06reason\x18\x01 \x02(\x0e\x32\x1f.livekit.proto.DisconnectReason\"\x0e\n\x0cReconnecting\"\r\n\x0bReconnected\"\x1f\n\x0eTokenRefreshed\x12\r\n\x05token\x18\x01 \x02(\t\"\t\n\x07RoomEOS\"\x8e\x07\n\nDataStream\x1a\xaa\x01\n\nTextHeader\x12?\n\x0eoperation_type\x18\x01 \x02(\x0e\x32\'.livekit.proto.DataStream.OperationType\x12\x0f\n\x07version\x18\x02 \x01(\x05\x12\x1a\n\x12reply_to_stream_id\x18\x03 \x01(\t\x12\x1b\n\x13\x61ttached_stream_ids\x18\x04 \x03(\t\x12\x11\n\tgenerated\x18\x05 \x01(\x08\x1a\x1a\n\nByteHeader\x12\x0c\n\x04name\x18\x01 \x02(\t\x1a\xeb\x02\n\x06Header\x12\x11\n\tstream_id\x18\x01 \x02(\t\x12\x11\n\ttimestamp\x18\x02 \x02(\x03\x12\x11\n\tmime_type\x18\x03 \x02(\t\x12\r\n\x05topic\x18\x04 \x02(\t\x12\x14\n\x0ctotal_length\x18\x05 \x01(\x04\x12\x44\n\nattributes\x18\x06 \x03(\x0b\x32\x30.livekit.proto.DataStream.Header.AttributesEntry\x12;\n\x0btext_header\x18\x07 \x01(\x0b\x32$.livekit.proto.DataStream.TextHeaderH\x00\x12;\n\x0b\x62yte_header\x18\x08 \x01(\x0b\x32$.livekit.proto.DataStream.ByteHeaderH\x00\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x10\n\x0e\x63ontent_header\x1a]\n\x05\x43hunk\x12\x11\n\tstream_id\x18\x01 \x02(\t\x12\x13\n\x0b\x63hunk_index\x18\x02 \x02(\x04\x12\x0f\n\x07\x63ontent\x18\x03 \x02(\x0c\x12\x0f\n\x07version\x18\x04 \x01(\x05\x12\n\n\x02iv\x18\x05 \x01(\x0c\x1a\xa6\x01\n\x07Trailer\x12\x11\n\tstream_id\x18\x01 \x02(\t\x12\x0e\n\x06reason\x18\x02 \x02(\t\x12\x45\n\nattributes\x18\x03 \x03(\x0b\x32\x31.livekit.proto.DataStream.Trailer.AttributesEntry\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"A\n\rOperationType\x12\n\n\x06\x43REATE\x10\x00\x12\n\n\x06UPDATE\x10\x01\x12\n\n\x06\x44\x45LETE\x10\x02\x12\x0c\n\x08REACTION\x10\x03\"j\n\x18\x44\x61taStreamHeaderReceived\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x30\n\x06header\x18\x02 \x02(\x0b\x32 .livekit.proto.DataStream.Header\"g\n\x17\x44\x61taStreamChunkReceived\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12.\n\x05\x63hunk\x18\x02 \x02(\x0b\x32\x1f.livekit.proto.DataStream.Chunk\"m\n\x19\x44\x61taStreamTrailerReceived\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x32\n\x07trailer\x18\x02 \x02(\x0b\x32!.livekit.proto.DataStream.Trailer\"\xc0\x01\n\x17SendStreamHeaderRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x30\n\x06header\x18\x02 \x02(\x0b\x32 .livekit.proto.DataStream.Header\x12\x1e\n\x16\x64\x65stination_identities\x18\x03 \x03(\t\x12\x17\n\x0fsender_identity\x18\x04 \x02(\t\x12\x18\n\x10request_async_id\x18\x05 \x01(\x04\"\xbd\x01\n\x16SendStreamChunkRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12.\n\x05\x63hunk\x18\x02 \x02(\x0b\x32\x1f.livekit.proto.DataStream.Chunk\x12\x1e\n\x16\x64\x65stination_identities\x18\x03 \x03(\t\x12\x17\n\x0fsender_identity\x18\x04 \x02(\t\x12\x18\n\x10request_async_id\x18\x05 \x01(\x04\"\xc3\x01\n\x18SendStreamTrailerRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x32\n\x07trailer\x18\x02 \x02(\x0b\x32!.livekit.proto.DataStream.Trailer\x12\x1e\n\x16\x64\x65stination_identities\x18\x03 \x03(\t\x12\x17\n\x0fsender_identity\x18\x04 \x02(\t\x12\x18\n\x10request_async_id\x18\x05 \x01(\x04\",\n\x18SendStreamHeaderResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"+\n\x17SendStreamChunkResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"-\n\x19SendStreamTrailerResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\";\n\x18SendStreamHeaderCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\":\n\x17SendStreamChunkCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"<\n\x19SendStreamTrailerCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"\x93\x01\n/SetDataChannelBufferedAmountLowThresholdRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12\x11\n\tthreshold\x18\x02 \x02(\x04\x12+\n\x04kind\x18\x03 \x02(\x0e\x32\x1d.livekit.proto.DataPacketKind\"2\n0SetDataChannelBufferedAmountLowThresholdResponse\"n\n,DataChannelBufferedAmountLowThresholdChanged\x12+\n\x04kind\x18\x01 \x02(\x0e\x32\x1d.livekit.proto.DataPacketKind\x12\x11\n\tthreshold\x18\x02 \x02(\x04\"f\n\x10\x42yteStreamOpened\x12\x34\n\x06reader\x18\x01 \x02(\x0b\x32$.livekit.proto.OwnedByteStreamReader\x12\x1c\n\x14participant_identity\x18\x02 \x02(\t\"f\n\x10TextStreamOpened\x12\x34\n\x06reader\x18\x01 \x02(\x0b\x32$.livekit.proto.OwnedTextStreamReader\x12\x1c\n\x14participant_identity\x18\x02 \x02(\t\"H\n\x12\x44\x61taTrackPublished\x12\x32\n\x05track\x18\x01 \x02(\x0b\x32#.livekit.proto.OwnedRemoteDataTrack\"#\n\x14\x44\x61taTrackUnpublished\x12\x0b\n\x03sid\x18\x01 \x02(\t*\x90\x02\n\x14SimulateScenarioKind\x12\x1d\n\x19SIMULATE_SIGNAL_RECONNECT\x10\x00\x12\x14\n\x10SIMULATE_SPEAKER\x10\x01\x12\x19\n\x15SIMULATE_NODE_FAILURE\x10\x02\x12\x19\n\x15SIMULATE_SERVER_LEAVE\x10\x03\x12\x16\n\x12SIMULATE_MIGRATION\x10\x04\x12\x16\n\x12SIMULATE_FORCE_TCP\x10\x05\x12\x16\n\x12SIMULATE_FORCE_TLS\x10\x06\x12\x1b\n\x17SIMULATE_FULL_RECONNECT\x10\x07\x12(\n$SIMULATE_DISCONNECT_SIGNAL_ON_RESUME\x10\x08*\xc3\x01\n\x13VideoEncoderBackend\x12\x18\n\x14\x45NCODER_BACKEND_AUTO\x10\x00\x12\x1c\n\x18\x45NCODER_BACKEND_SOFTWARE\x10\x01\x12\x1c\n\x18\x45NCODER_BACKEND_HARDWARE\x10\x02\x12\x19\n\x15\x45NCODER_BACKEND_NVENC\x10\x03\x12\x19\n\x15\x45NCODER_BACKEND_VAAPI\x10\x04\x12 \n\x1c\x45NCODER_BACKEND_VIDEOTOOLBOX\x10\x05*\xd9\x01\n\x15\x44\x65gradationPreference\x12#\n\x1f\x44\x45GRADATION_PREFERENCE_BALANCED\x10\x00\x12-\n)DEGRADATION_PREFERENCE_MAINTAIN_FRAMERATE\x10\x01\x12.\n*DEGRADATION_PREFERENCE_MAINTAIN_RESOLUTION\x10\x02\x12<\n8DEGRADATION_PREFERENCE_MAINTAIN_FRAMERATE_AND_RESOLUTION\x10\x04*P\n\x10IceTransportType\x12\x13\n\x0fTRANSPORT_RELAY\x10\x00\x12\x14\n\x10TRANSPORT_NOHOST\x10\x01\x12\x11\n\rTRANSPORT_ALL\x10\x02*C\n\x18\x43ontinualGatheringPolicy\x12\x0f\n\x0bGATHER_ONCE\x10\x00\x12\x16\n\x12GATHER_CONTINUALLY\x10\x01*`\n\x11\x43onnectionQuality\x12\x10\n\x0cQUALITY_POOR\x10\x00\x12\x10\n\x0cQUALITY_GOOD\x10\x01\x12\x15\n\x11QUALITY_EXCELLENT\x10\x02\x12\x10\n\x0cQUALITY_LOST\x10\x03*S\n\x0f\x43onnectionState\x12\x15\n\x11\x43ONN_DISCONNECTED\x10\x00\x12\x12\n\x0e\x43ONN_CONNECTED\x10\x01\x12\x15\n\x11\x43ONN_RECONNECTING\x10\x02*3\n\x0e\x44\x61taPacketKind\x12\x0e\n\nKIND_LOSSY\x10\x00\x12\x11\n\rKIND_RELIABLE\x10\x01\x42\x10\xaa\x02\rLiveKit.Proto') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -38,20 +38,22 @@ _globals['_DATASTREAM_HEADER_ATTRIBUTESENTRY']._serialized_options = b'8\001' _globals['_DATASTREAM_TRAILER_ATTRIBUTESENTRY']._options = None _globals['_DATASTREAM_TRAILER_ATTRIBUTESENTRY']._serialized_options = b'8\001' - _globals['_SIMULATESCENARIOKIND']._serialized_start=14958 - _globals['_SIMULATESCENARIOKIND']._serialized_end=15188 - _globals['_VIDEOENCODERBACKEND']._serialized_start=15191 - _globals['_VIDEOENCODERBACKEND']._serialized_end=15386 - _globals['_ICETRANSPORTTYPE']._serialized_start=15388 - _globals['_ICETRANSPORTTYPE']._serialized_end=15468 - _globals['_CONTINUALGATHERINGPOLICY']._serialized_start=15470 - _globals['_CONTINUALGATHERINGPOLICY']._serialized_end=15537 - _globals['_CONNECTIONQUALITY']._serialized_start=15539 - _globals['_CONNECTIONQUALITY']._serialized_end=15635 - _globals['_CONNECTIONSTATE']._serialized_start=15637 - _globals['_CONNECTIONSTATE']._serialized_end=15720 - _globals['_DATAPACKETKIND']._serialized_start=15722 - _globals['_DATAPACKETKIND']._serialized_end=15773 + _globals['_SIMULATESCENARIOKIND']._serialized_start=15187 + _globals['_SIMULATESCENARIOKIND']._serialized_end=15459 + _globals['_VIDEOENCODERBACKEND']._serialized_start=15462 + _globals['_VIDEOENCODERBACKEND']._serialized_end=15657 + _globals['_DEGRADATIONPREFERENCE']._serialized_start=15660 + _globals['_DEGRADATIONPREFERENCE']._serialized_end=15877 + _globals['_ICETRANSPORTTYPE']._serialized_start=15879 + _globals['_ICETRANSPORTTYPE']._serialized_end=15959 + _globals['_CONTINUALGATHERINGPOLICY']._serialized_start=15961 + _globals['_CONTINUALGATHERINGPOLICY']._serialized_end=16028 + _globals['_CONNECTIONQUALITY']._serialized_start=16030 + _globals['_CONNECTIONQUALITY']._serialized_end=16126 + _globals['_CONNECTIONSTATE']._serialized_start=16128 + _globals['_CONNECTIONSTATE']._serialized_end=16211 + _globals['_DATAPACKETKIND']._serialized_start=16213 + _globals['_DATAPACKETKIND']._serialized_end=16264 _globals['_CONNECTREQUEST']._serialized_start=156 _globals['_CONNECTREQUEST']._serialized_end=271 _globals['_CONNECTRESPONSE']._serialized_start=273 @@ -153,155 +155,157 @@ _globals['_AUDIOENCODING']._serialized_start=4491 _globals['_AUDIOENCODING']._serialized_end=4527 _globals['_TRACKPUBLISHOPTIONS']._serialized_start=4530 - _globals['_TRACKPUBLISHOPTIONS']._serialized_end=4994 - _globals['_ICESERVER']._serialized_start=4996 - _globals['_ICESERVER']._serialized_end=5057 - _globals['_RTCCONFIG']._serialized_start=5060 - _globals['_RTCCONFIG']._serialized_end=5256 - _globals['_ROOMOPTIONS']._serialized_start=5259 - _globals['_ROOMOPTIONS']._serialized_end=5561 - _globals['_TRANSCRIPTIONSEGMENT']._serialized_start=5563 - _globals['_TRANSCRIPTIONSEGMENT']._serialized_end=5682 - _globals['_BUFFERINFO']._serialized_start=5684 - _globals['_BUFFERINFO']._serialized_end=5732 - _globals['_OWNEDBUFFER']._serialized_start=5734 - _globals['_OWNEDBUFFER']._serialized_end=5835 - _globals['_ROOMEVENT']._serialized_start=5838 - _globals['_ROOMEVENT']._serialized_end=8860 - _globals['_ROOMINFO']._serialized_start=8863 - _globals['_ROOMINFO']._serialized_end=9192 - _globals['_OWNEDROOM']._serialized_start=9194 - _globals['_OWNEDROOM']._serialized_end=9291 - _globals['_PARTICIPANTSUPDATED']._serialized_start=9293 - _globals['_PARTICIPANTSUPDATED']._serialized_end=9368 - _globals['_PARTICIPANTCONNECTED']._serialized_start=9370 - _globals['_PARTICIPANTCONNECTED']._serialized_end=9439 - _globals['_PARTICIPANTACTIVE']._serialized_start=9441 - _globals['_PARTICIPANTACTIVE']._serialized_end=9490 - _globals['_PARTICIPANTDISCONNECTED']._serialized_start=9492 - _globals['_PARTICIPANTDISCONNECTED']._serialized_end=9607 - _globals['_LOCALTRACKPUBLISHED']._serialized_start=9609 - _globals['_LOCALTRACKPUBLISHED']._serialized_end=9649 - _globals['_LOCALTRACKUNPUBLISHED']._serialized_start=9651 - _globals['_LOCALTRACKUNPUBLISHED']._serialized_end=9699 - _globals['_LOCALTRACKREPUBLISHED']._serialized_start=9701 - _globals['_LOCALTRACKREPUBLISHED']._serialized_end=9825 - _globals['_LOCALTRACKSUBSCRIBED']._serialized_start=9827 - _globals['_LOCALTRACKSUBSCRIBED']._serialized_end=9868 - _globals['_TRACKPUBLISHED']._serialized_start=9870 - _globals['_TRACKPUBLISHED']._serialized_end=9975 - _globals['_TRACKUNPUBLISHED']._serialized_start=9977 - _globals['_TRACKUNPUBLISHED']._serialized_end=10050 - _globals['_TRACKSUBSCRIBED']._serialized_start=10052 - _globals['_TRACKSUBSCRIBED']._serialized_end=10141 - _globals['_TRACKUNSUBSCRIBED']._serialized_start=10143 - _globals['_TRACKUNSUBSCRIBED']._serialized_end=10211 - _globals['_TRACKSUBSCRIPTIONFAILED']._serialized_start=10213 - _globals['_TRACKSUBSCRIPTIONFAILED']._serialized_end=10302 - _globals['_TRACKMUTED']._serialized_start=10304 - _globals['_TRACKMUTED']._serialized_end=10365 - _globals['_TRACKUNMUTED']._serialized_start=10367 - _globals['_TRACKUNMUTED']._serialized_end=10430 - _globals['_E2EESTATECHANGED']._serialized_start=10432 - _globals['_E2EESTATECHANGED']._serialized_end=10527 - _globals['_ACTIVESPEAKERSCHANGED']._serialized_start=10529 - _globals['_ACTIVESPEAKERSCHANGED']._serialized_end=10584 - _globals['_ROOMMETADATACHANGED']._serialized_start=10586 - _globals['_ROOMMETADATACHANGED']._serialized_end=10625 - _globals['_ROOMSIDCHANGED']._serialized_start=10627 - _globals['_ROOMSIDCHANGED']._serialized_end=10656 - _globals['_PARTICIPANTMETADATACHANGED']._serialized_start=10658 - _globals['_PARTICIPANTMETADATACHANGED']._serialized_end=10734 - _globals['_PARTICIPANTATTRIBUTESCHANGED']._serialized_start=10737 - _globals['_PARTICIPANTATTRIBUTESCHANGED']._serialized_end=10909 - _globals['_PARTICIPANTENCRYPTIONSTATUSCHANGED']._serialized_start=10911 - _globals['_PARTICIPANTENCRYPTIONSTATUSCHANGED']._serialized_end=10999 - _globals['_PARTICIPANTNAMECHANGED']._serialized_start=11001 - _globals['_PARTICIPANTNAMECHANGED']._serialized_end=11069 - _globals['_PARTICIPANTPERMISSIONCHANGED']._serialized_start=11071 - _globals['_PARTICIPANTPERMISSIONCHANGED']._serialized_end=11189 - _globals['_CONNECTIONQUALITYCHANGED']._serialized_start=11191 - _globals['_CONNECTIONQUALITYCHANGED']._serialized_end=11298 - _globals['_USERPACKET']._serialized_start=11300 - _globals['_USERPACKET']._serialized_end=11369 - _globals['_CHATMESSAGE']._serialized_start=11371 - _globals['_CHATMESSAGE']._serialized_end=11492 - _globals['_CHATMESSAGERECEIVED']._serialized_start=11494 - _globals['_CHATMESSAGERECEIVED']._serialized_end=11590 - _globals['_SIPDTMF']._serialized_start=11592 - _globals['_SIPDTMF']._serialized_end=11630 - _globals['_DATAPACKETRECEIVED']._serialized_start=11633 - _globals['_DATAPACKETRECEIVED']._serialized_end=11824 - _globals['_TRANSCRIPTIONRECEIVED']._serialized_start=11826 - _globals['_TRANSCRIPTIONRECEIVED']._serialized_end=11953 - _globals['_CONNECTIONSTATECHANGED']._serialized_start=11955 - _globals['_CONNECTIONSTATECHANGED']._serialized_end=12026 - _globals['_CONNECTED']._serialized_start=12028 - _globals['_CONNECTED']._serialized_end=12039 - _globals['_DISCONNECTED']._serialized_start=12041 - _globals['_DISCONNECTED']._serialized_end=12104 - _globals['_RECONNECTING']._serialized_start=12106 - _globals['_RECONNECTING']._serialized_end=12120 - _globals['_RECONNECTED']._serialized_start=12122 - _globals['_RECONNECTED']._serialized_end=12135 - _globals['_TOKENREFRESHED']._serialized_start=12137 - _globals['_TOKENREFRESHED']._serialized_end=12168 - _globals['_ROOMEOS']._serialized_start=12170 - _globals['_ROOMEOS']._serialized_end=12179 - _globals['_DATASTREAM']._serialized_start=12182 - _globals['_DATASTREAM']._serialized_end=13092 - _globals['_DATASTREAM_TEXTHEADER']._serialized_start=12197 - _globals['_DATASTREAM_TEXTHEADER']._serialized_end=12367 - _globals['_DATASTREAM_BYTEHEADER']._serialized_start=12369 - _globals['_DATASTREAM_BYTEHEADER']._serialized_end=12395 - _globals['_DATASTREAM_HEADER']._serialized_start=12398 - _globals['_DATASTREAM_HEADER']._serialized_end=12761 - _globals['_DATASTREAM_HEADER_ATTRIBUTESENTRY']._serialized_start=12694 - _globals['_DATASTREAM_HEADER_ATTRIBUTESENTRY']._serialized_end=12743 - _globals['_DATASTREAM_CHUNK']._serialized_start=12763 - _globals['_DATASTREAM_CHUNK']._serialized_end=12856 - _globals['_DATASTREAM_TRAILER']._serialized_start=12859 - _globals['_DATASTREAM_TRAILER']._serialized_end=13025 - _globals['_DATASTREAM_TRAILER_ATTRIBUTESENTRY']._serialized_start=12694 - _globals['_DATASTREAM_TRAILER_ATTRIBUTESENTRY']._serialized_end=12743 - _globals['_DATASTREAM_OPERATIONTYPE']._serialized_start=13027 - _globals['_DATASTREAM_OPERATIONTYPE']._serialized_end=13092 - _globals['_DATASTREAMHEADERRECEIVED']._serialized_start=13094 - _globals['_DATASTREAMHEADERRECEIVED']._serialized_end=13200 - _globals['_DATASTREAMCHUNKRECEIVED']._serialized_start=13202 - _globals['_DATASTREAMCHUNKRECEIVED']._serialized_end=13305 - _globals['_DATASTREAMTRAILERRECEIVED']._serialized_start=13307 - _globals['_DATASTREAMTRAILERRECEIVED']._serialized_end=13416 - _globals['_SENDSTREAMHEADERREQUEST']._serialized_start=13419 - _globals['_SENDSTREAMHEADERREQUEST']._serialized_end=13611 - _globals['_SENDSTREAMCHUNKREQUEST']._serialized_start=13614 - _globals['_SENDSTREAMCHUNKREQUEST']._serialized_end=13803 - _globals['_SENDSTREAMTRAILERREQUEST']._serialized_start=13806 - _globals['_SENDSTREAMTRAILERREQUEST']._serialized_end=14001 - _globals['_SENDSTREAMHEADERRESPONSE']._serialized_start=14003 - _globals['_SENDSTREAMHEADERRESPONSE']._serialized_end=14047 - _globals['_SENDSTREAMCHUNKRESPONSE']._serialized_start=14049 - _globals['_SENDSTREAMCHUNKRESPONSE']._serialized_end=14092 - _globals['_SENDSTREAMTRAILERRESPONSE']._serialized_start=14094 - _globals['_SENDSTREAMTRAILERRESPONSE']._serialized_end=14139 - _globals['_SENDSTREAMHEADERCALLBACK']._serialized_start=14141 - _globals['_SENDSTREAMHEADERCALLBACK']._serialized_end=14200 - _globals['_SENDSTREAMCHUNKCALLBACK']._serialized_start=14202 - _globals['_SENDSTREAMCHUNKCALLBACK']._serialized_end=14260 - _globals['_SENDSTREAMTRAILERCALLBACK']._serialized_start=14262 - _globals['_SENDSTREAMTRAILERCALLBACK']._serialized_end=14322 - _globals['_SETDATACHANNELBUFFEREDAMOUNTLOWTHRESHOLDREQUEST']._serialized_start=14325 - _globals['_SETDATACHANNELBUFFEREDAMOUNTLOWTHRESHOLDREQUEST']._serialized_end=14472 - _globals['_SETDATACHANNELBUFFEREDAMOUNTLOWTHRESHOLDRESPONSE']._serialized_start=14474 - _globals['_SETDATACHANNELBUFFEREDAMOUNTLOWTHRESHOLDRESPONSE']._serialized_end=14524 - _globals['_DATACHANNELBUFFEREDAMOUNTLOWTHRESHOLDCHANGED']._serialized_start=14526 - _globals['_DATACHANNELBUFFEREDAMOUNTLOWTHRESHOLDCHANGED']._serialized_end=14636 - _globals['_BYTESTREAMOPENED']._serialized_start=14638 - _globals['_BYTESTREAMOPENED']._serialized_end=14740 - _globals['_TEXTSTREAMOPENED']._serialized_start=14742 - _globals['_TEXTSTREAMOPENED']._serialized_end=14844 - _globals['_DATATRACKPUBLISHED']._serialized_start=14846 - _globals['_DATATRACKPUBLISHED']._serialized_end=14918 - _globals['_DATATRACKUNPUBLISHED']._serialized_start=14920 - _globals['_DATATRACKUNPUBLISHED']._serialized_end=14955 + _globals['_TRACKPUBLISHOPTIONS']._serialized_end=5064 + _globals['_ICESERVER']._serialized_start=5066 + _globals['_ICESERVER']._serialized_end=5127 + _globals['_RTCCONFIG']._serialized_start=5130 + _globals['_RTCCONFIG']._serialized_end=5326 + _globals['_ROOMDATASTREAMOPTIONS']._serialized_start=5328 + _globals['_ROOMDATASTREAMOPTIONS']._serialized_end=5426 + _globals['_ROOMOPTIONS']._serialized_start=5429 + _globals['_ROOMOPTIONS']._serialized_end=5790 + _globals['_TRANSCRIPTIONSEGMENT']._serialized_start=5792 + _globals['_TRANSCRIPTIONSEGMENT']._serialized_end=5911 + _globals['_BUFFERINFO']._serialized_start=5913 + _globals['_BUFFERINFO']._serialized_end=5961 + _globals['_OWNEDBUFFER']._serialized_start=5963 + _globals['_OWNEDBUFFER']._serialized_end=6064 + _globals['_ROOMEVENT']._serialized_start=6067 + _globals['_ROOMEVENT']._serialized_end=9089 + _globals['_ROOMINFO']._serialized_start=9092 + _globals['_ROOMINFO']._serialized_end=9421 + _globals['_OWNEDROOM']._serialized_start=9423 + _globals['_OWNEDROOM']._serialized_end=9520 + _globals['_PARTICIPANTSUPDATED']._serialized_start=9522 + _globals['_PARTICIPANTSUPDATED']._serialized_end=9597 + _globals['_PARTICIPANTCONNECTED']._serialized_start=9599 + _globals['_PARTICIPANTCONNECTED']._serialized_end=9668 + _globals['_PARTICIPANTACTIVE']._serialized_start=9670 + _globals['_PARTICIPANTACTIVE']._serialized_end=9719 + _globals['_PARTICIPANTDISCONNECTED']._serialized_start=9721 + _globals['_PARTICIPANTDISCONNECTED']._serialized_end=9836 + _globals['_LOCALTRACKPUBLISHED']._serialized_start=9838 + _globals['_LOCALTRACKPUBLISHED']._serialized_end=9878 + _globals['_LOCALTRACKUNPUBLISHED']._serialized_start=9880 + _globals['_LOCALTRACKUNPUBLISHED']._serialized_end=9928 + _globals['_LOCALTRACKREPUBLISHED']._serialized_start=9930 + _globals['_LOCALTRACKREPUBLISHED']._serialized_end=10054 + _globals['_LOCALTRACKSUBSCRIBED']._serialized_start=10056 + _globals['_LOCALTRACKSUBSCRIBED']._serialized_end=10097 + _globals['_TRACKPUBLISHED']._serialized_start=10099 + _globals['_TRACKPUBLISHED']._serialized_end=10204 + _globals['_TRACKUNPUBLISHED']._serialized_start=10206 + _globals['_TRACKUNPUBLISHED']._serialized_end=10279 + _globals['_TRACKSUBSCRIBED']._serialized_start=10281 + _globals['_TRACKSUBSCRIBED']._serialized_end=10370 + _globals['_TRACKUNSUBSCRIBED']._serialized_start=10372 + _globals['_TRACKUNSUBSCRIBED']._serialized_end=10440 + _globals['_TRACKSUBSCRIPTIONFAILED']._serialized_start=10442 + _globals['_TRACKSUBSCRIPTIONFAILED']._serialized_end=10531 + _globals['_TRACKMUTED']._serialized_start=10533 + _globals['_TRACKMUTED']._serialized_end=10594 + _globals['_TRACKUNMUTED']._serialized_start=10596 + _globals['_TRACKUNMUTED']._serialized_end=10659 + _globals['_E2EESTATECHANGED']._serialized_start=10661 + _globals['_E2EESTATECHANGED']._serialized_end=10756 + _globals['_ACTIVESPEAKERSCHANGED']._serialized_start=10758 + _globals['_ACTIVESPEAKERSCHANGED']._serialized_end=10813 + _globals['_ROOMMETADATACHANGED']._serialized_start=10815 + _globals['_ROOMMETADATACHANGED']._serialized_end=10854 + _globals['_ROOMSIDCHANGED']._serialized_start=10856 + _globals['_ROOMSIDCHANGED']._serialized_end=10885 + _globals['_PARTICIPANTMETADATACHANGED']._serialized_start=10887 + _globals['_PARTICIPANTMETADATACHANGED']._serialized_end=10963 + _globals['_PARTICIPANTATTRIBUTESCHANGED']._serialized_start=10966 + _globals['_PARTICIPANTATTRIBUTESCHANGED']._serialized_end=11138 + _globals['_PARTICIPANTENCRYPTIONSTATUSCHANGED']._serialized_start=11140 + _globals['_PARTICIPANTENCRYPTIONSTATUSCHANGED']._serialized_end=11228 + _globals['_PARTICIPANTNAMECHANGED']._serialized_start=11230 + _globals['_PARTICIPANTNAMECHANGED']._serialized_end=11298 + _globals['_PARTICIPANTPERMISSIONCHANGED']._serialized_start=11300 + _globals['_PARTICIPANTPERMISSIONCHANGED']._serialized_end=11418 + _globals['_CONNECTIONQUALITYCHANGED']._serialized_start=11420 + _globals['_CONNECTIONQUALITYCHANGED']._serialized_end=11527 + _globals['_USERPACKET']._serialized_start=11529 + _globals['_USERPACKET']._serialized_end=11598 + _globals['_CHATMESSAGE']._serialized_start=11600 + _globals['_CHATMESSAGE']._serialized_end=11721 + _globals['_CHATMESSAGERECEIVED']._serialized_start=11723 + _globals['_CHATMESSAGERECEIVED']._serialized_end=11819 + _globals['_SIPDTMF']._serialized_start=11821 + _globals['_SIPDTMF']._serialized_end=11859 + _globals['_DATAPACKETRECEIVED']._serialized_start=11862 + _globals['_DATAPACKETRECEIVED']._serialized_end=12053 + _globals['_TRANSCRIPTIONRECEIVED']._serialized_start=12055 + _globals['_TRANSCRIPTIONRECEIVED']._serialized_end=12182 + _globals['_CONNECTIONSTATECHANGED']._serialized_start=12184 + _globals['_CONNECTIONSTATECHANGED']._serialized_end=12255 + _globals['_CONNECTED']._serialized_start=12257 + _globals['_CONNECTED']._serialized_end=12268 + _globals['_DISCONNECTED']._serialized_start=12270 + _globals['_DISCONNECTED']._serialized_end=12333 + _globals['_RECONNECTING']._serialized_start=12335 + _globals['_RECONNECTING']._serialized_end=12349 + _globals['_RECONNECTED']._serialized_start=12351 + _globals['_RECONNECTED']._serialized_end=12364 + _globals['_TOKENREFRESHED']._serialized_start=12366 + _globals['_TOKENREFRESHED']._serialized_end=12397 + _globals['_ROOMEOS']._serialized_start=12399 + _globals['_ROOMEOS']._serialized_end=12408 + _globals['_DATASTREAM']._serialized_start=12411 + _globals['_DATASTREAM']._serialized_end=13321 + _globals['_DATASTREAM_TEXTHEADER']._serialized_start=12426 + _globals['_DATASTREAM_TEXTHEADER']._serialized_end=12596 + _globals['_DATASTREAM_BYTEHEADER']._serialized_start=12598 + _globals['_DATASTREAM_BYTEHEADER']._serialized_end=12624 + _globals['_DATASTREAM_HEADER']._serialized_start=12627 + _globals['_DATASTREAM_HEADER']._serialized_end=12990 + _globals['_DATASTREAM_HEADER_ATTRIBUTESENTRY']._serialized_start=12923 + _globals['_DATASTREAM_HEADER_ATTRIBUTESENTRY']._serialized_end=12972 + _globals['_DATASTREAM_CHUNK']._serialized_start=12992 + _globals['_DATASTREAM_CHUNK']._serialized_end=13085 + _globals['_DATASTREAM_TRAILER']._serialized_start=13088 + _globals['_DATASTREAM_TRAILER']._serialized_end=13254 + _globals['_DATASTREAM_TRAILER_ATTRIBUTESENTRY']._serialized_start=12923 + _globals['_DATASTREAM_TRAILER_ATTRIBUTESENTRY']._serialized_end=12972 + _globals['_DATASTREAM_OPERATIONTYPE']._serialized_start=13256 + _globals['_DATASTREAM_OPERATIONTYPE']._serialized_end=13321 + _globals['_DATASTREAMHEADERRECEIVED']._serialized_start=13323 + _globals['_DATASTREAMHEADERRECEIVED']._serialized_end=13429 + _globals['_DATASTREAMCHUNKRECEIVED']._serialized_start=13431 + _globals['_DATASTREAMCHUNKRECEIVED']._serialized_end=13534 + _globals['_DATASTREAMTRAILERRECEIVED']._serialized_start=13536 + _globals['_DATASTREAMTRAILERRECEIVED']._serialized_end=13645 + _globals['_SENDSTREAMHEADERREQUEST']._serialized_start=13648 + _globals['_SENDSTREAMHEADERREQUEST']._serialized_end=13840 + _globals['_SENDSTREAMCHUNKREQUEST']._serialized_start=13843 + _globals['_SENDSTREAMCHUNKREQUEST']._serialized_end=14032 + _globals['_SENDSTREAMTRAILERREQUEST']._serialized_start=14035 + _globals['_SENDSTREAMTRAILERREQUEST']._serialized_end=14230 + _globals['_SENDSTREAMHEADERRESPONSE']._serialized_start=14232 + _globals['_SENDSTREAMHEADERRESPONSE']._serialized_end=14276 + _globals['_SENDSTREAMCHUNKRESPONSE']._serialized_start=14278 + _globals['_SENDSTREAMCHUNKRESPONSE']._serialized_end=14321 + _globals['_SENDSTREAMTRAILERRESPONSE']._serialized_start=14323 + _globals['_SENDSTREAMTRAILERRESPONSE']._serialized_end=14368 + _globals['_SENDSTREAMHEADERCALLBACK']._serialized_start=14370 + _globals['_SENDSTREAMHEADERCALLBACK']._serialized_end=14429 + _globals['_SENDSTREAMCHUNKCALLBACK']._serialized_start=14431 + _globals['_SENDSTREAMCHUNKCALLBACK']._serialized_end=14489 + _globals['_SENDSTREAMTRAILERCALLBACK']._serialized_start=14491 + _globals['_SENDSTREAMTRAILERCALLBACK']._serialized_end=14551 + _globals['_SETDATACHANNELBUFFEREDAMOUNTLOWTHRESHOLDREQUEST']._serialized_start=14554 + _globals['_SETDATACHANNELBUFFEREDAMOUNTLOWTHRESHOLDREQUEST']._serialized_end=14701 + _globals['_SETDATACHANNELBUFFEREDAMOUNTLOWTHRESHOLDRESPONSE']._serialized_start=14703 + _globals['_SETDATACHANNELBUFFEREDAMOUNTLOWTHRESHOLDRESPONSE']._serialized_end=14753 + _globals['_DATACHANNELBUFFEREDAMOUNTLOWTHRESHOLDCHANGED']._serialized_start=14755 + _globals['_DATACHANNELBUFFEREDAMOUNTLOWTHRESHOLDCHANGED']._serialized_end=14865 + _globals['_BYTESTREAMOPENED']._serialized_start=14867 + _globals['_BYTESTREAMOPENED']._serialized_end=14969 + _globals['_TEXTSTREAMOPENED']._serialized_start=14971 + _globals['_TEXTSTREAMOPENED']._serialized_end=15073 + _globals['_DATATRACKPUBLISHED']._serialized_start=15075 + _globals['_DATATRACKPUBLISHED']._serialized_end=15147 + _globals['_DATATRACKUNPUBLISHED']._serialized_start=15149 + _globals['_DATATRACKUNPUBLISHED']._serialized_end=15184 # @@protoc_insertion_point(module_scope) diff --git a/livekit-rtc/livekit/rtc/_proto/room_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/room_pb2.pyi index 7dee6795..7c39527a 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 +if sys.version_info >= (3, 11): + from typing import TypeAlias as _TypeAlias, Never as _Never else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias, Never as _Never -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +if sys.version_info >= (3, 13): + from warnings import deprecated as _deprecated +else: + from typing_extensions import deprecated as _deprecated + +DESCRIPTOR: _descriptor.FileDescriptor class _SimulateScenarioKind: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _SimulateScenarioKindEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SimulateScenarioKind.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _SimulateScenarioKindEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_SimulateScenarioKind.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor SIMULATE_SIGNAL_RECONNECT: _SimulateScenarioKind.ValueType # 0 """Closes the signal channel locally; engine attempts a Resume.""" SIMULATE_SPEAKER: _SimulateScenarioKind.ValueType # 1 @@ -58,6 +63,11 @@ class _SimulateScenarioKindEnumTypeWrapper(google.protobuf.internal.enum_type_wr """Asks the server to send `LeaveRequest{Reconnect}`, forcing a full reconnect (new RtcSession; SDK republishes existing local tracks). """ + SIMULATE_DISCONNECT_SIGNAL_ON_RESUME: _SimulateScenarioKind.ValueType # 8 + """Asks the server to drop the signalling connection during the next resume, + then triggers a resume locally. The resume cannot complete, so the engine + escalates to a full reconnect — exercising the resume→full escalation path. + """ class SimulateScenarioKind(_SimulateScenarioKind, metaclass=_SimulateScenarioKindEnumTypeWrapper): """Simulate a reconnection scenario for testing. Mirrors the variants of @@ -78,14 +88,19 @@ SIMULATE_FULL_RECONNECT: SimulateScenarioKind.ValueType # 7 """Asks the server to send `LeaveRequest{Reconnect}`, forcing a full reconnect (new RtcSession; SDK republishes existing local tracks). """ -global___SimulateScenarioKind = SimulateScenarioKind +SIMULATE_DISCONNECT_SIGNAL_ON_RESUME: SimulateScenarioKind.ValueType # 8 +"""Asks the server to drop the signalling connection during the next resume, +then triggers a resume locally. The resume cannot complete, so the engine +escalates to a full reconnect — exercising the resume→full escalation path. +""" +Global___SimulateScenarioKind: _TypeAlias = SimulateScenarioKind # noqa: Y015 class _VideoEncoderBackend: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _VideoEncoderBackendEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoEncoderBackend.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _VideoEncoderBackendEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_VideoEncoderBackend.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor ENCODER_BACKEND_AUTO: _VideoEncoderBackend.ValueType # 0 ENCODER_BACKEND_SOFTWARE: _VideoEncoderBackend.ValueType # 1 ENCODER_BACKEND_HARDWARE: _VideoEncoderBackend.ValueType # 2 @@ -101,14 +116,46 @@ ENCODER_BACKEND_HARDWARE: VideoEncoderBackend.ValueType # 2 ENCODER_BACKEND_NVENC: VideoEncoderBackend.ValueType # 3 ENCODER_BACKEND_VAAPI: VideoEncoderBackend.ValueType # 4 ENCODER_BACKEND_VIDEOTOOLBOX: VideoEncoderBackend.ValueType # 5 -global___VideoEncoderBackend = VideoEncoderBackend +Global___VideoEncoderBackend: _TypeAlias = VideoEncoderBackend # noqa: Y015 + +class _DegradationPreference: + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 + +class _DegradationPreferenceEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_DegradationPreference.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor + DEGRADATION_PREFERENCE_BALANCED: _DegradationPreference.ValueType # 0 + """Balance between framerate and resolution degradation.""" + DEGRADATION_PREFERENCE_MAINTAIN_FRAMERATE: _DegradationPreference.ValueType # 1 + """Degrade framerate to maintain resolution.""" + DEGRADATION_PREFERENCE_MAINTAIN_RESOLUTION: _DegradationPreference.ValueType # 2 + """Degrade resolution to maintain framerate (drop frames to keep clarity).""" + DEGRADATION_PREFERENCE_MAINTAIN_FRAMERATE_AND_RESOLUTION: _DegradationPreference.ValueType # 4 + """Maintain both framerate and resolution. Frames may be dropped before encoding + if necessary to avoid overusing network and encoder resources. + """ + +class DegradationPreference(_DegradationPreference, metaclass=_DegradationPreferenceEnumTypeWrapper): + """Controls how the encoder degrades quality when bandwidth is constrained.""" + +DEGRADATION_PREFERENCE_BALANCED: DegradationPreference.ValueType # 0 +"""Balance between framerate and resolution degradation.""" +DEGRADATION_PREFERENCE_MAINTAIN_FRAMERATE: DegradationPreference.ValueType # 1 +"""Degrade framerate to maintain resolution.""" +DEGRADATION_PREFERENCE_MAINTAIN_RESOLUTION: DegradationPreference.ValueType # 2 +"""Degrade resolution to maintain framerate (drop frames to keep clarity).""" +DEGRADATION_PREFERENCE_MAINTAIN_FRAMERATE_AND_RESOLUTION: DegradationPreference.ValueType # 4 +"""Maintain both framerate and resolution. Frames may be dropped before encoding +if necessary to avoid overusing network and encoder resources. +""" +Global___DegradationPreference: _TypeAlias = DegradationPreference # noqa: Y015 class _IceTransportType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _IceTransportTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IceTransportType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _IceTransportTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_IceTransportType.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor TRANSPORT_RELAY: _IceTransportType.ValueType # 0 TRANSPORT_NOHOST: _IceTransportType.ValueType # 1 TRANSPORT_ALL: _IceTransportType.ValueType # 2 @@ -118,14 +165,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 @@ -133,14 +180,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 @@ -155,14 +202,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 @@ -172,14 +219,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 @@ -187,66 +234,72 @@ class DataPacketKind(_DataPacketKind, metaclass=_DataPacketKindEnumTypeWrapper): KIND_LOSSY: DataPacketKind.ValueType # 0 KIND_RELIABLE: DataPacketKind.ValueType # 1 -global___DataPacketKind = DataPacketKind +Global___DataPacketKind: _TypeAlias = DataPacketKind # noqa: Y015 -@typing.final -class ConnectRequest(google.protobuf.message.Message): +@_typing.final +class ConnectRequest(_message.Message): """Connect to a new LiveKit room""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - URL_FIELD_NUMBER: builtins.int - TOKEN_FIELD_NUMBER: builtins.int - OPTIONS_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - url: builtins.str - token: builtins.str - request_async_id: builtins.int - @property - def options(self) -> global___RoomOptions: ... + URL_FIELD_NUMBER: _builtins.int + TOKEN_FIELD_NUMBER: _builtins.int + OPTIONS_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + url: _builtins.str + token: _builtins.str + request_async_id: _builtins.int + @_builtins.property + def options(self) -> Global___RoomOptions: ... def __init__( self, *, - url: builtins.str | None = ..., - token: builtins.str | None = ..., - options: global___RoomOptions | None = ..., - request_async_id: builtins.int | None = ..., + url: _builtins.str | None = ..., + token: _builtins.str | None = ..., + options: Global___RoomOptions | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["options", b"options", "request_async_id", b"request_async_id", "token", b"token", "url", b"url"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["options", b"options", "request_async_id", b"request_async_id", "token", b"token", "url", b"url"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["options", b"options", "request_async_id", b"request_async_id", "token", b"token", "url", b"url"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["options", b"options", "request_async_id", b"request_async_id", "token", b"token", "url", b"url"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ConnectRequest = ConnectRequest +Global___ConnectRequest: _TypeAlias = ConnectRequest # noqa: Y015 -@typing.final -class ConnectResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ConnectResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ConnectResponse = ConnectResponse +Global___ConnectResponse: _TypeAlias = ConnectResponse # noqa: Y015 -@typing.final -class ConnectCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ConnectCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - @typing.final - class ParticipantWithTracks(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class ParticipantWithTracks(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_FIELD_NUMBER: builtins.int - PUBLICATIONS_FIELD_NUMBER: builtins.int - @property - def participant(self) -> participant_pb2.OwnedParticipant: ... - @property - def publications(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[track_pb2.OwnedTrackPublication]: + PARTICIPANT_FIELD_NUMBER: _builtins.int + PUBLICATIONS_FIELD_NUMBER: _builtins.int + @_builtins.property + def participant(self) -> _participant_pb2.OwnedParticipant: ... + @_builtins.property + def publications(self) -> _containers.RepeatedCompositeFieldContainer[_track_pb2.OwnedTrackPublication]: """TrackInfo are not needed here, if we're subscribed to a track, the FfiServer will send a TrackSubscribed event """ @@ -254,1585 +307,1838 @@ class ConnectCallback(google.protobuf.message.Message): def __init__( self, *, - participant: participant_pb2.OwnedParticipant | None = ..., - publications: collections.abc.Iterable[track_pb2.OwnedTrackPublication] | None = ..., + participant: _participant_pb2.OwnedParticipant | None = ..., + publications: _abc.Iterable[_track_pb2.OwnedTrackPublication] | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["participant", b"participant"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["participant", b"participant", "publications", b"publications"]) -> None: ... - - @typing.final - class Result(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ROOM_FIELD_NUMBER: builtins.int - LOCAL_PARTICIPANT_FIELD_NUMBER: builtins.int - PARTICIPANTS_FIELD_NUMBER: builtins.int - @property - def room(self) -> global___OwnedRoom: ... - @property - def local_participant(self) -> participant_pb2.OwnedParticipant: ... - @property - def participants(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConnectCallback.ParticipantWithTracks]: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["participant", b"participant"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participant", b"participant", "publications", b"publications"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class Result(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ROOM_FIELD_NUMBER: _builtins.int + LOCAL_PARTICIPANT_FIELD_NUMBER: _builtins.int + PARTICIPANTS_FIELD_NUMBER: _builtins.int + @_builtins.property + def room(self) -> Global___OwnedRoom: ... + @_builtins.property + def local_participant(self) -> _participant_pb2.OwnedParticipant: ... + @_builtins.property + def participants(self) -> _containers.RepeatedCompositeFieldContainer[Global___ConnectCallback.ParticipantWithTracks]: ... def __init__( self, *, - room: global___OwnedRoom | None = ..., - local_participant: participant_pb2.OwnedParticipant | None = ..., - participants: collections.abc.Iterable[global___ConnectCallback.ParticipantWithTracks] | None = ..., + room: Global___OwnedRoom | None = ..., + local_participant: _participant_pb2.OwnedParticipant | None = ..., + participants: _abc.Iterable[Global___ConnectCallback.ParticipantWithTracks] | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["local_participant", b"local_participant", "room", b"room"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["local_participant", b"local_participant", "participants", b"participants", "room", b"room"]) -> None: ... - - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - RESULT_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str - @property - def result(self) -> global___ConnectCallback.Result: ... - def __init__( - self, - *, - async_id: builtins.int | None = ..., - error: builtins.str | None = ..., - result: global___ConnectCallback.Result | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "result", b"result"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "result", b"result"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["error", "result"] | None: ... - -global___ConnectCallback = ConnectCallback - -@typing.final -class DisconnectRequest(google.protobuf.message.Message): + _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant", b"local_participant", "room", b"room"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant", b"local_participant", "participants", b"participants", "room", b"room"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + RESULT_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str + @_builtins.property + def result(self) -> Global___ConnectCallback.Result: ... + def __init__( + self, + *, + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., + result: Global___ConnectCallback.Result | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "result", b"result"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "result", b"result"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["error", "result"] # noqa: Y015 + _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... + +Global___ConnectCallback: _TypeAlias = ConnectCallback # noqa: Y015 + +@_typing.final +class DisconnectRequest(_message.Message): """Disconnect from the a room""" - DESCRIPTOR: 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: ... + def WhichOneof(self, oneof_group: _Never) -> 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: ... + def WhichOneof(self, oneof_group: _Never) -> 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: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DisconnectCallback = DisconnectCallback +Global___DisconnectCallback: _TypeAlias = DisconnectCallback # noqa: Y015 -@typing.final -class SimulateScenarioRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SimulateScenarioRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ROOM_HANDLE_FIELD_NUMBER: builtins.int - SCENARIO_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - room_handle: builtins.int - scenario: global___SimulateScenarioKind.ValueType - request_async_id: builtins.int + ROOM_HANDLE_FIELD_NUMBER: _builtins.int + SCENARIO_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + room_handle: _builtins.int + scenario: Global___SimulateScenarioKind.ValueType + request_async_id: _builtins.int def __init__( self, *, - room_handle: builtins.int | None = ..., - scenario: global___SimulateScenarioKind.ValueType | None = ..., - request_async_id: builtins.int | None = ..., + room_handle: _builtins.int | None = ..., + scenario: Global___SimulateScenarioKind.ValueType | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["request_async_id", b"request_async_id", "room_handle", b"room_handle", "scenario", b"scenario"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["request_async_id", b"request_async_id", "room_handle", b"room_handle", "scenario", b"scenario"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["request_async_id", b"request_async_id", "room_handle", b"room_handle", "scenario", b"scenario"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["request_async_id", b"request_async_id", "room_handle", b"room_handle", "scenario", b"scenario"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SimulateScenarioRequest = SimulateScenarioRequest +Global___SimulateScenarioRequest: _TypeAlias = SimulateScenarioRequest # noqa: Y015 -@typing.final -class SimulateScenarioResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SimulateScenarioResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SimulateScenarioResponse = SimulateScenarioResponse +Global___SimulateScenarioResponse: _TypeAlias = SimulateScenarioResponse # noqa: Y015 -@typing.final -class SimulateScenarioCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SimulateScenarioCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str def __init__( self, *, - async_id: builtins.int | None = ..., - error: builtins.str | None = ..., + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SimulateScenarioCallback = SimulateScenarioCallback +Global___SimulateScenarioCallback: _TypeAlias = SimulateScenarioCallback # noqa: Y015 -@typing.final -class PublishTrackRequest(google.protobuf.message.Message): +@_typing.final +class PublishTrackRequest(_message.Message): """Publish a track to the room""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - TRACK_HANDLE_FIELD_NUMBER: builtins.int - OPTIONS_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - track_handle: builtins.int - request_async_id: builtins.int - @property - def options(self) -> global___TrackPublishOptions: ... + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + TRACK_HANDLE_FIELD_NUMBER: _builtins.int + OPTIONS_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + track_handle: _builtins.int + request_async_id: _builtins.int + @_builtins.property + def options(self) -> Global___TrackPublishOptions: ... def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - track_handle: builtins.int | None = ..., - options: global___TrackPublishOptions | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + track_handle: _builtins.int | None = ..., + options: Global___TrackPublishOptions | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id", "track_handle", b"track_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id", "track_handle", b"track_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id", "track_handle", b"track_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "request_async_id", b"request_async_id", "track_handle", b"track_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___PublishTrackRequest = PublishTrackRequest +Global___PublishTrackRequest: _TypeAlias = PublishTrackRequest # noqa: Y015 -@typing.final -class PublishTrackResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class PublishTrackResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___PublishTrackResponse = PublishTrackResponse +Global___PublishTrackResponse: _TypeAlias = PublishTrackResponse # noqa: Y015 -@typing.final -class PublishTrackCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class PublishTrackCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - PUBLICATION_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str - @property - def publication(self) -> track_pb2.OwnedTrackPublication: ... + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + PUBLICATION_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str + @_builtins.property + def publication(self) -> _track_pb2.OwnedTrackPublication: ... def __init__( self, *, - async_id: builtins.int | None = ..., - error: builtins.str | None = ..., - publication: track_pb2.OwnedTrackPublication | None = ..., + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., + publication: _track_pb2.OwnedTrackPublication | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "publication", b"publication"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "publication", b"publication"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["error", "publication"] | None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "publication", b"publication"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "publication", b"publication"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["error", "publication"] # noqa: Y015 + _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... -global___PublishTrackCallback = PublishTrackCallback +Global___PublishTrackCallback: _TypeAlias = PublishTrackCallback # noqa: Y015 -@typing.final -class ReadyForRoomEventRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ReadyForRoomEventRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ROOM_HANDLE_FIELD_NUMBER: builtins.int - room_handle: builtins.int + ROOM_HANDLE_FIELD_NUMBER: _builtins.int + room_handle: _builtins.int def __init__( self, *, - room_handle: builtins.int | None = ..., + room_handle: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["room_handle", b"room_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["room_handle", b"room_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["room_handle", b"room_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["room_handle", b"room_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ReadyForRoomEventRequest = ReadyForRoomEventRequest +Global___ReadyForRoomEventRequest: _TypeAlias = ReadyForRoomEventRequest # noqa: Y015 -@typing.final -class ReadyForRoomEventResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ReadyForRoomEventResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ReadyForRoomEventResponse = ReadyForRoomEventResponse +Global___ReadyForRoomEventResponse: _TypeAlias = ReadyForRoomEventResponse # noqa: Y015 -@typing.final -class UnpublishTrackRequest(google.protobuf.message.Message): +@_typing.final +class UnpublishTrackRequest(_message.Message): """Unpublish a track from the room""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - TRACK_SID_FIELD_NUMBER: builtins.int - STOP_ON_UNPUBLISH_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - track_sid: builtins.str - stop_on_unpublish: builtins.bool - request_async_id: builtins.int + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + TRACK_SID_FIELD_NUMBER: _builtins.int + STOP_ON_UNPUBLISH_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + track_sid: _builtins.str + stop_on_unpublish: _builtins.bool + request_async_id: _builtins.int def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - track_sid: builtins.str | None = ..., - stop_on_unpublish: builtins.bool | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + track_sid: _builtins.str | None = ..., + stop_on_unpublish: _builtins.bool | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "stop_on_unpublish", b"stop_on_unpublish", "track_sid", b"track_sid"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "stop_on_unpublish", b"stop_on_unpublish", "track_sid", b"track_sid"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "stop_on_unpublish", b"stop_on_unpublish", "track_sid", b"track_sid"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "stop_on_unpublish", b"stop_on_unpublish", "track_sid", b"track_sid"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___UnpublishTrackRequest = UnpublishTrackRequest +Global___UnpublishTrackRequest: _TypeAlias = UnpublishTrackRequest # noqa: Y015 -@typing.final -class UnpublishTrackResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class UnpublishTrackResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___UnpublishTrackResponse = UnpublishTrackResponse +Global___UnpublishTrackResponse: _TypeAlias = UnpublishTrackResponse # noqa: Y015 -@typing.final -class UnpublishTrackCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class UnpublishTrackCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str def __init__( self, *, - async_id: builtins.int | None = ..., - error: builtins.str | None = ..., + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___UnpublishTrackCallback = UnpublishTrackCallback +Global___UnpublishTrackCallback: _TypeAlias = UnpublishTrackCallback # noqa: Y015 -@typing.final -class PublishDataRequest(google.protobuf.message.Message): +@_typing.final +class PublishDataRequest(_message.Message): """Publish data to other participants""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - DATA_PTR_FIELD_NUMBER: builtins.int - DATA_LEN_FIELD_NUMBER: builtins.int - RELIABLE_FIELD_NUMBER: builtins.int - DESTINATION_SIDS_FIELD_NUMBER: builtins.int - TOPIC_FIELD_NUMBER: builtins.int - DESTINATION_IDENTITIES_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - data_ptr: builtins.int - data_len: builtins.int - reliable: builtins.bool - topic: builtins.str - request_async_id: builtins.int - @property - def destination_sids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... - @property - def destination_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + DATA_PTR_FIELD_NUMBER: _builtins.int + DATA_LEN_FIELD_NUMBER: _builtins.int + RELIABLE_FIELD_NUMBER: _builtins.int + DESTINATION_SIDS_FIELD_NUMBER: _builtins.int + TOPIC_FIELD_NUMBER: _builtins.int + DESTINATION_IDENTITIES_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + data_ptr: _builtins.int + data_len: _builtins.int + reliable: _builtins.bool + topic: _builtins.str + request_async_id: _builtins.int + @_builtins.property + @_deprecated("""This field has been marked as deprecated using proto field options.""") + def destination_sids(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... + @_builtins.property + def destination_identities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - data_ptr: builtins.int | None = ..., - data_len: builtins.int | None = ..., - reliable: builtins.bool | None = ..., - destination_sids: collections.abc.Iterable[builtins.str] | None = ..., - topic: builtins.str | None = ..., - destination_identities: collections.abc.Iterable[builtins.str] | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + data_ptr: _builtins.int | None = ..., + data_len: _builtins.int | None = ..., + reliable: _builtins.bool | None = ..., + destination_sids: _abc.Iterable[_builtins.str] | None = ..., + topic: _builtins.str | None = ..., + destination_identities: _abc.Iterable[_builtins.str] | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["data_len", b"data_len", "data_ptr", b"data_ptr", "local_participant_handle", b"local_participant_handle", "reliable", b"reliable", "request_async_id", b"request_async_id", "topic", b"topic"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["data_len", b"data_len", "data_ptr", b"data_ptr", "destination_identities", b"destination_identities", "destination_sids", b"destination_sids", "local_participant_handle", b"local_participant_handle", "reliable", b"reliable", "request_async_id", b"request_async_id", "topic", b"topic"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["data_len", b"data_len", "data_ptr", b"data_ptr", "local_participant_handle", b"local_participant_handle", "reliable", b"reliable", "request_async_id", b"request_async_id", "topic", b"topic"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["data_len", b"data_len", "data_ptr", b"data_ptr", "destination_identities", b"destination_identities", "destination_sids", b"destination_sids", "local_participant_handle", b"local_participant_handle", "reliable", b"reliable", "request_async_id", b"request_async_id", "topic", b"topic"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___PublishDataRequest = PublishDataRequest +Global___PublishDataRequest: _TypeAlias = PublishDataRequest # noqa: Y015 -@typing.final -class PublishDataResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class PublishDataResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___PublishDataResponse = PublishDataResponse +Global___PublishDataResponse: _TypeAlias = PublishDataResponse # noqa: Y015 -@typing.final -class PublishDataCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class PublishDataCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str def __init__( self, *, - async_id: builtins.int | None = ..., - error: builtins.str | None = ..., + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___PublishDataCallback = PublishDataCallback +Global___PublishDataCallback: _TypeAlias = PublishDataCallback # noqa: Y015 -@typing.final -class PublishTranscriptionRequest(google.protobuf.message.Message): +@_typing.final +class PublishTranscriptionRequest(_message.Message): """Publish transcription messages to room""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - TRACK_ID_FIELD_NUMBER: builtins.int - SEGMENTS_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - participant_identity: builtins.str - track_id: builtins.str - request_async_id: builtins.int - @property - def segments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___TranscriptionSegment]: ... + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + TRACK_ID_FIELD_NUMBER: _builtins.int + SEGMENTS_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + participant_identity: _builtins.str + track_id: _builtins.str + request_async_id: _builtins.int + @_builtins.property + def segments(self) -> _containers.RepeatedCompositeFieldContainer[Global___TranscriptionSegment]: ... def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - participant_identity: builtins.str | None = ..., - track_id: builtins.str | None = ..., - segments: collections.abc.Iterable[global___TranscriptionSegment] | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + participant_identity: _builtins.str | None = ..., + track_id: _builtins.str | None = ..., + segments: _abc.Iterable[Global___TranscriptionSegment] | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "participant_identity", b"participant_identity", "request_async_id", b"request_async_id", "track_id", b"track_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "participant_identity", b"participant_identity", "request_async_id", b"request_async_id", "segments", b"segments", "track_id", b"track_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "participant_identity", b"participant_identity", "request_async_id", b"request_async_id", "track_id", b"track_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "participant_identity", b"participant_identity", "request_async_id", b"request_async_id", "segments", b"segments", "track_id", b"track_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___PublishTranscriptionRequest = PublishTranscriptionRequest +Global___PublishTranscriptionRequest: _TypeAlias = PublishTranscriptionRequest # noqa: Y015 -@typing.final -class PublishTranscriptionResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class PublishTranscriptionResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___PublishTranscriptionResponse = PublishTranscriptionResponse +Global___PublishTranscriptionResponse: _TypeAlias = PublishTranscriptionResponse # noqa: Y015 -@typing.final -class PublishTranscriptionCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class PublishTranscriptionCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str def __init__( self, *, - async_id: builtins.int | None = ..., - error: builtins.str | None = ..., + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___PublishTranscriptionCallback = PublishTranscriptionCallback +Global___PublishTranscriptionCallback: _TypeAlias = PublishTranscriptionCallback # noqa: Y015 -@typing.final -class PublishSipDtmfRequest(google.protobuf.message.Message): +@_typing.final +class PublishSipDtmfRequest(_message.Message): """Publish Sip DTMF messages to other participants""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - CODE_FIELD_NUMBER: builtins.int - DIGIT_FIELD_NUMBER: builtins.int - DESTINATION_IDENTITIES_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - code: builtins.int - digit: builtins.str - request_async_id: builtins.int - @property - def destination_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + CODE_FIELD_NUMBER: _builtins.int + DIGIT_FIELD_NUMBER: _builtins.int + DESTINATION_IDENTITIES_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + code: _builtins.int + digit: _builtins.str + request_async_id: _builtins.int + @_builtins.property + def destination_identities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - code: builtins.int | None = ..., - digit: builtins.str | None = ..., - destination_identities: collections.abc.Iterable[builtins.str] | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + code: _builtins.int | None = ..., + digit: _builtins.str | None = ..., + destination_identities: _abc.Iterable[_builtins.str] | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["code", b"code", "digit", b"digit", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["code", b"code", "destination_identities", b"destination_identities", "digit", b"digit", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "digit", b"digit", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "destination_identities", b"destination_identities", "digit", b"digit", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___PublishSipDtmfRequest = PublishSipDtmfRequest +Global___PublishSipDtmfRequest: _TypeAlias = PublishSipDtmfRequest # noqa: Y015 -@typing.final -class PublishSipDtmfResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class PublishSipDtmfResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___PublishSipDtmfResponse = PublishSipDtmfResponse +Global___PublishSipDtmfResponse: _TypeAlias = PublishSipDtmfResponse # noqa: Y015 -@typing.final -class PublishSipDtmfCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class PublishSipDtmfCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str def __init__( self, *, - async_id: builtins.int | None = ..., - error: builtins.str | None = ..., + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___PublishSipDtmfCallback = PublishSipDtmfCallback +Global___PublishSipDtmfCallback: _TypeAlias = PublishSipDtmfCallback # noqa: Y015 -@typing.final -class SetLocalMetadataRequest(google.protobuf.message.Message): +@_typing.final +class SetLocalMetadataRequest(_message.Message): """Change the local participant's metadata""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - metadata: builtins.str - request_async_id: builtins.int + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + METADATA_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + metadata: _builtins.str + request_async_id: _builtins.int def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - metadata: builtins.str | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + metadata: _builtins.str | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "metadata", b"metadata", "request_async_id", b"request_async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "metadata", b"metadata", "request_async_id", b"request_async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "metadata", b"metadata", "request_async_id", b"request_async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "metadata", b"metadata", "request_async_id", b"request_async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetLocalMetadataRequest = SetLocalMetadataRequest +Global___SetLocalMetadataRequest: _TypeAlias = SetLocalMetadataRequest # noqa: Y015 -@typing.final -class SetLocalMetadataResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SetLocalMetadataResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetLocalMetadataResponse = SetLocalMetadataResponse +Global___SetLocalMetadataResponse: _TypeAlias = SetLocalMetadataResponse # noqa: Y015 -@typing.final -class SetLocalMetadataCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SetLocalMetadataCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str def __init__( self, *, - async_id: builtins.int | None = ..., - error: builtins.str | None = ..., + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetLocalMetadataCallback = SetLocalMetadataCallback +Global___SetLocalMetadataCallback: _TypeAlias = SetLocalMetadataCallback # noqa: Y015 -@typing.final -class SendChatMessageRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SendChatMessageRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - MESSAGE_FIELD_NUMBER: builtins.int - DESTINATION_IDENTITIES_FIELD_NUMBER: builtins.int - SENDER_IDENTITY_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - message: builtins.str - sender_identity: builtins.str - request_async_id: builtins.int - @property - def destination_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + MESSAGE_FIELD_NUMBER: _builtins.int + DESTINATION_IDENTITIES_FIELD_NUMBER: _builtins.int + SENDER_IDENTITY_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + message: _builtins.str + sender_identity: _builtins.str + request_async_id: _builtins.int + @_builtins.property + def destination_identities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - message: builtins.str | None = ..., - destination_identities: collections.abc.Iterable[builtins.str] | None = ..., - sender_identity: builtins.str | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + message: _builtins.str | None = ..., + destination_identities: _abc.Iterable[_builtins.str] | None = ..., + sender_identity: _builtins.str | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "message", b"message", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["destination_identities", b"destination_identities", "local_participant_handle", b"local_participant_handle", "message", b"message", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "message", b"message", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["destination_identities", b"destination_identities", "local_participant_handle", b"local_participant_handle", "message", b"message", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SendChatMessageRequest = SendChatMessageRequest +Global___SendChatMessageRequest: _TypeAlias = SendChatMessageRequest # noqa: Y015 -@typing.final -class EditChatMessageRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class EditChatMessageRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - EDIT_TEXT_FIELD_NUMBER: builtins.int - ORIGINAL_MESSAGE_FIELD_NUMBER: builtins.int - DESTINATION_IDENTITIES_FIELD_NUMBER: builtins.int - SENDER_IDENTITY_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - edit_text: builtins.str - sender_identity: builtins.str - request_async_id: builtins.int - @property - def original_message(self) -> global___ChatMessage: ... - @property - def destination_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + EDIT_TEXT_FIELD_NUMBER: _builtins.int + ORIGINAL_MESSAGE_FIELD_NUMBER: _builtins.int + DESTINATION_IDENTITIES_FIELD_NUMBER: _builtins.int + SENDER_IDENTITY_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + edit_text: _builtins.str + sender_identity: _builtins.str + request_async_id: _builtins.int + @_builtins.property + def original_message(self) -> Global___ChatMessage: ... + @_builtins.property + def destination_identities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - edit_text: builtins.str | None = ..., - original_message: global___ChatMessage | None = ..., - destination_identities: collections.abc.Iterable[builtins.str] | None = ..., - sender_identity: builtins.str | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + edit_text: _builtins.str | None = ..., + original_message: Global___ChatMessage | None = ..., + destination_identities: _abc.Iterable[_builtins.str] | None = ..., + sender_identity: _builtins.str | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["edit_text", b"edit_text", "local_participant_handle", b"local_participant_handle", "original_message", b"original_message", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["destination_identities", b"destination_identities", "edit_text", b"edit_text", "local_participant_handle", b"local_participant_handle", "original_message", b"original_message", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["edit_text", b"edit_text", "local_participant_handle", b"local_participant_handle", "original_message", b"original_message", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["destination_identities", b"destination_identities", "edit_text", b"edit_text", "local_participant_handle", b"local_participant_handle", "original_message", b"original_message", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___EditChatMessageRequest = EditChatMessageRequest +Global___EditChatMessageRequest: _TypeAlias = EditChatMessageRequest # noqa: Y015 -@typing.final -class SendChatMessageResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SendChatMessageResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SendChatMessageResponse = SendChatMessageResponse +Global___SendChatMessageResponse: _TypeAlias = SendChatMessageResponse # noqa: Y015 -@typing.final -class SendChatMessageCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SendChatMessageCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - CHAT_MESSAGE_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str - @property - def chat_message(self) -> global___ChatMessage: ... + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + CHAT_MESSAGE_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str + @_builtins.property + def chat_message(self) -> Global___ChatMessage: ... def __init__( self, - *, - async_id: builtins.int | None = ..., - error: builtins.str | None = ..., - chat_message: global___ChatMessage | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "chat_message", b"chat_message", "error", b"error", "message", b"message"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "chat_message", b"chat_message", "error", b"error", "message", b"message"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["error", "chat_message"] | None: ... + *, + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., + chat_message: Global___ChatMessage | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "chat_message", b"chat_message", "error", b"error", "message", b"message"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "chat_message", b"chat_message", "error", b"error", "message", b"message"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["error", "chat_message"] # noqa: Y015 + _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... -global___SendChatMessageCallback = SendChatMessageCallback +Global___SendChatMessageCallback: _TypeAlias = SendChatMessageCallback # noqa: Y015 -@typing.final -class SetLocalAttributesRequest(google.protobuf.message.Message): +@_typing.final +class SetLocalAttributesRequest(_message.Message): """Change the local participant's attributes""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - ATTRIBUTES_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - request_async_id: builtins.int - @property - def attributes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AttributesEntry]: ... + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + ATTRIBUTES_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + request_async_id: _builtins.int + @_builtins.property + def attributes(self) -> _containers.RepeatedCompositeFieldContainer[Global___AttributesEntry]: ... def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - attributes: collections.abc.Iterable[global___AttributesEntry] | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + attributes: _abc.Iterable[Global___AttributesEntry] | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["attributes", b"attributes", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["attributes", b"attributes", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetLocalAttributesRequest = SetLocalAttributesRequest +Global___SetLocalAttributesRequest: _TypeAlias = SetLocalAttributesRequest # noqa: Y015 -@typing.final -class AttributesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class AttributesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str | None = ..., - value: builtins.str | None = ..., + key: _builtins.str | None = ..., + value: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___AttributesEntry = AttributesEntry +Global___AttributesEntry: _TypeAlias = AttributesEntry # noqa: Y015 -@typing.final -class SetLocalAttributesResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SetLocalAttributesResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetLocalAttributesResponse = SetLocalAttributesResponse +Global___SetLocalAttributesResponse: _TypeAlias = SetLocalAttributesResponse # noqa: Y015 -@typing.final -class SetLocalAttributesCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SetLocalAttributesCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str def __init__( self, *, - async_id: builtins.int | None = ..., - error: builtins.str | None = ..., + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetLocalAttributesCallback = SetLocalAttributesCallback +Global___SetLocalAttributesCallback: _TypeAlias = SetLocalAttributesCallback # noqa: Y015 -@typing.final -class SetLocalNameRequest(google.protobuf.message.Message): +@_typing.final +class SetLocalNameRequest(_message.Message): """Change the local participant's name""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - name: builtins.str - request_async_id: builtins.int + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + NAME_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + name: _builtins.str + request_async_id: _builtins.int def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - name: builtins.str | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + name: _builtins.str | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "name", b"name", "request_async_id", b"request_async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "name", b"name", "request_async_id", b"request_async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "name", b"name", "request_async_id", b"request_async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "name", b"name", "request_async_id", b"request_async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetLocalNameRequest = SetLocalNameRequest +Global___SetLocalNameRequest: _TypeAlias = SetLocalNameRequest # noqa: Y015 -@typing.final -class SetLocalNameResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SetLocalNameResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetLocalNameResponse = SetLocalNameResponse +Global___SetLocalNameResponse: _TypeAlias = SetLocalNameResponse # noqa: Y015 -@typing.final -class SetLocalNameCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SetLocalNameCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str def __init__( self, *, - async_id: builtins.int | None = ..., - error: builtins.str | None = ..., + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetLocalNameCallback = SetLocalNameCallback +Global___SetLocalNameCallback: _TypeAlias = SetLocalNameCallback # noqa: Y015 -@typing.final -class SetSubscribedRequest(google.protobuf.message.Message): +@_typing.final +class SetSubscribedRequest(_message.Message): """Change the "desire" to subs2ribe to a track""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - SUBSCRIBE_FIELD_NUMBER: builtins.int - PUBLICATION_HANDLE_FIELD_NUMBER: builtins.int - subscribe: builtins.bool - publication_handle: builtins.int + SUBSCRIBE_FIELD_NUMBER: _builtins.int + PUBLICATION_HANDLE_FIELD_NUMBER: _builtins.int + subscribe: _builtins.bool + publication_handle: _builtins.int def __init__( self, *, - subscribe: builtins.bool | None = ..., - publication_handle: builtins.int | None = ..., + subscribe: _builtins.bool | None = ..., + publication_handle: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["publication_handle", b"publication_handle", "subscribe", b"subscribe"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["publication_handle", b"publication_handle", "subscribe", b"subscribe"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["publication_handle", b"publication_handle", "subscribe", b"subscribe"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["publication_handle", b"publication_handle", "subscribe", b"subscribe"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetSubscribedRequest = SetSubscribedRequest +Global___SetSubscribedRequest: _TypeAlias = SetSubscribedRequest # noqa: Y015 -@typing.final -class SetSubscribedResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SetSubscribedResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetSubscribedResponse = SetSubscribedResponse +Global___SetSubscribedResponse: _TypeAlias = SetSubscribedResponse # noqa: Y015 -@typing.final -class GetSessionStatsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetSessionStatsRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ROOM_HANDLE_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - room_handle: builtins.int - request_async_id: builtins.int + ROOM_HANDLE_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + room_handle: _builtins.int + request_async_id: _builtins.int def __init__( self, *, - room_handle: builtins.int | None = ..., - request_async_id: builtins.int | None = ..., + room_handle: _builtins.int | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["request_async_id", b"request_async_id", "room_handle", b"room_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["request_async_id", b"request_async_id", "room_handle", b"room_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["request_async_id", b"request_async_id", "room_handle", b"room_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["request_async_id", b"request_async_id", "room_handle", b"room_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___GetSessionStatsRequest = GetSessionStatsRequest +Global___GetSessionStatsRequest: _TypeAlias = GetSessionStatsRequest # noqa: Y015 -@typing.final -class GetSessionStatsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetSessionStatsResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___GetSessionStatsResponse = GetSessionStatsResponse +Global___GetSessionStatsResponse: _TypeAlias = GetSessionStatsResponse # noqa: Y015 -@typing.final -class GetSessionStatsCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetSessionStatsCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - @typing.final - class Result(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class Result(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PUBLISHER_STATS_FIELD_NUMBER: builtins.int - SUBSCRIBER_STATS_FIELD_NUMBER: builtins.int - @property - def publisher_stats(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[stats_pb2.RtcStats]: ... - @property - def subscriber_stats(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[stats_pb2.RtcStats]: ... + PUBLISHER_STATS_FIELD_NUMBER: _builtins.int + SUBSCRIBER_STATS_FIELD_NUMBER: _builtins.int + @_builtins.property + def publisher_stats(self) -> _containers.RepeatedCompositeFieldContainer[_stats_pb2.RtcStats]: ... + @_builtins.property + def subscriber_stats(self) -> _containers.RepeatedCompositeFieldContainer[_stats_pb2.RtcStats]: ... def __init__( self, *, - publisher_stats: collections.abc.Iterable[stats_pb2.RtcStats] | None = ..., - subscriber_stats: collections.abc.Iterable[stats_pb2.RtcStats] | None = ..., + publisher_stats: _abc.Iterable[_stats_pb2.RtcStats] | None = ..., + subscriber_stats: _abc.Iterable[_stats_pb2.RtcStats] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing.Literal["publisher_stats", b"publisher_stats", "subscriber_stats", b"subscriber_stats"]) -> None: ... - - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - RESULT_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str - @property - def result(self) -> global___GetSessionStatsCallback.Result: ... - def __init__( - self, - *, - async_id: builtins.int | None = ..., - error: builtins.str | None = ..., - result: global___GetSessionStatsCallback.Result | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "result", b"result"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "result", b"result"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["error", "result"] | None: ... - -global___GetSessionStatsCallback = GetSessionStatsCallback - -@typing.final -class VideoEncoding(google.protobuf.message.Message): + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["publisher_stats", b"publisher_stats", "subscriber_stats", b"subscriber_stats"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + RESULT_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str + @_builtins.property + def result(self) -> Global___GetSessionStatsCallback.Result: ... + def __init__( + self, + *, + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., + result: Global___GetSessionStatsCallback.Result | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "result", b"result"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "message", b"message", "result", b"result"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["error", "result"] # noqa: Y015 + _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... + +Global___GetSessionStatsCallback: _TypeAlias = GetSessionStatsCallback # noqa: Y015 + +@_typing.final +class VideoEncoding(_message.Message): """ Options """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - MAX_BITRATE_FIELD_NUMBER: builtins.int - MAX_FRAMERATE_FIELD_NUMBER: builtins.int - max_bitrate: builtins.int - max_framerate: builtins.float + MAX_BITRATE_FIELD_NUMBER: _builtins.int + MAX_FRAMERATE_FIELD_NUMBER: _builtins.int + max_bitrate: _builtins.int + max_framerate: _builtins.float def __init__( self, *, - max_bitrate: builtins.int | None = ..., - max_framerate: builtins.float | None = ..., + max_bitrate: _builtins.int | None = ..., + max_framerate: _builtins.float | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["max_bitrate", b"max_bitrate", "max_framerate", b"max_framerate"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["max_bitrate", b"max_bitrate", "max_framerate", b"max_framerate"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["max_bitrate", b"max_bitrate", "max_framerate", b"max_framerate"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["max_bitrate", b"max_bitrate", "max_framerate", b"max_framerate"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___VideoEncoding = VideoEncoding +Global___VideoEncoding: _TypeAlias = VideoEncoding # noqa: Y015 -@typing.final -class AudioEncoding(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class AudioEncoding(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - MAX_BITRATE_FIELD_NUMBER: builtins.int - max_bitrate: builtins.int + MAX_BITRATE_FIELD_NUMBER: _builtins.int + max_bitrate: _builtins.int def __init__( self, *, - max_bitrate: builtins.int | None = ..., + max_bitrate: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["max_bitrate", b"max_bitrate"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["max_bitrate", b"max_bitrate"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["max_bitrate", b"max_bitrate"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["max_bitrate", b"max_bitrate"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___AudioEncoding = AudioEncoding +Global___AudioEncoding: _TypeAlias = AudioEncoding # noqa: Y015 -@typing.final -class TrackPublishOptions(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class TrackPublishOptions(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - VIDEO_ENCODING_FIELD_NUMBER: builtins.int - AUDIO_ENCODING_FIELD_NUMBER: builtins.int - VIDEO_CODEC_FIELD_NUMBER: builtins.int - DTX_FIELD_NUMBER: builtins.int - RED_FIELD_NUMBER: builtins.int - SIMULCAST_FIELD_NUMBER: builtins.int - SOURCE_FIELD_NUMBER: builtins.int - STREAM_FIELD_NUMBER: builtins.int - PRECONNECT_BUFFER_FIELD_NUMBER: builtins.int - PACKET_TRAILER_FEATURES_FIELD_NUMBER: builtins.int - SCALABILITY_MODE_FIELD_NUMBER: builtins.int - VIDEO_ENCODER_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 - scalability_mode: builtins.str + 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 + FRAME_METADATA_FEATURES_FIELD_NUMBER: _builtins.int + SCALABILITY_MODE_FIELD_NUMBER: _builtins.int + VIDEO_ENCODER_FIELD_NUMBER: _builtins.int + DEGRADATION_PREFERENCE_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 + scalability_mode: _builtins.str """RTP scalability mode (e.g. "L3T3_KEY"). When set, a single RTP encoding is produced with this mode, enabling true SVC for codecs that support it (VP9, AV1). Has no effect for VP8/H264. """ - video_encoder: global___VideoEncoderBackend.ValueType + video_encoder: Global___VideoEncoderBackend.ValueType """Preferred encoder backend to use when publishing a video track.""" - @property - def video_encoding(self) -> global___VideoEncoding: + degradation_preference: Global___DegradationPreference.ValueType + """Controls how the encoder trades off between resolution and framerate + when bandwidth is constrained. Default is MAINTAIN_RESOLUTION. + """ + @_builtins.property + def video_encoding(self) -> Global___VideoEncoding: """encodings are optional""" - @property - def audio_encoding(self) -> global___AudioEncoding: ... - @property - def packet_trailer_features(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[track_pb2.PacketTrailerFeature.ValueType]: ... - def __init__( - self, - *, - video_encoding: global___VideoEncoding | None = ..., - audio_encoding: global___AudioEncoding | None = ..., - video_codec: video_frame_pb2.VideoCodec.ValueType | None = ..., - dtx: builtins.bool | None = ..., - red: builtins.bool | None = ..., - simulcast: builtins.bool | None = ..., - source: track_pb2.TrackSource.ValueType | None = ..., - stream: builtins.str | None = ..., - preconnect_buffer: builtins.bool | None = ..., - packet_trailer_features: collections.abc.Iterable[track_pb2.PacketTrailerFeature.ValueType] | None = ..., - scalability_mode: builtins.str | None = ..., - video_encoder: global___VideoEncoderBackend.ValueType | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["audio_encoding", b"audio_encoding", "dtx", b"dtx", "preconnect_buffer", b"preconnect_buffer", "red", b"red", "scalability_mode", b"scalability_mode", "simulcast", b"simulcast", "source", b"source", "stream", b"stream", "video_codec", b"video_codec", "video_encoder", b"video_encoder", "video_encoding", b"video_encoding"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["audio_encoding", b"audio_encoding", "dtx", b"dtx", "packet_trailer_features", b"packet_trailer_features", "preconnect_buffer", b"preconnect_buffer", "red", b"red", "scalability_mode", b"scalability_mode", "simulcast", b"simulcast", "source", b"source", "stream", b"stream", "video_codec", b"video_codec", "video_encoder", b"video_encoder", "video_encoding", b"video_encoding"]) -> None: ... - -global___TrackPublishOptions = TrackPublishOptions - -@typing.final -class IceServer(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_builtins.property + def audio_encoding(self) -> Global___AudioEncoding: ... + @_builtins.property + def frame_metadata_features(self) -> _containers.RepeatedScalarFieldContainer[_track_pb2.FrameMetadataFeature.ValueType]: ... + def __init__( + self, + *, + video_encoding: Global___VideoEncoding | None = ..., + audio_encoding: Global___AudioEncoding | None = ..., + video_codec: _video_frame_pb2.VideoCodec.ValueType | None = ..., + dtx: _builtins.bool | None = ..., + red: _builtins.bool | None = ..., + simulcast: _builtins.bool | None = ..., + source: _track_pb2.TrackSource.ValueType | None = ..., + stream: _builtins.str | None = ..., + preconnect_buffer: _builtins.bool | None = ..., + frame_metadata_features: _abc.Iterable[_track_pb2.FrameMetadataFeature.ValueType] | None = ..., + scalability_mode: _builtins.str | None = ..., + video_encoder: Global___VideoEncoderBackend.ValueType | None = ..., + degradation_preference: Global___DegradationPreference.ValueType | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["audio_encoding", b"audio_encoding", "degradation_preference", b"degradation_preference", "dtx", b"dtx", "preconnect_buffer", b"preconnect_buffer", "red", b"red", "scalability_mode", b"scalability_mode", "simulcast", b"simulcast", "source", b"source", "stream", b"stream", "video_codec", b"video_codec", "video_encoder", b"video_encoder", "video_encoding", b"video_encoding"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["audio_encoding", b"audio_encoding", "degradation_preference", b"degradation_preference", "dtx", b"dtx", "frame_metadata_features", b"frame_metadata_features", "preconnect_buffer", b"preconnect_buffer", "red", b"red", "scalability_mode", b"scalability_mode", "simulcast", b"simulcast", "source", b"source", "stream", b"stream", "video_codec", b"video_codec", "video_encoder", b"video_encoder", "video_encoding", b"video_encoding"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___TrackPublishOptions: _TypeAlias = TrackPublishOptions # noqa: Y015 + +@_typing.final +class IceServer(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + URLS_FIELD_NUMBER: _builtins.int + USERNAME_FIELD_NUMBER: _builtins.int + PASSWORD_FIELD_NUMBER: _builtins.int + username: _builtins.str + password: _builtins.str + @_builtins.property + def urls(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... + def __init__( + self, + *, + urls: _abc.Iterable[_builtins.str] | None = ..., + username: _builtins.str | None = ..., + password: _builtins.str | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["password", b"password", "username", b"username"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["password", b"password", "urls", b"urls", "username", b"username"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___IceServer: _TypeAlias = IceServer # noqa: Y015 + +@_typing.final +class RtcConfig(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ICE_TRANSPORT_TYPE_FIELD_NUMBER: _builtins.int + CONTINUAL_GATHERING_POLICY_FIELD_NUMBER: _builtins.int + ICE_SERVERS_FIELD_NUMBER: _builtins.int + ice_transport_type: Global___IceTransportType.ValueType + continual_gathering_policy: Global___ContinualGatheringPolicy.ValueType + @_builtins.property + def ice_servers(self) -> _containers.RepeatedCompositeFieldContainer[Global___IceServer]: + """empty fallback to default""" - URLS_FIELD_NUMBER: builtins.int - USERNAME_FIELD_NUMBER: builtins.int - PASSWORD_FIELD_NUMBER: builtins.int - username: builtins.str - password: builtins.str - @property - def urls(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... def __init__( self, *, - urls: collections.abc.Iterable[builtins.str] | None = ..., - username: builtins.str | None = ..., - password: builtins.str | None = ..., + 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["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["continual_gathering_policy", b"continual_gathering_policy", "ice_transport_type", b"ice_transport_type"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["continual_gathering_policy", b"continual_gathering_policy", "ice_servers", b"ice_servers", "ice_transport_type", b"ice_transport_type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___IceServer = IceServer +Global___RtcConfig: _TypeAlias = RtcConfig # noqa: Y015 -@typing.final -class RtcConfig(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class RoomDataStreamOptions(_message.Message): + """Options controlling data stream behavior for the room.""" - 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""" + DESCRIPTOR: _descriptor.Descriptor + MAX_PAYLOAD_BYTE_LENGTH_FIELD_NUMBER: _builtins.int + USE_LEGACY_CLIENT_IMPLEMENTATION_FIELD_NUMBER: _builtins.int + max_payload_byte_length: _builtins.int + """Maximum decompressed payload size in bytes accepted for a single incoming + data stream. Streams exceeding this limit terminate with an error on the + receiving side. Unset falls back to the SDK default. + """ + use_legacy_client_implementation: _builtins.bool + """Temporary migration aid for SDKs that still implement data streams in + their own client-side code on top of the FFI instead of using the FFI + data stream API. When true, this client does not advertise data streams + v2 support: ClientInfo.client_protocol is capped at 1 (DATA_STREAM_RPC), + so remote clients will not use v2-only behavior toward this client. + Defaults to false (v2 advertised). Will be removed once all FFI + consumers migrate. + """ 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 = ..., - ) -> 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 = RtcConfig - -@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 + max_payload_byte_length: _builtins.int | None = ..., + use_legacy_client_implementation: _builtins.bool | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["max_payload_byte_length", b"max_payload_byte_length", "use_legacy_client_implementation", b"use_legacy_client_implementation"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["max_payload_byte_length", b"max_payload_byte_length", "use_legacy_client_implementation", b"use_legacy_client_implementation"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___RoomDataStreamOptions: _TypeAlias = RoomDataStreamOptions # noqa: Y015 + +@_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 + DATA_STREAM_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: ... + @_builtins.property + def data_stream(self) -> Global___RoomDataStreamOptions: + """data stream behavior for this room""" + 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 = ..., + data_stream: Global___RoomDataStreamOptions | 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 - LOCAL_TRACK_REPUBLISHED_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", "data_stream", b"data_stream", "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", "data_stream", b"data_stream", "dynacast", b"dynacast", "e2ee", b"e2ee", "encryption", b"encryption", "join_retries", b"join_retries", "rtc_config", b"rtc_config", "single_peer_connection", b"single_peer_connection"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___RoomOptions: _TypeAlias = RoomOptions # noqa: Y015 + +@_typing.final +class TranscriptionSegment(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ID_FIELD_NUMBER: _builtins.int + TEXT_FIELD_NUMBER: _builtins.int + START_TIME_FIELD_NUMBER: _builtins.int + END_TIME_FIELD_NUMBER: _builtins.int + FINAL_FIELD_NUMBER: _builtins.int + LANGUAGE_FIELD_NUMBER: _builtins.int + id: _builtins.str + text: _builtins.str + start_time: _builtins.int + end_time: _builtins.int + final: _builtins.bool + language: _builtins.str + def __init__( + self, + *, + id: _builtins.str | None = ..., + text: _builtins.str | None = ..., + start_time: _builtins.int | None = ..., + end_time: _builtins.int | None = ..., + final: _builtins.bool | None = ..., + language: _builtins.str | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["end_time", b"end_time", "final", b"final", "id", b"id", "language", b"language", "start_time", b"start_time", "text", b"text"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["end_time", b"end_time", "final", b"final", "id", b"id", "language", b"language", "start_time", b"start_time", "text", b"text"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___TranscriptionSegment: _TypeAlias = TranscriptionSegment # noqa: Y015 + +@_typing.final +class BufferInfo(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + DATA_PTR_FIELD_NUMBER: _builtins.int + DATA_LEN_FIELD_NUMBER: _builtins.int + data_ptr: _builtins.int + data_len: _builtins.int + def __init__( + self, + *, + data_ptr: _builtins.int | None = ..., + data_len: _builtins.int | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["data_len", b"data_len", "data_ptr", b"data_ptr"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["data_len", b"data_len", "data_ptr", b"data_ptr"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___BufferInfo: _TypeAlias = BufferInfo # noqa: Y015 + +@_typing.final +class OwnedBuffer(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + HANDLE_FIELD_NUMBER: _builtins.int + DATA_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def data(self) -> Global___BufferInfo: ... + def __init__( + self, + *, + handle: _handle_pb2.FfiOwnedHandle | None = ..., + data: Global___BufferInfo | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["data", b"data", "handle", b"handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["data", b"data", "handle", b"handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___OwnedBuffer: _TypeAlias = OwnedBuffer # noqa: Y015 + +@_typing.final +class RoomEvent(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ROOM_HANDLE_FIELD_NUMBER: _builtins.int + PARTICIPANT_CONNECTED_FIELD_NUMBER: _builtins.int + PARTICIPANT_DISCONNECTED_FIELD_NUMBER: _builtins.int + LOCAL_TRACK_PUBLISHED_FIELD_NUMBER: _builtins.int + LOCAL_TRACK_UNPUBLISHED_FIELD_NUMBER: _builtins.int + LOCAL_TRACK_SUBSCRIBED_FIELD_NUMBER: _builtins.int + TRACK_PUBLISHED_FIELD_NUMBER: _builtins.int + TRACK_UNPUBLISHED_FIELD_NUMBER: _builtins.int + TRACK_SUBSCRIBED_FIELD_NUMBER: _builtins.int + TRACK_UNSUBSCRIBED_FIELD_NUMBER: _builtins.int + TRACK_SUBSCRIPTION_FAILED_FIELD_NUMBER: _builtins.int + TRACK_MUTED_FIELD_NUMBER: _builtins.int + TRACK_UNMUTED_FIELD_NUMBER: _builtins.int + ACTIVE_SPEAKERS_CHANGED_FIELD_NUMBER: _builtins.int + ROOM_METADATA_CHANGED_FIELD_NUMBER: _builtins.int + ROOM_SID_CHANGED_FIELD_NUMBER: _builtins.int + PARTICIPANT_METADATA_CHANGED_FIELD_NUMBER: _builtins.int + PARTICIPANT_NAME_CHANGED_FIELD_NUMBER: _builtins.int + PARTICIPANT_ATTRIBUTES_CHANGED_FIELD_NUMBER: _builtins.int + CONNECTION_QUALITY_CHANGED_FIELD_NUMBER: _builtins.int + CONNECTION_STATE_CHANGED_FIELD_NUMBER: _builtins.int + DISCONNECTED_FIELD_NUMBER: _builtins.int + RECONNECTING_FIELD_NUMBER: _builtins.int + RECONNECTED_FIELD_NUMBER: _builtins.int + E2EE_STATE_CHANGED_FIELD_NUMBER: _builtins.int + EOS_FIELD_NUMBER: _builtins.int + DATA_PACKET_RECEIVED_FIELD_NUMBER: _builtins.int + TRANSCRIPTION_RECEIVED_FIELD_NUMBER: _builtins.int + CHAT_MESSAGE_FIELD_NUMBER: _builtins.int + STREAM_HEADER_RECEIVED_FIELD_NUMBER: _builtins.int + STREAM_CHUNK_RECEIVED_FIELD_NUMBER: _builtins.int + STREAM_TRAILER_RECEIVED_FIELD_NUMBER: _builtins.int + DATA_CHANNEL_LOW_THRESHOLD_CHANGED_FIELD_NUMBER: _builtins.int + BYTE_STREAM_OPENED_FIELD_NUMBER: _builtins.int + TEXT_STREAM_OPENED_FIELD_NUMBER: _builtins.int + ROOM_UPDATED_FIELD_NUMBER: _builtins.int + MOVED_FIELD_NUMBER: _builtins.int + PARTICIPANTS_UPDATED_FIELD_NUMBER: _builtins.int + PARTICIPANT_ENCRYPTION_STATUS_CHANGED_FIELD_NUMBER: _builtins.int + PARTICIPANT_PERMISSION_CHANGED_FIELD_NUMBER: _builtins.int + TOKEN_REFRESHED_FIELD_NUMBER: _builtins.int + PARTICIPANT_ACTIVE_FIELD_NUMBER: _builtins.int + DATA_TRACK_PUBLISHED_FIELD_NUMBER: _builtins.int + DATA_TRACK_UNPUBLISHED_FIELD_NUMBER: _builtins.int + LOCAL_TRACK_REPUBLISHED_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: ... - @property - def local_track_republished(self) -> global___LocalTrackRepublished: ... - 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 = ..., - local_track_republished: global___LocalTrackRepublished | 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_republished", b"local_track_republished", "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_republished", b"local_track_republished", "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", "local_track_republished"] | 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 = OwnedRoom - -@typing.final -class ParticipantsUpdated(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_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: ... + @_builtins.property + def local_track_republished(self) -> Global___LocalTrackRepublished: ... + 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 = ..., + local_track_republished: Global___LocalTrackRepublished | 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_republished", b"local_track_republished", "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_republished", b"local_track_republished", "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", "local_track_republished"] # noqa: Y015 + _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... + +Global___RoomEvent: _TypeAlias = RoomEvent # noqa: Y015 + +@_typing.final +class RoomInfo(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + SID_FIELD_NUMBER: _builtins.int + NAME_FIELD_NUMBER: _builtins.int + METADATA_FIELD_NUMBER: _builtins.int + LOSSY_DC_BUFFERED_AMOUNT_LOW_THRESHOLD_FIELD_NUMBER: _builtins.int + RELIABLE_DC_BUFFERED_AMOUNT_LOW_THRESHOLD_FIELD_NUMBER: _builtins.int + EMPTY_TIMEOUT_FIELD_NUMBER: _builtins.int + DEPARTURE_TIMEOUT_FIELD_NUMBER: _builtins.int + MAX_PARTICIPANTS_FIELD_NUMBER: _builtins.int + CREATION_TIME_FIELD_NUMBER: _builtins.int + NUM_PARTICIPANTS_FIELD_NUMBER: _builtins.int + NUM_PUBLISHERS_FIELD_NUMBER: _builtins.int + ACTIVE_RECORDING_FIELD_NUMBER: _builtins.int + sid: _builtins.str + name: _builtins.str + metadata: _builtins.str + lossy_dc_buffered_amount_low_threshold: _builtins.int + reliable_dc_buffered_amount_low_threshold: _builtins.int + empty_timeout: _builtins.int + departure_timeout: _builtins.int + max_participants: _builtins.int + creation_time: _builtins.int + num_participants: _builtins.int + num_publishers: _builtins.int + active_recording: _builtins.bool + def __init__( + self, + *, + sid: _builtins.str | None = ..., + name: _builtins.str | None = ..., + metadata: _builtins.str | None = ..., + lossy_dc_buffered_amount_low_threshold: _builtins.int | None = ..., + reliable_dc_buffered_amount_low_threshold: _builtins.int | None = ..., + empty_timeout: _builtins.int | None = ..., + departure_timeout: _builtins.int | None = ..., + max_participants: _builtins.int | None = ..., + creation_time: _builtins.int | None = ..., + num_participants: _builtins.int | None = ..., + num_publishers: _builtins.int | None = ..., + active_recording: _builtins.bool | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["active_recording", b"active_recording", "creation_time", b"creation_time", "departure_timeout", b"departure_timeout", "empty_timeout", b"empty_timeout", "lossy_dc_buffered_amount_low_threshold", b"lossy_dc_buffered_amount_low_threshold", "max_participants", b"max_participants", "metadata", b"metadata", "name", b"name", "num_participants", b"num_participants", "num_publishers", b"num_publishers", "reliable_dc_buffered_amount_low_threshold", b"reliable_dc_buffered_amount_low_threshold", "sid", b"sid"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["active_recording", b"active_recording", "creation_time", b"creation_time", "departure_timeout", b"departure_timeout", "empty_timeout", b"empty_timeout", "lossy_dc_buffered_amount_low_threshold", b"lossy_dc_buffered_amount_low_threshold", "max_participants", b"max_participants", "metadata", b"metadata", "name", b"name", "num_participants", b"num_participants", "num_publishers", b"num_publishers", "reliable_dc_buffered_amount_low_threshold", b"reliable_dc_buffered_amount_low_threshold", "sid", b"sid"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___RoomInfo: _TypeAlias = RoomInfo # noqa: Y015 + +@_typing.final +class OwnedRoom(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___RoomInfo: ... + def __init__( + self, + *, + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___RoomInfo | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___OwnedRoom: _TypeAlias = OwnedRoom # noqa: Y015 + +@_typing.final +class ParticipantsUpdated(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - 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: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participants", b"participants"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___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: ... + def WhichOneof(self, oneof_group: _Never) -> 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: ... + def WhichOneof(self, oneof_group: _Never) -> 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: ... + def WhichOneof(self, oneof_group: _Never) -> 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: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___LocalTrackPublished = LocalTrackPublished +Global___LocalTrackPublished: _TypeAlias = LocalTrackPublished # noqa: Y015 -@typing.final -class LocalTrackUnpublished(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class LocalTrackUnpublished(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PUBLICATION_SID_FIELD_NUMBER: builtins.int - publication_sid: builtins.str + PUBLICATION_SID_FIELD_NUMBER: _builtins.int + publication_sid: _builtins.str def __init__( self, *, - publication_sid: builtins.str | None = ..., + publication_sid: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["publication_sid", b"publication_sid"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["publication_sid", b"publication_sid"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["publication_sid", b"publication_sid"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["publication_sid", b"publication_sid"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___LocalTrackUnpublished = LocalTrackUnpublished +Global___LocalTrackUnpublished: _TypeAlias = LocalTrackUnpublished # noqa: Y015 -@typing.final -class LocalTrackRepublished(google.protobuf.message.Message): +@_typing.final +class LocalTrackRepublished(_message.Message): """Fired when the SDK auto-republishes a local track during a full reconnect. The FfiPublication handle is preserved across the cycle — language bindings should look up the existing publication object by @@ -1842,614 +2148,720 @@ class LocalTrackRepublished(google.protobuf.message.Message): reads/writes hit current state. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - PUBLICATION_HANDLE_FIELD_NUMBER: builtins.int - PREVIOUS_SID_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - publication_handle: builtins.int - previous_sid: builtins.str - @property - def info(self) -> track_pb2.TrackPublicationInfo: ... + PUBLICATION_HANDLE_FIELD_NUMBER: _builtins.int + PREVIOUS_SID_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + publication_handle: _builtins.int + previous_sid: _builtins.str + @_builtins.property + def info(self) -> _track_pb2.TrackPublicationInfo: ... def __init__( self, *, - publication_handle: builtins.int | None = ..., - previous_sid: builtins.str | None = ..., - info: track_pb2.TrackPublicationInfo | None = ..., + publication_handle: _builtins.int | None = ..., + previous_sid: _builtins.str | None = ..., + info: _track_pb2.TrackPublicationInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["info", b"info", "previous_sid", b"previous_sid", "publication_handle", b"publication_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["info", b"info", "previous_sid", b"previous_sid", "publication_handle", b"publication_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["info", b"info", "previous_sid", b"previous_sid", "publication_handle", b"publication_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["info", b"info", "previous_sid", b"previous_sid", "publication_handle", b"publication_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___LocalTrackRepublished = LocalTrackRepublished +Global___LocalTrackRepublished: _TypeAlias = LocalTrackRepublished # noqa: Y015 -@typing.final -class LocalTrackSubscribed(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class LocalTrackSubscribed(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - TRACK_SID_FIELD_NUMBER: builtins.int - track_sid: builtins.str + TRACK_SID_FIELD_NUMBER: _builtins.int + track_sid: _builtins.str def __init__( self, *, - track_sid: builtins.str | None = ..., + track_sid: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["track_sid", b"track_sid"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["track_sid", b"track_sid"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["track_sid", b"track_sid"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["track_sid", b"track_sid"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___LocalTrackSubscribed = LocalTrackSubscribed +Global___LocalTrackSubscribed: _TypeAlias = LocalTrackSubscribed # noqa: Y015 -@typing.final -class TrackPublished(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class TrackPublished(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - PUBLICATION_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - @property - def publication(self) -> track_pb2.OwnedTrackPublication: ... + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + PUBLICATION_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + @_builtins.property + def publication(self) -> _track_pb2.OwnedTrackPublication: ... def __init__( self, *, - participant_identity: builtins.str | None = ..., - publication: track_pb2.OwnedTrackPublication | None = ..., + participant_identity: _builtins.str | None = ..., + publication: _track_pb2.OwnedTrackPublication | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "publication", b"publication"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "publication", b"publication"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "publication", b"publication"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "publication", b"publication"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TrackPublished = TrackPublished +Global___TrackPublished: _TypeAlias = TrackPublished # noqa: Y015 -@typing.final -class TrackUnpublished(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class TrackUnpublished(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - PUBLICATION_SID_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - publication_sid: builtins.str + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + PUBLICATION_SID_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + publication_sid: _builtins.str def __init__( self, *, - participant_identity: builtins.str | None = ..., - publication_sid: builtins.str | None = ..., + participant_identity: _builtins.str | None = ..., + publication_sid: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "publication_sid", b"publication_sid"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "publication_sid", b"publication_sid"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "publication_sid", b"publication_sid"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "publication_sid", b"publication_sid"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TrackUnpublished = TrackUnpublished +Global___TrackUnpublished: _TypeAlias = TrackUnpublished # noqa: Y015 -@typing.final -class TrackSubscribed(google.protobuf.message.Message): +@_typing.final +class TrackSubscribed(_message.Message): """Publication isn't needed for subscription events on the FFI The FFI will retrieve the publication using the Track sid """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - TRACK_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - @property - def track(self) -> track_pb2.OwnedTrack: ... + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + TRACK_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + @_builtins.property + def track(self) -> _track_pb2.OwnedTrack: ... def __init__( self, *, - participant_identity: builtins.str | None = ..., - track: track_pb2.OwnedTrack | None = ..., + participant_identity: _builtins.str | None = ..., + track: _track_pb2.OwnedTrack | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "track", b"track"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "track", b"track"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "track", b"track"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "track", b"track"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TrackSubscribed = TrackSubscribed +Global___TrackSubscribed: _TypeAlias = TrackSubscribed # noqa: Y015 -@typing.final -class TrackUnsubscribed(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class TrackUnsubscribed(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - TRACK_SID_FIELD_NUMBER: builtins.int - participant_identity: builtins.str + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + TRACK_SID_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str """The FFI language can dispose/remove the VideoSink here""" - track_sid: builtins.str + track_sid: _builtins.str def __init__( self, *, - participant_identity: builtins.str | None = ..., - track_sid: builtins.str | None = ..., + participant_identity: _builtins.str | None = ..., + track_sid: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TrackUnsubscribed = TrackUnsubscribed +Global___TrackUnsubscribed: _TypeAlias = TrackUnsubscribed # noqa: Y015 -@typing.final -class TrackSubscriptionFailed(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class TrackSubscriptionFailed(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - TRACK_SID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - track_sid: builtins.str - error: builtins.str + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + TRACK_SID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + track_sid: _builtins.str + error: _builtins.str def __init__( self, *, - participant_identity: builtins.str | None = ..., - track_sid: builtins.str | None = ..., - error: builtins.str | None = ..., + participant_identity: _builtins.str | None = ..., + track_sid: _builtins.str | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["error", b"error", "participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["error", b"error", "participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TrackSubscriptionFailed = TrackSubscriptionFailed +Global___TrackSubscriptionFailed: _TypeAlias = TrackSubscriptionFailed # noqa: Y015 -@typing.final -class TrackMuted(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class TrackMuted(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - TRACK_SID_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - track_sid: builtins.str + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + TRACK_SID_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + track_sid: _builtins.str def __init__( self, *, - participant_identity: builtins.str | None = ..., - track_sid: builtins.str | None = ..., + participant_identity: _builtins.str | None = ..., + track_sid: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TrackMuted = TrackMuted +Global___TrackMuted: _TypeAlias = TrackMuted # noqa: Y015 -@typing.final -class TrackUnmuted(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class TrackUnmuted(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - TRACK_SID_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - track_sid: builtins.str + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + TRACK_SID_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + track_sid: _builtins.str def __init__( self, *, - participant_identity: builtins.str | None = ..., - track_sid: builtins.str | None = ..., + participant_identity: _builtins.str | None = ..., + track_sid: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TrackUnmuted = TrackUnmuted +Global___TrackUnmuted: _TypeAlias = TrackUnmuted # noqa: Y015 -@typing.final -class E2eeStateChanged(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class E2eeStateChanged(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - STATE_FIELD_NUMBER: builtins.int - participant_identity: builtins.str + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + STATE_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str """Using sid instead of identity for ffi communication""" - state: e2ee_pb2.EncryptionState.ValueType + state: _e2ee_pb2.EncryptionState.ValueType def __init__( self, *, - participant_identity: builtins.str | None = ..., - state: e2ee_pb2.EncryptionState.ValueType | None = ..., + participant_identity: _builtins.str | None = ..., + state: _e2ee_pb2.EncryptionState.ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "state", b"state"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "state", b"state"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "state", b"state"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "state", b"state"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___E2eeStateChanged = E2eeStateChanged +Global___E2eeStateChanged: _TypeAlias = E2eeStateChanged # noqa: Y015 -@typing.final -class ActiveSpeakersChanged(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ActiveSpeakersChanged(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITIES_FIELD_NUMBER: builtins.int - @property - def participant_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + PARTICIPANT_IDENTITIES_FIELD_NUMBER: _builtins.int + @_builtins.property + def participant_identities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... def __init__( self, *, - participant_identities: collections.abc.Iterable[builtins.str] | None = ..., + participant_identities: _abc.Iterable[_builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing.Literal["participant_identities", b"participant_identities"]) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identities", b"participant_identities"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ActiveSpeakersChanged = ActiveSpeakersChanged +Global___ActiveSpeakersChanged: _TypeAlias = ActiveSpeakersChanged # noqa: Y015 -@typing.final -class RoomMetadataChanged(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class RoomMetadataChanged(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - METADATA_FIELD_NUMBER: builtins.int - metadata: builtins.str + METADATA_FIELD_NUMBER: _builtins.int + metadata: _builtins.str def __init__( self, *, - metadata: builtins.str | None = ..., + metadata: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["metadata", b"metadata"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["metadata", b"metadata"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["metadata", b"metadata"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["metadata", b"metadata"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RoomMetadataChanged = RoomMetadataChanged +Global___RoomMetadataChanged: _TypeAlias = RoomMetadataChanged # noqa: Y015 -@typing.final -class RoomSidChanged(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class RoomSidChanged(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - SID_FIELD_NUMBER: builtins.int - sid: builtins.str + SID_FIELD_NUMBER: _builtins.int + sid: _builtins.str def __init__( self, *, - sid: builtins.str | None = ..., + sid: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["sid", b"sid"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["sid", b"sid"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["sid", b"sid"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["sid", b"sid"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RoomSidChanged = RoomSidChanged +Global___RoomSidChanged: _TypeAlias = RoomSidChanged # noqa: Y015 -@typing.final -class ParticipantMetadataChanged(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ParticipantMetadataChanged(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - metadata: builtins.str + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + METADATA_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + metadata: _builtins.str def __init__( self, *, - participant_identity: builtins.str | None = ..., - metadata: builtins.str | None = ..., + participant_identity: _builtins.str | None = ..., + metadata: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["metadata", b"metadata", "participant_identity", b"participant_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["metadata", b"metadata", "participant_identity", b"participant_identity"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["metadata", b"metadata", "participant_identity", b"participant_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["metadata", b"metadata", "participant_identity", b"participant_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ParticipantMetadataChanged = ParticipantMetadataChanged +Global___ParticipantMetadataChanged: _TypeAlias = ParticipantMetadataChanged # noqa: Y015 -@typing.final -class ParticipantAttributesChanged(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ParticipantAttributesChanged(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - ATTRIBUTES_FIELD_NUMBER: builtins.int - CHANGED_ATTRIBUTES_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - @property - def attributes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AttributesEntry]: ... - @property - def changed_attributes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AttributesEntry]: ... + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + ATTRIBUTES_FIELD_NUMBER: _builtins.int + CHANGED_ATTRIBUTES_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + @_builtins.property + def attributes(self) -> _containers.RepeatedCompositeFieldContainer[Global___AttributesEntry]: ... + @_builtins.property + def changed_attributes(self) -> _containers.RepeatedCompositeFieldContainer[Global___AttributesEntry]: ... def __init__( self, *, - participant_identity: builtins.str | None = ..., - attributes: collections.abc.Iterable[global___AttributesEntry] | None = ..., - changed_attributes: collections.abc.Iterable[global___AttributesEntry] | None = ..., + participant_identity: _builtins.str | None = ..., + attributes: _abc.Iterable[Global___AttributesEntry] | None = ..., + changed_attributes: _abc.Iterable[Global___AttributesEntry] | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["attributes", b"attributes", "changed_attributes", b"changed_attributes", "participant_identity", b"participant_identity"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["attributes", b"attributes", "changed_attributes", b"changed_attributes", "participant_identity", b"participant_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ParticipantAttributesChanged = ParticipantAttributesChanged +Global___ParticipantAttributesChanged: _TypeAlias = ParticipantAttributesChanged # noqa: Y015 -@typing.final -class ParticipantEncryptionStatusChanged(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ParticipantEncryptionStatusChanged(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - IS_ENCRYPTED_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - is_encrypted: builtins.bool + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + IS_ENCRYPTED_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + is_encrypted: _builtins.bool def __init__( self, *, - participant_identity: builtins.str | None = ..., - is_encrypted: builtins.bool | None = ..., + participant_identity: _builtins.str | None = ..., + is_encrypted: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["is_encrypted", b"is_encrypted", "participant_identity", b"participant_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["is_encrypted", b"is_encrypted", "participant_identity", b"participant_identity"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["is_encrypted", b"is_encrypted", "participant_identity", b"participant_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["is_encrypted", b"is_encrypted", "participant_identity", b"participant_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ParticipantEncryptionStatusChanged = ParticipantEncryptionStatusChanged +Global___ParticipantEncryptionStatusChanged: _TypeAlias = ParticipantEncryptionStatusChanged # noqa: Y015 -@typing.final -class ParticipantNameChanged(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ParticipantNameChanged(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - name: builtins.str + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + NAME_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + name: _builtins.str def __init__( self, *, - participant_identity: builtins.str | None = ..., - name: builtins.str | None = ..., + participant_identity: _builtins.str | None = ..., + name: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["name", b"name", "participant_identity", b"participant_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["name", b"name", "participant_identity", b"participant_identity"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "participant_identity", b"participant_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "participant_identity", b"participant_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ParticipantNameChanged = ParticipantNameChanged +Global___ParticipantNameChanged: _TypeAlias = ParticipantNameChanged # noqa: Y015 -@typing.final -class ParticipantPermissionChanged(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ParticipantPermissionChanged(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - PERMISSION_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - @property - def permission(self) -> participant_pb2.ParticipantPermission: ... + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + PERMISSION_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + @_builtins.property + def permission(self) -> _participant_pb2.ParticipantPermission: ... def __init__( self, *, - participant_identity: builtins.str | None = ..., - permission: participant_pb2.ParticipantPermission | None = ..., + participant_identity: _builtins.str | None = ..., + permission: _participant_pb2.ParticipantPermission | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "permission", b"permission"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "permission", b"permission"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "permission", b"permission"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "permission", b"permission"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ParticipantPermissionChanged = ParticipantPermissionChanged +Global___ParticipantPermissionChanged: _TypeAlias = ParticipantPermissionChanged # noqa: Y015 -@typing.final -class ConnectionQualityChanged(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ConnectionQualityChanged(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - QUALITY_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - quality: global___ConnectionQuality.ValueType + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + QUALITY_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + quality: Global___ConnectionQuality.ValueType def __init__( self, *, - participant_identity: builtins.str | None = ..., - quality: global___ConnectionQuality.ValueType | None = ..., + participant_identity: _builtins.str | None = ..., + quality: Global___ConnectionQuality.ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "quality", b"quality"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "quality", b"quality"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "quality", b"quality"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "quality", b"quality"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ConnectionQualityChanged = ConnectionQualityChanged +Global___ConnectionQualityChanged: _TypeAlias = ConnectionQualityChanged # noqa: Y015 -@typing.final -class UserPacket(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class UserPacket(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - DATA_FIELD_NUMBER: builtins.int - TOPIC_FIELD_NUMBER: builtins.int - topic: builtins.str - @property - def data(self) -> global___OwnedBuffer: ... + DATA_FIELD_NUMBER: _builtins.int + TOPIC_FIELD_NUMBER: _builtins.int + topic: _builtins.str + @_builtins.property + def data(self) -> Global___OwnedBuffer: ... def __init__( self, *, - data: global___OwnedBuffer | None = ..., - topic: builtins.str | None = ..., + data: Global___OwnedBuffer | None = ..., + topic: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["data", b"data", "topic", b"topic"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["data", b"data", "topic", b"topic"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["data", b"data", "topic", b"topic"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["data", b"data", "topic", b"topic"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___UserPacket = UserPacket +Global___UserPacket: _TypeAlias = UserPacket # noqa: Y015 -@typing.final -class ChatMessage(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ChatMessage(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ID_FIELD_NUMBER: builtins.int - TIMESTAMP_FIELD_NUMBER: builtins.int - MESSAGE_FIELD_NUMBER: builtins.int - EDIT_TIMESTAMP_FIELD_NUMBER: builtins.int - DELETED_FIELD_NUMBER: builtins.int - GENERATED_FIELD_NUMBER: builtins.int - id: builtins.str - timestamp: builtins.int - message: builtins.str - edit_timestamp: builtins.int - deleted: builtins.bool - generated: builtins.bool + ID_FIELD_NUMBER: _builtins.int + TIMESTAMP_FIELD_NUMBER: _builtins.int + MESSAGE_FIELD_NUMBER: _builtins.int + EDIT_TIMESTAMP_FIELD_NUMBER: _builtins.int + DELETED_FIELD_NUMBER: _builtins.int + GENERATED_FIELD_NUMBER: _builtins.int + id: _builtins.str + timestamp: _builtins.int + message: _builtins.str + edit_timestamp: _builtins.int + deleted: _builtins.bool + generated: _builtins.bool def __init__( self, *, - id: builtins.str | None = ..., - timestamp: builtins.int | None = ..., - message: builtins.str | None = ..., - edit_timestamp: builtins.int | None = ..., - deleted: builtins.bool | None = ..., - generated: builtins.bool | None = ..., + id: _builtins.str | None = ..., + timestamp: _builtins.int | None = ..., + message: _builtins.str | None = ..., + edit_timestamp: _builtins.int | None = ..., + deleted: _builtins.bool | None = ..., + generated: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["deleted", b"deleted", "edit_timestamp", b"edit_timestamp", "generated", b"generated", "id", b"id", "message", b"message", "timestamp", b"timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["deleted", b"deleted", "edit_timestamp", b"edit_timestamp", "generated", b"generated", "id", b"id", "message", b"message", "timestamp", b"timestamp"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["deleted", b"deleted", "edit_timestamp", b"edit_timestamp", "generated", b"generated", "id", b"id", "message", b"message", "timestamp", b"timestamp"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["deleted", b"deleted", "edit_timestamp", b"edit_timestamp", "generated", b"generated", "id", b"id", "message", b"message", "timestamp", b"timestamp"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ChatMessage = ChatMessage +Global___ChatMessage: _TypeAlias = ChatMessage # noqa: Y015 -@typing.final -class ChatMessageReceived(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ChatMessageReceived(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - MESSAGE_FIELD_NUMBER: builtins.int - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - @property - def message(self) -> global___ChatMessage: ... + MESSAGE_FIELD_NUMBER: _builtins.int + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + @_builtins.property + def message(self) -> Global___ChatMessage: ... def __init__( self, *, - message: global___ChatMessage | None = ..., - participant_identity: builtins.str | None = ..., + message: Global___ChatMessage | None = ..., + participant_identity: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["message", b"message", "participant_identity", b"participant_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["message", b"message", "participant_identity", b"participant_identity"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["message", b"message", "participant_identity", b"participant_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["message", b"message", "participant_identity", b"participant_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ChatMessageReceived = ChatMessageReceived +Global___ChatMessageReceived: _TypeAlias = ChatMessageReceived # noqa: Y015 -@typing.final -class SipDTMF(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SipDTMF(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - CODE_FIELD_NUMBER: builtins.int - DIGIT_FIELD_NUMBER: builtins.int - code: builtins.int - digit: builtins.str + CODE_FIELD_NUMBER: _builtins.int + DIGIT_FIELD_NUMBER: _builtins.int + code: _builtins.int + digit: _builtins.str def __init__( self, *, - code: builtins.int | None = ..., - digit: builtins.str | None = ..., + code: _builtins.int | None = ..., + digit: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["code", b"code", "digit", b"digit"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["code", b"code", "digit", b"digit"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "digit", b"digit"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "digit", b"digit"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SipDTMF = SipDTMF +Global___SipDTMF: _TypeAlias = SipDTMF # noqa: Y015 -@typing.final -class DataPacketReceived(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DataPacketReceived(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KIND_FIELD_NUMBER: builtins.int - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - USER_FIELD_NUMBER: builtins.int - SIP_DTMF_FIELD_NUMBER: builtins.int - kind: global___DataPacketKind.ValueType - participant_identity: builtins.str + KIND_FIELD_NUMBER: _builtins.int + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + USER_FIELD_NUMBER: _builtins.int + SIP_DTMF_FIELD_NUMBER: _builtins.int + kind: Global___DataPacketKind.ValueType + participant_identity: _builtins.str """Can be empty if the data is sent a server SDK""" - @property - def user(self) -> global___UserPacket: ... - @property - def sip_dtmf(self) -> global___SipDTMF: ... + @_builtins.property + def user(self) -> Global___UserPacket: ... + @_builtins.property + def sip_dtmf(self) -> Global___SipDTMF: ... def __init__( self, *, - kind: global___DataPacketKind.ValueType | None = ..., - participant_identity: builtins.str | None = ..., - user: global___UserPacket | None = ..., - sip_dtmf: global___SipDTMF | None = ..., + kind: Global___DataPacketKind.ValueType | None = ..., + participant_identity: _builtins.str | None = ..., + user: Global___UserPacket | None = ..., + sip_dtmf: Global___SipDTMF | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["kind", b"kind", "participant_identity", b"participant_identity", "sip_dtmf", b"sip_dtmf", "user", b"user", "value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["kind", b"kind", "participant_identity", b"participant_identity", "sip_dtmf", b"sip_dtmf", "user", b"user", "value", b"value"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["value", b"value"]) -> typing.Literal["user", "sip_dtmf"] | None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "participant_identity", b"participant_identity", "sip_dtmf", b"sip_dtmf", "user", b"user", "value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "participant_identity", b"participant_identity", "sip_dtmf", b"sip_dtmf", "user", b"user", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_value: _TypeAlias = _typing.Literal["user", "sip_dtmf"] # noqa: Y015 + _WhichOneofArgType_value: _TypeAlias = _typing.Literal["value", b"value"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_value) -> _WhichOneofReturnType_value | None: ... -global___DataPacketReceived = DataPacketReceived +Global___DataPacketReceived: _TypeAlias = DataPacketReceived # noqa: Y015 -@typing.final -class TranscriptionReceived(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class TranscriptionReceived(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - TRACK_SID_FIELD_NUMBER: builtins.int - SEGMENTS_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - track_sid: builtins.str - @property - def segments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___TranscriptionSegment]: ... + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + TRACK_SID_FIELD_NUMBER: _builtins.int + SEGMENTS_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + track_sid: _builtins.str + @_builtins.property + def segments(self) -> _containers.RepeatedCompositeFieldContainer[Global___TranscriptionSegment]: ... def __init__( self, *, - participant_identity: builtins.str | None = ..., - track_sid: builtins.str | None = ..., - segments: collections.abc.Iterable[global___TranscriptionSegment] | None = ..., + participant_identity: _builtins.str | None = ..., + track_sid: _builtins.str | None = ..., + segments: _abc.Iterable[Global___TranscriptionSegment] | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "segments", b"segments", "track_sid", b"track_sid"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "track_sid", b"track_sid"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "segments", b"segments", "track_sid", b"track_sid"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TranscriptionReceived = TranscriptionReceived +Global___TranscriptionReceived: _TypeAlias = TranscriptionReceived # noqa: Y015 -@typing.final -class ConnectionStateChanged(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ConnectionStateChanged(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - STATE_FIELD_NUMBER: builtins.int - state: global___ConnectionState.ValueType + STATE_FIELD_NUMBER: _builtins.int + state: Global___ConnectionState.ValueType def __init__( self, *, - state: global___ConnectionState.ValueType | None = ..., + state: Global___ConnectionState.ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["state", b"state"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["state", b"state"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["state", b"state"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["state", b"state"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ConnectionStateChanged = ConnectionStateChanged +Global___ConnectionStateChanged: _TypeAlias = ConnectionStateChanged # noqa: Y015 -@typing.final -class Connected(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class Connected(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___Connected = Connected +Global___Connected: _TypeAlias = Connected # noqa: Y015 -@typing.final -class Disconnected(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class Disconnected(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - REASON_FIELD_NUMBER: builtins.int - reason: participant_pb2.DisconnectReason.ValueType + REASON_FIELD_NUMBER: _builtins.int + reason: _participant_pb2.DisconnectReason.ValueType def __init__( self, *, - reason: participant_pb2.DisconnectReason.ValueType | None = ..., + reason: _participant_pb2.DisconnectReason.ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["reason", b"reason"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["reason", b"reason"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["reason", b"reason"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["reason", b"reason"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___Disconnected = Disconnected +Global___Disconnected: _TypeAlias = Disconnected # noqa: Y015 -@typing.final -class Reconnecting(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class Reconnecting(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___Reconnecting = Reconnecting +Global___Reconnecting: _TypeAlias = Reconnecting # noqa: Y015 -@typing.final -class Reconnected(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class Reconnected(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___Reconnected = Reconnected +Global___Reconnected: _TypeAlias = Reconnected # noqa: Y015 -@typing.final -class TokenRefreshed(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class TokenRefreshed(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - TOKEN_FIELD_NUMBER: builtins.int - token: builtins.str + TOKEN_FIELD_NUMBER: _builtins.int + token: _builtins.str def __init__( self, *, - token: builtins.str | None = ..., + token: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["token", b"token"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["token", b"token"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["token", b"token"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["token", b"token"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TokenRefreshed = TokenRefreshed +Global___TokenRefreshed: _TypeAlias = TokenRefreshed # noqa: Y015 -@typing.final -class RoomEOS(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class RoomEOS(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RoomEOS = RoomEOS +Global___RoomEOS: _TypeAlias = RoomEOS # noqa: Y015 -@typing.final -class DataStream(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DataStream(_message.Message): + DESCRIPTOR: _descriptor.Descriptor class _OperationType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 - class _OperationTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[DataStream._OperationType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + class _OperationTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[DataStream._OperationType.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor CREATE: DataStream._OperationType.ValueType # 0 UPDATE: DataStream._OperationType.ValueType # 1 DELETE: DataStream._OperationType.ValueType # 2 @@ -2463,577 +2875,663 @@ class DataStream(google.protobuf.message.Message): DELETE: DataStream.OperationType.ValueType # 2 REACTION: DataStream.OperationType.ValueType # 3 - @typing.final - class TextHeader(google.protobuf.message.Message): + @_typing.final + class TextHeader(_message.Message): """header properties specific to text streams""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - OPERATION_TYPE_FIELD_NUMBER: builtins.int - VERSION_FIELD_NUMBER: builtins.int - REPLY_TO_STREAM_ID_FIELD_NUMBER: builtins.int - ATTACHED_STREAM_IDS_FIELD_NUMBER: builtins.int - GENERATED_FIELD_NUMBER: builtins.int - operation_type: global___DataStream.OperationType.ValueType - version: builtins.int + OPERATION_TYPE_FIELD_NUMBER: _builtins.int + VERSION_FIELD_NUMBER: _builtins.int + REPLY_TO_STREAM_ID_FIELD_NUMBER: _builtins.int + ATTACHED_STREAM_IDS_FIELD_NUMBER: _builtins.int + GENERATED_FIELD_NUMBER: _builtins.int + operation_type: Global___DataStream.OperationType.ValueType + version: _builtins.int """Optional: Version for updates/edits""" - reply_to_stream_id: builtins.str + reply_to_stream_id: _builtins.str """Optional: Reply to specific message""" - generated: builtins.bool + generated: _builtins.bool """true if the text has been generated by an agent from a participant's audio transcription""" - @property - def attached_stream_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + @_builtins.property + def attached_stream_ids(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: """file attachments for text streams""" def __init__( self, *, - operation_type: global___DataStream.OperationType.ValueType | None = ..., - version: builtins.int | None = ..., - reply_to_stream_id: builtins.str | None = ..., - attached_stream_ids: collections.abc.Iterable[builtins.str] | None = ..., - generated: builtins.bool | None = ..., + operation_type: Global___DataStream.OperationType.ValueType | None = ..., + version: _builtins.int | None = ..., + reply_to_stream_id: _builtins.str | None = ..., + attached_stream_ids: _abc.Iterable[_builtins.str] | None = ..., + generated: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["generated", b"generated", "operation_type", b"operation_type", "reply_to_stream_id", b"reply_to_stream_id", "version", b"version"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["attached_stream_ids", b"attached_stream_ids", "generated", b"generated", "operation_type", b"operation_type", "reply_to_stream_id", b"reply_to_stream_id", "version", b"version"]) -> None: ... - - @typing.final - class ByteHeader(google.protobuf.message.Message): + _HasFieldArgType: _TypeAlias = _typing.Literal["generated", b"generated", "operation_type", b"operation_type", "reply_to_stream_id", b"reply_to_stream_id", "version", b"version"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["attached_stream_ids", b"attached_stream_ids", "generated", b"generated", "operation_type", b"operation_type", "reply_to_stream_id", b"reply_to_stream_id", "version", b"version"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class ByteHeader(_message.Message): """header properties specific to byte or file streams""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - name: builtins.str + NAME_FIELD_NUMBER: _builtins.int + name: _builtins.str def __init__( self, *, - name: builtins.str | None = ..., + name: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["name", b"name"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["name", b"name"]) -> None: ... - - @typing.final - class Header(google.protobuf.message.Message): + _HasFieldArgType: _TypeAlias = _typing.Literal["name", b"name"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["name", b"name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class Header(_message.Message): """main DataStream.Header that contains a oneof for specific headers""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - @typing.final - class AttributesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class AttributesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str | None = ..., - value: builtins.str | None = ..., + key: _builtins.str | None = ..., + value: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - STREAM_ID_FIELD_NUMBER: builtins.int - TIMESTAMP_FIELD_NUMBER: builtins.int - MIME_TYPE_FIELD_NUMBER: builtins.int - TOPIC_FIELD_NUMBER: builtins.int - TOTAL_LENGTH_FIELD_NUMBER: builtins.int - ATTRIBUTES_FIELD_NUMBER: builtins.int - TEXT_HEADER_FIELD_NUMBER: builtins.int - BYTE_HEADER_FIELD_NUMBER: builtins.int - stream_id: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + STREAM_ID_FIELD_NUMBER: _builtins.int + TIMESTAMP_FIELD_NUMBER: _builtins.int + MIME_TYPE_FIELD_NUMBER: _builtins.int + TOPIC_FIELD_NUMBER: _builtins.int + TOTAL_LENGTH_FIELD_NUMBER: _builtins.int + ATTRIBUTES_FIELD_NUMBER: _builtins.int + TEXT_HEADER_FIELD_NUMBER: _builtins.int + BYTE_HEADER_FIELD_NUMBER: _builtins.int + stream_id: _builtins.str """unique identifier for this data stream""" - timestamp: builtins.int + timestamp: _builtins.int """using int64 for Unix timestamp""" - mime_type: builtins.str - topic: builtins.str - total_length: builtins.int + mime_type: _builtins.str + topic: _builtins.str + total_length: _builtins.int """only populated for finite streams, if it's a stream of unknown size this stays empty""" - @property - def attributes(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + @_builtins.property + def attributes(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: """user defined attributes map that can carry additional info""" - @property - def text_header(self) -> global___DataStream.TextHeader: ... - @property - def byte_header(self) -> global___DataStream.ByteHeader: ... + @_builtins.property + def text_header(self) -> Global___DataStream.TextHeader: ... + @_builtins.property + def byte_header(self) -> Global___DataStream.ByteHeader: ... def __init__( self, *, - stream_id: builtins.str | None = ..., - timestamp: builtins.int | None = ..., - mime_type: builtins.str | None = ..., - topic: builtins.str | None = ..., - total_length: builtins.int | None = ..., - attributes: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - text_header: global___DataStream.TextHeader | None = ..., - byte_header: global___DataStream.ByteHeader | None = ..., + stream_id: _builtins.str | None = ..., + timestamp: _builtins.int | None = ..., + mime_type: _builtins.str | None = ..., + topic: _builtins.str | None = ..., + total_length: _builtins.int | None = ..., + attributes: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + text_header: Global___DataStream.TextHeader | None = ..., + byte_header: Global___DataStream.ByteHeader | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["byte_header", b"byte_header", "content_header", b"content_header", "mime_type", b"mime_type", "stream_id", b"stream_id", "text_header", b"text_header", "timestamp", b"timestamp", "topic", b"topic", "total_length", b"total_length"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["attributes", b"attributes", "byte_header", b"byte_header", "content_header", b"content_header", "mime_type", b"mime_type", "stream_id", b"stream_id", "text_header", b"text_header", "timestamp", b"timestamp", "topic", b"topic", "total_length", b"total_length"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["content_header", b"content_header"]) -> typing.Literal["text_header", "byte_header"] | None: ... - - @typing.final - class Chunk(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - STREAM_ID_FIELD_NUMBER: builtins.int - CHUNK_INDEX_FIELD_NUMBER: builtins.int - CONTENT_FIELD_NUMBER: builtins.int - VERSION_FIELD_NUMBER: builtins.int - IV_FIELD_NUMBER: builtins.int - stream_id: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["byte_header", b"byte_header", "content_header", b"content_header", "mime_type", b"mime_type", "stream_id", b"stream_id", "text_header", b"text_header", "timestamp", b"timestamp", "topic", b"topic", "total_length", b"total_length"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["attributes", b"attributes", "byte_header", b"byte_header", "content_header", b"content_header", "mime_type", b"mime_type", "stream_id", b"stream_id", "text_header", b"text_header", "timestamp", b"timestamp", "topic", b"topic", "total_length", b"total_length"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_content_header: _TypeAlias = _typing.Literal["text_header", "byte_header"] # noqa: Y015 + _WhichOneofArgType_content_header: _TypeAlias = _typing.Literal["content_header", b"content_header"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_content_header) -> _WhichOneofReturnType_content_header | None: ... + + @_typing.final + class Chunk(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + STREAM_ID_FIELD_NUMBER: _builtins.int + CHUNK_INDEX_FIELD_NUMBER: _builtins.int + CONTENT_FIELD_NUMBER: _builtins.int + VERSION_FIELD_NUMBER: _builtins.int + IV_FIELD_NUMBER: _builtins.int + stream_id: _builtins.str """unique identifier for this data stream to map it to the correct header""" - chunk_index: builtins.int - content: builtins.bytes + chunk_index: _builtins.int + content: _builtins.bytes """content as binary (bytes)""" - version: builtins.int + version: _builtins.int """a version indicating that this chunk_index has been retroactively modified and the original one needs to be replaced""" - iv: builtins.bytes + iv: _builtins.bytes """optional, initialization vector for AES-GCM encryption""" def __init__( self, *, - stream_id: builtins.str | None = ..., - chunk_index: builtins.int | None = ..., - content: builtins.bytes | None = ..., - version: builtins.int | None = ..., - iv: builtins.bytes | None = ..., + stream_id: _builtins.str | None = ..., + chunk_index: _builtins.int | None = ..., + content: _builtins.bytes | None = ..., + version: _builtins.int | None = ..., + iv: _builtins.bytes | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["chunk_index", b"chunk_index", "content", b"content", "iv", b"iv", "stream_id", b"stream_id", "version", b"version"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["chunk_index", b"chunk_index", "content", b"content", "iv", b"iv", "stream_id", b"stream_id", "version", b"version"]) -> None: ... - - @typing.final - class Trailer(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class AttributesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["chunk_index", b"chunk_index", "content", b"content", "iv", b"iv", "stream_id", b"stream_id", "version", b"version"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["chunk_index", b"chunk_index", "content", b"content", "iv", b"iv", "stream_id", b"stream_id", "version", b"version"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class Trailer(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class AttributesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str | None = ..., - value: builtins.str | None = ..., + key: _builtins.str | None = ..., + value: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - STREAM_ID_FIELD_NUMBER: builtins.int - REASON_FIELD_NUMBER: builtins.int - ATTRIBUTES_FIELD_NUMBER: builtins.int - stream_id: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + STREAM_ID_FIELD_NUMBER: _builtins.int + REASON_FIELD_NUMBER: _builtins.int + ATTRIBUTES_FIELD_NUMBER: _builtins.int + stream_id: _builtins.str """unique identifier for this data stream""" - reason: builtins.str + reason: _builtins.str """reason why the stream was closed (could contain "error" / "interrupted" / empty for expected end)""" - @property - def attributes(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + @_builtins.property + def attributes(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: """finalizing updates for the stream, can also include additional insights for errors or endTime for transcription""" def __init__( self, *, - stream_id: builtins.str | None = ..., - reason: builtins.str | None = ..., - attributes: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + stream_id: _builtins.str | None = ..., + reason: _builtins.str | None = ..., + attributes: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["reason", b"reason", "stream_id", b"stream_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["attributes", b"attributes", "reason", b"reason", "stream_id", b"stream_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["reason", b"reason", "stream_id", b"stream_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["attributes", b"attributes", "reason", b"reason", "stream_id", b"stream_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DataStream = DataStream +Global___DataStream: _TypeAlias = DataStream # noqa: Y015 -@typing.final -class DataStreamHeaderReceived(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DataStreamHeaderReceived(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - HEADER_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - @property - def header(self) -> global___DataStream.Header: ... + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + HEADER_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + @_builtins.property + def header(self) -> Global___DataStream.Header: ... def __init__( self, *, - participant_identity: builtins.str | None = ..., - header: global___DataStream.Header | None = ..., + participant_identity: _builtins.str | None = ..., + header: Global___DataStream.Header | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["header", b"header", "participant_identity", b"participant_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["header", b"header", "participant_identity", b"participant_identity"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["header", b"header", "participant_identity", b"participant_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["header", b"header", "participant_identity", b"participant_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DataStreamHeaderReceived = DataStreamHeaderReceived +Global___DataStreamHeaderReceived: _TypeAlias = DataStreamHeaderReceived # noqa: Y015 -@typing.final -class DataStreamChunkReceived(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DataStreamChunkReceived(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - CHUNK_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - @property - def chunk(self) -> global___DataStream.Chunk: ... + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + CHUNK_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + @_builtins.property + def chunk(self) -> Global___DataStream.Chunk: ... def __init__( self, *, - participant_identity: builtins.str | None = ..., - chunk: global___DataStream.Chunk | None = ..., + participant_identity: _builtins.str | None = ..., + chunk: Global___DataStream.Chunk | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["chunk", b"chunk", "participant_identity", b"participant_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["chunk", b"chunk", "participant_identity", b"participant_identity"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["chunk", b"chunk", "participant_identity", b"participant_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["chunk", b"chunk", "participant_identity", b"participant_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DataStreamChunkReceived = DataStreamChunkReceived +Global___DataStreamChunkReceived: _TypeAlias = DataStreamChunkReceived # noqa: Y015 -@typing.final -class DataStreamTrailerReceived(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DataStreamTrailerReceived(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - TRAILER_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - @property - def trailer(self) -> global___DataStream.Trailer: ... + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + TRAILER_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + @_builtins.property + def trailer(self) -> Global___DataStream.Trailer: ... def __init__( self, *, - participant_identity: builtins.str | None = ..., - trailer: global___DataStream.Trailer | None = ..., + participant_identity: _builtins.str | None = ..., + trailer: Global___DataStream.Trailer | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "trailer", b"trailer"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "trailer", b"trailer"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "trailer", b"trailer"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "trailer", b"trailer"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DataStreamTrailerReceived = DataStreamTrailerReceived +Global___DataStreamTrailerReceived: _TypeAlias = DataStreamTrailerReceived # noqa: Y015 -@typing.final -class SendStreamHeaderRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SendStreamHeaderRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - HEADER_FIELD_NUMBER: builtins.int - DESTINATION_IDENTITIES_FIELD_NUMBER: builtins.int - SENDER_IDENTITY_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - sender_identity: builtins.str - request_async_id: builtins.int - @property - def header(self) -> global___DataStream.Header: ... - @property - def destination_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + HEADER_FIELD_NUMBER: _builtins.int + DESTINATION_IDENTITIES_FIELD_NUMBER: _builtins.int + SENDER_IDENTITY_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + sender_identity: _builtins.str + request_async_id: _builtins.int + @_builtins.property + def header(self) -> Global___DataStream.Header: ... + @_builtins.property + def destination_identities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - header: global___DataStream.Header | None = ..., - destination_identities: collections.abc.Iterable[builtins.str] | None = ..., - sender_identity: builtins.str | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + header: Global___DataStream.Header | None = ..., + destination_identities: _abc.Iterable[_builtins.str] | None = ..., + sender_identity: _builtins.str | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["header", b"header", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["destination_identities", b"destination_identities", "header", b"header", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["header", b"header", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["destination_identities", b"destination_identities", "header", b"header", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SendStreamHeaderRequest = SendStreamHeaderRequest +Global___SendStreamHeaderRequest: _TypeAlias = SendStreamHeaderRequest # noqa: Y015 -@typing.final -class SendStreamChunkRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SendStreamChunkRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - CHUNK_FIELD_NUMBER: builtins.int - DESTINATION_IDENTITIES_FIELD_NUMBER: builtins.int - SENDER_IDENTITY_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - sender_identity: builtins.str - request_async_id: builtins.int - @property - def chunk(self) -> global___DataStream.Chunk: ... - @property - def destination_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + CHUNK_FIELD_NUMBER: _builtins.int + DESTINATION_IDENTITIES_FIELD_NUMBER: _builtins.int + SENDER_IDENTITY_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + sender_identity: _builtins.str + request_async_id: _builtins.int + @_builtins.property + def chunk(self) -> Global___DataStream.Chunk: ... + @_builtins.property + def destination_identities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - chunk: global___DataStream.Chunk | None = ..., - destination_identities: collections.abc.Iterable[builtins.str] | None = ..., - sender_identity: builtins.str | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + chunk: Global___DataStream.Chunk | None = ..., + destination_identities: _abc.Iterable[_builtins.str] | None = ..., + sender_identity: _builtins.str | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["chunk", b"chunk", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["chunk", b"chunk", "destination_identities", b"destination_identities", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["chunk", b"chunk", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["chunk", b"chunk", "destination_identities", b"destination_identities", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SendStreamChunkRequest = SendStreamChunkRequest +Global___SendStreamChunkRequest: _TypeAlias = SendStreamChunkRequest # noqa: Y015 -@typing.final -class SendStreamTrailerRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SendStreamTrailerRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - TRAILER_FIELD_NUMBER: builtins.int - DESTINATION_IDENTITIES_FIELD_NUMBER: builtins.int - SENDER_IDENTITY_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - sender_identity: builtins.str - request_async_id: builtins.int - @property - def trailer(self) -> global___DataStream.Trailer: ... - @property - def destination_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + TRAILER_FIELD_NUMBER: _builtins.int + DESTINATION_IDENTITIES_FIELD_NUMBER: _builtins.int + SENDER_IDENTITY_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + sender_identity: _builtins.str + request_async_id: _builtins.int + @_builtins.property + def trailer(self) -> Global___DataStream.Trailer: ... + @_builtins.property + def destination_identities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - trailer: global___DataStream.Trailer | None = ..., - destination_identities: collections.abc.Iterable[builtins.str] | None = ..., - sender_identity: builtins.str | None = ..., - request_async_id: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + trailer: Global___DataStream.Trailer | None = ..., + destination_identities: _abc.Iterable[_builtins.str] | None = ..., + sender_identity: _builtins.str | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity", "trailer", b"trailer"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["destination_identities", b"destination_identities", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity", "trailer", b"trailer"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity", "trailer", b"trailer"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["destination_identities", b"destination_identities", "local_participant_handle", b"local_participant_handle", "request_async_id", b"request_async_id", "sender_identity", b"sender_identity", "trailer", b"trailer"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SendStreamTrailerRequest = SendStreamTrailerRequest +Global___SendStreamTrailerRequest: _TypeAlias = SendStreamTrailerRequest # noqa: Y015 -@typing.final -class SendStreamHeaderResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SendStreamHeaderResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SendStreamHeaderResponse = SendStreamHeaderResponse +Global___SendStreamHeaderResponse: _TypeAlias = SendStreamHeaderResponse # noqa: Y015 -@typing.final -class SendStreamChunkResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SendStreamChunkResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SendStreamChunkResponse = SendStreamChunkResponse +Global___SendStreamChunkResponse: _TypeAlias = SendStreamChunkResponse # noqa: Y015 -@typing.final -class SendStreamTrailerResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SendStreamTrailerResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SendStreamTrailerResponse = SendStreamTrailerResponse +Global___SendStreamTrailerResponse: _TypeAlias = SendStreamTrailerResponse # noqa: Y015 -@typing.final -class SendStreamHeaderCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SendStreamHeaderCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str def __init__( self, *, - async_id: builtins.int | None = ..., - error: builtins.str | None = ..., + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SendStreamHeaderCallback = SendStreamHeaderCallback +Global___SendStreamHeaderCallback: _TypeAlias = SendStreamHeaderCallback # noqa: Y015 -@typing.final -class SendStreamChunkCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SendStreamChunkCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str def __init__( self, *, - async_id: builtins.int | None = ..., - error: builtins.str | None = ..., + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SendStreamChunkCallback = SendStreamChunkCallback +Global___SendStreamChunkCallback: _TypeAlias = SendStreamChunkCallback # noqa: Y015 -@typing.final -class SendStreamTrailerCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SendStreamTrailerCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str def __init__( self, *, - async_id: builtins.int | None = ..., - error: builtins.str | None = ..., + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SendStreamTrailerCallback = SendStreamTrailerCallback +Global___SendStreamTrailerCallback: _TypeAlias = SendStreamTrailerCallback # noqa: Y015 -@typing.final -class SetDataChannelBufferedAmountLowThresholdRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SetDataChannelBufferedAmountLowThresholdRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - THRESHOLD_FIELD_NUMBER: builtins.int - KIND_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - threshold: builtins.int - kind: global___DataPacketKind.ValueType + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + THRESHOLD_FIELD_NUMBER: _builtins.int + KIND_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + threshold: _builtins.int + kind: Global___DataPacketKind.ValueType def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - threshold: builtins.int | None = ..., - kind: global___DataPacketKind.ValueType | None = ..., + local_participant_handle: _builtins.int | None = ..., + threshold: _builtins.int | None = ..., + kind: Global___DataPacketKind.ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["kind", b"kind", "local_participant_handle", b"local_participant_handle", "threshold", b"threshold"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["kind", b"kind", "local_participant_handle", b"local_participant_handle", "threshold", b"threshold"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "local_participant_handle", b"local_participant_handle", "threshold", b"threshold"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "local_participant_handle", b"local_participant_handle", "threshold", b"threshold"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetDataChannelBufferedAmountLowThresholdRequest = SetDataChannelBufferedAmountLowThresholdRequest +Global___SetDataChannelBufferedAmountLowThresholdRequest: _TypeAlias = SetDataChannelBufferedAmountLowThresholdRequest # noqa: Y015 -@typing.final -class SetDataChannelBufferedAmountLowThresholdResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SetDataChannelBufferedAmountLowThresholdResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetDataChannelBufferedAmountLowThresholdResponse = SetDataChannelBufferedAmountLowThresholdResponse +Global___SetDataChannelBufferedAmountLowThresholdResponse: _TypeAlias = SetDataChannelBufferedAmountLowThresholdResponse # noqa: Y015 -@typing.final -class DataChannelBufferedAmountLowThresholdChanged(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DataChannelBufferedAmountLowThresholdChanged(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KIND_FIELD_NUMBER: builtins.int - THRESHOLD_FIELD_NUMBER: builtins.int - kind: global___DataPacketKind.ValueType - threshold: builtins.int + KIND_FIELD_NUMBER: _builtins.int + THRESHOLD_FIELD_NUMBER: _builtins.int + kind: Global___DataPacketKind.ValueType + threshold: _builtins.int def __init__( self, *, - kind: global___DataPacketKind.ValueType | None = ..., - threshold: builtins.int | None = ..., + kind: Global___DataPacketKind.ValueType | None = ..., + threshold: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["kind", b"kind", "threshold", b"threshold"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["kind", b"kind", "threshold", b"threshold"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "threshold", b"threshold"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "threshold", b"threshold"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DataChannelBufferedAmountLowThresholdChanged = DataChannelBufferedAmountLowThresholdChanged +Global___DataChannelBufferedAmountLowThresholdChanged: _TypeAlias = DataChannelBufferedAmountLowThresholdChanged # noqa: Y015 -@typing.final -class ByteStreamOpened(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ByteStreamOpened(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - READER_FIELD_NUMBER: builtins.int - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - @property - def reader(self) -> data_stream_pb2.OwnedByteStreamReader: ... + READER_FIELD_NUMBER: _builtins.int + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + @_builtins.property + def reader(self) -> _data_stream_pb2.OwnedByteStreamReader: ... def __init__( self, *, - reader: data_stream_pb2.OwnedByteStreamReader | None = ..., - participant_identity: builtins.str | None = ..., + reader: _data_stream_pb2.OwnedByteStreamReader | None = ..., + participant_identity: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "reader", b"reader"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "reader", b"reader"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "reader", b"reader"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "reader", b"reader"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ByteStreamOpened = ByteStreamOpened +Global___ByteStreamOpened: _TypeAlias = ByteStreamOpened # noqa: Y015 -@typing.final -class TextStreamOpened(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class TextStreamOpened(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - READER_FIELD_NUMBER: builtins.int - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - @property - def reader(self) -> data_stream_pb2.OwnedTextStreamReader: ... + READER_FIELD_NUMBER: _builtins.int + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str + @_builtins.property + def reader(self) -> _data_stream_pb2.OwnedTextStreamReader: ... def __init__( self, *, - reader: data_stream_pb2.OwnedTextStreamReader | None = ..., - participant_identity: builtins.str | None = ..., + reader: _data_stream_pb2.OwnedTextStreamReader | None = ..., + participant_identity: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "reader", b"reader"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["participant_identity", b"participant_identity", "reader", b"reader"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "reader", b"reader"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["participant_identity", b"participant_identity", "reader", b"reader"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___TextStreamOpened = TextStreamOpened +Global___TextStreamOpened: _TypeAlias = TextStreamOpened # noqa: Y015 -@typing.final -class DataTrackPublished(google.protobuf.message.Message): +@_typing.final +class DataTrackPublished(_message.Message): """A remote participant published a data track.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TRACK_FIELD_NUMBER: builtins.int - @property - def track(self) -> data_track_pb2.OwnedRemoteDataTrack: ... + TRACK_FIELD_NUMBER: _builtins.int + @_builtins.property + def track(self) -> _data_track_pb2.OwnedRemoteDataTrack: ... def __init__( self, *, - track: data_track_pb2.OwnedRemoteDataTrack | None = ..., + track: _data_track_pb2.OwnedRemoteDataTrack | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["track", b"track"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["track", b"track"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["track", b"track"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["track", b"track"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DataTrackPublished = DataTrackPublished +Global___DataTrackPublished: _TypeAlias = DataTrackPublished # noqa: Y015 -@typing.final -class DataTrackUnpublished(google.protobuf.message.Message): +@_typing.final +class DataTrackUnpublished(_message.Message): """A remote participant unpublished a data track.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - SID_FIELD_NUMBER: builtins.int - sid: builtins.str + SID_FIELD_NUMBER: _builtins.int + sid: _builtins.str """SID of the track that was unpublished.""" def __init__( self, *, - sid: builtins.str | None = ..., + sid: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["sid", b"sid"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["sid", b"sid"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["sid", b"sid"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["sid", b"sid"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___DataTrackUnpublished = DataTrackUnpublished +Global___DataTrackUnpublished: _TypeAlias = DataTrackUnpublished # noqa: Y015 diff --git a/livekit-rtc/livekit/rtc/_proto/rpc_pb2.py b/livekit-rtc/livekit/rtc/_proto/rpc_pb2.py index a26363b1..cb8863e7 100644 --- a/livekit-rtc/livekit/rtc/_proto/rpc_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/rpc_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: rpc.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 4.25.2 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool diff --git a/livekit-rtc/livekit/rtc/_proto/rpc_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/rpc_pb2.pyi index 2d35cbae..06d46269 100644 --- a/livekit-rtc/livekit/rtc/_proto/rpc_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/rpc_pb2.pyi @@ -16,246 +16,289 @@ See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import google.protobuf.descriptor -import google.protobuf.message -import typing - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor - -@typing.final -class RpcError(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - CODE_FIELD_NUMBER: builtins.int - MESSAGE_FIELD_NUMBER: builtins.int - DATA_FIELD_NUMBER: builtins.int - code: builtins.int - message: builtins.str - data: builtins.str +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +import builtins as _builtins +import sys +import typing as _typing + +if sys.version_info >= (3, 11): + from typing import TypeAlias as _TypeAlias, Never as _Never +else: + from typing_extensions import TypeAlias as _TypeAlias, Never as _Never + +DESCRIPTOR: _descriptor.FileDescriptor + +@_typing.final +class RpcError(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + CODE_FIELD_NUMBER: _builtins.int + MESSAGE_FIELD_NUMBER: _builtins.int + DATA_FIELD_NUMBER: _builtins.int + code: _builtins.int + message: _builtins.str + data: _builtins.str def __init__( self, *, - code: builtins.int | None = ..., - message: builtins.str | None = ..., - data: builtins.str | None = ..., + code: _builtins.int | None = ..., + message: _builtins.str | None = ..., + data: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["code", b"code", "data", b"data", "message", b"message"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["code", b"code", "data", b"data", "message", b"message"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "data", b"data", "message", b"message"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["code", b"code", "data", b"data", "message", b"message"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RpcError = RpcError +Global___RpcError: _TypeAlias = RpcError # noqa: Y015 -@typing.final -class PerformRpcRequest(google.protobuf.message.Message): +@_typing.final +class PerformRpcRequest(_message.Message): """FFI Requests""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - DESTINATION_IDENTITY_FIELD_NUMBER: builtins.int - METHOD_FIELD_NUMBER: builtins.int - PAYLOAD_FIELD_NUMBER: builtins.int - RESPONSE_TIMEOUT_MS_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - MAX_ROUND_TRIP_LATENCY_MS_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 - max_round_trip_latency_ms: 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 + MAX_ROUND_TRIP_LATENCY_MS_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 + max_round_trip_latency_ms: _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 = ..., - max_round_trip_latency_ms: 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 = ..., + max_round_trip_latency_ms: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["destination_identity", b"destination_identity", "local_participant_handle", b"local_participant_handle", "max_round_trip_latency_ms", b"max_round_trip_latency_ms", "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", "max_round_trip_latency_ms", b"max_round_trip_latency_ms", "method", b"method", "payload", b"payload", "request_async_id", b"request_async_id", "response_timeout_ms", b"response_timeout_ms"]) -> None: ... - -global___PerformRpcRequest = PerformRpcRequest - -@typing.final -class RegisterRpcMethodRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - METHOD_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - method: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["destination_identity", b"destination_identity", "local_participant_handle", b"local_participant_handle", "max_round_trip_latency_ms", b"max_round_trip_latency_ms", "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", "max_round_trip_latency_ms", b"max_round_trip_latency_ms", "method", b"method", "payload", b"payload", "request_async_id", b"request_async_id", "response_timeout_ms", b"response_timeout_ms"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___PerformRpcRequest: _TypeAlias = PerformRpcRequest # noqa: Y015 + +@_typing.final +class RegisterRpcMethodRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + METHOD_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + method: _builtins.str def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - method: builtins.str | None = ..., + local_participant_handle: _builtins.int | None = ..., + method: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "method", b"method"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "method", b"method"]) -> None: ... - -global___RegisterRpcMethodRequest = RegisterRpcMethodRequest - -@typing.final -class UnregisterRpcMethodRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - METHOD_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - method: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "method", b"method"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "method", b"method"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___RegisterRpcMethodRequest: _TypeAlias = RegisterRpcMethodRequest # noqa: Y015 + +@_typing.final +class UnregisterRpcMethodRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + METHOD_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + method: _builtins.str def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - method: builtins.str | None = ..., + local_participant_handle: _builtins.int | None = ..., + method: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "method", b"method"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["local_participant_handle", b"local_participant_handle", "method", b"method"]) -> None: ... - -global___UnregisterRpcMethodRequest = UnregisterRpcMethodRequest - -@typing.final -class RpcMethodInvocationResponseRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - INVOCATION_ID_FIELD_NUMBER: builtins.int - PAYLOAD_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - invocation_id: builtins.int - payload: builtins.str - @property - def error(self) -> global___RpcError: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "method", b"method"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["local_participant_handle", b"local_participant_handle", "method", b"method"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___UnregisterRpcMethodRequest: _TypeAlias = UnregisterRpcMethodRequest # noqa: Y015 + +@_typing.final +class RpcMethodInvocationResponseRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + INVOCATION_ID_FIELD_NUMBER: _builtins.int + PAYLOAD_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + invocation_id: _builtins.int + payload: _builtins.str + @_builtins.property + def error(self) -> Global___RpcError: ... def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - invocation_id: builtins.int | None = ..., - payload: builtins.str | None = ..., - error: global___RpcError | None = ..., + local_participant_handle: _builtins.int | None = ..., + invocation_id: _builtins.int | None = ..., + payload: _builtins.str | None = ..., + error: Global___RpcError | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["error", b"error", "invocation_id", b"invocation_id", "local_participant_handle", b"local_participant_handle", "payload", b"payload"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["error", b"error", "invocation_id", b"invocation_id", "local_participant_handle", b"local_participant_handle", "payload", b"payload"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "invocation_id", b"invocation_id", "local_participant_handle", b"local_participant_handle", "payload", b"payload"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "invocation_id", b"invocation_id", "local_participant_handle", b"local_participant_handle", "payload", b"payload"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RpcMethodInvocationResponseRequest = RpcMethodInvocationResponseRequest +Global___RpcMethodInvocationResponseRequest: _TypeAlias = RpcMethodInvocationResponseRequest # noqa: Y015 -@typing.final -class PerformRpcResponse(google.protobuf.message.Message): +@_typing.final +class PerformRpcResponse(_message.Message): """FFI Responses""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___PerformRpcResponse = PerformRpcResponse +Global___PerformRpcResponse: _TypeAlias = PerformRpcResponse # noqa: Y015 -@typing.final -class RegisterRpcMethodResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class RegisterRpcMethodResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RegisterRpcMethodResponse = RegisterRpcMethodResponse +Global___RegisterRpcMethodResponse: _TypeAlias = RegisterRpcMethodResponse # noqa: Y015 -@typing.final -class UnregisterRpcMethodResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class UnregisterRpcMethodResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___UnregisterRpcMethodResponse = UnregisterRpcMethodResponse +Global___UnregisterRpcMethodResponse: _TypeAlias = UnregisterRpcMethodResponse # noqa: Y015 -@typing.final -class RpcMethodInvocationResponseResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class RpcMethodInvocationResponseResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ERROR_FIELD_NUMBER: builtins.int - error: builtins.str + ERROR_FIELD_NUMBER: _builtins.int + error: _builtins.str def __init__( self, *, - error: builtins.str | None = ..., + error: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["error", b"error"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RpcMethodInvocationResponseResponse = RpcMethodInvocationResponseResponse +Global___RpcMethodInvocationResponseResponse: _TypeAlias = RpcMethodInvocationResponseResponse # noqa: Y015 -@typing.final -class PerformRpcCallback(google.protobuf.message.Message): +@_typing.final +class PerformRpcCallback(_message.Message): """FFI Callbacks""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - PAYLOAD_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - payload: builtins.str - @property - def error(self) -> global___RpcError: ... + ASYNC_ID_FIELD_NUMBER: _builtins.int + PAYLOAD_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + payload: _builtins.str + @_builtins.property + def error(self) -> Global___RpcError: ... def __init__( self, *, - async_id: builtins.int | None = ..., - payload: builtins.str | None = ..., - error: global___RpcError | None = ..., + async_id: _builtins.int | None = ..., + payload: _builtins.str | None = ..., + error: Global___RpcError | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "payload", b"payload"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "payload", b"payload"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "payload", b"payload"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "payload", b"payload"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___PerformRpcCallback = PerformRpcCallback +Global___PerformRpcCallback: _TypeAlias = PerformRpcCallback # noqa: Y015 -@typing.final -class RpcMethodInvocationEvent(google.protobuf.message.Message): +@_typing.final +class RpcMethodInvocationEvent(_message.Message): """FFI Events""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - INVOCATION_ID_FIELD_NUMBER: builtins.int - METHOD_FIELD_NUMBER: builtins.int - REQUEST_ID_FIELD_NUMBER: builtins.int - CALLER_IDENTITY_FIELD_NUMBER: builtins.int - PAYLOAD_FIELD_NUMBER: builtins.int - RESPONSE_TIMEOUT_MS_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - invocation_id: builtins.int - method: builtins.str - request_id: builtins.str - caller_identity: builtins.str - payload: builtins.str - response_timeout_ms: builtins.int + DESCRIPTOR: _descriptor.Descriptor + + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + INVOCATION_ID_FIELD_NUMBER: _builtins.int + METHOD_FIELD_NUMBER: _builtins.int + REQUEST_ID_FIELD_NUMBER: _builtins.int + CALLER_IDENTITY_FIELD_NUMBER: _builtins.int + PAYLOAD_FIELD_NUMBER: _builtins.int + RESPONSE_TIMEOUT_MS_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + invocation_id: _builtins.int + method: _builtins.str + request_id: _builtins.str + caller_identity: _builtins.str + payload: _builtins.str + response_timeout_ms: _builtins.int def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - invocation_id: builtins.int | None = ..., - method: builtins.str | None = ..., - request_id: builtins.str | None = ..., - caller_identity: builtins.str | None = ..., - payload: builtins.str | None = ..., - response_timeout_ms: builtins.int | None = ..., + local_participant_handle: _builtins.int | None = ..., + invocation_id: _builtins.int | None = ..., + method: _builtins.str | None = ..., + request_id: _builtins.str | None = ..., + caller_identity: _builtins.str | None = ..., + payload: _builtins.str | None = ..., + response_timeout_ms: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["caller_identity", b"caller_identity", "invocation_id", b"invocation_id", "local_participant_handle", b"local_participant_handle", "method", b"method", "payload", b"payload", "request_id", b"request_id", "response_timeout_ms", b"response_timeout_ms"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["caller_identity", b"caller_identity", "invocation_id", b"invocation_id", "local_participant_handle", b"local_participant_handle", "method", b"method", "payload", b"payload", "request_id", b"request_id", "response_timeout_ms", b"response_timeout_ms"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["caller_identity", b"caller_identity", "invocation_id", b"invocation_id", "local_participant_handle", b"local_participant_handle", "method", b"method", "payload", b"payload", "request_id", b"request_id", "response_timeout_ms", b"response_timeout_ms"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["caller_identity", b"caller_identity", "invocation_id", b"invocation_id", "local_participant_handle", b"local_participant_handle", "method", b"method", "payload", b"payload", "request_id", b"request_id", "response_timeout_ms", b"response_timeout_ms"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___RpcMethodInvocationEvent = RpcMethodInvocationEvent +Global___RpcMethodInvocationEvent: _TypeAlias = RpcMethodInvocationEvent # noqa: Y015 diff --git a/livekit-rtc/livekit/rtc/_proto/stats_pb2.py b/livekit-rtc/livekit/rtc/_proto/stats_pb2.py index ce7b411c..cec59f65 100644 --- a/livekit-rtc/livekit/rtc/_proto/stats_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/stats_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: stats.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 4.25.2 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool diff --git a/livekit-rtc/livekit/rtc/_proto/stats_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/stats_pb2.pyi index a77c233e..01d6b974 100644 --- a/livekit-rtc/livekit/rtc/_proto/stats_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/stats_pb2.pyi @@ -16,28 +16,28 @@ See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message +from collections import abc as _abc +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +import builtins as _builtins import sys -import typing +import typing as _typing -if sys.version_info >= (3, 10): - import typing as typing_extensions +if sys.version_info >= (3, 11): + from typing import TypeAlias as _TypeAlias, Never as _Never else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias, Never as _Never -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor class _DataChannelState: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _DataChannelStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DataChannelState.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _DataChannelStateEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_DataChannelState.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor DC_CONNECTING: _DataChannelState.ValueType # 0 DC_OPEN: _DataChannelState.ValueType # 1 DC_CLOSING: _DataChannelState.ValueType # 2 @@ -49,14 +49,14 @@ DC_CONNECTING: DataChannelState.ValueType # 0 DC_OPEN: DataChannelState.ValueType # 1 DC_CLOSING: DataChannelState.ValueType # 2 DC_CLOSED: DataChannelState.ValueType # 3 -global___DataChannelState = DataChannelState +Global___DataChannelState: _TypeAlias = DataChannelState # noqa: Y015 class _QualityLimitationReason: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _QualityLimitationReasonEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_QualityLimitationReason.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _QualityLimitationReasonEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_QualityLimitationReason.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor LIMITATION_NONE: _QualityLimitationReason.ValueType # 0 LIMITATION_CPU: _QualityLimitationReason.ValueType # 1 LIMITATION_BANDWIDTH: _QualityLimitationReason.ValueType # 2 @@ -68,14 +68,14 @@ LIMITATION_NONE: QualityLimitationReason.ValueType # 0 LIMITATION_CPU: QualityLimitationReason.ValueType # 1 LIMITATION_BANDWIDTH: QualityLimitationReason.ValueType # 2 LIMITATION_OTHER: QualityLimitationReason.ValueType # 3 -global___QualityLimitationReason = QualityLimitationReason +Global___QualityLimitationReason: _TypeAlias = QualityLimitationReason # noqa: Y015 class _IceRole: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _IceRoleEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IceRole.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _IceRoleEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_IceRole.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor ICE_UNKNOWN: _IceRole.ValueType # 0 ICE_CONTROLLING: _IceRole.ValueType # 1 ICE_CONTROLLED: _IceRole.ValueType # 2 @@ -85,14 +85,14 @@ class IceRole(_IceRole, metaclass=_IceRoleEnumTypeWrapper): ... ICE_UNKNOWN: IceRole.ValueType # 0 ICE_CONTROLLING: IceRole.ValueType # 1 ICE_CONTROLLED: IceRole.ValueType # 2 -global___IceRole = IceRole +Global___IceRole: _TypeAlias = IceRole # noqa: Y015 class _DtlsTransportState: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _DtlsTransportStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DtlsTransportState.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _DtlsTransportStateEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_DtlsTransportState.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor DTLS_TRANSPORT_NEW: _DtlsTransportState.ValueType # 0 DTLS_TRANSPORT_CONNECTING: _DtlsTransportState.ValueType # 1 DTLS_TRANSPORT_CONNECTED: _DtlsTransportState.ValueType # 2 @@ -106,14 +106,14 @@ DTLS_TRANSPORT_CONNECTING: DtlsTransportState.ValueType # 1 DTLS_TRANSPORT_CONNECTED: DtlsTransportState.ValueType # 2 DTLS_TRANSPORT_CLOSED: DtlsTransportState.ValueType # 3 DTLS_TRANSPORT_FAILED: DtlsTransportState.ValueType # 4 -global___DtlsTransportState = DtlsTransportState +Global___DtlsTransportState: _TypeAlias = DtlsTransportState # noqa: Y015 class _IceTransportState: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _IceTransportStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IceTransportState.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _IceTransportStateEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_IceTransportState.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor ICE_TRANSPORT_NEW: _IceTransportState.ValueType # 0 ICE_TRANSPORT_CHECKING: _IceTransportState.ValueType # 1 ICE_TRANSPORT_CONNECTED: _IceTransportState.ValueType # 2 @@ -131,14 +131,14 @@ ICE_TRANSPORT_COMPLETED: IceTransportState.ValueType # 3 ICE_TRANSPORT_DISCONNECTED: IceTransportState.ValueType # 4 ICE_TRANSPORT_FAILED: IceTransportState.ValueType # 5 ICE_TRANSPORT_CLOSED: IceTransportState.ValueType # 6 -global___IceTransportState = IceTransportState +Global___IceTransportState: _TypeAlias = IceTransportState # noqa: Y015 class _DtlsRole: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _DtlsRoleEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DtlsRole.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _DtlsRoleEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_DtlsRole.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor DTLS_CLIENT: _DtlsRole.ValueType # 0 DTLS_SERVER: _DtlsRole.ValueType # 1 DTLS_UNKNOWN: _DtlsRole.ValueType # 2 @@ -148,14 +148,14 @@ class DtlsRole(_DtlsRole, metaclass=_DtlsRoleEnumTypeWrapper): ... DTLS_CLIENT: DtlsRole.ValueType # 0 DTLS_SERVER: DtlsRole.ValueType # 1 DTLS_UNKNOWN: DtlsRole.ValueType # 2 -global___DtlsRole = DtlsRole +Global___DtlsRole: _TypeAlias = DtlsRole # noqa: Y015 class _IceCandidatePairState: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _IceCandidatePairStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IceCandidatePairState.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _IceCandidatePairStateEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_IceCandidatePairState.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor PAIR_FROZEN: _IceCandidatePairState.ValueType # 0 PAIR_WAITING: _IceCandidatePairState.ValueType # 1 PAIR_IN_PROGRESS: _IceCandidatePairState.ValueType # 2 @@ -169,14 +169,14 @@ PAIR_WAITING: IceCandidatePairState.ValueType # 1 PAIR_IN_PROGRESS: IceCandidatePairState.ValueType # 2 PAIR_FAILED: IceCandidatePairState.ValueType # 3 PAIR_SUCCEEDED: IceCandidatePairState.ValueType # 4 -global___IceCandidatePairState = IceCandidatePairState +Global___IceCandidatePairState: _TypeAlias = IceCandidatePairState # noqa: Y015 class _IceCandidateType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _IceCandidateTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IceCandidateType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _IceCandidateTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_IceCandidateType.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor HOST: _IceCandidateType.ValueType # 0 SRFLX: _IceCandidateType.ValueType # 1 PRFLX: _IceCandidateType.ValueType # 2 @@ -188,14 +188,14 @@ HOST: IceCandidateType.ValueType # 0 SRFLX: IceCandidateType.ValueType # 1 PRFLX: IceCandidateType.ValueType # 2 RELAY: IceCandidateType.ValueType # 3 -global___IceCandidateType = IceCandidateType +Global___IceCandidateType: _TypeAlias = IceCandidateType # noqa: Y015 class _IceServerTransportProtocol: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _IceServerTransportProtocolEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IceServerTransportProtocol.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _IceServerTransportProtocolEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_IceServerTransportProtocol.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor TRANSPORT_UDP: _IceServerTransportProtocol.ValueType # 0 TRANSPORT_TCP: _IceServerTransportProtocol.ValueType # 1 TRANSPORT_TLS: _IceServerTransportProtocol.ValueType # 2 @@ -205,14 +205,14 @@ class IceServerTransportProtocol(_IceServerTransportProtocol, metaclass=_IceServ TRANSPORT_UDP: IceServerTransportProtocol.ValueType # 0 TRANSPORT_TCP: IceServerTransportProtocol.ValueType # 1 TRANSPORT_TLS: IceServerTransportProtocol.ValueType # 2 -global___IceServerTransportProtocol = IceServerTransportProtocol +Global___IceServerTransportProtocol: _TypeAlias = IceServerTransportProtocol # noqa: Y015 class _IceTcpCandidateType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _IceTcpCandidateTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IceTcpCandidateType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _IceTcpCandidateTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_IceTcpCandidateType.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor CANDIDATE_ACTIVE: _IceTcpCandidateType.ValueType # 0 CANDIDATE_PASSIVE: _IceTcpCandidateType.ValueType # 1 CANDIDATE_SO: _IceTcpCandidateType.ValueType # 2 @@ -222,1293 +222,1410 @@ class IceTcpCandidateType(_IceTcpCandidateType, metaclass=_IceTcpCandidateTypeEn CANDIDATE_ACTIVE: IceTcpCandidateType.ValueType # 0 CANDIDATE_PASSIVE: IceTcpCandidateType.ValueType # 1 CANDIDATE_SO: IceTcpCandidateType.ValueType # 2 -global___IceTcpCandidateType = IceTcpCandidateType - -@typing.final -class RtcStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class Codec(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - CODEC_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def codec(self) -> global___CodecStats: ... +Global___IceTcpCandidateType: _TypeAlias = IceTcpCandidateType # noqa: Y015 + +@_typing.final +class RtcStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class Codec(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RTC_FIELD_NUMBER: _builtins.int + CODEC_FIELD_NUMBER: _builtins.int + @_builtins.property + def rtc(self) -> Global___RtcStatsData: ... + @_builtins.property + def codec(self) -> Global___CodecStats: ... def __init__( self, *, - rtc: global___RtcStatsData | None = ..., - codec: global___CodecStats | None = ..., + rtc: Global___RtcStatsData | None = ..., + codec: Global___CodecStats | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["codec", b"codec", "rtc", b"rtc"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["codec", b"codec", "rtc", b"rtc"]) -> None: ... - - @typing.final - class InboundRtp(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - STREAM_FIELD_NUMBER: builtins.int - RECEIVED_FIELD_NUMBER: builtins.int - INBOUND_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def stream(self) -> global___RtpStreamStats: ... - @property - def received(self) -> global___ReceivedRtpStreamStats: ... - @property - def inbound(self) -> global___InboundRtpStreamStats: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["codec", b"codec", "rtc", b"rtc"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["codec", b"codec", "rtc", b"rtc"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class InboundRtp(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RTC_FIELD_NUMBER: _builtins.int + STREAM_FIELD_NUMBER: _builtins.int + RECEIVED_FIELD_NUMBER: _builtins.int + INBOUND_FIELD_NUMBER: _builtins.int + @_builtins.property + def rtc(self) -> Global___RtcStatsData: ... + @_builtins.property + def stream(self) -> Global___RtpStreamStats: ... + @_builtins.property + def received(self) -> Global___ReceivedRtpStreamStats: ... + @_builtins.property + def inbound(self) -> Global___InboundRtpStreamStats: ... def __init__( self, *, - rtc: global___RtcStatsData | None = ..., - stream: global___RtpStreamStats | None = ..., - received: global___ReceivedRtpStreamStats | None = ..., - inbound: global___InboundRtpStreamStats | None = ..., + rtc: Global___RtcStatsData | None = ..., + stream: Global___RtpStreamStats | None = ..., + received: Global___ReceivedRtpStreamStats | None = ..., + inbound: Global___InboundRtpStreamStats | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["inbound", b"inbound", "received", b"received", "rtc", b"rtc", "stream", b"stream"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["inbound", b"inbound", "received", b"received", "rtc", b"rtc", "stream", b"stream"]) -> None: ... - - @typing.final - class OutboundRtp(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - STREAM_FIELD_NUMBER: builtins.int - SENT_FIELD_NUMBER: builtins.int - OUTBOUND_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def stream(self) -> global___RtpStreamStats: ... - @property - def sent(self) -> global___SentRtpStreamStats: ... - @property - def outbound(self) -> global___OutboundRtpStreamStats: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["inbound", b"inbound", "received", b"received", "rtc", b"rtc", "stream", b"stream"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["inbound", b"inbound", "received", b"received", "rtc", b"rtc", "stream", b"stream"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class OutboundRtp(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RTC_FIELD_NUMBER: _builtins.int + STREAM_FIELD_NUMBER: _builtins.int + SENT_FIELD_NUMBER: _builtins.int + OUTBOUND_FIELD_NUMBER: _builtins.int + @_builtins.property + def rtc(self) -> Global___RtcStatsData: ... + @_builtins.property + def stream(self) -> Global___RtpStreamStats: ... + @_builtins.property + def sent(self) -> Global___SentRtpStreamStats: ... + @_builtins.property + def outbound(self) -> Global___OutboundRtpStreamStats: ... def __init__( self, *, - rtc: global___RtcStatsData | None = ..., - stream: global___RtpStreamStats | None = ..., - sent: global___SentRtpStreamStats | None = ..., - outbound: global___OutboundRtpStreamStats | None = ..., + rtc: Global___RtcStatsData | None = ..., + stream: Global___RtpStreamStats | None = ..., + sent: Global___SentRtpStreamStats | None = ..., + outbound: Global___OutboundRtpStreamStats | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["outbound", b"outbound", "rtc", b"rtc", "sent", b"sent", "stream", b"stream"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["outbound", b"outbound", "rtc", b"rtc", "sent", b"sent", "stream", b"stream"]) -> None: ... - - @typing.final - class RemoteInboundRtp(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - STREAM_FIELD_NUMBER: builtins.int - RECEIVED_FIELD_NUMBER: builtins.int - REMOTE_INBOUND_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def stream(self) -> global___RtpStreamStats: ... - @property - def received(self) -> global___ReceivedRtpStreamStats: ... - @property - def remote_inbound(self) -> global___RemoteInboundRtpStreamStats: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["outbound", b"outbound", "rtc", b"rtc", "sent", b"sent", "stream", b"stream"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["outbound", b"outbound", "rtc", b"rtc", "sent", b"sent", "stream", b"stream"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class RemoteInboundRtp(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RTC_FIELD_NUMBER: _builtins.int + STREAM_FIELD_NUMBER: _builtins.int + RECEIVED_FIELD_NUMBER: _builtins.int + REMOTE_INBOUND_FIELD_NUMBER: _builtins.int + @_builtins.property + def rtc(self) -> Global___RtcStatsData: ... + @_builtins.property + def stream(self) -> Global___RtpStreamStats: ... + @_builtins.property + def received(self) -> Global___ReceivedRtpStreamStats: ... + @_builtins.property + def remote_inbound(self) -> Global___RemoteInboundRtpStreamStats: ... def __init__( self, *, - rtc: global___RtcStatsData | None = ..., - stream: global___RtpStreamStats | None = ..., - received: global___ReceivedRtpStreamStats | None = ..., - remote_inbound: global___RemoteInboundRtpStreamStats | None = ..., + rtc: Global___RtcStatsData | None = ..., + stream: Global___RtpStreamStats | None = ..., + received: Global___ReceivedRtpStreamStats | None = ..., + remote_inbound: Global___RemoteInboundRtpStreamStats | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["received", b"received", "remote_inbound", b"remote_inbound", "rtc", b"rtc", "stream", b"stream"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["received", b"received", "remote_inbound", b"remote_inbound", "rtc", b"rtc", "stream", b"stream"]) -> None: ... - - @typing.final - class RemoteOutboundRtp(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - STREAM_FIELD_NUMBER: builtins.int - SENT_FIELD_NUMBER: builtins.int - REMOTE_OUTBOUND_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def stream(self) -> global___RtpStreamStats: ... - @property - def sent(self) -> global___SentRtpStreamStats: ... - @property - def remote_outbound(self) -> global___RemoteOutboundRtpStreamStats: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["received", b"received", "remote_inbound", b"remote_inbound", "rtc", b"rtc", "stream", b"stream"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["received", b"received", "remote_inbound", b"remote_inbound", "rtc", b"rtc", "stream", b"stream"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class RemoteOutboundRtp(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RTC_FIELD_NUMBER: _builtins.int + STREAM_FIELD_NUMBER: _builtins.int + SENT_FIELD_NUMBER: _builtins.int + REMOTE_OUTBOUND_FIELD_NUMBER: _builtins.int + @_builtins.property + def rtc(self) -> Global___RtcStatsData: ... + @_builtins.property + def stream(self) -> Global___RtpStreamStats: ... + @_builtins.property + def sent(self) -> Global___SentRtpStreamStats: ... + @_builtins.property + def remote_outbound(self) -> Global___RemoteOutboundRtpStreamStats: ... def __init__( self, *, - rtc: global___RtcStatsData | None = ..., - stream: global___RtpStreamStats | None = ..., - sent: global___SentRtpStreamStats | None = ..., - remote_outbound: global___RemoteOutboundRtpStreamStats | None = ..., + rtc: Global___RtcStatsData | None = ..., + stream: Global___RtpStreamStats | None = ..., + sent: Global___SentRtpStreamStats | None = ..., + remote_outbound: Global___RemoteOutboundRtpStreamStats | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["remote_outbound", b"remote_outbound", "rtc", b"rtc", "sent", b"sent", "stream", b"stream"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["remote_outbound", b"remote_outbound", "rtc", b"rtc", "sent", b"sent", "stream", b"stream"]) -> None: ... - - @typing.final - class MediaSource(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - SOURCE_FIELD_NUMBER: builtins.int - AUDIO_FIELD_NUMBER: builtins.int - VIDEO_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def source(self) -> global___MediaSourceStats: ... - @property - def audio(self) -> global___AudioSourceStats: ... - @property - def video(self) -> global___VideoSourceStats: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["remote_outbound", b"remote_outbound", "rtc", b"rtc", "sent", b"sent", "stream", b"stream"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["remote_outbound", b"remote_outbound", "rtc", b"rtc", "sent", b"sent", "stream", b"stream"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class MediaSource(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RTC_FIELD_NUMBER: _builtins.int + SOURCE_FIELD_NUMBER: _builtins.int + AUDIO_FIELD_NUMBER: _builtins.int + VIDEO_FIELD_NUMBER: _builtins.int + @_builtins.property + def rtc(self) -> Global___RtcStatsData: ... + @_builtins.property + def source(self) -> Global___MediaSourceStats: ... + @_builtins.property + def audio(self) -> Global___AudioSourceStats: ... + @_builtins.property + def video(self) -> Global___VideoSourceStats: ... def __init__( self, *, - rtc: global___RtcStatsData | None = ..., - source: global___MediaSourceStats | None = ..., - audio: global___AudioSourceStats | None = ..., - video: global___VideoSourceStats | None = ..., + rtc: Global___RtcStatsData | None = ..., + source: Global___MediaSourceStats | None = ..., + audio: Global___AudioSourceStats | None = ..., + video: Global___VideoSourceStats | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["audio", b"audio", "rtc", b"rtc", "source", b"source", "video", b"video"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["audio", b"audio", "rtc", b"rtc", "source", b"source", "video", b"video"]) -> None: ... - - @typing.final - class MediaPlayout(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - AUDIO_PLAYOUT_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def audio_playout(self) -> global___AudioPlayoutStats: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["audio", b"audio", "rtc", b"rtc", "source", b"source", "video", b"video"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["audio", b"audio", "rtc", b"rtc", "source", b"source", "video", b"video"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class MediaPlayout(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RTC_FIELD_NUMBER: _builtins.int + AUDIO_PLAYOUT_FIELD_NUMBER: _builtins.int + @_builtins.property + def rtc(self) -> Global___RtcStatsData: ... + @_builtins.property + def audio_playout(self) -> Global___AudioPlayoutStats: ... def __init__( self, *, - rtc: global___RtcStatsData | None = ..., - audio_playout: global___AudioPlayoutStats | None = ..., + rtc: Global___RtcStatsData | None = ..., + audio_playout: Global___AudioPlayoutStats | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["audio_playout", b"audio_playout", "rtc", b"rtc"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["audio_playout", b"audio_playout", "rtc", b"rtc"]) -> None: ... - - @typing.final - class PeerConnection(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - PC_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def pc(self) -> global___PeerConnectionStats: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["audio_playout", b"audio_playout", "rtc", b"rtc"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["audio_playout", b"audio_playout", "rtc", b"rtc"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class PeerConnection(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RTC_FIELD_NUMBER: _builtins.int + PC_FIELD_NUMBER: _builtins.int + @_builtins.property + def rtc(self) -> Global___RtcStatsData: ... + @_builtins.property + def pc(self) -> Global___PeerConnectionStats: ... def __init__( self, *, - rtc: global___RtcStatsData | None = ..., - pc: global___PeerConnectionStats | None = ..., + rtc: Global___RtcStatsData | None = ..., + pc: Global___PeerConnectionStats | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["pc", b"pc", "rtc", b"rtc"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["pc", b"pc", "rtc", b"rtc"]) -> None: ... - - @typing.final - class DataChannel(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - DC_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def dc(self) -> global___DataChannelStats: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pc", b"pc", "rtc", b"rtc"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["pc", b"pc", "rtc", b"rtc"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class DataChannel(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RTC_FIELD_NUMBER: _builtins.int + DC_FIELD_NUMBER: _builtins.int + @_builtins.property + def rtc(self) -> Global___RtcStatsData: ... + @_builtins.property + def dc(self) -> Global___DataChannelStats: ... def __init__( self, *, - rtc: global___RtcStatsData | None = ..., - dc: global___DataChannelStats | None = ..., + rtc: Global___RtcStatsData | None = ..., + dc: Global___DataChannelStats | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["dc", b"dc", "rtc", b"rtc"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["dc", b"dc", "rtc", b"rtc"]) -> None: ... - - @typing.final - class Transport(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - TRANSPORT_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def transport(self) -> global___TransportStats: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["dc", b"dc", "rtc", b"rtc"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["dc", b"dc", "rtc", b"rtc"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class Transport(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RTC_FIELD_NUMBER: _builtins.int + TRANSPORT_FIELD_NUMBER: _builtins.int + @_builtins.property + def rtc(self) -> Global___RtcStatsData: ... + @_builtins.property + def transport(self) -> Global___TransportStats: ... def __init__( self, *, - rtc: global___RtcStatsData | None = ..., - transport: global___TransportStats | None = ..., + rtc: Global___RtcStatsData | None = ..., + transport: Global___TransportStats | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["rtc", b"rtc", "transport", b"transport"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["rtc", b"rtc", "transport", b"transport"]) -> None: ... - - @typing.final - class CandidatePair(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - CANDIDATE_PAIR_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def candidate_pair(self) -> global___CandidatePairStats: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["rtc", b"rtc", "transport", b"transport"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["rtc", b"rtc", "transport", b"transport"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class CandidatePair(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RTC_FIELD_NUMBER: _builtins.int + CANDIDATE_PAIR_FIELD_NUMBER: _builtins.int + @_builtins.property + def rtc(self) -> Global___RtcStatsData: ... + @_builtins.property + def candidate_pair(self) -> Global___CandidatePairStats: ... def __init__( self, *, - rtc: global___RtcStatsData | None = ..., - candidate_pair: global___CandidatePairStats | None = ..., + rtc: Global___RtcStatsData | None = ..., + candidate_pair: Global___CandidatePairStats | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["candidate_pair", b"candidate_pair", "rtc", b"rtc"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["candidate_pair", b"candidate_pair", "rtc", b"rtc"]) -> None: ... - - @typing.final - class LocalCandidate(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - CANDIDATE_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def candidate(self) -> global___IceCandidateStats: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["candidate_pair", b"candidate_pair", "rtc", b"rtc"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["candidate_pair", b"candidate_pair", "rtc", b"rtc"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class LocalCandidate(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RTC_FIELD_NUMBER: _builtins.int + CANDIDATE_FIELD_NUMBER: _builtins.int + @_builtins.property + def rtc(self) -> Global___RtcStatsData: ... + @_builtins.property + def candidate(self) -> Global___IceCandidateStats: ... def __init__( self, *, - rtc: global___RtcStatsData | None = ..., - candidate: global___IceCandidateStats | None = ..., + rtc: Global___RtcStatsData | None = ..., + candidate: Global___IceCandidateStats | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["candidate", b"candidate", "rtc", b"rtc"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["candidate", b"candidate", "rtc", b"rtc"]) -> None: ... - - @typing.final - class RemoteCandidate(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - CANDIDATE_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def candidate(self) -> global___IceCandidateStats: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["candidate", b"candidate", "rtc", b"rtc"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["candidate", b"candidate", "rtc", b"rtc"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class RemoteCandidate(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RTC_FIELD_NUMBER: _builtins.int + CANDIDATE_FIELD_NUMBER: _builtins.int + @_builtins.property + def rtc(self) -> Global___RtcStatsData: ... + @_builtins.property + def candidate(self) -> Global___IceCandidateStats: ... def __init__( self, *, - rtc: global___RtcStatsData | None = ..., - candidate: global___IceCandidateStats | None = ..., + rtc: Global___RtcStatsData | None = ..., + candidate: Global___IceCandidateStats | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["candidate", b"candidate", "rtc", b"rtc"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["candidate", b"candidate", "rtc", b"rtc"]) -> None: ... - - @typing.final - class Certificate(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - CERTIFICATE_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def certificate(self) -> global___CertificateStats: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["candidate", b"candidate", "rtc", b"rtc"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["candidate", b"candidate", "rtc", b"rtc"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class Certificate(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RTC_FIELD_NUMBER: _builtins.int + CERTIFICATE_FIELD_NUMBER: _builtins.int + @_builtins.property + def rtc(self) -> Global___RtcStatsData: ... + @_builtins.property + def certificate(self) -> Global___CertificateStats: ... def __init__( self, *, - rtc: global___RtcStatsData | None = ..., - certificate: global___CertificateStats | None = ..., + rtc: Global___RtcStatsData | None = ..., + certificate: Global___CertificateStats | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["certificate", b"certificate", "rtc", b"rtc"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["certificate", b"certificate", "rtc", b"rtc"]) -> None: ... - - @typing.final - class Stream(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - STREAM_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def stream(self) -> global___StreamStats: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["certificate", b"certificate", "rtc", b"rtc"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["certificate", b"certificate", "rtc", b"rtc"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class Stream(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RTC_FIELD_NUMBER: _builtins.int + STREAM_FIELD_NUMBER: _builtins.int + @_builtins.property + def rtc(self) -> Global___RtcStatsData: ... + @_builtins.property + def stream(self) -> Global___StreamStats: ... def __init__( self, *, - rtc: global___RtcStatsData | None = ..., - stream: global___StreamStats | None = ..., + rtc: Global___RtcStatsData | None = ..., + stream: Global___StreamStats | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["rtc", b"rtc", "stream", b"stream"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["rtc", b"rtc", "stream", b"stream"]) -> None: ... - - @typing.final - class Track(google.protobuf.message.Message): + _HasFieldArgType: _TypeAlias = _typing.Literal["rtc", b"rtc", "stream", b"stream"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["rtc", b"rtc", "stream", b"stream"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + @_typing.final + class Track(_message.Message): """Deprecated""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... - - CODEC_FIELD_NUMBER: builtins.int - INBOUND_RTP_FIELD_NUMBER: builtins.int - OUTBOUND_RTP_FIELD_NUMBER: builtins.int - REMOTE_INBOUND_RTP_FIELD_NUMBER: builtins.int - REMOTE_OUTBOUND_RTP_FIELD_NUMBER: builtins.int - MEDIA_SOURCE_FIELD_NUMBER: builtins.int - MEDIA_PLAYOUT_FIELD_NUMBER: builtins.int - PEER_CONNECTION_FIELD_NUMBER: builtins.int - DATA_CHANNEL_FIELD_NUMBER: builtins.int - TRANSPORT_FIELD_NUMBER: builtins.int - CANDIDATE_PAIR_FIELD_NUMBER: builtins.int - LOCAL_CANDIDATE_FIELD_NUMBER: builtins.int - REMOTE_CANDIDATE_FIELD_NUMBER: builtins.int - CERTIFICATE_FIELD_NUMBER: builtins.int - STREAM_FIELD_NUMBER: builtins.int - TRACK_FIELD_NUMBER: builtins.int - @property - def codec(self) -> global___RtcStats.Codec: ... - @property - def inbound_rtp(self) -> global___RtcStats.InboundRtp: ... - @property - def outbound_rtp(self) -> global___RtcStats.OutboundRtp: ... - @property - def remote_inbound_rtp(self) -> global___RtcStats.RemoteInboundRtp: ... - @property - def remote_outbound_rtp(self) -> global___RtcStats.RemoteOutboundRtp: ... - @property - def media_source(self) -> global___RtcStats.MediaSource: ... - @property - def media_playout(self) -> global___RtcStats.MediaPlayout: ... - @property - def peer_connection(self) -> global___RtcStats.PeerConnection: ... - @property - def data_channel(self) -> global___RtcStats.DataChannel: ... - @property - def transport(self) -> global___RtcStats.Transport: ... - @property - def candidate_pair(self) -> global___RtcStats.CandidatePair: ... - @property - def local_candidate(self) -> global___RtcStats.LocalCandidate: ... - @property - def remote_candidate(self) -> global___RtcStats.RemoteCandidate: ... - @property - def certificate(self) -> global___RtcStats.Certificate: ... - @property - def stream(self) -> global___RtcStats.Stream: ... - @property - def track(self) -> global___RtcStats.Track: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + CODEC_FIELD_NUMBER: _builtins.int + INBOUND_RTP_FIELD_NUMBER: _builtins.int + OUTBOUND_RTP_FIELD_NUMBER: _builtins.int + REMOTE_INBOUND_RTP_FIELD_NUMBER: _builtins.int + REMOTE_OUTBOUND_RTP_FIELD_NUMBER: _builtins.int + MEDIA_SOURCE_FIELD_NUMBER: _builtins.int + MEDIA_PLAYOUT_FIELD_NUMBER: _builtins.int + PEER_CONNECTION_FIELD_NUMBER: _builtins.int + DATA_CHANNEL_FIELD_NUMBER: _builtins.int + TRANSPORT_FIELD_NUMBER: _builtins.int + CANDIDATE_PAIR_FIELD_NUMBER: _builtins.int + LOCAL_CANDIDATE_FIELD_NUMBER: _builtins.int + REMOTE_CANDIDATE_FIELD_NUMBER: _builtins.int + CERTIFICATE_FIELD_NUMBER: _builtins.int + STREAM_FIELD_NUMBER: _builtins.int + TRACK_FIELD_NUMBER: _builtins.int + @_builtins.property + def codec(self) -> Global___RtcStats.Codec: ... + @_builtins.property + def inbound_rtp(self) -> Global___RtcStats.InboundRtp: ... + @_builtins.property + def outbound_rtp(self) -> Global___RtcStats.OutboundRtp: ... + @_builtins.property + def remote_inbound_rtp(self) -> Global___RtcStats.RemoteInboundRtp: ... + @_builtins.property + def remote_outbound_rtp(self) -> Global___RtcStats.RemoteOutboundRtp: ... + @_builtins.property + def media_source(self) -> Global___RtcStats.MediaSource: ... + @_builtins.property + def media_playout(self) -> Global___RtcStats.MediaPlayout: ... + @_builtins.property + def peer_connection(self) -> Global___RtcStats.PeerConnection: ... + @_builtins.property + def data_channel(self) -> Global___RtcStats.DataChannel: ... + @_builtins.property + def transport(self) -> Global___RtcStats.Transport: ... + @_builtins.property + def candidate_pair(self) -> Global___RtcStats.CandidatePair: ... + @_builtins.property + def local_candidate(self) -> Global___RtcStats.LocalCandidate: ... + @_builtins.property + def remote_candidate(self) -> Global___RtcStats.RemoteCandidate: ... + @_builtins.property + def certificate(self) -> Global___RtcStats.Certificate: ... + @_builtins.property + def stream(self) -> Global___RtcStats.Stream: ... + @_builtins.property + def track(self) -> Global___RtcStats.Track: ... def __init__( self, *, - codec: global___RtcStats.Codec | None = ..., - inbound_rtp: global___RtcStats.InboundRtp | None = ..., - outbound_rtp: global___RtcStats.OutboundRtp | None = ..., - remote_inbound_rtp: global___RtcStats.RemoteInboundRtp | None = ..., - remote_outbound_rtp: global___RtcStats.RemoteOutboundRtp | None = ..., - media_source: global___RtcStats.MediaSource | None = ..., - media_playout: global___RtcStats.MediaPlayout | None = ..., - peer_connection: global___RtcStats.PeerConnection | None = ..., - data_channel: global___RtcStats.DataChannel | None = ..., - transport: global___RtcStats.Transport | None = ..., - candidate_pair: global___RtcStats.CandidatePair | None = ..., - local_candidate: global___RtcStats.LocalCandidate | None = ..., - remote_candidate: global___RtcStats.RemoteCandidate | None = ..., - certificate: global___RtcStats.Certificate | None = ..., - stream: global___RtcStats.Stream | None = ..., - track: global___RtcStats.Track | None = ..., + codec: Global___RtcStats.Codec | None = ..., + inbound_rtp: Global___RtcStats.InboundRtp | None = ..., + outbound_rtp: Global___RtcStats.OutboundRtp | None = ..., + remote_inbound_rtp: Global___RtcStats.RemoteInboundRtp | None = ..., + remote_outbound_rtp: Global___RtcStats.RemoteOutboundRtp | None = ..., + media_source: Global___RtcStats.MediaSource | None = ..., + media_playout: Global___RtcStats.MediaPlayout | None = ..., + peer_connection: Global___RtcStats.PeerConnection | None = ..., + data_channel: Global___RtcStats.DataChannel | None = ..., + transport: Global___RtcStats.Transport | None = ..., + candidate_pair: Global___RtcStats.CandidatePair | None = ..., + local_candidate: Global___RtcStats.LocalCandidate | None = ..., + remote_candidate: Global___RtcStats.RemoteCandidate | None = ..., + certificate: Global___RtcStats.Certificate | None = ..., + stream: Global___RtcStats.Stream | None = ..., + track: Global___RtcStats.Track | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["candidate_pair", b"candidate_pair", "certificate", b"certificate", "codec", b"codec", "data_channel", b"data_channel", "inbound_rtp", b"inbound_rtp", "local_candidate", b"local_candidate", "media_playout", b"media_playout", "media_source", b"media_source", "outbound_rtp", b"outbound_rtp", "peer_connection", b"peer_connection", "remote_candidate", b"remote_candidate", "remote_inbound_rtp", b"remote_inbound_rtp", "remote_outbound_rtp", b"remote_outbound_rtp", "stats", b"stats", "stream", b"stream", "track", b"track", "transport", b"transport"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["candidate_pair", b"candidate_pair", "certificate", b"certificate", "codec", b"codec", "data_channel", b"data_channel", "inbound_rtp", b"inbound_rtp", "local_candidate", b"local_candidate", "media_playout", b"media_playout", "media_source", b"media_source", "outbound_rtp", b"outbound_rtp", "peer_connection", b"peer_connection", "remote_candidate", b"remote_candidate", "remote_inbound_rtp", b"remote_inbound_rtp", "remote_outbound_rtp", b"remote_outbound_rtp", "stats", b"stats", "stream", b"stream", "track", b"track", "transport", b"transport"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["stats", b"stats"]) -> typing.Literal["codec", "inbound_rtp", "outbound_rtp", "remote_inbound_rtp", "remote_outbound_rtp", "media_source", "media_playout", "peer_connection", "data_channel", "transport", "candidate_pair", "local_candidate", "remote_candidate", "certificate", "stream", "track"] | None: ... - -global___RtcStats = RtcStats - -@typing.final -class RtcStatsData(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ID_FIELD_NUMBER: builtins.int - TIMESTAMP_FIELD_NUMBER: builtins.int - id: builtins.str - timestamp: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["candidate_pair", b"candidate_pair", "certificate", b"certificate", "codec", b"codec", "data_channel", b"data_channel", "inbound_rtp", b"inbound_rtp", "local_candidate", b"local_candidate", "media_playout", b"media_playout", "media_source", b"media_source", "outbound_rtp", b"outbound_rtp", "peer_connection", b"peer_connection", "remote_candidate", b"remote_candidate", "remote_inbound_rtp", b"remote_inbound_rtp", "remote_outbound_rtp", b"remote_outbound_rtp", "stats", b"stats", "stream", b"stream", "track", b"track", "transport", b"transport"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["candidate_pair", b"candidate_pair", "certificate", b"certificate", "codec", b"codec", "data_channel", b"data_channel", "inbound_rtp", b"inbound_rtp", "local_candidate", b"local_candidate", "media_playout", b"media_playout", "media_source", b"media_source", "outbound_rtp", b"outbound_rtp", "peer_connection", b"peer_connection", "remote_candidate", b"remote_candidate", "remote_inbound_rtp", b"remote_inbound_rtp", "remote_outbound_rtp", b"remote_outbound_rtp", "stats", b"stats", "stream", b"stream", "track", b"track", "transport", b"transport"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_stats: _TypeAlias = _typing.Literal["codec", "inbound_rtp", "outbound_rtp", "remote_inbound_rtp", "remote_outbound_rtp", "media_source", "media_playout", "peer_connection", "data_channel", "transport", "candidate_pair", "local_candidate", "remote_candidate", "certificate", "stream", "track"] # noqa: Y015 + _WhichOneofArgType_stats: _TypeAlias = _typing.Literal["stats", b"stats"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_stats) -> _WhichOneofReturnType_stats | None: ... + +Global___RtcStats: _TypeAlias = RtcStats # noqa: Y015 + +@_typing.final +class RtcStatsData(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ID_FIELD_NUMBER: _builtins.int + TIMESTAMP_FIELD_NUMBER: _builtins.int + id: _builtins.str + timestamp: _builtins.int def __init__( self, *, - id: builtins.str | None = ..., - timestamp: builtins.int | None = ..., + id: _builtins.str | None = ..., + timestamp: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["id", b"id", "timestamp", b"timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["id", b"id", "timestamp", b"timestamp"]) -> None: ... - -global___RtcStatsData = RtcStatsData - -@typing.final -class CodecStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PAYLOAD_TYPE_FIELD_NUMBER: builtins.int - TRANSPORT_ID_FIELD_NUMBER: builtins.int - MIME_TYPE_FIELD_NUMBER: builtins.int - CLOCK_RATE_FIELD_NUMBER: builtins.int - CHANNELS_FIELD_NUMBER: builtins.int - SDP_FMTP_LINE_FIELD_NUMBER: builtins.int - payload_type: builtins.int - transport_id: builtins.str - mime_type: builtins.str - clock_rate: builtins.int - channels: builtins.int - sdp_fmtp_line: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["id", b"id", "timestamp", b"timestamp"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["id", b"id", "timestamp", b"timestamp"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___RtcStatsData: _TypeAlias = RtcStatsData # noqa: Y015 + +@_typing.final +class CodecStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PAYLOAD_TYPE_FIELD_NUMBER: _builtins.int + TRANSPORT_ID_FIELD_NUMBER: _builtins.int + MIME_TYPE_FIELD_NUMBER: _builtins.int + CLOCK_RATE_FIELD_NUMBER: _builtins.int + CHANNELS_FIELD_NUMBER: _builtins.int + SDP_FMTP_LINE_FIELD_NUMBER: _builtins.int + payload_type: _builtins.int + transport_id: _builtins.str + mime_type: _builtins.str + clock_rate: _builtins.int + channels: _builtins.int + sdp_fmtp_line: _builtins.str def __init__( self, *, - payload_type: builtins.int | None = ..., - transport_id: builtins.str | None = ..., - mime_type: builtins.str | None = ..., - clock_rate: builtins.int | None = ..., - channels: builtins.int | None = ..., - sdp_fmtp_line: builtins.str | None = ..., + payload_type: _builtins.int | None = ..., + transport_id: _builtins.str | None = ..., + mime_type: _builtins.str | None = ..., + clock_rate: _builtins.int | None = ..., + channels: _builtins.int | None = ..., + sdp_fmtp_line: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["channels", b"channels", "clock_rate", b"clock_rate", "mime_type", b"mime_type", "payload_type", b"payload_type", "sdp_fmtp_line", b"sdp_fmtp_line", "transport_id", b"transport_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["channels", b"channels", "clock_rate", b"clock_rate", "mime_type", b"mime_type", "payload_type", b"payload_type", "sdp_fmtp_line", b"sdp_fmtp_line", "transport_id", b"transport_id"]) -> None: ... - -global___CodecStats = CodecStats - -@typing.final -class RtpStreamStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - SSRC_FIELD_NUMBER: builtins.int - KIND_FIELD_NUMBER: builtins.int - TRANSPORT_ID_FIELD_NUMBER: builtins.int - CODEC_ID_FIELD_NUMBER: builtins.int - ssrc: builtins.int - kind: builtins.str - transport_id: builtins.str - codec_id: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["channels", b"channels", "clock_rate", b"clock_rate", "mime_type", b"mime_type", "payload_type", b"payload_type", "sdp_fmtp_line", b"sdp_fmtp_line", "transport_id", b"transport_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["channels", b"channels", "clock_rate", b"clock_rate", "mime_type", b"mime_type", "payload_type", b"payload_type", "sdp_fmtp_line", b"sdp_fmtp_line", "transport_id", b"transport_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___CodecStats: _TypeAlias = CodecStats # noqa: Y015 + +@_typing.final +class RtpStreamStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + SSRC_FIELD_NUMBER: _builtins.int + KIND_FIELD_NUMBER: _builtins.int + TRANSPORT_ID_FIELD_NUMBER: _builtins.int + CODEC_ID_FIELD_NUMBER: _builtins.int + ssrc: _builtins.int + kind: _builtins.str + transport_id: _builtins.str + codec_id: _builtins.str def __init__( self, *, - ssrc: builtins.int | None = ..., - kind: builtins.str | None = ..., - transport_id: builtins.str | None = ..., - codec_id: builtins.str | None = ..., + ssrc: _builtins.int | None = ..., + kind: _builtins.str | None = ..., + transport_id: _builtins.str | None = ..., + codec_id: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["codec_id", b"codec_id", "kind", b"kind", "ssrc", b"ssrc", "transport_id", b"transport_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["codec_id", b"codec_id", "kind", b"kind", "ssrc", b"ssrc", "transport_id", b"transport_id"]) -> None: ... - -global___RtpStreamStats = RtpStreamStats - -@typing.final -class ReceivedRtpStreamStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PACKETS_RECEIVED_FIELD_NUMBER: builtins.int - PACKETS_LOST_FIELD_NUMBER: builtins.int - JITTER_FIELD_NUMBER: builtins.int - packets_received: builtins.int - packets_lost: builtins.int - jitter: builtins.float + _HasFieldArgType: _TypeAlias = _typing.Literal["codec_id", b"codec_id", "kind", b"kind", "ssrc", b"ssrc", "transport_id", b"transport_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["codec_id", b"codec_id", "kind", b"kind", "ssrc", b"ssrc", "transport_id", b"transport_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___RtpStreamStats: _TypeAlias = RtpStreamStats # noqa: Y015 + +@_typing.final +class ReceivedRtpStreamStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PACKETS_RECEIVED_FIELD_NUMBER: _builtins.int + PACKETS_LOST_FIELD_NUMBER: _builtins.int + JITTER_FIELD_NUMBER: _builtins.int + packets_received: _builtins.int + packets_lost: _builtins.int + jitter: _builtins.float def __init__( self, *, - packets_received: builtins.int | None = ..., - packets_lost: builtins.int | None = ..., - jitter: builtins.float | None = ..., + packets_received: _builtins.int | None = ..., + packets_lost: _builtins.int | None = ..., + jitter: _builtins.float | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["jitter", b"jitter", "packets_lost", b"packets_lost", "packets_received", b"packets_received"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["jitter", b"jitter", "packets_lost", b"packets_lost", "packets_received", b"packets_received"]) -> None: ... - -global___ReceivedRtpStreamStats = ReceivedRtpStreamStats - -@typing.final -class InboundRtpStreamStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TRACK_IDENTIFIER_FIELD_NUMBER: builtins.int - MID_FIELD_NUMBER: builtins.int - REMOTE_ID_FIELD_NUMBER: builtins.int - FRAMES_DECODED_FIELD_NUMBER: builtins.int - KEY_FRAMES_DECODED_FIELD_NUMBER: builtins.int - FRAMES_RENDERED_FIELD_NUMBER: builtins.int - FRAMES_DROPPED_FIELD_NUMBER: builtins.int - FRAME_WIDTH_FIELD_NUMBER: builtins.int - FRAME_HEIGHT_FIELD_NUMBER: builtins.int - FRAMES_PER_SECOND_FIELD_NUMBER: builtins.int - QP_SUM_FIELD_NUMBER: builtins.int - TOTAL_DECODE_TIME_FIELD_NUMBER: builtins.int - TOTAL_INTER_FRAME_DELAY_FIELD_NUMBER: builtins.int - TOTAL_SQUARED_INTER_FRAME_DELAY_FIELD_NUMBER: builtins.int - PAUSE_COUNT_FIELD_NUMBER: builtins.int - TOTAL_PAUSE_DURATION_FIELD_NUMBER: builtins.int - FREEZE_COUNT_FIELD_NUMBER: builtins.int - TOTAL_FREEZE_DURATION_FIELD_NUMBER: builtins.int - LAST_PACKET_RECEIVED_TIMESTAMP_FIELD_NUMBER: builtins.int - HEADER_BYTES_RECEIVED_FIELD_NUMBER: builtins.int - PACKETS_DISCARDED_FIELD_NUMBER: builtins.int - FEC_BYTES_RECEIVED_FIELD_NUMBER: builtins.int - FEC_PACKETS_RECEIVED_FIELD_NUMBER: builtins.int - FEC_PACKETS_DISCARDED_FIELD_NUMBER: builtins.int - BYTES_RECEIVED_FIELD_NUMBER: builtins.int - NACK_COUNT_FIELD_NUMBER: builtins.int - FIR_COUNT_FIELD_NUMBER: builtins.int - PLI_COUNT_FIELD_NUMBER: builtins.int - TOTAL_PROCESSING_DELAY_FIELD_NUMBER: builtins.int - ESTIMATED_PLAYOUT_TIMESTAMP_FIELD_NUMBER: builtins.int - JITTER_BUFFER_DELAY_FIELD_NUMBER: builtins.int - JITTER_BUFFER_TARGET_DELAY_FIELD_NUMBER: builtins.int - JITTER_BUFFER_EMITTED_COUNT_FIELD_NUMBER: builtins.int - JITTER_BUFFER_MINIMUM_DELAY_FIELD_NUMBER: builtins.int - TOTAL_SAMPLES_RECEIVED_FIELD_NUMBER: builtins.int - CONCEALED_SAMPLES_FIELD_NUMBER: builtins.int - SILENT_CONCEALED_SAMPLES_FIELD_NUMBER: builtins.int - CONCEALMENT_EVENTS_FIELD_NUMBER: builtins.int - INSERTED_SAMPLES_FOR_DECELERATION_FIELD_NUMBER: builtins.int - REMOVED_SAMPLES_FOR_ACCELERATION_FIELD_NUMBER: builtins.int - AUDIO_LEVEL_FIELD_NUMBER: builtins.int - TOTAL_AUDIO_ENERGY_FIELD_NUMBER: builtins.int - TOTAL_SAMPLES_DURATION_FIELD_NUMBER: builtins.int - FRAMES_RECEIVED_FIELD_NUMBER: builtins.int - DECODER_IMPLEMENTATION_FIELD_NUMBER: builtins.int - PLAYOUT_ID_FIELD_NUMBER: builtins.int - POWER_EFFICIENT_DECODER_FIELD_NUMBER: builtins.int - FRAMES_ASSEMBLED_FROM_MULTIPLE_PACKETS_FIELD_NUMBER: builtins.int - TOTAL_ASSEMBLY_TIME_FIELD_NUMBER: builtins.int - RETRANSMITTED_PACKETS_RECEIVED_FIELD_NUMBER: builtins.int - RETRANSMITTED_BYTES_RECEIVED_FIELD_NUMBER: builtins.int - RTX_SSRC_FIELD_NUMBER: builtins.int - FEC_SSRC_FIELD_NUMBER: builtins.int - track_identifier: builtins.str - mid: builtins.str - remote_id: builtins.str - frames_decoded: builtins.int - key_frames_decoded: builtins.int - frames_rendered: builtins.int - frames_dropped: builtins.int - frame_width: builtins.int - frame_height: builtins.int - frames_per_second: builtins.float - qp_sum: builtins.int - total_decode_time: builtins.float - total_inter_frame_delay: builtins.float - total_squared_inter_frame_delay: builtins.float - pause_count: builtins.int - total_pause_duration: builtins.float - freeze_count: builtins.int - total_freeze_duration: builtins.float - last_packet_received_timestamp: builtins.float - header_bytes_received: builtins.int - packets_discarded: builtins.int - fec_bytes_received: builtins.int - fec_packets_received: builtins.int - fec_packets_discarded: builtins.int - bytes_received: builtins.int - nack_count: builtins.int - fir_count: builtins.int - pli_count: builtins.int - total_processing_delay: builtins.float - estimated_playout_timestamp: builtins.float - jitter_buffer_delay: builtins.float - jitter_buffer_target_delay: builtins.float - jitter_buffer_emitted_count: builtins.int - jitter_buffer_minimum_delay: builtins.float - total_samples_received: builtins.int - concealed_samples: builtins.int - silent_concealed_samples: builtins.int - concealment_events: builtins.int - inserted_samples_for_deceleration: builtins.int - removed_samples_for_acceleration: builtins.int - audio_level: builtins.float - total_audio_energy: builtins.float - total_samples_duration: builtins.float - frames_received: builtins.int - decoder_implementation: builtins.str - playout_id: builtins.str - power_efficient_decoder: builtins.bool - frames_assembled_from_multiple_packets: builtins.int - total_assembly_time: builtins.float - retransmitted_packets_received: builtins.int - retransmitted_bytes_received: builtins.int - rtx_ssrc: builtins.int - fec_ssrc: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["jitter", b"jitter", "packets_lost", b"packets_lost", "packets_received", b"packets_received"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["jitter", b"jitter", "packets_lost", b"packets_lost", "packets_received", b"packets_received"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___ReceivedRtpStreamStats: _TypeAlias = ReceivedRtpStreamStats # noqa: Y015 + +@_typing.final +class InboundRtpStreamStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + TRACK_IDENTIFIER_FIELD_NUMBER: _builtins.int + MID_FIELD_NUMBER: _builtins.int + REMOTE_ID_FIELD_NUMBER: _builtins.int + FRAMES_DECODED_FIELD_NUMBER: _builtins.int + KEY_FRAMES_DECODED_FIELD_NUMBER: _builtins.int + FRAMES_RENDERED_FIELD_NUMBER: _builtins.int + FRAMES_DROPPED_FIELD_NUMBER: _builtins.int + FRAME_WIDTH_FIELD_NUMBER: _builtins.int + FRAME_HEIGHT_FIELD_NUMBER: _builtins.int + FRAMES_PER_SECOND_FIELD_NUMBER: _builtins.int + QP_SUM_FIELD_NUMBER: _builtins.int + TOTAL_DECODE_TIME_FIELD_NUMBER: _builtins.int + TOTAL_INTER_FRAME_DELAY_FIELD_NUMBER: _builtins.int + TOTAL_SQUARED_INTER_FRAME_DELAY_FIELD_NUMBER: _builtins.int + PAUSE_COUNT_FIELD_NUMBER: _builtins.int + TOTAL_PAUSE_DURATION_FIELD_NUMBER: _builtins.int + FREEZE_COUNT_FIELD_NUMBER: _builtins.int + TOTAL_FREEZE_DURATION_FIELD_NUMBER: _builtins.int + LAST_PACKET_RECEIVED_TIMESTAMP_FIELD_NUMBER: _builtins.int + HEADER_BYTES_RECEIVED_FIELD_NUMBER: _builtins.int + PACKETS_DISCARDED_FIELD_NUMBER: _builtins.int + FEC_BYTES_RECEIVED_FIELD_NUMBER: _builtins.int + FEC_PACKETS_RECEIVED_FIELD_NUMBER: _builtins.int + FEC_PACKETS_DISCARDED_FIELD_NUMBER: _builtins.int + BYTES_RECEIVED_FIELD_NUMBER: _builtins.int + NACK_COUNT_FIELD_NUMBER: _builtins.int + FIR_COUNT_FIELD_NUMBER: _builtins.int + PLI_COUNT_FIELD_NUMBER: _builtins.int + TOTAL_PROCESSING_DELAY_FIELD_NUMBER: _builtins.int + ESTIMATED_PLAYOUT_TIMESTAMP_FIELD_NUMBER: _builtins.int + JITTER_BUFFER_DELAY_FIELD_NUMBER: _builtins.int + JITTER_BUFFER_TARGET_DELAY_FIELD_NUMBER: _builtins.int + JITTER_BUFFER_EMITTED_COUNT_FIELD_NUMBER: _builtins.int + JITTER_BUFFER_MINIMUM_DELAY_FIELD_NUMBER: _builtins.int + TOTAL_SAMPLES_RECEIVED_FIELD_NUMBER: _builtins.int + CONCEALED_SAMPLES_FIELD_NUMBER: _builtins.int + SILENT_CONCEALED_SAMPLES_FIELD_NUMBER: _builtins.int + CONCEALMENT_EVENTS_FIELD_NUMBER: _builtins.int + INSERTED_SAMPLES_FOR_DECELERATION_FIELD_NUMBER: _builtins.int + REMOVED_SAMPLES_FOR_ACCELERATION_FIELD_NUMBER: _builtins.int + AUDIO_LEVEL_FIELD_NUMBER: _builtins.int + TOTAL_AUDIO_ENERGY_FIELD_NUMBER: _builtins.int + TOTAL_SAMPLES_DURATION_FIELD_NUMBER: _builtins.int + FRAMES_RECEIVED_FIELD_NUMBER: _builtins.int + DECODER_IMPLEMENTATION_FIELD_NUMBER: _builtins.int + PLAYOUT_ID_FIELD_NUMBER: _builtins.int + POWER_EFFICIENT_DECODER_FIELD_NUMBER: _builtins.int + FRAMES_ASSEMBLED_FROM_MULTIPLE_PACKETS_FIELD_NUMBER: _builtins.int + TOTAL_ASSEMBLY_TIME_FIELD_NUMBER: _builtins.int + RETRANSMITTED_PACKETS_RECEIVED_FIELD_NUMBER: _builtins.int + RETRANSMITTED_BYTES_RECEIVED_FIELD_NUMBER: _builtins.int + RTX_SSRC_FIELD_NUMBER: _builtins.int + FEC_SSRC_FIELD_NUMBER: _builtins.int + track_identifier: _builtins.str + mid: _builtins.str + remote_id: _builtins.str + frames_decoded: _builtins.int + key_frames_decoded: _builtins.int + frames_rendered: _builtins.int + frames_dropped: _builtins.int + frame_width: _builtins.int + frame_height: _builtins.int + frames_per_second: _builtins.float + qp_sum: _builtins.int + total_decode_time: _builtins.float + total_inter_frame_delay: _builtins.float + total_squared_inter_frame_delay: _builtins.float + pause_count: _builtins.int + total_pause_duration: _builtins.float + freeze_count: _builtins.int + total_freeze_duration: _builtins.float + last_packet_received_timestamp: _builtins.float + header_bytes_received: _builtins.int + packets_discarded: _builtins.int + fec_bytes_received: _builtins.int + fec_packets_received: _builtins.int + fec_packets_discarded: _builtins.int + bytes_received: _builtins.int + nack_count: _builtins.int + fir_count: _builtins.int + pli_count: _builtins.int + total_processing_delay: _builtins.float + estimated_playout_timestamp: _builtins.float + jitter_buffer_delay: _builtins.float + jitter_buffer_target_delay: _builtins.float + jitter_buffer_emitted_count: _builtins.int + jitter_buffer_minimum_delay: _builtins.float + total_samples_received: _builtins.int + concealed_samples: _builtins.int + silent_concealed_samples: _builtins.int + concealment_events: _builtins.int + inserted_samples_for_deceleration: _builtins.int + removed_samples_for_acceleration: _builtins.int + audio_level: _builtins.float + total_audio_energy: _builtins.float + total_samples_duration: _builtins.float + frames_received: _builtins.int + decoder_implementation: _builtins.str + playout_id: _builtins.str + power_efficient_decoder: _builtins.bool + frames_assembled_from_multiple_packets: _builtins.int + total_assembly_time: _builtins.float + retransmitted_packets_received: _builtins.int + retransmitted_bytes_received: _builtins.int + rtx_ssrc: _builtins.int + fec_ssrc: _builtins.int def __init__( self, *, - track_identifier: builtins.str | None = ..., - mid: builtins.str | None = ..., - remote_id: builtins.str | None = ..., - frames_decoded: builtins.int | None = ..., - key_frames_decoded: builtins.int | None = ..., - frames_rendered: builtins.int | None = ..., - frames_dropped: builtins.int | None = ..., - frame_width: builtins.int | None = ..., - frame_height: builtins.int | None = ..., - frames_per_second: builtins.float | None = ..., - qp_sum: builtins.int | None = ..., - total_decode_time: builtins.float | None = ..., - total_inter_frame_delay: builtins.float | None = ..., - total_squared_inter_frame_delay: builtins.float | None = ..., - pause_count: builtins.int | None = ..., - total_pause_duration: builtins.float | None = ..., - freeze_count: builtins.int | None = ..., - total_freeze_duration: builtins.float | None = ..., - last_packet_received_timestamp: builtins.float | None = ..., - header_bytes_received: builtins.int | None = ..., - packets_discarded: builtins.int | None = ..., - fec_bytes_received: builtins.int | None = ..., - fec_packets_received: builtins.int | None = ..., - fec_packets_discarded: builtins.int | None = ..., - bytes_received: builtins.int | None = ..., - nack_count: builtins.int | None = ..., - fir_count: builtins.int | None = ..., - pli_count: builtins.int | None = ..., - total_processing_delay: builtins.float | None = ..., - estimated_playout_timestamp: builtins.float | None = ..., - jitter_buffer_delay: builtins.float | None = ..., - jitter_buffer_target_delay: builtins.float | None = ..., - jitter_buffer_emitted_count: builtins.int | None = ..., - jitter_buffer_minimum_delay: builtins.float | None = ..., - total_samples_received: builtins.int | None = ..., - concealed_samples: builtins.int | None = ..., - silent_concealed_samples: builtins.int | None = ..., - concealment_events: builtins.int | None = ..., - inserted_samples_for_deceleration: builtins.int | None = ..., - removed_samples_for_acceleration: builtins.int | None = ..., - audio_level: builtins.float | None = ..., - total_audio_energy: builtins.float | None = ..., - total_samples_duration: builtins.float | None = ..., - frames_received: builtins.int | None = ..., - decoder_implementation: builtins.str | None = ..., - playout_id: builtins.str | None = ..., - power_efficient_decoder: builtins.bool | None = ..., - frames_assembled_from_multiple_packets: builtins.int | None = ..., - total_assembly_time: builtins.float | None = ..., - retransmitted_packets_received: builtins.int | None = ..., - retransmitted_bytes_received: builtins.int | None = ..., - rtx_ssrc: builtins.int | None = ..., - fec_ssrc: builtins.int | None = ..., + track_identifier: _builtins.str | None = ..., + mid: _builtins.str | None = ..., + remote_id: _builtins.str | None = ..., + frames_decoded: _builtins.int | None = ..., + key_frames_decoded: _builtins.int | None = ..., + frames_rendered: _builtins.int | None = ..., + frames_dropped: _builtins.int | None = ..., + frame_width: _builtins.int | None = ..., + frame_height: _builtins.int | None = ..., + frames_per_second: _builtins.float | None = ..., + qp_sum: _builtins.int | None = ..., + total_decode_time: _builtins.float | None = ..., + total_inter_frame_delay: _builtins.float | None = ..., + total_squared_inter_frame_delay: _builtins.float | None = ..., + pause_count: _builtins.int | None = ..., + total_pause_duration: _builtins.float | None = ..., + freeze_count: _builtins.int | None = ..., + total_freeze_duration: _builtins.float | None = ..., + last_packet_received_timestamp: _builtins.float | None = ..., + header_bytes_received: _builtins.int | None = ..., + packets_discarded: _builtins.int | None = ..., + fec_bytes_received: _builtins.int | None = ..., + fec_packets_received: _builtins.int | None = ..., + fec_packets_discarded: _builtins.int | None = ..., + bytes_received: _builtins.int | None = ..., + nack_count: _builtins.int | None = ..., + fir_count: _builtins.int | None = ..., + pli_count: _builtins.int | None = ..., + total_processing_delay: _builtins.float | None = ..., + estimated_playout_timestamp: _builtins.float | None = ..., + jitter_buffer_delay: _builtins.float | None = ..., + jitter_buffer_target_delay: _builtins.float | None = ..., + jitter_buffer_emitted_count: _builtins.int | None = ..., + jitter_buffer_minimum_delay: _builtins.float | None = ..., + total_samples_received: _builtins.int | None = ..., + concealed_samples: _builtins.int | None = ..., + silent_concealed_samples: _builtins.int | None = ..., + concealment_events: _builtins.int | None = ..., + inserted_samples_for_deceleration: _builtins.int | None = ..., + removed_samples_for_acceleration: _builtins.int | None = ..., + audio_level: _builtins.float | None = ..., + total_audio_energy: _builtins.float | None = ..., + total_samples_duration: _builtins.float | None = ..., + frames_received: _builtins.int | None = ..., + decoder_implementation: _builtins.str | None = ..., + playout_id: _builtins.str | None = ..., + power_efficient_decoder: _builtins.bool | None = ..., + frames_assembled_from_multiple_packets: _builtins.int | None = ..., + total_assembly_time: _builtins.float | None = ..., + retransmitted_packets_received: _builtins.int | None = ..., + retransmitted_bytes_received: _builtins.int | None = ..., + rtx_ssrc: _builtins.int | None = ..., + fec_ssrc: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["audio_level", b"audio_level", "bytes_received", b"bytes_received", "concealed_samples", b"concealed_samples", "concealment_events", b"concealment_events", "decoder_implementation", b"decoder_implementation", "estimated_playout_timestamp", b"estimated_playout_timestamp", "fec_bytes_received", b"fec_bytes_received", "fec_packets_discarded", b"fec_packets_discarded", "fec_packets_received", b"fec_packets_received", "fec_ssrc", b"fec_ssrc", "fir_count", b"fir_count", "frame_height", b"frame_height", "frame_width", b"frame_width", "frames_assembled_from_multiple_packets", b"frames_assembled_from_multiple_packets", "frames_decoded", b"frames_decoded", "frames_dropped", b"frames_dropped", "frames_per_second", b"frames_per_second", "frames_received", b"frames_received", "frames_rendered", b"frames_rendered", "freeze_count", b"freeze_count", "header_bytes_received", b"header_bytes_received", "inserted_samples_for_deceleration", b"inserted_samples_for_deceleration", "jitter_buffer_delay", b"jitter_buffer_delay", "jitter_buffer_emitted_count", b"jitter_buffer_emitted_count", "jitter_buffer_minimum_delay", b"jitter_buffer_minimum_delay", "jitter_buffer_target_delay", b"jitter_buffer_target_delay", "key_frames_decoded", b"key_frames_decoded", "last_packet_received_timestamp", b"last_packet_received_timestamp", "mid", b"mid", "nack_count", b"nack_count", "packets_discarded", b"packets_discarded", "pause_count", b"pause_count", "playout_id", b"playout_id", "pli_count", b"pli_count", "power_efficient_decoder", b"power_efficient_decoder", "qp_sum", b"qp_sum", "remote_id", b"remote_id", "removed_samples_for_acceleration", b"removed_samples_for_acceleration", "retransmitted_bytes_received", b"retransmitted_bytes_received", "retransmitted_packets_received", b"retransmitted_packets_received", "rtx_ssrc", b"rtx_ssrc", "silent_concealed_samples", b"silent_concealed_samples", "total_assembly_time", b"total_assembly_time", "total_audio_energy", b"total_audio_energy", "total_decode_time", b"total_decode_time", "total_freeze_duration", b"total_freeze_duration", "total_inter_frame_delay", b"total_inter_frame_delay", "total_pause_duration", b"total_pause_duration", "total_processing_delay", b"total_processing_delay", "total_samples_duration", b"total_samples_duration", "total_samples_received", b"total_samples_received", "total_squared_inter_frame_delay", b"total_squared_inter_frame_delay", "track_identifier", b"track_identifier"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["audio_level", b"audio_level", "bytes_received", b"bytes_received", "concealed_samples", b"concealed_samples", "concealment_events", b"concealment_events", "decoder_implementation", b"decoder_implementation", "estimated_playout_timestamp", b"estimated_playout_timestamp", "fec_bytes_received", b"fec_bytes_received", "fec_packets_discarded", b"fec_packets_discarded", "fec_packets_received", b"fec_packets_received", "fec_ssrc", b"fec_ssrc", "fir_count", b"fir_count", "frame_height", b"frame_height", "frame_width", b"frame_width", "frames_assembled_from_multiple_packets", b"frames_assembled_from_multiple_packets", "frames_decoded", b"frames_decoded", "frames_dropped", b"frames_dropped", "frames_per_second", b"frames_per_second", "frames_received", b"frames_received", "frames_rendered", b"frames_rendered", "freeze_count", b"freeze_count", "header_bytes_received", b"header_bytes_received", "inserted_samples_for_deceleration", b"inserted_samples_for_deceleration", "jitter_buffer_delay", b"jitter_buffer_delay", "jitter_buffer_emitted_count", b"jitter_buffer_emitted_count", "jitter_buffer_minimum_delay", b"jitter_buffer_minimum_delay", "jitter_buffer_target_delay", b"jitter_buffer_target_delay", "key_frames_decoded", b"key_frames_decoded", "last_packet_received_timestamp", b"last_packet_received_timestamp", "mid", b"mid", "nack_count", b"nack_count", "packets_discarded", b"packets_discarded", "pause_count", b"pause_count", "playout_id", b"playout_id", "pli_count", b"pli_count", "power_efficient_decoder", b"power_efficient_decoder", "qp_sum", b"qp_sum", "remote_id", b"remote_id", "removed_samples_for_acceleration", b"removed_samples_for_acceleration", "retransmitted_bytes_received", b"retransmitted_bytes_received", "retransmitted_packets_received", b"retransmitted_packets_received", "rtx_ssrc", b"rtx_ssrc", "silent_concealed_samples", b"silent_concealed_samples", "total_assembly_time", b"total_assembly_time", "total_audio_energy", b"total_audio_energy", "total_decode_time", b"total_decode_time", "total_freeze_duration", b"total_freeze_duration", "total_inter_frame_delay", b"total_inter_frame_delay", "total_pause_duration", b"total_pause_duration", "total_processing_delay", b"total_processing_delay", "total_samples_duration", b"total_samples_duration", "total_samples_received", b"total_samples_received", "total_squared_inter_frame_delay", b"total_squared_inter_frame_delay", "track_identifier", b"track_identifier"]) -> None: ... - -global___InboundRtpStreamStats = InboundRtpStreamStats - -@typing.final -class SentRtpStreamStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PACKETS_SENT_FIELD_NUMBER: builtins.int - BYTES_SENT_FIELD_NUMBER: builtins.int - packets_sent: builtins.int - bytes_sent: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["audio_level", b"audio_level", "bytes_received", b"bytes_received", "concealed_samples", b"concealed_samples", "concealment_events", b"concealment_events", "decoder_implementation", b"decoder_implementation", "estimated_playout_timestamp", b"estimated_playout_timestamp", "fec_bytes_received", b"fec_bytes_received", "fec_packets_discarded", b"fec_packets_discarded", "fec_packets_received", b"fec_packets_received", "fec_ssrc", b"fec_ssrc", "fir_count", b"fir_count", "frame_height", b"frame_height", "frame_width", b"frame_width", "frames_assembled_from_multiple_packets", b"frames_assembled_from_multiple_packets", "frames_decoded", b"frames_decoded", "frames_dropped", b"frames_dropped", "frames_per_second", b"frames_per_second", "frames_received", b"frames_received", "frames_rendered", b"frames_rendered", "freeze_count", b"freeze_count", "header_bytes_received", b"header_bytes_received", "inserted_samples_for_deceleration", b"inserted_samples_for_deceleration", "jitter_buffer_delay", b"jitter_buffer_delay", "jitter_buffer_emitted_count", b"jitter_buffer_emitted_count", "jitter_buffer_minimum_delay", b"jitter_buffer_minimum_delay", "jitter_buffer_target_delay", b"jitter_buffer_target_delay", "key_frames_decoded", b"key_frames_decoded", "last_packet_received_timestamp", b"last_packet_received_timestamp", "mid", b"mid", "nack_count", b"nack_count", "packets_discarded", b"packets_discarded", "pause_count", b"pause_count", "playout_id", b"playout_id", "pli_count", b"pli_count", "power_efficient_decoder", b"power_efficient_decoder", "qp_sum", b"qp_sum", "remote_id", b"remote_id", "removed_samples_for_acceleration", b"removed_samples_for_acceleration", "retransmitted_bytes_received", b"retransmitted_bytes_received", "retransmitted_packets_received", b"retransmitted_packets_received", "rtx_ssrc", b"rtx_ssrc", "silent_concealed_samples", b"silent_concealed_samples", "total_assembly_time", b"total_assembly_time", "total_audio_energy", b"total_audio_energy", "total_decode_time", b"total_decode_time", "total_freeze_duration", b"total_freeze_duration", "total_inter_frame_delay", b"total_inter_frame_delay", "total_pause_duration", b"total_pause_duration", "total_processing_delay", b"total_processing_delay", "total_samples_duration", b"total_samples_duration", "total_samples_received", b"total_samples_received", "total_squared_inter_frame_delay", b"total_squared_inter_frame_delay", "track_identifier", b"track_identifier"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["audio_level", b"audio_level", "bytes_received", b"bytes_received", "concealed_samples", b"concealed_samples", "concealment_events", b"concealment_events", "decoder_implementation", b"decoder_implementation", "estimated_playout_timestamp", b"estimated_playout_timestamp", "fec_bytes_received", b"fec_bytes_received", "fec_packets_discarded", b"fec_packets_discarded", "fec_packets_received", b"fec_packets_received", "fec_ssrc", b"fec_ssrc", "fir_count", b"fir_count", "frame_height", b"frame_height", "frame_width", b"frame_width", "frames_assembled_from_multiple_packets", b"frames_assembled_from_multiple_packets", "frames_decoded", b"frames_decoded", "frames_dropped", b"frames_dropped", "frames_per_second", b"frames_per_second", "frames_received", b"frames_received", "frames_rendered", b"frames_rendered", "freeze_count", b"freeze_count", "header_bytes_received", b"header_bytes_received", "inserted_samples_for_deceleration", b"inserted_samples_for_deceleration", "jitter_buffer_delay", b"jitter_buffer_delay", "jitter_buffer_emitted_count", b"jitter_buffer_emitted_count", "jitter_buffer_minimum_delay", b"jitter_buffer_minimum_delay", "jitter_buffer_target_delay", b"jitter_buffer_target_delay", "key_frames_decoded", b"key_frames_decoded", "last_packet_received_timestamp", b"last_packet_received_timestamp", "mid", b"mid", "nack_count", b"nack_count", "packets_discarded", b"packets_discarded", "pause_count", b"pause_count", "playout_id", b"playout_id", "pli_count", b"pli_count", "power_efficient_decoder", b"power_efficient_decoder", "qp_sum", b"qp_sum", "remote_id", b"remote_id", "removed_samples_for_acceleration", b"removed_samples_for_acceleration", "retransmitted_bytes_received", b"retransmitted_bytes_received", "retransmitted_packets_received", b"retransmitted_packets_received", "rtx_ssrc", b"rtx_ssrc", "silent_concealed_samples", b"silent_concealed_samples", "total_assembly_time", b"total_assembly_time", "total_audio_energy", b"total_audio_energy", "total_decode_time", b"total_decode_time", "total_freeze_duration", b"total_freeze_duration", "total_inter_frame_delay", b"total_inter_frame_delay", "total_pause_duration", b"total_pause_duration", "total_processing_delay", b"total_processing_delay", "total_samples_duration", b"total_samples_duration", "total_samples_received", b"total_samples_received", "total_squared_inter_frame_delay", b"total_squared_inter_frame_delay", "track_identifier", b"track_identifier"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___InboundRtpStreamStats: _TypeAlias = InboundRtpStreamStats # noqa: Y015 + +@_typing.final +class SentRtpStreamStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PACKETS_SENT_FIELD_NUMBER: _builtins.int + BYTES_SENT_FIELD_NUMBER: _builtins.int + packets_sent: _builtins.int + bytes_sent: _builtins.int def __init__( self, *, - packets_sent: builtins.int | None = ..., - bytes_sent: builtins.int | None = ..., + packets_sent: _builtins.int | None = ..., + bytes_sent: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["bytes_sent", b"bytes_sent", "packets_sent", b"packets_sent"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["bytes_sent", b"bytes_sent", "packets_sent", b"packets_sent"]) -> None: ... - -global___SentRtpStreamStats = SentRtpStreamStats - -@typing.final -class OutboundRtpStreamStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class QualityLimitationDurationsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.float + _HasFieldArgType: _TypeAlias = _typing.Literal["bytes_sent", b"bytes_sent", "packets_sent", b"packets_sent"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["bytes_sent", b"bytes_sent", "packets_sent", b"packets_sent"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___SentRtpStreamStats: _TypeAlias = SentRtpStreamStats # noqa: Y015 + +@_typing.final +class OutboundRtpStreamStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class QualityLimitationDurationsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.float def __init__( self, *, - key: builtins.str | None = ..., - value: builtins.float | None = ..., + key: _builtins.str | None = ..., + value: _builtins.float | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - MID_FIELD_NUMBER: builtins.int - MEDIA_SOURCE_ID_FIELD_NUMBER: builtins.int - REMOTE_ID_FIELD_NUMBER: builtins.int - RID_FIELD_NUMBER: builtins.int - HEADER_BYTES_SENT_FIELD_NUMBER: builtins.int - RETRANSMITTED_PACKETS_SENT_FIELD_NUMBER: builtins.int - RETRANSMITTED_BYTES_SENT_FIELD_NUMBER: builtins.int - RTX_SSRC_FIELD_NUMBER: builtins.int - TARGET_BITRATE_FIELD_NUMBER: builtins.int - TOTAL_ENCODED_BYTES_TARGET_FIELD_NUMBER: builtins.int - FRAME_WIDTH_FIELD_NUMBER: builtins.int - FRAME_HEIGHT_FIELD_NUMBER: builtins.int - FRAMES_PER_SECOND_FIELD_NUMBER: builtins.int - FRAMES_SENT_FIELD_NUMBER: builtins.int - HUGE_FRAMES_SENT_FIELD_NUMBER: builtins.int - FRAMES_ENCODED_FIELD_NUMBER: builtins.int - KEY_FRAMES_ENCODED_FIELD_NUMBER: builtins.int - QP_SUM_FIELD_NUMBER: builtins.int - TOTAL_ENCODE_TIME_FIELD_NUMBER: builtins.int - TOTAL_PACKET_SEND_DELAY_FIELD_NUMBER: builtins.int - QUALITY_LIMITATION_REASON_FIELD_NUMBER: builtins.int - QUALITY_LIMITATION_DURATIONS_FIELD_NUMBER: builtins.int - QUALITY_LIMITATION_RESOLUTION_CHANGES_FIELD_NUMBER: builtins.int - NACK_COUNT_FIELD_NUMBER: builtins.int - FIR_COUNT_FIELD_NUMBER: builtins.int - PLI_COUNT_FIELD_NUMBER: builtins.int - ENCODER_IMPLEMENTATION_FIELD_NUMBER: builtins.int - POWER_EFFICIENT_ENCODER_FIELD_NUMBER: builtins.int - ACTIVE_FIELD_NUMBER: builtins.int - SCALABILITY_MODE_FIELD_NUMBER: builtins.int - mid: builtins.str - media_source_id: builtins.str - remote_id: builtins.str - rid: builtins.str - header_bytes_sent: builtins.int - retransmitted_packets_sent: builtins.int - retransmitted_bytes_sent: builtins.int - rtx_ssrc: builtins.int - target_bitrate: builtins.float - total_encoded_bytes_target: builtins.int - frame_width: builtins.int - frame_height: builtins.int - frames_per_second: builtins.float - frames_sent: builtins.int - huge_frames_sent: builtins.int - frames_encoded: builtins.int - key_frames_encoded: builtins.int - qp_sum: builtins.int - total_encode_time: builtins.float - total_packet_send_delay: builtins.float - quality_limitation_reason: global___QualityLimitationReason.ValueType - quality_limitation_resolution_changes: builtins.int - nack_count: builtins.int - fir_count: builtins.int - pli_count: builtins.int - encoder_implementation: builtins.str - power_efficient_encoder: builtins.bool - active: builtins.bool - scalability_mode: builtins.str - @property - def quality_limitation_durations(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.float]: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + MID_FIELD_NUMBER: _builtins.int + MEDIA_SOURCE_ID_FIELD_NUMBER: _builtins.int + REMOTE_ID_FIELD_NUMBER: _builtins.int + RID_FIELD_NUMBER: _builtins.int + HEADER_BYTES_SENT_FIELD_NUMBER: _builtins.int + RETRANSMITTED_PACKETS_SENT_FIELD_NUMBER: _builtins.int + RETRANSMITTED_BYTES_SENT_FIELD_NUMBER: _builtins.int + RTX_SSRC_FIELD_NUMBER: _builtins.int + TARGET_BITRATE_FIELD_NUMBER: _builtins.int + TOTAL_ENCODED_BYTES_TARGET_FIELD_NUMBER: _builtins.int + FRAME_WIDTH_FIELD_NUMBER: _builtins.int + FRAME_HEIGHT_FIELD_NUMBER: _builtins.int + FRAMES_PER_SECOND_FIELD_NUMBER: _builtins.int + FRAMES_SENT_FIELD_NUMBER: _builtins.int + HUGE_FRAMES_SENT_FIELD_NUMBER: _builtins.int + FRAMES_ENCODED_FIELD_NUMBER: _builtins.int + KEY_FRAMES_ENCODED_FIELD_NUMBER: _builtins.int + QP_SUM_FIELD_NUMBER: _builtins.int + TOTAL_ENCODE_TIME_FIELD_NUMBER: _builtins.int + TOTAL_PACKET_SEND_DELAY_FIELD_NUMBER: _builtins.int + QUALITY_LIMITATION_REASON_FIELD_NUMBER: _builtins.int + QUALITY_LIMITATION_DURATIONS_FIELD_NUMBER: _builtins.int + QUALITY_LIMITATION_RESOLUTION_CHANGES_FIELD_NUMBER: _builtins.int + NACK_COUNT_FIELD_NUMBER: _builtins.int + FIR_COUNT_FIELD_NUMBER: _builtins.int + PLI_COUNT_FIELD_NUMBER: _builtins.int + ENCODER_IMPLEMENTATION_FIELD_NUMBER: _builtins.int + POWER_EFFICIENT_ENCODER_FIELD_NUMBER: _builtins.int + ACTIVE_FIELD_NUMBER: _builtins.int + SCALABILITY_MODE_FIELD_NUMBER: _builtins.int + mid: _builtins.str + media_source_id: _builtins.str + remote_id: _builtins.str + rid: _builtins.str + header_bytes_sent: _builtins.int + retransmitted_packets_sent: _builtins.int + retransmitted_bytes_sent: _builtins.int + rtx_ssrc: _builtins.int + target_bitrate: _builtins.float + total_encoded_bytes_target: _builtins.int + frame_width: _builtins.int + frame_height: _builtins.int + frames_per_second: _builtins.float + frames_sent: _builtins.int + huge_frames_sent: _builtins.int + frames_encoded: _builtins.int + key_frames_encoded: _builtins.int + qp_sum: _builtins.int + total_encode_time: _builtins.float + total_packet_send_delay: _builtins.float + quality_limitation_reason: Global___QualityLimitationReason.ValueType + quality_limitation_resolution_changes: _builtins.int + nack_count: _builtins.int + fir_count: _builtins.int + pli_count: _builtins.int + encoder_implementation: _builtins.str + power_efficient_encoder: _builtins.bool + active: _builtins.bool + scalability_mode: _builtins.str + @_builtins.property + def quality_limitation_durations(self) -> _containers.ScalarMap[_builtins.str, _builtins.float]: ... def __init__( self, *, - mid: builtins.str | None = ..., - media_source_id: builtins.str | None = ..., - remote_id: builtins.str | None = ..., - rid: builtins.str | None = ..., - header_bytes_sent: builtins.int | None = ..., - retransmitted_packets_sent: builtins.int | None = ..., - retransmitted_bytes_sent: builtins.int | None = ..., - rtx_ssrc: builtins.int | None = ..., - target_bitrate: builtins.float | None = ..., - total_encoded_bytes_target: builtins.int | None = ..., - frame_width: builtins.int | None = ..., - frame_height: builtins.int | None = ..., - frames_per_second: builtins.float | None = ..., - frames_sent: builtins.int | None = ..., - huge_frames_sent: builtins.int | None = ..., - frames_encoded: builtins.int | None = ..., - key_frames_encoded: builtins.int | None = ..., - qp_sum: builtins.int | None = ..., - total_encode_time: builtins.float | None = ..., - total_packet_send_delay: builtins.float | None = ..., - quality_limitation_reason: global___QualityLimitationReason.ValueType | None = ..., - quality_limitation_durations: collections.abc.Mapping[builtins.str, builtins.float] | None = ..., - quality_limitation_resolution_changes: builtins.int | None = ..., - nack_count: builtins.int | None = ..., - fir_count: builtins.int | None = ..., - pli_count: builtins.int | None = ..., - encoder_implementation: builtins.str | None = ..., - power_efficient_encoder: builtins.bool | None = ..., - active: builtins.bool | None = ..., - scalability_mode: builtins.str | None = ..., + mid: _builtins.str | None = ..., + media_source_id: _builtins.str | None = ..., + remote_id: _builtins.str | None = ..., + rid: _builtins.str | None = ..., + header_bytes_sent: _builtins.int | None = ..., + retransmitted_packets_sent: _builtins.int | None = ..., + retransmitted_bytes_sent: _builtins.int | None = ..., + rtx_ssrc: _builtins.int | None = ..., + target_bitrate: _builtins.float | None = ..., + total_encoded_bytes_target: _builtins.int | None = ..., + frame_width: _builtins.int | None = ..., + frame_height: _builtins.int | None = ..., + frames_per_second: _builtins.float | None = ..., + frames_sent: _builtins.int | None = ..., + huge_frames_sent: _builtins.int | None = ..., + frames_encoded: _builtins.int | None = ..., + key_frames_encoded: _builtins.int | None = ..., + qp_sum: _builtins.int | None = ..., + total_encode_time: _builtins.float | None = ..., + total_packet_send_delay: _builtins.float | None = ..., + quality_limitation_reason: Global___QualityLimitationReason.ValueType | None = ..., + quality_limitation_durations: _abc.Mapping[_builtins.str, _builtins.float] | None = ..., + quality_limitation_resolution_changes: _builtins.int | None = ..., + nack_count: _builtins.int | None = ..., + fir_count: _builtins.int | None = ..., + pli_count: _builtins.int | None = ..., + encoder_implementation: _builtins.str | None = ..., + power_efficient_encoder: _builtins.bool | None = ..., + active: _builtins.bool | None = ..., + scalability_mode: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["active", b"active", "encoder_implementation", b"encoder_implementation", "fir_count", b"fir_count", "frame_height", b"frame_height", "frame_width", b"frame_width", "frames_encoded", b"frames_encoded", "frames_per_second", b"frames_per_second", "frames_sent", b"frames_sent", "header_bytes_sent", b"header_bytes_sent", "huge_frames_sent", b"huge_frames_sent", "key_frames_encoded", b"key_frames_encoded", "media_source_id", b"media_source_id", "mid", b"mid", "nack_count", b"nack_count", "pli_count", b"pli_count", "power_efficient_encoder", b"power_efficient_encoder", "qp_sum", b"qp_sum", "quality_limitation_reason", b"quality_limitation_reason", "quality_limitation_resolution_changes", b"quality_limitation_resolution_changes", "remote_id", b"remote_id", "retransmitted_bytes_sent", b"retransmitted_bytes_sent", "retransmitted_packets_sent", b"retransmitted_packets_sent", "rid", b"rid", "rtx_ssrc", b"rtx_ssrc", "scalability_mode", b"scalability_mode", "target_bitrate", b"target_bitrate", "total_encode_time", b"total_encode_time", "total_encoded_bytes_target", b"total_encoded_bytes_target", "total_packet_send_delay", b"total_packet_send_delay"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["active", b"active", "encoder_implementation", b"encoder_implementation", "fir_count", b"fir_count", "frame_height", b"frame_height", "frame_width", b"frame_width", "frames_encoded", b"frames_encoded", "frames_per_second", b"frames_per_second", "frames_sent", b"frames_sent", "header_bytes_sent", b"header_bytes_sent", "huge_frames_sent", b"huge_frames_sent", "key_frames_encoded", b"key_frames_encoded", "media_source_id", b"media_source_id", "mid", b"mid", "nack_count", b"nack_count", "pli_count", b"pli_count", "power_efficient_encoder", b"power_efficient_encoder", "qp_sum", b"qp_sum", "quality_limitation_durations", b"quality_limitation_durations", "quality_limitation_reason", b"quality_limitation_reason", "quality_limitation_resolution_changes", b"quality_limitation_resolution_changes", "remote_id", b"remote_id", "retransmitted_bytes_sent", b"retransmitted_bytes_sent", "retransmitted_packets_sent", b"retransmitted_packets_sent", "rid", b"rid", "rtx_ssrc", b"rtx_ssrc", "scalability_mode", b"scalability_mode", "target_bitrate", b"target_bitrate", "total_encode_time", b"total_encode_time", "total_encoded_bytes_target", b"total_encoded_bytes_target", "total_packet_send_delay", b"total_packet_send_delay"]) -> None: ... - -global___OutboundRtpStreamStats = OutboundRtpStreamStats - -@typing.final -class RemoteInboundRtpStreamStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - LOCAL_ID_FIELD_NUMBER: builtins.int - ROUND_TRIP_TIME_FIELD_NUMBER: builtins.int - TOTAL_ROUND_TRIP_TIME_FIELD_NUMBER: builtins.int - FRACTION_LOST_FIELD_NUMBER: builtins.int - ROUND_TRIP_TIME_MEASUREMENTS_FIELD_NUMBER: builtins.int - local_id: builtins.str - round_trip_time: builtins.float - total_round_trip_time: builtins.float - fraction_lost: builtins.float - round_trip_time_measurements: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["active", b"active", "encoder_implementation", b"encoder_implementation", "fir_count", b"fir_count", "frame_height", b"frame_height", "frame_width", b"frame_width", "frames_encoded", b"frames_encoded", "frames_per_second", b"frames_per_second", "frames_sent", b"frames_sent", "header_bytes_sent", b"header_bytes_sent", "huge_frames_sent", b"huge_frames_sent", "key_frames_encoded", b"key_frames_encoded", "media_source_id", b"media_source_id", "mid", b"mid", "nack_count", b"nack_count", "pli_count", b"pli_count", "power_efficient_encoder", b"power_efficient_encoder", "qp_sum", b"qp_sum", "quality_limitation_reason", b"quality_limitation_reason", "quality_limitation_resolution_changes", b"quality_limitation_resolution_changes", "remote_id", b"remote_id", "retransmitted_bytes_sent", b"retransmitted_bytes_sent", "retransmitted_packets_sent", b"retransmitted_packets_sent", "rid", b"rid", "rtx_ssrc", b"rtx_ssrc", "scalability_mode", b"scalability_mode", "target_bitrate", b"target_bitrate", "total_encode_time", b"total_encode_time", "total_encoded_bytes_target", b"total_encoded_bytes_target", "total_packet_send_delay", b"total_packet_send_delay"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["active", b"active", "encoder_implementation", b"encoder_implementation", "fir_count", b"fir_count", "frame_height", b"frame_height", "frame_width", b"frame_width", "frames_encoded", b"frames_encoded", "frames_per_second", b"frames_per_second", "frames_sent", b"frames_sent", "header_bytes_sent", b"header_bytes_sent", "huge_frames_sent", b"huge_frames_sent", "key_frames_encoded", b"key_frames_encoded", "media_source_id", b"media_source_id", "mid", b"mid", "nack_count", b"nack_count", "pli_count", b"pli_count", "power_efficient_encoder", b"power_efficient_encoder", "qp_sum", b"qp_sum", "quality_limitation_durations", b"quality_limitation_durations", "quality_limitation_reason", b"quality_limitation_reason", "quality_limitation_resolution_changes", b"quality_limitation_resolution_changes", "remote_id", b"remote_id", "retransmitted_bytes_sent", b"retransmitted_bytes_sent", "retransmitted_packets_sent", b"retransmitted_packets_sent", "rid", b"rid", "rtx_ssrc", b"rtx_ssrc", "scalability_mode", b"scalability_mode", "target_bitrate", b"target_bitrate", "total_encode_time", b"total_encode_time", "total_encoded_bytes_target", b"total_encoded_bytes_target", "total_packet_send_delay", b"total_packet_send_delay"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___OutboundRtpStreamStats: _TypeAlias = OutboundRtpStreamStats # noqa: Y015 + +@_typing.final +class RemoteInboundRtpStreamStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + LOCAL_ID_FIELD_NUMBER: _builtins.int + ROUND_TRIP_TIME_FIELD_NUMBER: _builtins.int + TOTAL_ROUND_TRIP_TIME_FIELD_NUMBER: _builtins.int + FRACTION_LOST_FIELD_NUMBER: _builtins.int + ROUND_TRIP_TIME_MEASUREMENTS_FIELD_NUMBER: _builtins.int + local_id: _builtins.str + round_trip_time: _builtins.float + total_round_trip_time: _builtins.float + fraction_lost: _builtins.float + round_trip_time_measurements: _builtins.int def __init__( self, *, - local_id: builtins.str | None = ..., - round_trip_time: builtins.float | None = ..., - total_round_trip_time: builtins.float | None = ..., - fraction_lost: builtins.float | None = ..., - round_trip_time_measurements: builtins.int | None = ..., + local_id: _builtins.str | None = ..., + round_trip_time: _builtins.float | None = ..., + total_round_trip_time: _builtins.float | None = ..., + fraction_lost: _builtins.float | None = ..., + round_trip_time_measurements: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["fraction_lost", b"fraction_lost", "local_id", b"local_id", "round_trip_time", b"round_trip_time", "round_trip_time_measurements", b"round_trip_time_measurements", "total_round_trip_time", b"total_round_trip_time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["fraction_lost", b"fraction_lost", "local_id", b"local_id", "round_trip_time", b"round_trip_time", "round_trip_time_measurements", b"round_trip_time_measurements", "total_round_trip_time", b"total_round_trip_time"]) -> None: ... - -global___RemoteInboundRtpStreamStats = RemoteInboundRtpStreamStats - -@typing.final -class RemoteOutboundRtpStreamStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - LOCAL_ID_FIELD_NUMBER: builtins.int - REMOTE_TIMESTAMP_FIELD_NUMBER: builtins.int - REPORTS_SENT_FIELD_NUMBER: builtins.int - ROUND_TRIP_TIME_FIELD_NUMBER: builtins.int - TOTAL_ROUND_TRIP_TIME_FIELD_NUMBER: builtins.int - ROUND_TRIP_TIME_MEASUREMENTS_FIELD_NUMBER: builtins.int - local_id: builtins.str - remote_timestamp: builtins.float - reports_sent: builtins.int - round_trip_time: builtins.float - total_round_trip_time: builtins.float - round_trip_time_measurements: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["fraction_lost", b"fraction_lost", "local_id", b"local_id", "round_trip_time", b"round_trip_time", "round_trip_time_measurements", b"round_trip_time_measurements", "total_round_trip_time", b"total_round_trip_time"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["fraction_lost", b"fraction_lost", "local_id", b"local_id", "round_trip_time", b"round_trip_time", "round_trip_time_measurements", b"round_trip_time_measurements", "total_round_trip_time", b"total_round_trip_time"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___RemoteInboundRtpStreamStats: _TypeAlias = RemoteInboundRtpStreamStats # noqa: Y015 + +@_typing.final +class RemoteOutboundRtpStreamStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + LOCAL_ID_FIELD_NUMBER: _builtins.int + REMOTE_TIMESTAMP_FIELD_NUMBER: _builtins.int + REPORTS_SENT_FIELD_NUMBER: _builtins.int + ROUND_TRIP_TIME_FIELD_NUMBER: _builtins.int + TOTAL_ROUND_TRIP_TIME_FIELD_NUMBER: _builtins.int + ROUND_TRIP_TIME_MEASUREMENTS_FIELD_NUMBER: _builtins.int + local_id: _builtins.str + remote_timestamp: _builtins.float + reports_sent: _builtins.int + round_trip_time: _builtins.float + total_round_trip_time: _builtins.float + round_trip_time_measurements: _builtins.int def __init__( self, *, - local_id: builtins.str | None = ..., - remote_timestamp: builtins.float | None = ..., - reports_sent: builtins.int | None = ..., - round_trip_time: builtins.float | None = ..., - total_round_trip_time: builtins.float | None = ..., - round_trip_time_measurements: builtins.int | None = ..., + local_id: _builtins.str | None = ..., + remote_timestamp: _builtins.float | None = ..., + reports_sent: _builtins.int | None = ..., + round_trip_time: _builtins.float | None = ..., + total_round_trip_time: _builtins.float | None = ..., + round_trip_time_measurements: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["local_id", b"local_id", "remote_timestamp", b"remote_timestamp", "reports_sent", b"reports_sent", "round_trip_time", b"round_trip_time", "round_trip_time_measurements", b"round_trip_time_measurements", "total_round_trip_time", b"total_round_trip_time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["local_id", b"local_id", "remote_timestamp", b"remote_timestamp", "reports_sent", b"reports_sent", "round_trip_time", b"round_trip_time", "round_trip_time_measurements", b"round_trip_time_measurements", "total_round_trip_time", b"total_round_trip_time"]) -> None: ... - -global___RemoteOutboundRtpStreamStats = RemoteOutboundRtpStreamStats - -@typing.final -class MediaSourceStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TRACK_IDENTIFIER_FIELD_NUMBER: builtins.int - KIND_FIELD_NUMBER: builtins.int - track_identifier: builtins.str - kind: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["local_id", b"local_id", "remote_timestamp", b"remote_timestamp", "reports_sent", b"reports_sent", "round_trip_time", b"round_trip_time", "round_trip_time_measurements", b"round_trip_time_measurements", "total_round_trip_time", b"total_round_trip_time"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["local_id", b"local_id", "remote_timestamp", b"remote_timestamp", "reports_sent", b"reports_sent", "round_trip_time", b"round_trip_time", "round_trip_time_measurements", b"round_trip_time_measurements", "total_round_trip_time", b"total_round_trip_time"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___RemoteOutboundRtpStreamStats: _TypeAlias = RemoteOutboundRtpStreamStats # noqa: Y015 + +@_typing.final +class MediaSourceStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + TRACK_IDENTIFIER_FIELD_NUMBER: _builtins.int + KIND_FIELD_NUMBER: _builtins.int + track_identifier: _builtins.str + kind: _builtins.str def __init__( self, *, - track_identifier: builtins.str | None = ..., - kind: builtins.str | None = ..., + track_identifier: _builtins.str | None = ..., + kind: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["kind", b"kind", "track_identifier", b"track_identifier"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["kind", b"kind", "track_identifier", b"track_identifier"]) -> None: ... - -global___MediaSourceStats = MediaSourceStats - -@typing.final -class AudioSourceStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - AUDIO_LEVEL_FIELD_NUMBER: builtins.int - TOTAL_AUDIO_ENERGY_FIELD_NUMBER: builtins.int - TOTAL_SAMPLES_DURATION_FIELD_NUMBER: builtins.int - ECHO_RETURN_LOSS_FIELD_NUMBER: builtins.int - ECHO_RETURN_LOSS_ENHANCEMENT_FIELD_NUMBER: builtins.int - DROPPED_SAMPLES_DURATION_FIELD_NUMBER: builtins.int - DROPPED_SAMPLES_EVENTS_FIELD_NUMBER: builtins.int - TOTAL_CAPTURE_DELAY_FIELD_NUMBER: builtins.int - TOTAL_SAMPLES_CAPTURED_FIELD_NUMBER: builtins.int - audio_level: builtins.float - total_audio_energy: builtins.float - total_samples_duration: builtins.float - echo_return_loss: builtins.float - echo_return_loss_enhancement: builtins.float - dropped_samples_duration: builtins.float - dropped_samples_events: builtins.int - total_capture_delay: builtins.float - total_samples_captured: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "track_identifier", b"track_identifier"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "track_identifier", b"track_identifier"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___MediaSourceStats: _TypeAlias = MediaSourceStats # noqa: Y015 + +@_typing.final +class AudioSourceStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + AUDIO_LEVEL_FIELD_NUMBER: _builtins.int + TOTAL_AUDIO_ENERGY_FIELD_NUMBER: _builtins.int + TOTAL_SAMPLES_DURATION_FIELD_NUMBER: _builtins.int + ECHO_RETURN_LOSS_FIELD_NUMBER: _builtins.int + ECHO_RETURN_LOSS_ENHANCEMENT_FIELD_NUMBER: _builtins.int + DROPPED_SAMPLES_DURATION_FIELD_NUMBER: _builtins.int + DROPPED_SAMPLES_EVENTS_FIELD_NUMBER: _builtins.int + TOTAL_CAPTURE_DELAY_FIELD_NUMBER: _builtins.int + TOTAL_SAMPLES_CAPTURED_FIELD_NUMBER: _builtins.int + audio_level: _builtins.float + total_audio_energy: _builtins.float + total_samples_duration: _builtins.float + echo_return_loss: _builtins.float + echo_return_loss_enhancement: _builtins.float + dropped_samples_duration: _builtins.float + dropped_samples_events: _builtins.int + total_capture_delay: _builtins.float + total_samples_captured: _builtins.int def __init__( self, *, - audio_level: builtins.float | None = ..., - total_audio_energy: builtins.float | None = ..., - total_samples_duration: builtins.float | None = ..., - echo_return_loss: builtins.float | None = ..., - echo_return_loss_enhancement: builtins.float | None = ..., - dropped_samples_duration: builtins.float | None = ..., - dropped_samples_events: builtins.int | None = ..., - total_capture_delay: builtins.float | None = ..., - total_samples_captured: builtins.int | None = ..., + audio_level: _builtins.float | None = ..., + total_audio_energy: _builtins.float | None = ..., + total_samples_duration: _builtins.float | None = ..., + echo_return_loss: _builtins.float | None = ..., + echo_return_loss_enhancement: _builtins.float | None = ..., + dropped_samples_duration: _builtins.float | None = ..., + dropped_samples_events: _builtins.int | None = ..., + total_capture_delay: _builtins.float | None = ..., + total_samples_captured: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["audio_level", b"audio_level", "dropped_samples_duration", b"dropped_samples_duration", "dropped_samples_events", b"dropped_samples_events", "echo_return_loss", b"echo_return_loss", "echo_return_loss_enhancement", b"echo_return_loss_enhancement", "total_audio_energy", b"total_audio_energy", "total_capture_delay", b"total_capture_delay", "total_samples_captured", b"total_samples_captured", "total_samples_duration", b"total_samples_duration"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["audio_level", b"audio_level", "dropped_samples_duration", b"dropped_samples_duration", "dropped_samples_events", b"dropped_samples_events", "echo_return_loss", b"echo_return_loss", "echo_return_loss_enhancement", b"echo_return_loss_enhancement", "total_audio_energy", b"total_audio_energy", "total_capture_delay", b"total_capture_delay", "total_samples_captured", b"total_samples_captured", "total_samples_duration", b"total_samples_duration"]) -> None: ... - -global___AudioSourceStats = AudioSourceStats - -@typing.final -class VideoSourceStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - WIDTH_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - FRAMES_FIELD_NUMBER: builtins.int - FRAMES_PER_SECOND_FIELD_NUMBER: builtins.int - width: builtins.int - height: builtins.int - frames: builtins.int - frames_per_second: builtins.float + _HasFieldArgType: _TypeAlias = _typing.Literal["audio_level", b"audio_level", "dropped_samples_duration", b"dropped_samples_duration", "dropped_samples_events", b"dropped_samples_events", "echo_return_loss", b"echo_return_loss", "echo_return_loss_enhancement", b"echo_return_loss_enhancement", "total_audio_energy", b"total_audio_energy", "total_capture_delay", b"total_capture_delay", "total_samples_captured", b"total_samples_captured", "total_samples_duration", b"total_samples_duration"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["audio_level", b"audio_level", "dropped_samples_duration", b"dropped_samples_duration", "dropped_samples_events", b"dropped_samples_events", "echo_return_loss", b"echo_return_loss", "echo_return_loss_enhancement", b"echo_return_loss_enhancement", "total_audio_energy", b"total_audio_energy", "total_capture_delay", b"total_capture_delay", "total_samples_captured", b"total_samples_captured", "total_samples_duration", b"total_samples_duration"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___AudioSourceStats: _TypeAlias = AudioSourceStats # noqa: Y015 + +@_typing.final +class VideoSourceStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + WIDTH_FIELD_NUMBER: _builtins.int + HEIGHT_FIELD_NUMBER: _builtins.int + FRAMES_FIELD_NUMBER: _builtins.int + FRAMES_PER_SECOND_FIELD_NUMBER: _builtins.int + width: _builtins.int + height: _builtins.int + frames: _builtins.int + frames_per_second: _builtins.float def __init__( self, *, - width: builtins.int | None = ..., - height: builtins.int | None = ..., - frames: builtins.int | None = ..., - frames_per_second: builtins.float | None = ..., + width: _builtins.int | None = ..., + height: _builtins.int | None = ..., + frames: _builtins.int | None = ..., + frames_per_second: _builtins.float | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["frames", b"frames", "frames_per_second", b"frames_per_second", "height", b"height", "width", b"width"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["frames", b"frames", "frames_per_second", b"frames_per_second", "height", b"height", "width", b"width"]) -> None: ... - -global___VideoSourceStats = VideoSourceStats - -@typing.final -class AudioPlayoutStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KIND_FIELD_NUMBER: builtins.int - SYNTHESIZED_SAMPLES_DURATION_FIELD_NUMBER: builtins.int - SYNTHESIZED_SAMPLES_EVENTS_FIELD_NUMBER: builtins.int - TOTAL_SAMPLES_DURATION_FIELD_NUMBER: builtins.int - TOTAL_PLAYOUT_DELAY_FIELD_NUMBER: builtins.int - TOTAL_SAMPLES_COUNT_FIELD_NUMBER: builtins.int - kind: builtins.str - synthesized_samples_duration: builtins.float - synthesized_samples_events: builtins.int - total_samples_duration: builtins.float - total_playout_delay: builtins.float - total_samples_count: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["frames", b"frames", "frames_per_second", b"frames_per_second", "height", b"height", "width", b"width"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["frames", b"frames", "frames_per_second", b"frames_per_second", "height", b"height", "width", b"width"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___VideoSourceStats: _TypeAlias = VideoSourceStats # noqa: Y015 + +@_typing.final +class AudioPlayoutStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KIND_FIELD_NUMBER: _builtins.int + SYNTHESIZED_SAMPLES_DURATION_FIELD_NUMBER: _builtins.int + SYNTHESIZED_SAMPLES_EVENTS_FIELD_NUMBER: _builtins.int + TOTAL_SAMPLES_DURATION_FIELD_NUMBER: _builtins.int + TOTAL_PLAYOUT_DELAY_FIELD_NUMBER: _builtins.int + TOTAL_SAMPLES_COUNT_FIELD_NUMBER: _builtins.int + kind: _builtins.str + synthesized_samples_duration: _builtins.float + synthesized_samples_events: _builtins.int + total_samples_duration: _builtins.float + total_playout_delay: _builtins.float + total_samples_count: _builtins.int def __init__( self, *, - kind: builtins.str | None = ..., - synthesized_samples_duration: builtins.float | None = ..., - synthesized_samples_events: builtins.int | None = ..., - total_samples_duration: builtins.float | None = ..., - total_playout_delay: builtins.float | None = ..., - total_samples_count: builtins.int | None = ..., + kind: _builtins.str | None = ..., + synthesized_samples_duration: _builtins.float | None = ..., + synthesized_samples_events: _builtins.int | None = ..., + total_samples_duration: _builtins.float | None = ..., + total_playout_delay: _builtins.float | None = ..., + total_samples_count: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["kind", b"kind", "synthesized_samples_duration", b"synthesized_samples_duration", "synthesized_samples_events", b"synthesized_samples_events", "total_playout_delay", b"total_playout_delay", "total_samples_count", b"total_samples_count", "total_samples_duration", b"total_samples_duration"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["kind", b"kind", "synthesized_samples_duration", b"synthesized_samples_duration", "synthesized_samples_events", b"synthesized_samples_events", "total_playout_delay", b"total_playout_delay", "total_samples_count", b"total_samples_count", "total_samples_duration", b"total_samples_duration"]) -> None: ... - -global___AudioPlayoutStats = AudioPlayoutStats - -@typing.final -class PeerConnectionStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - DATA_CHANNELS_OPENED_FIELD_NUMBER: builtins.int - DATA_CHANNELS_CLOSED_FIELD_NUMBER: builtins.int - data_channels_opened: builtins.int - data_channels_closed: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "synthesized_samples_duration", b"synthesized_samples_duration", "synthesized_samples_events", b"synthesized_samples_events", "total_playout_delay", b"total_playout_delay", "total_samples_count", b"total_samples_count", "total_samples_duration", b"total_samples_duration"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "synthesized_samples_duration", b"synthesized_samples_duration", "synthesized_samples_events", b"synthesized_samples_events", "total_playout_delay", b"total_playout_delay", "total_samples_count", b"total_samples_count", "total_samples_duration", b"total_samples_duration"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___AudioPlayoutStats: _TypeAlias = AudioPlayoutStats # noqa: Y015 + +@_typing.final +class PeerConnectionStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + DATA_CHANNELS_OPENED_FIELD_NUMBER: _builtins.int + DATA_CHANNELS_CLOSED_FIELD_NUMBER: _builtins.int + data_channels_opened: _builtins.int + data_channels_closed: _builtins.int def __init__( self, *, - data_channels_opened: builtins.int | None = ..., - data_channels_closed: builtins.int | None = ..., + data_channels_opened: _builtins.int | None = ..., + data_channels_closed: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["data_channels_closed", b"data_channels_closed", "data_channels_opened", b"data_channels_opened"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["data_channels_closed", b"data_channels_closed", "data_channels_opened", b"data_channels_opened"]) -> None: ... - -global___PeerConnectionStats = PeerConnectionStats - -@typing.final -class DataChannelStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - LABEL_FIELD_NUMBER: builtins.int - PROTOCOL_FIELD_NUMBER: builtins.int - DATA_CHANNEL_IDENTIFIER_FIELD_NUMBER: builtins.int - STATE_FIELD_NUMBER: builtins.int - MESSAGES_SENT_FIELD_NUMBER: builtins.int - BYTES_SENT_FIELD_NUMBER: builtins.int - MESSAGES_RECEIVED_FIELD_NUMBER: builtins.int - BYTES_RECEIVED_FIELD_NUMBER: builtins.int - label: builtins.str - protocol: builtins.str - data_channel_identifier: builtins.int - state: global___DataChannelState.ValueType - messages_sent: builtins.int - bytes_sent: builtins.int - messages_received: builtins.int - bytes_received: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["data_channels_closed", b"data_channels_closed", "data_channels_opened", b"data_channels_opened"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["data_channels_closed", b"data_channels_closed", "data_channels_opened", b"data_channels_opened"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___PeerConnectionStats: _TypeAlias = PeerConnectionStats # noqa: Y015 + +@_typing.final +class DataChannelStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + LABEL_FIELD_NUMBER: _builtins.int + PROTOCOL_FIELD_NUMBER: _builtins.int + DATA_CHANNEL_IDENTIFIER_FIELD_NUMBER: _builtins.int + STATE_FIELD_NUMBER: _builtins.int + MESSAGES_SENT_FIELD_NUMBER: _builtins.int + BYTES_SENT_FIELD_NUMBER: _builtins.int + MESSAGES_RECEIVED_FIELD_NUMBER: _builtins.int + BYTES_RECEIVED_FIELD_NUMBER: _builtins.int + label: _builtins.str + protocol: _builtins.str + data_channel_identifier: _builtins.int + state: Global___DataChannelState.ValueType + messages_sent: _builtins.int + bytes_sent: _builtins.int + messages_received: _builtins.int + bytes_received: _builtins.int def __init__( self, *, - label: builtins.str | None = ..., - protocol: builtins.str | None = ..., - data_channel_identifier: builtins.int | None = ..., - state: global___DataChannelState.ValueType | None = ..., - messages_sent: builtins.int | None = ..., - bytes_sent: builtins.int | None = ..., - messages_received: builtins.int | None = ..., - bytes_received: builtins.int | None = ..., + label: _builtins.str | None = ..., + protocol: _builtins.str | None = ..., + data_channel_identifier: _builtins.int | None = ..., + state: Global___DataChannelState.ValueType | None = ..., + messages_sent: _builtins.int | None = ..., + bytes_sent: _builtins.int | None = ..., + messages_received: _builtins.int | None = ..., + bytes_received: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "data_channel_identifier", b"data_channel_identifier", "label", b"label", "messages_received", b"messages_received", "messages_sent", b"messages_sent", "protocol", b"protocol", "state", b"state"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "data_channel_identifier", b"data_channel_identifier", "label", b"label", "messages_received", b"messages_received", "messages_sent", b"messages_sent", "protocol", b"protocol", "state", b"state"]) -> None: ... - -global___DataChannelStats = DataChannelStats - -@typing.final -class TransportStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PACKETS_SENT_FIELD_NUMBER: builtins.int - PACKETS_RECEIVED_FIELD_NUMBER: builtins.int - BYTES_SENT_FIELD_NUMBER: builtins.int - BYTES_RECEIVED_FIELD_NUMBER: builtins.int - ICE_ROLE_FIELD_NUMBER: builtins.int - ICE_LOCAL_USERNAME_FRAGMENT_FIELD_NUMBER: builtins.int - DTLS_STATE_FIELD_NUMBER: builtins.int - ICE_STATE_FIELD_NUMBER: builtins.int - SELECTED_CANDIDATE_PAIR_ID_FIELD_NUMBER: builtins.int - LOCAL_CERTIFICATE_ID_FIELD_NUMBER: builtins.int - REMOTE_CERTIFICATE_ID_FIELD_NUMBER: builtins.int - TLS_VERSION_FIELD_NUMBER: builtins.int - DTLS_CIPHER_FIELD_NUMBER: builtins.int - DTLS_ROLE_FIELD_NUMBER: builtins.int - SRTP_CIPHER_FIELD_NUMBER: builtins.int - SELECTED_CANDIDATE_PAIR_CHANGES_FIELD_NUMBER: builtins.int - packets_sent: builtins.int - packets_received: builtins.int - bytes_sent: builtins.int - bytes_received: builtins.int - ice_role: global___IceRole.ValueType - ice_local_username_fragment: builtins.str - dtls_state: global___DtlsTransportState.ValueType - ice_state: global___IceTransportState.ValueType - selected_candidate_pair_id: builtins.str - local_certificate_id: builtins.str - remote_certificate_id: builtins.str - tls_version: builtins.str - dtls_cipher: builtins.str - dtls_role: global___DtlsRole.ValueType - srtp_cipher: builtins.str - selected_candidate_pair_changes: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "data_channel_identifier", b"data_channel_identifier", "label", b"label", "messages_received", b"messages_received", "messages_sent", b"messages_sent", "protocol", b"protocol", "state", b"state"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "data_channel_identifier", b"data_channel_identifier", "label", b"label", "messages_received", b"messages_received", "messages_sent", b"messages_sent", "protocol", b"protocol", "state", b"state"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___DataChannelStats: _TypeAlias = DataChannelStats # noqa: Y015 + +@_typing.final +class TransportStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PACKETS_SENT_FIELD_NUMBER: _builtins.int + PACKETS_RECEIVED_FIELD_NUMBER: _builtins.int + BYTES_SENT_FIELD_NUMBER: _builtins.int + BYTES_RECEIVED_FIELD_NUMBER: _builtins.int + ICE_ROLE_FIELD_NUMBER: _builtins.int + ICE_LOCAL_USERNAME_FRAGMENT_FIELD_NUMBER: _builtins.int + DTLS_STATE_FIELD_NUMBER: _builtins.int + ICE_STATE_FIELD_NUMBER: _builtins.int + SELECTED_CANDIDATE_PAIR_ID_FIELD_NUMBER: _builtins.int + LOCAL_CERTIFICATE_ID_FIELD_NUMBER: _builtins.int + REMOTE_CERTIFICATE_ID_FIELD_NUMBER: _builtins.int + TLS_VERSION_FIELD_NUMBER: _builtins.int + DTLS_CIPHER_FIELD_NUMBER: _builtins.int + DTLS_ROLE_FIELD_NUMBER: _builtins.int + SRTP_CIPHER_FIELD_NUMBER: _builtins.int + SELECTED_CANDIDATE_PAIR_CHANGES_FIELD_NUMBER: _builtins.int + packets_sent: _builtins.int + packets_received: _builtins.int + bytes_sent: _builtins.int + bytes_received: _builtins.int + ice_role: Global___IceRole.ValueType + ice_local_username_fragment: _builtins.str + dtls_state: Global___DtlsTransportState.ValueType + ice_state: Global___IceTransportState.ValueType + selected_candidate_pair_id: _builtins.str + local_certificate_id: _builtins.str + remote_certificate_id: _builtins.str + tls_version: _builtins.str + dtls_cipher: _builtins.str + dtls_role: Global___DtlsRole.ValueType + srtp_cipher: _builtins.str + selected_candidate_pair_changes: _builtins.int def __init__( self, *, - packets_sent: builtins.int | None = ..., - packets_received: builtins.int | None = ..., - bytes_sent: builtins.int | None = ..., - bytes_received: builtins.int | None = ..., - ice_role: global___IceRole.ValueType | None = ..., - ice_local_username_fragment: builtins.str | None = ..., - dtls_state: global___DtlsTransportState.ValueType | None = ..., - ice_state: global___IceTransportState.ValueType | None = ..., - selected_candidate_pair_id: builtins.str | None = ..., - local_certificate_id: builtins.str | None = ..., - remote_certificate_id: builtins.str | None = ..., - tls_version: builtins.str | None = ..., - dtls_cipher: builtins.str | None = ..., - dtls_role: global___DtlsRole.ValueType | None = ..., - srtp_cipher: builtins.str | None = ..., - selected_candidate_pair_changes: builtins.int | None = ..., + packets_sent: _builtins.int | None = ..., + packets_received: _builtins.int | None = ..., + bytes_sent: _builtins.int | None = ..., + bytes_received: _builtins.int | None = ..., + ice_role: Global___IceRole.ValueType | None = ..., + ice_local_username_fragment: _builtins.str | None = ..., + dtls_state: Global___DtlsTransportState.ValueType | None = ..., + ice_state: Global___IceTransportState.ValueType | None = ..., + selected_candidate_pair_id: _builtins.str | None = ..., + local_certificate_id: _builtins.str | None = ..., + remote_certificate_id: _builtins.str | None = ..., + tls_version: _builtins.str | None = ..., + dtls_cipher: _builtins.str | None = ..., + dtls_role: Global___DtlsRole.ValueType | None = ..., + srtp_cipher: _builtins.str | None = ..., + selected_candidate_pair_changes: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "dtls_cipher", b"dtls_cipher", "dtls_role", b"dtls_role", "dtls_state", b"dtls_state", "ice_local_username_fragment", b"ice_local_username_fragment", "ice_role", b"ice_role", "ice_state", b"ice_state", "local_certificate_id", b"local_certificate_id", "packets_received", b"packets_received", "packets_sent", b"packets_sent", "remote_certificate_id", b"remote_certificate_id", "selected_candidate_pair_changes", b"selected_candidate_pair_changes", "selected_candidate_pair_id", b"selected_candidate_pair_id", "srtp_cipher", b"srtp_cipher", "tls_version", b"tls_version"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "dtls_cipher", b"dtls_cipher", "dtls_role", b"dtls_role", "dtls_state", b"dtls_state", "ice_local_username_fragment", b"ice_local_username_fragment", "ice_role", b"ice_role", "ice_state", b"ice_state", "local_certificate_id", b"local_certificate_id", "packets_received", b"packets_received", "packets_sent", b"packets_sent", "remote_certificate_id", b"remote_certificate_id", "selected_candidate_pair_changes", b"selected_candidate_pair_changes", "selected_candidate_pair_id", b"selected_candidate_pair_id", "srtp_cipher", b"srtp_cipher", "tls_version", b"tls_version"]) -> None: ... - -global___TransportStats = TransportStats - -@typing.final -class CandidatePairStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TRANSPORT_ID_FIELD_NUMBER: builtins.int - LOCAL_CANDIDATE_ID_FIELD_NUMBER: builtins.int - REMOTE_CANDIDATE_ID_FIELD_NUMBER: builtins.int - STATE_FIELD_NUMBER: builtins.int - NOMINATED_FIELD_NUMBER: builtins.int - PACKETS_SENT_FIELD_NUMBER: builtins.int - PACKETS_RECEIVED_FIELD_NUMBER: builtins.int - BYTES_SENT_FIELD_NUMBER: builtins.int - BYTES_RECEIVED_FIELD_NUMBER: builtins.int - LAST_PACKET_SENT_TIMESTAMP_FIELD_NUMBER: builtins.int - LAST_PACKET_RECEIVED_TIMESTAMP_FIELD_NUMBER: builtins.int - TOTAL_ROUND_TRIP_TIME_FIELD_NUMBER: builtins.int - CURRENT_ROUND_TRIP_TIME_FIELD_NUMBER: builtins.int - AVAILABLE_OUTGOING_BITRATE_FIELD_NUMBER: builtins.int - AVAILABLE_INCOMING_BITRATE_FIELD_NUMBER: builtins.int - REQUESTS_RECEIVED_FIELD_NUMBER: builtins.int - REQUESTS_SENT_FIELD_NUMBER: builtins.int - RESPONSES_RECEIVED_FIELD_NUMBER: builtins.int - RESPONSES_SENT_FIELD_NUMBER: builtins.int - CONSENT_REQUESTS_SENT_FIELD_NUMBER: builtins.int - PACKETS_DISCARDED_ON_SEND_FIELD_NUMBER: builtins.int - BYTES_DISCARDED_ON_SEND_FIELD_NUMBER: builtins.int - transport_id: builtins.str - local_candidate_id: builtins.str - remote_candidate_id: builtins.str - state: global___IceCandidatePairState.ValueType - nominated: builtins.bool - packets_sent: builtins.int - packets_received: builtins.int - bytes_sent: builtins.int - bytes_received: builtins.int - last_packet_sent_timestamp: builtins.float - last_packet_received_timestamp: builtins.float - total_round_trip_time: builtins.float - current_round_trip_time: builtins.float - available_outgoing_bitrate: builtins.float - available_incoming_bitrate: builtins.float - requests_received: builtins.int - requests_sent: builtins.int - responses_received: builtins.int - responses_sent: builtins.int - consent_requests_sent: builtins.int - packets_discarded_on_send: builtins.int - bytes_discarded_on_send: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "dtls_cipher", b"dtls_cipher", "dtls_role", b"dtls_role", "dtls_state", b"dtls_state", "ice_local_username_fragment", b"ice_local_username_fragment", "ice_role", b"ice_role", "ice_state", b"ice_state", "local_certificate_id", b"local_certificate_id", "packets_received", b"packets_received", "packets_sent", b"packets_sent", "remote_certificate_id", b"remote_certificate_id", "selected_candidate_pair_changes", b"selected_candidate_pair_changes", "selected_candidate_pair_id", b"selected_candidate_pair_id", "srtp_cipher", b"srtp_cipher", "tls_version", b"tls_version"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "dtls_cipher", b"dtls_cipher", "dtls_role", b"dtls_role", "dtls_state", b"dtls_state", "ice_local_username_fragment", b"ice_local_username_fragment", "ice_role", b"ice_role", "ice_state", b"ice_state", "local_certificate_id", b"local_certificate_id", "packets_received", b"packets_received", "packets_sent", b"packets_sent", "remote_certificate_id", b"remote_certificate_id", "selected_candidate_pair_changes", b"selected_candidate_pair_changes", "selected_candidate_pair_id", b"selected_candidate_pair_id", "srtp_cipher", b"srtp_cipher", "tls_version", b"tls_version"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___TransportStats: _TypeAlias = TransportStats # noqa: Y015 + +@_typing.final +class CandidatePairStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + TRANSPORT_ID_FIELD_NUMBER: _builtins.int + LOCAL_CANDIDATE_ID_FIELD_NUMBER: _builtins.int + REMOTE_CANDIDATE_ID_FIELD_NUMBER: _builtins.int + STATE_FIELD_NUMBER: _builtins.int + NOMINATED_FIELD_NUMBER: _builtins.int + PACKETS_SENT_FIELD_NUMBER: _builtins.int + PACKETS_RECEIVED_FIELD_NUMBER: _builtins.int + BYTES_SENT_FIELD_NUMBER: _builtins.int + BYTES_RECEIVED_FIELD_NUMBER: _builtins.int + LAST_PACKET_SENT_TIMESTAMP_FIELD_NUMBER: _builtins.int + LAST_PACKET_RECEIVED_TIMESTAMP_FIELD_NUMBER: _builtins.int + TOTAL_ROUND_TRIP_TIME_FIELD_NUMBER: _builtins.int + CURRENT_ROUND_TRIP_TIME_FIELD_NUMBER: _builtins.int + AVAILABLE_OUTGOING_BITRATE_FIELD_NUMBER: _builtins.int + AVAILABLE_INCOMING_BITRATE_FIELD_NUMBER: _builtins.int + REQUESTS_RECEIVED_FIELD_NUMBER: _builtins.int + REQUESTS_SENT_FIELD_NUMBER: _builtins.int + RESPONSES_RECEIVED_FIELD_NUMBER: _builtins.int + RESPONSES_SENT_FIELD_NUMBER: _builtins.int + CONSENT_REQUESTS_SENT_FIELD_NUMBER: _builtins.int + PACKETS_DISCARDED_ON_SEND_FIELD_NUMBER: _builtins.int + BYTES_DISCARDED_ON_SEND_FIELD_NUMBER: _builtins.int + transport_id: _builtins.str + local_candidate_id: _builtins.str + remote_candidate_id: _builtins.str + state: Global___IceCandidatePairState.ValueType + nominated: _builtins.bool + packets_sent: _builtins.int + packets_received: _builtins.int + bytes_sent: _builtins.int + bytes_received: _builtins.int + last_packet_sent_timestamp: _builtins.float + last_packet_received_timestamp: _builtins.float + total_round_trip_time: _builtins.float + current_round_trip_time: _builtins.float + available_outgoing_bitrate: _builtins.float + available_incoming_bitrate: _builtins.float + requests_received: _builtins.int + requests_sent: _builtins.int + responses_received: _builtins.int + responses_sent: _builtins.int + consent_requests_sent: _builtins.int + packets_discarded_on_send: _builtins.int + bytes_discarded_on_send: _builtins.int def __init__( self, *, - transport_id: builtins.str | None = ..., - local_candidate_id: builtins.str | None = ..., - remote_candidate_id: builtins.str | None = ..., - state: global___IceCandidatePairState.ValueType | None = ..., - nominated: builtins.bool | None = ..., - packets_sent: builtins.int | None = ..., - packets_received: builtins.int | None = ..., - bytes_sent: builtins.int | None = ..., - bytes_received: builtins.int | None = ..., - last_packet_sent_timestamp: builtins.float | None = ..., - last_packet_received_timestamp: builtins.float | None = ..., - total_round_trip_time: builtins.float | None = ..., - current_round_trip_time: builtins.float | None = ..., - available_outgoing_bitrate: builtins.float | None = ..., - available_incoming_bitrate: builtins.float | None = ..., - requests_received: builtins.int | None = ..., - requests_sent: builtins.int | None = ..., - responses_received: builtins.int | None = ..., - responses_sent: builtins.int | None = ..., - consent_requests_sent: builtins.int | None = ..., - packets_discarded_on_send: builtins.int | None = ..., - bytes_discarded_on_send: builtins.int | None = ..., + transport_id: _builtins.str | None = ..., + local_candidate_id: _builtins.str | None = ..., + remote_candidate_id: _builtins.str | None = ..., + state: Global___IceCandidatePairState.ValueType | None = ..., + nominated: _builtins.bool | None = ..., + packets_sent: _builtins.int | None = ..., + packets_received: _builtins.int | None = ..., + bytes_sent: _builtins.int | None = ..., + bytes_received: _builtins.int | None = ..., + last_packet_sent_timestamp: _builtins.float | None = ..., + last_packet_received_timestamp: _builtins.float | None = ..., + total_round_trip_time: _builtins.float | None = ..., + current_round_trip_time: _builtins.float | None = ..., + available_outgoing_bitrate: _builtins.float | None = ..., + available_incoming_bitrate: _builtins.float | None = ..., + requests_received: _builtins.int | None = ..., + requests_sent: _builtins.int | None = ..., + responses_received: _builtins.int | None = ..., + responses_sent: _builtins.int | None = ..., + consent_requests_sent: _builtins.int | None = ..., + packets_discarded_on_send: _builtins.int | None = ..., + bytes_discarded_on_send: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["available_incoming_bitrate", b"available_incoming_bitrate", "available_outgoing_bitrate", b"available_outgoing_bitrate", "bytes_discarded_on_send", b"bytes_discarded_on_send", "bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "consent_requests_sent", b"consent_requests_sent", "current_round_trip_time", b"current_round_trip_time", "last_packet_received_timestamp", b"last_packet_received_timestamp", "last_packet_sent_timestamp", b"last_packet_sent_timestamp", "local_candidate_id", b"local_candidate_id", "nominated", b"nominated", "packets_discarded_on_send", b"packets_discarded_on_send", "packets_received", b"packets_received", "packets_sent", b"packets_sent", "remote_candidate_id", b"remote_candidate_id", "requests_received", b"requests_received", "requests_sent", b"requests_sent", "responses_received", b"responses_received", "responses_sent", b"responses_sent", "state", b"state", "total_round_trip_time", b"total_round_trip_time", "transport_id", b"transport_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["available_incoming_bitrate", b"available_incoming_bitrate", "available_outgoing_bitrate", b"available_outgoing_bitrate", "bytes_discarded_on_send", b"bytes_discarded_on_send", "bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "consent_requests_sent", b"consent_requests_sent", "current_round_trip_time", b"current_round_trip_time", "last_packet_received_timestamp", b"last_packet_received_timestamp", "last_packet_sent_timestamp", b"last_packet_sent_timestamp", "local_candidate_id", b"local_candidate_id", "nominated", b"nominated", "packets_discarded_on_send", b"packets_discarded_on_send", "packets_received", b"packets_received", "packets_sent", b"packets_sent", "remote_candidate_id", b"remote_candidate_id", "requests_received", b"requests_received", "requests_sent", b"requests_sent", "responses_received", b"responses_received", "responses_sent", b"responses_sent", "state", b"state", "total_round_trip_time", b"total_round_trip_time", "transport_id", b"transport_id"]) -> None: ... - -global___CandidatePairStats = CandidatePairStats - -@typing.final -class IceCandidateStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TRANSPORT_ID_FIELD_NUMBER: builtins.int - ADDRESS_FIELD_NUMBER: builtins.int - PORT_FIELD_NUMBER: builtins.int - PROTOCOL_FIELD_NUMBER: builtins.int - CANDIDATE_TYPE_FIELD_NUMBER: builtins.int - PRIORITY_FIELD_NUMBER: builtins.int - URL_FIELD_NUMBER: builtins.int - RELAY_PROTOCOL_FIELD_NUMBER: builtins.int - FOUNDATION_FIELD_NUMBER: builtins.int - RELATED_ADDRESS_FIELD_NUMBER: builtins.int - RELATED_PORT_FIELD_NUMBER: builtins.int - USERNAME_FRAGMENT_FIELD_NUMBER: builtins.int - TCP_TYPE_FIELD_NUMBER: builtins.int - transport_id: builtins.str - address: builtins.str - port: builtins.int - protocol: builtins.str - candidate_type: global___IceCandidateType.ValueType - priority: builtins.int - url: builtins.str - relay_protocol: global___IceServerTransportProtocol.ValueType - foundation: builtins.str - related_address: builtins.str - related_port: builtins.int - username_fragment: builtins.str - tcp_type: global___IceTcpCandidateType.ValueType + _HasFieldArgType: _TypeAlias = _typing.Literal["available_incoming_bitrate", b"available_incoming_bitrate", "available_outgoing_bitrate", b"available_outgoing_bitrate", "bytes_discarded_on_send", b"bytes_discarded_on_send", "bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "consent_requests_sent", b"consent_requests_sent", "current_round_trip_time", b"current_round_trip_time", "last_packet_received_timestamp", b"last_packet_received_timestamp", "last_packet_sent_timestamp", b"last_packet_sent_timestamp", "local_candidate_id", b"local_candidate_id", "nominated", b"nominated", "packets_discarded_on_send", b"packets_discarded_on_send", "packets_received", b"packets_received", "packets_sent", b"packets_sent", "remote_candidate_id", b"remote_candidate_id", "requests_received", b"requests_received", "requests_sent", b"requests_sent", "responses_received", b"responses_received", "responses_sent", b"responses_sent", "state", b"state", "total_round_trip_time", b"total_round_trip_time", "transport_id", b"transport_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["available_incoming_bitrate", b"available_incoming_bitrate", "available_outgoing_bitrate", b"available_outgoing_bitrate", "bytes_discarded_on_send", b"bytes_discarded_on_send", "bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "consent_requests_sent", b"consent_requests_sent", "current_round_trip_time", b"current_round_trip_time", "last_packet_received_timestamp", b"last_packet_received_timestamp", "last_packet_sent_timestamp", b"last_packet_sent_timestamp", "local_candidate_id", b"local_candidate_id", "nominated", b"nominated", "packets_discarded_on_send", b"packets_discarded_on_send", "packets_received", b"packets_received", "packets_sent", b"packets_sent", "remote_candidate_id", b"remote_candidate_id", "requests_received", b"requests_received", "requests_sent", b"requests_sent", "responses_received", b"responses_received", "responses_sent", b"responses_sent", "state", b"state", "total_round_trip_time", b"total_round_trip_time", "transport_id", b"transport_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___CandidatePairStats: _TypeAlias = CandidatePairStats # noqa: Y015 + +@_typing.final +class IceCandidateStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + TRANSPORT_ID_FIELD_NUMBER: _builtins.int + ADDRESS_FIELD_NUMBER: _builtins.int + PORT_FIELD_NUMBER: _builtins.int + PROTOCOL_FIELD_NUMBER: _builtins.int + CANDIDATE_TYPE_FIELD_NUMBER: _builtins.int + PRIORITY_FIELD_NUMBER: _builtins.int + URL_FIELD_NUMBER: _builtins.int + RELAY_PROTOCOL_FIELD_NUMBER: _builtins.int + FOUNDATION_FIELD_NUMBER: _builtins.int + RELATED_ADDRESS_FIELD_NUMBER: _builtins.int + RELATED_PORT_FIELD_NUMBER: _builtins.int + USERNAME_FRAGMENT_FIELD_NUMBER: _builtins.int + TCP_TYPE_FIELD_NUMBER: _builtins.int + transport_id: _builtins.str + address: _builtins.str + port: _builtins.int + protocol: _builtins.str + candidate_type: Global___IceCandidateType.ValueType + priority: _builtins.int + url: _builtins.str + relay_protocol: Global___IceServerTransportProtocol.ValueType + foundation: _builtins.str + related_address: _builtins.str + related_port: _builtins.int + username_fragment: _builtins.str + tcp_type: Global___IceTcpCandidateType.ValueType def __init__( self, *, - transport_id: builtins.str | None = ..., - address: builtins.str | None = ..., - port: builtins.int | None = ..., - protocol: builtins.str | None = ..., - candidate_type: global___IceCandidateType.ValueType | None = ..., - priority: builtins.int | None = ..., - url: builtins.str | None = ..., - relay_protocol: global___IceServerTransportProtocol.ValueType | None = ..., - foundation: builtins.str | None = ..., - related_address: builtins.str | None = ..., - related_port: builtins.int | None = ..., - username_fragment: builtins.str | None = ..., - tcp_type: global___IceTcpCandidateType.ValueType | None = ..., + transport_id: _builtins.str | None = ..., + address: _builtins.str | None = ..., + port: _builtins.int | None = ..., + protocol: _builtins.str | None = ..., + candidate_type: Global___IceCandidateType.ValueType | None = ..., + priority: _builtins.int | None = ..., + url: _builtins.str | None = ..., + relay_protocol: Global___IceServerTransportProtocol.ValueType | None = ..., + foundation: _builtins.str | None = ..., + related_address: _builtins.str | None = ..., + related_port: _builtins.int | None = ..., + username_fragment: _builtins.str | None = ..., + tcp_type: Global___IceTcpCandidateType.ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["address", b"address", "candidate_type", b"candidate_type", "foundation", b"foundation", "port", b"port", "priority", b"priority", "protocol", b"protocol", "related_address", b"related_address", "related_port", b"related_port", "relay_protocol", b"relay_protocol", "tcp_type", b"tcp_type", "transport_id", b"transport_id", "url", b"url", "username_fragment", b"username_fragment"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["address", b"address", "candidate_type", b"candidate_type", "foundation", b"foundation", "port", b"port", "priority", b"priority", "protocol", b"protocol", "related_address", b"related_address", "related_port", b"related_port", "relay_protocol", b"relay_protocol", "tcp_type", b"tcp_type", "transport_id", b"transport_id", "url", b"url", "username_fragment", b"username_fragment"]) -> None: ... - -global___IceCandidateStats = IceCandidateStats - -@typing.final -class CertificateStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - FINGERPRINT_FIELD_NUMBER: builtins.int - FINGERPRINT_ALGORITHM_FIELD_NUMBER: builtins.int - BASE64_CERTIFICATE_FIELD_NUMBER: builtins.int - ISSUER_CERTIFICATE_ID_FIELD_NUMBER: builtins.int - fingerprint: builtins.str - fingerprint_algorithm: builtins.str - base64_certificate: builtins.str - issuer_certificate_id: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["address", b"address", "candidate_type", b"candidate_type", "foundation", b"foundation", "port", b"port", "priority", b"priority", "protocol", b"protocol", "related_address", b"related_address", "related_port", b"related_port", "relay_protocol", b"relay_protocol", "tcp_type", b"tcp_type", "transport_id", b"transport_id", "url", b"url", "username_fragment", b"username_fragment"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["address", b"address", "candidate_type", b"candidate_type", "foundation", b"foundation", "port", b"port", "priority", b"priority", "protocol", b"protocol", "related_address", b"related_address", "related_port", b"related_port", "relay_protocol", b"relay_protocol", "tcp_type", b"tcp_type", "transport_id", b"transport_id", "url", b"url", "username_fragment", b"username_fragment"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___IceCandidateStats: _TypeAlias = IceCandidateStats # noqa: Y015 + +@_typing.final +class CertificateStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + FINGERPRINT_FIELD_NUMBER: _builtins.int + FINGERPRINT_ALGORITHM_FIELD_NUMBER: _builtins.int + BASE64_CERTIFICATE_FIELD_NUMBER: _builtins.int + ISSUER_CERTIFICATE_ID_FIELD_NUMBER: _builtins.int + fingerprint: _builtins.str + fingerprint_algorithm: _builtins.str + base64_certificate: _builtins.str + issuer_certificate_id: _builtins.str def __init__( self, *, - fingerprint: builtins.str | None = ..., - fingerprint_algorithm: builtins.str | None = ..., - base64_certificate: builtins.str | None = ..., - issuer_certificate_id: builtins.str | None = ..., + fingerprint: _builtins.str | None = ..., + fingerprint_algorithm: _builtins.str | None = ..., + base64_certificate: _builtins.str | None = ..., + issuer_certificate_id: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["base64_certificate", b"base64_certificate", "fingerprint", b"fingerprint", "fingerprint_algorithm", b"fingerprint_algorithm", "issuer_certificate_id", b"issuer_certificate_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["base64_certificate", b"base64_certificate", "fingerprint", b"fingerprint", "fingerprint_algorithm", b"fingerprint_algorithm", "issuer_certificate_id", b"issuer_certificate_id"]) -> None: ... - -global___CertificateStats = CertificateStats - -@typing.final -class StreamStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ID_FIELD_NUMBER: builtins.int - STREAM_IDENTIFIER_FIELD_NUMBER: builtins.int - id: builtins.str - stream_identifier: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["base64_certificate", b"base64_certificate", "fingerprint", b"fingerprint", "fingerprint_algorithm", b"fingerprint_algorithm", "issuer_certificate_id", b"issuer_certificate_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["base64_certificate", b"base64_certificate", "fingerprint", b"fingerprint", "fingerprint_algorithm", b"fingerprint_algorithm", "issuer_certificate_id", b"issuer_certificate_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___CertificateStats: _TypeAlias = CertificateStats # noqa: Y015 + +@_typing.final +class StreamStats(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ID_FIELD_NUMBER: _builtins.int + STREAM_IDENTIFIER_FIELD_NUMBER: _builtins.int + id: _builtins.str + stream_identifier: _builtins.str """required int64 timestamp = 3;""" def __init__( self, *, - id: builtins.str | None = ..., - stream_identifier: builtins.str | None = ..., + id: _builtins.str | None = ..., + stream_identifier: _builtins.str | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["id", b"id", "stream_identifier", b"stream_identifier"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["id", b"id", "stream_identifier", b"stream_identifier"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["id", b"id", "stream_identifier", b"stream_identifier"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["id", b"id", "stream_identifier", b"stream_identifier"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___StreamStats = StreamStats +Global___StreamStats: _TypeAlias = StreamStats # noqa: Y015 diff --git a/livekit-rtc/livekit/rtc/_proto/track_pb2.py b/livekit-rtc/livekit/rtc/_proto/track_pb2.py index 562a267c..f1cacee0 100644 --- a/livekit-rtc/livekit/rtc/_proto/track_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/track_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: track.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 4.25.2 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -17,7 +17,7 @@ from . import stats_pb2 as stats__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0btrack.proto\x12\rlivekit.proto\x1a\ne2ee.proto\x1a\x0chandle.proto\x1a\x0bstats.proto\">\n\x17\x43reateVideoTrackRequest\x12\x0c\n\x04name\x18\x01 \x02(\t\x12\x15\n\rsource_handle\x18\x02 \x02(\x04\"D\n\x18\x43reateVideoTrackResponse\x12(\n\x05track\x18\x01 \x02(\x0b\x32\x19.livekit.proto.OwnedTrack\">\n\x17\x43reateAudioTrackRequest\x12\x0c\n\x04name\x18\x01 \x02(\t\x12\x15\n\rsource_handle\x18\x02 \x02(\x04\"D\n\x18\x43reateAudioTrackResponse\x12(\n\x05track\x18\x01 \x02(\x0b\x32\x19.livekit.proto.OwnedTrack\"A\n\x0fGetStatsRequest\x12\x14\n\x0ctrack_handle\x18\x01 \x02(\x04\x12\x18\n\x10request_async_id\x18\x02 \x01(\x04\"$\n\x10GetStatsResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"[\n\x10GetStatsCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\x12&\n\x05stats\x18\x03 \x03(\x0b\x32\x17.livekit.proto.RtcStats\"\x0c\n\nTrackEvent\"\xa3\x03\n\x14TrackPublicationInfo\x12\x0b\n\x03sid\x18\x01 \x02(\t\x12\x0c\n\x04name\x18\x02 \x02(\t\x12&\n\x04kind\x18\x03 \x02(\x0e\x32\x18.livekit.proto.TrackKind\x12*\n\x06source\x18\x04 \x02(\x0e\x32\x1a.livekit.proto.TrackSource\x12\x13\n\x0bsimulcasted\x18\x05 \x02(\x08\x12\r\n\x05width\x18\x06 \x02(\r\x12\x0e\n\x06height\x18\x07 \x02(\r\x12\x11\n\tmime_type\x18\x08 \x02(\t\x12\r\n\x05muted\x18\t \x02(\x08\x12\x0e\n\x06remote\x18\n \x02(\x08\x12\x36\n\x0f\x65ncryption_type\x18\x0b \x02(\x0e\x32\x1d.livekit.proto.EncryptionType\x12\x38\n\x0e\x61udio_features\x18\x0c \x03(\x0e\x32 .livekit.proto.AudioTrackFeature\x12\x44\n\x17packet_trailer_features\x18\r \x03(\x0e\x32#.livekit.proto.PacketTrailerFeature\"y\n\x15OwnedTrackPublication\x12-\n\x06handle\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12\x31\n\x04info\x18\x02 \x02(\x0b\x32#.livekit.proto.TrackPublicationInfo\"\x9f\x01\n\tTrackInfo\x12\x0b\n\x03sid\x18\x01 \x02(\t\x12\x0c\n\x04name\x18\x02 \x02(\t\x12&\n\x04kind\x18\x03 \x02(\x0e\x32\x18.livekit.proto.TrackKind\x12\x30\n\x0cstream_state\x18\x04 \x02(\x0e\x32\x1a.livekit.proto.StreamState\x12\r\n\x05muted\x18\x05 \x02(\x08\x12\x0e\n\x06remote\x18\x06 \x02(\x08\"c\n\nOwnedTrack\x12-\n\x06handle\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12&\n\x04info\x18\x02 \x02(\x0b\x32\x18.livekit.proto.TrackInfo\";\n\x15LocalTrackMuteRequest\x12\x14\n\x0ctrack_handle\x18\x01 \x02(\x04\x12\x0c\n\x04mute\x18\x02 \x02(\x08\"\'\n\x16LocalTrackMuteResponse\x12\r\n\x05muted\x18\x01 \x02(\x08\"A\n\x18\x45nableRemoteTrackRequest\x12\x14\n\x0ctrack_handle\x18\x01 \x02(\x04\x12\x0f\n\x07\x65nabled\x18\x02 \x02(\x08\",\n\x19\x45nableRemoteTrackResponse\x12\x0f\n\x07\x65nabled\x18\x01 \x02(\x08\"\xac\x01\n&SetTrackSubscriptionPermissionsRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12 \n\x18\x61ll_participants_allowed\x18\x02 \x02(\x08\x12>\n\x0bpermissions\x18\x03 \x03(\x0b\x32).livekit.proto.ParticipantTrackPermission\"i\n\x1aParticipantTrackPermission\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x11\n\tallow_all\x18\x02 \x01(\x08\x12\x1a\n\x12\x61llowed_track_sids\x18\x03 \x03(\t\")\n\'SetTrackSubscriptionPermissionsResponse*=\n\tTrackKind\x12\x10\n\x0cKIND_UNKNOWN\x10\x00\x12\x0e\n\nKIND_AUDIO\x10\x01\x12\x0e\n\nKIND_VIDEO\x10\x02*\x81\x01\n\x0bTrackSource\x12\x12\n\x0eSOURCE_UNKNOWN\x10\x00\x12\x11\n\rSOURCE_CAMERA\x10\x01\x12\x15\n\x11SOURCE_MICROPHONE\x10\x02\x12\x16\n\x12SOURCE_SCREENSHARE\x10\x03\x12\x1c\n\x18SOURCE_SCREENSHARE_AUDIO\x10\x04*D\n\x0bStreamState\x12\x11\n\rSTATE_UNKNOWN\x10\x00\x12\x10\n\x0cSTATE_ACTIVE\x10\x01\x12\x10\n\x0cSTATE_PAUSED\x10\x02*\xbd\x01\n\x11\x41udioTrackFeature\x12\r\n\tTF_STEREO\x10\x00\x12\r\n\tTF_NO_DTX\x10\x01\x12\x18\n\x14TF_AUTO_GAIN_CONTROL\x10\x02\x12\x18\n\x14TF_ECHO_CANCELLATION\x10\x03\x12\x18\n\x14TF_NOISE_SUPPRESSION\x10\x04\x12\"\n\x1eTF_ENHANCED_NOISE_CANCELLATION\x10\x05\x12\x18\n\x14TF_PRECONNECT_BUFFER\x10\x06*@\n\x14PacketTrailerFeature\x12\x16\n\x12PTF_USER_TIMESTAMP\x10\x00\x12\x10\n\x0cPTF_FRAME_ID\x10\x01\x42\x10\xaa\x02\rLiveKit.Proto') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0btrack.proto\x12\rlivekit.proto\x1a\ne2ee.proto\x1a\x0chandle.proto\x1a\x0bstats.proto\">\n\x17\x43reateVideoTrackRequest\x12\x0c\n\x04name\x18\x01 \x02(\t\x12\x15\n\rsource_handle\x18\x02 \x02(\x04\"D\n\x18\x43reateVideoTrackResponse\x12(\n\x05track\x18\x01 \x02(\x0b\x32\x19.livekit.proto.OwnedTrack\">\n\x17\x43reateAudioTrackRequest\x12\x0c\n\x04name\x18\x01 \x02(\t\x12\x15\n\rsource_handle\x18\x02 \x02(\x04\"D\n\x18\x43reateAudioTrackResponse\x12(\n\x05track\x18\x01 \x02(\x0b\x32\x19.livekit.proto.OwnedTrack\"A\n\x0fGetStatsRequest\x12\x14\n\x0ctrack_handle\x18\x01 \x02(\x04\x12\x18\n\x10request_async_id\x18\x02 \x01(\x04\"$\n\x10GetStatsResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\"[\n\x10GetStatsCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x02(\x04\x12\r\n\x05\x65rror\x18\x02 \x01(\t\x12&\n\x05stats\x18\x03 \x03(\x0b\x32\x17.livekit.proto.RtcStats\"\x0c\n\nTrackEvent\"\xa3\x03\n\x14TrackPublicationInfo\x12\x0b\n\x03sid\x18\x01 \x02(\t\x12\x0c\n\x04name\x18\x02 \x02(\t\x12&\n\x04kind\x18\x03 \x02(\x0e\x32\x18.livekit.proto.TrackKind\x12*\n\x06source\x18\x04 \x02(\x0e\x32\x1a.livekit.proto.TrackSource\x12\x13\n\x0bsimulcasted\x18\x05 \x02(\x08\x12\r\n\x05width\x18\x06 \x02(\r\x12\x0e\n\x06height\x18\x07 \x02(\r\x12\x11\n\tmime_type\x18\x08 \x02(\t\x12\r\n\x05muted\x18\t \x02(\x08\x12\x0e\n\x06remote\x18\n \x02(\x08\x12\x36\n\x0f\x65ncryption_type\x18\x0b \x02(\x0e\x32\x1d.livekit.proto.EncryptionType\x12\x38\n\x0e\x61udio_features\x18\x0c \x03(\x0e\x32 .livekit.proto.AudioTrackFeature\x12\x44\n\x17\x66rame_metadata_features\x18\r \x03(\x0e\x32#.livekit.proto.FrameMetadataFeature\"y\n\x15OwnedTrackPublication\x12-\n\x06handle\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12\x31\n\x04info\x18\x02 \x02(\x0b\x32#.livekit.proto.TrackPublicationInfo\"\x9f\x01\n\tTrackInfo\x12\x0b\n\x03sid\x18\x01 \x02(\t\x12\x0c\n\x04name\x18\x02 \x02(\t\x12&\n\x04kind\x18\x03 \x02(\x0e\x32\x18.livekit.proto.TrackKind\x12\x30\n\x0cstream_state\x18\x04 \x02(\x0e\x32\x1a.livekit.proto.StreamState\x12\r\n\x05muted\x18\x05 \x02(\x08\x12\x0e\n\x06remote\x18\x06 \x02(\x08\"c\n\nOwnedTrack\x12-\n\x06handle\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12&\n\x04info\x18\x02 \x02(\x0b\x32\x18.livekit.proto.TrackInfo\";\n\x15LocalTrackMuteRequest\x12\x14\n\x0ctrack_handle\x18\x01 \x02(\x04\x12\x0c\n\x04mute\x18\x02 \x02(\x08\"\'\n\x16LocalTrackMuteResponse\x12\r\n\x05muted\x18\x01 \x02(\x08\"A\n\x18\x45nableRemoteTrackRequest\x12\x14\n\x0ctrack_handle\x18\x01 \x02(\x04\x12\x0f\n\x07\x65nabled\x18\x02 \x02(\x08\",\n\x19\x45nableRemoteTrackResponse\x12\x0f\n\x07\x65nabled\x18\x01 \x02(\x08\"\xac\x01\n&SetTrackSubscriptionPermissionsRequest\x12 \n\x18local_participant_handle\x18\x01 \x02(\x04\x12 \n\x18\x61ll_participants_allowed\x18\x02 \x02(\x08\x12>\n\x0bpermissions\x18\x03 \x03(\x0b\x32).livekit.proto.ParticipantTrackPermission\"i\n\x1aParticipantTrackPermission\x12\x1c\n\x14participant_identity\x18\x01 \x02(\t\x12\x11\n\tallow_all\x18\x02 \x01(\x08\x12\x1a\n\x12\x61llowed_track_sids\x18\x03 \x03(\t\")\n\'SetTrackSubscriptionPermissionsResponse*=\n\tTrackKind\x12\x10\n\x0cKIND_UNKNOWN\x10\x00\x12\x0e\n\nKIND_AUDIO\x10\x01\x12\x0e\n\nKIND_VIDEO\x10\x02*\x81\x01\n\x0bTrackSource\x12\x12\n\x0eSOURCE_UNKNOWN\x10\x00\x12\x11\n\rSOURCE_CAMERA\x10\x01\x12\x15\n\x11SOURCE_MICROPHONE\x10\x02\x12\x16\n\x12SOURCE_SCREENSHARE\x10\x03\x12\x1c\n\x18SOURCE_SCREENSHARE_AUDIO\x10\x04*D\n\x0bStreamState\x12\x11\n\rSTATE_UNKNOWN\x10\x00\x12\x10\n\x0cSTATE_ACTIVE\x10\x01\x12\x10\n\x0cSTATE_PAUSED\x10\x02*\xbd\x01\n\x11\x41udioTrackFeature\x12\r\n\tTF_STEREO\x10\x00\x12\r\n\tTF_NO_DTX\x10\x01\x12\x18\n\x14TF_AUTO_GAIN_CONTROL\x10\x02\x12\x18\n\x14TF_ECHO_CANCELLATION\x10\x03\x12\x18\n\x14TF_NOISE_SUPPRESSION\x10\x04\x12\"\n\x1eTF_ENHANCED_NOISE_CANCELLATION\x10\x05\x12\x18\n\x14TF_PRECONNECT_BUFFER\x10\x06*S\n\x14\x46rameMetadataFeature\x12\x16\n\x12\x46MF_USER_TIMESTAMP\x10\x00\x12\x10\n\x0c\x46MF_FRAME_ID\x10\x01\x12\x11\n\rFMF_USER_DATA\x10\x02\x42\x10\xaa\x02\rLiveKit.Proto') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -33,8 +33,8 @@ _globals['_STREAMSTATE']._serialized_end=2160 _globals['_AUDIOTRACKFEATURE']._serialized_start=2163 _globals['_AUDIOTRACKFEATURE']._serialized_end=2352 - _globals['_PACKETTRAILERFEATURE']._serialized_start=2354 - _globals['_PACKETTRAILERFEATURE']._serialized_end=2418 + _globals['_FRAMEMETADATAFEATURE']._serialized_start=2354 + _globals['_FRAMEMETADATAFEATURE']._serialized_end=2437 _globals['_CREATEVIDEOTRACKREQUEST']._serialized_start=69 _globals['_CREATEVIDEOTRACKREQUEST']._serialized_end=131 _globals['_CREATEVIDEOTRACKRESPONSE']._serialized_start=133 diff --git a/livekit-rtc/livekit/rtc/_proto/track_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/track_pb2.pyi index 6b81c596..3c988236 100644 --- a/livekit-rtc/livekit/rtc/_proto/track_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/track_pb2.pyi @@ -16,31 +16,31 @@ See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -from . import e2ee_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -from . import handle_pb2 -from . import stats_pb2 +from collections import abc as _abc +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +import builtins as _builtins +from . import e2ee_pb2 as _e2ee_pb2 +from . import handle_pb2 as _handle_pb2 +from . import stats_pb2 as _stats_pb2 import sys -import typing +import typing as _typing -if sys.version_info >= (3, 10): - import typing as typing_extensions +if sys.version_info >= (3, 11): + from typing import TypeAlias as _TypeAlias, Never as _Never else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias, Never as _Never -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor class _TrackKind: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _TrackKindEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_TrackKind.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _TrackKindEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_TrackKind.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor KIND_UNKNOWN: _TrackKind.ValueType # 0 KIND_AUDIO: _TrackKind.ValueType # 1 KIND_VIDEO: _TrackKind.ValueType # 2 @@ -50,14 +50,14 @@ class TrackKind(_TrackKind, metaclass=_TrackKindEnumTypeWrapper): ... KIND_UNKNOWN: TrackKind.ValueType # 0 KIND_AUDIO: TrackKind.ValueType # 1 KIND_VIDEO: TrackKind.ValueType # 2 -global___TrackKind = TrackKind +Global___TrackKind: _TypeAlias = TrackKind # noqa: Y015 class _TrackSource: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _TrackSourceEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_TrackSource.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _TrackSourceEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_TrackSource.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor SOURCE_UNKNOWN: _TrackSource.ValueType # 0 SOURCE_CAMERA: _TrackSource.ValueType # 1 SOURCE_MICROPHONE: _TrackSource.ValueType # 2 @@ -71,14 +71,14 @@ SOURCE_CAMERA: TrackSource.ValueType # 1 SOURCE_MICROPHONE: TrackSource.ValueType # 2 SOURCE_SCREENSHARE: TrackSource.ValueType # 3 SOURCE_SCREENSHARE_AUDIO: TrackSource.ValueType # 4 -global___TrackSource = TrackSource +Global___TrackSource: _TypeAlias = TrackSource # noqa: Y015 class _StreamState: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _StreamStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_StreamState.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _StreamStateEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_StreamState.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor STATE_UNKNOWN: _StreamState.ValueType # 0 STATE_ACTIVE: _StreamState.ValueType # 1 STATE_PAUSED: _StreamState.ValueType # 2 @@ -88,14 +88,14 @@ class StreamState(_StreamState, metaclass=_StreamStateEnumTypeWrapper): ... STATE_UNKNOWN: StreamState.ValueType # 0 STATE_ACTIVE: StreamState.ValueType # 1 STATE_PAUSED: StreamState.ValueType # 2 -global___StreamState = StreamState +Global___StreamState: _TypeAlias = StreamState # noqa: Y015 class _AudioTrackFeature: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _AudioTrackFeatureEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_AudioTrackFeature.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _AudioTrackFeatureEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_AudioTrackFeature.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor TF_STEREO: _AudioTrackFeature.ValueType # 0 TF_NO_DTX: _AudioTrackFeature.ValueType # 1 TF_AUTO_GAIN_CONTROL: _AudioTrackFeature.ValueType # 2 @@ -115,428 +115,491 @@ 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 -class _PacketTrailerFeature: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType +class _FrameMetadataFeature: + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _PacketTrailerFeatureEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_PacketTrailerFeature.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - PTF_USER_TIMESTAMP: _PacketTrailerFeature.ValueType # 0 - PTF_FRAME_ID: _PacketTrailerFeature.ValueType # 1 +class _FrameMetadataFeatureEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_FrameMetadataFeature.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor + FMF_USER_TIMESTAMP: _FrameMetadataFeature.ValueType # 0 + FMF_FRAME_ID: _FrameMetadataFeature.ValueType # 1 + FMF_USER_DATA: _FrameMetadataFeature.ValueType # 2 -class PacketTrailerFeature(_PacketTrailerFeature, metaclass=_PacketTrailerFeatureEnumTypeWrapper): ... +class FrameMetadataFeature(_FrameMetadataFeature, metaclass=_FrameMetadataFeatureEnumTypeWrapper): ... -PTF_USER_TIMESTAMP: PacketTrailerFeature.ValueType # 0 -PTF_FRAME_ID: PacketTrailerFeature.ValueType # 1 -global___PacketTrailerFeature = PacketTrailerFeature +FMF_USER_TIMESTAMP: FrameMetadataFeature.ValueType # 0 +FMF_FRAME_ID: FrameMetadataFeature.ValueType # 1 +FMF_USER_DATA: FrameMetadataFeature.ValueType # 2 +Global___FrameMetadataFeature: _TypeAlias = FrameMetadataFeature # noqa: Y015 -@typing.final -class CreateVideoTrackRequest(google.protobuf.message.Message): +@_typing.final +class CreateVideoTrackRequest(_message.Message): """Create a new VideoTrack from a VideoSource""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - SOURCE_HANDLE_FIELD_NUMBER: builtins.int - name: builtins.str - source_handle: builtins.int + NAME_FIELD_NUMBER: _builtins.int + SOURCE_HANDLE_FIELD_NUMBER: _builtins.int + name: _builtins.str + source_handle: _builtins.int def __init__( self, *, - name: builtins.str | None = ..., - source_handle: builtins.int | None = ..., + name: _builtins.str | None = ..., + source_handle: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["name", b"name", "source_handle", b"source_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["name", b"name", "source_handle", b"source_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "source_handle", b"source_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "source_handle", b"source_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___CreateVideoTrackRequest = CreateVideoTrackRequest +Global___CreateVideoTrackRequest: _TypeAlias = CreateVideoTrackRequest # noqa: Y015 -@typing.final -class CreateVideoTrackResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class CreateVideoTrackResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - TRACK_FIELD_NUMBER: builtins.int - @property - def track(self) -> global___OwnedTrack: ... + TRACK_FIELD_NUMBER: _builtins.int + @_builtins.property + def track(self) -> Global___OwnedTrack: ... def __init__( self, *, - track: global___OwnedTrack | None = ..., + track: Global___OwnedTrack | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["track", b"track"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["track", b"track"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["track", b"track"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["track", b"track"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___CreateVideoTrackResponse = CreateVideoTrackResponse +Global___CreateVideoTrackResponse: _TypeAlias = CreateVideoTrackResponse # noqa: Y015 -@typing.final -class CreateAudioTrackRequest(google.protobuf.message.Message): +@_typing.final +class CreateAudioTrackRequest(_message.Message): """Create a new AudioTrack from a AudioSource""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - SOURCE_HANDLE_FIELD_NUMBER: builtins.int - name: builtins.str - source_handle: builtins.int + NAME_FIELD_NUMBER: _builtins.int + SOURCE_HANDLE_FIELD_NUMBER: _builtins.int + name: _builtins.str + source_handle: _builtins.int def __init__( self, *, - name: builtins.str | None = ..., - source_handle: builtins.int | None = ..., + name: _builtins.str | None = ..., + source_handle: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["name", b"name", "source_handle", b"source_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["name", b"name", "source_handle", b"source_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "source_handle", b"source_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "source_handle", b"source_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___CreateAudioTrackRequest = CreateAudioTrackRequest +Global___CreateAudioTrackRequest: _TypeAlias = CreateAudioTrackRequest # noqa: Y015 -@typing.final -class CreateAudioTrackResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class CreateAudioTrackResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - TRACK_FIELD_NUMBER: builtins.int - @property - def track(self) -> global___OwnedTrack: ... + TRACK_FIELD_NUMBER: _builtins.int + @_builtins.property + def track(self) -> Global___OwnedTrack: ... def __init__( self, *, - track: global___OwnedTrack | None = ..., + track: Global___OwnedTrack | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["track", b"track"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["track", b"track"]) -> None: ... - -global___CreateAudioTrackResponse = CreateAudioTrackResponse - -@typing.final -class GetStatsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TRACK_HANDLE_FIELD_NUMBER: builtins.int - REQUEST_ASYNC_ID_FIELD_NUMBER: builtins.int - track_handle: builtins.int - request_async_id: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["track", b"track"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["track", b"track"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___CreateAudioTrackResponse: _TypeAlias = CreateAudioTrackResponse # noqa: Y015 + +@_typing.final +class GetStatsRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + TRACK_HANDLE_FIELD_NUMBER: _builtins.int + REQUEST_ASYNC_ID_FIELD_NUMBER: _builtins.int + track_handle: _builtins.int + request_async_id: _builtins.int def __init__( self, *, - track_handle: builtins.int | None = ..., - request_async_id: builtins.int | None = ..., + track_handle: _builtins.int | None = ..., + request_async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["request_async_id", b"request_async_id", "track_handle", b"track_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["request_async_id", b"request_async_id", "track_handle", b"track_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["request_async_id", b"request_async_id", "track_handle", b"track_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["request_async_id", b"request_async_id", "track_handle", b"track_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___GetStatsRequest = GetStatsRequest +Global___GetStatsRequest: _TypeAlias = GetStatsRequest # noqa: Y015 -@typing.final -class GetStatsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetStatsResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int + ASYNC_ID_FIELD_NUMBER: _builtins.int + async_id: _builtins.int def __init__( self, *, - async_id: builtins.int | None = ..., + async_id: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id"]) -> None: ... - -global___GetStatsResponse = GetStatsResponse - -@typing.final -class GetStatsCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - STATS_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str - @property - def stats(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[stats_pb2.RtcStats]: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___GetStatsResponse: _TypeAlias = GetStatsResponse # noqa: Y015 + +@_typing.final +class GetStatsCallback(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ASYNC_ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + STATS_FIELD_NUMBER: _builtins.int + async_id: _builtins.int + error: _builtins.str + @_builtins.property + def stats(self) -> _containers.RepeatedCompositeFieldContainer[_stats_pb2.RtcStats]: ... def __init__( self, *, - async_id: builtins.int | None = ..., - error: builtins.str | None = ..., - stats: collections.abc.Iterable[stats_pb2.RtcStats] | None = ..., + async_id: _builtins.int | None = ..., + error: _builtins.str | None = ..., + stats: _abc.Iterable[_stats_pb2.RtcStats] | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["async_id", b"async_id", "error", b"error", "stats", b"stats"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["async_id", b"async_id", "error", b"error", "stats", b"stats"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___GetStatsCallback = GetStatsCallback +Global___GetStatsCallback: _TypeAlias = GetStatsCallback # noqa: Y015 -@typing.final -class TrackEvent(google.protobuf.message.Message): +@_typing.final +class TrackEvent(_message.Message): """ Track """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... - -global___TrackEvent = TrackEvent - -@typing.final -class TrackPublicationInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - SID_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - KIND_FIELD_NUMBER: builtins.int - SOURCE_FIELD_NUMBER: builtins.int - SIMULCASTED_FIELD_NUMBER: builtins.int - WIDTH_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - MIME_TYPE_FIELD_NUMBER: builtins.int - MUTED_FIELD_NUMBER: builtins.int - REMOTE_FIELD_NUMBER: builtins.int - ENCRYPTION_TYPE_FIELD_NUMBER: builtins.int - AUDIO_FEATURES_FIELD_NUMBER: builtins.int - PACKET_TRAILER_FEATURES_FIELD_NUMBER: builtins.int - sid: builtins.str - name: builtins.str - kind: global___TrackKind.ValueType - source: global___TrackSource.ValueType - simulcasted: builtins.bool - width: builtins.int - height: builtins.int - mime_type: builtins.str - muted: builtins.bool - remote: builtins.bool - encryption_type: e2ee_pb2.EncryptionType.ValueType - @property - def audio_features(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___AudioTrackFeature.ValueType]: ... - @property - def packet_trailer_features(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___PacketTrailerFeature.ValueType]: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___TrackEvent: _TypeAlias = TrackEvent # noqa: Y015 + +@_typing.final +class TrackPublicationInfo(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + SID_FIELD_NUMBER: _builtins.int + NAME_FIELD_NUMBER: _builtins.int + KIND_FIELD_NUMBER: _builtins.int + SOURCE_FIELD_NUMBER: _builtins.int + SIMULCASTED_FIELD_NUMBER: _builtins.int + WIDTH_FIELD_NUMBER: _builtins.int + HEIGHT_FIELD_NUMBER: _builtins.int + MIME_TYPE_FIELD_NUMBER: _builtins.int + MUTED_FIELD_NUMBER: _builtins.int + REMOTE_FIELD_NUMBER: _builtins.int + ENCRYPTION_TYPE_FIELD_NUMBER: _builtins.int + AUDIO_FEATURES_FIELD_NUMBER: _builtins.int + FRAME_METADATA_FEATURES_FIELD_NUMBER: _builtins.int + sid: _builtins.str + name: _builtins.str + kind: Global___TrackKind.ValueType + source: Global___TrackSource.ValueType + simulcasted: _builtins.bool + width: _builtins.int + height: _builtins.int + mime_type: _builtins.str + muted: _builtins.bool + remote: _builtins.bool + encryption_type: _e2ee_pb2.EncryptionType.ValueType + @_builtins.property + def audio_features(self) -> _containers.RepeatedScalarFieldContainer[Global___AudioTrackFeature.ValueType]: ... + @_builtins.property + def frame_metadata_features(self) -> _containers.RepeatedScalarFieldContainer[Global___FrameMetadataFeature.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 = ..., - packet_trailer_features: collections.abc.Iterable[global___PacketTrailerFeature.ValueType] | None = ..., + sid: _builtins.str | None = ..., + name: _builtins.str | None = ..., + kind: Global___TrackKind.ValueType | None = ..., + source: Global___TrackSource.ValueType | None = ..., + simulcasted: _builtins.bool | None = ..., + width: _builtins.int | None = ..., + height: _builtins.int | None = ..., + mime_type: _builtins.str | None = ..., + muted: _builtins.bool | None = ..., + remote: _builtins.bool | None = ..., + encryption_type: _e2ee_pb2.EncryptionType.ValueType | None = ..., + audio_features: _abc.Iterable[Global___AudioTrackFeature.ValueType] | None = ..., + frame_metadata_features: _abc.Iterable[Global___FrameMetadataFeature.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", "packet_trailer_features", b"packet_trailer_features", "remote", b"remote", "sid", b"sid", "simulcasted", b"simulcasted", "source", b"source", "width", b"width"]) -> None: ... - -global___TrackPublicationInfo = TrackPublicationInfo - -@typing.final -class OwnedTrackPublication(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___TrackPublicationInfo: ... + _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", "frame_metadata_features", b"frame_metadata_features", "height", b"height", "kind", b"kind", "mime_type", b"mime_type", "muted", b"muted", "name", b"name", "remote", b"remote", "sid", b"sid", "simulcasted", b"simulcasted", "source", b"source", "width", b"width"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___TrackPublicationInfo: _TypeAlias = TrackPublicationInfo # noqa: Y015 + +@_typing.final +class OwnedTrackPublication(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___TrackPublicationInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___TrackPublicationInfo | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___TrackPublicationInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... - -global___OwnedTrackPublication = OwnedTrackPublication - -@typing.final -class TrackInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - SID_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - KIND_FIELD_NUMBER: builtins.int - STREAM_STATE_FIELD_NUMBER: builtins.int - MUTED_FIELD_NUMBER: builtins.int - REMOTE_FIELD_NUMBER: builtins.int - sid: builtins.str - name: builtins.str - kind: global___TrackKind.ValueType - stream_state: global___StreamState.ValueType - muted: builtins.bool - remote: builtins.bool + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___OwnedTrackPublication: _TypeAlias = OwnedTrackPublication # noqa: Y015 + +@_typing.final +class TrackInfo(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + SID_FIELD_NUMBER: _builtins.int + NAME_FIELD_NUMBER: _builtins.int + KIND_FIELD_NUMBER: _builtins.int + STREAM_STATE_FIELD_NUMBER: _builtins.int + MUTED_FIELD_NUMBER: _builtins.int + REMOTE_FIELD_NUMBER: _builtins.int + sid: _builtins.str + name: _builtins.str + kind: Global___TrackKind.ValueType + stream_state: Global___StreamState.ValueType + muted: _builtins.bool + remote: _builtins.bool def __init__( self, *, - sid: builtins.str | None = ..., - name: builtins.str | None = ..., - kind: global___TrackKind.ValueType | None = ..., - stream_state: global___StreamState.ValueType | None = ..., - muted: builtins.bool | None = ..., - remote: builtins.bool | None = ..., + sid: _builtins.str | None = ..., + name: _builtins.str | None = ..., + kind: Global___TrackKind.ValueType | None = ..., + stream_state: Global___StreamState.ValueType | None = ..., + muted: _builtins.bool | None = ..., + remote: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["kind", b"kind", "muted", b"muted", "name", b"name", "remote", b"remote", "sid", b"sid", "stream_state", b"stream_state"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["kind", b"kind", "muted", b"muted", "name", b"name", "remote", b"remote", "sid", b"sid", "stream_state", b"stream_state"]) -> None: ... - -global___TrackInfo = TrackInfo - -@typing.final -class OwnedTrack(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___TrackInfo: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "muted", b"muted", "name", b"name", "remote", b"remote", "sid", b"sid", "stream_state", b"stream_state"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["kind", b"kind", "muted", b"muted", "name", b"name", "remote", b"remote", "sid", b"sid", "stream_state", b"stream_state"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___TrackInfo: _TypeAlias = TrackInfo # noqa: Y015 + +@_typing.final +class OwnedTrack(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___TrackInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___TrackInfo | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___TrackInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___OwnedTrack = OwnedTrack +Global___OwnedTrack: _TypeAlias = OwnedTrack # noqa: Y015 -@typing.final -class LocalTrackMuteRequest(google.protobuf.message.Message): +@_typing.final +class LocalTrackMuteRequest(_message.Message): """Mute/UnMute a track""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TRACK_HANDLE_FIELD_NUMBER: builtins.int - MUTE_FIELD_NUMBER: builtins.int - track_handle: builtins.int - mute: builtins.bool + TRACK_HANDLE_FIELD_NUMBER: _builtins.int + MUTE_FIELD_NUMBER: _builtins.int + track_handle: _builtins.int + mute: _builtins.bool def __init__( self, *, - track_handle: builtins.int | None = ..., - mute: builtins.bool | None = ..., + track_handle: _builtins.int | None = ..., + mute: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["mute", b"mute", "track_handle", b"track_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["mute", b"mute", "track_handle", b"track_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["mute", b"mute", "track_handle", b"track_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["mute", b"mute", "track_handle", b"track_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___LocalTrackMuteRequest = LocalTrackMuteRequest +Global___LocalTrackMuteRequest: _TypeAlias = LocalTrackMuteRequest # noqa: Y015 -@typing.final -class LocalTrackMuteResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class LocalTrackMuteResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - MUTED_FIELD_NUMBER: builtins.int - muted: builtins.bool + MUTED_FIELD_NUMBER: _builtins.int + muted: _builtins.bool def __init__( self, *, - muted: builtins.bool | None = ..., + muted: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["muted", b"muted"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["muted", b"muted"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["muted", b"muted"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["muted", b"muted"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___LocalTrackMuteResponse = LocalTrackMuteResponse +Global___LocalTrackMuteResponse: _TypeAlias = LocalTrackMuteResponse # noqa: Y015 -@typing.final -class EnableRemoteTrackRequest(google.protobuf.message.Message): +@_typing.final +class EnableRemoteTrackRequest(_message.Message): """Enable/Disable a remote track""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TRACK_HANDLE_FIELD_NUMBER: builtins.int - ENABLED_FIELD_NUMBER: builtins.int - track_handle: builtins.int - enabled: builtins.bool + TRACK_HANDLE_FIELD_NUMBER: _builtins.int + ENABLED_FIELD_NUMBER: _builtins.int + track_handle: _builtins.int + enabled: _builtins.bool def __init__( self, *, - track_handle: builtins.int | None = ..., - enabled: builtins.bool | None = ..., + track_handle: _builtins.int | None = ..., + enabled: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["enabled", b"enabled", "track_handle", b"track_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["enabled", b"enabled", "track_handle", b"track_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled", "track_handle", b"track_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled", "track_handle", b"track_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___EnableRemoteTrackRequest = EnableRemoteTrackRequest +Global___EnableRemoteTrackRequest: _TypeAlias = EnableRemoteTrackRequest # noqa: Y015 -@typing.final -class EnableRemoteTrackResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class EnableRemoteTrackResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ENABLED_FIELD_NUMBER: builtins.int - enabled: builtins.bool + ENABLED_FIELD_NUMBER: _builtins.int + enabled: _builtins.bool def __init__( self, *, - enabled: builtins.bool | None = ..., + enabled: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["enabled", b"enabled"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["enabled", b"enabled"]) -> None: ... - -global___EnableRemoteTrackResponse = EnableRemoteTrackResponse - -@typing.final -class SetTrackSubscriptionPermissionsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - ALL_PARTICIPANTS_ALLOWED_FIELD_NUMBER: builtins.int - PERMISSIONS_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - all_participants_allowed: builtins.bool - @property - def permissions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ParticipantTrackPermission]: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___EnableRemoteTrackResponse: _TypeAlias = EnableRemoteTrackResponse # noqa: Y015 + +@_typing.final +class SetTrackSubscriptionPermissionsRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + ALL_PARTICIPANTS_ALLOWED_FIELD_NUMBER: _builtins.int + PERMISSIONS_FIELD_NUMBER: _builtins.int + local_participant_handle: _builtins.int + all_participants_allowed: _builtins.bool + @_builtins.property + def permissions(self) -> _containers.RepeatedCompositeFieldContainer[Global___ParticipantTrackPermission]: ... def __init__( self, *, - local_participant_handle: builtins.int | None = ..., - all_participants_allowed: builtins.bool | None = ..., - permissions: collections.abc.Iterable[global___ParticipantTrackPermission] | None = ..., + local_participant_handle: _builtins.int | None = ..., + all_participants_allowed: _builtins.bool | None = ..., + permissions: _abc.Iterable[Global___ParticipantTrackPermission] | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["all_participants_allowed", b"all_participants_allowed", "local_participant_handle", b"local_participant_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["all_participants_allowed", b"all_participants_allowed", "local_participant_handle", b"local_participant_handle", "permissions", b"permissions"]) -> None: ... - -global___SetTrackSubscriptionPermissionsRequest = SetTrackSubscriptionPermissionsRequest - -@typing.final -class ParticipantTrackPermission(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - ALLOW_ALL_FIELD_NUMBER: builtins.int - ALLOWED_TRACK_SIDS_FIELD_NUMBER: builtins.int - participant_identity: builtins.str + _HasFieldArgType: _TypeAlias = _typing.Literal["all_participants_allowed", b"all_participants_allowed", "local_participant_handle", b"local_participant_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["all_participants_allowed", b"all_participants_allowed", "local_participant_handle", b"local_participant_handle", "permissions", b"permissions"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___SetTrackSubscriptionPermissionsRequest: _TypeAlias = SetTrackSubscriptionPermissionsRequest # noqa: Y015 + +@_typing.final +class ParticipantTrackPermission(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PARTICIPANT_IDENTITY_FIELD_NUMBER: _builtins.int + ALLOW_ALL_FIELD_NUMBER: _builtins.int + ALLOWED_TRACK_SIDS_FIELD_NUMBER: _builtins.int + participant_identity: _builtins.str """The participant identity this permission applies to.""" - allow_all: builtins.bool + allow_all: _builtins.bool """Grant permission to all all tracks. Takes precedence over allowedTrackSids.""" - @property - def allowed_track_sids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + @_builtins.property + def allowed_track_sids(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: """List of track sids to grant permission to.""" def __init__( self, *, - participant_identity: builtins.str | None = ..., - allow_all: builtins.bool | None = ..., - allowed_track_sids: collections.abc.Iterable[builtins.str] | None = ..., + participant_identity: _builtins.str | None = ..., + allow_all: _builtins.bool | None = ..., + allowed_track_sids: _abc.Iterable[_builtins.str] | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["allow_all", b"allow_all", "participant_identity", b"participant_identity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["allow_all", b"allow_all", "allowed_track_sids", b"allowed_track_sids", "participant_identity", b"participant_identity"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["allow_all", b"allow_all", "participant_identity", b"participant_identity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_all", b"allow_all", "allowed_track_sids", b"allowed_track_sids", "participant_identity", b"participant_identity"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___ParticipantTrackPermission = ParticipantTrackPermission +Global___ParticipantTrackPermission: _TypeAlias = ParticipantTrackPermission # noqa: Y015 -@typing.final -class SetTrackSubscriptionPermissionsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SetTrackSubscriptionPermissionsResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetTrackSubscriptionPermissionsResponse = SetTrackSubscriptionPermissionsResponse +Global___SetTrackSubscriptionPermissionsResponse: _TypeAlias = SetTrackSubscriptionPermissionsResponse # noqa: Y015 diff --git a/livekit-rtc/livekit/rtc/_proto/track_publication_pb2.py b/livekit-rtc/livekit/rtc/_proto/track_publication_pb2.py index e9eba74e..c1b05f62 100644 --- a/livekit-rtc/livekit/rtc/_proto/track_publication_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/track_publication_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: track_publication.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 4.25.2 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool diff --git a/livekit-rtc/livekit/rtc/_proto/track_publication_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/track_publication_pb2.pyi index 9e70c7b4..05696f97 100644 --- a/livekit-rtc/livekit/rtc/_proto/track_publication_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/track_publication_pb2.pyi @@ -16,26 +16,26 @@ See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +import builtins as _builtins import sys -import typing +import typing as _typing -if sys.version_info >= (3, 10): - import typing as typing_extensions +if sys.version_info >= (3, 11): + from typing import TypeAlias as _TypeAlias, Never as _Never else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias, Never as _Never -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor class _VideoQuality: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _VideoQualityEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoQuality.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _VideoQualityEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_VideoQuality.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor VIDEO_QUALITY_LOW: _VideoQuality.ValueType # 0 VIDEO_QUALITY_MEDIUM: _VideoQuality.ValueType # 1 VIDEO_QUALITY_HIGH: _VideoQuality.ValueType # 2 @@ -46,100 +46,124 @@ class VideoQuality(_VideoQuality, metaclass=_VideoQualityEnumTypeWrapper): VIDEO_QUALITY_LOW: VideoQuality.ValueType # 0 VIDEO_QUALITY_MEDIUM: VideoQuality.ValueType # 1 VIDEO_QUALITY_HIGH: VideoQuality.ValueType # 2 -global___VideoQuality = VideoQuality +Global___VideoQuality: _TypeAlias = VideoQuality # noqa: Y015 -@typing.final -class EnableRemoteTrackPublicationRequest(google.protobuf.message.Message): +@_typing.final +class EnableRemoteTrackPublicationRequest(_message.Message): """Enable/Disable a remote track publication""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TRACK_PUBLICATION_HANDLE_FIELD_NUMBER: builtins.int - ENABLED_FIELD_NUMBER: builtins.int - track_publication_handle: builtins.int - enabled: builtins.bool + TRACK_PUBLICATION_HANDLE_FIELD_NUMBER: _builtins.int + ENABLED_FIELD_NUMBER: _builtins.int + track_publication_handle: _builtins.int + enabled: _builtins.bool def __init__( self, *, - track_publication_handle: builtins.int | None = ..., - enabled: builtins.bool | None = ..., + track_publication_handle: _builtins.int | None = ..., + enabled: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["enabled", b"enabled", "track_publication_handle", b"track_publication_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["enabled", b"enabled", "track_publication_handle", b"track_publication_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled", "track_publication_handle", b"track_publication_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["enabled", b"enabled", "track_publication_handle", b"track_publication_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___EnableRemoteTrackPublicationRequest = EnableRemoteTrackPublicationRequest +Global___EnableRemoteTrackPublicationRequest: _TypeAlias = EnableRemoteTrackPublicationRequest # noqa: Y015 -@typing.final -class EnableRemoteTrackPublicationResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class EnableRemoteTrackPublicationResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___EnableRemoteTrackPublicationResponse = EnableRemoteTrackPublicationResponse +Global___EnableRemoteTrackPublicationResponse: _TypeAlias = EnableRemoteTrackPublicationResponse # noqa: Y015 -@typing.final -class UpdateRemoteTrackPublicationDimensionRequest(google.protobuf.message.Message): +@_typing.final +class UpdateRemoteTrackPublicationDimensionRequest(_message.Message): """update a remote track publication dimension""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TRACK_PUBLICATION_HANDLE_FIELD_NUMBER: builtins.int - WIDTH_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - track_publication_handle: builtins.int - width: builtins.int - height: builtins.int + TRACK_PUBLICATION_HANDLE_FIELD_NUMBER: _builtins.int + WIDTH_FIELD_NUMBER: _builtins.int + HEIGHT_FIELD_NUMBER: _builtins.int + track_publication_handle: _builtins.int + width: _builtins.int + height: _builtins.int def __init__( self, *, - track_publication_handle: builtins.int | None = ..., - width: builtins.int | None = ..., - height: builtins.int | None = ..., + track_publication_handle: _builtins.int | None = ..., + width: _builtins.int | None = ..., + height: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["height", b"height", "track_publication_handle", b"track_publication_handle", "width", b"width"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["height", b"height", "track_publication_handle", b"track_publication_handle", "width", b"width"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["height", b"height", "track_publication_handle", b"track_publication_handle", "width", b"width"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["height", b"height", "track_publication_handle", b"track_publication_handle", "width", b"width"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___UpdateRemoteTrackPublicationDimensionRequest = UpdateRemoteTrackPublicationDimensionRequest +Global___UpdateRemoteTrackPublicationDimensionRequest: _TypeAlias = UpdateRemoteTrackPublicationDimensionRequest # noqa: Y015 -@typing.final -class UpdateRemoteTrackPublicationDimensionResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class UpdateRemoteTrackPublicationDimensionResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___UpdateRemoteTrackPublicationDimensionResponse = UpdateRemoteTrackPublicationDimensionResponse +Global___UpdateRemoteTrackPublicationDimensionResponse: _TypeAlias = UpdateRemoteTrackPublicationDimensionResponse # noqa: Y015 -@typing.final -class SetRemoteTrackPublicationQualityRequest(google.protobuf.message.Message): +@_typing.final +class SetRemoteTrackPublicationQualityRequest(_message.Message): """For tracks that support simulcasting, adjust subscribed quality.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TRACK_PUBLICATION_HANDLE_FIELD_NUMBER: builtins.int - QUALITY_FIELD_NUMBER: builtins.int - track_publication_handle: builtins.int - quality: global___VideoQuality.ValueType + TRACK_PUBLICATION_HANDLE_FIELD_NUMBER: _builtins.int + QUALITY_FIELD_NUMBER: _builtins.int + track_publication_handle: _builtins.int + quality: Global___VideoQuality.ValueType def __init__( self, *, - track_publication_handle: builtins.int | None = ..., - quality: global___VideoQuality.ValueType | None = ..., + track_publication_handle: _builtins.int | None = ..., + quality: Global___VideoQuality.ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["quality", b"quality", "track_publication_handle", b"track_publication_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["quality", b"quality", "track_publication_handle", b"track_publication_handle"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["quality", b"quality", "track_publication_handle", b"track_publication_handle"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["quality", b"quality", "track_publication_handle", b"track_publication_handle"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetRemoteTrackPublicationQualityRequest = SetRemoteTrackPublicationQualityRequest +Global___SetRemoteTrackPublicationQualityRequest: _TypeAlias = SetRemoteTrackPublicationQualityRequest # noqa: Y015 -@typing.final -class SetRemoteTrackPublicationQualityResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SetRemoteTrackPublicationQualityResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___SetRemoteTrackPublicationQualityResponse = SetRemoteTrackPublicationQualityResponse +Global___SetRemoteTrackPublicationQualityResponse: _TypeAlias = SetRemoteTrackPublicationQualityResponse # noqa: Y015 diff --git a/livekit-rtc/livekit/rtc/_proto/video_frame_pb2.py b/livekit-rtc/livekit/rtc/_proto/video_frame_pb2.py index 6ff10dde..029188cf 100644 --- a/livekit-rtc/livekit/rtc/_proto/video_frame_pb2.py +++ b/livekit-rtc/livekit/rtc/_proto/video_frame_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: video_frame.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 4.25.2 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -16,7 +16,7 @@ from . import track_pb2 as track__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11video_frame.proto\x12\rlivekit.proto\x1a\x0chandle.proto\x1a\x0btrack.proto\"\xc0\x01\n\x15NewVideoStreamRequest\x12\x14\n\x0ctrack_handle\x18\x01 \x02(\x04\x12,\n\x04type\x18\x02 \x02(\x0e\x32\x1e.livekit.proto.VideoStreamType\x12.\n\x06\x66ormat\x18\x03 \x01(\x0e\x32\x1e.livekit.proto.VideoBufferType\x12\x18\n\x10normalize_stride\x18\x04 \x01(\x08\x12\x19\n\x11queue_size_frames\x18\x05 \x01(\r\"I\n\x16NewVideoStreamResponse\x12/\n\x06stream\x18\x01 \x02(\x0b\x32\x1f.livekit.proto.OwnedVideoStream\"\x84\x02\n!VideoStreamFromParticipantRequest\x12\x1a\n\x12participant_handle\x18\x01 \x02(\x04\x12,\n\x04type\x18\x02 \x02(\x0e\x32\x1e.livekit.proto.VideoStreamType\x12\x30\n\x0ctrack_source\x18\x03 \x02(\x0e\x32\x1a.livekit.proto.TrackSource\x12.\n\x06\x66ormat\x18\x04 \x01(\x0e\x32\x1e.livekit.proto.VideoBufferType\x12\x18\n\x10normalize_stride\x18\x05 \x01(\x08\x12\x19\n\x11queue_size_frames\x18\x06 \x01(\r\"U\n\"VideoStreamFromParticipantResponse\x12/\n\x06stream\x18\x01 \x02(\x0b\x32\x1f.livekit.proto.OwnedVideoStream\"\x96\x01\n\x15NewVideoSourceRequest\x12,\n\x04type\x18\x01 \x02(\x0e\x32\x1e.livekit.proto.VideoSourceType\x12\x38\n\nresolution\x18\x02 \x02(\x0b\x32$.livekit.proto.VideoSourceResolution\x12\x15\n\ris_screencast\x18\x03 \x01(\x08\"I\n\x16NewVideoSourceResponse\x12/\n\x06source\x18\x01 \x02(\x0b\x32\x1f.livekit.proto.OwnedVideoSource\"\xd7\x01\n\x18\x43\x61ptureVideoFrameRequest\x12\x15\n\rsource_handle\x18\x01 \x02(\x04\x12.\n\x06\x62uffer\x18\x02 \x02(\x0b\x32\x1e.livekit.proto.VideoBufferInfo\x12\x14\n\x0ctimestamp_us\x18\x03 \x02(\x03\x12.\n\x08rotation\x18\x04 \x02(\x0e\x32\x1c.livekit.proto.VideoRotation\x12.\n\x08metadata\x18\x05 \x01(\x0b\x32\x1c.livekit.proto.FrameMetadata\"\x1b\n\x19\x43\x61ptureVideoFrameResponse\"\x87\x01\n\x13VideoConvertRequest\x12\x0e\n\x06\x66lip_y\x18\x01 \x01(\x08\x12.\n\x06\x62uffer\x18\x02 \x02(\x0b\x32\x1e.livekit.proto.VideoBufferInfo\x12\x30\n\x08\x64st_type\x18\x03 \x02(\x0e\x32\x1e.livekit.proto.VideoBufferType\"e\n\x14VideoConvertResponse\x12\x0f\n\x05\x65rror\x18\x01 \x01(\tH\x00\x12\x31\n\x06\x62uffer\x18\x02 \x01(\x0b\x32\x1f.livekit.proto.OwnedVideoBufferH\x00\x42\t\n\x07message\"D\n\x0fVideoResolution\x12\r\n\x05width\x18\x01 \x02(\r\x12\x0e\n\x06height\x18\x02 \x02(\r\x12\x12\n\nframe_rate\x18\x03 \x02(\x01\"\x83\x02\n\x0fVideoBufferInfo\x12,\n\x04type\x18\x01 \x02(\x0e\x32\x1e.livekit.proto.VideoBufferType\x12\r\n\x05width\x18\x02 \x02(\r\x12\x0e\n\x06height\x18\x03 \x02(\r\x12\x10\n\x08\x64\x61ta_ptr\x18\x04 \x02(\x04\x12\x0e\n\x06stride\x18\x06 \x01(\r\x12@\n\ncomponents\x18\x07 \x03(\x0b\x32,.livekit.proto.VideoBufferInfo.ComponentInfo\x1a?\n\rComponentInfo\x12\x10\n\x08\x64\x61ta_ptr\x18\x01 \x02(\x04\x12\x0e\n\x06stride\x18\x02 \x02(\r\x12\x0c\n\x04size\x18\x03 \x02(\r\"o\n\x10OwnedVideoBuffer\x12-\n\x06handle\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12,\n\x04info\x18\x02 \x02(\x0b\x32\x1e.livekit.proto.VideoBufferInfo\"9\n\rFrameMetadata\x12\x16\n\x0euser_timestamp\x18\x01 \x01(\x04\x12\x10\n\x08\x66rame_id\x18\x02 \x01(\r\"?\n\x0fVideoStreamInfo\x12,\n\x04type\x18\x01 \x02(\x0e\x32\x1e.livekit.proto.VideoStreamType\"o\n\x10OwnedVideoStream\x12-\n\x06handle\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12,\n\x04info\x18\x02 \x02(\x0b\x32\x1e.livekit.proto.VideoStreamInfo\"\x9f\x01\n\x10VideoStreamEvent\x12\x15\n\rstream_handle\x18\x01 \x02(\x04\x12;\n\x0e\x66rame_received\x18\x02 \x01(\x0b\x32!.livekit.proto.VideoFrameReceivedH\x00\x12,\n\x03\x65os\x18\x03 \x01(\x0b\x32\x1d.livekit.proto.VideoStreamEOSH\x00\x42\t\n\x07message\"\xbb\x01\n\x12VideoFrameReceived\x12/\n\x06\x62uffer\x18\x01 \x02(\x0b\x32\x1f.livekit.proto.OwnedVideoBuffer\x12\x14\n\x0ctimestamp_us\x18\x02 \x02(\x03\x12.\n\x08rotation\x18\x03 \x02(\x0e\x32\x1c.livekit.proto.VideoRotation\x12.\n\x08metadata\x18\x04 \x01(\x0b\x32\x1c.livekit.proto.FrameMetadata\"\x10\n\x0eVideoStreamEOS\"6\n\x15VideoSourceResolution\x12\r\n\x05width\x18\x01 \x02(\r\x12\x0e\n\x06height\x18\x02 \x02(\r\"?\n\x0fVideoSourceInfo\x12,\n\x04type\x18\x01 \x02(\x0e\x32\x1e.livekit.proto.VideoSourceType\"o\n\x10OwnedVideoSource\x12-\n\x06handle\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12,\n\x04info\x18\x02 \x02(\x0b\x32\x1e.livekit.proto.VideoSourceInfo*;\n\nVideoCodec\x12\x07\n\x03VP8\x10\x00\x12\x08\n\x04H264\x10\x01\x12\x07\n\x03\x41V1\x10\x02\x12\x07\n\x03VP9\x10\x03\x12\x08\n\x04H265\x10\x04*l\n\rVideoRotation\x12\x14\n\x10VIDEO_ROTATION_0\x10\x00\x12\x15\n\x11VIDEO_ROTATION_90\x10\x01\x12\x16\n\x12VIDEO_ROTATION_180\x10\x02\x12\x16\n\x12VIDEO_ROTATION_270\x10\x03*\x81\x01\n\x0fVideoBufferType\x12\x08\n\x04RGBA\x10\x00\x12\x08\n\x04\x41\x42GR\x10\x01\x12\x08\n\x04\x41RGB\x10\x02\x12\x08\n\x04\x42GRA\x10\x03\x12\t\n\x05RGB24\x10\x04\x12\x08\n\x04I420\x10\x05\x12\t\n\x05I420A\x10\x06\x12\x08\n\x04I422\x10\x07\x12\x08\n\x04I444\x10\x08\x12\x08\n\x04I010\x10\t\x12\x08\n\x04NV12\x10\n*Y\n\x0fVideoStreamType\x12\x17\n\x13VIDEO_STREAM_NATIVE\x10\x00\x12\x16\n\x12VIDEO_STREAM_WEBGL\x10\x01\x12\x15\n\x11VIDEO_STREAM_HTML\x10\x02**\n\x0fVideoSourceType\x12\x17\n\x13VIDEO_SOURCE_NATIVE\x10\x00\x42\x10\xaa\x02\rLiveKit.Proto') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11video_frame.proto\x12\rlivekit.proto\x1a\x0chandle.proto\x1a\x0btrack.proto\"\xc0\x01\n\x15NewVideoStreamRequest\x12\x14\n\x0ctrack_handle\x18\x01 \x02(\x04\x12,\n\x04type\x18\x02 \x02(\x0e\x32\x1e.livekit.proto.VideoStreamType\x12.\n\x06\x66ormat\x18\x03 \x01(\x0e\x32\x1e.livekit.proto.VideoBufferType\x12\x18\n\x10normalize_stride\x18\x04 \x01(\x08\x12\x19\n\x11queue_size_frames\x18\x05 \x01(\r\"I\n\x16NewVideoStreamResponse\x12/\n\x06stream\x18\x01 \x02(\x0b\x32\x1f.livekit.proto.OwnedVideoStream\"\x84\x02\n!VideoStreamFromParticipantRequest\x12\x1a\n\x12participant_handle\x18\x01 \x02(\x04\x12,\n\x04type\x18\x02 \x02(\x0e\x32\x1e.livekit.proto.VideoStreamType\x12\x30\n\x0ctrack_source\x18\x03 \x02(\x0e\x32\x1a.livekit.proto.TrackSource\x12.\n\x06\x66ormat\x18\x04 \x01(\x0e\x32\x1e.livekit.proto.VideoBufferType\x12\x18\n\x10normalize_stride\x18\x05 \x01(\x08\x12\x19\n\x11queue_size_frames\x18\x06 \x01(\r\"U\n\"VideoStreamFromParticipantResponse\x12/\n\x06stream\x18\x01 \x02(\x0b\x32\x1f.livekit.proto.OwnedVideoStream\"\x96\x01\n\x15NewVideoSourceRequest\x12,\n\x04type\x18\x01 \x02(\x0e\x32\x1e.livekit.proto.VideoSourceType\x12\x38\n\nresolution\x18\x02 \x02(\x0b\x32$.livekit.proto.VideoSourceResolution\x12\x15\n\ris_screencast\x18\x03 \x01(\x08\"I\n\x16NewVideoSourceResponse\x12/\n\x06source\x18\x01 \x02(\x0b\x32\x1f.livekit.proto.OwnedVideoSource\"\xd7\x01\n\x18\x43\x61ptureVideoFrameRequest\x12\x15\n\rsource_handle\x18\x01 \x02(\x04\x12.\n\x06\x62uffer\x18\x02 \x02(\x0b\x32\x1e.livekit.proto.VideoBufferInfo\x12\x14\n\x0ctimestamp_us\x18\x03 \x02(\x03\x12.\n\x08rotation\x18\x04 \x02(\x0e\x32\x1c.livekit.proto.VideoRotation\x12.\n\x08metadata\x18\x05 \x01(\x0b\x32\x1c.livekit.proto.FrameMetadata\"\x1b\n\x19\x43\x61ptureVideoFrameResponse\"\x87\x01\n\x13VideoConvertRequest\x12\x0e\n\x06\x66lip_y\x18\x01 \x01(\x08\x12.\n\x06\x62uffer\x18\x02 \x02(\x0b\x32\x1e.livekit.proto.VideoBufferInfo\x12\x30\n\x08\x64st_type\x18\x03 \x02(\x0e\x32\x1e.livekit.proto.VideoBufferType\"e\n\x14VideoConvertResponse\x12\x0f\n\x05\x65rror\x18\x01 \x01(\tH\x00\x12\x31\n\x06\x62uffer\x18\x02 \x01(\x0b\x32\x1f.livekit.proto.OwnedVideoBufferH\x00\x42\t\n\x07message\"D\n\x0fVideoResolution\x12\r\n\x05width\x18\x01 \x02(\r\x12\x0e\n\x06height\x18\x02 \x02(\r\x12\x12\n\nframe_rate\x18\x03 \x02(\x01\"\x83\x02\n\x0fVideoBufferInfo\x12,\n\x04type\x18\x01 \x02(\x0e\x32\x1e.livekit.proto.VideoBufferType\x12\r\n\x05width\x18\x02 \x02(\r\x12\x0e\n\x06height\x18\x03 \x02(\r\x12\x10\n\x08\x64\x61ta_ptr\x18\x04 \x02(\x04\x12\x0e\n\x06stride\x18\x06 \x01(\r\x12@\n\ncomponents\x18\x07 \x03(\x0b\x32,.livekit.proto.VideoBufferInfo.ComponentInfo\x1a?\n\rComponentInfo\x12\x10\n\x08\x64\x61ta_ptr\x18\x01 \x02(\x04\x12\x0e\n\x06stride\x18\x02 \x02(\r\x12\x0c\n\x04size\x18\x03 \x02(\r\"o\n\x10OwnedVideoBuffer\x12-\n\x06handle\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12,\n\x04info\x18\x02 \x02(\x0b\x32\x1e.livekit.proto.VideoBufferInfo\"L\n\rFrameMetadata\x12\x16\n\x0euser_timestamp\x18\x01 \x01(\x04\x12\x10\n\x08\x66rame_id\x18\x02 \x01(\r\x12\x11\n\tuser_data\x18\x03 \x01(\x0c\"?\n\x0fVideoStreamInfo\x12,\n\x04type\x18\x01 \x02(\x0e\x32\x1e.livekit.proto.VideoStreamType\"o\n\x10OwnedVideoStream\x12-\n\x06handle\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12,\n\x04info\x18\x02 \x02(\x0b\x32\x1e.livekit.proto.VideoStreamInfo\"\x9f\x01\n\x10VideoStreamEvent\x12\x15\n\rstream_handle\x18\x01 \x02(\x04\x12;\n\x0e\x66rame_received\x18\x02 \x01(\x0b\x32!.livekit.proto.VideoFrameReceivedH\x00\x12,\n\x03\x65os\x18\x03 \x01(\x0b\x32\x1d.livekit.proto.VideoStreamEOSH\x00\x42\t\n\x07message\"\xbb\x01\n\x12VideoFrameReceived\x12/\n\x06\x62uffer\x18\x01 \x02(\x0b\x32\x1f.livekit.proto.OwnedVideoBuffer\x12\x14\n\x0ctimestamp_us\x18\x02 \x02(\x03\x12.\n\x08rotation\x18\x03 \x02(\x0e\x32\x1c.livekit.proto.VideoRotation\x12.\n\x08metadata\x18\x04 \x01(\x0b\x32\x1c.livekit.proto.FrameMetadata\"\x10\n\x0eVideoStreamEOS\"6\n\x15VideoSourceResolution\x12\r\n\x05width\x18\x01 \x02(\r\x12\x0e\n\x06height\x18\x02 \x02(\r\"?\n\x0fVideoSourceInfo\x12,\n\x04type\x18\x01 \x02(\x0e\x32\x1e.livekit.proto.VideoSourceType\"o\n\x10OwnedVideoSource\x12-\n\x06handle\x18\x01 \x02(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12,\n\x04info\x18\x02 \x02(\x0b\x32\x1e.livekit.proto.VideoSourceInfo*;\n\nVideoCodec\x12\x07\n\x03VP8\x10\x00\x12\x08\n\x04H264\x10\x01\x12\x07\n\x03\x41V1\x10\x02\x12\x07\n\x03VP9\x10\x03\x12\x08\n\x04H265\x10\x04*l\n\rVideoRotation\x12\x14\n\x10VIDEO_ROTATION_0\x10\x00\x12\x15\n\x11VIDEO_ROTATION_90\x10\x01\x12\x16\n\x12VIDEO_ROTATION_180\x10\x02\x12\x16\n\x12VIDEO_ROTATION_270\x10\x03*\x81\x01\n\x0fVideoBufferType\x12\x08\n\x04RGBA\x10\x00\x12\x08\n\x04\x41\x42GR\x10\x01\x12\x08\n\x04\x41RGB\x10\x02\x12\x08\n\x04\x42GRA\x10\x03\x12\t\n\x05RGB24\x10\x04\x12\x08\n\x04I420\x10\x05\x12\t\n\x05I420A\x10\x06\x12\x08\n\x04I422\x10\x07\x12\x08\n\x04I444\x10\x08\x12\x08\n\x04I010\x10\t\x12\x08\n\x04NV12\x10\n*Y\n\x0fVideoStreamType\x12\x17\n\x13VIDEO_STREAM_NATIVE\x10\x00\x12\x16\n\x12VIDEO_STREAM_WEBGL\x10\x01\x12\x15\n\x11VIDEO_STREAM_HTML\x10\x02**\n\x0fVideoSourceType\x12\x17\n\x13VIDEO_SOURCE_NATIVE\x10\x00\x42\x10\xaa\x02\rLiveKit.Proto') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -24,16 +24,16 @@ if _descriptor._USE_C_DESCRIPTORS == False: _globals['DESCRIPTOR']._options = None _globals['DESCRIPTOR']._serialized_options = b'\252\002\rLiveKit.Proto' - _globals['_VIDEOCODEC']._serialized_start=2685 - _globals['_VIDEOCODEC']._serialized_end=2744 - _globals['_VIDEOROTATION']._serialized_start=2746 - _globals['_VIDEOROTATION']._serialized_end=2854 - _globals['_VIDEOBUFFERTYPE']._serialized_start=2857 - _globals['_VIDEOBUFFERTYPE']._serialized_end=2986 - _globals['_VIDEOSTREAMTYPE']._serialized_start=2988 - _globals['_VIDEOSTREAMTYPE']._serialized_end=3077 - _globals['_VIDEOSOURCETYPE']._serialized_start=3079 - _globals['_VIDEOSOURCETYPE']._serialized_end=3121 + _globals['_VIDEOCODEC']._serialized_start=2704 + _globals['_VIDEOCODEC']._serialized_end=2763 + _globals['_VIDEOROTATION']._serialized_start=2765 + _globals['_VIDEOROTATION']._serialized_end=2873 + _globals['_VIDEOBUFFERTYPE']._serialized_start=2876 + _globals['_VIDEOBUFFERTYPE']._serialized_end=3005 + _globals['_VIDEOSTREAMTYPE']._serialized_start=3007 + _globals['_VIDEOSTREAMTYPE']._serialized_end=3096 + _globals['_VIDEOSOURCETYPE']._serialized_start=3098 + _globals['_VIDEOSOURCETYPE']._serialized_end=3140 _globals['_NEWVIDEOSTREAMREQUEST']._serialized_start=64 _globals['_NEWVIDEOSTREAMREQUEST']._serialized_end=256 _globals['_NEWVIDEOSTREAMRESPONSE']._serialized_start=258 @@ -63,21 +63,21 @@ _globals['_OWNEDVIDEOBUFFER']._serialized_start=1731 _globals['_OWNEDVIDEOBUFFER']._serialized_end=1842 _globals['_FRAMEMETADATA']._serialized_start=1844 - _globals['_FRAMEMETADATA']._serialized_end=1901 - _globals['_VIDEOSTREAMINFO']._serialized_start=1903 - _globals['_VIDEOSTREAMINFO']._serialized_end=1966 - _globals['_OWNEDVIDEOSTREAM']._serialized_start=1968 - _globals['_OWNEDVIDEOSTREAM']._serialized_end=2079 - _globals['_VIDEOSTREAMEVENT']._serialized_start=2082 - _globals['_VIDEOSTREAMEVENT']._serialized_end=2241 - _globals['_VIDEOFRAMERECEIVED']._serialized_start=2244 - _globals['_VIDEOFRAMERECEIVED']._serialized_end=2431 - _globals['_VIDEOSTREAMEOS']._serialized_start=2433 - _globals['_VIDEOSTREAMEOS']._serialized_end=2449 - _globals['_VIDEOSOURCERESOLUTION']._serialized_start=2451 - _globals['_VIDEOSOURCERESOLUTION']._serialized_end=2505 - _globals['_VIDEOSOURCEINFO']._serialized_start=2507 - _globals['_VIDEOSOURCEINFO']._serialized_end=2570 - _globals['_OWNEDVIDEOSOURCE']._serialized_start=2572 - _globals['_OWNEDVIDEOSOURCE']._serialized_end=2683 + _globals['_FRAMEMETADATA']._serialized_end=1920 + _globals['_VIDEOSTREAMINFO']._serialized_start=1922 + _globals['_VIDEOSTREAMINFO']._serialized_end=1985 + _globals['_OWNEDVIDEOSTREAM']._serialized_start=1987 + _globals['_OWNEDVIDEOSTREAM']._serialized_end=2098 + _globals['_VIDEOSTREAMEVENT']._serialized_start=2101 + _globals['_VIDEOSTREAMEVENT']._serialized_end=2260 + _globals['_VIDEOFRAMERECEIVED']._serialized_start=2263 + _globals['_VIDEOFRAMERECEIVED']._serialized_end=2450 + _globals['_VIDEOSTREAMEOS']._serialized_start=2452 + _globals['_VIDEOSTREAMEOS']._serialized_end=2468 + _globals['_VIDEOSOURCERESOLUTION']._serialized_start=2470 + _globals['_VIDEOSOURCERESOLUTION']._serialized_end=2524 + _globals['_VIDEOSOURCEINFO']._serialized_start=2526 + _globals['_VIDEOSOURCEINFO']._serialized_end=2589 + _globals['_OWNEDVIDEOSOURCE']._serialized_start=2591 + _globals['_OWNEDVIDEOSOURCE']._serialized_end=2702 # @@protoc_insertion_point(module_scope) diff --git a/livekit-rtc/livekit/rtc/_proto/video_frame_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/video_frame_pb2.pyi index e4df4b99..e9a49d80 100644 --- a/livekit-rtc/livekit/rtc/_proto/video_frame_pb2.pyi +++ b/livekit-rtc/livekit/rtc/_proto/video_frame_pb2.pyi @@ -16,30 +16,30 @@ See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -from . import handle_pb2 +from collections import abc as _abc +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +import builtins as _builtins +from . import handle_pb2 as _handle_pb2 import sys -from . import track_pb2 -import typing +from . import track_pb2 as _track_pb2 +import typing as _typing -if sys.version_info >= (3, 10): - import typing as typing_extensions +if sys.version_info >= (3, 11): + from typing import TypeAlias as _TypeAlias, Never as _Never else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias, Never as _Never -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor class _VideoCodec: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _VideoCodecEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoCodec.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _VideoCodecEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_VideoCodec.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor VP8: _VideoCodec.ValueType # 0 H264: _VideoCodec.ValueType # 1 AV1: _VideoCodec.ValueType # 2 @@ -53,14 +53,14 @@ H264: VideoCodec.ValueType # 1 AV1: VideoCodec.ValueType # 2 VP9: VideoCodec.ValueType # 3 H265: VideoCodec.ValueType # 4 -global___VideoCodec = VideoCodec +Global___VideoCodec: _TypeAlias = VideoCodec # noqa: Y015 class _VideoRotation: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _VideoRotationEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoRotation.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _VideoRotationEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_VideoRotation.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor VIDEO_ROTATION_0: _VideoRotation.ValueType # 0 VIDEO_ROTATION_90: _VideoRotation.ValueType # 1 VIDEO_ROTATION_180: _VideoRotation.ValueType # 2 @@ -72,14 +72,14 @@ VIDEO_ROTATION_0: VideoRotation.ValueType # 0 VIDEO_ROTATION_90: VideoRotation.ValueType # 1 VIDEO_ROTATION_180: VideoRotation.ValueType # 2 VIDEO_ROTATION_270: VideoRotation.ValueType # 3 -global___VideoRotation = VideoRotation +Global___VideoRotation: _TypeAlias = VideoRotation # noqa: Y015 class _VideoBufferType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _VideoBufferTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoBufferType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _VideoBufferTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_VideoBufferType.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor RGBA: _VideoBufferType.ValueType # 0 ABGR: _VideoBufferType.ValueType # 1 ARGB: _VideoBufferType.ValueType # 2 @@ -108,14 +108,14 @@ I422: VideoBufferType.ValueType # 7 I444: VideoBufferType.ValueType # 8 I010: VideoBufferType.ValueType # 9 NV12: VideoBufferType.ValueType # 10 -global___VideoBufferType = VideoBufferType +Global___VideoBufferType: _TypeAlias = VideoBufferType # noqa: Y015 class _VideoStreamType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _VideoStreamTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoStreamType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _VideoStreamTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_VideoStreamType.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor VIDEO_STREAM_NATIVE: _VideoStreamType.ValueType # 0 VIDEO_STREAM_WEBGL: _VideoStreamType.ValueType # 1 VIDEO_STREAM_HTML: _VideoStreamType.ValueType # 2 @@ -128,41 +128,41 @@ class VideoStreamType(_VideoStreamType, metaclass=_VideoStreamTypeEnumTypeWrappe VIDEO_STREAM_NATIVE: VideoStreamType.ValueType # 0 VIDEO_STREAM_WEBGL: VideoStreamType.ValueType # 1 VIDEO_STREAM_HTML: VideoStreamType.ValueType # 2 -global___VideoStreamType = VideoStreamType +Global___VideoStreamType: _TypeAlias = VideoStreamType # noqa: Y015 class _VideoSourceType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _VideoSourceTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoSourceType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _VideoSourceTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_VideoSourceType.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor VIDEO_SOURCE_NATIVE: _VideoSourceType.ValueType # 0 class VideoSourceType(_VideoSourceType, metaclass=_VideoSourceTypeEnumTypeWrapper): ... VIDEO_SOURCE_NATIVE: VideoSourceType.ValueType # 0 -global___VideoSourceType = VideoSourceType +Global___VideoSourceType: _TypeAlias = VideoSourceType # noqa: Y015 -@typing.final -class NewVideoStreamRequest(google.protobuf.message.Message): +@_typing.final +class NewVideoStreamRequest(_message.Message): """Create a new VideoStream VideoStream is used to receive video frames from a track """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TRACK_HANDLE_FIELD_NUMBER: builtins.int - TYPE_FIELD_NUMBER: builtins.int - FORMAT_FIELD_NUMBER: builtins.int - NORMALIZE_STRIDE_FIELD_NUMBER: builtins.int - QUEUE_SIZE_FRAMES_FIELD_NUMBER: builtins.int - track_handle: builtins.int - type: global___VideoStreamType.ValueType - format: global___VideoBufferType.ValueType + TRACK_HANDLE_FIELD_NUMBER: _builtins.int + TYPE_FIELD_NUMBER: _builtins.int + FORMAT_FIELD_NUMBER: _builtins.int + NORMALIZE_STRIDE_FIELD_NUMBER: _builtins.int + QUEUE_SIZE_FRAMES_FIELD_NUMBER: _builtins.int + track_handle: _builtins.int + type: Global___VideoStreamType.ValueType + format: Global___VideoBufferType.ValueType """Get the frame on a specific format""" - normalize_stride: builtins.bool + normalize_stride: _builtins.bool """if true, stride will be set to width/chroma_width""" - queue_size_frames: builtins.int + queue_size_frames: _builtins.int """Maximum number of queued WebRTC sink frames on the receive path. Omit this field to use the default bounded queue size of 1 frame. Set it to 0 to request unbounded buffering. @@ -175,52 +175,58 @@ class NewVideoStreamRequest(google.protobuf.message.Message): def __init__( self, *, - track_handle: builtins.int | None = ..., - type: global___VideoStreamType.ValueType | None = ..., - format: global___VideoBufferType.ValueType | None = ..., - normalize_stride: builtins.bool | None = ..., - queue_size_frames: builtins.int | None = ..., + track_handle: _builtins.int | None = ..., + type: Global___VideoStreamType.ValueType | None = ..., + format: Global___VideoBufferType.ValueType | None = ..., + normalize_stride: _builtins.bool | None = ..., + queue_size_frames: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["format", b"format", "normalize_stride", b"normalize_stride", "queue_size_frames", b"queue_size_frames", "track_handle", b"track_handle", "type", b"type"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["format", b"format", "normalize_stride", b"normalize_stride", "queue_size_frames", b"queue_size_frames", "track_handle", b"track_handle", "type", b"type"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["format", b"format", "normalize_stride", b"normalize_stride", "queue_size_frames", b"queue_size_frames", "track_handle", b"track_handle", "type", b"type"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["format", b"format", "normalize_stride", b"normalize_stride", "queue_size_frames", b"queue_size_frames", "track_handle", b"track_handle", "type", b"type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___NewVideoStreamRequest = NewVideoStreamRequest +Global___NewVideoStreamRequest: _TypeAlias = NewVideoStreamRequest # noqa: Y015 -@typing.final -class NewVideoStreamResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class NewVideoStreamResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - STREAM_FIELD_NUMBER: builtins.int - @property - def stream(self) -> global___OwnedVideoStream: ... + STREAM_FIELD_NUMBER: _builtins.int + @_builtins.property + def stream(self) -> Global___OwnedVideoStream: ... def __init__( self, *, - stream: global___OwnedVideoStream | None = ..., + stream: Global___OwnedVideoStream | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["stream", b"stream"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["stream", b"stream"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["stream", b"stream"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["stream", b"stream"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___NewVideoStreamResponse = NewVideoStreamResponse +Global___NewVideoStreamResponse: _TypeAlias = NewVideoStreamResponse # noqa: Y015 -@typing.final -class VideoStreamFromParticipantRequest(google.protobuf.message.Message): +@_typing.final +class VideoStreamFromParticipantRequest(_message.Message): """Request a video stream from a participant""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - TYPE_FIELD_NUMBER: builtins.int - TRACK_SOURCE_FIELD_NUMBER: builtins.int - FORMAT_FIELD_NUMBER: builtins.int - NORMALIZE_STRIDE_FIELD_NUMBER: builtins.int - QUEUE_SIZE_FRAMES_FIELD_NUMBER: builtins.int - participant_handle: builtins.int - type: global___VideoStreamType.ValueType - track_source: track_pb2.TrackSource.ValueType - format: global___VideoBufferType.ValueType - normalize_stride: builtins.bool - queue_size_frames: builtins.int + DESCRIPTOR: _descriptor.Descriptor + + PARTICIPANT_HANDLE_FIELD_NUMBER: _builtins.int + TYPE_FIELD_NUMBER: _builtins.int + TRACK_SOURCE_FIELD_NUMBER: _builtins.int + FORMAT_FIELD_NUMBER: _builtins.int + NORMALIZE_STRIDE_FIELD_NUMBER: _builtins.int + QUEUE_SIZE_FRAMES_FIELD_NUMBER: _builtins.int + participant_handle: _builtins.int + type: Global___VideoStreamType.ValueType + track_source: _track_pb2.TrackSource.ValueType + format: Global___VideoBufferType.ValueType + normalize_stride: _builtins.bool + queue_size_frames: _builtins.int """Maximum number of queued WebRTC sink frames on the receive path. Omit this field to use the default bounded queue size of 1 frame. Set it to 0 to request unbounded buffering. @@ -233,50 +239,56 @@ class VideoStreamFromParticipantRequest(google.protobuf.message.Message): def __init__( self, *, - participant_handle: builtins.int | None = ..., - type: global___VideoStreamType.ValueType | None = ..., - track_source: track_pb2.TrackSource.ValueType | None = ..., - format: global___VideoBufferType.ValueType | None = ..., - normalize_stride: builtins.bool | None = ..., - queue_size_frames: builtins.int | None = ..., + participant_handle: _builtins.int | None = ..., + type: Global___VideoStreamType.ValueType | None = ..., + track_source: _track_pb2.TrackSource.ValueType | None = ..., + format: Global___VideoBufferType.ValueType | None = ..., + normalize_stride: _builtins.bool | None = ..., + queue_size_frames: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["format", b"format", "normalize_stride", b"normalize_stride", "participant_handle", b"participant_handle", "queue_size_frames", b"queue_size_frames", "track_source", b"track_source", "type", b"type"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["format", b"format", "normalize_stride", b"normalize_stride", "participant_handle", b"participant_handle", "queue_size_frames", b"queue_size_frames", "track_source", b"track_source", "type", b"type"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["format", b"format", "normalize_stride", b"normalize_stride", "participant_handle", b"participant_handle", "queue_size_frames", b"queue_size_frames", "track_source", b"track_source", "type", b"type"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["format", b"format", "normalize_stride", b"normalize_stride", "participant_handle", b"participant_handle", "queue_size_frames", b"queue_size_frames", "track_source", b"track_source", "type", b"type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___VideoStreamFromParticipantRequest = VideoStreamFromParticipantRequest +Global___VideoStreamFromParticipantRequest: _TypeAlias = VideoStreamFromParticipantRequest # noqa: Y015 -@typing.final -class VideoStreamFromParticipantResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class VideoStreamFromParticipantResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - STREAM_FIELD_NUMBER: builtins.int - @property - def stream(self) -> global___OwnedVideoStream: ... + STREAM_FIELD_NUMBER: _builtins.int + @_builtins.property + def stream(self) -> Global___OwnedVideoStream: ... def __init__( self, *, - stream: global___OwnedVideoStream | None = ..., + stream: Global___OwnedVideoStream | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["stream", b"stream"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["stream", b"stream"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["stream", b"stream"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["stream", b"stream"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___VideoStreamFromParticipantResponse = VideoStreamFromParticipantResponse +Global___VideoStreamFromParticipantResponse: _TypeAlias = VideoStreamFromParticipantResponse # noqa: Y015 -@typing.final -class NewVideoSourceRequest(google.protobuf.message.Message): +@_typing.final +class NewVideoSourceRequest(_message.Message): """Create a new VideoSource VideoSource is used to send video frame to a track """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TYPE_FIELD_NUMBER: builtins.int - RESOLUTION_FIELD_NUMBER: builtins.int - IS_SCREENCAST_FIELD_NUMBER: builtins.int - type: global___VideoSourceType.ValueType - is_screencast: builtins.bool - @property - def resolution(self) -> global___VideoSourceResolution: + TYPE_FIELD_NUMBER: _builtins.int + RESOLUTION_FIELD_NUMBER: _builtins.int + IS_SCREENCAST_FIELD_NUMBER: _builtins.int + type: Global___VideoSourceType.ValueType + is_screencast: _builtins.bool + @_builtins.property + def resolution(self) -> Global___VideoSourceResolution: """Used to determine which encodings to use + simulcast layers Most of the time it corresponds to the source resolution """ @@ -284,394 +296,460 @@ class NewVideoSourceRequest(google.protobuf.message.Message): def __init__( self, *, - type: global___VideoSourceType.ValueType | None = ..., - resolution: global___VideoSourceResolution | None = ..., - is_screencast: builtins.bool | None = ..., + type: Global___VideoSourceType.ValueType | None = ..., + resolution: Global___VideoSourceResolution | None = ..., + is_screencast: _builtins.bool | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["is_screencast", b"is_screencast", "resolution", b"resolution", "type", b"type"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["is_screencast", b"is_screencast", "resolution", b"resolution", "type", b"type"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["is_screencast", b"is_screencast", "resolution", b"resolution", "type", b"type"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["is_screencast", b"is_screencast", "resolution", b"resolution", "type", b"type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___NewVideoSourceRequest = NewVideoSourceRequest +Global___NewVideoSourceRequest: _TypeAlias = NewVideoSourceRequest # noqa: Y015 -@typing.final -class NewVideoSourceResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class NewVideoSourceResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - SOURCE_FIELD_NUMBER: builtins.int - @property - def source(self) -> global___OwnedVideoSource: ... + SOURCE_FIELD_NUMBER: _builtins.int + @_builtins.property + def source(self) -> Global___OwnedVideoSource: ... def __init__( self, *, - source: global___OwnedVideoSource | None = ..., + source: Global___OwnedVideoSource | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["source", b"source"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["source", b"source"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["source", b"source"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["source", b"source"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___NewVideoSourceResponse = NewVideoSourceResponse +Global___NewVideoSourceResponse: _TypeAlias = NewVideoSourceResponse # noqa: Y015 -@typing.final -class CaptureVideoFrameRequest(google.protobuf.message.Message): +@_typing.final +class CaptureVideoFrameRequest(_message.Message): """Push a frame to a VideoSource""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - SOURCE_HANDLE_FIELD_NUMBER: builtins.int - BUFFER_FIELD_NUMBER: builtins.int - TIMESTAMP_US_FIELD_NUMBER: builtins.int - ROTATION_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - source_handle: builtins.int - timestamp_us: builtins.int + SOURCE_HANDLE_FIELD_NUMBER: _builtins.int + BUFFER_FIELD_NUMBER: _builtins.int + TIMESTAMP_US_FIELD_NUMBER: _builtins.int + ROTATION_FIELD_NUMBER: _builtins.int + METADATA_FIELD_NUMBER: _builtins.int + source_handle: _builtins.int + timestamp_us: _builtins.int """In microseconds""" - rotation: global___VideoRotation.ValueType - @property - def buffer(self) -> global___VideoBufferInfo: ... - @property - def metadata(self) -> global___FrameMetadata: ... + rotation: Global___VideoRotation.ValueType + @_builtins.property + def buffer(self) -> Global___VideoBufferInfo: ... + @_builtins.property + def metadata(self) -> Global___FrameMetadata: ... def __init__( self, *, - source_handle: builtins.int | None = ..., - buffer: global___VideoBufferInfo | None = ..., - timestamp_us: builtins.int | None = ..., - rotation: global___VideoRotation.ValueType | None = ..., - metadata: global___FrameMetadata | None = ..., + source_handle: _builtins.int | None = ..., + buffer: Global___VideoBufferInfo | None = ..., + timestamp_us: _builtins.int | None = ..., + rotation: Global___VideoRotation.ValueType | None = ..., + metadata: Global___FrameMetadata | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["buffer", b"buffer", "metadata", b"metadata", "rotation", b"rotation", "source_handle", b"source_handle", "timestamp_us", b"timestamp_us"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["buffer", b"buffer", "metadata", b"metadata", "rotation", b"rotation", "source_handle", b"source_handle", "timestamp_us", b"timestamp_us"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "metadata", b"metadata", "rotation", b"rotation", "source_handle", b"source_handle", "timestamp_us", b"timestamp_us"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "metadata", b"metadata", "rotation", b"rotation", "source_handle", b"source_handle", "timestamp_us", b"timestamp_us"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___CaptureVideoFrameRequest = CaptureVideoFrameRequest +Global___CaptureVideoFrameRequest: _TypeAlias = CaptureVideoFrameRequest # noqa: Y015 -@typing.final -class CaptureVideoFrameResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class CaptureVideoFrameResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... - -global___CaptureVideoFrameResponse = CaptureVideoFrameResponse - -@typing.final -class VideoConvertRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - FLIP_Y_FIELD_NUMBER: builtins.int - BUFFER_FIELD_NUMBER: builtins.int - DST_TYPE_FIELD_NUMBER: builtins.int - flip_y: builtins.bool - dst_type: global___VideoBufferType.ValueType - @property - def buffer(self) -> global___VideoBufferInfo: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___CaptureVideoFrameResponse: _TypeAlias = CaptureVideoFrameResponse # noqa: Y015 + +@_typing.final +class VideoConvertRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + FLIP_Y_FIELD_NUMBER: _builtins.int + BUFFER_FIELD_NUMBER: _builtins.int + DST_TYPE_FIELD_NUMBER: _builtins.int + flip_y: _builtins.bool + dst_type: Global___VideoBufferType.ValueType + @_builtins.property + def buffer(self) -> Global___VideoBufferInfo: ... def __init__( self, *, - flip_y: builtins.bool | None = ..., - buffer: global___VideoBufferInfo | None = ..., - dst_type: global___VideoBufferType.ValueType | None = ..., + flip_y: _builtins.bool | None = ..., + buffer: Global___VideoBufferInfo | None = ..., + dst_type: Global___VideoBufferType.ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["buffer", b"buffer", "dst_type", b"dst_type", "flip_y", b"flip_y"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["buffer", b"buffer", "dst_type", b"dst_type", "flip_y", b"flip_y"]) -> None: ... - -global___VideoConvertRequest = VideoConvertRequest - -@typing.final -class VideoConvertResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ERROR_FIELD_NUMBER: builtins.int - BUFFER_FIELD_NUMBER: builtins.int - error: builtins.str - @property - def buffer(self) -> global___OwnedVideoBuffer: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "dst_type", b"dst_type", "flip_y", b"flip_y"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "dst_type", b"dst_type", "flip_y", b"flip_y"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___VideoConvertRequest: _TypeAlias = VideoConvertRequest # noqa: Y015 + +@_typing.final +class VideoConvertResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ERROR_FIELD_NUMBER: _builtins.int + BUFFER_FIELD_NUMBER: _builtins.int + error: _builtins.str + @_builtins.property + def buffer(self) -> Global___OwnedVideoBuffer: ... def __init__( self, *, - error: builtins.str | None = ..., - buffer: global___OwnedVideoBuffer | None = ..., + error: _builtins.str | None = ..., + buffer: Global___OwnedVideoBuffer | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["buffer", b"buffer", "error", b"error", "message", b"message"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["buffer", b"buffer", "error", b"error", "message", b"message"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["error", "buffer"] | None: ... - -global___VideoConvertResponse = VideoConvertResponse - -@typing.final -class VideoResolution(google.protobuf.message.Message): + _HasFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "error", b"error", "message", b"message"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "error", b"error", "message", b"message"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_message: _TypeAlias = _typing.Literal["error", "buffer"] # noqa: Y015 + _WhichOneofArgType_message: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_message) -> _WhichOneofReturnType_message | None: ... + +Global___VideoConvertResponse: _TypeAlias = VideoConvertResponse # noqa: Y015 + +@_typing.final +class VideoResolution(_message.Message): """ VideoFrame buffers """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - WIDTH_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - FRAME_RATE_FIELD_NUMBER: builtins.int - width: builtins.int - height: builtins.int - frame_rate: builtins.float + WIDTH_FIELD_NUMBER: _builtins.int + HEIGHT_FIELD_NUMBER: _builtins.int + FRAME_RATE_FIELD_NUMBER: _builtins.int + width: _builtins.int + height: _builtins.int + frame_rate: _builtins.float def __init__( self, *, - width: builtins.int | None = ..., - height: builtins.int | None = ..., - frame_rate: builtins.float | None = ..., + width: _builtins.int | None = ..., + height: _builtins.int | None = ..., + frame_rate: _builtins.float | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["frame_rate", b"frame_rate", "height", b"height", "width", b"width"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["frame_rate", b"frame_rate", "height", b"height", "width", b"width"]) -> None: ... - -global___VideoResolution = VideoResolution - -@typing.final -class VideoBufferInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class ComponentInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - DATA_PTR_FIELD_NUMBER: builtins.int - STRIDE_FIELD_NUMBER: builtins.int - SIZE_FIELD_NUMBER: builtins.int - data_ptr: builtins.int - stride: builtins.int - size: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["frame_rate", b"frame_rate", "height", b"height", "width", b"width"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["frame_rate", b"frame_rate", "height", b"height", "width", b"width"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___VideoResolution: _TypeAlias = VideoResolution # noqa: Y015 + +@_typing.final +class VideoBufferInfo(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class ComponentInfo(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + DATA_PTR_FIELD_NUMBER: _builtins.int + STRIDE_FIELD_NUMBER: _builtins.int + SIZE_FIELD_NUMBER: _builtins.int + data_ptr: _builtins.int + stride: _builtins.int + size: _builtins.int def __init__( self, *, - data_ptr: builtins.int | None = ..., - stride: builtins.int | None = ..., - size: builtins.int | None = ..., + data_ptr: _builtins.int | None = ..., + stride: _builtins.int | None = ..., + size: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["data_ptr", b"data_ptr", "size", b"size", "stride", b"stride"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["data_ptr", b"data_ptr", "size", b"size", "stride", b"stride"]) -> None: ... - - TYPE_FIELD_NUMBER: builtins.int - WIDTH_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - DATA_PTR_FIELD_NUMBER: builtins.int - STRIDE_FIELD_NUMBER: builtins.int - COMPONENTS_FIELD_NUMBER: builtins.int - type: global___VideoBufferType.ValueType - width: builtins.int - height: builtins.int - data_ptr: builtins.int - stride: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["data_ptr", b"data_ptr", "size", b"size", "stride", b"stride"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["data_ptr", b"data_ptr", "size", b"size", "stride", b"stride"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + + TYPE_FIELD_NUMBER: _builtins.int + WIDTH_FIELD_NUMBER: _builtins.int + HEIGHT_FIELD_NUMBER: _builtins.int + DATA_PTR_FIELD_NUMBER: _builtins.int + STRIDE_FIELD_NUMBER: _builtins.int + COMPONENTS_FIELD_NUMBER: _builtins.int + type: Global___VideoBufferType.ValueType + width: _builtins.int + height: _builtins.int + data_ptr: _builtins.int + stride: _builtins.int """only for packed formats""" - @property - def components(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___VideoBufferInfo.ComponentInfo]: ... + @_builtins.property + def components(self) -> _containers.RepeatedCompositeFieldContainer[Global___VideoBufferInfo.ComponentInfo]: ... def __init__( self, *, - type: global___VideoBufferType.ValueType | None = ..., - width: builtins.int | None = ..., - height: builtins.int | None = ..., - data_ptr: builtins.int | None = ..., - stride: builtins.int | None = ..., - components: collections.abc.Iterable[global___VideoBufferInfo.ComponentInfo] | None = ..., + type: Global___VideoBufferType.ValueType | None = ..., + width: _builtins.int | None = ..., + height: _builtins.int | None = ..., + data_ptr: _builtins.int | None = ..., + stride: _builtins.int | None = ..., + components: _abc.Iterable[Global___VideoBufferInfo.ComponentInfo] | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["data_ptr", b"data_ptr", "height", b"height", "stride", b"stride", "type", b"type", "width", b"width"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["components", b"components", "data_ptr", b"data_ptr", "height", b"height", "stride", b"stride", "type", b"type", "width", b"width"]) -> None: ... - -global___VideoBufferInfo = VideoBufferInfo - -@typing.final -class OwnedVideoBuffer(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___VideoBufferInfo: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["data_ptr", b"data_ptr", "height", b"height", "stride", b"stride", "type", b"type", "width", b"width"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["components", b"components", "data_ptr", b"data_ptr", "height", b"height", "stride", b"stride", "type", b"type", "width", b"width"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___VideoBufferInfo: _TypeAlias = VideoBufferInfo # noqa: Y015 + +@_typing.final +class OwnedVideoBuffer(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___VideoBufferInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___VideoBufferInfo | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___VideoBufferInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... - -global___OwnedVideoBuffer = OwnedVideoBuffer - -@typing.final -class FrameMetadata(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - USER_TIMESTAMP_FIELD_NUMBER: builtins.int - FRAME_ID_FIELD_NUMBER: builtins.int - user_timestamp: builtins.int - frame_id: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___OwnedVideoBuffer: _TypeAlias = OwnedVideoBuffer # noqa: Y015 + +@_typing.final +class FrameMetadata(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + USER_TIMESTAMP_FIELD_NUMBER: _builtins.int + FRAME_ID_FIELD_NUMBER: _builtins.int + USER_DATA_FIELD_NUMBER: _builtins.int + user_timestamp: _builtins.int + frame_id: _builtins.int + user_data: _builtins.bytes def __init__( self, *, - user_timestamp: builtins.int | None = ..., - frame_id: builtins.int | None = ..., + user_timestamp: _builtins.int | None = ..., + frame_id: _builtins.int | None = ..., + user_data: _builtins.bytes | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["frame_id", b"frame_id", "user_timestamp", b"user_timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["frame_id", b"frame_id", "user_timestamp", b"user_timestamp"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["frame_id", b"frame_id", "user_data", b"user_data", "user_timestamp", b"user_timestamp"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["frame_id", b"frame_id", "user_data", b"user_data", "user_timestamp", b"user_timestamp"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___FrameMetadata = FrameMetadata +Global___FrameMetadata: _TypeAlias = FrameMetadata # noqa: Y015 -@typing.final -class VideoStreamInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class VideoStreamInfo(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - TYPE_FIELD_NUMBER: builtins.int - type: global___VideoStreamType.ValueType + TYPE_FIELD_NUMBER: _builtins.int + type: Global___VideoStreamType.ValueType def __init__( self, *, - type: global___VideoStreamType.ValueType | None = ..., + type: Global___VideoStreamType.ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["type", b"type"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["type", b"type"]) -> None: ... - -global___VideoStreamInfo = VideoStreamInfo - -@typing.final -class OwnedVideoStream(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___VideoStreamInfo: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["type", b"type"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["type", b"type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___VideoStreamInfo: _TypeAlias = VideoStreamInfo # noqa: Y015 + +@_typing.final +class OwnedVideoStream(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___VideoStreamInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___VideoStreamInfo | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___VideoStreamInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... - -global___OwnedVideoStream = OwnedVideoStream - -@typing.final -class VideoStreamEvent(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - STREAM_HANDLE_FIELD_NUMBER: builtins.int - FRAME_RECEIVED_FIELD_NUMBER: builtins.int - EOS_FIELD_NUMBER: builtins.int - stream_handle: builtins.int - @property - def frame_received(self) -> global___VideoFrameReceived: ... - @property - def eos(self) -> global___VideoStreamEOS: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___OwnedVideoStream: _TypeAlias = OwnedVideoStream # noqa: Y015 + +@_typing.final +class VideoStreamEvent(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + STREAM_HANDLE_FIELD_NUMBER: _builtins.int + FRAME_RECEIVED_FIELD_NUMBER: _builtins.int + EOS_FIELD_NUMBER: _builtins.int + stream_handle: _builtins.int + @_builtins.property + def frame_received(self) -> Global___VideoFrameReceived: ... + @_builtins.property + def eos(self) -> Global___VideoStreamEOS: ... def __init__( self, *, - stream_handle: builtins.int | None = ..., - frame_received: global___VideoFrameReceived | None = ..., - eos: global___VideoStreamEOS | None = ..., + stream_handle: _builtins.int | None = ..., + frame_received: Global___VideoFrameReceived | None = ..., + eos: Global___VideoStreamEOS | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["eos", b"eos", "frame_received", b"frame_received", "message", b"message", "stream_handle", b"stream_handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["eos", b"eos", "frame_received", b"frame_received", "message", b"message", "stream_handle", b"stream_handle"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["frame_received", "eos"] | None: ... - -global___VideoStreamEvent = VideoStreamEvent - -@typing.final -class VideoFrameReceived(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - BUFFER_FIELD_NUMBER: builtins.int - TIMESTAMP_US_FIELD_NUMBER: builtins.int - ROTATION_FIELD_NUMBER: builtins.int - METADATA_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 + METADATA_FIELD_NUMBER: _builtins.int + timestamp_us: _builtins.int """In microseconds""" - rotation: global___VideoRotation.ValueType - @property - def buffer(self) -> global___OwnedVideoBuffer: ... - @property - def metadata(self) -> global___FrameMetadata: ... + rotation: Global___VideoRotation.ValueType + @_builtins.property + def buffer(self) -> Global___OwnedVideoBuffer: ... + @_builtins.property + def metadata(self) -> Global___FrameMetadata: ... def __init__( self, *, - buffer: global___OwnedVideoBuffer | None = ..., - timestamp_us: builtins.int | None = ..., - rotation: global___VideoRotation.ValueType | None = ..., - metadata: global___FrameMetadata | None = ..., + buffer: Global___OwnedVideoBuffer | None = ..., + timestamp_us: _builtins.int | None = ..., + rotation: Global___VideoRotation.ValueType | None = ..., + metadata: Global___FrameMetadata | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["buffer", b"buffer", "metadata", b"metadata", "rotation", b"rotation", "timestamp_us", b"timestamp_us"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["buffer", b"buffer", "metadata", b"metadata", "rotation", b"rotation", "timestamp_us", b"timestamp_us"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "metadata", b"metadata", "rotation", b"rotation", "timestamp_us", b"timestamp_us"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["buffer", b"buffer", "metadata", b"metadata", "rotation", b"rotation", "timestamp_us", b"timestamp_us"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___VideoFrameReceived = VideoFrameReceived +Global___VideoFrameReceived: _TypeAlias = VideoFrameReceived # noqa: Y015 -@typing.final -class VideoStreamEOS(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class VideoStreamEOS(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... + _HasFieldArgType: _TypeAlias = _Never # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _Never # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___VideoStreamEOS = VideoStreamEOS +Global___VideoStreamEOS: _TypeAlias = VideoStreamEOS # noqa: Y015 -@typing.final -class VideoSourceResolution(google.protobuf.message.Message): +@_typing.final +class VideoSourceResolution(_message.Message): """ VideoSource """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - WIDTH_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - width: builtins.int - height: builtins.int + WIDTH_FIELD_NUMBER: _builtins.int + HEIGHT_FIELD_NUMBER: _builtins.int + width: _builtins.int + height: _builtins.int def __init__( self, *, - width: builtins.int | None = ..., - height: builtins.int | None = ..., + width: _builtins.int | None = ..., + height: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["height", b"height", "width", b"width"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["height", b"height", "width", b"width"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["height", b"height", "width", b"width"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["height", b"height", "width", b"width"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___VideoSourceResolution = VideoSourceResolution +Global___VideoSourceResolution: _TypeAlias = VideoSourceResolution # noqa: Y015 -@typing.final -class VideoSourceInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class VideoSourceInfo(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - TYPE_FIELD_NUMBER: builtins.int - type: global___VideoSourceType.ValueType + TYPE_FIELD_NUMBER: _builtins.int + type: Global___VideoSourceType.ValueType def __init__( self, *, - type: global___VideoSourceType.ValueType | None = ..., + type: Global___VideoSourceType.ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["type", b"type"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["type", b"type"]) -> None: ... - -global___VideoSourceInfo = VideoSourceInfo - -@typing.final -class OwnedVideoSource(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___VideoSourceInfo: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["type", b"type"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["type", b"type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... + +Global___VideoSourceInfo: _TypeAlias = VideoSourceInfo # noqa: Y015 + +@_typing.final +class OwnedVideoSource(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + HANDLE_FIELD_NUMBER: _builtins.int + INFO_FIELD_NUMBER: _builtins.int + @_builtins.property + def handle(self) -> _handle_pb2.FfiOwnedHandle: ... + @_builtins.property + def info(self) -> Global___VideoSourceInfo: ... def __init__( self, *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___VideoSourceInfo | None = ..., + handle: _handle_pb2.FfiOwnedHandle | None = ..., + info: Global___VideoSourceInfo | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["handle", b"handle", "info", b"info"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + def WhichOneof(self, oneof_group: _Never) -> None: ... -global___OwnedVideoSource = OwnedVideoSource +Global___OwnedVideoSource: _TypeAlias = OwnedVideoSource # noqa: Y015 diff --git a/livekit-rtc/livekit/rtc/track_publication.py b/livekit-rtc/livekit/rtc/track_publication.py index 58c96706..9d2c64b4 100644 --- a/livekit-rtc/livekit/rtc/track_publication.py +++ b/livekit-rtc/livekit/rtc/track_publication.py @@ -80,8 +80,13 @@ def audio_features(self) -> List[proto_track.AudioTrackFeature.ValueType]: return list(self._info.audio_features) @property - def packet_trailer_features(self) -> List[proto_track.PacketTrailerFeature.ValueType]: - return list(self._info.packet_trailer_features) + def frame_metadata_features(self) -> List[proto_track.FrameMetadataFeature.ValueType]: + return list(self._info.frame_metadata_features) + + @property + def packet_trailer_features(self) -> List[proto_track.FrameMetadataFeature.ValueType]: + """Deprecated alias for :meth:`frame_metadata_features`.""" + return self.frame_metadata_features class LocalTrackPublication(TrackPublication):