@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.
- package/README.md +1 -0
- package/google/protobuf/any.ts +322 -0
- package/google/protobuf/descriptor.ts +3475 -0
- package/google/protobuf/duration.ts +231 -0
- package/google/protobuf/timestamp.ts +290 -0
- package/package.json +15 -0
- package/perms.ts +178 -0
- package/resources/accounts/accounts.ts +195 -0
- package/resources/accounts/oauth2.ts +230 -0
- package/resources/calendar/access.ts +362 -0
- package/resources/calendar/calendar.ts +955 -0
- package/resources/centrum/access.ts +380 -0
- package/resources/centrum/dispatches.ts +854 -0
- package/resources/centrum/general.ts +231 -0
- package/resources/centrum/settings.ts +303 -0
- package/resources/centrum/units.ts +620 -0
- package/resources/common/access/dummy.ts +309 -0
- package/resources/common/content/content.ts +252 -0
- package/resources/common/cron/cron.ts +536 -0
- package/resources/common/database/database.ts +306 -0
- package/resources/common/error.ts +79 -0
- package/resources/common/grpcws/grpcws.ts +615 -0
- package/resources/common/i18n.ts +102 -0
- package/resources/common/uuid.ts +68 -0
- package/resources/documents/access.ts +388 -0
- package/resources/documents/activity.ts +803 -0
- package/resources/documents/category.ts +132 -0
- package/resources/documents/comment.ts +161 -0
- package/resources/documents/documents.ts +1124 -0
- package/resources/documents/requests.ts +196 -0
- package/resources/documents/templates.ts +949 -0
- package/resources/documents/workflow.ts +349 -0
- package/resources/filestore/file.ts +204 -0
- package/resources/internet/ads.ts +257 -0
- package/resources/internet/domain.ts +136 -0
- package/resources/internet/internet.ts +344 -0
- package/resources/internet/page.ts +236 -0
- package/resources/internet/search.ts +104 -0
- package/resources/jobs/activity.ts +600 -0
- package/resources/jobs/colleagues.ts +346 -0
- package/resources/jobs/conduct.ts +220 -0
- package/resources/jobs/labels.ts +240 -0
- package/resources/jobs/timeclock.ts +372 -0
- package/resources/laws/laws.ts +293 -0
- package/resources/livemap/livemap.ts +728 -0
- package/resources/livemap/tracker.ts +81 -0
- package/resources/mailer/access.ts +485 -0
- package/resources/mailer/email.ts +222 -0
- package/resources/mailer/events.ts +196 -0
- package/resources/mailer/message.ts +285 -0
- package/resources/mailer/settings.ts +95 -0
- package/resources/mailer/template.ts +164 -0
- package/resources/mailer/thread.ts +422 -0
- package/resources/mailer/user.ts +93 -0
- package/resources/notifications/events.ts +287 -0
- package/resources/notifications/notifications.ts +444 -0
- package/resources/permissions/permissions.ts +829 -0
- package/resources/qualifications/access.ts +275 -0
- package/resources/qualifications/exam.ts +1421 -0
- package/resources/qualifications/qualifications.ts +1289 -0
- package/resources/rector/audit.ts +226 -0
- package/resources/rector/config.ts +922 -0
- package/resources/stats/stats.ts +67 -0
- package/resources/sync/activity.ts +356 -0
- package/resources/sync/data.ts +455 -0
- package/resources/timestamp/timestamp.ts +78 -0
- package/resources/users/activity.ts +211 -0
- package/resources/users/job_props.ts +992 -0
- package/resources/users/jobs.ts +171 -0
- package/resources/users/labels.ts +161 -0
- package/resources/users/props.ts +207 -0
- package/resources/users/users.ts +570 -0
- package/resources/vehicles/vehicles.ts +114 -0
- package/resources/wiki/access.ts +362 -0
- package/resources/wiki/activity.ts +591 -0
- package/resources/wiki/page.ts +548 -0
- package/services/auth/auth.client.ts +171 -0
- package/services/auth/auth.ts +1331 -0
- package/services/calendar/calendar.client.ts +262 -0
- package/services/calendar/calendar.ts +1733 -0
- package/services/centrum/centrum.client.ts +365 -0
- package/services/centrum/centrum.ts +2619 -0
- package/services/citizenstore/citizenstore.client.ts +126 -0
- package/services/citizenstore/citizenstore.ts +847 -0
- package/services/completor/completor.client.ts +109 -0
- package/services/completor/completor.ts +616 -0
- package/services/dmv/vehicles.client.ts +41 -0
- package/services/dmv/vehicles.ts +191 -0
- package/services/docstore/docstore.client.ts +653 -0
- package/services/docstore/docstore.ts +4571 -0
- package/services/internet/ads.client.ts +41 -0
- package/services/internet/ads.ts +145 -0
- package/services/internet/internet.client.ts +58 -0
- package/services/internet/internet.ts +257 -0
- package/services/jobs/conduct.client.ts +92 -0
- package/services/jobs/conduct.ts +541 -0
- package/services/jobs/jobs.client.ts +194 -0
- package/services/jobs/jobs.ts +1301 -0
- package/services/jobs/timeclock.client.ts +75 -0
- package/services/jobs/timeclock.ts +808 -0
- package/services/livemapper/livemap.client.ts +76 -0
- package/services/livemapper/livemap.ts +552 -0
- package/services/mailer/mailer.client.ts +381 -0
- package/services/mailer/mailer.ts +2590 -0
- package/services/notificator/notificator.client.ts +76 -0
- package/services/notificator/notificator.ts +510 -0
- package/services/qualifications/qualifications.client.ts +279 -0
- package/services/qualifications/qualifications.ts +2142 -0
- package/services/rector/config.client.ts +58 -0
- package/services/rector/config.ts +216 -0
- package/services/rector/filestore.client.ts +75 -0
- package/services/rector/filestore.ts +378 -0
- package/services/rector/laws.client.ts +92 -0
- package/services/rector/laws.ts +416 -0
- package/services/rector/rector.client.ts +211 -0
- package/services/rector/rector.ts +1540 -0
- package/services/stats/stats.client.ts +37 -0
- package/services/stats/stats.ts +128 -0
- package/services/sync/sync.client.ts +110 -0
- package/services/sync/sync.ts +831 -0
- package/services/wiki/wiki.client.ts +126 -0
- package/services/wiki/wiki.ts +749 -0
- package/svcs.ts +307 -0
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
|
+
// @generated from protobuf file "resources/documents/category.proto" (package "resources.documents", syntax proto3)
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
6
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
7
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
8
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
9
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
10
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
+
/**
|
|
14
|
+
* @generated from protobuf message resources.documents.Category
|
|
15
|
+
*/
|
|
16
|
+
export interface Category {
|
|
17
|
+
/**
|
|
18
|
+
* @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
|
|
19
|
+
*/
|
|
20
|
+
id: string;
|
|
21
|
+
/**
|
|
22
|
+
* @sanitize
|
|
23
|
+
*
|
|
24
|
+
* @generated from protobuf field: string name = 2;
|
|
25
|
+
*/
|
|
26
|
+
name: string;
|
|
27
|
+
/**
|
|
28
|
+
* @sanitize
|
|
29
|
+
*
|
|
30
|
+
* @generated from protobuf field: optional string description = 3;
|
|
31
|
+
*/
|
|
32
|
+
description?: string;
|
|
33
|
+
/**
|
|
34
|
+
* @generated from protobuf field: optional string job = 4;
|
|
35
|
+
*/
|
|
36
|
+
job?: string;
|
|
37
|
+
/**
|
|
38
|
+
* @sanitize: method=StripTags
|
|
39
|
+
*
|
|
40
|
+
* @generated from protobuf field: optional string color = 5;
|
|
41
|
+
*/
|
|
42
|
+
color?: string;
|
|
43
|
+
/**
|
|
44
|
+
* @sanitize: method=StripTags
|
|
45
|
+
*
|
|
46
|
+
* @generated from protobuf field: optional string icon = 6;
|
|
47
|
+
*/
|
|
48
|
+
icon?: string;
|
|
49
|
+
}
|
|
50
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
51
|
+
class Category$Type extends MessageType<Category> {
|
|
52
|
+
constructor() {
|
|
53
|
+
super("resources.documents.Category", [
|
|
54
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
55
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "128" } } } },
|
|
56
|
+
{ no: 3, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "255" } } } },
|
|
57
|
+
{ no: 4, name: "job", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
58
|
+
{ no: 5, name: "color", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "3", maxLen: "7" } } } },
|
|
59
|
+
{ no: 6, name: "icon", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "128" } } } }
|
|
60
|
+
]);
|
|
61
|
+
}
|
|
62
|
+
create(value?: PartialMessage<Category>): Category {
|
|
63
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
64
|
+
message.id = "0";
|
|
65
|
+
message.name = "";
|
|
66
|
+
if (value !== undefined)
|
|
67
|
+
reflectionMergePartial<Category>(this, message, value);
|
|
68
|
+
return message;
|
|
69
|
+
}
|
|
70
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Category): Category {
|
|
71
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
72
|
+
while (reader.pos < end) {
|
|
73
|
+
let [fieldNo, wireType] = reader.tag();
|
|
74
|
+
switch (fieldNo) {
|
|
75
|
+
case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
|
|
76
|
+
message.id = reader.uint64().toString();
|
|
77
|
+
break;
|
|
78
|
+
case /* string name */ 2:
|
|
79
|
+
message.name = reader.string();
|
|
80
|
+
break;
|
|
81
|
+
case /* optional string description */ 3:
|
|
82
|
+
message.description = reader.string();
|
|
83
|
+
break;
|
|
84
|
+
case /* optional string job */ 4:
|
|
85
|
+
message.job = reader.string();
|
|
86
|
+
break;
|
|
87
|
+
case /* optional string color */ 5:
|
|
88
|
+
message.color = reader.string();
|
|
89
|
+
break;
|
|
90
|
+
case /* optional string icon */ 6:
|
|
91
|
+
message.icon = reader.string();
|
|
92
|
+
break;
|
|
93
|
+
default:
|
|
94
|
+
let u = options.readUnknownField;
|
|
95
|
+
if (u === "throw")
|
|
96
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
97
|
+
let d = reader.skip(wireType);
|
|
98
|
+
if (u !== false)
|
|
99
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
return message;
|
|
103
|
+
}
|
|
104
|
+
internalBinaryWrite(message: Category, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
105
|
+
/* uint64 id = 1 [jstype = JS_STRING]; */
|
|
106
|
+
if (message.id !== "0")
|
|
107
|
+
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
108
|
+
/* string name = 2; */
|
|
109
|
+
if (message.name !== "")
|
|
110
|
+
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
111
|
+
/* optional string description = 3; */
|
|
112
|
+
if (message.description !== undefined)
|
|
113
|
+
writer.tag(3, WireType.LengthDelimited).string(message.description);
|
|
114
|
+
/* optional string job = 4; */
|
|
115
|
+
if (message.job !== undefined)
|
|
116
|
+
writer.tag(4, WireType.LengthDelimited).string(message.job);
|
|
117
|
+
/* optional string color = 5; */
|
|
118
|
+
if (message.color !== undefined)
|
|
119
|
+
writer.tag(5, WireType.LengthDelimited).string(message.color);
|
|
120
|
+
/* optional string icon = 6; */
|
|
121
|
+
if (message.icon !== undefined)
|
|
122
|
+
writer.tag(6, WireType.LengthDelimited).string(message.icon);
|
|
123
|
+
let u = options.writeUnknownFields;
|
|
124
|
+
if (u !== false)
|
|
125
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
126
|
+
return writer;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* @generated MessageType for protobuf message resources.documents.Category
|
|
131
|
+
*/
|
|
132
|
+
export const Category = new Category$Type();
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none
|
|
2
|
+
// @generated from protobuf file "resources/documents/comment.proto" (package "resources.documents", syntax proto3)
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
6
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
7
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
8
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
9
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
10
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
+
import { UserShort } from "../users/users";
|
|
14
|
+
import { Content } from "../common/content/content";
|
|
15
|
+
import { Timestamp } from "../timestamp/timestamp";
|
|
16
|
+
/**
|
|
17
|
+
* @generated from protobuf message resources.documents.Comment
|
|
18
|
+
*/
|
|
19
|
+
export interface Comment {
|
|
20
|
+
/**
|
|
21
|
+
* @generated from protobuf field: uint64 id = 1 [jstype = JS_STRING];
|
|
22
|
+
*/
|
|
23
|
+
id: string; // @gotags: alias:"id"
|
|
24
|
+
/**
|
|
25
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp created_at = 2;
|
|
26
|
+
*/
|
|
27
|
+
createdAt?: Timestamp;
|
|
28
|
+
/**
|
|
29
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp updated_at = 3;
|
|
30
|
+
*/
|
|
31
|
+
updatedAt?: Timestamp;
|
|
32
|
+
/**
|
|
33
|
+
* @generated from protobuf field: optional resources.timestamp.Timestamp deleted_at = 4;
|
|
34
|
+
*/
|
|
35
|
+
deletedAt?: Timestamp;
|
|
36
|
+
/**
|
|
37
|
+
* @generated from protobuf field: uint64 document_id = 5 [jstype = JS_STRING];
|
|
38
|
+
*/
|
|
39
|
+
documentId: string;
|
|
40
|
+
/**
|
|
41
|
+
* @generated from protobuf field: resources.common.content.Content content = 6;
|
|
42
|
+
*/
|
|
43
|
+
content?: Content;
|
|
44
|
+
/**
|
|
45
|
+
* @generated from protobuf field: optional int32 creator_id = 7;
|
|
46
|
+
*/
|
|
47
|
+
creatorId?: number;
|
|
48
|
+
/**
|
|
49
|
+
* @generated from protobuf field: optional resources.users.UserShort creator = 8;
|
|
50
|
+
*/
|
|
51
|
+
creator?: UserShort; // @gotags: alias:"creator"
|
|
52
|
+
/**
|
|
53
|
+
* @generated from protobuf field: string creator_job = 9;
|
|
54
|
+
*/
|
|
55
|
+
creatorJob: string;
|
|
56
|
+
}
|
|
57
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
58
|
+
class Comment$Type extends MessageType<Comment> {
|
|
59
|
+
constructor() {
|
|
60
|
+
super("resources.documents.Comment", [
|
|
61
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
62
|
+
{ no: 2, name: "created_at", kind: "message", T: () => Timestamp },
|
|
63
|
+
{ no: 3, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
64
|
+
{ no: 4, name: "deleted_at", kind: "message", T: () => Timestamp },
|
|
65
|
+
{ no: 5, name: "document_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
66
|
+
{ no: 6, name: "content", kind: "message", T: () => Content },
|
|
67
|
+
{ no: 7, name: "creator_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } },
|
|
68
|
+
{ no: 8, name: "creator", kind: "message", T: () => UserShort },
|
|
69
|
+
{ no: 9, name: "creator_job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } }
|
|
70
|
+
]);
|
|
71
|
+
}
|
|
72
|
+
create(value?: PartialMessage<Comment>): Comment {
|
|
73
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
74
|
+
message.id = "0";
|
|
75
|
+
message.documentId = "0";
|
|
76
|
+
message.creatorJob = "";
|
|
77
|
+
if (value !== undefined)
|
|
78
|
+
reflectionMergePartial<Comment>(this, message, value);
|
|
79
|
+
return message;
|
|
80
|
+
}
|
|
81
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Comment): Comment {
|
|
82
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
83
|
+
while (reader.pos < end) {
|
|
84
|
+
let [fieldNo, wireType] = reader.tag();
|
|
85
|
+
switch (fieldNo) {
|
|
86
|
+
case /* uint64 id = 1 [jstype = JS_STRING];*/ 1:
|
|
87
|
+
message.id = reader.uint64().toString();
|
|
88
|
+
break;
|
|
89
|
+
case /* optional resources.timestamp.Timestamp created_at */ 2:
|
|
90
|
+
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
91
|
+
break;
|
|
92
|
+
case /* optional resources.timestamp.Timestamp updated_at */ 3:
|
|
93
|
+
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
94
|
+
break;
|
|
95
|
+
case /* optional resources.timestamp.Timestamp deleted_at */ 4:
|
|
96
|
+
message.deletedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedAt);
|
|
97
|
+
break;
|
|
98
|
+
case /* uint64 document_id = 5 [jstype = JS_STRING];*/ 5:
|
|
99
|
+
message.documentId = reader.uint64().toString();
|
|
100
|
+
break;
|
|
101
|
+
case /* resources.common.content.Content content */ 6:
|
|
102
|
+
message.content = Content.internalBinaryRead(reader, reader.uint32(), options, message.content);
|
|
103
|
+
break;
|
|
104
|
+
case /* optional int32 creator_id */ 7:
|
|
105
|
+
message.creatorId = reader.int32();
|
|
106
|
+
break;
|
|
107
|
+
case /* optional resources.users.UserShort creator */ 8:
|
|
108
|
+
message.creator = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.creator);
|
|
109
|
+
break;
|
|
110
|
+
case /* string creator_job */ 9:
|
|
111
|
+
message.creatorJob = reader.string();
|
|
112
|
+
break;
|
|
113
|
+
default:
|
|
114
|
+
let u = options.readUnknownField;
|
|
115
|
+
if (u === "throw")
|
|
116
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
117
|
+
let d = reader.skip(wireType);
|
|
118
|
+
if (u !== false)
|
|
119
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
return message;
|
|
123
|
+
}
|
|
124
|
+
internalBinaryWrite(message: Comment, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
125
|
+
/* uint64 id = 1 [jstype = JS_STRING]; */
|
|
126
|
+
if (message.id !== "0")
|
|
127
|
+
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
128
|
+
/* optional resources.timestamp.Timestamp created_at = 2; */
|
|
129
|
+
if (message.createdAt)
|
|
130
|
+
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
131
|
+
/* optional resources.timestamp.Timestamp updated_at = 3; */
|
|
132
|
+
if (message.updatedAt)
|
|
133
|
+
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
134
|
+
/* optional resources.timestamp.Timestamp deleted_at = 4; */
|
|
135
|
+
if (message.deletedAt)
|
|
136
|
+
Timestamp.internalBinaryWrite(message.deletedAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
137
|
+
/* uint64 document_id = 5 [jstype = JS_STRING]; */
|
|
138
|
+
if (message.documentId !== "0")
|
|
139
|
+
writer.tag(5, WireType.Varint).uint64(message.documentId);
|
|
140
|
+
/* resources.common.content.Content content = 6; */
|
|
141
|
+
if (message.content)
|
|
142
|
+
Content.internalBinaryWrite(message.content, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
143
|
+
/* optional int32 creator_id = 7; */
|
|
144
|
+
if (message.creatorId !== undefined)
|
|
145
|
+
writer.tag(7, WireType.Varint).int32(message.creatorId);
|
|
146
|
+
/* optional resources.users.UserShort creator = 8; */
|
|
147
|
+
if (message.creator)
|
|
148
|
+
UserShort.internalBinaryWrite(message.creator, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
149
|
+
/* string creator_job = 9; */
|
|
150
|
+
if (message.creatorJob !== "")
|
|
151
|
+
writer.tag(9, WireType.LengthDelimited).string(message.creatorJob);
|
|
152
|
+
let u = options.writeUnknownFields;
|
|
153
|
+
if (u !== false)
|
|
154
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
155
|
+
return writer;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* @generated MessageType for protobuf message resources.documents.Comment
|
|
160
|
+
*/
|
|
161
|
+
export const Comment = new Comment$Type();
|