@fivenet-app/gen 2026.8.0 → 2026.10.2

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.
Files changed (83) hide show
  1. package/LICENSE +201 -0
  2. package/clients.ts +12 -0
  3. package/codegen/perms/perms.ts +331 -2
  4. package/google/protobuf/any.ts +47 -103
  5. package/google/protobuf/descriptor.ts +28 -29
  6. package/google/protobuf/struct.ts +33 -22
  7. package/google/protobuf/timestamp.ts +3 -3
  8. package/package.json +2 -2
  9. package/perms.ts +58 -17
  10. package/resources/calendar/calendar.ts +11 -0
  11. package/resources/calendar/entries/entries.ts +23 -0
  12. package/resources/centrum/dispatches/dispatches.ts +214 -21
  13. package/resources/centrum/units/units.ts +212 -5
  14. package/resources/citizens/labels/access.ts +10 -6
  15. package/resources/cron/cron.ts +44 -3
  16. package/resources/dbsync/state.ts +192 -0
  17. package/resources/documents/stamps/access.ts +25 -0
  18. package/resources/documents/stamps/stamp.ts +0 -21
  19. package/resources/documents/templates/templates.ts +63 -61
  20. package/resources/documents/workflow/workflow.ts +61 -1
  21. package/resources/file/file.ts +3 -3
  22. package/resources/file/filestore.ts +26 -10
  23. package/resources/jobs/colleagues/activity/activity.ts +50 -8
  24. package/resources/jobs/colleagues/colleagues.ts +14 -1
  25. package/resources/jobs/groups/access/access.ts +29 -0
  26. package/resources/jobs/groups/activity.ts +332 -0
  27. package/resources/jobs/groups/group.ts +1666 -0
  28. package/resources/jobs/groups/short/group_member_short.ts +129 -0
  29. package/resources/jobs/job_asset.ts +116 -0
  30. package/resources/jobs/user_selector.ts +170 -0
  31. package/resources/notifications/clientview/clientview.ts +5 -1
  32. package/resources/notifications/events/events.ts +35 -1
  33. package/resources/notifications/notifications.ts +322 -2
  34. package/resources/permissions/attributes/attributes.ts +164 -2
  35. package/resources/permissions/authorization/authorization.ts +86 -0
  36. package/resources/permissions/permissions/permissions.ts +16 -1
  37. package/resources/properties/properties.ts +1648 -0
  38. package/resources/qualifications/activity/activity.ts +328 -0
  39. package/resources/qualifications/exam/exam.ts +108 -4
  40. package/resources/qualifications/qualifications.ts +36 -2
  41. package/resources/settings/config.ts +3 -3
  42. package/resources/settings/status.ts +197 -105
  43. package/resources/sync/activity/activity.ts +4 -4
  44. package/resources/sync/data/data.ts +16 -4
  45. package/resources/users/activity/activity.ts +220 -3
  46. package/resources/users/props/props.ts +13 -1
  47. package/resources/users/user.ts +13 -1
  48. package/resources/vehicles/activity/activity.ts +222 -3
  49. package/resources/vehicles/props/props.ts +13 -1
  50. package/resources/vehicles/vehicles.ts +13 -1
  51. package/services/auth/auth.ts +61 -67
  52. package/services/calendar/calendar.ts +1 -1
  53. package/services/calendar/entries.ts +3 -3
  54. package/services/centrum/centrum.ts +103 -1
  55. package/services/centrum/dispatches.ts +25 -1
  56. package/services/centrum/units.ts +28 -4
  57. package/services/citizens/citizens.client.ts +49 -0
  58. package/services/citizens/citizens.ts +384 -7
  59. package/services/completor/completor.ts +2 -2
  60. package/services/documents/approval.ts +2 -2
  61. package/services/documents/documents.ts +10 -9
  62. package/services/documents/templates.ts +24 -13
  63. package/services/jobs/colleagues.client.ts +34 -8
  64. package/services/jobs/colleagues.ts +289 -75
  65. package/services/jobs/conduct.ts +12 -19
  66. package/services/jobs/groups.client.ts +311 -0
  67. package/services/jobs/groups.ts +3654 -1
  68. package/services/jobs/timeclock.ts +30 -27
  69. package/services/notifications/notifications.client.ts +40 -1
  70. package/services/notifications/notifications.ts +483 -3
  71. package/services/qualifications/qualifications.client.ts +20 -7
  72. package/services/qualifications/qualifications.ts +291 -8
  73. package/services/settings/job_assets.client.ts +105 -0
  74. package/services/settings/job_assets.ts +373 -0
  75. package/services/settings/properties.client.ts +194 -0
  76. package/services/settings/properties.ts +1555 -0
  77. package/services/settings/settings.ts +1 -1
  78. package/services/settings/system.ts +29 -9
  79. package/services/sync/sync.client.ts +69 -33
  80. package/services/sync/sync.ts +557 -18
  81. package/services/vehicles/vehicles.client.ts +52 -0
  82. package/services/vehicles/vehicles.ts +386 -8
  83. package/svcs.ts +87 -1
@@ -2,8 +2,3661 @@
2
2
  // @generated from protobuf file "services/jobs/groups.proto" (package "services.jobs", syntax proto3)
3
3
  // tslint:disable
4
4
  // @ts-nocheck
5
+ import { UploadFileResponse } from "../../resources/file/filestore";
6
+ import { UploadFileRequest } from "../../resources/file/filestore";
5
7
  import { ServiceType } from "@protobuf-ts/runtime-rpc";
8
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
9
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
10
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
11
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
12
+ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
13
+ import { WireType } from "@protobuf-ts/runtime";
14
+ import type { PartialMessage } from "@protobuf-ts/runtime";
15
+ import { reflectionMergePartial } from "@protobuf-ts/runtime";
16
+ import { MessageType } from "@protobuf-ts/runtime";
17
+ import { GroupActivity } from "../../resources/jobs/groups/activity";
18
+ import { Timestamp } from "../../resources/timestamp/timestamp";
19
+ import { GroupActivityType } from "../../resources/jobs/groups/activity";
20
+ import { GroupQualificationRule } from "../../resources/jobs/groups/group";
21
+ import { GroupGradeRule } from "../../resources/jobs/groups/group";
22
+ import { GroupExclusionReason } from "../../resources/jobs/groups/group";
23
+ import { GroupLeader } from "../../resources/jobs/groups/group";
24
+ import { GroupMemberExclusion } from "../../resources/jobs/groups/group";
25
+ import { GroupManualMember } from "../../resources/jobs/groups/group";
26
+ import { GroupRule } from "../../resources/jobs/groups/group";
27
+ import { GroupResolvedMember } from "../../resources/jobs/groups/group";
28
+ import { GroupMemberSource } from "../../resources/jobs/groups/group";
29
+ import { GroupMembershipMode } from "../../resources/jobs/groups/group";
30
+ import { Access } from "../../resources/access/access";
31
+ import { Group } from "../../resources/jobs/groups/group";
32
+ import { PaginationResponse } from "../../resources/common/database/database";
33
+ import { GroupType } from "../../resources/jobs/groups/group";
34
+ import { GroupState } from "../../resources/jobs/groups/group";
35
+ import { Sort } from "../../resources/common/database/database";
36
+ import { PaginationRequest } from "../../resources/common/database/database";
37
+ /**
38
+ * @generated from protobuf message services.jobs.ListGroupsRequest
39
+ */
40
+ export interface ListGroupsRequest {
41
+ /**
42
+ * @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
43
+ */
44
+ pagination?: PaginationRequest;
45
+ /**
46
+ * @generated from protobuf field: optional resources.common.database.Sort sort = 2
47
+ */
48
+ sort?: Sort;
49
+ /**
50
+ * Search params
51
+ *
52
+ * @generated from protobuf field: repeated resources.jobs.groups.GroupState states = 3
53
+ */
54
+ states: GroupState[];
55
+ /**
56
+ * @generated from protobuf field: optional string search = 4
57
+ */
58
+ search?: string;
59
+ /**
60
+ * @generated from protobuf field: bool include_counts = 5
61
+ */
62
+ includeCounts: boolean;
63
+ /**
64
+ * @generated from protobuf field: bool include_inactive = 6
65
+ */
66
+ includeInactive: boolean;
67
+ /**
68
+ * @generated from protobuf field: bool include_archived = 7
69
+ */
70
+ includeArchived: boolean;
71
+ /**
72
+ * @generated from protobuf field: repeated int32 group_ids = 8
73
+ */
74
+ groupIds: number[];
75
+ /**
76
+ * @generated from protobuf field: optional resources.jobs.groups.GroupType kind = 9
77
+ */
78
+ kind?: GroupType;
79
+ }
80
+ /**
81
+ * @generated from protobuf message services.jobs.ListGroupsResponse
82
+ */
83
+ export interface ListGroupsResponse {
84
+ /**
85
+ * @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
86
+ */
87
+ pagination?: PaginationResponse;
88
+ /**
89
+ * @generated from protobuf field: repeated resources.jobs.groups.Group groups = 2
90
+ */
91
+ groups: Group[];
92
+ }
93
+ /**
94
+ * @generated from protobuf message services.jobs.GetGroupRequest
95
+ */
96
+ export interface GetGroupRequest {
97
+ /**
98
+ * @generated from protobuf field: int64 id = 1
99
+ */
100
+ id: number;
101
+ /**
102
+ * @generated from protobuf field: bool include_archived = 2
103
+ */
104
+ includeArchived: boolean;
105
+ }
106
+ /**
107
+ * @generated from protobuf message services.jobs.GetGroupResponse
108
+ */
109
+ export interface GetGroupResponse {
110
+ /**
111
+ * @generated from protobuf field: resources.jobs.groups.Group group = 1
112
+ */
113
+ group?: Group;
114
+ /**
115
+ * @generated from protobuf field: optional resources.access.Access access = 2
116
+ */
117
+ access?: Access;
118
+ }
119
+ /**
120
+ * @generated from protobuf message services.jobs.CreateGroupRequest
121
+ */
122
+ export interface CreateGroupRequest {
123
+ /**
124
+ * @generated from protobuf field: string job = 1
125
+ */
126
+ job: string;
127
+ /**
128
+ * @generated from protobuf field: string name = 2
129
+ */
130
+ name: string;
131
+ /**
132
+ * @generated from protobuf field: optional string description = 3
133
+ */
134
+ description?: string;
135
+ /**
136
+ * @generated from protobuf field: optional string short_name = 4
137
+ */
138
+ shortName?: string;
139
+ /**
140
+ * @generated from protobuf field: optional string color = 6
141
+ */
142
+ color?: string;
143
+ /**
144
+ * @generated from protobuf field: optional resources.jobs.groups.GroupType type = 7
145
+ */
146
+ type?: GroupType;
147
+ /**
148
+ * @generated from protobuf field: optional resources.jobs.groups.GroupMembershipMode membership_mode = 8
149
+ */
150
+ membershipMode?: GroupMembershipMode;
151
+ /**
152
+ * @generated from protobuf field: optional string sort_rank = 9
153
+ */
154
+ sortRank?: string;
155
+ /**
156
+ * @generated from protobuf field: repeated int32 leader_user_ids = 10
157
+ */
158
+ leaderUserIds: number[];
159
+ /**
160
+ * @generated from protobuf field: repeated int32 manual_member_user_ids = 11
161
+ */
162
+ manualMemberUserIds: number[];
163
+ /**
164
+ * @generated from protobuf field: repeated services.jobs.GroupRuleInput rules = 12
165
+ */
166
+ rules: GroupRuleInput[];
167
+ /**
168
+ * @generated from protobuf field: optional resources.access.Access access = 13
169
+ */
170
+ access?: Access;
171
+ }
172
+ /**
173
+ * @generated from protobuf message services.jobs.CreateGroupResponse
174
+ */
175
+ export interface CreateGroupResponse {
176
+ /**
177
+ * @generated from protobuf field: resources.jobs.groups.Group group = 1
178
+ */
179
+ group?: Group;
180
+ }
181
+ /**
182
+ * @generated from protobuf message services.jobs.UpdateGroupRequest
183
+ */
184
+ export interface UpdateGroupRequest {
185
+ /**
186
+ * @generated from protobuf field: int64 id = 1
187
+ */
188
+ id: number;
189
+ /**
190
+ * @generated from protobuf field: optional string name = 2
191
+ */
192
+ name?: string;
193
+ /**
194
+ * @generated from protobuf field: optional string description = 3
195
+ */
196
+ description?: string;
197
+ /**
198
+ * @generated from protobuf field: optional string short_name = 4
199
+ */
200
+ shortName?: string;
201
+ /**
202
+ * @generated from protobuf field: optional string color = 6
203
+ */
204
+ color?: string;
205
+ /**
206
+ * @generated from protobuf field: optional resources.jobs.groups.GroupState state = 7
207
+ */
208
+ state?: GroupState;
209
+ /**
210
+ * @generated from protobuf field: optional resources.jobs.groups.GroupType type = 8
211
+ */
212
+ type?: GroupType;
213
+ /**
214
+ * @generated from protobuf field: optional resources.jobs.groups.GroupMembershipMode membership_mode = 9
215
+ */
216
+ membershipMode?: GroupMembershipMode;
217
+ /**
218
+ * @generated from protobuf field: optional string sort_rank = 10
219
+ */
220
+ sortRank?: string;
221
+ /**
222
+ * @generated from protobuf field: optional resources.access.Access access = 11
223
+ */
224
+ access?: Access;
225
+ }
226
+ /**
227
+ * @generated from protobuf message services.jobs.UpdateGroupResponse
228
+ */
229
+ export interface UpdateGroupResponse {
230
+ /**
231
+ * @generated from protobuf field: resources.jobs.groups.Group group = 1
232
+ */
233
+ group?: Group;
234
+ }
235
+ /**
236
+ * @generated from protobuf message services.jobs.ArchiveGroupRequest
237
+ */
238
+ export interface ArchiveGroupRequest {
239
+ /**
240
+ * @generated from protobuf field: int64 id = 1
241
+ */
242
+ id: number;
243
+ /**
244
+ * @generated from protobuf field: optional string reason = 2
245
+ */
246
+ reason?: string;
247
+ }
248
+ /**
249
+ * @generated from protobuf message services.jobs.ArchiveGroupResponse
250
+ */
251
+ export interface ArchiveGroupResponse {
252
+ /**
253
+ * @generated from protobuf field: resources.jobs.groups.Group group = 1
254
+ */
255
+ group?: Group;
256
+ }
257
+ /**
258
+ * @generated from protobuf message services.jobs.RestoreGroupRequest
259
+ */
260
+ export interface RestoreGroupRequest {
261
+ /**
262
+ * @generated from protobuf field: int64 id = 1
263
+ */
264
+ id: number;
265
+ /**
266
+ * @generated from protobuf field: optional string reason = 2
267
+ */
268
+ reason?: string;
269
+ }
270
+ /**
271
+ * @generated from protobuf message services.jobs.RestoreGroupResponse
272
+ */
273
+ export interface RestoreGroupResponse {
274
+ /**
275
+ * @generated from protobuf field: resources.jobs.groups.Group group = 1
276
+ */
277
+ group?: Group;
278
+ }
279
+ /**
280
+ * @generated from protobuf message services.jobs.DeleteGroupLogoRequest
281
+ */
282
+ export interface DeleteGroupLogoRequest {
283
+ /**
284
+ * @generated from protobuf field: int64 id = 1
285
+ */
286
+ id: number;
287
+ }
288
+ /**
289
+ * @generated from protobuf message services.jobs.DeleteGroupLogoResponse
290
+ */
291
+ export interface DeleteGroupLogoResponse {
292
+ /**
293
+ * @generated from protobuf field: resources.jobs.groups.Group group = 1
294
+ */
295
+ group?: Group;
296
+ }
297
+ /**
298
+ * @generated from protobuf message services.jobs.ListGroupMembersRequest
299
+ */
300
+ export interface ListGroupMembersRequest {
301
+ /**
302
+ * @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
303
+ */
304
+ pagination?: PaginationRequest;
305
+ /**
306
+ * @generated from protobuf field: optional resources.common.database.Sort sort = 2
307
+ */
308
+ sort?: Sort;
309
+ /**
310
+ * @generated from protobuf field: int64 group_id = 3
311
+ */
312
+ groupId: number;
313
+ /**
314
+ * @generated from protobuf field: optional string search = 4
315
+ */
316
+ search?: string;
317
+ /**
318
+ * @generated from protobuf field: bool include_excluded = 5
319
+ */
320
+ includeExcluded: boolean;
321
+ /**
322
+ * @generated from protobuf field: bool include_leaders = 6
323
+ */
324
+ includeLeaders: boolean;
325
+ /**
326
+ * @generated from protobuf field: bool include_reasons = 7
327
+ */
328
+ includeReasons: boolean;
329
+ /**
330
+ * @generated from protobuf field: repeated resources.jobs.groups.GroupMemberSource sources = 8
331
+ */
332
+ sources: GroupMemberSource[];
333
+ }
334
+ /**
335
+ * @generated from protobuf message services.jobs.ListGroupMembersResponse
336
+ */
337
+ export interface ListGroupMembersResponse {
338
+ /**
339
+ * @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
340
+ */
341
+ pagination?: PaginationResponse;
342
+ /**
343
+ * @generated from protobuf field: repeated resources.jobs.groups.GroupResolvedMember members = 2
344
+ */
345
+ members: GroupResolvedMember[];
346
+ }
347
+ /**
348
+ * @generated from protobuf message services.jobs.ListGroupRulesRequest
349
+ */
350
+ export interface ListGroupRulesRequest {
351
+ /**
352
+ * @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
353
+ */
354
+ pagination?: PaginationRequest;
355
+ /**
356
+ * @generated from protobuf field: int64 group_id = 2
357
+ */
358
+ groupId: number;
359
+ }
360
+ /**
361
+ * @generated from protobuf message services.jobs.ListGroupRulesResponse
362
+ */
363
+ export interface ListGroupRulesResponse {
364
+ /**
365
+ * @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
366
+ */
367
+ pagination?: PaginationResponse;
368
+ /**
369
+ * @generated from protobuf field: repeated resources.jobs.groups.GroupRule rules = 2
370
+ */
371
+ rules: GroupRule[];
372
+ }
373
+ /**
374
+ * @generated from protobuf message services.jobs.ListGroupManualMembersRequest
375
+ */
376
+ export interface ListGroupManualMembersRequest {
377
+ /**
378
+ * @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
379
+ */
380
+ pagination?: PaginationRequest;
381
+ /**
382
+ * @generated from protobuf field: int64 group_id = 2
383
+ */
384
+ groupId: number;
385
+ /**
386
+ * @generated from protobuf field: optional string search = 3
387
+ */
388
+ search?: string;
389
+ }
390
+ /**
391
+ * @generated from protobuf message services.jobs.ListGroupManualMembersResponse
392
+ */
393
+ export interface ListGroupManualMembersResponse {
394
+ /**
395
+ * @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
396
+ */
397
+ pagination?: PaginationResponse;
398
+ /**
399
+ * @generated from protobuf field: repeated resources.jobs.groups.GroupManualMember manual_members = 2
400
+ */
401
+ manualMembers: GroupManualMember[];
402
+ }
403
+ /**
404
+ * @generated from protobuf message services.jobs.ListGroupMemberExclusionsRequest
405
+ */
406
+ export interface ListGroupMemberExclusionsRequest {
407
+ /**
408
+ * @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
409
+ */
410
+ pagination?: PaginationRequest;
411
+ /**
412
+ * @generated from protobuf field: int64 group_id = 2
413
+ */
414
+ groupId: number;
415
+ /**
416
+ * @generated from protobuf field: optional string search = 3
417
+ */
418
+ search?: string;
419
+ }
420
+ /**
421
+ * @generated from protobuf message services.jobs.ListGroupMemberExclusionsResponse
422
+ */
423
+ export interface ListGroupMemberExclusionsResponse {
424
+ /**
425
+ * @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
426
+ */
427
+ pagination?: PaginationResponse;
428
+ /**
429
+ * @generated from protobuf field: repeated resources.jobs.groups.GroupMemberExclusion exclusions = 2
430
+ */
431
+ exclusions: GroupMemberExclusion[];
432
+ }
433
+ /**
434
+ * @generated from protobuf message services.jobs.ListGroupLeadersRequest
435
+ */
436
+ export interface ListGroupLeadersRequest {
437
+ /**
438
+ * @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
439
+ */
440
+ pagination?: PaginationRequest;
441
+ /**
442
+ * @generated from protobuf field: int64 group_id = 2
443
+ */
444
+ groupId: number;
445
+ /**
446
+ * @generated from protobuf field: optional string search = 3
447
+ */
448
+ search?: string;
449
+ }
450
+ /**
451
+ * @generated from protobuf message services.jobs.ListGroupLeadersResponse
452
+ */
453
+ export interface ListGroupLeadersResponse {
454
+ /**
455
+ * @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
456
+ */
457
+ pagination?: PaginationResponse;
458
+ /**
459
+ * @generated from protobuf field: repeated resources.jobs.groups.GroupLeader leaders = 2
460
+ */
461
+ leaders: GroupLeader[];
462
+ }
463
+ /**
464
+ * @generated from protobuf message services.jobs.AddGroupMemberRequest
465
+ */
466
+ export interface AddGroupMemberRequest {
467
+ /**
468
+ * @generated from protobuf field: int64 group_id = 1
469
+ */
470
+ groupId: number;
471
+ /**
472
+ * @generated from protobuf field: int32 user_id = 2
473
+ */
474
+ userId: number;
475
+ /**
476
+ * @generated from protobuf field: optional string reason = 3
477
+ */
478
+ reason?: string;
479
+ /**
480
+ * Suppresses the inbox notification normally sent to the affected user.
481
+ *
482
+ * @generated from protobuf field: bool skip_notification = 4
483
+ */
484
+ skipNotification: boolean;
485
+ }
486
+ /**
487
+ * @generated from protobuf message services.jobs.AddGroupMemberResponse
488
+ */
489
+ export interface AddGroupMemberResponse {
490
+ /**
491
+ * @generated from protobuf field: resources.jobs.groups.GroupManualMember member = 1
492
+ */
493
+ member?: GroupManualMember;
494
+ /**
495
+ * @generated from protobuf field: resources.jobs.groups.Group group = 2
496
+ */
497
+ group?: Group;
498
+ }
499
+ /**
500
+ * @generated from protobuf message services.jobs.RemoveGroupMemberRequest
501
+ */
502
+ export interface RemoveGroupMemberRequest {
503
+ /**
504
+ * @generated from protobuf field: int64 group_id = 1
505
+ */
506
+ groupId: number;
507
+ /**
508
+ * @generated from protobuf field: int32 user_id = 2
509
+ */
510
+ userId: number;
511
+ /**
512
+ * @generated from protobuf field: optional string reason = 3
513
+ */
514
+ reason?: string;
515
+ /**
516
+ * Suppresses the inbox notification normally sent to the affected user.
517
+ *
518
+ * @generated from protobuf field: bool skip_notification = 4
519
+ */
520
+ skipNotification: boolean;
521
+ }
522
+ /**
523
+ * @generated from protobuf message services.jobs.RemoveGroupMemberResponse
524
+ */
525
+ export interface RemoveGroupMemberResponse {
526
+ /**
527
+ * @generated from protobuf field: resources.jobs.groups.Group group = 1
528
+ */
529
+ group?: Group;
530
+ }
531
+ /**
532
+ * @generated from protobuf message services.jobs.ExcludeGroupMemberRequest
533
+ */
534
+ export interface ExcludeGroupMemberRequest {
535
+ /**
536
+ * @generated from protobuf field: int64 group_id = 1
537
+ */
538
+ groupId: number;
539
+ /**
540
+ * @generated from protobuf field: int32 user_id = 2
541
+ */
542
+ userId: number;
543
+ /**
544
+ * @generated from protobuf field: resources.jobs.groups.GroupExclusionReason reason_type = 3
545
+ */
546
+ reasonType: GroupExclusionReason;
547
+ /**
548
+ * @generated from protobuf field: optional string reason = 4
549
+ */
550
+ reason?: string;
551
+ }
552
+ /**
553
+ * @generated from protobuf message services.jobs.ExcludeGroupMemberResponse
554
+ */
555
+ export interface ExcludeGroupMemberResponse {
556
+ /**
557
+ * @generated from protobuf field: resources.jobs.groups.GroupMemberExclusion exclusion = 1
558
+ */
559
+ exclusion?: GroupMemberExclusion;
560
+ /**
561
+ * @generated from protobuf field: resources.jobs.groups.Group group = 2
562
+ */
563
+ group?: Group;
564
+ }
565
+ /**
566
+ * @generated from protobuf message services.jobs.RemoveGroupMemberExclusionRequest
567
+ */
568
+ export interface RemoveGroupMemberExclusionRequest {
569
+ /**
570
+ * @generated from protobuf field: int64 group_id = 1
571
+ */
572
+ groupId: number;
573
+ /**
574
+ * @generated from protobuf field: int32 user_id = 2
575
+ */
576
+ userId: number;
577
+ /**
578
+ * @generated from protobuf field: optional string reason = 3
579
+ */
580
+ reason?: string;
581
+ }
582
+ /**
583
+ * @generated from protobuf message services.jobs.RemoveGroupMemberExclusionResponse
584
+ */
585
+ export interface RemoveGroupMemberExclusionResponse {
586
+ /**
587
+ * @generated from protobuf field: resources.jobs.groups.Group group = 1
588
+ */
589
+ group?: Group;
590
+ }
591
+ /**
592
+ * @generated from protobuf message services.jobs.AddGroupLeaderRequest
593
+ */
594
+ export interface AddGroupLeaderRequest {
595
+ /**
596
+ * @generated from protobuf field: int64 group_id = 1
597
+ */
598
+ groupId: number;
599
+ /**
600
+ * @generated from protobuf field: int32 user_id = 2
601
+ */
602
+ userId: number;
603
+ /**
604
+ * @generated from protobuf field: optional string reason = 3
605
+ */
606
+ reason?: string;
607
+ /**
608
+ * Suppresses the inbox notification normally sent to the affected user.
609
+ *
610
+ * @generated from protobuf field: bool skip_notification = 4
611
+ */
612
+ skipNotification: boolean;
613
+ }
614
+ /**
615
+ * @generated from protobuf message services.jobs.AddGroupLeaderResponse
616
+ */
617
+ export interface AddGroupLeaderResponse {
618
+ /**
619
+ * @generated from protobuf field: resources.jobs.groups.GroupLeader leader = 1
620
+ */
621
+ leader?: GroupLeader;
622
+ /**
623
+ * @generated from protobuf field: resources.jobs.groups.Group group = 2
624
+ */
625
+ group?: Group;
626
+ }
627
+ /**
628
+ * @generated from protobuf message services.jobs.RemoveGroupLeaderRequest
629
+ */
630
+ export interface RemoveGroupLeaderRequest {
631
+ /**
632
+ * @generated from protobuf field: int64 group_id = 1
633
+ */
634
+ groupId: number;
635
+ /**
636
+ * @generated from protobuf field: int32 user_id = 2
637
+ */
638
+ userId: number;
639
+ /**
640
+ * @generated from protobuf field: optional string reason = 3
641
+ */
642
+ reason?: string;
643
+ /**
644
+ * Suppresses the inbox notification normally sent to the affected user.
645
+ *
646
+ * @generated from protobuf field: bool skip_notification = 4
647
+ */
648
+ skipNotification: boolean;
649
+ }
650
+ /**
651
+ * @generated from protobuf message services.jobs.RemoveGroupLeaderResponse
652
+ */
653
+ export interface RemoveGroupLeaderResponse {
654
+ /**
655
+ * @generated from protobuf field: resources.jobs.groups.Group group = 1
656
+ */
657
+ group?: Group;
658
+ }
659
+ /**
660
+ * @generated from protobuf message services.jobs.GroupRuleInput
661
+ */
662
+ export interface GroupRuleInput {
663
+ /**
664
+ * @generated from protobuf field: optional bool enabled = 1
665
+ */
666
+ enabled?: boolean;
667
+ /**
668
+ * @generated from protobuf oneof: rule
669
+ */
670
+ rule: {
671
+ oneofKind: "grade";
672
+ /**
673
+ * @generated from protobuf field: resources.jobs.groups.GroupGradeRule grade = 10
674
+ */
675
+ grade: GroupGradeRule;
676
+ } | {
677
+ oneofKind: "qualification";
678
+ /**
679
+ * @generated from protobuf field: resources.jobs.groups.GroupQualificationRule qualification = 11
680
+ */
681
+ qualification: GroupQualificationRule;
682
+ } | {
683
+ oneofKind: undefined;
684
+ };
685
+ }
686
+ /**
687
+ * @generated from protobuf message services.jobs.CreateGroupRuleRequest
688
+ */
689
+ export interface CreateGroupRuleRequest {
690
+ /**
691
+ * @generated from protobuf field: int64 group_id = 1
692
+ */
693
+ groupId: number;
694
+ /**
695
+ * @generated from protobuf field: services.jobs.GroupRuleInput rule = 2
696
+ */
697
+ rule?: GroupRuleInput;
698
+ /**
699
+ * @generated from protobuf field: optional string reason = 3
700
+ */
701
+ reason?: string;
702
+ }
703
+ /**
704
+ * @generated from protobuf message services.jobs.CreateGroupRuleResponse
705
+ */
706
+ export interface CreateGroupRuleResponse {
707
+ /**
708
+ * @generated from protobuf field: resources.jobs.groups.GroupRule rule = 1
709
+ */
710
+ rule?: GroupRule;
711
+ /**
712
+ * @generated from protobuf field: resources.jobs.groups.Group group = 2
713
+ */
714
+ group?: Group;
715
+ }
716
+ /**
717
+ * @generated from protobuf message services.jobs.UpdateGroupRuleRequest
718
+ */
719
+ export interface UpdateGroupRuleRequest {
720
+ /**
721
+ * @generated from protobuf field: int64 group_id = 1
722
+ */
723
+ groupId: number;
724
+ /**
725
+ * @generated from protobuf field: int64 rule_id = 2
726
+ */
727
+ ruleId: number;
728
+ /**
729
+ * @generated from protobuf field: services.jobs.GroupRuleInput rule = 3
730
+ */
731
+ rule?: GroupRuleInput;
732
+ /**
733
+ * @generated from protobuf field: optional string reason = 4
734
+ */
735
+ reason?: string;
736
+ }
737
+ /**
738
+ * @generated from protobuf message services.jobs.UpdateGroupRuleResponse
739
+ */
740
+ export interface UpdateGroupRuleResponse {
741
+ /**
742
+ * @generated from protobuf field: resources.jobs.groups.GroupRule rule = 1
743
+ */
744
+ rule?: GroupRule;
745
+ /**
746
+ * @generated from protobuf field: resources.jobs.groups.Group group = 2
747
+ */
748
+ group?: Group;
749
+ }
750
+ /**
751
+ * @generated from protobuf message services.jobs.DeleteGroupRuleRequest
752
+ */
753
+ export interface DeleteGroupRuleRequest {
754
+ /**
755
+ * @generated from protobuf field: int64 group_id = 1
756
+ */
757
+ groupId: number;
758
+ /**
759
+ * @generated from protobuf field: int64 rule_id = 2
760
+ */
761
+ ruleId: number;
762
+ /**
763
+ * @generated from protobuf field: optional string reason = 3
764
+ */
765
+ reason?: string;
766
+ }
767
+ /**
768
+ * @generated from protobuf message services.jobs.DeleteGroupRuleResponse
769
+ */
770
+ export interface DeleteGroupRuleResponse {
771
+ /**
772
+ * @generated from protobuf field: resources.jobs.groups.Group group = 1
773
+ */
774
+ group?: Group;
775
+ }
776
+ /**
777
+ * @generated from protobuf message services.jobs.ListGroupActivityRequest
778
+ */
779
+ export interface ListGroupActivityRequest {
780
+ /**
781
+ * @generated from protobuf field: optional resources.common.database.PaginationRequest pagination = 1
782
+ */
783
+ pagination?: PaginationRequest;
784
+ /**
785
+ * @generated from protobuf field: optional resources.common.database.Sort sort = 2
786
+ */
787
+ sort?: Sort;
788
+ /**
789
+ * @generated from protobuf field: int64 group_id = 3
790
+ */
791
+ groupId: number;
792
+ /**
793
+ * Activity types to filter by. If empty, all activity types will be returned.
794
+ *
795
+ * @generated from protobuf field: repeated resources.jobs.groups.GroupActivityType types = 4
796
+ */
797
+ types: GroupActivityType[];
798
+ /**
799
+ * @generated from protobuf field: optional int32 user_id = 5
800
+ */
801
+ userId?: number;
802
+ /**
803
+ * @generated from protobuf field: optional resources.timestamp.Timestamp from = 6
804
+ */
805
+ from?: Timestamp;
806
+ /**
807
+ * @generated from protobuf field: optional resources.timestamp.Timestamp to = 7
808
+ */
809
+ to?: Timestamp;
810
+ }
811
+ /**
812
+ * @generated from protobuf message services.jobs.ListGroupActivityResponse
813
+ */
814
+ export interface ListGroupActivityResponse {
815
+ /**
816
+ * @generated from protobuf field: optional resources.common.database.PaginationResponse pagination = 1
817
+ */
818
+ pagination?: PaginationResponse;
819
+ /**
820
+ * @generated from protobuf field: repeated resources.jobs.groups.GroupActivity activity = 2
821
+ */
822
+ activity: GroupActivity[];
823
+ }
824
+ // @generated message type with reflection information, may provide speed optimized methods
825
+ class ListGroupsRequest$Type extends MessageType<ListGroupsRequest> {
826
+ constructor() {
827
+ super("services.jobs.ListGroupsRequest", [
828
+ { no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
829
+ { no: 2, name: "sort", kind: "message", T: () => Sort },
830
+ { no: 3, name: "states", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.jobs.groups.GroupState", GroupState, "GROUP_STATE_"], options: { "buf.validate.field": { repeated: { maxItems: "3", items: { enum: { definedOnly: true } } } } } },
831
+ { no: 4, name: "search", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
832
+ { no: 5, name: "include_counts", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
833
+ { no: 6, name: "include_inactive", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
834
+ { no: 7, name: "include_archived", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
835
+ { no: 8, name: "group_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { repeated: { maxItems: "10", items: { int32: { gt: 0 } } } } } },
836
+ { no: 9, name: "kind", kind: "enum", opt: true, T: () => ["resources.jobs.groups.GroupType", GroupType, "GROUP_TYPE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } }
837
+ ]);
838
+ }
839
+ create(value?: PartialMessage<ListGroupsRequest>): ListGroupsRequest {
840
+ const message = globalThis.Object.create((this.messagePrototype!));
841
+ message.states = [];
842
+ message.includeCounts = false;
843
+ message.includeInactive = false;
844
+ message.includeArchived = false;
845
+ message.groupIds = [];
846
+ if (value !== undefined)
847
+ reflectionMergePartial<ListGroupsRequest>(this, message, value);
848
+ return message;
849
+ }
850
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListGroupsRequest): ListGroupsRequest {
851
+ let message = target ?? this.create(), end = reader.pos + length;
852
+ while (reader.pos < end) {
853
+ let [fieldNo, wireType] = reader.tag();
854
+ switch (fieldNo) {
855
+ case /* resources.common.database.PaginationRequest pagination */ 1:
856
+ message.pagination = PaginationRequest.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
857
+ break;
858
+ case /* optional resources.common.database.Sort sort */ 2:
859
+ message.sort = Sort.internalBinaryRead(reader, reader.uint32(), options, message.sort);
860
+ break;
861
+ case /* repeated resources.jobs.groups.GroupState states */ 3:
862
+ if (wireType === WireType.LengthDelimited)
863
+ for (let e = reader.int32() + reader.pos; reader.pos < e;)
864
+ message.states.push(reader.int32());
865
+ else
866
+ message.states.push(reader.int32());
867
+ break;
868
+ case /* optional string search */ 4:
869
+ message.search = reader.string();
870
+ break;
871
+ case /* bool include_counts */ 5:
872
+ message.includeCounts = reader.bool();
873
+ break;
874
+ case /* bool include_inactive */ 6:
875
+ message.includeInactive = reader.bool();
876
+ break;
877
+ case /* bool include_archived */ 7:
878
+ message.includeArchived = reader.bool();
879
+ break;
880
+ case /* repeated int32 group_ids */ 8:
881
+ if (wireType === WireType.LengthDelimited)
882
+ for (let e = reader.int32() + reader.pos; reader.pos < e;)
883
+ message.groupIds.push(reader.int32());
884
+ else
885
+ message.groupIds.push(reader.int32());
886
+ break;
887
+ case /* optional resources.jobs.groups.GroupType kind */ 9:
888
+ message.kind = reader.int32();
889
+ break;
890
+ default:
891
+ let u = options.readUnknownField;
892
+ if (u === "throw")
893
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
894
+ let d = reader.skip(wireType);
895
+ if (u !== false)
896
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
897
+ }
898
+ }
899
+ return message;
900
+ }
901
+ internalBinaryWrite(message: ListGroupsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
902
+ /* resources.common.database.PaginationRequest pagination = 1; */
903
+ if (message.pagination)
904
+ PaginationRequest.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
905
+ /* optional resources.common.database.Sort sort = 2; */
906
+ if (message.sort)
907
+ Sort.internalBinaryWrite(message.sort, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
908
+ /* repeated resources.jobs.groups.GroupState states = 3; */
909
+ if (message.states.length) {
910
+ writer.tag(3, WireType.LengthDelimited).fork();
911
+ for (let i = 0; i < message.states.length; i++)
912
+ writer.int32(message.states[i]);
913
+ writer.join();
914
+ }
915
+ /* optional string search = 4; */
916
+ if (message.search !== undefined)
917
+ writer.tag(4, WireType.LengthDelimited).string(message.search);
918
+ /* bool include_counts = 5; */
919
+ if (message.includeCounts !== false)
920
+ writer.tag(5, WireType.Varint).bool(message.includeCounts);
921
+ /* bool include_inactive = 6; */
922
+ if (message.includeInactive !== false)
923
+ writer.tag(6, WireType.Varint).bool(message.includeInactive);
924
+ /* bool include_archived = 7; */
925
+ if (message.includeArchived !== false)
926
+ writer.tag(7, WireType.Varint).bool(message.includeArchived);
927
+ /* repeated int32 group_ids = 8; */
928
+ if (message.groupIds.length) {
929
+ writer.tag(8, WireType.LengthDelimited).fork();
930
+ for (let i = 0; i < message.groupIds.length; i++)
931
+ writer.int32(message.groupIds[i]);
932
+ writer.join();
933
+ }
934
+ /* optional resources.jobs.groups.GroupType kind = 9; */
935
+ if (message.kind !== undefined)
936
+ writer.tag(9, WireType.Varint).int32(message.kind);
937
+ let u = options.writeUnknownFields;
938
+ if (u !== false)
939
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
940
+ return writer;
941
+ }
942
+ }
943
+ /**
944
+ * @generated MessageType for protobuf message services.jobs.ListGroupsRequest
945
+ */
946
+ export const ListGroupsRequest = new ListGroupsRequest$Type();
947
+ // @generated message type with reflection information, may provide speed optimized methods
948
+ class ListGroupsResponse$Type extends MessageType<ListGroupsResponse> {
949
+ constructor() {
950
+ super("services.jobs.ListGroupsResponse", [
951
+ { no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
952
+ { no: 2, name: "groups", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Group, options: { "codegen.itemslen.enabled": true } }
953
+ ]);
954
+ }
955
+ create(value?: PartialMessage<ListGroupsResponse>): ListGroupsResponse {
956
+ const message = globalThis.Object.create((this.messagePrototype!));
957
+ message.groups = [];
958
+ if (value !== undefined)
959
+ reflectionMergePartial<ListGroupsResponse>(this, message, value);
960
+ return message;
961
+ }
962
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListGroupsResponse): ListGroupsResponse {
963
+ let message = target ?? this.create(), end = reader.pos + length;
964
+ while (reader.pos < end) {
965
+ let [fieldNo, wireType] = reader.tag();
966
+ switch (fieldNo) {
967
+ case /* resources.common.database.PaginationResponse pagination */ 1:
968
+ message.pagination = PaginationResponse.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
969
+ break;
970
+ case /* repeated resources.jobs.groups.Group groups */ 2:
971
+ message.groups.push(Group.internalBinaryRead(reader, reader.uint32(), options));
972
+ break;
973
+ default:
974
+ let u = options.readUnknownField;
975
+ if (u === "throw")
976
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
977
+ let d = reader.skip(wireType);
978
+ if (u !== false)
979
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
980
+ }
981
+ }
982
+ return message;
983
+ }
984
+ internalBinaryWrite(message: ListGroupsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
985
+ /* resources.common.database.PaginationResponse pagination = 1; */
986
+ if (message.pagination)
987
+ PaginationResponse.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
988
+ /* repeated resources.jobs.groups.Group groups = 2; */
989
+ for (let i = 0; i < message.groups.length; i++)
990
+ Group.internalBinaryWrite(message.groups[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
991
+ let u = options.writeUnknownFields;
992
+ if (u !== false)
993
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
994
+ return writer;
995
+ }
996
+ }
997
+ /**
998
+ * @generated MessageType for protobuf message services.jobs.ListGroupsResponse
999
+ */
1000
+ export const ListGroupsResponse = new ListGroupsResponse$Type();
1001
+ // @generated message type with reflection information, may provide speed optimized methods
1002
+ class GetGroupRequest$Type extends MessageType<GetGroupRequest> {
1003
+ constructor() {
1004
+ super("services.jobs.GetGroupRequest", [
1005
+ { no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
1006
+ { no: 2, name: "include_archived", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
1007
+ ]);
1008
+ }
1009
+ create(value?: PartialMessage<GetGroupRequest>): GetGroupRequest {
1010
+ const message = globalThis.Object.create((this.messagePrototype!));
1011
+ message.id = 0;
1012
+ message.includeArchived = false;
1013
+ if (value !== undefined)
1014
+ reflectionMergePartial<GetGroupRequest>(this, message, value);
1015
+ return message;
1016
+ }
1017
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetGroupRequest): GetGroupRequest {
1018
+ let message = target ?? this.create(), end = reader.pos + length;
1019
+ while (reader.pos < end) {
1020
+ let [fieldNo, wireType] = reader.tag();
1021
+ switch (fieldNo) {
1022
+ case /* int64 id */ 1:
1023
+ message.id = reader.int64().toNumber();
1024
+ break;
1025
+ case /* bool include_archived */ 2:
1026
+ message.includeArchived = reader.bool();
1027
+ break;
1028
+ default:
1029
+ let u = options.readUnknownField;
1030
+ if (u === "throw")
1031
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1032
+ let d = reader.skip(wireType);
1033
+ if (u !== false)
1034
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1035
+ }
1036
+ }
1037
+ return message;
1038
+ }
1039
+ internalBinaryWrite(message: GetGroupRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1040
+ /* int64 id = 1; */
1041
+ if (message.id !== 0)
1042
+ writer.tag(1, WireType.Varint).int64(message.id);
1043
+ /* bool include_archived = 2; */
1044
+ if (message.includeArchived !== false)
1045
+ writer.tag(2, WireType.Varint).bool(message.includeArchived);
1046
+ let u = options.writeUnknownFields;
1047
+ if (u !== false)
1048
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1049
+ return writer;
1050
+ }
1051
+ }
1052
+ /**
1053
+ * @generated MessageType for protobuf message services.jobs.GetGroupRequest
1054
+ */
1055
+ export const GetGroupRequest = new GetGroupRequest$Type();
1056
+ // @generated message type with reflection information, may provide speed optimized methods
1057
+ class GetGroupResponse$Type extends MessageType<GetGroupResponse> {
1058
+ constructor() {
1059
+ super("services.jobs.GetGroupResponse", [
1060
+ { no: 1, name: "group", kind: "message", T: () => Group },
1061
+ { no: 2, name: "access", kind: "message", T: () => Access }
1062
+ ]);
1063
+ }
1064
+ create(value?: PartialMessage<GetGroupResponse>): GetGroupResponse {
1065
+ const message = globalThis.Object.create((this.messagePrototype!));
1066
+ if (value !== undefined)
1067
+ reflectionMergePartial<GetGroupResponse>(this, message, value);
1068
+ return message;
1069
+ }
1070
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetGroupResponse): GetGroupResponse {
1071
+ let message = target ?? this.create(), end = reader.pos + length;
1072
+ while (reader.pos < end) {
1073
+ let [fieldNo, wireType] = reader.tag();
1074
+ switch (fieldNo) {
1075
+ case /* resources.jobs.groups.Group group */ 1:
1076
+ message.group = Group.internalBinaryRead(reader, reader.uint32(), options, message.group);
1077
+ break;
1078
+ case /* optional resources.access.Access access */ 2:
1079
+ message.access = Access.internalBinaryRead(reader, reader.uint32(), options, message.access);
1080
+ break;
1081
+ default:
1082
+ let u = options.readUnknownField;
1083
+ if (u === "throw")
1084
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1085
+ let d = reader.skip(wireType);
1086
+ if (u !== false)
1087
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1088
+ }
1089
+ }
1090
+ return message;
1091
+ }
1092
+ internalBinaryWrite(message: GetGroupResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1093
+ /* resources.jobs.groups.Group group = 1; */
1094
+ if (message.group)
1095
+ Group.internalBinaryWrite(message.group, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1096
+ /* optional resources.access.Access access = 2; */
1097
+ if (message.access)
1098
+ Access.internalBinaryWrite(message.access, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
1099
+ let u = options.writeUnknownFields;
1100
+ if (u !== false)
1101
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1102
+ return writer;
1103
+ }
1104
+ }
1105
+ /**
1106
+ * @generated MessageType for protobuf message services.jobs.GetGroupResponse
1107
+ */
1108
+ export const GetGroupResponse = new GetGroupResponse$Type();
1109
+ // @generated message type with reflection information, may provide speed optimized methods
1110
+ class CreateGroupRequest$Type extends MessageType<CreateGroupRequest> {
1111
+ constructor() {
1112
+ super("services.jobs.CreateGroupRequest", [
1113
+ { no: 1, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
1114
+ { no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1115
+ { no: 3, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
1116
+ { no: 4, name: "short_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
1117
+ { no: 6, name: "color", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
1118
+ { no: 7, name: "type", kind: "enum", opt: true, T: () => ["resources.jobs.groups.GroupType", GroupType, "GROUP_TYPE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
1119
+ { no: 8, name: "membership_mode", kind: "enum", opt: true, T: () => ["resources.jobs.groups.GroupMembershipMode", GroupMembershipMode, "GROUP_MEMBERSHIP_MODE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
1120
+ { no: 9, name: "sort_rank", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "32" } } } },
1121
+ { no: 10, name: "leader_user_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { repeated: { maxItems: "20" } } } },
1122
+ { no: 11, name: "manual_member_user_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { repeated: { maxItems: "100" } } } },
1123
+ { no: 12, name: "rules", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => GroupRuleInput, options: { "buf.validate.field": { repeated: { maxItems: "50" } } } },
1124
+ { no: 13, name: "access", kind: "message", T: () => Access }
1125
+ ]);
1126
+ }
1127
+ create(value?: PartialMessage<CreateGroupRequest>): CreateGroupRequest {
1128
+ const message = globalThis.Object.create((this.messagePrototype!));
1129
+ message.job = "";
1130
+ message.name = "";
1131
+ message.leaderUserIds = [];
1132
+ message.manualMemberUserIds = [];
1133
+ message.rules = [];
1134
+ if (value !== undefined)
1135
+ reflectionMergePartial<CreateGroupRequest>(this, message, value);
1136
+ return message;
1137
+ }
1138
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateGroupRequest): CreateGroupRequest {
1139
+ let message = target ?? this.create(), end = reader.pos + length;
1140
+ while (reader.pos < end) {
1141
+ let [fieldNo, wireType] = reader.tag();
1142
+ switch (fieldNo) {
1143
+ case /* string job */ 1:
1144
+ message.job = reader.string();
1145
+ break;
1146
+ case /* string name */ 2:
1147
+ message.name = reader.string();
1148
+ break;
1149
+ case /* optional string description */ 3:
1150
+ message.description = reader.string();
1151
+ break;
1152
+ case /* optional string short_name */ 4:
1153
+ message.shortName = reader.string();
1154
+ break;
1155
+ case /* optional string color */ 6:
1156
+ message.color = reader.string();
1157
+ break;
1158
+ case /* optional resources.jobs.groups.GroupType type */ 7:
1159
+ message.type = reader.int32();
1160
+ break;
1161
+ case /* optional resources.jobs.groups.GroupMembershipMode membership_mode */ 8:
1162
+ message.membershipMode = reader.int32();
1163
+ break;
1164
+ case /* optional string sort_rank */ 9:
1165
+ message.sortRank = reader.string();
1166
+ break;
1167
+ case /* repeated int32 leader_user_ids */ 10:
1168
+ if (wireType === WireType.LengthDelimited)
1169
+ for (let e = reader.int32() + reader.pos; reader.pos < e;)
1170
+ message.leaderUserIds.push(reader.int32());
1171
+ else
1172
+ message.leaderUserIds.push(reader.int32());
1173
+ break;
1174
+ case /* repeated int32 manual_member_user_ids */ 11:
1175
+ if (wireType === WireType.LengthDelimited)
1176
+ for (let e = reader.int32() + reader.pos; reader.pos < e;)
1177
+ message.manualMemberUserIds.push(reader.int32());
1178
+ else
1179
+ message.manualMemberUserIds.push(reader.int32());
1180
+ break;
1181
+ case /* repeated services.jobs.GroupRuleInput rules */ 12:
1182
+ message.rules.push(GroupRuleInput.internalBinaryRead(reader, reader.uint32(), options));
1183
+ break;
1184
+ case /* optional resources.access.Access access */ 13:
1185
+ message.access = Access.internalBinaryRead(reader, reader.uint32(), options, message.access);
1186
+ break;
1187
+ default:
1188
+ let u = options.readUnknownField;
1189
+ if (u === "throw")
1190
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1191
+ let d = reader.skip(wireType);
1192
+ if (u !== false)
1193
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1194
+ }
1195
+ }
1196
+ return message;
1197
+ }
1198
+ internalBinaryWrite(message: CreateGroupRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1199
+ /* string job = 1; */
1200
+ if (message.job !== "")
1201
+ writer.tag(1, WireType.LengthDelimited).string(message.job);
1202
+ /* string name = 2; */
1203
+ if (message.name !== "")
1204
+ writer.tag(2, WireType.LengthDelimited).string(message.name);
1205
+ /* optional string description = 3; */
1206
+ if (message.description !== undefined)
1207
+ writer.tag(3, WireType.LengthDelimited).string(message.description);
1208
+ /* optional string short_name = 4; */
1209
+ if (message.shortName !== undefined)
1210
+ writer.tag(4, WireType.LengthDelimited).string(message.shortName);
1211
+ /* optional string color = 6; */
1212
+ if (message.color !== undefined)
1213
+ writer.tag(6, WireType.LengthDelimited).string(message.color);
1214
+ /* optional resources.jobs.groups.GroupType type = 7; */
1215
+ if (message.type !== undefined)
1216
+ writer.tag(7, WireType.Varint).int32(message.type);
1217
+ /* optional resources.jobs.groups.GroupMembershipMode membership_mode = 8; */
1218
+ if (message.membershipMode !== undefined)
1219
+ writer.tag(8, WireType.Varint).int32(message.membershipMode);
1220
+ /* optional string sort_rank = 9; */
1221
+ if (message.sortRank !== undefined)
1222
+ writer.tag(9, WireType.LengthDelimited).string(message.sortRank);
1223
+ /* repeated int32 leader_user_ids = 10; */
1224
+ if (message.leaderUserIds.length) {
1225
+ writer.tag(10, WireType.LengthDelimited).fork();
1226
+ for (let i = 0; i < message.leaderUserIds.length; i++)
1227
+ writer.int32(message.leaderUserIds[i]);
1228
+ writer.join();
1229
+ }
1230
+ /* repeated int32 manual_member_user_ids = 11; */
1231
+ if (message.manualMemberUserIds.length) {
1232
+ writer.tag(11, WireType.LengthDelimited).fork();
1233
+ for (let i = 0; i < message.manualMemberUserIds.length; i++)
1234
+ writer.int32(message.manualMemberUserIds[i]);
1235
+ writer.join();
1236
+ }
1237
+ /* repeated services.jobs.GroupRuleInput rules = 12; */
1238
+ for (let i = 0; i < message.rules.length; i++)
1239
+ GroupRuleInput.internalBinaryWrite(message.rules[i], writer.tag(12, WireType.LengthDelimited).fork(), options).join();
1240
+ /* optional resources.access.Access access = 13; */
1241
+ if (message.access)
1242
+ Access.internalBinaryWrite(message.access, writer.tag(13, WireType.LengthDelimited).fork(), options).join();
1243
+ let u = options.writeUnknownFields;
1244
+ if (u !== false)
1245
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1246
+ return writer;
1247
+ }
1248
+ }
1249
+ /**
1250
+ * @generated MessageType for protobuf message services.jobs.CreateGroupRequest
1251
+ */
1252
+ export const CreateGroupRequest = new CreateGroupRequest$Type();
1253
+ // @generated message type with reflection information, may provide speed optimized methods
1254
+ class CreateGroupResponse$Type extends MessageType<CreateGroupResponse> {
1255
+ constructor() {
1256
+ super("services.jobs.CreateGroupResponse", [
1257
+ { no: 1, name: "group", kind: "message", T: () => Group }
1258
+ ]);
1259
+ }
1260
+ create(value?: PartialMessage<CreateGroupResponse>): CreateGroupResponse {
1261
+ const message = globalThis.Object.create((this.messagePrototype!));
1262
+ if (value !== undefined)
1263
+ reflectionMergePartial<CreateGroupResponse>(this, message, value);
1264
+ return message;
1265
+ }
1266
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateGroupResponse): CreateGroupResponse {
1267
+ let message = target ?? this.create(), end = reader.pos + length;
1268
+ while (reader.pos < end) {
1269
+ let [fieldNo, wireType] = reader.tag();
1270
+ switch (fieldNo) {
1271
+ case /* resources.jobs.groups.Group group */ 1:
1272
+ message.group = Group.internalBinaryRead(reader, reader.uint32(), options, message.group);
1273
+ break;
1274
+ default:
1275
+ let u = options.readUnknownField;
1276
+ if (u === "throw")
1277
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1278
+ let d = reader.skip(wireType);
1279
+ if (u !== false)
1280
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1281
+ }
1282
+ }
1283
+ return message;
1284
+ }
1285
+ internalBinaryWrite(message: CreateGroupResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1286
+ /* resources.jobs.groups.Group group = 1; */
1287
+ if (message.group)
1288
+ Group.internalBinaryWrite(message.group, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1289
+ let u = options.writeUnknownFields;
1290
+ if (u !== false)
1291
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1292
+ return writer;
1293
+ }
1294
+ }
1295
+ /**
1296
+ * @generated MessageType for protobuf message services.jobs.CreateGroupResponse
1297
+ */
1298
+ export const CreateGroupResponse = new CreateGroupResponse$Type();
1299
+ // @generated message type with reflection information, may provide speed optimized methods
1300
+ class UpdateGroupRequest$Type extends MessageType<UpdateGroupRequest> {
1301
+ constructor() {
1302
+ super("services.jobs.UpdateGroupRequest", [
1303
+ { no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
1304
+ { no: 2, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
1305
+ { no: 3, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
1306
+ { no: 4, name: "short_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
1307
+ { no: 6, name: "color", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
1308
+ { no: 7, name: "state", kind: "enum", opt: true, T: () => ["resources.jobs.groups.GroupState", GroupState, "GROUP_STATE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
1309
+ { no: 8, name: "type", kind: "enum", opt: true, T: () => ["resources.jobs.groups.GroupType", GroupType, "GROUP_TYPE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
1310
+ { no: 9, name: "membership_mode", kind: "enum", opt: true, T: () => ["resources.jobs.groups.GroupMembershipMode", GroupMembershipMode, "GROUP_MEMBERSHIP_MODE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
1311
+ { no: 10, name: "sort_rank", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "32" } } } },
1312
+ { no: 11, name: "access", kind: "message", T: () => Access }
1313
+ ]);
1314
+ }
1315
+ create(value?: PartialMessage<UpdateGroupRequest>): UpdateGroupRequest {
1316
+ const message = globalThis.Object.create((this.messagePrototype!));
1317
+ message.id = 0;
1318
+ if (value !== undefined)
1319
+ reflectionMergePartial<UpdateGroupRequest>(this, message, value);
1320
+ return message;
1321
+ }
1322
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateGroupRequest): UpdateGroupRequest {
1323
+ let message = target ?? this.create(), end = reader.pos + length;
1324
+ while (reader.pos < end) {
1325
+ let [fieldNo, wireType] = reader.tag();
1326
+ switch (fieldNo) {
1327
+ case /* int64 id */ 1:
1328
+ message.id = reader.int64().toNumber();
1329
+ break;
1330
+ case /* optional string name */ 2:
1331
+ message.name = reader.string();
1332
+ break;
1333
+ case /* optional string description */ 3:
1334
+ message.description = reader.string();
1335
+ break;
1336
+ case /* optional string short_name */ 4:
1337
+ message.shortName = reader.string();
1338
+ break;
1339
+ case /* optional string color */ 6:
1340
+ message.color = reader.string();
1341
+ break;
1342
+ case /* optional resources.jobs.groups.GroupState state */ 7:
1343
+ message.state = reader.int32();
1344
+ break;
1345
+ case /* optional resources.jobs.groups.GroupType type */ 8:
1346
+ message.type = reader.int32();
1347
+ break;
1348
+ case /* optional resources.jobs.groups.GroupMembershipMode membership_mode */ 9:
1349
+ message.membershipMode = reader.int32();
1350
+ break;
1351
+ case /* optional string sort_rank */ 10:
1352
+ message.sortRank = reader.string();
1353
+ break;
1354
+ case /* optional resources.access.Access access */ 11:
1355
+ message.access = Access.internalBinaryRead(reader, reader.uint32(), options, message.access);
1356
+ break;
1357
+ default:
1358
+ let u = options.readUnknownField;
1359
+ if (u === "throw")
1360
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1361
+ let d = reader.skip(wireType);
1362
+ if (u !== false)
1363
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1364
+ }
1365
+ }
1366
+ return message;
1367
+ }
1368
+ internalBinaryWrite(message: UpdateGroupRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1369
+ /* int64 id = 1; */
1370
+ if (message.id !== 0)
1371
+ writer.tag(1, WireType.Varint).int64(message.id);
1372
+ /* optional string name = 2; */
1373
+ if (message.name !== undefined)
1374
+ writer.tag(2, WireType.LengthDelimited).string(message.name);
1375
+ /* optional string description = 3; */
1376
+ if (message.description !== undefined)
1377
+ writer.tag(3, WireType.LengthDelimited).string(message.description);
1378
+ /* optional string short_name = 4; */
1379
+ if (message.shortName !== undefined)
1380
+ writer.tag(4, WireType.LengthDelimited).string(message.shortName);
1381
+ /* optional string color = 6; */
1382
+ if (message.color !== undefined)
1383
+ writer.tag(6, WireType.LengthDelimited).string(message.color);
1384
+ /* optional resources.jobs.groups.GroupState state = 7; */
1385
+ if (message.state !== undefined)
1386
+ writer.tag(7, WireType.Varint).int32(message.state);
1387
+ /* optional resources.jobs.groups.GroupType type = 8; */
1388
+ if (message.type !== undefined)
1389
+ writer.tag(8, WireType.Varint).int32(message.type);
1390
+ /* optional resources.jobs.groups.GroupMembershipMode membership_mode = 9; */
1391
+ if (message.membershipMode !== undefined)
1392
+ writer.tag(9, WireType.Varint).int32(message.membershipMode);
1393
+ /* optional string sort_rank = 10; */
1394
+ if (message.sortRank !== undefined)
1395
+ writer.tag(10, WireType.LengthDelimited).string(message.sortRank);
1396
+ /* optional resources.access.Access access = 11; */
1397
+ if (message.access)
1398
+ Access.internalBinaryWrite(message.access, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
1399
+ let u = options.writeUnknownFields;
1400
+ if (u !== false)
1401
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1402
+ return writer;
1403
+ }
1404
+ }
1405
+ /**
1406
+ * @generated MessageType for protobuf message services.jobs.UpdateGroupRequest
1407
+ */
1408
+ export const UpdateGroupRequest = new UpdateGroupRequest$Type();
1409
+ // @generated message type with reflection information, may provide speed optimized methods
1410
+ class UpdateGroupResponse$Type extends MessageType<UpdateGroupResponse> {
1411
+ constructor() {
1412
+ super("services.jobs.UpdateGroupResponse", [
1413
+ { no: 1, name: "group", kind: "message", T: () => Group }
1414
+ ]);
1415
+ }
1416
+ create(value?: PartialMessage<UpdateGroupResponse>): UpdateGroupResponse {
1417
+ const message = globalThis.Object.create((this.messagePrototype!));
1418
+ if (value !== undefined)
1419
+ reflectionMergePartial<UpdateGroupResponse>(this, message, value);
1420
+ return message;
1421
+ }
1422
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateGroupResponse): UpdateGroupResponse {
1423
+ let message = target ?? this.create(), end = reader.pos + length;
1424
+ while (reader.pos < end) {
1425
+ let [fieldNo, wireType] = reader.tag();
1426
+ switch (fieldNo) {
1427
+ case /* resources.jobs.groups.Group group */ 1:
1428
+ message.group = Group.internalBinaryRead(reader, reader.uint32(), options, message.group);
1429
+ break;
1430
+ default:
1431
+ let u = options.readUnknownField;
1432
+ if (u === "throw")
1433
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1434
+ let d = reader.skip(wireType);
1435
+ if (u !== false)
1436
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1437
+ }
1438
+ }
1439
+ return message;
1440
+ }
1441
+ internalBinaryWrite(message: UpdateGroupResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1442
+ /* resources.jobs.groups.Group group = 1; */
1443
+ if (message.group)
1444
+ Group.internalBinaryWrite(message.group, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1445
+ let u = options.writeUnknownFields;
1446
+ if (u !== false)
1447
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1448
+ return writer;
1449
+ }
1450
+ }
1451
+ /**
1452
+ * @generated MessageType for protobuf message services.jobs.UpdateGroupResponse
1453
+ */
1454
+ export const UpdateGroupResponse = new UpdateGroupResponse$Type();
1455
+ // @generated message type with reflection information, may provide speed optimized methods
1456
+ class ArchiveGroupRequest$Type extends MessageType<ArchiveGroupRequest> {
1457
+ constructor() {
1458
+ super("services.jobs.ArchiveGroupRequest", [
1459
+ { no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
1460
+ { no: 2, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
1461
+ ]);
1462
+ }
1463
+ create(value?: PartialMessage<ArchiveGroupRequest>): ArchiveGroupRequest {
1464
+ const message = globalThis.Object.create((this.messagePrototype!));
1465
+ message.id = 0;
1466
+ if (value !== undefined)
1467
+ reflectionMergePartial<ArchiveGroupRequest>(this, message, value);
1468
+ return message;
1469
+ }
1470
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ArchiveGroupRequest): ArchiveGroupRequest {
1471
+ let message = target ?? this.create(), end = reader.pos + length;
1472
+ while (reader.pos < end) {
1473
+ let [fieldNo, wireType] = reader.tag();
1474
+ switch (fieldNo) {
1475
+ case /* int64 id */ 1:
1476
+ message.id = reader.int64().toNumber();
1477
+ break;
1478
+ case /* optional string reason */ 2:
1479
+ message.reason = reader.string();
1480
+ break;
1481
+ default:
1482
+ let u = options.readUnknownField;
1483
+ if (u === "throw")
1484
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1485
+ let d = reader.skip(wireType);
1486
+ if (u !== false)
1487
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1488
+ }
1489
+ }
1490
+ return message;
1491
+ }
1492
+ internalBinaryWrite(message: ArchiveGroupRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1493
+ /* int64 id = 1; */
1494
+ if (message.id !== 0)
1495
+ writer.tag(1, WireType.Varint).int64(message.id);
1496
+ /* optional string reason = 2; */
1497
+ if (message.reason !== undefined)
1498
+ writer.tag(2, WireType.LengthDelimited).string(message.reason);
1499
+ let u = options.writeUnknownFields;
1500
+ if (u !== false)
1501
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1502
+ return writer;
1503
+ }
1504
+ }
1505
+ /**
1506
+ * @generated MessageType for protobuf message services.jobs.ArchiveGroupRequest
1507
+ */
1508
+ export const ArchiveGroupRequest = new ArchiveGroupRequest$Type();
1509
+ // @generated message type with reflection information, may provide speed optimized methods
1510
+ class ArchiveGroupResponse$Type extends MessageType<ArchiveGroupResponse> {
1511
+ constructor() {
1512
+ super("services.jobs.ArchiveGroupResponse", [
1513
+ { no: 1, name: "group", kind: "message", T: () => Group }
1514
+ ]);
1515
+ }
1516
+ create(value?: PartialMessage<ArchiveGroupResponse>): ArchiveGroupResponse {
1517
+ const message = globalThis.Object.create((this.messagePrototype!));
1518
+ if (value !== undefined)
1519
+ reflectionMergePartial<ArchiveGroupResponse>(this, message, value);
1520
+ return message;
1521
+ }
1522
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ArchiveGroupResponse): ArchiveGroupResponse {
1523
+ let message = target ?? this.create(), end = reader.pos + length;
1524
+ while (reader.pos < end) {
1525
+ let [fieldNo, wireType] = reader.tag();
1526
+ switch (fieldNo) {
1527
+ case /* resources.jobs.groups.Group group */ 1:
1528
+ message.group = Group.internalBinaryRead(reader, reader.uint32(), options, message.group);
1529
+ break;
1530
+ default:
1531
+ let u = options.readUnknownField;
1532
+ if (u === "throw")
1533
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1534
+ let d = reader.skip(wireType);
1535
+ if (u !== false)
1536
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1537
+ }
1538
+ }
1539
+ return message;
1540
+ }
1541
+ internalBinaryWrite(message: ArchiveGroupResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1542
+ /* resources.jobs.groups.Group group = 1; */
1543
+ if (message.group)
1544
+ Group.internalBinaryWrite(message.group, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1545
+ let u = options.writeUnknownFields;
1546
+ if (u !== false)
1547
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1548
+ return writer;
1549
+ }
1550
+ }
1551
+ /**
1552
+ * @generated MessageType for protobuf message services.jobs.ArchiveGroupResponse
1553
+ */
1554
+ export const ArchiveGroupResponse = new ArchiveGroupResponse$Type();
1555
+ // @generated message type with reflection information, may provide speed optimized methods
1556
+ class RestoreGroupRequest$Type extends MessageType<RestoreGroupRequest> {
1557
+ constructor() {
1558
+ super("services.jobs.RestoreGroupRequest", [
1559
+ { no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
1560
+ { no: 2, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
1561
+ ]);
1562
+ }
1563
+ create(value?: PartialMessage<RestoreGroupRequest>): RestoreGroupRequest {
1564
+ const message = globalThis.Object.create((this.messagePrototype!));
1565
+ message.id = 0;
1566
+ if (value !== undefined)
1567
+ reflectionMergePartial<RestoreGroupRequest>(this, message, value);
1568
+ return message;
1569
+ }
1570
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RestoreGroupRequest): RestoreGroupRequest {
1571
+ let message = target ?? this.create(), end = reader.pos + length;
1572
+ while (reader.pos < end) {
1573
+ let [fieldNo, wireType] = reader.tag();
1574
+ switch (fieldNo) {
1575
+ case /* int64 id */ 1:
1576
+ message.id = reader.int64().toNumber();
1577
+ break;
1578
+ case /* optional string reason */ 2:
1579
+ message.reason = reader.string();
1580
+ break;
1581
+ default:
1582
+ let u = options.readUnknownField;
1583
+ if (u === "throw")
1584
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1585
+ let d = reader.skip(wireType);
1586
+ if (u !== false)
1587
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1588
+ }
1589
+ }
1590
+ return message;
1591
+ }
1592
+ internalBinaryWrite(message: RestoreGroupRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1593
+ /* int64 id = 1; */
1594
+ if (message.id !== 0)
1595
+ writer.tag(1, WireType.Varint).int64(message.id);
1596
+ /* optional string reason = 2; */
1597
+ if (message.reason !== undefined)
1598
+ writer.tag(2, WireType.LengthDelimited).string(message.reason);
1599
+ let u = options.writeUnknownFields;
1600
+ if (u !== false)
1601
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1602
+ return writer;
1603
+ }
1604
+ }
1605
+ /**
1606
+ * @generated MessageType for protobuf message services.jobs.RestoreGroupRequest
1607
+ */
1608
+ export const RestoreGroupRequest = new RestoreGroupRequest$Type();
1609
+ // @generated message type with reflection information, may provide speed optimized methods
1610
+ class RestoreGroupResponse$Type extends MessageType<RestoreGroupResponse> {
1611
+ constructor() {
1612
+ super("services.jobs.RestoreGroupResponse", [
1613
+ { no: 1, name: "group", kind: "message", T: () => Group }
1614
+ ]);
1615
+ }
1616
+ create(value?: PartialMessage<RestoreGroupResponse>): RestoreGroupResponse {
1617
+ const message = globalThis.Object.create((this.messagePrototype!));
1618
+ if (value !== undefined)
1619
+ reflectionMergePartial<RestoreGroupResponse>(this, message, value);
1620
+ return message;
1621
+ }
1622
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RestoreGroupResponse): RestoreGroupResponse {
1623
+ let message = target ?? this.create(), end = reader.pos + length;
1624
+ while (reader.pos < end) {
1625
+ let [fieldNo, wireType] = reader.tag();
1626
+ switch (fieldNo) {
1627
+ case /* resources.jobs.groups.Group group */ 1:
1628
+ message.group = Group.internalBinaryRead(reader, reader.uint32(), options, message.group);
1629
+ break;
1630
+ default:
1631
+ let u = options.readUnknownField;
1632
+ if (u === "throw")
1633
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1634
+ let d = reader.skip(wireType);
1635
+ if (u !== false)
1636
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1637
+ }
1638
+ }
1639
+ return message;
1640
+ }
1641
+ internalBinaryWrite(message: RestoreGroupResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1642
+ /* resources.jobs.groups.Group group = 1; */
1643
+ if (message.group)
1644
+ Group.internalBinaryWrite(message.group, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1645
+ let u = options.writeUnknownFields;
1646
+ if (u !== false)
1647
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1648
+ return writer;
1649
+ }
1650
+ }
1651
+ /**
1652
+ * @generated MessageType for protobuf message services.jobs.RestoreGroupResponse
1653
+ */
1654
+ export const RestoreGroupResponse = new RestoreGroupResponse$Type();
1655
+ // @generated message type with reflection information, may provide speed optimized methods
1656
+ class DeleteGroupLogoRequest$Type extends MessageType<DeleteGroupLogoRequest> {
1657
+ constructor() {
1658
+ super("services.jobs.DeleteGroupLogoRequest", [
1659
+ { no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
1660
+ ]);
1661
+ }
1662
+ create(value?: PartialMessage<DeleteGroupLogoRequest>): DeleteGroupLogoRequest {
1663
+ const message = globalThis.Object.create((this.messagePrototype!));
1664
+ message.id = 0;
1665
+ if (value !== undefined)
1666
+ reflectionMergePartial<DeleteGroupLogoRequest>(this, message, value);
1667
+ return message;
1668
+ }
1669
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteGroupLogoRequest): DeleteGroupLogoRequest {
1670
+ let message = target ?? this.create(), end = reader.pos + length;
1671
+ while (reader.pos < end) {
1672
+ let [fieldNo, wireType] = reader.tag();
1673
+ switch (fieldNo) {
1674
+ case /* int64 id */ 1:
1675
+ message.id = reader.int64().toNumber();
1676
+ break;
1677
+ default:
1678
+ let u = options.readUnknownField;
1679
+ if (u === "throw")
1680
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1681
+ let d = reader.skip(wireType);
1682
+ if (u !== false)
1683
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1684
+ }
1685
+ }
1686
+ return message;
1687
+ }
1688
+ internalBinaryWrite(message: DeleteGroupLogoRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1689
+ /* int64 id = 1; */
1690
+ if (message.id !== 0)
1691
+ writer.tag(1, WireType.Varint).int64(message.id);
1692
+ let u = options.writeUnknownFields;
1693
+ if (u !== false)
1694
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1695
+ return writer;
1696
+ }
1697
+ }
1698
+ /**
1699
+ * @generated MessageType for protobuf message services.jobs.DeleteGroupLogoRequest
1700
+ */
1701
+ export const DeleteGroupLogoRequest = new DeleteGroupLogoRequest$Type();
1702
+ // @generated message type with reflection information, may provide speed optimized methods
1703
+ class DeleteGroupLogoResponse$Type extends MessageType<DeleteGroupLogoResponse> {
1704
+ constructor() {
1705
+ super("services.jobs.DeleteGroupLogoResponse", [
1706
+ { no: 1, name: "group", kind: "message", T: () => Group }
1707
+ ]);
1708
+ }
1709
+ create(value?: PartialMessage<DeleteGroupLogoResponse>): DeleteGroupLogoResponse {
1710
+ const message = globalThis.Object.create((this.messagePrototype!));
1711
+ if (value !== undefined)
1712
+ reflectionMergePartial<DeleteGroupLogoResponse>(this, message, value);
1713
+ return message;
1714
+ }
1715
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteGroupLogoResponse): DeleteGroupLogoResponse {
1716
+ let message = target ?? this.create(), end = reader.pos + length;
1717
+ while (reader.pos < end) {
1718
+ let [fieldNo, wireType] = reader.tag();
1719
+ switch (fieldNo) {
1720
+ case /* resources.jobs.groups.Group group */ 1:
1721
+ message.group = Group.internalBinaryRead(reader, reader.uint32(), options, message.group);
1722
+ break;
1723
+ default:
1724
+ let u = options.readUnknownField;
1725
+ if (u === "throw")
1726
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1727
+ let d = reader.skip(wireType);
1728
+ if (u !== false)
1729
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1730
+ }
1731
+ }
1732
+ return message;
1733
+ }
1734
+ internalBinaryWrite(message: DeleteGroupLogoResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1735
+ /* resources.jobs.groups.Group group = 1; */
1736
+ if (message.group)
1737
+ Group.internalBinaryWrite(message.group, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1738
+ let u = options.writeUnknownFields;
1739
+ if (u !== false)
1740
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1741
+ return writer;
1742
+ }
1743
+ }
1744
+ /**
1745
+ * @generated MessageType for protobuf message services.jobs.DeleteGroupLogoResponse
1746
+ */
1747
+ export const DeleteGroupLogoResponse = new DeleteGroupLogoResponse$Type();
1748
+ // @generated message type with reflection information, may provide speed optimized methods
1749
+ class ListGroupMembersRequest$Type extends MessageType<ListGroupMembersRequest> {
1750
+ constructor() {
1751
+ super("services.jobs.ListGroupMembersRequest", [
1752
+ { no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
1753
+ { no: 2, name: "sort", kind: "message", T: () => Sort },
1754
+ { no: 3, name: "group_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
1755
+ { no: 4, name: "search", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
1756
+ { no: 5, name: "include_excluded", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
1757
+ { no: 6, name: "include_leaders", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
1758
+ { no: 7, name: "include_reasons", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
1759
+ { no: 8, name: "sources", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.jobs.groups.GroupMemberSource", GroupMemberSource, "GROUP_MEMBER_SOURCE_"], options: { "buf.validate.field": { repeated: { maxItems: "3", items: { enum: { definedOnly: true } } } } } }
1760
+ ]);
1761
+ }
1762
+ create(value?: PartialMessage<ListGroupMembersRequest>): ListGroupMembersRequest {
1763
+ const message = globalThis.Object.create((this.messagePrototype!));
1764
+ message.groupId = 0;
1765
+ message.includeExcluded = false;
1766
+ message.includeLeaders = false;
1767
+ message.includeReasons = false;
1768
+ message.sources = [];
1769
+ if (value !== undefined)
1770
+ reflectionMergePartial<ListGroupMembersRequest>(this, message, value);
1771
+ return message;
1772
+ }
1773
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListGroupMembersRequest): ListGroupMembersRequest {
1774
+ let message = target ?? this.create(), end = reader.pos + length;
1775
+ while (reader.pos < end) {
1776
+ let [fieldNo, wireType] = reader.tag();
1777
+ switch (fieldNo) {
1778
+ case /* resources.common.database.PaginationRequest pagination */ 1:
1779
+ message.pagination = PaginationRequest.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
1780
+ break;
1781
+ case /* optional resources.common.database.Sort sort */ 2:
1782
+ message.sort = Sort.internalBinaryRead(reader, reader.uint32(), options, message.sort);
1783
+ break;
1784
+ case /* int64 group_id */ 3:
1785
+ message.groupId = reader.int64().toNumber();
1786
+ break;
1787
+ case /* optional string search */ 4:
1788
+ message.search = reader.string();
1789
+ break;
1790
+ case /* bool include_excluded */ 5:
1791
+ message.includeExcluded = reader.bool();
1792
+ break;
1793
+ case /* bool include_leaders */ 6:
1794
+ message.includeLeaders = reader.bool();
1795
+ break;
1796
+ case /* bool include_reasons */ 7:
1797
+ message.includeReasons = reader.bool();
1798
+ break;
1799
+ case /* repeated resources.jobs.groups.GroupMemberSource sources */ 8:
1800
+ if (wireType === WireType.LengthDelimited)
1801
+ for (let e = reader.int32() + reader.pos; reader.pos < e;)
1802
+ message.sources.push(reader.int32());
1803
+ else
1804
+ message.sources.push(reader.int32());
1805
+ break;
1806
+ default:
1807
+ let u = options.readUnknownField;
1808
+ if (u === "throw")
1809
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1810
+ let d = reader.skip(wireType);
1811
+ if (u !== false)
1812
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1813
+ }
1814
+ }
1815
+ return message;
1816
+ }
1817
+ internalBinaryWrite(message: ListGroupMembersRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1818
+ /* resources.common.database.PaginationRequest pagination = 1; */
1819
+ if (message.pagination)
1820
+ PaginationRequest.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1821
+ /* optional resources.common.database.Sort sort = 2; */
1822
+ if (message.sort)
1823
+ Sort.internalBinaryWrite(message.sort, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
1824
+ /* int64 group_id = 3; */
1825
+ if (message.groupId !== 0)
1826
+ writer.tag(3, WireType.Varint).int64(message.groupId);
1827
+ /* optional string search = 4; */
1828
+ if (message.search !== undefined)
1829
+ writer.tag(4, WireType.LengthDelimited).string(message.search);
1830
+ /* bool include_excluded = 5; */
1831
+ if (message.includeExcluded !== false)
1832
+ writer.tag(5, WireType.Varint).bool(message.includeExcluded);
1833
+ /* bool include_leaders = 6; */
1834
+ if (message.includeLeaders !== false)
1835
+ writer.tag(6, WireType.Varint).bool(message.includeLeaders);
1836
+ /* bool include_reasons = 7; */
1837
+ if (message.includeReasons !== false)
1838
+ writer.tag(7, WireType.Varint).bool(message.includeReasons);
1839
+ /* repeated resources.jobs.groups.GroupMemberSource sources = 8; */
1840
+ if (message.sources.length) {
1841
+ writer.tag(8, WireType.LengthDelimited).fork();
1842
+ for (let i = 0; i < message.sources.length; i++)
1843
+ writer.int32(message.sources[i]);
1844
+ writer.join();
1845
+ }
1846
+ let u = options.writeUnknownFields;
1847
+ if (u !== false)
1848
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1849
+ return writer;
1850
+ }
1851
+ }
1852
+ /**
1853
+ * @generated MessageType for protobuf message services.jobs.ListGroupMembersRequest
1854
+ */
1855
+ export const ListGroupMembersRequest = new ListGroupMembersRequest$Type();
1856
+ // @generated message type with reflection information, may provide speed optimized methods
1857
+ class ListGroupMembersResponse$Type extends MessageType<ListGroupMembersResponse> {
1858
+ constructor() {
1859
+ super("services.jobs.ListGroupMembersResponse", [
1860
+ { no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
1861
+ { no: 2, name: "members", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => GroupResolvedMember, options: { "codegen.itemslen.enabled": true } }
1862
+ ]);
1863
+ }
1864
+ create(value?: PartialMessage<ListGroupMembersResponse>): ListGroupMembersResponse {
1865
+ const message = globalThis.Object.create((this.messagePrototype!));
1866
+ message.members = [];
1867
+ if (value !== undefined)
1868
+ reflectionMergePartial<ListGroupMembersResponse>(this, message, value);
1869
+ return message;
1870
+ }
1871
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListGroupMembersResponse): ListGroupMembersResponse {
1872
+ let message = target ?? this.create(), end = reader.pos + length;
1873
+ while (reader.pos < end) {
1874
+ let [fieldNo, wireType] = reader.tag();
1875
+ switch (fieldNo) {
1876
+ case /* resources.common.database.PaginationResponse pagination */ 1:
1877
+ message.pagination = PaginationResponse.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
1878
+ break;
1879
+ case /* repeated resources.jobs.groups.GroupResolvedMember members */ 2:
1880
+ message.members.push(GroupResolvedMember.internalBinaryRead(reader, reader.uint32(), options));
1881
+ break;
1882
+ default:
1883
+ let u = options.readUnknownField;
1884
+ if (u === "throw")
1885
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1886
+ let d = reader.skip(wireType);
1887
+ if (u !== false)
1888
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1889
+ }
1890
+ }
1891
+ return message;
1892
+ }
1893
+ internalBinaryWrite(message: ListGroupMembersResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1894
+ /* resources.common.database.PaginationResponse pagination = 1; */
1895
+ if (message.pagination)
1896
+ PaginationResponse.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1897
+ /* repeated resources.jobs.groups.GroupResolvedMember members = 2; */
1898
+ for (let i = 0; i < message.members.length; i++)
1899
+ GroupResolvedMember.internalBinaryWrite(message.members[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
1900
+ let u = options.writeUnknownFields;
1901
+ if (u !== false)
1902
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1903
+ return writer;
1904
+ }
1905
+ }
1906
+ /**
1907
+ * @generated MessageType for protobuf message services.jobs.ListGroupMembersResponse
1908
+ */
1909
+ export const ListGroupMembersResponse = new ListGroupMembersResponse$Type();
1910
+ // @generated message type with reflection information, may provide speed optimized methods
1911
+ class ListGroupRulesRequest$Type extends MessageType<ListGroupRulesRequest> {
1912
+ constructor() {
1913
+ super("services.jobs.ListGroupRulesRequest", [
1914
+ { no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
1915
+ { no: 2, name: "group_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
1916
+ ]);
1917
+ }
1918
+ create(value?: PartialMessage<ListGroupRulesRequest>): ListGroupRulesRequest {
1919
+ const message = globalThis.Object.create((this.messagePrototype!));
1920
+ message.groupId = 0;
1921
+ if (value !== undefined)
1922
+ reflectionMergePartial<ListGroupRulesRequest>(this, message, value);
1923
+ return message;
1924
+ }
1925
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListGroupRulesRequest): ListGroupRulesRequest {
1926
+ let message = target ?? this.create(), end = reader.pos + length;
1927
+ while (reader.pos < end) {
1928
+ let [fieldNo, wireType] = reader.tag();
1929
+ switch (fieldNo) {
1930
+ case /* resources.common.database.PaginationRequest pagination */ 1:
1931
+ message.pagination = PaginationRequest.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
1932
+ break;
1933
+ case /* int64 group_id */ 2:
1934
+ message.groupId = reader.int64().toNumber();
1935
+ break;
1936
+ default:
1937
+ let u = options.readUnknownField;
1938
+ if (u === "throw")
1939
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1940
+ let d = reader.skip(wireType);
1941
+ if (u !== false)
1942
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1943
+ }
1944
+ }
1945
+ return message;
1946
+ }
1947
+ internalBinaryWrite(message: ListGroupRulesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1948
+ /* resources.common.database.PaginationRequest pagination = 1; */
1949
+ if (message.pagination)
1950
+ PaginationRequest.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1951
+ /* int64 group_id = 2; */
1952
+ if (message.groupId !== 0)
1953
+ writer.tag(2, WireType.Varint).int64(message.groupId);
1954
+ let u = options.writeUnknownFields;
1955
+ if (u !== false)
1956
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1957
+ return writer;
1958
+ }
1959
+ }
1960
+ /**
1961
+ * @generated MessageType for protobuf message services.jobs.ListGroupRulesRequest
1962
+ */
1963
+ export const ListGroupRulesRequest = new ListGroupRulesRequest$Type();
1964
+ // @generated message type with reflection information, may provide speed optimized methods
1965
+ class ListGroupRulesResponse$Type extends MessageType<ListGroupRulesResponse> {
1966
+ constructor() {
1967
+ super("services.jobs.ListGroupRulesResponse", [
1968
+ { no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
1969
+ { no: 2, name: "rules", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => GroupRule, options: { "codegen.itemslen.enabled": true } }
1970
+ ]);
1971
+ }
1972
+ create(value?: PartialMessage<ListGroupRulesResponse>): ListGroupRulesResponse {
1973
+ const message = globalThis.Object.create((this.messagePrototype!));
1974
+ message.rules = [];
1975
+ if (value !== undefined)
1976
+ reflectionMergePartial<ListGroupRulesResponse>(this, message, value);
1977
+ return message;
1978
+ }
1979
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListGroupRulesResponse): ListGroupRulesResponse {
1980
+ let message = target ?? this.create(), end = reader.pos + length;
1981
+ while (reader.pos < end) {
1982
+ let [fieldNo, wireType] = reader.tag();
1983
+ switch (fieldNo) {
1984
+ case /* resources.common.database.PaginationResponse pagination */ 1:
1985
+ message.pagination = PaginationResponse.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
1986
+ break;
1987
+ case /* repeated resources.jobs.groups.GroupRule rules */ 2:
1988
+ message.rules.push(GroupRule.internalBinaryRead(reader, reader.uint32(), options));
1989
+ break;
1990
+ default:
1991
+ let u = options.readUnknownField;
1992
+ if (u === "throw")
1993
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1994
+ let d = reader.skip(wireType);
1995
+ if (u !== false)
1996
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1997
+ }
1998
+ }
1999
+ return message;
2000
+ }
2001
+ internalBinaryWrite(message: ListGroupRulesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2002
+ /* resources.common.database.PaginationResponse pagination = 1; */
2003
+ if (message.pagination)
2004
+ PaginationResponse.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2005
+ /* repeated resources.jobs.groups.GroupRule rules = 2; */
2006
+ for (let i = 0; i < message.rules.length; i++)
2007
+ GroupRule.internalBinaryWrite(message.rules[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
2008
+ let u = options.writeUnknownFields;
2009
+ if (u !== false)
2010
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2011
+ return writer;
2012
+ }
2013
+ }
2014
+ /**
2015
+ * @generated MessageType for protobuf message services.jobs.ListGroupRulesResponse
2016
+ */
2017
+ export const ListGroupRulesResponse = new ListGroupRulesResponse$Type();
2018
+ // @generated message type with reflection information, may provide speed optimized methods
2019
+ class ListGroupManualMembersRequest$Type extends MessageType<ListGroupManualMembersRequest> {
2020
+ constructor() {
2021
+ super("services.jobs.ListGroupManualMembersRequest", [
2022
+ { no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
2023
+ { no: 2, name: "group_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
2024
+ { no: 3, name: "search", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
2025
+ ]);
2026
+ }
2027
+ create(value?: PartialMessage<ListGroupManualMembersRequest>): ListGroupManualMembersRequest {
2028
+ const message = globalThis.Object.create((this.messagePrototype!));
2029
+ message.groupId = 0;
2030
+ if (value !== undefined)
2031
+ reflectionMergePartial<ListGroupManualMembersRequest>(this, message, value);
2032
+ return message;
2033
+ }
2034
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListGroupManualMembersRequest): ListGroupManualMembersRequest {
2035
+ let message = target ?? this.create(), end = reader.pos + length;
2036
+ while (reader.pos < end) {
2037
+ let [fieldNo, wireType] = reader.tag();
2038
+ switch (fieldNo) {
2039
+ case /* resources.common.database.PaginationRequest pagination */ 1:
2040
+ message.pagination = PaginationRequest.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
2041
+ break;
2042
+ case /* int64 group_id */ 2:
2043
+ message.groupId = reader.int64().toNumber();
2044
+ break;
2045
+ case /* optional string search */ 3:
2046
+ message.search = reader.string();
2047
+ break;
2048
+ default:
2049
+ let u = options.readUnknownField;
2050
+ if (u === "throw")
2051
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2052
+ let d = reader.skip(wireType);
2053
+ if (u !== false)
2054
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2055
+ }
2056
+ }
2057
+ return message;
2058
+ }
2059
+ internalBinaryWrite(message: ListGroupManualMembersRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2060
+ /* resources.common.database.PaginationRequest pagination = 1; */
2061
+ if (message.pagination)
2062
+ PaginationRequest.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2063
+ /* int64 group_id = 2; */
2064
+ if (message.groupId !== 0)
2065
+ writer.tag(2, WireType.Varint).int64(message.groupId);
2066
+ /* optional string search = 3; */
2067
+ if (message.search !== undefined)
2068
+ writer.tag(3, WireType.LengthDelimited).string(message.search);
2069
+ let u = options.writeUnknownFields;
2070
+ if (u !== false)
2071
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2072
+ return writer;
2073
+ }
2074
+ }
2075
+ /**
2076
+ * @generated MessageType for protobuf message services.jobs.ListGroupManualMembersRequest
2077
+ */
2078
+ export const ListGroupManualMembersRequest = new ListGroupManualMembersRequest$Type();
2079
+ // @generated message type with reflection information, may provide speed optimized methods
2080
+ class ListGroupManualMembersResponse$Type extends MessageType<ListGroupManualMembersResponse> {
2081
+ constructor() {
2082
+ super("services.jobs.ListGroupManualMembersResponse", [
2083
+ { no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
2084
+ { no: 2, name: "manual_members", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => GroupManualMember, options: { "codegen.itemslen.enabled": true } }
2085
+ ]);
2086
+ }
2087
+ create(value?: PartialMessage<ListGroupManualMembersResponse>): ListGroupManualMembersResponse {
2088
+ const message = globalThis.Object.create((this.messagePrototype!));
2089
+ message.manualMembers = [];
2090
+ if (value !== undefined)
2091
+ reflectionMergePartial<ListGroupManualMembersResponse>(this, message, value);
2092
+ return message;
2093
+ }
2094
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListGroupManualMembersResponse): ListGroupManualMembersResponse {
2095
+ let message = target ?? this.create(), end = reader.pos + length;
2096
+ while (reader.pos < end) {
2097
+ let [fieldNo, wireType] = reader.tag();
2098
+ switch (fieldNo) {
2099
+ case /* resources.common.database.PaginationResponse pagination */ 1:
2100
+ message.pagination = PaginationResponse.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
2101
+ break;
2102
+ case /* repeated resources.jobs.groups.GroupManualMember manual_members */ 2:
2103
+ message.manualMembers.push(GroupManualMember.internalBinaryRead(reader, reader.uint32(), options));
2104
+ break;
2105
+ default:
2106
+ let u = options.readUnknownField;
2107
+ if (u === "throw")
2108
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2109
+ let d = reader.skip(wireType);
2110
+ if (u !== false)
2111
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2112
+ }
2113
+ }
2114
+ return message;
2115
+ }
2116
+ internalBinaryWrite(message: ListGroupManualMembersResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2117
+ /* resources.common.database.PaginationResponse pagination = 1; */
2118
+ if (message.pagination)
2119
+ PaginationResponse.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2120
+ /* repeated resources.jobs.groups.GroupManualMember manual_members = 2; */
2121
+ for (let i = 0; i < message.manualMembers.length; i++)
2122
+ GroupManualMember.internalBinaryWrite(message.manualMembers[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
2123
+ let u = options.writeUnknownFields;
2124
+ if (u !== false)
2125
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2126
+ return writer;
2127
+ }
2128
+ }
2129
+ /**
2130
+ * @generated MessageType for protobuf message services.jobs.ListGroupManualMembersResponse
2131
+ */
2132
+ export const ListGroupManualMembersResponse = new ListGroupManualMembersResponse$Type();
2133
+ // @generated message type with reflection information, may provide speed optimized methods
2134
+ class ListGroupMemberExclusionsRequest$Type extends MessageType<ListGroupMemberExclusionsRequest> {
2135
+ constructor() {
2136
+ super("services.jobs.ListGroupMemberExclusionsRequest", [
2137
+ { no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
2138
+ { no: 2, name: "group_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
2139
+ { no: 3, name: "search", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
2140
+ ]);
2141
+ }
2142
+ create(value?: PartialMessage<ListGroupMemberExclusionsRequest>): ListGroupMemberExclusionsRequest {
2143
+ const message = globalThis.Object.create((this.messagePrototype!));
2144
+ message.groupId = 0;
2145
+ if (value !== undefined)
2146
+ reflectionMergePartial<ListGroupMemberExclusionsRequest>(this, message, value);
2147
+ return message;
2148
+ }
2149
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListGroupMemberExclusionsRequest): ListGroupMemberExclusionsRequest {
2150
+ let message = target ?? this.create(), end = reader.pos + length;
2151
+ while (reader.pos < end) {
2152
+ let [fieldNo, wireType] = reader.tag();
2153
+ switch (fieldNo) {
2154
+ case /* resources.common.database.PaginationRequest pagination */ 1:
2155
+ message.pagination = PaginationRequest.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
2156
+ break;
2157
+ case /* int64 group_id */ 2:
2158
+ message.groupId = reader.int64().toNumber();
2159
+ break;
2160
+ case /* optional string search */ 3:
2161
+ message.search = reader.string();
2162
+ break;
2163
+ default:
2164
+ let u = options.readUnknownField;
2165
+ if (u === "throw")
2166
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2167
+ let d = reader.skip(wireType);
2168
+ if (u !== false)
2169
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2170
+ }
2171
+ }
2172
+ return message;
2173
+ }
2174
+ internalBinaryWrite(message: ListGroupMemberExclusionsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2175
+ /* resources.common.database.PaginationRequest pagination = 1; */
2176
+ if (message.pagination)
2177
+ PaginationRequest.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2178
+ /* int64 group_id = 2; */
2179
+ if (message.groupId !== 0)
2180
+ writer.tag(2, WireType.Varint).int64(message.groupId);
2181
+ /* optional string search = 3; */
2182
+ if (message.search !== undefined)
2183
+ writer.tag(3, WireType.LengthDelimited).string(message.search);
2184
+ let u = options.writeUnknownFields;
2185
+ if (u !== false)
2186
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2187
+ return writer;
2188
+ }
2189
+ }
2190
+ /**
2191
+ * @generated MessageType for protobuf message services.jobs.ListGroupMemberExclusionsRequest
2192
+ */
2193
+ export const ListGroupMemberExclusionsRequest = new ListGroupMemberExclusionsRequest$Type();
2194
+ // @generated message type with reflection information, may provide speed optimized methods
2195
+ class ListGroupMemberExclusionsResponse$Type extends MessageType<ListGroupMemberExclusionsResponse> {
2196
+ constructor() {
2197
+ super("services.jobs.ListGroupMemberExclusionsResponse", [
2198
+ { no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
2199
+ { no: 2, name: "exclusions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => GroupMemberExclusion, options: { "codegen.itemslen.enabled": true } }
2200
+ ]);
2201
+ }
2202
+ create(value?: PartialMessage<ListGroupMemberExclusionsResponse>): ListGroupMemberExclusionsResponse {
2203
+ const message = globalThis.Object.create((this.messagePrototype!));
2204
+ message.exclusions = [];
2205
+ if (value !== undefined)
2206
+ reflectionMergePartial<ListGroupMemberExclusionsResponse>(this, message, value);
2207
+ return message;
2208
+ }
2209
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListGroupMemberExclusionsResponse): ListGroupMemberExclusionsResponse {
2210
+ let message = target ?? this.create(), end = reader.pos + length;
2211
+ while (reader.pos < end) {
2212
+ let [fieldNo, wireType] = reader.tag();
2213
+ switch (fieldNo) {
2214
+ case /* resources.common.database.PaginationResponse pagination */ 1:
2215
+ message.pagination = PaginationResponse.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
2216
+ break;
2217
+ case /* repeated resources.jobs.groups.GroupMemberExclusion exclusions */ 2:
2218
+ message.exclusions.push(GroupMemberExclusion.internalBinaryRead(reader, reader.uint32(), options));
2219
+ break;
2220
+ default:
2221
+ let u = options.readUnknownField;
2222
+ if (u === "throw")
2223
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2224
+ let d = reader.skip(wireType);
2225
+ if (u !== false)
2226
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2227
+ }
2228
+ }
2229
+ return message;
2230
+ }
2231
+ internalBinaryWrite(message: ListGroupMemberExclusionsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2232
+ /* resources.common.database.PaginationResponse pagination = 1; */
2233
+ if (message.pagination)
2234
+ PaginationResponse.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2235
+ /* repeated resources.jobs.groups.GroupMemberExclusion exclusions = 2; */
2236
+ for (let i = 0; i < message.exclusions.length; i++)
2237
+ GroupMemberExclusion.internalBinaryWrite(message.exclusions[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
2238
+ let u = options.writeUnknownFields;
2239
+ if (u !== false)
2240
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2241
+ return writer;
2242
+ }
2243
+ }
2244
+ /**
2245
+ * @generated MessageType for protobuf message services.jobs.ListGroupMemberExclusionsResponse
2246
+ */
2247
+ export const ListGroupMemberExclusionsResponse = new ListGroupMemberExclusionsResponse$Type();
2248
+ // @generated message type with reflection information, may provide speed optimized methods
2249
+ class ListGroupLeadersRequest$Type extends MessageType<ListGroupLeadersRequest> {
2250
+ constructor() {
2251
+ super("services.jobs.ListGroupLeadersRequest", [
2252
+ { no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
2253
+ { no: 2, name: "group_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
2254
+ { no: 3, name: "search", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
2255
+ ]);
2256
+ }
2257
+ create(value?: PartialMessage<ListGroupLeadersRequest>): ListGroupLeadersRequest {
2258
+ const message = globalThis.Object.create((this.messagePrototype!));
2259
+ message.groupId = 0;
2260
+ if (value !== undefined)
2261
+ reflectionMergePartial<ListGroupLeadersRequest>(this, message, value);
2262
+ return message;
2263
+ }
2264
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListGroupLeadersRequest): ListGroupLeadersRequest {
2265
+ let message = target ?? this.create(), end = reader.pos + length;
2266
+ while (reader.pos < end) {
2267
+ let [fieldNo, wireType] = reader.tag();
2268
+ switch (fieldNo) {
2269
+ case /* resources.common.database.PaginationRequest pagination */ 1:
2270
+ message.pagination = PaginationRequest.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
2271
+ break;
2272
+ case /* int64 group_id */ 2:
2273
+ message.groupId = reader.int64().toNumber();
2274
+ break;
2275
+ case /* optional string search */ 3:
2276
+ message.search = reader.string();
2277
+ break;
2278
+ default:
2279
+ let u = options.readUnknownField;
2280
+ if (u === "throw")
2281
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2282
+ let d = reader.skip(wireType);
2283
+ if (u !== false)
2284
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2285
+ }
2286
+ }
2287
+ return message;
2288
+ }
2289
+ internalBinaryWrite(message: ListGroupLeadersRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2290
+ /* resources.common.database.PaginationRequest pagination = 1; */
2291
+ if (message.pagination)
2292
+ PaginationRequest.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2293
+ /* int64 group_id = 2; */
2294
+ if (message.groupId !== 0)
2295
+ writer.tag(2, WireType.Varint).int64(message.groupId);
2296
+ /* optional string search = 3; */
2297
+ if (message.search !== undefined)
2298
+ writer.tag(3, WireType.LengthDelimited).string(message.search);
2299
+ let u = options.writeUnknownFields;
2300
+ if (u !== false)
2301
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2302
+ return writer;
2303
+ }
2304
+ }
2305
+ /**
2306
+ * @generated MessageType for protobuf message services.jobs.ListGroupLeadersRequest
2307
+ */
2308
+ export const ListGroupLeadersRequest = new ListGroupLeadersRequest$Type();
2309
+ // @generated message type with reflection information, may provide speed optimized methods
2310
+ class ListGroupLeadersResponse$Type extends MessageType<ListGroupLeadersResponse> {
2311
+ constructor() {
2312
+ super("services.jobs.ListGroupLeadersResponse", [
2313
+ { no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
2314
+ { no: 2, name: "leaders", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => GroupLeader, options: { "codegen.itemslen.enabled": true } }
2315
+ ]);
2316
+ }
2317
+ create(value?: PartialMessage<ListGroupLeadersResponse>): ListGroupLeadersResponse {
2318
+ const message = globalThis.Object.create((this.messagePrototype!));
2319
+ message.leaders = [];
2320
+ if (value !== undefined)
2321
+ reflectionMergePartial<ListGroupLeadersResponse>(this, message, value);
2322
+ return message;
2323
+ }
2324
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListGroupLeadersResponse): ListGroupLeadersResponse {
2325
+ let message = target ?? this.create(), end = reader.pos + length;
2326
+ while (reader.pos < end) {
2327
+ let [fieldNo, wireType] = reader.tag();
2328
+ switch (fieldNo) {
2329
+ case /* resources.common.database.PaginationResponse pagination */ 1:
2330
+ message.pagination = PaginationResponse.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
2331
+ break;
2332
+ case /* repeated resources.jobs.groups.GroupLeader leaders */ 2:
2333
+ message.leaders.push(GroupLeader.internalBinaryRead(reader, reader.uint32(), options));
2334
+ break;
2335
+ default:
2336
+ let u = options.readUnknownField;
2337
+ if (u === "throw")
2338
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2339
+ let d = reader.skip(wireType);
2340
+ if (u !== false)
2341
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2342
+ }
2343
+ }
2344
+ return message;
2345
+ }
2346
+ internalBinaryWrite(message: ListGroupLeadersResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2347
+ /* resources.common.database.PaginationResponse pagination = 1; */
2348
+ if (message.pagination)
2349
+ PaginationResponse.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2350
+ /* repeated resources.jobs.groups.GroupLeader leaders = 2; */
2351
+ for (let i = 0; i < message.leaders.length; i++)
2352
+ GroupLeader.internalBinaryWrite(message.leaders[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
2353
+ let u = options.writeUnknownFields;
2354
+ if (u !== false)
2355
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2356
+ return writer;
2357
+ }
2358
+ }
2359
+ /**
2360
+ * @generated MessageType for protobuf message services.jobs.ListGroupLeadersResponse
2361
+ */
2362
+ export const ListGroupLeadersResponse = new ListGroupLeadersResponse$Type();
2363
+ // @generated message type with reflection information, may provide speed optimized methods
2364
+ class AddGroupMemberRequest$Type extends MessageType<AddGroupMemberRequest> {
2365
+ constructor() {
2366
+ super("services.jobs.AddGroupMemberRequest", [
2367
+ { no: 1, name: "group_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
2368
+ { no: 2, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
2369
+ { no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
2370
+ { no: 4, name: "skip_notification", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
2371
+ ]);
2372
+ }
2373
+ create(value?: PartialMessage<AddGroupMemberRequest>): AddGroupMemberRequest {
2374
+ const message = globalThis.Object.create((this.messagePrototype!));
2375
+ message.groupId = 0;
2376
+ message.userId = 0;
2377
+ message.skipNotification = false;
2378
+ if (value !== undefined)
2379
+ reflectionMergePartial<AddGroupMemberRequest>(this, message, value);
2380
+ return message;
2381
+ }
2382
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AddGroupMemberRequest): AddGroupMemberRequest {
2383
+ let message = target ?? this.create(), end = reader.pos + length;
2384
+ while (reader.pos < end) {
2385
+ let [fieldNo, wireType] = reader.tag();
2386
+ switch (fieldNo) {
2387
+ case /* int64 group_id */ 1:
2388
+ message.groupId = reader.int64().toNumber();
2389
+ break;
2390
+ case /* int32 user_id */ 2:
2391
+ message.userId = reader.int32();
2392
+ break;
2393
+ case /* optional string reason */ 3:
2394
+ message.reason = reader.string();
2395
+ break;
2396
+ case /* bool skip_notification */ 4:
2397
+ message.skipNotification = reader.bool();
2398
+ break;
2399
+ default:
2400
+ let u = options.readUnknownField;
2401
+ if (u === "throw")
2402
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2403
+ let d = reader.skip(wireType);
2404
+ if (u !== false)
2405
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2406
+ }
2407
+ }
2408
+ return message;
2409
+ }
2410
+ internalBinaryWrite(message: AddGroupMemberRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2411
+ /* int64 group_id = 1; */
2412
+ if (message.groupId !== 0)
2413
+ writer.tag(1, WireType.Varint).int64(message.groupId);
2414
+ /* int32 user_id = 2; */
2415
+ if (message.userId !== 0)
2416
+ writer.tag(2, WireType.Varint).int32(message.userId);
2417
+ /* optional string reason = 3; */
2418
+ if (message.reason !== undefined)
2419
+ writer.tag(3, WireType.LengthDelimited).string(message.reason);
2420
+ /* bool skip_notification = 4; */
2421
+ if (message.skipNotification !== false)
2422
+ writer.tag(4, WireType.Varint).bool(message.skipNotification);
2423
+ let u = options.writeUnknownFields;
2424
+ if (u !== false)
2425
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2426
+ return writer;
2427
+ }
2428
+ }
2429
+ /**
2430
+ * @generated MessageType for protobuf message services.jobs.AddGroupMemberRequest
2431
+ */
2432
+ export const AddGroupMemberRequest = new AddGroupMemberRequest$Type();
2433
+ // @generated message type with reflection information, may provide speed optimized methods
2434
+ class AddGroupMemberResponse$Type extends MessageType<AddGroupMemberResponse> {
2435
+ constructor() {
2436
+ super("services.jobs.AddGroupMemberResponse", [
2437
+ { no: 1, name: "member", kind: "message", T: () => GroupManualMember },
2438
+ { no: 2, name: "group", kind: "message", T: () => Group }
2439
+ ]);
2440
+ }
2441
+ create(value?: PartialMessage<AddGroupMemberResponse>): AddGroupMemberResponse {
2442
+ const message = globalThis.Object.create((this.messagePrototype!));
2443
+ if (value !== undefined)
2444
+ reflectionMergePartial<AddGroupMemberResponse>(this, message, value);
2445
+ return message;
2446
+ }
2447
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AddGroupMemberResponse): AddGroupMemberResponse {
2448
+ let message = target ?? this.create(), end = reader.pos + length;
2449
+ while (reader.pos < end) {
2450
+ let [fieldNo, wireType] = reader.tag();
2451
+ switch (fieldNo) {
2452
+ case /* resources.jobs.groups.GroupManualMember member */ 1:
2453
+ message.member = GroupManualMember.internalBinaryRead(reader, reader.uint32(), options, message.member);
2454
+ break;
2455
+ case /* resources.jobs.groups.Group group */ 2:
2456
+ message.group = Group.internalBinaryRead(reader, reader.uint32(), options, message.group);
2457
+ break;
2458
+ default:
2459
+ let u = options.readUnknownField;
2460
+ if (u === "throw")
2461
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2462
+ let d = reader.skip(wireType);
2463
+ if (u !== false)
2464
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2465
+ }
2466
+ }
2467
+ return message;
2468
+ }
2469
+ internalBinaryWrite(message: AddGroupMemberResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2470
+ /* resources.jobs.groups.GroupManualMember member = 1; */
2471
+ if (message.member)
2472
+ GroupManualMember.internalBinaryWrite(message.member, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2473
+ /* resources.jobs.groups.Group group = 2; */
2474
+ if (message.group)
2475
+ Group.internalBinaryWrite(message.group, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
2476
+ let u = options.writeUnknownFields;
2477
+ if (u !== false)
2478
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2479
+ return writer;
2480
+ }
2481
+ }
2482
+ /**
2483
+ * @generated MessageType for protobuf message services.jobs.AddGroupMemberResponse
2484
+ */
2485
+ export const AddGroupMemberResponse = new AddGroupMemberResponse$Type();
2486
+ // @generated message type with reflection information, may provide speed optimized methods
2487
+ class RemoveGroupMemberRequest$Type extends MessageType<RemoveGroupMemberRequest> {
2488
+ constructor() {
2489
+ super("services.jobs.RemoveGroupMemberRequest", [
2490
+ { no: 1, name: "group_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
2491
+ { no: 2, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
2492
+ { no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
2493
+ { no: 4, name: "skip_notification", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
2494
+ ]);
2495
+ }
2496
+ create(value?: PartialMessage<RemoveGroupMemberRequest>): RemoveGroupMemberRequest {
2497
+ const message = globalThis.Object.create((this.messagePrototype!));
2498
+ message.groupId = 0;
2499
+ message.userId = 0;
2500
+ message.skipNotification = false;
2501
+ if (value !== undefined)
2502
+ reflectionMergePartial<RemoveGroupMemberRequest>(this, message, value);
2503
+ return message;
2504
+ }
2505
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RemoveGroupMemberRequest): RemoveGroupMemberRequest {
2506
+ let message = target ?? this.create(), end = reader.pos + length;
2507
+ while (reader.pos < end) {
2508
+ let [fieldNo, wireType] = reader.tag();
2509
+ switch (fieldNo) {
2510
+ case /* int64 group_id */ 1:
2511
+ message.groupId = reader.int64().toNumber();
2512
+ break;
2513
+ case /* int32 user_id */ 2:
2514
+ message.userId = reader.int32();
2515
+ break;
2516
+ case /* optional string reason */ 3:
2517
+ message.reason = reader.string();
2518
+ break;
2519
+ case /* bool skip_notification */ 4:
2520
+ message.skipNotification = reader.bool();
2521
+ break;
2522
+ default:
2523
+ let u = options.readUnknownField;
2524
+ if (u === "throw")
2525
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2526
+ let d = reader.skip(wireType);
2527
+ if (u !== false)
2528
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2529
+ }
2530
+ }
2531
+ return message;
2532
+ }
2533
+ internalBinaryWrite(message: RemoveGroupMemberRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2534
+ /* int64 group_id = 1; */
2535
+ if (message.groupId !== 0)
2536
+ writer.tag(1, WireType.Varint).int64(message.groupId);
2537
+ /* int32 user_id = 2; */
2538
+ if (message.userId !== 0)
2539
+ writer.tag(2, WireType.Varint).int32(message.userId);
2540
+ /* optional string reason = 3; */
2541
+ if (message.reason !== undefined)
2542
+ writer.tag(3, WireType.LengthDelimited).string(message.reason);
2543
+ /* bool skip_notification = 4; */
2544
+ if (message.skipNotification !== false)
2545
+ writer.tag(4, WireType.Varint).bool(message.skipNotification);
2546
+ let u = options.writeUnknownFields;
2547
+ if (u !== false)
2548
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2549
+ return writer;
2550
+ }
2551
+ }
2552
+ /**
2553
+ * @generated MessageType for protobuf message services.jobs.RemoveGroupMemberRequest
2554
+ */
2555
+ export const RemoveGroupMemberRequest = new RemoveGroupMemberRequest$Type();
2556
+ // @generated message type with reflection information, may provide speed optimized methods
2557
+ class RemoveGroupMemberResponse$Type extends MessageType<RemoveGroupMemberResponse> {
2558
+ constructor() {
2559
+ super("services.jobs.RemoveGroupMemberResponse", [
2560
+ { no: 1, name: "group", kind: "message", T: () => Group }
2561
+ ]);
2562
+ }
2563
+ create(value?: PartialMessage<RemoveGroupMemberResponse>): RemoveGroupMemberResponse {
2564
+ const message = globalThis.Object.create((this.messagePrototype!));
2565
+ if (value !== undefined)
2566
+ reflectionMergePartial<RemoveGroupMemberResponse>(this, message, value);
2567
+ return message;
2568
+ }
2569
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RemoveGroupMemberResponse): RemoveGroupMemberResponse {
2570
+ let message = target ?? this.create(), end = reader.pos + length;
2571
+ while (reader.pos < end) {
2572
+ let [fieldNo, wireType] = reader.tag();
2573
+ switch (fieldNo) {
2574
+ case /* resources.jobs.groups.Group group */ 1:
2575
+ message.group = Group.internalBinaryRead(reader, reader.uint32(), options, message.group);
2576
+ break;
2577
+ default:
2578
+ let u = options.readUnknownField;
2579
+ if (u === "throw")
2580
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2581
+ let d = reader.skip(wireType);
2582
+ if (u !== false)
2583
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2584
+ }
2585
+ }
2586
+ return message;
2587
+ }
2588
+ internalBinaryWrite(message: RemoveGroupMemberResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2589
+ /* resources.jobs.groups.Group group = 1; */
2590
+ if (message.group)
2591
+ Group.internalBinaryWrite(message.group, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2592
+ let u = options.writeUnknownFields;
2593
+ if (u !== false)
2594
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2595
+ return writer;
2596
+ }
2597
+ }
2598
+ /**
2599
+ * @generated MessageType for protobuf message services.jobs.RemoveGroupMemberResponse
2600
+ */
2601
+ export const RemoveGroupMemberResponse = new RemoveGroupMemberResponse$Type();
2602
+ // @generated message type with reflection information, may provide speed optimized methods
2603
+ class ExcludeGroupMemberRequest$Type extends MessageType<ExcludeGroupMemberRequest> {
2604
+ constructor() {
2605
+ super("services.jobs.ExcludeGroupMemberRequest", [
2606
+ { no: 1, name: "group_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
2607
+ { no: 2, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
2608
+ { no: 3, name: "reason_type", kind: "enum", T: () => ["resources.jobs.groups.GroupExclusionReason", GroupExclusionReason, "GROUP_EXCLUSION_REASON_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
2609
+ { no: 4, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
2610
+ ]);
2611
+ }
2612
+ create(value?: PartialMessage<ExcludeGroupMemberRequest>): ExcludeGroupMemberRequest {
2613
+ const message = globalThis.Object.create((this.messagePrototype!));
2614
+ message.groupId = 0;
2615
+ message.userId = 0;
2616
+ message.reasonType = 0;
2617
+ if (value !== undefined)
2618
+ reflectionMergePartial<ExcludeGroupMemberRequest>(this, message, value);
2619
+ return message;
2620
+ }
2621
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExcludeGroupMemberRequest): ExcludeGroupMemberRequest {
2622
+ let message = target ?? this.create(), end = reader.pos + length;
2623
+ while (reader.pos < end) {
2624
+ let [fieldNo, wireType] = reader.tag();
2625
+ switch (fieldNo) {
2626
+ case /* int64 group_id */ 1:
2627
+ message.groupId = reader.int64().toNumber();
2628
+ break;
2629
+ case /* int32 user_id */ 2:
2630
+ message.userId = reader.int32();
2631
+ break;
2632
+ case /* resources.jobs.groups.GroupExclusionReason reason_type */ 3:
2633
+ message.reasonType = reader.int32();
2634
+ break;
2635
+ case /* optional string reason */ 4:
2636
+ message.reason = reader.string();
2637
+ break;
2638
+ default:
2639
+ let u = options.readUnknownField;
2640
+ if (u === "throw")
2641
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2642
+ let d = reader.skip(wireType);
2643
+ if (u !== false)
2644
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2645
+ }
2646
+ }
2647
+ return message;
2648
+ }
2649
+ internalBinaryWrite(message: ExcludeGroupMemberRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2650
+ /* int64 group_id = 1; */
2651
+ if (message.groupId !== 0)
2652
+ writer.tag(1, WireType.Varint).int64(message.groupId);
2653
+ /* int32 user_id = 2; */
2654
+ if (message.userId !== 0)
2655
+ writer.tag(2, WireType.Varint).int32(message.userId);
2656
+ /* resources.jobs.groups.GroupExclusionReason reason_type = 3; */
2657
+ if (message.reasonType !== 0)
2658
+ writer.tag(3, WireType.Varint).int32(message.reasonType);
2659
+ /* optional string reason = 4; */
2660
+ if (message.reason !== undefined)
2661
+ writer.tag(4, WireType.LengthDelimited).string(message.reason);
2662
+ let u = options.writeUnknownFields;
2663
+ if (u !== false)
2664
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2665
+ return writer;
2666
+ }
2667
+ }
2668
+ /**
2669
+ * @generated MessageType for protobuf message services.jobs.ExcludeGroupMemberRequest
2670
+ */
2671
+ export const ExcludeGroupMemberRequest = new ExcludeGroupMemberRequest$Type();
2672
+ // @generated message type with reflection information, may provide speed optimized methods
2673
+ class ExcludeGroupMemberResponse$Type extends MessageType<ExcludeGroupMemberResponse> {
2674
+ constructor() {
2675
+ super("services.jobs.ExcludeGroupMemberResponse", [
2676
+ { no: 1, name: "exclusion", kind: "message", T: () => GroupMemberExclusion },
2677
+ { no: 2, name: "group", kind: "message", T: () => Group }
2678
+ ]);
2679
+ }
2680
+ create(value?: PartialMessage<ExcludeGroupMemberResponse>): ExcludeGroupMemberResponse {
2681
+ const message = globalThis.Object.create((this.messagePrototype!));
2682
+ if (value !== undefined)
2683
+ reflectionMergePartial<ExcludeGroupMemberResponse>(this, message, value);
2684
+ return message;
2685
+ }
2686
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExcludeGroupMemberResponse): ExcludeGroupMemberResponse {
2687
+ let message = target ?? this.create(), end = reader.pos + length;
2688
+ while (reader.pos < end) {
2689
+ let [fieldNo, wireType] = reader.tag();
2690
+ switch (fieldNo) {
2691
+ case /* resources.jobs.groups.GroupMemberExclusion exclusion */ 1:
2692
+ message.exclusion = GroupMemberExclusion.internalBinaryRead(reader, reader.uint32(), options, message.exclusion);
2693
+ break;
2694
+ case /* resources.jobs.groups.Group group */ 2:
2695
+ message.group = Group.internalBinaryRead(reader, reader.uint32(), options, message.group);
2696
+ break;
2697
+ default:
2698
+ let u = options.readUnknownField;
2699
+ if (u === "throw")
2700
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2701
+ let d = reader.skip(wireType);
2702
+ if (u !== false)
2703
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2704
+ }
2705
+ }
2706
+ return message;
2707
+ }
2708
+ internalBinaryWrite(message: ExcludeGroupMemberResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2709
+ /* resources.jobs.groups.GroupMemberExclusion exclusion = 1; */
2710
+ if (message.exclusion)
2711
+ GroupMemberExclusion.internalBinaryWrite(message.exclusion, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2712
+ /* resources.jobs.groups.Group group = 2; */
2713
+ if (message.group)
2714
+ Group.internalBinaryWrite(message.group, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
2715
+ let u = options.writeUnknownFields;
2716
+ if (u !== false)
2717
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2718
+ return writer;
2719
+ }
2720
+ }
2721
+ /**
2722
+ * @generated MessageType for protobuf message services.jobs.ExcludeGroupMemberResponse
2723
+ */
2724
+ export const ExcludeGroupMemberResponse = new ExcludeGroupMemberResponse$Type();
2725
+ // @generated message type with reflection information, may provide speed optimized methods
2726
+ class RemoveGroupMemberExclusionRequest$Type extends MessageType<RemoveGroupMemberExclusionRequest> {
2727
+ constructor() {
2728
+ super("services.jobs.RemoveGroupMemberExclusionRequest", [
2729
+ { no: 1, name: "group_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
2730
+ { no: 2, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
2731
+ { no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
2732
+ ]);
2733
+ }
2734
+ create(value?: PartialMessage<RemoveGroupMemberExclusionRequest>): RemoveGroupMemberExclusionRequest {
2735
+ const message = globalThis.Object.create((this.messagePrototype!));
2736
+ message.groupId = 0;
2737
+ message.userId = 0;
2738
+ if (value !== undefined)
2739
+ reflectionMergePartial<RemoveGroupMemberExclusionRequest>(this, message, value);
2740
+ return message;
2741
+ }
2742
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RemoveGroupMemberExclusionRequest): RemoveGroupMemberExclusionRequest {
2743
+ let message = target ?? this.create(), end = reader.pos + length;
2744
+ while (reader.pos < end) {
2745
+ let [fieldNo, wireType] = reader.tag();
2746
+ switch (fieldNo) {
2747
+ case /* int64 group_id */ 1:
2748
+ message.groupId = reader.int64().toNumber();
2749
+ break;
2750
+ case /* int32 user_id */ 2:
2751
+ message.userId = reader.int32();
2752
+ break;
2753
+ case /* optional string reason */ 3:
2754
+ message.reason = reader.string();
2755
+ break;
2756
+ default:
2757
+ let u = options.readUnknownField;
2758
+ if (u === "throw")
2759
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2760
+ let d = reader.skip(wireType);
2761
+ if (u !== false)
2762
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2763
+ }
2764
+ }
2765
+ return message;
2766
+ }
2767
+ internalBinaryWrite(message: RemoveGroupMemberExclusionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2768
+ /* int64 group_id = 1; */
2769
+ if (message.groupId !== 0)
2770
+ writer.tag(1, WireType.Varint).int64(message.groupId);
2771
+ /* int32 user_id = 2; */
2772
+ if (message.userId !== 0)
2773
+ writer.tag(2, WireType.Varint).int32(message.userId);
2774
+ /* optional string reason = 3; */
2775
+ if (message.reason !== undefined)
2776
+ writer.tag(3, WireType.LengthDelimited).string(message.reason);
2777
+ let u = options.writeUnknownFields;
2778
+ if (u !== false)
2779
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2780
+ return writer;
2781
+ }
2782
+ }
2783
+ /**
2784
+ * @generated MessageType for protobuf message services.jobs.RemoveGroupMemberExclusionRequest
2785
+ */
2786
+ export const RemoveGroupMemberExclusionRequest = new RemoveGroupMemberExclusionRequest$Type();
2787
+ // @generated message type with reflection information, may provide speed optimized methods
2788
+ class RemoveGroupMemberExclusionResponse$Type extends MessageType<RemoveGroupMemberExclusionResponse> {
2789
+ constructor() {
2790
+ super("services.jobs.RemoveGroupMemberExclusionResponse", [
2791
+ { no: 1, name: "group", kind: "message", T: () => Group }
2792
+ ]);
2793
+ }
2794
+ create(value?: PartialMessage<RemoveGroupMemberExclusionResponse>): RemoveGroupMemberExclusionResponse {
2795
+ const message = globalThis.Object.create((this.messagePrototype!));
2796
+ if (value !== undefined)
2797
+ reflectionMergePartial<RemoveGroupMemberExclusionResponse>(this, message, value);
2798
+ return message;
2799
+ }
2800
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RemoveGroupMemberExclusionResponse): RemoveGroupMemberExclusionResponse {
2801
+ let message = target ?? this.create(), end = reader.pos + length;
2802
+ while (reader.pos < end) {
2803
+ let [fieldNo, wireType] = reader.tag();
2804
+ switch (fieldNo) {
2805
+ case /* resources.jobs.groups.Group group */ 1:
2806
+ message.group = Group.internalBinaryRead(reader, reader.uint32(), options, message.group);
2807
+ break;
2808
+ default:
2809
+ let u = options.readUnknownField;
2810
+ if (u === "throw")
2811
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2812
+ let d = reader.skip(wireType);
2813
+ if (u !== false)
2814
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2815
+ }
2816
+ }
2817
+ return message;
2818
+ }
2819
+ internalBinaryWrite(message: RemoveGroupMemberExclusionResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2820
+ /* resources.jobs.groups.Group group = 1; */
2821
+ if (message.group)
2822
+ Group.internalBinaryWrite(message.group, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2823
+ let u = options.writeUnknownFields;
2824
+ if (u !== false)
2825
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2826
+ return writer;
2827
+ }
2828
+ }
2829
+ /**
2830
+ * @generated MessageType for protobuf message services.jobs.RemoveGroupMemberExclusionResponse
2831
+ */
2832
+ export const RemoveGroupMemberExclusionResponse = new RemoveGroupMemberExclusionResponse$Type();
2833
+ // @generated message type with reflection information, may provide speed optimized methods
2834
+ class AddGroupLeaderRequest$Type extends MessageType<AddGroupLeaderRequest> {
2835
+ constructor() {
2836
+ super("services.jobs.AddGroupLeaderRequest", [
2837
+ { no: 1, name: "group_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
2838
+ { no: 2, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
2839
+ { no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
2840
+ { no: 4, name: "skip_notification", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
2841
+ ]);
2842
+ }
2843
+ create(value?: PartialMessage<AddGroupLeaderRequest>): AddGroupLeaderRequest {
2844
+ const message = globalThis.Object.create((this.messagePrototype!));
2845
+ message.groupId = 0;
2846
+ message.userId = 0;
2847
+ message.skipNotification = false;
2848
+ if (value !== undefined)
2849
+ reflectionMergePartial<AddGroupLeaderRequest>(this, message, value);
2850
+ return message;
2851
+ }
2852
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AddGroupLeaderRequest): AddGroupLeaderRequest {
2853
+ let message = target ?? this.create(), end = reader.pos + length;
2854
+ while (reader.pos < end) {
2855
+ let [fieldNo, wireType] = reader.tag();
2856
+ switch (fieldNo) {
2857
+ case /* int64 group_id */ 1:
2858
+ message.groupId = reader.int64().toNumber();
2859
+ break;
2860
+ case /* int32 user_id */ 2:
2861
+ message.userId = reader.int32();
2862
+ break;
2863
+ case /* optional string reason */ 3:
2864
+ message.reason = reader.string();
2865
+ break;
2866
+ case /* bool skip_notification */ 4:
2867
+ message.skipNotification = reader.bool();
2868
+ break;
2869
+ default:
2870
+ let u = options.readUnknownField;
2871
+ if (u === "throw")
2872
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2873
+ let d = reader.skip(wireType);
2874
+ if (u !== false)
2875
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2876
+ }
2877
+ }
2878
+ return message;
2879
+ }
2880
+ internalBinaryWrite(message: AddGroupLeaderRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2881
+ /* int64 group_id = 1; */
2882
+ if (message.groupId !== 0)
2883
+ writer.tag(1, WireType.Varint).int64(message.groupId);
2884
+ /* int32 user_id = 2; */
2885
+ if (message.userId !== 0)
2886
+ writer.tag(2, WireType.Varint).int32(message.userId);
2887
+ /* optional string reason = 3; */
2888
+ if (message.reason !== undefined)
2889
+ writer.tag(3, WireType.LengthDelimited).string(message.reason);
2890
+ /* bool skip_notification = 4; */
2891
+ if (message.skipNotification !== false)
2892
+ writer.tag(4, WireType.Varint).bool(message.skipNotification);
2893
+ let u = options.writeUnknownFields;
2894
+ if (u !== false)
2895
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2896
+ return writer;
2897
+ }
2898
+ }
2899
+ /**
2900
+ * @generated MessageType for protobuf message services.jobs.AddGroupLeaderRequest
2901
+ */
2902
+ export const AddGroupLeaderRequest = new AddGroupLeaderRequest$Type();
2903
+ // @generated message type with reflection information, may provide speed optimized methods
2904
+ class AddGroupLeaderResponse$Type extends MessageType<AddGroupLeaderResponse> {
2905
+ constructor() {
2906
+ super("services.jobs.AddGroupLeaderResponse", [
2907
+ { no: 1, name: "leader", kind: "message", T: () => GroupLeader },
2908
+ { no: 2, name: "group", kind: "message", T: () => Group }
2909
+ ]);
2910
+ }
2911
+ create(value?: PartialMessage<AddGroupLeaderResponse>): AddGroupLeaderResponse {
2912
+ const message = globalThis.Object.create((this.messagePrototype!));
2913
+ if (value !== undefined)
2914
+ reflectionMergePartial<AddGroupLeaderResponse>(this, message, value);
2915
+ return message;
2916
+ }
2917
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AddGroupLeaderResponse): AddGroupLeaderResponse {
2918
+ let message = target ?? this.create(), end = reader.pos + length;
2919
+ while (reader.pos < end) {
2920
+ let [fieldNo, wireType] = reader.tag();
2921
+ switch (fieldNo) {
2922
+ case /* resources.jobs.groups.GroupLeader leader */ 1:
2923
+ message.leader = GroupLeader.internalBinaryRead(reader, reader.uint32(), options, message.leader);
2924
+ break;
2925
+ case /* resources.jobs.groups.Group group */ 2:
2926
+ message.group = Group.internalBinaryRead(reader, reader.uint32(), options, message.group);
2927
+ break;
2928
+ default:
2929
+ let u = options.readUnknownField;
2930
+ if (u === "throw")
2931
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2932
+ let d = reader.skip(wireType);
2933
+ if (u !== false)
2934
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2935
+ }
2936
+ }
2937
+ return message;
2938
+ }
2939
+ internalBinaryWrite(message: AddGroupLeaderResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2940
+ /* resources.jobs.groups.GroupLeader leader = 1; */
2941
+ if (message.leader)
2942
+ GroupLeader.internalBinaryWrite(message.leader, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2943
+ /* resources.jobs.groups.Group group = 2; */
2944
+ if (message.group)
2945
+ Group.internalBinaryWrite(message.group, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
2946
+ let u = options.writeUnknownFields;
2947
+ if (u !== false)
2948
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2949
+ return writer;
2950
+ }
2951
+ }
2952
+ /**
2953
+ * @generated MessageType for protobuf message services.jobs.AddGroupLeaderResponse
2954
+ */
2955
+ export const AddGroupLeaderResponse = new AddGroupLeaderResponse$Type();
2956
+ // @generated message type with reflection information, may provide speed optimized methods
2957
+ class RemoveGroupLeaderRequest$Type extends MessageType<RemoveGroupLeaderRequest> {
2958
+ constructor() {
2959
+ super("services.jobs.RemoveGroupLeaderRequest", [
2960
+ { no: 1, name: "group_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
2961
+ { no: 2, name: "user_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
2962
+ { no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
2963
+ { no: 4, name: "skip_notification", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
2964
+ ]);
2965
+ }
2966
+ create(value?: PartialMessage<RemoveGroupLeaderRequest>): RemoveGroupLeaderRequest {
2967
+ const message = globalThis.Object.create((this.messagePrototype!));
2968
+ message.groupId = 0;
2969
+ message.userId = 0;
2970
+ message.skipNotification = false;
2971
+ if (value !== undefined)
2972
+ reflectionMergePartial<RemoveGroupLeaderRequest>(this, message, value);
2973
+ return message;
2974
+ }
2975
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RemoveGroupLeaderRequest): RemoveGroupLeaderRequest {
2976
+ let message = target ?? this.create(), end = reader.pos + length;
2977
+ while (reader.pos < end) {
2978
+ let [fieldNo, wireType] = reader.tag();
2979
+ switch (fieldNo) {
2980
+ case /* int64 group_id */ 1:
2981
+ message.groupId = reader.int64().toNumber();
2982
+ break;
2983
+ case /* int32 user_id */ 2:
2984
+ message.userId = reader.int32();
2985
+ break;
2986
+ case /* optional string reason */ 3:
2987
+ message.reason = reader.string();
2988
+ break;
2989
+ case /* bool skip_notification */ 4:
2990
+ message.skipNotification = reader.bool();
2991
+ break;
2992
+ default:
2993
+ let u = options.readUnknownField;
2994
+ if (u === "throw")
2995
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2996
+ let d = reader.skip(wireType);
2997
+ if (u !== false)
2998
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2999
+ }
3000
+ }
3001
+ return message;
3002
+ }
3003
+ internalBinaryWrite(message: RemoveGroupLeaderRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3004
+ /* int64 group_id = 1; */
3005
+ if (message.groupId !== 0)
3006
+ writer.tag(1, WireType.Varint).int64(message.groupId);
3007
+ /* int32 user_id = 2; */
3008
+ if (message.userId !== 0)
3009
+ writer.tag(2, WireType.Varint).int32(message.userId);
3010
+ /* optional string reason = 3; */
3011
+ if (message.reason !== undefined)
3012
+ writer.tag(3, WireType.LengthDelimited).string(message.reason);
3013
+ /* bool skip_notification = 4; */
3014
+ if (message.skipNotification !== false)
3015
+ writer.tag(4, WireType.Varint).bool(message.skipNotification);
3016
+ let u = options.writeUnknownFields;
3017
+ if (u !== false)
3018
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3019
+ return writer;
3020
+ }
3021
+ }
3022
+ /**
3023
+ * @generated MessageType for protobuf message services.jobs.RemoveGroupLeaderRequest
3024
+ */
3025
+ export const RemoveGroupLeaderRequest = new RemoveGroupLeaderRequest$Type();
3026
+ // @generated message type with reflection information, may provide speed optimized methods
3027
+ class RemoveGroupLeaderResponse$Type extends MessageType<RemoveGroupLeaderResponse> {
3028
+ constructor() {
3029
+ super("services.jobs.RemoveGroupLeaderResponse", [
3030
+ { no: 1, name: "group", kind: "message", T: () => Group }
3031
+ ]);
3032
+ }
3033
+ create(value?: PartialMessage<RemoveGroupLeaderResponse>): RemoveGroupLeaderResponse {
3034
+ const message = globalThis.Object.create((this.messagePrototype!));
3035
+ if (value !== undefined)
3036
+ reflectionMergePartial<RemoveGroupLeaderResponse>(this, message, value);
3037
+ return message;
3038
+ }
3039
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RemoveGroupLeaderResponse): RemoveGroupLeaderResponse {
3040
+ let message = target ?? this.create(), end = reader.pos + length;
3041
+ while (reader.pos < end) {
3042
+ let [fieldNo, wireType] = reader.tag();
3043
+ switch (fieldNo) {
3044
+ case /* resources.jobs.groups.Group group */ 1:
3045
+ message.group = Group.internalBinaryRead(reader, reader.uint32(), options, message.group);
3046
+ break;
3047
+ default:
3048
+ let u = options.readUnknownField;
3049
+ if (u === "throw")
3050
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3051
+ let d = reader.skip(wireType);
3052
+ if (u !== false)
3053
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3054
+ }
3055
+ }
3056
+ return message;
3057
+ }
3058
+ internalBinaryWrite(message: RemoveGroupLeaderResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3059
+ /* resources.jobs.groups.Group group = 1; */
3060
+ if (message.group)
3061
+ Group.internalBinaryWrite(message.group, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
3062
+ let u = options.writeUnknownFields;
3063
+ if (u !== false)
3064
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3065
+ return writer;
3066
+ }
3067
+ }
3068
+ /**
3069
+ * @generated MessageType for protobuf message services.jobs.RemoveGroupLeaderResponse
3070
+ */
3071
+ export const RemoveGroupLeaderResponse = new RemoveGroupLeaderResponse$Type();
3072
+ // @generated message type with reflection information, may provide speed optimized methods
3073
+ class GroupRuleInput$Type extends MessageType<GroupRuleInput> {
3074
+ constructor() {
3075
+ super("services.jobs.GroupRuleInput", [
3076
+ { no: 1, name: "enabled", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
3077
+ { no: 10, name: "grade", kind: "message", oneof: "rule", T: () => GroupGradeRule },
3078
+ { no: 11, name: "qualification", kind: "message", oneof: "rule", T: () => GroupQualificationRule }
3079
+ ]);
3080
+ }
3081
+ create(value?: PartialMessage<GroupRuleInput>): GroupRuleInput {
3082
+ const message = globalThis.Object.create((this.messagePrototype!));
3083
+ message.rule = { oneofKind: undefined };
3084
+ if (value !== undefined)
3085
+ reflectionMergePartial<GroupRuleInput>(this, message, value);
3086
+ return message;
3087
+ }
3088
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GroupRuleInput): GroupRuleInput {
3089
+ let message = target ?? this.create(), end = reader.pos + length;
3090
+ while (reader.pos < end) {
3091
+ let [fieldNo, wireType] = reader.tag();
3092
+ switch (fieldNo) {
3093
+ case /* optional bool enabled */ 1:
3094
+ message.enabled = reader.bool();
3095
+ break;
3096
+ case /* resources.jobs.groups.GroupGradeRule grade */ 10:
3097
+ message.rule = {
3098
+ oneofKind: "grade",
3099
+ grade: GroupGradeRule.internalBinaryRead(reader, reader.uint32(), options, (message.rule as any).grade)
3100
+ };
3101
+ break;
3102
+ case /* resources.jobs.groups.GroupQualificationRule qualification */ 11:
3103
+ message.rule = {
3104
+ oneofKind: "qualification",
3105
+ qualification: GroupQualificationRule.internalBinaryRead(reader, reader.uint32(), options, (message.rule as any).qualification)
3106
+ };
3107
+ break;
3108
+ default:
3109
+ let u = options.readUnknownField;
3110
+ if (u === "throw")
3111
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3112
+ let d = reader.skip(wireType);
3113
+ if (u !== false)
3114
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3115
+ }
3116
+ }
3117
+ return message;
3118
+ }
3119
+ internalBinaryWrite(message: GroupRuleInput, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3120
+ /* optional bool enabled = 1; */
3121
+ if (message.enabled !== undefined)
3122
+ writer.tag(1, WireType.Varint).bool(message.enabled);
3123
+ /* resources.jobs.groups.GroupGradeRule grade = 10; */
3124
+ if (message.rule.oneofKind === "grade")
3125
+ GroupGradeRule.internalBinaryWrite(message.rule.grade, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
3126
+ /* resources.jobs.groups.GroupQualificationRule qualification = 11; */
3127
+ if (message.rule.oneofKind === "qualification")
3128
+ GroupQualificationRule.internalBinaryWrite(message.rule.qualification, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
3129
+ let u = options.writeUnknownFields;
3130
+ if (u !== false)
3131
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3132
+ return writer;
3133
+ }
3134
+ }
3135
+ /**
3136
+ * @generated MessageType for protobuf message services.jobs.GroupRuleInput
3137
+ */
3138
+ export const GroupRuleInput = new GroupRuleInput$Type();
3139
+ // @generated message type with reflection information, may provide speed optimized methods
3140
+ class CreateGroupRuleRequest$Type extends MessageType<CreateGroupRuleRequest> {
3141
+ constructor() {
3142
+ super("services.jobs.CreateGroupRuleRequest", [
3143
+ { no: 1, name: "group_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
3144
+ { no: 2, name: "rule", kind: "message", T: () => GroupRuleInput },
3145
+ { no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
3146
+ ]);
3147
+ }
3148
+ create(value?: PartialMessage<CreateGroupRuleRequest>): CreateGroupRuleRequest {
3149
+ const message = globalThis.Object.create((this.messagePrototype!));
3150
+ message.groupId = 0;
3151
+ if (value !== undefined)
3152
+ reflectionMergePartial<CreateGroupRuleRequest>(this, message, value);
3153
+ return message;
3154
+ }
3155
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateGroupRuleRequest): CreateGroupRuleRequest {
3156
+ let message = target ?? this.create(), end = reader.pos + length;
3157
+ while (reader.pos < end) {
3158
+ let [fieldNo, wireType] = reader.tag();
3159
+ switch (fieldNo) {
3160
+ case /* int64 group_id */ 1:
3161
+ message.groupId = reader.int64().toNumber();
3162
+ break;
3163
+ case /* services.jobs.GroupRuleInput rule */ 2:
3164
+ message.rule = GroupRuleInput.internalBinaryRead(reader, reader.uint32(), options, message.rule);
3165
+ break;
3166
+ case /* optional string reason */ 3:
3167
+ message.reason = reader.string();
3168
+ break;
3169
+ default:
3170
+ let u = options.readUnknownField;
3171
+ if (u === "throw")
3172
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3173
+ let d = reader.skip(wireType);
3174
+ if (u !== false)
3175
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3176
+ }
3177
+ }
3178
+ return message;
3179
+ }
3180
+ internalBinaryWrite(message: CreateGroupRuleRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3181
+ /* int64 group_id = 1; */
3182
+ if (message.groupId !== 0)
3183
+ writer.tag(1, WireType.Varint).int64(message.groupId);
3184
+ /* services.jobs.GroupRuleInput rule = 2; */
3185
+ if (message.rule)
3186
+ GroupRuleInput.internalBinaryWrite(message.rule, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
3187
+ /* optional string reason = 3; */
3188
+ if (message.reason !== undefined)
3189
+ writer.tag(3, WireType.LengthDelimited).string(message.reason);
3190
+ let u = options.writeUnknownFields;
3191
+ if (u !== false)
3192
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3193
+ return writer;
3194
+ }
3195
+ }
3196
+ /**
3197
+ * @generated MessageType for protobuf message services.jobs.CreateGroupRuleRequest
3198
+ */
3199
+ export const CreateGroupRuleRequest = new CreateGroupRuleRequest$Type();
3200
+ // @generated message type with reflection information, may provide speed optimized methods
3201
+ class CreateGroupRuleResponse$Type extends MessageType<CreateGroupRuleResponse> {
3202
+ constructor() {
3203
+ super("services.jobs.CreateGroupRuleResponse", [
3204
+ { no: 1, name: "rule", kind: "message", T: () => GroupRule },
3205
+ { no: 2, name: "group", kind: "message", T: () => Group }
3206
+ ]);
3207
+ }
3208
+ create(value?: PartialMessage<CreateGroupRuleResponse>): CreateGroupRuleResponse {
3209
+ const message = globalThis.Object.create((this.messagePrototype!));
3210
+ if (value !== undefined)
3211
+ reflectionMergePartial<CreateGroupRuleResponse>(this, message, value);
3212
+ return message;
3213
+ }
3214
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateGroupRuleResponse): CreateGroupRuleResponse {
3215
+ let message = target ?? this.create(), end = reader.pos + length;
3216
+ while (reader.pos < end) {
3217
+ let [fieldNo, wireType] = reader.tag();
3218
+ switch (fieldNo) {
3219
+ case /* resources.jobs.groups.GroupRule rule */ 1:
3220
+ message.rule = GroupRule.internalBinaryRead(reader, reader.uint32(), options, message.rule);
3221
+ break;
3222
+ case /* resources.jobs.groups.Group group */ 2:
3223
+ message.group = Group.internalBinaryRead(reader, reader.uint32(), options, message.group);
3224
+ break;
3225
+ default:
3226
+ let u = options.readUnknownField;
3227
+ if (u === "throw")
3228
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3229
+ let d = reader.skip(wireType);
3230
+ if (u !== false)
3231
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3232
+ }
3233
+ }
3234
+ return message;
3235
+ }
3236
+ internalBinaryWrite(message: CreateGroupRuleResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3237
+ /* resources.jobs.groups.GroupRule rule = 1; */
3238
+ if (message.rule)
3239
+ GroupRule.internalBinaryWrite(message.rule, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
3240
+ /* resources.jobs.groups.Group group = 2; */
3241
+ if (message.group)
3242
+ Group.internalBinaryWrite(message.group, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
3243
+ let u = options.writeUnknownFields;
3244
+ if (u !== false)
3245
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3246
+ return writer;
3247
+ }
3248
+ }
3249
+ /**
3250
+ * @generated MessageType for protobuf message services.jobs.CreateGroupRuleResponse
3251
+ */
3252
+ export const CreateGroupRuleResponse = new CreateGroupRuleResponse$Type();
3253
+ // @generated message type with reflection information, may provide speed optimized methods
3254
+ class UpdateGroupRuleRequest$Type extends MessageType<UpdateGroupRuleRequest> {
3255
+ constructor() {
3256
+ super("services.jobs.UpdateGroupRuleRequest", [
3257
+ { no: 1, name: "group_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
3258
+ { no: 2, name: "rule_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
3259
+ { no: 3, name: "rule", kind: "message", T: () => GroupRuleInput },
3260
+ { no: 4, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
3261
+ ]);
3262
+ }
3263
+ create(value?: PartialMessage<UpdateGroupRuleRequest>): UpdateGroupRuleRequest {
3264
+ const message = globalThis.Object.create((this.messagePrototype!));
3265
+ message.groupId = 0;
3266
+ message.ruleId = 0;
3267
+ if (value !== undefined)
3268
+ reflectionMergePartial<UpdateGroupRuleRequest>(this, message, value);
3269
+ return message;
3270
+ }
3271
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateGroupRuleRequest): UpdateGroupRuleRequest {
3272
+ let message = target ?? this.create(), end = reader.pos + length;
3273
+ while (reader.pos < end) {
3274
+ let [fieldNo, wireType] = reader.tag();
3275
+ switch (fieldNo) {
3276
+ case /* int64 group_id */ 1:
3277
+ message.groupId = reader.int64().toNumber();
3278
+ break;
3279
+ case /* int64 rule_id */ 2:
3280
+ message.ruleId = reader.int64().toNumber();
3281
+ break;
3282
+ case /* services.jobs.GroupRuleInput rule */ 3:
3283
+ message.rule = GroupRuleInput.internalBinaryRead(reader, reader.uint32(), options, message.rule);
3284
+ break;
3285
+ case /* optional string reason */ 4:
3286
+ message.reason = reader.string();
3287
+ break;
3288
+ default:
3289
+ let u = options.readUnknownField;
3290
+ if (u === "throw")
3291
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3292
+ let d = reader.skip(wireType);
3293
+ if (u !== false)
3294
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3295
+ }
3296
+ }
3297
+ return message;
3298
+ }
3299
+ internalBinaryWrite(message: UpdateGroupRuleRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3300
+ /* int64 group_id = 1; */
3301
+ if (message.groupId !== 0)
3302
+ writer.tag(1, WireType.Varint).int64(message.groupId);
3303
+ /* int64 rule_id = 2; */
3304
+ if (message.ruleId !== 0)
3305
+ writer.tag(2, WireType.Varint).int64(message.ruleId);
3306
+ /* services.jobs.GroupRuleInput rule = 3; */
3307
+ if (message.rule)
3308
+ GroupRuleInput.internalBinaryWrite(message.rule, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
3309
+ /* optional string reason = 4; */
3310
+ if (message.reason !== undefined)
3311
+ writer.tag(4, WireType.LengthDelimited).string(message.reason);
3312
+ let u = options.writeUnknownFields;
3313
+ if (u !== false)
3314
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3315
+ return writer;
3316
+ }
3317
+ }
3318
+ /**
3319
+ * @generated MessageType for protobuf message services.jobs.UpdateGroupRuleRequest
3320
+ */
3321
+ export const UpdateGroupRuleRequest = new UpdateGroupRuleRequest$Type();
3322
+ // @generated message type with reflection information, may provide speed optimized methods
3323
+ class UpdateGroupRuleResponse$Type extends MessageType<UpdateGroupRuleResponse> {
3324
+ constructor() {
3325
+ super("services.jobs.UpdateGroupRuleResponse", [
3326
+ { no: 1, name: "rule", kind: "message", T: () => GroupRule },
3327
+ { no: 2, name: "group", kind: "message", T: () => Group }
3328
+ ]);
3329
+ }
3330
+ create(value?: PartialMessage<UpdateGroupRuleResponse>): UpdateGroupRuleResponse {
3331
+ const message = globalThis.Object.create((this.messagePrototype!));
3332
+ if (value !== undefined)
3333
+ reflectionMergePartial<UpdateGroupRuleResponse>(this, message, value);
3334
+ return message;
3335
+ }
3336
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateGroupRuleResponse): UpdateGroupRuleResponse {
3337
+ let message = target ?? this.create(), end = reader.pos + length;
3338
+ while (reader.pos < end) {
3339
+ let [fieldNo, wireType] = reader.tag();
3340
+ switch (fieldNo) {
3341
+ case /* resources.jobs.groups.GroupRule rule */ 1:
3342
+ message.rule = GroupRule.internalBinaryRead(reader, reader.uint32(), options, message.rule);
3343
+ break;
3344
+ case /* resources.jobs.groups.Group group */ 2:
3345
+ message.group = Group.internalBinaryRead(reader, reader.uint32(), options, message.group);
3346
+ break;
3347
+ default:
3348
+ let u = options.readUnknownField;
3349
+ if (u === "throw")
3350
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3351
+ let d = reader.skip(wireType);
3352
+ if (u !== false)
3353
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3354
+ }
3355
+ }
3356
+ return message;
3357
+ }
3358
+ internalBinaryWrite(message: UpdateGroupRuleResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3359
+ /* resources.jobs.groups.GroupRule rule = 1; */
3360
+ if (message.rule)
3361
+ GroupRule.internalBinaryWrite(message.rule, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
3362
+ /* resources.jobs.groups.Group group = 2; */
3363
+ if (message.group)
3364
+ Group.internalBinaryWrite(message.group, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
3365
+ let u = options.writeUnknownFields;
3366
+ if (u !== false)
3367
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3368
+ return writer;
3369
+ }
3370
+ }
3371
+ /**
3372
+ * @generated MessageType for protobuf message services.jobs.UpdateGroupRuleResponse
3373
+ */
3374
+ export const UpdateGroupRuleResponse = new UpdateGroupRuleResponse$Type();
3375
+ // @generated message type with reflection information, may provide speed optimized methods
3376
+ class DeleteGroupRuleRequest$Type extends MessageType<DeleteGroupRuleRequest> {
3377
+ constructor() {
3378
+ super("services.jobs.DeleteGroupRuleRequest", [
3379
+ { no: 1, name: "group_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
3380
+ { no: 2, name: "rule_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
3381
+ { no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
3382
+ ]);
3383
+ }
3384
+ create(value?: PartialMessage<DeleteGroupRuleRequest>): DeleteGroupRuleRequest {
3385
+ const message = globalThis.Object.create((this.messagePrototype!));
3386
+ message.groupId = 0;
3387
+ message.ruleId = 0;
3388
+ if (value !== undefined)
3389
+ reflectionMergePartial<DeleteGroupRuleRequest>(this, message, value);
3390
+ return message;
3391
+ }
3392
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteGroupRuleRequest): DeleteGroupRuleRequest {
3393
+ let message = target ?? this.create(), end = reader.pos + length;
3394
+ while (reader.pos < end) {
3395
+ let [fieldNo, wireType] = reader.tag();
3396
+ switch (fieldNo) {
3397
+ case /* int64 group_id */ 1:
3398
+ message.groupId = reader.int64().toNumber();
3399
+ break;
3400
+ case /* int64 rule_id */ 2:
3401
+ message.ruleId = reader.int64().toNumber();
3402
+ break;
3403
+ case /* optional string reason */ 3:
3404
+ message.reason = reader.string();
3405
+ break;
3406
+ default:
3407
+ let u = options.readUnknownField;
3408
+ if (u === "throw")
3409
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3410
+ let d = reader.skip(wireType);
3411
+ if (u !== false)
3412
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3413
+ }
3414
+ }
3415
+ return message;
3416
+ }
3417
+ internalBinaryWrite(message: DeleteGroupRuleRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3418
+ /* int64 group_id = 1; */
3419
+ if (message.groupId !== 0)
3420
+ writer.tag(1, WireType.Varint).int64(message.groupId);
3421
+ /* int64 rule_id = 2; */
3422
+ if (message.ruleId !== 0)
3423
+ writer.tag(2, WireType.Varint).int64(message.ruleId);
3424
+ /* optional string reason = 3; */
3425
+ if (message.reason !== undefined)
3426
+ writer.tag(3, WireType.LengthDelimited).string(message.reason);
3427
+ let u = options.writeUnknownFields;
3428
+ if (u !== false)
3429
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3430
+ return writer;
3431
+ }
3432
+ }
3433
+ /**
3434
+ * @generated MessageType for protobuf message services.jobs.DeleteGroupRuleRequest
3435
+ */
3436
+ export const DeleteGroupRuleRequest = new DeleteGroupRuleRequest$Type();
3437
+ // @generated message type with reflection information, may provide speed optimized methods
3438
+ class DeleteGroupRuleResponse$Type extends MessageType<DeleteGroupRuleResponse> {
3439
+ constructor() {
3440
+ super("services.jobs.DeleteGroupRuleResponse", [
3441
+ { no: 1, name: "group", kind: "message", T: () => Group }
3442
+ ]);
3443
+ }
3444
+ create(value?: PartialMessage<DeleteGroupRuleResponse>): DeleteGroupRuleResponse {
3445
+ const message = globalThis.Object.create((this.messagePrototype!));
3446
+ if (value !== undefined)
3447
+ reflectionMergePartial<DeleteGroupRuleResponse>(this, message, value);
3448
+ return message;
3449
+ }
3450
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteGroupRuleResponse): DeleteGroupRuleResponse {
3451
+ let message = target ?? this.create(), end = reader.pos + length;
3452
+ while (reader.pos < end) {
3453
+ let [fieldNo, wireType] = reader.tag();
3454
+ switch (fieldNo) {
3455
+ case /* resources.jobs.groups.Group group */ 1:
3456
+ message.group = Group.internalBinaryRead(reader, reader.uint32(), options, message.group);
3457
+ break;
3458
+ default:
3459
+ let u = options.readUnknownField;
3460
+ if (u === "throw")
3461
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3462
+ let d = reader.skip(wireType);
3463
+ if (u !== false)
3464
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3465
+ }
3466
+ }
3467
+ return message;
3468
+ }
3469
+ internalBinaryWrite(message: DeleteGroupRuleResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3470
+ /* resources.jobs.groups.Group group = 1; */
3471
+ if (message.group)
3472
+ Group.internalBinaryWrite(message.group, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
3473
+ let u = options.writeUnknownFields;
3474
+ if (u !== false)
3475
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3476
+ return writer;
3477
+ }
3478
+ }
3479
+ /**
3480
+ * @generated MessageType for protobuf message services.jobs.DeleteGroupRuleResponse
3481
+ */
3482
+ export const DeleteGroupRuleResponse = new DeleteGroupRuleResponse$Type();
3483
+ // @generated message type with reflection information, may provide speed optimized methods
3484
+ class ListGroupActivityRequest$Type extends MessageType<ListGroupActivityRequest> {
3485
+ constructor() {
3486
+ super("services.jobs.ListGroupActivityRequest", [
3487
+ { no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
3488
+ { no: 2, name: "sort", kind: "message", T: () => Sort },
3489
+ { no: 3, name: "group_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
3490
+ { no: 4, name: "types", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.jobs.groups.GroupActivityType", GroupActivityType, "GROUP_ACTIVITY_TYPE_"], options: { "buf.validate.field": { repeated: { maxItems: "14", items: { enum: { definedOnly: true } } } } } },
3491
+ { no: 5, name: "user_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.field": { int32: { gt: 0 } } } },
3492
+ { no: 6, name: "from", kind: "message", T: () => Timestamp },
3493
+ { no: 7, name: "to", kind: "message", T: () => Timestamp }
3494
+ ]);
3495
+ }
3496
+ create(value?: PartialMessage<ListGroupActivityRequest>): ListGroupActivityRequest {
3497
+ const message = globalThis.Object.create((this.messagePrototype!));
3498
+ message.groupId = 0;
3499
+ message.types = [];
3500
+ if (value !== undefined)
3501
+ reflectionMergePartial<ListGroupActivityRequest>(this, message, value);
3502
+ return message;
3503
+ }
3504
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListGroupActivityRequest): ListGroupActivityRequest {
3505
+ let message = target ?? this.create(), end = reader.pos + length;
3506
+ while (reader.pos < end) {
3507
+ let [fieldNo, wireType] = reader.tag();
3508
+ switch (fieldNo) {
3509
+ case /* optional resources.common.database.PaginationRequest pagination */ 1:
3510
+ message.pagination = PaginationRequest.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
3511
+ break;
3512
+ case /* optional resources.common.database.Sort sort */ 2:
3513
+ message.sort = Sort.internalBinaryRead(reader, reader.uint32(), options, message.sort);
3514
+ break;
3515
+ case /* int64 group_id */ 3:
3516
+ message.groupId = reader.int64().toNumber();
3517
+ break;
3518
+ case /* repeated resources.jobs.groups.GroupActivityType types */ 4:
3519
+ if (wireType === WireType.LengthDelimited)
3520
+ for (let e = reader.int32() + reader.pos; reader.pos < e;)
3521
+ message.types.push(reader.int32());
3522
+ else
3523
+ message.types.push(reader.int32());
3524
+ break;
3525
+ case /* optional int32 user_id */ 5:
3526
+ message.userId = reader.int32();
3527
+ break;
3528
+ case /* optional resources.timestamp.Timestamp from */ 6:
3529
+ message.from = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.from);
3530
+ break;
3531
+ case /* optional resources.timestamp.Timestamp to */ 7:
3532
+ message.to = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.to);
3533
+ break;
3534
+ default:
3535
+ let u = options.readUnknownField;
3536
+ if (u === "throw")
3537
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3538
+ let d = reader.skip(wireType);
3539
+ if (u !== false)
3540
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3541
+ }
3542
+ }
3543
+ return message;
3544
+ }
3545
+ internalBinaryWrite(message: ListGroupActivityRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3546
+ /* optional resources.common.database.PaginationRequest pagination = 1; */
3547
+ if (message.pagination)
3548
+ PaginationRequest.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
3549
+ /* optional resources.common.database.Sort sort = 2; */
3550
+ if (message.sort)
3551
+ Sort.internalBinaryWrite(message.sort, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
3552
+ /* int64 group_id = 3; */
3553
+ if (message.groupId !== 0)
3554
+ writer.tag(3, WireType.Varint).int64(message.groupId);
3555
+ /* repeated resources.jobs.groups.GroupActivityType types = 4; */
3556
+ if (message.types.length) {
3557
+ writer.tag(4, WireType.LengthDelimited).fork();
3558
+ for (let i = 0; i < message.types.length; i++)
3559
+ writer.int32(message.types[i]);
3560
+ writer.join();
3561
+ }
3562
+ /* optional int32 user_id = 5; */
3563
+ if (message.userId !== undefined)
3564
+ writer.tag(5, WireType.Varint).int32(message.userId);
3565
+ /* optional resources.timestamp.Timestamp from = 6; */
3566
+ if (message.from)
3567
+ Timestamp.internalBinaryWrite(message.from, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
3568
+ /* optional resources.timestamp.Timestamp to = 7; */
3569
+ if (message.to)
3570
+ Timestamp.internalBinaryWrite(message.to, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
3571
+ let u = options.writeUnknownFields;
3572
+ if (u !== false)
3573
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3574
+ return writer;
3575
+ }
3576
+ }
3577
+ /**
3578
+ * @generated MessageType for protobuf message services.jobs.ListGroupActivityRequest
3579
+ */
3580
+ export const ListGroupActivityRequest = new ListGroupActivityRequest$Type();
3581
+ // @generated message type with reflection information, may provide speed optimized methods
3582
+ class ListGroupActivityResponse$Type extends MessageType<ListGroupActivityResponse> {
3583
+ constructor() {
3584
+ super("services.jobs.ListGroupActivityResponse", [
3585
+ { no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
3586
+ { no: 2, name: "activity", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => GroupActivity, options: { "codegen.itemslen.enabled": true } }
3587
+ ]);
3588
+ }
3589
+ create(value?: PartialMessage<ListGroupActivityResponse>): ListGroupActivityResponse {
3590
+ const message = globalThis.Object.create((this.messagePrototype!));
3591
+ message.activity = [];
3592
+ if (value !== undefined)
3593
+ reflectionMergePartial<ListGroupActivityResponse>(this, message, value);
3594
+ return message;
3595
+ }
3596
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListGroupActivityResponse): ListGroupActivityResponse {
3597
+ let message = target ?? this.create(), end = reader.pos + length;
3598
+ while (reader.pos < end) {
3599
+ let [fieldNo, wireType] = reader.tag();
3600
+ switch (fieldNo) {
3601
+ case /* optional resources.common.database.PaginationResponse pagination */ 1:
3602
+ message.pagination = PaginationResponse.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
3603
+ break;
3604
+ case /* repeated resources.jobs.groups.GroupActivity activity */ 2:
3605
+ message.activity.push(GroupActivity.internalBinaryRead(reader, reader.uint32(), options));
3606
+ break;
3607
+ default:
3608
+ let u = options.readUnknownField;
3609
+ if (u === "throw")
3610
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3611
+ let d = reader.skip(wireType);
3612
+ if (u !== false)
3613
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3614
+ }
3615
+ }
3616
+ return message;
3617
+ }
3618
+ internalBinaryWrite(message: ListGroupActivityResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3619
+ /* optional resources.common.database.PaginationResponse pagination = 1; */
3620
+ if (message.pagination)
3621
+ PaginationResponse.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
3622
+ /* repeated resources.jobs.groups.GroupActivity activity = 2; */
3623
+ for (let i = 0; i < message.activity.length; i++)
3624
+ GroupActivity.internalBinaryWrite(message.activity[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
3625
+ let u = options.writeUnknownFields;
3626
+ if (u !== false)
3627
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3628
+ return writer;
3629
+ }
3630
+ }
3631
+ /**
3632
+ * @generated MessageType for protobuf message services.jobs.ListGroupActivityResponse
3633
+ */
3634
+ export const ListGroupActivityResponse = new ListGroupActivityResponse$Type();
6
3635
  /**
7
3636
  * @generated ServiceType for protobuf service services.jobs.GroupsService
8
3637
  */
9
- export const GroupsService = new ServiceType("services.jobs.GroupsService", [], { "codegen.perms.perms_svc": { order: 66, icon: "i-mdi-account-group-outline" } });
3638
+ export const GroupsService = new ServiceType("services.jobs.GroupsService", [
3639
+ { name: "ListGroups", options: {}, I: ListGroupsRequest, O: ListGroupsResponse },
3640
+ { name: "GetGroup", options: { "codegen.perms.perms": { enabled: true, name: "ListGroups" } }, I: GetGroupRequest, O: GetGroupResponse },
3641
+ { name: "CreateGroup", options: { "codegen.perms.perms": { enabled: true } }, I: CreateGroupRequest, O: CreateGroupResponse },
3642
+ { name: "UpdateGroup", options: { "codegen.perms.perms": { enabled: true, names: ["CreateGroup", "ListGroups"] } }, I: UpdateGroupRequest, O: UpdateGroupResponse },
3643
+ { name: "ArchiveGroup", options: { "codegen.perms.perms": { enabled: true } }, I: ArchiveGroupRequest, O: ArchiveGroupResponse },
3644
+ { name: "RestoreGroup", options: { "codegen.perms.perms": { enabled: true, name: "ArchiveGroup" } }, I: RestoreGroupRequest, O: RestoreGroupResponse },
3645
+ { name: "UploadGroupLogo", clientStreaming: true, options: { "codegen.perms.perms": { enabled: true, names: ["CreateGroup", "ListGroups"] } }, I: UploadFileRequest, O: UploadFileResponse },
3646
+ { name: "DeleteGroupLogo", options: { "codegen.perms.perms": { enabled: true, names: ["CreateGroup", "ListGroups"] } }, I: DeleteGroupLogoRequest, O: DeleteGroupLogoResponse },
3647
+ { name: "ListGroupMembers", options: { "codegen.perms.perms": { enabled: true, name: "ListGroups" } }, I: ListGroupMembersRequest, O: ListGroupMembersResponse },
3648
+ { name: "ListGroupManualMembers", options: { "codegen.perms.perms": { enabled: true, name: "ListGroups" } }, I: ListGroupManualMembersRequest, O: ListGroupManualMembersResponse },
3649
+ { name: "ListGroupMemberExclusions", options: { "codegen.perms.perms": { enabled: true, name: "ListGroups" } }, I: ListGroupMemberExclusionsRequest, O: ListGroupMemberExclusionsResponse },
3650
+ { name: "ListGroupLeaders", options: { "codegen.perms.perms": { enabled: true, name: "ListGroups" } }, I: ListGroupLeadersRequest, O: ListGroupLeadersResponse },
3651
+ { name: "AddGroupMember", options: { "codegen.perms.perms": { enabled: true, names: ["CreateGroup", "ListGroups"] } }, I: AddGroupMemberRequest, O: AddGroupMemberResponse },
3652
+ { name: "RemoveGroupMember", options: { "codegen.perms.perms": { enabled: true, names: ["CreateGroup", "ListGroups"] } }, I: RemoveGroupMemberRequest, O: RemoveGroupMemberResponse },
3653
+ { name: "ExcludeGroupMember", options: { "codegen.perms.perms": { enabled: true, names: ["CreateGroup", "ListGroups"] } }, I: ExcludeGroupMemberRequest, O: ExcludeGroupMemberResponse },
3654
+ { name: "RemoveGroupMemberExclusion", options: { "codegen.perms.perms": { enabled: true, names: ["CreateGroup", "ListGroups"] } }, I: RemoveGroupMemberExclusionRequest, O: RemoveGroupMemberExclusionResponse },
3655
+ { name: "AddGroupLeader", options: { "codegen.perms.perms": { enabled: true, names: ["CreateGroup", "ListGroups"] } }, I: AddGroupLeaderRequest, O: AddGroupLeaderResponse },
3656
+ { name: "RemoveGroupLeader", options: { "codegen.perms.perms": { enabled: true, names: ["CreateGroup", "ListGroups"] } }, I: RemoveGroupLeaderRequest, O: RemoveGroupLeaderResponse },
3657
+ { name: "CreateGroupRule", options: { "codegen.perms.perms": { enabled: true, names: ["CreateGroup", "ListGroups"] } }, I: CreateGroupRuleRequest, O: CreateGroupRuleResponse },
3658
+ { name: "ListGroupRules", options: { "codegen.perms.perms": { enabled: true, name: "ListGroups" } }, I: ListGroupRulesRequest, O: ListGroupRulesResponse },
3659
+ { name: "UpdateGroupRule", options: { "codegen.perms.perms": { enabled: true, names: ["CreateGroup", "ListGroups"] } }, I: UpdateGroupRuleRequest, O: UpdateGroupRuleResponse },
3660
+ { name: "DeleteGroupRule", options: { "codegen.perms.perms": { enabled: true, names: ["CreateGroup", "ListGroups"] } }, I: DeleteGroupRuleRequest, O: DeleteGroupRuleResponse },
3661
+ { name: "ListGroupActivity", options: { "codegen.perms.perms": { enabled: true, name: "ListGroups" } }, I: ListGroupActivityRequest, O: ListGroupActivityResponse }
3662
+ ], { "codegen.perms.perms_svc": { order: 66, icon: "i-mdi-account-group-outline" } });