@fivenet-app/gen 2026.8.5 → 2026.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/clients.ts +12 -0
- package/codegen/perms/perms.ts +331 -2
- package/google/protobuf/any.ts +47 -103
- package/google/protobuf/descriptor.ts +39 -32
- package/google/protobuf/struct.ts +33 -22
- package/google/protobuf/timestamp.ts +9 -8
- package/package.json +2 -2
- package/perms.ts +41 -13
- package/resources/centrum/dispatches/dispatches.ts +206 -13
- package/resources/centrum/units/units.ts +207 -0
- package/resources/cron/cron.ts +44 -3
- package/resources/documents/templates/templates.ts +3 -3
- package/resources/file/file.ts +3 -3
- package/resources/file/filestore.ts +26 -10
- package/resources/jobs/colleagues/activity/activity.ts +50 -8
- package/resources/jobs/colleagues/colleagues.ts +14 -1
- package/resources/jobs/groups/short/group_member_short.ts +129 -0
- package/resources/jobs/job_asset.ts +116 -0
- package/resources/jobs/user_selector.ts +1 -15
- package/resources/notifications/clientview/clientview.ts +5 -1
- package/resources/notifications/events/events.ts +35 -1
- package/resources/notifications/notifications.ts +322 -2
- package/resources/permissions/attributes/attributes.ts +164 -2
- package/resources/permissions/authorization/authorization.ts +86 -0
- package/resources/permissions/permissions/permissions.ts +16 -1
- package/resources/properties/properties.ts +1648 -0
- package/resources/qualifications/activity/activity.ts +328 -0
- package/resources/qualifications/exam/exam.ts +108 -4
- package/resources/qualifications/qualifications.ts +36 -2
- package/resources/settings/config.ts +3 -3
- package/resources/sync/activity/activity.ts +4 -4
- package/resources/sync/data/data.ts +16 -4
- package/resources/users/activity/activity.ts +220 -3
- package/resources/users/props/props.ts +13 -1
- package/resources/users/user.ts +13 -1
- package/resources/vehicles/activity/activity.ts +222 -3
- package/resources/vehicles/props/props.ts +13 -1
- package/resources/vehicles/vehicles.ts +13 -1
- package/services/auth/auth.ts +61 -67
- package/services/centrum/centrum.ts +103 -1
- package/services/centrum/dispatches.ts +25 -1
- package/services/centrum/units.ts +25 -1
- package/services/citizens/citizens.client.ts +49 -0
- package/services/citizens/citizens.ts +384 -7
- package/services/documents/documents.ts +1 -0
- package/services/documents/templates.ts +12 -1
- package/services/jobs/colleagues.ts +26 -1
- package/services/jobs/conduct.ts +1 -0
- package/services/jobs/groups.ts +62 -4
- package/services/notifications/notifications.client.ts +40 -1
- package/services/notifications/notifications.ts +483 -3
- package/services/qualifications/qualifications.client.ts +20 -7
- package/services/qualifications/qualifications.ts +265 -4
- package/services/settings/job_assets.client.ts +105 -0
- package/services/settings/job_assets.ts +373 -0
- package/services/settings/properties.client.ts +194 -0
- package/services/settings/properties.ts +1555 -0
- package/services/settings/system.ts +29 -9
- package/services/sync/sync.ts +115 -12
- package/services/vehicles/vehicles.client.ts +52 -0
- package/services/vehicles/vehicles.ts +385 -7
- package/svcs.ts +58 -0
|
@@ -0,0 +1,1555 @@
|
|
|
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/settings/properties.proto" (package "services.settings", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
6
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
7
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
8
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
9
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
10
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
11
|
+
import { UnknownFieldHandler } 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 { PropertyGroup } from "../../resources/properties/properties";
|
|
16
|
+
import { PropertyDefinition } from "../../resources/properties/properties";
|
|
17
|
+
import { PropertyScope } from "../../resources/properties/properties";
|
|
18
|
+
/**
|
|
19
|
+
* @generated from protobuf message services.settings.ListPropertyScopesRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface ListPropertyScopesRequest {
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @generated from protobuf message services.settings.ListPropertyScopesResponse
|
|
25
|
+
*/
|
|
26
|
+
export interface ListPropertyScopesResponse {
|
|
27
|
+
/**
|
|
28
|
+
* @generated from protobuf field: repeated resources.properties.PropertyScope scopes = 1
|
|
29
|
+
*/
|
|
30
|
+
scopes: PropertyScope[];
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @generated from protobuf message services.settings.ListPropertyDefinitionsRequest
|
|
34
|
+
*/
|
|
35
|
+
export interface ListPropertyDefinitionsRequest {
|
|
36
|
+
/**
|
|
37
|
+
* @generated from protobuf field: resources.properties.PropertyScope scope = 1
|
|
38
|
+
*/
|
|
39
|
+
scope: PropertyScope;
|
|
40
|
+
/**
|
|
41
|
+
* @generated from protobuf field: bool include_deleted = 2
|
|
42
|
+
*/
|
|
43
|
+
includeDeleted: boolean;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* @generated from protobuf message services.settings.ListPropertyDefinitionsResponse
|
|
47
|
+
*/
|
|
48
|
+
export interface ListPropertyDefinitionsResponse {
|
|
49
|
+
/**
|
|
50
|
+
* @generated from protobuf field: repeated resources.properties.PropertyDefinition definitions = 1
|
|
51
|
+
*/
|
|
52
|
+
definitions: PropertyDefinition[];
|
|
53
|
+
/**
|
|
54
|
+
* @generated from protobuf field: repeated resources.properties.PropertyGroup groups = 2
|
|
55
|
+
*/
|
|
56
|
+
groups: PropertyGroup[];
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @generated from protobuf message services.settings.CreatePropertyGroupRequest
|
|
60
|
+
*/
|
|
61
|
+
export interface CreatePropertyGroupRequest {
|
|
62
|
+
/**
|
|
63
|
+
* @generated from protobuf field: resources.properties.PropertyGroup group = 1
|
|
64
|
+
*/
|
|
65
|
+
group?: PropertyGroup;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @generated from protobuf message services.settings.CreatePropertyGroupResponse
|
|
69
|
+
*/
|
|
70
|
+
export interface CreatePropertyGroupResponse {
|
|
71
|
+
/**
|
|
72
|
+
* @generated from protobuf field: resources.properties.PropertyGroup group = 1
|
|
73
|
+
*/
|
|
74
|
+
group?: PropertyGroup;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* @generated from protobuf message services.settings.UpdatePropertyGroupRequest
|
|
78
|
+
*/
|
|
79
|
+
export interface UpdatePropertyGroupRequest {
|
|
80
|
+
/**
|
|
81
|
+
* @generated from protobuf field: resources.properties.PropertyGroup group = 1
|
|
82
|
+
*/
|
|
83
|
+
group?: PropertyGroup;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* @generated from protobuf message services.settings.UpdatePropertyGroupResponse
|
|
87
|
+
*/
|
|
88
|
+
export interface UpdatePropertyGroupResponse {
|
|
89
|
+
/**
|
|
90
|
+
* @generated from protobuf field: resources.properties.PropertyGroup group = 1
|
|
91
|
+
*/
|
|
92
|
+
group?: PropertyGroup;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* @generated from protobuf message services.settings.DeletePropertyGroupRequest
|
|
96
|
+
*/
|
|
97
|
+
export interface DeletePropertyGroupRequest {
|
|
98
|
+
/**
|
|
99
|
+
* @generated from protobuf field: resources.properties.PropertyScope scope = 1
|
|
100
|
+
*/
|
|
101
|
+
scope: PropertyScope;
|
|
102
|
+
/**
|
|
103
|
+
* @generated from protobuf field: string key = 2
|
|
104
|
+
*/
|
|
105
|
+
key: string;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* @generated from protobuf message services.settings.DeletePropertyGroupResponse
|
|
109
|
+
*/
|
|
110
|
+
export interface DeletePropertyGroupResponse {
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* @generated from protobuf message services.settings.RestorePropertyGroupRequest
|
|
114
|
+
*/
|
|
115
|
+
export interface RestorePropertyGroupRequest {
|
|
116
|
+
/**
|
|
117
|
+
* @generated from protobuf field: resources.properties.PropertyScope scope = 1
|
|
118
|
+
*/
|
|
119
|
+
scope: PropertyScope;
|
|
120
|
+
/**
|
|
121
|
+
* @generated from protobuf field: string key = 2
|
|
122
|
+
*/
|
|
123
|
+
key: string;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* @generated from protobuf message services.settings.RestorePropertyGroupResponse
|
|
127
|
+
*/
|
|
128
|
+
export interface RestorePropertyGroupResponse {
|
|
129
|
+
/**
|
|
130
|
+
* @generated from protobuf field: resources.properties.PropertyGroup group = 1
|
|
131
|
+
*/
|
|
132
|
+
group?: PropertyGroup;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* @generated from protobuf message services.settings.ReorderPropertyGroupsRequest
|
|
136
|
+
*/
|
|
137
|
+
export interface ReorderPropertyGroupsRequest {
|
|
138
|
+
/**
|
|
139
|
+
* @generated from protobuf field: resources.properties.PropertyScope scope = 1
|
|
140
|
+
*/
|
|
141
|
+
scope: PropertyScope;
|
|
142
|
+
/**
|
|
143
|
+
* @generated from protobuf field: repeated string group_keys = 2
|
|
144
|
+
*/
|
|
145
|
+
groupKeys: string[];
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* @generated from protobuf message services.settings.ReorderPropertyGroupsResponse
|
|
149
|
+
*/
|
|
150
|
+
export interface ReorderPropertyGroupsResponse {
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* @generated from protobuf message services.settings.ReorderPropertyDefinitionsRequest
|
|
154
|
+
*/
|
|
155
|
+
export interface ReorderPropertyDefinitionsRequest {
|
|
156
|
+
/**
|
|
157
|
+
* @generated from protobuf field: resources.properties.PropertyScope scope = 1
|
|
158
|
+
*/
|
|
159
|
+
scope: PropertyScope;
|
|
160
|
+
/**
|
|
161
|
+
* @generated from protobuf field: string group_key = 2
|
|
162
|
+
*/
|
|
163
|
+
groupKey: string;
|
|
164
|
+
/**
|
|
165
|
+
* @generated from protobuf field: repeated string property_keys = 3
|
|
166
|
+
*/
|
|
167
|
+
propertyKeys: string[];
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* @generated from protobuf message services.settings.ReorderPropertyDefinitionsResponse
|
|
171
|
+
*/
|
|
172
|
+
export interface ReorderPropertyDefinitionsResponse {
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* @generated from protobuf message services.settings.CreatePropertyDefinitionRequest
|
|
176
|
+
*/
|
|
177
|
+
export interface CreatePropertyDefinitionRequest {
|
|
178
|
+
/**
|
|
179
|
+
* @generated from protobuf field: resources.properties.PropertyDefinition definition = 1
|
|
180
|
+
*/
|
|
181
|
+
definition?: PropertyDefinition;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* @generated from protobuf message services.settings.CreatePropertyDefinitionResponse
|
|
185
|
+
*/
|
|
186
|
+
export interface CreatePropertyDefinitionResponse {
|
|
187
|
+
/**
|
|
188
|
+
* @generated from protobuf field: resources.properties.PropertyDefinition definition = 1
|
|
189
|
+
*/
|
|
190
|
+
definition?: PropertyDefinition;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* @generated from protobuf message services.settings.UpdatePropertyDefinitionRequest
|
|
194
|
+
*/
|
|
195
|
+
export interface UpdatePropertyDefinitionRequest {
|
|
196
|
+
/**
|
|
197
|
+
* @generated from protobuf field: resources.properties.PropertyDefinition definition = 1
|
|
198
|
+
*/
|
|
199
|
+
definition?: PropertyDefinition;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* @generated from protobuf message services.settings.UpdatePropertyDefinitionResponse
|
|
203
|
+
*/
|
|
204
|
+
export interface UpdatePropertyDefinitionResponse {
|
|
205
|
+
/**
|
|
206
|
+
* @generated from protobuf field: resources.properties.PropertyDefinition definition = 1
|
|
207
|
+
*/
|
|
208
|
+
definition?: PropertyDefinition;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* @generated from protobuf message services.settings.DeletePropertyDefinitionRequest
|
|
212
|
+
*/
|
|
213
|
+
export interface DeletePropertyDefinitionRequest {
|
|
214
|
+
/**
|
|
215
|
+
* @generated from protobuf field: resources.properties.PropertyScope scope = 1
|
|
216
|
+
*/
|
|
217
|
+
scope: PropertyScope;
|
|
218
|
+
/**
|
|
219
|
+
* @generated from protobuf field: string key = 2
|
|
220
|
+
*/
|
|
221
|
+
key: string;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* @generated from protobuf message services.settings.DeletePropertyDefinitionResponse
|
|
225
|
+
*/
|
|
226
|
+
export interface DeletePropertyDefinitionResponse {
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* @generated from protobuf message services.settings.RestorePropertyDefinitionRequest
|
|
230
|
+
*/
|
|
231
|
+
export interface RestorePropertyDefinitionRequest {
|
|
232
|
+
/**
|
|
233
|
+
* @generated from protobuf field: resources.properties.PropertyScope scope = 1
|
|
234
|
+
*/
|
|
235
|
+
scope: PropertyScope;
|
|
236
|
+
/**
|
|
237
|
+
* @generated from protobuf field: string key = 2
|
|
238
|
+
*/
|
|
239
|
+
key: string;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* @generated from protobuf message services.settings.RestorePropertyDefinitionResponse
|
|
243
|
+
*/
|
|
244
|
+
export interface RestorePropertyDefinitionResponse {
|
|
245
|
+
/**
|
|
246
|
+
* @generated from protobuf field: resources.properties.PropertyDefinition definition = 1
|
|
247
|
+
*/
|
|
248
|
+
definition?: PropertyDefinition;
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* @generated from protobuf message services.settings.SetSystemPropertyEnabledRequest
|
|
252
|
+
*/
|
|
253
|
+
export interface SetSystemPropertyEnabledRequest {
|
|
254
|
+
/**
|
|
255
|
+
* @generated from protobuf field: resources.properties.PropertyScope scope = 1
|
|
256
|
+
*/
|
|
257
|
+
scope: PropertyScope;
|
|
258
|
+
/**
|
|
259
|
+
* @generated from protobuf field: string key = 2
|
|
260
|
+
*/
|
|
261
|
+
key: string;
|
|
262
|
+
/**
|
|
263
|
+
* @generated from protobuf field: bool enabled = 3
|
|
264
|
+
*/
|
|
265
|
+
enabled: boolean;
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* @generated from protobuf message services.settings.SetSystemPropertyEnabledResponse
|
|
269
|
+
*/
|
|
270
|
+
export interface SetSystemPropertyEnabledResponse {
|
|
271
|
+
/**
|
|
272
|
+
* @generated from protobuf field: resources.properties.PropertyDefinition definition = 1
|
|
273
|
+
*/
|
|
274
|
+
definition?: PropertyDefinition;
|
|
275
|
+
}
|
|
276
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
277
|
+
class ListPropertyScopesRequest$Type extends MessageType<ListPropertyScopesRequest> {
|
|
278
|
+
constructor() {
|
|
279
|
+
super("services.settings.ListPropertyScopesRequest", []);
|
|
280
|
+
}
|
|
281
|
+
create(value?: PartialMessage<ListPropertyScopesRequest>): ListPropertyScopesRequest {
|
|
282
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
283
|
+
if (value !== undefined)
|
|
284
|
+
reflectionMergePartial<ListPropertyScopesRequest>(this, message, value);
|
|
285
|
+
return message;
|
|
286
|
+
}
|
|
287
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListPropertyScopesRequest): ListPropertyScopesRequest {
|
|
288
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
289
|
+
while (reader.pos < end) {
|
|
290
|
+
let [fieldNo, wireType] = reader.tag();
|
|
291
|
+
switch (fieldNo) {
|
|
292
|
+
default:
|
|
293
|
+
let u = options.readUnknownField;
|
|
294
|
+
if (u === "throw")
|
|
295
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
296
|
+
let d = reader.skip(wireType);
|
|
297
|
+
if (u !== false)
|
|
298
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
return message;
|
|
302
|
+
}
|
|
303
|
+
internalBinaryWrite(message: ListPropertyScopesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
304
|
+
let u = options.writeUnknownFields;
|
|
305
|
+
if (u !== false)
|
|
306
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
307
|
+
return writer;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* @generated MessageType for protobuf message services.settings.ListPropertyScopesRequest
|
|
312
|
+
*/
|
|
313
|
+
export const ListPropertyScopesRequest = new ListPropertyScopesRequest$Type();
|
|
314
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
315
|
+
class ListPropertyScopesResponse$Type extends MessageType<ListPropertyScopesResponse> {
|
|
316
|
+
constructor() {
|
|
317
|
+
super("services.settings.ListPropertyScopesResponse", [
|
|
318
|
+
{ no: 1, name: "scopes", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["resources.properties.PropertyScope", PropertyScope, "PROPERTY_SCOPE_"] }
|
|
319
|
+
]);
|
|
320
|
+
}
|
|
321
|
+
create(value?: PartialMessage<ListPropertyScopesResponse>): ListPropertyScopesResponse {
|
|
322
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
323
|
+
message.scopes = [];
|
|
324
|
+
if (value !== undefined)
|
|
325
|
+
reflectionMergePartial<ListPropertyScopesResponse>(this, message, value);
|
|
326
|
+
return message;
|
|
327
|
+
}
|
|
328
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListPropertyScopesResponse): ListPropertyScopesResponse {
|
|
329
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
330
|
+
while (reader.pos < end) {
|
|
331
|
+
let [fieldNo, wireType] = reader.tag();
|
|
332
|
+
switch (fieldNo) {
|
|
333
|
+
case /* repeated resources.properties.PropertyScope scopes */ 1:
|
|
334
|
+
if (wireType === WireType.LengthDelimited)
|
|
335
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
336
|
+
message.scopes.push(reader.int32());
|
|
337
|
+
else
|
|
338
|
+
message.scopes.push(reader.int32());
|
|
339
|
+
break;
|
|
340
|
+
default:
|
|
341
|
+
let u = options.readUnknownField;
|
|
342
|
+
if (u === "throw")
|
|
343
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
344
|
+
let d = reader.skip(wireType);
|
|
345
|
+
if (u !== false)
|
|
346
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
return message;
|
|
350
|
+
}
|
|
351
|
+
internalBinaryWrite(message: ListPropertyScopesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
352
|
+
/* repeated resources.properties.PropertyScope scopes = 1; */
|
|
353
|
+
if (message.scopes.length) {
|
|
354
|
+
writer.tag(1, WireType.LengthDelimited).fork();
|
|
355
|
+
for (let i = 0; i < message.scopes.length; i++)
|
|
356
|
+
writer.int32(message.scopes[i]);
|
|
357
|
+
writer.join();
|
|
358
|
+
}
|
|
359
|
+
let u = options.writeUnknownFields;
|
|
360
|
+
if (u !== false)
|
|
361
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
362
|
+
return writer;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* @generated MessageType for protobuf message services.settings.ListPropertyScopesResponse
|
|
367
|
+
*/
|
|
368
|
+
export const ListPropertyScopesResponse = new ListPropertyScopesResponse$Type();
|
|
369
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
370
|
+
class ListPropertyDefinitionsRequest$Type extends MessageType<ListPropertyDefinitionsRequest> {
|
|
371
|
+
constructor() {
|
|
372
|
+
super("services.settings.ListPropertyDefinitionsRequest", [
|
|
373
|
+
{ no: 1, name: "scope", kind: "enum", T: () => ["resources.properties.PropertyScope", PropertyScope, "PROPERTY_SCOPE_"], options: { "buf.validate.field": { enum: { definedOnly: true, notIn: [0] } } } },
|
|
374
|
+
{ no: 2, name: "include_deleted", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
375
|
+
]);
|
|
376
|
+
}
|
|
377
|
+
create(value?: PartialMessage<ListPropertyDefinitionsRequest>): ListPropertyDefinitionsRequest {
|
|
378
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
379
|
+
message.scope = 0;
|
|
380
|
+
message.includeDeleted = false;
|
|
381
|
+
if (value !== undefined)
|
|
382
|
+
reflectionMergePartial<ListPropertyDefinitionsRequest>(this, message, value);
|
|
383
|
+
return message;
|
|
384
|
+
}
|
|
385
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListPropertyDefinitionsRequest): ListPropertyDefinitionsRequest {
|
|
386
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
387
|
+
while (reader.pos < end) {
|
|
388
|
+
let [fieldNo, wireType] = reader.tag();
|
|
389
|
+
switch (fieldNo) {
|
|
390
|
+
case /* resources.properties.PropertyScope scope */ 1:
|
|
391
|
+
message.scope = reader.int32();
|
|
392
|
+
break;
|
|
393
|
+
case /* bool include_deleted */ 2:
|
|
394
|
+
message.includeDeleted = reader.bool();
|
|
395
|
+
break;
|
|
396
|
+
default:
|
|
397
|
+
let u = options.readUnknownField;
|
|
398
|
+
if (u === "throw")
|
|
399
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
400
|
+
let d = reader.skip(wireType);
|
|
401
|
+
if (u !== false)
|
|
402
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
return message;
|
|
406
|
+
}
|
|
407
|
+
internalBinaryWrite(message: ListPropertyDefinitionsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
408
|
+
/* resources.properties.PropertyScope scope = 1; */
|
|
409
|
+
if (message.scope !== 0)
|
|
410
|
+
writer.tag(1, WireType.Varint).int32(message.scope);
|
|
411
|
+
/* bool include_deleted = 2; */
|
|
412
|
+
if (message.includeDeleted !== false)
|
|
413
|
+
writer.tag(2, WireType.Varint).bool(message.includeDeleted);
|
|
414
|
+
let u = options.writeUnknownFields;
|
|
415
|
+
if (u !== false)
|
|
416
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
417
|
+
return writer;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
/**
|
|
421
|
+
* @generated MessageType for protobuf message services.settings.ListPropertyDefinitionsRequest
|
|
422
|
+
*/
|
|
423
|
+
export const ListPropertyDefinitionsRequest = new ListPropertyDefinitionsRequest$Type();
|
|
424
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
425
|
+
class ListPropertyDefinitionsResponse$Type extends MessageType<ListPropertyDefinitionsResponse> {
|
|
426
|
+
constructor() {
|
|
427
|
+
super("services.settings.ListPropertyDefinitionsResponse", [
|
|
428
|
+
{ no: 1, name: "definitions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PropertyDefinition },
|
|
429
|
+
{ no: 2, name: "groups", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PropertyGroup }
|
|
430
|
+
]);
|
|
431
|
+
}
|
|
432
|
+
create(value?: PartialMessage<ListPropertyDefinitionsResponse>): ListPropertyDefinitionsResponse {
|
|
433
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
434
|
+
message.definitions = [];
|
|
435
|
+
message.groups = [];
|
|
436
|
+
if (value !== undefined)
|
|
437
|
+
reflectionMergePartial<ListPropertyDefinitionsResponse>(this, message, value);
|
|
438
|
+
return message;
|
|
439
|
+
}
|
|
440
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListPropertyDefinitionsResponse): ListPropertyDefinitionsResponse {
|
|
441
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
442
|
+
while (reader.pos < end) {
|
|
443
|
+
let [fieldNo, wireType] = reader.tag();
|
|
444
|
+
switch (fieldNo) {
|
|
445
|
+
case /* repeated resources.properties.PropertyDefinition definitions */ 1:
|
|
446
|
+
message.definitions.push(PropertyDefinition.internalBinaryRead(reader, reader.uint32(), options));
|
|
447
|
+
break;
|
|
448
|
+
case /* repeated resources.properties.PropertyGroup groups */ 2:
|
|
449
|
+
message.groups.push(PropertyGroup.internalBinaryRead(reader, reader.uint32(), options));
|
|
450
|
+
break;
|
|
451
|
+
default:
|
|
452
|
+
let u = options.readUnknownField;
|
|
453
|
+
if (u === "throw")
|
|
454
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
455
|
+
let d = reader.skip(wireType);
|
|
456
|
+
if (u !== false)
|
|
457
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
return message;
|
|
461
|
+
}
|
|
462
|
+
internalBinaryWrite(message: ListPropertyDefinitionsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
463
|
+
/* repeated resources.properties.PropertyDefinition definitions = 1; */
|
|
464
|
+
for (let i = 0; i < message.definitions.length; i++)
|
|
465
|
+
PropertyDefinition.internalBinaryWrite(message.definitions[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
466
|
+
/* repeated resources.properties.PropertyGroup groups = 2; */
|
|
467
|
+
for (let i = 0; i < message.groups.length; i++)
|
|
468
|
+
PropertyGroup.internalBinaryWrite(message.groups[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
469
|
+
let u = options.writeUnknownFields;
|
|
470
|
+
if (u !== false)
|
|
471
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
472
|
+
return writer;
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
* @generated MessageType for protobuf message services.settings.ListPropertyDefinitionsResponse
|
|
477
|
+
*/
|
|
478
|
+
export const ListPropertyDefinitionsResponse = new ListPropertyDefinitionsResponse$Type();
|
|
479
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
480
|
+
class CreatePropertyGroupRequest$Type extends MessageType<CreatePropertyGroupRequest> {
|
|
481
|
+
constructor() {
|
|
482
|
+
super("services.settings.CreatePropertyGroupRequest", [
|
|
483
|
+
{ no: 1, name: "group", kind: "message", T: () => PropertyGroup, options: { "buf.validate.field": { required: true } } }
|
|
484
|
+
]);
|
|
485
|
+
}
|
|
486
|
+
create(value?: PartialMessage<CreatePropertyGroupRequest>): CreatePropertyGroupRequest {
|
|
487
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
488
|
+
if (value !== undefined)
|
|
489
|
+
reflectionMergePartial<CreatePropertyGroupRequest>(this, message, value);
|
|
490
|
+
return message;
|
|
491
|
+
}
|
|
492
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreatePropertyGroupRequest): CreatePropertyGroupRequest {
|
|
493
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
494
|
+
while (reader.pos < end) {
|
|
495
|
+
let [fieldNo, wireType] = reader.tag();
|
|
496
|
+
switch (fieldNo) {
|
|
497
|
+
case /* resources.properties.PropertyGroup group */ 1:
|
|
498
|
+
message.group = PropertyGroup.internalBinaryRead(reader, reader.uint32(), options, message.group);
|
|
499
|
+
break;
|
|
500
|
+
default:
|
|
501
|
+
let u = options.readUnknownField;
|
|
502
|
+
if (u === "throw")
|
|
503
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
504
|
+
let d = reader.skip(wireType);
|
|
505
|
+
if (u !== false)
|
|
506
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
return message;
|
|
510
|
+
}
|
|
511
|
+
internalBinaryWrite(message: CreatePropertyGroupRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
512
|
+
/* resources.properties.PropertyGroup group = 1; */
|
|
513
|
+
if (message.group)
|
|
514
|
+
PropertyGroup.internalBinaryWrite(message.group, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
515
|
+
let u = options.writeUnknownFields;
|
|
516
|
+
if (u !== false)
|
|
517
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
518
|
+
return writer;
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* @generated MessageType for protobuf message services.settings.CreatePropertyGroupRequest
|
|
523
|
+
*/
|
|
524
|
+
export const CreatePropertyGroupRequest = new CreatePropertyGroupRequest$Type();
|
|
525
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
526
|
+
class CreatePropertyGroupResponse$Type extends MessageType<CreatePropertyGroupResponse> {
|
|
527
|
+
constructor() {
|
|
528
|
+
super("services.settings.CreatePropertyGroupResponse", [
|
|
529
|
+
{ no: 1, name: "group", kind: "message", T: () => PropertyGroup }
|
|
530
|
+
]);
|
|
531
|
+
}
|
|
532
|
+
create(value?: PartialMessage<CreatePropertyGroupResponse>): CreatePropertyGroupResponse {
|
|
533
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
534
|
+
if (value !== undefined)
|
|
535
|
+
reflectionMergePartial<CreatePropertyGroupResponse>(this, message, value);
|
|
536
|
+
return message;
|
|
537
|
+
}
|
|
538
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreatePropertyGroupResponse): CreatePropertyGroupResponse {
|
|
539
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
540
|
+
while (reader.pos < end) {
|
|
541
|
+
let [fieldNo, wireType] = reader.tag();
|
|
542
|
+
switch (fieldNo) {
|
|
543
|
+
case /* resources.properties.PropertyGroup group */ 1:
|
|
544
|
+
message.group = PropertyGroup.internalBinaryRead(reader, reader.uint32(), options, message.group);
|
|
545
|
+
break;
|
|
546
|
+
default:
|
|
547
|
+
let u = options.readUnknownField;
|
|
548
|
+
if (u === "throw")
|
|
549
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
550
|
+
let d = reader.skip(wireType);
|
|
551
|
+
if (u !== false)
|
|
552
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
return message;
|
|
556
|
+
}
|
|
557
|
+
internalBinaryWrite(message: CreatePropertyGroupResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
558
|
+
/* resources.properties.PropertyGroup group = 1; */
|
|
559
|
+
if (message.group)
|
|
560
|
+
PropertyGroup.internalBinaryWrite(message.group, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
561
|
+
let u = options.writeUnknownFields;
|
|
562
|
+
if (u !== false)
|
|
563
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
564
|
+
return writer;
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
/**
|
|
568
|
+
* @generated MessageType for protobuf message services.settings.CreatePropertyGroupResponse
|
|
569
|
+
*/
|
|
570
|
+
export const CreatePropertyGroupResponse = new CreatePropertyGroupResponse$Type();
|
|
571
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
572
|
+
class UpdatePropertyGroupRequest$Type extends MessageType<UpdatePropertyGroupRequest> {
|
|
573
|
+
constructor() {
|
|
574
|
+
super("services.settings.UpdatePropertyGroupRequest", [
|
|
575
|
+
{ no: 1, name: "group", kind: "message", T: () => PropertyGroup, options: { "buf.validate.field": { required: true } } }
|
|
576
|
+
]);
|
|
577
|
+
}
|
|
578
|
+
create(value?: PartialMessage<UpdatePropertyGroupRequest>): UpdatePropertyGroupRequest {
|
|
579
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
580
|
+
if (value !== undefined)
|
|
581
|
+
reflectionMergePartial<UpdatePropertyGroupRequest>(this, message, value);
|
|
582
|
+
return message;
|
|
583
|
+
}
|
|
584
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdatePropertyGroupRequest): UpdatePropertyGroupRequest {
|
|
585
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
586
|
+
while (reader.pos < end) {
|
|
587
|
+
let [fieldNo, wireType] = reader.tag();
|
|
588
|
+
switch (fieldNo) {
|
|
589
|
+
case /* resources.properties.PropertyGroup group */ 1:
|
|
590
|
+
message.group = PropertyGroup.internalBinaryRead(reader, reader.uint32(), options, message.group);
|
|
591
|
+
break;
|
|
592
|
+
default:
|
|
593
|
+
let u = options.readUnknownField;
|
|
594
|
+
if (u === "throw")
|
|
595
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
596
|
+
let d = reader.skip(wireType);
|
|
597
|
+
if (u !== false)
|
|
598
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
return message;
|
|
602
|
+
}
|
|
603
|
+
internalBinaryWrite(message: UpdatePropertyGroupRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
604
|
+
/* resources.properties.PropertyGroup group = 1; */
|
|
605
|
+
if (message.group)
|
|
606
|
+
PropertyGroup.internalBinaryWrite(message.group, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
607
|
+
let u = options.writeUnknownFields;
|
|
608
|
+
if (u !== false)
|
|
609
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
610
|
+
return writer;
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
/**
|
|
614
|
+
* @generated MessageType for protobuf message services.settings.UpdatePropertyGroupRequest
|
|
615
|
+
*/
|
|
616
|
+
export const UpdatePropertyGroupRequest = new UpdatePropertyGroupRequest$Type();
|
|
617
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
618
|
+
class UpdatePropertyGroupResponse$Type extends MessageType<UpdatePropertyGroupResponse> {
|
|
619
|
+
constructor() {
|
|
620
|
+
super("services.settings.UpdatePropertyGroupResponse", [
|
|
621
|
+
{ no: 1, name: "group", kind: "message", T: () => PropertyGroup }
|
|
622
|
+
]);
|
|
623
|
+
}
|
|
624
|
+
create(value?: PartialMessage<UpdatePropertyGroupResponse>): UpdatePropertyGroupResponse {
|
|
625
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
626
|
+
if (value !== undefined)
|
|
627
|
+
reflectionMergePartial<UpdatePropertyGroupResponse>(this, message, value);
|
|
628
|
+
return message;
|
|
629
|
+
}
|
|
630
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdatePropertyGroupResponse): UpdatePropertyGroupResponse {
|
|
631
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
632
|
+
while (reader.pos < end) {
|
|
633
|
+
let [fieldNo, wireType] = reader.tag();
|
|
634
|
+
switch (fieldNo) {
|
|
635
|
+
case /* resources.properties.PropertyGroup group */ 1:
|
|
636
|
+
message.group = PropertyGroup.internalBinaryRead(reader, reader.uint32(), options, message.group);
|
|
637
|
+
break;
|
|
638
|
+
default:
|
|
639
|
+
let u = options.readUnknownField;
|
|
640
|
+
if (u === "throw")
|
|
641
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
642
|
+
let d = reader.skip(wireType);
|
|
643
|
+
if (u !== false)
|
|
644
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
return message;
|
|
648
|
+
}
|
|
649
|
+
internalBinaryWrite(message: UpdatePropertyGroupResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
650
|
+
/* resources.properties.PropertyGroup group = 1; */
|
|
651
|
+
if (message.group)
|
|
652
|
+
PropertyGroup.internalBinaryWrite(message.group, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
653
|
+
let u = options.writeUnknownFields;
|
|
654
|
+
if (u !== false)
|
|
655
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
656
|
+
return writer;
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
/**
|
|
660
|
+
* @generated MessageType for protobuf message services.settings.UpdatePropertyGroupResponse
|
|
661
|
+
*/
|
|
662
|
+
export const UpdatePropertyGroupResponse = new UpdatePropertyGroupResponse$Type();
|
|
663
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
664
|
+
class DeletePropertyGroupRequest$Type extends MessageType<DeletePropertyGroupRequest> {
|
|
665
|
+
constructor() {
|
|
666
|
+
super("services.settings.DeletePropertyGroupRequest", [
|
|
667
|
+
{ no: 1, name: "scope", kind: "enum", T: () => ["resources.properties.PropertyScope", PropertyScope, "PROPERTY_SCOPE_"], options: { "buf.validate.field": { enum: { definedOnly: true, notIn: [0] } } } },
|
|
668
|
+
{ no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "64", pattern: "^[a-z][a-z0-9_.-]*$" } } } }
|
|
669
|
+
]);
|
|
670
|
+
}
|
|
671
|
+
create(value?: PartialMessage<DeletePropertyGroupRequest>): DeletePropertyGroupRequest {
|
|
672
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
673
|
+
message.scope = 0;
|
|
674
|
+
message.key = "";
|
|
675
|
+
if (value !== undefined)
|
|
676
|
+
reflectionMergePartial<DeletePropertyGroupRequest>(this, message, value);
|
|
677
|
+
return message;
|
|
678
|
+
}
|
|
679
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeletePropertyGroupRequest): DeletePropertyGroupRequest {
|
|
680
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
681
|
+
while (reader.pos < end) {
|
|
682
|
+
let [fieldNo, wireType] = reader.tag();
|
|
683
|
+
switch (fieldNo) {
|
|
684
|
+
case /* resources.properties.PropertyScope scope */ 1:
|
|
685
|
+
message.scope = reader.int32();
|
|
686
|
+
break;
|
|
687
|
+
case /* string key */ 2:
|
|
688
|
+
message.key = reader.string();
|
|
689
|
+
break;
|
|
690
|
+
default:
|
|
691
|
+
let u = options.readUnknownField;
|
|
692
|
+
if (u === "throw")
|
|
693
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
694
|
+
let d = reader.skip(wireType);
|
|
695
|
+
if (u !== false)
|
|
696
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
return message;
|
|
700
|
+
}
|
|
701
|
+
internalBinaryWrite(message: DeletePropertyGroupRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
702
|
+
/* resources.properties.PropertyScope scope = 1; */
|
|
703
|
+
if (message.scope !== 0)
|
|
704
|
+
writer.tag(1, WireType.Varint).int32(message.scope);
|
|
705
|
+
/* string key = 2; */
|
|
706
|
+
if (message.key !== "")
|
|
707
|
+
writer.tag(2, WireType.LengthDelimited).string(message.key);
|
|
708
|
+
let u = options.writeUnknownFields;
|
|
709
|
+
if (u !== false)
|
|
710
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
711
|
+
return writer;
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
/**
|
|
715
|
+
* @generated MessageType for protobuf message services.settings.DeletePropertyGroupRequest
|
|
716
|
+
*/
|
|
717
|
+
export const DeletePropertyGroupRequest = new DeletePropertyGroupRequest$Type();
|
|
718
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
719
|
+
class DeletePropertyGroupResponse$Type extends MessageType<DeletePropertyGroupResponse> {
|
|
720
|
+
constructor() {
|
|
721
|
+
super("services.settings.DeletePropertyGroupResponse", []);
|
|
722
|
+
}
|
|
723
|
+
create(value?: PartialMessage<DeletePropertyGroupResponse>): DeletePropertyGroupResponse {
|
|
724
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
725
|
+
if (value !== undefined)
|
|
726
|
+
reflectionMergePartial<DeletePropertyGroupResponse>(this, message, value);
|
|
727
|
+
return message;
|
|
728
|
+
}
|
|
729
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeletePropertyGroupResponse): DeletePropertyGroupResponse {
|
|
730
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
731
|
+
while (reader.pos < end) {
|
|
732
|
+
let [fieldNo, wireType] = reader.tag();
|
|
733
|
+
switch (fieldNo) {
|
|
734
|
+
default:
|
|
735
|
+
let u = options.readUnknownField;
|
|
736
|
+
if (u === "throw")
|
|
737
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
738
|
+
let d = reader.skip(wireType);
|
|
739
|
+
if (u !== false)
|
|
740
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
return message;
|
|
744
|
+
}
|
|
745
|
+
internalBinaryWrite(message: DeletePropertyGroupResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
746
|
+
let u = options.writeUnknownFields;
|
|
747
|
+
if (u !== false)
|
|
748
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
749
|
+
return writer;
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
/**
|
|
753
|
+
* @generated MessageType for protobuf message services.settings.DeletePropertyGroupResponse
|
|
754
|
+
*/
|
|
755
|
+
export const DeletePropertyGroupResponse = new DeletePropertyGroupResponse$Type();
|
|
756
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
757
|
+
class RestorePropertyGroupRequest$Type extends MessageType<RestorePropertyGroupRequest> {
|
|
758
|
+
constructor() {
|
|
759
|
+
super("services.settings.RestorePropertyGroupRequest", [
|
|
760
|
+
{ no: 1, name: "scope", kind: "enum", T: () => ["resources.properties.PropertyScope", PropertyScope, "PROPERTY_SCOPE_"], options: { "buf.validate.field": { enum: { definedOnly: true, notIn: [0] } } } },
|
|
761
|
+
{ no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "64", pattern: "^[a-z][a-z0-9_.-]*$" } } } }
|
|
762
|
+
]);
|
|
763
|
+
}
|
|
764
|
+
create(value?: PartialMessage<RestorePropertyGroupRequest>): RestorePropertyGroupRequest {
|
|
765
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
766
|
+
message.scope = 0;
|
|
767
|
+
message.key = "";
|
|
768
|
+
if (value !== undefined)
|
|
769
|
+
reflectionMergePartial<RestorePropertyGroupRequest>(this, message, value);
|
|
770
|
+
return message;
|
|
771
|
+
}
|
|
772
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RestorePropertyGroupRequest): RestorePropertyGroupRequest {
|
|
773
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
774
|
+
while (reader.pos < end) {
|
|
775
|
+
let [fieldNo, wireType] = reader.tag();
|
|
776
|
+
switch (fieldNo) {
|
|
777
|
+
case /* resources.properties.PropertyScope scope */ 1:
|
|
778
|
+
message.scope = reader.int32();
|
|
779
|
+
break;
|
|
780
|
+
case /* string key */ 2:
|
|
781
|
+
message.key = reader.string();
|
|
782
|
+
break;
|
|
783
|
+
default:
|
|
784
|
+
let u = options.readUnknownField;
|
|
785
|
+
if (u === "throw")
|
|
786
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
787
|
+
let d = reader.skip(wireType);
|
|
788
|
+
if (u !== false)
|
|
789
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
return message;
|
|
793
|
+
}
|
|
794
|
+
internalBinaryWrite(message: RestorePropertyGroupRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
795
|
+
/* resources.properties.PropertyScope scope = 1; */
|
|
796
|
+
if (message.scope !== 0)
|
|
797
|
+
writer.tag(1, WireType.Varint).int32(message.scope);
|
|
798
|
+
/* string key = 2; */
|
|
799
|
+
if (message.key !== "")
|
|
800
|
+
writer.tag(2, WireType.LengthDelimited).string(message.key);
|
|
801
|
+
let u = options.writeUnknownFields;
|
|
802
|
+
if (u !== false)
|
|
803
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
804
|
+
return writer;
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
/**
|
|
808
|
+
* @generated MessageType for protobuf message services.settings.RestorePropertyGroupRequest
|
|
809
|
+
*/
|
|
810
|
+
export const RestorePropertyGroupRequest = new RestorePropertyGroupRequest$Type();
|
|
811
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
812
|
+
class RestorePropertyGroupResponse$Type extends MessageType<RestorePropertyGroupResponse> {
|
|
813
|
+
constructor() {
|
|
814
|
+
super("services.settings.RestorePropertyGroupResponse", [
|
|
815
|
+
{ no: 1, name: "group", kind: "message", T: () => PropertyGroup }
|
|
816
|
+
]);
|
|
817
|
+
}
|
|
818
|
+
create(value?: PartialMessage<RestorePropertyGroupResponse>): RestorePropertyGroupResponse {
|
|
819
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
820
|
+
if (value !== undefined)
|
|
821
|
+
reflectionMergePartial<RestorePropertyGroupResponse>(this, message, value);
|
|
822
|
+
return message;
|
|
823
|
+
}
|
|
824
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RestorePropertyGroupResponse): RestorePropertyGroupResponse {
|
|
825
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
826
|
+
while (reader.pos < end) {
|
|
827
|
+
let [fieldNo, wireType] = reader.tag();
|
|
828
|
+
switch (fieldNo) {
|
|
829
|
+
case /* resources.properties.PropertyGroup group */ 1:
|
|
830
|
+
message.group = PropertyGroup.internalBinaryRead(reader, reader.uint32(), options, message.group);
|
|
831
|
+
break;
|
|
832
|
+
default:
|
|
833
|
+
let u = options.readUnknownField;
|
|
834
|
+
if (u === "throw")
|
|
835
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
836
|
+
let d = reader.skip(wireType);
|
|
837
|
+
if (u !== false)
|
|
838
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
return message;
|
|
842
|
+
}
|
|
843
|
+
internalBinaryWrite(message: RestorePropertyGroupResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
844
|
+
/* resources.properties.PropertyGroup group = 1; */
|
|
845
|
+
if (message.group)
|
|
846
|
+
PropertyGroup.internalBinaryWrite(message.group, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
847
|
+
let u = options.writeUnknownFields;
|
|
848
|
+
if (u !== false)
|
|
849
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
850
|
+
return writer;
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
/**
|
|
854
|
+
* @generated MessageType for protobuf message services.settings.RestorePropertyGroupResponse
|
|
855
|
+
*/
|
|
856
|
+
export const RestorePropertyGroupResponse = new RestorePropertyGroupResponse$Type();
|
|
857
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
858
|
+
class ReorderPropertyGroupsRequest$Type extends MessageType<ReorderPropertyGroupsRequest> {
|
|
859
|
+
constructor() {
|
|
860
|
+
super("services.settings.ReorderPropertyGroupsRequest", [
|
|
861
|
+
{ no: 1, name: "scope", kind: "enum", T: () => ["resources.properties.PropertyScope", PropertyScope, "PROPERTY_SCOPE_"], options: { "buf.validate.field": { enum: { definedOnly: true, notIn: [0] } } } },
|
|
862
|
+
{ no: 2, name: "group_keys", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { repeated: { minItems: "1", maxItems: "200", items: { string: { minLen: "1", maxLen: "64" } } } } } }
|
|
863
|
+
]);
|
|
864
|
+
}
|
|
865
|
+
create(value?: PartialMessage<ReorderPropertyGroupsRequest>): ReorderPropertyGroupsRequest {
|
|
866
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
867
|
+
message.scope = 0;
|
|
868
|
+
message.groupKeys = [];
|
|
869
|
+
if (value !== undefined)
|
|
870
|
+
reflectionMergePartial<ReorderPropertyGroupsRequest>(this, message, value);
|
|
871
|
+
return message;
|
|
872
|
+
}
|
|
873
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ReorderPropertyGroupsRequest): ReorderPropertyGroupsRequest {
|
|
874
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
875
|
+
while (reader.pos < end) {
|
|
876
|
+
let [fieldNo, wireType] = reader.tag();
|
|
877
|
+
switch (fieldNo) {
|
|
878
|
+
case /* resources.properties.PropertyScope scope */ 1:
|
|
879
|
+
message.scope = reader.int32();
|
|
880
|
+
break;
|
|
881
|
+
case /* repeated string group_keys */ 2:
|
|
882
|
+
message.groupKeys.push(reader.string());
|
|
883
|
+
break;
|
|
884
|
+
default:
|
|
885
|
+
let u = options.readUnknownField;
|
|
886
|
+
if (u === "throw")
|
|
887
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
888
|
+
let d = reader.skip(wireType);
|
|
889
|
+
if (u !== false)
|
|
890
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
return message;
|
|
894
|
+
}
|
|
895
|
+
internalBinaryWrite(message: ReorderPropertyGroupsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
896
|
+
/* resources.properties.PropertyScope scope = 1; */
|
|
897
|
+
if (message.scope !== 0)
|
|
898
|
+
writer.tag(1, WireType.Varint).int32(message.scope);
|
|
899
|
+
/* repeated string group_keys = 2; */
|
|
900
|
+
for (let i = 0; i < message.groupKeys.length; i++)
|
|
901
|
+
writer.tag(2, WireType.LengthDelimited).string(message.groupKeys[i]);
|
|
902
|
+
let u = options.writeUnknownFields;
|
|
903
|
+
if (u !== false)
|
|
904
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
905
|
+
return writer;
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
/**
|
|
909
|
+
* @generated MessageType for protobuf message services.settings.ReorderPropertyGroupsRequest
|
|
910
|
+
*/
|
|
911
|
+
export const ReorderPropertyGroupsRequest = new ReorderPropertyGroupsRequest$Type();
|
|
912
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
913
|
+
class ReorderPropertyGroupsResponse$Type extends MessageType<ReorderPropertyGroupsResponse> {
|
|
914
|
+
constructor() {
|
|
915
|
+
super("services.settings.ReorderPropertyGroupsResponse", []);
|
|
916
|
+
}
|
|
917
|
+
create(value?: PartialMessage<ReorderPropertyGroupsResponse>): ReorderPropertyGroupsResponse {
|
|
918
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
919
|
+
if (value !== undefined)
|
|
920
|
+
reflectionMergePartial<ReorderPropertyGroupsResponse>(this, message, value);
|
|
921
|
+
return message;
|
|
922
|
+
}
|
|
923
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ReorderPropertyGroupsResponse): ReorderPropertyGroupsResponse {
|
|
924
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
925
|
+
while (reader.pos < end) {
|
|
926
|
+
let [fieldNo, wireType] = reader.tag();
|
|
927
|
+
switch (fieldNo) {
|
|
928
|
+
default:
|
|
929
|
+
let u = options.readUnknownField;
|
|
930
|
+
if (u === "throw")
|
|
931
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
932
|
+
let d = reader.skip(wireType);
|
|
933
|
+
if (u !== false)
|
|
934
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
return message;
|
|
938
|
+
}
|
|
939
|
+
internalBinaryWrite(message: ReorderPropertyGroupsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
940
|
+
let u = options.writeUnknownFields;
|
|
941
|
+
if (u !== false)
|
|
942
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
943
|
+
return writer;
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
/**
|
|
947
|
+
* @generated MessageType for protobuf message services.settings.ReorderPropertyGroupsResponse
|
|
948
|
+
*/
|
|
949
|
+
export const ReorderPropertyGroupsResponse = new ReorderPropertyGroupsResponse$Type();
|
|
950
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
951
|
+
class ReorderPropertyDefinitionsRequest$Type extends MessageType<ReorderPropertyDefinitionsRequest> {
|
|
952
|
+
constructor() {
|
|
953
|
+
super("services.settings.ReorderPropertyDefinitionsRequest", [
|
|
954
|
+
{ no: 1, name: "scope", kind: "enum", T: () => ["resources.properties.PropertyScope", PropertyScope, "PROPERTY_SCOPE_"], options: { "buf.validate.field": { enum: { definedOnly: true, notIn: [0] } } } },
|
|
955
|
+
{ no: 2, name: "group_key", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "64" } } } },
|
|
956
|
+
{ no: 3, name: "property_keys", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { repeated: { minItems: "1", maxItems: "200", items: { string: { minLen: "1", maxLen: "64" } } } } } }
|
|
957
|
+
]);
|
|
958
|
+
}
|
|
959
|
+
create(value?: PartialMessage<ReorderPropertyDefinitionsRequest>): ReorderPropertyDefinitionsRequest {
|
|
960
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
961
|
+
message.scope = 0;
|
|
962
|
+
message.groupKey = "";
|
|
963
|
+
message.propertyKeys = [];
|
|
964
|
+
if (value !== undefined)
|
|
965
|
+
reflectionMergePartial<ReorderPropertyDefinitionsRequest>(this, message, value);
|
|
966
|
+
return message;
|
|
967
|
+
}
|
|
968
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ReorderPropertyDefinitionsRequest): ReorderPropertyDefinitionsRequest {
|
|
969
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
970
|
+
while (reader.pos < end) {
|
|
971
|
+
let [fieldNo, wireType] = reader.tag();
|
|
972
|
+
switch (fieldNo) {
|
|
973
|
+
case /* resources.properties.PropertyScope scope */ 1:
|
|
974
|
+
message.scope = reader.int32();
|
|
975
|
+
break;
|
|
976
|
+
case /* string group_key */ 2:
|
|
977
|
+
message.groupKey = reader.string();
|
|
978
|
+
break;
|
|
979
|
+
case /* repeated string property_keys */ 3:
|
|
980
|
+
message.propertyKeys.push(reader.string());
|
|
981
|
+
break;
|
|
982
|
+
default:
|
|
983
|
+
let u = options.readUnknownField;
|
|
984
|
+
if (u === "throw")
|
|
985
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
986
|
+
let d = reader.skip(wireType);
|
|
987
|
+
if (u !== false)
|
|
988
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
return message;
|
|
992
|
+
}
|
|
993
|
+
internalBinaryWrite(message: ReorderPropertyDefinitionsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
994
|
+
/* resources.properties.PropertyScope scope = 1; */
|
|
995
|
+
if (message.scope !== 0)
|
|
996
|
+
writer.tag(1, WireType.Varint).int32(message.scope);
|
|
997
|
+
/* string group_key = 2; */
|
|
998
|
+
if (message.groupKey !== "")
|
|
999
|
+
writer.tag(2, WireType.LengthDelimited).string(message.groupKey);
|
|
1000
|
+
/* repeated string property_keys = 3; */
|
|
1001
|
+
for (let i = 0; i < message.propertyKeys.length; i++)
|
|
1002
|
+
writer.tag(3, WireType.LengthDelimited).string(message.propertyKeys[i]);
|
|
1003
|
+
let u = options.writeUnknownFields;
|
|
1004
|
+
if (u !== false)
|
|
1005
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1006
|
+
return writer;
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
/**
|
|
1010
|
+
* @generated MessageType for protobuf message services.settings.ReorderPropertyDefinitionsRequest
|
|
1011
|
+
*/
|
|
1012
|
+
export const ReorderPropertyDefinitionsRequest = new ReorderPropertyDefinitionsRequest$Type();
|
|
1013
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1014
|
+
class ReorderPropertyDefinitionsResponse$Type extends MessageType<ReorderPropertyDefinitionsResponse> {
|
|
1015
|
+
constructor() {
|
|
1016
|
+
super("services.settings.ReorderPropertyDefinitionsResponse", []);
|
|
1017
|
+
}
|
|
1018
|
+
create(value?: PartialMessage<ReorderPropertyDefinitionsResponse>): ReorderPropertyDefinitionsResponse {
|
|
1019
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1020
|
+
if (value !== undefined)
|
|
1021
|
+
reflectionMergePartial<ReorderPropertyDefinitionsResponse>(this, message, value);
|
|
1022
|
+
return message;
|
|
1023
|
+
}
|
|
1024
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ReorderPropertyDefinitionsResponse): ReorderPropertyDefinitionsResponse {
|
|
1025
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1026
|
+
while (reader.pos < end) {
|
|
1027
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1028
|
+
switch (fieldNo) {
|
|
1029
|
+
default:
|
|
1030
|
+
let u = options.readUnknownField;
|
|
1031
|
+
if (u === "throw")
|
|
1032
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1033
|
+
let d = reader.skip(wireType);
|
|
1034
|
+
if (u !== false)
|
|
1035
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
return message;
|
|
1039
|
+
}
|
|
1040
|
+
internalBinaryWrite(message: ReorderPropertyDefinitionsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1041
|
+
let u = options.writeUnknownFields;
|
|
1042
|
+
if (u !== false)
|
|
1043
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1044
|
+
return writer;
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
/**
|
|
1048
|
+
* @generated MessageType for protobuf message services.settings.ReorderPropertyDefinitionsResponse
|
|
1049
|
+
*/
|
|
1050
|
+
export const ReorderPropertyDefinitionsResponse = new ReorderPropertyDefinitionsResponse$Type();
|
|
1051
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1052
|
+
class CreatePropertyDefinitionRequest$Type extends MessageType<CreatePropertyDefinitionRequest> {
|
|
1053
|
+
constructor() {
|
|
1054
|
+
super("services.settings.CreatePropertyDefinitionRequest", [
|
|
1055
|
+
{ no: 1, name: "definition", kind: "message", T: () => PropertyDefinition, options: { "buf.validate.field": { required: true } } }
|
|
1056
|
+
]);
|
|
1057
|
+
}
|
|
1058
|
+
create(value?: PartialMessage<CreatePropertyDefinitionRequest>): CreatePropertyDefinitionRequest {
|
|
1059
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1060
|
+
if (value !== undefined)
|
|
1061
|
+
reflectionMergePartial<CreatePropertyDefinitionRequest>(this, message, value);
|
|
1062
|
+
return message;
|
|
1063
|
+
}
|
|
1064
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreatePropertyDefinitionRequest): CreatePropertyDefinitionRequest {
|
|
1065
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1066
|
+
while (reader.pos < end) {
|
|
1067
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1068
|
+
switch (fieldNo) {
|
|
1069
|
+
case /* resources.properties.PropertyDefinition definition */ 1:
|
|
1070
|
+
message.definition = PropertyDefinition.internalBinaryRead(reader, reader.uint32(), options, message.definition);
|
|
1071
|
+
break;
|
|
1072
|
+
default:
|
|
1073
|
+
let u = options.readUnknownField;
|
|
1074
|
+
if (u === "throw")
|
|
1075
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1076
|
+
let d = reader.skip(wireType);
|
|
1077
|
+
if (u !== false)
|
|
1078
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
return message;
|
|
1082
|
+
}
|
|
1083
|
+
internalBinaryWrite(message: CreatePropertyDefinitionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1084
|
+
/* resources.properties.PropertyDefinition definition = 1; */
|
|
1085
|
+
if (message.definition)
|
|
1086
|
+
PropertyDefinition.internalBinaryWrite(message.definition, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1087
|
+
let u = options.writeUnknownFields;
|
|
1088
|
+
if (u !== false)
|
|
1089
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1090
|
+
return writer;
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
/**
|
|
1094
|
+
* @generated MessageType for protobuf message services.settings.CreatePropertyDefinitionRequest
|
|
1095
|
+
*/
|
|
1096
|
+
export const CreatePropertyDefinitionRequest = new CreatePropertyDefinitionRequest$Type();
|
|
1097
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1098
|
+
class CreatePropertyDefinitionResponse$Type extends MessageType<CreatePropertyDefinitionResponse> {
|
|
1099
|
+
constructor() {
|
|
1100
|
+
super("services.settings.CreatePropertyDefinitionResponse", [
|
|
1101
|
+
{ no: 1, name: "definition", kind: "message", T: () => PropertyDefinition }
|
|
1102
|
+
]);
|
|
1103
|
+
}
|
|
1104
|
+
create(value?: PartialMessage<CreatePropertyDefinitionResponse>): CreatePropertyDefinitionResponse {
|
|
1105
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1106
|
+
if (value !== undefined)
|
|
1107
|
+
reflectionMergePartial<CreatePropertyDefinitionResponse>(this, message, value);
|
|
1108
|
+
return message;
|
|
1109
|
+
}
|
|
1110
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreatePropertyDefinitionResponse): CreatePropertyDefinitionResponse {
|
|
1111
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1112
|
+
while (reader.pos < end) {
|
|
1113
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1114
|
+
switch (fieldNo) {
|
|
1115
|
+
case /* resources.properties.PropertyDefinition definition */ 1:
|
|
1116
|
+
message.definition = PropertyDefinition.internalBinaryRead(reader, reader.uint32(), options, message.definition);
|
|
1117
|
+
break;
|
|
1118
|
+
default:
|
|
1119
|
+
let u = options.readUnknownField;
|
|
1120
|
+
if (u === "throw")
|
|
1121
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1122
|
+
let d = reader.skip(wireType);
|
|
1123
|
+
if (u !== false)
|
|
1124
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
return message;
|
|
1128
|
+
}
|
|
1129
|
+
internalBinaryWrite(message: CreatePropertyDefinitionResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1130
|
+
/* resources.properties.PropertyDefinition definition = 1; */
|
|
1131
|
+
if (message.definition)
|
|
1132
|
+
PropertyDefinition.internalBinaryWrite(message.definition, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1133
|
+
let u = options.writeUnknownFields;
|
|
1134
|
+
if (u !== false)
|
|
1135
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1136
|
+
return writer;
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
/**
|
|
1140
|
+
* @generated MessageType for protobuf message services.settings.CreatePropertyDefinitionResponse
|
|
1141
|
+
*/
|
|
1142
|
+
export const CreatePropertyDefinitionResponse = new CreatePropertyDefinitionResponse$Type();
|
|
1143
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1144
|
+
class UpdatePropertyDefinitionRequest$Type extends MessageType<UpdatePropertyDefinitionRequest> {
|
|
1145
|
+
constructor() {
|
|
1146
|
+
super("services.settings.UpdatePropertyDefinitionRequest", [
|
|
1147
|
+
{ no: 1, name: "definition", kind: "message", T: () => PropertyDefinition, options: { "buf.validate.field": { required: true } } }
|
|
1148
|
+
]);
|
|
1149
|
+
}
|
|
1150
|
+
create(value?: PartialMessage<UpdatePropertyDefinitionRequest>): UpdatePropertyDefinitionRequest {
|
|
1151
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1152
|
+
if (value !== undefined)
|
|
1153
|
+
reflectionMergePartial<UpdatePropertyDefinitionRequest>(this, message, value);
|
|
1154
|
+
return message;
|
|
1155
|
+
}
|
|
1156
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdatePropertyDefinitionRequest): UpdatePropertyDefinitionRequest {
|
|
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
|
+
case /* resources.properties.PropertyDefinition definition */ 1:
|
|
1162
|
+
message.definition = PropertyDefinition.internalBinaryRead(reader, reader.uint32(), options, message.definition);
|
|
1163
|
+
break;
|
|
1164
|
+
default:
|
|
1165
|
+
let u = options.readUnknownField;
|
|
1166
|
+
if (u === "throw")
|
|
1167
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1168
|
+
let d = reader.skip(wireType);
|
|
1169
|
+
if (u !== false)
|
|
1170
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
return message;
|
|
1174
|
+
}
|
|
1175
|
+
internalBinaryWrite(message: UpdatePropertyDefinitionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1176
|
+
/* resources.properties.PropertyDefinition definition = 1; */
|
|
1177
|
+
if (message.definition)
|
|
1178
|
+
PropertyDefinition.internalBinaryWrite(message.definition, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1179
|
+
let u = options.writeUnknownFields;
|
|
1180
|
+
if (u !== false)
|
|
1181
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1182
|
+
return writer;
|
|
1183
|
+
}
|
|
1184
|
+
}
|
|
1185
|
+
/**
|
|
1186
|
+
* @generated MessageType for protobuf message services.settings.UpdatePropertyDefinitionRequest
|
|
1187
|
+
*/
|
|
1188
|
+
export const UpdatePropertyDefinitionRequest = new UpdatePropertyDefinitionRequest$Type();
|
|
1189
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1190
|
+
class UpdatePropertyDefinitionResponse$Type extends MessageType<UpdatePropertyDefinitionResponse> {
|
|
1191
|
+
constructor() {
|
|
1192
|
+
super("services.settings.UpdatePropertyDefinitionResponse", [
|
|
1193
|
+
{ no: 1, name: "definition", kind: "message", T: () => PropertyDefinition }
|
|
1194
|
+
]);
|
|
1195
|
+
}
|
|
1196
|
+
create(value?: PartialMessage<UpdatePropertyDefinitionResponse>): UpdatePropertyDefinitionResponse {
|
|
1197
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1198
|
+
if (value !== undefined)
|
|
1199
|
+
reflectionMergePartial<UpdatePropertyDefinitionResponse>(this, message, value);
|
|
1200
|
+
return message;
|
|
1201
|
+
}
|
|
1202
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdatePropertyDefinitionResponse): UpdatePropertyDefinitionResponse {
|
|
1203
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1204
|
+
while (reader.pos < end) {
|
|
1205
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1206
|
+
switch (fieldNo) {
|
|
1207
|
+
case /* resources.properties.PropertyDefinition definition */ 1:
|
|
1208
|
+
message.definition = PropertyDefinition.internalBinaryRead(reader, reader.uint32(), options, message.definition);
|
|
1209
|
+
break;
|
|
1210
|
+
default:
|
|
1211
|
+
let u = options.readUnknownField;
|
|
1212
|
+
if (u === "throw")
|
|
1213
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1214
|
+
let d = reader.skip(wireType);
|
|
1215
|
+
if (u !== false)
|
|
1216
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
return message;
|
|
1220
|
+
}
|
|
1221
|
+
internalBinaryWrite(message: UpdatePropertyDefinitionResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1222
|
+
/* resources.properties.PropertyDefinition definition = 1; */
|
|
1223
|
+
if (message.definition)
|
|
1224
|
+
PropertyDefinition.internalBinaryWrite(message.definition, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1225
|
+
let u = options.writeUnknownFields;
|
|
1226
|
+
if (u !== false)
|
|
1227
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1228
|
+
return writer;
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
/**
|
|
1232
|
+
* @generated MessageType for protobuf message services.settings.UpdatePropertyDefinitionResponse
|
|
1233
|
+
*/
|
|
1234
|
+
export const UpdatePropertyDefinitionResponse = new UpdatePropertyDefinitionResponse$Type();
|
|
1235
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1236
|
+
class DeletePropertyDefinitionRequest$Type extends MessageType<DeletePropertyDefinitionRequest> {
|
|
1237
|
+
constructor() {
|
|
1238
|
+
super("services.settings.DeletePropertyDefinitionRequest", [
|
|
1239
|
+
{ no: 1, name: "scope", kind: "enum", T: () => ["resources.properties.PropertyScope", PropertyScope, "PROPERTY_SCOPE_"], options: { "buf.validate.field": { enum: { definedOnly: true, notIn: [0] } } } },
|
|
1240
|
+
{ no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "64", pattern: "^[a-z][a-z0-9_.-]*$" } } } }
|
|
1241
|
+
]);
|
|
1242
|
+
}
|
|
1243
|
+
create(value?: PartialMessage<DeletePropertyDefinitionRequest>): DeletePropertyDefinitionRequest {
|
|
1244
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1245
|
+
message.scope = 0;
|
|
1246
|
+
message.key = "";
|
|
1247
|
+
if (value !== undefined)
|
|
1248
|
+
reflectionMergePartial<DeletePropertyDefinitionRequest>(this, message, value);
|
|
1249
|
+
return message;
|
|
1250
|
+
}
|
|
1251
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeletePropertyDefinitionRequest): DeletePropertyDefinitionRequest {
|
|
1252
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1253
|
+
while (reader.pos < end) {
|
|
1254
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1255
|
+
switch (fieldNo) {
|
|
1256
|
+
case /* resources.properties.PropertyScope scope */ 1:
|
|
1257
|
+
message.scope = reader.int32();
|
|
1258
|
+
break;
|
|
1259
|
+
case /* string key */ 2:
|
|
1260
|
+
message.key = reader.string();
|
|
1261
|
+
break;
|
|
1262
|
+
default:
|
|
1263
|
+
let u = options.readUnknownField;
|
|
1264
|
+
if (u === "throw")
|
|
1265
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1266
|
+
let d = reader.skip(wireType);
|
|
1267
|
+
if (u !== false)
|
|
1268
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
return message;
|
|
1272
|
+
}
|
|
1273
|
+
internalBinaryWrite(message: DeletePropertyDefinitionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1274
|
+
/* resources.properties.PropertyScope scope = 1; */
|
|
1275
|
+
if (message.scope !== 0)
|
|
1276
|
+
writer.tag(1, WireType.Varint).int32(message.scope);
|
|
1277
|
+
/* string key = 2; */
|
|
1278
|
+
if (message.key !== "")
|
|
1279
|
+
writer.tag(2, WireType.LengthDelimited).string(message.key);
|
|
1280
|
+
let u = options.writeUnknownFields;
|
|
1281
|
+
if (u !== false)
|
|
1282
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1283
|
+
return writer;
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
/**
|
|
1287
|
+
* @generated MessageType for protobuf message services.settings.DeletePropertyDefinitionRequest
|
|
1288
|
+
*/
|
|
1289
|
+
export const DeletePropertyDefinitionRequest = new DeletePropertyDefinitionRequest$Type();
|
|
1290
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1291
|
+
class DeletePropertyDefinitionResponse$Type extends MessageType<DeletePropertyDefinitionResponse> {
|
|
1292
|
+
constructor() {
|
|
1293
|
+
super("services.settings.DeletePropertyDefinitionResponse", []);
|
|
1294
|
+
}
|
|
1295
|
+
create(value?: PartialMessage<DeletePropertyDefinitionResponse>): DeletePropertyDefinitionResponse {
|
|
1296
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1297
|
+
if (value !== undefined)
|
|
1298
|
+
reflectionMergePartial<DeletePropertyDefinitionResponse>(this, message, value);
|
|
1299
|
+
return message;
|
|
1300
|
+
}
|
|
1301
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeletePropertyDefinitionResponse): DeletePropertyDefinitionResponse {
|
|
1302
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1303
|
+
while (reader.pos < end) {
|
|
1304
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1305
|
+
switch (fieldNo) {
|
|
1306
|
+
default:
|
|
1307
|
+
let u = options.readUnknownField;
|
|
1308
|
+
if (u === "throw")
|
|
1309
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1310
|
+
let d = reader.skip(wireType);
|
|
1311
|
+
if (u !== false)
|
|
1312
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
return message;
|
|
1316
|
+
}
|
|
1317
|
+
internalBinaryWrite(message: DeletePropertyDefinitionResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1318
|
+
let u = options.writeUnknownFields;
|
|
1319
|
+
if (u !== false)
|
|
1320
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1321
|
+
return writer;
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
/**
|
|
1325
|
+
* @generated MessageType for protobuf message services.settings.DeletePropertyDefinitionResponse
|
|
1326
|
+
*/
|
|
1327
|
+
export const DeletePropertyDefinitionResponse = new DeletePropertyDefinitionResponse$Type();
|
|
1328
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1329
|
+
class RestorePropertyDefinitionRequest$Type extends MessageType<RestorePropertyDefinitionRequest> {
|
|
1330
|
+
constructor() {
|
|
1331
|
+
super("services.settings.RestorePropertyDefinitionRequest", [
|
|
1332
|
+
{ no: 1, name: "scope", kind: "enum", T: () => ["resources.properties.PropertyScope", PropertyScope, "PROPERTY_SCOPE_"], options: { "buf.validate.field": { enum: { definedOnly: true, notIn: [0] } } } },
|
|
1333
|
+
{ no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "64", pattern: "^[a-z][a-z0-9_.-]*$" } } } }
|
|
1334
|
+
]);
|
|
1335
|
+
}
|
|
1336
|
+
create(value?: PartialMessage<RestorePropertyDefinitionRequest>): RestorePropertyDefinitionRequest {
|
|
1337
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1338
|
+
message.scope = 0;
|
|
1339
|
+
message.key = "";
|
|
1340
|
+
if (value !== undefined)
|
|
1341
|
+
reflectionMergePartial<RestorePropertyDefinitionRequest>(this, message, value);
|
|
1342
|
+
return message;
|
|
1343
|
+
}
|
|
1344
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RestorePropertyDefinitionRequest): RestorePropertyDefinitionRequest {
|
|
1345
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1346
|
+
while (reader.pos < end) {
|
|
1347
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1348
|
+
switch (fieldNo) {
|
|
1349
|
+
case /* resources.properties.PropertyScope scope */ 1:
|
|
1350
|
+
message.scope = reader.int32();
|
|
1351
|
+
break;
|
|
1352
|
+
case /* string key */ 2:
|
|
1353
|
+
message.key = reader.string();
|
|
1354
|
+
break;
|
|
1355
|
+
default:
|
|
1356
|
+
let u = options.readUnknownField;
|
|
1357
|
+
if (u === "throw")
|
|
1358
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1359
|
+
let d = reader.skip(wireType);
|
|
1360
|
+
if (u !== false)
|
|
1361
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
return message;
|
|
1365
|
+
}
|
|
1366
|
+
internalBinaryWrite(message: RestorePropertyDefinitionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1367
|
+
/* resources.properties.PropertyScope scope = 1; */
|
|
1368
|
+
if (message.scope !== 0)
|
|
1369
|
+
writer.tag(1, WireType.Varint).int32(message.scope);
|
|
1370
|
+
/* string key = 2; */
|
|
1371
|
+
if (message.key !== "")
|
|
1372
|
+
writer.tag(2, WireType.LengthDelimited).string(message.key);
|
|
1373
|
+
let u = options.writeUnknownFields;
|
|
1374
|
+
if (u !== false)
|
|
1375
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1376
|
+
return writer;
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
/**
|
|
1380
|
+
* @generated MessageType for protobuf message services.settings.RestorePropertyDefinitionRequest
|
|
1381
|
+
*/
|
|
1382
|
+
export const RestorePropertyDefinitionRequest = new RestorePropertyDefinitionRequest$Type();
|
|
1383
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1384
|
+
class RestorePropertyDefinitionResponse$Type extends MessageType<RestorePropertyDefinitionResponse> {
|
|
1385
|
+
constructor() {
|
|
1386
|
+
super("services.settings.RestorePropertyDefinitionResponse", [
|
|
1387
|
+
{ no: 1, name: "definition", kind: "message", T: () => PropertyDefinition }
|
|
1388
|
+
]);
|
|
1389
|
+
}
|
|
1390
|
+
create(value?: PartialMessage<RestorePropertyDefinitionResponse>): RestorePropertyDefinitionResponse {
|
|
1391
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1392
|
+
if (value !== undefined)
|
|
1393
|
+
reflectionMergePartial<RestorePropertyDefinitionResponse>(this, message, value);
|
|
1394
|
+
return message;
|
|
1395
|
+
}
|
|
1396
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RestorePropertyDefinitionResponse): RestorePropertyDefinitionResponse {
|
|
1397
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1398
|
+
while (reader.pos < end) {
|
|
1399
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1400
|
+
switch (fieldNo) {
|
|
1401
|
+
case /* resources.properties.PropertyDefinition definition */ 1:
|
|
1402
|
+
message.definition = PropertyDefinition.internalBinaryRead(reader, reader.uint32(), options, message.definition);
|
|
1403
|
+
break;
|
|
1404
|
+
default:
|
|
1405
|
+
let u = options.readUnknownField;
|
|
1406
|
+
if (u === "throw")
|
|
1407
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1408
|
+
let d = reader.skip(wireType);
|
|
1409
|
+
if (u !== false)
|
|
1410
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1411
|
+
}
|
|
1412
|
+
}
|
|
1413
|
+
return message;
|
|
1414
|
+
}
|
|
1415
|
+
internalBinaryWrite(message: RestorePropertyDefinitionResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1416
|
+
/* resources.properties.PropertyDefinition definition = 1; */
|
|
1417
|
+
if (message.definition)
|
|
1418
|
+
PropertyDefinition.internalBinaryWrite(message.definition, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1419
|
+
let u = options.writeUnknownFields;
|
|
1420
|
+
if (u !== false)
|
|
1421
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1422
|
+
return writer;
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1425
|
+
/**
|
|
1426
|
+
* @generated MessageType for protobuf message services.settings.RestorePropertyDefinitionResponse
|
|
1427
|
+
*/
|
|
1428
|
+
export const RestorePropertyDefinitionResponse = new RestorePropertyDefinitionResponse$Type();
|
|
1429
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1430
|
+
class SetSystemPropertyEnabledRequest$Type extends MessageType<SetSystemPropertyEnabledRequest> {
|
|
1431
|
+
constructor() {
|
|
1432
|
+
super("services.settings.SetSystemPropertyEnabledRequest", [
|
|
1433
|
+
{ no: 1, name: "scope", kind: "enum", T: () => ["resources.properties.PropertyScope", PropertyScope, "PROPERTY_SCOPE_"], options: { "buf.validate.field": { enum: { definedOnly: true, notIn: [0] } } } },
|
|
1434
|
+
{ no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "64", pattern: "^[a-z][a-z0-9_.-]*$" } } } },
|
|
1435
|
+
{ no: 3, name: "enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
1436
|
+
]);
|
|
1437
|
+
}
|
|
1438
|
+
create(value?: PartialMessage<SetSystemPropertyEnabledRequest>): SetSystemPropertyEnabledRequest {
|
|
1439
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1440
|
+
message.scope = 0;
|
|
1441
|
+
message.key = "";
|
|
1442
|
+
message.enabled = false;
|
|
1443
|
+
if (value !== undefined)
|
|
1444
|
+
reflectionMergePartial<SetSystemPropertyEnabledRequest>(this, message, value);
|
|
1445
|
+
return message;
|
|
1446
|
+
}
|
|
1447
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SetSystemPropertyEnabledRequest): SetSystemPropertyEnabledRequest {
|
|
1448
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1449
|
+
while (reader.pos < end) {
|
|
1450
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1451
|
+
switch (fieldNo) {
|
|
1452
|
+
case /* resources.properties.PropertyScope scope */ 1:
|
|
1453
|
+
message.scope = reader.int32();
|
|
1454
|
+
break;
|
|
1455
|
+
case /* string key */ 2:
|
|
1456
|
+
message.key = reader.string();
|
|
1457
|
+
break;
|
|
1458
|
+
case /* bool enabled */ 3:
|
|
1459
|
+
message.enabled = reader.bool();
|
|
1460
|
+
break;
|
|
1461
|
+
default:
|
|
1462
|
+
let u = options.readUnknownField;
|
|
1463
|
+
if (u === "throw")
|
|
1464
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1465
|
+
let d = reader.skip(wireType);
|
|
1466
|
+
if (u !== false)
|
|
1467
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
return message;
|
|
1471
|
+
}
|
|
1472
|
+
internalBinaryWrite(message: SetSystemPropertyEnabledRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1473
|
+
/* resources.properties.PropertyScope scope = 1; */
|
|
1474
|
+
if (message.scope !== 0)
|
|
1475
|
+
writer.tag(1, WireType.Varint).int32(message.scope);
|
|
1476
|
+
/* string key = 2; */
|
|
1477
|
+
if (message.key !== "")
|
|
1478
|
+
writer.tag(2, WireType.LengthDelimited).string(message.key);
|
|
1479
|
+
/* bool enabled = 3; */
|
|
1480
|
+
if (message.enabled !== false)
|
|
1481
|
+
writer.tag(3, WireType.Varint).bool(message.enabled);
|
|
1482
|
+
let u = options.writeUnknownFields;
|
|
1483
|
+
if (u !== false)
|
|
1484
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1485
|
+
return writer;
|
|
1486
|
+
}
|
|
1487
|
+
}
|
|
1488
|
+
/**
|
|
1489
|
+
* @generated MessageType for protobuf message services.settings.SetSystemPropertyEnabledRequest
|
|
1490
|
+
*/
|
|
1491
|
+
export const SetSystemPropertyEnabledRequest = new SetSystemPropertyEnabledRequest$Type();
|
|
1492
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1493
|
+
class SetSystemPropertyEnabledResponse$Type extends MessageType<SetSystemPropertyEnabledResponse> {
|
|
1494
|
+
constructor() {
|
|
1495
|
+
super("services.settings.SetSystemPropertyEnabledResponse", [
|
|
1496
|
+
{ no: 1, name: "definition", kind: "message", T: () => PropertyDefinition }
|
|
1497
|
+
]);
|
|
1498
|
+
}
|
|
1499
|
+
create(value?: PartialMessage<SetSystemPropertyEnabledResponse>): SetSystemPropertyEnabledResponse {
|
|
1500
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1501
|
+
if (value !== undefined)
|
|
1502
|
+
reflectionMergePartial<SetSystemPropertyEnabledResponse>(this, message, value);
|
|
1503
|
+
return message;
|
|
1504
|
+
}
|
|
1505
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SetSystemPropertyEnabledResponse): SetSystemPropertyEnabledResponse {
|
|
1506
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1507
|
+
while (reader.pos < end) {
|
|
1508
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1509
|
+
switch (fieldNo) {
|
|
1510
|
+
case /* resources.properties.PropertyDefinition definition */ 1:
|
|
1511
|
+
message.definition = PropertyDefinition.internalBinaryRead(reader, reader.uint32(), options, message.definition);
|
|
1512
|
+
break;
|
|
1513
|
+
default:
|
|
1514
|
+
let u = options.readUnknownField;
|
|
1515
|
+
if (u === "throw")
|
|
1516
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1517
|
+
let d = reader.skip(wireType);
|
|
1518
|
+
if (u !== false)
|
|
1519
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1520
|
+
}
|
|
1521
|
+
}
|
|
1522
|
+
return message;
|
|
1523
|
+
}
|
|
1524
|
+
internalBinaryWrite(message: SetSystemPropertyEnabledResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1525
|
+
/* resources.properties.PropertyDefinition definition = 1; */
|
|
1526
|
+
if (message.definition)
|
|
1527
|
+
PropertyDefinition.internalBinaryWrite(message.definition, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1528
|
+
let u = options.writeUnknownFields;
|
|
1529
|
+
if (u !== false)
|
|
1530
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1531
|
+
return writer;
|
|
1532
|
+
}
|
|
1533
|
+
}
|
|
1534
|
+
/**
|
|
1535
|
+
* @generated MessageType for protobuf message services.settings.SetSystemPropertyEnabledResponse
|
|
1536
|
+
*/
|
|
1537
|
+
export const SetSystemPropertyEnabledResponse = new SetSystemPropertyEnabledResponse$Type();
|
|
1538
|
+
/**
|
|
1539
|
+
* @generated ServiceType for protobuf service services.settings.PropertyService
|
|
1540
|
+
*/
|
|
1541
|
+
export const PropertyService = new ServiceType("services.settings.PropertyService", [
|
|
1542
|
+
{ name: "ListPropertyScopes", options: { "codegen.perms.perms": { enabled: true, names: ["JobAdmin", "ConfigAdmin"] } }, I: ListPropertyScopesRequest, O: ListPropertyScopesResponse },
|
|
1543
|
+
{ name: "ListPropertyDefinitions", options: { "codegen.perms.perms": { enabled: true, names: ["JobAdmin", "ConfigAdmin"] } }, I: ListPropertyDefinitionsRequest, O: ListPropertyDefinitionsResponse },
|
|
1544
|
+
{ name: "ReorderPropertyGroups", options: { "codegen.perms.perms": { enabled: true, name: "UpdatePropertyDefinition" } }, I: ReorderPropertyGroupsRequest, O: ReorderPropertyGroupsResponse },
|
|
1545
|
+
{ name: "CreatePropertyGroup", options: { "codegen.perms.perms": { enabled: true, name: "ConfigAdmin" } }, I: CreatePropertyGroupRequest, O: CreatePropertyGroupResponse },
|
|
1546
|
+
{ name: "UpdatePropertyGroup", options: { "codegen.perms.perms": { enabled: true, name: "ConfigAdmin" } }, I: UpdatePropertyGroupRequest, O: UpdatePropertyGroupResponse },
|
|
1547
|
+
{ name: "DeletePropertyGroup", options: { "codegen.perms.perms": { enabled: true, name: "ConfigAdmin" } }, I: DeletePropertyGroupRequest, O: DeletePropertyGroupResponse },
|
|
1548
|
+
{ name: "RestorePropertyGroup", options: { "codegen.perms.perms": { enabled: true, name: "ConfigAdmin" } }, I: RestorePropertyGroupRequest, O: RestorePropertyGroupResponse },
|
|
1549
|
+
{ name: "ReorderPropertyDefinitions", options: { "codegen.perms.perms": { enabled: true, name: "UpdatePropertyDefinition" } }, I: ReorderPropertyDefinitionsRequest, O: ReorderPropertyDefinitionsResponse },
|
|
1550
|
+
{ name: "CreatePropertyDefinition", options: { "codegen.perms.perms": { enabled: true, name: "ConfigAdmin" } }, I: CreatePropertyDefinitionRequest, O: CreatePropertyDefinitionResponse },
|
|
1551
|
+
{ name: "UpdatePropertyDefinition", options: { "codegen.perms.perms": { enabled: true, name: "ConfigAdmin" } }, I: UpdatePropertyDefinitionRequest, O: UpdatePropertyDefinitionResponse },
|
|
1552
|
+
{ name: "DeletePropertyDefinition", options: { "codegen.perms.perms": { enabled: true, name: "ConfigAdmin" } }, I: DeletePropertyDefinitionRequest, O: DeletePropertyDefinitionResponse },
|
|
1553
|
+
{ name: "RestorePropertyDefinition", options: { "codegen.perms.perms": { enabled: true, name: "ConfigAdmin" } }, I: RestorePropertyDefinitionRequest, O: RestorePropertyDefinitionResponse },
|
|
1554
|
+
{ name: "SetSystemPropertyEnabled", options: { "codegen.perms.perms": { enabled: true, name: "ConfigAdmin" } }, I: SetSystemPropertyEnabledRequest, O: SetSystemPropertyEnabledResponse }
|
|
1555
|
+
], { "codegen.perms.perms_svc": { order: 130, icon: "i-mdi-tune-variant" } });
|