@v1nt1248/3nclient-lib 0.0.13 → 0.0.15
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/index.d.ts +1 -0
- package/dist/libs/index.d.ts +3 -4
- package/dist/libs/ipc-service-caller.d.ts +2 -3
- package/dist/libs/ipc-service.d.ts +5 -6
- package/dist/libs/serialization-for-ipc/copy-json.d.ts +8 -0
- package/dist/libs/serialization-for-ipc/protobuf-type.d.ts +10 -0
- package/dist/libs/sqlite-on-3nstorage/deferred.d.ts +6 -0
- package/dist/libs/sqlite-on-3nstorage/index.d.ts +6 -6
- package/dist/libs/sqlite-on-3nstorage/synced.d.ts +1 -1
- package/dist/ui-3n-lib.js +11897 -7953
- package/package.json +8 -5
- package/src/libs/index.ts +11 -0
- package/src/libs/ipc-service-caller.ts +121 -0
- package/src/libs/ipc-service.ts +422 -0
- package/src/libs/serialization-for-ipc/copy-json.ts +55 -0
- package/src/libs/serialization-for-ipc/json-ipc.proto.d.ts +432 -0
- package/src/libs/serialization-for-ipc/json-ipc.proto.js +1093 -0
- package/src/libs/serialization-for-ipc/json-n-binary.ts +275 -0
- package/src/libs/serialization-for-ipc/protobuf-type.ts +61 -0
- package/src/libs/sqlite-on-3nstorage/deferred.ts +32 -0
- package/src/libs/sqlite-on-3nstorage/index.ts +291 -0
- package/{dist → src}/libs/sqlite-on-3nstorage/sqljs.d.ts +26 -26
- package/{dist/libs/sqlite-on-3nstorage/index.js → src/libs/sqlite-on-3nstorage/sqljs.js} +97 -2680
- package/src/libs/sqlite-on-3nstorage/synced.ts +194 -0
- package/dist/libs/index.js +0 -4
- package/dist/libs/ipc-service-caller.js +0 -6129
- package/dist/libs/ipc-service.js +0 -6337
- package/dist/libs/serialization-for-ipc/json-n-binary.js +0 -6040
|
@@ -0,0 +1,432 @@
|
|
|
1
|
+
import * as $protobuf from "protobufjs";
|
|
2
|
+
import Long = require("long");
|
|
3
|
+
/** Namespace json_ipc. */
|
|
4
|
+
export namespace json_ipc {
|
|
5
|
+
|
|
6
|
+
/** Properties of a ValuesSequence. */
|
|
7
|
+
interface IValuesSequence {
|
|
8
|
+
|
|
9
|
+
/** ValuesSequence values */
|
|
10
|
+
values?: (json_ipc.ValuesSequence.IValue[]|null);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/** Represents a ValuesSequence. */
|
|
14
|
+
class ValuesSequence implements IValuesSequence {
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Constructs a new ValuesSequence.
|
|
18
|
+
* @param [properties] Properties to set
|
|
19
|
+
*/
|
|
20
|
+
constructor(properties?: json_ipc.IValuesSequence);
|
|
21
|
+
|
|
22
|
+
/** ValuesSequence values. */
|
|
23
|
+
public values: json_ipc.ValuesSequence.IValue[];
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Creates a new ValuesSequence instance using the specified properties.
|
|
27
|
+
* @param [properties] Properties to set
|
|
28
|
+
* @returns ValuesSequence instance
|
|
29
|
+
*/
|
|
30
|
+
public static create(properties?: json_ipc.IValuesSequence): json_ipc.ValuesSequence;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Encodes the specified ValuesSequence message. Does not implicitly {@link json_ipc.ValuesSequence.verify|verify} messages.
|
|
34
|
+
* @param message ValuesSequence message or plain object to encode
|
|
35
|
+
* @param [writer] Writer to encode to
|
|
36
|
+
* @returns Writer
|
|
37
|
+
*/
|
|
38
|
+
public static encode(message: json_ipc.IValuesSequence, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Encodes the specified ValuesSequence message, length delimited. Does not implicitly {@link json_ipc.ValuesSequence.verify|verify} messages.
|
|
42
|
+
* @param message ValuesSequence message or plain object to encode
|
|
43
|
+
* @param [writer] Writer to encode to
|
|
44
|
+
* @returns Writer
|
|
45
|
+
*/
|
|
46
|
+
public static encodeDelimited(message: json_ipc.IValuesSequence, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Decodes a ValuesSequence message from the specified reader or buffer.
|
|
50
|
+
* @param reader Reader or buffer to decode from
|
|
51
|
+
* @param [length] Message length if known beforehand
|
|
52
|
+
* @returns ValuesSequence
|
|
53
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
54
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
55
|
+
*/
|
|
56
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): json_ipc.ValuesSequence;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Decodes a ValuesSequence message from the specified reader or buffer, length delimited.
|
|
60
|
+
* @param reader Reader or buffer to decode from
|
|
61
|
+
* @returns ValuesSequence
|
|
62
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
63
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
64
|
+
*/
|
|
65
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): json_ipc.ValuesSequence;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Verifies a ValuesSequence message.
|
|
69
|
+
* @param message Plain object to verify
|
|
70
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
71
|
+
*/
|
|
72
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Creates a ValuesSequence message from a plain object. Also converts values to their respective internal types.
|
|
76
|
+
* @param object Plain object
|
|
77
|
+
* @returns ValuesSequence
|
|
78
|
+
*/
|
|
79
|
+
public static fromObject(object: { [k: string]: any }): json_ipc.ValuesSequence;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Creates a plain object from a ValuesSequence message. Also converts values to other types if specified.
|
|
83
|
+
* @param message ValuesSequence
|
|
84
|
+
* @param [options] Conversion options
|
|
85
|
+
* @returns Plain object
|
|
86
|
+
*/
|
|
87
|
+
public static toObject(message: json_ipc.ValuesSequence, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Converts this ValuesSequence to JSON.
|
|
91
|
+
* @returns JSON object
|
|
92
|
+
*/
|
|
93
|
+
public toJSON(): { [k: string]: any };
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Gets the default type url for ValuesSequence
|
|
97
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
98
|
+
* @returns The default type url
|
|
99
|
+
*/
|
|
100
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
namespace ValuesSequence {
|
|
104
|
+
|
|
105
|
+
/** Properties of a BinaryValue. */
|
|
106
|
+
interface IBinaryValue {
|
|
107
|
+
|
|
108
|
+
/** BinaryValue arr */
|
|
109
|
+
arr?: (Uint8Array|null);
|
|
110
|
+
|
|
111
|
+
/** BinaryValue objLocation */
|
|
112
|
+
objLocation?: (string[]|null);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/** Represents a BinaryValue. */
|
|
116
|
+
class BinaryValue implements IBinaryValue {
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Constructs a new BinaryValue.
|
|
120
|
+
* @param [properties] Properties to set
|
|
121
|
+
*/
|
|
122
|
+
constructor(properties?: json_ipc.ValuesSequence.IBinaryValue);
|
|
123
|
+
|
|
124
|
+
/** BinaryValue arr. */
|
|
125
|
+
public arr: Uint8Array;
|
|
126
|
+
|
|
127
|
+
/** BinaryValue objLocation. */
|
|
128
|
+
public objLocation: string[];
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Creates a new BinaryValue instance using the specified properties.
|
|
132
|
+
* @param [properties] Properties to set
|
|
133
|
+
* @returns BinaryValue instance
|
|
134
|
+
*/
|
|
135
|
+
public static create(properties?: json_ipc.ValuesSequence.IBinaryValue): json_ipc.ValuesSequence.BinaryValue;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Encodes the specified BinaryValue message. Does not implicitly {@link json_ipc.ValuesSequence.BinaryValue.verify|verify} messages.
|
|
139
|
+
* @param message BinaryValue message or plain object to encode
|
|
140
|
+
* @param [writer] Writer to encode to
|
|
141
|
+
* @returns Writer
|
|
142
|
+
*/
|
|
143
|
+
public static encode(message: json_ipc.ValuesSequence.IBinaryValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Encodes the specified BinaryValue message, length delimited. Does not implicitly {@link json_ipc.ValuesSequence.BinaryValue.verify|verify} messages.
|
|
147
|
+
* @param message BinaryValue message or plain object to encode
|
|
148
|
+
* @param [writer] Writer to encode to
|
|
149
|
+
* @returns Writer
|
|
150
|
+
*/
|
|
151
|
+
public static encodeDelimited(message: json_ipc.ValuesSequence.IBinaryValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Decodes a BinaryValue message from the specified reader or buffer.
|
|
155
|
+
* @param reader Reader or buffer to decode from
|
|
156
|
+
* @param [length] Message length if known beforehand
|
|
157
|
+
* @returns BinaryValue
|
|
158
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
159
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
160
|
+
*/
|
|
161
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): json_ipc.ValuesSequence.BinaryValue;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Decodes a BinaryValue message from the specified reader or buffer, length delimited.
|
|
165
|
+
* @param reader Reader or buffer to decode from
|
|
166
|
+
* @returns BinaryValue
|
|
167
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
168
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
169
|
+
*/
|
|
170
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): json_ipc.ValuesSequence.BinaryValue;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Verifies a BinaryValue message.
|
|
174
|
+
* @param message Plain object to verify
|
|
175
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
176
|
+
*/
|
|
177
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Creates a BinaryValue message from a plain object. Also converts values to their respective internal types.
|
|
181
|
+
* @param object Plain object
|
|
182
|
+
* @returns BinaryValue
|
|
183
|
+
*/
|
|
184
|
+
public static fromObject(object: { [k: string]: any }): json_ipc.ValuesSequence.BinaryValue;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Creates a plain object from a BinaryValue message. Also converts values to other types if specified.
|
|
188
|
+
* @param message BinaryValue
|
|
189
|
+
* @param [options] Conversion options
|
|
190
|
+
* @returns Plain object
|
|
191
|
+
*/
|
|
192
|
+
public static toObject(message: json_ipc.ValuesSequence.BinaryValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Converts this BinaryValue to JSON.
|
|
196
|
+
* @returns JSON object
|
|
197
|
+
*/
|
|
198
|
+
public toJSON(): { [k: string]: any };
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Gets the default type url for BinaryValue
|
|
202
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
203
|
+
* @returns The default type url
|
|
204
|
+
*/
|
|
205
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/** Properties of a TransferredObj. */
|
|
209
|
+
interface ITransferredObj {
|
|
210
|
+
|
|
211
|
+
/** TransferredObj indexInPassed */
|
|
212
|
+
indexInPassed?: (number|null);
|
|
213
|
+
|
|
214
|
+
/** TransferredObj objLocation */
|
|
215
|
+
objLocation?: (string[]|null);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/** Represents a TransferredObj. */
|
|
219
|
+
class TransferredObj implements ITransferredObj {
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Constructs a new TransferredObj.
|
|
223
|
+
* @param [properties] Properties to set
|
|
224
|
+
*/
|
|
225
|
+
constructor(properties?: json_ipc.ValuesSequence.ITransferredObj);
|
|
226
|
+
|
|
227
|
+
/** TransferredObj indexInPassed. */
|
|
228
|
+
public indexInPassed: number;
|
|
229
|
+
|
|
230
|
+
/** TransferredObj objLocation. */
|
|
231
|
+
public objLocation: string[];
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Creates a new TransferredObj instance using the specified properties.
|
|
235
|
+
* @param [properties] Properties to set
|
|
236
|
+
* @returns TransferredObj instance
|
|
237
|
+
*/
|
|
238
|
+
public static create(properties?: json_ipc.ValuesSequence.ITransferredObj): json_ipc.ValuesSequence.TransferredObj;
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Encodes the specified TransferredObj message. Does not implicitly {@link json_ipc.ValuesSequence.TransferredObj.verify|verify} messages.
|
|
242
|
+
* @param message TransferredObj message or plain object to encode
|
|
243
|
+
* @param [writer] Writer to encode to
|
|
244
|
+
* @returns Writer
|
|
245
|
+
*/
|
|
246
|
+
public static encode(message: json_ipc.ValuesSequence.ITransferredObj, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Encodes the specified TransferredObj message, length delimited. Does not implicitly {@link json_ipc.ValuesSequence.TransferredObj.verify|verify} messages.
|
|
250
|
+
* @param message TransferredObj message or plain object to encode
|
|
251
|
+
* @param [writer] Writer to encode to
|
|
252
|
+
* @returns Writer
|
|
253
|
+
*/
|
|
254
|
+
public static encodeDelimited(message: json_ipc.ValuesSequence.ITransferredObj, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Decodes a TransferredObj message from the specified reader or buffer.
|
|
258
|
+
* @param reader Reader or buffer to decode from
|
|
259
|
+
* @param [length] Message length if known beforehand
|
|
260
|
+
* @returns TransferredObj
|
|
261
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
262
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
263
|
+
*/
|
|
264
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): json_ipc.ValuesSequence.TransferredObj;
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Decodes a TransferredObj message from the specified reader or buffer, length delimited.
|
|
268
|
+
* @param reader Reader or buffer to decode from
|
|
269
|
+
* @returns TransferredObj
|
|
270
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
271
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
272
|
+
*/
|
|
273
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): json_ipc.ValuesSequence.TransferredObj;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Verifies a TransferredObj message.
|
|
277
|
+
* @param message Plain object to verify
|
|
278
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
279
|
+
*/
|
|
280
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Creates a TransferredObj message from a plain object. Also converts values to their respective internal types.
|
|
284
|
+
* @param object Plain object
|
|
285
|
+
* @returns TransferredObj
|
|
286
|
+
*/
|
|
287
|
+
public static fromObject(object: { [k: string]: any }): json_ipc.ValuesSequence.TransferredObj;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Creates a plain object from a TransferredObj message. Also converts values to other types if specified.
|
|
291
|
+
* @param message TransferredObj
|
|
292
|
+
* @param [options] Conversion options
|
|
293
|
+
* @returns Plain object
|
|
294
|
+
*/
|
|
295
|
+
public static toObject(message: json_ipc.ValuesSequence.TransferredObj, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Converts this TransferredObj to JSON.
|
|
299
|
+
* @returns JSON object
|
|
300
|
+
*/
|
|
301
|
+
public toJSON(): { [k: string]: any };
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Gets the default type url for TransferredObj
|
|
305
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
306
|
+
* @returns The default type url
|
|
307
|
+
*/
|
|
308
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
/** Properties of a Value. */
|
|
312
|
+
interface IValue {
|
|
313
|
+
|
|
314
|
+
/** Value json */
|
|
315
|
+
json?: (string|null);
|
|
316
|
+
|
|
317
|
+
/** Value binaryInJson */
|
|
318
|
+
binaryInJson?: (json_ipc.ValuesSequence.IBinaryValue[]|null);
|
|
319
|
+
|
|
320
|
+
/** Value transferredInJson */
|
|
321
|
+
transferredInJson?: (json_ipc.ValuesSequence.ITransferredObj[]|null);
|
|
322
|
+
|
|
323
|
+
/** Value arr */
|
|
324
|
+
arr?: (json_ipc.ValuesSequence.IBinaryValue|null);
|
|
325
|
+
|
|
326
|
+
/** Value transferred */
|
|
327
|
+
transferred?: (json_ipc.ValuesSequence.ITransferredObj|null);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/** Represents a Value. */
|
|
331
|
+
class Value implements IValue {
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Constructs a new Value.
|
|
335
|
+
* @param [properties] Properties to set
|
|
336
|
+
*/
|
|
337
|
+
constructor(properties?: json_ipc.ValuesSequence.IValue);
|
|
338
|
+
|
|
339
|
+
/** Value json. */
|
|
340
|
+
public json: string;
|
|
341
|
+
|
|
342
|
+
/** Value binaryInJson. */
|
|
343
|
+
public binaryInJson: json_ipc.ValuesSequence.IBinaryValue[];
|
|
344
|
+
|
|
345
|
+
/** Value transferredInJson. */
|
|
346
|
+
public transferredInJson: json_ipc.ValuesSequence.ITransferredObj[];
|
|
347
|
+
|
|
348
|
+
/** Value arr. */
|
|
349
|
+
public arr?: (json_ipc.ValuesSequence.IBinaryValue|null);
|
|
350
|
+
|
|
351
|
+
/** Value transferred. */
|
|
352
|
+
public transferred?: (json_ipc.ValuesSequence.ITransferredObj|null);
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Creates a new Value instance using the specified properties.
|
|
356
|
+
* @param [properties] Properties to set
|
|
357
|
+
* @returns Value instance
|
|
358
|
+
*/
|
|
359
|
+
public static create(properties?: json_ipc.ValuesSequence.IValue): json_ipc.ValuesSequence.Value;
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Encodes the specified Value message. Does not implicitly {@link json_ipc.ValuesSequence.Value.verify|verify} messages.
|
|
363
|
+
* @param message Value message or plain object to encode
|
|
364
|
+
* @param [writer] Writer to encode to
|
|
365
|
+
* @returns Writer
|
|
366
|
+
*/
|
|
367
|
+
public static encode(message: json_ipc.ValuesSequence.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* Encodes the specified Value message, length delimited. Does not implicitly {@link json_ipc.ValuesSequence.Value.verify|verify} messages.
|
|
371
|
+
* @param message Value message or plain object to encode
|
|
372
|
+
* @param [writer] Writer to encode to
|
|
373
|
+
* @returns Writer
|
|
374
|
+
*/
|
|
375
|
+
public static encodeDelimited(message: json_ipc.ValuesSequence.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Decodes a Value message from the specified reader or buffer.
|
|
379
|
+
* @param reader Reader or buffer to decode from
|
|
380
|
+
* @param [length] Message length if known beforehand
|
|
381
|
+
* @returns Value
|
|
382
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
383
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
384
|
+
*/
|
|
385
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): json_ipc.ValuesSequence.Value;
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Decodes a Value message from the specified reader or buffer, length delimited.
|
|
389
|
+
* @param reader Reader or buffer to decode from
|
|
390
|
+
* @returns Value
|
|
391
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
392
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
393
|
+
*/
|
|
394
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): json_ipc.ValuesSequence.Value;
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* Verifies a Value message.
|
|
398
|
+
* @param message Plain object to verify
|
|
399
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
400
|
+
*/
|
|
401
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* Creates a Value message from a plain object. Also converts values to their respective internal types.
|
|
405
|
+
* @param object Plain object
|
|
406
|
+
* @returns Value
|
|
407
|
+
*/
|
|
408
|
+
public static fromObject(object: { [k: string]: any }): json_ipc.ValuesSequence.Value;
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* Creates a plain object from a Value message. Also converts values to other types if specified.
|
|
412
|
+
* @param message Value
|
|
413
|
+
* @param [options] Conversion options
|
|
414
|
+
* @returns Plain object
|
|
415
|
+
*/
|
|
416
|
+
public static toObject(message: json_ipc.ValuesSequence.Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Converts this Value to JSON.
|
|
420
|
+
* @returns JSON object
|
|
421
|
+
*/
|
|
422
|
+
public toJSON(): { [k: string]: any };
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Gets the default type url for Value
|
|
426
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
427
|
+
* @returns The default type url
|
|
428
|
+
*/
|
|
429
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
}
|