web-dc-api 0.0.87 → 0.0.89

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.
Files changed (142) hide show
  1. package/dist/cjs/index.js +1 -0
  2. package/dist/cjs/protobuf-BVBdi7Hh.js +1 -0
  3. package/dist/dc.min.js +1 -19
  4. package/dist/esm/chunks/protobuf-CbxDm-Gy.js +1 -0
  5. package/dist/esm/index.js +1 -0
  6. package/dist/index.d.ts +947 -886
  7. package/package.json +14 -17
  8. package/dist/index.cjs.js +0 -19
  9. package/dist/index.esm.js +0 -19
  10. package/lib/common/blowfish/block.ts +0 -259
  11. package/lib/common/blowfish/cipher.ts +0 -144
  12. package/lib/common/blowfish/const.ts +0 -195
  13. package/lib/common/chain.ts +0 -469
  14. package/lib/common/commonclient.ts +0 -202
  15. package/lib/common/constants.ts +0 -55
  16. package/lib/common/dc-key/ed25519.ts +0 -343
  17. package/lib/common/dc-key/keyManager.ts +0 -424
  18. package/lib/common/dcapi.ts +0 -98
  19. package/lib/common/dcutil.ts +0 -595
  20. package/lib/common/define.ts +0 -66
  21. package/lib/common/error.ts +0 -67
  22. package/lib/common/grpc-dc.ts +0 -104
  23. package/lib/common/module-system.ts +0 -184
  24. package/lib/common/service-worker.ts +0 -234
  25. package/lib/common/types/types.ts +0 -344
  26. package/lib/dc.ts +0 -694
  27. package/lib/implements/account/client.ts +0 -185
  28. package/lib/implements/account/manager.ts +0 -683
  29. package/lib/implements/aiproxy/client.ts +0 -357
  30. package/lib/implements/aiproxy/manager.ts +0 -670
  31. package/lib/implements/cache/client.ts +0 -105
  32. package/lib/implements/cache/manager.ts +0 -127
  33. package/lib/implements/comment/client.ts +0 -982
  34. package/lib/implements/comment/manager.ts +0 -1151
  35. package/lib/implements/dc/client.ts +0 -51
  36. package/lib/implements/dc/manager.ts +0 -33
  37. package/lib/implements/file/client.ts +0 -253
  38. package/lib/implements/file/file-cache-manager.ts +0 -142
  39. package/lib/implements/file/manager.ts +0 -1240
  40. package/lib/implements/file/seekableFileStream.ts +0 -344
  41. package/lib/implements/file/streamwriter.ts +0 -322
  42. package/lib/implements/keyvalue/client.ts +0 -376
  43. package/lib/implements/keyvalue/manager.ts +0 -759
  44. package/lib/implements/message/client.ts +0 -250
  45. package/lib/implements/message/manager.ts +0 -215
  46. package/lib/implements/threaddb/cbor/coding.ts +0 -62
  47. package/lib/implements/threaddb/cbor/event.ts +0 -336
  48. package/lib/implements/threaddb/cbor/node.ts +0 -542
  49. package/lib/implements/threaddb/cbor/record.ts +0 -398
  50. package/lib/implements/threaddb/common/AsyncMutex.ts +0 -24
  51. package/lib/implements/threaddb/common/addrinfo.ts +0 -135
  52. package/lib/implements/threaddb/common/dispatcher.ts +0 -81
  53. package/lib/implements/threaddb/common/idbstore-adapter.ts +0 -260
  54. package/lib/implements/threaddb/common/json-patcher.ts +0 -204
  55. package/lib/implements/threaddb/common/key.ts +0 -290
  56. package/lib/implements/threaddb/common/level-adapter.ts +0 -235
  57. package/lib/implements/threaddb/common/lineReader.ts +0 -79
  58. package/lib/implements/threaddb/common/logstore.ts +0 -215
  59. package/lib/implements/threaddb/common/transformed-datastore.ts +0 -308
  60. package/lib/implements/threaddb/core/app.ts +0 -202
  61. package/lib/implements/threaddb/core/core.ts +0 -230
  62. package/lib/implements/threaddb/core/db.ts +0 -249
  63. package/lib/implements/threaddb/core/event.ts +0 -54
  64. package/lib/implements/threaddb/core/head.ts +0 -89
  65. package/lib/implements/threaddb/core/identity.ts +0 -171
  66. package/lib/implements/threaddb/core/logstore.ts +0 -137
  67. package/lib/implements/threaddb/core/options.ts +0 -14
  68. package/lib/implements/threaddb/core/record.ts +0 -54
  69. package/lib/implements/threaddb/db/collection.ts +0 -1910
  70. package/lib/implements/threaddb/db/db.ts +0 -698
  71. package/lib/implements/threaddb/db/json2Query.ts +0 -192
  72. package/lib/implements/threaddb/db/query.ts +0 -524
  73. package/lib/implements/threaddb/dbclient.ts +0 -443
  74. package/lib/implements/threaddb/dbmanager.ts +0 -1901
  75. package/lib/implements/threaddb/lsstoreds/addr_book.ts +0 -452
  76. package/lib/implements/threaddb/lsstoreds/cache.ts +0 -36
  77. package/lib/implements/threaddb/lsstoreds/cyclic_batch.ts +0 -87
  78. package/lib/implements/threaddb/lsstoreds/global.ts +0 -151
  79. package/lib/implements/threaddb/lsstoreds/headbook.ts +0 -280
  80. package/lib/implements/threaddb/lsstoreds/keybook.ts +0 -297
  81. package/lib/implements/threaddb/lsstoreds/logstore.ts +0 -29
  82. package/lib/implements/threaddb/lsstoreds/metadata.ts +0 -223
  83. package/lib/implements/threaddb/net/define.ts +0 -138
  84. package/lib/implements/threaddb/net/grpcClient.ts +0 -582
  85. package/lib/implements/threaddb/net/grpcserver.ts +0 -146
  86. package/lib/implements/threaddb/net/net.ts +0 -2006
  87. package/lib/implements/threaddb/pb/lstore.proto +0 -38
  88. package/lib/implements/threaddb/pb/lstore.ts +0 -393
  89. package/lib/implements/threaddb/pb/lstore_pb.d.ts +0 -433
  90. package/lib/implements/threaddb/pb/lstore_pb.js +0 -1085
  91. package/lib/implements/threaddb/pb/net.proto +0 -194
  92. package/lib/implements/threaddb/pb/net_pb.d.ts +0 -2349
  93. package/lib/implements/threaddb/pb/net_pb.js +0 -5525
  94. package/lib/implements/threaddb/pb/proto-custom-types.ts +0 -212
  95. package/lib/implements/util/client.ts +0 -72
  96. package/lib/implements/util/manager.ts +0 -146
  97. package/lib/implements/wallet/manager.ts +0 -664
  98. package/lib/index.ts +0 -57
  99. package/lib/interfaces/DCContext.ts +0 -51
  100. package/lib/interfaces/aiproxy-interface.ts +0 -145
  101. package/lib/interfaces/auth-interface.ts +0 -118
  102. package/lib/interfaces/cache-interface.ts +0 -22
  103. package/lib/interfaces/client-interface.ts +0 -11
  104. package/lib/interfaces/comment-interface.ts +0 -167
  105. package/lib/interfaces/database-interface.ts +0 -169
  106. package/lib/interfaces/file-interface.ts +0 -120
  107. package/lib/interfaces/index.ts +0 -10
  108. package/lib/interfaces/keyvalue-interface.ts +0 -156
  109. package/lib/interfaces/message-interface.ts +0 -22
  110. package/lib/interfaces/util-interface.ts +0 -31
  111. package/lib/modules/aiproxy-module.ts +0 -246
  112. package/lib/modules/auth-module.ts +0 -753
  113. package/lib/modules/cache-module.ts +0 -99
  114. package/lib/modules/client-module.ts +0 -71
  115. package/lib/modules/comment-module.ts +0 -429
  116. package/lib/modules/database-module.ts +0 -598
  117. package/lib/modules/file-module.ts +0 -291
  118. package/lib/modules/index.ts +0 -13
  119. package/lib/modules/keyvalue-module.ts +0 -379
  120. package/lib/modules/message-module.ts +0 -107
  121. package/lib/modules/util-module.ts +0 -148
  122. package/lib/polyfills/process-env-browser.ts +0 -1
  123. package/lib/proto/datasource.ts +0 -93
  124. package/lib/proto/dcnet.proto +0 -1601
  125. package/lib/proto/dcnet_proto.d.ts +0 -22857
  126. package/lib/proto/dcnet_proto.js +0 -55204
  127. package/lib/proto/dcnet_proto_sparse.js +0 -55166
  128. package/lib/proto/oidfetch.proto +0 -25
  129. package/lib/proto/oidfetch_proto.d.ts +0 -585
  130. package/lib/proto/oidfetch_proto.js +0 -1247
  131. package/lib/serverless/babel-browser.ts +0 -39
  132. package/lib/serverless/base_entity.ts +0 -78
  133. package/lib/serverless/base_repository.ts +0 -414
  134. package/lib/serverless/browser_schema_extractor.ts +0 -283
  135. package/lib/serverless/decorator_factory.ts +0 -322
  136. package/lib/util/BrowserLineReader.ts +0 -73
  137. package/lib/util/base64.ts +0 -105
  138. package/lib/util/bcrypt.ts +0 -206
  139. package/lib/util/curve25519Encryption.ts +0 -418
  140. package/lib/util/dccrypt.ts +0 -73
  141. package/lib/util/logger.ts +0 -104
  142. package/lib/util/utils.ts +0 -289
@@ -1,2349 +0,0 @@
1
- import * as $protobuf from "protobufjs";
2
- import Long = require("long");
3
- /** Namespace net. */
4
- export namespace net {
5
-
6
- /** Namespace pb. */
7
- namespace pb {
8
-
9
- /** Properties of a Log. */
10
- interface ILog {
11
-
12
- /** Log ID */
13
- ID?: (Uint8Array|null);
14
-
15
- /** Log pubKey */
16
- pubKey?: (Uint8Array|null);
17
-
18
- /** Log addrs */
19
- addrs?: (Uint8Array[]|null);
20
-
21
- /** Log head */
22
- head?: (Uint8Array|null);
23
-
24
- /** Log counter */
25
- counter?: (number|Long|null);
26
- }
27
-
28
- /** Represents a Log. */
29
- class Log implements ILog {
30
-
31
- /**
32
- * Constructs a new Log.
33
- * @param [properties] Properties to set
34
- */
35
- constructor(properties?: net.pb.ILog);
36
-
37
- /** Log ID. */
38
- public ID: Uint8Array;
39
-
40
- /** Log pubKey. */
41
- public pubKey: Uint8Array;
42
-
43
- /** Log addrs. */
44
- public addrs: Uint8Array[];
45
-
46
- /** Log head. */
47
- public head: Uint8Array;
48
-
49
- /** Log counter. */
50
- public counter: (number|Long);
51
-
52
- /**
53
- * Creates a new Log instance using the specified properties.
54
- * @param [properties] Properties to set
55
- * @returns Log instance
56
- */
57
- public static create(properties?: net.pb.ILog): net.pb.Log;
58
-
59
- /**
60
- * Encodes the specified Log message. Does not implicitly {@link net.pb.Log.verify|verify} messages.
61
- * @param message Log message or plain object to encode
62
- * @param [writer] Writer to encode to
63
- * @returns Writer
64
- */
65
- public static encode(message: net.pb.ILog, writer?: $protobuf.Writer): $protobuf.Writer;
66
-
67
- /**
68
- * Encodes the specified Log message, length delimited. Does not implicitly {@link net.pb.Log.verify|verify} messages.
69
- * @param message Log message or plain object to encode
70
- * @param [writer] Writer to encode to
71
- * @returns Writer
72
- */
73
- public static encodeDelimited(message: net.pb.ILog, writer?: $protobuf.Writer): $protobuf.Writer;
74
-
75
- /**
76
- * Decodes a Log message from the specified reader or buffer.
77
- * @param reader Reader or buffer to decode from
78
- * @param [length] Message length if known beforehand
79
- * @returns Log
80
- * @throws {Error} If the payload is not a reader or valid buffer
81
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
82
- */
83
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): net.pb.Log;
84
-
85
- /**
86
- * Decodes a Log message from the specified reader or buffer, length delimited.
87
- * @param reader Reader or buffer to decode from
88
- * @returns Log
89
- * @throws {Error} If the payload is not a reader or valid buffer
90
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
91
- */
92
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): net.pb.Log;
93
-
94
- /**
95
- * Verifies a Log message.
96
- * @param message Plain object to verify
97
- * @returns `null` if valid, otherwise the reason why it is not
98
- */
99
- public static verify(message: { [k: string]: any }): (string|null);
100
-
101
- /**
102
- * Creates a Log message from a plain object. Also converts values to their respective internal types.
103
- * @param object Plain object
104
- * @returns Log
105
- */
106
- public static fromObject(object: { [k: string]: any }): net.pb.Log;
107
-
108
- /**
109
- * Creates a plain object from a Log message. Also converts values to other types if specified.
110
- * @param message Log
111
- * @param [options] Conversion options
112
- * @returns Plain object
113
- */
114
- public static toObject(message: net.pb.Log, options?: $protobuf.IConversionOptions): { [k: string]: any };
115
-
116
- /**
117
- * Converts this Log to JSON.
118
- * @returns JSON object
119
- */
120
- public toJSON(): { [k: string]: any };
121
-
122
- /**
123
- * Gets the default type url for Log
124
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
125
- * @returns The default type url
126
- */
127
- public static getTypeUrl(typeUrlPrefix?: string): string;
128
- }
129
-
130
- namespace Log {
131
-
132
- /** Properties of a Record. */
133
- interface IRecord {
134
-
135
- /** Record recordNode */
136
- recordNode?: (Uint8Array|null);
137
-
138
- /** Record eventNode */
139
- eventNode?: (Uint8Array|null);
140
-
141
- /** Record headerNode */
142
- headerNode?: (Uint8Array|null);
143
-
144
- /** Record bodyNode */
145
- bodyNode?: (Uint8Array|null);
146
- }
147
-
148
- /** Represents a Record. */
149
- class Record implements IRecord {
150
-
151
- /**
152
- * Constructs a new Record.
153
- * @param [properties] Properties to set
154
- */
155
- constructor(properties?: net.pb.Log.IRecord);
156
-
157
- /** Record recordNode. */
158
- public recordNode: Uint8Array;
159
-
160
- /** Record eventNode. */
161
- public eventNode: Uint8Array;
162
-
163
- /** Record headerNode. */
164
- public headerNode: Uint8Array;
165
-
166
- /** Record bodyNode. */
167
- public bodyNode: Uint8Array;
168
-
169
- /**
170
- * Creates a new Record instance using the specified properties.
171
- * @param [properties] Properties to set
172
- * @returns Record instance
173
- */
174
- public static create(properties?: net.pb.Log.IRecord): net.pb.Log.Record;
175
-
176
- /**
177
- * Encodes the specified Record message. Does not implicitly {@link net.pb.Log.Record.verify|verify} messages.
178
- * @param message Record message or plain object to encode
179
- * @param [writer] Writer to encode to
180
- * @returns Writer
181
- */
182
- public static encode(message: net.pb.Log.IRecord, writer?: $protobuf.Writer): $protobuf.Writer;
183
-
184
- /**
185
- * Encodes the specified Record message, length delimited. Does not implicitly {@link net.pb.Log.Record.verify|verify} messages.
186
- * @param message Record message or plain object to encode
187
- * @param [writer] Writer to encode to
188
- * @returns Writer
189
- */
190
- public static encodeDelimited(message: net.pb.Log.IRecord, writer?: $protobuf.Writer): $protobuf.Writer;
191
-
192
- /**
193
- * Decodes a Record message from the specified reader or buffer.
194
- * @param reader Reader or buffer to decode from
195
- * @param [length] Message length if known beforehand
196
- * @returns Record
197
- * @throws {Error} If the payload is not a reader or valid buffer
198
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
199
- */
200
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): net.pb.Log.Record;
201
-
202
- /**
203
- * Decodes a Record message from the specified reader or buffer, length delimited.
204
- * @param reader Reader or buffer to decode from
205
- * @returns Record
206
- * @throws {Error} If the payload is not a reader or valid buffer
207
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
208
- */
209
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): net.pb.Log.Record;
210
-
211
- /**
212
- * Verifies a Record message.
213
- * @param message Plain object to verify
214
- * @returns `null` if valid, otherwise the reason why it is not
215
- */
216
- public static verify(message: { [k: string]: any }): (string|null);
217
-
218
- /**
219
- * Creates a Record message from a plain object. Also converts values to their respective internal types.
220
- * @param object Plain object
221
- * @returns Record
222
- */
223
- public static fromObject(object: { [k: string]: any }): net.pb.Log.Record;
224
-
225
- /**
226
- * Creates a plain object from a Record message. Also converts values to other types if specified.
227
- * @param message Record
228
- * @param [options] Conversion options
229
- * @returns Plain object
230
- */
231
- public static toObject(message: net.pb.Log.Record, options?: $protobuf.IConversionOptions): { [k: string]: any };
232
-
233
- /**
234
- * Converts this Record to JSON.
235
- * @returns JSON object
236
- */
237
- public toJSON(): { [k: string]: any };
238
-
239
- /**
240
- * Gets the default type url for Record
241
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
242
- * @returns The default type url
243
- */
244
- public static getTypeUrl(typeUrlPrefix?: string): string;
245
- }
246
- }
247
-
248
- /** Properties of a GetLogsRequest. */
249
- interface IGetLogsRequest {
250
-
251
- /** GetLogsRequest body */
252
- body?: (net.pb.GetLogsRequest.IBody|null);
253
- }
254
-
255
- /** Represents a GetLogsRequest. */
256
- class GetLogsRequest implements IGetLogsRequest {
257
-
258
- /**
259
- * Constructs a new GetLogsRequest.
260
- * @param [properties] Properties to set
261
- */
262
- constructor(properties?: net.pb.IGetLogsRequest);
263
-
264
- /** GetLogsRequest body. */
265
- public body?: (net.pb.GetLogsRequest.IBody|null);
266
-
267
- /**
268
- * Creates a new GetLogsRequest instance using the specified properties.
269
- * @param [properties] Properties to set
270
- * @returns GetLogsRequest instance
271
- */
272
- public static create(properties?: net.pb.IGetLogsRequest): net.pb.GetLogsRequest;
273
-
274
- /**
275
- * Encodes the specified GetLogsRequest message. Does not implicitly {@link net.pb.GetLogsRequest.verify|verify} messages.
276
- * @param message GetLogsRequest message or plain object to encode
277
- * @param [writer] Writer to encode to
278
- * @returns Writer
279
- */
280
- public static encode(message: net.pb.IGetLogsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
281
-
282
- /**
283
- * Encodes the specified GetLogsRequest message, length delimited. Does not implicitly {@link net.pb.GetLogsRequest.verify|verify} messages.
284
- * @param message GetLogsRequest message or plain object to encode
285
- * @param [writer] Writer to encode to
286
- * @returns Writer
287
- */
288
- public static encodeDelimited(message: net.pb.IGetLogsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
289
-
290
- /**
291
- * Decodes a GetLogsRequest message from the specified reader or buffer.
292
- * @param reader Reader or buffer to decode from
293
- * @param [length] Message length if known beforehand
294
- * @returns GetLogsRequest
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
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): net.pb.GetLogsRequest;
299
-
300
- /**
301
- * Decodes a GetLogsRequest message from the specified reader or buffer, length delimited.
302
- * @param reader Reader or buffer to decode from
303
- * @returns GetLogsRequest
304
- * @throws {Error} If the payload is not a reader or valid buffer
305
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
306
- */
307
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): net.pb.GetLogsRequest;
308
-
309
- /**
310
- * Verifies a GetLogsRequest message.
311
- * @param message Plain object to verify
312
- * @returns `null` if valid, otherwise the reason why it is not
313
- */
314
- public static verify(message: { [k: string]: any }): (string|null);
315
-
316
- /**
317
- * Creates a GetLogsRequest message from a plain object. Also converts values to their respective internal types.
318
- * @param object Plain object
319
- * @returns GetLogsRequest
320
- */
321
- public static fromObject(object: { [k: string]: any }): net.pb.GetLogsRequest;
322
-
323
- /**
324
- * Creates a plain object from a GetLogsRequest message. Also converts values to other types if specified.
325
- * @param message GetLogsRequest
326
- * @param [options] Conversion options
327
- * @returns Plain object
328
- */
329
- public static toObject(message: net.pb.GetLogsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
330
-
331
- /**
332
- * Converts this GetLogsRequest to JSON.
333
- * @returns JSON object
334
- */
335
- public toJSON(): { [k: string]: any };
336
-
337
- /**
338
- * Gets the default type url for GetLogsRequest
339
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
340
- * @returns The default type url
341
- */
342
- public static getTypeUrl(typeUrlPrefix?: string): string;
343
- }
344
-
345
- namespace GetLogsRequest {
346
-
347
- /** Properties of a Body. */
348
- interface IBody {
349
-
350
- /** Body threadID */
351
- threadID?: (Uint8Array|null);
352
-
353
- /** Body serviceKey */
354
- serviceKey?: (Uint8Array|null);
355
- }
356
-
357
- /** Represents a Body. */
358
- class Body implements IBody {
359
-
360
- /**
361
- * Constructs a new Body.
362
- * @param [properties] Properties to set
363
- */
364
- constructor(properties?: net.pb.GetLogsRequest.IBody);
365
-
366
- /** Body threadID. */
367
- public threadID: Uint8Array;
368
-
369
- /** Body serviceKey. */
370
- public serviceKey: Uint8Array;
371
-
372
- /**
373
- * Creates a new Body instance using the specified properties.
374
- * @param [properties] Properties to set
375
- * @returns Body instance
376
- */
377
- public static create(properties?: net.pb.GetLogsRequest.IBody): net.pb.GetLogsRequest.Body;
378
-
379
- /**
380
- * Encodes the specified Body message. Does not implicitly {@link net.pb.GetLogsRequest.Body.verify|verify} messages.
381
- * @param message Body message or plain object to encode
382
- * @param [writer] Writer to encode to
383
- * @returns Writer
384
- */
385
- public static encode(message: net.pb.GetLogsRequest.IBody, writer?: $protobuf.Writer): $protobuf.Writer;
386
-
387
- /**
388
- * Encodes the specified Body message, length delimited. Does not implicitly {@link net.pb.GetLogsRequest.Body.verify|verify} messages.
389
- * @param message Body message or plain object to encode
390
- * @param [writer] Writer to encode to
391
- * @returns Writer
392
- */
393
- public static encodeDelimited(message: net.pb.GetLogsRequest.IBody, writer?: $protobuf.Writer): $protobuf.Writer;
394
-
395
- /**
396
- * Decodes a Body message from the specified reader or buffer.
397
- * @param reader Reader or buffer to decode from
398
- * @param [length] Message length if known beforehand
399
- * @returns Body
400
- * @throws {Error} If the payload is not a reader or valid buffer
401
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
402
- */
403
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): net.pb.GetLogsRequest.Body;
404
-
405
- /**
406
- * Decodes a Body message from the specified reader or buffer, length delimited.
407
- * @param reader Reader or buffer to decode from
408
- * @returns Body
409
- * @throws {Error} If the payload is not a reader or valid buffer
410
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
411
- */
412
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): net.pb.GetLogsRequest.Body;
413
-
414
- /**
415
- * Verifies a Body message.
416
- * @param message Plain object to verify
417
- * @returns `null` if valid, otherwise the reason why it is not
418
- */
419
- public static verify(message: { [k: string]: any }): (string|null);
420
-
421
- /**
422
- * Creates a Body message from a plain object. Also converts values to their respective internal types.
423
- * @param object Plain object
424
- * @returns Body
425
- */
426
- public static fromObject(object: { [k: string]: any }): net.pb.GetLogsRequest.Body;
427
-
428
- /**
429
- * Creates a plain object from a Body message. Also converts values to other types if specified.
430
- * @param message Body
431
- * @param [options] Conversion options
432
- * @returns Plain object
433
- */
434
- public static toObject(message: net.pb.GetLogsRequest.Body, options?: $protobuf.IConversionOptions): { [k: string]: any };
435
-
436
- /**
437
- * Converts this Body to JSON.
438
- * @returns JSON object
439
- */
440
- public toJSON(): { [k: string]: any };
441
-
442
- /**
443
- * Gets the default type url for Body
444
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
445
- * @returns The default type url
446
- */
447
- public static getTypeUrl(typeUrlPrefix?: string): string;
448
- }
449
- }
450
-
451
- /** Properties of a GetLogsReply. */
452
- interface IGetLogsReply {
453
-
454
- /** GetLogsReply logs */
455
- logs?: (net.pb.ILog[]|null);
456
- }
457
-
458
- /** Represents a GetLogsReply. */
459
- class GetLogsReply implements IGetLogsReply {
460
-
461
- /**
462
- * Constructs a new GetLogsReply.
463
- * @param [properties] Properties to set
464
- */
465
- constructor(properties?: net.pb.IGetLogsReply);
466
-
467
- /** GetLogsReply logs. */
468
- public logs: net.pb.ILog[];
469
-
470
- /**
471
- * Creates a new GetLogsReply instance using the specified properties.
472
- * @param [properties] Properties to set
473
- * @returns GetLogsReply instance
474
- */
475
- public static create(properties?: net.pb.IGetLogsReply): net.pb.GetLogsReply;
476
-
477
- /**
478
- * Encodes the specified GetLogsReply message. Does not implicitly {@link net.pb.GetLogsReply.verify|verify} messages.
479
- * @param message GetLogsReply message or plain object to encode
480
- * @param [writer] Writer to encode to
481
- * @returns Writer
482
- */
483
- public static encode(message: net.pb.IGetLogsReply, writer?: $protobuf.Writer): $protobuf.Writer;
484
-
485
- /**
486
- * Encodes the specified GetLogsReply message, length delimited. Does not implicitly {@link net.pb.GetLogsReply.verify|verify} messages.
487
- * @param message GetLogsReply message or plain object to encode
488
- * @param [writer] Writer to encode to
489
- * @returns Writer
490
- */
491
- public static encodeDelimited(message: net.pb.IGetLogsReply, writer?: $protobuf.Writer): $protobuf.Writer;
492
-
493
- /**
494
- * Decodes a GetLogsReply message from the specified reader or buffer.
495
- * @param reader Reader or buffer to decode from
496
- * @param [length] Message length if known beforehand
497
- * @returns GetLogsReply
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
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): net.pb.GetLogsReply;
502
-
503
- /**
504
- * Decodes a GetLogsReply message from the specified reader or buffer, length delimited.
505
- * @param reader Reader or buffer to decode from
506
- * @returns GetLogsReply
507
- * @throws {Error} If the payload is not a reader or valid buffer
508
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
509
- */
510
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): net.pb.GetLogsReply;
511
-
512
- /**
513
- * Verifies a GetLogsReply message.
514
- * @param message Plain object to verify
515
- * @returns `null` if valid, otherwise the reason why it is not
516
- */
517
- public static verify(message: { [k: string]: any }): (string|null);
518
-
519
- /**
520
- * Creates a GetLogsReply message from a plain object. Also converts values to their respective internal types.
521
- * @param object Plain object
522
- * @returns GetLogsReply
523
- */
524
- public static fromObject(object: { [k: string]: any }): net.pb.GetLogsReply;
525
-
526
- /**
527
- * Creates a plain object from a GetLogsReply message. Also converts values to other types if specified.
528
- * @param message GetLogsReply
529
- * @param [options] Conversion options
530
- * @returns Plain object
531
- */
532
- public static toObject(message: net.pb.GetLogsReply, options?: $protobuf.IConversionOptions): { [k: string]: any };
533
-
534
- /**
535
- * Converts this GetLogsReply to JSON.
536
- * @returns JSON object
537
- */
538
- public toJSON(): { [k: string]: any };
539
-
540
- /**
541
- * Gets the default type url for GetLogsReply
542
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
543
- * @returns The default type url
544
- */
545
- public static getTypeUrl(typeUrlPrefix?: string): string;
546
- }
547
-
548
- /** Properties of a PushLogRequest. */
549
- interface IPushLogRequest {
550
-
551
- /** PushLogRequest body */
552
- body?: (net.pb.PushLogRequest.IBody|null);
553
- }
554
-
555
- /** Represents a PushLogRequest. */
556
- class PushLogRequest implements IPushLogRequest {
557
-
558
- /**
559
- * Constructs a new PushLogRequest.
560
- * @param [properties] Properties to set
561
- */
562
- constructor(properties?: net.pb.IPushLogRequest);
563
-
564
- /** PushLogRequest body. */
565
- public body?: (net.pb.PushLogRequest.IBody|null);
566
-
567
- /**
568
- * Creates a new PushLogRequest instance using the specified properties.
569
- * @param [properties] Properties to set
570
- * @returns PushLogRequest instance
571
- */
572
- public static create(properties?: net.pb.IPushLogRequest): net.pb.PushLogRequest;
573
-
574
- /**
575
- * Encodes the specified PushLogRequest message. Does not implicitly {@link net.pb.PushLogRequest.verify|verify} messages.
576
- * @param message PushLogRequest message or plain object to encode
577
- * @param [writer] Writer to encode to
578
- * @returns Writer
579
- */
580
- public static encode(message: net.pb.IPushLogRequest, writer?: $protobuf.Writer): $protobuf.Writer;
581
-
582
- /**
583
- * Encodes the specified PushLogRequest message, length delimited. Does not implicitly {@link net.pb.PushLogRequest.verify|verify} messages.
584
- * @param message PushLogRequest message or plain object to encode
585
- * @param [writer] Writer to encode to
586
- * @returns Writer
587
- */
588
- public static encodeDelimited(message: net.pb.IPushLogRequest, writer?: $protobuf.Writer): $protobuf.Writer;
589
-
590
- /**
591
- * Decodes a PushLogRequest message from the specified reader or buffer.
592
- * @param reader Reader or buffer to decode from
593
- * @param [length] Message length if known beforehand
594
- * @returns PushLogRequest
595
- * @throws {Error} If the payload is not a reader or valid buffer
596
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
597
- */
598
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): net.pb.PushLogRequest;
599
-
600
- /**
601
- * Decodes a PushLogRequest message from the specified reader or buffer, length delimited.
602
- * @param reader Reader or buffer to decode from
603
- * @returns PushLogRequest
604
- * @throws {Error} If the payload is not a reader or valid buffer
605
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
606
- */
607
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): net.pb.PushLogRequest;
608
-
609
- /**
610
- * Verifies a PushLogRequest message.
611
- * @param message Plain object to verify
612
- * @returns `null` if valid, otherwise the reason why it is not
613
- */
614
- public static verify(message: { [k: string]: any }): (string|null);
615
-
616
- /**
617
- * Creates a PushLogRequest message from a plain object. Also converts values to their respective internal types.
618
- * @param object Plain object
619
- * @returns PushLogRequest
620
- */
621
- public static fromObject(object: { [k: string]: any }): net.pb.PushLogRequest;
622
-
623
- /**
624
- * Creates a plain object from a PushLogRequest message. Also converts values to other types if specified.
625
- * @param message PushLogRequest
626
- * @param [options] Conversion options
627
- * @returns Plain object
628
- */
629
- public static toObject(message: net.pb.PushLogRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
630
-
631
- /**
632
- * Converts this PushLogRequest to JSON.
633
- * @returns JSON object
634
- */
635
- public toJSON(): { [k: string]: any };
636
-
637
- /**
638
- * Gets the default type url for PushLogRequest
639
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
640
- * @returns The default type url
641
- */
642
- public static getTypeUrl(typeUrlPrefix?: string): string;
643
- }
644
-
645
- namespace PushLogRequest {
646
-
647
- /** Properties of a Body. */
648
- interface IBody {
649
-
650
- /** Body threadID */
651
- threadID?: (Uint8Array|null);
652
-
653
- /** Body serviceKey */
654
- serviceKey?: (Uint8Array|null);
655
-
656
- /** Body readKey */
657
- readKey?: (Uint8Array|null);
658
-
659
- /** Body log */
660
- log?: (net.pb.ILog|null);
661
- }
662
-
663
- /** Represents a Body. */
664
- class Body implements IBody {
665
-
666
- /**
667
- * Constructs a new Body.
668
- * @param [properties] Properties to set
669
- */
670
- constructor(properties?: net.pb.PushLogRequest.IBody);
671
-
672
- /** Body threadID. */
673
- public threadID: Uint8Array;
674
-
675
- /** Body serviceKey. */
676
- public serviceKey: Uint8Array;
677
-
678
- /** Body readKey. */
679
- public readKey: Uint8Array;
680
-
681
- /** Body log. */
682
- public log?: (net.pb.ILog|null);
683
-
684
- /**
685
- * Creates a new Body instance using the specified properties.
686
- * @param [properties] Properties to set
687
- * @returns Body instance
688
- */
689
- public static create(properties?: net.pb.PushLogRequest.IBody): net.pb.PushLogRequest.Body;
690
-
691
- /**
692
- * Encodes the specified Body message. Does not implicitly {@link net.pb.PushLogRequest.Body.verify|verify} messages.
693
- * @param message Body message or plain object to encode
694
- * @param [writer] Writer to encode to
695
- * @returns Writer
696
- */
697
- public static encode(message: net.pb.PushLogRequest.IBody, writer?: $protobuf.Writer): $protobuf.Writer;
698
-
699
- /**
700
- * Encodes the specified Body message, length delimited. Does not implicitly {@link net.pb.PushLogRequest.Body.verify|verify} messages.
701
- * @param message Body message or plain object to encode
702
- * @param [writer] Writer to encode to
703
- * @returns Writer
704
- */
705
- public static encodeDelimited(message: net.pb.PushLogRequest.IBody, writer?: $protobuf.Writer): $protobuf.Writer;
706
-
707
- /**
708
- * Decodes a Body message from the specified reader or buffer.
709
- * @param reader Reader or buffer to decode from
710
- * @param [length] Message length if known beforehand
711
- * @returns Body
712
- * @throws {Error} If the payload is not a reader or valid buffer
713
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
714
- */
715
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): net.pb.PushLogRequest.Body;
716
-
717
- /**
718
- * Decodes a Body message from the specified reader or buffer, length delimited.
719
- * @param reader Reader or buffer to decode from
720
- * @returns Body
721
- * @throws {Error} If the payload is not a reader or valid buffer
722
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
723
- */
724
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): net.pb.PushLogRequest.Body;
725
-
726
- /**
727
- * Verifies a Body message.
728
- * @param message Plain object to verify
729
- * @returns `null` if valid, otherwise the reason why it is not
730
- */
731
- public static verify(message: { [k: string]: any }): (string|null);
732
-
733
- /**
734
- * Creates a Body message from a plain object. Also converts values to their respective internal types.
735
- * @param object Plain object
736
- * @returns Body
737
- */
738
- public static fromObject(object: { [k: string]: any }): net.pb.PushLogRequest.Body;
739
-
740
- /**
741
- * Creates a plain object from a Body message. Also converts values to other types if specified.
742
- * @param message Body
743
- * @param [options] Conversion options
744
- * @returns Plain object
745
- */
746
- public static toObject(message: net.pb.PushLogRequest.Body, options?: $protobuf.IConversionOptions): { [k: string]: any };
747
-
748
- /**
749
- * Converts this Body to JSON.
750
- * @returns JSON object
751
- */
752
- public toJSON(): { [k: string]: any };
753
-
754
- /**
755
- * Gets the default type url for Body
756
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
757
- * @returns The default type url
758
- */
759
- public static getTypeUrl(typeUrlPrefix?: string): string;
760
- }
761
- }
762
-
763
- /** Properties of a PushLogReply. */
764
- interface IPushLogReply {
765
- }
766
-
767
- /** Represents a PushLogReply. */
768
- class PushLogReply implements IPushLogReply {
769
-
770
- /**
771
- * Constructs a new PushLogReply.
772
- * @param [properties] Properties to set
773
- */
774
- constructor(properties?: net.pb.IPushLogReply);
775
-
776
- /**
777
- * Creates a new PushLogReply instance using the specified properties.
778
- * @param [properties] Properties to set
779
- * @returns PushLogReply instance
780
- */
781
- public static create(properties?: net.pb.IPushLogReply): net.pb.PushLogReply;
782
-
783
- /**
784
- * Encodes the specified PushLogReply message. Does not implicitly {@link net.pb.PushLogReply.verify|verify} messages.
785
- * @param message PushLogReply message or plain object to encode
786
- * @param [writer] Writer to encode to
787
- * @returns Writer
788
- */
789
- public static encode(message: net.pb.IPushLogReply, writer?: $protobuf.Writer): $protobuf.Writer;
790
-
791
- /**
792
- * Encodes the specified PushLogReply message, length delimited. Does not implicitly {@link net.pb.PushLogReply.verify|verify} messages.
793
- * @param message PushLogReply message or plain object to encode
794
- * @param [writer] Writer to encode to
795
- * @returns Writer
796
- */
797
- public static encodeDelimited(message: net.pb.IPushLogReply, writer?: $protobuf.Writer): $protobuf.Writer;
798
-
799
- /**
800
- * Decodes a PushLogReply message from the specified reader or buffer.
801
- * @param reader Reader or buffer to decode from
802
- * @param [length] Message length if known beforehand
803
- * @returns PushLogReply
804
- * @throws {Error} If the payload is not a reader or valid buffer
805
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
806
- */
807
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): net.pb.PushLogReply;
808
-
809
- /**
810
- * Decodes a PushLogReply message from the specified reader or buffer, length delimited.
811
- * @param reader Reader or buffer to decode from
812
- * @returns PushLogReply
813
- * @throws {Error} If the payload is not a reader or valid buffer
814
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
815
- */
816
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): net.pb.PushLogReply;
817
-
818
- /**
819
- * Verifies a PushLogReply message.
820
- * @param message Plain object to verify
821
- * @returns `null` if valid, otherwise the reason why it is not
822
- */
823
- public static verify(message: { [k: string]: any }): (string|null);
824
-
825
- /**
826
- * Creates a PushLogReply message from a plain object. Also converts values to their respective internal types.
827
- * @param object Plain object
828
- * @returns PushLogReply
829
- */
830
- public static fromObject(object: { [k: string]: any }): net.pb.PushLogReply;
831
-
832
- /**
833
- * Creates a plain object from a PushLogReply message. Also converts values to other types if specified.
834
- * @param message PushLogReply
835
- * @param [options] Conversion options
836
- * @returns Plain object
837
- */
838
- public static toObject(message: net.pb.PushLogReply, options?: $protobuf.IConversionOptions): { [k: string]: any };
839
-
840
- /**
841
- * Converts this PushLogReply to JSON.
842
- * @returns JSON object
843
- */
844
- public toJSON(): { [k: string]: any };
845
-
846
- /**
847
- * Gets the default type url for PushLogReply
848
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
849
- * @returns The default type url
850
- */
851
- public static getTypeUrl(typeUrlPrefix?: string): string;
852
- }
853
-
854
- /** Properties of a GetRecordsRequest. */
855
- interface IGetRecordsRequest {
856
-
857
- /** GetRecordsRequest body */
858
- body?: (net.pb.GetRecordsRequest.IBody|null);
859
- }
860
-
861
- /** Represents a GetRecordsRequest. */
862
- class GetRecordsRequest implements IGetRecordsRequest {
863
-
864
- /**
865
- * Constructs a new GetRecordsRequest.
866
- * @param [properties] Properties to set
867
- */
868
- constructor(properties?: net.pb.IGetRecordsRequest);
869
-
870
- /** GetRecordsRequest body. */
871
- public body?: (net.pb.GetRecordsRequest.IBody|null);
872
-
873
- /**
874
- * Creates a new GetRecordsRequest instance using the specified properties.
875
- * @param [properties] Properties to set
876
- * @returns GetRecordsRequest instance
877
- */
878
- public static create(properties?: net.pb.IGetRecordsRequest): net.pb.GetRecordsRequest;
879
-
880
- /**
881
- * Encodes the specified GetRecordsRequest message. Does not implicitly {@link net.pb.GetRecordsRequest.verify|verify} messages.
882
- * @param message GetRecordsRequest message or plain object to encode
883
- * @param [writer] Writer to encode to
884
- * @returns Writer
885
- */
886
- public static encode(message: net.pb.IGetRecordsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
887
-
888
- /**
889
- * Encodes the specified GetRecordsRequest message, length delimited. Does not implicitly {@link net.pb.GetRecordsRequest.verify|verify} messages.
890
- * @param message GetRecordsRequest message or plain object to encode
891
- * @param [writer] Writer to encode to
892
- * @returns Writer
893
- */
894
- public static encodeDelimited(message: net.pb.IGetRecordsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
895
-
896
- /**
897
- * Decodes a GetRecordsRequest message from the specified reader or buffer.
898
- * @param reader Reader or buffer to decode from
899
- * @param [length] Message length if known beforehand
900
- * @returns GetRecordsRequest
901
- * @throws {Error} If the payload is not a reader or valid buffer
902
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
903
- */
904
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): net.pb.GetRecordsRequest;
905
-
906
- /**
907
- * Decodes a GetRecordsRequest message from the specified reader or buffer, length delimited.
908
- * @param reader Reader or buffer to decode from
909
- * @returns GetRecordsRequest
910
- * @throws {Error} If the payload is not a reader or valid buffer
911
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
912
- */
913
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): net.pb.GetRecordsRequest;
914
-
915
- /**
916
- * Verifies a GetRecordsRequest message.
917
- * @param message Plain object to verify
918
- * @returns `null` if valid, otherwise the reason why it is not
919
- */
920
- public static verify(message: { [k: string]: any }): (string|null);
921
-
922
- /**
923
- * Creates a GetRecordsRequest message from a plain object. Also converts values to their respective internal types.
924
- * @param object Plain object
925
- * @returns GetRecordsRequest
926
- */
927
- public static fromObject(object: { [k: string]: any }): net.pb.GetRecordsRequest;
928
-
929
- /**
930
- * Creates a plain object from a GetRecordsRequest message. Also converts values to other types if specified.
931
- * @param message GetRecordsRequest
932
- * @param [options] Conversion options
933
- * @returns Plain object
934
- */
935
- public static toObject(message: net.pb.GetRecordsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
936
-
937
- /**
938
- * Converts this GetRecordsRequest to JSON.
939
- * @returns JSON object
940
- */
941
- public toJSON(): { [k: string]: any };
942
-
943
- /**
944
- * Gets the default type url for GetRecordsRequest
945
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
946
- * @returns The default type url
947
- */
948
- public static getTypeUrl(typeUrlPrefix?: string): string;
949
- }
950
-
951
- namespace GetRecordsRequest {
952
-
953
- /** Properties of a Body. */
954
- interface IBody {
955
-
956
- /** Body threadID */
957
- threadID?: (Uint8Array|null);
958
-
959
- /** Body serviceKey */
960
- serviceKey?: (Uint8Array|null);
961
-
962
- /** Body logs */
963
- logs?: (net.pb.GetRecordsRequest.Body.ILogEntry[]|null);
964
- }
965
-
966
- /** Represents a Body. */
967
- class Body implements IBody {
968
-
969
- /**
970
- * Constructs a new Body.
971
- * @param [properties] Properties to set
972
- */
973
- constructor(properties?: net.pb.GetRecordsRequest.IBody);
974
-
975
- /** Body threadID. */
976
- public threadID: Uint8Array;
977
-
978
- /** Body serviceKey. */
979
- public serviceKey: Uint8Array;
980
-
981
- /** Body logs. */
982
- public logs: net.pb.GetRecordsRequest.Body.ILogEntry[];
983
-
984
- /**
985
- * Creates a new Body instance using the specified properties.
986
- * @param [properties] Properties to set
987
- * @returns Body instance
988
- */
989
- public static create(properties?: net.pb.GetRecordsRequest.IBody): net.pb.GetRecordsRequest.Body;
990
-
991
- /**
992
- * Encodes the specified Body message. Does not implicitly {@link net.pb.GetRecordsRequest.Body.verify|verify} messages.
993
- * @param message Body message or plain object to encode
994
- * @param [writer] Writer to encode to
995
- * @returns Writer
996
- */
997
- public static encode(message: net.pb.GetRecordsRequest.IBody, writer?: $protobuf.Writer): $protobuf.Writer;
998
-
999
- /**
1000
- * Encodes the specified Body message, length delimited. Does not implicitly {@link net.pb.GetRecordsRequest.Body.verify|verify} messages.
1001
- * @param message Body message or plain object to encode
1002
- * @param [writer] Writer to encode to
1003
- * @returns Writer
1004
- */
1005
- public static encodeDelimited(message: net.pb.GetRecordsRequest.IBody, writer?: $protobuf.Writer): $protobuf.Writer;
1006
-
1007
- /**
1008
- * Decodes a Body message from the specified reader or buffer.
1009
- * @param reader Reader or buffer to decode from
1010
- * @param [length] Message length if known beforehand
1011
- * @returns Body
1012
- * @throws {Error} If the payload is not a reader or valid buffer
1013
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1014
- */
1015
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): net.pb.GetRecordsRequest.Body;
1016
-
1017
- /**
1018
- * Decodes a Body message from the specified reader or buffer, length delimited.
1019
- * @param reader Reader or buffer to decode from
1020
- * @returns Body
1021
- * @throws {Error} If the payload is not a reader or valid buffer
1022
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1023
- */
1024
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): net.pb.GetRecordsRequest.Body;
1025
-
1026
- /**
1027
- * Verifies a Body message.
1028
- * @param message Plain object to verify
1029
- * @returns `null` if valid, otherwise the reason why it is not
1030
- */
1031
- public static verify(message: { [k: string]: any }): (string|null);
1032
-
1033
- /**
1034
- * Creates a Body message from a plain object. Also converts values to their respective internal types.
1035
- * @param object Plain object
1036
- * @returns Body
1037
- */
1038
- public static fromObject(object: { [k: string]: any }): net.pb.GetRecordsRequest.Body;
1039
-
1040
- /**
1041
- * Creates a plain object from a Body message. Also converts values to other types if specified.
1042
- * @param message Body
1043
- * @param [options] Conversion options
1044
- * @returns Plain object
1045
- */
1046
- public static toObject(message: net.pb.GetRecordsRequest.Body, options?: $protobuf.IConversionOptions): { [k: string]: any };
1047
-
1048
- /**
1049
- * Converts this Body to JSON.
1050
- * @returns JSON object
1051
- */
1052
- public toJSON(): { [k: string]: any };
1053
-
1054
- /**
1055
- * Gets the default type url for Body
1056
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1057
- * @returns The default type url
1058
- */
1059
- public static getTypeUrl(typeUrlPrefix?: string): string;
1060
- }
1061
-
1062
- namespace Body {
1063
-
1064
- /** Properties of a LogEntry. */
1065
- interface ILogEntry {
1066
-
1067
- /** LogEntry logID */
1068
- logID?: (Uint8Array|null);
1069
-
1070
- /** LogEntry offset */
1071
- offset?: (Uint8Array|null);
1072
-
1073
- /** LogEntry limit */
1074
- limit?: (number|null);
1075
-
1076
- /** LogEntry counter */
1077
- counter?: (number|Long|null);
1078
- }
1079
-
1080
- /** Represents a LogEntry. */
1081
- class LogEntry implements ILogEntry {
1082
-
1083
- /**
1084
- * Constructs a new LogEntry.
1085
- * @param [properties] Properties to set
1086
- */
1087
- constructor(properties?: net.pb.GetRecordsRequest.Body.ILogEntry);
1088
-
1089
- /** LogEntry logID. */
1090
- public logID: Uint8Array;
1091
-
1092
- /** LogEntry offset. */
1093
- public offset: Uint8Array;
1094
-
1095
- /** LogEntry limit. */
1096
- public limit: number;
1097
-
1098
- /** LogEntry counter. */
1099
- public counter: (number|Long);
1100
-
1101
- /**
1102
- * Creates a new LogEntry instance using the specified properties.
1103
- * @param [properties] Properties to set
1104
- * @returns LogEntry instance
1105
- */
1106
- public static create(properties?: net.pb.GetRecordsRequest.Body.ILogEntry): net.pb.GetRecordsRequest.Body.LogEntry;
1107
-
1108
- /**
1109
- * Encodes the specified LogEntry message. Does not implicitly {@link net.pb.GetRecordsRequest.Body.LogEntry.verify|verify} messages.
1110
- * @param message LogEntry message or plain object to encode
1111
- * @param [writer] Writer to encode to
1112
- * @returns Writer
1113
- */
1114
- public static encode(message: net.pb.GetRecordsRequest.Body.ILogEntry, writer?: $protobuf.Writer): $protobuf.Writer;
1115
-
1116
- /**
1117
- * Encodes the specified LogEntry message, length delimited. Does not implicitly {@link net.pb.GetRecordsRequest.Body.LogEntry.verify|verify} messages.
1118
- * @param message LogEntry message or plain object to encode
1119
- * @param [writer] Writer to encode to
1120
- * @returns Writer
1121
- */
1122
- public static encodeDelimited(message: net.pb.GetRecordsRequest.Body.ILogEntry, writer?: $protobuf.Writer): $protobuf.Writer;
1123
-
1124
- /**
1125
- * Decodes a LogEntry message from the specified reader or buffer.
1126
- * @param reader Reader or buffer to decode from
1127
- * @param [length] Message length if known beforehand
1128
- * @returns LogEntry
1129
- * @throws {Error} If the payload is not a reader or valid buffer
1130
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1131
- */
1132
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): net.pb.GetRecordsRequest.Body.LogEntry;
1133
-
1134
- /**
1135
- * Decodes a LogEntry message from the specified reader or buffer, length delimited.
1136
- * @param reader Reader or buffer to decode from
1137
- * @returns LogEntry
1138
- * @throws {Error} If the payload is not a reader or valid buffer
1139
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1140
- */
1141
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): net.pb.GetRecordsRequest.Body.LogEntry;
1142
-
1143
- /**
1144
- * Verifies a LogEntry message.
1145
- * @param message Plain object to verify
1146
- * @returns `null` if valid, otherwise the reason why it is not
1147
- */
1148
- public static verify(message: { [k: string]: any }): (string|null);
1149
-
1150
- /**
1151
- * Creates a LogEntry message from a plain object. Also converts values to their respective internal types.
1152
- * @param object Plain object
1153
- * @returns LogEntry
1154
- */
1155
- public static fromObject(object: { [k: string]: any }): net.pb.GetRecordsRequest.Body.LogEntry;
1156
-
1157
- /**
1158
- * Creates a plain object from a LogEntry message. Also converts values to other types if specified.
1159
- * @param message LogEntry
1160
- * @param [options] Conversion options
1161
- * @returns Plain object
1162
- */
1163
- public static toObject(message: net.pb.GetRecordsRequest.Body.LogEntry, options?: $protobuf.IConversionOptions): { [k: string]: any };
1164
-
1165
- /**
1166
- * Converts this LogEntry to JSON.
1167
- * @returns JSON object
1168
- */
1169
- public toJSON(): { [k: string]: any };
1170
-
1171
- /**
1172
- * Gets the default type url for LogEntry
1173
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1174
- * @returns The default type url
1175
- */
1176
- public static getTypeUrl(typeUrlPrefix?: string): string;
1177
- }
1178
- }
1179
- }
1180
-
1181
- /** Properties of a GetRecordsReply. */
1182
- interface IGetRecordsReply {
1183
-
1184
- /** GetRecordsReply logs */
1185
- logs?: (net.pb.GetRecordsReply.ILogEntry[]|null);
1186
- }
1187
-
1188
- /** Represents a GetRecordsReply. */
1189
- class GetRecordsReply implements IGetRecordsReply {
1190
-
1191
- /**
1192
- * Constructs a new GetRecordsReply.
1193
- * @param [properties] Properties to set
1194
- */
1195
- constructor(properties?: net.pb.IGetRecordsReply);
1196
-
1197
- /** GetRecordsReply logs. */
1198
- public logs: net.pb.GetRecordsReply.ILogEntry[];
1199
-
1200
- /**
1201
- * Creates a new GetRecordsReply instance using the specified properties.
1202
- * @param [properties] Properties to set
1203
- * @returns GetRecordsReply instance
1204
- */
1205
- public static create(properties?: net.pb.IGetRecordsReply): net.pb.GetRecordsReply;
1206
-
1207
- /**
1208
- * Encodes the specified GetRecordsReply message. Does not implicitly {@link net.pb.GetRecordsReply.verify|verify} messages.
1209
- * @param message GetRecordsReply message or plain object to encode
1210
- * @param [writer] Writer to encode to
1211
- * @returns Writer
1212
- */
1213
- public static encode(message: net.pb.IGetRecordsReply, writer?: $protobuf.Writer): $protobuf.Writer;
1214
-
1215
- /**
1216
- * Encodes the specified GetRecordsReply message, length delimited. Does not implicitly {@link net.pb.GetRecordsReply.verify|verify} messages.
1217
- * @param message GetRecordsReply message or plain object to encode
1218
- * @param [writer] Writer to encode to
1219
- * @returns Writer
1220
- */
1221
- public static encodeDelimited(message: net.pb.IGetRecordsReply, writer?: $protobuf.Writer): $protobuf.Writer;
1222
-
1223
- /**
1224
- * Decodes a GetRecordsReply message from the specified reader or buffer.
1225
- * @param reader Reader or buffer to decode from
1226
- * @param [length] Message length if known beforehand
1227
- * @returns GetRecordsReply
1228
- * @throws {Error} If the payload is not a reader or valid buffer
1229
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1230
- */
1231
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): net.pb.GetRecordsReply;
1232
-
1233
- /**
1234
- * Decodes a GetRecordsReply message from the specified reader or buffer, length delimited.
1235
- * @param reader Reader or buffer to decode from
1236
- * @returns GetRecordsReply
1237
- * @throws {Error} If the payload is not a reader or valid buffer
1238
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1239
- */
1240
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): net.pb.GetRecordsReply;
1241
-
1242
- /**
1243
- * Verifies a GetRecordsReply message.
1244
- * @param message Plain object to verify
1245
- * @returns `null` if valid, otherwise the reason why it is not
1246
- */
1247
- public static verify(message: { [k: string]: any }): (string|null);
1248
-
1249
- /**
1250
- * Creates a GetRecordsReply message from a plain object. Also converts values to their respective internal types.
1251
- * @param object Plain object
1252
- * @returns GetRecordsReply
1253
- */
1254
- public static fromObject(object: { [k: string]: any }): net.pb.GetRecordsReply;
1255
-
1256
- /**
1257
- * Creates a plain object from a GetRecordsReply message. Also converts values to other types if specified.
1258
- * @param message GetRecordsReply
1259
- * @param [options] Conversion options
1260
- * @returns Plain object
1261
- */
1262
- public static toObject(message: net.pb.GetRecordsReply, options?: $protobuf.IConversionOptions): { [k: string]: any };
1263
-
1264
- /**
1265
- * Converts this GetRecordsReply to JSON.
1266
- * @returns JSON object
1267
- */
1268
- public toJSON(): { [k: string]: any };
1269
-
1270
- /**
1271
- * Gets the default type url for GetRecordsReply
1272
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1273
- * @returns The default type url
1274
- */
1275
- public static getTypeUrl(typeUrlPrefix?: string): string;
1276
- }
1277
-
1278
- namespace GetRecordsReply {
1279
-
1280
- /** Properties of a LogEntry. */
1281
- interface ILogEntry {
1282
-
1283
- /** LogEntry logID */
1284
- logID?: (Uint8Array|null);
1285
-
1286
- /** LogEntry records */
1287
- records?: (net.pb.Log.IRecord[]|null);
1288
-
1289
- /** LogEntry log */
1290
- log?: (net.pb.ILog|null);
1291
- }
1292
-
1293
- /** Represents a LogEntry. */
1294
- class LogEntry implements ILogEntry {
1295
-
1296
- /**
1297
- * Constructs a new LogEntry.
1298
- * @param [properties] Properties to set
1299
- */
1300
- constructor(properties?: net.pb.GetRecordsReply.ILogEntry);
1301
-
1302
- /** LogEntry logID. */
1303
- public logID: Uint8Array;
1304
-
1305
- /** LogEntry records. */
1306
- public records: net.pb.Log.IRecord[];
1307
-
1308
- /** LogEntry log. */
1309
- public log?: (net.pb.ILog|null);
1310
-
1311
- /**
1312
- * Creates a new LogEntry instance using the specified properties.
1313
- * @param [properties] Properties to set
1314
- * @returns LogEntry instance
1315
- */
1316
- public static create(properties?: net.pb.GetRecordsReply.ILogEntry): net.pb.GetRecordsReply.LogEntry;
1317
-
1318
- /**
1319
- * Encodes the specified LogEntry message. Does not implicitly {@link net.pb.GetRecordsReply.LogEntry.verify|verify} messages.
1320
- * @param message LogEntry message or plain object to encode
1321
- * @param [writer] Writer to encode to
1322
- * @returns Writer
1323
- */
1324
- public static encode(message: net.pb.GetRecordsReply.ILogEntry, writer?: $protobuf.Writer): $protobuf.Writer;
1325
-
1326
- /**
1327
- * Encodes the specified LogEntry message, length delimited. Does not implicitly {@link net.pb.GetRecordsReply.LogEntry.verify|verify} messages.
1328
- * @param message LogEntry message or plain object to encode
1329
- * @param [writer] Writer to encode to
1330
- * @returns Writer
1331
- */
1332
- public static encodeDelimited(message: net.pb.GetRecordsReply.ILogEntry, writer?: $protobuf.Writer): $protobuf.Writer;
1333
-
1334
- /**
1335
- * Decodes a LogEntry message from the specified reader or buffer.
1336
- * @param reader Reader or buffer to decode from
1337
- * @param [length] Message length if known beforehand
1338
- * @returns LogEntry
1339
- * @throws {Error} If the payload is not a reader or valid buffer
1340
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1341
- */
1342
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): net.pb.GetRecordsReply.LogEntry;
1343
-
1344
- /**
1345
- * Decodes a LogEntry message from the specified reader or buffer, length delimited.
1346
- * @param reader Reader or buffer to decode from
1347
- * @returns LogEntry
1348
- * @throws {Error} If the payload is not a reader or valid buffer
1349
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1350
- */
1351
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): net.pb.GetRecordsReply.LogEntry;
1352
-
1353
- /**
1354
- * Verifies a LogEntry message.
1355
- * @param message Plain object to verify
1356
- * @returns `null` if valid, otherwise the reason why it is not
1357
- */
1358
- public static verify(message: { [k: string]: any }): (string|null);
1359
-
1360
- /**
1361
- * Creates a LogEntry message from a plain object. Also converts values to their respective internal types.
1362
- * @param object Plain object
1363
- * @returns LogEntry
1364
- */
1365
- public static fromObject(object: { [k: string]: any }): net.pb.GetRecordsReply.LogEntry;
1366
-
1367
- /**
1368
- * Creates a plain object from a LogEntry message. Also converts values to other types if specified.
1369
- * @param message LogEntry
1370
- * @param [options] Conversion options
1371
- * @returns Plain object
1372
- */
1373
- public static toObject(message: net.pb.GetRecordsReply.LogEntry, options?: $protobuf.IConversionOptions): { [k: string]: any };
1374
-
1375
- /**
1376
- * Converts this LogEntry to JSON.
1377
- * @returns JSON object
1378
- */
1379
- public toJSON(): { [k: string]: any };
1380
-
1381
- /**
1382
- * Gets the default type url for LogEntry
1383
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1384
- * @returns The default type url
1385
- */
1386
- public static getTypeUrl(typeUrlPrefix?: string): string;
1387
- }
1388
- }
1389
-
1390
- /** Properties of a PushRecordRequest. */
1391
- interface IPushRecordRequest {
1392
-
1393
- /** PushRecordRequest body */
1394
- body?: (net.pb.PushRecordRequest.IBody|null);
1395
-
1396
- /** PushRecordRequest counter */
1397
- counter?: (number|Long|null);
1398
- }
1399
-
1400
- /** Represents a PushRecordRequest. */
1401
- class PushRecordRequest implements IPushRecordRequest {
1402
-
1403
- /**
1404
- * Constructs a new PushRecordRequest.
1405
- * @param [properties] Properties to set
1406
- */
1407
- constructor(properties?: net.pb.IPushRecordRequest);
1408
-
1409
- /** PushRecordRequest body. */
1410
- public body?: (net.pb.PushRecordRequest.IBody|null);
1411
-
1412
- /** PushRecordRequest counter. */
1413
- public counter: (number|Long);
1414
-
1415
- /**
1416
- * Creates a new PushRecordRequest instance using the specified properties.
1417
- * @param [properties] Properties to set
1418
- * @returns PushRecordRequest instance
1419
- */
1420
- public static create(properties?: net.pb.IPushRecordRequest): net.pb.PushRecordRequest;
1421
-
1422
- /**
1423
- * Encodes the specified PushRecordRequest message. Does not implicitly {@link net.pb.PushRecordRequest.verify|verify} messages.
1424
- * @param message PushRecordRequest message or plain object to encode
1425
- * @param [writer] Writer to encode to
1426
- * @returns Writer
1427
- */
1428
- public static encode(message: net.pb.IPushRecordRequest, writer?: $protobuf.Writer): $protobuf.Writer;
1429
-
1430
- /**
1431
- * Encodes the specified PushRecordRequest message, length delimited. Does not implicitly {@link net.pb.PushRecordRequest.verify|verify} messages.
1432
- * @param message PushRecordRequest message or plain object to encode
1433
- * @param [writer] Writer to encode to
1434
- * @returns Writer
1435
- */
1436
- public static encodeDelimited(message: net.pb.IPushRecordRequest, writer?: $protobuf.Writer): $protobuf.Writer;
1437
-
1438
- /**
1439
- * Decodes a PushRecordRequest message from the specified reader or buffer.
1440
- * @param reader Reader or buffer to decode from
1441
- * @param [length] Message length if known beforehand
1442
- * @returns PushRecordRequest
1443
- * @throws {Error} If the payload is not a reader or valid buffer
1444
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1445
- */
1446
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): net.pb.PushRecordRequest;
1447
-
1448
- /**
1449
- * Decodes a PushRecordRequest message from the specified reader or buffer, length delimited.
1450
- * @param reader Reader or buffer to decode from
1451
- * @returns PushRecordRequest
1452
- * @throws {Error} If the payload is not a reader or valid buffer
1453
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1454
- */
1455
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): net.pb.PushRecordRequest;
1456
-
1457
- /**
1458
- * Verifies a PushRecordRequest message.
1459
- * @param message Plain object to verify
1460
- * @returns `null` if valid, otherwise the reason why it is not
1461
- */
1462
- public static verify(message: { [k: string]: any }): (string|null);
1463
-
1464
- /**
1465
- * Creates a PushRecordRequest message from a plain object. Also converts values to their respective internal types.
1466
- * @param object Plain object
1467
- * @returns PushRecordRequest
1468
- */
1469
- public static fromObject(object: { [k: string]: any }): net.pb.PushRecordRequest;
1470
-
1471
- /**
1472
- * Creates a plain object from a PushRecordRequest message. Also converts values to other types if specified.
1473
- * @param message PushRecordRequest
1474
- * @param [options] Conversion options
1475
- * @returns Plain object
1476
- */
1477
- public static toObject(message: net.pb.PushRecordRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
1478
-
1479
- /**
1480
- * Converts this PushRecordRequest to JSON.
1481
- * @returns JSON object
1482
- */
1483
- public toJSON(): { [k: string]: any };
1484
-
1485
- /**
1486
- * Gets the default type url for PushRecordRequest
1487
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1488
- * @returns The default type url
1489
- */
1490
- public static getTypeUrl(typeUrlPrefix?: string): string;
1491
- }
1492
-
1493
- namespace PushRecordRequest {
1494
-
1495
- /** Properties of a Body. */
1496
- interface IBody {
1497
-
1498
- /** Body threadID */
1499
- threadID?: (Uint8Array|null);
1500
-
1501
- /** Body logID */
1502
- logID?: (Uint8Array|null);
1503
-
1504
- /** Body record */
1505
- record?: (net.pb.Log.IRecord|null);
1506
- }
1507
-
1508
- /** Represents a Body. */
1509
- class Body implements IBody {
1510
-
1511
- /**
1512
- * Constructs a new Body.
1513
- * @param [properties] Properties to set
1514
- */
1515
- constructor(properties?: net.pb.PushRecordRequest.IBody);
1516
-
1517
- /** Body threadID. */
1518
- public threadID: Uint8Array;
1519
-
1520
- /** Body logID. */
1521
- public logID: Uint8Array;
1522
-
1523
- /** Body record. */
1524
- public record?: (net.pb.Log.IRecord|null);
1525
-
1526
- /**
1527
- * Creates a new Body instance using the specified properties.
1528
- * @param [properties] Properties to set
1529
- * @returns Body instance
1530
- */
1531
- public static create(properties?: net.pb.PushRecordRequest.IBody): net.pb.PushRecordRequest.Body;
1532
-
1533
- /**
1534
- * Encodes the specified Body message. Does not implicitly {@link net.pb.PushRecordRequest.Body.verify|verify} messages.
1535
- * @param message Body message or plain object to encode
1536
- * @param [writer] Writer to encode to
1537
- * @returns Writer
1538
- */
1539
- public static encode(message: net.pb.PushRecordRequest.IBody, writer?: $protobuf.Writer): $protobuf.Writer;
1540
-
1541
- /**
1542
- * Encodes the specified Body message, length delimited. Does not implicitly {@link net.pb.PushRecordRequest.Body.verify|verify} messages.
1543
- * @param message Body message or plain object to encode
1544
- * @param [writer] Writer to encode to
1545
- * @returns Writer
1546
- */
1547
- public static encodeDelimited(message: net.pb.PushRecordRequest.IBody, writer?: $protobuf.Writer): $protobuf.Writer;
1548
-
1549
- /**
1550
- * Decodes a Body message from the specified reader or buffer.
1551
- * @param reader Reader or buffer to decode from
1552
- * @param [length] Message length if known beforehand
1553
- * @returns Body
1554
- * @throws {Error} If the payload is not a reader or valid buffer
1555
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1556
- */
1557
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): net.pb.PushRecordRequest.Body;
1558
-
1559
- /**
1560
- * Decodes a Body message from the specified reader or buffer, length delimited.
1561
- * @param reader Reader or buffer to decode from
1562
- * @returns Body
1563
- * @throws {Error} If the payload is not a reader or valid buffer
1564
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1565
- */
1566
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): net.pb.PushRecordRequest.Body;
1567
-
1568
- /**
1569
- * Verifies a Body message.
1570
- * @param message Plain object to verify
1571
- * @returns `null` if valid, otherwise the reason why it is not
1572
- */
1573
- public static verify(message: { [k: string]: any }): (string|null);
1574
-
1575
- /**
1576
- * Creates a Body message from a plain object. Also converts values to their respective internal types.
1577
- * @param object Plain object
1578
- * @returns Body
1579
- */
1580
- public static fromObject(object: { [k: string]: any }): net.pb.PushRecordRequest.Body;
1581
-
1582
- /**
1583
- * Creates a plain object from a Body message. Also converts values to other types if specified.
1584
- * @param message Body
1585
- * @param [options] Conversion options
1586
- * @returns Plain object
1587
- */
1588
- public static toObject(message: net.pb.PushRecordRequest.Body, options?: $protobuf.IConversionOptions): { [k: string]: any };
1589
-
1590
- /**
1591
- * Converts this Body to JSON.
1592
- * @returns JSON object
1593
- */
1594
- public toJSON(): { [k: string]: any };
1595
-
1596
- /**
1597
- * Gets the default type url for Body
1598
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1599
- * @returns The default type url
1600
- */
1601
- public static getTypeUrl(typeUrlPrefix?: string): string;
1602
- }
1603
- }
1604
-
1605
- /** Properties of a PushRecordReply. */
1606
- interface IPushRecordReply {
1607
- }
1608
-
1609
- /** Represents a PushRecordReply. */
1610
- class PushRecordReply implements IPushRecordReply {
1611
-
1612
- /**
1613
- * Constructs a new PushRecordReply.
1614
- * @param [properties] Properties to set
1615
- */
1616
- constructor(properties?: net.pb.IPushRecordReply);
1617
-
1618
- /**
1619
- * Creates a new PushRecordReply instance using the specified properties.
1620
- * @param [properties] Properties to set
1621
- * @returns PushRecordReply instance
1622
- */
1623
- public static create(properties?: net.pb.IPushRecordReply): net.pb.PushRecordReply;
1624
-
1625
- /**
1626
- * Encodes the specified PushRecordReply message. Does not implicitly {@link net.pb.PushRecordReply.verify|verify} messages.
1627
- * @param message PushRecordReply message or plain object to encode
1628
- * @param [writer] Writer to encode to
1629
- * @returns Writer
1630
- */
1631
- public static encode(message: net.pb.IPushRecordReply, writer?: $protobuf.Writer): $protobuf.Writer;
1632
-
1633
- /**
1634
- * Encodes the specified PushRecordReply message, length delimited. Does not implicitly {@link net.pb.PushRecordReply.verify|verify} messages.
1635
- * @param message PushRecordReply message or plain object to encode
1636
- * @param [writer] Writer to encode to
1637
- * @returns Writer
1638
- */
1639
- public static encodeDelimited(message: net.pb.IPushRecordReply, writer?: $protobuf.Writer): $protobuf.Writer;
1640
-
1641
- /**
1642
- * Decodes a PushRecordReply message from the specified reader or buffer.
1643
- * @param reader Reader or buffer to decode from
1644
- * @param [length] Message length if known beforehand
1645
- * @returns PushRecordReply
1646
- * @throws {Error} If the payload is not a reader or valid buffer
1647
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1648
- */
1649
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): net.pb.PushRecordReply;
1650
-
1651
- /**
1652
- * Decodes a PushRecordReply message from the specified reader or buffer, length delimited.
1653
- * @param reader Reader or buffer to decode from
1654
- * @returns PushRecordReply
1655
- * @throws {Error} If the payload is not a reader or valid buffer
1656
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1657
- */
1658
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): net.pb.PushRecordReply;
1659
-
1660
- /**
1661
- * Verifies a PushRecordReply message.
1662
- * @param message Plain object to verify
1663
- * @returns `null` if valid, otherwise the reason why it is not
1664
- */
1665
- public static verify(message: { [k: string]: any }): (string|null);
1666
-
1667
- /**
1668
- * Creates a PushRecordReply message from a plain object. Also converts values to their respective internal types.
1669
- * @param object Plain object
1670
- * @returns PushRecordReply
1671
- */
1672
- public static fromObject(object: { [k: string]: any }): net.pb.PushRecordReply;
1673
-
1674
- /**
1675
- * Creates a plain object from a PushRecordReply message. Also converts values to other types if specified.
1676
- * @param message PushRecordReply
1677
- * @param [options] Conversion options
1678
- * @returns Plain object
1679
- */
1680
- public static toObject(message: net.pb.PushRecordReply, options?: $protobuf.IConversionOptions): { [k: string]: any };
1681
-
1682
- /**
1683
- * Converts this PushRecordReply to JSON.
1684
- * @returns JSON object
1685
- */
1686
- public toJSON(): { [k: string]: any };
1687
-
1688
- /**
1689
- * Gets the default type url for PushRecordReply
1690
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1691
- * @returns The default type url
1692
- */
1693
- public static getTypeUrl(typeUrlPrefix?: string): string;
1694
- }
1695
-
1696
- /** Properties of an ExchangeEdgesRequest. */
1697
- interface IExchangeEdgesRequest {
1698
-
1699
- /** ExchangeEdgesRequest body */
1700
- body?: (net.pb.ExchangeEdgesRequest.IBody|null);
1701
- }
1702
-
1703
- /** Represents an ExchangeEdgesRequest. */
1704
- class ExchangeEdgesRequest implements IExchangeEdgesRequest {
1705
-
1706
- /**
1707
- * Constructs a new ExchangeEdgesRequest.
1708
- * @param [properties] Properties to set
1709
- */
1710
- constructor(properties?: net.pb.IExchangeEdgesRequest);
1711
-
1712
- /** ExchangeEdgesRequest body. */
1713
- public body?: (net.pb.ExchangeEdgesRequest.IBody|null);
1714
-
1715
- /**
1716
- * Creates a new ExchangeEdgesRequest instance using the specified properties.
1717
- * @param [properties] Properties to set
1718
- * @returns ExchangeEdgesRequest instance
1719
- */
1720
- public static create(properties?: net.pb.IExchangeEdgesRequest): net.pb.ExchangeEdgesRequest;
1721
-
1722
- /**
1723
- * Encodes the specified ExchangeEdgesRequest message. Does not implicitly {@link net.pb.ExchangeEdgesRequest.verify|verify} messages.
1724
- * @param message ExchangeEdgesRequest message or plain object to encode
1725
- * @param [writer] Writer to encode to
1726
- * @returns Writer
1727
- */
1728
- public static encode(message: net.pb.IExchangeEdgesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
1729
-
1730
- /**
1731
- * Encodes the specified ExchangeEdgesRequest message, length delimited. Does not implicitly {@link net.pb.ExchangeEdgesRequest.verify|verify} messages.
1732
- * @param message ExchangeEdgesRequest message or plain object to encode
1733
- * @param [writer] Writer to encode to
1734
- * @returns Writer
1735
- */
1736
- public static encodeDelimited(message: net.pb.IExchangeEdgesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
1737
-
1738
- /**
1739
- * Decodes an ExchangeEdgesRequest message from the specified reader or buffer.
1740
- * @param reader Reader or buffer to decode from
1741
- * @param [length] Message length if known beforehand
1742
- * @returns ExchangeEdgesRequest
1743
- * @throws {Error} If the payload is not a reader or valid buffer
1744
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1745
- */
1746
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): net.pb.ExchangeEdgesRequest;
1747
-
1748
- /**
1749
- * Decodes an ExchangeEdgesRequest message from the specified reader or buffer, length delimited.
1750
- * @param reader Reader or buffer to decode from
1751
- * @returns ExchangeEdgesRequest
1752
- * @throws {Error} If the payload is not a reader or valid buffer
1753
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1754
- */
1755
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): net.pb.ExchangeEdgesRequest;
1756
-
1757
- /**
1758
- * Verifies an ExchangeEdgesRequest message.
1759
- * @param message Plain object to verify
1760
- * @returns `null` if valid, otherwise the reason why it is not
1761
- */
1762
- public static verify(message: { [k: string]: any }): (string|null);
1763
-
1764
- /**
1765
- * Creates an ExchangeEdgesRequest message from a plain object. Also converts values to their respective internal types.
1766
- * @param object Plain object
1767
- * @returns ExchangeEdgesRequest
1768
- */
1769
- public static fromObject(object: { [k: string]: any }): net.pb.ExchangeEdgesRequest;
1770
-
1771
- /**
1772
- * Creates a plain object from an ExchangeEdgesRequest message. Also converts values to other types if specified.
1773
- * @param message ExchangeEdgesRequest
1774
- * @param [options] Conversion options
1775
- * @returns Plain object
1776
- */
1777
- public static toObject(message: net.pb.ExchangeEdgesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
1778
-
1779
- /**
1780
- * Converts this ExchangeEdgesRequest to JSON.
1781
- * @returns JSON object
1782
- */
1783
- public toJSON(): { [k: string]: any };
1784
-
1785
- /**
1786
- * Gets the default type url for ExchangeEdgesRequest
1787
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1788
- * @returns The default type url
1789
- */
1790
- public static getTypeUrl(typeUrlPrefix?: string): string;
1791
- }
1792
-
1793
- namespace ExchangeEdgesRequest {
1794
-
1795
- /** Properties of a Body. */
1796
- interface IBody {
1797
-
1798
- /** Body threads */
1799
- threads?: (net.pb.ExchangeEdgesRequest.Body.IThreadEntry[]|null);
1800
- }
1801
-
1802
- /** Represents a Body. */
1803
- class Body implements IBody {
1804
-
1805
- /**
1806
- * Constructs a new Body.
1807
- * @param [properties] Properties to set
1808
- */
1809
- constructor(properties?: net.pb.ExchangeEdgesRequest.IBody);
1810
-
1811
- /** Body threads. */
1812
- public threads: net.pb.ExchangeEdgesRequest.Body.IThreadEntry[];
1813
-
1814
- /**
1815
- * Creates a new Body instance using the specified properties.
1816
- * @param [properties] Properties to set
1817
- * @returns Body instance
1818
- */
1819
- public static create(properties?: net.pb.ExchangeEdgesRequest.IBody): net.pb.ExchangeEdgesRequest.Body;
1820
-
1821
- /**
1822
- * Encodes the specified Body message. Does not implicitly {@link net.pb.ExchangeEdgesRequest.Body.verify|verify} messages.
1823
- * @param message Body message or plain object to encode
1824
- * @param [writer] Writer to encode to
1825
- * @returns Writer
1826
- */
1827
- public static encode(message: net.pb.ExchangeEdgesRequest.IBody, writer?: $protobuf.Writer): $protobuf.Writer;
1828
-
1829
- /**
1830
- * Encodes the specified Body message, length delimited. Does not implicitly {@link net.pb.ExchangeEdgesRequest.Body.verify|verify} messages.
1831
- * @param message Body message or plain object to encode
1832
- * @param [writer] Writer to encode to
1833
- * @returns Writer
1834
- */
1835
- public static encodeDelimited(message: net.pb.ExchangeEdgesRequest.IBody, writer?: $protobuf.Writer): $protobuf.Writer;
1836
-
1837
- /**
1838
- * Decodes a Body message from the specified reader or buffer.
1839
- * @param reader Reader or buffer to decode from
1840
- * @param [length] Message length if known beforehand
1841
- * @returns Body
1842
- * @throws {Error} If the payload is not a reader or valid buffer
1843
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1844
- */
1845
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): net.pb.ExchangeEdgesRequest.Body;
1846
-
1847
- /**
1848
- * Decodes a Body message from the specified reader or buffer, length delimited.
1849
- * @param reader Reader or buffer to decode from
1850
- * @returns Body
1851
- * @throws {Error} If the payload is not a reader or valid buffer
1852
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1853
- */
1854
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): net.pb.ExchangeEdgesRequest.Body;
1855
-
1856
- /**
1857
- * Verifies a Body message.
1858
- * @param message Plain object to verify
1859
- * @returns `null` if valid, otherwise the reason why it is not
1860
- */
1861
- public static verify(message: { [k: string]: any }): (string|null);
1862
-
1863
- /**
1864
- * Creates a Body message from a plain object. Also converts values to their respective internal types.
1865
- * @param object Plain object
1866
- * @returns Body
1867
- */
1868
- public static fromObject(object: { [k: string]: any }): net.pb.ExchangeEdgesRequest.Body;
1869
-
1870
- /**
1871
- * Creates a plain object from a Body message. Also converts values to other types if specified.
1872
- * @param message Body
1873
- * @param [options] Conversion options
1874
- * @returns Plain object
1875
- */
1876
- public static toObject(message: net.pb.ExchangeEdgesRequest.Body, options?: $protobuf.IConversionOptions): { [k: string]: any };
1877
-
1878
- /**
1879
- * Converts this Body to JSON.
1880
- * @returns JSON object
1881
- */
1882
- public toJSON(): { [k: string]: any };
1883
-
1884
- /**
1885
- * Gets the default type url for Body
1886
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1887
- * @returns The default type url
1888
- */
1889
- public static getTypeUrl(typeUrlPrefix?: string): string;
1890
- }
1891
-
1892
- namespace Body {
1893
-
1894
- /** Properties of a ThreadEntry. */
1895
- interface IThreadEntry {
1896
-
1897
- /** ThreadEntry threadID */
1898
- threadID?: (Uint8Array|null);
1899
-
1900
- /** ThreadEntry addressEdge */
1901
- addressEdge?: (number|Long|null);
1902
-
1903
- /** ThreadEntry headsEdge */
1904
- headsEdge?: (number|Long|null);
1905
- }
1906
-
1907
- /** Represents a ThreadEntry. */
1908
- class ThreadEntry implements IThreadEntry {
1909
-
1910
- /**
1911
- * Constructs a new ThreadEntry.
1912
- * @param [properties] Properties to set
1913
- */
1914
- constructor(properties?: net.pb.ExchangeEdgesRequest.Body.IThreadEntry);
1915
-
1916
- /** ThreadEntry threadID. */
1917
- public threadID: Uint8Array;
1918
-
1919
- /** ThreadEntry addressEdge. */
1920
- public addressEdge: (number|Long);
1921
-
1922
- /** ThreadEntry headsEdge. */
1923
- public headsEdge: (number|Long);
1924
-
1925
- /**
1926
- * Creates a new ThreadEntry instance using the specified properties.
1927
- * @param [properties] Properties to set
1928
- * @returns ThreadEntry instance
1929
- */
1930
- public static create(properties?: net.pb.ExchangeEdgesRequest.Body.IThreadEntry): net.pb.ExchangeEdgesRequest.Body.ThreadEntry;
1931
-
1932
- /**
1933
- * Encodes the specified ThreadEntry message. Does not implicitly {@link net.pb.ExchangeEdgesRequest.Body.ThreadEntry.verify|verify} messages.
1934
- * @param message ThreadEntry message or plain object to encode
1935
- * @param [writer] Writer to encode to
1936
- * @returns Writer
1937
- */
1938
- public static encode(message: net.pb.ExchangeEdgesRequest.Body.IThreadEntry, writer?: $protobuf.Writer): $protobuf.Writer;
1939
-
1940
- /**
1941
- * Encodes the specified ThreadEntry message, length delimited. Does not implicitly {@link net.pb.ExchangeEdgesRequest.Body.ThreadEntry.verify|verify} messages.
1942
- * @param message ThreadEntry message or plain object to encode
1943
- * @param [writer] Writer to encode to
1944
- * @returns Writer
1945
- */
1946
- public static encodeDelimited(message: net.pb.ExchangeEdgesRequest.Body.IThreadEntry, writer?: $protobuf.Writer): $protobuf.Writer;
1947
-
1948
- /**
1949
- * Decodes a ThreadEntry message from the specified reader or buffer.
1950
- * @param reader Reader or buffer to decode from
1951
- * @param [length] Message length if known beforehand
1952
- * @returns ThreadEntry
1953
- * @throws {Error} If the payload is not a reader or valid buffer
1954
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1955
- */
1956
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): net.pb.ExchangeEdgesRequest.Body.ThreadEntry;
1957
-
1958
- /**
1959
- * Decodes a ThreadEntry message from the specified reader or buffer, length delimited.
1960
- * @param reader Reader or buffer to decode from
1961
- * @returns ThreadEntry
1962
- * @throws {Error} If the payload is not a reader or valid buffer
1963
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1964
- */
1965
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): net.pb.ExchangeEdgesRequest.Body.ThreadEntry;
1966
-
1967
- /**
1968
- * Verifies a ThreadEntry message.
1969
- * @param message Plain object to verify
1970
- * @returns `null` if valid, otherwise the reason why it is not
1971
- */
1972
- public static verify(message: { [k: string]: any }): (string|null);
1973
-
1974
- /**
1975
- * Creates a ThreadEntry message from a plain object. Also converts values to their respective internal types.
1976
- * @param object Plain object
1977
- * @returns ThreadEntry
1978
- */
1979
- public static fromObject(object: { [k: string]: any }): net.pb.ExchangeEdgesRequest.Body.ThreadEntry;
1980
-
1981
- /**
1982
- * Creates a plain object from a ThreadEntry message. Also converts values to other types if specified.
1983
- * @param message ThreadEntry
1984
- * @param [options] Conversion options
1985
- * @returns Plain object
1986
- */
1987
- public static toObject(message: net.pb.ExchangeEdgesRequest.Body.ThreadEntry, options?: $protobuf.IConversionOptions): { [k: string]: any };
1988
-
1989
- /**
1990
- * Converts this ThreadEntry to JSON.
1991
- * @returns JSON object
1992
- */
1993
- public toJSON(): { [k: string]: any };
1994
-
1995
- /**
1996
- * Gets the default type url for ThreadEntry
1997
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1998
- * @returns The default type url
1999
- */
2000
- public static getTypeUrl(typeUrlPrefix?: string): string;
2001
- }
2002
- }
2003
- }
2004
-
2005
- /** Properties of an ExchangeEdgesReply. */
2006
- interface IExchangeEdgesReply {
2007
-
2008
- /** ExchangeEdgesReply edges */
2009
- edges?: (net.pb.ExchangeEdgesReply.IThreadEdges[]|null);
2010
- }
2011
-
2012
- /** Represents an ExchangeEdgesReply. */
2013
- class ExchangeEdgesReply implements IExchangeEdgesReply {
2014
-
2015
- /**
2016
- * Constructs a new ExchangeEdgesReply.
2017
- * @param [properties] Properties to set
2018
- */
2019
- constructor(properties?: net.pb.IExchangeEdgesReply);
2020
-
2021
- /** ExchangeEdgesReply edges. */
2022
- public edges: net.pb.ExchangeEdgesReply.IThreadEdges[];
2023
-
2024
- /**
2025
- * Creates a new ExchangeEdgesReply instance using the specified properties.
2026
- * @param [properties] Properties to set
2027
- * @returns ExchangeEdgesReply instance
2028
- */
2029
- public static create(properties?: net.pb.IExchangeEdgesReply): net.pb.ExchangeEdgesReply;
2030
-
2031
- /**
2032
- * Encodes the specified ExchangeEdgesReply message. Does not implicitly {@link net.pb.ExchangeEdgesReply.verify|verify} messages.
2033
- * @param message ExchangeEdgesReply message or plain object to encode
2034
- * @param [writer] Writer to encode to
2035
- * @returns Writer
2036
- */
2037
- public static encode(message: net.pb.IExchangeEdgesReply, writer?: $protobuf.Writer): $protobuf.Writer;
2038
-
2039
- /**
2040
- * Encodes the specified ExchangeEdgesReply message, length delimited. Does not implicitly {@link net.pb.ExchangeEdgesReply.verify|verify} messages.
2041
- * @param message ExchangeEdgesReply message or plain object to encode
2042
- * @param [writer] Writer to encode to
2043
- * @returns Writer
2044
- */
2045
- public static encodeDelimited(message: net.pb.IExchangeEdgesReply, writer?: $protobuf.Writer): $protobuf.Writer;
2046
-
2047
- /**
2048
- * Decodes an ExchangeEdgesReply message from the specified reader or buffer.
2049
- * @param reader Reader or buffer to decode from
2050
- * @param [length] Message length if known beforehand
2051
- * @returns ExchangeEdgesReply
2052
- * @throws {Error} If the payload is not a reader or valid buffer
2053
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2054
- */
2055
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): net.pb.ExchangeEdgesReply;
2056
-
2057
- /**
2058
- * Decodes an ExchangeEdgesReply message from the specified reader or buffer, length delimited.
2059
- * @param reader Reader or buffer to decode from
2060
- * @returns ExchangeEdgesReply
2061
- * @throws {Error} If the payload is not a reader or valid buffer
2062
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2063
- */
2064
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): net.pb.ExchangeEdgesReply;
2065
-
2066
- /**
2067
- * Verifies an ExchangeEdgesReply message.
2068
- * @param message Plain object to verify
2069
- * @returns `null` if valid, otherwise the reason why it is not
2070
- */
2071
- public static verify(message: { [k: string]: any }): (string|null);
2072
-
2073
- /**
2074
- * Creates an ExchangeEdgesReply message from a plain object. Also converts values to their respective internal types.
2075
- * @param object Plain object
2076
- * @returns ExchangeEdgesReply
2077
- */
2078
- public static fromObject(object: { [k: string]: any }): net.pb.ExchangeEdgesReply;
2079
-
2080
- /**
2081
- * Creates a plain object from an ExchangeEdgesReply message. Also converts values to other types if specified.
2082
- * @param message ExchangeEdgesReply
2083
- * @param [options] Conversion options
2084
- * @returns Plain object
2085
- */
2086
- public static toObject(message: net.pb.ExchangeEdgesReply, options?: $protobuf.IConversionOptions): { [k: string]: any };
2087
-
2088
- /**
2089
- * Converts this ExchangeEdgesReply to JSON.
2090
- * @returns JSON object
2091
- */
2092
- public toJSON(): { [k: string]: any };
2093
-
2094
- /**
2095
- * Gets the default type url for ExchangeEdgesReply
2096
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2097
- * @returns The default type url
2098
- */
2099
- public static getTypeUrl(typeUrlPrefix?: string): string;
2100
- }
2101
-
2102
- namespace ExchangeEdgesReply {
2103
-
2104
- /** Properties of a ThreadEdges. */
2105
- interface IThreadEdges {
2106
-
2107
- /** ThreadEdges threadID */
2108
- threadID?: (Uint8Array|null);
2109
-
2110
- /** ThreadEdges exists */
2111
- exists?: (boolean|null);
2112
-
2113
- /** ThreadEdges addressEdge */
2114
- addressEdge?: (number|Long|null);
2115
-
2116
- /** ThreadEdges headsEdge */
2117
- headsEdge?: (number|Long|null);
2118
- }
2119
-
2120
- /** Represents a ThreadEdges. */
2121
- class ThreadEdges implements IThreadEdges {
2122
-
2123
- /**
2124
- * Constructs a new ThreadEdges.
2125
- * @param [properties] Properties to set
2126
- */
2127
- constructor(properties?: net.pb.ExchangeEdgesReply.IThreadEdges);
2128
-
2129
- /** ThreadEdges threadID. */
2130
- public threadID: Uint8Array;
2131
-
2132
- /** ThreadEdges exists. */
2133
- public exists: boolean;
2134
-
2135
- /** ThreadEdges addressEdge. */
2136
- public addressEdge: (number|Long);
2137
-
2138
- /** ThreadEdges headsEdge. */
2139
- public headsEdge: (number|Long);
2140
-
2141
- /**
2142
- * Creates a new ThreadEdges instance using the specified properties.
2143
- * @param [properties] Properties to set
2144
- * @returns ThreadEdges instance
2145
- */
2146
- public static create(properties?: net.pb.ExchangeEdgesReply.IThreadEdges): net.pb.ExchangeEdgesReply.ThreadEdges;
2147
-
2148
- /**
2149
- * Encodes the specified ThreadEdges message. Does not implicitly {@link net.pb.ExchangeEdgesReply.ThreadEdges.verify|verify} messages.
2150
- * @param message ThreadEdges message or plain object to encode
2151
- * @param [writer] Writer to encode to
2152
- * @returns Writer
2153
- */
2154
- public static encode(message: net.pb.ExchangeEdgesReply.IThreadEdges, writer?: $protobuf.Writer): $protobuf.Writer;
2155
-
2156
- /**
2157
- * Encodes the specified ThreadEdges message, length delimited. Does not implicitly {@link net.pb.ExchangeEdgesReply.ThreadEdges.verify|verify} messages.
2158
- * @param message ThreadEdges message or plain object to encode
2159
- * @param [writer] Writer to encode to
2160
- * @returns Writer
2161
- */
2162
- public static encodeDelimited(message: net.pb.ExchangeEdgesReply.IThreadEdges, writer?: $protobuf.Writer): $protobuf.Writer;
2163
-
2164
- /**
2165
- * Decodes a ThreadEdges message from the specified reader or buffer.
2166
- * @param reader Reader or buffer to decode from
2167
- * @param [length] Message length if known beforehand
2168
- * @returns ThreadEdges
2169
- * @throws {Error} If the payload is not a reader or valid buffer
2170
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2171
- */
2172
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): net.pb.ExchangeEdgesReply.ThreadEdges;
2173
-
2174
- /**
2175
- * Decodes a ThreadEdges message from the specified reader or buffer, length delimited.
2176
- * @param reader Reader or buffer to decode from
2177
- * @returns ThreadEdges
2178
- * @throws {Error} If the payload is not a reader or valid buffer
2179
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2180
- */
2181
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): net.pb.ExchangeEdgesReply.ThreadEdges;
2182
-
2183
- /**
2184
- * Verifies a ThreadEdges message.
2185
- * @param message Plain object to verify
2186
- * @returns `null` if valid, otherwise the reason why it is not
2187
- */
2188
- public static verify(message: { [k: string]: any }): (string|null);
2189
-
2190
- /**
2191
- * Creates a ThreadEdges message from a plain object. Also converts values to their respective internal types.
2192
- * @param object Plain object
2193
- * @returns ThreadEdges
2194
- */
2195
- public static fromObject(object: { [k: string]: any }): net.pb.ExchangeEdgesReply.ThreadEdges;
2196
-
2197
- /**
2198
- * Creates a plain object from a ThreadEdges message. Also converts values to other types if specified.
2199
- * @param message ThreadEdges
2200
- * @param [options] Conversion options
2201
- * @returns Plain object
2202
- */
2203
- public static toObject(message: net.pb.ExchangeEdgesReply.ThreadEdges, options?: $protobuf.IConversionOptions): { [k: string]: any };
2204
-
2205
- /**
2206
- * Converts this ThreadEdges to JSON.
2207
- * @returns JSON object
2208
- */
2209
- public toJSON(): { [k: string]: any };
2210
-
2211
- /**
2212
- * Gets the default type url for ThreadEdges
2213
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2214
- * @returns The default type url
2215
- */
2216
- public static getTypeUrl(typeUrlPrefix?: string): string;
2217
- }
2218
- }
2219
-
2220
- /** Represents a Service */
2221
- class Service extends $protobuf.rpc.Service {
2222
-
2223
- /**
2224
- * Constructs a new Service service.
2225
- * @param rpcImpl RPC implementation
2226
- * @param [requestDelimited=false] Whether requests are length-delimited
2227
- * @param [responseDelimited=false] Whether responses are length-delimited
2228
- */
2229
- constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
2230
-
2231
- /**
2232
- * Creates new Service service using the specified rpc implementation.
2233
- * @param rpcImpl RPC implementation
2234
- * @param [requestDelimited=false] Whether requests are length-delimited
2235
- * @param [responseDelimited=false] Whether responses are length-delimited
2236
- * @returns RPC service. Useful where requests and/or responses are streamed.
2237
- */
2238
- public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Service;
2239
-
2240
- /**
2241
- * Calls GetLogs.
2242
- * @param request GetLogsRequest message or plain object
2243
- * @param callback Node-style callback called with the error, if any, and GetLogsReply
2244
- */
2245
- public getLogs(request: net.pb.IGetLogsRequest, callback: net.pb.Service.GetLogsCallback): void;
2246
-
2247
- /**
2248
- * Calls GetLogs.
2249
- * @param request GetLogsRequest message or plain object
2250
- * @returns Promise
2251
- */
2252
- public getLogs(request: net.pb.IGetLogsRequest): Promise<net.pb.GetLogsReply>;
2253
-
2254
- /**
2255
- * Calls PushLog.
2256
- * @param request PushLogRequest message or plain object
2257
- * @param callback Node-style callback called with the error, if any, and PushLogReply
2258
- */
2259
- public pushLog(request: net.pb.IPushLogRequest, callback: net.pb.Service.PushLogCallback): void;
2260
-
2261
- /**
2262
- * Calls PushLog.
2263
- * @param request PushLogRequest message or plain object
2264
- * @returns Promise
2265
- */
2266
- public pushLog(request: net.pb.IPushLogRequest): Promise<net.pb.PushLogReply>;
2267
-
2268
- /**
2269
- * Calls GetRecords.
2270
- * @param request GetRecordsRequest message or plain object
2271
- * @param callback Node-style callback called with the error, if any, and GetRecordsReply
2272
- */
2273
- public getRecords(request: net.pb.IGetRecordsRequest, callback: net.pb.Service.GetRecordsCallback): void;
2274
-
2275
- /**
2276
- * Calls GetRecords.
2277
- * @param request GetRecordsRequest message or plain object
2278
- * @returns Promise
2279
- */
2280
- public getRecords(request: net.pb.IGetRecordsRequest): Promise<net.pb.GetRecordsReply>;
2281
-
2282
- /**
2283
- * Calls PushRecord.
2284
- * @param request PushRecordRequest message or plain object
2285
- * @param callback Node-style callback called with the error, if any, and PushRecordReply
2286
- */
2287
- public pushRecord(request: net.pb.IPushRecordRequest, callback: net.pb.Service.PushRecordCallback): void;
2288
-
2289
- /**
2290
- * Calls PushRecord.
2291
- * @param request PushRecordRequest message or plain object
2292
- * @returns Promise
2293
- */
2294
- public pushRecord(request: net.pb.IPushRecordRequest): Promise<net.pb.PushRecordReply>;
2295
-
2296
- /**
2297
- * Calls ExchangeEdges.
2298
- * @param request ExchangeEdgesRequest message or plain object
2299
- * @param callback Node-style callback called with the error, if any, and ExchangeEdgesReply
2300
- */
2301
- public exchangeEdges(request: net.pb.IExchangeEdgesRequest, callback: net.pb.Service.ExchangeEdgesCallback): void;
2302
-
2303
- /**
2304
- * Calls ExchangeEdges.
2305
- * @param request ExchangeEdgesRequest message or plain object
2306
- * @returns Promise
2307
- */
2308
- public exchangeEdges(request: net.pb.IExchangeEdgesRequest): Promise<net.pb.ExchangeEdgesReply>;
2309
- }
2310
-
2311
- namespace Service {
2312
-
2313
- /**
2314
- * Callback as used by {@link net.pb.Service#getLogs}.
2315
- * @param error Error, if any
2316
- * @param [response] GetLogsReply
2317
- */
2318
- type GetLogsCallback = (error: (Error|null), response?: net.pb.GetLogsReply) => void;
2319
-
2320
- /**
2321
- * Callback as used by {@link net.pb.Service#pushLog}.
2322
- * @param error Error, if any
2323
- * @param [response] PushLogReply
2324
- */
2325
- type PushLogCallback = (error: (Error|null), response?: net.pb.PushLogReply) => void;
2326
-
2327
- /**
2328
- * Callback as used by {@link net.pb.Service#getRecords}.
2329
- * @param error Error, if any
2330
- * @param [response] GetRecordsReply
2331
- */
2332
- type GetRecordsCallback = (error: (Error|null), response?: net.pb.GetRecordsReply) => void;
2333
-
2334
- /**
2335
- * Callback as used by {@link net.pb.Service#pushRecord}.
2336
- * @param error Error, if any
2337
- * @param [response] PushRecordReply
2338
- */
2339
- type PushRecordCallback = (error: (Error|null), response?: net.pb.PushRecordReply) => void;
2340
-
2341
- /**
2342
- * Callback as used by {@link net.pb.Service#exchangeEdges}.
2343
- * @param error Error, if any
2344
- * @param [response] ExchangeEdgesReply
2345
- */
2346
- type ExchangeEdgesCallback = (error: (Error|null), response?: net.pb.ExchangeEdgesReply) => void;
2347
- }
2348
- }
2349
- }