skyeye-sdk-js 1.4.14 → 1.4.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/SkyEyeClient.d.ts +1 -1
- package/dist/src/SkyEyeClient.js +15 -7
- package/dist/test.js +8 -40
- package/package.json +5 -3
- package/src/SkyEyeClient.ts +15 -7
- package/src/proto/line_chart.proto +25 -0
- package/src/proto/line_chart_grpc_pb.js +1 -0
- package/src/proto/line_chart_pb.js +681 -0
- package/src/proto/protoc.bat +3 -3
- package/src/proto/skyeye_rpc_grpc_pb.js +99 -99
- package/src/proto/skyeye_rpc_pb.js +328 -328
- package/test.ts +9 -47
- package/dist/src/proto/protoc.bat +0 -37
- package/dist/src/proto/protoc.sh +0 -32
- package/dist/src/proto/skyeye_rpc.proto +0 -16
- package/dist/src/proto/skyeye_rpc_grpc_pb.js +0 -99
- package/dist/src/proto/skyeye_rpc_pb.d.ts +0 -47
- package/dist/src/proto/skyeye_rpc_pb.js +0 -328
- package/dist/src/proto/tsconfig.json +0 -118
|
@@ -0,0 +1,681 @@
|
|
|
1
|
+
// source: line_chart.proto
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview
|
|
4
|
+
* @enhanceable
|
|
5
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
|
+
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
|
+
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
// @ts-nocheck
|
|
13
|
+
|
|
14
|
+
var jspb = require('google-protobuf');
|
|
15
|
+
var goog = jspb;
|
|
16
|
+
var global = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return Function('return this')();
|
|
22
|
+
}.call(null));
|
|
23
|
+
|
|
24
|
+
goog.exportSymbol('proto.Series', null, global);
|
|
25
|
+
goog.exportSymbol('proto.SeriesData', null, global);
|
|
26
|
+
goog.exportSymbol('proto.TimeData', null, global);
|
|
27
|
+
/**
|
|
28
|
+
* Generated by JsPbCodeGenerator.
|
|
29
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
30
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
31
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
32
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
33
|
+
* valid.
|
|
34
|
+
* @extends {jspb.Message}
|
|
35
|
+
* @constructor
|
|
36
|
+
*/
|
|
37
|
+
proto.TimeData = function(opt_data) {
|
|
38
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
39
|
+
};
|
|
40
|
+
goog.inherits(proto.TimeData, jspb.Message);
|
|
41
|
+
if (goog.DEBUG && !COMPILED) {
|
|
42
|
+
/**
|
|
43
|
+
* @public
|
|
44
|
+
* @override
|
|
45
|
+
*/
|
|
46
|
+
proto.TimeData.displayName = 'proto.TimeData';
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Generated by JsPbCodeGenerator.
|
|
50
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
51
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
52
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
53
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
54
|
+
* valid.
|
|
55
|
+
* @extends {jspb.Message}
|
|
56
|
+
* @constructor
|
|
57
|
+
*/
|
|
58
|
+
proto.SeriesData = function(opt_data) {
|
|
59
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.SeriesData.repeatedFields_, null);
|
|
60
|
+
};
|
|
61
|
+
goog.inherits(proto.SeriesData, jspb.Message);
|
|
62
|
+
if (goog.DEBUG && !COMPILED) {
|
|
63
|
+
/**
|
|
64
|
+
* @public
|
|
65
|
+
* @override
|
|
66
|
+
*/
|
|
67
|
+
proto.SeriesData.displayName = 'proto.SeriesData';
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Generated by JsPbCodeGenerator.
|
|
71
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
72
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
73
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
74
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
75
|
+
* valid.
|
|
76
|
+
* @extends {jspb.Message}
|
|
77
|
+
* @constructor
|
|
78
|
+
*/
|
|
79
|
+
proto.Series = function(opt_data) {
|
|
80
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.Series.repeatedFields_, null);
|
|
81
|
+
};
|
|
82
|
+
goog.inherits(proto.Series, jspb.Message);
|
|
83
|
+
if (goog.DEBUG && !COMPILED) {
|
|
84
|
+
/**
|
|
85
|
+
* @public
|
|
86
|
+
* @override
|
|
87
|
+
*/
|
|
88
|
+
proto.Series.displayName = 'proto.Series';
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
94
|
+
/**
|
|
95
|
+
* Creates an object representation of this proto.
|
|
96
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
97
|
+
* Optional fields that are not set will be set to undefined.
|
|
98
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
99
|
+
* For the list of reserved names please see:
|
|
100
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
101
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
102
|
+
* JSPB instance for transitional soy proto support:
|
|
103
|
+
* http://goto/soy-param-migration
|
|
104
|
+
* @return {!Object}
|
|
105
|
+
*/
|
|
106
|
+
proto.TimeData.prototype.toObject = function(opt_includeInstance) {
|
|
107
|
+
return proto.TimeData.toObject(opt_includeInstance, this);
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Static version of the {@see toObject} method.
|
|
113
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
114
|
+
* the JSPB instance for transitional soy proto support:
|
|
115
|
+
* http://goto/soy-param-migration
|
|
116
|
+
* @param {!proto.TimeData} msg The msg instance to transform.
|
|
117
|
+
* @return {!Object}
|
|
118
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
119
|
+
*/
|
|
120
|
+
proto.TimeData.toObject = function(includeInstance, msg) {
|
|
121
|
+
var f, obj = {
|
|
122
|
+
realtime: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
|
|
123
|
+
simulationtime: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
|
|
124
|
+
customtime: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0)
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
if (includeInstance) {
|
|
128
|
+
obj.$jspbMessageInstance = msg;
|
|
129
|
+
}
|
|
130
|
+
return obj;
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Deserializes binary data (in protobuf wire format).
|
|
137
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
138
|
+
* @return {!proto.TimeData}
|
|
139
|
+
*/
|
|
140
|
+
proto.TimeData.deserializeBinary = function(bytes) {
|
|
141
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
142
|
+
var msg = new proto.TimeData;
|
|
143
|
+
return proto.TimeData.deserializeBinaryFromReader(msg, reader);
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
149
|
+
* given reader into the given message object.
|
|
150
|
+
* @param {!proto.TimeData} msg The message object to deserialize into.
|
|
151
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
152
|
+
* @return {!proto.TimeData}
|
|
153
|
+
*/
|
|
154
|
+
proto.TimeData.deserializeBinaryFromReader = function(msg, reader) {
|
|
155
|
+
while (reader.nextField()) {
|
|
156
|
+
if (reader.isEndGroup()) {
|
|
157
|
+
break;
|
|
158
|
+
}
|
|
159
|
+
var field = reader.getFieldNumber();
|
|
160
|
+
switch (field) {
|
|
161
|
+
case 1:
|
|
162
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
163
|
+
msg.setRealtime(value);
|
|
164
|
+
break;
|
|
165
|
+
case 2:
|
|
166
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
167
|
+
msg.setSimulationtime(value);
|
|
168
|
+
break;
|
|
169
|
+
case 3:
|
|
170
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
171
|
+
msg.setCustomtime(value);
|
|
172
|
+
break;
|
|
173
|
+
default:
|
|
174
|
+
reader.skipField();
|
|
175
|
+
break;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
return msg;
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
184
|
+
* @return {!Uint8Array}
|
|
185
|
+
*/
|
|
186
|
+
proto.TimeData.prototype.serializeBinary = function() {
|
|
187
|
+
var writer = new jspb.BinaryWriter();
|
|
188
|
+
proto.TimeData.serializeBinaryToWriter(this, writer);
|
|
189
|
+
return writer.getResultBuffer();
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
195
|
+
* format), writing to the given BinaryWriter.
|
|
196
|
+
* @param {!proto.TimeData} message
|
|
197
|
+
* @param {!jspb.BinaryWriter} writer
|
|
198
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
199
|
+
*/
|
|
200
|
+
proto.TimeData.serializeBinaryToWriter = function(message, writer) {
|
|
201
|
+
var f = undefined;
|
|
202
|
+
f = message.getRealtime();
|
|
203
|
+
if (f !== 0.0) {
|
|
204
|
+
writer.writeDouble(
|
|
205
|
+
1,
|
|
206
|
+
f
|
|
207
|
+
);
|
|
208
|
+
}
|
|
209
|
+
f = message.getSimulationtime();
|
|
210
|
+
if (f !== 0.0) {
|
|
211
|
+
writer.writeDouble(
|
|
212
|
+
2,
|
|
213
|
+
f
|
|
214
|
+
);
|
|
215
|
+
}
|
|
216
|
+
f = message.getCustomtime();
|
|
217
|
+
if (f !== 0.0) {
|
|
218
|
+
writer.writeDouble(
|
|
219
|
+
3,
|
|
220
|
+
f
|
|
221
|
+
);
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* optional double realTime = 1;
|
|
228
|
+
* @return {number}
|
|
229
|
+
*/
|
|
230
|
+
proto.TimeData.prototype.getRealtime = function() {
|
|
231
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* @param {number} value
|
|
237
|
+
* @return {!proto.TimeData} returns this
|
|
238
|
+
*/
|
|
239
|
+
proto.TimeData.prototype.setRealtime = function(value) {
|
|
240
|
+
return jspb.Message.setProto3FloatField(this, 1, value);
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* optional double simulationTime = 2;
|
|
246
|
+
* @return {number}
|
|
247
|
+
*/
|
|
248
|
+
proto.TimeData.prototype.getSimulationtime = function() {
|
|
249
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* @param {number} value
|
|
255
|
+
* @return {!proto.TimeData} returns this
|
|
256
|
+
*/
|
|
257
|
+
proto.TimeData.prototype.setSimulationtime = function(value) {
|
|
258
|
+
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* optional double customTime = 3;
|
|
264
|
+
* @return {number}
|
|
265
|
+
*/
|
|
266
|
+
proto.TimeData.prototype.getCustomtime = function() {
|
|
267
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* @param {number} value
|
|
273
|
+
* @return {!proto.TimeData} returns this
|
|
274
|
+
*/
|
|
275
|
+
proto.TimeData.prototype.setCustomtime = function(value) {
|
|
276
|
+
return jspb.Message.setProto3FloatField(this, 3, value);
|
|
277
|
+
};
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* List of repeated fields within this message type.
|
|
283
|
+
* @private {!Array<number>}
|
|
284
|
+
* @const
|
|
285
|
+
*/
|
|
286
|
+
proto.SeriesData.repeatedFields_ = [2];
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
291
|
+
/**
|
|
292
|
+
* Creates an object representation of this proto.
|
|
293
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
294
|
+
* Optional fields that are not set will be set to undefined.
|
|
295
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
296
|
+
* For the list of reserved names please see:
|
|
297
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
298
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
299
|
+
* JSPB instance for transitional soy proto support:
|
|
300
|
+
* http://goto/soy-param-migration
|
|
301
|
+
* @return {!Object}
|
|
302
|
+
*/
|
|
303
|
+
proto.SeriesData.prototype.toObject = function(opt_includeInstance) {
|
|
304
|
+
return proto.SeriesData.toObject(opt_includeInstance, this);
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Static version of the {@see toObject} method.
|
|
310
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
311
|
+
* the JSPB instance for transitional soy proto support:
|
|
312
|
+
* http://goto/soy-param-migration
|
|
313
|
+
* @param {!proto.SeriesData} msg The msg instance to transform.
|
|
314
|
+
* @return {!Object}
|
|
315
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
316
|
+
*/
|
|
317
|
+
proto.SeriesData.toObject = function(includeInstance, msg) {
|
|
318
|
+
var f, obj = {
|
|
319
|
+
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
320
|
+
valueList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 2)) == null ? undefined : f
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
if (includeInstance) {
|
|
324
|
+
obj.$jspbMessageInstance = msg;
|
|
325
|
+
}
|
|
326
|
+
return obj;
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Deserializes binary data (in protobuf wire format).
|
|
333
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
334
|
+
* @return {!proto.SeriesData}
|
|
335
|
+
*/
|
|
336
|
+
proto.SeriesData.deserializeBinary = function(bytes) {
|
|
337
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
338
|
+
var msg = new proto.SeriesData;
|
|
339
|
+
return proto.SeriesData.deserializeBinaryFromReader(msg, reader);
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
345
|
+
* given reader into the given message object.
|
|
346
|
+
* @param {!proto.SeriesData} msg The message object to deserialize into.
|
|
347
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
348
|
+
* @return {!proto.SeriesData}
|
|
349
|
+
*/
|
|
350
|
+
proto.SeriesData.deserializeBinaryFromReader = function(msg, reader) {
|
|
351
|
+
while (reader.nextField()) {
|
|
352
|
+
if (reader.isEndGroup()) {
|
|
353
|
+
break;
|
|
354
|
+
}
|
|
355
|
+
var field = reader.getFieldNumber();
|
|
356
|
+
switch (field) {
|
|
357
|
+
case 1:
|
|
358
|
+
var value = /** @type {string} */ (reader.readString());
|
|
359
|
+
msg.setName(value);
|
|
360
|
+
break;
|
|
361
|
+
case 2:
|
|
362
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedDouble() : [reader.readDouble()]);
|
|
363
|
+
for (var i = 0; i < values.length; i++) {
|
|
364
|
+
msg.addValue(values[i]);
|
|
365
|
+
}
|
|
366
|
+
break;
|
|
367
|
+
default:
|
|
368
|
+
reader.skipField();
|
|
369
|
+
break;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
return msg;
|
|
373
|
+
};
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
378
|
+
* @return {!Uint8Array}
|
|
379
|
+
*/
|
|
380
|
+
proto.SeriesData.prototype.serializeBinary = function() {
|
|
381
|
+
var writer = new jspb.BinaryWriter();
|
|
382
|
+
proto.SeriesData.serializeBinaryToWriter(this, writer);
|
|
383
|
+
return writer.getResultBuffer();
|
|
384
|
+
};
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
389
|
+
* format), writing to the given BinaryWriter.
|
|
390
|
+
* @param {!proto.SeriesData} message
|
|
391
|
+
* @param {!jspb.BinaryWriter} writer
|
|
392
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
393
|
+
*/
|
|
394
|
+
proto.SeriesData.serializeBinaryToWriter = function(message, writer) {
|
|
395
|
+
var f = undefined;
|
|
396
|
+
f = message.getName();
|
|
397
|
+
if (f.length > 0) {
|
|
398
|
+
writer.writeString(
|
|
399
|
+
1,
|
|
400
|
+
f
|
|
401
|
+
);
|
|
402
|
+
}
|
|
403
|
+
f = message.getValueList();
|
|
404
|
+
if (f.length > 0) {
|
|
405
|
+
writer.writePackedDouble(
|
|
406
|
+
2,
|
|
407
|
+
f
|
|
408
|
+
);
|
|
409
|
+
}
|
|
410
|
+
};
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* optional string name = 1;
|
|
415
|
+
* @return {string}
|
|
416
|
+
*/
|
|
417
|
+
proto.SeriesData.prototype.getName = function() {
|
|
418
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
419
|
+
};
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* @param {string} value
|
|
424
|
+
* @return {!proto.SeriesData} returns this
|
|
425
|
+
*/
|
|
426
|
+
proto.SeriesData.prototype.setName = function(value) {
|
|
427
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
428
|
+
};
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* repeated double value = 2;
|
|
433
|
+
* @return {!Array<number>}
|
|
434
|
+
*/
|
|
435
|
+
proto.SeriesData.prototype.getValueList = function() {
|
|
436
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedFloatingPointField(this, 2));
|
|
437
|
+
};
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* @param {!Array<number>} value
|
|
442
|
+
* @return {!proto.SeriesData} returns this
|
|
443
|
+
*/
|
|
444
|
+
proto.SeriesData.prototype.setValueList = function(value) {
|
|
445
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
446
|
+
};
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* @param {number} value
|
|
451
|
+
* @param {number=} opt_index
|
|
452
|
+
* @return {!proto.SeriesData} returns this
|
|
453
|
+
*/
|
|
454
|
+
proto.SeriesData.prototype.addValue = function(value, opt_index) {
|
|
455
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
456
|
+
};
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Clears the list making it empty but non-null.
|
|
461
|
+
* @return {!proto.SeriesData} returns this
|
|
462
|
+
*/
|
|
463
|
+
proto.SeriesData.prototype.clearValueList = function() {
|
|
464
|
+
return this.setValueList([]);
|
|
465
|
+
};
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* List of repeated fields within this message type.
|
|
471
|
+
* @private {!Array<number>}
|
|
472
|
+
* @const
|
|
473
|
+
*/
|
|
474
|
+
proto.Series.repeatedFields_ = [1,2];
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
479
|
+
/**
|
|
480
|
+
* Creates an object representation of this proto.
|
|
481
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
482
|
+
* Optional fields that are not set will be set to undefined.
|
|
483
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
484
|
+
* For the list of reserved names please see:
|
|
485
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
486
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
487
|
+
* JSPB instance for transitional soy proto support:
|
|
488
|
+
* http://goto/soy-param-migration
|
|
489
|
+
* @return {!Object}
|
|
490
|
+
*/
|
|
491
|
+
proto.Series.prototype.toObject = function(opt_includeInstance) {
|
|
492
|
+
return proto.Series.toObject(opt_includeInstance, this);
|
|
493
|
+
};
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* Static version of the {@see toObject} method.
|
|
498
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
499
|
+
* the JSPB instance for transitional soy proto support:
|
|
500
|
+
* http://goto/soy-param-migration
|
|
501
|
+
* @param {!proto.Series} msg The msg instance to transform.
|
|
502
|
+
* @return {!Object}
|
|
503
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
504
|
+
*/
|
|
505
|
+
proto.Series.toObject = function(includeInstance, msg) {
|
|
506
|
+
var f, obj = {
|
|
507
|
+
seriesList: jspb.Message.toObjectList(msg.getSeriesList(),
|
|
508
|
+
proto.SeriesData.toObject, includeInstance),
|
|
509
|
+
timeList: jspb.Message.toObjectList(msg.getTimeList(),
|
|
510
|
+
proto.TimeData.toObject, includeInstance)
|
|
511
|
+
};
|
|
512
|
+
|
|
513
|
+
if (includeInstance) {
|
|
514
|
+
obj.$jspbMessageInstance = msg;
|
|
515
|
+
}
|
|
516
|
+
return obj;
|
|
517
|
+
};
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* Deserializes binary data (in protobuf wire format).
|
|
523
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
524
|
+
* @return {!proto.Series}
|
|
525
|
+
*/
|
|
526
|
+
proto.Series.deserializeBinary = function(bytes) {
|
|
527
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
528
|
+
var msg = new proto.Series;
|
|
529
|
+
return proto.Series.deserializeBinaryFromReader(msg, reader);
|
|
530
|
+
};
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
535
|
+
* given reader into the given message object.
|
|
536
|
+
* @param {!proto.Series} msg The message object to deserialize into.
|
|
537
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
538
|
+
* @return {!proto.Series}
|
|
539
|
+
*/
|
|
540
|
+
proto.Series.deserializeBinaryFromReader = function(msg, reader) {
|
|
541
|
+
while (reader.nextField()) {
|
|
542
|
+
if (reader.isEndGroup()) {
|
|
543
|
+
break;
|
|
544
|
+
}
|
|
545
|
+
var field = reader.getFieldNumber();
|
|
546
|
+
switch (field) {
|
|
547
|
+
case 1:
|
|
548
|
+
var value = new proto.SeriesData;
|
|
549
|
+
reader.readMessage(value,proto.SeriesData.deserializeBinaryFromReader);
|
|
550
|
+
msg.addSeries(value);
|
|
551
|
+
break;
|
|
552
|
+
case 2:
|
|
553
|
+
var value = new proto.TimeData;
|
|
554
|
+
reader.readMessage(value,proto.TimeData.deserializeBinaryFromReader);
|
|
555
|
+
msg.addTime(value);
|
|
556
|
+
break;
|
|
557
|
+
default:
|
|
558
|
+
reader.skipField();
|
|
559
|
+
break;
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
return msg;
|
|
563
|
+
};
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
568
|
+
* @return {!Uint8Array}
|
|
569
|
+
*/
|
|
570
|
+
proto.Series.prototype.serializeBinary = function() {
|
|
571
|
+
var writer = new jspb.BinaryWriter();
|
|
572
|
+
proto.Series.serializeBinaryToWriter(this, writer);
|
|
573
|
+
return writer.getResultBuffer();
|
|
574
|
+
};
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
579
|
+
* format), writing to the given BinaryWriter.
|
|
580
|
+
* @param {!proto.Series} message
|
|
581
|
+
* @param {!jspb.BinaryWriter} writer
|
|
582
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
583
|
+
*/
|
|
584
|
+
proto.Series.serializeBinaryToWriter = function(message, writer) {
|
|
585
|
+
var f = undefined;
|
|
586
|
+
f = message.getSeriesList();
|
|
587
|
+
if (f.length > 0) {
|
|
588
|
+
writer.writeRepeatedMessage(
|
|
589
|
+
1,
|
|
590
|
+
f,
|
|
591
|
+
proto.SeriesData.serializeBinaryToWriter
|
|
592
|
+
);
|
|
593
|
+
}
|
|
594
|
+
f = message.getTimeList();
|
|
595
|
+
if (f.length > 0) {
|
|
596
|
+
writer.writeRepeatedMessage(
|
|
597
|
+
2,
|
|
598
|
+
f,
|
|
599
|
+
proto.TimeData.serializeBinaryToWriter
|
|
600
|
+
);
|
|
601
|
+
}
|
|
602
|
+
};
|
|
603
|
+
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* repeated SeriesData series = 1;
|
|
607
|
+
* @return {!Array<!proto.SeriesData>}
|
|
608
|
+
*/
|
|
609
|
+
proto.Series.prototype.getSeriesList = function() {
|
|
610
|
+
return /** @type{!Array<!proto.SeriesData>} */ (
|
|
611
|
+
jspb.Message.getRepeatedWrapperField(this, proto.SeriesData, 1));
|
|
612
|
+
};
|
|
613
|
+
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* @param {!Array<!proto.SeriesData>} value
|
|
617
|
+
* @return {!proto.Series} returns this
|
|
618
|
+
*/
|
|
619
|
+
proto.Series.prototype.setSeriesList = function(value) {
|
|
620
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
621
|
+
};
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* @param {!proto.SeriesData=} opt_value
|
|
626
|
+
* @param {number=} opt_index
|
|
627
|
+
* @return {!proto.SeriesData}
|
|
628
|
+
*/
|
|
629
|
+
proto.Series.prototype.addSeries = function(opt_value, opt_index) {
|
|
630
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.SeriesData, opt_index);
|
|
631
|
+
};
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* Clears the list making it empty but non-null.
|
|
636
|
+
* @return {!proto.Series} returns this
|
|
637
|
+
*/
|
|
638
|
+
proto.Series.prototype.clearSeriesList = function() {
|
|
639
|
+
return this.setSeriesList([]);
|
|
640
|
+
};
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* repeated TimeData time = 2;
|
|
645
|
+
* @return {!Array<!proto.TimeData>}
|
|
646
|
+
*/
|
|
647
|
+
proto.Series.prototype.getTimeList = function() {
|
|
648
|
+
return /** @type{!Array<!proto.TimeData>} */ (
|
|
649
|
+
jspb.Message.getRepeatedWrapperField(this, proto.TimeData, 2));
|
|
650
|
+
};
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* @param {!Array<!proto.TimeData>} value
|
|
655
|
+
* @return {!proto.Series} returns this
|
|
656
|
+
*/
|
|
657
|
+
proto.Series.prototype.setTimeList = function(value) {
|
|
658
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
659
|
+
};
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* @param {!proto.TimeData=} opt_value
|
|
664
|
+
* @param {number=} opt_index
|
|
665
|
+
* @return {!proto.TimeData}
|
|
666
|
+
*/
|
|
667
|
+
proto.Series.prototype.addTime = function(opt_value, opt_index) {
|
|
668
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.TimeData, opt_index);
|
|
669
|
+
};
|
|
670
|
+
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
* Clears the list making it empty but non-null.
|
|
674
|
+
* @return {!proto.Series} returns this
|
|
675
|
+
*/
|
|
676
|
+
proto.Series.prototype.clearTimeList = function() {
|
|
677
|
+
return this.setTimeList([]);
|
|
678
|
+
};
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
goog.object.extend(exports, proto);
|
package/src/proto/protoc.bat
CHANGED
|
@@ -9,9 +9,9 @@ echo current dir %CD%
|
|
|
9
9
|
set PROTO_FILE=skyeye_rpc.proto
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
set PROTOC_GEN_TS_PATH=
|
|
13
|
-
set GRPC_TOOLS_NODE_PROTOC_PLUGIN=
|
|
14
|
-
set GRPC_TOOLS_NODE_PROTOC=
|
|
12
|
+
set PROTOC_GEN_TS_PATH=D:\UpperComputer\develop\skyeye-sdk-js\node_modules\.bin\protoc-gen-ts.cmd
|
|
13
|
+
set GRPC_TOOLS_NODE_PROTOC_PLUGIN=D:\UpperComputer\develop\skyeye-sdk-js\node_modules\.bin\grpc_tools_node_protoc_plugin.cmd
|
|
14
|
+
set GRPC_TOOLS_NODE_PROTOC=D:\UpperComputer\develop\skyeye-sdk-js\node_modules\.bin\grpc_tools_node_protoc.cmd
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|