@fivenet-app/gen 2025.5.3 → 2026.3.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/README.md +1 -1
- package/buf/validate/validate.ts +11301 -0
- package/clients.ts +193 -154
- package/codegen/dbscanner/dbscanner.ts +91 -0
- package/codegen/perms/perms.ts +287 -0
- package/codegen/sanitizer/sanitizer.ts +113 -0
- package/google/protobuf/any.ts +4 -3
- package/google/protobuf/descriptor.ts +393 -239
- package/google/protobuf/duration.ts +4 -3
- package/google/protobuf/struct.ts +485 -0
- package/google/protobuf/timestamp.ts +4 -3
- package/package.json +3 -3
- package/perms.ts +217 -160
- package/resources/accounts/accounts.ts +115 -47
- package/resources/accounts/{oauth2.ts → oauth2/oauth2.ts} +33 -32
- package/resources/audit/audit.ts +172 -53
- package/resources/calendar/{access.ts → access/access.ts} +72 -71
- package/resources/calendar/calendar.ts +79 -543
- package/resources/calendar/entries/entries.ts +474 -0
- package/resources/centrum/access/access.ts +345 -0
- package/resources/centrum/dispatchers/dispatchers.ts +149 -0
- package/resources/centrum/{dispatches.ts → dispatches/dispatches.ts} +267 -164
- package/resources/centrum/joblist.ts +136 -0
- package/resources/centrum/settings/settings.ts +657 -0
- package/resources/centrum/{units_access.ts → units/access/access.ts} +78 -79
- package/resources/centrum/{units.ts → units/units.ts} +230 -130
- package/resources/clientconfig/clientconfig.ts +1015 -0
- package/resources/collab/collab.ts +805 -0
- package/resources/common/content/content.ts +169 -63
- package/resources/common/content/diff_activity.ts +267 -0
- package/resources/common/database/database.ts +92 -35
- package/resources/common/error.ts +17 -16
- package/resources/common/i18n.ts +20 -24
- package/resources/common/id_mapping.ts +69 -0
- package/resources/common/tests/objects.ts +4 -3
- package/resources/{common/cron → cron}/cron.ts +77 -65
- package/resources/discord/discord.ts +209 -0
- package/resources/documents/{access.ts → access/access.ts} +75 -76
- package/resources/documents/{activity.ts → activity/activity.ts} +349 -124
- package/resources/documents/approval/approval.ts +945 -0
- package/resources/documents/{category.ts → category/category.ts} +25 -32
- package/resources/documents/{comment.ts → comment/comment.ts} +35 -34
- package/resources/documents/data/data.ts +303 -0
- package/resources/documents/documents.ts +374 -686
- package/resources/{common/uuid.ts → documents/forms/forms.ts} +22 -21
- package/resources/documents/pins/pins.ts +127 -0
- package/resources/documents/references/references.ts +187 -0
- package/resources/documents/relations/relations.ts +184 -0
- package/resources/documents/{requests.ts → requests/requests.ts} +45 -44
- package/resources/documents/stamps/stamp.ts +355 -0
- package/resources/documents/{templates.ts → templates/templates.ts} +524 -199
- package/resources/documents/workflow/workflow.ts +600 -0
- package/resources/file/file.ts +152 -0
- package/{services/settings → resources/file}/filestore.ts +179 -165
- package/resources/file/meta.ts +148 -0
- package/resources/{common/grpcws → grpcws}/grpcws.ts +66 -65
- package/resources/jobs/{activity.ts → colleagues/activity/activity.ts} +83 -86
- package/resources/jobs/{colleagues.ts → colleagues/colleagues.ts} +76 -80
- package/resources/jobs/{conduct.ts → conduct/conduct.ts} +86 -62
- package/resources/jobs/jobs.ts +14 -13
- package/resources/jobs/{labels.ts → labels/labels.ts} +36 -37
- package/resources/jobs/{job_props.ts → props/props.ts} +63 -65
- package/resources/jobs/{job_settings.ts → settings/settings.ts} +89 -96
- package/resources/jobs/{timeclock.ts → timeclock/timeclock.ts} +42 -41
- package/resources/laws/laws.ts +40 -49
- package/resources/livemap/coords.ts +81 -0
- package/resources/livemap/heatmap/heatmap.ts +93 -0
- package/resources/livemap/{livemap.ts → markers/marker_marker.ts} +68 -335
- package/resources/livemap/markers/user_marker.ts +377 -0
- package/resources/mailer/{access.ts → access/access.ts} +119 -118
- package/resources/mailer/{email.ts → emails/email.ts} +38 -41
- package/resources/mailer/{events.ts → events/events.ts} +44 -43
- package/resources/mailer/{message.ts → messages/message.ts} +69 -74
- package/resources/mailer/{settings.ts → settings/settings.ts} +23 -25
- package/resources/mailer/{template.ts → templates/template.ts} +37 -40
- package/resources/mailer/{thread.ts → threads/thread.ts} +93 -94
- package/resources/notifications/clientview/clientview.ts +239 -0
- package/resources/notifications/{events.ts → events/events.ts} +67 -130
- package/resources/notifications/notifications.ts +55 -60
- package/resources/permissions/{attributes.ts → attributes/attributes.ts} +94 -237
- package/resources/permissions/events/events.ts +149 -0
- package/resources/permissions/{permissions.ts → permissions/permissions.ts} +127 -47
- package/resources/qualifications/{access.ts → access/access.ts} +43 -42
- package/resources/qualifications/{exam.ts → exam/exam.ts} +419 -229
- package/resources/qualifications/qualifications.ts +327 -388
- package/resources/settings/banner.ts +14 -21
- package/resources/settings/config.ts +663 -79
- package/resources/settings/data.ts +90 -0
- package/resources/settings/perms.ts +151 -0
- package/resources/settings/status.ts +533 -0
- package/resources/stats/stats.ts +382 -2
- package/resources/sync/{activity.ts → activity/activity.ts} +126 -46
- package/resources/sync/data/data.ts +1001 -0
- package/resources/sync/data/v2/data.ts +220 -0
- package/resources/timestamp/timestamp.ts +3 -2
- package/resources/{centrum/user_unit.ts → tracker/mapping.ts} +44 -44
- package/resources/userinfo/userinfo.ts +442 -0
- package/resources/users/{activity.ts → activity/activity.ts} +182 -166
- package/resources/users/{labels.ts → labels/labels.ts} +27 -30
- package/resources/users/{licenses.ts → licenses/licenses.ts} +18 -17
- package/resources/users/{props.ts → props/props.ts} +109 -77
- package/resources/users/short/user.ts +184 -0
- package/resources/users/user.ts +528 -0
- package/resources/vehicles/activity/activity.ts +231 -0
- package/resources/vehicles/props/props.ts +125 -0
- package/resources/vehicles/vehicles.ts +43 -18
- package/resources/wiki/{access.ts → access/access.ts} +72 -71
- package/resources/wiki/{activity.ts → activity/activity.ts} +218 -102
- package/resources/wiki/page.ts +164 -93
- package/services/auth/auth.client.ts +45 -35
- package/services/auth/auth.ts +498 -288
- package/services/calendar/calendar.client.ts +32 -91
- package/services/calendar/calendar.ts +157 -134
- package/services/centrum/centrum.client.ts +97 -137
- package/services/centrum/centrum.ts +755 -352
- package/services/citizens/citizens.client.ts +70 -39
- package/services/citizens/citizens.ts +226 -112
- package/services/completor/completor.client.ts +16 -35
- package/services/completor/completor.ts +95 -54
- package/services/documents/approval.client.ts +188 -0
- package/services/documents/approval.ts +1776 -0
- package/services/documents/collab.client.ts +46 -0
- package/services/documents/collab.ts +13 -0
- package/services/documents/documents.client.ts +88 -217
- package/services/documents/documents.ts +579 -619
- package/services/documents/forms.client.ts +51 -0
- package/services/documents/forms.ts +232 -0
- package/services/documents/stamps.client.ts +77 -0
- package/services/documents/stamps.ts +481 -0
- package/services/documents/stats.client.ts +38 -0
- package/services/documents/stats.ts +245 -0
- package/services/filestore/filestore.client.ts +86 -0
- package/services/filestore/filestore.ts +262 -0
- package/services/jobs/conduct.client.ts +40 -28
- package/services/jobs/conduct.ts +183 -56
- package/services/jobs/jobs.client.ts +22 -61
- package/services/jobs/jobs.ts +138 -121
- package/services/jobs/stats.client.ts +38 -0
- package/services/jobs/stats.ts +207 -0
- package/services/jobs/timeclock.client.ts +8 -19
- package/services/jobs/timeclock.ts +76 -75
- package/services/livemap/livemap.client.ts +8 -19
- package/services/livemap/livemap.ts +297 -126
- package/services/mailer/mailer.client.ts +44 -127
- package/services/mailer/mailer.ts +266 -269
- package/services/notifications/notifications.client.ts +65 -0
- package/services/{notificator/notificator.ts → notifications/notifications.ts} +126 -83
- package/services/qualifications/qualifications.client.ts +46 -91
- package/services/qualifications/qualifications.ts +250 -209
- package/services/settings/accounts.client.ts +31 -33
- package/services/settings/accounts.ts +251 -67
- package/services/settings/config.client.ts +6 -13
- package/services/settings/config.ts +8 -7
- package/services/settings/cron.client.ts +4 -7
- package/services/settings/cron.ts +7 -6
- package/services/settings/laws.client.ts +10 -25
- package/services/settings/laws.ts +30 -29
- package/services/settings/settings.client.ts +57 -103
- package/services/settings/settings.ts +237 -633
- package/services/settings/system.client.ts +103 -0
- package/services/settings/system.ts +718 -0
- package/services/stats/stats.client.ts +9 -8
- package/services/stats/stats.ts +27 -26
- package/services/sync/sync.client.ts +16 -15
- package/services/sync/sync.ts +174 -97
- package/services/sync/v2/sync.client.ts +331 -0
- package/services/sync/v2/sync.ts +1766 -0
- package/services/vehicles/vehicles.client.ts +17 -7
- package/services/vehicles/vehicles.ts +170 -25
- package/services/wiki/collab.client.ts +46 -0
- package/services/wiki/collab.ts +13 -0
- package/services/wiki/wiki.client.ts +28 -37
- package/services/wiki/wiki.ts +97 -67
- package/svcs.ts +174 -106
- package/resources/centrum/attributes.ts +0 -186
- package/resources/centrum/disponents.ts +0 -81
- package/resources/centrum/settings.ts +0 -307
- package/resources/documents/workflow.ts +0 -351
- package/resources/filestore/file.ts +0 -204
- package/resources/internet/access.ts +0 -358
- package/resources/internet/ads.ts +0 -257
- package/resources/internet/domain.ts +0 -328
- package/resources/internet/page.ts +0 -428
- package/resources/internet/search.ts +0 -128
- package/resources/livemap/tracker.ts +0 -81
- package/resources/sync/data.ts +0 -587
- package/resources/users/users.ts +0 -435
- package/services/internet/ads.client.ts +0 -41
- package/services/internet/ads.ts +0 -145
- package/services/internet/domain.client.ts +0 -109
- package/services/internet/domain.ts +0 -658
- package/services/internet/internet.client.ts +0 -58
- package/services/internet/internet.ts +0 -268
- package/services/notificator/notificator.client.ts +0 -76
- package/services/settings/filestore.client.ts +0 -75
|
@@ -0,0 +1,657 @@
|
|
|
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 "resources/centrum/settings/settings.proto" (package "resources.centrum.settings", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
6
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
7
|
+
import { WireType } 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 type { PartialMessage } from "@protobuf-ts/runtime";
|
|
12
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
13
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
14
|
+
import { CentrumAccessLevel } from "../access/access";
|
|
15
|
+
import { Duration } from "../../../google/protobuf/duration";
|
|
16
|
+
import { CentrumAccess } from "../access/access";
|
|
17
|
+
/**
|
|
18
|
+
* @generated from protobuf message resources.centrum.settings.Settings
|
|
19
|
+
*/
|
|
20
|
+
export interface Settings {
|
|
21
|
+
/**
|
|
22
|
+
* @generated from protobuf field: string job = 1
|
|
23
|
+
*/
|
|
24
|
+
job: string;
|
|
25
|
+
/**
|
|
26
|
+
* @generated from protobuf field: bool enabled = 2
|
|
27
|
+
*/
|
|
28
|
+
enabled: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* @generated from protobuf field: resources.centrum.settings.CentrumType type = 3
|
|
31
|
+
*/
|
|
32
|
+
type: CentrumType;
|
|
33
|
+
/**
|
|
34
|
+
* @generated from protobuf field: bool public = 9
|
|
35
|
+
*/
|
|
36
|
+
public: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* @generated from protobuf field: resources.centrum.settings.CentrumMode mode = 8
|
|
39
|
+
*/
|
|
40
|
+
mode: CentrumMode;
|
|
41
|
+
/**
|
|
42
|
+
* @generated from protobuf field: resources.centrum.settings.CentrumMode fallback_mode = 4
|
|
43
|
+
*/
|
|
44
|
+
fallbackMode: CentrumMode;
|
|
45
|
+
/**
|
|
46
|
+
* @generated from protobuf field: optional resources.centrum.settings.PredefinedStatus predefined_status = 5
|
|
47
|
+
*/
|
|
48
|
+
predefinedStatus?: PredefinedStatus;
|
|
49
|
+
/**
|
|
50
|
+
* @generated from protobuf field: resources.centrum.settings.Timings timings = 6
|
|
51
|
+
*/
|
|
52
|
+
timings?: Timings;
|
|
53
|
+
/**
|
|
54
|
+
* @generated from protobuf field: resources.centrum.settings.Configuration configuration = 10
|
|
55
|
+
*/
|
|
56
|
+
configuration?: Configuration;
|
|
57
|
+
/**
|
|
58
|
+
* @generated from protobuf field: optional resources.centrum.access.CentrumAccess access = 7
|
|
59
|
+
*/
|
|
60
|
+
access?: CentrumAccess;
|
|
61
|
+
/**
|
|
62
|
+
* @generated from protobuf field: optional resources.centrum.access.CentrumAccess offered_access = 12
|
|
63
|
+
*/
|
|
64
|
+
offeredAccess?: CentrumAccess;
|
|
65
|
+
/**
|
|
66
|
+
* @generated from protobuf field: optional resources.centrum.settings.EffectiveAccess effective_access = 11
|
|
67
|
+
*/
|
|
68
|
+
effectiveAccess?: EffectiveAccess;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* @generated from protobuf message resources.centrum.settings.PredefinedStatus
|
|
72
|
+
*/
|
|
73
|
+
export interface PredefinedStatus {
|
|
74
|
+
/**
|
|
75
|
+
* @generated from protobuf field: repeated string unit_status = 1
|
|
76
|
+
*/
|
|
77
|
+
unitStatus: string[];
|
|
78
|
+
/**
|
|
79
|
+
* @generated from protobuf field: repeated string dispatch_status = 2
|
|
80
|
+
*/
|
|
81
|
+
dispatchStatus: string[];
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* @generated from protobuf message resources.centrum.settings.Timings
|
|
85
|
+
*/
|
|
86
|
+
export interface Timings {
|
|
87
|
+
/**
|
|
88
|
+
* @generated from protobuf field: int64 dispatch_max_wait = 1
|
|
89
|
+
*/
|
|
90
|
+
dispatchMaxWait: number;
|
|
91
|
+
/**
|
|
92
|
+
* @generated from protobuf field: bool require_unit = 2
|
|
93
|
+
*/
|
|
94
|
+
requireUnit: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* @generated from protobuf field: int64 require_unit_reminder_seconds = 3
|
|
97
|
+
*/
|
|
98
|
+
requireUnitReminderSeconds: number;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* @generated from protobuf message resources.centrum.settings.Configuration
|
|
102
|
+
*/
|
|
103
|
+
export interface Configuration {
|
|
104
|
+
/**
|
|
105
|
+
* @generated from protobuf field: bool deduplication_enabled = 1
|
|
106
|
+
*/
|
|
107
|
+
deduplicationEnabled: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* @generated from protobuf field: int64 deduplication_radius = 2
|
|
110
|
+
*/
|
|
111
|
+
deduplicationRadius: number;
|
|
112
|
+
/**
|
|
113
|
+
* @generated from protobuf field: optional google.protobuf.Duration deduplication_duration = 3
|
|
114
|
+
*/
|
|
115
|
+
deduplicationDuration?: Duration;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* @generated from protobuf message resources.centrum.settings.EffectiveAccess
|
|
119
|
+
*/
|
|
120
|
+
export interface EffectiveAccess {
|
|
121
|
+
/**
|
|
122
|
+
* @generated from protobuf field: resources.centrum.settings.EffectiveDispatchAccess dispatches = 1
|
|
123
|
+
*/
|
|
124
|
+
dispatches?: EffectiveDispatchAccess;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* @generated from protobuf message resources.centrum.settings.EffectiveDispatchAccess
|
|
128
|
+
*/
|
|
129
|
+
export interface EffectiveDispatchAccess {
|
|
130
|
+
/**
|
|
131
|
+
* @generated from protobuf field: repeated resources.centrum.settings.JobAccessEntry jobs = 1
|
|
132
|
+
*/
|
|
133
|
+
jobs: JobAccessEntry[];
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* @generated from protobuf message resources.centrum.settings.JobAccessEntry
|
|
137
|
+
*/
|
|
138
|
+
export interface JobAccessEntry {
|
|
139
|
+
/**
|
|
140
|
+
* @generated from protobuf field: string job = 1
|
|
141
|
+
*/
|
|
142
|
+
job: string;
|
|
143
|
+
/**
|
|
144
|
+
* @generated from protobuf field: optional string job_label = 2
|
|
145
|
+
*/
|
|
146
|
+
jobLabel?: string;
|
|
147
|
+
/**
|
|
148
|
+
* @generated from protobuf field: resources.centrum.access.CentrumAccessLevel access = 3
|
|
149
|
+
*/
|
|
150
|
+
access: CentrumAccessLevel;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* @generated from protobuf enum resources.centrum.settings.CentrumType
|
|
154
|
+
*/
|
|
155
|
+
export enum CentrumType {
|
|
156
|
+
/**
|
|
157
|
+
* @generated from protobuf enum value: CENTRUM_TYPE_UNSPECIFIED = 0;
|
|
158
|
+
*/
|
|
159
|
+
UNSPECIFIED = 0,
|
|
160
|
+
/**
|
|
161
|
+
* @generated from protobuf enum value: CENTRUM_TYPE_DISPATCH = 1;
|
|
162
|
+
*/
|
|
163
|
+
DISPATCH = 1,
|
|
164
|
+
/**
|
|
165
|
+
* @generated from protobuf enum value: CENTRUM_TYPE_DELIVERY = 2;
|
|
166
|
+
*/
|
|
167
|
+
DELIVERY = 2
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* @generated from protobuf enum resources.centrum.settings.CentrumMode
|
|
171
|
+
*/
|
|
172
|
+
export enum CentrumMode {
|
|
173
|
+
/**
|
|
174
|
+
* @generated from protobuf enum value: CENTRUM_MODE_UNSPECIFIED = 0;
|
|
175
|
+
*/
|
|
176
|
+
UNSPECIFIED = 0,
|
|
177
|
+
/**
|
|
178
|
+
* @generated from protobuf enum value: CENTRUM_MODE_MANUAL = 1;
|
|
179
|
+
*/
|
|
180
|
+
MANUAL = 1,
|
|
181
|
+
/**
|
|
182
|
+
* @generated from protobuf enum value: CENTRUM_MODE_CENTRAL_COMMAND = 2;
|
|
183
|
+
*/
|
|
184
|
+
CENTRAL_COMMAND = 2,
|
|
185
|
+
/**
|
|
186
|
+
* @generated from protobuf enum value: CENTRUM_MODE_AUTO_ROUND_ROBIN = 3;
|
|
187
|
+
*/
|
|
188
|
+
AUTO_ROUND_ROBIN = 3,
|
|
189
|
+
/**
|
|
190
|
+
* @generated from protobuf enum value: CENTRUM_MODE_SIMPLIFIED = 4;
|
|
191
|
+
*/
|
|
192
|
+
SIMPLIFIED = 4
|
|
193
|
+
}
|
|
194
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
195
|
+
class Settings$Type extends MessageType<Settings> {
|
|
196
|
+
constructor() {
|
|
197
|
+
super("resources.centrum.settings.Settings", [
|
|
198
|
+
{ no: 1, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
|
|
199
|
+
{ no: 2, name: "enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
200
|
+
{ no: 3, name: "type", kind: "enum", T: () => ["resources.centrum.settings.CentrumType", CentrumType, "CENTRUM_TYPE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
|
|
201
|
+
{ no: 9, name: "public", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
202
|
+
{ no: 8, name: "mode", kind: "enum", T: () => ["resources.centrum.settings.CentrumMode", CentrumMode, "CENTRUM_MODE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
|
|
203
|
+
{ no: 4, name: "fallback_mode", kind: "enum", T: () => ["resources.centrum.settings.CentrumMode", CentrumMode, "CENTRUM_MODE_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } },
|
|
204
|
+
{ no: 5, name: "predefined_status", kind: "message", T: () => PredefinedStatus },
|
|
205
|
+
{ no: 6, name: "timings", kind: "message", T: () => Timings },
|
|
206
|
+
{ no: 10, name: "configuration", kind: "message", T: () => Configuration },
|
|
207
|
+
{ no: 7, name: "access", kind: "message", T: () => CentrumAccess },
|
|
208
|
+
{ no: 12, name: "offered_access", kind: "message", T: () => CentrumAccess },
|
|
209
|
+
{ no: 11, name: "effective_access", kind: "message", T: () => EffectiveAccess }
|
|
210
|
+
]);
|
|
211
|
+
}
|
|
212
|
+
create(value?: PartialMessage<Settings>): Settings {
|
|
213
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
214
|
+
message.job = "";
|
|
215
|
+
message.enabled = false;
|
|
216
|
+
message.type = 0;
|
|
217
|
+
message.public = false;
|
|
218
|
+
message.mode = 0;
|
|
219
|
+
message.fallbackMode = 0;
|
|
220
|
+
if (value !== undefined)
|
|
221
|
+
reflectionMergePartial<Settings>(this, message, value);
|
|
222
|
+
return message;
|
|
223
|
+
}
|
|
224
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Settings): Settings {
|
|
225
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
226
|
+
while (reader.pos < end) {
|
|
227
|
+
let [fieldNo, wireType] = reader.tag();
|
|
228
|
+
switch (fieldNo) {
|
|
229
|
+
case /* string job */ 1:
|
|
230
|
+
message.job = reader.string();
|
|
231
|
+
break;
|
|
232
|
+
case /* bool enabled */ 2:
|
|
233
|
+
message.enabled = reader.bool();
|
|
234
|
+
break;
|
|
235
|
+
case /* resources.centrum.settings.CentrumType type */ 3:
|
|
236
|
+
message.type = reader.int32();
|
|
237
|
+
break;
|
|
238
|
+
case /* bool public */ 9:
|
|
239
|
+
message.public = reader.bool();
|
|
240
|
+
break;
|
|
241
|
+
case /* resources.centrum.settings.CentrumMode mode */ 8:
|
|
242
|
+
message.mode = reader.int32();
|
|
243
|
+
break;
|
|
244
|
+
case /* resources.centrum.settings.CentrumMode fallback_mode */ 4:
|
|
245
|
+
message.fallbackMode = reader.int32();
|
|
246
|
+
break;
|
|
247
|
+
case /* optional resources.centrum.settings.PredefinedStatus predefined_status */ 5:
|
|
248
|
+
message.predefinedStatus = PredefinedStatus.internalBinaryRead(reader, reader.uint32(), options, message.predefinedStatus);
|
|
249
|
+
break;
|
|
250
|
+
case /* resources.centrum.settings.Timings timings */ 6:
|
|
251
|
+
message.timings = Timings.internalBinaryRead(reader, reader.uint32(), options, message.timings);
|
|
252
|
+
break;
|
|
253
|
+
case /* resources.centrum.settings.Configuration configuration */ 10:
|
|
254
|
+
message.configuration = Configuration.internalBinaryRead(reader, reader.uint32(), options, message.configuration);
|
|
255
|
+
break;
|
|
256
|
+
case /* optional resources.centrum.access.CentrumAccess access */ 7:
|
|
257
|
+
message.access = CentrumAccess.internalBinaryRead(reader, reader.uint32(), options, message.access);
|
|
258
|
+
break;
|
|
259
|
+
case /* optional resources.centrum.access.CentrumAccess offered_access */ 12:
|
|
260
|
+
message.offeredAccess = CentrumAccess.internalBinaryRead(reader, reader.uint32(), options, message.offeredAccess);
|
|
261
|
+
break;
|
|
262
|
+
case /* optional resources.centrum.settings.EffectiveAccess effective_access */ 11:
|
|
263
|
+
message.effectiveAccess = EffectiveAccess.internalBinaryRead(reader, reader.uint32(), options, message.effectiveAccess);
|
|
264
|
+
break;
|
|
265
|
+
default:
|
|
266
|
+
let u = options.readUnknownField;
|
|
267
|
+
if (u === "throw")
|
|
268
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
269
|
+
let d = reader.skip(wireType);
|
|
270
|
+
if (u !== false)
|
|
271
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
return message;
|
|
275
|
+
}
|
|
276
|
+
internalBinaryWrite(message: Settings, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
277
|
+
/* string job = 1; */
|
|
278
|
+
if (message.job !== "")
|
|
279
|
+
writer.tag(1, WireType.LengthDelimited).string(message.job);
|
|
280
|
+
/* bool enabled = 2; */
|
|
281
|
+
if (message.enabled !== false)
|
|
282
|
+
writer.tag(2, WireType.Varint).bool(message.enabled);
|
|
283
|
+
/* resources.centrum.settings.CentrumType type = 3; */
|
|
284
|
+
if (message.type !== 0)
|
|
285
|
+
writer.tag(3, WireType.Varint).int32(message.type);
|
|
286
|
+
/* resources.centrum.settings.CentrumMode fallback_mode = 4; */
|
|
287
|
+
if (message.fallbackMode !== 0)
|
|
288
|
+
writer.tag(4, WireType.Varint).int32(message.fallbackMode);
|
|
289
|
+
/* optional resources.centrum.settings.PredefinedStatus predefined_status = 5; */
|
|
290
|
+
if (message.predefinedStatus)
|
|
291
|
+
PredefinedStatus.internalBinaryWrite(message.predefinedStatus, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
292
|
+
/* resources.centrum.settings.Timings timings = 6; */
|
|
293
|
+
if (message.timings)
|
|
294
|
+
Timings.internalBinaryWrite(message.timings, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
295
|
+
/* optional resources.centrum.access.CentrumAccess access = 7; */
|
|
296
|
+
if (message.access)
|
|
297
|
+
CentrumAccess.internalBinaryWrite(message.access, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
298
|
+
/* resources.centrum.settings.CentrumMode mode = 8; */
|
|
299
|
+
if (message.mode !== 0)
|
|
300
|
+
writer.tag(8, WireType.Varint).int32(message.mode);
|
|
301
|
+
/* bool public = 9; */
|
|
302
|
+
if (message.public !== false)
|
|
303
|
+
writer.tag(9, WireType.Varint).bool(message.public);
|
|
304
|
+
/* resources.centrum.settings.Configuration configuration = 10; */
|
|
305
|
+
if (message.configuration)
|
|
306
|
+
Configuration.internalBinaryWrite(message.configuration, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
307
|
+
/* optional resources.centrum.settings.EffectiveAccess effective_access = 11; */
|
|
308
|
+
if (message.effectiveAccess)
|
|
309
|
+
EffectiveAccess.internalBinaryWrite(message.effectiveAccess, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
310
|
+
/* optional resources.centrum.access.CentrumAccess offered_access = 12; */
|
|
311
|
+
if (message.offeredAccess)
|
|
312
|
+
CentrumAccess.internalBinaryWrite(message.offeredAccess, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
|
313
|
+
let u = options.writeUnknownFields;
|
|
314
|
+
if (u !== false)
|
|
315
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
316
|
+
return writer;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* @generated MessageType for protobuf message resources.centrum.settings.Settings
|
|
321
|
+
*/
|
|
322
|
+
export const Settings = new Settings$Type();
|
|
323
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
324
|
+
class PredefinedStatus$Type extends MessageType<PredefinedStatus> {
|
|
325
|
+
constructor() {
|
|
326
|
+
super("resources.centrum.settings.PredefinedStatus", [
|
|
327
|
+
{ no: 1, name: "unit_status", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { repeated: { maxItems: "20", items: { string: { maxLen: "64" } } } }, "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } },
|
|
328
|
+
{ no: 2, name: "dispatch_status", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { repeated: { maxItems: "20", items: { string: { maxLen: "64" } } } }, "codegen.sanitizer.sanitizer": { enabled: true, stripHtmlTags: true } } }
|
|
329
|
+
], { "codegen.dbscanner.dbscanner": { enabled: true } });
|
|
330
|
+
}
|
|
331
|
+
create(value?: PartialMessage<PredefinedStatus>): PredefinedStatus {
|
|
332
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
333
|
+
message.unitStatus = [];
|
|
334
|
+
message.dispatchStatus = [];
|
|
335
|
+
if (value !== undefined)
|
|
336
|
+
reflectionMergePartial<PredefinedStatus>(this, message, value);
|
|
337
|
+
return message;
|
|
338
|
+
}
|
|
339
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PredefinedStatus): PredefinedStatus {
|
|
340
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
341
|
+
while (reader.pos < end) {
|
|
342
|
+
let [fieldNo, wireType] = reader.tag();
|
|
343
|
+
switch (fieldNo) {
|
|
344
|
+
case /* repeated string unit_status */ 1:
|
|
345
|
+
message.unitStatus.push(reader.string());
|
|
346
|
+
break;
|
|
347
|
+
case /* repeated string dispatch_status */ 2:
|
|
348
|
+
message.dispatchStatus.push(reader.string());
|
|
349
|
+
break;
|
|
350
|
+
default:
|
|
351
|
+
let u = options.readUnknownField;
|
|
352
|
+
if (u === "throw")
|
|
353
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
354
|
+
let d = reader.skip(wireType);
|
|
355
|
+
if (u !== false)
|
|
356
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
return message;
|
|
360
|
+
}
|
|
361
|
+
internalBinaryWrite(message: PredefinedStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
362
|
+
/* repeated string unit_status = 1; */
|
|
363
|
+
for (let i = 0; i < message.unitStatus.length; i++)
|
|
364
|
+
writer.tag(1, WireType.LengthDelimited).string(message.unitStatus[i]);
|
|
365
|
+
/* repeated string dispatch_status = 2; */
|
|
366
|
+
for (let i = 0; i < message.dispatchStatus.length; i++)
|
|
367
|
+
writer.tag(2, WireType.LengthDelimited).string(message.dispatchStatus[i]);
|
|
368
|
+
let u = options.writeUnknownFields;
|
|
369
|
+
if (u !== false)
|
|
370
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
371
|
+
return writer;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* @generated MessageType for protobuf message resources.centrum.settings.PredefinedStatus
|
|
376
|
+
*/
|
|
377
|
+
export const PredefinedStatus = new PredefinedStatus$Type();
|
|
378
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
379
|
+
class Timings$Type extends MessageType<Timings> {
|
|
380
|
+
constructor() {
|
|
381
|
+
super("resources.centrum.settings.Timings", [
|
|
382
|
+
{ no: 1, name: "dispatch_max_wait", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { int64: { lt: "6000", gt: "30" } } } },
|
|
383
|
+
{ no: 2, name: "require_unit", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
384
|
+
{ no: 3, name: "require_unit_reminder_seconds", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { int64: { lt: "6000", gt: "30" } } } }
|
|
385
|
+
], { "codegen.dbscanner.dbscanner": { enabled: true } });
|
|
386
|
+
}
|
|
387
|
+
create(value?: PartialMessage<Timings>): Timings {
|
|
388
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
389
|
+
message.dispatchMaxWait = 0;
|
|
390
|
+
message.requireUnit = false;
|
|
391
|
+
message.requireUnitReminderSeconds = 0;
|
|
392
|
+
if (value !== undefined)
|
|
393
|
+
reflectionMergePartial<Timings>(this, message, value);
|
|
394
|
+
return message;
|
|
395
|
+
}
|
|
396
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Timings): Timings {
|
|
397
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
398
|
+
while (reader.pos < end) {
|
|
399
|
+
let [fieldNo, wireType] = reader.tag();
|
|
400
|
+
switch (fieldNo) {
|
|
401
|
+
case /* int64 dispatch_max_wait */ 1:
|
|
402
|
+
message.dispatchMaxWait = reader.int64().toNumber();
|
|
403
|
+
break;
|
|
404
|
+
case /* bool require_unit */ 2:
|
|
405
|
+
message.requireUnit = reader.bool();
|
|
406
|
+
break;
|
|
407
|
+
case /* int64 require_unit_reminder_seconds */ 3:
|
|
408
|
+
message.requireUnitReminderSeconds = reader.int64().toNumber();
|
|
409
|
+
break;
|
|
410
|
+
default:
|
|
411
|
+
let u = options.readUnknownField;
|
|
412
|
+
if (u === "throw")
|
|
413
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
414
|
+
let d = reader.skip(wireType);
|
|
415
|
+
if (u !== false)
|
|
416
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
return message;
|
|
420
|
+
}
|
|
421
|
+
internalBinaryWrite(message: Timings, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
422
|
+
/* int64 dispatch_max_wait = 1; */
|
|
423
|
+
if (message.dispatchMaxWait !== 0)
|
|
424
|
+
writer.tag(1, WireType.Varint).int64(message.dispatchMaxWait);
|
|
425
|
+
/* bool require_unit = 2; */
|
|
426
|
+
if (message.requireUnit !== false)
|
|
427
|
+
writer.tag(2, WireType.Varint).bool(message.requireUnit);
|
|
428
|
+
/* int64 require_unit_reminder_seconds = 3; */
|
|
429
|
+
if (message.requireUnitReminderSeconds !== 0)
|
|
430
|
+
writer.tag(3, WireType.Varint).int64(message.requireUnitReminderSeconds);
|
|
431
|
+
let u = options.writeUnknownFields;
|
|
432
|
+
if (u !== false)
|
|
433
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
434
|
+
return writer;
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* @generated MessageType for protobuf message resources.centrum.settings.Timings
|
|
439
|
+
*/
|
|
440
|
+
export const Timings = new Timings$Type();
|
|
441
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
442
|
+
class Configuration$Type extends MessageType<Configuration> {
|
|
443
|
+
constructor() {
|
|
444
|
+
super("resources.centrum.settings.Configuration", [
|
|
445
|
+
{ no: 1, name: "deduplication_enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
446
|
+
{ no: 2, name: "deduplication_radius", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { int64: { lt: "1000000", gt: "5" } } } },
|
|
447
|
+
{ no: 3, name: "deduplication_duration", kind: "message", T: () => Duration }
|
|
448
|
+
], { "codegen.dbscanner.dbscanner": { enabled: true } });
|
|
449
|
+
}
|
|
450
|
+
create(value?: PartialMessage<Configuration>): Configuration {
|
|
451
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
452
|
+
message.deduplicationEnabled = false;
|
|
453
|
+
message.deduplicationRadius = 0;
|
|
454
|
+
if (value !== undefined)
|
|
455
|
+
reflectionMergePartial<Configuration>(this, message, value);
|
|
456
|
+
return message;
|
|
457
|
+
}
|
|
458
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Configuration): Configuration {
|
|
459
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
460
|
+
while (reader.pos < end) {
|
|
461
|
+
let [fieldNo, wireType] = reader.tag();
|
|
462
|
+
switch (fieldNo) {
|
|
463
|
+
case /* bool deduplication_enabled */ 1:
|
|
464
|
+
message.deduplicationEnabled = reader.bool();
|
|
465
|
+
break;
|
|
466
|
+
case /* int64 deduplication_radius */ 2:
|
|
467
|
+
message.deduplicationRadius = reader.int64().toNumber();
|
|
468
|
+
break;
|
|
469
|
+
case /* optional google.protobuf.Duration deduplication_duration */ 3:
|
|
470
|
+
message.deduplicationDuration = Duration.internalBinaryRead(reader, reader.uint32(), options, message.deduplicationDuration);
|
|
471
|
+
break;
|
|
472
|
+
default:
|
|
473
|
+
let u = options.readUnknownField;
|
|
474
|
+
if (u === "throw")
|
|
475
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
476
|
+
let d = reader.skip(wireType);
|
|
477
|
+
if (u !== false)
|
|
478
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
return message;
|
|
482
|
+
}
|
|
483
|
+
internalBinaryWrite(message: Configuration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
484
|
+
/* bool deduplication_enabled = 1; */
|
|
485
|
+
if (message.deduplicationEnabled !== false)
|
|
486
|
+
writer.tag(1, WireType.Varint).bool(message.deduplicationEnabled);
|
|
487
|
+
/* int64 deduplication_radius = 2; */
|
|
488
|
+
if (message.deduplicationRadius !== 0)
|
|
489
|
+
writer.tag(2, WireType.Varint).int64(message.deduplicationRadius);
|
|
490
|
+
/* optional google.protobuf.Duration deduplication_duration = 3; */
|
|
491
|
+
if (message.deduplicationDuration)
|
|
492
|
+
Duration.internalBinaryWrite(message.deduplicationDuration, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
493
|
+
let u = options.writeUnknownFields;
|
|
494
|
+
if (u !== false)
|
|
495
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
496
|
+
return writer;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
/**
|
|
500
|
+
* @generated MessageType for protobuf message resources.centrum.settings.Configuration
|
|
501
|
+
*/
|
|
502
|
+
export const Configuration = new Configuration$Type();
|
|
503
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
504
|
+
class EffectiveAccess$Type extends MessageType<EffectiveAccess> {
|
|
505
|
+
constructor() {
|
|
506
|
+
super("resources.centrum.settings.EffectiveAccess", [
|
|
507
|
+
{ no: 1, name: "dispatches", kind: "message", T: () => EffectiveDispatchAccess }
|
|
508
|
+
]);
|
|
509
|
+
}
|
|
510
|
+
create(value?: PartialMessage<EffectiveAccess>): EffectiveAccess {
|
|
511
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
512
|
+
if (value !== undefined)
|
|
513
|
+
reflectionMergePartial<EffectiveAccess>(this, message, value);
|
|
514
|
+
return message;
|
|
515
|
+
}
|
|
516
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EffectiveAccess): EffectiveAccess {
|
|
517
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
518
|
+
while (reader.pos < end) {
|
|
519
|
+
let [fieldNo, wireType] = reader.tag();
|
|
520
|
+
switch (fieldNo) {
|
|
521
|
+
case /* resources.centrum.settings.EffectiveDispatchAccess dispatches */ 1:
|
|
522
|
+
message.dispatches = EffectiveDispatchAccess.internalBinaryRead(reader, reader.uint32(), options, message.dispatches);
|
|
523
|
+
break;
|
|
524
|
+
default:
|
|
525
|
+
let u = options.readUnknownField;
|
|
526
|
+
if (u === "throw")
|
|
527
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
528
|
+
let d = reader.skip(wireType);
|
|
529
|
+
if (u !== false)
|
|
530
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
return message;
|
|
534
|
+
}
|
|
535
|
+
internalBinaryWrite(message: EffectiveAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
536
|
+
/* resources.centrum.settings.EffectiveDispatchAccess dispatches = 1; */
|
|
537
|
+
if (message.dispatches)
|
|
538
|
+
EffectiveDispatchAccess.internalBinaryWrite(message.dispatches, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
539
|
+
let u = options.writeUnknownFields;
|
|
540
|
+
if (u !== false)
|
|
541
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
542
|
+
return writer;
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
/**
|
|
546
|
+
* @generated MessageType for protobuf message resources.centrum.settings.EffectiveAccess
|
|
547
|
+
*/
|
|
548
|
+
export const EffectiveAccess = new EffectiveAccess$Type();
|
|
549
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
550
|
+
class EffectiveDispatchAccess$Type extends MessageType<EffectiveDispatchAccess> {
|
|
551
|
+
constructor() {
|
|
552
|
+
super("resources.centrum.settings.EffectiveDispatchAccess", [
|
|
553
|
+
{ no: 1, name: "jobs", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => JobAccessEntry, options: { "tagger.tags": "alias:\"job_access\"" } }
|
|
554
|
+
]);
|
|
555
|
+
}
|
|
556
|
+
create(value?: PartialMessage<EffectiveDispatchAccess>): EffectiveDispatchAccess {
|
|
557
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
558
|
+
message.jobs = [];
|
|
559
|
+
if (value !== undefined)
|
|
560
|
+
reflectionMergePartial<EffectiveDispatchAccess>(this, message, value);
|
|
561
|
+
return message;
|
|
562
|
+
}
|
|
563
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EffectiveDispatchAccess): EffectiveDispatchAccess {
|
|
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 /* repeated resources.centrum.settings.JobAccessEntry jobs */ 1:
|
|
569
|
+
message.jobs.push(JobAccessEntry.internalBinaryRead(reader, reader.uint32(), options));
|
|
570
|
+
break;
|
|
571
|
+
default:
|
|
572
|
+
let u = options.readUnknownField;
|
|
573
|
+
if (u === "throw")
|
|
574
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
575
|
+
let d = reader.skip(wireType);
|
|
576
|
+
if (u !== false)
|
|
577
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
return message;
|
|
581
|
+
}
|
|
582
|
+
internalBinaryWrite(message: EffectiveDispatchAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
583
|
+
/* repeated resources.centrum.settings.JobAccessEntry jobs = 1; */
|
|
584
|
+
for (let i = 0; i < message.jobs.length; i++)
|
|
585
|
+
JobAccessEntry.internalBinaryWrite(message.jobs[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
586
|
+
let u = options.writeUnknownFields;
|
|
587
|
+
if (u !== false)
|
|
588
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
589
|
+
return writer;
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
/**
|
|
593
|
+
* @generated MessageType for protobuf message resources.centrum.settings.EffectiveDispatchAccess
|
|
594
|
+
*/
|
|
595
|
+
export const EffectiveDispatchAccess = new EffectiveDispatchAccess$Type();
|
|
596
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
597
|
+
class JobAccessEntry$Type extends MessageType<JobAccessEntry> {
|
|
598
|
+
constructor() {
|
|
599
|
+
super("resources.centrum.settings.JobAccessEntry", [
|
|
600
|
+
{ no: 1, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "20" } } } },
|
|
601
|
+
{ no: 2, name: "job_label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
602
|
+
{ no: 3, name: "access", kind: "enum", T: () => ["resources.centrum.access.CentrumAccessLevel", CentrumAccessLevel, "CENTRUM_ACCESS_LEVEL_"], options: { "buf.validate.field": { enum: { definedOnly: true } } } }
|
|
603
|
+
]);
|
|
604
|
+
}
|
|
605
|
+
create(value?: PartialMessage<JobAccessEntry>): JobAccessEntry {
|
|
606
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
607
|
+
message.job = "";
|
|
608
|
+
message.access = 0;
|
|
609
|
+
if (value !== undefined)
|
|
610
|
+
reflectionMergePartial<JobAccessEntry>(this, message, value);
|
|
611
|
+
return message;
|
|
612
|
+
}
|
|
613
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: JobAccessEntry): JobAccessEntry {
|
|
614
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
615
|
+
while (reader.pos < end) {
|
|
616
|
+
let [fieldNo, wireType] = reader.tag();
|
|
617
|
+
switch (fieldNo) {
|
|
618
|
+
case /* string job */ 1:
|
|
619
|
+
message.job = reader.string();
|
|
620
|
+
break;
|
|
621
|
+
case /* optional string job_label */ 2:
|
|
622
|
+
message.jobLabel = reader.string();
|
|
623
|
+
break;
|
|
624
|
+
case /* resources.centrum.access.CentrumAccessLevel access */ 3:
|
|
625
|
+
message.access = reader.int32();
|
|
626
|
+
break;
|
|
627
|
+
default:
|
|
628
|
+
let u = options.readUnknownField;
|
|
629
|
+
if (u === "throw")
|
|
630
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
631
|
+
let d = reader.skip(wireType);
|
|
632
|
+
if (u !== false)
|
|
633
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
return message;
|
|
637
|
+
}
|
|
638
|
+
internalBinaryWrite(message: JobAccessEntry, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
639
|
+
/* string job = 1; */
|
|
640
|
+
if (message.job !== "")
|
|
641
|
+
writer.tag(1, WireType.LengthDelimited).string(message.job);
|
|
642
|
+
/* optional string job_label = 2; */
|
|
643
|
+
if (message.jobLabel !== undefined)
|
|
644
|
+
writer.tag(2, WireType.LengthDelimited).string(message.jobLabel);
|
|
645
|
+
/* resources.centrum.access.CentrumAccessLevel access = 3; */
|
|
646
|
+
if (message.access !== 0)
|
|
647
|
+
writer.tag(3, WireType.Varint).int32(message.access);
|
|
648
|
+
let u = options.writeUnknownFields;
|
|
649
|
+
if (u !== false)
|
|
650
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
651
|
+
return writer;
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
/**
|
|
655
|
+
* @generated MessageType for protobuf message resources.centrum.settings.JobAccessEntry
|
|
656
|
+
*/
|
|
657
|
+
export const JobAccessEntry = new JobAccessEntry$Type();
|