UNPKG

@steepleinc/youtubei.js

Version:

A JavaScript client for YouTube's private API, known as InnerTube.

1,118 lines 91 kB
// Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: // protoc-gen-ts_proto v2.2.0 // protoc v5.29.2 // source: youtube/api/pfiinnertube/client_info.proto /* eslint-disable */ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; export const protobufPackage = "youtube.api.pfiinnertube"; export var ClientInfo_ClientFormFactor; (function (ClientInfo_ClientFormFactor) { /** UNKNOWN_FORM_FACTOR - @TODO: Check these. */ ClientInfo_ClientFormFactor[ClientInfo_ClientFormFactor["UNKNOWN_FORM_FACTOR"] = 0] = "UNKNOWN_FORM_FACTOR"; ClientInfo_ClientFormFactor[ClientInfo_ClientFormFactor["FORM_FACTOR_VAL1"] = 1] = "FORM_FACTOR_VAL1"; ClientInfo_ClientFormFactor[ClientInfo_ClientFormFactor["FORM_FACTOR_VAL2"] = 2] = "FORM_FACTOR_VAL2"; ClientInfo_ClientFormFactor[ClientInfo_ClientFormFactor["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(ClientInfo_ClientFormFactor || (ClientInfo_ClientFormFactor = {})); export var ClientInfo_CameraType; (function (ClientInfo_CameraType) { ClientInfo_CameraType[ClientInfo_CameraType["UNKNOWN_CAMERA_TYPE"] = 0] = "UNKNOWN_CAMERA_TYPE"; ClientInfo_CameraType[ClientInfo_CameraType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(ClientInfo_CameraType || (ClientInfo_CameraType = {})); export var ClientInfo_UserInterfaceTheme; (function (ClientInfo_UserInterfaceTheme) { ClientInfo_UserInterfaceTheme[ClientInfo_UserInterfaceTheme["USER_INTERFACE_THEME_DARK"] = 0] = "USER_INTERFACE_THEME_DARK"; ClientInfo_UserInterfaceTheme[ClientInfo_UserInterfaceTheme["USER_INTERFACE_THEME_LIGHT"] = 1] = "USER_INTERFACE_THEME_LIGHT"; ClientInfo_UserInterfaceTheme[ClientInfo_UserInterfaceTheme["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(ClientInfo_UserInterfaceTheme || (ClientInfo_UserInterfaceTheme = {})); export var ClientInfo_MainAppWebInfo_StoreDigitalGoodsApiSupportStatus; (function (ClientInfo_MainAppWebInfo_StoreDigitalGoodsApiSupportStatus) { ClientInfo_MainAppWebInfo_StoreDigitalGoodsApiSupportStatus[ClientInfo_MainAppWebInfo_StoreDigitalGoodsApiSupportStatus["STORE_DIGITAL_GOODS_API_SUPPORT_STATUS_VAL0"] = 0] = "STORE_DIGITAL_GOODS_API_SUPPORT_STATUS_VAL0"; ClientInfo_MainAppWebInfo_StoreDigitalGoodsApiSupportStatus[ClientInfo_MainAppWebInfo_StoreDigitalGoodsApiSupportStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(ClientInfo_MainAppWebInfo_StoreDigitalGoodsApiSupportStatus || (ClientInfo_MainAppWebInfo_StoreDigitalGoodsApiSupportStatus = {})); export var ClientInfo_MainAppWebInfo_PwaInstallabilityStatus; (function (ClientInfo_MainAppWebInfo_PwaInstallabilityStatus) { ClientInfo_MainAppWebInfo_PwaInstallabilityStatus[ClientInfo_MainAppWebInfo_PwaInstallabilityStatus["PWA_INSTALLABILITY_STATUS_UNKNOWN"] = 0] = "PWA_INSTALLABILITY_STATUS_UNKNOWN"; ClientInfo_MainAppWebInfo_PwaInstallabilityStatus[ClientInfo_MainAppWebInfo_PwaInstallabilityStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(ClientInfo_MainAppWebInfo_PwaInstallabilityStatus || (ClientInfo_MainAppWebInfo_PwaInstallabilityStatus = {})); export var ClientInfo_MainAppWebInfo_WebDisplayMode; (function (ClientInfo_MainAppWebInfo_WebDisplayMode) { ClientInfo_MainAppWebInfo_WebDisplayMode[ClientInfo_MainAppWebInfo_WebDisplayMode["WEB_DISPLAY_MODE_UNKNOWN"] = 0] = "WEB_DISPLAY_MODE_UNKNOWN"; ClientInfo_MainAppWebInfo_WebDisplayMode[ClientInfo_MainAppWebInfo_WebDisplayMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(ClientInfo_MainAppWebInfo_WebDisplayMode || (ClientInfo_MainAppWebInfo_WebDisplayMode = {})); export var ClientInfo_NotificationPermissionInfo_NotificationsSetting; (function (ClientInfo_NotificationPermissionInfo_NotificationsSetting) { ClientInfo_NotificationPermissionInfo_NotificationsSetting[ClientInfo_NotificationPermissionInfo_NotificationsSetting["NOTIFICATIONS_SETTING_UNKNOWN"] = 0] = "NOTIFICATIONS_SETTING_UNKNOWN"; ClientInfo_NotificationPermissionInfo_NotificationsSetting[ClientInfo_NotificationPermissionInfo_NotificationsSetting["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(ClientInfo_NotificationPermissionInfo_NotificationsSetting || (ClientInfo_NotificationPermissionInfo_NotificationsSetting = {})); export var ClientInfo_SpacecastClientInfo_SpacecastInteractionLevel; (function (ClientInfo_SpacecastClientInfo_SpacecastInteractionLevel) { ClientInfo_SpacecastClientInfo_SpacecastInteractionLevel[ClientInfo_SpacecastClientInfo_SpacecastInteractionLevel["UNKNOWN"] = 0] = "UNKNOWN"; ClientInfo_SpacecastClientInfo_SpacecastInteractionLevel[ClientInfo_SpacecastClientInfo_SpacecastInteractionLevel["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(ClientInfo_SpacecastClientInfo_SpacecastInteractionLevel || (ClientInfo_SpacecastClientInfo_SpacecastInteractionLevel = {})); export var ClientInfo_SpacecastClientInfo_SpacecastAppliance_OperationalStatus; (function (ClientInfo_SpacecastClientInfo_SpacecastAppliance_OperationalStatus) { ClientInfo_SpacecastClientInfo_SpacecastAppliance_OperationalStatus[ClientInfo_SpacecastClientInfo_SpacecastAppliance_OperationalStatus["UNKNOWN"] = 0] = "UNKNOWN"; ClientInfo_SpacecastClientInfo_SpacecastAppliance_OperationalStatus[ClientInfo_SpacecastClientInfo_SpacecastAppliance_OperationalStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(ClientInfo_SpacecastClientInfo_SpacecastAppliance_OperationalStatus || (ClientInfo_SpacecastClientInfo_SpacecastAppliance_OperationalStatus = {})); export var ClientInfo_KidsAppInfo_KidsParentCurationMode; (function (ClientInfo_KidsAppInfo_KidsParentCurationMode) { ClientInfo_KidsAppInfo_KidsParentCurationMode[ClientInfo_KidsAppInfo_KidsParentCurationMode["KPCM_UNKNOWN"] = 0] = "KPCM_UNKNOWN"; ClientInfo_KidsAppInfo_KidsParentCurationMode[ClientInfo_KidsAppInfo_KidsParentCurationMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(ClientInfo_KidsAppInfo_KidsParentCurationMode || (ClientInfo_KidsAppInfo_KidsParentCurationMode = {})); export var ClientInfo_KidsAppInfo_KidsContentSettings_YTKidsNoSearchMode; (function (ClientInfo_KidsAppInfo_KidsContentSettings_YTKidsNoSearchMode) { ClientInfo_KidsAppInfo_KidsContentSettings_YTKidsNoSearchMode[ClientInfo_KidsAppInfo_KidsContentSettings_YTKidsNoSearchMode["YT_KIDS_NO_SEARCH_MODE_OFF"] = 0] = "YT_KIDS_NO_SEARCH_MODE_OFF"; ClientInfo_KidsAppInfo_KidsContentSettings_YTKidsNoSearchMode[ClientInfo_KidsAppInfo_KidsContentSettings_YTKidsNoSearchMode["YT_KIDS_NO_SEARCH_MODE_ON"] = 1] = "YT_KIDS_NO_SEARCH_MODE_ON"; ClientInfo_KidsAppInfo_KidsContentSettings_YTKidsNoSearchMode[ClientInfo_KidsAppInfo_KidsContentSettings_YTKidsNoSearchMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(ClientInfo_KidsAppInfo_KidsContentSettings_YTKidsNoSearchMode || (ClientInfo_KidsAppInfo_KidsContentSettings_YTKidsNoSearchMode = {})); export var ClientInfo_KidsAppInfo_KidsContentSettings_YTKidsAgeUpMode; (function (ClientInfo_KidsAppInfo_KidsContentSettings_YTKidsAgeUpMode) { ClientInfo_KidsAppInfo_KidsContentSettings_YTKidsAgeUpMode[ClientInfo_KidsAppInfo_KidsContentSettings_YTKidsAgeUpMode["YT_KIDS_AGE_UP_MODE_OFF"] = 0] = "YT_KIDS_AGE_UP_MODE_OFF"; ClientInfo_KidsAppInfo_KidsContentSettings_YTKidsAgeUpMode[ClientInfo_KidsAppInfo_KidsContentSettings_YTKidsAgeUpMode["YT_KIDS_AGE_UP_MODE_ON"] = 1] = "YT_KIDS_AGE_UP_MODE_ON"; ClientInfo_KidsAppInfo_KidsContentSettings_YTKidsAgeUpMode[ClientInfo_KidsAppInfo_KidsContentSettings_YTKidsAgeUpMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(ClientInfo_KidsAppInfo_KidsContentSettings_YTKidsAgeUpMode || (ClientInfo_KidsAppInfo_KidsContentSettings_YTKidsAgeUpMode = {})); export var ClientInfo_KidsAppInfo_KidsContentSettings_KidsContentDensity; (function (ClientInfo_KidsAppInfo_KidsContentSettings_KidsContentDensity) { /** YT_KIDS_CONTENT_DENSITY_VAL1 - @TODO: Check these. */ ClientInfo_KidsAppInfo_KidsContentSettings_KidsContentDensity[ClientInfo_KidsAppInfo_KidsContentSettings_KidsContentDensity["YT_KIDS_CONTENT_DENSITY_VAL1"] = 0] = "YT_KIDS_CONTENT_DENSITY_VAL1"; ClientInfo_KidsAppInfo_KidsContentSettings_KidsContentDensity[ClientInfo_KidsAppInfo_KidsContentSettings_KidsContentDensity["YT_KIDS_CONTENT_DENSITY_VAL2"] = 1] = "YT_KIDS_CONTENT_DENSITY_VAL2"; ClientInfo_KidsAppInfo_KidsContentSettings_KidsContentDensity[ClientInfo_KidsAppInfo_KidsContentSettings_KidsContentDensity["YT_KIDS_CONTENT_DENSITY_VAL3"] = 2] = "YT_KIDS_CONTENT_DENSITY_VAL3"; ClientInfo_KidsAppInfo_KidsContentSettings_KidsContentDensity[ClientInfo_KidsAppInfo_KidsContentSettings_KidsContentDensity["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(ClientInfo_KidsAppInfo_KidsContentSettings_KidsContentDensity || (ClientInfo_KidsAppInfo_KidsContentSettings_KidsContentDensity = {})); export var ClientInfo_MusicAppInfo_MusicPlayBackMode; (function (ClientInfo_MusicAppInfo_MusicPlayBackMode) { ClientInfo_MusicAppInfo_MusicPlayBackMode[ClientInfo_MusicAppInfo_MusicPlayBackMode["MPBM_UNKNOWN"] = 0] = "MPBM_UNKNOWN"; ClientInfo_MusicAppInfo_MusicPlayBackMode[ClientInfo_MusicAppInfo_MusicPlayBackMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(ClientInfo_MusicAppInfo_MusicPlayBackMode || (ClientInfo_MusicAppInfo_MusicPlayBackMode = {})); export var ClientInfo_MusicAppInfo_MusicLocationMasterSwitch; (function (ClientInfo_MusicAppInfo_MusicLocationMasterSwitch) { ClientInfo_MusicAppInfo_MusicLocationMasterSwitch[ClientInfo_MusicAppInfo_MusicLocationMasterSwitch["MLMS_UNKNOWN"] = 0] = "MLMS_UNKNOWN"; ClientInfo_MusicAppInfo_MusicLocationMasterSwitch[ClientInfo_MusicAppInfo_MusicLocationMasterSwitch["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(ClientInfo_MusicAppInfo_MusicLocationMasterSwitch || (ClientInfo_MusicAppInfo_MusicLocationMasterSwitch = {})); export var ClientInfo_MusicAppInfo_MusicActivityMasterSwitch; (function (ClientInfo_MusicAppInfo_MusicActivityMasterSwitch) { ClientInfo_MusicAppInfo_MusicActivityMasterSwitch[ClientInfo_MusicAppInfo_MusicActivityMasterSwitch["MAMS_UNKNOWN"] = 0] = "MAMS_UNKNOWN"; ClientInfo_MusicAppInfo_MusicActivityMasterSwitch[ClientInfo_MusicAppInfo_MusicActivityMasterSwitch["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(ClientInfo_MusicAppInfo_MusicActivityMasterSwitch || (ClientInfo_MusicAppInfo_MusicActivityMasterSwitch = {})); export var ClientInfo_MusicAppInfo_IosBackgroundRefreshStatus; (function (ClientInfo_MusicAppInfo_IosBackgroundRefreshStatus) { ClientInfo_MusicAppInfo_IosBackgroundRefreshStatus[ClientInfo_MusicAppInfo_IosBackgroundRefreshStatus["UNKNOWN_STATUS"] = 0] = "UNKNOWN_STATUS"; ClientInfo_MusicAppInfo_IosBackgroundRefreshStatus[ClientInfo_MusicAppInfo_IosBackgroundRefreshStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(ClientInfo_MusicAppInfo_IosBackgroundRefreshStatus || (ClientInfo_MusicAppInfo_IosBackgroundRefreshStatus = {})); export var ClientInfo_MusicAppInfo_PwaInstallabilityStatus; (function (ClientInfo_MusicAppInfo_PwaInstallabilityStatus) { ClientInfo_MusicAppInfo_PwaInstallabilityStatus[ClientInfo_MusicAppInfo_PwaInstallabilityStatus["PIS_UNKNOWN"] = 0] = "PIS_UNKNOWN"; ClientInfo_MusicAppInfo_PwaInstallabilityStatus[ClientInfo_MusicAppInfo_PwaInstallabilityStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(ClientInfo_MusicAppInfo_PwaInstallabilityStatus || (ClientInfo_MusicAppInfo_PwaInstallabilityStatus = {})); export var ClientInfo_MusicAppInfo_WebDisplayMode; (function (ClientInfo_MusicAppInfo_WebDisplayMode) { ClientInfo_MusicAppInfo_WebDisplayMode[ClientInfo_MusicAppInfo_WebDisplayMode["WDM_UNKNOWN"] = 0] = "WDM_UNKNOWN"; ClientInfo_MusicAppInfo_WebDisplayMode[ClientInfo_MusicAppInfo_WebDisplayMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(ClientInfo_MusicAppInfo_WebDisplayMode || (ClientInfo_MusicAppInfo_WebDisplayMode = {})); export var ClientInfo_MusicAppInfo_MusicTier; (function (ClientInfo_MusicAppInfo_MusicTier) { ClientInfo_MusicAppInfo_MusicTier[ClientInfo_MusicAppInfo_MusicTier["UNKNOWN_TIER"] = 0] = "UNKNOWN_TIER"; ClientInfo_MusicAppInfo_MusicTier[ClientInfo_MusicAppInfo_MusicTier["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(ClientInfo_MusicAppInfo_MusicTier || (ClientInfo_MusicAppInfo_MusicTier = {})); export var ClientInfo_MusicAppInfo_StoreDigitalGoodsApiSupportStatus; (function (ClientInfo_MusicAppInfo_StoreDigitalGoodsApiSupportStatus) { ClientInfo_MusicAppInfo_StoreDigitalGoodsApiSupportStatus[ClientInfo_MusicAppInfo_StoreDigitalGoodsApiSupportStatus["SDGAS_UNKNOWN"] = 0] = "SDGAS_UNKNOWN"; ClientInfo_MusicAppInfo_StoreDigitalGoodsApiSupportStatus[ClientInfo_MusicAppInfo_StoreDigitalGoodsApiSupportStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(ClientInfo_MusicAppInfo_StoreDigitalGoodsApiSupportStatus || (ClientInfo_MusicAppInfo_StoreDigitalGoodsApiSupportStatus = {})); function createBaseClientInfo() { return { hl: undefined, gl: undefined, remoteHost: undefined, deviceId: undefined, debugDeviceIdOverride: undefined, carrierGeo: undefined, crackedHl: undefined, deviceMake: undefined, deviceModel: undefined, visitorData: undefined, userAgent: undefined, clientName: undefined, clientVersion: undefined, osName: undefined, osVersion: undefined, projectId: undefined, acceptLanguage: undefined, acceptRegion: undefined, originalUrl: undefined, rawDeviceId: undefined, configData: undefined, spacecastToken: undefined, internalGeo: undefined, screenWidthPoints: undefined, screenHeightPoints: undefined, screenWidthInches: undefined, screenHeightInches: undefined, screenPixelDensity: undefined, platform: undefined, spacecastClientInfo: undefined, clientFormFactor: undefined, forwardedFor: undefined, mobileDataPlanInfo: undefined, gmscoreVersionCode: undefined, webpSupport: undefined, cameraType: undefined, experimentsToken: undefined, windowWidthPoints: undefined, windowHeightPoints: undefined, configInfo: undefined, unpluggedLocationInfo: undefined, androidSdkVersion: undefined, screenDensityFloat: undefined, firstTimeSignInExperimentIds: undefined, utcOffsetMinutes: undefined, animatedWebpSupport: undefined, kidsAppInfo: undefined, musicAppInfo: undefined, tvAppInfo: undefined, internalGeoIp: undefined, unpluggedAppInfo: undefined, locationInfo: undefined, contentSizeCategory: undefined, fontScale: undefined, userInterfaceTheme: undefined, timeZone: undefined, homeGroupInfo: undefined, emlTemplateContext: undefined, coldAppBundleConfigData: undefined, browserName: undefined, browserVersion: undefined, locationPlayabilityToken: undefined, chipset: undefined, firmwareVersion: undefined, memoryTotalKbytes: undefined, mainAppWebInfo: undefined, notificationPermissionInfo: undefined, deviceBrand: undefined, glDeviceInfo: undefined, }; } export const ClientInfo = { encode(message, writer = new BinaryWriter()) { if (message.hl !== undefined) { writer.uint32(10).string(message.hl); } if (message.gl !== undefined) { writer.uint32(18).string(message.gl); } if (message.remoteHost !== undefined) { writer.uint32(34).string(message.remoteHost); } if (message.deviceId !== undefined) { writer.uint32(50).string(message.deviceId); } if (message.debugDeviceIdOverride !== undefined) { writer.uint32(66).string(message.debugDeviceIdOverride); } if (message.carrierGeo !== undefined) { writer.uint32(82).string(message.carrierGeo); } if (message.crackedHl !== undefined) { writer.uint32(88).bool(message.crackedHl); } if (message.deviceMake !== undefined) { writer.uint32(98).string(message.deviceMake); } if (message.deviceModel !== undefined) { writer.uint32(106).string(message.deviceModel); } if (message.visitorData !== undefined) { writer.uint32(114).string(message.visitorData); } if (message.userAgent !== undefined) { writer.uint32(122).string(message.userAgent); } if (message.clientName !== undefined) { writer.uint32(128).int32(message.clientName); } if (message.clientVersion !== undefined) { writer.uint32(138).string(message.clientVersion); } if (message.osName !== undefined) { writer.uint32(146).string(message.osName); } if (message.osVersion !== undefined) { writer.uint32(154).string(message.osVersion); } if (message.projectId !== undefined) { writer.uint32(162).string(message.projectId); } if (message.acceptLanguage !== undefined) { writer.uint32(170).string(message.acceptLanguage); } if (message.acceptRegion !== undefined) { writer.uint32(178).string(message.acceptRegion); } if (message.originalUrl !== undefined) { writer.uint32(186).string(message.originalUrl); } if (message.rawDeviceId !== undefined) { writer.uint32(202).string(message.rawDeviceId); } if (message.configData !== undefined) { writer.uint32(218).string(message.configData); } if (message.spacecastToken !== undefined) { writer.uint32(250).string(message.spacecastToken); } if (message.internalGeo !== undefined) { writer.uint32(274).string(message.internalGeo); } if (message.screenWidthPoints !== undefined) { writer.uint32(296).int32(message.screenWidthPoints); } if (message.screenHeightPoints !== undefined) { writer.uint32(304).int32(message.screenHeightPoints); } if (message.screenWidthInches !== undefined) { writer.uint32(317).float(message.screenWidthInches); } if (message.screenHeightInches !== undefined) { writer.uint32(325).float(message.screenHeightInches); } if (message.screenPixelDensity !== undefined) { writer.uint32(328).int32(message.screenPixelDensity); } if (message.platform !== undefined) { writer.uint32(336).int32(message.platform); } if (message.spacecastClientInfo !== undefined) { ClientInfo_SpacecastClientInfo.encode(message.spacecastClientInfo, writer.uint32(362).fork()).join(); } if (message.clientFormFactor !== undefined) { writer.uint32(368).int32(message.clientFormFactor); } if (message.forwardedFor !== undefined) { writer.uint32(386).string(message.forwardedFor); } if (message.mobileDataPlanInfo !== undefined) { ClientInfo_MobileDataPlanInfo.encode(message.mobileDataPlanInfo, writer.uint32(394).fork()).join(); } if (message.gmscoreVersionCode !== undefined) { writer.uint32(400).int32(message.gmscoreVersionCode); } if (message.webpSupport !== undefined) { writer.uint32(408).bool(message.webpSupport); } if (message.cameraType !== undefined) { writer.uint32(416).int32(message.cameraType); } if (message.experimentsToken !== undefined) { writer.uint32(434).string(message.experimentsToken); } if (message.windowWidthPoints !== undefined) { writer.uint32(440).int32(message.windowWidthPoints); } if (message.windowHeightPoints !== undefined) { writer.uint32(448).int32(message.windowHeightPoints); } if (message.configInfo !== undefined) { ClientInfo_ConfigGroupsClientInfo.encode(message.configInfo, writer.uint32(498).fork()).join(); } if (message.unpluggedLocationInfo !== undefined) { ClientInfo_UnpluggedLocationInfo.encode(message.unpluggedLocationInfo, writer.uint32(506).fork()).join(); } if (message.androidSdkVersion !== undefined) { writer.uint32(512).int32(message.androidSdkVersion); } if (message.screenDensityFloat !== undefined) { writer.uint32(525).float(message.screenDensityFloat); } if (message.firstTimeSignInExperimentIds !== undefined) { writer.uint32(528).int32(message.firstTimeSignInExperimentIds); } if (message.utcOffsetMinutes !== undefined) { writer.uint32(536).int32(message.utcOffsetMinutes); } if (message.animatedWebpSupport !== undefined) { writer.uint32(544).bool(message.animatedWebpSupport); } if (message.kidsAppInfo !== undefined) { ClientInfo_KidsAppInfo.encode(message.kidsAppInfo, writer.uint32(554).fork()).join(); } if (message.musicAppInfo !== undefined) { ClientInfo_MusicAppInfo.encode(message.musicAppInfo, writer.uint32(562).fork()).join(); } if (message.tvAppInfo !== undefined) { ClientInfo_TvAppInfo.encode(message.tvAppInfo, writer.uint32(570).fork()).join(); } if (message.internalGeoIp !== undefined) { writer.uint32(578).string(message.internalGeoIp); } if (message.unpluggedAppInfo !== undefined) { ClientInfo_UnpluggedAppInfo.encode(message.unpluggedAppInfo, writer.uint32(586).fork()).join(); } if (message.locationInfo !== undefined) { ClientInfo_LocationInfo.encode(message.locationInfo, writer.uint32(594).fork()).join(); } if (message.contentSizeCategory !== undefined) { writer.uint32(610).string(message.contentSizeCategory); } if (message.fontScale !== undefined) { writer.uint32(621).float(message.fontScale); } if (message.userInterfaceTheme !== undefined) { writer.uint32(624).int32(message.userInterfaceTheme); } if (message.timeZone !== undefined) { writer.uint32(642).string(message.timeZone); } if (message.homeGroupInfo !== undefined) { ClientInfo_HomeGroupInfo.encode(message.homeGroupInfo, writer.uint32(650).fork()).join(); } if (message.emlTemplateContext !== undefined) { writer.uint32(674).bytes(message.emlTemplateContext); } if (message.coldAppBundleConfigData !== undefined) { writer.uint32(682).bytes(message.coldAppBundleConfigData); } if (message.browserName !== undefined) { writer.uint32(698).string(message.browserName); } if (message.browserVersion !== undefined) { writer.uint32(706).string(message.browserVersion); } if (message.locationPlayabilityToken !== undefined) { writer.uint32(714).string(message.locationPlayabilityToken); } if (message.chipset !== undefined) { writer.uint32(738).string(message.chipset); } if (message.firmwareVersion !== undefined) { writer.uint32(746).string(message.firmwareVersion); } if (message.memoryTotalKbytes !== undefined) { writer.uint32(760).int64(message.memoryTotalKbytes); } if (message.mainAppWebInfo !== undefined) { ClientInfo_MainAppWebInfo.encode(message.mainAppWebInfo, writer.uint32(770).fork()).join(); } if (message.notificationPermissionInfo !== undefined) { ClientInfo_NotificationPermissionInfo.encode(message.notificationPermissionInfo, writer.uint32(778).fork()) .join(); } if (message.deviceBrand !== undefined) { writer.uint32(786).string(message.deviceBrand); } if (message.glDeviceInfo !== undefined) { ClientInfo_GLDeviceInfo.encode(message.glDeviceInfo, writer.uint32(818).fork()).join(); } return writer; }, decode(input, length) { const reader = input instanceof BinaryReader ? input : new BinaryReader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseClientInfo(); while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { case 1: if (tag !== 10) { break; } message.hl = reader.string(); continue; case 2: if (tag !== 18) { break; } message.gl = reader.string(); continue; case 4: if (tag !== 34) { break; } message.remoteHost = reader.string(); continue; case 6: if (tag !== 50) { break; } message.deviceId = reader.string(); continue; case 8: if (tag !== 66) { break; } message.debugDeviceIdOverride = reader.string(); continue; case 10: if (tag !== 82) { break; } message.carrierGeo = reader.string(); continue; case 11: if (tag !== 88) { break; } message.crackedHl = reader.bool(); continue; case 12: if (tag !== 98) { break; } message.deviceMake = reader.string(); continue; case 13: if (tag !== 106) { break; } message.deviceModel = reader.string(); continue; case 14: if (tag !== 114) { break; } message.visitorData = reader.string(); continue; case 15: if (tag !== 122) { break; } message.userAgent = reader.string(); continue; case 16: if (tag !== 128) { break; } message.clientName = reader.int32(); continue; case 17: if (tag !== 138) { break; } message.clientVersion = reader.string(); continue; case 18: if (tag !== 146) { break; } message.osName = reader.string(); continue; case 19: if (tag !== 154) { break; } message.osVersion = reader.string(); continue; case 20: if (tag !== 162) { break; } message.projectId = reader.string(); continue; case 21: if (tag !== 170) { break; } message.acceptLanguage = reader.string(); continue; case 22: if (tag !== 178) { break; } message.acceptRegion = reader.string(); continue; case 23: if (tag !== 186) { break; } message.originalUrl = reader.string(); continue; case 25: if (tag !== 202) { break; } message.rawDeviceId = reader.string(); continue; case 27: if (tag !== 218) { break; } message.configData = reader.string(); continue; case 31: if (tag !== 250) { break; } message.spacecastToken = reader.string(); continue; case 34: if (tag !== 274) { break; } message.internalGeo = reader.string(); continue; case 37: if (tag !== 296) { break; } message.screenWidthPoints = reader.int32(); continue; case 38: if (tag !== 304) { break; } message.screenHeightPoints = reader.int32(); continue; case 39: if (tag !== 317) { break; } message.screenWidthInches = reader.float(); continue; case 40: if (tag !== 325) { break; } message.screenHeightInches = reader.float(); continue; case 41: if (tag !== 328) { break; } message.screenPixelDensity = reader.int32(); continue; case 42: if (tag !== 336) { break; } message.platform = reader.int32(); continue; case 45: if (tag !== 362) { break; } message.spacecastClientInfo = ClientInfo_SpacecastClientInfo.decode(reader, reader.uint32()); continue; case 46: if (tag !== 368) { break; } message.clientFormFactor = reader.int32(); continue; case 48: if (tag !== 386) { break; } message.forwardedFor = reader.string(); continue; case 49: if (tag !== 394) { break; } message.mobileDataPlanInfo = ClientInfo_MobileDataPlanInfo.decode(reader, reader.uint32()); continue; case 50: if (tag !== 400) { break; } message.gmscoreVersionCode = reader.int32(); continue; case 51: if (tag !== 408) { break; } message.webpSupport = reader.bool(); continue; case 52: if (tag !== 416) { break; } message.cameraType = reader.int32(); continue; case 54: if (tag !== 434) { break; } message.experimentsToken = reader.string(); continue; case 55: if (tag !== 440) { break; } message.windowWidthPoints = reader.int32(); continue; case 56: if (tag !== 448) { break; } message.windowHeightPoints = reader.int32(); continue; case 62: if (tag !== 498) { break; } message.configInfo = ClientInfo_ConfigGroupsClientInfo.decode(reader, reader.uint32()); continue; case 63: if (tag !== 506) { break; } message.unpluggedLocationInfo = ClientInfo_UnpluggedLocationInfo.decode(reader, reader.uint32()); continue; case 64: if (tag !== 512) { break; } message.androidSdkVersion = reader.int32(); continue; case 65: if (tag !== 525) { break; } message.screenDensityFloat = reader.float(); continue; case 66: if (tag !== 528) { break; } message.firstTimeSignInExperimentIds = reader.int32(); continue; case 67: if (tag !== 536) { break; } message.utcOffsetMinutes = reader.int32(); continue; case 68: if (tag !== 544) { break; } message.animatedWebpSupport = reader.bool(); continue; case 69: if (tag !== 554) { break; } message.kidsAppInfo = ClientInfo_KidsAppInfo.decode(reader, reader.uint32()); continue; case 70: if (tag !== 562) { break; } message.musicAppInfo = ClientInfo_MusicAppInfo.decode(reader, reader.uint32()); continue; case 71: if (tag !== 570) { break; } message.tvAppInfo = ClientInfo_TvAppInfo.decode(reader, reader.uint32()); continue; case 72: if (tag !== 578) { break; } message.internalGeoIp = reader.string(); continue; case 73: if (tag !== 586) { break; } message.unpluggedAppInfo = ClientInfo_UnpluggedAppInfo.decode(reader, reader.uint32()); continue; case 74: if (tag !== 594) { break; } message.locationInfo = ClientInfo_LocationInfo.decode(reader, reader.uint32()); continue; case 76: if (tag !== 610) { break; } message.contentSizeCategory = reader.string(); continue; case 77: if (tag !== 621) { break; } message.fontScale = reader.float(); continue; case 78: if (tag !== 624) { break; } message.userInterfaceTheme = reader.int32(); continue; case 80: if (tag !== 642) { break; } message.timeZone = reader.string(); continue; case 81: if (tag !== 650) { break; } message.homeGroupInfo = ClientInfo_HomeGroupInfo.decode(reader, reader.uint32()); continue; case 84: if (tag !== 674) { break; } message.emlTemplateContext = reader.bytes(); continue; case 85: if (tag !== 682) { break; } message.coldAppBundleConfigData = reader.bytes(); continue; case 87: if (tag !== 698) { break; } message.browserName = reader.string(); continue; case 88: if (tag !== 706) { break; } message.browserVersion = reader.string(); continue; case 89: if (tag !== 714) { break; } message.locationPlayabilityToken = reader.string(); continue; case 92: if (tag !== 738) { break; } message.chipset = reader.string(); continue; case 93: if (tag !== 746) { break; } message.firmwareVersion = reader.string(); continue; case 95: if (tag !== 760) { break; } message.memoryTotalKbytes = longToNumber(reader.int64()); continue; case 96: if (tag !== 770) { break; } message.mainAppWebInfo = ClientInfo_MainAppWebInfo.decode(reader, reader.uint32()); continue; case 97: if (tag !== 778) { break; } message.notificationPermissionInfo = ClientInfo_NotificationPermissionInfo.decode(reader, reader.uint32()); continue; case 98: if (tag !== 786) { break; } message.deviceBrand = reader.string(); continue; case 102: if (tag !== 818) { break; } message.glDeviceInfo = ClientInfo_GLDeviceInfo.decode(reader, reader.uint32()); continue; } if ((tag & 7) === 4 || tag === 0) { break; } reader.skip(tag & 7); } return message; }, }; function createBaseClientInfo_MainAppWebInfo() { return { graftUrl: undefined, pwaInstallabilityStatus: undefined, webDisplayMode: undefined, isWebNativeShareAvailable: undefined, storeDigitalGoodsApiSupportStatus: undefined, }; } export const ClientInfo_MainAppWebInfo = { encode(message, writer = new BinaryWriter()) { if (message.graftUrl !== undefined) { writer.uint32(10).string(message.graftUrl); } if (message.pwaInstallabilityStatus !== undefined) { writer.uint32(16).int32(message.pwaInstallabilityStatus); } if (message.webDisplayMode !== undefined) { writer.uint32(24).int32(message.webDisplayMode); } if (message.isWebNativeShareAvailable !== undefined) { writer.uint32(32).bool(message.isWebNativeShareAvailable); } if (message.storeDigitalGoodsApiSupportStatus !== undefined) { writer.uint32(40).int32(message.storeDigitalGoodsApiSupportStatus); } return writer; }, decode(input, length) { const reader = input instanceof BinaryReader ? input : new BinaryReader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseClientInfo_MainAppWebInfo(); while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { case 1: if (tag !== 10) { break; } message.graftUrl = reader.string(); continue; case 2: if (tag !== 16) { break; } message.pwaInstallabilityStatus = reader.int32(); continue; case 3: if (tag !== 24) { break; } message.webDisplayMode = reader.int32(); continue; case 4: if (tag !== 32) { break; } message.isWebNativeShareAvailable = reader.bool(); continue; case 5: if (tag !== 40) { break; } message.storeDigitalGoodsApiSupportStatus = reader.int32(); continue; } if ((tag & 7) === 4 || tag === 0) { break; } reader.skip(tag & 7); } return message; }, }; function createBaseClientInfo_NotificationPermissionInfo() { return { notificationsSetting: undefined, lastDeviceOptInChangeTimeAgoSec: undefined }; } export const ClientInfo_NotificationPermissionInfo = { encode(message, writer = new BinaryWriter()) { if (message.notificationsSetting !== undefined) { writer.uint32(8).int32(message.notificationsSetting); } if (message.lastDeviceOptInChangeTimeAgoSec !== undefined) { writer.uint32(16).int64(message.lastDeviceOptInChangeTimeAgoSec); } return writer; }, decode(input, length) { const reader = input instanceof BinaryReader ? input : new BinaryReader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseClientInfo_NotificationPermissionInfo(); while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { case 1: if (tag !== 8) { break; } message.notificationsSetting = reader.int32(); continue; case 2: if (tag !== 16) { break; } message.lastDeviceOptInChangeTimeAgoSec = longToNumber(reader.int64()); continue; } if ((tag & 7) === 4 || tag === 0) { break; } reader.skip(tag & 7); } return message; }, }; function createBaseClientInfo_GLDeviceInfo() { return { glRenderer: undefined, glEsVersionMajor: undefined, glEsVersionMinor: undefined }; } export const ClientInfo_GLDeviceInfo = { encode(message, writer = new BinaryWriter()) { if (message.glRenderer !== undefined) { writer.uint32(10).string(message.glRenderer); } if (message.glEsVersionMajor !== undefined) { writer.uint32(16).int32(message.glEsVersionMajor); } if (message.glEsVersionMinor !== undefined) { writer.uint32(24).int32(message.glEsVersionMinor); } return writer; }, decode(input, length) { const reader = input instanceof BinaryReader ? input : new BinaryReader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseClientInfo_GLDeviceInfo(); while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { case 1: if (tag !== 10) { break; } message.glRenderer = reader.string(); continue; case 2: if (tag !== 16) { break; } message.glEsVersionMajor = reader.int32(); continue; case 3: if (tag !== 24) { break; } message.glEsVersionMinor = reader.int32(); continue; } if ((tag & 7) === 4 || tag === 0) { break; } reader.skip(tag & 7); } return message; }, }; function createBaseClientInfo_SpacecastClientInfo() { return { appliances: undefined, interactionLevel: undefined }; } export const ClientInfo_SpacecastClientInfo = { encode(message, writer = new BinaryWriter()) { if (message.appliances !== undefined) { ClientInfo_SpacecastClientInfo_SpacecastAppliance.encode(message.appliances, writer.uint32(10).fork()).join(); } if (message.interactionLevel !== undefined) { writer.uint32(16).int32(message.interactionLevel); } return writer; }, decode(input, length) { const reader = input instanceof BinaryReader ? input : new BinaryReader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseClientInfo_SpacecastClientInfo(); while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { case 1: if (tag !== 10) { break; } message.appliances = ClientInfo_SpacecastClientInfo_SpacecastAppliance.decode(reader, reader.uint32()); continue; case 2: if (tag !== 16) { break; } message.interactionLevel = reader.int32(); continue; } if ((tag & 7) === 4 || tag === 0) { break; } reader.skip(tag & 7); } return message; }, }; function createBaseClientInfo_SpacecastClientInfo_SpacecastAppliance() { return { contentProfileToken: undefined, status: undefined, hostname: undefined, active: undefined, deviceId: undefined, }; } export const ClientInfo_SpacecastClientInfo_SpacecastAppliance = { encode(message, writer = new BinaryWriter()) { if (message.contentProfileToken !== undefined) { writer.uint32(10).bytes(message.contentProfileToken); } if (message.status !== undefined) { writer.uint32(16).int32(message.status); } if (message.hostname !== undefined) { writer.uint32(26).string(message.hostname); } if (message.active !== undefined) { writer.uint32(32).bool(message.active); } if (message.deviceId !== undefined) { writer.uint32(42).string(message.deviceId); } return writer; }, decode(input, length) { const reader = input instanceof BinaryReader ? input : new BinaryReader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseClientInfo_SpacecastClientInfo_SpacecastAppliance(); while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { case 1: if (tag !== 10) { break; } message.contentProfileToken = reader.bytes(); continue; case 2: if (tag !== 16) { break; } message.status = reader.int32(); continue; case 3: if (tag !== 26) { break; } message.hostname = reader.string(); continue; case 4: if (tag !== 32) { break; } message.active = reader.bool(); continue; case 5: if (tag !== 42) { break; } message.deviceId = reader.string(); continue; } if ((tag & 7) === 4 || tag === 0) { break; } reader.skip(tag & 7); } return message; }, }; fu