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,2689 @@
|
|
|
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.storage = (function() {
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Namespace storage.
|
|
16
|
+
* @exports storage
|
|
17
|
+
* @namespace
|
|
18
|
+
*/
|
|
19
|
+
var storage = {};
|
|
20
|
+
|
|
21
|
+
storage.GetAppLocalFSRequestBody = (function() {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Properties of a GetAppLocalFSRequestBody.
|
|
25
|
+
* @memberof storage
|
|
26
|
+
* @interface IGetAppLocalFSRequestBody
|
|
27
|
+
* @property {common.IStringValue|null} [appName] GetAppLocalFSRequestBody appName
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Constructs a new GetAppLocalFSRequestBody.
|
|
32
|
+
* @memberof storage
|
|
33
|
+
* @classdesc Represents a GetAppLocalFSRequestBody.
|
|
34
|
+
* @implements IGetAppLocalFSRequestBody
|
|
35
|
+
* @constructor
|
|
36
|
+
* @param {storage.IGetAppLocalFSRequestBody=} [properties] Properties to set
|
|
37
|
+
*/
|
|
38
|
+
function GetAppLocalFSRequestBody(properties) {
|
|
39
|
+
if (properties)
|
|
40
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
41
|
+
if (properties[keys[i]] != null)
|
|
42
|
+
this[keys[i]] = properties[keys[i]];
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* GetAppLocalFSRequestBody appName.
|
|
47
|
+
* @member {common.IStringValue|null|undefined} appName
|
|
48
|
+
* @memberof storage.GetAppLocalFSRequestBody
|
|
49
|
+
* @instance
|
|
50
|
+
*/
|
|
51
|
+
GetAppLocalFSRequestBody.prototype.appName = null;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Creates a new GetAppLocalFSRequestBody instance using the specified properties.
|
|
55
|
+
* @function create
|
|
56
|
+
* @memberof storage.GetAppLocalFSRequestBody
|
|
57
|
+
* @static
|
|
58
|
+
* @param {storage.IGetAppLocalFSRequestBody=} [properties] Properties to set
|
|
59
|
+
* @returns {storage.GetAppLocalFSRequestBody} GetAppLocalFSRequestBody instance
|
|
60
|
+
*/
|
|
61
|
+
GetAppLocalFSRequestBody.create = function create(properties) {
|
|
62
|
+
return new GetAppLocalFSRequestBody(properties);
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Encodes the specified GetAppLocalFSRequestBody message. Does not implicitly {@link storage.GetAppLocalFSRequestBody.verify|verify} messages.
|
|
67
|
+
* @function encode
|
|
68
|
+
* @memberof storage.GetAppLocalFSRequestBody
|
|
69
|
+
* @static
|
|
70
|
+
* @param {storage.IGetAppLocalFSRequestBody} message GetAppLocalFSRequestBody message or plain object to encode
|
|
71
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
72
|
+
* @returns {$protobuf.Writer} Writer
|
|
73
|
+
*/
|
|
74
|
+
GetAppLocalFSRequestBody.encode = function encode(message, writer) {
|
|
75
|
+
if (!writer)
|
|
76
|
+
writer = $Writer.create();
|
|
77
|
+
if (message.appName != null && Object.hasOwnProperty.call(message, "appName"))
|
|
78
|
+
$root.common.StringValue.encode(message.appName, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
79
|
+
return writer;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Encodes the specified GetAppLocalFSRequestBody message, length delimited. Does not implicitly {@link storage.GetAppLocalFSRequestBody.verify|verify} messages.
|
|
84
|
+
* @function encodeDelimited
|
|
85
|
+
* @memberof storage.GetAppLocalFSRequestBody
|
|
86
|
+
* @static
|
|
87
|
+
* @param {storage.IGetAppLocalFSRequestBody} message GetAppLocalFSRequestBody message or plain object to encode
|
|
88
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
89
|
+
* @returns {$protobuf.Writer} Writer
|
|
90
|
+
*/
|
|
91
|
+
GetAppLocalFSRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
|
|
92
|
+
return this.encode(message, writer).ldelim();
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Decodes a GetAppLocalFSRequestBody message from the specified reader or buffer.
|
|
97
|
+
* @function decode
|
|
98
|
+
* @memberof storage.GetAppLocalFSRequestBody
|
|
99
|
+
* @static
|
|
100
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
101
|
+
* @param {number} [length] Message length if known beforehand
|
|
102
|
+
* @returns {storage.GetAppLocalFSRequestBody} GetAppLocalFSRequestBody
|
|
103
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
104
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
105
|
+
*/
|
|
106
|
+
GetAppLocalFSRequestBody.decode = function decode(reader, length) {
|
|
107
|
+
if (!(reader instanceof $Reader))
|
|
108
|
+
reader = $Reader.create(reader);
|
|
109
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.storage.GetAppLocalFSRequestBody();
|
|
110
|
+
while (reader.pos < end) {
|
|
111
|
+
var tag = reader.uint32();
|
|
112
|
+
switch (tag >>> 3) {
|
|
113
|
+
case 1:
|
|
114
|
+
message.appName = $root.common.StringValue.decode(reader, reader.uint32());
|
|
115
|
+
break;
|
|
116
|
+
default:
|
|
117
|
+
reader.skipType(tag & 7);
|
|
118
|
+
break;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
return message;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Decodes a GetAppLocalFSRequestBody message from the specified reader or buffer, length delimited.
|
|
126
|
+
* @function decodeDelimited
|
|
127
|
+
* @memberof storage.GetAppLocalFSRequestBody
|
|
128
|
+
* @static
|
|
129
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
130
|
+
* @returns {storage.GetAppLocalFSRequestBody} GetAppLocalFSRequestBody
|
|
131
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
132
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
133
|
+
*/
|
|
134
|
+
GetAppLocalFSRequestBody.decodeDelimited = function decodeDelimited(reader) {
|
|
135
|
+
if (!(reader instanceof $Reader))
|
|
136
|
+
reader = new $Reader(reader);
|
|
137
|
+
return this.decode(reader, reader.uint32());
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Verifies a GetAppLocalFSRequestBody message.
|
|
142
|
+
* @function verify
|
|
143
|
+
* @memberof storage.GetAppLocalFSRequestBody
|
|
144
|
+
* @static
|
|
145
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
146
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
147
|
+
*/
|
|
148
|
+
GetAppLocalFSRequestBody.verify = function verify(message) {
|
|
149
|
+
if (typeof message !== "object" || message === null)
|
|
150
|
+
return "object expected";
|
|
151
|
+
if (message.appName != null && message.hasOwnProperty("appName")) {
|
|
152
|
+
var error = $root.common.StringValue.verify(message.appName);
|
|
153
|
+
if (error)
|
|
154
|
+
return "appName." + error;
|
|
155
|
+
}
|
|
156
|
+
return null;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Creates a GetAppLocalFSRequestBody message from a plain object. Also converts values to their respective internal types.
|
|
161
|
+
* @function fromObject
|
|
162
|
+
* @memberof storage.GetAppLocalFSRequestBody
|
|
163
|
+
* @static
|
|
164
|
+
* @param {Object.<string,*>} object Plain object
|
|
165
|
+
* @returns {storage.GetAppLocalFSRequestBody} GetAppLocalFSRequestBody
|
|
166
|
+
*/
|
|
167
|
+
GetAppLocalFSRequestBody.fromObject = function fromObject(object) {
|
|
168
|
+
if (object instanceof $root.storage.GetAppLocalFSRequestBody)
|
|
169
|
+
return object;
|
|
170
|
+
var message = new $root.storage.GetAppLocalFSRequestBody();
|
|
171
|
+
if (object.appName != null) {
|
|
172
|
+
if (typeof object.appName !== "object")
|
|
173
|
+
throw TypeError(".storage.GetAppLocalFSRequestBody.appName: object expected");
|
|
174
|
+
message.appName = $root.common.StringValue.fromObject(object.appName);
|
|
175
|
+
}
|
|
176
|
+
return message;
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Creates a plain object from a GetAppLocalFSRequestBody message. Also converts values to other types if specified.
|
|
181
|
+
* @function toObject
|
|
182
|
+
* @memberof storage.GetAppLocalFSRequestBody
|
|
183
|
+
* @static
|
|
184
|
+
* @param {storage.GetAppLocalFSRequestBody} message GetAppLocalFSRequestBody
|
|
185
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
186
|
+
* @returns {Object.<string,*>} Plain object
|
|
187
|
+
*/
|
|
188
|
+
GetAppLocalFSRequestBody.toObject = function toObject(message, options) {
|
|
189
|
+
if (!options)
|
|
190
|
+
options = {};
|
|
191
|
+
var object = {};
|
|
192
|
+
if (options.defaults)
|
|
193
|
+
object.appName = null;
|
|
194
|
+
if (message.appName != null && message.hasOwnProperty("appName"))
|
|
195
|
+
object.appName = $root.common.StringValue.toObject(message.appName, options);
|
|
196
|
+
return object;
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Converts this GetAppLocalFSRequestBody to JSON.
|
|
201
|
+
* @function toJSON
|
|
202
|
+
* @memberof storage.GetAppLocalFSRequestBody
|
|
203
|
+
* @instance
|
|
204
|
+
* @returns {Object.<string,*>} JSON object
|
|
205
|
+
*/
|
|
206
|
+
GetAppLocalFSRequestBody.prototype.toJSON = function toJSON() {
|
|
207
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
return GetAppLocalFSRequestBody;
|
|
211
|
+
})();
|
|
212
|
+
|
|
213
|
+
storage.GetAppSyncedFSRequestBody = (function() {
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Properties of a GetAppSyncedFSRequestBody.
|
|
217
|
+
* @memberof storage
|
|
218
|
+
* @interface IGetAppSyncedFSRequestBody
|
|
219
|
+
* @property {common.IStringValue|null} [appName] GetAppSyncedFSRequestBody appName
|
|
220
|
+
*/
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Constructs a new GetAppSyncedFSRequestBody.
|
|
224
|
+
* @memberof storage
|
|
225
|
+
* @classdesc Represents a GetAppSyncedFSRequestBody.
|
|
226
|
+
* @implements IGetAppSyncedFSRequestBody
|
|
227
|
+
* @constructor
|
|
228
|
+
* @param {storage.IGetAppSyncedFSRequestBody=} [properties] Properties to set
|
|
229
|
+
*/
|
|
230
|
+
function GetAppSyncedFSRequestBody(properties) {
|
|
231
|
+
if (properties)
|
|
232
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
233
|
+
if (properties[keys[i]] != null)
|
|
234
|
+
this[keys[i]] = properties[keys[i]];
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* GetAppSyncedFSRequestBody appName.
|
|
239
|
+
* @member {common.IStringValue|null|undefined} appName
|
|
240
|
+
* @memberof storage.GetAppSyncedFSRequestBody
|
|
241
|
+
* @instance
|
|
242
|
+
*/
|
|
243
|
+
GetAppSyncedFSRequestBody.prototype.appName = null;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Creates a new GetAppSyncedFSRequestBody instance using the specified properties.
|
|
247
|
+
* @function create
|
|
248
|
+
* @memberof storage.GetAppSyncedFSRequestBody
|
|
249
|
+
* @static
|
|
250
|
+
* @param {storage.IGetAppSyncedFSRequestBody=} [properties] Properties to set
|
|
251
|
+
* @returns {storage.GetAppSyncedFSRequestBody} GetAppSyncedFSRequestBody instance
|
|
252
|
+
*/
|
|
253
|
+
GetAppSyncedFSRequestBody.create = function create(properties) {
|
|
254
|
+
return new GetAppSyncedFSRequestBody(properties);
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Encodes the specified GetAppSyncedFSRequestBody message. Does not implicitly {@link storage.GetAppSyncedFSRequestBody.verify|verify} messages.
|
|
259
|
+
* @function encode
|
|
260
|
+
* @memberof storage.GetAppSyncedFSRequestBody
|
|
261
|
+
* @static
|
|
262
|
+
* @param {storage.IGetAppSyncedFSRequestBody} message GetAppSyncedFSRequestBody message or plain object to encode
|
|
263
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
264
|
+
* @returns {$protobuf.Writer} Writer
|
|
265
|
+
*/
|
|
266
|
+
GetAppSyncedFSRequestBody.encode = function encode(message, writer) {
|
|
267
|
+
if (!writer)
|
|
268
|
+
writer = $Writer.create();
|
|
269
|
+
if (message.appName != null && Object.hasOwnProperty.call(message, "appName"))
|
|
270
|
+
$root.common.StringValue.encode(message.appName, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
271
|
+
return writer;
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Encodes the specified GetAppSyncedFSRequestBody message, length delimited. Does not implicitly {@link storage.GetAppSyncedFSRequestBody.verify|verify} messages.
|
|
276
|
+
* @function encodeDelimited
|
|
277
|
+
* @memberof storage.GetAppSyncedFSRequestBody
|
|
278
|
+
* @static
|
|
279
|
+
* @param {storage.IGetAppSyncedFSRequestBody} message GetAppSyncedFSRequestBody message or plain object to encode
|
|
280
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
281
|
+
* @returns {$protobuf.Writer} Writer
|
|
282
|
+
*/
|
|
283
|
+
GetAppSyncedFSRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
|
|
284
|
+
return this.encode(message, writer).ldelim();
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Decodes a GetAppSyncedFSRequestBody message from the specified reader or buffer.
|
|
289
|
+
* @function decode
|
|
290
|
+
* @memberof storage.GetAppSyncedFSRequestBody
|
|
291
|
+
* @static
|
|
292
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
293
|
+
* @param {number} [length] Message length if known beforehand
|
|
294
|
+
* @returns {storage.GetAppSyncedFSRequestBody} GetAppSyncedFSRequestBody
|
|
295
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
296
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
297
|
+
*/
|
|
298
|
+
GetAppSyncedFSRequestBody.decode = function decode(reader, length) {
|
|
299
|
+
if (!(reader instanceof $Reader))
|
|
300
|
+
reader = $Reader.create(reader);
|
|
301
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.storage.GetAppSyncedFSRequestBody();
|
|
302
|
+
while (reader.pos < end) {
|
|
303
|
+
var tag = reader.uint32();
|
|
304
|
+
switch (tag >>> 3) {
|
|
305
|
+
case 1:
|
|
306
|
+
message.appName = $root.common.StringValue.decode(reader, reader.uint32());
|
|
307
|
+
break;
|
|
308
|
+
default:
|
|
309
|
+
reader.skipType(tag & 7);
|
|
310
|
+
break;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
return message;
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Decodes a GetAppSyncedFSRequestBody message from the specified reader or buffer, length delimited.
|
|
318
|
+
* @function decodeDelimited
|
|
319
|
+
* @memberof storage.GetAppSyncedFSRequestBody
|
|
320
|
+
* @static
|
|
321
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
322
|
+
* @returns {storage.GetAppSyncedFSRequestBody} GetAppSyncedFSRequestBody
|
|
323
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
324
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
325
|
+
*/
|
|
326
|
+
GetAppSyncedFSRequestBody.decodeDelimited = function decodeDelimited(reader) {
|
|
327
|
+
if (!(reader instanceof $Reader))
|
|
328
|
+
reader = new $Reader(reader);
|
|
329
|
+
return this.decode(reader, reader.uint32());
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* Verifies a GetAppSyncedFSRequestBody message.
|
|
334
|
+
* @function verify
|
|
335
|
+
* @memberof storage.GetAppSyncedFSRequestBody
|
|
336
|
+
* @static
|
|
337
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
338
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
339
|
+
*/
|
|
340
|
+
GetAppSyncedFSRequestBody.verify = function verify(message) {
|
|
341
|
+
if (typeof message !== "object" || message === null)
|
|
342
|
+
return "object expected";
|
|
343
|
+
if (message.appName != null && message.hasOwnProperty("appName")) {
|
|
344
|
+
var error = $root.common.StringValue.verify(message.appName);
|
|
345
|
+
if (error)
|
|
346
|
+
return "appName." + error;
|
|
347
|
+
}
|
|
348
|
+
return null;
|
|
349
|
+
};
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Creates a GetAppSyncedFSRequestBody message from a plain object. Also converts values to their respective internal types.
|
|
353
|
+
* @function fromObject
|
|
354
|
+
* @memberof storage.GetAppSyncedFSRequestBody
|
|
355
|
+
* @static
|
|
356
|
+
* @param {Object.<string,*>} object Plain object
|
|
357
|
+
* @returns {storage.GetAppSyncedFSRequestBody} GetAppSyncedFSRequestBody
|
|
358
|
+
*/
|
|
359
|
+
GetAppSyncedFSRequestBody.fromObject = function fromObject(object) {
|
|
360
|
+
if (object instanceof $root.storage.GetAppSyncedFSRequestBody)
|
|
361
|
+
return object;
|
|
362
|
+
var message = new $root.storage.GetAppSyncedFSRequestBody();
|
|
363
|
+
if (object.appName != null) {
|
|
364
|
+
if (typeof object.appName !== "object")
|
|
365
|
+
throw TypeError(".storage.GetAppSyncedFSRequestBody.appName: object expected");
|
|
366
|
+
message.appName = $root.common.StringValue.fromObject(object.appName);
|
|
367
|
+
}
|
|
368
|
+
return message;
|
|
369
|
+
};
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* Creates a plain object from a GetAppSyncedFSRequestBody message. Also converts values to other types if specified.
|
|
373
|
+
* @function toObject
|
|
374
|
+
* @memberof storage.GetAppSyncedFSRequestBody
|
|
375
|
+
* @static
|
|
376
|
+
* @param {storage.GetAppSyncedFSRequestBody} message GetAppSyncedFSRequestBody
|
|
377
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
378
|
+
* @returns {Object.<string,*>} Plain object
|
|
379
|
+
*/
|
|
380
|
+
GetAppSyncedFSRequestBody.toObject = function toObject(message, options) {
|
|
381
|
+
if (!options)
|
|
382
|
+
options = {};
|
|
383
|
+
var object = {};
|
|
384
|
+
if (options.defaults)
|
|
385
|
+
object.appName = null;
|
|
386
|
+
if (message.appName != null && message.hasOwnProperty("appName"))
|
|
387
|
+
object.appName = $root.common.StringValue.toObject(message.appName, options);
|
|
388
|
+
return object;
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Converts this GetAppSyncedFSRequestBody to JSON.
|
|
393
|
+
* @function toJSON
|
|
394
|
+
* @memberof storage.GetAppSyncedFSRequestBody
|
|
395
|
+
* @instance
|
|
396
|
+
* @returns {Object.<string,*>} JSON object
|
|
397
|
+
*/
|
|
398
|
+
GetAppSyncedFSRequestBody.prototype.toJSON = function toJSON() {
|
|
399
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
400
|
+
};
|
|
401
|
+
|
|
402
|
+
return GetAppSyncedFSRequestBody;
|
|
403
|
+
})();
|
|
404
|
+
|
|
405
|
+
storage.GetUserFSRequestBody = (function() {
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Properties of a GetUserFSRequestBody.
|
|
409
|
+
* @memberof storage
|
|
410
|
+
* @interface IGetUserFSRequestBody
|
|
411
|
+
* @property {string|null} [type] GetUserFSRequestBody type
|
|
412
|
+
* @property {common.IStringValue|null} [path] GetUserFSRequestBody path
|
|
413
|
+
*/
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* Constructs a new GetUserFSRequestBody.
|
|
417
|
+
* @memberof storage
|
|
418
|
+
* @classdesc Represents a GetUserFSRequestBody.
|
|
419
|
+
* @implements IGetUserFSRequestBody
|
|
420
|
+
* @constructor
|
|
421
|
+
* @param {storage.IGetUserFSRequestBody=} [properties] Properties to set
|
|
422
|
+
*/
|
|
423
|
+
function GetUserFSRequestBody(properties) {
|
|
424
|
+
if (properties)
|
|
425
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
426
|
+
if (properties[keys[i]] != null)
|
|
427
|
+
this[keys[i]] = properties[keys[i]];
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* GetUserFSRequestBody type.
|
|
432
|
+
* @member {string} type
|
|
433
|
+
* @memberof storage.GetUserFSRequestBody
|
|
434
|
+
* @instance
|
|
435
|
+
*/
|
|
436
|
+
GetUserFSRequestBody.prototype.type = "";
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* GetUserFSRequestBody path.
|
|
440
|
+
* @member {common.IStringValue|null|undefined} path
|
|
441
|
+
* @memberof storage.GetUserFSRequestBody
|
|
442
|
+
* @instance
|
|
443
|
+
*/
|
|
444
|
+
GetUserFSRequestBody.prototype.path = null;
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Creates a new GetUserFSRequestBody instance using the specified properties.
|
|
448
|
+
* @function create
|
|
449
|
+
* @memberof storage.GetUserFSRequestBody
|
|
450
|
+
* @static
|
|
451
|
+
* @param {storage.IGetUserFSRequestBody=} [properties] Properties to set
|
|
452
|
+
* @returns {storage.GetUserFSRequestBody} GetUserFSRequestBody instance
|
|
453
|
+
*/
|
|
454
|
+
GetUserFSRequestBody.create = function create(properties) {
|
|
455
|
+
return new GetUserFSRequestBody(properties);
|
|
456
|
+
};
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* Encodes the specified GetUserFSRequestBody message. Does not implicitly {@link storage.GetUserFSRequestBody.verify|verify} messages.
|
|
460
|
+
* @function encode
|
|
461
|
+
* @memberof storage.GetUserFSRequestBody
|
|
462
|
+
* @static
|
|
463
|
+
* @param {storage.IGetUserFSRequestBody} message GetUserFSRequestBody message or plain object to encode
|
|
464
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
465
|
+
* @returns {$protobuf.Writer} Writer
|
|
466
|
+
*/
|
|
467
|
+
GetUserFSRequestBody.encode = function encode(message, writer) {
|
|
468
|
+
if (!writer)
|
|
469
|
+
writer = $Writer.create();
|
|
470
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
471
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
|
|
472
|
+
if (message.path != null && Object.hasOwnProperty.call(message, "path"))
|
|
473
|
+
$root.common.StringValue.encode(message.path, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
474
|
+
return writer;
|
|
475
|
+
};
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* Encodes the specified GetUserFSRequestBody message, length delimited. Does not implicitly {@link storage.GetUserFSRequestBody.verify|verify} messages.
|
|
479
|
+
* @function encodeDelimited
|
|
480
|
+
* @memberof storage.GetUserFSRequestBody
|
|
481
|
+
* @static
|
|
482
|
+
* @param {storage.IGetUserFSRequestBody} message GetUserFSRequestBody message or plain object to encode
|
|
483
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
484
|
+
* @returns {$protobuf.Writer} Writer
|
|
485
|
+
*/
|
|
486
|
+
GetUserFSRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
|
|
487
|
+
return this.encode(message, writer).ldelim();
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* Decodes a GetUserFSRequestBody message from the specified reader or buffer.
|
|
492
|
+
* @function decode
|
|
493
|
+
* @memberof storage.GetUserFSRequestBody
|
|
494
|
+
* @static
|
|
495
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
496
|
+
* @param {number} [length] Message length if known beforehand
|
|
497
|
+
* @returns {storage.GetUserFSRequestBody} GetUserFSRequestBody
|
|
498
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
499
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
500
|
+
*/
|
|
501
|
+
GetUserFSRequestBody.decode = function decode(reader, length) {
|
|
502
|
+
if (!(reader instanceof $Reader))
|
|
503
|
+
reader = $Reader.create(reader);
|
|
504
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.storage.GetUserFSRequestBody();
|
|
505
|
+
while (reader.pos < end) {
|
|
506
|
+
var tag = reader.uint32();
|
|
507
|
+
switch (tag >>> 3) {
|
|
508
|
+
case 1:
|
|
509
|
+
message.type = reader.string();
|
|
510
|
+
break;
|
|
511
|
+
case 2:
|
|
512
|
+
message.path = $root.common.StringValue.decode(reader, reader.uint32());
|
|
513
|
+
break;
|
|
514
|
+
default:
|
|
515
|
+
reader.skipType(tag & 7);
|
|
516
|
+
break;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
return message;
|
|
520
|
+
};
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* Decodes a GetUserFSRequestBody message from the specified reader or buffer, length delimited.
|
|
524
|
+
* @function decodeDelimited
|
|
525
|
+
* @memberof storage.GetUserFSRequestBody
|
|
526
|
+
* @static
|
|
527
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
528
|
+
* @returns {storage.GetUserFSRequestBody} GetUserFSRequestBody
|
|
529
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
530
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
531
|
+
*/
|
|
532
|
+
GetUserFSRequestBody.decodeDelimited = function decodeDelimited(reader) {
|
|
533
|
+
if (!(reader instanceof $Reader))
|
|
534
|
+
reader = new $Reader(reader);
|
|
535
|
+
return this.decode(reader, reader.uint32());
|
|
536
|
+
};
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* Verifies a GetUserFSRequestBody message.
|
|
540
|
+
* @function verify
|
|
541
|
+
* @memberof storage.GetUserFSRequestBody
|
|
542
|
+
* @static
|
|
543
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
544
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
545
|
+
*/
|
|
546
|
+
GetUserFSRequestBody.verify = function verify(message) {
|
|
547
|
+
if (typeof message !== "object" || message === null)
|
|
548
|
+
return "object expected";
|
|
549
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
550
|
+
if (!$util.isString(message.type))
|
|
551
|
+
return "type: string expected";
|
|
552
|
+
if (message.path != null && message.hasOwnProperty("path")) {
|
|
553
|
+
var error = $root.common.StringValue.verify(message.path);
|
|
554
|
+
if (error)
|
|
555
|
+
return "path." + error;
|
|
556
|
+
}
|
|
557
|
+
return null;
|
|
558
|
+
};
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* Creates a GetUserFSRequestBody message from a plain object. Also converts values to their respective internal types.
|
|
562
|
+
* @function fromObject
|
|
563
|
+
* @memberof storage.GetUserFSRequestBody
|
|
564
|
+
* @static
|
|
565
|
+
* @param {Object.<string,*>} object Plain object
|
|
566
|
+
* @returns {storage.GetUserFSRequestBody} GetUserFSRequestBody
|
|
567
|
+
*/
|
|
568
|
+
GetUserFSRequestBody.fromObject = function fromObject(object) {
|
|
569
|
+
if (object instanceof $root.storage.GetUserFSRequestBody)
|
|
570
|
+
return object;
|
|
571
|
+
var message = new $root.storage.GetUserFSRequestBody();
|
|
572
|
+
if (object.type != null)
|
|
573
|
+
message.type = String(object.type);
|
|
574
|
+
if (object.path != null) {
|
|
575
|
+
if (typeof object.path !== "object")
|
|
576
|
+
throw TypeError(".storage.GetUserFSRequestBody.path: object expected");
|
|
577
|
+
message.path = $root.common.StringValue.fromObject(object.path);
|
|
578
|
+
}
|
|
579
|
+
return message;
|
|
580
|
+
};
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* Creates a plain object from a GetUserFSRequestBody message. Also converts values to other types if specified.
|
|
584
|
+
* @function toObject
|
|
585
|
+
* @memberof storage.GetUserFSRequestBody
|
|
586
|
+
* @static
|
|
587
|
+
* @param {storage.GetUserFSRequestBody} message GetUserFSRequestBody
|
|
588
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
589
|
+
* @returns {Object.<string,*>} Plain object
|
|
590
|
+
*/
|
|
591
|
+
GetUserFSRequestBody.toObject = function toObject(message, options) {
|
|
592
|
+
if (!options)
|
|
593
|
+
options = {};
|
|
594
|
+
var object = {};
|
|
595
|
+
if (options.defaults) {
|
|
596
|
+
object.type = "";
|
|
597
|
+
object.path = null;
|
|
598
|
+
}
|
|
599
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
600
|
+
object.type = message.type;
|
|
601
|
+
if (message.path != null && message.hasOwnProperty("path"))
|
|
602
|
+
object.path = $root.common.StringValue.toObject(message.path, options);
|
|
603
|
+
return object;
|
|
604
|
+
};
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* Converts this GetUserFSRequestBody to JSON.
|
|
608
|
+
* @function toJSON
|
|
609
|
+
* @memberof storage.GetUserFSRequestBody
|
|
610
|
+
* @instance
|
|
611
|
+
* @returns {Object.<string,*>} JSON object
|
|
612
|
+
*/
|
|
613
|
+
GetUserFSRequestBody.prototype.toJSON = function toJSON() {
|
|
614
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
615
|
+
};
|
|
616
|
+
|
|
617
|
+
return GetUserFSRequestBody;
|
|
618
|
+
})();
|
|
619
|
+
|
|
620
|
+
storage.GetSysFSRequestBody = (function() {
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* Properties of a GetSysFSRequestBody.
|
|
624
|
+
* @memberof storage
|
|
625
|
+
* @interface IGetSysFSRequestBody
|
|
626
|
+
* @property {string|null} [type] GetSysFSRequestBody type
|
|
627
|
+
* @property {common.IStringValue|null} [path] GetSysFSRequestBody path
|
|
628
|
+
*/
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* Constructs a new GetSysFSRequestBody.
|
|
632
|
+
* @memberof storage
|
|
633
|
+
* @classdesc Represents a GetSysFSRequestBody.
|
|
634
|
+
* @implements IGetSysFSRequestBody
|
|
635
|
+
* @constructor
|
|
636
|
+
* @param {storage.IGetSysFSRequestBody=} [properties] Properties to set
|
|
637
|
+
*/
|
|
638
|
+
function GetSysFSRequestBody(properties) {
|
|
639
|
+
if (properties)
|
|
640
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
641
|
+
if (properties[keys[i]] != null)
|
|
642
|
+
this[keys[i]] = properties[keys[i]];
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
/**
|
|
646
|
+
* GetSysFSRequestBody type.
|
|
647
|
+
* @member {string} type
|
|
648
|
+
* @memberof storage.GetSysFSRequestBody
|
|
649
|
+
* @instance
|
|
650
|
+
*/
|
|
651
|
+
GetSysFSRequestBody.prototype.type = "";
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* GetSysFSRequestBody path.
|
|
655
|
+
* @member {common.IStringValue|null|undefined} path
|
|
656
|
+
* @memberof storage.GetSysFSRequestBody
|
|
657
|
+
* @instance
|
|
658
|
+
*/
|
|
659
|
+
GetSysFSRequestBody.prototype.path = null;
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* Creates a new GetSysFSRequestBody instance using the specified properties.
|
|
663
|
+
* @function create
|
|
664
|
+
* @memberof storage.GetSysFSRequestBody
|
|
665
|
+
* @static
|
|
666
|
+
* @param {storage.IGetSysFSRequestBody=} [properties] Properties to set
|
|
667
|
+
* @returns {storage.GetSysFSRequestBody} GetSysFSRequestBody instance
|
|
668
|
+
*/
|
|
669
|
+
GetSysFSRequestBody.create = function create(properties) {
|
|
670
|
+
return new GetSysFSRequestBody(properties);
|
|
671
|
+
};
|
|
672
|
+
|
|
673
|
+
/**
|
|
674
|
+
* Encodes the specified GetSysFSRequestBody message. Does not implicitly {@link storage.GetSysFSRequestBody.verify|verify} messages.
|
|
675
|
+
* @function encode
|
|
676
|
+
* @memberof storage.GetSysFSRequestBody
|
|
677
|
+
* @static
|
|
678
|
+
* @param {storage.IGetSysFSRequestBody} message GetSysFSRequestBody message or plain object to encode
|
|
679
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
680
|
+
* @returns {$protobuf.Writer} Writer
|
|
681
|
+
*/
|
|
682
|
+
GetSysFSRequestBody.encode = function encode(message, writer) {
|
|
683
|
+
if (!writer)
|
|
684
|
+
writer = $Writer.create();
|
|
685
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
686
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
|
|
687
|
+
if (message.path != null && Object.hasOwnProperty.call(message, "path"))
|
|
688
|
+
$root.common.StringValue.encode(message.path, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
689
|
+
return writer;
|
|
690
|
+
};
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* Encodes the specified GetSysFSRequestBody message, length delimited. Does not implicitly {@link storage.GetSysFSRequestBody.verify|verify} messages.
|
|
694
|
+
* @function encodeDelimited
|
|
695
|
+
* @memberof storage.GetSysFSRequestBody
|
|
696
|
+
* @static
|
|
697
|
+
* @param {storage.IGetSysFSRequestBody} message GetSysFSRequestBody message or plain object to encode
|
|
698
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
699
|
+
* @returns {$protobuf.Writer} Writer
|
|
700
|
+
*/
|
|
701
|
+
GetSysFSRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
|
|
702
|
+
return this.encode(message, writer).ldelim();
|
|
703
|
+
};
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* Decodes a GetSysFSRequestBody message from the specified reader or buffer.
|
|
707
|
+
* @function decode
|
|
708
|
+
* @memberof storage.GetSysFSRequestBody
|
|
709
|
+
* @static
|
|
710
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
711
|
+
* @param {number} [length] Message length if known beforehand
|
|
712
|
+
* @returns {storage.GetSysFSRequestBody} GetSysFSRequestBody
|
|
713
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
714
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
715
|
+
*/
|
|
716
|
+
GetSysFSRequestBody.decode = function decode(reader, length) {
|
|
717
|
+
if (!(reader instanceof $Reader))
|
|
718
|
+
reader = $Reader.create(reader);
|
|
719
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.storage.GetSysFSRequestBody();
|
|
720
|
+
while (reader.pos < end) {
|
|
721
|
+
var tag = reader.uint32();
|
|
722
|
+
switch (tag >>> 3) {
|
|
723
|
+
case 1:
|
|
724
|
+
message.type = reader.string();
|
|
725
|
+
break;
|
|
726
|
+
case 2:
|
|
727
|
+
message.path = $root.common.StringValue.decode(reader, reader.uint32());
|
|
728
|
+
break;
|
|
729
|
+
default:
|
|
730
|
+
reader.skipType(tag & 7);
|
|
731
|
+
break;
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
return message;
|
|
735
|
+
};
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* Decodes a GetSysFSRequestBody message from the specified reader or buffer, length delimited.
|
|
739
|
+
* @function decodeDelimited
|
|
740
|
+
* @memberof storage.GetSysFSRequestBody
|
|
741
|
+
* @static
|
|
742
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
743
|
+
* @returns {storage.GetSysFSRequestBody} GetSysFSRequestBody
|
|
744
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
745
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
746
|
+
*/
|
|
747
|
+
GetSysFSRequestBody.decodeDelimited = function decodeDelimited(reader) {
|
|
748
|
+
if (!(reader instanceof $Reader))
|
|
749
|
+
reader = new $Reader(reader);
|
|
750
|
+
return this.decode(reader, reader.uint32());
|
|
751
|
+
};
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
* Verifies a GetSysFSRequestBody message.
|
|
755
|
+
* @function verify
|
|
756
|
+
* @memberof storage.GetSysFSRequestBody
|
|
757
|
+
* @static
|
|
758
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
759
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
760
|
+
*/
|
|
761
|
+
GetSysFSRequestBody.verify = function verify(message) {
|
|
762
|
+
if (typeof message !== "object" || message === null)
|
|
763
|
+
return "object expected";
|
|
764
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
765
|
+
if (!$util.isString(message.type))
|
|
766
|
+
return "type: string expected";
|
|
767
|
+
if (message.path != null && message.hasOwnProperty("path")) {
|
|
768
|
+
var error = $root.common.StringValue.verify(message.path);
|
|
769
|
+
if (error)
|
|
770
|
+
return "path." + error;
|
|
771
|
+
}
|
|
772
|
+
return null;
|
|
773
|
+
};
|
|
774
|
+
|
|
775
|
+
/**
|
|
776
|
+
* Creates a GetSysFSRequestBody message from a plain object. Also converts values to their respective internal types.
|
|
777
|
+
* @function fromObject
|
|
778
|
+
* @memberof storage.GetSysFSRequestBody
|
|
779
|
+
* @static
|
|
780
|
+
* @param {Object.<string,*>} object Plain object
|
|
781
|
+
* @returns {storage.GetSysFSRequestBody} GetSysFSRequestBody
|
|
782
|
+
*/
|
|
783
|
+
GetSysFSRequestBody.fromObject = function fromObject(object) {
|
|
784
|
+
if (object instanceof $root.storage.GetSysFSRequestBody)
|
|
785
|
+
return object;
|
|
786
|
+
var message = new $root.storage.GetSysFSRequestBody();
|
|
787
|
+
if (object.type != null)
|
|
788
|
+
message.type = String(object.type);
|
|
789
|
+
if (object.path != null) {
|
|
790
|
+
if (typeof object.path !== "object")
|
|
791
|
+
throw TypeError(".storage.GetSysFSRequestBody.path: object expected");
|
|
792
|
+
message.path = $root.common.StringValue.fromObject(object.path);
|
|
793
|
+
}
|
|
794
|
+
return message;
|
|
795
|
+
};
|
|
796
|
+
|
|
797
|
+
/**
|
|
798
|
+
* Creates a plain object from a GetSysFSRequestBody message. Also converts values to other types if specified.
|
|
799
|
+
* @function toObject
|
|
800
|
+
* @memberof storage.GetSysFSRequestBody
|
|
801
|
+
* @static
|
|
802
|
+
* @param {storage.GetSysFSRequestBody} message GetSysFSRequestBody
|
|
803
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
804
|
+
* @returns {Object.<string,*>} Plain object
|
|
805
|
+
*/
|
|
806
|
+
GetSysFSRequestBody.toObject = function toObject(message, options) {
|
|
807
|
+
if (!options)
|
|
808
|
+
options = {};
|
|
809
|
+
var object = {};
|
|
810
|
+
if (options.defaults) {
|
|
811
|
+
object.type = "";
|
|
812
|
+
object.path = null;
|
|
813
|
+
}
|
|
814
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
815
|
+
object.type = message.type;
|
|
816
|
+
if (message.path != null && message.hasOwnProperty("path"))
|
|
817
|
+
object.path = $root.common.StringValue.toObject(message.path, options);
|
|
818
|
+
return object;
|
|
819
|
+
};
|
|
820
|
+
|
|
821
|
+
/**
|
|
822
|
+
* Converts this GetSysFSRequestBody to JSON.
|
|
823
|
+
* @function toJSON
|
|
824
|
+
* @memberof storage.GetSysFSRequestBody
|
|
825
|
+
* @instance
|
|
826
|
+
* @returns {Object.<string,*>} JSON object
|
|
827
|
+
*/
|
|
828
|
+
GetSysFSRequestBody.prototype.toJSON = function toJSON() {
|
|
829
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
830
|
+
};
|
|
831
|
+
|
|
832
|
+
return GetSysFSRequestBody;
|
|
833
|
+
})();
|
|
834
|
+
|
|
835
|
+
return storage;
|
|
836
|
+
})();
|
|
837
|
+
|
|
838
|
+
$root.common = (function() {
|
|
839
|
+
|
|
840
|
+
/**
|
|
841
|
+
* Namespace common.
|
|
842
|
+
* @exports common
|
|
843
|
+
* @namespace
|
|
844
|
+
*/
|
|
845
|
+
var common = {};
|
|
846
|
+
|
|
847
|
+
common.ObjectReference = (function() {
|
|
848
|
+
|
|
849
|
+
/**
|
|
850
|
+
* Properties of an ObjectReference.
|
|
851
|
+
* @memberof common
|
|
852
|
+
* @interface IObjectReference
|
|
853
|
+
* @property {string|null} [objType] ObjectReference objType
|
|
854
|
+
* @property {Array.<string>|null} [path] ObjectReference path
|
|
855
|
+
*/
|
|
856
|
+
|
|
857
|
+
/**
|
|
858
|
+
* Constructs a new ObjectReference.
|
|
859
|
+
* @memberof common
|
|
860
|
+
* @classdesc Represents an ObjectReference.
|
|
861
|
+
* @implements IObjectReference
|
|
862
|
+
* @constructor
|
|
863
|
+
* @param {common.IObjectReference=} [properties] Properties to set
|
|
864
|
+
*/
|
|
865
|
+
function ObjectReference(properties) {
|
|
866
|
+
this.path = [];
|
|
867
|
+
if (properties)
|
|
868
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
869
|
+
if (properties[keys[i]] != null)
|
|
870
|
+
this[keys[i]] = properties[keys[i]];
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
/**
|
|
874
|
+
* ObjectReference objType.
|
|
875
|
+
* @member {string} objType
|
|
876
|
+
* @memberof common.ObjectReference
|
|
877
|
+
* @instance
|
|
878
|
+
*/
|
|
879
|
+
ObjectReference.prototype.objType = "";
|
|
880
|
+
|
|
881
|
+
/**
|
|
882
|
+
* ObjectReference path.
|
|
883
|
+
* @member {Array.<string>} path
|
|
884
|
+
* @memberof common.ObjectReference
|
|
885
|
+
* @instance
|
|
886
|
+
*/
|
|
887
|
+
ObjectReference.prototype.path = $util.emptyArray;
|
|
888
|
+
|
|
889
|
+
/**
|
|
890
|
+
* Creates a new ObjectReference instance using the specified properties.
|
|
891
|
+
* @function create
|
|
892
|
+
* @memberof common.ObjectReference
|
|
893
|
+
* @static
|
|
894
|
+
* @param {common.IObjectReference=} [properties] Properties to set
|
|
895
|
+
* @returns {common.ObjectReference} ObjectReference instance
|
|
896
|
+
*/
|
|
897
|
+
ObjectReference.create = function create(properties) {
|
|
898
|
+
return new ObjectReference(properties);
|
|
899
|
+
};
|
|
900
|
+
|
|
901
|
+
/**
|
|
902
|
+
* Encodes the specified ObjectReference message. Does not implicitly {@link common.ObjectReference.verify|verify} messages.
|
|
903
|
+
* @function encode
|
|
904
|
+
* @memberof common.ObjectReference
|
|
905
|
+
* @static
|
|
906
|
+
* @param {common.IObjectReference} message ObjectReference message or plain object to encode
|
|
907
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
908
|
+
* @returns {$protobuf.Writer} Writer
|
|
909
|
+
*/
|
|
910
|
+
ObjectReference.encode = function encode(message, writer) {
|
|
911
|
+
if (!writer)
|
|
912
|
+
writer = $Writer.create();
|
|
913
|
+
if (message.objType != null && Object.hasOwnProperty.call(message, "objType"))
|
|
914
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.objType);
|
|
915
|
+
if (message.path != null && message.path.length)
|
|
916
|
+
for (var i = 0; i < message.path.length; ++i)
|
|
917
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.path[i]);
|
|
918
|
+
return writer;
|
|
919
|
+
};
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* Encodes the specified ObjectReference message, length delimited. Does not implicitly {@link common.ObjectReference.verify|verify} messages.
|
|
923
|
+
* @function encodeDelimited
|
|
924
|
+
* @memberof common.ObjectReference
|
|
925
|
+
* @static
|
|
926
|
+
* @param {common.IObjectReference} message ObjectReference message or plain object to encode
|
|
927
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
928
|
+
* @returns {$protobuf.Writer} Writer
|
|
929
|
+
*/
|
|
930
|
+
ObjectReference.encodeDelimited = function encodeDelimited(message, writer) {
|
|
931
|
+
return this.encode(message, writer).ldelim();
|
|
932
|
+
};
|
|
933
|
+
|
|
934
|
+
/**
|
|
935
|
+
* Decodes an ObjectReference message from the specified reader or buffer.
|
|
936
|
+
* @function decode
|
|
937
|
+
* @memberof common.ObjectReference
|
|
938
|
+
* @static
|
|
939
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
940
|
+
* @param {number} [length] Message length if known beforehand
|
|
941
|
+
* @returns {common.ObjectReference} ObjectReference
|
|
942
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
943
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
944
|
+
*/
|
|
945
|
+
ObjectReference.decode = function decode(reader, length) {
|
|
946
|
+
if (!(reader instanceof $Reader))
|
|
947
|
+
reader = $Reader.create(reader);
|
|
948
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.ObjectReference();
|
|
949
|
+
while (reader.pos < end) {
|
|
950
|
+
var tag = reader.uint32();
|
|
951
|
+
switch (tag >>> 3) {
|
|
952
|
+
case 1:
|
|
953
|
+
message.objType = reader.string();
|
|
954
|
+
break;
|
|
955
|
+
case 2:
|
|
956
|
+
if (!(message.path && message.path.length))
|
|
957
|
+
message.path = [];
|
|
958
|
+
message.path.push(reader.string());
|
|
959
|
+
break;
|
|
960
|
+
default:
|
|
961
|
+
reader.skipType(tag & 7);
|
|
962
|
+
break;
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
return message;
|
|
966
|
+
};
|
|
967
|
+
|
|
968
|
+
/**
|
|
969
|
+
* Decodes an ObjectReference message from the specified reader or buffer, length delimited.
|
|
970
|
+
* @function decodeDelimited
|
|
971
|
+
* @memberof common.ObjectReference
|
|
972
|
+
* @static
|
|
973
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
974
|
+
* @returns {common.ObjectReference} ObjectReference
|
|
975
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
976
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
977
|
+
*/
|
|
978
|
+
ObjectReference.decodeDelimited = function decodeDelimited(reader) {
|
|
979
|
+
if (!(reader instanceof $Reader))
|
|
980
|
+
reader = new $Reader(reader);
|
|
981
|
+
return this.decode(reader, reader.uint32());
|
|
982
|
+
};
|
|
983
|
+
|
|
984
|
+
/**
|
|
985
|
+
* Verifies an ObjectReference message.
|
|
986
|
+
* @function verify
|
|
987
|
+
* @memberof common.ObjectReference
|
|
988
|
+
* @static
|
|
989
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
990
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
991
|
+
*/
|
|
992
|
+
ObjectReference.verify = function verify(message) {
|
|
993
|
+
if (typeof message !== "object" || message === null)
|
|
994
|
+
return "object expected";
|
|
995
|
+
if (message.objType != null && message.hasOwnProperty("objType"))
|
|
996
|
+
if (!$util.isString(message.objType))
|
|
997
|
+
return "objType: string expected";
|
|
998
|
+
if (message.path != null && message.hasOwnProperty("path")) {
|
|
999
|
+
if (!Array.isArray(message.path))
|
|
1000
|
+
return "path: array expected";
|
|
1001
|
+
for (var i = 0; i < message.path.length; ++i)
|
|
1002
|
+
if (!$util.isString(message.path[i]))
|
|
1003
|
+
return "path: string[] expected";
|
|
1004
|
+
}
|
|
1005
|
+
return null;
|
|
1006
|
+
};
|
|
1007
|
+
|
|
1008
|
+
/**
|
|
1009
|
+
* Creates an ObjectReference message from a plain object. Also converts values to their respective internal types.
|
|
1010
|
+
* @function fromObject
|
|
1011
|
+
* @memberof common.ObjectReference
|
|
1012
|
+
* @static
|
|
1013
|
+
* @param {Object.<string,*>} object Plain object
|
|
1014
|
+
* @returns {common.ObjectReference} ObjectReference
|
|
1015
|
+
*/
|
|
1016
|
+
ObjectReference.fromObject = function fromObject(object) {
|
|
1017
|
+
if (object instanceof $root.common.ObjectReference)
|
|
1018
|
+
return object;
|
|
1019
|
+
var message = new $root.common.ObjectReference();
|
|
1020
|
+
if (object.objType != null)
|
|
1021
|
+
message.objType = String(object.objType);
|
|
1022
|
+
if (object.path) {
|
|
1023
|
+
if (!Array.isArray(object.path))
|
|
1024
|
+
throw TypeError(".common.ObjectReference.path: array expected");
|
|
1025
|
+
message.path = [];
|
|
1026
|
+
for (var i = 0; i < object.path.length; ++i)
|
|
1027
|
+
message.path[i] = String(object.path[i]);
|
|
1028
|
+
}
|
|
1029
|
+
return message;
|
|
1030
|
+
};
|
|
1031
|
+
|
|
1032
|
+
/**
|
|
1033
|
+
* Creates a plain object from an ObjectReference message. Also converts values to other types if specified.
|
|
1034
|
+
* @function toObject
|
|
1035
|
+
* @memberof common.ObjectReference
|
|
1036
|
+
* @static
|
|
1037
|
+
* @param {common.ObjectReference} message ObjectReference
|
|
1038
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1039
|
+
* @returns {Object.<string,*>} Plain object
|
|
1040
|
+
*/
|
|
1041
|
+
ObjectReference.toObject = function toObject(message, options) {
|
|
1042
|
+
if (!options)
|
|
1043
|
+
options = {};
|
|
1044
|
+
var object = {};
|
|
1045
|
+
if (options.arrays || options.defaults)
|
|
1046
|
+
object.path = [];
|
|
1047
|
+
if (options.defaults)
|
|
1048
|
+
object.objType = "";
|
|
1049
|
+
if (message.objType != null && message.hasOwnProperty("objType"))
|
|
1050
|
+
object.objType = message.objType;
|
|
1051
|
+
if (message.path && message.path.length) {
|
|
1052
|
+
object.path = [];
|
|
1053
|
+
for (var j = 0; j < message.path.length; ++j)
|
|
1054
|
+
object.path[j] = message.path[j];
|
|
1055
|
+
}
|
|
1056
|
+
return object;
|
|
1057
|
+
};
|
|
1058
|
+
|
|
1059
|
+
/**
|
|
1060
|
+
* Converts this ObjectReference to JSON.
|
|
1061
|
+
* @function toJSON
|
|
1062
|
+
* @memberof common.ObjectReference
|
|
1063
|
+
* @instance
|
|
1064
|
+
* @returns {Object.<string,*>} JSON object
|
|
1065
|
+
*/
|
|
1066
|
+
ObjectReference.prototype.toJSON = function toJSON() {
|
|
1067
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1068
|
+
};
|
|
1069
|
+
|
|
1070
|
+
return ObjectReference;
|
|
1071
|
+
})();
|
|
1072
|
+
|
|
1073
|
+
common.BooleanValue = (function() {
|
|
1074
|
+
|
|
1075
|
+
/**
|
|
1076
|
+
* Properties of a BooleanValue.
|
|
1077
|
+
* @memberof common
|
|
1078
|
+
* @interface IBooleanValue
|
|
1079
|
+
* @property {boolean|null} [value] BooleanValue value
|
|
1080
|
+
*/
|
|
1081
|
+
|
|
1082
|
+
/**
|
|
1083
|
+
* Constructs a new BooleanValue.
|
|
1084
|
+
* @memberof common
|
|
1085
|
+
* @classdesc Represents a BooleanValue.
|
|
1086
|
+
* @implements IBooleanValue
|
|
1087
|
+
* @constructor
|
|
1088
|
+
* @param {common.IBooleanValue=} [properties] Properties to set
|
|
1089
|
+
*/
|
|
1090
|
+
function BooleanValue(properties) {
|
|
1091
|
+
if (properties)
|
|
1092
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1093
|
+
if (properties[keys[i]] != null)
|
|
1094
|
+
this[keys[i]] = properties[keys[i]];
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
/**
|
|
1098
|
+
* BooleanValue value.
|
|
1099
|
+
* @member {boolean} value
|
|
1100
|
+
* @memberof common.BooleanValue
|
|
1101
|
+
* @instance
|
|
1102
|
+
*/
|
|
1103
|
+
BooleanValue.prototype.value = false;
|
|
1104
|
+
|
|
1105
|
+
/**
|
|
1106
|
+
* Creates a new BooleanValue instance using the specified properties.
|
|
1107
|
+
* @function create
|
|
1108
|
+
* @memberof common.BooleanValue
|
|
1109
|
+
* @static
|
|
1110
|
+
* @param {common.IBooleanValue=} [properties] Properties to set
|
|
1111
|
+
* @returns {common.BooleanValue} BooleanValue instance
|
|
1112
|
+
*/
|
|
1113
|
+
BooleanValue.create = function create(properties) {
|
|
1114
|
+
return new BooleanValue(properties);
|
|
1115
|
+
};
|
|
1116
|
+
|
|
1117
|
+
/**
|
|
1118
|
+
* Encodes the specified BooleanValue message. Does not implicitly {@link common.BooleanValue.verify|verify} messages.
|
|
1119
|
+
* @function encode
|
|
1120
|
+
* @memberof common.BooleanValue
|
|
1121
|
+
* @static
|
|
1122
|
+
* @param {common.IBooleanValue} message BooleanValue message or plain object to encode
|
|
1123
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1124
|
+
* @returns {$protobuf.Writer} Writer
|
|
1125
|
+
*/
|
|
1126
|
+
BooleanValue.encode = function encode(message, writer) {
|
|
1127
|
+
if (!writer)
|
|
1128
|
+
writer = $Writer.create();
|
|
1129
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
1130
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.value);
|
|
1131
|
+
return writer;
|
|
1132
|
+
};
|
|
1133
|
+
|
|
1134
|
+
/**
|
|
1135
|
+
* Encodes the specified BooleanValue message, length delimited. Does not implicitly {@link common.BooleanValue.verify|verify} messages.
|
|
1136
|
+
* @function encodeDelimited
|
|
1137
|
+
* @memberof common.BooleanValue
|
|
1138
|
+
* @static
|
|
1139
|
+
* @param {common.IBooleanValue} message BooleanValue message or plain object to encode
|
|
1140
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1141
|
+
* @returns {$protobuf.Writer} Writer
|
|
1142
|
+
*/
|
|
1143
|
+
BooleanValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1144
|
+
return this.encode(message, writer).ldelim();
|
|
1145
|
+
};
|
|
1146
|
+
|
|
1147
|
+
/**
|
|
1148
|
+
* Decodes a BooleanValue message from the specified reader or buffer.
|
|
1149
|
+
* @function decode
|
|
1150
|
+
* @memberof common.BooleanValue
|
|
1151
|
+
* @static
|
|
1152
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1153
|
+
* @param {number} [length] Message length if known beforehand
|
|
1154
|
+
* @returns {common.BooleanValue} BooleanValue
|
|
1155
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1156
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1157
|
+
*/
|
|
1158
|
+
BooleanValue.decode = function decode(reader, length) {
|
|
1159
|
+
if (!(reader instanceof $Reader))
|
|
1160
|
+
reader = $Reader.create(reader);
|
|
1161
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.BooleanValue();
|
|
1162
|
+
while (reader.pos < end) {
|
|
1163
|
+
var tag = reader.uint32();
|
|
1164
|
+
switch (tag >>> 3) {
|
|
1165
|
+
case 1:
|
|
1166
|
+
message.value = reader.bool();
|
|
1167
|
+
break;
|
|
1168
|
+
default:
|
|
1169
|
+
reader.skipType(tag & 7);
|
|
1170
|
+
break;
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
return message;
|
|
1174
|
+
};
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
* Decodes a BooleanValue message from the specified reader or buffer, length delimited.
|
|
1178
|
+
* @function decodeDelimited
|
|
1179
|
+
* @memberof common.BooleanValue
|
|
1180
|
+
* @static
|
|
1181
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1182
|
+
* @returns {common.BooleanValue} BooleanValue
|
|
1183
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1184
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1185
|
+
*/
|
|
1186
|
+
BooleanValue.decodeDelimited = function decodeDelimited(reader) {
|
|
1187
|
+
if (!(reader instanceof $Reader))
|
|
1188
|
+
reader = new $Reader(reader);
|
|
1189
|
+
return this.decode(reader, reader.uint32());
|
|
1190
|
+
};
|
|
1191
|
+
|
|
1192
|
+
/**
|
|
1193
|
+
* Verifies a BooleanValue message.
|
|
1194
|
+
* @function verify
|
|
1195
|
+
* @memberof common.BooleanValue
|
|
1196
|
+
* @static
|
|
1197
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
1198
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1199
|
+
*/
|
|
1200
|
+
BooleanValue.verify = function verify(message) {
|
|
1201
|
+
if (typeof message !== "object" || message === null)
|
|
1202
|
+
return "object expected";
|
|
1203
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
1204
|
+
if (typeof message.value !== "boolean")
|
|
1205
|
+
return "value: boolean expected";
|
|
1206
|
+
return null;
|
|
1207
|
+
};
|
|
1208
|
+
|
|
1209
|
+
/**
|
|
1210
|
+
* Creates a BooleanValue message from a plain object. Also converts values to their respective internal types.
|
|
1211
|
+
* @function fromObject
|
|
1212
|
+
* @memberof common.BooleanValue
|
|
1213
|
+
* @static
|
|
1214
|
+
* @param {Object.<string,*>} object Plain object
|
|
1215
|
+
* @returns {common.BooleanValue} BooleanValue
|
|
1216
|
+
*/
|
|
1217
|
+
BooleanValue.fromObject = function fromObject(object) {
|
|
1218
|
+
if (object instanceof $root.common.BooleanValue)
|
|
1219
|
+
return object;
|
|
1220
|
+
var message = new $root.common.BooleanValue();
|
|
1221
|
+
if (object.value != null)
|
|
1222
|
+
message.value = Boolean(object.value);
|
|
1223
|
+
return message;
|
|
1224
|
+
};
|
|
1225
|
+
|
|
1226
|
+
/**
|
|
1227
|
+
* Creates a plain object from a BooleanValue message. Also converts values to other types if specified.
|
|
1228
|
+
* @function toObject
|
|
1229
|
+
* @memberof common.BooleanValue
|
|
1230
|
+
* @static
|
|
1231
|
+
* @param {common.BooleanValue} message BooleanValue
|
|
1232
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1233
|
+
* @returns {Object.<string,*>} Plain object
|
|
1234
|
+
*/
|
|
1235
|
+
BooleanValue.toObject = function toObject(message, options) {
|
|
1236
|
+
if (!options)
|
|
1237
|
+
options = {};
|
|
1238
|
+
var object = {};
|
|
1239
|
+
if (options.defaults)
|
|
1240
|
+
object.value = false;
|
|
1241
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
1242
|
+
object.value = message.value;
|
|
1243
|
+
return object;
|
|
1244
|
+
};
|
|
1245
|
+
|
|
1246
|
+
/**
|
|
1247
|
+
* Converts this BooleanValue to JSON.
|
|
1248
|
+
* @function toJSON
|
|
1249
|
+
* @memberof common.BooleanValue
|
|
1250
|
+
* @instance
|
|
1251
|
+
* @returns {Object.<string,*>} JSON object
|
|
1252
|
+
*/
|
|
1253
|
+
BooleanValue.prototype.toJSON = function toJSON() {
|
|
1254
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1255
|
+
};
|
|
1256
|
+
|
|
1257
|
+
return BooleanValue;
|
|
1258
|
+
})();
|
|
1259
|
+
|
|
1260
|
+
common.StringArrayValue = (function() {
|
|
1261
|
+
|
|
1262
|
+
/**
|
|
1263
|
+
* Properties of a StringArrayValue.
|
|
1264
|
+
* @memberof common
|
|
1265
|
+
* @interface IStringArrayValue
|
|
1266
|
+
* @property {Array.<string>|null} [values] StringArrayValue values
|
|
1267
|
+
*/
|
|
1268
|
+
|
|
1269
|
+
/**
|
|
1270
|
+
* Constructs a new StringArrayValue.
|
|
1271
|
+
* @memberof common
|
|
1272
|
+
* @classdesc Represents a StringArrayValue.
|
|
1273
|
+
* @implements IStringArrayValue
|
|
1274
|
+
* @constructor
|
|
1275
|
+
* @param {common.IStringArrayValue=} [properties] Properties to set
|
|
1276
|
+
*/
|
|
1277
|
+
function StringArrayValue(properties) {
|
|
1278
|
+
this.values = [];
|
|
1279
|
+
if (properties)
|
|
1280
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1281
|
+
if (properties[keys[i]] != null)
|
|
1282
|
+
this[keys[i]] = properties[keys[i]];
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
/**
|
|
1286
|
+
* StringArrayValue values.
|
|
1287
|
+
* @member {Array.<string>} values
|
|
1288
|
+
* @memberof common.StringArrayValue
|
|
1289
|
+
* @instance
|
|
1290
|
+
*/
|
|
1291
|
+
StringArrayValue.prototype.values = $util.emptyArray;
|
|
1292
|
+
|
|
1293
|
+
/**
|
|
1294
|
+
* Creates a new StringArrayValue instance using the specified properties.
|
|
1295
|
+
* @function create
|
|
1296
|
+
* @memberof common.StringArrayValue
|
|
1297
|
+
* @static
|
|
1298
|
+
* @param {common.IStringArrayValue=} [properties] Properties to set
|
|
1299
|
+
* @returns {common.StringArrayValue} StringArrayValue instance
|
|
1300
|
+
*/
|
|
1301
|
+
StringArrayValue.create = function create(properties) {
|
|
1302
|
+
return new StringArrayValue(properties);
|
|
1303
|
+
};
|
|
1304
|
+
|
|
1305
|
+
/**
|
|
1306
|
+
* Encodes the specified StringArrayValue message. Does not implicitly {@link common.StringArrayValue.verify|verify} messages.
|
|
1307
|
+
* @function encode
|
|
1308
|
+
* @memberof common.StringArrayValue
|
|
1309
|
+
* @static
|
|
1310
|
+
* @param {common.IStringArrayValue} message StringArrayValue message or plain object to encode
|
|
1311
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1312
|
+
* @returns {$protobuf.Writer} Writer
|
|
1313
|
+
*/
|
|
1314
|
+
StringArrayValue.encode = function encode(message, writer) {
|
|
1315
|
+
if (!writer)
|
|
1316
|
+
writer = $Writer.create();
|
|
1317
|
+
if (message.values != null && message.values.length)
|
|
1318
|
+
for (var i = 0; i < message.values.length; ++i)
|
|
1319
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]);
|
|
1320
|
+
return writer;
|
|
1321
|
+
};
|
|
1322
|
+
|
|
1323
|
+
/**
|
|
1324
|
+
* Encodes the specified StringArrayValue message, length delimited. Does not implicitly {@link common.StringArrayValue.verify|verify} messages.
|
|
1325
|
+
* @function encodeDelimited
|
|
1326
|
+
* @memberof common.StringArrayValue
|
|
1327
|
+
* @static
|
|
1328
|
+
* @param {common.IStringArrayValue} message StringArrayValue message or plain object to encode
|
|
1329
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1330
|
+
* @returns {$protobuf.Writer} Writer
|
|
1331
|
+
*/
|
|
1332
|
+
StringArrayValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1333
|
+
return this.encode(message, writer).ldelim();
|
|
1334
|
+
};
|
|
1335
|
+
|
|
1336
|
+
/**
|
|
1337
|
+
* Decodes a StringArrayValue message from the specified reader or buffer.
|
|
1338
|
+
* @function decode
|
|
1339
|
+
* @memberof common.StringArrayValue
|
|
1340
|
+
* @static
|
|
1341
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1342
|
+
* @param {number} [length] Message length if known beforehand
|
|
1343
|
+
* @returns {common.StringArrayValue} StringArrayValue
|
|
1344
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1345
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1346
|
+
*/
|
|
1347
|
+
StringArrayValue.decode = function decode(reader, length) {
|
|
1348
|
+
if (!(reader instanceof $Reader))
|
|
1349
|
+
reader = $Reader.create(reader);
|
|
1350
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.StringArrayValue();
|
|
1351
|
+
while (reader.pos < end) {
|
|
1352
|
+
var tag = reader.uint32();
|
|
1353
|
+
switch (tag >>> 3) {
|
|
1354
|
+
case 1:
|
|
1355
|
+
if (!(message.values && message.values.length))
|
|
1356
|
+
message.values = [];
|
|
1357
|
+
message.values.push(reader.string());
|
|
1358
|
+
break;
|
|
1359
|
+
default:
|
|
1360
|
+
reader.skipType(tag & 7);
|
|
1361
|
+
break;
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
return message;
|
|
1365
|
+
};
|
|
1366
|
+
|
|
1367
|
+
/**
|
|
1368
|
+
* Decodes a StringArrayValue message from the specified reader or buffer, length delimited.
|
|
1369
|
+
* @function decodeDelimited
|
|
1370
|
+
* @memberof common.StringArrayValue
|
|
1371
|
+
* @static
|
|
1372
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1373
|
+
* @returns {common.StringArrayValue} StringArrayValue
|
|
1374
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1375
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1376
|
+
*/
|
|
1377
|
+
StringArrayValue.decodeDelimited = function decodeDelimited(reader) {
|
|
1378
|
+
if (!(reader instanceof $Reader))
|
|
1379
|
+
reader = new $Reader(reader);
|
|
1380
|
+
return this.decode(reader, reader.uint32());
|
|
1381
|
+
};
|
|
1382
|
+
|
|
1383
|
+
/**
|
|
1384
|
+
* Verifies a StringArrayValue message.
|
|
1385
|
+
* @function verify
|
|
1386
|
+
* @memberof common.StringArrayValue
|
|
1387
|
+
* @static
|
|
1388
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
1389
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1390
|
+
*/
|
|
1391
|
+
StringArrayValue.verify = function verify(message) {
|
|
1392
|
+
if (typeof message !== "object" || message === null)
|
|
1393
|
+
return "object expected";
|
|
1394
|
+
if (message.values != null && message.hasOwnProperty("values")) {
|
|
1395
|
+
if (!Array.isArray(message.values))
|
|
1396
|
+
return "values: array expected";
|
|
1397
|
+
for (var i = 0; i < message.values.length; ++i)
|
|
1398
|
+
if (!$util.isString(message.values[i]))
|
|
1399
|
+
return "values: string[] expected";
|
|
1400
|
+
}
|
|
1401
|
+
return null;
|
|
1402
|
+
};
|
|
1403
|
+
|
|
1404
|
+
/**
|
|
1405
|
+
* Creates a StringArrayValue message from a plain object. Also converts values to their respective internal types.
|
|
1406
|
+
* @function fromObject
|
|
1407
|
+
* @memberof common.StringArrayValue
|
|
1408
|
+
* @static
|
|
1409
|
+
* @param {Object.<string,*>} object Plain object
|
|
1410
|
+
* @returns {common.StringArrayValue} StringArrayValue
|
|
1411
|
+
*/
|
|
1412
|
+
StringArrayValue.fromObject = function fromObject(object) {
|
|
1413
|
+
if (object instanceof $root.common.StringArrayValue)
|
|
1414
|
+
return object;
|
|
1415
|
+
var message = new $root.common.StringArrayValue();
|
|
1416
|
+
if (object.values) {
|
|
1417
|
+
if (!Array.isArray(object.values))
|
|
1418
|
+
throw TypeError(".common.StringArrayValue.values: array expected");
|
|
1419
|
+
message.values = [];
|
|
1420
|
+
for (var i = 0; i < object.values.length; ++i)
|
|
1421
|
+
message.values[i] = String(object.values[i]);
|
|
1422
|
+
}
|
|
1423
|
+
return message;
|
|
1424
|
+
};
|
|
1425
|
+
|
|
1426
|
+
/**
|
|
1427
|
+
* Creates a plain object from a StringArrayValue message. Also converts values to other types if specified.
|
|
1428
|
+
* @function toObject
|
|
1429
|
+
* @memberof common.StringArrayValue
|
|
1430
|
+
* @static
|
|
1431
|
+
* @param {common.StringArrayValue} message StringArrayValue
|
|
1432
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1433
|
+
* @returns {Object.<string,*>} Plain object
|
|
1434
|
+
*/
|
|
1435
|
+
StringArrayValue.toObject = function toObject(message, options) {
|
|
1436
|
+
if (!options)
|
|
1437
|
+
options = {};
|
|
1438
|
+
var object = {};
|
|
1439
|
+
if (options.arrays || options.defaults)
|
|
1440
|
+
object.values = [];
|
|
1441
|
+
if (message.values && message.values.length) {
|
|
1442
|
+
object.values = [];
|
|
1443
|
+
for (var j = 0; j < message.values.length; ++j)
|
|
1444
|
+
object.values[j] = message.values[j];
|
|
1445
|
+
}
|
|
1446
|
+
return object;
|
|
1447
|
+
};
|
|
1448
|
+
|
|
1449
|
+
/**
|
|
1450
|
+
* Converts this StringArrayValue to JSON.
|
|
1451
|
+
* @function toJSON
|
|
1452
|
+
* @memberof common.StringArrayValue
|
|
1453
|
+
* @instance
|
|
1454
|
+
* @returns {Object.<string,*>} JSON object
|
|
1455
|
+
*/
|
|
1456
|
+
StringArrayValue.prototype.toJSON = function toJSON() {
|
|
1457
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1458
|
+
};
|
|
1459
|
+
|
|
1460
|
+
return StringArrayValue;
|
|
1461
|
+
})();
|
|
1462
|
+
|
|
1463
|
+
common.UInt64Value = (function() {
|
|
1464
|
+
|
|
1465
|
+
/**
|
|
1466
|
+
* Properties of a UInt64Value.
|
|
1467
|
+
* @memberof common
|
|
1468
|
+
* @interface IUInt64Value
|
|
1469
|
+
* @property {number|Long|null} [value] UInt64Value value
|
|
1470
|
+
*/
|
|
1471
|
+
|
|
1472
|
+
/**
|
|
1473
|
+
* Constructs a new UInt64Value.
|
|
1474
|
+
* @memberof common
|
|
1475
|
+
* @classdesc Represents a UInt64Value.
|
|
1476
|
+
* @implements IUInt64Value
|
|
1477
|
+
* @constructor
|
|
1478
|
+
* @param {common.IUInt64Value=} [properties] Properties to set
|
|
1479
|
+
*/
|
|
1480
|
+
function UInt64Value(properties) {
|
|
1481
|
+
if (properties)
|
|
1482
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1483
|
+
if (properties[keys[i]] != null)
|
|
1484
|
+
this[keys[i]] = properties[keys[i]];
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1487
|
+
/**
|
|
1488
|
+
* UInt64Value value.
|
|
1489
|
+
* @member {number|Long} value
|
|
1490
|
+
* @memberof common.UInt64Value
|
|
1491
|
+
* @instance
|
|
1492
|
+
*/
|
|
1493
|
+
UInt64Value.prototype.value = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
1494
|
+
|
|
1495
|
+
/**
|
|
1496
|
+
* Creates a new UInt64Value instance using the specified properties.
|
|
1497
|
+
* @function create
|
|
1498
|
+
* @memberof common.UInt64Value
|
|
1499
|
+
* @static
|
|
1500
|
+
* @param {common.IUInt64Value=} [properties] Properties to set
|
|
1501
|
+
* @returns {common.UInt64Value} UInt64Value instance
|
|
1502
|
+
*/
|
|
1503
|
+
UInt64Value.create = function create(properties) {
|
|
1504
|
+
return new UInt64Value(properties);
|
|
1505
|
+
};
|
|
1506
|
+
|
|
1507
|
+
/**
|
|
1508
|
+
* Encodes the specified UInt64Value message. Does not implicitly {@link common.UInt64Value.verify|verify} messages.
|
|
1509
|
+
* @function encode
|
|
1510
|
+
* @memberof common.UInt64Value
|
|
1511
|
+
* @static
|
|
1512
|
+
* @param {common.IUInt64Value} message UInt64Value message or plain object to encode
|
|
1513
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1514
|
+
* @returns {$protobuf.Writer} Writer
|
|
1515
|
+
*/
|
|
1516
|
+
UInt64Value.encode = function encode(message, writer) {
|
|
1517
|
+
if (!writer)
|
|
1518
|
+
writer = $Writer.create();
|
|
1519
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
1520
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.value);
|
|
1521
|
+
return writer;
|
|
1522
|
+
};
|
|
1523
|
+
|
|
1524
|
+
/**
|
|
1525
|
+
* Encodes the specified UInt64Value message, length delimited. Does not implicitly {@link common.UInt64Value.verify|verify} messages.
|
|
1526
|
+
* @function encodeDelimited
|
|
1527
|
+
* @memberof common.UInt64Value
|
|
1528
|
+
* @static
|
|
1529
|
+
* @param {common.IUInt64Value} message UInt64Value message or plain object to encode
|
|
1530
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1531
|
+
* @returns {$protobuf.Writer} Writer
|
|
1532
|
+
*/
|
|
1533
|
+
UInt64Value.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1534
|
+
return this.encode(message, writer).ldelim();
|
|
1535
|
+
};
|
|
1536
|
+
|
|
1537
|
+
/**
|
|
1538
|
+
* Decodes a UInt64Value message from the specified reader or buffer.
|
|
1539
|
+
* @function decode
|
|
1540
|
+
* @memberof common.UInt64Value
|
|
1541
|
+
* @static
|
|
1542
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1543
|
+
* @param {number} [length] Message length if known beforehand
|
|
1544
|
+
* @returns {common.UInt64Value} UInt64Value
|
|
1545
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1546
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1547
|
+
*/
|
|
1548
|
+
UInt64Value.decode = function decode(reader, length) {
|
|
1549
|
+
if (!(reader instanceof $Reader))
|
|
1550
|
+
reader = $Reader.create(reader);
|
|
1551
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.UInt64Value();
|
|
1552
|
+
while (reader.pos < end) {
|
|
1553
|
+
var tag = reader.uint32();
|
|
1554
|
+
switch (tag >>> 3) {
|
|
1555
|
+
case 1:
|
|
1556
|
+
message.value = reader.uint64();
|
|
1557
|
+
break;
|
|
1558
|
+
default:
|
|
1559
|
+
reader.skipType(tag & 7);
|
|
1560
|
+
break;
|
|
1561
|
+
}
|
|
1562
|
+
}
|
|
1563
|
+
return message;
|
|
1564
|
+
};
|
|
1565
|
+
|
|
1566
|
+
/**
|
|
1567
|
+
* Decodes a UInt64Value message from the specified reader or buffer, length delimited.
|
|
1568
|
+
* @function decodeDelimited
|
|
1569
|
+
* @memberof common.UInt64Value
|
|
1570
|
+
* @static
|
|
1571
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1572
|
+
* @returns {common.UInt64Value} UInt64Value
|
|
1573
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1574
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1575
|
+
*/
|
|
1576
|
+
UInt64Value.decodeDelimited = function decodeDelimited(reader) {
|
|
1577
|
+
if (!(reader instanceof $Reader))
|
|
1578
|
+
reader = new $Reader(reader);
|
|
1579
|
+
return this.decode(reader, reader.uint32());
|
|
1580
|
+
};
|
|
1581
|
+
|
|
1582
|
+
/**
|
|
1583
|
+
* Verifies a UInt64Value message.
|
|
1584
|
+
* @function verify
|
|
1585
|
+
* @memberof common.UInt64Value
|
|
1586
|
+
* @static
|
|
1587
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
1588
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1589
|
+
*/
|
|
1590
|
+
UInt64Value.verify = function verify(message) {
|
|
1591
|
+
if (typeof message !== "object" || message === null)
|
|
1592
|
+
return "object expected";
|
|
1593
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
1594
|
+
if (!$util.isInteger(message.value) && !(message.value && $util.isInteger(message.value.low) && $util.isInteger(message.value.high)))
|
|
1595
|
+
return "value: integer|Long expected";
|
|
1596
|
+
return null;
|
|
1597
|
+
};
|
|
1598
|
+
|
|
1599
|
+
/**
|
|
1600
|
+
* Creates a UInt64Value message from a plain object. Also converts values to their respective internal types.
|
|
1601
|
+
* @function fromObject
|
|
1602
|
+
* @memberof common.UInt64Value
|
|
1603
|
+
* @static
|
|
1604
|
+
* @param {Object.<string,*>} object Plain object
|
|
1605
|
+
* @returns {common.UInt64Value} UInt64Value
|
|
1606
|
+
*/
|
|
1607
|
+
UInt64Value.fromObject = function fromObject(object) {
|
|
1608
|
+
if (object instanceof $root.common.UInt64Value)
|
|
1609
|
+
return object;
|
|
1610
|
+
var message = new $root.common.UInt64Value();
|
|
1611
|
+
if (object.value != null)
|
|
1612
|
+
if ($util.Long)
|
|
1613
|
+
(message.value = $util.Long.fromValue(object.value)).unsigned = true;
|
|
1614
|
+
else if (typeof object.value === "string")
|
|
1615
|
+
message.value = parseInt(object.value, 10);
|
|
1616
|
+
else if (typeof object.value === "number")
|
|
1617
|
+
message.value = object.value;
|
|
1618
|
+
else if (typeof object.value === "object")
|
|
1619
|
+
message.value = new $util.LongBits(object.value.low >>> 0, object.value.high >>> 0).toNumber(true);
|
|
1620
|
+
return message;
|
|
1621
|
+
};
|
|
1622
|
+
|
|
1623
|
+
/**
|
|
1624
|
+
* Creates a plain object from a UInt64Value message. Also converts values to other types if specified.
|
|
1625
|
+
* @function toObject
|
|
1626
|
+
* @memberof common.UInt64Value
|
|
1627
|
+
* @static
|
|
1628
|
+
* @param {common.UInt64Value} message UInt64Value
|
|
1629
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1630
|
+
* @returns {Object.<string,*>} Plain object
|
|
1631
|
+
*/
|
|
1632
|
+
UInt64Value.toObject = function toObject(message, options) {
|
|
1633
|
+
if (!options)
|
|
1634
|
+
options = {};
|
|
1635
|
+
var object = {};
|
|
1636
|
+
if (options.defaults)
|
|
1637
|
+
if ($util.Long) {
|
|
1638
|
+
var long = new $util.Long(0, 0, true);
|
|
1639
|
+
object.value = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
1640
|
+
} else
|
|
1641
|
+
object.value = options.longs === String ? "0" : 0;
|
|
1642
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
1643
|
+
if (typeof message.value === "number")
|
|
1644
|
+
object.value = options.longs === String ? String(message.value) : message.value;
|
|
1645
|
+
else
|
|
1646
|
+
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;
|
|
1647
|
+
return object;
|
|
1648
|
+
};
|
|
1649
|
+
|
|
1650
|
+
/**
|
|
1651
|
+
* Converts this UInt64Value to JSON.
|
|
1652
|
+
* @function toJSON
|
|
1653
|
+
* @memberof common.UInt64Value
|
|
1654
|
+
* @instance
|
|
1655
|
+
* @returns {Object.<string,*>} JSON object
|
|
1656
|
+
*/
|
|
1657
|
+
UInt64Value.prototype.toJSON = function toJSON() {
|
|
1658
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1659
|
+
};
|
|
1660
|
+
|
|
1661
|
+
return UInt64Value;
|
|
1662
|
+
})();
|
|
1663
|
+
|
|
1664
|
+
common.UInt32Value = (function() {
|
|
1665
|
+
|
|
1666
|
+
/**
|
|
1667
|
+
* Properties of a UInt32Value.
|
|
1668
|
+
* @memberof common
|
|
1669
|
+
* @interface IUInt32Value
|
|
1670
|
+
* @property {number|null} [value] UInt32Value value
|
|
1671
|
+
*/
|
|
1672
|
+
|
|
1673
|
+
/**
|
|
1674
|
+
* Constructs a new UInt32Value.
|
|
1675
|
+
* @memberof common
|
|
1676
|
+
* @classdesc Represents a UInt32Value.
|
|
1677
|
+
* @implements IUInt32Value
|
|
1678
|
+
* @constructor
|
|
1679
|
+
* @param {common.IUInt32Value=} [properties] Properties to set
|
|
1680
|
+
*/
|
|
1681
|
+
function UInt32Value(properties) {
|
|
1682
|
+
if (properties)
|
|
1683
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1684
|
+
if (properties[keys[i]] != null)
|
|
1685
|
+
this[keys[i]] = properties[keys[i]];
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
/**
|
|
1689
|
+
* UInt32Value value.
|
|
1690
|
+
* @member {number} value
|
|
1691
|
+
* @memberof common.UInt32Value
|
|
1692
|
+
* @instance
|
|
1693
|
+
*/
|
|
1694
|
+
UInt32Value.prototype.value = 0;
|
|
1695
|
+
|
|
1696
|
+
/**
|
|
1697
|
+
* Creates a new UInt32Value instance using the specified properties.
|
|
1698
|
+
* @function create
|
|
1699
|
+
* @memberof common.UInt32Value
|
|
1700
|
+
* @static
|
|
1701
|
+
* @param {common.IUInt32Value=} [properties] Properties to set
|
|
1702
|
+
* @returns {common.UInt32Value} UInt32Value instance
|
|
1703
|
+
*/
|
|
1704
|
+
UInt32Value.create = function create(properties) {
|
|
1705
|
+
return new UInt32Value(properties);
|
|
1706
|
+
};
|
|
1707
|
+
|
|
1708
|
+
/**
|
|
1709
|
+
* Encodes the specified UInt32Value message. Does not implicitly {@link common.UInt32Value.verify|verify} messages.
|
|
1710
|
+
* @function encode
|
|
1711
|
+
* @memberof common.UInt32Value
|
|
1712
|
+
* @static
|
|
1713
|
+
* @param {common.IUInt32Value} message UInt32Value message or plain object to encode
|
|
1714
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1715
|
+
* @returns {$protobuf.Writer} Writer
|
|
1716
|
+
*/
|
|
1717
|
+
UInt32Value.encode = function encode(message, writer) {
|
|
1718
|
+
if (!writer)
|
|
1719
|
+
writer = $Writer.create();
|
|
1720
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
1721
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.value);
|
|
1722
|
+
return writer;
|
|
1723
|
+
};
|
|
1724
|
+
|
|
1725
|
+
/**
|
|
1726
|
+
* Encodes the specified UInt32Value message, length delimited. Does not implicitly {@link common.UInt32Value.verify|verify} messages.
|
|
1727
|
+
* @function encodeDelimited
|
|
1728
|
+
* @memberof common.UInt32Value
|
|
1729
|
+
* @static
|
|
1730
|
+
* @param {common.IUInt32Value} message UInt32Value message or plain object to encode
|
|
1731
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1732
|
+
* @returns {$protobuf.Writer} Writer
|
|
1733
|
+
*/
|
|
1734
|
+
UInt32Value.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1735
|
+
return this.encode(message, writer).ldelim();
|
|
1736
|
+
};
|
|
1737
|
+
|
|
1738
|
+
/**
|
|
1739
|
+
* Decodes a UInt32Value message from the specified reader or buffer.
|
|
1740
|
+
* @function decode
|
|
1741
|
+
* @memberof common.UInt32Value
|
|
1742
|
+
* @static
|
|
1743
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1744
|
+
* @param {number} [length] Message length if known beforehand
|
|
1745
|
+
* @returns {common.UInt32Value} UInt32Value
|
|
1746
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1747
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1748
|
+
*/
|
|
1749
|
+
UInt32Value.decode = function decode(reader, length) {
|
|
1750
|
+
if (!(reader instanceof $Reader))
|
|
1751
|
+
reader = $Reader.create(reader);
|
|
1752
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.UInt32Value();
|
|
1753
|
+
while (reader.pos < end) {
|
|
1754
|
+
var tag = reader.uint32();
|
|
1755
|
+
switch (tag >>> 3) {
|
|
1756
|
+
case 1:
|
|
1757
|
+
message.value = reader.uint32();
|
|
1758
|
+
break;
|
|
1759
|
+
default:
|
|
1760
|
+
reader.skipType(tag & 7);
|
|
1761
|
+
break;
|
|
1762
|
+
}
|
|
1763
|
+
}
|
|
1764
|
+
return message;
|
|
1765
|
+
};
|
|
1766
|
+
|
|
1767
|
+
/**
|
|
1768
|
+
* Decodes a UInt32Value message from the specified reader or buffer, length delimited.
|
|
1769
|
+
* @function decodeDelimited
|
|
1770
|
+
* @memberof common.UInt32Value
|
|
1771
|
+
* @static
|
|
1772
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1773
|
+
* @returns {common.UInt32Value} UInt32Value
|
|
1774
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1775
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1776
|
+
*/
|
|
1777
|
+
UInt32Value.decodeDelimited = function decodeDelimited(reader) {
|
|
1778
|
+
if (!(reader instanceof $Reader))
|
|
1779
|
+
reader = new $Reader(reader);
|
|
1780
|
+
return this.decode(reader, reader.uint32());
|
|
1781
|
+
};
|
|
1782
|
+
|
|
1783
|
+
/**
|
|
1784
|
+
* Verifies a UInt32Value message.
|
|
1785
|
+
* @function verify
|
|
1786
|
+
* @memberof common.UInt32Value
|
|
1787
|
+
* @static
|
|
1788
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
1789
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1790
|
+
*/
|
|
1791
|
+
UInt32Value.verify = function verify(message) {
|
|
1792
|
+
if (typeof message !== "object" || message === null)
|
|
1793
|
+
return "object expected";
|
|
1794
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
1795
|
+
if (!$util.isInteger(message.value))
|
|
1796
|
+
return "value: integer expected";
|
|
1797
|
+
return null;
|
|
1798
|
+
};
|
|
1799
|
+
|
|
1800
|
+
/**
|
|
1801
|
+
* Creates a UInt32Value message from a plain object. Also converts values to their respective internal types.
|
|
1802
|
+
* @function fromObject
|
|
1803
|
+
* @memberof common.UInt32Value
|
|
1804
|
+
* @static
|
|
1805
|
+
* @param {Object.<string,*>} object Plain object
|
|
1806
|
+
* @returns {common.UInt32Value} UInt32Value
|
|
1807
|
+
*/
|
|
1808
|
+
UInt32Value.fromObject = function fromObject(object) {
|
|
1809
|
+
if (object instanceof $root.common.UInt32Value)
|
|
1810
|
+
return object;
|
|
1811
|
+
var message = new $root.common.UInt32Value();
|
|
1812
|
+
if (object.value != null)
|
|
1813
|
+
message.value = object.value >>> 0;
|
|
1814
|
+
return message;
|
|
1815
|
+
};
|
|
1816
|
+
|
|
1817
|
+
/**
|
|
1818
|
+
* Creates a plain object from a UInt32Value message. Also converts values to other types if specified.
|
|
1819
|
+
* @function toObject
|
|
1820
|
+
* @memberof common.UInt32Value
|
|
1821
|
+
* @static
|
|
1822
|
+
* @param {common.UInt32Value} message UInt32Value
|
|
1823
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1824
|
+
* @returns {Object.<string,*>} Plain object
|
|
1825
|
+
*/
|
|
1826
|
+
UInt32Value.toObject = function toObject(message, options) {
|
|
1827
|
+
if (!options)
|
|
1828
|
+
options = {};
|
|
1829
|
+
var object = {};
|
|
1830
|
+
if (options.defaults)
|
|
1831
|
+
object.value = 0;
|
|
1832
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
1833
|
+
object.value = message.value;
|
|
1834
|
+
return object;
|
|
1835
|
+
};
|
|
1836
|
+
|
|
1837
|
+
/**
|
|
1838
|
+
* Converts this UInt32Value to JSON.
|
|
1839
|
+
* @function toJSON
|
|
1840
|
+
* @memberof common.UInt32Value
|
|
1841
|
+
* @instance
|
|
1842
|
+
* @returns {Object.<string,*>} JSON object
|
|
1843
|
+
*/
|
|
1844
|
+
UInt32Value.prototype.toJSON = function toJSON() {
|
|
1845
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1846
|
+
};
|
|
1847
|
+
|
|
1848
|
+
return UInt32Value;
|
|
1849
|
+
})();
|
|
1850
|
+
|
|
1851
|
+
common.StringValue = (function() {
|
|
1852
|
+
|
|
1853
|
+
/**
|
|
1854
|
+
* Properties of a StringValue.
|
|
1855
|
+
* @memberof common
|
|
1856
|
+
* @interface IStringValue
|
|
1857
|
+
* @property {string|null} [value] StringValue value
|
|
1858
|
+
*/
|
|
1859
|
+
|
|
1860
|
+
/**
|
|
1861
|
+
* Constructs a new StringValue.
|
|
1862
|
+
* @memberof common
|
|
1863
|
+
* @classdesc Represents a StringValue.
|
|
1864
|
+
* @implements IStringValue
|
|
1865
|
+
* @constructor
|
|
1866
|
+
* @param {common.IStringValue=} [properties] Properties to set
|
|
1867
|
+
*/
|
|
1868
|
+
function StringValue(properties) {
|
|
1869
|
+
if (properties)
|
|
1870
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1871
|
+
if (properties[keys[i]] != null)
|
|
1872
|
+
this[keys[i]] = properties[keys[i]];
|
|
1873
|
+
}
|
|
1874
|
+
|
|
1875
|
+
/**
|
|
1876
|
+
* StringValue value.
|
|
1877
|
+
* @member {string} value
|
|
1878
|
+
* @memberof common.StringValue
|
|
1879
|
+
* @instance
|
|
1880
|
+
*/
|
|
1881
|
+
StringValue.prototype.value = "";
|
|
1882
|
+
|
|
1883
|
+
/**
|
|
1884
|
+
* Creates a new StringValue instance using the specified properties.
|
|
1885
|
+
* @function create
|
|
1886
|
+
* @memberof common.StringValue
|
|
1887
|
+
* @static
|
|
1888
|
+
* @param {common.IStringValue=} [properties] Properties to set
|
|
1889
|
+
* @returns {common.StringValue} StringValue instance
|
|
1890
|
+
*/
|
|
1891
|
+
StringValue.create = function create(properties) {
|
|
1892
|
+
return new StringValue(properties);
|
|
1893
|
+
};
|
|
1894
|
+
|
|
1895
|
+
/**
|
|
1896
|
+
* Encodes the specified StringValue message. Does not implicitly {@link common.StringValue.verify|verify} messages.
|
|
1897
|
+
* @function encode
|
|
1898
|
+
* @memberof common.StringValue
|
|
1899
|
+
* @static
|
|
1900
|
+
* @param {common.IStringValue} message StringValue message or plain object to encode
|
|
1901
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1902
|
+
* @returns {$protobuf.Writer} Writer
|
|
1903
|
+
*/
|
|
1904
|
+
StringValue.encode = function encode(message, writer) {
|
|
1905
|
+
if (!writer)
|
|
1906
|
+
writer = $Writer.create();
|
|
1907
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
1908
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.value);
|
|
1909
|
+
return writer;
|
|
1910
|
+
};
|
|
1911
|
+
|
|
1912
|
+
/**
|
|
1913
|
+
* Encodes the specified StringValue message, length delimited. Does not implicitly {@link common.StringValue.verify|verify} messages.
|
|
1914
|
+
* @function encodeDelimited
|
|
1915
|
+
* @memberof common.StringValue
|
|
1916
|
+
* @static
|
|
1917
|
+
* @param {common.IStringValue} message StringValue message or plain object to encode
|
|
1918
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1919
|
+
* @returns {$protobuf.Writer} Writer
|
|
1920
|
+
*/
|
|
1921
|
+
StringValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1922
|
+
return this.encode(message, writer).ldelim();
|
|
1923
|
+
};
|
|
1924
|
+
|
|
1925
|
+
/**
|
|
1926
|
+
* Decodes a StringValue message from the specified reader or buffer.
|
|
1927
|
+
* @function decode
|
|
1928
|
+
* @memberof common.StringValue
|
|
1929
|
+
* @static
|
|
1930
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1931
|
+
* @param {number} [length] Message length if known beforehand
|
|
1932
|
+
* @returns {common.StringValue} StringValue
|
|
1933
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1934
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1935
|
+
*/
|
|
1936
|
+
StringValue.decode = function decode(reader, length) {
|
|
1937
|
+
if (!(reader instanceof $Reader))
|
|
1938
|
+
reader = $Reader.create(reader);
|
|
1939
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.StringValue();
|
|
1940
|
+
while (reader.pos < end) {
|
|
1941
|
+
var tag = reader.uint32();
|
|
1942
|
+
switch (tag >>> 3) {
|
|
1943
|
+
case 1:
|
|
1944
|
+
message.value = reader.string();
|
|
1945
|
+
break;
|
|
1946
|
+
default:
|
|
1947
|
+
reader.skipType(tag & 7);
|
|
1948
|
+
break;
|
|
1949
|
+
}
|
|
1950
|
+
}
|
|
1951
|
+
return message;
|
|
1952
|
+
};
|
|
1953
|
+
|
|
1954
|
+
/**
|
|
1955
|
+
* Decodes a StringValue message from the specified reader or buffer, length delimited.
|
|
1956
|
+
* @function decodeDelimited
|
|
1957
|
+
* @memberof common.StringValue
|
|
1958
|
+
* @static
|
|
1959
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1960
|
+
* @returns {common.StringValue} StringValue
|
|
1961
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1962
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1963
|
+
*/
|
|
1964
|
+
StringValue.decodeDelimited = function decodeDelimited(reader) {
|
|
1965
|
+
if (!(reader instanceof $Reader))
|
|
1966
|
+
reader = new $Reader(reader);
|
|
1967
|
+
return this.decode(reader, reader.uint32());
|
|
1968
|
+
};
|
|
1969
|
+
|
|
1970
|
+
/**
|
|
1971
|
+
* Verifies a StringValue message.
|
|
1972
|
+
* @function verify
|
|
1973
|
+
* @memberof common.StringValue
|
|
1974
|
+
* @static
|
|
1975
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
1976
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1977
|
+
*/
|
|
1978
|
+
StringValue.verify = function verify(message) {
|
|
1979
|
+
if (typeof message !== "object" || message === null)
|
|
1980
|
+
return "object expected";
|
|
1981
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
1982
|
+
if (!$util.isString(message.value))
|
|
1983
|
+
return "value: string expected";
|
|
1984
|
+
return null;
|
|
1985
|
+
};
|
|
1986
|
+
|
|
1987
|
+
/**
|
|
1988
|
+
* Creates a StringValue message from a plain object. Also converts values to their respective internal types.
|
|
1989
|
+
* @function fromObject
|
|
1990
|
+
* @memberof common.StringValue
|
|
1991
|
+
* @static
|
|
1992
|
+
* @param {Object.<string,*>} object Plain object
|
|
1993
|
+
* @returns {common.StringValue} StringValue
|
|
1994
|
+
*/
|
|
1995
|
+
StringValue.fromObject = function fromObject(object) {
|
|
1996
|
+
if (object instanceof $root.common.StringValue)
|
|
1997
|
+
return object;
|
|
1998
|
+
var message = new $root.common.StringValue();
|
|
1999
|
+
if (object.value != null)
|
|
2000
|
+
message.value = String(object.value);
|
|
2001
|
+
return message;
|
|
2002
|
+
};
|
|
2003
|
+
|
|
2004
|
+
/**
|
|
2005
|
+
* Creates a plain object from a StringValue message. Also converts values to other types if specified.
|
|
2006
|
+
* @function toObject
|
|
2007
|
+
* @memberof common.StringValue
|
|
2008
|
+
* @static
|
|
2009
|
+
* @param {common.StringValue} message StringValue
|
|
2010
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2011
|
+
* @returns {Object.<string,*>} Plain object
|
|
2012
|
+
*/
|
|
2013
|
+
StringValue.toObject = function toObject(message, options) {
|
|
2014
|
+
if (!options)
|
|
2015
|
+
options = {};
|
|
2016
|
+
var object = {};
|
|
2017
|
+
if (options.defaults)
|
|
2018
|
+
object.value = "";
|
|
2019
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
2020
|
+
object.value = message.value;
|
|
2021
|
+
return object;
|
|
2022
|
+
};
|
|
2023
|
+
|
|
2024
|
+
/**
|
|
2025
|
+
* Converts this StringValue to JSON.
|
|
2026
|
+
* @function toJSON
|
|
2027
|
+
* @memberof common.StringValue
|
|
2028
|
+
* @instance
|
|
2029
|
+
* @returns {Object.<string,*>} JSON object
|
|
2030
|
+
*/
|
|
2031
|
+
StringValue.prototype.toJSON = function toJSON() {
|
|
2032
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2033
|
+
};
|
|
2034
|
+
|
|
2035
|
+
return StringValue;
|
|
2036
|
+
})();
|
|
2037
|
+
|
|
2038
|
+
common.BytesValue = (function() {
|
|
2039
|
+
|
|
2040
|
+
/**
|
|
2041
|
+
* Properties of a BytesValue.
|
|
2042
|
+
* @memberof common
|
|
2043
|
+
* @interface IBytesValue
|
|
2044
|
+
* @property {Uint8Array|null} [value] BytesValue value
|
|
2045
|
+
*/
|
|
2046
|
+
|
|
2047
|
+
/**
|
|
2048
|
+
* Constructs a new BytesValue.
|
|
2049
|
+
* @memberof common
|
|
2050
|
+
* @classdesc Represents a BytesValue.
|
|
2051
|
+
* @implements IBytesValue
|
|
2052
|
+
* @constructor
|
|
2053
|
+
* @param {common.IBytesValue=} [properties] Properties to set
|
|
2054
|
+
*/
|
|
2055
|
+
function BytesValue(properties) {
|
|
2056
|
+
if (properties)
|
|
2057
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2058
|
+
if (properties[keys[i]] != null)
|
|
2059
|
+
this[keys[i]] = properties[keys[i]];
|
|
2060
|
+
}
|
|
2061
|
+
|
|
2062
|
+
/**
|
|
2063
|
+
* BytesValue value.
|
|
2064
|
+
* @member {Uint8Array} value
|
|
2065
|
+
* @memberof common.BytesValue
|
|
2066
|
+
* @instance
|
|
2067
|
+
*/
|
|
2068
|
+
BytesValue.prototype.value = $util.newBuffer([]);
|
|
2069
|
+
|
|
2070
|
+
/**
|
|
2071
|
+
* Creates a new BytesValue instance using the specified properties.
|
|
2072
|
+
* @function create
|
|
2073
|
+
* @memberof common.BytesValue
|
|
2074
|
+
* @static
|
|
2075
|
+
* @param {common.IBytesValue=} [properties] Properties to set
|
|
2076
|
+
* @returns {common.BytesValue} BytesValue instance
|
|
2077
|
+
*/
|
|
2078
|
+
BytesValue.create = function create(properties) {
|
|
2079
|
+
return new BytesValue(properties);
|
|
2080
|
+
};
|
|
2081
|
+
|
|
2082
|
+
/**
|
|
2083
|
+
* Encodes the specified BytesValue message. Does not implicitly {@link common.BytesValue.verify|verify} messages.
|
|
2084
|
+
* @function encode
|
|
2085
|
+
* @memberof common.BytesValue
|
|
2086
|
+
* @static
|
|
2087
|
+
* @param {common.IBytesValue} message BytesValue message or plain object to encode
|
|
2088
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2089
|
+
* @returns {$protobuf.Writer} Writer
|
|
2090
|
+
*/
|
|
2091
|
+
BytesValue.encode = function encode(message, writer) {
|
|
2092
|
+
if (!writer)
|
|
2093
|
+
writer = $Writer.create();
|
|
2094
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
2095
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.value);
|
|
2096
|
+
return writer;
|
|
2097
|
+
};
|
|
2098
|
+
|
|
2099
|
+
/**
|
|
2100
|
+
* Encodes the specified BytesValue message, length delimited. Does not implicitly {@link common.BytesValue.verify|verify} messages.
|
|
2101
|
+
* @function encodeDelimited
|
|
2102
|
+
* @memberof common.BytesValue
|
|
2103
|
+
* @static
|
|
2104
|
+
* @param {common.IBytesValue} message BytesValue message or plain object to encode
|
|
2105
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2106
|
+
* @returns {$protobuf.Writer} Writer
|
|
2107
|
+
*/
|
|
2108
|
+
BytesValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2109
|
+
return this.encode(message, writer).ldelim();
|
|
2110
|
+
};
|
|
2111
|
+
|
|
2112
|
+
/**
|
|
2113
|
+
* Decodes a BytesValue message from the specified reader or buffer.
|
|
2114
|
+
* @function decode
|
|
2115
|
+
* @memberof common.BytesValue
|
|
2116
|
+
* @static
|
|
2117
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2118
|
+
* @param {number} [length] Message length if known beforehand
|
|
2119
|
+
* @returns {common.BytesValue} BytesValue
|
|
2120
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2121
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2122
|
+
*/
|
|
2123
|
+
BytesValue.decode = function decode(reader, length) {
|
|
2124
|
+
if (!(reader instanceof $Reader))
|
|
2125
|
+
reader = $Reader.create(reader);
|
|
2126
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.BytesValue();
|
|
2127
|
+
while (reader.pos < end) {
|
|
2128
|
+
var tag = reader.uint32();
|
|
2129
|
+
switch (tag >>> 3) {
|
|
2130
|
+
case 1:
|
|
2131
|
+
message.value = reader.bytes();
|
|
2132
|
+
break;
|
|
2133
|
+
default:
|
|
2134
|
+
reader.skipType(tag & 7);
|
|
2135
|
+
break;
|
|
2136
|
+
}
|
|
2137
|
+
}
|
|
2138
|
+
return message;
|
|
2139
|
+
};
|
|
2140
|
+
|
|
2141
|
+
/**
|
|
2142
|
+
* Decodes a BytesValue message from the specified reader or buffer, length delimited.
|
|
2143
|
+
* @function decodeDelimited
|
|
2144
|
+
* @memberof common.BytesValue
|
|
2145
|
+
* @static
|
|
2146
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2147
|
+
* @returns {common.BytesValue} BytesValue
|
|
2148
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2149
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2150
|
+
*/
|
|
2151
|
+
BytesValue.decodeDelimited = function decodeDelimited(reader) {
|
|
2152
|
+
if (!(reader instanceof $Reader))
|
|
2153
|
+
reader = new $Reader(reader);
|
|
2154
|
+
return this.decode(reader, reader.uint32());
|
|
2155
|
+
};
|
|
2156
|
+
|
|
2157
|
+
/**
|
|
2158
|
+
* Verifies a BytesValue message.
|
|
2159
|
+
* @function verify
|
|
2160
|
+
* @memberof common.BytesValue
|
|
2161
|
+
* @static
|
|
2162
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
2163
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2164
|
+
*/
|
|
2165
|
+
BytesValue.verify = function verify(message) {
|
|
2166
|
+
if (typeof message !== "object" || message === null)
|
|
2167
|
+
return "object expected";
|
|
2168
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
2169
|
+
if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value)))
|
|
2170
|
+
return "value: buffer expected";
|
|
2171
|
+
return null;
|
|
2172
|
+
};
|
|
2173
|
+
|
|
2174
|
+
/**
|
|
2175
|
+
* Creates a BytesValue message from a plain object. Also converts values to their respective internal types.
|
|
2176
|
+
* @function fromObject
|
|
2177
|
+
* @memberof common.BytesValue
|
|
2178
|
+
* @static
|
|
2179
|
+
* @param {Object.<string,*>} object Plain object
|
|
2180
|
+
* @returns {common.BytesValue} BytesValue
|
|
2181
|
+
*/
|
|
2182
|
+
BytesValue.fromObject = function fromObject(object) {
|
|
2183
|
+
if (object instanceof $root.common.BytesValue)
|
|
2184
|
+
return object;
|
|
2185
|
+
var message = new $root.common.BytesValue();
|
|
2186
|
+
if (object.value != null)
|
|
2187
|
+
if (typeof object.value === "string")
|
|
2188
|
+
$util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0);
|
|
2189
|
+
else if (object.value.length)
|
|
2190
|
+
message.value = object.value;
|
|
2191
|
+
return message;
|
|
2192
|
+
};
|
|
2193
|
+
|
|
2194
|
+
/**
|
|
2195
|
+
* Creates a plain object from a BytesValue message. Also converts values to other types if specified.
|
|
2196
|
+
* @function toObject
|
|
2197
|
+
* @memberof common.BytesValue
|
|
2198
|
+
* @static
|
|
2199
|
+
* @param {common.BytesValue} message BytesValue
|
|
2200
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2201
|
+
* @returns {Object.<string,*>} Plain object
|
|
2202
|
+
*/
|
|
2203
|
+
BytesValue.toObject = function toObject(message, options) {
|
|
2204
|
+
if (!options)
|
|
2205
|
+
options = {};
|
|
2206
|
+
var object = {};
|
|
2207
|
+
if (options.defaults)
|
|
2208
|
+
if (options.bytes === String)
|
|
2209
|
+
object.value = "";
|
|
2210
|
+
else {
|
|
2211
|
+
object.value = [];
|
|
2212
|
+
if (options.bytes !== Array)
|
|
2213
|
+
object.value = $util.newBuffer(object.value);
|
|
2214
|
+
}
|
|
2215
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
2216
|
+
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;
|
|
2217
|
+
return object;
|
|
2218
|
+
};
|
|
2219
|
+
|
|
2220
|
+
/**
|
|
2221
|
+
* Converts this BytesValue to JSON.
|
|
2222
|
+
* @function toJSON
|
|
2223
|
+
* @memberof common.BytesValue
|
|
2224
|
+
* @instance
|
|
2225
|
+
* @returns {Object.<string,*>} JSON object
|
|
2226
|
+
*/
|
|
2227
|
+
BytesValue.prototype.toJSON = function toJSON() {
|
|
2228
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2229
|
+
};
|
|
2230
|
+
|
|
2231
|
+
return BytesValue;
|
|
2232
|
+
})();
|
|
2233
|
+
|
|
2234
|
+
common.ErrorValue = (function() {
|
|
2235
|
+
|
|
2236
|
+
/**
|
|
2237
|
+
* Properties of an ErrorValue.
|
|
2238
|
+
* @memberof common
|
|
2239
|
+
* @interface IErrorValue
|
|
2240
|
+
* @property {string|null} [runtimeExcJson] ErrorValue runtimeExcJson
|
|
2241
|
+
* @property {string|null} [err] ErrorValue err
|
|
2242
|
+
*/
|
|
2243
|
+
|
|
2244
|
+
/**
|
|
2245
|
+
* Constructs a new ErrorValue.
|
|
2246
|
+
* @memberof common
|
|
2247
|
+
* @classdesc Represents an ErrorValue.
|
|
2248
|
+
* @implements IErrorValue
|
|
2249
|
+
* @constructor
|
|
2250
|
+
* @param {common.IErrorValue=} [properties] Properties to set
|
|
2251
|
+
*/
|
|
2252
|
+
function ErrorValue(properties) {
|
|
2253
|
+
if (properties)
|
|
2254
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2255
|
+
if (properties[keys[i]] != null)
|
|
2256
|
+
this[keys[i]] = properties[keys[i]];
|
|
2257
|
+
}
|
|
2258
|
+
|
|
2259
|
+
/**
|
|
2260
|
+
* ErrorValue runtimeExcJson.
|
|
2261
|
+
* @member {string} runtimeExcJson
|
|
2262
|
+
* @memberof common.ErrorValue
|
|
2263
|
+
* @instance
|
|
2264
|
+
*/
|
|
2265
|
+
ErrorValue.prototype.runtimeExcJson = "";
|
|
2266
|
+
|
|
2267
|
+
/**
|
|
2268
|
+
* ErrorValue err.
|
|
2269
|
+
* @member {string} err
|
|
2270
|
+
* @memberof common.ErrorValue
|
|
2271
|
+
* @instance
|
|
2272
|
+
*/
|
|
2273
|
+
ErrorValue.prototype.err = "";
|
|
2274
|
+
|
|
2275
|
+
/**
|
|
2276
|
+
* Creates a new ErrorValue instance using the specified properties.
|
|
2277
|
+
* @function create
|
|
2278
|
+
* @memberof common.ErrorValue
|
|
2279
|
+
* @static
|
|
2280
|
+
* @param {common.IErrorValue=} [properties] Properties to set
|
|
2281
|
+
* @returns {common.ErrorValue} ErrorValue instance
|
|
2282
|
+
*/
|
|
2283
|
+
ErrorValue.create = function create(properties) {
|
|
2284
|
+
return new ErrorValue(properties);
|
|
2285
|
+
};
|
|
2286
|
+
|
|
2287
|
+
/**
|
|
2288
|
+
* Encodes the specified ErrorValue message. Does not implicitly {@link common.ErrorValue.verify|verify} messages.
|
|
2289
|
+
* @function encode
|
|
2290
|
+
* @memberof common.ErrorValue
|
|
2291
|
+
* @static
|
|
2292
|
+
* @param {common.IErrorValue} message ErrorValue message or plain object to encode
|
|
2293
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2294
|
+
* @returns {$protobuf.Writer} Writer
|
|
2295
|
+
*/
|
|
2296
|
+
ErrorValue.encode = function encode(message, writer) {
|
|
2297
|
+
if (!writer)
|
|
2298
|
+
writer = $Writer.create();
|
|
2299
|
+
if (message.runtimeExcJson != null && Object.hasOwnProperty.call(message, "runtimeExcJson"))
|
|
2300
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.runtimeExcJson);
|
|
2301
|
+
if (message.err != null && Object.hasOwnProperty.call(message, "err"))
|
|
2302
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.err);
|
|
2303
|
+
return writer;
|
|
2304
|
+
};
|
|
2305
|
+
|
|
2306
|
+
/**
|
|
2307
|
+
* Encodes the specified ErrorValue message, length delimited. Does not implicitly {@link common.ErrorValue.verify|verify} messages.
|
|
2308
|
+
* @function encodeDelimited
|
|
2309
|
+
* @memberof common.ErrorValue
|
|
2310
|
+
* @static
|
|
2311
|
+
* @param {common.IErrorValue} message ErrorValue message or plain object to encode
|
|
2312
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2313
|
+
* @returns {$protobuf.Writer} Writer
|
|
2314
|
+
*/
|
|
2315
|
+
ErrorValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2316
|
+
return this.encode(message, writer).ldelim();
|
|
2317
|
+
};
|
|
2318
|
+
|
|
2319
|
+
/**
|
|
2320
|
+
* Decodes an ErrorValue message from the specified reader or buffer.
|
|
2321
|
+
* @function decode
|
|
2322
|
+
* @memberof common.ErrorValue
|
|
2323
|
+
* @static
|
|
2324
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2325
|
+
* @param {number} [length] Message length if known beforehand
|
|
2326
|
+
* @returns {common.ErrorValue} ErrorValue
|
|
2327
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2328
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2329
|
+
*/
|
|
2330
|
+
ErrorValue.decode = function decode(reader, length) {
|
|
2331
|
+
if (!(reader instanceof $Reader))
|
|
2332
|
+
reader = $Reader.create(reader);
|
|
2333
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.ErrorValue();
|
|
2334
|
+
while (reader.pos < end) {
|
|
2335
|
+
var tag = reader.uint32();
|
|
2336
|
+
switch (tag >>> 3) {
|
|
2337
|
+
case 1:
|
|
2338
|
+
message.runtimeExcJson = reader.string();
|
|
2339
|
+
break;
|
|
2340
|
+
case 2:
|
|
2341
|
+
message.err = reader.string();
|
|
2342
|
+
break;
|
|
2343
|
+
default:
|
|
2344
|
+
reader.skipType(tag & 7);
|
|
2345
|
+
break;
|
|
2346
|
+
}
|
|
2347
|
+
}
|
|
2348
|
+
return message;
|
|
2349
|
+
};
|
|
2350
|
+
|
|
2351
|
+
/**
|
|
2352
|
+
* Decodes an ErrorValue message from the specified reader or buffer, length delimited.
|
|
2353
|
+
* @function decodeDelimited
|
|
2354
|
+
* @memberof common.ErrorValue
|
|
2355
|
+
* @static
|
|
2356
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2357
|
+
* @returns {common.ErrorValue} ErrorValue
|
|
2358
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2359
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2360
|
+
*/
|
|
2361
|
+
ErrorValue.decodeDelimited = function decodeDelimited(reader) {
|
|
2362
|
+
if (!(reader instanceof $Reader))
|
|
2363
|
+
reader = new $Reader(reader);
|
|
2364
|
+
return this.decode(reader, reader.uint32());
|
|
2365
|
+
};
|
|
2366
|
+
|
|
2367
|
+
/**
|
|
2368
|
+
* Verifies an ErrorValue message.
|
|
2369
|
+
* @function verify
|
|
2370
|
+
* @memberof common.ErrorValue
|
|
2371
|
+
* @static
|
|
2372
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
2373
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2374
|
+
*/
|
|
2375
|
+
ErrorValue.verify = function verify(message) {
|
|
2376
|
+
if (typeof message !== "object" || message === null)
|
|
2377
|
+
return "object expected";
|
|
2378
|
+
if (message.runtimeExcJson != null && message.hasOwnProperty("runtimeExcJson"))
|
|
2379
|
+
if (!$util.isString(message.runtimeExcJson))
|
|
2380
|
+
return "runtimeExcJson: string expected";
|
|
2381
|
+
if (message.err != null && message.hasOwnProperty("err"))
|
|
2382
|
+
if (!$util.isString(message.err))
|
|
2383
|
+
return "err: string expected";
|
|
2384
|
+
return null;
|
|
2385
|
+
};
|
|
2386
|
+
|
|
2387
|
+
/**
|
|
2388
|
+
* Creates an ErrorValue message from a plain object. Also converts values to their respective internal types.
|
|
2389
|
+
* @function fromObject
|
|
2390
|
+
* @memberof common.ErrorValue
|
|
2391
|
+
* @static
|
|
2392
|
+
* @param {Object.<string,*>} object Plain object
|
|
2393
|
+
* @returns {common.ErrorValue} ErrorValue
|
|
2394
|
+
*/
|
|
2395
|
+
ErrorValue.fromObject = function fromObject(object) {
|
|
2396
|
+
if (object instanceof $root.common.ErrorValue)
|
|
2397
|
+
return object;
|
|
2398
|
+
var message = new $root.common.ErrorValue();
|
|
2399
|
+
if (object.runtimeExcJson != null)
|
|
2400
|
+
message.runtimeExcJson = String(object.runtimeExcJson);
|
|
2401
|
+
if (object.err != null)
|
|
2402
|
+
message.err = String(object.err);
|
|
2403
|
+
return message;
|
|
2404
|
+
};
|
|
2405
|
+
|
|
2406
|
+
/**
|
|
2407
|
+
* Creates a plain object from an ErrorValue message. Also converts values to other types if specified.
|
|
2408
|
+
* @function toObject
|
|
2409
|
+
* @memberof common.ErrorValue
|
|
2410
|
+
* @static
|
|
2411
|
+
* @param {common.ErrorValue} message ErrorValue
|
|
2412
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2413
|
+
* @returns {Object.<string,*>} Plain object
|
|
2414
|
+
*/
|
|
2415
|
+
ErrorValue.toObject = function toObject(message, options) {
|
|
2416
|
+
if (!options)
|
|
2417
|
+
options = {};
|
|
2418
|
+
var object = {};
|
|
2419
|
+
if (options.defaults) {
|
|
2420
|
+
object.runtimeExcJson = "";
|
|
2421
|
+
object.err = "";
|
|
2422
|
+
}
|
|
2423
|
+
if (message.runtimeExcJson != null && message.hasOwnProperty("runtimeExcJson"))
|
|
2424
|
+
object.runtimeExcJson = message.runtimeExcJson;
|
|
2425
|
+
if (message.err != null && message.hasOwnProperty("err"))
|
|
2426
|
+
object.err = message.err;
|
|
2427
|
+
return object;
|
|
2428
|
+
};
|
|
2429
|
+
|
|
2430
|
+
/**
|
|
2431
|
+
* Converts this ErrorValue to JSON.
|
|
2432
|
+
* @function toJSON
|
|
2433
|
+
* @memberof common.ErrorValue
|
|
2434
|
+
* @instance
|
|
2435
|
+
* @returns {Object.<string,*>} JSON object
|
|
2436
|
+
*/
|
|
2437
|
+
ErrorValue.prototype.toJSON = function toJSON() {
|
|
2438
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2439
|
+
};
|
|
2440
|
+
|
|
2441
|
+
return ErrorValue;
|
|
2442
|
+
})();
|
|
2443
|
+
|
|
2444
|
+
common.AnyValue = (function() {
|
|
2445
|
+
|
|
2446
|
+
/**
|
|
2447
|
+
* Properties of an AnyValue.
|
|
2448
|
+
* @memberof common
|
|
2449
|
+
* @interface IAnyValue
|
|
2450
|
+
* @property {string|null} [type] AnyValue type
|
|
2451
|
+
* @property {common.IStringValue|null} [json] AnyValue json
|
|
2452
|
+
* @property {common.IBytesValue|null} [bytes] AnyValue bytes
|
|
2453
|
+
*/
|
|
2454
|
+
|
|
2455
|
+
/**
|
|
2456
|
+
* Constructs a new AnyValue.
|
|
2457
|
+
* @memberof common
|
|
2458
|
+
* @classdesc Represents an AnyValue.
|
|
2459
|
+
* @implements IAnyValue
|
|
2460
|
+
* @constructor
|
|
2461
|
+
* @param {common.IAnyValue=} [properties] Properties to set
|
|
2462
|
+
*/
|
|
2463
|
+
function AnyValue(properties) {
|
|
2464
|
+
if (properties)
|
|
2465
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2466
|
+
if (properties[keys[i]] != null)
|
|
2467
|
+
this[keys[i]] = properties[keys[i]];
|
|
2468
|
+
}
|
|
2469
|
+
|
|
2470
|
+
/**
|
|
2471
|
+
* AnyValue type.
|
|
2472
|
+
* @member {string} type
|
|
2473
|
+
* @memberof common.AnyValue
|
|
2474
|
+
* @instance
|
|
2475
|
+
*/
|
|
2476
|
+
AnyValue.prototype.type = "";
|
|
2477
|
+
|
|
2478
|
+
/**
|
|
2479
|
+
* AnyValue json.
|
|
2480
|
+
* @member {common.IStringValue|null|undefined} json
|
|
2481
|
+
* @memberof common.AnyValue
|
|
2482
|
+
* @instance
|
|
2483
|
+
*/
|
|
2484
|
+
AnyValue.prototype.json = null;
|
|
2485
|
+
|
|
2486
|
+
/**
|
|
2487
|
+
* AnyValue bytes.
|
|
2488
|
+
* @member {common.IBytesValue|null|undefined} bytes
|
|
2489
|
+
* @memberof common.AnyValue
|
|
2490
|
+
* @instance
|
|
2491
|
+
*/
|
|
2492
|
+
AnyValue.prototype.bytes = null;
|
|
2493
|
+
|
|
2494
|
+
/**
|
|
2495
|
+
* Creates a new AnyValue instance using the specified properties.
|
|
2496
|
+
* @function create
|
|
2497
|
+
* @memberof common.AnyValue
|
|
2498
|
+
* @static
|
|
2499
|
+
* @param {common.IAnyValue=} [properties] Properties to set
|
|
2500
|
+
* @returns {common.AnyValue} AnyValue instance
|
|
2501
|
+
*/
|
|
2502
|
+
AnyValue.create = function create(properties) {
|
|
2503
|
+
return new AnyValue(properties);
|
|
2504
|
+
};
|
|
2505
|
+
|
|
2506
|
+
/**
|
|
2507
|
+
* Encodes the specified AnyValue message. Does not implicitly {@link common.AnyValue.verify|verify} messages.
|
|
2508
|
+
* @function encode
|
|
2509
|
+
* @memberof common.AnyValue
|
|
2510
|
+
* @static
|
|
2511
|
+
* @param {common.IAnyValue} message AnyValue message or plain object to encode
|
|
2512
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2513
|
+
* @returns {$protobuf.Writer} Writer
|
|
2514
|
+
*/
|
|
2515
|
+
AnyValue.encode = function encode(message, writer) {
|
|
2516
|
+
if (!writer)
|
|
2517
|
+
writer = $Writer.create();
|
|
2518
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
2519
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
|
|
2520
|
+
if (message.json != null && Object.hasOwnProperty.call(message, "json"))
|
|
2521
|
+
$root.common.StringValue.encode(message.json, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
2522
|
+
if (message.bytes != null && Object.hasOwnProperty.call(message, "bytes"))
|
|
2523
|
+
$root.common.BytesValue.encode(message.bytes, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
2524
|
+
return writer;
|
|
2525
|
+
};
|
|
2526
|
+
|
|
2527
|
+
/**
|
|
2528
|
+
* Encodes the specified AnyValue message, length delimited. Does not implicitly {@link common.AnyValue.verify|verify} messages.
|
|
2529
|
+
* @function encodeDelimited
|
|
2530
|
+
* @memberof common.AnyValue
|
|
2531
|
+
* @static
|
|
2532
|
+
* @param {common.IAnyValue} message AnyValue message or plain object to encode
|
|
2533
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2534
|
+
* @returns {$protobuf.Writer} Writer
|
|
2535
|
+
*/
|
|
2536
|
+
AnyValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2537
|
+
return this.encode(message, writer).ldelim();
|
|
2538
|
+
};
|
|
2539
|
+
|
|
2540
|
+
/**
|
|
2541
|
+
* Decodes an AnyValue message from the specified reader or buffer.
|
|
2542
|
+
* @function decode
|
|
2543
|
+
* @memberof common.AnyValue
|
|
2544
|
+
* @static
|
|
2545
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2546
|
+
* @param {number} [length] Message length if known beforehand
|
|
2547
|
+
* @returns {common.AnyValue} AnyValue
|
|
2548
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2549
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2550
|
+
*/
|
|
2551
|
+
AnyValue.decode = function decode(reader, length) {
|
|
2552
|
+
if (!(reader instanceof $Reader))
|
|
2553
|
+
reader = $Reader.create(reader);
|
|
2554
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.AnyValue();
|
|
2555
|
+
while (reader.pos < end) {
|
|
2556
|
+
var tag = reader.uint32();
|
|
2557
|
+
switch (tag >>> 3) {
|
|
2558
|
+
case 1:
|
|
2559
|
+
message.type = reader.string();
|
|
2560
|
+
break;
|
|
2561
|
+
case 2:
|
|
2562
|
+
message.json = $root.common.StringValue.decode(reader, reader.uint32());
|
|
2563
|
+
break;
|
|
2564
|
+
case 3:
|
|
2565
|
+
message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
|
|
2566
|
+
break;
|
|
2567
|
+
default:
|
|
2568
|
+
reader.skipType(tag & 7);
|
|
2569
|
+
break;
|
|
2570
|
+
}
|
|
2571
|
+
}
|
|
2572
|
+
return message;
|
|
2573
|
+
};
|
|
2574
|
+
|
|
2575
|
+
/**
|
|
2576
|
+
* Decodes an AnyValue message from the specified reader or buffer, length delimited.
|
|
2577
|
+
* @function decodeDelimited
|
|
2578
|
+
* @memberof common.AnyValue
|
|
2579
|
+
* @static
|
|
2580
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2581
|
+
* @returns {common.AnyValue} AnyValue
|
|
2582
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2583
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2584
|
+
*/
|
|
2585
|
+
AnyValue.decodeDelimited = function decodeDelimited(reader) {
|
|
2586
|
+
if (!(reader instanceof $Reader))
|
|
2587
|
+
reader = new $Reader(reader);
|
|
2588
|
+
return this.decode(reader, reader.uint32());
|
|
2589
|
+
};
|
|
2590
|
+
|
|
2591
|
+
/**
|
|
2592
|
+
* Verifies an AnyValue message.
|
|
2593
|
+
* @function verify
|
|
2594
|
+
* @memberof common.AnyValue
|
|
2595
|
+
* @static
|
|
2596
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
2597
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2598
|
+
*/
|
|
2599
|
+
AnyValue.verify = function verify(message) {
|
|
2600
|
+
if (typeof message !== "object" || message === null)
|
|
2601
|
+
return "object expected";
|
|
2602
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
2603
|
+
if (!$util.isString(message.type))
|
|
2604
|
+
return "type: string expected";
|
|
2605
|
+
if (message.json != null && message.hasOwnProperty("json")) {
|
|
2606
|
+
var error = $root.common.StringValue.verify(message.json);
|
|
2607
|
+
if (error)
|
|
2608
|
+
return "json." + error;
|
|
2609
|
+
}
|
|
2610
|
+
if (message.bytes != null && message.hasOwnProperty("bytes")) {
|
|
2611
|
+
var error = $root.common.BytesValue.verify(message.bytes);
|
|
2612
|
+
if (error)
|
|
2613
|
+
return "bytes." + error;
|
|
2614
|
+
}
|
|
2615
|
+
return null;
|
|
2616
|
+
};
|
|
2617
|
+
|
|
2618
|
+
/**
|
|
2619
|
+
* Creates an AnyValue message from a plain object. Also converts values to their respective internal types.
|
|
2620
|
+
* @function fromObject
|
|
2621
|
+
* @memberof common.AnyValue
|
|
2622
|
+
* @static
|
|
2623
|
+
* @param {Object.<string,*>} object Plain object
|
|
2624
|
+
* @returns {common.AnyValue} AnyValue
|
|
2625
|
+
*/
|
|
2626
|
+
AnyValue.fromObject = function fromObject(object) {
|
|
2627
|
+
if (object instanceof $root.common.AnyValue)
|
|
2628
|
+
return object;
|
|
2629
|
+
var message = new $root.common.AnyValue();
|
|
2630
|
+
if (object.type != null)
|
|
2631
|
+
message.type = String(object.type);
|
|
2632
|
+
if (object.json != null) {
|
|
2633
|
+
if (typeof object.json !== "object")
|
|
2634
|
+
throw TypeError(".common.AnyValue.json: object expected");
|
|
2635
|
+
message.json = $root.common.StringValue.fromObject(object.json);
|
|
2636
|
+
}
|
|
2637
|
+
if (object.bytes != null) {
|
|
2638
|
+
if (typeof object.bytes !== "object")
|
|
2639
|
+
throw TypeError(".common.AnyValue.bytes: object expected");
|
|
2640
|
+
message.bytes = $root.common.BytesValue.fromObject(object.bytes);
|
|
2641
|
+
}
|
|
2642
|
+
return message;
|
|
2643
|
+
};
|
|
2644
|
+
|
|
2645
|
+
/**
|
|
2646
|
+
* Creates a plain object from an AnyValue message. Also converts values to other types if specified.
|
|
2647
|
+
* @function toObject
|
|
2648
|
+
* @memberof common.AnyValue
|
|
2649
|
+
* @static
|
|
2650
|
+
* @param {common.AnyValue} message AnyValue
|
|
2651
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2652
|
+
* @returns {Object.<string,*>} Plain object
|
|
2653
|
+
*/
|
|
2654
|
+
AnyValue.toObject = function toObject(message, options) {
|
|
2655
|
+
if (!options)
|
|
2656
|
+
options = {};
|
|
2657
|
+
var object = {};
|
|
2658
|
+
if (options.defaults) {
|
|
2659
|
+
object.type = "";
|
|
2660
|
+
object.json = null;
|
|
2661
|
+
object.bytes = null;
|
|
2662
|
+
}
|
|
2663
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
2664
|
+
object.type = message.type;
|
|
2665
|
+
if (message.json != null && message.hasOwnProperty("json"))
|
|
2666
|
+
object.json = $root.common.StringValue.toObject(message.json, options);
|
|
2667
|
+
if (message.bytes != null && message.hasOwnProperty("bytes"))
|
|
2668
|
+
object.bytes = $root.common.BytesValue.toObject(message.bytes, options);
|
|
2669
|
+
return object;
|
|
2670
|
+
};
|
|
2671
|
+
|
|
2672
|
+
/**
|
|
2673
|
+
* Converts this AnyValue to JSON.
|
|
2674
|
+
* @function toJSON
|
|
2675
|
+
* @memberof common.AnyValue
|
|
2676
|
+
* @instance
|
|
2677
|
+
* @returns {Object.<string,*>} JSON object
|
|
2678
|
+
*/
|
|
2679
|
+
AnyValue.prototype.toJSON = function toJSON() {
|
|
2680
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2681
|
+
};
|
|
2682
|
+
|
|
2683
|
+
return AnyValue;
|
|
2684
|
+
})();
|
|
2685
|
+
|
|
2686
|
+
return common;
|
|
2687
|
+
})();
|
|
2688
|
+
|
|
2689
|
+
module.exports = $root;
|