discord-protos 1.2.80 → 1.2.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/discord_protos/__init__.py +12 -4
- package/discord_protos/discord_experimentation/v1/Experiment.proto +6 -0
- package/discord_protos/discord_experimentation/v1/Experiment_pb2.py +24 -22
- package/discord_protos/discord_users/v1/PreloadedUserSettings.proto +2 -0
- package/discord_protos/discord_users/v1/PreloadedUserSettings_pb2.py +103 -103
- package/discord_protos/users/v1/GuildShardingConfig.proto +7 -0
- package/discord_protos/users/v1/GuildShardingConfig_pb2.py +36 -0
- package/discord_protos/users/v1/MediumUser.proto +17 -0
- package/discord_protos/users/v1/MediumUser_pb2.py +38 -0
- package/discord_protos/users/v1/User.proto +137 -0
- package/discord_protos/users/v1/UserData.proto +201 -0
- package/discord_protos/users/v1/UserData_pb2.py +106 -0
- package/discord_protos/users/v1/User_pb2.py +68 -0
- package/dist/discord_protos/discord_experimentation/v1/Experiment.d.ts +0 -8
- package/dist/discord_protos/discord_experimentation/v1/Experiment.js +0 -8
- package/dist/discord_protos/discord_users/v1/PreloadedUserSettings.d.ts +8 -0
- package/dist/discord_protos/discord_users/v1/PreloadedUserSettings.js +16 -2
- package/dist/discord_protos/users/v1/GuildShardingConfig.d.ts +26 -0
- package/dist/discord_protos/users/v1/GuildShardingConfig.js +62 -0
- package/dist/discord_protos/users/v1/MediumUser.d.ts +55 -0
- package/dist/discord_protos/users/v1/MediumUser.js +108 -0
- package/dist/discord_protos/users/v1/User.d.ts +552 -0
- package/dist/discord_protos/users/v1/User.js +989 -0
- package/dist/discord_protos/users/v1/UserData.d.ts +802 -0
- package/dist/discord_protos/users/v1/UserData.js +1493 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.js +5 -1
- package/package.json +3 -3
|
@@ -0,0 +1,1493 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserData_DisplayNameStyles = exports.UserData_PremiumState = exports.UserData_SafetyState = exports.UserData_BannedState = exports.UserData_TempBannedState = exports.UserData_DeferredActionState = exports.UserData_RestrictedState = exports.UserData_NormalState = exports.UserData_UserCollectibles = exports.UserData_UserNameplate = exports.UserData_CrossPlatformRestriction = exports.UserData_UserPrimaryGuild = exports.UserData_QuestMetadata = exports.UserData_SafetyFlag = exports.UserData_FeatureLimits = exports.UserData_RateLimitData = exports.UserData_LinkedUser = exports.UserData = exports.UserData_DisplayNameEffect = exports.UserData_DisplayNameFont = exports.UserData_PremiumSubscriptionGroupRole = exports.UserData_PremiumSubscriptionType = exports.UserData_PremiumSource = exports.UserData_SafetyAnnotations = exports.UserData_SafetyStateReason = exports.UserData_UserLinkStatus = exports.UserData_UserLinkType = void 0;
|
|
4
|
+
const runtime_1 = require("@protobuf-ts/runtime");
|
|
5
|
+
const runtime_2 = require("@protobuf-ts/runtime");
|
|
6
|
+
const runtime_3 = require("@protobuf-ts/runtime");
|
|
7
|
+
const runtime_4 = require("@protobuf-ts/runtime");
|
|
8
|
+
const wrappers_1 = require("../../google/protobuf/wrappers");
|
|
9
|
+
const wrappers_2 = require("../../google/protobuf/wrappers");
|
|
10
|
+
const wrappers_3 = require("../../google/protobuf/wrappers");
|
|
11
|
+
const timestamp_1 = require("../../google/protobuf/timestamp");
|
|
12
|
+
/**
|
|
13
|
+
* @generated from protobuf enum discord_protos.users.v1.UserData.UserLinkType
|
|
14
|
+
*/
|
|
15
|
+
var UserData_UserLinkType;
|
|
16
|
+
(function (UserData_UserLinkType) {
|
|
17
|
+
/**
|
|
18
|
+
* @generated from protobuf enum value: USER_LINK_TYPE_UNSPECIFIED = 0;
|
|
19
|
+
*/
|
|
20
|
+
UserData_UserLinkType[UserData_UserLinkType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
21
|
+
/**
|
|
22
|
+
* @generated from protobuf enum value: USER_LINK_TYPE_PARENT = 1;
|
|
23
|
+
*/
|
|
24
|
+
UserData_UserLinkType[UserData_UserLinkType["PARENT"] = 1] = "PARENT";
|
|
25
|
+
/**
|
|
26
|
+
* @generated from protobuf enum value: USER_LINK_TYPE_CHILD = 2;
|
|
27
|
+
*/
|
|
28
|
+
UserData_UserLinkType[UserData_UserLinkType["CHILD"] = 2] = "CHILD";
|
|
29
|
+
})(UserData_UserLinkType || (exports.UserData_UserLinkType = UserData_UserLinkType = {}));
|
|
30
|
+
/**
|
|
31
|
+
* @generated from protobuf enum discord_protos.users.v1.UserData.UserLinkStatus
|
|
32
|
+
*/
|
|
33
|
+
var UserData_UserLinkStatus;
|
|
34
|
+
(function (UserData_UserLinkStatus) {
|
|
35
|
+
/**
|
|
36
|
+
* @generated from protobuf enum value: USER_LINK_STATUS_UNSPECIFIED = 0;
|
|
37
|
+
*/
|
|
38
|
+
UserData_UserLinkStatus[UserData_UserLinkStatus["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
39
|
+
/**
|
|
40
|
+
* @generated from protobuf enum value: USER_LINK_STATUS_PENDING = 1;
|
|
41
|
+
*/
|
|
42
|
+
UserData_UserLinkStatus[UserData_UserLinkStatus["PENDING"] = 1] = "PENDING";
|
|
43
|
+
/**
|
|
44
|
+
* @generated from protobuf enum value: USER_LINK_STATUS_ACTIVE = 2;
|
|
45
|
+
*/
|
|
46
|
+
UserData_UserLinkStatus[UserData_UserLinkStatus["ACTIVE"] = 2] = "ACTIVE";
|
|
47
|
+
/**
|
|
48
|
+
* @generated from protobuf enum value: USER_LINK_STATUS_INACTIVE = 3;
|
|
49
|
+
*/
|
|
50
|
+
UserData_UserLinkStatus[UserData_UserLinkStatus["INACTIVE"] = 3] = "INACTIVE";
|
|
51
|
+
/**
|
|
52
|
+
* @generated from protobuf enum value: USER_LINK_STATUS_DECLINED = 4;
|
|
53
|
+
*/
|
|
54
|
+
UserData_UserLinkStatus[UserData_UserLinkStatus["DECLINED"] = 4] = "DECLINED";
|
|
55
|
+
})(UserData_UserLinkStatus || (exports.UserData_UserLinkStatus = UserData_UserLinkStatus = {}));
|
|
56
|
+
/**
|
|
57
|
+
* @generated from protobuf enum discord_protos.users.v1.UserData.SafetyStateReason
|
|
58
|
+
*/
|
|
59
|
+
var UserData_SafetyStateReason;
|
|
60
|
+
(function (UserData_SafetyStateReason) {
|
|
61
|
+
/**
|
|
62
|
+
* @generated from protobuf enum value: SAFETY_STATE_REASON_REASON_UNSPECIFIED = 0;
|
|
63
|
+
*/
|
|
64
|
+
UserData_SafetyStateReason[UserData_SafetyStateReason["REASON_UNSPECIFIED"] = 0] = "REASON_UNSPECIFIED";
|
|
65
|
+
/**
|
|
66
|
+
* @generated from protobuf enum value: SAFETY_STATE_REASON_DISABLED_SUSPICIOUS_ACTIVITY = 1;
|
|
67
|
+
*/
|
|
68
|
+
UserData_SafetyStateReason[UserData_SafetyStateReason["DISABLED_SUSPICIOUS_ACTIVITY"] = 1] = "DISABLED_SUSPICIOUS_ACTIVITY";
|
|
69
|
+
/**
|
|
70
|
+
* @generated from protobuf enum value: SAFETY_STATE_REASON_SMITE_REMOVE_EMAIL_VERIFICATION = 2;
|
|
71
|
+
*/
|
|
72
|
+
UserData_SafetyStateReason[UserData_SafetyStateReason["SMITE_REMOVE_EMAIL_VERIFICATION"] = 2] = "SMITE_REMOVE_EMAIL_VERIFICATION";
|
|
73
|
+
/**
|
|
74
|
+
* @generated from protobuf enum value: SAFETY_STATE_REASON_USER_REQUIRED_VERIFICATION_INTERVENTIONS_CLIENT = 3;
|
|
75
|
+
*/
|
|
76
|
+
UserData_SafetyStateReason[UserData_SafetyStateReason["USER_REQUIRED_VERIFICATION_INTERVENTIONS_CLIENT"] = 3] = "USER_REQUIRED_VERIFICATION_INTERVENTIONS_CLIENT";
|
|
77
|
+
/**
|
|
78
|
+
* @generated from protobuf enum value: SAFETY_STATE_REASON_ACTIVE_ASSIGNMENT_COMPLETED = 4;
|
|
79
|
+
*/
|
|
80
|
+
UserData_SafetyStateReason[UserData_SafetyStateReason["ACTIVE_ASSIGNMENT_COMPLETED"] = 4] = "ACTIVE_ASSIGNMENT_COMPLETED";
|
|
81
|
+
/**
|
|
82
|
+
* @generated from protobuf enum value: SAFETY_STATE_REASON_ACTIVE_ASSIGNMENT_CREATED = 5;
|
|
83
|
+
*/
|
|
84
|
+
UserData_SafetyStateReason[UserData_SafetyStateReason["ACTIVE_ASSIGNMENT_CREATED"] = 5] = "ACTIVE_ASSIGNMENT_CREATED";
|
|
85
|
+
/**
|
|
86
|
+
* @generated from protobuf enum value: SAFETY_STATE_REASON_DEFERRED_ASSIGNMENT_CREATED = 6;
|
|
87
|
+
*/
|
|
88
|
+
UserData_SafetyStateReason[UserData_SafetyStateReason["DEFERRED_ASSIGNMENT_CREATED"] = 6] = "DEFERRED_ASSIGNMENT_CREATED";
|
|
89
|
+
/**
|
|
90
|
+
* @generated from protobuf enum value: SAFETY_STATE_REASON_DEFERRED_ASSIGNMENT_UPGRADED_TO_ACTIVE = 7;
|
|
91
|
+
*/
|
|
92
|
+
UserData_SafetyStateReason[UserData_SafetyStateReason["DEFERRED_ASSIGNMENT_UPGRADED_TO_ACTIVE"] = 7] = "DEFERRED_ASSIGNMENT_UPGRADED_TO_ACTIVE";
|
|
93
|
+
/**
|
|
94
|
+
* @generated from protobuf enum value: SAFETY_STATE_REASON_DEFERRED_ASSIGNMENT_CANCELLED = 8;
|
|
95
|
+
*/
|
|
96
|
+
UserData_SafetyStateReason[UserData_SafetyStateReason["DEFERRED_ASSIGNMENT_CANCELLED"] = 8] = "DEFERRED_ASSIGNMENT_CANCELLED";
|
|
97
|
+
/**
|
|
98
|
+
* @generated from protobuf enum value: SAFETY_STATE_REASON_ASSIGNMENT_STATE_REPAIRED = 9;
|
|
99
|
+
*/
|
|
100
|
+
UserData_SafetyStateReason[UserData_SafetyStateReason["ASSIGNMENT_STATE_REPAIRED"] = 9] = "ASSIGNMENT_STATE_REPAIRED";
|
|
101
|
+
/**
|
|
102
|
+
* @generated from protobuf enum value: SAFETY_STATE_REASON_MANUAL_PERMANENT_BAN = 10;
|
|
103
|
+
*/
|
|
104
|
+
UserData_SafetyStateReason[UserData_SafetyStateReason["MANUAL_PERMANENT_BAN"] = 10] = "MANUAL_PERMANENT_BAN";
|
|
105
|
+
/**
|
|
106
|
+
* @generated from protobuf enum value: SAFETY_STATE_REASON_SAFETY_SYSTEM_UNBAN = 11;
|
|
107
|
+
*/
|
|
108
|
+
UserData_SafetyStateReason[UserData_SafetyStateReason["SAFETY_SYSTEM_UNBAN"] = 11] = "SAFETY_SYSTEM_UNBAN";
|
|
109
|
+
/**
|
|
110
|
+
* @generated from protobuf enum value: SAFETY_STATE_REASON_GENERIC_AUTOMATED_SAFETY_ACTION = 12;
|
|
111
|
+
*/
|
|
112
|
+
UserData_SafetyStateReason[UserData_SafetyStateReason["GENERIC_AUTOMATED_SAFETY_ACTION"] = 12] = "GENERIC_AUTOMATED_SAFETY_ACTION";
|
|
113
|
+
/**
|
|
114
|
+
* @generated from protobuf enum value: SAFETY_STATE_REASON_GENERIC_MANUAL_SAFETY_ACTION = 13;
|
|
115
|
+
*/
|
|
116
|
+
UserData_SafetyStateReason[UserData_SafetyStateReason["GENERIC_MANUAL_SAFETY_ACTION"] = 13] = "GENERIC_MANUAL_SAFETY_ACTION";
|
|
117
|
+
})(UserData_SafetyStateReason || (exports.UserData_SafetyStateReason = UserData_SafetyStateReason = {}));
|
|
118
|
+
/**
|
|
119
|
+
* @generated from protobuf enum discord_protos.users.v1.UserData.SafetyAnnotations
|
|
120
|
+
*/
|
|
121
|
+
var UserData_SafetyAnnotations;
|
|
122
|
+
(function (UserData_SafetyAnnotations) {
|
|
123
|
+
/**
|
|
124
|
+
* @generated from protobuf enum value: SAFETY_ANNOTATIONS_ANNOTATION_UNSPECIFIED = 0;
|
|
125
|
+
*/
|
|
126
|
+
UserData_SafetyAnnotations[UserData_SafetyAnnotations["ANNOTATION_UNSPECIFIED"] = 0] = "ANNOTATION_UNSPECIFIED";
|
|
127
|
+
/**
|
|
128
|
+
* @generated from protobuf enum value: SAFETY_ANNOTATIONS_SPAMMER = 1;
|
|
129
|
+
*/
|
|
130
|
+
UserData_SafetyAnnotations[UserData_SafetyAnnotations["SPAMMER"] = 1] = "SPAMMER";
|
|
131
|
+
/**
|
|
132
|
+
* @generated from protobuf enum value: SAFETY_ANNOTATIONS_SELF_DELETED = 2;
|
|
133
|
+
*/
|
|
134
|
+
UserData_SafetyAnnotations[UserData_SafetyAnnotations["SELF_DELETED"] = 2] = "SELF_DELETED";
|
|
135
|
+
/**
|
|
136
|
+
* @generated from protobuf enum value: SAFETY_ANNOTATIONS_SELF_DISABLED = 3;
|
|
137
|
+
*/
|
|
138
|
+
UserData_SafetyAnnotations[UserData_SafetyAnnotations["SELF_DISABLED"] = 3] = "SELF_DISABLED";
|
|
139
|
+
/**
|
|
140
|
+
* @generated from protobuf enum value: SAFETY_ANNOTATIONS_UNDERAGE_DELETED = 4;
|
|
141
|
+
*/
|
|
142
|
+
UserData_SafetyAnnotations[UserData_SafetyAnnotations["UNDERAGE_DELETED"] = 4] = "UNDERAGE_DELETED";
|
|
143
|
+
/**
|
|
144
|
+
* @generated from protobuf enum value: SAFETY_ANNOTATIONS_SAFETY_POLICY_VIOLATION = 5;
|
|
145
|
+
*/
|
|
146
|
+
UserData_SafetyAnnotations[UserData_SafetyAnnotations["SAFETY_POLICY_VIOLATION"] = 5] = "SAFETY_POLICY_VIOLATION";
|
|
147
|
+
/**
|
|
148
|
+
* @generated from protobuf enum value: SAFETY_ANNOTATIONS_INACTIVITY_DELETED = 6;
|
|
149
|
+
*/
|
|
150
|
+
UserData_SafetyAnnotations[UserData_SafetyAnnotations["INACTIVITY_DELETED"] = 6] = "INACTIVITY_DELETED";
|
|
151
|
+
/**
|
|
152
|
+
* @generated from protobuf enum value: SAFETY_ANNOTATIONS_GENERIC_DELETED = 7;
|
|
153
|
+
*/
|
|
154
|
+
UserData_SafetyAnnotations[UserData_SafetyAnnotations["GENERIC_DELETED"] = 7] = "GENERIC_DELETED";
|
|
155
|
+
})(UserData_SafetyAnnotations || (exports.UserData_SafetyAnnotations = UserData_SafetyAnnotations = {}));
|
|
156
|
+
/**
|
|
157
|
+
* @generated from protobuf enum discord_protos.users.v1.UserData.PremiumSource
|
|
158
|
+
*/
|
|
159
|
+
var UserData_PremiumSource;
|
|
160
|
+
(function (UserData_PremiumSource) {
|
|
161
|
+
/**
|
|
162
|
+
* @generated from protobuf enum value: PREMIUM_SOURCE_NONE_UNSPECIFIED = 0;
|
|
163
|
+
*/
|
|
164
|
+
UserData_PremiumSource[UserData_PremiumSource["NONE_UNSPECIFIED"] = 0] = "NONE_UNSPECIFIED";
|
|
165
|
+
/**
|
|
166
|
+
* @generated from protobuf enum value: PREMIUM_SOURCE_SUBSCRIPTION = 1;
|
|
167
|
+
*/
|
|
168
|
+
UserData_PremiumSource[UserData_PremiumSource["SUBSCRIPTION"] = 1] = "SUBSCRIPTION";
|
|
169
|
+
/**
|
|
170
|
+
* @generated from protobuf enum value: PREMIUM_SOURCE_FRACTIONAL_NITRO = 2;
|
|
171
|
+
*/
|
|
172
|
+
UserData_PremiumSource[UserData_PremiumSource["FRACTIONAL_NITRO"] = 2] = "FRACTIONAL_NITRO";
|
|
173
|
+
/**
|
|
174
|
+
* @generated from protobuf enum value: PREMIUM_SOURCE_REVERSE_TRIAL = 3;
|
|
175
|
+
*/
|
|
176
|
+
UserData_PremiumSource[UserData_PremiumSource["REVERSE_TRIAL"] = 3] = "REVERSE_TRIAL";
|
|
177
|
+
/**
|
|
178
|
+
* @generated from protobuf enum value: PREMIUM_SOURCE_SUBSCRIPTION_GROUP = 4;
|
|
179
|
+
*/
|
|
180
|
+
UserData_PremiumSource[UserData_PremiumSource["SUBSCRIPTION_GROUP"] = 4] = "SUBSCRIPTION_GROUP";
|
|
181
|
+
})(UserData_PremiumSource || (exports.UserData_PremiumSource = UserData_PremiumSource = {}));
|
|
182
|
+
/**
|
|
183
|
+
* @generated from protobuf enum discord_protos.users.v1.UserData.PremiumSubscriptionType
|
|
184
|
+
*/
|
|
185
|
+
var UserData_PremiumSubscriptionType;
|
|
186
|
+
(function (UserData_PremiumSubscriptionType) {
|
|
187
|
+
/**
|
|
188
|
+
* @generated from protobuf enum value: PREMIUM_SUBSCRIPTION_TYPE_NONE_UNSPECIFIED = 0;
|
|
189
|
+
*/
|
|
190
|
+
UserData_PremiumSubscriptionType[UserData_PremiumSubscriptionType["NONE_UNSPECIFIED"] = 0] = "NONE_UNSPECIFIED";
|
|
191
|
+
/**
|
|
192
|
+
* @generated from protobuf enum value: PREMIUM_SUBSCRIPTION_TYPE_BOOST_ONLY = 1;
|
|
193
|
+
*/
|
|
194
|
+
UserData_PremiumSubscriptionType[UserData_PremiumSubscriptionType["BOOST_ONLY"] = 1] = "BOOST_ONLY";
|
|
195
|
+
/**
|
|
196
|
+
* @generated from protobuf enum value: PREMIUM_SUBSCRIPTION_TYPE_TIER_0 = 2;
|
|
197
|
+
*/
|
|
198
|
+
UserData_PremiumSubscriptionType[UserData_PremiumSubscriptionType["TIER_0"] = 2] = "TIER_0";
|
|
199
|
+
/**
|
|
200
|
+
* @generated from protobuf enum value: PREMIUM_SUBSCRIPTION_TYPE_TIER_1 = 3;
|
|
201
|
+
*/
|
|
202
|
+
UserData_PremiumSubscriptionType[UserData_PremiumSubscriptionType["TIER_1"] = 3] = "TIER_1";
|
|
203
|
+
/**
|
|
204
|
+
* @generated from protobuf enum value: PREMIUM_SUBSCRIPTION_TYPE_TIER_2 = 4;
|
|
205
|
+
*/
|
|
206
|
+
UserData_PremiumSubscriptionType[UserData_PremiumSubscriptionType["TIER_2"] = 4] = "TIER_2";
|
|
207
|
+
})(UserData_PremiumSubscriptionType || (exports.UserData_PremiumSubscriptionType = UserData_PremiumSubscriptionType = {}));
|
|
208
|
+
/**
|
|
209
|
+
* @generated from protobuf enum discord_protos.users.v1.UserData.PremiumSubscriptionGroupRole
|
|
210
|
+
*/
|
|
211
|
+
var UserData_PremiumSubscriptionGroupRole;
|
|
212
|
+
(function (UserData_PremiumSubscriptionGroupRole) {
|
|
213
|
+
/**
|
|
214
|
+
* @generated from protobuf enum value: PREMIUM_SUBSCRIPTION_GROUP_ROLE_UNSPECIFIED = 0;
|
|
215
|
+
*/
|
|
216
|
+
UserData_PremiumSubscriptionGroupRole[UserData_PremiumSubscriptionGroupRole["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
217
|
+
/**
|
|
218
|
+
* @generated from protobuf enum value: PREMIUM_SUBSCRIPTION_GROUP_ROLE_PRIMARY = 1;
|
|
219
|
+
*/
|
|
220
|
+
UserData_PremiumSubscriptionGroupRole[UserData_PremiumSubscriptionGroupRole["PRIMARY"] = 1] = "PRIMARY";
|
|
221
|
+
/**
|
|
222
|
+
* @generated from protobuf enum value: PREMIUM_SUBSCRIPTION_GROUP_ROLE_MEMBER = 2;
|
|
223
|
+
*/
|
|
224
|
+
UserData_PremiumSubscriptionGroupRole[UserData_PremiumSubscriptionGroupRole["MEMBER"] = 2] = "MEMBER";
|
|
225
|
+
})(UserData_PremiumSubscriptionGroupRole || (exports.UserData_PremiumSubscriptionGroupRole = UserData_PremiumSubscriptionGroupRole = {}));
|
|
226
|
+
/**
|
|
227
|
+
* @generated from protobuf enum discord_protos.users.v1.UserData.DisplayNameFont
|
|
228
|
+
*/
|
|
229
|
+
var UserData_DisplayNameFont;
|
|
230
|
+
(function (UserData_DisplayNameFont) {
|
|
231
|
+
/**
|
|
232
|
+
* @generated from protobuf enum value: DISPLAY_NAME_FONT_UNSPECIFIED = 0;
|
|
233
|
+
*/
|
|
234
|
+
UserData_DisplayNameFont[UserData_DisplayNameFont["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
235
|
+
/**
|
|
236
|
+
* @generated from protobuf enum value: DISPLAY_NAME_FONT_DEFAULT = 11;
|
|
237
|
+
*/
|
|
238
|
+
UserData_DisplayNameFont[UserData_DisplayNameFont["DEFAULT"] = 11] = "DEFAULT";
|
|
239
|
+
/**
|
|
240
|
+
* @generated from protobuf enum value: DISPLAY_NAME_FONT_BANGERS = 1;
|
|
241
|
+
*/
|
|
242
|
+
UserData_DisplayNameFont[UserData_DisplayNameFont["BANGERS"] = 1] = "BANGERS";
|
|
243
|
+
/**
|
|
244
|
+
* @generated from protobuf enum value: DISPLAY_NAME_FONT_BIO_RHYME = 2;
|
|
245
|
+
*/
|
|
246
|
+
UserData_DisplayNameFont[UserData_DisplayNameFont["BIO_RHYME"] = 2] = "BIO_RHYME";
|
|
247
|
+
/**
|
|
248
|
+
* @generated from protobuf enum value: DISPLAY_NAME_FONT_CHERRY_BOMB = 3;
|
|
249
|
+
*/
|
|
250
|
+
UserData_DisplayNameFont[UserData_DisplayNameFont["CHERRY_BOMB"] = 3] = "CHERRY_BOMB";
|
|
251
|
+
/**
|
|
252
|
+
* @generated from protobuf enum value: DISPLAY_NAME_FONT_CHICLE = 4;
|
|
253
|
+
*/
|
|
254
|
+
UserData_DisplayNameFont[UserData_DisplayNameFont["CHICLE"] = 4] = "CHICLE";
|
|
255
|
+
/**
|
|
256
|
+
* @generated from protobuf enum value: DISPLAY_NAME_FONT_COMPAGNON = 5;
|
|
257
|
+
*/
|
|
258
|
+
UserData_DisplayNameFont[UserData_DisplayNameFont["COMPAGNON"] = 5] = "COMPAGNON";
|
|
259
|
+
/**
|
|
260
|
+
* @generated from protobuf enum value: DISPLAY_NAME_FONT_MUSEO_MODERNO = 6;
|
|
261
|
+
*/
|
|
262
|
+
UserData_DisplayNameFont[UserData_DisplayNameFont["MUSEO_MODERNO"] = 6] = "MUSEO_MODERNO";
|
|
263
|
+
/**
|
|
264
|
+
* @generated from protobuf enum value: DISPLAY_NAME_FONT_NEO_CASTEL = 7;
|
|
265
|
+
*/
|
|
266
|
+
UserData_DisplayNameFont[UserData_DisplayNameFont["NEO_CASTEL"] = 7] = "NEO_CASTEL";
|
|
267
|
+
/**
|
|
268
|
+
* @generated from protobuf enum value: DISPLAY_NAME_FONT_PIXELIFY = 8;
|
|
269
|
+
*/
|
|
270
|
+
UserData_DisplayNameFont[UserData_DisplayNameFont["PIXELIFY"] = 8] = "PIXELIFY";
|
|
271
|
+
/**
|
|
272
|
+
* @generated from protobuf enum value: DISPLAY_NAME_FONT_RIBES = 9;
|
|
273
|
+
*/
|
|
274
|
+
UserData_DisplayNameFont[UserData_DisplayNameFont["RIBES"] = 9] = "RIBES";
|
|
275
|
+
/**
|
|
276
|
+
* @generated from protobuf enum value: DISPLAY_NAME_FONT_SINISTRE = 10;
|
|
277
|
+
*/
|
|
278
|
+
UserData_DisplayNameFont[UserData_DisplayNameFont["SINISTRE"] = 10] = "SINISTRE";
|
|
279
|
+
/**
|
|
280
|
+
* @generated from protobuf enum value: DISPLAY_NAME_FONT_ZILLA_SLAB = 12;
|
|
281
|
+
*/
|
|
282
|
+
UserData_DisplayNameFont[UserData_DisplayNameFont["ZILLA_SLAB"] = 12] = "ZILLA_SLAB";
|
|
283
|
+
})(UserData_DisplayNameFont || (exports.UserData_DisplayNameFont = UserData_DisplayNameFont = {}));
|
|
284
|
+
/**
|
|
285
|
+
* @generated from protobuf enum discord_protos.users.v1.UserData.DisplayNameEffect
|
|
286
|
+
*/
|
|
287
|
+
var UserData_DisplayNameEffect;
|
|
288
|
+
(function (UserData_DisplayNameEffect) {
|
|
289
|
+
/**
|
|
290
|
+
* @generated from protobuf enum value: DISPLAY_NAME_EFFECT_UNSPECIFIED = 0;
|
|
291
|
+
*/
|
|
292
|
+
UserData_DisplayNameEffect[UserData_DisplayNameEffect["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
293
|
+
/**
|
|
294
|
+
* @generated from protobuf enum value: DISPLAY_NAME_EFFECT_SOLID = 1;
|
|
295
|
+
*/
|
|
296
|
+
UserData_DisplayNameEffect[UserData_DisplayNameEffect["SOLID"] = 1] = "SOLID";
|
|
297
|
+
/**
|
|
298
|
+
* @generated from protobuf enum value: DISPLAY_NAME_EFFECT_GRADIENT = 2;
|
|
299
|
+
*/
|
|
300
|
+
UserData_DisplayNameEffect[UserData_DisplayNameEffect["GRADIENT"] = 2] = "GRADIENT";
|
|
301
|
+
/**
|
|
302
|
+
* @generated from protobuf enum value: DISPLAY_NAME_EFFECT_NEON = 3;
|
|
303
|
+
*/
|
|
304
|
+
UserData_DisplayNameEffect[UserData_DisplayNameEffect["NEON"] = 3] = "NEON";
|
|
305
|
+
/**
|
|
306
|
+
* @generated from protobuf enum value: DISPLAY_NAME_EFFECT_TOON = 4;
|
|
307
|
+
*/
|
|
308
|
+
UserData_DisplayNameEffect[UserData_DisplayNameEffect["TOON"] = 4] = "TOON";
|
|
309
|
+
/**
|
|
310
|
+
* @generated from protobuf enum value: DISPLAY_NAME_EFFECT_POP = 5;
|
|
311
|
+
*/
|
|
312
|
+
UserData_DisplayNameEffect[UserData_DisplayNameEffect["POP"] = 5] = "POP";
|
|
313
|
+
/**
|
|
314
|
+
* @generated from protobuf enum value: DISPLAY_NAME_EFFECT_GLOW = 6;
|
|
315
|
+
*/
|
|
316
|
+
UserData_DisplayNameEffect[UserData_DisplayNameEffect["GLOW"] = 6] = "GLOW";
|
|
317
|
+
})(UserData_DisplayNameEffect || (exports.UserData_DisplayNameEffect = UserData_DisplayNameEffect = {}));
|
|
318
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
319
|
+
class UserData$Type extends runtime_4.MessageType {
|
|
320
|
+
constructor() {
|
|
321
|
+
super("discord_protos.users.v1.UserData", [
|
|
322
|
+
{ no: 1, name: "linked_users", kind: "map", K: 6 /*ScalarType.FIXED64*/, V: { kind: "message", T: () => exports.UserData_LinkedUser } },
|
|
323
|
+
{ no: 2, name: "safety_feature_limits", kind: "map", K: 13 /*ScalarType.UINT32*/, V: { kind: "message", T: () => exports.UserData_FeatureLimits } },
|
|
324
|
+
{ no: 3, name: "safety_flags", kind: "map", K: 13 /*ScalarType.UINT32*/, V: { kind: "message", T: () => exports.UserData_SafetyFlag } },
|
|
325
|
+
{ no: 4, name: "quest", kind: "message", T: () => exports.UserData_QuestMetadata },
|
|
326
|
+
{ no: 5, name: "primary_guild", kind: "message", T: () => exports.UserData_UserPrimaryGuild },
|
|
327
|
+
{ no: 6, name: "cross_platform_restriction", kind: "message", T: () => exports.UserData_CrossPlatformRestriction },
|
|
328
|
+
{ no: 7, name: "collectibles", kind: "message", T: () => exports.UserData_UserCollectibles },
|
|
329
|
+
{ no: 8, name: "safety_state", kind: "message", T: () => exports.UserData_SafetyState },
|
|
330
|
+
{ no: 9, name: "premium_state", kind: "message", T: () => exports.UserData_PremiumState },
|
|
331
|
+
{ no: 10, name: "display_name_styles", kind: "message", T: () => exports.UserData_DisplayNameStyles }
|
|
332
|
+
]);
|
|
333
|
+
}
|
|
334
|
+
create(value) {
|
|
335
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
336
|
+
message.linkedUsers = {};
|
|
337
|
+
message.safetyFeatureLimits = {};
|
|
338
|
+
message.safetyFlags = {};
|
|
339
|
+
if (value !== undefined)
|
|
340
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
341
|
+
return message;
|
|
342
|
+
}
|
|
343
|
+
internalBinaryRead(reader, length, options, target) {
|
|
344
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
345
|
+
while (reader.pos < end) {
|
|
346
|
+
let [fieldNo, wireType] = reader.tag();
|
|
347
|
+
switch (fieldNo) {
|
|
348
|
+
case /* map<fixed64, discord_protos.users.v1.UserData.LinkedUser> linked_users */ 1:
|
|
349
|
+
this.binaryReadMap1(message.linkedUsers, reader, options);
|
|
350
|
+
break;
|
|
351
|
+
case /* map<uint32, discord_protos.users.v1.UserData.FeatureLimits> safety_feature_limits */ 2:
|
|
352
|
+
this.binaryReadMap2(message.safetyFeatureLimits, reader, options);
|
|
353
|
+
break;
|
|
354
|
+
case /* map<uint32, discord_protos.users.v1.UserData.SafetyFlag> safety_flags */ 3:
|
|
355
|
+
this.binaryReadMap3(message.safetyFlags, reader, options);
|
|
356
|
+
break;
|
|
357
|
+
case /* optional discord_protos.users.v1.UserData.QuestMetadata quest */ 4:
|
|
358
|
+
message.quest = exports.UserData_QuestMetadata.internalBinaryRead(reader, reader.uint32(), options, message.quest);
|
|
359
|
+
break;
|
|
360
|
+
case /* optional discord_protos.users.v1.UserData.UserPrimaryGuild primary_guild */ 5:
|
|
361
|
+
message.primaryGuild = exports.UserData_UserPrimaryGuild.internalBinaryRead(reader, reader.uint32(), options, message.primaryGuild);
|
|
362
|
+
break;
|
|
363
|
+
case /* optional discord_protos.users.v1.UserData.CrossPlatformRestriction cross_platform_restriction */ 6:
|
|
364
|
+
message.crossPlatformRestriction = exports.UserData_CrossPlatformRestriction.internalBinaryRead(reader, reader.uint32(), options, message.crossPlatformRestriction);
|
|
365
|
+
break;
|
|
366
|
+
case /* optional discord_protos.users.v1.UserData.UserCollectibles collectibles */ 7:
|
|
367
|
+
message.collectibles = exports.UserData_UserCollectibles.internalBinaryRead(reader, reader.uint32(), options, message.collectibles);
|
|
368
|
+
break;
|
|
369
|
+
case /* optional discord_protos.users.v1.UserData.SafetyState safety_state */ 8:
|
|
370
|
+
message.safetyState = exports.UserData_SafetyState.internalBinaryRead(reader, reader.uint32(), options, message.safetyState);
|
|
371
|
+
break;
|
|
372
|
+
case /* optional discord_protos.users.v1.UserData.PremiumState premium_state */ 9:
|
|
373
|
+
message.premiumState = exports.UserData_PremiumState.internalBinaryRead(reader, reader.uint32(), options, message.premiumState);
|
|
374
|
+
break;
|
|
375
|
+
case /* optional discord_protos.users.v1.UserData.DisplayNameStyles display_name_styles */ 10:
|
|
376
|
+
message.displayNameStyles = exports.UserData_DisplayNameStyles.internalBinaryRead(reader, reader.uint32(), options, message.displayNameStyles);
|
|
377
|
+
break;
|
|
378
|
+
default:
|
|
379
|
+
let u = options.readUnknownField;
|
|
380
|
+
if (u === "throw")
|
|
381
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
382
|
+
let d = reader.skip(wireType);
|
|
383
|
+
if (u !== false)
|
|
384
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
return message;
|
|
388
|
+
}
|
|
389
|
+
binaryReadMap1(map, reader, options) {
|
|
390
|
+
let len = reader.uint32(), end = reader.pos + len, key, val;
|
|
391
|
+
while (reader.pos < end) {
|
|
392
|
+
let [fieldNo, wireType] = reader.tag();
|
|
393
|
+
switch (fieldNo) {
|
|
394
|
+
case 1:
|
|
395
|
+
key = reader.fixed64().toString();
|
|
396
|
+
break;
|
|
397
|
+
case 2:
|
|
398
|
+
val = exports.UserData_LinkedUser.internalBinaryRead(reader, reader.uint32(), options);
|
|
399
|
+
break;
|
|
400
|
+
default: throw new globalThis.Error("unknown map entry field for discord_protos.users.v1.UserData.linked_users");
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
map[key ?? "0"] = val ?? exports.UserData_LinkedUser.create();
|
|
404
|
+
}
|
|
405
|
+
binaryReadMap2(map, reader, options) {
|
|
406
|
+
let len = reader.uint32(), end = reader.pos + len, key, val;
|
|
407
|
+
while (reader.pos < end) {
|
|
408
|
+
let [fieldNo, wireType] = reader.tag();
|
|
409
|
+
switch (fieldNo) {
|
|
410
|
+
case 1:
|
|
411
|
+
key = reader.uint32();
|
|
412
|
+
break;
|
|
413
|
+
case 2:
|
|
414
|
+
val = exports.UserData_FeatureLimits.internalBinaryRead(reader, reader.uint32(), options);
|
|
415
|
+
break;
|
|
416
|
+
default: throw new globalThis.Error("unknown map entry field for discord_protos.users.v1.UserData.safety_feature_limits");
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
map[key ?? 0] = val ?? exports.UserData_FeatureLimits.create();
|
|
420
|
+
}
|
|
421
|
+
binaryReadMap3(map, reader, options) {
|
|
422
|
+
let len = reader.uint32(), end = reader.pos + len, key, val;
|
|
423
|
+
while (reader.pos < end) {
|
|
424
|
+
let [fieldNo, wireType] = reader.tag();
|
|
425
|
+
switch (fieldNo) {
|
|
426
|
+
case 1:
|
|
427
|
+
key = reader.uint32();
|
|
428
|
+
break;
|
|
429
|
+
case 2:
|
|
430
|
+
val = exports.UserData_SafetyFlag.internalBinaryRead(reader, reader.uint32(), options);
|
|
431
|
+
break;
|
|
432
|
+
default: throw new globalThis.Error("unknown map entry field for discord_protos.users.v1.UserData.safety_flags");
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
map[key ?? 0] = val ?? exports.UserData_SafetyFlag.create();
|
|
436
|
+
}
|
|
437
|
+
internalBinaryWrite(message, writer, options) {
|
|
438
|
+
/* map<fixed64, discord_protos.users.v1.UserData.LinkedUser> linked_users = 1; */
|
|
439
|
+
for (let k of globalThis.Object.keys(message.linkedUsers)) {
|
|
440
|
+
writer.tag(1, runtime_1.WireType.LengthDelimited).fork().tag(1, runtime_1.WireType.Bit64).fixed64(k);
|
|
441
|
+
writer.tag(2, runtime_1.WireType.LengthDelimited).fork();
|
|
442
|
+
exports.UserData_LinkedUser.internalBinaryWrite(message.linkedUsers[k], writer, options);
|
|
443
|
+
writer.join().join();
|
|
444
|
+
}
|
|
445
|
+
/* map<uint32, discord_protos.users.v1.UserData.FeatureLimits> safety_feature_limits = 2; */
|
|
446
|
+
for (let k of globalThis.Object.keys(message.safetyFeatureLimits)) {
|
|
447
|
+
writer.tag(2, runtime_1.WireType.LengthDelimited).fork().tag(1, runtime_1.WireType.Varint).uint32(parseInt(k));
|
|
448
|
+
writer.tag(2, runtime_1.WireType.LengthDelimited).fork();
|
|
449
|
+
exports.UserData_FeatureLimits.internalBinaryWrite(message.safetyFeatureLimits[k], writer, options);
|
|
450
|
+
writer.join().join();
|
|
451
|
+
}
|
|
452
|
+
/* map<uint32, discord_protos.users.v1.UserData.SafetyFlag> safety_flags = 3; */
|
|
453
|
+
for (let k of globalThis.Object.keys(message.safetyFlags)) {
|
|
454
|
+
writer.tag(3, runtime_1.WireType.LengthDelimited).fork().tag(1, runtime_1.WireType.Varint).uint32(parseInt(k));
|
|
455
|
+
writer.tag(2, runtime_1.WireType.LengthDelimited).fork();
|
|
456
|
+
exports.UserData_SafetyFlag.internalBinaryWrite(message.safetyFlags[k], writer, options);
|
|
457
|
+
writer.join().join();
|
|
458
|
+
}
|
|
459
|
+
/* optional discord_protos.users.v1.UserData.QuestMetadata quest = 4; */
|
|
460
|
+
if (message.quest)
|
|
461
|
+
exports.UserData_QuestMetadata.internalBinaryWrite(message.quest, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
462
|
+
/* optional discord_protos.users.v1.UserData.UserPrimaryGuild primary_guild = 5; */
|
|
463
|
+
if (message.primaryGuild)
|
|
464
|
+
exports.UserData_UserPrimaryGuild.internalBinaryWrite(message.primaryGuild, writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
465
|
+
/* optional discord_protos.users.v1.UserData.CrossPlatformRestriction cross_platform_restriction = 6; */
|
|
466
|
+
if (message.crossPlatformRestriction)
|
|
467
|
+
exports.UserData_CrossPlatformRestriction.internalBinaryWrite(message.crossPlatformRestriction, writer.tag(6, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
468
|
+
/* optional discord_protos.users.v1.UserData.UserCollectibles collectibles = 7; */
|
|
469
|
+
if (message.collectibles)
|
|
470
|
+
exports.UserData_UserCollectibles.internalBinaryWrite(message.collectibles, writer.tag(7, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
471
|
+
/* optional discord_protos.users.v1.UserData.SafetyState safety_state = 8; */
|
|
472
|
+
if (message.safetyState)
|
|
473
|
+
exports.UserData_SafetyState.internalBinaryWrite(message.safetyState, writer.tag(8, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
474
|
+
/* optional discord_protos.users.v1.UserData.PremiumState premium_state = 9; */
|
|
475
|
+
if (message.premiumState)
|
|
476
|
+
exports.UserData_PremiumState.internalBinaryWrite(message.premiumState, writer.tag(9, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
477
|
+
/* optional discord_protos.users.v1.UserData.DisplayNameStyles display_name_styles = 10; */
|
|
478
|
+
if (message.displayNameStyles)
|
|
479
|
+
exports.UserData_DisplayNameStyles.internalBinaryWrite(message.displayNameStyles, writer.tag(10, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
480
|
+
let u = options.writeUnknownFields;
|
|
481
|
+
if (u !== false)
|
|
482
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
483
|
+
return writer;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.UserData
|
|
488
|
+
*/
|
|
489
|
+
exports.UserData = new UserData$Type();
|
|
490
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
491
|
+
class UserData_LinkedUser$Type extends runtime_4.MessageType {
|
|
492
|
+
constructor() {
|
|
493
|
+
super("discord_protos.users.v1.UserData.LinkedUser", [
|
|
494
|
+
{ no: 1, name: "user_id", kind: "scalar", T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/ },
|
|
495
|
+
{ no: 2, name: "link_type", kind: "enum", T: () => ["discord_protos.users.v1.UserData.UserLinkType", UserData_UserLinkType, "USER_LINK_TYPE_"] },
|
|
496
|
+
{ no: 3, name: "link_status", kind: "enum", T: () => ["discord_protos.users.v1.UserData.UserLinkStatus", UserData_UserLinkStatus, "USER_LINK_STATUS_"] },
|
|
497
|
+
{ no: 4, name: "requestor_id", kind: "scalar", T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/ },
|
|
498
|
+
{ no: 5, name: "created_at", kind: "message", T: () => timestamp_1.Timestamp },
|
|
499
|
+
{ no: 6, name: "updated_at", kind: "message", T: () => timestamp_1.Timestamp }
|
|
500
|
+
]);
|
|
501
|
+
}
|
|
502
|
+
create(value) {
|
|
503
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
504
|
+
message.userId = 0n;
|
|
505
|
+
message.linkType = 0;
|
|
506
|
+
message.linkStatus = 0;
|
|
507
|
+
message.requestorId = 0n;
|
|
508
|
+
if (value !== undefined)
|
|
509
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
510
|
+
return message;
|
|
511
|
+
}
|
|
512
|
+
internalBinaryRead(reader, length, options, target) {
|
|
513
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
514
|
+
while (reader.pos < end) {
|
|
515
|
+
let [fieldNo, wireType] = reader.tag();
|
|
516
|
+
switch (fieldNo) {
|
|
517
|
+
case /* fixed64 user_id */ 1:
|
|
518
|
+
message.userId = reader.fixed64().toBigInt();
|
|
519
|
+
break;
|
|
520
|
+
case /* discord_protos.users.v1.UserData.UserLinkType link_type */ 2:
|
|
521
|
+
message.linkType = reader.int32();
|
|
522
|
+
break;
|
|
523
|
+
case /* discord_protos.users.v1.UserData.UserLinkStatus link_status */ 3:
|
|
524
|
+
message.linkStatus = reader.int32();
|
|
525
|
+
break;
|
|
526
|
+
case /* fixed64 requestor_id */ 4:
|
|
527
|
+
message.requestorId = reader.fixed64().toBigInt();
|
|
528
|
+
break;
|
|
529
|
+
case /* optional google.protobuf.Timestamp created_at */ 5:
|
|
530
|
+
message.createdAt = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
531
|
+
break;
|
|
532
|
+
case /* optional google.protobuf.Timestamp updated_at */ 6:
|
|
533
|
+
message.updatedAt = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
534
|
+
break;
|
|
535
|
+
default:
|
|
536
|
+
let u = options.readUnknownField;
|
|
537
|
+
if (u === "throw")
|
|
538
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
539
|
+
let d = reader.skip(wireType);
|
|
540
|
+
if (u !== false)
|
|
541
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
return message;
|
|
545
|
+
}
|
|
546
|
+
internalBinaryWrite(message, writer, options) {
|
|
547
|
+
/* fixed64 user_id = 1; */
|
|
548
|
+
if (message.userId !== 0n)
|
|
549
|
+
writer.tag(1, runtime_1.WireType.Bit64).fixed64(message.userId);
|
|
550
|
+
/* discord_protos.users.v1.UserData.UserLinkType link_type = 2; */
|
|
551
|
+
if (message.linkType !== 0)
|
|
552
|
+
writer.tag(2, runtime_1.WireType.Varint).int32(message.linkType);
|
|
553
|
+
/* discord_protos.users.v1.UserData.UserLinkStatus link_status = 3; */
|
|
554
|
+
if (message.linkStatus !== 0)
|
|
555
|
+
writer.tag(3, runtime_1.WireType.Varint).int32(message.linkStatus);
|
|
556
|
+
/* fixed64 requestor_id = 4; */
|
|
557
|
+
if (message.requestorId !== 0n)
|
|
558
|
+
writer.tag(4, runtime_1.WireType.Bit64).fixed64(message.requestorId);
|
|
559
|
+
/* optional google.protobuf.Timestamp created_at = 5; */
|
|
560
|
+
if (message.createdAt)
|
|
561
|
+
timestamp_1.Timestamp.internalBinaryWrite(message.createdAt, writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
562
|
+
/* optional google.protobuf.Timestamp updated_at = 6; */
|
|
563
|
+
if (message.updatedAt)
|
|
564
|
+
timestamp_1.Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(6, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
565
|
+
let u = options.writeUnknownFields;
|
|
566
|
+
if (u !== false)
|
|
567
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
568
|
+
return writer;
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.UserData.LinkedUser
|
|
573
|
+
*/
|
|
574
|
+
exports.UserData_LinkedUser = new UserData_LinkedUser$Type();
|
|
575
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
576
|
+
class UserData_RateLimitData$Type extends runtime_4.MessageType {
|
|
577
|
+
constructor() {
|
|
578
|
+
super("discord_protos.users.v1.UserData.RateLimitData", [
|
|
579
|
+
{ no: 1, name: "limit_expiry", kind: "message", T: () => timestamp_1.Timestamp }
|
|
580
|
+
]);
|
|
581
|
+
}
|
|
582
|
+
create(value) {
|
|
583
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
584
|
+
if (value !== undefined)
|
|
585
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
586
|
+
return message;
|
|
587
|
+
}
|
|
588
|
+
internalBinaryRead(reader, length, options, target) {
|
|
589
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
590
|
+
while (reader.pos < end) {
|
|
591
|
+
let [fieldNo, wireType] = reader.tag();
|
|
592
|
+
switch (fieldNo) {
|
|
593
|
+
case /* optional google.protobuf.Timestamp limit_expiry */ 1:
|
|
594
|
+
message.limitExpiry = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.limitExpiry);
|
|
595
|
+
break;
|
|
596
|
+
default:
|
|
597
|
+
let u = options.readUnknownField;
|
|
598
|
+
if (u === "throw")
|
|
599
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
600
|
+
let d = reader.skip(wireType);
|
|
601
|
+
if (u !== false)
|
|
602
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
return message;
|
|
606
|
+
}
|
|
607
|
+
internalBinaryWrite(message, writer, options) {
|
|
608
|
+
/* optional google.protobuf.Timestamp limit_expiry = 1; */
|
|
609
|
+
if (message.limitExpiry)
|
|
610
|
+
timestamp_1.Timestamp.internalBinaryWrite(message.limitExpiry, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
611
|
+
let u = options.writeUnknownFields;
|
|
612
|
+
if (u !== false)
|
|
613
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
614
|
+
return writer;
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
/**
|
|
618
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.UserData.RateLimitData
|
|
619
|
+
*/
|
|
620
|
+
exports.UserData_RateLimitData = new UserData_RateLimitData$Type();
|
|
621
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
622
|
+
class UserData_FeatureLimits$Type extends runtime_4.MessageType {
|
|
623
|
+
constructor() {
|
|
624
|
+
super("discord_protos.users.v1.UserData.FeatureLimits", [
|
|
625
|
+
{ no: 1, name: "map", kind: "map", K: 13 /*ScalarType.UINT32*/, V: { kind: "message", T: () => exports.UserData_RateLimitData } }
|
|
626
|
+
]);
|
|
627
|
+
}
|
|
628
|
+
create(value) {
|
|
629
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
630
|
+
message.map = {};
|
|
631
|
+
if (value !== undefined)
|
|
632
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
633
|
+
return message;
|
|
634
|
+
}
|
|
635
|
+
internalBinaryRead(reader, length, options, target) {
|
|
636
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
637
|
+
while (reader.pos < end) {
|
|
638
|
+
let [fieldNo, wireType] = reader.tag();
|
|
639
|
+
switch (fieldNo) {
|
|
640
|
+
case /* map<uint32, discord_protos.users.v1.UserData.RateLimitData> map */ 1:
|
|
641
|
+
this.binaryReadMap1(message.map, reader, options);
|
|
642
|
+
break;
|
|
643
|
+
default:
|
|
644
|
+
let u = options.readUnknownField;
|
|
645
|
+
if (u === "throw")
|
|
646
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
647
|
+
let d = reader.skip(wireType);
|
|
648
|
+
if (u !== false)
|
|
649
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
return message;
|
|
653
|
+
}
|
|
654
|
+
binaryReadMap1(map, reader, options) {
|
|
655
|
+
let len = reader.uint32(), end = reader.pos + len, key, val;
|
|
656
|
+
while (reader.pos < end) {
|
|
657
|
+
let [fieldNo, wireType] = reader.tag();
|
|
658
|
+
switch (fieldNo) {
|
|
659
|
+
case 1:
|
|
660
|
+
key = reader.uint32();
|
|
661
|
+
break;
|
|
662
|
+
case 2:
|
|
663
|
+
val = exports.UserData_RateLimitData.internalBinaryRead(reader, reader.uint32(), options);
|
|
664
|
+
break;
|
|
665
|
+
default: throw new globalThis.Error("unknown map entry field for discord_protos.users.v1.UserData.FeatureLimits.map");
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
map[key ?? 0] = val ?? exports.UserData_RateLimitData.create();
|
|
669
|
+
}
|
|
670
|
+
internalBinaryWrite(message, writer, options) {
|
|
671
|
+
/* map<uint32, discord_protos.users.v1.UserData.RateLimitData> map = 1; */
|
|
672
|
+
for (let k of globalThis.Object.keys(message.map)) {
|
|
673
|
+
writer.tag(1, runtime_1.WireType.LengthDelimited).fork().tag(1, runtime_1.WireType.Varint).uint32(parseInt(k));
|
|
674
|
+
writer.tag(2, runtime_1.WireType.LengthDelimited).fork();
|
|
675
|
+
exports.UserData_RateLimitData.internalBinaryWrite(message.map[k], writer, options);
|
|
676
|
+
writer.join().join();
|
|
677
|
+
}
|
|
678
|
+
let u = options.writeUnknownFields;
|
|
679
|
+
if (u !== false)
|
|
680
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
681
|
+
return writer;
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
/**
|
|
685
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.UserData.FeatureLimits
|
|
686
|
+
*/
|
|
687
|
+
exports.UserData_FeatureLimits = new UserData_FeatureLimits$Type();
|
|
688
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
689
|
+
class UserData_SafetyFlag$Type extends runtime_4.MessageType {
|
|
690
|
+
constructor() {
|
|
691
|
+
super("discord_protos.users.v1.UserData.SafetyFlag", [
|
|
692
|
+
{ no: 1, name: "flag_expiry", kind: "message", T: () => timestamp_1.Timestamp }
|
|
693
|
+
]);
|
|
694
|
+
}
|
|
695
|
+
create(value) {
|
|
696
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
697
|
+
if (value !== undefined)
|
|
698
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
699
|
+
return message;
|
|
700
|
+
}
|
|
701
|
+
internalBinaryRead(reader, length, options, target) {
|
|
702
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
703
|
+
while (reader.pos < end) {
|
|
704
|
+
let [fieldNo, wireType] = reader.tag();
|
|
705
|
+
switch (fieldNo) {
|
|
706
|
+
case /* optional google.protobuf.Timestamp flag_expiry */ 1:
|
|
707
|
+
message.flagExpiry = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.flagExpiry);
|
|
708
|
+
break;
|
|
709
|
+
default:
|
|
710
|
+
let u = options.readUnknownField;
|
|
711
|
+
if (u === "throw")
|
|
712
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
713
|
+
let d = reader.skip(wireType);
|
|
714
|
+
if (u !== false)
|
|
715
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
return message;
|
|
719
|
+
}
|
|
720
|
+
internalBinaryWrite(message, writer, options) {
|
|
721
|
+
/* optional google.protobuf.Timestamp flag_expiry = 1; */
|
|
722
|
+
if (message.flagExpiry)
|
|
723
|
+
timestamp_1.Timestamp.internalBinaryWrite(message.flagExpiry, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
724
|
+
let u = options.writeUnknownFields;
|
|
725
|
+
if (u !== false)
|
|
726
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
727
|
+
return writer;
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
/**
|
|
731
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.UserData.SafetyFlag
|
|
732
|
+
*/
|
|
733
|
+
exports.UserData_SafetyFlag = new UserData_SafetyFlag$Type();
|
|
734
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
735
|
+
class UserData_QuestMetadata$Type extends runtime_4.MessageType {
|
|
736
|
+
constructor() {
|
|
737
|
+
super("discord_protos.users.v1.UserData.QuestMetadata", [
|
|
738
|
+
{ no: 1, name: "quests_completed", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
739
|
+
]);
|
|
740
|
+
}
|
|
741
|
+
create(value) {
|
|
742
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
743
|
+
message.questsCompleted = 0;
|
|
744
|
+
if (value !== undefined)
|
|
745
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
746
|
+
return message;
|
|
747
|
+
}
|
|
748
|
+
internalBinaryRead(reader, length, options, target) {
|
|
749
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
750
|
+
while (reader.pos < end) {
|
|
751
|
+
let [fieldNo, wireType] = reader.tag();
|
|
752
|
+
switch (fieldNo) {
|
|
753
|
+
case /* uint32 quests_completed */ 1:
|
|
754
|
+
message.questsCompleted = reader.uint32();
|
|
755
|
+
break;
|
|
756
|
+
default:
|
|
757
|
+
let u = options.readUnknownField;
|
|
758
|
+
if (u === "throw")
|
|
759
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
760
|
+
let d = reader.skip(wireType);
|
|
761
|
+
if (u !== false)
|
|
762
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
return message;
|
|
766
|
+
}
|
|
767
|
+
internalBinaryWrite(message, writer, options) {
|
|
768
|
+
/* uint32 quests_completed = 1; */
|
|
769
|
+
if (message.questsCompleted !== 0)
|
|
770
|
+
writer.tag(1, runtime_1.WireType.Varint).uint32(message.questsCompleted);
|
|
771
|
+
let u = options.writeUnknownFields;
|
|
772
|
+
if (u !== false)
|
|
773
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
774
|
+
return writer;
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
/**
|
|
778
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.UserData.QuestMetadata
|
|
779
|
+
*/
|
|
780
|
+
exports.UserData_QuestMetadata = new UserData_QuestMetadata$Type();
|
|
781
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
782
|
+
class UserData_UserPrimaryGuild$Type extends runtime_4.MessageType {
|
|
783
|
+
constructor() {
|
|
784
|
+
super("discord_protos.users.v1.UserData.UserPrimaryGuild", [
|
|
785
|
+
{ no: 1, name: "identity_guild_id", kind: "message", T: () => wrappers_3.UInt64Value },
|
|
786
|
+
{ no: 2, name: "identity_enabled", kind: "message", T: () => wrappers_2.BoolValue },
|
|
787
|
+
{ no: 3, name: "tag", kind: "message", T: () => wrappers_1.StringValue },
|
|
788
|
+
{ no: 4, name: "badge", kind: "message", T: () => wrappers_1.StringValue }
|
|
789
|
+
]);
|
|
790
|
+
}
|
|
791
|
+
create(value) {
|
|
792
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
793
|
+
if (value !== undefined)
|
|
794
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
795
|
+
return message;
|
|
796
|
+
}
|
|
797
|
+
internalBinaryRead(reader, length, options, target) {
|
|
798
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
799
|
+
while (reader.pos < end) {
|
|
800
|
+
let [fieldNo, wireType] = reader.tag();
|
|
801
|
+
switch (fieldNo) {
|
|
802
|
+
case /* optional google.protobuf.UInt64Value identity_guild_id */ 1:
|
|
803
|
+
message.identityGuildId = wrappers_3.UInt64Value.internalBinaryRead(reader, reader.uint32(), options, message.identityGuildId);
|
|
804
|
+
break;
|
|
805
|
+
case /* optional google.protobuf.BoolValue identity_enabled */ 2:
|
|
806
|
+
message.identityEnabled = wrappers_2.BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.identityEnabled);
|
|
807
|
+
break;
|
|
808
|
+
case /* optional google.protobuf.StringValue tag */ 3:
|
|
809
|
+
message.tag = wrappers_1.StringValue.internalBinaryRead(reader, reader.uint32(), options, message.tag);
|
|
810
|
+
break;
|
|
811
|
+
case /* optional google.protobuf.StringValue badge */ 4:
|
|
812
|
+
message.badge = wrappers_1.StringValue.internalBinaryRead(reader, reader.uint32(), options, message.badge);
|
|
813
|
+
break;
|
|
814
|
+
default:
|
|
815
|
+
let u = options.readUnknownField;
|
|
816
|
+
if (u === "throw")
|
|
817
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
818
|
+
let d = reader.skip(wireType);
|
|
819
|
+
if (u !== false)
|
|
820
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
return message;
|
|
824
|
+
}
|
|
825
|
+
internalBinaryWrite(message, writer, options) {
|
|
826
|
+
/* optional google.protobuf.UInt64Value identity_guild_id = 1; */
|
|
827
|
+
if (message.identityGuildId)
|
|
828
|
+
wrappers_3.UInt64Value.internalBinaryWrite(message.identityGuildId, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
829
|
+
/* optional google.protobuf.BoolValue identity_enabled = 2; */
|
|
830
|
+
if (message.identityEnabled)
|
|
831
|
+
wrappers_2.BoolValue.internalBinaryWrite(message.identityEnabled, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
832
|
+
/* optional google.protobuf.StringValue tag = 3; */
|
|
833
|
+
if (message.tag)
|
|
834
|
+
wrappers_1.StringValue.internalBinaryWrite(message.tag, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
835
|
+
/* optional google.protobuf.StringValue badge = 4; */
|
|
836
|
+
if (message.badge)
|
|
837
|
+
wrappers_1.StringValue.internalBinaryWrite(message.badge, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
838
|
+
let u = options.writeUnknownFields;
|
|
839
|
+
if (u !== false)
|
|
840
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
841
|
+
return writer;
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
/**
|
|
845
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.UserData.UserPrimaryGuild
|
|
846
|
+
*/
|
|
847
|
+
exports.UserData_UserPrimaryGuild = new UserData_UserPrimaryGuild$Type();
|
|
848
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
849
|
+
class UserData_CrossPlatformRestriction$Type extends runtime_4.MessageType {
|
|
850
|
+
constructor() {
|
|
851
|
+
super("discord_protos.users.v1.UserData.CrossPlatformRestriction", [
|
|
852
|
+
{ no: 1, name: "restriction_expiry", kind: "message", T: () => timestamp_1.Timestamp },
|
|
853
|
+
{ no: 2, name: "application_id", kind: "scalar", T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/ }
|
|
854
|
+
]);
|
|
855
|
+
}
|
|
856
|
+
create(value) {
|
|
857
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
858
|
+
message.applicationId = 0n;
|
|
859
|
+
if (value !== undefined)
|
|
860
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
861
|
+
return message;
|
|
862
|
+
}
|
|
863
|
+
internalBinaryRead(reader, length, options, target) {
|
|
864
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
865
|
+
while (reader.pos < end) {
|
|
866
|
+
let [fieldNo, wireType] = reader.tag();
|
|
867
|
+
switch (fieldNo) {
|
|
868
|
+
case /* optional google.protobuf.Timestamp restriction_expiry */ 1:
|
|
869
|
+
message.restrictionExpiry = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.restrictionExpiry);
|
|
870
|
+
break;
|
|
871
|
+
case /* fixed64 application_id */ 2:
|
|
872
|
+
message.applicationId = reader.fixed64().toBigInt();
|
|
873
|
+
break;
|
|
874
|
+
default:
|
|
875
|
+
let u = options.readUnknownField;
|
|
876
|
+
if (u === "throw")
|
|
877
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
878
|
+
let d = reader.skip(wireType);
|
|
879
|
+
if (u !== false)
|
|
880
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
return message;
|
|
884
|
+
}
|
|
885
|
+
internalBinaryWrite(message, writer, options) {
|
|
886
|
+
/* optional google.protobuf.Timestamp restriction_expiry = 1; */
|
|
887
|
+
if (message.restrictionExpiry)
|
|
888
|
+
timestamp_1.Timestamp.internalBinaryWrite(message.restrictionExpiry, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
889
|
+
/* fixed64 application_id = 2; */
|
|
890
|
+
if (message.applicationId !== 0n)
|
|
891
|
+
writer.tag(2, runtime_1.WireType.Bit64).fixed64(message.applicationId);
|
|
892
|
+
let u = options.writeUnknownFields;
|
|
893
|
+
if (u !== false)
|
|
894
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
895
|
+
return writer;
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
/**
|
|
899
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.UserData.CrossPlatformRestriction
|
|
900
|
+
*/
|
|
901
|
+
exports.UserData_CrossPlatformRestriction = new UserData_CrossPlatformRestriction$Type();
|
|
902
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
903
|
+
class UserData_UserNameplate$Type extends runtime_4.MessageType {
|
|
904
|
+
constructor() {
|
|
905
|
+
super("discord_protos.users.v1.UserData.UserNameplate", [
|
|
906
|
+
{ no: 1, name: "asset", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
907
|
+
{ no: 2, name: "palette", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
908
|
+
{ no: 3, name: "sku_id", kind: "message", T: () => wrappers_3.UInt64Value },
|
|
909
|
+
{ no: 4, name: "expires_at", kind: "message", T: () => timestamp_1.Timestamp },
|
|
910
|
+
{ no: 5, name: "label", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
911
|
+
]);
|
|
912
|
+
}
|
|
913
|
+
create(value) {
|
|
914
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
915
|
+
message.asset = "";
|
|
916
|
+
message.palette = "";
|
|
917
|
+
message.label = "";
|
|
918
|
+
if (value !== undefined)
|
|
919
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
920
|
+
return message;
|
|
921
|
+
}
|
|
922
|
+
internalBinaryRead(reader, length, options, target) {
|
|
923
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
924
|
+
while (reader.pos < end) {
|
|
925
|
+
let [fieldNo, wireType] = reader.tag();
|
|
926
|
+
switch (fieldNo) {
|
|
927
|
+
case /* string asset */ 1:
|
|
928
|
+
message.asset = reader.string();
|
|
929
|
+
break;
|
|
930
|
+
case /* string palette */ 2:
|
|
931
|
+
message.palette = reader.string();
|
|
932
|
+
break;
|
|
933
|
+
case /* optional google.protobuf.UInt64Value sku_id */ 3:
|
|
934
|
+
message.skuId = wrappers_3.UInt64Value.internalBinaryRead(reader, reader.uint32(), options, message.skuId);
|
|
935
|
+
break;
|
|
936
|
+
case /* optional google.protobuf.Timestamp expires_at */ 4:
|
|
937
|
+
message.expiresAt = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);
|
|
938
|
+
break;
|
|
939
|
+
case /* string label */ 5:
|
|
940
|
+
message.label = reader.string();
|
|
941
|
+
break;
|
|
942
|
+
default:
|
|
943
|
+
let u = options.readUnknownField;
|
|
944
|
+
if (u === "throw")
|
|
945
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
946
|
+
let d = reader.skip(wireType);
|
|
947
|
+
if (u !== false)
|
|
948
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
return message;
|
|
952
|
+
}
|
|
953
|
+
internalBinaryWrite(message, writer, options) {
|
|
954
|
+
/* string asset = 1; */
|
|
955
|
+
if (message.asset !== "")
|
|
956
|
+
writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.asset);
|
|
957
|
+
/* string palette = 2; */
|
|
958
|
+
if (message.palette !== "")
|
|
959
|
+
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.palette);
|
|
960
|
+
/* optional google.protobuf.UInt64Value sku_id = 3; */
|
|
961
|
+
if (message.skuId)
|
|
962
|
+
wrappers_3.UInt64Value.internalBinaryWrite(message.skuId, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
963
|
+
/* optional google.protobuf.Timestamp expires_at = 4; */
|
|
964
|
+
if (message.expiresAt)
|
|
965
|
+
timestamp_1.Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
966
|
+
/* string label = 5; */
|
|
967
|
+
if (message.label !== "")
|
|
968
|
+
writer.tag(5, runtime_1.WireType.LengthDelimited).string(message.label);
|
|
969
|
+
let u = options.writeUnknownFields;
|
|
970
|
+
if (u !== false)
|
|
971
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
972
|
+
return writer;
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
/**
|
|
976
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.UserData.UserNameplate
|
|
977
|
+
*/
|
|
978
|
+
exports.UserData_UserNameplate = new UserData_UserNameplate$Type();
|
|
979
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
980
|
+
class UserData_UserCollectibles$Type extends runtime_4.MessageType {
|
|
981
|
+
constructor() {
|
|
982
|
+
super("discord_protos.users.v1.UserData.UserCollectibles", [
|
|
983
|
+
{ no: 1, name: "nameplate", kind: "message", T: () => exports.UserData_UserNameplate }
|
|
984
|
+
]);
|
|
985
|
+
}
|
|
986
|
+
create(value) {
|
|
987
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
988
|
+
if (value !== undefined)
|
|
989
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
990
|
+
return message;
|
|
991
|
+
}
|
|
992
|
+
internalBinaryRead(reader, length, options, target) {
|
|
993
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
994
|
+
while (reader.pos < end) {
|
|
995
|
+
let [fieldNo, wireType] = reader.tag();
|
|
996
|
+
switch (fieldNo) {
|
|
997
|
+
case /* optional discord_protos.users.v1.UserData.UserNameplate nameplate */ 1:
|
|
998
|
+
message.nameplate = exports.UserData_UserNameplate.internalBinaryRead(reader, reader.uint32(), options, message.nameplate);
|
|
999
|
+
break;
|
|
1000
|
+
default:
|
|
1001
|
+
let u = options.readUnknownField;
|
|
1002
|
+
if (u === "throw")
|
|
1003
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1004
|
+
let d = reader.skip(wireType);
|
|
1005
|
+
if (u !== false)
|
|
1006
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
return message;
|
|
1010
|
+
}
|
|
1011
|
+
internalBinaryWrite(message, writer, options) {
|
|
1012
|
+
/* optional discord_protos.users.v1.UserData.UserNameplate nameplate = 1; */
|
|
1013
|
+
if (message.nameplate)
|
|
1014
|
+
exports.UserData_UserNameplate.internalBinaryWrite(message.nameplate, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
1015
|
+
let u = options.writeUnknownFields;
|
|
1016
|
+
if (u !== false)
|
|
1017
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1018
|
+
return writer;
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
/**
|
|
1022
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.UserData.UserCollectibles
|
|
1023
|
+
*/
|
|
1024
|
+
exports.UserData_UserCollectibles = new UserData_UserCollectibles$Type();
|
|
1025
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1026
|
+
class UserData_NormalState$Type extends runtime_4.MessageType {
|
|
1027
|
+
constructor() {
|
|
1028
|
+
super("discord_protos.users.v1.UserData.NormalState", []);
|
|
1029
|
+
}
|
|
1030
|
+
create(value) {
|
|
1031
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
1032
|
+
if (value !== undefined)
|
|
1033
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
1034
|
+
return message;
|
|
1035
|
+
}
|
|
1036
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1037
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1038
|
+
while (reader.pos < end) {
|
|
1039
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1040
|
+
switch (fieldNo) {
|
|
1041
|
+
default:
|
|
1042
|
+
let u = options.readUnknownField;
|
|
1043
|
+
if (u === "throw")
|
|
1044
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1045
|
+
let d = reader.skip(wireType);
|
|
1046
|
+
if (u !== false)
|
|
1047
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
return message;
|
|
1051
|
+
}
|
|
1052
|
+
internalBinaryWrite(message, writer, options) {
|
|
1053
|
+
let u = options.writeUnknownFields;
|
|
1054
|
+
if (u !== false)
|
|
1055
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1056
|
+
return writer;
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
/**
|
|
1060
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.UserData.NormalState
|
|
1061
|
+
*/
|
|
1062
|
+
exports.UserData_NormalState = new UserData_NormalState$Type();
|
|
1063
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1064
|
+
class UserData_RestrictedState$Type extends runtime_4.MessageType {
|
|
1065
|
+
constructor() {
|
|
1066
|
+
super("discord_protos.users.v1.UserData.RestrictedState", [
|
|
1067
|
+
{ no: 1, name: "restricted_until", kind: "message", T: () => timestamp_1.Timestamp }
|
|
1068
|
+
]);
|
|
1069
|
+
}
|
|
1070
|
+
create(value) {
|
|
1071
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
1072
|
+
if (value !== undefined)
|
|
1073
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
1074
|
+
return message;
|
|
1075
|
+
}
|
|
1076
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1077
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1078
|
+
while (reader.pos < end) {
|
|
1079
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1080
|
+
switch (fieldNo) {
|
|
1081
|
+
case /* optional google.protobuf.Timestamp restricted_until */ 1:
|
|
1082
|
+
message.restrictedUntil = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.restrictedUntil);
|
|
1083
|
+
break;
|
|
1084
|
+
default:
|
|
1085
|
+
let u = options.readUnknownField;
|
|
1086
|
+
if (u === "throw")
|
|
1087
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1088
|
+
let d = reader.skip(wireType);
|
|
1089
|
+
if (u !== false)
|
|
1090
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
return message;
|
|
1094
|
+
}
|
|
1095
|
+
internalBinaryWrite(message, writer, options) {
|
|
1096
|
+
/* optional google.protobuf.Timestamp restricted_until = 1; */
|
|
1097
|
+
if (message.restrictedUntil)
|
|
1098
|
+
timestamp_1.Timestamp.internalBinaryWrite(message.restrictedUntil, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
1099
|
+
let u = options.writeUnknownFields;
|
|
1100
|
+
if (u !== false)
|
|
1101
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1102
|
+
return writer;
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
/**
|
|
1106
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.UserData.RestrictedState
|
|
1107
|
+
*/
|
|
1108
|
+
exports.UserData_RestrictedState = new UserData_RestrictedState$Type();
|
|
1109
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1110
|
+
class UserData_DeferredActionState$Type extends runtime_4.MessageType {
|
|
1111
|
+
constructor() {
|
|
1112
|
+
super("discord_protos.users.v1.UserData.DeferredActionState", [
|
|
1113
|
+
{ no: 1, name: "action_deferred_until", kind: "message", T: () => timestamp_1.Timestamp }
|
|
1114
|
+
]);
|
|
1115
|
+
}
|
|
1116
|
+
create(value) {
|
|
1117
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
1118
|
+
if (value !== undefined)
|
|
1119
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
1120
|
+
return message;
|
|
1121
|
+
}
|
|
1122
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1123
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1124
|
+
while (reader.pos < end) {
|
|
1125
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1126
|
+
switch (fieldNo) {
|
|
1127
|
+
case /* optional google.protobuf.Timestamp action_deferred_until */ 1:
|
|
1128
|
+
message.actionDeferredUntil = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.actionDeferredUntil);
|
|
1129
|
+
break;
|
|
1130
|
+
default:
|
|
1131
|
+
let u = options.readUnknownField;
|
|
1132
|
+
if (u === "throw")
|
|
1133
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1134
|
+
let d = reader.skip(wireType);
|
|
1135
|
+
if (u !== false)
|
|
1136
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
return message;
|
|
1140
|
+
}
|
|
1141
|
+
internalBinaryWrite(message, writer, options) {
|
|
1142
|
+
/* optional google.protobuf.Timestamp action_deferred_until = 1; */
|
|
1143
|
+
if (message.actionDeferredUntil)
|
|
1144
|
+
timestamp_1.Timestamp.internalBinaryWrite(message.actionDeferredUntil, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
1145
|
+
let u = options.writeUnknownFields;
|
|
1146
|
+
if (u !== false)
|
|
1147
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1148
|
+
return writer;
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
/**
|
|
1152
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.UserData.DeferredActionState
|
|
1153
|
+
*/
|
|
1154
|
+
exports.UserData_DeferredActionState = new UserData_DeferredActionState$Type();
|
|
1155
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1156
|
+
class UserData_TempBannedState$Type extends runtime_4.MessageType {
|
|
1157
|
+
constructor() {
|
|
1158
|
+
super("discord_protos.users.v1.UserData.TempBannedState", [
|
|
1159
|
+
{ no: 1, name: "banned_until", kind: "message", T: () => timestamp_1.Timestamp }
|
|
1160
|
+
]);
|
|
1161
|
+
}
|
|
1162
|
+
create(value) {
|
|
1163
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
1164
|
+
if (value !== undefined)
|
|
1165
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
1166
|
+
return message;
|
|
1167
|
+
}
|
|
1168
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1169
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1170
|
+
while (reader.pos < end) {
|
|
1171
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1172
|
+
switch (fieldNo) {
|
|
1173
|
+
case /* optional google.protobuf.Timestamp banned_until */ 1:
|
|
1174
|
+
message.bannedUntil = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.bannedUntil);
|
|
1175
|
+
break;
|
|
1176
|
+
default:
|
|
1177
|
+
let u = options.readUnknownField;
|
|
1178
|
+
if (u === "throw")
|
|
1179
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1180
|
+
let d = reader.skip(wireType);
|
|
1181
|
+
if (u !== false)
|
|
1182
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1183
|
+
}
|
|
1184
|
+
}
|
|
1185
|
+
return message;
|
|
1186
|
+
}
|
|
1187
|
+
internalBinaryWrite(message, writer, options) {
|
|
1188
|
+
/* optional google.protobuf.Timestamp banned_until = 1; */
|
|
1189
|
+
if (message.bannedUntil)
|
|
1190
|
+
timestamp_1.Timestamp.internalBinaryWrite(message.bannedUntil, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
1191
|
+
let u = options.writeUnknownFields;
|
|
1192
|
+
if (u !== false)
|
|
1193
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1194
|
+
return writer;
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
/**
|
|
1198
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.UserData.TempBannedState
|
|
1199
|
+
*/
|
|
1200
|
+
exports.UserData_TempBannedState = new UserData_TempBannedState$Type();
|
|
1201
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1202
|
+
class UserData_BannedState$Type extends runtime_4.MessageType {
|
|
1203
|
+
constructor() {
|
|
1204
|
+
super("discord_protos.users.v1.UserData.BannedState", []);
|
|
1205
|
+
}
|
|
1206
|
+
create(value) {
|
|
1207
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
1208
|
+
if (value !== undefined)
|
|
1209
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
1210
|
+
return message;
|
|
1211
|
+
}
|
|
1212
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1213
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1214
|
+
while (reader.pos < end) {
|
|
1215
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1216
|
+
switch (fieldNo) {
|
|
1217
|
+
default:
|
|
1218
|
+
let u = options.readUnknownField;
|
|
1219
|
+
if (u === "throw")
|
|
1220
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1221
|
+
let d = reader.skip(wireType);
|
|
1222
|
+
if (u !== false)
|
|
1223
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
return message;
|
|
1227
|
+
}
|
|
1228
|
+
internalBinaryWrite(message, writer, options) {
|
|
1229
|
+
let u = options.writeUnknownFields;
|
|
1230
|
+
if (u !== false)
|
|
1231
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1232
|
+
return writer;
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
/**
|
|
1236
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.UserData.BannedState
|
|
1237
|
+
*/
|
|
1238
|
+
exports.UserData_BannedState = new UserData_BannedState$Type();
|
|
1239
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1240
|
+
class UserData_SafetyState$Type extends runtime_4.MessageType {
|
|
1241
|
+
constructor() {
|
|
1242
|
+
super("discord_protos.users.v1.UserData.SafetyState", [
|
|
1243
|
+
{ no: 101, name: "normal", kind: "message", oneof: "state", T: () => exports.UserData_NormalState },
|
|
1244
|
+
{ no: 102, name: "restricted", kind: "message", oneof: "state", T: () => exports.UserData_RestrictedState },
|
|
1245
|
+
{ no: 103, name: "deferred_action", kind: "message", oneof: "state", T: () => exports.UserData_DeferredActionState },
|
|
1246
|
+
{ no: 104, name: "temp_banned", kind: "message", oneof: "state", T: () => exports.UserData_TempBannedState },
|
|
1247
|
+
{ no: 105, name: "banned", kind: "message", oneof: "state", T: () => exports.UserData_BannedState },
|
|
1248
|
+
{ no: 1, name: "reason", kind: "enum", T: () => ["discord_protos.users.v1.UserData.SafetyStateReason", UserData_SafetyStateReason, "SAFETY_STATE_REASON_"] },
|
|
1249
|
+
{ no: 2, name: "annotations", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["discord_protos.users.v1.UserData.SafetyAnnotations", UserData_SafetyAnnotations, "SAFETY_ANNOTATIONS_"] },
|
|
1250
|
+
{ no: 3, name: "last_mutation_id", kind: "message", T: () => wrappers_3.UInt64Value }
|
|
1251
|
+
]);
|
|
1252
|
+
}
|
|
1253
|
+
create(value) {
|
|
1254
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
1255
|
+
message.state = { oneofKind: undefined };
|
|
1256
|
+
message.reason = 0;
|
|
1257
|
+
message.annotations = [];
|
|
1258
|
+
if (value !== undefined)
|
|
1259
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
1260
|
+
return message;
|
|
1261
|
+
}
|
|
1262
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1263
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1264
|
+
while (reader.pos < end) {
|
|
1265
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1266
|
+
switch (fieldNo) {
|
|
1267
|
+
case /* discord_protos.users.v1.UserData.NormalState normal */ 101:
|
|
1268
|
+
message.state = {
|
|
1269
|
+
oneofKind: "normal",
|
|
1270
|
+
normal: exports.UserData_NormalState.internalBinaryRead(reader, reader.uint32(), options, message.state.normal)
|
|
1271
|
+
};
|
|
1272
|
+
break;
|
|
1273
|
+
case /* discord_protos.users.v1.UserData.RestrictedState restricted */ 102:
|
|
1274
|
+
message.state = {
|
|
1275
|
+
oneofKind: "restricted",
|
|
1276
|
+
restricted: exports.UserData_RestrictedState.internalBinaryRead(reader, reader.uint32(), options, message.state.restricted)
|
|
1277
|
+
};
|
|
1278
|
+
break;
|
|
1279
|
+
case /* discord_protos.users.v1.UserData.DeferredActionState deferred_action */ 103:
|
|
1280
|
+
message.state = {
|
|
1281
|
+
oneofKind: "deferredAction",
|
|
1282
|
+
deferredAction: exports.UserData_DeferredActionState.internalBinaryRead(reader, reader.uint32(), options, message.state.deferredAction)
|
|
1283
|
+
};
|
|
1284
|
+
break;
|
|
1285
|
+
case /* discord_protos.users.v1.UserData.TempBannedState temp_banned */ 104:
|
|
1286
|
+
message.state = {
|
|
1287
|
+
oneofKind: "tempBanned",
|
|
1288
|
+
tempBanned: exports.UserData_TempBannedState.internalBinaryRead(reader, reader.uint32(), options, message.state.tempBanned)
|
|
1289
|
+
};
|
|
1290
|
+
break;
|
|
1291
|
+
case /* discord_protos.users.v1.UserData.BannedState banned */ 105:
|
|
1292
|
+
message.state = {
|
|
1293
|
+
oneofKind: "banned",
|
|
1294
|
+
banned: exports.UserData_BannedState.internalBinaryRead(reader, reader.uint32(), options, message.state.banned)
|
|
1295
|
+
};
|
|
1296
|
+
break;
|
|
1297
|
+
case /* discord_protos.users.v1.UserData.SafetyStateReason reason */ 1:
|
|
1298
|
+
message.reason = reader.int32();
|
|
1299
|
+
break;
|
|
1300
|
+
case /* repeated discord_protos.users.v1.UserData.SafetyAnnotations annotations */ 2:
|
|
1301
|
+
if (wireType === runtime_1.WireType.LengthDelimited)
|
|
1302
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
1303
|
+
message.annotations.push(reader.int32());
|
|
1304
|
+
else
|
|
1305
|
+
message.annotations.push(reader.int32());
|
|
1306
|
+
break;
|
|
1307
|
+
case /* optional google.protobuf.UInt64Value last_mutation_id */ 3:
|
|
1308
|
+
message.lastMutationId = wrappers_3.UInt64Value.internalBinaryRead(reader, reader.uint32(), options, message.lastMutationId);
|
|
1309
|
+
break;
|
|
1310
|
+
default:
|
|
1311
|
+
let u = options.readUnknownField;
|
|
1312
|
+
if (u === "throw")
|
|
1313
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1314
|
+
let d = reader.skip(wireType);
|
|
1315
|
+
if (u !== false)
|
|
1316
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1317
|
+
}
|
|
1318
|
+
}
|
|
1319
|
+
return message;
|
|
1320
|
+
}
|
|
1321
|
+
internalBinaryWrite(message, writer, options) {
|
|
1322
|
+
/* discord_protos.users.v1.UserData.SafetyStateReason reason = 1; */
|
|
1323
|
+
if (message.reason !== 0)
|
|
1324
|
+
writer.tag(1, runtime_1.WireType.Varint).int32(message.reason);
|
|
1325
|
+
/* repeated discord_protos.users.v1.UserData.SafetyAnnotations annotations = 2; */
|
|
1326
|
+
if (message.annotations.length) {
|
|
1327
|
+
writer.tag(2, runtime_1.WireType.LengthDelimited).fork();
|
|
1328
|
+
for (let i = 0; i < message.annotations.length; i++)
|
|
1329
|
+
writer.int32(message.annotations[i]);
|
|
1330
|
+
writer.join();
|
|
1331
|
+
}
|
|
1332
|
+
/* optional google.protobuf.UInt64Value last_mutation_id = 3; */
|
|
1333
|
+
if (message.lastMutationId)
|
|
1334
|
+
wrappers_3.UInt64Value.internalBinaryWrite(message.lastMutationId, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
1335
|
+
/* discord_protos.users.v1.UserData.NormalState normal = 101; */
|
|
1336
|
+
if (message.state.oneofKind === "normal")
|
|
1337
|
+
exports.UserData_NormalState.internalBinaryWrite(message.state.normal, writer.tag(101, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
1338
|
+
/* discord_protos.users.v1.UserData.RestrictedState restricted = 102; */
|
|
1339
|
+
if (message.state.oneofKind === "restricted")
|
|
1340
|
+
exports.UserData_RestrictedState.internalBinaryWrite(message.state.restricted, writer.tag(102, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
1341
|
+
/* discord_protos.users.v1.UserData.DeferredActionState deferred_action = 103; */
|
|
1342
|
+
if (message.state.oneofKind === "deferredAction")
|
|
1343
|
+
exports.UserData_DeferredActionState.internalBinaryWrite(message.state.deferredAction, writer.tag(103, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
1344
|
+
/* discord_protos.users.v1.UserData.TempBannedState temp_banned = 104; */
|
|
1345
|
+
if (message.state.oneofKind === "tempBanned")
|
|
1346
|
+
exports.UserData_TempBannedState.internalBinaryWrite(message.state.tempBanned, writer.tag(104, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
1347
|
+
/* discord_protos.users.v1.UserData.BannedState banned = 105; */
|
|
1348
|
+
if (message.state.oneofKind === "banned")
|
|
1349
|
+
exports.UserData_BannedState.internalBinaryWrite(message.state.banned, writer.tag(105, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
1350
|
+
let u = options.writeUnknownFields;
|
|
1351
|
+
if (u !== false)
|
|
1352
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1353
|
+
return writer;
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
/**
|
|
1357
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.UserData.SafetyState
|
|
1358
|
+
*/
|
|
1359
|
+
exports.UserData_SafetyState = new UserData_SafetyState$Type();
|
|
1360
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1361
|
+
class UserData_PremiumState$Type extends runtime_4.MessageType {
|
|
1362
|
+
constructor() {
|
|
1363
|
+
super("discord_protos.users.v1.UserData.PremiumState", [
|
|
1364
|
+
{ no: 1, name: "premium_source", kind: "enum", T: () => ["discord_protos.users.v1.UserData.PremiumSource", UserData_PremiumSource, "PREMIUM_SOURCE_"] },
|
|
1365
|
+
{ no: 2, name: "premium_subscription_type", kind: "enum", T: () => ["discord_protos.users.v1.UserData.PremiumSubscriptionType", UserData_PremiumSubscriptionType, "PREMIUM_SUBSCRIPTION_TYPE_"] },
|
|
1366
|
+
{ no: 3, name: "premium_subscription_group_role", kind: "enum", T: () => ["discord_protos.users.v1.UserData.PremiumSubscriptionGroupRole", UserData_PremiumSubscriptionGroupRole, "PREMIUM_SUBSCRIPTION_GROUP_ROLE_"] }
|
|
1367
|
+
]);
|
|
1368
|
+
}
|
|
1369
|
+
create(value) {
|
|
1370
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
1371
|
+
message.premiumSource = 0;
|
|
1372
|
+
message.premiumSubscriptionType = 0;
|
|
1373
|
+
message.premiumSubscriptionGroupRole = 0;
|
|
1374
|
+
if (value !== undefined)
|
|
1375
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
1376
|
+
return message;
|
|
1377
|
+
}
|
|
1378
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1379
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1380
|
+
while (reader.pos < end) {
|
|
1381
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1382
|
+
switch (fieldNo) {
|
|
1383
|
+
case /* discord_protos.users.v1.UserData.PremiumSource premium_source */ 1:
|
|
1384
|
+
message.premiumSource = reader.int32();
|
|
1385
|
+
break;
|
|
1386
|
+
case /* discord_protos.users.v1.UserData.PremiumSubscriptionType premium_subscription_type */ 2:
|
|
1387
|
+
message.premiumSubscriptionType = reader.int32();
|
|
1388
|
+
break;
|
|
1389
|
+
case /* discord_protos.users.v1.UserData.PremiumSubscriptionGroupRole premium_subscription_group_role */ 3:
|
|
1390
|
+
message.premiumSubscriptionGroupRole = reader.int32();
|
|
1391
|
+
break;
|
|
1392
|
+
default:
|
|
1393
|
+
let u = options.readUnknownField;
|
|
1394
|
+
if (u === "throw")
|
|
1395
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1396
|
+
let d = reader.skip(wireType);
|
|
1397
|
+
if (u !== false)
|
|
1398
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
return message;
|
|
1402
|
+
}
|
|
1403
|
+
internalBinaryWrite(message, writer, options) {
|
|
1404
|
+
/* discord_protos.users.v1.UserData.PremiumSource premium_source = 1; */
|
|
1405
|
+
if (message.premiumSource !== 0)
|
|
1406
|
+
writer.tag(1, runtime_1.WireType.Varint).int32(message.premiumSource);
|
|
1407
|
+
/* discord_protos.users.v1.UserData.PremiumSubscriptionType premium_subscription_type = 2; */
|
|
1408
|
+
if (message.premiumSubscriptionType !== 0)
|
|
1409
|
+
writer.tag(2, runtime_1.WireType.Varint).int32(message.premiumSubscriptionType);
|
|
1410
|
+
/* discord_protos.users.v1.UserData.PremiumSubscriptionGroupRole premium_subscription_group_role = 3; */
|
|
1411
|
+
if (message.premiumSubscriptionGroupRole !== 0)
|
|
1412
|
+
writer.tag(3, runtime_1.WireType.Varint).int32(message.premiumSubscriptionGroupRole);
|
|
1413
|
+
let u = options.writeUnknownFields;
|
|
1414
|
+
if (u !== false)
|
|
1415
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1416
|
+
return writer;
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
/**
|
|
1420
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.UserData.PremiumState
|
|
1421
|
+
*/
|
|
1422
|
+
exports.UserData_PremiumState = new UserData_PremiumState$Type();
|
|
1423
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1424
|
+
class UserData_DisplayNameStyles$Type extends runtime_4.MessageType {
|
|
1425
|
+
constructor() {
|
|
1426
|
+
super("discord_protos.users.v1.UserData.DisplayNameStyles", [
|
|
1427
|
+
{ no: 1, name: "font_id", kind: "enum", T: () => ["discord_protos.users.v1.UserData.DisplayNameFont", UserData_DisplayNameFont, "DISPLAY_NAME_FONT_"] },
|
|
1428
|
+
{ no: 2, name: "effect_id", kind: "enum", T: () => ["discord_protos.users.v1.UserData.DisplayNameEffect", UserData_DisplayNameEffect, "DISPLAY_NAME_EFFECT_"] },
|
|
1429
|
+
{ no: 3, name: "colors", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 13 /*ScalarType.UINT32*/ }
|
|
1430
|
+
]);
|
|
1431
|
+
}
|
|
1432
|
+
create(value) {
|
|
1433
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
1434
|
+
message.fontId = 0;
|
|
1435
|
+
message.effectId = 0;
|
|
1436
|
+
message.colors = [];
|
|
1437
|
+
if (value !== undefined)
|
|
1438
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
1439
|
+
return message;
|
|
1440
|
+
}
|
|
1441
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1442
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1443
|
+
while (reader.pos < end) {
|
|
1444
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1445
|
+
switch (fieldNo) {
|
|
1446
|
+
case /* discord_protos.users.v1.UserData.DisplayNameFont font_id */ 1:
|
|
1447
|
+
message.fontId = reader.int32();
|
|
1448
|
+
break;
|
|
1449
|
+
case /* discord_protos.users.v1.UserData.DisplayNameEffect effect_id */ 2:
|
|
1450
|
+
message.effectId = reader.int32();
|
|
1451
|
+
break;
|
|
1452
|
+
case /* repeated uint32 colors */ 3:
|
|
1453
|
+
if (wireType === runtime_1.WireType.LengthDelimited)
|
|
1454
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
1455
|
+
message.colors.push(reader.uint32());
|
|
1456
|
+
else
|
|
1457
|
+
message.colors.push(reader.uint32());
|
|
1458
|
+
break;
|
|
1459
|
+
default:
|
|
1460
|
+
let u = options.readUnknownField;
|
|
1461
|
+
if (u === "throw")
|
|
1462
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1463
|
+
let d = reader.skip(wireType);
|
|
1464
|
+
if (u !== false)
|
|
1465
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
return message;
|
|
1469
|
+
}
|
|
1470
|
+
internalBinaryWrite(message, writer, options) {
|
|
1471
|
+
/* discord_protos.users.v1.UserData.DisplayNameFont font_id = 1; */
|
|
1472
|
+
if (message.fontId !== 0)
|
|
1473
|
+
writer.tag(1, runtime_1.WireType.Varint).int32(message.fontId);
|
|
1474
|
+
/* discord_protos.users.v1.UserData.DisplayNameEffect effect_id = 2; */
|
|
1475
|
+
if (message.effectId !== 0)
|
|
1476
|
+
writer.tag(2, runtime_1.WireType.Varint).int32(message.effectId);
|
|
1477
|
+
/* repeated uint32 colors = 3; */
|
|
1478
|
+
if (message.colors.length) {
|
|
1479
|
+
writer.tag(3, runtime_1.WireType.LengthDelimited).fork();
|
|
1480
|
+
for (let i = 0; i < message.colors.length; i++)
|
|
1481
|
+
writer.uint32(message.colors[i]);
|
|
1482
|
+
writer.join();
|
|
1483
|
+
}
|
|
1484
|
+
let u = options.writeUnknownFields;
|
|
1485
|
+
if (u !== false)
|
|
1486
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1487
|
+
return writer;
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
/**
|
|
1491
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.UserData.DisplayNameStyles
|
|
1492
|
+
*/
|
|
1493
|
+
exports.UserData_DisplayNameStyles = new UserData_DisplayNameStyles$Type();
|