@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,854 @@
1
+ // @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
2
+ // @generated from protobuf file "resources/centrum/dispatches.proto" (package "resources.centrum", 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 { Colleague } from "../jobs/colleagues";
14
+ import { Unit } from "./units";
15
+ import { User } from "../users/users";
16
+ import { Attributes } from "./general";
17
+ import { Timestamp } from "../timestamp/timestamp";
18
+ /**
19
+ * @generated from protobuf message resources.centrum.Dispatch
20
+ */
21
+ export interface Dispatch {
22
+ /**
23
+ * @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
24
+ */
25
+ id: string; // @gotags: sql:"primary_key" alias:"id"
26
+ /**
27
+ * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
28
+ */
29
+ createdAt?: Timestamp;
30
+ /**
31
+ * @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 3;
32
+ */
33
+ updatedAt?: Timestamp;
34
+ /**
35
+ * @generated from protobuf field: string job = 4;
36
+ */
37
+ job: string;
38
+ /**
39
+ * @generated from protobuf field: optional resources.centrum.DispatchStatus status = 5;
40
+ */
41
+ status?: DispatchStatus;
42
+ /**
43
+ * @sanitize
44
+ *
45
+ * @generated from protobuf field: string message = 7;
46
+ */
47
+ message: string;
48
+ /**
49
+ * @sanitize
50
+ *
51
+ * @generated from protobuf field: optional string description = 8;
52
+ */
53
+ description?: string;
54
+ /**
55
+ * @generated from protobuf field: optional resources.centrum.Attributes attributes = 9;
56
+ */
57
+ attributes?: Attributes;
58
+ /**
59
+ * @generated from protobuf field: double x = 10;
60
+ */
61
+ x: number;
62
+ /**
63
+ * @generated from protobuf field: double y = 11;
64
+ */
65
+ y: number;
66
+ /**
67
+ * @sanitize
68
+ *
69
+ * @generated from protobuf field: optional string postal = 12;
70
+ */
71
+ postal?: string;
72
+ /**
73
+ * @generated from protobuf field: bool anon = 13;
74
+ */
75
+ anon: boolean;
76
+ /**
77
+ * @generated from protobuf field: optional int32 creator_id = 14;
78
+ */
79
+ creatorId?: number;
80
+ /**
81
+ * @generated from protobuf field: optional resources.users.User creator = 15;
82
+ */
83
+ creator?: User;
84
+ /**
85
+ * @generated from protobuf field: repeated resources.centrum.DispatchAssignment units = 16;
86
+ */
87
+ units: DispatchAssignment[];
88
+ /**
89
+ * @generated from protobuf field: optional resources.centrum.DispatchReferences references = 17;
90
+ */
91
+ references?: DispatchReferences;
92
+ }
93
+ /**
94
+ * @generated from protobuf message resources.centrum.DispatchAssignments
95
+ */
96
+ export interface DispatchAssignments {
97
+ /**
98
+ * @generated from protobuf field: uint64 dispatch_id = 1 [jstype = JS_STRING];
99
+ */
100
+ dispatchId: string;
101
+ /**
102
+ * @generated from protobuf field: string job = 2;
103
+ */
104
+ job: string;
105
+ /**
106
+ * @generated from protobuf field: repeated resources.centrum.DispatchAssignment units = 3;
107
+ */
108
+ units: DispatchAssignment[];
109
+ }
110
+ /**
111
+ * @generated from protobuf message resources.centrum.DispatchAssignment
112
+ */
113
+ export interface DispatchAssignment {
114
+ /**
115
+ * @generated from protobuf field: uint64 dispatch_id = 1 [jstype = JS_STRING];
116
+ */
117
+ dispatchId: string; // @gotags: sql:"primary_key" alias:"dispatch_id"
118
+ /**
119
+ * @generated from protobuf field: uint64 unit_id = 2 [jstype = JS_STRING];
120
+ */
121
+ unitId: string; // @gotags: sql:"primary_key" alias:"unit_id"
122
+ /**
123
+ * @generated from protobuf field: optional resources.centrum.Unit unit = 3;
124
+ */
125
+ unit?: Unit;
126
+ /**
127
+ * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 4;
128
+ */
129
+ createdAt?: Timestamp;
130
+ /**
131
+ * @generated from protobuf field: optional resources.timestamp.Timestamp expires_at = 5;
132
+ */
133
+ expiresAt?: Timestamp;
134
+ }
135
+ /**
136
+ * @generated from protobuf message resources.centrum.DispatchStatus
137
+ */
138
+ export interface DispatchStatus {
139
+ /**
140
+ * @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
141
+ */
142
+ id: string; // @gotags: sql:"primary_key" alias:"id"
143
+ /**
144
+ * @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
145
+ */
146
+ createdAt?: Timestamp;
147
+ /**
148
+ * @generated from protobuf field: uint64 dispatch_id = 3 [jstype = JS_STRING];
149
+ */
150
+ dispatchId: string;
151
+ /**
152
+ * @generated from protobuf field: optional uint64 unit_id = 4 [jstype = JS_STRING];
153
+ */
154
+ unitId?: string;
155
+ /**
156
+ * @generated from protobuf field: optional resources.centrum.Unit unit = 5;
157
+ */
158
+ unit?: Unit;
159
+ /**
160
+ * @generated from protobuf field: resources.centrum.StatusDispatch status = 6;
161
+ */
162
+ status: StatusDispatch;
163
+ /**
164
+ * @sanitize
165
+ *
166
+ * @generated from protobuf field: optional string reason = 7;
167
+ */
168
+ reason?: string;
169
+ /**
170
+ * @sanitize
171
+ *
172
+ * @generated from protobuf field: optional string code = 8;
173
+ */
174
+ code?: string;
175
+ /**
176
+ * @generated from protobuf field: optional int32 user_id = 9;
177
+ */
178
+ userId?: number;
179
+ /**
180
+ * @generated from protobuf field: optional resources.jobs.Colleague user = 10;
181
+ */
182
+ user?: Colleague;
183
+ /**
184
+ * @generated from protobuf field: optional double x = 11;
185
+ */
186
+ x?: number;
187
+ /**
188
+ * @generated from protobuf field: optional double y = 12;
189
+ */
190
+ y?: number;
191
+ /**
192
+ * @sanitize
193
+ *
194
+ * @generated from protobuf field: optional string postal = 13;
195
+ */
196
+ postal?: string;
197
+ }
198
+ /**
199
+ * @generated from protobuf message resources.centrum.DispatchReferences
200
+ */
201
+ export interface DispatchReferences {
202
+ /**
203
+ * @generated from protobuf field: repeated resources.centrum.DispatchReference references = 1;
204
+ */
205
+ references: DispatchReference[];
206
+ }
207
+ /**
208
+ * @generated from protobuf message resources.centrum.DispatchReference
209
+ */
210
+ export interface DispatchReference {
211
+ /**
212
+ * @generated from protobuf field: uint64 target_dispatch_id = 1 [jstype = JS_STRING];
213
+ */
214
+ targetDispatchId: string;
215
+ /**
216
+ * @generated from protobuf field: resources.centrum.DispatchReferenceType reference_type = 2;
217
+ */
218
+ referenceType: DispatchReferenceType;
219
+ }
220
+ /**
221
+ * @generated from protobuf enum resources.centrum.StatusDispatch
222
+ */
223
+ export enum StatusDispatch {
224
+ /**
225
+ * @generated from protobuf enum value: STATUS_DISPATCH_UNSPECIFIED = 0;
226
+ */
227
+ UNSPECIFIED = 0,
228
+ /**
229
+ * @generated from protobuf enum value: STATUS_DISPATCH_NEW = 1;
230
+ */
231
+ NEW = 1,
232
+ /**
233
+ * @generated from protobuf enum value: STATUS_DISPATCH_UNASSIGNED = 2;
234
+ */
235
+ UNASSIGNED = 2,
236
+ /**
237
+ * @generated from protobuf enum value: STATUS_DISPATCH_UPDATED = 3;
238
+ */
239
+ UPDATED = 3,
240
+ /**
241
+ * @generated from protobuf enum value: STATUS_DISPATCH_UNIT_ASSIGNED = 4;
242
+ */
243
+ UNIT_ASSIGNED = 4,
244
+ /**
245
+ * @generated from protobuf enum value: STATUS_DISPATCH_UNIT_UNASSIGNED = 5;
246
+ */
247
+ UNIT_UNASSIGNED = 5,
248
+ /**
249
+ * @generated from protobuf enum value: STATUS_DISPATCH_UNIT_ACCEPTED = 6;
250
+ */
251
+ UNIT_ACCEPTED = 6,
252
+ /**
253
+ * @generated from protobuf enum value: STATUS_DISPATCH_UNIT_DECLINED = 7;
254
+ */
255
+ UNIT_DECLINED = 7,
256
+ /**
257
+ * @generated from protobuf enum value: STATUS_DISPATCH_EN_ROUTE = 8;
258
+ */
259
+ EN_ROUTE = 8,
260
+ /**
261
+ * @generated from protobuf enum value: STATUS_DISPATCH_ON_SCENE = 9;
262
+ */
263
+ ON_SCENE = 9,
264
+ /**
265
+ * @generated from protobuf enum value: STATUS_DISPATCH_NEED_ASSISTANCE = 10;
266
+ */
267
+ NEED_ASSISTANCE = 10,
268
+ /**
269
+ * @generated from protobuf enum value: STATUS_DISPATCH_COMPLETED = 11;
270
+ */
271
+ COMPLETED = 11,
272
+ /**
273
+ * @generated from protobuf enum value: STATUS_DISPATCH_CANCELLED = 12;
274
+ */
275
+ CANCELLED = 12,
276
+ /**
277
+ * @generated from protobuf enum value: STATUS_DISPATCH_ARCHIVED = 13;
278
+ */
279
+ ARCHIVED = 13
280
+ }
281
+ /**
282
+ * @generated from protobuf enum resources.centrum.TakeDispatchResp
283
+ */
284
+ export enum TakeDispatchResp {
285
+ /**
286
+ * @generated from protobuf enum value: TAKE_DISPATCH_RESP_UNSPECIFIED = 0;
287
+ */
288
+ UNSPECIFIED = 0,
289
+ /**
290
+ * @generated from protobuf enum value: TAKE_DISPATCH_RESP_TIMEOUT = 1;
291
+ */
292
+ TIMEOUT = 1,
293
+ /**
294
+ * @generated from protobuf enum value: TAKE_DISPATCH_RESP_ACCEPTED = 2;
295
+ */
296
+ ACCEPTED = 2,
297
+ /**
298
+ * @generated from protobuf enum value: TAKE_DISPATCH_RESP_DECLINED = 3;
299
+ */
300
+ DECLINED = 3
301
+ }
302
+ /**
303
+ * @generated from protobuf enum resources.centrum.DispatchReferenceType
304
+ */
305
+ export enum DispatchReferenceType {
306
+ /**
307
+ * @generated from protobuf enum value: DISPATCH_REFERENCE_TYPE_UNSPECIFIED = 0;
308
+ */
309
+ UNSPECIFIED = 0,
310
+ /**
311
+ * @generated from protobuf enum value: DISPATCH_REFERENCE_TYPE_REFERENCED = 1;
312
+ */
313
+ REFERENCED = 1,
314
+ /**
315
+ * @generated from protobuf enum value: DISPATCH_REFERENCE_TYPE_DUPLICATED_BY = 2;
316
+ */
317
+ DUPLICATED_BY = 2,
318
+ /**
319
+ * @generated from protobuf enum value: DISPATCH_REFERENCE_TYPE_DUPLICATE_OF = 3;
320
+ */
321
+ DUPLICATE_OF = 3
322
+ }
323
+ // @generated message type with reflection information, may provide speed optimized methods
324
+ class Dispatch$Type extends MessageType<Dispatch> {
325
+ constructor() {
326
+ super("resources.centrum.Dispatch", [
327
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
328
+ { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
329
+ { no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
330
+ { no: 4, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
331
+ { no: 5, name: "status", kind: "message", T: () => DispatchStatus },
332
+ { no: 7, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
333
+ { no: 8, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "1024" } } } },
334
+ { no: 9, name: "attributes", kind: "message", T: () => Attributes },
335
+ { no: 10, name: "x", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
336
+ { no: 11, name: "y", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
337
+ { no: 12, name: "postal", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "48" } } } },
338
+ { no: 13, name: "anon", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
339
+ { no: 14, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
340
+ { no: 15, name: "creator", kind: "message", T: () => User },
341
+ { no: 16, name: "units", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => DispatchAssignment },
342
+ { no: 17, name: "references", kind: "message", T: () => DispatchReferences }
343
+ ]);
344
+ }
345
+ create(value?: PartialMessage<Dispatch>): Dispatch {
346
+ const message = globalThis.Object.create((this.messagePrototype!));
347
+ message.id = "0";
348
+ message.job = "";
349
+ message.message = "";
350
+ message.x = 0;
351
+ message.y = 0;
352
+ message.anon = false;
353
+ message.units = [];
354
+ if (value !== undefined)
355
+ reflectionMergePartial<Dispatch>(this, message, value);
356
+ return message;
357
+ }
358
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Dispatch): Dispatch {
359
+ let message = target ?? this.create(), end = reader.pos + length;
360
+ while (reader.pos < end) {
361
+ let [fieldNo, wireType] = reader.tag();
362
+ switch (fieldNo) {
363
+ case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
364
+ message.id = reader.uint64().toString();
365
+ break;
366
+ case /* optional resources.timestamp.Timestamp created_at */ 2:
367
+ message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
368
+ break;
369
+ case /* optional resources.timestamp.Timestamp updated_at */ 3:
370
+ message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
371
+ break;
372
+ case /* string job */ 4:
373
+ message.job = reader.string();
374
+ break;
375
+ case /* optional resources.centrum.DispatchStatus status */ 5:
376
+ message.status = DispatchStatus.internalBinaryRead(reader, reader.uint32(), options, message.status);
377
+ break;
378
+ case /* string message */ 7:
379
+ message.message = reader.string();
380
+ break;
381
+ case /* optional string description */ 8:
382
+ message.description = reader.string();
383
+ break;
384
+ case /* optional resources.centrum.Attributes attributes */ 9:
385
+ message.attributes = Attributes.internalBinaryRead(reader, reader.uint32(), options, message.attributes);
386
+ break;
387
+ case /* double x */ 10:
388
+ message.x = reader.double();
389
+ break;
390
+ case /* double y */ 11:
391
+ message.y = reader.double();
392
+ break;
393
+ case /* optional string postal */ 12:
394
+ message.postal = reader.string();
395
+ break;
396
+ case /* bool anon */ 13:
397
+ message.anon = reader.bool();
398
+ break;
399
+ case /* optional int32 creator_id */ 14:
400
+ message.creatorId = reader.int32();
401
+ break;
402
+ case /* optional resources.users.User creator */ 15:
403
+ message.creator = User.internalBinaryRead(reader, reader.uint32(), options, message.creator);
404
+ break;
405
+ case /* repeated resources.centrum.DispatchAssignment units */ 16:
406
+ message.units.push(DispatchAssignment.internalBinaryRead(reader, reader.uint32(), options));
407
+ break;
408
+ case /* optional resources.centrum.DispatchReferences references */ 17:
409
+ message.references = DispatchReferences.internalBinaryRead(reader, reader.uint32(), options, message.references);
410
+ break;
411
+ default:
412
+ let u = options.readUnknownField;
413
+ if (u === "throw")
414
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
415
+ let d = reader.skip(wireType);
416
+ if (u !== false)
417
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
418
+ }
419
+ }
420
+ return message;
421
+ }
422
+ internalBinaryWrite(message: Dispatch, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
423
+ /* uint64 id = 1 [jstype = JS_STRING]; */
424
+ if (message.id !== "0")
425
+ writer.tag(1, WireType.Varint).uint64(message.id);
426
+ /* optional resources.timestamp.Timestamp created_at = 2; */
427
+ if (message.createdAt)
428
+ Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
429
+ /* optional resources.timestamp.Timestamp updated_at = 3; */
430
+ if (message.updatedAt)
431
+ Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
432
+ /* string job = 4; */
433
+ if (message.job !== "")
434
+ writer.tag(4, WireType.LengthDelimited).string(message.job);
435
+ /* optional resources.centrum.DispatchStatus status = 5; */
436
+ if (message.status)
437
+ DispatchStatus.internalBinaryWrite(message.status, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
438
+ /* string message = 7; */
439
+ if (message.message !== "")
440
+ writer.tag(7, WireType.LengthDelimited).string(message.message);
441
+ /* optional string description = 8; */
442
+ if (message.description !== undefined)
443
+ writer.tag(8, WireType.LengthDelimited).string(message.description);
444
+ /* optional resources.centrum.Attributes attributes = 9; */
445
+ if (message.attributes)
446
+ Attributes.internalBinaryWrite(message.attributes, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
447
+ /* double x = 10; */
448
+ if (message.x !== 0)
449
+ writer.tag(10, WireType.Bit64).double(message.x);
450
+ /* double y = 11; */
451
+ if (message.y !== 0)
452
+ writer.tag(11, WireType.Bit64).double(message.y);
453
+ /* optional string postal = 12; */
454
+ if (message.postal !== undefined)
455
+ writer.tag(12, WireType.LengthDelimited).string(message.postal);
456
+ /* bool anon = 13; */
457
+ if (message.anon !== false)
458
+ writer.tag(13, WireType.Varint).bool(message.anon);
459
+ /* optional int32 creator_id = 14; */
460
+ if (message.creatorId !== undefined)
461
+ writer.tag(14, WireType.Varint).int32(message.creatorId);
462
+ /* optional resources.users.User creator = 15; */
463
+ if (message.creator)
464
+ User.internalBinaryWrite(message.creator, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
465
+ /* repeated resources.centrum.DispatchAssignment units = 16; */
466
+ for (let i = 0; i < message.units.length; i++)
467
+ DispatchAssignment.internalBinaryWrite(message.units[i], writer.tag(16, WireType.LengthDelimited).fork(), options).join();
468
+ /* optional resources.centrum.DispatchReferences references = 17; */
469
+ if (message.references)
470
+ DispatchReferences.internalBinaryWrite(message.references, writer.tag(17, WireType.LengthDelimited).fork(), options).join();
471
+ let u = options.writeUnknownFields;
472
+ if (u !== false)
473
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
474
+ return writer;
475
+ }
476
+ }
477
+ /**
478
+ * @generated MessageType for protobuf message resources.centrum.Dispatch
479
+ */
480
+ export const Dispatch = new Dispatch$Type();
481
+ // @generated message type with reflection information, may provide speed optimized methods
482
+ class DispatchAssignments$Type extends MessageType<DispatchAssignments> {
483
+ constructor() {
484
+ super("resources.centrum.DispatchAssignments", [
485
+ { no: 1, name: "dispatch_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
486
+ { no: 2, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
487
+ { no: 3, name: "units", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => DispatchAssignment }
488
+ ]);
489
+ }
490
+ create(value?: PartialMessage<DispatchAssignments>): DispatchAssignments {
491
+ const message = globalThis.Object.create((this.messagePrototype!));
492
+ message.dispatchId = "0";
493
+ message.job = "";
494
+ message.units = [];
495
+ if (value !== undefined)
496
+ reflectionMergePartial<DispatchAssignments>(this, message, value);
497
+ return message;
498
+ }
499
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DispatchAssignments): DispatchAssignments {
500
+ let message = target ?? this.create(), end = reader.pos + length;
501
+ while (reader.pos < end) {
502
+ let [fieldNo, wireType] = reader.tag();
503
+ switch (fieldNo) {
504
+ case /* uint64 dispatch_id = 1 [jstype = JS_STRING];*/ 1:
505
+ message.dispatchId = reader.uint64().toString();
506
+ break;
507
+ case /* string job */ 2:
508
+ message.job = reader.string();
509
+ break;
510
+ case /* repeated resources.centrum.DispatchAssignment units */ 3:
511
+ message.units.push(DispatchAssignment.internalBinaryRead(reader, reader.uint32(), options));
512
+ break;
513
+ default:
514
+ let u = options.readUnknownField;
515
+ if (u === "throw")
516
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
517
+ let d = reader.skip(wireType);
518
+ if (u !== false)
519
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
520
+ }
521
+ }
522
+ return message;
523
+ }
524
+ internalBinaryWrite(message: DispatchAssignments, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
525
+ /* uint64 dispatch_id = 1 [jstype = JS_STRING]; */
526
+ if (message.dispatchId !== "0")
527
+ writer.tag(1, WireType.Varint).uint64(message.dispatchId);
528
+ /* string job = 2; */
529
+ if (message.job !== "")
530
+ writer.tag(2, WireType.LengthDelimited).string(message.job);
531
+ /* repeated resources.centrum.DispatchAssignment units = 3; */
532
+ for (let i = 0; i < message.units.length; i++)
533
+ DispatchAssignment.internalBinaryWrite(message.units[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
534
+ let u = options.writeUnknownFields;
535
+ if (u !== false)
536
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
537
+ return writer;
538
+ }
539
+ }
540
+ /**
541
+ * @generated MessageType for protobuf message resources.centrum.DispatchAssignments
542
+ */
543
+ export const DispatchAssignments = new DispatchAssignments$Type();
544
+ // @generated message type with reflection information, may provide speed optimized methods
545
+ class DispatchAssignment$Type extends MessageType<DispatchAssignment> {
546
+ constructor() {
547
+ super("resources.centrum.DispatchAssignment", [
548
+ { no: 1, name: "dispatch_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
549
+ { no: 2, name: "unit_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
550
+ { no: 3, name: "unit", kind: "message", T: () => Unit },
551
+ { no: 4, name: "created_at", kind: "message", T: () => Timestamp },
552
+ { no: 5, name: "expires_at", kind: "message", T: () => Timestamp }
553
+ ]);
554
+ }
555
+ create(value?: PartialMessage<DispatchAssignment>): DispatchAssignment {
556
+ const message = globalThis.Object.create((this.messagePrototype!));
557
+ message.dispatchId = "0";
558
+ message.unitId = "0";
559
+ if (value !== undefined)
560
+ reflectionMergePartial<DispatchAssignment>(this, message, value);
561
+ return message;
562
+ }
563
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DispatchAssignment): DispatchAssignment {
564
+ let message = target ?? this.create(), end = reader.pos + length;
565
+ while (reader.pos < end) {
566
+ let [fieldNo, wireType] = reader.tag();
567
+ switch (fieldNo) {
568
+ case /* uint64 dispatch_id = 1 [jstype = JS_STRING];*/ 1:
569
+ message.dispatchId = reader.uint64().toString();
570
+ break;
571
+ case /* uint64 unit_id = 2 [jstype = JS_STRING];*/ 2:
572
+ message.unitId = reader.uint64().toString();
573
+ break;
574
+ case /* optional resources.centrum.Unit unit */ 3:
575
+ message.unit = Unit.internalBinaryRead(reader, reader.uint32(), options, message.unit);
576
+ break;
577
+ case /* optional resources.timestamp.Timestamp created_at */ 4:
578
+ message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
579
+ break;
580
+ case /* optional resources.timestamp.Timestamp expires_at */ 5:
581
+ message.expiresAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);
582
+ break;
583
+ default:
584
+ let u = options.readUnknownField;
585
+ if (u === "throw")
586
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
587
+ let d = reader.skip(wireType);
588
+ if (u !== false)
589
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
590
+ }
591
+ }
592
+ return message;
593
+ }
594
+ internalBinaryWrite(message: DispatchAssignment, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
595
+ /* uint64 dispatch_id = 1 [jstype = JS_STRING]; */
596
+ if (message.dispatchId !== "0")
597
+ writer.tag(1, WireType.Varint).uint64(message.dispatchId);
598
+ /* uint64 unit_id = 2 [jstype = JS_STRING]; */
599
+ if (message.unitId !== "0")
600
+ writer.tag(2, WireType.Varint).uint64(message.unitId);
601
+ /* optional resources.centrum.Unit unit = 3; */
602
+ if (message.unit)
603
+ Unit.internalBinaryWrite(message.unit, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
604
+ /* optional resources.timestamp.Timestamp created_at = 4; */
605
+ if (message.createdAt)
606
+ Timestamp.internalBinaryWrite(message.createdAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
607
+ /* optional resources.timestamp.Timestamp expires_at = 5; */
608
+ if (message.expiresAt)
609
+ Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
610
+ let u = options.writeUnknownFields;
611
+ if (u !== false)
612
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
613
+ return writer;
614
+ }
615
+ }
616
+ /**
617
+ * @generated MessageType for protobuf message resources.centrum.DispatchAssignment
618
+ */
619
+ export const DispatchAssignment = new DispatchAssignment$Type();
620
+ // @generated message type with reflection information, may provide speed optimized methods
621
+ class DispatchStatus$Type extends MessageType<DispatchStatus> {
622
+ constructor() {
623
+ super("resources.centrum.DispatchStatus", [
624
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
625
+ { no: 2, name: "created_at", kind: "message", T: () => Timestamp },
626
+ { no: 3, name: "dispatch_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
627
+ { no: 4, name: "unit_id", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/ },
628
+ { no: 5, name: "unit", kind: "message", T: () => Unit },
629
+ { no: 6, name: "status", kind: "enum", T: () => ["resources.centrum.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "validate.rules": { enum: { definedOnly: true } } } },
630
+ { no: 7, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
631
+ { no: 8, name: "code", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
632
+ { no: 9, name: "user_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
633
+ { no: 10, name: "user", kind: "message", T: () => Colleague },
634
+ { no: 11, name: "x", kind: "scalar", opt: true, T: 1 /*ScalarType.DOUBLE*/ },
635
+ { no: 12, name: "y", kind: "scalar", opt: true, T: 1 /*ScalarType.DOUBLE*/ },
636
+ { no: 13, name: "postal", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "48" } } } }
637
+ ]);
638
+ }
639
+ create(value?: PartialMessage<DispatchStatus>): DispatchStatus {
640
+ const message = globalThis.Object.create((this.messagePrototype!));
641
+ message.id = "0";
642
+ message.dispatchId = "0";
643
+ message.status = 0;
644
+ if (value !== undefined)
645
+ reflectionMergePartial<DispatchStatus>(this, message, value);
646
+ return message;
647
+ }
648
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DispatchStatus): DispatchStatus {
649
+ let message = target ?? this.create(), end = reader.pos + length;
650
+ while (reader.pos < end) {
651
+ let [fieldNo, wireType] = reader.tag();
652
+ switch (fieldNo) {
653
+ case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
654
+ message.id = reader.uint64().toString();
655
+ break;
656
+ case /* optional resources.timestamp.Timestamp created_at */ 2:
657
+ message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
658
+ break;
659
+ case /* uint64 dispatch_id = 3 [jstype = JS_STRING];*/ 3:
660
+ message.dispatchId = reader.uint64().toString();
661
+ break;
662
+ case /* optional uint64 unit_id = 4 [jstype = JS_STRING];*/ 4:
663
+ message.unitId = reader.uint64().toString();
664
+ break;
665
+ case /* optional resources.centrum.Unit unit */ 5:
666
+ message.unit = Unit.internalBinaryRead(reader, reader.uint32(), options, message.unit);
667
+ break;
668
+ case /* resources.centrum.StatusDispatch status */ 6:
669
+ message.status = reader.int32();
670
+ break;
671
+ case /* optional string reason */ 7:
672
+ message.reason = reader.string();
673
+ break;
674
+ case /* optional string code */ 8:
675
+ message.code = reader.string();
676
+ break;
677
+ case /* optional int32 user_id */ 9:
678
+ message.userId = reader.int32();
679
+ break;
680
+ case /* optional resources.jobs.Colleague user */ 10:
681
+ message.user = Colleague.internalBinaryRead(reader, reader.uint32(), options, message.user);
682
+ break;
683
+ case /* optional double x */ 11:
684
+ message.x = reader.double();
685
+ break;
686
+ case /* optional double y */ 12:
687
+ message.y = reader.double();
688
+ break;
689
+ case /* optional string postal */ 13:
690
+ message.postal = reader.string();
691
+ break;
692
+ default:
693
+ let u = options.readUnknownField;
694
+ if (u === "throw")
695
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
696
+ let d = reader.skip(wireType);
697
+ if (u !== false)
698
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
699
+ }
700
+ }
701
+ return message;
702
+ }
703
+ internalBinaryWrite(message: DispatchStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
704
+ /* uint64 id = 1 [jstype = JS_STRING]; */
705
+ if (message.id !== "0")
706
+ writer.tag(1, WireType.Varint).uint64(message.id);
707
+ /* optional resources.timestamp.Timestamp created_at = 2; */
708
+ if (message.createdAt)
709
+ Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
710
+ /* uint64 dispatch_id = 3 [jstype = JS_STRING]; */
711
+ if (message.dispatchId !== "0")
712
+ writer.tag(3, WireType.Varint).uint64(message.dispatchId);
713
+ /* optional uint64 unit_id = 4 [jstype = JS_STRING]; */
714
+ if (message.unitId !== undefined)
715
+ writer.tag(4, WireType.Varint).uint64(message.unitId);
716
+ /* optional resources.centrum.Unit unit = 5; */
717
+ if (message.unit)
718
+ Unit.internalBinaryWrite(message.unit, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
719
+ /* resources.centrum.StatusDispatch status = 6; */
720
+ if (message.status !== 0)
721
+ writer.tag(6, WireType.Varint).int32(message.status);
722
+ /* optional string reason = 7; */
723
+ if (message.reason !== undefined)
724
+ writer.tag(7, WireType.LengthDelimited).string(message.reason);
725
+ /* optional string code = 8; */
726
+ if (message.code !== undefined)
727
+ writer.tag(8, WireType.LengthDelimited).string(message.code);
728
+ /* optional int32 user_id = 9; */
729
+ if (message.userId !== undefined)
730
+ writer.tag(9, WireType.Varint).int32(message.userId);
731
+ /* optional resources.jobs.Colleague user = 10; */
732
+ if (message.user)
733
+ Colleague.internalBinaryWrite(message.user, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
734
+ /* optional double x = 11; */
735
+ if (message.x !== undefined)
736
+ writer.tag(11, WireType.Bit64).double(message.x);
737
+ /* optional double y = 12; */
738
+ if (message.y !== undefined)
739
+ writer.tag(12, WireType.Bit64).double(message.y);
740
+ /* optional string postal = 13; */
741
+ if (message.postal !== undefined)
742
+ writer.tag(13, WireType.LengthDelimited).string(message.postal);
743
+ let u = options.writeUnknownFields;
744
+ if (u !== false)
745
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
746
+ return writer;
747
+ }
748
+ }
749
+ /**
750
+ * @generated MessageType for protobuf message resources.centrum.DispatchStatus
751
+ */
752
+ export const DispatchStatus = new DispatchStatus$Type();
753
+ // @generated message type with reflection information, may provide speed optimized methods
754
+ class DispatchReferences$Type extends MessageType<DispatchReferences> {
755
+ constructor() {
756
+ super("resources.centrum.DispatchReferences", [
757
+ { no: 1, name: "references", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => DispatchReference }
758
+ ]);
759
+ }
760
+ create(value?: PartialMessage<DispatchReferences>): DispatchReferences {
761
+ const message = globalThis.Object.create((this.messagePrototype!));
762
+ message.references = [];
763
+ if (value !== undefined)
764
+ reflectionMergePartial<DispatchReferences>(this, message, value);
765
+ return message;
766
+ }
767
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DispatchReferences): DispatchReferences {
768
+ let message = target ?? this.create(), end = reader.pos + length;
769
+ while (reader.pos < end) {
770
+ let [fieldNo, wireType] = reader.tag();
771
+ switch (fieldNo) {
772
+ case /* repeated resources.centrum.DispatchReference references */ 1:
773
+ message.references.push(DispatchReference.internalBinaryRead(reader, reader.uint32(), options));
774
+ break;
775
+ default:
776
+ let u = options.readUnknownField;
777
+ if (u === "throw")
778
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
779
+ let d = reader.skip(wireType);
780
+ if (u !== false)
781
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
782
+ }
783
+ }
784
+ return message;
785
+ }
786
+ internalBinaryWrite(message: DispatchReferences, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
787
+ /* repeated resources.centrum.DispatchReference references = 1; */
788
+ for (let i = 0; i < message.references.length; i++)
789
+ DispatchReference.internalBinaryWrite(message.references[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
790
+ let u = options.writeUnknownFields;
791
+ if (u !== false)
792
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
793
+ return writer;
794
+ }
795
+ }
796
+ /**
797
+ * @generated MessageType for protobuf message resources.centrum.DispatchReferences
798
+ */
799
+ export const DispatchReferences = new DispatchReferences$Type();
800
+ // @generated message type with reflection information, may provide speed optimized methods
801
+ class DispatchReference$Type extends MessageType<DispatchReference> {
802
+ constructor() {
803
+ super("resources.centrum.DispatchReference", [
804
+ { no: 1, name: "target_dispatch_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
805
+ { no: 2, name: "reference_type", kind: "enum", T: () => ["resources.centrum.DispatchReferenceType", DispatchReferenceType, "DISPATCH_REFERENCE_TYPE_"], options: { "validate.rules": { enum: { definedOnly: true } } } }
806
+ ]);
807
+ }
808
+ create(value?: PartialMessage<DispatchReference>): DispatchReference {
809
+ const message = globalThis.Object.create((this.messagePrototype!));
810
+ message.targetDispatchId = "0";
811
+ message.referenceType = 0;
812
+ if (value !== undefined)
813
+ reflectionMergePartial<DispatchReference>(this, message, value);
814
+ return message;
815
+ }
816
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DispatchReference): DispatchReference {
817
+ let message = target ?? this.create(), end = reader.pos + length;
818
+ while (reader.pos < end) {
819
+ let [fieldNo, wireType] = reader.tag();
820
+ switch (fieldNo) {
821
+ case /* uint64 target_dispatch_id = 1 [jstype = JS_STRING];*/ 1:
822
+ message.targetDispatchId = reader.uint64().toString();
823
+ break;
824
+ case /* resources.centrum.DispatchReferenceType reference_type */ 2:
825
+ message.referenceType = reader.int32();
826
+ break;
827
+ default:
828
+ let u = options.readUnknownField;
829
+ if (u === "throw")
830
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
831
+ let d = reader.skip(wireType);
832
+ if (u !== false)
833
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
834
+ }
835
+ }
836
+ return message;
837
+ }
838
+ internalBinaryWrite(message: DispatchReference, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
839
+ /* uint64 target_dispatch_id = 1 [jstype = JS_STRING]; */
840
+ if (message.targetDispatchId !== "0")
841
+ writer.tag(1, WireType.Varint).uint64(message.targetDispatchId);
842
+ /* resources.centrum.DispatchReferenceType reference_type = 2; */
843
+ if (message.referenceType !== 0)
844
+ writer.tag(2, WireType.Varint).int32(message.referenceType);
845
+ let u = options.writeUnknownFields;
846
+ if (u !== false)
847
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
848
+ return writer;
849
+ }
850
+ }
851
+ /**
852
+ * @generated MessageType for protobuf message resources.centrum.DispatchReference
853
+ */
854
+ export const DispatchReference = new DispatchReference$Type();