core-3nweb-client-lib 0.30.6 → 0.31.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/build/core/id-manager/mailerid-cap-ipc.js +10 -56
- package/build/core/startup/startup-cap.js +96 -286
- package/build/core-ipc/json-ipc-wrapping/caller-side-wrap.d.ts +14 -0
- package/build/core-ipc/json-ipc-wrapping/caller-side-wrap.js +91 -0
- package/build/core-ipc/json-ipc-wrapping/json-n-binary.d.ts +5 -0
- package/build/core-ipc/json-ipc-wrapping/json-n-binary.js +216 -0
- package/build/core-ipc/json-ipc-wrapping/service-side-wrap.d.ts +16 -0
- package/build/core-ipc/json-ipc-wrapping/service-side-wrap.js +88 -0
- package/build/core-ipc/log-cap.js +7 -19
- package/build/ipc.d.ts +2 -0
- package/build/ipc.js +4 -2
- package/build/lib-client/cryptor/cryptor-wasm.js +1 -1
- package/build/lib-client/cryptor/cryptor.wasm +0 -0
- package/build/protos/json-ipc.proto.js +1093 -0
- package/package.json +1 -1
- package/protos/json-ipc.proto +22 -0
- package/build/protos/logger.proto.js +0 -2278
- package/build/protos/mailerid.proto.js +0 -2429
- package/build/protos/startup.proto.js +0 -3966
- package/protos/logger.proto +0 -13
- package/protos/mailerid.proto +0 -18
- package/protos/startup.proto +0 -76
|
@@ -0,0 +1,1093 @@
|
|
|
1
|
+
/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var $protobuf = require("protobufjs/minimal");
|
|
5
|
+
|
|
6
|
+
// Common aliases
|
|
7
|
+
var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;
|
|
8
|
+
|
|
9
|
+
// Exported root namespace
|
|
10
|
+
var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});
|
|
11
|
+
|
|
12
|
+
$root.json_ipc = (function() {
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Namespace json_ipc.
|
|
16
|
+
* @exports json_ipc
|
|
17
|
+
* @namespace
|
|
18
|
+
*/
|
|
19
|
+
var json_ipc = {};
|
|
20
|
+
|
|
21
|
+
json_ipc.ValuesSequence = (function() {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Properties of a ValuesSequence.
|
|
25
|
+
* @memberof json_ipc
|
|
26
|
+
* @interface IValuesSequence
|
|
27
|
+
* @property {Array.<json_ipc.ValuesSequence.IValue>|null} [values] ValuesSequence values
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Constructs a new ValuesSequence.
|
|
32
|
+
* @memberof json_ipc
|
|
33
|
+
* @classdesc Represents a ValuesSequence.
|
|
34
|
+
* @implements IValuesSequence
|
|
35
|
+
* @constructor
|
|
36
|
+
* @param {json_ipc.IValuesSequence=} [properties] Properties to set
|
|
37
|
+
*/
|
|
38
|
+
function ValuesSequence(properties) {
|
|
39
|
+
this.values = [];
|
|
40
|
+
if (properties)
|
|
41
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
42
|
+
if (properties[keys[i]] != null)
|
|
43
|
+
this[keys[i]] = properties[keys[i]];
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* ValuesSequence values.
|
|
48
|
+
* @member {Array.<json_ipc.ValuesSequence.IValue>} values
|
|
49
|
+
* @memberof json_ipc.ValuesSequence
|
|
50
|
+
* @instance
|
|
51
|
+
*/
|
|
52
|
+
ValuesSequence.prototype.values = $util.emptyArray;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Creates a new ValuesSequence instance using the specified properties.
|
|
56
|
+
* @function create
|
|
57
|
+
* @memberof json_ipc.ValuesSequence
|
|
58
|
+
* @static
|
|
59
|
+
* @param {json_ipc.IValuesSequence=} [properties] Properties to set
|
|
60
|
+
* @returns {json_ipc.ValuesSequence} ValuesSequence instance
|
|
61
|
+
*/
|
|
62
|
+
ValuesSequence.create = function create(properties) {
|
|
63
|
+
return new ValuesSequence(properties);
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Encodes the specified ValuesSequence message. Does not implicitly {@link json_ipc.ValuesSequence.verify|verify} messages.
|
|
68
|
+
* @function encode
|
|
69
|
+
* @memberof json_ipc.ValuesSequence
|
|
70
|
+
* @static
|
|
71
|
+
* @param {json_ipc.IValuesSequence} message ValuesSequence message or plain object to encode
|
|
72
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
73
|
+
* @returns {$protobuf.Writer} Writer
|
|
74
|
+
*/
|
|
75
|
+
ValuesSequence.encode = function encode(message, writer) {
|
|
76
|
+
if (!writer)
|
|
77
|
+
writer = $Writer.create();
|
|
78
|
+
if (message.values != null && message.values.length)
|
|
79
|
+
for (var i = 0; i < message.values.length; ++i)
|
|
80
|
+
$root.json_ipc.ValuesSequence.Value.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
81
|
+
return writer;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Encodes the specified ValuesSequence message, length delimited. Does not implicitly {@link json_ipc.ValuesSequence.verify|verify} messages.
|
|
86
|
+
* @function encodeDelimited
|
|
87
|
+
* @memberof json_ipc.ValuesSequence
|
|
88
|
+
* @static
|
|
89
|
+
* @param {json_ipc.IValuesSequence} message ValuesSequence message or plain object to encode
|
|
90
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
91
|
+
* @returns {$protobuf.Writer} Writer
|
|
92
|
+
*/
|
|
93
|
+
ValuesSequence.encodeDelimited = function encodeDelimited(message, writer) {
|
|
94
|
+
return this.encode(message, writer).ldelim();
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Decodes a ValuesSequence message from the specified reader or buffer.
|
|
99
|
+
* @function decode
|
|
100
|
+
* @memberof json_ipc.ValuesSequence
|
|
101
|
+
* @static
|
|
102
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
103
|
+
* @param {number} [length] Message length if known beforehand
|
|
104
|
+
* @returns {json_ipc.ValuesSequence} ValuesSequence
|
|
105
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
106
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
107
|
+
*/
|
|
108
|
+
ValuesSequence.decode = function decode(reader, length) {
|
|
109
|
+
if (!(reader instanceof $Reader))
|
|
110
|
+
reader = $Reader.create(reader);
|
|
111
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.json_ipc.ValuesSequence();
|
|
112
|
+
while (reader.pos < end) {
|
|
113
|
+
var tag = reader.uint32();
|
|
114
|
+
switch (tag >>> 3) {
|
|
115
|
+
case 1: {
|
|
116
|
+
if (!(message.values && message.values.length))
|
|
117
|
+
message.values = [];
|
|
118
|
+
message.values.push($root.json_ipc.ValuesSequence.Value.decode(reader, reader.uint32()));
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
default:
|
|
122
|
+
reader.skipType(tag & 7);
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return message;
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Decodes a ValuesSequence message from the specified reader or buffer, length delimited.
|
|
131
|
+
* @function decodeDelimited
|
|
132
|
+
* @memberof json_ipc.ValuesSequence
|
|
133
|
+
* @static
|
|
134
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
135
|
+
* @returns {json_ipc.ValuesSequence} ValuesSequence
|
|
136
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
137
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
138
|
+
*/
|
|
139
|
+
ValuesSequence.decodeDelimited = function decodeDelimited(reader) {
|
|
140
|
+
if (!(reader instanceof $Reader))
|
|
141
|
+
reader = new $Reader(reader);
|
|
142
|
+
return this.decode(reader, reader.uint32());
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Verifies a ValuesSequence message.
|
|
147
|
+
* @function verify
|
|
148
|
+
* @memberof json_ipc.ValuesSequence
|
|
149
|
+
* @static
|
|
150
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
151
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
152
|
+
*/
|
|
153
|
+
ValuesSequence.verify = function verify(message) {
|
|
154
|
+
if (typeof message !== "object" || message === null)
|
|
155
|
+
return "object expected";
|
|
156
|
+
if (message.values != null && message.hasOwnProperty("values")) {
|
|
157
|
+
if (!Array.isArray(message.values))
|
|
158
|
+
return "values: array expected";
|
|
159
|
+
for (var i = 0; i < message.values.length; ++i) {
|
|
160
|
+
var error = $root.json_ipc.ValuesSequence.Value.verify(message.values[i]);
|
|
161
|
+
if (error)
|
|
162
|
+
return "values." + error;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
return null;
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Creates a ValuesSequence message from a plain object. Also converts values to their respective internal types.
|
|
170
|
+
* @function fromObject
|
|
171
|
+
* @memberof json_ipc.ValuesSequence
|
|
172
|
+
* @static
|
|
173
|
+
* @param {Object.<string,*>} object Plain object
|
|
174
|
+
* @returns {json_ipc.ValuesSequence} ValuesSequence
|
|
175
|
+
*/
|
|
176
|
+
ValuesSequence.fromObject = function fromObject(object) {
|
|
177
|
+
if (object instanceof $root.json_ipc.ValuesSequence)
|
|
178
|
+
return object;
|
|
179
|
+
var message = new $root.json_ipc.ValuesSequence();
|
|
180
|
+
if (object.values) {
|
|
181
|
+
if (!Array.isArray(object.values))
|
|
182
|
+
throw TypeError(".json_ipc.ValuesSequence.values: array expected");
|
|
183
|
+
message.values = [];
|
|
184
|
+
for (var i = 0; i < object.values.length; ++i) {
|
|
185
|
+
if (typeof object.values[i] !== "object")
|
|
186
|
+
throw TypeError(".json_ipc.ValuesSequence.values: object expected");
|
|
187
|
+
message.values[i] = $root.json_ipc.ValuesSequence.Value.fromObject(object.values[i]);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
return message;
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Creates a plain object from a ValuesSequence message. Also converts values to other types if specified.
|
|
195
|
+
* @function toObject
|
|
196
|
+
* @memberof json_ipc.ValuesSequence
|
|
197
|
+
* @static
|
|
198
|
+
* @param {json_ipc.ValuesSequence} message ValuesSequence
|
|
199
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
200
|
+
* @returns {Object.<string,*>} Plain object
|
|
201
|
+
*/
|
|
202
|
+
ValuesSequence.toObject = function toObject(message, options) {
|
|
203
|
+
if (!options)
|
|
204
|
+
options = {};
|
|
205
|
+
var object = {};
|
|
206
|
+
if (options.arrays || options.defaults)
|
|
207
|
+
object.values = [];
|
|
208
|
+
if (message.values && message.values.length) {
|
|
209
|
+
object.values = [];
|
|
210
|
+
for (var j = 0; j < message.values.length; ++j)
|
|
211
|
+
object.values[j] = $root.json_ipc.ValuesSequence.Value.toObject(message.values[j], options);
|
|
212
|
+
}
|
|
213
|
+
return object;
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Converts this ValuesSequence to JSON.
|
|
218
|
+
* @function toJSON
|
|
219
|
+
* @memberof json_ipc.ValuesSequence
|
|
220
|
+
* @instance
|
|
221
|
+
* @returns {Object.<string,*>} JSON object
|
|
222
|
+
*/
|
|
223
|
+
ValuesSequence.prototype.toJSON = function toJSON() {
|
|
224
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Gets the default type url for ValuesSequence
|
|
229
|
+
* @function getTypeUrl
|
|
230
|
+
* @memberof json_ipc.ValuesSequence
|
|
231
|
+
* @static
|
|
232
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
233
|
+
* @returns {string} The default type url
|
|
234
|
+
*/
|
|
235
|
+
ValuesSequence.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
236
|
+
if (typeUrlPrefix === undefined) {
|
|
237
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
238
|
+
}
|
|
239
|
+
return typeUrlPrefix + "/json_ipc.ValuesSequence";
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
ValuesSequence.BinaryValue = (function() {
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Properties of a BinaryValue.
|
|
246
|
+
* @memberof json_ipc.ValuesSequence
|
|
247
|
+
* @interface IBinaryValue
|
|
248
|
+
* @property {Uint8Array|null} [arr] BinaryValue arr
|
|
249
|
+
* @property {Array.<string>|null} [objLocation] BinaryValue objLocation
|
|
250
|
+
*/
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Constructs a new BinaryValue.
|
|
254
|
+
* @memberof json_ipc.ValuesSequence
|
|
255
|
+
* @classdesc Represents a BinaryValue.
|
|
256
|
+
* @implements IBinaryValue
|
|
257
|
+
* @constructor
|
|
258
|
+
* @param {json_ipc.ValuesSequence.IBinaryValue=} [properties] Properties to set
|
|
259
|
+
*/
|
|
260
|
+
function BinaryValue(properties) {
|
|
261
|
+
this.objLocation = [];
|
|
262
|
+
if (properties)
|
|
263
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
264
|
+
if (properties[keys[i]] != null)
|
|
265
|
+
this[keys[i]] = properties[keys[i]];
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* BinaryValue arr.
|
|
270
|
+
* @member {Uint8Array} arr
|
|
271
|
+
* @memberof json_ipc.ValuesSequence.BinaryValue
|
|
272
|
+
* @instance
|
|
273
|
+
*/
|
|
274
|
+
BinaryValue.prototype.arr = $util.newBuffer([]);
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* BinaryValue objLocation.
|
|
278
|
+
* @member {Array.<string>} objLocation
|
|
279
|
+
* @memberof json_ipc.ValuesSequence.BinaryValue
|
|
280
|
+
* @instance
|
|
281
|
+
*/
|
|
282
|
+
BinaryValue.prototype.objLocation = $util.emptyArray;
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Creates a new BinaryValue instance using the specified properties.
|
|
286
|
+
* @function create
|
|
287
|
+
* @memberof json_ipc.ValuesSequence.BinaryValue
|
|
288
|
+
* @static
|
|
289
|
+
* @param {json_ipc.ValuesSequence.IBinaryValue=} [properties] Properties to set
|
|
290
|
+
* @returns {json_ipc.ValuesSequence.BinaryValue} BinaryValue instance
|
|
291
|
+
*/
|
|
292
|
+
BinaryValue.create = function create(properties) {
|
|
293
|
+
return new BinaryValue(properties);
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Encodes the specified BinaryValue message. Does not implicitly {@link json_ipc.ValuesSequence.BinaryValue.verify|verify} messages.
|
|
298
|
+
* @function encode
|
|
299
|
+
* @memberof json_ipc.ValuesSequence.BinaryValue
|
|
300
|
+
* @static
|
|
301
|
+
* @param {json_ipc.ValuesSequence.IBinaryValue} message BinaryValue message or plain object to encode
|
|
302
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
303
|
+
* @returns {$protobuf.Writer} Writer
|
|
304
|
+
*/
|
|
305
|
+
BinaryValue.encode = function encode(message, writer) {
|
|
306
|
+
if (!writer)
|
|
307
|
+
writer = $Writer.create();
|
|
308
|
+
if (message.arr != null && Object.hasOwnProperty.call(message, "arr"))
|
|
309
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.arr);
|
|
310
|
+
if (message.objLocation != null && message.objLocation.length)
|
|
311
|
+
for (var i = 0; i < message.objLocation.length; ++i)
|
|
312
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.objLocation[i]);
|
|
313
|
+
return writer;
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Encodes the specified BinaryValue message, length delimited. Does not implicitly {@link json_ipc.ValuesSequence.BinaryValue.verify|verify} messages.
|
|
318
|
+
* @function encodeDelimited
|
|
319
|
+
* @memberof json_ipc.ValuesSequence.BinaryValue
|
|
320
|
+
* @static
|
|
321
|
+
* @param {json_ipc.ValuesSequence.IBinaryValue} message BinaryValue message or plain object to encode
|
|
322
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
323
|
+
* @returns {$protobuf.Writer} Writer
|
|
324
|
+
*/
|
|
325
|
+
BinaryValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
326
|
+
return this.encode(message, writer).ldelim();
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* Decodes a BinaryValue message from the specified reader or buffer.
|
|
331
|
+
* @function decode
|
|
332
|
+
* @memberof json_ipc.ValuesSequence.BinaryValue
|
|
333
|
+
* @static
|
|
334
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
335
|
+
* @param {number} [length] Message length if known beforehand
|
|
336
|
+
* @returns {json_ipc.ValuesSequence.BinaryValue} BinaryValue
|
|
337
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
338
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
339
|
+
*/
|
|
340
|
+
BinaryValue.decode = function decode(reader, length) {
|
|
341
|
+
if (!(reader instanceof $Reader))
|
|
342
|
+
reader = $Reader.create(reader);
|
|
343
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.json_ipc.ValuesSequence.BinaryValue();
|
|
344
|
+
while (reader.pos < end) {
|
|
345
|
+
var tag = reader.uint32();
|
|
346
|
+
switch (tag >>> 3) {
|
|
347
|
+
case 1: {
|
|
348
|
+
message.arr = reader.bytes();
|
|
349
|
+
break;
|
|
350
|
+
}
|
|
351
|
+
case 2: {
|
|
352
|
+
if (!(message.objLocation && message.objLocation.length))
|
|
353
|
+
message.objLocation = [];
|
|
354
|
+
message.objLocation.push(reader.string());
|
|
355
|
+
break;
|
|
356
|
+
}
|
|
357
|
+
default:
|
|
358
|
+
reader.skipType(tag & 7);
|
|
359
|
+
break;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
return message;
|
|
363
|
+
};
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Decodes a BinaryValue message from the specified reader or buffer, length delimited.
|
|
367
|
+
* @function decodeDelimited
|
|
368
|
+
* @memberof json_ipc.ValuesSequence.BinaryValue
|
|
369
|
+
* @static
|
|
370
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
371
|
+
* @returns {json_ipc.ValuesSequence.BinaryValue} BinaryValue
|
|
372
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
373
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
374
|
+
*/
|
|
375
|
+
BinaryValue.decodeDelimited = function decodeDelimited(reader) {
|
|
376
|
+
if (!(reader instanceof $Reader))
|
|
377
|
+
reader = new $Reader(reader);
|
|
378
|
+
return this.decode(reader, reader.uint32());
|
|
379
|
+
};
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* Verifies a BinaryValue message.
|
|
383
|
+
* @function verify
|
|
384
|
+
* @memberof json_ipc.ValuesSequence.BinaryValue
|
|
385
|
+
* @static
|
|
386
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
387
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
388
|
+
*/
|
|
389
|
+
BinaryValue.verify = function verify(message) {
|
|
390
|
+
if (typeof message !== "object" || message === null)
|
|
391
|
+
return "object expected";
|
|
392
|
+
if (message.arr != null && message.hasOwnProperty("arr"))
|
|
393
|
+
if (!(message.arr && typeof message.arr.length === "number" || $util.isString(message.arr)))
|
|
394
|
+
return "arr: buffer expected";
|
|
395
|
+
if (message.objLocation != null && message.hasOwnProperty("objLocation")) {
|
|
396
|
+
if (!Array.isArray(message.objLocation))
|
|
397
|
+
return "objLocation: array expected";
|
|
398
|
+
for (var i = 0; i < message.objLocation.length; ++i)
|
|
399
|
+
if (!$util.isString(message.objLocation[i]))
|
|
400
|
+
return "objLocation: string[] expected";
|
|
401
|
+
}
|
|
402
|
+
return null;
|
|
403
|
+
};
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Creates a BinaryValue message from a plain object. Also converts values to their respective internal types.
|
|
407
|
+
* @function fromObject
|
|
408
|
+
* @memberof json_ipc.ValuesSequence.BinaryValue
|
|
409
|
+
* @static
|
|
410
|
+
* @param {Object.<string,*>} object Plain object
|
|
411
|
+
* @returns {json_ipc.ValuesSequence.BinaryValue} BinaryValue
|
|
412
|
+
*/
|
|
413
|
+
BinaryValue.fromObject = function fromObject(object) {
|
|
414
|
+
if (object instanceof $root.json_ipc.ValuesSequence.BinaryValue)
|
|
415
|
+
return object;
|
|
416
|
+
var message = new $root.json_ipc.ValuesSequence.BinaryValue();
|
|
417
|
+
if (object.arr != null)
|
|
418
|
+
if (typeof object.arr === "string")
|
|
419
|
+
$util.base64.decode(object.arr, message.arr = $util.newBuffer($util.base64.length(object.arr)), 0);
|
|
420
|
+
else if (object.arr.length >= 0)
|
|
421
|
+
message.arr = object.arr;
|
|
422
|
+
if (object.objLocation) {
|
|
423
|
+
if (!Array.isArray(object.objLocation))
|
|
424
|
+
throw TypeError(".json_ipc.ValuesSequence.BinaryValue.objLocation: array expected");
|
|
425
|
+
message.objLocation = [];
|
|
426
|
+
for (var i = 0; i < object.objLocation.length; ++i)
|
|
427
|
+
message.objLocation[i] = String(object.objLocation[i]);
|
|
428
|
+
}
|
|
429
|
+
return message;
|
|
430
|
+
};
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Creates a plain object from a BinaryValue message. Also converts values to other types if specified.
|
|
434
|
+
* @function toObject
|
|
435
|
+
* @memberof json_ipc.ValuesSequence.BinaryValue
|
|
436
|
+
* @static
|
|
437
|
+
* @param {json_ipc.ValuesSequence.BinaryValue} message BinaryValue
|
|
438
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
439
|
+
* @returns {Object.<string,*>} Plain object
|
|
440
|
+
*/
|
|
441
|
+
BinaryValue.toObject = function toObject(message, options) {
|
|
442
|
+
if (!options)
|
|
443
|
+
options = {};
|
|
444
|
+
var object = {};
|
|
445
|
+
if (options.arrays || options.defaults)
|
|
446
|
+
object.objLocation = [];
|
|
447
|
+
if (options.defaults)
|
|
448
|
+
if (options.bytes === String)
|
|
449
|
+
object.arr = "";
|
|
450
|
+
else {
|
|
451
|
+
object.arr = [];
|
|
452
|
+
if (options.bytes !== Array)
|
|
453
|
+
object.arr = $util.newBuffer(object.arr);
|
|
454
|
+
}
|
|
455
|
+
if (message.arr != null && message.hasOwnProperty("arr"))
|
|
456
|
+
object.arr = options.bytes === String ? $util.base64.encode(message.arr, 0, message.arr.length) : options.bytes === Array ? Array.prototype.slice.call(message.arr) : message.arr;
|
|
457
|
+
if (message.objLocation && message.objLocation.length) {
|
|
458
|
+
object.objLocation = [];
|
|
459
|
+
for (var j = 0; j < message.objLocation.length; ++j)
|
|
460
|
+
object.objLocation[j] = message.objLocation[j];
|
|
461
|
+
}
|
|
462
|
+
return object;
|
|
463
|
+
};
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* Converts this BinaryValue to JSON.
|
|
467
|
+
* @function toJSON
|
|
468
|
+
* @memberof json_ipc.ValuesSequence.BinaryValue
|
|
469
|
+
* @instance
|
|
470
|
+
* @returns {Object.<string,*>} JSON object
|
|
471
|
+
*/
|
|
472
|
+
BinaryValue.prototype.toJSON = function toJSON() {
|
|
473
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
474
|
+
};
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* Gets the default type url for BinaryValue
|
|
478
|
+
* @function getTypeUrl
|
|
479
|
+
* @memberof json_ipc.ValuesSequence.BinaryValue
|
|
480
|
+
* @static
|
|
481
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
482
|
+
* @returns {string} The default type url
|
|
483
|
+
*/
|
|
484
|
+
BinaryValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
485
|
+
if (typeUrlPrefix === undefined) {
|
|
486
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
487
|
+
}
|
|
488
|
+
return typeUrlPrefix + "/json_ipc.ValuesSequence.BinaryValue";
|
|
489
|
+
};
|
|
490
|
+
|
|
491
|
+
return BinaryValue;
|
|
492
|
+
})();
|
|
493
|
+
|
|
494
|
+
ValuesSequence.TransferredObj = (function() {
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* Properties of a TransferredObj.
|
|
498
|
+
* @memberof json_ipc.ValuesSequence
|
|
499
|
+
* @interface ITransferredObj
|
|
500
|
+
* @property {number|null} [indexInPassed] TransferredObj indexInPassed
|
|
501
|
+
* @property {Array.<string>|null} [objLocation] TransferredObj objLocation
|
|
502
|
+
*/
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* Constructs a new TransferredObj.
|
|
506
|
+
* @memberof json_ipc.ValuesSequence
|
|
507
|
+
* @classdesc Represents a TransferredObj.
|
|
508
|
+
* @implements ITransferredObj
|
|
509
|
+
* @constructor
|
|
510
|
+
* @param {json_ipc.ValuesSequence.ITransferredObj=} [properties] Properties to set
|
|
511
|
+
*/
|
|
512
|
+
function TransferredObj(properties) {
|
|
513
|
+
this.objLocation = [];
|
|
514
|
+
if (properties)
|
|
515
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
516
|
+
if (properties[keys[i]] != null)
|
|
517
|
+
this[keys[i]] = properties[keys[i]];
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* TransferredObj indexInPassed.
|
|
522
|
+
* @member {number} indexInPassed
|
|
523
|
+
* @memberof json_ipc.ValuesSequence.TransferredObj
|
|
524
|
+
* @instance
|
|
525
|
+
*/
|
|
526
|
+
TransferredObj.prototype.indexInPassed = 0;
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* TransferredObj objLocation.
|
|
530
|
+
* @member {Array.<string>} objLocation
|
|
531
|
+
* @memberof json_ipc.ValuesSequence.TransferredObj
|
|
532
|
+
* @instance
|
|
533
|
+
*/
|
|
534
|
+
TransferredObj.prototype.objLocation = $util.emptyArray;
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* Creates a new TransferredObj instance using the specified properties.
|
|
538
|
+
* @function create
|
|
539
|
+
* @memberof json_ipc.ValuesSequence.TransferredObj
|
|
540
|
+
* @static
|
|
541
|
+
* @param {json_ipc.ValuesSequence.ITransferredObj=} [properties] Properties to set
|
|
542
|
+
* @returns {json_ipc.ValuesSequence.TransferredObj} TransferredObj instance
|
|
543
|
+
*/
|
|
544
|
+
TransferredObj.create = function create(properties) {
|
|
545
|
+
return new TransferredObj(properties);
|
|
546
|
+
};
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* Encodes the specified TransferredObj message. Does not implicitly {@link json_ipc.ValuesSequence.TransferredObj.verify|verify} messages.
|
|
550
|
+
* @function encode
|
|
551
|
+
* @memberof json_ipc.ValuesSequence.TransferredObj
|
|
552
|
+
* @static
|
|
553
|
+
* @param {json_ipc.ValuesSequence.ITransferredObj} message TransferredObj message or plain object to encode
|
|
554
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
555
|
+
* @returns {$protobuf.Writer} Writer
|
|
556
|
+
*/
|
|
557
|
+
TransferredObj.encode = function encode(message, writer) {
|
|
558
|
+
if (!writer)
|
|
559
|
+
writer = $Writer.create();
|
|
560
|
+
if (message.indexInPassed != null && Object.hasOwnProperty.call(message, "indexInPassed"))
|
|
561
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.indexInPassed);
|
|
562
|
+
if (message.objLocation != null && message.objLocation.length)
|
|
563
|
+
for (var i = 0; i < message.objLocation.length; ++i)
|
|
564
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.objLocation[i]);
|
|
565
|
+
return writer;
|
|
566
|
+
};
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* Encodes the specified TransferredObj message, length delimited. Does not implicitly {@link json_ipc.ValuesSequence.TransferredObj.verify|verify} messages.
|
|
570
|
+
* @function encodeDelimited
|
|
571
|
+
* @memberof json_ipc.ValuesSequence.TransferredObj
|
|
572
|
+
* @static
|
|
573
|
+
* @param {json_ipc.ValuesSequence.ITransferredObj} message TransferredObj message or plain object to encode
|
|
574
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
575
|
+
* @returns {$protobuf.Writer} Writer
|
|
576
|
+
*/
|
|
577
|
+
TransferredObj.encodeDelimited = function encodeDelimited(message, writer) {
|
|
578
|
+
return this.encode(message, writer).ldelim();
|
|
579
|
+
};
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* Decodes a TransferredObj message from the specified reader or buffer.
|
|
583
|
+
* @function decode
|
|
584
|
+
* @memberof json_ipc.ValuesSequence.TransferredObj
|
|
585
|
+
* @static
|
|
586
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
587
|
+
* @param {number} [length] Message length if known beforehand
|
|
588
|
+
* @returns {json_ipc.ValuesSequence.TransferredObj} TransferredObj
|
|
589
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
590
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
591
|
+
*/
|
|
592
|
+
TransferredObj.decode = function decode(reader, length) {
|
|
593
|
+
if (!(reader instanceof $Reader))
|
|
594
|
+
reader = $Reader.create(reader);
|
|
595
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.json_ipc.ValuesSequence.TransferredObj();
|
|
596
|
+
while (reader.pos < end) {
|
|
597
|
+
var tag = reader.uint32();
|
|
598
|
+
switch (tag >>> 3) {
|
|
599
|
+
case 1: {
|
|
600
|
+
message.indexInPassed = reader.uint32();
|
|
601
|
+
break;
|
|
602
|
+
}
|
|
603
|
+
case 2: {
|
|
604
|
+
if (!(message.objLocation && message.objLocation.length))
|
|
605
|
+
message.objLocation = [];
|
|
606
|
+
message.objLocation.push(reader.string());
|
|
607
|
+
break;
|
|
608
|
+
}
|
|
609
|
+
default:
|
|
610
|
+
reader.skipType(tag & 7);
|
|
611
|
+
break;
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
return message;
|
|
615
|
+
};
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* Decodes a TransferredObj message from the specified reader or buffer, length delimited.
|
|
619
|
+
* @function decodeDelimited
|
|
620
|
+
* @memberof json_ipc.ValuesSequence.TransferredObj
|
|
621
|
+
* @static
|
|
622
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
623
|
+
* @returns {json_ipc.ValuesSequence.TransferredObj} TransferredObj
|
|
624
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
625
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
626
|
+
*/
|
|
627
|
+
TransferredObj.decodeDelimited = function decodeDelimited(reader) {
|
|
628
|
+
if (!(reader instanceof $Reader))
|
|
629
|
+
reader = new $Reader(reader);
|
|
630
|
+
return this.decode(reader, reader.uint32());
|
|
631
|
+
};
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* Verifies a TransferredObj message.
|
|
635
|
+
* @function verify
|
|
636
|
+
* @memberof json_ipc.ValuesSequence.TransferredObj
|
|
637
|
+
* @static
|
|
638
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
639
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
640
|
+
*/
|
|
641
|
+
TransferredObj.verify = function verify(message) {
|
|
642
|
+
if (typeof message !== "object" || message === null)
|
|
643
|
+
return "object expected";
|
|
644
|
+
if (message.indexInPassed != null && message.hasOwnProperty("indexInPassed"))
|
|
645
|
+
if (!$util.isInteger(message.indexInPassed))
|
|
646
|
+
return "indexInPassed: integer expected";
|
|
647
|
+
if (message.objLocation != null && message.hasOwnProperty("objLocation")) {
|
|
648
|
+
if (!Array.isArray(message.objLocation))
|
|
649
|
+
return "objLocation: array expected";
|
|
650
|
+
for (var i = 0; i < message.objLocation.length; ++i)
|
|
651
|
+
if (!$util.isString(message.objLocation[i]))
|
|
652
|
+
return "objLocation: string[] expected";
|
|
653
|
+
}
|
|
654
|
+
return null;
|
|
655
|
+
};
|
|
656
|
+
|
|
657
|
+
/**
|
|
658
|
+
* Creates a TransferredObj message from a plain object. Also converts values to their respective internal types.
|
|
659
|
+
* @function fromObject
|
|
660
|
+
* @memberof json_ipc.ValuesSequence.TransferredObj
|
|
661
|
+
* @static
|
|
662
|
+
* @param {Object.<string,*>} object Plain object
|
|
663
|
+
* @returns {json_ipc.ValuesSequence.TransferredObj} TransferredObj
|
|
664
|
+
*/
|
|
665
|
+
TransferredObj.fromObject = function fromObject(object) {
|
|
666
|
+
if (object instanceof $root.json_ipc.ValuesSequence.TransferredObj)
|
|
667
|
+
return object;
|
|
668
|
+
var message = new $root.json_ipc.ValuesSequence.TransferredObj();
|
|
669
|
+
if (object.indexInPassed != null)
|
|
670
|
+
message.indexInPassed = object.indexInPassed >>> 0;
|
|
671
|
+
if (object.objLocation) {
|
|
672
|
+
if (!Array.isArray(object.objLocation))
|
|
673
|
+
throw TypeError(".json_ipc.ValuesSequence.TransferredObj.objLocation: array expected");
|
|
674
|
+
message.objLocation = [];
|
|
675
|
+
for (var i = 0; i < object.objLocation.length; ++i)
|
|
676
|
+
message.objLocation[i] = String(object.objLocation[i]);
|
|
677
|
+
}
|
|
678
|
+
return message;
|
|
679
|
+
};
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* Creates a plain object from a TransferredObj message. Also converts values to other types if specified.
|
|
683
|
+
* @function toObject
|
|
684
|
+
* @memberof json_ipc.ValuesSequence.TransferredObj
|
|
685
|
+
* @static
|
|
686
|
+
* @param {json_ipc.ValuesSequence.TransferredObj} message TransferredObj
|
|
687
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
688
|
+
* @returns {Object.<string,*>} Plain object
|
|
689
|
+
*/
|
|
690
|
+
TransferredObj.toObject = function toObject(message, options) {
|
|
691
|
+
if (!options)
|
|
692
|
+
options = {};
|
|
693
|
+
var object = {};
|
|
694
|
+
if (options.arrays || options.defaults)
|
|
695
|
+
object.objLocation = [];
|
|
696
|
+
if (options.defaults)
|
|
697
|
+
object.indexInPassed = 0;
|
|
698
|
+
if (message.indexInPassed != null && message.hasOwnProperty("indexInPassed"))
|
|
699
|
+
object.indexInPassed = message.indexInPassed;
|
|
700
|
+
if (message.objLocation && message.objLocation.length) {
|
|
701
|
+
object.objLocation = [];
|
|
702
|
+
for (var j = 0; j < message.objLocation.length; ++j)
|
|
703
|
+
object.objLocation[j] = message.objLocation[j];
|
|
704
|
+
}
|
|
705
|
+
return object;
|
|
706
|
+
};
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* Converts this TransferredObj to JSON.
|
|
710
|
+
* @function toJSON
|
|
711
|
+
* @memberof json_ipc.ValuesSequence.TransferredObj
|
|
712
|
+
* @instance
|
|
713
|
+
* @returns {Object.<string,*>} JSON object
|
|
714
|
+
*/
|
|
715
|
+
TransferredObj.prototype.toJSON = function toJSON() {
|
|
716
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
717
|
+
};
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* Gets the default type url for TransferredObj
|
|
721
|
+
* @function getTypeUrl
|
|
722
|
+
* @memberof json_ipc.ValuesSequence.TransferredObj
|
|
723
|
+
* @static
|
|
724
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
725
|
+
* @returns {string} The default type url
|
|
726
|
+
*/
|
|
727
|
+
TransferredObj.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
728
|
+
if (typeUrlPrefix === undefined) {
|
|
729
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
730
|
+
}
|
|
731
|
+
return typeUrlPrefix + "/json_ipc.ValuesSequence.TransferredObj";
|
|
732
|
+
};
|
|
733
|
+
|
|
734
|
+
return TransferredObj;
|
|
735
|
+
})();
|
|
736
|
+
|
|
737
|
+
ValuesSequence.Value = (function() {
|
|
738
|
+
|
|
739
|
+
/**
|
|
740
|
+
* Properties of a Value.
|
|
741
|
+
* @memberof json_ipc.ValuesSequence
|
|
742
|
+
* @interface IValue
|
|
743
|
+
* @property {string|null} [json] Value json
|
|
744
|
+
* @property {Array.<json_ipc.ValuesSequence.IBinaryValue>|null} [binaryInJson] Value binaryInJson
|
|
745
|
+
* @property {Array.<json_ipc.ValuesSequence.ITransferredObj>|null} [transferredInJson] Value transferredInJson
|
|
746
|
+
* @property {json_ipc.ValuesSequence.IBinaryValue|null} [arr] Value arr
|
|
747
|
+
* @property {json_ipc.ValuesSequence.ITransferredObj|null} [transferred] Value transferred
|
|
748
|
+
*/
|
|
749
|
+
|
|
750
|
+
/**
|
|
751
|
+
* Constructs a new Value.
|
|
752
|
+
* @memberof json_ipc.ValuesSequence
|
|
753
|
+
* @classdesc Represents a Value.
|
|
754
|
+
* @implements IValue
|
|
755
|
+
* @constructor
|
|
756
|
+
* @param {json_ipc.ValuesSequence.IValue=} [properties] Properties to set
|
|
757
|
+
*/
|
|
758
|
+
function Value(properties) {
|
|
759
|
+
this.binaryInJson = [];
|
|
760
|
+
this.transferredInJson = [];
|
|
761
|
+
if (properties)
|
|
762
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
763
|
+
if (properties[keys[i]] != null)
|
|
764
|
+
this[keys[i]] = properties[keys[i]];
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
/**
|
|
768
|
+
* Value json.
|
|
769
|
+
* @member {string} json
|
|
770
|
+
* @memberof json_ipc.ValuesSequence.Value
|
|
771
|
+
* @instance
|
|
772
|
+
*/
|
|
773
|
+
Value.prototype.json = "";
|
|
774
|
+
|
|
775
|
+
/**
|
|
776
|
+
* Value binaryInJson.
|
|
777
|
+
* @member {Array.<json_ipc.ValuesSequence.IBinaryValue>} binaryInJson
|
|
778
|
+
* @memberof json_ipc.ValuesSequence.Value
|
|
779
|
+
* @instance
|
|
780
|
+
*/
|
|
781
|
+
Value.prototype.binaryInJson = $util.emptyArray;
|
|
782
|
+
|
|
783
|
+
/**
|
|
784
|
+
* Value transferredInJson.
|
|
785
|
+
* @member {Array.<json_ipc.ValuesSequence.ITransferredObj>} transferredInJson
|
|
786
|
+
* @memberof json_ipc.ValuesSequence.Value
|
|
787
|
+
* @instance
|
|
788
|
+
*/
|
|
789
|
+
Value.prototype.transferredInJson = $util.emptyArray;
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* Value arr.
|
|
793
|
+
* @member {json_ipc.ValuesSequence.IBinaryValue|null|undefined} arr
|
|
794
|
+
* @memberof json_ipc.ValuesSequence.Value
|
|
795
|
+
* @instance
|
|
796
|
+
*/
|
|
797
|
+
Value.prototype.arr = null;
|
|
798
|
+
|
|
799
|
+
/**
|
|
800
|
+
* Value transferred.
|
|
801
|
+
* @member {json_ipc.ValuesSequence.ITransferredObj|null|undefined} transferred
|
|
802
|
+
* @memberof json_ipc.ValuesSequence.Value
|
|
803
|
+
* @instance
|
|
804
|
+
*/
|
|
805
|
+
Value.prototype.transferred = null;
|
|
806
|
+
|
|
807
|
+
/**
|
|
808
|
+
* Creates a new Value instance using the specified properties.
|
|
809
|
+
* @function create
|
|
810
|
+
* @memberof json_ipc.ValuesSequence.Value
|
|
811
|
+
* @static
|
|
812
|
+
* @param {json_ipc.ValuesSequence.IValue=} [properties] Properties to set
|
|
813
|
+
* @returns {json_ipc.ValuesSequence.Value} Value instance
|
|
814
|
+
*/
|
|
815
|
+
Value.create = function create(properties) {
|
|
816
|
+
return new Value(properties);
|
|
817
|
+
};
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* Encodes the specified Value message. Does not implicitly {@link json_ipc.ValuesSequence.Value.verify|verify} messages.
|
|
821
|
+
* @function encode
|
|
822
|
+
* @memberof json_ipc.ValuesSequence.Value
|
|
823
|
+
* @static
|
|
824
|
+
* @param {json_ipc.ValuesSequence.IValue} message Value message or plain object to encode
|
|
825
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
826
|
+
* @returns {$protobuf.Writer} Writer
|
|
827
|
+
*/
|
|
828
|
+
Value.encode = function encode(message, writer) {
|
|
829
|
+
if (!writer)
|
|
830
|
+
writer = $Writer.create();
|
|
831
|
+
if (message.json != null && Object.hasOwnProperty.call(message, "json"))
|
|
832
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.json);
|
|
833
|
+
if (message.binaryInJson != null && message.binaryInJson.length)
|
|
834
|
+
for (var i = 0; i < message.binaryInJson.length; ++i)
|
|
835
|
+
$root.json_ipc.ValuesSequence.BinaryValue.encode(message.binaryInJson[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
836
|
+
if (message.transferredInJson != null && message.transferredInJson.length)
|
|
837
|
+
for (var i = 0; i < message.transferredInJson.length; ++i)
|
|
838
|
+
$root.json_ipc.ValuesSequence.TransferredObj.encode(message.transferredInJson[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
839
|
+
if (message.arr != null && Object.hasOwnProperty.call(message, "arr"))
|
|
840
|
+
$root.json_ipc.ValuesSequence.BinaryValue.encode(message.arr, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
841
|
+
if (message.transferred != null && Object.hasOwnProperty.call(message, "transferred"))
|
|
842
|
+
$root.json_ipc.ValuesSequence.TransferredObj.encode(message.transferred, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
843
|
+
return writer;
|
|
844
|
+
};
|
|
845
|
+
|
|
846
|
+
/**
|
|
847
|
+
* Encodes the specified Value message, length delimited. Does not implicitly {@link json_ipc.ValuesSequence.Value.verify|verify} messages.
|
|
848
|
+
* @function encodeDelimited
|
|
849
|
+
* @memberof json_ipc.ValuesSequence.Value
|
|
850
|
+
* @static
|
|
851
|
+
* @param {json_ipc.ValuesSequence.IValue} message Value message or plain object to encode
|
|
852
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
853
|
+
* @returns {$protobuf.Writer} Writer
|
|
854
|
+
*/
|
|
855
|
+
Value.encodeDelimited = function encodeDelimited(message, writer) {
|
|
856
|
+
return this.encode(message, writer).ldelim();
|
|
857
|
+
};
|
|
858
|
+
|
|
859
|
+
/**
|
|
860
|
+
* Decodes a Value message from the specified reader or buffer.
|
|
861
|
+
* @function decode
|
|
862
|
+
* @memberof json_ipc.ValuesSequence.Value
|
|
863
|
+
* @static
|
|
864
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
865
|
+
* @param {number} [length] Message length if known beforehand
|
|
866
|
+
* @returns {json_ipc.ValuesSequence.Value} Value
|
|
867
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
868
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
869
|
+
*/
|
|
870
|
+
Value.decode = function decode(reader, length) {
|
|
871
|
+
if (!(reader instanceof $Reader))
|
|
872
|
+
reader = $Reader.create(reader);
|
|
873
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.json_ipc.ValuesSequence.Value();
|
|
874
|
+
while (reader.pos < end) {
|
|
875
|
+
var tag = reader.uint32();
|
|
876
|
+
switch (tag >>> 3) {
|
|
877
|
+
case 1: {
|
|
878
|
+
message.json = reader.string();
|
|
879
|
+
break;
|
|
880
|
+
}
|
|
881
|
+
case 2: {
|
|
882
|
+
if (!(message.binaryInJson && message.binaryInJson.length))
|
|
883
|
+
message.binaryInJson = [];
|
|
884
|
+
message.binaryInJson.push($root.json_ipc.ValuesSequence.BinaryValue.decode(reader, reader.uint32()));
|
|
885
|
+
break;
|
|
886
|
+
}
|
|
887
|
+
case 3: {
|
|
888
|
+
if (!(message.transferredInJson && message.transferredInJson.length))
|
|
889
|
+
message.transferredInJson = [];
|
|
890
|
+
message.transferredInJson.push($root.json_ipc.ValuesSequence.TransferredObj.decode(reader, reader.uint32()));
|
|
891
|
+
break;
|
|
892
|
+
}
|
|
893
|
+
case 4: {
|
|
894
|
+
message.arr = $root.json_ipc.ValuesSequence.BinaryValue.decode(reader, reader.uint32());
|
|
895
|
+
break;
|
|
896
|
+
}
|
|
897
|
+
case 5: {
|
|
898
|
+
message.transferred = $root.json_ipc.ValuesSequence.TransferredObj.decode(reader, reader.uint32());
|
|
899
|
+
break;
|
|
900
|
+
}
|
|
901
|
+
default:
|
|
902
|
+
reader.skipType(tag & 7);
|
|
903
|
+
break;
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
return message;
|
|
907
|
+
};
|
|
908
|
+
|
|
909
|
+
/**
|
|
910
|
+
* Decodes a Value message from the specified reader or buffer, length delimited.
|
|
911
|
+
* @function decodeDelimited
|
|
912
|
+
* @memberof json_ipc.ValuesSequence.Value
|
|
913
|
+
* @static
|
|
914
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
915
|
+
* @returns {json_ipc.ValuesSequence.Value} Value
|
|
916
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
917
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
918
|
+
*/
|
|
919
|
+
Value.decodeDelimited = function decodeDelimited(reader) {
|
|
920
|
+
if (!(reader instanceof $Reader))
|
|
921
|
+
reader = new $Reader(reader);
|
|
922
|
+
return this.decode(reader, reader.uint32());
|
|
923
|
+
};
|
|
924
|
+
|
|
925
|
+
/**
|
|
926
|
+
* Verifies a Value message.
|
|
927
|
+
* @function verify
|
|
928
|
+
* @memberof json_ipc.ValuesSequence.Value
|
|
929
|
+
* @static
|
|
930
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
931
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
932
|
+
*/
|
|
933
|
+
Value.verify = function verify(message) {
|
|
934
|
+
if (typeof message !== "object" || message === null)
|
|
935
|
+
return "object expected";
|
|
936
|
+
if (message.json != null && message.hasOwnProperty("json"))
|
|
937
|
+
if (!$util.isString(message.json))
|
|
938
|
+
return "json: string expected";
|
|
939
|
+
if (message.binaryInJson != null && message.hasOwnProperty("binaryInJson")) {
|
|
940
|
+
if (!Array.isArray(message.binaryInJson))
|
|
941
|
+
return "binaryInJson: array expected";
|
|
942
|
+
for (var i = 0; i < message.binaryInJson.length; ++i) {
|
|
943
|
+
var error = $root.json_ipc.ValuesSequence.BinaryValue.verify(message.binaryInJson[i]);
|
|
944
|
+
if (error)
|
|
945
|
+
return "binaryInJson." + error;
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
if (message.transferredInJson != null && message.hasOwnProperty("transferredInJson")) {
|
|
949
|
+
if (!Array.isArray(message.transferredInJson))
|
|
950
|
+
return "transferredInJson: array expected";
|
|
951
|
+
for (var i = 0; i < message.transferredInJson.length; ++i) {
|
|
952
|
+
var error = $root.json_ipc.ValuesSequence.TransferredObj.verify(message.transferredInJson[i]);
|
|
953
|
+
if (error)
|
|
954
|
+
return "transferredInJson." + error;
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
if (message.arr != null && message.hasOwnProperty("arr")) {
|
|
958
|
+
var error = $root.json_ipc.ValuesSequence.BinaryValue.verify(message.arr);
|
|
959
|
+
if (error)
|
|
960
|
+
return "arr." + error;
|
|
961
|
+
}
|
|
962
|
+
if (message.transferred != null && message.hasOwnProperty("transferred")) {
|
|
963
|
+
var error = $root.json_ipc.ValuesSequence.TransferredObj.verify(message.transferred);
|
|
964
|
+
if (error)
|
|
965
|
+
return "transferred." + error;
|
|
966
|
+
}
|
|
967
|
+
return null;
|
|
968
|
+
};
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* Creates a Value message from a plain object. Also converts values to their respective internal types.
|
|
972
|
+
* @function fromObject
|
|
973
|
+
* @memberof json_ipc.ValuesSequence.Value
|
|
974
|
+
* @static
|
|
975
|
+
* @param {Object.<string,*>} object Plain object
|
|
976
|
+
* @returns {json_ipc.ValuesSequence.Value} Value
|
|
977
|
+
*/
|
|
978
|
+
Value.fromObject = function fromObject(object) {
|
|
979
|
+
if (object instanceof $root.json_ipc.ValuesSequence.Value)
|
|
980
|
+
return object;
|
|
981
|
+
var message = new $root.json_ipc.ValuesSequence.Value();
|
|
982
|
+
if (object.json != null)
|
|
983
|
+
message.json = String(object.json);
|
|
984
|
+
if (object.binaryInJson) {
|
|
985
|
+
if (!Array.isArray(object.binaryInJson))
|
|
986
|
+
throw TypeError(".json_ipc.ValuesSequence.Value.binaryInJson: array expected");
|
|
987
|
+
message.binaryInJson = [];
|
|
988
|
+
for (var i = 0; i < object.binaryInJson.length; ++i) {
|
|
989
|
+
if (typeof object.binaryInJson[i] !== "object")
|
|
990
|
+
throw TypeError(".json_ipc.ValuesSequence.Value.binaryInJson: object expected");
|
|
991
|
+
message.binaryInJson[i] = $root.json_ipc.ValuesSequence.BinaryValue.fromObject(object.binaryInJson[i]);
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
if (object.transferredInJson) {
|
|
995
|
+
if (!Array.isArray(object.transferredInJson))
|
|
996
|
+
throw TypeError(".json_ipc.ValuesSequence.Value.transferredInJson: array expected");
|
|
997
|
+
message.transferredInJson = [];
|
|
998
|
+
for (var i = 0; i < object.transferredInJson.length; ++i) {
|
|
999
|
+
if (typeof object.transferredInJson[i] !== "object")
|
|
1000
|
+
throw TypeError(".json_ipc.ValuesSequence.Value.transferredInJson: object expected");
|
|
1001
|
+
message.transferredInJson[i] = $root.json_ipc.ValuesSequence.TransferredObj.fromObject(object.transferredInJson[i]);
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
if (object.arr != null) {
|
|
1005
|
+
if (typeof object.arr !== "object")
|
|
1006
|
+
throw TypeError(".json_ipc.ValuesSequence.Value.arr: object expected");
|
|
1007
|
+
message.arr = $root.json_ipc.ValuesSequence.BinaryValue.fromObject(object.arr);
|
|
1008
|
+
}
|
|
1009
|
+
if (object.transferred != null) {
|
|
1010
|
+
if (typeof object.transferred !== "object")
|
|
1011
|
+
throw TypeError(".json_ipc.ValuesSequence.Value.transferred: object expected");
|
|
1012
|
+
message.transferred = $root.json_ipc.ValuesSequence.TransferredObj.fromObject(object.transferred);
|
|
1013
|
+
}
|
|
1014
|
+
return message;
|
|
1015
|
+
};
|
|
1016
|
+
|
|
1017
|
+
/**
|
|
1018
|
+
* Creates a plain object from a Value message. Also converts values to other types if specified.
|
|
1019
|
+
* @function toObject
|
|
1020
|
+
* @memberof json_ipc.ValuesSequence.Value
|
|
1021
|
+
* @static
|
|
1022
|
+
* @param {json_ipc.ValuesSequence.Value} message Value
|
|
1023
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1024
|
+
* @returns {Object.<string,*>} Plain object
|
|
1025
|
+
*/
|
|
1026
|
+
Value.toObject = function toObject(message, options) {
|
|
1027
|
+
if (!options)
|
|
1028
|
+
options = {};
|
|
1029
|
+
var object = {};
|
|
1030
|
+
if (options.arrays || options.defaults) {
|
|
1031
|
+
object.binaryInJson = [];
|
|
1032
|
+
object.transferredInJson = [];
|
|
1033
|
+
}
|
|
1034
|
+
if (options.defaults) {
|
|
1035
|
+
object.json = "";
|
|
1036
|
+
object.arr = null;
|
|
1037
|
+
object.transferred = null;
|
|
1038
|
+
}
|
|
1039
|
+
if (message.json != null && message.hasOwnProperty("json"))
|
|
1040
|
+
object.json = message.json;
|
|
1041
|
+
if (message.binaryInJson && message.binaryInJson.length) {
|
|
1042
|
+
object.binaryInJson = [];
|
|
1043
|
+
for (var j = 0; j < message.binaryInJson.length; ++j)
|
|
1044
|
+
object.binaryInJson[j] = $root.json_ipc.ValuesSequence.BinaryValue.toObject(message.binaryInJson[j], options);
|
|
1045
|
+
}
|
|
1046
|
+
if (message.transferredInJson && message.transferredInJson.length) {
|
|
1047
|
+
object.transferredInJson = [];
|
|
1048
|
+
for (var j = 0; j < message.transferredInJson.length; ++j)
|
|
1049
|
+
object.transferredInJson[j] = $root.json_ipc.ValuesSequence.TransferredObj.toObject(message.transferredInJson[j], options);
|
|
1050
|
+
}
|
|
1051
|
+
if (message.arr != null && message.hasOwnProperty("arr"))
|
|
1052
|
+
object.arr = $root.json_ipc.ValuesSequence.BinaryValue.toObject(message.arr, options);
|
|
1053
|
+
if (message.transferred != null && message.hasOwnProperty("transferred"))
|
|
1054
|
+
object.transferred = $root.json_ipc.ValuesSequence.TransferredObj.toObject(message.transferred, options);
|
|
1055
|
+
return object;
|
|
1056
|
+
};
|
|
1057
|
+
|
|
1058
|
+
/**
|
|
1059
|
+
* Converts this Value to JSON.
|
|
1060
|
+
* @function toJSON
|
|
1061
|
+
* @memberof json_ipc.ValuesSequence.Value
|
|
1062
|
+
* @instance
|
|
1063
|
+
* @returns {Object.<string,*>} JSON object
|
|
1064
|
+
*/
|
|
1065
|
+
Value.prototype.toJSON = function toJSON() {
|
|
1066
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1067
|
+
};
|
|
1068
|
+
|
|
1069
|
+
/**
|
|
1070
|
+
* Gets the default type url for Value
|
|
1071
|
+
* @function getTypeUrl
|
|
1072
|
+
* @memberof json_ipc.ValuesSequence.Value
|
|
1073
|
+
* @static
|
|
1074
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1075
|
+
* @returns {string} The default type url
|
|
1076
|
+
*/
|
|
1077
|
+
Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
1078
|
+
if (typeUrlPrefix === undefined) {
|
|
1079
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
1080
|
+
}
|
|
1081
|
+
return typeUrlPrefix + "/json_ipc.ValuesSequence.Value";
|
|
1082
|
+
};
|
|
1083
|
+
|
|
1084
|
+
return Value;
|
|
1085
|
+
})();
|
|
1086
|
+
|
|
1087
|
+
return ValuesSequence;
|
|
1088
|
+
})();
|
|
1089
|
+
|
|
1090
|
+
return json_ipc;
|
|
1091
|
+
})();
|
|
1092
|
+
|
|
1093
|
+
module.exports = $root;
|