core-3nweb-client-lib 0.24.0 → 0.24.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/ipc-via-protobuf/asmail-cap.js +17 -18
- package/build/ipc-via-protobuf/bytes.js +10 -11
- package/build/ipc-via-protobuf/connector.d.ts +2 -1
- package/build/ipc-via-protobuf/connector.js +4 -2
- package/build/ipc-via-protobuf/file.d.ts +1 -1
- package/build/ipc-via-protobuf/file.js +30 -31
- package/build/ipc-via-protobuf/fs.d.ts +1 -1
- package/build/ipc-via-protobuf/fs.js +37 -38
- package/build/ipc-via-protobuf/log-cap.js +4 -5
- package/build/ipc-via-protobuf/mailerid.js +5 -7
- package/build/ipc-via-protobuf/protobuf-msg.d.ts +1 -2
- package/build/ipc-via-protobuf/protobuf-msg.js +9 -24
- package/build/ipc-via-protobuf/startup-cap.js +10 -11
- package/build/ipc-via-protobuf/storage-cap.js +7 -8
- package/build/lib-client/cryptor/cryptor-in-worker.js +7 -20
- package/build/lib-client/cryptor/cryptor-wasm.js +1 -1
- package/build/lib-client/cryptor/cryptor.wasm +0 -0
- package/build/lib-client/cryptor/in-proc-wasm.js +7 -20
- package/build/lib-client/{protobuf-loader.d.ts → protobuf-type.d.ts} +2 -4
- package/build/lib-client/{protobuf-loader.js → protobuf-type.js} +3 -43
- package/build/lib-index.d.ts +0 -1
- package/build/protos/asmail.proto.js +22296 -0
- package/build/protos/bytes.proto.js +3614 -0
- package/build/protos/common.proto.js +1863 -0
- package/build/protos/cryptor.proto.js +1667 -0
- package/build/protos/file.proto.js +7264 -0
- package/build/protos/fs.proto.js +17142 -0
- package/build/protos/ipc.proto.js +2349 -0
- package/build/protos/logger.proto.js +2112 -0
- package/build/protos/mailerid.proto.js +2249 -0
- package/build/protos/startup.proto.js +3291 -0
- package/build/protos/storage.proto.js +2689 -0
- package/package.json +2 -2
- package/{build/ipc-via-protobuf/protos → protos}/asmail.proto +0 -0
- package/{build/ipc-via-protobuf/protos → protos}/bytes.proto +0 -0
- package/{build/ipc-via-protobuf/protos → protos}/common.proto +0 -0
- package/{build/ipc-via-protobuf/protos → protos}/file.proto +0 -0
- package/{build/ipc-via-protobuf/protos → protos}/fs.proto +0 -0
- package/{build/ipc-via-protobuf/protos → protos}/ipc.proto +0 -0
- package/{build/ipc-via-protobuf/protos → protos}/logger.proto +0 -0
- package/{build/ipc-via-protobuf/protos → protos}/mailerid.proto +0 -0
- package/{build/ipc-via-protobuf/protos → protos}/startup.proto +0 -0
- package/{build/ipc-via-protobuf/protos → protos}/storage.proto +0 -0
- package/build/api-defs/asmail.d.ts +0 -292
- package/build/api-defs/common-caps.d.ts +0 -81
- package/build/api-defs/files.d.ts +0 -1037
- package/build/api-defs/mailerid.d.ts +0 -29
- package/build/api-defs/startup.d.ts +0 -121
- package/build/api-defs/storage.d.ts +0 -69
- package/build/api-defs/web3n.d.ts +0 -50
- package/build/ipc-via-protobuf/proto-defs.js +0 -1092
- package/build/lib-client/cryptor/proto-defs.js +0 -50
- package/build/lib-client/cryptor/protos/cryptor.proto +0 -45
|
@@ -0,0 +1,3614 @@
|
|
|
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.bytes = (function() {
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Namespace bytes.
|
|
16
|
+
* @exports bytes
|
|
17
|
+
* @namespace
|
|
18
|
+
*/
|
|
19
|
+
var bytes = {};
|
|
20
|
+
|
|
21
|
+
bytes.SpliceRequestBody = (function() {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Properties of a SpliceRequestBody.
|
|
25
|
+
* @memberof bytes
|
|
26
|
+
* @interface ISpliceRequestBody
|
|
27
|
+
* @property {number|Long|null} [pos] SpliceRequestBody pos
|
|
28
|
+
* @property {number|Long|null} [del] SpliceRequestBody del
|
|
29
|
+
* @property {common.IBytesValue|null} [bytes] SpliceRequestBody bytes
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a new SpliceRequestBody.
|
|
34
|
+
* @memberof bytes
|
|
35
|
+
* @classdesc Represents a SpliceRequestBody.
|
|
36
|
+
* @implements ISpliceRequestBody
|
|
37
|
+
* @constructor
|
|
38
|
+
* @param {bytes.ISpliceRequestBody=} [properties] Properties to set
|
|
39
|
+
*/
|
|
40
|
+
function SpliceRequestBody(properties) {
|
|
41
|
+
if (properties)
|
|
42
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
43
|
+
if (properties[keys[i]] != null)
|
|
44
|
+
this[keys[i]] = properties[keys[i]];
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* SpliceRequestBody pos.
|
|
49
|
+
* @member {number|Long} pos
|
|
50
|
+
* @memberof bytes.SpliceRequestBody
|
|
51
|
+
* @instance
|
|
52
|
+
*/
|
|
53
|
+
SpliceRequestBody.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* SpliceRequestBody del.
|
|
57
|
+
* @member {number|Long} del
|
|
58
|
+
* @memberof bytes.SpliceRequestBody
|
|
59
|
+
* @instance
|
|
60
|
+
*/
|
|
61
|
+
SpliceRequestBody.prototype.del = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* SpliceRequestBody bytes.
|
|
65
|
+
* @member {common.IBytesValue|null|undefined} bytes
|
|
66
|
+
* @memberof bytes.SpliceRequestBody
|
|
67
|
+
* @instance
|
|
68
|
+
*/
|
|
69
|
+
SpliceRequestBody.prototype.bytes = null;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Creates a new SpliceRequestBody instance using the specified properties.
|
|
73
|
+
* @function create
|
|
74
|
+
* @memberof bytes.SpliceRequestBody
|
|
75
|
+
* @static
|
|
76
|
+
* @param {bytes.ISpliceRequestBody=} [properties] Properties to set
|
|
77
|
+
* @returns {bytes.SpliceRequestBody} SpliceRequestBody instance
|
|
78
|
+
*/
|
|
79
|
+
SpliceRequestBody.create = function create(properties) {
|
|
80
|
+
return new SpliceRequestBody(properties);
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Encodes the specified SpliceRequestBody message. Does not implicitly {@link bytes.SpliceRequestBody.verify|verify} messages.
|
|
85
|
+
* @function encode
|
|
86
|
+
* @memberof bytes.SpliceRequestBody
|
|
87
|
+
* @static
|
|
88
|
+
* @param {bytes.ISpliceRequestBody} message SpliceRequestBody message or plain object to encode
|
|
89
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
90
|
+
* @returns {$protobuf.Writer} Writer
|
|
91
|
+
*/
|
|
92
|
+
SpliceRequestBody.encode = function encode(message, writer) {
|
|
93
|
+
if (!writer)
|
|
94
|
+
writer = $Writer.create();
|
|
95
|
+
if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
|
|
96
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.pos);
|
|
97
|
+
if (message.del != null && Object.hasOwnProperty.call(message, "del"))
|
|
98
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.del);
|
|
99
|
+
if (message.bytes != null && Object.hasOwnProperty.call(message, "bytes"))
|
|
100
|
+
$root.common.BytesValue.encode(message.bytes, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
101
|
+
return writer;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Encodes the specified SpliceRequestBody message, length delimited. Does not implicitly {@link bytes.SpliceRequestBody.verify|verify} messages.
|
|
106
|
+
* @function encodeDelimited
|
|
107
|
+
* @memberof bytes.SpliceRequestBody
|
|
108
|
+
* @static
|
|
109
|
+
* @param {bytes.ISpliceRequestBody} message SpliceRequestBody message or plain object to encode
|
|
110
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
111
|
+
* @returns {$protobuf.Writer} Writer
|
|
112
|
+
*/
|
|
113
|
+
SpliceRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
|
|
114
|
+
return this.encode(message, writer).ldelim();
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Decodes a SpliceRequestBody message from the specified reader or buffer.
|
|
119
|
+
* @function decode
|
|
120
|
+
* @memberof bytes.SpliceRequestBody
|
|
121
|
+
* @static
|
|
122
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
123
|
+
* @param {number} [length] Message length if known beforehand
|
|
124
|
+
* @returns {bytes.SpliceRequestBody} SpliceRequestBody
|
|
125
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
126
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
127
|
+
*/
|
|
128
|
+
SpliceRequestBody.decode = function decode(reader, length) {
|
|
129
|
+
if (!(reader instanceof $Reader))
|
|
130
|
+
reader = $Reader.create(reader);
|
|
131
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.bytes.SpliceRequestBody();
|
|
132
|
+
while (reader.pos < end) {
|
|
133
|
+
var tag = reader.uint32();
|
|
134
|
+
switch (tag >>> 3) {
|
|
135
|
+
case 1:
|
|
136
|
+
message.pos = reader.uint64();
|
|
137
|
+
break;
|
|
138
|
+
case 2:
|
|
139
|
+
message.del = reader.uint64();
|
|
140
|
+
break;
|
|
141
|
+
case 3:
|
|
142
|
+
message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
|
|
143
|
+
break;
|
|
144
|
+
default:
|
|
145
|
+
reader.skipType(tag & 7);
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
return message;
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Decodes a SpliceRequestBody message from the specified reader or buffer, length delimited.
|
|
154
|
+
* @function decodeDelimited
|
|
155
|
+
* @memberof bytes.SpliceRequestBody
|
|
156
|
+
* @static
|
|
157
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
158
|
+
* @returns {bytes.SpliceRequestBody} SpliceRequestBody
|
|
159
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
160
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
161
|
+
*/
|
|
162
|
+
SpliceRequestBody.decodeDelimited = function decodeDelimited(reader) {
|
|
163
|
+
if (!(reader instanceof $Reader))
|
|
164
|
+
reader = new $Reader(reader);
|
|
165
|
+
return this.decode(reader, reader.uint32());
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Verifies a SpliceRequestBody message.
|
|
170
|
+
* @function verify
|
|
171
|
+
* @memberof bytes.SpliceRequestBody
|
|
172
|
+
* @static
|
|
173
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
174
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
175
|
+
*/
|
|
176
|
+
SpliceRequestBody.verify = function verify(message) {
|
|
177
|
+
if (typeof message !== "object" || message === null)
|
|
178
|
+
return "object expected";
|
|
179
|
+
if (message.pos != null && message.hasOwnProperty("pos"))
|
|
180
|
+
if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
|
|
181
|
+
return "pos: integer|Long expected";
|
|
182
|
+
if (message.del != null && message.hasOwnProperty("del"))
|
|
183
|
+
if (!$util.isInteger(message.del) && !(message.del && $util.isInteger(message.del.low) && $util.isInteger(message.del.high)))
|
|
184
|
+
return "del: integer|Long expected";
|
|
185
|
+
if (message.bytes != null && message.hasOwnProperty("bytes")) {
|
|
186
|
+
var error = $root.common.BytesValue.verify(message.bytes);
|
|
187
|
+
if (error)
|
|
188
|
+
return "bytes." + error;
|
|
189
|
+
}
|
|
190
|
+
return null;
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Creates a SpliceRequestBody message from a plain object. Also converts values to their respective internal types.
|
|
195
|
+
* @function fromObject
|
|
196
|
+
* @memberof bytes.SpliceRequestBody
|
|
197
|
+
* @static
|
|
198
|
+
* @param {Object.<string,*>} object Plain object
|
|
199
|
+
* @returns {bytes.SpliceRequestBody} SpliceRequestBody
|
|
200
|
+
*/
|
|
201
|
+
SpliceRequestBody.fromObject = function fromObject(object) {
|
|
202
|
+
if (object instanceof $root.bytes.SpliceRequestBody)
|
|
203
|
+
return object;
|
|
204
|
+
var message = new $root.bytes.SpliceRequestBody();
|
|
205
|
+
if (object.pos != null)
|
|
206
|
+
if ($util.Long)
|
|
207
|
+
(message.pos = $util.Long.fromValue(object.pos)).unsigned = true;
|
|
208
|
+
else if (typeof object.pos === "string")
|
|
209
|
+
message.pos = parseInt(object.pos, 10);
|
|
210
|
+
else if (typeof object.pos === "number")
|
|
211
|
+
message.pos = object.pos;
|
|
212
|
+
else if (typeof object.pos === "object")
|
|
213
|
+
message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber(true);
|
|
214
|
+
if (object.del != null)
|
|
215
|
+
if ($util.Long)
|
|
216
|
+
(message.del = $util.Long.fromValue(object.del)).unsigned = true;
|
|
217
|
+
else if (typeof object.del === "string")
|
|
218
|
+
message.del = parseInt(object.del, 10);
|
|
219
|
+
else if (typeof object.del === "number")
|
|
220
|
+
message.del = object.del;
|
|
221
|
+
else if (typeof object.del === "object")
|
|
222
|
+
message.del = new $util.LongBits(object.del.low >>> 0, object.del.high >>> 0).toNumber(true);
|
|
223
|
+
if (object.bytes != null) {
|
|
224
|
+
if (typeof object.bytes !== "object")
|
|
225
|
+
throw TypeError(".bytes.SpliceRequestBody.bytes: object expected");
|
|
226
|
+
message.bytes = $root.common.BytesValue.fromObject(object.bytes);
|
|
227
|
+
}
|
|
228
|
+
return message;
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Creates a plain object from a SpliceRequestBody message. Also converts values to other types if specified.
|
|
233
|
+
* @function toObject
|
|
234
|
+
* @memberof bytes.SpliceRequestBody
|
|
235
|
+
* @static
|
|
236
|
+
* @param {bytes.SpliceRequestBody} message SpliceRequestBody
|
|
237
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
238
|
+
* @returns {Object.<string,*>} Plain object
|
|
239
|
+
*/
|
|
240
|
+
SpliceRequestBody.toObject = function toObject(message, options) {
|
|
241
|
+
if (!options)
|
|
242
|
+
options = {};
|
|
243
|
+
var object = {};
|
|
244
|
+
if (options.defaults) {
|
|
245
|
+
if ($util.Long) {
|
|
246
|
+
var long = new $util.Long(0, 0, true);
|
|
247
|
+
object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
248
|
+
} else
|
|
249
|
+
object.pos = options.longs === String ? "0" : 0;
|
|
250
|
+
if ($util.Long) {
|
|
251
|
+
var long = new $util.Long(0, 0, true);
|
|
252
|
+
object.del = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
253
|
+
} else
|
|
254
|
+
object.del = options.longs === String ? "0" : 0;
|
|
255
|
+
object.bytes = null;
|
|
256
|
+
}
|
|
257
|
+
if (message.pos != null && message.hasOwnProperty("pos"))
|
|
258
|
+
if (typeof message.pos === "number")
|
|
259
|
+
object.pos = options.longs === String ? String(message.pos) : message.pos;
|
|
260
|
+
else
|
|
261
|
+
object.pos = options.longs === String ? $util.Long.prototype.toString.call(message.pos) : options.longs === Number ? new $util.LongBits(message.pos.low >>> 0, message.pos.high >>> 0).toNumber(true) : message.pos;
|
|
262
|
+
if (message.del != null && message.hasOwnProperty("del"))
|
|
263
|
+
if (typeof message.del === "number")
|
|
264
|
+
object.del = options.longs === String ? String(message.del) : message.del;
|
|
265
|
+
else
|
|
266
|
+
object.del = options.longs === String ? $util.Long.prototype.toString.call(message.del) : options.longs === Number ? new $util.LongBits(message.del.low >>> 0, message.del.high >>> 0).toNumber(true) : message.del;
|
|
267
|
+
if (message.bytes != null && message.hasOwnProperty("bytes"))
|
|
268
|
+
object.bytes = $root.common.BytesValue.toObject(message.bytes, options);
|
|
269
|
+
return object;
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Converts this SpliceRequestBody to JSON.
|
|
274
|
+
* @function toJSON
|
|
275
|
+
* @memberof bytes.SpliceRequestBody
|
|
276
|
+
* @instance
|
|
277
|
+
* @returns {Object.<string,*>} JSON object
|
|
278
|
+
*/
|
|
279
|
+
SpliceRequestBody.prototype.toJSON = function toJSON() {
|
|
280
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
281
|
+
};
|
|
282
|
+
|
|
283
|
+
return SpliceRequestBody;
|
|
284
|
+
})();
|
|
285
|
+
|
|
286
|
+
bytes.TruncateRequestBody = (function() {
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Properties of a TruncateRequestBody.
|
|
290
|
+
* @memberof bytes
|
|
291
|
+
* @interface ITruncateRequestBody
|
|
292
|
+
* @property {number|Long|null} [size] TruncateRequestBody size
|
|
293
|
+
*/
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Constructs a new TruncateRequestBody.
|
|
297
|
+
* @memberof bytes
|
|
298
|
+
* @classdesc Represents a TruncateRequestBody.
|
|
299
|
+
* @implements ITruncateRequestBody
|
|
300
|
+
* @constructor
|
|
301
|
+
* @param {bytes.ITruncateRequestBody=} [properties] Properties to set
|
|
302
|
+
*/
|
|
303
|
+
function TruncateRequestBody(properties) {
|
|
304
|
+
if (properties)
|
|
305
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
306
|
+
if (properties[keys[i]] != null)
|
|
307
|
+
this[keys[i]] = properties[keys[i]];
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* TruncateRequestBody size.
|
|
312
|
+
* @member {number|Long} size
|
|
313
|
+
* @memberof bytes.TruncateRequestBody
|
|
314
|
+
* @instance
|
|
315
|
+
*/
|
|
316
|
+
TruncateRequestBody.prototype.size = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Creates a new TruncateRequestBody instance using the specified properties.
|
|
320
|
+
* @function create
|
|
321
|
+
* @memberof bytes.TruncateRequestBody
|
|
322
|
+
* @static
|
|
323
|
+
* @param {bytes.ITruncateRequestBody=} [properties] Properties to set
|
|
324
|
+
* @returns {bytes.TruncateRequestBody} TruncateRequestBody instance
|
|
325
|
+
*/
|
|
326
|
+
TruncateRequestBody.create = function create(properties) {
|
|
327
|
+
return new TruncateRequestBody(properties);
|
|
328
|
+
};
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Encodes the specified TruncateRequestBody message. Does not implicitly {@link bytes.TruncateRequestBody.verify|verify} messages.
|
|
332
|
+
* @function encode
|
|
333
|
+
* @memberof bytes.TruncateRequestBody
|
|
334
|
+
* @static
|
|
335
|
+
* @param {bytes.ITruncateRequestBody} message TruncateRequestBody message or plain object to encode
|
|
336
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
337
|
+
* @returns {$protobuf.Writer} Writer
|
|
338
|
+
*/
|
|
339
|
+
TruncateRequestBody.encode = function encode(message, writer) {
|
|
340
|
+
if (!writer)
|
|
341
|
+
writer = $Writer.create();
|
|
342
|
+
if (message.size != null && Object.hasOwnProperty.call(message, "size"))
|
|
343
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.size);
|
|
344
|
+
return writer;
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Encodes the specified TruncateRequestBody message, length delimited. Does not implicitly {@link bytes.TruncateRequestBody.verify|verify} messages.
|
|
349
|
+
* @function encodeDelimited
|
|
350
|
+
* @memberof bytes.TruncateRequestBody
|
|
351
|
+
* @static
|
|
352
|
+
* @param {bytes.ITruncateRequestBody} message TruncateRequestBody message or plain object to encode
|
|
353
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
354
|
+
* @returns {$protobuf.Writer} Writer
|
|
355
|
+
*/
|
|
356
|
+
TruncateRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
|
|
357
|
+
return this.encode(message, writer).ldelim();
|
|
358
|
+
};
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* Decodes a TruncateRequestBody message from the specified reader or buffer.
|
|
362
|
+
* @function decode
|
|
363
|
+
* @memberof bytes.TruncateRequestBody
|
|
364
|
+
* @static
|
|
365
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
366
|
+
* @param {number} [length] Message length if known beforehand
|
|
367
|
+
* @returns {bytes.TruncateRequestBody} TruncateRequestBody
|
|
368
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
369
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
370
|
+
*/
|
|
371
|
+
TruncateRequestBody.decode = function decode(reader, length) {
|
|
372
|
+
if (!(reader instanceof $Reader))
|
|
373
|
+
reader = $Reader.create(reader);
|
|
374
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.bytes.TruncateRequestBody();
|
|
375
|
+
while (reader.pos < end) {
|
|
376
|
+
var tag = reader.uint32();
|
|
377
|
+
switch (tag >>> 3) {
|
|
378
|
+
case 1:
|
|
379
|
+
message.size = reader.uint64();
|
|
380
|
+
break;
|
|
381
|
+
default:
|
|
382
|
+
reader.skipType(tag & 7);
|
|
383
|
+
break;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
return message;
|
|
387
|
+
};
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* Decodes a TruncateRequestBody message from the specified reader or buffer, length delimited.
|
|
391
|
+
* @function decodeDelimited
|
|
392
|
+
* @memberof bytes.TruncateRequestBody
|
|
393
|
+
* @static
|
|
394
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
395
|
+
* @returns {bytes.TruncateRequestBody} TruncateRequestBody
|
|
396
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
397
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
398
|
+
*/
|
|
399
|
+
TruncateRequestBody.decodeDelimited = function decodeDelimited(reader) {
|
|
400
|
+
if (!(reader instanceof $Reader))
|
|
401
|
+
reader = new $Reader(reader);
|
|
402
|
+
return this.decode(reader, reader.uint32());
|
|
403
|
+
};
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Verifies a TruncateRequestBody message.
|
|
407
|
+
* @function verify
|
|
408
|
+
* @memberof bytes.TruncateRequestBody
|
|
409
|
+
* @static
|
|
410
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
411
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
412
|
+
*/
|
|
413
|
+
TruncateRequestBody.verify = function verify(message) {
|
|
414
|
+
if (typeof message !== "object" || message === null)
|
|
415
|
+
return "object expected";
|
|
416
|
+
if (message.size != null && message.hasOwnProperty("size"))
|
|
417
|
+
if (!$util.isInteger(message.size) && !(message.size && $util.isInteger(message.size.low) && $util.isInteger(message.size.high)))
|
|
418
|
+
return "size: integer|Long expected";
|
|
419
|
+
return null;
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* Creates a TruncateRequestBody message from a plain object. Also converts values to their respective internal types.
|
|
424
|
+
* @function fromObject
|
|
425
|
+
* @memberof bytes.TruncateRequestBody
|
|
426
|
+
* @static
|
|
427
|
+
* @param {Object.<string,*>} object Plain object
|
|
428
|
+
* @returns {bytes.TruncateRequestBody} TruncateRequestBody
|
|
429
|
+
*/
|
|
430
|
+
TruncateRequestBody.fromObject = function fromObject(object) {
|
|
431
|
+
if (object instanceof $root.bytes.TruncateRequestBody)
|
|
432
|
+
return object;
|
|
433
|
+
var message = new $root.bytes.TruncateRequestBody();
|
|
434
|
+
if (object.size != null)
|
|
435
|
+
if ($util.Long)
|
|
436
|
+
(message.size = $util.Long.fromValue(object.size)).unsigned = true;
|
|
437
|
+
else if (typeof object.size === "string")
|
|
438
|
+
message.size = parseInt(object.size, 10);
|
|
439
|
+
else if (typeof object.size === "number")
|
|
440
|
+
message.size = object.size;
|
|
441
|
+
else if (typeof object.size === "object")
|
|
442
|
+
message.size = new $util.LongBits(object.size.low >>> 0, object.size.high >>> 0).toNumber(true);
|
|
443
|
+
return message;
|
|
444
|
+
};
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Creates a plain object from a TruncateRequestBody message. Also converts values to other types if specified.
|
|
448
|
+
* @function toObject
|
|
449
|
+
* @memberof bytes.TruncateRequestBody
|
|
450
|
+
* @static
|
|
451
|
+
* @param {bytes.TruncateRequestBody} message TruncateRequestBody
|
|
452
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
453
|
+
* @returns {Object.<string,*>} Plain object
|
|
454
|
+
*/
|
|
455
|
+
TruncateRequestBody.toObject = function toObject(message, options) {
|
|
456
|
+
if (!options)
|
|
457
|
+
options = {};
|
|
458
|
+
var object = {};
|
|
459
|
+
if (options.defaults)
|
|
460
|
+
if ($util.Long) {
|
|
461
|
+
var long = new $util.Long(0, 0, true);
|
|
462
|
+
object.size = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
463
|
+
} else
|
|
464
|
+
object.size = options.longs === String ? "0" : 0;
|
|
465
|
+
if (message.size != null && message.hasOwnProperty("size"))
|
|
466
|
+
if (typeof message.size === "number")
|
|
467
|
+
object.size = options.longs === String ? String(message.size) : message.size;
|
|
468
|
+
else
|
|
469
|
+
object.size = options.longs === String ? $util.Long.prototype.toString.call(message.size) : options.longs === Number ? new $util.LongBits(message.size.low >>> 0, message.size.high >>> 0).toNumber(true) : message.size;
|
|
470
|
+
return object;
|
|
471
|
+
};
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* Converts this TruncateRequestBody to JSON.
|
|
475
|
+
* @function toJSON
|
|
476
|
+
* @memberof bytes.TruncateRequestBody
|
|
477
|
+
* @instance
|
|
478
|
+
* @returns {Object.<string,*>} JSON object
|
|
479
|
+
*/
|
|
480
|
+
TruncateRequestBody.prototype.toJSON = function toJSON() {
|
|
481
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
482
|
+
};
|
|
483
|
+
|
|
484
|
+
return TruncateRequestBody;
|
|
485
|
+
})();
|
|
486
|
+
|
|
487
|
+
bytes.FileLayoutMsg = (function() {
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* Properties of a FileLayoutMsg.
|
|
491
|
+
* @memberof bytes
|
|
492
|
+
* @interface IFileLayoutMsg
|
|
493
|
+
* @property {common.IUInt64Value|null} [base] FileLayoutMsg base
|
|
494
|
+
* @property {Array.<bytes.FileLayoutMsg.ILayoutSection>|null} [sections] FileLayoutMsg sections
|
|
495
|
+
*/
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* Constructs a new FileLayoutMsg.
|
|
499
|
+
* @memberof bytes
|
|
500
|
+
* @classdesc Represents a FileLayoutMsg.
|
|
501
|
+
* @implements IFileLayoutMsg
|
|
502
|
+
* @constructor
|
|
503
|
+
* @param {bytes.IFileLayoutMsg=} [properties] Properties to set
|
|
504
|
+
*/
|
|
505
|
+
function FileLayoutMsg(properties) {
|
|
506
|
+
this.sections = [];
|
|
507
|
+
if (properties)
|
|
508
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
509
|
+
if (properties[keys[i]] != null)
|
|
510
|
+
this[keys[i]] = properties[keys[i]];
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* FileLayoutMsg base.
|
|
515
|
+
* @member {common.IUInt64Value|null|undefined} base
|
|
516
|
+
* @memberof bytes.FileLayoutMsg
|
|
517
|
+
* @instance
|
|
518
|
+
*/
|
|
519
|
+
FileLayoutMsg.prototype.base = null;
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* FileLayoutMsg sections.
|
|
523
|
+
* @member {Array.<bytes.FileLayoutMsg.ILayoutSection>} sections
|
|
524
|
+
* @memberof bytes.FileLayoutMsg
|
|
525
|
+
* @instance
|
|
526
|
+
*/
|
|
527
|
+
FileLayoutMsg.prototype.sections = $util.emptyArray;
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* Creates a new FileLayoutMsg instance using the specified properties.
|
|
531
|
+
* @function create
|
|
532
|
+
* @memberof bytes.FileLayoutMsg
|
|
533
|
+
* @static
|
|
534
|
+
* @param {bytes.IFileLayoutMsg=} [properties] Properties to set
|
|
535
|
+
* @returns {bytes.FileLayoutMsg} FileLayoutMsg instance
|
|
536
|
+
*/
|
|
537
|
+
FileLayoutMsg.create = function create(properties) {
|
|
538
|
+
return new FileLayoutMsg(properties);
|
|
539
|
+
};
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* Encodes the specified FileLayoutMsg message. Does not implicitly {@link bytes.FileLayoutMsg.verify|verify} messages.
|
|
543
|
+
* @function encode
|
|
544
|
+
* @memberof bytes.FileLayoutMsg
|
|
545
|
+
* @static
|
|
546
|
+
* @param {bytes.IFileLayoutMsg} message FileLayoutMsg message or plain object to encode
|
|
547
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
548
|
+
* @returns {$protobuf.Writer} Writer
|
|
549
|
+
*/
|
|
550
|
+
FileLayoutMsg.encode = function encode(message, writer) {
|
|
551
|
+
if (!writer)
|
|
552
|
+
writer = $Writer.create();
|
|
553
|
+
if (message.base != null && Object.hasOwnProperty.call(message, "base"))
|
|
554
|
+
$root.common.UInt64Value.encode(message.base, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
555
|
+
if (message.sections != null && message.sections.length)
|
|
556
|
+
for (var i = 0; i < message.sections.length; ++i)
|
|
557
|
+
$root.bytes.FileLayoutMsg.LayoutSection.encode(message.sections[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
558
|
+
return writer;
|
|
559
|
+
};
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* Encodes the specified FileLayoutMsg message, length delimited. Does not implicitly {@link bytes.FileLayoutMsg.verify|verify} messages.
|
|
563
|
+
* @function encodeDelimited
|
|
564
|
+
* @memberof bytes.FileLayoutMsg
|
|
565
|
+
* @static
|
|
566
|
+
* @param {bytes.IFileLayoutMsg} message FileLayoutMsg message or plain object to encode
|
|
567
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
568
|
+
* @returns {$protobuf.Writer} Writer
|
|
569
|
+
*/
|
|
570
|
+
FileLayoutMsg.encodeDelimited = function encodeDelimited(message, writer) {
|
|
571
|
+
return this.encode(message, writer).ldelim();
|
|
572
|
+
};
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* Decodes a FileLayoutMsg message from the specified reader or buffer.
|
|
576
|
+
* @function decode
|
|
577
|
+
* @memberof bytes.FileLayoutMsg
|
|
578
|
+
* @static
|
|
579
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
580
|
+
* @param {number} [length] Message length if known beforehand
|
|
581
|
+
* @returns {bytes.FileLayoutMsg} FileLayoutMsg
|
|
582
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
583
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
584
|
+
*/
|
|
585
|
+
FileLayoutMsg.decode = function decode(reader, length) {
|
|
586
|
+
if (!(reader instanceof $Reader))
|
|
587
|
+
reader = $Reader.create(reader);
|
|
588
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.bytes.FileLayoutMsg();
|
|
589
|
+
while (reader.pos < end) {
|
|
590
|
+
var tag = reader.uint32();
|
|
591
|
+
switch (tag >>> 3) {
|
|
592
|
+
case 1:
|
|
593
|
+
message.base = $root.common.UInt64Value.decode(reader, reader.uint32());
|
|
594
|
+
break;
|
|
595
|
+
case 2:
|
|
596
|
+
if (!(message.sections && message.sections.length))
|
|
597
|
+
message.sections = [];
|
|
598
|
+
message.sections.push($root.bytes.FileLayoutMsg.LayoutSection.decode(reader, reader.uint32()));
|
|
599
|
+
break;
|
|
600
|
+
default:
|
|
601
|
+
reader.skipType(tag & 7);
|
|
602
|
+
break;
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
return message;
|
|
606
|
+
};
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* Decodes a FileLayoutMsg message from the specified reader or buffer, length delimited.
|
|
610
|
+
* @function decodeDelimited
|
|
611
|
+
* @memberof bytes.FileLayoutMsg
|
|
612
|
+
* @static
|
|
613
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
614
|
+
* @returns {bytes.FileLayoutMsg} FileLayoutMsg
|
|
615
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
616
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
617
|
+
*/
|
|
618
|
+
FileLayoutMsg.decodeDelimited = function decodeDelimited(reader) {
|
|
619
|
+
if (!(reader instanceof $Reader))
|
|
620
|
+
reader = new $Reader(reader);
|
|
621
|
+
return this.decode(reader, reader.uint32());
|
|
622
|
+
};
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* Verifies a FileLayoutMsg message.
|
|
626
|
+
* @function verify
|
|
627
|
+
* @memberof bytes.FileLayoutMsg
|
|
628
|
+
* @static
|
|
629
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
630
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
631
|
+
*/
|
|
632
|
+
FileLayoutMsg.verify = function verify(message) {
|
|
633
|
+
if (typeof message !== "object" || message === null)
|
|
634
|
+
return "object expected";
|
|
635
|
+
if (message.base != null && message.hasOwnProperty("base")) {
|
|
636
|
+
var error = $root.common.UInt64Value.verify(message.base);
|
|
637
|
+
if (error)
|
|
638
|
+
return "base." + error;
|
|
639
|
+
}
|
|
640
|
+
if (message.sections != null && message.hasOwnProperty("sections")) {
|
|
641
|
+
if (!Array.isArray(message.sections))
|
|
642
|
+
return "sections: array expected";
|
|
643
|
+
for (var i = 0; i < message.sections.length; ++i) {
|
|
644
|
+
var error = $root.bytes.FileLayoutMsg.LayoutSection.verify(message.sections[i]);
|
|
645
|
+
if (error)
|
|
646
|
+
return "sections." + error;
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
return null;
|
|
650
|
+
};
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* Creates a FileLayoutMsg message from a plain object. Also converts values to their respective internal types.
|
|
654
|
+
* @function fromObject
|
|
655
|
+
* @memberof bytes.FileLayoutMsg
|
|
656
|
+
* @static
|
|
657
|
+
* @param {Object.<string,*>} object Plain object
|
|
658
|
+
* @returns {bytes.FileLayoutMsg} FileLayoutMsg
|
|
659
|
+
*/
|
|
660
|
+
FileLayoutMsg.fromObject = function fromObject(object) {
|
|
661
|
+
if (object instanceof $root.bytes.FileLayoutMsg)
|
|
662
|
+
return object;
|
|
663
|
+
var message = new $root.bytes.FileLayoutMsg();
|
|
664
|
+
if (object.base != null) {
|
|
665
|
+
if (typeof object.base !== "object")
|
|
666
|
+
throw TypeError(".bytes.FileLayoutMsg.base: object expected");
|
|
667
|
+
message.base = $root.common.UInt64Value.fromObject(object.base);
|
|
668
|
+
}
|
|
669
|
+
if (object.sections) {
|
|
670
|
+
if (!Array.isArray(object.sections))
|
|
671
|
+
throw TypeError(".bytes.FileLayoutMsg.sections: array expected");
|
|
672
|
+
message.sections = [];
|
|
673
|
+
for (var i = 0; i < object.sections.length; ++i) {
|
|
674
|
+
if (typeof object.sections[i] !== "object")
|
|
675
|
+
throw TypeError(".bytes.FileLayoutMsg.sections: object expected");
|
|
676
|
+
message.sections[i] = $root.bytes.FileLayoutMsg.LayoutSection.fromObject(object.sections[i]);
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
return message;
|
|
680
|
+
};
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
* Creates a plain object from a FileLayoutMsg message. Also converts values to other types if specified.
|
|
684
|
+
* @function toObject
|
|
685
|
+
* @memberof bytes.FileLayoutMsg
|
|
686
|
+
* @static
|
|
687
|
+
* @param {bytes.FileLayoutMsg} message FileLayoutMsg
|
|
688
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
689
|
+
* @returns {Object.<string,*>} Plain object
|
|
690
|
+
*/
|
|
691
|
+
FileLayoutMsg.toObject = function toObject(message, options) {
|
|
692
|
+
if (!options)
|
|
693
|
+
options = {};
|
|
694
|
+
var object = {};
|
|
695
|
+
if (options.arrays || options.defaults)
|
|
696
|
+
object.sections = [];
|
|
697
|
+
if (options.defaults)
|
|
698
|
+
object.base = null;
|
|
699
|
+
if (message.base != null && message.hasOwnProperty("base"))
|
|
700
|
+
object.base = $root.common.UInt64Value.toObject(message.base, options);
|
|
701
|
+
if (message.sections && message.sections.length) {
|
|
702
|
+
object.sections = [];
|
|
703
|
+
for (var j = 0; j < message.sections.length; ++j)
|
|
704
|
+
object.sections[j] = $root.bytes.FileLayoutMsg.LayoutSection.toObject(message.sections[j], options);
|
|
705
|
+
}
|
|
706
|
+
return object;
|
|
707
|
+
};
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
* Converts this FileLayoutMsg to JSON.
|
|
711
|
+
* @function toJSON
|
|
712
|
+
* @memberof bytes.FileLayoutMsg
|
|
713
|
+
* @instance
|
|
714
|
+
* @returns {Object.<string,*>} JSON object
|
|
715
|
+
*/
|
|
716
|
+
FileLayoutMsg.prototype.toJSON = function toJSON() {
|
|
717
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
718
|
+
};
|
|
719
|
+
|
|
720
|
+
FileLayoutMsg.LayoutSection = (function() {
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* Properties of a LayoutSection.
|
|
724
|
+
* @memberof bytes.FileLayoutMsg
|
|
725
|
+
* @interface ILayoutSection
|
|
726
|
+
* @property {string|null} [src] LayoutSection src
|
|
727
|
+
* @property {number|Long|null} [ofs] LayoutSection ofs
|
|
728
|
+
* @property {number|Long|null} [len] LayoutSection len
|
|
729
|
+
*/
|
|
730
|
+
|
|
731
|
+
/**
|
|
732
|
+
* Constructs a new LayoutSection.
|
|
733
|
+
* @memberof bytes.FileLayoutMsg
|
|
734
|
+
* @classdesc Represents a LayoutSection.
|
|
735
|
+
* @implements ILayoutSection
|
|
736
|
+
* @constructor
|
|
737
|
+
* @param {bytes.FileLayoutMsg.ILayoutSection=} [properties] Properties to set
|
|
738
|
+
*/
|
|
739
|
+
function LayoutSection(properties) {
|
|
740
|
+
if (properties)
|
|
741
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
742
|
+
if (properties[keys[i]] != null)
|
|
743
|
+
this[keys[i]] = properties[keys[i]];
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
/**
|
|
747
|
+
* LayoutSection src.
|
|
748
|
+
* @member {string} src
|
|
749
|
+
* @memberof bytes.FileLayoutMsg.LayoutSection
|
|
750
|
+
* @instance
|
|
751
|
+
*/
|
|
752
|
+
LayoutSection.prototype.src = "";
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* LayoutSection ofs.
|
|
756
|
+
* @member {number|Long} ofs
|
|
757
|
+
* @memberof bytes.FileLayoutMsg.LayoutSection
|
|
758
|
+
* @instance
|
|
759
|
+
*/
|
|
760
|
+
LayoutSection.prototype.ofs = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
761
|
+
|
|
762
|
+
/**
|
|
763
|
+
* LayoutSection len.
|
|
764
|
+
* @member {number|Long} len
|
|
765
|
+
* @memberof bytes.FileLayoutMsg.LayoutSection
|
|
766
|
+
* @instance
|
|
767
|
+
*/
|
|
768
|
+
LayoutSection.prototype.len = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
769
|
+
|
|
770
|
+
/**
|
|
771
|
+
* Creates a new LayoutSection instance using the specified properties.
|
|
772
|
+
* @function create
|
|
773
|
+
* @memberof bytes.FileLayoutMsg.LayoutSection
|
|
774
|
+
* @static
|
|
775
|
+
* @param {bytes.FileLayoutMsg.ILayoutSection=} [properties] Properties to set
|
|
776
|
+
* @returns {bytes.FileLayoutMsg.LayoutSection} LayoutSection instance
|
|
777
|
+
*/
|
|
778
|
+
LayoutSection.create = function create(properties) {
|
|
779
|
+
return new LayoutSection(properties);
|
|
780
|
+
};
|
|
781
|
+
|
|
782
|
+
/**
|
|
783
|
+
* Encodes the specified LayoutSection message. Does not implicitly {@link bytes.FileLayoutMsg.LayoutSection.verify|verify} messages.
|
|
784
|
+
* @function encode
|
|
785
|
+
* @memberof bytes.FileLayoutMsg.LayoutSection
|
|
786
|
+
* @static
|
|
787
|
+
* @param {bytes.FileLayoutMsg.ILayoutSection} message LayoutSection message or plain object to encode
|
|
788
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
789
|
+
* @returns {$protobuf.Writer} Writer
|
|
790
|
+
*/
|
|
791
|
+
LayoutSection.encode = function encode(message, writer) {
|
|
792
|
+
if (!writer)
|
|
793
|
+
writer = $Writer.create();
|
|
794
|
+
if (message.src != null && Object.hasOwnProperty.call(message, "src"))
|
|
795
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.src);
|
|
796
|
+
if (message.ofs != null && Object.hasOwnProperty.call(message, "ofs"))
|
|
797
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.ofs);
|
|
798
|
+
if (message.len != null && Object.hasOwnProperty.call(message, "len"))
|
|
799
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.len);
|
|
800
|
+
return writer;
|
|
801
|
+
};
|
|
802
|
+
|
|
803
|
+
/**
|
|
804
|
+
* Encodes the specified LayoutSection message, length delimited. Does not implicitly {@link bytes.FileLayoutMsg.LayoutSection.verify|verify} messages.
|
|
805
|
+
* @function encodeDelimited
|
|
806
|
+
* @memberof bytes.FileLayoutMsg.LayoutSection
|
|
807
|
+
* @static
|
|
808
|
+
* @param {bytes.FileLayoutMsg.ILayoutSection} message LayoutSection message or plain object to encode
|
|
809
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
810
|
+
* @returns {$protobuf.Writer} Writer
|
|
811
|
+
*/
|
|
812
|
+
LayoutSection.encodeDelimited = function encodeDelimited(message, writer) {
|
|
813
|
+
return this.encode(message, writer).ldelim();
|
|
814
|
+
};
|
|
815
|
+
|
|
816
|
+
/**
|
|
817
|
+
* Decodes a LayoutSection message from the specified reader or buffer.
|
|
818
|
+
* @function decode
|
|
819
|
+
* @memberof bytes.FileLayoutMsg.LayoutSection
|
|
820
|
+
* @static
|
|
821
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
822
|
+
* @param {number} [length] Message length if known beforehand
|
|
823
|
+
* @returns {bytes.FileLayoutMsg.LayoutSection} LayoutSection
|
|
824
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
825
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
826
|
+
*/
|
|
827
|
+
LayoutSection.decode = function decode(reader, length) {
|
|
828
|
+
if (!(reader instanceof $Reader))
|
|
829
|
+
reader = $Reader.create(reader);
|
|
830
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.bytes.FileLayoutMsg.LayoutSection();
|
|
831
|
+
while (reader.pos < end) {
|
|
832
|
+
var tag = reader.uint32();
|
|
833
|
+
switch (tag >>> 3) {
|
|
834
|
+
case 1:
|
|
835
|
+
message.src = reader.string();
|
|
836
|
+
break;
|
|
837
|
+
case 2:
|
|
838
|
+
message.ofs = reader.uint64();
|
|
839
|
+
break;
|
|
840
|
+
case 3:
|
|
841
|
+
message.len = reader.uint64();
|
|
842
|
+
break;
|
|
843
|
+
default:
|
|
844
|
+
reader.skipType(tag & 7);
|
|
845
|
+
break;
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
return message;
|
|
849
|
+
};
|
|
850
|
+
|
|
851
|
+
/**
|
|
852
|
+
* Decodes a LayoutSection message from the specified reader or buffer, length delimited.
|
|
853
|
+
* @function decodeDelimited
|
|
854
|
+
* @memberof bytes.FileLayoutMsg.LayoutSection
|
|
855
|
+
* @static
|
|
856
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
857
|
+
* @returns {bytes.FileLayoutMsg.LayoutSection} LayoutSection
|
|
858
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
859
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
860
|
+
*/
|
|
861
|
+
LayoutSection.decodeDelimited = function decodeDelimited(reader) {
|
|
862
|
+
if (!(reader instanceof $Reader))
|
|
863
|
+
reader = new $Reader(reader);
|
|
864
|
+
return this.decode(reader, reader.uint32());
|
|
865
|
+
};
|
|
866
|
+
|
|
867
|
+
/**
|
|
868
|
+
* Verifies a LayoutSection message.
|
|
869
|
+
* @function verify
|
|
870
|
+
* @memberof bytes.FileLayoutMsg.LayoutSection
|
|
871
|
+
* @static
|
|
872
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
873
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
874
|
+
*/
|
|
875
|
+
LayoutSection.verify = function verify(message) {
|
|
876
|
+
if (typeof message !== "object" || message === null)
|
|
877
|
+
return "object expected";
|
|
878
|
+
if (message.src != null && message.hasOwnProperty("src"))
|
|
879
|
+
if (!$util.isString(message.src))
|
|
880
|
+
return "src: string expected";
|
|
881
|
+
if (message.ofs != null && message.hasOwnProperty("ofs"))
|
|
882
|
+
if (!$util.isInteger(message.ofs) && !(message.ofs && $util.isInteger(message.ofs.low) && $util.isInteger(message.ofs.high)))
|
|
883
|
+
return "ofs: integer|Long expected";
|
|
884
|
+
if (message.len != null && message.hasOwnProperty("len"))
|
|
885
|
+
if (!$util.isInteger(message.len) && !(message.len && $util.isInteger(message.len.low) && $util.isInteger(message.len.high)))
|
|
886
|
+
return "len: integer|Long expected";
|
|
887
|
+
return null;
|
|
888
|
+
};
|
|
889
|
+
|
|
890
|
+
/**
|
|
891
|
+
* Creates a LayoutSection message from a plain object. Also converts values to their respective internal types.
|
|
892
|
+
* @function fromObject
|
|
893
|
+
* @memberof bytes.FileLayoutMsg.LayoutSection
|
|
894
|
+
* @static
|
|
895
|
+
* @param {Object.<string,*>} object Plain object
|
|
896
|
+
* @returns {bytes.FileLayoutMsg.LayoutSection} LayoutSection
|
|
897
|
+
*/
|
|
898
|
+
LayoutSection.fromObject = function fromObject(object) {
|
|
899
|
+
if (object instanceof $root.bytes.FileLayoutMsg.LayoutSection)
|
|
900
|
+
return object;
|
|
901
|
+
var message = new $root.bytes.FileLayoutMsg.LayoutSection();
|
|
902
|
+
if (object.src != null)
|
|
903
|
+
message.src = String(object.src);
|
|
904
|
+
if (object.ofs != null)
|
|
905
|
+
if ($util.Long)
|
|
906
|
+
(message.ofs = $util.Long.fromValue(object.ofs)).unsigned = true;
|
|
907
|
+
else if (typeof object.ofs === "string")
|
|
908
|
+
message.ofs = parseInt(object.ofs, 10);
|
|
909
|
+
else if (typeof object.ofs === "number")
|
|
910
|
+
message.ofs = object.ofs;
|
|
911
|
+
else if (typeof object.ofs === "object")
|
|
912
|
+
message.ofs = new $util.LongBits(object.ofs.low >>> 0, object.ofs.high >>> 0).toNumber(true);
|
|
913
|
+
if (object.len != null)
|
|
914
|
+
if ($util.Long)
|
|
915
|
+
(message.len = $util.Long.fromValue(object.len)).unsigned = true;
|
|
916
|
+
else if (typeof object.len === "string")
|
|
917
|
+
message.len = parseInt(object.len, 10);
|
|
918
|
+
else if (typeof object.len === "number")
|
|
919
|
+
message.len = object.len;
|
|
920
|
+
else if (typeof object.len === "object")
|
|
921
|
+
message.len = new $util.LongBits(object.len.low >>> 0, object.len.high >>> 0).toNumber(true);
|
|
922
|
+
return message;
|
|
923
|
+
};
|
|
924
|
+
|
|
925
|
+
/**
|
|
926
|
+
* Creates a plain object from a LayoutSection message. Also converts values to other types if specified.
|
|
927
|
+
* @function toObject
|
|
928
|
+
* @memberof bytes.FileLayoutMsg.LayoutSection
|
|
929
|
+
* @static
|
|
930
|
+
* @param {bytes.FileLayoutMsg.LayoutSection} message LayoutSection
|
|
931
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
932
|
+
* @returns {Object.<string,*>} Plain object
|
|
933
|
+
*/
|
|
934
|
+
LayoutSection.toObject = function toObject(message, options) {
|
|
935
|
+
if (!options)
|
|
936
|
+
options = {};
|
|
937
|
+
var object = {};
|
|
938
|
+
if (options.defaults) {
|
|
939
|
+
object.src = "";
|
|
940
|
+
if ($util.Long) {
|
|
941
|
+
var long = new $util.Long(0, 0, true);
|
|
942
|
+
object.ofs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
943
|
+
} else
|
|
944
|
+
object.ofs = options.longs === String ? "0" : 0;
|
|
945
|
+
if ($util.Long) {
|
|
946
|
+
var long = new $util.Long(0, 0, true);
|
|
947
|
+
object.len = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
948
|
+
} else
|
|
949
|
+
object.len = options.longs === String ? "0" : 0;
|
|
950
|
+
}
|
|
951
|
+
if (message.src != null && message.hasOwnProperty("src"))
|
|
952
|
+
object.src = message.src;
|
|
953
|
+
if (message.ofs != null && message.hasOwnProperty("ofs"))
|
|
954
|
+
if (typeof message.ofs === "number")
|
|
955
|
+
object.ofs = options.longs === String ? String(message.ofs) : message.ofs;
|
|
956
|
+
else
|
|
957
|
+
object.ofs = options.longs === String ? $util.Long.prototype.toString.call(message.ofs) : options.longs === Number ? new $util.LongBits(message.ofs.low >>> 0, message.ofs.high >>> 0).toNumber(true) : message.ofs;
|
|
958
|
+
if (message.len != null && message.hasOwnProperty("len"))
|
|
959
|
+
if (typeof message.len === "number")
|
|
960
|
+
object.len = options.longs === String ? String(message.len) : message.len;
|
|
961
|
+
else
|
|
962
|
+
object.len = options.longs === String ? $util.Long.prototype.toString.call(message.len) : options.longs === Number ? new $util.LongBits(message.len.low >>> 0, message.len.high >>> 0).toNumber(true) : message.len;
|
|
963
|
+
return object;
|
|
964
|
+
};
|
|
965
|
+
|
|
966
|
+
/**
|
|
967
|
+
* Converts this LayoutSection to JSON.
|
|
968
|
+
* @function toJSON
|
|
969
|
+
* @memberof bytes.FileLayoutMsg.LayoutSection
|
|
970
|
+
* @instance
|
|
971
|
+
* @returns {Object.<string,*>} JSON object
|
|
972
|
+
*/
|
|
973
|
+
LayoutSection.prototype.toJSON = function toJSON() {
|
|
974
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
975
|
+
};
|
|
976
|
+
|
|
977
|
+
return LayoutSection;
|
|
978
|
+
})();
|
|
979
|
+
|
|
980
|
+
return FileLayoutMsg;
|
|
981
|
+
})();
|
|
982
|
+
|
|
983
|
+
bytes.DoneRequestBody = (function() {
|
|
984
|
+
|
|
985
|
+
/**
|
|
986
|
+
* Properties of a DoneRequestBody.
|
|
987
|
+
* @memberof bytes
|
|
988
|
+
* @interface IDoneRequestBody
|
|
989
|
+
* @property {common.IErrorValue|null} [err] DoneRequestBody err
|
|
990
|
+
*/
|
|
991
|
+
|
|
992
|
+
/**
|
|
993
|
+
* Constructs a new DoneRequestBody.
|
|
994
|
+
* @memberof bytes
|
|
995
|
+
* @classdesc Represents a DoneRequestBody.
|
|
996
|
+
* @implements IDoneRequestBody
|
|
997
|
+
* @constructor
|
|
998
|
+
* @param {bytes.IDoneRequestBody=} [properties] Properties to set
|
|
999
|
+
*/
|
|
1000
|
+
function DoneRequestBody(properties) {
|
|
1001
|
+
if (properties)
|
|
1002
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1003
|
+
if (properties[keys[i]] != null)
|
|
1004
|
+
this[keys[i]] = properties[keys[i]];
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
/**
|
|
1008
|
+
* DoneRequestBody err.
|
|
1009
|
+
* @member {common.IErrorValue|null|undefined} err
|
|
1010
|
+
* @memberof bytes.DoneRequestBody
|
|
1011
|
+
* @instance
|
|
1012
|
+
*/
|
|
1013
|
+
DoneRequestBody.prototype.err = null;
|
|
1014
|
+
|
|
1015
|
+
/**
|
|
1016
|
+
* Creates a new DoneRequestBody instance using the specified properties.
|
|
1017
|
+
* @function create
|
|
1018
|
+
* @memberof bytes.DoneRequestBody
|
|
1019
|
+
* @static
|
|
1020
|
+
* @param {bytes.IDoneRequestBody=} [properties] Properties to set
|
|
1021
|
+
* @returns {bytes.DoneRequestBody} DoneRequestBody instance
|
|
1022
|
+
*/
|
|
1023
|
+
DoneRequestBody.create = function create(properties) {
|
|
1024
|
+
return new DoneRequestBody(properties);
|
|
1025
|
+
};
|
|
1026
|
+
|
|
1027
|
+
/**
|
|
1028
|
+
* Encodes the specified DoneRequestBody message. Does not implicitly {@link bytes.DoneRequestBody.verify|verify} messages.
|
|
1029
|
+
* @function encode
|
|
1030
|
+
* @memberof bytes.DoneRequestBody
|
|
1031
|
+
* @static
|
|
1032
|
+
* @param {bytes.IDoneRequestBody} message DoneRequestBody message or plain object to encode
|
|
1033
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1034
|
+
* @returns {$protobuf.Writer} Writer
|
|
1035
|
+
*/
|
|
1036
|
+
DoneRequestBody.encode = function encode(message, writer) {
|
|
1037
|
+
if (!writer)
|
|
1038
|
+
writer = $Writer.create();
|
|
1039
|
+
if (message.err != null && Object.hasOwnProperty.call(message, "err"))
|
|
1040
|
+
$root.common.ErrorValue.encode(message.err, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
1041
|
+
return writer;
|
|
1042
|
+
};
|
|
1043
|
+
|
|
1044
|
+
/**
|
|
1045
|
+
* Encodes the specified DoneRequestBody message, length delimited. Does not implicitly {@link bytes.DoneRequestBody.verify|verify} messages.
|
|
1046
|
+
* @function encodeDelimited
|
|
1047
|
+
* @memberof bytes.DoneRequestBody
|
|
1048
|
+
* @static
|
|
1049
|
+
* @param {bytes.IDoneRequestBody} message DoneRequestBody message or plain object to encode
|
|
1050
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1051
|
+
* @returns {$protobuf.Writer} Writer
|
|
1052
|
+
*/
|
|
1053
|
+
DoneRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1054
|
+
return this.encode(message, writer).ldelim();
|
|
1055
|
+
};
|
|
1056
|
+
|
|
1057
|
+
/**
|
|
1058
|
+
* Decodes a DoneRequestBody message from the specified reader or buffer.
|
|
1059
|
+
* @function decode
|
|
1060
|
+
* @memberof bytes.DoneRequestBody
|
|
1061
|
+
* @static
|
|
1062
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1063
|
+
* @param {number} [length] Message length if known beforehand
|
|
1064
|
+
* @returns {bytes.DoneRequestBody} DoneRequestBody
|
|
1065
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1066
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1067
|
+
*/
|
|
1068
|
+
DoneRequestBody.decode = function decode(reader, length) {
|
|
1069
|
+
if (!(reader instanceof $Reader))
|
|
1070
|
+
reader = $Reader.create(reader);
|
|
1071
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.bytes.DoneRequestBody();
|
|
1072
|
+
while (reader.pos < end) {
|
|
1073
|
+
var tag = reader.uint32();
|
|
1074
|
+
switch (tag >>> 3) {
|
|
1075
|
+
case 1:
|
|
1076
|
+
message.err = $root.common.ErrorValue.decode(reader, reader.uint32());
|
|
1077
|
+
break;
|
|
1078
|
+
default:
|
|
1079
|
+
reader.skipType(tag & 7);
|
|
1080
|
+
break;
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
return message;
|
|
1084
|
+
};
|
|
1085
|
+
|
|
1086
|
+
/**
|
|
1087
|
+
* Decodes a DoneRequestBody message from the specified reader or buffer, length delimited.
|
|
1088
|
+
* @function decodeDelimited
|
|
1089
|
+
* @memberof bytes.DoneRequestBody
|
|
1090
|
+
* @static
|
|
1091
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1092
|
+
* @returns {bytes.DoneRequestBody} DoneRequestBody
|
|
1093
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1094
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1095
|
+
*/
|
|
1096
|
+
DoneRequestBody.decodeDelimited = function decodeDelimited(reader) {
|
|
1097
|
+
if (!(reader instanceof $Reader))
|
|
1098
|
+
reader = new $Reader(reader);
|
|
1099
|
+
return this.decode(reader, reader.uint32());
|
|
1100
|
+
};
|
|
1101
|
+
|
|
1102
|
+
/**
|
|
1103
|
+
* Verifies a DoneRequestBody message.
|
|
1104
|
+
* @function verify
|
|
1105
|
+
* @memberof bytes.DoneRequestBody
|
|
1106
|
+
* @static
|
|
1107
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
1108
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1109
|
+
*/
|
|
1110
|
+
DoneRequestBody.verify = function verify(message) {
|
|
1111
|
+
if (typeof message !== "object" || message === null)
|
|
1112
|
+
return "object expected";
|
|
1113
|
+
if (message.err != null && message.hasOwnProperty("err")) {
|
|
1114
|
+
var error = $root.common.ErrorValue.verify(message.err);
|
|
1115
|
+
if (error)
|
|
1116
|
+
return "err." + error;
|
|
1117
|
+
}
|
|
1118
|
+
return null;
|
|
1119
|
+
};
|
|
1120
|
+
|
|
1121
|
+
/**
|
|
1122
|
+
* Creates a DoneRequestBody message from a plain object. Also converts values to their respective internal types.
|
|
1123
|
+
* @function fromObject
|
|
1124
|
+
* @memberof bytes.DoneRequestBody
|
|
1125
|
+
* @static
|
|
1126
|
+
* @param {Object.<string,*>} object Plain object
|
|
1127
|
+
* @returns {bytes.DoneRequestBody} DoneRequestBody
|
|
1128
|
+
*/
|
|
1129
|
+
DoneRequestBody.fromObject = function fromObject(object) {
|
|
1130
|
+
if (object instanceof $root.bytes.DoneRequestBody)
|
|
1131
|
+
return object;
|
|
1132
|
+
var message = new $root.bytes.DoneRequestBody();
|
|
1133
|
+
if (object.err != null) {
|
|
1134
|
+
if (typeof object.err !== "object")
|
|
1135
|
+
throw TypeError(".bytes.DoneRequestBody.err: object expected");
|
|
1136
|
+
message.err = $root.common.ErrorValue.fromObject(object.err);
|
|
1137
|
+
}
|
|
1138
|
+
return message;
|
|
1139
|
+
};
|
|
1140
|
+
|
|
1141
|
+
/**
|
|
1142
|
+
* Creates a plain object from a DoneRequestBody message. Also converts values to other types if specified.
|
|
1143
|
+
* @function toObject
|
|
1144
|
+
* @memberof bytes.DoneRequestBody
|
|
1145
|
+
* @static
|
|
1146
|
+
* @param {bytes.DoneRequestBody} message DoneRequestBody
|
|
1147
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1148
|
+
* @returns {Object.<string,*>} Plain object
|
|
1149
|
+
*/
|
|
1150
|
+
DoneRequestBody.toObject = function toObject(message, options) {
|
|
1151
|
+
if (!options)
|
|
1152
|
+
options = {};
|
|
1153
|
+
var object = {};
|
|
1154
|
+
if (options.defaults)
|
|
1155
|
+
object.err = null;
|
|
1156
|
+
if (message.err != null && message.hasOwnProperty("err"))
|
|
1157
|
+
object.err = $root.common.ErrorValue.toObject(message.err, options);
|
|
1158
|
+
return object;
|
|
1159
|
+
};
|
|
1160
|
+
|
|
1161
|
+
/**
|
|
1162
|
+
* Converts this DoneRequestBody to JSON.
|
|
1163
|
+
* @function toJSON
|
|
1164
|
+
* @memberof bytes.DoneRequestBody
|
|
1165
|
+
* @instance
|
|
1166
|
+
* @returns {Object.<string,*>} JSON object
|
|
1167
|
+
*/
|
|
1168
|
+
DoneRequestBody.prototype.toJSON = function toJSON() {
|
|
1169
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1170
|
+
};
|
|
1171
|
+
|
|
1172
|
+
return DoneRequestBody;
|
|
1173
|
+
})();
|
|
1174
|
+
|
|
1175
|
+
bytes.ReadRequestBody = (function() {
|
|
1176
|
+
|
|
1177
|
+
/**
|
|
1178
|
+
* Properties of a ReadRequestBody.
|
|
1179
|
+
* @memberof bytes
|
|
1180
|
+
* @interface IReadRequestBody
|
|
1181
|
+
* @property {common.IUInt64Value|null} [len] ReadRequestBody len
|
|
1182
|
+
*/
|
|
1183
|
+
|
|
1184
|
+
/**
|
|
1185
|
+
* Constructs a new ReadRequestBody.
|
|
1186
|
+
* @memberof bytes
|
|
1187
|
+
* @classdesc Represents a ReadRequestBody.
|
|
1188
|
+
* @implements IReadRequestBody
|
|
1189
|
+
* @constructor
|
|
1190
|
+
* @param {bytes.IReadRequestBody=} [properties] Properties to set
|
|
1191
|
+
*/
|
|
1192
|
+
function ReadRequestBody(properties) {
|
|
1193
|
+
if (properties)
|
|
1194
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1195
|
+
if (properties[keys[i]] != null)
|
|
1196
|
+
this[keys[i]] = properties[keys[i]];
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
/**
|
|
1200
|
+
* ReadRequestBody len.
|
|
1201
|
+
* @member {common.IUInt64Value|null|undefined} len
|
|
1202
|
+
* @memberof bytes.ReadRequestBody
|
|
1203
|
+
* @instance
|
|
1204
|
+
*/
|
|
1205
|
+
ReadRequestBody.prototype.len = null;
|
|
1206
|
+
|
|
1207
|
+
/**
|
|
1208
|
+
* Creates a new ReadRequestBody instance using the specified properties.
|
|
1209
|
+
* @function create
|
|
1210
|
+
* @memberof bytes.ReadRequestBody
|
|
1211
|
+
* @static
|
|
1212
|
+
* @param {bytes.IReadRequestBody=} [properties] Properties to set
|
|
1213
|
+
* @returns {bytes.ReadRequestBody} ReadRequestBody instance
|
|
1214
|
+
*/
|
|
1215
|
+
ReadRequestBody.create = function create(properties) {
|
|
1216
|
+
return new ReadRequestBody(properties);
|
|
1217
|
+
};
|
|
1218
|
+
|
|
1219
|
+
/**
|
|
1220
|
+
* Encodes the specified ReadRequestBody message. Does not implicitly {@link bytes.ReadRequestBody.verify|verify} messages.
|
|
1221
|
+
* @function encode
|
|
1222
|
+
* @memberof bytes.ReadRequestBody
|
|
1223
|
+
* @static
|
|
1224
|
+
* @param {bytes.IReadRequestBody} message ReadRequestBody message or plain object to encode
|
|
1225
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1226
|
+
* @returns {$protobuf.Writer} Writer
|
|
1227
|
+
*/
|
|
1228
|
+
ReadRequestBody.encode = function encode(message, writer) {
|
|
1229
|
+
if (!writer)
|
|
1230
|
+
writer = $Writer.create();
|
|
1231
|
+
if (message.len != null && Object.hasOwnProperty.call(message, "len"))
|
|
1232
|
+
$root.common.UInt64Value.encode(message.len, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
1233
|
+
return writer;
|
|
1234
|
+
};
|
|
1235
|
+
|
|
1236
|
+
/**
|
|
1237
|
+
* Encodes the specified ReadRequestBody message, length delimited. Does not implicitly {@link bytes.ReadRequestBody.verify|verify} messages.
|
|
1238
|
+
* @function encodeDelimited
|
|
1239
|
+
* @memberof bytes.ReadRequestBody
|
|
1240
|
+
* @static
|
|
1241
|
+
* @param {bytes.IReadRequestBody} message ReadRequestBody message or plain object to encode
|
|
1242
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1243
|
+
* @returns {$protobuf.Writer} Writer
|
|
1244
|
+
*/
|
|
1245
|
+
ReadRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1246
|
+
return this.encode(message, writer).ldelim();
|
|
1247
|
+
};
|
|
1248
|
+
|
|
1249
|
+
/**
|
|
1250
|
+
* Decodes a ReadRequestBody message from the specified reader or buffer.
|
|
1251
|
+
* @function decode
|
|
1252
|
+
* @memberof bytes.ReadRequestBody
|
|
1253
|
+
* @static
|
|
1254
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1255
|
+
* @param {number} [length] Message length if known beforehand
|
|
1256
|
+
* @returns {bytes.ReadRequestBody} ReadRequestBody
|
|
1257
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1258
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1259
|
+
*/
|
|
1260
|
+
ReadRequestBody.decode = function decode(reader, length) {
|
|
1261
|
+
if (!(reader instanceof $Reader))
|
|
1262
|
+
reader = $Reader.create(reader);
|
|
1263
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.bytes.ReadRequestBody();
|
|
1264
|
+
while (reader.pos < end) {
|
|
1265
|
+
var tag = reader.uint32();
|
|
1266
|
+
switch (tag >>> 3) {
|
|
1267
|
+
case 1:
|
|
1268
|
+
message.len = $root.common.UInt64Value.decode(reader, reader.uint32());
|
|
1269
|
+
break;
|
|
1270
|
+
default:
|
|
1271
|
+
reader.skipType(tag & 7);
|
|
1272
|
+
break;
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
return message;
|
|
1276
|
+
};
|
|
1277
|
+
|
|
1278
|
+
/**
|
|
1279
|
+
* Decodes a ReadRequestBody message from the specified reader or buffer, length delimited.
|
|
1280
|
+
* @function decodeDelimited
|
|
1281
|
+
* @memberof bytes.ReadRequestBody
|
|
1282
|
+
* @static
|
|
1283
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1284
|
+
* @returns {bytes.ReadRequestBody} ReadRequestBody
|
|
1285
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1286
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1287
|
+
*/
|
|
1288
|
+
ReadRequestBody.decodeDelimited = function decodeDelimited(reader) {
|
|
1289
|
+
if (!(reader instanceof $Reader))
|
|
1290
|
+
reader = new $Reader(reader);
|
|
1291
|
+
return this.decode(reader, reader.uint32());
|
|
1292
|
+
};
|
|
1293
|
+
|
|
1294
|
+
/**
|
|
1295
|
+
* Verifies a ReadRequestBody message.
|
|
1296
|
+
* @function verify
|
|
1297
|
+
* @memberof bytes.ReadRequestBody
|
|
1298
|
+
* @static
|
|
1299
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
1300
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1301
|
+
*/
|
|
1302
|
+
ReadRequestBody.verify = function verify(message) {
|
|
1303
|
+
if (typeof message !== "object" || message === null)
|
|
1304
|
+
return "object expected";
|
|
1305
|
+
if (message.len != null && message.hasOwnProperty("len")) {
|
|
1306
|
+
var error = $root.common.UInt64Value.verify(message.len);
|
|
1307
|
+
if (error)
|
|
1308
|
+
return "len." + error;
|
|
1309
|
+
}
|
|
1310
|
+
return null;
|
|
1311
|
+
};
|
|
1312
|
+
|
|
1313
|
+
/**
|
|
1314
|
+
* Creates a ReadRequestBody message from a plain object. Also converts values to their respective internal types.
|
|
1315
|
+
* @function fromObject
|
|
1316
|
+
* @memberof bytes.ReadRequestBody
|
|
1317
|
+
* @static
|
|
1318
|
+
* @param {Object.<string,*>} object Plain object
|
|
1319
|
+
* @returns {bytes.ReadRequestBody} ReadRequestBody
|
|
1320
|
+
*/
|
|
1321
|
+
ReadRequestBody.fromObject = function fromObject(object) {
|
|
1322
|
+
if (object instanceof $root.bytes.ReadRequestBody)
|
|
1323
|
+
return object;
|
|
1324
|
+
var message = new $root.bytes.ReadRequestBody();
|
|
1325
|
+
if (object.len != null) {
|
|
1326
|
+
if (typeof object.len !== "object")
|
|
1327
|
+
throw TypeError(".bytes.ReadRequestBody.len: object expected");
|
|
1328
|
+
message.len = $root.common.UInt64Value.fromObject(object.len);
|
|
1329
|
+
}
|
|
1330
|
+
return message;
|
|
1331
|
+
};
|
|
1332
|
+
|
|
1333
|
+
/**
|
|
1334
|
+
* Creates a plain object from a ReadRequestBody message. Also converts values to other types if specified.
|
|
1335
|
+
* @function toObject
|
|
1336
|
+
* @memberof bytes.ReadRequestBody
|
|
1337
|
+
* @static
|
|
1338
|
+
* @param {bytes.ReadRequestBody} message ReadRequestBody
|
|
1339
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1340
|
+
* @returns {Object.<string,*>} Plain object
|
|
1341
|
+
*/
|
|
1342
|
+
ReadRequestBody.toObject = function toObject(message, options) {
|
|
1343
|
+
if (!options)
|
|
1344
|
+
options = {};
|
|
1345
|
+
var object = {};
|
|
1346
|
+
if (options.defaults)
|
|
1347
|
+
object.len = null;
|
|
1348
|
+
if (message.len != null && message.hasOwnProperty("len"))
|
|
1349
|
+
object.len = $root.common.UInt64Value.toObject(message.len, options);
|
|
1350
|
+
return object;
|
|
1351
|
+
};
|
|
1352
|
+
|
|
1353
|
+
/**
|
|
1354
|
+
* Converts this ReadRequestBody to JSON.
|
|
1355
|
+
* @function toJSON
|
|
1356
|
+
* @memberof bytes.ReadRequestBody
|
|
1357
|
+
* @instance
|
|
1358
|
+
* @returns {Object.<string,*>} JSON object
|
|
1359
|
+
*/
|
|
1360
|
+
ReadRequestBody.prototype.toJSON = function toJSON() {
|
|
1361
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1362
|
+
};
|
|
1363
|
+
|
|
1364
|
+
return ReadRequestBody;
|
|
1365
|
+
})();
|
|
1366
|
+
|
|
1367
|
+
bytes.ReadReplyBody = (function() {
|
|
1368
|
+
|
|
1369
|
+
/**
|
|
1370
|
+
* Properties of a ReadReplyBody.
|
|
1371
|
+
* @memberof bytes
|
|
1372
|
+
* @interface IReadReplyBody
|
|
1373
|
+
* @property {common.IBytesValue|null} [bytes] ReadReplyBody bytes
|
|
1374
|
+
*/
|
|
1375
|
+
|
|
1376
|
+
/**
|
|
1377
|
+
* Constructs a new ReadReplyBody.
|
|
1378
|
+
* @memberof bytes
|
|
1379
|
+
* @classdesc Represents a ReadReplyBody.
|
|
1380
|
+
* @implements IReadReplyBody
|
|
1381
|
+
* @constructor
|
|
1382
|
+
* @param {bytes.IReadReplyBody=} [properties] Properties to set
|
|
1383
|
+
*/
|
|
1384
|
+
function ReadReplyBody(properties) {
|
|
1385
|
+
if (properties)
|
|
1386
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1387
|
+
if (properties[keys[i]] != null)
|
|
1388
|
+
this[keys[i]] = properties[keys[i]];
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
/**
|
|
1392
|
+
* ReadReplyBody bytes.
|
|
1393
|
+
* @member {common.IBytesValue|null|undefined} bytes
|
|
1394
|
+
* @memberof bytes.ReadReplyBody
|
|
1395
|
+
* @instance
|
|
1396
|
+
*/
|
|
1397
|
+
ReadReplyBody.prototype.bytes = null;
|
|
1398
|
+
|
|
1399
|
+
/**
|
|
1400
|
+
* Creates a new ReadReplyBody instance using the specified properties.
|
|
1401
|
+
* @function create
|
|
1402
|
+
* @memberof bytes.ReadReplyBody
|
|
1403
|
+
* @static
|
|
1404
|
+
* @param {bytes.IReadReplyBody=} [properties] Properties to set
|
|
1405
|
+
* @returns {bytes.ReadReplyBody} ReadReplyBody instance
|
|
1406
|
+
*/
|
|
1407
|
+
ReadReplyBody.create = function create(properties) {
|
|
1408
|
+
return new ReadReplyBody(properties);
|
|
1409
|
+
};
|
|
1410
|
+
|
|
1411
|
+
/**
|
|
1412
|
+
* Encodes the specified ReadReplyBody message. Does not implicitly {@link bytes.ReadReplyBody.verify|verify} messages.
|
|
1413
|
+
* @function encode
|
|
1414
|
+
* @memberof bytes.ReadReplyBody
|
|
1415
|
+
* @static
|
|
1416
|
+
* @param {bytes.IReadReplyBody} message ReadReplyBody message or plain object to encode
|
|
1417
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1418
|
+
* @returns {$protobuf.Writer} Writer
|
|
1419
|
+
*/
|
|
1420
|
+
ReadReplyBody.encode = function encode(message, writer) {
|
|
1421
|
+
if (!writer)
|
|
1422
|
+
writer = $Writer.create();
|
|
1423
|
+
if (message.bytes != null && Object.hasOwnProperty.call(message, "bytes"))
|
|
1424
|
+
$root.common.BytesValue.encode(message.bytes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
1425
|
+
return writer;
|
|
1426
|
+
};
|
|
1427
|
+
|
|
1428
|
+
/**
|
|
1429
|
+
* Encodes the specified ReadReplyBody message, length delimited. Does not implicitly {@link bytes.ReadReplyBody.verify|verify} messages.
|
|
1430
|
+
* @function encodeDelimited
|
|
1431
|
+
* @memberof bytes.ReadReplyBody
|
|
1432
|
+
* @static
|
|
1433
|
+
* @param {bytes.IReadReplyBody} message ReadReplyBody message or plain object to encode
|
|
1434
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1435
|
+
* @returns {$protobuf.Writer} Writer
|
|
1436
|
+
*/
|
|
1437
|
+
ReadReplyBody.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1438
|
+
return this.encode(message, writer).ldelim();
|
|
1439
|
+
};
|
|
1440
|
+
|
|
1441
|
+
/**
|
|
1442
|
+
* Decodes a ReadReplyBody message from the specified reader or buffer.
|
|
1443
|
+
* @function decode
|
|
1444
|
+
* @memberof bytes.ReadReplyBody
|
|
1445
|
+
* @static
|
|
1446
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1447
|
+
* @param {number} [length] Message length if known beforehand
|
|
1448
|
+
* @returns {bytes.ReadReplyBody} ReadReplyBody
|
|
1449
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1450
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1451
|
+
*/
|
|
1452
|
+
ReadReplyBody.decode = function decode(reader, length) {
|
|
1453
|
+
if (!(reader instanceof $Reader))
|
|
1454
|
+
reader = $Reader.create(reader);
|
|
1455
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.bytes.ReadReplyBody();
|
|
1456
|
+
while (reader.pos < end) {
|
|
1457
|
+
var tag = reader.uint32();
|
|
1458
|
+
switch (tag >>> 3) {
|
|
1459
|
+
case 1:
|
|
1460
|
+
message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
|
|
1461
|
+
break;
|
|
1462
|
+
default:
|
|
1463
|
+
reader.skipType(tag & 7);
|
|
1464
|
+
break;
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
return message;
|
|
1468
|
+
};
|
|
1469
|
+
|
|
1470
|
+
/**
|
|
1471
|
+
* Decodes a ReadReplyBody message from the specified reader or buffer, length delimited.
|
|
1472
|
+
* @function decodeDelimited
|
|
1473
|
+
* @memberof bytes.ReadReplyBody
|
|
1474
|
+
* @static
|
|
1475
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1476
|
+
* @returns {bytes.ReadReplyBody} ReadReplyBody
|
|
1477
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1478
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1479
|
+
*/
|
|
1480
|
+
ReadReplyBody.decodeDelimited = function decodeDelimited(reader) {
|
|
1481
|
+
if (!(reader instanceof $Reader))
|
|
1482
|
+
reader = new $Reader(reader);
|
|
1483
|
+
return this.decode(reader, reader.uint32());
|
|
1484
|
+
};
|
|
1485
|
+
|
|
1486
|
+
/**
|
|
1487
|
+
* Verifies a ReadReplyBody message.
|
|
1488
|
+
* @function verify
|
|
1489
|
+
* @memberof bytes.ReadReplyBody
|
|
1490
|
+
* @static
|
|
1491
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
1492
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1493
|
+
*/
|
|
1494
|
+
ReadReplyBody.verify = function verify(message) {
|
|
1495
|
+
if (typeof message !== "object" || message === null)
|
|
1496
|
+
return "object expected";
|
|
1497
|
+
if (message.bytes != null && message.hasOwnProperty("bytes")) {
|
|
1498
|
+
var error = $root.common.BytesValue.verify(message.bytes);
|
|
1499
|
+
if (error)
|
|
1500
|
+
return "bytes." + error;
|
|
1501
|
+
}
|
|
1502
|
+
return null;
|
|
1503
|
+
};
|
|
1504
|
+
|
|
1505
|
+
/**
|
|
1506
|
+
* Creates a ReadReplyBody message from a plain object. Also converts values to their respective internal types.
|
|
1507
|
+
* @function fromObject
|
|
1508
|
+
* @memberof bytes.ReadReplyBody
|
|
1509
|
+
* @static
|
|
1510
|
+
* @param {Object.<string,*>} object Plain object
|
|
1511
|
+
* @returns {bytes.ReadReplyBody} ReadReplyBody
|
|
1512
|
+
*/
|
|
1513
|
+
ReadReplyBody.fromObject = function fromObject(object) {
|
|
1514
|
+
if (object instanceof $root.bytes.ReadReplyBody)
|
|
1515
|
+
return object;
|
|
1516
|
+
var message = new $root.bytes.ReadReplyBody();
|
|
1517
|
+
if (object.bytes != null) {
|
|
1518
|
+
if (typeof object.bytes !== "object")
|
|
1519
|
+
throw TypeError(".bytes.ReadReplyBody.bytes: object expected");
|
|
1520
|
+
message.bytes = $root.common.BytesValue.fromObject(object.bytes);
|
|
1521
|
+
}
|
|
1522
|
+
return message;
|
|
1523
|
+
};
|
|
1524
|
+
|
|
1525
|
+
/**
|
|
1526
|
+
* Creates a plain object from a ReadReplyBody message. Also converts values to other types if specified.
|
|
1527
|
+
* @function toObject
|
|
1528
|
+
* @memberof bytes.ReadReplyBody
|
|
1529
|
+
* @static
|
|
1530
|
+
* @param {bytes.ReadReplyBody} message ReadReplyBody
|
|
1531
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1532
|
+
* @returns {Object.<string,*>} Plain object
|
|
1533
|
+
*/
|
|
1534
|
+
ReadReplyBody.toObject = function toObject(message, options) {
|
|
1535
|
+
if (!options)
|
|
1536
|
+
options = {};
|
|
1537
|
+
var object = {};
|
|
1538
|
+
if (options.defaults)
|
|
1539
|
+
object.bytes = null;
|
|
1540
|
+
if (message.bytes != null && message.hasOwnProperty("bytes"))
|
|
1541
|
+
object.bytes = $root.common.BytesValue.toObject(message.bytes, options);
|
|
1542
|
+
return object;
|
|
1543
|
+
};
|
|
1544
|
+
|
|
1545
|
+
/**
|
|
1546
|
+
* Converts this ReadReplyBody to JSON.
|
|
1547
|
+
* @function toJSON
|
|
1548
|
+
* @memberof bytes.ReadReplyBody
|
|
1549
|
+
* @instance
|
|
1550
|
+
* @returns {Object.<string,*>} JSON object
|
|
1551
|
+
*/
|
|
1552
|
+
ReadReplyBody.prototype.toJSON = function toJSON() {
|
|
1553
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1554
|
+
};
|
|
1555
|
+
|
|
1556
|
+
return ReadReplyBody;
|
|
1557
|
+
})();
|
|
1558
|
+
|
|
1559
|
+
bytes.SeekRequestBody = (function() {
|
|
1560
|
+
|
|
1561
|
+
/**
|
|
1562
|
+
* Properties of a SeekRequestBody.
|
|
1563
|
+
* @memberof bytes
|
|
1564
|
+
* @interface ISeekRequestBody
|
|
1565
|
+
* @property {number|Long|null} [offset] SeekRequestBody offset
|
|
1566
|
+
*/
|
|
1567
|
+
|
|
1568
|
+
/**
|
|
1569
|
+
* Constructs a new SeekRequestBody.
|
|
1570
|
+
* @memberof bytes
|
|
1571
|
+
* @classdesc Represents a SeekRequestBody.
|
|
1572
|
+
* @implements ISeekRequestBody
|
|
1573
|
+
* @constructor
|
|
1574
|
+
* @param {bytes.ISeekRequestBody=} [properties] Properties to set
|
|
1575
|
+
*/
|
|
1576
|
+
function SeekRequestBody(properties) {
|
|
1577
|
+
if (properties)
|
|
1578
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1579
|
+
if (properties[keys[i]] != null)
|
|
1580
|
+
this[keys[i]] = properties[keys[i]];
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1583
|
+
/**
|
|
1584
|
+
* SeekRequestBody offset.
|
|
1585
|
+
* @member {number|Long} offset
|
|
1586
|
+
* @memberof bytes.SeekRequestBody
|
|
1587
|
+
* @instance
|
|
1588
|
+
*/
|
|
1589
|
+
SeekRequestBody.prototype.offset = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
1590
|
+
|
|
1591
|
+
/**
|
|
1592
|
+
* Creates a new SeekRequestBody instance using the specified properties.
|
|
1593
|
+
* @function create
|
|
1594
|
+
* @memberof bytes.SeekRequestBody
|
|
1595
|
+
* @static
|
|
1596
|
+
* @param {bytes.ISeekRequestBody=} [properties] Properties to set
|
|
1597
|
+
* @returns {bytes.SeekRequestBody} SeekRequestBody instance
|
|
1598
|
+
*/
|
|
1599
|
+
SeekRequestBody.create = function create(properties) {
|
|
1600
|
+
return new SeekRequestBody(properties);
|
|
1601
|
+
};
|
|
1602
|
+
|
|
1603
|
+
/**
|
|
1604
|
+
* Encodes the specified SeekRequestBody message. Does not implicitly {@link bytes.SeekRequestBody.verify|verify} messages.
|
|
1605
|
+
* @function encode
|
|
1606
|
+
* @memberof bytes.SeekRequestBody
|
|
1607
|
+
* @static
|
|
1608
|
+
* @param {bytes.ISeekRequestBody} message SeekRequestBody message or plain object to encode
|
|
1609
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1610
|
+
* @returns {$protobuf.Writer} Writer
|
|
1611
|
+
*/
|
|
1612
|
+
SeekRequestBody.encode = function encode(message, writer) {
|
|
1613
|
+
if (!writer)
|
|
1614
|
+
writer = $Writer.create();
|
|
1615
|
+
if (message.offset != null && Object.hasOwnProperty.call(message, "offset"))
|
|
1616
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.offset);
|
|
1617
|
+
return writer;
|
|
1618
|
+
};
|
|
1619
|
+
|
|
1620
|
+
/**
|
|
1621
|
+
* Encodes the specified SeekRequestBody message, length delimited. Does not implicitly {@link bytes.SeekRequestBody.verify|verify} messages.
|
|
1622
|
+
* @function encodeDelimited
|
|
1623
|
+
* @memberof bytes.SeekRequestBody
|
|
1624
|
+
* @static
|
|
1625
|
+
* @param {bytes.ISeekRequestBody} message SeekRequestBody message or plain object to encode
|
|
1626
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1627
|
+
* @returns {$protobuf.Writer} Writer
|
|
1628
|
+
*/
|
|
1629
|
+
SeekRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1630
|
+
return this.encode(message, writer).ldelim();
|
|
1631
|
+
};
|
|
1632
|
+
|
|
1633
|
+
/**
|
|
1634
|
+
* Decodes a SeekRequestBody message from the specified reader or buffer.
|
|
1635
|
+
* @function decode
|
|
1636
|
+
* @memberof bytes.SeekRequestBody
|
|
1637
|
+
* @static
|
|
1638
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1639
|
+
* @param {number} [length] Message length if known beforehand
|
|
1640
|
+
* @returns {bytes.SeekRequestBody} SeekRequestBody
|
|
1641
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1642
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1643
|
+
*/
|
|
1644
|
+
SeekRequestBody.decode = function decode(reader, length) {
|
|
1645
|
+
if (!(reader instanceof $Reader))
|
|
1646
|
+
reader = $Reader.create(reader);
|
|
1647
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.bytes.SeekRequestBody();
|
|
1648
|
+
while (reader.pos < end) {
|
|
1649
|
+
var tag = reader.uint32();
|
|
1650
|
+
switch (tag >>> 3) {
|
|
1651
|
+
case 1:
|
|
1652
|
+
message.offset = reader.uint64();
|
|
1653
|
+
break;
|
|
1654
|
+
default:
|
|
1655
|
+
reader.skipType(tag & 7);
|
|
1656
|
+
break;
|
|
1657
|
+
}
|
|
1658
|
+
}
|
|
1659
|
+
return message;
|
|
1660
|
+
};
|
|
1661
|
+
|
|
1662
|
+
/**
|
|
1663
|
+
* Decodes a SeekRequestBody message from the specified reader or buffer, length delimited.
|
|
1664
|
+
* @function decodeDelimited
|
|
1665
|
+
* @memberof bytes.SeekRequestBody
|
|
1666
|
+
* @static
|
|
1667
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1668
|
+
* @returns {bytes.SeekRequestBody} SeekRequestBody
|
|
1669
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1670
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1671
|
+
*/
|
|
1672
|
+
SeekRequestBody.decodeDelimited = function decodeDelimited(reader) {
|
|
1673
|
+
if (!(reader instanceof $Reader))
|
|
1674
|
+
reader = new $Reader(reader);
|
|
1675
|
+
return this.decode(reader, reader.uint32());
|
|
1676
|
+
};
|
|
1677
|
+
|
|
1678
|
+
/**
|
|
1679
|
+
* Verifies a SeekRequestBody message.
|
|
1680
|
+
* @function verify
|
|
1681
|
+
* @memberof bytes.SeekRequestBody
|
|
1682
|
+
* @static
|
|
1683
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
1684
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1685
|
+
*/
|
|
1686
|
+
SeekRequestBody.verify = function verify(message) {
|
|
1687
|
+
if (typeof message !== "object" || message === null)
|
|
1688
|
+
return "object expected";
|
|
1689
|
+
if (message.offset != null && message.hasOwnProperty("offset"))
|
|
1690
|
+
if (!$util.isInteger(message.offset) && !(message.offset && $util.isInteger(message.offset.low) && $util.isInteger(message.offset.high)))
|
|
1691
|
+
return "offset: integer|Long expected";
|
|
1692
|
+
return null;
|
|
1693
|
+
};
|
|
1694
|
+
|
|
1695
|
+
/**
|
|
1696
|
+
* Creates a SeekRequestBody message from a plain object. Also converts values to their respective internal types.
|
|
1697
|
+
* @function fromObject
|
|
1698
|
+
* @memberof bytes.SeekRequestBody
|
|
1699
|
+
* @static
|
|
1700
|
+
* @param {Object.<string,*>} object Plain object
|
|
1701
|
+
* @returns {bytes.SeekRequestBody} SeekRequestBody
|
|
1702
|
+
*/
|
|
1703
|
+
SeekRequestBody.fromObject = function fromObject(object) {
|
|
1704
|
+
if (object instanceof $root.bytes.SeekRequestBody)
|
|
1705
|
+
return object;
|
|
1706
|
+
var message = new $root.bytes.SeekRequestBody();
|
|
1707
|
+
if (object.offset != null)
|
|
1708
|
+
if ($util.Long)
|
|
1709
|
+
(message.offset = $util.Long.fromValue(object.offset)).unsigned = true;
|
|
1710
|
+
else if (typeof object.offset === "string")
|
|
1711
|
+
message.offset = parseInt(object.offset, 10);
|
|
1712
|
+
else if (typeof object.offset === "number")
|
|
1713
|
+
message.offset = object.offset;
|
|
1714
|
+
else if (typeof object.offset === "object")
|
|
1715
|
+
message.offset = new $util.LongBits(object.offset.low >>> 0, object.offset.high >>> 0).toNumber(true);
|
|
1716
|
+
return message;
|
|
1717
|
+
};
|
|
1718
|
+
|
|
1719
|
+
/**
|
|
1720
|
+
* Creates a plain object from a SeekRequestBody message. Also converts values to other types if specified.
|
|
1721
|
+
* @function toObject
|
|
1722
|
+
* @memberof bytes.SeekRequestBody
|
|
1723
|
+
* @static
|
|
1724
|
+
* @param {bytes.SeekRequestBody} message SeekRequestBody
|
|
1725
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1726
|
+
* @returns {Object.<string,*>} Plain object
|
|
1727
|
+
*/
|
|
1728
|
+
SeekRequestBody.toObject = function toObject(message, options) {
|
|
1729
|
+
if (!options)
|
|
1730
|
+
options = {};
|
|
1731
|
+
var object = {};
|
|
1732
|
+
if (options.defaults)
|
|
1733
|
+
if ($util.Long) {
|
|
1734
|
+
var long = new $util.Long(0, 0, true);
|
|
1735
|
+
object.offset = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
1736
|
+
} else
|
|
1737
|
+
object.offset = options.longs === String ? "0" : 0;
|
|
1738
|
+
if (message.offset != null && message.hasOwnProperty("offset"))
|
|
1739
|
+
if (typeof message.offset === "number")
|
|
1740
|
+
object.offset = options.longs === String ? String(message.offset) : message.offset;
|
|
1741
|
+
else
|
|
1742
|
+
object.offset = options.longs === String ? $util.Long.prototype.toString.call(message.offset) : options.longs === Number ? new $util.LongBits(message.offset.low >>> 0, message.offset.high >>> 0).toNumber(true) : message.offset;
|
|
1743
|
+
return object;
|
|
1744
|
+
};
|
|
1745
|
+
|
|
1746
|
+
/**
|
|
1747
|
+
* Converts this SeekRequestBody to JSON.
|
|
1748
|
+
* @function toJSON
|
|
1749
|
+
* @memberof bytes.SeekRequestBody
|
|
1750
|
+
* @instance
|
|
1751
|
+
* @returns {Object.<string,*>} JSON object
|
|
1752
|
+
*/
|
|
1753
|
+
SeekRequestBody.prototype.toJSON = function toJSON() {
|
|
1754
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1755
|
+
};
|
|
1756
|
+
|
|
1757
|
+
return SeekRequestBody;
|
|
1758
|
+
})();
|
|
1759
|
+
|
|
1760
|
+
return bytes;
|
|
1761
|
+
})();
|
|
1762
|
+
|
|
1763
|
+
$root.common = (function() {
|
|
1764
|
+
|
|
1765
|
+
/**
|
|
1766
|
+
* Namespace common.
|
|
1767
|
+
* @exports common
|
|
1768
|
+
* @namespace
|
|
1769
|
+
*/
|
|
1770
|
+
var common = {};
|
|
1771
|
+
|
|
1772
|
+
common.ObjectReference = (function() {
|
|
1773
|
+
|
|
1774
|
+
/**
|
|
1775
|
+
* Properties of an ObjectReference.
|
|
1776
|
+
* @memberof common
|
|
1777
|
+
* @interface IObjectReference
|
|
1778
|
+
* @property {string|null} [objType] ObjectReference objType
|
|
1779
|
+
* @property {Array.<string>|null} [path] ObjectReference path
|
|
1780
|
+
*/
|
|
1781
|
+
|
|
1782
|
+
/**
|
|
1783
|
+
* Constructs a new ObjectReference.
|
|
1784
|
+
* @memberof common
|
|
1785
|
+
* @classdesc Represents an ObjectReference.
|
|
1786
|
+
* @implements IObjectReference
|
|
1787
|
+
* @constructor
|
|
1788
|
+
* @param {common.IObjectReference=} [properties] Properties to set
|
|
1789
|
+
*/
|
|
1790
|
+
function ObjectReference(properties) {
|
|
1791
|
+
this.path = [];
|
|
1792
|
+
if (properties)
|
|
1793
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1794
|
+
if (properties[keys[i]] != null)
|
|
1795
|
+
this[keys[i]] = properties[keys[i]];
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1798
|
+
/**
|
|
1799
|
+
* ObjectReference objType.
|
|
1800
|
+
* @member {string} objType
|
|
1801
|
+
* @memberof common.ObjectReference
|
|
1802
|
+
* @instance
|
|
1803
|
+
*/
|
|
1804
|
+
ObjectReference.prototype.objType = "";
|
|
1805
|
+
|
|
1806
|
+
/**
|
|
1807
|
+
* ObjectReference path.
|
|
1808
|
+
* @member {Array.<string>} path
|
|
1809
|
+
* @memberof common.ObjectReference
|
|
1810
|
+
* @instance
|
|
1811
|
+
*/
|
|
1812
|
+
ObjectReference.prototype.path = $util.emptyArray;
|
|
1813
|
+
|
|
1814
|
+
/**
|
|
1815
|
+
* Creates a new ObjectReference instance using the specified properties.
|
|
1816
|
+
* @function create
|
|
1817
|
+
* @memberof common.ObjectReference
|
|
1818
|
+
* @static
|
|
1819
|
+
* @param {common.IObjectReference=} [properties] Properties to set
|
|
1820
|
+
* @returns {common.ObjectReference} ObjectReference instance
|
|
1821
|
+
*/
|
|
1822
|
+
ObjectReference.create = function create(properties) {
|
|
1823
|
+
return new ObjectReference(properties);
|
|
1824
|
+
};
|
|
1825
|
+
|
|
1826
|
+
/**
|
|
1827
|
+
* Encodes the specified ObjectReference message. Does not implicitly {@link common.ObjectReference.verify|verify} messages.
|
|
1828
|
+
* @function encode
|
|
1829
|
+
* @memberof common.ObjectReference
|
|
1830
|
+
* @static
|
|
1831
|
+
* @param {common.IObjectReference} message ObjectReference message or plain object to encode
|
|
1832
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1833
|
+
* @returns {$protobuf.Writer} Writer
|
|
1834
|
+
*/
|
|
1835
|
+
ObjectReference.encode = function encode(message, writer) {
|
|
1836
|
+
if (!writer)
|
|
1837
|
+
writer = $Writer.create();
|
|
1838
|
+
if (message.objType != null && Object.hasOwnProperty.call(message, "objType"))
|
|
1839
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.objType);
|
|
1840
|
+
if (message.path != null && message.path.length)
|
|
1841
|
+
for (var i = 0; i < message.path.length; ++i)
|
|
1842
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.path[i]);
|
|
1843
|
+
return writer;
|
|
1844
|
+
};
|
|
1845
|
+
|
|
1846
|
+
/**
|
|
1847
|
+
* Encodes the specified ObjectReference message, length delimited. Does not implicitly {@link common.ObjectReference.verify|verify} messages.
|
|
1848
|
+
* @function encodeDelimited
|
|
1849
|
+
* @memberof common.ObjectReference
|
|
1850
|
+
* @static
|
|
1851
|
+
* @param {common.IObjectReference} message ObjectReference message or plain object to encode
|
|
1852
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1853
|
+
* @returns {$protobuf.Writer} Writer
|
|
1854
|
+
*/
|
|
1855
|
+
ObjectReference.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1856
|
+
return this.encode(message, writer).ldelim();
|
|
1857
|
+
};
|
|
1858
|
+
|
|
1859
|
+
/**
|
|
1860
|
+
* Decodes an ObjectReference message from the specified reader or buffer.
|
|
1861
|
+
* @function decode
|
|
1862
|
+
* @memberof common.ObjectReference
|
|
1863
|
+
* @static
|
|
1864
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1865
|
+
* @param {number} [length] Message length if known beforehand
|
|
1866
|
+
* @returns {common.ObjectReference} ObjectReference
|
|
1867
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1868
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1869
|
+
*/
|
|
1870
|
+
ObjectReference.decode = function decode(reader, length) {
|
|
1871
|
+
if (!(reader instanceof $Reader))
|
|
1872
|
+
reader = $Reader.create(reader);
|
|
1873
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.ObjectReference();
|
|
1874
|
+
while (reader.pos < end) {
|
|
1875
|
+
var tag = reader.uint32();
|
|
1876
|
+
switch (tag >>> 3) {
|
|
1877
|
+
case 1:
|
|
1878
|
+
message.objType = reader.string();
|
|
1879
|
+
break;
|
|
1880
|
+
case 2:
|
|
1881
|
+
if (!(message.path && message.path.length))
|
|
1882
|
+
message.path = [];
|
|
1883
|
+
message.path.push(reader.string());
|
|
1884
|
+
break;
|
|
1885
|
+
default:
|
|
1886
|
+
reader.skipType(tag & 7);
|
|
1887
|
+
break;
|
|
1888
|
+
}
|
|
1889
|
+
}
|
|
1890
|
+
return message;
|
|
1891
|
+
};
|
|
1892
|
+
|
|
1893
|
+
/**
|
|
1894
|
+
* Decodes an ObjectReference message from the specified reader or buffer, length delimited.
|
|
1895
|
+
* @function decodeDelimited
|
|
1896
|
+
* @memberof common.ObjectReference
|
|
1897
|
+
* @static
|
|
1898
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1899
|
+
* @returns {common.ObjectReference} ObjectReference
|
|
1900
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1901
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1902
|
+
*/
|
|
1903
|
+
ObjectReference.decodeDelimited = function decodeDelimited(reader) {
|
|
1904
|
+
if (!(reader instanceof $Reader))
|
|
1905
|
+
reader = new $Reader(reader);
|
|
1906
|
+
return this.decode(reader, reader.uint32());
|
|
1907
|
+
};
|
|
1908
|
+
|
|
1909
|
+
/**
|
|
1910
|
+
* Verifies an ObjectReference message.
|
|
1911
|
+
* @function verify
|
|
1912
|
+
* @memberof common.ObjectReference
|
|
1913
|
+
* @static
|
|
1914
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
1915
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1916
|
+
*/
|
|
1917
|
+
ObjectReference.verify = function verify(message) {
|
|
1918
|
+
if (typeof message !== "object" || message === null)
|
|
1919
|
+
return "object expected";
|
|
1920
|
+
if (message.objType != null && message.hasOwnProperty("objType"))
|
|
1921
|
+
if (!$util.isString(message.objType))
|
|
1922
|
+
return "objType: string expected";
|
|
1923
|
+
if (message.path != null && message.hasOwnProperty("path")) {
|
|
1924
|
+
if (!Array.isArray(message.path))
|
|
1925
|
+
return "path: array expected";
|
|
1926
|
+
for (var i = 0; i < message.path.length; ++i)
|
|
1927
|
+
if (!$util.isString(message.path[i]))
|
|
1928
|
+
return "path: string[] expected";
|
|
1929
|
+
}
|
|
1930
|
+
return null;
|
|
1931
|
+
};
|
|
1932
|
+
|
|
1933
|
+
/**
|
|
1934
|
+
* Creates an ObjectReference message from a plain object. Also converts values to their respective internal types.
|
|
1935
|
+
* @function fromObject
|
|
1936
|
+
* @memberof common.ObjectReference
|
|
1937
|
+
* @static
|
|
1938
|
+
* @param {Object.<string,*>} object Plain object
|
|
1939
|
+
* @returns {common.ObjectReference} ObjectReference
|
|
1940
|
+
*/
|
|
1941
|
+
ObjectReference.fromObject = function fromObject(object) {
|
|
1942
|
+
if (object instanceof $root.common.ObjectReference)
|
|
1943
|
+
return object;
|
|
1944
|
+
var message = new $root.common.ObjectReference();
|
|
1945
|
+
if (object.objType != null)
|
|
1946
|
+
message.objType = String(object.objType);
|
|
1947
|
+
if (object.path) {
|
|
1948
|
+
if (!Array.isArray(object.path))
|
|
1949
|
+
throw TypeError(".common.ObjectReference.path: array expected");
|
|
1950
|
+
message.path = [];
|
|
1951
|
+
for (var i = 0; i < object.path.length; ++i)
|
|
1952
|
+
message.path[i] = String(object.path[i]);
|
|
1953
|
+
}
|
|
1954
|
+
return message;
|
|
1955
|
+
};
|
|
1956
|
+
|
|
1957
|
+
/**
|
|
1958
|
+
* Creates a plain object from an ObjectReference message. Also converts values to other types if specified.
|
|
1959
|
+
* @function toObject
|
|
1960
|
+
* @memberof common.ObjectReference
|
|
1961
|
+
* @static
|
|
1962
|
+
* @param {common.ObjectReference} message ObjectReference
|
|
1963
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1964
|
+
* @returns {Object.<string,*>} Plain object
|
|
1965
|
+
*/
|
|
1966
|
+
ObjectReference.toObject = function toObject(message, options) {
|
|
1967
|
+
if (!options)
|
|
1968
|
+
options = {};
|
|
1969
|
+
var object = {};
|
|
1970
|
+
if (options.arrays || options.defaults)
|
|
1971
|
+
object.path = [];
|
|
1972
|
+
if (options.defaults)
|
|
1973
|
+
object.objType = "";
|
|
1974
|
+
if (message.objType != null && message.hasOwnProperty("objType"))
|
|
1975
|
+
object.objType = message.objType;
|
|
1976
|
+
if (message.path && message.path.length) {
|
|
1977
|
+
object.path = [];
|
|
1978
|
+
for (var j = 0; j < message.path.length; ++j)
|
|
1979
|
+
object.path[j] = message.path[j];
|
|
1980
|
+
}
|
|
1981
|
+
return object;
|
|
1982
|
+
};
|
|
1983
|
+
|
|
1984
|
+
/**
|
|
1985
|
+
* Converts this ObjectReference to JSON.
|
|
1986
|
+
* @function toJSON
|
|
1987
|
+
* @memberof common.ObjectReference
|
|
1988
|
+
* @instance
|
|
1989
|
+
* @returns {Object.<string,*>} JSON object
|
|
1990
|
+
*/
|
|
1991
|
+
ObjectReference.prototype.toJSON = function toJSON() {
|
|
1992
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1993
|
+
};
|
|
1994
|
+
|
|
1995
|
+
return ObjectReference;
|
|
1996
|
+
})();
|
|
1997
|
+
|
|
1998
|
+
common.BooleanValue = (function() {
|
|
1999
|
+
|
|
2000
|
+
/**
|
|
2001
|
+
* Properties of a BooleanValue.
|
|
2002
|
+
* @memberof common
|
|
2003
|
+
* @interface IBooleanValue
|
|
2004
|
+
* @property {boolean|null} [value] BooleanValue value
|
|
2005
|
+
*/
|
|
2006
|
+
|
|
2007
|
+
/**
|
|
2008
|
+
* Constructs a new BooleanValue.
|
|
2009
|
+
* @memberof common
|
|
2010
|
+
* @classdesc Represents a BooleanValue.
|
|
2011
|
+
* @implements IBooleanValue
|
|
2012
|
+
* @constructor
|
|
2013
|
+
* @param {common.IBooleanValue=} [properties] Properties to set
|
|
2014
|
+
*/
|
|
2015
|
+
function BooleanValue(properties) {
|
|
2016
|
+
if (properties)
|
|
2017
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2018
|
+
if (properties[keys[i]] != null)
|
|
2019
|
+
this[keys[i]] = properties[keys[i]];
|
|
2020
|
+
}
|
|
2021
|
+
|
|
2022
|
+
/**
|
|
2023
|
+
* BooleanValue value.
|
|
2024
|
+
* @member {boolean} value
|
|
2025
|
+
* @memberof common.BooleanValue
|
|
2026
|
+
* @instance
|
|
2027
|
+
*/
|
|
2028
|
+
BooleanValue.prototype.value = false;
|
|
2029
|
+
|
|
2030
|
+
/**
|
|
2031
|
+
* Creates a new BooleanValue instance using the specified properties.
|
|
2032
|
+
* @function create
|
|
2033
|
+
* @memberof common.BooleanValue
|
|
2034
|
+
* @static
|
|
2035
|
+
* @param {common.IBooleanValue=} [properties] Properties to set
|
|
2036
|
+
* @returns {common.BooleanValue} BooleanValue instance
|
|
2037
|
+
*/
|
|
2038
|
+
BooleanValue.create = function create(properties) {
|
|
2039
|
+
return new BooleanValue(properties);
|
|
2040
|
+
};
|
|
2041
|
+
|
|
2042
|
+
/**
|
|
2043
|
+
* Encodes the specified BooleanValue message. Does not implicitly {@link common.BooleanValue.verify|verify} messages.
|
|
2044
|
+
* @function encode
|
|
2045
|
+
* @memberof common.BooleanValue
|
|
2046
|
+
* @static
|
|
2047
|
+
* @param {common.IBooleanValue} message BooleanValue message or plain object to encode
|
|
2048
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2049
|
+
* @returns {$protobuf.Writer} Writer
|
|
2050
|
+
*/
|
|
2051
|
+
BooleanValue.encode = function encode(message, writer) {
|
|
2052
|
+
if (!writer)
|
|
2053
|
+
writer = $Writer.create();
|
|
2054
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
2055
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.value);
|
|
2056
|
+
return writer;
|
|
2057
|
+
};
|
|
2058
|
+
|
|
2059
|
+
/**
|
|
2060
|
+
* Encodes the specified BooleanValue message, length delimited. Does not implicitly {@link common.BooleanValue.verify|verify} messages.
|
|
2061
|
+
* @function encodeDelimited
|
|
2062
|
+
* @memberof common.BooleanValue
|
|
2063
|
+
* @static
|
|
2064
|
+
* @param {common.IBooleanValue} message BooleanValue message or plain object to encode
|
|
2065
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2066
|
+
* @returns {$protobuf.Writer} Writer
|
|
2067
|
+
*/
|
|
2068
|
+
BooleanValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2069
|
+
return this.encode(message, writer).ldelim();
|
|
2070
|
+
};
|
|
2071
|
+
|
|
2072
|
+
/**
|
|
2073
|
+
* Decodes a BooleanValue message from the specified reader or buffer.
|
|
2074
|
+
* @function decode
|
|
2075
|
+
* @memberof common.BooleanValue
|
|
2076
|
+
* @static
|
|
2077
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2078
|
+
* @param {number} [length] Message length if known beforehand
|
|
2079
|
+
* @returns {common.BooleanValue} BooleanValue
|
|
2080
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2081
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2082
|
+
*/
|
|
2083
|
+
BooleanValue.decode = function decode(reader, length) {
|
|
2084
|
+
if (!(reader instanceof $Reader))
|
|
2085
|
+
reader = $Reader.create(reader);
|
|
2086
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.BooleanValue();
|
|
2087
|
+
while (reader.pos < end) {
|
|
2088
|
+
var tag = reader.uint32();
|
|
2089
|
+
switch (tag >>> 3) {
|
|
2090
|
+
case 1:
|
|
2091
|
+
message.value = reader.bool();
|
|
2092
|
+
break;
|
|
2093
|
+
default:
|
|
2094
|
+
reader.skipType(tag & 7);
|
|
2095
|
+
break;
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
2098
|
+
return message;
|
|
2099
|
+
};
|
|
2100
|
+
|
|
2101
|
+
/**
|
|
2102
|
+
* Decodes a BooleanValue message from the specified reader or buffer, length delimited.
|
|
2103
|
+
* @function decodeDelimited
|
|
2104
|
+
* @memberof common.BooleanValue
|
|
2105
|
+
* @static
|
|
2106
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2107
|
+
* @returns {common.BooleanValue} BooleanValue
|
|
2108
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2109
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2110
|
+
*/
|
|
2111
|
+
BooleanValue.decodeDelimited = function decodeDelimited(reader) {
|
|
2112
|
+
if (!(reader instanceof $Reader))
|
|
2113
|
+
reader = new $Reader(reader);
|
|
2114
|
+
return this.decode(reader, reader.uint32());
|
|
2115
|
+
};
|
|
2116
|
+
|
|
2117
|
+
/**
|
|
2118
|
+
* Verifies a BooleanValue message.
|
|
2119
|
+
* @function verify
|
|
2120
|
+
* @memberof common.BooleanValue
|
|
2121
|
+
* @static
|
|
2122
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
2123
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2124
|
+
*/
|
|
2125
|
+
BooleanValue.verify = function verify(message) {
|
|
2126
|
+
if (typeof message !== "object" || message === null)
|
|
2127
|
+
return "object expected";
|
|
2128
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
2129
|
+
if (typeof message.value !== "boolean")
|
|
2130
|
+
return "value: boolean expected";
|
|
2131
|
+
return null;
|
|
2132
|
+
};
|
|
2133
|
+
|
|
2134
|
+
/**
|
|
2135
|
+
* Creates a BooleanValue message from a plain object. Also converts values to their respective internal types.
|
|
2136
|
+
* @function fromObject
|
|
2137
|
+
* @memberof common.BooleanValue
|
|
2138
|
+
* @static
|
|
2139
|
+
* @param {Object.<string,*>} object Plain object
|
|
2140
|
+
* @returns {common.BooleanValue} BooleanValue
|
|
2141
|
+
*/
|
|
2142
|
+
BooleanValue.fromObject = function fromObject(object) {
|
|
2143
|
+
if (object instanceof $root.common.BooleanValue)
|
|
2144
|
+
return object;
|
|
2145
|
+
var message = new $root.common.BooleanValue();
|
|
2146
|
+
if (object.value != null)
|
|
2147
|
+
message.value = Boolean(object.value);
|
|
2148
|
+
return message;
|
|
2149
|
+
};
|
|
2150
|
+
|
|
2151
|
+
/**
|
|
2152
|
+
* Creates a plain object from a BooleanValue message. Also converts values to other types if specified.
|
|
2153
|
+
* @function toObject
|
|
2154
|
+
* @memberof common.BooleanValue
|
|
2155
|
+
* @static
|
|
2156
|
+
* @param {common.BooleanValue} message BooleanValue
|
|
2157
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2158
|
+
* @returns {Object.<string,*>} Plain object
|
|
2159
|
+
*/
|
|
2160
|
+
BooleanValue.toObject = function toObject(message, options) {
|
|
2161
|
+
if (!options)
|
|
2162
|
+
options = {};
|
|
2163
|
+
var object = {};
|
|
2164
|
+
if (options.defaults)
|
|
2165
|
+
object.value = false;
|
|
2166
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
2167
|
+
object.value = message.value;
|
|
2168
|
+
return object;
|
|
2169
|
+
};
|
|
2170
|
+
|
|
2171
|
+
/**
|
|
2172
|
+
* Converts this BooleanValue to JSON.
|
|
2173
|
+
* @function toJSON
|
|
2174
|
+
* @memberof common.BooleanValue
|
|
2175
|
+
* @instance
|
|
2176
|
+
* @returns {Object.<string,*>} JSON object
|
|
2177
|
+
*/
|
|
2178
|
+
BooleanValue.prototype.toJSON = function toJSON() {
|
|
2179
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2180
|
+
};
|
|
2181
|
+
|
|
2182
|
+
return BooleanValue;
|
|
2183
|
+
})();
|
|
2184
|
+
|
|
2185
|
+
common.StringArrayValue = (function() {
|
|
2186
|
+
|
|
2187
|
+
/**
|
|
2188
|
+
* Properties of a StringArrayValue.
|
|
2189
|
+
* @memberof common
|
|
2190
|
+
* @interface IStringArrayValue
|
|
2191
|
+
* @property {Array.<string>|null} [values] StringArrayValue values
|
|
2192
|
+
*/
|
|
2193
|
+
|
|
2194
|
+
/**
|
|
2195
|
+
* Constructs a new StringArrayValue.
|
|
2196
|
+
* @memberof common
|
|
2197
|
+
* @classdesc Represents a StringArrayValue.
|
|
2198
|
+
* @implements IStringArrayValue
|
|
2199
|
+
* @constructor
|
|
2200
|
+
* @param {common.IStringArrayValue=} [properties] Properties to set
|
|
2201
|
+
*/
|
|
2202
|
+
function StringArrayValue(properties) {
|
|
2203
|
+
this.values = [];
|
|
2204
|
+
if (properties)
|
|
2205
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2206
|
+
if (properties[keys[i]] != null)
|
|
2207
|
+
this[keys[i]] = properties[keys[i]];
|
|
2208
|
+
}
|
|
2209
|
+
|
|
2210
|
+
/**
|
|
2211
|
+
* StringArrayValue values.
|
|
2212
|
+
* @member {Array.<string>} values
|
|
2213
|
+
* @memberof common.StringArrayValue
|
|
2214
|
+
* @instance
|
|
2215
|
+
*/
|
|
2216
|
+
StringArrayValue.prototype.values = $util.emptyArray;
|
|
2217
|
+
|
|
2218
|
+
/**
|
|
2219
|
+
* Creates a new StringArrayValue instance using the specified properties.
|
|
2220
|
+
* @function create
|
|
2221
|
+
* @memberof common.StringArrayValue
|
|
2222
|
+
* @static
|
|
2223
|
+
* @param {common.IStringArrayValue=} [properties] Properties to set
|
|
2224
|
+
* @returns {common.StringArrayValue} StringArrayValue instance
|
|
2225
|
+
*/
|
|
2226
|
+
StringArrayValue.create = function create(properties) {
|
|
2227
|
+
return new StringArrayValue(properties);
|
|
2228
|
+
};
|
|
2229
|
+
|
|
2230
|
+
/**
|
|
2231
|
+
* Encodes the specified StringArrayValue message. Does not implicitly {@link common.StringArrayValue.verify|verify} messages.
|
|
2232
|
+
* @function encode
|
|
2233
|
+
* @memberof common.StringArrayValue
|
|
2234
|
+
* @static
|
|
2235
|
+
* @param {common.IStringArrayValue} message StringArrayValue message or plain object to encode
|
|
2236
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2237
|
+
* @returns {$protobuf.Writer} Writer
|
|
2238
|
+
*/
|
|
2239
|
+
StringArrayValue.encode = function encode(message, writer) {
|
|
2240
|
+
if (!writer)
|
|
2241
|
+
writer = $Writer.create();
|
|
2242
|
+
if (message.values != null && message.values.length)
|
|
2243
|
+
for (var i = 0; i < message.values.length; ++i)
|
|
2244
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]);
|
|
2245
|
+
return writer;
|
|
2246
|
+
};
|
|
2247
|
+
|
|
2248
|
+
/**
|
|
2249
|
+
* Encodes the specified StringArrayValue message, length delimited. Does not implicitly {@link common.StringArrayValue.verify|verify} messages.
|
|
2250
|
+
* @function encodeDelimited
|
|
2251
|
+
* @memberof common.StringArrayValue
|
|
2252
|
+
* @static
|
|
2253
|
+
* @param {common.IStringArrayValue} message StringArrayValue message or plain object to encode
|
|
2254
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2255
|
+
* @returns {$protobuf.Writer} Writer
|
|
2256
|
+
*/
|
|
2257
|
+
StringArrayValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2258
|
+
return this.encode(message, writer).ldelim();
|
|
2259
|
+
};
|
|
2260
|
+
|
|
2261
|
+
/**
|
|
2262
|
+
* Decodes a StringArrayValue message from the specified reader or buffer.
|
|
2263
|
+
* @function decode
|
|
2264
|
+
* @memberof common.StringArrayValue
|
|
2265
|
+
* @static
|
|
2266
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2267
|
+
* @param {number} [length] Message length if known beforehand
|
|
2268
|
+
* @returns {common.StringArrayValue} StringArrayValue
|
|
2269
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2270
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2271
|
+
*/
|
|
2272
|
+
StringArrayValue.decode = function decode(reader, length) {
|
|
2273
|
+
if (!(reader instanceof $Reader))
|
|
2274
|
+
reader = $Reader.create(reader);
|
|
2275
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.StringArrayValue();
|
|
2276
|
+
while (reader.pos < end) {
|
|
2277
|
+
var tag = reader.uint32();
|
|
2278
|
+
switch (tag >>> 3) {
|
|
2279
|
+
case 1:
|
|
2280
|
+
if (!(message.values && message.values.length))
|
|
2281
|
+
message.values = [];
|
|
2282
|
+
message.values.push(reader.string());
|
|
2283
|
+
break;
|
|
2284
|
+
default:
|
|
2285
|
+
reader.skipType(tag & 7);
|
|
2286
|
+
break;
|
|
2287
|
+
}
|
|
2288
|
+
}
|
|
2289
|
+
return message;
|
|
2290
|
+
};
|
|
2291
|
+
|
|
2292
|
+
/**
|
|
2293
|
+
* Decodes a StringArrayValue message from the specified reader or buffer, length delimited.
|
|
2294
|
+
* @function decodeDelimited
|
|
2295
|
+
* @memberof common.StringArrayValue
|
|
2296
|
+
* @static
|
|
2297
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2298
|
+
* @returns {common.StringArrayValue} StringArrayValue
|
|
2299
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2300
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2301
|
+
*/
|
|
2302
|
+
StringArrayValue.decodeDelimited = function decodeDelimited(reader) {
|
|
2303
|
+
if (!(reader instanceof $Reader))
|
|
2304
|
+
reader = new $Reader(reader);
|
|
2305
|
+
return this.decode(reader, reader.uint32());
|
|
2306
|
+
};
|
|
2307
|
+
|
|
2308
|
+
/**
|
|
2309
|
+
* Verifies a StringArrayValue message.
|
|
2310
|
+
* @function verify
|
|
2311
|
+
* @memberof common.StringArrayValue
|
|
2312
|
+
* @static
|
|
2313
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
2314
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2315
|
+
*/
|
|
2316
|
+
StringArrayValue.verify = function verify(message) {
|
|
2317
|
+
if (typeof message !== "object" || message === null)
|
|
2318
|
+
return "object expected";
|
|
2319
|
+
if (message.values != null && message.hasOwnProperty("values")) {
|
|
2320
|
+
if (!Array.isArray(message.values))
|
|
2321
|
+
return "values: array expected";
|
|
2322
|
+
for (var i = 0; i < message.values.length; ++i)
|
|
2323
|
+
if (!$util.isString(message.values[i]))
|
|
2324
|
+
return "values: string[] expected";
|
|
2325
|
+
}
|
|
2326
|
+
return null;
|
|
2327
|
+
};
|
|
2328
|
+
|
|
2329
|
+
/**
|
|
2330
|
+
* Creates a StringArrayValue message from a plain object. Also converts values to their respective internal types.
|
|
2331
|
+
* @function fromObject
|
|
2332
|
+
* @memberof common.StringArrayValue
|
|
2333
|
+
* @static
|
|
2334
|
+
* @param {Object.<string,*>} object Plain object
|
|
2335
|
+
* @returns {common.StringArrayValue} StringArrayValue
|
|
2336
|
+
*/
|
|
2337
|
+
StringArrayValue.fromObject = function fromObject(object) {
|
|
2338
|
+
if (object instanceof $root.common.StringArrayValue)
|
|
2339
|
+
return object;
|
|
2340
|
+
var message = new $root.common.StringArrayValue();
|
|
2341
|
+
if (object.values) {
|
|
2342
|
+
if (!Array.isArray(object.values))
|
|
2343
|
+
throw TypeError(".common.StringArrayValue.values: array expected");
|
|
2344
|
+
message.values = [];
|
|
2345
|
+
for (var i = 0; i < object.values.length; ++i)
|
|
2346
|
+
message.values[i] = String(object.values[i]);
|
|
2347
|
+
}
|
|
2348
|
+
return message;
|
|
2349
|
+
};
|
|
2350
|
+
|
|
2351
|
+
/**
|
|
2352
|
+
* Creates a plain object from a StringArrayValue message. Also converts values to other types if specified.
|
|
2353
|
+
* @function toObject
|
|
2354
|
+
* @memberof common.StringArrayValue
|
|
2355
|
+
* @static
|
|
2356
|
+
* @param {common.StringArrayValue} message StringArrayValue
|
|
2357
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2358
|
+
* @returns {Object.<string,*>} Plain object
|
|
2359
|
+
*/
|
|
2360
|
+
StringArrayValue.toObject = function toObject(message, options) {
|
|
2361
|
+
if (!options)
|
|
2362
|
+
options = {};
|
|
2363
|
+
var object = {};
|
|
2364
|
+
if (options.arrays || options.defaults)
|
|
2365
|
+
object.values = [];
|
|
2366
|
+
if (message.values && message.values.length) {
|
|
2367
|
+
object.values = [];
|
|
2368
|
+
for (var j = 0; j < message.values.length; ++j)
|
|
2369
|
+
object.values[j] = message.values[j];
|
|
2370
|
+
}
|
|
2371
|
+
return object;
|
|
2372
|
+
};
|
|
2373
|
+
|
|
2374
|
+
/**
|
|
2375
|
+
* Converts this StringArrayValue to JSON.
|
|
2376
|
+
* @function toJSON
|
|
2377
|
+
* @memberof common.StringArrayValue
|
|
2378
|
+
* @instance
|
|
2379
|
+
* @returns {Object.<string,*>} JSON object
|
|
2380
|
+
*/
|
|
2381
|
+
StringArrayValue.prototype.toJSON = function toJSON() {
|
|
2382
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2383
|
+
};
|
|
2384
|
+
|
|
2385
|
+
return StringArrayValue;
|
|
2386
|
+
})();
|
|
2387
|
+
|
|
2388
|
+
common.UInt64Value = (function() {
|
|
2389
|
+
|
|
2390
|
+
/**
|
|
2391
|
+
* Properties of a UInt64Value.
|
|
2392
|
+
* @memberof common
|
|
2393
|
+
* @interface IUInt64Value
|
|
2394
|
+
* @property {number|Long|null} [value] UInt64Value value
|
|
2395
|
+
*/
|
|
2396
|
+
|
|
2397
|
+
/**
|
|
2398
|
+
* Constructs a new UInt64Value.
|
|
2399
|
+
* @memberof common
|
|
2400
|
+
* @classdesc Represents a UInt64Value.
|
|
2401
|
+
* @implements IUInt64Value
|
|
2402
|
+
* @constructor
|
|
2403
|
+
* @param {common.IUInt64Value=} [properties] Properties to set
|
|
2404
|
+
*/
|
|
2405
|
+
function UInt64Value(properties) {
|
|
2406
|
+
if (properties)
|
|
2407
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2408
|
+
if (properties[keys[i]] != null)
|
|
2409
|
+
this[keys[i]] = properties[keys[i]];
|
|
2410
|
+
}
|
|
2411
|
+
|
|
2412
|
+
/**
|
|
2413
|
+
* UInt64Value value.
|
|
2414
|
+
* @member {number|Long} value
|
|
2415
|
+
* @memberof common.UInt64Value
|
|
2416
|
+
* @instance
|
|
2417
|
+
*/
|
|
2418
|
+
UInt64Value.prototype.value = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
2419
|
+
|
|
2420
|
+
/**
|
|
2421
|
+
* Creates a new UInt64Value instance using the specified properties.
|
|
2422
|
+
* @function create
|
|
2423
|
+
* @memberof common.UInt64Value
|
|
2424
|
+
* @static
|
|
2425
|
+
* @param {common.IUInt64Value=} [properties] Properties to set
|
|
2426
|
+
* @returns {common.UInt64Value} UInt64Value instance
|
|
2427
|
+
*/
|
|
2428
|
+
UInt64Value.create = function create(properties) {
|
|
2429
|
+
return new UInt64Value(properties);
|
|
2430
|
+
};
|
|
2431
|
+
|
|
2432
|
+
/**
|
|
2433
|
+
* Encodes the specified UInt64Value message. Does not implicitly {@link common.UInt64Value.verify|verify} messages.
|
|
2434
|
+
* @function encode
|
|
2435
|
+
* @memberof common.UInt64Value
|
|
2436
|
+
* @static
|
|
2437
|
+
* @param {common.IUInt64Value} message UInt64Value message or plain object to encode
|
|
2438
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2439
|
+
* @returns {$protobuf.Writer} Writer
|
|
2440
|
+
*/
|
|
2441
|
+
UInt64Value.encode = function encode(message, writer) {
|
|
2442
|
+
if (!writer)
|
|
2443
|
+
writer = $Writer.create();
|
|
2444
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
2445
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.value);
|
|
2446
|
+
return writer;
|
|
2447
|
+
};
|
|
2448
|
+
|
|
2449
|
+
/**
|
|
2450
|
+
* Encodes the specified UInt64Value message, length delimited. Does not implicitly {@link common.UInt64Value.verify|verify} messages.
|
|
2451
|
+
* @function encodeDelimited
|
|
2452
|
+
* @memberof common.UInt64Value
|
|
2453
|
+
* @static
|
|
2454
|
+
* @param {common.IUInt64Value} message UInt64Value message or plain object to encode
|
|
2455
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2456
|
+
* @returns {$protobuf.Writer} Writer
|
|
2457
|
+
*/
|
|
2458
|
+
UInt64Value.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2459
|
+
return this.encode(message, writer).ldelim();
|
|
2460
|
+
};
|
|
2461
|
+
|
|
2462
|
+
/**
|
|
2463
|
+
* Decodes a UInt64Value message from the specified reader or buffer.
|
|
2464
|
+
* @function decode
|
|
2465
|
+
* @memberof common.UInt64Value
|
|
2466
|
+
* @static
|
|
2467
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2468
|
+
* @param {number} [length] Message length if known beforehand
|
|
2469
|
+
* @returns {common.UInt64Value} UInt64Value
|
|
2470
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2471
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2472
|
+
*/
|
|
2473
|
+
UInt64Value.decode = function decode(reader, length) {
|
|
2474
|
+
if (!(reader instanceof $Reader))
|
|
2475
|
+
reader = $Reader.create(reader);
|
|
2476
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.UInt64Value();
|
|
2477
|
+
while (reader.pos < end) {
|
|
2478
|
+
var tag = reader.uint32();
|
|
2479
|
+
switch (tag >>> 3) {
|
|
2480
|
+
case 1:
|
|
2481
|
+
message.value = reader.uint64();
|
|
2482
|
+
break;
|
|
2483
|
+
default:
|
|
2484
|
+
reader.skipType(tag & 7);
|
|
2485
|
+
break;
|
|
2486
|
+
}
|
|
2487
|
+
}
|
|
2488
|
+
return message;
|
|
2489
|
+
};
|
|
2490
|
+
|
|
2491
|
+
/**
|
|
2492
|
+
* Decodes a UInt64Value message from the specified reader or buffer, length delimited.
|
|
2493
|
+
* @function decodeDelimited
|
|
2494
|
+
* @memberof common.UInt64Value
|
|
2495
|
+
* @static
|
|
2496
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2497
|
+
* @returns {common.UInt64Value} UInt64Value
|
|
2498
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2499
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2500
|
+
*/
|
|
2501
|
+
UInt64Value.decodeDelimited = function decodeDelimited(reader) {
|
|
2502
|
+
if (!(reader instanceof $Reader))
|
|
2503
|
+
reader = new $Reader(reader);
|
|
2504
|
+
return this.decode(reader, reader.uint32());
|
|
2505
|
+
};
|
|
2506
|
+
|
|
2507
|
+
/**
|
|
2508
|
+
* Verifies a UInt64Value message.
|
|
2509
|
+
* @function verify
|
|
2510
|
+
* @memberof common.UInt64Value
|
|
2511
|
+
* @static
|
|
2512
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
2513
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2514
|
+
*/
|
|
2515
|
+
UInt64Value.verify = function verify(message) {
|
|
2516
|
+
if (typeof message !== "object" || message === null)
|
|
2517
|
+
return "object expected";
|
|
2518
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
2519
|
+
if (!$util.isInteger(message.value) && !(message.value && $util.isInteger(message.value.low) && $util.isInteger(message.value.high)))
|
|
2520
|
+
return "value: integer|Long expected";
|
|
2521
|
+
return null;
|
|
2522
|
+
};
|
|
2523
|
+
|
|
2524
|
+
/**
|
|
2525
|
+
* Creates a UInt64Value message from a plain object. Also converts values to their respective internal types.
|
|
2526
|
+
* @function fromObject
|
|
2527
|
+
* @memberof common.UInt64Value
|
|
2528
|
+
* @static
|
|
2529
|
+
* @param {Object.<string,*>} object Plain object
|
|
2530
|
+
* @returns {common.UInt64Value} UInt64Value
|
|
2531
|
+
*/
|
|
2532
|
+
UInt64Value.fromObject = function fromObject(object) {
|
|
2533
|
+
if (object instanceof $root.common.UInt64Value)
|
|
2534
|
+
return object;
|
|
2535
|
+
var message = new $root.common.UInt64Value();
|
|
2536
|
+
if (object.value != null)
|
|
2537
|
+
if ($util.Long)
|
|
2538
|
+
(message.value = $util.Long.fromValue(object.value)).unsigned = true;
|
|
2539
|
+
else if (typeof object.value === "string")
|
|
2540
|
+
message.value = parseInt(object.value, 10);
|
|
2541
|
+
else if (typeof object.value === "number")
|
|
2542
|
+
message.value = object.value;
|
|
2543
|
+
else if (typeof object.value === "object")
|
|
2544
|
+
message.value = new $util.LongBits(object.value.low >>> 0, object.value.high >>> 0).toNumber(true);
|
|
2545
|
+
return message;
|
|
2546
|
+
};
|
|
2547
|
+
|
|
2548
|
+
/**
|
|
2549
|
+
* Creates a plain object from a UInt64Value message. Also converts values to other types if specified.
|
|
2550
|
+
* @function toObject
|
|
2551
|
+
* @memberof common.UInt64Value
|
|
2552
|
+
* @static
|
|
2553
|
+
* @param {common.UInt64Value} message UInt64Value
|
|
2554
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2555
|
+
* @returns {Object.<string,*>} Plain object
|
|
2556
|
+
*/
|
|
2557
|
+
UInt64Value.toObject = function toObject(message, options) {
|
|
2558
|
+
if (!options)
|
|
2559
|
+
options = {};
|
|
2560
|
+
var object = {};
|
|
2561
|
+
if (options.defaults)
|
|
2562
|
+
if ($util.Long) {
|
|
2563
|
+
var long = new $util.Long(0, 0, true);
|
|
2564
|
+
object.value = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
2565
|
+
} else
|
|
2566
|
+
object.value = options.longs === String ? "0" : 0;
|
|
2567
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
2568
|
+
if (typeof message.value === "number")
|
|
2569
|
+
object.value = options.longs === String ? String(message.value) : message.value;
|
|
2570
|
+
else
|
|
2571
|
+
object.value = options.longs === String ? $util.Long.prototype.toString.call(message.value) : options.longs === Number ? new $util.LongBits(message.value.low >>> 0, message.value.high >>> 0).toNumber(true) : message.value;
|
|
2572
|
+
return object;
|
|
2573
|
+
};
|
|
2574
|
+
|
|
2575
|
+
/**
|
|
2576
|
+
* Converts this UInt64Value to JSON.
|
|
2577
|
+
* @function toJSON
|
|
2578
|
+
* @memberof common.UInt64Value
|
|
2579
|
+
* @instance
|
|
2580
|
+
* @returns {Object.<string,*>} JSON object
|
|
2581
|
+
*/
|
|
2582
|
+
UInt64Value.prototype.toJSON = function toJSON() {
|
|
2583
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2584
|
+
};
|
|
2585
|
+
|
|
2586
|
+
return UInt64Value;
|
|
2587
|
+
})();
|
|
2588
|
+
|
|
2589
|
+
common.UInt32Value = (function() {
|
|
2590
|
+
|
|
2591
|
+
/**
|
|
2592
|
+
* Properties of a UInt32Value.
|
|
2593
|
+
* @memberof common
|
|
2594
|
+
* @interface IUInt32Value
|
|
2595
|
+
* @property {number|null} [value] UInt32Value value
|
|
2596
|
+
*/
|
|
2597
|
+
|
|
2598
|
+
/**
|
|
2599
|
+
* Constructs a new UInt32Value.
|
|
2600
|
+
* @memberof common
|
|
2601
|
+
* @classdesc Represents a UInt32Value.
|
|
2602
|
+
* @implements IUInt32Value
|
|
2603
|
+
* @constructor
|
|
2604
|
+
* @param {common.IUInt32Value=} [properties] Properties to set
|
|
2605
|
+
*/
|
|
2606
|
+
function UInt32Value(properties) {
|
|
2607
|
+
if (properties)
|
|
2608
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2609
|
+
if (properties[keys[i]] != null)
|
|
2610
|
+
this[keys[i]] = properties[keys[i]];
|
|
2611
|
+
}
|
|
2612
|
+
|
|
2613
|
+
/**
|
|
2614
|
+
* UInt32Value value.
|
|
2615
|
+
* @member {number} value
|
|
2616
|
+
* @memberof common.UInt32Value
|
|
2617
|
+
* @instance
|
|
2618
|
+
*/
|
|
2619
|
+
UInt32Value.prototype.value = 0;
|
|
2620
|
+
|
|
2621
|
+
/**
|
|
2622
|
+
* Creates a new UInt32Value instance using the specified properties.
|
|
2623
|
+
* @function create
|
|
2624
|
+
* @memberof common.UInt32Value
|
|
2625
|
+
* @static
|
|
2626
|
+
* @param {common.IUInt32Value=} [properties] Properties to set
|
|
2627
|
+
* @returns {common.UInt32Value} UInt32Value instance
|
|
2628
|
+
*/
|
|
2629
|
+
UInt32Value.create = function create(properties) {
|
|
2630
|
+
return new UInt32Value(properties);
|
|
2631
|
+
};
|
|
2632
|
+
|
|
2633
|
+
/**
|
|
2634
|
+
* Encodes the specified UInt32Value message. Does not implicitly {@link common.UInt32Value.verify|verify} messages.
|
|
2635
|
+
* @function encode
|
|
2636
|
+
* @memberof common.UInt32Value
|
|
2637
|
+
* @static
|
|
2638
|
+
* @param {common.IUInt32Value} message UInt32Value message or plain object to encode
|
|
2639
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2640
|
+
* @returns {$protobuf.Writer} Writer
|
|
2641
|
+
*/
|
|
2642
|
+
UInt32Value.encode = function encode(message, writer) {
|
|
2643
|
+
if (!writer)
|
|
2644
|
+
writer = $Writer.create();
|
|
2645
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
2646
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.value);
|
|
2647
|
+
return writer;
|
|
2648
|
+
};
|
|
2649
|
+
|
|
2650
|
+
/**
|
|
2651
|
+
* Encodes the specified UInt32Value message, length delimited. Does not implicitly {@link common.UInt32Value.verify|verify} messages.
|
|
2652
|
+
* @function encodeDelimited
|
|
2653
|
+
* @memberof common.UInt32Value
|
|
2654
|
+
* @static
|
|
2655
|
+
* @param {common.IUInt32Value} message UInt32Value message or plain object to encode
|
|
2656
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2657
|
+
* @returns {$protobuf.Writer} Writer
|
|
2658
|
+
*/
|
|
2659
|
+
UInt32Value.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2660
|
+
return this.encode(message, writer).ldelim();
|
|
2661
|
+
};
|
|
2662
|
+
|
|
2663
|
+
/**
|
|
2664
|
+
* Decodes a UInt32Value message from the specified reader or buffer.
|
|
2665
|
+
* @function decode
|
|
2666
|
+
* @memberof common.UInt32Value
|
|
2667
|
+
* @static
|
|
2668
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2669
|
+
* @param {number} [length] Message length if known beforehand
|
|
2670
|
+
* @returns {common.UInt32Value} UInt32Value
|
|
2671
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2672
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2673
|
+
*/
|
|
2674
|
+
UInt32Value.decode = function decode(reader, length) {
|
|
2675
|
+
if (!(reader instanceof $Reader))
|
|
2676
|
+
reader = $Reader.create(reader);
|
|
2677
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.UInt32Value();
|
|
2678
|
+
while (reader.pos < end) {
|
|
2679
|
+
var tag = reader.uint32();
|
|
2680
|
+
switch (tag >>> 3) {
|
|
2681
|
+
case 1:
|
|
2682
|
+
message.value = reader.uint32();
|
|
2683
|
+
break;
|
|
2684
|
+
default:
|
|
2685
|
+
reader.skipType(tag & 7);
|
|
2686
|
+
break;
|
|
2687
|
+
}
|
|
2688
|
+
}
|
|
2689
|
+
return message;
|
|
2690
|
+
};
|
|
2691
|
+
|
|
2692
|
+
/**
|
|
2693
|
+
* Decodes a UInt32Value message from the specified reader or buffer, length delimited.
|
|
2694
|
+
* @function decodeDelimited
|
|
2695
|
+
* @memberof common.UInt32Value
|
|
2696
|
+
* @static
|
|
2697
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2698
|
+
* @returns {common.UInt32Value} UInt32Value
|
|
2699
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2700
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2701
|
+
*/
|
|
2702
|
+
UInt32Value.decodeDelimited = function decodeDelimited(reader) {
|
|
2703
|
+
if (!(reader instanceof $Reader))
|
|
2704
|
+
reader = new $Reader(reader);
|
|
2705
|
+
return this.decode(reader, reader.uint32());
|
|
2706
|
+
};
|
|
2707
|
+
|
|
2708
|
+
/**
|
|
2709
|
+
* Verifies a UInt32Value message.
|
|
2710
|
+
* @function verify
|
|
2711
|
+
* @memberof common.UInt32Value
|
|
2712
|
+
* @static
|
|
2713
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
2714
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2715
|
+
*/
|
|
2716
|
+
UInt32Value.verify = function verify(message) {
|
|
2717
|
+
if (typeof message !== "object" || message === null)
|
|
2718
|
+
return "object expected";
|
|
2719
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
2720
|
+
if (!$util.isInteger(message.value))
|
|
2721
|
+
return "value: integer expected";
|
|
2722
|
+
return null;
|
|
2723
|
+
};
|
|
2724
|
+
|
|
2725
|
+
/**
|
|
2726
|
+
* Creates a UInt32Value message from a plain object. Also converts values to their respective internal types.
|
|
2727
|
+
* @function fromObject
|
|
2728
|
+
* @memberof common.UInt32Value
|
|
2729
|
+
* @static
|
|
2730
|
+
* @param {Object.<string,*>} object Plain object
|
|
2731
|
+
* @returns {common.UInt32Value} UInt32Value
|
|
2732
|
+
*/
|
|
2733
|
+
UInt32Value.fromObject = function fromObject(object) {
|
|
2734
|
+
if (object instanceof $root.common.UInt32Value)
|
|
2735
|
+
return object;
|
|
2736
|
+
var message = new $root.common.UInt32Value();
|
|
2737
|
+
if (object.value != null)
|
|
2738
|
+
message.value = object.value >>> 0;
|
|
2739
|
+
return message;
|
|
2740
|
+
};
|
|
2741
|
+
|
|
2742
|
+
/**
|
|
2743
|
+
* Creates a plain object from a UInt32Value message. Also converts values to other types if specified.
|
|
2744
|
+
* @function toObject
|
|
2745
|
+
* @memberof common.UInt32Value
|
|
2746
|
+
* @static
|
|
2747
|
+
* @param {common.UInt32Value} message UInt32Value
|
|
2748
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2749
|
+
* @returns {Object.<string,*>} Plain object
|
|
2750
|
+
*/
|
|
2751
|
+
UInt32Value.toObject = function toObject(message, options) {
|
|
2752
|
+
if (!options)
|
|
2753
|
+
options = {};
|
|
2754
|
+
var object = {};
|
|
2755
|
+
if (options.defaults)
|
|
2756
|
+
object.value = 0;
|
|
2757
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
2758
|
+
object.value = message.value;
|
|
2759
|
+
return object;
|
|
2760
|
+
};
|
|
2761
|
+
|
|
2762
|
+
/**
|
|
2763
|
+
* Converts this UInt32Value to JSON.
|
|
2764
|
+
* @function toJSON
|
|
2765
|
+
* @memberof common.UInt32Value
|
|
2766
|
+
* @instance
|
|
2767
|
+
* @returns {Object.<string,*>} JSON object
|
|
2768
|
+
*/
|
|
2769
|
+
UInt32Value.prototype.toJSON = function toJSON() {
|
|
2770
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2771
|
+
};
|
|
2772
|
+
|
|
2773
|
+
return UInt32Value;
|
|
2774
|
+
})();
|
|
2775
|
+
|
|
2776
|
+
common.StringValue = (function() {
|
|
2777
|
+
|
|
2778
|
+
/**
|
|
2779
|
+
* Properties of a StringValue.
|
|
2780
|
+
* @memberof common
|
|
2781
|
+
* @interface IStringValue
|
|
2782
|
+
* @property {string|null} [value] StringValue value
|
|
2783
|
+
*/
|
|
2784
|
+
|
|
2785
|
+
/**
|
|
2786
|
+
* Constructs a new StringValue.
|
|
2787
|
+
* @memberof common
|
|
2788
|
+
* @classdesc Represents a StringValue.
|
|
2789
|
+
* @implements IStringValue
|
|
2790
|
+
* @constructor
|
|
2791
|
+
* @param {common.IStringValue=} [properties] Properties to set
|
|
2792
|
+
*/
|
|
2793
|
+
function StringValue(properties) {
|
|
2794
|
+
if (properties)
|
|
2795
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2796
|
+
if (properties[keys[i]] != null)
|
|
2797
|
+
this[keys[i]] = properties[keys[i]];
|
|
2798
|
+
}
|
|
2799
|
+
|
|
2800
|
+
/**
|
|
2801
|
+
* StringValue value.
|
|
2802
|
+
* @member {string} value
|
|
2803
|
+
* @memberof common.StringValue
|
|
2804
|
+
* @instance
|
|
2805
|
+
*/
|
|
2806
|
+
StringValue.prototype.value = "";
|
|
2807
|
+
|
|
2808
|
+
/**
|
|
2809
|
+
* Creates a new StringValue instance using the specified properties.
|
|
2810
|
+
* @function create
|
|
2811
|
+
* @memberof common.StringValue
|
|
2812
|
+
* @static
|
|
2813
|
+
* @param {common.IStringValue=} [properties] Properties to set
|
|
2814
|
+
* @returns {common.StringValue} StringValue instance
|
|
2815
|
+
*/
|
|
2816
|
+
StringValue.create = function create(properties) {
|
|
2817
|
+
return new StringValue(properties);
|
|
2818
|
+
};
|
|
2819
|
+
|
|
2820
|
+
/**
|
|
2821
|
+
* Encodes the specified StringValue message. Does not implicitly {@link common.StringValue.verify|verify} messages.
|
|
2822
|
+
* @function encode
|
|
2823
|
+
* @memberof common.StringValue
|
|
2824
|
+
* @static
|
|
2825
|
+
* @param {common.IStringValue} message StringValue message or plain object to encode
|
|
2826
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2827
|
+
* @returns {$protobuf.Writer} Writer
|
|
2828
|
+
*/
|
|
2829
|
+
StringValue.encode = function encode(message, writer) {
|
|
2830
|
+
if (!writer)
|
|
2831
|
+
writer = $Writer.create();
|
|
2832
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
2833
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.value);
|
|
2834
|
+
return writer;
|
|
2835
|
+
};
|
|
2836
|
+
|
|
2837
|
+
/**
|
|
2838
|
+
* Encodes the specified StringValue message, length delimited. Does not implicitly {@link common.StringValue.verify|verify} messages.
|
|
2839
|
+
* @function encodeDelimited
|
|
2840
|
+
* @memberof common.StringValue
|
|
2841
|
+
* @static
|
|
2842
|
+
* @param {common.IStringValue} message StringValue message or plain object to encode
|
|
2843
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2844
|
+
* @returns {$protobuf.Writer} Writer
|
|
2845
|
+
*/
|
|
2846
|
+
StringValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2847
|
+
return this.encode(message, writer).ldelim();
|
|
2848
|
+
};
|
|
2849
|
+
|
|
2850
|
+
/**
|
|
2851
|
+
* Decodes a StringValue message from the specified reader or buffer.
|
|
2852
|
+
* @function decode
|
|
2853
|
+
* @memberof common.StringValue
|
|
2854
|
+
* @static
|
|
2855
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2856
|
+
* @param {number} [length] Message length if known beforehand
|
|
2857
|
+
* @returns {common.StringValue} StringValue
|
|
2858
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2859
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2860
|
+
*/
|
|
2861
|
+
StringValue.decode = function decode(reader, length) {
|
|
2862
|
+
if (!(reader instanceof $Reader))
|
|
2863
|
+
reader = $Reader.create(reader);
|
|
2864
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.StringValue();
|
|
2865
|
+
while (reader.pos < end) {
|
|
2866
|
+
var tag = reader.uint32();
|
|
2867
|
+
switch (tag >>> 3) {
|
|
2868
|
+
case 1:
|
|
2869
|
+
message.value = reader.string();
|
|
2870
|
+
break;
|
|
2871
|
+
default:
|
|
2872
|
+
reader.skipType(tag & 7);
|
|
2873
|
+
break;
|
|
2874
|
+
}
|
|
2875
|
+
}
|
|
2876
|
+
return message;
|
|
2877
|
+
};
|
|
2878
|
+
|
|
2879
|
+
/**
|
|
2880
|
+
* Decodes a StringValue message from the specified reader or buffer, length delimited.
|
|
2881
|
+
* @function decodeDelimited
|
|
2882
|
+
* @memberof common.StringValue
|
|
2883
|
+
* @static
|
|
2884
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2885
|
+
* @returns {common.StringValue} StringValue
|
|
2886
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2887
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2888
|
+
*/
|
|
2889
|
+
StringValue.decodeDelimited = function decodeDelimited(reader) {
|
|
2890
|
+
if (!(reader instanceof $Reader))
|
|
2891
|
+
reader = new $Reader(reader);
|
|
2892
|
+
return this.decode(reader, reader.uint32());
|
|
2893
|
+
};
|
|
2894
|
+
|
|
2895
|
+
/**
|
|
2896
|
+
* Verifies a StringValue message.
|
|
2897
|
+
* @function verify
|
|
2898
|
+
* @memberof common.StringValue
|
|
2899
|
+
* @static
|
|
2900
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
2901
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2902
|
+
*/
|
|
2903
|
+
StringValue.verify = function verify(message) {
|
|
2904
|
+
if (typeof message !== "object" || message === null)
|
|
2905
|
+
return "object expected";
|
|
2906
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
2907
|
+
if (!$util.isString(message.value))
|
|
2908
|
+
return "value: string expected";
|
|
2909
|
+
return null;
|
|
2910
|
+
};
|
|
2911
|
+
|
|
2912
|
+
/**
|
|
2913
|
+
* Creates a StringValue message from a plain object. Also converts values to their respective internal types.
|
|
2914
|
+
* @function fromObject
|
|
2915
|
+
* @memberof common.StringValue
|
|
2916
|
+
* @static
|
|
2917
|
+
* @param {Object.<string,*>} object Plain object
|
|
2918
|
+
* @returns {common.StringValue} StringValue
|
|
2919
|
+
*/
|
|
2920
|
+
StringValue.fromObject = function fromObject(object) {
|
|
2921
|
+
if (object instanceof $root.common.StringValue)
|
|
2922
|
+
return object;
|
|
2923
|
+
var message = new $root.common.StringValue();
|
|
2924
|
+
if (object.value != null)
|
|
2925
|
+
message.value = String(object.value);
|
|
2926
|
+
return message;
|
|
2927
|
+
};
|
|
2928
|
+
|
|
2929
|
+
/**
|
|
2930
|
+
* Creates a plain object from a StringValue message. Also converts values to other types if specified.
|
|
2931
|
+
* @function toObject
|
|
2932
|
+
* @memberof common.StringValue
|
|
2933
|
+
* @static
|
|
2934
|
+
* @param {common.StringValue} message StringValue
|
|
2935
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2936
|
+
* @returns {Object.<string,*>} Plain object
|
|
2937
|
+
*/
|
|
2938
|
+
StringValue.toObject = function toObject(message, options) {
|
|
2939
|
+
if (!options)
|
|
2940
|
+
options = {};
|
|
2941
|
+
var object = {};
|
|
2942
|
+
if (options.defaults)
|
|
2943
|
+
object.value = "";
|
|
2944
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
2945
|
+
object.value = message.value;
|
|
2946
|
+
return object;
|
|
2947
|
+
};
|
|
2948
|
+
|
|
2949
|
+
/**
|
|
2950
|
+
* Converts this StringValue to JSON.
|
|
2951
|
+
* @function toJSON
|
|
2952
|
+
* @memberof common.StringValue
|
|
2953
|
+
* @instance
|
|
2954
|
+
* @returns {Object.<string,*>} JSON object
|
|
2955
|
+
*/
|
|
2956
|
+
StringValue.prototype.toJSON = function toJSON() {
|
|
2957
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2958
|
+
};
|
|
2959
|
+
|
|
2960
|
+
return StringValue;
|
|
2961
|
+
})();
|
|
2962
|
+
|
|
2963
|
+
common.BytesValue = (function() {
|
|
2964
|
+
|
|
2965
|
+
/**
|
|
2966
|
+
* Properties of a BytesValue.
|
|
2967
|
+
* @memberof common
|
|
2968
|
+
* @interface IBytesValue
|
|
2969
|
+
* @property {Uint8Array|null} [value] BytesValue value
|
|
2970
|
+
*/
|
|
2971
|
+
|
|
2972
|
+
/**
|
|
2973
|
+
* Constructs a new BytesValue.
|
|
2974
|
+
* @memberof common
|
|
2975
|
+
* @classdesc Represents a BytesValue.
|
|
2976
|
+
* @implements IBytesValue
|
|
2977
|
+
* @constructor
|
|
2978
|
+
* @param {common.IBytesValue=} [properties] Properties to set
|
|
2979
|
+
*/
|
|
2980
|
+
function BytesValue(properties) {
|
|
2981
|
+
if (properties)
|
|
2982
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2983
|
+
if (properties[keys[i]] != null)
|
|
2984
|
+
this[keys[i]] = properties[keys[i]];
|
|
2985
|
+
}
|
|
2986
|
+
|
|
2987
|
+
/**
|
|
2988
|
+
* BytesValue value.
|
|
2989
|
+
* @member {Uint8Array} value
|
|
2990
|
+
* @memberof common.BytesValue
|
|
2991
|
+
* @instance
|
|
2992
|
+
*/
|
|
2993
|
+
BytesValue.prototype.value = $util.newBuffer([]);
|
|
2994
|
+
|
|
2995
|
+
/**
|
|
2996
|
+
* Creates a new BytesValue instance using the specified properties.
|
|
2997
|
+
* @function create
|
|
2998
|
+
* @memberof common.BytesValue
|
|
2999
|
+
* @static
|
|
3000
|
+
* @param {common.IBytesValue=} [properties] Properties to set
|
|
3001
|
+
* @returns {common.BytesValue} BytesValue instance
|
|
3002
|
+
*/
|
|
3003
|
+
BytesValue.create = function create(properties) {
|
|
3004
|
+
return new BytesValue(properties);
|
|
3005
|
+
};
|
|
3006
|
+
|
|
3007
|
+
/**
|
|
3008
|
+
* Encodes the specified BytesValue message. Does not implicitly {@link common.BytesValue.verify|verify} messages.
|
|
3009
|
+
* @function encode
|
|
3010
|
+
* @memberof common.BytesValue
|
|
3011
|
+
* @static
|
|
3012
|
+
* @param {common.IBytesValue} message BytesValue message or plain object to encode
|
|
3013
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3014
|
+
* @returns {$protobuf.Writer} Writer
|
|
3015
|
+
*/
|
|
3016
|
+
BytesValue.encode = function encode(message, writer) {
|
|
3017
|
+
if (!writer)
|
|
3018
|
+
writer = $Writer.create();
|
|
3019
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
3020
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.value);
|
|
3021
|
+
return writer;
|
|
3022
|
+
};
|
|
3023
|
+
|
|
3024
|
+
/**
|
|
3025
|
+
* Encodes the specified BytesValue message, length delimited. Does not implicitly {@link common.BytesValue.verify|verify} messages.
|
|
3026
|
+
* @function encodeDelimited
|
|
3027
|
+
* @memberof common.BytesValue
|
|
3028
|
+
* @static
|
|
3029
|
+
* @param {common.IBytesValue} message BytesValue message or plain object to encode
|
|
3030
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3031
|
+
* @returns {$protobuf.Writer} Writer
|
|
3032
|
+
*/
|
|
3033
|
+
BytesValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
3034
|
+
return this.encode(message, writer).ldelim();
|
|
3035
|
+
};
|
|
3036
|
+
|
|
3037
|
+
/**
|
|
3038
|
+
* Decodes a BytesValue message from the specified reader or buffer.
|
|
3039
|
+
* @function decode
|
|
3040
|
+
* @memberof common.BytesValue
|
|
3041
|
+
* @static
|
|
3042
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3043
|
+
* @param {number} [length] Message length if known beforehand
|
|
3044
|
+
* @returns {common.BytesValue} BytesValue
|
|
3045
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3046
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3047
|
+
*/
|
|
3048
|
+
BytesValue.decode = function decode(reader, length) {
|
|
3049
|
+
if (!(reader instanceof $Reader))
|
|
3050
|
+
reader = $Reader.create(reader);
|
|
3051
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.BytesValue();
|
|
3052
|
+
while (reader.pos < end) {
|
|
3053
|
+
var tag = reader.uint32();
|
|
3054
|
+
switch (tag >>> 3) {
|
|
3055
|
+
case 1:
|
|
3056
|
+
message.value = reader.bytes();
|
|
3057
|
+
break;
|
|
3058
|
+
default:
|
|
3059
|
+
reader.skipType(tag & 7);
|
|
3060
|
+
break;
|
|
3061
|
+
}
|
|
3062
|
+
}
|
|
3063
|
+
return message;
|
|
3064
|
+
};
|
|
3065
|
+
|
|
3066
|
+
/**
|
|
3067
|
+
* Decodes a BytesValue message from the specified reader or buffer, length delimited.
|
|
3068
|
+
* @function decodeDelimited
|
|
3069
|
+
* @memberof common.BytesValue
|
|
3070
|
+
* @static
|
|
3071
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3072
|
+
* @returns {common.BytesValue} BytesValue
|
|
3073
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3074
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3075
|
+
*/
|
|
3076
|
+
BytesValue.decodeDelimited = function decodeDelimited(reader) {
|
|
3077
|
+
if (!(reader instanceof $Reader))
|
|
3078
|
+
reader = new $Reader(reader);
|
|
3079
|
+
return this.decode(reader, reader.uint32());
|
|
3080
|
+
};
|
|
3081
|
+
|
|
3082
|
+
/**
|
|
3083
|
+
* Verifies a BytesValue message.
|
|
3084
|
+
* @function verify
|
|
3085
|
+
* @memberof common.BytesValue
|
|
3086
|
+
* @static
|
|
3087
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
3088
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
3089
|
+
*/
|
|
3090
|
+
BytesValue.verify = function verify(message) {
|
|
3091
|
+
if (typeof message !== "object" || message === null)
|
|
3092
|
+
return "object expected";
|
|
3093
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
3094
|
+
if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value)))
|
|
3095
|
+
return "value: buffer expected";
|
|
3096
|
+
return null;
|
|
3097
|
+
};
|
|
3098
|
+
|
|
3099
|
+
/**
|
|
3100
|
+
* Creates a BytesValue message from a plain object. Also converts values to their respective internal types.
|
|
3101
|
+
* @function fromObject
|
|
3102
|
+
* @memberof common.BytesValue
|
|
3103
|
+
* @static
|
|
3104
|
+
* @param {Object.<string,*>} object Plain object
|
|
3105
|
+
* @returns {common.BytesValue} BytesValue
|
|
3106
|
+
*/
|
|
3107
|
+
BytesValue.fromObject = function fromObject(object) {
|
|
3108
|
+
if (object instanceof $root.common.BytesValue)
|
|
3109
|
+
return object;
|
|
3110
|
+
var message = new $root.common.BytesValue();
|
|
3111
|
+
if (object.value != null)
|
|
3112
|
+
if (typeof object.value === "string")
|
|
3113
|
+
$util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0);
|
|
3114
|
+
else if (object.value.length)
|
|
3115
|
+
message.value = object.value;
|
|
3116
|
+
return message;
|
|
3117
|
+
};
|
|
3118
|
+
|
|
3119
|
+
/**
|
|
3120
|
+
* Creates a plain object from a BytesValue message. Also converts values to other types if specified.
|
|
3121
|
+
* @function toObject
|
|
3122
|
+
* @memberof common.BytesValue
|
|
3123
|
+
* @static
|
|
3124
|
+
* @param {common.BytesValue} message BytesValue
|
|
3125
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
3126
|
+
* @returns {Object.<string,*>} Plain object
|
|
3127
|
+
*/
|
|
3128
|
+
BytesValue.toObject = function toObject(message, options) {
|
|
3129
|
+
if (!options)
|
|
3130
|
+
options = {};
|
|
3131
|
+
var object = {};
|
|
3132
|
+
if (options.defaults)
|
|
3133
|
+
if (options.bytes === String)
|
|
3134
|
+
object.value = "";
|
|
3135
|
+
else {
|
|
3136
|
+
object.value = [];
|
|
3137
|
+
if (options.bytes !== Array)
|
|
3138
|
+
object.value = $util.newBuffer(object.value);
|
|
3139
|
+
}
|
|
3140
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
3141
|
+
object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value;
|
|
3142
|
+
return object;
|
|
3143
|
+
};
|
|
3144
|
+
|
|
3145
|
+
/**
|
|
3146
|
+
* Converts this BytesValue to JSON.
|
|
3147
|
+
* @function toJSON
|
|
3148
|
+
* @memberof common.BytesValue
|
|
3149
|
+
* @instance
|
|
3150
|
+
* @returns {Object.<string,*>} JSON object
|
|
3151
|
+
*/
|
|
3152
|
+
BytesValue.prototype.toJSON = function toJSON() {
|
|
3153
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
3154
|
+
};
|
|
3155
|
+
|
|
3156
|
+
return BytesValue;
|
|
3157
|
+
})();
|
|
3158
|
+
|
|
3159
|
+
common.ErrorValue = (function() {
|
|
3160
|
+
|
|
3161
|
+
/**
|
|
3162
|
+
* Properties of an ErrorValue.
|
|
3163
|
+
* @memberof common
|
|
3164
|
+
* @interface IErrorValue
|
|
3165
|
+
* @property {string|null} [runtimeExcJson] ErrorValue runtimeExcJson
|
|
3166
|
+
* @property {string|null} [err] ErrorValue err
|
|
3167
|
+
*/
|
|
3168
|
+
|
|
3169
|
+
/**
|
|
3170
|
+
* Constructs a new ErrorValue.
|
|
3171
|
+
* @memberof common
|
|
3172
|
+
* @classdesc Represents an ErrorValue.
|
|
3173
|
+
* @implements IErrorValue
|
|
3174
|
+
* @constructor
|
|
3175
|
+
* @param {common.IErrorValue=} [properties] Properties to set
|
|
3176
|
+
*/
|
|
3177
|
+
function ErrorValue(properties) {
|
|
3178
|
+
if (properties)
|
|
3179
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
3180
|
+
if (properties[keys[i]] != null)
|
|
3181
|
+
this[keys[i]] = properties[keys[i]];
|
|
3182
|
+
}
|
|
3183
|
+
|
|
3184
|
+
/**
|
|
3185
|
+
* ErrorValue runtimeExcJson.
|
|
3186
|
+
* @member {string} runtimeExcJson
|
|
3187
|
+
* @memberof common.ErrorValue
|
|
3188
|
+
* @instance
|
|
3189
|
+
*/
|
|
3190
|
+
ErrorValue.prototype.runtimeExcJson = "";
|
|
3191
|
+
|
|
3192
|
+
/**
|
|
3193
|
+
* ErrorValue err.
|
|
3194
|
+
* @member {string} err
|
|
3195
|
+
* @memberof common.ErrorValue
|
|
3196
|
+
* @instance
|
|
3197
|
+
*/
|
|
3198
|
+
ErrorValue.prototype.err = "";
|
|
3199
|
+
|
|
3200
|
+
/**
|
|
3201
|
+
* Creates a new ErrorValue instance using the specified properties.
|
|
3202
|
+
* @function create
|
|
3203
|
+
* @memberof common.ErrorValue
|
|
3204
|
+
* @static
|
|
3205
|
+
* @param {common.IErrorValue=} [properties] Properties to set
|
|
3206
|
+
* @returns {common.ErrorValue} ErrorValue instance
|
|
3207
|
+
*/
|
|
3208
|
+
ErrorValue.create = function create(properties) {
|
|
3209
|
+
return new ErrorValue(properties);
|
|
3210
|
+
};
|
|
3211
|
+
|
|
3212
|
+
/**
|
|
3213
|
+
* Encodes the specified ErrorValue message. Does not implicitly {@link common.ErrorValue.verify|verify} messages.
|
|
3214
|
+
* @function encode
|
|
3215
|
+
* @memberof common.ErrorValue
|
|
3216
|
+
* @static
|
|
3217
|
+
* @param {common.IErrorValue} message ErrorValue message or plain object to encode
|
|
3218
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3219
|
+
* @returns {$protobuf.Writer} Writer
|
|
3220
|
+
*/
|
|
3221
|
+
ErrorValue.encode = function encode(message, writer) {
|
|
3222
|
+
if (!writer)
|
|
3223
|
+
writer = $Writer.create();
|
|
3224
|
+
if (message.runtimeExcJson != null && Object.hasOwnProperty.call(message, "runtimeExcJson"))
|
|
3225
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.runtimeExcJson);
|
|
3226
|
+
if (message.err != null && Object.hasOwnProperty.call(message, "err"))
|
|
3227
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.err);
|
|
3228
|
+
return writer;
|
|
3229
|
+
};
|
|
3230
|
+
|
|
3231
|
+
/**
|
|
3232
|
+
* Encodes the specified ErrorValue message, length delimited. Does not implicitly {@link common.ErrorValue.verify|verify} messages.
|
|
3233
|
+
* @function encodeDelimited
|
|
3234
|
+
* @memberof common.ErrorValue
|
|
3235
|
+
* @static
|
|
3236
|
+
* @param {common.IErrorValue} message ErrorValue message or plain object to encode
|
|
3237
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3238
|
+
* @returns {$protobuf.Writer} Writer
|
|
3239
|
+
*/
|
|
3240
|
+
ErrorValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
3241
|
+
return this.encode(message, writer).ldelim();
|
|
3242
|
+
};
|
|
3243
|
+
|
|
3244
|
+
/**
|
|
3245
|
+
* Decodes an ErrorValue message from the specified reader or buffer.
|
|
3246
|
+
* @function decode
|
|
3247
|
+
* @memberof common.ErrorValue
|
|
3248
|
+
* @static
|
|
3249
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3250
|
+
* @param {number} [length] Message length if known beforehand
|
|
3251
|
+
* @returns {common.ErrorValue} ErrorValue
|
|
3252
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3253
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3254
|
+
*/
|
|
3255
|
+
ErrorValue.decode = function decode(reader, length) {
|
|
3256
|
+
if (!(reader instanceof $Reader))
|
|
3257
|
+
reader = $Reader.create(reader);
|
|
3258
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.ErrorValue();
|
|
3259
|
+
while (reader.pos < end) {
|
|
3260
|
+
var tag = reader.uint32();
|
|
3261
|
+
switch (tag >>> 3) {
|
|
3262
|
+
case 1:
|
|
3263
|
+
message.runtimeExcJson = reader.string();
|
|
3264
|
+
break;
|
|
3265
|
+
case 2:
|
|
3266
|
+
message.err = reader.string();
|
|
3267
|
+
break;
|
|
3268
|
+
default:
|
|
3269
|
+
reader.skipType(tag & 7);
|
|
3270
|
+
break;
|
|
3271
|
+
}
|
|
3272
|
+
}
|
|
3273
|
+
return message;
|
|
3274
|
+
};
|
|
3275
|
+
|
|
3276
|
+
/**
|
|
3277
|
+
* Decodes an ErrorValue message from the specified reader or buffer, length delimited.
|
|
3278
|
+
* @function decodeDelimited
|
|
3279
|
+
* @memberof common.ErrorValue
|
|
3280
|
+
* @static
|
|
3281
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3282
|
+
* @returns {common.ErrorValue} ErrorValue
|
|
3283
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3284
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3285
|
+
*/
|
|
3286
|
+
ErrorValue.decodeDelimited = function decodeDelimited(reader) {
|
|
3287
|
+
if (!(reader instanceof $Reader))
|
|
3288
|
+
reader = new $Reader(reader);
|
|
3289
|
+
return this.decode(reader, reader.uint32());
|
|
3290
|
+
};
|
|
3291
|
+
|
|
3292
|
+
/**
|
|
3293
|
+
* Verifies an ErrorValue message.
|
|
3294
|
+
* @function verify
|
|
3295
|
+
* @memberof common.ErrorValue
|
|
3296
|
+
* @static
|
|
3297
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
3298
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
3299
|
+
*/
|
|
3300
|
+
ErrorValue.verify = function verify(message) {
|
|
3301
|
+
if (typeof message !== "object" || message === null)
|
|
3302
|
+
return "object expected";
|
|
3303
|
+
if (message.runtimeExcJson != null && message.hasOwnProperty("runtimeExcJson"))
|
|
3304
|
+
if (!$util.isString(message.runtimeExcJson))
|
|
3305
|
+
return "runtimeExcJson: string expected";
|
|
3306
|
+
if (message.err != null && message.hasOwnProperty("err"))
|
|
3307
|
+
if (!$util.isString(message.err))
|
|
3308
|
+
return "err: string expected";
|
|
3309
|
+
return null;
|
|
3310
|
+
};
|
|
3311
|
+
|
|
3312
|
+
/**
|
|
3313
|
+
* Creates an ErrorValue message from a plain object. Also converts values to their respective internal types.
|
|
3314
|
+
* @function fromObject
|
|
3315
|
+
* @memberof common.ErrorValue
|
|
3316
|
+
* @static
|
|
3317
|
+
* @param {Object.<string,*>} object Plain object
|
|
3318
|
+
* @returns {common.ErrorValue} ErrorValue
|
|
3319
|
+
*/
|
|
3320
|
+
ErrorValue.fromObject = function fromObject(object) {
|
|
3321
|
+
if (object instanceof $root.common.ErrorValue)
|
|
3322
|
+
return object;
|
|
3323
|
+
var message = new $root.common.ErrorValue();
|
|
3324
|
+
if (object.runtimeExcJson != null)
|
|
3325
|
+
message.runtimeExcJson = String(object.runtimeExcJson);
|
|
3326
|
+
if (object.err != null)
|
|
3327
|
+
message.err = String(object.err);
|
|
3328
|
+
return message;
|
|
3329
|
+
};
|
|
3330
|
+
|
|
3331
|
+
/**
|
|
3332
|
+
* Creates a plain object from an ErrorValue message. Also converts values to other types if specified.
|
|
3333
|
+
* @function toObject
|
|
3334
|
+
* @memberof common.ErrorValue
|
|
3335
|
+
* @static
|
|
3336
|
+
* @param {common.ErrorValue} message ErrorValue
|
|
3337
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
3338
|
+
* @returns {Object.<string,*>} Plain object
|
|
3339
|
+
*/
|
|
3340
|
+
ErrorValue.toObject = function toObject(message, options) {
|
|
3341
|
+
if (!options)
|
|
3342
|
+
options = {};
|
|
3343
|
+
var object = {};
|
|
3344
|
+
if (options.defaults) {
|
|
3345
|
+
object.runtimeExcJson = "";
|
|
3346
|
+
object.err = "";
|
|
3347
|
+
}
|
|
3348
|
+
if (message.runtimeExcJson != null && message.hasOwnProperty("runtimeExcJson"))
|
|
3349
|
+
object.runtimeExcJson = message.runtimeExcJson;
|
|
3350
|
+
if (message.err != null && message.hasOwnProperty("err"))
|
|
3351
|
+
object.err = message.err;
|
|
3352
|
+
return object;
|
|
3353
|
+
};
|
|
3354
|
+
|
|
3355
|
+
/**
|
|
3356
|
+
* Converts this ErrorValue to JSON.
|
|
3357
|
+
* @function toJSON
|
|
3358
|
+
* @memberof common.ErrorValue
|
|
3359
|
+
* @instance
|
|
3360
|
+
* @returns {Object.<string,*>} JSON object
|
|
3361
|
+
*/
|
|
3362
|
+
ErrorValue.prototype.toJSON = function toJSON() {
|
|
3363
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
3364
|
+
};
|
|
3365
|
+
|
|
3366
|
+
return ErrorValue;
|
|
3367
|
+
})();
|
|
3368
|
+
|
|
3369
|
+
common.AnyValue = (function() {
|
|
3370
|
+
|
|
3371
|
+
/**
|
|
3372
|
+
* Properties of an AnyValue.
|
|
3373
|
+
* @memberof common
|
|
3374
|
+
* @interface IAnyValue
|
|
3375
|
+
* @property {string|null} [type] AnyValue type
|
|
3376
|
+
* @property {common.IStringValue|null} [json] AnyValue json
|
|
3377
|
+
* @property {common.IBytesValue|null} [bytes] AnyValue bytes
|
|
3378
|
+
*/
|
|
3379
|
+
|
|
3380
|
+
/**
|
|
3381
|
+
* Constructs a new AnyValue.
|
|
3382
|
+
* @memberof common
|
|
3383
|
+
* @classdesc Represents an AnyValue.
|
|
3384
|
+
* @implements IAnyValue
|
|
3385
|
+
* @constructor
|
|
3386
|
+
* @param {common.IAnyValue=} [properties] Properties to set
|
|
3387
|
+
*/
|
|
3388
|
+
function AnyValue(properties) {
|
|
3389
|
+
if (properties)
|
|
3390
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
3391
|
+
if (properties[keys[i]] != null)
|
|
3392
|
+
this[keys[i]] = properties[keys[i]];
|
|
3393
|
+
}
|
|
3394
|
+
|
|
3395
|
+
/**
|
|
3396
|
+
* AnyValue type.
|
|
3397
|
+
* @member {string} type
|
|
3398
|
+
* @memberof common.AnyValue
|
|
3399
|
+
* @instance
|
|
3400
|
+
*/
|
|
3401
|
+
AnyValue.prototype.type = "";
|
|
3402
|
+
|
|
3403
|
+
/**
|
|
3404
|
+
* AnyValue json.
|
|
3405
|
+
* @member {common.IStringValue|null|undefined} json
|
|
3406
|
+
* @memberof common.AnyValue
|
|
3407
|
+
* @instance
|
|
3408
|
+
*/
|
|
3409
|
+
AnyValue.prototype.json = null;
|
|
3410
|
+
|
|
3411
|
+
/**
|
|
3412
|
+
* AnyValue bytes.
|
|
3413
|
+
* @member {common.IBytesValue|null|undefined} bytes
|
|
3414
|
+
* @memberof common.AnyValue
|
|
3415
|
+
* @instance
|
|
3416
|
+
*/
|
|
3417
|
+
AnyValue.prototype.bytes = null;
|
|
3418
|
+
|
|
3419
|
+
/**
|
|
3420
|
+
* Creates a new AnyValue instance using the specified properties.
|
|
3421
|
+
* @function create
|
|
3422
|
+
* @memberof common.AnyValue
|
|
3423
|
+
* @static
|
|
3424
|
+
* @param {common.IAnyValue=} [properties] Properties to set
|
|
3425
|
+
* @returns {common.AnyValue} AnyValue instance
|
|
3426
|
+
*/
|
|
3427
|
+
AnyValue.create = function create(properties) {
|
|
3428
|
+
return new AnyValue(properties);
|
|
3429
|
+
};
|
|
3430
|
+
|
|
3431
|
+
/**
|
|
3432
|
+
* Encodes the specified AnyValue message. Does not implicitly {@link common.AnyValue.verify|verify} messages.
|
|
3433
|
+
* @function encode
|
|
3434
|
+
* @memberof common.AnyValue
|
|
3435
|
+
* @static
|
|
3436
|
+
* @param {common.IAnyValue} message AnyValue message or plain object to encode
|
|
3437
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3438
|
+
* @returns {$protobuf.Writer} Writer
|
|
3439
|
+
*/
|
|
3440
|
+
AnyValue.encode = function encode(message, writer) {
|
|
3441
|
+
if (!writer)
|
|
3442
|
+
writer = $Writer.create();
|
|
3443
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
3444
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
|
|
3445
|
+
if (message.json != null && Object.hasOwnProperty.call(message, "json"))
|
|
3446
|
+
$root.common.StringValue.encode(message.json, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
3447
|
+
if (message.bytes != null && Object.hasOwnProperty.call(message, "bytes"))
|
|
3448
|
+
$root.common.BytesValue.encode(message.bytes, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
3449
|
+
return writer;
|
|
3450
|
+
};
|
|
3451
|
+
|
|
3452
|
+
/**
|
|
3453
|
+
* Encodes the specified AnyValue message, length delimited. Does not implicitly {@link common.AnyValue.verify|verify} messages.
|
|
3454
|
+
* @function encodeDelimited
|
|
3455
|
+
* @memberof common.AnyValue
|
|
3456
|
+
* @static
|
|
3457
|
+
* @param {common.IAnyValue} message AnyValue message or plain object to encode
|
|
3458
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3459
|
+
* @returns {$protobuf.Writer} Writer
|
|
3460
|
+
*/
|
|
3461
|
+
AnyValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
3462
|
+
return this.encode(message, writer).ldelim();
|
|
3463
|
+
};
|
|
3464
|
+
|
|
3465
|
+
/**
|
|
3466
|
+
* Decodes an AnyValue message from the specified reader or buffer.
|
|
3467
|
+
* @function decode
|
|
3468
|
+
* @memberof common.AnyValue
|
|
3469
|
+
* @static
|
|
3470
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3471
|
+
* @param {number} [length] Message length if known beforehand
|
|
3472
|
+
* @returns {common.AnyValue} AnyValue
|
|
3473
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3474
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3475
|
+
*/
|
|
3476
|
+
AnyValue.decode = function decode(reader, length) {
|
|
3477
|
+
if (!(reader instanceof $Reader))
|
|
3478
|
+
reader = $Reader.create(reader);
|
|
3479
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.AnyValue();
|
|
3480
|
+
while (reader.pos < end) {
|
|
3481
|
+
var tag = reader.uint32();
|
|
3482
|
+
switch (tag >>> 3) {
|
|
3483
|
+
case 1:
|
|
3484
|
+
message.type = reader.string();
|
|
3485
|
+
break;
|
|
3486
|
+
case 2:
|
|
3487
|
+
message.json = $root.common.StringValue.decode(reader, reader.uint32());
|
|
3488
|
+
break;
|
|
3489
|
+
case 3:
|
|
3490
|
+
message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
|
|
3491
|
+
break;
|
|
3492
|
+
default:
|
|
3493
|
+
reader.skipType(tag & 7);
|
|
3494
|
+
break;
|
|
3495
|
+
}
|
|
3496
|
+
}
|
|
3497
|
+
return message;
|
|
3498
|
+
};
|
|
3499
|
+
|
|
3500
|
+
/**
|
|
3501
|
+
* Decodes an AnyValue message from the specified reader or buffer, length delimited.
|
|
3502
|
+
* @function decodeDelimited
|
|
3503
|
+
* @memberof common.AnyValue
|
|
3504
|
+
* @static
|
|
3505
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3506
|
+
* @returns {common.AnyValue} AnyValue
|
|
3507
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3508
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3509
|
+
*/
|
|
3510
|
+
AnyValue.decodeDelimited = function decodeDelimited(reader) {
|
|
3511
|
+
if (!(reader instanceof $Reader))
|
|
3512
|
+
reader = new $Reader(reader);
|
|
3513
|
+
return this.decode(reader, reader.uint32());
|
|
3514
|
+
};
|
|
3515
|
+
|
|
3516
|
+
/**
|
|
3517
|
+
* Verifies an AnyValue message.
|
|
3518
|
+
* @function verify
|
|
3519
|
+
* @memberof common.AnyValue
|
|
3520
|
+
* @static
|
|
3521
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
3522
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
3523
|
+
*/
|
|
3524
|
+
AnyValue.verify = function verify(message) {
|
|
3525
|
+
if (typeof message !== "object" || message === null)
|
|
3526
|
+
return "object expected";
|
|
3527
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
3528
|
+
if (!$util.isString(message.type))
|
|
3529
|
+
return "type: string expected";
|
|
3530
|
+
if (message.json != null && message.hasOwnProperty("json")) {
|
|
3531
|
+
var error = $root.common.StringValue.verify(message.json);
|
|
3532
|
+
if (error)
|
|
3533
|
+
return "json." + error;
|
|
3534
|
+
}
|
|
3535
|
+
if (message.bytes != null && message.hasOwnProperty("bytes")) {
|
|
3536
|
+
var error = $root.common.BytesValue.verify(message.bytes);
|
|
3537
|
+
if (error)
|
|
3538
|
+
return "bytes." + error;
|
|
3539
|
+
}
|
|
3540
|
+
return null;
|
|
3541
|
+
};
|
|
3542
|
+
|
|
3543
|
+
/**
|
|
3544
|
+
* Creates an AnyValue message from a plain object. Also converts values to their respective internal types.
|
|
3545
|
+
* @function fromObject
|
|
3546
|
+
* @memberof common.AnyValue
|
|
3547
|
+
* @static
|
|
3548
|
+
* @param {Object.<string,*>} object Plain object
|
|
3549
|
+
* @returns {common.AnyValue} AnyValue
|
|
3550
|
+
*/
|
|
3551
|
+
AnyValue.fromObject = function fromObject(object) {
|
|
3552
|
+
if (object instanceof $root.common.AnyValue)
|
|
3553
|
+
return object;
|
|
3554
|
+
var message = new $root.common.AnyValue();
|
|
3555
|
+
if (object.type != null)
|
|
3556
|
+
message.type = String(object.type);
|
|
3557
|
+
if (object.json != null) {
|
|
3558
|
+
if (typeof object.json !== "object")
|
|
3559
|
+
throw TypeError(".common.AnyValue.json: object expected");
|
|
3560
|
+
message.json = $root.common.StringValue.fromObject(object.json);
|
|
3561
|
+
}
|
|
3562
|
+
if (object.bytes != null) {
|
|
3563
|
+
if (typeof object.bytes !== "object")
|
|
3564
|
+
throw TypeError(".common.AnyValue.bytes: object expected");
|
|
3565
|
+
message.bytes = $root.common.BytesValue.fromObject(object.bytes);
|
|
3566
|
+
}
|
|
3567
|
+
return message;
|
|
3568
|
+
};
|
|
3569
|
+
|
|
3570
|
+
/**
|
|
3571
|
+
* Creates a plain object from an AnyValue message. Also converts values to other types if specified.
|
|
3572
|
+
* @function toObject
|
|
3573
|
+
* @memberof common.AnyValue
|
|
3574
|
+
* @static
|
|
3575
|
+
* @param {common.AnyValue} message AnyValue
|
|
3576
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
3577
|
+
* @returns {Object.<string,*>} Plain object
|
|
3578
|
+
*/
|
|
3579
|
+
AnyValue.toObject = function toObject(message, options) {
|
|
3580
|
+
if (!options)
|
|
3581
|
+
options = {};
|
|
3582
|
+
var object = {};
|
|
3583
|
+
if (options.defaults) {
|
|
3584
|
+
object.type = "";
|
|
3585
|
+
object.json = null;
|
|
3586
|
+
object.bytes = null;
|
|
3587
|
+
}
|
|
3588
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
3589
|
+
object.type = message.type;
|
|
3590
|
+
if (message.json != null && message.hasOwnProperty("json"))
|
|
3591
|
+
object.json = $root.common.StringValue.toObject(message.json, options);
|
|
3592
|
+
if (message.bytes != null && message.hasOwnProperty("bytes"))
|
|
3593
|
+
object.bytes = $root.common.BytesValue.toObject(message.bytes, options);
|
|
3594
|
+
return object;
|
|
3595
|
+
};
|
|
3596
|
+
|
|
3597
|
+
/**
|
|
3598
|
+
* Converts this AnyValue to JSON.
|
|
3599
|
+
* @function toJSON
|
|
3600
|
+
* @memberof common.AnyValue
|
|
3601
|
+
* @instance
|
|
3602
|
+
* @returns {Object.<string,*>} JSON object
|
|
3603
|
+
*/
|
|
3604
|
+
AnyValue.prototype.toJSON = function toJSON() {
|
|
3605
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
3606
|
+
};
|
|
3607
|
+
|
|
3608
|
+
return AnyValue;
|
|
3609
|
+
})();
|
|
3610
|
+
|
|
3611
|
+
return common;
|
|
3612
|
+
})();
|
|
3613
|
+
|
|
3614
|
+
module.exports = $root;
|