@se-uulm/snowballr-grpc-client 0.2.0 → 0.2.1-alpha.2fd7ace
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/dist/authentication.d.ts +216 -0
- package/dist/{authentication.ts → authentication.js} +50 -155
- package/dist/base.d.ts +139 -0
- package/dist/{base.ts → base.js} +43 -108
- package/dist/criterion.d.ts +170 -0
- package/dist/{criterion.ts → criterion.js} +33 -122
- package/dist/export.d.ts +84 -0
- package/dist/{export.ts → export.js} +19 -65
- package/dist/fetcher.d.ts +161 -0
- package/dist/{fetcher.ts → fetcher.js} +30 -140
- package/dist/google/protobuf/{field_mask.ts → field_mask.d.ts} +10 -73
- package/dist/google/protobuf/field_mask.js +117 -0
- package/dist/google/protobuf/{timestamp.ts → timestamp.d.ts} +13 -111
- package/dist/google/protobuf/timestamp.js +166 -0
- package/dist/{main.client.ts → main.client.d.ts} +135 -362
- package/dist/main.client.js +1690 -0
- package/dist/main.d.ts +10 -0
- package/dist/{main.ts → main.js} +60 -54
- package/dist/paper.d.ts +217 -0
- package/dist/{paper.ts → paper.js} +41 -187
- package/dist/project.d.ts +866 -0
- package/dist/{project.ts → project.js} +195 -641
- package/dist/review.d.ts +153 -0
- package/dist/{review.ts → review.js} +33 -105
- package/dist/user.d.ts +157 -0
- package/dist/{user.ts → user.js} +33 -93
- package/dist/user_settings.d.ts +74 -0
- package/dist/{user_settings.ts → user_settings.js} +16 -59
- package/package.json +15 -6
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies,output_javascript
|
|
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 type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
10
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
11
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
12
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
+
import { Link } from "./base.js";
|
|
14
|
+
/**
|
|
15
|
+
* Response of available fetchers.
|
|
16
|
+
*
|
|
17
|
+
* @generated from protobuf message snowballr.AvailableFetchers
|
|
18
|
+
*/
|
|
19
|
+
export interface AvailableFetchers {
|
|
20
|
+
/**
|
|
21
|
+
* @generated from protobuf field: repeated snowballr.FetcherInformation fetchers = 2
|
|
22
|
+
*/
|
|
23
|
+
fetchers: FetcherInformation[];
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Options that are used by a fetcher to control behavior.
|
|
27
|
+
*
|
|
28
|
+
* @generated from protobuf message snowballr.FetcherOptions
|
|
29
|
+
*/
|
|
30
|
+
export interface FetcherOptions {
|
|
31
|
+
/**
|
|
32
|
+
* Map the option name to a (default) value
|
|
33
|
+
*
|
|
34
|
+
* @generated from protobuf field: map<string, string> options = 1
|
|
35
|
+
*/
|
|
36
|
+
options: {
|
|
37
|
+
[key: string]: string;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Information about a fetcher, which can be used to generate a UI for it.
|
|
42
|
+
*
|
|
43
|
+
* @generated from protobuf message snowballr.FetcherInformation
|
|
44
|
+
*/
|
|
45
|
+
export interface FetcherInformation {
|
|
46
|
+
/**
|
|
47
|
+
* The unique identifier of the fetcher. This is used to identify the fetcher.
|
|
48
|
+
*
|
|
49
|
+
* @generated from protobuf field: string id = 1
|
|
50
|
+
*/
|
|
51
|
+
id: string;
|
|
52
|
+
/**
|
|
53
|
+
* A human readable name of the fetcher.
|
|
54
|
+
*
|
|
55
|
+
* @generated from protobuf field: string name = 2
|
|
56
|
+
*/
|
|
57
|
+
name: string;
|
|
58
|
+
/**
|
|
59
|
+
* A description of the fetcher, which can be used to generate a UI for it.
|
|
60
|
+
*
|
|
61
|
+
* @generated from protobuf field: string description = 3
|
|
62
|
+
*/
|
|
63
|
+
description: string;
|
|
64
|
+
/**
|
|
65
|
+
* A list of links related to this fetcher, e.g. documentation or source code.
|
|
66
|
+
*
|
|
67
|
+
* @generated from protobuf field: repeated snowballr.Link links = 4
|
|
68
|
+
*/
|
|
69
|
+
links: Link[];
|
|
70
|
+
/**
|
|
71
|
+
* A map of option name to its schema, which describes the option and can be used to generate a
|
|
72
|
+
* UI for it. Also used to validate the options provided by the user when using the fetcher.
|
|
73
|
+
*
|
|
74
|
+
* @generated from protobuf field: map<string, snowballr.FetcherOptionSchema> options_schema = 5
|
|
75
|
+
*/
|
|
76
|
+
optionsSchema: {
|
|
77
|
+
[key: string]: FetcherOptionSchema;
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Schema for a fetcher option, which describes the option and can be used to generate a UI for it.
|
|
82
|
+
*
|
|
83
|
+
* @generated from protobuf message snowballr.FetcherOptionSchema
|
|
84
|
+
*/
|
|
85
|
+
export interface FetcherOptionSchema {
|
|
86
|
+
/**
|
|
87
|
+
* A human readable name of the option.
|
|
88
|
+
*
|
|
89
|
+
* @generated from protobuf field: string name = 1
|
|
90
|
+
*/
|
|
91
|
+
name: string;
|
|
92
|
+
/**
|
|
93
|
+
* A description of the option, which can be used to generate a UI for it.
|
|
94
|
+
*
|
|
95
|
+
* @generated from protobuf field: string description = 2
|
|
96
|
+
*/
|
|
97
|
+
description: string;
|
|
98
|
+
/**
|
|
99
|
+
* Whether this option is required or not. If an option is required, it must be provided by the
|
|
100
|
+
* user when using the fetcher.
|
|
101
|
+
*
|
|
102
|
+
* @generated from protobuf field: bool required = 3
|
|
103
|
+
*/
|
|
104
|
+
required: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Whether this option is secret or not. If an option is secret, it should be handled with care
|
|
107
|
+
* and not be exposed in logs and obfuscated in the UI.
|
|
108
|
+
*
|
|
109
|
+
* @generated from protobuf field: bool is_secret = 4
|
|
110
|
+
*/
|
|
111
|
+
isSecret: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* An optional default value for this option.
|
|
114
|
+
*
|
|
115
|
+
* @generated from protobuf field: optional string default_value = 5
|
|
116
|
+
*/
|
|
117
|
+
defaultValue?: string;
|
|
118
|
+
}
|
|
119
|
+
declare class AvailableFetchers$Type extends MessageType<AvailableFetchers> {
|
|
120
|
+
constructor();
|
|
121
|
+
create(value?: PartialMessage<AvailableFetchers>): AvailableFetchers;
|
|
122
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AvailableFetchers): AvailableFetchers;
|
|
123
|
+
internalBinaryWrite(message: AvailableFetchers, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* @generated MessageType for protobuf message snowballr.AvailableFetchers
|
|
127
|
+
*/
|
|
128
|
+
export declare const AvailableFetchers: AvailableFetchers$Type;
|
|
129
|
+
declare class FetcherOptions$Type extends MessageType<FetcherOptions> {
|
|
130
|
+
constructor();
|
|
131
|
+
create(value?: PartialMessage<FetcherOptions>): FetcherOptions;
|
|
132
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FetcherOptions): FetcherOptions;
|
|
133
|
+
private binaryReadMap1;
|
|
134
|
+
internalBinaryWrite(message: FetcherOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* @generated MessageType for protobuf message snowballr.FetcherOptions
|
|
138
|
+
*/
|
|
139
|
+
export declare const FetcherOptions: FetcherOptions$Type;
|
|
140
|
+
declare class FetcherInformation$Type extends MessageType<FetcherInformation> {
|
|
141
|
+
constructor();
|
|
142
|
+
create(value?: PartialMessage<FetcherInformation>): FetcherInformation;
|
|
143
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FetcherInformation): FetcherInformation;
|
|
144
|
+
private binaryReadMap5;
|
|
145
|
+
internalBinaryWrite(message: FetcherInformation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* @generated MessageType for protobuf message snowballr.FetcherInformation
|
|
149
|
+
*/
|
|
150
|
+
export declare const FetcherInformation: FetcherInformation$Type;
|
|
151
|
+
declare class FetcherOptionSchema$Type extends MessageType<FetcherOptionSchema> {
|
|
152
|
+
constructor();
|
|
153
|
+
create(value?: PartialMessage<FetcherOptionSchema>): FetcherOptionSchema;
|
|
154
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FetcherOptionSchema): FetcherOptionSchema;
|
|
155
|
+
internalBinaryWrite(message: FetcherOptionSchema, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* @generated MessageType for protobuf message snowballr.FetcherOptionSchema
|
|
159
|
+
*/
|
|
160
|
+
export declare const FetcherOptionSchema: FetcherOptionSchema$Type;
|
|
161
|
+
export {};
|
|
@@ -1,139 +1,29 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies,output_javascript
|
|
2
2
|
// @generated from protobuf file "fetcher.proto" (package "snowballr", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
4
|
//
|
|
5
5
|
/// Fetcher related messages and enums of the SnowballR app.
|
|
6
6
|
//
|
|
7
|
-
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
8
|
-
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
9
7
|
import { WireType } from "@protobuf-ts/runtime";
|
|
10
|
-
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
11
|
-
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
12
8
|
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
13
|
-
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
14
9
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
15
10
|
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
|
-
}
|
|
11
|
+
import { Link } from "./base.js";
|
|
122
12
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
123
|
-
class AvailableFetchers$Type extends MessageType
|
|
13
|
+
class AvailableFetchers$Type extends MessageType {
|
|
124
14
|
constructor() {
|
|
125
15
|
super("snowballr.AvailableFetchers", [
|
|
126
16
|
{ no: 2, name: "fetchers", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FetcherInformation }
|
|
127
17
|
]);
|
|
128
18
|
}
|
|
129
|
-
create(value
|
|
130
|
-
const message = globalThis.Object.create((this.messagePrototype
|
|
19
|
+
create(value) {
|
|
20
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
131
21
|
message.fetchers = [];
|
|
132
22
|
if (value !== undefined)
|
|
133
|
-
reflectionMergePartial
|
|
23
|
+
reflectionMergePartial(this, message, value);
|
|
134
24
|
return message;
|
|
135
25
|
}
|
|
136
|
-
internalBinaryRead(reader
|
|
26
|
+
internalBinaryRead(reader, length, options, target) {
|
|
137
27
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
138
28
|
while (reader.pos < end) {
|
|
139
29
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -152,7 +42,7 @@ class AvailableFetchers$Type extends MessageType<AvailableFetchers> {
|
|
|
152
42
|
}
|
|
153
43
|
return message;
|
|
154
44
|
}
|
|
155
|
-
internalBinaryWrite(message
|
|
45
|
+
internalBinaryWrite(message, writer, options) {
|
|
156
46
|
/* repeated snowballr.FetcherInformation fetchers = 2; */
|
|
157
47
|
for (let i = 0; i < message.fetchers.length; i++)
|
|
158
48
|
FetcherInformation.internalBinaryWrite(message.fetchers[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -167,20 +57,20 @@ class AvailableFetchers$Type extends MessageType<AvailableFetchers> {
|
|
|
167
57
|
*/
|
|
168
58
|
export const AvailableFetchers = new AvailableFetchers$Type();
|
|
169
59
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
170
|
-
class FetcherOptions$Type extends MessageType
|
|
60
|
+
class FetcherOptions$Type extends MessageType {
|
|
171
61
|
constructor() {
|
|
172
62
|
super("snowballr.FetcherOptions", [
|
|
173
63
|
{ no: 1, name: "options", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } }
|
|
174
64
|
]);
|
|
175
65
|
}
|
|
176
|
-
create(value
|
|
177
|
-
const message = globalThis.Object.create((this.messagePrototype
|
|
66
|
+
create(value) {
|
|
67
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
178
68
|
message.options = {};
|
|
179
69
|
if (value !== undefined)
|
|
180
|
-
reflectionMergePartial
|
|
70
|
+
reflectionMergePartial(this, message, value);
|
|
181
71
|
return message;
|
|
182
72
|
}
|
|
183
|
-
internalBinaryRead(reader
|
|
73
|
+
internalBinaryRead(reader, length, options, target) {
|
|
184
74
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
185
75
|
while (reader.pos < end) {
|
|
186
76
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -199,8 +89,8 @@ class FetcherOptions$Type extends MessageType<FetcherOptions> {
|
|
|
199
89
|
}
|
|
200
90
|
return message;
|
|
201
91
|
}
|
|
202
|
-
|
|
203
|
-
let len = reader.uint32(), end = reader.pos + len, key
|
|
92
|
+
binaryReadMap1(map, reader, options) {
|
|
93
|
+
let len = reader.uint32(), end = reader.pos + len, key, val;
|
|
204
94
|
while (reader.pos < end) {
|
|
205
95
|
let [fieldNo, wireType] = reader.tag();
|
|
206
96
|
switch (fieldNo) {
|
|
@@ -215,7 +105,7 @@ class FetcherOptions$Type extends MessageType<FetcherOptions> {
|
|
|
215
105
|
}
|
|
216
106
|
map[key ?? ""] = val ?? "";
|
|
217
107
|
}
|
|
218
|
-
internalBinaryWrite(message
|
|
108
|
+
internalBinaryWrite(message, writer, options) {
|
|
219
109
|
/* map<string, string> options = 1; */
|
|
220
110
|
for (let k of globalThis.Object.keys(message.options))
|
|
221
111
|
writer.tag(1, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.options[k]).join();
|
|
@@ -230,7 +120,7 @@ class FetcherOptions$Type extends MessageType<FetcherOptions> {
|
|
|
230
120
|
*/
|
|
231
121
|
export const FetcherOptions = new FetcherOptions$Type();
|
|
232
122
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
233
|
-
class FetcherInformation$Type extends MessageType
|
|
123
|
+
class FetcherInformation$Type extends MessageType {
|
|
234
124
|
constructor() {
|
|
235
125
|
super("snowballr.FetcherInformation", [
|
|
236
126
|
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
@@ -240,18 +130,18 @@ class FetcherInformation$Type extends MessageType<FetcherInformation> {
|
|
|
240
130
|
{ no: 5, name: "options_schema", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => FetcherOptionSchema } }
|
|
241
131
|
]);
|
|
242
132
|
}
|
|
243
|
-
create(value
|
|
244
|
-
const message = globalThis.Object.create((this.messagePrototype
|
|
133
|
+
create(value) {
|
|
134
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
245
135
|
message.id = "";
|
|
246
136
|
message.name = "";
|
|
247
137
|
message.description = "";
|
|
248
138
|
message.links = [];
|
|
249
139
|
message.optionsSchema = {};
|
|
250
140
|
if (value !== undefined)
|
|
251
|
-
reflectionMergePartial
|
|
141
|
+
reflectionMergePartial(this, message, value);
|
|
252
142
|
return message;
|
|
253
143
|
}
|
|
254
|
-
internalBinaryRead(reader
|
|
144
|
+
internalBinaryRead(reader, length, options, target) {
|
|
255
145
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
256
146
|
while (reader.pos < end) {
|
|
257
147
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -282,8 +172,8 @@ class FetcherInformation$Type extends MessageType<FetcherInformation> {
|
|
|
282
172
|
}
|
|
283
173
|
return message;
|
|
284
174
|
}
|
|
285
|
-
|
|
286
|
-
let len = reader.uint32(), end = reader.pos + len, key
|
|
175
|
+
binaryReadMap5(map, reader, options) {
|
|
176
|
+
let len = reader.uint32(), end = reader.pos + len, key, val;
|
|
287
177
|
while (reader.pos < end) {
|
|
288
178
|
let [fieldNo, wireType] = reader.tag();
|
|
289
179
|
switch (fieldNo) {
|
|
@@ -298,7 +188,7 @@ class FetcherInformation$Type extends MessageType<FetcherInformation> {
|
|
|
298
188
|
}
|
|
299
189
|
map[key ?? ""] = val ?? FetcherOptionSchema.create();
|
|
300
190
|
}
|
|
301
|
-
internalBinaryWrite(message
|
|
191
|
+
internalBinaryWrite(message, writer, options) {
|
|
302
192
|
/* string id = 1; */
|
|
303
193
|
if (message.id !== "")
|
|
304
194
|
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
@@ -329,7 +219,7 @@ class FetcherInformation$Type extends MessageType<FetcherInformation> {
|
|
|
329
219
|
*/
|
|
330
220
|
export const FetcherInformation = new FetcherInformation$Type();
|
|
331
221
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
332
|
-
class FetcherOptionSchema$Type extends MessageType
|
|
222
|
+
class FetcherOptionSchema$Type extends MessageType {
|
|
333
223
|
constructor() {
|
|
334
224
|
super("snowballr.FetcherOptionSchema", [
|
|
335
225
|
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
@@ -339,17 +229,17 @@ class FetcherOptionSchema$Type extends MessageType<FetcherOptionSchema> {
|
|
|
339
229
|
{ no: 5, name: "default_value", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
340
230
|
]);
|
|
341
231
|
}
|
|
342
|
-
create(value
|
|
343
|
-
const message = globalThis.Object.create((this.messagePrototype
|
|
232
|
+
create(value) {
|
|
233
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
344
234
|
message.name = "";
|
|
345
235
|
message.description = "";
|
|
346
236
|
message.required = false;
|
|
347
237
|
message.isSecret = false;
|
|
348
238
|
if (value !== undefined)
|
|
349
|
-
reflectionMergePartial
|
|
239
|
+
reflectionMergePartial(this, message, value);
|
|
350
240
|
return message;
|
|
351
241
|
}
|
|
352
|
-
internalBinaryRead(reader
|
|
242
|
+
internalBinaryRead(reader, length, options, target) {
|
|
353
243
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
354
244
|
while (reader.pos < end) {
|
|
355
245
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -380,7 +270,7 @@ class FetcherOptionSchema$Type extends MessageType<FetcherOptionSchema> {
|
|
|
380
270
|
}
|
|
381
271
|
return message;
|
|
382
272
|
}
|
|
383
|
-
internalBinaryWrite(message
|
|
273
|
+
internalBinaryWrite(message, writer, options) {
|
|
384
274
|
/* string name = 1; */
|
|
385
275
|
if (message.name !== "")
|
|
386
276
|
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies,output_javascript
|
|
2
2
|
// @generated from protobuf file "google/protobuf/field_mask.proto" (package "google.protobuf", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
4
|
//
|
|
@@ -34,15 +34,10 @@
|
|
|
34
34
|
//
|
|
35
35
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
36
36
|
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
37
|
-
import { WireType } from "@protobuf-ts/runtime";
|
|
38
37
|
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
39
38
|
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
40
|
-
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
41
39
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
42
|
-
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
43
|
-
import { typeofJsonValue } from "@protobuf-ts/runtime";
|
|
44
40
|
import type { JsonValue } from "@protobuf-ts/runtime";
|
|
45
|
-
import { lowerCamelCase } from "@protobuf-ts/runtime";
|
|
46
41
|
import type { JsonReadOptions } from "@protobuf-ts/runtime";
|
|
47
42
|
import type { JsonWriteOptions } from "@protobuf-ts/runtime";
|
|
48
43
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
@@ -255,80 +250,22 @@ export interface FieldMask {
|
|
|
255
250
|
*/
|
|
256
251
|
paths: string[];
|
|
257
252
|
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
constructor() {
|
|
261
|
-
super("google.protobuf.FieldMask", [
|
|
262
|
-
{ no: 1, name: "paths", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
263
|
-
]);
|
|
264
|
-
}
|
|
253
|
+
declare class FieldMask$Type extends MessageType<FieldMask> {
|
|
254
|
+
constructor();
|
|
265
255
|
/**
|
|
266
256
|
* Encode `FieldMask` to JSON object.
|
|
267
257
|
*/
|
|
268
|
-
internalJsonWrite(message: FieldMask, options: JsonWriteOptions): JsonValue
|
|
269
|
-
const invalidFieldMaskJsonRegex = /[A-Z]|(_([.0-9_]|$))/g;
|
|
270
|
-
return message.paths.map(p => {
|
|
271
|
-
if (invalidFieldMaskJsonRegex.test(p))
|
|
272
|
-
throw new Error("Unable to encode FieldMask to JSON. lowerCamelCase of path name \"" + p + "\" is irreversible.");
|
|
273
|
-
return lowerCamelCase(p);
|
|
274
|
-
}).join(",");
|
|
275
|
-
}
|
|
258
|
+
internalJsonWrite(message: FieldMask, options: JsonWriteOptions): JsonValue;
|
|
276
259
|
/**
|
|
277
260
|
* Decode `FieldMask` from JSON object.
|
|
278
261
|
*/
|
|
279
|
-
internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: FieldMask): FieldMask
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
target = this.create();
|
|
284
|
-
if (json === "")
|
|
285
|
-
return target;
|
|
286
|
-
let camelToSnake = (str: string) => {
|
|
287
|
-
if (str.includes("_"))
|
|
288
|
-
throw new Error("Unable to parse FieldMask from JSON. Path names must be lowerCamelCase.");
|
|
289
|
-
let sc = str.replace(/[A-Z]/g, letter => "_" + letter.toLowerCase());
|
|
290
|
-
return sc;
|
|
291
|
-
};
|
|
292
|
-
target.paths = json.split(",").map(camelToSnake);
|
|
293
|
-
return target;
|
|
294
|
-
}
|
|
295
|
-
create(value?: PartialMessage<FieldMask>): FieldMask {
|
|
296
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
297
|
-
message.paths = [];
|
|
298
|
-
if (value !== undefined)
|
|
299
|
-
reflectionMergePartial<FieldMask>(this, message, value);
|
|
300
|
-
return message;
|
|
301
|
-
}
|
|
302
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldMask): FieldMask {
|
|
303
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
304
|
-
while (reader.pos < end) {
|
|
305
|
-
let [fieldNo, wireType] = reader.tag();
|
|
306
|
-
switch (fieldNo) {
|
|
307
|
-
case /* repeated string paths */ 1:
|
|
308
|
-
message.paths.push(reader.string());
|
|
309
|
-
break;
|
|
310
|
-
default:
|
|
311
|
-
let u = options.readUnknownField;
|
|
312
|
-
if (u === "throw")
|
|
313
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
314
|
-
let d = reader.skip(wireType);
|
|
315
|
-
if (u !== false)
|
|
316
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
return message;
|
|
320
|
-
}
|
|
321
|
-
internalBinaryWrite(message: FieldMask, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
322
|
-
/* repeated string paths = 1; */
|
|
323
|
-
for (let i = 0; i < message.paths.length; i++)
|
|
324
|
-
writer.tag(1, WireType.LengthDelimited).string(message.paths[i]);
|
|
325
|
-
let u = options.writeUnknownFields;
|
|
326
|
-
if (u !== false)
|
|
327
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
328
|
-
return writer;
|
|
329
|
-
}
|
|
262
|
+
internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: FieldMask): FieldMask;
|
|
263
|
+
create(value?: PartialMessage<FieldMask>): FieldMask;
|
|
264
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldMask): FieldMask;
|
|
265
|
+
internalBinaryWrite(message: FieldMask, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
330
266
|
}
|
|
331
267
|
/**
|
|
332
268
|
* @generated MessageType for protobuf message google.protobuf.FieldMask
|
|
333
269
|
*/
|
|
334
|
-
export const FieldMask
|
|
270
|
+
export declare const FieldMask: FieldMask$Type;
|
|
271
|
+
export {};
|