@science-corporation/synapse 0.9.0

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