@fivenet-app/gen 0.9.3-1

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 (123) hide show
  1. package/README.md +1 -0
  2. package/google/protobuf/any.ts +322 -0
  3. package/google/protobuf/descriptor.ts +3475 -0
  4. package/google/protobuf/duration.ts +231 -0
  5. package/google/protobuf/timestamp.ts +290 -0
  6. package/package.json +15 -0
  7. package/perms.ts +178 -0
  8. package/resources/accounts/accounts.ts +195 -0
  9. package/resources/accounts/oauth2.ts +230 -0
  10. package/resources/calendar/access.ts +362 -0
  11. package/resources/calendar/calendar.ts +955 -0
  12. package/resources/centrum/access.ts +380 -0
  13. package/resources/centrum/dispatches.ts +854 -0
  14. package/resources/centrum/general.ts +231 -0
  15. package/resources/centrum/settings.ts +303 -0
  16. package/resources/centrum/units.ts +620 -0
  17. package/resources/common/access/dummy.ts +309 -0
  18. package/resources/common/content/content.ts +252 -0
  19. package/resources/common/cron/cron.ts +536 -0
  20. package/resources/common/database/database.ts +306 -0
  21. package/resources/common/error.ts +79 -0
  22. package/resources/common/grpcws/grpcws.ts +615 -0
  23. package/resources/common/i18n.ts +102 -0
  24. package/resources/common/uuid.ts +68 -0
  25. package/resources/documents/access.ts +388 -0
  26. package/resources/documents/activity.ts +803 -0
  27. package/resources/documents/category.ts +132 -0
  28. package/resources/documents/comment.ts +161 -0
  29. package/resources/documents/documents.ts +1124 -0
  30. package/resources/documents/requests.ts +196 -0
  31. package/resources/documents/templates.ts +949 -0
  32. package/resources/documents/workflow.ts +349 -0
  33. package/resources/filestore/file.ts +204 -0
  34. package/resources/internet/ads.ts +257 -0
  35. package/resources/internet/domain.ts +136 -0
  36. package/resources/internet/internet.ts +344 -0
  37. package/resources/internet/page.ts +236 -0
  38. package/resources/internet/search.ts +104 -0
  39. package/resources/jobs/activity.ts +600 -0
  40. package/resources/jobs/colleagues.ts +346 -0
  41. package/resources/jobs/conduct.ts +220 -0
  42. package/resources/jobs/labels.ts +240 -0
  43. package/resources/jobs/timeclock.ts +372 -0
  44. package/resources/laws/laws.ts +293 -0
  45. package/resources/livemap/livemap.ts +728 -0
  46. package/resources/livemap/tracker.ts +81 -0
  47. package/resources/mailer/access.ts +485 -0
  48. package/resources/mailer/email.ts +222 -0
  49. package/resources/mailer/events.ts +196 -0
  50. package/resources/mailer/message.ts +285 -0
  51. package/resources/mailer/settings.ts +95 -0
  52. package/resources/mailer/template.ts +164 -0
  53. package/resources/mailer/thread.ts +422 -0
  54. package/resources/mailer/user.ts +93 -0
  55. package/resources/notifications/events.ts +287 -0
  56. package/resources/notifications/notifications.ts +444 -0
  57. package/resources/permissions/permissions.ts +829 -0
  58. package/resources/qualifications/access.ts +275 -0
  59. package/resources/qualifications/exam.ts +1421 -0
  60. package/resources/qualifications/qualifications.ts +1289 -0
  61. package/resources/rector/audit.ts +226 -0
  62. package/resources/rector/config.ts +922 -0
  63. package/resources/stats/stats.ts +67 -0
  64. package/resources/sync/activity.ts +356 -0
  65. package/resources/sync/data.ts +455 -0
  66. package/resources/timestamp/timestamp.ts +78 -0
  67. package/resources/users/activity.ts +211 -0
  68. package/resources/users/job_props.ts +992 -0
  69. package/resources/users/jobs.ts +171 -0
  70. package/resources/users/labels.ts +161 -0
  71. package/resources/users/props.ts +207 -0
  72. package/resources/users/users.ts +570 -0
  73. package/resources/vehicles/vehicles.ts +114 -0
  74. package/resources/wiki/access.ts +362 -0
  75. package/resources/wiki/activity.ts +591 -0
  76. package/resources/wiki/page.ts +548 -0
  77. package/services/auth/auth.client.ts +171 -0
  78. package/services/auth/auth.ts +1331 -0
  79. package/services/calendar/calendar.client.ts +262 -0
  80. package/services/calendar/calendar.ts +1733 -0
  81. package/services/centrum/centrum.client.ts +365 -0
  82. package/services/centrum/centrum.ts +2619 -0
  83. package/services/citizenstore/citizenstore.client.ts +126 -0
  84. package/services/citizenstore/citizenstore.ts +847 -0
  85. package/services/completor/completor.client.ts +109 -0
  86. package/services/completor/completor.ts +616 -0
  87. package/services/dmv/vehicles.client.ts +41 -0
  88. package/services/dmv/vehicles.ts +191 -0
  89. package/services/docstore/docstore.client.ts +653 -0
  90. package/services/docstore/docstore.ts +4571 -0
  91. package/services/internet/ads.client.ts +41 -0
  92. package/services/internet/ads.ts +145 -0
  93. package/services/internet/internet.client.ts +58 -0
  94. package/services/internet/internet.ts +257 -0
  95. package/services/jobs/conduct.client.ts +92 -0
  96. package/services/jobs/conduct.ts +541 -0
  97. package/services/jobs/jobs.client.ts +194 -0
  98. package/services/jobs/jobs.ts +1301 -0
  99. package/services/jobs/timeclock.client.ts +75 -0
  100. package/services/jobs/timeclock.ts +808 -0
  101. package/services/livemapper/livemap.client.ts +76 -0
  102. package/services/livemapper/livemap.ts +552 -0
  103. package/services/mailer/mailer.client.ts +381 -0
  104. package/services/mailer/mailer.ts +2590 -0
  105. package/services/notificator/notificator.client.ts +76 -0
  106. package/services/notificator/notificator.ts +510 -0
  107. package/services/qualifications/qualifications.client.ts +279 -0
  108. package/services/qualifications/qualifications.ts +2142 -0
  109. package/services/rector/config.client.ts +58 -0
  110. package/services/rector/config.ts +216 -0
  111. package/services/rector/filestore.client.ts +75 -0
  112. package/services/rector/filestore.ts +378 -0
  113. package/services/rector/laws.client.ts +92 -0
  114. package/services/rector/laws.ts +416 -0
  115. package/services/rector/rector.client.ts +211 -0
  116. package/services/rector/rector.ts +1540 -0
  117. package/services/stats/stats.client.ts +37 -0
  118. package/services/stats/stats.ts +128 -0
  119. package/services/sync/sync.client.ts +110 -0
  120. package/services/sync/sync.ts +831 -0
  121. package/services/wiki/wiki.client.ts +126 -0
  122. package/services/wiki/wiki.ts +749 -0
  123. package/svcs.ts +307 -0
@@ -0,0 +1,803 @@
1
+ // @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
2
+ // @generated from protobuf file "resources/documents/activity.proto" (package "resources.documents", syntax proto3)
3
+ // @ts-nocheck
4
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
5
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
6
+ import { WireType } from "@protobuf-ts/runtime";
7
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
8
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
9
+ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
10
+ import type { PartialMessage } from "@protobuf-ts/runtime";
11
+ import { reflectionMergePartial } from "@protobuf-ts/runtime";
12
+ import { MessageType } from "@protobuf-ts/runtime";
13
+ import { DocumentUserAccess } from "./access";
14
+ import { DocumentJobAccess } from "./access";
15
+ import { AccessLevel } from "./access";
16
+ import { UserShort } from "../users/users";
17
+ import { Timestamp } from "../timestamp/timestamp";
18
+ /**
19
+ * @generated from protobuf message resources.documents.DocActivity
20
+ */
21
+ export interface DocActivity {
22
+ /**
23
+ * @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
24
+ */
25
+ id: string;
26
+ /**
27
+ * @generated from protobuf field: resources.timestamp.Timestamp created_at = 2;
28
+ */
29
+ createdAt?: Timestamp;
30
+ /**
31
+ * @generated from protobuf field: uint64 document_id = 3 [jstype = JS_STRING];
32
+ */
33
+ documentId: string;
34
+ /**
35
+ * @generated from protobuf field: resources.documents.DocActivityType activity_type = 4;
36
+ */
37
+ activityType: DocActivityType;
38
+ /**
39
+ * @generated from protobuf field: optional int32 creator_id = 5;
40
+ */
41
+ creatorId?: number;
42
+ /**
43
+ * @generated from protobuf field: optional resources.users.UserShort creator = 6;
44
+ */
45
+ creator?: UserShort; // @gotags: alias:"creator"
46
+ /**
47
+ * @generated from protobuf field: string creator_job = 7;
48
+ */
49
+ creatorJob: string;
50
+ /**
51
+ * @generated from protobuf field: optional string creator_job_label = 8;
52
+ */
53
+ creatorJobLabel?: string;
54
+ /**
55
+ * @generated from protobuf field: optional string reason = 9;
56
+ */
57
+ reason?: string;
58
+ /**
59
+ * @generated from protobuf field: resources.documents.DocActivityData data = 10;
60
+ */
61
+ data?: DocActivityData;
62
+ }
63
+ /**
64
+ * @generated from protobuf message resources.documents.DocActivityData
65
+ */
66
+ export interface DocActivityData {
67
+ /**
68
+ * @generated from protobuf oneof: data
69
+ */
70
+ data: {
71
+ oneofKind: "updated";
72
+ /**
73
+ * @generated from protobuf field: resources.documents.DocUpdated updated = 1;
74
+ */
75
+ updated: DocUpdated;
76
+ } | {
77
+ oneofKind: "ownerChanged";
78
+ /**
79
+ * @generated from protobuf field: resources.documents.DocOwnerChanged owner_changed = 2;
80
+ */
81
+ ownerChanged: DocOwnerChanged;
82
+ } | {
83
+ oneofKind: "accessUpdated";
84
+ /**
85
+ * @generated from protobuf field: resources.documents.DocAccessUpdated access_updated = 4;
86
+ */
87
+ accessUpdated: DocAccessUpdated;
88
+ } | {
89
+ oneofKind: "accessRequested";
90
+ /**
91
+ * @generated from protobuf field: resources.documents.DocAccessRequested access_requested = 5;
92
+ */
93
+ accessRequested: DocAccessRequested;
94
+ } | {
95
+ oneofKind: undefined;
96
+ };
97
+ }
98
+ /**
99
+ * @generated from protobuf message resources.documents.DocUpdated
100
+ */
101
+ export interface DocUpdated {
102
+ /**
103
+ * @generated from protobuf field: optional string title_diff = 1;
104
+ */
105
+ titleDiff?: string;
106
+ /**
107
+ * @generated from protobuf field: optional string content_diff = 2;
108
+ */
109
+ contentDiff?: string;
110
+ /**
111
+ * @generated from protobuf field: optional string state_diff = 3;
112
+ */
113
+ stateDiff?: string;
114
+ }
115
+ /**
116
+ * @generated from protobuf message resources.documents.DocOwnerChanged
117
+ */
118
+ export interface DocOwnerChanged {
119
+ /**
120
+ * @generated from protobuf field: int32 new_owner_id = 1;
121
+ */
122
+ newOwnerId: number;
123
+ /**
124
+ * @generated from protobuf field: resources.users.UserShort new_owner = 2;
125
+ */
126
+ newOwner?: UserShort;
127
+ }
128
+ /**
129
+ * @generated from protobuf message resources.documents.DocAccessRequested
130
+ */
131
+ export interface DocAccessRequested {
132
+ /**
133
+ * @generated from protobuf field: resources.documents.AccessLevel level = 1;
134
+ */
135
+ level: AccessLevel;
136
+ }
137
+ /**
138
+ * @generated from protobuf message resources.documents.DocAccessUpdated
139
+ */
140
+ export interface DocAccessUpdated {
141
+ /**
142
+ * @generated from protobuf field: resources.documents.DocAccessJobsDiff jobs = 1;
143
+ */
144
+ jobs?: DocAccessJobsDiff;
145
+ /**
146
+ * @generated from protobuf field: resources.documents.DocAccessUsersDiff users = 2;
147
+ */
148
+ users?: DocAccessUsersDiff;
149
+ }
150
+ /**
151
+ * @generated from protobuf message resources.documents.DocAccessJobsDiff
152
+ */
153
+ export interface DocAccessJobsDiff {
154
+ /**
155
+ * @generated from protobuf field: repeated resources.documents.DocumentJobAccess to_create = 1;
156
+ */
157
+ toCreate: DocumentJobAccess[];
158
+ /**
159
+ * @generated from protobuf field: repeated resources.documents.DocumentJobAccess to_update = 2;
160
+ */
161
+ toUpdate: DocumentJobAccess[];
162
+ /**
163
+ * @generated from protobuf field: repeated resources.documents.DocumentJobAccess to_delete = 3;
164
+ */
165
+ toDelete: DocumentJobAccess[];
166
+ }
167
+ /**
168
+ * @generated from protobuf message resources.documents.DocAccessUsersDiff
169
+ */
170
+ export interface DocAccessUsersDiff {
171
+ /**
172
+ * @generated from protobuf field: repeated resources.documents.DocumentUserAccess to_create = 1;
173
+ */
174
+ toCreate: DocumentUserAccess[];
175
+ /**
176
+ * @generated from protobuf field: repeated resources.documents.DocumentUserAccess to_update = 2;
177
+ */
178
+ toUpdate: DocumentUserAccess[];
179
+ /**
180
+ * @generated from protobuf field: repeated resources.documents.DocumentUserAccess to_delete = 3;
181
+ */
182
+ toDelete: DocumentUserAccess[];
183
+ }
184
+ /**
185
+ * @generated from protobuf enum resources.documents.DocActivityType
186
+ */
187
+ export enum DocActivityType {
188
+ /**
189
+ * @generated from protobuf enum value: DOC_ACTIVITY_TYPE_UNSPECIFIED = 0;
190
+ */
191
+ UNSPECIFIED = 0,
192
+ /**
193
+ * Base
194
+ *
195
+ * @generated from protobuf enum value: DOC_ACTIVITY_TYPE_CREATED = 1;
196
+ */
197
+ CREATED = 1,
198
+ /**
199
+ * @generated from protobuf enum value: DOC_ACTIVITY_TYPE_STATUS_OPEN = 2;
200
+ */
201
+ STATUS_OPEN = 2,
202
+ /**
203
+ * @generated from protobuf enum value: DOC_ACTIVITY_TYPE_STATUS_CLOSED = 3;
204
+ */
205
+ STATUS_CLOSED = 3,
206
+ /**
207
+ * @generated from protobuf enum value: DOC_ACTIVITY_TYPE_UPDATED = 4;
208
+ */
209
+ UPDATED = 4,
210
+ /**
211
+ * @generated from protobuf enum value: DOC_ACTIVITY_TYPE_RELATIONS_UPDATED = 5;
212
+ */
213
+ RELATIONS_UPDATED = 5,
214
+ /**
215
+ * @generated from protobuf enum value: DOC_ACTIVITY_TYPE_REFERENCES_UPDATED = 6;
216
+ */
217
+ REFERENCES_UPDATED = 6,
218
+ /**
219
+ * @generated from protobuf enum value: DOC_ACTIVITY_TYPE_ACCESS_UPDATED = 7;
220
+ */
221
+ ACCESS_UPDATED = 7,
222
+ /**
223
+ * @generated from protobuf enum value: DOC_ACTIVITY_TYPE_OWNER_CHANGED = 8;
224
+ */
225
+ OWNER_CHANGED = 8,
226
+ /**
227
+ * @generated from protobuf enum value: DOC_ACTIVITY_TYPE_DELETED = 9;
228
+ */
229
+ DELETED = 9,
230
+ /**
231
+ * Comments
232
+ *
233
+ * @generated from protobuf enum value: DOC_ACTIVITY_TYPE_COMMENT_ADDED = 10;
234
+ */
235
+ COMMENT_ADDED = 10,
236
+ /**
237
+ * @generated from protobuf enum value: DOC_ACTIVITY_TYPE_COMMENT_UPDATED = 11;
238
+ */
239
+ COMMENT_UPDATED = 11,
240
+ /**
241
+ * @generated from protobuf enum value: DOC_ACTIVITY_TYPE_COMMENT_DELETED = 12;
242
+ */
243
+ COMMENT_DELETED = 12,
244
+ /**
245
+ * Requests
246
+ *
247
+ * @generated from protobuf enum value: DOC_ACTIVITY_TYPE_REQUESTED_ACCESS = 13;
248
+ */
249
+ REQUESTED_ACCESS = 13,
250
+ /**
251
+ * @generated from protobuf enum value: DOC_ACTIVITY_TYPE_REQUESTED_CLOSURE = 14;
252
+ */
253
+ REQUESTED_CLOSURE = 14,
254
+ /**
255
+ * @generated from protobuf enum value: DOC_ACTIVITY_TYPE_REQUESTED_OPENING = 15;
256
+ */
257
+ REQUESTED_OPENING = 15,
258
+ /**
259
+ * @generated from protobuf enum value: DOC_ACTIVITY_TYPE_REQUESTED_UPDATE = 16;
260
+ */
261
+ REQUESTED_UPDATE = 16,
262
+ /**
263
+ * @generated from protobuf enum value: DOC_ACTIVITY_TYPE_REQUESTED_OWNER_CHANGE = 17;
264
+ */
265
+ REQUESTED_OWNER_CHANGE = 17,
266
+ /**
267
+ * @generated from protobuf enum value: DOC_ACTIVITY_TYPE_REQUESTED_DELETION = 18;
268
+ */
269
+ REQUESTED_DELETION = 18
270
+ }
271
+ // @generated message type with reflection information, may provide speed optimized methods
272
+ class DocActivity$Type extends MessageType<DocActivity> {
273
+ constructor() {
274
+ super("resources.documents.DocActivity", [
275
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
276
+ { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
277
+ { no: 3, name: "document_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
278
+ { no: 4, name: "activity_type", kind: "enum", T: () => ["resources.documents.DocActivityType", DocActivityType, "DOC_ACTIVITY_TYPE_"] },
279
+ { no: 5, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
280
+ { no: 6, name: "creator", kind: "message", T: () => UserShort },
281
+ { no: 7, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
282
+ { no: 8, name: "creator_job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50" } } } },
283
+ { no: 9, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
284
+ { no: 10, name: "data", kind: "message", T: () => DocActivityData }
285
+ ]);
286
+ }
287
+ create(value?: PartialMessage<DocActivity>): DocActivity {
288
+ const message = globalThis.Object.create((this.messagePrototype!));
289
+ message.id = "0";
290
+ message.documentId = "0";
291
+ message.activityType = 0;
292
+ message.creatorJob = "";
293
+ if (value !== undefined)
294
+ reflectionMergePartial<DocActivity>(this, message, value);
295
+ return message;
296
+ }
297
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DocActivity): DocActivity {
298
+ let message = target ?? this.create(), end = reader.pos + length;
299
+ while (reader.pos < end) {
300
+ let [fieldNo, wireType] = reader.tag();
301
+ switch (fieldNo) {
302
+ case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
303
+ message.id = reader.uint64().toString();
304
+ break;
305
+ case /* resources.timestamp.Timestamp created_at */ 2:
306
+ message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
307
+ break;
308
+ case /* uint64 document_id = 3 [jstype = JS_STRING];*/ 3:
309
+ message.documentId = reader.uint64().toString();
310
+ break;
311
+ case /* resources.documents.DocActivityType activity_type */ 4:
312
+ message.activityType = reader.int32();
313
+ break;
314
+ case /* optional int32 creator_id */ 5:
315
+ message.creatorId = reader.int32();
316
+ break;
317
+ case /* optional resources.users.UserShort creator */ 6:
318
+ message.creator = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.creator);
319
+ break;
320
+ case /* string creator_job */ 7:
321
+ message.creatorJob = reader.string();
322
+ break;
323
+ case /* optional string creator_job_label */ 8:
324
+ message.creatorJobLabel = reader.string();
325
+ break;
326
+ case /* optional string reason */ 9:
327
+ message.reason = reader.string();
328
+ break;
329
+ case /* resources.documents.DocActivityData data */ 10:
330
+ message.data = DocActivityData.internalBinaryRead(reader, reader.uint32(), options, message.data);
331
+ break;
332
+ default:
333
+ let u = options.readUnknownField;
334
+ if (u === "throw")
335
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
336
+ let d = reader.skip(wireType);
337
+ if (u !== false)
338
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
339
+ }
340
+ }
341
+ return message;
342
+ }
343
+ internalBinaryWrite(message: DocActivity, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
344
+ /* uint64 id = 1 [jstype = JS_STRING]; */
345
+ if (message.id !== "0")
346
+ writer.tag(1, WireType.Varint).uint64(message.id);
347
+ /* resources.timestamp.Timestamp created_at = 2; */
348
+ if (message.createdAt)
349
+ Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
350
+ /* uint64 document_id = 3 [jstype = JS_STRING]; */
351
+ if (message.documentId !== "0")
352
+ writer.tag(3, WireType.Varint).uint64(message.documentId);
353
+ /* resources.documents.DocActivityType activity_type = 4; */
354
+ if (message.activityType !== 0)
355
+ writer.tag(4, WireType.Varint).int32(message.activityType);
356
+ /* optional int32 creator_id = 5; */
357
+ if (message.creatorId !== undefined)
358
+ writer.tag(5, WireType.Varint).int32(message.creatorId);
359
+ /* optional resources.users.UserShort creator = 6; */
360
+ if (message.creator)
361
+ UserShort.internalBinaryWrite(message.creator, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
362
+ /* string creator_job = 7; */
363
+ if (message.creatorJob !== "")
364
+ writer.tag(7, WireType.LengthDelimited).string(message.creatorJob);
365
+ /* optional string creator_job_label = 8; */
366
+ if (message.creatorJobLabel !== undefined)
367
+ writer.tag(8, WireType.LengthDelimited).string(message.creatorJobLabel);
368
+ /* optional string reason = 9; */
369
+ if (message.reason !== undefined)
370
+ writer.tag(9, WireType.LengthDelimited).string(message.reason);
371
+ /* resources.documents.DocActivityData data = 10; */
372
+ if (message.data)
373
+ DocActivityData.internalBinaryWrite(message.data, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
374
+ let u = options.writeUnknownFields;
375
+ if (u !== false)
376
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
377
+ return writer;
378
+ }
379
+ }
380
+ /**
381
+ * @generated MessageType for protobuf message resources.documents.DocActivity
382
+ */
383
+ export const DocActivity = new DocActivity$Type();
384
+ // @generated message type with reflection information, may provide speed optimized methods
385
+ class DocActivityData$Type extends MessageType<DocActivityData> {
386
+ constructor() {
387
+ super("resources.documents.DocActivityData", [
388
+ { no: 1, name: "updated", kind: "message", oneof: "data", T: () => DocUpdated },
389
+ { no: 2, name: "owner_changed", kind: "message", oneof: "data", T: () => DocOwnerChanged },
390
+ { no: 4, name: "access_updated", kind: "message", oneof: "data", T: () => DocAccessUpdated },
391
+ { no: 5, name: "access_requested", kind: "message", oneof: "data", T: () => DocAccessRequested }
392
+ ]);
393
+ }
394
+ create(value?: PartialMessage<DocActivityData>): DocActivityData {
395
+ const message = globalThis.Object.create((this.messagePrototype!));
396
+ message.data = { oneofKind: undefined };
397
+ if (value !== undefined)
398
+ reflectionMergePartial<DocActivityData>(this, message, value);
399
+ return message;
400
+ }
401
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DocActivityData): DocActivityData {
402
+ let message = target ?? this.create(), end = reader.pos + length;
403
+ while (reader.pos < end) {
404
+ let [fieldNo, wireType] = reader.tag();
405
+ switch (fieldNo) {
406
+ case /* resources.documents.DocUpdated updated */ 1:
407
+ message.data = {
408
+ oneofKind: "updated",
409
+ updated: DocUpdated.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).updated)
410
+ };
411
+ break;
412
+ case /* resources.documents.DocOwnerChanged owner_changed */ 2:
413
+ message.data = {
414
+ oneofKind: "ownerChanged",
415
+ ownerChanged: DocOwnerChanged.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).ownerChanged)
416
+ };
417
+ break;
418
+ case /* resources.documents.DocAccessUpdated access_updated */ 4:
419
+ message.data = {
420
+ oneofKind: "accessUpdated",
421
+ accessUpdated: DocAccessUpdated.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).accessUpdated)
422
+ };
423
+ break;
424
+ case /* resources.documents.DocAccessRequested access_requested */ 5:
425
+ message.data = {
426
+ oneofKind: "accessRequested",
427
+ accessRequested: DocAccessRequested.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).accessRequested)
428
+ };
429
+ break;
430
+ default:
431
+ let u = options.readUnknownField;
432
+ if (u === "throw")
433
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
434
+ let d = reader.skip(wireType);
435
+ if (u !== false)
436
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
437
+ }
438
+ }
439
+ return message;
440
+ }
441
+ internalBinaryWrite(message: DocActivityData, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
442
+ /* resources.documents.DocUpdated updated = 1; */
443
+ if (message.data.oneofKind === "updated")
444
+ DocUpdated.internalBinaryWrite(message.data.updated, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
445
+ /* resources.documents.DocOwnerChanged owner_changed = 2; */
446
+ if (message.data.oneofKind === "ownerChanged")
447
+ DocOwnerChanged.internalBinaryWrite(message.data.ownerChanged, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
448
+ /* resources.documents.DocAccessUpdated access_updated = 4; */
449
+ if (message.data.oneofKind === "accessUpdated")
450
+ DocAccessUpdated.internalBinaryWrite(message.data.accessUpdated, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
451
+ /* resources.documents.DocAccessRequested access_requested = 5; */
452
+ if (message.data.oneofKind === "accessRequested")
453
+ DocAccessRequested.internalBinaryWrite(message.data.accessRequested, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
454
+ let u = options.writeUnknownFields;
455
+ if (u !== false)
456
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
457
+ return writer;
458
+ }
459
+ }
460
+ /**
461
+ * @generated MessageType for protobuf message resources.documents.DocActivityData
462
+ */
463
+ export const DocActivityData = new DocActivityData$Type();
464
+ // @generated message type with reflection information, may provide speed optimized methods
465
+ class DocUpdated$Type extends MessageType<DocUpdated> {
466
+ constructor() {
467
+ super("resources.documents.DocUpdated", [
468
+ { no: 1, name: "title_diff", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
469
+ { no: 2, name: "content_diff", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
470
+ { no: 3, name: "state_diff", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
471
+ ]);
472
+ }
473
+ create(value?: PartialMessage<DocUpdated>): DocUpdated {
474
+ const message = globalThis.Object.create((this.messagePrototype!));
475
+ if (value !== undefined)
476
+ reflectionMergePartial<DocUpdated>(this, message, value);
477
+ return message;
478
+ }
479
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DocUpdated): DocUpdated {
480
+ let message = target ?? this.create(), end = reader.pos + length;
481
+ while (reader.pos < end) {
482
+ let [fieldNo, wireType] = reader.tag();
483
+ switch (fieldNo) {
484
+ case /* optional string title_diff */ 1:
485
+ message.titleDiff = reader.string();
486
+ break;
487
+ case /* optional string content_diff */ 2:
488
+ message.contentDiff = reader.string();
489
+ break;
490
+ case /* optional string state_diff */ 3:
491
+ message.stateDiff = reader.string();
492
+ break;
493
+ default:
494
+ let u = options.readUnknownField;
495
+ if (u === "throw")
496
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
497
+ let d = reader.skip(wireType);
498
+ if (u !== false)
499
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
500
+ }
501
+ }
502
+ return message;
503
+ }
504
+ internalBinaryWrite(message: DocUpdated, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
505
+ /* optional string title_diff = 1; */
506
+ if (message.titleDiff !== undefined)
507
+ writer.tag(1, WireType.LengthDelimited).string(message.titleDiff);
508
+ /* optional string content_diff = 2; */
509
+ if (message.contentDiff !== undefined)
510
+ writer.tag(2, WireType.LengthDelimited).string(message.contentDiff);
511
+ /* optional string state_diff = 3; */
512
+ if (message.stateDiff !== undefined)
513
+ writer.tag(3, WireType.LengthDelimited).string(message.stateDiff);
514
+ let u = options.writeUnknownFields;
515
+ if (u !== false)
516
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
517
+ return writer;
518
+ }
519
+ }
520
+ /**
521
+ * @generated MessageType for protobuf message resources.documents.DocUpdated
522
+ */
523
+ export const DocUpdated = new DocUpdated$Type();
524
+ // @generated message type with reflection information, may provide speed optimized methods
525
+ class DocOwnerChanged$Type extends MessageType<DocOwnerChanged> {
526
+ constructor() {
527
+ super("resources.documents.DocOwnerChanged", [
528
+ { no: 1, name: "new_owner_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
529
+ { no: 2, name: "new_owner", kind: "message", T: () => UserShort }
530
+ ]);
531
+ }
532
+ create(value?: PartialMessage<DocOwnerChanged>): DocOwnerChanged {
533
+ const message = globalThis.Object.create((this.messagePrototype!));
534
+ message.newOwnerId = 0;
535
+ if (value !== undefined)
536
+ reflectionMergePartial<DocOwnerChanged>(this, message, value);
537
+ return message;
538
+ }
539
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DocOwnerChanged): DocOwnerChanged {
540
+ let message = target ?? this.create(), end = reader.pos + length;
541
+ while (reader.pos < end) {
542
+ let [fieldNo, wireType] = reader.tag();
543
+ switch (fieldNo) {
544
+ case /* int32 new_owner_id */ 1:
545
+ message.newOwnerId = reader.int32();
546
+ break;
547
+ case /* resources.users.UserShort new_owner */ 2:
548
+ message.newOwner = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.newOwner);
549
+ break;
550
+ default:
551
+ let u = options.readUnknownField;
552
+ if (u === "throw")
553
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
554
+ let d = reader.skip(wireType);
555
+ if (u !== false)
556
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
557
+ }
558
+ }
559
+ return message;
560
+ }
561
+ internalBinaryWrite(message: DocOwnerChanged, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
562
+ /* int32 new_owner_id = 1; */
563
+ if (message.newOwnerId !== 0)
564
+ writer.tag(1, WireType.Varint).int32(message.newOwnerId);
565
+ /* resources.users.UserShort new_owner = 2; */
566
+ if (message.newOwner)
567
+ UserShort.internalBinaryWrite(message.newOwner, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
568
+ let u = options.writeUnknownFields;
569
+ if (u !== false)
570
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
571
+ return writer;
572
+ }
573
+ }
574
+ /**
575
+ * @generated MessageType for protobuf message resources.documents.DocOwnerChanged
576
+ */
577
+ export const DocOwnerChanged = new DocOwnerChanged$Type();
578
+ // @generated message type with reflection information, may provide speed optimized methods
579
+ class DocAccessRequested$Type extends MessageType<DocAccessRequested> {
580
+ constructor() {
581
+ super("resources.documents.DocAccessRequested", [
582
+ { no: 1, name: "level", kind: "enum", T: () => ["resources.documents.AccessLevel", AccessLevel, "ACCESS_LEVEL_"], options: { "validate.rules": { enum: { definedOnly: true } } } }
583
+ ]);
584
+ }
585
+ create(value?: PartialMessage<DocAccessRequested>): DocAccessRequested {
586
+ const message = globalThis.Object.create((this.messagePrototype!));
587
+ message.level = 0;
588
+ if (value !== undefined)
589
+ reflectionMergePartial<DocAccessRequested>(this, message, value);
590
+ return message;
591
+ }
592
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DocAccessRequested): DocAccessRequested {
593
+ let message = target ?? this.create(), end = reader.pos + length;
594
+ while (reader.pos < end) {
595
+ let [fieldNo, wireType] = reader.tag();
596
+ switch (fieldNo) {
597
+ case /* resources.documents.AccessLevel level */ 1:
598
+ message.level = reader.int32();
599
+ break;
600
+ default:
601
+ let u = options.readUnknownField;
602
+ if (u === "throw")
603
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
604
+ let d = reader.skip(wireType);
605
+ if (u !== false)
606
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
607
+ }
608
+ }
609
+ return message;
610
+ }
611
+ internalBinaryWrite(message: DocAccessRequested, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
612
+ /* resources.documents.AccessLevel level = 1; */
613
+ if (message.level !== 0)
614
+ writer.tag(1, WireType.Varint).int32(message.level);
615
+ let u = options.writeUnknownFields;
616
+ if (u !== false)
617
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
618
+ return writer;
619
+ }
620
+ }
621
+ /**
622
+ * @generated MessageType for protobuf message resources.documents.DocAccessRequested
623
+ */
624
+ export const DocAccessRequested = new DocAccessRequested$Type();
625
+ // @generated message type with reflection information, may provide speed optimized methods
626
+ class DocAccessUpdated$Type extends MessageType<DocAccessUpdated> {
627
+ constructor() {
628
+ super("resources.documents.DocAccessUpdated", [
629
+ { no: 1, name: "jobs", kind: "message", T: () => DocAccessJobsDiff },
630
+ { no: 2, name: "users", kind: "message", T: () => DocAccessUsersDiff }
631
+ ]);
632
+ }
633
+ create(value?: PartialMessage<DocAccessUpdated>): DocAccessUpdated {
634
+ const message = globalThis.Object.create((this.messagePrototype!));
635
+ if (value !== undefined)
636
+ reflectionMergePartial<DocAccessUpdated>(this, message, value);
637
+ return message;
638
+ }
639
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DocAccessUpdated): DocAccessUpdated {
640
+ let message = target ?? this.create(), end = reader.pos + length;
641
+ while (reader.pos < end) {
642
+ let [fieldNo, wireType] = reader.tag();
643
+ switch (fieldNo) {
644
+ case /* resources.documents.DocAccessJobsDiff jobs */ 1:
645
+ message.jobs = DocAccessJobsDiff.internalBinaryRead(reader, reader.uint32(), options, message.jobs);
646
+ break;
647
+ case /* resources.documents.DocAccessUsersDiff users */ 2:
648
+ message.users = DocAccessUsersDiff.internalBinaryRead(reader, reader.uint32(), options, message.users);
649
+ break;
650
+ default:
651
+ let u = options.readUnknownField;
652
+ if (u === "throw")
653
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
654
+ let d = reader.skip(wireType);
655
+ if (u !== false)
656
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
657
+ }
658
+ }
659
+ return message;
660
+ }
661
+ internalBinaryWrite(message: DocAccessUpdated, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
662
+ /* resources.documents.DocAccessJobsDiff jobs = 1; */
663
+ if (message.jobs)
664
+ DocAccessJobsDiff.internalBinaryWrite(message.jobs, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
665
+ /* resources.documents.DocAccessUsersDiff users = 2; */
666
+ if (message.users)
667
+ DocAccessUsersDiff.internalBinaryWrite(message.users, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
668
+ let u = options.writeUnknownFields;
669
+ if (u !== false)
670
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
671
+ return writer;
672
+ }
673
+ }
674
+ /**
675
+ * @generated MessageType for protobuf message resources.documents.DocAccessUpdated
676
+ */
677
+ export const DocAccessUpdated = new DocAccessUpdated$Type();
678
+ // @generated message type with reflection information, may provide speed optimized methods
679
+ class DocAccessJobsDiff$Type extends MessageType<DocAccessJobsDiff> {
680
+ constructor() {
681
+ super("resources.documents.DocAccessJobsDiff", [
682
+ { no: 1, name: "to_create", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => DocumentJobAccess, options: { "validate.rules": { repeated: { maxItems: "20" } } } },
683
+ { no: 2, name: "to_update", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => DocumentJobAccess, options: { "validate.rules": { repeated: { maxItems: "20" } } } },
684
+ { no: 3, name: "to_delete", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => DocumentJobAccess, options: { "validate.rules": { repeated: { maxItems: "20" } } } }
685
+ ]);
686
+ }
687
+ create(value?: PartialMessage<DocAccessJobsDiff>): DocAccessJobsDiff {
688
+ const message = globalThis.Object.create((this.messagePrototype!));
689
+ message.toCreate = [];
690
+ message.toUpdate = [];
691
+ message.toDelete = [];
692
+ if (value !== undefined)
693
+ reflectionMergePartial<DocAccessJobsDiff>(this, message, value);
694
+ return message;
695
+ }
696
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DocAccessJobsDiff): DocAccessJobsDiff {
697
+ let message = target ?? this.create(), end = reader.pos + length;
698
+ while (reader.pos < end) {
699
+ let [fieldNo, wireType] = reader.tag();
700
+ switch (fieldNo) {
701
+ case /* repeated resources.documents.DocumentJobAccess to_create */ 1:
702
+ message.toCreate.push(DocumentJobAccess.internalBinaryRead(reader, reader.uint32(), options));
703
+ break;
704
+ case /* repeated resources.documents.DocumentJobAccess to_update */ 2:
705
+ message.toUpdate.push(DocumentJobAccess.internalBinaryRead(reader, reader.uint32(), options));
706
+ break;
707
+ case /* repeated resources.documents.DocumentJobAccess to_delete */ 3:
708
+ message.toDelete.push(DocumentJobAccess.internalBinaryRead(reader, reader.uint32(), options));
709
+ break;
710
+ default:
711
+ let u = options.readUnknownField;
712
+ if (u === "throw")
713
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
714
+ let d = reader.skip(wireType);
715
+ if (u !== false)
716
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
717
+ }
718
+ }
719
+ return message;
720
+ }
721
+ internalBinaryWrite(message: DocAccessJobsDiff, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
722
+ /* repeated resources.documents.DocumentJobAccess to_create = 1; */
723
+ for (let i = 0; i < message.toCreate.length; i++)
724
+ DocumentJobAccess.internalBinaryWrite(message.toCreate[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
725
+ /* repeated resources.documents.DocumentJobAccess to_update = 2; */
726
+ for (let i = 0; i < message.toUpdate.length; i++)
727
+ DocumentJobAccess.internalBinaryWrite(message.toUpdate[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
728
+ /* repeated resources.documents.DocumentJobAccess to_delete = 3; */
729
+ for (let i = 0; i < message.toDelete.length; i++)
730
+ DocumentJobAccess.internalBinaryWrite(message.toDelete[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
731
+ let u = options.writeUnknownFields;
732
+ if (u !== false)
733
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
734
+ return writer;
735
+ }
736
+ }
737
+ /**
738
+ * @generated MessageType for protobuf message resources.documents.DocAccessJobsDiff
739
+ */
740
+ export const DocAccessJobsDiff = new DocAccessJobsDiff$Type();
741
+ // @generated message type with reflection information, may provide speed optimized methods
742
+ class DocAccessUsersDiff$Type extends MessageType<DocAccessUsersDiff> {
743
+ constructor() {
744
+ super("resources.documents.DocAccessUsersDiff", [
745
+ { no: 1, name: "to_create", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => DocumentUserAccess, options: { "validate.rules": { repeated: { maxItems: "20" } } } },
746
+ { no: 2, name: "to_update", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => DocumentUserAccess, options: { "validate.rules": { repeated: { maxItems: "20" } } } },
747
+ { no: 3, name: "to_delete", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => DocumentUserAccess, options: { "validate.rules": { repeated: { maxItems: "20" } } } }
748
+ ]);
749
+ }
750
+ create(value?: PartialMessage<DocAccessUsersDiff>): DocAccessUsersDiff {
751
+ const message = globalThis.Object.create((this.messagePrototype!));
752
+ message.toCreate = [];
753
+ message.toUpdate = [];
754
+ message.toDelete = [];
755
+ if (value !== undefined)
756
+ reflectionMergePartial<DocAccessUsersDiff>(this, message, value);
757
+ return message;
758
+ }
759
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DocAccessUsersDiff): DocAccessUsersDiff {
760
+ let message = target ?? this.create(), end = reader.pos + length;
761
+ while (reader.pos < end) {
762
+ let [fieldNo, wireType] = reader.tag();
763
+ switch (fieldNo) {
764
+ case /* repeated resources.documents.DocumentUserAccess to_create */ 1:
765
+ message.toCreate.push(DocumentUserAccess.internalBinaryRead(reader, reader.uint32(), options));
766
+ break;
767
+ case /* repeated resources.documents.DocumentUserAccess to_update */ 2:
768
+ message.toUpdate.push(DocumentUserAccess.internalBinaryRead(reader, reader.uint32(), options));
769
+ break;
770
+ case /* repeated resources.documents.DocumentUserAccess to_delete */ 3:
771
+ message.toDelete.push(DocumentUserAccess.internalBinaryRead(reader, reader.uint32(), options));
772
+ break;
773
+ default:
774
+ let u = options.readUnknownField;
775
+ if (u === "throw")
776
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
777
+ let d = reader.skip(wireType);
778
+ if (u !== false)
779
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
780
+ }
781
+ }
782
+ return message;
783
+ }
784
+ internalBinaryWrite(message: DocAccessUsersDiff, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
785
+ /* repeated resources.documents.DocumentUserAccess to_create = 1; */
786
+ for (let i = 0; i < message.toCreate.length; i++)
787
+ DocumentUserAccess.internalBinaryWrite(message.toCreate[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
788
+ /* repeated resources.documents.DocumentUserAccess to_update = 2; */
789
+ for (let i = 0; i < message.toUpdate.length; i++)
790
+ DocumentUserAccess.internalBinaryWrite(message.toUpdate[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
791
+ /* repeated resources.documents.DocumentUserAccess to_delete = 3; */
792
+ for (let i = 0; i < message.toDelete.length; i++)
793
+ DocumentUserAccess.internalBinaryWrite(message.toDelete[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
794
+ let u = options.writeUnknownFields;
795
+ if (u !== false)
796
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
797
+ return writer;
798
+ }
799
+ }
800
+ /**
801
+ * @generated MessageType for protobuf message resources.documents.DocAccessUsersDiff
802
+ */
803
+ export const DocAccessUsersDiff = new DocAccessUsersDiff$Type();