From e57a1f296eb17ae8472e7de37ea4da42d312d1fd Mon Sep 17 00:00:00 2001 From: zk Date: Thu, 12 Mar 2026 18:52:42 +0000 Subject: [PATCH] feat: pg services module and just fmt on gen --- Justfile-gen | 4 +- biome.jsonc | 11 +- typescript/db-migration-engine/src/index.ts | 11 +- typescript/db/src/generated/Database.ts | 2 +- typescript/db/src/generated/index.ts | 534 +++- typescript/db/src/generated/public/Account.ts | 36 +- .../db/src/generated/public/AccountBadge.ts | 10 +- .../src/generated/public/AccountBadgeKind.ts | 5 +- .../src/generated/public/AccountFollowing.ts | 8 +- .../src/generated/public/AccountSettings.ts | 16 +- .../generated/public/AccountUsernameChange.ts | 18 +- typescript/db/src/generated/public/Action.ts | 24 +- .../db/src/generated/public/ActionResult.ts | 5 +- .../db/src/generated/public/AuthLevel.ts | 5 +- .../src/generated/public/BmsCourseLookup.ts | 16 +- typescript/db/src/generated/public/Chart.ts | 24 +- .../src/generated/public/ChartLeaderboard.ts | 40 +- .../db/src/generated/public/ChartVersion.ts | 8 +- .../src/generated/public/ClassAchievement.ts | 24 +- .../db/src/generated/public/CronTask.ts | 14 +- .../src/generated/public/CronTaskExecution.ts | 22 +- typescript/db/src/generated/public/Folder.ts | 18 +- .../src/generated/public/FolderSearchTerm.ts | 12 +- .../db/src/generated/public/FolderView.ts | 12 +- typescript/db/src/generated/public/Game.ts | 48 +- .../db/src/generated/public/GameGroup.ts | 36 +- .../db/src/generated/public/GameRival.ts | 12 +- .../db/src/generated/public/GameSettings.ts | 24 +- .../generated/public/GameSettingsShowcase.ts | 16 +- .../db/src/generated/public/GameStats.ts | 14 +- .../src/generated/public/GameStatsSnapshot.ts | 24 +- typescript/db/src/generated/public/Goal.ts | 14 +- typescript/db/src/generated/public/GoalSub.ts | 28 +- typescript/db/src/generated/public/Import.ts | 24 +- .../db/src/generated/public/ImportClass.ts | 18 +- .../db/src/generated/public/ImportError.ts | 12 +- .../db/src/generated/public/ImportGame.ts | 10 +- .../db/src/generated/public/ImportGoal.ts | 32 +- .../db/src/generated/public/ImportLock.ts | 10 +- .../db/src/generated/public/ImportQuest.ts | 20 +- .../db/src/generated/public/ImportSession.ts | 18 +- .../db/src/generated/public/ImportTiming.ts | 34 +- .../db/src/generated/public/ImportTracker.ts | 22 +- .../db/src/generated/public/ImportType.ts | 82 +- .../db/src/generated/public/InviteLock.ts | 10 +- .../db/src/generated/public/JobQueue.ts | 20 +- .../db/src/generated/public/Migration.ts | 14 +- .../db/src/generated/public/Notification.ts | 18 +- .../db/src/generated/public/OrphanChart.ts | 12 +- .../src/generated/public/OrphanChartUser.ts | 10 +- .../db/src/generated/public/OrphanScore.ts | 20 +- typescript/db/src/generated/public/Pb.ts | 36 +- .../db/src/generated/public/PbComposedFrom.ts | 10 +- .../generated/public/PrivAccountCredential.ts | 10 +- .../db/src/generated/public/PrivApiClient.ts | 36 +- .../db/src/generated/public/PrivApiToken.ts | 34 +- .../db/src/generated/public/PrivInvite.ts | 16 +- .../generated/public/PrivOauth2AuthToken.ts | 14 +- .../public/PrivPasswordResetToken.ts | 14 +- .../src/generated/public/PrivSvcCgCardInfo.ts | 16 +- .../db/src/generated/public/PrivSvcFerCard.ts | 12 +- .../generated/public/PrivSvcKaiAuthToken.ts | 16 +- .../generated/public/PrivSvcMytCardInfo.ts | 12 +- .../generated/public/PrivVerifyEmailToken.ts | 14 +- .../db/src/generated/public/PublicSchema.ts | 268 +- typescript/db/src/generated/public/Quest.ts | 14 +- .../db/src/generated/public/QuestSub.ts | 20 +- .../db/src/generated/public/Questline.ts | 12 +- .../db/src/generated/public/QuestlineQuest.ts | 12 +- typescript/db/src/generated/public/Score.ts | 36 +- .../db/src/generated/public/ScoreBlacklist.ts | 14 +- typescript/db/src/generated/public/Session.ts | 26 +- typescript/db/src/generated/public/Song.ts | 16 +- .../db/src/generated/public/SongAltTitle.ts | 12 +- .../db/src/generated/public/SongSearchTerm.ts | 12 +- .../db/src/generated/public/SvcFerSettings.ts | 8 +- .../generated/public/SvcKshookSv6cSettings.ts | 8 +- typescript/db/src/generated/public/Table.ts | 18 +- .../db/src/generated/public/TableFolder.ts | 10 +- typescript/seeds-scripts/personal/en-uuid.js | 3 +- typescript/server/src/lib/setup/config.ts | 12 +- .../proto/generated/cards/cards_grpc_pb.d.ts | 24 +- .../proto/generated/cards/cards_grpc_pb.js | 55 +- .../src/proto/generated/cards/cards_pb.d.ts | 122 +- .../src/proto/generated/cards/cards_pb.js | 690 +++-- .../generated/chunithm/common_grpc_pb.js | 2 +- .../proto/generated/chunithm/common_pb.d.ts | 77 +- .../src/proto/generated/chunithm/common_pb.js | 110 +- .../generated/chunithm/playlog_grpc_pb.js | 2 +- .../proto/generated/chunithm/playlog_pb.d.ts | 153 +- .../proto/generated/chunithm/playlog_pb.js | 813 +++--- .../generated/chunithm/user_grpc_pb.d.ts | 23 +- .../proto/generated/chunithm/user_grpc_pb.js | 57 +- .../src/proto/generated/chunithm/user_pb.d.ts | 102 +- .../src/proto/generated/chunithm/user_pb.js | 553 ++-- .../proto/generated/maimai/common_grpc_pb.js | 2 +- .../src/proto/generated/maimai/common_pb.d.ts | 75 +- .../src/proto/generated/maimai/common_pb.js | 108 +- .../proto/generated/maimai/playlog_grpc_pb.js | 2 +- .../proto/generated/maimai/playlog_pb.d.ts | 173 +- .../src/proto/generated/maimai/playlog_pb.js | 931 +++---- .../proto/generated/maimai/user_grpc_pb.d.ts | 23 +- .../proto/generated/maimai/user_grpc_pb.js | 57 +- .../src/proto/generated/maimai/user_pb.d.ts | 102 +- .../src/proto/generated/maimai/user_pb.js | 553 ++-- .../proto/generated/ongeki/common_grpc_pb.js | 2 +- .../src/proto/generated/ongeki/common_pb.d.ts | 91 +- .../src/proto/generated/ongeki/common_pb.js | 128 +- .../proto/generated/ongeki/playlog_grpc_pb.js | 2 +- .../proto/generated/ongeki/playlog_pb.d.ts | 411 +-- .../src/proto/generated/ongeki/playlog_pb.js | 2211 +++++++-------- .../proto/generated/ongeki/user_grpc_pb.d.ts | 23 +- .../proto/generated/ongeki/user_grpc_pb.js | 57 +- .../src/proto/generated/ongeki/user_pb.d.ts | 102 +- .../src/proto/generated/ongeki/user_pb.js | 553 ++-- .../proto/generated/wacca/common_grpc_pb.js | 2 +- .../src/proto/generated/wacca/common_pb.d.ts | 158 +- .../src/proto/generated/wacca/common_pb.js | 642 ++--- .../proto/generated/wacca/user_grpc_pb.d.ts | 45 +- .../src/proto/generated/wacca/user_grpc_pb.js | 101 +- .../src/proto/generated/wacca/user_pb.d.ts | 436 +-- .../src/proto/generated/wacca/user_pb.js | 2385 ++++++++--------- .../server/src/scripts/load-seeds-pg.ts | 519 +--- typescript/server/src/services/pg/db.ts | 17 + typescript/server/src/services/pg/seeds.ts | 519 ++++ 125 files changed, 7758 insertions(+), 7677 deletions(-) create mode 100644 typescript/server/src/services/pg/db.ts create mode 100644 typescript/server/src/services/pg/seeds.ts diff --git a/Justfile-gen b/Justfile-gen index 891bdb85c..71889277f 100644 --- a/Justfile-gen +++ b/Justfile-gen @@ -3,7 +3,9 @@ gen: gen-kanel gen-proto # Generate kanel types from the postgres definitions in Tachi. gen-kanel: (db-reset "templatedb") bun run kanel -d "{{ POSTGRES_URL }}/templatedb" -c db/kanel_config.js + just fmt # Generate protobuf types from the proto definitions in the server gen-proto: - bun run --filter tachi-server gen-proto \ No newline at end of file + bun run --filter tachi-server gen-proto + just fmt \ No newline at end of file diff --git a/biome.jsonc b/biome.jsonc index e921abd9b..d5f8d5283 100644 --- a/biome.jsonc +++ b/biome.jsonc @@ -8,12 +8,11 @@ "files": { "includes": [ "**", - "!db/src/generated", - "!client/build", - "!dist", - "!vendor", - "!seeds/collections", - "!server/src/test-utils/test-data" + "!typescript/db/src/generated", + "!typescript/client/build", + "!typescript-vendor", + "!db/seeds", + "!typescript/server/src/test-utils/test-data" ] }, "vcs": { diff --git a/typescript/db-migration-engine/src/index.ts b/typescript/db-migration-engine/src/index.ts index fa06207c8..5cf5742bb 100644 --- a/typescript/db-migration-engine/src/index.ts +++ b/typescript/db-migration-engine/src/index.ts @@ -187,7 +187,9 @@ export async function applyMigrations( ); } - console.log(`[migrate] Applying ${migration.version} — ${migration.description}...`); + console.log( + `[migrate] Applying ${migration.version} — ${migration.description}...`, + ); const start = process.hrtime.bigint(); @@ -340,9 +342,10 @@ export async function revertLastMigration( try { await client.query(downSql); - await client.query(`DELETE FROM "_migration" WHERE version = $1 AND success = true`, [ - latestVersion, - ]); + await client.query( + `DELETE FROM "_migration" WHERE version = $1 AND success = true`, + [latestVersion], + ); await client.query("COMMIT"); const elapsedUs = (process.hrtime.bigint() - start) / 1000n; diff --git a/typescript/db/src/generated/Database.ts b/typescript/db/src/generated/Database.ts index 2fa99407d..8fa64f8c7 100644 --- a/typescript/db/src/generated/Database.ts +++ b/typescript/db/src/generated/Database.ts @@ -1,7 +1,7 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { default as PublicSchema } from './public/PublicSchema'; +import type { default as PublicSchema } from "./public/PublicSchema"; type Database = PublicSchema; diff --git a/typescript/db/src/generated/index.ts b/typescript/db/src/generated/index.ts index d596da09a..aa249b13a 100644 --- a/typescript/db/src/generated/index.ts +++ b/typescript/db/src/generated/index.ts @@ -1,78 +1,462 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -export { type priv_svc_cg_card_info_service, type default as PrivSvcCgCardInfoTable, type PrivSvcCgCardInfo, type NewPrivSvcCgCardInfo, type PrivSvcCgCardInfoUpdate } from './public/PrivSvcCgCardInfo'; -export { type class_achievement_row_id, type default as ClassAchievementTable, type ClassAchievement, type NewClassAchievement, type ClassAchievementUpdate } from './public/ClassAchievement'; -export { type account_id, type default as AccountTable, type Account, type NewAccount, type AccountUpdate } from './public/Account'; -export { type import_tracker_import_id, type default as ImportTrackerTable, type ImportTracker, type NewImportTracker, type ImportTrackerUpdate } from './public/ImportTracker'; -export { type default as SvcFerSettingsTable, type SvcFerSettings, type NewSvcFerSettings, type SvcFerSettingsUpdate } from './public/SvcFerSettings'; -export { type default as InviteLockTable, type InviteLock, type NewInviteLock, type InviteLockUpdate } from './public/InviteLock'; -export { type orphan_chart_id, type default as OrphanChartTable, type OrphanChart, type NewOrphanChart, type OrphanChartUpdate } from './public/OrphanChart'; -export { type game_rival_game, type default as GameRivalTable, type GameRival, type NewGameRival, type GameRivalUpdate } from './public/GameRival'; -export { type goal_id, type default as GoalTable, type Goal, type NewGoal, type GoalUpdate } from './public/Goal'; -export { type game_settings_game, type default as GameSettingsTable, type GameSettings, type NewGameSettings, type GameSettingsUpdate } from './public/GameSettings'; -export { type import_quest_row_id, type default as ImportQuestTable, type ImportQuest, type NewImportQuest, type ImportQuestUpdate } from './public/ImportQuest'; -export { type cron_task_execution_id, type default as CronTaskExecutionTable, type CronTaskExecution, type NewCronTaskExecution, type CronTaskExecutionUpdate } from './public/CronTaskExecution'; -export { type notification_row_id, type default as NotificationTable, type Notification, type NewNotification, type NotificationUpdate } from './public/Notification'; -export { type default as ImportLockTable, type ImportLock, type NewImportLock, type ImportLockUpdate } from './public/ImportLock'; -export { type score_blacklist_row_id, type default as ScoreBlacklistTable, type ScoreBlacklist, type NewScoreBlacklist, type ScoreBlacklistUpdate } from './public/ScoreBlacklist'; -export { type default as TableFolderTable, type TableFolder, type NewTableFolder, type TableFolderUpdate } from './public/TableFolder'; -export { type game_stats_game, type default as GameStatsTable, type GameStats, type NewGameStats, type GameStatsUpdate } from './public/GameStats'; -export { type priv_oauth2_auth_token_token, type default as PrivOauth2AuthTokenTable, type PrivOauth2AuthToken, type NewPrivOauth2AuthToken, type PrivOauth2AuthTokenUpdate } from './public/PrivOauth2AuthToken'; -export { type import_session_row_id, type default as ImportSessionTable, type ImportSession, type NewImportSession, type ImportSessionUpdate } from './public/ImportSession'; -export { type priv_svc_fer_card_card_id, type default as PrivSvcFerCardTable, type PrivSvcFerCard, type NewPrivSvcFerCard, type PrivSvcFerCardUpdate } from './public/PrivSvcFerCard'; -export { type default as PbComposedFromTable, type PbComposedFrom, type NewPbComposedFrom, type PbComposedFromUpdate } from './public/PbComposedFrom'; -export { type bms_course_lookup_md5sums, type default as BmsCourseLookupTable, type BmsCourseLookup, type NewBmsCourseLookup, type BmsCourseLookupUpdate } from './public/BmsCourseLookup'; -export { type song_search_term_search_term, type default as SongSearchTermTable, type SongSearchTerm, type NewSongSearchTerm, type SongSearchTermUpdate } from './public/SongSearchTerm'; -export { type import_game_game, type default as ImportGameTable, type ImportGame, type NewImportGame, type ImportGameUpdate } from './public/ImportGame'; -export { type import_goal_row_id, type default as ImportGoalTable, type ImportGoal, type NewImportGoal, type ImportGoalUpdate } from './public/ImportGoal'; -export { type default as OrphanChartUserTable, type OrphanChartUser, type NewOrphanChartUser, type OrphanChartUserUpdate } from './public/OrphanChartUser'; -export { type priv_verify_email_token_token, type default as PrivVerifyEmailTokenTable, type PrivVerifyEmailToken, type NewPrivVerifyEmailToken, type PrivVerifyEmailTokenUpdate } from './public/PrivVerifyEmailToken'; -export { type priv_invite_code, type default as PrivInviteTable, type PrivInvite, type NewPrivInvite, type PrivInviteUpdate } from './public/PrivInvite'; -export { type session_id, type default as SessionTable, type Session, type NewSession, type SessionUpdate } from './public/Session'; -export { type priv_password_reset_token_token, type default as PrivPasswordResetTokenTable, type PrivPasswordResetToken, type NewPrivPasswordResetToken, type PrivPasswordResetTokenUpdate } from './public/PrivPasswordResetToken'; -export { type song_id, type default as SongTable, type Song, type NewSong, type SongUpdate } from './public/Song'; -export { type account_username_change_row_id, type default as AccountUsernameChangeTable, type AccountUsernameChange, type NewAccountUsernameChange, type AccountUsernameChangeUpdate } from './public/AccountUsernameChange'; -export { type default as MigrationTable, type Migration, type NewMigration, type MigrationUpdate } from './public/Migration'; -export { type account_badge_badge, type default as AccountBadgeTable, type AccountBadge, type NewAccountBadge, type AccountBadgeUpdate } from './public/AccountBadge'; -export { type action_row_id, type default as ActionTable, type Action, type NewAction, type ActionUpdate } from './public/Action'; -export { type priv_svc_kai_auth_token_service, type default as PrivSvcKaiAuthTokenTable, type PrivSvcKaiAuthToken, type NewPrivSvcKaiAuthToken, type PrivSvcKaiAuthTokenUpdate } from './public/PrivSvcKaiAuthToken'; -export { type chart_id, type default as ChartTable, type Chart, type NewChart, type ChartUpdate } from './public/Chart'; -export { type game_settings_showcase_game, type default as GameSettingsShowcaseTable, type GameSettingsShowcase, type NewGameSettingsShowcase, type GameSettingsShowcaseUpdate } from './public/GameSettingsShowcase'; -export { type default as AccountFollowingTable, type AccountFollowing, type NewAccountFollowing, type AccountFollowingUpdate } from './public/AccountFollowing'; -export { type import_id, type default as ImportTable, type Import, type NewImport, type ImportUpdate } from './public/Import'; -export { type folder_id, type default as FolderTable, type Folder, type NewFolder, type FolderUpdate } from './public/Folder'; -export { type default as PrivAccountCredentialTable, type PrivAccountCredential, type NewPrivAccountCredential, type PrivAccountCredentialUpdate } from './public/PrivAccountCredential'; -export { type score_id, type default as ScoreTable, type Score, type NewScore, type ScoreUpdate } from './public/Score'; -export { type default as ImportTimingTable, type ImportTiming, type NewImportTiming, type ImportTimingUpdate } from './public/ImportTiming'; -export { type default as QuestSubTable, type QuestSub, type NewQuestSub, type QuestSubUpdate } from './public/QuestSub'; -export { type orphan_score_row_id, type default as OrphanScoreTable, type OrphanScore, type NewOrphanScore, type OrphanScoreUpdate } from './public/OrphanScore'; -export { type default as FolderViewTable, type FolderView, type NewFolderView, type FolderViewUpdate } from './public/FolderView'; -export { type table_id, type default as TableTable, type Table, type NewTable, type TableUpdate } from './public/Table'; -export { type chart_version_version, type default as ChartVersionTable, type ChartVersion, type NewChartVersion, type ChartVersionUpdate } from './public/ChartVersion'; -export { type default as GoalSubTable, type GoalSub, type NewGoalSub, type GoalSubUpdate } from './public/GoalSub'; -export { type folder_search_term_search_term, type default as FolderSearchTermTable, type FolderSearchTerm, type NewFolderSearchTerm, type FolderSearchTermUpdate } from './public/FolderSearchTerm'; -export { type job_queue_row_id, type default as JobQueueTable, type JobQueue, type NewJobQueue, type JobQueueUpdate } from './public/JobQueue'; -export { type priv_api_client_client_id, type default as PrivApiClientTable, type PrivApiClient, type NewPrivApiClient, type PrivApiClientUpdate } from './public/PrivApiClient'; -export { type priv_api_token_token, type default as PrivApiTokenTable, type PrivApiToken, type NewPrivApiToken, type PrivApiTokenUpdate } from './public/PrivApiToken'; -export { type default as SvcKshookSv6cSettingsTable, type SvcKshookSv6cSettings, type NewSvcKshookSv6cSettings, type SvcKshookSv6cSettingsUpdate } from './public/SvcKshookSv6cSettings'; -export { type import_error_row_id, type default as ImportErrorTable, type ImportError, type NewImportError, type ImportErrorUpdate } from './public/ImportError'; -export { type quest_id, type default as QuestTable, type Quest, type NewQuest, type QuestUpdate } from './public/Quest'; -export { type default as AccountSettingsTable, type AccountSettings, type NewAccountSettings, type AccountSettingsUpdate } from './public/AccountSettings'; -export { type pb_row_id, type default as PbTable, type Pb, type NewPb, type PbUpdate } from './public/Pb'; -export { type priv_svc_myt_card_info_card_access_code, type default as PrivSvcMytCardInfoTable, type PrivSvcMytCardInfo, type NewPrivSvcMytCardInfo, type PrivSvcMytCardInfoUpdate } from './public/PrivSvcMytCardInfo'; -export { type default as QuestlineQuestTable, type QuestlineQuest, type NewQuestlineQuest, type QuestlineQuestUpdate } from './public/QuestlineQuest'; -export { type questline_id, type default as QuestlineTable, type Questline, type NewQuestline, type QuestlineUpdate } from './public/Questline'; -export { type cron_task_id, type default as CronTaskTable, type CronTask, type NewCronTask, type CronTaskUpdate } from './public/CronTask'; -export { type import_class_row_id, type default as ImportClassTable, type ImportClass, type NewImportClass, type ImportClassUpdate } from './public/ImportClass'; -export { type song_alt_title_alt_title, type default as SongAltTitleTable, type SongAltTitle, type NewSongAltTitle, type SongAltTitleUpdate } from './public/SongAltTitle'; -export { type game_stats_snapshot_game, type game_stats_snapshot_timestamp, type default as GameStatsSnapshotTable, type GameStatsSnapshot, type NewGameStatsSnapshot, type GameStatsSnapshotUpdate } from './public/GameStatsSnapshot'; -export { type default as ChartLeaderboardTable, type ChartLeaderboard } from './public/ChartLeaderboard'; -export { type default as AuthLevel } from './public/AuthLevel'; -export { type default as AccountBadgeKind } from './public/AccountBadgeKind'; -export { type default as Game } from './public/Game'; -export { type default as ActionResult } from './public/ActionResult'; -export { type default as GameGroup } from './public/GameGroup'; -export { type default as ImportType } from './public/ImportType'; -export { type default as PublicSchema } from './public/PublicSchema'; -export { type default as Database } from './Database'; +export { + type priv_svc_cg_card_info_service, + type default as PrivSvcCgCardInfoTable, + type PrivSvcCgCardInfo, + type NewPrivSvcCgCardInfo, + type PrivSvcCgCardInfoUpdate, +} from "./public/PrivSvcCgCardInfo"; +export { + type class_achievement_row_id, + type default as ClassAchievementTable, + type ClassAchievement, + type NewClassAchievement, + type ClassAchievementUpdate, +} from "./public/ClassAchievement"; +export { + type account_id, + type default as AccountTable, + type Account, + type NewAccount, + type AccountUpdate, +} from "./public/Account"; +export { + type import_tracker_import_id, + type default as ImportTrackerTable, + type ImportTracker, + type NewImportTracker, + type ImportTrackerUpdate, +} from "./public/ImportTracker"; +export { + type default as SvcFerSettingsTable, + type SvcFerSettings, + type NewSvcFerSettings, + type SvcFerSettingsUpdate, +} from "./public/SvcFerSettings"; +export { + type default as InviteLockTable, + type InviteLock, + type NewInviteLock, + type InviteLockUpdate, +} from "./public/InviteLock"; +export { + type orphan_chart_id, + type default as OrphanChartTable, + type OrphanChart, + type NewOrphanChart, + type OrphanChartUpdate, +} from "./public/OrphanChart"; +export { + type game_rival_game, + type default as GameRivalTable, + type GameRival, + type NewGameRival, + type GameRivalUpdate, +} from "./public/GameRival"; +export { + type goal_id, + type default as GoalTable, + type Goal, + type NewGoal, + type GoalUpdate, +} from "./public/Goal"; +export { + type game_settings_game, + type default as GameSettingsTable, + type GameSettings, + type NewGameSettings, + type GameSettingsUpdate, +} from "./public/GameSettings"; +export { + type import_quest_row_id, + type default as ImportQuestTable, + type ImportQuest, + type NewImportQuest, + type ImportQuestUpdate, +} from "./public/ImportQuest"; +export { + type cron_task_execution_id, + type default as CronTaskExecutionTable, + type CronTaskExecution, + type NewCronTaskExecution, + type CronTaskExecutionUpdate, +} from "./public/CronTaskExecution"; +export { + type notification_row_id, + type default as NotificationTable, + type Notification, + type NewNotification, + type NotificationUpdate, +} from "./public/Notification"; +export { + type default as ImportLockTable, + type ImportLock, + type NewImportLock, + type ImportLockUpdate, +} from "./public/ImportLock"; +export { + type score_blacklist_row_id, + type default as ScoreBlacklistTable, + type ScoreBlacklist, + type NewScoreBlacklist, + type ScoreBlacklistUpdate, +} from "./public/ScoreBlacklist"; +export { + type default as TableFolderTable, + type TableFolder, + type NewTableFolder, + type TableFolderUpdate, +} from "./public/TableFolder"; +export { + type game_stats_game, + type default as GameStatsTable, + type GameStats, + type NewGameStats, + type GameStatsUpdate, +} from "./public/GameStats"; +export { + type priv_oauth2_auth_token_token, + type default as PrivOauth2AuthTokenTable, + type PrivOauth2AuthToken, + type NewPrivOauth2AuthToken, + type PrivOauth2AuthTokenUpdate, +} from "./public/PrivOauth2AuthToken"; +export { + type import_session_row_id, + type default as ImportSessionTable, + type ImportSession, + type NewImportSession, + type ImportSessionUpdate, +} from "./public/ImportSession"; +export { + type priv_svc_fer_card_card_id, + type default as PrivSvcFerCardTable, + type PrivSvcFerCard, + type NewPrivSvcFerCard, + type PrivSvcFerCardUpdate, +} from "./public/PrivSvcFerCard"; +export { + type default as PbComposedFromTable, + type PbComposedFrom, + type NewPbComposedFrom, + type PbComposedFromUpdate, +} from "./public/PbComposedFrom"; +export { + type bms_course_lookup_md5sums, + type default as BmsCourseLookupTable, + type BmsCourseLookup, + type NewBmsCourseLookup, + type BmsCourseLookupUpdate, +} from "./public/BmsCourseLookup"; +export { + type song_search_term_search_term, + type default as SongSearchTermTable, + type SongSearchTerm, + type NewSongSearchTerm, + type SongSearchTermUpdate, +} from "./public/SongSearchTerm"; +export { + type import_game_game, + type default as ImportGameTable, + type ImportGame, + type NewImportGame, + type ImportGameUpdate, +} from "./public/ImportGame"; +export { + type import_goal_row_id, + type default as ImportGoalTable, + type ImportGoal, + type NewImportGoal, + type ImportGoalUpdate, +} from "./public/ImportGoal"; +export { + type default as OrphanChartUserTable, + type OrphanChartUser, + type NewOrphanChartUser, + type OrphanChartUserUpdate, +} from "./public/OrphanChartUser"; +export { + type priv_verify_email_token_token, + type default as PrivVerifyEmailTokenTable, + type PrivVerifyEmailToken, + type NewPrivVerifyEmailToken, + type PrivVerifyEmailTokenUpdate, +} from "./public/PrivVerifyEmailToken"; +export { + type priv_invite_code, + type default as PrivInviteTable, + type PrivInvite, + type NewPrivInvite, + type PrivInviteUpdate, +} from "./public/PrivInvite"; +export { + type session_id, + type default as SessionTable, + type Session, + type NewSession, + type SessionUpdate, +} from "./public/Session"; +export { + type priv_password_reset_token_token, + type default as PrivPasswordResetTokenTable, + type PrivPasswordResetToken, + type NewPrivPasswordResetToken, + type PrivPasswordResetTokenUpdate, +} from "./public/PrivPasswordResetToken"; +export { + type song_id, + type default as SongTable, + type Song, + type NewSong, + type SongUpdate, +} from "./public/Song"; +export { + type account_username_change_row_id, + type default as AccountUsernameChangeTable, + type AccountUsernameChange, + type NewAccountUsernameChange, + type AccountUsernameChangeUpdate, +} from "./public/AccountUsernameChange"; +export { + type default as MigrationTable, + type Migration, + type NewMigration, + type MigrationUpdate, +} from "./public/Migration"; +export { + type account_badge_badge, + type default as AccountBadgeTable, + type AccountBadge, + type NewAccountBadge, + type AccountBadgeUpdate, +} from "./public/AccountBadge"; +export { + type action_row_id, + type default as ActionTable, + type Action, + type NewAction, + type ActionUpdate, +} from "./public/Action"; +export { + type priv_svc_kai_auth_token_service, + type default as PrivSvcKaiAuthTokenTable, + type PrivSvcKaiAuthToken, + type NewPrivSvcKaiAuthToken, + type PrivSvcKaiAuthTokenUpdate, +} from "./public/PrivSvcKaiAuthToken"; +export { + type chart_id, + type default as ChartTable, + type Chart, + type NewChart, + type ChartUpdate, +} from "./public/Chart"; +export { + type game_settings_showcase_game, + type default as GameSettingsShowcaseTable, + type GameSettingsShowcase, + type NewGameSettingsShowcase, + type GameSettingsShowcaseUpdate, +} from "./public/GameSettingsShowcase"; +export { + type default as AccountFollowingTable, + type AccountFollowing, + type NewAccountFollowing, + type AccountFollowingUpdate, +} from "./public/AccountFollowing"; +export { + type import_id, + type default as ImportTable, + type Import, + type NewImport, + type ImportUpdate, +} from "./public/Import"; +export { + type folder_id, + type default as FolderTable, + type Folder, + type NewFolder, + type FolderUpdate, +} from "./public/Folder"; +export { + type default as PrivAccountCredentialTable, + type PrivAccountCredential, + type NewPrivAccountCredential, + type PrivAccountCredentialUpdate, +} from "./public/PrivAccountCredential"; +export { + type score_id, + type default as ScoreTable, + type Score, + type NewScore, + type ScoreUpdate, +} from "./public/Score"; +export { + type default as ImportTimingTable, + type ImportTiming, + type NewImportTiming, + type ImportTimingUpdate, +} from "./public/ImportTiming"; +export { + type default as QuestSubTable, + type QuestSub, + type NewQuestSub, + type QuestSubUpdate, +} from "./public/QuestSub"; +export { + type orphan_score_row_id, + type default as OrphanScoreTable, + type OrphanScore, + type NewOrphanScore, + type OrphanScoreUpdate, +} from "./public/OrphanScore"; +export { + type default as FolderViewTable, + type FolderView, + type NewFolderView, + type FolderViewUpdate, +} from "./public/FolderView"; +export { + type table_id, + type default as TableTable, + type Table, + type NewTable, + type TableUpdate, +} from "./public/Table"; +export { + type chart_version_version, + type default as ChartVersionTable, + type ChartVersion, + type NewChartVersion, + type ChartVersionUpdate, +} from "./public/ChartVersion"; +export { + type default as GoalSubTable, + type GoalSub, + type NewGoalSub, + type GoalSubUpdate, +} from "./public/GoalSub"; +export { + type folder_search_term_search_term, + type default as FolderSearchTermTable, + type FolderSearchTerm, + type NewFolderSearchTerm, + type FolderSearchTermUpdate, +} from "./public/FolderSearchTerm"; +export { + type job_queue_row_id, + type default as JobQueueTable, + type JobQueue, + type NewJobQueue, + type JobQueueUpdate, +} from "./public/JobQueue"; +export { + type priv_api_client_client_id, + type default as PrivApiClientTable, + type PrivApiClient, + type NewPrivApiClient, + type PrivApiClientUpdate, +} from "./public/PrivApiClient"; +export { + type priv_api_token_token, + type default as PrivApiTokenTable, + type PrivApiToken, + type NewPrivApiToken, + type PrivApiTokenUpdate, +} from "./public/PrivApiToken"; +export { + type default as SvcKshookSv6cSettingsTable, + type SvcKshookSv6cSettings, + type NewSvcKshookSv6cSettings, + type SvcKshookSv6cSettingsUpdate, +} from "./public/SvcKshookSv6cSettings"; +export { + type import_error_row_id, + type default as ImportErrorTable, + type ImportError, + type NewImportError, + type ImportErrorUpdate, +} from "./public/ImportError"; +export { + type quest_id, + type default as QuestTable, + type Quest, + type NewQuest, + type QuestUpdate, +} from "./public/Quest"; +export { + type default as AccountSettingsTable, + type AccountSettings, + type NewAccountSettings, + type AccountSettingsUpdate, +} from "./public/AccountSettings"; +export { + type pb_row_id, + type default as PbTable, + type Pb, + type NewPb, + type PbUpdate, +} from "./public/Pb"; +export { + type priv_svc_myt_card_info_card_access_code, + type default as PrivSvcMytCardInfoTable, + type PrivSvcMytCardInfo, + type NewPrivSvcMytCardInfo, + type PrivSvcMytCardInfoUpdate, +} from "./public/PrivSvcMytCardInfo"; +export { + type default as QuestlineQuestTable, + type QuestlineQuest, + type NewQuestlineQuest, + type QuestlineQuestUpdate, +} from "./public/QuestlineQuest"; +export { + type questline_id, + type default as QuestlineTable, + type Questline, + type NewQuestline, + type QuestlineUpdate, +} from "./public/Questline"; +export { + type cron_task_id, + type default as CronTaskTable, + type CronTask, + type NewCronTask, + type CronTaskUpdate, +} from "./public/CronTask"; +export { + type import_class_row_id, + type default as ImportClassTable, + type ImportClass, + type NewImportClass, + type ImportClassUpdate, +} from "./public/ImportClass"; +export { + type song_alt_title_alt_title, + type default as SongAltTitleTable, + type SongAltTitle, + type NewSongAltTitle, + type SongAltTitleUpdate, +} from "./public/SongAltTitle"; +export { + type game_stats_snapshot_game, + type game_stats_snapshot_timestamp, + type default as GameStatsSnapshotTable, + type GameStatsSnapshot, + type NewGameStatsSnapshot, + type GameStatsSnapshotUpdate, +} from "./public/GameStatsSnapshot"; +export { + type default as ChartLeaderboardTable, + type ChartLeaderboard, +} from "./public/ChartLeaderboard"; +export { type default as AuthLevel } from "./public/AuthLevel"; +export { type default as AccountBadgeKind } from "./public/AccountBadgeKind"; +export { type default as Game } from "./public/Game"; +export { type default as ActionResult } from "./public/ActionResult"; +export { type default as GameGroup } from "./public/GameGroup"; +export { type default as ImportType } from "./public/ImportType"; +export { type default as PublicSchema } from "./public/PublicSchema"; +export { type default as Database } from "./Database"; diff --git a/typescript/db/src/generated/public/Account.ts b/typescript/db/src/generated/public/Account.ts index 7cc6eb5e8..ea9125715 100644 --- a/typescript/db/src/generated/public/Account.ts +++ b/typescript/db/src/generated/public/Account.ts @@ -1,45 +1,45 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { default as AuthLevel } from './AuthLevel'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { default as AuthLevel } from "./AuthLevel"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.account */ export type account_id = number; /** Represents the table public.account */ export default interface AccountTable { - id: ColumnType; + id: ColumnType; - username: ColumnType; + username: ColumnType; - normalized_username: ColumnType; + normalized_username: ColumnType; - sm_discord: ColumnType; + sm_discord: ColumnType; - sm_twitter: ColumnType; + sm_twitter: ColumnType; - sm_github: ColumnType; + sm_github: ColumnType; - sm_steam: ColumnType; + sm_steam: ColumnType; - sm_youtube: ColumnType; + sm_youtube: ColumnType; - sm_twitch: ColumnType; + sm_twitch: ColumnType; - joined: ColumnType; + joined: ColumnType; - about: ColumnType; + about: ColumnType; - status: ColumnType; + status: ColumnType; - custom_pfp_location: ColumnType; + custom_pfp_location: ColumnType; - custom_banner_location: ColumnType; + custom_banner_location: ColumnType; - last_seen: ColumnType; + last_seen: ColumnType; - auth_level: ColumnType; + auth_level: ColumnType; } export type Account = Selectable; diff --git a/typescript/db/src/generated/public/AccountBadge.ts b/typescript/db/src/generated/public/AccountBadge.ts index 305269afc..e7f5bae15 100644 --- a/typescript/db/src/generated/public/AccountBadge.ts +++ b/typescript/db/src/generated/public/AccountBadge.ts @@ -1,18 +1,18 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { default as AccountBadgeKind } from './AccountBadgeKind'; -import type { account_id } from './Account'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { default as AccountBadgeKind } from "./AccountBadgeKind"; +import type { account_id } from "./Account"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.account_badge */ export type account_badge_badge = AccountBadgeKind; /** Represents the table public.account_badge */ export default interface AccountBadgeTable { - user_id: ColumnType; + user_id: ColumnType; - badge: ColumnType; + badge: ColumnType; } export type AccountBadge = Selectable; diff --git a/typescript/db/src/generated/public/AccountBadgeKind.ts b/typescript/db/src/generated/public/AccountBadgeKind.ts index edf9807eb..253bca4b2 100644 --- a/typescript/db/src/generated/public/AccountBadgeKind.ts +++ b/typescript/db/src/generated/public/AccountBadgeKind.ts @@ -2,9 +2,6 @@ // This file is automatically generated by Kanel. Do not modify manually. /** Represents the enum public.account_badge_kind */ -type AccountBadgeKind = - | 'beta' - | 'alpha' - | 'dev-team'; +type AccountBadgeKind = "beta" | "alpha" | "dev-team"; export default AccountBadgeKind; diff --git a/typescript/db/src/generated/public/AccountFollowing.ts b/typescript/db/src/generated/public/AccountFollowing.ts index eac2914d6..556aa0dc4 100644 --- a/typescript/db/src/generated/public/AccountFollowing.ts +++ b/typescript/db/src/generated/public/AccountFollowing.ts @@ -1,14 +1,14 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { account_id } from './Account'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { account_id } from "./Account"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Represents the table public.account_following */ export default interface AccountFollowingTable { - user_id: ColumnType; + user_id: ColumnType; - followee: ColumnType; + followee: ColumnType; } export type AccountFollowing = Selectable; diff --git a/typescript/db/src/generated/public/AccountSettings.ts b/typescript/db/src/generated/public/AccountSettings.ts index 645968047..9a9594311 100644 --- a/typescript/db/src/generated/public/AccountSettings.ts +++ b/typescript/db/src/generated/public/AccountSettings.ts @@ -1,22 +1,22 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { account_id } from './Account'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { account_id } from "./Account"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Represents the table public.account_settings */ export default interface AccountSettingsTable { - user_id: ColumnType; + user_id: ColumnType; - pf_invisible: ColumnType; + pf_invisible: ColumnType; - pf_developer_mode: ColumnType; + pf_developer_mode: ColumnType; - pf_advanced_mode: ColumnType; + pf_advanced_mode: ColumnType; - pf_contentious_content: ColumnType; + pf_contentious_content: ColumnType; - pf_deletable_scores: ColumnType; + pf_deletable_scores: ColumnType; } export type AccountSettings = Selectable; diff --git a/typescript/db/src/generated/public/AccountUsernameChange.ts b/typescript/db/src/generated/public/AccountUsernameChange.ts index adccffdc1..0cd127cb0 100644 --- a/typescript/db/src/generated/public/AccountUsernameChange.ts +++ b/typescript/db/src/generated/public/AccountUsernameChange.ts @@ -1,23 +1,27 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { account_id } from './Account'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { account_id } from "./Account"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.account_username_change */ export type account_username_change_row_id = string; /** Represents the table public.account_username_change */ export default interface AccountUsernameChangeTable { - row_id: ColumnType; + row_id: ColumnType< + account_username_change_row_id, + account_username_change_row_id | undefined, + account_username_change_row_id + >; - user_id: ColumnType; + user_id: ColumnType; - username: ColumnType; + username: ColumnType; - previous_username: ColumnType; + previous_username: ColumnType; - timestamp: ColumnType; + timestamp: ColumnType; } export type AccountUsernameChange = Selectable; diff --git a/typescript/db/src/generated/public/Action.ts b/typescript/db/src/generated/public/Action.ts index 5293fbaf3..f33621c12 100644 --- a/typescript/db/src/generated/public/Action.ts +++ b/typescript/db/src/generated/public/Action.ts @@ -1,32 +1,32 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { account_id } from './Account'; -import type { default as ActionResult } from './ActionResult'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { account_id } from "./Account"; +import type { default as ActionResult } from "./ActionResult"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.action */ export type action_row_id = string; /** Represents the table public.action */ export default interface ActionTable { - row_id: ColumnType; + row_id: ColumnType; - user_id: ColumnType; + user_id: ColumnType; - ip: ColumnType; + ip: ColumnType; - kind: ColumnType; + kind: ColumnType; - result: ColumnType; + result: ColumnType; - input: ColumnType; + input: ColumnType; - output: ColumnType; + output: ColumnType; - ts_start: ColumnType; + ts_start: ColumnType; - ts_end: ColumnType; + ts_end: ColumnType; } export type Action = Selectable; diff --git a/typescript/db/src/generated/public/ActionResult.ts b/typescript/db/src/generated/public/ActionResult.ts index c20262d57..df7172209 100644 --- a/typescript/db/src/generated/public/ActionResult.ts +++ b/typescript/db/src/generated/public/ActionResult.ts @@ -2,9 +2,6 @@ // This file is automatically generated by Kanel. Do not modify manually. /** Represents the enum public.action_result */ -type ActionResult = - | 'GOOD' - | 'BAD' - | 'THROW'; +type ActionResult = "GOOD" | "BAD" | "THROW"; export default ActionResult; diff --git a/typescript/db/src/generated/public/AuthLevel.ts b/typescript/db/src/generated/public/AuthLevel.ts index 8893ccb9a..a18f8ffb6 100644 --- a/typescript/db/src/generated/public/AuthLevel.ts +++ b/typescript/db/src/generated/public/AuthLevel.ts @@ -2,9 +2,6 @@ // This file is automatically generated by Kanel. Do not modify manually. /** Represents the enum public.auth_level */ -type AuthLevel = - | 'banned' - | 'user' - | 'admin'; +type AuthLevel = "banned" | "user" | "admin"; export default AuthLevel; diff --git a/typescript/db/src/generated/public/BmsCourseLookup.ts b/typescript/db/src/generated/public/BmsCourseLookup.ts index 47fb35712..44c8be658 100644 --- a/typescript/db/src/generated/public/BmsCourseLookup.ts +++ b/typescript/db/src/generated/public/BmsCourseLookup.ts @@ -1,22 +1,26 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.bms_course_lookup */ export type bms_course_lookup_md5sums = string; /** Represents the table public.bms_course_lookup */ export default interface BmsCourseLookupTable { - md5sums: ColumnType; + md5sums: ColumnType< + bms_course_lookup_md5sums, + bms_course_lookup_md5sums, + bms_course_lookup_md5sums + >; - title: ColumnType; + title: ColumnType; - set: ColumnType; + set: ColumnType; - playtype: ColumnType; + playtype: ColumnType; - value: ColumnType; + value: ColumnType; } export type BmsCourseLookup = Selectable; diff --git a/typescript/db/src/generated/public/Chart.ts b/typescript/db/src/generated/public/Chart.ts index c02b91d71..c5b82b949 100644 --- a/typescript/db/src/generated/public/Chart.ts +++ b/typescript/db/src/generated/public/Chart.ts @@ -1,32 +1,32 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { default as Game } from './Game'; -import type { song_id } from './Song'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { default as Game } from "./Game"; +import type { song_id } from "./Song"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.chart */ export type chart_id = string; /** Represents the table public.chart */ export default interface ChartTable { - id: ColumnType; + id: ColumnType; - legacy_id: ColumnType; + legacy_id: ColumnType; - game: ColumnType; + game: ColumnType; - song_id: ColumnType; + song_id: ColumnType; - level: ColumnType; + level: ColumnType; - level_num: ColumnType; + level_num: ColumnType; - is_primary: ColumnType; + is_primary: ColumnType; - difficulty: ColumnType; + difficulty: ColumnType; - data: ColumnType; + data: ColumnType; } export type Chart = Selectable; diff --git a/typescript/db/src/generated/public/ChartLeaderboard.ts b/typescript/db/src/generated/public/ChartLeaderboard.ts index de92e456a..a3c9caee7 100644 --- a/typescript/db/src/generated/public/ChartLeaderboard.ts +++ b/typescript/db/src/generated/public/ChartLeaderboard.ts @@ -1,44 +1,44 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { pb_row_id } from './Pb'; -import type { account_id } from './Account'; -import type { chart_id } from './Chart'; -import type { ColumnType, Selectable } from 'kysely'; +import type { pb_row_id } from "./Pb"; +import type { account_id } from "./Account"; +import type { chart_id } from "./Chart"; +import type { ColumnType, Selectable } from "kysely"; /** Represents the view public.chart_leaderboard */ export default interface ChartLeaderboardTable { - row_id: ColumnType; + row_id: ColumnType; - user_id: ColumnType; + user_id: ColumnType; - chart_id: ColumnType; + chart_id: ColumnType; - lens: ColumnType; + lens: ColumnType; - data: ColumnType; + data: ColumnType; - derived_data: ColumnType; + derived_data: ColumnType; - calculated_data: ColumnType; + calculated_data: ColumnType; - ranking_value: ColumnType; + ranking_value: ColumnType; - ranking_value_tb1: ColumnType; + ranking_value_tb1: ColumnType; - ranking_value_tb2: ColumnType; + ranking_value_tb2: ColumnType; - ranking_value_tb3: ColumnType; + ranking_value_tb3: ColumnType; - ranking_value_tb4: ColumnType; + ranking_value_tb4: ColumnType; - ranking_value_tb5: ColumnType; + ranking_value_tb5: ColumnType; - highlight: ColumnType; + highlight: ColumnType; - time_achieved: ColumnType; + time_achieved: ColumnType; - rank: ColumnType; + rank: ColumnType; } export type ChartLeaderboard = Selectable; diff --git a/typescript/db/src/generated/public/ChartVersion.ts b/typescript/db/src/generated/public/ChartVersion.ts index 6c81acc7f..ba6549ab1 100644 --- a/typescript/db/src/generated/public/ChartVersion.ts +++ b/typescript/db/src/generated/public/ChartVersion.ts @@ -1,17 +1,17 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { chart_id } from './Chart'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { chart_id } from "./Chart"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.chart_version */ export type chart_version_version = string; /** Represents the table public.chart_version */ export default interface ChartVersionTable { - chart_id: ColumnType; + chart_id: ColumnType; - version: ColumnType; + version: ColumnType; } export type ChartVersion = Selectable; diff --git a/typescript/db/src/generated/public/ClassAchievement.ts b/typescript/db/src/generated/public/ClassAchievement.ts index 6eaa81ac8..11f67e881 100644 --- a/typescript/db/src/generated/public/ClassAchievement.ts +++ b/typescript/db/src/generated/public/ClassAchievement.ts @@ -1,28 +1,32 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { default as Game } from './Game'; -import type { account_id } from './Account'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { default as Game } from "./Game"; +import type { account_id } from "./Account"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.class_achievement */ export type class_achievement_row_id = string; /** Represents the table public.class_achievement */ export default interface ClassAchievementTable { - row_id: ColumnType; + row_id: ColumnType< + class_achievement_row_id, + class_achievement_row_id | undefined, + class_achievement_row_id + >; - game: ColumnType; + game: ColumnType; - user_id: ColumnType; + user_id: ColumnType; - class_set: ColumnType; + class_set: ColumnType; - class_prev_value: ColumnType; + class_prev_value: ColumnType; - class_value: ColumnType; + class_value: ColumnType; - timestamp: ColumnType; + timestamp: ColumnType; } export type ClassAchievement = Selectable; diff --git a/typescript/db/src/generated/public/CronTask.ts b/typescript/db/src/generated/public/CronTask.ts index 31083429a..6c0b2db1f 100644 --- a/typescript/db/src/generated/public/CronTask.ts +++ b/typescript/db/src/generated/public/CronTask.ts @@ -1,24 +1,24 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.cron_task */ export type cron_task_id = string; /** Represents the table public.cron_task */ export default interface CronTaskTable { - id: ColumnType; + id: ColumnType; - schedule: ColumnType; + schedule: ColumnType; - description: ColumnType; + description: ColumnType; - created_at: ColumnType; + created_at: ColumnType; - updated_at: ColumnType; + updated_at: ColumnType; - last_scheduled_at: ColumnType; + last_scheduled_at: ColumnType; } export type CronTask = Selectable; diff --git a/typescript/db/src/generated/public/CronTaskExecution.ts b/typescript/db/src/generated/public/CronTaskExecution.ts index 19b232dd9..077ac5aca 100644 --- a/typescript/db/src/generated/public/CronTaskExecution.ts +++ b/typescript/db/src/generated/public/CronTaskExecution.ts @@ -1,28 +1,32 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.cron_task_execution */ export type cron_task_execution_id = number; /** Represents the table public.cron_task_execution */ export default interface CronTaskExecutionTable { - id: ColumnType; + id: ColumnType< + cron_task_execution_id, + cron_task_execution_id | undefined, + cron_task_execution_id + >; - task_id: ColumnType; + task_id: ColumnType; - scheduled_at: ColumnType; + scheduled_at: ColumnType; - started_at: ColumnType; + started_at: ColumnType; - completed_at: ColumnType; + completed_at: ColumnType; - status: ColumnType; + status: ColumnType; - output: ColumnType; + output: ColumnType; - error: ColumnType; + error: ColumnType; } export type CronTaskExecution = Selectable; diff --git a/typescript/db/src/generated/public/Folder.ts b/typescript/db/src/generated/public/Folder.ts index d1812a81d..2c374594e 100644 --- a/typescript/db/src/generated/public/Folder.ts +++ b/typescript/db/src/generated/public/Folder.ts @@ -1,27 +1,27 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { default as Game } from './Game'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { default as Game } from "./Game"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.folder */ export type folder_id = string; /** Represents the table public.folder */ export default interface FolderTable { - id: ColumnType; + id: ColumnType; - legacy_id: ColumnType; + legacy_id: ColumnType; - game: ColumnType; + game: ColumnType; - inactive: ColumnType; + inactive: ColumnType; - title: ColumnType; + title: ColumnType; - slug: ColumnType; + slug: ColumnType; - query: ColumnType; + query: ColumnType; } export type Folder = Selectable; diff --git a/typescript/db/src/generated/public/FolderSearchTerm.ts b/typescript/db/src/generated/public/FolderSearchTerm.ts index 4f42c98f4..4f284eb0a 100644 --- a/typescript/db/src/generated/public/FolderSearchTerm.ts +++ b/typescript/db/src/generated/public/FolderSearchTerm.ts @@ -1,17 +1,21 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { folder_id } from './Folder'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { folder_id } from "./Folder"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.folder_search_term */ export type folder_search_term_search_term = string; /** Represents the table public.folder_search_term */ export default interface FolderSearchTermTable { - id: ColumnType; + id: ColumnType; - search_term: ColumnType; + search_term: ColumnType< + folder_search_term_search_term, + folder_search_term_search_term, + folder_search_term_search_term + >; } export type FolderSearchTerm = Selectable; diff --git a/typescript/db/src/generated/public/FolderView.ts b/typescript/db/src/generated/public/FolderView.ts index abcba228d..a03e10b67 100644 --- a/typescript/db/src/generated/public/FolderView.ts +++ b/typescript/db/src/generated/public/FolderView.ts @@ -1,17 +1,17 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { account_id } from './Account'; -import type { folder_id } from './Folder'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { account_id } from "./Account"; +import type { folder_id } from "./Folder"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Represents the table public.folder_view */ export default interface FolderViewTable { - user_id: ColumnType; + user_id: ColumnType; - folder_id: ColumnType; + folder_id: ColumnType; - last_viewed: ColumnType; + last_viewed: ColumnType; } export type FolderView = Selectable; diff --git a/typescript/db/src/generated/public/Game.ts b/typescript/db/src/generated/public/Game.ts index 96584dd99..88e160d77 100644 --- a/typescript/db/src/generated/public/Game.ts +++ b/typescript/db/src/generated/public/Game.ts @@ -2,29 +2,29 @@ // This file is automatically generated by Kanel. Do not modify manually. /** Represents the enum public.game */ -type Game = - | 'iidx-sp' - | 'iidx-dp' - | 'museca' - | 'sdvx' - | 'bms-14k' - | 'bms-7k' - | 'gitadora-dora' - | 'gitadora-gita' - | 'chunithm' - | 'wacca' - | 'jubeat' - | 'popn' - | 'maimai' - | 'maimaidx' - | 'pms-controller' - | 'pms-keyboard' - | 'usc-controller' - | 'usc-keyboard' - | 'itg-stamina' - | 'arcaea' - | 'ongeki' - | 'ddr-sp' - | 'ddr-dp'; +type Game = + | "iidx-sp" + | "iidx-dp" + | "museca" + | "sdvx" + | "bms-14k" + | "bms-7k" + | "gitadora-dora" + | "gitadora-gita" + | "chunithm" + | "wacca" + | "jubeat" + | "popn" + | "maimai" + | "maimaidx" + | "pms-controller" + | "pms-keyboard" + | "usc-controller" + | "usc-keyboard" + | "itg-stamina" + | "arcaea" + | "ongeki" + | "ddr-sp" + | "ddr-dp"; export default Game; diff --git a/typescript/db/src/generated/public/GameGroup.ts b/typescript/db/src/generated/public/GameGroup.ts index e5c8b91c5..dc570a4d2 100644 --- a/typescript/db/src/generated/public/GameGroup.ts +++ b/typescript/db/src/generated/public/GameGroup.ts @@ -2,23 +2,23 @@ // This file is automatically generated by Kanel. Do not modify manually. /** Represents the enum public.game_group */ -type GameGroup = - | 'iidx' - | 'museca' - | 'chunithm' - | 'bms' - | 'gitadora' - | 'jubeat' - | 'maimai' - | 'maimaidx' - | 'popn' - | 'sdvx' - | 'usc' - | 'wacca' - | 'pms' - | 'itg' - | 'arcaea' - | 'ongeki' - | 'ddr'; +type GameGroup = + | "iidx" + | "museca" + | "chunithm" + | "bms" + | "gitadora" + | "jubeat" + | "maimai" + | "maimaidx" + | "popn" + | "sdvx" + | "usc" + | "wacca" + | "pms" + | "itg" + | "arcaea" + | "ongeki" + | "ddr"; export default GameGroup; diff --git a/typescript/db/src/generated/public/GameRival.ts b/typescript/db/src/generated/public/GameRival.ts index 5d349b23a..835db1e85 100644 --- a/typescript/db/src/generated/public/GameRival.ts +++ b/typescript/db/src/generated/public/GameRival.ts @@ -1,20 +1,20 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { default as Game } from './Game'; -import type { account_id } from './Account'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { default as Game } from "./Game"; +import type { account_id } from "./Account"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.game_rival */ export type game_rival_game = Game; /** Represents the table public.game_rival */ export default interface GameRivalTable { - user_id: ColumnType; + user_id: ColumnType; - game: ColumnType; + game: ColumnType; - rival: ColumnType; + rival: ColumnType; } export type GameRival = Selectable; diff --git a/typescript/db/src/generated/public/GameSettings.ts b/typescript/db/src/generated/public/GameSettings.ts index 19c4a229a..7752a6561 100644 --- a/typescript/db/src/generated/public/GameSettings.ts +++ b/typescript/db/src/generated/public/GameSettings.ts @@ -1,32 +1,32 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { default as Game } from './Game'; -import type { account_id } from './Account'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { default as Game } from "./Game"; +import type { account_id } from "./Account"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.game_settings */ export type game_settings_game = Game; /** Represents the table public.game_settings */ export default interface GameSettingsTable { - user_id: ColumnType; + user_id: ColumnType; - game: ColumnType; + game: ColumnType; - pf_preferred_score_alg: ColumnType; + pf_preferred_score_alg: ColumnType; - pf_preferred_session_alg: ColumnType; + pf_preferred_session_alg: ColumnType; - pf_preferred_profile_alg: ColumnType; + pf_preferred_profile_alg: ColumnType; - pf_preferred_default_enum: ColumnType; + pf_preferred_default_enum: ColumnType; - pf_default_table: ColumnType; + pf_default_table: ColumnType; - pf_preferred_ranking: ColumnType; + pf_preferred_ranking: ColumnType; - data: ColumnType; + data: ColumnType; } export type GameSettings = Selectable; diff --git a/typescript/db/src/generated/public/GameSettingsShowcase.ts b/typescript/db/src/generated/public/GameSettingsShowcase.ts index 33e9f482f..b767c9845 100644 --- a/typescript/db/src/generated/public/GameSettingsShowcase.ts +++ b/typescript/db/src/generated/public/GameSettingsShowcase.ts @@ -1,20 +1,24 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { default as Game } from './Game'; -import type { account_id } from './Account'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { default as Game } from "./Game"; +import type { account_id } from "./Account"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.game_settings_showcase */ export type game_settings_showcase_game = Game; /** Represents the table public.game_settings_showcase */ export default interface GameSettingsShowcaseTable { - user_id: ColumnType; + user_id: ColumnType; - game: ColumnType; + game: ColumnType< + game_settings_showcase_game, + game_settings_showcase_game, + game_settings_showcase_game + >; - data: ColumnType; + data: ColumnType; } export type GameSettingsShowcase = Selectable; diff --git a/typescript/db/src/generated/public/GameStats.ts b/typescript/db/src/generated/public/GameStats.ts index 3301ce89b..366b0ef32 100644 --- a/typescript/db/src/generated/public/GameStats.ts +++ b/typescript/db/src/generated/public/GameStats.ts @@ -1,22 +1,22 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { default as Game } from './Game'; -import type { account_id } from './Account'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { default as Game } from "./Game"; +import type { account_id } from "./Account"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.game_stats */ export type game_stats_game = Game; /** Represents the table public.game_stats */ export default interface GameStatsTable { - user_id: ColumnType; + user_id: ColumnType; - game: ColumnType; + game: ColumnType; - ratings: ColumnType; + ratings: ColumnType; - classes: ColumnType; + classes: ColumnType; } export type GameStats = Selectable; diff --git a/typescript/db/src/generated/public/GameStatsSnapshot.ts b/typescript/db/src/generated/public/GameStatsSnapshot.ts index 579a8e336..425650c6e 100644 --- a/typescript/db/src/generated/public/GameStatsSnapshot.ts +++ b/typescript/db/src/generated/public/GameStatsSnapshot.ts @@ -1,9 +1,9 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { default as Game } from './Game'; -import type { account_id } from './Account'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { default as Game } from "./Game"; +import type { account_id } from "./Account"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.game_stats_snapshot */ export type game_stats_snapshot_game = Game; @@ -13,19 +13,23 @@ export type game_stats_snapshot_timestamp = string; /** Represents the table public.game_stats_snapshot */ export default interface GameStatsSnapshotTable { - user_id: ColumnType; + user_id: ColumnType; - game: ColumnType; + game: ColumnType; - timestamp: ColumnType; + timestamp: ColumnType< + game_stats_snapshot_timestamp, + game_stats_snapshot_timestamp, + game_stats_snapshot_timestamp + >; - playcount: ColumnType; + playcount: ColumnType; - ratings: ColumnType; + ratings: ColumnType; - classes: ColumnType; + classes: ColumnType; - rankings: ColumnType; + rankings: ColumnType; } export type GameStatsSnapshot = Selectable; diff --git a/typescript/db/src/generated/public/Goal.ts b/typescript/db/src/generated/public/Goal.ts index 119e29881..5f05d8bc5 100644 --- a/typescript/db/src/generated/public/Goal.ts +++ b/typescript/db/src/generated/public/Goal.ts @@ -1,23 +1,23 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { default as Game } from './Game'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { default as Game } from "./Game"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.goal */ export type goal_id = string; /** Represents the table public.goal */ export default interface GoalTable { - id: ColumnType; + id: ColumnType; - game: ColumnType; + game: ColumnType; - name: ColumnType; + name: ColumnType; - charts: ColumnType; + charts: ColumnType; - criteria: ColumnType; + criteria: ColumnType; } export type Goal = Selectable; diff --git a/typescript/db/src/generated/public/GoalSub.ts b/typescript/db/src/generated/public/GoalSub.ts index 8d27d3798..7b25ca413 100644 --- a/typescript/db/src/generated/public/GoalSub.ts +++ b/typescript/db/src/generated/public/GoalSub.ts @@ -1,33 +1,33 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { goal_id } from './Goal'; -import type { account_id } from './Account'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { goal_id } from "./Goal"; +import type { account_id } from "./Account"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Represents the table public.goal_sub */ export default interface GoalSubTable { - goal_id: ColumnType; + goal_id: ColumnType; - user_id: ColumnType; + user_id: ColumnType; - last_interaction: ColumnType; + last_interaction: ColumnType; - progress: ColumnType; + progress: ColumnType; - progress_human: ColumnType; + progress_human: ColumnType; - out_of: ColumnType; + out_of: ColumnType; - out_of_human: ColumnType; + out_of_human: ColumnType; - achieved: ColumnType; + achieved: ColumnType; - time_achieved: ColumnType; + time_achieved: ColumnType; - was_instantly_achieved: ColumnType; + was_instantly_achieved: ColumnType; - was_assigned_standalone: ColumnType; + was_assigned_standalone: ColumnType; } export type GoalSub = Selectable; diff --git a/typescript/db/src/generated/public/Import.ts b/typescript/db/src/generated/public/Import.ts index 6d670d408..e8e1bb7bd 100644 --- a/typescript/db/src/generated/public/Import.ts +++ b/typescript/db/src/generated/public/Import.ts @@ -1,31 +1,31 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { account_id } from './Account'; -import type { default as GameGroup } from './GameGroup'; -import type { default as ImportType } from './ImportType'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { account_id } from "./Account"; +import type { default as GameGroup } from "./GameGroup"; +import type { default as ImportType } from "./ImportType"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.import */ export type import_id = string; /** Represents the table public.import */ export default interface ImportTable { - id: ColumnType; + id: ColumnType; - user_id: ColumnType; + user_id: ColumnType; - time_started: ColumnType; + time_started: ColumnType; - time_finished: ColumnType; + time_finished: ColumnType; - game_group: ColumnType; + game_group: ColumnType; - import_type: ColumnType; + import_type: ColumnType; - user_intent: ColumnType; + user_intent: ColumnType; - service: ColumnType; + service: ColumnType; } export type Import = Selectable; diff --git a/typescript/db/src/generated/public/ImportClass.ts b/typescript/db/src/generated/public/ImportClass.ts index 1332b95f9..7ed4dc2f6 100644 --- a/typescript/db/src/generated/public/ImportClass.ts +++ b/typescript/db/src/generated/public/ImportClass.ts @@ -1,26 +1,26 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { import_id } from './Import'; -import type { default as Game } from './Game'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { import_id } from "./Import"; +import type { default as Game } from "./Game"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.import_class */ export type import_class_row_id = string; /** Represents the table public.import_class */ export default interface ImportClassTable { - row_id: ColumnType; + row_id: ColumnType; - import_id: ColumnType; + import_id: ColumnType; - game: ColumnType; + game: ColumnType; - set: ColumnType; + set: ColumnType; - prev: ColumnType; + prev: ColumnType; - 'new': ColumnType; + "new": ColumnType; } export type ImportClass = Selectable; diff --git a/typescript/db/src/generated/public/ImportError.ts b/typescript/db/src/generated/public/ImportError.ts index e844d7ee7..7ea7ba78e 100644 --- a/typescript/db/src/generated/public/ImportError.ts +++ b/typescript/db/src/generated/public/ImportError.ts @@ -1,21 +1,21 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { import_id } from './Import'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { import_id } from "./Import"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.import_error */ export type import_error_row_id = string; /** Represents the table public.import_error */ export default interface ImportErrorTable { - row_id: ColumnType; + row_id: ColumnType; - import_id: ColumnType; + import_id: ColumnType; - type: ColumnType; + type: ColumnType; - message: ColumnType; + message: ColumnType; } export type ImportError = Selectable; diff --git a/typescript/db/src/generated/public/ImportGame.ts b/typescript/db/src/generated/public/ImportGame.ts index b3960671c..92b42b97a 100644 --- a/typescript/db/src/generated/public/ImportGame.ts +++ b/typescript/db/src/generated/public/ImportGame.ts @@ -1,18 +1,18 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { default as Game } from './Game'; -import type { import_id } from './Import'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { default as Game } from "./Game"; +import type { import_id } from "./Import"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.import_game */ export type import_game_game = Game; /** Represents the table public.import_game */ export default interface ImportGameTable { - id: ColumnType; + id: ColumnType; - game: ColumnType; + game: ColumnType; } export type ImportGame = Selectable; diff --git a/typescript/db/src/generated/public/ImportGoal.ts b/typescript/db/src/generated/public/ImportGoal.ts index 7264d7478..e38f6e1a8 100644 --- a/typescript/db/src/generated/public/ImportGoal.ts +++ b/typescript/db/src/generated/public/ImportGoal.ts @@ -1,40 +1,40 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { import_id } from './Import'; -import type { goal_id } from './Goal'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { import_id } from "./Import"; +import type { goal_id } from "./Goal"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.import_goal */ export type import_goal_row_id = string; /** Represents the table public.import_goal */ export default interface ImportGoalTable { - row_id: ColumnType; + row_id: ColumnType; - import_id: ColumnType; + import_id: ColumnType; - goal_id: ColumnType; + goal_id: ColumnType; - prev_achieved: ColumnType; + prev_achieved: ColumnType; - prev_out_of: ColumnType; + prev_out_of: ColumnType; - prev_out_of_human: ColumnType; + prev_out_of_human: ColumnType; - prev_progress: ColumnType; + prev_progress: ColumnType; - prev_progress_human: ColumnType; + prev_progress_human: ColumnType; - new_achieved: ColumnType; + new_achieved: ColumnType; - new_out_of: ColumnType; + new_out_of: ColumnType; - new_out_of_human: ColumnType; + new_out_of_human: ColumnType; - new_progress: ColumnType; + new_progress: ColumnType; - new_progress_human: ColumnType; + new_progress_human: ColumnType; } export type ImportGoal = Selectable; diff --git a/typescript/db/src/generated/public/ImportLock.ts b/typescript/db/src/generated/public/ImportLock.ts index e76a00bed..79b157ebc 100644 --- a/typescript/db/src/generated/public/ImportLock.ts +++ b/typescript/db/src/generated/public/ImportLock.ts @@ -1,16 +1,16 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { account_id } from './Account'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { account_id } from "./Account"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Represents the table public.import_lock */ export default interface ImportLockTable { - user_id: ColumnType; + user_id: ColumnType; - locked: ColumnType; + locked: ColumnType; - locked_at: ColumnType; + locked_at: ColumnType; } export type ImportLock = Selectable; diff --git a/typescript/db/src/generated/public/ImportQuest.ts b/typescript/db/src/generated/public/ImportQuest.ts index eded4ae61..1cc67bdfd 100644 --- a/typescript/db/src/generated/public/ImportQuest.ts +++ b/typescript/db/src/generated/public/ImportQuest.ts @@ -1,28 +1,28 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { import_id } from './Import'; -import type { quest_id } from './Quest'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { import_id } from "./Import"; +import type { quest_id } from "./Quest"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.import_quest */ export type import_quest_row_id = string; /** Represents the table public.import_quest */ export default interface ImportQuestTable { - row_id: ColumnType; + row_id: ColumnType; - import_id: ColumnType; + import_id: ColumnType; - quest_id: ColumnType; + quest_id: ColumnType; - prev_achieved: ColumnType; + prev_achieved: ColumnType; - prev_progress: ColumnType; + prev_progress: ColumnType; - new_achieved: ColumnType; + new_achieved: ColumnType; - new_progress: ColumnType; + new_progress: ColumnType; } export type ImportQuest = Selectable; diff --git a/typescript/db/src/generated/public/ImportSession.ts b/typescript/db/src/generated/public/ImportSession.ts index 8c319d03b..9b4d05c26 100644 --- a/typescript/db/src/generated/public/ImportSession.ts +++ b/typescript/db/src/generated/public/ImportSession.ts @@ -1,22 +1,26 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { import_id } from './Import'; -import type { session_id } from './Session'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { import_id } from "./Import"; +import type { session_id } from "./Session"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.import_session */ export type import_session_row_id = string; /** Represents the table public.import_session */ export default interface ImportSessionTable { - row_id: ColumnType; + row_id: ColumnType< + import_session_row_id, + import_session_row_id | undefined, + import_session_row_id + >; - import_id: ColumnType; + import_id: ColumnType; - session_id: ColumnType; + session_id: ColumnType; - type: ColumnType; + type: ColumnType; } export type ImportSession = Selectable; diff --git a/typescript/db/src/generated/public/ImportTiming.ts b/typescript/db/src/generated/public/ImportTiming.ts index a02605a3c..950352090 100644 --- a/typescript/db/src/generated/public/ImportTiming.ts +++ b/typescript/db/src/generated/public/ImportTiming.ts @@ -1,40 +1,40 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { import_id } from './Import'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { import_id } from "./Import"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Represents the table public.import_timing */ export default interface ImportTimingTable { - id: ColumnType; + id: ColumnType; - timestamp: ColumnType; + timestamp: ColumnType; - import_secs_avg: ColumnType; + import_secs_avg: ColumnType; - import_parse_secs_avg: ColumnType; + import_parse_secs_avg: ColumnType; - pb_secs_avg: ColumnType; + pb_secs_avg: ColumnType; - session_secs_avg: ColumnType; + session_secs_avg: ColumnType; - parse_secs: ColumnType; + parse_secs: ColumnType; - import_secs: ColumnType; + import_secs: ColumnType; - import_parse_secs: ColumnType; + import_parse_secs: ColumnType; - session_secs: ColumnType; + session_secs: ColumnType; - pb_secs: ColumnType; + pb_secs: ColumnType; - ugs_secs: ColumnType; + ugs_secs: ColumnType; - goal_secs: ColumnType; + goal_secs: ColumnType; - quest_secs: ColumnType; + quest_secs: ColumnType; - total_secs: ColumnType; + total_secs: ColumnType; } export type ImportTiming = Selectable; diff --git a/typescript/db/src/generated/public/ImportTracker.ts b/typescript/db/src/generated/public/ImportTracker.ts index ea6ba39fb..1a53c637c 100644 --- a/typescript/db/src/generated/public/ImportTracker.ts +++ b/typescript/db/src/generated/public/ImportTracker.ts @@ -1,26 +1,30 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { account_id } from './Account'; -import type { default as ImportType } from './ImportType'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { account_id } from "./Account"; +import type { default as ImportType } from "./ImportType"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.import_tracker */ export type import_tracker_import_id = string; /** Represents the table public.import_tracker */ export default interface ImportTrackerTable { - import_id: ColumnType; + import_id: ColumnType< + import_tracker_import_id, + import_tracker_import_id, + import_tracker_import_id + >; - user_id: ColumnType; + user_id: ColumnType; - import_type: ColumnType; + import_type: ColumnType; - user_intent: ColumnType; + user_intent: ColumnType; - time_started: ColumnType; + time_started: ColumnType; - error: ColumnType; + error: ColumnType; } export type ImportTracker = Selectable; diff --git a/typescript/db/src/generated/public/ImportType.ts b/typescript/db/src/generated/public/ImportType.ts index 27d13eb1b..dd7d269f5 100644 --- a/typescript/db/src/generated/public/ImportType.ts +++ b/typescript/db/src/generated/public/ImportType.ts @@ -2,46 +2,46 @@ // This file is automatically generated by Kanel. Do not modify manually. /** Represents the enum public.import_type */ -type ImportType = - | 'file/batch-manual' - | 'file/eamusement-iidx-csv' - | 'file/eamusement-sdvx-csv' - | 'file/mypagescraper-player-csv' - | 'file/mypagescraper-records-csv' - | 'file/pli-iidx-csv' - | 'file/solid-state-squad' - | 'api/arc-iidx' - | 'api/arc-sdvx' - | 'api/mer-iidx' - | 'api/eag-iidx' - | 'api/eag-sdvx' - | 'api/flo-iidx' - | 'api/flo-sdvx' - | 'api/min-sdvx' - | 'api/myt-chunithm' - | 'api/myt-maimaidx' - | 'api/myt-ongeki' - | 'api/myt-wacca' - | 'api/cg-dev-jubeat' - | 'api/cg-dev-museca' - | 'api/cg-dev-popn' - | 'api/cg-dev-sdvx' - | 'api/cg-gan-jubeat' - | 'api/cg-gan-museca' - | 'api/cg-gan-popn' - | 'api/cg-gan-sdvx' - | 'api/cg-nag-jubeat' - | 'api/cg-nag-museca' - | 'api/cg-nag-popn' - | 'api/cg-nag-sdvx' - | 'ir/barbatos' - | 'ir/beatoraja' - | 'ir/direct-manual' - | 'ir/fervidex-static' - | 'ir/fervidex' - | 'ir/kshook-sv6c-static' - | 'ir/kshook-sv6c' - | 'ir/lr2hook' - | 'ir/usc'; +type ImportType = + | "file/batch-manual" + | "file/eamusement-iidx-csv" + | "file/eamusement-sdvx-csv" + | "file/mypagescraper-player-csv" + | "file/mypagescraper-records-csv" + | "file/pli-iidx-csv" + | "file/solid-state-squad" + | "api/arc-iidx" + | "api/arc-sdvx" + | "api/mer-iidx" + | "api/eag-iidx" + | "api/eag-sdvx" + | "api/flo-iidx" + | "api/flo-sdvx" + | "api/min-sdvx" + | "api/myt-chunithm" + | "api/myt-maimaidx" + | "api/myt-ongeki" + | "api/myt-wacca" + | "api/cg-dev-jubeat" + | "api/cg-dev-museca" + | "api/cg-dev-popn" + | "api/cg-dev-sdvx" + | "api/cg-gan-jubeat" + | "api/cg-gan-museca" + | "api/cg-gan-popn" + | "api/cg-gan-sdvx" + | "api/cg-nag-jubeat" + | "api/cg-nag-museca" + | "api/cg-nag-popn" + | "api/cg-nag-sdvx" + | "ir/barbatos" + | "ir/beatoraja" + | "ir/direct-manual" + | "ir/fervidex-static" + | "ir/fervidex" + | "ir/kshook-sv6c-static" + | "ir/kshook-sv6c" + | "ir/lr2hook" + | "ir/usc"; export default ImportType; diff --git a/typescript/db/src/generated/public/InviteLock.ts b/typescript/db/src/generated/public/InviteLock.ts index cf9f7f20d..aaba9ff9c 100644 --- a/typescript/db/src/generated/public/InviteLock.ts +++ b/typescript/db/src/generated/public/InviteLock.ts @@ -1,16 +1,16 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { account_id } from './Account'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { account_id } from "./Account"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Represents the table public.invite_lock */ export default interface InviteLockTable { - user_id: ColumnType; + user_id: ColumnType; - locked: ColumnType; + locked: ColumnType; - locked_at: ColumnType; + locked_at: ColumnType; } export type InviteLock = Selectable; diff --git a/typescript/db/src/generated/public/JobQueue.ts b/typescript/db/src/generated/public/JobQueue.ts index d2f208e37..954ec6eba 100644 --- a/typescript/db/src/generated/public/JobQueue.ts +++ b/typescript/db/src/generated/public/JobQueue.ts @@ -1,30 +1,30 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.job_queue */ export type job_queue_row_id = string; /** Represents the table public.job_queue */ export default interface JobQueueTable { - row_id: ColumnType; + row_id: ColumnType; - created_at: ColumnType; + created_at: ColumnType; - updated_at: ColumnType; + updated_at: ColumnType; - scheduled_for: ColumnType; + scheduled_for: ColumnType; - failed_attempts: ColumnType; + failed_attempts: ColumnType; - status: ColumnType; + status: ColumnType; - scope: ColumnType; + scope: ColumnType; - job_kind: ColumnType; + job_kind: ColumnType; - payload: ColumnType; + payload: ColumnType; } export type JobQueue = Selectable; diff --git a/typescript/db/src/generated/public/Migration.ts b/typescript/db/src/generated/public/Migration.ts index 29b48277a..7a4dd594c 100644 --- a/typescript/db/src/generated/public/Migration.ts +++ b/typescript/db/src/generated/public/Migration.ts @@ -1,21 +1,21 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Represents the table public._migration */ export default interface MigrationTable { - version: ColumnType; + version: ColumnType; - description: ColumnType; + description: ColumnType; - installed_on: ColumnType; + installed_on: ColumnType; - success: ColumnType; + success: ColumnType; - checksum: ColumnType; + checksum: ColumnType; - execution_time: ColumnType; + execution_time: ColumnType; } export type Migration = Selectable; diff --git a/typescript/db/src/generated/public/Notification.ts b/typescript/db/src/generated/public/Notification.ts index 1b73ace84..a6c75713e 100644 --- a/typescript/db/src/generated/public/Notification.ts +++ b/typescript/db/src/generated/public/Notification.ts @@ -1,27 +1,27 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { account_id } from './Account'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { account_id } from "./Account"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.notification */ export type notification_row_id = string; /** Represents the table public.notification */ export default interface NotificationTable { - row_id: ColumnType; + row_id: ColumnType; - title: ColumnType; + title: ColumnType; - sent_to: ColumnType; + sent_to: ColumnType; - sent_at: ColumnType; + sent_at: ColumnType; - read: ColumnType; + read: ColumnType; - kind: ColumnType; + kind: ColumnType; - payload: ColumnType; + payload: ColumnType; } export type Notification = Selectable; diff --git a/typescript/db/src/generated/public/OrphanChart.ts b/typescript/db/src/generated/public/OrphanChart.ts index c6359f702..d1d9ce0c3 100644 --- a/typescript/db/src/generated/public/OrphanChart.ts +++ b/typescript/db/src/generated/public/OrphanChart.ts @@ -1,21 +1,21 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { default as Game } from './Game'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { default as Game } from "./Game"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.orphan_chart */ export type orphan_chart_id = string; /** Represents the table public.orphan_chart */ export default interface OrphanChartTable { - id: ColumnType; + id: ColumnType; - game: ColumnType; + game: ColumnType; - chart_doc: ColumnType; + chart_doc: ColumnType; - song_doc: ColumnType; + song_doc: ColumnType; } export type OrphanChart = Selectable; diff --git a/typescript/db/src/generated/public/OrphanChartUser.ts b/typescript/db/src/generated/public/OrphanChartUser.ts index 0f79a3b3f..a4e9a110a 100644 --- a/typescript/db/src/generated/public/OrphanChartUser.ts +++ b/typescript/db/src/generated/public/OrphanChartUser.ts @@ -1,15 +1,15 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { orphan_chart_id } from './OrphanChart'; -import type { account_id } from './Account'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { orphan_chart_id } from "./OrphanChart"; +import type { account_id } from "./Account"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Represents the table public.orphan_chart_user */ export default interface OrphanChartUserTable { - orphan_chart_id: ColumnType; + orphan_chart_id: ColumnType; - user_id: ColumnType; + user_id: ColumnType; } export type OrphanChartUser = Selectable; diff --git a/typescript/db/src/generated/public/OrphanScore.ts b/typescript/db/src/generated/public/OrphanScore.ts index 22960eb06..8f33d08fd 100644 --- a/typescript/db/src/generated/public/OrphanScore.ts +++ b/typescript/db/src/generated/public/OrphanScore.ts @@ -1,28 +1,28 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { account_id } from './Account'; -import type { import_id } from './Import'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { account_id } from "./Account"; +import type { import_id } from "./Import"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.orphan_score */ export type orphan_score_row_id = string; /** Represents the table public.orphan_score */ export default interface OrphanScoreTable { - row_id: ColumnType; + row_id: ColumnType; - user_id: ColumnType; + user_id: ColumnType; - import_id: ColumnType; + import_id: ColumnType; - data: ColumnType; + data: ColumnType; - context: ColumnType; + context: ColumnType; - time_inserted: ColumnType; + time_inserted: ColumnType; - error_message: ColumnType; + error_message: ColumnType; } export type OrphanScore = Selectable; diff --git a/typescript/db/src/generated/public/Pb.ts b/typescript/db/src/generated/public/Pb.ts index 3ae0bc75d..1412f5fa8 100644 --- a/typescript/db/src/generated/public/Pb.ts +++ b/typescript/db/src/generated/public/Pb.ts @@ -1,44 +1,44 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { account_id } from './Account'; -import type { chart_id } from './Chart'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { account_id } from "./Account"; +import type { chart_id } from "./Chart"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.pb */ export type pb_row_id = string; /** Represents the table public.pb */ export default interface PbTable { - row_id: ColumnType; + row_id: ColumnType; - user_id: ColumnType; + user_id: ColumnType; - chart_id: ColumnType; + chart_id: ColumnType; - lens: ColumnType; + lens: ColumnType; - data: ColumnType; + data: ColumnType; - derived_data: ColumnType; + derived_data: ColumnType; - calculated_data: ColumnType; + calculated_data: ColumnType; - ranking_value: ColumnType; + ranking_value: ColumnType; - ranking_value_tb1: ColumnType; + ranking_value_tb1: ColumnType; - ranking_value_tb2: ColumnType; + ranking_value_tb2: ColumnType; - ranking_value_tb3: ColumnType; + ranking_value_tb3: ColumnType; - ranking_value_tb4: ColumnType; + ranking_value_tb4: ColumnType; - ranking_value_tb5: ColumnType; + ranking_value_tb5: ColumnType; - highlight: ColumnType; + highlight: ColumnType; - time_achieved: ColumnType; + time_achieved: ColumnType; } export type Pb = Selectable; diff --git a/typescript/db/src/generated/public/PbComposedFrom.ts b/typescript/db/src/generated/public/PbComposedFrom.ts index f6296961b..1ec07bcf5 100644 --- a/typescript/db/src/generated/public/PbComposedFrom.ts +++ b/typescript/db/src/generated/public/PbComposedFrom.ts @@ -1,15 +1,15 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { pb_row_id } from './Pb'; -import type { score_id } from './Score'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { pb_row_id } from "./Pb"; +import type { score_id } from "./Score"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Represents the table public.pb_composed_from */ export default interface PbComposedFromTable { - pb_id: ColumnType; + pb_id: ColumnType; - score_id: ColumnType; + score_id: ColumnType; } export type PbComposedFrom = Selectable; diff --git a/typescript/db/src/generated/public/PrivAccountCredential.ts b/typescript/db/src/generated/public/PrivAccountCredential.ts index a92d42be6..7b95b4962 100644 --- a/typescript/db/src/generated/public/PrivAccountCredential.ts +++ b/typescript/db/src/generated/public/PrivAccountCredential.ts @@ -1,16 +1,16 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { account_id } from './Account'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { account_id } from "./Account"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Represents the table public.priv_account_credential */ export default interface PrivAccountCredentialTable { - user_id: ColumnType; + user_id: ColumnType; - password: ColumnType; + password: ColumnType; - email: ColumnType; + email: ColumnType; } export type PrivAccountCredential = Selectable; diff --git a/typescript/db/src/generated/public/PrivApiClient.ts b/typescript/db/src/generated/public/PrivApiClient.ts index ad14019e7..394e32a19 100644 --- a/typescript/db/src/generated/public/PrivApiClient.ts +++ b/typescript/db/src/generated/public/PrivApiClient.ts @@ -1,41 +1,45 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { account_id } from './Account'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { account_id } from "./Account"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.priv_api_client */ export type priv_api_client_client_id = string; /** Represents the table public.priv_api_client */ export default interface PrivApiClientTable { - client_id: ColumnType; + client_id: ColumnType< + priv_api_client_client_id, + priv_api_client_client_id, + priv_api_client_client_id + >; - client_secret: ColumnType; + client_secret: ColumnType; - name: ColumnType; + name: ColumnType; - author: ColumnType; + author: ColumnType; - pm_customise_profile: ColumnType; + pm_customise_profile: ColumnType; - pm_customise_score: ColumnType; + pm_customise_score: ColumnType; - pm_customise_session: ColumnType; + pm_customise_session: ColumnType; - pm_delete_score: ColumnType; + pm_delete_score: ColumnType; - pm_manage_rivals: ColumnType; + pm_manage_rivals: ColumnType; - pm_manage_targets: ColumnType; + pm_manage_targets: ColumnType; - pm_submit_score: ColumnType; + pm_submit_score: ColumnType; - pm_manage_challenges: ColumnType; + pm_manage_challenges: ColumnType; - api_key_template: ColumnType; + api_key_template: ColumnType; - api_key_filename: ColumnType; + api_key_filename: ColumnType; } export type PrivApiClient = Selectable; diff --git a/typescript/db/src/generated/public/PrivApiToken.ts b/typescript/db/src/generated/public/PrivApiToken.ts index a45220b8b..0784a862b 100644 --- a/typescript/db/src/generated/public/PrivApiToken.ts +++ b/typescript/db/src/generated/public/PrivApiToken.ts @@ -1,38 +1,42 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { account_id } from './Account'; -import type { priv_api_client_client_id } from './PrivApiClient'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { account_id } from "./Account"; +import type { priv_api_client_client_id } from "./PrivApiClient"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.priv_api_token */ export type priv_api_token_token = string; /** Represents the table public.priv_api_token */ export default interface PrivApiTokenTable { - token: ColumnType; + token: ColumnType; - user_id: ColumnType; + user_id: ColumnType; - identifier: ColumnType; + identifier: ColumnType; - pm_customise_profile: ColumnType; + pm_customise_profile: ColumnType; - pm_customise_score: ColumnType; + pm_customise_score: ColumnType; - pm_customise_session: ColumnType; + pm_customise_session: ColumnType; - pm_delete_score: ColumnType; + pm_delete_score: ColumnType; - pm_manage_rivals: ColumnType; + pm_manage_rivals: ColumnType; - pm_manage_targets: ColumnType; + pm_manage_targets: ColumnType; - pm_submit_score: ColumnType; + pm_submit_score: ColumnType; - pm_manage_challenges: ColumnType; + pm_manage_challenges: ColumnType; - from_oauth2_client: ColumnType; + from_oauth2_client: ColumnType< + priv_api_client_client_id | null, + priv_api_client_client_id | null, + priv_api_client_client_id | null + >; } export type PrivApiToken = Selectable; diff --git a/typescript/db/src/generated/public/PrivInvite.ts b/typescript/db/src/generated/public/PrivInvite.ts index 0171e0cc2..3cd4e2dfc 100644 --- a/typescript/db/src/generated/public/PrivInvite.ts +++ b/typescript/db/src/generated/public/PrivInvite.ts @@ -1,25 +1,25 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { account_id } from './Account'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { account_id } from "./Account"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.priv_invite */ export type priv_invite_code = string; /** Represents the table public.priv_invite */ export default interface PrivInviteTable { - code: ColumnType; + code: ColumnType; - created_by: ColumnType; + created_by: ColumnType; - created_at: ColumnType; + created_at: ColumnType; - consumed: ColumnType; + consumed: ColumnType; - consumed_by: ColumnType; + consumed_by: ColumnType; - consumed_at: ColumnType; + consumed_at: ColumnType; } export type PrivInvite = Selectable; diff --git a/typescript/db/src/generated/public/PrivOauth2AuthToken.ts b/typescript/db/src/generated/public/PrivOauth2AuthToken.ts index 160846e65..6e791f788 100644 --- a/typescript/db/src/generated/public/PrivOauth2AuthToken.ts +++ b/typescript/db/src/generated/public/PrivOauth2AuthToken.ts @@ -1,19 +1,23 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { account_id } from './Account'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { account_id } from "./Account"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.priv_oauth2_auth_token */ export type priv_oauth2_auth_token_token = string; /** Represents the table public.priv_oauth2_auth_token */ export default interface PrivOauth2AuthTokenTable { - token: ColumnType; + token: ColumnType< + priv_oauth2_auth_token_token, + priv_oauth2_auth_token_token, + priv_oauth2_auth_token_token + >; - created_on: ColumnType; + created_on: ColumnType; - user_id: ColumnType; + user_id: ColumnType; } export type PrivOauth2AuthToken = Selectable; diff --git a/typescript/db/src/generated/public/PrivPasswordResetToken.ts b/typescript/db/src/generated/public/PrivPasswordResetToken.ts index ae9133345..6b6cc4609 100644 --- a/typescript/db/src/generated/public/PrivPasswordResetToken.ts +++ b/typescript/db/src/generated/public/PrivPasswordResetToken.ts @@ -1,19 +1,23 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { account_id } from './Account'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { account_id } from "./Account"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.priv_password_reset_token */ export type priv_password_reset_token_token = string; /** Represents the table public.priv_password_reset_token */ export default interface PrivPasswordResetTokenTable { - token: ColumnType; + token: ColumnType< + priv_password_reset_token_token, + priv_password_reset_token_token, + priv_password_reset_token_token + >; - created_on: ColumnType; + created_on: ColumnType; - user_id: ColumnType; + user_id: ColumnType; } export type PrivPasswordResetToken = Selectable; diff --git a/typescript/db/src/generated/public/PrivSvcCgCardInfo.ts b/typescript/db/src/generated/public/PrivSvcCgCardInfo.ts index 5ccaadb62..3b7d16a17 100644 --- a/typescript/db/src/generated/public/PrivSvcCgCardInfo.ts +++ b/typescript/db/src/generated/public/PrivSvcCgCardInfo.ts @@ -1,21 +1,25 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { account_id } from './Account'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { account_id } from "./Account"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.priv_svc_cg_card_info */ export type priv_svc_cg_card_info_service = string; /** Represents the table public.priv_svc_cg_card_info */ export default interface PrivSvcCgCardInfoTable { - user_id: ColumnType; + user_id: ColumnType; - service: ColumnType; + service: ColumnType< + priv_svc_cg_card_info_service, + priv_svc_cg_card_info_service, + priv_svc_cg_card_info_service + >; - card_id: ColumnType; + card_id: ColumnType; - pin: ColumnType; + pin: ColumnType; } export type PrivSvcCgCardInfo = Selectable; diff --git a/typescript/db/src/generated/public/PrivSvcFerCard.ts b/typescript/db/src/generated/public/PrivSvcFerCard.ts index 2aaf0e082..fbf7d4918 100644 --- a/typescript/db/src/generated/public/PrivSvcFerCard.ts +++ b/typescript/db/src/generated/public/PrivSvcFerCard.ts @@ -1,17 +1,21 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { account_id } from './Account'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { account_id } from "./Account"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.priv_svc_fer_card */ export type priv_svc_fer_card_card_id = string; /** Represents the table public.priv_svc_fer_card */ export default interface PrivSvcFerCardTable { - user_id: ColumnType; + user_id: ColumnType; - card_id: ColumnType; + card_id: ColumnType< + priv_svc_fer_card_card_id, + priv_svc_fer_card_card_id, + priv_svc_fer_card_card_id + >; } export type PrivSvcFerCard = Selectable; diff --git a/typescript/db/src/generated/public/PrivSvcKaiAuthToken.ts b/typescript/db/src/generated/public/PrivSvcKaiAuthToken.ts index ee3e106bd..558a9018d 100644 --- a/typescript/db/src/generated/public/PrivSvcKaiAuthToken.ts +++ b/typescript/db/src/generated/public/PrivSvcKaiAuthToken.ts @@ -1,21 +1,25 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { account_id } from './Account'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { account_id } from "./Account"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.priv_svc_kai_auth_token */ export type priv_svc_kai_auth_token_service = string; /** Represents the table public.priv_svc_kai_auth_token */ export default interface PrivSvcKaiAuthTokenTable { - user_id: ColumnType; + user_id: ColumnType; - service: ColumnType; + service: ColumnType< + priv_svc_kai_auth_token_service, + priv_svc_kai_auth_token_service, + priv_svc_kai_auth_token_service + >; - token: ColumnType; + token: ColumnType; - refresh_token: ColumnType; + refresh_token: ColumnType; } export type PrivSvcKaiAuthToken = Selectable; diff --git a/typescript/db/src/generated/public/PrivSvcMytCardInfo.ts b/typescript/db/src/generated/public/PrivSvcMytCardInfo.ts index fd1a3d225..ceae9f943 100644 --- a/typescript/db/src/generated/public/PrivSvcMytCardInfo.ts +++ b/typescript/db/src/generated/public/PrivSvcMytCardInfo.ts @@ -1,17 +1,21 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { account_id } from './Account'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { account_id } from "./Account"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.priv_svc_myt_card_info */ export type priv_svc_myt_card_info_card_access_code = string; /** Represents the table public.priv_svc_myt_card_info */ export default interface PrivSvcMytCardInfoTable { - card_access_code: ColumnType; + card_access_code: ColumnType< + priv_svc_myt_card_info_card_access_code, + priv_svc_myt_card_info_card_access_code, + priv_svc_myt_card_info_card_access_code + >; - user_id: ColumnType; + user_id: ColumnType; } export type PrivSvcMytCardInfo = Selectable; diff --git a/typescript/db/src/generated/public/PrivVerifyEmailToken.ts b/typescript/db/src/generated/public/PrivVerifyEmailToken.ts index e008ce3f0..6a3f07a5f 100644 --- a/typescript/db/src/generated/public/PrivVerifyEmailToken.ts +++ b/typescript/db/src/generated/public/PrivVerifyEmailToken.ts @@ -1,19 +1,23 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { account_id } from './Account'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { account_id } from "./Account"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.priv_verify_email_token */ export type priv_verify_email_token_token = string; /** Represents the table public.priv_verify_email_token */ export default interface PrivVerifyEmailTokenTable { - token: ColumnType; + token: ColumnType< + priv_verify_email_token_token, + priv_verify_email_token_token, + priv_verify_email_token_token + >; - email: ColumnType; + email: ColumnType; - user_id: ColumnType; + user_id: ColumnType; } export type PrivVerifyEmailToken = Selectable; diff --git a/typescript/db/src/generated/public/PublicSchema.ts b/typescript/db/src/generated/public/PublicSchema.ts index 85f12c20d..edd25b1a5 100644 --- a/typescript/db/src/generated/public/PublicSchema.ts +++ b/typescript/db/src/generated/public/PublicSchema.ts @@ -1,206 +1,206 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { default as PrivSvcCgCardInfoTable } from './PrivSvcCgCardInfo'; -import type { default as ClassAchievementTable } from './ClassAchievement'; -import type { default as AccountTable } from './Account'; -import type { default as ImportTrackerTable } from './ImportTracker'; -import type { default as SvcFerSettingsTable } from './SvcFerSettings'; -import type { default as InviteLockTable } from './InviteLock'; -import type { default as OrphanChartTable } from './OrphanChart'; -import type { default as GameRivalTable } from './GameRival'; -import type { default as GoalTable } from './Goal'; -import type { default as GameSettingsTable } from './GameSettings'; -import type { default as ImportQuestTable } from './ImportQuest'; -import type { default as CronTaskExecutionTable } from './CronTaskExecution'; -import type { default as NotificationTable } from './Notification'; -import type { default as ImportLockTable } from './ImportLock'; -import type { default as ScoreBlacklistTable } from './ScoreBlacklist'; -import type { default as TableFolderTable } from './TableFolder'; -import type { default as GameStatsTable } from './GameStats'; -import type { default as PrivOauth2AuthTokenTable } from './PrivOauth2AuthToken'; -import type { default as ImportSessionTable } from './ImportSession'; -import type { default as PrivSvcFerCardTable } from './PrivSvcFerCard'; -import type { default as PbComposedFromTable } from './PbComposedFrom'; -import type { default as BmsCourseLookupTable } from './BmsCourseLookup'; -import type { default as SongSearchTermTable } from './SongSearchTerm'; -import type { default as ImportGameTable } from './ImportGame'; -import type { default as ImportGoalTable } from './ImportGoal'; -import type { default as OrphanChartUserTable } from './OrphanChartUser'; -import type { default as PrivVerifyEmailTokenTable } from './PrivVerifyEmailToken'; -import type { default as PrivInviteTable } from './PrivInvite'; -import type { default as SessionTable } from './Session'; -import type { default as PrivPasswordResetTokenTable } from './PrivPasswordResetToken'; -import type { default as SongTable } from './Song'; -import type { default as AccountUsernameChangeTable } from './AccountUsernameChange'; -import type { default as MigrationTable } from './Migration'; -import type { default as AccountBadgeTable } from './AccountBadge'; -import type { default as ActionTable } from './Action'; -import type { default as PrivSvcKaiAuthTokenTable } from './PrivSvcKaiAuthToken'; -import type { default as ChartTable } from './Chart'; -import type { default as GameSettingsShowcaseTable } from './GameSettingsShowcase'; -import type { default as AccountFollowingTable } from './AccountFollowing'; -import type { default as ImportTable } from './Import'; -import type { default as FolderTable } from './Folder'; -import type { default as PrivAccountCredentialTable } from './PrivAccountCredential'; -import type { default as ScoreTable } from './Score'; -import type { default as ImportTimingTable } from './ImportTiming'; -import type { default as QuestSubTable } from './QuestSub'; -import type { default as OrphanScoreTable } from './OrphanScore'; -import type { default as FolderViewTable } from './FolderView'; -import type { default as TableTable } from './Table'; -import type { default as ChartVersionTable } from './ChartVersion'; -import type { default as GoalSubTable } from './GoalSub'; -import type { default as FolderSearchTermTable } from './FolderSearchTerm'; -import type { default as JobQueueTable } from './JobQueue'; -import type { default as PrivApiClientTable } from './PrivApiClient'; -import type { default as PrivApiTokenTable } from './PrivApiToken'; -import type { default as SvcKshookSv6cSettingsTable } from './SvcKshookSv6cSettings'; -import type { default as ImportErrorTable } from './ImportError'; -import type { default as QuestTable } from './Quest'; -import type { default as AccountSettingsTable } from './AccountSettings'; -import type { default as PbTable } from './Pb'; -import type { default as PrivSvcMytCardInfoTable } from './PrivSvcMytCardInfo'; -import type { default as QuestlineQuestTable } from './QuestlineQuest'; -import type { default as QuestlineTable } from './Questline'; -import type { default as CronTaskTable } from './CronTask'; -import type { default as ImportClassTable } from './ImportClass'; -import type { default as SongAltTitleTable } from './SongAltTitle'; -import type { default as GameStatsSnapshotTable } from './GameStatsSnapshot'; -import type { default as ChartLeaderboardTable } from './ChartLeaderboard'; +import type { default as PrivSvcCgCardInfoTable } from "./PrivSvcCgCardInfo"; +import type { default as ClassAchievementTable } from "./ClassAchievement"; +import type { default as AccountTable } from "./Account"; +import type { default as ImportTrackerTable } from "./ImportTracker"; +import type { default as SvcFerSettingsTable } from "./SvcFerSettings"; +import type { default as InviteLockTable } from "./InviteLock"; +import type { default as OrphanChartTable } from "./OrphanChart"; +import type { default as GameRivalTable } from "./GameRival"; +import type { default as GoalTable } from "./Goal"; +import type { default as GameSettingsTable } from "./GameSettings"; +import type { default as ImportQuestTable } from "./ImportQuest"; +import type { default as CronTaskExecutionTable } from "./CronTaskExecution"; +import type { default as NotificationTable } from "./Notification"; +import type { default as ImportLockTable } from "./ImportLock"; +import type { default as ScoreBlacklistTable } from "./ScoreBlacklist"; +import type { default as TableFolderTable } from "./TableFolder"; +import type { default as GameStatsTable } from "./GameStats"; +import type { default as PrivOauth2AuthTokenTable } from "./PrivOauth2AuthToken"; +import type { default as ImportSessionTable } from "./ImportSession"; +import type { default as PrivSvcFerCardTable } from "./PrivSvcFerCard"; +import type { default as PbComposedFromTable } from "./PbComposedFrom"; +import type { default as BmsCourseLookupTable } from "./BmsCourseLookup"; +import type { default as SongSearchTermTable } from "./SongSearchTerm"; +import type { default as ImportGameTable } from "./ImportGame"; +import type { default as ImportGoalTable } from "./ImportGoal"; +import type { default as OrphanChartUserTable } from "./OrphanChartUser"; +import type { default as PrivVerifyEmailTokenTable } from "./PrivVerifyEmailToken"; +import type { default as PrivInviteTable } from "./PrivInvite"; +import type { default as SessionTable } from "./Session"; +import type { default as PrivPasswordResetTokenTable } from "./PrivPasswordResetToken"; +import type { default as SongTable } from "./Song"; +import type { default as AccountUsernameChangeTable } from "./AccountUsernameChange"; +import type { default as MigrationTable } from "./Migration"; +import type { default as AccountBadgeTable } from "./AccountBadge"; +import type { default as ActionTable } from "./Action"; +import type { default as PrivSvcKaiAuthTokenTable } from "./PrivSvcKaiAuthToken"; +import type { default as ChartTable } from "./Chart"; +import type { default as GameSettingsShowcaseTable } from "./GameSettingsShowcase"; +import type { default as AccountFollowingTable } from "./AccountFollowing"; +import type { default as ImportTable } from "./Import"; +import type { default as FolderTable } from "./Folder"; +import type { default as PrivAccountCredentialTable } from "./PrivAccountCredential"; +import type { default as ScoreTable } from "./Score"; +import type { default as ImportTimingTable } from "./ImportTiming"; +import type { default as QuestSubTable } from "./QuestSub"; +import type { default as OrphanScoreTable } from "./OrphanScore"; +import type { default as FolderViewTable } from "./FolderView"; +import type { default as TableTable } from "./Table"; +import type { default as ChartVersionTable } from "./ChartVersion"; +import type { default as GoalSubTable } from "./GoalSub"; +import type { default as FolderSearchTermTable } from "./FolderSearchTerm"; +import type { default as JobQueueTable } from "./JobQueue"; +import type { default as PrivApiClientTable } from "./PrivApiClient"; +import type { default as PrivApiTokenTable } from "./PrivApiToken"; +import type { default as SvcKshookSv6cSettingsTable } from "./SvcKshookSv6cSettings"; +import type { default as ImportErrorTable } from "./ImportError"; +import type { default as QuestTable } from "./Quest"; +import type { default as AccountSettingsTable } from "./AccountSettings"; +import type { default as PbTable } from "./Pb"; +import type { default as PrivSvcMytCardInfoTable } from "./PrivSvcMytCardInfo"; +import type { default as QuestlineQuestTable } from "./QuestlineQuest"; +import type { default as QuestlineTable } from "./Questline"; +import type { default as CronTaskTable } from "./CronTask"; +import type { default as ImportClassTable } from "./ImportClass"; +import type { default as SongAltTitleTable } from "./SongAltTitle"; +import type { default as GameStatsSnapshotTable } from "./GameStatsSnapshot"; +import type { default as ChartLeaderboardTable } from "./ChartLeaderboard"; export default interface PublicSchema { - priv_svc_cg_card_info: PrivSvcCgCardInfoTable; + priv_svc_cg_card_info: PrivSvcCgCardInfoTable; - class_achievement: ClassAchievementTable; + class_achievement: ClassAchievementTable; - account: AccountTable; + account: AccountTable; - import_tracker: ImportTrackerTable; + import_tracker: ImportTrackerTable; - svc_fer_settings: SvcFerSettingsTable; + svc_fer_settings: SvcFerSettingsTable; - invite_lock: InviteLockTable; + invite_lock: InviteLockTable; - orphan_chart: OrphanChartTable; + orphan_chart: OrphanChartTable; - game_rival: GameRivalTable; + game_rival: GameRivalTable; - goal: GoalTable; + goal: GoalTable; - game_settings: GameSettingsTable; + game_settings: GameSettingsTable; - import_quest: ImportQuestTable; + import_quest: ImportQuestTable; - cron_task_execution: CronTaskExecutionTable; + cron_task_execution: CronTaskExecutionTable; - notification: NotificationTable; + notification: NotificationTable; - import_lock: ImportLockTable; + import_lock: ImportLockTable; - score_blacklist: ScoreBlacklistTable; + score_blacklist: ScoreBlacklistTable; - table_folder: TableFolderTable; + table_folder: TableFolderTable; - game_stats: GameStatsTable; + game_stats: GameStatsTable; - priv_oauth2_auth_token: PrivOauth2AuthTokenTable; + priv_oauth2_auth_token: PrivOauth2AuthTokenTable; - import_session: ImportSessionTable; + import_session: ImportSessionTable; - priv_svc_fer_card: PrivSvcFerCardTable; + priv_svc_fer_card: PrivSvcFerCardTable; - pb_composed_from: PbComposedFromTable; + pb_composed_from: PbComposedFromTable; - bms_course_lookup: BmsCourseLookupTable; + bms_course_lookup: BmsCourseLookupTable; - song_search_term: SongSearchTermTable; + song_search_term: SongSearchTermTable; - import_game: ImportGameTable; + import_game: ImportGameTable; - import_goal: ImportGoalTable; + import_goal: ImportGoalTable; - orphan_chart_user: OrphanChartUserTable; + orphan_chart_user: OrphanChartUserTable; - priv_verify_email_token: PrivVerifyEmailTokenTable; + priv_verify_email_token: PrivVerifyEmailTokenTable; - priv_invite: PrivInviteTable; + priv_invite: PrivInviteTable; - session: SessionTable; + session: SessionTable; - priv_password_reset_token: PrivPasswordResetTokenTable; + priv_password_reset_token: PrivPasswordResetTokenTable; - song: SongTable; + song: SongTable; - account_username_change: AccountUsernameChangeTable; + account_username_change: AccountUsernameChangeTable; - _migration: MigrationTable; + _migration: MigrationTable; - account_badge: AccountBadgeTable; + account_badge: AccountBadgeTable; - action: ActionTable; + action: ActionTable; - priv_svc_kai_auth_token: PrivSvcKaiAuthTokenTable; + priv_svc_kai_auth_token: PrivSvcKaiAuthTokenTable; - chart: ChartTable; + chart: ChartTable; - game_settings_showcase: GameSettingsShowcaseTable; + game_settings_showcase: GameSettingsShowcaseTable; - account_following: AccountFollowingTable; + account_following: AccountFollowingTable; - 'import': ImportTable; + import: ImportTable; - folder: FolderTable; + folder: FolderTable; - priv_account_credential: PrivAccountCredentialTable; + priv_account_credential: PrivAccountCredentialTable; - score: ScoreTable; + score: ScoreTable; - import_timing: ImportTimingTable; + import_timing: ImportTimingTable; - quest_sub: QuestSubTable; + quest_sub: QuestSubTable; - orphan_score: OrphanScoreTable; + orphan_score: OrphanScoreTable; - folder_view: FolderViewTable; + folder_view: FolderViewTable; - table: TableTable; + table: TableTable; - chart_version: ChartVersionTable; + chart_version: ChartVersionTable; - goal_sub: GoalSubTable; + goal_sub: GoalSubTable; - folder_search_term: FolderSearchTermTable; + folder_search_term: FolderSearchTermTable; - job_queue: JobQueueTable; + job_queue: JobQueueTable; - priv_api_client: PrivApiClientTable; + priv_api_client: PrivApiClientTable; - priv_api_token: PrivApiTokenTable; + priv_api_token: PrivApiTokenTable; - svc_kshook_sv6c_settings: SvcKshookSv6cSettingsTable; + svc_kshook_sv6c_settings: SvcKshookSv6cSettingsTable; - import_error: ImportErrorTable; + import_error: ImportErrorTable; - quest: QuestTable; + quest: QuestTable; - account_settings: AccountSettingsTable; + account_settings: AccountSettingsTable; - pb: PbTable; + pb: PbTable; - priv_svc_myt_card_info: PrivSvcMytCardInfoTable; + priv_svc_myt_card_info: PrivSvcMytCardInfoTable; - questline_quest: QuestlineQuestTable; + questline_quest: QuestlineQuestTable; - questline: QuestlineTable; + questline: QuestlineTable; - cron_task: CronTaskTable; + cron_task: CronTaskTable; - import_class: ImportClassTable; + import_class: ImportClassTable; - song_alt_title: SongAltTitleTable; + song_alt_title: SongAltTitleTable; - game_stats_snapshot: GameStatsSnapshotTable; + game_stats_snapshot: GameStatsSnapshotTable; - chart_leaderboard: ChartLeaderboardTable; + chart_leaderboard: ChartLeaderboardTable; } diff --git a/typescript/db/src/generated/public/Quest.ts b/typescript/db/src/generated/public/Quest.ts index 221de4d8b..00a851875 100644 --- a/typescript/db/src/generated/public/Quest.ts +++ b/typescript/db/src/generated/public/Quest.ts @@ -1,23 +1,23 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { default as Game } from './Game'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { default as Game } from "./Game"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.quest */ export type quest_id = string; /** Represents the table public.quest */ export default interface QuestTable { - id: ColumnType; + id: ColumnType; - game: ColumnType; + game: ColumnType; - name: ColumnType; + name: ColumnType; - description: ColumnType; + description: ColumnType; - quest_data: ColumnType; + quest_data: ColumnType; } export type Quest = Selectable; diff --git a/typescript/db/src/generated/public/QuestSub.ts b/typescript/db/src/generated/public/QuestSub.ts index 24340f67c..b49e9d6e0 100644 --- a/typescript/db/src/generated/public/QuestSub.ts +++ b/typescript/db/src/generated/public/QuestSub.ts @@ -1,25 +1,25 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { quest_id } from './Quest'; -import type { account_id } from './Account'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { quest_id } from "./Quest"; +import type { account_id } from "./Account"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Represents the table public.quest_sub */ export default interface QuestSubTable { - quest_id: ColumnType; + quest_id: ColumnType; - user_id: ColumnType; + user_id: ColumnType; - progress: ColumnType; + progress: ColumnType; - last_interaction: ColumnType; + last_interaction: ColumnType; - achieved: ColumnType; + achieved: ColumnType; - time_achieved: ColumnType; + time_achieved: ColumnType; - was_instantly_achieved: ColumnType; + was_instantly_achieved: ColumnType; } export type QuestSub = Selectable; diff --git a/typescript/db/src/generated/public/Questline.ts b/typescript/db/src/generated/public/Questline.ts index af9cde422..270861262 100644 --- a/typescript/db/src/generated/public/Questline.ts +++ b/typescript/db/src/generated/public/Questline.ts @@ -1,21 +1,21 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { default as Game } from './Game'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { default as Game } from "./Game"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.questline */ export type questline_id = string; /** Represents the table public.questline */ export default interface QuestlineTable { - id: ColumnType; + id: ColumnType; - game: ColumnType; + game: ColumnType; - name: ColumnType; + name: ColumnType; - description: ColumnType; + description: ColumnType; } export type Questline = Selectable; diff --git a/typescript/db/src/generated/public/QuestlineQuest.ts b/typescript/db/src/generated/public/QuestlineQuest.ts index e10abe13a..ade303e36 100644 --- a/typescript/db/src/generated/public/QuestlineQuest.ts +++ b/typescript/db/src/generated/public/QuestlineQuest.ts @@ -1,17 +1,17 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { questline_id } from './Questline'; -import type { quest_id } from './Quest'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { questline_id } from "./Questline"; +import type { quest_id } from "./Quest"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Represents the table public.questline_quest */ export default interface QuestlineQuestTable { - questline_id: ColumnType; + questline_id: ColumnType; - quest_id: ColumnType; + quest_id: ColumnType; - sort_order: ColumnType; + sort_order: ColumnType; } export type QuestlineQuest = Selectable; diff --git a/typescript/db/src/generated/public/Score.ts b/typescript/db/src/generated/public/Score.ts index b1b315915..1a16cddac 100644 --- a/typescript/db/src/generated/public/Score.ts +++ b/typescript/db/src/generated/public/Score.ts @@ -1,43 +1,43 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { account_id } from './Account'; -import type { chart_id } from './Chart'; -import type { default as Game } from './Game'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { account_id } from "./Account"; +import type { chart_id } from "./Chart"; +import type { default as Game } from "./Game"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.score */ export type score_id = string; /** Represents the table public.score */ export default interface ScoreTable { - id: ColumnType; + id: ColumnType; - user_id: ColumnType; + user_id: ColumnType; - chart_id: ColumnType; + chart_id: ColumnType; - game: ColumnType; + game: ColumnType; - session_id: ColumnType; + session_id: ColumnType; - import_id: ColumnType; + import_id: ColumnType; - data: ColumnType; + data: ColumnType; - derived_data: ColumnType; + derived_data: ColumnType; - calculated_data: ColumnType; + calculated_data: ColumnType; - meta: ColumnType; + meta: ColumnType; - time_achieved: ColumnType; + time_achieved: ColumnType; - time_added: ColumnType; + time_added: ColumnType; - highlight: ColumnType; + highlight: ColumnType; - comment: ColumnType; + comment: ColumnType; } export type Score = Selectable; diff --git a/typescript/db/src/generated/public/ScoreBlacklist.ts b/typescript/db/src/generated/public/ScoreBlacklist.ts index 63cb0257b..8d91adabc 100644 --- a/typescript/db/src/generated/public/ScoreBlacklist.ts +++ b/typescript/db/src/generated/public/ScoreBlacklist.ts @@ -1,19 +1,23 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { account_id } from './Account'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { account_id } from "./Account"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.score_blacklist */ export type score_blacklist_row_id = string; /** Represents the table public.score_blacklist */ export default interface ScoreBlacklistTable { - row_id: ColumnType; + row_id: ColumnType< + score_blacklist_row_id, + score_blacklist_row_id | undefined, + score_blacklist_row_id + >; - user_id: ColumnType; + user_id: ColumnType; - score_id: ColumnType; + score_id: ColumnType; } export type ScoreBlacklist = Selectable; diff --git a/typescript/db/src/generated/public/Session.ts b/typescript/db/src/generated/public/Session.ts index a81eea506..5a6202692 100644 --- a/typescript/db/src/generated/public/Session.ts +++ b/typescript/db/src/generated/public/Session.ts @@ -1,34 +1,34 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { account_id } from './Account'; -import type { default as Game } from './Game'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { account_id } from "./Account"; +import type { default as Game } from "./Game"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.session */ export type session_id = string; /** Represents the table public.session */ export default interface SessionTable { - id: ColumnType; + id: ColumnType; - user_id: ColumnType; + user_id: ColumnType; - game: ColumnType; + game: ColumnType; - name: ColumnType; + name: ColumnType; - description: ColumnType; + description: ColumnType; - time_inserted: ColumnType; + time_inserted: ColumnType; - time_started: ColumnType; + time_started: ColumnType; - time_ended: ColumnType; + time_ended: ColumnType; - calculated_data: ColumnType; + calculated_data: ColumnType; - highlight: ColumnType; + highlight: ColumnType; } export type Session = Selectable; diff --git a/typescript/db/src/generated/public/Song.ts b/typescript/db/src/generated/public/Song.ts index 66b69c8db..29485eca0 100644 --- a/typescript/db/src/generated/public/Song.ts +++ b/typescript/db/src/generated/public/Song.ts @@ -1,25 +1,25 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { default as GameGroup } from './GameGroup'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { default as GameGroup } from "./GameGroup"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.song */ export type song_id = string; /** Represents the table public.song */ export default interface SongTable { - id: ColumnType; + id: ColumnType; - legacy_id: ColumnType; + legacy_id: ColumnType; - game_group: ColumnType; + game_group: ColumnType; - title: ColumnType; + title: ColumnType; - artist: ColumnType; + artist: ColumnType; - data: ColumnType; + data: ColumnType; } export type Song = Selectable; diff --git a/typescript/db/src/generated/public/SongAltTitle.ts b/typescript/db/src/generated/public/SongAltTitle.ts index 92e419456..2d694a4dc 100644 --- a/typescript/db/src/generated/public/SongAltTitle.ts +++ b/typescript/db/src/generated/public/SongAltTitle.ts @@ -1,17 +1,21 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { song_id } from './Song'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { song_id } from "./Song"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.song_alt_title */ export type song_alt_title_alt_title = string; /** Represents the table public.song_alt_title */ export default interface SongAltTitleTable { - song_id: ColumnType; + song_id: ColumnType; - alt_title: ColumnType; + alt_title: ColumnType< + song_alt_title_alt_title, + song_alt_title_alt_title, + song_alt_title_alt_title + >; } export type SongAltTitle = Selectable; diff --git a/typescript/db/src/generated/public/SongSearchTerm.ts b/typescript/db/src/generated/public/SongSearchTerm.ts index d51a840fe..9d4a6be8a 100644 --- a/typescript/db/src/generated/public/SongSearchTerm.ts +++ b/typescript/db/src/generated/public/SongSearchTerm.ts @@ -1,17 +1,21 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { song_id } from './Song'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { song_id } from "./Song"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.song_search_term */ export type song_search_term_search_term = string; /** Represents the table public.song_search_term */ export default interface SongSearchTermTable { - song_id: ColumnType; + song_id: ColumnType; - search_term: ColumnType; + search_term: ColumnType< + song_search_term_search_term, + song_search_term_search_term, + song_search_term_search_term + >; } export type SongSearchTerm = Selectable; diff --git a/typescript/db/src/generated/public/SvcFerSettings.ts b/typescript/db/src/generated/public/SvcFerSettings.ts index 7b2698e21..45ac1c574 100644 --- a/typescript/db/src/generated/public/SvcFerSettings.ts +++ b/typescript/db/src/generated/public/SvcFerSettings.ts @@ -1,14 +1,14 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { account_id } from './Account'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { account_id } from "./Account"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Represents the table public.svc_fer_settings */ export default interface SvcFerSettingsTable { - user_id: ColumnType; + user_id: ColumnType; - force_static_import: ColumnType; + force_static_import: ColumnType; } export type SvcFerSettings = Selectable; diff --git a/typescript/db/src/generated/public/SvcKshookSv6cSettings.ts b/typescript/db/src/generated/public/SvcKshookSv6cSettings.ts index b68ea8335..9305397a4 100644 --- a/typescript/db/src/generated/public/SvcKshookSv6cSettings.ts +++ b/typescript/db/src/generated/public/SvcKshookSv6cSettings.ts @@ -1,14 +1,14 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { account_id } from './Account'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { account_id } from "./Account"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Represents the table public.svc_kshook_sv6c_settings */ export default interface SvcKshookSv6cSettingsTable { - user_id: ColumnType; + user_id: ColumnType; - force_static_import: ColumnType; + force_static_import: ColumnType; } export type SvcKshookSv6cSettings = Selectable; diff --git a/typescript/db/src/generated/public/Table.ts b/typescript/db/src/generated/public/Table.ts index 4caa47727..dc7998884 100644 --- a/typescript/db/src/generated/public/Table.ts +++ b/typescript/db/src/generated/public/Table.ts @@ -1,27 +1,27 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { default as Game } from './Game'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { default as Game } from "./Game"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Identifier type for public.table */ export type table_id = string; /** Represents the table public.table */ export default interface TableTable { - id: ColumnType; + id: ColumnType; - legacy_id: ColumnType; + legacy_id: ColumnType; - game: ColumnType; + game: ColumnType; - inactive: ColumnType; + inactive: ColumnType; - title: ColumnType; + title: ColumnType; - default_value: ColumnType; + default_value: ColumnType; - slug: ColumnType; + slug: ColumnType; } export type Table = Selectable; diff --git a/typescript/db/src/generated/public/TableFolder.ts b/typescript/db/src/generated/public/TableFolder.ts index 50400eb3a..fb4b3f6a8 100644 --- a/typescript/db/src/generated/public/TableFolder.ts +++ b/typescript/db/src/generated/public/TableFolder.ts @@ -1,15 +1,15 @@ // @generated // This file is automatically generated by Kanel. Do not modify manually. -import type { table_id } from './Table'; -import type { folder_id } from './Folder'; -import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; +import type { table_id } from "./Table"; +import type { folder_id } from "./Folder"; +import type { ColumnType, Selectable, Insertable, Updateable } from "kysely"; /** Represents the table public.table_folder */ export default interface TableFolderTable { - table_id: ColumnType; + table_id: ColumnType; - folder_id: ColumnType; + folder_id: ColumnType; } export type TableFolder = Selectable; diff --git a/typescript/seeds-scripts/personal/en-uuid.js b/typescript/seeds-scripts/personal/en-uuid.js index d73851e08..27f5584fe 100644 --- a/typescript/seeds-scripts/personal/en-uuid.js +++ b/typescript/seeds-scripts/personal/en-uuid.js @@ -48,8 +48,7 @@ for (const game of games) { } if (!entry._added) { - entry._added = - entry.legacySongID !== undefined ? NOW + entry.legacySongID : NOW; + entry._added = entry.legacySongID !== undefined ? NOW + entry.legacySongID : NOW; } } diff --git a/typescript/server/src/lib/setup/config.ts b/typescript/server/src/lib/setup/config.ts index 400914f7a..ecdc9a456 100644 --- a/typescript/server/src/lib/setup/config.ts +++ b/typescript/server/src/lib/setup/config.ts @@ -1,6 +1,7 @@ import type { SendMailOptions } from "nodemailer"; import { FormatPrError } from "#utils/prudence"; + import { allSupportedGameGroups, type integer, @@ -11,9 +12,10 @@ import dotenv from "dotenv"; import fs from "fs"; import JSON5 from "json5"; import { p } from "prudence"; -import { allImportTypes } from "../../../../common/src/constants/import-types"; import { URL } from "url"; +import { allImportTypes } from "../../../../common/src/constants/import-types"; + // imports things like NODE_ENV from a local .env file if one is present. dotenv.config(); @@ -337,10 +339,18 @@ if (!["crit", "debug", "error", "info", "severe", "verbose", "warn"].includes(lo const replicaIdentity = process.env.REPLICA_IDENTITY; +const postgresUrl = process.env.POSTGRES_URL ?? ""; + +if (!postgresUrl) { + logger.error(`No POSTGRES_URL specified in environment. Terminating.`); + process.exit(1); +} + export const Environment = { port, redisUrl, mongoUrl, + postgresUrl, nodeEnv: nodeEnv as "dev" | "production" | "staging" | "test", replicaIdentity, commitHash: process.env.COMMIT_HASH, diff --git a/typescript/server/src/proto/generated/cards/cards_grpc_pb.d.ts b/typescript/server/src/proto/generated/cards/cards_grpc_pb.d.ts index 31bb22a2c..6053d37a1 100644 --- a/typescript/server/src/proto/generated/cards/cards_grpc_pb.d.ts +++ b/typescript/server/src/proto/generated/cards/cards_grpc_pb.d.ts @@ -7,18 +7,30 @@ import * as cards_cards_pb from "../cards/cards_pb"; import * as grpc from "@grpc/grpc-js"; interface ICardsService extends grpc.ServiceDefinition { - lookup: grpc.MethodDefinition; + lookup: grpc.MethodDefinition; } export const CardsService: ICardsService; export interface ICardsServer extends grpc.UntypedServiceImplementation { - lookup: grpc.handleUnaryCall; + lookup: grpc.handleUnaryCall; } export class CardsClient extends grpc.Client { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - lookup(argument: cards_cards_pb.LookupRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - lookup(argument: cards_cards_pb.LookupRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - lookup(argument: cards_cards_pb.LookupRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); + lookup( + argument: cards_cards_pb.LookupRequest, + callback: grpc.requestCallback, + ): grpc.ClientUnaryCall; + lookup( + argument: cards_cards_pb.LookupRequest, + metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, + callback: grpc.requestCallback, + ): grpc.ClientUnaryCall; + lookup( + argument: cards_cards_pb.LookupRequest, + metadata: grpc.Metadata | null, + options: grpc.CallOptions | null, + callback: grpc.requestCallback, + ): grpc.ClientUnaryCall; } diff --git a/typescript/server/src/proto/generated/cards/cards_grpc_pb.js b/typescript/server/src/proto/generated/cards/cards_grpc_pb.js index 51d041ef5..f9dacaa34 100644 --- a/typescript/server/src/proto/generated/cards/cards_grpc_pb.js +++ b/typescript/server/src/proto/generated/cards/cards_grpc_pb.js @@ -1,44 +1,43 @@ // GENERATED CODE -- DO NOT EDIT! -'use strict'; -var grpc = require('@grpc/grpc-js'); -var cards_cards_pb = require('../cards/cards_pb.js'); +"use strict"; +var grpc = require("@grpc/grpc-js"); +var cards_cards_pb = require("../cards/cards_pb.js"); function serialize_mythos_cards_v0_LookupRequest(arg) { - if (!(arg instanceof cards_cards_pb.LookupRequest)) { - throw new Error('Expected argument of type mythos.cards.v0.LookupRequest'); - } - return Buffer.from(arg.serializeBinary()); + if (!(arg instanceof cards_cards_pb.LookupRequest)) { + throw new Error("Expected argument of type mythos.cards.v0.LookupRequest"); + } + return Buffer.from(arg.serializeBinary()); } function deserialize_mythos_cards_v0_LookupRequest(buffer_arg) { - return cards_cards_pb.LookupRequest.deserializeBinary(new Uint8Array(buffer_arg)); + return cards_cards_pb.LookupRequest.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_mythos_cards_v0_LookupResponse(arg) { - if (!(arg instanceof cards_cards_pb.LookupResponse)) { - throw new Error('Expected argument of type mythos.cards.v0.LookupResponse'); - } - return Buffer.from(arg.serializeBinary()); + if (!(arg instanceof cards_cards_pb.LookupResponse)) { + throw new Error("Expected argument of type mythos.cards.v0.LookupResponse"); + } + return Buffer.from(arg.serializeBinary()); } function deserialize_mythos_cards_v0_LookupResponse(buffer_arg) { - return cards_cards_pb.LookupResponse.deserializeBinary(new Uint8Array(buffer_arg)); + return cards_cards_pb.LookupResponse.deserializeBinary(new Uint8Array(buffer_arg)); } +var CardsService = (exports.CardsService = { + lookup: { + path: "/mythos.cards.v0.Cards/Lookup", + requestStream: false, + responseStream: false, + requestType: cards_cards_pb.LookupRequest, + responseType: cards_cards_pb.LookupResponse, + requestSerialize: serialize_mythos_cards_v0_LookupRequest, + requestDeserialize: deserialize_mythos_cards_v0_LookupRequest, + responseSerialize: serialize_mythos_cards_v0_LookupResponse, + responseDeserialize: deserialize_mythos_cards_v0_LookupResponse, + }, +}); -var CardsService = exports.CardsService = { - lookup: { - path: '/mythos.cards.v0.Cards/Lookup', - requestStream: false, - responseStream: false, - requestType: cards_cards_pb.LookupRequest, - responseType: cards_cards_pb.LookupResponse, - requestSerialize: serialize_mythos_cards_v0_LookupRequest, - requestDeserialize: deserialize_mythos_cards_v0_LookupRequest, - responseSerialize: serialize_mythos_cards_v0_LookupResponse, - responseDeserialize: deserialize_mythos_cards_v0_LookupResponse, - }, -}; - -exports.CardsClient = grpc.makeGenericClientConstructor(CardsService, 'Cards'); +exports.CardsClient = grpc.makeGenericClientConstructor(CardsService, "Cards"); diff --git a/typescript/server/src/proto/generated/cards/cards_pb.d.ts b/typescript/server/src/proto/generated/cards/cards_pb.d.ts index 7cf90d4e7..f3a225567 100644 --- a/typescript/server/src/proto/generated/cards/cards_pb.d.ts +++ b/typescript/server/src/proto/generated/cards/cards_pb.d.ts @@ -4,78 +4,86 @@ import * as jspb from "google-protobuf"; export class LookupRequest extends jspb.Message { - getAccessCode(): string; - setAccessCode(value: string): void; + getAccessCode(): string; + setAccessCode(value: string): void; - clearTitlesList(): void; - getTitlesList(): Array; - setTitlesList(value: Array): void; - addTitles(value: string, index?: number): string; + clearTitlesList(): void; + getTitlesList(): Array; + setTitlesList(value: Array): void; + addTitles(value: string, index?: number): string; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LookupRequest.AsObject; - static toObject(includeInstance: boolean, msg: LookupRequest): LookupRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LookupRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LookupRequest; - static deserializeBinaryFromReader(message: LookupRequest, reader: jspb.BinaryReader): LookupRequest; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): LookupRequest.AsObject; + static toObject(includeInstance: boolean, msg: LookupRequest): LookupRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo }; + static serializeBinaryToWriter(message: LookupRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): LookupRequest; + static deserializeBinaryFromReader( + message: LookupRequest, + reader: jspb.BinaryReader, + ): LookupRequest; } export namespace LookupRequest { - export type AsObject = { - accessCode: string, - titlesList: Array, - } + export type AsObject = { + accessCode: string; + titlesList: Array; + }; } export class LookupResponse extends jspb.Message { - getPlayerApiId(): string; - setPlayerApiId(value: string): void; + getPlayerApiId(): string; + setPlayerApiId(value: string): void; - clearTitlesList(): void; - getTitlesList(): Array; - setTitlesList(value: Array): void; - addTitles(value?: LookupResponse.TitleEntry, index?: number): LookupResponse.TitleEntry; + clearTitlesList(): void; + getTitlesList(): Array; + setTitlesList(value: Array): void; + addTitles(value?: LookupResponse.TitleEntry, index?: number): LookupResponse.TitleEntry; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LookupResponse.AsObject; - static toObject(includeInstance: boolean, msg: LookupResponse): LookupResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LookupResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LookupResponse; - static deserializeBinaryFromReader(message: LookupResponse, reader: jspb.BinaryReader): LookupResponse; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): LookupResponse.AsObject; + static toObject(includeInstance: boolean, msg: LookupResponse): LookupResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo }; + static serializeBinaryToWriter(message: LookupResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): LookupResponse; + static deserializeBinaryFromReader( + message: LookupResponse, + reader: jspb.BinaryReader, + ): LookupResponse; } export namespace LookupResponse { - export type AsObject = { - playerApiId: string, - titlesList: Array, - } + export type AsObject = { + playerApiId: string; + titlesList: Array; + }; - export class TitleEntry extends jspb.Message { - getTitleKind(): string; - setTitleKind(value: string): void; + export class TitleEntry extends jspb.Message { + getTitleKind(): string; + setTitleKind(value: string): void; - getTitleApiId(): string; - setTitleApiId(value: string): void; + getTitleApiId(): string; + setTitleApiId(value: string): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TitleEntry.AsObject; - static toObject(includeInstance: boolean, msg: TitleEntry): TitleEntry.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TitleEntry, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TitleEntry; - static deserializeBinaryFromReader(message: TitleEntry, reader: jspb.BinaryReader): TitleEntry; - } + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TitleEntry.AsObject; + static toObject(includeInstance: boolean, msg: TitleEntry): TitleEntry.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo }; + static serializeBinaryToWriter(message: TitleEntry, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TitleEntry; + static deserializeBinaryFromReader( + message: TitleEntry, + reader: jspb.BinaryReader, + ): TitleEntry; + } - export namespace TitleEntry { - export type AsObject = { - titleKind: string, - titleApiId: string, - } - } + export namespace TitleEntry { + export type AsObject = { + titleKind: string; + titleApiId: string; + }; + } } - diff --git a/typescript/server/src/proto/generated/cards/cards_pb.js b/typescript/server/src/proto/generated/cards/cards_pb.js index c7182e195..1e08f6fcc 100644 --- a/typescript/server/src/proto/generated/cards/cards_pb.js +++ b/typescript/server/src/proto/generated/cards/cards_pb.js @@ -11,19 +11,27 @@ /* eslint-disable */ // @ts-nocheck -var jspb = require('google-protobuf'); +var jspb = require("google-protobuf"); var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); +var global = function () { + if (this) { + return this; + } + if (typeof window !== "undefined") { + return window; + } + if (typeof global !== "undefined") { + return global; + } + if (typeof self !== "undefined") { + return self; + } + return Function("return this")(); +}.call(null); -goog.exportSymbol('proto.mythos.cards.v0.LookupRequest', null, global); -goog.exportSymbol('proto.mythos.cards.v0.LookupResponse', null, global); -goog.exportSymbol('proto.mythos.cards.v0.LookupResponse.TitleEntry', null, global); +goog.exportSymbol("proto.mythos.cards.v0.LookupRequest", null, global); +goog.exportSymbol("proto.mythos.cards.v0.LookupResponse", null, global); +goog.exportSymbol("proto.mythos.cards.v0.LookupResponse.TitleEntry", null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -34,16 +42,23 @@ goog.exportSymbol('proto.mythos.cards.v0.LookupResponse.TitleEntry', null, globa * @extends {jspb.Message} * @constructor */ -proto.mythos.cards.v0.LookupRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.mythos.cards.v0.LookupRequest.repeatedFields_, null); +proto.mythos.cards.v0.LookupRequest = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.mythos.cards.v0.LookupRequest.repeatedFields_, + null, + ); }; goog.inherits(proto.mythos.cards.v0.LookupRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.mythos.cards.v0.LookupRequest.displayName = 'proto.mythos.cards.v0.LookupRequest'; + /** + * @public + * @override + */ + proto.mythos.cards.v0.LookupRequest.displayName = "proto.mythos.cards.v0.LookupRequest"; } /** * Generated by JsPbCodeGenerator. @@ -55,16 +70,23 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.mythos.cards.v0.LookupResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.mythos.cards.v0.LookupResponse.repeatedFields_, null); +proto.mythos.cards.v0.LookupResponse = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.mythos.cards.v0.LookupResponse.repeatedFields_, + null, + ); }; goog.inherits(proto.mythos.cards.v0.LookupResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.mythos.cards.v0.LookupResponse.displayName = 'proto.mythos.cards.v0.LookupResponse'; + /** + * @public + * @override + */ + proto.mythos.cards.v0.LookupResponse.displayName = "proto.mythos.cards.v0.LookupResponse"; } /** * Generated by JsPbCodeGenerator. @@ -76,16 +98,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.mythos.cards.v0.LookupResponse.TitleEntry = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.mythos.cards.v0.LookupResponse.TitleEntry = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.mythos.cards.v0.LookupResponse.TitleEntry, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.mythos.cards.v0.LookupResponse.TitleEntry.displayName = 'proto.mythos.cards.v0.LookupResponse.TitleEntry'; + /** + * @public + * @override + */ + proto.mythos.cards.v0.LookupResponse.TitleEntry.displayName = + "proto.mythos.cards.v0.LookupResponse.TitleEntry"; } /** @@ -95,61 +118,57 @@ if (goog.DEBUG && !COMPILED) { */ proto.mythos.cards.v0.LookupRequest.repeatedFields_ = [2]; - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.mythos.cards.v0.LookupRequest.prototype.toObject = function(opt_includeInstance) { - return proto.mythos.cards.v0.LookupRequest.toObject(opt_includeInstance, this); -}; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.mythos.cards.v0.LookupRequest.prototype.toObject = function (opt_includeInstance) { + return proto.mythos.cards.v0.LookupRequest.toObject(opt_includeInstance, this); + }; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.mythos.cards.v0.LookupRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.mythos.cards.v0.LookupRequest.toObject = function (includeInstance, msg) { + var f, + obj = { + accessCode: jspb.Message.getFieldWithDefault(msg, 1, ""), + titlesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, + }; -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.mythos.cards.v0.LookupRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.mythos.cards.v0.LookupRequest.toObject = function(includeInstance, msg) { - var f, obj = { - accessCode: jspb.Message.getFieldWithDefault(msg, 1, ""), - titlesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.mythos.cards.v0.LookupRequest} */ -proto.mythos.cards.v0.LookupRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.mythos.cards.v0.LookupRequest; - return proto.mythos.cards.v0.LookupRequest.deserializeBinaryFromReader(msg, reader); +proto.mythos.cards.v0.LookupRequest.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.mythos.cards.v0.LookupRequest(); + return proto.mythos.cards.v0.LookupRequest.deserializeBinaryFromReader(msg, reader); }; - /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. @@ -157,41 +176,39 @@ proto.mythos.cards.v0.LookupRequest.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.mythos.cards.v0.LookupRequest} */ -proto.mythos.cards.v0.LookupRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setAccessCode(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addTitles(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.mythos.cards.v0.LookupRequest.deserializeBinaryFromReader = function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setAccessCode(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.addTitles(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.mythos.cards.v0.LookupRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.mythos.cards.v0.LookupRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.mythos.cards.v0.LookupRequest.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.mythos.cards.v0.LookupRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; - /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. @@ -199,81 +216,67 @@ proto.mythos.cards.v0.LookupRequest.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.mythos.cards.v0.LookupRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAccessCode(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTitlesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } +proto.mythos.cards.v0.LookupRequest.serializeBinaryToWriter = function (message, writer) { + var f = undefined; + f = message.getAccessCode(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = message.getTitlesList(); + if (f.length > 0) { + writer.writeRepeatedString(2, f); + } }; - /** * optional string access_code = 1; * @return {string} */ -proto.mythos.cards.v0.LookupRequest.prototype.getAccessCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.mythos.cards.v0.LookupRequest.prototype.getAccessCode = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; - /** * @param {string} value * @return {!proto.mythos.cards.v0.LookupRequest} returns this */ -proto.mythos.cards.v0.LookupRequest.prototype.setAccessCode = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.mythos.cards.v0.LookupRequest.prototype.setAccessCode = function (value) { + return jspb.Message.setProto3StringField(this, 1, value); }; - /** * repeated string titles = 2; * @return {!Array} */ -proto.mythos.cards.v0.LookupRequest.prototype.getTitlesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +proto.mythos.cards.v0.LookupRequest.prototype.getTitlesList = function () { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; - /** * @param {!Array} value * @return {!proto.mythos.cards.v0.LookupRequest} returns this */ -proto.mythos.cards.v0.LookupRequest.prototype.setTitlesList = function(value) { - return jspb.Message.setField(this, 2, value || []); +proto.mythos.cards.v0.LookupRequest.prototype.setTitlesList = function (value) { + return jspb.Message.setField(this, 2, value || []); }; - /** * @param {string} value * @param {number=} opt_index * @return {!proto.mythos.cards.v0.LookupRequest} returns this */ -proto.mythos.cards.v0.LookupRequest.prototype.addTitles = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +proto.mythos.cards.v0.LookupRequest.prototype.addTitles = function (value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; - /** * Clears the list making it empty but non-null. * @return {!proto.mythos.cards.v0.LookupRequest} returns this */ -proto.mythos.cards.v0.LookupRequest.prototype.clearTitlesList = function() { - return this.setTitlesList([]); +proto.mythos.cards.v0.LookupRequest.prototype.clearTitlesList = function () { + return this.setTitlesList([]); }; - - /** * List of repeated fields within this message type. * @private {!Array} @@ -281,62 +284,61 @@ proto.mythos.cards.v0.LookupRequest.prototype.clearTitlesList = function() { */ proto.mythos.cards.v0.LookupResponse.repeatedFields_ = [2]; - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.mythos.cards.v0.LookupResponse.prototype.toObject = function(opt_includeInstance) { - return proto.mythos.cards.v0.LookupResponse.toObject(opt_includeInstance, this); -}; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.mythos.cards.v0.LookupResponse.prototype.toObject = function (opt_includeInstance) { + return proto.mythos.cards.v0.LookupResponse.toObject(opt_includeInstance, this); + }; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.mythos.cards.v0.LookupResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.mythos.cards.v0.LookupResponse.toObject = function (includeInstance, msg) { + var f, + obj = { + playerApiId: jspb.Message.getFieldWithDefault(msg, 1, ""), + titlesList: jspb.Message.toObjectList( + msg.getTitlesList(), + proto.mythos.cards.v0.LookupResponse.TitleEntry.toObject, + includeInstance, + ), + }; -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.mythos.cards.v0.LookupResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.mythos.cards.v0.LookupResponse.toObject = function(includeInstance, msg) { - var f, obj = { - playerApiId: jspb.Message.getFieldWithDefault(msg, 1, ""), - titlesList: jspb.Message.toObjectList(msg.getTitlesList(), - proto.mythos.cards.v0.LookupResponse.TitleEntry.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.mythos.cards.v0.LookupResponse} */ -proto.mythos.cards.v0.LookupResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.mythos.cards.v0.LookupResponse; - return proto.mythos.cards.v0.LookupResponse.deserializeBinaryFromReader(msg, reader); +proto.mythos.cards.v0.LookupResponse.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.mythos.cards.v0.LookupResponse(); + return proto.mythos.cards.v0.LookupResponse.deserializeBinaryFromReader(msg, reader); }; - /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. @@ -344,42 +346,43 @@ proto.mythos.cards.v0.LookupResponse.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.mythos.cards.v0.LookupResponse} */ -proto.mythos.cards.v0.LookupResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPlayerApiId(value); - break; - case 2: - var value = new proto.mythos.cards.v0.LookupResponse.TitleEntry; - reader.readMessage(value,proto.mythos.cards.v0.LookupResponse.TitleEntry.deserializeBinaryFromReader); - msg.addTitles(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.mythos.cards.v0.LookupResponse.deserializeBinaryFromReader = function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setPlayerApiId(value); + break; + case 2: + var value = new proto.mythos.cards.v0.LookupResponse.TitleEntry(); + reader.readMessage( + value, + proto.mythos.cards.v0.LookupResponse.TitleEntry.deserializeBinaryFromReader, + ); + msg.addTitles(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.mythos.cards.v0.LookupResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.mythos.cards.v0.LookupResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.mythos.cards.v0.LookupResponse.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.mythos.cards.v0.LookupResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; - /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. @@ -387,82 +390,75 @@ proto.mythos.cards.v0.LookupResponse.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.mythos.cards.v0.LookupResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPlayerApiId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTitlesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.mythos.cards.v0.LookupResponse.TitleEntry.serializeBinaryToWriter - ); - } +proto.mythos.cards.v0.LookupResponse.serializeBinaryToWriter = function (message, writer) { + var f = undefined; + f = message.getPlayerApiId(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = message.getTitlesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.mythos.cards.v0.LookupResponse.TitleEntry.serializeBinaryToWriter, + ); + } }; - - - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.mythos.cards.v0.LookupResponse.TitleEntry.prototype.toObject = function(opt_includeInstance) { - return proto.mythos.cards.v0.LookupResponse.TitleEntry.toObject(opt_includeInstance, this); -}; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.mythos.cards.v0.LookupResponse.TitleEntry.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.mythos.cards.v0.LookupResponse.TitleEntry.toObject(opt_includeInstance, this); + }; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.mythos.cards.v0.LookupResponse.TitleEntry} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.mythos.cards.v0.LookupResponse.TitleEntry.toObject = function (includeInstance, msg) { + var f, + obj = { + titleKind: jspb.Message.getFieldWithDefault(msg, 1, ""), + titleApiId: jspb.Message.getFieldWithDefault(msg, 2, ""), + }; -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.mythos.cards.v0.LookupResponse.TitleEntry} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.mythos.cards.v0.LookupResponse.TitleEntry.toObject = function(includeInstance, msg) { - var f, obj = { - titleKind: jspb.Message.getFieldWithDefault(msg, 1, ""), - titleApiId: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.mythos.cards.v0.LookupResponse.TitleEntry} */ -proto.mythos.cards.v0.LookupResponse.TitleEntry.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.mythos.cards.v0.LookupResponse.TitleEntry; - return proto.mythos.cards.v0.LookupResponse.TitleEntry.deserializeBinaryFromReader(msg, reader); +proto.mythos.cards.v0.LookupResponse.TitleEntry.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.mythos.cards.v0.LookupResponse.TitleEntry(); + return proto.mythos.cards.v0.LookupResponse.TitleEntry.deserializeBinaryFromReader(msg, reader); }; - /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. @@ -470,41 +466,42 @@ proto.mythos.cards.v0.LookupResponse.TitleEntry.deserializeBinary = function(byt * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.mythos.cards.v0.LookupResponse.TitleEntry} */ -proto.mythos.cards.v0.LookupResponse.TitleEntry.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setTitleKind(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setTitleApiId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.mythos.cards.v0.LookupResponse.TitleEntry.deserializeBinaryFromReader = function ( + msg, + reader, +) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setTitleKind(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setTitleApiId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.mythos.cards.v0.LookupResponse.TitleEntry.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.mythos.cards.v0.LookupResponse.TitleEntry.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.mythos.cards.v0.LookupResponse.TitleEntry.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.mythos.cards.v0.LookupResponse.TitleEntry.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; - /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. @@ -512,115 +509,112 @@ proto.mythos.cards.v0.LookupResponse.TitleEntry.prototype.serializeBinary = func * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.mythos.cards.v0.LookupResponse.TitleEntry.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTitleKind(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTitleApiId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } +proto.mythos.cards.v0.LookupResponse.TitleEntry.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined; + f = message.getTitleKind(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = message.getTitleApiId(); + if (f.length > 0) { + writer.writeString(2, f); + } }; - /** * optional string title_kind = 1; * @return {string} */ -proto.mythos.cards.v0.LookupResponse.TitleEntry.prototype.getTitleKind = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.mythos.cards.v0.LookupResponse.TitleEntry.prototype.getTitleKind = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; - /** * @param {string} value * @return {!proto.mythos.cards.v0.LookupResponse.TitleEntry} returns this */ -proto.mythos.cards.v0.LookupResponse.TitleEntry.prototype.setTitleKind = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.mythos.cards.v0.LookupResponse.TitleEntry.prototype.setTitleKind = function (value) { + return jspb.Message.setProto3StringField(this, 1, value); }; - /** * optional string title_api_id = 2; * @return {string} */ -proto.mythos.cards.v0.LookupResponse.TitleEntry.prototype.getTitleApiId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.mythos.cards.v0.LookupResponse.TitleEntry.prototype.getTitleApiId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; - /** * @param {string} value * @return {!proto.mythos.cards.v0.LookupResponse.TitleEntry} returns this */ -proto.mythos.cards.v0.LookupResponse.TitleEntry.prototype.setTitleApiId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.mythos.cards.v0.LookupResponse.TitleEntry.prototype.setTitleApiId = function (value) { + return jspb.Message.setProto3StringField(this, 2, value); }; - /** * optional string player_api_id = 1; * @return {string} */ -proto.mythos.cards.v0.LookupResponse.prototype.getPlayerApiId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.mythos.cards.v0.LookupResponse.prototype.getPlayerApiId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; - /** * @param {string} value * @return {!proto.mythos.cards.v0.LookupResponse} returns this */ -proto.mythos.cards.v0.LookupResponse.prototype.setPlayerApiId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.mythos.cards.v0.LookupResponse.prototype.setPlayerApiId = function (value) { + return jspb.Message.setProto3StringField(this, 1, value); }; - /** * repeated TitleEntry titles = 2; * @return {!Array} */ -proto.mythos.cards.v0.LookupResponse.prototype.getTitlesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.mythos.cards.v0.LookupResponse.TitleEntry, 2)); +proto.mythos.cards.v0.LookupResponse.prototype.getTitlesList = function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField( + this, + proto.mythos.cards.v0.LookupResponse.TitleEntry, + 2, + ) + ); }; - /** * @param {!Array} value * @return {!proto.mythos.cards.v0.LookupResponse} returns this -*/ -proto.mythos.cards.v0.LookupResponse.prototype.setTitlesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); + */ +proto.mythos.cards.v0.LookupResponse.prototype.setTitlesList = function (value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; - /** * @param {!proto.mythos.cards.v0.LookupResponse.TitleEntry=} opt_value * @param {number=} opt_index * @return {!proto.mythos.cards.v0.LookupResponse.TitleEntry} */ -proto.mythos.cards.v0.LookupResponse.prototype.addTitles = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.mythos.cards.v0.LookupResponse.TitleEntry, opt_index); +proto.mythos.cards.v0.LookupResponse.prototype.addTitles = function (opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField( + this, + 2, + opt_value, + proto.mythos.cards.v0.LookupResponse.TitleEntry, + opt_index, + ); }; - /** * Clears the list making it empty but non-null. * @return {!proto.mythos.cards.v0.LookupResponse} returns this */ -proto.mythos.cards.v0.LookupResponse.prototype.clearTitlesList = function() { - return this.setTitlesList([]); +proto.mythos.cards.v0.LookupResponse.prototype.clearTitlesList = function () { + return this.setTitlesList([]); }; - goog.object.extend(exports, proto.mythos.cards.v0); diff --git a/typescript/server/src/proto/generated/chunithm/common_grpc_pb.js b/typescript/server/src/proto/generated/chunithm/common_grpc_pb.js index 97b3a2461..51b4d6959 100644 --- a/typescript/server/src/proto/generated/chunithm/common_grpc_pb.js +++ b/typescript/server/src/proto/generated/chunithm/common_grpc_pb.js @@ -1 +1 @@ -// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file +// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/typescript/server/src/proto/generated/chunithm/common_pb.d.ts b/typescript/server/src/proto/generated/chunithm/common_pb.d.ts index e7fa2711c..9612ef2de 100644 --- a/typescript/server/src/proto/generated/chunithm/common_pb.d.ts +++ b/typescript/server/src/proto/generated/chunithm/common_pb.d.ts @@ -4,65 +4,64 @@ import * as jspb from "google-protobuf"; export interface ChunithmClearStatusMap { - CHUNITHM_CLEAR_STATUS_UNSPECIFIED: 0; - CHUNITHM_CLEAR_STATUS_FAILED: 1; - CHUNITHM_CLEAR_STATUS_CLEAR: 2; - CHUNITHM_CLEAR_STATUS_HARD: 3; - CHUNITHM_CLEAR_STATUS_ABSOLUTE: 4; - CHUNITHM_CLEAR_STATUS_ABSOLUTE_PLUS: 5; - CHUNITHM_CLEAR_STATUS_CATASTROPHY: 6; + CHUNITHM_CLEAR_STATUS_UNSPECIFIED: 0; + CHUNITHM_CLEAR_STATUS_FAILED: 1; + CHUNITHM_CLEAR_STATUS_CLEAR: 2; + CHUNITHM_CLEAR_STATUS_HARD: 3; + CHUNITHM_CLEAR_STATUS_ABSOLUTE: 4; + CHUNITHM_CLEAR_STATUS_ABSOLUTE_PLUS: 5; + CHUNITHM_CLEAR_STATUS_CATASTROPHY: 6; } export const ChunithmClearStatus: ChunithmClearStatusMap; export interface ChunithmFullChainStatusMap { - CHUNITHM_FULL_CHAIN_STATUS_UNSPECIFIED: 0; - CHUNITHM_FULL_CHAIN_STATUS_NONE: 1; - CHUNITHM_FULL_CHAIN_STATUS_FULL_CHAIN_FC: 2; - CHUNITHM_FULL_CHAIN_STATUS_FULL_CHAIN_AJ: 3; + CHUNITHM_FULL_CHAIN_STATUS_UNSPECIFIED: 0; + CHUNITHM_FULL_CHAIN_STATUS_NONE: 1; + CHUNITHM_FULL_CHAIN_STATUS_FULL_CHAIN_FC: 2; + CHUNITHM_FULL_CHAIN_STATUS_FULL_CHAIN_AJ: 3; } export const ChunithmFullChainStatus: ChunithmFullChainStatusMap; export interface ChunithmLevelMap { - CHUNITHM_LEVEL_UNSPECIFIED: 0; - CHUNITHM_LEVEL_BASIC: 1; - CHUNITHM_LEVEL_ADVANCED: 2; - CHUNITHM_LEVEL_EXPERT: 3; - CHUNITHM_LEVEL_MASTER: 4; - CHUNITHM_LEVEL_ULTIMA: 5; - CHUNITHM_LEVEL_WORLDS_END: 6; + CHUNITHM_LEVEL_UNSPECIFIED: 0; + CHUNITHM_LEVEL_BASIC: 1; + CHUNITHM_LEVEL_ADVANCED: 2; + CHUNITHM_LEVEL_EXPERT: 3; + CHUNITHM_LEVEL_MASTER: 4; + CHUNITHM_LEVEL_ULTIMA: 5; + CHUNITHM_LEVEL_WORLDS_END: 6; } export const ChunithmLevel: ChunithmLevelMap; export interface ChunithmScoreRankMap { - CHUNITHM_SCORE_RANK_UNSPECIFIED: 0; - CHUNITHM_SCORE_RANK_D: 1; - CHUNITHM_SCORE_RANK_C: 2; - CHUNITHM_SCORE_RANK_B: 3; - CHUNITHM_SCORE_RANK_BB: 4; - CHUNITHM_SCORE_RANK_BBB: 5; - CHUNITHM_SCORE_RANK_A: 6; - CHUNITHM_SCORE_RANK_AA: 7; - CHUNITHM_SCORE_RANK_AAA: 8; - CHUNITHM_SCORE_RANK_S: 9; - CHUNITHM_SCORE_RANK_S_PLUS: 10; - CHUNITHM_SCORE_RANK_SS: 11; - CHUNITHM_SCORE_RANK_SS_PLUS: 12; - CHUNITHM_SCORE_RANK_SSS: 13; - CHUNITHM_SCORE_RANK_SSS_PLUS: 14; + CHUNITHM_SCORE_RANK_UNSPECIFIED: 0; + CHUNITHM_SCORE_RANK_D: 1; + CHUNITHM_SCORE_RANK_C: 2; + CHUNITHM_SCORE_RANK_B: 3; + CHUNITHM_SCORE_RANK_BB: 4; + CHUNITHM_SCORE_RANK_BBB: 5; + CHUNITHM_SCORE_RANK_A: 6; + CHUNITHM_SCORE_RANK_AA: 7; + CHUNITHM_SCORE_RANK_AAA: 8; + CHUNITHM_SCORE_RANK_S: 9; + CHUNITHM_SCORE_RANK_S_PLUS: 10; + CHUNITHM_SCORE_RANK_SS: 11; + CHUNITHM_SCORE_RANK_SS_PLUS: 12; + CHUNITHM_SCORE_RANK_SSS: 13; + CHUNITHM_SCORE_RANK_SSS_PLUS: 14; } export const ChunithmScoreRank: ChunithmScoreRankMap; export interface ChunithmComboStatusMap { - CHUNITHM_COMBO_STATUS_UNSPECIFIED: 0; - CHUNITHM_COMBO_STATUS_NONE: 1; - CHUNITHM_COMBO_STATUS_FULL_COMBO: 2; - CHUNITHM_COMBO_STATUS_ALL_JUSTICE: 3; - CHUNITHM_COMBO_STATUS_ALL_JUSTICE_CRITICAL: 4; + CHUNITHM_COMBO_STATUS_UNSPECIFIED: 0; + CHUNITHM_COMBO_STATUS_NONE: 1; + CHUNITHM_COMBO_STATUS_FULL_COMBO: 2; + CHUNITHM_COMBO_STATUS_ALL_JUSTICE: 3; + CHUNITHM_COMBO_STATUS_ALL_JUSTICE_CRITICAL: 4; } export const ChunithmComboStatus: ChunithmComboStatusMap; - diff --git a/typescript/server/src/proto/generated/chunithm/common_pb.js b/typescript/server/src/proto/generated/chunithm/common_pb.js index 2ba25ed97..39492cdfa 100644 --- a/typescript/server/src/proto/generated/chunithm/common_pb.js +++ b/typescript/server/src/proto/generated/chunithm/common_pb.js @@ -11,87 +11,95 @@ /* eslint-disable */ // @ts-nocheck -var jspb = require('google-protobuf'); +var jspb = require("google-protobuf"); var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); +var global = function () { + if (this) { + return this; + } + if (typeof window !== "undefined") { + return window; + } + if (typeof global !== "undefined") { + return global; + } + if (typeof self !== "undefined") { + return self; + } + return Function("return this")(); +}.call(null); -goog.exportSymbol('proto.mythos.chunithm.v0.ChunithmClearStatus', null, global); -goog.exportSymbol('proto.mythos.chunithm.v0.ChunithmComboStatus', null, global); -goog.exportSymbol('proto.mythos.chunithm.v0.ChunithmFullChainStatus', null, global); -goog.exportSymbol('proto.mythos.chunithm.v0.ChunithmLevel', null, global); -goog.exportSymbol('proto.mythos.chunithm.v0.ChunithmScoreRank', null, global); +goog.exportSymbol("proto.mythos.chunithm.v0.ChunithmClearStatus", null, global); +goog.exportSymbol("proto.mythos.chunithm.v0.ChunithmComboStatus", null, global); +goog.exportSymbol("proto.mythos.chunithm.v0.ChunithmFullChainStatus", null, global); +goog.exportSymbol("proto.mythos.chunithm.v0.ChunithmLevel", null, global); +goog.exportSymbol("proto.mythos.chunithm.v0.ChunithmScoreRank", null, global); /** * @enum {number} */ proto.mythos.chunithm.v0.ChunithmClearStatus = { - CHUNITHM_CLEAR_STATUS_UNSPECIFIED: 0, - CHUNITHM_CLEAR_STATUS_FAILED: 1, - CHUNITHM_CLEAR_STATUS_CLEAR: 2, - CHUNITHM_CLEAR_STATUS_HARD: 3, - CHUNITHM_CLEAR_STATUS_ABSOLUTE: 4, - CHUNITHM_CLEAR_STATUS_ABSOLUTE_PLUS: 5, - CHUNITHM_CLEAR_STATUS_CATASTROPHY: 6 + CHUNITHM_CLEAR_STATUS_UNSPECIFIED: 0, + CHUNITHM_CLEAR_STATUS_FAILED: 1, + CHUNITHM_CLEAR_STATUS_CLEAR: 2, + CHUNITHM_CLEAR_STATUS_HARD: 3, + CHUNITHM_CLEAR_STATUS_ABSOLUTE: 4, + CHUNITHM_CLEAR_STATUS_ABSOLUTE_PLUS: 5, + CHUNITHM_CLEAR_STATUS_CATASTROPHY: 6, }; /** * @enum {number} */ proto.mythos.chunithm.v0.ChunithmFullChainStatus = { - CHUNITHM_FULL_CHAIN_STATUS_UNSPECIFIED: 0, - CHUNITHM_FULL_CHAIN_STATUS_NONE: 1, - CHUNITHM_FULL_CHAIN_STATUS_FULL_CHAIN_FC: 2, - CHUNITHM_FULL_CHAIN_STATUS_FULL_CHAIN_AJ: 3 + CHUNITHM_FULL_CHAIN_STATUS_UNSPECIFIED: 0, + CHUNITHM_FULL_CHAIN_STATUS_NONE: 1, + CHUNITHM_FULL_CHAIN_STATUS_FULL_CHAIN_FC: 2, + CHUNITHM_FULL_CHAIN_STATUS_FULL_CHAIN_AJ: 3, }; /** * @enum {number} */ proto.mythos.chunithm.v0.ChunithmLevel = { - CHUNITHM_LEVEL_UNSPECIFIED: 0, - CHUNITHM_LEVEL_BASIC: 1, - CHUNITHM_LEVEL_ADVANCED: 2, - CHUNITHM_LEVEL_EXPERT: 3, - CHUNITHM_LEVEL_MASTER: 4, - CHUNITHM_LEVEL_ULTIMA: 5, - CHUNITHM_LEVEL_WORLDS_END: 6 + CHUNITHM_LEVEL_UNSPECIFIED: 0, + CHUNITHM_LEVEL_BASIC: 1, + CHUNITHM_LEVEL_ADVANCED: 2, + CHUNITHM_LEVEL_EXPERT: 3, + CHUNITHM_LEVEL_MASTER: 4, + CHUNITHM_LEVEL_ULTIMA: 5, + CHUNITHM_LEVEL_WORLDS_END: 6, }; /** * @enum {number} */ proto.mythos.chunithm.v0.ChunithmScoreRank = { - CHUNITHM_SCORE_RANK_UNSPECIFIED: 0, - CHUNITHM_SCORE_RANK_D: 1, - CHUNITHM_SCORE_RANK_C: 2, - CHUNITHM_SCORE_RANK_B: 3, - CHUNITHM_SCORE_RANK_BB: 4, - CHUNITHM_SCORE_RANK_BBB: 5, - CHUNITHM_SCORE_RANK_A: 6, - CHUNITHM_SCORE_RANK_AA: 7, - CHUNITHM_SCORE_RANK_AAA: 8, - CHUNITHM_SCORE_RANK_S: 9, - CHUNITHM_SCORE_RANK_S_PLUS: 10, - CHUNITHM_SCORE_RANK_SS: 11, - CHUNITHM_SCORE_RANK_SS_PLUS: 12, - CHUNITHM_SCORE_RANK_SSS: 13, - CHUNITHM_SCORE_RANK_SSS_PLUS: 14 + CHUNITHM_SCORE_RANK_UNSPECIFIED: 0, + CHUNITHM_SCORE_RANK_D: 1, + CHUNITHM_SCORE_RANK_C: 2, + CHUNITHM_SCORE_RANK_B: 3, + CHUNITHM_SCORE_RANK_BB: 4, + CHUNITHM_SCORE_RANK_BBB: 5, + CHUNITHM_SCORE_RANK_A: 6, + CHUNITHM_SCORE_RANK_AA: 7, + CHUNITHM_SCORE_RANK_AAA: 8, + CHUNITHM_SCORE_RANK_S: 9, + CHUNITHM_SCORE_RANK_S_PLUS: 10, + CHUNITHM_SCORE_RANK_SS: 11, + CHUNITHM_SCORE_RANK_SS_PLUS: 12, + CHUNITHM_SCORE_RANK_SSS: 13, + CHUNITHM_SCORE_RANK_SSS_PLUS: 14, }; /** * @enum {number} */ proto.mythos.chunithm.v0.ChunithmComboStatus = { - CHUNITHM_COMBO_STATUS_UNSPECIFIED: 0, - CHUNITHM_COMBO_STATUS_NONE: 1, - CHUNITHM_COMBO_STATUS_FULL_COMBO: 2, - CHUNITHM_COMBO_STATUS_ALL_JUSTICE: 3, - CHUNITHM_COMBO_STATUS_ALL_JUSTICE_CRITICAL: 4 + CHUNITHM_COMBO_STATUS_UNSPECIFIED: 0, + CHUNITHM_COMBO_STATUS_NONE: 1, + CHUNITHM_COMBO_STATUS_FULL_COMBO: 2, + CHUNITHM_COMBO_STATUS_ALL_JUSTICE: 3, + CHUNITHM_COMBO_STATUS_ALL_JUSTICE_CRITICAL: 4, }; goog.object.extend(exports, proto.mythos.chunithm.v0); diff --git a/typescript/server/src/proto/generated/chunithm/playlog_grpc_pb.js b/typescript/server/src/proto/generated/chunithm/playlog_grpc_pb.js index 97b3a2461..51b4d6959 100644 --- a/typescript/server/src/proto/generated/chunithm/playlog_grpc_pb.js +++ b/typescript/server/src/proto/generated/chunithm/playlog_grpc_pb.js @@ -1 +1 @@ -// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file +// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/typescript/server/src/proto/generated/chunithm/playlog_pb.d.ts b/typescript/server/src/proto/generated/chunithm/playlog_pb.d.ts index 58a50d026..7e6277bf5 100644 --- a/typescript/server/src/proto/generated/chunithm/playlog_pb.d.ts +++ b/typescript/server/src/proto/generated/chunithm/playlog_pb.d.ts @@ -5,98 +5,113 @@ import * as jspb from "google-protobuf"; import * as chunithm_common_pb from "../chunithm/common_pb"; export class PlaylogInfo extends jspb.Message { - getMusicId(): number; - setMusicId(value: number): void; + getMusicId(): number; + setMusicId(value: number): void; - getLevel(): chunithm_common_pb.ChunithmLevelMap[keyof chunithm_common_pb.ChunithmLevelMap]; - setLevel(value: chunithm_common_pb.ChunithmLevelMap[keyof chunithm_common_pb.ChunithmLevelMap]): void; + getLevel(): chunithm_common_pb.ChunithmLevelMap[keyof chunithm_common_pb.ChunithmLevelMap]; + setLevel( + value: chunithm_common_pb.ChunithmLevelMap[keyof chunithm_common_pb.ChunithmLevelMap], + ): void; - getScore(): number; - setScore(value: number): void; + getScore(): number; + setScore(value: number): void; - getScoreRank(): chunithm_common_pb.ChunithmScoreRankMap[keyof chunithm_common_pb.ChunithmScoreRankMap]; - setScoreRank(value: chunithm_common_pb.ChunithmScoreRankMap[keyof chunithm_common_pb.ChunithmScoreRankMap]): void; + getScoreRank(): chunithm_common_pb.ChunithmScoreRankMap[keyof chunithm_common_pb.ChunithmScoreRankMap]; + setScoreRank( + value: chunithm_common_pb.ChunithmScoreRankMap[keyof chunithm_common_pb.ChunithmScoreRankMap], + ): void; - getComboStatus(): chunithm_common_pb.ChunithmComboStatusMap[keyof chunithm_common_pb.ChunithmComboStatusMap]; - setComboStatus(value: chunithm_common_pb.ChunithmComboStatusMap[keyof chunithm_common_pb.ChunithmComboStatusMap]): void; + getComboStatus(): chunithm_common_pb.ChunithmComboStatusMap[keyof chunithm_common_pb.ChunithmComboStatusMap]; + setComboStatus( + value: chunithm_common_pb.ChunithmComboStatusMap[keyof chunithm_common_pb.ChunithmComboStatusMap], + ): void; - getFullChainStatus(): chunithm_common_pb.ChunithmFullChainStatusMap[keyof chunithm_common_pb.ChunithmFullChainStatusMap]; - setFullChainStatus(value: chunithm_common_pb.ChunithmFullChainStatusMap[keyof chunithm_common_pb.ChunithmFullChainStatusMap]): void; + getFullChainStatus(): chunithm_common_pb.ChunithmFullChainStatusMap[keyof chunithm_common_pb.ChunithmFullChainStatusMap]; + setFullChainStatus( + value: chunithm_common_pb.ChunithmFullChainStatusMap[keyof chunithm_common_pb.ChunithmFullChainStatusMap], + ): void; - getClearStatus(): chunithm_common_pb.ChunithmClearStatusMap[keyof chunithm_common_pb.ChunithmClearStatusMap]; - setClearStatus(value: chunithm_common_pb.ChunithmClearStatusMap[keyof chunithm_common_pb.ChunithmClearStatusMap]): void; + getClearStatus(): chunithm_common_pb.ChunithmClearStatusMap[keyof chunithm_common_pb.ChunithmClearStatusMap]; + setClearStatus( + value: chunithm_common_pb.ChunithmClearStatusMap[keyof chunithm_common_pb.ChunithmClearStatusMap], + ): void; - getIsNewRecord(): boolean; - setIsNewRecord(value: boolean): void; + getIsNewRecord(): boolean; + setIsNewRecord(value: boolean): void; - getTrack(): number; - setTrack(value: number): void; + getTrack(): number; + setTrack(value: number): void; - getUserPlayDate(): string; - setUserPlayDate(value: string): void; + getUserPlayDate(): string; + setUserPlayDate(value: string): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PlaylogInfo.AsObject; - static toObject(includeInstance: boolean, msg: PlaylogInfo): PlaylogInfo.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PlaylogInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PlaylogInfo; - static deserializeBinaryFromReader(message: PlaylogInfo, reader: jspb.BinaryReader): PlaylogInfo; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PlaylogInfo.AsObject; + static toObject(includeInstance: boolean, msg: PlaylogInfo): PlaylogInfo.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo }; + static serializeBinaryToWriter(message: PlaylogInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PlaylogInfo; + static deserializeBinaryFromReader( + message: PlaylogInfo, + reader: jspb.BinaryReader, + ): PlaylogInfo; } export namespace PlaylogInfo { - export type AsObject = { - musicId: number, - level: chunithm_common_pb.ChunithmLevelMap[keyof chunithm_common_pb.ChunithmLevelMap], - score: number, - scoreRank: chunithm_common_pb.ChunithmScoreRankMap[keyof chunithm_common_pb.ChunithmScoreRankMap], - comboStatus: chunithm_common_pb.ChunithmComboStatusMap[keyof chunithm_common_pb.ChunithmComboStatusMap], - fullChainStatus: chunithm_common_pb.ChunithmFullChainStatusMap[keyof chunithm_common_pb.ChunithmFullChainStatusMap], - clearStatus: chunithm_common_pb.ChunithmClearStatusMap[keyof chunithm_common_pb.ChunithmClearStatusMap], - isNewRecord: boolean, - track: number, - userPlayDate: string, - } + export type AsObject = { + musicId: number; + level: chunithm_common_pb.ChunithmLevelMap[keyof chunithm_common_pb.ChunithmLevelMap]; + score: number; + scoreRank: chunithm_common_pb.ChunithmScoreRankMap[keyof chunithm_common_pb.ChunithmScoreRankMap]; + comboStatus: chunithm_common_pb.ChunithmComboStatusMap[keyof chunithm_common_pb.ChunithmComboStatusMap]; + fullChainStatus: chunithm_common_pb.ChunithmFullChainStatusMap[keyof chunithm_common_pb.ChunithmFullChainStatusMap]; + clearStatus: chunithm_common_pb.ChunithmClearStatusMap[keyof chunithm_common_pb.ChunithmClearStatusMap]; + isNewRecord: boolean; + track: number; + userPlayDate: string; + }; } export class PlaylogJudge extends jspb.Message { - getJudgeHeaven(): number; - setJudgeHeaven(value: number): void; + getJudgeHeaven(): number; + setJudgeHeaven(value: number): void; - getJudgeCritical(): number; - setJudgeCritical(value: number): void; + getJudgeCritical(): number; + setJudgeCritical(value: number): void; - getJudgeJustice(): number; - setJudgeJustice(value: number): void; + getJudgeJustice(): number; + setJudgeJustice(value: number): void; - getJudgeAttack(): number; - setJudgeAttack(value: number): void; + getJudgeAttack(): number; + setJudgeAttack(value: number): void; - getJudgeMiss(): number; - setJudgeMiss(value: number): void; + getJudgeMiss(): number; + setJudgeMiss(value: number): void; - getMaxCombo(): number; - setMaxCombo(value: number): void; + getMaxCombo(): number; + setMaxCombo(value: number): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PlaylogJudge.AsObject; - static toObject(includeInstance: boolean, msg: PlaylogJudge): PlaylogJudge.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PlaylogJudge, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PlaylogJudge; - static deserializeBinaryFromReader(message: PlaylogJudge, reader: jspb.BinaryReader): PlaylogJudge; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PlaylogJudge.AsObject; + static toObject(includeInstance: boolean, msg: PlaylogJudge): PlaylogJudge.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo }; + static serializeBinaryToWriter(message: PlaylogJudge, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PlaylogJudge; + static deserializeBinaryFromReader( + message: PlaylogJudge, + reader: jspb.BinaryReader, + ): PlaylogJudge; } export namespace PlaylogJudge { - export type AsObject = { - judgeHeaven: number, - judgeCritical: number, - judgeJustice: number, - judgeAttack: number, - judgeMiss: number, - maxCombo: number, - } + export type AsObject = { + judgeHeaven: number; + judgeCritical: number; + judgeJustice: number; + judgeAttack: number; + judgeMiss: number; + maxCombo: number; + }; } - diff --git a/typescript/server/src/proto/generated/chunithm/playlog_pb.js b/typescript/server/src/proto/generated/chunithm/playlog_pb.js index e85409dae..65ba74429 100644 --- a/typescript/server/src/proto/generated/chunithm/playlog_pb.js +++ b/typescript/server/src/proto/generated/chunithm/playlog_pb.js @@ -11,20 +11,28 @@ /* eslint-disable */ // @ts-nocheck -var jspb = require('google-protobuf'); +var jspb = require("google-protobuf"); var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); +var global = function () { + if (this) { + return this; + } + if (typeof window !== "undefined") { + return window; + } + if (typeof global !== "undefined") { + return global; + } + if (typeof self !== "undefined") { + return self; + } + return Function("return this")(); +}.call(null); -var chunithm_common_pb = require('../chunithm/common_pb.js'); +var chunithm_common_pb = require("../chunithm/common_pb.js"); goog.object.extend(proto, chunithm_common_pb); -goog.exportSymbol('proto.mythos.chunithm.v0.PlaylogInfo', null, global); -goog.exportSymbol('proto.mythos.chunithm.v0.PlaylogJudge', null, global); +goog.exportSymbol("proto.mythos.chunithm.v0.PlaylogInfo", null, global); +goog.exportSymbol("proto.mythos.chunithm.v0.PlaylogJudge", null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -35,16 +43,16 @@ goog.exportSymbol('proto.mythos.chunithm.v0.PlaylogJudge', null, global); * @extends {jspb.Message} * @constructor */ -proto.mythos.chunithm.v0.PlaylogInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.mythos.chunithm.v0.PlaylogInfo = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.mythos.chunithm.v0.PlaylogInfo, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.mythos.chunithm.v0.PlaylogInfo.displayName = 'proto.mythos.chunithm.v0.PlaylogInfo'; + /** + * @public + * @override + */ + proto.mythos.chunithm.v0.PlaylogInfo.displayName = "proto.mythos.chunithm.v0.PlaylogInfo"; } /** * Generated by JsPbCodeGenerator. @@ -56,81 +64,77 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.mythos.chunithm.v0.PlaylogJudge = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.mythos.chunithm.v0.PlaylogJudge = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.mythos.chunithm.v0.PlaylogJudge, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.mythos.chunithm.v0.PlaylogJudge.displayName = 'proto.mythos.chunithm.v0.PlaylogJudge'; + /** + * @public + * @override + */ + proto.mythos.chunithm.v0.PlaylogJudge.displayName = "proto.mythos.chunithm.v0.PlaylogJudge"; } - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.mythos.chunithm.v0.PlaylogInfo.prototype.toObject = function(opt_includeInstance) { - return proto.mythos.chunithm.v0.PlaylogInfo.toObject(opt_includeInstance, this); -}; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.mythos.chunithm.v0.PlaylogInfo.prototype.toObject = function (opt_includeInstance) { + return proto.mythos.chunithm.v0.PlaylogInfo.toObject(opt_includeInstance, this); + }; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.mythos.chunithm.v0.PlaylogInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.mythos.chunithm.v0.PlaylogInfo.toObject = function (includeInstance, msg) { + var f, + obj = { + musicId: jspb.Message.getFieldWithDefault(msg, 1, 0), + level: jspb.Message.getFieldWithDefault(msg, 2, 0), + score: jspb.Message.getFieldWithDefault(msg, 3, 0), + scoreRank: jspb.Message.getFieldWithDefault(msg, 4, 0), + comboStatus: jspb.Message.getFieldWithDefault(msg, 5, 0), + fullChainStatus: jspb.Message.getFieldWithDefault(msg, 6, 0), + clearStatus: jspb.Message.getFieldWithDefault(msg, 7, 0), + isNewRecord: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), + track: jspb.Message.getFieldWithDefault(msg, 9, 0), + userPlayDate: jspb.Message.getFieldWithDefault(msg, 10, ""), + }; -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.mythos.chunithm.v0.PlaylogInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.mythos.chunithm.v0.PlaylogInfo.toObject = function(includeInstance, msg) { - var f, obj = { - musicId: jspb.Message.getFieldWithDefault(msg, 1, 0), - level: jspb.Message.getFieldWithDefault(msg, 2, 0), - score: jspb.Message.getFieldWithDefault(msg, 3, 0), - scoreRank: jspb.Message.getFieldWithDefault(msg, 4, 0), - comboStatus: jspb.Message.getFieldWithDefault(msg, 5, 0), - fullChainStatus: jspb.Message.getFieldWithDefault(msg, 6, 0), - clearStatus: jspb.Message.getFieldWithDefault(msg, 7, 0), - isNewRecord: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), - track: jspb.Message.getFieldWithDefault(msg, 9, 0), - userPlayDate: jspb.Message.getFieldWithDefault(msg, 10, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.mythos.chunithm.v0.PlaylogInfo} */ -proto.mythos.chunithm.v0.PlaylogInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.mythos.chunithm.v0.PlaylogInfo; - return proto.mythos.chunithm.v0.PlaylogInfo.deserializeBinaryFromReader(msg, reader); +proto.mythos.chunithm.v0.PlaylogInfo.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.mythos.chunithm.v0.PlaylogInfo(); + return proto.mythos.chunithm.v0.PlaylogInfo.deserializeBinaryFromReader(msg, reader); }; - /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. @@ -138,73 +142,81 @@ proto.mythos.chunithm.v0.PlaylogInfo.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.mythos.chunithm.v0.PlaylogInfo} */ -proto.mythos.chunithm.v0.PlaylogInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMusicId(value); - break; - case 2: - var value = /** @type {!proto.mythos.chunithm.v0.ChunithmLevel} */ (reader.readEnum()); - msg.setLevel(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt32()); - msg.setScore(value); - break; - case 4: - var value = /** @type {!proto.mythos.chunithm.v0.ChunithmScoreRank} */ (reader.readEnum()); - msg.setScoreRank(value); - break; - case 5: - var value = /** @type {!proto.mythos.chunithm.v0.ChunithmComboStatus} */ (reader.readEnum()); - msg.setComboStatus(value); - break; - case 6: - var value = /** @type {!proto.mythos.chunithm.v0.ChunithmFullChainStatus} */ (reader.readEnum()); - msg.setFullChainStatus(value); - break; - case 7: - var value = /** @type {!proto.mythos.chunithm.v0.ChunithmClearStatus} */ (reader.readEnum()); - msg.setClearStatus(value); - break; - case 8: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsNewRecord(value); - break; - case 9: - var value = /** @type {number} */ (reader.readInt32()); - msg.setTrack(value); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.setUserPlayDate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.mythos.chunithm.v0.PlaylogInfo.deserializeBinaryFromReader = function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setMusicId(value); + break; + case 2: + var value = /** @type {!proto.mythos.chunithm.v0.ChunithmLevel} */ ( + reader.readEnum() + ); + msg.setLevel(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setScore(value); + break; + case 4: + var value = /** @type {!proto.mythos.chunithm.v0.ChunithmScoreRank} */ ( + reader.readEnum() + ); + msg.setScoreRank(value); + break; + case 5: + var value = /** @type {!proto.mythos.chunithm.v0.ChunithmComboStatus} */ ( + reader.readEnum() + ); + msg.setComboStatus(value); + break; + case 6: + var value = /** @type {!proto.mythos.chunithm.v0.ChunithmFullChainStatus} */ ( + reader.readEnum() + ); + msg.setFullChainStatus(value); + break; + case 7: + var value = /** @type {!proto.mythos.chunithm.v0.ChunithmClearStatus} */ ( + reader.readEnum() + ); + msg.setClearStatus(value); + break; + case 8: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsNewRecord(value); + break; + case 9: + var value = /** @type {number} */ (reader.readInt32()); + msg.setTrack(value); + break; + case 10: + var value = /** @type {string} */ (reader.readString()); + msg.setUserPlayDate(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.mythos.chunithm.v0.PlaylogInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.mythos.chunithm.v0.PlaylogInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.mythos.chunithm.v0.PlaylogInfo.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.mythos.chunithm.v0.PlaylogInfo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; - /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. @@ -212,321 +224,275 @@ proto.mythos.chunithm.v0.PlaylogInfo.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.mythos.chunithm.v0.PlaylogInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMusicId(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getLevel(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getScore(); - if (f !== 0) { - writer.writeInt32( - 3, - f - ); - } - f = message.getScoreRank(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } - f = message.getComboStatus(); - if (f !== 0.0) { - writer.writeEnum( - 5, - f - ); - } - f = message.getFullChainStatus(); - if (f !== 0.0) { - writer.writeEnum( - 6, - f - ); - } - f = message.getClearStatus(); - if (f !== 0.0) { - writer.writeEnum( - 7, - f - ); - } - f = message.getIsNewRecord(); - if (f) { - writer.writeBool( - 8, - f - ); - } - f = message.getTrack(); - if (f !== 0) { - writer.writeInt32( - 9, - f - ); - } - f = message.getUserPlayDate(); - if (f.length > 0) { - writer.writeString( - 10, - f - ); - } +proto.mythos.chunithm.v0.PlaylogInfo.serializeBinaryToWriter = function (message, writer) { + var f = undefined; + f = message.getMusicId(); + if (f !== 0) { + writer.writeInt32(1, f); + } + f = message.getLevel(); + if (f !== 0.0) { + writer.writeEnum(2, f); + } + f = message.getScore(); + if (f !== 0) { + writer.writeInt32(3, f); + } + f = message.getScoreRank(); + if (f !== 0.0) { + writer.writeEnum(4, f); + } + f = message.getComboStatus(); + if (f !== 0.0) { + writer.writeEnum(5, f); + } + f = message.getFullChainStatus(); + if (f !== 0.0) { + writer.writeEnum(6, f); + } + f = message.getClearStatus(); + if (f !== 0.0) { + writer.writeEnum(7, f); + } + f = message.getIsNewRecord(); + if (f) { + writer.writeBool(8, f); + } + f = message.getTrack(); + if (f !== 0) { + writer.writeInt32(9, f); + } + f = message.getUserPlayDate(); + if (f.length > 0) { + writer.writeString(10, f); + } }; - /** * optional int32 music_id = 1; * @return {number} */ -proto.mythos.chunithm.v0.PlaylogInfo.prototype.getMusicId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.mythos.chunithm.v0.PlaylogInfo.prototype.getMusicId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; - /** * @param {number} value * @return {!proto.mythos.chunithm.v0.PlaylogInfo} returns this */ -proto.mythos.chunithm.v0.PlaylogInfo.prototype.setMusicId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.mythos.chunithm.v0.PlaylogInfo.prototype.setMusicId = function (value) { + return jspb.Message.setProto3IntField(this, 1, value); }; - /** * optional ChunithmLevel level = 2; * @return {!proto.mythos.chunithm.v0.ChunithmLevel} */ -proto.mythos.chunithm.v0.PlaylogInfo.prototype.getLevel = function() { - return /** @type {!proto.mythos.chunithm.v0.ChunithmLevel} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.mythos.chunithm.v0.PlaylogInfo.prototype.getLevel = function () { + return /** @type {!proto.mythos.chunithm.v0.ChunithmLevel} */ ( + jspb.Message.getFieldWithDefault(this, 2, 0) + ); }; - /** * @param {!proto.mythos.chunithm.v0.ChunithmLevel} value * @return {!proto.mythos.chunithm.v0.PlaylogInfo} returns this */ -proto.mythos.chunithm.v0.PlaylogInfo.prototype.setLevel = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); +proto.mythos.chunithm.v0.PlaylogInfo.prototype.setLevel = function (value) { + return jspb.Message.setProto3EnumField(this, 2, value); }; - /** * optional int32 score = 3; * @return {number} */ -proto.mythos.chunithm.v0.PlaylogInfo.prototype.getScore = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.mythos.chunithm.v0.PlaylogInfo.prototype.getScore = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; - /** * @param {number} value * @return {!proto.mythos.chunithm.v0.PlaylogInfo} returns this */ -proto.mythos.chunithm.v0.PlaylogInfo.prototype.setScore = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.mythos.chunithm.v0.PlaylogInfo.prototype.setScore = function (value) { + return jspb.Message.setProto3IntField(this, 3, value); }; - /** * optional ChunithmScoreRank score_rank = 4; * @return {!proto.mythos.chunithm.v0.ChunithmScoreRank} */ -proto.mythos.chunithm.v0.PlaylogInfo.prototype.getScoreRank = function() { - return /** @type {!proto.mythos.chunithm.v0.ChunithmScoreRank} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +proto.mythos.chunithm.v0.PlaylogInfo.prototype.getScoreRank = function () { + return /** @type {!proto.mythos.chunithm.v0.ChunithmScoreRank} */ ( + jspb.Message.getFieldWithDefault(this, 4, 0) + ); }; - /** * @param {!proto.mythos.chunithm.v0.ChunithmScoreRank} value * @return {!proto.mythos.chunithm.v0.PlaylogInfo} returns this */ -proto.mythos.chunithm.v0.PlaylogInfo.prototype.setScoreRank = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); +proto.mythos.chunithm.v0.PlaylogInfo.prototype.setScoreRank = function (value) { + return jspb.Message.setProto3EnumField(this, 4, value); }; - /** * optional ChunithmComboStatus combo_status = 5; * @return {!proto.mythos.chunithm.v0.ChunithmComboStatus} */ -proto.mythos.chunithm.v0.PlaylogInfo.prototype.getComboStatus = function() { - return /** @type {!proto.mythos.chunithm.v0.ChunithmComboStatus} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +proto.mythos.chunithm.v0.PlaylogInfo.prototype.getComboStatus = function () { + return /** @type {!proto.mythos.chunithm.v0.ChunithmComboStatus} */ ( + jspb.Message.getFieldWithDefault(this, 5, 0) + ); }; - /** * @param {!proto.mythos.chunithm.v0.ChunithmComboStatus} value * @return {!proto.mythos.chunithm.v0.PlaylogInfo} returns this */ -proto.mythos.chunithm.v0.PlaylogInfo.prototype.setComboStatus = function(value) { - return jspb.Message.setProto3EnumField(this, 5, value); +proto.mythos.chunithm.v0.PlaylogInfo.prototype.setComboStatus = function (value) { + return jspb.Message.setProto3EnumField(this, 5, value); }; - /** * optional ChunithmFullChainStatus full_chain_status = 6; * @return {!proto.mythos.chunithm.v0.ChunithmFullChainStatus} */ -proto.mythos.chunithm.v0.PlaylogInfo.prototype.getFullChainStatus = function() { - return /** @type {!proto.mythos.chunithm.v0.ChunithmFullChainStatus} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +proto.mythos.chunithm.v0.PlaylogInfo.prototype.getFullChainStatus = function () { + return /** @type {!proto.mythos.chunithm.v0.ChunithmFullChainStatus} */ ( + jspb.Message.getFieldWithDefault(this, 6, 0) + ); }; - /** * @param {!proto.mythos.chunithm.v0.ChunithmFullChainStatus} value * @return {!proto.mythos.chunithm.v0.PlaylogInfo} returns this */ -proto.mythos.chunithm.v0.PlaylogInfo.prototype.setFullChainStatus = function(value) { - return jspb.Message.setProto3EnumField(this, 6, value); +proto.mythos.chunithm.v0.PlaylogInfo.prototype.setFullChainStatus = function (value) { + return jspb.Message.setProto3EnumField(this, 6, value); }; - /** * optional ChunithmClearStatus clear_status = 7; * @return {!proto.mythos.chunithm.v0.ChunithmClearStatus} */ -proto.mythos.chunithm.v0.PlaylogInfo.prototype.getClearStatus = function() { - return /** @type {!proto.mythos.chunithm.v0.ChunithmClearStatus} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +proto.mythos.chunithm.v0.PlaylogInfo.prototype.getClearStatus = function () { + return /** @type {!proto.mythos.chunithm.v0.ChunithmClearStatus} */ ( + jspb.Message.getFieldWithDefault(this, 7, 0) + ); }; - /** * @param {!proto.mythos.chunithm.v0.ChunithmClearStatus} value * @return {!proto.mythos.chunithm.v0.PlaylogInfo} returns this */ -proto.mythos.chunithm.v0.PlaylogInfo.prototype.setClearStatus = function(value) { - return jspb.Message.setProto3EnumField(this, 7, value); +proto.mythos.chunithm.v0.PlaylogInfo.prototype.setClearStatus = function (value) { + return jspb.Message.setProto3EnumField(this, 7, value); }; - /** * optional bool is_new_record = 8; * @return {boolean} */ -proto.mythos.chunithm.v0.PlaylogInfo.prototype.getIsNewRecord = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); +proto.mythos.chunithm.v0.PlaylogInfo.prototype.getIsNewRecord = function () { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); }; - /** * @param {boolean} value * @return {!proto.mythos.chunithm.v0.PlaylogInfo} returns this */ -proto.mythos.chunithm.v0.PlaylogInfo.prototype.setIsNewRecord = function(value) { - return jspb.Message.setProto3BooleanField(this, 8, value); +proto.mythos.chunithm.v0.PlaylogInfo.prototype.setIsNewRecord = function (value) { + return jspb.Message.setProto3BooleanField(this, 8, value); }; - /** * optional int32 track = 9; * @return {number} */ -proto.mythos.chunithm.v0.PlaylogInfo.prototype.getTrack = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); +proto.mythos.chunithm.v0.PlaylogInfo.prototype.getTrack = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); }; - /** * @param {number} value * @return {!proto.mythos.chunithm.v0.PlaylogInfo} returns this */ -proto.mythos.chunithm.v0.PlaylogInfo.prototype.setTrack = function(value) { - return jspb.Message.setProto3IntField(this, 9, value); +proto.mythos.chunithm.v0.PlaylogInfo.prototype.setTrack = function (value) { + return jspb.Message.setProto3IntField(this, 9, value); }; - /** * optional string user_play_date = 10; * @return {string} */ -proto.mythos.chunithm.v0.PlaylogInfo.prototype.getUserPlayDate = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); +proto.mythos.chunithm.v0.PlaylogInfo.prototype.getUserPlayDate = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); }; - /** * @param {string} value * @return {!proto.mythos.chunithm.v0.PlaylogInfo} returns this */ -proto.mythos.chunithm.v0.PlaylogInfo.prototype.setUserPlayDate = function(value) { - return jspb.Message.setProto3StringField(this, 10, value); +proto.mythos.chunithm.v0.PlaylogInfo.prototype.setUserPlayDate = function (value) { + return jspb.Message.setProto3StringField(this, 10, value); }; - - - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.mythos.chunithm.v0.PlaylogJudge.prototype.toObject = function(opt_includeInstance) { - return proto.mythos.chunithm.v0.PlaylogJudge.toObject(opt_includeInstance, this); -}; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.mythos.chunithm.v0.PlaylogJudge.prototype.toObject = function (opt_includeInstance) { + return proto.mythos.chunithm.v0.PlaylogJudge.toObject(opt_includeInstance, this); + }; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.mythos.chunithm.v0.PlaylogJudge} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.mythos.chunithm.v0.PlaylogJudge.toObject = function (includeInstance, msg) { + var f, + obj = { + judgeHeaven: jspb.Message.getFieldWithDefault(msg, 1, 0), + judgeCritical: jspb.Message.getFieldWithDefault(msg, 2, 0), + judgeJustice: jspb.Message.getFieldWithDefault(msg, 3, 0), + judgeAttack: jspb.Message.getFieldWithDefault(msg, 4, 0), + judgeMiss: jspb.Message.getFieldWithDefault(msg, 5, 0), + maxCombo: jspb.Message.getFieldWithDefault(msg, 6, 0), + }; -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.mythos.chunithm.v0.PlaylogJudge} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.mythos.chunithm.v0.PlaylogJudge.toObject = function(includeInstance, msg) { - var f, obj = { - judgeHeaven: jspb.Message.getFieldWithDefault(msg, 1, 0), - judgeCritical: jspb.Message.getFieldWithDefault(msg, 2, 0), - judgeJustice: jspb.Message.getFieldWithDefault(msg, 3, 0), - judgeAttack: jspb.Message.getFieldWithDefault(msg, 4, 0), - judgeMiss: jspb.Message.getFieldWithDefault(msg, 5, 0), - maxCombo: jspb.Message.getFieldWithDefault(msg, 6, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.mythos.chunithm.v0.PlaylogJudge} */ -proto.mythos.chunithm.v0.PlaylogJudge.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.mythos.chunithm.v0.PlaylogJudge; - return proto.mythos.chunithm.v0.PlaylogJudge.deserializeBinaryFromReader(msg, reader); +proto.mythos.chunithm.v0.PlaylogJudge.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.mythos.chunithm.v0.PlaylogJudge(); + return proto.mythos.chunithm.v0.PlaylogJudge.deserializeBinaryFromReader(msg, reader); }; - /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. @@ -534,57 +500,55 @@ proto.mythos.chunithm.v0.PlaylogJudge.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.mythos.chunithm.v0.PlaylogJudge} */ -proto.mythos.chunithm.v0.PlaylogJudge.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setJudgeHeaven(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setJudgeCritical(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt32()); - msg.setJudgeJustice(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt32()); - msg.setJudgeAttack(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt32()); - msg.setJudgeMiss(value); - break; - case 6: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMaxCombo(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.mythos.chunithm.v0.PlaylogJudge.deserializeBinaryFromReader = function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setJudgeHeaven(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setJudgeCritical(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setJudgeJustice(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt32()); + msg.setJudgeAttack(value); + break; + case 5: + var value = /** @type {number} */ (reader.readInt32()); + msg.setJudgeMiss(value); + break; + case 6: + var value = /** @type {number} */ (reader.readInt32()); + msg.setMaxCombo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.mythos.chunithm.v0.PlaylogJudge.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.mythos.chunithm.v0.PlaylogJudge.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.mythos.chunithm.v0.PlaylogJudge.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.mythos.chunithm.v0.PlaylogJudge.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; - /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. @@ -592,159 +556,128 @@ proto.mythos.chunithm.v0.PlaylogJudge.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.mythos.chunithm.v0.PlaylogJudge.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getJudgeHeaven(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getJudgeCritical(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } - f = message.getJudgeJustice(); - if (f !== 0) { - writer.writeInt32( - 3, - f - ); - } - f = message.getJudgeAttack(); - if (f !== 0) { - writer.writeInt32( - 4, - f - ); - } - f = message.getJudgeMiss(); - if (f !== 0) { - writer.writeInt32( - 5, - f - ); - } - f = message.getMaxCombo(); - if (f !== 0) { - writer.writeInt32( - 6, - f - ); - } +proto.mythos.chunithm.v0.PlaylogJudge.serializeBinaryToWriter = function (message, writer) { + var f = undefined; + f = message.getJudgeHeaven(); + if (f !== 0) { + writer.writeInt32(1, f); + } + f = message.getJudgeCritical(); + if (f !== 0) { + writer.writeInt32(2, f); + } + f = message.getJudgeJustice(); + if (f !== 0) { + writer.writeInt32(3, f); + } + f = message.getJudgeAttack(); + if (f !== 0) { + writer.writeInt32(4, f); + } + f = message.getJudgeMiss(); + if (f !== 0) { + writer.writeInt32(5, f); + } + f = message.getMaxCombo(); + if (f !== 0) { + writer.writeInt32(6, f); + } }; - /** * optional int32 judge_heaven = 1; * @return {number} */ -proto.mythos.chunithm.v0.PlaylogJudge.prototype.getJudgeHeaven = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.mythos.chunithm.v0.PlaylogJudge.prototype.getJudgeHeaven = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; - /** * @param {number} value * @return {!proto.mythos.chunithm.v0.PlaylogJudge} returns this */ -proto.mythos.chunithm.v0.PlaylogJudge.prototype.setJudgeHeaven = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.mythos.chunithm.v0.PlaylogJudge.prototype.setJudgeHeaven = function (value) { + return jspb.Message.setProto3IntField(this, 1, value); }; - /** * optional int32 judge_critical = 2; * @return {number} */ -proto.mythos.chunithm.v0.PlaylogJudge.prototype.getJudgeCritical = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.mythos.chunithm.v0.PlaylogJudge.prototype.getJudgeCritical = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; - /** * @param {number} value * @return {!proto.mythos.chunithm.v0.PlaylogJudge} returns this */ -proto.mythos.chunithm.v0.PlaylogJudge.prototype.setJudgeCritical = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); +proto.mythos.chunithm.v0.PlaylogJudge.prototype.setJudgeCritical = function (value) { + return jspb.Message.setProto3IntField(this, 2, value); }; - /** * optional int32 judge_justice = 3; * @return {number} */ -proto.mythos.chunithm.v0.PlaylogJudge.prototype.getJudgeJustice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.mythos.chunithm.v0.PlaylogJudge.prototype.getJudgeJustice = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; - /** * @param {number} value * @return {!proto.mythos.chunithm.v0.PlaylogJudge} returns this */ -proto.mythos.chunithm.v0.PlaylogJudge.prototype.setJudgeJustice = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.mythos.chunithm.v0.PlaylogJudge.prototype.setJudgeJustice = function (value) { + return jspb.Message.setProto3IntField(this, 3, value); }; - /** * optional int32 judge_attack = 4; * @return {number} */ -proto.mythos.chunithm.v0.PlaylogJudge.prototype.getJudgeAttack = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +proto.mythos.chunithm.v0.PlaylogJudge.prototype.getJudgeAttack = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; - /** * @param {number} value * @return {!proto.mythos.chunithm.v0.PlaylogJudge} returns this */ -proto.mythos.chunithm.v0.PlaylogJudge.prototype.setJudgeAttack = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); +proto.mythos.chunithm.v0.PlaylogJudge.prototype.setJudgeAttack = function (value) { + return jspb.Message.setProto3IntField(this, 4, value); }; - /** * optional int32 judge_miss = 5; * @return {number} */ -proto.mythos.chunithm.v0.PlaylogJudge.prototype.getJudgeMiss = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +proto.mythos.chunithm.v0.PlaylogJudge.prototype.getJudgeMiss = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; - /** * @param {number} value * @return {!proto.mythos.chunithm.v0.PlaylogJudge} returns this */ -proto.mythos.chunithm.v0.PlaylogJudge.prototype.setJudgeMiss = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); +proto.mythos.chunithm.v0.PlaylogJudge.prototype.setJudgeMiss = function (value) { + return jspb.Message.setProto3IntField(this, 5, value); }; - /** * optional int32 max_combo = 6; * @return {number} */ -proto.mythos.chunithm.v0.PlaylogJudge.prototype.getMaxCombo = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +proto.mythos.chunithm.v0.PlaylogJudge.prototype.getMaxCombo = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); }; - /** * @param {number} value * @return {!proto.mythos.chunithm.v0.PlaylogJudge} returns this */ -proto.mythos.chunithm.v0.PlaylogJudge.prototype.setMaxCombo = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); +proto.mythos.chunithm.v0.PlaylogJudge.prototype.setMaxCombo = function (value) { + return jspb.Message.setProto3IntField(this, 6, value); }; - goog.object.extend(exports, proto.mythos.chunithm.v0); diff --git a/typescript/server/src/proto/generated/chunithm/user_grpc_pb.d.ts b/typescript/server/src/proto/generated/chunithm/user_grpc_pb.d.ts index 2111d77cf..b6af87cb6 100644 --- a/typescript/server/src/proto/generated/chunithm/user_grpc_pb.d.ts +++ b/typescript/server/src/proto/generated/chunithm/user_grpc_pb.d.ts @@ -7,17 +7,30 @@ import * as chunithm_user_pb from "../chunithm/user_pb"; import * as grpc from "@grpc/grpc-js"; interface IChunithmUserService extends grpc.ServiceDefinition { - getPlaylog: grpc.MethodDefinition; + getPlaylog: grpc.MethodDefinition< + chunithm_user_pb.GetPlaylogRequest, + chunithm_user_pb.GetPlaylogStreamItem + >; } export const ChunithmUserService: IChunithmUserService; export interface IChunithmUserServer extends grpc.UntypedServiceImplementation { - getPlaylog: grpc.handleServerStreamingCall; + getPlaylog: grpc.handleServerStreamingCall< + chunithm_user_pb.GetPlaylogRequest, + chunithm_user_pb.GetPlaylogStreamItem + >; } export class ChunithmUserClient extends grpc.Client { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - getPlaylog(argument: chunithm_user_pb.GetPlaylogRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream; - getPlaylog(argument: chunithm_user_pb.GetPlaylogRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream; + constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); + getPlaylog( + argument: chunithm_user_pb.GetPlaylogRequest, + metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null, + ): grpc.ClientReadableStream; + getPlaylog( + argument: chunithm_user_pb.GetPlaylogRequest, + metadata?: grpc.Metadata | null, + options?: grpc.CallOptions | null, + ): grpc.ClientReadableStream; } diff --git a/typescript/server/src/proto/generated/chunithm/user_grpc_pb.js b/typescript/server/src/proto/generated/chunithm/user_grpc_pb.js index fd4fbf5c4..b5c9fd158 100644 --- a/typescript/server/src/proto/generated/chunithm/user_grpc_pb.js +++ b/typescript/server/src/proto/generated/chunithm/user_grpc_pb.js @@ -1,45 +1,44 @@ // GENERATED CODE -- DO NOT EDIT! -'use strict'; -var grpc = require('@grpc/grpc-js'); -var chunithm_user_pb = require('../chunithm/user_pb.js'); -var chunithm_playlog_pb = require('../chunithm/playlog_pb.js'); +"use strict"; +var grpc = require("@grpc/grpc-js"); +var chunithm_user_pb = require("../chunithm/user_pb.js"); +var chunithm_playlog_pb = require("../chunithm/playlog_pb.js"); function serialize_mythos_chunithm_v0_GetPlaylogRequest(arg) { - if (!(arg instanceof chunithm_user_pb.GetPlaylogRequest)) { - throw new Error('Expected argument of type mythos.chunithm.v0.GetPlaylogRequest'); - } - return Buffer.from(arg.serializeBinary()); + if (!(arg instanceof chunithm_user_pb.GetPlaylogRequest)) { + throw new Error("Expected argument of type mythos.chunithm.v0.GetPlaylogRequest"); + } + return Buffer.from(arg.serializeBinary()); } function deserialize_mythos_chunithm_v0_GetPlaylogRequest(buffer_arg) { - return chunithm_user_pb.GetPlaylogRequest.deserializeBinary(new Uint8Array(buffer_arg)); + return chunithm_user_pb.GetPlaylogRequest.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_mythos_chunithm_v0_GetPlaylogStreamItem(arg) { - if (!(arg instanceof chunithm_user_pb.GetPlaylogStreamItem)) { - throw new Error('Expected argument of type mythos.chunithm.v0.GetPlaylogStreamItem'); - } - return Buffer.from(arg.serializeBinary()); + if (!(arg instanceof chunithm_user_pb.GetPlaylogStreamItem)) { + throw new Error("Expected argument of type mythos.chunithm.v0.GetPlaylogStreamItem"); + } + return Buffer.from(arg.serializeBinary()); } function deserialize_mythos_chunithm_v0_GetPlaylogStreamItem(buffer_arg) { - return chunithm_user_pb.GetPlaylogStreamItem.deserializeBinary(new Uint8Array(buffer_arg)); + return chunithm_user_pb.GetPlaylogStreamItem.deserializeBinary(new Uint8Array(buffer_arg)); } +var ChunithmUserService = (exports.ChunithmUserService = { + getPlaylog: { + path: "/mythos.chunithm.v0.ChunithmUser/GetPlaylog", + requestStream: false, + responseStream: true, + requestType: chunithm_user_pb.GetPlaylogRequest, + responseType: chunithm_user_pb.GetPlaylogStreamItem, + requestSerialize: serialize_mythos_chunithm_v0_GetPlaylogRequest, + requestDeserialize: deserialize_mythos_chunithm_v0_GetPlaylogRequest, + responseSerialize: serialize_mythos_chunithm_v0_GetPlaylogStreamItem, + responseDeserialize: deserialize_mythos_chunithm_v0_GetPlaylogStreamItem, + }, +}); -var ChunithmUserService = exports.ChunithmUserService = { - getPlaylog: { - path: '/mythos.chunithm.v0.ChunithmUser/GetPlaylog', - requestStream: false, - responseStream: true, - requestType: chunithm_user_pb.GetPlaylogRequest, - responseType: chunithm_user_pb.GetPlaylogStreamItem, - requestSerialize: serialize_mythos_chunithm_v0_GetPlaylogRequest, - requestDeserialize: deserialize_mythos_chunithm_v0_GetPlaylogRequest, - responseSerialize: serialize_mythos_chunithm_v0_GetPlaylogStreamItem, - responseDeserialize: deserialize_mythos_chunithm_v0_GetPlaylogStreamItem, - }, -}; - -exports.ChunithmUserClient = grpc.makeGenericClientConstructor(ChunithmUserService, 'ChunithmUser'); +exports.ChunithmUserClient = grpc.makeGenericClientConstructor(ChunithmUserService, "ChunithmUser"); diff --git a/typescript/server/src/proto/generated/chunithm/user_pb.d.ts b/typescript/server/src/proto/generated/chunithm/user_pb.d.ts index 73027cbec..76f4adc85 100644 --- a/typescript/server/src/proto/generated/chunithm/user_pb.d.ts +++ b/typescript/server/src/proto/generated/chunithm/user_pb.d.ts @@ -5,66 +5,74 @@ import * as jspb from "google-protobuf"; import * as chunithm_playlog_pb from "../chunithm/playlog_pb"; export class GetPlaylogRequest extends jspb.Message { - getProfileApiId(): string; - setProfileApiId(value: string): void; + getProfileApiId(): string; + setProfileApiId(value: string): void; - hasLastUserPlayDate(): boolean; - clearLastUserPlayDate(): void; - getLastUserPlayDate(): string; - setLastUserPlayDate(value: string): void; + hasLastUserPlayDate(): boolean; + clearLastUserPlayDate(): void; + getLastUserPlayDate(): string; + setLastUserPlayDate(value: string): void; - hasLimit(): boolean; - clearLimit(): void; - getLimit(): number; - setLimit(value: number): void; + hasLimit(): boolean; + clearLimit(): void; + getLimit(): number; + setLimit(value: number): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetPlaylogRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetPlaylogRequest): GetPlaylogRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetPlaylogRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetPlaylogRequest; - static deserializeBinaryFromReader(message: GetPlaylogRequest, reader: jspb.BinaryReader): GetPlaylogRequest; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetPlaylogRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetPlaylogRequest): GetPlaylogRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo }; + static serializeBinaryToWriter(message: GetPlaylogRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetPlaylogRequest; + static deserializeBinaryFromReader( + message: GetPlaylogRequest, + reader: jspb.BinaryReader, + ): GetPlaylogRequest; } export namespace GetPlaylogRequest { - export type AsObject = { - profileApiId: string, - lastUserPlayDate: string, - limit: number, - } + export type AsObject = { + profileApiId: string; + lastUserPlayDate: string; + limit: number; + }; } export class GetPlaylogStreamItem extends jspb.Message { - getPlaylogApiId(): string; - setPlaylogApiId(value: string): void; + getPlaylogApiId(): string; + setPlaylogApiId(value: string): void; - hasInfo(): boolean; - clearInfo(): void; - getInfo(): chunithm_playlog_pb.PlaylogInfo | undefined; - setInfo(value?: chunithm_playlog_pb.PlaylogInfo): void; + hasInfo(): boolean; + clearInfo(): void; + getInfo(): chunithm_playlog_pb.PlaylogInfo | undefined; + setInfo(value?: chunithm_playlog_pb.PlaylogInfo): void; - hasJudge(): boolean; - clearJudge(): void; - getJudge(): chunithm_playlog_pb.PlaylogJudge | undefined; - setJudge(value?: chunithm_playlog_pb.PlaylogJudge): void; + hasJudge(): boolean; + clearJudge(): void; + getJudge(): chunithm_playlog_pb.PlaylogJudge | undefined; + setJudge(value?: chunithm_playlog_pb.PlaylogJudge): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetPlaylogStreamItem.AsObject; - static toObject(includeInstance: boolean, msg: GetPlaylogStreamItem): GetPlaylogStreamItem.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetPlaylogStreamItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetPlaylogStreamItem; - static deserializeBinaryFromReader(message: GetPlaylogStreamItem, reader: jspb.BinaryReader): GetPlaylogStreamItem; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetPlaylogStreamItem.AsObject; + static toObject( + includeInstance: boolean, + msg: GetPlaylogStreamItem, + ): GetPlaylogStreamItem.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo }; + static serializeBinaryToWriter(message: GetPlaylogStreamItem, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetPlaylogStreamItem; + static deserializeBinaryFromReader( + message: GetPlaylogStreamItem, + reader: jspb.BinaryReader, + ): GetPlaylogStreamItem; } export namespace GetPlaylogStreamItem { - export type AsObject = { - playlogApiId: string, - info?: chunithm_playlog_pb.PlaylogInfo.AsObject, - judge?: chunithm_playlog_pb.PlaylogJudge.AsObject, - } + export type AsObject = { + playlogApiId: string; + info?: chunithm_playlog_pb.PlaylogInfo.AsObject; + judge?: chunithm_playlog_pb.PlaylogJudge.AsObject; + }; } - diff --git a/typescript/server/src/proto/generated/chunithm/user_pb.js b/typescript/server/src/proto/generated/chunithm/user_pb.js index 847ec7812..c561ec2c6 100644 --- a/typescript/server/src/proto/generated/chunithm/user_pb.js +++ b/typescript/server/src/proto/generated/chunithm/user_pb.js @@ -11,20 +11,28 @@ /* eslint-disable */ // @ts-nocheck -var jspb = require('google-protobuf'); +var jspb = require("google-protobuf"); var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); +var global = function () { + if (this) { + return this; + } + if (typeof window !== "undefined") { + return window; + } + if (typeof global !== "undefined") { + return global; + } + if (typeof self !== "undefined") { + return self; + } + return Function("return this")(); +}.call(null); -var chunithm_playlog_pb = require('../chunithm/playlog_pb.js'); +var chunithm_playlog_pb = require("../chunithm/playlog_pb.js"); goog.object.extend(proto, chunithm_playlog_pb); -goog.exportSymbol('proto.mythos.chunithm.v0.GetPlaylogRequest', null, global); -goog.exportSymbol('proto.mythos.chunithm.v0.GetPlaylogStreamItem', null, global); +goog.exportSymbol("proto.mythos.chunithm.v0.GetPlaylogRequest", null, global); +goog.exportSymbol("proto.mythos.chunithm.v0.GetPlaylogStreamItem", null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -35,16 +43,17 @@ goog.exportSymbol('proto.mythos.chunithm.v0.GetPlaylogStreamItem', null, global) * @extends {jspb.Message} * @constructor */ -proto.mythos.chunithm.v0.GetPlaylogRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.mythos.chunithm.v0.GetPlaylogRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.mythos.chunithm.v0.GetPlaylogRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.mythos.chunithm.v0.GetPlaylogRequest.displayName = 'proto.mythos.chunithm.v0.GetPlaylogRequest'; + /** + * @public + * @override + */ + proto.mythos.chunithm.v0.GetPlaylogRequest.displayName = + "proto.mythos.chunithm.v0.GetPlaylogRequest"; } /** * Generated by JsPbCodeGenerator. @@ -56,74 +65,71 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.mythos.chunithm.v0.GetPlaylogStreamItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.mythos.chunithm.v0.GetPlaylogStreamItem = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.mythos.chunithm.v0.GetPlaylogStreamItem, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.mythos.chunithm.v0.GetPlaylogStreamItem.displayName = 'proto.mythos.chunithm.v0.GetPlaylogStreamItem'; + /** + * @public + * @override + */ + proto.mythos.chunithm.v0.GetPlaylogStreamItem.displayName = + "proto.mythos.chunithm.v0.GetPlaylogStreamItem"; } - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.mythos.chunithm.v0.GetPlaylogRequest.prototype.toObject = function(opt_includeInstance) { - return proto.mythos.chunithm.v0.GetPlaylogRequest.toObject(opt_includeInstance, this); -}; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.mythos.chunithm.v0.GetPlaylogRequest.prototype.toObject = function (opt_includeInstance) { + return proto.mythos.chunithm.v0.GetPlaylogRequest.toObject(opt_includeInstance, this); + }; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.mythos.chunithm.v0.GetPlaylogRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.mythos.chunithm.v0.GetPlaylogRequest.toObject = function (includeInstance, msg) { + var f, + obj = { + profileApiId: jspb.Message.getFieldWithDefault(msg, 1, ""), + lastUserPlayDate: jspb.Message.getFieldWithDefault(msg, 2, ""), + limit: jspb.Message.getFieldWithDefault(msg, 3, 0), + }; -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.mythos.chunithm.v0.GetPlaylogRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.mythos.chunithm.v0.GetPlaylogRequest.toObject = function(includeInstance, msg) { - var f, obj = { - profileApiId: jspb.Message.getFieldWithDefault(msg, 1, ""), - lastUserPlayDate: jspb.Message.getFieldWithDefault(msg, 2, ""), - limit: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.mythos.chunithm.v0.GetPlaylogRequest} */ -proto.mythos.chunithm.v0.GetPlaylogRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.mythos.chunithm.v0.GetPlaylogRequest; - return proto.mythos.chunithm.v0.GetPlaylogRequest.deserializeBinaryFromReader(msg, reader); +proto.mythos.chunithm.v0.GetPlaylogRequest.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.mythos.chunithm.v0.GetPlaylogRequest(); + return proto.mythos.chunithm.v0.GetPlaylogRequest.deserializeBinaryFromReader(msg, reader); }; - /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. @@ -131,45 +137,43 @@ proto.mythos.chunithm.v0.GetPlaylogRequest.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.mythos.chunithm.v0.GetPlaylogRequest} */ -proto.mythos.chunithm.v0.GetPlaylogRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProfileApiId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setLastUserPlayDate(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.mythos.chunithm.v0.GetPlaylogRequest.deserializeBinaryFromReader = function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setProfileApiId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setLastUserPlayDate(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setLimit(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.mythos.chunithm.v0.GetPlaylogRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.mythos.chunithm.v0.GetPlaylogRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.mythos.chunithm.v0.GetPlaylogRequest.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.mythos.chunithm.v0.GetPlaylogRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; - /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. @@ -177,179 +181,160 @@ proto.mythos.chunithm.v0.GetPlaylogRequest.prototype.serializeBinary = function( * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.mythos.chunithm.v0.GetPlaylogRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProfileApiId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeString( - 2, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 3)); - if (f != null) { - writer.writeUint64( - 3, - f - ); - } +proto.mythos.chunithm.v0.GetPlaylogRequest.serializeBinaryToWriter = function (message, writer) { + var f = undefined; + f = message.getProfileApiId(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeString(2, f); + } + f = /** @type {number} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeUint64(3, f); + } }; - /** * optional string profile_api_id = 1; * @return {string} */ -proto.mythos.chunithm.v0.GetPlaylogRequest.prototype.getProfileApiId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.mythos.chunithm.v0.GetPlaylogRequest.prototype.getProfileApiId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; - /** * @param {string} value * @return {!proto.mythos.chunithm.v0.GetPlaylogRequest} returns this */ -proto.mythos.chunithm.v0.GetPlaylogRequest.prototype.setProfileApiId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.mythos.chunithm.v0.GetPlaylogRequest.prototype.setProfileApiId = function (value) { + return jspb.Message.setProto3StringField(this, 1, value); }; - /** * optional string last_user_play_date = 2; * @return {string} */ -proto.mythos.chunithm.v0.GetPlaylogRequest.prototype.getLastUserPlayDate = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.mythos.chunithm.v0.GetPlaylogRequest.prototype.getLastUserPlayDate = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; - /** * @param {string} value * @return {!proto.mythos.chunithm.v0.GetPlaylogRequest} returns this */ -proto.mythos.chunithm.v0.GetPlaylogRequest.prototype.setLastUserPlayDate = function(value) { - return jspb.Message.setField(this, 2, value); +proto.mythos.chunithm.v0.GetPlaylogRequest.prototype.setLastUserPlayDate = function (value) { + return jspb.Message.setField(this, 2, value); }; - /** * Clears the field making it undefined. * @return {!proto.mythos.chunithm.v0.GetPlaylogRequest} returns this */ -proto.mythos.chunithm.v0.GetPlaylogRequest.prototype.clearLastUserPlayDate = function() { - return jspb.Message.setField(this, 2, undefined); +proto.mythos.chunithm.v0.GetPlaylogRequest.prototype.clearLastUserPlayDate = function () { + return jspb.Message.setField(this, 2, undefined); }; - /** * Returns whether this field is set. * @return {boolean} */ -proto.mythos.chunithm.v0.GetPlaylogRequest.prototype.hasLastUserPlayDate = function() { - return jspb.Message.getField(this, 2) != null; +proto.mythos.chunithm.v0.GetPlaylogRequest.prototype.hasLastUserPlayDate = function () { + return jspb.Message.getField(this, 2) != null; }; - /** * optional uint64 limit = 3; * @return {number} */ -proto.mythos.chunithm.v0.GetPlaylogRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.mythos.chunithm.v0.GetPlaylogRequest.prototype.getLimit = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; - /** * @param {number} value * @return {!proto.mythos.chunithm.v0.GetPlaylogRequest} returns this */ -proto.mythos.chunithm.v0.GetPlaylogRequest.prototype.setLimit = function(value) { - return jspb.Message.setField(this, 3, value); +proto.mythos.chunithm.v0.GetPlaylogRequest.prototype.setLimit = function (value) { + return jspb.Message.setField(this, 3, value); }; - /** * Clears the field making it undefined. * @return {!proto.mythos.chunithm.v0.GetPlaylogRequest} returns this */ -proto.mythos.chunithm.v0.GetPlaylogRequest.prototype.clearLimit = function() { - return jspb.Message.setField(this, 3, undefined); +proto.mythos.chunithm.v0.GetPlaylogRequest.prototype.clearLimit = function () { + return jspb.Message.setField(this, 3, undefined); }; - /** * Returns whether this field is set. * @return {boolean} */ -proto.mythos.chunithm.v0.GetPlaylogRequest.prototype.hasLimit = function() { - return jspb.Message.getField(this, 3) != null; +proto.mythos.chunithm.v0.GetPlaylogRequest.prototype.hasLimit = function () { + return jspb.Message.getField(this, 3) != null; }; - - - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.mythos.chunithm.v0.GetPlaylogStreamItem.prototype.toObject = function(opt_includeInstance) { - return proto.mythos.chunithm.v0.GetPlaylogStreamItem.toObject(opt_includeInstance, this); -}; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.mythos.chunithm.v0.GetPlaylogStreamItem.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.mythos.chunithm.v0.GetPlaylogStreamItem.toObject(opt_includeInstance, this); + }; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.mythos.chunithm.v0.GetPlaylogStreamItem} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.mythos.chunithm.v0.GetPlaylogStreamItem.toObject = function (includeInstance, msg) { + var f, + obj = { + playlogApiId: jspb.Message.getFieldWithDefault(msg, 1, ""), + info: + (f = msg.getInfo()) && + chunithm_playlog_pb.PlaylogInfo.toObject(includeInstance, f), + judge: + (f = msg.getJudge()) && + chunithm_playlog_pb.PlaylogJudge.toObject(includeInstance, f), + }; -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.mythos.chunithm.v0.GetPlaylogStreamItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.mythos.chunithm.v0.GetPlaylogStreamItem.toObject = function(includeInstance, msg) { - var f, obj = { - playlogApiId: jspb.Message.getFieldWithDefault(msg, 1, ""), - info: (f = msg.getInfo()) && chunithm_playlog_pb.PlaylogInfo.toObject(includeInstance, f), - judge: (f = msg.getJudge()) && chunithm_playlog_pb.PlaylogJudge.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.mythos.chunithm.v0.GetPlaylogStreamItem} */ -proto.mythos.chunithm.v0.GetPlaylogStreamItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.mythos.chunithm.v0.GetPlaylogStreamItem; - return proto.mythos.chunithm.v0.GetPlaylogStreamItem.deserializeBinaryFromReader(msg, reader); +proto.mythos.chunithm.v0.GetPlaylogStreamItem.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.mythos.chunithm.v0.GetPlaylogStreamItem(); + return proto.mythos.chunithm.v0.GetPlaylogStreamItem.deserializeBinaryFromReader(msg, reader); }; - /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. @@ -357,47 +342,51 @@ proto.mythos.chunithm.v0.GetPlaylogStreamItem.deserializeBinary = function(bytes * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.mythos.chunithm.v0.GetPlaylogStreamItem} */ -proto.mythos.chunithm.v0.GetPlaylogStreamItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPlaylogApiId(value); - break; - case 2: - var value = new chunithm_playlog_pb.PlaylogInfo; - reader.readMessage(value,chunithm_playlog_pb.PlaylogInfo.deserializeBinaryFromReader); - msg.setInfo(value); - break; - case 3: - var value = new chunithm_playlog_pb.PlaylogJudge; - reader.readMessage(value,chunithm_playlog_pb.PlaylogJudge.deserializeBinaryFromReader); - msg.setJudge(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.mythos.chunithm.v0.GetPlaylogStreamItem.deserializeBinaryFromReader = function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setPlaylogApiId(value); + break; + case 2: + var value = new chunithm_playlog_pb.PlaylogInfo(); + reader.readMessage( + value, + chunithm_playlog_pb.PlaylogInfo.deserializeBinaryFromReader, + ); + msg.setInfo(value); + break; + case 3: + var value = new chunithm_playlog_pb.PlaylogJudge(); + reader.readMessage( + value, + chunithm_playlog_pb.PlaylogJudge.deserializeBinaryFromReader, + ); + msg.setJudge(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.mythos.chunithm.v0.GetPlaylogStreamItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.mythos.chunithm.v0.GetPlaylogStreamItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.mythos.chunithm.v0.GetPlaylogStreamItem.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.mythos.chunithm.v0.GetPlaylogStreamItem.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; - /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. @@ -405,124 +394,104 @@ proto.mythos.chunithm.v0.GetPlaylogStreamItem.prototype.serializeBinary = functi * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.mythos.chunithm.v0.GetPlaylogStreamItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPlaylogApiId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getInfo(); - if (f != null) { - writer.writeMessage( - 2, - f, - chunithm_playlog_pb.PlaylogInfo.serializeBinaryToWriter - ); - } - f = message.getJudge(); - if (f != null) { - writer.writeMessage( - 3, - f, - chunithm_playlog_pb.PlaylogJudge.serializeBinaryToWriter - ); - } +proto.mythos.chunithm.v0.GetPlaylogStreamItem.serializeBinaryToWriter = function (message, writer) { + var f = undefined; + f = message.getPlaylogApiId(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = message.getInfo(); + if (f != null) { + writer.writeMessage(2, f, chunithm_playlog_pb.PlaylogInfo.serializeBinaryToWriter); + } + f = message.getJudge(); + if (f != null) { + writer.writeMessage(3, f, chunithm_playlog_pb.PlaylogJudge.serializeBinaryToWriter); + } }; - /** * optional string playlog_api_id = 1; * @return {string} */ -proto.mythos.chunithm.v0.GetPlaylogStreamItem.prototype.getPlaylogApiId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.mythos.chunithm.v0.GetPlaylogStreamItem.prototype.getPlaylogApiId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; - /** * @param {string} value * @return {!proto.mythos.chunithm.v0.GetPlaylogStreamItem} returns this */ -proto.mythos.chunithm.v0.GetPlaylogStreamItem.prototype.setPlaylogApiId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.mythos.chunithm.v0.GetPlaylogStreamItem.prototype.setPlaylogApiId = function (value) { + return jspb.Message.setProto3StringField(this, 1, value); }; - /** * optional PlaylogInfo info = 2; * @return {?proto.mythos.chunithm.v0.PlaylogInfo} */ -proto.mythos.chunithm.v0.GetPlaylogStreamItem.prototype.getInfo = function() { - return /** @type{?proto.mythos.chunithm.v0.PlaylogInfo} */ ( - jspb.Message.getWrapperField(this, chunithm_playlog_pb.PlaylogInfo, 2)); +proto.mythos.chunithm.v0.GetPlaylogStreamItem.prototype.getInfo = function () { + return /** @type{?proto.mythos.chunithm.v0.PlaylogInfo} */ ( + jspb.Message.getWrapperField(this, chunithm_playlog_pb.PlaylogInfo, 2) + ); }; - /** * @param {?proto.mythos.chunithm.v0.PlaylogInfo|undefined} value * @return {!proto.mythos.chunithm.v0.GetPlaylogStreamItem} returns this -*/ -proto.mythos.chunithm.v0.GetPlaylogStreamItem.prototype.setInfo = function(value) { - return jspb.Message.setWrapperField(this, 2, value); + */ +proto.mythos.chunithm.v0.GetPlaylogStreamItem.prototype.setInfo = function (value) { + return jspb.Message.setWrapperField(this, 2, value); }; - /** * Clears the message field making it undefined. * @return {!proto.mythos.chunithm.v0.GetPlaylogStreamItem} returns this */ -proto.mythos.chunithm.v0.GetPlaylogStreamItem.prototype.clearInfo = function() { - return this.setInfo(undefined); +proto.mythos.chunithm.v0.GetPlaylogStreamItem.prototype.clearInfo = function () { + return this.setInfo(undefined); }; - /** * Returns whether this field is set. * @return {boolean} */ -proto.mythos.chunithm.v0.GetPlaylogStreamItem.prototype.hasInfo = function() { - return jspb.Message.getField(this, 2) != null; +proto.mythos.chunithm.v0.GetPlaylogStreamItem.prototype.hasInfo = function () { + return jspb.Message.getField(this, 2) != null; }; - /** * optional PlaylogJudge judge = 3; * @return {?proto.mythos.chunithm.v0.PlaylogJudge} */ -proto.mythos.chunithm.v0.GetPlaylogStreamItem.prototype.getJudge = function() { - return /** @type{?proto.mythos.chunithm.v0.PlaylogJudge} */ ( - jspb.Message.getWrapperField(this, chunithm_playlog_pb.PlaylogJudge, 3)); +proto.mythos.chunithm.v0.GetPlaylogStreamItem.prototype.getJudge = function () { + return /** @type{?proto.mythos.chunithm.v0.PlaylogJudge} */ ( + jspb.Message.getWrapperField(this, chunithm_playlog_pb.PlaylogJudge, 3) + ); }; - /** * @param {?proto.mythos.chunithm.v0.PlaylogJudge|undefined} value * @return {!proto.mythos.chunithm.v0.GetPlaylogStreamItem} returns this -*/ -proto.mythos.chunithm.v0.GetPlaylogStreamItem.prototype.setJudge = function(value) { - return jspb.Message.setWrapperField(this, 3, value); + */ +proto.mythos.chunithm.v0.GetPlaylogStreamItem.prototype.setJudge = function (value) { + return jspb.Message.setWrapperField(this, 3, value); }; - /** * Clears the message field making it undefined. * @return {!proto.mythos.chunithm.v0.GetPlaylogStreamItem} returns this */ -proto.mythos.chunithm.v0.GetPlaylogStreamItem.prototype.clearJudge = function() { - return this.setJudge(undefined); +proto.mythos.chunithm.v0.GetPlaylogStreamItem.prototype.clearJudge = function () { + return this.setJudge(undefined); }; - /** * Returns whether this field is set. * @return {boolean} */ -proto.mythos.chunithm.v0.GetPlaylogStreamItem.prototype.hasJudge = function() { - return jspb.Message.getField(this, 3) != null; +proto.mythos.chunithm.v0.GetPlaylogStreamItem.prototype.hasJudge = function () { + return jspb.Message.getField(this, 3) != null; }; - goog.object.extend(exports, proto.mythos.chunithm.v0); diff --git a/typescript/server/src/proto/generated/maimai/common_grpc_pb.js b/typescript/server/src/proto/generated/maimai/common_grpc_pb.js index 97b3a2461..51b4d6959 100644 --- a/typescript/server/src/proto/generated/maimai/common_grpc_pb.js +++ b/typescript/server/src/proto/generated/maimai/common_grpc_pb.js @@ -1 +1 @@ -// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file +// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/typescript/server/src/proto/generated/maimai/common_pb.d.ts b/typescript/server/src/proto/generated/maimai/common_pb.d.ts index 88168cc88..efefab8d2 100644 --- a/typescript/server/src/proto/generated/maimai/common_pb.d.ts +++ b/typescript/server/src/proto/generated/maimai/common_pb.d.ts @@ -4,64 +4,63 @@ import * as jspb from "google-protobuf"; export interface MaimaiRankingTypeMap { - MAIMAI_RANKING_TYPE_UNSPECIFIED: 0; - MAIMAI_RANKING_TYPE_ACHIEVEMENT: 1; - MAIMAI_RANKING_TYPE_DX_SCORE: 2; + MAIMAI_RANKING_TYPE_UNSPECIFIED: 0; + MAIMAI_RANKING_TYPE_ACHIEVEMENT: 1; + MAIMAI_RANKING_TYPE_DX_SCORE: 2; } export const MaimaiRankingType: MaimaiRankingTypeMap; export interface MaimaiLevelMap { - MAIMAI_LEVEL_UNSPECIFIED: 0; - MAIMAI_LEVEL_BASIC: 1; - MAIMAI_LEVEL_ADVANCED: 2; - MAIMAI_LEVEL_EXPERT: 3; - MAIMAI_LEVEL_MASTER: 4; - MAIMAI_LEVEL_REMASTER: 5; - MAIMAI_LEVEL_UTAGE: 6; + MAIMAI_LEVEL_UNSPECIFIED: 0; + MAIMAI_LEVEL_BASIC: 1; + MAIMAI_LEVEL_ADVANCED: 2; + MAIMAI_LEVEL_EXPERT: 3; + MAIMAI_LEVEL_MASTER: 4; + MAIMAI_LEVEL_REMASTER: 5; + MAIMAI_LEVEL_UTAGE: 6; } export const MaimaiLevel: MaimaiLevelMap; export interface MaimaiComboStatusMap { - MAIMAI_COMBO_STATUS_UNSPECIFIED: 0; - MAIMAI_COMBO_STATUS_NONE: 1; - MAIMAI_COMBO_STATUS_FULL_COMBO: 2; - MAIMAI_COMBO_STATUS_FULL_COMBO_PLUS: 3; - MAIMAI_COMBO_STATUS_ALL_PERFECT: 4; - MAIMAI_COMBO_STATUS_ALL_PERFECT_PLUS: 5; + MAIMAI_COMBO_STATUS_UNSPECIFIED: 0; + MAIMAI_COMBO_STATUS_NONE: 1; + MAIMAI_COMBO_STATUS_FULL_COMBO: 2; + MAIMAI_COMBO_STATUS_FULL_COMBO_PLUS: 3; + MAIMAI_COMBO_STATUS_ALL_PERFECT: 4; + MAIMAI_COMBO_STATUS_ALL_PERFECT_PLUS: 5; } export const MaimaiComboStatus: MaimaiComboStatusMap; export interface MaimaiSyncStatusMap { - MAIMAI_SYNC_STATUS_UNSPECIFIED: 0; - MAIMAI_SYNC_STATUS_NONE: 1; - MAIMAI_SYNC_STATUS_FULL_SYNC: 2; - MAIMAI_SYNC_STATUS_FULL_SYNC_PLUS: 3; - MAIMAI_SYNC_STATUS_FULL_SYNC_DX: 4; - MAIMAI_SYNC_STATUS_FULL_SYNC_DX_PLUS: 5; + MAIMAI_SYNC_STATUS_UNSPECIFIED: 0; + MAIMAI_SYNC_STATUS_NONE: 1; + MAIMAI_SYNC_STATUS_FULL_SYNC: 2; + MAIMAI_SYNC_STATUS_FULL_SYNC_PLUS: 3; + MAIMAI_SYNC_STATUS_FULL_SYNC_DX: 4; + MAIMAI_SYNC_STATUS_FULL_SYNC_DX_PLUS: 5; } export const MaimaiSyncStatus: MaimaiSyncStatusMap; export interface MaimaiScoreRankMap { - MAIMAI_SCORE_RANK_UNSPECIFIED: 0; - MAIMAI_SCORE_RANK_D: 1; - MAIMAI_SCORE_RANK_C: 2; - MAIMAI_SCORE_RANK_B: 3; - MAIMAI_SCORE_RANK_BB: 4; - MAIMAI_SCORE_RANK_BBB: 5; - MAIMAI_SCORE_RANK_A: 6; - MAIMAI_SCORE_RANK_AA: 7; - MAIMAI_SCORE_RANK_AAA: 8; - MAIMAI_SCORE_RANK_S: 9; - MAIMAI_SCORE_RANK_S_PLUS: 10; - MAIMAI_SCORE_RANK_SS: 11; - MAIMAI_SCORE_RANK_SS_PLUS: 12; - MAIMAI_SCORE_RANK_SSS: 13; - MAIMAI_SCORE_RANK_SSS_PLUS: 14; + MAIMAI_SCORE_RANK_UNSPECIFIED: 0; + MAIMAI_SCORE_RANK_D: 1; + MAIMAI_SCORE_RANK_C: 2; + MAIMAI_SCORE_RANK_B: 3; + MAIMAI_SCORE_RANK_BB: 4; + MAIMAI_SCORE_RANK_BBB: 5; + MAIMAI_SCORE_RANK_A: 6; + MAIMAI_SCORE_RANK_AA: 7; + MAIMAI_SCORE_RANK_AAA: 8; + MAIMAI_SCORE_RANK_S: 9; + MAIMAI_SCORE_RANK_S_PLUS: 10; + MAIMAI_SCORE_RANK_SS: 11; + MAIMAI_SCORE_RANK_SS_PLUS: 12; + MAIMAI_SCORE_RANK_SSS: 13; + MAIMAI_SCORE_RANK_SSS_PLUS: 14; } export const MaimaiScoreRank: MaimaiScoreRankMap; - diff --git a/typescript/server/src/proto/generated/maimai/common_pb.js b/typescript/server/src/proto/generated/maimai/common_pb.js index ebec3d669..ecf98a1f5 100644 --- a/typescript/server/src/proto/generated/maimai/common_pb.js +++ b/typescript/server/src/proto/generated/maimai/common_pb.js @@ -11,86 +11,94 @@ /* eslint-disable */ // @ts-nocheck -var jspb = require('google-protobuf'); +var jspb = require("google-protobuf"); var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); +var global = function () { + if (this) { + return this; + } + if (typeof window !== "undefined") { + return window; + } + if (typeof global !== "undefined") { + return global; + } + if (typeof self !== "undefined") { + return self; + } + return Function("return this")(); +}.call(null); -goog.exportSymbol('proto.mythos.maimai.v0.MaimaiComboStatus', null, global); -goog.exportSymbol('proto.mythos.maimai.v0.MaimaiLevel', null, global); -goog.exportSymbol('proto.mythos.maimai.v0.MaimaiRankingType', null, global); -goog.exportSymbol('proto.mythos.maimai.v0.MaimaiScoreRank', null, global); -goog.exportSymbol('proto.mythos.maimai.v0.MaimaiSyncStatus', null, global); +goog.exportSymbol("proto.mythos.maimai.v0.MaimaiComboStatus", null, global); +goog.exportSymbol("proto.mythos.maimai.v0.MaimaiLevel", null, global); +goog.exportSymbol("proto.mythos.maimai.v0.MaimaiRankingType", null, global); +goog.exportSymbol("proto.mythos.maimai.v0.MaimaiScoreRank", null, global); +goog.exportSymbol("proto.mythos.maimai.v0.MaimaiSyncStatus", null, global); /** * @enum {number} */ proto.mythos.maimai.v0.MaimaiRankingType = { - MAIMAI_RANKING_TYPE_UNSPECIFIED: 0, - MAIMAI_RANKING_TYPE_ACHIEVEMENT: 1, - MAIMAI_RANKING_TYPE_DX_SCORE: 2 + MAIMAI_RANKING_TYPE_UNSPECIFIED: 0, + MAIMAI_RANKING_TYPE_ACHIEVEMENT: 1, + MAIMAI_RANKING_TYPE_DX_SCORE: 2, }; /** * @enum {number} */ proto.mythos.maimai.v0.MaimaiLevel = { - MAIMAI_LEVEL_UNSPECIFIED: 0, - MAIMAI_LEVEL_BASIC: 1, - MAIMAI_LEVEL_ADVANCED: 2, - MAIMAI_LEVEL_EXPERT: 3, - MAIMAI_LEVEL_MASTER: 4, - MAIMAI_LEVEL_REMASTER: 5, - MAIMAI_LEVEL_UTAGE: 6 + MAIMAI_LEVEL_UNSPECIFIED: 0, + MAIMAI_LEVEL_BASIC: 1, + MAIMAI_LEVEL_ADVANCED: 2, + MAIMAI_LEVEL_EXPERT: 3, + MAIMAI_LEVEL_MASTER: 4, + MAIMAI_LEVEL_REMASTER: 5, + MAIMAI_LEVEL_UTAGE: 6, }; /** * @enum {number} */ proto.mythos.maimai.v0.MaimaiComboStatus = { - MAIMAI_COMBO_STATUS_UNSPECIFIED: 0, - MAIMAI_COMBO_STATUS_NONE: 1, - MAIMAI_COMBO_STATUS_FULL_COMBO: 2, - MAIMAI_COMBO_STATUS_FULL_COMBO_PLUS: 3, - MAIMAI_COMBO_STATUS_ALL_PERFECT: 4, - MAIMAI_COMBO_STATUS_ALL_PERFECT_PLUS: 5 + MAIMAI_COMBO_STATUS_UNSPECIFIED: 0, + MAIMAI_COMBO_STATUS_NONE: 1, + MAIMAI_COMBO_STATUS_FULL_COMBO: 2, + MAIMAI_COMBO_STATUS_FULL_COMBO_PLUS: 3, + MAIMAI_COMBO_STATUS_ALL_PERFECT: 4, + MAIMAI_COMBO_STATUS_ALL_PERFECT_PLUS: 5, }; /** * @enum {number} */ proto.mythos.maimai.v0.MaimaiSyncStatus = { - MAIMAI_SYNC_STATUS_UNSPECIFIED: 0, - MAIMAI_SYNC_STATUS_NONE: 1, - MAIMAI_SYNC_STATUS_FULL_SYNC: 2, - MAIMAI_SYNC_STATUS_FULL_SYNC_PLUS: 3, - MAIMAI_SYNC_STATUS_FULL_SYNC_DX: 4, - MAIMAI_SYNC_STATUS_FULL_SYNC_DX_PLUS: 5 + MAIMAI_SYNC_STATUS_UNSPECIFIED: 0, + MAIMAI_SYNC_STATUS_NONE: 1, + MAIMAI_SYNC_STATUS_FULL_SYNC: 2, + MAIMAI_SYNC_STATUS_FULL_SYNC_PLUS: 3, + MAIMAI_SYNC_STATUS_FULL_SYNC_DX: 4, + MAIMAI_SYNC_STATUS_FULL_SYNC_DX_PLUS: 5, }; /** * @enum {number} */ proto.mythos.maimai.v0.MaimaiScoreRank = { - MAIMAI_SCORE_RANK_UNSPECIFIED: 0, - MAIMAI_SCORE_RANK_D: 1, - MAIMAI_SCORE_RANK_C: 2, - MAIMAI_SCORE_RANK_B: 3, - MAIMAI_SCORE_RANK_BB: 4, - MAIMAI_SCORE_RANK_BBB: 5, - MAIMAI_SCORE_RANK_A: 6, - MAIMAI_SCORE_RANK_AA: 7, - MAIMAI_SCORE_RANK_AAA: 8, - MAIMAI_SCORE_RANK_S: 9, - MAIMAI_SCORE_RANK_S_PLUS: 10, - MAIMAI_SCORE_RANK_SS: 11, - MAIMAI_SCORE_RANK_SS_PLUS: 12, - MAIMAI_SCORE_RANK_SSS: 13, - MAIMAI_SCORE_RANK_SSS_PLUS: 14 + MAIMAI_SCORE_RANK_UNSPECIFIED: 0, + MAIMAI_SCORE_RANK_D: 1, + MAIMAI_SCORE_RANK_C: 2, + MAIMAI_SCORE_RANK_B: 3, + MAIMAI_SCORE_RANK_BB: 4, + MAIMAI_SCORE_RANK_BBB: 5, + MAIMAI_SCORE_RANK_A: 6, + MAIMAI_SCORE_RANK_AA: 7, + MAIMAI_SCORE_RANK_AAA: 8, + MAIMAI_SCORE_RANK_S: 9, + MAIMAI_SCORE_RANK_S_PLUS: 10, + MAIMAI_SCORE_RANK_SS: 11, + MAIMAI_SCORE_RANK_SS_PLUS: 12, + MAIMAI_SCORE_RANK_SSS: 13, + MAIMAI_SCORE_RANK_SSS_PLUS: 14, }; goog.object.extend(exports, proto.mythos.maimai.v0); diff --git a/typescript/server/src/proto/generated/maimai/playlog_grpc_pb.js b/typescript/server/src/proto/generated/maimai/playlog_grpc_pb.js index 97b3a2461..51b4d6959 100644 --- a/typescript/server/src/proto/generated/maimai/playlog_grpc_pb.js +++ b/typescript/server/src/proto/generated/maimai/playlog_grpc_pb.js @@ -1 +1 @@ -// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file +// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/typescript/server/src/proto/generated/maimai/playlog_pb.d.ts b/typescript/server/src/proto/generated/maimai/playlog_pb.d.ts index e5578e5f4..a92f6f05e 100644 --- a/typescript/server/src/proto/generated/maimai/playlog_pb.d.ts +++ b/typescript/server/src/proto/generated/maimai/playlog_pb.d.ts @@ -5,114 +5,125 @@ import * as jspb from "google-protobuf"; import * as maimai_common_pb from "../maimai/common_pb"; export class PlaylogInfo extends jspb.Message { - getMusicId(): number; - setMusicId(value: number): void; + getMusicId(): number; + setMusicId(value: number): void; - getLevel(): maimai_common_pb.MaimaiLevelMap[keyof maimai_common_pb.MaimaiLevelMap]; - setLevel(value: maimai_common_pb.MaimaiLevelMap[keyof maimai_common_pb.MaimaiLevelMap]): void; + getLevel(): maimai_common_pb.MaimaiLevelMap[keyof maimai_common_pb.MaimaiLevelMap]; + setLevel(value: maimai_common_pb.MaimaiLevelMap[keyof maimai_common_pb.MaimaiLevelMap]): void; - getAchievement(): number; - setAchievement(value: number): void; + getAchievement(): number; + setAchievement(value: number): void; - getDeluxscore(): number; - setDeluxscore(value: number): void; + getDeluxscore(): number; + setDeluxscore(value: number): void; - getScoreRank(): maimai_common_pb.MaimaiScoreRankMap[keyof maimai_common_pb.MaimaiScoreRankMap]; - setScoreRank(value: maimai_common_pb.MaimaiScoreRankMap[keyof maimai_common_pb.MaimaiScoreRankMap]): void; + getScoreRank(): maimai_common_pb.MaimaiScoreRankMap[keyof maimai_common_pb.MaimaiScoreRankMap]; + setScoreRank( + value: maimai_common_pb.MaimaiScoreRankMap[keyof maimai_common_pb.MaimaiScoreRankMap], + ): void; - getComboStatus(): maimai_common_pb.MaimaiComboStatusMap[keyof maimai_common_pb.MaimaiComboStatusMap]; - setComboStatus(value: maimai_common_pb.MaimaiComboStatusMap[keyof maimai_common_pb.MaimaiComboStatusMap]): void; + getComboStatus(): maimai_common_pb.MaimaiComboStatusMap[keyof maimai_common_pb.MaimaiComboStatusMap]; + setComboStatus( + value: maimai_common_pb.MaimaiComboStatusMap[keyof maimai_common_pb.MaimaiComboStatusMap], + ): void; - getSyncStatus(): maimai_common_pb.MaimaiSyncStatusMap[keyof maimai_common_pb.MaimaiSyncStatusMap]; - setSyncStatus(value: maimai_common_pb.MaimaiSyncStatusMap[keyof maimai_common_pb.MaimaiSyncStatusMap]): void; + getSyncStatus(): maimai_common_pb.MaimaiSyncStatusMap[keyof maimai_common_pb.MaimaiSyncStatusMap]; + setSyncStatus( + value: maimai_common_pb.MaimaiSyncStatusMap[keyof maimai_common_pb.MaimaiSyncStatusMap], + ): void; - getIsClear(): boolean; - setIsClear(value: boolean): void; + getIsClear(): boolean; + setIsClear(value: boolean): void; - getIsAchieveNewRecord(): boolean; - setIsAchieveNewRecord(value: boolean): void; + getIsAchieveNewRecord(): boolean; + setIsAchieveNewRecord(value: boolean): void; - getIsDeluxscoreNewRecord(): boolean; - setIsDeluxscoreNewRecord(value: boolean): void; + getIsDeluxscoreNewRecord(): boolean; + setIsDeluxscoreNewRecord(value: boolean): void; - getTrack(): number; - setTrack(value: number): void; + getTrack(): number; + setTrack(value: number): void; - getUserPlayDate(): string; - setUserPlayDate(value: string): void; + getUserPlayDate(): string; + setUserPlayDate(value: string): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PlaylogInfo.AsObject; - static toObject(includeInstance: boolean, msg: PlaylogInfo): PlaylogInfo.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PlaylogInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PlaylogInfo; - static deserializeBinaryFromReader(message: PlaylogInfo, reader: jspb.BinaryReader): PlaylogInfo; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PlaylogInfo.AsObject; + static toObject(includeInstance: boolean, msg: PlaylogInfo): PlaylogInfo.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo }; + static serializeBinaryToWriter(message: PlaylogInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PlaylogInfo; + static deserializeBinaryFromReader( + message: PlaylogInfo, + reader: jspb.BinaryReader, + ): PlaylogInfo; } export namespace PlaylogInfo { - export type AsObject = { - musicId: number, - level: maimai_common_pb.MaimaiLevelMap[keyof maimai_common_pb.MaimaiLevelMap], - achievement: number, - deluxscore: number, - scoreRank: maimai_common_pb.MaimaiScoreRankMap[keyof maimai_common_pb.MaimaiScoreRankMap], - comboStatus: maimai_common_pb.MaimaiComboStatusMap[keyof maimai_common_pb.MaimaiComboStatusMap], - syncStatus: maimai_common_pb.MaimaiSyncStatusMap[keyof maimai_common_pb.MaimaiSyncStatusMap], - isClear: boolean, - isAchieveNewRecord: boolean, - isDeluxscoreNewRecord: boolean, - track: number, - userPlayDate: string, - } + export type AsObject = { + musicId: number; + level: maimai_common_pb.MaimaiLevelMap[keyof maimai_common_pb.MaimaiLevelMap]; + achievement: number; + deluxscore: number; + scoreRank: maimai_common_pb.MaimaiScoreRankMap[keyof maimai_common_pb.MaimaiScoreRankMap]; + comboStatus: maimai_common_pb.MaimaiComboStatusMap[keyof maimai_common_pb.MaimaiComboStatusMap]; + syncStatus: maimai_common_pb.MaimaiSyncStatusMap[keyof maimai_common_pb.MaimaiSyncStatusMap]; + isClear: boolean; + isAchieveNewRecord: boolean; + isDeluxscoreNewRecord: boolean; + track: number; + userPlayDate: string; + }; } export class PlaylogJudge extends jspb.Message { - getJudgeCriticalPerfect(): number; - setJudgeCriticalPerfect(value: number): void; + getJudgeCriticalPerfect(): number; + setJudgeCriticalPerfect(value: number): void; - getJudgePerfect(): number; - setJudgePerfect(value: number): void; + getJudgePerfect(): number; + setJudgePerfect(value: number): void; - getJudgeGreat(): number; - setJudgeGreat(value: number): void; + getJudgeGreat(): number; + setJudgeGreat(value: number): void; - getJudgeGood(): number; - setJudgeGood(value: number): void; + getJudgeGood(): number; + setJudgeGood(value: number): void; - getJudgeMiss(): number; - setJudgeMiss(value: number): void; + getJudgeMiss(): number; + setJudgeMiss(value: number): void; - getMaxCombo(): number; - setMaxCombo(value: number): void; + getMaxCombo(): number; + setMaxCombo(value: number): void; - getFastCount(): number; - setFastCount(value: number): void; + getFastCount(): number; + setFastCount(value: number): void; - getLateCount(): number; - setLateCount(value: number): void; + getLateCount(): number; + setLateCount(value: number): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PlaylogJudge.AsObject; - static toObject(includeInstance: boolean, msg: PlaylogJudge): PlaylogJudge.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PlaylogJudge, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PlaylogJudge; - static deserializeBinaryFromReader(message: PlaylogJudge, reader: jspb.BinaryReader): PlaylogJudge; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PlaylogJudge.AsObject; + static toObject(includeInstance: boolean, msg: PlaylogJudge): PlaylogJudge.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo }; + static serializeBinaryToWriter(message: PlaylogJudge, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PlaylogJudge; + static deserializeBinaryFromReader( + message: PlaylogJudge, + reader: jspb.BinaryReader, + ): PlaylogJudge; } export namespace PlaylogJudge { - export type AsObject = { - judgeCriticalPerfect: number, - judgePerfect: number, - judgeGreat: number, - judgeGood: number, - judgeMiss: number, - maxCombo: number, - fastCount: number, - lateCount: number, - } + export type AsObject = { + judgeCriticalPerfect: number; + judgePerfect: number; + judgeGreat: number; + judgeGood: number; + judgeMiss: number; + maxCombo: number; + fastCount: number; + lateCount: number; + }; } - diff --git a/typescript/server/src/proto/generated/maimai/playlog_pb.js b/typescript/server/src/proto/generated/maimai/playlog_pb.js index 1ffd3135e..db695e766 100644 --- a/typescript/server/src/proto/generated/maimai/playlog_pb.js +++ b/typescript/server/src/proto/generated/maimai/playlog_pb.js @@ -11,20 +11,28 @@ /* eslint-disable */ // @ts-nocheck -var jspb = require('google-protobuf'); +var jspb = require("google-protobuf"); var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); +var global = function () { + if (this) { + return this; + } + if (typeof window !== "undefined") { + return window; + } + if (typeof global !== "undefined") { + return global; + } + if (typeof self !== "undefined") { + return self; + } + return Function("return this")(); +}.call(null); -var maimai_common_pb = require('../maimai/common_pb.js'); +var maimai_common_pb = require("../maimai/common_pb.js"); goog.object.extend(proto, maimai_common_pb); -goog.exportSymbol('proto.mythos.maimai.v0.PlaylogInfo', null, global); -goog.exportSymbol('proto.mythos.maimai.v0.PlaylogJudge', null, global); +goog.exportSymbol("proto.mythos.maimai.v0.PlaylogInfo", null, global); +goog.exportSymbol("proto.mythos.maimai.v0.PlaylogJudge", null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -35,16 +43,16 @@ goog.exportSymbol('proto.mythos.maimai.v0.PlaylogJudge', null, global); * @extends {jspb.Message} * @constructor */ -proto.mythos.maimai.v0.PlaylogInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.mythos.maimai.v0.PlaylogInfo = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.mythos.maimai.v0.PlaylogInfo, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.mythos.maimai.v0.PlaylogInfo.displayName = 'proto.mythos.maimai.v0.PlaylogInfo'; + /** + * @public + * @override + */ + proto.mythos.maimai.v0.PlaylogInfo.displayName = "proto.mythos.maimai.v0.PlaylogInfo"; } /** * Generated by JsPbCodeGenerator. @@ -56,83 +64,79 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.mythos.maimai.v0.PlaylogJudge = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.mythos.maimai.v0.PlaylogJudge = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.mythos.maimai.v0.PlaylogJudge, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.mythos.maimai.v0.PlaylogJudge.displayName = 'proto.mythos.maimai.v0.PlaylogJudge'; + /** + * @public + * @override + */ + proto.mythos.maimai.v0.PlaylogJudge.displayName = "proto.mythos.maimai.v0.PlaylogJudge"; } - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.mythos.maimai.v0.PlaylogInfo.prototype.toObject = function(opt_includeInstance) { - return proto.mythos.maimai.v0.PlaylogInfo.toObject(opt_includeInstance, this); -}; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.mythos.maimai.v0.PlaylogInfo.prototype.toObject = function (opt_includeInstance) { + return proto.mythos.maimai.v0.PlaylogInfo.toObject(opt_includeInstance, this); + }; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.mythos.maimai.v0.PlaylogInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.mythos.maimai.v0.PlaylogInfo.toObject = function (includeInstance, msg) { + var f, + obj = { + musicId: jspb.Message.getFieldWithDefault(msg, 1, 0), + level: jspb.Message.getFieldWithDefault(msg, 2, 0), + achievement: jspb.Message.getFieldWithDefault(msg, 3, 0), + deluxscore: jspb.Message.getFieldWithDefault(msg, 4, 0), + scoreRank: jspb.Message.getFieldWithDefault(msg, 5, 0), + comboStatus: jspb.Message.getFieldWithDefault(msg, 6, 0), + syncStatus: jspb.Message.getFieldWithDefault(msg, 7, 0), + isClear: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), + isAchieveNewRecord: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), + isDeluxscoreNewRecord: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), + track: jspb.Message.getFieldWithDefault(msg, 11, 0), + userPlayDate: jspb.Message.getFieldWithDefault(msg, 12, ""), + }; -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.mythos.maimai.v0.PlaylogInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.mythos.maimai.v0.PlaylogInfo.toObject = function(includeInstance, msg) { - var f, obj = { - musicId: jspb.Message.getFieldWithDefault(msg, 1, 0), - level: jspb.Message.getFieldWithDefault(msg, 2, 0), - achievement: jspb.Message.getFieldWithDefault(msg, 3, 0), - deluxscore: jspb.Message.getFieldWithDefault(msg, 4, 0), - scoreRank: jspb.Message.getFieldWithDefault(msg, 5, 0), - comboStatus: jspb.Message.getFieldWithDefault(msg, 6, 0), - syncStatus: jspb.Message.getFieldWithDefault(msg, 7, 0), - isClear: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), - isAchieveNewRecord: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), - isDeluxscoreNewRecord: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), - track: jspb.Message.getFieldWithDefault(msg, 11, 0), - userPlayDate: jspb.Message.getFieldWithDefault(msg, 12, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.mythos.maimai.v0.PlaylogInfo} */ -proto.mythos.maimai.v0.PlaylogInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.mythos.maimai.v0.PlaylogInfo; - return proto.mythos.maimai.v0.PlaylogInfo.deserializeBinaryFromReader(msg, reader); +proto.mythos.maimai.v0.PlaylogInfo.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.mythos.maimai.v0.PlaylogInfo(); + return proto.mythos.maimai.v0.PlaylogInfo.deserializeBinaryFromReader(msg, reader); }; - /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. @@ -140,81 +144,85 @@ proto.mythos.maimai.v0.PlaylogInfo.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.mythos.maimai.v0.PlaylogInfo} */ -proto.mythos.maimai.v0.PlaylogInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMusicId(value); - break; - case 2: - var value = /** @type {!proto.mythos.maimai.v0.MaimaiLevel} */ (reader.readEnum()); - msg.setLevel(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt32()); - msg.setAchievement(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt32()); - msg.setDeluxscore(value); - break; - case 5: - var value = /** @type {!proto.mythos.maimai.v0.MaimaiScoreRank} */ (reader.readEnum()); - msg.setScoreRank(value); - break; - case 6: - var value = /** @type {!proto.mythos.maimai.v0.MaimaiComboStatus} */ (reader.readEnum()); - msg.setComboStatus(value); - break; - case 7: - var value = /** @type {!proto.mythos.maimai.v0.MaimaiSyncStatus} */ (reader.readEnum()); - msg.setSyncStatus(value); - break; - case 8: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsClear(value); - break; - case 9: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsAchieveNewRecord(value); - break; - case 10: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsDeluxscoreNewRecord(value); - break; - case 11: - var value = /** @type {number} */ (reader.readInt32()); - msg.setTrack(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setUserPlayDate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.mythos.maimai.v0.PlaylogInfo.deserializeBinaryFromReader = function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setMusicId(value); + break; + case 2: + var value = /** @type {!proto.mythos.maimai.v0.MaimaiLevel} */ (reader.readEnum()); + msg.setLevel(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setAchievement(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt32()); + msg.setDeluxscore(value); + break; + case 5: + var value = /** @type {!proto.mythos.maimai.v0.MaimaiScoreRank} */ ( + reader.readEnum() + ); + msg.setScoreRank(value); + break; + case 6: + var value = /** @type {!proto.mythos.maimai.v0.MaimaiComboStatus} */ ( + reader.readEnum() + ); + msg.setComboStatus(value); + break; + case 7: + var value = /** @type {!proto.mythos.maimai.v0.MaimaiSyncStatus} */ ( + reader.readEnum() + ); + msg.setSyncStatus(value); + break; + case 8: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsClear(value); + break; + case 9: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsAchieveNewRecord(value); + break; + case 10: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsDeluxscoreNewRecord(value); + break; + case 11: + var value = /** @type {number} */ (reader.readInt32()); + msg.setTrack(value); + break; + case 12: + var value = /** @type {string} */ (reader.readString()); + msg.setUserPlayDate(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.mythos.maimai.v0.PlaylogInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.mythos.maimai.v0.PlaylogInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.mythos.maimai.v0.PlaylogInfo.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.mythos.maimai.v0.PlaylogInfo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; - /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. @@ -222,373 +230,315 @@ proto.mythos.maimai.v0.PlaylogInfo.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.mythos.maimai.v0.PlaylogInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMusicId(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getLevel(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getAchievement(); - if (f !== 0) { - writer.writeInt32( - 3, - f - ); - } - f = message.getDeluxscore(); - if (f !== 0) { - writer.writeInt32( - 4, - f - ); - } - f = message.getScoreRank(); - if (f !== 0.0) { - writer.writeEnum( - 5, - f - ); - } - f = message.getComboStatus(); - if (f !== 0.0) { - writer.writeEnum( - 6, - f - ); - } - f = message.getSyncStatus(); - if (f !== 0.0) { - writer.writeEnum( - 7, - f - ); - } - f = message.getIsClear(); - if (f) { - writer.writeBool( - 8, - f - ); - } - f = message.getIsAchieveNewRecord(); - if (f) { - writer.writeBool( - 9, - f - ); - } - f = message.getIsDeluxscoreNewRecord(); - if (f) { - writer.writeBool( - 10, - f - ); - } - f = message.getTrack(); - if (f !== 0) { - writer.writeInt32( - 11, - f - ); - } - f = message.getUserPlayDate(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } +proto.mythos.maimai.v0.PlaylogInfo.serializeBinaryToWriter = function (message, writer) { + var f = undefined; + f = message.getMusicId(); + if (f !== 0) { + writer.writeInt32(1, f); + } + f = message.getLevel(); + if (f !== 0.0) { + writer.writeEnum(2, f); + } + f = message.getAchievement(); + if (f !== 0) { + writer.writeInt32(3, f); + } + f = message.getDeluxscore(); + if (f !== 0) { + writer.writeInt32(4, f); + } + f = message.getScoreRank(); + if (f !== 0.0) { + writer.writeEnum(5, f); + } + f = message.getComboStatus(); + if (f !== 0.0) { + writer.writeEnum(6, f); + } + f = message.getSyncStatus(); + if (f !== 0.0) { + writer.writeEnum(7, f); + } + f = message.getIsClear(); + if (f) { + writer.writeBool(8, f); + } + f = message.getIsAchieveNewRecord(); + if (f) { + writer.writeBool(9, f); + } + f = message.getIsDeluxscoreNewRecord(); + if (f) { + writer.writeBool(10, f); + } + f = message.getTrack(); + if (f !== 0) { + writer.writeInt32(11, f); + } + f = message.getUserPlayDate(); + if (f.length > 0) { + writer.writeString(12, f); + } }; - /** * optional int32 music_id = 1; * @return {number} */ -proto.mythos.maimai.v0.PlaylogInfo.prototype.getMusicId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.mythos.maimai.v0.PlaylogInfo.prototype.getMusicId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; - /** * @param {number} value * @return {!proto.mythos.maimai.v0.PlaylogInfo} returns this */ -proto.mythos.maimai.v0.PlaylogInfo.prototype.setMusicId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.mythos.maimai.v0.PlaylogInfo.prototype.setMusicId = function (value) { + return jspb.Message.setProto3IntField(this, 1, value); }; - /** * optional MaimaiLevel level = 2; * @return {!proto.mythos.maimai.v0.MaimaiLevel} */ -proto.mythos.maimai.v0.PlaylogInfo.prototype.getLevel = function() { - return /** @type {!proto.mythos.maimai.v0.MaimaiLevel} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.mythos.maimai.v0.PlaylogInfo.prototype.getLevel = function () { + return /** @type {!proto.mythos.maimai.v0.MaimaiLevel} */ ( + jspb.Message.getFieldWithDefault(this, 2, 0) + ); }; - /** * @param {!proto.mythos.maimai.v0.MaimaiLevel} value * @return {!proto.mythos.maimai.v0.PlaylogInfo} returns this */ -proto.mythos.maimai.v0.PlaylogInfo.prototype.setLevel = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); +proto.mythos.maimai.v0.PlaylogInfo.prototype.setLevel = function (value) { + return jspb.Message.setProto3EnumField(this, 2, value); }; - /** * optional int32 achievement = 3; * @return {number} */ -proto.mythos.maimai.v0.PlaylogInfo.prototype.getAchievement = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.mythos.maimai.v0.PlaylogInfo.prototype.getAchievement = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; - /** * @param {number} value * @return {!proto.mythos.maimai.v0.PlaylogInfo} returns this */ -proto.mythos.maimai.v0.PlaylogInfo.prototype.setAchievement = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.mythos.maimai.v0.PlaylogInfo.prototype.setAchievement = function (value) { + return jspb.Message.setProto3IntField(this, 3, value); }; - /** * optional int32 deluxscore = 4; * @return {number} */ -proto.mythos.maimai.v0.PlaylogInfo.prototype.getDeluxscore = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +proto.mythos.maimai.v0.PlaylogInfo.prototype.getDeluxscore = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; - /** * @param {number} value * @return {!proto.mythos.maimai.v0.PlaylogInfo} returns this */ -proto.mythos.maimai.v0.PlaylogInfo.prototype.setDeluxscore = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); +proto.mythos.maimai.v0.PlaylogInfo.prototype.setDeluxscore = function (value) { + return jspb.Message.setProto3IntField(this, 4, value); }; - /** * optional MaimaiScoreRank score_rank = 5; * @return {!proto.mythos.maimai.v0.MaimaiScoreRank} */ -proto.mythos.maimai.v0.PlaylogInfo.prototype.getScoreRank = function() { - return /** @type {!proto.mythos.maimai.v0.MaimaiScoreRank} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +proto.mythos.maimai.v0.PlaylogInfo.prototype.getScoreRank = function () { + return /** @type {!proto.mythos.maimai.v0.MaimaiScoreRank} */ ( + jspb.Message.getFieldWithDefault(this, 5, 0) + ); }; - /** * @param {!proto.mythos.maimai.v0.MaimaiScoreRank} value * @return {!proto.mythos.maimai.v0.PlaylogInfo} returns this */ -proto.mythos.maimai.v0.PlaylogInfo.prototype.setScoreRank = function(value) { - return jspb.Message.setProto3EnumField(this, 5, value); +proto.mythos.maimai.v0.PlaylogInfo.prototype.setScoreRank = function (value) { + return jspb.Message.setProto3EnumField(this, 5, value); }; - /** * optional MaimaiComboStatus combo_status = 6; * @return {!proto.mythos.maimai.v0.MaimaiComboStatus} */ -proto.mythos.maimai.v0.PlaylogInfo.prototype.getComboStatus = function() { - return /** @type {!proto.mythos.maimai.v0.MaimaiComboStatus} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +proto.mythos.maimai.v0.PlaylogInfo.prototype.getComboStatus = function () { + return /** @type {!proto.mythos.maimai.v0.MaimaiComboStatus} */ ( + jspb.Message.getFieldWithDefault(this, 6, 0) + ); }; - /** * @param {!proto.mythos.maimai.v0.MaimaiComboStatus} value * @return {!proto.mythos.maimai.v0.PlaylogInfo} returns this */ -proto.mythos.maimai.v0.PlaylogInfo.prototype.setComboStatus = function(value) { - return jspb.Message.setProto3EnumField(this, 6, value); +proto.mythos.maimai.v0.PlaylogInfo.prototype.setComboStatus = function (value) { + return jspb.Message.setProto3EnumField(this, 6, value); }; - /** * optional MaimaiSyncStatus sync_status = 7; * @return {!proto.mythos.maimai.v0.MaimaiSyncStatus} */ -proto.mythos.maimai.v0.PlaylogInfo.prototype.getSyncStatus = function() { - return /** @type {!proto.mythos.maimai.v0.MaimaiSyncStatus} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +proto.mythos.maimai.v0.PlaylogInfo.prototype.getSyncStatus = function () { + return /** @type {!proto.mythos.maimai.v0.MaimaiSyncStatus} */ ( + jspb.Message.getFieldWithDefault(this, 7, 0) + ); }; - /** * @param {!proto.mythos.maimai.v0.MaimaiSyncStatus} value * @return {!proto.mythos.maimai.v0.PlaylogInfo} returns this */ -proto.mythos.maimai.v0.PlaylogInfo.prototype.setSyncStatus = function(value) { - return jspb.Message.setProto3EnumField(this, 7, value); +proto.mythos.maimai.v0.PlaylogInfo.prototype.setSyncStatus = function (value) { + return jspb.Message.setProto3EnumField(this, 7, value); }; - /** * optional bool is_clear = 8; * @return {boolean} */ -proto.mythos.maimai.v0.PlaylogInfo.prototype.getIsClear = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); +proto.mythos.maimai.v0.PlaylogInfo.prototype.getIsClear = function () { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); }; - /** * @param {boolean} value * @return {!proto.mythos.maimai.v0.PlaylogInfo} returns this */ -proto.mythos.maimai.v0.PlaylogInfo.prototype.setIsClear = function(value) { - return jspb.Message.setProto3BooleanField(this, 8, value); +proto.mythos.maimai.v0.PlaylogInfo.prototype.setIsClear = function (value) { + return jspb.Message.setProto3BooleanField(this, 8, value); }; - /** * optional bool is_achieve_new_record = 9; * @return {boolean} */ -proto.mythos.maimai.v0.PlaylogInfo.prototype.getIsAchieveNewRecord = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); +proto.mythos.maimai.v0.PlaylogInfo.prototype.getIsAchieveNewRecord = function () { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); }; - /** * @param {boolean} value * @return {!proto.mythos.maimai.v0.PlaylogInfo} returns this */ -proto.mythos.maimai.v0.PlaylogInfo.prototype.setIsAchieveNewRecord = function(value) { - return jspb.Message.setProto3BooleanField(this, 9, value); +proto.mythos.maimai.v0.PlaylogInfo.prototype.setIsAchieveNewRecord = function (value) { + return jspb.Message.setProto3BooleanField(this, 9, value); }; - /** * optional bool is_deluxscore_new_record = 10; * @return {boolean} */ -proto.mythos.maimai.v0.PlaylogInfo.prototype.getIsDeluxscoreNewRecord = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); +proto.mythos.maimai.v0.PlaylogInfo.prototype.getIsDeluxscoreNewRecord = function () { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); }; - /** * @param {boolean} value * @return {!proto.mythos.maimai.v0.PlaylogInfo} returns this */ -proto.mythos.maimai.v0.PlaylogInfo.prototype.setIsDeluxscoreNewRecord = function(value) { - return jspb.Message.setProto3BooleanField(this, 10, value); +proto.mythos.maimai.v0.PlaylogInfo.prototype.setIsDeluxscoreNewRecord = function (value) { + return jspb.Message.setProto3BooleanField(this, 10, value); }; - /** * optional int32 track = 11; * @return {number} */ -proto.mythos.maimai.v0.PlaylogInfo.prototype.getTrack = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); +proto.mythos.maimai.v0.PlaylogInfo.prototype.getTrack = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); }; - /** * @param {number} value * @return {!proto.mythos.maimai.v0.PlaylogInfo} returns this */ -proto.mythos.maimai.v0.PlaylogInfo.prototype.setTrack = function(value) { - return jspb.Message.setProto3IntField(this, 11, value); +proto.mythos.maimai.v0.PlaylogInfo.prototype.setTrack = function (value) { + return jspb.Message.setProto3IntField(this, 11, value); }; - /** * optional string user_play_date = 12; * @return {string} */ -proto.mythos.maimai.v0.PlaylogInfo.prototype.getUserPlayDate = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); +proto.mythos.maimai.v0.PlaylogInfo.prototype.getUserPlayDate = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); }; - /** * @param {string} value * @return {!proto.mythos.maimai.v0.PlaylogInfo} returns this */ -proto.mythos.maimai.v0.PlaylogInfo.prototype.setUserPlayDate = function(value) { - return jspb.Message.setProto3StringField(this, 12, value); +proto.mythos.maimai.v0.PlaylogInfo.prototype.setUserPlayDate = function (value) { + return jspb.Message.setProto3StringField(this, 12, value); }; - - - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.mythos.maimai.v0.PlaylogJudge.prototype.toObject = function(opt_includeInstance) { - return proto.mythos.maimai.v0.PlaylogJudge.toObject(opt_includeInstance, this); -}; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.mythos.maimai.v0.PlaylogJudge.prototype.toObject = function (opt_includeInstance) { + return proto.mythos.maimai.v0.PlaylogJudge.toObject(opt_includeInstance, this); + }; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.mythos.maimai.v0.PlaylogJudge} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.mythos.maimai.v0.PlaylogJudge.toObject = function (includeInstance, msg) { + var f, + obj = { + judgeCriticalPerfect: jspb.Message.getFieldWithDefault(msg, 1, 0), + judgePerfect: jspb.Message.getFieldWithDefault(msg, 2, 0), + judgeGreat: jspb.Message.getFieldWithDefault(msg, 3, 0), + judgeGood: jspb.Message.getFieldWithDefault(msg, 4, 0), + judgeMiss: jspb.Message.getFieldWithDefault(msg, 5, 0), + maxCombo: jspb.Message.getFieldWithDefault(msg, 6, 0), + fastCount: jspb.Message.getFieldWithDefault(msg, 7, 0), + lateCount: jspb.Message.getFieldWithDefault(msg, 8, 0), + }; -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.mythos.maimai.v0.PlaylogJudge} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.mythos.maimai.v0.PlaylogJudge.toObject = function(includeInstance, msg) { - var f, obj = { - judgeCriticalPerfect: jspb.Message.getFieldWithDefault(msg, 1, 0), - judgePerfect: jspb.Message.getFieldWithDefault(msg, 2, 0), - judgeGreat: jspb.Message.getFieldWithDefault(msg, 3, 0), - judgeGood: jspb.Message.getFieldWithDefault(msg, 4, 0), - judgeMiss: jspb.Message.getFieldWithDefault(msg, 5, 0), - maxCombo: jspb.Message.getFieldWithDefault(msg, 6, 0), - fastCount: jspb.Message.getFieldWithDefault(msg, 7, 0), - lateCount: jspb.Message.getFieldWithDefault(msg, 8, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.mythos.maimai.v0.PlaylogJudge} */ -proto.mythos.maimai.v0.PlaylogJudge.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.mythos.maimai.v0.PlaylogJudge; - return proto.mythos.maimai.v0.PlaylogJudge.deserializeBinaryFromReader(msg, reader); +proto.mythos.maimai.v0.PlaylogJudge.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.mythos.maimai.v0.PlaylogJudge(); + return proto.mythos.maimai.v0.PlaylogJudge.deserializeBinaryFromReader(msg, reader); }; - /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. @@ -596,65 +546,63 @@ proto.mythos.maimai.v0.PlaylogJudge.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.mythos.maimai.v0.PlaylogJudge} */ -proto.mythos.maimai.v0.PlaylogJudge.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setJudgeCriticalPerfect(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setJudgePerfect(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt32()); - msg.setJudgeGreat(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt32()); - msg.setJudgeGood(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt32()); - msg.setJudgeMiss(value); - break; - case 6: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMaxCombo(value); - break; - case 7: - var value = /** @type {number} */ (reader.readInt32()); - msg.setFastCount(value); - break; - case 8: - var value = /** @type {number} */ (reader.readInt32()); - msg.setLateCount(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.mythos.maimai.v0.PlaylogJudge.deserializeBinaryFromReader = function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setJudgeCriticalPerfect(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setJudgePerfect(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setJudgeGreat(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt32()); + msg.setJudgeGood(value); + break; + case 5: + var value = /** @type {number} */ (reader.readInt32()); + msg.setJudgeMiss(value); + break; + case 6: + var value = /** @type {number} */ (reader.readInt32()); + msg.setMaxCombo(value); + break; + case 7: + var value = /** @type {number} */ (reader.readInt32()); + msg.setFastCount(value); + break; + case 8: + var value = /** @type {number} */ (reader.readInt32()); + msg.setLateCount(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.mythos.maimai.v0.PlaylogJudge.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.mythos.maimai.v0.PlaylogJudge.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.mythos.maimai.v0.PlaylogJudge.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.mythos.maimai.v0.PlaylogJudge.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; - /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. @@ -662,209 +610,168 @@ proto.mythos.maimai.v0.PlaylogJudge.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.mythos.maimai.v0.PlaylogJudge.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getJudgeCriticalPerfect(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getJudgePerfect(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } - f = message.getJudgeGreat(); - if (f !== 0) { - writer.writeInt32( - 3, - f - ); - } - f = message.getJudgeGood(); - if (f !== 0) { - writer.writeInt32( - 4, - f - ); - } - f = message.getJudgeMiss(); - if (f !== 0) { - writer.writeInt32( - 5, - f - ); - } - f = message.getMaxCombo(); - if (f !== 0) { - writer.writeInt32( - 6, - f - ); - } - f = message.getFastCount(); - if (f !== 0) { - writer.writeInt32( - 7, - f - ); - } - f = message.getLateCount(); - if (f !== 0) { - writer.writeInt32( - 8, - f - ); - } +proto.mythos.maimai.v0.PlaylogJudge.serializeBinaryToWriter = function (message, writer) { + var f = undefined; + f = message.getJudgeCriticalPerfect(); + if (f !== 0) { + writer.writeInt32(1, f); + } + f = message.getJudgePerfect(); + if (f !== 0) { + writer.writeInt32(2, f); + } + f = message.getJudgeGreat(); + if (f !== 0) { + writer.writeInt32(3, f); + } + f = message.getJudgeGood(); + if (f !== 0) { + writer.writeInt32(4, f); + } + f = message.getJudgeMiss(); + if (f !== 0) { + writer.writeInt32(5, f); + } + f = message.getMaxCombo(); + if (f !== 0) { + writer.writeInt32(6, f); + } + f = message.getFastCount(); + if (f !== 0) { + writer.writeInt32(7, f); + } + f = message.getLateCount(); + if (f !== 0) { + writer.writeInt32(8, f); + } }; - /** * optional int32 judge_critical_perfect = 1; * @return {number} */ -proto.mythos.maimai.v0.PlaylogJudge.prototype.getJudgeCriticalPerfect = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.mythos.maimai.v0.PlaylogJudge.prototype.getJudgeCriticalPerfect = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; - /** * @param {number} value * @return {!proto.mythos.maimai.v0.PlaylogJudge} returns this */ -proto.mythos.maimai.v0.PlaylogJudge.prototype.setJudgeCriticalPerfect = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.mythos.maimai.v0.PlaylogJudge.prototype.setJudgeCriticalPerfect = function (value) { + return jspb.Message.setProto3IntField(this, 1, value); }; - /** * optional int32 judge_perfect = 2; * @return {number} */ -proto.mythos.maimai.v0.PlaylogJudge.prototype.getJudgePerfect = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.mythos.maimai.v0.PlaylogJudge.prototype.getJudgePerfect = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; - /** * @param {number} value * @return {!proto.mythos.maimai.v0.PlaylogJudge} returns this */ -proto.mythos.maimai.v0.PlaylogJudge.prototype.setJudgePerfect = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); +proto.mythos.maimai.v0.PlaylogJudge.prototype.setJudgePerfect = function (value) { + return jspb.Message.setProto3IntField(this, 2, value); }; - /** * optional int32 judge_great = 3; * @return {number} */ -proto.mythos.maimai.v0.PlaylogJudge.prototype.getJudgeGreat = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.mythos.maimai.v0.PlaylogJudge.prototype.getJudgeGreat = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; - /** * @param {number} value * @return {!proto.mythos.maimai.v0.PlaylogJudge} returns this */ -proto.mythos.maimai.v0.PlaylogJudge.prototype.setJudgeGreat = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.mythos.maimai.v0.PlaylogJudge.prototype.setJudgeGreat = function (value) { + return jspb.Message.setProto3IntField(this, 3, value); }; - /** * optional int32 judge_good = 4; * @return {number} */ -proto.mythos.maimai.v0.PlaylogJudge.prototype.getJudgeGood = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +proto.mythos.maimai.v0.PlaylogJudge.prototype.getJudgeGood = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; - /** * @param {number} value * @return {!proto.mythos.maimai.v0.PlaylogJudge} returns this */ -proto.mythos.maimai.v0.PlaylogJudge.prototype.setJudgeGood = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); +proto.mythos.maimai.v0.PlaylogJudge.prototype.setJudgeGood = function (value) { + return jspb.Message.setProto3IntField(this, 4, value); }; - /** * optional int32 judge_miss = 5; * @return {number} */ -proto.mythos.maimai.v0.PlaylogJudge.prototype.getJudgeMiss = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +proto.mythos.maimai.v0.PlaylogJudge.prototype.getJudgeMiss = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; - /** * @param {number} value * @return {!proto.mythos.maimai.v0.PlaylogJudge} returns this */ -proto.mythos.maimai.v0.PlaylogJudge.prototype.setJudgeMiss = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); +proto.mythos.maimai.v0.PlaylogJudge.prototype.setJudgeMiss = function (value) { + return jspb.Message.setProto3IntField(this, 5, value); }; - /** * optional int32 max_combo = 6; * @return {number} */ -proto.mythos.maimai.v0.PlaylogJudge.prototype.getMaxCombo = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +proto.mythos.maimai.v0.PlaylogJudge.prototype.getMaxCombo = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); }; - /** * @param {number} value * @return {!proto.mythos.maimai.v0.PlaylogJudge} returns this */ -proto.mythos.maimai.v0.PlaylogJudge.prototype.setMaxCombo = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); +proto.mythos.maimai.v0.PlaylogJudge.prototype.setMaxCombo = function (value) { + return jspb.Message.setProto3IntField(this, 6, value); }; - /** * optional int32 fast_count = 7; * @return {number} */ -proto.mythos.maimai.v0.PlaylogJudge.prototype.getFastCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +proto.mythos.maimai.v0.PlaylogJudge.prototype.getFastCount = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); }; - /** * @param {number} value * @return {!proto.mythos.maimai.v0.PlaylogJudge} returns this */ -proto.mythos.maimai.v0.PlaylogJudge.prototype.setFastCount = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); +proto.mythos.maimai.v0.PlaylogJudge.prototype.setFastCount = function (value) { + return jspb.Message.setProto3IntField(this, 7, value); }; - /** * optional int32 late_count = 8; * @return {number} */ -proto.mythos.maimai.v0.PlaylogJudge.prototype.getLateCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +proto.mythos.maimai.v0.PlaylogJudge.prototype.getLateCount = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); }; - /** * @param {number} value * @return {!proto.mythos.maimai.v0.PlaylogJudge} returns this */ -proto.mythos.maimai.v0.PlaylogJudge.prototype.setLateCount = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); +proto.mythos.maimai.v0.PlaylogJudge.prototype.setLateCount = function (value) { + return jspb.Message.setProto3IntField(this, 8, value); }; - goog.object.extend(exports, proto.mythos.maimai.v0); diff --git a/typescript/server/src/proto/generated/maimai/user_grpc_pb.d.ts b/typescript/server/src/proto/generated/maimai/user_grpc_pb.d.ts index 55b3fa25d..5deba6f25 100644 --- a/typescript/server/src/proto/generated/maimai/user_grpc_pb.d.ts +++ b/typescript/server/src/proto/generated/maimai/user_grpc_pb.d.ts @@ -7,17 +7,30 @@ import * as maimai_user_pb from "../maimai/user_pb"; import * as grpc from "@grpc/grpc-js"; interface IMaimaiUserService extends grpc.ServiceDefinition { - getPlaylog: grpc.MethodDefinition; + getPlaylog: grpc.MethodDefinition< + maimai_user_pb.GetPlaylogRequest, + maimai_user_pb.GetPlaylogStreamItem + >; } export const MaimaiUserService: IMaimaiUserService; export interface IMaimaiUserServer extends grpc.UntypedServiceImplementation { - getPlaylog: grpc.handleServerStreamingCall; + getPlaylog: grpc.handleServerStreamingCall< + maimai_user_pb.GetPlaylogRequest, + maimai_user_pb.GetPlaylogStreamItem + >; } export class MaimaiUserClient extends grpc.Client { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - getPlaylog(argument: maimai_user_pb.GetPlaylogRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream; - getPlaylog(argument: maimai_user_pb.GetPlaylogRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream; + constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); + getPlaylog( + argument: maimai_user_pb.GetPlaylogRequest, + metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null, + ): grpc.ClientReadableStream; + getPlaylog( + argument: maimai_user_pb.GetPlaylogRequest, + metadata?: grpc.Metadata | null, + options?: grpc.CallOptions | null, + ): grpc.ClientReadableStream; } diff --git a/typescript/server/src/proto/generated/maimai/user_grpc_pb.js b/typescript/server/src/proto/generated/maimai/user_grpc_pb.js index 6ab64d124..3223c9683 100644 --- a/typescript/server/src/proto/generated/maimai/user_grpc_pb.js +++ b/typescript/server/src/proto/generated/maimai/user_grpc_pb.js @@ -1,45 +1,44 @@ // GENERATED CODE -- DO NOT EDIT! -'use strict'; -var grpc = require('@grpc/grpc-js'); -var maimai_user_pb = require('../maimai/user_pb.js'); -var maimai_playlog_pb = require('../maimai/playlog_pb.js'); +"use strict"; +var grpc = require("@grpc/grpc-js"); +var maimai_user_pb = require("../maimai/user_pb.js"); +var maimai_playlog_pb = require("../maimai/playlog_pb.js"); function serialize_mythos_maimai_v0_GetPlaylogRequest(arg) { - if (!(arg instanceof maimai_user_pb.GetPlaylogRequest)) { - throw new Error('Expected argument of type mythos.maimai.v0.GetPlaylogRequest'); - } - return Buffer.from(arg.serializeBinary()); + if (!(arg instanceof maimai_user_pb.GetPlaylogRequest)) { + throw new Error("Expected argument of type mythos.maimai.v0.GetPlaylogRequest"); + } + return Buffer.from(arg.serializeBinary()); } function deserialize_mythos_maimai_v0_GetPlaylogRequest(buffer_arg) { - return maimai_user_pb.GetPlaylogRequest.deserializeBinary(new Uint8Array(buffer_arg)); + return maimai_user_pb.GetPlaylogRequest.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_mythos_maimai_v0_GetPlaylogStreamItem(arg) { - if (!(arg instanceof maimai_user_pb.GetPlaylogStreamItem)) { - throw new Error('Expected argument of type mythos.maimai.v0.GetPlaylogStreamItem'); - } - return Buffer.from(arg.serializeBinary()); + if (!(arg instanceof maimai_user_pb.GetPlaylogStreamItem)) { + throw new Error("Expected argument of type mythos.maimai.v0.GetPlaylogStreamItem"); + } + return Buffer.from(arg.serializeBinary()); } function deserialize_mythos_maimai_v0_GetPlaylogStreamItem(buffer_arg) { - return maimai_user_pb.GetPlaylogStreamItem.deserializeBinary(new Uint8Array(buffer_arg)); + return maimai_user_pb.GetPlaylogStreamItem.deserializeBinary(new Uint8Array(buffer_arg)); } +var MaimaiUserService = (exports.MaimaiUserService = { + getPlaylog: { + path: "/mythos.maimai.v0.MaimaiUser/GetPlaylog", + requestStream: false, + responseStream: true, + requestType: maimai_user_pb.GetPlaylogRequest, + responseType: maimai_user_pb.GetPlaylogStreamItem, + requestSerialize: serialize_mythos_maimai_v0_GetPlaylogRequest, + requestDeserialize: deserialize_mythos_maimai_v0_GetPlaylogRequest, + responseSerialize: serialize_mythos_maimai_v0_GetPlaylogStreamItem, + responseDeserialize: deserialize_mythos_maimai_v0_GetPlaylogStreamItem, + }, +}); -var MaimaiUserService = exports.MaimaiUserService = { - getPlaylog: { - path: '/mythos.maimai.v0.MaimaiUser/GetPlaylog', - requestStream: false, - responseStream: true, - requestType: maimai_user_pb.GetPlaylogRequest, - responseType: maimai_user_pb.GetPlaylogStreamItem, - requestSerialize: serialize_mythos_maimai_v0_GetPlaylogRequest, - requestDeserialize: deserialize_mythos_maimai_v0_GetPlaylogRequest, - responseSerialize: serialize_mythos_maimai_v0_GetPlaylogStreamItem, - responseDeserialize: deserialize_mythos_maimai_v0_GetPlaylogStreamItem, - }, -}; - -exports.MaimaiUserClient = grpc.makeGenericClientConstructor(MaimaiUserService, 'MaimaiUser'); +exports.MaimaiUserClient = grpc.makeGenericClientConstructor(MaimaiUserService, "MaimaiUser"); diff --git a/typescript/server/src/proto/generated/maimai/user_pb.d.ts b/typescript/server/src/proto/generated/maimai/user_pb.d.ts index d7a971164..bf348e712 100644 --- a/typescript/server/src/proto/generated/maimai/user_pb.d.ts +++ b/typescript/server/src/proto/generated/maimai/user_pb.d.ts @@ -5,66 +5,74 @@ import * as jspb from "google-protobuf"; import * as maimai_playlog_pb from "../maimai/playlog_pb"; export class GetPlaylogRequest extends jspb.Message { - getProfileApiId(): string; - setProfileApiId(value: string): void; + getProfileApiId(): string; + setProfileApiId(value: string): void; - hasLastUserPlayDate(): boolean; - clearLastUserPlayDate(): void; - getLastUserPlayDate(): string; - setLastUserPlayDate(value: string): void; + hasLastUserPlayDate(): boolean; + clearLastUserPlayDate(): void; + getLastUserPlayDate(): string; + setLastUserPlayDate(value: string): void; - hasLimit(): boolean; - clearLimit(): void; - getLimit(): number; - setLimit(value: number): void; + hasLimit(): boolean; + clearLimit(): void; + getLimit(): number; + setLimit(value: number): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetPlaylogRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetPlaylogRequest): GetPlaylogRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetPlaylogRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetPlaylogRequest; - static deserializeBinaryFromReader(message: GetPlaylogRequest, reader: jspb.BinaryReader): GetPlaylogRequest; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetPlaylogRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetPlaylogRequest): GetPlaylogRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo }; + static serializeBinaryToWriter(message: GetPlaylogRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetPlaylogRequest; + static deserializeBinaryFromReader( + message: GetPlaylogRequest, + reader: jspb.BinaryReader, + ): GetPlaylogRequest; } export namespace GetPlaylogRequest { - export type AsObject = { - profileApiId: string, - lastUserPlayDate: string, - limit: number, - } + export type AsObject = { + profileApiId: string; + lastUserPlayDate: string; + limit: number; + }; } export class GetPlaylogStreamItem extends jspb.Message { - getPlaylogApiId(): string; - setPlaylogApiId(value: string): void; + getPlaylogApiId(): string; + setPlaylogApiId(value: string): void; - hasInfo(): boolean; - clearInfo(): void; - getInfo(): maimai_playlog_pb.PlaylogInfo | undefined; - setInfo(value?: maimai_playlog_pb.PlaylogInfo): void; + hasInfo(): boolean; + clearInfo(): void; + getInfo(): maimai_playlog_pb.PlaylogInfo | undefined; + setInfo(value?: maimai_playlog_pb.PlaylogInfo): void; - hasJudge(): boolean; - clearJudge(): void; - getJudge(): maimai_playlog_pb.PlaylogJudge | undefined; - setJudge(value?: maimai_playlog_pb.PlaylogJudge): void; + hasJudge(): boolean; + clearJudge(): void; + getJudge(): maimai_playlog_pb.PlaylogJudge | undefined; + setJudge(value?: maimai_playlog_pb.PlaylogJudge): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetPlaylogStreamItem.AsObject; - static toObject(includeInstance: boolean, msg: GetPlaylogStreamItem): GetPlaylogStreamItem.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetPlaylogStreamItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetPlaylogStreamItem; - static deserializeBinaryFromReader(message: GetPlaylogStreamItem, reader: jspb.BinaryReader): GetPlaylogStreamItem; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetPlaylogStreamItem.AsObject; + static toObject( + includeInstance: boolean, + msg: GetPlaylogStreamItem, + ): GetPlaylogStreamItem.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo }; + static serializeBinaryToWriter(message: GetPlaylogStreamItem, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetPlaylogStreamItem; + static deserializeBinaryFromReader( + message: GetPlaylogStreamItem, + reader: jspb.BinaryReader, + ): GetPlaylogStreamItem; } export namespace GetPlaylogStreamItem { - export type AsObject = { - playlogApiId: string, - info?: maimai_playlog_pb.PlaylogInfo.AsObject, - judge?: maimai_playlog_pb.PlaylogJudge.AsObject, - } + export type AsObject = { + playlogApiId: string; + info?: maimai_playlog_pb.PlaylogInfo.AsObject; + judge?: maimai_playlog_pb.PlaylogJudge.AsObject; + }; } - diff --git a/typescript/server/src/proto/generated/maimai/user_pb.js b/typescript/server/src/proto/generated/maimai/user_pb.js index 7a5c047d4..f51c3771c 100644 --- a/typescript/server/src/proto/generated/maimai/user_pb.js +++ b/typescript/server/src/proto/generated/maimai/user_pb.js @@ -11,20 +11,28 @@ /* eslint-disable */ // @ts-nocheck -var jspb = require('google-protobuf'); +var jspb = require("google-protobuf"); var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); +var global = function () { + if (this) { + return this; + } + if (typeof window !== "undefined") { + return window; + } + if (typeof global !== "undefined") { + return global; + } + if (typeof self !== "undefined") { + return self; + } + return Function("return this")(); +}.call(null); -var maimai_playlog_pb = require('../maimai/playlog_pb.js'); +var maimai_playlog_pb = require("../maimai/playlog_pb.js"); goog.object.extend(proto, maimai_playlog_pb); -goog.exportSymbol('proto.mythos.maimai.v0.GetPlaylogRequest', null, global); -goog.exportSymbol('proto.mythos.maimai.v0.GetPlaylogStreamItem', null, global); +goog.exportSymbol("proto.mythos.maimai.v0.GetPlaylogRequest", null, global); +goog.exportSymbol("proto.mythos.maimai.v0.GetPlaylogStreamItem", null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -35,16 +43,17 @@ goog.exportSymbol('proto.mythos.maimai.v0.GetPlaylogStreamItem', null, global); * @extends {jspb.Message} * @constructor */ -proto.mythos.maimai.v0.GetPlaylogRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.mythos.maimai.v0.GetPlaylogRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.mythos.maimai.v0.GetPlaylogRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.mythos.maimai.v0.GetPlaylogRequest.displayName = 'proto.mythos.maimai.v0.GetPlaylogRequest'; + /** + * @public + * @override + */ + proto.mythos.maimai.v0.GetPlaylogRequest.displayName = + "proto.mythos.maimai.v0.GetPlaylogRequest"; } /** * Generated by JsPbCodeGenerator. @@ -56,74 +65,71 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.mythos.maimai.v0.GetPlaylogStreamItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.mythos.maimai.v0.GetPlaylogStreamItem = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.mythos.maimai.v0.GetPlaylogStreamItem, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.mythos.maimai.v0.GetPlaylogStreamItem.displayName = 'proto.mythos.maimai.v0.GetPlaylogStreamItem'; + /** + * @public + * @override + */ + proto.mythos.maimai.v0.GetPlaylogStreamItem.displayName = + "proto.mythos.maimai.v0.GetPlaylogStreamItem"; } - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.mythos.maimai.v0.GetPlaylogRequest.prototype.toObject = function(opt_includeInstance) { - return proto.mythos.maimai.v0.GetPlaylogRequest.toObject(opt_includeInstance, this); -}; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.mythos.maimai.v0.GetPlaylogRequest.prototype.toObject = function (opt_includeInstance) { + return proto.mythos.maimai.v0.GetPlaylogRequest.toObject(opt_includeInstance, this); + }; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.mythos.maimai.v0.GetPlaylogRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.mythos.maimai.v0.GetPlaylogRequest.toObject = function (includeInstance, msg) { + var f, + obj = { + profileApiId: jspb.Message.getFieldWithDefault(msg, 1, ""), + lastUserPlayDate: jspb.Message.getFieldWithDefault(msg, 2, ""), + limit: jspb.Message.getFieldWithDefault(msg, 3, 0), + }; -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.mythos.maimai.v0.GetPlaylogRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.mythos.maimai.v0.GetPlaylogRequest.toObject = function(includeInstance, msg) { - var f, obj = { - profileApiId: jspb.Message.getFieldWithDefault(msg, 1, ""), - lastUserPlayDate: jspb.Message.getFieldWithDefault(msg, 2, ""), - limit: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.mythos.maimai.v0.GetPlaylogRequest} */ -proto.mythos.maimai.v0.GetPlaylogRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.mythos.maimai.v0.GetPlaylogRequest; - return proto.mythos.maimai.v0.GetPlaylogRequest.deserializeBinaryFromReader(msg, reader); +proto.mythos.maimai.v0.GetPlaylogRequest.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.mythos.maimai.v0.GetPlaylogRequest(); + return proto.mythos.maimai.v0.GetPlaylogRequest.deserializeBinaryFromReader(msg, reader); }; - /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. @@ -131,45 +137,43 @@ proto.mythos.maimai.v0.GetPlaylogRequest.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.mythos.maimai.v0.GetPlaylogRequest} */ -proto.mythos.maimai.v0.GetPlaylogRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProfileApiId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setLastUserPlayDate(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.mythos.maimai.v0.GetPlaylogRequest.deserializeBinaryFromReader = function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setProfileApiId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setLastUserPlayDate(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setLimit(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.mythos.maimai.v0.GetPlaylogRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.mythos.maimai.v0.GetPlaylogRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.mythos.maimai.v0.GetPlaylogRequest.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.mythos.maimai.v0.GetPlaylogRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; - /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. @@ -177,179 +181,160 @@ proto.mythos.maimai.v0.GetPlaylogRequest.prototype.serializeBinary = function() * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.mythos.maimai.v0.GetPlaylogRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProfileApiId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeString( - 2, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 3)); - if (f != null) { - writer.writeUint64( - 3, - f - ); - } +proto.mythos.maimai.v0.GetPlaylogRequest.serializeBinaryToWriter = function (message, writer) { + var f = undefined; + f = message.getProfileApiId(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeString(2, f); + } + f = /** @type {number} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeUint64(3, f); + } }; - /** * optional string profile_api_id = 1; * @return {string} */ -proto.mythos.maimai.v0.GetPlaylogRequest.prototype.getProfileApiId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.mythos.maimai.v0.GetPlaylogRequest.prototype.getProfileApiId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; - /** * @param {string} value * @return {!proto.mythos.maimai.v0.GetPlaylogRequest} returns this */ -proto.mythos.maimai.v0.GetPlaylogRequest.prototype.setProfileApiId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.mythos.maimai.v0.GetPlaylogRequest.prototype.setProfileApiId = function (value) { + return jspb.Message.setProto3StringField(this, 1, value); }; - /** * optional string last_user_play_date = 2; * @return {string} */ -proto.mythos.maimai.v0.GetPlaylogRequest.prototype.getLastUserPlayDate = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.mythos.maimai.v0.GetPlaylogRequest.prototype.getLastUserPlayDate = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; - /** * @param {string} value * @return {!proto.mythos.maimai.v0.GetPlaylogRequest} returns this */ -proto.mythos.maimai.v0.GetPlaylogRequest.prototype.setLastUserPlayDate = function(value) { - return jspb.Message.setField(this, 2, value); +proto.mythos.maimai.v0.GetPlaylogRequest.prototype.setLastUserPlayDate = function (value) { + return jspb.Message.setField(this, 2, value); }; - /** * Clears the field making it undefined. * @return {!proto.mythos.maimai.v0.GetPlaylogRequest} returns this */ -proto.mythos.maimai.v0.GetPlaylogRequest.prototype.clearLastUserPlayDate = function() { - return jspb.Message.setField(this, 2, undefined); +proto.mythos.maimai.v0.GetPlaylogRequest.prototype.clearLastUserPlayDate = function () { + return jspb.Message.setField(this, 2, undefined); }; - /** * Returns whether this field is set. * @return {boolean} */ -proto.mythos.maimai.v0.GetPlaylogRequest.prototype.hasLastUserPlayDate = function() { - return jspb.Message.getField(this, 2) != null; +proto.mythos.maimai.v0.GetPlaylogRequest.prototype.hasLastUserPlayDate = function () { + return jspb.Message.getField(this, 2) != null; }; - /** * optional uint64 limit = 3; * @return {number} */ -proto.mythos.maimai.v0.GetPlaylogRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.mythos.maimai.v0.GetPlaylogRequest.prototype.getLimit = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; - /** * @param {number} value * @return {!proto.mythos.maimai.v0.GetPlaylogRequest} returns this */ -proto.mythos.maimai.v0.GetPlaylogRequest.prototype.setLimit = function(value) { - return jspb.Message.setField(this, 3, value); +proto.mythos.maimai.v0.GetPlaylogRequest.prototype.setLimit = function (value) { + return jspb.Message.setField(this, 3, value); }; - /** * Clears the field making it undefined. * @return {!proto.mythos.maimai.v0.GetPlaylogRequest} returns this */ -proto.mythos.maimai.v0.GetPlaylogRequest.prototype.clearLimit = function() { - return jspb.Message.setField(this, 3, undefined); +proto.mythos.maimai.v0.GetPlaylogRequest.prototype.clearLimit = function () { + return jspb.Message.setField(this, 3, undefined); }; - /** * Returns whether this field is set. * @return {boolean} */ -proto.mythos.maimai.v0.GetPlaylogRequest.prototype.hasLimit = function() { - return jspb.Message.getField(this, 3) != null; +proto.mythos.maimai.v0.GetPlaylogRequest.prototype.hasLimit = function () { + return jspb.Message.getField(this, 3) != null; }; - - - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.mythos.maimai.v0.GetPlaylogStreamItem.prototype.toObject = function(opt_includeInstance) { - return proto.mythos.maimai.v0.GetPlaylogStreamItem.toObject(opt_includeInstance, this); -}; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.mythos.maimai.v0.GetPlaylogStreamItem.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.mythos.maimai.v0.GetPlaylogStreamItem.toObject(opt_includeInstance, this); + }; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.mythos.maimai.v0.GetPlaylogStreamItem} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.mythos.maimai.v0.GetPlaylogStreamItem.toObject = function (includeInstance, msg) { + var f, + obj = { + playlogApiId: jspb.Message.getFieldWithDefault(msg, 1, ""), + info: + (f = msg.getInfo()) && + maimai_playlog_pb.PlaylogInfo.toObject(includeInstance, f), + judge: + (f = msg.getJudge()) && + maimai_playlog_pb.PlaylogJudge.toObject(includeInstance, f), + }; -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.mythos.maimai.v0.GetPlaylogStreamItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.mythos.maimai.v0.GetPlaylogStreamItem.toObject = function(includeInstance, msg) { - var f, obj = { - playlogApiId: jspb.Message.getFieldWithDefault(msg, 1, ""), - info: (f = msg.getInfo()) && maimai_playlog_pb.PlaylogInfo.toObject(includeInstance, f), - judge: (f = msg.getJudge()) && maimai_playlog_pb.PlaylogJudge.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.mythos.maimai.v0.GetPlaylogStreamItem} */ -proto.mythos.maimai.v0.GetPlaylogStreamItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.mythos.maimai.v0.GetPlaylogStreamItem; - return proto.mythos.maimai.v0.GetPlaylogStreamItem.deserializeBinaryFromReader(msg, reader); +proto.mythos.maimai.v0.GetPlaylogStreamItem.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.mythos.maimai.v0.GetPlaylogStreamItem(); + return proto.mythos.maimai.v0.GetPlaylogStreamItem.deserializeBinaryFromReader(msg, reader); }; - /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. @@ -357,47 +342,51 @@ proto.mythos.maimai.v0.GetPlaylogStreamItem.deserializeBinary = function(bytes) * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.mythos.maimai.v0.GetPlaylogStreamItem} */ -proto.mythos.maimai.v0.GetPlaylogStreamItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPlaylogApiId(value); - break; - case 2: - var value = new maimai_playlog_pb.PlaylogInfo; - reader.readMessage(value,maimai_playlog_pb.PlaylogInfo.deserializeBinaryFromReader); - msg.setInfo(value); - break; - case 3: - var value = new maimai_playlog_pb.PlaylogJudge; - reader.readMessage(value,maimai_playlog_pb.PlaylogJudge.deserializeBinaryFromReader); - msg.setJudge(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.mythos.maimai.v0.GetPlaylogStreamItem.deserializeBinaryFromReader = function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setPlaylogApiId(value); + break; + case 2: + var value = new maimai_playlog_pb.PlaylogInfo(); + reader.readMessage( + value, + maimai_playlog_pb.PlaylogInfo.deserializeBinaryFromReader, + ); + msg.setInfo(value); + break; + case 3: + var value = new maimai_playlog_pb.PlaylogJudge(); + reader.readMessage( + value, + maimai_playlog_pb.PlaylogJudge.deserializeBinaryFromReader, + ); + msg.setJudge(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.mythos.maimai.v0.GetPlaylogStreamItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.mythos.maimai.v0.GetPlaylogStreamItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.mythos.maimai.v0.GetPlaylogStreamItem.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.mythos.maimai.v0.GetPlaylogStreamItem.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; - /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. @@ -405,124 +394,104 @@ proto.mythos.maimai.v0.GetPlaylogStreamItem.prototype.serializeBinary = function * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.mythos.maimai.v0.GetPlaylogStreamItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPlaylogApiId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getInfo(); - if (f != null) { - writer.writeMessage( - 2, - f, - maimai_playlog_pb.PlaylogInfo.serializeBinaryToWriter - ); - } - f = message.getJudge(); - if (f != null) { - writer.writeMessage( - 3, - f, - maimai_playlog_pb.PlaylogJudge.serializeBinaryToWriter - ); - } +proto.mythos.maimai.v0.GetPlaylogStreamItem.serializeBinaryToWriter = function (message, writer) { + var f = undefined; + f = message.getPlaylogApiId(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = message.getInfo(); + if (f != null) { + writer.writeMessage(2, f, maimai_playlog_pb.PlaylogInfo.serializeBinaryToWriter); + } + f = message.getJudge(); + if (f != null) { + writer.writeMessage(3, f, maimai_playlog_pb.PlaylogJudge.serializeBinaryToWriter); + } }; - /** * optional string playlog_api_id = 1; * @return {string} */ -proto.mythos.maimai.v0.GetPlaylogStreamItem.prototype.getPlaylogApiId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.mythos.maimai.v0.GetPlaylogStreamItem.prototype.getPlaylogApiId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; - /** * @param {string} value * @return {!proto.mythos.maimai.v0.GetPlaylogStreamItem} returns this */ -proto.mythos.maimai.v0.GetPlaylogStreamItem.prototype.setPlaylogApiId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.mythos.maimai.v0.GetPlaylogStreamItem.prototype.setPlaylogApiId = function (value) { + return jspb.Message.setProto3StringField(this, 1, value); }; - /** * optional PlaylogInfo info = 2; * @return {?proto.mythos.maimai.v0.PlaylogInfo} */ -proto.mythos.maimai.v0.GetPlaylogStreamItem.prototype.getInfo = function() { - return /** @type{?proto.mythos.maimai.v0.PlaylogInfo} */ ( - jspb.Message.getWrapperField(this, maimai_playlog_pb.PlaylogInfo, 2)); +proto.mythos.maimai.v0.GetPlaylogStreamItem.prototype.getInfo = function () { + return /** @type{?proto.mythos.maimai.v0.PlaylogInfo} */ ( + jspb.Message.getWrapperField(this, maimai_playlog_pb.PlaylogInfo, 2) + ); }; - /** * @param {?proto.mythos.maimai.v0.PlaylogInfo|undefined} value * @return {!proto.mythos.maimai.v0.GetPlaylogStreamItem} returns this -*/ -proto.mythos.maimai.v0.GetPlaylogStreamItem.prototype.setInfo = function(value) { - return jspb.Message.setWrapperField(this, 2, value); + */ +proto.mythos.maimai.v0.GetPlaylogStreamItem.prototype.setInfo = function (value) { + return jspb.Message.setWrapperField(this, 2, value); }; - /** * Clears the message field making it undefined. * @return {!proto.mythos.maimai.v0.GetPlaylogStreamItem} returns this */ -proto.mythos.maimai.v0.GetPlaylogStreamItem.prototype.clearInfo = function() { - return this.setInfo(undefined); +proto.mythos.maimai.v0.GetPlaylogStreamItem.prototype.clearInfo = function () { + return this.setInfo(undefined); }; - /** * Returns whether this field is set. * @return {boolean} */ -proto.mythos.maimai.v0.GetPlaylogStreamItem.prototype.hasInfo = function() { - return jspb.Message.getField(this, 2) != null; +proto.mythos.maimai.v0.GetPlaylogStreamItem.prototype.hasInfo = function () { + return jspb.Message.getField(this, 2) != null; }; - /** * optional PlaylogJudge judge = 3; * @return {?proto.mythos.maimai.v0.PlaylogJudge} */ -proto.mythos.maimai.v0.GetPlaylogStreamItem.prototype.getJudge = function() { - return /** @type{?proto.mythos.maimai.v0.PlaylogJudge} */ ( - jspb.Message.getWrapperField(this, maimai_playlog_pb.PlaylogJudge, 3)); +proto.mythos.maimai.v0.GetPlaylogStreamItem.prototype.getJudge = function () { + return /** @type{?proto.mythos.maimai.v0.PlaylogJudge} */ ( + jspb.Message.getWrapperField(this, maimai_playlog_pb.PlaylogJudge, 3) + ); }; - /** * @param {?proto.mythos.maimai.v0.PlaylogJudge|undefined} value * @return {!proto.mythos.maimai.v0.GetPlaylogStreamItem} returns this -*/ -proto.mythos.maimai.v0.GetPlaylogStreamItem.prototype.setJudge = function(value) { - return jspb.Message.setWrapperField(this, 3, value); + */ +proto.mythos.maimai.v0.GetPlaylogStreamItem.prototype.setJudge = function (value) { + return jspb.Message.setWrapperField(this, 3, value); }; - /** * Clears the message field making it undefined. * @return {!proto.mythos.maimai.v0.GetPlaylogStreamItem} returns this */ -proto.mythos.maimai.v0.GetPlaylogStreamItem.prototype.clearJudge = function() { - return this.setJudge(undefined); +proto.mythos.maimai.v0.GetPlaylogStreamItem.prototype.clearJudge = function () { + return this.setJudge(undefined); }; - /** * Returns whether this field is set. * @return {boolean} */ -proto.mythos.maimai.v0.GetPlaylogStreamItem.prototype.hasJudge = function() { - return jspb.Message.getField(this, 3) != null; +proto.mythos.maimai.v0.GetPlaylogStreamItem.prototype.hasJudge = function () { + return jspb.Message.getField(this, 3) != null; }; - goog.object.extend(exports, proto.mythos.maimai.v0); diff --git a/typescript/server/src/proto/generated/ongeki/common_grpc_pb.js b/typescript/server/src/proto/generated/ongeki/common_grpc_pb.js index 97b3a2461..51b4d6959 100644 --- a/typescript/server/src/proto/generated/ongeki/common_grpc_pb.js +++ b/typescript/server/src/proto/generated/ongeki/common_grpc_pb.js @@ -1 +1 @@ -// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file +// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/typescript/server/src/proto/generated/ongeki/common_pb.d.ts b/typescript/server/src/proto/generated/ongeki/common_pb.d.ts index d0a56117c..c2a79ecb6 100644 --- a/typescript/server/src/proto/generated/ongeki/common_pb.d.ts +++ b/typescript/server/src/proto/generated/ongeki/common_pb.d.ts @@ -4,82 +4,81 @@ import * as jspb from "google-protobuf"; export interface OngekiLevelMap { - ONGEKI_LEVEL_UNSPECIFIED: 0; - ONGEKI_LEVEL_BASIC: 1; - ONGEKI_LEVEL_ADVANCED: 2; - ONGEKI_LEVEL_EXPERT: 3; - ONGEKI_LEVEL_MASTER: 4; - ONGEKI_LEVEL_LUNATIC: 5; + ONGEKI_LEVEL_UNSPECIFIED: 0; + ONGEKI_LEVEL_BASIC: 1; + ONGEKI_LEVEL_ADVANCED: 2; + ONGEKI_LEVEL_EXPERT: 3; + ONGEKI_LEVEL_MASTER: 4; + ONGEKI_LEVEL_LUNATIC: 5; } export const OngekiLevel: OngekiLevelMap; export interface OngekiRankingTypeMap { - ONGEKI_RANKING_TYPE_UNSPECIFIED: 0; - ONGEKI_RANKING_TYPE_TECH_SCORE: 1; - ONGEKI_RANKING_TYPE_BATTLE_SCORE: 2; - ONGEKI_RANKING_TYPE_OVER_DAMAGE: 3; - ONGEKI_RANKING_TYPE_PLATINUM_SCORE: 4; + ONGEKI_RANKING_TYPE_UNSPECIFIED: 0; + ONGEKI_RANKING_TYPE_TECH_SCORE: 1; + ONGEKI_RANKING_TYPE_BATTLE_SCORE: 2; + ONGEKI_RANKING_TYPE_OVER_DAMAGE: 3; + ONGEKI_RANKING_TYPE_PLATINUM_SCORE: 4; } export const OngekiRankingType: OngekiRankingTypeMap; export interface OngekiTechScoreRankMap { - ONGEKI_TECH_SCORE_RANK_UNSPECIFIED: 0; - ONGEKI_TECH_SCORE_RANK_D: 1; - ONGEKI_TECH_SCORE_RANK_C: 2; - ONGEKI_TECH_SCORE_RANK_B: 3; - ONGEKI_TECH_SCORE_RANK_BB: 4; - ONGEKI_TECH_SCORE_RANK_BBB: 5; - ONGEKI_TECH_SCORE_RANK_A: 6; - ONGEKI_TECH_SCORE_RANK_AA: 7; - ONGEKI_TECH_SCORE_RANK_AAA: 8; - ONGEKI_TECH_SCORE_RANK_S: 9; - ONGEKI_TECH_SCORE_RANK_S_PLUS: 10; - ONGEKI_TECH_SCORE_RANK_SS: 11; - ONGEKI_TECH_SCORE_RANK_SS_PLUS: 12; - ONGEKI_TECH_SCORE_RANK_SSS: 13; - ONGEKI_TECH_SCORE_RANK_SSS_PLUS: 14; + ONGEKI_TECH_SCORE_RANK_UNSPECIFIED: 0; + ONGEKI_TECH_SCORE_RANK_D: 1; + ONGEKI_TECH_SCORE_RANK_C: 2; + ONGEKI_TECH_SCORE_RANK_B: 3; + ONGEKI_TECH_SCORE_RANK_BB: 4; + ONGEKI_TECH_SCORE_RANK_BBB: 5; + ONGEKI_TECH_SCORE_RANK_A: 6; + ONGEKI_TECH_SCORE_RANK_AA: 7; + ONGEKI_TECH_SCORE_RANK_AAA: 8; + ONGEKI_TECH_SCORE_RANK_S: 9; + ONGEKI_TECH_SCORE_RANK_S_PLUS: 10; + ONGEKI_TECH_SCORE_RANK_SS: 11; + ONGEKI_TECH_SCORE_RANK_SS_PLUS: 12; + ONGEKI_TECH_SCORE_RANK_SSS: 13; + ONGEKI_TECH_SCORE_RANK_SSS_PLUS: 14; } export const OngekiTechScoreRank: OngekiTechScoreRankMap; export interface OngekiBattleScoreRankMap { - ONGEKI_BATTLE_SCORE_RANK_UNSPECIFIED: 0; - ONGEKI_BATTLE_SCORE_RANK_NO_GOOD: 1; - ONGEKI_BATTLE_SCORE_RANK_USUALLY: 2; - ONGEKI_BATTLE_SCORE_RANK_GOOD: 3; - ONGEKI_BATTLE_SCORE_RANK_GREAT: 4; - ONGEKI_BATTLE_SCORE_RANK_EXCELLENT: 5; - ONGEKI_BATTLE_SCORE_RANK_UNBELIEVABLE: 6; + ONGEKI_BATTLE_SCORE_RANK_UNSPECIFIED: 0; + ONGEKI_BATTLE_SCORE_RANK_NO_GOOD: 1; + ONGEKI_BATTLE_SCORE_RANK_USUALLY: 2; + ONGEKI_BATTLE_SCORE_RANK_GOOD: 3; + ONGEKI_BATTLE_SCORE_RANK_GREAT: 4; + ONGEKI_BATTLE_SCORE_RANK_EXCELLENT: 5; + ONGEKI_BATTLE_SCORE_RANK_UNBELIEVABLE: 6; } export const OngekiBattleScoreRank: OngekiBattleScoreRankMap; export interface OngekiClearStatusMap { - ONGEKI_CLEAR_STATUS_UNSPECIFIED: 0; - ONGEKI_CLEAR_STATUS_FAILED: 1; - ONGEKI_CLEAR_STATUS_CLEARED: 2; - ONGEKI_CLEAR_STATUS_OVER_DAMAGE: 3; + ONGEKI_CLEAR_STATUS_UNSPECIFIED: 0; + ONGEKI_CLEAR_STATUS_FAILED: 1; + ONGEKI_CLEAR_STATUS_CLEARED: 2; + ONGEKI_CLEAR_STATUS_OVER_DAMAGE: 3; } export const OngekiClearStatus: OngekiClearStatusMap; export interface OngekiComboStatusMap { - ONGEKI_COMBO_STATUS_UNSPECIFIED: 0; - ONGEKI_COMBO_STATUS_NONE: 1; - ONGEKI_COMBO_STATUS_FULL_COMBO: 2; - ONGEKI_COMBO_STATUS_ALL_BREAK: 3; + ONGEKI_COMBO_STATUS_UNSPECIFIED: 0; + ONGEKI_COMBO_STATUS_NONE: 1; + ONGEKI_COMBO_STATUS_FULL_COMBO: 2; + ONGEKI_COMBO_STATUS_ALL_BREAK: 3; } export const OngekiComboStatus: OngekiComboStatusMap; export interface OngekiBossAttributeMap { - ONGEKI_BOSS_ATTRIBUTE_UNSPECIFIED: 0; - ONGEKI_BOSS_ATTRIBUTE_FIRE: 1; - ONGEKI_BOSS_ATTRIBUTE_AQUA: 2; - ONGEKI_BOSS_ATTRIBUTE_LEAF: 3; + ONGEKI_BOSS_ATTRIBUTE_UNSPECIFIED: 0; + ONGEKI_BOSS_ATTRIBUTE_FIRE: 1; + ONGEKI_BOSS_ATTRIBUTE_AQUA: 2; + ONGEKI_BOSS_ATTRIBUTE_LEAF: 3; } export const OngekiBossAttribute: OngekiBossAttributeMap; - diff --git a/typescript/server/src/proto/generated/ongeki/common_pb.js b/typescript/server/src/proto/generated/ongeki/common_pb.js index 25e02b443..408ec7682 100644 --- a/typescript/server/src/proto/generated/ongeki/common_pb.js +++ b/typescript/server/src/proto/generated/ongeki/common_pb.js @@ -11,108 +11,116 @@ /* eslint-disable */ // @ts-nocheck -var jspb = require('google-protobuf'); +var jspb = require("google-protobuf"); var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); +var global = function () { + if (this) { + return this; + } + if (typeof window !== "undefined") { + return window; + } + if (typeof global !== "undefined") { + return global; + } + if (typeof self !== "undefined") { + return self; + } + return Function("return this")(); +}.call(null); -goog.exportSymbol('proto.mythos.ongeki.v0.OngekiBattleScoreRank', null, global); -goog.exportSymbol('proto.mythos.ongeki.v0.OngekiBossAttribute', null, global); -goog.exportSymbol('proto.mythos.ongeki.v0.OngekiClearStatus', null, global); -goog.exportSymbol('proto.mythos.ongeki.v0.OngekiComboStatus', null, global); -goog.exportSymbol('proto.mythos.ongeki.v0.OngekiLevel', null, global); -goog.exportSymbol('proto.mythos.ongeki.v0.OngekiRankingType', null, global); -goog.exportSymbol('proto.mythos.ongeki.v0.OngekiTechScoreRank', null, global); +goog.exportSymbol("proto.mythos.ongeki.v0.OngekiBattleScoreRank", null, global); +goog.exportSymbol("proto.mythos.ongeki.v0.OngekiBossAttribute", null, global); +goog.exportSymbol("proto.mythos.ongeki.v0.OngekiClearStatus", null, global); +goog.exportSymbol("proto.mythos.ongeki.v0.OngekiComboStatus", null, global); +goog.exportSymbol("proto.mythos.ongeki.v0.OngekiLevel", null, global); +goog.exportSymbol("proto.mythos.ongeki.v0.OngekiRankingType", null, global); +goog.exportSymbol("proto.mythos.ongeki.v0.OngekiTechScoreRank", null, global); /** * @enum {number} */ proto.mythos.ongeki.v0.OngekiLevel = { - ONGEKI_LEVEL_UNSPECIFIED: 0, - ONGEKI_LEVEL_BASIC: 1, - ONGEKI_LEVEL_ADVANCED: 2, - ONGEKI_LEVEL_EXPERT: 3, - ONGEKI_LEVEL_MASTER: 4, - ONGEKI_LEVEL_LUNATIC: 5 + ONGEKI_LEVEL_UNSPECIFIED: 0, + ONGEKI_LEVEL_BASIC: 1, + ONGEKI_LEVEL_ADVANCED: 2, + ONGEKI_LEVEL_EXPERT: 3, + ONGEKI_LEVEL_MASTER: 4, + ONGEKI_LEVEL_LUNATIC: 5, }; /** * @enum {number} */ proto.mythos.ongeki.v0.OngekiRankingType = { - ONGEKI_RANKING_TYPE_UNSPECIFIED: 0, - ONGEKI_RANKING_TYPE_TECH_SCORE: 1, - ONGEKI_RANKING_TYPE_BATTLE_SCORE: 2, - ONGEKI_RANKING_TYPE_OVER_DAMAGE: 3, - ONGEKI_RANKING_TYPE_PLATINUM_SCORE: 4 + ONGEKI_RANKING_TYPE_UNSPECIFIED: 0, + ONGEKI_RANKING_TYPE_TECH_SCORE: 1, + ONGEKI_RANKING_TYPE_BATTLE_SCORE: 2, + ONGEKI_RANKING_TYPE_OVER_DAMAGE: 3, + ONGEKI_RANKING_TYPE_PLATINUM_SCORE: 4, }; /** * @enum {number} */ proto.mythos.ongeki.v0.OngekiTechScoreRank = { - ONGEKI_TECH_SCORE_RANK_UNSPECIFIED: 0, - ONGEKI_TECH_SCORE_RANK_D: 1, - ONGEKI_TECH_SCORE_RANK_C: 2, - ONGEKI_TECH_SCORE_RANK_B: 3, - ONGEKI_TECH_SCORE_RANK_BB: 4, - ONGEKI_TECH_SCORE_RANK_BBB: 5, - ONGEKI_TECH_SCORE_RANK_A: 6, - ONGEKI_TECH_SCORE_RANK_AA: 7, - ONGEKI_TECH_SCORE_RANK_AAA: 8, - ONGEKI_TECH_SCORE_RANK_S: 9, - ONGEKI_TECH_SCORE_RANK_S_PLUS: 10, - ONGEKI_TECH_SCORE_RANK_SS: 11, - ONGEKI_TECH_SCORE_RANK_SS_PLUS: 12, - ONGEKI_TECH_SCORE_RANK_SSS: 13, - ONGEKI_TECH_SCORE_RANK_SSS_PLUS: 14 + ONGEKI_TECH_SCORE_RANK_UNSPECIFIED: 0, + ONGEKI_TECH_SCORE_RANK_D: 1, + ONGEKI_TECH_SCORE_RANK_C: 2, + ONGEKI_TECH_SCORE_RANK_B: 3, + ONGEKI_TECH_SCORE_RANK_BB: 4, + ONGEKI_TECH_SCORE_RANK_BBB: 5, + ONGEKI_TECH_SCORE_RANK_A: 6, + ONGEKI_TECH_SCORE_RANK_AA: 7, + ONGEKI_TECH_SCORE_RANK_AAA: 8, + ONGEKI_TECH_SCORE_RANK_S: 9, + ONGEKI_TECH_SCORE_RANK_S_PLUS: 10, + ONGEKI_TECH_SCORE_RANK_SS: 11, + ONGEKI_TECH_SCORE_RANK_SS_PLUS: 12, + ONGEKI_TECH_SCORE_RANK_SSS: 13, + ONGEKI_TECH_SCORE_RANK_SSS_PLUS: 14, }; /** * @enum {number} */ proto.mythos.ongeki.v0.OngekiBattleScoreRank = { - ONGEKI_BATTLE_SCORE_RANK_UNSPECIFIED: 0, - ONGEKI_BATTLE_SCORE_RANK_NO_GOOD: 1, - ONGEKI_BATTLE_SCORE_RANK_USUALLY: 2, - ONGEKI_BATTLE_SCORE_RANK_GOOD: 3, - ONGEKI_BATTLE_SCORE_RANK_GREAT: 4, - ONGEKI_BATTLE_SCORE_RANK_EXCELLENT: 5, - ONGEKI_BATTLE_SCORE_RANK_UNBELIEVABLE: 6 + ONGEKI_BATTLE_SCORE_RANK_UNSPECIFIED: 0, + ONGEKI_BATTLE_SCORE_RANK_NO_GOOD: 1, + ONGEKI_BATTLE_SCORE_RANK_USUALLY: 2, + ONGEKI_BATTLE_SCORE_RANK_GOOD: 3, + ONGEKI_BATTLE_SCORE_RANK_GREAT: 4, + ONGEKI_BATTLE_SCORE_RANK_EXCELLENT: 5, + ONGEKI_BATTLE_SCORE_RANK_UNBELIEVABLE: 6, }; /** * @enum {number} */ proto.mythos.ongeki.v0.OngekiClearStatus = { - ONGEKI_CLEAR_STATUS_UNSPECIFIED: 0, - ONGEKI_CLEAR_STATUS_FAILED: 1, - ONGEKI_CLEAR_STATUS_CLEARED: 2, - ONGEKI_CLEAR_STATUS_OVER_DAMAGE: 3 + ONGEKI_CLEAR_STATUS_UNSPECIFIED: 0, + ONGEKI_CLEAR_STATUS_FAILED: 1, + ONGEKI_CLEAR_STATUS_CLEARED: 2, + ONGEKI_CLEAR_STATUS_OVER_DAMAGE: 3, }; /** * @enum {number} */ proto.mythos.ongeki.v0.OngekiComboStatus = { - ONGEKI_COMBO_STATUS_UNSPECIFIED: 0, - ONGEKI_COMBO_STATUS_NONE: 1, - ONGEKI_COMBO_STATUS_FULL_COMBO: 2, - ONGEKI_COMBO_STATUS_ALL_BREAK: 3 + ONGEKI_COMBO_STATUS_UNSPECIFIED: 0, + ONGEKI_COMBO_STATUS_NONE: 1, + ONGEKI_COMBO_STATUS_FULL_COMBO: 2, + ONGEKI_COMBO_STATUS_ALL_BREAK: 3, }; /** * @enum {number} */ proto.mythos.ongeki.v0.OngekiBossAttribute = { - ONGEKI_BOSS_ATTRIBUTE_UNSPECIFIED: 0, - ONGEKI_BOSS_ATTRIBUTE_FIRE: 1, - ONGEKI_BOSS_ATTRIBUTE_AQUA: 2, - ONGEKI_BOSS_ATTRIBUTE_LEAF: 3 + ONGEKI_BOSS_ATTRIBUTE_UNSPECIFIED: 0, + ONGEKI_BOSS_ATTRIBUTE_FIRE: 1, + ONGEKI_BOSS_ATTRIBUTE_AQUA: 2, + ONGEKI_BOSS_ATTRIBUTE_LEAF: 3, }; goog.object.extend(exports, proto.mythos.ongeki.v0); diff --git a/typescript/server/src/proto/generated/ongeki/playlog_grpc_pb.js b/typescript/server/src/proto/generated/ongeki/playlog_grpc_pb.js index 97b3a2461..51b4d6959 100644 --- a/typescript/server/src/proto/generated/ongeki/playlog_grpc_pb.js +++ b/typescript/server/src/proto/generated/ongeki/playlog_grpc_pb.js @@ -1 +1 @@ -// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file +// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/typescript/server/src/proto/generated/ongeki/playlog_pb.d.ts b/typescript/server/src/proto/generated/ongeki/playlog_pb.d.ts index a8729a659..419a3cf03 100644 --- a/typescript/server/src/proto/generated/ongeki/playlog_pb.d.ts +++ b/typescript/server/src/proto/generated/ongeki/playlog_pb.d.ts @@ -5,270 +5,305 @@ import * as jspb from "google-protobuf"; import * as ongeki_common_pb from "../ongeki/common_pb"; export class PlaylogInfo extends jspb.Message { - getMusicId(): number; - setMusicId(value: number): void; + getMusicId(): number; + setMusicId(value: number): void; - getLevel(): ongeki_common_pb.OngekiLevelMap[keyof ongeki_common_pb.OngekiLevelMap]; - setLevel(value: ongeki_common_pb.OngekiLevelMap[keyof ongeki_common_pb.OngekiLevelMap]): void; + getLevel(): ongeki_common_pb.OngekiLevelMap[keyof ongeki_common_pb.OngekiLevelMap]; + setLevel(value: ongeki_common_pb.OngekiLevelMap[keyof ongeki_common_pb.OngekiLevelMap]): void; - getTechScore(): number; - setTechScore(value: number): void; + getTechScore(): number; + setTechScore(value: number): void; - getBattleScore(): number; - setBattleScore(value: number): void; + getBattleScore(): number; + setBattleScore(value: number): void; - getOverDamage(): number; - setOverDamage(value: number): void; + getOverDamage(): number; + setOverDamage(value: number): void; - getPlatinumScore(): number; - setPlatinumScore(value: number): void; + getPlatinumScore(): number; + setPlatinumScore(value: number): void; - getTechScoreRank(): ongeki_common_pb.OngekiTechScoreRankMap[keyof ongeki_common_pb.OngekiTechScoreRankMap]; - setTechScoreRank(value: ongeki_common_pb.OngekiTechScoreRankMap[keyof ongeki_common_pb.OngekiTechScoreRankMap]): void; + getTechScoreRank(): ongeki_common_pb.OngekiTechScoreRankMap[keyof ongeki_common_pb.OngekiTechScoreRankMap]; + setTechScoreRank( + value: ongeki_common_pb.OngekiTechScoreRankMap[keyof ongeki_common_pb.OngekiTechScoreRankMap], + ): void; - getBattleScoreRank(): ongeki_common_pb.OngekiBattleScoreRankMap[keyof ongeki_common_pb.OngekiBattleScoreRankMap]; - setBattleScoreRank(value: ongeki_common_pb.OngekiBattleScoreRankMap[keyof ongeki_common_pb.OngekiBattleScoreRankMap]): void; + getBattleScoreRank(): ongeki_common_pb.OngekiBattleScoreRankMap[keyof ongeki_common_pb.OngekiBattleScoreRankMap]; + setBattleScoreRank( + value: ongeki_common_pb.OngekiBattleScoreRankMap[keyof ongeki_common_pb.OngekiBattleScoreRankMap], + ): void; - getComboStatus(): ongeki_common_pb.OngekiComboStatusMap[keyof ongeki_common_pb.OngekiComboStatusMap]; - setComboStatus(value: ongeki_common_pb.OngekiComboStatusMap[keyof ongeki_common_pb.OngekiComboStatusMap]): void; + getComboStatus(): ongeki_common_pb.OngekiComboStatusMap[keyof ongeki_common_pb.OngekiComboStatusMap]; + setComboStatus( + value: ongeki_common_pb.OngekiComboStatusMap[keyof ongeki_common_pb.OngekiComboStatusMap], + ): void; - getClearStatus(): ongeki_common_pb.OngekiClearStatusMap[keyof ongeki_common_pb.OngekiClearStatusMap]; - setClearStatus(value: ongeki_common_pb.OngekiClearStatusMap[keyof ongeki_common_pb.OngekiClearStatusMap]): void; + getClearStatus(): ongeki_common_pb.OngekiClearStatusMap[keyof ongeki_common_pb.OngekiClearStatusMap]; + setClearStatus( + value: ongeki_common_pb.OngekiClearStatusMap[keyof ongeki_common_pb.OngekiClearStatusMap], + ): void; - getIsFullBell(): boolean; - setIsFullBell(value: boolean): void; + getIsFullBell(): boolean; + setIsFullBell(value: boolean): void; - getIsTechNewRecord(): boolean; - setIsTechNewRecord(value: boolean): void; + getIsTechNewRecord(): boolean; + setIsTechNewRecord(value: boolean): void; - getIsBattleNewRecord(): boolean; - setIsBattleNewRecord(value: boolean): void; + getIsBattleNewRecord(): boolean; + setIsBattleNewRecord(value: boolean): void; - getIsOverDamageNewRecord(): boolean; - setIsOverDamageNewRecord(value: boolean): void; + getIsOverDamageNewRecord(): boolean; + setIsOverDamageNewRecord(value: boolean): void; - getUserPlayDate(): string; - setUserPlayDate(value: string): void; + getUserPlayDate(): string; + setUserPlayDate(value: string): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PlaylogInfo.AsObject; - static toObject(includeInstance: boolean, msg: PlaylogInfo): PlaylogInfo.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PlaylogInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PlaylogInfo; - static deserializeBinaryFromReader(message: PlaylogInfo, reader: jspb.BinaryReader): PlaylogInfo; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PlaylogInfo.AsObject; + static toObject(includeInstance: boolean, msg: PlaylogInfo): PlaylogInfo.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo }; + static serializeBinaryToWriter(message: PlaylogInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PlaylogInfo; + static deserializeBinaryFromReader( + message: PlaylogInfo, + reader: jspb.BinaryReader, + ): PlaylogInfo; } export namespace PlaylogInfo { - export type AsObject = { - musicId: number, - level: ongeki_common_pb.OngekiLevelMap[keyof ongeki_common_pb.OngekiLevelMap], - techScore: number, - battleScore: number, - overDamage: number, - platinumScore: number, - techScoreRank: ongeki_common_pb.OngekiTechScoreRankMap[keyof ongeki_common_pb.OngekiTechScoreRankMap], - battleScoreRank: ongeki_common_pb.OngekiBattleScoreRankMap[keyof ongeki_common_pb.OngekiBattleScoreRankMap], - comboStatus: ongeki_common_pb.OngekiComboStatusMap[keyof ongeki_common_pb.OngekiComboStatusMap], - clearStatus: ongeki_common_pb.OngekiClearStatusMap[keyof ongeki_common_pb.OngekiClearStatusMap], - isFullBell: boolean, - isTechNewRecord: boolean, - isBattleNewRecord: boolean, - isOverDamageNewRecord: boolean, - userPlayDate: string, - } + export type AsObject = { + musicId: number; + level: ongeki_common_pb.OngekiLevelMap[keyof ongeki_common_pb.OngekiLevelMap]; + techScore: number; + battleScore: number; + overDamage: number; + platinumScore: number; + techScoreRank: ongeki_common_pb.OngekiTechScoreRankMap[keyof ongeki_common_pb.OngekiTechScoreRankMap]; + battleScoreRank: ongeki_common_pb.OngekiBattleScoreRankMap[keyof ongeki_common_pb.OngekiBattleScoreRankMap]; + comboStatus: ongeki_common_pb.OngekiComboStatusMap[keyof ongeki_common_pb.OngekiComboStatusMap]; + clearStatus: ongeki_common_pb.OngekiClearStatusMap[keyof ongeki_common_pb.OngekiClearStatusMap]; + isFullBell: boolean; + isTechNewRecord: boolean; + isBattleNewRecord: boolean; + isOverDamageNewRecord: boolean; + userPlayDate: string; + }; } export class PlaylogJudge extends jspb.Message { - getJudgeCriticalBreak(): number; - setJudgeCriticalBreak(value: number): void; + getJudgeCriticalBreak(): number; + setJudgeCriticalBreak(value: number): void; - getJudgeBreak(): number; - setJudgeBreak(value: number): void; + getJudgeBreak(): number; + setJudgeBreak(value: number): void; - getJudgeHit(): number; - setJudgeHit(value: number): void; + getJudgeHit(): number; + setJudgeHit(value: number): void; - getJudgeMiss(): number; - setJudgeMiss(value: number): void; + getJudgeMiss(): number; + setJudgeMiss(value: number): void; - getMaxCombo(): number; - setMaxCombo(value: number): void; + getMaxCombo(): number; + setMaxCombo(value: number): void; - getBellCount(): number; - setBellCount(value: number): void; + getBellCount(): number; + setBellCount(value: number): void; - getTotalBellCount(): number; - setTotalBellCount(value: number): void; + getTotalBellCount(): number; + setTotalBellCount(value: number): void; - getDamageCount(): number; - setDamageCount(value: number): void; + getDamageCount(): number; + setDamageCount(value: number): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PlaylogJudge.AsObject; - static toObject(includeInstance: boolean, msg: PlaylogJudge): PlaylogJudge.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PlaylogJudge, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PlaylogJudge; - static deserializeBinaryFromReader(message: PlaylogJudge, reader: jspb.BinaryReader): PlaylogJudge; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PlaylogJudge.AsObject; + static toObject(includeInstance: boolean, msg: PlaylogJudge): PlaylogJudge.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo }; + static serializeBinaryToWriter(message: PlaylogJudge, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PlaylogJudge; + static deserializeBinaryFromReader( + message: PlaylogJudge, + reader: jspb.BinaryReader, + ): PlaylogJudge; } export namespace PlaylogJudge { - export type AsObject = { - judgeCriticalBreak: number, - judgeBreak: number, - judgeHit: number, - judgeMiss: number, - maxCombo: number, - bellCount: number, - totalBellCount: number, - damageCount: number, - } + export type AsObject = { + judgeCriticalBreak: number; + judgeBreak: number; + judgeHit: number; + judgeMiss: number; + maxCombo: number; + bellCount: number; + totalBellCount: number; + damageCount: number; + }; } export class PlaylogJudgeRate extends jspb.Message { - getRateTap(): number; - setRateTap(value: number): void; + getRateTap(): number; + setRateTap(value: number): void; - getRateHold(): number; - setRateHold(value: number): void; + getRateHold(): number; + setRateHold(value: number): void; - getRateFlick(): number; - setRateFlick(value: number): void; + getRateFlick(): number; + setRateFlick(value: number): void; - getRateSideTap(): number; - setRateSideTap(value: number): void; + getRateSideTap(): number; + setRateSideTap(value: number): void; - getRateSideHold(): number; - setRateSideHold(value: number): void; + getRateSideHold(): number; + setRateSideHold(value: number): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PlaylogJudgeRate.AsObject; - static toObject(includeInstance: boolean, msg: PlaylogJudgeRate): PlaylogJudgeRate.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PlaylogJudgeRate, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PlaylogJudgeRate; - static deserializeBinaryFromReader(message: PlaylogJudgeRate, reader: jspb.BinaryReader): PlaylogJudgeRate; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PlaylogJudgeRate.AsObject; + static toObject(includeInstance: boolean, msg: PlaylogJudgeRate): PlaylogJudgeRate.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo }; + static serializeBinaryToWriter(message: PlaylogJudgeRate, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PlaylogJudgeRate; + static deserializeBinaryFromReader( + message: PlaylogJudgeRate, + reader: jspb.BinaryReader, + ): PlaylogJudgeRate; } export namespace PlaylogJudgeRate { - export type AsObject = { - rateTap: number, - rateHold: number, - rateFlick: number, - rateSideTap: number, - rateSideHold: number, - } + export type AsObject = { + rateTap: number; + rateHold: number; + rateFlick: number; + rateSideTap: number; + rateSideHold: number; + }; } export class PlaylogMatchingUser extends jspb.Message { - getUserName(): string; - setUserName(value: string): void; + getUserName(): string; + setUserName(value: string): void; - getMusicLevel(): ongeki_common_pb.OngekiLevelMap[keyof ongeki_common_pb.OngekiLevelMap]; - setMusicLevel(value: ongeki_common_pb.OngekiLevelMap[keyof ongeki_common_pb.OngekiLevelMap]): void; + getMusicLevel(): ongeki_common_pb.OngekiLevelMap[keyof ongeki_common_pb.OngekiLevelMap]; + setMusicLevel( + value: ongeki_common_pb.OngekiLevelMap[keyof ongeki_common_pb.OngekiLevelMap], + ): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PlaylogMatchingUser.AsObject; - static toObject(includeInstance: boolean, msg: PlaylogMatchingUser): PlaylogMatchingUser.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PlaylogMatchingUser, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PlaylogMatchingUser; - static deserializeBinaryFromReader(message: PlaylogMatchingUser, reader: jspb.BinaryReader): PlaylogMatchingUser; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PlaylogMatchingUser.AsObject; + static toObject( + includeInstance: boolean, + msg: PlaylogMatchingUser, + ): PlaylogMatchingUser.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo }; + static serializeBinaryToWriter(message: PlaylogMatchingUser, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PlaylogMatchingUser; + static deserializeBinaryFromReader( + message: PlaylogMatchingUser, + reader: jspb.BinaryReader, + ): PlaylogMatchingUser; } export namespace PlaylogMatchingUser { - export type AsObject = { - userName: string, - musicLevel: ongeki_common_pb.OngekiLevelMap[keyof ongeki_common_pb.OngekiLevelMap], - } + export type AsObject = { + userName: string; + musicLevel: ongeki_common_pb.OngekiLevelMap[keyof ongeki_common_pb.OngekiLevelMap]; + }; } export class PlaylogCard extends jspb.Message { - getCardId(): number; - setCardId(value: number): void; + getCardId(): number; + setCardId(value: number): void; - getCardLevel(): number; - setCardLevel(value: number): void; + getCardLevel(): number; + setCardLevel(value: number): void; - getCardAttack(): number; - setCardAttack(value: number): void; + getCardAttack(): number; + setCardAttack(value: number): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PlaylogCard.AsObject; - static toObject(includeInstance: boolean, msg: PlaylogCard): PlaylogCard.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PlaylogCard, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PlaylogCard; - static deserializeBinaryFromReader(message: PlaylogCard, reader: jspb.BinaryReader): PlaylogCard; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PlaylogCard.AsObject; + static toObject(includeInstance: boolean, msg: PlaylogCard): PlaylogCard.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo }; + static serializeBinaryToWriter(message: PlaylogCard, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PlaylogCard; + static deserializeBinaryFromReader( + message: PlaylogCard, + reader: jspb.BinaryReader, + ): PlaylogCard; } export namespace PlaylogCard { - export type AsObject = { - cardId: number, - cardLevel: number, - cardAttack: number, - } + export type AsObject = { + cardId: number; + cardLevel: number; + cardAttack: number; + }; } export class PlaylogBoss extends jspb.Message { - getBossId(): number; - setBossId(value: number): void; + getBossId(): number; + setBossId(value: number): void; - getBossLevel(): number; - setBossLevel(value: number): void; + getBossLevel(): number; + setBossLevel(value: number): void; - getBossAttribute(): ongeki_common_pb.OngekiBossAttributeMap[keyof ongeki_common_pb.OngekiBossAttributeMap]; - setBossAttribute(value: ongeki_common_pb.OngekiBossAttributeMap[keyof ongeki_common_pb.OngekiBossAttributeMap]): void; + getBossAttribute(): ongeki_common_pb.OngekiBossAttributeMap[keyof ongeki_common_pb.OngekiBossAttributeMap]; + setBossAttribute( + value: ongeki_common_pb.OngekiBossAttributeMap[keyof ongeki_common_pb.OngekiBossAttributeMap], + ): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PlaylogBoss.AsObject; - static toObject(includeInstance: boolean, msg: PlaylogBoss): PlaylogBoss.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PlaylogBoss, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PlaylogBoss; - static deserializeBinaryFromReader(message: PlaylogBoss, reader: jspb.BinaryReader): PlaylogBoss; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PlaylogBoss.AsObject; + static toObject(includeInstance: boolean, msg: PlaylogBoss): PlaylogBoss.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo }; + static serializeBinaryToWriter(message: PlaylogBoss, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PlaylogBoss; + static deserializeBinaryFromReader( + message: PlaylogBoss, + reader: jspb.BinaryReader, + ): PlaylogBoss; } export namespace PlaylogBoss { - export type AsObject = { - bossId: number, - bossLevel: number, - bossAttribute: ongeki_common_pb.OngekiBossAttributeMap[keyof ongeki_common_pb.OngekiBossAttributeMap], - } + export type AsObject = { + bossId: number; + bossLevel: number; + bossAttribute: ongeki_common_pb.OngekiBossAttributeMap[keyof ongeki_common_pb.OngekiBossAttributeMap]; + }; } export class PlaylogEvent extends jspb.Message { - getEventId(): number; - setEventId(value: number): void; + getEventId(): number; + setEventId(value: number): void; - getEventName(): string; - setEventName(value: string): void; + getEventName(): string; + setEventName(value: string): void; - getEventPoint(): number; - setEventPoint(value: number): void; + getEventPoint(): number; + setEventPoint(value: number): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PlaylogEvent.AsObject; - static toObject(includeInstance: boolean, msg: PlaylogEvent): PlaylogEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PlaylogEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PlaylogEvent; - static deserializeBinaryFromReader(message: PlaylogEvent, reader: jspb.BinaryReader): PlaylogEvent; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PlaylogEvent.AsObject; + static toObject(includeInstance: boolean, msg: PlaylogEvent): PlaylogEvent.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo }; + static serializeBinaryToWriter(message: PlaylogEvent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PlaylogEvent; + static deserializeBinaryFromReader( + message: PlaylogEvent, + reader: jspb.BinaryReader, + ): PlaylogEvent; } export namespace PlaylogEvent { - export type AsObject = { - eventId: number, - eventName: string, - eventPoint: number, - } + export type AsObject = { + eventId: number; + eventName: string; + eventPoint: number; + }; } - diff --git a/typescript/server/src/proto/generated/ongeki/playlog_pb.js b/typescript/server/src/proto/generated/ongeki/playlog_pb.js index 755bddd1e..a3d14e78e 100644 --- a/typescript/server/src/proto/generated/ongeki/playlog_pb.js +++ b/typescript/server/src/proto/generated/ongeki/playlog_pb.js @@ -11,25 +11,33 @@ /* eslint-disable */ // @ts-nocheck -var jspb = require('google-protobuf'); +var jspb = require("google-protobuf"); var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); +var global = function () { + if (this) { + return this; + } + if (typeof window !== "undefined") { + return window; + } + if (typeof global !== "undefined") { + return global; + } + if (typeof self !== "undefined") { + return self; + } + return Function("return this")(); +}.call(null); -var ongeki_common_pb = require('../ongeki/common_pb.js'); +var ongeki_common_pb = require("../ongeki/common_pb.js"); goog.object.extend(proto, ongeki_common_pb); -goog.exportSymbol('proto.mythos.ongeki.v0.PlaylogBoss', null, global); -goog.exportSymbol('proto.mythos.ongeki.v0.PlaylogCard', null, global); -goog.exportSymbol('proto.mythos.ongeki.v0.PlaylogEvent', null, global); -goog.exportSymbol('proto.mythos.ongeki.v0.PlaylogInfo', null, global); -goog.exportSymbol('proto.mythos.ongeki.v0.PlaylogJudge', null, global); -goog.exportSymbol('proto.mythos.ongeki.v0.PlaylogJudgeRate', null, global); -goog.exportSymbol('proto.mythos.ongeki.v0.PlaylogMatchingUser', null, global); +goog.exportSymbol("proto.mythos.ongeki.v0.PlaylogBoss", null, global); +goog.exportSymbol("proto.mythos.ongeki.v0.PlaylogCard", null, global); +goog.exportSymbol("proto.mythos.ongeki.v0.PlaylogEvent", null, global); +goog.exportSymbol("proto.mythos.ongeki.v0.PlaylogInfo", null, global); +goog.exportSymbol("proto.mythos.ongeki.v0.PlaylogJudge", null, global); +goog.exportSymbol("proto.mythos.ongeki.v0.PlaylogJudgeRate", null, global); +goog.exportSymbol("proto.mythos.ongeki.v0.PlaylogMatchingUser", null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -40,16 +48,16 @@ goog.exportSymbol('proto.mythos.ongeki.v0.PlaylogMatchingUser', null, global); * @extends {jspb.Message} * @constructor */ -proto.mythos.ongeki.v0.PlaylogInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.mythos.ongeki.v0.PlaylogInfo = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.mythos.ongeki.v0.PlaylogInfo, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.mythos.ongeki.v0.PlaylogInfo.displayName = 'proto.mythos.ongeki.v0.PlaylogInfo'; + /** + * @public + * @override + */ + proto.mythos.ongeki.v0.PlaylogInfo.displayName = "proto.mythos.ongeki.v0.PlaylogInfo"; } /** * Generated by JsPbCodeGenerator. @@ -61,16 +69,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.mythos.ongeki.v0.PlaylogJudge = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.mythos.ongeki.v0.PlaylogJudge = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.mythos.ongeki.v0.PlaylogJudge, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.mythos.ongeki.v0.PlaylogJudge.displayName = 'proto.mythos.ongeki.v0.PlaylogJudge'; + /** + * @public + * @override + */ + proto.mythos.ongeki.v0.PlaylogJudge.displayName = "proto.mythos.ongeki.v0.PlaylogJudge"; } /** * Generated by JsPbCodeGenerator. @@ -82,16 +90,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.mythos.ongeki.v0.PlaylogJudgeRate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.mythos.ongeki.v0.PlaylogJudgeRate = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.mythos.ongeki.v0.PlaylogJudgeRate, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.mythos.ongeki.v0.PlaylogJudgeRate.displayName = 'proto.mythos.ongeki.v0.PlaylogJudgeRate'; + /** + * @public + * @override + */ + proto.mythos.ongeki.v0.PlaylogJudgeRate.displayName = "proto.mythos.ongeki.v0.PlaylogJudgeRate"; } /** * Generated by JsPbCodeGenerator. @@ -103,16 +111,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.mythos.ongeki.v0.PlaylogMatchingUser = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.mythos.ongeki.v0.PlaylogMatchingUser = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.mythos.ongeki.v0.PlaylogMatchingUser, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.mythos.ongeki.v0.PlaylogMatchingUser.displayName = 'proto.mythos.ongeki.v0.PlaylogMatchingUser'; + /** + * @public + * @override + */ + proto.mythos.ongeki.v0.PlaylogMatchingUser.displayName = + "proto.mythos.ongeki.v0.PlaylogMatchingUser"; } /** * Generated by JsPbCodeGenerator. @@ -124,16 +133,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.mythos.ongeki.v0.PlaylogCard = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.mythos.ongeki.v0.PlaylogCard = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.mythos.ongeki.v0.PlaylogCard, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.mythos.ongeki.v0.PlaylogCard.displayName = 'proto.mythos.ongeki.v0.PlaylogCard'; + /** + * @public + * @override + */ + proto.mythos.ongeki.v0.PlaylogCard.displayName = "proto.mythos.ongeki.v0.PlaylogCard"; } /** * Generated by JsPbCodeGenerator. @@ -145,16 +154,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.mythos.ongeki.v0.PlaylogBoss = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.mythos.ongeki.v0.PlaylogBoss = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.mythos.ongeki.v0.PlaylogBoss, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.mythos.ongeki.v0.PlaylogBoss.displayName = 'proto.mythos.ongeki.v0.PlaylogBoss'; + /** + * @public + * @override + */ + proto.mythos.ongeki.v0.PlaylogBoss.displayName = "proto.mythos.ongeki.v0.PlaylogBoss"; } /** * Generated by JsPbCodeGenerator. @@ -166,86 +175,82 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.mythos.ongeki.v0.PlaylogEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.mythos.ongeki.v0.PlaylogEvent = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.mythos.ongeki.v0.PlaylogEvent, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.mythos.ongeki.v0.PlaylogEvent.displayName = 'proto.mythos.ongeki.v0.PlaylogEvent'; + /** + * @public + * @override + */ + proto.mythos.ongeki.v0.PlaylogEvent.displayName = "proto.mythos.ongeki.v0.PlaylogEvent"; } - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.mythos.ongeki.v0.PlaylogInfo.prototype.toObject = function(opt_includeInstance) { - return proto.mythos.ongeki.v0.PlaylogInfo.toObject(opt_includeInstance, this); -}; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.mythos.ongeki.v0.PlaylogInfo.prototype.toObject = function (opt_includeInstance) { + return proto.mythos.ongeki.v0.PlaylogInfo.toObject(opt_includeInstance, this); + }; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.mythos.ongeki.v0.PlaylogInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.mythos.ongeki.v0.PlaylogInfo.toObject = function (includeInstance, msg) { + var f, + obj = { + musicId: jspb.Message.getFieldWithDefault(msg, 1, 0), + level: jspb.Message.getFieldWithDefault(msg, 2, 0), + techScore: jspb.Message.getFieldWithDefault(msg, 3, 0), + battleScore: jspb.Message.getFieldWithDefault(msg, 4, 0), + overDamage: jspb.Message.getFieldWithDefault(msg, 5, 0), + platinumScore: jspb.Message.getFieldWithDefault(msg, 6, 0), + techScoreRank: jspb.Message.getFieldWithDefault(msg, 7, 0), + battleScoreRank: jspb.Message.getFieldWithDefault(msg, 8, 0), + comboStatus: jspb.Message.getFieldWithDefault(msg, 9, 0), + clearStatus: jspb.Message.getFieldWithDefault(msg, 10, 0), + isFullBell: jspb.Message.getBooleanFieldWithDefault(msg, 11, false), + isTechNewRecord: jspb.Message.getBooleanFieldWithDefault(msg, 12, false), + isBattleNewRecord: jspb.Message.getBooleanFieldWithDefault(msg, 13, false), + isOverDamageNewRecord: jspb.Message.getBooleanFieldWithDefault(msg, 14, false), + userPlayDate: jspb.Message.getFieldWithDefault(msg, 15, ""), + }; -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.mythos.ongeki.v0.PlaylogInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.mythos.ongeki.v0.PlaylogInfo.toObject = function(includeInstance, msg) { - var f, obj = { - musicId: jspb.Message.getFieldWithDefault(msg, 1, 0), - level: jspb.Message.getFieldWithDefault(msg, 2, 0), - techScore: jspb.Message.getFieldWithDefault(msg, 3, 0), - battleScore: jspb.Message.getFieldWithDefault(msg, 4, 0), - overDamage: jspb.Message.getFieldWithDefault(msg, 5, 0), - platinumScore: jspb.Message.getFieldWithDefault(msg, 6, 0), - techScoreRank: jspb.Message.getFieldWithDefault(msg, 7, 0), - battleScoreRank: jspb.Message.getFieldWithDefault(msg, 8, 0), - comboStatus: jspb.Message.getFieldWithDefault(msg, 9, 0), - clearStatus: jspb.Message.getFieldWithDefault(msg, 10, 0), - isFullBell: jspb.Message.getBooleanFieldWithDefault(msg, 11, false), - isTechNewRecord: jspb.Message.getBooleanFieldWithDefault(msg, 12, false), - isBattleNewRecord: jspb.Message.getBooleanFieldWithDefault(msg, 13, false), - isOverDamageNewRecord: jspb.Message.getBooleanFieldWithDefault(msg, 14, false), - userPlayDate: jspb.Message.getFieldWithDefault(msg, 15, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.mythos.ongeki.v0.PlaylogInfo} */ -proto.mythos.ongeki.v0.PlaylogInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.mythos.ongeki.v0.PlaylogInfo; - return proto.mythos.ongeki.v0.PlaylogInfo.deserializeBinaryFromReader(msg, reader); +proto.mythos.ongeki.v0.PlaylogInfo.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.mythos.ongeki.v0.PlaylogInfo(); + return proto.mythos.ongeki.v0.PlaylogInfo.deserializeBinaryFromReader(msg, reader); }; - /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. @@ -253,93 +258,99 @@ proto.mythos.ongeki.v0.PlaylogInfo.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.mythos.ongeki.v0.PlaylogInfo} */ -proto.mythos.ongeki.v0.PlaylogInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMusicId(value); - break; - case 2: - var value = /** @type {!proto.mythos.ongeki.v0.OngekiLevel} */ (reader.readEnum()); - msg.setLevel(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt32()); - msg.setTechScore(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt32()); - msg.setBattleScore(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt32()); - msg.setOverDamage(value); - break; - case 6: - var value = /** @type {number} */ (reader.readInt32()); - msg.setPlatinumScore(value); - break; - case 7: - var value = /** @type {!proto.mythos.ongeki.v0.OngekiTechScoreRank} */ (reader.readEnum()); - msg.setTechScoreRank(value); - break; - case 8: - var value = /** @type {!proto.mythos.ongeki.v0.OngekiBattleScoreRank} */ (reader.readEnum()); - msg.setBattleScoreRank(value); - break; - case 9: - var value = /** @type {!proto.mythos.ongeki.v0.OngekiComboStatus} */ (reader.readEnum()); - msg.setComboStatus(value); - break; - case 10: - var value = /** @type {!proto.mythos.ongeki.v0.OngekiClearStatus} */ (reader.readEnum()); - msg.setClearStatus(value); - break; - case 11: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsFullBell(value); - break; - case 12: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsTechNewRecord(value); - break; - case 13: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsBattleNewRecord(value); - break; - case 14: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsOverDamageNewRecord(value); - break; - case 15: - var value = /** @type {string} */ (reader.readString()); - msg.setUserPlayDate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.mythos.ongeki.v0.PlaylogInfo.deserializeBinaryFromReader = function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setMusicId(value); + break; + case 2: + var value = /** @type {!proto.mythos.ongeki.v0.OngekiLevel} */ (reader.readEnum()); + msg.setLevel(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setTechScore(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt32()); + msg.setBattleScore(value); + break; + case 5: + var value = /** @type {number} */ (reader.readInt32()); + msg.setOverDamage(value); + break; + case 6: + var value = /** @type {number} */ (reader.readInt32()); + msg.setPlatinumScore(value); + break; + case 7: + var value = /** @type {!proto.mythos.ongeki.v0.OngekiTechScoreRank} */ ( + reader.readEnum() + ); + msg.setTechScoreRank(value); + break; + case 8: + var value = /** @type {!proto.mythos.ongeki.v0.OngekiBattleScoreRank} */ ( + reader.readEnum() + ); + msg.setBattleScoreRank(value); + break; + case 9: + var value = /** @type {!proto.mythos.ongeki.v0.OngekiComboStatus} */ ( + reader.readEnum() + ); + msg.setComboStatus(value); + break; + case 10: + var value = /** @type {!proto.mythos.ongeki.v0.OngekiClearStatus} */ ( + reader.readEnum() + ); + msg.setClearStatus(value); + break; + case 11: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsFullBell(value); + break; + case 12: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsTechNewRecord(value); + break; + case 13: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsBattleNewRecord(value); + break; + case 14: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsOverDamageNewRecord(value); + break; + case 15: + var value = /** @type {string} */ (reader.readString()); + msg.setUserPlayDate(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.mythos.ongeki.v0.PlaylogInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.mythos.ongeki.v0.PlaylogInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.mythos.ongeki.v0.PlaylogInfo.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.mythos.ongeki.v0.PlaylogInfo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; - /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. @@ -347,448 +358,377 @@ proto.mythos.ongeki.v0.PlaylogInfo.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.mythos.ongeki.v0.PlaylogInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMusicId(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getLevel(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getTechScore(); - if (f !== 0) { - writer.writeInt32( - 3, - f - ); - } - f = message.getBattleScore(); - if (f !== 0) { - writer.writeInt32( - 4, - f - ); - } - f = message.getOverDamage(); - if (f !== 0) { - writer.writeInt32( - 5, - f - ); - } - f = message.getPlatinumScore(); - if (f !== 0) { - writer.writeInt32( - 6, - f - ); - } - f = message.getTechScoreRank(); - if (f !== 0.0) { - writer.writeEnum( - 7, - f - ); - } - f = message.getBattleScoreRank(); - if (f !== 0.0) { - writer.writeEnum( - 8, - f - ); - } - f = message.getComboStatus(); - if (f !== 0.0) { - writer.writeEnum( - 9, - f - ); - } - f = message.getClearStatus(); - if (f !== 0.0) { - writer.writeEnum( - 10, - f - ); - } - f = message.getIsFullBell(); - if (f) { - writer.writeBool( - 11, - f - ); - } - f = message.getIsTechNewRecord(); - if (f) { - writer.writeBool( - 12, - f - ); - } - f = message.getIsBattleNewRecord(); - if (f) { - writer.writeBool( - 13, - f - ); - } - f = message.getIsOverDamageNewRecord(); - if (f) { - writer.writeBool( - 14, - f - ); - } - f = message.getUserPlayDate(); - if (f.length > 0) { - writer.writeString( - 15, - f - ); - } +proto.mythos.ongeki.v0.PlaylogInfo.serializeBinaryToWriter = function (message, writer) { + var f = undefined; + f = message.getMusicId(); + if (f !== 0) { + writer.writeInt32(1, f); + } + f = message.getLevel(); + if (f !== 0.0) { + writer.writeEnum(2, f); + } + f = message.getTechScore(); + if (f !== 0) { + writer.writeInt32(3, f); + } + f = message.getBattleScore(); + if (f !== 0) { + writer.writeInt32(4, f); + } + f = message.getOverDamage(); + if (f !== 0) { + writer.writeInt32(5, f); + } + f = message.getPlatinumScore(); + if (f !== 0) { + writer.writeInt32(6, f); + } + f = message.getTechScoreRank(); + if (f !== 0.0) { + writer.writeEnum(7, f); + } + f = message.getBattleScoreRank(); + if (f !== 0.0) { + writer.writeEnum(8, f); + } + f = message.getComboStatus(); + if (f !== 0.0) { + writer.writeEnum(9, f); + } + f = message.getClearStatus(); + if (f !== 0.0) { + writer.writeEnum(10, f); + } + f = message.getIsFullBell(); + if (f) { + writer.writeBool(11, f); + } + f = message.getIsTechNewRecord(); + if (f) { + writer.writeBool(12, f); + } + f = message.getIsBattleNewRecord(); + if (f) { + writer.writeBool(13, f); + } + f = message.getIsOverDamageNewRecord(); + if (f) { + writer.writeBool(14, f); + } + f = message.getUserPlayDate(); + if (f.length > 0) { + writer.writeString(15, f); + } }; - /** * optional int32 music_id = 1; * @return {number} */ -proto.mythos.ongeki.v0.PlaylogInfo.prototype.getMusicId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.mythos.ongeki.v0.PlaylogInfo.prototype.getMusicId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; - /** * @param {number} value * @return {!proto.mythos.ongeki.v0.PlaylogInfo} returns this */ -proto.mythos.ongeki.v0.PlaylogInfo.prototype.setMusicId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.mythos.ongeki.v0.PlaylogInfo.prototype.setMusicId = function (value) { + return jspb.Message.setProto3IntField(this, 1, value); }; - /** * optional OngekiLevel level = 2; * @return {!proto.mythos.ongeki.v0.OngekiLevel} */ -proto.mythos.ongeki.v0.PlaylogInfo.prototype.getLevel = function() { - return /** @type {!proto.mythos.ongeki.v0.OngekiLevel} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.mythos.ongeki.v0.PlaylogInfo.prototype.getLevel = function () { + return /** @type {!proto.mythos.ongeki.v0.OngekiLevel} */ ( + jspb.Message.getFieldWithDefault(this, 2, 0) + ); }; - /** * @param {!proto.mythos.ongeki.v0.OngekiLevel} value * @return {!proto.mythos.ongeki.v0.PlaylogInfo} returns this */ -proto.mythos.ongeki.v0.PlaylogInfo.prototype.setLevel = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); +proto.mythos.ongeki.v0.PlaylogInfo.prototype.setLevel = function (value) { + return jspb.Message.setProto3EnumField(this, 2, value); }; - /** * optional int32 tech_score = 3; * @return {number} */ -proto.mythos.ongeki.v0.PlaylogInfo.prototype.getTechScore = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.mythos.ongeki.v0.PlaylogInfo.prototype.getTechScore = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; - /** * @param {number} value * @return {!proto.mythos.ongeki.v0.PlaylogInfo} returns this */ -proto.mythos.ongeki.v0.PlaylogInfo.prototype.setTechScore = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.mythos.ongeki.v0.PlaylogInfo.prototype.setTechScore = function (value) { + return jspb.Message.setProto3IntField(this, 3, value); }; - /** * optional int32 battle_score = 4; * @return {number} */ -proto.mythos.ongeki.v0.PlaylogInfo.prototype.getBattleScore = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +proto.mythos.ongeki.v0.PlaylogInfo.prototype.getBattleScore = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; - /** * @param {number} value * @return {!proto.mythos.ongeki.v0.PlaylogInfo} returns this */ -proto.mythos.ongeki.v0.PlaylogInfo.prototype.setBattleScore = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); +proto.mythos.ongeki.v0.PlaylogInfo.prototype.setBattleScore = function (value) { + return jspb.Message.setProto3IntField(this, 4, value); }; - /** * optional int32 over_damage = 5; * @return {number} */ -proto.mythos.ongeki.v0.PlaylogInfo.prototype.getOverDamage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +proto.mythos.ongeki.v0.PlaylogInfo.prototype.getOverDamage = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; - /** * @param {number} value * @return {!proto.mythos.ongeki.v0.PlaylogInfo} returns this */ -proto.mythos.ongeki.v0.PlaylogInfo.prototype.setOverDamage = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); +proto.mythos.ongeki.v0.PlaylogInfo.prototype.setOverDamage = function (value) { + return jspb.Message.setProto3IntField(this, 5, value); }; - /** * optional int32 platinum_score = 6; * @return {number} */ -proto.mythos.ongeki.v0.PlaylogInfo.prototype.getPlatinumScore = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +proto.mythos.ongeki.v0.PlaylogInfo.prototype.getPlatinumScore = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); }; - /** * @param {number} value * @return {!proto.mythos.ongeki.v0.PlaylogInfo} returns this */ -proto.mythos.ongeki.v0.PlaylogInfo.prototype.setPlatinumScore = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); +proto.mythos.ongeki.v0.PlaylogInfo.prototype.setPlatinumScore = function (value) { + return jspb.Message.setProto3IntField(this, 6, value); }; - /** * optional OngekiTechScoreRank tech_score_rank = 7; * @return {!proto.mythos.ongeki.v0.OngekiTechScoreRank} */ -proto.mythos.ongeki.v0.PlaylogInfo.prototype.getTechScoreRank = function() { - return /** @type {!proto.mythos.ongeki.v0.OngekiTechScoreRank} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +proto.mythos.ongeki.v0.PlaylogInfo.prototype.getTechScoreRank = function () { + return /** @type {!proto.mythos.ongeki.v0.OngekiTechScoreRank} */ ( + jspb.Message.getFieldWithDefault(this, 7, 0) + ); }; - /** * @param {!proto.mythos.ongeki.v0.OngekiTechScoreRank} value * @return {!proto.mythos.ongeki.v0.PlaylogInfo} returns this */ -proto.mythos.ongeki.v0.PlaylogInfo.prototype.setTechScoreRank = function(value) { - return jspb.Message.setProto3EnumField(this, 7, value); +proto.mythos.ongeki.v0.PlaylogInfo.prototype.setTechScoreRank = function (value) { + return jspb.Message.setProto3EnumField(this, 7, value); }; - /** * optional OngekiBattleScoreRank battle_score_rank = 8; * @return {!proto.mythos.ongeki.v0.OngekiBattleScoreRank} */ -proto.mythos.ongeki.v0.PlaylogInfo.prototype.getBattleScoreRank = function() { - return /** @type {!proto.mythos.ongeki.v0.OngekiBattleScoreRank} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +proto.mythos.ongeki.v0.PlaylogInfo.prototype.getBattleScoreRank = function () { + return /** @type {!proto.mythos.ongeki.v0.OngekiBattleScoreRank} */ ( + jspb.Message.getFieldWithDefault(this, 8, 0) + ); }; - /** * @param {!proto.mythos.ongeki.v0.OngekiBattleScoreRank} value * @return {!proto.mythos.ongeki.v0.PlaylogInfo} returns this */ -proto.mythos.ongeki.v0.PlaylogInfo.prototype.setBattleScoreRank = function(value) { - return jspb.Message.setProto3EnumField(this, 8, value); +proto.mythos.ongeki.v0.PlaylogInfo.prototype.setBattleScoreRank = function (value) { + return jspb.Message.setProto3EnumField(this, 8, value); }; - /** * optional OngekiComboStatus combo_status = 9; * @return {!proto.mythos.ongeki.v0.OngekiComboStatus} */ -proto.mythos.ongeki.v0.PlaylogInfo.prototype.getComboStatus = function() { - return /** @type {!proto.mythos.ongeki.v0.OngekiComboStatus} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); +proto.mythos.ongeki.v0.PlaylogInfo.prototype.getComboStatus = function () { + return /** @type {!proto.mythos.ongeki.v0.OngekiComboStatus} */ ( + jspb.Message.getFieldWithDefault(this, 9, 0) + ); }; - /** * @param {!proto.mythos.ongeki.v0.OngekiComboStatus} value * @return {!proto.mythos.ongeki.v0.PlaylogInfo} returns this */ -proto.mythos.ongeki.v0.PlaylogInfo.prototype.setComboStatus = function(value) { - return jspb.Message.setProto3EnumField(this, 9, value); +proto.mythos.ongeki.v0.PlaylogInfo.prototype.setComboStatus = function (value) { + return jspb.Message.setProto3EnumField(this, 9, value); }; - /** * optional OngekiClearStatus clear_status = 10; * @return {!proto.mythos.ongeki.v0.OngekiClearStatus} */ -proto.mythos.ongeki.v0.PlaylogInfo.prototype.getClearStatus = function() { - return /** @type {!proto.mythos.ongeki.v0.OngekiClearStatus} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); +proto.mythos.ongeki.v0.PlaylogInfo.prototype.getClearStatus = function () { + return /** @type {!proto.mythos.ongeki.v0.OngekiClearStatus} */ ( + jspb.Message.getFieldWithDefault(this, 10, 0) + ); }; - /** * @param {!proto.mythos.ongeki.v0.OngekiClearStatus} value * @return {!proto.mythos.ongeki.v0.PlaylogInfo} returns this */ -proto.mythos.ongeki.v0.PlaylogInfo.prototype.setClearStatus = function(value) { - return jspb.Message.setProto3EnumField(this, 10, value); +proto.mythos.ongeki.v0.PlaylogInfo.prototype.setClearStatus = function (value) { + return jspb.Message.setProto3EnumField(this, 10, value); }; - /** * optional bool is_full_bell = 11; * @return {boolean} */ -proto.mythos.ongeki.v0.PlaylogInfo.prototype.getIsFullBell = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false)); +proto.mythos.ongeki.v0.PlaylogInfo.prototype.getIsFullBell = function () { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false)); }; - /** * @param {boolean} value * @return {!proto.mythos.ongeki.v0.PlaylogInfo} returns this */ -proto.mythos.ongeki.v0.PlaylogInfo.prototype.setIsFullBell = function(value) { - return jspb.Message.setProto3BooleanField(this, 11, value); +proto.mythos.ongeki.v0.PlaylogInfo.prototype.setIsFullBell = function (value) { + return jspb.Message.setProto3BooleanField(this, 11, value); }; - /** * optional bool is_tech_new_record = 12; * @return {boolean} */ -proto.mythos.ongeki.v0.PlaylogInfo.prototype.getIsTechNewRecord = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false)); +proto.mythos.ongeki.v0.PlaylogInfo.prototype.getIsTechNewRecord = function () { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false)); }; - /** * @param {boolean} value * @return {!proto.mythos.ongeki.v0.PlaylogInfo} returns this */ -proto.mythos.ongeki.v0.PlaylogInfo.prototype.setIsTechNewRecord = function(value) { - return jspb.Message.setProto3BooleanField(this, 12, value); +proto.mythos.ongeki.v0.PlaylogInfo.prototype.setIsTechNewRecord = function (value) { + return jspb.Message.setProto3BooleanField(this, 12, value); }; - /** * optional bool is_battle_new_record = 13; * @return {boolean} */ -proto.mythos.ongeki.v0.PlaylogInfo.prototype.getIsBattleNewRecord = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false)); +proto.mythos.ongeki.v0.PlaylogInfo.prototype.getIsBattleNewRecord = function () { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false)); }; - /** * @param {boolean} value * @return {!proto.mythos.ongeki.v0.PlaylogInfo} returns this */ -proto.mythos.ongeki.v0.PlaylogInfo.prototype.setIsBattleNewRecord = function(value) { - return jspb.Message.setProto3BooleanField(this, 13, value); +proto.mythos.ongeki.v0.PlaylogInfo.prototype.setIsBattleNewRecord = function (value) { + return jspb.Message.setProto3BooleanField(this, 13, value); }; - /** * optional bool is_over_damage_new_record = 14; * @return {boolean} */ -proto.mythos.ongeki.v0.PlaylogInfo.prototype.getIsOverDamageNewRecord = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 14, false)); +proto.mythos.ongeki.v0.PlaylogInfo.prototype.getIsOverDamageNewRecord = function () { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 14, false)); }; - /** * @param {boolean} value * @return {!proto.mythos.ongeki.v0.PlaylogInfo} returns this */ -proto.mythos.ongeki.v0.PlaylogInfo.prototype.setIsOverDamageNewRecord = function(value) { - return jspb.Message.setProto3BooleanField(this, 14, value); +proto.mythos.ongeki.v0.PlaylogInfo.prototype.setIsOverDamageNewRecord = function (value) { + return jspb.Message.setProto3BooleanField(this, 14, value); }; - /** * optional string user_play_date = 15; * @return {string} */ -proto.mythos.ongeki.v0.PlaylogInfo.prototype.getUserPlayDate = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); +proto.mythos.ongeki.v0.PlaylogInfo.prototype.getUserPlayDate = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); }; - /** * @param {string} value * @return {!proto.mythos.ongeki.v0.PlaylogInfo} returns this */ -proto.mythos.ongeki.v0.PlaylogInfo.prototype.setUserPlayDate = function(value) { - return jspb.Message.setProto3StringField(this, 15, value); +proto.mythos.ongeki.v0.PlaylogInfo.prototype.setUserPlayDate = function (value) { + return jspb.Message.setProto3StringField(this, 15, value); }; - - - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.mythos.ongeki.v0.PlaylogJudge.prototype.toObject = function(opt_includeInstance) { - return proto.mythos.ongeki.v0.PlaylogJudge.toObject(opt_includeInstance, this); -}; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.mythos.ongeki.v0.PlaylogJudge.prototype.toObject = function (opt_includeInstance) { + return proto.mythos.ongeki.v0.PlaylogJudge.toObject(opt_includeInstance, this); + }; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.mythos.ongeki.v0.PlaylogJudge} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.mythos.ongeki.v0.PlaylogJudge.toObject = function (includeInstance, msg) { + var f, + obj = { + judgeCriticalBreak: jspb.Message.getFieldWithDefault(msg, 17, 0), + judgeBreak: jspb.Message.getFieldWithDefault(msg, 18, 0), + judgeHit: jspb.Message.getFieldWithDefault(msg, 19, 0), + judgeMiss: jspb.Message.getFieldWithDefault(msg, 20, 0), + maxCombo: jspb.Message.getFieldWithDefault(msg, 21, 0), + bellCount: jspb.Message.getFieldWithDefault(msg, 22, 0), + totalBellCount: jspb.Message.getFieldWithDefault(msg, 23, 0), + damageCount: jspb.Message.getFieldWithDefault(msg, 24, 0), + }; -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.mythos.ongeki.v0.PlaylogJudge} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.mythos.ongeki.v0.PlaylogJudge.toObject = function(includeInstance, msg) { - var f, obj = { - judgeCriticalBreak: jspb.Message.getFieldWithDefault(msg, 17, 0), - judgeBreak: jspb.Message.getFieldWithDefault(msg, 18, 0), - judgeHit: jspb.Message.getFieldWithDefault(msg, 19, 0), - judgeMiss: jspb.Message.getFieldWithDefault(msg, 20, 0), - maxCombo: jspb.Message.getFieldWithDefault(msg, 21, 0), - bellCount: jspb.Message.getFieldWithDefault(msg, 22, 0), - totalBellCount: jspb.Message.getFieldWithDefault(msg, 23, 0), - damageCount: jspb.Message.getFieldWithDefault(msg, 24, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.mythos.ongeki.v0.PlaylogJudge} */ -proto.mythos.ongeki.v0.PlaylogJudge.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.mythos.ongeki.v0.PlaylogJudge; - return proto.mythos.ongeki.v0.PlaylogJudge.deserializeBinaryFromReader(msg, reader); +proto.mythos.ongeki.v0.PlaylogJudge.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.mythos.ongeki.v0.PlaylogJudge(); + return proto.mythos.ongeki.v0.PlaylogJudge.deserializeBinaryFromReader(msg, reader); }; - /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. @@ -796,65 +736,63 @@ proto.mythos.ongeki.v0.PlaylogJudge.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.mythos.ongeki.v0.PlaylogJudge} */ -proto.mythos.ongeki.v0.PlaylogJudge.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 17: - var value = /** @type {number} */ (reader.readInt32()); - msg.setJudgeCriticalBreak(value); - break; - case 18: - var value = /** @type {number} */ (reader.readInt32()); - msg.setJudgeBreak(value); - break; - case 19: - var value = /** @type {number} */ (reader.readInt32()); - msg.setJudgeHit(value); - break; - case 20: - var value = /** @type {number} */ (reader.readInt32()); - msg.setJudgeMiss(value); - break; - case 21: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMaxCombo(value); - break; - case 22: - var value = /** @type {number} */ (reader.readInt32()); - msg.setBellCount(value); - break; - case 23: - var value = /** @type {number} */ (reader.readInt32()); - msg.setTotalBellCount(value); - break; - case 24: - var value = /** @type {number} */ (reader.readInt32()); - msg.setDamageCount(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.mythos.ongeki.v0.PlaylogJudge.deserializeBinaryFromReader = function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 17: + var value = /** @type {number} */ (reader.readInt32()); + msg.setJudgeCriticalBreak(value); + break; + case 18: + var value = /** @type {number} */ (reader.readInt32()); + msg.setJudgeBreak(value); + break; + case 19: + var value = /** @type {number} */ (reader.readInt32()); + msg.setJudgeHit(value); + break; + case 20: + var value = /** @type {number} */ (reader.readInt32()); + msg.setJudgeMiss(value); + break; + case 21: + var value = /** @type {number} */ (reader.readInt32()); + msg.setMaxCombo(value); + break; + case 22: + var value = /** @type {number} */ (reader.readInt32()); + msg.setBellCount(value); + break; + case 23: + var value = /** @type {number} */ (reader.readInt32()); + msg.setTotalBellCount(value); + break; + case 24: + var value = /** @type {number} */ (reader.readInt32()); + msg.setDamageCount(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.mythos.ongeki.v0.PlaylogJudge.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.mythos.ongeki.v0.PlaylogJudge.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.mythos.ongeki.v0.PlaylogJudge.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.mythos.ongeki.v0.PlaylogJudge.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; - /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. @@ -862,270 +800,224 @@ proto.mythos.ongeki.v0.PlaylogJudge.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.mythos.ongeki.v0.PlaylogJudge.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getJudgeCriticalBreak(); - if (f !== 0) { - writer.writeInt32( - 17, - f - ); - } - f = message.getJudgeBreak(); - if (f !== 0) { - writer.writeInt32( - 18, - f - ); - } - f = message.getJudgeHit(); - if (f !== 0) { - writer.writeInt32( - 19, - f - ); - } - f = message.getJudgeMiss(); - if (f !== 0) { - writer.writeInt32( - 20, - f - ); - } - f = message.getMaxCombo(); - if (f !== 0) { - writer.writeInt32( - 21, - f - ); - } - f = message.getBellCount(); - if (f !== 0) { - writer.writeInt32( - 22, - f - ); - } - f = message.getTotalBellCount(); - if (f !== 0) { - writer.writeInt32( - 23, - f - ); - } - f = message.getDamageCount(); - if (f !== 0) { - writer.writeInt32( - 24, - f - ); - } +proto.mythos.ongeki.v0.PlaylogJudge.serializeBinaryToWriter = function (message, writer) { + var f = undefined; + f = message.getJudgeCriticalBreak(); + if (f !== 0) { + writer.writeInt32(17, f); + } + f = message.getJudgeBreak(); + if (f !== 0) { + writer.writeInt32(18, f); + } + f = message.getJudgeHit(); + if (f !== 0) { + writer.writeInt32(19, f); + } + f = message.getJudgeMiss(); + if (f !== 0) { + writer.writeInt32(20, f); + } + f = message.getMaxCombo(); + if (f !== 0) { + writer.writeInt32(21, f); + } + f = message.getBellCount(); + if (f !== 0) { + writer.writeInt32(22, f); + } + f = message.getTotalBellCount(); + if (f !== 0) { + writer.writeInt32(23, f); + } + f = message.getDamageCount(); + if (f !== 0) { + writer.writeInt32(24, f); + } }; - /** * optional int32 judge_critical_break = 17; * @return {number} */ -proto.mythos.ongeki.v0.PlaylogJudge.prototype.getJudgeCriticalBreak = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0)); +proto.mythos.ongeki.v0.PlaylogJudge.prototype.getJudgeCriticalBreak = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0)); }; - /** * @param {number} value * @return {!proto.mythos.ongeki.v0.PlaylogJudge} returns this */ -proto.mythos.ongeki.v0.PlaylogJudge.prototype.setJudgeCriticalBreak = function(value) { - return jspb.Message.setProto3IntField(this, 17, value); +proto.mythos.ongeki.v0.PlaylogJudge.prototype.setJudgeCriticalBreak = function (value) { + return jspb.Message.setProto3IntField(this, 17, value); }; - /** * optional int32 judge_break = 18; * @return {number} */ -proto.mythos.ongeki.v0.PlaylogJudge.prototype.getJudgeBreak = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0)); +proto.mythos.ongeki.v0.PlaylogJudge.prototype.getJudgeBreak = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0)); }; - /** * @param {number} value * @return {!proto.mythos.ongeki.v0.PlaylogJudge} returns this */ -proto.mythos.ongeki.v0.PlaylogJudge.prototype.setJudgeBreak = function(value) { - return jspb.Message.setProto3IntField(this, 18, value); +proto.mythos.ongeki.v0.PlaylogJudge.prototype.setJudgeBreak = function (value) { + return jspb.Message.setProto3IntField(this, 18, value); }; - /** * optional int32 judge_hit = 19; * @return {number} */ -proto.mythos.ongeki.v0.PlaylogJudge.prototype.getJudgeHit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0)); +proto.mythos.ongeki.v0.PlaylogJudge.prototype.getJudgeHit = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0)); }; - /** * @param {number} value * @return {!proto.mythos.ongeki.v0.PlaylogJudge} returns this */ -proto.mythos.ongeki.v0.PlaylogJudge.prototype.setJudgeHit = function(value) { - return jspb.Message.setProto3IntField(this, 19, value); +proto.mythos.ongeki.v0.PlaylogJudge.prototype.setJudgeHit = function (value) { + return jspb.Message.setProto3IntField(this, 19, value); }; - /** * optional int32 judge_miss = 20; * @return {number} */ -proto.mythos.ongeki.v0.PlaylogJudge.prototype.getJudgeMiss = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0)); +proto.mythos.ongeki.v0.PlaylogJudge.prototype.getJudgeMiss = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0)); }; - /** * @param {number} value * @return {!proto.mythos.ongeki.v0.PlaylogJudge} returns this */ -proto.mythos.ongeki.v0.PlaylogJudge.prototype.setJudgeMiss = function(value) { - return jspb.Message.setProto3IntField(this, 20, value); +proto.mythos.ongeki.v0.PlaylogJudge.prototype.setJudgeMiss = function (value) { + return jspb.Message.setProto3IntField(this, 20, value); }; - /** * optional int32 max_combo = 21; * @return {number} */ -proto.mythos.ongeki.v0.PlaylogJudge.prototype.getMaxCombo = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 21, 0)); +proto.mythos.ongeki.v0.PlaylogJudge.prototype.getMaxCombo = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 21, 0)); }; - /** * @param {number} value * @return {!proto.mythos.ongeki.v0.PlaylogJudge} returns this */ -proto.mythos.ongeki.v0.PlaylogJudge.prototype.setMaxCombo = function(value) { - return jspb.Message.setProto3IntField(this, 21, value); +proto.mythos.ongeki.v0.PlaylogJudge.prototype.setMaxCombo = function (value) { + return jspb.Message.setProto3IntField(this, 21, value); }; - /** * optional int32 bell_count = 22; * @return {number} */ -proto.mythos.ongeki.v0.PlaylogJudge.prototype.getBellCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 22, 0)); +proto.mythos.ongeki.v0.PlaylogJudge.prototype.getBellCount = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 22, 0)); }; - /** * @param {number} value * @return {!proto.mythos.ongeki.v0.PlaylogJudge} returns this */ -proto.mythos.ongeki.v0.PlaylogJudge.prototype.setBellCount = function(value) { - return jspb.Message.setProto3IntField(this, 22, value); +proto.mythos.ongeki.v0.PlaylogJudge.prototype.setBellCount = function (value) { + return jspb.Message.setProto3IntField(this, 22, value); }; - /** * optional int32 total_bell_count = 23; * @return {number} */ -proto.mythos.ongeki.v0.PlaylogJudge.prototype.getTotalBellCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 23, 0)); +proto.mythos.ongeki.v0.PlaylogJudge.prototype.getTotalBellCount = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 23, 0)); }; - /** * @param {number} value * @return {!proto.mythos.ongeki.v0.PlaylogJudge} returns this */ -proto.mythos.ongeki.v0.PlaylogJudge.prototype.setTotalBellCount = function(value) { - return jspb.Message.setProto3IntField(this, 23, value); +proto.mythos.ongeki.v0.PlaylogJudge.prototype.setTotalBellCount = function (value) { + return jspb.Message.setProto3IntField(this, 23, value); }; - /** * optional int32 damage_count = 24; * @return {number} */ -proto.mythos.ongeki.v0.PlaylogJudge.prototype.getDamageCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 24, 0)); +proto.mythos.ongeki.v0.PlaylogJudge.prototype.getDamageCount = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 24, 0)); }; - /** * @param {number} value * @return {!proto.mythos.ongeki.v0.PlaylogJudge} returns this */ -proto.mythos.ongeki.v0.PlaylogJudge.prototype.setDamageCount = function(value) { - return jspb.Message.setProto3IntField(this, 24, value); +proto.mythos.ongeki.v0.PlaylogJudge.prototype.setDamageCount = function (value) { + return jspb.Message.setProto3IntField(this, 24, value); }; - - - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.mythos.ongeki.v0.PlaylogJudgeRate.prototype.toObject = function(opt_includeInstance) { - return proto.mythos.ongeki.v0.PlaylogJudgeRate.toObject(opt_includeInstance, this); -}; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.mythos.ongeki.v0.PlaylogJudgeRate.prototype.toObject = function (opt_includeInstance) { + return proto.mythos.ongeki.v0.PlaylogJudgeRate.toObject(opt_includeInstance, this); + }; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.mythos.ongeki.v0.PlaylogJudgeRate} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.mythos.ongeki.v0.PlaylogJudgeRate.toObject = function (includeInstance, msg) { + var f, + obj = { + rateTap: jspb.Message.getFieldWithDefault(msg, 1, 0), + rateHold: jspb.Message.getFieldWithDefault(msg, 2, 0), + rateFlick: jspb.Message.getFieldWithDefault(msg, 3, 0), + rateSideTap: jspb.Message.getFieldWithDefault(msg, 4, 0), + rateSideHold: jspb.Message.getFieldWithDefault(msg, 5, 0), + }; -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.mythos.ongeki.v0.PlaylogJudgeRate} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.mythos.ongeki.v0.PlaylogJudgeRate.toObject = function(includeInstance, msg) { - var f, obj = { - rateTap: jspb.Message.getFieldWithDefault(msg, 1, 0), - rateHold: jspb.Message.getFieldWithDefault(msg, 2, 0), - rateFlick: jspb.Message.getFieldWithDefault(msg, 3, 0), - rateSideTap: jspb.Message.getFieldWithDefault(msg, 4, 0), - rateSideHold: jspb.Message.getFieldWithDefault(msg, 5, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.mythos.ongeki.v0.PlaylogJudgeRate} */ -proto.mythos.ongeki.v0.PlaylogJudgeRate.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.mythos.ongeki.v0.PlaylogJudgeRate; - return proto.mythos.ongeki.v0.PlaylogJudgeRate.deserializeBinaryFromReader(msg, reader); +proto.mythos.ongeki.v0.PlaylogJudgeRate.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.mythos.ongeki.v0.PlaylogJudgeRate(); + return proto.mythos.ongeki.v0.PlaylogJudgeRate.deserializeBinaryFromReader(msg, reader); }; - /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. @@ -1133,53 +1025,51 @@ proto.mythos.ongeki.v0.PlaylogJudgeRate.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.mythos.ongeki.v0.PlaylogJudgeRate} */ -proto.mythos.ongeki.v0.PlaylogJudgeRate.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setRateTap(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setRateHold(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt32()); - msg.setRateFlick(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt32()); - msg.setRateSideTap(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt32()); - msg.setRateSideHold(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.mythos.ongeki.v0.PlaylogJudgeRate.deserializeBinaryFromReader = function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setRateTap(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setRateHold(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setRateFlick(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt32()); + msg.setRateSideTap(value); + break; + case 5: + var value = /** @type {number} */ (reader.readInt32()); + msg.setRateSideHold(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.mythos.ongeki.v0.PlaylogJudgeRate.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.mythos.ongeki.v0.PlaylogJudgeRate.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.mythos.ongeki.v0.PlaylogJudgeRate.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.mythos.ongeki.v0.PlaylogJudgeRate.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; - /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. @@ -1187,192 +1077,161 @@ proto.mythos.ongeki.v0.PlaylogJudgeRate.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.mythos.ongeki.v0.PlaylogJudgeRate.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRateTap(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getRateHold(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } - f = message.getRateFlick(); - if (f !== 0) { - writer.writeInt32( - 3, - f - ); - } - f = message.getRateSideTap(); - if (f !== 0) { - writer.writeInt32( - 4, - f - ); - } - f = message.getRateSideHold(); - if (f !== 0) { - writer.writeInt32( - 5, - f - ); - } +proto.mythos.ongeki.v0.PlaylogJudgeRate.serializeBinaryToWriter = function (message, writer) { + var f = undefined; + f = message.getRateTap(); + if (f !== 0) { + writer.writeInt32(1, f); + } + f = message.getRateHold(); + if (f !== 0) { + writer.writeInt32(2, f); + } + f = message.getRateFlick(); + if (f !== 0) { + writer.writeInt32(3, f); + } + f = message.getRateSideTap(); + if (f !== 0) { + writer.writeInt32(4, f); + } + f = message.getRateSideHold(); + if (f !== 0) { + writer.writeInt32(5, f); + } }; - /** * optional int32 rate_tap = 1; * @return {number} */ -proto.mythos.ongeki.v0.PlaylogJudgeRate.prototype.getRateTap = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.mythos.ongeki.v0.PlaylogJudgeRate.prototype.getRateTap = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; - /** * @param {number} value * @return {!proto.mythos.ongeki.v0.PlaylogJudgeRate} returns this */ -proto.mythos.ongeki.v0.PlaylogJudgeRate.prototype.setRateTap = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.mythos.ongeki.v0.PlaylogJudgeRate.prototype.setRateTap = function (value) { + return jspb.Message.setProto3IntField(this, 1, value); }; - /** * optional int32 rate_hold = 2; * @return {number} */ -proto.mythos.ongeki.v0.PlaylogJudgeRate.prototype.getRateHold = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.mythos.ongeki.v0.PlaylogJudgeRate.prototype.getRateHold = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; - /** * @param {number} value * @return {!proto.mythos.ongeki.v0.PlaylogJudgeRate} returns this */ -proto.mythos.ongeki.v0.PlaylogJudgeRate.prototype.setRateHold = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); +proto.mythos.ongeki.v0.PlaylogJudgeRate.prototype.setRateHold = function (value) { + return jspb.Message.setProto3IntField(this, 2, value); }; - /** * optional int32 rate_flick = 3; * @return {number} */ -proto.mythos.ongeki.v0.PlaylogJudgeRate.prototype.getRateFlick = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.mythos.ongeki.v0.PlaylogJudgeRate.prototype.getRateFlick = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; - /** * @param {number} value * @return {!proto.mythos.ongeki.v0.PlaylogJudgeRate} returns this */ -proto.mythos.ongeki.v0.PlaylogJudgeRate.prototype.setRateFlick = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.mythos.ongeki.v0.PlaylogJudgeRate.prototype.setRateFlick = function (value) { + return jspb.Message.setProto3IntField(this, 3, value); }; - /** * optional int32 rate_side_tap = 4; * @return {number} */ -proto.mythos.ongeki.v0.PlaylogJudgeRate.prototype.getRateSideTap = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +proto.mythos.ongeki.v0.PlaylogJudgeRate.prototype.getRateSideTap = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; - /** * @param {number} value * @return {!proto.mythos.ongeki.v0.PlaylogJudgeRate} returns this */ -proto.mythos.ongeki.v0.PlaylogJudgeRate.prototype.setRateSideTap = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); +proto.mythos.ongeki.v0.PlaylogJudgeRate.prototype.setRateSideTap = function (value) { + return jspb.Message.setProto3IntField(this, 4, value); }; - /** * optional int32 rate_side_hold = 5; * @return {number} */ -proto.mythos.ongeki.v0.PlaylogJudgeRate.prototype.getRateSideHold = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +proto.mythos.ongeki.v0.PlaylogJudgeRate.prototype.getRateSideHold = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; - /** * @param {number} value * @return {!proto.mythos.ongeki.v0.PlaylogJudgeRate} returns this */ -proto.mythos.ongeki.v0.PlaylogJudgeRate.prototype.setRateSideHold = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); +proto.mythos.ongeki.v0.PlaylogJudgeRate.prototype.setRateSideHold = function (value) { + return jspb.Message.setProto3IntField(this, 5, value); }; - - - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.mythos.ongeki.v0.PlaylogMatchingUser.prototype.toObject = function(opt_includeInstance) { - return proto.mythos.ongeki.v0.PlaylogMatchingUser.toObject(opt_includeInstance, this); -}; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.mythos.ongeki.v0.PlaylogMatchingUser.prototype.toObject = function (opt_includeInstance) { + return proto.mythos.ongeki.v0.PlaylogMatchingUser.toObject(opt_includeInstance, this); + }; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.mythos.ongeki.v0.PlaylogMatchingUser} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.mythos.ongeki.v0.PlaylogMatchingUser.toObject = function (includeInstance, msg) { + var f, + obj = { + userName: jspb.Message.getFieldWithDefault(msg, 1, ""), + musicLevel: jspb.Message.getFieldWithDefault(msg, 2, 0), + }; -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.mythos.ongeki.v0.PlaylogMatchingUser} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.mythos.ongeki.v0.PlaylogMatchingUser.toObject = function(includeInstance, msg) { - var f, obj = { - userName: jspb.Message.getFieldWithDefault(msg, 1, ""), - musicLevel: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.mythos.ongeki.v0.PlaylogMatchingUser} */ -proto.mythos.ongeki.v0.PlaylogMatchingUser.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.mythos.ongeki.v0.PlaylogMatchingUser; - return proto.mythos.ongeki.v0.PlaylogMatchingUser.deserializeBinaryFromReader(msg, reader); +proto.mythos.ongeki.v0.PlaylogMatchingUser.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.mythos.ongeki.v0.PlaylogMatchingUser(); + return proto.mythos.ongeki.v0.PlaylogMatchingUser.deserializeBinaryFromReader(msg, reader); }; - /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. @@ -1380,41 +1239,39 @@ proto.mythos.ongeki.v0.PlaylogMatchingUser.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.mythos.ongeki.v0.PlaylogMatchingUser} */ -proto.mythos.ongeki.v0.PlaylogMatchingUser.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUserName(value); - break; - case 2: - var value = /** @type {!proto.mythos.ongeki.v0.OngekiLevel} */ (reader.readEnum()); - msg.setMusicLevel(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.mythos.ongeki.v0.PlaylogMatchingUser.deserializeBinaryFromReader = function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setUserName(value); + break; + case 2: + var value = /** @type {!proto.mythos.ongeki.v0.OngekiLevel} */ (reader.readEnum()); + msg.setMusicLevel(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.mythos.ongeki.v0.PlaylogMatchingUser.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.mythos.ongeki.v0.PlaylogMatchingUser.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.mythos.ongeki.v0.PlaylogMatchingUser.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.mythos.ongeki.v0.PlaylogMatchingUser.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; - /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. @@ -1422,118 +1279,104 @@ proto.mythos.ongeki.v0.PlaylogMatchingUser.prototype.serializeBinary = function( * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.mythos.ongeki.v0.PlaylogMatchingUser.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMusicLevel(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } +proto.mythos.ongeki.v0.PlaylogMatchingUser.serializeBinaryToWriter = function (message, writer) { + var f = undefined; + f = message.getUserName(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = message.getMusicLevel(); + if (f !== 0.0) { + writer.writeEnum(2, f); + } }; - /** * optional string user_name = 1; * @return {string} */ -proto.mythos.ongeki.v0.PlaylogMatchingUser.prototype.getUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.mythos.ongeki.v0.PlaylogMatchingUser.prototype.getUserName = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; - /** * @param {string} value * @return {!proto.mythos.ongeki.v0.PlaylogMatchingUser} returns this */ -proto.mythos.ongeki.v0.PlaylogMatchingUser.prototype.setUserName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.mythos.ongeki.v0.PlaylogMatchingUser.prototype.setUserName = function (value) { + return jspb.Message.setProto3StringField(this, 1, value); }; - /** * optional OngekiLevel music_level = 2; * @return {!proto.mythos.ongeki.v0.OngekiLevel} */ -proto.mythos.ongeki.v0.PlaylogMatchingUser.prototype.getMusicLevel = function() { - return /** @type {!proto.mythos.ongeki.v0.OngekiLevel} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.mythos.ongeki.v0.PlaylogMatchingUser.prototype.getMusicLevel = function () { + return /** @type {!proto.mythos.ongeki.v0.OngekiLevel} */ ( + jspb.Message.getFieldWithDefault(this, 2, 0) + ); }; - /** * @param {!proto.mythos.ongeki.v0.OngekiLevel} value * @return {!proto.mythos.ongeki.v0.PlaylogMatchingUser} returns this */ -proto.mythos.ongeki.v0.PlaylogMatchingUser.prototype.setMusicLevel = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); +proto.mythos.ongeki.v0.PlaylogMatchingUser.prototype.setMusicLevel = function (value) { + return jspb.Message.setProto3EnumField(this, 2, value); }; - - - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.mythos.ongeki.v0.PlaylogCard.prototype.toObject = function(opt_includeInstance) { - return proto.mythos.ongeki.v0.PlaylogCard.toObject(opt_includeInstance, this); -}; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.mythos.ongeki.v0.PlaylogCard.prototype.toObject = function (opt_includeInstance) { + return proto.mythos.ongeki.v0.PlaylogCard.toObject(opt_includeInstance, this); + }; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.mythos.ongeki.v0.PlaylogCard} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.mythos.ongeki.v0.PlaylogCard.toObject = function (includeInstance, msg) { + var f, + obj = { + cardId: jspb.Message.getFieldWithDefault(msg, 1, 0), + cardLevel: jspb.Message.getFieldWithDefault(msg, 2, 0), + cardAttack: jspb.Message.getFieldWithDefault(msg, 3, 0), + }; -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.mythos.ongeki.v0.PlaylogCard} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.mythos.ongeki.v0.PlaylogCard.toObject = function(includeInstance, msg) { - var f, obj = { - cardId: jspb.Message.getFieldWithDefault(msg, 1, 0), - cardLevel: jspb.Message.getFieldWithDefault(msg, 2, 0), - cardAttack: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.mythos.ongeki.v0.PlaylogCard} */ -proto.mythos.ongeki.v0.PlaylogCard.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.mythos.ongeki.v0.PlaylogCard; - return proto.mythos.ongeki.v0.PlaylogCard.deserializeBinaryFromReader(msg, reader); +proto.mythos.ongeki.v0.PlaylogCard.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.mythos.ongeki.v0.PlaylogCard(); + return proto.mythos.ongeki.v0.PlaylogCard.deserializeBinaryFromReader(msg, reader); }; - /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. @@ -1541,45 +1384,43 @@ proto.mythos.ongeki.v0.PlaylogCard.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.mythos.ongeki.v0.PlaylogCard} */ -proto.mythos.ongeki.v0.PlaylogCard.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCardId(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCardLevel(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCardAttack(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.mythos.ongeki.v0.PlaylogCard.deserializeBinaryFromReader = function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setCardId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setCardLevel(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setCardAttack(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.mythos.ongeki.v0.PlaylogCard.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.mythos.ongeki.v0.PlaylogCard.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.mythos.ongeki.v0.PlaylogCard.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.mythos.ongeki.v0.PlaylogCard.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; - /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. @@ -1587,143 +1428,122 @@ proto.mythos.ongeki.v0.PlaylogCard.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.mythos.ongeki.v0.PlaylogCard.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCardId(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getCardLevel(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } - f = message.getCardAttack(); - if (f !== 0) { - writer.writeInt32( - 3, - f - ); - } +proto.mythos.ongeki.v0.PlaylogCard.serializeBinaryToWriter = function (message, writer) { + var f = undefined; + f = message.getCardId(); + if (f !== 0) { + writer.writeInt32(1, f); + } + f = message.getCardLevel(); + if (f !== 0) { + writer.writeInt32(2, f); + } + f = message.getCardAttack(); + if (f !== 0) { + writer.writeInt32(3, f); + } }; - /** * optional int32 card_id = 1; * @return {number} */ -proto.mythos.ongeki.v0.PlaylogCard.prototype.getCardId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.mythos.ongeki.v0.PlaylogCard.prototype.getCardId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; - /** * @param {number} value * @return {!proto.mythos.ongeki.v0.PlaylogCard} returns this */ -proto.mythos.ongeki.v0.PlaylogCard.prototype.setCardId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.mythos.ongeki.v0.PlaylogCard.prototype.setCardId = function (value) { + return jspb.Message.setProto3IntField(this, 1, value); }; - /** * optional int32 card_level = 2; * @return {number} */ -proto.mythos.ongeki.v0.PlaylogCard.prototype.getCardLevel = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.mythos.ongeki.v0.PlaylogCard.prototype.getCardLevel = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; - /** * @param {number} value * @return {!proto.mythos.ongeki.v0.PlaylogCard} returns this */ -proto.mythos.ongeki.v0.PlaylogCard.prototype.setCardLevel = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); +proto.mythos.ongeki.v0.PlaylogCard.prototype.setCardLevel = function (value) { + return jspb.Message.setProto3IntField(this, 2, value); }; - /** * optional int32 card_attack = 3; * @return {number} */ -proto.mythos.ongeki.v0.PlaylogCard.prototype.getCardAttack = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.mythos.ongeki.v0.PlaylogCard.prototype.getCardAttack = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; - /** * @param {number} value * @return {!proto.mythos.ongeki.v0.PlaylogCard} returns this */ -proto.mythos.ongeki.v0.PlaylogCard.prototype.setCardAttack = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.mythos.ongeki.v0.PlaylogCard.prototype.setCardAttack = function (value) { + return jspb.Message.setProto3IntField(this, 3, value); }; - - - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.mythos.ongeki.v0.PlaylogBoss.prototype.toObject = function(opt_includeInstance) { - return proto.mythos.ongeki.v0.PlaylogBoss.toObject(opt_includeInstance, this); -}; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.mythos.ongeki.v0.PlaylogBoss.prototype.toObject = function (opt_includeInstance) { + return proto.mythos.ongeki.v0.PlaylogBoss.toObject(opt_includeInstance, this); + }; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.mythos.ongeki.v0.PlaylogBoss} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.mythos.ongeki.v0.PlaylogBoss.toObject = function (includeInstance, msg) { + var f, + obj = { + bossId: jspb.Message.getFieldWithDefault(msg, 1, 0), + bossLevel: jspb.Message.getFieldWithDefault(msg, 2, 0), + bossAttribute: jspb.Message.getFieldWithDefault(msg, 3, 0), + }; -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.mythos.ongeki.v0.PlaylogBoss} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.mythos.ongeki.v0.PlaylogBoss.toObject = function(includeInstance, msg) { - var f, obj = { - bossId: jspb.Message.getFieldWithDefault(msg, 1, 0), - bossLevel: jspb.Message.getFieldWithDefault(msg, 2, 0), - bossAttribute: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.mythos.ongeki.v0.PlaylogBoss} */ -proto.mythos.ongeki.v0.PlaylogBoss.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.mythos.ongeki.v0.PlaylogBoss; - return proto.mythos.ongeki.v0.PlaylogBoss.deserializeBinaryFromReader(msg, reader); +proto.mythos.ongeki.v0.PlaylogBoss.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.mythos.ongeki.v0.PlaylogBoss(); + return proto.mythos.ongeki.v0.PlaylogBoss.deserializeBinaryFromReader(msg, reader); }; - /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. @@ -1731,45 +1551,45 @@ proto.mythos.ongeki.v0.PlaylogBoss.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.mythos.ongeki.v0.PlaylogBoss} */ -proto.mythos.ongeki.v0.PlaylogBoss.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setBossId(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setBossLevel(value); - break; - case 3: - var value = /** @type {!proto.mythos.ongeki.v0.OngekiBossAttribute} */ (reader.readEnum()); - msg.setBossAttribute(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.mythos.ongeki.v0.PlaylogBoss.deserializeBinaryFromReader = function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setBossId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setBossLevel(value); + break; + case 3: + var value = /** @type {!proto.mythos.ongeki.v0.OngekiBossAttribute} */ ( + reader.readEnum() + ); + msg.setBossAttribute(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.mythos.ongeki.v0.PlaylogBoss.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.mythos.ongeki.v0.PlaylogBoss.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.mythos.ongeki.v0.PlaylogBoss.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.mythos.ongeki.v0.PlaylogBoss.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; - /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. @@ -1777,143 +1597,124 @@ proto.mythos.ongeki.v0.PlaylogBoss.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.mythos.ongeki.v0.PlaylogBoss.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBossId(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getBossLevel(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } - f = message.getBossAttribute(); - if (f !== 0.0) { - writer.writeEnum( - 3, - f - ); - } +proto.mythos.ongeki.v0.PlaylogBoss.serializeBinaryToWriter = function (message, writer) { + var f = undefined; + f = message.getBossId(); + if (f !== 0) { + writer.writeInt32(1, f); + } + f = message.getBossLevel(); + if (f !== 0) { + writer.writeInt32(2, f); + } + f = message.getBossAttribute(); + if (f !== 0.0) { + writer.writeEnum(3, f); + } }; - /** * optional int32 boss_id = 1; * @return {number} */ -proto.mythos.ongeki.v0.PlaylogBoss.prototype.getBossId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.mythos.ongeki.v0.PlaylogBoss.prototype.getBossId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; - /** * @param {number} value * @return {!proto.mythos.ongeki.v0.PlaylogBoss} returns this */ -proto.mythos.ongeki.v0.PlaylogBoss.prototype.setBossId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.mythos.ongeki.v0.PlaylogBoss.prototype.setBossId = function (value) { + return jspb.Message.setProto3IntField(this, 1, value); }; - /** * optional int32 boss_level = 2; * @return {number} */ -proto.mythos.ongeki.v0.PlaylogBoss.prototype.getBossLevel = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.mythos.ongeki.v0.PlaylogBoss.prototype.getBossLevel = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; - /** * @param {number} value * @return {!proto.mythos.ongeki.v0.PlaylogBoss} returns this */ -proto.mythos.ongeki.v0.PlaylogBoss.prototype.setBossLevel = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); +proto.mythos.ongeki.v0.PlaylogBoss.prototype.setBossLevel = function (value) { + return jspb.Message.setProto3IntField(this, 2, value); }; - /** * optional OngekiBossAttribute boss_attribute = 3; * @return {!proto.mythos.ongeki.v0.OngekiBossAttribute} */ -proto.mythos.ongeki.v0.PlaylogBoss.prototype.getBossAttribute = function() { - return /** @type {!proto.mythos.ongeki.v0.OngekiBossAttribute} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.mythos.ongeki.v0.PlaylogBoss.prototype.getBossAttribute = function () { + return /** @type {!proto.mythos.ongeki.v0.OngekiBossAttribute} */ ( + jspb.Message.getFieldWithDefault(this, 3, 0) + ); }; - /** * @param {!proto.mythos.ongeki.v0.OngekiBossAttribute} value * @return {!proto.mythos.ongeki.v0.PlaylogBoss} returns this */ -proto.mythos.ongeki.v0.PlaylogBoss.prototype.setBossAttribute = function(value) { - return jspb.Message.setProto3EnumField(this, 3, value); +proto.mythos.ongeki.v0.PlaylogBoss.prototype.setBossAttribute = function (value) { + return jspb.Message.setProto3EnumField(this, 3, value); }; - - - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.mythos.ongeki.v0.PlaylogEvent.prototype.toObject = function(opt_includeInstance) { - return proto.mythos.ongeki.v0.PlaylogEvent.toObject(opt_includeInstance, this); -}; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.mythos.ongeki.v0.PlaylogEvent.prototype.toObject = function (opt_includeInstance) { + return proto.mythos.ongeki.v0.PlaylogEvent.toObject(opt_includeInstance, this); + }; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.mythos.ongeki.v0.PlaylogEvent} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.mythos.ongeki.v0.PlaylogEvent.toObject = function (includeInstance, msg) { + var f, + obj = { + eventId: jspb.Message.getFieldWithDefault(msg, 1, 0), + eventName: jspb.Message.getFieldWithDefault(msg, 2, ""), + eventPoint: jspb.Message.getFieldWithDefault(msg, 3, 0), + }; -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.mythos.ongeki.v0.PlaylogEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.mythos.ongeki.v0.PlaylogEvent.toObject = function(includeInstance, msg) { - var f, obj = { - eventId: jspb.Message.getFieldWithDefault(msg, 1, 0), - eventName: jspb.Message.getFieldWithDefault(msg, 2, ""), - eventPoint: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.mythos.ongeki.v0.PlaylogEvent} */ -proto.mythos.ongeki.v0.PlaylogEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.mythos.ongeki.v0.PlaylogEvent; - return proto.mythos.ongeki.v0.PlaylogEvent.deserializeBinaryFromReader(msg, reader); +proto.mythos.ongeki.v0.PlaylogEvent.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.mythos.ongeki.v0.PlaylogEvent(); + return proto.mythos.ongeki.v0.PlaylogEvent.deserializeBinaryFromReader(msg, reader); }; - /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. @@ -1921,45 +1722,43 @@ proto.mythos.ongeki.v0.PlaylogEvent.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.mythos.ongeki.v0.PlaylogEvent} */ -proto.mythos.ongeki.v0.PlaylogEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setEventId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setEventName(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt32()); - msg.setEventPoint(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.mythos.ongeki.v0.PlaylogEvent.deserializeBinaryFromReader = function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setEventId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setEventName(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setEventPoint(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.mythos.ongeki.v0.PlaylogEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.mythos.ongeki.v0.PlaylogEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.mythos.ongeki.v0.PlaylogEvent.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.mythos.ongeki.v0.PlaylogEvent.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; - /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. @@ -1967,84 +1766,68 @@ proto.mythos.ongeki.v0.PlaylogEvent.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.mythos.ongeki.v0.PlaylogEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEventId(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getEventName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getEventPoint(); - if (f !== 0) { - writer.writeInt32( - 3, - f - ); - } +proto.mythos.ongeki.v0.PlaylogEvent.serializeBinaryToWriter = function (message, writer) { + var f = undefined; + f = message.getEventId(); + if (f !== 0) { + writer.writeInt32(1, f); + } + f = message.getEventName(); + if (f.length > 0) { + writer.writeString(2, f); + } + f = message.getEventPoint(); + if (f !== 0) { + writer.writeInt32(3, f); + } }; - /** * optional int32 event_id = 1; * @return {number} */ -proto.mythos.ongeki.v0.PlaylogEvent.prototype.getEventId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.mythos.ongeki.v0.PlaylogEvent.prototype.getEventId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; - /** * @param {number} value * @return {!proto.mythos.ongeki.v0.PlaylogEvent} returns this */ -proto.mythos.ongeki.v0.PlaylogEvent.prototype.setEventId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.mythos.ongeki.v0.PlaylogEvent.prototype.setEventId = function (value) { + return jspb.Message.setProto3IntField(this, 1, value); }; - /** * optional string event_name = 2; * @return {string} */ -proto.mythos.ongeki.v0.PlaylogEvent.prototype.getEventName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.mythos.ongeki.v0.PlaylogEvent.prototype.getEventName = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; - /** * @param {string} value * @return {!proto.mythos.ongeki.v0.PlaylogEvent} returns this */ -proto.mythos.ongeki.v0.PlaylogEvent.prototype.setEventName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.mythos.ongeki.v0.PlaylogEvent.prototype.setEventName = function (value) { + return jspb.Message.setProto3StringField(this, 2, value); }; - /** * optional int32 event_point = 3; * @return {number} */ -proto.mythos.ongeki.v0.PlaylogEvent.prototype.getEventPoint = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.mythos.ongeki.v0.PlaylogEvent.prototype.getEventPoint = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; - /** * @param {number} value * @return {!proto.mythos.ongeki.v0.PlaylogEvent} returns this */ -proto.mythos.ongeki.v0.PlaylogEvent.prototype.setEventPoint = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.mythos.ongeki.v0.PlaylogEvent.prototype.setEventPoint = function (value) { + return jspb.Message.setProto3IntField(this, 3, value); }; - goog.object.extend(exports, proto.mythos.ongeki.v0); diff --git a/typescript/server/src/proto/generated/ongeki/user_grpc_pb.d.ts b/typescript/server/src/proto/generated/ongeki/user_grpc_pb.d.ts index a1ebe2bee..96fae2fce 100644 --- a/typescript/server/src/proto/generated/ongeki/user_grpc_pb.d.ts +++ b/typescript/server/src/proto/generated/ongeki/user_grpc_pb.d.ts @@ -7,17 +7,30 @@ import * as ongeki_user_pb from "../ongeki/user_pb"; import * as grpc from "@grpc/grpc-js"; interface IOngekiUserService extends grpc.ServiceDefinition { - getPlaylog: grpc.MethodDefinition; + getPlaylog: grpc.MethodDefinition< + ongeki_user_pb.GetPlaylogRequest, + ongeki_user_pb.GetPlaylogStreamItem + >; } export const OngekiUserService: IOngekiUserService; export interface IOngekiUserServer extends grpc.UntypedServiceImplementation { - getPlaylog: grpc.handleServerStreamingCall; + getPlaylog: grpc.handleServerStreamingCall< + ongeki_user_pb.GetPlaylogRequest, + ongeki_user_pb.GetPlaylogStreamItem + >; } export class OngekiUserClient extends grpc.Client { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - getPlaylog(argument: ongeki_user_pb.GetPlaylogRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream; - getPlaylog(argument: ongeki_user_pb.GetPlaylogRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream; + constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); + getPlaylog( + argument: ongeki_user_pb.GetPlaylogRequest, + metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null, + ): grpc.ClientReadableStream; + getPlaylog( + argument: ongeki_user_pb.GetPlaylogRequest, + metadata?: grpc.Metadata | null, + options?: grpc.CallOptions | null, + ): grpc.ClientReadableStream; } diff --git a/typescript/server/src/proto/generated/ongeki/user_grpc_pb.js b/typescript/server/src/proto/generated/ongeki/user_grpc_pb.js index 2cc23aadd..5bef421af 100644 --- a/typescript/server/src/proto/generated/ongeki/user_grpc_pb.js +++ b/typescript/server/src/proto/generated/ongeki/user_grpc_pb.js @@ -1,45 +1,44 @@ // GENERATED CODE -- DO NOT EDIT! -'use strict'; -var grpc = require('@grpc/grpc-js'); -var ongeki_user_pb = require('../ongeki/user_pb.js'); -var ongeki_playlog_pb = require('../ongeki/playlog_pb.js'); +"use strict"; +var grpc = require("@grpc/grpc-js"); +var ongeki_user_pb = require("../ongeki/user_pb.js"); +var ongeki_playlog_pb = require("../ongeki/playlog_pb.js"); function serialize_mythos_ongeki_v0_GetPlaylogRequest(arg) { - if (!(arg instanceof ongeki_user_pb.GetPlaylogRequest)) { - throw new Error('Expected argument of type mythos.ongeki.v0.GetPlaylogRequest'); - } - return Buffer.from(arg.serializeBinary()); + if (!(arg instanceof ongeki_user_pb.GetPlaylogRequest)) { + throw new Error("Expected argument of type mythos.ongeki.v0.GetPlaylogRequest"); + } + return Buffer.from(arg.serializeBinary()); } function deserialize_mythos_ongeki_v0_GetPlaylogRequest(buffer_arg) { - return ongeki_user_pb.GetPlaylogRequest.deserializeBinary(new Uint8Array(buffer_arg)); + return ongeki_user_pb.GetPlaylogRequest.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_mythos_ongeki_v0_GetPlaylogStreamItem(arg) { - if (!(arg instanceof ongeki_user_pb.GetPlaylogStreamItem)) { - throw new Error('Expected argument of type mythos.ongeki.v0.GetPlaylogStreamItem'); - } - return Buffer.from(arg.serializeBinary()); + if (!(arg instanceof ongeki_user_pb.GetPlaylogStreamItem)) { + throw new Error("Expected argument of type mythos.ongeki.v0.GetPlaylogStreamItem"); + } + return Buffer.from(arg.serializeBinary()); } function deserialize_mythos_ongeki_v0_GetPlaylogStreamItem(buffer_arg) { - return ongeki_user_pb.GetPlaylogStreamItem.deserializeBinary(new Uint8Array(buffer_arg)); + return ongeki_user_pb.GetPlaylogStreamItem.deserializeBinary(new Uint8Array(buffer_arg)); } +var OngekiUserService = (exports.OngekiUserService = { + getPlaylog: { + path: "/mythos.ongeki.v0.OngekiUser/GetPlaylog", + requestStream: false, + responseStream: true, + requestType: ongeki_user_pb.GetPlaylogRequest, + responseType: ongeki_user_pb.GetPlaylogStreamItem, + requestSerialize: serialize_mythos_ongeki_v0_GetPlaylogRequest, + requestDeserialize: deserialize_mythos_ongeki_v0_GetPlaylogRequest, + responseSerialize: serialize_mythos_ongeki_v0_GetPlaylogStreamItem, + responseDeserialize: deserialize_mythos_ongeki_v0_GetPlaylogStreamItem, + }, +}); -var OngekiUserService = exports.OngekiUserService = { - getPlaylog: { - path: '/mythos.ongeki.v0.OngekiUser/GetPlaylog', - requestStream: false, - responseStream: true, - requestType: ongeki_user_pb.GetPlaylogRequest, - responseType: ongeki_user_pb.GetPlaylogStreamItem, - requestSerialize: serialize_mythos_ongeki_v0_GetPlaylogRequest, - requestDeserialize: deserialize_mythos_ongeki_v0_GetPlaylogRequest, - responseSerialize: serialize_mythos_ongeki_v0_GetPlaylogStreamItem, - responseDeserialize: deserialize_mythos_ongeki_v0_GetPlaylogStreamItem, - }, -}; - -exports.OngekiUserClient = grpc.makeGenericClientConstructor(OngekiUserService, 'OngekiUser'); +exports.OngekiUserClient = grpc.makeGenericClientConstructor(OngekiUserService, "OngekiUser"); diff --git a/typescript/server/src/proto/generated/ongeki/user_pb.d.ts b/typescript/server/src/proto/generated/ongeki/user_pb.d.ts index 4008d60b8..a3974f774 100644 --- a/typescript/server/src/proto/generated/ongeki/user_pb.d.ts +++ b/typescript/server/src/proto/generated/ongeki/user_pb.d.ts @@ -5,66 +5,74 @@ import * as jspb from "google-protobuf"; import * as ongeki_playlog_pb from "../ongeki/playlog_pb"; export class GetPlaylogRequest extends jspb.Message { - getProfileApiId(): string; - setProfileApiId(value: string): void; + getProfileApiId(): string; + setProfileApiId(value: string): void; - hasLastUserPlayDate(): boolean; - clearLastUserPlayDate(): void; - getLastUserPlayDate(): string; - setLastUserPlayDate(value: string): void; + hasLastUserPlayDate(): boolean; + clearLastUserPlayDate(): void; + getLastUserPlayDate(): string; + setLastUserPlayDate(value: string): void; - hasLimit(): boolean; - clearLimit(): void; - getLimit(): number; - setLimit(value: number): void; + hasLimit(): boolean; + clearLimit(): void; + getLimit(): number; + setLimit(value: number): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetPlaylogRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetPlaylogRequest): GetPlaylogRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetPlaylogRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetPlaylogRequest; - static deserializeBinaryFromReader(message: GetPlaylogRequest, reader: jspb.BinaryReader): GetPlaylogRequest; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetPlaylogRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetPlaylogRequest): GetPlaylogRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo }; + static serializeBinaryToWriter(message: GetPlaylogRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetPlaylogRequest; + static deserializeBinaryFromReader( + message: GetPlaylogRequest, + reader: jspb.BinaryReader, + ): GetPlaylogRequest; } export namespace GetPlaylogRequest { - export type AsObject = { - profileApiId: string, - lastUserPlayDate: string, - limit: number, - } + export type AsObject = { + profileApiId: string; + lastUserPlayDate: string; + limit: number; + }; } export class GetPlaylogStreamItem extends jspb.Message { - getPlaylogApiId(): string; - setPlaylogApiId(value: string): void; + getPlaylogApiId(): string; + setPlaylogApiId(value: string): void; - hasInfo(): boolean; - clearInfo(): void; - getInfo(): ongeki_playlog_pb.PlaylogInfo | undefined; - setInfo(value?: ongeki_playlog_pb.PlaylogInfo): void; + hasInfo(): boolean; + clearInfo(): void; + getInfo(): ongeki_playlog_pb.PlaylogInfo | undefined; + setInfo(value?: ongeki_playlog_pb.PlaylogInfo): void; - hasJudge(): boolean; - clearJudge(): void; - getJudge(): ongeki_playlog_pb.PlaylogJudge | undefined; - setJudge(value?: ongeki_playlog_pb.PlaylogJudge): void; + hasJudge(): boolean; + clearJudge(): void; + getJudge(): ongeki_playlog_pb.PlaylogJudge | undefined; + setJudge(value?: ongeki_playlog_pb.PlaylogJudge): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetPlaylogStreamItem.AsObject; - static toObject(includeInstance: boolean, msg: GetPlaylogStreamItem): GetPlaylogStreamItem.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetPlaylogStreamItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetPlaylogStreamItem; - static deserializeBinaryFromReader(message: GetPlaylogStreamItem, reader: jspb.BinaryReader): GetPlaylogStreamItem; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetPlaylogStreamItem.AsObject; + static toObject( + includeInstance: boolean, + msg: GetPlaylogStreamItem, + ): GetPlaylogStreamItem.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo }; + static serializeBinaryToWriter(message: GetPlaylogStreamItem, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetPlaylogStreamItem; + static deserializeBinaryFromReader( + message: GetPlaylogStreamItem, + reader: jspb.BinaryReader, + ): GetPlaylogStreamItem; } export namespace GetPlaylogStreamItem { - export type AsObject = { - playlogApiId: string, - info?: ongeki_playlog_pb.PlaylogInfo.AsObject, - judge?: ongeki_playlog_pb.PlaylogJudge.AsObject, - } + export type AsObject = { + playlogApiId: string; + info?: ongeki_playlog_pb.PlaylogInfo.AsObject; + judge?: ongeki_playlog_pb.PlaylogJudge.AsObject; + }; } - diff --git a/typescript/server/src/proto/generated/ongeki/user_pb.js b/typescript/server/src/proto/generated/ongeki/user_pb.js index e121e4966..9d6ecee01 100644 --- a/typescript/server/src/proto/generated/ongeki/user_pb.js +++ b/typescript/server/src/proto/generated/ongeki/user_pb.js @@ -11,20 +11,28 @@ /* eslint-disable */ // @ts-nocheck -var jspb = require('google-protobuf'); +var jspb = require("google-protobuf"); var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); +var global = function () { + if (this) { + return this; + } + if (typeof window !== "undefined") { + return window; + } + if (typeof global !== "undefined") { + return global; + } + if (typeof self !== "undefined") { + return self; + } + return Function("return this")(); +}.call(null); -var ongeki_playlog_pb = require('../ongeki/playlog_pb.js'); +var ongeki_playlog_pb = require("../ongeki/playlog_pb.js"); goog.object.extend(proto, ongeki_playlog_pb); -goog.exportSymbol('proto.mythos.ongeki.v0.GetPlaylogRequest', null, global); -goog.exportSymbol('proto.mythos.ongeki.v0.GetPlaylogStreamItem', null, global); +goog.exportSymbol("proto.mythos.ongeki.v0.GetPlaylogRequest", null, global); +goog.exportSymbol("proto.mythos.ongeki.v0.GetPlaylogStreamItem", null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -35,16 +43,17 @@ goog.exportSymbol('proto.mythos.ongeki.v0.GetPlaylogStreamItem', null, global); * @extends {jspb.Message} * @constructor */ -proto.mythos.ongeki.v0.GetPlaylogRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.mythos.ongeki.v0.GetPlaylogRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.mythos.ongeki.v0.GetPlaylogRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.mythos.ongeki.v0.GetPlaylogRequest.displayName = 'proto.mythos.ongeki.v0.GetPlaylogRequest'; + /** + * @public + * @override + */ + proto.mythos.ongeki.v0.GetPlaylogRequest.displayName = + "proto.mythos.ongeki.v0.GetPlaylogRequest"; } /** * Generated by JsPbCodeGenerator. @@ -56,74 +65,71 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.mythos.ongeki.v0.GetPlaylogStreamItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.mythos.ongeki.v0.GetPlaylogStreamItem = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.mythos.ongeki.v0.GetPlaylogStreamItem, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.mythos.ongeki.v0.GetPlaylogStreamItem.displayName = 'proto.mythos.ongeki.v0.GetPlaylogStreamItem'; + /** + * @public + * @override + */ + proto.mythos.ongeki.v0.GetPlaylogStreamItem.displayName = + "proto.mythos.ongeki.v0.GetPlaylogStreamItem"; } - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.mythos.ongeki.v0.GetPlaylogRequest.prototype.toObject = function(opt_includeInstance) { - return proto.mythos.ongeki.v0.GetPlaylogRequest.toObject(opt_includeInstance, this); -}; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.mythos.ongeki.v0.GetPlaylogRequest.prototype.toObject = function (opt_includeInstance) { + return proto.mythos.ongeki.v0.GetPlaylogRequest.toObject(opt_includeInstance, this); + }; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.mythos.ongeki.v0.GetPlaylogRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.mythos.ongeki.v0.GetPlaylogRequest.toObject = function (includeInstance, msg) { + var f, + obj = { + profileApiId: jspb.Message.getFieldWithDefault(msg, 1, ""), + lastUserPlayDate: jspb.Message.getFieldWithDefault(msg, 2, ""), + limit: jspb.Message.getFieldWithDefault(msg, 3, 0), + }; -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.mythos.ongeki.v0.GetPlaylogRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.mythos.ongeki.v0.GetPlaylogRequest.toObject = function(includeInstance, msg) { - var f, obj = { - profileApiId: jspb.Message.getFieldWithDefault(msg, 1, ""), - lastUserPlayDate: jspb.Message.getFieldWithDefault(msg, 2, ""), - limit: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.mythos.ongeki.v0.GetPlaylogRequest} */ -proto.mythos.ongeki.v0.GetPlaylogRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.mythos.ongeki.v0.GetPlaylogRequest; - return proto.mythos.ongeki.v0.GetPlaylogRequest.deserializeBinaryFromReader(msg, reader); +proto.mythos.ongeki.v0.GetPlaylogRequest.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.mythos.ongeki.v0.GetPlaylogRequest(); + return proto.mythos.ongeki.v0.GetPlaylogRequest.deserializeBinaryFromReader(msg, reader); }; - /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. @@ -131,45 +137,43 @@ proto.mythos.ongeki.v0.GetPlaylogRequest.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.mythos.ongeki.v0.GetPlaylogRequest} */ -proto.mythos.ongeki.v0.GetPlaylogRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProfileApiId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setLastUserPlayDate(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setLimit(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.mythos.ongeki.v0.GetPlaylogRequest.deserializeBinaryFromReader = function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setProfileApiId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setLastUserPlayDate(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setLimit(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.mythos.ongeki.v0.GetPlaylogRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.mythos.ongeki.v0.GetPlaylogRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.mythos.ongeki.v0.GetPlaylogRequest.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.mythos.ongeki.v0.GetPlaylogRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; - /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. @@ -177,179 +181,160 @@ proto.mythos.ongeki.v0.GetPlaylogRequest.prototype.serializeBinary = function() * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.mythos.ongeki.v0.GetPlaylogRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProfileApiId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeString( - 2, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 3)); - if (f != null) { - writer.writeUint64( - 3, - f - ); - } +proto.mythos.ongeki.v0.GetPlaylogRequest.serializeBinaryToWriter = function (message, writer) { + var f = undefined; + f = message.getProfileApiId(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeString(2, f); + } + f = /** @type {number} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeUint64(3, f); + } }; - /** * optional string profile_api_id = 1; * @return {string} */ -proto.mythos.ongeki.v0.GetPlaylogRequest.prototype.getProfileApiId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.mythos.ongeki.v0.GetPlaylogRequest.prototype.getProfileApiId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; - /** * @param {string} value * @return {!proto.mythos.ongeki.v0.GetPlaylogRequest} returns this */ -proto.mythos.ongeki.v0.GetPlaylogRequest.prototype.setProfileApiId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.mythos.ongeki.v0.GetPlaylogRequest.prototype.setProfileApiId = function (value) { + return jspb.Message.setProto3StringField(this, 1, value); }; - /** * optional string last_user_play_date = 2; * @return {string} */ -proto.mythos.ongeki.v0.GetPlaylogRequest.prototype.getLastUserPlayDate = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.mythos.ongeki.v0.GetPlaylogRequest.prototype.getLastUserPlayDate = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; - /** * @param {string} value * @return {!proto.mythos.ongeki.v0.GetPlaylogRequest} returns this */ -proto.mythos.ongeki.v0.GetPlaylogRequest.prototype.setLastUserPlayDate = function(value) { - return jspb.Message.setField(this, 2, value); +proto.mythos.ongeki.v0.GetPlaylogRequest.prototype.setLastUserPlayDate = function (value) { + return jspb.Message.setField(this, 2, value); }; - /** * Clears the field making it undefined. * @return {!proto.mythos.ongeki.v0.GetPlaylogRequest} returns this */ -proto.mythos.ongeki.v0.GetPlaylogRequest.prototype.clearLastUserPlayDate = function() { - return jspb.Message.setField(this, 2, undefined); +proto.mythos.ongeki.v0.GetPlaylogRequest.prototype.clearLastUserPlayDate = function () { + return jspb.Message.setField(this, 2, undefined); }; - /** * Returns whether this field is set. * @return {boolean} */ -proto.mythos.ongeki.v0.GetPlaylogRequest.prototype.hasLastUserPlayDate = function() { - return jspb.Message.getField(this, 2) != null; +proto.mythos.ongeki.v0.GetPlaylogRequest.prototype.hasLastUserPlayDate = function () { + return jspb.Message.getField(this, 2) != null; }; - /** * optional uint64 limit = 3; * @return {number} */ -proto.mythos.ongeki.v0.GetPlaylogRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.mythos.ongeki.v0.GetPlaylogRequest.prototype.getLimit = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; - /** * @param {number} value * @return {!proto.mythos.ongeki.v0.GetPlaylogRequest} returns this */ -proto.mythos.ongeki.v0.GetPlaylogRequest.prototype.setLimit = function(value) { - return jspb.Message.setField(this, 3, value); +proto.mythos.ongeki.v0.GetPlaylogRequest.prototype.setLimit = function (value) { + return jspb.Message.setField(this, 3, value); }; - /** * Clears the field making it undefined. * @return {!proto.mythos.ongeki.v0.GetPlaylogRequest} returns this */ -proto.mythos.ongeki.v0.GetPlaylogRequest.prototype.clearLimit = function() { - return jspb.Message.setField(this, 3, undefined); +proto.mythos.ongeki.v0.GetPlaylogRequest.prototype.clearLimit = function () { + return jspb.Message.setField(this, 3, undefined); }; - /** * Returns whether this field is set. * @return {boolean} */ -proto.mythos.ongeki.v0.GetPlaylogRequest.prototype.hasLimit = function() { - return jspb.Message.getField(this, 3) != null; +proto.mythos.ongeki.v0.GetPlaylogRequest.prototype.hasLimit = function () { + return jspb.Message.getField(this, 3) != null; }; - - - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.mythos.ongeki.v0.GetPlaylogStreamItem.prototype.toObject = function(opt_includeInstance) { - return proto.mythos.ongeki.v0.GetPlaylogStreamItem.toObject(opt_includeInstance, this); -}; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.mythos.ongeki.v0.GetPlaylogStreamItem.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.mythos.ongeki.v0.GetPlaylogStreamItem.toObject(opt_includeInstance, this); + }; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.mythos.ongeki.v0.GetPlaylogStreamItem} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.mythos.ongeki.v0.GetPlaylogStreamItem.toObject = function (includeInstance, msg) { + var f, + obj = { + playlogApiId: jspb.Message.getFieldWithDefault(msg, 1, ""), + info: + (f = msg.getInfo()) && + ongeki_playlog_pb.PlaylogInfo.toObject(includeInstance, f), + judge: + (f = msg.getJudge()) && + ongeki_playlog_pb.PlaylogJudge.toObject(includeInstance, f), + }; -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.mythos.ongeki.v0.GetPlaylogStreamItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.mythos.ongeki.v0.GetPlaylogStreamItem.toObject = function(includeInstance, msg) { - var f, obj = { - playlogApiId: jspb.Message.getFieldWithDefault(msg, 1, ""), - info: (f = msg.getInfo()) && ongeki_playlog_pb.PlaylogInfo.toObject(includeInstance, f), - judge: (f = msg.getJudge()) && ongeki_playlog_pb.PlaylogJudge.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.mythos.ongeki.v0.GetPlaylogStreamItem} */ -proto.mythos.ongeki.v0.GetPlaylogStreamItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.mythos.ongeki.v0.GetPlaylogStreamItem; - return proto.mythos.ongeki.v0.GetPlaylogStreamItem.deserializeBinaryFromReader(msg, reader); +proto.mythos.ongeki.v0.GetPlaylogStreamItem.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.mythos.ongeki.v0.GetPlaylogStreamItem(); + return proto.mythos.ongeki.v0.GetPlaylogStreamItem.deserializeBinaryFromReader(msg, reader); }; - /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. @@ -357,47 +342,51 @@ proto.mythos.ongeki.v0.GetPlaylogStreamItem.deserializeBinary = function(bytes) * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.mythos.ongeki.v0.GetPlaylogStreamItem} */ -proto.mythos.ongeki.v0.GetPlaylogStreamItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPlaylogApiId(value); - break; - case 2: - var value = new ongeki_playlog_pb.PlaylogInfo; - reader.readMessage(value,ongeki_playlog_pb.PlaylogInfo.deserializeBinaryFromReader); - msg.setInfo(value); - break; - case 3: - var value = new ongeki_playlog_pb.PlaylogJudge; - reader.readMessage(value,ongeki_playlog_pb.PlaylogJudge.deserializeBinaryFromReader); - msg.setJudge(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.mythos.ongeki.v0.GetPlaylogStreamItem.deserializeBinaryFromReader = function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setPlaylogApiId(value); + break; + case 2: + var value = new ongeki_playlog_pb.PlaylogInfo(); + reader.readMessage( + value, + ongeki_playlog_pb.PlaylogInfo.deserializeBinaryFromReader, + ); + msg.setInfo(value); + break; + case 3: + var value = new ongeki_playlog_pb.PlaylogJudge(); + reader.readMessage( + value, + ongeki_playlog_pb.PlaylogJudge.deserializeBinaryFromReader, + ); + msg.setJudge(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.mythos.ongeki.v0.GetPlaylogStreamItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.mythos.ongeki.v0.GetPlaylogStreamItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.mythos.ongeki.v0.GetPlaylogStreamItem.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.mythos.ongeki.v0.GetPlaylogStreamItem.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; - /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. @@ -405,124 +394,104 @@ proto.mythos.ongeki.v0.GetPlaylogStreamItem.prototype.serializeBinary = function * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.mythos.ongeki.v0.GetPlaylogStreamItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPlaylogApiId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getInfo(); - if (f != null) { - writer.writeMessage( - 2, - f, - ongeki_playlog_pb.PlaylogInfo.serializeBinaryToWriter - ); - } - f = message.getJudge(); - if (f != null) { - writer.writeMessage( - 3, - f, - ongeki_playlog_pb.PlaylogJudge.serializeBinaryToWriter - ); - } +proto.mythos.ongeki.v0.GetPlaylogStreamItem.serializeBinaryToWriter = function (message, writer) { + var f = undefined; + f = message.getPlaylogApiId(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = message.getInfo(); + if (f != null) { + writer.writeMessage(2, f, ongeki_playlog_pb.PlaylogInfo.serializeBinaryToWriter); + } + f = message.getJudge(); + if (f != null) { + writer.writeMessage(3, f, ongeki_playlog_pb.PlaylogJudge.serializeBinaryToWriter); + } }; - /** * optional string playlog_api_id = 1; * @return {string} */ -proto.mythos.ongeki.v0.GetPlaylogStreamItem.prototype.getPlaylogApiId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.mythos.ongeki.v0.GetPlaylogStreamItem.prototype.getPlaylogApiId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; - /** * @param {string} value * @return {!proto.mythos.ongeki.v0.GetPlaylogStreamItem} returns this */ -proto.mythos.ongeki.v0.GetPlaylogStreamItem.prototype.setPlaylogApiId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.mythos.ongeki.v0.GetPlaylogStreamItem.prototype.setPlaylogApiId = function (value) { + return jspb.Message.setProto3StringField(this, 1, value); }; - /** * optional PlaylogInfo info = 2; * @return {?proto.mythos.ongeki.v0.PlaylogInfo} */ -proto.mythos.ongeki.v0.GetPlaylogStreamItem.prototype.getInfo = function() { - return /** @type{?proto.mythos.ongeki.v0.PlaylogInfo} */ ( - jspb.Message.getWrapperField(this, ongeki_playlog_pb.PlaylogInfo, 2)); +proto.mythos.ongeki.v0.GetPlaylogStreamItem.prototype.getInfo = function () { + return /** @type{?proto.mythos.ongeki.v0.PlaylogInfo} */ ( + jspb.Message.getWrapperField(this, ongeki_playlog_pb.PlaylogInfo, 2) + ); }; - /** * @param {?proto.mythos.ongeki.v0.PlaylogInfo|undefined} value * @return {!proto.mythos.ongeki.v0.GetPlaylogStreamItem} returns this -*/ -proto.mythos.ongeki.v0.GetPlaylogStreamItem.prototype.setInfo = function(value) { - return jspb.Message.setWrapperField(this, 2, value); + */ +proto.mythos.ongeki.v0.GetPlaylogStreamItem.prototype.setInfo = function (value) { + return jspb.Message.setWrapperField(this, 2, value); }; - /** * Clears the message field making it undefined. * @return {!proto.mythos.ongeki.v0.GetPlaylogStreamItem} returns this */ -proto.mythos.ongeki.v0.GetPlaylogStreamItem.prototype.clearInfo = function() { - return this.setInfo(undefined); +proto.mythos.ongeki.v0.GetPlaylogStreamItem.prototype.clearInfo = function () { + return this.setInfo(undefined); }; - /** * Returns whether this field is set. * @return {boolean} */ -proto.mythos.ongeki.v0.GetPlaylogStreamItem.prototype.hasInfo = function() { - return jspb.Message.getField(this, 2) != null; +proto.mythos.ongeki.v0.GetPlaylogStreamItem.prototype.hasInfo = function () { + return jspb.Message.getField(this, 2) != null; }; - /** * optional PlaylogJudge judge = 3; * @return {?proto.mythos.ongeki.v0.PlaylogJudge} */ -proto.mythos.ongeki.v0.GetPlaylogStreamItem.prototype.getJudge = function() { - return /** @type{?proto.mythos.ongeki.v0.PlaylogJudge} */ ( - jspb.Message.getWrapperField(this, ongeki_playlog_pb.PlaylogJudge, 3)); +proto.mythos.ongeki.v0.GetPlaylogStreamItem.prototype.getJudge = function () { + return /** @type{?proto.mythos.ongeki.v0.PlaylogJudge} */ ( + jspb.Message.getWrapperField(this, ongeki_playlog_pb.PlaylogJudge, 3) + ); }; - /** * @param {?proto.mythos.ongeki.v0.PlaylogJudge|undefined} value * @return {!proto.mythos.ongeki.v0.GetPlaylogStreamItem} returns this -*/ -proto.mythos.ongeki.v0.GetPlaylogStreamItem.prototype.setJudge = function(value) { - return jspb.Message.setWrapperField(this, 3, value); + */ +proto.mythos.ongeki.v0.GetPlaylogStreamItem.prototype.setJudge = function (value) { + return jspb.Message.setWrapperField(this, 3, value); }; - /** * Clears the message field making it undefined. * @return {!proto.mythos.ongeki.v0.GetPlaylogStreamItem} returns this */ -proto.mythos.ongeki.v0.GetPlaylogStreamItem.prototype.clearJudge = function() { - return this.setJudge(undefined); +proto.mythos.ongeki.v0.GetPlaylogStreamItem.prototype.clearJudge = function () { + return this.setJudge(undefined); }; - /** * Returns whether this field is set. * @return {boolean} */ -proto.mythos.ongeki.v0.GetPlaylogStreamItem.prototype.hasJudge = function() { - return jspb.Message.getField(this, 3) != null; +proto.mythos.ongeki.v0.GetPlaylogStreamItem.prototype.hasJudge = function () { + return jspb.Message.getField(this, 3) != null; }; - goog.object.extend(exports, proto.mythos.ongeki.v0); diff --git a/typescript/server/src/proto/generated/wacca/common_grpc_pb.js b/typescript/server/src/proto/generated/wacca/common_grpc_pb.js index 97b3a2461..51b4d6959 100644 --- a/typescript/server/src/proto/generated/wacca/common_grpc_pb.js +++ b/typescript/server/src/proto/generated/wacca/common_grpc_pb.js @@ -1 +1 @@ -// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file +// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/typescript/server/src/proto/generated/wacca/common_pb.d.ts b/typescript/server/src/proto/generated/wacca/common_pb.d.ts index 54e38fc6c..10381a1eb 100644 --- a/typescript/server/src/proto/generated/wacca/common_pb.d.ts +++ b/typescript/server/src/proto/generated/wacca/common_pb.d.ts @@ -4,120 +4,122 @@ import * as jspb from "google-protobuf"; export class WaccaClearStatus extends jspb.Message { - getIsClear(): boolean; - setIsClear(value: boolean): void; + getIsClear(): boolean; + setIsClear(value: boolean): void; - getIsMissless(): boolean; - setIsMissless(value: boolean): void; + getIsMissless(): boolean; + setIsMissless(value: boolean): void; - getIsFullCombo(): boolean; - setIsFullCombo(value: boolean): void; + getIsFullCombo(): boolean; + setIsFullCombo(value: boolean): void; - getIsAllMarvelous(): boolean; - setIsAllMarvelous(value: boolean): void; + getIsAllMarvelous(): boolean; + setIsAllMarvelous(value: boolean): void; - getIsGiveUp(): boolean; - setIsGiveUp(value: boolean): void; + getIsGiveUp(): boolean; + setIsGiveUp(value: boolean): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): WaccaClearStatus.AsObject; - static toObject(includeInstance: boolean, msg: WaccaClearStatus): WaccaClearStatus.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: WaccaClearStatus, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): WaccaClearStatus; - static deserializeBinaryFromReader(message: WaccaClearStatus, reader: jspb.BinaryReader): WaccaClearStatus; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): WaccaClearStatus.AsObject; + static toObject(includeInstance: boolean, msg: WaccaClearStatus): WaccaClearStatus.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo }; + static serializeBinaryToWriter(message: WaccaClearStatus, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): WaccaClearStatus; + static deserializeBinaryFromReader( + message: WaccaClearStatus, + reader: jspb.BinaryReader, + ): WaccaClearStatus; } export namespace WaccaClearStatus { - export type AsObject = { - isClear: boolean, - isMissless: boolean, - isFullCombo: boolean, - isAllMarvelous: boolean, - isGiveUp: boolean, - } + export type AsObject = { + isClear: boolean; + isMissless: boolean; + isFullCombo: boolean; + isAllMarvelous: boolean; + isGiveUp: boolean; + }; } export class WaccaJudge extends jspb.Message { - getMarvelous(): number; - setMarvelous(value: number): void; + getMarvelous(): number; + setMarvelous(value: number): void; - getGreat(): number; - setGreat(value: number): void; + getGreat(): number; + setGreat(value: number): void; - getGood(): number; - setGood(value: number): void; + getGood(): number; + setGood(value: number): void; - getMiss(): number; - setMiss(value: number): void; + getMiss(): number; + setMiss(value: number): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): WaccaJudge.AsObject; - static toObject(includeInstance: boolean, msg: WaccaJudge): WaccaJudge.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: WaccaJudge, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): WaccaJudge; - static deserializeBinaryFromReader(message: WaccaJudge, reader: jspb.BinaryReader): WaccaJudge; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): WaccaJudge.AsObject; + static toObject(includeInstance: boolean, msg: WaccaJudge): WaccaJudge.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo }; + static serializeBinaryToWriter(message: WaccaJudge, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): WaccaJudge; + static deserializeBinaryFromReader(message: WaccaJudge, reader: jspb.BinaryReader): WaccaJudge; } export namespace WaccaJudge { - export type AsObject = { - marvelous: number, - great: number, - good: number, - miss: number, - } + export type AsObject = { + marvelous: number; + great: number; + good: number; + miss: number; + }; } export interface WaccaVersionMap { - WACCA_VERSION_UNSPECIFIED: 0; - WACCA_VERSION_WACCA: 100; - WACCA_VERSION_S: 150; - WACCA_VERSION_LILY: 200; - WACCA_VERSION_LILY_R: 250; - WACCA_VERSION_REVERSE: 300; - WACCA_VERSION_PLUS: 400; + WACCA_VERSION_UNSPECIFIED: 0; + WACCA_VERSION_WACCA: 100; + WACCA_VERSION_S: 150; + WACCA_VERSION_LILY: 200; + WACCA_VERSION_LILY_R: 250; + WACCA_VERSION_REVERSE: 300; + WACCA_VERSION_PLUS: 400; } export const WaccaVersion: WaccaVersionMap; export interface WaccaMusicDifficultyMap { - WACCA_MUSIC_DIFFICULTY_UNSPECIFIED: 0; - WACCA_MUSIC_DIFFICULTY_NORMAL: 1; - WACCA_MUSIC_DIFFICULTY_HARD: 2; - WACCA_MUSIC_DIFFICULTY_EXPERT: 3; - WACCA_MUSIC_DIFFICULTY_INFERNO: 4; + WACCA_MUSIC_DIFFICULTY_UNSPECIFIED: 0; + WACCA_MUSIC_DIFFICULTY_NORMAL: 1; + WACCA_MUSIC_DIFFICULTY_HARD: 2; + WACCA_MUSIC_DIFFICULTY_EXPERT: 3; + WACCA_MUSIC_DIFFICULTY_INFERNO: 4; } export const WaccaMusicDifficulty: WaccaMusicDifficultyMap; export interface WaccaMusicScoreGradeMap { - WACCA_MUSIC_SCORE_GRADE_UNSPECIFIED: 0; - WACCA_MUSIC_SCORE_GRADE_D: 1; - WACCA_MUSIC_SCORE_GRADE_C: 2; - WACCA_MUSIC_SCORE_GRADE_B: 3; - WACCA_MUSIC_SCORE_GRADE_A: 4; - WACCA_MUSIC_SCORE_GRADE_AA: 5; - WACCA_MUSIC_SCORE_GRADE_AAA: 6; - WACCA_MUSIC_SCORE_GRADE_S: 7; - WACCA_MUSIC_SCORE_GRADE_S_PLUS: 8; - WACCA_MUSIC_SCORE_GRADE_SS: 9; - WACCA_MUSIC_SCORE_GRADE_SS_PLUS: 10; - WACCA_MUSIC_SCORE_GRADE_SSS: 11; - WACCA_MUSIC_SCORE_GRADE_SSS_PLUS: 12; - WACCA_MUSIC_SCORE_GRADE_MASTER: 13; + WACCA_MUSIC_SCORE_GRADE_UNSPECIFIED: 0; + WACCA_MUSIC_SCORE_GRADE_D: 1; + WACCA_MUSIC_SCORE_GRADE_C: 2; + WACCA_MUSIC_SCORE_GRADE_B: 3; + WACCA_MUSIC_SCORE_GRADE_A: 4; + WACCA_MUSIC_SCORE_GRADE_AA: 5; + WACCA_MUSIC_SCORE_GRADE_AAA: 6; + WACCA_MUSIC_SCORE_GRADE_S: 7; + WACCA_MUSIC_SCORE_GRADE_S_PLUS: 8; + WACCA_MUSIC_SCORE_GRADE_SS: 9; + WACCA_MUSIC_SCORE_GRADE_SS_PLUS: 10; + WACCA_MUSIC_SCORE_GRADE_SSS: 11; + WACCA_MUSIC_SCORE_GRADE_SSS_PLUS: 12; + WACCA_MUSIC_SCORE_GRADE_MASTER: 13; } export const WaccaMusicScoreGrade: WaccaMusicScoreGradeMap; export interface WaccaPlayModeMap { - WACCA_PLAY_MODE_UNSPECIFIED: 0; - WACCA_PLAY_MODE_SINGLE: 1; - WACCA_PLAY_MODE_VERSUS: 2; - WACCA_PLAY_MODE_CO_OP: 3; + WACCA_PLAY_MODE_UNSPECIFIED: 0; + WACCA_PLAY_MODE_SINGLE: 1; + WACCA_PLAY_MODE_VERSUS: 2; + WACCA_PLAY_MODE_CO_OP: 3; } export const WaccaPlayMode: WaccaPlayModeMap; - diff --git a/typescript/server/src/proto/generated/wacca/common_pb.js b/typescript/server/src/proto/generated/wacca/common_pb.js index d28b9626d..ee1b0e2d4 100644 --- a/typescript/server/src/proto/generated/wacca/common_pb.js +++ b/typescript/server/src/proto/generated/wacca/common_pb.js @@ -11,22 +11,30 @@ /* eslint-disable */ // @ts-nocheck -var jspb = require('google-protobuf'); +var jspb = require("google-protobuf"); var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); +var global = function () { + if (this) { + return this; + } + if (typeof window !== "undefined") { + return window; + } + if (typeof global !== "undefined") { + return global; + } + if (typeof self !== "undefined") { + return self; + } + return Function("return this")(); +}.call(null); -goog.exportSymbol('proto.mythos.wacca.v0.WaccaClearStatus', null, global); -goog.exportSymbol('proto.mythos.wacca.v0.WaccaJudge', null, global); -goog.exportSymbol('proto.mythos.wacca.v0.WaccaMusicDifficulty', null, global); -goog.exportSymbol('proto.mythos.wacca.v0.WaccaMusicScoreGrade', null, global); -goog.exportSymbol('proto.mythos.wacca.v0.WaccaPlayMode', null, global); -goog.exportSymbol('proto.mythos.wacca.v0.WaccaVersion', null, global); +goog.exportSymbol("proto.mythos.wacca.v0.WaccaClearStatus", null, global); +goog.exportSymbol("proto.mythos.wacca.v0.WaccaJudge", null, global); +goog.exportSymbol("proto.mythos.wacca.v0.WaccaMusicDifficulty", null, global); +goog.exportSymbol("proto.mythos.wacca.v0.WaccaMusicScoreGrade", null, global); +goog.exportSymbol("proto.mythos.wacca.v0.WaccaPlayMode", null, global); +goog.exportSymbol("proto.mythos.wacca.v0.WaccaVersion", null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -37,16 +45,16 @@ goog.exportSymbol('proto.mythos.wacca.v0.WaccaVersion', null, global); * @extends {jspb.Message} * @constructor */ -proto.mythos.wacca.v0.WaccaClearStatus = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.mythos.wacca.v0.WaccaClearStatus = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.mythos.wacca.v0.WaccaClearStatus, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.mythos.wacca.v0.WaccaClearStatus.displayName = 'proto.mythos.wacca.v0.WaccaClearStatus'; + /** + * @public + * @override + */ + proto.mythos.wacca.v0.WaccaClearStatus.displayName = "proto.mythos.wacca.v0.WaccaClearStatus"; } /** * Generated by JsPbCodeGenerator. @@ -58,76 +66,72 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.mythos.wacca.v0.WaccaJudge = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.mythos.wacca.v0.WaccaJudge = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.mythos.wacca.v0.WaccaJudge, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.mythos.wacca.v0.WaccaJudge.displayName = 'proto.mythos.wacca.v0.WaccaJudge'; + /** + * @public + * @override + */ + proto.mythos.wacca.v0.WaccaJudge.displayName = "proto.mythos.wacca.v0.WaccaJudge"; } - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.mythos.wacca.v0.WaccaClearStatus.prototype.toObject = function(opt_includeInstance) { - return proto.mythos.wacca.v0.WaccaClearStatus.toObject(opt_includeInstance, this); -}; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.mythos.wacca.v0.WaccaClearStatus.prototype.toObject = function (opt_includeInstance) { + return proto.mythos.wacca.v0.WaccaClearStatus.toObject(opt_includeInstance, this); + }; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.mythos.wacca.v0.WaccaClearStatus} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.mythos.wacca.v0.WaccaClearStatus.toObject = function (includeInstance, msg) { + var f, + obj = { + isClear: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + isMissless: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + isFullCombo: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + isAllMarvelous: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + isGiveUp: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), + }; -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.mythos.wacca.v0.WaccaClearStatus} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.mythos.wacca.v0.WaccaClearStatus.toObject = function(includeInstance, msg) { - var f, obj = { - isClear: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - isMissless: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - isFullCombo: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - isAllMarvelous: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - isGiveUp: jspb.Message.getBooleanFieldWithDefault(msg, 5, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.mythos.wacca.v0.WaccaClearStatus} */ -proto.mythos.wacca.v0.WaccaClearStatus.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.mythos.wacca.v0.WaccaClearStatus; - return proto.mythos.wacca.v0.WaccaClearStatus.deserializeBinaryFromReader(msg, reader); +proto.mythos.wacca.v0.WaccaClearStatus.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.mythos.wacca.v0.WaccaClearStatus(); + return proto.mythos.wacca.v0.WaccaClearStatus.deserializeBinaryFromReader(msg, reader); }; - /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. @@ -135,53 +139,51 @@ proto.mythos.wacca.v0.WaccaClearStatus.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.mythos.wacca.v0.WaccaClearStatus} */ -proto.mythos.wacca.v0.WaccaClearStatus.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsClear(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsMissless(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsFullCombo(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsAllMarvelous(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsGiveUp(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.mythos.wacca.v0.WaccaClearStatus.deserializeBinaryFromReader = function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsClear(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsMissless(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsFullCombo(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsAllMarvelous(value); + break; + case 5: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsGiveUp(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.mythos.wacca.v0.WaccaClearStatus.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.mythos.wacca.v0.WaccaClearStatus.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.mythos.wacca.v0.WaccaClearStatus.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.mythos.wacca.v0.WaccaClearStatus.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; - /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. @@ -189,194 +191,163 @@ proto.mythos.wacca.v0.WaccaClearStatus.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.mythos.wacca.v0.WaccaClearStatus.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIsClear(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getIsMissless(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getIsFullCombo(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getIsAllMarvelous(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getIsGiveUp(); - if (f) { - writer.writeBool( - 5, - f - ); - } +proto.mythos.wacca.v0.WaccaClearStatus.serializeBinaryToWriter = function (message, writer) { + var f = undefined; + f = message.getIsClear(); + if (f) { + writer.writeBool(1, f); + } + f = message.getIsMissless(); + if (f) { + writer.writeBool(2, f); + } + f = message.getIsFullCombo(); + if (f) { + writer.writeBool(3, f); + } + f = message.getIsAllMarvelous(); + if (f) { + writer.writeBool(4, f); + } + f = message.getIsGiveUp(); + if (f) { + writer.writeBool(5, f); + } }; - /** * optional bool is_clear = 1; * @return {boolean} */ -proto.mythos.wacca.v0.WaccaClearStatus.prototype.getIsClear = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +proto.mythos.wacca.v0.WaccaClearStatus.prototype.getIsClear = function () { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; - /** * @param {boolean} value * @return {!proto.mythos.wacca.v0.WaccaClearStatus} returns this */ -proto.mythos.wacca.v0.WaccaClearStatus.prototype.setIsClear = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); +proto.mythos.wacca.v0.WaccaClearStatus.prototype.setIsClear = function (value) { + return jspb.Message.setProto3BooleanField(this, 1, value); }; - /** * optional bool is_missless = 2; * @return {boolean} */ -proto.mythos.wacca.v0.WaccaClearStatus.prototype.getIsMissless = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +proto.mythos.wacca.v0.WaccaClearStatus.prototype.getIsMissless = function () { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; - /** * @param {boolean} value * @return {!proto.mythos.wacca.v0.WaccaClearStatus} returns this */ -proto.mythos.wacca.v0.WaccaClearStatus.prototype.setIsMissless = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); +proto.mythos.wacca.v0.WaccaClearStatus.prototype.setIsMissless = function (value) { + return jspb.Message.setProto3BooleanField(this, 2, value); }; - /** * optional bool is_full_combo = 3; * @return {boolean} */ -proto.mythos.wacca.v0.WaccaClearStatus.prototype.getIsFullCombo = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +proto.mythos.wacca.v0.WaccaClearStatus.prototype.getIsFullCombo = function () { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); }; - /** * @param {boolean} value * @return {!proto.mythos.wacca.v0.WaccaClearStatus} returns this */ -proto.mythos.wacca.v0.WaccaClearStatus.prototype.setIsFullCombo = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); +proto.mythos.wacca.v0.WaccaClearStatus.prototype.setIsFullCombo = function (value) { + return jspb.Message.setProto3BooleanField(this, 3, value); }; - /** * optional bool is_all_marvelous = 4; * @return {boolean} */ -proto.mythos.wacca.v0.WaccaClearStatus.prototype.getIsAllMarvelous = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +proto.mythos.wacca.v0.WaccaClearStatus.prototype.getIsAllMarvelous = function () { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); }; - /** * @param {boolean} value * @return {!proto.mythos.wacca.v0.WaccaClearStatus} returns this */ -proto.mythos.wacca.v0.WaccaClearStatus.prototype.setIsAllMarvelous = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); +proto.mythos.wacca.v0.WaccaClearStatus.prototype.setIsAllMarvelous = function (value) { + return jspb.Message.setProto3BooleanField(this, 4, value); }; - /** * optional bool is_give_up = 5; * @return {boolean} */ -proto.mythos.wacca.v0.WaccaClearStatus.prototype.getIsGiveUp = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); +proto.mythos.wacca.v0.WaccaClearStatus.prototype.getIsGiveUp = function () { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); }; - /** * @param {boolean} value * @return {!proto.mythos.wacca.v0.WaccaClearStatus} returns this */ -proto.mythos.wacca.v0.WaccaClearStatus.prototype.setIsGiveUp = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); +proto.mythos.wacca.v0.WaccaClearStatus.prototype.setIsGiveUp = function (value) { + return jspb.Message.setProto3BooleanField(this, 5, value); }; - - - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.mythos.wacca.v0.WaccaJudge.prototype.toObject = function(opt_includeInstance) { - return proto.mythos.wacca.v0.WaccaJudge.toObject(opt_includeInstance, this); -}; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.mythos.wacca.v0.WaccaJudge.prototype.toObject = function (opt_includeInstance) { + return proto.mythos.wacca.v0.WaccaJudge.toObject(opt_includeInstance, this); + }; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.mythos.wacca.v0.WaccaJudge} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.mythos.wacca.v0.WaccaJudge.toObject = function (includeInstance, msg) { + var f, + obj = { + marvelous: jspb.Message.getFieldWithDefault(msg, 1, 0), + great: jspb.Message.getFieldWithDefault(msg, 2, 0), + good: jspb.Message.getFieldWithDefault(msg, 3, 0), + miss: jspb.Message.getFieldWithDefault(msg, 4, 0), + }; -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.mythos.wacca.v0.WaccaJudge} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.mythos.wacca.v0.WaccaJudge.toObject = function(includeInstance, msg) { - var f, obj = { - marvelous: jspb.Message.getFieldWithDefault(msg, 1, 0), - great: jspb.Message.getFieldWithDefault(msg, 2, 0), - good: jspb.Message.getFieldWithDefault(msg, 3, 0), - miss: jspb.Message.getFieldWithDefault(msg, 4, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.mythos.wacca.v0.WaccaJudge} */ -proto.mythos.wacca.v0.WaccaJudge.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.mythos.wacca.v0.WaccaJudge; - return proto.mythos.wacca.v0.WaccaJudge.deserializeBinaryFromReader(msg, reader); +proto.mythos.wacca.v0.WaccaJudge.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.mythos.wacca.v0.WaccaJudge(); + return proto.mythos.wacca.v0.WaccaJudge.deserializeBinaryFromReader(msg, reader); }; - /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. @@ -384,49 +355,47 @@ proto.mythos.wacca.v0.WaccaJudge.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.mythos.wacca.v0.WaccaJudge} */ -proto.mythos.wacca.v0.WaccaJudge.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMarvelous(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setGreat(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt32()); - msg.setGood(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMiss(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.mythos.wacca.v0.WaccaJudge.deserializeBinaryFromReader = function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setMarvelous(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setGreat(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setGood(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt32()); + msg.setMiss(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.mythos.wacca.v0.WaccaJudge.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.mythos.wacca.v0.WaccaJudge.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.mythos.wacca.v0.WaccaJudge.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.mythos.wacca.v0.WaccaJudge.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; - /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. @@ -434,163 +403,142 @@ proto.mythos.wacca.v0.WaccaJudge.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.mythos.wacca.v0.WaccaJudge.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMarvelous(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getGreat(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } - f = message.getGood(); - if (f !== 0) { - writer.writeInt32( - 3, - f - ); - } - f = message.getMiss(); - if (f !== 0) { - writer.writeInt32( - 4, - f - ); - } +proto.mythos.wacca.v0.WaccaJudge.serializeBinaryToWriter = function (message, writer) { + var f = undefined; + f = message.getMarvelous(); + if (f !== 0) { + writer.writeInt32(1, f); + } + f = message.getGreat(); + if (f !== 0) { + writer.writeInt32(2, f); + } + f = message.getGood(); + if (f !== 0) { + writer.writeInt32(3, f); + } + f = message.getMiss(); + if (f !== 0) { + writer.writeInt32(4, f); + } }; - /** * optional int32 marvelous = 1; * @return {number} */ -proto.mythos.wacca.v0.WaccaJudge.prototype.getMarvelous = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.mythos.wacca.v0.WaccaJudge.prototype.getMarvelous = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; - /** * @param {number} value * @return {!proto.mythos.wacca.v0.WaccaJudge} returns this */ -proto.mythos.wacca.v0.WaccaJudge.prototype.setMarvelous = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.mythos.wacca.v0.WaccaJudge.prototype.setMarvelous = function (value) { + return jspb.Message.setProto3IntField(this, 1, value); }; - /** * optional int32 great = 2; * @return {number} */ -proto.mythos.wacca.v0.WaccaJudge.prototype.getGreat = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.mythos.wacca.v0.WaccaJudge.prototype.getGreat = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; - /** * @param {number} value * @return {!proto.mythos.wacca.v0.WaccaJudge} returns this */ -proto.mythos.wacca.v0.WaccaJudge.prototype.setGreat = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); +proto.mythos.wacca.v0.WaccaJudge.prototype.setGreat = function (value) { + return jspb.Message.setProto3IntField(this, 2, value); }; - /** * optional int32 good = 3; * @return {number} */ -proto.mythos.wacca.v0.WaccaJudge.prototype.getGood = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.mythos.wacca.v0.WaccaJudge.prototype.getGood = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; - /** * @param {number} value * @return {!proto.mythos.wacca.v0.WaccaJudge} returns this */ -proto.mythos.wacca.v0.WaccaJudge.prototype.setGood = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.mythos.wacca.v0.WaccaJudge.prototype.setGood = function (value) { + return jspb.Message.setProto3IntField(this, 3, value); }; - /** * optional int32 miss = 4; * @return {number} */ -proto.mythos.wacca.v0.WaccaJudge.prototype.getMiss = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +proto.mythos.wacca.v0.WaccaJudge.prototype.getMiss = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; - /** * @param {number} value * @return {!proto.mythos.wacca.v0.WaccaJudge} returns this */ -proto.mythos.wacca.v0.WaccaJudge.prototype.setMiss = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); +proto.mythos.wacca.v0.WaccaJudge.prototype.setMiss = function (value) { + return jspb.Message.setProto3IntField(this, 4, value); }; - /** * @enum {number} */ proto.mythos.wacca.v0.WaccaVersion = { - WACCA_VERSION_UNSPECIFIED: 0, - WACCA_VERSION_WACCA: 100, - WACCA_VERSION_S: 150, - WACCA_VERSION_LILY: 200, - WACCA_VERSION_LILY_R: 250, - WACCA_VERSION_REVERSE: 300, - WACCA_VERSION_PLUS: 400 + WACCA_VERSION_UNSPECIFIED: 0, + WACCA_VERSION_WACCA: 100, + WACCA_VERSION_S: 150, + WACCA_VERSION_LILY: 200, + WACCA_VERSION_LILY_R: 250, + WACCA_VERSION_REVERSE: 300, + WACCA_VERSION_PLUS: 400, }; /** * @enum {number} */ proto.mythos.wacca.v0.WaccaMusicDifficulty = { - WACCA_MUSIC_DIFFICULTY_UNSPECIFIED: 0, - WACCA_MUSIC_DIFFICULTY_NORMAL: 1, - WACCA_MUSIC_DIFFICULTY_HARD: 2, - WACCA_MUSIC_DIFFICULTY_EXPERT: 3, - WACCA_MUSIC_DIFFICULTY_INFERNO: 4 + WACCA_MUSIC_DIFFICULTY_UNSPECIFIED: 0, + WACCA_MUSIC_DIFFICULTY_NORMAL: 1, + WACCA_MUSIC_DIFFICULTY_HARD: 2, + WACCA_MUSIC_DIFFICULTY_EXPERT: 3, + WACCA_MUSIC_DIFFICULTY_INFERNO: 4, }; /** * @enum {number} */ proto.mythos.wacca.v0.WaccaMusicScoreGrade = { - WACCA_MUSIC_SCORE_GRADE_UNSPECIFIED: 0, - WACCA_MUSIC_SCORE_GRADE_D: 1, - WACCA_MUSIC_SCORE_GRADE_C: 2, - WACCA_MUSIC_SCORE_GRADE_B: 3, - WACCA_MUSIC_SCORE_GRADE_A: 4, - WACCA_MUSIC_SCORE_GRADE_AA: 5, - WACCA_MUSIC_SCORE_GRADE_AAA: 6, - WACCA_MUSIC_SCORE_GRADE_S: 7, - WACCA_MUSIC_SCORE_GRADE_S_PLUS: 8, - WACCA_MUSIC_SCORE_GRADE_SS: 9, - WACCA_MUSIC_SCORE_GRADE_SS_PLUS: 10, - WACCA_MUSIC_SCORE_GRADE_SSS: 11, - WACCA_MUSIC_SCORE_GRADE_SSS_PLUS: 12, - WACCA_MUSIC_SCORE_GRADE_MASTER: 13 + WACCA_MUSIC_SCORE_GRADE_UNSPECIFIED: 0, + WACCA_MUSIC_SCORE_GRADE_D: 1, + WACCA_MUSIC_SCORE_GRADE_C: 2, + WACCA_MUSIC_SCORE_GRADE_B: 3, + WACCA_MUSIC_SCORE_GRADE_A: 4, + WACCA_MUSIC_SCORE_GRADE_AA: 5, + WACCA_MUSIC_SCORE_GRADE_AAA: 6, + WACCA_MUSIC_SCORE_GRADE_S: 7, + WACCA_MUSIC_SCORE_GRADE_S_PLUS: 8, + WACCA_MUSIC_SCORE_GRADE_SS: 9, + WACCA_MUSIC_SCORE_GRADE_SS_PLUS: 10, + WACCA_MUSIC_SCORE_GRADE_SSS: 11, + WACCA_MUSIC_SCORE_GRADE_SSS_PLUS: 12, + WACCA_MUSIC_SCORE_GRADE_MASTER: 13, }; /** * @enum {number} */ proto.mythos.wacca.v0.WaccaPlayMode = { - WACCA_PLAY_MODE_UNSPECIFIED: 0, - WACCA_PLAY_MODE_SINGLE: 1, - WACCA_PLAY_MODE_VERSUS: 2, - WACCA_PLAY_MODE_CO_OP: 3 + WACCA_PLAY_MODE_UNSPECIFIED: 0, + WACCA_PLAY_MODE_SINGLE: 1, + WACCA_PLAY_MODE_VERSUS: 2, + WACCA_PLAY_MODE_CO_OP: 3, }; goog.object.extend(exports, proto.mythos.wacca.v0); diff --git a/typescript/server/src/proto/generated/wacca/user_grpc_pb.d.ts b/typescript/server/src/proto/generated/wacca/user_grpc_pb.d.ts index 4c2aed764..3df6f94a6 100644 --- a/typescript/server/src/proto/generated/wacca/user_grpc_pb.d.ts +++ b/typescript/server/src/proto/generated/wacca/user_grpc_pb.d.ts @@ -7,22 +7,47 @@ import * as wacca_user_pb from "../wacca/user_pb"; import * as grpc from "@grpc/grpc-js"; interface IWaccaUserService extends grpc.ServiceDefinition { - getData: grpc.MethodDefinition; - getPlaylog: grpc.MethodDefinition; + getData: grpc.MethodDefinition; + getPlaylog: grpc.MethodDefinition< + wacca_user_pb.PlaylogRequest, + wacca_user_pb.PlaylogStreamItem + >; } export const WaccaUserService: IWaccaUserService; export interface IWaccaUserServer extends grpc.UntypedServiceImplementation { - getData: grpc.handleUnaryCall; - getPlaylog: grpc.handleServerStreamingCall; + getData: grpc.handleUnaryCall; + getPlaylog: grpc.handleServerStreamingCall< + wacca_user_pb.PlaylogRequest, + wacca_user_pb.PlaylogStreamItem + >; } export class WaccaUserClient extends grpc.Client { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - getData(argument: wacca_user_pb.DataRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getData(argument: wacca_user_pb.DataRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getData(argument: wacca_user_pb.DataRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getPlaylog(argument: wacca_user_pb.PlaylogRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream; - getPlaylog(argument: wacca_user_pb.PlaylogRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream; + constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); + getData( + argument: wacca_user_pb.DataRequest, + callback: grpc.requestCallback, + ): grpc.ClientUnaryCall; + getData( + argument: wacca_user_pb.DataRequest, + metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, + callback: grpc.requestCallback, + ): grpc.ClientUnaryCall; + getData( + argument: wacca_user_pb.DataRequest, + metadata: grpc.Metadata | null, + options: grpc.CallOptions | null, + callback: grpc.requestCallback, + ): grpc.ClientUnaryCall; + getPlaylog( + argument: wacca_user_pb.PlaylogRequest, + metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null, + ): grpc.ClientReadableStream; + getPlaylog( + argument: wacca_user_pb.PlaylogRequest, + metadata?: grpc.Metadata | null, + options?: grpc.CallOptions | null, + ): grpc.ClientReadableStream; } diff --git a/typescript/server/src/proto/generated/wacca/user_grpc_pb.js b/typescript/server/src/proto/generated/wacca/user_grpc_pb.js index 19679349d..70cf09080 100644 --- a/typescript/server/src/proto/generated/wacca/user_grpc_pb.js +++ b/typescript/server/src/proto/generated/wacca/user_grpc_pb.js @@ -1,79 +1,78 @@ // GENERATED CODE -- DO NOT EDIT! -'use strict'; -var grpc = require('@grpc/grpc-js'); -var wacca_user_pb = require('../wacca/user_pb.js'); -var wacca_common_pb = require('../wacca/common_pb.js'); +"use strict"; +var grpc = require("@grpc/grpc-js"); +var wacca_user_pb = require("../wacca/user_pb.js"); +var wacca_common_pb = require("../wacca/common_pb.js"); function serialize_mythos_wacca_v0_DataRequest(arg) { - if (!(arg instanceof wacca_user_pb.DataRequest)) { - throw new Error('Expected argument of type mythos.wacca.v0.DataRequest'); - } - return Buffer.from(arg.serializeBinary()); + if (!(arg instanceof wacca_user_pb.DataRequest)) { + throw new Error("Expected argument of type mythos.wacca.v0.DataRequest"); + } + return Buffer.from(arg.serializeBinary()); } function deserialize_mythos_wacca_v0_DataRequest(buffer_arg) { - return wacca_user_pb.DataRequest.deserializeBinary(new Uint8Array(buffer_arg)); + return wacca_user_pb.DataRequest.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_mythos_wacca_v0_DataResponse(arg) { - if (!(arg instanceof wacca_user_pb.DataResponse)) { - throw new Error('Expected argument of type mythos.wacca.v0.DataResponse'); - } - return Buffer.from(arg.serializeBinary()); + if (!(arg instanceof wacca_user_pb.DataResponse)) { + throw new Error("Expected argument of type mythos.wacca.v0.DataResponse"); + } + return Buffer.from(arg.serializeBinary()); } function deserialize_mythos_wacca_v0_DataResponse(buffer_arg) { - return wacca_user_pb.DataResponse.deserializeBinary(new Uint8Array(buffer_arg)); + return wacca_user_pb.DataResponse.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_mythos_wacca_v0_PlaylogRequest(arg) { - if (!(arg instanceof wacca_user_pb.PlaylogRequest)) { - throw new Error('Expected argument of type mythos.wacca.v0.PlaylogRequest'); - } - return Buffer.from(arg.serializeBinary()); + if (!(arg instanceof wacca_user_pb.PlaylogRequest)) { + throw new Error("Expected argument of type mythos.wacca.v0.PlaylogRequest"); + } + return Buffer.from(arg.serializeBinary()); } function deserialize_mythos_wacca_v0_PlaylogRequest(buffer_arg) { - return wacca_user_pb.PlaylogRequest.deserializeBinary(new Uint8Array(buffer_arg)); + return wacca_user_pb.PlaylogRequest.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_mythos_wacca_v0_PlaylogStreamItem(arg) { - if (!(arg instanceof wacca_user_pb.PlaylogStreamItem)) { - throw new Error('Expected argument of type mythos.wacca.v0.PlaylogStreamItem'); - } - return Buffer.from(arg.serializeBinary()); + if (!(arg instanceof wacca_user_pb.PlaylogStreamItem)) { + throw new Error("Expected argument of type mythos.wacca.v0.PlaylogStreamItem"); + } + return Buffer.from(arg.serializeBinary()); } function deserialize_mythos_wacca_v0_PlaylogStreamItem(buffer_arg) { - return wacca_user_pb.PlaylogStreamItem.deserializeBinary(new Uint8Array(buffer_arg)); + return wacca_user_pb.PlaylogStreamItem.deserializeBinary(new Uint8Array(buffer_arg)); } +var WaccaUserService = (exports.WaccaUserService = { + getData: { + path: "/mythos.wacca.v0.WaccaUser/GetData", + requestStream: false, + responseStream: false, + requestType: wacca_user_pb.DataRequest, + responseType: wacca_user_pb.DataResponse, + requestSerialize: serialize_mythos_wacca_v0_DataRequest, + requestDeserialize: deserialize_mythos_wacca_v0_DataRequest, + responseSerialize: serialize_mythos_wacca_v0_DataResponse, + responseDeserialize: deserialize_mythos_wacca_v0_DataResponse, + }, + getPlaylog: { + path: "/mythos.wacca.v0.WaccaUser/GetPlaylog", + requestStream: false, + responseStream: true, + requestType: wacca_user_pb.PlaylogRequest, + responseType: wacca_user_pb.PlaylogStreamItem, + requestSerialize: serialize_mythos_wacca_v0_PlaylogRequest, + requestDeserialize: deserialize_mythos_wacca_v0_PlaylogRequest, + responseSerialize: serialize_mythos_wacca_v0_PlaylogStreamItem, + responseDeserialize: deserialize_mythos_wacca_v0_PlaylogStreamItem, + }, + // +}); -var WaccaUserService = exports.WaccaUserService = { - getData: { - path: '/mythos.wacca.v0.WaccaUser/GetData', - requestStream: false, - responseStream: false, - requestType: wacca_user_pb.DataRequest, - responseType: wacca_user_pb.DataResponse, - requestSerialize: serialize_mythos_wacca_v0_DataRequest, - requestDeserialize: deserialize_mythos_wacca_v0_DataRequest, - responseSerialize: serialize_mythos_wacca_v0_DataResponse, - responseDeserialize: deserialize_mythos_wacca_v0_DataResponse, - }, - getPlaylog: { - path: '/mythos.wacca.v0.WaccaUser/GetPlaylog', - requestStream: false, - responseStream: true, - requestType: wacca_user_pb.PlaylogRequest, - responseType: wacca_user_pb.PlaylogStreamItem, - requestSerialize: serialize_mythos_wacca_v0_PlaylogRequest, - requestDeserialize: deserialize_mythos_wacca_v0_PlaylogRequest, - responseSerialize: serialize_mythos_wacca_v0_PlaylogStreamItem, - responseDeserialize: deserialize_mythos_wacca_v0_PlaylogStreamItem, - }, - // -}; - -exports.WaccaUserClient = grpc.makeGenericClientConstructor(WaccaUserService, 'WaccaUser'); +exports.WaccaUserClient = grpc.makeGenericClientConstructor(WaccaUserService, "WaccaUser"); diff --git a/typescript/server/src/proto/generated/wacca/user_pb.d.ts b/typescript/server/src/proto/generated/wacca/user_pb.d.ts index ce1748b60..1450c16b1 100644 --- a/typescript/server/src/proto/generated/wacca/user_pb.d.ts +++ b/typescript/server/src/proto/generated/wacca/user_pb.d.ts @@ -5,274 +5,302 @@ import * as jspb from "google-protobuf"; import * as wacca_common_pb from "../wacca/common_pb"; export class DataRequest extends jspb.Message { - getApiId(): string; - setApiId(value: string): void; + getApiId(): string; + setApiId(value: string): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DataRequest.AsObject; - static toObject(includeInstance: boolean, msg: DataRequest): DataRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DataRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DataRequest; - static deserializeBinaryFromReader(message: DataRequest, reader: jspb.BinaryReader): DataRequest; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DataRequest.AsObject; + static toObject(includeInstance: boolean, msg: DataRequest): DataRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo }; + static serializeBinaryToWriter(message: DataRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DataRequest; + static deserializeBinaryFromReader( + message: DataRequest, + reader: jspb.BinaryReader, + ): DataRequest; } export namespace DataRequest { - export type AsObject = { - apiId: string, - } + export type AsObject = { + apiId: string; + }; } export class DataResponse extends jspb.Message { - getUserName(): string; - setUserName(value: string): void; + getUserName(): string; + setUserName(value: string): void; - getExp(): number; - setExp(value: number): void; + getExp(): number; + setExp(value: number): void; - getPoints(): number; - setPoints(value: number): void; + getPoints(): number; + setPoints(value: number): void; - clearFavoriteMusicEntriesList(): void; - getFavoriteMusicEntriesList(): Array; - setFavoriteMusicEntriesList(value: Array): void; - addFavoriteMusicEntries(value: number, index?: number): number; + clearFavoriteMusicEntriesList(): void; + getFavoriteMusicEntriesList(): Array; + setFavoriteMusicEntriesList(value: Array): void; + addFavoriteMusicEntries(value: number, index?: number): number; - getVersionDataMap(): jspb.Map; - clearVersionDataMap(): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DataResponse.AsObject; - static toObject(includeInstance: boolean, msg: DataResponse): DataResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DataResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DataResponse; - static deserializeBinaryFromReader(message: DataResponse, reader: jspb.BinaryReader): DataResponse; + getVersionDataMap(): jspb.Map; + clearVersionDataMap(): void; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DataResponse.AsObject; + static toObject(includeInstance: boolean, msg: DataResponse): DataResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo }; + static serializeBinaryToWriter(message: DataResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DataResponse; + static deserializeBinaryFromReader( + message: DataResponse, + reader: jspb.BinaryReader, + ): DataResponse; } export namespace DataResponse { - export type AsObject = { - userName: string, - exp: number, - points: number, - favoriteMusicEntriesList: Array, - versionDataMap: Array<[number, DataResponse.VersionData.AsObject]>, - } + export type AsObject = { + userName: string; + exp: number; + points: number; + favoriteMusicEntriesList: Array; + versionDataMap: Array<[number, DataResponse.VersionData.AsObject]>; + }; - export class VersionData extends jspb.Message { - getRank(): number; - setRank(value: number): void; + export class VersionData extends jspb.Message { + getRank(): number; + setRank(value: number): void; - getDanRank(): number; - setDanRank(value: number): void; + getDanRank(): number; + setDanRank(value: number): void; - getRating(): number; - setRating(value: number): void; + getRating(): number; + setRating(value: number): void; - clearTitlePartIdsList(): void; - getTitlePartIdsList(): Array; - setTitlePartIdsList(value: Array): void; - addTitlePartIds(value: number, index?: number): number; + clearTitlePartIdsList(): void; + getTitlePartIdsList(): Array; + setTitlePartIdsList(value: Array): void; + addTitlePartIds(value: number, index?: number): number; - getLastAppVersion(): string; - setLastAppVersion(value: string): void; + getLastAppVersion(): string; + setLastAppVersion(value: string): void; - hasLastSong(): boolean; - clearLastSong(): void; - getLastSong(): DataResponse.VersionData.LastSong | undefined; - setLastSong(value?: DataResponse.VersionData.LastSong): void; + hasLastSong(): boolean; + clearLastSong(): void; + getLastSong(): DataResponse.VersionData.LastSong | undefined; + setLastSong(value?: DataResponse.VersionData.LastSong): void; - getLastSongSort(): number; - setLastSongSort(value: number): void; + getLastSongSort(): number; + setLastSongSort(value: number): void; - getLastFolder(): number; - setLastFolder(value: number): void; + getLastFolder(): number; + setLastFolder(value: number): void; - getLastFolderSort(): number; - setLastFolderSort(value: number): void; + getLastFolderSort(): number; + setLastFolderSort(value: number): void; - getLastBrowsedSongList(): string; - setLastBrowsedSongList(value: string): void; + getLastBrowsedSongList(): string; + setLastBrowsedSongList(value: string): void; - getTutorialStateMap(): jspb.Map; - clearTutorialStateMap(): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VersionData.AsObject; - static toObject(includeInstance: boolean, msg: VersionData): VersionData.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: VersionData, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VersionData; - static deserializeBinaryFromReader(message: VersionData, reader: jspb.BinaryReader): VersionData; - } + getTutorialStateMap(): jspb.Map; + clearTutorialStateMap(): void; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): VersionData.AsObject; + static toObject(includeInstance: boolean, msg: VersionData): VersionData.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo }; + static serializeBinaryToWriter(message: VersionData, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): VersionData; + static deserializeBinaryFromReader( + message: VersionData, + reader: jspb.BinaryReader, + ): VersionData; + } - export namespace VersionData { - export type AsObject = { - rank: number, - danRank: number, - rating: number, - titlePartIdsList: Array, - lastAppVersion: string, - lastSong?: DataResponse.VersionData.LastSong.AsObject, - lastSongSort: number, - lastFolder: number, - lastFolderSort: number, - lastBrowsedSongList: string, - tutorialStateMap: Array<[number, boolean]>, - } + export namespace VersionData { + export type AsObject = { + rank: number; + danRank: number; + rating: number; + titlePartIdsList: Array; + lastAppVersion: string; + lastSong?: DataResponse.VersionData.LastSong.AsObject; + lastSongSort: number; + lastFolder: number; + lastFolderSort: number; + lastBrowsedSongList: string; + tutorialStateMap: Array<[number, boolean]>; + }; - export class LastSong extends jspb.Message { - getMusicId(): number; - setMusicId(value: number): void; + export class LastSong extends jspb.Message { + getMusicId(): number; + setMusicId(value: number): void; - getMusicDifficulty(): wacca_common_pb.WaccaMusicDifficultyMap[keyof wacca_common_pb.WaccaMusicDifficultyMap]; - setMusicDifficulty(value: wacca_common_pb.WaccaMusicDifficultyMap[keyof wacca_common_pb.WaccaMusicDifficultyMap]): void; + getMusicDifficulty(): wacca_common_pb.WaccaMusicDifficultyMap[keyof wacca_common_pb.WaccaMusicDifficultyMap]; + setMusicDifficulty( + value: wacca_common_pb.WaccaMusicDifficultyMap[keyof wacca_common_pb.WaccaMusicDifficultyMap], + ): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LastSong.AsObject; - static toObject(includeInstance: boolean, msg: LastSong): LastSong.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LastSong, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LastSong; - static deserializeBinaryFromReader(message: LastSong, reader: jspb.BinaryReader): LastSong; - } + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): LastSong.AsObject; + static toObject(includeInstance: boolean, msg: LastSong): LastSong.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo }; + static serializeBinaryToWriter(message: LastSong, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): LastSong; + static deserializeBinaryFromReader( + message: LastSong, + reader: jspb.BinaryReader, + ): LastSong; + } - export namespace LastSong { - export type AsObject = { - musicId: number, - musicDifficulty: wacca_common_pb.WaccaMusicDifficultyMap[keyof wacca_common_pb.WaccaMusicDifficultyMap], - } - } - } + export namespace LastSong { + export type AsObject = { + musicId: number; + musicDifficulty: wacca_common_pb.WaccaMusicDifficultyMap[keyof wacca_common_pb.WaccaMusicDifficultyMap]; + }; + } + } } export class PlaylogRequest extends jspb.Message { - getApiId(): string; - setApiId(value: string): void; + getApiId(): string; + setApiId(value: string): void; - hasMusicId(): boolean; - clearMusicId(): void; - getMusicId(): number; - setMusicId(value: number): void; + hasMusicId(): boolean; + clearMusicId(): void; + getMusicId(): number; + setMusicId(value: number): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PlaylogRequest.AsObject; - static toObject(includeInstance: boolean, msg: PlaylogRequest): PlaylogRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PlaylogRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PlaylogRequest; - static deserializeBinaryFromReader(message: PlaylogRequest, reader: jspb.BinaryReader): PlaylogRequest; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PlaylogRequest.AsObject; + static toObject(includeInstance: boolean, msg: PlaylogRequest): PlaylogRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo }; + static serializeBinaryToWriter(message: PlaylogRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PlaylogRequest; + static deserializeBinaryFromReader( + message: PlaylogRequest, + reader: jspb.BinaryReader, + ): PlaylogRequest; } export namespace PlaylogRequest { - export type AsObject = { - apiId: string, - musicId: number, - } + export type AsObject = { + apiId: string; + musicId: number; + }; } export class PlaylogStreamItem extends jspb.Message { - getPlaylogApiId(): string; - setPlaylogApiId(value: string): void; + getPlaylogApiId(): string; + setPlaylogApiId(value: string): void; - hasInfo(): boolean; - clearInfo(): void; - getInfo(): PlaylogInfo | undefined; - setInfo(value?: PlaylogInfo): void; + hasInfo(): boolean; + clearInfo(): void; + getInfo(): PlaylogInfo | undefined; + setInfo(value?: PlaylogInfo): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PlaylogStreamItem.AsObject; - static toObject(includeInstance: boolean, msg: PlaylogStreamItem): PlaylogStreamItem.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PlaylogStreamItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PlaylogStreamItem; - static deserializeBinaryFromReader(message: PlaylogStreamItem, reader: jspb.BinaryReader): PlaylogStreamItem; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PlaylogStreamItem.AsObject; + static toObject(includeInstance: boolean, msg: PlaylogStreamItem): PlaylogStreamItem.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo }; + static serializeBinaryToWriter(message: PlaylogStreamItem, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PlaylogStreamItem; + static deserializeBinaryFromReader( + message: PlaylogStreamItem, + reader: jspb.BinaryReader, + ): PlaylogStreamItem; } export namespace PlaylogStreamItem { - export type AsObject = { - playlogApiId: string, - info?: PlaylogInfo.AsObject, - } + export type AsObject = { + playlogApiId: string; + info?: PlaylogInfo.AsObject; + }; } export class PlaylogInfo extends jspb.Message { - getMusicId(): number; - setMusicId(value: number): void; + getMusicId(): number; + setMusicId(value: number): void; - getMusicDifficulty(): wacca_common_pb.WaccaMusicDifficultyMap[keyof wacca_common_pb.WaccaMusicDifficultyMap]; - setMusicDifficulty(value: wacca_common_pb.WaccaMusicDifficultyMap[keyof wacca_common_pb.WaccaMusicDifficultyMap]): void; + getMusicDifficulty(): wacca_common_pb.WaccaMusicDifficultyMap[keyof wacca_common_pb.WaccaMusicDifficultyMap]; + setMusicDifficulty( + value: wacca_common_pb.WaccaMusicDifficultyMap[keyof wacca_common_pb.WaccaMusicDifficultyMap], + ): void; - getScore(): number; - setScore(value: number): void; + getScore(): number; + setScore(value: number): void; - getGrade(): wacca_common_pb.WaccaMusicScoreGradeMap[keyof wacca_common_pb.WaccaMusicScoreGradeMap]; - setGrade(value: wacca_common_pb.WaccaMusicScoreGradeMap[keyof wacca_common_pb.WaccaMusicScoreGradeMap]): void; + getGrade(): wacca_common_pb.WaccaMusicScoreGradeMap[keyof wacca_common_pb.WaccaMusicScoreGradeMap]; + setGrade( + value: wacca_common_pb.WaccaMusicScoreGradeMap[keyof wacca_common_pb.WaccaMusicScoreGradeMap], + ): void; - hasJudge(): boolean; - clearJudge(): void; - getJudge(): wacca_common_pb.WaccaJudge | undefined; - setJudge(value?: wacca_common_pb.WaccaJudge): void; + hasJudge(): boolean; + clearJudge(): void; + getJudge(): wacca_common_pb.WaccaJudge | undefined; + setJudge(value?: wacca_common_pb.WaccaJudge): void; - hasClearStatus(): boolean; - clearClearStatus(): void; - getClearStatus(): wacca_common_pb.WaccaClearStatus | undefined; - setClearStatus(value?: wacca_common_pb.WaccaClearStatus): void; + hasClearStatus(): boolean; + clearClearStatus(): void; + getClearStatus(): wacca_common_pb.WaccaClearStatus | undefined; + setClearStatus(value?: wacca_common_pb.WaccaClearStatus): void; - getIsNewRecord(): boolean; - setIsNewRecord(value: boolean): void; + getIsNewRecord(): boolean; + setIsNewRecord(value: boolean): void; - getCombo(): number; - setCombo(value: number): void; + getCombo(): number; + setCombo(value: number): void; - getSkillPoints(): number; - setSkillPoints(value: number): void; + getSkillPoints(): number; + setSkillPoints(value: number): void; - getFast(): number; - setFast(value: number): void; + getFast(): number; + setFast(value: number): void; - getLate(): number; - setLate(value: number): void; + getLate(): number; + setLate(value: number): void; - getUserPlayMode(): wacca_common_pb.WaccaPlayModeMap[keyof wacca_common_pb.WaccaPlayModeMap]; - setUserPlayMode(value: wacca_common_pb.WaccaPlayModeMap[keyof wacca_common_pb.WaccaPlayModeMap]): void; + getUserPlayMode(): wacca_common_pb.WaccaPlayModeMap[keyof wacca_common_pb.WaccaPlayModeMap]; + setUserPlayMode( + value: wacca_common_pb.WaccaPlayModeMap[keyof wacca_common_pb.WaccaPlayModeMap], + ): void; - getTrack(): number; - setTrack(value: number): void; + getTrack(): number; + setTrack(value: number): void; - getUserPlayDate(): string; - setUserPlayDate(value: string): void; + getUserPlayDate(): string; + setUserPlayDate(value: string): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PlaylogInfo.AsObject; - static toObject(includeInstance: boolean, msg: PlaylogInfo): PlaylogInfo.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PlaylogInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PlaylogInfo; - static deserializeBinaryFromReader(message: PlaylogInfo, reader: jspb.BinaryReader): PlaylogInfo; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PlaylogInfo.AsObject; + static toObject(includeInstance: boolean, msg: PlaylogInfo): PlaylogInfo.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo }; + static serializeBinaryToWriter(message: PlaylogInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PlaylogInfo; + static deserializeBinaryFromReader( + message: PlaylogInfo, + reader: jspb.BinaryReader, + ): PlaylogInfo; } export namespace PlaylogInfo { - export type AsObject = { - musicId: number, - musicDifficulty: wacca_common_pb.WaccaMusicDifficultyMap[keyof wacca_common_pb.WaccaMusicDifficultyMap], - score: number, - grade: wacca_common_pb.WaccaMusicScoreGradeMap[keyof wacca_common_pb.WaccaMusicScoreGradeMap], - judge?: wacca_common_pb.WaccaJudge.AsObject, - clearStatus?: wacca_common_pb.WaccaClearStatus.AsObject, - isNewRecord: boolean, - combo: number, - skillPoints: number, - fast: number, - late: number, - userPlayMode: wacca_common_pb.WaccaPlayModeMap[keyof wacca_common_pb.WaccaPlayModeMap], - track: number, - userPlayDate: string, - } + export type AsObject = { + musicId: number; + musicDifficulty: wacca_common_pb.WaccaMusicDifficultyMap[keyof wacca_common_pb.WaccaMusicDifficultyMap]; + score: number; + grade: wacca_common_pb.WaccaMusicScoreGradeMap[keyof wacca_common_pb.WaccaMusicScoreGradeMap]; + judge?: wacca_common_pb.WaccaJudge.AsObject; + clearStatus?: wacca_common_pb.WaccaClearStatus.AsObject; + isNewRecord: boolean; + combo: number; + skillPoints: number; + fast: number; + late: number; + userPlayMode: wacca_common_pb.WaccaPlayModeMap[keyof wacca_common_pb.WaccaPlayModeMap]; + track: number; + userPlayDate: string; + }; } - diff --git a/typescript/server/src/proto/generated/wacca/user_pb.js b/typescript/server/src/proto/generated/wacca/user_pb.js index 2f544015b..ce9bf0e58 100644 --- a/typescript/server/src/proto/generated/wacca/user_pb.js +++ b/typescript/server/src/proto/generated/wacca/user_pb.js @@ -11,25 +11,33 @@ /* eslint-disable */ // @ts-nocheck -var jspb = require('google-protobuf'); +var jspb = require("google-protobuf"); var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); +var global = function () { + if (this) { + return this; + } + if (typeof window !== "undefined") { + return window; + } + if (typeof global !== "undefined") { + return global; + } + if (typeof self !== "undefined") { + return self; + } + return Function("return this")(); +}.call(null); -var wacca_common_pb = require('../wacca/common_pb.js'); +var wacca_common_pb = require("../wacca/common_pb.js"); goog.object.extend(proto, wacca_common_pb); -goog.exportSymbol('proto.mythos.wacca.v0.DataRequest', null, global); -goog.exportSymbol('proto.mythos.wacca.v0.DataResponse', null, global); -goog.exportSymbol('proto.mythos.wacca.v0.DataResponse.VersionData', null, global); -goog.exportSymbol('proto.mythos.wacca.v0.DataResponse.VersionData.LastSong', null, global); -goog.exportSymbol('proto.mythos.wacca.v0.PlaylogInfo', null, global); -goog.exportSymbol('proto.mythos.wacca.v0.PlaylogRequest', null, global); -goog.exportSymbol('proto.mythos.wacca.v0.PlaylogStreamItem', null, global); +goog.exportSymbol("proto.mythos.wacca.v0.DataRequest", null, global); +goog.exportSymbol("proto.mythos.wacca.v0.DataResponse", null, global); +goog.exportSymbol("proto.mythos.wacca.v0.DataResponse.VersionData", null, global); +goog.exportSymbol("proto.mythos.wacca.v0.DataResponse.VersionData.LastSong", null, global); +goog.exportSymbol("proto.mythos.wacca.v0.PlaylogInfo", null, global); +goog.exportSymbol("proto.mythos.wacca.v0.PlaylogRequest", null, global); +goog.exportSymbol("proto.mythos.wacca.v0.PlaylogStreamItem", null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -40,16 +48,16 @@ goog.exportSymbol('proto.mythos.wacca.v0.PlaylogStreamItem', null, global); * @extends {jspb.Message} * @constructor */ -proto.mythos.wacca.v0.DataRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.mythos.wacca.v0.DataRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.mythos.wacca.v0.DataRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.mythos.wacca.v0.DataRequest.displayName = 'proto.mythos.wacca.v0.DataRequest'; + /** + * @public + * @override + */ + proto.mythos.wacca.v0.DataRequest.displayName = "proto.mythos.wacca.v0.DataRequest"; } /** * Generated by JsPbCodeGenerator. @@ -61,16 +69,23 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.mythos.wacca.v0.DataResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.mythos.wacca.v0.DataResponse.repeatedFields_, null); +proto.mythos.wacca.v0.DataResponse = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.mythos.wacca.v0.DataResponse.repeatedFields_, + null, + ); }; goog.inherits(proto.mythos.wacca.v0.DataResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.mythos.wacca.v0.DataResponse.displayName = 'proto.mythos.wacca.v0.DataResponse'; + /** + * @public + * @override + */ + proto.mythos.wacca.v0.DataResponse.displayName = "proto.mythos.wacca.v0.DataResponse"; } /** * Generated by JsPbCodeGenerator. @@ -82,16 +97,24 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.mythos.wacca.v0.DataResponse.VersionData = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.mythos.wacca.v0.DataResponse.VersionData.repeatedFields_, null); +proto.mythos.wacca.v0.DataResponse.VersionData = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.mythos.wacca.v0.DataResponse.VersionData.repeatedFields_, + null, + ); }; goog.inherits(proto.mythos.wacca.v0.DataResponse.VersionData, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.mythos.wacca.v0.DataResponse.VersionData.displayName = 'proto.mythos.wacca.v0.DataResponse.VersionData'; + /** + * @public + * @override + */ + proto.mythos.wacca.v0.DataResponse.VersionData.displayName = + "proto.mythos.wacca.v0.DataResponse.VersionData"; } /** * Generated by JsPbCodeGenerator. @@ -103,16 +126,17 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.mythos.wacca.v0.DataResponse.VersionData.LastSong = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.mythos.wacca.v0.DataResponse.VersionData.LastSong = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.mythos.wacca.v0.DataResponse.VersionData.LastSong, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.displayName = 'proto.mythos.wacca.v0.DataResponse.VersionData.LastSong'; + /** + * @public + * @override + */ + proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.displayName = + "proto.mythos.wacca.v0.DataResponse.VersionData.LastSong"; } /** * Generated by JsPbCodeGenerator. @@ -124,16 +148,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.mythos.wacca.v0.PlaylogRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.mythos.wacca.v0.PlaylogRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.mythos.wacca.v0.PlaylogRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.mythos.wacca.v0.PlaylogRequest.displayName = 'proto.mythos.wacca.v0.PlaylogRequest'; + /** + * @public + * @override + */ + proto.mythos.wacca.v0.PlaylogRequest.displayName = "proto.mythos.wacca.v0.PlaylogRequest"; } /** * Generated by JsPbCodeGenerator. @@ -145,16 +169,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.mythos.wacca.v0.PlaylogStreamItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.mythos.wacca.v0.PlaylogStreamItem = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.mythos.wacca.v0.PlaylogStreamItem, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.mythos.wacca.v0.PlaylogStreamItem.displayName = 'proto.mythos.wacca.v0.PlaylogStreamItem'; + /** + * @public + * @override + */ + proto.mythos.wacca.v0.PlaylogStreamItem.displayName = "proto.mythos.wacca.v0.PlaylogStreamItem"; } /** * Generated by JsPbCodeGenerator. @@ -166,72 +190,68 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.mythos.wacca.v0.PlaylogInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.mythos.wacca.v0.PlaylogInfo = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.mythos.wacca.v0.PlaylogInfo, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.mythos.wacca.v0.PlaylogInfo.displayName = 'proto.mythos.wacca.v0.PlaylogInfo'; + /** + * @public + * @override + */ + proto.mythos.wacca.v0.PlaylogInfo.displayName = "proto.mythos.wacca.v0.PlaylogInfo"; } - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.mythos.wacca.v0.DataRequest.prototype.toObject = function(opt_includeInstance) { - return proto.mythos.wacca.v0.DataRequest.toObject(opt_includeInstance, this); -}; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.mythos.wacca.v0.DataRequest.prototype.toObject = function (opt_includeInstance) { + return proto.mythos.wacca.v0.DataRequest.toObject(opt_includeInstance, this); + }; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.mythos.wacca.v0.DataRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.mythos.wacca.v0.DataRequest.toObject = function (includeInstance, msg) { + var f, + obj = { + apiId: jspb.Message.getFieldWithDefault(msg, 1, ""), + }; -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.mythos.wacca.v0.DataRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.mythos.wacca.v0.DataRequest.toObject = function(includeInstance, msg) { - var f, obj = { - apiId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.mythos.wacca.v0.DataRequest} */ -proto.mythos.wacca.v0.DataRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.mythos.wacca.v0.DataRequest; - return proto.mythos.wacca.v0.DataRequest.deserializeBinaryFromReader(msg, reader); +proto.mythos.wacca.v0.DataRequest.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.mythos.wacca.v0.DataRequest(); + return proto.mythos.wacca.v0.DataRequest.deserializeBinaryFromReader(msg, reader); }; - /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. @@ -239,37 +259,35 @@ proto.mythos.wacca.v0.DataRequest.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.mythos.wacca.v0.DataRequest} */ -proto.mythos.wacca.v0.DataRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApiId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.mythos.wacca.v0.DataRequest.deserializeBinaryFromReader = function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setApiId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.mythos.wacca.v0.DataRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.mythos.wacca.v0.DataRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.mythos.wacca.v0.DataRequest.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.mythos.wacca.v0.DataRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; - /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. @@ -277,37 +295,30 @@ proto.mythos.wacca.v0.DataRequest.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.mythos.wacca.v0.DataRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApiId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } +proto.mythos.wacca.v0.DataRequest.serializeBinaryToWriter = function (message, writer) { + var f = undefined; + f = message.getApiId(); + if (f.length > 0) { + writer.writeString(1, f); + } }; - /** * optional string api_id = 1; * @return {string} */ -proto.mythos.wacca.v0.DataRequest.prototype.getApiId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.mythos.wacca.v0.DataRequest.prototype.getApiId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; - /** * @param {string} value * @return {!proto.mythos.wacca.v0.DataRequest} returns this */ -proto.mythos.wacca.v0.DataRequest.prototype.setApiId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.mythos.wacca.v0.DataRequest.prototype.setApiId = function (value) { + return jspb.Message.setProto3StringField(this, 1, value); }; - - /** * List of repeated fields within this message type. * @private {!Array} @@ -315,64 +326,66 @@ proto.mythos.wacca.v0.DataRequest.prototype.setApiId = function(value) { */ proto.mythos.wacca.v0.DataResponse.repeatedFields_ = [4]; - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.mythos.wacca.v0.DataResponse.prototype.toObject = function(opt_includeInstance) { - return proto.mythos.wacca.v0.DataResponse.toObject(opt_includeInstance, this); -}; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.mythos.wacca.v0.DataResponse.prototype.toObject = function (opt_includeInstance) { + return proto.mythos.wacca.v0.DataResponse.toObject(opt_includeInstance, this); + }; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.mythos.wacca.v0.DataResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.mythos.wacca.v0.DataResponse.toObject = function (includeInstance, msg) { + var f, + obj = { + userName: jspb.Message.getFieldWithDefault(msg, 1, ""), + exp: jspb.Message.getFieldWithDefault(msg, 2, 0), + points: jspb.Message.getFieldWithDefault(msg, 3, 0), + favoriteMusicEntriesList: + (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, + versionDataMap: (f = msg.getVersionDataMap()) + ? f.toObject( + includeInstance, + proto.mythos.wacca.v0.DataResponse.VersionData.toObject, + ) + : [], + }; -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.mythos.wacca.v0.DataResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.mythos.wacca.v0.DataResponse.toObject = function(includeInstance, msg) { - var f, obj = { - userName: jspb.Message.getFieldWithDefault(msg, 1, ""), - exp: jspb.Message.getFieldWithDefault(msg, 2, 0), - points: jspb.Message.getFieldWithDefault(msg, 3, 0), - favoriteMusicEntriesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, - versionDataMap: (f = msg.getVersionDataMap()) ? f.toObject(includeInstance, proto.mythos.wacca.v0.DataResponse.VersionData.toObject) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.mythos.wacca.v0.DataResponse} */ -proto.mythos.wacca.v0.DataResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.mythos.wacca.v0.DataResponse; - return proto.mythos.wacca.v0.DataResponse.deserializeBinaryFromReader(msg, reader); +proto.mythos.wacca.v0.DataResponse.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.mythos.wacca.v0.DataResponse(); + return proto.mythos.wacca.v0.DataResponse.deserializeBinaryFromReader(msg, reader); }; - /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. @@ -380,57 +393,65 @@ proto.mythos.wacca.v0.DataResponse.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.mythos.wacca.v0.DataResponse} */ -proto.mythos.wacca.v0.DataResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUserName(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setExp(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt32()); - msg.setPoints(value); - break; - case 4: - var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]); - for (var i = 0; i < values.length; i++) { - msg.addFavoriteMusicEntries(values[i]); - } - break; - case 5: - var value = msg.getVersionDataMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readInt32, jspb.BinaryReader.prototype.readMessage, proto.mythos.wacca.v0.DataResponse.VersionData.deserializeBinaryFromReader, 0, new proto.mythos.wacca.v0.DataResponse.VersionData()); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.mythos.wacca.v0.DataResponse.deserializeBinaryFromReader = function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setUserName(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setExp(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setPoints(value); + break; + case 4: + var values = /** @type {!Array} */ ( + reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()] + ); + for (var i = 0; i < values.length; i++) { + msg.addFavoriteMusicEntries(values[i]); + } + break; + case 5: + var value = msg.getVersionDataMap(); + reader.readMessage(value, function (message, reader) { + jspb.Map.deserializeBinary( + message, + reader, + jspb.BinaryReader.prototype.readInt32, + jspb.BinaryReader.prototype.readMessage, + proto.mythos.wacca.v0.DataResponse.VersionData.deserializeBinaryFromReader, + 0, + new proto.mythos.wacca.v0.DataResponse.VersionData(), + ); + }); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.mythos.wacca.v0.DataResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.mythos.wacca.v0.DataResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.mythos.wacca.v0.DataResponse.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.mythos.wacca.v0.DataResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; - /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. @@ -438,44 +459,36 @@ proto.mythos.wacca.v0.DataResponse.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.mythos.wacca.v0.DataResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getExp(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } - f = message.getPoints(); - if (f !== 0) { - writer.writeInt32( - 3, - f - ); - } - f = message.getFavoriteMusicEntriesList(); - if (f.length > 0) { - writer.writePackedInt32( - 4, - f - ); - } - f = message.getVersionDataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeInt32, jspb.BinaryWriter.prototype.writeMessage, proto.mythos.wacca.v0.DataResponse.VersionData.serializeBinaryToWriter); - } +proto.mythos.wacca.v0.DataResponse.serializeBinaryToWriter = function (message, writer) { + var f = undefined; + f = message.getUserName(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = message.getExp(); + if (f !== 0) { + writer.writeInt32(2, f); + } + f = message.getPoints(); + if (f !== 0) { + writer.writeInt32(3, f); + } + f = message.getFavoriteMusicEntriesList(); + if (f.length > 0) { + writer.writePackedInt32(4, f); + } + f = message.getVersionDataMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary( + 5, + writer, + jspb.BinaryWriter.prototype.writeInt32, + jspb.BinaryWriter.prototype.writeMessage, + proto.mythos.wacca.v0.DataResponse.VersionData.serializeBinaryToWriter, + ); + } }; - - /** * List of repeated fields within this message type. * @private {!Array} @@ -483,70 +496,76 @@ proto.mythos.wacca.v0.DataResponse.serializeBinaryToWriter = function(message, w */ proto.mythos.wacca.v0.DataResponse.VersionData.repeatedFields_ = [4]; - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.mythos.wacca.v0.DataResponse.VersionData.prototype.toObject = function(opt_includeInstance) { - return proto.mythos.wacca.v0.DataResponse.VersionData.toObject(opt_includeInstance, this); -}; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.mythos.wacca.v0.DataResponse.VersionData.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.mythos.wacca.v0.DataResponse.VersionData.toObject(opt_includeInstance, this); + }; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.mythos.wacca.v0.DataResponse.VersionData} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.mythos.wacca.v0.DataResponse.VersionData.toObject = function (includeInstance, msg) { + var f, + obj = { + rank: jspb.Message.getFieldWithDefault(msg, 1, 0), + danRank: jspb.Message.getFieldWithDefault(msg, 2, 0), + rating: jspb.Message.getFieldWithDefault(msg, 3, 0), + titlePartIdsList: + (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, + lastAppVersion: jspb.Message.getFieldWithDefault(msg, 5, ""), + lastSong: + (f = msg.getLastSong()) && + proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.toObject( + includeInstance, + f, + ), + lastSongSort: jspb.Message.getFieldWithDefault(msg, 7, 0), + lastFolder: jspb.Message.getFieldWithDefault(msg, 8, 0), + lastFolderSort: jspb.Message.getFieldWithDefault(msg, 9, 0), + lastBrowsedSongList: jspb.Message.getFieldWithDefault(msg, 10, ""), + tutorialStateMap: (f = msg.getTutorialStateMap()) + ? f.toObject(includeInstance, undefined) + : [], + }; -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.mythos.wacca.v0.DataResponse.VersionData} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.mythos.wacca.v0.DataResponse.VersionData.toObject = function(includeInstance, msg) { - var f, obj = { - rank: jspb.Message.getFieldWithDefault(msg, 1, 0), - danRank: jspb.Message.getFieldWithDefault(msg, 2, 0), - rating: jspb.Message.getFieldWithDefault(msg, 3, 0), - titlePartIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, - lastAppVersion: jspb.Message.getFieldWithDefault(msg, 5, ""), - lastSong: (f = msg.getLastSong()) && proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.toObject(includeInstance, f), - lastSongSort: jspb.Message.getFieldWithDefault(msg, 7, 0), - lastFolder: jspb.Message.getFieldWithDefault(msg, 8, 0), - lastFolderSort: jspb.Message.getFieldWithDefault(msg, 9, 0), - lastBrowsedSongList: jspb.Message.getFieldWithDefault(msg, 10, ""), - tutorialStateMap: (f = msg.getTutorialStateMap()) ? f.toObject(includeInstance, undefined) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.mythos.wacca.v0.DataResponse.VersionData} */ -proto.mythos.wacca.v0.DataResponse.VersionData.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.mythos.wacca.v0.DataResponse.VersionData; - return proto.mythos.wacca.v0.DataResponse.VersionData.deserializeBinaryFromReader(msg, reader); +proto.mythos.wacca.v0.DataResponse.VersionData.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.mythos.wacca.v0.DataResponse.VersionData(); + return proto.mythos.wacca.v0.DataResponse.VersionData.deserializeBinaryFromReader(msg, reader); }; - /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. @@ -554,82 +573,97 @@ proto.mythos.wacca.v0.DataResponse.VersionData.deserializeBinary = function(byte * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.mythos.wacca.v0.DataResponse.VersionData} */ -proto.mythos.wacca.v0.DataResponse.VersionData.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setRank(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setDanRank(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt32()); - msg.setRating(value); - break; - case 4: - var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]); - for (var i = 0; i < values.length; i++) { - msg.addTitlePartIds(values[i]); - } - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setLastAppVersion(value); - break; - case 6: - var value = new proto.mythos.wacca.v0.DataResponse.VersionData.LastSong; - reader.readMessage(value,proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.deserializeBinaryFromReader); - msg.setLastSong(value); - break; - case 7: - var value = /** @type {number} */ (reader.readInt32()); - msg.setLastSongSort(value); - break; - case 8: - var value = /** @type {number} */ (reader.readInt32()); - msg.setLastFolder(value); - break; - case 9: - var value = /** @type {number} */ (reader.readInt32()); - msg.setLastFolderSort(value); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.setLastBrowsedSongList(value); - break; - case 11: - var value = msg.getTutorialStateMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readInt32, jspb.BinaryReader.prototype.readBool, null, 0, false); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.mythos.wacca.v0.DataResponse.VersionData.deserializeBinaryFromReader = function ( + msg, + reader, +) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setRank(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setDanRank(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setRating(value); + break; + case 4: + var values = /** @type {!Array} */ ( + reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()] + ); + for (var i = 0; i < values.length; i++) { + msg.addTitlePartIds(values[i]); + } + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setLastAppVersion(value); + break; + case 6: + var value = new proto.mythos.wacca.v0.DataResponse.VersionData.LastSong(); + reader.readMessage( + value, + proto.mythos.wacca.v0.DataResponse.VersionData.LastSong + .deserializeBinaryFromReader, + ); + msg.setLastSong(value); + break; + case 7: + var value = /** @type {number} */ (reader.readInt32()); + msg.setLastSongSort(value); + break; + case 8: + var value = /** @type {number} */ (reader.readInt32()); + msg.setLastFolder(value); + break; + case 9: + var value = /** @type {number} */ (reader.readInt32()); + msg.setLastFolderSort(value); + break; + case 10: + var value = /** @type {string} */ (reader.readString()); + msg.setLastBrowsedSongList(value); + break; + case 11: + var value = msg.getTutorialStateMap(); + reader.readMessage(value, function (message, reader) { + jspb.Map.deserializeBinary( + message, + reader, + jspb.BinaryReader.prototype.readInt32, + jspb.BinaryReader.prototype.readBool, + null, + 0, + false, + ); + }); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.mythos.wacca.v0.DataResponse.VersionData.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.mythos.wacca.v0.DataResponse.VersionData.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.mythos.wacca.v0.DataResponse.VersionData.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.mythos.wacca.v0.DataResponse.VersionData.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; - /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. @@ -637,142 +671,128 @@ proto.mythos.wacca.v0.DataResponse.VersionData.prototype.serializeBinary = funct * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.mythos.wacca.v0.DataResponse.VersionData.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRank(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getDanRank(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } - f = message.getRating(); - if (f !== 0) { - writer.writeInt32( - 3, - f - ); - } - f = message.getTitlePartIdsList(); - if (f.length > 0) { - writer.writePackedInt32( - 4, - f - ); - } - f = message.getLastAppVersion(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getLastSong(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.serializeBinaryToWriter - ); - } - f = message.getLastSongSort(); - if (f !== 0) { - writer.writeInt32( - 7, - f - ); - } - f = message.getLastFolder(); - if (f !== 0) { - writer.writeInt32( - 8, - f - ); - } - f = message.getLastFolderSort(); - if (f !== 0) { - writer.writeInt32( - 9, - f - ); - } - f = message.getLastBrowsedSongList(); - if (f.length > 0) { - writer.writeString( - 10, - f - ); - } - f = message.getTutorialStateMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(11, writer, jspb.BinaryWriter.prototype.writeInt32, jspb.BinaryWriter.prototype.writeBool); - } +proto.mythos.wacca.v0.DataResponse.VersionData.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined; + f = message.getRank(); + if (f !== 0) { + writer.writeInt32(1, f); + } + f = message.getDanRank(); + if (f !== 0) { + writer.writeInt32(2, f); + } + f = message.getRating(); + if (f !== 0) { + writer.writeInt32(3, f); + } + f = message.getTitlePartIdsList(); + if (f.length > 0) { + writer.writePackedInt32(4, f); + } + f = message.getLastAppVersion(); + if (f.length > 0) { + writer.writeString(5, f); + } + f = message.getLastSong(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.serializeBinaryToWriter, + ); + } + f = message.getLastSongSort(); + if (f !== 0) { + writer.writeInt32(7, f); + } + f = message.getLastFolder(); + if (f !== 0) { + writer.writeInt32(8, f); + } + f = message.getLastFolderSort(); + if (f !== 0) { + writer.writeInt32(9, f); + } + f = message.getLastBrowsedSongList(); + if (f.length > 0) { + writer.writeString(10, f); + } + f = message.getTutorialStateMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary( + 11, + writer, + jspb.BinaryWriter.prototype.writeInt32, + jspb.BinaryWriter.prototype.writeBool, + ); + } }; - - - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.prototype.toObject = function(opt_includeInstance) { - return proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.toObject(opt_includeInstance, this); -}; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.prototype.toObject = function ( + opt_includeInstance, + ) { + return proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.toObject( + opt_includeInstance, + this, + ); + }; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.mythos.wacca.v0.DataResponse.VersionData.LastSong} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.toObject = function ( + includeInstance, + msg, + ) { + var f, + obj = { + musicId: jspb.Message.getFieldWithDefault(msg, 1, 0), + musicDifficulty: jspb.Message.getFieldWithDefault(msg, 2, 0), + }; -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.mythos.wacca.v0.DataResponse.VersionData.LastSong} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.toObject = function(includeInstance, msg) { - var f, obj = { - musicId: jspb.Message.getFieldWithDefault(msg, 1, 0), - musicDifficulty: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.mythos.wacca.v0.DataResponse.VersionData.LastSong} */ -proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.mythos.wacca.v0.DataResponse.VersionData.LastSong; - return proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.deserializeBinaryFromReader(msg, reader); +proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.mythos.wacca.v0.DataResponse.VersionData.LastSong(); + return proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.deserializeBinaryFromReader( + msg, + reader, + ); }; - /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. @@ -780,41 +800,44 @@ proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.deserializeBinary = func * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.mythos.wacca.v0.DataResponse.VersionData.LastSong} */ -proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMusicId(value); - break; - case 2: - var value = /** @type {!proto.mythos.wacca.v0.WaccaMusicDifficulty} */ (reader.readEnum()); - msg.setMusicDifficulty(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.deserializeBinaryFromReader = function ( + msg, + reader, +) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setMusicId(value); + break; + case 2: + var value = /** @type {!proto.mythos.wacca.v0.WaccaMusicDifficulty} */ ( + reader.readEnum() + ); + msg.setMusicDifficulty(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; - /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. @@ -822,470 +845,440 @@ proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.prototype.serializeBinar * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMusicId(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getMusicDifficulty(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } +proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.serializeBinaryToWriter = function ( + message, + writer, +) { + var f = undefined; + f = message.getMusicId(); + if (f !== 0) { + writer.writeInt32(1, f); + } + f = message.getMusicDifficulty(); + if (f !== 0.0) { + writer.writeEnum(2, f); + } }; - /** * optional int32 music_id = 1; * @return {number} */ -proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.prototype.getMusicId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.prototype.getMusicId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; - /** * @param {number} value * @return {!proto.mythos.wacca.v0.DataResponse.VersionData.LastSong} returns this */ -proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.prototype.setMusicId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.prototype.setMusicId = function (value) { + return jspb.Message.setProto3IntField(this, 1, value); }; - /** * optional WaccaMusicDifficulty music_difficulty = 2; * @return {!proto.mythos.wacca.v0.WaccaMusicDifficulty} */ -proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.prototype.getMusicDifficulty = function() { - return /** @type {!proto.mythos.wacca.v0.WaccaMusicDifficulty} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.prototype.getMusicDifficulty = function () { + return /** @type {!proto.mythos.wacca.v0.WaccaMusicDifficulty} */ ( + jspb.Message.getFieldWithDefault(this, 2, 0) + ); }; - /** * @param {!proto.mythos.wacca.v0.WaccaMusicDifficulty} value * @return {!proto.mythos.wacca.v0.DataResponse.VersionData.LastSong} returns this */ -proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.prototype.setMusicDifficulty = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); +proto.mythos.wacca.v0.DataResponse.VersionData.LastSong.prototype.setMusicDifficulty = function ( + value, +) { + return jspb.Message.setProto3EnumField(this, 2, value); }; - /** * optional int32 rank = 1; * @return {number} */ -proto.mythos.wacca.v0.DataResponse.VersionData.prototype.getRank = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.mythos.wacca.v0.DataResponse.VersionData.prototype.getRank = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; - /** * @param {number} value * @return {!proto.mythos.wacca.v0.DataResponse.VersionData} returns this */ -proto.mythos.wacca.v0.DataResponse.VersionData.prototype.setRank = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.mythos.wacca.v0.DataResponse.VersionData.prototype.setRank = function (value) { + return jspb.Message.setProto3IntField(this, 1, value); }; - /** * optional int32 dan_rank = 2; * @return {number} */ -proto.mythos.wacca.v0.DataResponse.VersionData.prototype.getDanRank = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.mythos.wacca.v0.DataResponse.VersionData.prototype.getDanRank = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; - /** * @param {number} value * @return {!proto.mythos.wacca.v0.DataResponse.VersionData} returns this */ -proto.mythos.wacca.v0.DataResponse.VersionData.prototype.setDanRank = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); +proto.mythos.wacca.v0.DataResponse.VersionData.prototype.setDanRank = function (value) { + return jspb.Message.setProto3IntField(this, 2, value); }; - /** * optional int32 rating = 3; * @return {number} */ -proto.mythos.wacca.v0.DataResponse.VersionData.prototype.getRating = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.mythos.wacca.v0.DataResponse.VersionData.prototype.getRating = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; - /** * @param {number} value * @return {!proto.mythos.wacca.v0.DataResponse.VersionData} returns this */ -proto.mythos.wacca.v0.DataResponse.VersionData.prototype.setRating = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.mythos.wacca.v0.DataResponse.VersionData.prototype.setRating = function (value) { + return jspb.Message.setProto3IntField(this, 3, value); }; - /** * repeated int32 title_part_ids = 4; * @return {!Array} */ -proto.mythos.wacca.v0.DataResponse.VersionData.prototype.getTitlePartIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); +proto.mythos.wacca.v0.DataResponse.VersionData.prototype.getTitlePartIdsList = function () { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); }; - /** * @param {!Array} value * @return {!proto.mythos.wacca.v0.DataResponse.VersionData} returns this */ -proto.mythos.wacca.v0.DataResponse.VersionData.prototype.setTitlePartIdsList = function(value) { - return jspb.Message.setField(this, 4, value || []); +proto.mythos.wacca.v0.DataResponse.VersionData.prototype.setTitlePartIdsList = function (value) { + return jspb.Message.setField(this, 4, value || []); }; - /** * @param {number} value * @param {number=} opt_index * @return {!proto.mythos.wacca.v0.DataResponse.VersionData} returns this */ -proto.mythos.wacca.v0.DataResponse.VersionData.prototype.addTitlePartIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 4, value, opt_index); +proto.mythos.wacca.v0.DataResponse.VersionData.prototype.addTitlePartIds = function ( + value, + opt_index, +) { + return jspb.Message.addToRepeatedField(this, 4, value, opt_index); }; - /** * Clears the list making it empty but non-null. * @return {!proto.mythos.wacca.v0.DataResponse.VersionData} returns this */ -proto.mythos.wacca.v0.DataResponse.VersionData.prototype.clearTitlePartIdsList = function() { - return this.setTitlePartIdsList([]); +proto.mythos.wacca.v0.DataResponse.VersionData.prototype.clearTitlePartIdsList = function () { + return this.setTitlePartIdsList([]); }; - /** * optional string last_app_version = 5; * @return {string} */ -proto.mythos.wacca.v0.DataResponse.VersionData.prototype.getLastAppVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +proto.mythos.wacca.v0.DataResponse.VersionData.prototype.getLastAppVersion = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; - /** * @param {string} value * @return {!proto.mythos.wacca.v0.DataResponse.VersionData} returns this */ -proto.mythos.wacca.v0.DataResponse.VersionData.prototype.setLastAppVersion = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); +proto.mythos.wacca.v0.DataResponse.VersionData.prototype.setLastAppVersion = function (value) { + return jspb.Message.setProto3StringField(this, 5, value); }; - /** * optional LastSong last_song = 6; * @return {?proto.mythos.wacca.v0.DataResponse.VersionData.LastSong} */ -proto.mythos.wacca.v0.DataResponse.VersionData.prototype.getLastSong = function() { - return /** @type{?proto.mythos.wacca.v0.DataResponse.VersionData.LastSong} */ ( - jspb.Message.getWrapperField(this, proto.mythos.wacca.v0.DataResponse.VersionData.LastSong, 6)); +proto.mythos.wacca.v0.DataResponse.VersionData.prototype.getLastSong = function () { + return /** @type{?proto.mythos.wacca.v0.DataResponse.VersionData.LastSong} */ ( + jspb.Message.getWrapperField( + this, + proto.mythos.wacca.v0.DataResponse.VersionData.LastSong, + 6, + ) + ); }; - /** * @param {?proto.mythos.wacca.v0.DataResponse.VersionData.LastSong|undefined} value * @return {!proto.mythos.wacca.v0.DataResponse.VersionData} returns this -*/ -proto.mythos.wacca.v0.DataResponse.VersionData.prototype.setLastSong = function(value) { - return jspb.Message.setWrapperField(this, 6, value); + */ +proto.mythos.wacca.v0.DataResponse.VersionData.prototype.setLastSong = function (value) { + return jspb.Message.setWrapperField(this, 6, value); }; - /** * Clears the message field making it undefined. * @return {!proto.mythos.wacca.v0.DataResponse.VersionData} returns this */ -proto.mythos.wacca.v0.DataResponse.VersionData.prototype.clearLastSong = function() { - return this.setLastSong(undefined); +proto.mythos.wacca.v0.DataResponse.VersionData.prototype.clearLastSong = function () { + return this.setLastSong(undefined); }; - /** * Returns whether this field is set. * @return {boolean} */ -proto.mythos.wacca.v0.DataResponse.VersionData.prototype.hasLastSong = function() { - return jspb.Message.getField(this, 6) != null; +proto.mythos.wacca.v0.DataResponse.VersionData.prototype.hasLastSong = function () { + return jspb.Message.getField(this, 6) != null; }; - /** * optional int32 last_song_sort = 7; * @return {number} */ -proto.mythos.wacca.v0.DataResponse.VersionData.prototype.getLastSongSort = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +proto.mythos.wacca.v0.DataResponse.VersionData.prototype.getLastSongSort = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); }; - /** * @param {number} value * @return {!proto.mythos.wacca.v0.DataResponse.VersionData} returns this */ -proto.mythos.wacca.v0.DataResponse.VersionData.prototype.setLastSongSort = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); +proto.mythos.wacca.v0.DataResponse.VersionData.prototype.setLastSongSort = function (value) { + return jspb.Message.setProto3IntField(this, 7, value); }; - /** * optional int32 last_folder = 8; * @return {number} */ -proto.mythos.wacca.v0.DataResponse.VersionData.prototype.getLastFolder = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +proto.mythos.wacca.v0.DataResponse.VersionData.prototype.getLastFolder = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); }; - /** * @param {number} value * @return {!proto.mythos.wacca.v0.DataResponse.VersionData} returns this */ -proto.mythos.wacca.v0.DataResponse.VersionData.prototype.setLastFolder = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); +proto.mythos.wacca.v0.DataResponse.VersionData.prototype.setLastFolder = function (value) { + return jspb.Message.setProto3IntField(this, 8, value); }; - /** * optional int32 last_folder_sort = 9; * @return {number} */ -proto.mythos.wacca.v0.DataResponse.VersionData.prototype.getLastFolderSort = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); +proto.mythos.wacca.v0.DataResponse.VersionData.prototype.getLastFolderSort = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); }; - /** * @param {number} value * @return {!proto.mythos.wacca.v0.DataResponse.VersionData} returns this */ -proto.mythos.wacca.v0.DataResponse.VersionData.prototype.setLastFolderSort = function(value) { - return jspb.Message.setProto3IntField(this, 9, value); +proto.mythos.wacca.v0.DataResponse.VersionData.prototype.setLastFolderSort = function (value) { + return jspb.Message.setProto3IntField(this, 9, value); }; - /** * optional string last_browsed_song_list = 10; * @return {string} */ -proto.mythos.wacca.v0.DataResponse.VersionData.prototype.getLastBrowsedSongList = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); +proto.mythos.wacca.v0.DataResponse.VersionData.prototype.getLastBrowsedSongList = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); }; - /** * @param {string} value * @return {!proto.mythos.wacca.v0.DataResponse.VersionData} returns this */ -proto.mythos.wacca.v0.DataResponse.VersionData.prototype.setLastBrowsedSongList = function(value) { - return jspb.Message.setProto3StringField(this, 10, value); +proto.mythos.wacca.v0.DataResponse.VersionData.prototype.setLastBrowsedSongList = function (value) { + return jspb.Message.setProto3StringField(this, 10, value); }; - /** * map tutorial_state = 11; * @param {boolean=} opt_noLazyCreate Do not create the map if * empty, instead returning `undefined` * @return {!jspb.Map} */ -proto.mythos.wacca.v0.DataResponse.VersionData.prototype.getTutorialStateMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 11, opt_noLazyCreate, - null)); +proto.mythos.wacca.v0.DataResponse.VersionData.prototype.getTutorialStateMap = function ( + opt_noLazyCreate, +) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 11, opt_noLazyCreate, null) + ); }; - /** * Clears values from the map. The map will be non-null. * @return {!proto.mythos.wacca.v0.DataResponse.VersionData} returns this */ -proto.mythos.wacca.v0.DataResponse.VersionData.prototype.clearTutorialStateMap = function() { - this.getTutorialStateMap().clear(); - return this;}; - +proto.mythos.wacca.v0.DataResponse.VersionData.prototype.clearTutorialStateMap = function () { + this.getTutorialStateMap().clear(); + return this; +}; /** * optional string user_name = 1; * @return {string} */ -proto.mythos.wacca.v0.DataResponse.prototype.getUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.mythos.wacca.v0.DataResponse.prototype.getUserName = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; - /** * @param {string} value * @return {!proto.mythos.wacca.v0.DataResponse} returns this */ -proto.mythos.wacca.v0.DataResponse.prototype.setUserName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.mythos.wacca.v0.DataResponse.prototype.setUserName = function (value) { + return jspb.Message.setProto3StringField(this, 1, value); }; - /** * optional int32 exp = 2; * @return {number} */ -proto.mythos.wacca.v0.DataResponse.prototype.getExp = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.mythos.wacca.v0.DataResponse.prototype.getExp = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; - /** * @param {number} value * @return {!proto.mythos.wacca.v0.DataResponse} returns this */ -proto.mythos.wacca.v0.DataResponse.prototype.setExp = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); +proto.mythos.wacca.v0.DataResponse.prototype.setExp = function (value) { + return jspb.Message.setProto3IntField(this, 2, value); }; - /** * optional int32 points = 3; * @return {number} */ -proto.mythos.wacca.v0.DataResponse.prototype.getPoints = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.mythos.wacca.v0.DataResponse.prototype.getPoints = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; - /** * @param {number} value * @return {!proto.mythos.wacca.v0.DataResponse} returns this */ -proto.mythos.wacca.v0.DataResponse.prototype.setPoints = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.mythos.wacca.v0.DataResponse.prototype.setPoints = function (value) { + return jspb.Message.setProto3IntField(this, 3, value); }; - /** * repeated int32 favorite_music_entries = 4; * @return {!Array} */ -proto.mythos.wacca.v0.DataResponse.prototype.getFavoriteMusicEntriesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); +proto.mythos.wacca.v0.DataResponse.prototype.getFavoriteMusicEntriesList = function () { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); }; - /** * @param {!Array} value * @return {!proto.mythos.wacca.v0.DataResponse} returns this */ -proto.mythos.wacca.v0.DataResponse.prototype.setFavoriteMusicEntriesList = function(value) { - return jspb.Message.setField(this, 4, value || []); +proto.mythos.wacca.v0.DataResponse.prototype.setFavoriteMusicEntriesList = function (value) { + return jspb.Message.setField(this, 4, value || []); }; - /** * @param {number} value * @param {number=} opt_index * @return {!proto.mythos.wacca.v0.DataResponse} returns this */ -proto.mythos.wacca.v0.DataResponse.prototype.addFavoriteMusicEntries = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 4, value, opt_index); +proto.mythos.wacca.v0.DataResponse.prototype.addFavoriteMusicEntries = function (value, opt_index) { + return jspb.Message.addToRepeatedField(this, 4, value, opt_index); }; - /** * Clears the list making it empty but non-null. * @return {!proto.mythos.wacca.v0.DataResponse} returns this */ -proto.mythos.wacca.v0.DataResponse.prototype.clearFavoriteMusicEntriesList = function() { - return this.setFavoriteMusicEntriesList([]); +proto.mythos.wacca.v0.DataResponse.prototype.clearFavoriteMusicEntriesList = function () { + return this.setFavoriteMusicEntriesList([]); }; - /** * map version_data = 5; * @param {boolean=} opt_noLazyCreate Do not create the map if * empty, instead returning `undefined` * @return {!jspb.Map} */ -proto.mythos.wacca.v0.DataResponse.prototype.getVersionDataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 5, opt_noLazyCreate, - proto.mythos.wacca.v0.DataResponse.VersionData)); +proto.mythos.wacca.v0.DataResponse.prototype.getVersionDataMap = function (opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField( + this, + 5, + opt_noLazyCreate, + proto.mythos.wacca.v0.DataResponse.VersionData, + ) + ); }; - /** * Clears values from the map. The map will be non-null. * @return {!proto.mythos.wacca.v0.DataResponse} returns this */ -proto.mythos.wacca.v0.DataResponse.prototype.clearVersionDataMap = function() { - this.getVersionDataMap().clear(); - return this;}; - - - - +proto.mythos.wacca.v0.DataResponse.prototype.clearVersionDataMap = function () { + this.getVersionDataMap().clear(); + return this; +}; if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.mythos.wacca.v0.PlaylogRequest.prototype.toObject = function(opt_includeInstance) { - return proto.mythos.wacca.v0.PlaylogRequest.toObject(opt_includeInstance, this); -}; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.mythos.wacca.v0.PlaylogRequest.prototype.toObject = function (opt_includeInstance) { + return proto.mythos.wacca.v0.PlaylogRequest.toObject(opt_includeInstance, this); + }; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.mythos.wacca.v0.PlaylogRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.mythos.wacca.v0.PlaylogRequest.toObject = function (includeInstance, msg) { + var f, + obj = { + apiId: jspb.Message.getFieldWithDefault(msg, 1, ""), + musicId: jspb.Message.getFieldWithDefault(msg, 2, 0), + }; -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.mythos.wacca.v0.PlaylogRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.mythos.wacca.v0.PlaylogRequest.toObject = function(includeInstance, msg) { - var f, obj = { - apiId: jspb.Message.getFieldWithDefault(msg, 1, ""), - musicId: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.mythos.wacca.v0.PlaylogRequest} */ -proto.mythos.wacca.v0.PlaylogRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.mythos.wacca.v0.PlaylogRequest; - return proto.mythos.wacca.v0.PlaylogRequest.deserializeBinaryFromReader(msg, reader); +proto.mythos.wacca.v0.PlaylogRequest.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.mythos.wacca.v0.PlaylogRequest(); + return proto.mythos.wacca.v0.PlaylogRequest.deserializeBinaryFromReader(msg, reader); }; - /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. @@ -1293,41 +1286,39 @@ proto.mythos.wacca.v0.PlaylogRequest.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.mythos.wacca.v0.PlaylogRequest} */ -proto.mythos.wacca.v0.PlaylogRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApiId(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMusicId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.mythos.wacca.v0.PlaylogRequest.deserializeBinaryFromReader = function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setApiId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setMusicId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.mythos.wacca.v0.PlaylogRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.mythos.wacca.v0.PlaylogRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.mythos.wacca.v0.PlaylogRequest.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.mythos.wacca.v0.PlaylogRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; - /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. @@ -1335,135 +1326,119 @@ proto.mythos.wacca.v0.PlaylogRequest.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.mythos.wacca.v0.PlaylogRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApiId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeInt32( - 2, - f - ); - } +proto.mythos.wacca.v0.PlaylogRequest.serializeBinaryToWriter = function (message, writer) { + var f = undefined; + f = message.getApiId(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = /** @type {number} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeInt32(2, f); + } }; - /** * optional string api_id = 1; * @return {string} */ -proto.mythos.wacca.v0.PlaylogRequest.prototype.getApiId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.mythos.wacca.v0.PlaylogRequest.prototype.getApiId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; - /** * @param {string} value * @return {!proto.mythos.wacca.v0.PlaylogRequest} returns this */ -proto.mythos.wacca.v0.PlaylogRequest.prototype.setApiId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.mythos.wacca.v0.PlaylogRequest.prototype.setApiId = function (value) { + return jspb.Message.setProto3StringField(this, 1, value); }; - /** * optional int32 music_id = 2; * @return {number} */ -proto.mythos.wacca.v0.PlaylogRequest.prototype.getMusicId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.mythos.wacca.v0.PlaylogRequest.prototype.getMusicId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; - /** * @param {number} value * @return {!proto.mythos.wacca.v0.PlaylogRequest} returns this */ -proto.mythos.wacca.v0.PlaylogRequest.prototype.setMusicId = function(value) { - return jspb.Message.setField(this, 2, value); +proto.mythos.wacca.v0.PlaylogRequest.prototype.setMusicId = function (value) { + return jspb.Message.setField(this, 2, value); }; - /** * Clears the field making it undefined. * @return {!proto.mythos.wacca.v0.PlaylogRequest} returns this */ -proto.mythos.wacca.v0.PlaylogRequest.prototype.clearMusicId = function() { - return jspb.Message.setField(this, 2, undefined); +proto.mythos.wacca.v0.PlaylogRequest.prototype.clearMusicId = function () { + return jspb.Message.setField(this, 2, undefined); }; - /** * Returns whether this field is set. * @return {boolean} */ -proto.mythos.wacca.v0.PlaylogRequest.prototype.hasMusicId = function() { - return jspb.Message.getField(this, 2) != null; +proto.mythos.wacca.v0.PlaylogRequest.prototype.hasMusicId = function () { + return jspb.Message.getField(this, 2) != null; }; - - - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.mythos.wacca.v0.PlaylogStreamItem.prototype.toObject = function(opt_includeInstance) { - return proto.mythos.wacca.v0.PlaylogStreamItem.toObject(opt_includeInstance, this); -}; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.mythos.wacca.v0.PlaylogStreamItem.prototype.toObject = function (opt_includeInstance) { + return proto.mythos.wacca.v0.PlaylogStreamItem.toObject(opt_includeInstance, this); + }; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.mythos.wacca.v0.PlaylogStreamItem} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.mythos.wacca.v0.PlaylogStreamItem.toObject = function (includeInstance, msg) { + var f, + obj = { + playlogApiId: jspb.Message.getFieldWithDefault(msg, 1, ""), + info: + (f = msg.getInfo()) && + proto.mythos.wacca.v0.PlaylogInfo.toObject(includeInstance, f), + }; -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.mythos.wacca.v0.PlaylogStreamItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.mythos.wacca.v0.PlaylogStreamItem.toObject = function(includeInstance, msg) { - var f, obj = { - playlogApiId: jspb.Message.getFieldWithDefault(msg, 1, ""), - info: (f = msg.getInfo()) && proto.mythos.wacca.v0.PlaylogInfo.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.mythos.wacca.v0.PlaylogStreamItem} */ -proto.mythos.wacca.v0.PlaylogStreamItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.mythos.wacca.v0.PlaylogStreamItem; - return proto.mythos.wacca.v0.PlaylogStreamItem.deserializeBinaryFromReader(msg, reader); +proto.mythos.wacca.v0.PlaylogStreamItem.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.mythos.wacca.v0.PlaylogStreamItem(); + return proto.mythos.wacca.v0.PlaylogStreamItem.deserializeBinaryFromReader(msg, reader); }; - /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. @@ -1471,42 +1446,43 @@ proto.mythos.wacca.v0.PlaylogStreamItem.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.mythos.wacca.v0.PlaylogStreamItem} */ -proto.mythos.wacca.v0.PlaylogStreamItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPlaylogApiId(value); - break; - case 2: - var value = new proto.mythos.wacca.v0.PlaylogInfo; - reader.readMessage(value,proto.mythos.wacca.v0.PlaylogInfo.deserializeBinaryFromReader); - msg.setInfo(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.mythos.wacca.v0.PlaylogStreamItem.deserializeBinaryFromReader = function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setPlaylogApiId(value); + break; + case 2: + var value = new proto.mythos.wacca.v0.PlaylogInfo(); + reader.readMessage( + value, + proto.mythos.wacca.v0.PlaylogInfo.deserializeBinaryFromReader, + ); + msg.setInfo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.mythos.wacca.v0.PlaylogStreamItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.mythos.wacca.v0.PlaylogStreamItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.mythos.wacca.v0.PlaylogStreamItem.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.mythos.wacca.v0.PlaylogStreamItem.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; - /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. @@ -1514,149 +1490,134 @@ proto.mythos.wacca.v0.PlaylogStreamItem.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.mythos.wacca.v0.PlaylogStreamItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPlaylogApiId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getInfo(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.mythos.wacca.v0.PlaylogInfo.serializeBinaryToWriter - ); - } +proto.mythos.wacca.v0.PlaylogStreamItem.serializeBinaryToWriter = function (message, writer) { + var f = undefined; + f = message.getPlaylogApiId(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = message.getInfo(); + if (f != null) { + writer.writeMessage(2, f, proto.mythos.wacca.v0.PlaylogInfo.serializeBinaryToWriter); + } }; - /** * optional string playlog_api_id = 1; * @return {string} */ -proto.mythos.wacca.v0.PlaylogStreamItem.prototype.getPlaylogApiId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.mythos.wacca.v0.PlaylogStreamItem.prototype.getPlaylogApiId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; - /** * @param {string} value * @return {!proto.mythos.wacca.v0.PlaylogStreamItem} returns this */ -proto.mythos.wacca.v0.PlaylogStreamItem.prototype.setPlaylogApiId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.mythos.wacca.v0.PlaylogStreamItem.prototype.setPlaylogApiId = function (value) { + return jspb.Message.setProto3StringField(this, 1, value); }; - /** * optional PlaylogInfo info = 2; * @return {?proto.mythos.wacca.v0.PlaylogInfo} */ -proto.mythos.wacca.v0.PlaylogStreamItem.prototype.getInfo = function() { - return /** @type{?proto.mythos.wacca.v0.PlaylogInfo} */ ( - jspb.Message.getWrapperField(this, proto.mythos.wacca.v0.PlaylogInfo, 2)); +proto.mythos.wacca.v0.PlaylogStreamItem.prototype.getInfo = function () { + return /** @type{?proto.mythos.wacca.v0.PlaylogInfo} */ ( + jspb.Message.getWrapperField(this, proto.mythos.wacca.v0.PlaylogInfo, 2) + ); }; - /** * @param {?proto.mythos.wacca.v0.PlaylogInfo|undefined} value * @return {!proto.mythos.wacca.v0.PlaylogStreamItem} returns this -*/ -proto.mythos.wacca.v0.PlaylogStreamItem.prototype.setInfo = function(value) { - return jspb.Message.setWrapperField(this, 2, value); + */ +proto.mythos.wacca.v0.PlaylogStreamItem.prototype.setInfo = function (value) { + return jspb.Message.setWrapperField(this, 2, value); }; - /** * Clears the message field making it undefined. * @return {!proto.mythos.wacca.v0.PlaylogStreamItem} returns this */ -proto.mythos.wacca.v0.PlaylogStreamItem.prototype.clearInfo = function() { - return this.setInfo(undefined); +proto.mythos.wacca.v0.PlaylogStreamItem.prototype.clearInfo = function () { + return this.setInfo(undefined); }; - /** * Returns whether this field is set. * @return {boolean} */ -proto.mythos.wacca.v0.PlaylogStreamItem.prototype.hasInfo = function() { - return jspb.Message.getField(this, 2) != null; +proto.mythos.wacca.v0.PlaylogStreamItem.prototype.hasInfo = function () { + return jspb.Message.getField(this, 2) != null; }; - - - - if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.mythos.wacca.v0.PlaylogInfo.prototype.toObject = function(opt_includeInstance) { - return proto.mythos.wacca.v0.PlaylogInfo.toObject(opt_includeInstance, this); -}; + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.mythos.wacca.v0.PlaylogInfo.prototype.toObject = function (opt_includeInstance) { + return proto.mythos.wacca.v0.PlaylogInfo.toObject(opt_includeInstance, this); + }; + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.mythos.wacca.v0.PlaylogInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.mythos.wacca.v0.PlaylogInfo.toObject = function (includeInstance, msg) { + var f, + obj = { + musicId: jspb.Message.getFieldWithDefault(msg, 1, 0), + musicDifficulty: jspb.Message.getFieldWithDefault(msg, 2, 0), + score: jspb.Message.getFieldWithDefault(msg, 3, 0), + grade: jspb.Message.getFieldWithDefault(msg, 4, 0), + judge: + (f = msg.getJudge()) && wacca_common_pb.WaccaJudge.toObject(includeInstance, f), + clearStatus: + (f = msg.getClearStatus()) && + wacca_common_pb.WaccaClearStatus.toObject(includeInstance, f), + isNewRecord: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), + combo: jspb.Message.getFieldWithDefault(msg, 8, 0), + skillPoints: jspb.Message.getFieldWithDefault(msg, 9, 0), + fast: jspb.Message.getFieldWithDefault(msg, 10, 0), + late: jspb.Message.getFieldWithDefault(msg, 11, 0), + userPlayMode: jspb.Message.getFieldWithDefault(msg, 12, 0), + track: jspb.Message.getFieldWithDefault(msg, 13, 0), + userPlayDate: jspb.Message.getFieldWithDefault(msg, 14, ""), + }; -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.mythos.wacca.v0.PlaylogInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.mythos.wacca.v0.PlaylogInfo.toObject = function(includeInstance, msg) { - var f, obj = { - musicId: jspb.Message.getFieldWithDefault(msg, 1, 0), - musicDifficulty: jspb.Message.getFieldWithDefault(msg, 2, 0), - score: jspb.Message.getFieldWithDefault(msg, 3, 0), - grade: jspb.Message.getFieldWithDefault(msg, 4, 0), - judge: (f = msg.getJudge()) && wacca_common_pb.WaccaJudge.toObject(includeInstance, f), - clearStatus: (f = msg.getClearStatus()) && wacca_common_pb.WaccaClearStatus.toObject(includeInstance, f), - isNewRecord: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), - combo: jspb.Message.getFieldWithDefault(msg, 8, 0), - skillPoints: jspb.Message.getFieldWithDefault(msg, 9, 0), - fast: jspb.Message.getFieldWithDefault(msg, 10, 0), - late: jspb.Message.getFieldWithDefault(msg, 11, 0), - userPlayMode: jspb.Message.getFieldWithDefault(msg, 12, 0), - track: jspb.Message.getFieldWithDefault(msg, 13, 0), - userPlayDate: jspb.Message.getFieldWithDefault(msg, 14, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; } - /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.mythos.wacca.v0.PlaylogInfo} */ -proto.mythos.wacca.v0.PlaylogInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.mythos.wacca.v0.PlaylogInfo; - return proto.mythos.wacca.v0.PlaylogInfo.deserializeBinaryFromReader(msg, reader); +proto.mythos.wacca.v0.PlaylogInfo.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.mythos.wacca.v0.PlaylogInfo(); + return proto.mythos.wacca.v0.PlaylogInfo.deserializeBinaryFromReader(msg, reader); }; - /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. @@ -1664,91 +1625,96 @@ proto.mythos.wacca.v0.PlaylogInfo.deserializeBinary = function(bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.mythos.wacca.v0.PlaylogInfo} */ -proto.mythos.wacca.v0.PlaylogInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMusicId(value); - break; - case 2: - var value = /** @type {!proto.mythos.wacca.v0.WaccaMusicDifficulty} */ (reader.readEnum()); - msg.setMusicDifficulty(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt32()); - msg.setScore(value); - break; - case 4: - var value = /** @type {!proto.mythos.wacca.v0.WaccaMusicScoreGrade} */ (reader.readEnum()); - msg.setGrade(value); - break; - case 5: - var value = new wacca_common_pb.WaccaJudge; - reader.readMessage(value,wacca_common_pb.WaccaJudge.deserializeBinaryFromReader); - msg.setJudge(value); - break; - case 6: - var value = new wacca_common_pb.WaccaClearStatus; - reader.readMessage(value,wacca_common_pb.WaccaClearStatus.deserializeBinaryFromReader); - msg.setClearStatus(value); - break; - case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsNewRecord(value); - break; - case 8: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCombo(value); - break; - case 9: - var value = /** @type {number} */ (reader.readInt32()); - msg.setSkillPoints(value); - break; - case 10: - var value = /** @type {number} */ (reader.readInt32()); - msg.setFast(value); - break; - case 11: - var value = /** @type {number} */ (reader.readInt32()); - msg.setLate(value); - break; - case 12: - var value = /** @type {!proto.mythos.wacca.v0.WaccaPlayMode} */ (reader.readEnum()); - msg.setUserPlayMode(value); - break; - case 13: - var value = /** @type {number} */ (reader.readInt32()); - msg.setTrack(value); - break; - case 14: - var value = /** @type {string} */ (reader.readString()); - msg.setUserPlayDate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.mythos.wacca.v0.PlaylogInfo.deserializeBinaryFromReader = function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setMusicId(value); + break; + case 2: + var value = /** @type {!proto.mythos.wacca.v0.WaccaMusicDifficulty} */ ( + reader.readEnum() + ); + msg.setMusicDifficulty(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setScore(value); + break; + case 4: + var value = /** @type {!proto.mythos.wacca.v0.WaccaMusicScoreGrade} */ ( + reader.readEnum() + ); + msg.setGrade(value); + break; + case 5: + var value = new wacca_common_pb.WaccaJudge(); + reader.readMessage(value, wacca_common_pb.WaccaJudge.deserializeBinaryFromReader); + msg.setJudge(value); + break; + case 6: + var value = new wacca_common_pb.WaccaClearStatus(); + reader.readMessage( + value, + wacca_common_pb.WaccaClearStatus.deserializeBinaryFromReader, + ); + msg.setClearStatus(value); + break; + case 7: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsNewRecord(value); + break; + case 8: + var value = /** @type {number} */ (reader.readInt32()); + msg.setCombo(value); + break; + case 9: + var value = /** @type {number} */ (reader.readInt32()); + msg.setSkillPoints(value); + break; + case 10: + var value = /** @type {number} */ (reader.readInt32()); + msg.setFast(value); + break; + case 11: + var value = /** @type {number} */ (reader.readInt32()); + msg.setLate(value); + break; + case 12: + var value = /** @type {!proto.mythos.wacca.v0.WaccaPlayMode} */ (reader.readEnum()); + msg.setUserPlayMode(value); + break; + case 13: + var value = /** @type {number} */ (reader.readInt32()); + msg.setTrack(value); + break; + case 14: + var value = /** @type {string} */ (reader.readString()); + msg.setUserPlayDate(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; - /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.mythos.wacca.v0.PlaylogInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.mythos.wacca.v0.PlaylogInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.mythos.wacca.v0.PlaylogInfo.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.mythos.wacca.v0.PlaylogInfo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; - /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. @@ -1756,399 +1722,330 @@ proto.mythos.wacca.v0.PlaylogInfo.prototype.serializeBinary = function() { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.mythos.wacca.v0.PlaylogInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMusicId(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getMusicDifficulty(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getScore(); - if (f !== 0) { - writer.writeInt32( - 3, - f - ); - } - f = message.getGrade(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } - f = message.getJudge(); - if (f != null) { - writer.writeMessage( - 5, - f, - wacca_common_pb.WaccaJudge.serializeBinaryToWriter - ); - } - f = message.getClearStatus(); - if (f != null) { - writer.writeMessage( - 6, - f, - wacca_common_pb.WaccaClearStatus.serializeBinaryToWriter - ); - } - f = message.getIsNewRecord(); - if (f) { - writer.writeBool( - 7, - f - ); - } - f = message.getCombo(); - if (f !== 0) { - writer.writeInt32( - 8, - f - ); - } - f = message.getSkillPoints(); - if (f !== 0) { - writer.writeInt32( - 9, - f - ); - } - f = message.getFast(); - if (f !== 0) { - writer.writeInt32( - 10, - f - ); - } - f = message.getLate(); - if (f !== 0) { - writer.writeInt32( - 11, - f - ); - } - f = message.getUserPlayMode(); - if (f !== 0.0) { - writer.writeEnum( - 12, - f - ); - } - f = message.getTrack(); - if (f !== 0) { - writer.writeInt32( - 13, - f - ); - } - f = message.getUserPlayDate(); - if (f.length > 0) { - writer.writeString( - 14, - f - ); - } +proto.mythos.wacca.v0.PlaylogInfo.serializeBinaryToWriter = function (message, writer) { + var f = undefined; + f = message.getMusicId(); + if (f !== 0) { + writer.writeInt32(1, f); + } + f = message.getMusicDifficulty(); + if (f !== 0.0) { + writer.writeEnum(2, f); + } + f = message.getScore(); + if (f !== 0) { + writer.writeInt32(3, f); + } + f = message.getGrade(); + if (f !== 0.0) { + writer.writeEnum(4, f); + } + f = message.getJudge(); + if (f != null) { + writer.writeMessage(5, f, wacca_common_pb.WaccaJudge.serializeBinaryToWriter); + } + f = message.getClearStatus(); + if (f != null) { + writer.writeMessage(6, f, wacca_common_pb.WaccaClearStatus.serializeBinaryToWriter); + } + f = message.getIsNewRecord(); + if (f) { + writer.writeBool(7, f); + } + f = message.getCombo(); + if (f !== 0) { + writer.writeInt32(8, f); + } + f = message.getSkillPoints(); + if (f !== 0) { + writer.writeInt32(9, f); + } + f = message.getFast(); + if (f !== 0) { + writer.writeInt32(10, f); + } + f = message.getLate(); + if (f !== 0) { + writer.writeInt32(11, f); + } + f = message.getUserPlayMode(); + if (f !== 0.0) { + writer.writeEnum(12, f); + } + f = message.getTrack(); + if (f !== 0) { + writer.writeInt32(13, f); + } + f = message.getUserPlayDate(); + if (f.length > 0) { + writer.writeString(14, f); + } }; - /** * optional int32 music_id = 1; * @return {number} */ -proto.mythos.wacca.v0.PlaylogInfo.prototype.getMusicId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.mythos.wacca.v0.PlaylogInfo.prototype.getMusicId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; - /** * @param {number} value * @return {!proto.mythos.wacca.v0.PlaylogInfo} returns this */ -proto.mythos.wacca.v0.PlaylogInfo.prototype.setMusicId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.mythos.wacca.v0.PlaylogInfo.prototype.setMusicId = function (value) { + return jspb.Message.setProto3IntField(this, 1, value); }; - /** * optional WaccaMusicDifficulty music_difficulty = 2; * @return {!proto.mythos.wacca.v0.WaccaMusicDifficulty} */ -proto.mythos.wacca.v0.PlaylogInfo.prototype.getMusicDifficulty = function() { - return /** @type {!proto.mythos.wacca.v0.WaccaMusicDifficulty} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.mythos.wacca.v0.PlaylogInfo.prototype.getMusicDifficulty = function () { + return /** @type {!proto.mythos.wacca.v0.WaccaMusicDifficulty} */ ( + jspb.Message.getFieldWithDefault(this, 2, 0) + ); }; - /** * @param {!proto.mythos.wacca.v0.WaccaMusicDifficulty} value * @return {!proto.mythos.wacca.v0.PlaylogInfo} returns this */ -proto.mythos.wacca.v0.PlaylogInfo.prototype.setMusicDifficulty = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); +proto.mythos.wacca.v0.PlaylogInfo.prototype.setMusicDifficulty = function (value) { + return jspb.Message.setProto3EnumField(this, 2, value); }; - /** * optional int32 score = 3; * @return {number} */ -proto.mythos.wacca.v0.PlaylogInfo.prototype.getScore = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.mythos.wacca.v0.PlaylogInfo.prototype.getScore = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; - /** * @param {number} value * @return {!proto.mythos.wacca.v0.PlaylogInfo} returns this */ -proto.mythos.wacca.v0.PlaylogInfo.prototype.setScore = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.mythos.wacca.v0.PlaylogInfo.prototype.setScore = function (value) { + return jspb.Message.setProto3IntField(this, 3, value); }; - /** * optional WaccaMusicScoreGrade grade = 4; * @return {!proto.mythos.wacca.v0.WaccaMusicScoreGrade} */ -proto.mythos.wacca.v0.PlaylogInfo.prototype.getGrade = function() { - return /** @type {!proto.mythos.wacca.v0.WaccaMusicScoreGrade} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +proto.mythos.wacca.v0.PlaylogInfo.prototype.getGrade = function () { + return /** @type {!proto.mythos.wacca.v0.WaccaMusicScoreGrade} */ ( + jspb.Message.getFieldWithDefault(this, 4, 0) + ); }; - /** * @param {!proto.mythos.wacca.v0.WaccaMusicScoreGrade} value * @return {!proto.mythos.wacca.v0.PlaylogInfo} returns this */ -proto.mythos.wacca.v0.PlaylogInfo.prototype.setGrade = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); +proto.mythos.wacca.v0.PlaylogInfo.prototype.setGrade = function (value) { + return jspb.Message.setProto3EnumField(this, 4, value); }; - /** * optional WaccaJudge judge = 5; * @return {?proto.mythos.wacca.v0.WaccaJudge} */ -proto.mythos.wacca.v0.PlaylogInfo.prototype.getJudge = function() { - return /** @type{?proto.mythos.wacca.v0.WaccaJudge} */ ( - jspb.Message.getWrapperField(this, wacca_common_pb.WaccaJudge, 5)); +proto.mythos.wacca.v0.PlaylogInfo.prototype.getJudge = function () { + return /** @type{?proto.mythos.wacca.v0.WaccaJudge} */ ( + jspb.Message.getWrapperField(this, wacca_common_pb.WaccaJudge, 5) + ); }; - /** * @param {?proto.mythos.wacca.v0.WaccaJudge|undefined} value * @return {!proto.mythos.wacca.v0.PlaylogInfo} returns this -*/ -proto.mythos.wacca.v0.PlaylogInfo.prototype.setJudge = function(value) { - return jspb.Message.setWrapperField(this, 5, value); + */ +proto.mythos.wacca.v0.PlaylogInfo.prototype.setJudge = function (value) { + return jspb.Message.setWrapperField(this, 5, value); }; - /** * Clears the message field making it undefined. * @return {!proto.mythos.wacca.v0.PlaylogInfo} returns this */ -proto.mythos.wacca.v0.PlaylogInfo.prototype.clearJudge = function() { - return this.setJudge(undefined); +proto.mythos.wacca.v0.PlaylogInfo.prototype.clearJudge = function () { + return this.setJudge(undefined); }; - /** * Returns whether this field is set. * @return {boolean} */ -proto.mythos.wacca.v0.PlaylogInfo.prototype.hasJudge = function() { - return jspb.Message.getField(this, 5) != null; +proto.mythos.wacca.v0.PlaylogInfo.prototype.hasJudge = function () { + return jspb.Message.getField(this, 5) != null; }; - /** * optional WaccaClearStatus clear_status = 6; * @return {?proto.mythos.wacca.v0.WaccaClearStatus} */ -proto.mythos.wacca.v0.PlaylogInfo.prototype.getClearStatus = function() { - return /** @type{?proto.mythos.wacca.v0.WaccaClearStatus} */ ( - jspb.Message.getWrapperField(this, wacca_common_pb.WaccaClearStatus, 6)); +proto.mythos.wacca.v0.PlaylogInfo.prototype.getClearStatus = function () { + return /** @type{?proto.mythos.wacca.v0.WaccaClearStatus} */ ( + jspb.Message.getWrapperField(this, wacca_common_pb.WaccaClearStatus, 6) + ); }; - /** * @param {?proto.mythos.wacca.v0.WaccaClearStatus|undefined} value * @return {!proto.mythos.wacca.v0.PlaylogInfo} returns this -*/ -proto.mythos.wacca.v0.PlaylogInfo.prototype.setClearStatus = function(value) { - return jspb.Message.setWrapperField(this, 6, value); + */ +proto.mythos.wacca.v0.PlaylogInfo.prototype.setClearStatus = function (value) { + return jspb.Message.setWrapperField(this, 6, value); }; - /** * Clears the message field making it undefined. * @return {!proto.mythos.wacca.v0.PlaylogInfo} returns this */ -proto.mythos.wacca.v0.PlaylogInfo.prototype.clearClearStatus = function() { - return this.setClearStatus(undefined); +proto.mythos.wacca.v0.PlaylogInfo.prototype.clearClearStatus = function () { + return this.setClearStatus(undefined); }; - /** * Returns whether this field is set. * @return {boolean} */ -proto.mythos.wacca.v0.PlaylogInfo.prototype.hasClearStatus = function() { - return jspb.Message.getField(this, 6) != null; +proto.mythos.wacca.v0.PlaylogInfo.prototype.hasClearStatus = function () { + return jspb.Message.getField(this, 6) != null; }; - /** * optional bool is_new_record = 7; * @return {boolean} */ -proto.mythos.wacca.v0.PlaylogInfo.prototype.getIsNewRecord = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); +proto.mythos.wacca.v0.PlaylogInfo.prototype.getIsNewRecord = function () { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); }; - /** * @param {boolean} value * @return {!proto.mythos.wacca.v0.PlaylogInfo} returns this */ -proto.mythos.wacca.v0.PlaylogInfo.prototype.setIsNewRecord = function(value) { - return jspb.Message.setProto3BooleanField(this, 7, value); +proto.mythos.wacca.v0.PlaylogInfo.prototype.setIsNewRecord = function (value) { + return jspb.Message.setProto3BooleanField(this, 7, value); }; - /** * optional int32 combo = 8; * @return {number} */ -proto.mythos.wacca.v0.PlaylogInfo.prototype.getCombo = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +proto.mythos.wacca.v0.PlaylogInfo.prototype.getCombo = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); }; - /** * @param {number} value * @return {!proto.mythos.wacca.v0.PlaylogInfo} returns this */ -proto.mythos.wacca.v0.PlaylogInfo.prototype.setCombo = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); +proto.mythos.wacca.v0.PlaylogInfo.prototype.setCombo = function (value) { + return jspb.Message.setProto3IntField(this, 8, value); }; - /** * optional int32 skill_points = 9; * @return {number} */ -proto.mythos.wacca.v0.PlaylogInfo.prototype.getSkillPoints = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); +proto.mythos.wacca.v0.PlaylogInfo.prototype.getSkillPoints = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); }; - /** * @param {number} value * @return {!proto.mythos.wacca.v0.PlaylogInfo} returns this */ -proto.mythos.wacca.v0.PlaylogInfo.prototype.setSkillPoints = function(value) { - return jspb.Message.setProto3IntField(this, 9, value); +proto.mythos.wacca.v0.PlaylogInfo.prototype.setSkillPoints = function (value) { + return jspb.Message.setProto3IntField(this, 9, value); }; - /** * optional int32 fast = 10; * @return {number} */ -proto.mythos.wacca.v0.PlaylogInfo.prototype.getFast = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); +proto.mythos.wacca.v0.PlaylogInfo.prototype.getFast = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); }; - /** * @param {number} value * @return {!proto.mythos.wacca.v0.PlaylogInfo} returns this */ -proto.mythos.wacca.v0.PlaylogInfo.prototype.setFast = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); +proto.mythos.wacca.v0.PlaylogInfo.prototype.setFast = function (value) { + return jspb.Message.setProto3IntField(this, 10, value); }; - /** * optional int32 late = 11; * @return {number} */ -proto.mythos.wacca.v0.PlaylogInfo.prototype.getLate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); +proto.mythos.wacca.v0.PlaylogInfo.prototype.getLate = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); }; - /** * @param {number} value * @return {!proto.mythos.wacca.v0.PlaylogInfo} returns this */ -proto.mythos.wacca.v0.PlaylogInfo.prototype.setLate = function(value) { - return jspb.Message.setProto3IntField(this, 11, value); +proto.mythos.wacca.v0.PlaylogInfo.prototype.setLate = function (value) { + return jspb.Message.setProto3IntField(this, 11, value); }; - /** * optional WaccaPlayMode user_play_mode = 12; * @return {!proto.mythos.wacca.v0.WaccaPlayMode} */ -proto.mythos.wacca.v0.PlaylogInfo.prototype.getUserPlayMode = function() { - return /** @type {!proto.mythos.wacca.v0.WaccaPlayMode} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); +proto.mythos.wacca.v0.PlaylogInfo.prototype.getUserPlayMode = function () { + return /** @type {!proto.mythos.wacca.v0.WaccaPlayMode} */ ( + jspb.Message.getFieldWithDefault(this, 12, 0) + ); }; - /** * @param {!proto.mythos.wacca.v0.WaccaPlayMode} value * @return {!proto.mythos.wacca.v0.PlaylogInfo} returns this */ -proto.mythos.wacca.v0.PlaylogInfo.prototype.setUserPlayMode = function(value) { - return jspb.Message.setProto3EnumField(this, 12, value); +proto.mythos.wacca.v0.PlaylogInfo.prototype.setUserPlayMode = function (value) { + return jspb.Message.setProto3EnumField(this, 12, value); }; - /** * optional int32 track = 13; * @return {number} */ -proto.mythos.wacca.v0.PlaylogInfo.prototype.getTrack = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); +proto.mythos.wacca.v0.PlaylogInfo.prototype.getTrack = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); }; - /** * @param {number} value * @return {!proto.mythos.wacca.v0.PlaylogInfo} returns this */ -proto.mythos.wacca.v0.PlaylogInfo.prototype.setTrack = function(value) { - return jspb.Message.setProto3IntField(this, 13, value); +proto.mythos.wacca.v0.PlaylogInfo.prototype.setTrack = function (value) { + return jspb.Message.setProto3IntField(this, 13, value); }; - /** * optional string user_play_date = 14; * @return {string} */ -proto.mythos.wacca.v0.PlaylogInfo.prototype.getUserPlayDate = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); +proto.mythos.wacca.v0.PlaylogInfo.prototype.getUserPlayDate = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); }; - /** * @param {string} value * @return {!proto.mythos.wacca.v0.PlaylogInfo} returns this */ -proto.mythos.wacca.v0.PlaylogInfo.prototype.setUserPlayDate = function(value) { - return jspb.Message.setProto3StringField(this, 14, value); +proto.mythos.wacca.v0.PlaylogInfo.prototype.setUserPlayDate = function (value) { + return jspb.Message.setProto3StringField(this, 14, value); }; - goog.object.extend(exports, proto.mythos.wacca.v0); diff --git a/typescript/server/src/scripts/load-seeds-pg.ts b/typescript/server/src/scripts/load-seeds-pg.ts index edee5e8db..9130030bf 100644 --- a/typescript/server/src/scripts/load-seeds-pg.ts +++ b/typescript/server/src/scripts/load-seeds-pg.ts @@ -1,4 +1,3 @@ -/* eslint-disable no-await-in-loop */ /** * Imports seed data (songs, charts, folders, tables, goals, quests, questlines, * BMS courses) from the local seeds directory into PostgreSQL. @@ -17,525 +16,15 @@ * cd server && POSTGRES_URL=... ts-node -r tsconfig-paths/register src/scripts/load-seeds-pg.ts */ -import type { - Database, - GameGroup, - NewBmsCourseLookup, - NewChart, - NewChartVersion, - NewFolder, - NewFolderSearchTerm, - NewGoal, - NewQuest, - NewQuestline, - NewQuestlineQuest, - NewSong, - NewSongAltTitle, - NewSongSearchTerm, - NewTable, - NewTableFolder, - Game as PgGame, -} from "tachi-db"; +import type { Database } from "tachi-db"; -import fs from "fs"; -import { type Insertable, Kysely, PostgresDialect, sql } from "kysely"; +import { Kysely, PostgresDialect } from "kysely"; import path from "path"; import { Pool } from "pg"; -import type { - BMSCourseDocument, - ChartDocument, - FolderDocument, - GoalDocument, - QuestDocument, - QuestlineDocument, - SongDocument, - TableDocument, -} from "../../../common/src"; +import { buildChartIdMap, importSeeds, toPgGame } from "../services/pg/seeds"; -// ── Seed types ───────────────────────────────────────────────────────────── - -type SeedSong = { id: string; legacySongID?: number } & Omit; -// songID is now a hex string (migrated from the old integer FK). -type SeedChart = { - id: string; - legacyChartID?: string; - songID: string; -} & Omit; -// After 3-migrate-folders-tables.ts: folderID → legacyFolderID + id, game+playtype → game. -type SeedFolder = { - game: string; - id: string; - legacyFolderID?: string; -} & Omit; -// After 3-migrate-folders-tables.ts: tableID → legacyTableID + id, game+playtype → game, -// folders array now contains new hex ids. -type SeedTable = { - folders: Array; - game: string; - id: string; - legacyTableID?: string; -} & Omit; - -// ── Game helpers ─────────────────────────────────────────────────────────── - -const SINGLE_PT_GAMES = new Set([ - "arcaea", - "chunithm", - "jubeat", - "maimai", - "maimaidx", - "museca", - "ongeki", - "popn", - "sdvx", - "wacca", -]); - -export function toPgGame(gameGroup: string, legacyPlaytype: string): PgGame { - if (SINGLE_PT_GAMES.has(gameGroup)) { - return gameGroup as PgGame; - } - - return `${gameGroup}-${legacyPlaytype.toLowerCase()}` as PgGame; -} - -// ── Chart ID map ─────────────────────────────────────────────────────────── - -/** - * Reads all chart seed files and returns a map of old MongoDB chartID (40-char - * SHA1 hex) → new hex id. Used by the migration script to translate chart_id - * FK references in scores and PBs. - */ -export function buildChartIdMap(seedsDir: string): Map { - const map = new Map(); - - const chartFiles = fs - .readdirSync(seedsDir) - .filter((f) => f.startsWith("charts-") && f.endsWith(".json")); - - for (const file of chartFiles) { - const charts = JSON.parse(fs.readFileSync(path.join(seedsDir, file), "utf-8")) as Array<{ - id: string; - legacyChartID?: string; - }>; - - for (const c of charts) { - if (c.legacyChartID && c.id) { - map.set(c.legacyChartID, c.id); - } - } - } - - return map; -} - -// ── Core import logic ────────────────────────────────────────────────────── - -export async function importSeeds(pg: Kysely, seedsDir: string): Promise { - const INSERT_CHUNK = 500; - - async function batchIgnore( - table: T, - rows: ReadonlyArray>, - ): Promise { - if (rows.length === 0) { - return; - } - - for (let i = 0; i < rows.length; i = i + INSERT_CHUNK) { - const chunk = rows.slice(i, i + INSERT_CHUNK); - - await pg - .insertInto(table) - .values(chunk as never) - .onConflict((oc) => oc.doNothing()) - .execute(); - } - } - - // Deletes rows matching a large list of IDs by chunking the IN clause. - async function chunkedDelete( - table: keyof Database, - column: string, - ids: ReadonlyArray, - ): Promise { - for (let i = 0; i < ids.length; i = i + INSERT_CHUNK) { - const chunk = ids.slice(i, i + INSERT_CHUNK); - - await (pg.deleteFrom(table as never) as any).where(column, "in", chunk).execute(); - } - } - - function readCollection(filename: string): Array { - return JSON.parse(fs.readFileSync(path.join(seedsDir, filename), "utf-8")) as Array; - } - - const files = new Set(fs.readdirSync(seedsDir)); - const songFiles = [...files].filter((f) => f.startsWith("songs-") && f.endsWith(".json")); - const chartFiles: Array = [...files].filter( - (f) => f.startsWith("charts-") && f.endsWith(".json"), - ); - - // ── songs ────────────────────────────────────────────────────────────── - { - console.log("[song / song_search_term / song_alt_title]"); - let total = 0; - - for (const file of songFiles) { - const gameGroup = file.replace(/^songs-/u, "").replace(/\.json$/u, "") as GameGroup; - const songs = readCollection(file); - - const songRows: Array = []; - const searchTermRows: Array = []; - const altTitleRows: Array = []; - - for (const s of songs) { - if (!s.id) { - throw new Error( - `Song ${gameGroup}:${s.legacySongID} is missing an id. Run 1-migrate-to-pg-style.ts first.`, - ); - } - - songRows.push({ - id: s.id, - legacy_id: - s.legacySongID ?? - (() => { - throw new Error(`Song ${gameGroup}:${s.id} is missing legacySongID.`); - })(), - game_group: gameGroup, - title: s.title, - artist: s.artist, - data: JSON.stringify(s.data), - }); - - for (const term of s.searchTerms) { - searchTermRows.push({ song_id: s.id, search_term: term }); - } - - for (const alt of s.altTitles) { - altTitleRows.push({ song_id: s.id, alt_title: alt }); - } - } - - const songIds = songs.map((s) => s.id); - - for (let i = 0; i < songRows.length; i = i + INSERT_CHUNK) { - const chunk = songRows.slice(i, i + INSERT_CHUNK); - - await pg - .insertInto("song") - .values(chunk) - .onConflict((oc) => - oc.column("id").doUpdateSet({ - title: sql`excluded.title`, - artist: sql`excluded.artist`, - data: sql`excluded.data`, - }), - ) - .execute(); - } - - // Delete + reinsert child rows so removals from seeds are reflected. - await chunkedDelete("song_search_term", "song_id", songIds); - await chunkedDelete("song_alt_title", "song_id", songIds); - - await batchIgnore("song_search_term", searchTermRows); - await batchIgnore("song_alt_title", altTitleRows); - - total = total + songs.length; - console.log(` ${gameGroup}: ${songs.length} songs`); - } - - console.log(` Total: ${total}\n`); - } - - // ── charts ───────────────────────────────────────────────────────────── - { - console.log("[chart / chart_version]"); - let total = 0; - - for (const file of chartFiles) { - // After 2-split-charts-by-playtype.ts the filename IS the PgGame - // (e.g. "charts-iidx-sp.json" → "iidx-sp", "charts-chunithm.json" → "chunithm"). - const pgGame = file.replace(/^charts-/u, "").replace(/\.json$/u, "") as PgGame; - const charts = readCollection(file); - - const chartRows: Array = []; - const versionRows: Array = []; - - for (const c of charts) { - if (!c.id) { - throw new Error( - `Chart ${c.legacyChartID ?? "(unknown)"}` + - ` (${pgGame}) is missing an id. Run 1-migrate-to-pg-style.ts first.`, - ); - } - - if (!c.legacyChartID) { - throw new Error( - `Chart ${c.id} (${pgGame}) is missing legacyChartID. Run 1-migrate-to-pg-style.ts first.`, - ); - } - - chartRows.push({ - id: c.id, - legacy_id: c.legacyChartID, - game: pgGame, - song_id: c.songID, - level: c.level, - level_num: c.levelNum, - is_primary: c.isPrimary, - difficulty: c.difficulty, - data: JSON.stringify(c.data), - }); - - for (const version of c.versions) { - versionRows.push({ chart_id: c.id, version: version as string }); - } - } - - const chartSids = charts.map((c) => c.id); - - for (let i = 0; i < chartRows.length; i = i + INSERT_CHUNK) { - const chunk = chartRows.slice(i, i + INSERT_CHUNK); - - await pg - .insertInto("chart") - .values(chunk) - .onConflict((oc) => - oc.column("id").doUpdateSet({ - level: sql`excluded.level`, - level_num: sql`excluded.level_num`, - is_primary: sql`excluded.is_primary`, - difficulty: sql`excluded.difficulty`, - data: sql`excluded.data`, - }), - ) - .execute(); - } - - await chunkedDelete("chart_version", "chart_id", chartSids); - - await batchIgnore("chart_version", versionRows); - - total = total + charts.length; - console.log(` ${pgGame}: ${charts.length} charts`); - } - - console.log(` Total: ${total}\n`); - } - - // ── folders ──────────────────────────────────────────────────────────── - if (files.has("folders.json")) { - console.log("[folder / folder_search_term]"); - const folders = readCollection("folders.json"); - - const folderRows: Array = folders.map((f) => ({ - id: f.id, - legacy_id: - f.legacyFolderID ?? - (() => { - throw new Error( - `Folder "${f.title}" is missing legacyFolderID. Run 3-migrate-folders-tables.ts first.`, - ); - })(), - game: f.game as PgGame, - inactive: f.inactive, - title: f.title, - query: JSON.stringify({ type: f.type, data: f.data }), - })); - - for (let i = 0; i < folderRows.length; i = i + INSERT_CHUNK) { - const chunk = folderRows.slice(i, i + INSERT_CHUNK); - - await pg - .insertInto("folder") - .values(chunk) - .onConflict((oc) => - oc.column("id").doUpdateSet({ - inactive: sql`excluded.inactive`, - title: sql`excluded.title`, - query: sql`excluded.query`, - }), - ) - .execute(); - } - - const folderIds = folders.map((f) => f.id); - - await chunkedDelete("folder_search_term", "id", folderIds); - - const termRows: Array = folders.flatMap((f) => - f.searchTerms.map((term) => ({ id: f.id, search_term: term })), - ); - - await batchIgnore("folder_search_term", termRows); - console.log(` ${folders.length} folders, ${termRows.length} search terms\n`); - } - - // ── tables ───────────────────────────────────────────────────────────── - if (files.has("tables.json")) { - console.log("[table / table_folder]"); - const tables = readCollection("tables.json"); - - const tableRows: Array = tables.map((t) => ({ - id: t.id, - legacy_id: - t.legacyTableID ?? - (() => { - throw new Error( - `Table "${t.title}" is missing legacyTableID. Run 3-migrate-folders-tables.ts first.`, - ); - })(), - game: t.game as PgGame, - inactive: t.inactive, - title: t.title, - default_value: t.default, - })); - - for (let i = 0; i < tableRows.length; i = i + INSERT_CHUNK) { - const chunk = tableRows.slice(i, i + INSERT_CHUNK); - - await pg - .insertInto("table") - .values(chunk) - .onConflict((oc) => - oc.column("id").doUpdateSet({ - inactive: sql`excluded.inactive`, - title: sql`excluded.title`, - default_value: sql`excluded.default_value`, - }), - ) - .execute(); - } - - const tableIds = tables.map((t) => t.id); - - await chunkedDelete("table_folder", "table_id", tableIds); - - const tfRows: Array = tables.flatMap((t) => - t.folders.map((folderId) => ({ table_id: t.id, folder_id: folderId })), - ); - - await batchIgnore("table_folder", tfRows); - console.log(` ${tables.length} tables, ${tfRows.length} table-folder rows\n`); - } - - // ── bms_course_lookup ────────────────────────────────────────────────── - if (files.has("bms-course-lookup.json")) { - console.log("[bms_course_lookup]"); - const courses = readCollection("bms-course-lookup.json"); - - const courseRows: Array = courses.map((c) => ({ - md5sums: c.md5sums, - title: c.title, - set: c.set as string, - playtype: c.playtype as string, - value: c.value as string, - })); - - await batchIgnore("bms_course_lookup", courseRows); - console.log(` ${courses.length} BMS courses\n`); - } - - // ── goals ────────────────────────────────────────────────────────────── - if (files.has("goals.json")) { - console.log("[goal]"); - const goals = readCollection("goals.json"); - - const goalRows: Array = goals.map((g) => ({ - id: g.goalID, - game: toPgGame(g.game, g.playtype), - name: g.name, - charts: JSON.stringify(g.charts), - criteria: JSON.stringify(g.criteria), - })); - - // Goals are never updated once created — only new ones are inserted. - await batchIgnore("goal", goalRows); - console.log(` ${goals.length} goals\n`); - } - - // ── quests ───────────────────────────────────────────────────────────── - if (files.has("quests.json")) { - console.log("[quest]"); - const quests = readCollection("quests.json"); - - const questRows: Array = quests.map((q) => ({ - id: q.questID, - game: toPgGame(q.game, q.playtype), - name: q.name, - description: q.desc, - quest_data: JSON.stringify(q.questData), - })); - - for (let i = 0; i < questRows.length; i = i + INSERT_CHUNK) { - const chunk = questRows.slice(i, i + INSERT_CHUNK); - - await pg - .insertInto("quest") - .values(chunk) - .onConflict((oc) => - oc.column("id").doUpdateSet({ - name: sql`excluded.name`, - description: sql`excluded.description`, - quest_data: sql`excluded.quest_data`, - }), - ) - .execute(); - } - - console.log(` ${quests.length} quests\n`); - } - - // ── questlines ───────────────────────────────────────────────────────── - if (files.has("questlines.json")) { - console.log("[questline / questline_quest]"); - const questlines = readCollection("questlines.json"); - - const qlRows: Array = questlines.map((ql) => ({ - id: ql.questlineID, - game: toPgGame(ql.game, ql.playtype), - name: ql.name, - description: ql.desc, - })); - - for (let i = 0; i < qlRows.length; i = i + INSERT_CHUNK) { - const chunk = qlRows.slice(i, i + INSERT_CHUNK); - - await pg - .insertInto("questline") - .values(chunk) - .onConflict((oc) => - oc.column("id").doUpdateSet({ - name: sql`excluded.name`, - description: sql`excluded.description`, - }), - ) - .execute(); - } - - const qlIds = questlines.map((ql) => ql.questlineID); - - await chunkedDelete("questline_quest", "questline_id", qlIds); - - let order = 0; - const qlqRows: Array = questlines.flatMap((ql) => { - order = 0; - - return ql.quests.map((questId) => ({ - questline_id: ql.questlineID, - quest_id: questId, - sort_order: order++, - })); - }); - - await batchIgnore("questline_quest", qlqRows); - console.log(` ${questlines.length} questlines, ${qlqRows.length} questline-quest rows\n`); - } -} +export { buildChartIdMap, importSeeds, toPgGame }; // ── Standalone entrypoint ────────────────────────────────────────────────── diff --git a/typescript/server/src/services/pg/db.ts b/typescript/server/src/services/pg/db.ts new file mode 100644 index 000000000..1e5efaea5 --- /dev/null +++ b/typescript/server/src/services/pg/db.ts @@ -0,0 +1,17 @@ +import type { Database } from "tachi-db"; + +import { Environment } from "#lib/setup/config"; +import { Kysely, PostgresDialect } from "kysely"; +import { Pool } from "pg"; + +const pool = new Pool({ connectionString: Environment.postgresUrl }); + +const pgDb = new Kysely({ + dialect: new PostgresDialect({ pool }), +}); + +export async function ClosePgConnection() { + await pgDb.destroy(); +} + +export default pgDb; diff --git a/typescript/server/src/services/pg/seeds.ts b/typescript/server/src/services/pg/seeds.ts new file mode 100644 index 000000000..a1551e20f --- /dev/null +++ b/typescript/server/src/services/pg/seeds.ts @@ -0,0 +1,519 @@ +/* eslint-disable no-await-in-loop */ +import type { + Database, + GameGroup, + NewBmsCourseLookup, + NewChart, + NewChartVersion, + NewFolder, + NewFolderSearchTerm, + NewGoal, + NewQuest, + NewQuestline, + NewQuestlineQuest, + NewSong, + NewSongAltTitle, + NewSongSearchTerm, + NewTable, + NewTableFolder, + Game as PgGame, +} from "tachi-db"; + +import type { + BMSCourseDocument, + ChartDocument, + FolderDocument, + GoalDocument, + QuestDocument, + QuestlineDocument, + SongDocument, + TableDocument, +} from "../../../../common/src"; + +import fs from "fs"; +import { type Insertable, type Kysely, sql } from "kysely"; +import path from "path"; + +// ── Seed types ───────────────────────────────────────────────────────────── + +type SeedSong = { id: string; legacySongID?: number } & Omit; +// songID is now a hex string (migrated from the old integer FK). +type SeedChart = { + id: string; + legacyChartID?: string; + songID: string; +} & Omit; +// After 3-migrate-folders-tables.ts: folderID → legacyFolderID + id, game+playtype → game. +type SeedFolder = { + game: string; + id: string; + legacyFolderID?: string; +} & Omit; +// After 3-migrate-folders-tables.ts: tableID → legacyTableID + id, game+playtype → game, +// folders array now contains new hex ids. +type SeedTable = { + folders: Array; + game: string; + id: string; + legacyTableID?: string; +} & Omit; + +// ── Game helpers ─────────────────────────────────────────────────────────── + +const SINGLE_PT_GAMES = new Set([ + "arcaea", + "chunithm", + "jubeat", + "maimai", + "maimaidx", + "museca", + "ongeki", + "popn", + "sdvx", + "wacca", +]); + +export function toPgGame(gameGroup: string, legacyPlaytype: string): PgGame { + if (SINGLE_PT_GAMES.has(gameGroup)) { + return gameGroup as PgGame; + } + + return `${gameGroup}-${legacyPlaytype.toLowerCase()}` as PgGame; +} + +// ── Chart ID map ─────────────────────────────────────────────────────────── + +/** + * Reads all chart seed files and returns a map of old MongoDB chartID (40-char + * SHA1 hex) → new hex id. Used by the migration script to translate chart_id + * FK references in scores and PBs. + */ +export function buildChartIdMap(seedsDir: string): Map { + const map = new Map(); + + const chartFiles = fs + .readdirSync(seedsDir) + .filter((f) => f.startsWith("charts-") && f.endsWith(".json")); + + for (const file of chartFiles) { + const charts = JSON.parse(fs.readFileSync(path.join(seedsDir, file), "utf-8")) as Array<{ + id: string; + legacyChartID?: string; + }>; + + for (const c of charts) { + if (c.legacyChartID && c.id) { + map.set(c.legacyChartID, c.id); + } + } + } + + return map; +} + +// ── Core import logic ────────────────────────────────────────────────────── + +export async function importSeeds(pg: Kysely, seedsDir: string): Promise { + const INSERT_CHUNK = 500; + + async function batchIgnore( + table: T, + rows: ReadonlyArray>, + ): Promise { + if (rows.length === 0) { + return; + } + + for (let i = 0; i < rows.length; i = i + INSERT_CHUNK) { + const chunk = rows.slice(i, i + INSERT_CHUNK); + + await pg + .insertInto(table) + .values(chunk as never) + .onConflict((oc) => oc.doNothing()) + .execute(); + } + } + + // Deletes rows matching a large list of IDs by chunking the IN clause. + async function chunkedDelete( + table: keyof Database, + column: string, + ids: ReadonlyArray, + ): Promise { + for (let i = 0; i < ids.length; i = i + INSERT_CHUNK) { + const chunk = ids.slice(i, i + INSERT_CHUNK); + + await (pg.deleteFrom(table as never) as any).where(column, "in", chunk).execute(); + } + } + + function readCollection(filename: string): Array { + return JSON.parse(fs.readFileSync(path.join(seedsDir, filename), "utf-8")) as Array; + } + + const files = new Set(fs.readdirSync(seedsDir)); + const songFiles = [...files].filter((f) => f.startsWith("songs-") && f.endsWith(".json")); + const chartFiles: Array = [...files].filter( + (f) => f.startsWith("charts-") && f.endsWith(".json"), + ); + + // ── songs ────────────────────────────────────────────────────────────── + { + console.log("[song / song_search_term / song_alt_title]"); + let total = 0; + + for (const file of songFiles) { + const gameGroup = file.replace(/^songs-/u, "").replace(/\.json$/u, "") as GameGroup; + const songs = readCollection(file); + + const songRows: Array = []; + const searchTermRows: Array = []; + const altTitleRows: Array = []; + + for (const s of songs) { + if (!s.id) { + throw new Error( + `Song ${gameGroup}:${s.legacySongID} is missing an id. Run 1-migrate-to-pg-style.ts first.`, + ); + } + + songRows.push({ + id: s.id, + legacy_id: + s.legacySongID ?? + (() => { + throw new Error(`Song ${gameGroup}:${s.id} is missing legacySongID.`); + })(), + game_group: gameGroup, + title: s.title, + artist: s.artist, + data: JSON.stringify(s.data), + }); + + for (const term of s.searchTerms) { + searchTermRows.push({ song_id: s.id, search_term: term }); + } + + for (const alt of s.altTitles) { + altTitleRows.push({ song_id: s.id, alt_title: alt }); + } + } + + const songIds = songs.map((s) => s.id); + + for (let i = 0; i < songRows.length; i = i + INSERT_CHUNK) { + const chunk = songRows.slice(i, i + INSERT_CHUNK); + + await pg + .insertInto("song") + .values(chunk) + .onConflict((oc) => + oc.column("id").doUpdateSet({ + title: sql`excluded.title`, + artist: sql`excluded.artist`, + data: sql`excluded.data`, + }), + ) + .execute(); + } + + // Delete + reinsert child rows so removals from seeds are reflected. + await chunkedDelete("song_search_term", "song_id", songIds); + await chunkedDelete("song_alt_title", "song_id", songIds); + + await batchIgnore("song_search_term", searchTermRows); + await batchIgnore("song_alt_title", altTitleRows); + + total = total + songs.length; + console.log(` ${gameGroup}: ${songs.length} songs`); + } + + console.log(` Total: ${total}\n`); + } + + // ── charts ───────────────────────────────────────────────────────────── + { + console.log("[chart / chart_version]"); + let total = 0; + + for (const file of chartFiles) { + // After 2-split-charts-by-playtype.ts the filename IS the PgGame + // (e.g. "charts-iidx-sp.json" → "iidx-sp", "charts-chunithm.json" → "chunithm"). + const pgGame = file.replace(/^charts-/u, "").replace(/\.json$/u, "") as PgGame; + const charts = readCollection(file); + + const chartRows: Array = []; + const versionRows: Array = []; + + for (const c of charts) { + if (!c.id) { + throw new Error( + `Chart ${c.legacyChartID ?? "(unknown)"}` + + ` (${pgGame}) is missing an id. Run 1-migrate-to-pg-style.ts first.`, + ); + } + + if (!c.legacyChartID) { + throw new Error( + `Chart ${c.id} (${pgGame}) is missing legacyChartID. Run 1-migrate-to-pg-style.ts first.`, + ); + } + + chartRows.push({ + id: c.id, + legacy_id: c.legacyChartID, + game: pgGame, + song_id: c.songID, + level: c.level, + level_num: c.levelNum, + is_primary: c.isPrimary, + difficulty: c.difficulty, + data: JSON.stringify(c.data), + }); + + for (const version of c.versions) { + versionRows.push({ chart_id: c.id, version: version as string }); + } + } + + const chartSids = charts.map((c) => c.id); + + for (let i = 0; i < chartRows.length; i = i + INSERT_CHUNK) { + const chunk = chartRows.slice(i, i + INSERT_CHUNK); + + await pg + .insertInto("chart") + .values(chunk) + .onConflict((oc) => + oc.column("id").doUpdateSet({ + level: sql`excluded.level`, + level_num: sql`excluded.level_num`, + is_primary: sql`excluded.is_primary`, + difficulty: sql`excluded.difficulty`, + data: sql`excluded.data`, + }), + ) + .execute(); + } + + await chunkedDelete("chart_version", "chart_id", chartSids); + + await batchIgnore("chart_version", versionRows); + + total = total + charts.length; + console.log(` ${pgGame}: ${charts.length} charts`); + } + + console.log(` Total: ${total}\n`); + } + + // ── folders ──────────────────────────────────────────────────────────── + if (files.has("folders.json")) { + console.log("[folder / folder_search_term]"); + const folders = readCollection("folders.json"); + + const folderRows: Array = folders.map((f) => ({ + id: f.id, + legacy_id: + f.legacyFolderID ?? + (() => { + throw new Error( + `Folder "${f.title}" is missing legacyFolderID. Run 3-migrate-folders-tables.ts first.`, + ); + })(), + game: f.game as PgGame, + inactive: f.inactive, + title: f.title, + query: JSON.stringify({ type: f.type, data: f.data }), + })); + + for (let i = 0; i < folderRows.length; i = i + INSERT_CHUNK) { + const chunk = folderRows.slice(i, i + INSERT_CHUNK); + + await pg + .insertInto("folder") + .values(chunk) + .onConflict((oc) => + oc.column("id").doUpdateSet({ + inactive: sql`excluded.inactive`, + title: sql`excluded.title`, + query: sql`excluded.query`, + }), + ) + .execute(); + } + + const folderIds = folders.map((f) => f.id); + + await chunkedDelete("folder_search_term", "id", folderIds); + + const termRows: Array = folders.flatMap((f) => + f.searchTerms.map((term) => ({ id: f.id, search_term: term })), + ); + + await batchIgnore("folder_search_term", termRows); + console.log(` ${folders.length} folders, ${termRows.length} search terms\n`); + } + + // ── tables ───────────────────────────────────────────────────────────── + if (files.has("tables.json")) { + console.log("[table / table_folder]"); + const tables = readCollection("tables.json"); + + const tableRows: Array = tables.map((t) => ({ + id: t.id, + legacy_id: + t.legacyTableID ?? + (() => { + throw new Error( + `Table "${t.title}" is missing legacyTableID. Run 3-migrate-folders-tables.ts first.`, + ); + })(), + game: t.game as PgGame, + inactive: t.inactive, + title: t.title, + default_value: t.default, + })); + + for (let i = 0; i < tableRows.length; i = i + INSERT_CHUNK) { + const chunk = tableRows.slice(i, i + INSERT_CHUNK); + + await pg + .insertInto("table") + .values(chunk) + .onConflict((oc) => + oc.column("id").doUpdateSet({ + inactive: sql`excluded.inactive`, + title: sql`excluded.title`, + default_value: sql`excluded.default_value`, + }), + ) + .execute(); + } + + const tableIds = tables.map((t) => t.id); + + await chunkedDelete("table_folder", "table_id", tableIds); + + const tfRows: Array = tables.flatMap((t) => + t.folders.map((folderId) => ({ table_id: t.id, folder_id: folderId })), + ); + + await batchIgnore("table_folder", tfRows); + console.log(` ${tables.length} tables, ${tfRows.length} table-folder rows\n`); + } + + // ── bms_course_lookup ────────────────────────────────────────────────── + if (files.has("bms-course-lookup.json")) { + console.log("[bms_course_lookup]"); + const courses = readCollection("bms-course-lookup.json"); + + const courseRows: Array = courses.map((c) => ({ + md5sums: c.md5sums, + title: c.title, + set: c.set as string, + playtype: c.playtype as string, + value: c.value as string, + })); + + await batchIgnore("bms_course_lookup", courseRows); + console.log(` ${courses.length} BMS courses\n`); + } + + // ── goals ────────────────────────────────────────────────────────────── + if (files.has("goals.json")) { + console.log("[goal]"); + const goals = readCollection("goals.json"); + + const goalRows: Array = goals.map((g) => ({ + id: g.goalID, + game: toPgGame(g.game, g.playtype), + name: g.name, + charts: JSON.stringify(g.charts), + criteria: JSON.stringify(g.criteria), + })); + + // Goals are never updated once created — only new ones are inserted. + await batchIgnore("goal", goalRows); + console.log(` ${goals.length} goals\n`); + } + + // ── quests ───────────────────────────────────────────────────────────── + if (files.has("quests.json")) { + console.log("[quest]"); + const quests = readCollection("quests.json"); + + const questRows: Array = quests.map((q) => ({ + id: q.questID, + game: toPgGame(q.game, q.playtype), + name: q.name, + description: q.desc, + quest_data: JSON.stringify(q.questData), + })); + + for (let i = 0; i < questRows.length; i = i + INSERT_CHUNK) { + const chunk = questRows.slice(i, i + INSERT_CHUNK); + + await pg + .insertInto("quest") + .values(chunk) + .onConflict((oc) => + oc.column("id").doUpdateSet({ + name: sql`excluded.name`, + description: sql`excluded.description`, + quest_data: sql`excluded.quest_data`, + }), + ) + .execute(); + } + + console.log(` ${quests.length} quests\n`); + } + + // ── questlines ───────────────────────────────────────────────────────── + if (files.has("questlines.json")) { + console.log("[questline / questline_quest]"); + const questlines = readCollection("questlines.json"); + + const qlRows: Array = questlines.map((ql) => ({ + id: ql.questlineID, + game: toPgGame(ql.game, ql.playtype), + name: ql.name, + description: ql.desc, + })); + + for (let i = 0; i < qlRows.length; i = i + INSERT_CHUNK) { + const chunk = qlRows.slice(i, i + INSERT_CHUNK); + + await pg + .insertInto("questline") + .values(chunk) + .onConflict((oc) => + oc.column("id").doUpdateSet({ + name: sql`excluded.name`, + description: sql`excluded.description`, + }), + ) + .execute(); + } + + const qlIds = questlines.map((ql) => ql.questlineID); + + await chunkedDelete("questline_quest", "questline_id", qlIds); + + let order = 0; + const qlqRows: Array = questlines.flatMap((ql) => { + order = 0; + + return ql.quests.map((questId) => ({ + questline_id: ql.questlineID, + quest_id: questId, + sort_order: order++, + })); + }); + + await batchIgnore("questline_quest", qlqRows); + console.log(` ${questlines.length} questlines, ${qlqRows.length} questline-quest rows\n`); + } +}