update protos

This commit is contained in:
Hiroshi Horie
2022-01-13 14:54:01 +07:00
parent 7799e35c13
commit 068876dc9c
5 changed files with 762 additions and 4 deletions
+261
View File
@@ -661,6 +661,11 @@ class TrackInfo extends $pb.GeneratedMessage {
const $core.bool.fromEnvironment('protobuf.omit_field_names')
? ''
: 'mimeType')
..aOS(
12,
const $core.bool.fromEnvironment('protobuf.omit_field_names')
? ''
: 'mid')
..hasRequiredFields = false;
TrackInfo._() : super();
@@ -676,6 +681,7 @@ class TrackInfo extends $pb.GeneratedMessage {
TrackSource? source,
$core.Iterable<VideoLayer>? layers,
$core.String? mimeType,
$core.String? mid,
}) {
final _result = create();
if (sid != null) {
@@ -711,6 +717,9 @@ class TrackInfo extends $pb.GeneratedMessage {
if (mimeType != null) {
_result.mimeType = mimeType;
}
if (mid != null) {
_result.mid = mid;
}
return _result;
}
factory TrackInfo.fromBuffer($core.List<$core.int> i,
@@ -861,6 +870,18 @@ class TrackInfo extends $pb.GeneratedMessage {
$core.bool hasMimeType() => $_has(10);
@$pb.TagNumber(11)
void clearMimeType() => clearField(11);
@$pb.TagNumber(12)
$core.String get mid => $_getSZ(11);
@$pb.TagNumber(12)
set mid($core.String v) {
$_setString(11, v);
}
@$pb.TagNumber(12)
$core.bool hasMid() => $_has(11);
@$pb.TagNumber(12)
void clearMid() => clearField(12);
}
class VideoLayer extends $pb.GeneratedMessage {
@@ -900,6 +921,12 @@ class VideoLayer extends $pb.GeneratedMessage {
? ''
: 'bitrate',
$pb.PbFieldType.OU3)
..a<$core.int>(
5,
const $core.bool.fromEnvironment('protobuf.omit_field_names')
? ''
: 'ssrc',
$pb.PbFieldType.OU3)
..hasRequiredFields = false;
VideoLayer._() : super();
@@ -908,6 +935,7 @@ class VideoLayer extends $pb.GeneratedMessage {
$core.int? width,
$core.int? height,
$core.int? bitrate,
$core.int? ssrc,
}) {
final _result = create();
if (quality != null) {
@@ -922,6 +950,9 @@ class VideoLayer extends $pb.GeneratedMessage {
if (bitrate != null) {
_result.bitrate = bitrate;
}
if (ssrc != null) {
_result.ssrc = ssrc;
}
return _result;
}
factory VideoLayer.fromBuffer($core.List<$core.int> i,
@@ -997,6 +1028,18 @@ class VideoLayer extends $pb.GeneratedMessage {
$core.bool hasBitrate() => $_has(3);
@$pb.TagNumber(4)
void clearBitrate() => clearField(4);
@$pb.TagNumber(5)
$core.int get ssrc => $_getIZ(4);
@$pb.TagNumber(5)
set ssrc($core.int v) {
$_setUnsignedInt32(4, v);
}
@$pb.TagNumber(5)
$core.bool hasSsrc() => $_has(4);
@$pb.TagNumber(5)
void clearSsrc() => clearField(5);
}
enum DataPacket_Value { user, speaker, notSet }
@@ -1475,3 +1518,221 @@ class ParticipantTracks extends $pb.GeneratedMessage {
@$pb.TagNumber(2)
$core.List<$core.String> get trackSids => $_getList(1);
}
class ClientInfo extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
const $core.bool.fromEnvironment('protobuf.omit_message_names')
? ''
: 'ClientInfo',
package: const $pb.PackageName(
const $core.bool.fromEnvironment('protobuf.omit_message_names')
? ''
: 'livekit'),
createEmptyInstance: create)
..e<ClientInfo_SDK>(
1,
const $core.bool.fromEnvironment('protobuf.omit_field_names')
? ''
: 'sdk',
$pb.PbFieldType.OE,
defaultOrMaker: ClientInfo_SDK.UNKNOWN,
valueOf: ClientInfo_SDK.valueOf,
enumValues: ClientInfo_SDK.values)
..aOS(
2,
const $core.bool.fromEnvironment('protobuf.omit_field_names')
? ''
: 'version')
..a<$core.int>(
3,
const $core.bool.fromEnvironment('protobuf.omit_field_names')
? ''
: 'protocol',
$pb.PbFieldType.O3)
..aOS(
4,
const $core.bool.fromEnvironment('protobuf.omit_field_names')
? ''
: 'os')
..aOS(
5,
const $core.bool.fromEnvironment('protobuf.omit_field_names')
? ''
: 'osVersion')
..aOS(
6,
const $core.bool.fromEnvironment('protobuf.omit_field_names')
? ''
: 'deviceModel')
..aOS(
7,
const $core.bool.fromEnvironment('protobuf.omit_field_names')
? ''
: 'browser')
..aOS(
8,
const $core.bool.fromEnvironment('protobuf.omit_field_names')
? ''
: 'browserVersion')
..hasRequiredFields = false;
ClientInfo._() : super();
factory ClientInfo({
ClientInfo_SDK? sdk,
$core.String? version,
$core.int? protocol,
$core.String? os,
$core.String? osVersion,
$core.String? deviceModel,
$core.String? browser,
$core.String? browserVersion,
}) {
final _result = create();
if (sdk != null) {
_result.sdk = sdk;
}
if (version != null) {
_result.version = version;
}
if (protocol != null) {
_result.protocol = protocol;
}
if (os != null) {
_result.os = os;
}
if (osVersion != null) {
_result.osVersion = osVersion;
}
if (deviceModel != null) {
_result.deviceModel = deviceModel;
}
if (browser != null) {
_result.browser = browser;
}
if (browserVersion != null) {
_result.browserVersion = browserVersion;
}
return _result;
}
factory ClientInfo.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory ClientInfo.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
ClientInfo clone() => ClientInfo()..mergeFromMessage(this);
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
ClientInfo copyWith(void Function(ClientInfo) updates) =>
super.copyWith((message) => updates(message as ClientInfo))
as ClientInfo; // ignore: deprecated_member_use
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static ClientInfo create() => ClientInfo._();
ClientInfo createEmptyInstance() => create();
static $pb.PbList<ClientInfo> createRepeated() => $pb.PbList<ClientInfo>();
@$core.pragma('dart2js:noInline')
static ClientInfo getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<ClientInfo>(create);
static ClientInfo? _defaultInstance;
@$pb.TagNumber(1)
ClientInfo_SDK get sdk => $_getN(0);
@$pb.TagNumber(1)
set sdk(ClientInfo_SDK v) {
setField(1, v);
}
@$pb.TagNumber(1)
$core.bool hasSdk() => $_has(0);
@$pb.TagNumber(1)
void clearSdk() => clearField(1);
@$pb.TagNumber(2)
$core.String get version => $_getSZ(1);
@$pb.TagNumber(2)
set version($core.String v) {
$_setString(1, v);
}
@$pb.TagNumber(2)
$core.bool hasVersion() => $_has(1);
@$pb.TagNumber(2)
void clearVersion() => clearField(2);
@$pb.TagNumber(3)
$core.int get protocol => $_getIZ(2);
@$pb.TagNumber(3)
set protocol($core.int v) {
$_setSignedInt32(2, v);
}
@$pb.TagNumber(3)
$core.bool hasProtocol() => $_has(2);
@$pb.TagNumber(3)
void clearProtocol() => clearField(3);
@$pb.TagNumber(4)
$core.String get os => $_getSZ(3);
@$pb.TagNumber(4)
set os($core.String v) {
$_setString(3, v);
}
@$pb.TagNumber(4)
$core.bool hasOs() => $_has(3);
@$pb.TagNumber(4)
void clearOs() => clearField(4);
@$pb.TagNumber(5)
$core.String get osVersion => $_getSZ(4);
@$pb.TagNumber(5)
set osVersion($core.String v) {
$_setString(4, v);
}
@$pb.TagNumber(5)
$core.bool hasOsVersion() => $_has(4);
@$pb.TagNumber(5)
void clearOsVersion() => clearField(5);
@$pb.TagNumber(6)
$core.String get deviceModel => $_getSZ(5);
@$pb.TagNumber(6)
set deviceModel($core.String v) {
$_setString(5, v);
}
@$pb.TagNumber(6)
$core.bool hasDeviceModel() => $_has(5);
@$pb.TagNumber(6)
void clearDeviceModel() => clearField(6);
@$pb.TagNumber(7)
$core.String get browser => $_getSZ(6);
@$pb.TagNumber(7)
set browser($core.String v) {
$_setString(6, v);
}
@$pb.TagNumber(7)
$core.bool hasBrowser() => $_has(6);
@$pb.TagNumber(7)
void clearBrowser() => clearField(7);
@$pb.TagNumber(8)
$core.String get browserVersion => $_getSZ(7);
@$pb.TagNumber(8)
set browserVersion($core.String v) {
$_setString(7, v);
}
@$pb.TagNumber(8)
$core.bool hasBrowserVersion() => $_has(7);
@$pb.TagNumber(8)
void clearBrowserVersion() => clearField(8);
}
+48
View File
@@ -207,3 +207,51 @@ class DataPacket_Kind extends $pb.ProtobufEnum {
const DataPacket_Kind._($core.int v, $core.String n) : super(v, n);
}
class ClientInfo_SDK extends $pb.ProtobufEnum {
static const ClientInfo_SDK UNKNOWN = ClientInfo_SDK._(
0,
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
? ''
: 'UNKNOWN');
static const ClientInfo_SDK JS = ClientInfo_SDK._(1,
const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'JS');
static const ClientInfo_SDK SWIFT = ClientInfo_SDK._(
2,
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
? ''
: 'SWIFT');
static const ClientInfo_SDK ANDROID = ClientInfo_SDK._(
3,
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
? ''
: 'ANDROID');
static const ClientInfo_SDK FLUTTER = ClientInfo_SDK._(
4,
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
? ''
: 'FLUTTER');
static const ClientInfo_SDK GO = ClientInfo_SDK._(5,
const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'GO');
static const ClientInfo_SDK UNITY = ClientInfo_SDK._(
6,
const $core.bool.fromEnvironment('protobuf.omit_enum_names')
? ''
: 'UNITY');
static const $core.List<ClientInfo_SDK> values = <ClientInfo_SDK>[
UNKNOWN,
JS,
SWIFT,
ANDROID,
FLUTTER,
GO,
UNITY,
];
static final $core.Map<$core.int, ClientInfo_SDK> _byValue =
$pb.ProtobufEnum.initByValue(values);
static ClientInfo_SDK? valueOf($core.int value) => _byValue[value];
const ClientInfo_SDK._($core.int v, $core.String n) : super(v, n);
}
+50 -2
View File
@@ -202,12 +202,13 @@ const TrackInfo$json = const {
'10': 'layers'
},
const {'1': 'mime_type', '3': 11, '4': 1, '5': 9, '10': 'mimeType'},
const {'1': 'mid', '3': 12, '4': 1, '5': 9, '10': 'mid'},
],
};
/// Descriptor for `TrackInfo`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List trackInfoDescriptor = $convert.base64Decode(
'CglUcmFja0luZm8SEAoDc2lkGAEgASgJUgNzaWQSJgoEdHlwZRgCIAEoDjISLmxpdmVraXQuVHJhY2tUeXBlUgR0eXBlEhIKBG5hbWUYAyABKAlSBG5hbWUSFAoFbXV0ZWQYBCABKAhSBW11dGVkEhQKBXdpZHRoGAUgASgNUgV3aWR0aBIWCgZoZWlnaHQYBiABKA1SBmhlaWdodBIcCglzaW11bGNhc3QYByABKAhSCXNpbXVsY2FzdBIfCgtkaXNhYmxlX2R0eBgIIAEoCFIKZGlzYWJsZUR0eBIsCgZzb3VyY2UYCSABKA4yFC5saXZla2l0LlRyYWNrU291cmNlUgZzb3VyY2USKwoGbGF5ZXJzGAogAygLMhMubGl2ZWtpdC5WaWRlb0xheWVyUgZsYXllcnMSGwoJbWltZV90eXBlGAsgASgJUghtaW1lVHlwZQ==');
'CglUcmFja0luZm8SEAoDc2lkGAEgASgJUgNzaWQSJgoEdHlwZRgCIAEoDjISLmxpdmVraXQuVHJhY2tUeXBlUgR0eXBlEhIKBG5hbWUYAyABKAlSBG5hbWUSFAoFbXV0ZWQYBCABKAhSBW11dGVkEhQKBXdpZHRoGAUgASgNUgV3aWR0aBIWCgZoZWlnaHQYBiABKA1SBmhlaWdodBIcCglzaW11bGNhc3QYByABKAhSCXNpbXVsY2FzdBIfCgtkaXNhYmxlX2R0eBgIIAEoCFIKZGlzYWJsZUR0eBIsCgZzb3VyY2UYCSABKA4yFC5saXZla2l0LlRyYWNrU291cmNlUgZzb3VyY2USKwoGbGF5ZXJzGAogAygLMhMubGl2ZWtpdC5WaWRlb0xheWVyUgZsYXllcnMSGwoJbWltZV90eXBlGAsgASgJUghtaW1lVHlwZRIQCgNtaWQYDCABKAlSA21pZA==');
@$core.Deprecated('Use videoLayerDescriptor instead')
const VideoLayer$json = const {
'1': 'VideoLayer',
@@ -223,12 +224,13 @@ const VideoLayer$json = const {
const {'1': 'width', '3': 2, '4': 1, '5': 13, '10': 'width'},
const {'1': 'height', '3': 3, '4': 1, '5': 13, '10': 'height'},
const {'1': 'bitrate', '3': 4, '4': 1, '5': 13, '10': 'bitrate'},
const {'1': 'ssrc', '3': 5, '4': 1, '5': 13, '10': 'ssrc'},
],
};
/// Descriptor for `VideoLayer`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List videoLayerDescriptor = $convert.base64Decode(
'CgpWaWRlb0xheWVyEi8KB3F1YWxpdHkYASABKA4yFS5saXZla2l0LlZpZGVvUXVhbGl0eVIHcXVhbGl0eRIUCgV3aWR0aBgCIAEoDVIFd2lkdGgSFgoGaGVpZ2h0GAMgASgNUgZoZWlnaHQSGAoHYml0cmF0ZRgEIAEoDVIHYml0cmF0ZQ==');
'CgpWaWRlb0xheWVyEi8KB3F1YWxpdHkYASABKA4yFS5saXZla2l0LlZpZGVvUXVhbGl0eVIHcXVhbGl0eRIUCgV3aWR0aBgCIAEoDVIFd2lkdGgSFgoGaGVpZ2h0GAMgASgNUgZoZWlnaHQSGAoHYml0cmF0ZRgEIAEoDVIHYml0cmF0ZRISCgRzc3JjGAUgASgNUgRzc3Jj');
@$core.Deprecated('Use dataPacketDescriptor instead')
const DataPacket$json = const {
'1': 'DataPacket',
@@ -352,3 +354,49 @@ const ParticipantTracks$json = const {
/// Descriptor for `ParticipantTracks`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List participantTracksDescriptor = $convert.base64Decode(
'ChFQYXJ0aWNpcGFudFRyYWNrcxInCg9wYXJ0aWNpcGFudF9zaWQYASABKAlSDnBhcnRpY2lwYW50U2lkEh0KCnRyYWNrX3NpZHMYAiADKAlSCXRyYWNrU2lkcw==');
@$core.Deprecated('Use clientInfoDescriptor instead')
const ClientInfo$json = const {
'1': 'ClientInfo',
'2': const [
const {
'1': 'sdk',
'3': 1,
'4': 1,
'5': 14,
'6': '.livekit.ClientInfo.SDK',
'10': 'sdk'
},
const {'1': 'version', '3': 2, '4': 1, '5': 9, '10': 'version'},
const {'1': 'protocol', '3': 3, '4': 1, '5': 5, '10': 'protocol'},
const {'1': 'os', '3': 4, '4': 1, '5': 9, '10': 'os'},
const {'1': 'os_version', '3': 5, '4': 1, '5': 9, '10': 'osVersion'},
const {'1': 'device_model', '3': 6, '4': 1, '5': 9, '10': 'deviceModel'},
const {'1': 'browser', '3': 7, '4': 1, '5': 9, '10': 'browser'},
const {
'1': 'browser_version',
'3': 8,
'4': 1,
'5': 9,
'10': 'browserVersion'
},
],
'4': const [ClientInfo_SDK$json],
};
@$core.Deprecated('Use clientInfoDescriptor instead')
const ClientInfo_SDK$json = const {
'1': 'SDK',
'2': const [
const {'1': 'UNKNOWN', '2': 0},
const {'1': 'JS', '2': 1},
const {'1': 'SWIFT', '2': 2},
const {'1': 'ANDROID', '2': 3},
const {'1': 'FLUTTER', '2': 4},
const {'1': 'GO', '2': 5},
const {'1': 'UNITY', '2': 6},
],
};
/// Descriptor for `ClientInfo`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List clientInfoDescriptor = $convert.base64Decode(
'CgpDbGllbnRJbmZvEikKA3NkaxgBIAEoDjIXLmxpdmVraXQuQ2xpZW50SW5mby5TREtSA3NkaxIYCgd2ZXJzaW9uGAIgASgJUgd2ZXJzaW9uEhoKCHByb3RvY29sGAMgASgFUghwcm90b2NvbBIOCgJvcxgEIAEoCVICb3MSHQoKb3NfdmVyc2lvbhgFIAEoCVIJb3NWZXJzaW9uEiEKDGRldmljZV9tb2RlbBgGIAEoCVILZGV2aWNlTW9kZWwSGAoHYnJvd3NlchgHIAEoCVIHYnJvd3NlchInCg9icm93c2VyX3ZlcnNpb24YCCABKAlSDmJyb3dzZXJWZXJzaW9uIlIKA1NESxILCgdVTktOT1dOEAASBgoCSlMQARIJCgVTV0lGVBACEgsKB0FORFJPSUQQAxILCgdGTFVUVEVSEAQSBgoCR08QBRIJCgVVTklUWRAG');
+312 -1
View File
@@ -27,6 +27,8 @@ enum SignalRequest_Message {
leave,
updateLayers,
subscriptionPermissions,
syncState,
simulate,
notSet
}
@@ -43,6 +45,8 @@ class SignalRequest extends $pb.GeneratedMessage {
8: SignalRequest_Message.leave,
10: SignalRequest_Message.updateLayers,
11: SignalRequest_Message.subscriptionPermissions,
12: SignalRequest_Message.syncState,
13: SignalRequest_Message.simulate,
0: SignalRequest_Message.notSet
};
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
@@ -54,7 +58,7 @@ class SignalRequest extends $pb.GeneratedMessage {
? ''
: 'livekit'),
createEmptyInstance: create)
..oo(0, [1, 2, 3, 4, 5, 6, 7, 8, 10, 11])
..oo(0, [1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13])
..aOM<SessionDescription>(
1,
const $core.bool.fromEnvironment('protobuf.omit_field_names')
@@ -115,6 +119,18 @@ class SignalRequest extends $pb.GeneratedMessage {
? ''
: 'subscriptionPermissions',
subBuilder: UpdateSubscriptionPermissions.create)
..aOM<SyncState>(
12,
const $core.bool.fromEnvironment('protobuf.omit_field_names')
? ''
: 'syncState',
subBuilder: SyncState.create)
..aOM<SimulateScenario>(
13,
const $core.bool.fromEnvironment('protobuf.omit_field_names')
? ''
: 'simulate',
subBuilder: SimulateScenario.create)
..hasRequiredFields = false;
SignalRequest._() : super();
@@ -129,6 +145,8 @@ class SignalRequest extends $pb.GeneratedMessage {
LeaveRequest? leave,
UpdateVideoLayers? updateLayers,
UpdateSubscriptionPermissions? subscriptionPermissions,
SyncState? syncState,
SimulateScenario? simulate,
}) {
final _result = create();
if (offer != null) {
@@ -161,6 +179,12 @@ class SignalRequest extends $pb.GeneratedMessage {
if (subscriptionPermissions != null) {
_result.subscriptionPermissions = subscriptionPermissions;
}
if (syncState != null) {
_result.syncState = syncState;
}
if (simulate != null) {
_result.simulate = simulate;
}
return _result;
}
factory SignalRequest.fromBuffer($core.List<$core.int> i,
@@ -333,6 +357,34 @@ class SignalRequest extends $pb.GeneratedMessage {
void clearSubscriptionPermissions() => clearField(11);
@$pb.TagNumber(11)
UpdateSubscriptionPermissions ensureSubscriptionPermissions() => $_ensure(9);
@$pb.TagNumber(12)
SyncState get syncState => $_getN(10);
@$pb.TagNumber(12)
set syncState(SyncState v) {
setField(12, v);
}
@$pb.TagNumber(12)
$core.bool hasSyncState() => $_has(10);
@$pb.TagNumber(12)
void clearSyncState() => clearField(12);
@$pb.TagNumber(12)
SyncState ensureSyncState() => $_ensure(10);
@$pb.TagNumber(13)
SimulateScenario get simulate => $_getN(11);
@$pb.TagNumber(13)
set simulate(SimulateScenario v) {
setField(13, v);
}
@$pb.TagNumber(13)
$core.bool hasSimulate() => $_has(11);
@$pb.TagNumber(13)
void clearSimulate() => clearField(13);
@$pb.TagNumber(13)
SimulateScenario ensureSimulate() => $_ensure(11);
}
enum SignalResponse_Message {
@@ -3044,3 +3096,262 @@ class SubscriptionPermissionUpdate extends $pb.GeneratedMessage {
@$pb.TagNumber(3)
void clearAllowed() => clearField(3);
}
class SyncState extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
const $core.bool.fromEnvironment('protobuf.omit_message_names')
? ''
: 'SyncState',
package: const $pb.PackageName(
const $core.bool.fromEnvironment('protobuf.omit_message_names')
? ''
: 'livekit'),
createEmptyInstance: create)
..aOM<SessionDescription>(
1,
const $core.bool.fromEnvironment('protobuf.omit_field_names')
? ''
: 'answer',
subBuilder: SessionDescription.create)
..aOM<UpdateSubscription>(
2,
const $core.bool.fromEnvironment('protobuf.omit_field_names')
? ''
: 'subscription',
subBuilder: UpdateSubscription.create)
..pc<TrackPublishedResponse>(
3,
const $core.bool.fromEnvironment('protobuf.omit_field_names')
? ''
: 'publishTracks',
$pb.PbFieldType.PM,
subBuilder: TrackPublishedResponse.create)
..hasRequiredFields = false;
SyncState._() : super();
factory SyncState({
SessionDescription? answer,
UpdateSubscription? subscription,
$core.Iterable<TrackPublishedResponse>? publishTracks,
}) {
final _result = create();
if (answer != null) {
_result.answer = answer;
}
if (subscription != null) {
_result.subscription = subscription;
}
if (publishTracks != null) {
_result.publishTracks.addAll(publishTracks);
}
return _result;
}
factory SyncState.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory SyncState.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
SyncState clone() => SyncState()..mergeFromMessage(this);
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
SyncState copyWith(void Function(SyncState) updates) =>
super.copyWith((message) => updates(message as SyncState))
as SyncState; // ignore: deprecated_member_use
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static SyncState create() => SyncState._();
SyncState createEmptyInstance() => create();
static $pb.PbList<SyncState> createRepeated() => $pb.PbList<SyncState>();
@$core.pragma('dart2js:noInline')
static SyncState getDefault() =>
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<SyncState>(create);
static SyncState? _defaultInstance;
@$pb.TagNumber(1)
SessionDescription get answer => $_getN(0);
@$pb.TagNumber(1)
set answer(SessionDescription v) {
setField(1, v);
}
@$pb.TagNumber(1)
$core.bool hasAnswer() => $_has(0);
@$pb.TagNumber(1)
void clearAnswer() => clearField(1);
@$pb.TagNumber(1)
SessionDescription ensureAnswer() => $_ensure(0);
@$pb.TagNumber(2)
UpdateSubscription get subscription => $_getN(1);
@$pb.TagNumber(2)
set subscription(UpdateSubscription v) {
setField(2, v);
}
@$pb.TagNumber(2)
$core.bool hasSubscription() => $_has(1);
@$pb.TagNumber(2)
void clearSubscription() => clearField(2);
@$pb.TagNumber(2)
UpdateSubscription ensureSubscription() => $_ensure(1);
@$pb.TagNumber(3)
$core.List<TrackPublishedResponse> get publishTracks => $_getList(2);
}
enum SimulateScenario_Scenario {
speakerUpdate,
nodeFailure,
migration,
serverLeave,
notSet
}
class SimulateScenario extends $pb.GeneratedMessage {
static const $core.Map<$core.int, SimulateScenario_Scenario>
_SimulateScenario_ScenarioByTag = {
1: SimulateScenario_Scenario.speakerUpdate,
2: SimulateScenario_Scenario.nodeFailure,
3: SimulateScenario_Scenario.migration,
4: SimulateScenario_Scenario.serverLeave,
0: SimulateScenario_Scenario.notSet
};
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
const $core.bool.fromEnvironment('protobuf.omit_message_names')
? ''
: 'SimulateScenario',
package: const $pb.PackageName(
const $core.bool.fromEnvironment('protobuf.omit_message_names')
? ''
: 'livekit'),
createEmptyInstance: create)
..oo(0, [1, 2, 3, 4])
..a<$core.int>(
1,
const $core.bool.fromEnvironment('protobuf.omit_field_names')
? ''
: 'speakerUpdate',
$pb.PbFieldType.O3)
..aOB(
2,
const $core.bool.fromEnvironment('protobuf.omit_field_names')
? ''
: 'nodeFailure')
..aOB(
3,
const $core.bool.fromEnvironment('protobuf.omit_field_names')
? ''
: 'migration')
..aOB(
4,
const $core.bool.fromEnvironment('protobuf.omit_field_names')
? ''
: 'serverLeave')
..hasRequiredFields = false;
SimulateScenario._() : super();
factory SimulateScenario({
$core.int? speakerUpdate,
$core.bool? nodeFailure,
$core.bool? migration,
$core.bool? serverLeave,
}) {
final _result = create();
if (speakerUpdate != null) {
_result.speakerUpdate = speakerUpdate;
}
if (nodeFailure != null) {
_result.nodeFailure = nodeFailure;
}
if (migration != null) {
_result.migration = migration;
}
if (serverLeave != null) {
_result.serverLeave = serverLeave;
}
return _result;
}
factory SimulateScenario.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory SimulateScenario.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
SimulateScenario clone() => SimulateScenario()..mergeFromMessage(this);
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
SimulateScenario copyWith(void Function(SimulateScenario) updates) =>
super.copyWith((message) => updates(message as SimulateScenario))
as SimulateScenario; // ignore: deprecated_member_use
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static SimulateScenario create() => SimulateScenario._();
SimulateScenario createEmptyInstance() => create();
static $pb.PbList<SimulateScenario> createRepeated() =>
$pb.PbList<SimulateScenario>();
@$core.pragma('dart2js:noInline')
static SimulateScenario getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<SimulateScenario>(create);
static SimulateScenario? _defaultInstance;
SimulateScenario_Scenario whichScenario() =>
_SimulateScenario_ScenarioByTag[$_whichOneof(0)]!;
void clearScenario() => clearField($_whichOneof(0));
@$pb.TagNumber(1)
$core.int get speakerUpdate => $_getIZ(0);
@$pb.TagNumber(1)
set speakerUpdate($core.int v) {
$_setSignedInt32(0, v);
}
@$pb.TagNumber(1)
$core.bool hasSpeakerUpdate() => $_has(0);
@$pb.TagNumber(1)
void clearSpeakerUpdate() => clearField(1);
@$pb.TagNumber(2)
$core.bool get nodeFailure => $_getBF(1);
@$pb.TagNumber(2)
set nodeFailure($core.bool v) {
$_setBool(1, v);
}
@$pb.TagNumber(2)
$core.bool hasNodeFailure() => $_has(1);
@$pb.TagNumber(2)
void clearNodeFailure() => clearField(2);
@$pb.TagNumber(3)
$core.bool get migration => $_getBF(2);
@$pb.TagNumber(3)
set migration($core.bool v) {
$_setBool(2, v);
}
@$pb.TagNumber(3)
$core.bool hasMigration() => $_has(2);
@$pb.TagNumber(3)
void clearMigration() => clearField(3);
@$pb.TagNumber(4)
$core.bool get serverLeave => $_getBF(3);
@$pb.TagNumber(4)
set serverLeave($core.bool v) {
$_setBool(3, v);
}
@$pb.TagNumber(4)
$core.bool hasServerLeave() => $_has(3);
@$pb.TagNumber(4)
void clearServerLeave() => clearField(4);
}
+91 -1
View File
@@ -127,6 +127,24 @@ const SignalRequest$json = const {
'9': 0,
'10': 'subscriptionPermissions'
},
const {
'1': 'sync_state',
'3': 12,
'4': 1,
'5': 11,
'6': '.livekit.SyncState',
'9': 0,
'10': 'syncState'
},
const {
'1': 'simulate',
'3': 13,
'4': 1,
'5': 11,
'6': '.livekit.SimulateScenario',
'9': 0,
'10': 'simulate'
},
],
'8': const [
const {'1': 'message'},
@@ -135,7 +153,7 @@ const SignalRequest$json = const {
/// Descriptor for `SignalRequest`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List signalRequestDescriptor = $convert.base64Decode(
'Cg1TaWduYWxSZXF1ZXN0EjMKBW9mZmVyGAEgASgLMhsubGl2ZWtpdC5TZXNzaW9uRGVzY3JpcHRpb25IAFIFb2ZmZXISNQoGYW5zd2VyGAIgASgLMhsubGl2ZWtpdC5TZXNzaW9uRGVzY3JpcHRpb25IAFIGYW5zd2VyEjMKB3RyaWNrbGUYAyABKAsyFy5saXZla2l0LlRyaWNrbGVSZXF1ZXN0SABSB3RyaWNrbGUSNwoJYWRkX3RyYWNrGAQgASgLMhgubGl2ZWtpdC5BZGRUcmFja1JlcXVlc3RIAFIIYWRkVHJhY2sSLwoEbXV0ZRgFIAEoCzIZLmxpdmVraXQuTXV0ZVRyYWNrUmVxdWVzdEgAUgRtdXRlEkEKDHN1YnNjcmlwdGlvbhgGIAEoCzIbLmxpdmVraXQuVXBkYXRlU3Vic2NyaXB0aW9uSABSDHN1YnNjcmlwdGlvbhJDCg10cmFja19zZXR0aW5nGAcgASgLMhwubGl2ZWtpdC5VcGRhdGVUcmFja1NldHRpbmdzSABSDHRyYWNrU2V0dGluZxItCgVsZWF2ZRgIIAEoCzIVLmxpdmVraXQuTGVhdmVSZXF1ZXN0SABSBWxlYXZlEkEKDXVwZGF0ZV9sYXllcnMYCiABKAsyGi5saXZla2l0LlVwZGF0ZVZpZGVvTGF5ZXJzSABSDHVwZGF0ZUxheWVycxJjChhzdWJzY3JpcHRpb25fcGVybWlzc2lvbnMYCyABKAsyJi5saXZla2l0LlVwZGF0ZVN1YnNjcmlwdGlvblBlcm1pc3Npb25zSABSF3N1YnNjcmlwdGlvblBlcm1pc3Npb25zQgkKB21lc3NhZ2U=');
'Cg1TaWduYWxSZXF1ZXN0EjMKBW9mZmVyGAEgASgLMhsubGl2ZWtpdC5TZXNzaW9uRGVzY3JpcHRpb25IAFIFb2ZmZXISNQoGYW5zd2VyGAIgASgLMhsubGl2ZWtpdC5TZXNzaW9uRGVzY3JpcHRpb25IAFIGYW5zd2VyEjMKB3RyaWNrbGUYAyABKAsyFy5saXZla2l0LlRyaWNrbGVSZXF1ZXN0SABSB3RyaWNrbGUSNwoJYWRkX3RyYWNrGAQgASgLMhgubGl2ZWtpdC5BZGRUcmFja1JlcXVlc3RIAFIIYWRkVHJhY2sSLwoEbXV0ZRgFIAEoCzIZLmxpdmVraXQuTXV0ZVRyYWNrUmVxdWVzdEgAUgRtdXRlEkEKDHN1YnNjcmlwdGlvbhgGIAEoCzIbLmxpdmVraXQuVXBkYXRlU3Vic2NyaXB0aW9uSABSDHN1YnNjcmlwdGlvbhJDCg10cmFja19zZXR0aW5nGAcgASgLMhwubGl2ZWtpdC5VcGRhdGVUcmFja1NldHRpbmdzSABSDHRyYWNrU2V0dGluZxItCgVsZWF2ZRgIIAEoCzIVLmxpdmVraXQuTGVhdmVSZXF1ZXN0SABSBWxlYXZlEkEKDXVwZGF0ZV9sYXllcnMYCiABKAsyGi5saXZla2l0LlVwZGF0ZVZpZGVvTGF5ZXJzSABSDHVwZGF0ZUxheWVycxJjChhzdWJzY3JpcHRpb25fcGVybWlzc2lvbnMYCyABKAsyJi5saXZla2l0LlVwZGF0ZVN1YnNjcmlwdGlvblBlcm1pc3Npb25zSABSF3N1YnNjcmlwdGlvblBlcm1pc3Npb25zEjMKCnN5bmNfc3RhdGUYDCABKAsyEi5saXZla2l0LlN5bmNTdGF0ZUgAUglzeW5jU3RhdGUSNwoIc2ltdWxhdGUYDSABKAsyGS5saXZla2l0LlNpbXVsYXRlU2NlbmFyaW9IAFIIc2ltdWxhdGVCCQoHbWVzc2FnZQ==');
@$core.Deprecated('Use signalResponseDescriptor instead')
const SignalResponse$json = const {
'1': 'SignalResponse',
@@ -773,3 +791,75 @@ const SubscriptionPermissionUpdate$json = const {
final $typed_data.Uint8List subscriptionPermissionUpdateDescriptor =
$convert.base64Decode(
'ChxTdWJzY3JpcHRpb25QZXJtaXNzaW9uVXBkYXRlEicKD3BhcnRpY2lwYW50X3NpZBgBIAEoCVIOcGFydGljaXBhbnRTaWQSGwoJdHJhY2tfc2lkGAIgASgJUgh0cmFja1NpZBIYCgdhbGxvd2VkGAMgASgIUgdhbGxvd2Vk');
@$core.Deprecated('Use syncStateDescriptor instead')
const SyncState$json = const {
'1': 'SyncState',
'2': const [
const {
'1': 'answer',
'3': 1,
'4': 1,
'5': 11,
'6': '.livekit.SessionDescription',
'10': 'answer'
},
const {
'1': 'subscription',
'3': 2,
'4': 1,
'5': 11,
'6': '.livekit.UpdateSubscription',
'10': 'subscription'
},
const {
'1': 'publish_tracks',
'3': 3,
'4': 3,
'5': 11,
'6': '.livekit.TrackPublishedResponse',
'10': 'publishTracks'
},
],
};
/// Descriptor for `SyncState`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List syncStateDescriptor = $convert.base64Decode(
'CglTeW5jU3RhdGUSMwoGYW5zd2VyGAEgASgLMhsubGl2ZWtpdC5TZXNzaW9uRGVzY3JpcHRpb25SBmFuc3dlchI/CgxzdWJzY3JpcHRpb24YAiABKAsyGy5saXZla2l0LlVwZGF0ZVN1YnNjcmlwdGlvblIMc3Vic2NyaXB0aW9uEkYKDnB1Ymxpc2hfdHJhY2tzGAMgAygLMh8ubGl2ZWtpdC5UcmFja1B1Ymxpc2hlZFJlc3BvbnNlUg1wdWJsaXNoVHJhY2tz');
@$core.Deprecated('Use simulateScenarioDescriptor instead')
const SimulateScenario$json = const {
'1': 'SimulateScenario',
'2': const [
const {
'1': 'speaker_update',
'3': 1,
'4': 1,
'5': 5,
'9': 0,
'10': 'speakerUpdate'
},
const {
'1': 'node_failure',
'3': 2,
'4': 1,
'5': 8,
'9': 0,
'10': 'nodeFailure'
},
const {'1': 'migration', '3': 3, '4': 1, '5': 8, '9': 0, '10': 'migration'},
const {
'1': 'server_leave',
'3': 4,
'4': 1,
'5': 8,
'9': 0,
'10': 'serverLeave'
},
],
'8': const [
const {'1': 'scenario'},
],
};
/// Descriptor for `SimulateScenario`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List simulateScenarioDescriptor = $convert.base64Decode(
'ChBTaW11bGF0ZVNjZW5hcmlvEicKDnNwZWFrZXJfdXBkYXRlGAEgASgFSABSDXNwZWFrZXJVcGRhdGUSIwoMbm9kZV9mYWlsdXJlGAIgASgISABSC25vZGVGYWlsdXJlEh4KCW1pZ3JhdGlvbhgDIAEoCEgAUgltaWdyYXRpb24SIwoMc2VydmVyX2xlYXZlGAQgASgISABSC3NlcnZlckxlYXZlQgoKCHNjZW5hcmlv');