@se-uulm/snowballr-grpc-client 0.2.0 → 0.2.1-alpha.2fd7ace

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.
@@ -1,470 +1,20 @@
1
- // @generated by protobuf-ts 2.11.1 with parameter generate_dependencies
1
+ // @generated by protobuf-ts 2.11.1 with parameter generate_dependencies,output_javascript
2
2
  // @generated from protobuf file "project.proto" (package "snowballr", syntax proto3)
3
3
  // tslint:disable
4
4
  //
5
5
  /// Project related messages and enums of the SnowballR app.
6
6
  //
7
- import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
8
- import type { IBinaryWriter } from "@protobuf-ts/runtime";
9
7
  import { WireType } from "@protobuf-ts/runtime";
10
- import type { BinaryReadOptions } from "@protobuf-ts/runtime";
11
- import type { IBinaryReader } from "@protobuf-ts/runtime";
12
8
  import { UnknownFieldHandler } from "@protobuf-ts/runtime";
13
- import type { PartialMessage } from "@protobuf-ts/runtime";
14
9
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
15
10
  import { MessageType } from "@protobuf-ts/runtime";
16
- import { ReviewDecision } from "./review";
17
- import { Review } from "./review";
18
- import { Paper } from "./paper";
19
- import { User } from "./user";
20
- import { FetcherOptions } from "./fetcher";
21
- import { Timestamp } from "./google/protobuf/timestamp";
22
- import { FieldMask } from "./google/protobuf/field_mask";
23
- /**
24
- * The project response object.
25
- *
26
- * @generated from protobuf message snowballr.Project
27
- */
28
- export interface Project {
29
- /**
30
- * @generated from protobuf field: string id = 1
31
- */
32
- id: string;
33
- /**
34
- * @generated from protobuf field: string name = 2
35
- */
36
- name: string;
37
- /**
38
- * @generated from protobuf field: snowballr.ProjectStatus status = 3
39
- */
40
- status: ProjectStatus;
41
- /**
42
- * @generated from protobuf field: uint64 current_stage = 4
43
- */
44
- currentStage: bigint;
45
- /**
46
- * @generated from protobuf field: uint64 max_stage = 5
47
- */
48
- maxStage: bigint;
49
- /**
50
- * @generated from protobuf field: snowballr.Project.Settings settings = 6
51
- */
52
- settings?: Project_Settings;
53
- }
54
- /**
55
- * A list of projects.
56
- *
57
- * @generated from protobuf message snowballr.Project.List
58
- */
59
- export interface Project_List {
60
- /**
61
- * @generated from protobuf field: repeated snowballr.Project projects = 1
62
- */
63
- projects: Project[];
64
- }
65
- /**
66
- * Request to create a project.
67
- *
68
- * @generated from protobuf message snowballr.Project.Create
69
- */
70
- export interface Project_Create {
71
- /**
72
- * @generated from protobuf field: string name = 1
73
- */
74
- name: string;
75
- }
76
- /**
77
- * Request to update a project.
78
- *
79
- * @generated from protobuf message snowballr.Project.Update
80
- */
81
- export interface Project_Update {
82
- /**
83
- * @generated from protobuf field: snowballr.Project project = 1
84
- */
85
- project?: Project;
86
- /**
87
- * @generated from protobuf field: google.protobuf.FieldMask mask = 2
88
- */
89
- mask?: FieldMask;
90
- }
91
- /**
92
- * Response of relevant project metadata.
93
- *
94
- * @generated from protobuf message snowballr.Project.Information
95
- */
96
- export interface Project_Information {
97
- /**
98
- * In a range from 0.0 to 1.0
99
- *
100
- * @generated from protobuf field: float project_progress = 1
101
- */
102
- projectProgress: number;
103
- /**
104
- * @generated from protobuf field: google.protobuf.Timestamp creation_date = 2
105
- */
106
- creationDate?: Timestamp;
107
- /**
108
- * The start time of the last (not necessarily completed) stage
109
- *
110
- * @generated from protobuf field: google.protobuf.Timestamp last_stage_started = 3
111
- */
112
- lastStageStarted?: Timestamp;
113
- }
114
- /**
115
- * Request to get relevant project metadata.
116
- *
117
- * @generated from protobuf message snowballr.Project.Information.Get
118
- */
119
- export interface Project_Information_Get {
120
- /**
121
- * @generated from protobuf field: string project_id = 1
122
- */
123
- projectId: string;
124
- /**
125
- * @generated from protobuf field: google.protobuf.FieldMask mask = 2
126
- */
127
- mask?: FieldMask;
128
- }
129
- /**
130
- * Response of decision statistics containing the number of decisions made in the project.
131
- *
132
- * @generated from protobuf message snowballr.Project.Information.DecisionStatistics
133
- */
134
- export interface Project_Information_DecisionStatistics {
135
- /**
136
- * @generated from protobuf field: repeated snowballr.Project.Information.DecisionStatistics.Statistic statistics = 1
137
- */
138
- statistics: Project_Information_DecisionStatistics_Statistic[];
139
- }
140
- /**
141
- * The number of decisions made for a specific decision, e.g. accepted.
142
- *
143
- * @generated from protobuf message snowballr.Project.Information.DecisionStatistics.Statistic
144
- */
145
- export interface Project_Information_DecisionStatistics_Statistic {
146
- /**
147
- * @generated from protobuf field: snowballr.PaperDecision decision = 1
148
- */
149
- decision: PaperDecision;
150
- /**
151
- * @generated from protobuf field: uint64 count = 2
152
- */
153
- count: bigint;
154
- }
155
- /**
156
- * Request to get the decision statistics for a specific stage of a project.
157
- *
158
- * @generated from protobuf message snowballr.Project.Information.DecisionStatistics.Get
159
- */
160
- export interface Project_Information_DecisionStatistics_Get {
161
- /**
162
- * @generated from protobuf field: string project_id = 1
163
- */
164
- projectId: string;
165
- /**
166
- * @generated from protobuf field: uint64 stage = 2
167
- */
168
- stage: bigint;
169
- }
170
- /**
171
- * Project related settings.
172
- *
173
- * @generated from protobuf message snowballr.Project.Settings
174
- */
175
- export interface Project_Settings {
176
- /**
177
- * @generated from protobuf field: float similarity_threshold = 5
178
- */
179
- similarityThreshold: number;
180
- /**
181
- * @generated from protobuf field: snowballr.ReviewDecisionMatrix decision_matrix = 6
182
- */
183
- decisionMatrix?: ReviewDecisionMatrix;
184
- /**
185
- * Map fetcher name to its fetcher options, i.e. the map of option names to saved option values
186
- *
187
- * @generated from protobuf field: map<string, snowballr.FetcherOptions> fetchers = 7
188
- */
189
- fetchers: {
190
- [key: string]: FetcherOptions;
191
- };
192
- /**
193
- * @generated from protobuf field: snowballr.SnowballingType snowballing_type = 8
194
- */
195
- snowballingType: SnowballingType;
196
- /**
197
- * @generated from protobuf field: bool review_maybe_allowed = 9
198
- */
199
- reviewMaybeAllowed: boolean;
200
- }
201
- /**
202
- * A project member.
203
- *
204
- * @generated from protobuf message snowballr.Project.Member
205
- */
206
- export interface Project_Member {
207
- /**
208
- * @generated from protobuf field: snowballr.User user = 1
209
- */
210
- user?: User;
211
- /**
212
- * @generated from protobuf field: snowballr.MemberRole role = 2
213
- */
214
- role: MemberRole;
215
- }
216
- /**
217
- * A list of project members.
218
- *
219
- * @generated from protobuf message snowballr.Project.Member.List
220
- */
221
- export interface Project_Member_List {
222
- /**
223
- * @generated from protobuf field: repeated snowballr.Project.Member members = 1
224
- */
225
- members: Project_Member[];
226
- }
227
- /**
228
- * Request to invite somebody to join the project.
229
- *
230
- * @generated from protobuf message snowballr.Project.Member.Invite
231
- */
232
- export interface Project_Member_Invite {
233
- /**
234
- * @generated from protobuf field: string project_id = 1
235
- */
236
- projectId: string;
237
- /**
238
- * @generated from protobuf field: string user_email = 2
239
- */
240
- userEmail: string;
241
- }
242
- /**
243
- * Request to accept a project invitation.
244
- *
245
- * @generated from protobuf message snowballr.Project.Member.Accept
246
- */
247
- export interface Project_Member_Accept {
248
- /**
249
- * @generated from protobuf field: string token = 1
250
- */
251
- token: string;
252
- }
253
- /**
254
- * Request to remove an invitee or project member from a project.
255
- *
256
- * @generated from protobuf message snowballr.Project.Member.Remove
257
- */
258
- export interface Project_Member_Remove {
259
- /**
260
- * @generated from protobuf field: string project_id = 1
261
- */
262
- projectId: string;
263
- /**
264
- * @generated from protobuf field: string user_email = 3
265
- */
266
- userEmail: string;
267
- }
268
- /**
269
- * Request to update a project member.
270
- *
271
- * @generated from protobuf message snowballr.Project.Member.Update
272
- */
273
- export interface Project_Member_Update {
274
- /**
275
- * @generated from protobuf field: string project_id = 1
276
- */
277
- projectId: string;
278
- /**
279
- * @generated from protobuf field: string user_id = 2
280
- */
281
- userId: string;
282
- /**
283
- * @generated from protobuf field: snowballr.MemberRole new_role = 3
284
- */
285
- newRole: MemberRole;
286
- }
287
- /**
288
- * Response of candidates to invite to a project.
289
- *
290
- * @generated from protobuf message snowballr.Project.InviteCandidatesRequest
291
- */
292
- export interface Project_InviteCandidatesRequest {
293
- /**
294
- * The search query to match users by name or email.
295
- * The query must be at least 3 characters long.
296
- *
297
- * @generated from protobuf field: string query = 1
298
- */
299
- query: string;
300
- /**
301
- * The id of the project to which potential candidates should be invited.
302
- * This field is optional and should be left **unspecified** if candidates
303
- * are requested for a project that has not yet been created.
304
- *
305
- * @generated from protobuf field: string project_id = 2
306
- */
307
- projectId: string;
308
- }
309
- /**
310
- * The project paper connecting a project to a paper with additional information.
311
- *
312
- * @generated from protobuf message snowballr.Project.Paper
313
- */
314
- export interface Project_Paper {
315
- /**
316
- * @generated from protobuf field: string id = 1
317
- */
318
- id: string;
319
- /**
320
- * @generated from protobuf field: snowballr.Paper paper = 2
321
- */
322
- paper?: Paper;
323
- /**
324
- * @generated from protobuf field: uint64 stage = 3
325
- */
326
- stage: bigint;
327
- /**
328
- * @generated from protobuf field: snowballr.PaperDecision decision = 4
329
- */
330
- decision: PaperDecision;
331
- /**
332
- * @generated from protobuf field: repeated snowballr.Review reviews = 5
333
- */
334
- reviews: Review[];
335
- /**
336
- * @generated from protobuf field: string local_id = 6
337
- */
338
- localId: string;
339
- }
340
- /**
341
- * Request to get a project paper.
342
- *
343
- * @generated from protobuf message snowballr.Project.Paper.Get
344
- */
345
- export interface Project_Paper_Get {
346
- /**
347
- * @generated from protobuf field: string project_id = 1
348
- */
349
- projectId: string;
350
- /**
351
- * @generated from protobuf field: string relative_project_paper_id = 2
352
- */
353
- relativeProjectPaperId: string;
354
- }
355
- /**
356
- * A list of project papers.
357
- *
358
- * @generated from protobuf message snowballr.Project.Paper.List
359
- */
360
- export interface Project_Paper_List {
361
- /**
362
- * @generated from protobuf field: repeated snowballr.Project.Paper project_papers = 1
363
- */
364
- projectPapers: Project_Paper[];
365
- }
366
- /**
367
- * Request to add a paper to a project.
368
- *
369
- * @generated from protobuf message snowballr.Project.Paper.Add
370
- */
371
- export interface Project_Paper_Add {
372
- /**
373
- * @generated from protobuf field: string project_id = 1
374
- */
375
- projectId: string;
376
- /**
377
- * @generated from protobuf field: uint64 stage = 2
378
- */
379
- stage: bigint;
380
- /**
381
- * @generated from protobuf field: string paper_id = 3
382
- */
383
- paperId: string;
384
- }
385
- /**
386
- * Request to update a project paper.
387
- *
388
- * @generated from protobuf message snowballr.Project.Paper.Update
389
- */
390
- export interface Project_Paper_Update {
391
- /**
392
- * @generated from protobuf field: snowballr.Project.Paper project_paper = 1
393
- */
394
- projectPaper?: Project_Paper;
395
- /**
396
- * @generated from protobuf field: google.protobuf.FieldMask mask = 2
397
- */
398
- mask?: FieldMask;
399
- }
400
- /**
401
- * Request to search for project papers according to a query.
402
- *
403
- * @generated from protobuf message snowballr.Project.Paper.SearchQuery
404
- */
405
- export interface Project_Paper_SearchQuery {
406
- /**
407
- * @generated from protobuf field: string project_id = 1
408
- */
409
- projectId: string;
410
- /**
411
- * There are no restrictions on this search query in terms of valid values,
412
- * except the length.
413
- * The backend is fully responsible for deciding which paper attributes this
414
- * query is matched against and is supposed to provide the best results for
415
- * the given query.
416
- *
417
- * @generated from protobuf field: string query = 2
418
- */
419
- query: string;
420
- }
421
- /**
422
- * Matrix containing the paper decision based on reviews made for a paper.
423
- * This matrix defines how a paper is decided based on its reviews.
424
- * For this to work, the entries need to be unique and the patterns exhaustive.
425
- *
426
- * @generated from protobuf message snowballr.ReviewDecisionMatrix
427
- */
428
- export interface ReviewDecisionMatrix {
429
- /**
430
- * @generated from protobuf field: uint32 number_of_reviewers = 1
431
- */
432
- numberOfReviewers: number;
433
- /**
434
- * @generated from protobuf field: repeated snowballr.ReviewDecisionMatrix.Pattern patterns = 2
435
- */
436
- patterns: ReviewDecisionMatrix_Pattern[];
437
- }
438
- /**
439
- * The actual matrix of the ReviewDecisionMatrix.
440
- *
441
- * @generated from protobuf message snowballr.ReviewDecisionMatrix.Pattern
442
- */
443
- export interface ReviewDecisionMatrix_Pattern {
444
- /**
445
- * @generated from protobuf field: repeated snowballr.ReviewDecisionMatrix.Pattern.Entry entries = 1
446
- */
447
- entries: ReviewDecisionMatrix_Pattern_Entry[];
448
- /**
449
- * @generated from protobuf field: snowballr.PaperDecision decision = 2
450
- */
451
- decision: PaperDecision;
452
- }
453
- /**
454
- * An entry in the ReviewDecisionMatrix containing the decision and the number of occurrences.
455
- *
456
- * @generated from protobuf message snowballr.ReviewDecisionMatrix.Pattern.Entry
457
- */
458
- export interface ReviewDecisionMatrix_Pattern_Entry {
459
- /**
460
- * @generated from protobuf field: snowballr.ReviewDecision review_decision = 1
461
- */
462
- reviewDecision: ReviewDecision;
463
- /**
464
- * @generated from protobuf field: uint64 count = 2
465
- */
466
- count: bigint;
467
- }
11
+ import { ReviewDecision } from "./review.js";
12
+ import { Review } from "./review.js";
13
+ import { Paper } from "./paper.js";
14
+ import { User } from "./user.js";
15
+ import { FetcherOptions } from "./fetcher.js";
16
+ import { Timestamp } from "./google/protobuf/timestamp.js";
17
+ import { FieldMask } from "./google/protobuf/field_mask.js";
468
18
  /**
469
19
  * The type of snowballing, according to Wohlin (2014).
470
20
  * It defines which references (forward or backward) are fetched when a paper is accepted.
@@ -477,136 +27,140 @@ export interface ReviewDecisionMatrix_Pattern_Entry {
477
27
  *
478
28
  * @generated from protobuf enum snowballr.SnowballingType
479
29
  */
480
- export enum SnowballingType {
30
+ export var SnowballingType;
31
+ (function (SnowballingType) {
481
32
  /**
482
33
  * Unspecified snowballing type.
483
34
  *
484
35
  * @generated from protobuf enum value: SNOWBALLING_TYPE_UNSPECIFIED = 0;
485
36
  */
486
- UNSPECIFIED = 0,
37
+ SnowballingType[SnowballingType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
487
38
  /**
488
39
  * All forward references are fetched.
489
40
  *
490
41
  * @generated from protobuf enum value: SNOWBALLING_TYPE_FORWARD = 1;
491
42
  */
492
- FORWARD = 1,
43
+ SnowballingType[SnowballingType["FORWARD"] = 1] = "FORWARD";
493
44
  /**
494
45
  * All backward references are fetched.
495
46
  *
496
47
  * @generated from protobuf enum value: SNOWBALLING_TYPE_BACKWARD = 2;
497
48
  */
498
- BACKWARD = 2,
49
+ SnowballingType[SnowballingType["BACKWARD"] = 2] = "BACKWARD";
499
50
  /**
500
51
  * All forward and backward references are fetched.
501
52
  *
502
53
  * @generated from protobuf enum value: SNOWBALLING_TYPE_BOTH = 3;
503
54
  */
504
- BOTH = 3
505
- }
55
+ SnowballingType[SnowballingType["BOTH"] = 3] = "BOTH";
56
+ })(SnowballingType || (SnowballingType = {}));
506
57
  /**
507
58
  * Role of a user inside a project.
508
59
  *
509
60
  * @generated from protobuf enum snowballr.MemberRole
510
61
  */
511
- export enum MemberRole {
62
+ export var MemberRole;
63
+ (function (MemberRole) {
512
64
  /**
513
65
  * Unspecified member role.
514
66
  *
515
67
  * @generated from protobuf enum value: MEMBER_ROLE_UNSPECIFIED = 0;
516
68
  */
517
- UNSPECIFIED = 0,
69
+ MemberRole[MemberRole["UNSPECIFIED"] = 0] = "UNSPECIFIED";
518
70
  /**
519
71
  * Default project member role. No elevated rights.
520
72
  *
521
73
  * @generated from protobuf enum value: MEMBER_ROLE_DEFAULT = 1;
522
74
  */
523
- DEFAULT = 1,
75
+ MemberRole[MemberRole["DEFAULT"] = 1] = "DEFAULT";
524
76
  /**
525
77
  * Admin project member role. Can do everything that a default project member can do and more.
526
78
  *
527
79
  * @generated from protobuf enum value: MEMBER_ROLE_ADMIN = 2;
528
80
  */
529
- ADMIN = 2
530
- }
81
+ MemberRole[MemberRole["ADMIN"] = 2] = "ADMIN";
82
+ })(MemberRole || (MemberRole = {}));
531
83
  /**
532
84
  * Status of the project. Can be considered the stage in the lifecycle of a project.
533
85
  *
534
86
  * @generated from protobuf enum snowballr.ProjectStatus
535
87
  */
536
- export enum ProjectStatus {
88
+ export var ProjectStatus;
89
+ (function (ProjectStatus) {
537
90
  /**
538
91
  * Unspecified project status.
539
92
  *
540
93
  * @generated from protobuf enum value: PROJECT_STATUS_UNSPECIFIED = 0;
541
94
  */
542
- UNSPECIFIED = 0,
95
+ ProjectStatus[ProjectStatus["UNSPECIFIED"] = 0] = "UNSPECIFIED";
543
96
  /**
544
97
  * Project is active and fully editable, including settings.
545
98
  *
546
99
  * @generated from protobuf enum value: PROJECT_STATUS_ACTIVE = 1;
547
100
  */
548
- ACTIVE = 1,
101
+ ProjectStatus[ProjectStatus["ACTIVE"] = 1] = "ACTIVE";
549
102
  /**
550
103
  * Project is read-only and no longer actively used.
551
104
  * This project is marked as archived.
552
105
  *
553
106
  * @generated from protobuf enum value: PROJECT_STATUS_ARCHIVED = 2;
554
107
  */
555
- ARCHIVED = 2,
108
+ ProjectStatus[ProjectStatus["ARCHIVED"] = 2] = "ARCHIVED";
556
109
  /**
557
110
  * Project is marked for deletion and should not be shown to users.
558
111
  * This project is marked as deleted.
559
112
  *
560
113
  * @generated from protobuf enum value: PROJECT_STATUS_DELETED = 3;
561
114
  */
562
- DELETED = 3,
115
+ ProjectStatus[ProjectStatus["DELETED"] = 3] = "DELETED";
563
116
  /**
564
117
  * Project is active, but slr settings can no longer be changed.
565
118
  * This state is reached as soon as the first review is submitted.
566
119
  *
567
120
  * @generated from protobuf enum value: PROJECT_STATUS_ACTIVE_LOCKED = 4;
568
121
  */
569
- ACTIVE_LOCKED = 4
570
- }
122
+ ProjectStatus[ProjectStatus["ACTIVE_LOCKED"] = 4] = "ACTIVE_LOCKED";
123
+ })(ProjectStatus || (ProjectStatus = {}));
571
124
  /**
572
125
  * The decision on how the paper is treated in respect to the SLR.
573
126
  *
574
127
  * @generated from protobuf enum snowballr.PaperDecision
575
128
  */
576
- export enum PaperDecision {
129
+ export var PaperDecision;
130
+ (function (PaperDecision) {
577
131
  /**
578
132
  * Unspecified paper decision.
579
133
  *
580
134
  * @generated from protobuf enum value: PAPER_DECISION_UNSPECIFIED = 0;
581
135
  */
582
- UNSPECIFIED = 0,
136
+ PaperDecision[PaperDecision["UNSPECIFIED"] = 0] = "UNSPECIFIED";
583
137
  /**
584
138
  * The paper has not been reviewed yet.
585
139
  *
586
140
  * @generated from protobuf enum value: PAPER_DECISION_UNREVIEWED = 1;
587
141
  */
588
- UNREVIEWED = 1,
142
+ PaperDecision[PaperDecision["UNREVIEWED"] = 1] = "UNREVIEWED";
589
143
  /**
590
144
  * The paper is currently in review.
591
145
  *
592
146
  * @generated from protobuf enum value: PAPER_DECISION_IN_REVIEW = 2;
593
147
  */
594
- IN_REVIEW = 2,
148
+ PaperDecision[PaperDecision["IN_REVIEW"] = 2] = "IN_REVIEW";
595
149
  /**
596
150
  * The paper was declined and is not considered part of the final SLR paper set.
597
151
  *
598
152
  * @generated from protobuf enum value: PAPER_DECISION_DECLINED = 3;
599
153
  */
600
- DECLINED = 3,
154
+ PaperDecision[PaperDecision["DECLINED"] = 3] = "DECLINED";
601
155
  /**
602
156
  * The paper was accepted and is considered part of the final SLR paper set.
603
157
  *
604
158
  * @generated from protobuf enum value: PAPER_DECISION_ACCEPTED = 4;
605
159
  */
606
- ACCEPTED = 4
607
- }
160
+ PaperDecision[PaperDecision["ACCEPTED"] = 4] = "ACCEPTED";
161
+ })(PaperDecision || (PaperDecision = {}));
608
162
  // @generated message type with reflection information, may provide speed optimized methods
609
- class Project$Type extends MessageType<Project> {
163
+ class Project$Type extends MessageType {
610
164
  constructor() {
611
165
  super("snowballr.Project", [
612
166
  { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
@@ -617,18 +171,18 @@ class Project$Type extends MessageType<Project> {
617
171
  { no: 6, name: "settings", kind: "message", T: () => Project_Settings }
618
172
  ]);
619
173
  }
620
- create(value?: PartialMessage<Project>): Project {
621
- const message = globalThis.Object.create((this.messagePrototype!));
174
+ create(value) {
175
+ const message = globalThis.Object.create((this.messagePrototype));
622
176
  message.id = "";
623
177
  message.name = "";
624
178
  message.status = 0;
625
179
  message.currentStage = 0n;
626
180
  message.maxStage = 0n;
627
181
  if (value !== undefined)
628
- reflectionMergePartial<Project>(this, message, value);
182
+ reflectionMergePartial(this, message, value);
629
183
  return message;
630
184
  }
631
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Project): Project {
185
+ internalBinaryRead(reader, length, options, target) {
632
186
  let message = target ?? this.create(), end = reader.pos + length;
633
187
  while (reader.pos < end) {
634
188
  let [fieldNo, wireType] = reader.tag();
@@ -662,7 +216,7 @@ class Project$Type extends MessageType<Project> {
662
216
  }
663
217
  return message;
664
218
  }
665
- internalBinaryWrite(message: Project, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
219
+ internalBinaryWrite(message, writer, options) {
666
220
  /* string id = 1; */
667
221
  if (message.id !== "")
668
222
  writer.tag(1, WireType.LengthDelimited).string(message.id);
@@ -692,20 +246,20 @@ class Project$Type extends MessageType<Project> {
692
246
  */
693
247
  export const Project = new Project$Type();
694
248
  // @generated message type with reflection information, may provide speed optimized methods
695
- class Project_List$Type extends MessageType<Project_List> {
249
+ class Project_List$Type extends MessageType {
696
250
  constructor() {
697
251
  super("snowballr.Project.List", [
698
252
  { no: 1, name: "projects", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Project }
699
253
  ]);
700
254
  }
701
- create(value?: PartialMessage<Project_List>): Project_List {
702
- const message = globalThis.Object.create((this.messagePrototype!));
255
+ create(value) {
256
+ const message = globalThis.Object.create((this.messagePrototype));
703
257
  message.projects = [];
704
258
  if (value !== undefined)
705
- reflectionMergePartial<Project_List>(this, message, value);
259
+ reflectionMergePartial(this, message, value);
706
260
  return message;
707
261
  }
708
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Project_List): Project_List {
262
+ internalBinaryRead(reader, length, options, target) {
709
263
  let message = target ?? this.create(), end = reader.pos + length;
710
264
  while (reader.pos < end) {
711
265
  let [fieldNo, wireType] = reader.tag();
@@ -724,7 +278,7 @@ class Project_List$Type extends MessageType<Project_List> {
724
278
  }
725
279
  return message;
726
280
  }
727
- internalBinaryWrite(message: Project_List, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
281
+ internalBinaryWrite(message, writer, options) {
728
282
  /* repeated snowballr.Project projects = 1; */
729
283
  for (let i = 0; i < message.projects.length; i++)
730
284
  Project.internalBinaryWrite(message.projects[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
@@ -739,20 +293,20 @@ class Project_List$Type extends MessageType<Project_List> {
739
293
  */
740
294
  export const Project_List = new Project_List$Type();
741
295
  // @generated message type with reflection information, may provide speed optimized methods
742
- class Project_Create$Type extends MessageType<Project_Create> {
296
+ class Project_Create$Type extends MessageType {
743
297
  constructor() {
744
298
  super("snowballr.Project.Create", [
745
299
  { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
746
300
  ]);
747
301
  }
748
- create(value?: PartialMessage<Project_Create>): Project_Create {
749
- const message = globalThis.Object.create((this.messagePrototype!));
302
+ create(value) {
303
+ const message = globalThis.Object.create((this.messagePrototype));
750
304
  message.name = "";
751
305
  if (value !== undefined)
752
- reflectionMergePartial<Project_Create>(this, message, value);
306
+ reflectionMergePartial(this, message, value);
753
307
  return message;
754
308
  }
755
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Project_Create): Project_Create {
309
+ internalBinaryRead(reader, length, options, target) {
756
310
  let message = target ?? this.create(), end = reader.pos + length;
757
311
  while (reader.pos < end) {
758
312
  let [fieldNo, wireType] = reader.tag();
@@ -771,7 +325,7 @@ class Project_Create$Type extends MessageType<Project_Create> {
771
325
  }
772
326
  return message;
773
327
  }
774
- internalBinaryWrite(message: Project_Create, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
328
+ internalBinaryWrite(message, writer, options) {
775
329
  /* string name = 1; */
776
330
  if (message.name !== "")
777
331
  writer.tag(1, WireType.LengthDelimited).string(message.name);
@@ -786,20 +340,20 @@ class Project_Create$Type extends MessageType<Project_Create> {
786
340
  */
787
341
  export const Project_Create = new Project_Create$Type();
788
342
  // @generated message type with reflection information, may provide speed optimized methods
789
- class Project_Update$Type extends MessageType<Project_Update> {
343
+ class Project_Update$Type extends MessageType {
790
344
  constructor() {
791
345
  super("snowballr.Project.Update", [
792
346
  { no: 1, name: "project", kind: "message", T: () => Project },
793
347
  { no: 2, name: "mask", kind: "message", T: () => FieldMask }
794
348
  ]);
795
349
  }
796
- create(value?: PartialMessage<Project_Update>): Project_Update {
797
- const message = globalThis.Object.create((this.messagePrototype!));
350
+ create(value) {
351
+ const message = globalThis.Object.create((this.messagePrototype));
798
352
  if (value !== undefined)
799
- reflectionMergePartial<Project_Update>(this, message, value);
353
+ reflectionMergePartial(this, message, value);
800
354
  return message;
801
355
  }
802
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Project_Update): Project_Update {
356
+ internalBinaryRead(reader, length, options, target) {
803
357
  let message = target ?? this.create(), end = reader.pos + length;
804
358
  while (reader.pos < end) {
805
359
  let [fieldNo, wireType] = reader.tag();
@@ -821,7 +375,7 @@ class Project_Update$Type extends MessageType<Project_Update> {
821
375
  }
822
376
  return message;
823
377
  }
824
- internalBinaryWrite(message: Project_Update, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
378
+ internalBinaryWrite(message, writer, options) {
825
379
  /* snowballr.Project project = 1; */
826
380
  if (message.project)
827
381
  Project.internalBinaryWrite(message.project, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
@@ -839,7 +393,7 @@ class Project_Update$Type extends MessageType<Project_Update> {
839
393
  */
840
394
  export const Project_Update = new Project_Update$Type();
841
395
  // @generated message type with reflection information, may provide speed optimized methods
842
- class Project_Information$Type extends MessageType<Project_Information> {
396
+ class Project_Information$Type extends MessageType {
843
397
  constructor() {
844
398
  super("snowballr.Project.Information", [
845
399
  { no: 1, name: "project_progress", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ },
@@ -847,14 +401,14 @@ class Project_Information$Type extends MessageType<Project_Information> {
847
401
  { no: 3, name: "last_stage_started", kind: "message", T: () => Timestamp }
848
402
  ]);
849
403
  }
850
- create(value?: PartialMessage<Project_Information>): Project_Information {
851
- const message = globalThis.Object.create((this.messagePrototype!));
404
+ create(value) {
405
+ const message = globalThis.Object.create((this.messagePrototype));
852
406
  message.projectProgress = 0;
853
407
  if (value !== undefined)
854
- reflectionMergePartial<Project_Information>(this, message, value);
408
+ reflectionMergePartial(this, message, value);
855
409
  return message;
856
410
  }
857
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Project_Information): Project_Information {
411
+ internalBinaryRead(reader, length, options, target) {
858
412
  let message = target ?? this.create(), end = reader.pos + length;
859
413
  while (reader.pos < end) {
860
414
  let [fieldNo, wireType] = reader.tag();
@@ -879,7 +433,7 @@ class Project_Information$Type extends MessageType<Project_Information> {
879
433
  }
880
434
  return message;
881
435
  }
882
- internalBinaryWrite(message: Project_Information, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
436
+ internalBinaryWrite(message, writer, options) {
883
437
  /* float project_progress = 1; */
884
438
  if (message.projectProgress !== 0)
885
439
  writer.tag(1, WireType.Bit32).float(message.projectProgress);
@@ -900,21 +454,21 @@ class Project_Information$Type extends MessageType<Project_Information> {
900
454
  */
901
455
  export const Project_Information = new Project_Information$Type();
902
456
  // @generated message type with reflection information, may provide speed optimized methods
903
- class Project_Information_Get$Type extends MessageType<Project_Information_Get> {
457
+ class Project_Information_Get$Type extends MessageType {
904
458
  constructor() {
905
459
  super("snowballr.Project.Information.Get", [
906
460
  { no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
907
461
  { no: 2, name: "mask", kind: "message", T: () => FieldMask }
908
462
  ]);
909
463
  }
910
- create(value?: PartialMessage<Project_Information_Get>): Project_Information_Get {
911
- const message = globalThis.Object.create((this.messagePrototype!));
464
+ create(value) {
465
+ const message = globalThis.Object.create((this.messagePrototype));
912
466
  message.projectId = "";
913
467
  if (value !== undefined)
914
- reflectionMergePartial<Project_Information_Get>(this, message, value);
468
+ reflectionMergePartial(this, message, value);
915
469
  return message;
916
470
  }
917
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Project_Information_Get): Project_Information_Get {
471
+ internalBinaryRead(reader, length, options, target) {
918
472
  let message = target ?? this.create(), end = reader.pos + length;
919
473
  while (reader.pos < end) {
920
474
  let [fieldNo, wireType] = reader.tag();
@@ -936,7 +490,7 @@ class Project_Information_Get$Type extends MessageType<Project_Information_Get>
936
490
  }
937
491
  return message;
938
492
  }
939
- internalBinaryWrite(message: Project_Information_Get, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
493
+ internalBinaryWrite(message, writer, options) {
940
494
  /* string project_id = 1; */
941
495
  if (message.projectId !== "")
942
496
  writer.tag(1, WireType.LengthDelimited).string(message.projectId);
@@ -954,20 +508,20 @@ class Project_Information_Get$Type extends MessageType<Project_Information_Get>
954
508
  */
955
509
  export const Project_Information_Get = new Project_Information_Get$Type();
956
510
  // @generated message type with reflection information, may provide speed optimized methods
957
- class Project_Information_DecisionStatistics$Type extends MessageType<Project_Information_DecisionStatistics> {
511
+ class Project_Information_DecisionStatistics$Type extends MessageType {
958
512
  constructor() {
959
513
  super("snowballr.Project.Information.DecisionStatistics", [
960
514
  { no: 1, name: "statistics", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Project_Information_DecisionStatistics_Statistic }
961
515
  ]);
962
516
  }
963
- create(value?: PartialMessage<Project_Information_DecisionStatistics>): Project_Information_DecisionStatistics {
964
- const message = globalThis.Object.create((this.messagePrototype!));
517
+ create(value) {
518
+ const message = globalThis.Object.create((this.messagePrototype));
965
519
  message.statistics = [];
966
520
  if (value !== undefined)
967
- reflectionMergePartial<Project_Information_DecisionStatistics>(this, message, value);
521
+ reflectionMergePartial(this, message, value);
968
522
  return message;
969
523
  }
970
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Project_Information_DecisionStatistics): Project_Information_DecisionStatistics {
524
+ internalBinaryRead(reader, length, options, target) {
971
525
  let message = target ?? this.create(), end = reader.pos + length;
972
526
  while (reader.pos < end) {
973
527
  let [fieldNo, wireType] = reader.tag();
@@ -986,7 +540,7 @@ class Project_Information_DecisionStatistics$Type extends MessageType<Project_In
986
540
  }
987
541
  return message;
988
542
  }
989
- internalBinaryWrite(message: Project_Information_DecisionStatistics, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
543
+ internalBinaryWrite(message, writer, options) {
990
544
  /* repeated snowballr.Project.Information.DecisionStatistics.Statistic statistics = 1; */
991
545
  for (let i = 0; i < message.statistics.length; i++)
992
546
  Project_Information_DecisionStatistics_Statistic.internalBinaryWrite(message.statistics[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
@@ -1001,22 +555,22 @@ class Project_Information_DecisionStatistics$Type extends MessageType<Project_In
1001
555
  */
1002
556
  export const Project_Information_DecisionStatistics = new Project_Information_DecisionStatistics$Type();
1003
557
  // @generated message type with reflection information, may provide speed optimized methods
1004
- class Project_Information_DecisionStatistics_Statistic$Type extends MessageType<Project_Information_DecisionStatistics_Statistic> {
558
+ class Project_Information_DecisionStatistics_Statistic$Type extends MessageType {
1005
559
  constructor() {
1006
560
  super("snowballr.Project.Information.DecisionStatistics.Statistic", [
1007
561
  { no: 1, name: "decision", kind: "enum", T: () => ["snowballr.PaperDecision", PaperDecision, "PAPER_DECISION_"] },
1008
562
  { no: 2, name: "count", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
1009
563
  ]);
1010
564
  }
1011
- create(value?: PartialMessage<Project_Information_DecisionStatistics_Statistic>): Project_Information_DecisionStatistics_Statistic {
1012
- const message = globalThis.Object.create((this.messagePrototype!));
565
+ create(value) {
566
+ const message = globalThis.Object.create((this.messagePrototype));
1013
567
  message.decision = 0;
1014
568
  message.count = 0n;
1015
569
  if (value !== undefined)
1016
- reflectionMergePartial<Project_Information_DecisionStatistics_Statistic>(this, message, value);
570
+ reflectionMergePartial(this, message, value);
1017
571
  return message;
1018
572
  }
1019
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Project_Information_DecisionStatistics_Statistic): Project_Information_DecisionStatistics_Statistic {
573
+ internalBinaryRead(reader, length, options, target) {
1020
574
  let message = target ?? this.create(), end = reader.pos + length;
1021
575
  while (reader.pos < end) {
1022
576
  let [fieldNo, wireType] = reader.tag();
@@ -1038,7 +592,7 @@ class Project_Information_DecisionStatistics_Statistic$Type extends MessageType<
1038
592
  }
1039
593
  return message;
1040
594
  }
1041
- internalBinaryWrite(message: Project_Information_DecisionStatistics_Statistic, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
595
+ internalBinaryWrite(message, writer, options) {
1042
596
  /* snowballr.PaperDecision decision = 1; */
1043
597
  if (message.decision !== 0)
1044
598
  writer.tag(1, WireType.Varint).int32(message.decision);
@@ -1056,22 +610,22 @@ class Project_Information_DecisionStatistics_Statistic$Type extends MessageType<
1056
610
  */
1057
611
  export const Project_Information_DecisionStatistics_Statistic = new Project_Information_DecisionStatistics_Statistic$Type();
1058
612
  // @generated message type with reflection information, may provide speed optimized methods
1059
- class Project_Information_DecisionStatistics_Get$Type extends MessageType<Project_Information_DecisionStatistics_Get> {
613
+ class Project_Information_DecisionStatistics_Get$Type extends MessageType {
1060
614
  constructor() {
1061
615
  super("snowballr.Project.Information.DecisionStatistics.Get", [
1062
616
  { no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1063
617
  { no: 2, name: "stage", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
1064
618
  ]);
1065
619
  }
1066
- create(value?: PartialMessage<Project_Information_DecisionStatistics_Get>): Project_Information_DecisionStatistics_Get {
1067
- const message = globalThis.Object.create((this.messagePrototype!));
620
+ create(value) {
621
+ const message = globalThis.Object.create((this.messagePrototype));
1068
622
  message.projectId = "";
1069
623
  message.stage = 0n;
1070
624
  if (value !== undefined)
1071
- reflectionMergePartial<Project_Information_DecisionStatistics_Get>(this, message, value);
625
+ reflectionMergePartial(this, message, value);
1072
626
  return message;
1073
627
  }
1074
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Project_Information_DecisionStatistics_Get): Project_Information_DecisionStatistics_Get {
628
+ internalBinaryRead(reader, length, options, target) {
1075
629
  let message = target ?? this.create(), end = reader.pos + length;
1076
630
  while (reader.pos < end) {
1077
631
  let [fieldNo, wireType] = reader.tag();
@@ -1093,7 +647,7 @@ class Project_Information_DecisionStatistics_Get$Type extends MessageType<Projec
1093
647
  }
1094
648
  return message;
1095
649
  }
1096
- internalBinaryWrite(message: Project_Information_DecisionStatistics_Get, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
650
+ internalBinaryWrite(message, writer, options) {
1097
651
  /* string project_id = 1; */
1098
652
  if (message.projectId !== "")
1099
653
  writer.tag(1, WireType.LengthDelimited).string(message.projectId);
@@ -1111,7 +665,7 @@ class Project_Information_DecisionStatistics_Get$Type extends MessageType<Projec
1111
665
  */
1112
666
  export const Project_Information_DecisionStatistics_Get = new Project_Information_DecisionStatistics_Get$Type();
1113
667
  // @generated message type with reflection information, may provide speed optimized methods
1114
- class Project_Settings$Type extends MessageType<Project_Settings> {
668
+ class Project_Settings$Type extends MessageType {
1115
669
  constructor() {
1116
670
  super("snowballr.Project.Settings", [
1117
671
  { no: 5, name: "similarity_threshold", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ },
@@ -1121,17 +675,17 @@ class Project_Settings$Type extends MessageType<Project_Settings> {
1121
675
  { no: 9, name: "review_maybe_allowed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
1122
676
  ]);
1123
677
  }
1124
- create(value?: PartialMessage<Project_Settings>): Project_Settings {
1125
- const message = globalThis.Object.create((this.messagePrototype!));
678
+ create(value) {
679
+ const message = globalThis.Object.create((this.messagePrototype));
1126
680
  message.similarityThreshold = 0;
1127
681
  message.fetchers = {};
1128
682
  message.snowballingType = 0;
1129
683
  message.reviewMaybeAllowed = false;
1130
684
  if (value !== undefined)
1131
- reflectionMergePartial<Project_Settings>(this, message, value);
685
+ reflectionMergePartial(this, message, value);
1132
686
  return message;
1133
687
  }
1134
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Project_Settings): Project_Settings {
688
+ internalBinaryRead(reader, length, options, target) {
1135
689
  let message = target ?? this.create(), end = reader.pos + length;
1136
690
  while (reader.pos < end) {
1137
691
  let [fieldNo, wireType] = reader.tag();
@@ -1162,8 +716,8 @@ class Project_Settings$Type extends MessageType<Project_Settings> {
1162
716
  }
1163
717
  return message;
1164
718
  }
1165
- private binaryReadMap7(map: Project_Settings["fetchers"], reader: IBinaryReader, options: BinaryReadOptions): void {
1166
- let len = reader.uint32(), end = reader.pos + len, key: keyof Project_Settings["fetchers"] | undefined, val: Project_Settings["fetchers"][any] | undefined;
719
+ binaryReadMap7(map, reader, options) {
720
+ let len = reader.uint32(), end = reader.pos + len, key, val;
1167
721
  while (reader.pos < end) {
1168
722
  let [fieldNo, wireType] = reader.tag();
1169
723
  switch (fieldNo) {
@@ -1178,7 +732,7 @@ class Project_Settings$Type extends MessageType<Project_Settings> {
1178
732
  }
1179
733
  map[key ?? ""] = val ?? FetcherOptions.create();
1180
734
  }
1181
- internalBinaryWrite(message: Project_Settings, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
735
+ internalBinaryWrite(message, writer, options) {
1182
736
  /* float similarity_threshold = 5; */
1183
737
  if (message.similarityThreshold !== 0)
1184
738
  writer.tag(5, WireType.Bit32).float(message.similarityThreshold);
@@ -1209,21 +763,21 @@ class Project_Settings$Type extends MessageType<Project_Settings> {
1209
763
  */
1210
764
  export const Project_Settings = new Project_Settings$Type();
1211
765
  // @generated message type with reflection information, may provide speed optimized methods
1212
- class Project_Member$Type extends MessageType<Project_Member> {
766
+ class Project_Member$Type extends MessageType {
1213
767
  constructor() {
1214
768
  super("snowballr.Project.Member", [
1215
769
  { no: 1, name: "user", kind: "message", T: () => User },
1216
770
  { no: 2, name: "role", kind: "enum", T: () => ["snowballr.MemberRole", MemberRole, "MEMBER_ROLE_"] }
1217
771
  ]);
1218
772
  }
1219
- create(value?: PartialMessage<Project_Member>): Project_Member {
1220
- const message = globalThis.Object.create((this.messagePrototype!));
773
+ create(value) {
774
+ const message = globalThis.Object.create((this.messagePrototype));
1221
775
  message.role = 0;
1222
776
  if (value !== undefined)
1223
- reflectionMergePartial<Project_Member>(this, message, value);
777
+ reflectionMergePartial(this, message, value);
1224
778
  return message;
1225
779
  }
1226
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Project_Member): Project_Member {
780
+ internalBinaryRead(reader, length, options, target) {
1227
781
  let message = target ?? this.create(), end = reader.pos + length;
1228
782
  while (reader.pos < end) {
1229
783
  let [fieldNo, wireType] = reader.tag();
@@ -1245,7 +799,7 @@ class Project_Member$Type extends MessageType<Project_Member> {
1245
799
  }
1246
800
  return message;
1247
801
  }
1248
- internalBinaryWrite(message: Project_Member, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
802
+ internalBinaryWrite(message, writer, options) {
1249
803
  /* snowballr.User user = 1; */
1250
804
  if (message.user)
1251
805
  User.internalBinaryWrite(message.user, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
@@ -1263,20 +817,20 @@ class Project_Member$Type extends MessageType<Project_Member> {
1263
817
  */
1264
818
  export const Project_Member = new Project_Member$Type();
1265
819
  // @generated message type with reflection information, may provide speed optimized methods
1266
- class Project_Member_List$Type extends MessageType<Project_Member_List> {
820
+ class Project_Member_List$Type extends MessageType {
1267
821
  constructor() {
1268
822
  super("snowballr.Project.Member.List", [
1269
823
  { no: 1, name: "members", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Project_Member }
1270
824
  ]);
1271
825
  }
1272
- create(value?: PartialMessage<Project_Member_List>): Project_Member_List {
1273
- const message = globalThis.Object.create((this.messagePrototype!));
826
+ create(value) {
827
+ const message = globalThis.Object.create((this.messagePrototype));
1274
828
  message.members = [];
1275
829
  if (value !== undefined)
1276
- reflectionMergePartial<Project_Member_List>(this, message, value);
830
+ reflectionMergePartial(this, message, value);
1277
831
  return message;
1278
832
  }
1279
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Project_Member_List): Project_Member_List {
833
+ internalBinaryRead(reader, length, options, target) {
1280
834
  let message = target ?? this.create(), end = reader.pos + length;
1281
835
  while (reader.pos < end) {
1282
836
  let [fieldNo, wireType] = reader.tag();
@@ -1295,7 +849,7 @@ class Project_Member_List$Type extends MessageType<Project_Member_List> {
1295
849
  }
1296
850
  return message;
1297
851
  }
1298
- internalBinaryWrite(message: Project_Member_List, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
852
+ internalBinaryWrite(message, writer, options) {
1299
853
  /* repeated snowballr.Project.Member members = 1; */
1300
854
  for (let i = 0; i < message.members.length; i++)
1301
855
  Project_Member.internalBinaryWrite(message.members[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
@@ -1310,22 +864,22 @@ class Project_Member_List$Type extends MessageType<Project_Member_List> {
1310
864
  */
1311
865
  export const Project_Member_List = new Project_Member_List$Type();
1312
866
  // @generated message type with reflection information, may provide speed optimized methods
1313
- class Project_Member_Invite$Type extends MessageType<Project_Member_Invite> {
867
+ class Project_Member_Invite$Type extends MessageType {
1314
868
  constructor() {
1315
869
  super("snowballr.Project.Member.Invite", [
1316
870
  { no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1317
871
  { no: 2, name: "user_email", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1318
872
  ]);
1319
873
  }
1320
- create(value?: PartialMessage<Project_Member_Invite>): Project_Member_Invite {
1321
- const message = globalThis.Object.create((this.messagePrototype!));
874
+ create(value) {
875
+ const message = globalThis.Object.create((this.messagePrototype));
1322
876
  message.projectId = "";
1323
877
  message.userEmail = "";
1324
878
  if (value !== undefined)
1325
- reflectionMergePartial<Project_Member_Invite>(this, message, value);
879
+ reflectionMergePartial(this, message, value);
1326
880
  return message;
1327
881
  }
1328
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Project_Member_Invite): Project_Member_Invite {
882
+ internalBinaryRead(reader, length, options, target) {
1329
883
  let message = target ?? this.create(), end = reader.pos + length;
1330
884
  while (reader.pos < end) {
1331
885
  let [fieldNo, wireType] = reader.tag();
@@ -1347,7 +901,7 @@ class Project_Member_Invite$Type extends MessageType<Project_Member_Invite> {
1347
901
  }
1348
902
  return message;
1349
903
  }
1350
- internalBinaryWrite(message: Project_Member_Invite, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
904
+ internalBinaryWrite(message, writer, options) {
1351
905
  /* string project_id = 1; */
1352
906
  if (message.projectId !== "")
1353
907
  writer.tag(1, WireType.LengthDelimited).string(message.projectId);
@@ -1365,20 +919,20 @@ class Project_Member_Invite$Type extends MessageType<Project_Member_Invite> {
1365
919
  */
1366
920
  export const Project_Member_Invite = new Project_Member_Invite$Type();
1367
921
  // @generated message type with reflection information, may provide speed optimized methods
1368
- class Project_Member_Accept$Type extends MessageType<Project_Member_Accept> {
922
+ class Project_Member_Accept$Type extends MessageType {
1369
923
  constructor() {
1370
924
  super("snowballr.Project.Member.Accept", [
1371
925
  { no: 1, name: "token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1372
926
  ]);
1373
927
  }
1374
- create(value?: PartialMessage<Project_Member_Accept>): Project_Member_Accept {
1375
- const message = globalThis.Object.create((this.messagePrototype!));
928
+ create(value) {
929
+ const message = globalThis.Object.create((this.messagePrototype));
1376
930
  message.token = "";
1377
931
  if (value !== undefined)
1378
- reflectionMergePartial<Project_Member_Accept>(this, message, value);
932
+ reflectionMergePartial(this, message, value);
1379
933
  return message;
1380
934
  }
1381
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Project_Member_Accept): Project_Member_Accept {
935
+ internalBinaryRead(reader, length, options, target) {
1382
936
  let message = target ?? this.create(), end = reader.pos + length;
1383
937
  while (reader.pos < end) {
1384
938
  let [fieldNo, wireType] = reader.tag();
@@ -1397,7 +951,7 @@ class Project_Member_Accept$Type extends MessageType<Project_Member_Accept> {
1397
951
  }
1398
952
  return message;
1399
953
  }
1400
- internalBinaryWrite(message: Project_Member_Accept, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
954
+ internalBinaryWrite(message, writer, options) {
1401
955
  /* string token = 1; */
1402
956
  if (message.token !== "")
1403
957
  writer.tag(1, WireType.LengthDelimited).string(message.token);
@@ -1412,22 +966,22 @@ class Project_Member_Accept$Type extends MessageType<Project_Member_Accept> {
1412
966
  */
1413
967
  export const Project_Member_Accept = new Project_Member_Accept$Type();
1414
968
  // @generated message type with reflection information, may provide speed optimized methods
1415
- class Project_Member_Remove$Type extends MessageType<Project_Member_Remove> {
969
+ class Project_Member_Remove$Type extends MessageType {
1416
970
  constructor() {
1417
971
  super("snowballr.Project.Member.Remove", [
1418
972
  { no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1419
973
  { no: 3, name: "user_email", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1420
974
  ]);
1421
975
  }
1422
- create(value?: PartialMessage<Project_Member_Remove>): Project_Member_Remove {
1423
- const message = globalThis.Object.create((this.messagePrototype!));
976
+ create(value) {
977
+ const message = globalThis.Object.create((this.messagePrototype));
1424
978
  message.projectId = "";
1425
979
  message.userEmail = "";
1426
980
  if (value !== undefined)
1427
- reflectionMergePartial<Project_Member_Remove>(this, message, value);
981
+ reflectionMergePartial(this, message, value);
1428
982
  return message;
1429
983
  }
1430
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Project_Member_Remove): Project_Member_Remove {
984
+ internalBinaryRead(reader, length, options, target) {
1431
985
  let message = target ?? this.create(), end = reader.pos + length;
1432
986
  while (reader.pos < end) {
1433
987
  let [fieldNo, wireType] = reader.tag();
@@ -1449,7 +1003,7 @@ class Project_Member_Remove$Type extends MessageType<Project_Member_Remove> {
1449
1003
  }
1450
1004
  return message;
1451
1005
  }
1452
- internalBinaryWrite(message: Project_Member_Remove, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1006
+ internalBinaryWrite(message, writer, options) {
1453
1007
  /* string project_id = 1; */
1454
1008
  if (message.projectId !== "")
1455
1009
  writer.tag(1, WireType.LengthDelimited).string(message.projectId);
@@ -1467,7 +1021,7 @@ class Project_Member_Remove$Type extends MessageType<Project_Member_Remove> {
1467
1021
  */
1468
1022
  export const Project_Member_Remove = new Project_Member_Remove$Type();
1469
1023
  // @generated message type with reflection information, may provide speed optimized methods
1470
- class Project_Member_Update$Type extends MessageType<Project_Member_Update> {
1024
+ class Project_Member_Update$Type extends MessageType {
1471
1025
  constructor() {
1472
1026
  super("snowballr.Project.Member.Update", [
1473
1027
  { no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
@@ -1475,16 +1029,16 @@ class Project_Member_Update$Type extends MessageType<Project_Member_Update> {
1475
1029
  { no: 3, name: "new_role", kind: "enum", T: () => ["snowballr.MemberRole", MemberRole, "MEMBER_ROLE_"] }
1476
1030
  ]);
1477
1031
  }
1478
- create(value?: PartialMessage<Project_Member_Update>): Project_Member_Update {
1479
- const message = globalThis.Object.create((this.messagePrototype!));
1032
+ create(value) {
1033
+ const message = globalThis.Object.create((this.messagePrototype));
1480
1034
  message.projectId = "";
1481
1035
  message.userId = "";
1482
1036
  message.newRole = 0;
1483
1037
  if (value !== undefined)
1484
- reflectionMergePartial<Project_Member_Update>(this, message, value);
1038
+ reflectionMergePartial(this, message, value);
1485
1039
  return message;
1486
1040
  }
1487
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Project_Member_Update): Project_Member_Update {
1041
+ internalBinaryRead(reader, length, options, target) {
1488
1042
  let message = target ?? this.create(), end = reader.pos + length;
1489
1043
  while (reader.pos < end) {
1490
1044
  let [fieldNo, wireType] = reader.tag();
@@ -1509,7 +1063,7 @@ class Project_Member_Update$Type extends MessageType<Project_Member_Update> {
1509
1063
  }
1510
1064
  return message;
1511
1065
  }
1512
- internalBinaryWrite(message: Project_Member_Update, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1066
+ internalBinaryWrite(message, writer, options) {
1513
1067
  /* string project_id = 1; */
1514
1068
  if (message.projectId !== "")
1515
1069
  writer.tag(1, WireType.LengthDelimited).string(message.projectId);
@@ -1530,22 +1084,22 @@ class Project_Member_Update$Type extends MessageType<Project_Member_Update> {
1530
1084
  */
1531
1085
  export const Project_Member_Update = new Project_Member_Update$Type();
1532
1086
  // @generated message type with reflection information, may provide speed optimized methods
1533
- class Project_InviteCandidatesRequest$Type extends MessageType<Project_InviteCandidatesRequest> {
1087
+ class Project_InviteCandidatesRequest$Type extends MessageType {
1534
1088
  constructor() {
1535
1089
  super("snowballr.Project.InviteCandidatesRequest", [
1536
1090
  { no: 1, name: "query", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1537
1091
  { no: 2, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1538
1092
  ]);
1539
1093
  }
1540
- create(value?: PartialMessage<Project_InviteCandidatesRequest>): Project_InviteCandidatesRequest {
1541
- const message = globalThis.Object.create((this.messagePrototype!));
1094
+ create(value) {
1095
+ const message = globalThis.Object.create((this.messagePrototype));
1542
1096
  message.query = "";
1543
1097
  message.projectId = "";
1544
1098
  if (value !== undefined)
1545
- reflectionMergePartial<Project_InviteCandidatesRequest>(this, message, value);
1099
+ reflectionMergePartial(this, message, value);
1546
1100
  return message;
1547
1101
  }
1548
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Project_InviteCandidatesRequest): Project_InviteCandidatesRequest {
1102
+ internalBinaryRead(reader, length, options, target) {
1549
1103
  let message = target ?? this.create(), end = reader.pos + length;
1550
1104
  while (reader.pos < end) {
1551
1105
  let [fieldNo, wireType] = reader.tag();
@@ -1567,7 +1121,7 @@ class Project_InviteCandidatesRequest$Type extends MessageType<Project_InviteCan
1567
1121
  }
1568
1122
  return message;
1569
1123
  }
1570
- internalBinaryWrite(message: Project_InviteCandidatesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1124
+ internalBinaryWrite(message, writer, options) {
1571
1125
  /* string query = 1; */
1572
1126
  if (message.query !== "")
1573
1127
  writer.tag(1, WireType.LengthDelimited).string(message.query);
@@ -1585,7 +1139,7 @@ class Project_InviteCandidatesRequest$Type extends MessageType<Project_InviteCan
1585
1139
  */
1586
1140
  export const Project_InviteCandidatesRequest = new Project_InviteCandidatesRequest$Type();
1587
1141
  // @generated message type with reflection information, may provide speed optimized methods
1588
- class Project_Paper$Type extends MessageType<Project_Paper> {
1142
+ class Project_Paper$Type extends MessageType {
1589
1143
  constructor() {
1590
1144
  super("snowballr.Project.Paper", [
1591
1145
  { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
@@ -1596,18 +1150,18 @@ class Project_Paper$Type extends MessageType<Project_Paper> {
1596
1150
  { no: 6, name: "local_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1597
1151
  ]);
1598
1152
  }
1599
- create(value?: PartialMessage<Project_Paper>): Project_Paper {
1600
- const message = globalThis.Object.create((this.messagePrototype!));
1153
+ create(value) {
1154
+ const message = globalThis.Object.create((this.messagePrototype));
1601
1155
  message.id = "";
1602
1156
  message.stage = 0n;
1603
1157
  message.decision = 0;
1604
1158
  message.reviews = [];
1605
1159
  message.localId = "";
1606
1160
  if (value !== undefined)
1607
- reflectionMergePartial<Project_Paper>(this, message, value);
1161
+ reflectionMergePartial(this, message, value);
1608
1162
  return message;
1609
1163
  }
1610
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Project_Paper): Project_Paper {
1164
+ internalBinaryRead(reader, length, options, target) {
1611
1165
  let message = target ?? this.create(), end = reader.pos + length;
1612
1166
  while (reader.pos < end) {
1613
1167
  let [fieldNo, wireType] = reader.tag();
@@ -1641,7 +1195,7 @@ class Project_Paper$Type extends MessageType<Project_Paper> {
1641
1195
  }
1642
1196
  return message;
1643
1197
  }
1644
- internalBinaryWrite(message: Project_Paper, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1198
+ internalBinaryWrite(message, writer, options) {
1645
1199
  /* string id = 1; */
1646
1200
  if (message.id !== "")
1647
1201
  writer.tag(1, WireType.LengthDelimited).string(message.id);
@@ -1671,22 +1225,22 @@ class Project_Paper$Type extends MessageType<Project_Paper> {
1671
1225
  */
1672
1226
  export const Project_Paper = new Project_Paper$Type();
1673
1227
  // @generated message type with reflection information, may provide speed optimized methods
1674
- class Project_Paper_Get$Type extends MessageType<Project_Paper_Get> {
1228
+ class Project_Paper_Get$Type extends MessageType {
1675
1229
  constructor() {
1676
1230
  super("snowballr.Project.Paper.Get", [
1677
1231
  { no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1678
1232
  { no: 2, name: "relative_project_paper_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1679
1233
  ]);
1680
1234
  }
1681
- create(value?: PartialMessage<Project_Paper_Get>): Project_Paper_Get {
1682
- const message = globalThis.Object.create((this.messagePrototype!));
1235
+ create(value) {
1236
+ const message = globalThis.Object.create((this.messagePrototype));
1683
1237
  message.projectId = "";
1684
1238
  message.relativeProjectPaperId = "";
1685
1239
  if (value !== undefined)
1686
- reflectionMergePartial<Project_Paper_Get>(this, message, value);
1240
+ reflectionMergePartial(this, message, value);
1687
1241
  return message;
1688
1242
  }
1689
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Project_Paper_Get): Project_Paper_Get {
1243
+ internalBinaryRead(reader, length, options, target) {
1690
1244
  let message = target ?? this.create(), end = reader.pos + length;
1691
1245
  while (reader.pos < end) {
1692
1246
  let [fieldNo, wireType] = reader.tag();
@@ -1708,7 +1262,7 @@ class Project_Paper_Get$Type extends MessageType<Project_Paper_Get> {
1708
1262
  }
1709
1263
  return message;
1710
1264
  }
1711
- internalBinaryWrite(message: Project_Paper_Get, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1265
+ internalBinaryWrite(message, writer, options) {
1712
1266
  /* string project_id = 1; */
1713
1267
  if (message.projectId !== "")
1714
1268
  writer.tag(1, WireType.LengthDelimited).string(message.projectId);
@@ -1726,20 +1280,20 @@ class Project_Paper_Get$Type extends MessageType<Project_Paper_Get> {
1726
1280
  */
1727
1281
  export const Project_Paper_Get = new Project_Paper_Get$Type();
1728
1282
  // @generated message type with reflection information, may provide speed optimized methods
1729
- class Project_Paper_List$Type extends MessageType<Project_Paper_List> {
1283
+ class Project_Paper_List$Type extends MessageType {
1730
1284
  constructor() {
1731
1285
  super("snowballr.Project.Paper.List", [
1732
1286
  { no: 1, name: "project_papers", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Project_Paper }
1733
1287
  ]);
1734
1288
  }
1735
- create(value?: PartialMessage<Project_Paper_List>): Project_Paper_List {
1736
- const message = globalThis.Object.create((this.messagePrototype!));
1289
+ create(value) {
1290
+ const message = globalThis.Object.create((this.messagePrototype));
1737
1291
  message.projectPapers = [];
1738
1292
  if (value !== undefined)
1739
- reflectionMergePartial<Project_Paper_List>(this, message, value);
1293
+ reflectionMergePartial(this, message, value);
1740
1294
  return message;
1741
1295
  }
1742
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Project_Paper_List): Project_Paper_List {
1296
+ internalBinaryRead(reader, length, options, target) {
1743
1297
  let message = target ?? this.create(), end = reader.pos + length;
1744
1298
  while (reader.pos < end) {
1745
1299
  let [fieldNo, wireType] = reader.tag();
@@ -1758,7 +1312,7 @@ class Project_Paper_List$Type extends MessageType<Project_Paper_List> {
1758
1312
  }
1759
1313
  return message;
1760
1314
  }
1761
- internalBinaryWrite(message: Project_Paper_List, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1315
+ internalBinaryWrite(message, writer, options) {
1762
1316
  /* repeated snowballr.Project.Paper project_papers = 1; */
1763
1317
  for (let i = 0; i < message.projectPapers.length; i++)
1764
1318
  Project_Paper.internalBinaryWrite(message.projectPapers[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
@@ -1773,7 +1327,7 @@ class Project_Paper_List$Type extends MessageType<Project_Paper_List> {
1773
1327
  */
1774
1328
  export const Project_Paper_List = new Project_Paper_List$Type();
1775
1329
  // @generated message type with reflection information, may provide speed optimized methods
1776
- class Project_Paper_Add$Type extends MessageType<Project_Paper_Add> {
1330
+ class Project_Paper_Add$Type extends MessageType {
1777
1331
  constructor() {
1778
1332
  super("snowballr.Project.Paper.Add", [
1779
1333
  { no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
@@ -1781,16 +1335,16 @@ class Project_Paper_Add$Type extends MessageType<Project_Paper_Add> {
1781
1335
  { no: 3, name: "paper_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1782
1336
  ]);
1783
1337
  }
1784
- create(value?: PartialMessage<Project_Paper_Add>): Project_Paper_Add {
1785
- const message = globalThis.Object.create((this.messagePrototype!));
1338
+ create(value) {
1339
+ const message = globalThis.Object.create((this.messagePrototype));
1786
1340
  message.projectId = "";
1787
1341
  message.stage = 0n;
1788
1342
  message.paperId = "";
1789
1343
  if (value !== undefined)
1790
- reflectionMergePartial<Project_Paper_Add>(this, message, value);
1344
+ reflectionMergePartial(this, message, value);
1791
1345
  return message;
1792
1346
  }
1793
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Project_Paper_Add): Project_Paper_Add {
1347
+ internalBinaryRead(reader, length, options, target) {
1794
1348
  let message = target ?? this.create(), end = reader.pos + length;
1795
1349
  while (reader.pos < end) {
1796
1350
  let [fieldNo, wireType] = reader.tag();
@@ -1815,7 +1369,7 @@ class Project_Paper_Add$Type extends MessageType<Project_Paper_Add> {
1815
1369
  }
1816
1370
  return message;
1817
1371
  }
1818
- internalBinaryWrite(message: Project_Paper_Add, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1372
+ internalBinaryWrite(message, writer, options) {
1819
1373
  /* string project_id = 1; */
1820
1374
  if (message.projectId !== "")
1821
1375
  writer.tag(1, WireType.LengthDelimited).string(message.projectId);
@@ -1836,20 +1390,20 @@ class Project_Paper_Add$Type extends MessageType<Project_Paper_Add> {
1836
1390
  */
1837
1391
  export const Project_Paper_Add = new Project_Paper_Add$Type();
1838
1392
  // @generated message type with reflection information, may provide speed optimized methods
1839
- class Project_Paper_Update$Type extends MessageType<Project_Paper_Update> {
1393
+ class Project_Paper_Update$Type extends MessageType {
1840
1394
  constructor() {
1841
1395
  super("snowballr.Project.Paper.Update", [
1842
1396
  { no: 1, name: "project_paper", kind: "message", T: () => Project_Paper },
1843
1397
  { no: 2, name: "mask", kind: "message", T: () => FieldMask }
1844
1398
  ]);
1845
1399
  }
1846
- create(value?: PartialMessage<Project_Paper_Update>): Project_Paper_Update {
1847
- const message = globalThis.Object.create((this.messagePrototype!));
1400
+ create(value) {
1401
+ const message = globalThis.Object.create((this.messagePrototype));
1848
1402
  if (value !== undefined)
1849
- reflectionMergePartial<Project_Paper_Update>(this, message, value);
1403
+ reflectionMergePartial(this, message, value);
1850
1404
  return message;
1851
1405
  }
1852
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Project_Paper_Update): Project_Paper_Update {
1406
+ internalBinaryRead(reader, length, options, target) {
1853
1407
  let message = target ?? this.create(), end = reader.pos + length;
1854
1408
  while (reader.pos < end) {
1855
1409
  let [fieldNo, wireType] = reader.tag();
@@ -1871,7 +1425,7 @@ class Project_Paper_Update$Type extends MessageType<Project_Paper_Update> {
1871
1425
  }
1872
1426
  return message;
1873
1427
  }
1874
- internalBinaryWrite(message: Project_Paper_Update, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1428
+ internalBinaryWrite(message, writer, options) {
1875
1429
  /* snowballr.Project.Paper project_paper = 1; */
1876
1430
  if (message.projectPaper)
1877
1431
  Project_Paper.internalBinaryWrite(message.projectPaper, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
@@ -1889,22 +1443,22 @@ class Project_Paper_Update$Type extends MessageType<Project_Paper_Update> {
1889
1443
  */
1890
1444
  export const Project_Paper_Update = new Project_Paper_Update$Type();
1891
1445
  // @generated message type with reflection information, may provide speed optimized methods
1892
- class Project_Paper_SearchQuery$Type extends MessageType<Project_Paper_SearchQuery> {
1446
+ class Project_Paper_SearchQuery$Type extends MessageType {
1893
1447
  constructor() {
1894
1448
  super("snowballr.Project.Paper.SearchQuery", [
1895
1449
  { no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1896
1450
  { no: 2, name: "query", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1897
1451
  ]);
1898
1452
  }
1899
- create(value?: PartialMessage<Project_Paper_SearchQuery>): Project_Paper_SearchQuery {
1900
- const message = globalThis.Object.create((this.messagePrototype!));
1453
+ create(value) {
1454
+ const message = globalThis.Object.create((this.messagePrototype));
1901
1455
  message.projectId = "";
1902
1456
  message.query = "";
1903
1457
  if (value !== undefined)
1904
- reflectionMergePartial<Project_Paper_SearchQuery>(this, message, value);
1458
+ reflectionMergePartial(this, message, value);
1905
1459
  return message;
1906
1460
  }
1907
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Project_Paper_SearchQuery): Project_Paper_SearchQuery {
1461
+ internalBinaryRead(reader, length, options, target) {
1908
1462
  let message = target ?? this.create(), end = reader.pos + length;
1909
1463
  while (reader.pos < end) {
1910
1464
  let [fieldNo, wireType] = reader.tag();
@@ -1926,7 +1480,7 @@ class Project_Paper_SearchQuery$Type extends MessageType<Project_Paper_SearchQue
1926
1480
  }
1927
1481
  return message;
1928
1482
  }
1929
- internalBinaryWrite(message: Project_Paper_SearchQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1483
+ internalBinaryWrite(message, writer, options) {
1930
1484
  /* string project_id = 1; */
1931
1485
  if (message.projectId !== "")
1932
1486
  writer.tag(1, WireType.LengthDelimited).string(message.projectId);
@@ -1944,22 +1498,22 @@ class Project_Paper_SearchQuery$Type extends MessageType<Project_Paper_SearchQue
1944
1498
  */
1945
1499
  export const Project_Paper_SearchQuery = new Project_Paper_SearchQuery$Type();
1946
1500
  // @generated message type with reflection information, may provide speed optimized methods
1947
- class ReviewDecisionMatrix$Type extends MessageType<ReviewDecisionMatrix> {
1501
+ class ReviewDecisionMatrix$Type extends MessageType {
1948
1502
  constructor() {
1949
1503
  super("snowballr.ReviewDecisionMatrix", [
1950
1504
  { no: 1, name: "number_of_reviewers", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
1951
1505
  { no: 2, name: "patterns", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ReviewDecisionMatrix_Pattern }
1952
1506
  ]);
1953
1507
  }
1954
- create(value?: PartialMessage<ReviewDecisionMatrix>): ReviewDecisionMatrix {
1955
- const message = globalThis.Object.create((this.messagePrototype!));
1508
+ create(value) {
1509
+ const message = globalThis.Object.create((this.messagePrototype));
1956
1510
  message.numberOfReviewers = 0;
1957
1511
  message.patterns = [];
1958
1512
  if (value !== undefined)
1959
- reflectionMergePartial<ReviewDecisionMatrix>(this, message, value);
1513
+ reflectionMergePartial(this, message, value);
1960
1514
  return message;
1961
1515
  }
1962
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ReviewDecisionMatrix): ReviewDecisionMatrix {
1516
+ internalBinaryRead(reader, length, options, target) {
1963
1517
  let message = target ?? this.create(), end = reader.pos + length;
1964
1518
  while (reader.pos < end) {
1965
1519
  let [fieldNo, wireType] = reader.tag();
@@ -1981,7 +1535,7 @@ class ReviewDecisionMatrix$Type extends MessageType<ReviewDecisionMatrix> {
1981
1535
  }
1982
1536
  return message;
1983
1537
  }
1984
- internalBinaryWrite(message: ReviewDecisionMatrix, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1538
+ internalBinaryWrite(message, writer, options) {
1985
1539
  /* uint32 number_of_reviewers = 1; */
1986
1540
  if (message.numberOfReviewers !== 0)
1987
1541
  writer.tag(1, WireType.Varint).uint32(message.numberOfReviewers);
@@ -1999,22 +1553,22 @@ class ReviewDecisionMatrix$Type extends MessageType<ReviewDecisionMatrix> {
1999
1553
  */
2000
1554
  export const ReviewDecisionMatrix = new ReviewDecisionMatrix$Type();
2001
1555
  // @generated message type with reflection information, may provide speed optimized methods
2002
- class ReviewDecisionMatrix_Pattern$Type extends MessageType<ReviewDecisionMatrix_Pattern> {
1556
+ class ReviewDecisionMatrix_Pattern$Type extends MessageType {
2003
1557
  constructor() {
2004
1558
  super("snowballr.ReviewDecisionMatrix.Pattern", [
2005
1559
  { no: 1, name: "entries", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ReviewDecisionMatrix_Pattern_Entry },
2006
1560
  { no: 2, name: "decision", kind: "enum", T: () => ["snowballr.PaperDecision", PaperDecision, "PAPER_DECISION_"] }
2007
1561
  ]);
2008
1562
  }
2009
- create(value?: PartialMessage<ReviewDecisionMatrix_Pattern>): ReviewDecisionMatrix_Pattern {
2010
- const message = globalThis.Object.create((this.messagePrototype!));
1563
+ create(value) {
1564
+ const message = globalThis.Object.create((this.messagePrototype));
2011
1565
  message.entries = [];
2012
1566
  message.decision = 0;
2013
1567
  if (value !== undefined)
2014
- reflectionMergePartial<ReviewDecisionMatrix_Pattern>(this, message, value);
1568
+ reflectionMergePartial(this, message, value);
2015
1569
  return message;
2016
1570
  }
2017
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ReviewDecisionMatrix_Pattern): ReviewDecisionMatrix_Pattern {
1571
+ internalBinaryRead(reader, length, options, target) {
2018
1572
  let message = target ?? this.create(), end = reader.pos + length;
2019
1573
  while (reader.pos < end) {
2020
1574
  let [fieldNo, wireType] = reader.tag();
@@ -2036,7 +1590,7 @@ class ReviewDecisionMatrix_Pattern$Type extends MessageType<ReviewDecisionMatrix
2036
1590
  }
2037
1591
  return message;
2038
1592
  }
2039
- internalBinaryWrite(message: ReviewDecisionMatrix_Pattern, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1593
+ internalBinaryWrite(message, writer, options) {
2040
1594
  /* repeated snowballr.ReviewDecisionMatrix.Pattern.Entry entries = 1; */
2041
1595
  for (let i = 0; i < message.entries.length; i++)
2042
1596
  ReviewDecisionMatrix_Pattern_Entry.internalBinaryWrite(message.entries[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
@@ -2054,22 +1608,22 @@ class ReviewDecisionMatrix_Pattern$Type extends MessageType<ReviewDecisionMatrix
2054
1608
  */
2055
1609
  export const ReviewDecisionMatrix_Pattern = new ReviewDecisionMatrix_Pattern$Type();
2056
1610
  // @generated message type with reflection information, may provide speed optimized methods
2057
- class ReviewDecisionMatrix_Pattern_Entry$Type extends MessageType<ReviewDecisionMatrix_Pattern_Entry> {
1611
+ class ReviewDecisionMatrix_Pattern_Entry$Type extends MessageType {
2058
1612
  constructor() {
2059
1613
  super("snowballr.ReviewDecisionMatrix.Pattern.Entry", [
2060
1614
  { no: 1, name: "review_decision", kind: "enum", T: () => ["snowballr.ReviewDecision", ReviewDecision, "REVIEW_DECISION_"] },
2061
1615
  { no: 2, name: "count", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
2062
1616
  ]);
2063
1617
  }
2064
- create(value?: PartialMessage<ReviewDecisionMatrix_Pattern_Entry>): ReviewDecisionMatrix_Pattern_Entry {
2065
- const message = globalThis.Object.create((this.messagePrototype!));
1618
+ create(value) {
1619
+ const message = globalThis.Object.create((this.messagePrototype));
2066
1620
  message.reviewDecision = 0;
2067
1621
  message.count = 0n;
2068
1622
  if (value !== undefined)
2069
- reflectionMergePartial<ReviewDecisionMatrix_Pattern_Entry>(this, message, value);
1623
+ reflectionMergePartial(this, message, value);
2070
1624
  return message;
2071
1625
  }
2072
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ReviewDecisionMatrix_Pattern_Entry): ReviewDecisionMatrix_Pattern_Entry {
1626
+ internalBinaryRead(reader, length, options, target) {
2073
1627
  let message = target ?? this.create(), end = reader.pos + length;
2074
1628
  while (reader.pos < end) {
2075
1629
  let [fieldNo, wireType] = reader.tag();
@@ -2091,7 +1645,7 @@ class ReviewDecisionMatrix_Pattern_Entry$Type extends MessageType<ReviewDecision
2091
1645
  }
2092
1646
  return message;
2093
1647
  }
2094
- internalBinaryWrite(message: ReviewDecisionMatrix_Pattern_Entry, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1648
+ internalBinaryWrite(message, writer, options) {
2095
1649
  /* snowballr.ReviewDecision review_decision = 1; */
2096
1650
  if (message.reviewDecision !== 0)
2097
1651
  writer.tag(1, WireType.Varint).int32(message.reviewDecision);