diff --git a/buildSrc/src/main/kotlin/io/getstream/video/android/Configuration.kt b/buildSrc/src/main/kotlin/io/getstream/video/android/Configuration.kt index 2a57fdeeb8..bd3c152936 100644 --- a/buildSrc/src/main/kotlin/io/getstream/video/android/Configuration.kt +++ b/buildSrc/src/main/kotlin/io/getstream/video/android/Configuration.kt @@ -12,4 +12,5 @@ object Configuration { const val snapshotVersionName = "$majorVersion.$minorVersion.${patchVersion + 1}-SNAPSHOT" const val artifactGroup = "io.getstream" const val streamVideoCallGooglePlayVersion = "1.0.5" + const val streamWebRtcVersionName = "1.1.1" } diff --git a/stream-video-android-core/api/stream-video-android-core.api b/stream-video-android-core/api/stream-video-android-core.api index cff9a83461..e5f9b61ce9 100644 --- a/stream-video-android-core/api/stream-video-android-core.api +++ b/stream-video-android-core/api/stream-video-android-core.api @@ -59,7 +59,6 @@ public final class io/getstream/video/android/core/Call { public final fun sendCustomEvent (Ljava/util/Map;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun sendReaction (Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun sendReaction$default (Lio/getstream/video/android/core/Call;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; - public final fun sendStats (Ljava/util/Map;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public final fun setAudioFilter (Lio/getstream/video/android/core/call/audio/AudioFilter;)V public final fun setVideoFilter (Lio/getstream/video/android/core/call/video/VideoFilter;)V public final fun setVisibility (Ljava/lang/String;Lstream/video/sfu/models/TrackType;Z)V @@ -193,6 +192,10 @@ public final class io/getstream/video/android/core/CallStats { public final fun updateLocalStats ()V } +public final class io/getstream/video/android/core/CallStatsReportKt { + public static final fun toJson (Lio/getstream/video/android/core/CallStatsReport;Lio/getstream/video/android/core/model/StreamPeerType;)Ljava/lang/String; +} + public final class io/getstream/video/android/core/CameraDeviceWrapped { public fun (Ljava/lang/String;Landroid/hardware/camera2/CameraCharacteristics;Ljava/util/List;ILio/getstream/video/android/core/CameraDirection;)V public final fun component1 ()Ljava/lang/String; @@ -839,6 +842,7 @@ public abstract interface class io/getstream/video/android/core/api/SignalServer public abstract fun iceRestart (Lstream/video/sfu/signal/ICERestartRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun iceTrickle (Lstream/video/sfu/models/ICETrickle;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun sendAnswer (Lstream/video/sfu/signal/SendAnswerRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public abstract fun sendStats (Lstream/video/sfu/signal/SendStatsRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun setPublisher (Lstream/video/sfu/signal/SetPublisherRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun updateMuteStates (Lstream/video/sfu/signal/UpdateMuteStatesRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun updateSubscriptions (Lstream/video/sfu/signal/UpdateSubscriptionsRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -7604,17 +7608,18 @@ public final class org/openapitools/client/models/JoinCallRequest { } public final class org/openapitools/client/models/JoinCallResponse { - public fun (Lorg/openapitools/client/models/CallResponse;ZLorg/openapitools/client/models/Credentials;Ljava/lang/String;Ljava/util/List;Ljava/util/List;Lorg/openapitools/client/models/MemberResponse;)V - public synthetic fun (Lorg/openapitools/client/models/CallResponse;ZLorg/openapitools/client/models/Credentials;Ljava/lang/String;Ljava/util/List;Ljava/util/List;Lorg/openapitools/client/models/MemberResponse;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun (Lorg/openapitools/client/models/CallResponse;ZLorg/openapitools/client/models/Credentials;Ljava/lang/String;Ljava/util/List;Ljava/util/List;Lorg/openapitools/client/models/StatsOptions;Lorg/openapitools/client/models/MemberResponse;)V + public synthetic fun (Lorg/openapitools/client/models/CallResponse;ZLorg/openapitools/client/models/Credentials;Ljava/lang/String;Ljava/util/List;Ljava/util/List;Lorg/openapitools/client/models/StatsOptions;Lorg/openapitools/client/models/MemberResponse;ILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun component1 ()Lorg/openapitools/client/models/CallResponse; public final fun component2 ()Z public final fun component3 ()Lorg/openapitools/client/models/Credentials; public final fun component4 ()Ljava/lang/String; public final fun component5 ()Ljava/util/List; public final fun component6 ()Ljava/util/List; - public final fun component7 ()Lorg/openapitools/client/models/MemberResponse; - public final fun copy (Lorg/openapitools/client/models/CallResponse;ZLorg/openapitools/client/models/Credentials;Ljava/lang/String;Ljava/util/List;Ljava/util/List;Lorg/openapitools/client/models/MemberResponse;)Lorg/openapitools/client/models/JoinCallResponse; - public static synthetic fun copy$default (Lorg/openapitools/client/models/JoinCallResponse;Lorg/openapitools/client/models/CallResponse;ZLorg/openapitools/client/models/Credentials;Ljava/lang/String;Ljava/util/List;Ljava/util/List;Lorg/openapitools/client/models/MemberResponse;ILjava/lang/Object;)Lorg/openapitools/client/models/JoinCallResponse; + public final fun component7 ()Lorg/openapitools/client/models/StatsOptions; + public final fun component8 ()Lorg/openapitools/client/models/MemberResponse; + public final fun copy (Lorg/openapitools/client/models/CallResponse;ZLorg/openapitools/client/models/Credentials;Ljava/lang/String;Ljava/util/List;Ljava/util/List;Lorg/openapitools/client/models/StatsOptions;Lorg/openapitools/client/models/MemberResponse;)Lorg/openapitools/client/models/JoinCallResponse; + public static synthetic fun copy$default (Lorg/openapitools/client/models/JoinCallResponse;Lorg/openapitools/client/models/CallResponse;ZLorg/openapitools/client/models/Credentials;Ljava/lang/String;Ljava/util/List;Ljava/util/List;Lorg/openapitools/client/models/StatsOptions;Lorg/openapitools/client/models/MemberResponse;ILjava/lang/Object;)Lorg/openapitools/client/models/JoinCallResponse; public fun equals (Ljava/lang/Object;)Z public final fun getCall ()Lorg/openapitools/client/models/CallResponse; public final fun getCreated ()Z @@ -7623,6 +7628,7 @@ public final class org/openapitools/client/models/JoinCallResponse { public final fun getMembers ()Ljava/util/List; public final fun getMembership ()Lorg/openapitools/client/models/MemberResponse; public final fun getOwnCapabilities ()Ljava/util/List; + public final fun getStatsOptions ()Lorg/openapitools/client/models/StatsOptions; public fun hashCode ()I public fun toString ()Ljava/lang/String; } @@ -8481,6 +8487,17 @@ public final class org/openapitools/client/models/StartTranscriptionResponse { public fun toString ()Ljava/lang/String; } +public final class org/openapitools/client/models/StatsOptions { + public fun (I)V + public final fun component1 ()I + public final fun copy (I)Lorg/openapitools/client/models/StatsOptions; + public static synthetic fun copy$default (Lorg/openapitools/client/models/StatsOptions;IILjava/lang/Object;)Lorg/openapitools/client/models/StatsOptions; + public fun equals (Ljava/lang/Object;)Z + public final fun getReportingIntervalMs ()I + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + public final class org/openapitools/client/models/StopBroadcastingResponse { public fun (Ljava/lang/String;)V public final fun component1 ()Ljava/lang/String; @@ -9616,14 +9633,15 @@ public final class stream/video/sfu/event/VideoLayerSetting : com/squareup/wire/ public static final field ADAPTER Lcom/squareup/wire/ProtoAdapter; public static final field Companion Lstream/video/sfu/event/VideoLayerSetting$Companion; public fun ()V - public fun (Ljava/lang/String;ZIFLstream/video/sfu/event/VideoLayerSetting$Priority;Lstream/video/sfu/models/Codec;Lokio/ByteString;)V - public synthetic fun (Ljava/lang/String;ZIFLstream/video/sfu/event/VideoLayerSetting$Priority;Lstream/video/sfu/models/Codec;Lokio/ByteString;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public final fun copy (Ljava/lang/String;ZIFLstream/video/sfu/event/VideoLayerSetting$Priority;Lstream/video/sfu/models/Codec;Lokio/ByteString;)Lstream/video/sfu/event/VideoLayerSetting; - public static synthetic fun copy$default (Lstream/video/sfu/event/VideoLayerSetting;Ljava/lang/String;ZIFLstream/video/sfu/event/VideoLayerSetting$Priority;Lstream/video/sfu/models/Codec;Lokio/ByteString;ILjava/lang/Object;)Lstream/video/sfu/event/VideoLayerSetting; + public fun (Ljava/lang/String;ZIFLstream/video/sfu/event/VideoLayerSetting$Priority;Lstream/video/sfu/models/Codec;ILokio/ByteString;)V + public synthetic fun (Ljava/lang/String;ZIFLstream/video/sfu/event/VideoLayerSetting$Priority;Lstream/video/sfu/models/Codec;ILokio/ByteString;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun copy (Ljava/lang/String;ZIFLstream/video/sfu/event/VideoLayerSetting$Priority;Lstream/video/sfu/models/Codec;ILokio/ByteString;)Lstream/video/sfu/event/VideoLayerSetting; + public static synthetic fun copy$default (Lstream/video/sfu/event/VideoLayerSetting;Ljava/lang/String;ZIFLstream/video/sfu/event/VideoLayerSetting$Priority;Lstream/video/sfu/models/Codec;ILokio/ByteString;ILjava/lang/Object;)Lstream/video/sfu/event/VideoLayerSetting; public fun equals (Ljava/lang/Object;)Z public final fun getActive ()Z public final fun getCodec ()Lstream/video/sfu/models/Codec; public final fun getMax_bitrate ()I + public final fun getMax_framerate ()I public final fun getName ()Ljava/lang/String; public final fun getPriority ()Lstream/video/sfu/event/VideoLayerSetting$Priority; public final fun getScale_resolution_down_by ()F @@ -10373,6 +10391,49 @@ public final class stream/video/sfu/signal/SendAnswerResponse : com/squareup/wir public final class stream/video/sfu/signal/SendAnswerResponse$Companion { } +public final class stream/video/sfu/signal/SendStatsRequest : com/squareup/wire/Message { + public static final field ADAPTER Lcom/squareup/wire/ProtoAdapter; + public static final field Companion Lstream/video/sfu/signal/SendStatsRequest$Companion; + public fun ()V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lokio/ByteString;)V + public synthetic fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lokio/ByteString;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun copy (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lokio/ByteString;)Lstream/video/sfu/signal/SendStatsRequest; + public static synthetic fun copy$default (Lstream/video/sfu/signal/SendStatsRequest;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lokio/ByteString;ILjava/lang/Object;)Lstream/video/sfu/signal/SendStatsRequest; + public fun equals (Ljava/lang/Object;)Z + public final fun getPublisher_stats ()Ljava/lang/String; + public final fun getSdk ()Ljava/lang/String; + public final fun getSdk_version ()Ljava/lang/String; + public final fun getSession_id ()Ljava/lang/String; + public final fun getSubscriber_stats ()Ljava/lang/String; + public final fun getWebrtc_version ()Ljava/lang/String; + public fun hashCode ()I + public synthetic fun newBuilder ()Lcom/squareup/wire/Message$Builder; + public synthetic fun newBuilder ()Ljava/lang/Void; + public fun toString ()Ljava/lang/String; +} + +public final class stream/video/sfu/signal/SendStatsRequest$Companion { +} + +public final class stream/video/sfu/signal/SendStatsResponse : com/squareup/wire/Message { + public static final field ADAPTER Lcom/squareup/wire/ProtoAdapter; + public static final field Companion Lstream/video/sfu/signal/SendStatsResponse$Companion; + public fun ()V + public fun (Lstream/video/sfu/models/Error;Lokio/ByteString;)V + public synthetic fun (Lstream/video/sfu/models/Error;Lokio/ByteString;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun copy (Lstream/video/sfu/models/Error;Lokio/ByteString;)Lstream/video/sfu/signal/SendStatsResponse; + public static synthetic fun copy$default (Lstream/video/sfu/signal/SendStatsResponse;Lstream/video/sfu/models/Error;Lokio/ByteString;ILjava/lang/Object;)Lstream/video/sfu/signal/SendStatsResponse; + public fun equals (Ljava/lang/Object;)Z + public final fun getError ()Lstream/video/sfu/models/Error; + public fun hashCode ()I + public synthetic fun newBuilder ()Lcom/squareup/wire/Message$Builder; + public synthetic fun newBuilder ()Ljava/lang/Void; + public fun toString ()Ljava/lang/String; +} + +public final class stream/video/sfu/signal/SendStatsResponse$Companion { +} + public final class stream/video/sfu/signal/SetPublisherRequest : com/squareup/wire/Message { public static final field ADAPTER Lcom/squareup/wire/ProtoAdapter; public static final field Companion Lstream/video/sfu/signal/SetPublisherRequest$Companion; diff --git a/stream-video-android-core/build.gradle.kts b/stream-video-android-core/build.gradle.kts index 04588fdcb1..62a85a0137 100644 --- a/stream-video-android-core/build.gradle.kts +++ b/stream-video-android-core/build.gradle.kts @@ -74,7 +74,7 @@ android { buildConfigField("Integer", "STREAM_VIDEO_VERSION_MAJOR", "${Configuration.majorVersion}") buildConfigField("Integer", "STREAM_VIDEO_VERSION_MINOR", "${Configuration.minorVersion}") buildConfigField("Integer", "STREAM_VIDEO_VERSION_PATCH", "${Configuration.patchVersion}") - + buildConfigField("String", "STREAM_WEBRTC_VERSION", "\"${Configuration.streamWebRtcVersionName}\"") } buildFeatures { @@ -142,7 +142,7 @@ dependencies { implementation(libs.audioswitch) // video filter dependencies - implementation (libs.libyuv) + implementation(libs.libyuv) // androidx implementation(libs.androidx.core.ktx) diff --git a/stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/Call.kt b/stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/Call.kt index 5467d1530a..861bd42bbf 100644 --- a/stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/Call.kt +++ b/stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/Call.kt @@ -112,15 +112,15 @@ public class Call( val id: String, val user: User, ) { - private var statsGatheringJob: Job? = null private var location: String? = null - private var subscriptions = mutableSetOf() internal val clientImpl = client as StreamVideoImpl - private val logger by taggedLogger("Call") + private val logger by taggedLogger("Call") private val supervisorJob = SupervisorJob() + private var callStatsReportingJob: Job? = null + private val scope = CoroutineScope(clientImpl.scope.coroutineContext + supervisorJob) /** The call state contains all state such as the participant list, reactions etc */ @@ -435,18 +435,36 @@ public class Call( } monitor.start() + client.state.setActiveCall(this) + startCallStatsReporting(result.value.statsOptions.reportingIntervalMs.toLong()) - val statsGatheringInterval = 5000L + // listen to Signal WS + scope.launch { + session?.let { + it.sfuSocketState.collect { sfuSocketState -> + if (sfuSocketState is SocketState.DisconnectedPermanently) { + handleSignalChannelDisconnect(isRetry = false) + } + } + } + } + + timer.finish() + + return Success(value = session!!) + } - statsGatheringJob = scope.launch { - // wait a bit before we capture stats - delay(statsGatheringInterval) + private suspend fun startCallStatsReporting(reportingIntervalMs: Long = 10_000) { + callStatsReportingJob?.cancel() + callStatsReportingJob = scope.launch { + // Wait a bit before we start capturing stats + delay(reportingIntervalMs) while (isActive) { - delay(statsGatheringInterval) + delay(reportingIntervalMs) - val publisherStats = session?.publisher?.getStats() - val subscriberStats = session?.subscriber?.getStats() + val publisherStats = session?.getPublisherStats() + val subscriberStats = session?.getSubscriberStats() state.stats.updateFromRTCStats(publisherStats, isPublisher = true) state.stats.updateFromRTCStats(subscriberStats, isPublisher = false) state.stats.updateLocalStats() @@ -463,25 +481,10 @@ public class Call( if (statLatencyHistory.value.size > 20) { statLatencyHistory.value = statLatencyHistory.value.takeLast(20) } - } - } - - client.state.setActiveCall(this) - // listen to Signal WS - scope.launch { - session?.let { - it.sfuSocketState.collect { sfuSocketState -> - if (sfuSocketState is SocketState.DisconnectedPermanently) { - handleSignalChannelDisconnect(isRetry = false) - } - } + session?.sendCallStats(report) } } - - timer.finish() - - return Success(value = session!!) } private suspend fun handleSignalChannelDisconnect(isRetry: Boolean) { @@ -533,10 +536,6 @@ public class Call( } } - suspend fun sendStats(data: Map) { - return clientImpl.sendStats(type, id, data) - } - suspend fun switchSfu() { state._connection.value = RealtimeConnection.Migrating @@ -1001,7 +1000,7 @@ public class Call( monitor.stop() session?.cleanup() supervisorJob.cancel() - statsGatheringJob?.cancel() + callStatsReportingJob?.cancel() mediaManager.cleanup() session = null } diff --git a/stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/CallStats.kt b/stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/CallStats.kt index 1d8ec6bc21..ef66bfa5de 100644 --- a/stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/CallStats.kt +++ b/stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/CallStats.kt @@ -25,7 +25,6 @@ import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.SharingStarted import kotlinx.coroutines.flow.StateFlow import kotlinx.coroutines.flow.stateIn -import kotlinx.coroutines.launch import org.webrtc.CameraEnumerationAndroid import org.webrtc.RTCStats import stream.video.sfu.models.TrackType @@ -206,12 +205,6 @@ public class CallStats(val call: Call, val callScope: CoroutineScope) { statGroups.forEach { logger.i { "statgroup ${it.key}:${it.value}" } } - - scope.launch { - val toMap = mutableMapOf() - toMap["data"] = stats.origin.statsMap - call.sendStats(toMap) - } } fun updateLocalStats() { @@ -239,13 +232,5 @@ public class CallStats(val call: Call, val callScope: CoroutineScope) { deviceModel = deviceModel, ) _local.value = local - - scope.launch { - val toMap = mutableMapOf() - toMap["availableResolutions"] = availableResolutions - toMap["maxResolution"] = maxResolution ?: "" - toMap["displayingAt"] = displayingAt - call.sendStats(toMap) - } } } diff --git a/stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/CallStatsReport.kt b/stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/CallStatsReport.kt index cc183017e5..5e565a5868 100644 --- a/stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/CallStatsReport.kt +++ b/stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/CallStatsReport.kt @@ -18,6 +18,11 @@ package io.getstream.video.android.core import io.getstream.video.android.core.call.stats.model.RtcStatsReport import io.getstream.video.android.core.internal.InternalStreamVideoApi +import io.getstream.video.android.core.model.StreamPeerType +import org.json.JSONArray +import org.json.JSONException +import org.json.JSONObject +import org.webrtc.RTCStats @InternalStreamVideoApi data class CallStatsReport( @@ -26,3 +31,45 @@ data class CallStatsReport( val local: LocalStats?, val stateStats: CallStats, ) + +fun CallStatsReport.toJson(peerType: StreamPeerType): String { + val statsKey: String + val stats: Map? + + if (peerType == StreamPeerType.PUBLISHER) { + statsKey = "publisherStats" + stats = publisher?.origin?.statsMap + } else { + statsKey = "subscriberStats" + stats = subscriber?.origin?.statsMap + } + + return JSONObject().apply { + put( + statsKey, + JSONArray().also { array -> + stats?.forEach { statsEntry -> + array.put( + JSONObject().apply { + put( + statsEntry.key, + JSONObject().apply { + statsEntry.value.members.forEach { (key, value) -> + put( + key, + try { + JSONObject(value.toString()) + } catch (e: JSONException) { + value + }, + ) + } + }, + ) + }, + ) + } + }, + ) + }.toString(4) +} diff --git a/stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/StreamVideoImpl.kt b/stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/StreamVideoImpl.kt index a68f682155..ba0d8b9cc6 100644 --- a/stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/StreamVideoImpl.kt +++ b/stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/StreamVideoImpl.kt @@ -947,23 +947,6 @@ internal class StreamVideoImpl internal constructor( } } - suspend fun sendStats( - callType: String, - id: String, - data: Map, - ) { -// TODO: Change with new APIs -// val request = SendCallStatsRequest(data) - - try { - wrapAPICall { -// connectionModule.localApi.sendCallStats(callType, id, request) - } - } catch (e: Exception) { - logger.i { "Error sending stats $e" } - } - } - suspend fun sendReaction( callType: String, id: String, diff --git a/stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/call/RtcSession.kt b/stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/call/RtcSession.kt index 4167250847..813ebf71c8 100644 --- a/stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/call/RtcSession.kt +++ b/stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/call/RtcSession.kt @@ -22,7 +22,9 @@ import io.getstream.result.Result import io.getstream.result.Result.Failure import io.getstream.result.Result.Success import io.getstream.result.onSuccessSuspend +import io.getstream.video.android.core.BuildConfig import io.getstream.video.android.core.Call +import io.getstream.video.android.core.CallStatsReport import io.getstream.video.android.core.DeviceStatus import io.getstream.video.android.core.MediaManagerImpl import io.getstream.video.android.core.ScreenShareManager @@ -52,6 +54,7 @@ import io.getstream.video.android.core.model.StreamPeerType import io.getstream.video.android.core.model.VideoTrack import io.getstream.video.android.core.model.toPeerType import io.getstream.video.android.core.socket.SocketState +import io.getstream.video.android.core.toJson import io.getstream.video.android.core.utils.SdpSession import io.getstream.video.android.core.utils.buildAudioConstraints import io.getstream.video.android.core.utils.buildConnectionConfiguration @@ -111,6 +114,7 @@ import stream.video.sfu.signal.ICERestartResponse import stream.video.sfu.signal.ICETrickleResponse import stream.video.sfu.signal.SendAnswerRequest import stream.video.sfu.signal.SendAnswerResponse +import stream.video.sfu.signal.SendStatsRequest import stream.video.sfu.signal.SetPublisherRequest import stream.video.sfu.signal.SetPublisherResponse import stream.video.sfu.signal.TrackMuteState @@ -1532,6 +1536,28 @@ public class RtcSession internal constructor( return subscriber?.getStats() } + internal suspend fun sendCallStats(report: CallStatsReport) { + val result = wrapAPICall { + sfuConnectionModule.signalService.sendStats( + sendStatsRequest = SendStatsRequest( + session_id = sessionId, + sdk = "stream-android", + sdk_version = BuildConfig.STREAM_VIDEO_VERSION, + webrtc_version = BuildConfig.STREAM_WEBRTC_VERSION, + publisher_stats = report.toJson(StreamPeerType.PUBLISHER), + subscriber_stats = report.toJson(StreamPeerType.SUBSCRIBER), + ), + ) + } + + logger.d { + "sendStats: " + when (result) { + is Success -> "Success" + is Failure -> "Failure. Reason: ${result.value.message}" + } + } + } + /*** * Section, API endpoints */ diff --git a/stream-video-android-core/src/main/kotlin/org/openapitools/client/models/JoinCallResponse.kt b/stream-video-android-core/src/main/kotlin/org/openapitools/client/models/JoinCallResponse.kt index 5912671c52..085cfd64e7 100644 --- a/stream-video-android-core/src/main/kotlin/org/openapitools/client/models/JoinCallResponse.kt +++ b/stream-video-android-core/src/main/kotlin/org/openapitools/client/models/JoinCallResponse.kt @@ -27,6 +27,7 @@ import org.openapitools.client.models.CallResponse import org.openapitools.client.models.Credentials import org.openapitools.client.models.MemberResponse import org.openapitools.client.models.OwnCapability +import org.openapitools.client.models.StatsOptions @@ -48,6 +49,7 @@ import org.openapitools.client.infrastructure.Serializer * @param duration * @param members * @param ownCapabilities + * @param statsOptions * @param membership */ @@ -72,6 +74,9 @@ data class JoinCallResponse ( @Json(name = "own_capabilities") val ownCapabilities: kotlin.collections.List, + @Json(name = "stats_options") + val statsOptions: StatsOptions, + @Json(name = "membership") val membership: MemberResponse? = null diff --git a/stream-video-android-core/src/main/kotlin/org/openapitools/client/models/StatsOptions.kt b/stream-video-android-core/src/main/kotlin/org/openapitools/client/models/StatsOptions.kt new file mode 100644 index 0000000000..8251448592 --- /dev/null +++ b/stream-video-android-core/src/main/kotlin/org/openapitools/client/models/StatsOptions.kt @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2014-2024 Stream.io Inc. All rights reserved. + * + * Licensed under the Stream License; + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://github.com/GetStream/stream-video-android/blob/main/LICENSE + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + + + + + +import com.squareup.moshi.FromJson +import com.squareup.moshi.Json +import com.squareup.moshi.JsonAdapter +import com.squareup.moshi.JsonReader +import com.squareup.moshi.JsonWriter +import com.squareup.moshi.ToJson +import org.openapitools.client.infrastructure.Serializer + +/** + * + * + * @param reportingIntervalMs + */ + + +data class StatsOptions ( + + @Json(name = "reporting_interval_ms") + val reportingIntervalMs: kotlin.Int + +) diff --git a/stream-video-android-core/src/main/proto/video/sfu/event/events.pb.go b/stream-video-android-core/src/main/proto/video/sfu/event/events.pb.go index 7a6f9b5bfb..72eb95ac09 100644 --- a/stream-video-android-core/src/main/proto/video/sfu/event/events.pb.go +++ b/stream-video-android-core/src/main/proto/video/sfu/event/events.pb.go @@ -1829,6 +1829,9 @@ func (x *VideoMediaRequest) GetIdealFrameRate() int32 { return 0 } +// VideoLayerSetting is used to specify various parameters of a particular encoding in simulcast. +// The parameters are specified here - https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpEncodingParameters +// SDKs use these parameters sent from the server to dynamically adjust these parameters to save CPU, bandwidth type VideoLayerSetting struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1840,6 +1843,7 @@ type VideoLayerSetting struct { ScaleResolutionDownBy float32 `protobuf:"fixed32,4,opt,name=scale_resolution_down_by,json=scaleResolutionDownBy,proto3" json:"scale_resolution_down_by,omitempty"` Priority VideoLayerSetting_Priority `protobuf:"varint,5,opt,name=priority,proto3,enum=stream.video.sfu.event.VideoLayerSetting_Priority" json:"priority,omitempty"` Codec *models.Codec `protobuf:"bytes,6,opt,name=codec,proto3" json:"codec,omitempty"` + MaxFramerate uint32 `protobuf:"varint,7,opt,name=max_framerate,json=maxFramerate,proto3" json:"max_framerate,omitempty"` } func (x *VideoLayerSetting) Reset() { @@ -1916,6 +1920,13 @@ func (x *VideoLayerSetting) GetCodec() *models.Codec { return nil } +func (x *VideoLayerSetting) GetMaxFramerate() uint32 { + if x != nil { + return x.MaxFramerate + } + return 0 +} + type VideoSender struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2454,7 +2465,7 @@ var file_video_sfu_event_events_proto_rawDesc = []byte{ 0x0a, 0x69, 0x64, 0x65, 0x61, 0x6c, 0x57, 0x69, 0x64, 0x74, 0x68, 0x12, 0x28, 0x0a, 0x10, 0x69, 0x64, 0x65, 0x61, 0x6c, 0x5f, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x69, 0x64, 0x65, 0x61, 0x6c, 0x46, 0x72, 0x61, 0x6d, - 0x65, 0x52, 0x61, 0x74, 0x65, 0x22, 0x88, 0x03, 0x0a, 0x11, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x4c, + 0x65, 0x52, 0x61, 0x74, 0x65, 0x22, 0xad, 0x03, 0x0a, 0x11, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, @@ -2472,57 +2483,59 @@ var file_video_sfu_event_events_proto_rawDesc = []byte{ 0x79, 0x12, 0x34, 0x0a, 0x05, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x63, - 0x52, 0x05, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x22, 0x67, 0x0a, 0x08, 0x50, 0x72, 0x69, 0x6f, 0x72, - 0x69, 0x74, 0x79, 0x12, 0x1d, 0x0a, 0x19, 0x50, 0x52, 0x49, 0x4f, 0x52, 0x49, 0x54, 0x59, 0x5f, - 0x48, 0x49, 0x47, 0x48, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, - 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x50, 0x52, 0x49, 0x4f, 0x52, 0x49, 0x54, 0x59, 0x5f, 0x4c, - 0x4f, 0x57, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x50, 0x52, 0x49, 0x4f, 0x52, 0x49, 0x54, 0x59, - 0x5f, 0x4d, 0x45, 0x44, 0x49, 0x55, 0x4d, 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x52, 0x49, - 0x4f, 0x52, 0x49, 0x54, 0x59, 0x5f, 0x56, 0x45, 0x52, 0x59, 0x5f, 0x4c, 0x4f, 0x57, 0x10, 0x03, - 0x22, 0xd6, 0x01, 0x0a, 0x0b, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, - 0x12, 0x4e, 0x0a, 0x0d, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, - 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x2e, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x52, 0x0c, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x34, 0x0a, 0x05, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1e, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, - 0x66, 0x75, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x63, 0x52, - 0x05, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x12, 0x41, 0x0a, 0x06, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x73, - 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, - 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, - 0x56, 0x69, 0x64, 0x65, 0x6f, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, - 0x67, 0x52, 0x06, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x73, 0x22, 0xaa, 0x01, 0x0a, 0x14, 0x43, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x51, 0x75, 0x61, 0x6c, 0x69, - 0x74, 0x79, 0x12, 0x48, 0x0a, 0x0d, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x5f, 0x73, 0x65, 0x6e, 0x64, - 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x73, 0x74, 0x72, 0x65, - 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x65, 0x76, 0x65, - 0x6e, 0x74, 0x2e, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x0c, - 0x61, 0x75, 0x64, 0x69, 0x6f, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x73, 0x12, 0x48, 0x0a, 0x0d, - 0x76, 0x69, 0x64, 0x65, 0x6f, 0x5f, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, - 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x56, 0x69, 0x64, - 0x65, 0x6f, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x0c, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x53, - 0x65, 0x6e, 0x64, 0x65, 0x72, 0x73, 0x22, 0x79, 0x0a, 0x11, 0x43, 0x61, 0x6c, 0x6c, 0x47, 0x72, - 0x61, 0x6e, 0x74, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x4a, 0x0a, 0x0e, 0x63, - 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, - 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x43, 0x61, - 0x6c, 0x6c, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, - 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x22, 0x47, 0x0a, 0x06, 0x47, 0x6f, 0x41, 0x77, 0x61, 0x79, 0x12, 0x3d, 0x0a, 0x06, 0x72, - 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x73, 0x74, - 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x6d, - 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x47, 0x6f, 0x41, 0x77, 0x61, 0x79, 0x52, 0x65, 0x61, 0x73, - 0x6f, 0x6e, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x42, 0x64, 0x42, 0x0b, 0x53, 0x66, - 0x75, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x56, 0x31, 0x50, 0x01, 0x5a, 0x36, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x65, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, - 0x6d, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2f, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2f, 0x73, 0x66, 0x75, 0x2f, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0xaa, 0x02, 0x1a, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x56, 0x69, 0x64, - 0x65, 0x6f, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x66, 0x75, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x52, 0x05, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x61, 0x78, 0x5f, 0x66, + 0x72, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, + 0x6d, 0x61, 0x78, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x74, 0x65, 0x22, 0x67, 0x0a, 0x08, + 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x1d, 0x0a, 0x19, 0x50, 0x52, 0x49, 0x4f, + 0x52, 0x49, 0x54, 0x59, 0x5f, 0x48, 0x49, 0x47, 0x48, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, + 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x50, 0x52, 0x49, 0x4f, 0x52, + 0x49, 0x54, 0x59, 0x5f, 0x4c, 0x4f, 0x57, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x50, 0x52, 0x49, + 0x4f, 0x52, 0x49, 0x54, 0x59, 0x5f, 0x4d, 0x45, 0x44, 0x49, 0x55, 0x4d, 0x10, 0x02, 0x12, 0x15, + 0x0a, 0x11, 0x50, 0x52, 0x49, 0x4f, 0x52, 0x49, 0x54, 0x59, 0x5f, 0x56, 0x45, 0x52, 0x59, 0x5f, + 0x4c, 0x4f, 0x57, 0x10, 0x03, 0x22, 0xd6, 0x01, 0x0a, 0x0b, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x53, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x4e, 0x0a, 0x0d, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x5f, 0x72, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x73, + 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x4d, 0x65, 0x64, 0x69, 0x61, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0c, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x05, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, + 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x43, + 0x6f, 0x64, 0x65, 0x63, 0x52, 0x05, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x12, 0x41, 0x0a, 0x06, 0x6c, + 0x61, 0x79, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x73, 0x74, + 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x53, + 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x06, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x73, 0x22, 0xaa, + 0x01, 0x0a, 0x14, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, + 0x51, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x48, 0x0a, 0x0d, 0x61, 0x75, 0x64, 0x69, 0x6f, + 0x5f, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, + 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, + 0x75, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x53, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x52, 0x0c, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x73, 0x12, 0x48, 0x0a, 0x0d, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x5f, 0x73, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, + 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x65, 0x76, 0x65, 0x6e, + 0x74, 0x2e, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x0c, 0x76, + 0x69, 0x64, 0x65, 0x6f, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x73, 0x22, 0x79, 0x0a, 0x11, 0x43, + 0x61, 0x6c, 0x6c, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, + 0x12, 0x4a, 0x0a, 0x0e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x67, 0x72, 0x61, 0x6e, + 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, + 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x6d, 0x6f, 0x64, 0x65, + 0x6c, 0x73, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52, 0x0d, 0x63, + 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x12, 0x18, 0x0a, 0x07, + 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x47, 0x0a, 0x06, 0x47, 0x6f, 0x41, 0x77, 0x61, 0x79, + 0x12, 0x3d, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x25, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, + 0x73, 0x66, 0x75, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x47, 0x6f, 0x41, 0x77, 0x61, + 0x79, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x42, + 0x64, 0x42, 0x0b, 0x53, 0x66, 0x75, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x56, 0x31, 0x50, 0x01, + 0x5a, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x65, 0x74, + 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2f, 0x73, + 0x66, 0x75, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0xaa, 0x02, 0x1a, 0x53, 0x74, 0x72, 0x65, 0x61, + 0x6d, 0x2e, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x66, 0x75, 0x2e, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/stream-video-android-core/src/main/proto/video/sfu/event/events.proto b/stream-video-android-core/src/main/proto/video/sfu/event/events.proto index 75f321daf3..728983f7dc 100644 --- a/stream-video-android-core/src/main/proto/video/sfu/event/events.proto +++ b/stream-video-android-core/src/main/proto/video/sfu/event/events.proto @@ -235,6 +235,9 @@ message VideoMediaRequest { } +// VideoLayerSetting is used to specify various parameters of a particular encoding in simulcast. +// The parameters are specified here - https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpEncodingParameters +// SDKs use these parameters sent from the server to dynamically adjust these parameters to save CPU, bandwidth message VideoLayerSetting { string name = 1; bool active = 2; @@ -248,6 +251,7 @@ message VideoLayerSetting { } Priority priority = 5; models.Codec codec = 6; + uint32 max_framerate = 7; } message VideoSender { diff --git a/stream-video-android-core/src/main/proto/video/sfu/event/events_vtproto.pb.go b/stream-video-android-core/src/main/proto/video/sfu/event/events_vtproto.pb.go index 9a52cd0795..cd3c3263ff 100644 --- a/stream-video-android-core/src/main/proto/video/sfu/event/events_vtproto.pb.go +++ b/stream-video-android-core/src/main/proto/video/sfu/event/events_vtproto.pb.go @@ -1851,6 +1851,11 @@ func (m *VideoLayerSetting) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if m.MaxFramerate != 0 { + i = encodeVarint(dAtA, i, uint64(m.MaxFramerate)) + i-- + dAtA[i] = 0x38 + } if m.Codec != nil { if marshalto, ok := interface{}(m.Codec).(interface { MarshalToSizedBufferVT([]byte) (int, error) @@ -3005,6 +3010,9 @@ func (m *VideoLayerSetting) SizeVT() (n int) { } n += 1 + l + sov(uint64(l)) } + if m.MaxFramerate != 0 { + n += 1 + sov(uint64(m.MaxFramerate)) + } if m.unknownFields != nil { n += len(m.unknownFields) } @@ -6950,6 +6958,25 @@ func (m *VideoLayerSetting) UnmarshalVT(dAtA []byte) error { } } iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxFramerate", wireType) + } + m.MaxFramerate = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxFramerate |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skip(dAtA[iNdEx:]) diff --git a/stream-video-android-core/src/main/proto/video/sfu/signal_rpc/signal.pb.go b/stream-video-android-core/src/main/proto/video/sfu/signal_rpc/signal.pb.go index d30eaf98ac..72b928f491 100644 --- a/stream-video-android-core/src/main/proto/video/sfu/signal_rpc/signal.pb.go +++ b/stream-video-android-core/src/main/proto/video/sfu/signal_rpc/signal.pb.go @@ -21,6 +21,140 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +type SendStatsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` + SubscriberStats string `protobuf:"bytes,2,opt,name=subscriber_stats,json=subscriberStats,proto3" json:"subscriber_stats,omitempty"` + PublisherStats string `protobuf:"bytes,3,opt,name=publisher_stats,json=publisherStats,proto3" json:"publisher_stats,omitempty"` + WebrtcVersion string `protobuf:"bytes,4,opt,name=webrtc_version,json=webrtcVersion,proto3" json:"webrtc_version,omitempty"` + Sdk string `protobuf:"bytes,5,opt,name=sdk,proto3" json:"sdk,omitempty"` + SdkVersion string `protobuf:"bytes,6,opt,name=sdk_version,json=sdkVersion,proto3" json:"sdk_version,omitempty"` +} + +func (x *SendStatsRequest) Reset() { + *x = SendStatsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SendStatsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SendStatsRequest) ProtoMessage() {} + +func (x *SendStatsRequest) ProtoReflect() protoreflect.Message { + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SendStatsRequest.ProtoReflect.Descriptor instead. +func (*SendStatsRequest) Descriptor() ([]byte, []int) { + return file_video_sfu_signal_rpc_signal_proto_rawDescGZIP(), []int{0} +} + +func (x *SendStatsRequest) GetSessionId() string { + if x != nil { + return x.SessionId + } + return "" +} + +func (x *SendStatsRequest) GetSubscriberStats() string { + if x != nil { + return x.SubscriberStats + } + return "" +} + +func (x *SendStatsRequest) GetPublisherStats() string { + if x != nil { + return x.PublisherStats + } + return "" +} + +func (x *SendStatsRequest) GetWebrtcVersion() string { + if x != nil { + return x.WebrtcVersion + } + return "" +} + +func (x *SendStatsRequest) GetSdk() string { + if x != nil { + return x.Sdk + } + return "" +} + +func (x *SendStatsRequest) GetSdkVersion() string { + if x != nil { + return x.SdkVersion + } + return "" +} + +type SendStatsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Error *models.Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (x *SendStatsResponse) Reset() { + *x = SendStatsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SendStatsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SendStatsResponse) ProtoMessage() {} + +func (x *SendStatsResponse) ProtoReflect() protoreflect.Message { + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SendStatsResponse.ProtoReflect.Descriptor instead. +func (*SendStatsResponse) Descriptor() ([]byte, []int) { + return file_video_sfu_signal_rpc_signal_proto_rawDescGZIP(), []int{1} +} + +func (x *SendStatsResponse) GetError() *models.Error { + if x != nil { + return x.Error + } + return nil +} + type ICERestartRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -33,7 +167,7 @@ type ICERestartRequest struct { func (x *ICERestartRequest) Reset() { *x = ICERestartRequest{} if protoimpl.UnsafeEnabled { - mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[0] + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -46,7 +180,7 @@ func (x *ICERestartRequest) String() string { func (*ICERestartRequest) ProtoMessage() {} func (x *ICERestartRequest) ProtoReflect() protoreflect.Message { - mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[0] + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -59,7 +193,7 @@ func (x *ICERestartRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ICERestartRequest.ProtoReflect.Descriptor instead. func (*ICERestartRequest) Descriptor() ([]byte, []int) { - return file_video_sfu_signal_rpc_signal_proto_rawDescGZIP(), []int{0} + return file_video_sfu_signal_rpc_signal_proto_rawDescGZIP(), []int{2} } func (x *ICERestartRequest) GetSessionId() string { @@ -87,7 +221,7 @@ type ICERestartResponse struct { func (x *ICERestartResponse) Reset() { *x = ICERestartResponse{} if protoimpl.UnsafeEnabled { - mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[1] + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -100,7 +234,7 @@ func (x *ICERestartResponse) String() string { func (*ICERestartResponse) ProtoMessage() {} func (x *ICERestartResponse) ProtoReflect() protoreflect.Message { - mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[1] + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -113,7 +247,7 @@ func (x *ICERestartResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ICERestartResponse.ProtoReflect.Descriptor instead. func (*ICERestartResponse) Descriptor() ([]byte, []int) { - return file_video_sfu_signal_rpc_signal_proto_rawDescGZIP(), []int{1} + return file_video_sfu_signal_rpc_signal_proto_rawDescGZIP(), []int{3} } func (x *ICERestartResponse) GetError() *models.Error { @@ -135,7 +269,7 @@ type UpdateMuteStatesRequest struct { func (x *UpdateMuteStatesRequest) Reset() { *x = UpdateMuteStatesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[2] + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -148,7 +282,7 @@ func (x *UpdateMuteStatesRequest) String() string { func (*UpdateMuteStatesRequest) ProtoMessage() {} func (x *UpdateMuteStatesRequest) ProtoReflect() protoreflect.Message { - mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[2] + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -161,7 +295,7 @@ func (x *UpdateMuteStatesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateMuteStatesRequest.ProtoReflect.Descriptor instead. func (*UpdateMuteStatesRequest) Descriptor() ([]byte, []int) { - return file_video_sfu_signal_rpc_signal_proto_rawDescGZIP(), []int{2} + return file_video_sfu_signal_rpc_signal_proto_rawDescGZIP(), []int{4} } func (x *UpdateMuteStatesRequest) GetSessionId() string { @@ -189,7 +323,7 @@ type UpdateMuteStatesResponse struct { func (x *UpdateMuteStatesResponse) Reset() { *x = UpdateMuteStatesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[3] + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -202,7 +336,7 @@ func (x *UpdateMuteStatesResponse) String() string { func (*UpdateMuteStatesResponse) ProtoMessage() {} func (x *UpdateMuteStatesResponse) ProtoReflect() protoreflect.Message { - mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[3] + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -215,7 +349,7 @@ func (x *UpdateMuteStatesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateMuteStatesResponse.ProtoReflect.Descriptor instead. func (*UpdateMuteStatesResponse) Descriptor() ([]byte, []int) { - return file_video_sfu_signal_rpc_signal_proto_rawDescGZIP(), []int{3} + return file_video_sfu_signal_rpc_signal_proto_rawDescGZIP(), []int{5} } func (x *UpdateMuteStatesResponse) GetError() *models.Error { @@ -237,7 +371,7 @@ type TrackMuteState struct { func (x *TrackMuteState) Reset() { *x = TrackMuteState{} if protoimpl.UnsafeEnabled { - mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[4] + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -250,7 +384,7 @@ func (x *TrackMuteState) String() string { func (*TrackMuteState) ProtoMessage() {} func (x *TrackMuteState) ProtoReflect() protoreflect.Message { - mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[4] + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -263,7 +397,7 @@ func (x *TrackMuteState) ProtoReflect() protoreflect.Message { // Deprecated: Use TrackMuteState.ProtoReflect.Descriptor instead. func (*TrackMuteState) Descriptor() ([]byte, []int) { - return file_video_sfu_signal_rpc_signal_proto_rawDescGZIP(), []int{4} + return file_video_sfu_signal_rpc_signal_proto_rawDescGZIP(), []int{6} } func (x *TrackMuteState) GetTrackType() models.TrackType { @@ -291,7 +425,7 @@ type AudioMuteChanged struct { func (x *AudioMuteChanged) Reset() { *x = AudioMuteChanged{} if protoimpl.UnsafeEnabled { - mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[5] + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -304,7 +438,7 @@ func (x *AudioMuteChanged) String() string { func (*AudioMuteChanged) ProtoMessage() {} func (x *AudioMuteChanged) ProtoReflect() protoreflect.Message { - mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[5] + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -317,7 +451,7 @@ func (x *AudioMuteChanged) ProtoReflect() protoreflect.Message { // Deprecated: Use AudioMuteChanged.ProtoReflect.Descriptor instead. func (*AudioMuteChanged) Descriptor() ([]byte, []int) { - return file_video_sfu_signal_rpc_signal_proto_rawDescGZIP(), []int{5} + return file_video_sfu_signal_rpc_signal_proto_rawDescGZIP(), []int{7} } func (x *AudioMuteChanged) GetMuted() bool { @@ -338,7 +472,7 @@ type VideoMuteChanged struct { func (x *VideoMuteChanged) Reset() { *x = VideoMuteChanged{} if protoimpl.UnsafeEnabled { - mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[6] + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -351,7 +485,7 @@ func (x *VideoMuteChanged) String() string { func (*VideoMuteChanged) ProtoMessage() {} func (x *VideoMuteChanged) ProtoReflect() protoreflect.Message { - mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[6] + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -364,7 +498,7 @@ func (x *VideoMuteChanged) ProtoReflect() protoreflect.Message { // Deprecated: Use VideoMuteChanged.ProtoReflect.Descriptor instead. func (*VideoMuteChanged) Descriptor() ([]byte, []int) { - return file_video_sfu_signal_rpc_signal_proto_rawDescGZIP(), []int{6} + return file_video_sfu_signal_rpc_signal_proto_rawDescGZIP(), []int{8} } func (x *VideoMuteChanged) GetMuted() bool { @@ -386,7 +520,7 @@ type UpdateSubscriptionsRequest struct { func (x *UpdateSubscriptionsRequest) Reset() { *x = UpdateSubscriptionsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[7] + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -399,7 +533,7 @@ func (x *UpdateSubscriptionsRequest) String() string { func (*UpdateSubscriptionsRequest) ProtoMessage() {} func (x *UpdateSubscriptionsRequest) ProtoReflect() protoreflect.Message { - mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[7] + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -412,7 +546,7 @@ func (x *UpdateSubscriptionsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateSubscriptionsRequest.ProtoReflect.Descriptor instead. func (*UpdateSubscriptionsRequest) Descriptor() ([]byte, []int) { - return file_video_sfu_signal_rpc_signal_proto_rawDescGZIP(), []int{7} + return file_video_sfu_signal_rpc_signal_proto_rawDescGZIP(), []int{9} } func (x *UpdateSubscriptionsRequest) GetSessionId() string { @@ -440,7 +574,7 @@ type UpdateSubscriptionsResponse struct { func (x *UpdateSubscriptionsResponse) Reset() { *x = UpdateSubscriptionsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[8] + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -453,7 +587,7 @@ func (x *UpdateSubscriptionsResponse) String() string { func (*UpdateSubscriptionsResponse) ProtoMessage() {} func (x *UpdateSubscriptionsResponse) ProtoReflect() protoreflect.Message { - mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[8] + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -466,7 +600,7 @@ func (x *UpdateSubscriptionsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateSubscriptionsResponse.ProtoReflect.Descriptor instead. func (*UpdateSubscriptionsResponse) Descriptor() ([]byte, []int) { - return file_video_sfu_signal_rpc_signal_proto_rawDescGZIP(), []int{8} + return file_video_sfu_signal_rpc_signal_proto_rawDescGZIP(), []int{10} } func (x *UpdateSubscriptionsResponse) GetError() *models.Error { @@ -490,7 +624,7 @@ type TrackSubscriptionDetails struct { func (x *TrackSubscriptionDetails) Reset() { *x = TrackSubscriptionDetails{} if protoimpl.UnsafeEnabled { - mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[9] + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -503,7 +637,7 @@ func (x *TrackSubscriptionDetails) String() string { func (*TrackSubscriptionDetails) ProtoMessage() {} func (x *TrackSubscriptionDetails) ProtoReflect() protoreflect.Message { - mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[9] + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -516,7 +650,7 @@ func (x *TrackSubscriptionDetails) ProtoReflect() protoreflect.Message { // Deprecated: Use TrackSubscriptionDetails.ProtoReflect.Descriptor instead. func (*TrackSubscriptionDetails) Descriptor() ([]byte, []int) { - return file_video_sfu_signal_rpc_signal_proto_rawDescGZIP(), []int{9} + return file_video_sfu_signal_rpc_signal_proto_rawDescGZIP(), []int{11} } func (x *TrackSubscriptionDetails) GetUserId() string { @@ -560,7 +694,7 @@ type SendAnswerRequest struct { func (x *SendAnswerRequest) Reset() { *x = SendAnswerRequest{} if protoimpl.UnsafeEnabled { - mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[10] + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -573,7 +707,7 @@ func (x *SendAnswerRequest) String() string { func (*SendAnswerRequest) ProtoMessage() {} func (x *SendAnswerRequest) ProtoReflect() protoreflect.Message { - mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[10] + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -586,7 +720,7 @@ func (x *SendAnswerRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SendAnswerRequest.ProtoReflect.Descriptor instead. func (*SendAnswerRequest) Descriptor() ([]byte, []int) { - return file_video_sfu_signal_rpc_signal_proto_rawDescGZIP(), []int{10} + return file_video_sfu_signal_rpc_signal_proto_rawDescGZIP(), []int{12} } func (x *SendAnswerRequest) GetPeerType() models.PeerType { @@ -621,7 +755,7 @@ type SendAnswerResponse struct { func (x *SendAnswerResponse) Reset() { *x = SendAnswerResponse{} if protoimpl.UnsafeEnabled { - mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[11] + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -634,7 +768,7 @@ func (x *SendAnswerResponse) String() string { func (*SendAnswerResponse) ProtoMessage() {} func (x *SendAnswerResponse) ProtoReflect() protoreflect.Message { - mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[11] + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -647,7 +781,7 @@ func (x *SendAnswerResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SendAnswerResponse.ProtoReflect.Descriptor instead. func (*SendAnswerResponse) Descriptor() ([]byte, []int) { - return file_video_sfu_signal_rpc_signal_proto_rawDescGZIP(), []int{11} + return file_video_sfu_signal_rpc_signal_proto_rawDescGZIP(), []int{13} } func (x *SendAnswerResponse) GetError() *models.Error { @@ -668,7 +802,7 @@ type ICETrickleResponse struct { func (x *ICETrickleResponse) Reset() { *x = ICETrickleResponse{} if protoimpl.UnsafeEnabled { - mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[12] + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -681,7 +815,7 @@ func (x *ICETrickleResponse) String() string { func (*ICETrickleResponse) ProtoMessage() {} func (x *ICETrickleResponse) ProtoReflect() protoreflect.Message { - mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[12] + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -694,7 +828,7 @@ func (x *ICETrickleResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ICETrickleResponse.ProtoReflect.Descriptor instead. func (*ICETrickleResponse) Descriptor() ([]byte, []int) { - return file_video_sfu_signal_rpc_signal_proto_rawDescGZIP(), []int{12} + return file_video_sfu_signal_rpc_signal_proto_rawDescGZIP(), []int{14} } func (x *ICETrickleResponse) GetError() *models.Error { @@ -718,7 +852,7 @@ type SetPublisherRequest struct { func (x *SetPublisherRequest) Reset() { *x = SetPublisherRequest{} if protoimpl.UnsafeEnabled { - mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[13] + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -731,7 +865,7 @@ func (x *SetPublisherRequest) String() string { func (*SetPublisherRequest) ProtoMessage() {} func (x *SetPublisherRequest) ProtoReflect() protoreflect.Message { - mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[13] + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -744,7 +878,7 @@ func (x *SetPublisherRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SetPublisherRequest.ProtoReflect.Descriptor instead. func (*SetPublisherRequest) Descriptor() ([]byte, []int) { - return file_video_sfu_signal_rpc_signal_proto_rawDescGZIP(), []int{13} + return file_video_sfu_signal_rpc_signal_proto_rawDescGZIP(), []int{15} } func (x *SetPublisherRequest) GetSdp() string { @@ -783,7 +917,7 @@ type SetPublisherResponse struct { func (x *SetPublisherResponse) Reset() { *x = SetPublisherResponse{} if protoimpl.UnsafeEnabled { - mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[14] + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -796,7 +930,7 @@ func (x *SetPublisherResponse) String() string { func (*SetPublisherResponse) ProtoMessage() {} func (x *SetPublisherResponse) ProtoReflect() protoreflect.Message { - mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[14] + mi := &file_video_sfu_signal_rpc_signal_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -809,7 +943,7 @@ func (x *SetPublisherResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SetPublisherResponse.ProtoReflect.Descriptor instead. func (*SetPublisherResponse) Descriptor() ([]byte, []int) { - return file_video_sfu_signal_rpc_signal_proto_rawDescGZIP(), []int{14} + return file_video_sfu_signal_rpc_signal_proto_rawDescGZIP(), []int{16} } func (x *SetPublisherResponse) GetSdp() string { @@ -848,158 +982,183 @@ var file_video_sfu_signal_rpc_signal_proto_rawDesc = []byte{ 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x1a, 0x1d, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2f, 0x73, 0x66, 0x75, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, - 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x72, 0x0a, 0x11, 0x49, - 0x43, 0x45, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdf, 0x01, 0x0a, 0x10, + 0x53, 0x65, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, - 0x3e, 0x0a, 0x09, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, - 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x50, 0x65, 0x65, - 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x70, 0x65, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x22, - 0x4a, 0x0a, 0x12, 0x49, 0x43, 0x45, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, - 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x45, - 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x82, 0x01, 0x0a, 0x17, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x75, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x48, 0x0a, 0x0b, 0x6d, 0x75, 0x74, 0x65, 0x5f, 0x73, - 0x74, 0x61, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x73, 0x74, - 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x73, - 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x6b, 0x4d, 0x75, 0x74, 0x65, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x52, 0x0a, 0x6d, 0x75, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x73, - 0x22, 0x50, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x75, 0x74, 0x65, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x05, - 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x73, 0x74, - 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x6d, - 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, - 0x6f, 0x72, 0x22, 0x69, 0x0a, 0x0e, 0x54, 0x72, 0x61, 0x63, 0x6b, 0x4d, 0x75, 0x74, 0x65, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x12, 0x41, 0x0a, 0x0a, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x5f, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, - 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x6d, 0x6f, 0x64, 0x65, - 0x6c, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x74, 0x72, - 0x61, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x75, 0x74, 0x65, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x6d, 0x75, 0x74, 0x65, 0x64, 0x22, 0x28, 0x0a, - 0x10, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x4d, 0x75, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, - 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x75, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x05, 0x6d, 0x75, 0x74, 0x65, 0x64, 0x22, 0x28, 0x0a, 0x10, 0x56, 0x69, 0x64, 0x65, 0x6f, - 0x4d, 0x75, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6d, - 0x75, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x6d, 0x75, 0x74, 0x65, - 0x64, 0x22, 0x86, 0x01, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x75, 0x62, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, - 0x49, 0x0a, 0x06, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x31, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, - 0x66, 0x75, 0x2e, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x6b, 0x53, - 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, - 0x6c, 0x73, 0x52, 0x06, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x73, 0x22, 0x53, 0x0a, 0x1b, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x29, 0x0a, 0x10, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x72, 0x5f, 0x73, 0x74, + 0x61, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x73, 0x75, 0x62, 0x73, 0x63, + 0x72, 0x69, 0x62, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x75, + 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x53, 0x74, + 0x61, 0x74, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x77, 0x65, 0x62, 0x72, 0x74, 0x63, 0x5f, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x77, 0x65, 0x62, + 0x72, 0x74, 0x63, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x64, + 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x64, 0x6b, 0x12, 0x1f, 0x0a, 0x0b, + 0x73, 0x64, 0x6b, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x73, 0x64, 0x6b, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x49, 0x0a, + 0x11, 0x53, 0x65, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x34, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1e, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, + 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x45, 0x72, 0x72, 0x6f, + 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x72, 0x0a, 0x11, 0x49, 0x43, 0x45, 0x52, + 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, + 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x3e, 0x0a, 0x09, + 0x70, 0x65, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x21, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, + 0x66, 0x75, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x08, 0x70, 0x65, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x22, 0x4a, 0x0a, 0x12, + 0x49, 0x43, 0x45, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x34, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1e, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, + 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x45, 0x72, 0x72, 0x6f, + 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x82, 0x01, 0x0a, 0x17, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x4d, 0x75, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x49, 0x64, 0x12, 0x48, 0x0a, 0x0b, 0x6d, 0x75, 0x74, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, + 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x73, 0x69, 0x67, 0x6e, + 0x61, 0x6c, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x6b, 0x4d, 0x75, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x52, 0x0a, 0x6d, 0x75, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x73, 0x22, 0x50, 0x0a, + 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x75, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, - 0xdc, 0x01, 0x0a, 0x18, 0x54, 0x72, 0x61, 0x63, 0x6b, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x17, 0x0a, 0x07, - 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, - 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x41, 0x0a, 0x0a, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x5f, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, - 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x6d, 0x6f, 0x64, 0x65, - 0x6c, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x74, 0x72, - 0x61, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x45, 0x0a, 0x09, 0x64, 0x69, 0x6d, 0x65, 0x6e, - 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x73, 0x74, 0x72, - 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x6d, 0x6f, - 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x44, 0x69, 0x6d, 0x65, 0x6e, 0x73, - 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x84, - 0x01, 0x0a, 0x11, 0x53, 0x65, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x09, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, - 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, - 0x73, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x70, 0x65, 0x65, 0x72, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x64, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x73, 0x64, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x4a, 0x0a, 0x12, 0x53, 0x65, 0x6e, 0x64, 0x41, 0x6e, 0x73, - 0x77, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x05, 0x65, - 0x72, 0x72, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x73, 0x74, 0x72, - 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x6d, 0x6f, - 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, - 0x72, 0x22, 0x4a, 0x0a, 0x12, 0x49, 0x43, 0x45, 0x54, 0x72, 0x69, 0x63, 0x6b, 0x6c, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, - 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, - 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x82, 0x01, - 0x0a, 0x13, 0x53, 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x64, 0x70, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x73, 0x64, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x3a, 0x0a, 0x06, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x73, - 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, - 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, - 0x2e, 0x54, 0x72, 0x61, 0x63, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x74, 0x72, 0x61, 0x63, - 0x6b, 0x73, 0x22, 0x9e, 0x01, 0x0a, 0x14, 0x53, 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, - 0x68, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, - 0x64, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x64, 0x70, 0x12, 0x1d, 0x0a, + 0x69, 0x0a, 0x0e, 0x54, 0x72, 0x61, 0x63, 0x6b, 0x4d, 0x75, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x12, 0x41, 0x0a, 0x0a, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, + 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, + 0x54, 0x72, 0x61, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x74, 0x72, 0x61, 0x63, 0x6b, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x75, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x05, 0x6d, 0x75, 0x74, 0x65, 0x64, 0x22, 0x28, 0x0a, 0x10, 0x41, 0x75, + 0x64, 0x69, 0x6f, 0x4d, 0x75, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x12, 0x14, + 0x0a, 0x05, 0x6d, 0x75, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x6d, + 0x75, 0x74, 0x65, 0x64, 0x22, 0x28, 0x0a, 0x10, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x4d, 0x75, 0x74, + 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x75, 0x74, 0x65, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x6d, 0x75, 0x74, 0x65, 0x64, 0x22, 0x86, + 0x01, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, - 0x69, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x0a, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x34, 0x0a, - 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x73, + 0x09, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x49, 0x0a, 0x06, + 0x74, 0x72, 0x61, 0x63, 0x6b, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, - 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, - 0x72, 0x6f, 0x72, 0x32, 0xa5, 0x05, 0x0a, 0x0c, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x53, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x12, 0x6b, 0x0a, 0x0c, 0x53, 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, - 0x73, 0x68, 0x65, 0x72, 0x12, 0x2c, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, - 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x53, + 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x6b, 0x53, 0x75, 0x62, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, + 0x06, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x73, 0x22, 0x53, 0x0a, 0x1b, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, + 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, + 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0xdc, 0x01, 0x0a, + 0x18, 0x54, 0x72, 0x61, 0x63, 0x6b, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, + 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, + 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, + 0x64, 0x12, 0x41, 0x0a, 0x0a, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, + 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, + 0x54, 0x72, 0x61, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x74, 0x72, 0x61, 0x63, 0x6b, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x45, 0x0a, 0x09, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, + 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, + 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, + 0x73, 0x2e, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x44, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, + 0x52, 0x09, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x84, 0x01, 0x0a, 0x11, + 0x53, 0x65, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x3e, 0x0a, 0x09, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, + 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x50, + 0x65, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x70, 0x65, 0x65, 0x72, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x64, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x73, 0x64, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, + 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x49, 0x64, 0x22, 0x4a, 0x0a, 0x12, 0x53, 0x65, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, + 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, + 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, + 0x73, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x4a, + 0x0a, 0x12, 0x49, 0x43, 0x45, 0x54, 0x72, 0x69, 0x63, 0x6b, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, + 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x45, 0x72, + 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x82, 0x01, 0x0a, 0x13, 0x53, 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, - 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x53, 0x65, 0x74, - 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x65, 0x0a, 0x0a, 0x53, 0x65, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x12, + 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x64, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x73, 0x64, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x49, 0x64, 0x12, 0x3a, 0x0a, 0x06, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x73, 0x18, 0x03, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, + 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x54, 0x72, + 0x61, 0x63, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x73, 0x22, + 0x9e, 0x01, 0x0a, 0x14, 0x53, 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x64, 0x70, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x64, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x63, 0x65, + 0x5f, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, + 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x34, 0x0a, 0x05, 0x65, 0x72, + 0x72, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x73, 0x74, 0x72, 0x65, + 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x6d, 0x6f, 0x64, + 0x65, 0x6c, 0x73, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, + 0x32, 0x89, 0x06, 0x0a, 0x0c, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x12, 0x6b, 0x0a, 0x0c, 0x53, 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, + 0x72, 0x12, 0x2c, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, + 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x53, 0x65, 0x74, 0x50, + 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x2d, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, + 0x66, 0x75, 0x2e, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x53, 0x65, 0x74, 0x50, 0x75, 0x62, + 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, + 0x0a, 0x0a, 0x53, 0x65, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x12, 0x2a, 0x2e, 0x73, + 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, + 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, + 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, + 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x73, 0x69, 0x67, 0x6e, + 0x61, 0x6c, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x0a, 0x49, 0x63, 0x65, 0x54, 0x72, 0x69, 0x63, + 0x6b, 0x6c, 0x65, 0x12, 0x23, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, + 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x49, 0x43, + 0x45, 0x54, 0x72, 0x69, 0x63, 0x6b, 0x6c, 0x65, 0x1a, 0x2b, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, + 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x73, 0x69, 0x67, 0x6e, + 0x61, 0x6c, 0x2e, 0x49, 0x43, 0x45, 0x54, 0x72, 0x69, 0x63, 0x6b, 0x6c, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x80, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x33, 0x2e, + 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, + 0x2e, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x75, + 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, + 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x4d, 0x75, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x73, 0x12, 0x30, 0x2e, 0x73, + 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, + 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x75, 0x74, + 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, + 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, + 0x75, 0x2e, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, + 0x75, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x65, 0x0a, 0x0a, 0x49, 0x63, 0x65, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x2a, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, - 0x66, 0x75, 0x2e, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x41, 0x6e, - 0x73, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x73, 0x74, - 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x73, - 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x0a, 0x49, 0x63, 0x65, 0x54, - 0x72, 0x69, 0x63, 0x6b, 0x6c, 0x65, 0x12, 0x23, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, - 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, - 0x2e, 0x49, 0x43, 0x45, 0x54, 0x72, 0x69, 0x63, 0x6b, 0x6c, 0x65, 0x1a, 0x2b, 0x2e, 0x73, 0x74, + 0x66, 0x75, 0x2e, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x49, 0x43, 0x45, 0x52, 0x65, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x73, - 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x49, 0x43, 0x45, 0x54, 0x72, 0x69, 0x63, 0x6b, 0x6c, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x80, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x12, 0x33, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, - 0x73, 0x66, 0x75, 0x2e, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, + 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x49, 0x43, 0x45, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x09, 0x53, 0x65, 0x6e, 0x64, + 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x29, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, 0x10, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x75, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x73, 0x12, - 0x30, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, - 0x66, 0x75, 0x2e, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x4d, 0x75, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x31, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, - 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x4d, 0x75, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x0a, 0x49, 0x63, 0x65, 0x52, 0x65, 0x73, 0x74, 0x61, - 0x72, 0x74, 0x12, 0x2a, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, - 0x6f, 0x2e, 0x73, 0x66, 0x75, 0x2e, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x49, 0x43, 0x45, - 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, - 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x73, 0x66, - 0x75, 0x2e, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x49, 0x43, 0x45, 0x52, 0x65, 0x73, 0x74, - 0x61, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x69, 0x42, 0x0b, 0x53, - 0x66, 0x75, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x56, 0x31, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x65, 0x74, 0x53, 0x74, 0x72, 0x65, - 0x61, 0x6d, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2f, 0x73, 0x66, 0x75, 0x2f, 0x73, - 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x5f, 0x72, 0x70, 0x63, 0xaa, 0x02, 0x1a, 0x53, 0x74, 0x72, 0x65, - 0x61, 0x6d, 0x2e, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x66, 0x75, 0x2e, - 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x53, 0x65, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x2a, 0x2e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2e, + 0x73, 0x66, 0x75, 0x2e, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x53, + 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x69, 0x42, 0x0b, + 0x53, 0x66, 0x75, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x56, 0x31, 0x50, 0x01, 0x5a, 0x3b, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x65, 0x74, 0x53, 0x74, 0x72, + 0x65, 0x61, 0x6d, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x2f, 0x73, 0x66, 0x75, 0x2f, + 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x5f, 0x72, 0x70, 0x63, 0xaa, 0x02, 0x1a, 0x53, 0x74, 0x72, + 0x65, 0x61, 0x6d, 0x2e, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x66, 0x75, + 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1014,62 +1173,67 @@ func file_video_sfu_signal_rpc_signal_proto_rawDescGZIP() []byte { return file_video_sfu_signal_rpc_signal_proto_rawDescData } -var file_video_sfu_signal_rpc_signal_proto_msgTypes = make([]protoimpl.MessageInfo, 15) +var file_video_sfu_signal_rpc_signal_proto_msgTypes = make([]protoimpl.MessageInfo, 17) var file_video_sfu_signal_rpc_signal_proto_goTypes = []interface{}{ - (*ICERestartRequest)(nil), // 0: stream.video.sfu.signal.ICERestartRequest - (*ICERestartResponse)(nil), // 1: stream.video.sfu.signal.ICERestartResponse - (*UpdateMuteStatesRequest)(nil), // 2: stream.video.sfu.signal.UpdateMuteStatesRequest - (*UpdateMuteStatesResponse)(nil), // 3: stream.video.sfu.signal.UpdateMuteStatesResponse - (*TrackMuteState)(nil), // 4: stream.video.sfu.signal.TrackMuteState - (*AudioMuteChanged)(nil), // 5: stream.video.sfu.signal.AudioMuteChanged - (*VideoMuteChanged)(nil), // 6: stream.video.sfu.signal.VideoMuteChanged - (*UpdateSubscriptionsRequest)(nil), // 7: stream.video.sfu.signal.UpdateSubscriptionsRequest - (*UpdateSubscriptionsResponse)(nil), // 8: stream.video.sfu.signal.UpdateSubscriptionsResponse - (*TrackSubscriptionDetails)(nil), // 9: stream.video.sfu.signal.TrackSubscriptionDetails - (*SendAnswerRequest)(nil), // 10: stream.video.sfu.signal.SendAnswerRequest - (*SendAnswerResponse)(nil), // 11: stream.video.sfu.signal.SendAnswerResponse - (*ICETrickleResponse)(nil), // 12: stream.video.sfu.signal.ICETrickleResponse - (*SetPublisherRequest)(nil), // 13: stream.video.sfu.signal.SetPublisherRequest - (*SetPublisherResponse)(nil), // 14: stream.video.sfu.signal.SetPublisherResponse - (models.PeerType)(0), // 15: stream.video.sfu.models.PeerType - (*models.Error)(nil), // 16: stream.video.sfu.models.Error - (models.TrackType)(0), // 17: stream.video.sfu.models.TrackType - (*models.VideoDimension)(nil), // 18: stream.video.sfu.models.VideoDimension - (*models.TrackInfo)(nil), // 19: stream.video.sfu.models.TrackInfo - (*models.ICETrickle)(nil), // 20: stream.video.sfu.models.ICETrickle + (*SendStatsRequest)(nil), // 0: stream.video.sfu.signal.SendStatsRequest + (*SendStatsResponse)(nil), // 1: stream.video.sfu.signal.SendStatsResponse + (*ICERestartRequest)(nil), // 2: stream.video.sfu.signal.ICERestartRequest + (*ICERestartResponse)(nil), // 3: stream.video.sfu.signal.ICERestartResponse + (*UpdateMuteStatesRequest)(nil), // 4: stream.video.sfu.signal.UpdateMuteStatesRequest + (*UpdateMuteStatesResponse)(nil), // 5: stream.video.sfu.signal.UpdateMuteStatesResponse + (*TrackMuteState)(nil), // 6: stream.video.sfu.signal.TrackMuteState + (*AudioMuteChanged)(nil), // 7: stream.video.sfu.signal.AudioMuteChanged + (*VideoMuteChanged)(nil), // 8: stream.video.sfu.signal.VideoMuteChanged + (*UpdateSubscriptionsRequest)(nil), // 9: stream.video.sfu.signal.UpdateSubscriptionsRequest + (*UpdateSubscriptionsResponse)(nil), // 10: stream.video.sfu.signal.UpdateSubscriptionsResponse + (*TrackSubscriptionDetails)(nil), // 11: stream.video.sfu.signal.TrackSubscriptionDetails + (*SendAnswerRequest)(nil), // 12: stream.video.sfu.signal.SendAnswerRequest + (*SendAnswerResponse)(nil), // 13: stream.video.sfu.signal.SendAnswerResponse + (*ICETrickleResponse)(nil), // 14: stream.video.sfu.signal.ICETrickleResponse + (*SetPublisherRequest)(nil), // 15: stream.video.sfu.signal.SetPublisherRequest + (*SetPublisherResponse)(nil), // 16: stream.video.sfu.signal.SetPublisherResponse + (*models.Error)(nil), // 17: stream.video.sfu.models.Error + (models.PeerType)(0), // 18: stream.video.sfu.models.PeerType + (models.TrackType)(0), // 19: stream.video.sfu.models.TrackType + (*models.VideoDimension)(nil), // 20: stream.video.sfu.models.VideoDimension + (*models.TrackInfo)(nil), // 21: stream.video.sfu.models.TrackInfo + (*models.ICETrickle)(nil), // 22: stream.video.sfu.models.ICETrickle } var file_video_sfu_signal_rpc_signal_proto_depIdxs = []int32{ - 15, // 0: stream.video.sfu.signal.ICERestartRequest.peer_type:type_name -> stream.video.sfu.models.PeerType - 16, // 1: stream.video.sfu.signal.ICERestartResponse.error:type_name -> stream.video.sfu.models.Error - 4, // 2: stream.video.sfu.signal.UpdateMuteStatesRequest.mute_states:type_name -> stream.video.sfu.signal.TrackMuteState - 16, // 3: stream.video.sfu.signal.UpdateMuteStatesResponse.error:type_name -> stream.video.sfu.models.Error - 17, // 4: stream.video.sfu.signal.TrackMuteState.track_type:type_name -> stream.video.sfu.models.TrackType - 9, // 5: stream.video.sfu.signal.UpdateSubscriptionsRequest.tracks:type_name -> stream.video.sfu.signal.TrackSubscriptionDetails - 16, // 6: stream.video.sfu.signal.UpdateSubscriptionsResponse.error:type_name -> stream.video.sfu.models.Error - 17, // 7: stream.video.sfu.signal.TrackSubscriptionDetails.track_type:type_name -> stream.video.sfu.models.TrackType - 18, // 8: stream.video.sfu.signal.TrackSubscriptionDetails.dimension:type_name -> stream.video.sfu.models.VideoDimension - 15, // 9: stream.video.sfu.signal.SendAnswerRequest.peer_type:type_name -> stream.video.sfu.models.PeerType - 16, // 10: stream.video.sfu.signal.SendAnswerResponse.error:type_name -> stream.video.sfu.models.Error - 16, // 11: stream.video.sfu.signal.ICETrickleResponse.error:type_name -> stream.video.sfu.models.Error - 19, // 12: stream.video.sfu.signal.SetPublisherRequest.tracks:type_name -> stream.video.sfu.models.TrackInfo - 16, // 13: stream.video.sfu.signal.SetPublisherResponse.error:type_name -> stream.video.sfu.models.Error - 13, // 14: stream.video.sfu.signal.SignalServer.SetPublisher:input_type -> stream.video.sfu.signal.SetPublisherRequest - 10, // 15: stream.video.sfu.signal.SignalServer.SendAnswer:input_type -> stream.video.sfu.signal.SendAnswerRequest - 20, // 16: stream.video.sfu.signal.SignalServer.IceTrickle:input_type -> stream.video.sfu.models.ICETrickle - 7, // 17: stream.video.sfu.signal.SignalServer.UpdateSubscriptions:input_type -> stream.video.sfu.signal.UpdateSubscriptionsRequest - 2, // 18: stream.video.sfu.signal.SignalServer.UpdateMuteStates:input_type -> stream.video.sfu.signal.UpdateMuteStatesRequest - 0, // 19: stream.video.sfu.signal.SignalServer.IceRestart:input_type -> stream.video.sfu.signal.ICERestartRequest - 14, // 20: stream.video.sfu.signal.SignalServer.SetPublisher:output_type -> stream.video.sfu.signal.SetPublisherResponse - 11, // 21: stream.video.sfu.signal.SignalServer.SendAnswer:output_type -> stream.video.sfu.signal.SendAnswerResponse - 12, // 22: stream.video.sfu.signal.SignalServer.IceTrickle:output_type -> stream.video.sfu.signal.ICETrickleResponse - 8, // 23: stream.video.sfu.signal.SignalServer.UpdateSubscriptions:output_type -> stream.video.sfu.signal.UpdateSubscriptionsResponse - 3, // 24: stream.video.sfu.signal.SignalServer.UpdateMuteStates:output_type -> stream.video.sfu.signal.UpdateMuteStatesResponse - 1, // 25: stream.video.sfu.signal.SignalServer.IceRestart:output_type -> stream.video.sfu.signal.ICERestartResponse - 20, // [20:26] is the sub-list for method output_type - 14, // [14:20] is the sub-list for method input_type - 14, // [14:14] is the sub-list for extension type_name - 14, // [14:14] is the sub-list for extension extendee - 0, // [0:14] is the sub-list for field type_name + 17, // 0: stream.video.sfu.signal.SendStatsResponse.error:type_name -> stream.video.sfu.models.Error + 18, // 1: stream.video.sfu.signal.ICERestartRequest.peer_type:type_name -> stream.video.sfu.models.PeerType + 17, // 2: stream.video.sfu.signal.ICERestartResponse.error:type_name -> stream.video.sfu.models.Error + 6, // 3: stream.video.sfu.signal.UpdateMuteStatesRequest.mute_states:type_name -> stream.video.sfu.signal.TrackMuteState + 17, // 4: stream.video.sfu.signal.UpdateMuteStatesResponse.error:type_name -> stream.video.sfu.models.Error + 19, // 5: stream.video.sfu.signal.TrackMuteState.track_type:type_name -> stream.video.sfu.models.TrackType + 11, // 6: stream.video.sfu.signal.UpdateSubscriptionsRequest.tracks:type_name -> stream.video.sfu.signal.TrackSubscriptionDetails + 17, // 7: stream.video.sfu.signal.UpdateSubscriptionsResponse.error:type_name -> stream.video.sfu.models.Error + 19, // 8: stream.video.sfu.signal.TrackSubscriptionDetails.track_type:type_name -> stream.video.sfu.models.TrackType + 20, // 9: stream.video.sfu.signal.TrackSubscriptionDetails.dimension:type_name -> stream.video.sfu.models.VideoDimension + 18, // 10: stream.video.sfu.signal.SendAnswerRequest.peer_type:type_name -> stream.video.sfu.models.PeerType + 17, // 11: stream.video.sfu.signal.SendAnswerResponse.error:type_name -> stream.video.sfu.models.Error + 17, // 12: stream.video.sfu.signal.ICETrickleResponse.error:type_name -> stream.video.sfu.models.Error + 21, // 13: stream.video.sfu.signal.SetPublisherRequest.tracks:type_name -> stream.video.sfu.models.TrackInfo + 17, // 14: stream.video.sfu.signal.SetPublisherResponse.error:type_name -> stream.video.sfu.models.Error + 15, // 15: stream.video.sfu.signal.SignalServer.SetPublisher:input_type -> stream.video.sfu.signal.SetPublisherRequest + 12, // 16: stream.video.sfu.signal.SignalServer.SendAnswer:input_type -> stream.video.sfu.signal.SendAnswerRequest + 22, // 17: stream.video.sfu.signal.SignalServer.IceTrickle:input_type -> stream.video.sfu.models.ICETrickle + 9, // 18: stream.video.sfu.signal.SignalServer.UpdateSubscriptions:input_type -> stream.video.sfu.signal.UpdateSubscriptionsRequest + 4, // 19: stream.video.sfu.signal.SignalServer.UpdateMuteStates:input_type -> stream.video.sfu.signal.UpdateMuteStatesRequest + 2, // 20: stream.video.sfu.signal.SignalServer.IceRestart:input_type -> stream.video.sfu.signal.ICERestartRequest + 0, // 21: stream.video.sfu.signal.SignalServer.SendStats:input_type -> stream.video.sfu.signal.SendStatsRequest + 16, // 22: stream.video.sfu.signal.SignalServer.SetPublisher:output_type -> stream.video.sfu.signal.SetPublisherResponse + 13, // 23: stream.video.sfu.signal.SignalServer.SendAnswer:output_type -> stream.video.sfu.signal.SendAnswerResponse + 14, // 24: stream.video.sfu.signal.SignalServer.IceTrickle:output_type -> stream.video.sfu.signal.ICETrickleResponse + 10, // 25: stream.video.sfu.signal.SignalServer.UpdateSubscriptions:output_type -> stream.video.sfu.signal.UpdateSubscriptionsResponse + 5, // 26: stream.video.sfu.signal.SignalServer.UpdateMuteStates:output_type -> stream.video.sfu.signal.UpdateMuteStatesResponse + 3, // 27: stream.video.sfu.signal.SignalServer.IceRestart:output_type -> stream.video.sfu.signal.ICERestartResponse + 1, // 28: stream.video.sfu.signal.SignalServer.SendStats:output_type -> stream.video.sfu.signal.SendStatsResponse + 22, // [22:29] is the sub-list for method output_type + 15, // [15:22] is the sub-list for method input_type + 15, // [15:15] is the sub-list for extension type_name + 15, // [15:15] is the sub-list for extension extendee + 0, // [0:15] is the sub-list for field type_name } func init() { file_video_sfu_signal_rpc_signal_proto_init() } @@ -1079,7 +1243,7 @@ func file_video_sfu_signal_rpc_signal_proto_init() { } if !protoimpl.UnsafeEnabled { file_video_sfu_signal_rpc_signal_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ICERestartRequest); i { + switch v := v.(*SendStatsRequest); i { case 0: return &v.state case 1: @@ -1091,7 +1255,7 @@ func file_video_sfu_signal_rpc_signal_proto_init() { } } file_video_sfu_signal_rpc_signal_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ICERestartResponse); i { + switch v := v.(*SendStatsResponse); i { case 0: return &v.state case 1: @@ -1103,7 +1267,7 @@ func file_video_sfu_signal_rpc_signal_proto_init() { } } file_video_sfu_signal_rpc_signal_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateMuteStatesRequest); i { + switch v := v.(*ICERestartRequest); i { case 0: return &v.state case 1: @@ -1115,7 +1279,7 @@ func file_video_sfu_signal_rpc_signal_proto_init() { } } file_video_sfu_signal_rpc_signal_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateMuteStatesResponse); i { + switch v := v.(*ICERestartResponse); i { case 0: return &v.state case 1: @@ -1127,7 +1291,7 @@ func file_video_sfu_signal_rpc_signal_proto_init() { } } file_video_sfu_signal_rpc_signal_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TrackMuteState); i { + switch v := v.(*UpdateMuteStatesRequest); i { case 0: return &v.state case 1: @@ -1139,7 +1303,7 @@ func file_video_sfu_signal_rpc_signal_proto_init() { } } file_video_sfu_signal_rpc_signal_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AudioMuteChanged); i { + switch v := v.(*UpdateMuteStatesResponse); i { case 0: return &v.state case 1: @@ -1151,7 +1315,7 @@ func file_video_sfu_signal_rpc_signal_proto_init() { } } file_video_sfu_signal_rpc_signal_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VideoMuteChanged); i { + switch v := v.(*TrackMuteState); i { case 0: return &v.state case 1: @@ -1163,7 +1327,7 @@ func file_video_sfu_signal_rpc_signal_proto_init() { } } file_video_sfu_signal_rpc_signal_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateSubscriptionsRequest); i { + switch v := v.(*AudioMuteChanged); i { case 0: return &v.state case 1: @@ -1175,7 +1339,7 @@ func file_video_sfu_signal_rpc_signal_proto_init() { } } file_video_sfu_signal_rpc_signal_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateSubscriptionsResponse); i { + switch v := v.(*VideoMuteChanged); i { case 0: return &v.state case 1: @@ -1187,7 +1351,7 @@ func file_video_sfu_signal_rpc_signal_proto_init() { } } file_video_sfu_signal_rpc_signal_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TrackSubscriptionDetails); i { + switch v := v.(*UpdateSubscriptionsRequest); i { case 0: return &v.state case 1: @@ -1199,7 +1363,7 @@ func file_video_sfu_signal_rpc_signal_proto_init() { } } file_video_sfu_signal_rpc_signal_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendAnswerRequest); i { + switch v := v.(*UpdateSubscriptionsResponse); i { case 0: return &v.state case 1: @@ -1211,7 +1375,7 @@ func file_video_sfu_signal_rpc_signal_proto_init() { } } file_video_sfu_signal_rpc_signal_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendAnswerResponse); i { + switch v := v.(*TrackSubscriptionDetails); i { case 0: return &v.state case 1: @@ -1223,7 +1387,7 @@ func file_video_sfu_signal_rpc_signal_proto_init() { } } file_video_sfu_signal_rpc_signal_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ICETrickleResponse); i { + switch v := v.(*SendAnswerRequest); i { case 0: return &v.state case 1: @@ -1235,7 +1399,7 @@ func file_video_sfu_signal_rpc_signal_proto_init() { } } file_video_sfu_signal_rpc_signal_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetPublisherRequest); i { + switch v := v.(*SendAnswerResponse); i { case 0: return &v.state case 1: @@ -1247,6 +1411,30 @@ func file_video_sfu_signal_rpc_signal_proto_init() { } } file_video_sfu_signal_rpc_signal_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ICETrickleResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_video_sfu_signal_rpc_signal_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetPublisherRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_video_sfu_signal_rpc_signal_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SetPublisherResponse); i { case 0: return &v.state @@ -1265,7 +1453,7 @@ func file_video_sfu_signal_rpc_signal_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_video_sfu_signal_rpc_signal_proto_rawDesc, NumEnums: 0, - NumMessages: 15, + NumMessages: 17, NumExtensions: 0, NumServices: 1, }, @@ -1277,4 +1465,4 @@ func file_video_sfu_signal_rpc_signal_proto_init() { file_video_sfu_signal_rpc_signal_proto_rawDesc = nil file_video_sfu_signal_rpc_signal_proto_goTypes = nil file_video_sfu_signal_rpc_signal_proto_depIdxs = nil -} +} \ No newline at end of file diff --git a/stream-video-android-core/src/main/proto/video/sfu/signal_rpc/signal.proto b/stream-video-android-core/src/main/proto/video/sfu/signal_rpc/signal.proto index 69fb6ba94e..d7915b516b 100644 --- a/stream-video-android-core/src/main/proto/video/sfu/signal_rpc/signal.proto +++ b/stream-video-android-core/src/main/proto/video/sfu/signal_rpc/signal.proto @@ -27,6 +27,21 @@ service SignalServer { rpc UpdateMuteStates(UpdateMuteStatesRequest) returns (UpdateMuteStatesResponse); rpc IceRestart(ICERestartRequest) returns (ICERestartResponse); + + rpc SendStats(SendStatsRequest) returns (SendStatsResponse); +} + +message SendStatsRequest { + string session_id = 1; + string subscriber_stats = 2; + string publisher_stats = 3; + string webrtc_version = 4; + string sdk = 5; + string sdk_version = 6; +} + +message SendStatsResponse { + models.Error error = 1; } message ICERestartRequest { @@ -104,4 +119,4 @@ message SetPublisherResponse { string session_id = 2; bool ice_restart = 3; models.Error error = 4; -} +} \ No newline at end of file diff --git a/stream-video-android-core/src/main/proto/video/sfu/signal_rpc/signal.twirp.go b/stream-video-android-core/src/main/proto/video/sfu/signal_rpc/signal.twirp.go index 104816046a..056fa5c567 100644 --- a/stream-video-android-core/src/main/proto/video/sfu/signal_rpc/signal.twirp.go +++ b/stream-video-android-core/src/main/proto/video/sfu/signal_rpc/signal.twirp.go @@ -51,6 +51,8 @@ type SignalServer interface { UpdateMuteStates(context.Context, *UpdateMuteStatesRequest) (*UpdateMuteStatesResponse, error) IceRestart(context.Context, *ICERestartRequest) (*ICERestartResponse, error) + + SendStats(context.Context, *SendStatsRequest) (*SendStatsResponse, error) } // ============================ @@ -59,7 +61,7 @@ type SignalServer interface { type signalServerProtobufClient struct { client HTTPClient - urls [6]string + urls [7]string interceptor twirp.Interceptor opts twirp.ClientOptions } @@ -87,13 +89,14 @@ func NewSignalServerProtobufClient(baseURL string, client HTTPClient, opts ...tw // Build method URLs: []/./ serviceURL := sanitizeBaseURL(baseURL) serviceURL += baseServicePath(pathPrefix, "stream.video.sfu.signal", "SignalServer") - urls := [6]string{ + urls := [7]string{ serviceURL + "SetPublisher", serviceURL + "SendAnswer", serviceURL + "IceTrickle", serviceURL + "UpdateSubscriptions", serviceURL + "UpdateMuteStates", serviceURL + "IceRestart", + serviceURL + "SendStats", } return &signalServerProtobufClient{ @@ -380,13 +383,59 @@ func (c *signalServerProtobufClient) callIceRestart(ctx context.Context, in *ICE return out, nil } +func (c *signalServerProtobufClient) SendStats(ctx context.Context, in *SendStatsRequest) (*SendStatsResponse, error) { + ctx = ctxsetters.WithPackageName(ctx, "stream.video.sfu.signal") + ctx = ctxsetters.WithServiceName(ctx, "SignalServer") + ctx = ctxsetters.WithMethodName(ctx, "SendStats") + caller := c.callSendStats + if c.interceptor != nil { + caller = func(ctx context.Context, req *SendStatsRequest) (*SendStatsResponse, error) { + resp, err := c.interceptor( + func(ctx context.Context, req interface{}) (interface{}, error) { + typedReq, ok := req.(*SendStatsRequest) + if !ok { + return nil, twirp.InternalError("failed type assertion req.(*SendStatsRequest) when calling interceptor") + } + return c.callSendStats(ctx, typedReq) + }, + )(ctx, req) + if resp != nil { + typedResp, ok := resp.(*SendStatsResponse) + if !ok { + return nil, twirp.InternalError("failed type assertion resp.(*SendStatsResponse) when calling interceptor") + } + return typedResp, err + } + return nil, err + } + } + return caller(ctx, in) +} + +func (c *signalServerProtobufClient) callSendStats(ctx context.Context, in *SendStatsRequest) (*SendStatsResponse, error) { + out := new(SendStatsResponse) + ctx, err := doProtobufRequest(ctx, c.client, c.opts.Hooks, c.urls[6], in, out) + if err != nil { + twerr, ok := err.(twirp.Error) + if !ok { + twerr = twirp.InternalErrorWith(err) + } + callClientError(ctx, c.opts.Hooks, twerr) + return nil, err + } + + callClientResponseReceived(ctx, c.opts.Hooks) + + return out, nil +} + // ======================== // SignalServer JSON Client // ======================== type signalServerJSONClient struct { client HTTPClient - urls [6]string + urls [7]string interceptor twirp.Interceptor opts twirp.ClientOptions } @@ -414,13 +463,14 @@ func NewSignalServerJSONClient(baseURL string, client HTTPClient, opts ...twirp. // Build method URLs: []/./ serviceURL := sanitizeBaseURL(baseURL) serviceURL += baseServicePath(pathPrefix, "stream.video.sfu.signal", "SignalServer") - urls := [6]string{ + urls := [7]string{ serviceURL + "SetPublisher", serviceURL + "SendAnswer", serviceURL + "IceTrickle", serviceURL + "UpdateSubscriptions", serviceURL + "UpdateMuteStates", serviceURL + "IceRestart", + serviceURL + "SendStats", } return &signalServerJSONClient{ @@ -707,6 +757,52 @@ func (c *signalServerJSONClient) callIceRestart(ctx context.Context, in *ICERest return out, nil } +func (c *signalServerJSONClient) SendStats(ctx context.Context, in *SendStatsRequest) (*SendStatsResponse, error) { + ctx = ctxsetters.WithPackageName(ctx, "stream.video.sfu.signal") + ctx = ctxsetters.WithServiceName(ctx, "SignalServer") + ctx = ctxsetters.WithMethodName(ctx, "SendStats") + caller := c.callSendStats + if c.interceptor != nil { + caller = func(ctx context.Context, req *SendStatsRequest) (*SendStatsResponse, error) { + resp, err := c.interceptor( + func(ctx context.Context, req interface{}) (interface{}, error) { + typedReq, ok := req.(*SendStatsRequest) + if !ok { + return nil, twirp.InternalError("failed type assertion req.(*SendStatsRequest) when calling interceptor") + } + return c.callSendStats(ctx, typedReq) + }, + )(ctx, req) + if resp != nil { + typedResp, ok := resp.(*SendStatsResponse) + if !ok { + return nil, twirp.InternalError("failed type assertion resp.(*SendStatsResponse) when calling interceptor") + } + return typedResp, err + } + return nil, err + } + } + return caller(ctx, in) +} + +func (c *signalServerJSONClient) callSendStats(ctx context.Context, in *SendStatsRequest) (*SendStatsResponse, error) { + out := new(SendStatsResponse) + ctx, err := doJSONRequest(ctx, c.client, c.opts.Hooks, c.urls[6], in, out) + if err != nil { + twerr, ok := err.(twirp.Error) + if !ok { + twerr = twirp.InternalErrorWith(err) + } + callClientError(ctx, c.opts.Hooks, twerr) + return nil, err + } + + callClientResponseReceived(ctx, c.opts.Hooks) + + return out, nil +} + // =========================== // SignalServer Server Handler // =========================== @@ -822,6 +918,9 @@ func (s *signalServerServer) ServeHTTP(resp http.ResponseWriter, req *http.Reque case "IceRestart": s.serveIceRestart(ctx, resp, req) return + case "SendStats": + s.serveSendStats(ctx, resp, req) + return default: msg := fmt.Sprintf("no handler for path %q", req.URL.Path) s.writeError(ctx, resp, badRouteError(msg, req.Method, req.URL.Path)) @@ -1909,6 +2008,186 @@ func (s *signalServerServer) serveIceRestartProtobuf(ctx context.Context, resp h callResponseSent(ctx, s.hooks) } +func (s *signalServerServer) serveSendStats(ctx context.Context, resp http.ResponseWriter, req *http.Request) { + header := req.Header.Get("Content-Type") + i := strings.Index(header, ";") + if i == -1 { + i = len(header) + } + switch strings.TrimSpace(strings.ToLower(header[:i])) { + case "application/json": + s.serveSendStatsJSON(ctx, resp, req) + case "application/protobuf": + s.serveSendStatsProtobuf(ctx, resp, req) + default: + msg := fmt.Sprintf("unexpected Content-Type: %q", req.Header.Get("Content-Type")) + twerr := badRouteError(msg, req.Method, req.URL.Path) + s.writeError(ctx, resp, twerr) + } +} + +func (s *signalServerServer) serveSendStatsJSON(ctx context.Context, resp http.ResponseWriter, req *http.Request) { + var err error + ctx = ctxsetters.WithMethodName(ctx, "SendStats") + ctx, err = callRequestRouted(ctx, s.hooks) + if err != nil { + s.writeError(ctx, resp, err) + return + } + + d := json.NewDecoder(req.Body) + rawReqBody := json.RawMessage{} + if err := d.Decode(&rawReqBody); err != nil { + s.handleRequestBodyError(ctx, resp, "the json request could not be decoded", err) + return + } + reqContent := new(SendStatsRequest) + unmarshaler := protojson.UnmarshalOptions{DiscardUnknown: true} + if err = unmarshaler.Unmarshal(rawReqBody, reqContent); err != nil { + s.handleRequestBodyError(ctx, resp, "the json request could not be decoded", err) + return + } + + handler := s.SignalServer.SendStats + if s.interceptor != nil { + handler = func(ctx context.Context, req *SendStatsRequest) (*SendStatsResponse, error) { + resp, err := s.interceptor( + func(ctx context.Context, req interface{}) (interface{}, error) { + typedReq, ok := req.(*SendStatsRequest) + if !ok { + return nil, twirp.InternalError("failed type assertion req.(*SendStatsRequest) when calling interceptor") + } + return s.SignalServer.SendStats(ctx, typedReq) + }, + )(ctx, req) + if resp != nil { + typedResp, ok := resp.(*SendStatsResponse) + if !ok { + return nil, twirp.InternalError("failed type assertion resp.(*SendStatsResponse) when calling interceptor") + } + return typedResp, err + } + return nil, err + } + } + + // Call service method + var respContent *SendStatsResponse + func() { + defer ensurePanicResponses(ctx, resp, s.hooks) + respContent, err = handler(ctx, reqContent) + }() + + if err != nil { + s.writeError(ctx, resp, err) + return + } + if respContent == nil { + s.writeError(ctx, resp, twirp.InternalError("received a nil *SendStatsResponse and nil error while calling SendStats. nil responses are not supported")) + return + } + + ctx = callResponsePrepared(ctx, s.hooks) + + marshaler := &protojson.MarshalOptions{UseProtoNames: !s.jsonCamelCase, EmitUnpopulated: !s.jsonSkipDefaults} + respBytes, err := marshaler.Marshal(respContent) + if err != nil { + s.writeError(ctx, resp, wrapInternal(err, "failed to marshal json response")) + return + } + + ctx = ctxsetters.WithStatusCode(ctx, http.StatusOK) + resp.Header().Set("Content-Type", "application/json") + resp.Header().Set("Content-Length", strconv.Itoa(len(respBytes))) + resp.WriteHeader(http.StatusOK) + + if n, err := resp.Write(respBytes); err != nil { + msg := fmt.Sprintf("failed to write response, %d of %d bytes written: %s", n, len(respBytes), err.Error()) + twerr := twirp.NewError(twirp.Unknown, msg) + ctx = callError(ctx, s.hooks, twerr) + } + callResponseSent(ctx, s.hooks) +} + +func (s *signalServerServer) serveSendStatsProtobuf(ctx context.Context, resp http.ResponseWriter, req *http.Request) { + var err error + ctx = ctxsetters.WithMethodName(ctx, "SendStats") + ctx, err = callRequestRouted(ctx, s.hooks) + if err != nil { + s.writeError(ctx, resp, err) + return + } + + buf, err := ioutil.ReadAll(req.Body) + if err != nil { + s.handleRequestBodyError(ctx, resp, "failed to read request body", err) + return + } + reqContent := new(SendStatsRequest) + if err = reqContent.UnmarshalVT(buf); err != nil { + s.writeError(ctx, resp, malformedRequestError("the protobuf request could not be decoded")) + return + } + + handler := s.SignalServer.SendStats + if s.interceptor != nil { + handler = func(ctx context.Context, req *SendStatsRequest) (*SendStatsResponse, error) { + resp, err := s.interceptor( + func(ctx context.Context, req interface{}) (interface{}, error) { + typedReq, ok := req.(*SendStatsRequest) + if !ok { + return nil, twirp.InternalError("failed type assertion req.(*SendStatsRequest) when calling interceptor") + } + return s.SignalServer.SendStats(ctx, typedReq) + }, + )(ctx, req) + if resp != nil { + typedResp, ok := resp.(*SendStatsResponse) + if !ok { + return nil, twirp.InternalError("failed type assertion resp.(*SendStatsResponse) when calling interceptor") + } + return typedResp, err + } + return nil, err + } + } + + // Call service method + var respContent *SendStatsResponse + func() { + defer ensurePanicResponses(ctx, resp, s.hooks) + respContent, err = handler(ctx, reqContent) + }() + + if err != nil { + s.writeError(ctx, resp, err) + return + } + if respContent == nil { + s.writeError(ctx, resp, twirp.InternalError("received a nil *SendStatsResponse and nil error while calling SendStats. nil responses are not supported")) + return + } + + ctx = callResponsePrepared(ctx, s.hooks) + + respBytes, err := respContent.MarshalVT() + if err != nil { + s.writeError(ctx, resp, wrapInternal(err, "failed to marshal proto response")) + return + } + + ctx = ctxsetters.WithStatusCode(ctx, http.StatusOK) + resp.Header().Set("Content-Type", "application/protobuf") + resp.Header().Set("Content-Length", strconv.Itoa(len(respBytes))) + resp.WriteHeader(http.StatusOK) + if n, err := resp.Write(respBytes); err != nil { + msg := fmt.Sprintf("failed to write response, %d of %d bytes written: %s", n, len(respBytes), err.Error()) + twerr := twirp.NewError(twirp.Unknown, msg) + ctx = callError(ctx, s.hooks, twerr) + } + callResponseSent(ctx, s.hooks) +} + func (s *signalServerServer) ServiceDescriptor() ([]byte, int) { return twirpFileDescriptor0, 0 } @@ -2490,52 +2769,59 @@ func callClientError(ctx context.Context, h *twirp.ClientHooks, err twirp.Error) } var twirpFileDescriptor0 = []byte{ - // 741 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0x4d, 0x4f, 0xdb, 0x4a, - 0x14, 0xd5, 0x90, 0x07, 0x8f, 0xdc, 0x20, 0x04, 0x03, 0x12, 0x51, 0x9e, 0x78, 0x0f, 0xfc, 0x16, - 0x44, 0xb4, 0x75, 0x9a, 0xc0, 0xaa, 0x95, 0x2a, 0xf1, 0xa5, 0x36, 0x95, 0x2a, 0x45, 0x36, 0x65, - 0xd1, 0x45, 0x23, 0xc7, 0xbe, 0x81, 0x11, 0x89, 0xed, 0xce, 0x8c, 0x41, 0xec, 0x2a, 0x54, 0xf5, - 0x67, 0x74, 0xd7, 0x4d, 0x7f, 0x53, 0x7f, 0x4c, 0xe5, 0xf1, 0x04, 0x27, 0x4e, 0x1c, 0x08, 0xac, - 0x32, 0x76, 0xee, 0x3d, 0xe7, 0xde, 0x73, 0xee, 0x8c, 0x07, 0xb6, 0xaf, 0x98, 0x87, 0x41, 0x4d, - 0x74, 0xa3, 0x9a, 0x60, 0xe7, 0xbe, 0xd3, 0x6b, 0xf3, 0xd0, 0xd5, 0x4b, 0x33, 0xe4, 0x81, 0x0c, - 0xe8, 0x86, 0x90, 0x1c, 0x9d, 0xbe, 0xa9, 0x22, 0x4d, 0xd1, 0x8d, 0xcc, 0xe4, 0xef, 0xca, 0x66, - 0x9a, 0xdb, 0x0f, 0x3c, 0xec, 0x09, 0xfd, 0x93, 0xe4, 0x19, 0x1c, 0x56, 0x9b, 0x47, 0x27, 0x16, - 0x0a, 0xe9, 0x70, 0x69, 0xe1, 0x97, 0x08, 0x85, 0xa4, 0x9b, 0x00, 0x02, 0x85, 0x60, 0x81, 0xdf, - 0x66, 0x5e, 0x99, 0x6c, 0x91, 0x6a, 0xd1, 0x2a, 0xea, 0x37, 0x4d, 0x8f, 0xbe, 0x81, 0x62, 0x88, - 0xc8, 0xdb, 0xf2, 0x26, 0xc4, 0xf2, 0xdc, 0x16, 0xa9, 0x2e, 0x37, 0xb6, 0xcd, 0x31, 0x7e, 0x4d, - 0xd3, 0x42, 0xe4, 0xa7, 0x37, 0x21, 0x5a, 0x8b, 0xa1, 0x5e, 0x19, 0xef, 0x81, 0x0e, 0x73, 0x8a, - 0x30, 0xf0, 0x05, 0xd2, 0x7d, 0x98, 0x47, 0xce, 0x03, 0xae, 0xf8, 0x4a, 0x8d, 0x7f, 0x73, 0x11, - 0x4f, 0xe2, 0x28, 0x2b, 0x09, 0x36, 0x6e, 0x09, 0x6c, 0x7c, 0x0c, 0x3d, 0x47, 0xe2, 0x87, 0x48, - 0xa2, 0x2d, 0x1d, 0x89, 0xe2, 0x81, 0x6d, 0xbc, 0x83, 0x52, 0x3f, 0x92, 0xd8, 0x16, 0x2a, 0xa9, - 0x5c, 0xd8, 0x2a, 0x54, 0x4b, 0x8d, 0x1d, 0x33, 0x47, 0x48, 0xf3, 0x94, 0x3b, 0xee, 0xe5, 0x1d, - 0x89, 0x05, 0xfd, 0x3b, 0x3e, 0xa3, 0x05, 0xe5, 0xf1, 0x1a, 0xb2, 0x6d, 0xfd, 0x35, 0x4b, 0x5b, - 0x0c, 0x96, 0x47, 0xf9, 0xe8, 0x01, 0x80, 0x8c, 0xdf, 0x24, 0xaa, 0x13, 0xa5, 0xba, 0x91, 0x0b, - 0xa6, 0x92, 0x95, 0xec, 0x45, 0x39, 0x58, 0xd2, 0x75, 0x98, 0x8f, 0x8b, 0xf6, 0x94, 0x67, 0x8b, - 0x56, 0xf2, 0x60, 0x54, 0x61, 0xe5, 0x20, 0xf2, 0x58, 0x10, 0x53, 0x1d, 0x5d, 0x38, 0xfe, 0x39, - 0x7a, 0x69, 0x24, 0xc9, 0x44, 0x9e, 0xc5, 0x44, 0x13, 0x23, 0x47, 0x30, 0xbf, 0x13, 0xa8, 0x24, - 0x8a, 0xd8, 0x51, 0x47, 0xb8, 0x9c, 0x85, 0x92, 0x05, 0x7e, 0x8e, 0x31, 0x73, 0x59, 0x63, 0x9a, - 0xb0, 0xa0, 0x8a, 0x1e, 0x78, 0x52, 0x9f, 0xee, 0xc9, 0x30, 0xc5, 0x31, 0x4a, 0x87, 0xf5, 0x84, - 0xa5, 0x01, 0x0c, 0x1b, 0xfe, 0x99, 0x58, 0xc7, 0x93, 0xcc, 0xf9, 0x4d, 0xa0, 0x9c, 0xc7, 0x4c, - 0x37, 0xe0, 0xef, 0x48, 0x20, 0x4f, 0x27, 0x6e, 0x21, 0x7e, 0x6c, 0x7a, 0xf7, 0x35, 0x3d, 0xea, - 0x6f, 0xe1, 0x31, 0xfe, 0x9e, 0x40, 0xd1, 0x63, 0x7d, 0xf4, 0x63, 0x44, 0xdd, 0xd1, 0x4e, 0x2e, - 0x82, 0x72, 0xf2, 0x78, 0x10, 0x6e, 0xa5, 0x99, 0xc6, 0x37, 0x02, 0xab, 0x36, 0xfa, 0xde, 0x81, - 0x2f, 0xae, 0x91, 0x0f, 0x3c, 0x1b, 0xd9, 0xf4, 0x64, 0xe6, 0x4d, 0x4f, 0x57, 0xa0, 0x20, 0xbc, - 0x50, 0xf7, 0x1d, 0x2f, 0x33, 0x82, 0x14, 0x32, 0x82, 0xc4, 0xa7, 0xc4, 0x70, 0x15, 0x4f, 0x72, - 0x2c, 0x39, 0x71, 0x4e, 0x39, 0x73, 0x2f, 0x7b, 0xf8, 0x44, 0xac, 0x5b, 0x02, 0x6b, 0x36, 0xca, - 0x56, 0xd4, 0xe9, 0x31, 0x71, 0x91, 0x0a, 0xa4, 0x1b, 0x24, 0x79, 0x0d, 0x8e, 0x39, 0xfe, 0x2a, - 0x33, 0xe6, 0xf7, 0xb8, 0xdd, 0xf4, 0xbb, 0xc1, 0xdd, 0x5c, 0xff, 0x20, 0xb0, 0x3e, 0x5a, 0x84, - 0xee, 0x69, 0xe6, 0x2a, 0xfe, 0x83, 0x12, 0x73, 0xb1, 0xcd, 0x93, 0xd3, 0x58, 0xd9, 0xb0, 0x68, - 0x01, 0x73, 0x51, 0x9f, 0xcf, 0x8f, 0x53, 0xa9, 0xf1, 0x73, 0x1e, 0x96, 0x6c, 0xb5, 0x49, 0x6d, - 0xe4, 0x57, 0xc8, 0xe9, 0x25, 0x2c, 0x0d, 0x17, 0x4c, 0x9f, 0xe7, 0x6e, 0xea, 0x09, 0xe2, 0x56, - 0x5e, 0x3c, 0x30, 0x5a, 0xab, 0x80, 0x00, 0xe9, 0xec, 0xd0, 0xdd, 0x29, 0xc9, 0x99, 0x31, 0xaf, - 0x3c, 0x7b, 0x50, 0xac, 0xa6, 0xf9, 0x0c, 0xd0, 0x74, 0x51, 0x8f, 0x15, 0xfd, 0x3f, 0x57, 0x99, - 0x74, 0xf6, 0xa6, 0xe0, 0x4f, 0x18, 0xd0, 0xaf, 0x04, 0xd6, 0x26, 0x1c, 0x5f, 0x74, 0x2f, 0x17, - 0x24, 0xff, 0xd0, 0xad, 0xec, 0xcf, 0x96, 0xa4, 0x4b, 0xb8, 0x86, 0x95, 0xec, 0xa7, 0x8d, 0xbe, - 0xbc, 0x07, 0x69, 0xec, 0x4b, 0x5c, 0xa9, 0xcf, 0x90, 0x91, 0x5a, 0xd8, 0x4c, 0x87, 0x70, 0x77, - 0x9a, 0x6c, 0xa3, 0xb7, 0x97, 0xe9, 0x12, 0x67, 0x6e, 0x1d, 0x87, 0xec, 0xb0, 0x64, 0x77, 0xa3, - 0x64, 0x52, 0xcf, 0xea, 0x2d, 0xf2, 0xe9, 0xf5, 0x39, 0x93, 0x17, 0x51, 0xc7, 0x74, 0x83, 0x7e, - 0xed, 0x2d, 0x4a, 0x5b, 0x41, 0xd5, 0xd4, 0x65, 0xc9, 0x0d, 0x7a, 0xc9, 0xa2, 0x13, 0x75, 0x6b, - 0x93, 0xae, 0x64, 0xbf, 0xe6, 0x2a, 0x49, 0x7c, 0x72, 0xba, 0x9a, 0x57, 0x75, 0xd3, 0xee, 0x46, - 0x66, 0x82, 0xde, 0x59, 0x50, 0xb9, 0x7b, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x0d, 0x50, 0xb9, - 0x5c, 0xce, 0x09, 0x00, 0x00, -} + // 854 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xdd, 0x6e, 0xdb, 0x36, + 0x14, 0x86, 0xe2, 0xc6, 0x8b, 0x8f, 0xbb, 0xd4, 0x65, 0x0b, 0xc4, 0xd0, 0xd0, 0x75, 0xd5, 0x30, + 0x34, 0xcd, 0x36, 0x79, 0x49, 0x7b, 0xb5, 0x01, 0x03, 0xd2, 0x36, 0xd8, 0x34, 0x60, 0x40, 0x20, + 0x65, 0xb9, 0xd8, 0xc5, 0x0c, 0xfd, 0x1c, 0x27, 0x84, 0x6d, 0x49, 0x23, 0x29, 0x07, 0xbd, 0x1b, + 0x8a, 0x61, 0xc0, 0x5e, 0x62, 0x0f, 0xb0, 0x67, 0x1a, 0xb0, 0x57, 0x29, 0x44, 0xd2, 0x92, 0x2d, + 0x5b, 0x8e, 0x1d, 0x5f, 0x99, 0x26, 0xbf, 0xf3, 0xf7, 0x7d, 0x87, 0x47, 0x84, 0x67, 0x13, 0x1a, + 0x61, 0xd2, 0xe3, 0x83, 0xac, 0xc7, 0xe9, 0x55, 0xec, 0x8f, 0xfa, 0x2c, 0x0d, 0xf5, 0xd2, 0x4e, + 0x59, 0x22, 0x12, 0x72, 0xc0, 0x05, 0x43, 0x7f, 0x6c, 0x4b, 0xa4, 0xcd, 0x07, 0x99, 0xad, 0x8e, + 0xcd, 0x27, 0xa5, 0xed, 0x38, 0x89, 0x70, 0xc4, 0xf5, 0x8f, 0xb2, 0xb3, 0xfe, 0x37, 0xa0, 0xe3, + 0x61, 0x1c, 0x79, 0xc2, 0x17, 0xdc, 0xc5, 0xdf, 0x33, 0xe4, 0x82, 0x3c, 0x01, 0xe0, 0xc8, 0x39, + 0x4d, 0xe2, 0x3e, 0x8d, 0xba, 0xc6, 0x67, 0xc6, 0x61, 0xcb, 0x6d, 0xe9, 0x1d, 0x27, 0x22, 0x2f, + 0xa0, 0xc3, 0xb3, 0x80, 0x87, 0x8c, 0x06, 0xc8, 0xfa, 0x3c, 0xb7, 0xec, 0xee, 0x48, 0xd0, 0x83, + 0x72, 0x5f, 0x3a, 0x24, 0xcf, 0xe1, 0x41, 0x9a, 0x05, 0x23, 0xca, 0xaf, 0x0b, 0x64, 0x43, 0x22, + 0xf7, 0x8b, 0x6d, 0x05, 0xfc, 0x02, 0xf6, 0x6f, 0x30, 0x60, 0x22, 0xec, 0x4f, 0x90, 0xe5, 0x71, + 0xba, 0xf7, 0x24, 0xee, 0x63, 0xb5, 0x7b, 0xa9, 0x36, 0x49, 0x07, 0x1a, 0x3c, 0x1a, 0x76, 0x77, + 0xe5, 0x59, 0xbe, 0x24, 0x4f, 0xa1, 0xcd, 0xa3, 0x61, 0x61, 0xd5, 0x94, 0x27, 0xc0, 0xa3, 0xa1, + 0x36, 0xb1, 0x1c, 0x78, 0x38, 0x53, 0x20, 0x4f, 0x93, 0x98, 0x23, 0x79, 0x05, 0xbb, 0xc8, 0x58, + 0xc2, 0x64, 0x71, 0xed, 0x93, 0x4f, 0xed, 0x05, 0xfa, 0x34, 0x4b, 0x67, 0x39, 0xca, 0x55, 0x60, + 0x8b, 0xc1, 0x43, 0xe7, 0xcd, 0x99, 0x8b, 0x5c, 0xf8, 0x4c, 0xac, 0x49, 0xd6, 0xf7, 0xd0, 0x4a, + 0x11, 0x59, 0x5f, 0xbc, 0x4b, 0x51, 0xb2, 0xb4, 0x7f, 0xf2, 0xac, 0x36, 0xda, 0x39, 0x22, 0xbb, + 0x78, 0x97, 0xa2, 0xbb, 0x97, 0xea, 0x95, 0xf5, 0x13, 0x90, 0xd9, 0x98, 0x5b, 0xe5, 0xff, 0xde, + 0x80, 0x83, 0x5f, 0xd2, 0xc8, 0x17, 0xf8, 0x73, 0x26, 0x30, 0x67, 0x04, 0xd7, 0xd5, 0xfc, 0x47, + 0x68, 0x8f, 0x33, 0x81, 0x52, 0x43, 0xcc, 0x45, 0x6c, 0x1c, 0xb6, 0x4f, 0x9e, 0xdb, 0x35, 0x5d, + 0x67, 0x5f, 0x30, 0x3f, 0x1c, 0x16, 0x41, 0x5c, 0x18, 0x17, 0xf1, 0xac, 0x73, 0xe8, 0x2e, 0xe6, + 0x50, 0x2d, 0xeb, 0xde, 0x26, 0x65, 0x51, 0xd8, 0x9f, 0x8f, 0x47, 0x4e, 0x01, 0x44, 0xbe, 0xa3, + 0x58, 0x37, 0x24, 0xeb, 0x56, 0xad, 0x33, 0x69, 0x2c, 0x69, 0x6f, 0x89, 0xe9, 0x92, 0x3c, 0x86, + 0xdd, 0x3c, 0xe9, 0x48, 0x6a, 0xb6, 0xe7, 0xaa, 0x3f, 0xd6, 0x21, 0x74, 0x4e, 0xb3, 0x88, 0x26, + 0x79, 0xa8, 0x37, 0xd7, 0x7e, 0x7c, 0x85, 0x51, 0x89, 0x34, 0x2a, 0xc8, 0xcb, 0x3c, 0xd0, 0x52, + 0xe4, 0x9c, 0xcf, 0xbf, 0x0c, 0x30, 0x15, 0x23, 0x9e, 0xba, 0x3d, 0xa9, 0xa0, 0x49, 0x5c, 0x23, + 0xcc, 0x4e, 0x55, 0x18, 0x07, 0x9a, 0x32, 0xe9, 0xa9, 0x26, 0xc7, 0xab, 0x35, 0x99, 0x0d, 0xf1, + 0x16, 0x85, 0x4f, 0x47, 0xdc, 0xd5, 0x0e, 0x2c, 0x0f, 0x3e, 0x59, 0x9a, 0xc7, 0x56, 0xe2, 0xfc, + 0x67, 0x40, 0xb7, 0x2e, 0x32, 0x39, 0x80, 0x8f, 0x32, 0x8e, 0xac, 0xec, 0xb8, 0x66, 0xfe, 0xd7, + 0x89, 0x6e, 0x2b, 0x7a, 0x5e, 0xdf, 0xc6, 0x5d, 0xf4, 0x3d, 0x83, 0x56, 0x44, 0xc7, 0x18, 0x17, + 0xb3, 0x66, 0x69, 0x3b, 0x6b, 0x0f, 0x52, 0xc9, 0xb7, 0x53, 0xb8, 0x5b, 0x5a, 0x5a, 0x7f, 0x1a, + 0x6a, 0xbc, 0x9c, 0xc6, 0xfc, 0x06, 0xd9, 0x54, 0xb3, 0xb9, 0x4b, 0x6f, 0x6c, 0x7c, 0xe9, 0xd5, + 0x98, 0x4b, 0x75, 0xdd, 0xf9, 0xb2, 0x42, 0x48, 0xa3, 0x42, 0x48, 0x3e, 0x25, 0x66, 0xb3, 0xd8, + 0x4a, 0x31, 0x35, 0x71, 0x2e, 0x18, 0x0d, 0x87, 0x23, 0xdc, 0xd2, 0xd7, 0x7b, 0x03, 0x1e, 0x79, + 0x28, 0xce, 0xa7, 0xc3, 0x7e, 0x4a, 0x90, 0x2e, 0xd0, 0xa8, 0x2b, 0x70, 0x41, 0xf1, 0x6f, 0x2b, + 0x6d, 0x7e, 0x8b, 0xda, 0x4e, 0x3c, 0x48, 0x8a, 0xbe, 0xfe, 0xc7, 0x80, 0xc7, 0xf3, 0x49, 0xe8, + 0x9a, 0x36, 0xce, 0xe2, 0x29, 0xb4, 0x69, 0x88, 0x7d, 0xa6, 0xa6, 0xb1, 0x94, 0x61, 0xcf, 0x05, + 0x1a, 0xa2, 0x9e, 0xcf, 0x77, 0x63, 0xe9, 0xe4, 0xef, 0x26, 0xdc, 0xf7, 0xe4, 0x25, 0xf5, 0x90, + 0x4d, 0x90, 0x91, 0x21, 0xdc, 0x9f, 0x4d, 0x98, 0x7c, 0x55, 0x7b, 0xa9, 0x97, 0x90, 0x6b, 0x7e, + 0xbd, 0x26, 0x5a, 0xb3, 0x80, 0x00, 0x65, 0xef, 0x90, 0xa3, 0x15, 0xc6, 0x95, 0x36, 0x37, 0xbf, + 0x5c, 0x0b, 0xab, 0xc3, 0xfc, 0x06, 0xe0, 0x84, 0xa8, 0xdb, 0x8a, 0x7c, 0x5e, 0xcb, 0x4c, 0xd9, + 0x7b, 0x2b, 0xfc, 0x2f, 0x69, 0xd0, 0x3f, 0x0c, 0x78, 0xb4, 0x64, 0x7c, 0x91, 0x97, 0xb5, 0x4e, + 0xea, 0x87, 0xae, 0xf9, 0x6a, 0x33, 0x23, 0x9d, 0xc2, 0x0d, 0x74, 0xaa, 0x9f, 0x36, 0xf2, 0xcd, + 0x2d, 0x9e, 0x16, 0xbe, 0xc4, 0xe6, 0xf1, 0x06, 0x16, 0xa5, 0x84, 0x4e, 0xd9, 0x84, 0x47, 0xab, + 0x68, 0x9b, 0x7f, 0xbd, 0xac, 0xa6, 0xb8, 0xfa, 0xea, 0x08, 0xa0, 0x55, 0x3c, 0xa5, 0xc8, 0x8b, + 0x95, 0xe2, 0xcf, 0xbe, 0x27, 0xcd, 0xa3, 0x75, 0xa0, 0x2a, 0xc6, 0x6b, 0xfa, 0xba, 0xed, 0x0d, + 0x32, 0x75, 0x1b, 0x2e, 0x8f, 0xcf, 0x8d, 0x5f, 0xbf, 0xbb, 0xa2, 0xe2, 0x3a, 0x0b, 0xec, 0x30, + 0x19, 0xf7, 0x7e, 0x40, 0xe1, 0x49, 0x4f, 0x3d, 0xf9, 0x7a, 0x0d, 0x93, 0x91, 0x5a, 0x04, 0xd9, + 0xa0, 0xb7, 0xec, 0x8d, 0xfc, 0xef, 0x8e, 0xa9, 0xf0, 0x6a, 0x82, 0xdb, 0x93, 0x63, 0xdb, 0x1b, + 0x64, 0xb6, 0xf2, 0x1e, 0x34, 0xa5, 0xed, 0xcb, 0x0f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x8b, 0x67, + 0x5a, 0x88, 0x5f, 0x0b, 0x00, 0x00, +} \ No newline at end of file diff --git a/stream-video-android-core/src/main/proto/video/sfu/signal_rpc/signal_vtproto.pb.go b/stream-video-android-core/src/main/proto/video/sfu/signal_rpc/signal_vtproto.pb.go index 5527796654..bde87591f2 100644 --- a/stream-video-android-core/src/main/proto/video/sfu/signal_rpc/signal_vtproto.pb.go +++ b/stream-video-android-core/src/main/proto/video/sfu/signal_rpc/signal_vtproto.pb.go @@ -20,6 +20,136 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +func (m *SendStatsRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SendStatsRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *SendStatsRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.SdkVersion) > 0 { + i -= len(m.SdkVersion) + copy(dAtA[i:], m.SdkVersion) + i = encodeVarint(dAtA, i, uint64(len(m.SdkVersion))) + i-- + dAtA[i] = 0x32 + } + if len(m.Sdk) > 0 { + i -= len(m.Sdk) + copy(dAtA[i:], m.Sdk) + i = encodeVarint(dAtA, i, uint64(len(m.Sdk))) + i-- + dAtA[i] = 0x2a + } + if len(m.WebrtcVersion) > 0 { + i -= len(m.WebrtcVersion) + copy(dAtA[i:], m.WebrtcVersion) + i = encodeVarint(dAtA, i, uint64(len(m.WebrtcVersion))) + i-- + dAtA[i] = 0x22 + } + if len(m.PublisherStats) > 0 { + i -= len(m.PublisherStats) + copy(dAtA[i:], m.PublisherStats) + i = encodeVarint(dAtA, i, uint64(len(m.PublisherStats))) + i-- + dAtA[i] = 0x1a + } + if len(m.SubscriberStats) > 0 { + i -= len(m.SubscriberStats) + copy(dAtA[i:], m.SubscriberStats) + i = encodeVarint(dAtA, i, uint64(len(m.SubscriberStats))) + i-- + dAtA[i] = 0x12 + } + if len(m.SessionId) > 0 { + i -= len(m.SessionId) + copy(dAtA[i:], m.SessionId) + i = encodeVarint(dAtA, i, uint64(len(m.SessionId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SendStatsResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SendStatsResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *SendStatsResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Error != nil { + if marshalto, ok := interface{}(m.Error).(interface { + MarshalToSizedBufferVT([]byte) (int, error) + }); ok { + size, err := marshalto.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + } else { + encoded, err := proto.Marshal(m.Error) + if err != nil { + return 0, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = encodeVarint(dAtA, i, uint64(len(encoded))) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func (m *ICERestartRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil @@ -865,6 +995,64 @@ func encodeVarint(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } +func (m *SendStatsRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.SessionId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.SubscriberStats) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.PublisherStats) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.WebrtcVersion) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Sdk) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.SdkVersion) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.unknownFields != nil { + n += len(m.unknownFields) + } + return n +} + +func (m *SendStatsResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Error != nil { + if size, ok := interface{}(m.Error).(interface { + SizeVT() int + }); ok { + l = size.SizeVT() + } else { + l = proto.Size(m.Error) + } + n += 1 + l + sov(uint64(l)) + } + if m.unknownFields != nil { + n += len(m.unknownFields) + } + return n +} + func (m *ICERestartRequest) SizeVT() (n int) { if m == nil { return 0 @@ -1213,6 +1401,344 @@ func sov(x uint64) (n int) { func soz(x uint64) (n int) { return sov(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } +func (m *SendStatsRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SendStatsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SendStatsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SessionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SessionId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriberStats", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SubscriberStats = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PublisherStats", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PublisherStats = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WebrtcVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.WebrtcVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sdk", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sdk = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SdkVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SdkVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SendStatsResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SendStatsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SendStatsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Error == nil { + m.Error = &models.Error{} + } + if unmarshal, ok := interface{}(m.Error).(interface { + UnmarshalVT([]byte) error + }); ok { + if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + } else { + if err := proto.Unmarshal(dAtA[iNdEx:postIndex], m.Error); err != nil { + return err + } + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *ICERestartRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0