@se-uulm/snowballr-grpc-client 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +58 -0
- package/LICENSE +674 -0
- package/README.md +6 -2
- package/dist/.gitkeep +0 -0
- package/dist/authentication.ts +525 -0
- package/dist/base.ts +362 -0
- package/dist/criterion.ts +390 -0
- package/dist/export.ts +213 -0
- package/dist/fetcher.ts +408 -0
- package/dist/google/protobuf/field_mask.ts +334 -0
- package/dist/google/protobuf/timestamp.ts +288 -0
- package/dist/main.client.ts +3197 -0
- package/dist/main.ts +140 -0
- package/dist/paper.ts +581 -0
- package/dist/project.ts +2110 -0
- package/dist/review.ts +349 -0
- package/dist/user.ts +316 -0
- package/dist/user_settings.ts +178 -0
- package/package.json +34 -5
package/dist/fetcher.ts
ADDED
|
@@ -0,0 +1,408 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies
|
|
2
|
+
// @generated from protobuf file "fetcher.proto" (package "snowballr", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
//
|
|
5
|
+
/// Fetcher related messages and enums of the SnowballR app.
|
|
6
|
+
//
|
|
7
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
8
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
9
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
10
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
11
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
12
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
13
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
14
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
15
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
16
|
+
import { Link } from "./base";
|
|
17
|
+
/**
|
|
18
|
+
* Response of available fetchers.
|
|
19
|
+
*
|
|
20
|
+
* @generated from protobuf message snowballr.AvailableFetchers
|
|
21
|
+
*/
|
|
22
|
+
export interface AvailableFetchers {
|
|
23
|
+
/**
|
|
24
|
+
* @generated from protobuf field: repeated snowballr.FetcherInformation fetchers = 2
|
|
25
|
+
*/
|
|
26
|
+
fetchers: FetcherInformation[];
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Options that are used by a fetcher to control behavior.
|
|
30
|
+
*
|
|
31
|
+
* @generated from protobuf message snowballr.FetcherOptions
|
|
32
|
+
*/
|
|
33
|
+
export interface FetcherOptions {
|
|
34
|
+
/**
|
|
35
|
+
* Map the option name to a (default) value
|
|
36
|
+
*
|
|
37
|
+
* @generated from protobuf field: map<string, string> options = 1
|
|
38
|
+
*/
|
|
39
|
+
options: {
|
|
40
|
+
[key: string]: string;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Information about a fetcher, which can be used to generate a UI for it.
|
|
45
|
+
*
|
|
46
|
+
* @generated from protobuf message snowballr.FetcherInformation
|
|
47
|
+
*/
|
|
48
|
+
export interface FetcherInformation {
|
|
49
|
+
/**
|
|
50
|
+
* The unique identifier of the fetcher. This is used to identify the fetcher.
|
|
51
|
+
*
|
|
52
|
+
* @generated from protobuf field: string id = 1
|
|
53
|
+
*/
|
|
54
|
+
id: string;
|
|
55
|
+
/**
|
|
56
|
+
* A human readable name of the fetcher.
|
|
57
|
+
*
|
|
58
|
+
* @generated from protobuf field: string name = 2
|
|
59
|
+
*/
|
|
60
|
+
name: string;
|
|
61
|
+
/**
|
|
62
|
+
* A description of the fetcher, which can be used to generate a UI for it.
|
|
63
|
+
*
|
|
64
|
+
* @generated from protobuf field: string description = 3
|
|
65
|
+
*/
|
|
66
|
+
description: string;
|
|
67
|
+
/**
|
|
68
|
+
* A list of links related to this fetcher, e.g. documentation or source code.
|
|
69
|
+
*
|
|
70
|
+
* @generated from protobuf field: repeated snowballr.Link links = 4
|
|
71
|
+
*/
|
|
72
|
+
links: Link[];
|
|
73
|
+
/**
|
|
74
|
+
* A map of option name to its schema, which describes the option and can be used to generate a
|
|
75
|
+
* UI for it. Also used to validate the options provided by the user when using the fetcher.
|
|
76
|
+
*
|
|
77
|
+
* @generated from protobuf field: map<string, snowballr.FetcherOptionSchema> options_schema = 5
|
|
78
|
+
*/
|
|
79
|
+
optionsSchema: {
|
|
80
|
+
[key: string]: FetcherOptionSchema;
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Schema for a fetcher option, which describes the option and can be used to generate a UI for it.
|
|
85
|
+
*
|
|
86
|
+
* @generated from protobuf message snowballr.FetcherOptionSchema
|
|
87
|
+
*/
|
|
88
|
+
export interface FetcherOptionSchema {
|
|
89
|
+
/**
|
|
90
|
+
* A human readable name of the option.
|
|
91
|
+
*
|
|
92
|
+
* @generated from protobuf field: string name = 1
|
|
93
|
+
*/
|
|
94
|
+
name: string;
|
|
95
|
+
/**
|
|
96
|
+
* A description of the option, which can be used to generate a UI for it.
|
|
97
|
+
*
|
|
98
|
+
* @generated from protobuf field: string description = 2
|
|
99
|
+
*/
|
|
100
|
+
description: string;
|
|
101
|
+
/**
|
|
102
|
+
* Whether this option is required or not. If an option is required, it must be provided by the
|
|
103
|
+
* user when using the fetcher.
|
|
104
|
+
*
|
|
105
|
+
* @generated from protobuf field: bool required = 3
|
|
106
|
+
*/
|
|
107
|
+
required: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Whether this option is secret or not. If an option is secret, it should be handled with care
|
|
110
|
+
* and not be exposed in logs and obfuscated in the UI.
|
|
111
|
+
*
|
|
112
|
+
* @generated from protobuf field: bool is_secret = 4
|
|
113
|
+
*/
|
|
114
|
+
isSecret: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* An optional default value for this option.
|
|
117
|
+
*
|
|
118
|
+
* @generated from protobuf field: optional string default_value = 5
|
|
119
|
+
*/
|
|
120
|
+
defaultValue?: string;
|
|
121
|
+
}
|
|
122
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
123
|
+
class AvailableFetchers$Type extends MessageType<AvailableFetchers> {
|
|
124
|
+
constructor() {
|
|
125
|
+
super("snowballr.AvailableFetchers", [
|
|
126
|
+
{ no: 2, name: "fetchers", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FetcherInformation }
|
|
127
|
+
]);
|
|
128
|
+
}
|
|
129
|
+
create(value?: PartialMessage<AvailableFetchers>): AvailableFetchers {
|
|
130
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
131
|
+
message.fetchers = [];
|
|
132
|
+
if (value !== undefined)
|
|
133
|
+
reflectionMergePartial<AvailableFetchers>(this, message, value);
|
|
134
|
+
return message;
|
|
135
|
+
}
|
|
136
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AvailableFetchers): AvailableFetchers {
|
|
137
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
138
|
+
while (reader.pos < end) {
|
|
139
|
+
let [fieldNo, wireType] = reader.tag();
|
|
140
|
+
switch (fieldNo) {
|
|
141
|
+
case /* repeated snowballr.FetcherInformation fetchers */ 2:
|
|
142
|
+
message.fetchers.push(FetcherInformation.internalBinaryRead(reader, reader.uint32(), options));
|
|
143
|
+
break;
|
|
144
|
+
default:
|
|
145
|
+
let u = options.readUnknownField;
|
|
146
|
+
if (u === "throw")
|
|
147
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
148
|
+
let d = reader.skip(wireType);
|
|
149
|
+
if (u !== false)
|
|
150
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
return message;
|
|
154
|
+
}
|
|
155
|
+
internalBinaryWrite(message: AvailableFetchers, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
156
|
+
/* repeated snowballr.FetcherInformation fetchers = 2; */
|
|
157
|
+
for (let i = 0; i < message.fetchers.length; i++)
|
|
158
|
+
FetcherInformation.internalBinaryWrite(message.fetchers[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
159
|
+
let u = options.writeUnknownFields;
|
|
160
|
+
if (u !== false)
|
|
161
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
162
|
+
return writer;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* @generated MessageType for protobuf message snowballr.AvailableFetchers
|
|
167
|
+
*/
|
|
168
|
+
export const AvailableFetchers = new AvailableFetchers$Type();
|
|
169
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
170
|
+
class FetcherOptions$Type extends MessageType<FetcherOptions> {
|
|
171
|
+
constructor() {
|
|
172
|
+
super("snowballr.FetcherOptions", [
|
|
173
|
+
{ no: 1, name: "options", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } }
|
|
174
|
+
]);
|
|
175
|
+
}
|
|
176
|
+
create(value?: PartialMessage<FetcherOptions>): FetcherOptions {
|
|
177
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
178
|
+
message.options = {};
|
|
179
|
+
if (value !== undefined)
|
|
180
|
+
reflectionMergePartial<FetcherOptions>(this, message, value);
|
|
181
|
+
return message;
|
|
182
|
+
}
|
|
183
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FetcherOptions): FetcherOptions {
|
|
184
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
185
|
+
while (reader.pos < end) {
|
|
186
|
+
let [fieldNo, wireType] = reader.tag();
|
|
187
|
+
switch (fieldNo) {
|
|
188
|
+
case /* map<string, string> options */ 1:
|
|
189
|
+
this.binaryReadMap1(message.options, reader, options);
|
|
190
|
+
break;
|
|
191
|
+
default:
|
|
192
|
+
let u = options.readUnknownField;
|
|
193
|
+
if (u === "throw")
|
|
194
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
195
|
+
let d = reader.skip(wireType);
|
|
196
|
+
if (u !== false)
|
|
197
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
return message;
|
|
201
|
+
}
|
|
202
|
+
private binaryReadMap1(map: FetcherOptions["options"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
|
203
|
+
let len = reader.uint32(), end = reader.pos + len, key: keyof FetcherOptions["options"] | undefined, val: FetcherOptions["options"][any] | undefined;
|
|
204
|
+
while (reader.pos < end) {
|
|
205
|
+
let [fieldNo, wireType] = reader.tag();
|
|
206
|
+
switch (fieldNo) {
|
|
207
|
+
case 1:
|
|
208
|
+
key = reader.string();
|
|
209
|
+
break;
|
|
210
|
+
case 2:
|
|
211
|
+
val = reader.string();
|
|
212
|
+
break;
|
|
213
|
+
default: throw new globalThis.Error("unknown map entry field for snowballr.FetcherOptions.options");
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
map[key ?? ""] = val ?? "";
|
|
217
|
+
}
|
|
218
|
+
internalBinaryWrite(message: FetcherOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
219
|
+
/* map<string, string> options = 1; */
|
|
220
|
+
for (let k of globalThis.Object.keys(message.options))
|
|
221
|
+
writer.tag(1, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.options[k]).join();
|
|
222
|
+
let u = options.writeUnknownFields;
|
|
223
|
+
if (u !== false)
|
|
224
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
225
|
+
return writer;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* @generated MessageType for protobuf message snowballr.FetcherOptions
|
|
230
|
+
*/
|
|
231
|
+
export const FetcherOptions = new FetcherOptions$Type();
|
|
232
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
233
|
+
class FetcherInformation$Type extends MessageType<FetcherInformation> {
|
|
234
|
+
constructor() {
|
|
235
|
+
super("snowballr.FetcherInformation", [
|
|
236
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
237
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
238
|
+
{ no: 3, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
239
|
+
{ no: 4, name: "links", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Link },
|
|
240
|
+
{ no: 5, name: "options_schema", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => FetcherOptionSchema } }
|
|
241
|
+
]);
|
|
242
|
+
}
|
|
243
|
+
create(value?: PartialMessage<FetcherInformation>): FetcherInformation {
|
|
244
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
245
|
+
message.id = "";
|
|
246
|
+
message.name = "";
|
|
247
|
+
message.description = "";
|
|
248
|
+
message.links = [];
|
|
249
|
+
message.optionsSchema = {};
|
|
250
|
+
if (value !== undefined)
|
|
251
|
+
reflectionMergePartial<FetcherInformation>(this, message, value);
|
|
252
|
+
return message;
|
|
253
|
+
}
|
|
254
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FetcherInformation): FetcherInformation {
|
|
255
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
256
|
+
while (reader.pos < end) {
|
|
257
|
+
let [fieldNo, wireType] = reader.tag();
|
|
258
|
+
switch (fieldNo) {
|
|
259
|
+
case /* string id */ 1:
|
|
260
|
+
message.id = reader.string();
|
|
261
|
+
break;
|
|
262
|
+
case /* string name */ 2:
|
|
263
|
+
message.name = reader.string();
|
|
264
|
+
break;
|
|
265
|
+
case /* string description */ 3:
|
|
266
|
+
message.description = reader.string();
|
|
267
|
+
break;
|
|
268
|
+
case /* repeated snowballr.Link links */ 4:
|
|
269
|
+
message.links.push(Link.internalBinaryRead(reader, reader.uint32(), options));
|
|
270
|
+
break;
|
|
271
|
+
case /* map<string, snowballr.FetcherOptionSchema> options_schema */ 5:
|
|
272
|
+
this.binaryReadMap5(message.optionsSchema, reader, options);
|
|
273
|
+
break;
|
|
274
|
+
default:
|
|
275
|
+
let u = options.readUnknownField;
|
|
276
|
+
if (u === "throw")
|
|
277
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
278
|
+
let d = reader.skip(wireType);
|
|
279
|
+
if (u !== false)
|
|
280
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
return message;
|
|
284
|
+
}
|
|
285
|
+
private binaryReadMap5(map: FetcherInformation["optionsSchema"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
|
286
|
+
let len = reader.uint32(), end = reader.pos + len, key: keyof FetcherInformation["optionsSchema"] | undefined, val: FetcherInformation["optionsSchema"][any] | undefined;
|
|
287
|
+
while (reader.pos < end) {
|
|
288
|
+
let [fieldNo, wireType] = reader.tag();
|
|
289
|
+
switch (fieldNo) {
|
|
290
|
+
case 1:
|
|
291
|
+
key = reader.string();
|
|
292
|
+
break;
|
|
293
|
+
case 2:
|
|
294
|
+
val = FetcherOptionSchema.internalBinaryRead(reader, reader.uint32(), options);
|
|
295
|
+
break;
|
|
296
|
+
default: throw new globalThis.Error("unknown map entry field for snowballr.FetcherInformation.options_schema");
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
map[key ?? ""] = val ?? FetcherOptionSchema.create();
|
|
300
|
+
}
|
|
301
|
+
internalBinaryWrite(message: FetcherInformation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
302
|
+
/* string id = 1; */
|
|
303
|
+
if (message.id !== "")
|
|
304
|
+
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
305
|
+
/* string name = 2; */
|
|
306
|
+
if (message.name !== "")
|
|
307
|
+
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
308
|
+
/* string description = 3; */
|
|
309
|
+
if (message.description !== "")
|
|
310
|
+
writer.tag(3, WireType.LengthDelimited).string(message.description);
|
|
311
|
+
/* repeated snowballr.Link links = 4; */
|
|
312
|
+
for (let i = 0; i < message.links.length; i++)
|
|
313
|
+
Link.internalBinaryWrite(message.links[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
314
|
+
/* map<string, snowballr.FetcherOptionSchema> options_schema = 5; */
|
|
315
|
+
for (let k of globalThis.Object.keys(message.optionsSchema)) {
|
|
316
|
+
writer.tag(5, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
|
317
|
+
writer.tag(2, WireType.LengthDelimited).fork();
|
|
318
|
+
FetcherOptionSchema.internalBinaryWrite(message.optionsSchema[k], writer, options);
|
|
319
|
+
writer.join().join();
|
|
320
|
+
}
|
|
321
|
+
let u = options.writeUnknownFields;
|
|
322
|
+
if (u !== false)
|
|
323
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
324
|
+
return writer;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* @generated MessageType for protobuf message snowballr.FetcherInformation
|
|
329
|
+
*/
|
|
330
|
+
export const FetcherInformation = new FetcherInformation$Type();
|
|
331
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
332
|
+
class FetcherOptionSchema$Type extends MessageType<FetcherOptionSchema> {
|
|
333
|
+
constructor() {
|
|
334
|
+
super("snowballr.FetcherOptionSchema", [
|
|
335
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
336
|
+
{ no: 2, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
337
|
+
{ no: 3, name: "required", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
338
|
+
{ no: 4, name: "is_secret", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
339
|
+
{ no: 5, name: "default_value", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
340
|
+
]);
|
|
341
|
+
}
|
|
342
|
+
create(value?: PartialMessage<FetcherOptionSchema>): FetcherOptionSchema {
|
|
343
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
344
|
+
message.name = "";
|
|
345
|
+
message.description = "";
|
|
346
|
+
message.required = false;
|
|
347
|
+
message.isSecret = false;
|
|
348
|
+
if (value !== undefined)
|
|
349
|
+
reflectionMergePartial<FetcherOptionSchema>(this, message, value);
|
|
350
|
+
return message;
|
|
351
|
+
}
|
|
352
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FetcherOptionSchema): FetcherOptionSchema {
|
|
353
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
354
|
+
while (reader.pos < end) {
|
|
355
|
+
let [fieldNo, wireType] = reader.tag();
|
|
356
|
+
switch (fieldNo) {
|
|
357
|
+
case /* string name */ 1:
|
|
358
|
+
message.name = reader.string();
|
|
359
|
+
break;
|
|
360
|
+
case /* string description */ 2:
|
|
361
|
+
message.description = reader.string();
|
|
362
|
+
break;
|
|
363
|
+
case /* bool required */ 3:
|
|
364
|
+
message.required = reader.bool();
|
|
365
|
+
break;
|
|
366
|
+
case /* bool is_secret */ 4:
|
|
367
|
+
message.isSecret = reader.bool();
|
|
368
|
+
break;
|
|
369
|
+
case /* optional string default_value */ 5:
|
|
370
|
+
message.defaultValue = reader.string();
|
|
371
|
+
break;
|
|
372
|
+
default:
|
|
373
|
+
let u = options.readUnknownField;
|
|
374
|
+
if (u === "throw")
|
|
375
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
376
|
+
let d = reader.skip(wireType);
|
|
377
|
+
if (u !== false)
|
|
378
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
return message;
|
|
382
|
+
}
|
|
383
|
+
internalBinaryWrite(message: FetcherOptionSchema, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
384
|
+
/* string name = 1; */
|
|
385
|
+
if (message.name !== "")
|
|
386
|
+
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
|
387
|
+
/* string description = 2; */
|
|
388
|
+
if (message.description !== "")
|
|
389
|
+
writer.tag(2, WireType.LengthDelimited).string(message.description);
|
|
390
|
+
/* bool required = 3; */
|
|
391
|
+
if (message.required !== false)
|
|
392
|
+
writer.tag(3, WireType.Varint).bool(message.required);
|
|
393
|
+
/* bool is_secret = 4; */
|
|
394
|
+
if (message.isSecret !== false)
|
|
395
|
+
writer.tag(4, WireType.Varint).bool(message.isSecret);
|
|
396
|
+
/* optional string default_value = 5; */
|
|
397
|
+
if (message.defaultValue !== undefined)
|
|
398
|
+
writer.tag(5, WireType.LengthDelimited).string(message.defaultValue);
|
|
399
|
+
let u = options.writeUnknownFields;
|
|
400
|
+
if (u !== false)
|
|
401
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
402
|
+
return writer;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* @generated MessageType for protobuf message snowballr.FetcherOptionSchema
|
|
407
|
+
*/
|
|
408
|
+
export const FetcherOptionSchema = new FetcherOptionSchema$Type();
|