@fivenet-app/gen 0.9.3-1

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