diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index cbf99b2e..b684550e 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -1,4 +1,5 @@ + i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ChatReaction.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ChatReaction', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'chatID', $pb.PbFieldType.OU3, protoName: 'chatID') - ..a<$core.int>(2, _omitFieldNames ? '' : 'userID', $pb.PbFieldType.OU3, protoName: 'userID') + factory ChatReaction.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory ChatReaction.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ChatReaction', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'chatID', $pb.PbFieldType.OU3, + protoName: 'chatID') + ..a<$core.int>(2, _omitFieldNames ? '' : 'userID', $pb.PbFieldType.OU3, + protoName: 'userID') ..aOS(3, _omitFieldNames ? '' : 'username') ..aOS(4, _omitFieldNames ? '' : 'emoji') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') ChatReaction clone() => ChatReaction()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ChatReaction copyWith(void Function(ChatReaction) updates) => super.copyWith((message) => updates(message as ChatReaction)) as ChatReaction; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ChatReaction copyWith(void Function(ChatReaction) updates) => + super.copyWith((message) => updates(message as ChatReaction)) + as ChatReaction; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ChatReaction create() => ChatReaction._(); ChatReaction createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ChatReaction getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ChatReaction getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ChatReaction? _defaultInstance; @$pb.TagNumber(1) $core.int get chatID => $_getIZ(0); @$pb.TagNumber(1) - set chatID($core.int v) { $_setUnsignedInt32(0, v); } + set chatID($core.int v) { + $_setUnsignedInt32(0, v); + } + @$pb.TagNumber(1) $core.bool hasChatID() => $_has(0); @$pb.TagNumber(1) @@ -85,7 +102,10 @@ class ChatReaction extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.int get userID => $_getIZ(1); @$pb.TagNumber(2) - set userID($core.int v) { $_setUnsignedInt32(1, v); } + set userID($core.int v) { + $_setUnsignedInt32(1, v); + } + @$pb.TagNumber(2) $core.bool hasUserID() => $_has(1); @$pb.TagNumber(2) @@ -94,7 +114,10 @@ class ChatReaction extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.String get username => $_getSZ(2); @$pb.TagNumber(3) - set username($core.String v) { $_setString(2, v); } + set username($core.String v) { + $_setString(2, v); + } + @$pb.TagNumber(3) $core.bool hasUsername() => $_has(2); @$pb.TagNumber(3) @@ -103,7 +126,10 @@ class ChatReaction extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.String get emoji => $_getSZ(3); @$pb.TagNumber(4) - set emoji($core.String v) { $_setString(3, v); } + set emoji($core.String v) { + $_setString(3, v); + } + @$pb.TagNumber(4) $core.bool hasEmoji() => $_has(3); @$pb.TagNumber(4) @@ -125,40 +151,55 @@ class AddressedUser extends $pb.GeneratedMessage { return $result; } AddressedUser._() : super(); - factory AddressedUser.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory AddressedUser.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'AddressedUser', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory AddressedUser.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory AddressedUser.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AddressedUser', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..a<$core.int>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.OU3) ..aOS(2, _omitFieldNames ? '' : 'username') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') AddressedUser clone() => AddressedUser()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - AddressedUser copyWith(void Function(AddressedUser) updates) => super.copyWith((message) => updates(message as AddressedUser)) as AddressedUser; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + AddressedUser copyWith(void Function(AddressedUser) updates) => + super.copyWith((message) => updates(message as AddressedUser)) + as AddressedUser; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static AddressedUser create() => AddressedUser._(); AddressedUser createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static AddressedUser getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static AddressedUser getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static AddressedUser? _defaultInstance; @$pb.TagNumber(1) $core.int get id => $_getIZ(0); @$pb.TagNumber(1) - set id($core.int v) { $_setUnsignedInt32(0, v); } + set id($core.int v) { + $_setUnsignedInt32(0, v); + } + @$pb.TagNumber(1) $core.bool hasId() => $_has(0); @$pb.TagNumber(1) @@ -167,7 +208,10 @@ class AddressedUser extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get username => $_getSZ(1); @$pb.TagNumber(2) - set username($core.String v) { $_setString(1, v); } + set username($core.String v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasUsername() => $_has(1); @$pb.TagNumber(2) @@ -237,37 +281,54 @@ class ChatMessage extends $pb.GeneratedMessage { return $result; } ChatMessage._() : super(); - factory ChatMessage.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ChatMessage.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ChatMessage', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory ChatMessage.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory ChatMessage.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ChatMessage', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..a<$core.int>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.OU3) ..aOS(2, _omitFieldNames ? '' : 'userID', protoName: 'userID') ..aOS(3, _omitFieldNames ? '' : 'username') - ..aOS(4, _omitFieldNames ? '' : 'message') - ..aOS(5, _omitFieldNames ? '' : 'sanitizedMessage', protoName: 'sanitizedMessage') - ..a<$core.int>(6, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, protoName: 'streamID') + ..aOS(4, _omitFieldNames ? '' : 'message')..aOS( + 5, _omitFieldNames ? '' : 'sanitizedMessage', + protoName: 'sanitizedMessage') + ..a<$core.int>(6, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, + protoName: 'streamID') ..aOS(7, _omitFieldNames ? '' : 'color') ..aOB(8, _omitFieldNames ? '' : 'isVisible', protoName: 'isVisible') - ..pc(9, _omitFieldNames ? '' : 'reactions', $pb.PbFieldType.PM, subBuilder: ChatReaction.create) - ..pc(10, _omitFieldNames ? '' : 'replies', $pb.PbFieldType.PM, subBuilder: ChatMessage.create) - ..pc(11, _omitFieldNames ? '' : 'addressedUsers', $pb.PbFieldType.PM, protoName: 'addressedUsers', subBuilder: AddressedUser.create) + ..pc( + 9, _omitFieldNames ? '' : 'reactions', $pb.PbFieldType.PM, + subBuilder: ChatReaction.create) + ..pc(10, _omitFieldNames ? '' : 'replies', $pb.PbFieldType.PM, + subBuilder: ChatMessage.create) + ..pc( + 11, _omitFieldNames ? '' : 'addressedUsers', $pb.PbFieldType.PM, + protoName: 'addressedUsers', subBuilder: AddressedUser.create) ..aOB(12, _omitFieldNames ? '' : 'isResolved', protoName: 'isResolved') - ..aOM<$1.Timestamp>(13, _omitFieldNames ? '' : 'createdAt', protoName: 'createdAt', subBuilder: $1.Timestamp.create) + ..aOM<$1.Timestamp>(13, _omitFieldNames ? '' : 'createdAt', + protoName: 'createdAt', subBuilder: $1.Timestamp.create) ..aOB(14, _omitFieldNames ? '' : 'isAdmin', protoName: 'isAdmin') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') ChatMessage clone() => ChatMessage()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ChatMessage copyWith(void Function(ChatMessage) updates) => super.copyWith((message) => updates(message as ChatMessage)) as ChatMessage; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ChatMessage copyWith(void Function(ChatMessage) updates) => + super.copyWith((message) => updates(message as ChatMessage)) + as ChatMessage; $pb.BuilderInfo get info_ => _i; @@ -276,13 +337,17 @@ class ChatMessage extends $pb.GeneratedMessage { ChatMessage createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static ChatMessage getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ChatMessage getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ChatMessage? _defaultInstance; @$pb.TagNumber(1) $core.int get id => $_getIZ(0); @$pb.TagNumber(1) - set id($core.int v) { $_setUnsignedInt32(0, v); } + set id($core.int v) { + $_setUnsignedInt32(0, v); + } + @$pb.TagNumber(1) $core.bool hasId() => $_has(0); @$pb.TagNumber(1) @@ -291,7 +356,10 @@ class ChatMessage extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get userID => $_getSZ(1); @$pb.TagNumber(2) - set userID($core.String v) { $_setString(1, v); } + set userID($core.String v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasUserID() => $_has(1); @$pb.TagNumber(2) @@ -300,7 +368,10 @@ class ChatMessage extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.String get username => $_getSZ(2); @$pb.TagNumber(3) - set username($core.String v) { $_setString(2, v); } + set username($core.String v) { + $_setString(2, v); + } + @$pb.TagNumber(3) $core.bool hasUsername() => $_has(2); @$pb.TagNumber(3) @@ -309,7 +380,10 @@ class ChatMessage extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.String get message => $_getSZ(3); @$pb.TagNumber(4) - set message($core.String v) { $_setString(3, v); } + set message($core.String v) { + $_setString(3, v); + } + @$pb.TagNumber(4) $core.bool hasMessage() => $_has(3); @$pb.TagNumber(4) @@ -318,7 +392,10 @@ class ChatMessage extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.String get sanitizedMessage => $_getSZ(4); @$pb.TagNumber(5) - set sanitizedMessage($core.String v) { $_setString(4, v); } + set sanitizedMessage($core.String v) { + $_setString(4, v); + } + @$pb.TagNumber(5) $core.bool hasSanitizedMessage() => $_has(4); @$pb.TagNumber(5) @@ -327,7 +404,10 @@ class ChatMessage extends $pb.GeneratedMessage { @$pb.TagNumber(6) $core.int get streamID => $_getIZ(5); @$pb.TagNumber(6) - set streamID($core.int v) { $_setUnsignedInt32(5, v); } + set streamID($core.int v) { + $_setUnsignedInt32(5, v); + } + @$pb.TagNumber(6) $core.bool hasStreamID() => $_has(5); @$pb.TagNumber(6) @@ -336,7 +416,10 @@ class ChatMessage extends $pb.GeneratedMessage { @$pb.TagNumber(7) $core.String get color => $_getSZ(6); @$pb.TagNumber(7) - set color($core.String v) { $_setString(6, v); } + set color($core.String v) { + $_setString(6, v); + } + @$pb.TagNumber(7) $core.bool hasColor() => $_has(6); @$pb.TagNumber(7) @@ -345,7 +428,10 @@ class ChatMessage extends $pb.GeneratedMessage { @$pb.TagNumber(8) $core.bool get isVisible => $_getBF(7); @$pb.TagNumber(8) - set isVisible($core.bool v) { $_setBool(7, v); } + set isVisible($core.bool v) { + $_setBool(7, v); + } + @$pb.TagNumber(8) $core.bool hasIsVisible() => $_has(7); @$pb.TagNumber(8) @@ -363,7 +449,10 @@ class ChatMessage extends $pb.GeneratedMessage { @$pb.TagNumber(12) $core.bool get isResolved => $_getBF(11); @$pb.TagNumber(12) - set isResolved($core.bool v) { $_setBool(11, v); } + set isResolved($core.bool v) { + $_setBool(11, v); + } + @$pb.TagNumber(12) $core.bool hasIsResolved() => $_has(11); @$pb.TagNumber(12) @@ -372,7 +461,10 @@ class ChatMessage extends $pb.GeneratedMessage { @$pb.TagNumber(13) $1.Timestamp get createdAt => $_getN(12); @$pb.TagNumber(13) - set createdAt($1.Timestamp v) { setField(13, v); } + set createdAt($1.Timestamp v) { + setField(13, v); + } + @$pb.TagNumber(13) $core.bool hasCreatedAt() => $_has(12); @$pb.TagNumber(13) @@ -383,7 +475,10 @@ class ChatMessage extends $pb.GeneratedMessage { @$pb.TagNumber(14) $core.bool get isAdmin => $_getBF(13); @$pb.TagNumber(14) - set isAdmin($core.bool v) { $_setBool(13, v); } + set isAdmin($core.bool v) { + $_setBool(13, v); + } + @$pb.TagNumber(14) $core.bool hasIsAdmin() => $_has(13); @$pb.TagNumber(14) @@ -401,34 +496,48 @@ class GetChatMessagesRequest extends $pb.GeneratedMessage { return $result; } GetChatMessagesRequest._() : super(); - factory GetChatMessagesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetChatMessagesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetChatMessagesRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory GetChatMessagesRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory GetChatMessagesRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetChatMessagesRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, protoName: 'streamID') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetChatMessagesRequest clone() => GetChatMessagesRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetChatMessagesRequest copyWith(void Function(GetChatMessagesRequest) updates) => super.copyWith((message) => updates(message as GetChatMessagesRequest)) as GetChatMessagesRequest; + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetChatMessagesRequest clone() => + GetChatMessagesRequest()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetChatMessagesRequest copyWith( + void Function(GetChatMessagesRequest) updates) => + super.copyWith((message) => updates(message as GetChatMessagesRequest)) + as GetChatMessagesRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetChatMessagesRequest create() => GetChatMessagesRequest._(); GetChatMessagesRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetChatMessagesRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetChatMessagesRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetChatMessagesRequest? _defaultInstance; @$pb.TagNumber(1) @@ -459,41 +568,58 @@ class PostChatMessageRequest extends $pb.GeneratedMessage { return $result; } PostChatMessageRequest._() : super(); - factory PostChatMessageRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PostChatMessageRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PostChatMessageRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory PostChatMessageRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory PostChatMessageRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PostChatMessageRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'message') ..a<$core.int>(2, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, protoName: 'streamID') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - PostChatMessageRequest clone() => PostChatMessageRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PostChatMessageRequest copyWith(void Function(PostChatMessageRequest) updates) => super.copyWith((message) => updates(message as PostChatMessageRequest)) as PostChatMessageRequest; + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + PostChatMessageRequest clone() => + PostChatMessageRequest()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PostChatMessageRequest copyWith( + void Function(PostChatMessageRequest) updates) => + super.copyWith((message) => updates(message as PostChatMessageRequest)) + as PostChatMessageRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PostChatMessageRequest create() => PostChatMessageRequest._(); PostChatMessageRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static PostChatMessageRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PostChatMessageRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static PostChatMessageRequest? _defaultInstance; @$pb.TagNumber(1) $core.String get message => $_getSZ(0); @$pb.TagNumber(1) - set message($core.String v) { $_setString(0, v); } + set message($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasMessage() => $_has(0); @$pb.TagNumber(1) @@ -531,43 +657,60 @@ class PostChatReactionRequest extends $pb.GeneratedMessage { return $result; } PostChatReactionRequest._() : super(); - factory PostChatReactionRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PostChatReactionRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PostChatReactionRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory PostChatReactionRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory PostChatReactionRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PostChatReactionRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'emoji') ..a<$core.int>(2, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, protoName: 'streamID') ..a<$core.int>(3, _omitFieldNames ? '' : 'chatID', $pb.PbFieldType.OU3, protoName: 'chatID') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - PostChatReactionRequest clone() => PostChatReactionRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PostChatReactionRequest copyWith(void Function(PostChatReactionRequest) updates) => super.copyWith((message) => updates(message as PostChatReactionRequest)) as PostChatReactionRequest; + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + PostChatReactionRequest clone() => + PostChatReactionRequest()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PostChatReactionRequest copyWith( + void Function(PostChatReactionRequest) updates) => + super.copyWith((message) => updates(message as PostChatReactionRequest)) + as PostChatReactionRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PostChatReactionRequest create() => PostChatReactionRequest._(); PostChatReactionRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static PostChatReactionRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PostChatReactionRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static PostChatReactionRequest? _defaultInstance; @$pb.TagNumber(1) $core.String get emoji => $_getSZ(0); @$pb.TagNumber(1) - set emoji($core.String v) { $_setString(0, v); } + set emoji($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasEmoji() => $_has(0); @$pb.TagNumber(1) @@ -617,38 +760,52 @@ class DeleteChatReactionRequest extends $pb.GeneratedMessage { return $result; } DeleteChatReactionRequest._() : super(); - factory DeleteChatReactionRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory DeleteChatReactionRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DeleteChatReactionRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory DeleteChatReactionRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory DeleteChatReactionRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteChatReactionRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, protoName: 'streamID') ..a<$core.int>(2, _omitFieldNames ? '' : 'chatID', $pb.PbFieldType.OU3, protoName: 'chatID') ..a<$core.int>(3, _omitFieldNames ? '' : 'reactionID', $pb.PbFieldType.OU3, protoName: 'reactionID') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - DeleteChatReactionRequest clone() => DeleteChatReactionRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DeleteChatReactionRequest copyWith(void Function(DeleteChatReactionRequest) updates) => super.copyWith((message) => updates(message as DeleteChatReactionRequest)) as DeleteChatReactionRequest; + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + DeleteChatReactionRequest clone() => + DeleteChatReactionRequest()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DeleteChatReactionRequest copyWith( + void Function(DeleteChatReactionRequest) updates) => + super.copyWith((message) => updates(message as DeleteChatReactionRequest)) + as DeleteChatReactionRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static DeleteChatReactionRequest create() => DeleteChatReactionRequest._(); DeleteChatReactionRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static DeleteChatReactionRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DeleteChatReactionRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static DeleteChatReactionRequest? _defaultInstance; @$pb.TagNumber(1) @@ -707,43 +864,59 @@ class PostChatReplyRequest extends $pb.GeneratedMessage { return $result; } PostChatReplyRequest._() : super(); - factory PostChatReplyRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PostChatReplyRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PostChatReplyRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory PostChatReplyRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory PostChatReplyRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PostChatReplyRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'message') ..a<$core.int>(2, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, protoName: 'streamID') ..a<$core.int>(3, _omitFieldNames ? '' : 'chatID', $pb.PbFieldType.OU3, protoName: 'chatID') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - PostChatReplyRequest clone() => PostChatReplyRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PostChatReplyRequest copyWith(void Function(PostChatReplyRequest) updates) => super.copyWith((message) => updates(message as PostChatReplyRequest)) as PostChatReplyRequest; + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + PostChatReplyRequest clone() => + PostChatReplyRequest()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PostChatReplyRequest copyWith(void Function(PostChatReplyRequest) updates) => + super.copyWith((message) => updates(message as PostChatReplyRequest)) + as PostChatReplyRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PostChatReplyRequest create() => PostChatReplyRequest._(); PostChatReplyRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static PostChatReplyRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PostChatReplyRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static PostChatReplyRequest? _defaultInstance; @$pb.TagNumber(1) $core.String get message => $_getSZ(0); @$pb.TagNumber(1) - set message($core.String v) { $_setString(0, v); } + set message($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasMessage() => $_has(0); @$pb.TagNumber(1) @@ -789,36 +962,53 @@ class MarkChatMessageAsResolvedRequest extends $pb.GeneratedMessage { return $result; } MarkChatMessageAsResolvedRequest._() : super(); - factory MarkChatMessageAsResolvedRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory MarkChatMessageAsResolvedRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MarkChatMessageAsResolvedRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory MarkChatMessageAsResolvedRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory MarkChatMessageAsResolvedRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'MarkChatMessageAsResolvedRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, protoName: 'streamID') ..a<$core.int>(2, _omitFieldNames ? '' : 'chatID', $pb.PbFieldType.OU3, protoName: 'chatID') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - MarkChatMessageAsResolvedRequest clone() => MarkChatMessageAsResolvedRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - MarkChatMessageAsResolvedRequest copyWith(void Function(MarkChatMessageAsResolvedRequest) updates) => super.copyWith((message) => updates(message as MarkChatMessageAsResolvedRequest)) as MarkChatMessageAsResolvedRequest; + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + MarkChatMessageAsResolvedRequest clone() => + MarkChatMessageAsResolvedRequest()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + MarkChatMessageAsResolvedRequest copyWith( + void Function(MarkChatMessageAsResolvedRequest) updates) => + super.copyWith( + (message) => updates(message as MarkChatMessageAsResolvedRequest)) + as MarkChatMessageAsResolvedRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static MarkChatMessageAsResolvedRequest create() => MarkChatMessageAsResolvedRequest._(); + static MarkChatMessageAsResolvedRequest create() => + MarkChatMessageAsResolvedRequest._(); MarkChatMessageAsResolvedRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static MarkChatMessageAsResolvedRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static MarkChatMessageAsResolvedRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor( + create); static MarkChatMessageAsResolvedRequest? _defaultInstance; @$pb.TagNumber(1) @@ -861,36 +1051,53 @@ class MarkChatMessageAsUnresolvedRequest extends $pb.GeneratedMessage { return $result; } MarkChatMessageAsUnresolvedRequest._() : super(); - factory MarkChatMessageAsUnresolvedRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory MarkChatMessageAsUnresolvedRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MarkChatMessageAsUnresolvedRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory MarkChatMessageAsUnresolvedRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory MarkChatMessageAsUnresolvedRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'MarkChatMessageAsUnresolvedRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, protoName: 'streamID') ..a<$core.int>(2, _omitFieldNames ? '' : 'chatID', $pb.PbFieldType.OU3, protoName: 'chatID') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - MarkChatMessageAsUnresolvedRequest clone() => MarkChatMessageAsUnresolvedRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - MarkChatMessageAsUnresolvedRequest copyWith(void Function(MarkChatMessageAsUnresolvedRequest) updates) => super.copyWith((message) => updates(message as MarkChatMessageAsUnresolvedRequest)) as MarkChatMessageAsUnresolvedRequest; + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + MarkChatMessageAsUnresolvedRequest clone() => + MarkChatMessageAsUnresolvedRequest()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + MarkChatMessageAsUnresolvedRequest copyWith( + void Function(MarkChatMessageAsUnresolvedRequest) updates) => + super.copyWith((message) => + updates(message as MarkChatMessageAsUnresolvedRequest)) + as MarkChatMessageAsUnresolvedRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static MarkChatMessageAsUnresolvedRequest create() => MarkChatMessageAsUnresolvedRequest._(); + static MarkChatMessageAsUnresolvedRequest create() => + MarkChatMessageAsUnresolvedRequest._(); MarkChatMessageAsUnresolvedRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static MarkChatMessageAsUnresolvedRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static MarkChatMessageAsUnresolvedRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor( + create); static MarkChatMessageAsUnresolvedRequest? _defaultInstance; @$pb.TagNumber(1) @@ -929,41 +1136,56 @@ class GetChatMessagesResponse extends $pb.GeneratedMessage { return $result; } GetChatMessagesResponse._() : super(); - factory GetChatMessagesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetChatMessagesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetChatMessagesResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'messages', $pb.PbFieldType.PM, subBuilder: ChatMessage.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetChatMessagesResponse clone() => GetChatMessagesResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetChatMessagesResponse copyWith(void Function(GetChatMessagesResponse) updates) => super.copyWith((message) => updates(message as GetChatMessagesResponse)) as GetChatMessagesResponse; - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static GetChatMessagesResponse create() => GetChatMessagesResponse._(); - GetChatMessagesResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static GetChatMessagesResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static GetChatMessagesResponse? _defaultInstance; + factory GetChatMessagesResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); - @$pb.TagNumber(1) - $core.List get messages => $_getList(0); -} + factory GetChatMessagesResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); -class PostChatMessageResponse extends $pb.GeneratedMessage { - factory PostChatMessageResponse({ + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetChatMessagesResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'messages', $pb.PbFieldType.PM, + subBuilder: ChatMessage.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetChatMessagesResponse clone() => + GetChatMessagesResponse()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetChatMessagesResponse copyWith( + void Function(GetChatMessagesResponse) updates) => + super.copyWith((message) => updates(message as GetChatMessagesResponse)) + as GetChatMessagesResponse; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static GetChatMessagesResponse create() => GetChatMessagesResponse._(); + GetChatMessagesResponse createEmptyInstance() => create(); + + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static GetChatMessagesResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static GetChatMessagesResponse? _defaultInstance; + + @$pb.TagNumber(1) + $core.List get messages => $_getList(0); +} + +class PostChatMessageResponse extends $pb.GeneratedMessage { + factory PostChatMessageResponse({ ChatMessage? message, }) { final $result = create(); @@ -973,39 +1195,57 @@ class PostChatMessageResponse extends $pb.GeneratedMessage { return $result; } PostChatMessageResponse._() : super(); - factory PostChatMessageResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PostChatMessageResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PostChatMessageResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'message', subBuilder: ChatMessage.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - PostChatMessageResponse clone() => PostChatMessageResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PostChatMessageResponse copyWith(void Function(PostChatMessageResponse) updates) => super.copyWith((message) => updates(message as PostChatMessageResponse)) as PostChatMessageResponse; + + factory PostChatMessageResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory PostChatMessageResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PostChatMessageResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'message', + subBuilder: ChatMessage.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + PostChatMessageResponse clone() => + PostChatMessageResponse()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PostChatMessageResponse copyWith( + void Function(PostChatMessageResponse) updates) => + super.copyWith((message) => updates(message as PostChatMessageResponse)) + as PostChatMessageResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PostChatMessageResponse create() => PostChatMessageResponse._(); PostChatMessageResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static PostChatMessageResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PostChatMessageResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static PostChatMessageResponse? _defaultInstance; @$pb.TagNumber(1) ChatMessage get message => $_getN(0); @$pb.TagNumber(1) - set message(ChatMessage v) { setField(1, v); } + set message(ChatMessage v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasMessage() => $_has(0); @$pb.TagNumber(1) @@ -1025,39 +1265,57 @@ class PostChatReactionResponse extends $pb.GeneratedMessage { return $result; } PostChatReactionResponse._() : super(); - factory PostChatReactionResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PostChatReactionResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PostChatReactionResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'reaction', subBuilder: ChatReaction.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - PostChatReactionResponse clone() => PostChatReactionResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PostChatReactionResponse copyWith(void Function(PostChatReactionResponse) updates) => super.copyWith((message) => updates(message as PostChatReactionResponse)) as PostChatReactionResponse; + + factory PostChatReactionResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory PostChatReactionResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PostChatReactionResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'reaction', + subBuilder: ChatReaction.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + PostChatReactionResponse clone() => + PostChatReactionResponse()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PostChatReactionResponse copyWith( + void Function(PostChatReactionResponse) updates) => + super.copyWith((message) => updates(message as PostChatReactionResponse)) + as PostChatReactionResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PostChatReactionResponse create() => PostChatReactionResponse._(); PostChatReactionResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static PostChatReactionResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PostChatReactionResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static PostChatReactionResponse? _defaultInstance; @$pb.TagNumber(1) ChatReaction get reaction => $_getN(0); @$pb.TagNumber(1) - set reaction(ChatReaction v) { setField(1, v); } + set reaction(ChatReaction v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasReaction() => $_has(0); @$pb.TagNumber(1) @@ -1069,32 +1327,47 @@ class PostChatReactionResponse extends $pb.GeneratedMessage { class DeleteChatReactionResponse extends $pb.GeneratedMessage { factory DeleteChatReactionResponse() => create(); DeleteChatReactionResponse._() : super(); - factory DeleteChatReactionResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory DeleteChatReactionResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DeleteChatReactionResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - DeleteChatReactionResponse clone() => DeleteChatReactionResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DeleteChatReactionResponse copyWith(void Function(DeleteChatReactionResponse) updates) => super.copyWith((message) => updates(message as DeleteChatReactionResponse)) as DeleteChatReactionResponse; + + factory DeleteChatReactionResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory DeleteChatReactionResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteChatReactionResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + DeleteChatReactionResponse clone() => + DeleteChatReactionResponse()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DeleteChatReactionResponse copyWith( + void Function(DeleteChatReactionResponse) updates) => + super.copyWith( + (message) => updates(message as DeleteChatReactionResponse)) + as DeleteChatReactionResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static DeleteChatReactionResponse create() => DeleteChatReactionResponse._(); DeleteChatReactionResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static DeleteChatReactionResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DeleteChatReactionResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static DeleteChatReactionResponse? _defaultInstance; } @@ -1109,39 +1382,57 @@ class PostChatReplyResponse extends $pb.GeneratedMessage { return $result; } PostChatReplyResponse._() : super(); - factory PostChatReplyResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PostChatReplyResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PostChatReplyResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'reply', subBuilder: ChatMessage.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - PostChatReplyResponse clone() => PostChatReplyResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PostChatReplyResponse copyWith(void Function(PostChatReplyResponse) updates) => super.copyWith((message) => updates(message as PostChatReplyResponse)) as PostChatReplyResponse; + + factory PostChatReplyResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory PostChatReplyResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PostChatReplyResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'reply', + subBuilder: ChatMessage.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + PostChatReplyResponse clone() => + PostChatReplyResponse()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PostChatReplyResponse copyWith( + void Function(PostChatReplyResponse) updates) => + super.copyWith((message) => updates(message as PostChatReplyResponse)) + as PostChatReplyResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PostChatReplyResponse create() => PostChatReplyResponse._(); PostChatReplyResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static PostChatReplyResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PostChatReplyResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static PostChatReplyResponse? _defaultInstance; @$pb.TagNumber(1) ChatMessage get reply => $_getN(0); @$pb.TagNumber(1) - set reply(ChatMessage v) { setField(1, v); } + set reply(ChatMessage v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasReply() => $_has(0); @$pb.TagNumber(1) @@ -1161,39 +1452,60 @@ class MarkChatMessageAsResolvedResponse extends $pb.GeneratedMessage { return $result; } MarkChatMessageAsResolvedResponse._() : super(); - factory MarkChatMessageAsResolvedResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory MarkChatMessageAsResolvedResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MarkChatMessageAsResolvedResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'message', subBuilder: ChatMessage.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - MarkChatMessageAsResolvedResponse clone() => MarkChatMessageAsResolvedResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - MarkChatMessageAsResolvedResponse copyWith(void Function(MarkChatMessageAsResolvedResponse) updates) => super.copyWith((message) => updates(message as MarkChatMessageAsResolvedResponse)) as MarkChatMessageAsResolvedResponse; + + factory MarkChatMessageAsResolvedResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory MarkChatMessageAsResolvedResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'MarkChatMessageAsResolvedResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'message', + subBuilder: ChatMessage.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + MarkChatMessageAsResolvedResponse clone() => + MarkChatMessageAsResolvedResponse()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + MarkChatMessageAsResolvedResponse copyWith( + void Function(MarkChatMessageAsResolvedResponse) updates) => + super.copyWith((message) => + updates(message as MarkChatMessageAsResolvedResponse)) + as MarkChatMessageAsResolvedResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static MarkChatMessageAsResolvedResponse create() => MarkChatMessageAsResolvedResponse._(); + static MarkChatMessageAsResolvedResponse create() => + MarkChatMessageAsResolvedResponse._(); MarkChatMessageAsResolvedResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static MarkChatMessageAsResolvedResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static MarkChatMessageAsResolvedResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor( + create); static MarkChatMessageAsResolvedResponse? _defaultInstance; @$pb.TagNumber(1) ChatMessage get message => $_getN(0); @$pb.TagNumber(1) - set message(ChatMessage v) { setField(1, v); } + set message(ChatMessage v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasMessage() => $_has(0); @$pb.TagNumber(1) @@ -1213,39 +1525,61 @@ class MarkChatMessageAsUnresolvedResponse extends $pb.GeneratedMessage { return $result; } MarkChatMessageAsUnresolvedResponse._() : super(); - factory MarkChatMessageAsUnresolvedResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory MarkChatMessageAsUnresolvedResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MarkChatMessageAsUnresolvedResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'message', subBuilder: ChatMessage.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - MarkChatMessageAsUnresolvedResponse clone() => MarkChatMessageAsUnresolvedResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - MarkChatMessageAsUnresolvedResponse copyWith(void Function(MarkChatMessageAsUnresolvedResponse) updates) => super.copyWith((message) => updates(message as MarkChatMessageAsUnresolvedResponse)) as MarkChatMessageAsUnresolvedResponse; + + factory MarkChatMessageAsUnresolvedResponse.fromBuffer( + $core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory MarkChatMessageAsUnresolvedResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'MarkChatMessageAsUnresolvedResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'message', + subBuilder: ChatMessage.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + MarkChatMessageAsUnresolvedResponse clone() => + MarkChatMessageAsUnresolvedResponse()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + MarkChatMessageAsUnresolvedResponse copyWith( + void Function(MarkChatMessageAsUnresolvedResponse) updates) => + super.copyWith((message) => + updates(message as MarkChatMessageAsUnresolvedResponse)) + as MarkChatMessageAsUnresolvedResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static MarkChatMessageAsUnresolvedResponse create() => MarkChatMessageAsUnresolvedResponse._(); + static MarkChatMessageAsUnresolvedResponse create() => + MarkChatMessageAsUnresolvedResponse._(); MarkChatMessageAsUnresolvedResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static MarkChatMessageAsUnresolvedResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static MarkChatMessageAsUnresolvedResponse getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor< + MarkChatMessageAsUnresolvedResponse>(create); static MarkChatMessageAsUnresolvedResponse? _defaultInstance; @$pb.TagNumber(1) ChatMessage get message => $_getN(0); @$pb.TagNumber(1) - set message(ChatMessage v) { setField(1, v); } + set message(ChatMessage v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasMessage() => $_has(0); @$pb.TagNumber(1) @@ -1281,11 +1615,9 @@ class Poll extends $pb.GeneratedMessage { return $result; } Poll._() : super(); - factory Poll.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Poll.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); @@ -1308,7 +1640,6 @@ class Poll extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') Poll clone() => Poll()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -1401,11 +1732,9 @@ class PollOption extends $pb.GeneratedMessage { return $result; } PollOption._() : super(); - factory PollOption.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PollOption.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); @@ -1424,7 +1753,6 @@ class PollOption extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') PollOption clone() => PollOption()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -1480,7 +1808,6 @@ class PollOption extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.bool get voted => $_getBF(3); - @$pb.TagNumber(4) set voted($core.bool v) { $_setBool(3, v); @@ -1488,7 +1815,6 @@ class PollOption extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.bool hasVoted() => $_has(3); - @$pb.TagNumber(4) void clearVoted() => clearField(4); } @@ -1504,11 +1830,9 @@ class GetPollsRequest extends $pb.GeneratedMessage { return $result; } GetPollsRequest._() : super(); - factory GetPollsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetPollsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); @@ -1525,7 +1849,6 @@ class GetPollsRequest extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') GetPollsRequest clone() => GetPollsRequest()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -1538,7 +1861,6 @@ class GetPollsRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetPollsRequest create() => GetPollsRequest._(); GetPollsRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -1574,11 +1896,9 @@ class PostPollVoteRequest extends $pb.GeneratedMessage { return $result; } PostPollVoteRequest._() : super(); - factory PostPollVoteRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PostPollVoteRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); @@ -1598,7 +1918,6 @@ class PostPollVoteRequest extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') PostPollVoteRequest clone() => PostPollVoteRequest()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -1611,7 +1930,6 @@ class PostPollVoteRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static PostPollVoteRequest create() => PostPollVoteRequest._(); PostPollVoteRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -1655,11 +1973,9 @@ class GetPollsResponse extends $pb.GeneratedMessage { return $result; } GetPollsResponse._() : super(); - factory GetPollsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetPollsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); @@ -1676,7 +1992,6 @@ class GetPollsResponse extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') GetPollsResponse clone() => GetPollsResponse()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -1689,7 +2004,6 @@ class GetPollsResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetPollsResponse create() => GetPollsResponse._(); GetPollsResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -1704,11 +2018,9 @@ class GetPollsResponse extends $pb.GeneratedMessage { class PostPollVoteResponse extends $pb.GeneratedMessage { factory PostPollVoteResponse() => create(); PostPollVoteResponse._() : super(); - factory PostPollVoteResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PostPollVoteResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); @@ -1724,7 +2036,6 @@ class PostPollVoteResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') PostPollVoteResponse clone() => PostPollVoteResponse()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -1737,7 +2048,6 @@ class PostPollVoteResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static PostPollVoteResponse create() => PostPollVoteResponse._(); PostPollVoteResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -1801,35 +2111,50 @@ class User extends $pb.GeneratedMessage { return $result; } User._() : super(); - factory User.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory User.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'User', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory User.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory User.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'User', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..a<$core.int>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.OU3) ..aOS(2, _omitFieldNames ? '' : 'name') ..aOS(3, _omitFieldNames ? '' : 'lastName', protoName: 'lastName') - ..aOS(4, _omitFieldNames ? '' : 'email') - ..aOS(5, _omitFieldNames ? '' : 'matriculationNumber', protoName: 'matriculationNumber') + ..aOS(4, _omitFieldNames ? '' : 'email')..aOS( + 5, _omitFieldNames ? '' : 'matriculationNumber', + protoName: 'matriculationNumber') ..aOS(6, _omitFieldNames ? '' : 'lrzID', protoName: 'lrzID') ..a<$core.int>(7, _omitFieldNames ? '' : 'role', $pb.PbFieldType.OU3) - ..pc(8, _omitFieldNames ? '' : 'courses', $pb.PbFieldType.PM, subBuilder: Course.create) - ..pc(9, _omitFieldNames ? '' : 'administeredCourses', $pb.PbFieldType.PM, protoName: 'administeredCourses', subBuilder: Course.create) - ..pc(10, _omitFieldNames ? '' : 'pinnedCourses', $pb.PbFieldType.PM, protoName: 'pinnedCourses', subBuilder: Course.create) - ..pc(11, _omitFieldNames ? '' : 'settings', $pb.PbFieldType.PM, subBuilder: UserSetting.create) - ..pc(12, _omitFieldNames ? '' : 'bookmarks', $pb.PbFieldType.PM, subBuilder: Bookmark.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + ..pc(8, _omitFieldNames ? '' : 'courses', $pb.PbFieldType.PM, + subBuilder: Course.create) + ..pc( + 9, _omitFieldNames ? '' : 'administeredCourses', $pb.PbFieldType.PM, + protoName: 'administeredCourses', subBuilder: Course.create) + ..pc(10, _omitFieldNames ? '' : 'pinnedCourses', $pb.PbFieldType.PM, + protoName: 'pinnedCourses', subBuilder: Course.create) + ..pc(11, _omitFieldNames ? '' : 'settings', $pb.PbFieldType.PM, + subBuilder: UserSetting.create) + ..pc(12, _omitFieldNames ? '' : 'bookmarks', $pb.PbFieldType.PM, + subBuilder: Bookmark.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') User clone() => User()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - User copyWith(void Function(User) updates) => super.copyWith((message) => updates(message as User)) as User; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + User copyWith(void Function(User) updates) => + super.copyWith((message) => updates(message as User)) as User; $pb.BuilderInfo get info_ => _i; @@ -1838,13 +2163,17 @@ class User extends $pb.GeneratedMessage { User createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static User getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static User getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static User? _defaultInstance; @$pb.TagNumber(1) $core.int get id => $_getIZ(0); @$pb.TagNumber(1) - set id($core.int v) { $_setUnsignedInt32(0, v); } + set id($core.int v) { + $_setUnsignedInt32(0, v); + } + @$pb.TagNumber(1) $core.bool hasId() => $_has(0); @$pb.TagNumber(1) @@ -1853,7 +2182,10 @@ class User extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get name => $_getSZ(1); @$pb.TagNumber(2) - set name($core.String v) { $_setString(1, v); } + set name($core.String v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasName() => $_has(1); @$pb.TagNumber(2) @@ -1862,7 +2194,10 @@ class User extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.String get lastName => $_getSZ(2); @$pb.TagNumber(3) - set lastName($core.String v) { $_setString(2, v); } + set lastName($core.String v) { + $_setString(2, v); + } + @$pb.TagNumber(3) $core.bool hasLastName() => $_has(2); @$pb.TagNumber(3) @@ -1871,7 +2206,10 @@ class User extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.String get email => $_getSZ(3); @$pb.TagNumber(4) - set email($core.String v) { $_setString(3, v); } + set email($core.String v) { + $_setString(3, v); + } + @$pb.TagNumber(4) $core.bool hasEmail() => $_has(3); @$pb.TagNumber(4) @@ -1880,7 +2218,10 @@ class User extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.String get matriculationNumber => $_getSZ(4); @$pb.TagNumber(5) - set matriculationNumber($core.String v) { $_setString(4, v); } + set matriculationNumber($core.String v) { + $_setString(4, v); + } + @$pb.TagNumber(5) $core.bool hasMatriculationNumber() => $_has(4); @$pb.TagNumber(5) @@ -1889,7 +2230,10 @@ class User extends $pb.GeneratedMessage { @$pb.TagNumber(6) $core.String get lrzID => $_getSZ(5); @$pb.TagNumber(6) - set lrzID($core.String v) { $_setString(5, v); } + set lrzID($core.String v) { + $_setString(5, v); + } + @$pb.TagNumber(6) $core.bool hasLrzID() => $_has(5); @$pb.TagNumber(6) @@ -1898,7 +2242,10 @@ class User extends $pb.GeneratedMessage { @$pb.TagNumber(7) $core.int get role => $_getIZ(6); @$pb.TagNumber(7) - set role($core.int v) { $_setUnsignedInt32(6, v); } + set role($core.int v) { + $_setUnsignedInt32(6, v); + } + @$pb.TagNumber(7) $core.bool hasRole() => $_has(6); @$pb.TagNumber(7) @@ -1935,25 +2282,37 @@ class UserSetting extends $pb.GeneratedMessage { return $result; } UserSetting._() : super(); - factory UserSetting.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory UserSetting.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UserSetting', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..e(3, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, defaultOrMaker: UserSettingType.PREFERRED_NAME, valueOf: UserSettingType.valueOf, enumValues: UserSettingType.values) + factory UserSetting.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory UserSetting.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UserSetting', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..e(3, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, + defaultOrMaker: UserSettingType.PREFERRED_NAME, + valueOf: UserSettingType.valueOf, + enumValues: UserSettingType.values) ..aOS(4, _omitFieldNames ? '' : 'value') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') UserSetting clone() => UserSetting()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - UserSetting copyWith(void Function(UserSetting) updates) => super.copyWith((message) => updates(message as UserSetting)) as UserSetting; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + UserSetting copyWith(void Function(UserSetting) updates) => + super.copyWith((message) => updates(message as UserSetting)) + as UserSetting; $pb.BuilderInfo get info_ => _i; @@ -1962,13 +2321,17 @@ class UserSetting extends $pb.GeneratedMessage { UserSetting createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static UserSetting getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static UserSetting getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static UserSetting? _defaultInstance; @$pb.TagNumber(3) UserSettingType get type => $_getN(0); @$pb.TagNumber(3) - set type(UserSettingType v) { setField(3, v); } + set type(UserSettingType v) { + setField(3, v); + } + @$pb.TagNumber(3) $core.bool hasType() => $_has(0); @$pb.TagNumber(3) @@ -1977,7 +2340,10 @@ class UserSetting extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.String get value => $_getSZ(1); @$pb.TagNumber(4) - set value($core.String v) { $_setString(1, v); } + set value($core.String v) { + $_setString(1, v); + } + @$pb.TagNumber(4) $core.bool hasValue() => $_has(1); @$pb.TagNumber(4) @@ -1987,34 +2353,46 @@ class UserSetting extends $pb.GeneratedMessage { class GetUserRequest extends $pb.GeneratedMessage { factory GetUserRequest() => create(); GetUserRequest._() : super(); - factory GetUserRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetUserRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetUserRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..hasRequiredFields = false - ; + factory GetUserRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetUserRequest clone() => GetUserRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetUserRequest copyWith(void Function(GetUserRequest) updates) => super.copyWith((message) => updates(message as GetUserRequest)) as GetUserRequest; + factory GetUserRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); - $pb.BuilderInfo get info_ => _i; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetUserRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..hasRequiredFields = false; - @$core.pragma('dart2js:noInline') - static GetUserRequest create() => GetUserRequest._(); - GetUserRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static GetUserRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static GetUserRequest? _defaultInstance; -} + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetUserRequest clone() => GetUserRequest()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetUserRequest copyWith(void Function(GetUserRequest) updates) => + super.copyWith((message) => updates(message as GetUserRequest)) + as GetUserRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static GetUserRequest create() => GetUserRequest._(); + GetUserRequest createEmptyInstance() => create(); + + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static GetUserRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static GetUserRequest? _defaultInstance; +} class GetUserCoursesRequest extends $pb.GeneratedMessage { factory GetUserCoursesRequest({ @@ -2039,36 +2417,50 @@ class GetUserCoursesRequest extends $pb.GeneratedMessage { return $result; } GetUserCoursesRequest._() : super(); - factory GetUserCoursesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetUserCoursesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetUserCoursesRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory GetUserCoursesRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory GetUserCoursesRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetUserCoursesRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..a<$core.int>(1, _omitFieldNames ? '' : 'year', $pb.PbFieldType.OU3) ..aOS(2, _omitFieldNames ? '' : 'term') ..a<$core.int>(3, _omitFieldNames ? '' : 'limit', $pb.PbFieldType.OU3) ..a<$core.int>(4, _omitFieldNames ? '' : 'skip', $pb.PbFieldType.OU3) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetUserCoursesRequest clone() => GetUserCoursesRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetUserCoursesRequest copyWith(void Function(GetUserCoursesRequest) updates) => super.copyWith((message) => updates(message as GetUserCoursesRequest)) as GetUserCoursesRequest; + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetUserCoursesRequest clone() => + GetUserCoursesRequest()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetUserCoursesRequest copyWith( + void Function(GetUserCoursesRequest) updates) => + super.copyWith((message) => updates(message as GetUserCoursesRequest)) + as GetUserCoursesRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetUserCoursesRequest create() => GetUserCoursesRequest._(); GetUserCoursesRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetUserCoursesRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetUserCoursesRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetUserCoursesRequest? _defaultInstance; @$pb.TagNumber(1) @@ -2086,7 +2478,10 @@ class GetUserCoursesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get term => $_getSZ(1); @$pb.TagNumber(2) - set term($core.String v) { $_setString(1, v); } + set term($core.String v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasTerm() => $_has(1); @$pb.TagNumber(2) @@ -2140,36 +2535,49 @@ class GetUserPinnedRequest extends $pb.GeneratedMessage { return $result; } GetUserPinnedRequest._() : super(); - factory GetUserPinnedRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetUserPinnedRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetUserPinnedRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory GetUserPinnedRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory GetUserPinnedRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetUserPinnedRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..a<$core.int>(1, _omitFieldNames ? '' : 'year', $pb.PbFieldType.OU3) ..aOS(2, _omitFieldNames ? '' : 'term') ..a<$core.int>(3, _omitFieldNames ? '' : 'limit', $pb.PbFieldType.OU3) ..a<$core.int>(4, _omitFieldNames ? '' : 'skip', $pb.PbFieldType.OU3) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetUserPinnedRequest clone() => GetUserPinnedRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetUserPinnedRequest copyWith(void Function(GetUserPinnedRequest) updates) => super.copyWith((message) => updates(message as GetUserPinnedRequest)) as GetUserPinnedRequest; + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetUserPinnedRequest clone() => + GetUserPinnedRequest()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetUserPinnedRequest copyWith(void Function(GetUserPinnedRequest) updates) => + super.copyWith((message) => updates(message as GetUserPinnedRequest)) + as GetUserPinnedRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetUserPinnedRequest create() => GetUserPinnedRequest._(); GetUserPinnedRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetUserPinnedRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetUserPinnedRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetUserPinnedRequest? _defaultInstance; @$pb.TagNumber(1) @@ -2187,7 +2595,10 @@ class GetUserPinnedRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get term => $_getSZ(1); @$pb.TagNumber(2) - set term($core.String v) { $_setString(1, v); } + set term($core.String v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasTerm() => $_has(1); @$pb.TagNumber(2) @@ -2221,64 +2632,90 @@ class GetUserPinnedRequest extends $pb.GeneratedMessage { class GetUserAdminRequest extends $pb.GeneratedMessage { factory GetUserAdminRequest() => create(); GetUserAdminRequest._() : super(); - factory GetUserAdminRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetUserAdminRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetUserAdminRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..hasRequiredFields = false - ; + factory GetUserAdminRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory GetUserAdminRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetUserAdminRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') GetUserAdminRequest clone() => GetUserAdminRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetUserAdminRequest copyWith(void Function(GetUserAdminRequest) updates) => super.copyWith((message) => updates(message as GetUserAdminRequest)) as GetUserAdminRequest; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetUserAdminRequest copyWith(void Function(GetUserAdminRequest) updates) => + super.copyWith((message) => updates(message as GetUserAdminRequest)) + as GetUserAdminRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetUserAdminRequest create() => GetUserAdminRequest._(); GetUserAdminRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetUserAdminRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetUserAdminRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetUserAdminRequest? _defaultInstance; } class GetUserSettingsRequest extends $pb.GeneratedMessage { factory GetUserSettingsRequest() => create(); GetUserSettingsRequest._() : super(); - factory GetUserSettingsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetUserSettingsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetUserSettingsRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetUserSettingsRequest clone() => GetUserSettingsRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetUserSettingsRequest copyWith(void Function(GetUserSettingsRequest) updates) => super.copyWith((message) => updates(message as GetUserSettingsRequest)) as GetUserSettingsRequest; + + factory GetUserSettingsRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory GetUserSettingsRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetUserSettingsRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetUserSettingsRequest clone() => + GetUserSettingsRequest()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetUserSettingsRequest copyWith( + void Function(GetUserSettingsRequest) updates) => + super.copyWith((message) => updates(message as GetUserSettingsRequest)) + as GetUserSettingsRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetUserSettingsRequest create() => GetUserSettingsRequest._(); GetUserSettingsRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetUserSettingsRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetUserSettingsRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetUserSettingsRequest? _defaultInstance; } @@ -2293,33 +2730,49 @@ class PatchUserSettingsRequest extends $pb.GeneratedMessage { return $result; } PatchUserSettingsRequest._() : super(); - factory PatchUserSettingsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PatchUserSettingsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PatchUserSettingsRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'userSettings', $pb.PbFieldType.PM, protoName: 'userSettings', subBuilder: UserSetting.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - PatchUserSettingsRequest clone() => PatchUserSettingsRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PatchUserSettingsRequest copyWith(void Function(PatchUserSettingsRequest) updates) => super.copyWith((message) => updates(message as PatchUserSettingsRequest)) as PatchUserSettingsRequest; + + factory PatchUserSettingsRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory PatchUserSettingsRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PatchUserSettingsRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'userSettings', $pb.PbFieldType.PM, + protoName: 'userSettings', subBuilder: UserSetting.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + PatchUserSettingsRequest clone() => + PatchUserSettingsRequest()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PatchUserSettingsRequest copyWith( + void Function(PatchUserSettingsRequest) updates) => + super.copyWith((message) => updates(message as PatchUserSettingsRequest)) + as PatchUserSettingsRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PatchUserSettingsRequest create() => PatchUserSettingsRequest._(); PatchUserSettingsRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static PatchUserSettingsRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PatchUserSettingsRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static PatchUserSettingsRequest? _defaultInstance; @$pb.TagNumber(1) @@ -2337,33 +2790,49 @@ class PatchUserSettingsResponse extends $pb.GeneratedMessage { return $result; } PatchUserSettingsResponse._() : super(); - factory PatchUserSettingsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PatchUserSettingsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PatchUserSettingsResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'userSettings', $pb.PbFieldType.PM, protoName: 'userSettings', subBuilder: UserSetting.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - PatchUserSettingsResponse clone() => PatchUserSettingsResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PatchUserSettingsResponse copyWith(void Function(PatchUserSettingsResponse) updates) => super.copyWith((message) => updates(message as PatchUserSettingsResponse)) as PatchUserSettingsResponse; + + factory PatchUserSettingsResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory PatchUserSettingsResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PatchUserSettingsResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'userSettings', $pb.PbFieldType.PM, + protoName: 'userSettings', subBuilder: UserSetting.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + PatchUserSettingsResponse clone() => + PatchUserSettingsResponse()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PatchUserSettingsResponse copyWith( + void Function(PatchUserSettingsResponse) updates) => + super.copyWith((message) => updates(message as PatchUserSettingsResponse)) + as PatchUserSettingsResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PatchUserSettingsResponse create() => PatchUserSettingsResponse._(); PatchUserSettingsResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static PatchUserSettingsResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PatchUserSettingsResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static PatchUserSettingsResponse? _defaultInstance; @$pb.TagNumber(1) @@ -2381,34 +2850,46 @@ class PostPinnedRequest extends $pb.GeneratedMessage { return $result; } PostPinnedRequest._() : super(); - factory PostPinnedRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PostPinnedRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PostPinnedRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory PostPinnedRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory PostPinnedRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PostPinnedRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..a<$core.int>(1, _omitFieldNames ? '' : 'courseID', $pb.PbFieldType.OU3, protoName: 'courseID') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') PostPinnedRequest clone() => PostPinnedRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PostPinnedRequest copyWith(void Function(PostPinnedRequest) updates) => super.copyWith((message) => updates(message as PostPinnedRequest)) as PostPinnedRequest; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PostPinnedRequest copyWith(void Function(PostPinnedRequest) updates) => + super.copyWith((message) => updates(message as PostPinnedRequest)) + as PostPinnedRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PostPinnedRequest create() => PostPinnedRequest._(); PostPinnedRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static PostPinnedRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PostPinnedRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static PostPinnedRequest? _defaultInstance; @$pb.TagNumber(1) @@ -2435,34 +2916,46 @@ class DeletePinnedRequest extends $pb.GeneratedMessage { return $result; } DeletePinnedRequest._() : super(); - factory DeletePinnedRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory DeletePinnedRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DeletePinnedRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory DeletePinnedRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory DeletePinnedRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeletePinnedRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..a<$core.int>(1, _omitFieldNames ? '' : 'courseID', $pb.PbFieldType.OU3, protoName: 'courseID') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') DeletePinnedRequest clone() => DeletePinnedRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DeletePinnedRequest copyWith(void Function(DeletePinnedRequest) updates) => super.copyWith((message) => updates(message as DeletePinnedRequest)) as DeletePinnedRequest; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DeletePinnedRequest copyWith(void Function(DeletePinnedRequest) updates) => + super.copyWith((message) => updates(message as DeletePinnedRequest)) + as DeletePinnedRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static DeletePinnedRequest create() => DeletePinnedRequest._(); DeletePinnedRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static DeletePinnedRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DeletePinnedRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static DeletePinnedRequest? _defaultInstance; @$pb.TagNumber(1) @@ -2489,39 +2982,54 @@ class GetUserResponse extends $pb.GeneratedMessage { return $result; } GetUserResponse._() : super(); - factory GetUserResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetUserResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetUserResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory GetUserResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory GetUserResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetUserResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..aOM(1, _omitFieldNames ? '' : 'user', subBuilder: User.create) - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') GetUserResponse clone() => GetUserResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetUserResponse copyWith(void Function(GetUserResponse) updates) => super.copyWith((message) => updates(message as GetUserResponse)) as GetUserResponse; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetUserResponse copyWith(void Function(GetUserResponse) updates) => + super.copyWith((message) => updates(message as GetUserResponse)) + as GetUserResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetUserResponse create() => GetUserResponse._(); GetUserResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetUserResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetUserResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetUserResponse? _defaultInstance; @$pb.TagNumber(1) User get user => $_getN(0); @$pb.TagNumber(1) - set user(User v) { setField(1, v); } + set user(User v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasUser() => $_has(0); @$pb.TagNumber(1) @@ -2541,33 +3049,48 @@ class GetUserCoursesResponse extends $pb.GeneratedMessage { return $result; } GetUserCoursesResponse._() : super(); - factory GetUserCoursesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetUserCoursesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetUserCoursesResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'courses', $pb.PbFieldType.PM, subBuilder: Course.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetUserCoursesResponse clone() => GetUserCoursesResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetUserCoursesResponse copyWith(void Function(GetUserCoursesResponse) updates) => super.copyWith((message) => updates(message as GetUserCoursesResponse)) as GetUserCoursesResponse; + + factory GetUserCoursesResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory GetUserCoursesResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetUserCoursesResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'courses', $pb.PbFieldType.PM, + subBuilder: Course.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetUserCoursesResponse clone() => + GetUserCoursesResponse()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetUserCoursesResponse copyWith( + void Function(GetUserCoursesResponse) updates) => + super.copyWith((message) => updates(message as GetUserCoursesResponse)) + as GetUserCoursesResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetUserCoursesResponse create() => GetUserCoursesResponse._(); GetUserCoursesResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetUserCoursesResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetUserCoursesResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetUserCoursesResponse? _defaultInstance; @$pb.TagNumber(1) @@ -2585,33 +3108,48 @@ class GetUserPinnedResponse extends $pb.GeneratedMessage { return $result; } GetUserPinnedResponse._() : super(); - factory GetUserPinnedResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetUserPinnedResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetUserPinnedResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'courses', $pb.PbFieldType.PM, subBuilder: Course.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetUserPinnedResponse clone() => GetUserPinnedResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetUserPinnedResponse copyWith(void Function(GetUserPinnedResponse) updates) => super.copyWith((message) => updates(message as GetUserPinnedResponse)) as GetUserPinnedResponse; + + factory GetUserPinnedResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory GetUserPinnedResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetUserPinnedResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'courses', $pb.PbFieldType.PM, + subBuilder: Course.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetUserPinnedResponse clone() => + GetUserPinnedResponse()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetUserPinnedResponse copyWith( + void Function(GetUserPinnedResponse) updates) => + super.copyWith((message) => updates(message as GetUserPinnedResponse)) + as GetUserPinnedResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetUserPinnedResponse create() => GetUserPinnedResponse._(); GetUserPinnedResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetUserPinnedResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetUserPinnedResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetUserPinnedResponse? _defaultInstance; @$pb.TagNumber(1) @@ -2629,33 +3167,47 @@ class GetUserAdminResponse extends $pb.GeneratedMessage { return $result; } GetUserAdminResponse._() : super(); - factory GetUserAdminResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetUserAdminResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetUserAdminResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'courses', $pb.PbFieldType.PM, subBuilder: Course.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetUserAdminResponse clone() => GetUserAdminResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetUserAdminResponse copyWith(void Function(GetUserAdminResponse) updates) => super.copyWith((message) => updates(message as GetUserAdminResponse)) as GetUserAdminResponse; + + factory GetUserAdminResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory GetUserAdminResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetUserAdminResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'courses', $pb.PbFieldType.PM, + subBuilder: Course.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetUserAdminResponse clone() => + GetUserAdminResponse()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetUserAdminResponse copyWith(void Function(GetUserAdminResponse) updates) => + super.copyWith((message) => updates(message as GetUserAdminResponse)) + as GetUserAdminResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetUserAdminResponse create() => GetUserAdminResponse._(); GetUserAdminResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetUserAdminResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetUserAdminResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetUserAdminResponse? _defaultInstance; @$pb.TagNumber(1) @@ -2673,33 +3225,49 @@ class GetUserSettingsResponse extends $pb.GeneratedMessage { return $result; } GetUserSettingsResponse._() : super(); - factory GetUserSettingsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetUserSettingsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetUserSettingsResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'userSettings', $pb.PbFieldType.PM, protoName: 'userSettings', subBuilder: UserSetting.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetUserSettingsResponse clone() => GetUserSettingsResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetUserSettingsResponse copyWith(void Function(GetUserSettingsResponse) updates) => super.copyWith((message) => updates(message as GetUserSettingsResponse)) as GetUserSettingsResponse; + + factory GetUserSettingsResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory GetUserSettingsResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetUserSettingsResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'userSettings', $pb.PbFieldType.PM, + protoName: 'userSettings', subBuilder: UserSetting.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetUserSettingsResponse clone() => + GetUserSettingsResponse()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetUserSettingsResponse copyWith( + void Function(GetUserSettingsResponse) updates) => + super.copyWith((message) => updates(message as GetUserSettingsResponse)) + as GetUserSettingsResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetUserSettingsResponse create() => GetUserSettingsResponse._(); GetUserSettingsResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetUserSettingsResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetUserSettingsResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetUserSettingsResponse? _defaultInstance; @$pb.TagNumber(1) @@ -2709,64 +3277,89 @@ class GetUserSettingsResponse extends $pb.GeneratedMessage { class PostPinnedResponse extends $pb.GeneratedMessage { factory PostPinnedResponse() => create(); PostPinnedResponse._() : super(); - factory PostPinnedResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PostPinnedResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PostPinnedResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..hasRequiredFields = false - ; + factory PostPinnedResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory PostPinnedResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PostPinnedResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') PostPinnedResponse clone() => PostPinnedResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PostPinnedResponse copyWith(void Function(PostPinnedResponse) updates) => super.copyWith((message) => updates(message as PostPinnedResponse)) as PostPinnedResponse; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PostPinnedResponse copyWith(void Function(PostPinnedResponse) updates) => + super.copyWith((message) => updates(message as PostPinnedResponse)) + as PostPinnedResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PostPinnedResponse create() => PostPinnedResponse._(); PostPinnedResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static PostPinnedResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PostPinnedResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static PostPinnedResponse? _defaultInstance; } class DeletePinnedResponse extends $pb.GeneratedMessage { factory DeletePinnedResponse() => create(); DeletePinnedResponse._() : super(); - factory DeletePinnedResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory DeletePinnedResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DeletePinnedResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - DeletePinnedResponse clone() => DeletePinnedResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DeletePinnedResponse copyWith(void Function(DeletePinnedResponse) updates) => super.copyWith((message) => updates(message as DeletePinnedResponse)) as DeletePinnedResponse; + + factory DeletePinnedResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory DeletePinnedResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeletePinnedResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + DeletePinnedResponse clone() => + DeletePinnedResponse()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DeletePinnedResponse copyWith(void Function(DeletePinnedResponse) updates) => + super.copyWith((message) => updates(message as DeletePinnedResponse)) + as DeletePinnedResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static DeletePinnedResponse create() => DeletePinnedResponse._(); DeletePinnedResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static DeletePinnedResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DeletePinnedResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static DeletePinnedResponse? _defaultInstance; } @@ -2805,30 +3398,40 @@ class Bookmark extends $pb.GeneratedMessage { return $result; } Bookmark._() : super(); - factory Bookmark.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Bookmark.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Bookmark', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory Bookmark.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory Bookmark.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Bookmark', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..a<$core.int>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.OU3) ..aOS(2, _omitFieldNames ? '' : 'description') ..a<$core.int>(3, _omitFieldNames ? '' : 'hours', $pb.PbFieldType.OU3) ..a<$core.int>(4, _omitFieldNames ? '' : 'minutes', $pb.PbFieldType.OU3) - ..a<$core.int>(5, _omitFieldNames ? '' : 'seconds', $pb.PbFieldType.OU3) - ..a<$core.int>(6, _omitFieldNames ? '' : 'userID', $pb.PbFieldType.OU3, protoName: 'userID') - ..a<$core.int>(7, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, protoName: 'streamID') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + ..a<$core.int>(5, _omitFieldNames ? '' : 'seconds', $pb.PbFieldType.OU3)..a< + $core.int>(6, _omitFieldNames ? '' : 'userID', $pb.PbFieldType.OU3, + protoName: 'userID')..a<$core.int>( + 7, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, + protoName: 'streamID') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Bookmark clone() => Bookmark()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Bookmark copyWith(void Function(Bookmark) updates) => super.copyWith((message) => updates(message as Bookmark)) as Bookmark; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Bookmark copyWith(void Function(Bookmark) updates) => + super.copyWith((message) => updates(message as Bookmark)) as Bookmark; $pb.BuilderInfo get info_ => _i; @@ -2837,13 +3440,17 @@ class Bookmark extends $pb.GeneratedMessage { Bookmark createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Bookmark getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Bookmark getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Bookmark? _defaultInstance; @$pb.TagNumber(1) $core.int get id => $_getIZ(0); @$pb.TagNumber(1) - set id($core.int v) { $_setUnsignedInt32(0, v); } + set id($core.int v) { + $_setUnsignedInt32(0, v); + } + @$pb.TagNumber(1) $core.bool hasId() => $_has(0); @$pb.TagNumber(1) @@ -2852,7 +3459,10 @@ class Bookmark extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get description => $_getSZ(1); @$pb.TagNumber(2) - set description($core.String v) { $_setString(1, v); } + set description($core.String v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasDescription() => $_has(1); @$pb.TagNumber(2) @@ -2861,7 +3471,10 @@ class Bookmark extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.int get hours => $_getIZ(2); @$pb.TagNumber(3) - set hours($core.int v) { $_setUnsignedInt32(2, v); } + set hours($core.int v) { + $_setUnsignedInt32(2, v); + } + @$pb.TagNumber(3) $core.bool hasHours() => $_has(2); @$pb.TagNumber(3) @@ -2870,7 +3483,10 @@ class Bookmark extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.int get minutes => $_getIZ(3); @$pb.TagNumber(4) - set minutes($core.int v) { $_setUnsignedInt32(3, v); } + set minutes($core.int v) { + $_setUnsignedInt32(3, v); + } + @$pb.TagNumber(4) $core.bool hasMinutes() => $_has(3); @$pb.TagNumber(4) @@ -2879,7 +3495,10 @@ class Bookmark extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.int get seconds => $_getIZ(4); @$pb.TagNumber(5) - set seconds($core.int v) { $_setUnsignedInt32(4, v); } + set seconds($core.int v) { + $_setUnsignedInt32(4, v); + } + @$pb.TagNumber(5) $core.bool hasSeconds() => $_has(4); @$pb.TagNumber(5) @@ -2888,7 +3507,10 @@ class Bookmark extends $pb.GeneratedMessage { @$pb.TagNumber(6) $core.int get userID => $_getIZ(5); @$pb.TagNumber(6) - set userID($core.int v) { $_setUnsignedInt32(5, v); } + set userID($core.int v) { + $_setUnsignedInt32(5, v); + } + @$pb.TagNumber(6) $core.bool hasUserID() => $_has(5); @$pb.TagNumber(6) @@ -2897,7 +3519,10 @@ class Bookmark extends $pb.GeneratedMessage { @$pb.TagNumber(7) $core.int get streamID => $_getIZ(6); @$pb.TagNumber(7) - set streamID($core.int v) { $_setUnsignedInt32(6, v); } + set streamID($core.int v) { + $_setUnsignedInt32(6, v); + } + @$pb.TagNumber(7) $core.bool hasStreamID() => $_has(6); @$pb.TagNumber(7) @@ -2915,34 +3540,46 @@ class GetBookmarksRequest extends $pb.GeneratedMessage { return $result; } GetBookmarksRequest._() : super(); - factory GetBookmarksRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetBookmarksRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetBookmarksRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory GetBookmarksRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory GetBookmarksRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetBookmarksRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, protoName: 'streamID') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') GetBookmarksRequest clone() => GetBookmarksRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetBookmarksRequest copyWith(void Function(GetBookmarksRequest) updates) => super.copyWith((message) => updates(message as GetBookmarksRequest)) as GetBookmarksRequest; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetBookmarksRequest copyWith(void Function(GetBookmarksRequest) updates) => + super.copyWith((message) => updates(message as GetBookmarksRequest)) + as GetBookmarksRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetBookmarksRequest create() => GetBookmarksRequest._(); GetBookmarksRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetBookmarksRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetBookmarksRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetBookmarksRequest? _defaultInstance; @$pb.TagNumber(1) @@ -2985,43 +3622,59 @@ class PutBookmarkRequest extends $pb.GeneratedMessage { return $result; } PutBookmarkRequest._() : super(); - factory PutBookmarkRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PutBookmarkRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PutBookmarkRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory PutBookmarkRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory PutBookmarkRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PutBookmarkRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'description') ..a<$core.int>(2, _omitFieldNames ? '' : 'hours', $pb.PbFieldType.OU3) ..a<$core.int>(3, _omitFieldNames ? '' : 'minutes', $pb.PbFieldType.OU3) - ..a<$core.int>(4, _omitFieldNames ? '' : 'seconds', $pb.PbFieldType.OU3) - ..a<$core.int>(5, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, protoName: 'streamID') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + ..a<$core.int>(4, _omitFieldNames ? '' : 'seconds', $pb.PbFieldType.OU3)..a< + $core.int>(5, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, + protoName: 'streamID') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') PutBookmarkRequest clone() => PutBookmarkRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PutBookmarkRequest copyWith(void Function(PutBookmarkRequest) updates) => super.copyWith((message) => updates(message as PutBookmarkRequest)) as PutBookmarkRequest; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PutBookmarkRequest copyWith(void Function(PutBookmarkRequest) updates) => + super.copyWith((message) => updates(message as PutBookmarkRequest)) + as PutBookmarkRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PutBookmarkRequest create() => PutBookmarkRequest._(); PutBookmarkRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static PutBookmarkRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PutBookmarkRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static PutBookmarkRequest? _defaultInstance; @$pb.TagNumber(1) $core.String get description => $_getSZ(0); @$pb.TagNumber(1) - set description($core.String v) { $_setString(0, v); } + set description($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasDescription() => $_has(0); @$pb.TagNumber(1) @@ -3030,7 +3683,10 @@ class PutBookmarkRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.int get hours => $_getIZ(1); @$pb.TagNumber(2) - set hours($core.int v) { $_setUnsignedInt32(1, v); } + set hours($core.int v) { + $_setUnsignedInt32(1, v); + } + @$pb.TagNumber(2) $core.bool hasHours() => $_has(1); @$pb.TagNumber(2) @@ -3039,7 +3695,10 @@ class PutBookmarkRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.int get minutes => $_getIZ(2); @$pb.TagNumber(3) - set minutes($core.int v) { $_setUnsignedInt32(2, v); } + set minutes($core.int v) { + $_setUnsignedInt32(2, v); + } + @$pb.TagNumber(3) $core.bool hasMinutes() => $_has(2); @$pb.TagNumber(3) @@ -3048,7 +3707,10 @@ class PutBookmarkRequest extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.int get seconds => $_getIZ(3); @$pb.TagNumber(4) - set seconds($core.int v) { $_setUnsignedInt32(3, v); } + set seconds($core.int v) { + $_setUnsignedInt32(3, v); + } + @$pb.TagNumber(4) $core.bool hasSeconds() => $_has(3); @$pb.TagNumber(4) @@ -3057,7 +3719,10 @@ class PutBookmarkRequest extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.int get streamID => $_getIZ(4); @$pb.TagNumber(5) - set streamID($core.int v) { $_setUnsignedInt32(4, v); } + set streamID($core.int v) { + $_setUnsignedInt32(4, v); + } + @$pb.TagNumber(5) $core.bool hasStreamID() => $_has(4); @$pb.TagNumber(5) @@ -3091,43 +3756,60 @@ class PatchBookmarkRequest extends $pb.GeneratedMessage { return $result; } PatchBookmarkRequest._() : super(); - factory PatchBookmarkRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PatchBookmarkRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PatchBookmarkRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory PatchBookmarkRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory PatchBookmarkRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PatchBookmarkRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'description') ..a<$core.int>(2, _omitFieldNames ? '' : 'hours', $pb.PbFieldType.OU3) ..a<$core.int>(3, _omitFieldNames ? '' : 'minutes', $pb.PbFieldType.OU3) - ..a<$core.int>(4, _omitFieldNames ? '' : 'seconds', $pb.PbFieldType.OU3) - ..a<$core.int>(5, _omitFieldNames ? '' : 'bookmarkID', $pb.PbFieldType.OU3, protoName: 'bookmarkID') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - PatchBookmarkRequest clone() => PatchBookmarkRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PatchBookmarkRequest copyWith(void Function(PatchBookmarkRequest) updates) => super.copyWith((message) => updates(message as PatchBookmarkRequest)) as PatchBookmarkRequest; + ..a<$core.int>(4, _omitFieldNames ? '' : 'seconds', $pb.PbFieldType.OU3)..a< + $core.int>(5, _omitFieldNames ? '' : 'bookmarkID', $pb.PbFieldType.OU3, + protoName: 'bookmarkID') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + PatchBookmarkRequest clone() => + PatchBookmarkRequest()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PatchBookmarkRequest copyWith(void Function(PatchBookmarkRequest) updates) => + super.copyWith((message) => updates(message as PatchBookmarkRequest)) + as PatchBookmarkRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PatchBookmarkRequest create() => PatchBookmarkRequest._(); PatchBookmarkRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static PatchBookmarkRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PatchBookmarkRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static PatchBookmarkRequest? _defaultInstance; @$pb.TagNumber(1) $core.String get description => $_getSZ(0); @$pb.TagNumber(1) - set description($core.String v) { $_setString(0, v); } + set description($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasDescription() => $_has(0); @$pb.TagNumber(1) @@ -3136,7 +3818,10 @@ class PatchBookmarkRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.int get hours => $_getIZ(1); @$pb.TagNumber(2) - set hours($core.int v) { $_setUnsignedInt32(1, v); } + set hours($core.int v) { + $_setUnsignedInt32(1, v); + } + @$pb.TagNumber(2) $core.bool hasHours() => $_has(1); @$pb.TagNumber(2) @@ -3145,7 +3830,10 @@ class PatchBookmarkRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.int get minutes => $_getIZ(2); @$pb.TagNumber(3) - set minutes($core.int v) { $_setUnsignedInt32(2, v); } + set minutes($core.int v) { + $_setUnsignedInt32(2, v); + } + @$pb.TagNumber(3) $core.bool hasMinutes() => $_has(2); @$pb.TagNumber(3) @@ -3154,7 +3842,10 @@ class PatchBookmarkRequest extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.int get seconds => $_getIZ(3); @$pb.TagNumber(4) - set seconds($core.int v) { $_setUnsignedInt32(3, v); } + set seconds($core.int v) { + $_setUnsignedInt32(3, v); + } + @$pb.TagNumber(4) $core.bool hasSeconds() => $_has(3); @$pb.TagNumber(4) @@ -3163,7 +3854,10 @@ class PatchBookmarkRequest extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.int get bookmarkID => $_getIZ(4); @$pb.TagNumber(5) - set bookmarkID($core.int v) { $_setUnsignedInt32(4, v); } + set bookmarkID($core.int v) { + $_setUnsignedInt32(4, v); + } + @$pb.TagNumber(5) $core.bool hasBookmarkID() => $_has(4); @$pb.TagNumber(5) @@ -3181,39 +3875,57 @@ class DeleteBookmarkRequest extends $pb.GeneratedMessage { return $result; } DeleteBookmarkRequest._() : super(); - factory DeleteBookmarkRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory DeleteBookmarkRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DeleteBookmarkRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'bookmarkID', $pb.PbFieldType.OU3, protoName: 'bookmarkID') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - DeleteBookmarkRequest clone() => DeleteBookmarkRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DeleteBookmarkRequest copyWith(void Function(DeleteBookmarkRequest) updates) => super.copyWith((message) => updates(message as DeleteBookmarkRequest)) as DeleteBookmarkRequest; + + factory DeleteBookmarkRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory DeleteBookmarkRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteBookmarkRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'bookmarkID', $pb.PbFieldType.OU3, + protoName: 'bookmarkID') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + DeleteBookmarkRequest clone() => + DeleteBookmarkRequest()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DeleteBookmarkRequest copyWith( + void Function(DeleteBookmarkRequest) updates) => + super.copyWith((message) => updates(message as DeleteBookmarkRequest)) + as DeleteBookmarkRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static DeleteBookmarkRequest create() => DeleteBookmarkRequest._(); DeleteBookmarkRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static DeleteBookmarkRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DeleteBookmarkRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static DeleteBookmarkRequest? _defaultInstance; @$pb.TagNumber(1) $core.int get bookmarkID => $_getIZ(0); @$pb.TagNumber(1) - set bookmarkID($core.int v) { $_setUnsignedInt32(0, v); } + set bookmarkID($core.int v) { + $_setUnsignedInt32(0, v); + } + @$pb.TagNumber(1) $core.bool hasBookmarkID() => $_has(0); @$pb.TagNumber(1) @@ -3231,33 +3943,47 @@ class GetBookmarksResponse extends $pb.GeneratedMessage { return $result; } GetBookmarksResponse._() : super(); - factory GetBookmarksResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetBookmarksResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetBookmarksResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'bookmarks', $pb.PbFieldType.PM, subBuilder: Bookmark.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetBookmarksResponse clone() => GetBookmarksResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetBookmarksResponse copyWith(void Function(GetBookmarksResponse) updates) => super.copyWith((message) => updates(message as GetBookmarksResponse)) as GetBookmarksResponse; + + factory GetBookmarksResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory GetBookmarksResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetBookmarksResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'bookmarks', $pb.PbFieldType.PM, + subBuilder: Bookmark.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetBookmarksResponse clone() => + GetBookmarksResponse()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetBookmarksResponse copyWith(void Function(GetBookmarksResponse) updates) => + super.copyWith((message) => updates(message as GetBookmarksResponse)) + as GetBookmarksResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetBookmarksResponse create() => GetBookmarksResponse._(); GetBookmarksResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetBookmarksResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetBookmarksResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetBookmarksResponse? _defaultInstance; @$pb.TagNumber(1) @@ -3275,39 +4001,55 @@ class PutBookmarkResponse extends $pb.GeneratedMessage { return $result; } PutBookmarkResponse._() : super(); - factory PutBookmarkResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PutBookmarkResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PutBookmarkResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'bookmark', subBuilder: Bookmark.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + + factory PutBookmarkResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory PutBookmarkResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PutBookmarkResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'bookmark', + subBuilder: Bookmark.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') PutBookmarkResponse clone() => PutBookmarkResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PutBookmarkResponse copyWith(void Function(PutBookmarkResponse) updates) => super.copyWith((message) => updates(message as PutBookmarkResponse)) as PutBookmarkResponse; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PutBookmarkResponse copyWith(void Function(PutBookmarkResponse) updates) => + super.copyWith((message) => updates(message as PutBookmarkResponse)) + as PutBookmarkResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PutBookmarkResponse create() => PutBookmarkResponse._(); PutBookmarkResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static PutBookmarkResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PutBookmarkResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static PutBookmarkResponse? _defaultInstance; @$pb.TagNumber(1) Bookmark get bookmark => $_getN(0); @$pb.TagNumber(1) - set bookmark(Bookmark v) { setField(1, v); } + set bookmark(Bookmark v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasBookmark() => $_has(0); @$pb.TagNumber(1) @@ -3327,39 +4069,57 @@ class PatchBookmarkResponse extends $pb.GeneratedMessage { return $result; } PatchBookmarkResponse._() : super(); - factory PatchBookmarkResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PatchBookmarkResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PatchBookmarkResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'bookmark', subBuilder: Bookmark.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - PatchBookmarkResponse clone() => PatchBookmarkResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PatchBookmarkResponse copyWith(void Function(PatchBookmarkResponse) updates) => super.copyWith((message) => updates(message as PatchBookmarkResponse)) as PatchBookmarkResponse; + + factory PatchBookmarkResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory PatchBookmarkResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PatchBookmarkResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'bookmark', + subBuilder: Bookmark.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + PatchBookmarkResponse clone() => + PatchBookmarkResponse()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PatchBookmarkResponse copyWith( + void Function(PatchBookmarkResponse) updates) => + super.copyWith((message) => updates(message as PatchBookmarkResponse)) + as PatchBookmarkResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PatchBookmarkResponse create() => PatchBookmarkResponse._(); PatchBookmarkResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static PatchBookmarkResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PatchBookmarkResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static PatchBookmarkResponse? _defaultInstance; @$pb.TagNumber(1) Bookmark get bookmark => $_getN(0); @$pb.TagNumber(1) - set bookmark(Bookmark v) { setField(1, v); } + set bookmark(Bookmark v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasBookmark() => $_has(0); @$pb.TagNumber(1) @@ -3371,32 +4131,46 @@ class PatchBookmarkResponse extends $pb.GeneratedMessage { class DeleteBookmarkResponse extends $pb.GeneratedMessage { factory DeleteBookmarkResponse() => create(); DeleteBookmarkResponse._() : super(); - factory DeleteBookmarkResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory DeleteBookmarkResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DeleteBookmarkResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - DeleteBookmarkResponse clone() => DeleteBookmarkResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DeleteBookmarkResponse copyWith(void Function(DeleteBookmarkResponse) updates) => super.copyWith((message) => updates(message as DeleteBookmarkResponse)) as DeleteBookmarkResponse; + + factory DeleteBookmarkResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory DeleteBookmarkResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteBookmarkResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + DeleteBookmarkResponse clone() => + DeleteBookmarkResponse()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DeleteBookmarkResponse copyWith( + void Function(DeleteBookmarkResponse) updates) => + super.copyWith((message) => updates(message as DeleteBookmarkResponse)) + as DeleteBookmarkResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static DeleteBookmarkResponse create() => DeleteBookmarkResponse._(); DeleteBookmarkResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static DeleteBookmarkResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DeleteBookmarkResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static DeleteBookmarkResponse? _defaultInstance; } @@ -3427,28 +4201,37 @@ class BannerAlert extends $pb.GeneratedMessage { return $result; } BannerAlert._() : super(); - factory BannerAlert.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory BannerAlert.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BannerAlert', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory BannerAlert.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory BannerAlert.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BannerAlert', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..a<$core.int>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.OU3) ..aOS(2, _omitFieldNames ? '' : 'startsAt', protoName: 'startsAt') ..aOS(3, _omitFieldNames ? '' : 'expiresAt', protoName: 'expiresAt') ..aOS(4, _omitFieldNames ? '' : 'text') ..aOB(5, _omitFieldNames ? '' : 'warn') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') BannerAlert clone() => BannerAlert()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - BannerAlert copyWith(void Function(BannerAlert) updates) => super.copyWith((message) => updates(message as BannerAlert)) as BannerAlert; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + BannerAlert copyWith(void Function(BannerAlert) updates) => + super.copyWith((message) => updates(message as BannerAlert)) + as BannerAlert; $pb.BuilderInfo get info_ => _i; @@ -3457,13 +4240,17 @@ class BannerAlert extends $pb.GeneratedMessage { BannerAlert createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static BannerAlert getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static BannerAlert getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static BannerAlert? _defaultInstance; @$pb.TagNumber(1) $core.int get id => $_getIZ(0); @$pb.TagNumber(1) - set id($core.int v) { $_setUnsignedInt32(0, v); } + set id($core.int v) { + $_setUnsignedInt32(0, v); + } + @$pb.TagNumber(1) $core.bool hasId() => $_has(0); @$pb.TagNumber(1) @@ -3472,7 +4259,10 @@ class BannerAlert extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get startsAt => $_getSZ(1); @$pb.TagNumber(2) - set startsAt($core.String v) { $_setString(1, v); } + set startsAt($core.String v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasStartsAt() => $_has(1); @$pb.TagNumber(2) @@ -3481,7 +4271,10 @@ class BannerAlert extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.String get expiresAt => $_getSZ(2); @$pb.TagNumber(3) - set expiresAt($core.String v) { $_setString(2, v); } + set expiresAt($core.String v) { + $_setString(2, v); + } + @$pb.TagNumber(3) $core.bool hasExpiresAt() => $_has(2); @$pb.TagNumber(3) @@ -3490,7 +4283,10 @@ class BannerAlert extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.String get text => $_getSZ(3); @$pb.TagNumber(4) - set text($core.String v) { $_setString(3, v); } + set text($core.String v) { + $_setString(3, v); + } + @$pb.TagNumber(4) $core.bool hasText() => $_has(3); @$pb.TagNumber(4) @@ -3499,7 +4295,10 @@ class BannerAlert extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.bool get warn => $_getBF(4); @$pb.TagNumber(5) - set warn($core.bool v) { $_setBool(4, v); } + set warn($core.bool v) { + $_setBool(4, v); + } + @$pb.TagNumber(5) $core.bool hasWarn() => $_has(4); @$pb.TagNumber(5) @@ -3529,42 +4328,58 @@ class FeatureNotification extends $pb.GeneratedMessage { return $result; } FeatureNotification._() : super(); - factory FeatureNotification.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory FeatureNotification.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'FeatureNotification', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory FeatureNotification.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory FeatureNotification.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'FeatureNotification', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..a<$core.int>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.OU3) ..aOS(2, _omitFieldNames ? '' : 'Title', protoName: 'Title') ..aOS(3, _omitFieldNames ? '' : 'Body', protoName: 'Body') - ..a<$core.int>(4, _omitFieldNames ? '' : 'Target', $pb.PbFieldType.OU3, protoName: 'Target') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + ..a<$core.int>(4, _omitFieldNames ? '' : 'Target', $pb.PbFieldType.OU3, + protoName: 'Target') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') FeatureNotification clone() => FeatureNotification()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - FeatureNotification copyWith(void Function(FeatureNotification) updates) => super.copyWith((message) => updates(message as FeatureNotification)) as FeatureNotification; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + FeatureNotification copyWith(void Function(FeatureNotification) updates) => + super.copyWith((message) => updates(message as FeatureNotification)) + as FeatureNotification; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static FeatureNotification create() => FeatureNotification._(); FeatureNotification createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static FeatureNotification getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static FeatureNotification getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static FeatureNotification? _defaultInstance; @$pb.TagNumber(1) $core.int get id => $_getIZ(0); @$pb.TagNumber(1) - set id($core.int v) { $_setUnsignedInt32(0, v); } + set id($core.int v) { + $_setUnsignedInt32(0, v); + } + @$pb.TagNumber(1) $core.bool hasId() => $_has(0); @$pb.TagNumber(1) @@ -3573,7 +4388,10 @@ class FeatureNotification extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get title => $_getSZ(1); @$pb.TagNumber(2) - set title($core.String v) { $_setString(1, v); } + set title($core.String v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasTitle() => $_has(1); @$pb.TagNumber(2) @@ -3582,7 +4400,10 @@ class FeatureNotification extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.String get body => $_getSZ(2); @$pb.TagNumber(3) - set body($core.String v) { $_setString(2, v); } + set body($core.String v) { + $_setString(2, v); + } + @$pb.TagNumber(3) $core.bool hasBody() => $_has(2); @$pb.TagNumber(3) @@ -3591,7 +4412,10 @@ class FeatureNotification extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.int get target => $_getIZ(3); @$pb.TagNumber(4) - set target($core.int v) { $_setUnsignedInt32(3, v); } + set target($core.int v) { + $_setUnsignedInt32(3, v); + } + @$pb.TagNumber(4) $core.bool hasTarget() => $_has(3); @$pb.TagNumber(4) @@ -3609,39 +4433,56 @@ class PostDeviceTokenRequest extends $pb.GeneratedMessage { return $result; } PostDeviceTokenRequest._() : super(); - factory PostDeviceTokenRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PostDeviceTokenRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PostDeviceTokenRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory PostDeviceTokenRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory PostDeviceTokenRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PostDeviceTokenRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'deviceToken', protoName: 'deviceToken') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - PostDeviceTokenRequest clone() => PostDeviceTokenRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PostDeviceTokenRequest copyWith(void Function(PostDeviceTokenRequest) updates) => super.copyWith((message) => updates(message as PostDeviceTokenRequest)) as PostDeviceTokenRequest; + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + PostDeviceTokenRequest clone() => + PostDeviceTokenRequest()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PostDeviceTokenRequest copyWith( + void Function(PostDeviceTokenRequest) updates) => + super.copyWith((message) => updates(message as PostDeviceTokenRequest)) + as PostDeviceTokenRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PostDeviceTokenRequest create() => PostDeviceTokenRequest._(); PostDeviceTokenRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static PostDeviceTokenRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PostDeviceTokenRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static PostDeviceTokenRequest? _defaultInstance; @$pb.TagNumber(1) $core.String get deviceToken => $_getSZ(0); @$pb.TagNumber(1) - set deviceToken($core.String v) { $_setString(0, v); } + set deviceToken($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasDeviceToken() => $_has(0); @$pb.TagNumber(1) @@ -3659,39 +4500,56 @@ class DeleteDeviceTokenRequest extends $pb.GeneratedMessage { return $result; } DeleteDeviceTokenRequest._() : super(); - factory DeleteDeviceTokenRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory DeleteDeviceTokenRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DeleteDeviceTokenRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory DeleteDeviceTokenRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory DeleteDeviceTokenRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteDeviceTokenRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'deviceToken', protoName: 'deviceToken') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - DeleteDeviceTokenRequest clone() => DeleteDeviceTokenRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DeleteDeviceTokenRequest copyWith(void Function(DeleteDeviceTokenRequest) updates) => super.copyWith((message) => updates(message as DeleteDeviceTokenRequest)) as DeleteDeviceTokenRequest; + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + DeleteDeviceTokenRequest clone() => + DeleteDeviceTokenRequest()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DeleteDeviceTokenRequest copyWith( + void Function(DeleteDeviceTokenRequest) updates) => + super.copyWith((message) => updates(message as DeleteDeviceTokenRequest)) + as DeleteDeviceTokenRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static DeleteDeviceTokenRequest create() => DeleteDeviceTokenRequest._(); DeleteDeviceTokenRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static DeleteDeviceTokenRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DeleteDeviceTokenRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static DeleteDeviceTokenRequest? _defaultInstance; @$pb.TagNumber(1) $core.String get deviceToken => $_getSZ(0); @$pb.TagNumber(1) - set deviceToken($core.String v) { $_setString(0, v); } + set deviceToken($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasDeviceToken() => $_has(0); @$pb.TagNumber(1) @@ -3701,128 +4559,186 @@ class DeleteDeviceTokenRequest extends $pb.GeneratedMessage { class GetBannerAlertsRequest extends $pb.GeneratedMessage { factory GetBannerAlertsRequest() => create(); GetBannerAlertsRequest._() : super(); - factory GetBannerAlertsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetBannerAlertsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetBannerAlertsRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetBannerAlertsRequest clone() => GetBannerAlertsRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetBannerAlertsRequest copyWith(void Function(GetBannerAlertsRequest) updates) => super.copyWith((message) => updates(message as GetBannerAlertsRequest)) as GetBannerAlertsRequest; + + factory GetBannerAlertsRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory GetBannerAlertsRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetBannerAlertsRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetBannerAlertsRequest clone() => + GetBannerAlertsRequest()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetBannerAlertsRequest copyWith( + void Function(GetBannerAlertsRequest) updates) => + super.copyWith((message) => updates(message as GetBannerAlertsRequest)) + as GetBannerAlertsRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetBannerAlertsRequest create() => GetBannerAlertsRequest._(); GetBannerAlertsRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetBannerAlertsRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetBannerAlertsRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetBannerAlertsRequest? _defaultInstance; } class GetFeatureNotificationsRequest extends $pb.GeneratedMessage { factory GetFeatureNotificationsRequest() => create(); GetFeatureNotificationsRequest._() : super(); - factory GetFeatureNotificationsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetFeatureNotificationsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetFeatureNotificationsRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetFeatureNotificationsRequest clone() => GetFeatureNotificationsRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetFeatureNotificationsRequest copyWith(void Function(GetFeatureNotificationsRequest) updates) => super.copyWith((message) => updates(message as GetFeatureNotificationsRequest)) as GetFeatureNotificationsRequest; + + factory GetFeatureNotificationsRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory GetFeatureNotificationsRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetFeatureNotificationsRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetFeatureNotificationsRequest clone() => + GetFeatureNotificationsRequest()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetFeatureNotificationsRequest copyWith( + void Function(GetFeatureNotificationsRequest) updates) => + super.copyWith( + (message) => updates(message as GetFeatureNotificationsRequest)) + as GetFeatureNotificationsRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static GetFeatureNotificationsRequest create() => GetFeatureNotificationsRequest._(); + static GetFeatureNotificationsRequest create() => + GetFeatureNotificationsRequest._(); GetFeatureNotificationsRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetFeatureNotificationsRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetFeatureNotificationsRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetFeatureNotificationsRequest? _defaultInstance; } class PostDeviceTokenResponse extends $pb.GeneratedMessage { factory PostDeviceTokenResponse() => create(); PostDeviceTokenResponse._() : super(); - factory PostDeviceTokenResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PostDeviceTokenResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PostDeviceTokenResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - PostDeviceTokenResponse clone() => PostDeviceTokenResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PostDeviceTokenResponse copyWith(void Function(PostDeviceTokenResponse) updates) => super.copyWith((message) => updates(message as PostDeviceTokenResponse)) as PostDeviceTokenResponse; + + factory PostDeviceTokenResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory PostDeviceTokenResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PostDeviceTokenResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + PostDeviceTokenResponse clone() => + PostDeviceTokenResponse()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PostDeviceTokenResponse copyWith( + void Function(PostDeviceTokenResponse) updates) => + super.copyWith((message) => updates(message as PostDeviceTokenResponse)) + as PostDeviceTokenResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PostDeviceTokenResponse create() => PostDeviceTokenResponse._(); PostDeviceTokenResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static PostDeviceTokenResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PostDeviceTokenResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static PostDeviceTokenResponse? _defaultInstance; } class DeleteDeviceTokenResponse extends $pb.GeneratedMessage { factory DeleteDeviceTokenResponse() => create(); DeleteDeviceTokenResponse._() : super(); - factory DeleteDeviceTokenResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory DeleteDeviceTokenResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DeleteDeviceTokenResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - DeleteDeviceTokenResponse clone() => DeleteDeviceTokenResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DeleteDeviceTokenResponse copyWith(void Function(DeleteDeviceTokenResponse) updates) => super.copyWith((message) => updates(message as DeleteDeviceTokenResponse)) as DeleteDeviceTokenResponse; + + factory DeleteDeviceTokenResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory DeleteDeviceTokenResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteDeviceTokenResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + DeleteDeviceTokenResponse clone() => + DeleteDeviceTokenResponse()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DeleteDeviceTokenResponse copyWith( + void Function(DeleteDeviceTokenResponse) updates) => + super.copyWith((message) => updates(message as DeleteDeviceTokenResponse)) + as DeleteDeviceTokenResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static DeleteDeviceTokenResponse create() => DeleteDeviceTokenResponse._(); DeleteDeviceTokenResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static DeleteDeviceTokenResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DeleteDeviceTokenResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static DeleteDeviceTokenResponse? _defaultInstance; } @@ -3837,33 +4753,49 @@ class GetBannerAlertsResponse extends $pb.GeneratedMessage { return $result; } GetBannerAlertsResponse._() : super(); - factory GetBannerAlertsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetBannerAlertsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetBannerAlertsResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'bannerAlerts', $pb.PbFieldType.PM, protoName: 'bannerAlerts', subBuilder: BannerAlert.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetBannerAlertsResponse clone() => GetBannerAlertsResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetBannerAlertsResponse copyWith(void Function(GetBannerAlertsResponse) updates) => super.copyWith((message) => updates(message as GetBannerAlertsResponse)) as GetBannerAlertsResponse; + + factory GetBannerAlertsResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory GetBannerAlertsResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetBannerAlertsResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'bannerAlerts', $pb.PbFieldType.PM, + protoName: 'bannerAlerts', subBuilder: BannerAlert.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetBannerAlertsResponse clone() => + GetBannerAlertsResponse()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetBannerAlertsResponse copyWith( + void Function(GetBannerAlertsResponse) updates) => + super.copyWith((message) => updates(message as GetBannerAlertsResponse)) + as GetBannerAlertsResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetBannerAlertsResponse create() => GetBannerAlertsResponse._(); GetBannerAlertsResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetBannerAlertsResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetBannerAlertsResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetBannerAlertsResponse? _defaultInstance; @$pb.TagNumber(1) @@ -3881,33 +4813,53 @@ class GetFeatureNotificationsResponse extends $pb.GeneratedMessage { return $result; } GetFeatureNotificationsResponse._() : super(); - factory GetFeatureNotificationsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetFeatureNotificationsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetFeatureNotificationsResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'featureNotifications', $pb.PbFieldType.PM, protoName: 'featureNotifications', subBuilder: FeatureNotification.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetFeatureNotificationsResponse clone() => GetFeatureNotificationsResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetFeatureNotificationsResponse copyWith(void Function(GetFeatureNotificationsResponse) updates) => super.copyWith((message) => updates(message as GetFeatureNotificationsResponse)) as GetFeatureNotificationsResponse; + + factory GetFeatureNotificationsResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory GetFeatureNotificationsResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetFeatureNotificationsResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'featureNotifications', $pb.PbFieldType.PM, + protoName: 'featureNotifications', + subBuilder: FeatureNotification.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetFeatureNotificationsResponse clone() => + GetFeatureNotificationsResponse()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetFeatureNotificationsResponse copyWith( + void Function(GetFeatureNotificationsResponse) updates) => + super.copyWith( + (message) => updates(message as GetFeatureNotificationsResponse)) + as GetFeatureNotificationsResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static GetFeatureNotificationsResponse create() => GetFeatureNotificationsResponse._(); + static GetFeatureNotificationsResponse create() => + GetFeatureNotificationsResponse._(); GetFeatureNotificationsResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetFeatureNotificationsResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetFeatureNotificationsResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor( + create); static GetFeatureNotificationsResponse? _defaultInstance; @$pb.TagNumber(1) @@ -3985,39 +4937,59 @@ class Course extends $pb.GeneratedMessage { return $result; } Course._() : super(); - factory Course.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Course.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Course', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory Course.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory Course.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Course', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..a<$core.int>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.OU3) ..aOS(2, _omitFieldNames ? '' : 'name') ..aOS(3, _omitFieldNames ? '' : 'slug') - ..aOM(4, _omitFieldNames ? '' : 'semester', subBuilder: Semester.create) - ..aOS(5, _omitFieldNames ? '' : 'TUMOnlineIdentifier', protoName: 'TUMOnlineIdentifier') - ..aOB(6, _omitFieldNames ? '' : 'VODEnabled', protoName: 'VODEnabled') - ..aOB(7, _omitFieldNames ? '' : 'downloadsEnabled', protoName: 'downloadsEnabled') - ..aOB(8, _omitFieldNames ? '' : 'chatEnabled', protoName: 'chatEnabled') - ..aOB(9, _omitFieldNames ? '' : 'anonymousChatEnabled', protoName: 'anonymousChatEnabled') - ..aOB(10, _omitFieldNames ? '' : 'moderatedChatEnabled', protoName: 'moderatedChatEnabled') - ..aOB(11, _omitFieldNames ? '' : 'vodChatEnabled', protoName: 'vodChatEnabled') - ..pc(12, _omitFieldNames ? '' : 'streams', $pb.PbFieldType.PM, subBuilder: Stream.create) - ..aOS(13, _omitFieldNames ? '' : 'cameraPresetPreferences', protoName: 'cameraPresetPreferences') - ..aOS(14, _omitFieldNames ? '' : 'sourcePreferences', protoName: 'sourcePreferences') - ..a<$core.int>(15, _omitFieldNames ? '' : 'lastRecordingID', $pb.PbFieldType.OU3, protoName: 'lastRecordingID') - ..a<$core.int>(16, _omitFieldNames ? '' : 'nextLectureID', $pb.PbFieldType.OU3, protoName: 'nextLectureID') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + ..aOM(4, _omitFieldNames ? '' : 'semester', + subBuilder: Semester.create) + ..aOS(5, _omitFieldNames ? '' : 'TUMOnlineIdentifier', + protoName: 'TUMOnlineIdentifier') + ..aOB(6, _omitFieldNames ? '' : 'VODEnabled', protoName: 'VODEnabled')..aOB( + 7, _omitFieldNames ? '' : 'downloadsEnabled', + protoName: 'downloadsEnabled') + ..aOB(8, _omitFieldNames ? '' : 'chatEnabled', protoName: 'chatEnabled')..aOB( + 9, _omitFieldNames ? '' : 'anonymousChatEnabled', + protoName: 'anonymousChatEnabled')..aOB( + 10, _omitFieldNames ? '' : 'moderatedChatEnabled', + protoName: 'moderatedChatEnabled')..aOB( + 11, _omitFieldNames ? '' : 'vodChatEnabled', + protoName: 'vodChatEnabled') + ..pc(12, _omitFieldNames ? '' : 'streams', $pb.PbFieldType.PM, + subBuilder: Stream.create) + ..aOS(13, _omitFieldNames ? '' : 'cameraPresetPreferences', + protoName: 'cameraPresetPreferences')..aOS( + 14, _omitFieldNames ? '' : 'sourcePreferences', + protoName: 'sourcePreferences') + ..a<$core.int>( + 15, _omitFieldNames ? '' : 'lastRecordingID', $pb.PbFieldType.OU3, + protoName: 'lastRecordingID')..a<$core.int>( + 16, _omitFieldNames ? '' : 'nextLectureID', $pb.PbFieldType.OU3, + protoName: 'nextLectureID') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Course clone() => Course()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Course copyWith(void Function(Course) updates) => super.copyWith((message) => updates(message as Course)) as Course; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Course copyWith(void Function(Course) updates) => + super.copyWith((message) => updates(message as Course)) as Course; $pb.BuilderInfo get info_ => _i; @@ -4026,13 +4998,17 @@ class Course extends $pb.GeneratedMessage { Course createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Course getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Course getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Course? _defaultInstance; @$pb.TagNumber(1) $core.int get id => $_getIZ(0); @$pb.TagNumber(1) - set id($core.int v) { $_setUnsignedInt32(0, v); } + set id($core.int v) { + $_setUnsignedInt32(0, v); + } + @$pb.TagNumber(1) $core.bool hasId() => $_has(0); @$pb.TagNumber(1) @@ -4041,7 +5017,10 @@ class Course extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get name => $_getSZ(1); @$pb.TagNumber(2) - set name($core.String v) { $_setString(1, v); } + set name($core.String v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasName() => $_has(1); @$pb.TagNumber(2) @@ -4050,7 +5029,10 @@ class Course extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.String get slug => $_getSZ(2); @$pb.TagNumber(3) - set slug($core.String v) { $_setString(2, v); } + set slug($core.String v) { + $_setString(2, v); + } + @$pb.TagNumber(3) $core.bool hasSlug() => $_has(2); @$pb.TagNumber(3) @@ -4059,7 +5041,10 @@ class Course extends $pb.GeneratedMessage { @$pb.TagNumber(4) Semester get semester => $_getN(3); @$pb.TagNumber(4) - set semester(Semester v) { setField(4, v); } + set semester(Semester v) { + setField(4, v); + } + @$pb.TagNumber(4) $core.bool hasSemester() => $_has(3); @$pb.TagNumber(4) @@ -4070,7 +5055,10 @@ class Course extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.String get tUMOnlineIdentifier => $_getSZ(4); @$pb.TagNumber(5) - set tUMOnlineIdentifier($core.String v) { $_setString(4, v); } + set tUMOnlineIdentifier($core.String v) { + $_setString(4, v); + } + @$pb.TagNumber(5) $core.bool hasTUMOnlineIdentifier() => $_has(4); @$pb.TagNumber(5) @@ -4079,7 +5067,10 @@ class Course extends $pb.GeneratedMessage { @$pb.TagNumber(6) $core.bool get vODEnabled => $_getBF(5); @$pb.TagNumber(6) - set vODEnabled($core.bool v) { $_setBool(5, v); } + set vODEnabled($core.bool v) { + $_setBool(5, v); + } + @$pb.TagNumber(6) $core.bool hasVODEnabled() => $_has(5); @$pb.TagNumber(6) @@ -4088,7 +5079,10 @@ class Course extends $pb.GeneratedMessage { @$pb.TagNumber(7) $core.bool get downloadsEnabled => $_getBF(6); @$pb.TagNumber(7) - set downloadsEnabled($core.bool v) { $_setBool(6, v); } + set downloadsEnabled($core.bool v) { + $_setBool(6, v); + } + @$pb.TagNumber(7) $core.bool hasDownloadsEnabled() => $_has(6); @$pb.TagNumber(7) @@ -4097,7 +5091,10 @@ class Course extends $pb.GeneratedMessage { @$pb.TagNumber(8) $core.bool get chatEnabled => $_getBF(7); @$pb.TagNumber(8) - set chatEnabled($core.bool v) { $_setBool(7, v); } + set chatEnabled($core.bool v) { + $_setBool(7, v); + } + @$pb.TagNumber(8) $core.bool hasChatEnabled() => $_has(7); @$pb.TagNumber(8) @@ -4106,7 +5103,10 @@ class Course extends $pb.GeneratedMessage { @$pb.TagNumber(9) $core.bool get anonymousChatEnabled => $_getBF(8); @$pb.TagNumber(9) - set anonymousChatEnabled($core.bool v) { $_setBool(8, v); } + set anonymousChatEnabled($core.bool v) { + $_setBool(8, v); + } + @$pb.TagNumber(9) $core.bool hasAnonymousChatEnabled() => $_has(8); @$pb.TagNumber(9) @@ -4115,7 +5115,10 @@ class Course extends $pb.GeneratedMessage { @$pb.TagNumber(10) $core.bool get moderatedChatEnabled => $_getBF(9); @$pb.TagNumber(10) - set moderatedChatEnabled($core.bool v) { $_setBool(9, v); } + set moderatedChatEnabled($core.bool v) { + $_setBool(9, v); + } + @$pb.TagNumber(10) $core.bool hasModeratedChatEnabled() => $_has(9); @$pb.TagNumber(10) @@ -4124,7 +5127,10 @@ class Course extends $pb.GeneratedMessage { @$pb.TagNumber(11) $core.bool get vodChatEnabled => $_getBF(10); @$pb.TagNumber(11) - set vodChatEnabled($core.bool v) { $_setBool(10, v); } + set vodChatEnabled($core.bool v) { + $_setBool(10, v); + } + @$pb.TagNumber(11) $core.bool hasVodChatEnabled() => $_has(10); @$pb.TagNumber(11) @@ -4136,7 +5142,10 @@ class Course extends $pb.GeneratedMessage { @$pb.TagNumber(13) $core.String get cameraPresetPreferences => $_getSZ(12); @$pb.TagNumber(13) - set cameraPresetPreferences($core.String v) { $_setString(12, v); } + set cameraPresetPreferences($core.String v) { + $_setString(12, v); + } + @$pb.TagNumber(13) $core.bool hasCameraPresetPreferences() => $_has(12); @$pb.TagNumber(13) @@ -4145,7 +5154,10 @@ class Course extends $pb.GeneratedMessage { @$pb.TagNumber(14) $core.String get sourcePreferences => $_getSZ(13); @$pb.TagNumber(14) - set sourcePreferences($core.String v) { $_setString(13, v); } + set sourcePreferences($core.String v) { + $_setString(13, v); + } + @$pb.TagNumber(14) $core.bool hasSourcePreferences() => $_has(13); @$pb.TagNumber(14) @@ -4154,7 +5166,10 @@ class Course extends $pb.GeneratedMessage { @$pb.TagNumber(15) $core.int get lastRecordingID => $_getIZ(14); @$pb.TagNumber(15) - set lastRecordingID($core.int v) { $_setUnsignedInt32(14, v); } + set lastRecordingID($core.int v) { + $_setUnsignedInt32(14, v); + } + @$pb.TagNumber(15) $core.bool hasLastRecordingID() => $_has(14); @$pb.TagNumber(15) @@ -4163,7 +5178,10 @@ class Course extends $pb.GeneratedMessage { @$pb.TagNumber(16) $core.int get nextLectureID => $_getIZ(15); @$pb.TagNumber(16) - set nextLectureID($core.int v) { $_setUnsignedInt32(15, v); } + set nextLectureID($core.int v) { + $_setUnsignedInt32(15, v); + } + @$pb.TagNumber(16) $core.bool hasNextLectureID() => $_has(15); @$pb.TagNumber(16) @@ -4185,25 +5203,33 @@ class Semester extends $pb.GeneratedMessage { return $result; } Semester._() : super(); - factory Semester.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Semester.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Semester', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory Semester.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory Semester.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Semester', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'teachingTerm', protoName: 'teachingTerm') ..a<$core.int>(2, _omitFieldNames ? '' : 'year', $pb.PbFieldType.OU3) - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Semester clone() => Semester()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Semester copyWith(void Function(Semester) updates) => super.copyWith((message) => updates(message as Semester)) as Semester; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Semester copyWith(void Function(Semester) updates) => + super.copyWith((message) => updates(message as Semester)) as Semester; $pb.BuilderInfo get info_ => _i; @@ -4212,13 +5238,17 @@ class Semester extends $pb.GeneratedMessage { Semester createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Semester getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Semester getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Semester? _defaultInstance; @$pb.TagNumber(1) $core.String get teachingTerm => $_getSZ(0); @$pb.TagNumber(1) - set teachingTerm($core.String v) { $_setString(0, v); } + set teachingTerm($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasTeachingTerm() => $_has(0); @$pb.TagNumber(1) @@ -4227,7 +5257,10 @@ class Semester extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.int get year => $_getIZ(1); @$pb.TagNumber(2) - set year($core.int v) { $_setUnsignedInt32(1, v); } + set year($core.int v) { + $_setUnsignedInt32(1, v); + } + @$pb.TagNumber(2) $core.bool hasYear() => $_has(1); @$pb.TagNumber(2) @@ -4257,36 +5290,50 @@ class GetPublicCoursesRequest extends $pb.GeneratedMessage { return $result; } GetPublicCoursesRequest._() : super(); - factory GetPublicCoursesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetPublicCoursesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetPublicCoursesRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory GetPublicCoursesRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory GetPublicCoursesRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetPublicCoursesRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..a<$core.int>(1, _omitFieldNames ? '' : 'year', $pb.PbFieldType.OU3) ..aOS(2, _omitFieldNames ? '' : 'term') ..a<$core.int>(3, _omitFieldNames ? '' : 'limit', $pb.PbFieldType.OU3) ..a<$core.int>(4, _omitFieldNames ? '' : 'skip', $pb.PbFieldType.OU3) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetPublicCoursesRequest clone() => GetPublicCoursesRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetPublicCoursesRequest copyWith(void Function(GetPublicCoursesRequest) updates) => super.copyWith((message) => updates(message as GetPublicCoursesRequest)) as GetPublicCoursesRequest; + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetPublicCoursesRequest clone() => + GetPublicCoursesRequest()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetPublicCoursesRequest copyWith( + void Function(GetPublicCoursesRequest) updates) => + super.copyWith((message) => updates(message as GetPublicCoursesRequest)) + as GetPublicCoursesRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetPublicCoursesRequest create() => GetPublicCoursesRequest._(); GetPublicCoursesRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetPublicCoursesRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetPublicCoursesRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetPublicCoursesRequest? _defaultInstance; @$pb.TagNumber(1) @@ -4304,7 +5351,10 @@ class GetPublicCoursesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get term => $_getSZ(1); @$pb.TagNumber(2) - set term($core.String v) { $_setString(1, v); } + set term($core.String v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasTerm() => $_has(1); @$pb.TagNumber(2) @@ -4338,32 +5388,44 @@ class GetPublicCoursesRequest extends $pb.GeneratedMessage { class GetSemestersRequest extends $pb.GeneratedMessage { factory GetSemestersRequest() => create(); GetSemestersRequest._() : super(); - factory GetSemestersRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetSemestersRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetSemestersRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..hasRequiredFields = false - ; + factory GetSemestersRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory GetSemestersRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetSemestersRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') GetSemestersRequest clone() => GetSemestersRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetSemestersRequest copyWith(void Function(GetSemestersRequest) updates) => super.copyWith((message) => updates(message as GetSemestersRequest)) as GetSemestersRequest; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetSemestersRequest copyWith(void Function(GetSemestersRequest) updates) => + super.copyWith((message) => updates(message as GetSemestersRequest)) + as GetSemestersRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetSemestersRequest create() => GetSemestersRequest._(); GetSemestersRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetSemestersRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetSemestersRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetSemestersRequest? _defaultInstance; } @@ -4378,34 +5440,48 @@ class GetCourseStreamsRequest extends $pb.GeneratedMessage { return $result; } GetCourseStreamsRequest._() : super(); - factory GetCourseStreamsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetCourseStreamsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetCourseStreamsRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory GetCourseStreamsRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory GetCourseStreamsRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetCourseStreamsRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..a<$core.int>(1, _omitFieldNames ? '' : 'courseID', $pb.PbFieldType.OU3, protoName: 'courseID') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetCourseStreamsRequest clone() => GetCourseStreamsRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetCourseStreamsRequest copyWith(void Function(GetCourseStreamsRequest) updates) => super.copyWith((message) => updates(message as GetCourseStreamsRequest)) as GetCourseStreamsRequest; + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetCourseStreamsRequest clone() => + GetCourseStreamsRequest()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetCourseStreamsRequest copyWith( + void Function(GetCourseStreamsRequest) updates) => + super.copyWith((message) => updates(message as GetCourseStreamsRequest)) + as GetCourseStreamsRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetCourseStreamsRequest create() => GetCourseStreamsRequest._(); GetCourseStreamsRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetCourseStreamsRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetCourseStreamsRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetCourseStreamsRequest? _defaultInstance; @$pb.TagNumber(1) @@ -4432,33 +5508,48 @@ class GetPublicCoursesResponse extends $pb.GeneratedMessage { return $result; } GetPublicCoursesResponse._() : super(); - factory GetPublicCoursesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetPublicCoursesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetPublicCoursesResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'courses', $pb.PbFieldType.PM, subBuilder: Course.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetPublicCoursesResponse clone() => GetPublicCoursesResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetPublicCoursesResponse copyWith(void Function(GetPublicCoursesResponse) updates) => super.copyWith((message) => updates(message as GetPublicCoursesResponse)) as GetPublicCoursesResponse; + + factory GetPublicCoursesResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory GetPublicCoursesResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetPublicCoursesResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'courses', $pb.PbFieldType.PM, + subBuilder: Course.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetPublicCoursesResponse clone() => + GetPublicCoursesResponse()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetPublicCoursesResponse copyWith( + void Function(GetPublicCoursesResponse) updates) => + super.copyWith((message) => updates(message as GetPublicCoursesResponse)) + as GetPublicCoursesResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetPublicCoursesResponse create() => GetPublicCoursesResponse._(); GetPublicCoursesResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetPublicCoursesResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetPublicCoursesResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetPublicCoursesResponse? _defaultInstance; @$pb.TagNumber(1) @@ -4480,40 +5571,58 @@ class GetSemestersResponse extends $pb.GeneratedMessage { return $result; } GetSemestersResponse._() : super(); - factory GetSemestersResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetSemestersResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetSemestersResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'current', subBuilder: Semester.create) - ..pc(2, _omitFieldNames ? '' : 'semesters', $pb.PbFieldType.PM, subBuilder: Semester.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetSemestersResponse clone() => GetSemestersResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetSemestersResponse copyWith(void Function(GetSemestersResponse) updates) => super.copyWith((message) => updates(message as GetSemestersResponse)) as GetSemestersResponse; + + factory GetSemestersResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory GetSemestersResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetSemestersResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'current', + subBuilder: Semester.create) + ..pc(2, _omitFieldNames ? '' : 'semesters', $pb.PbFieldType.PM, + subBuilder: Semester.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetSemestersResponse clone() => + GetSemestersResponse()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetSemestersResponse copyWith(void Function(GetSemestersResponse) updates) => + super.copyWith((message) => updates(message as GetSemestersResponse)) + as GetSemestersResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetSemestersResponse create() => GetSemestersResponse._(); GetSemestersResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetSemestersResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetSemestersResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetSemestersResponse? _defaultInstance; @$pb.TagNumber(1) Semester get current => $_getN(0); @$pb.TagNumber(1) - set current(Semester v) { setField(1, v); } + set current(Semester v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasCurrent() => $_has(0); @$pb.TagNumber(1) @@ -4536,33 +5645,48 @@ class GetCourseStreamsResponse extends $pb.GeneratedMessage { return $result; } GetCourseStreamsResponse._() : super(); - factory GetCourseStreamsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetCourseStreamsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetCourseStreamsResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'streams', $pb.PbFieldType.PM, subBuilder: Stream.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetCourseStreamsResponse clone() => GetCourseStreamsResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetCourseStreamsResponse copyWith(void Function(GetCourseStreamsResponse) updates) => super.copyWith((message) => updates(message as GetCourseStreamsResponse)) as GetCourseStreamsResponse; + + factory GetCourseStreamsResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory GetCourseStreamsResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetCourseStreamsResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'streams', $pb.PbFieldType.PM, + subBuilder: Stream.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetCourseStreamsResponse clone() => + GetCourseStreamsResponse()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetCourseStreamsResponse copyWith( + void Function(GetCourseStreamsResponse) updates) => + super.copyWith((message) => updates(message as GetCourseStreamsResponse)) + as GetCourseStreamsResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetCourseStreamsResponse create() => GetCourseStreamsResponse._(); GetCourseStreamsResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetCourseStreamsResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetCourseStreamsResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetCourseStreamsResponse? _defaultInstance; @$pb.TagNumber(1) @@ -4688,27 +5812,46 @@ class Stream extends $pb.GeneratedMessage { return $result; } Stream._() : super(); - factory Stream.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Stream.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Stream', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory Stream.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory Stream.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Stream', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..a<$core.int>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.OU3) ..aOS(2, _omitFieldNames ? '' : 'name') ..aOS(3, _omitFieldNames ? '' : 'description') - ..a<$core.int>(4, _omitFieldNames ? '' : 'courseID', $pb.PbFieldType.OU3, protoName: 'courseID') - ..aOM<$1.Timestamp>(5, _omitFieldNames ? '' : 'start', subBuilder: $1.Timestamp.create) - ..aOM<$1.Timestamp>(6, _omitFieldNames ? '' : 'end', subBuilder: $1.Timestamp.create) + ..a<$core.int>(4, _omitFieldNames ? '' : 'courseID', $pb.PbFieldType.OU3, + protoName: 'courseID') + ..aOM<$1.Timestamp>(5, _omitFieldNames ? '' : 'start', + subBuilder: $1.Timestamp.create) + ..aOM<$1.Timestamp>(6, _omitFieldNames ? '' : 'end', + subBuilder: $1.Timestamp.create) ..aOB(7, _omitFieldNames ? '' : 'chatEnabled', protoName: 'chatEnabled') ..aOS(8, _omitFieldNames ? '' : 'roomName', protoName: 'roomName') - ..aOS(9, _omitFieldNames ? '' : 'roomCode', protoName: 'roomCode') - ..aOS(10, _omitFieldNames ? '' : 'eventTypeName', protoName: 'eventTypeName') - ..a<$core.int>(11, _omitFieldNames ? '' : 'TUMOnlineEventID', $pb.PbFieldType.OU3, protoName: 'TUMOnlineEventID') - ..aOS(12, _omitFieldNames ? '' : 'seriesIdentifier', protoName: 'seriesIdentifier') - ..aOS(13, _omitFieldNames ? '' : 'playlistUrl', protoName: 'playlistUrl') - ..aOS(14, _omitFieldNames ? '' : 'playlistUrlPRES', protoName: 'playlistUrlPRES') - ..aOS(15, _omitFieldNames ? '' : 'playlistUrlCAM', protoName: 'playlistUrlCAM') + ..aOS(9, _omitFieldNames ? '' : 'roomCode', protoName: 'roomCode')..aOS( + 10, _omitFieldNames ? '' : 'eventTypeName', + protoName: 'eventTypeName') + ..a<$core.int>( + 11, _omitFieldNames ? '' : 'TUMOnlineEventID', $pb.PbFieldType.OU3, + protoName: 'TUMOnlineEventID') + ..aOS(12, _omitFieldNames ? '' : 'seriesIdentifier', + protoName: 'seriesIdentifier') + ..aOS(13, _omitFieldNames ? '' : 'playlistUrl', protoName: 'playlistUrl')..aOS( + 14, _omitFieldNames ? '' : 'playlistUrlPRES', + protoName: 'playlistUrlPRES')..aOS( + 15, _omitFieldNames ? '' : 'playlistUrlCAM', + protoName: 'playlistUrlCAM') ..aOB(16, _omitFieldNames ? '' : 'liveNow', protoName: 'liveNow') - ..aOM<$1.Timestamp>(17, _omitFieldNames ? '' : 'liveNowTimestamp', protoName: 'liveNowTimestamp', subBuilder: $1.Timestamp.create) + ..aOM<$1.Timestamp>(17, _omitFieldNames ? '' : 'liveNowTimestamp', + protoName: 'liveNowTimestamp', subBuilder: $1.Timestamp.create) ..aOB(18, _omitFieldNames ? '' : 'recording') ..aOB(19, _omitFieldNames ? '' : 'premiere') ..aOB(20, _omitFieldNames ? '' : 'ended') @@ -4720,23 +5863,23 @@ class Stream extends $pb.GeneratedMessage { ..a<$core.int>(23, _omitFieldNames ? '' : 'endOffset', $pb.PbFieldType.OU3, protoName: 'endOffset') ..a<$core.int>(28, _omitFieldNames ? '' : 'duration', $pb.PbFieldType.OU3) - ..pc(29, _omitFieldNames ? '' : 'downloads', $pb.PbFieldType.PM, subBuilder: Download.create) + ..pc(29, _omitFieldNames ? '' : 'downloads', $pb.PbFieldType.PM, + subBuilder: Download.create) ..aOB(30, _omitFieldNames ? '' : 'isPlanned', protoName: 'isPlanned') ..aOB(31, _omitFieldNames ? '' : 'isComingUp', protoName: 'isComingUp') ..aOS(32, _omitFieldNames ? '' : 'HLSUrl', protoName: 'HLSUrl') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Stream clone() => Stream()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Stream copyWith(void Function(Stream) updates) => super.copyWith((message) => updates(message as Stream)) as Stream; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Stream copyWith(void Function(Stream) updates) => + super.copyWith((message) => updates(message as Stream)) as Stream; $pb.BuilderInfo get info_ => _i; @@ -4745,7 +5888,8 @@ class Stream extends $pb.GeneratedMessage { Stream createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Stream getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Stream getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Stream? _defaultInstance; @$pb.TagNumber(1) @@ -4763,7 +5907,10 @@ class Stream extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get name => $_getSZ(1); @$pb.TagNumber(2) - set name($core.String v) { $_setString(1, v); } + set name($core.String v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasName() => $_has(1); @$pb.TagNumber(2) @@ -4772,7 +5919,10 @@ class Stream extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.String get description => $_getSZ(2); @$pb.TagNumber(3) - set description($core.String v) { $_setString(2, v); } + set description($core.String v) { + $_setString(2, v); + } + @$pb.TagNumber(3) $core.bool hasDescription() => $_has(2); @$pb.TagNumber(3) @@ -4781,7 +5931,10 @@ class Stream extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.int get courseID => $_getIZ(3); @$pb.TagNumber(4) - set courseID($core.int v) { $_setUnsignedInt32(3, v); } + set courseID($core.int v) { + $_setUnsignedInt32(3, v); + } + @$pb.TagNumber(4) $core.bool hasCourseID() => $_has(3); @$pb.TagNumber(4) @@ -4790,7 +5943,10 @@ class Stream extends $pb.GeneratedMessage { @$pb.TagNumber(5) $1.Timestamp get start => $_getN(4); @$pb.TagNumber(5) - set start($1.Timestamp v) { setField(5, v); } + set start($1.Timestamp v) { + setField(5, v); + } + @$pb.TagNumber(5) $core.bool hasStart() => $_has(4); @$pb.TagNumber(5) @@ -4801,7 +5957,10 @@ class Stream extends $pb.GeneratedMessage { @$pb.TagNumber(6) $1.Timestamp get end => $_getN(5); @$pb.TagNumber(6) - set end($1.Timestamp v) { setField(6, v); } + set end($1.Timestamp v) { + setField(6, v); + } + @$pb.TagNumber(6) $core.bool hasEnd() => $_has(5); @$pb.TagNumber(6) @@ -4812,7 +5971,10 @@ class Stream extends $pb.GeneratedMessage { @$pb.TagNumber(7) $core.bool get chatEnabled => $_getBF(6); @$pb.TagNumber(7) - set chatEnabled($core.bool v) { $_setBool(6, v); } + set chatEnabled($core.bool v) { + $_setBool(6, v); + } + @$pb.TagNumber(7) $core.bool hasChatEnabled() => $_has(6); @$pb.TagNumber(7) @@ -4821,7 +5983,10 @@ class Stream extends $pb.GeneratedMessage { @$pb.TagNumber(8) $core.String get roomName => $_getSZ(7); @$pb.TagNumber(8) - set roomName($core.String v) { $_setString(7, v); } + set roomName($core.String v) { + $_setString(7, v); + } + @$pb.TagNumber(8) $core.bool hasRoomName() => $_has(7); @$pb.TagNumber(8) @@ -4830,7 +5995,10 @@ class Stream extends $pb.GeneratedMessage { @$pb.TagNumber(9) $core.String get roomCode => $_getSZ(8); @$pb.TagNumber(9) - set roomCode($core.String v) { $_setString(8, v); } + set roomCode($core.String v) { + $_setString(8, v); + } + @$pb.TagNumber(9) $core.bool hasRoomCode() => $_has(8); @$pb.TagNumber(9) @@ -4839,7 +6007,10 @@ class Stream extends $pb.GeneratedMessage { @$pb.TagNumber(10) $core.String get eventTypeName => $_getSZ(9); @$pb.TagNumber(10) - set eventTypeName($core.String v) { $_setString(9, v); } + set eventTypeName($core.String v) { + $_setString(9, v); + } + @$pb.TagNumber(10) $core.bool hasEventTypeName() => $_has(9); @$pb.TagNumber(10) @@ -4848,7 +6019,10 @@ class Stream extends $pb.GeneratedMessage { @$pb.TagNumber(11) $core.int get tUMOnlineEventID => $_getIZ(10); @$pb.TagNumber(11) - set tUMOnlineEventID($core.int v) { $_setUnsignedInt32(10, v); } + set tUMOnlineEventID($core.int v) { + $_setUnsignedInt32(10, v); + } + @$pb.TagNumber(11) $core.bool hasTUMOnlineEventID() => $_has(10); @$pb.TagNumber(11) @@ -4857,7 +6031,10 @@ class Stream extends $pb.GeneratedMessage { @$pb.TagNumber(12) $core.String get seriesIdentifier => $_getSZ(11); @$pb.TagNumber(12) - set seriesIdentifier($core.String v) { $_setString(11, v); } + set seriesIdentifier($core.String v) { + $_setString(11, v); + } + @$pb.TagNumber(12) $core.bool hasSeriesIdentifier() => $_has(11); @$pb.TagNumber(12) @@ -4866,7 +6043,10 @@ class Stream extends $pb.GeneratedMessage { @$pb.TagNumber(13) $core.String get playlistUrl => $_getSZ(12); @$pb.TagNumber(13) - set playlistUrl($core.String v) { $_setString(12, v); } + set playlistUrl($core.String v) { + $_setString(12, v); + } + @$pb.TagNumber(13) $core.bool hasPlaylistUrl() => $_has(12); @$pb.TagNumber(13) @@ -4875,7 +6055,10 @@ class Stream extends $pb.GeneratedMessage { @$pb.TagNumber(14) $core.String get playlistUrlPRES => $_getSZ(13); @$pb.TagNumber(14) - set playlistUrlPRES($core.String v) { $_setString(13, v); } + set playlistUrlPRES($core.String v) { + $_setString(13, v); + } + @$pb.TagNumber(14) $core.bool hasPlaylistUrlPRES() => $_has(13); @$pb.TagNumber(14) @@ -4884,7 +6067,10 @@ class Stream extends $pb.GeneratedMessage { @$pb.TagNumber(15) $core.String get playlistUrlCAM => $_getSZ(14); @$pb.TagNumber(15) - set playlistUrlCAM($core.String v) { $_setString(14, v); } + set playlistUrlCAM($core.String v) { + $_setString(14, v); + } + @$pb.TagNumber(15) $core.bool hasPlaylistUrlCAM() => $_has(14); @$pb.TagNumber(15) @@ -4893,7 +6079,10 @@ class Stream extends $pb.GeneratedMessage { @$pb.TagNumber(16) $core.bool get liveNow => $_getBF(15); @$pb.TagNumber(16) - set liveNow($core.bool v) { $_setBool(15, v); } + set liveNow($core.bool v) { + $_setBool(15, v); + } + @$pb.TagNumber(16) $core.bool hasLiveNow() => $_has(15); @$pb.TagNumber(16) @@ -4902,7 +6091,10 @@ class Stream extends $pb.GeneratedMessage { @$pb.TagNumber(17) $1.Timestamp get liveNowTimestamp => $_getN(16); @$pb.TagNumber(17) - set liveNowTimestamp($1.Timestamp v) { setField(17, v); } + set liveNowTimestamp($1.Timestamp v) { + setField(17, v); + } + @$pb.TagNumber(17) $core.bool hasLiveNowTimestamp() => $_has(16); @$pb.TagNumber(17) @@ -4913,7 +6105,10 @@ class Stream extends $pb.GeneratedMessage { @$pb.TagNumber(18) $core.bool get recording => $_getBF(17); @$pb.TagNumber(18) - set recording($core.bool v) { $_setBool(17, v); } + set recording($core.bool v) { + $_setBool(17, v); + } + @$pb.TagNumber(18) $core.bool hasRecording() => $_has(17); @$pb.TagNumber(18) @@ -4922,7 +6117,10 @@ class Stream extends $pb.GeneratedMessage { @$pb.TagNumber(19) $core.bool get premiere => $_getBF(18); @$pb.TagNumber(19) - set premiere($core.bool v) { $_setBool(18, v); } + set premiere($core.bool v) { + $_setBool(18, v); + } + @$pb.TagNumber(19) $core.bool hasPremiere() => $_has(18); @$pb.TagNumber(19) @@ -4931,7 +6129,10 @@ class Stream extends $pb.GeneratedMessage { @$pb.TagNumber(20) $core.bool get ended => $_getBF(19); @$pb.TagNumber(20) - set ended($core.bool v) { $_setBool(19, v); } + set ended($core.bool v) { + $_setBool(19, v); + } + @$pb.TagNumber(20) $core.bool hasEnded() => $_has(19); @$pb.TagNumber(20) @@ -4940,7 +6141,10 @@ class Stream extends $pb.GeneratedMessage { @$pb.TagNumber(21) $core.int get vodViews => $_getIZ(20); @$pb.TagNumber(21) - set vodViews($core.int v) { $_setUnsignedInt32(20, v); } + set vodViews($core.int v) { + $_setUnsignedInt32(20, v); + } + @$pb.TagNumber(21) $core.bool hasVodViews() => $_has(20); @$pb.TagNumber(21) @@ -4949,7 +6153,10 @@ class Stream extends $pb.GeneratedMessage { @$pb.TagNumber(22) $core.int get startOffset => $_getIZ(21); @$pb.TagNumber(22) - set startOffset($core.int v) { $_setUnsignedInt32(21, v); } + set startOffset($core.int v) { + $_setUnsignedInt32(21, v); + } + @$pb.TagNumber(22) $core.bool hasStartOffset() => $_has(21); @$pb.TagNumber(22) @@ -4958,7 +6165,10 @@ class Stream extends $pb.GeneratedMessage { @$pb.TagNumber(23) $core.int get endOffset => $_getIZ(22); @$pb.TagNumber(23) - set endOffset($core.int v) { $_setUnsignedInt32(22, v); } + set endOffset($core.int v) { + $_setUnsignedInt32(22, v); + } + @$pb.TagNumber(23) $core.bool hasEndOffset() => $_has(22); @$pb.TagNumber(23) @@ -4982,7 +6192,10 @@ class Stream extends $pb.GeneratedMessage { @$pb.TagNumber(30) $core.bool get isPlanned => $_getBF(25); @$pb.TagNumber(30) - set isPlanned($core.bool v) { $_setBool(25, v); } + set isPlanned($core.bool v) { + $_setBool(25, v); + } + @$pb.TagNumber(30) $core.bool hasIsPlanned() => $_has(25); @$pb.TagNumber(30) @@ -4991,7 +6204,10 @@ class Stream extends $pb.GeneratedMessage { @$pb.TagNumber(31) $core.bool get isComingUp => $_getBF(26); @$pb.TagNumber(31) - set isComingUp($core.bool v) { $_setBool(26, v); } + set isComingUp($core.bool v) { + $_setBool(26, v); + } + @$pb.TagNumber(31) $core.bool hasIsComingUp() => $_has(26); @$pb.TagNumber(31) @@ -5000,7 +6216,10 @@ class Stream extends $pb.GeneratedMessage { @$pb.TagNumber(32) $core.String get hLSUrl => $_getSZ(27); @$pb.TagNumber(32) - set hLSUrl($core.String v) { $_setString(27, v); } + set hLSUrl($core.String v) { + $_setString(27, v); + } + @$pb.TagNumber(32) $core.bool hasHLSUrl() => $_has(27); @$pb.TagNumber(32) @@ -5018,34 +6237,46 @@ class GetStreamRequest extends $pb.GeneratedMessage { return $result; } GetStreamRequest._() : super(); - factory GetStreamRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetStreamRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetStreamRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory GetStreamRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory GetStreamRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetStreamRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, protoName: 'streamID') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') GetStreamRequest clone() => GetStreamRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetStreamRequest copyWith(void Function(GetStreamRequest) updates) => super.copyWith((message) => updates(message as GetStreamRequest)) as GetStreamRequest; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetStreamRequest copyWith(void Function(GetStreamRequest) updates) => + super.copyWith((message) => updates(message as GetStreamRequest)) + as GetStreamRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetStreamRequest create() => GetStreamRequest._(); GetStreamRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetStreamRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetStreamRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetStreamRequest? _defaultInstance; @$pb.TagNumber(1) @@ -5064,32 +6295,44 @@ class GetStreamRequest extends $pb.GeneratedMessage { class GetNowLiveRequest extends $pb.GeneratedMessage { factory GetNowLiveRequest() => create(); GetNowLiveRequest._() : super(); - factory GetNowLiveRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetNowLiveRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetNowLiveRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..hasRequiredFields = false - ; + factory GetNowLiveRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory GetNowLiveRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetNowLiveRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') GetNowLiveRequest clone() => GetNowLiveRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetNowLiveRequest copyWith(void Function(GetNowLiveRequest) updates) => super.copyWith((message) => updates(message as GetNowLiveRequest)) as GetNowLiveRequest; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetNowLiveRequest copyWith(void Function(GetNowLiveRequest) updates) => + super.copyWith((message) => updates(message as GetNowLiveRequest)) + as GetNowLiveRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetNowLiveRequest create() => GetNowLiveRequest._(); GetNowLiveRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetNowLiveRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetNowLiveRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetNowLiveRequest? _defaultInstance; } @@ -5104,34 +6347,47 @@ class GetThumbsLiveRequest extends $pb.GeneratedMessage { return $result; } GetThumbsLiveRequest._() : super(); - factory GetThumbsLiveRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetThumbsLiveRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetThumbsLiveRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory GetThumbsLiveRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory GetThumbsLiveRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetThumbsLiveRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, protoName: 'streamID') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetThumbsLiveRequest clone() => GetThumbsLiveRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetThumbsLiveRequest copyWith(void Function(GetThumbsLiveRequest) updates) => super.copyWith((message) => updates(message as GetThumbsLiveRequest)) as GetThumbsLiveRequest; + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetThumbsLiveRequest clone() => + GetThumbsLiveRequest()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetThumbsLiveRequest copyWith(void Function(GetThumbsLiveRequest) updates) => + super.copyWith((message) => updates(message as GetThumbsLiveRequest)) + as GetThumbsLiveRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetThumbsLiveRequest create() => GetThumbsLiveRequest._(); GetThumbsLiveRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetThumbsLiveRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetThumbsLiveRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetThumbsLiveRequest? _defaultInstance; @$pb.TagNumber(1) @@ -5158,34 +6414,46 @@ class GetThumbsVODRequest extends $pb.GeneratedMessage { return $result; } GetThumbsVODRequest._() : super(); - factory GetThumbsVODRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetThumbsVODRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetThumbsVODRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory GetThumbsVODRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory GetThumbsVODRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetThumbsVODRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, protoName: 'streamID') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') GetThumbsVODRequest clone() => GetThumbsVODRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetThumbsVODRequest copyWith(void Function(GetThumbsVODRequest) updates) => super.copyWith((message) => updates(message as GetThumbsVODRequest)) as GetThumbsVODRequest; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetThumbsVODRequest copyWith(void Function(GetThumbsVODRequest) updates) => + super.copyWith((message) => updates(message as GetThumbsVODRequest)) + as GetThumbsVODRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetThumbsVODRequest create() => GetThumbsVODRequest._(); GetThumbsVODRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetThumbsVODRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetThumbsVODRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetThumbsVODRequest? _defaultInstance; @$pb.TagNumber(1) @@ -5212,39 +6480,54 @@ class GetStreamResponse extends $pb.GeneratedMessage { return $result; } GetStreamResponse._() : super(); - factory GetStreamResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetStreamResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetStreamResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory GetStreamResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory GetStreamResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetStreamResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..aOM(1, _omitFieldNames ? '' : 'stream', subBuilder: Stream.create) - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') GetStreamResponse clone() => GetStreamResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetStreamResponse copyWith(void Function(GetStreamResponse) updates) => super.copyWith((message) => updates(message as GetStreamResponse)) as GetStreamResponse; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetStreamResponse copyWith(void Function(GetStreamResponse) updates) => + super.copyWith((message) => updates(message as GetStreamResponse)) + as GetStreamResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetStreamResponse create() => GetStreamResponse._(); GetStreamResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetStreamResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetStreamResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetStreamResponse? _defaultInstance; @$pb.TagNumber(1) Stream get stream => $_getN(0); @$pb.TagNumber(1) - set stream(Stream v) { setField(1, v); } + set stream(Stream v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasStream() => $_has(0); @$pb.TagNumber(1) @@ -5264,33 +6547,46 @@ class GetNowLiveResponse extends $pb.GeneratedMessage { return $result; } GetNowLiveResponse._() : super(); - factory GetNowLiveResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetNowLiveResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetNowLiveResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'stream', $pb.PbFieldType.PM, subBuilder: Stream.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + + factory GetNowLiveResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory GetNowLiveResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetNowLiveResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'stream', $pb.PbFieldType.PM, + subBuilder: Stream.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') GetNowLiveResponse clone() => GetNowLiveResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetNowLiveResponse copyWith(void Function(GetNowLiveResponse) updates) => super.copyWith((message) => updates(message as GetNowLiveResponse)) as GetNowLiveResponse; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetNowLiveResponse copyWith(void Function(GetNowLiveResponse) updates) => + super.copyWith((message) => updates(message as GetNowLiveResponse)) + as GetNowLiveResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetNowLiveResponse create() => GetNowLiveResponse._(); GetNowLiveResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetNowLiveResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetNowLiveResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetNowLiveResponse? _defaultInstance; @$pb.TagNumber(1) @@ -5308,39 +6604,55 @@ class GetThumbsVODResponse extends $pb.GeneratedMessage { return $result; } GetThumbsVODResponse._() : super(); - factory GetThumbsVODResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetThumbsVODResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetThumbsVODResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory GetThumbsVODResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory GetThumbsVODResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetThumbsVODResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'path') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetThumbsVODResponse clone() => GetThumbsVODResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetThumbsVODResponse copyWith(void Function(GetThumbsVODResponse) updates) => super.copyWith((message) => updates(message as GetThumbsVODResponse)) as GetThumbsVODResponse; + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetThumbsVODResponse clone() => + GetThumbsVODResponse()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetThumbsVODResponse copyWith(void Function(GetThumbsVODResponse) updates) => + super.copyWith((message) => updates(message as GetThumbsVODResponse)) + as GetThumbsVODResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetThumbsVODResponse create() => GetThumbsVODResponse._(); GetThumbsVODResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetThumbsVODResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetThumbsVODResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetThumbsVODResponse? _defaultInstance; @$pb.TagNumber(1) $core.String get path => $_getSZ(0); @$pb.TagNumber(1) - set path($core.String v) { $_setString(0, v); } + set path($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasPath() => $_has(0); @$pb.TagNumber(1) @@ -5358,39 +6670,56 @@ class GetThumbsLiveResponse extends $pb.GeneratedMessage { return $result; } GetThumbsLiveResponse._() : super(); - factory GetThumbsLiveResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetThumbsLiveResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetThumbsLiveResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory GetThumbsLiveResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory GetThumbsLiveResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetThumbsLiveResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'path') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetThumbsLiveResponse clone() => GetThumbsLiveResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetThumbsLiveResponse copyWith(void Function(GetThumbsLiveResponse) updates) => super.copyWith((message) => updates(message as GetThumbsLiveResponse)) as GetThumbsLiveResponse; + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetThumbsLiveResponse clone() => + GetThumbsLiveResponse()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetThumbsLiveResponse copyWith( + void Function(GetThumbsLiveResponse) updates) => + super.copyWith((message) => updates(message as GetThumbsLiveResponse)) + as GetThumbsLiveResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetThumbsLiveResponse create() => GetThumbsLiveResponse._(); GetThumbsLiveResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetThumbsLiveResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetThumbsLiveResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetThumbsLiveResponse? _defaultInstance; @$pb.TagNumber(1) $core.String get path => $_getSZ(0); @$pb.TagNumber(1) - set path($core.String v) { $_setString(0, v); } + set path($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasPath() => $_has(0); @$pb.TagNumber(1) @@ -5412,25 +6741,33 @@ class Download extends $pb.GeneratedMessage { return $result; } Download._() : super(); - factory Download.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Download.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Download', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory Download.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory Download.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Download', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'friendlyName', protoName: 'friendlyName') ..aOS(2, _omitFieldNames ? '' : 'downloadURL', protoName: 'downloadURL') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Download clone() => Download()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Download copyWith(void Function(Download) updates) => super.copyWith((message) => updates(message as Download)) as Download; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Download copyWith(void Function(Download) updates) => + super.copyWith((message) => updates(message as Download)) as Download; $pb.BuilderInfo get info_ => _i; @@ -5439,13 +6776,17 @@ class Download extends $pb.GeneratedMessage { Download createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Download getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Download getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Download? _defaultInstance; @$pb.TagNumber(1) $core.String get friendlyName => $_getSZ(0); @$pb.TagNumber(1) - set friendlyName($core.String v) { $_setString(0, v); } + set friendlyName($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasFriendlyName() => $_has(0); @$pb.TagNumber(1) @@ -5454,7 +6795,10 @@ class Download extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get downloadURL => $_getSZ(1); @$pb.TagNumber(2) - set downloadURL($core.String v) { $_setString(1, v); } + set downloadURL($core.String v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasDownloadURL() => $_has(1); @$pb.TagNumber(2) @@ -5484,27 +6828,37 @@ class Progress extends $pb.GeneratedMessage { return $result; } Progress._() : super(); - factory Progress.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Progress.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Progress', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory Progress.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory Progress.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Progress', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..a<$core.double>(1, _omitFieldNames ? '' : 'progress', $pb.PbFieldType.OF) ..aOB(2, _omitFieldNames ? '' : 'watched') - ..a<$core.int>(3, _omitFieldNames ? '' : 'userID', $pb.PbFieldType.OU3, protoName: 'userID') - ..a<$core.int>(4, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, protoName: 'streamID') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + ..a<$core.int>(3, _omitFieldNames ? '' : 'userID', $pb.PbFieldType.OU3, + protoName: 'userID') + ..a<$core.int>(4, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, + protoName: 'streamID') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Progress clone() => Progress()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Progress copyWith(void Function(Progress) updates) => super.copyWith((message) => updates(message as Progress)) as Progress; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Progress copyWith(void Function(Progress) updates) => + super.copyWith((message) => updates(message as Progress)) as Progress; $pb.BuilderInfo get info_ => _i; @@ -5513,13 +6867,17 @@ class Progress extends $pb.GeneratedMessage { Progress createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Progress getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Progress getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Progress? _defaultInstance; @$pb.TagNumber(1) $core.double get progress => $_getN(0); @$pb.TagNumber(1) - set progress($core.double v) { $_setFloat(0, v); } + set progress($core.double v) { + $_setFloat(0, v); + } + @$pb.TagNumber(1) $core.bool hasProgress() => $_has(0); @$pb.TagNumber(1) @@ -5528,7 +6886,10 @@ class Progress extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.bool get watched => $_getBF(1); @$pb.TagNumber(2) - set watched($core.bool v) { $_setBool(1, v); } + set watched($core.bool v) { + $_setBool(1, v); + } + @$pb.TagNumber(2) $core.bool hasWatched() => $_has(1); @$pb.TagNumber(2) @@ -5537,7 +6898,10 @@ class Progress extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.int get userID => $_getIZ(2); @$pb.TagNumber(3) - set userID($core.int v) { $_setUnsignedInt32(2, v); } + set userID($core.int v) { + $_setUnsignedInt32(2, v); + } + @$pb.TagNumber(3) $core.bool hasUserID() => $_has(2); @$pb.TagNumber(3) @@ -5546,7 +6910,10 @@ class Progress extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.int get streamID => $_getIZ(3); @$pb.TagNumber(4) - set streamID($core.int v) { $_setUnsignedInt32(3, v); } + set streamID($core.int v) { + $_setUnsignedInt32(3, v); + } + @$pb.TagNumber(4) $core.bool hasStreamID() => $_has(3); @$pb.TagNumber(4) @@ -5564,34 +6931,46 @@ class GetProgressRequest extends $pb.GeneratedMessage { return $result; } GetProgressRequest._() : super(); - factory GetProgressRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetProgressRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetProgressRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory GetProgressRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory GetProgressRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetProgressRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, protoName: 'streamID') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') GetProgressRequest clone() => GetProgressRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetProgressRequest copyWith(void Function(GetProgressRequest) updates) => super.copyWith((message) => updates(message as GetProgressRequest)) as GetProgressRequest; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetProgressRequest copyWith(void Function(GetProgressRequest) updates) => + super.copyWith((message) => updates(message as GetProgressRequest)) + as GetProgressRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetProgressRequest create() => GetProgressRequest._(); GetProgressRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetProgressRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetProgressRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetProgressRequest? _defaultInstance; @$pb.TagNumber(1) @@ -5622,41 +7001,56 @@ class PutProgressRequest extends $pb.GeneratedMessage { return $result; } PutProgressRequest._() : super(); - factory PutProgressRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PutProgressRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PutProgressRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory PutProgressRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory PutProgressRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PutProgressRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..a<$core.double>(1, _omitFieldNames ? '' : 'progress', $pb.PbFieldType.OF) ..a<$core.int>(3, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, protoName: 'streamID') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') PutProgressRequest clone() => PutProgressRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PutProgressRequest copyWith(void Function(PutProgressRequest) updates) => super.copyWith((message) => updates(message as PutProgressRequest)) as PutProgressRequest; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PutProgressRequest copyWith(void Function(PutProgressRequest) updates) => + super.copyWith((message) => updates(message as PutProgressRequest)) + as PutProgressRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PutProgressRequest create() => PutProgressRequest._(); PutProgressRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static PutProgressRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PutProgressRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static PutProgressRequest? _defaultInstance; @$pb.TagNumber(1) $core.double get progress => $_getN(0); @$pb.TagNumber(1) - set progress($core.double v) { $_setFloat(0, v); } + set progress($core.double v) { + $_setFloat(0, v); + } + @$pb.TagNumber(1) $core.bool hasProgress() => $_has(0); @$pb.TagNumber(1) @@ -5686,34 +7080,47 @@ class MarkAsWatchedRequest extends $pb.GeneratedMessage { return $result; } MarkAsWatchedRequest._() : super(); - factory MarkAsWatchedRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory MarkAsWatchedRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MarkAsWatchedRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) + factory MarkAsWatchedRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory MarkAsWatchedRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'MarkAsWatchedRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, protoName: 'streamID') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - MarkAsWatchedRequest clone() => MarkAsWatchedRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - MarkAsWatchedRequest copyWith(void Function(MarkAsWatchedRequest) updates) => super.copyWith((message) => updates(message as MarkAsWatchedRequest)) as MarkAsWatchedRequest; + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + MarkAsWatchedRequest clone() => + MarkAsWatchedRequest()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + MarkAsWatchedRequest copyWith(void Function(MarkAsWatchedRequest) updates) => + super.copyWith((message) => updates(message as MarkAsWatchedRequest)) + as MarkAsWatchedRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static MarkAsWatchedRequest create() => MarkAsWatchedRequest._(); MarkAsWatchedRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static MarkAsWatchedRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static MarkAsWatchedRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static MarkAsWatchedRequest? _defaultInstance; @$pb.TagNumber(1) @@ -5740,39 +7147,55 @@ class GetProgressResponse extends $pb.GeneratedMessage { return $result; } GetProgressResponse._() : super(); - factory GetProgressResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetProgressResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetProgressResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'progress', subBuilder: Progress.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + + factory GetProgressResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory GetProgressResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetProgressResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'progress', + subBuilder: Progress.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') GetProgressResponse clone() => GetProgressResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetProgressResponse copyWith(void Function(GetProgressResponse) updates) => super.copyWith((message) => updates(message as GetProgressResponse)) as GetProgressResponse; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetProgressResponse copyWith(void Function(GetProgressResponse) updates) => + super.copyWith((message) => updates(message as GetProgressResponse)) + as GetProgressResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetProgressResponse create() => GetProgressResponse._(); GetProgressResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetProgressResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetProgressResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetProgressResponse? _defaultInstance; @$pb.TagNumber(1) Progress get progress => $_getN(0); @$pb.TagNumber(1) - set progress(Progress v) { setField(1, v); } + set progress(Progress v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasProgress() => $_has(0); @$pb.TagNumber(1) @@ -5792,39 +7215,55 @@ class PutProgressResponse extends $pb.GeneratedMessage { return $result; } PutProgressResponse._() : super(); - factory PutProgressResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PutProgressResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PutProgressResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'progress', subBuilder: Progress.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + + factory PutProgressResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory PutProgressResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PutProgressResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'progress', + subBuilder: Progress.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') PutProgressResponse clone() => PutProgressResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PutProgressResponse copyWith(void Function(PutProgressResponse) updates) => super.copyWith((message) => updates(message as PutProgressResponse)) as PutProgressResponse; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PutProgressResponse copyWith(void Function(PutProgressResponse) updates) => + super.copyWith((message) => updates(message as PutProgressResponse)) + as PutProgressResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PutProgressResponse create() => PutProgressResponse._(); PutProgressResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static PutProgressResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PutProgressResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static PutProgressResponse? _defaultInstance; @$pb.TagNumber(1) Progress get progress => $_getN(0); @$pb.TagNumber(1) - set progress(Progress v) { setField(1, v); } + set progress(Progress v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasProgress() => $_has(0); @$pb.TagNumber(1) @@ -5844,39 +7283,57 @@ class MarkAsWatchedResponse extends $pb.GeneratedMessage { return $result; } MarkAsWatchedResponse._() : super(); - factory MarkAsWatchedResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory MarkAsWatchedResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MarkAsWatchedResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'progress', subBuilder: Progress.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - MarkAsWatchedResponse clone() => MarkAsWatchedResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - MarkAsWatchedResponse copyWith(void Function(MarkAsWatchedResponse) updates) => super.copyWith((message) => updates(message as MarkAsWatchedResponse)) as MarkAsWatchedResponse; + + factory MarkAsWatchedResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + + factory MarkAsWatchedResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'MarkAsWatchedResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'progress', + subBuilder: Progress.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + MarkAsWatchedResponse clone() => + MarkAsWatchedResponse()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + MarkAsWatchedResponse copyWith( + void Function(MarkAsWatchedResponse) updates) => + super.copyWith((message) => updates(message as MarkAsWatchedResponse)) + as MarkAsWatchedResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static MarkAsWatchedResponse create() => MarkAsWatchedResponse._(); MarkAsWatchedResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static MarkAsWatchedResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static MarkAsWatchedResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static MarkAsWatchedResponse? _defaultInstance; @$pb.TagNumber(1) Progress get progress => $_getN(0); @$pb.TagNumber(1) - set progress(Progress v) { setField(1, v); } + set progress(Progress v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasProgress() => $_has(0); @$pb.TagNumber(1) @@ -5885,6 +7342,6 @@ class MarkAsWatchedResponse extends $pb.GeneratedMessage { Progress ensureProgress() => $_ensure(0); } - const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/lib/base/networking/api/gocast/api_v2.pbenum.dart b/lib/base/networking/api/gocast/api_v2.pbenum.dart index d3add77b..da250858 100644 --- a/lib/base/networking/api/gocast/api_v2.pbenum.dart +++ b/lib/base/networking/api/gocast/api_v2.pbenum.dart @@ -14,21 +14,24 @@ import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; class UserSettingType extends $pb.ProtobufEnum { - static const UserSettingType PREFERRED_NAME = UserSettingType._(0, _omitEnumNames ? '' : 'PREFERRED_NAME'); - static const UserSettingType GREETING = UserSettingType._(1, _omitEnumNames ? '' : 'GREETING'); - static const UserSettingType CUSTOM_PLAYBACK_SPEEDS = UserSettingType._(2, _omitEnumNames ? '' : 'CUSTOM_PLAYBACK_SPEEDS'); - - static const $core.List values = [ + static const UserSettingType PREFERRED_NAME = + UserSettingType._(0, _omitEnumNames ? '' : 'PREFERRED_NAME'); + static const UserSettingType GREETING = + UserSettingType._(1, _omitEnumNames ? '' : 'GREETING'); + static const UserSettingType CUSTOM_PLAYBACK_SPEEDS = + UserSettingType._(2, _omitEnumNames ? '' : 'CUSTOM_PLAYBACK_SPEEDS'); + + static const $core.List values = [ PREFERRED_NAME, GREETING, CUSTOM_PLAYBACK_SPEEDS, ]; - static final $core.Map<$core.int, UserSettingType> _byValue = $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, UserSettingType> _byValue = + $pb.ProtobufEnum.initByValue(values); static UserSettingType? valueOf($core.int value) => _byValue[value]; const UserSettingType._($core.int v, $core.String n) : super(v, n); } - const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/lib/base/networking/api/gocast/api_v2.pbgrpc.dart b/lib/base/networking/api/gocast/api_v2.pbgrpc.dart index ee282981..89139801 100644 --- a/lib/base/networking/api/gocast/api_v2.pbgrpc.dart +++ b/lib/base/networking/api/gocast/api_v2.pbgrpc.dart @@ -23,431 +23,500 @@ export 'api_v2.pb.dart'; class APIClient extends $grpc.Client { static final _$getUser = $grpc.ClientMethod<$0.GetUserRequest, $0.GetUserResponse>( - '/protobuf.API/getUser', - ($0.GetUserRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.GetUserResponse.fromBuffer(value)); + '/protobuf.API/getUser', + ($0.GetUserRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.GetUserResponse.fromBuffer(value), + ); static final _$getUserCourses = $grpc.ClientMethod<$0.GetUserCoursesRequest, $0.GetUserCoursesResponse>( - '/protobuf.API/getUserCourses', - ($0.GetUserCoursesRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.GetUserCoursesResponse.fromBuffer(value)); + '/protobuf.API/getUserCourses', + ($0.GetUserCoursesRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.GetUserCoursesResponse.fromBuffer(value), + ); static final _$getUserPinned = $grpc.ClientMethod<$0.GetUserPinnedRequest, $0.GetUserPinnedResponse>( - '/protobuf.API/getUserPinned', - ($0.GetUserPinnedRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.GetUserPinnedResponse.fromBuffer(value)); + '/protobuf.API/getUserPinned', + ($0.GetUserPinnedRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.GetUserPinnedResponse.fromBuffer(value), + ); static final _$postUserPinned = $grpc.ClientMethod<$0.PostPinnedRequest, $0.PostPinnedResponse>( - '/protobuf.API/postUserPinned', - ($0.PostPinnedRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.PostPinnedResponse.fromBuffer(value)); + '/protobuf.API/postUserPinned', + ($0.PostPinnedRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.PostPinnedResponse.fromBuffer(value), + ); static final _$deleteUserPinned = $grpc.ClientMethod<$0.DeletePinnedRequest, $0.DeletePinnedResponse>( - '/protobuf.API/deleteUserPinned', - ($0.DeletePinnedRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.DeletePinnedResponse.fromBuffer(value)); + '/protobuf.API/deleteUserPinned', + ($0.DeletePinnedRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.DeletePinnedResponse.fromBuffer(value), + ); static final _$getUserAdminCourses = $grpc.ClientMethod<$0.GetUserAdminRequest, $0.GetUserAdminResponse>( - '/protobuf.API/getUserAdminCourses', - ($0.GetUserAdminRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.GetUserAdminResponse.fromBuffer(value)); + '/protobuf.API/getUserAdminCourses', + ($0.GetUserAdminRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.GetUserAdminResponse.fromBuffer(value), + ); static final _$getUserSettings = $grpc.ClientMethod<$0.GetUserSettingsRequest, $0.GetUserSettingsResponse>( - '/protobuf.API/getUserSettings', - ($0.GetUserSettingsRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.GetUserSettingsResponse.fromBuffer(value)); + '/protobuf.API/getUserSettings', + ($0.GetUserSettingsRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.GetUserSettingsResponse.fromBuffer(value), + ); static final _$patchUserSettings = $grpc.ClientMethod< - $0.PatchUserSettingsRequest, $0.PatchUserSettingsResponse>( - '/protobuf.API/patchUserSettings', - ($0.PatchUserSettingsRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.PatchUserSettingsResponse.fromBuffer(value)); + $0.PatchUserSettingsRequest, $0.PatchUserSettingsResponse>( + '/protobuf.API/patchUserSettings', + ($0.PatchUserSettingsRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.PatchUserSettingsResponse.fromBuffer(value), + ); static final _$getUserBookmarks = $grpc.ClientMethod<$0.GetBookmarksRequest, $0.GetBookmarksResponse>( - '/protobuf.API/getUserBookmarks', - ($0.GetBookmarksRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.GetBookmarksResponse.fromBuffer(value)); + '/protobuf.API/getUserBookmarks', + ($0.GetBookmarksRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.GetBookmarksResponse.fromBuffer(value), + ); static final _$putUserBookmark = $grpc.ClientMethod<$0.PutBookmarkRequest, $0.PutBookmarkResponse>( - '/protobuf.API/putUserBookmark', - ($0.PutBookmarkRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.PutBookmarkResponse.fromBuffer(value)); + '/protobuf.API/putUserBookmark', + ($0.PutBookmarkRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.PutBookmarkResponse.fromBuffer(value), + ); static final _$patchUserBookmark = $grpc.ClientMethod<$0.PatchBookmarkRequest, $0.PatchBookmarkResponse>( - '/protobuf.API/patchUserBookmark', - ($0.PatchBookmarkRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.PatchBookmarkResponse.fromBuffer(value)); + '/protobuf.API/patchUserBookmark', + ($0.PatchBookmarkRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.PatchBookmarkResponse.fromBuffer(value), + ); static final _$deleteUserBookmark = $grpc.ClientMethod<$0.DeleteBookmarkRequest, $0.DeleteBookmarkResponse>( - '/protobuf.API/deleteUserBookmark', - ($0.DeleteBookmarkRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.DeleteBookmarkResponse.fromBuffer(value)); + '/protobuf.API/deleteUserBookmark', + ($0.DeleteBookmarkRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.DeleteBookmarkResponse.fromBuffer(value), + ); static final _$getBannerAlerts = $grpc.ClientMethod<$0.GetBannerAlertsRequest, $0.GetBannerAlertsResponse>( - '/protobuf.API/getBannerAlerts', - ($0.GetBannerAlertsRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.GetBannerAlertsResponse.fromBuffer(value)); + '/protobuf.API/getBannerAlerts', + ($0.GetBannerAlertsRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.GetBannerAlertsResponse.fromBuffer(value), + ); static final _$getFeatureNotifications = $grpc.ClientMethod< - $0.GetFeatureNotificationsRequest, - $0.GetFeatureNotificationsResponse>( - '/protobuf.API/getFeatureNotifications', - ($0.GetFeatureNotificationsRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.GetFeatureNotificationsResponse.fromBuffer(value)); + $0.GetFeatureNotificationsRequest, $0.GetFeatureNotificationsResponse>( + '/protobuf.API/getFeatureNotifications', + ($0.GetFeatureNotificationsRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.GetFeatureNotificationsResponse.fromBuffer(value), + ); static final _$postDeviceToken = $grpc.ClientMethod<$0.PostDeviceTokenRequest, $0.PostDeviceTokenResponse>( - '/protobuf.API/postDeviceToken', - ($0.PostDeviceTokenRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.PostDeviceTokenResponse.fromBuffer(value)); + '/protobuf.API/postDeviceToken', + ($0.PostDeviceTokenRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.PostDeviceTokenResponse.fromBuffer(value), + ); static final _$deleteDeviceToken = $grpc.ClientMethod< - $0.DeleteDeviceTokenRequest, $0.DeleteDeviceTokenResponse>( - '/protobuf.API/deleteDeviceToken', - ($0.DeleteDeviceTokenRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.DeleteDeviceTokenResponse.fromBuffer(value)); + $0.DeleteDeviceTokenRequest, $0.DeleteDeviceTokenResponse>( + '/protobuf.API/deleteDeviceToken', + ($0.DeleteDeviceTokenRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.DeleteDeviceTokenResponse.fromBuffer(value), + ); static final _$getPublicCourses = $grpc.ClientMethod< - $0.GetPublicCoursesRequest, $0.GetPublicCoursesResponse>( - '/protobuf.API/getPublicCourses', - ($0.GetPublicCoursesRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.GetPublicCoursesResponse.fromBuffer(value)); + $0.GetPublicCoursesRequest, $0.GetPublicCoursesResponse>( + '/protobuf.API/getPublicCourses', + ($0.GetPublicCoursesRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.GetPublicCoursesResponse.fromBuffer(value), + ); static final _$getSemesters = $grpc.ClientMethod<$0.GetSemestersRequest, $0.GetSemestersResponse>( - '/protobuf.API/getSemesters', - ($0.GetSemestersRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.GetSemestersResponse.fromBuffer(value)); + '/protobuf.API/getSemesters', + ($0.GetSemestersRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.GetSemestersResponse.fromBuffer(value), + ); static final _$getCourseStreams = $grpc.ClientMethod< - $0.GetCourseStreamsRequest, $0.GetCourseStreamsResponse>( - '/protobuf.API/getCourseStreams', - ($0.GetCourseStreamsRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.GetCourseStreamsResponse.fromBuffer(value)); + $0.GetCourseStreamsRequest, $0.GetCourseStreamsResponse>( + '/protobuf.API/getCourseStreams', + ($0.GetCourseStreamsRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.GetCourseStreamsResponse.fromBuffer(value), + ); static final _$getStream = $grpc.ClientMethod<$0.GetStreamRequest, $0.GetStreamResponse>( - '/protobuf.API/GetStream', - ($0.GetStreamRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.GetStreamResponse.fromBuffer(value)); + '/protobuf.API/GetStream', + ($0.GetStreamRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.GetStreamResponse.fromBuffer(value), + ); static final _$getNowLive = $grpc.ClientMethod<$0.GetNowLiveRequest, $0.GetNowLiveResponse>( - '/protobuf.API/GetNowLive', - ($0.GetNowLiveRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.GetNowLiveResponse.fromBuffer(value)); + '/protobuf.API/GetNowLive', + ($0.GetNowLiveRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.GetNowLiveResponse.fromBuffer(value), + ); static final _$getThumbsVOD = $grpc.ClientMethod<$0.GetThumbsVODRequest, $0.GetThumbsVODResponse>( - '/protobuf.API/getThumbsVOD', - ($0.GetThumbsVODRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.GetThumbsVODResponse.fromBuffer(value)); + '/protobuf.API/getThumbsVOD', + ($0.GetThumbsVODRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.GetThumbsVODResponse.fromBuffer(value), + ); static final _$getThumbsLive = $grpc.ClientMethod<$0.GetThumbsLiveRequest, $0.GetThumbsLiveResponse>( - '/protobuf.API/getThumbsLive', - ($0.GetThumbsLiveRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.GetThumbsLiveResponse.fromBuffer(value)); + '/protobuf.API/getThumbsLive', + ($0.GetThumbsLiveRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.GetThumbsLiveResponse.fromBuffer(value), + ); static final _$getProgress = $grpc.ClientMethod<$0.GetProgressRequest, $0.GetProgressResponse>( - '/protobuf.API/getProgress', - ($0.GetProgressRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.GetProgressResponse.fromBuffer(value)); + '/protobuf.API/getProgress', + ($0.GetProgressRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.GetProgressResponse.fromBuffer(value), + ); static final _$putProgress = $grpc.ClientMethod<$0.PutProgressRequest, $0.PutProgressResponse>( - '/protobuf.API/putProgress', - ($0.PutProgressRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.PutProgressResponse.fromBuffer(value)); + '/protobuf.API/putProgress', + ($0.PutProgressRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.PutProgressResponse.fromBuffer(value), + ); static final _$markAsWatched = $grpc.ClientMethod<$0.MarkAsWatchedRequest, $0.MarkAsWatchedResponse>( - '/protobuf.API/markAsWatched', - ($0.MarkAsWatchedRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.MarkAsWatchedResponse.fromBuffer(value)); + '/protobuf.API/markAsWatched', + ($0.MarkAsWatchedRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.MarkAsWatchedResponse.fromBuffer(value), + ); static final _$getChatMessages = $grpc.ClientMethod<$0.GetChatMessagesRequest, $0.GetChatMessagesResponse>( - '/protobuf.API/getChatMessages', - ($0.GetChatMessagesRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.GetChatMessagesResponse.fromBuffer(value)); + '/protobuf.API/getChatMessages', + ($0.GetChatMessagesRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.GetChatMessagesResponse.fromBuffer(value), + ); static final _$postChatMessage = $grpc.ClientMethod<$0.PostChatMessageRequest, $0.PostChatMessageResponse>( - '/protobuf.API/postChatMessage', - ($0.PostChatMessageRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.PostChatMessageResponse.fromBuffer(value)); + '/protobuf.API/postChatMessage', + ($0.PostChatMessageRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.PostChatMessageResponse.fromBuffer(value), + ); static final _$postChatReaction = $grpc.ClientMethod< - $0.PostChatReactionRequest, $0.PostChatReactionResponse>( - '/protobuf.API/postChatReaction', - ($0.PostChatReactionRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.PostChatReactionResponse.fromBuffer(value)); + $0.PostChatReactionRequest, $0.PostChatReactionResponse>( + '/protobuf.API/postChatReaction', + ($0.PostChatReactionRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.PostChatReactionResponse.fromBuffer(value), + ); static final _$deleteChatReaction = $grpc.ClientMethod< - $0.DeleteChatReactionRequest, $0.DeleteChatReactionResponse>( - '/protobuf.API/deleteChatReaction', - ($0.DeleteChatReactionRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.DeleteChatReactionResponse.fromBuffer(value)); + $0.DeleteChatReactionRequest, $0.DeleteChatReactionResponse>( + '/protobuf.API/deleteChatReaction', + ($0.DeleteChatReactionRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.DeleteChatReactionResponse.fromBuffer(value), + ); static final _$postChatReply = $grpc.ClientMethod<$0.PostChatReplyRequest, $0.PostChatReplyResponse>( - '/protobuf.API/postChatReply', - ($0.PostChatReplyRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.PostChatReplyResponse.fromBuffer(value)); + '/protobuf.API/postChatReply', + ($0.PostChatReplyRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.PostChatReplyResponse.fromBuffer(value), + ); static final _$markChatMessageAsResolved = $grpc.ClientMethod< - $0.MarkChatMessageAsResolvedRequest, - $0.MarkChatMessageAsResolvedResponse>( - '/protobuf.API/markChatMessageAsResolved', - ($0.MarkChatMessageAsResolvedRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.MarkChatMessageAsResolvedResponse.fromBuffer(value)); + $0.MarkChatMessageAsResolvedRequest, + $0.MarkChatMessageAsResolvedResponse>( + '/protobuf.API/markChatMessageAsResolved', + ($0.MarkChatMessageAsResolvedRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.MarkChatMessageAsResolvedResponse.fromBuffer(value), + ); static final _$markChatMessageAsUnresolved = $grpc.ClientMethod< - $0.MarkChatMessageAsUnresolvedRequest, - $0.MarkChatMessageAsUnresolvedResponse>( - '/protobuf.API/markChatMessageAsUnresolved', - ($0.MarkChatMessageAsUnresolvedRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.MarkChatMessageAsUnresolvedResponse.fromBuffer(value)); + $0.MarkChatMessageAsUnresolvedRequest, + $0.MarkChatMessageAsUnresolvedResponse>( + '/protobuf.API/markChatMessageAsUnresolved', + ($0.MarkChatMessageAsUnresolvedRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.MarkChatMessageAsUnresolvedResponse.fromBuffer(value), + ); static final _$getPolls = $grpc.ClientMethod<$0.GetPollsRequest, $0.GetPollsResponse>( - '/protobuf.API/getPolls', - ($0.GetPollsRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.GetPollsResponse.fromBuffer(value)); + '/protobuf.API/getPolls', + ($0.GetPollsRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.GetPollsResponse.fromBuffer(value), + ); static final _$postPollVote = $grpc.ClientMethod<$0.PostPollVoteRequest, $0.PostPollVoteResponse>( - '/protobuf.API/postPollVote', - ($0.PostPollVoteRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.PostPollVoteResponse.fromBuffer(value)); - - APIClient($grpc.ClientChannel channel, - {$grpc.CallOptions? options, - $core.Iterable<$grpc.ClientInterceptor>? interceptors}) - : super(channel, options: options, interceptors: interceptors); - - $grpc.ResponseFuture<$0.GetUserResponse> getUser($0.GetUserRequest request, - {$grpc.CallOptions? options}) { + '/protobuf.API/postPollVote', + ($0.PostPollVoteRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.PostPollVoteResponse.fromBuffer(value), + ); + + APIClient( + $grpc.ClientChannel channel, { + $grpc.CallOptions? options, + $core.Iterable<$grpc.ClientInterceptor>? interceptors, + }) : super( + channel, + options: options, + interceptors: interceptors, + ); + + $grpc.ResponseFuture<$0.GetUserResponse> getUser( + $0.GetUserRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$getUser, request, options: options); } $grpc.ResponseFuture<$0.GetUserCoursesResponse> getUserCourses( - $0.GetUserCoursesRequest request, - {$grpc.CallOptions? options}) { + $0.GetUserCoursesRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$getUserCourses, request, options: options); } $grpc.ResponseFuture<$0.GetUserPinnedResponse> getUserPinned( - $0.GetUserPinnedRequest request, - {$grpc.CallOptions? options}) { + $0.GetUserPinnedRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$getUserPinned, request, options: options); } $grpc.ResponseFuture<$0.PostPinnedResponse> postUserPinned( - $0.PostPinnedRequest request, - {$grpc.CallOptions? options}) { + $0.PostPinnedRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$postUserPinned, request, options: options); } $grpc.ResponseFuture<$0.DeletePinnedResponse> deleteUserPinned( - $0.DeletePinnedRequest request, - {$grpc.CallOptions? options}) { + $0.DeletePinnedRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$deleteUserPinned, request, options: options); } $grpc.ResponseFuture<$0.GetUserAdminResponse> getUserAdminCourses( - $0.GetUserAdminRequest request, - {$grpc.CallOptions? options}) { + $0.GetUserAdminRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$getUserAdminCourses, request, options: options); } $grpc.ResponseFuture<$0.GetUserSettingsResponse> getUserSettings( - $0.GetUserSettingsRequest request, - {$grpc.CallOptions? options}) { + $0.GetUserSettingsRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$getUserSettings, request, options: options); } $grpc.ResponseFuture<$0.PatchUserSettingsResponse> patchUserSettings( - $0.PatchUserSettingsRequest request, - {$grpc.CallOptions? options}) { + $0.PatchUserSettingsRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$patchUserSettings, request, options: options); } $grpc.ResponseFuture<$0.GetBookmarksResponse> getUserBookmarks( - $0.GetBookmarksRequest request, - {$grpc.CallOptions? options}) { + $0.GetBookmarksRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$getUserBookmarks, request, options: options); } $grpc.ResponseFuture<$0.PutBookmarkResponse> putUserBookmark( - $0.PutBookmarkRequest request, - {$grpc.CallOptions? options}) { + $0.PutBookmarkRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$putUserBookmark, request, options: options); } $grpc.ResponseFuture<$0.PatchBookmarkResponse> patchUserBookmark( - $0.PatchBookmarkRequest request, - {$grpc.CallOptions? options}) { + $0.PatchBookmarkRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$patchUserBookmark, request, options: options); } $grpc.ResponseFuture<$0.DeleteBookmarkResponse> deleteUserBookmark( - $0.DeleteBookmarkRequest request, - {$grpc.CallOptions? options}) { + $0.DeleteBookmarkRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$deleteUserBookmark, request, options: options); } $grpc.ResponseFuture<$0.GetBannerAlertsResponse> getBannerAlerts( - $0.GetBannerAlertsRequest request, - {$grpc.CallOptions? options}) { + $0.GetBannerAlertsRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$getBannerAlerts, request, options: options); } $grpc.ResponseFuture<$0.GetFeatureNotificationsResponse> - getFeatureNotifications($0.GetFeatureNotificationsRequest request, - {$grpc.CallOptions? options}) { - return $createUnaryCall(_$getFeatureNotifications, request, - options: options); + getFeatureNotifications( + $0.GetFeatureNotificationsRequest request, { + $grpc.CallOptions? options, + }) { + return $createUnaryCall( + _$getFeatureNotifications, + request, + options: options, + ); } $grpc.ResponseFuture<$0.PostDeviceTokenResponse> postDeviceToken( - $0.PostDeviceTokenRequest request, - {$grpc.CallOptions? options}) { + $0.PostDeviceTokenRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$postDeviceToken, request, options: options); } $grpc.ResponseFuture<$0.DeleteDeviceTokenResponse> deleteDeviceToken( - $0.DeleteDeviceTokenRequest request, - {$grpc.CallOptions? options}) { + $0.DeleteDeviceTokenRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$deleteDeviceToken, request, options: options); } $grpc.ResponseFuture<$0.GetPublicCoursesResponse> getPublicCourses( - $0.GetPublicCoursesRequest request, - {$grpc.CallOptions? options}) { + $0.GetPublicCoursesRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$getPublicCourses, request, options: options); } $grpc.ResponseFuture<$0.GetSemestersResponse> getSemesters( - $0.GetSemestersRequest request, - {$grpc.CallOptions? options}) { + $0.GetSemestersRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$getSemesters, request, options: options); } $grpc.ResponseFuture<$0.GetCourseStreamsResponse> getCourseStreams( - $0.GetCourseStreamsRequest request, - {$grpc.CallOptions? options}) { + $0.GetCourseStreamsRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$getCourseStreams, request, options: options); } $grpc.ResponseFuture<$0.GetStreamResponse> getStream( - $0.GetStreamRequest request, - {$grpc.CallOptions? options}) { + $0.GetStreamRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$getStream, request, options: options); } $grpc.ResponseFuture<$0.GetNowLiveResponse> getNowLive( - $0.GetNowLiveRequest request, - {$grpc.CallOptions? options}) { + $0.GetNowLiveRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$getNowLive, request, options: options); } $grpc.ResponseFuture<$0.GetThumbsVODResponse> getThumbsVOD( - $0.GetThumbsVODRequest request, - {$grpc.CallOptions? options}) { + $0.GetThumbsVODRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$getThumbsVOD, request, options: options); } $grpc.ResponseFuture<$0.GetThumbsLiveResponse> getThumbsLive( - $0.GetThumbsLiveRequest request, - {$grpc.CallOptions? options}) { + $0.GetThumbsLiveRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$getThumbsLive, request, options: options); } $grpc.ResponseFuture<$0.GetProgressResponse> getProgress( - $0.GetProgressRequest request, - {$grpc.CallOptions? options}) { + $0.GetProgressRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$getProgress, request, options: options); } $grpc.ResponseFuture<$0.PutProgressResponse> putProgress( - $0.PutProgressRequest request, - {$grpc.CallOptions? options}) { + $0.PutProgressRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$putProgress, request, options: options); } $grpc.ResponseFuture<$0.MarkAsWatchedResponse> markAsWatched( - $0.MarkAsWatchedRequest request, - {$grpc.CallOptions? options}) { + $0.MarkAsWatchedRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$markAsWatched, request, options: options); } $grpc.ResponseFuture<$0.GetChatMessagesResponse> getChatMessages( - $0.GetChatMessagesRequest request, - {$grpc.CallOptions? options}) { + $0.GetChatMessagesRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$getChatMessages, request, options: options); } $grpc.ResponseFuture<$0.PostChatMessageResponse> postChatMessage( - $0.PostChatMessageRequest request, - {$grpc.CallOptions? options}) { + $0.PostChatMessageRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$postChatMessage, request, options: options); } $grpc.ResponseFuture<$0.PostChatReactionResponse> postChatReaction( - $0.PostChatReactionRequest request, - {$grpc.CallOptions? options}) { + $0.PostChatReactionRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$postChatReaction, request, options: options); } $grpc.ResponseFuture<$0.DeleteChatReactionResponse> deleteChatReaction( - $0.DeleteChatReactionRequest request, - {$grpc.CallOptions? options}) { + $0.DeleteChatReactionRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$deleteChatReaction, request, options: options); } $grpc.ResponseFuture<$0.PostChatReplyResponse> postChatReply( - $0.PostChatReplyRequest request, - {$grpc.CallOptions? options}) { + $0.PostChatReplyRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$postChatReply, request, options: options); } $grpc.ResponseFuture<$0.MarkChatMessageAsResolvedResponse> - markChatMessageAsResolved($0.MarkChatMessageAsResolvedRequest request, - {$grpc.CallOptions? options}) { - return $createUnaryCall(_$markChatMessageAsResolved, request, - options: options); + markChatMessageAsResolved( + $0.MarkChatMessageAsResolvedRequest request, { + $grpc.CallOptions? options, + }) { + return $createUnaryCall( + _$markChatMessageAsResolved, + request, + options: options, + ); } $grpc.ResponseFuture<$0.MarkChatMessageAsUnresolvedResponse> - markChatMessageAsUnresolved($0.MarkChatMessageAsUnresolvedRequest request, - {$grpc.CallOptions? options}) { - return $createUnaryCall(_$markChatMessageAsUnresolved, request, - options: options); - } - - $grpc.ResponseFuture<$0.GetPollsResponse> getPolls($0.GetPollsRequest request, - {$grpc.CallOptions? options}) { + markChatMessageAsUnresolved( + $0.MarkChatMessageAsUnresolvedRequest request, { + $grpc.CallOptions? options, + }) { + return $createUnaryCall( + _$markChatMessageAsUnresolved, + request, + options: options, + ); + } + + $grpc.ResponseFuture<$0.GetPollsResponse> getPolls( + $0.GetPollsRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$getPolls, request, options: options); } $grpc.ResponseFuture<$0.PostPollVoteResponse> postPollVote( - $0.PostPollVoteRequest request, - {$grpc.CallOptions? options}) { + $0.PostPollVoteRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$postPollVote, request, options: options); } } @@ -457,621 +526,788 @@ abstract class APIServiceBase extends $grpc.Service { $core.String get $name => 'protobuf.API'; APIServiceBase() { - $addMethod($grpc.ServiceMethod<$0.GetUserRequest, $0.GetUserResponse>( + $addMethod( + $grpc.ServiceMethod<$0.GetUserRequest, $0.GetUserResponse>( 'getUser', getUser_Pre, false, false, ($core.List<$core.int> value) => $0.GetUserRequest.fromBuffer(value), - ($0.GetUserResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.GetUserCoursesRequest, - $0.GetUserCoursesResponse>( + ($0.GetUserResponse value) => value.writeToBuffer(), + ), + ); + $addMethod( + $grpc.ServiceMethod<$0.GetUserCoursesRequest, $0.GetUserCoursesResponse>( 'getUserCourses', getUserCourses_Pre, false, false, ($core.List<$core.int> value) => $0.GetUserCoursesRequest.fromBuffer(value), - ($0.GetUserCoursesResponse value) => value.writeToBuffer())); + ($0.GetUserCoursesResponse value) => value.writeToBuffer(), + ), + ); $addMethod( - $grpc.ServiceMethod<$0.GetUserPinnedRequest, $0.GetUserPinnedResponse>( - 'getUserPinned', - getUserPinned_Pre, - false, - false, - ($core.List<$core.int> value) => - $0.GetUserPinnedRequest.fromBuffer(value), - ($0.GetUserPinnedResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.PostPinnedRequest, $0.PostPinnedResponse>( + $grpc.ServiceMethod<$0.GetUserPinnedRequest, $0.GetUserPinnedResponse>( + 'getUserPinned', + getUserPinned_Pre, + false, + false, + ($core.List<$core.int> value) => + $0.GetUserPinnedRequest.fromBuffer(value), + ($0.GetUserPinnedResponse value) => value.writeToBuffer(), + ), + ); + $addMethod( + $grpc.ServiceMethod<$0.PostPinnedRequest, $0.PostPinnedResponse>( 'postUserPinned', postUserPinned_Pre, false, false, ($core.List<$core.int> value) => $0.PostPinnedRequest.fromBuffer(value), - ($0.PostPinnedResponse value) => value.writeToBuffer())); + ($0.PostPinnedResponse value) => value.writeToBuffer(), + ), + ); $addMethod( - $grpc.ServiceMethod<$0.DeletePinnedRequest, $0.DeletePinnedResponse>( - 'deleteUserPinned', - deleteUserPinned_Pre, - false, - false, - ($core.List<$core.int> value) => - $0.DeletePinnedRequest.fromBuffer(value), - ($0.DeletePinnedResponse value) => value.writeToBuffer())); + $grpc.ServiceMethod<$0.DeletePinnedRequest, $0.DeletePinnedResponse>( + 'deleteUserPinned', + deleteUserPinned_Pre, + false, + false, + ($core.List<$core.int> value) => + $0.DeletePinnedRequest.fromBuffer(value), + ($0.DeletePinnedResponse value) => value.writeToBuffer(), + ), + ); $addMethod( - $grpc.ServiceMethod<$0.GetUserAdminRequest, $0.GetUserAdminResponse>( - 'getUserAdminCourses', - getUserAdminCourses_Pre, - false, - false, - ($core.List<$core.int> value) => - $0.GetUserAdminRequest.fromBuffer(value), - ($0.GetUserAdminResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.GetUserSettingsRequest, - $0.GetUserSettingsResponse>( + $grpc.ServiceMethod<$0.GetUserAdminRequest, $0.GetUserAdminResponse>( + 'getUserAdminCourses', + getUserAdminCourses_Pre, + false, + false, + ($core.List<$core.int> value) => + $0.GetUserAdminRequest.fromBuffer(value), + ($0.GetUserAdminResponse value) => value.writeToBuffer(), + ), + ); + $addMethod( + $grpc.ServiceMethod<$0.GetUserSettingsRequest, + $0.GetUserSettingsResponse>( 'getUserSettings', getUserSettings_Pre, false, false, ($core.List<$core.int> value) => $0.GetUserSettingsRequest.fromBuffer(value), - ($0.GetUserSettingsResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.PatchUserSettingsRequest, - $0.PatchUserSettingsResponse>( + ($0.GetUserSettingsResponse value) => value.writeToBuffer(), + ), + ); + $addMethod( + $grpc.ServiceMethod<$0.PatchUserSettingsRequest, + $0.PatchUserSettingsResponse>( 'patchUserSettings', patchUserSettings_Pre, false, false, ($core.List<$core.int> value) => $0.PatchUserSettingsRequest.fromBuffer(value), - ($0.PatchUserSettingsResponse value) => value.writeToBuffer())); + ($0.PatchUserSettingsResponse value) => value.writeToBuffer(), + ), + ); $addMethod( - $grpc.ServiceMethod<$0.GetBookmarksRequest, $0.GetBookmarksResponse>( - 'getUserBookmarks', - getUserBookmarks_Pre, - false, - false, - ($core.List<$core.int> value) => - $0.GetBookmarksRequest.fromBuffer(value), - ($0.GetBookmarksResponse value) => value.writeToBuffer())); + $grpc.ServiceMethod<$0.GetBookmarksRequest, $0.GetBookmarksResponse>( + 'getUserBookmarks', + getUserBookmarks_Pre, + false, + false, + ($core.List<$core.int> value) => + $0.GetBookmarksRequest.fromBuffer(value), + ($0.GetBookmarksResponse value) => value.writeToBuffer(), + ), + ); $addMethod( - $grpc.ServiceMethod<$0.PutBookmarkRequest, $0.PutBookmarkResponse>( - 'putUserBookmark', - putUserBookmark_Pre, - false, - false, - ($core.List<$core.int> value) => - $0.PutBookmarkRequest.fromBuffer(value), - ($0.PutBookmarkResponse value) => value.writeToBuffer())); + $grpc.ServiceMethod<$0.PutBookmarkRequest, $0.PutBookmarkResponse>( + 'putUserBookmark', + putUserBookmark_Pre, + false, + false, + ($core.List<$core.int> value) => + $0.PutBookmarkRequest.fromBuffer(value), + ($0.PutBookmarkResponse value) => value.writeToBuffer(), + ), + ); $addMethod( - $grpc.ServiceMethod<$0.PatchBookmarkRequest, $0.PatchBookmarkResponse>( - 'patchUserBookmark', - patchUserBookmark_Pre, - false, - false, - ($core.List<$core.int> value) => - $0.PatchBookmarkRequest.fromBuffer(value), - ($0.PatchBookmarkResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.DeleteBookmarkRequest, - $0.DeleteBookmarkResponse>( + $grpc.ServiceMethod<$0.PatchBookmarkRequest, $0.PatchBookmarkResponse>( + 'patchUserBookmark', + patchUserBookmark_Pre, + false, + false, + ($core.List<$core.int> value) => + $0.PatchBookmarkRequest.fromBuffer(value), + ($0.PatchBookmarkResponse value) => value.writeToBuffer(), + ), + ); + $addMethod( + $grpc.ServiceMethod<$0.DeleteBookmarkRequest, $0.DeleteBookmarkResponse>( 'deleteUserBookmark', deleteUserBookmark_Pre, false, false, ($core.List<$core.int> value) => $0.DeleteBookmarkRequest.fromBuffer(value), - ($0.DeleteBookmarkResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.GetBannerAlertsRequest, - $0.GetBannerAlertsResponse>( + ($0.DeleteBookmarkResponse value) => value.writeToBuffer(), + ), + ); + $addMethod( + $grpc.ServiceMethod<$0.GetBannerAlertsRequest, + $0.GetBannerAlertsResponse>( 'getBannerAlerts', getBannerAlerts_Pre, false, false, ($core.List<$core.int> value) => $0.GetBannerAlertsRequest.fromBuffer(value), - ($0.GetBannerAlertsResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.GetFeatureNotificationsRequest, - $0.GetFeatureNotificationsResponse>( + ($0.GetBannerAlertsResponse value) => value.writeToBuffer(), + ), + ); + $addMethod( + $grpc.ServiceMethod<$0.GetFeatureNotificationsRequest, + $0.GetFeatureNotificationsResponse>( 'getFeatureNotifications', getFeatureNotifications_Pre, false, false, ($core.List<$core.int> value) => $0.GetFeatureNotificationsRequest.fromBuffer(value), - ($0.GetFeatureNotificationsResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.PostDeviceTokenRequest, - $0.PostDeviceTokenResponse>( + ($0.GetFeatureNotificationsResponse value) => value.writeToBuffer(), + ), + ); + $addMethod( + $grpc.ServiceMethod<$0.PostDeviceTokenRequest, + $0.PostDeviceTokenResponse>( 'postDeviceToken', postDeviceToken_Pre, false, false, ($core.List<$core.int> value) => $0.PostDeviceTokenRequest.fromBuffer(value), - ($0.PostDeviceTokenResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.DeleteDeviceTokenRequest, - $0.DeleteDeviceTokenResponse>( + ($0.PostDeviceTokenResponse value) => value.writeToBuffer(), + ), + ); + $addMethod( + $grpc.ServiceMethod<$0.DeleteDeviceTokenRequest, + $0.DeleteDeviceTokenResponse>( 'deleteDeviceToken', deleteDeviceToken_Pre, false, false, ($core.List<$core.int> value) => $0.DeleteDeviceTokenRequest.fromBuffer(value), - ($0.DeleteDeviceTokenResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.GetPublicCoursesRequest, - $0.GetPublicCoursesResponse>( + ($0.DeleteDeviceTokenResponse value) => value.writeToBuffer(), + ), + ); + $addMethod( + $grpc.ServiceMethod<$0.GetPublicCoursesRequest, + $0.GetPublicCoursesResponse>( 'getPublicCourses', getPublicCourses_Pre, false, false, ($core.List<$core.int> value) => $0.GetPublicCoursesRequest.fromBuffer(value), - ($0.GetPublicCoursesResponse value) => value.writeToBuffer())); + ($0.GetPublicCoursesResponse value) => value.writeToBuffer(), + ), + ); + $addMethod( + $grpc.ServiceMethod<$0.GetSemestersRequest, $0.GetSemestersResponse>( + 'getSemesters', + getSemesters_Pre, + false, + false, + ($core.List<$core.int> value) => + $0.GetSemestersRequest.fromBuffer(value), + ($0.GetSemestersResponse value) => value.writeToBuffer(), + ), + ); $addMethod( - $grpc.ServiceMethod<$0.GetSemestersRequest, $0.GetSemestersResponse>( - 'getSemesters', - getSemesters_Pre, - false, - false, - ($core.List<$core.int> value) => - $0.GetSemestersRequest.fromBuffer(value), - ($0.GetSemestersResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.GetCourseStreamsRequest, - $0.GetCourseStreamsResponse>( + $grpc.ServiceMethod<$0.GetCourseStreamsRequest, + $0.GetCourseStreamsResponse>( 'getCourseStreams', getCourseStreams_Pre, false, false, ($core.List<$core.int> value) => $0.GetCourseStreamsRequest.fromBuffer(value), - ($0.GetCourseStreamsResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.GetStreamRequest, $0.GetStreamResponse>( + ($0.GetCourseStreamsResponse value) => value.writeToBuffer(), + ), + ); + $addMethod( + $grpc.ServiceMethod<$0.GetStreamRequest, $0.GetStreamResponse>( 'GetStream', getStream_Pre, false, false, ($core.List<$core.int> value) => $0.GetStreamRequest.fromBuffer(value), - ($0.GetStreamResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.GetNowLiveRequest, $0.GetNowLiveResponse>( + ($0.GetStreamResponse value) => value.writeToBuffer(), + ), + ); + $addMethod( + $grpc.ServiceMethod<$0.GetNowLiveRequest, $0.GetNowLiveResponse>( 'GetNowLive', getNowLive_Pre, false, false, ($core.List<$core.int> value) => $0.GetNowLiveRequest.fromBuffer(value), - ($0.GetNowLiveResponse value) => value.writeToBuffer())); + ($0.GetNowLiveResponse value) => value.writeToBuffer(), + ), + ); $addMethod( - $grpc.ServiceMethod<$0.GetThumbsVODRequest, $0.GetThumbsVODResponse>( - 'getThumbsVOD', - getThumbsVOD_Pre, - false, - false, - ($core.List<$core.int> value) => - $0.GetThumbsVODRequest.fromBuffer(value), - ($0.GetThumbsVODResponse value) => value.writeToBuffer())); + $grpc.ServiceMethod<$0.GetThumbsVODRequest, $0.GetThumbsVODResponse>( + 'getThumbsVOD', + getThumbsVOD_Pre, + false, + false, + ($core.List<$core.int> value) => + $0.GetThumbsVODRequest.fromBuffer(value), + ($0.GetThumbsVODResponse value) => value.writeToBuffer(), + ), + ); $addMethod( - $grpc.ServiceMethod<$0.GetThumbsLiveRequest, $0.GetThumbsLiveResponse>( - 'getThumbsLive', - getThumbsLive_Pre, - false, - false, - ($core.List<$core.int> value) => - $0.GetThumbsLiveRequest.fromBuffer(value), - ($0.GetThumbsLiveResponse value) => value.writeToBuffer())); + $grpc.ServiceMethod<$0.GetThumbsLiveRequest, $0.GetThumbsLiveResponse>( + 'getThumbsLive', + getThumbsLive_Pre, + false, + false, + ($core.List<$core.int> value) => + $0.GetThumbsLiveRequest.fromBuffer(value), + ($0.GetThumbsLiveResponse value) => value.writeToBuffer(), + ), + ); $addMethod( - $grpc.ServiceMethod<$0.GetProgressRequest, $0.GetProgressResponse>( - 'getProgress', - getProgress_Pre, - false, - false, - ($core.List<$core.int> value) => - $0.GetProgressRequest.fromBuffer(value), - ($0.GetProgressResponse value) => value.writeToBuffer())); + $grpc.ServiceMethod<$0.GetProgressRequest, $0.GetProgressResponse>( + 'getProgress', + getProgress_Pre, + false, + false, + ($core.List<$core.int> value) => + $0.GetProgressRequest.fromBuffer(value), + ($0.GetProgressResponse value) => value.writeToBuffer(), + ), + ); $addMethod( - $grpc.ServiceMethod<$0.PutProgressRequest, $0.PutProgressResponse>( - 'putProgress', - putProgress_Pre, - false, - false, - ($core.List<$core.int> value) => - $0.PutProgressRequest.fromBuffer(value), - ($0.PutProgressResponse value) => value.writeToBuffer())); + $grpc.ServiceMethod<$0.PutProgressRequest, $0.PutProgressResponse>( + 'putProgress', + putProgress_Pre, + false, + false, + ($core.List<$core.int> value) => + $0.PutProgressRequest.fromBuffer(value), + ($0.PutProgressResponse value) => value.writeToBuffer(), + ), + ); $addMethod( - $grpc.ServiceMethod<$0.MarkAsWatchedRequest, $0.MarkAsWatchedResponse>( - 'markAsWatched', - markAsWatched_Pre, - false, - false, - ($core.List<$core.int> value) => - $0.MarkAsWatchedRequest.fromBuffer(value), - ($0.MarkAsWatchedResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.GetChatMessagesRequest, - $0.GetChatMessagesResponse>( + $grpc.ServiceMethod<$0.MarkAsWatchedRequest, $0.MarkAsWatchedResponse>( + 'markAsWatched', + markAsWatched_Pre, + false, + false, + ($core.List<$core.int> value) => + $0.MarkAsWatchedRequest.fromBuffer(value), + ($0.MarkAsWatchedResponse value) => value.writeToBuffer(), + ), + ); + $addMethod( + $grpc.ServiceMethod<$0.GetChatMessagesRequest, + $0.GetChatMessagesResponse>( 'getChatMessages', getChatMessages_Pre, false, false, ($core.List<$core.int> value) => $0.GetChatMessagesRequest.fromBuffer(value), - ($0.GetChatMessagesResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.PostChatMessageRequest, - $0.PostChatMessageResponse>( + ($0.GetChatMessagesResponse value) => value.writeToBuffer(), + ), + ); + $addMethod( + $grpc.ServiceMethod<$0.PostChatMessageRequest, + $0.PostChatMessageResponse>( 'postChatMessage', postChatMessage_Pre, false, false, ($core.List<$core.int> value) => $0.PostChatMessageRequest.fromBuffer(value), - ($0.PostChatMessageResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.PostChatReactionRequest, - $0.PostChatReactionResponse>( + ($0.PostChatMessageResponse value) => value.writeToBuffer(), + ), + ); + $addMethod( + $grpc.ServiceMethod<$0.PostChatReactionRequest, + $0.PostChatReactionResponse>( 'postChatReaction', postChatReaction_Pre, false, false, ($core.List<$core.int> value) => $0.PostChatReactionRequest.fromBuffer(value), - ($0.PostChatReactionResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.DeleteChatReactionRequest, - $0.DeleteChatReactionResponse>( + ($0.PostChatReactionResponse value) => value.writeToBuffer(), + ), + ); + $addMethod( + $grpc.ServiceMethod<$0.DeleteChatReactionRequest, + $0.DeleteChatReactionResponse>( 'deleteChatReaction', deleteChatReaction_Pre, false, false, ($core.List<$core.int> value) => $0.DeleteChatReactionRequest.fromBuffer(value), - ($0.DeleteChatReactionResponse value) => value.writeToBuffer())); + ($0.DeleteChatReactionResponse value) => value.writeToBuffer(), + ), + ); $addMethod( - $grpc.ServiceMethod<$0.PostChatReplyRequest, $0.PostChatReplyResponse>( - 'postChatReply', - postChatReply_Pre, - false, - false, - ($core.List<$core.int> value) => - $0.PostChatReplyRequest.fromBuffer(value), - ($0.PostChatReplyResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.MarkChatMessageAsResolvedRequest, - $0.MarkChatMessageAsResolvedResponse>( + $grpc.ServiceMethod<$0.PostChatReplyRequest, $0.PostChatReplyResponse>( + 'postChatReply', + postChatReply_Pre, + false, + false, + ($core.List<$core.int> value) => + $0.PostChatReplyRequest.fromBuffer(value), + ($0.PostChatReplyResponse value) => value.writeToBuffer(), + ), + ); + $addMethod( + $grpc.ServiceMethod<$0.MarkChatMessageAsResolvedRequest, + $0.MarkChatMessageAsResolvedResponse>( 'markChatMessageAsResolved', markChatMessageAsResolved_Pre, false, false, ($core.List<$core.int> value) => $0.MarkChatMessageAsResolvedRequest.fromBuffer(value), - ($0.MarkChatMessageAsResolvedResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.MarkChatMessageAsUnresolvedRequest, - $0.MarkChatMessageAsUnresolvedResponse>( + ($0.MarkChatMessageAsResolvedResponse value) => value.writeToBuffer(), + ), + ); + $addMethod( + $grpc.ServiceMethod<$0.MarkChatMessageAsUnresolvedRequest, + $0.MarkChatMessageAsUnresolvedResponse>( 'markChatMessageAsUnresolved', markChatMessageAsUnresolved_Pre, false, false, ($core.List<$core.int> value) => $0.MarkChatMessageAsUnresolvedRequest.fromBuffer(value), - ($0.MarkChatMessageAsUnresolvedResponse value) => - value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.GetPollsRequest, $0.GetPollsResponse>( + ($0.MarkChatMessageAsUnresolvedResponse value) => value.writeToBuffer(), + ), + ); + $addMethod( + $grpc.ServiceMethod<$0.GetPollsRequest, $0.GetPollsResponse>( 'getPolls', getPolls_Pre, false, false, ($core.List<$core.int> value) => $0.GetPollsRequest.fromBuffer(value), - ($0.GetPollsResponse value) => value.writeToBuffer())); + ($0.GetPollsResponse value) => value.writeToBuffer(), + ), + ); $addMethod( - $grpc.ServiceMethod<$0.PostPollVoteRequest, $0.PostPollVoteResponse>( - 'postPollVote', - postPollVote_Pre, - false, - false, - ($core.List<$core.int> value) => - $0.PostPollVoteRequest.fromBuffer(value), - ($0.PostPollVoteResponse value) => value.writeToBuffer())); + $grpc.ServiceMethod<$0.PostPollVoteRequest, $0.PostPollVoteResponse>( + 'postPollVote', + postPollVote_Pre, + false, + false, + ($core.List<$core.int> value) => + $0.PostPollVoteRequest.fromBuffer(value), + ($0.PostPollVoteResponse value) => value.writeToBuffer(), + ), + ); } $async.Future<$0.GetUserResponse> getUser_Pre( - $grpc.ServiceCall call, $async.Future<$0.GetUserRequest> request) async { + $grpc.ServiceCall call, + $async.Future<$0.GetUserRequest> request, + ) async { return getUser(call, await request); } $async.Future<$0.GetUserCoursesResponse> getUserCourses_Pre( - $grpc.ServiceCall call, - $async.Future<$0.GetUserCoursesRequest> request) async { + $grpc.ServiceCall call, + $async.Future<$0.GetUserCoursesRequest> request, + ) async { return getUserCourses(call, await request); } $async.Future<$0.GetUserPinnedResponse> getUserPinned_Pre( - $grpc.ServiceCall call, - $async.Future<$0.GetUserPinnedRequest> request) async { + $grpc.ServiceCall call, + $async.Future<$0.GetUserPinnedRequest> request, + ) async { return getUserPinned(call, await request); } $async.Future<$0.PostPinnedResponse> postUserPinned_Pre( - $grpc.ServiceCall call, - $async.Future<$0.PostPinnedRequest> request) async { + $grpc.ServiceCall call, + $async.Future<$0.PostPinnedRequest> request, + ) async { return postUserPinned(call, await request); } $async.Future<$0.DeletePinnedResponse> deleteUserPinned_Pre( - $grpc.ServiceCall call, - $async.Future<$0.DeletePinnedRequest> request) async { + $grpc.ServiceCall call, + $async.Future<$0.DeletePinnedRequest> request, + ) async { return deleteUserPinned(call, await request); } $async.Future<$0.GetUserAdminResponse> getUserAdminCourses_Pre( - $grpc.ServiceCall call, - $async.Future<$0.GetUserAdminRequest> request) async { + $grpc.ServiceCall call, + $async.Future<$0.GetUserAdminRequest> request, + ) async { return getUserAdminCourses(call, await request); } $async.Future<$0.GetUserSettingsResponse> getUserSettings_Pre( - $grpc.ServiceCall call, - $async.Future<$0.GetUserSettingsRequest> request) async { + $grpc.ServiceCall call, + $async.Future<$0.GetUserSettingsRequest> request, + ) async { return getUserSettings(call, await request); } $async.Future<$0.PatchUserSettingsResponse> patchUserSettings_Pre( - $grpc.ServiceCall call, - $async.Future<$0.PatchUserSettingsRequest> request) async { + $grpc.ServiceCall call, + $async.Future<$0.PatchUserSettingsRequest> request, + ) async { return patchUserSettings(call, await request); } $async.Future<$0.GetBookmarksResponse> getUserBookmarks_Pre( - $grpc.ServiceCall call, - $async.Future<$0.GetBookmarksRequest> request) async { + $grpc.ServiceCall call, + $async.Future<$0.GetBookmarksRequest> request, + ) async { return getUserBookmarks(call, await request); } $async.Future<$0.PutBookmarkResponse> putUserBookmark_Pre( - $grpc.ServiceCall call, - $async.Future<$0.PutBookmarkRequest> request) async { + $grpc.ServiceCall call, + $async.Future<$0.PutBookmarkRequest> request, + ) async { return putUserBookmark(call, await request); } $async.Future<$0.PatchBookmarkResponse> patchUserBookmark_Pre( - $grpc.ServiceCall call, - $async.Future<$0.PatchBookmarkRequest> request) async { + $grpc.ServiceCall call, + $async.Future<$0.PatchBookmarkRequest> request, + ) async { return patchUserBookmark(call, await request); } $async.Future<$0.DeleteBookmarkResponse> deleteUserBookmark_Pre( - $grpc.ServiceCall call, - $async.Future<$0.DeleteBookmarkRequest> request) async { + $grpc.ServiceCall call, + $async.Future<$0.DeleteBookmarkRequest> request, + ) async { return deleteUserBookmark(call, await request); } $async.Future<$0.GetBannerAlertsResponse> getBannerAlerts_Pre( - $grpc.ServiceCall call, - $async.Future<$0.GetBannerAlertsRequest> request) async { + $grpc.ServiceCall call, + $async.Future<$0.GetBannerAlertsRequest> request, + ) async { return getBannerAlerts(call, await request); } $async.Future<$0.GetFeatureNotificationsResponse> getFeatureNotifications_Pre( - $grpc.ServiceCall call, - $async.Future<$0.GetFeatureNotificationsRequest> request) async { + $grpc.ServiceCall call, + $async.Future<$0.GetFeatureNotificationsRequest> request, + ) async { return getFeatureNotifications(call, await request); } $async.Future<$0.PostDeviceTokenResponse> postDeviceToken_Pre( - $grpc.ServiceCall call, - $async.Future<$0.PostDeviceTokenRequest> request) async { + $grpc.ServiceCall call, + $async.Future<$0.PostDeviceTokenRequest> request, + ) async { return postDeviceToken(call, await request); } $async.Future<$0.DeleteDeviceTokenResponse> deleteDeviceToken_Pre( - $grpc.ServiceCall call, - $async.Future<$0.DeleteDeviceTokenRequest> request) async { + $grpc.ServiceCall call, + $async.Future<$0.DeleteDeviceTokenRequest> request, + ) async { return deleteDeviceToken(call, await request); } $async.Future<$0.GetPublicCoursesResponse> getPublicCourses_Pre( - $grpc.ServiceCall call, - $async.Future<$0.GetPublicCoursesRequest> request) async { + $grpc.ServiceCall call, + $async.Future<$0.GetPublicCoursesRequest> request, + ) async { return getPublicCourses(call, await request); } $async.Future<$0.GetSemestersResponse> getSemesters_Pre( - $grpc.ServiceCall call, - $async.Future<$0.GetSemestersRequest> request) async { + $grpc.ServiceCall call, + $async.Future<$0.GetSemestersRequest> request, + ) async { return getSemesters(call, await request); } $async.Future<$0.GetCourseStreamsResponse> getCourseStreams_Pre( - $grpc.ServiceCall call, - $async.Future<$0.GetCourseStreamsRequest> request) async { + $grpc.ServiceCall call, + $async.Future<$0.GetCourseStreamsRequest> request, + ) async { return getCourseStreams(call, await request); } - $async.Future<$0.GetStreamResponse> getStream_Pre($grpc.ServiceCall call, - $async.Future<$0.GetStreamRequest> request) async { + $async.Future<$0.GetStreamResponse> getStream_Pre( + $grpc.ServiceCall call, + $async.Future<$0.GetStreamRequest> request, + ) async { return getStream(call, await request); } - $async.Future<$0.GetNowLiveResponse> getNowLive_Pre($grpc.ServiceCall call, - $async.Future<$0.GetNowLiveRequest> request) async { + $async.Future<$0.GetNowLiveResponse> getNowLive_Pre( + $grpc.ServiceCall call, + $async.Future<$0.GetNowLiveRequest> request, + ) async { return getNowLive(call, await request); } $async.Future<$0.GetThumbsVODResponse> getThumbsVOD_Pre( - $grpc.ServiceCall call, - $async.Future<$0.GetThumbsVODRequest> request) async { + $grpc.ServiceCall call, + $async.Future<$0.GetThumbsVODRequest> request, + ) async { return getThumbsVOD(call, await request); } $async.Future<$0.GetThumbsLiveResponse> getThumbsLive_Pre( - $grpc.ServiceCall call, - $async.Future<$0.GetThumbsLiveRequest> request) async { + $grpc.ServiceCall call, + $async.Future<$0.GetThumbsLiveRequest> request, + ) async { return getThumbsLive(call, await request); } - $async.Future<$0.GetProgressResponse> getProgress_Pre($grpc.ServiceCall call, - $async.Future<$0.GetProgressRequest> request) async { + $async.Future<$0.GetProgressResponse> getProgress_Pre( + $grpc.ServiceCall call, + $async.Future<$0.GetProgressRequest> request, + ) async { return getProgress(call, await request); } - $async.Future<$0.PutProgressResponse> putProgress_Pre($grpc.ServiceCall call, - $async.Future<$0.PutProgressRequest> request) async { + $async.Future<$0.PutProgressResponse> putProgress_Pre( + $grpc.ServiceCall call, + $async.Future<$0.PutProgressRequest> request, + ) async { return putProgress(call, await request); } $async.Future<$0.MarkAsWatchedResponse> markAsWatched_Pre( - $grpc.ServiceCall call, - $async.Future<$0.MarkAsWatchedRequest> request) async { + $grpc.ServiceCall call, + $async.Future<$0.MarkAsWatchedRequest> request, + ) async { return markAsWatched(call, await request); } $async.Future<$0.GetChatMessagesResponse> getChatMessages_Pre( - $grpc.ServiceCall call, - $async.Future<$0.GetChatMessagesRequest> request) async { + $grpc.ServiceCall call, + $async.Future<$0.GetChatMessagesRequest> request, + ) async { return getChatMessages(call, await request); } $async.Future<$0.PostChatMessageResponse> postChatMessage_Pre( - $grpc.ServiceCall call, - $async.Future<$0.PostChatMessageRequest> request) async { + $grpc.ServiceCall call, + $async.Future<$0.PostChatMessageRequest> request, + ) async { return postChatMessage(call, await request); } $async.Future<$0.PostChatReactionResponse> postChatReaction_Pre( - $grpc.ServiceCall call, - $async.Future<$0.PostChatReactionRequest> request) async { + $grpc.ServiceCall call, + $async.Future<$0.PostChatReactionRequest> request, + ) async { return postChatReaction(call, await request); } $async.Future<$0.DeleteChatReactionResponse> deleteChatReaction_Pre( - $grpc.ServiceCall call, - $async.Future<$0.DeleteChatReactionRequest> request) async { + $grpc.ServiceCall call, + $async.Future<$0.DeleteChatReactionRequest> request, + ) async { return deleteChatReaction(call, await request); } $async.Future<$0.PostChatReplyResponse> postChatReply_Pre( - $grpc.ServiceCall call, - $async.Future<$0.PostChatReplyRequest> request) async { + $grpc.ServiceCall call, + $async.Future<$0.PostChatReplyRequest> request, + ) async { return postChatReply(call, await request); } $async.Future<$0.MarkChatMessageAsResolvedResponse> - markChatMessageAsResolved_Pre($grpc.ServiceCall call, - $async.Future<$0.MarkChatMessageAsResolvedRequest> request) async { + markChatMessageAsResolved_Pre( + $grpc.ServiceCall call, + $async.Future<$0.MarkChatMessageAsResolvedRequest> request, + ) async { return markChatMessageAsResolved(call, await request); } $async.Future<$0.MarkChatMessageAsUnresolvedResponse> - markChatMessageAsUnresolved_Pre($grpc.ServiceCall call, - $async.Future<$0.MarkChatMessageAsUnresolvedRequest> request) async { + markChatMessageAsUnresolved_Pre( + $grpc.ServiceCall call, + $async.Future<$0.MarkChatMessageAsUnresolvedRequest> request, + ) async { return markChatMessageAsUnresolved(call, await request); } $async.Future<$0.GetPollsResponse> getPolls_Pre( - $grpc.ServiceCall call, $async.Future<$0.GetPollsRequest> request) async { + $grpc.ServiceCall call, + $async.Future<$0.GetPollsRequest> request, + ) async { return getPolls(call, await request); } $async.Future<$0.PostPollVoteResponse> postPollVote_Pre( - $grpc.ServiceCall call, - $async.Future<$0.PostPollVoteRequest> request) async { + $grpc.ServiceCall call, + $async.Future<$0.PostPollVoteRequest> request, + ) async { return postPollVote(call, await request); } $async.Future<$0.GetUserResponse> getUser( - $grpc.ServiceCall call, $0.GetUserRequest request); - + $grpc.ServiceCall call, + $0.GetUserRequest request, + ); $async.Future<$0.GetUserCoursesResponse> getUserCourses( - $grpc.ServiceCall call, $0.GetUserCoursesRequest request); - + $grpc.ServiceCall call, + $0.GetUserCoursesRequest request, + ); $async.Future<$0.GetUserPinnedResponse> getUserPinned( - $grpc.ServiceCall call, $0.GetUserPinnedRequest request); - + $grpc.ServiceCall call, + $0.GetUserPinnedRequest request, + ); $async.Future<$0.PostPinnedResponse> postUserPinned( - $grpc.ServiceCall call, $0.PostPinnedRequest request); - + $grpc.ServiceCall call, + $0.PostPinnedRequest request, + ); $async.Future<$0.DeletePinnedResponse> deleteUserPinned( - $grpc.ServiceCall call, $0.DeletePinnedRequest request); - + $grpc.ServiceCall call, + $0.DeletePinnedRequest request, + ); $async.Future<$0.GetUserAdminResponse> getUserAdminCourses( - $grpc.ServiceCall call, $0.GetUserAdminRequest request); - + $grpc.ServiceCall call, + $0.GetUserAdminRequest request, + ); $async.Future<$0.GetUserSettingsResponse> getUserSettings( - $grpc.ServiceCall call, $0.GetUserSettingsRequest request); - + $grpc.ServiceCall call, + $0.GetUserSettingsRequest request, + ); $async.Future<$0.PatchUserSettingsResponse> patchUserSettings( - $grpc.ServiceCall call, $0.PatchUserSettingsRequest request); - + $grpc.ServiceCall call, + $0.PatchUserSettingsRequest request, + ); $async.Future<$0.GetBookmarksResponse> getUserBookmarks( - $grpc.ServiceCall call, $0.GetBookmarksRequest request); - + $grpc.ServiceCall call, + $0.GetBookmarksRequest request, + ); $async.Future<$0.PutBookmarkResponse> putUserBookmark( - $grpc.ServiceCall call, $0.PutBookmarkRequest request); - + $grpc.ServiceCall call, + $0.PutBookmarkRequest request, + ); $async.Future<$0.PatchBookmarkResponse> patchUserBookmark( - $grpc.ServiceCall call, $0.PatchBookmarkRequest request); - + $grpc.ServiceCall call, + $0.PatchBookmarkRequest request, + ); $async.Future<$0.DeleteBookmarkResponse> deleteUserBookmark( - $grpc.ServiceCall call, $0.DeleteBookmarkRequest request); - + $grpc.ServiceCall call, + $0.DeleteBookmarkRequest request, + ); $async.Future<$0.GetBannerAlertsResponse> getBannerAlerts( - $grpc.ServiceCall call, $0.GetBannerAlertsRequest request); - + $grpc.ServiceCall call, + $0.GetBannerAlertsRequest request, + ); $async.Future<$0.GetFeatureNotificationsResponse> getFeatureNotifications( - $grpc.ServiceCall call, $0.GetFeatureNotificationsRequest request); - + $grpc.ServiceCall call, + $0.GetFeatureNotificationsRequest request, + ); $async.Future<$0.PostDeviceTokenResponse> postDeviceToken( - $grpc.ServiceCall call, $0.PostDeviceTokenRequest request); - + $grpc.ServiceCall call, + $0.PostDeviceTokenRequest request, + ); $async.Future<$0.DeleteDeviceTokenResponse> deleteDeviceToken( - $grpc.ServiceCall call, $0.DeleteDeviceTokenRequest request); - + $grpc.ServiceCall call, + $0.DeleteDeviceTokenRequest request, + ); $async.Future<$0.GetPublicCoursesResponse> getPublicCourses( - $grpc.ServiceCall call, $0.GetPublicCoursesRequest request); - + $grpc.ServiceCall call, + $0.GetPublicCoursesRequest request, + ); $async.Future<$0.GetSemestersResponse> getSemesters( - $grpc.ServiceCall call, $0.GetSemestersRequest request); - + $grpc.ServiceCall call, + $0.GetSemestersRequest request, + ); $async.Future<$0.GetCourseStreamsResponse> getCourseStreams( - $grpc.ServiceCall call, $0.GetCourseStreamsRequest request); - + $grpc.ServiceCall call, + $0.GetCourseStreamsRequest request, + ); $async.Future<$0.GetStreamResponse> getStream( - $grpc.ServiceCall call, $0.GetStreamRequest request); - + $grpc.ServiceCall call, + $0.GetStreamRequest request, + ); $async.Future<$0.GetNowLiveResponse> getNowLive( - $grpc.ServiceCall call, $0.GetNowLiveRequest request); - + $grpc.ServiceCall call, + $0.GetNowLiveRequest request, + ); $async.Future<$0.GetThumbsVODResponse> getThumbsVOD( - $grpc.ServiceCall call, $0.GetThumbsVODRequest request); - + $grpc.ServiceCall call, + $0.GetThumbsVODRequest request, + ); $async.Future<$0.GetThumbsLiveResponse> getThumbsLive( - $grpc.ServiceCall call, $0.GetThumbsLiveRequest request); - + $grpc.ServiceCall call, + $0.GetThumbsLiveRequest request, + ); $async.Future<$0.GetProgressResponse> getProgress( - $grpc.ServiceCall call, $0.GetProgressRequest request); - + $grpc.ServiceCall call, + $0.GetProgressRequest request, + ); $async.Future<$0.PutProgressResponse> putProgress( - $grpc.ServiceCall call, $0.PutProgressRequest request); - + $grpc.ServiceCall call, + $0.PutProgressRequest request, + ); $async.Future<$0.MarkAsWatchedResponse> markAsWatched( - $grpc.ServiceCall call, $0.MarkAsWatchedRequest request); - + $grpc.ServiceCall call, + $0.MarkAsWatchedRequest request, + ); $async.Future<$0.GetChatMessagesResponse> getChatMessages( - $grpc.ServiceCall call, $0.GetChatMessagesRequest request); - + $grpc.ServiceCall call, + $0.GetChatMessagesRequest request, + ); $async.Future<$0.PostChatMessageResponse> postChatMessage( - $grpc.ServiceCall call, $0.PostChatMessageRequest request); - + $grpc.ServiceCall call, + $0.PostChatMessageRequest request, + ); $async.Future<$0.PostChatReactionResponse> postChatReaction( - $grpc.ServiceCall call, $0.PostChatReactionRequest request); - + $grpc.ServiceCall call, + $0.PostChatReactionRequest request, + ); $async.Future<$0.DeleteChatReactionResponse> deleteChatReaction( - $grpc.ServiceCall call, $0.DeleteChatReactionRequest request); - + $grpc.ServiceCall call, + $0.DeleteChatReactionRequest request, + ); $async.Future<$0.PostChatReplyResponse> postChatReply( - $grpc.ServiceCall call, $0.PostChatReplyRequest request); - + $grpc.ServiceCall call, + $0.PostChatReplyRequest request, + ); $async.Future<$0.MarkChatMessageAsResolvedResponse> markChatMessageAsResolved( - $grpc.ServiceCall call, $0.MarkChatMessageAsResolvedRequest request); - + $grpc.ServiceCall call, + $0.MarkChatMessageAsResolvedRequest request, + ); $async.Future<$0.MarkChatMessageAsUnresolvedResponse> - markChatMessageAsUnresolved($grpc.ServiceCall call, - $0.MarkChatMessageAsUnresolvedRequest request); - + markChatMessageAsUnresolved( + $grpc.ServiceCall call, + $0.MarkChatMessageAsUnresolvedRequest request, + ); $async.Future<$0.GetPollsResponse> getPolls( - $grpc.ServiceCall call, $0.GetPollsRequest request); - + $grpc.ServiceCall call, + $0.GetPollsRequest request, + ); $async.Future<$0.PostPollVoteResponse> postPollVote( - $grpc.ServiceCall call, $0.PostPollVoteRequest request); + $grpc.ServiceCall call, + $0.PostPollVoteRequest request, + ); } diff --git a/lib/base/networking/api/gocast/api_v2.pbjson.dart b/lib/base/networking/api/gocast/api_v2.pbjson.dart index 06417d4c..4bd311a1 100644 --- a/lib/base/networking/api/gocast/api_v2.pbjson.dart +++ b/lib/base/networking/api/gocast/api_v2.pbjson.dart @@ -71,11 +71,39 @@ const ChatMessage$json = { {'1': 'streamID', '3': 6, '4': 1, '5': 13, '10': 'streamID'}, {'1': 'color', '3': 7, '4': 1, '5': 9, '10': 'color'}, {'1': 'isVisible', '3': 8, '4': 1, '5': 8, '10': 'isVisible'}, - {'1': 'reactions', '3': 9, '4': 3, '5': 11, '6': '.protobuf.ChatReaction', '10': 'reactions'}, - {'1': 'replies', '3': 10, '4': 3, '5': 11, '6': '.protobuf.ChatMessage', '10': 'replies'}, - {'1': 'addressedUsers', '3': 11, '4': 3, '5': 11, '6': '.protobuf.AddressedUser', '10': 'addressedUsers'}, + { + '1': 'reactions', + '3': 9, + '4': 3, + '5': 11, + '6': '.protobuf.ChatReaction', + '10': 'reactions' + }, + { + '1': 'replies', + '3': 10, + '4': 3, + '5': 11, + '6': '.protobuf.ChatMessage', + '10': 'replies' + }, + { + '1': 'addressedUsers', + '3': 11, + '4': 3, + '5': 11, + '6': '.protobuf.AddressedUser', + '10': 'addressedUsers' + }, {'1': 'isResolved', '3': 12, '4': 1, '5': 8, '10': 'isResolved'}, - {'1': 'createdAt', '3': 13, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'createdAt'}, + { + '1': 'createdAt', + '3': 13, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '10': 'createdAt' + }, {'1': 'isAdmin', '3': 14, '4': 1, '5': 8, '10': 'isAdmin'}, ], }; @@ -102,7 +130,8 @@ const GetChatMessagesRequest$json = { }; /// Descriptor for `GetChatMessagesRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getChatMessagesRequestDescriptor = $convert.base64Decode( +final $typed_data.Uint8List getChatMessagesRequestDescriptor = + $convert.base64Decode( 'ChZHZXRDaGF0TWVzc2FnZXNSZXF1ZXN0EhoKCHN0cmVhbUlEGAEgASgNUghzdHJlYW1JRA=='); @$core.Deprecated('Use postChatMessageRequestDescriptor instead') @@ -115,8 +144,9 @@ const PostChatMessageRequest$json = { }; /// Descriptor for `PostChatMessageRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List postChatMessageRequestDescriptor = $convert.base64Decode( - 'ChZQb3N0Q2hhdE1lc3NhZ2VSZXF1ZXN0EhgKB21lc3NhZ2UYASABKAlSB21lc3NhZ2USGgoIc3' +final $typed_data.Uint8List postChatMessageRequestDescriptor = + $convert.base64Decode( + 'ChZQb3N0Q2hhdE1lc3NhZ2VSZXF1ZXN0EhgKB21lc3NhZ2UYASABKAlSB21lc3NhZ2USGgoIc3' 'RyZWFtSUQYAiABKA1SCHN0cmVhbUlE'); @$core.Deprecated('Use postChatReactionRequestDescriptor instead') @@ -130,8 +160,9 @@ const PostChatReactionRequest$json = { }; /// Descriptor for `PostChatReactionRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List postChatReactionRequestDescriptor = $convert.base64Decode( - 'ChdQb3N0Q2hhdFJlYWN0aW9uUmVxdWVzdBIUCgVlbW9qaRgBIAEoCVIFZW1vamkSGgoIc3RyZW' +final $typed_data.Uint8List postChatReactionRequestDescriptor = + $convert.base64Decode( + 'ChdQb3N0Q2hhdFJlYWN0aW9uUmVxdWVzdBIUCgVlbW9qaRgBIAEoCVIFZW1vamkSGgoIc3RyZW' 'FtSUQYAiABKA1SCHN0cmVhbUlEEhYKBmNoYXRJRBgDIAEoDVIGY2hhdElE'); @$core.Deprecated('Use deleteChatReactionRequestDescriptor instead') @@ -174,7 +205,8 @@ const MarkChatMessageAsResolvedRequest$json = { }; /// Descriptor for `MarkChatMessageAsResolvedRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List markChatMessageAsResolvedRequestDescriptor = $convert.base64Decode( +final $typed_data.Uint8List markChatMessageAsResolvedRequestDescriptor = + $convert.base64Decode( 'CiBNYXJrQ2hhdE1lc3NhZ2VBc1Jlc29sdmVkUmVxdWVzdBIaCghzdHJlYW1JRBgBIAEoDVIIc3' 'RyZWFtSUQSFgoGY2hhdElEGAIgASgNUgZjaGF0SUQ='); @@ -188,7 +220,8 @@ const MarkChatMessageAsUnresolvedRequest$json = { }; /// Descriptor for `MarkChatMessageAsUnresolvedRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List markChatMessageAsUnresolvedRequestDescriptor = $convert.base64Decode( +final $typed_data.Uint8List markChatMessageAsUnresolvedRequestDescriptor = + $convert.base64Decode( 'CiJNYXJrQ2hhdE1lc3NhZ2VBc1VucmVzb2x2ZWRSZXF1ZXN0EhoKCHN0cmVhbUlEGAEgASgNUg' 'hzdHJlYW1JRBIWCgZjaGF0SUQYAiABKA1SBmNoYXRJRA=='); @@ -196,40 +229,64 @@ final $typed_data.Uint8List markChatMessageAsUnresolvedRequestDescriptor = $conv const GetChatMessagesResponse$json = { '1': 'GetChatMessagesResponse', '2': [ - {'1': 'messages', '3': 1, '4': 3, '5': 11, '6': '.protobuf.ChatMessage', '10': 'messages'}, + { + '1': 'messages', + '3': 1, + '4': 3, + '5': 11, + '6': '.protobuf.ChatMessage', + '10': 'messages' + }, ], }; /// Descriptor for `GetChatMessagesResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getChatMessagesResponseDescriptor = $convert.base64Decode( - 'ChdHZXRDaGF0TWVzc2FnZXNSZXNwb25zZRIxCghtZXNzYWdlcxgBIAMoCzIVLnByb3RvYnVmLk' - 'NoYXRNZXNzYWdlUghtZXNzYWdlcw=='); +final $typed_data.Uint8List getChatMessagesResponseDescriptor = + $convert.base64Decode( + 'ChdHZXRDaGF0TWVzc2FnZXNSZXNwb25zZRIxCghtZXNzYWdlcxgBIAMoCzIVLnByb3RvYnVmLk' + 'NoYXRNZXNzYWdlUghtZXNzYWdlcw=='); @$core.Deprecated('Use postChatMessageResponseDescriptor instead') const PostChatMessageResponse$json = { '1': 'PostChatMessageResponse', '2': [ - {'1': 'message', '3': 1, '4': 1, '5': 11, '6': '.protobuf.ChatMessage', '10': 'message'}, + { + '1': 'message', + '3': 1, + '4': 1, + '5': 11, + '6': '.protobuf.ChatMessage', + '10': 'message' + }, ], }; /// Descriptor for `PostChatMessageResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List postChatMessageResponseDescriptor = $convert.base64Decode( - 'ChdQb3N0Q2hhdE1lc3NhZ2VSZXNwb25zZRIvCgdtZXNzYWdlGAEgASgLMhUucHJvdG9idWYuQ2' - 'hhdE1lc3NhZ2VSB21lc3NhZ2U='); +final $typed_data.Uint8List postChatMessageResponseDescriptor = + $convert.base64Decode( + 'ChdQb3N0Q2hhdE1lc3NhZ2VSZXNwb25zZRIvCgdtZXNzYWdlGAEgASgLMhUucHJvdG9idWYuQ2' + 'hhdE1lc3NhZ2VSB21lc3NhZ2U='); @$core.Deprecated('Use postChatReactionResponseDescriptor instead') const PostChatReactionResponse$json = { '1': 'PostChatReactionResponse', '2': [ - {'1': 'reaction', '3': 1, '4': 1, '5': 11, '6': '.protobuf.ChatReaction', '10': 'reaction'}, + { + '1': 'reaction', + '3': 1, + '4': 1, + '5': 11, + '6': '.protobuf.ChatReaction', + '10': 'reaction' + }, ], }; /// Descriptor for `PostChatReactionResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List postChatReactionResponseDescriptor = $convert.base64Decode( - 'ChhQb3N0Q2hhdFJlYWN0aW9uUmVzcG9uc2USMgoIcmVhY3Rpb24YASABKAsyFi5wcm90b2J1Zi' - '5DaGF0UmVhY3Rpb25SCHJlYWN0aW9u'); +final $typed_data.Uint8List postChatReactionResponseDescriptor = + $convert.base64Decode( + 'ChhQb3N0Q2hhdFJlYWN0aW9uUmVzcG9uc2USMgoIcmVhY3Rpb24YASABKAsyFi5wcm90b2J1Zi' + '5DaGF0UmVhY3Rpb25SCHJlYWN0aW9u'); @$core.Deprecated('Use deleteChatReactionResponseDescriptor instead') const DeleteChatReactionResponse$json = { @@ -237,14 +294,21 @@ const DeleteChatReactionResponse$json = { }; /// Descriptor for `DeleteChatReactionResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List deleteChatReactionResponseDescriptor = $convert.base64Decode( - 'ChpEZWxldGVDaGF0UmVhY3Rpb25SZXNwb25zZQ=='); +final $typed_data.Uint8List deleteChatReactionResponseDescriptor = + $convert.base64Decode('ChpEZWxldGVDaGF0UmVhY3Rpb25SZXNwb25zZQ=='); @$core.Deprecated('Use postChatReplyResponseDescriptor instead') const PostChatReplyResponse$json = { '1': 'PostChatReplyResponse', '2': [ - {'1': 'reply', '3': 1, '4': 1, '5': 11, '6': '.protobuf.ChatMessage', '10': 'reply'}, + { + '1': 'reply', + '3': 1, + '4': 1, + '5': 11, + '6': '.protobuf.ChatMessage', + '10': 'reply' + }, ], }; @@ -257,27 +321,43 @@ final $typed_data.Uint8List postChatReplyResponseDescriptor = $convert.base64Dec const MarkChatMessageAsResolvedResponse$json = { '1': 'MarkChatMessageAsResolvedResponse', '2': [ - {'1': 'message', '3': 1, '4': 1, '5': 11, '6': '.protobuf.ChatMessage', '10': 'message'}, + { + '1': 'message', + '3': 1, + '4': 1, + '5': 11, + '6': '.protobuf.ChatMessage', + '10': 'message' + }, ], }; /// Descriptor for `MarkChatMessageAsResolvedResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List markChatMessageAsResolvedResponseDescriptor = $convert.base64Decode( - 'CiFNYXJrQ2hhdE1lc3NhZ2VBc1Jlc29sdmVkUmVzcG9uc2USLwoHbWVzc2FnZRgBIAEoCzIVLn' - 'Byb3RvYnVmLkNoYXRNZXNzYWdlUgdtZXNzYWdl'); +final $typed_data.Uint8List markChatMessageAsResolvedResponseDescriptor = + $convert.base64Decode( + 'CiFNYXJrQ2hhdE1lc3NhZ2VBc1Jlc29sdmVkUmVzcG9uc2USLwoHbWVzc2FnZRgBIAEoCzIVLn' + 'Byb3RvYnVmLkNoYXRNZXNzYWdlUgdtZXNzYWdl'); @$core.Deprecated('Use markChatMessageAsUnresolvedResponseDescriptor instead') const MarkChatMessageAsUnresolvedResponse$json = { '1': 'MarkChatMessageAsUnresolvedResponse', '2': [ - {'1': 'message', '3': 1, '4': 1, '5': 11, '6': '.protobuf.ChatMessage', '10': 'message'}, + { + '1': 'message', + '3': 1, + '4': 1, + '5': 11, + '6': '.protobuf.ChatMessage', + '10': 'message' + }, ], }; /// Descriptor for `MarkChatMessageAsUnresolvedResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List markChatMessageAsUnresolvedResponseDescriptor = $convert.base64Decode( - 'CiNNYXJrQ2hhdE1lc3NhZ2VBc1VucmVzb2x2ZWRSZXNwb25zZRIvCgdtZXNzYWdlGAEgASgLMh' - 'UucHJvdG9idWYuQ2hhdE1lc3NhZ2VSB21lc3NhZ2U='); +final $typed_data.Uint8List markChatMessageAsUnresolvedResponseDescriptor = + $convert.base64Decode( + 'CiNNYXJrQ2hhdE1lc3NhZ2VBc1VucmVzb2x2ZWRSZXNwb25zZRIvCgdtZXNzYWdlGAEgASgLMh' + 'UucHJvdG9idWYuQ2hhdE1lc3NhZ2VSB21lc3NhZ2U='); @$core.Deprecated('Use pollDescriptor instead') const Poll$json = { @@ -383,14 +463,55 @@ const User$json = { {'1': 'name', '3': 2, '4': 1, '5': 9, '10': 'name'}, {'1': 'lastName', '3': 3, '4': 1, '5': 9, '10': 'lastName'}, {'1': 'email', '3': 4, '4': 1, '5': 9, '10': 'email'}, - {'1': 'matriculationNumber', '3': 5, '4': 1, '5': 9, '10': 'matriculationNumber'}, + { + '1': 'matriculationNumber', + '3': 5, + '4': 1, + '5': 9, + '10': 'matriculationNumber' + }, {'1': 'lrzID', '3': 6, '4': 1, '5': 9, '10': 'lrzID'}, {'1': 'role', '3': 7, '4': 1, '5': 13, '10': 'role'}, - {'1': 'courses', '3': 8, '4': 3, '5': 11, '6': '.protobuf.Course', '10': 'courses'}, - {'1': 'administeredCourses', '3': 9, '4': 3, '5': 11, '6': '.protobuf.Course', '10': 'administeredCourses'}, - {'1': 'pinnedCourses', '3': 10, '4': 3, '5': 11, '6': '.protobuf.Course', '10': 'pinnedCourses'}, - {'1': 'settings', '3': 11, '4': 3, '5': 11, '6': '.protobuf.UserSetting', '10': 'settings'}, - {'1': 'bookmarks', '3': 12, '4': 3, '5': 11, '6': '.protobuf.Bookmark', '10': 'bookmarks'}, + { + '1': 'courses', + '3': 8, + '4': 3, + '5': 11, + '6': '.protobuf.Course', + '10': 'courses' + }, + { + '1': 'administeredCourses', + '3': 9, + '4': 3, + '5': 11, + '6': '.protobuf.Course', + '10': 'administeredCourses' + }, + { + '1': 'pinnedCourses', + '3': 10, + '4': 3, + '5': 11, + '6': '.protobuf.Course', + '10': 'pinnedCourses' + }, + { + '1': 'settings', + '3': 11, + '4': 3, + '5': 11, + '6': '.protobuf.UserSetting', + '10': 'settings' + }, + { + '1': 'bookmarks', + '3': 12, + '4': 3, + '5': 11, + '6': '.protobuf.Bookmark', + '10': 'bookmarks' + }, ], }; @@ -410,7 +531,14 @@ final $typed_data.Uint8List userDescriptor = $convert.base64Decode( const UserSetting$json = { '1': 'UserSetting', '2': [ - {'1': 'type', '3': 3, '4': 1, '5': 14, '6': '.protobuf.UserSettingType', '10': 'type'}, + { + '1': 'type', + '3': 3, + '4': 1, + '5': 14, + '6': '.protobuf.UserSettingType', + '10': 'type' + }, {'1': 'value', '3': 4, '4': 1, '5': 9, '10': 'value'}, ], }; @@ -426,8 +554,8 @@ const GetUserRequest$json = { }; /// Descriptor for `GetUserRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getUserRequestDescriptor = $convert.base64Decode( - 'Cg5HZXRVc2VyUmVxdWVzdA=='); +final $typed_data.Uint8List getUserRequestDescriptor = + $convert.base64Decode('Cg5HZXRVc2VyUmVxdWVzdA=='); @$core.Deprecated('Use getUserCoursesRequestDescriptor instead') const GetUserCoursesRequest$json = { @@ -467,8 +595,8 @@ const GetUserAdminRequest$json = { }; /// Descriptor for `GetUserAdminRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getUserAdminRequestDescriptor = $convert.base64Decode( - 'ChNHZXRVc2VyQWRtaW5SZXF1ZXN0'); +final $typed_data.Uint8List getUserAdminRequestDescriptor = + $convert.base64Decode('ChNHZXRVc2VyQWRtaW5SZXF1ZXN0'); @$core.Deprecated('Use getUserSettingsRequestDescriptor instead') const GetUserSettingsRequest$json = { @@ -476,34 +604,50 @@ const GetUserSettingsRequest$json = { }; /// Descriptor for `GetUserSettingsRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getUserSettingsRequestDescriptor = $convert.base64Decode( - 'ChZHZXRVc2VyU2V0dGluZ3NSZXF1ZXN0'); +final $typed_data.Uint8List getUserSettingsRequestDescriptor = + $convert.base64Decode('ChZHZXRVc2VyU2V0dGluZ3NSZXF1ZXN0'); @$core.Deprecated('Use patchUserSettingsRequestDescriptor instead') const PatchUserSettingsRequest$json = { '1': 'PatchUserSettingsRequest', '2': [ - {'1': 'userSettings', '3': 1, '4': 3, '5': 11, '6': '.protobuf.UserSetting', '10': 'userSettings'}, + { + '1': 'userSettings', + '3': 1, + '4': 3, + '5': 11, + '6': '.protobuf.UserSetting', + '10': 'userSettings' + }, ], }; /// Descriptor for `PatchUserSettingsRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List patchUserSettingsRequestDescriptor = $convert.base64Decode( - 'ChhQYXRjaFVzZXJTZXR0aW5nc1JlcXVlc3QSOQoMdXNlclNldHRpbmdzGAEgAygLMhUucHJvdG' - '9idWYuVXNlclNldHRpbmdSDHVzZXJTZXR0aW5ncw=='); +final $typed_data.Uint8List patchUserSettingsRequestDescriptor = + $convert.base64Decode( + 'ChhQYXRjaFVzZXJTZXR0aW5nc1JlcXVlc3QSOQoMdXNlclNldHRpbmdzGAEgAygLMhUucHJvdG' + '9idWYuVXNlclNldHRpbmdSDHVzZXJTZXR0aW5ncw=='); @$core.Deprecated('Use patchUserSettingsResponseDescriptor instead') const PatchUserSettingsResponse$json = { '1': 'PatchUserSettingsResponse', '2': [ - {'1': 'userSettings', '3': 1, '4': 3, '5': 11, '6': '.protobuf.UserSetting', '10': 'userSettings'}, + { + '1': 'userSettings', + '3': 1, + '4': 3, + '5': 11, + '6': '.protobuf.UserSetting', + '10': 'userSettings' + }, ], }; /// Descriptor for `PatchUserSettingsResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List patchUserSettingsResponseDescriptor = $convert.base64Decode( - 'ChlQYXRjaFVzZXJTZXR0aW5nc1Jlc3BvbnNlEjkKDHVzZXJTZXR0aW5ncxgBIAMoCzIVLnByb3' - 'RvYnVmLlVzZXJTZXR0aW5nUgx1c2VyU2V0dGluZ3M='); +final $typed_data.Uint8List patchUserSettingsResponseDescriptor = + $convert.base64Decode( + 'ChlQYXRjaFVzZXJTZXR0aW5nc1Jlc3BvbnNlEjkKDHVzZXJTZXR0aW5ncxgBIAMoCzIVLnByb3' + 'RvYnVmLlVzZXJTZXR0aW5nUgx1c2VyU2V0dGluZ3M='); @$core.Deprecated('Use postPinnedRequestDescriptor instead') const PostPinnedRequest$json = { @@ -526,7 +670,8 @@ const DeletePinnedRequest$json = { }; /// Descriptor for `DeletePinnedRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List deletePinnedRequestDescriptor = $convert.base64Decode( +final $typed_data.Uint8List deletePinnedRequestDescriptor = + $convert.base64Decode( 'ChNEZWxldGVQaW5uZWRSZXF1ZXN0EhoKCGNvdXJzZUlEGAEgASgNUghjb3Vyc2VJRA=='); @$core.Deprecated('Use getUserResponseDescriptor instead') @@ -545,20 +690,35 @@ final $typed_data.Uint8List getUserResponseDescriptor = $convert.base64Decode( const GetUserCoursesResponse$json = { '1': 'GetUserCoursesResponse', '2': [ - {'1': 'courses', '3': 1, '4': 3, '5': 11, '6': '.protobuf.Course', '10': 'courses'}, + { + '1': 'courses', + '3': 1, + '4': 3, + '5': 11, + '6': '.protobuf.Course', + '10': 'courses' + }, ], }; /// Descriptor for `GetUserCoursesResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getUserCoursesResponseDescriptor = $convert.base64Decode( - 'ChZHZXRVc2VyQ291cnNlc1Jlc3BvbnNlEioKB2NvdXJzZXMYASADKAsyEC5wcm90b2J1Zi5Db3' - 'Vyc2VSB2NvdXJzZXM='); +final $typed_data.Uint8List getUserCoursesResponseDescriptor = + $convert.base64Decode( + 'ChZHZXRVc2VyQ291cnNlc1Jlc3BvbnNlEioKB2NvdXJzZXMYASADKAsyEC5wcm90b2J1Zi5Db3' + 'Vyc2VSB2NvdXJzZXM='); @$core.Deprecated('Use getUserPinnedResponseDescriptor instead') const GetUserPinnedResponse$json = { '1': 'GetUserPinnedResponse', '2': [ - {'1': 'courses', '3': 1, '4': 3, '5': 11, '6': '.protobuf.Course', '10': 'courses'}, + { + '1': 'courses', + '3': 1, + '4': 3, + '5': 11, + '6': '.protobuf.Course', + '10': 'courses' + }, ], }; @@ -571,7 +731,14 @@ final $typed_data.Uint8List getUserPinnedResponseDescriptor = $convert.base64Dec const GetUserAdminResponse$json = { '1': 'GetUserAdminResponse', '2': [ - {'1': 'courses', '3': 1, '4': 3, '5': 11, '6': '.protobuf.Course', '10': 'courses'}, + { + '1': 'courses', + '3': 1, + '4': 3, + '5': 11, + '6': '.protobuf.Course', + '10': 'courses' + }, ], }; @@ -584,14 +751,22 @@ final $typed_data.Uint8List getUserAdminResponseDescriptor = $convert.base64Deco const GetUserSettingsResponse$json = { '1': 'GetUserSettingsResponse', '2': [ - {'1': 'userSettings', '3': 1, '4': 3, '5': 11, '6': '.protobuf.UserSetting', '10': 'userSettings'}, + { + '1': 'userSettings', + '3': 1, + '4': 3, + '5': 11, + '6': '.protobuf.UserSetting', + '10': 'userSettings' + }, ], }; /// Descriptor for `GetUserSettingsResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getUserSettingsResponseDescriptor = $convert.base64Decode( - 'ChdHZXRVc2VyU2V0dGluZ3NSZXNwb25zZRI5Cgx1c2VyU2V0dGluZ3MYASADKAsyFS5wcm90b2' - 'J1Zi5Vc2VyU2V0dGluZ1IMdXNlclNldHRpbmdz'); +final $typed_data.Uint8List getUserSettingsResponseDescriptor = + $convert.base64Decode( + 'ChdHZXRVc2VyU2V0dGluZ3NSZXNwb25zZRI5Cgx1c2VyU2V0dGluZ3MYASADKAsyFS5wcm90b2' + 'J1Zi5Vc2VyU2V0dGluZ1IMdXNlclNldHRpbmdz'); @$core.Deprecated('Use postPinnedResponseDescriptor instead') const PostPinnedResponse$json = { @@ -599,8 +774,8 @@ const PostPinnedResponse$json = { }; /// Descriptor for `PostPinnedResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List postPinnedResponseDescriptor = $convert.base64Decode( - 'ChJQb3N0UGlubmVkUmVzcG9uc2U='); +final $typed_data.Uint8List postPinnedResponseDescriptor = + $convert.base64Decode('ChJQb3N0UGlubmVkUmVzcG9uc2U='); @$core.Deprecated('Use deletePinnedResponseDescriptor instead') const DeletePinnedResponse$json = { @@ -608,8 +783,8 @@ const DeletePinnedResponse$json = { }; /// Descriptor for `DeletePinnedResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List deletePinnedResponseDescriptor = $convert.base64Decode( - 'ChREZWxldGVQaW5uZWRSZXNwb25zZQ=='); +final $typed_data.Uint8List deletePinnedResponseDescriptor = + $convert.base64Decode('ChREZWxldGVQaW5uZWRSZXNwb25zZQ=='); @$core.Deprecated('Use bookmarkDescriptor instead') const Bookmark$json = { @@ -641,7 +816,8 @@ const GetBookmarksRequest$json = { }; /// Descriptor for `GetBookmarksRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getBookmarksRequestDescriptor = $convert.base64Decode( +final $typed_data.Uint8List getBookmarksRequestDescriptor = + $convert.base64Decode( 'ChNHZXRCb29rbWFya3NSZXF1ZXN0EhoKCHN0cmVhbUlEGAEgASgNUghzdHJlYW1JRA=='); @$core.Deprecated('Use putBookmarkRequestDescriptor instead') @@ -697,7 +873,14 @@ final $typed_data.Uint8List deleteBookmarkRequestDescriptor = $convert.base64Dec const GetBookmarksResponse$json = { '1': 'GetBookmarksResponse', '2': [ - {'1': 'bookmarks', '3': 1, '4': 3, '5': 11, '6': '.protobuf.Bookmark', '10': 'bookmarks'}, + { + '1': 'bookmarks', + '3': 1, + '4': 3, + '5': 11, + '6': '.protobuf.Bookmark', + '10': 'bookmarks' + }, ], }; @@ -710,7 +893,14 @@ final $typed_data.Uint8List getBookmarksResponseDescriptor = $convert.base64Deco const PutBookmarkResponse$json = { '1': 'PutBookmarkResponse', '2': [ - {'1': 'bookmark', '3': 1, '4': 1, '5': 11, '6': '.protobuf.Bookmark', '10': 'bookmark'}, + { + '1': 'bookmark', + '3': 1, + '4': 1, + '5': 11, + '6': '.protobuf.Bookmark', + '10': 'bookmark' + }, ], }; @@ -723,7 +913,14 @@ final $typed_data.Uint8List putBookmarkResponseDescriptor = $convert.base64Decod const PatchBookmarkResponse$json = { '1': 'PatchBookmarkResponse', '2': [ - {'1': 'bookmark', '3': 1, '4': 1, '5': 11, '6': '.protobuf.Bookmark', '10': 'bookmark'}, + { + '1': 'bookmark', + '3': 1, + '4': 1, + '5': 11, + '6': '.protobuf.Bookmark', + '10': 'bookmark' + }, ], }; @@ -738,8 +935,8 @@ const DeleteBookmarkResponse$json = { }; /// Descriptor for `DeleteBookmarkResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List deleteBookmarkResponseDescriptor = $convert.base64Decode( - 'ChZEZWxldGVCb29rbWFya1Jlc3BvbnNl'); +final $typed_data.Uint8List deleteBookmarkResponseDescriptor = + $convert.base64Decode('ChZEZWxldGVCb29rbWFya1Jlc3BvbnNl'); @$core.Deprecated('Use bannerAlertDescriptor instead') const BannerAlert$json = { @@ -784,9 +981,10 @@ const PostDeviceTokenRequest$json = { }; /// Descriptor for `PostDeviceTokenRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List postDeviceTokenRequestDescriptor = $convert.base64Decode( - 'ChZQb3N0RGV2aWNlVG9rZW5SZXF1ZXN0EiAKC2RldmljZVRva2VuGAEgASgJUgtkZXZpY2VUb2' - 'tlbg=='); +final $typed_data.Uint8List postDeviceTokenRequestDescriptor = + $convert.base64Decode( + 'ChZQb3N0RGV2aWNlVG9rZW5SZXF1ZXN0EiAKC2RldmljZVRva2VuGAEgASgJUgtkZXZpY2VUb2' + 'tlbg=='); @$core.Deprecated('Use deleteDeviceTokenRequestDescriptor instead') const DeleteDeviceTokenRequest$json = { @@ -797,9 +995,10 @@ const DeleteDeviceTokenRequest$json = { }; /// Descriptor for `DeleteDeviceTokenRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List deleteDeviceTokenRequestDescriptor = $convert.base64Decode( - 'ChhEZWxldGVEZXZpY2VUb2tlblJlcXVlc3QSIAoLZGV2aWNlVG9rZW4YASABKAlSC2RldmljZV' - 'Rva2Vu'); +final $typed_data.Uint8List deleteDeviceTokenRequestDescriptor = + $convert.base64Decode( + 'ChhEZWxldGVEZXZpY2VUb2tlblJlcXVlc3QSIAoLZGV2aWNlVG9rZW4YASABKAlSC2RldmljZV' + 'Rva2Vu'); @$core.Deprecated('Use getBannerAlertsRequestDescriptor instead') const GetBannerAlertsRequest$json = { @@ -807,8 +1006,8 @@ const GetBannerAlertsRequest$json = { }; /// Descriptor for `GetBannerAlertsRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getBannerAlertsRequestDescriptor = $convert.base64Decode( - 'ChZHZXRCYW5uZXJBbGVydHNSZXF1ZXN0'); +final $typed_data.Uint8List getBannerAlertsRequestDescriptor = + $convert.base64Decode('ChZHZXRCYW5uZXJBbGVydHNSZXF1ZXN0'); @$core.Deprecated('Use getFeatureNotificationsRequestDescriptor instead') const GetFeatureNotificationsRequest$json = { @@ -816,8 +1015,8 @@ const GetFeatureNotificationsRequest$json = { }; /// Descriptor for `GetFeatureNotificationsRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getFeatureNotificationsRequestDescriptor = $convert.base64Decode( - 'Ch5HZXRGZWF0dXJlTm90aWZpY2F0aW9uc1JlcXVlc3Q='); +final $typed_data.Uint8List getFeatureNotificationsRequestDescriptor = + $convert.base64Decode('Ch5HZXRGZWF0dXJlTm90aWZpY2F0aW9uc1JlcXVlc3Q='); @$core.Deprecated('Use postDeviceTokenResponseDescriptor instead') const PostDeviceTokenResponse$json = { @@ -825,8 +1024,8 @@ const PostDeviceTokenResponse$json = { }; /// Descriptor for `PostDeviceTokenResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List postDeviceTokenResponseDescriptor = $convert.base64Decode( - 'ChdQb3N0RGV2aWNlVG9rZW5SZXNwb25zZQ=='); +final $typed_data.Uint8List postDeviceTokenResponseDescriptor = + $convert.base64Decode('ChdQb3N0RGV2aWNlVG9rZW5SZXNwb25zZQ=='); @$core.Deprecated('Use deleteDeviceTokenResponseDescriptor instead') const DeleteDeviceTokenResponse$json = { @@ -834,35 +1033,51 @@ const DeleteDeviceTokenResponse$json = { }; /// Descriptor for `DeleteDeviceTokenResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List deleteDeviceTokenResponseDescriptor = $convert.base64Decode( - 'ChlEZWxldGVEZXZpY2VUb2tlblJlc3BvbnNl'); +final $typed_data.Uint8List deleteDeviceTokenResponseDescriptor = + $convert.base64Decode('ChlEZWxldGVEZXZpY2VUb2tlblJlc3BvbnNl'); @$core.Deprecated('Use getBannerAlertsResponseDescriptor instead') const GetBannerAlertsResponse$json = { '1': 'GetBannerAlertsResponse', '2': [ - {'1': 'bannerAlerts', '3': 1, '4': 3, '5': 11, '6': '.protobuf.BannerAlert', '10': 'bannerAlerts'}, + { + '1': 'bannerAlerts', + '3': 1, + '4': 3, + '5': 11, + '6': '.protobuf.BannerAlert', + '10': 'bannerAlerts' + }, ], }; /// Descriptor for `GetBannerAlertsResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getBannerAlertsResponseDescriptor = $convert.base64Decode( - 'ChdHZXRCYW5uZXJBbGVydHNSZXNwb25zZRI5CgxiYW5uZXJBbGVydHMYASADKAsyFS5wcm90b2' - 'J1Zi5CYW5uZXJBbGVydFIMYmFubmVyQWxlcnRz'); +final $typed_data.Uint8List getBannerAlertsResponseDescriptor = + $convert.base64Decode( + 'ChdHZXRCYW5uZXJBbGVydHNSZXNwb25zZRI5CgxiYW5uZXJBbGVydHMYASADKAsyFS5wcm90b2' + 'J1Zi5CYW5uZXJBbGVydFIMYmFubmVyQWxlcnRz'); @$core.Deprecated('Use getFeatureNotificationsResponseDescriptor instead') const GetFeatureNotificationsResponse$json = { '1': 'GetFeatureNotificationsResponse', '2': [ - {'1': 'featureNotifications', '3': 1, '4': 3, '5': 11, '6': '.protobuf.FeatureNotification', '10': 'featureNotifications'}, + { + '1': 'featureNotifications', + '3': 1, + '4': 3, + '5': 11, + '6': '.protobuf.FeatureNotification', + '10': 'featureNotifications' + }, ], }; /// Descriptor for `GetFeatureNotificationsResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getFeatureNotificationsResponseDescriptor = $convert.base64Decode( - 'Ch9HZXRGZWF0dXJlTm90aWZpY2F0aW9uc1Jlc3BvbnNlElEKFGZlYXR1cmVOb3RpZmljYXRpb2' - '5zGAEgAygLMh0ucHJvdG9idWYuRmVhdHVyZU5vdGlmaWNhdGlvblIUZmVhdHVyZU5vdGlmaWNh' - 'dGlvbnM='); +final $typed_data.Uint8List getFeatureNotificationsResponseDescriptor = + $convert.base64Decode( + 'Ch9HZXRGZWF0dXJlTm90aWZpY2F0aW9uc1Jlc3BvbnNlElEKFGZlYXR1cmVOb3RpZmljYXRpb2' + '5zGAEgAygLMh0ucHJvdG9idWYuRmVhdHVyZU5vdGlmaWNhdGlvblIUZmVhdHVyZU5vdGlmaWNh' + 'dGlvbnM='); @$core.Deprecated('Use courseDescriptor instead') const Course$json = { @@ -871,17 +1086,61 @@ const Course$json = { {'1': 'id', '3': 1, '4': 1, '5': 13, '10': 'id'}, {'1': 'name', '3': 2, '4': 1, '5': 9, '10': 'name'}, {'1': 'slug', '3': 3, '4': 1, '5': 9, '10': 'slug'}, - {'1': 'semester', '3': 4, '4': 1, '5': 11, '6': '.protobuf.Semester', '10': 'semester'}, - {'1': 'TUMOnlineIdentifier', '3': 5, '4': 1, '5': 9, '10': 'TUMOnlineIdentifier'}, + { + '1': 'semester', + '3': 4, + '4': 1, + '5': 11, + '6': '.protobuf.Semester', + '10': 'semester' + }, + { + '1': 'TUMOnlineIdentifier', + '3': 5, + '4': 1, + '5': 9, + '10': 'TUMOnlineIdentifier' + }, {'1': 'VODEnabled', '3': 6, '4': 1, '5': 8, '10': 'VODEnabled'}, {'1': 'downloadsEnabled', '3': 7, '4': 1, '5': 8, '10': 'downloadsEnabled'}, {'1': 'chatEnabled', '3': 8, '4': 1, '5': 8, '10': 'chatEnabled'}, - {'1': 'anonymousChatEnabled', '3': 9, '4': 1, '5': 8, '10': 'anonymousChatEnabled'}, - {'1': 'moderatedChatEnabled', '3': 10, '4': 1, '5': 8, '10': 'moderatedChatEnabled'}, + { + '1': 'anonymousChatEnabled', + '3': 9, + '4': 1, + '5': 8, + '10': 'anonymousChatEnabled' + }, + { + '1': 'moderatedChatEnabled', + '3': 10, + '4': 1, + '5': 8, + '10': 'moderatedChatEnabled' + }, {'1': 'vodChatEnabled', '3': 11, '4': 1, '5': 8, '10': 'vodChatEnabled'}, - {'1': 'streams', '3': 12, '4': 3, '5': 11, '6': '.protobuf.Stream', '10': 'streams'}, - {'1': 'cameraPresetPreferences', '3': 13, '4': 1, '5': 9, '10': 'cameraPresetPreferences'}, - {'1': 'sourcePreferences', '3': 14, '4': 1, '5': 9, '10': 'sourcePreferences'}, + { + '1': 'streams', + '3': 12, + '4': 3, + '5': 11, + '6': '.protobuf.Stream', + '10': 'streams' + }, + { + '1': 'cameraPresetPreferences', + '3': 13, + '4': 1, + '5': 9, + '10': 'cameraPresetPreferences' + }, + { + '1': 'sourcePreferences', + '3': 14, + '4': 1, + '5': 9, + '10': 'sourcePreferences' + }, {'1': 'lastRecordingID', '3': 15, '4': 1, '5': 13, '10': 'lastRecordingID'}, {'1': 'nextLectureID', '3': 16, '4': 1, '5': 13, '10': 'nextLectureID'}, ], @@ -938,8 +1197,8 @@ const GetSemestersRequest$json = { }; /// Descriptor for `GetSemestersRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getSemestersRequestDescriptor = $convert.base64Decode( - 'ChNHZXRTZW1lc3RlcnNSZXF1ZXN0'); +final $typed_data.Uint8List getSemestersRequestDescriptor = + $convert.base64Decode('ChNHZXRTZW1lc3RlcnNSZXF1ZXN0'); @$core.Deprecated('Use getCourseStreamsRequestDescriptor instead') const GetCourseStreamsRequest$json = { @@ -950,28 +1209,51 @@ const GetCourseStreamsRequest$json = { }; /// Descriptor for `GetCourseStreamsRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getCourseStreamsRequestDescriptor = $convert.base64Decode( +final $typed_data.Uint8List getCourseStreamsRequestDescriptor = + $convert.base64Decode( 'ChdHZXRDb3Vyc2VTdHJlYW1zUmVxdWVzdBIaCghjb3Vyc2VJRBgBIAEoDVIIY291cnNlSUQ='); @$core.Deprecated('Use getPublicCoursesResponseDescriptor instead') const GetPublicCoursesResponse$json = { '1': 'GetPublicCoursesResponse', '2': [ - {'1': 'courses', '3': 1, '4': 3, '5': 11, '6': '.protobuf.Course', '10': 'courses'}, + { + '1': 'courses', + '3': 1, + '4': 3, + '5': 11, + '6': '.protobuf.Course', + '10': 'courses' + }, ], }; /// Descriptor for `GetPublicCoursesResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getPublicCoursesResponseDescriptor = $convert.base64Decode( - 'ChhHZXRQdWJsaWNDb3Vyc2VzUmVzcG9uc2USKgoHY291cnNlcxgBIAMoCzIQLnByb3RvYnVmLk' - 'NvdXJzZVIHY291cnNlcw=='); +final $typed_data.Uint8List getPublicCoursesResponseDescriptor = + $convert.base64Decode( + 'ChhHZXRQdWJsaWNDb3Vyc2VzUmVzcG9uc2USKgoHY291cnNlcxgBIAMoCzIQLnByb3RvYnVmLk' + 'NvdXJzZVIHY291cnNlcw=='); @$core.Deprecated('Use getSemestersResponseDescriptor instead') const GetSemestersResponse$json = { '1': 'GetSemestersResponse', '2': [ - {'1': 'current', '3': 1, '4': 1, '5': 11, '6': '.protobuf.Semester', '10': 'current'}, - {'1': 'semesters', '3': 2, '4': 3, '5': 11, '6': '.protobuf.Semester', '10': 'semesters'}, + { + '1': 'current', + '3': 1, + '4': 1, + '5': 11, + '6': '.protobuf.Semester', + '10': 'current' + }, + { + '1': 'semesters', + '3': 2, + '4': 3, + '5': 11, + '6': '.protobuf.Semester', + '10': 'semesters' + }, ], }; @@ -985,14 +1267,22 @@ final $typed_data.Uint8List getSemestersResponseDescriptor = $convert.base64Deco const GetCourseStreamsResponse$json = { '1': 'GetCourseStreamsResponse', '2': [ - {'1': 'streams', '3': 1, '4': 3, '5': 11, '6': '.protobuf.Stream', '10': 'streams'}, + { + '1': 'streams', + '3': 1, + '4': 3, + '5': 11, + '6': '.protobuf.Stream', + '10': 'streams' + }, ], }; /// Descriptor for `GetCourseStreamsResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getCourseStreamsResponseDescriptor = $convert.base64Decode( - 'ChhHZXRDb3Vyc2VTdHJlYW1zUmVzcG9uc2USKgoHc3RyZWFtcxgBIAMoCzIQLnByb3RvYnVmLl' - 'N0cmVhbVIHc3RyZWFtcw=='); +final $typed_data.Uint8List getCourseStreamsResponseDescriptor = + $convert.base64Decode( + 'ChhHZXRDb3Vyc2VTdHJlYW1zUmVzcG9uc2USKgoHc3RyZWFtcxgBIAMoCzIQLnByb3RvYnVmLl' + 'N0cmVhbVIHc3RyZWFtcw=='); @$core.Deprecated('Use streamDescriptor instead') const Stream$json = { @@ -1002,19 +1292,52 @@ const Stream$json = { {'1': 'name', '3': 2, '4': 1, '5': 9, '10': 'name'}, {'1': 'description', '3': 3, '4': 1, '5': 9, '10': 'description'}, {'1': 'courseID', '3': 4, '4': 1, '5': 13, '10': 'courseID'}, - {'1': 'start', '3': 5, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'start'}, - {'1': 'end', '3': 6, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'end'}, + { + '1': 'start', + '3': 5, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '10': 'start' + }, + { + '1': 'end', + '3': 6, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '10': 'end' + }, {'1': 'chatEnabled', '3': 7, '4': 1, '5': 8, '10': 'chatEnabled'}, {'1': 'roomName', '3': 8, '4': 1, '5': 9, '10': 'roomName'}, {'1': 'roomCode', '3': 9, '4': 1, '5': 9, '10': 'roomCode'}, {'1': 'eventTypeName', '3': 10, '4': 1, '5': 9, '10': 'eventTypeName'}, - {'1': 'TUMOnlineEventID', '3': 11, '4': 1, '5': 13, '10': 'TUMOnlineEventID'}, - {'1': 'seriesIdentifier', '3': 12, '4': 1, '5': 9, '10': 'seriesIdentifier'}, + { + '1': 'TUMOnlineEventID', + '3': 11, + '4': 1, + '5': 13, + '10': 'TUMOnlineEventID' + }, + { + '1': 'seriesIdentifier', + '3': 12, + '4': 1, + '5': 9, + '10': 'seriesIdentifier' + }, {'1': 'playlistUrl', '3': 13, '4': 1, '5': 9, '10': 'playlistUrl'}, {'1': 'playlistUrlPRES', '3': 14, '4': 1, '5': 9, '10': 'playlistUrlPRES'}, {'1': 'playlistUrlCAM', '3': 15, '4': 1, '5': 9, '10': 'playlistUrlCAM'}, {'1': 'liveNow', '3': 16, '4': 1, '5': 8, '10': 'liveNow'}, - {'1': 'liveNowTimestamp', '3': 17, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'liveNowTimestamp'}, + { + '1': 'liveNowTimestamp', + '3': 17, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '10': 'liveNowTimestamp' + }, {'1': 'recording', '3': 18, '4': 1, '5': 8, '10': 'recording'}, {'1': 'premiere', '3': 19, '4': 1, '5': 8, '10': 'premiere'}, {'1': 'ended', '3': 20, '4': 1, '5': 8, '10': 'ended'}, @@ -1022,7 +1345,14 @@ const Stream$json = { {'1': 'startOffset', '3': 22, '4': 1, '5': 13, '10': 'startOffset'}, {'1': 'endOffset', '3': 23, '4': 1, '5': 13, '10': 'endOffset'}, {'1': 'duration', '3': 28, '4': 1, '5': 13, '10': 'duration'}, - {'1': 'downloads', '3': 29, '4': 3, '5': 11, '6': '.protobuf.Download', '10': 'downloads'}, + { + '1': 'downloads', + '3': 29, + '4': 3, + '5': 11, + '6': '.protobuf.Download', + '10': 'downloads' + }, {'1': 'isPlanned', '3': 30, '4': 1, '5': 8, '10': 'isPlanned'}, {'1': 'isComingUp', '3': 31, '4': 1, '5': 8, '10': 'isComingUp'}, {'1': 'HLSUrl', '3': 32, '4': 1, '5': 9, '10': 'HLSUrl'}, @@ -1068,8 +1398,8 @@ const GetNowLiveRequest$json = { }; /// Descriptor for `GetNowLiveRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getNowLiveRequestDescriptor = $convert.base64Decode( - 'ChFHZXROb3dMaXZlUmVxdWVzdA=='); +final $typed_data.Uint8List getNowLiveRequestDescriptor = + $convert.base64Decode('ChFHZXROb3dMaXZlUmVxdWVzdA=='); @$core.Deprecated('Use getThumbsLiveRequestDescriptor instead') const GetThumbsLiveRequest$json = { @@ -1080,7 +1410,8 @@ const GetThumbsLiveRequest$json = { }; /// Descriptor for `GetThumbsLiveRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getThumbsLiveRequestDescriptor = $convert.base64Decode( +final $typed_data.Uint8List getThumbsLiveRequestDescriptor = + $convert.base64Decode( 'ChRHZXRUaHVtYnNMaXZlUmVxdWVzdBIaCghzdHJlYW1JRBgBIAEoDVIIc3RyZWFtSUQ='); @$core.Deprecated('Use getThumbsVODRequestDescriptor instead') @@ -1092,14 +1423,22 @@ const GetThumbsVODRequest$json = { }; /// Descriptor for `GetThumbsVODRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getThumbsVODRequestDescriptor = $convert.base64Decode( +final $typed_data.Uint8List getThumbsVODRequestDescriptor = + $convert.base64Decode( 'ChNHZXRUaHVtYnNWT0RSZXF1ZXN0EhoKCHN0cmVhbUlEGAEgASgNUghzdHJlYW1JRA=='); @$core.Deprecated('Use getStreamResponseDescriptor instead') const GetStreamResponse$json = { '1': 'GetStreamResponse', '2': [ - {'1': 'stream', '3': 1, '4': 1, '5': 11, '6': '.protobuf.Stream', '10': 'stream'}, + { + '1': 'stream', + '3': 1, + '4': 1, + '5': 11, + '6': '.protobuf.Stream', + '10': 'stream' + }, ], }; @@ -1112,7 +1451,14 @@ final $typed_data.Uint8List getStreamResponseDescriptor = $convert.base64Decode( const GetNowLiveResponse$json = { '1': 'GetNowLiveResponse', '2': [ - {'1': 'stream', '3': 1, '4': 3, '5': 11, '6': '.protobuf.Stream', '10': 'stream'}, + { + '1': 'stream', + '3': 1, + '4': 3, + '5': 11, + '6': '.protobuf.Stream', + '10': 'stream' + }, ], }; @@ -1130,8 +1476,8 @@ const GetThumbsVODResponse$json = { }; /// Descriptor for `GetThumbsVODResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getThumbsVODResponseDescriptor = $convert.base64Decode( - 'ChRHZXRUaHVtYnNWT0RSZXNwb25zZRISCgRwYXRoGAEgASgJUgRwYXRo'); +final $typed_data.Uint8List getThumbsVODResponseDescriptor = $convert + .base64Decode('ChRHZXRUaHVtYnNWT0RSZXNwb25zZRISCgRwYXRoGAEgASgJUgRwYXRo'); @$core.Deprecated('Use getThumbsLiveResponseDescriptor instead') const GetThumbsLiveResponse$json = { @@ -1142,8 +1488,9 @@ const GetThumbsLiveResponse$json = { }; /// Descriptor for `GetThumbsLiveResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getThumbsLiveResponseDescriptor = $convert.base64Decode( - 'ChVHZXRUaHVtYnNMaXZlUmVzcG9uc2USEgoEcGF0aBgBIAEoCVIEcGF0aA=='); +final $typed_data.Uint8List getThumbsLiveResponseDescriptor = + $convert.base64Decode( + 'ChVHZXRUaHVtYnNMaXZlUmVzcG9uc2USEgoEcGF0aBgBIAEoCVIEcGF0aA=='); @$core.Deprecated('Use downloadDescriptor instead') const Download$json = { @@ -1185,7 +1532,8 @@ const GetProgressRequest$json = { }; /// Descriptor for `GetProgressRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getProgressRequestDescriptor = $convert.base64Decode( +final $typed_data.Uint8List getProgressRequestDescriptor = + $convert.base64Decode( 'ChJHZXRQcm9ncmVzc1JlcXVlc3QSGgoIc3RyZWFtSUQYASABKA1SCHN0cmVhbUlE'); @$core.Deprecated('Use putProgressRequestDescriptor instead') @@ -1211,14 +1559,22 @@ const MarkAsWatchedRequest$json = { }; /// Descriptor for `MarkAsWatchedRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List markAsWatchedRequestDescriptor = $convert.base64Decode( +final $typed_data.Uint8List markAsWatchedRequestDescriptor = + $convert.base64Decode( 'ChRNYXJrQXNXYXRjaGVkUmVxdWVzdBIaCghzdHJlYW1JRBgBIAEoDVIIc3RyZWFtSUQ='); @$core.Deprecated('Use getProgressResponseDescriptor instead') const GetProgressResponse$json = { '1': 'GetProgressResponse', '2': [ - {'1': 'progress', '3': 1, '4': 1, '5': 11, '6': '.protobuf.Progress', '10': 'progress'}, + { + '1': 'progress', + '3': 1, + '4': 1, + '5': 11, + '6': '.protobuf.Progress', + '10': 'progress' + }, ], }; @@ -1231,7 +1587,14 @@ final $typed_data.Uint8List getProgressResponseDescriptor = $convert.base64Decod const PutProgressResponse$json = { '1': 'PutProgressResponse', '2': [ - {'1': 'progress', '3': 1, '4': 1, '5': 11, '6': '.protobuf.Progress', '10': 'progress'}, + { + '1': 'progress', + '3': 1, + '4': 1, + '5': 11, + '6': '.protobuf.Progress', + '10': 'progress' + }, ], }; @@ -1244,7 +1607,14 @@ final $typed_data.Uint8List putProgressResponseDescriptor = $convert.base64Decod const MarkAsWatchedResponse$json = { '1': 'MarkAsWatchedResponse', '2': [ - {'1': 'progress', '3': 1, '4': 1, '5': 11, '6': '.protobuf.Progress', '10': 'progress'}, + { + '1': 'progress', + '3': 1, + '4': 1, + '5': 11, + '6': '.protobuf.Progress', + '10': 'progress' + }, ], }; @@ -1252,4 +1622,3 @@ const MarkAsWatchedResponse$json = { final $typed_data.Uint8List markAsWatchedResponseDescriptor = $convert.base64Decode( 'ChVNYXJrQXNXYXRjaGVkUmVzcG9uc2USLgoIcHJvZ3Jlc3MYASABKAsyEi5wcm90b2J1Zi5Qcm' '9ncmVzc1IIcHJvZ3Jlc3M='); - diff --git a/lib/base/networking/api/google/protobuf/empty.pb.dart b/lib/base/networking/api/google/protobuf/empty.pb.dart index 05ae77c7..5c5ce508 100644 --- a/lib/base/networking/api/google/protobuf/empty.pb.dart +++ b/lib/base/networking/api/google/protobuf/empty.pb.dart @@ -23,23 +23,29 @@ import 'package:protobuf/protobuf.dart' as $pb; class Empty extends $pb.GeneratedMessage { factory Empty() => create(); Empty._() : super(); - factory Empty.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Empty.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Empty', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory Empty.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory Empty.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Empty', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Empty clone() => Empty()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Empty copyWith(void Function(Empty) updates) => super.copyWith((message) => updates(message as Empty)) as Empty; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Empty copyWith(void Function(Empty) updates) => + super.copyWith((message) => updates(message as Empty)) as Empty; $pb.BuilderInfo get info_ => _i; @@ -48,9 +54,10 @@ class Empty extends $pb.GeneratedMessage { Empty createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Empty getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Empty getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Empty? _defaultInstance; } - -const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/lib/base/networking/api/google/protobuf/empty.pbenum.dart b/lib/base/networking/api/google/protobuf/empty.pbenum.dart index 510bac1d..2f2a7613 100644 --- a/lib/base/networking/api/google/protobuf/empty.pbenum.dart +++ b/lib/base/networking/api/google/protobuf/empty.pbenum.dart @@ -8,4 +8,3 @@ // ignore_for_file: constant_identifier_names, library_prefixes // ignore_for_file: non_constant_identifier_names, prefer_final_fields // ignore_for_file: unnecessary_import, unnecessary_this, unused_import - diff --git a/lib/base/networking/api/google/protobuf/empty.pbjson.dart b/lib/base/networking/api/google/protobuf/empty.pbjson.dart index c7245b67..35f6e2ec 100644 --- a/lib/base/networking/api/google/protobuf/empty.pbjson.dart +++ b/lib/base/networking/api/google/protobuf/empty.pbjson.dart @@ -19,6 +19,5 @@ const Empty$json = { }; /// Descriptor for `Empty`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List emptyDescriptor = $convert.base64Decode( - 'CgVFbXB0eQ=='); - +final $typed_data.Uint8List emptyDescriptor = + $convert.base64Decode('CgVFbXB0eQ=='); diff --git a/lib/base/networking/api/google/protobuf/timestamp.pb.dart b/lib/base/networking/api/google/protobuf/timestamp.pb.dart index ea44b44e..48e11b93 100644 --- a/lib/base/networking/api/google/protobuf/timestamp.pb.dart +++ b/lib/base/networking/api/google/protobuf/timestamp.pb.dart @@ -119,25 +119,33 @@ class Timestamp extends $pb.GeneratedMessage with $mixin.TimestampMixin { return $result; } Timestamp._() : super(); - factory Timestamp.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Timestamp.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + factory Timestamp.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory Timestamp.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Timestamp', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.TimestampMixin.toProto3JsonHelper, fromProto3Json: $mixin.TimestampMixin.fromProto3JsonHelper) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Timestamp', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create, + toProto3Json: $mixin.TimestampMixin.toProto3JsonHelper, + fromProto3Json: $mixin.TimestampMixin.fromProto3JsonHelper) ..aInt64(1, _omitFieldNames ? '' : 'seconds') ..a<$core.int>(2, _omitFieldNames ? '' : 'nanos', $pb.PbFieldType.O3) - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Timestamp clone() => Timestamp()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Timestamp copyWith(void Function(Timestamp) updates) => super.copyWith((message) => updates(message as Timestamp)) as Timestamp; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Timestamp copyWith(void Function(Timestamp) updates) => + super.copyWith((message) => updates(message as Timestamp)) as Timestamp; $pb.BuilderInfo get info_ => _i; @@ -146,7 +154,8 @@ class Timestamp extends $pb.GeneratedMessage with $mixin.TimestampMixin { Timestamp createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Timestamp getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Timestamp getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Timestamp? _defaultInstance; /// Represents seconds of UTC time since Unix epoch @@ -155,7 +164,10 @@ class Timestamp extends $pb.GeneratedMessage with $mixin.TimestampMixin { @$pb.TagNumber(1) $fixnum.Int64 get seconds => $_getI64(0); @$pb.TagNumber(1) - set seconds($fixnum.Int64 v) { $_setInt64(0, v); } + set seconds($fixnum.Int64 v) { + $_setInt64(0, v); + } + @$pb.TagNumber(1) $core.bool hasSeconds() => $_has(0); @$pb.TagNumber(1) @@ -168,11 +180,15 @@ class Timestamp extends $pb.GeneratedMessage with $mixin.TimestampMixin { @$pb.TagNumber(2) $core.int get nanos => $_getIZ(1); @$pb.TagNumber(2) - set nanos($core.int v) { $_setSignedInt32(1, v); } + set nanos($core.int v) { + $_setSignedInt32(1, v); + } + @$pb.TagNumber(2) $core.bool hasNanos() => $_has(1); @$pb.TagNumber(2) void clearNanos() => clearField(2); + /// Creates a new instance from [dateTime]. /// /// Time zone information will not be preserved. @@ -183,6 +199,6 @@ class Timestamp extends $pb.GeneratedMessage with $mixin.TimestampMixin { } } - const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/lib/base/networking/api/google/protobuf/timestamp.pbenum.dart b/lib/base/networking/api/google/protobuf/timestamp.pbenum.dart index 30275f6a..a194b805 100644 --- a/lib/base/networking/api/google/protobuf/timestamp.pbenum.dart +++ b/lib/base/networking/api/google/protobuf/timestamp.pbenum.dart @@ -8,4 +8,3 @@ // ignore_for_file: constant_identifier_names, library_prefixes // ignore_for_file: non_constant_identifier_names, prefer_final_fields // ignore_for_file: unnecessary_import, unnecessary_this, unused_import - diff --git a/lib/base/networking/api/google/protobuf/timestamp.pbjson.dart b/lib/base/networking/api/google/protobuf/timestamp.pbjson.dart index 3dfd63b5..39ab20fa 100644 --- a/lib/base/networking/api/google/protobuf/timestamp.pbjson.dart +++ b/lib/base/networking/api/google/protobuf/timestamp.pbjson.dart @@ -26,4 +26,3 @@ const Timestamp$json = { final $typed_data.Uint8List timestampDescriptor = $convert.base64Decode( 'CglUaW1lc3RhbXASGAoHc2Vjb25kcxgBIAEoA1IHc2Vjb25kcxIUCgVuYW5vcxgCIAEoBVIFbm' 'Fub3M='); - diff --git a/lib/base/networking/api/handler/chat_handler.dart b/lib/base/networking/api/handler/chat_handler.dart index 73003577..a797a4b7 100644 --- a/lib/base/networking/api/handler/chat_handler.dart +++ b/lib/base/networking/api/handler/chat_handler.dart @@ -15,8 +15,8 @@ class ChatHandlers { _logger.i('Fetching chat messages'); return _grpcHandler.callGrpcMethod( (client) async { - final response = - await client.getChatMessages(GetChatMessagesRequest(streamID: streamID)); + final response = await client + .getChatMessages(GetChatMessagesRequest(streamID: streamID)); _logger.d('Chat messages: ${response.messages}'); return response.messages; }, @@ -27,8 +27,12 @@ class ChatHandlers { _logger.i('Posting chat message'); return _grpcHandler.callGrpcMethod( (client) async { - final response = - await client.postChatMessage(PostChatMessageRequest(streamID: streamID, message: message)); + final response = await client.postChatMessage( + PostChatMessageRequest( + streamID: streamID, + message: message, + ), + ); _logger.i('Chat message posted: ${response.message}'); return response.message; }, @@ -40,7 +44,13 @@ class ChatHandlers { _logger.i('Posting chat reaction'); return _grpcHandler.callGrpcMethod( (client) async { - final response = await client.postChatReaction(PostChatReactionRequest(emoji: emoji, streamID:streamID, chatID: messageID)); + final response = await client.postChatReaction( + PostChatReactionRequest( + emoji: emoji, + streamID: streamID, + chatID: messageID, + ), + ); _logger.i('Chat reaction ${response.reaction} posted'); return response.reaction; }, @@ -52,7 +62,13 @@ class ChatHandlers { _logger.i('Deleting chat reaction'); return _grpcHandler.callGrpcMethod( (client) async { - await client.deleteChatReaction(DeleteChatReactionRequest(chatID: messageID, streamID: streamID, reactionID: reactionID)); + await client.deleteChatReaction( + DeleteChatReactionRequest( + chatID: messageID, + streamID: streamID, + reactionID: reactionID, + ), + ); _logger.i('Chat reaction deleted'); }, ); @@ -63,7 +79,13 @@ class ChatHandlers { _logger.i('Posting chat reply'); return _grpcHandler.callGrpcMethod( (client) async { - final response = await client.postChatReply(PostChatReplyRequest(chatID: messageID, streamID: streamID, message: message)); + final response = await client.postChatReply( + PostChatReplyRequest( + chatID: messageID, + streamID: streamID, + message: message, + ), + ); _logger.i('Chat reply ${response.reply} posted'); return response.reply; }, @@ -74,7 +96,12 @@ class ChatHandlers { _logger.i('Marking chat message as resolved'); return _grpcHandler.callGrpcMethod( (client) async { - await client.markChatMessageAsResolved(MarkChatMessageAsResolvedRequest(chatID: messageID, streamID: streamID)); + await client.markChatMessageAsResolved( + MarkChatMessageAsResolvedRequest( + chatID: messageID, + streamID: streamID, + ), + ); _logger.i('Chat message marked as resolved'); }, ); @@ -84,7 +111,12 @@ class ChatHandlers { _logger.i('Marking chat message as unresolved'); return _grpcHandler.callGrpcMethod( (client) async { - await client.markChatMessageAsUnresolved(MarkChatMessageAsUnresolvedRequest(chatID: messageID, streamID: streamID)); + await client.markChatMessageAsUnresolved( + MarkChatMessageAsUnresolvedRequest( + chatID: messageID, + streamID: streamID, + ), + ); _logger.i('Chat message marked as unresolved'); }, ); diff --git a/lib/base/networking/api/handler/course_handler.dart b/lib/base/networking/api/handler/course_handler.dart index d4bc3fd0..77831a57 100644 --- a/lib/base/networking/api/handler/course_handler.dart +++ b/lib/base/networking/api/handler/course_handler.dart @@ -41,8 +41,10 @@ class CourseHandler { } Future> fetchAllCourses() async { - List userCourses = await UserHandler(_grpcHandler).fetchUserCourses(); - List publicCourses = await CourseHandler(_grpcHandler).fetchPublicCourses(); + List userCourses = + await UserHandler(_grpcHandler).fetchUserCourses(); + List publicCourses = + await CourseHandler(_grpcHandler).fetchPublicCourses(); return [...userCourses, ...publicCourses]; } } diff --git a/lib/base/networking/api/handler/poll_handler.dart b/lib/base/networking/api/handler/poll_handler.dart index 6cde6a5d..4265a0b1 100644 --- a/lib/base/networking/api/handler/poll_handler.dart +++ b/lib/base/networking/api/handler/poll_handler.dart @@ -1,5 +1,5 @@ import 'dart:async'; -import 'package:fixnum/fixnum.dart'; + import 'package:gocast_mobile/base/networking/api/gocast/api_v2.pb.dart'; import 'package:gocast_mobile/base/networking/api/handler/grpc_handler.dart'; import 'package:logger/logger.dart'; diff --git a/lib/base/networking/api/handler/settings_handler.dart b/lib/base/networking/api/handler/settings_handler.dart index ed8963e3..c1793574 100644 --- a/lib/base/networking/api/handler/settings_handler.dart +++ b/lib/base/networking/api/handler/settings_handler.dart @@ -70,7 +70,9 @@ class SettingsHandler { try { _logger.i('Updating user settings...'); final request = PatchUserSettingsRequest() - ..userSettings.add(UserSetting(type: UserSettingType.PREFERRED_NAME, value: newName)); + ..userSettings.add( + UserSetting(type: UserSettingType.PREFERRED_NAME, value: newName), + ); await _grpcHandler.callGrpcMethod( (client) async { await client.patchUserSettings(request); @@ -93,7 +95,9 @@ class SettingsHandler { try { _logger.i('Updating user settings...'); final request = PatchUserSettingsRequest() - ..userSettings.add(UserSetting(type: UserSettingType.GREETING, value: newGreeting)); + ..userSettings.add( + UserSetting(type: UserSettingType.GREETING, value: newGreeting), + ); await _grpcHandler.callGrpcMethod( (client) async { diff --git a/lib/base/networking/api/handler/stream_handler.dart b/lib/base/networking/api/handler/stream_handler.dart index e4cb797c..92ef6de5 100644 --- a/lib/base/networking/api/handler/stream_handler.dart +++ b/lib/base/networking/api/handler/stream_handler.dart @@ -1,4 +1,3 @@ -import 'package:fixnum/fixnum.dart'; import 'package:gocast_mobile/base/networking/api/gocast/api_v2.pb.dart'; import 'package:gocast_mobile/base/networking/api/handler/grpc_handler.dart'; import 'package:logger/logger.dart'; @@ -35,12 +34,12 @@ class StreamHandler { /// Takes [streamId] as a parameter. /// /// Returns a [Stream] instance that represents the stream of the course. - Future fetchStream(int streamId) async { + Future fetchStream(streamId) async { _logger.i('Fetching stream'); return _grpcHandler.callGrpcMethod( (client) async { final response = - await client.getStream(GetStreamRequest(streamID: streamId)); + await client.getStream(GetStreamRequest(streamID: (streamId))); _logger.d('Stream: ${response.stream}'); return response.stream; }, @@ -69,6 +68,7 @@ class StreamHandler { /// /// Takes [streamId] as a parameter. /// Returns a [String] instance that represents the thumbnail stream. + Future fetchThumbnailStreams(int streamId) async { _logger.i('Fetching thumbnail stream'); return _grpcHandler.callGrpcMethod( @@ -87,6 +87,7 @@ class StreamHandler { /// /// Takes [streamId] as a parameter. /// Returns a [String] instance that represents the thumbnail VOD. + Future fetchThumbnailVOD(int streamId) async { _logger.i('Fetching thumbnail VOD'); return _grpcHandler.callGrpcMethod( @@ -105,6 +106,7 @@ class StreamHandler { /// /// Takes [streamId] as a parameter. /// Returns a [Progress] instance that represents the progress of the stream. + Future fetchProgress(int streamId) async { _logger.i('Fetching progress'); try { @@ -128,7 +130,8 @@ class StreamHandler { /// This method sends a `putProgress` gRPC call to update the progress of a stream. /// /// Takes [streamId] and [progress] as parameters. - Future putProgress(int streamId, Progress progress) async { + + Future putProgress(streamId, Progress progress) async { _logger.i('Updating progress'); await _grpcHandler.callGrpcMethod( (client) async { @@ -148,7 +151,8 @@ class StreamHandler { /// This method sends a `markAsWatched` gRPC call to mark a stream as watched. /// /// Takes [streamId] as a parameter. - Future markAsWatched(int streamId) async { + + Future markAsWatched(streamId) async { _logger.i('Marking stream as watched'); await _grpcHandler.callGrpcMethod( (client) async { diff --git a/lib/models/chat/chat_state_model.dart b/lib/models/chat/chat_state_model.dart index f7a0e323..399f1999 100644 --- a/lib/models/chat/chat_state_model.dart +++ b/lib/models/chat/chat_state_model.dart @@ -78,7 +78,7 @@ class ChatState { ); } -ChatState addReaction(ChatReaction reaction) { + ChatState addReaction(ChatReaction reaction) { return ChatState( isLoading: isLoading, messages: messages, diff --git a/lib/models/course/course_state_model.dart b/lib/models/course/course_state_model.dart index 33bc0a02..d7813ba6 100644 --- a/lib/models/course/course_state_model.dart +++ b/lib/models/course/course_state_model.dart @@ -47,4 +47,4 @@ class CourseState { error: null, ); } -} \ No newline at end of file +} diff --git a/lib/models/poll/poll_state_model.dart b/lib/models/poll/poll_state_model.dart index d3ced434..c9a29a3c 100644 --- a/lib/models/poll/poll_state_model.dart +++ b/lib/models/poll/poll_state_model.dart @@ -6,17 +6,20 @@ import 'package:gocast_mobile/models/error/error_model.dart'; class PollState { final bool isLoading; final List? polls; + final Map answeredPolls; // pollId, pollOptionId final AppError? error; const PollState({ this.isLoading = false, this.polls, this.error, + this.answeredPolls = const {}, }); PollState copyWith({ bool? isLoading, List? polls, + Map? answeredPolls, AppError? error, bool? isRateLimitReached, bool? accessDenied, @@ -24,6 +27,7 @@ class PollState { return PollState( isLoading: isLoading ?? this.isLoading, polls: polls ?? this.polls, + answeredPolls: answeredPolls ?? this.answeredPolls, error: error ?? this.error, ); } @@ -32,15 +36,21 @@ class PollState { return PollState( isLoading: isLoading, polls: polls, + answeredPolls: answeredPolls, error: null, ); } - PollState addPoll(Poll poll) { - final updatedPolls = polls != null ? [...polls!, poll] : [poll]; + PollState addAnsweredPoll(int pollId, int pollOptionId) { + // Create a new map from the existing answeredPolls and add the new answered poll + final updatedAnsweredPolls = Map.from(answeredPolls) + ..[pollId] = pollOptionId; + + // Return a new PollState with the updated map return PollState( isLoading: isLoading, - polls: updatedPolls, + polls: polls, + answeredPolls: updatedAnsweredPolls, error: error, ); } diff --git a/lib/models/settings/setting_state_model.dart b/lib/models/settings/setting_state_model.dart index 729fb2a3..4e876a91 100644 --- a/lib/models/settings/setting_state_model.dart +++ b/lib/models/settings/setting_state_model.dart @@ -18,10 +18,10 @@ class SettingState { this.userSettings, this.error, this.isDarkMode = false, - this.isLightMode =false, - this.isSystemDefault =true, + this.isLightMode = false, + this.isSystemDefault = true, this.isPushNotificationsEnabled = true, - this.isDownloadWithWifiOnly = true, + this.isDownloadWithWifiOnly = false, }); SettingState copyWith({ @@ -42,9 +42,9 @@ class SettingState { isLightMode: isLightMode ?? this.isLightMode, isSystemDefault: isSystemDefault ?? this.isSystemDefault, isPushNotificationsEnabled: - isPushNotificationsEnabled ?? this.isPushNotificationsEnabled, + isPushNotificationsEnabled ?? this.isPushNotificationsEnabled, isDownloadWithWifiOnly: - isDownloadWithWifiOnly ?? this.isDownloadWithWifiOnly, + isDownloadWithWifiOnly ?? this.isDownloadWithWifiOnly, ); } @@ -62,9 +62,9 @@ class SettingState { error: null, isDarkMode: isDarkMode ?? this.isDarkMode, isPushNotificationsEnabled: - isPushNotificationsEnabled ?? this.isPushNotificationsEnabled, + isPushNotificationsEnabled ?? this.isPushNotificationsEnabled, isDownloadWithWifiOnly: - isDownloadWithWifiOnly ?? this.isDownloadWithWifiOnly, + isDownloadWithWifiOnly ?? this.isDownloadWithWifiOnly, ); } } diff --git a/lib/models/user/user_state_model.dart b/lib/models/user/user_state_model.dart index f8b757bf..72c96590 100644 --- a/lib/models/user/user_state_model.dart +++ b/lib/models/user/user_state_model.dart @@ -18,6 +18,8 @@ class UserState { final Semester? current; final String? currentAsString; final List? displayedCourses; + final List? displayedPinnedCourses; + const UserState({ this.isLoading = false, this.user, @@ -33,6 +35,7 @@ class UserState { this.current, this.currentAsString, this.displayedCourses, + this.displayedPinnedCourses, }); UserState copyWith({ @@ -49,7 +52,9 @@ class UserState { List? semestersAsString, Semester? current, String? currentAsString, - List? displayedCourses,}) { + List? displayedCourses, + List? displayedPinnedCourses, + }) { return UserState( isLoading: isLoading ?? this.isLoading, user: user ?? this.user, @@ -65,6 +70,8 @@ class UserState { current: current ?? this.current, currentAsString: currentAsString ?? this.currentAsString, displayedCourses: displayedCourses ?? this.displayedCourses, + displayedPinnedCourses: + displayedPinnedCourses ?? this.displayedPinnedCourses, ); } @@ -77,6 +84,8 @@ class UserState { List? publicCourses, AppError? error, List? downloadedCourses, + List? displayedCourses, + List? displayedPinnedCourses, List? semesters, }) { return UserState( @@ -89,6 +98,13 @@ class UserState { error: null, downloadedCourses: downloadedCourses ?? this.downloadedCourses, semesters: semesters ?? this.semesters, + selectedSemester: selectedSemester, + semestersAsString: semestersAsString, + current: current, + currentAsString: currentAsString, + displayedCourses: displayedCourses ?? this.displayedCourses, + displayedPinnedCourses: + displayedPinnedCourses ?? this.displayedPinnedCourses, ); } } diff --git a/lib/models/video/stream_state_model.dart b/lib/models/video/stream_state_model.dart index 2e2b62d2..61195212 100644 --- a/lib/models/video/stream_state_model.dart +++ b/lib/models/video/stream_state_model.dart @@ -89,4 +89,4 @@ class StreamState { error: null, ); } -} \ No newline at end of file +} diff --git a/lib/providers.dart b/lib/providers.dart index 10efa225..660d69f1 100644 --- a/lib/providers.dart +++ b/lib/providers.dart @@ -1,4 +1,3 @@ -import 'package:fixnum/fixnum.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:gocast_mobile/config/app_config.dart'; @@ -72,5 +71,3 @@ final progressProvider = FutureProvider.autoDispose.family( return videoViewModel.fetchProgressForStream(streamId); }, ); - - diff --git a/lib/utils/sort_utils.dart b/lib/utils/sort_utils.dart index 5342778a..66215efd 100644 --- a/lib/utils/sort_utils.dart +++ b/lib/utils/sort_utils.dart @@ -2,10 +2,10 @@ import 'package:gocast_mobile/base/networking/api/gocast/api_v2.pbgrpc.dart'; import 'package:tuple/tuple.dart'; class CourseUtils { - - - static List convertAndSortSemesters(List semesters, - bool isNewestFirst,) { + static List convertAndSortSemesters( + List semesters, + bool isNewestFirst, + ) { List sortedSemesters = List.from(semesters); sortedSemesters.sort((a, b) { @@ -30,8 +30,10 @@ class CourseUtils { return semesterStrings; } - static List filterCoursesBySemester(List courses, - String selectedSemester,) { + static List filterCoursesBySemester( + List courses, + String selectedSemester, + ) { if (selectedSemester == 'All') { return courses; } else { @@ -47,22 +49,24 @@ class CourseUtils { } static void sortCourses(List courses, String sortOption) { - bool isNewestFirst = sortOption == 'Newest First'; - courses.sort((a, b) { - int yearComparison = a.semester.year.compareTo(b.semester.year); - if (yearComparison != 0) { - return isNewestFirst ? -yearComparison : yearComparison; - } + bool isNewestFirst = sortOption == 'Newest First'; + courses.sort((a, b) { + int yearComparison = a.semester.year.compareTo(b.semester.year); + if (yearComparison != 0) { + return isNewestFirst ? -yearComparison : yearComparison; + } - if (a.semester.teachingTerm == b.semester.teachingTerm) { - return 0; - } - return a.semester.teachingTerm == 'W' ? -1 : 1; - }); + if (a.semester.teachingTerm == b.semester.teachingTerm) { + return 0; + } + return a.semester.teachingTerm == 'W' ? -1 : 1; + }); } static List> sortStreams( - List> streamsWithThumb, String sortOption,) { + List> streamsWithThumb, + String sortOption, + ) { bool isNewestFirst = sortOption == 'Newest First'; streamsWithThumb.sort((a, b) { DateTime startA = a.item1.start.toDateTime(); diff --git a/lib/view_models/chat_view_model.dart b/lib/view_models/chat_view_model.dart index d8430e76..a2ac03b5 100644 --- a/lib/view_models/chat_view_model.dart +++ b/lib/view_models/chat_view_model.dart @@ -17,18 +17,24 @@ class ChatViewModel extends StateNotifier { state = state.copyWith(isLoading: true); state = state.clearError(); try { - final messages = await ChatHandlers(_grpcHandler).getChatMessages(streamId); + final messages = + await ChatHandlers(_grpcHandler).getChatMessages(streamId); state = state.copyWith(messages: messages, isLoading: false); } catch (e) { _logger.e(e); - state = state.copyWith(error: e as AppError, isLoading: false, accessDenied: true); + state = state.copyWith( + error: e as AppError, + isLoading: false, + accessDenied: true, + ); } } Future postChatMessage(int streamId, String message) async { try { fetchChatMessages(streamId); - var chatMessage = await ChatHandlers(_grpcHandler).postChatMessage(streamId, message); + var chatMessage = + await ChatHandlers(_grpcHandler).postChatMessage(streamId, message); state = state.addMessage(chatMessage); } catch (e) { _logger.e(e); @@ -53,7 +59,8 @@ class ChatViewModel extends StateNotifier { Future postMessageReaction( int messageId, int streamId, String emoji) async { try { - var reaction= await ChatHandlers(_grpcHandler).postMessageReaction(messageId, streamId, emoji); + var reaction = await ChatHandlers(_grpcHandler) + .postMessageReaction(messageId, streamId, emoji); state = state.addReaction(reaction); } catch (e) { _logger.e(e); @@ -64,7 +71,8 @@ class ChatViewModel extends StateNotifier { Future deleteMessageReaction( int messageId, int streamId, int reactionId) async { try { - await ChatHandlers(_grpcHandler).deleteMessageReaction(messageId, streamId, reactionId); + await ChatHandlers(_grpcHandler) + .deleteMessageReaction(messageId, streamId, reactionId); } catch (e) { _logger.e(e); state = state.copyWith(error: e as AppError); @@ -74,7 +82,8 @@ class ChatViewModel extends StateNotifier { Future postChatReply( int messageId, int streamId, String message) async { try { - var replay = await ChatHandlers(_grpcHandler).postChatReply(messageId, streamId, message); + var replay = await ChatHandlers(_grpcHandler) + .postChatReply(messageId, streamId, message); state = state.addReply(replay); } catch (e) { _logger.e(e); @@ -84,7 +93,8 @@ class ChatViewModel extends StateNotifier { Future markChatMessageAsResolved(int messageId, int streamId) async { try { - await ChatHandlers(_grpcHandler).markChatMessageAsResolved(messageId, streamId); + await ChatHandlers(_grpcHandler) + .markChatMessageAsResolved(messageId, streamId); } catch (e) { _logger.e(e); state = state.copyWith(error: e as AppError); @@ -93,7 +103,8 @@ class ChatViewModel extends StateNotifier { Future markChatMessageAsUnresolved(int messageId, int streamId) async { try { - await ChatHandlers(_grpcHandler).markChatMessageAsUnresolved(messageId, streamId); + await ChatHandlers(_grpcHandler) + .markChatMessageAsUnresolved(messageId, streamId); } catch (e) { _logger.e(e); state = state.copyWith(error: e as AppError); diff --git a/lib/view_models/course_view_model.dart b/lib/view_models/course_view_model.dart index 6eb88739..1f116bbe 100644 --- a/lib/view_models/course_view_model.dart +++ b/lib/view_models/course_view_model.dart @@ -1,4 +1,3 @@ - import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:gocast_mobile/base/networking/api/gocast/api_v2.pb.dart'; import 'package:gocast_mobile/base/networking/api/handler/course_handler.dart'; @@ -30,8 +29,9 @@ class CourseViewModel extends StateNotifier { if (state.allCourses == null) { await fetchAllCourses(); } - var course = state.allCourses!.firstWhere((course) => course.id == courseID); + var course = + state.allCourses!.firstWhere((course) => course.id == courseID); state = state.copyWith(course: course); return course; } -} \ No newline at end of file +} diff --git a/lib/view_models/download_view_model.dart b/lib/view_models/download_view_model.dart index 2a69e440..c8e103ba 100644 --- a/lib/view_models/download_view_model.dart +++ b/lib/view_models/download_view_model.dart @@ -1,5 +1,4 @@ import 'dart:convert'; -import 'package:fixnum/fixnum.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:gocast_mobile/models/download/download_state_model.dart'; import 'package:shared_preferences/shared_preferences.dart'; @@ -9,6 +8,7 @@ import 'package:logger/logger.dart'; import 'dart:io'; class DownloadViewModel extends StateNotifier { + final Logger _logger = Logger(); DownloadViewModel() : super(const DownloadState()) { @@ -26,11 +26,10 @@ class DownloadViewModel extends StateNotifier { } } + + Future downloadVideo( - String videoUrl, - int streamId, - String fileName, - ) async { + String videoUrl, int streamId, String fileName,) async { try { final directory = await getApplicationDocumentsDirectory(); final filePath = '${directory.path}/$fileName'; @@ -64,32 +63,35 @@ class DownloadViewModel extends StateNotifier { _logger.e('Error fetching downloaded videos: $e'); } } - Future deleteDownload(int videoId) async { _logger.i('Deleting downloaded video with ID: $videoId'); + _logger.d('Current state before deletion: ${state.downloadedVideos}'); try { String? filePath = state.downloadedVideos[videoId]; + _logger.d('File path to delete: $filePath'); + if (filePath != null && filePath.isNotEmpty) { final file = File(filePath); if (await file.exists()) { await file.delete(); _logger.d('Deleted video file at: $filePath'); - - final prefs = await SharedPreferences.getInstance(); - final updatedDownloads = - Map.from(state.downloadedVideos); - updatedDownloads.remove(videoId); - - // Save updated list to SharedPreferences - await prefs.setString( - 'downloadedVideos', - json.encode(updatedDownloads - .map((key, value) => MapEntry(key.toString(), value)),),); - state = state.copyWith(downloadedVideos: updatedDownloads); } else { _logger.w('File not found: $filePath'); } + + // Update the state and SharedPreferences after deletion + final updatedDownloads = Map.from(state.downloadedVideos); + updatedDownloads.remove(videoId); + + final prefs = await SharedPreferences.getInstance(); + await prefs.setString( + 'downloadedVideos', + json.encode(updatedDownloads.map((key, value) => MapEntry(key.toString(), value))), + ); + + state = state.copyWith(downloadedVideos: updatedDownloads); + _logger.d('Updated state after deletion: ${state.downloadedVideos}'); } else { _logger.w('No file path found for video ID: $videoId'); } @@ -98,6 +100,7 @@ class DownloadViewModel extends StateNotifier { } } + Future deleteAllDownloads() async { _logger.i('Deleting all downloaded videos'); @@ -124,6 +127,7 @@ class DownloadViewModel extends StateNotifier { } bool isStreamDownloaded(int id) { - return state.downloadedVideos.containsKey(id); + final int streamIdInt = id.toInt(); // Convert Int64 to int + return state.downloadedVideos.containsKey(streamIdInt); } } diff --git a/lib/view_models/poll_view_model.dart b/lib/view_models/poll_view_model.dart index b2bb41be..f9a55723 100644 --- a/lib/view_models/poll_view_model.dart +++ b/lib/view_models/poll_view_model.dart @@ -1,4 +1,3 @@ -import 'package:fixnum/fixnum.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:gocast_mobile/base/networking/api/handler/poll_handler.dart'; import 'package:gocast_mobile/base/networking/api/handler/grpc_handler.dart'; @@ -33,6 +32,23 @@ class PollViewModel extends StateNotifier { } } + void postAnsweredPoll(int pollId, int pollOptionId) { + state = state.addAnsweredPoll(pollId, pollOptionId); + } + + void getAnsweredPolls() { + Map answeredPolls = {}; + for (var poll in state.polls ?? []) { + for (var option in poll.pollOptions) { + if (option.voted) { + answeredPolls[poll.id] = option.id; + break; + } + } + } + state = state.copyWith(answeredPolls: answeredPolls); + } + void clearError() { state = state.clearError(); } diff --git a/lib/view_models/setting_view_model.dart b/lib/view_models/setting_view_model.dart index 8f25f670..400f6491 100644 --- a/lib/view_models/setting_view_model.dart +++ b/lib/view_models/setting_view_model.dart @@ -18,7 +18,7 @@ class SettingViewModel extends StateNotifier { try { _logger.i('Fetching user settings..'); final userSettings = - await SettingsHandler(_grpcHandler).fetchUserSettings(); + await SettingsHandler(_grpcHandler).fetchUserSettings(); state = state.copyWith(userSettings: userSettings); _logger.i('User settings fetched successfully'); } catch (e) { @@ -61,16 +61,19 @@ class SettingViewModel extends StateNotifier { updateThemeMode(theme); // Update the UI theme mode based on the selected preference - ref.read(themeModeProvider.notifier).state = - theme == 'dark' ? ThemeMode.dark : theme == 'light' ? ThemeMode.light : ThemeMode.system; + ref.read(themeModeProvider.notifier).state = theme == 'dark' + ? ThemeMode.dark + : theme == 'light' + ? ThemeMode.light + : ThemeMode.system; } void updateThemeMode(String themePreference) { // Update the state with the new theme preference state = state.copyWith( - isDarkMode: themePreference == 'dark', - isLightMode: themePreference == 'light', - isSystemDefault: themePreference == 'system', + isDarkMode: themePreference == 'dark', + isLightMode: themePreference == 'light', + isSystemDefault: themePreference == 'system', ); } @@ -98,8 +101,7 @@ class SettingViewModel extends StateNotifier { Future updatePreferredGreeting(String newGreeting) async { try { - await SettingsHandler(_grpcHandler) - .updateGreeting(newGreeting); + await SettingsHandler(_grpcHandler).updateGreeting(newGreeting); await fetchUserSettings(); } catch (e) { _logger.e('Error updating greeting: $e'); @@ -108,8 +110,7 @@ class SettingViewModel extends StateNotifier { Future updatePreferredName(String newName) async { try { - await SettingsHandler(_grpcHandler) - .updatePreferredName(newName); + await SettingsHandler(_grpcHandler).updatePreferredName(newName); await fetchUserSettings(); return true; } catch (e) { @@ -129,7 +130,6 @@ class SettingViewModel extends StateNotifier { .parsePlaybackSpeeds(state.userSettings); } - List? getUserSettings() { return state.userSettings; } @@ -137,5 +137,4 @@ class SettingViewModel extends StateNotifier { void setLoading(bool isLoading) { state = state.copyWith(isLoading: isLoading); } - -} \ No newline at end of file +} diff --git a/lib/view_models/stream_view_model.dart b/lib/view_models/stream_view_model.dart index f0e8f0bf..820ad2ae 100644 --- a/lib/view_models/stream_view_model.dart +++ b/lib/view_models/stream_view_model.dart @@ -1,5 +1,3 @@ -import 'package:fixnum/fixnum.dart'; - import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:gocast_mobile/base/networking/api/gocast/api_v2.pb.dart'; import 'package:gocast_mobile/base/networking/api/gocast/api_v2.pbgrpc.dart'; @@ -59,14 +57,18 @@ class StreamViewModel extends StateNotifier { void setUpDisplayedCourses(List> allStreams) { updatedDisplayedStreams( - CourseUtils.sortStreams(allStreams, state.selectedFilterOption),); + CourseUtils.sortStreams(allStreams, state.selectedFilterOption), + ); } void updateSelectedFilterOption( - String option, List> allStreams,) { + String option, + List> allStreams, + ) { state = state.copyWith(selectedFilterOption: option); updatedDisplayedStreams( - CourseUtils.sortStreams(allStreams, state.selectedFilterOption),); + CourseUtils.sortStreams(allStreams, state.selectedFilterOption), + ); } /// Fetches a thumbnail for a given stream. @@ -151,7 +153,7 @@ class StreamViewModel extends StateNotifier { Future fetchProgressForStream(int streamId) async { try { final progress = - await StreamHandler(_grpcHandler).fetchProgress(streamId); + await StreamHandler(_grpcHandler).fetchProgress(streamId); return progress; } catch (e) { return Progress(progress: 0.0); diff --git a/lib/view_models/user_view_model.dart b/lib/view_models/user_view_model.dart index 852d9ac2..b41442ea 100644 --- a/lib/view_models/user_view_model.dart +++ b/lib/view_models/user_view_model.dart @@ -16,7 +16,6 @@ import 'package:gocast_mobile/utils/globals.dart'; import 'package:gocast_mobile/utils/sort_utils.dart'; import 'package:logger/logger.dart'; - class UserViewModel extends StateNotifier { final Logger _logger = Logger(); @@ -72,7 +71,6 @@ class UserViewModel extends StateNotifier { } } - Future fetchUserBookmarks() async { state = state.copyWith(isLoading: true); try { @@ -92,8 +90,7 @@ class UserViewModel extends StateNotifier { _logger.i('Logged out user and cleared tokens.'); } - - bool isCoursePinned(int id) { + bool isCoursePinned(int id) { if (state.userPinned == null) { return false; } @@ -108,7 +105,7 @@ class UserViewModel extends StateNotifier { void setLoading(bool loading) { state = state.copyWith(isLoading: loading); } - + Future fetchSemesters() async { state = state.copyWith(isLoading: true); try { @@ -128,20 +125,18 @@ class UserViewModel extends StateNotifier { } } - Future fetchUserPinned() async { state = state.copyWith(isLoading: true); try { var courses = await PinnedHandler(_grpcHandler).fetchUserPinned(); state = state.copyWith(userPinned: courses, isLoading: false); - setUpDisplayedCourses(state.userPinned ?? []); + setUpDisplayedPinnedCourses(state.userPinned ?? []); } catch (e) { _logger.e(e); state = state.copyWith(error: e as AppError, isLoading: false); } } - Future fetchPublicCourses() async { state = state.copyWith(isLoading: true); try { @@ -209,7 +204,18 @@ class UserViewModel extends StateNotifier { void updateSelectedSemester(String? semester, List allCourses) { state = state.copyWith(selectedSemester: semester); - updatedDisplayedCourses(CourseUtils.filterCoursesBySemester( + updatedDisplayedCourses( + CourseUtils.filterCoursesBySemester( + allCourses, + state.selectedSemester ?? 'All', + ), + ); + } + + void updateSelectedPinnedSemester(String? semester, List allCourses) { + state = state.copyWith(selectedSemester: semester); + updatedDisplayedPinnedCourses( + CourseUtils.filterCoursesBySemester( allCourses, state.selectedSemester ?? 'All', ), @@ -218,7 +224,7 @@ class UserViewModel extends StateNotifier { void setSemestersAsString(List semesters) { state = state.copyWith( - semestersAsString: CourseUtils.convertAndSortSemesters(semesters, true), + semestersAsString: CourseUtils.convertAndSortSemesters(semesters, true), ); } @@ -226,14 +232,27 @@ class UserViewModel extends StateNotifier { state = state.copyWith(displayedCourses: displayedCourses); } + void updatedDisplayedPinnedCourses(List displayedPinnedCourses) { + state = state.copyWith(displayedPinnedCourses: displayedPinnedCourses); + } + void setUpDisplayedCourses(List allCourses) { CourseUtils.sortCourses(allCourses, 'Newest First'); - updatedDisplayedCourses(CourseUtils.filterCoursesBySemester( + updatedDisplayedCourses( + CourseUtils.filterCoursesBySemester( + allCourses, + state.selectedSemester ?? 'All', + ), + ); + } + + void setUpDisplayedPinnedCourses(List allCourses) { + CourseUtils.sortCourses(allCourses, 'Newest First'); + updatedDisplayedPinnedCourses( + CourseUtils.filterCoursesBySemester( allCourses, state.selectedSemester ?? 'All', ), ); - } - } diff --git a/lib/views/chat_view/chat_view.dart b/lib/views/chat_view/chat_view.dart index 625d0620..3a037484 100644 --- a/lib/views/chat_view/chat_view.dart +++ b/lib/views/chat_view/chat_view.dart @@ -15,5 +15,3 @@ class ChatView extends ConsumerStatefulWidget { @override ChatViewState createState() => ChatViewState(); } - - diff --git a/lib/views/chat_view/chat_view_state.dart b/lib/views/chat_view/chat_view_state.dart index f35d7816..13e261d8 100644 --- a/lib/views/chat_view/chat_view_state.dart +++ b/lib/views/chat_view/chat_view_state.dart @@ -7,6 +7,9 @@ import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:gocast_mobile/models/chat/chat_state_model.dart'; import 'package:gocast_mobile/providers.dart'; import 'package:gocast_mobile/views/chat_view/chat_view.dart'; +import 'package:gocast_mobile/views/chat_view/suggested_streams_list.dart'; +import 'package:gocast_mobile/base/networking/api/gocast/api_v2.pb.dart'; +import 'package:gocast_mobile/views/video_view/video_player.dart'; import 'package:logger/logger.dart'; class ChatViewState extends ConsumerState { @@ -22,14 +25,18 @@ class ChatViewState extends ConsumerState { _scrollController = ScrollController(); _updateTimer = Timer.periodic(const Duration(seconds: 30), (_) { if (mounted) { - if(widget.streamID != null) { - ref.read(chatViewModelProvider.notifier).fetchChatMessages(widget.streamID!); + if (widget.streamID != null) { + ref + .read(chatViewModelProvider.notifier) + .fetchChatMessages(widget.streamID!); } } }); - if(widget.streamID != null) { + if (widget.streamID != null) { Future.microtask( - () => ref.read(chatViewModelProvider.notifier).fetchChatMessages(widget.streamID!), + () => ref + .read(chatViewModelProvider.notifier) + .fetchChatMessages(widget.streamID!), ); } } @@ -45,11 +52,13 @@ class ChatViewState extends ConsumerState { Widget build(BuildContext context) { final chatState = ref.watch(chatViewModelProvider); bool isIOS = Theme.of(context).platform == TargetPlatform.iOS; - if(chatState.isRateLimitReached){ + if (chatState.isRateLimitReached) { WidgetsBinding.instance.addPostFrameCallback((_) { ScaffoldMessenger.of(context).showSnackBar( const SnackBar( - content: Text('You are sending messages too fast. Please wait a 10 seconds.'), + content: Text( + 'You are sending messages too fast. Please wait a 10 seconds.', + ), ), ); }); @@ -221,4 +230,6 @@ class ChatViewState extends ConsumerState { _isInitialScrollDone = true; } } + + } diff --git a/lib/views/chat_view/poll_view_state.dart b/lib/views/chat_view/poll_view_state.dart index 9b6e3ce8..f2938b5e 100644 --- a/lib/views/chat_view/poll_view_state.dart +++ b/lib/views/chat_view/poll_view_state.dart @@ -7,8 +7,7 @@ import 'package:gocast_mobile/views/chat_view/poll_view.dart'; class PollViewState extends ConsumerState { Timer? _updateTimer; - final Map _selectedOptions = {}; - final Set _submittedPolls = {}; + Map selectedOptions = {}; @override void initState() { @@ -23,16 +22,20 @@ class PollViewState extends ConsumerState { } void _initializeTimer() { - _updateTimer = Timer.periodic(const Duration(seconds: 30), (_) { + _updateTimer = Timer.periodic(const Duration(seconds: 60), (_) { if (mounted && widget.streamID != null) { ref.read(pollViewModelProvider.notifier).fetchPolls(widget.streamID!); } }); if (widget.streamID != null) { - Future.microtask(() => ref - .read(pollViewModelProvider.notifier) - .fetchPolls(widget.streamID!)); + Future.microtask(() async { + // Fetch the polls first + await ref + .read(pollViewModelProvider.notifier) + .fetchPolls(widget.streamID!); + ref.read(pollViewModelProvider.notifier).getAnsweredPolls(); + }); } } @@ -44,97 +47,244 @@ class PollViewState extends ConsumerState { ?.where((poll) => poll.active) .toList() ?? []; + final answeredPolls = ref.watch(pollViewModelProvider).answeredPolls; + return Scaffold( - body: _buildPollsList(polls), + body: _buildPollsList(polls, answeredPolls), ); } - Widget _buildPollsList(List polls) { + Widget _buildPollsList(List polls, Map answeredPolls) { return polls.isEmpty ? const Center(child: Text('No active polls')) : ListView.builder( itemCount: polls.length, itemBuilder: (context, index) => - _buildPollCard(context, polls[index]), + _buildPollCard(context, polls[index], answeredPolls), ); } - Widget _buildPollCard(BuildContext context, Poll poll) { - bool isSubmitted = _submittedPolls.contains(poll.id); + Widget _buildPollCard( + BuildContext context, Poll poll, Map answeredPolls,) { + bool isAnswered = answeredPolls.containsKey(poll.id); + return isAnswered + ? _buildAnsweredPollCard(context, poll, answeredPolls[poll.id]) + : _buildUnansweredPollCard(context, poll); + } + + Widget _buildAnsweredPollCard( + BuildContext context, Poll poll, int? answeredOptionId,) { + ThemeData themeData = Theme.of(context); return Opacity( - opacity: isSubmitted ? 0.5 : 1, - // Make the card semi-transparent if submitted + opacity: 0.5, + // You might want to adjust this value based on your design needs child: Card( - margin: const EdgeInsets.all(8.0), - color: isSubmitted ? Colors.grey.shade200 : null, - // Change background if submitted - child: Column( - mainAxisSize: MainAxisSize.min, - children: [ - _buildPollQuestion(poll), - ...poll.pollOptions - .map((option) => _buildPollOption(context, poll, option)), - _buildSubmitButton(poll), - ], + elevation: 1, + shadowColor: themeData.shadowColor, + color: themeData.cardTheme.color, + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(8.0), + side: BorderSide( + color: themeData + .inputDecorationTheme.enabledBorder?.borderSide.color + .withOpacity(0.2) ?? + Colors.grey.withOpacity(0.2), + width: 1.0, + ), + ), + child: ClipRRect( + borderRadius: BorderRadius.circular(8.0), + child: Container( + color: themeData.cardColor, + child: Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + _buildPollQuestion(poll), + GridView.builder( + shrinkWrap: true, + physics: const NeverScrollableScrollPhysics(), + // to disable GridView's scrolling + gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount( + crossAxisCount: 2, + childAspectRatio: + 3, // Adjust the aspect ratio to fit the content + ), + itemCount: poll.pollOptions.length, + itemBuilder: (context, index) { + return _buildInactivePollOption(context, poll, + poll.pollOptions[index], answeredOptionId,); + }, + ), + ], + ), + ), ), ), ); } - Widget _buildPollQuestion(Poll poll) { - return Padding( - padding: const EdgeInsets.all(16.0), - child: Text( - poll.question, - style: Theme.of(context).textTheme.titleLarge, - textAlign: TextAlign.center, + Widget _buildInactivePollOption(BuildContext context, Poll poll, + PollOption option, int? selectedOptionId,) { + bool isSelected = option.id == selectedOptionId; + return Container( + margin: const EdgeInsets.all(4.0), // Add some spacing around each button + decoration: BoxDecoration( + color: isSelected ? Colors.grey : Colors.white, + // Use grey for the selected option, white for others + borderRadius: BorderRadius.circular(8.0), + border: + Border.all(color: Colors.grey), // Use grey border for all options + ), + child: Center( + child: Text( + option.answer, + style: const TextStyle( + color: + Colors.black, // Text color remains black to ensure readability + ), + ), + ), + ); + } + + Widget _buildUnansweredPollCard(BuildContext context, Poll poll) { + ThemeData themeData = Theme.of(context); + return Card( + elevation: 1, + shadowColor: themeData.shadowColor, + color: themeData.cardTheme.color, + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(8.0), + side: BorderSide( + color: themeData.inputDecorationTheme.enabledBorder?.borderSide.color + .withOpacity(0.2) ?? + Colors.grey.withOpacity(0.2), + width: 1.0, + ), + ), + child: ClipRRect( + borderRadius: BorderRadius.circular(8.0), + child: Container( + color: themeData.cardColor, + child: Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + _buildPollQuestion(poll), + GridView.builder( + shrinkWrap: true, + physics: const NeverScrollableScrollPhysics(), + // to disable GridView's scrolling + gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount( + crossAxisCount: 2, + childAspectRatio: + 3, // Adjust the aspect ratio to fit the content + ), + itemCount: poll.pollOptions.length, + itemBuilder: (context, index) { + return _buildActivePollOption( + context, poll, poll.pollOptions[index],); + }, + ), + _buildSubmitButton(poll), + ], + ), + ), ), ); } - Widget _buildPollOption(BuildContext context, Poll poll, PollOption option) { - bool isSubmitted = _submittedPolls.contains(poll.id); - return ListTile( - title: Text(option.answer), - leading: Radio( - value: option.id, - groupValue: _selectedOptions[poll.id], - onChanged: isSubmitted - ? null - : (int? value) { - // Disable if submitted - setState(() { - _selectedOptions[poll.id] = value!; - }); - }, + Widget _buildActivePollOption( + BuildContext context, Poll poll, PollOption option,) { + bool isSelected = selectedOptions[poll.id] == option.id; + ThemeData themeData = Theme.of(context); + return GestureDetector( + onTap: () { + setState(() { + selectedOptions[poll.id] = option.id; + }); + }, + child: Container( + margin: const EdgeInsets.all(4.0), // Add some spacing around each button + decoration: BoxDecoration( + color: isSelected ? Colors.blue : Colors.white, + // Change color based on selection + borderRadius: BorderRadius.circular(8.0), + border: Border.all(color: isSelected ? Colors.blue : Colors.grey), + ), + child: Center( + child: Text( + option.answer, + style: TextStyle( + color: isSelected + ? Colors.white + : Colors.black, // Change text color based on selection + ), + ), + ), + ), + ); + } + + Widget _buildPollQuestion(Poll poll) { + return Padding( + padding: const EdgeInsets.all(8.0), + child: Row( + // Center the question since there's no subtitle or trailing widget + children: [ + Expanded( + child: Text( + poll.question, + style: const TextStyle( + fontSize: 16.0, // Match the font size used in _buildHeader + fontWeight: FontWeight + .bold, // Match the font weight used in _buildHeader + ), + textAlign: TextAlign.center, + // Keep text alignment to center as it's a question + maxLines: 2, + // Optional: Use if you want to limit the number of lines for the question + overflow: TextOverflow + .ellipsis, // Optional: Use to handle text overflow + ), + ), + ], ), ); } Widget _buildSubmitButton(Poll poll) { - bool isSubmitted = _submittedPolls.contains(poll.id); + final pollViewModel = ref.read(pollViewModelProvider.notifier); + return Padding( - padding: const EdgeInsets.symmetric(vertical: 16.0), + padding: const EdgeInsets.all(8.0), // Consistent padding with the rest of the layout child: ElevatedButton( - onPressed: !isSubmitted && _selectedOptions.containsKey(poll.id) + onPressed: selectedOptions.containsKey(poll.id) ? () { - // Add poll to submitted set - setState(() { - _submittedPolls.add(poll.id); - }); - - ref - .read(pollViewModelProvider.notifier) - .postPollVote(poll.streamID, _selectedOptions[poll.id]!); - } + final int? pollOptionId = selectedOptions[poll.id]; + if (pollOptionId != null) { + setState(() { + pollViewModel.postPollVote(poll.streamID, pollOptionId); + pollViewModel.postAnsweredPoll(poll.id, pollOptionId); + }); + } + } : null, style: ElevatedButton.styleFrom( - backgroundColor: isSubmitted - ? Colors.grey - : null, // Change color to grey if submitted + backgroundColor: Theme.of(context).primaryColor, // Use the primary color of your theme + foregroundColor: Colors.white, // Text color is white for better contrast + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(8.0), // Less rounded corners for a more rectangular look + ), + padding: const EdgeInsets.symmetric(vertical: 14.0, horizontal: 30.0), // Adjust padding to control the button's shape + minimumSize: const Size(double.infinity, 48), // Ensuring full width and a consistent height + elevation: 2, // Slight elevation for a subtle shadow, adjust as needed + ), + child: const Text( + 'Submit', + style: TextStyle(fontSize: 16), // Adjust font size as needed ), - child: Text(isSubmitted ? 'Submitted' : 'Submit'), ), ); } + } diff --git a/lib/views/chat_view/suggested_streams_list.dart b/lib/views/chat_view/suggested_streams_list.dart index 959e6240..4f4891a3 100644 --- a/lib/views/chat_view/suggested_streams_list.dart +++ b/lib/views/chat_view/suggested_streams_list.dart @@ -2,9 +2,7 @@ import 'package:flutter/material.dart'; import 'package:gocast_mobile/base/networking/api/gocast/api_v2.pb.dart'; import 'package:intl/intl.dart'; - class SuggestedStreamsWidget extends StatelessWidget { - final List suggestedStreams; final Function(Stream) onStreamSelected; @@ -18,17 +16,19 @@ class SuggestedStreamsWidget extends StatelessWidget { Widget build(BuildContext context) { return suggestedStreams.isNotEmpty ? ListView.builder( - itemCount: suggestedStreams.length, - itemBuilder: (context, index) { - final stream = suggestedStreams[index]; - return ListTile( - leading: const Icon(Icons.play_circle_outline), - title: Text(stream.name), - subtitle: Text(DateFormat('dd MMMM yyyy').format(stream.start.toDateTime())), - onTap: () => onStreamSelected(stream), - ); - }, - ) + itemCount: suggestedStreams.length, + itemBuilder: (context, index) { + final stream = suggestedStreams[index]; + return ListTile( + leading: const Icon(Icons.play_circle_outline), + title: Text(stream.name), + subtitle: Text( + DateFormat('dd MMMM yyyy').format(stream.start.toDateTime()), + ), + onTap: () => onStreamSelected(stream), + ); + }, + ) : const Center(child: Text('No other Lectures available')); } } diff --git a/lib/views/components/base_view.dart b/lib/views/components/base_view.dart index a33d0df7..97e160ad 100644 --- a/lib/views/components/base_view.dart +++ b/lib/views/components/base_view.dart @@ -34,6 +34,7 @@ class BaseViewState extends ConsumerState { bool _isTablet(BuildContext context) { return MediaQuery.of(context).size.width >= 600; } + Widget _buildHamburgerMenu(BuildContext context) { final double drawerWidth = MediaQuery.of(context).size.width * 0.5; return Drawer( @@ -49,24 +50,26 @@ class BaseViewState extends ConsumerState { Widget build(BuildContext context) { return Scaffold( key: scaffoldKey, - appBar: widget.customAppBar ?? AppBar( - automaticallyImplyLeading: widget.showLeading, - title: widget.title != null ? Text(widget.title!) : null, - actions: _isTablet(context) - ? [ - IconButton( - icon: const Icon(Icons.settings), - onPressed: () { - scaffoldKey.currentState?.openEndDrawer(); - }, + appBar: widget.customAppBar ?? + AppBar( + automaticallyImplyLeading: widget.showLeading, + title: widget.title != null ? Text(widget.title!) : null, + actions: _isTablet(context) + ? [ + IconButton( + icon: const Icon(Icons.settings), + onPressed: () { + scaffoldKey.currentState?.openEndDrawer(); + }, + ), + ] + : widget.actions, + surfaceTintColor: Colors.transparent, ), - ] - : widget.actions, - surfaceTintColor: Colors.transparent, - ), body: widget.child, - drawer: !_isTablet(context) && widget.customAppBar==null ? _buildHamburgerMenu(context) : null, - endDrawer: _isTablet(context) && widget.customAppBar==null ? _buildHamburgerMenu(context) : null, + endDrawer: _isTablet(context) && widget.customAppBar == null + ? _buildHamburgerMenu(context) + : null, bottomNavigationBar: widget.bottomNavigationBar, onEndDrawerChanged: (isOpen) { if (isOpen) { diff --git a/lib/views/components/custom_search_top_nav_bar.dart b/lib/views/components/custom_search_top_nav_bar.dart index dde3100f..3a898f82 100644 --- a/lib/views/components/custom_search_top_nav_bar.dart +++ b/lib/views/components/custom_search_top_nav_bar.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:gocast_mobile/views/components/Filter_Popup_Menu_Button.dart'; +import 'package:gocast_mobile/views/components/filter_popup_menu_button.dart'; class CustomSearchTopNavBar extends ConsumerWidget implements PreferredSizeWidget { @@ -99,8 +99,10 @@ class CustomSearchTopNavBar extends ConsumerWidget decoration: InputDecoration( border: InputBorder.none, hintText: 'Search', - prefixIcon: Icon(Icons.search, - color: Theme.of(context).inputDecorationTheme.hintStyle?.color,), + prefixIcon: Icon( + Icons.search, + color: Theme.of(context).inputDecorationTheme.hintStyle?.color, + ), hintStyle: Theme.of(context).inputDecorationTheme.hintStyle, contentPadding: const EdgeInsets.symmetric(vertical: 5), hintMaxLines: 1, diff --git a/lib/views/components/custom_search_top_nav_bar_back_button.dart b/lib/views/components/custom_search_top_nav_bar_back_button.dart index 96bbf82b..e6fbae58 100644 --- a/lib/views/components/custom_search_top_nav_bar_back_button.dart +++ b/lib/views/components/custom_search_top_nav_bar_back_button.dart @@ -62,8 +62,10 @@ class CustomSearchTopNavBarWithBackButton extends ConsumerWidget decoration: InputDecoration( border: InputBorder.none, hintText: 'Search', - prefixIcon: Icon(Icons.search, - color: Theme.of(context).inputDecorationTheme.hintStyle?.color,), + prefixIcon: Icon( + Icons.search, + color: Theme.of(context).inputDecorationTheme.hintStyle?.color, + ), hintStyle: Theme.of(context).inputDecorationTheme.hintStyle, contentPadding: const EdgeInsets.symmetric(vertical: 5), hintMaxLines: 1, diff --git a/lib/views/course_view/components/base_card.dart b/lib/views/course_view/components/base_card.dart index 7ae62117..c32f43d5 100644 --- a/lib/views/course_view/components/base_card.dart +++ b/lib/views/course_view/components/base_card.dart @@ -57,7 +57,7 @@ class BaseCard extends StatelessWidget { children: [ Text( title, - style: TextStyle( + style: TextStyle( fontSize: 18.0, fontWeight: FontWeight.bold, color: appTheme.cardTheme.color, diff --git a/lib/views/course_view/components/course_card.dart b/lib/views/course_view/components/course_card.dart index f4587e85..062d0bde 100644 --- a/lib/views/course_view/components/course_card.dart +++ b/lib/views/course_view/components/course_card.dart @@ -1,19 +1,10 @@ -import 'package:fixnum/fixnum.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:flutter_slidable/flutter_slidable.dart'; import 'package:gocast_mobile/base/networking/api/gocast/api_v2.pb.dart'; -import 'package:gocast_mobile/providers.dart'; import 'package:gocast_mobile/views/components/view_all_button.dart'; -import 'package:gocast_mobile/views/video_view/video_player.dart'; import 'package:url_launcher/url_launcher.dart'; -/// Course card view -/// -/// A reusable stateless widget to display a course card. -/// -/// It takes a [title], [tumID] and [path] to display the course details. -/// This widget can be reused for various course sections by providing different -/// titles, subtitles and paths. class CourseCard extends StatelessWidget { final String title; final String tumID; @@ -25,8 +16,10 @@ class CourseCard extends StatelessWidget { //for displaying courses final bool? live; - final int? lastLectureId; final String? semester; + final Course? course; + final Function(Course)? onPinUnpin; + final bool? isPinned; //for displaying livestreams final String? subtitle; @@ -45,21 +38,16 @@ class CourseCard extends StatelessWidget { this.roomName, this.roomNumber, this.viewerCount, - required this.path, + this.path, required this.courseId, required this.onTap, this.live, - this.lastLectureId, this.semester, + this.course, + this.onPinUnpin, + this.isPinned, }); - Future fetchDataAsync(BuildContext context) async { - if (lastLectureId != null) { - final videoViewModelNotifier = ref!.read(videoViewModelProvider.notifier); - videoViewModelNotifier.fetchStream(lastLectureId!); - } - } - @override Widget build(BuildContext context) { ThemeData themeData = Theme.of(context); @@ -74,7 +62,6 @@ class CourseCard extends StatelessWidget { elevation: 1, shadowColor: themeData.shadowColor, color: themeData.cardTheme.color, - // Use card color from theme shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(8.0), side: BorderSide( @@ -88,7 +75,14 @@ class CourseCard extends StatelessWidget { child: ClipRRect( borderRadius: BorderRadius.circular(8.0), child: isCourse - ? _buildCourseCard(themeData, cardWidth, context) + ? _buildCourseCard( + themeData, + cardWidth, + context, + course!, + onPinUnpin!, + isPinned!, + ) : _buildStreamCard( themeData, cardWidth, @@ -130,7 +124,6 @@ class CourseCard extends StatelessWidget { _buildCourseSubtitle(themeData.textTheme), const SizedBox(height: 15), _buildLocation(), - //_buildCourseIsLive(), ], ), ), @@ -145,39 +138,96 @@ class CourseCard extends StatelessWidget { ThemeData themeData, double cardWidth, BuildContext context, + Course course, + Function(Course) onPinUnpin, + bool isPinned, ) { - return IntrinsicHeight( - child: Row( + return Slidable( + key: ValueKey(course.id), + closeOnScroll: true, + endActionPane: ActionPane( + motion: const DrawerMotion(), + dragDismissible: true, children: [ - _buildCourseColor(), - Expanded( - child: Container( - color: themeData.cardColor, - padding: const EdgeInsets.all(8.0), - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - _buildCourseTumID(), - _buildCourseIsLive(), - ], - ), - Padding( - padding: const EdgeInsets.symmetric(vertical: 3.0), - child: _buildCourseTitle(themeData.textTheme), - ), - _buildLastLecture(context), - ], - ), + if (isPinned) + SlidableAction( + autoClose: true, + onPressed: (_) async { + bool confirmUnpin = await _confirmUnpin(context); + if (confirmUnpin) onPinUnpin(course); + }, + backgroundColor: Colors.red, + foregroundColor: Colors.white, + icon: Icons.push_pin_outlined, + label: 'Unpin', + ), + if (!isPinned) + SlidableAction( + autoClose: true, + onPressed: (_) => onPinUnpin(course), + backgroundColor: Colors.blue, + foregroundColor: Colors.white, + icon: Icons.push_pin, + label: 'Pin', ), - ), ], ), + child: IntrinsicHeight( + child: Row( + children: [ + _buildCourseColor(), + Expanded( + child: Container( + color: themeData.cardColor, + padding: const EdgeInsets.all(8.0), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + _buildCourseTumID(), + _buildCourseIsLive(), + ], + ), + Padding( + padding: const EdgeInsets.symmetric(vertical: 3.0), + child: _buildCourseTitle(themeData.textTheme), + ), + ], + ), + ), + ), + ], + ), + ), ); } + Future _confirmUnpin(BuildContext context) async { + return await showDialog( + context: context, + builder: (BuildContext context) { + return AlertDialog( + title: const Text('Confirm Unpin'), + content: + const Text('Are you sure you want to unpin this course?'), + actions: [ + TextButton( + onPressed: () => Navigator.of(context).pop(false), + child: const Text('Cancel'), + ), + TextButton( + onPressed: () => Navigator.of(context).pop(true), + child: const Text('Unpin'), + ), + ], + ); + }, + ) ?? + false; + } + Widget _buildCourseImage() { if (path == null) return const SizedBox(); return Stack( @@ -192,11 +242,6 @@ class CourseCard extends StatelessWidget { ), ), ), - /*Positioned( - bottom: 3, // Adjust this value based on your layout - right: 3, // Adjust this value based on your layout - child: _buildCourseViewerCount(), - ),*/ ], ); } @@ -222,7 +267,6 @@ class CourseCard extends StatelessWidget { size: 20, ), Text(roomName ?? "Location"), - //const SizedBox(width: 2), Transform.scale( scale: 0.6, // Adjust the scale factor as needed child: ViewAllButton(onViewAll: () {}), @@ -249,7 +293,6 @@ class CourseCard extends StatelessWidget { title, overflow: TextOverflow.ellipsis, maxLines: 2, - //if courses are ever no longer displayed as list, check this for overflows softWrap: true, style: textTheme.titleMedium?.copyWith( fontSize: 16, @@ -294,40 +337,6 @@ class CourseCard extends StatelessWidget { ); } - Widget _buildLastLecture(BuildContext context) { - if (lastLectureId == null) return const SizedBox(); - - return ViewAllButton( - icon: Icons.north_east, - onViewAll: _buildLastStream(context, lastLectureId!), - text: 'Last Lecture', - ); - } - - VoidCallback _buildLastStream(BuildContext context, int lastLectureId) { - return () async { - await fetchDataAsync(context); - - final List? lastLectureStream = - ref!.watch(videoViewModelProvider).streams; - - if (lastLectureStream != null || lastLectureStream!.isNotEmpty) { - if (context.mounted) { - Navigator.push( - context, - MaterialPageRoute( - builder: (context) => VideoPlayerPage( - stream: lastLectureStream.first, - ), - ), - ); - } else { - return; - } - } - }; - } - Widget _buildCourseIsLive() { if (live == null) return const SizedBox(); return live! @@ -359,16 +368,6 @@ class CourseCard extends StatelessWidget { } Color _colorPicker() { - /** Colors: - * Informatik - IN: blue - * Mathe - MA: purple - * Chemie - CH - * Physik - PH - * Maschinenwesen - MW - * nothing/ other: gray - * Elektrotechnik - EL - * - */ if (tumID.length < 2) return Colors.grey; switch (tumID.substring(0, 2)) { case 'IN': diff --git a/lib/views/course_view/components/course_section.dart b/lib/views/course_view/components/course_section.dart index 44f7557a..66afb338 100644 --- a/lib/views/course_view/components/course_section.dart +++ b/lib/views/course_view/components/course_section.dart @@ -1,9 +1,9 @@ import 'dart:math'; -import 'package:fixnum/fixnum.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:gocast_mobile/base/networking/api/gocast/api_v2.pb.dart'; +import 'package:gocast_mobile/providers.dart'; import 'package:gocast_mobile/utils/constants.dart'; import 'package:gocast_mobile/views/components/view_all_button.dart'; import 'package:gocast_mobile/views/course_view/components/course_card.dart'; @@ -106,7 +106,7 @@ class CourseSection extends StatelessWidget { : _buildSectionTitle( context, title, - sectionKind == 1 ? Icons.school : null, + sectionKind == 1 ? Icons.school : Icons.public, onViewAll, ), if (sectionKind == 1 || sectionKind == 2) @@ -138,13 +138,16 @@ class CourseSection extends StatelessWidget { AppImages.course2, ]; imagePath = imagePaths[random.nextInt(imagePaths.length)]; - + final userPinned = ref.watch(userViewModelProvider).userPinned ?? []; + final isPinned = userPinned.contains(course); return CourseCard( + course: course, + isPinned: isPinned, + onPinUnpin: (course) => _togglePin(course, isPinned), isCourse: true, ref: ref, title: course.name, tumID: course.tUMOnlineIdentifier, - lastLectureId: course.lastRecordingID, path: imagePath, live: streams.any((stream) => stream.courseID == course.id), semester: @@ -167,6 +170,20 @@ class CourseSection extends StatelessWidget { ); } + Future _togglePin(Course course, bool isPinned) async { + final viewModel = ref.read(userViewModelProvider.notifier); + if (isPinned) { + await viewModel.unpinCourse(course.id); + } else { + await viewModel.pinCourse(course.id); + } + await _refreshPinnedCourses(); + } + + Future _refreshPinnedCourses() async { + await ref.read(userViewModelProvider.notifier).fetchUserPinned(); + } + Widget _buildStreamList(BuildContext context) { return SingleChildScrollView( scrollDirection: Axis.horizontal, @@ -223,10 +240,10 @@ class CourseSection extends StatelessWidget { ? Row( children: [ icon != null - ? const Row( + ? Row( children: [ - Icon(Icons.school), - SizedBox(width: 10), + Icon(icon), + const SizedBox(width: 10), ], ) : const SizedBox(), diff --git a/lib/views/course_view/components/stream_card.dart b/lib/views/course_view/components/stream_card.dart index bf0c0e6c..b23d93f3 100644 --- a/lib/views/course_view/components/stream_card.dart +++ b/lib/views/course_view/components/stream_card.dart @@ -76,16 +76,17 @@ class StreamCardState extends ConsumerState { themeData: themeData, ), _buildThumbnail(themeData), - progressAsyncValue.when( - loading: () => const LinearProgressIndicator(), - error: (e, st) => Text('Error: $e'), - data: (progress) => LinearProgressIndicator( - value: progress.progress, - minHeight: 10.0, - backgroundColor: Colors.grey[300], - valueColor: const AlwaysStoppedAnimation(Colors.blue), - ), - ), + progressAsyncValue.when( + loading: () => const LinearProgressIndicator(), + error: (e, st) => Text('Error: $e'), + data: (progress) => LinearProgressIndicator( + value: progress.progress, + minHeight: 10.0, + backgroundColor: Colors.grey[300], + valueColor: + const AlwaysStoppedAnimation(Colors.blue), + ), + ), ], ), ), diff --git a/lib/views/course_view/courses_overview.dart b/lib/views/course_view/courses_overview.dart index c89b44d4..629addff 100644 --- a/lib/views/course_view/courses_overview.dart +++ b/lib/views/course_view/courses_overview.dart @@ -3,6 +3,7 @@ import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:gocast_mobile/providers.dart'; import 'package:gocast_mobile/views/components/base_view.dart'; import 'package:gocast_mobile/views/course_view/components/course_section.dart'; +import 'package:gocast_mobile/views/course_view/list_courses_view/my_courses_view.dart'; import 'package:gocast_mobile/views/course_view/list_courses_view/public_courses_view.dart'; import 'package:gocast_mobile/views/settings_view/settings_screen_view.dart'; @@ -26,6 +27,7 @@ class CourseOverviewState extends ConsumerState { if (ref.read(userViewModelProvider).user != null) { userViewModelNotifier.fetchUserCourses(); videoViewModelNotifier.fetchLiveNowStreams(); + userViewModelNotifier.fetchUserPinned(); } // Fetch public courses regardless of user's login status userViewModelNotifier.fetchPublicCourses(); @@ -41,74 +43,69 @@ class CourseOverviewState extends ConsumerState { final liveStreams = ref.watch(videoViewModelProvider).liveStreams; bool isTablet = MediaQuery.of(context).size.width >= 600 ? true : false; - - return BaseView( - showLeading: false, - title: 'GoCast', - actions: [ - IconButton( - icon: const Icon(Icons.settings), - onPressed: () => _navigateToScreen( - context, - const SettingsScreen(), + return PopScope( + canPop: false, + child: BaseView( + showLeading: false, + title: 'GoCast', + actions: [ + IconButton( + icon: const Icon(Icons.settings), + onPressed: () => _navigateToScreen( + context, + const SettingsScreen(), + ), ), - ), - ], - child: RefreshIndicator( - onRefresh: () async { - final userViewModelNotifier = - ref.read(userViewModelProvider.notifier); - await userViewModelNotifier.fetchUserCourses(); - await userViewModelNotifier.fetchPublicCourses(); - }, - child: SingleChildScrollView( - child: Column( + ], + child: RefreshIndicator( + onRefresh: _refreshData, + child: ListView( children: [ if (isLoggedIn) + Center( + child: _buildSection( + "Live Now", + 0, + (userCourses ?? []) + (publicCourses ?? []), + liveStreams, + ), + ), + if (isTablet) + Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Expanded( + child: _buildSection( + "My Courses", + 1, + userCourses, + liveStreams, + ), + ), + Expanded( + child: _buildSection( + "Public Courses", + 2, + publicCourses, + liveStreams, + ), + ), + ], + ) + else ...[ _buildSection( - "Live Now", - 0, - (userCourses ?? []) + (publicCourses ?? []), + "My Courses", + 1, + userCourses, liveStreams, ), - isTablet - ? Row( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Expanded( - child: _buildSection( - "My Courses", - 1, - userCourses, - liveStreams, - ), - ), - Expanded( - child: _buildSection( - "Public Courses", - 2, - publicCourses, - liveStreams, - ), - ), - ], - ) - : Column( - children: [ - _buildSection( - "My Courses", - 1, - userCourses, - liveStreams, - ), - _buildSection( - "Public Courses", - 2, - publicCourses, - liveStreams, - ), - ], - ), + _buildSection( + "Public Courses", + 2, + publicCourses, + liveStreams, + ), + ], ], ), ), @@ -121,21 +118,38 @@ class CourseOverviewState extends ConsumerState { ref: ref, sectionTitle: title, sectionKind: sectionKind, - onViewAll: () => Navigator.push( - context, - MaterialPageRoute( - builder: (context) => const PublicCourses(), - ), - ), + onViewAll: () { + switch (title) { + case "My Courses": + _navigateTo(const MyCourses()); + break; + case "Public Courses": + _navigateTo(const PublicCourses()); + break; + } + }, courses: courses ?? [], streams: streams ?? [], ); } + void _navigateTo(Widget page) { + Navigator.push( + context, + MaterialPageRoute(builder: (context) => page), + ); + } + void _navigateToScreen(BuildContext context, Widget screen) { Navigator.push( context, MaterialPageRoute(builder: (context) => screen), ); } + + Future _refreshData() async { + final userViewModelNotifier = ref.read(userViewModelProvider.notifier); + await userViewModelNotifier.fetchUserCourses(); + await userViewModelNotifier.fetchPublicCourses(); + } } diff --git a/lib/views/course_view/list_courses_view/courses_list_view.dart b/lib/views/course_view/list_courses_view/courses_list_view.dart index 2365a1f0..52a4e1f5 100644 --- a/lib/views/course_view/list_courses_view/courses_list_view.dart +++ b/lib/views/course_view/list_courses_view/courses_list_view.dart @@ -1,7 +1,7 @@ -import 'package:fixnum/fixnum.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:gocast_mobile/base/networking/api/gocast/api_v2.pbgrpc.dart'; +import 'package:gocast_mobile/providers.dart'; import 'package:gocast_mobile/utils/constants.dart'; import 'package:gocast_mobile/views/course_view/components/course_card.dart'; @@ -18,31 +18,19 @@ import 'package:gocast_mobile/views/course_view/course_detail_view/course_detail class CoursesList extends ConsumerWidget { final String title; final List courses; - final Future Function() onRefresh; const CoursesList({ super.key, required this.title, required this.courses, - required this.onRefresh, }); @override Widget build(BuildContext context, WidgetRef ref) { - return Scaffold( - body: RefreshIndicator( - onRefresh: onRefresh, - color: Colors.blue, - backgroundColor: Colors.white, - strokeWidth: 2.0, - displacement: 20.0, - child: SingleChildScrollView( - child: courses.isEmpty - ? _buildPlaceholder() - : _buildCourseListView(context), - ), - ), - ); + bool isTablet = MediaQuery.of(context).size.width >= 600; + return courses.isEmpty + ? _buildPlaceholder() + : _buildCourseListView(context, isTablet, ref); } Padding _buildPlaceholder() { @@ -52,27 +40,45 @@ class CoursesList extends ConsumerWidget { ); } - Widget _buildCourseListView(BuildContext context) { - bool isTablet = MediaQuery.of(context).size.width >= 600 ? true : false; - + Widget _buildCourseListView( + BuildContext context, + bool isTablet, + WidgetRef ref, + ) { + final liveStreams = ref.watch(videoViewModelProvider).liveStreams ?? []; + var liveCourseIds = liveStreams.map((stream) => stream.courseID).toSet(); + final userPinned = ref.watch(userViewModelProvider).userPinned ?? []; + List liveCourses = + courses.where((course) => liveCourseIds.contains(course.id)).toList(); return ConstrainedBox( constraints: BoxConstraints(maxHeight: isTablet ? 600 : 400), child: ListView.builder( - physics: const ClampingScrollPhysics(), shrinkWrap: true, + physics: const NeverScrollableScrollPhysics(), scrollDirection: Axis.vertical, itemCount: courses.length, itemBuilder: (BuildContext context, int index) { final course = courses[index]; + final isPinned = userPinned.contains(course); return CourseCard( + course: course, + isPinned: isPinned, + onPinUnpin: (course) { + final userViewModelNotifier = + ref.read(userViewModelProvider.notifier); + if (isPinned) { + userViewModelNotifier.unpinCourse(course.id); + } else { + userViewModelNotifier.pinCourse(course.id); + } + }, title: course.name, tumID: course.tUMOnlineIdentifier, path: 'assets/images/course2.png', - live: course.streams.any((stream) => stream.liveNow), + live: liveCourses.contains(course), courseId: course.id, semester: course.semester.teachingTerm + course.semester.year.toString(), - lastLectureId: course.lastRecordingID, isCourse: true, onTap: () { Navigator.push( diff --git a/lib/views/course_view/list_courses_view/my_courses_view.dart b/lib/views/course_view/list_courses_view/my_courses_view.dart index 0227c018..1ea7ef97 100644 --- a/lib/views/course_view/list_courses_view/my_courses_view.dart +++ b/lib/views/course_view/list_courses_view/my_courses_view.dart @@ -1,3 +1,4 @@ +import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:gocast_mobile/base/networking/api/gocast/api_v2.pbgrpc.dart'; @@ -36,7 +37,6 @@ class MyCoursesState extends ConsumerState { await ref.read(userViewModelProvider.notifier).fetchUserCourses(); } - void filterCoursesBySemester(String selectedSemester) { var allUserCourses = ref.watch(userViewModelProvider).userCourses ?? []; ref @@ -78,16 +78,26 @@ class MyCoursesState extends ConsumerState { onClick: filterCoursesBySemester, ), body: RefreshIndicator( + triggerMode: RefreshIndicatorTriggerMode.onEdge, onRefresh: _refreshMyCourses, - child: CoursesList( - title: 'My Courses', - courses: myCourses, - onRefresh: () async { - await ref.read(userViewModelProvider.notifier).fetchUserCourses(); - }, + child: ListView( + physics: const AlwaysScrollableScrollPhysics(), + scrollDirection: Axis.vertical, + dragStartBehavior: DragStartBehavior.down, + children: [ + CoursesList( + title: 'My Courses', + courses: myCourses, + ), + ], ), ), ); } + @override + void dispose() { + searchController.dispose(); + super.dispose(); + } } diff --git a/lib/views/course_view/list_courses_view/public_courses_view.dart b/lib/views/course_view/list_courses_view/public_courses_view.dart index 16ef6f1b..5aa0c89c 100644 --- a/lib/views/course_view/list_courses_view/public_courses_view.dart +++ b/lib/views/course_view/list_courses_view/public_courses_view.dart @@ -1,3 +1,4 @@ +import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:gocast_mobile/base/networking/api/gocast/api_v2.pbgrpc.dart'; @@ -77,10 +78,20 @@ class PublicCoursesState extends ConsumerState { filterOptions: filterOptions, onClick: filterCoursesBySemester, ), - body: CoursesList( - title: 'Public Courses', - courses: publicCourses, + body: RefreshIndicator( + triggerMode: RefreshIndicatorTriggerMode.onEdge, onRefresh: _refreshPublicCourses, + child: ListView( + physics: const AlwaysScrollableScrollPhysics(), + scrollDirection: Axis.vertical, + dragStartBehavior: DragStartBehavior.down, + children: [ + CoursesList( + courses: publicCourses, + title: 'Public Courses', + ), + ], + ), ), ); } diff --git a/lib/views/course_view/pinned_courses_view/pinned_courses_content_view.dart b/lib/views/course_view/pinned_courses_view/pinned_courses_content_view.dart index f5bbd75c..6f4a83a5 100644 --- a/lib/views/course_view/pinned_courses_view/pinned_courses_content_view.dart +++ b/lib/views/course_view/pinned_courses_view/pinned_courses_content_view.dart @@ -4,7 +4,7 @@ import 'package:gocast_mobile/utils/constants.dart'; import 'package:gocast_mobile/views/components/base_view.dart'; import 'package:gocast_mobile/views/components/custom_search_top_nav_bar.dart'; -import 'package:gocast_mobile/views/course_view/components/base_card.dart'; +import 'package:gocast_mobile/views/course_view/components/course_card.dart'; /// PinnedCoursesContentView /// @@ -16,7 +16,7 @@ import 'package:gocast_mobile/views/course_view/components/base_card.dart'; /// [pinnedCourseCards] - A list of cards representing pinned courses. /// class PinnedCoursesContentView extends ConsumerWidget { - final List pinnedCourseCards; + final List pinnedCourseCards; final CustomSearchTopNavBar customAppBar; const PinnedCoursesContentView({ diff --git a/lib/views/course_view/pinned_courses_view/pinned_courses_view.dart b/lib/views/course_view/pinned_courses_view/pinned_courses_view.dart index b450c04e..a016c2d2 100644 --- a/lib/views/course_view/pinned_courses_view/pinned_courses_view.dart +++ b/lib/views/course_view/pinned_courses_view/pinned_courses_view.dart @@ -3,7 +3,7 @@ import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:gocast_mobile/base/networking/api/gocast/api_v2.pb.dart'; import 'package:gocast_mobile/providers.dart'; import 'package:gocast_mobile/views/components/custom_search_top_nav_bar.dart'; -import 'package:gocast_mobile/views/course_view/pinned_courses_view/pinned_card.dart'; +import 'package:gocast_mobile/views/course_view/components/course_card.dart'; import 'package:gocast_mobile/views/course_view/course_detail_view/course_detail_view.dart'; import 'package:gocast_mobile/views/course_view/pinned_courses_view/pinned_courses_content_view.dart'; import 'package:gocast_mobile/views/video_view/video_player_controller.dart'; @@ -42,42 +42,44 @@ class PinnedCoursesState extends ConsumerState { var userPinned = ref.watch(userViewModelProvider).userPinned ?? []; ref .read(userViewModelProvider.notifier) - .updateSelectedSemester(selectedSemester, userPinned); + .updateSelectedPinnedSemester(selectedSemester, userPinned); } void _searchCourses() { final userViewModelNotifier = ref.read(userViewModelProvider.notifier); final searchInput = searchController.text.toLowerCase(); var displayedCourses = - ref.watch(userViewModelProvider).displayedCourses ?? []; + ref.watch(userViewModelProvider).displayedPinnedCourses ?? []; if (!isSearchInitialized) { temp = List.from(displayedCourses); isSearchInitialized = true; } if (searchInput.isEmpty) { - userViewModelNotifier.updatedDisplayedCourses(temp); + userViewModelNotifier.updatedDisplayedPinnedCourses(temp); isSearchInitialized = false; } else { displayedCourses = displayedCourses.where((course) { return course.name.toLowerCase().contains(searchInput) || course.slug.toLowerCase().contains(searchInput); }).toList(); - userViewModelNotifier.updatedDisplayedCourses(displayedCourses); + userViewModelNotifier.updatedDisplayedPinnedCourses(displayedCourses); } } @override Widget build(BuildContext context) { - final userPinned = ref.watch(userViewModelProvider).displayedCourses ?? []; + final userPinned = + ref.watch(userViewModelProvider).displayedPinnedCourses ?? []; + final liveStreams = ref.watch(videoViewModelProvider).liveStreams ?? []; + var liveCourseIds = liveStreams.map((stream) => stream.courseID).toSet(); + List liveCourses = userPinned + .where((course) => liveCourseIds.contains(course.id)) + .toList(); final filterOptions = ref.watch(userViewModelProvider).semestersAsString ?? []; return Scaffold( body: RefreshIndicator( onRefresh: _refreshPinnedCourses, - color: Colors.blue, - backgroundColor: Colors.white, - strokeWidth: 2.0, - displacement: 20.0, child: PinnedCoursesContentView( customAppBar: CustomSearchTopNavBar( searchController: searchController, @@ -88,12 +90,17 @@ class PinnedCoursesState extends ConsumerState { pinnedCourseCards: userPinned.map((course) { final isPinned = userPinned.any((pinnedCourse) => pinnedCourse.id == course.id); - return PinnedCourseCard( - imageName: 'assets/images/course1.png', + return CourseCard( course: course, - onTap: () => _handleCourseTap(course, context), isPinned: isPinned, - onPinToggle: () => _togglePin(course, isPinned), + onPinUnpin: (course) => _togglePin(course, isPinned), + live: liveCourses.contains(course), + isCourse: true, + title: course.name, + courseId: course.id, + subtitle: course.tUMOnlineIdentifier, + tumID: course.tUMOnlineIdentifier, + onTap: () => _handleCourseTap(course, context), ); }).toList(), ), diff --git a/lib/views/notifications_view/notifications_screen_view.dart b/lib/views/notifications_view/notifications_screen_view.dart index a5a252ca..42c44bfb 100644 --- a/lib/views/notifications_view/notifications_screen_view.dart +++ b/lib/views/notifications_view/notifications_screen_view.dart @@ -34,8 +34,10 @@ class NotificationsScreen extends ConsumerWidget { child: pushNotifications.isEmpty && featureNotifications.isEmpty && bannerAlerts.isEmpty - ? _buildPlaceholder() + ? _buildPlaceholder(context) : ListView( + physics: const AlwaysScrollableScrollPhysics(), + scrollDirection: Axis.vertical, children: [ _buildSectionHeader('Banner Alerts'), for (var alert in bannerAlerts) _buildBannerAlert(alert), @@ -51,10 +53,32 @@ class NotificationsScreen extends ConsumerWidget { ); } - Padding _buildPlaceholder() { - return const Padding( + Padding _buildPlaceholder(BuildContext context) { + return Padding( padding: AppPadding.sectionPadding, - child: Center(child: Text('No Notifications found.')), + child: Center( + child: SingleChildScrollView( + physics: const AlwaysScrollableScrollPhysics(), + child: ConstrainedBox( + constraints: BoxConstraints( + minHeight: MediaQuery.of(context).size.height - + MediaQuery.of(context).padding.top - + MediaQuery.of(context).padding.bottom - + kToolbarHeight, + ), + child: const IntrinsicHeight( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Expanded( + child: Center(child: Text('No Notifications found.')), + ), + ], + ), + ), + ), + ), + ), ); } diff --git a/lib/views/settings_view/settings_screen_view.dart b/lib/views/settings_view/settings_screen_view.dart index 14ec2e1d..54bf3e1b 100644 --- a/lib/views/settings_view/settings_screen_view.dart +++ b/lib/views/settings_view/settings_screen_view.dart @@ -143,21 +143,27 @@ class _SettingsScreenState extends ConsumerState { ListTile( title: const Text('System Default'), onTap: () { - ref.read(settingViewModelProvider.notifier).saveThemePreference('system', ref); + ref + .read(settingViewModelProvider.notifier) + .saveThemePreference('system', ref); Navigator.pop(context); }, ), ListTile( title: const Text('Dark Mode'), onTap: () { - ref.read(settingViewModelProvider.notifier).saveThemePreference('dark', ref); + ref + .read(settingViewModelProvider.notifier) + .saveThemePreference('dark', ref); Navigator.pop(context); }, ), ListTile( title: const Text('Light Mode'), onTap: () { - ref.read(settingViewModelProvider.notifier).saveThemePreference('light', ref); + ref + .read(settingViewModelProvider.notifier) + .saveThemePreference('light', ref); Navigator.pop(context); }, ), @@ -167,6 +173,7 @@ class _SettingsScreenState extends ConsumerState { }, ); } + ListTile _buildProfileTile(userState) { final settingState = ref.watch(settingViewModelProvider); final preferredNameSetting = settingState.userSettings?.firstWhere( diff --git a/lib/views/video_view/video_player.dart b/lib/views/video_view/video_player.dart index 86088b8c..5f055679 100644 --- a/lib/views/video_view/video_player.dart +++ b/lib/views/video_view/video_player.dart @@ -1,5 +1,6 @@ import 'dart:async'; +import 'package:connectivity_plus/connectivity_plus.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:gocast_mobile/base/networking/api/gocast/api_v2.pb.dart'; @@ -73,7 +74,9 @@ class VideoPlayerPageState extends ConsumerState { await ref .read(courseViewModelProvider.notifier) .getCourseWithID(widget.stream.courseID); - Course? course = ref.read(courseViewModelProvider).course; + Course? course = ref + .read(courseViewModelProvider) + .course; if (course != null) { if ((course.chatEnabled || course.vodChatEnabled) && widget.stream.chatEnabled) { @@ -102,7 +105,9 @@ class VideoPlayerPageState extends ConsumerState { Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: Text(widget.stream.name)), - body: ref.read(videoViewModelProvider).isLoading + body: ref + .read(videoViewModelProvider) + .isLoading ? const Center(child: CircularProgressIndicator()) : _buildVideoLayout(), ); @@ -144,10 +149,12 @@ class VideoPlayerPageState extends ConsumerState { // Seek to the last progress. Future _seekToLastProgress() async { Progress progress = - ref.read(videoViewModelProvider).progress ?? Progress(progress: 0.0); + ref + .read(videoViewModelProvider) + .progress ?? Progress(progress: 0.0); final position = Duration( seconds: (progress.progress * - _controllerManager.videoPlayerController.value.duration.inSeconds) + _controllerManager.videoPlayerController.value.duration.inSeconds) .round(), ); await _controllerManager.videoPlayerController.seekTo(position); @@ -212,7 +219,9 @@ class VideoPlayerPageState extends ConsumerState { } void _switchPlaylist(String newPlaylistUrl) async { - if (ref.read(videoViewModelProvider).videoSource == newPlaylistUrl) { + if (ref + .read(videoViewModelProvider) + .videoSource == newPlaylistUrl) { Logger().i("Already displaying $newPlaylistUrl"); return; } @@ -256,37 +265,131 @@ class VideoPlayerPageState extends ConsumerState { }); } - void _downloadVideo(Stream stream,String type) { - // Extract the "Combined" download URL from the Stream object + Future _downloadVideo(Stream stream, String type) async { + // Extract the "Combined" download URL from the Stream object + bool canDownload = await _handleDownloadConnectivity(stream, type); + if (!canDownload) return; // Exit if download should not proceed + String? downloadUrl; for (var download in stream.downloads) { if (download.friendlyName == type) { - downloadUrl = download.downloadURL; + downloadUrl = download.downloadURL; break; } } - //combinedDownloadUrl="https://file-examples.com/storage/fe5048eb7365a64ba96daa9/2017/04/file_example_MP4_480_1_5MG.mp4"; + //downloadUrl="https://file-examples.com/storage/fed61549c865b2b5c9768b5/2017/04/file_example_MP4_480_1_5MG.mp4"; // Check if the Combined URL is found if (downloadUrl == null) { + if (!mounted) return; ScaffoldMessenger.of(context).showSnackBar( - SnackBar(content: Text('Download type "$type" not available for this lecture')), + SnackBar(content: Text( + 'Download type "$type" not available for this lecture',),), ); return; } // Use the extracted URL for downloading String fileName = "stream.mp4"; + if (!mounted) return; ScaffoldMessenger.of(context).showSnackBar( - const SnackBar(content: Text('Downloading Video')), + const SnackBar(content: Text('Starting download...')), ); // Call the download function from the StreamViewModel + ref .read(downloadViewModelProvider.notifier) - .downloadVideo(downloadUrl, stream.id, fileName) + .downloadVideo(downloadUrl, stream.id, fileName,) .then((localPath) { - ScaffoldMessenger.of(context).showSnackBar( - const SnackBar(content: Text('Video Downloaded')), - ); + if (localPath.isNotEmpty) { + // Download successful + ScaffoldMessenger.of(context).showSnackBar( + const SnackBar(content: Text('Video Downloaded')), + ); + } else { + // Download failed, but not due to Wi-Fi (since it would throw an exception) + ScaffoldMessenger.of(context).showSnackBar( + const SnackBar(content: Text('Download failed')), + ); + } }); } + + Future _showDownloadConfirmationDialog() async { + return await showDialog( + context: context, + barrierDismissible: false, + builder: (BuildContext dialogContext) { + return AlertDialog( + title: const Text("Download Video"), + content: const Text( + "You are on mobile data. Would you like to download the video over mobile data?",), + actions: [ + TextButton( + child: const Text("No"), + onPressed: () { + Navigator.of(dialogContext).pop(false); + }, + ), + TextButton( + child: const Text("Yes"), + onPressed: () { + Navigator.of(dialogContext).pop(true); + }, + ), + ], + ); + }, + ) ?? false; // If dialog is dismissed, return false + } + void _showMobileDataNotAllowedDialog() { + showDialog( + context: context, + barrierDismissible: false, // User must tap a button for the dialog to close + builder: (BuildContext dialogContext) { + return AlertDialog( + title: const Text("Download Not Allowed"), + content: const Text( + "You are currently on mobile data. Video cannot be downloaded over mobile data due to your settings.",), + actions: [ + TextButton( + child: const Text("OK"), + onPressed: () { + Navigator.of(dialogContext).pop(); // Dismiss dialog + }, + ), + ], + ); + }, + ); + } + + Future _handleDownloadConnectivity(Stream stream, String type) async { + final isDownloadWithWifiOnly = ref + .watch(settingViewModelProvider) + .isDownloadWithWifiOnly; + + var connectivityResult = await (Connectivity().checkConnectivity()); + + // If 'Download Over Wi-Fi Only' is enabled and connected to mobile, show a dialog + if (connectivityResult == ConnectivityResult.mobile && isDownloadWithWifiOnly) { + if (!mounted) return false; + _showMobileDataNotAllowedDialog(); + return false; + } + + // If on mobile data and 'Download Over Wi-Fi Only' is disabled, ask for confirmation + if (connectivityResult == ConnectivityResult.mobile && !isDownloadWithWifiOnly) { + bool shouldProceed = await _showDownloadConfirmationDialog(); + if (!mounted) return false; + if (!shouldProceed) { + ScaffoldMessenger.of(context).showSnackBar( + const SnackBar(content: Text('Download cancelled')), + ); + return false; + } + } + + return true; // Proceed with download if all checks pass + } + } diff --git a/lib/views/video_view/video_player_controller.dart b/lib/views/video_view/video_player_controller.dart index 4172d1dd..94cf3028 100644 --- a/lib/views/video_view/video_player_controller.dart +++ b/lib/views/video_view/video_player_controller.dart @@ -76,7 +76,6 @@ class VideoPlayerControllerManager { ); } - List _getAdditionalOptions() { List items = []; if (currentStream.hasPlaylistUrl()) { @@ -185,8 +184,8 @@ class VideoPlayerControllerManager { List _filteredPlaybackSpeeds() { final playbackSpeeds = _getPlaybackSpeeds(); var filteredSpeeds = playbackSpeeds.where((speed) => speed <= 2.0).toList(); - return filteredSpeeds.isEmpty ? [0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2] : filteredSpeeds; + return filteredSpeeds.isEmpty + ? [0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2] + : filteredSpeeds; } - - } diff --git a/proto/gocast/api_v2.proto b/proto/gocast/api_v2.proto index fe5d58b7..6d667c7a 100644 --- a/proto/gocast/api_v2.proto +++ b/proto/gocast/api_v2.proto @@ -671,7 +671,7 @@ message GetUserCoursesRequest { message GetUserPinnedRequest { uint32 year = 1; - string term = 2; + string term = 2; uint32 limit = 3; uint32 skip = 4; } diff --git a/pubspec.lock b/pubspec.lock index a33f0521..29c2264d 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -81,6 +81,22 @@ packages: url: "https://pub.dev" source: hosted version: "1.18.0" + connectivity_plus: + dependency: "direct main" + description: + name: connectivity_plus + sha256: "224a77051d52a11fbad53dd57827594d3bd24f945af28bd70bab376d68d437f0" + url: "https://pub.dev" + source: hosted + version: "5.0.2" + connectivity_plus_platform_interface: + dependency: transitive + description: + name: connectivity_plus_platform_interface + sha256: cf1d1c28f4416f8c654d7dc3cd638ec586076255d407cef3ddbdaf178272a71a + url: "https://pub.dev" + source: hosted + version: "1.2.4" convert: dependency: transitive description: @@ -302,6 +318,14 @@ packages: url: "https://pub.dev" source: hosted version: "3.0.0" + flutter_slidable: + dependency: "direct main" + description: + name: flutter_slidable + sha256: "19ed4813003a6ff4e9c6bcce37e792a2a358919d7603b2b31ff200229191e44c" + url: "https://pub.dev" + source: hosted + version: "3.0.1" flutter_test: dependency: "direct dev" description: flutter @@ -424,6 +448,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.0.0" + nm: + dependency: transitive + description: + name: nm + sha256: "2c9aae4127bdc8993206464fcc063611e0e36e72018696cd9631023a31b24254" + url: "https://pub.dev" + source: hosted + version: "0.5.0" package_info_plus: dependency: transitive description: @@ -737,10 +769,10 @@ packages: dependency: "direct main" description: name: url_launcher - sha256: d25bb0ca00432a5e1ee40e69c36c85863addf7cc45e433769d61bed3fe81fd96 + sha256: c512655380d241a337521703af62d2c122bf7b77a46ff7dd750092aa9433499c url: "https://pub.dev" source: hosted - version: "6.2.3" + version: "6.2.4" url_launcher_android: dependency: transitive description: @@ -881,10 +913,10 @@ packages: dependency: transitive description: name: webview_flutter_android - sha256: "161af93c2abaf94ef2192bffb53a3658b2d721a3bf99b69aa1e47814ee18cc96" + sha256: "4ea3c4e1b8ed590162b15b8a61b41b1ef3ff179a314627c16ce40c086d94b8af" url: "https://pub.dev" source: hosted - version: "3.13.2" + version: "3.14.0" webview_flutter_platform_interface: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 710b8d21..b21b954e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -7,6 +7,7 @@ environment: sdk: '>=3.1.5 <4.0.0' dependencies: + connectivity_plus: ^5.0.2 tuple: ^2.0.1 bloc: ^8.1.2 cookie_jar: ^4.0.8 @@ -24,6 +25,7 @@ dependencies: grpc: ^3.2.4 dio: ^5.4.0 fixnum: ^1.1.0 + flutter_slidable: ^3.0.1 protobuf: ^3.1.0 logger: ^2.0.2+1 flutter_secure_storage: ^9.0.0