@fivenet-app/gen 2026.4.0 → 2026.5.0
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.
- package/clients.ts +60 -0
- package/codegen/perms/perms.ts +11 -0
- package/package.json +1 -1
- package/perms.ts +10 -0
- package/resources/citizens/labels/access.ts +216 -0
- package/resources/citizens/labels/labels.ts +8 -214
- package/services/calendar/calendar.client.ts +2 -106
- package/services/calendar/calendar.ts +0 -1018
- package/services/calendar/entries.client.ts +129 -0
- package/services/calendar/entries.ts +1040 -0
- package/services/centrum/centrum.client.ts +23 -244
- package/services/centrum/centrum.ts +246 -2383
- package/services/centrum/dispatches.client.ts +155 -0
- package/services/centrum/dispatches.ts +1305 -0
- package/services/centrum/units.client.ts +116 -0
- package/services/centrum/units.ts +876 -0
- package/services/documents/categories.client.ts +64 -0
- package/services/documents/categories.ts +331 -0
- package/services/documents/comments.client.ts +77 -0
- package/services/documents/comments.ts +479 -0
- package/services/documents/documents.client.ts +26 -182
- package/services/documents/documents.ts +335 -1682
- package/services/documents/templates.client.ts +90 -0
- package/services/documents/templates.ts +591 -0
- package/services/jobs/colleagues.client.ts +129 -0
- package/services/jobs/colleagues.ts +1129 -0
- package/services/jobs/jobs.client.ts +3 -107
- package/services/jobs/jobs.ts +1 -1113
- package/services/mailer/mailer.client.ts +0 -208
- package/services/mailer/mailer.ts +1 -2010
- package/services/mailer/settings.client.ts +103 -0
- package/services/mailer/settings.ts +708 -0
- package/services/mailer/thread.client.ts +155 -0
- package/services/mailer/thread.ts +1343 -0
- package/services/qualifications/exam.client.ts +77 -0
- package/services/qualifications/exam.ts +609 -0
- package/services/qualifications/qualifications.client.ts +1 -53
- package/services/qualifications/qualifications.ts +0 -591
- package/services/sync/sync.client.ts +4 -4
- package/services/sync/sync.ts +23 -0
- package/svcs.ts +153 -67
|
@@ -0,0 +1,1305 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
|
|
2
|
+
// @generated from protobuf file "services/centrum/dispatches.proto" (package "services.centrum", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
6
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
7
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
8
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
9
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
10
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
11
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
12
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
13
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
14
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
15
|
+
import { TakeDispatchResp } from "../../resources/centrum/dispatches/dispatches";
|
|
16
|
+
import { Job } from "../../resources/jobs/jobs";
|
|
17
|
+
import { DispatchStatus } from "../../resources/centrum/dispatches/dispatches";
|
|
18
|
+
import { Dispatch } from "../../resources/centrum/dispatches/dispatches";
|
|
19
|
+
import { PaginationResponse } from "../../resources/common/database/database";
|
|
20
|
+
import { StatusDispatch } from "../../resources/centrum/dispatches/dispatches";
|
|
21
|
+
import { PaginationRequest } from "../../resources/common/database/database";
|
|
22
|
+
/**
|
|
23
|
+
* @generated from protobuf message services.centrum.ListDispatchesRequest
|
|
24
|
+
*/
|
|
25
|
+
export interface ListDispatchesRequest {
|
|
26
|
+
/**
|
|
27
|
+
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
28
|
+
*/
|
|
29
|
+
pagination?: PaginationRequest;
|
|
30
|
+
/**
|
|
31
|
+
* @generated from protobuf field: repeated resources.centrum.dispatches.StatusDispatch status = 2
|
|
32
|
+
*/
|
|
33
|
+
status: StatusDispatch[];
|
|
34
|
+
/**
|
|
35
|
+
* @generated from protobuf field: repeated resources.centrum.dispatches.StatusDispatch not_status = 3
|
|
36
|
+
*/
|
|
37
|
+
notStatus: StatusDispatch[];
|
|
38
|
+
/**
|
|
39
|
+
* @generated from protobuf field: repeated int64 ids = 4
|
|
40
|
+
*/
|
|
41
|
+
ids: number[];
|
|
42
|
+
/**
|
|
43
|
+
* @generated from protobuf field: optional string postal = 5
|
|
44
|
+
*/
|
|
45
|
+
postal?: string;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* @generated from protobuf message services.centrum.ListDispatchesResponse
|
|
49
|
+
*/
|
|
50
|
+
export interface ListDispatchesResponse {
|
|
51
|
+
/**
|
|
52
|
+
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
53
|
+
*/
|
|
54
|
+
pagination?: PaginationResponse;
|
|
55
|
+
/**
|
|
56
|
+
* @generated from protobuf field: repeated resources.centrum.dispatches.Dispatch dispatches = 2
|
|
57
|
+
*/
|
|
58
|
+
dispatches: Dispatch[];
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* @generated from protobuf message services.centrum.GetDispatchRequest
|
|
62
|
+
*/
|
|
63
|
+
export interface GetDispatchRequest {
|
|
64
|
+
/**
|
|
65
|
+
* @generated from protobuf field: int64 id = 1
|
|
66
|
+
*/
|
|
67
|
+
id: number;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* @generated from protobuf message services.centrum.GetDispatchResponse
|
|
71
|
+
*/
|
|
72
|
+
export interface GetDispatchResponse {
|
|
73
|
+
/**
|
|
74
|
+
* @generated from protobuf field: resources.centrum.dispatches.Dispatch dispatch = 1
|
|
75
|
+
*/
|
|
76
|
+
dispatch?: Dispatch;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* @generated from protobuf message services.centrum.ListDispatchActivityRequest
|
|
80
|
+
*/
|
|
81
|
+
export interface ListDispatchActivityRequest {
|
|
82
|
+
/**
|
|
83
|
+
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
84
|
+
*/
|
|
85
|
+
pagination?: PaginationRequest;
|
|
86
|
+
/**
|
|
87
|
+
* @generated from protobuf field: int64 id = 2
|
|
88
|
+
*/
|
|
89
|
+
id: number;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* @generated from protobuf message services.centrum.ListDispatchActivityResponse
|
|
93
|
+
*/
|
|
94
|
+
export interface ListDispatchActivityResponse {
|
|
95
|
+
/**
|
|
96
|
+
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
97
|
+
*/
|
|
98
|
+
pagination?: PaginationResponse;
|
|
99
|
+
/**
|
|
100
|
+
* @generated from protobuf field: repeated resources.centrum.dispatches.DispatchStatus activity = 2
|
|
101
|
+
*/
|
|
102
|
+
activity: DispatchStatus[];
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* @generated from protobuf message services.centrum.CreateDispatchRequest
|
|
106
|
+
*/
|
|
107
|
+
export interface CreateDispatchRequest {
|
|
108
|
+
/**
|
|
109
|
+
* @generated from protobuf field: resources.centrum.dispatches.Dispatch dispatch = 1
|
|
110
|
+
*/
|
|
111
|
+
dispatch?: Dispatch;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* @generated from protobuf message services.centrum.CreateDispatchResponse
|
|
115
|
+
*/
|
|
116
|
+
export interface CreateDispatchResponse {
|
|
117
|
+
/**
|
|
118
|
+
* @generated from protobuf field: resources.centrum.dispatches.Dispatch dispatch = 1
|
|
119
|
+
*/
|
|
120
|
+
dispatch?: Dispatch;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* @generated from protobuf message services.centrum.UpdateDispatchRequest
|
|
124
|
+
*/
|
|
125
|
+
export interface UpdateDispatchRequest {
|
|
126
|
+
/**
|
|
127
|
+
* @generated from protobuf field: resources.centrum.dispatches.Dispatch dispatch = 1
|
|
128
|
+
*/
|
|
129
|
+
dispatch?: Dispatch;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* @generated from protobuf message services.centrum.UpdateDispatchResponse
|
|
133
|
+
*/
|
|
134
|
+
export interface UpdateDispatchResponse {
|
|
135
|
+
/**
|
|
136
|
+
* @generated from protobuf field: resources.centrum.dispatches.Dispatch dispatch = 1
|
|
137
|
+
*/
|
|
138
|
+
dispatch?: Dispatch;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* @generated from protobuf message services.centrum.DeleteDispatchRequest
|
|
142
|
+
*/
|
|
143
|
+
export interface DeleteDispatchRequest {
|
|
144
|
+
/**
|
|
145
|
+
* @generated from protobuf field: int64 id = 1
|
|
146
|
+
*/
|
|
147
|
+
id: number;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* @generated from protobuf message services.centrum.DeleteDispatchResponse
|
|
151
|
+
*/
|
|
152
|
+
export interface DeleteDispatchResponse {
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* @generated from protobuf message services.centrum.ListDispatchTargetJobsRequest
|
|
156
|
+
*/
|
|
157
|
+
export interface ListDispatchTargetJobsRequest {
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* @generated from protobuf message services.centrum.ListDispatchTargetJobsResponse
|
|
161
|
+
*/
|
|
162
|
+
export interface ListDispatchTargetJobsResponse {
|
|
163
|
+
/**
|
|
164
|
+
* @generated from protobuf field: repeated resources.jobs.Job jobs = 1
|
|
165
|
+
*/
|
|
166
|
+
jobs: Job[];
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* @generated from protobuf message services.centrum.UpdateDispatchStatusRequest
|
|
170
|
+
*/
|
|
171
|
+
export interface UpdateDispatchStatusRequest {
|
|
172
|
+
/**
|
|
173
|
+
* @generated from protobuf field: int64 dispatch_id = 1
|
|
174
|
+
*/
|
|
175
|
+
dispatchId: number;
|
|
176
|
+
/**
|
|
177
|
+
* @generated from protobuf field: resources.centrum.dispatches.StatusDispatch status = 2
|
|
178
|
+
*/
|
|
179
|
+
status: StatusDispatch;
|
|
180
|
+
/**
|
|
181
|
+
* @generated from protobuf field: optional string reason = 3
|
|
182
|
+
*/
|
|
183
|
+
reason?: string;
|
|
184
|
+
/**
|
|
185
|
+
* @generated from protobuf field: optional string code = 4
|
|
186
|
+
*/
|
|
187
|
+
code?: string;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* @generated from protobuf message services.centrum.UpdateDispatchStatusResponse
|
|
191
|
+
*/
|
|
192
|
+
export interface UpdateDispatchStatusResponse {
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* @generated from protobuf message services.centrum.AssignDispatchRequest
|
|
196
|
+
*/
|
|
197
|
+
export interface AssignDispatchRequest {
|
|
198
|
+
/**
|
|
199
|
+
* @generated from protobuf field: int64 dispatch_id = 1
|
|
200
|
+
*/
|
|
201
|
+
dispatchId: number;
|
|
202
|
+
/**
|
|
203
|
+
* @generated from protobuf field: repeated int64 to_add = 2
|
|
204
|
+
*/
|
|
205
|
+
toAdd: number[];
|
|
206
|
+
/**
|
|
207
|
+
* @generated from protobuf field: repeated int64 to_remove = 3
|
|
208
|
+
*/
|
|
209
|
+
toRemove: number[];
|
|
210
|
+
/**
|
|
211
|
+
* @generated from protobuf field: optional bool forced = 4
|
|
212
|
+
*/
|
|
213
|
+
forced?: boolean;
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* @generated from protobuf message services.centrum.AssignDispatchResponse
|
|
217
|
+
*/
|
|
218
|
+
export interface AssignDispatchResponse {
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* @generated from protobuf message services.centrum.TakeDispatchRequest
|
|
222
|
+
*/
|
|
223
|
+
export interface TakeDispatchRequest {
|
|
224
|
+
/**
|
|
225
|
+
* @generated from protobuf field: repeated int64 dispatch_ids = 1
|
|
226
|
+
*/
|
|
227
|
+
dispatchIds: number[];
|
|
228
|
+
/**
|
|
229
|
+
* @generated from protobuf field: resources.centrum.dispatches.TakeDispatchResp resp = 2
|
|
230
|
+
*/
|
|
231
|
+
resp: TakeDispatchResp;
|
|
232
|
+
/**
|
|
233
|
+
* @generated from protobuf field: optional string reason = 3
|
|
234
|
+
*/
|
|
235
|
+
reason?: string;
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* @generated from protobuf message services.centrum.TakeDispatchResponse
|
|
239
|
+
*/
|
|
240
|
+
export interface TakeDispatchResponse {
|
|
241
|
+
}
|
|
242
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
243
|
+
class ListDispatchesRequest$Type extends MessageType<ListDispatchesRequest> {
|
|
244
|
+
constructor() {
|
|
245
|
+
super("services.centrum.ListDispatchesRequest", [
|
|
246
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
|
|
247
|
+
{ no: 2, name: "status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.centrum.dispatches.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "buf.validate.field": { repeated: { items: { enum: { definedOnly: true } } } } } },
|
|
248
|
+
{ no: 3, name: "not_status", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.centrum.dispatches.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "buf.validate.field": { repeated: { items: { enum: { definedOnly: true } } } } } },
|
|
249
|
+
{ no: 4, name: "ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { repeated: { maxItems: "10" } } } },
|
|
250
|
+
{ no: 5, name: "postal", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "12" } } } }
|
|
251
|
+
]);
|
|
252
|
+
}
|
|
253
|
+
create(value?: PartialMessage<ListDispatchesRequest>): ListDispatchesRequest {
|
|
254
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
255
|
+
message.status = [];
|
|
256
|
+
message.notStatus = [];
|
|
257
|
+
message.ids = [];
|
|
258
|
+
if (value !== undefined)
|
|
259
|
+
reflectionMergePartial<ListDispatchesRequest>(this, message, value);
|
|
260
|
+
return message;
|
|
261
|
+
}
|
|
262
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListDispatchesRequest): ListDispatchesRequest {
|
|
263
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
264
|
+
while (reader.pos < end) {
|
|
265
|
+
let [fieldNo, wireType] = reader.tag();
|
|
266
|
+
switch (fieldNo) {
|
|
267
|
+
case /* resources.common.database.PaginationRequest pagination */ 1:
|
|
268
|
+
message.pagination = PaginationRequest.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
269
|
+
break;
|
|
270
|
+
case /* repeated resources.centrum.dispatches.StatusDispatch status */ 2:
|
|
271
|
+
if (wireType === WireType.LengthDelimited)
|
|
272
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
273
|
+
message.status.push(reader.int32());
|
|
274
|
+
else
|
|
275
|
+
message.status.push(reader.int32());
|
|
276
|
+
break;
|
|
277
|
+
case /* repeated resources.centrum.dispatches.StatusDispatch not_status */ 3:
|
|
278
|
+
if (wireType === WireType.LengthDelimited)
|
|
279
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
280
|
+
message.notStatus.push(reader.int32());
|
|
281
|
+
else
|
|
282
|
+
message.notStatus.push(reader.int32());
|
|
283
|
+
break;
|
|
284
|
+
case /* repeated int64 ids */ 4:
|
|
285
|
+
if (wireType === WireType.LengthDelimited)
|
|
286
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
287
|
+
message.ids.push(reader.int64().toNumber());
|
|
288
|
+
else
|
|
289
|
+
message.ids.push(reader.int64().toNumber());
|
|
290
|
+
break;
|
|
291
|
+
case /* optional string postal */ 5:
|
|
292
|
+
message.postal = reader.string();
|
|
293
|
+
break;
|
|
294
|
+
default:
|
|
295
|
+
let u = options.readUnknownField;
|
|
296
|
+
if (u === "throw")
|
|
297
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
298
|
+
let d = reader.skip(wireType);
|
|
299
|
+
if (u !== false)
|
|
300
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
return message;
|
|
304
|
+
}
|
|
305
|
+
internalBinaryWrite(message: ListDispatchesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
306
|
+
/* resources.common.database.PaginationRequest pagination = 1; */
|
|
307
|
+
if (message.pagination)
|
|
308
|
+
PaginationRequest.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
309
|
+
/* repeated resources.centrum.dispatches.StatusDispatch status = 2; */
|
|
310
|
+
if (message.status.length) {
|
|
311
|
+
writer.tag(2, WireType.LengthDelimited).fork();
|
|
312
|
+
for (let i = 0; i < message.status.length; i++)
|
|
313
|
+
writer.int32(message.status[i]);
|
|
314
|
+
writer.join();
|
|
315
|
+
}
|
|
316
|
+
/* repeated resources.centrum.dispatches.StatusDispatch not_status = 3; */
|
|
317
|
+
if (message.notStatus.length) {
|
|
318
|
+
writer.tag(3, WireType.LengthDelimited).fork();
|
|
319
|
+
for (let i = 0; i < message.notStatus.length; i++)
|
|
320
|
+
writer.int32(message.notStatus[i]);
|
|
321
|
+
writer.join();
|
|
322
|
+
}
|
|
323
|
+
/* repeated int64 ids = 4; */
|
|
324
|
+
if (message.ids.length) {
|
|
325
|
+
writer.tag(4, WireType.LengthDelimited).fork();
|
|
326
|
+
for (let i = 0; i < message.ids.length; i++)
|
|
327
|
+
writer.int64(message.ids[i]);
|
|
328
|
+
writer.join();
|
|
329
|
+
}
|
|
330
|
+
/* optional string postal = 5; */
|
|
331
|
+
if (message.postal !== undefined)
|
|
332
|
+
writer.tag(5, WireType.LengthDelimited).string(message.postal);
|
|
333
|
+
let u = options.writeUnknownFields;
|
|
334
|
+
if (u !== false)
|
|
335
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
336
|
+
return writer;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* @generated MessageType for protobuf message services.centrum.ListDispatchesRequest
|
|
341
|
+
*/
|
|
342
|
+
export const ListDispatchesRequest = new ListDispatchesRequest$Type();
|
|
343
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
344
|
+
class ListDispatchesResponse$Type extends MessageType<ListDispatchesResponse> {
|
|
345
|
+
constructor() {
|
|
346
|
+
super("services.centrum.ListDispatchesResponse", [
|
|
347
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
|
|
348
|
+
{ no: 2, name: "dispatches", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Dispatch, options: { "codegen.itemslen.enabled": true } }
|
|
349
|
+
]);
|
|
350
|
+
}
|
|
351
|
+
create(value?: PartialMessage<ListDispatchesResponse>): ListDispatchesResponse {
|
|
352
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
353
|
+
message.dispatches = [];
|
|
354
|
+
if (value !== undefined)
|
|
355
|
+
reflectionMergePartial<ListDispatchesResponse>(this, message, value);
|
|
356
|
+
return message;
|
|
357
|
+
}
|
|
358
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListDispatchesResponse): ListDispatchesResponse {
|
|
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 /* resources.common.database.PaginationResponse pagination */ 1:
|
|
364
|
+
message.pagination = PaginationResponse.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
365
|
+
break;
|
|
366
|
+
case /* repeated resources.centrum.dispatches.Dispatch dispatches */ 2:
|
|
367
|
+
message.dispatches.push(Dispatch.internalBinaryRead(reader, reader.uint32(), options));
|
|
368
|
+
break;
|
|
369
|
+
default:
|
|
370
|
+
let u = options.readUnknownField;
|
|
371
|
+
if (u === "throw")
|
|
372
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
373
|
+
let d = reader.skip(wireType);
|
|
374
|
+
if (u !== false)
|
|
375
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
return message;
|
|
379
|
+
}
|
|
380
|
+
internalBinaryWrite(message: ListDispatchesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
381
|
+
/* resources.common.database.PaginationResponse pagination = 1; */
|
|
382
|
+
if (message.pagination)
|
|
383
|
+
PaginationResponse.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
384
|
+
/* repeated resources.centrum.dispatches.Dispatch dispatches = 2; */
|
|
385
|
+
for (let i = 0; i < message.dispatches.length; i++)
|
|
386
|
+
Dispatch.internalBinaryWrite(message.dispatches[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
387
|
+
let u = options.writeUnknownFields;
|
|
388
|
+
if (u !== false)
|
|
389
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
390
|
+
return writer;
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* @generated MessageType for protobuf message services.centrum.ListDispatchesResponse
|
|
395
|
+
*/
|
|
396
|
+
export const ListDispatchesResponse = new ListDispatchesResponse$Type();
|
|
397
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
398
|
+
class GetDispatchRequest$Type extends MessageType<GetDispatchRequest> {
|
|
399
|
+
constructor() {
|
|
400
|
+
super("services.centrum.GetDispatchRequest", [
|
|
401
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { int64: { gt: "0" } } } }
|
|
402
|
+
]);
|
|
403
|
+
}
|
|
404
|
+
create(value?: PartialMessage<GetDispatchRequest>): GetDispatchRequest {
|
|
405
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
406
|
+
message.id = 0;
|
|
407
|
+
if (value !== undefined)
|
|
408
|
+
reflectionMergePartial<GetDispatchRequest>(this, message, value);
|
|
409
|
+
return message;
|
|
410
|
+
}
|
|
411
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetDispatchRequest): GetDispatchRequest {
|
|
412
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
413
|
+
while (reader.pos < end) {
|
|
414
|
+
let [fieldNo, wireType] = reader.tag();
|
|
415
|
+
switch (fieldNo) {
|
|
416
|
+
case /* int64 id */ 1:
|
|
417
|
+
message.id = reader.int64().toNumber();
|
|
418
|
+
break;
|
|
419
|
+
default:
|
|
420
|
+
let u = options.readUnknownField;
|
|
421
|
+
if (u === "throw")
|
|
422
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
423
|
+
let d = reader.skip(wireType);
|
|
424
|
+
if (u !== false)
|
|
425
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
return message;
|
|
429
|
+
}
|
|
430
|
+
internalBinaryWrite(message: GetDispatchRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
431
|
+
/* int64 id = 1; */
|
|
432
|
+
if (message.id !== 0)
|
|
433
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
434
|
+
let u = options.writeUnknownFields;
|
|
435
|
+
if (u !== false)
|
|
436
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
437
|
+
return writer;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
/**
|
|
441
|
+
* @generated MessageType for protobuf message services.centrum.GetDispatchRequest
|
|
442
|
+
*/
|
|
443
|
+
export const GetDispatchRequest = new GetDispatchRequest$Type();
|
|
444
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
445
|
+
class GetDispatchResponse$Type extends MessageType<GetDispatchResponse> {
|
|
446
|
+
constructor() {
|
|
447
|
+
super("services.centrum.GetDispatchResponse", [
|
|
448
|
+
{ no: 1, name: "dispatch", kind: "message", T: () => Dispatch }
|
|
449
|
+
]);
|
|
450
|
+
}
|
|
451
|
+
create(value?: PartialMessage<GetDispatchResponse>): GetDispatchResponse {
|
|
452
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
453
|
+
if (value !== undefined)
|
|
454
|
+
reflectionMergePartial<GetDispatchResponse>(this, message, value);
|
|
455
|
+
return message;
|
|
456
|
+
}
|
|
457
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetDispatchResponse): GetDispatchResponse {
|
|
458
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
459
|
+
while (reader.pos < end) {
|
|
460
|
+
let [fieldNo, wireType] = reader.tag();
|
|
461
|
+
switch (fieldNo) {
|
|
462
|
+
case /* resources.centrum.dispatches.Dispatch dispatch */ 1:
|
|
463
|
+
message.dispatch = Dispatch.internalBinaryRead(reader, reader.uint32(), options, message.dispatch);
|
|
464
|
+
break;
|
|
465
|
+
default:
|
|
466
|
+
let u = options.readUnknownField;
|
|
467
|
+
if (u === "throw")
|
|
468
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
469
|
+
let d = reader.skip(wireType);
|
|
470
|
+
if (u !== false)
|
|
471
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
return message;
|
|
475
|
+
}
|
|
476
|
+
internalBinaryWrite(message: GetDispatchResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
477
|
+
/* resources.centrum.dispatches.Dispatch dispatch = 1; */
|
|
478
|
+
if (message.dispatch)
|
|
479
|
+
Dispatch.internalBinaryWrite(message.dispatch, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
480
|
+
let u = options.writeUnknownFields;
|
|
481
|
+
if (u !== false)
|
|
482
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
483
|
+
return writer;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* @generated MessageType for protobuf message services.centrum.GetDispatchResponse
|
|
488
|
+
*/
|
|
489
|
+
export const GetDispatchResponse = new GetDispatchResponse$Type();
|
|
490
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
491
|
+
class ListDispatchActivityRequest$Type extends MessageType<ListDispatchActivityRequest> {
|
|
492
|
+
constructor() {
|
|
493
|
+
super("services.centrum.ListDispatchActivityRequest", [
|
|
494
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
|
|
495
|
+
{ no: 2, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
|
|
496
|
+
]);
|
|
497
|
+
}
|
|
498
|
+
create(value?: PartialMessage<ListDispatchActivityRequest>): ListDispatchActivityRequest {
|
|
499
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
500
|
+
message.id = 0;
|
|
501
|
+
if (value !== undefined)
|
|
502
|
+
reflectionMergePartial<ListDispatchActivityRequest>(this, message, value);
|
|
503
|
+
return message;
|
|
504
|
+
}
|
|
505
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListDispatchActivityRequest): ListDispatchActivityRequest {
|
|
506
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
507
|
+
while (reader.pos < end) {
|
|
508
|
+
let [fieldNo, wireType] = reader.tag();
|
|
509
|
+
switch (fieldNo) {
|
|
510
|
+
case /* resources.common.database.PaginationRequest pagination */ 1:
|
|
511
|
+
message.pagination = PaginationRequest.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
512
|
+
break;
|
|
513
|
+
case /* int64 id */ 2:
|
|
514
|
+
message.id = reader.int64().toNumber();
|
|
515
|
+
break;
|
|
516
|
+
default:
|
|
517
|
+
let u = options.readUnknownField;
|
|
518
|
+
if (u === "throw")
|
|
519
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
520
|
+
let d = reader.skip(wireType);
|
|
521
|
+
if (u !== false)
|
|
522
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
return message;
|
|
526
|
+
}
|
|
527
|
+
internalBinaryWrite(message: ListDispatchActivityRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
528
|
+
/* resources.common.database.PaginationRequest pagination = 1; */
|
|
529
|
+
if (message.pagination)
|
|
530
|
+
PaginationRequest.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
531
|
+
/* int64 id = 2; */
|
|
532
|
+
if (message.id !== 0)
|
|
533
|
+
writer.tag(2, WireType.Varint).int64(message.id);
|
|
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 services.centrum.ListDispatchActivityRequest
|
|
542
|
+
*/
|
|
543
|
+
export const ListDispatchActivityRequest = new ListDispatchActivityRequest$Type();
|
|
544
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
545
|
+
class ListDispatchActivityResponse$Type extends MessageType<ListDispatchActivityResponse> {
|
|
546
|
+
constructor() {
|
|
547
|
+
super("services.centrum.ListDispatchActivityResponse", [
|
|
548
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
|
|
549
|
+
{ no: 2, name: "activity", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DispatchStatus, options: { "codegen.itemslen.enabled": true } }
|
|
550
|
+
]);
|
|
551
|
+
}
|
|
552
|
+
create(value?: PartialMessage<ListDispatchActivityResponse>): ListDispatchActivityResponse {
|
|
553
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
554
|
+
message.activity = [];
|
|
555
|
+
if (value !== undefined)
|
|
556
|
+
reflectionMergePartial<ListDispatchActivityResponse>(this, message, value);
|
|
557
|
+
return message;
|
|
558
|
+
}
|
|
559
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListDispatchActivityResponse): ListDispatchActivityResponse {
|
|
560
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
561
|
+
while (reader.pos < end) {
|
|
562
|
+
let [fieldNo, wireType] = reader.tag();
|
|
563
|
+
switch (fieldNo) {
|
|
564
|
+
case /* resources.common.database.PaginationResponse pagination */ 1:
|
|
565
|
+
message.pagination = PaginationResponse.internalBinaryRead(reader, reader.uint32(), options, message.pagination);
|
|
566
|
+
break;
|
|
567
|
+
case /* repeated resources.centrum.dispatches.DispatchStatus activity */ 2:
|
|
568
|
+
message.activity.push(DispatchStatus.internalBinaryRead(reader, reader.uint32(), options));
|
|
569
|
+
break;
|
|
570
|
+
default:
|
|
571
|
+
let u = options.readUnknownField;
|
|
572
|
+
if (u === "throw")
|
|
573
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
574
|
+
let d = reader.skip(wireType);
|
|
575
|
+
if (u !== false)
|
|
576
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
return message;
|
|
580
|
+
}
|
|
581
|
+
internalBinaryWrite(message: ListDispatchActivityResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
582
|
+
/* resources.common.database.PaginationResponse pagination = 1; */
|
|
583
|
+
if (message.pagination)
|
|
584
|
+
PaginationResponse.internalBinaryWrite(message.pagination, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
585
|
+
/* repeated resources.centrum.dispatches.DispatchStatus activity = 2; */
|
|
586
|
+
for (let i = 0; i < message.activity.length; i++)
|
|
587
|
+
DispatchStatus.internalBinaryWrite(message.activity[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
588
|
+
let u = options.writeUnknownFields;
|
|
589
|
+
if (u !== false)
|
|
590
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
591
|
+
return writer;
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* @generated MessageType for protobuf message services.centrum.ListDispatchActivityResponse
|
|
596
|
+
*/
|
|
597
|
+
export const ListDispatchActivityResponse = new ListDispatchActivityResponse$Type();
|
|
598
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
599
|
+
class CreateDispatchRequest$Type extends MessageType<CreateDispatchRequest> {
|
|
600
|
+
constructor() {
|
|
601
|
+
super("services.centrum.CreateDispatchRequest", [
|
|
602
|
+
{ no: 1, name: "dispatch", kind: "message", T: () => Dispatch, options: { "buf.validate.field": { required: true } } }
|
|
603
|
+
]);
|
|
604
|
+
}
|
|
605
|
+
create(value?: PartialMessage<CreateDispatchRequest>): CreateDispatchRequest {
|
|
606
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
607
|
+
if (value !== undefined)
|
|
608
|
+
reflectionMergePartial<CreateDispatchRequest>(this, message, value);
|
|
609
|
+
return message;
|
|
610
|
+
}
|
|
611
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateDispatchRequest): CreateDispatchRequest {
|
|
612
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
613
|
+
while (reader.pos < end) {
|
|
614
|
+
let [fieldNo, wireType] = reader.tag();
|
|
615
|
+
switch (fieldNo) {
|
|
616
|
+
case /* resources.centrum.dispatches.Dispatch dispatch */ 1:
|
|
617
|
+
message.dispatch = Dispatch.internalBinaryRead(reader, reader.uint32(), options, message.dispatch);
|
|
618
|
+
break;
|
|
619
|
+
default:
|
|
620
|
+
let u = options.readUnknownField;
|
|
621
|
+
if (u === "throw")
|
|
622
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
623
|
+
let d = reader.skip(wireType);
|
|
624
|
+
if (u !== false)
|
|
625
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
return message;
|
|
629
|
+
}
|
|
630
|
+
internalBinaryWrite(message: CreateDispatchRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
631
|
+
/* resources.centrum.dispatches.Dispatch dispatch = 1; */
|
|
632
|
+
if (message.dispatch)
|
|
633
|
+
Dispatch.internalBinaryWrite(message.dispatch, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
634
|
+
let u = options.writeUnknownFields;
|
|
635
|
+
if (u !== false)
|
|
636
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
637
|
+
return writer;
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
/**
|
|
641
|
+
* @generated MessageType for protobuf message services.centrum.CreateDispatchRequest
|
|
642
|
+
*/
|
|
643
|
+
export const CreateDispatchRequest = new CreateDispatchRequest$Type();
|
|
644
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
645
|
+
class CreateDispatchResponse$Type extends MessageType<CreateDispatchResponse> {
|
|
646
|
+
constructor() {
|
|
647
|
+
super("services.centrum.CreateDispatchResponse", [
|
|
648
|
+
{ no: 1, name: "dispatch", kind: "message", T: () => Dispatch }
|
|
649
|
+
]);
|
|
650
|
+
}
|
|
651
|
+
create(value?: PartialMessage<CreateDispatchResponse>): CreateDispatchResponse {
|
|
652
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
653
|
+
if (value !== undefined)
|
|
654
|
+
reflectionMergePartial<CreateDispatchResponse>(this, message, value);
|
|
655
|
+
return message;
|
|
656
|
+
}
|
|
657
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateDispatchResponse): CreateDispatchResponse {
|
|
658
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
659
|
+
while (reader.pos < end) {
|
|
660
|
+
let [fieldNo, wireType] = reader.tag();
|
|
661
|
+
switch (fieldNo) {
|
|
662
|
+
case /* resources.centrum.dispatches.Dispatch dispatch */ 1:
|
|
663
|
+
message.dispatch = Dispatch.internalBinaryRead(reader, reader.uint32(), options, message.dispatch);
|
|
664
|
+
break;
|
|
665
|
+
default:
|
|
666
|
+
let u = options.readUnknownField;
|
|
667
|
+
if (u === "throw")
|
|
668
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
669
|
+
let d = reader.skip(wireType);
|
|
670
|
+
if (u !== false)
|
|
671
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
return message;
|
|
675
|
+
}
|
|
676
|
+
internalBinaryWrite(message: CreateDispatchResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
677
|
+
/* resources.centrum.dispatches.Dispatch dispatch = 1; */
|
|
678
|
+
if (message.dispatch)
|
|
679
|
+
Dispatch.internalBinaryWrite(message.dispatch, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
680
|
+
let u = options.writeUnknownFields;
|
|
681
|
+
if (u !== false)
|
|
682
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
683
|
+
return writer;
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
/**
|
|
687
|
+
* @generated MessageType for protobuf message services.centrum.CreateDispatchResponse
|
|
688
|
+
*/
|
|
689
|
+
export const CreateDispatchResponse = new CreateDispatchResponse$Type();
|
|
690
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
691
|
+
class UpdateDispatchRequest$Type extends MessageType<UpdateDispatchRequest> {
|
|
692
|
+
constructor() {
|
|
693
|
+
super("services.centrum.UpdateDispatchRequest", [
|
|
694
|
+
{ no: 1, name: "dispatch", kind: "message", T: () => Dispatch, options: { "buf.validate.field": { required: true } } }
|
|
695
|
+
]);
|
|
696
|
+
}
|
|
697
|
+
create(value?: PartialMessage<UpdateDispatchRequest>): UpdateDispatchRequest {
|
|
698
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
699
|
+
if (value !== undefined)
|
|
700
|
+
reflectionMergePartial<UpdateDispatchRequest>(this, message, value);
|
|
701
|
+
return message;
|
|
702
|
+
}
|
|
703
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateDispatchRequest): UpdateDispatchRequest {
|
|
704
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
705
|
+
while (reader.pos < end) {
|
|
706
|
+
let [fieldNo, wireType] = reader.tag();
|
|
707
|
+
switch (fieldNo) {
|
|
708
|
+
case /* resources.centrum.dispatches.Dispatch dispatch */ 1:
|
|
709
|
+
message.dispatch = Dispatch.internalBinaryRead(reader, reader.uint32(), options, message.dispatch);
|
|
710
|
+
break;
|
|
711
|
+
default:
|
|
712
|
+
let u = options.readUnknownField;
|
|
713
|
+
if (u === "throw")
|
|
714
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
715
|
+
let d = reader.skip(wireType);
|
|
716
|
+
if (u !== false)
|
|
717
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
return message;
|
|
721
|
+
}
|
|
722
|
+
internalBinaryWrite(message: UpdateDispatchRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
723
|
+
/* resources.centrum.dispatches.Dispatch dispatch = 1; */
|
|
724
|
+
if (message.dispatch)
|
|
725
|
+
Dispatch.internalBinaryWrite(message.dispatch, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
726
|
+
let u = options.writeUnknownFields;
|
|
727
|
+
if (u !== false)
|
|
728
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
729
|
+
return writer;
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
/**
|
|
733
|
+
* @generated MessageType for protobuf message services.centrum.UpdateDispatchRequest
|
|
734
|
+
*/
|
|
735
|
+
export const UpdateDispatchRequest = new UpdateDispatchRequest$Type();
|
|
736
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
737
|
+
class UpdateDispatchResponse$Type extends MessageType<UpdateDispatchResponse> {
|
|
738
|
+
constructor() {
|
|
739
|
+
super("services.centrum.UpdateDispatchResponse", [
|
|
740
|
+
{ no: 1, name: "dispatch", kind: "message", T: () => Dispatch }
|
|
741
|
+
]);
|
|
742
|
+
}
|
|
743
|
+
create(value?: PartialMessage<UpdateDispatchResponse>): UpdateDispatchResponse {
|
|
744
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
745
|
+
if (value !== undefined)
|
|
746
|
+
reflectionMergePartial<UpdateDispatchResponse>(this, message, value);
|
|
747
|
+
return message;
|
|
748
|
+
}
|
|
749
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateDispatchResponse): UpdateDispatchResponse {
|
|
750
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
751
|
+
while (reader.pos < end) {
|
|
752
|
+
let [fieldNo, wireType] = reader.tag();
|
|
753
|
+
switch (fieldNo) {
|
|
754
|
+
case /* resources.centrum.dispatches.Dispatch dispatch */ 1:
|
|
755
|
+
message.dispatch = Dispatch.internalBinaryRead(reader, reader.uint32(), options, message.dispatch);
|
|
756
|
+
break;
|
|
757
|
+
default:
|
|
758
|
+
let u = options.readUnknownField;
|
|
759
|
+
if (u === "throw")
|
|
760
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
761
|
+
let d = reader.skip(wireType);
|
|
762
|
+
if (u !== false)
|
|
763
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
return message;
|
|
767
|
+
}
|
|
768
|
+
internalBinaryWrite(message: UpdateDispatchResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
769
|
+
/* resources.centrum.dispatches.Dispatch dispatch = 1; */
|
|
770
|
+
if (message.dispatch)
|
|
771
|
+
Dispatch.internalBinaryWrite(message.dispatch, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
772
|
+
let u = options.writeUnknownFields;
|
|
773
|
+
if (u !== false)
|
|
774
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
775
|
+
return writer;
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
/**
|
|
779
|
+
* @generated MessageType for protobuf message services.centrum.UpdateDispatchResponse
|
|
780
|
+
*/
|
|
781
|
+
export const UpdateDispatchResponse = new UpdateDispatchResponse$Type();
|
|
782
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
783
|
+
class DeleteDispatchRequest$Type extends MessageType<DeleteDispatchRequest> {
|
|
784
|
+
constructor() {
|
|
785
|
+
super("services.centrum.DeleteDispatchRequest", [
|
|
786
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { int64: { gt: "0" } } } }
|
|
787
|
+
]);
|
|
788
|
+
}
|
|
789
|
+
create(value?: PartialMessage<DeleteDispatchRequest>): DeleteDispatchRequest {
|
|
790
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
791
|
+
message.id = 0;
|
|
792
|
+
if (value !== undefined)
|
|
793
|
+
reflectionMergePartial<DeleteDispatchRequest>(this, message, value);
|
|
794
|
+
return message;
|
|
795
|
+
}
|
|
796
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteDispatchRequest): DeleteDispatchRequest {
|
|
797
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
798
|
+
while (reader.pos < end) {
|
|
799
|
+
let [fieldNo, wireType] = reader.tag();
|
|
800
|
+
switch (fieldNo) {
|
|
801
|
+
case /* int64 id */ 1:
|
|
802
|
+
message.id = reader.int64().toNumber();
|
|
803
|
+
break;
|
|
804
|
+
default:
|
|
805
|
+
let u = options.readUnknownField;
|
|
806
|
+
if (u === "throw")
|
|
807
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
808
|
+
let d = reader.skip(wireType);
|
|
809
|
+
if (u !== false)
|
|
810
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
return message;
|
|
814
|
+
}
|
|
815
|
+
internalBinaryWrite(message: DeleteDispatchRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
816
|
+
/* int64 id = 1; */
|
|
817
|
+
if (message.id !== 0)
|
|
818
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
819
|
+
let u = options.writeUnknownFields;
|
|
820
|
+
if (u !== false)
|
|
821
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
822
|
+
return writer;
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
/**
|
|
826
|
+
* @generated MessageType for protobuf message services.centrum.DeleteDispatchRequest
|
|
827
|
+
*/
|
|
828
|
+
export const DeleteDispatchRequest = new DeleteDispatchRequest$Type();
|
|
829
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
830
|
+
class DeleteDispatchResponse$Type extends MessageType<DeleteDispatchResponse> {
|
|
831
|
+
constructor() {
|
|
832
|
+
super("services.centrum.DeleteDispatchResponse", []);
|
|
833
|
+
}
|
|
834
|
+
create(value?: PartialMessage<DeleteDispatchResponse>): DeleteDispatchResponse {
|
|
835
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
836
|
+
if (value !== undefined)
|
|
837
|
+
reflectionMergePartial<DeleteDispatchResponse>(this, message, value);
|
|
838
|
+
return message;
|
|
839
|
+
}
|
|
840
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteDispatchResponse): DeleteDispatchResponse {
|
|
841
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
842
|
+
while (reader.pos < end) {
|
|
843
|
+
let [fieldNo, wireType] = reader.tag();
|
|
844
|
+
switch (fieldNo) {
|
|
845
|
+
default:
|
|
846
|
+
let u = options.readUnknownField;
|
|
847
|
+
if (u === "throw")
|
|
848
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
849
|
+
let d = reader.skip(wireType);
|
|
850
|
+
if (u !== false)
|
|
851
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
return message;
|
|
855
|
+
}
|
|
856
|
+
internalBinaryWrite(message: DeleteDispatchResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
857
|
+
let u = options.writeUnknownFields;
|
|
858
|
+
if (u !== false)
|
|
859
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
860
|
+
return writer;
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
/**
|
|
864
|
+
* @generated MessageType for protobuf message services.centrum.DeleteDispatchResponse
|
|
865
|
+
*/
|
|
866
|
+
export const DeleteDispatchResponse = new DeleteDispatchResponse$Type();
|
|
867
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
868
|
+
class ListDispatchTargetJobsRequest$Type extends MessageType<ListDispatchTargetJobsRequest> {
|
|
869
|
+
constructor() {
|
|
870
|
+
super("services.centrum.ListDispatchTargetJobsRequest", []);
|
|
871
|
+
}
|
|
872
|
+
create(value?: PartialMessage<ListDispatchTargetJobsRequest>): ListDispatchTargetJobsRequest {
|
|
873
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
874
|
+
if (value !== undefined)
|
|
875
|
+
reflectionMergePartial<ListDispatchTargetJobsRequest>(this, message, value);
|
|
876
|
+
return message;
|
|
877
|
+
}
|
|
878
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListDispatchTargetJobsRequest): ListDispatchTargetJobsRequest {
|
|
879
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
880
|
+
while (reader.pos < end) {
|
|
881
|
+
let [fieldNo, wireType] = reader.tag();
|
|
882
|
+
switch (fieldNo) {
|
|
883
|
+
default:
|
|
884
|
+
let u = options.readUnknownField;
|
|
885
|
+
if (u === "throw")
|
|
886
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
887
|
+
let d = reader.skip(wireType);
|
|
888
|
+
if (u !== false)
|
|
889
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
return message;
|
|
893
|
+
}
|
|
894
|
+
internalBinaryWrite(message: ListDispatchTargetJobsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
895
|
+
let u = options.writeUnknownFields;
|
|
896
|
+
if (u !== false)
|
|
897
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
898
|
+
return writer;
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
/**
|
|
902
|
+
* @generated MessageType for protobuf message services.centrum.ListDispatchTargetJobsRequest
|
|
903
|
+
*/
|
|
904
|
+
export const ListDispatchTargetJobsRequest = new ListDispatchTargetJobsRequest$Type();
|
|
905
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
906
|
+
class ListDispatchTargetJobsResponse$Type extends MessageType<ListDispatchTargetJobsResponse> {
|
|
907
|
+
constructor() {
|
|
908
|
+
super("services.centrum.ListDispatchTargetJobsResponse", [
|
|
909
|
+
{ no: 1, name: "jobs", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Job, options: { "codegen.itemslen.enabled": true } }
|
|
910
|
+
]);
|
|
911
|
+
}
|
|
912
|
+
create(value?: PartialMessage<ListDispatchTargetJobsResponse>): ListDispatchTargetJobsResponse {
|
|
913
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
914
|
+
message.jobs = [];
|
|
915
|
+
if (value !== undefined)
|
|
916
|
+
reflectionMergePartial<ListDispatchTargetJobsResponse>(this, message, value);
|
|
917
|
+
return message;
|
|
918
|
+
}
|
|
919
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListDispatchTargetJobsResponse): ListDispatchTargetJobsResponse {
|
|
920
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
921
|
+
while (reader.pos < end) {
|
|
922
|
+
let [fieldNo, wireType] = reader.tag();
|
|
923
|
+
switch (fieldNo) {
|
|
924
|
+
case /* repeated resources.jobs.Job jobs */ 1:
|
|
925
|
+
message.jobs.push(Job.internalBinaryRead(reader, reader.uint32(), options));
|
|
926
|
+
break;
|
|
927
|
+
default:
|
|
928
|
+
let u = options.readUnknownField;
|
|
929
|
+
if (u === "throw")
|
|
930
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
931
|
+
let d = reader.skip(wireType);
|
|
932
|
+
if (u !== false)
|
|
933
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
return message;
|
|
937
|
+
}
|
|
938
|
+
internalBinaryWrite(message: ListDispatchTargetJobsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
939
|
+
/* repeated resources.jobs.Job jobs = 1; */
|
|
940
|
+
for (let i = 0; i < message.jobs.length; i++)
|
|
941
|
+
Job.internalBinaryWrite(message.jobs[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
942
|
+
let u = options.writeUnknownFields;
|
|
943
|
+
if (u !== false)
|
|
944
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
945
|
+
return writer;
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
/**
|
|
949
|
+
* @generated MessageType for protobuf message services.centrum.ListDispatchTargetJobsResponse
|
|
950
|
+
*/
|
|
951
|
+
export const ListDispatchTargetJobsResponse = new ListDispatchTargetJobsResponse$Type();
|
|
952
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
953
|
+
class UpdateDispatchStatusRequest$Type extends MessageType<UpdateDispatchStatusRequest> {
|
|
954
|
+
constructor() {
|
|
955
|
+
super("services.centrum.UpdateDispatchStatusRequest", [
|
|
956
|
+
{ no: 1, name: "dispatch_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
957
|
+
{ no: 2, name: "status", kind: "enum", T: () => ["resources.centrum.dispatches.StatusDispatch", StatusDispatch, "STATUS_DISPATCH_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
|
|
958
|
+
{ no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true } } },
|
|
959
|
+
{ no: 4, name: "code", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "24" } }, "codegen.sanitizer.sanitizer": { enabled: true } } }
|
|
960
|
+
]);
|
|
961
|
+
}
|
|
962
|
+
create(value?: PartialMessage<UpdateDispatchStatusRequest>): UpdateDispatchStatusRequest {
|
|
963
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
964
|
+
message.dispatchId = 0;
|
|
965
|
+
message.status = 0;
|
|
966
|
+
if (value !== undefined)
|
|
967
|
+
reflectionMergePartial<UpdateDispatchStatusRequest>(this, message, value);
|
|
968
|
+
return message;
|
|
969
|
+
}
|
|
970
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateDispatchStatusRequest): UpdateDispatchStatusRequest {
|
|
971
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
972
|
+
while (reader.pos < end) {
|
|
973
|
+
let [fieldNo, wireType] = reader.tag();
|
|
974
|
+
switch (fieldNo) {
|
|
975
|
+
case /* int64 dispatch_id */ 1:
|
|
976
|
+
message.dispatchId = reader.int64().toNumber();
|
|
977
|
+
break;
|
|
978
|
+
case /* resources.centrum.dispatches.StatusDispatch status */ 2:
|
|
979
|
+
message.status = reader.int32();
|
|
980
|
+
break;
|
|
981
|
+
case /* optional string reason */ 3:
|
|
982
|
+
message.reason = reader.string();
|
|
983
|
+
break;
|
|
984
|
+
case /* optional string code */ 4:
|
|
985
|
+
message.code = reader.string();
|
|
986
|
+
break;
|
|
987
|
+
default:
|
|
988
|
+
let u = options.readUnknownField;
|
|
989
|
+
if (u === "throw")
|
|
990
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
991
|
+
let d = reader.skip(wireType);
|
|
992
|
+
if (u !== false)
|
|
993
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
return message;
|
|
997
|
+
}
|
|
998
|
+
internalBinaryWrite(message: UpdateDispatchStatusRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
999
|
+
/* int64 dispatch_id = 1; */
|
|
1000
|
+
if (message.dispatchId !== 0)
|
|
1001
|
+
writer.tag(1, WireType.Varint).int64(message.dispatchId);
|
|
1002
|
+
/* resources.centrum.dispatches.StatusDispatch status = 2; */
|
|
1003
|
+
if (message.status !== 0)
|
|
1004
|
+
writer.tag(2, WireType.Varint).int32(message.status);
|
|
1005
|
+
/* optional string reason = 3; */
|
|
1006
|
+
if (message.reason !== undefined)
|
|
1007
|
+
writer.tag(3, WireType.LengthDelimited).string(message.reason);
|
|
1008
|
+
/* optional string code = 4; */
|
|
1009
|
+
if (message.code !== undefined)
|
|
1010
|
+
writer.tag(4, WireType.LengthDelimited).string(message.code);
|
|
1011
|
+
let u = options.writeUnknownFields;
|
|
1012
|
+
if (u !== false)
|
|
1013
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1014
|
+
return writer;
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
/**
|
|
1018
|
+
* @generated MessageType for protobuf message services.centrum.UpdateDispatchStatusRequest
|
|
1019
|
+
*/
|
|
1020
|
+
export const UpdateDispatchStatusRequest = new UpdateDispatchStatusRequest$Type();
|
|
1021
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1022
|
+
class UpdateDispatchStatusResponse$Type extends MessageType<UpdateDispatchStatusResponse> {
|
|
1023
|
+
constructor() {
|
|
1024
|
+
super("services.centrum.UpdateDispatchStatusResponse", []);
|
|
1025
|
+
}
|
|
1026
|
+
create(value?: PartialMessage<UpdateDispatchStatusResponse>): UpdateDispatchStatusResponse {
|
|
1027
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1028
|
+
if (value !== undefined)
|
|
1029
|
+
reflectionMergePartial<UpdateDispatchStatusResponse>(this, message, value);
|
|
1030
|
+
return message;
|
|
1031
|
+
}
|
|
1032
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateDispatchStatusResponse): UpdateDispatchStatusResponse {
|
|
1033
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1034
|
+
while (reader.pos < end) {
|
|
1035
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1036
|
+
switch (fieldNo) {
|
|
1037
|
+
default:
|
|
1038
|
+
let u = options.readUnknownField;
|
|
1039
|
+
if (u === "throw")
|
|
1040
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1041
|
+
let d = reader.skip(wireType);
|
|
1042
|
+
if (u !== false)
|
|
1043
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
return message;
|
|
1047
|
+
}
|
|
1048
|
+
internalBinaryWrite(message: UpdateDispatchStatusResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1049
|
+
let u = options.writeUnknownFields;
|
|
1050
|
+
if (u !== false)
|
|
1051
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1052
|
+
return writer;
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
/**
|
|
1056
|
+
* @generated MessageType for protobuf message services.centrum.UpdateDispatchStatusResponse
|
|
1057
|
+
*/
|
|
1058
|
+
export const UpdateDispatchStatusResponse = new UpdateDispatchStatusResponse$Type();
|
|
1059
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1060
|
+
class AssignDispatchRequest$Type extends MessageType<AssignDispatchRequest> {
|
|
1061
|
+
constructor() {
|
|
1062
|
+
super("services.centrum.AssignDispatchRequest", [
|
|
1063
|
+
{ no: 1, name: "dispatch_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
1064
|
+
{ no: 2, name: "to_add", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
1065
|
+
{ no: 3, name: "to_remove", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
1066
|
+
{ no: 4, name: "forced", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
1067
|
+
]);
|
|
1068
|
+
}
|
|
1069
|
+
create(value?: PartialMessage<AssignDispatchRequest>): AssignDispatchRequest {
|
|
1070
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1071
|
+
message.dispatchId = 0;
|
|
1072
|
+
message.toAdd = [];
|
|
1073
|
+
message.toRemove = [];
|
|
1074
|
+
if (value !== undefined)
|
|
1075
|
+
reflectionMergePartial<AssignDispatchRequest>(this, message, value);
|
|
1076
|
+
return message;
|
|
1077
|
+
}
|
|
1078
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AssignDispatchRequest): AssignDispatchRequest {
|
|
1079
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1080
|
+
while (reader.pos < end) {
|
|
1081
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1082
|
+
switch (fieldNo) {
|
|
1083
|
+
case /* int64 dispatch_id */ 1:
|
|
1084
|
+
message.dispatchId = reader.int64().toNumber();
|
|
1085
|
+
break;
|
|
1086
|
+
case /* repeated int64 to_add */ 2:
|
|
1087
|
+
if (wireType === WireType.LengthDelimited)
|
|
1088
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
1089
|
+
message.toAdd.push(reader.int64().toNumber());
|
|
1090
|
+
else
|
|
1091
|
+
message.toAdd.push(reader.int64().toNumber());
|
|
1092
|
+
break;
|
|
1093
|
+
case /* repeated int64 to_remove */ 3:
|
|
1094
|
+
if (wireType === WireType.LengthDelimited)
|
|
1095
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
1096
|
+
message.toRemove.push(reader.int64().toNumber());
|
|
1097
|
+
else
|
|
1098
|
+
message.toRemove.push(reader.int64().toNumber());
|
|
1099
|
+
break;
|
|
1100
|
+
case /* optional bool forced */ 4:
|
|
1101
|
+
message.forced = reader.bool();
|
|
1102
|
+
break;
|
|
1103
|
+
default:
|
|
1104
|
+
let u = options.readUnknownField;
|
|
1105
|
+
if (u === "throw")
|
|
1106
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1107
|
+
let d = reader.skip(wireType);
|
|
1108
|
+
if (u !== false)
|
|
1109
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
return message;
|
|
1113
|
+
}
|
|
1114
|
+
internalBinaryWrite(message: AssignDispatchRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1115
|
+
/* int64 dispatch_id = 1; */
|
|
1116
|
+
if (message.dispatchId !== 0)
|
|
1117
|
+
writer.tag(1, WireType.Varint).int64(message.dispatchId);
|
|
1118
|
+
/* repeated int64 to_add = 2; */
|
|
1119
|
+
if (message.toAdd.length) {
|
|
1120
|
+
writer.tag(2, WireType.LengthDelimited).fork();
|
|
1121
|
+
for (let i = 0; i < message.toAdd.length; i++)
|
|
1122
|
+
writer.int64(message.toAdd[i]);
|
|
1123
|
+
writer.join();
|
|
1124
|
+
}
|
|
1125
|
+
/* repeated int64 to_remove = 3; */
|
|
1126
|
+
if (message.toRemove.length) {
|
|
1127
|
+
writer.tag(3, WireType.LengthDelimited).fork();
|
|
1128
|
+
for (let i = 0; i < message.toRemove.length; i++)
|
|
1129
|
+
writer.int64(message.toRemove[i]);
|
|
1130
|
+
writer.join();
|
|
1131
|
+
}
|
|
1132
|
+
/* optional bool forced = 4; */
|
|
1133
|
+
if (message.forced !== undefined)
|
|
1134
|
+
writer.tag(4, WireType.Varint).bool(message.forced);
|
|
1135
|
+
let u = options.writeUnknownFields;
|
|
1136
|
+
if (u !== false)
|
|
1137
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1138
|
+
return writer;
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
/**
|
|
1142
|
+
* @generated MessageType for protobuf message services.centrum.AssignDispatchRequest
|
|
1143
|
+
*/
|
|
1144
|
+
export const AssignDispatchRequest = new AssignDispatchRequest$Type();
|
|
1145
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1146
|
+
class AssignDispatchResponse$Type extends MessageType<AssignDispatchResponse> {
|
|
1147
|
+
constructor() {
|
|
1148
|
+
super("services.centrum.AssignDispatchResponse", []);
|
|
1149
|
+
}
|
|
1150
|
+
create(value?: PartialMessage<AssignDispatchResponse>): AssignDispatchResponse {
|
|
1151
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1152
|
+
if (value !== undefined)
|
|
1153
|
+
reflectionMergePartial<AssignDispatchResponse>(this, message, value);
|
|
1154
|
+
return message;
|
|
1155
|
+
}
|
|
1156
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AssignDispatchResponse): AssignDispatchResponse {
|
|
1157
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1158
|
+
while (reader.pos < end) {
|
|
1159
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1160
|
+
switch (fieldNo) {
|
|
1161
|
+
default:
|
|
1162
|
+
let u = options.readUnknownField;
|
|
1163
|
+
if (u === "throw")
|
|
1164
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1165
|
+
let d = reader.skip(wireType);
|
|
1166
|
+
if (u !== false)
|
|
1167
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
return message;
|
|
1171
|
+
}
|
|
1172
|
+
internalBinaryWrite(message: AssignDispatchResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1173
|
+
let u = options.writeUnknownFields;
|
|
1174
|
+
if (u !== false)
|
|
1175
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1176
|
+
return writer;
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
/**
|
|
1180
|
+
* @generated MessageType for protobuf message services.centrum.AssignDispatchResponse
|
|
1181
|
+
*/
|
|
1182
|
+
export const AssignDispatchResponse = new AssignDispatchResponse$Type();
|
|
1183
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1184
|
+
class TakeDispatchRequest$Type extends MessageType<TakeDispatchRequest> {
|
|
1185
|
+
constructor() {
|
|
1186
|
+
super("services.centrum.TakeDispatchRequest", [
|
|
1187
|
+
{ no: 1, name: "dispatch_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { repeated: { minItems: "1" } } } },
|
|
1188
|
+
{ no: 2, name: "resp", kind: "enum", T: () => ["resources.centrum.dispatches.TakeDispatchResp", TakeDispatchResp, "TAKE_DISPATCH_RESP_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
|
|
1189
|
+
{ no: 3, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } }, "codegen.sanitizer.sanitizer": { enabled: true } } }
|
|
1190
|
+
]);
|
|
1191
|
+
}
|
|
1192
|
+
create(value?: PartialMessage<TakeDispatchRequest>): TakeDispatchRequest {
|
|
1193
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1194
|
+
message.dispatchIds = [];
|
|
1195
|
+
message.resp = 0;
|
|
1196
|
+
if (value !== undefined)
|
|
1197
|
+
reflectionMergePartial<TakeDispatchRequest>(this, message, value);
|
|
1198
|
+
return message;
|
|
1199
|
+
}
|
|
1200
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TakeDispatchRequest): TakeDispatchRequest {
|
|
1201
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1202
|
+
while (reader.pos < end) {
|
|
1203
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1204
|
+
switch (fieldNo) {
|
|
1205
|
+
case /* repeated int64 dispatch_ids */ 1:
|
|
1206
|
+
if (wireType === WireType.LengthDelimited)
|
|
1207
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
1208
|
+
message.dispatchIds.push(reader.int64().toNumber());
|
|
1209
|
+
else
|
|
1210
|
+
message.dispatchIds.push(reader.int64().toNumber());
|
|
1211
|
+
break;
|
|
1212
|
+
case /* resources.centrum.dispatches.TakeDispatchResp resp */ 2:
|
|
1213
|
+
message.resp = reader.int32();
|
|
1214
|
+
break;
|
|
1215
|
+
case /* optional string reason */ 3:
|
|
1216
|
+
message.reason = reader.string();
|
|
1217
|
+
break;
|
|
1218
|
+
default:
|
|
1219
|
+
let u = options.readUnknownField;
|
|
1220
|
+
if (u === "throw")
|
|
1221
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1222
|
+
let d = reader.skip(wireType);
|
|
1223
|
+
if (u !== false)
|
|
1224
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
return message;
|
|
1228
|
+
}
|
|
1229
|
+
internalBinaryWrite(message: TakeDispatchRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1230
|
+
/* repeated int64 dispatch_ids = 1; */
|
|
1231
|
+
if (message.dispatchIds.length) {
|
|
1232
|
+
writer.tag(1, WireType.LengthDelimited).fork();
|
|
1233
|
+
for (let i = 0; i < message.dispatchIds.length; i++)
|
|
1234
|
+
writer.int64(message.dispatchIds[i]);
|
|
1235
|
+
writer.join();
|
|
1236
|
+
}
|
|
1237
|
+
/* resources.centrum.dispatches.TakeDispatchResp resp = 2; */
|
|
1238
|
+
if (message.resp !== 0)
|
|
1239
|
+
writer.tag(2, WireType.Varint).int32(message.resp);
|
|
1240
|
+
/* optional string reason = 3; */
|
|
1241
|
+
if (message.reason !== undefined)
|
|
1242
|
+
writer.tag(3, WireType.LengthDelimited).string(message.reason);
|
|
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.centrum.TakeDispatchRequest
|
|
1251
|
+
*/
|
|
1252
|
+
export const TakeDispatchRequest = new TakeDispatchRequest$Type();
|
|
1253
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1254
|
+
class TakeDispatchResponse$Type extends MessageType<TakeDispatchResponse> {
|
|
1255
|
+
constructor() {
|
|
1256
|
+
super("services.centrum.TakeDispatchResponse", []);
|
|
1257
|
+
}
|
|
1258
|
+
create(value?: PartialMessage<TakeDispatchResponse>): TakeDispatchResponse {
|
|
1259
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1260
|
+
if (value !== undefined)
|
|
1261
|
+
reflectionMergePartial<TakeDispatchResponse>(this, message, value);
|
|
1262
|
+
return message;
|
|
1263
|
+
}
|
|
1264
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TakeDispatchResponse): TakeDispatchResponse {
|
|
1265
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1266
|
+
while (reader.pos < end) {
|
|
1267
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1268
|
+
switch (fieldNo) {
|
|
1269
|
+
default:
|
|
1270
|
+
let u = options.readUnknownField;
|
|
1271
|
+
if (u === "throw")
|
|
1272
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1273
|
+
let d = reader.skip(wireType);
|
|
1274
|
+
if (u !== false)
|
|
1275
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
return message;
|
|
1279
|
+
}
|
|
1280
|
+
internalBinaryWrite(message: TakeDispatchResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1281
|
+
let u = options.writeUnknownFields;
|
|
1282
|
+
if (u !== false)
|
|
1283
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1284
|
+
return writer;
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
/**
|
|
1288
|
+
* @generated MessageType for protobuf message services.centrum.TakeDispatchResponse
|
|
1289
|
+
*/
|
|
1290
|
+
export const TakeDispatchResponse = new TakeDispatchResponse$Type();
|
|
1291
|
+
/**
|
|
1292
|
+
* @generated ServiceType for protobuf service services.centrum.DispatchesService
|
|
1293
|
+
*/
|
|
1294
|
+
export const DispatchesService = new ServiceType("services.centrum.DispatchesService", [
|
|
1295
|
+
{ name: "CreateDispatch", options: { "codegen.perms.perms": { enabled: true } }, I: CreateDispatchRequest, O: CreateDispatchResponse },
|
|
1296
|
+
{ name: "UpdateDispatch", options: { "codegen.perms.perms": { enabled: true } }, I: UpdateDispatchRequest, O: UpdateDispatchResponse },
|
|
1297
|
+
{ name: "DeleteDispatch", options: { "codegen.perms.perms": { enabled: true } }, I: DeleteDispatchRequest, O: DeleteDispatchResponse },
|
|
1298
|
+
{ name: "ListDispatchTargetJobs", options: { "codegen.perms.perms": { enabled: true, name: "CreateDispatch" } }, I: ListDispatchTargetJobsRequest, O: ListDispatchTargetJobsResponse },
|
|
1299
|
+
{ name: "AssignDispatch", options: { "codegen.perms.perms": { enabled: true, name: "TakeControl" } }, I: AssignDispatchRequest, O: AssignDispatchResponse },
|
|
1300
|
+
{ name: "GetDispatch", options: { "codegen.perms.perms": { enabled: true, name: "Stream" } }, I: GetDispatchRequest, O: GetDispatchResponse },
|
|
1301
|
+
{ name: "ListDispatches", options: { "codegen.perms.perms": { enabled: true, name: "Stream" } }, I: ListDispatchesRequest, O: ListDispatchesResponse },
|
|
1302
|
+
{ name: "ListDispatchActivity", options: { "codegen.perms.perms": { enabled: true, name: "Stream" } }, I: ListDispatchActivityRequest, O: ListDispatchActivityResponse },
|
|
1303
|
+
{ name: "TakeDispatch", options: { "codegen.perms.perms": { enabled: true } }, I: TakeDispatchRequest, O: TakeDispatchResponse },
|
|
1304
|
+
{ name: "UpdateDispatchStatus", options: { "codegen.perms.perms": { enabled: true, name: "TakeDispatch" } }, I: UpdateDispatchStatusRequest, O: UpdateDispatchStatusResponse }
|
|
1305
|
+
], { "codegen.perms.perms_svc": { name: "centrum.CentrumService" } });
|