@devvit/protos 0.11.6-next-2025-01-13-65b027847.0 → 0.11.6-next-2025-01-13-6cc27b78a.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,702 +0,0 @@
1
- /**
2
- * #subreddit_manifest.ts
3
- *
4
- * @packageDocumentation
5
- */
6
- /* eslint-disable */
7
- import _m0 from "protobufjs/minimal.js";
8
- import { messageTypeRegistry } from "../../typeRegistry.js";
9
- export var DevvitContextType;
10
- (function (DevvitContextType) {
11
- DevvitContextType[DevvitContextType["POST"] = 0] = "POST";
12
- DevvitContextType[DevvitContextType["COMMENT"] = 1] = "COMMENT";
13
- DevvitContextType[DevvitContextType["SUBREDDIT"] = 2] = "SUBREDDIT";
14
- DevvitContextType[DevvitContextType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
15
- })(DevvitContextType || (DevvitContextType = {}));
16
- export function devvitContextTypeFromJSON(object) {
17
- switch (object) {
18
- case 0:
19
- case "POST":
20
- return DevvitContextType.POST;
21
- case 1:
22
- case "COMMENT":
23
- return DevvitContextType.COMMENT;
24
- case 2:
25
- case "SUBREDDIT":
26
- return DevvitContextType.SUBREDDIT;
27
- case -1:
28
- case "UNRECOGNIZED":
29
- default:
30
- return DevvitContextType.UNRECOGNIZED;
31
- }
32
- }
33
- export function devvitContextTypeToJSON(object) {
34
- switch (object) {
35
- case DevvitContextType.POST:
36
- return 0;
37
- case DevvitContextType.COMMENT:
38
- return 1;
39
- case DevvitContextType.SUBREDDIT:
40
- return 2;
41
- case DevvitContextType.UNRECOGNIZED:
42
- default:
43
- return -1;
44
- }
45
- }
46
- export var DevvitUserType;
47
- (function (DevvitUserType) {
48
- DevvitUserType[DevvitUserType["MODERATOR"] = 0] = "MODERATOR";
49
- DevvitUserType[DevvitUserType["MEMBER"] = 1] = "MEMBER";
50
- DevvitUserType[DevvitUserType["LOGGED_OUT"] = 2] = "LOGGED_OUT";
51
- DevvitUserType[DevvitUserType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
52
- })(DevvitUserType || (DevvitUserType = {}));
53
- export function devvitUserTypeFromJSON(object) {
54
- switch (object) {
55
- case 0:
56
- case "MODERATOR":
57
- return DevvitUserType.MODERATOR;
58
- case 1:
59
- case "MEMBER":
60
- return DevvitUserType.MEMBER;
61
- case 2:
62
- case "LOGGED_OUT":
63
- return DevvitUserType.LOGGED_OUT;
64
- case -1:
65
- case "UNRECOGNIZED":
66
- default:
67
- return DevvitUserType.UNRECOGNIZED;
68
- }
69
- }
70
- export function devvitUserTypeToJSON(object) {
71
- switch (object) {
72
- case DevvitUserType.MODERATOR:
73
- return 0;
74
- case DevvitUserType.MEMBER:
75
- return 1;
76
- case DevvitUserType.LOGGED_OUT:
77
- return 2;
78
- case DevvitUserType.UNRECOGNIZED:
79
- default:
80
- return -1;
81
- }
82
- }
83
- export var DevvitAppVisibility;
84
- (function (DevvitAppVisibility) {
85
- DevvitAppVisibility[DevvitAppVisibility["PUBLIC"] = 0] = "PUBLIC";
86
- DevvitAppVisibility[DevvitAppVisibility["PRIVATE"] = 1] = "PRIVATE";
87
- DevvitAppVisibility[DevvitAppVisibility["UNLISTED"] = 2] = "UNLISTED";
88
- DevvitAppVisibility[DevvitAppVisibility["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
89
- })(DevvitAppVisibility || (DevvitAppVisibility = {}));
90
- export function devvitAppVisibilityFromJSON(object) {
91
- switch (object) {
92
- case 0:
93
- case "PUBLIC":
94
- return DevvitAppVisibility.PUBLIC;
95
- case 1:
96
- case "PRIVATE":
97
- return DevvitAppVisibility.PRIVATE;
98
- case 2:
99
- case "UNLISTED":
100
- return DevvitAppVisibility.UNLISTED;
101
- case -1:
102
- case "UNRECOGNIZED":
103
- default:
104
- return DevvitAppVisibility.UNRECOGNIZED;
105
- }
106
- }
107
- export function devvitAppVisibilityToJSON(object) {
108
- switch (object) {
109
- case DevvitAppVisibility.PUBLIC:
110
- return 0;
111
- case DevvitAppVisibility.PRIVATE:
112
- return 1;
113
- case DevvitAppVisibility.UNLISTED:
114
- return 2;
115
- case DevvitAppVisibility.UNRECOGNIZED:
116
- default:
117
- return -1;
118
- }
119
- }
120
- function createBaseDevvitSubredditManifest() {
121
- return { contextActions: [], installations: [] };
122
- }
123
- export const DevvitSubredditManifest = {
124
- $type: "devvit.gql.DevvitSubredditManifest",
125
- encode(message, writer = _m0.Writer.create()) {
126
- for (const v of message.contextActions) {
127
- DevvitContextActions.encode(v, writer.uint32(10).fork()).ldelim();
128
- }
129
- for (const v of message.installations) {
130
- DevvitInstallation.encode(v, writer.uint32(18).fork()).ldelim();
131
- }
132
- return writer;
133
- },
134
- decode(input, length) {
135
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
136
- let end = length === undefined ? reader.len : reader.pos + length;
137
- const message = createBaseDevvitSubredditManifest();
138
- while (reader.pos < end) {
139
- const tag = reader.uint32();
140
- switch (tag >>> 3) {
141
- case 1:
142
- if (tag !== 10) {
143
- break;
144
- }
145
- message.contextActions.push(DevvitContextActions.decode(reader, reader.uint32()));
146
- continue;
147
- case 2:
148
- if (tag !== 18) {
149
- break;
150
- }
151
- message.installations.push(DevvitInstallation.decode(reader, reader.uint32()));
152
- continue;
153
- }
154
- if ((tag & 7) === 4 || tag === 0) {
155
- break;
156
- }
157
- reader.skipType(tag & 7);
158
- }
159
- return message;
160
- },
161
- fromJSON(object) {
162
- return {
163
- contextActions: globalThis.Array.isArray(object?.contextActions)
164
- ? object.contextActions.map((e) => DevvitContextActions.fromJSON(e))
165
- : [],
166
- installations: globalThis.Array.isArray(object?.installations)
167
- ? object.installations.map((e) => DevvitInstallation.fromJSON(e))
168
- : [],
169
- };
170
- },
171
- toJSON(message) {
172
- const obj = {};
173
- if (message.contextActions?.length) {
174
- obj.contextActions = message.contextActions.map((e) => DevvitContextActions.toJSON(e));
175
- }
176
- if (message.installations?.length) {
177
- obj.installations = message.installations.map((e) => DevvitInstallation.toJSON(e));
178
- }
179
- return obj;
180
- },
181
- create(base) {
182
- return DevvitSubredditManifest.fromPartial(base ?? {});
183
- },
184
- fromPartial(object) {
185
- const message = createBaseDevvitSubredditManifest();
186
- message.contextActions = object.contextActions?.map((e) => DevvitContextActions.fromPartial(e)) || [];
187
- message.installations = object.installations?.map((e) => DevvitInstallation.fromPartial(e)) || [];
188
- return message;
189
- },
190
- };
191
- messageTypeRegistry.set(DevvitSubredditManifest.$type, DevvitSubredditManifest);
192
- function createBaseDevvitContextActions() {
193
- return { actions: [], hostname: "" };
194
- }
195
- export const DevvitContextActions = {
196
- $type: "devvit.gql.DevvitContextActions",
197
- encode(message, writer = _m0.Writer.create()) {
198
- for (const v of message.actions) {
199
- DevvitContextAction.encode(v, writer.uint32(10).fork()).ldelim();
200
- }
201
- if (message.hostname !== "") {
202
- writer.uint32(18).string(message.hostname);
203
- }
204
- return writer;
205
- },
206
- decode(input, length) {
207
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
208
- let end = length === undefined ? reader.len : reader.pos + length;
209
- const message = createBaseDevvitContextActions();
210
- while (reader.pos < end) {
211
- const tag = reader.uint32();
212
- switch (tag >>> 3) {
213
- case 1:
214
- if (tag !== 10) {
215
- break;
216
- }
217
- message.actions.push(DevvitContextAction.decode(reader, reader.uint32()));
218
- continue;
219
- case 2:
220
- if (tag !== 18) {
221
- break;
222
- }
223
- message.hostname = reader.string();
224
- continue;
225
- }
226
- if ((tag & 7) === 4 || tag === 0) {
227
- break;
228
- }
229
- reader.skipType(tag & 7);
230
- }
231
- return message;
232
- },
233
- fromJSON(object) {
234
- return {
235
- actions: globalThis.Array.isArray(object?.actions)
236
- ? object.actions.map((e) => DevvitContextAction.fromJSON(e))
237
- : [],
238
- hostname: isSet(object.hostname) ? globalThis.String(object.hostname) : "",
239
- };
240
- },
241
- toJSON(message) {
242
- const obj = {};
243
- if (message.actions?.length) {
244
- obj.actions = message.actions.map((e) => DevvitContextAction.toJSON(e));
245
- }
246
- if (message.hostname !== "") {
247
- obj.hostname = message.hostname;
248
- }
249
- return obj;
250
- },
251
- create(base) {
252
- return DevvitContextActions.fromPartial(base ?? {});
253
- },
254
- fromPartial(object) {
255
- const message = createBaseDevvitContextActions();
256
- message.actions = object.actions?.map((e) => DevvitContextAction.fromPartial(e)) || [];
257
- message.hostname = object.hostname ?? "";
258
- return message;
259
- },
260
- };
261
- messageTypeRegistry.set(DevvitContextActions.$type, DevvitContextActions);
262
- function createBaseDevvitContextAction() {
263
- return { contextTypes: [], description: "", id: "", isOnlyForAppCreatedPosts: false, name: "", userTypes: [] };
264
- }
265
- export const DevvitContextAction = {
266
- $type: "devvit.gql.DevvitContextAction",
267
- encode(message, writer = _m0.Writer.create()) {
268
- writer.uint32(10).fork();
269
- for (const v of message.contextTypes) {
270
- writer.int32(v);
271
- }
272
- writer.ldelim();
273
- if (message.description !== "") {
274
- writer.uint32(18).string(message.description);
275
- }
276
- if (message.id !== "") {
277
- writer.uint32(26).string(message.id);
278
- }
279
- if (message.isOnlyForAppCreatedPosts !== false) {
280
- writer.uint32(32).bool(message.isOnlyForAppCreatedPosts);
281
- }
282
- if (message.name !== "") {
283
- writer.uint32(42).string(message.name);
284
- }
285
- writer.uint32(50).fork();
286
- for (const v of message.userTypes) {
287
- writer.int32(v);
288
- }
289
- writer.ldelim();
290
- return writer;
291
- },
292
- decode(input, length) {
293
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
294
- let end = length === undefined ? reader.len : reader.pos + length;
295
- const message = createBaseDevvitContextAction();
296
- while (reader.pos < end) {
297
- const tag = reader.uint32();
298
- switch (tag >>> 3) {
299
- case 1:
300
- if (tag === 8) {
301
- message.contextTypes.push(reader.int32());
302
- continue;
303
- }
304
- if (tag === 10) {
305
- const end2 = reader.uint32() + reader.pos;
306
- while (reader.pos < end2) {
307
- message.contextTypes.push(reader.int32());
308
- }
309
- continue;
310
- }
311
- break;
312
- case 2:
313
- if (tag !== 18) {
314
- break;
315
- }
316
- message.description = reader.string();
317
- continue;
318
- case 3:
319
- if (tag !== 26) {
320
- break;
321
- }
322
- message.id = reader.string();
323
- continue;
324
- case 4:
325
- if (tag !== 32) {
326
- break;
327
- }
328
- message.isOnlyForAppCreatedPosts = reader.bool();
329
- continue;
330
- case 5:
331
- if (tag !== 42) {
332
- break;
333
- }
334
- message.name = reader.string();
335
- continue;
336
- case 6:
337
- if (tag === 48) {
338
- message.userTypes.push(reader.int32());
339
- continue;
340
- }
341
- if (tag === 50) {
342
- const end2 = reader.uint32() + reader.pos;
343
- while (reader.pos < end2) {
344
- message.userTypes.push(reader.int32());
345
- }
346
- continue;
347
- }
348
- break;
349
- }
350
- if ((tag & 7) === 4 || tag === 0) {
351
- break;
352
- }
353
- reader.skipType(tag & 7);
354
- }
355
- return message;
356
- },
357
- fromJSON(object) {
358
- return {
359
- contextTypes: globalThis.Array.isArray(object?.contextTypes)
360
- ? object.contextTypes.map((e) => devvitContextTypeFromJSON(e))
361
- : [],
362
- description: isSet(object.description) ? globalThis.String(object.description) : "",
363
- id: isSet(object.id) ? globalThis.String(object.id) : "",
364
- isOnlyForAppCreatedPosts: isSet(object.isOnlyForAppCreatedPosts)
365
- ? globalThis.Boolean(object.isOnlyForAppCreatedPosts)
366
- : false,
367
- name: isSet(object.name) ? globalThis.String(object.name) : "",
368
- userTypes: globalThis.Array.isArray(object?.userTypes)
369
- ? object.userTypes.map((e) => devvitUserTypeFromJSON(e))
370
- : [],
371
- };
372
- },
373
- toJSON(message) {
374
- const obj = {};
375
- if (message.contextTypes?.length) {
376
- obj.contextTypes = message.contextTypes.map((e) => devvitContextTypeToJSON(e));
377
- }
378
- if (message.description !== "") {
379
- obj.description = message.description;
380
- }
381
- if (message.id !== "") {
382
- obj.id = message.id;
383
- }
384
- if (message.isOnlyForAppCreatedPosts !== false) {
385
- obj.isOnlyForAppCreatedPosts = message.isOnlyForAppCreatedPosts;
386
- }
387
- if (message.name !== "") {
388
- obj.name = message.name;
389
- }
390
- if (message.userTypes?.length) {
391
- obj.userTypes = message.userTypes.map((e) => devvitUserTypeToJSON(e));
392
- }
393
- return obj;
394
- },
395
- create(base) {
396
- return DevvitContextAction.fromPartial(base ?? {});
397
- },
398
- fromPartial(object) {
399
- const message = createBaseDevvitContextAction();
400
- message.contextTypes = object.contextTypes?.map((e) => e) || [];
401
- message.description = object.description ?? "";
402
- message.id = object.id ?? "";
403
- message.isOnlyForAppCreatedPosts = object.isOnlyForAppCreatedPosts ?? false;
404
- message.name = object.name ?? "";
405
- message.userTypes = object.userTypes?.map((e) => e) || [];
406
- return message;
407
- },
408
- };
409
- messageTypeRegistry.set(DevvitContextAction.$type, DevvitContextAction);
410
- function createBaseDevvitInstallation() {
411
- return { app: undefined, hostname: "", id: "", publicApiVersion: "" };
412
- }
413
- export const DevvitInstallation = {
414
- $type: "devvit.gql.DevvitInstallation",
415
- encode(message, writer = _m0.Writer.create()) {
416
- if (message.app !== undefined) {
417
- DevvitApp.encode(message.app, writer.uint32(10).fork()).ldelim();
418
- }
419
- if (message.hostname !== "") {
420
- writer.uint32(18).string(message.hostname);
421
- }
422
- if (message.id !== "") {
423
- writer.uint32(26).string(message.id);
424
- }
425
- if (message.publicApiVersion !== "") {
426
- writer.uint32(34).string(message.publicApiVersion);
427
- }
428
- return writer;
429
- },
430
- decode(input, length) {
431
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
432
- let end = length === undefined ? reader.len : reader.pos + length;
433
- const message = createBaseDevvitInstallation();
434
- while (reader.pos < end) {
435
- const tag = reader.uint32();
436
- switch (tag >>> 3) {
437
- case 1:
438
- if (tag !== 10) {
439
- break;
440
- }
441
- message.app = DevvitApp.decode(reader, reader.uint32());
442
- continue;
443
- case 2:
444
- if (tag !== 18) {
445
- break;
446
- }
447
- message.hostname = reader.string();
448
- continue;
449
- case 3:
450
- if (tag !== 26) {
451
- break;
452
- }
453
- message.id = reader.string();
454
- continue;
455
- case 4:
456
- if (tag !== 34) {
457
- break;
458
- }
459
- message.publicApiVersion = reader.string();
460
- continue;
461
- }
462
- if ((tag & 7) === 4 || tag === 0) {
463
- break;
464
- }
465
- reader.skipType(tag & 7);
466
- }
467
- return message;
468
- },
469
- fromJSON(object) {
470
- return {
471
- app: isSet(object.app) ? DevvitApp.fromJSON(object.app) : undefined,
472
- hostname: isSet(object.hostname) ? globalThis.String(object.hostname) : "",
473
- id: isSet(object.id) ? globalThis.String(object.id) : "",
474
- publicApiVersion: isSet(object.publicApiVersion) ? globalThis.String(object.publicApiVersion) : "",
475
- };
476
- },
477
- toJSON(message) {
478
- const obj = {};
479
- if (message.app !== undefined) {
480
- obj.app = DevvitApp.toJSON(message.app);
481
- }
482
- if (message.hostname !== "") {
483
- obj.hostname = message.hostname;
484
- }
485
- if (message.id !== "") {
486
- obj.id = message.id;
487
- }
488
- if (message.publicApiVersion !== "") {
489
- obj.publicApiVersion = message.publicApiVersion;
490
- }
491
- return obj;
492
- },
493
- create(base) {
494
- return DevvitInstallation.fromPartial(base ?? {});
495
- },
496
- fromPartial(object) {
497
- const message = createBaseDevvitInstallation();
498
- message.app = (object.app !== undefined && object.app !== null) ? DevvitApp.fromPartial(object.app) : undefined;
499
- message.hostname = object.hostname ?? "";
500
- message.id = object.id ?? "";
501
- message.publicApiVersion = object.publicApiVersion ?? "";
502
- return message;
503
- },
504
- };
505
- messageTypeRegistry.set(DevvitInstallation.$type, DevvitInstallation);
506
- function createBaseDevvitApp() {
507
- return { id: "", name: "", owner: undefined, slug: "", version: "", visibility: 0 };
508
- }
509
- export const DevvitApp = {
510
- $type: "devvit.gql.DevvitApp",
511
- encode(message, writer = _m0.Writer.create()) {
512
- if (message.id !== "") {
513
- writer.uint32(10).string(message.id);
514
- }
515
- if (message.name !== "") {
516
- writer.uint32(18).string(message.name);
517
- }
518
- if (message.owner !== undefined) {
519
- Redditor.encode(message.owner, writer.uint32(26).fork()).ldelim();
520
- }
521
- if (message.slug !== "") {
522
- writer.uint32(34).string(message.slug);
523
- }
524
- if (message.version !== "") {
525
- writer.uint32(42).string(message.version);
526
- }
527
- if (message.visibility !== 0) {
528
- writer.uint32(48).int32(message.visibility);
529
- }
530
- return writer;
531
- },
532
- decode(input, length) {
533
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
534
- let end = length === undefined ? reader.len : reader.pos + length;
535
- const message = createBaseDevvitApp();
536
- while (reader.pos < end) {
537
- const tag = reader.uint32();
538
- switch (tag >>> 3) {
539
- case 1:
540
- if (tag !== 10) {
541
- break;
542
- }
543
- message.id = reader.string();
544
- continue;
545
- case 2:
546
- if (tag !== 18) {
547
- break;
548
- }
549
- message.name = reader.string();
550
- continue;
551
- case 3:
552
- if (tag !== 26) {
553
- break;
554
- }
555
- message.owner = Redditor.decode(reader, reader.uint32());
556
- continue;
557
- case 4:
558
- if (tag !== 34) {
559
- break;
560
- }
561
- message.slug = reader.string();
562
- continue;
563
- case 5:
564
- if (tag !== 42) {
565
- break;
566
- }
567
- message.version = reader.string();
568
- continue;
569
- case 6:
570
- if (tag !== 48) {
571
- break;
572
- }
573
- message.visibility = reader.int32();
574
- continue;
575
- }
576
- if ((tag & 7) === 4 || tag === 0) {
577
- break;
578
- }
579
- reader.skipType(tag & 7);
580
- }
581
- return message;
582
- },
583
- fromJSON(object) {
584
- return {
585
- id: isSet(object.id) ? globalThis.String(object.id) : "",
586
- name: isSet(object.name) ? globalThis.String(object.name) : "",
587
- owner: isSet(object.owner) ? Redditor.fromJSON(object.owner) : undefined,
588
- slug: isSet(object.slug) ? globalThis.String(object.slug) : "",
589
- version: isSet(object.version) ? globalThis.String(object.version) : "",
590
- visibility: isSet(object.visibility) ? devvitAppVisibilityFromJSON(object.visibility) : 0,
591
- };
592
- },
593
- toJSON(message) {
594
- const obj = {};
595
- if (message.id !== "") {
596
- obj.id = message.id;
597
- }
598
- if (message.name !== "") {
599
- obj.name = message.name;
600
- }
601
- if (message.owner !== undefined) {
602
- obj.owner = Redditor.toJSON(message.owner);
603
- }
604
- if (message.slug !== "") {
605
- obj.slug = message.slug;
606
- }
607
- if (message.version !== "") {
608
- obj.version = message.version;
609
- }
610
- if (message.visibility !== 0) {
611
- obj.visibility = devvitAppVisibilityToJSON(message.visibility);
612
- }
613
- return obj;
614
- },
615
- create(base) {
616
- return DevvitApp.fromPartial(base ?? {});
617
- },
618
- fromPartial(object) {
619
- const message = createBaseDevvitApp();
620
- message.id = object.id ?? "";
621
- message.name = object.name ?? "";
622
- message.owner = (object.owner !== undefined && object.owner !== null)
623
- ? Redditor.fromPartial(object.owner)
624
- : undefined;
625
- message.slug = object.slug ?? "";
626
- message.version = object.version ?? "";
627
- message.visibility = object.visibility ?? 0;
628
- return message;
629
- },
630
- };
631
- messageTypeRegistry.set(DevvitApp.$type, DevvitApp);
632
- function createBaseRedditor() {
633
- return { id: "", displayName: "" };
634
- }
635
- export const Redditor = {
636
- $type: "devvit.gql.Redditor",
637
- encode(message, writer = _m0.Writer.create()) {
638
- if (message.id !== "") {
639
- writer.uint32(10).string(message.id);
640
- }
641
- if (message.displayName !== "") {
642
- writer.uint32(18).string(message.displayName);
643
- }
644
- return writer;
645
- },
646
- decode(input, length) {
647
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
648
- let end = length === undefined ? reader.len : reader.pos + length;
649
- const message = createBaseRedditor();
650
- while (reader.pos < end) {
651
- const tag = reader.uint32();
652
- switch (tag >>> 3) {
653
- case 1:
654
- if (tag !== 10) {
655
- break;
656
- }
657
- message.id = reader.string();
658
- continue;
659
- case 2:
660
- if (tag !== 18) {
661
- break;
662
- }
663
- message.displayName = reader.string();
664
- continue;
665
- }
666
- if ((tag & 7) === 4 || tag === 0) {
667
- break;
668
- }
669
- reader.skipType(tag & 7);
670
- }
671
- return message;
672
- },
673
- fromJSON(object) {
674
- return {
675
- id: isSet(object.id) ? globalThis.String(object.id) : "",
676
- displayName: isSet(object.displayName) ? globalThis.String(object.displayName) : "",
677
- };
678
- },
679
- toJSON(message) {
680
- const obj = {};
681
- if (message.id !== "") {
682
- obj.id = message.id;
683
- }
684
- if (message.displayName !== "") {
685
- obj.displayName = message.displayName;
686
- }
687
- return obj;
688
- },
689
- create(base) {
690
- return Redditor.fromPartial(base ?? {});
691
- },
692
- fromPartial(object) {
693
- const message = createBaseRedditor();
694
- message.id = object.id ?? "";
695
- message.displayName = object.displayName ?? "";
696
- return message;
697
- },
698
- };
699
- messageTypeRegistry.set(Redditor.$type, Redditor);
700
- function isSet(value) {
701
- return value !== null && value !== undefined;
702
- }