@aceplus/smartace-api 2.13.0-alpha.1 → 2.13.0-alpha.6

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.
@@ -30,12 +30,58 @@ goog.object.extend(proto, spic_cabinet_pb);
30
30
  var google_api_annotations_pb = require('./google/api/annotations_pb.js');
31
31
  goog.object.extend(proto, google_api_annotations_pb);
32
32
  goog.exportSymbol('proto.Meta.CabinetLocationMeta', null, global);
33
+ goog.exportSymbol('proto.Meta.SpicType', null, global);
34
+ goog.exportSymbol('proto.Meta.SpicTypeProto', null, global);
35
+ goog.exportSymbol('proto.Meta.SpicTypeProto.SetRequest', null, global);
36
+ goog.exportSymbol('proto.Meta.SpicTypeProto.SetRequest.TargetCase', null, global);
33
37
  goog.exportSymbol('proto.Meta.TemperatureConfigurationProto', null, global);
34
38
  goog.exportSymbol('proto.Meta.TemperatureConfigurationProto.CreateTemplateRequest', null, global);
35
39
  goog.exportSymbol('proto.Meta.TemperatureConfigurationProto.SearchTemplateReply', null, global);
36
40
  goog.exportSymbol('proto.Meta.TemperatureConfigurationProto.SearchTemplateRequest', null, global);
37
41
  goog.exportSymbol('proto.Meta.TemperatureConfigurationProto.SetConfigurationRequest', null, global);
38
42
  goog.exportSymbol('proto.Meta.TemperatureConfigurationProto.SetConfigurationRequest.TargetCase', null, global);
43
+ /**
44
+ * Generated by JsPbCodeGenerator.
45
+ * @param {Array=} opt_data Optional initial data array, typically from a
46
+ * server response, or constructed directly in Javascript. The array is used
47
+ * in place and becomes part of the constructed object. It is not cloned.
48
+ * If no data is provided, the constructed object will be empty, but still
49
+ * valid.
50
+ * @extends {jspb.Message}
51
+ * @constructor
52
+ */
53
+ proto.Meta.SpicTypeProto = function(opt_data) {
54
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
55
+ };
56
+ goog.inherits(proto.Meta.SpicTypeProto, jspb.Message);
57
+ if (goog.DEBUG && !COMPILED) {
58
+ /**
59
+ * @public
60
+ * @override
61
+ */
62
+ proto.Meta.SpicTypeProto.displayName = 'proto.Meta.SpicTypeProto';
63
+ }
64
+ /**
65
+ * Generated by JsPbCodeGenerator.
66
+ * @param {Array=} opt_data Optional initial data array, typically from a
67
+ * server response, or constructed directly in Javascript. The array is used
68
+ * in place and becomes part of the constructed object. It is not cloned.
69
+ * If no data is provided, the constructed object will be empty, but still
70
+ * valid.
71
+ * @extends {jspb.Message}
72
+ * @constructor
73
+ */
74
+ proto.Meta.SpicTypeProto.SetRequest = function(opt_data) {
75
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.Meta.SpicTypeProto.SetRequest.oneofGroups_);
76
+ };
77
+ goog.inherits(proto.Meta.SpicTypeProto.SetRequest, jspb.Message);
78
+ if (goog.DEBUG && !COMPILED) {
79
+ /**
80
+ * @public
81
+ * @override
82
+ */
83
+ proto.Meta.SpicTypeProto.SetRequest.displayName = 'proto.Meta.SpicTypeProto.SetRequest';
84
+ }
39
85
  /**
40
86
  * Generated by JsPbCodeGenerator.
41
87
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -165,6 +211,359 @@ if (goog.DEBUG && !COMPILED) {
165
211
 
166
212
 
167
213
 
214
+ if (jspb.Message.GENERATE_TO_OBJECT) {
215
+ /**
216
+ * Creates an object representation of this proto.
217
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
218
+ * Optional fields that are not set will be set to undefined.
219
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
220
+ * For the list of reserved names please see:
221
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
222
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
223
+ * JSPB instance for transitional soy proto support:
224
+ * http://goto/soy-param-migration
225
+ * @return {!Object}
226
+ */
227
+ proto.Meta.SpicTypeProto.prototype.toObject = function(opt_includeInstance) {
228
+ return proto.Meta.SpicTypeProto.toObject(opt_includeInstance, this);
229
+ };
230
+
231
+
232
+ /**
233
+ * Static version of the {@see toObject} method.
234
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
235
+ * the JSPB instance for transitional soy proto support:
236
+ * http://goto/soy-param-migration
237
+ * @param {!proto.Meta.SpicTypeProto} msg The msg instance to transform.
238
+ * @return {!Object}
239
+ * @suppress {unusedLocalVariables} f is only used for nested messages
240
+ */
241
+ proto.Meta.SpicTypeProto.toObject = function(includeInstance, msg) {
242
+ var f, obj = {
243
+
244
+ };
245
+
246
+ if (includeInstance) {
247
+ obj.$jspbMessageInstance = msg;
248
+ }
249
+ return obj;
250
+ };
251
+ }
252
+
253
+
254
+ /**
255
+ * Deserializes binary data (in protobuf wire format).
256
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
257
+ * @return {!proto.Meta.SpicTypeProto}
258
+ */
259
+ proto.Meta.SpicTypeProto.deserializeBinary = function(bytes) {
260
+ var reader = new jspb.BinaryReader(bytes);
261
+ var msg = new proto.Meta.SpicTypeProto;
262
+ return proto.Meta.SpicTypeProto.deserializeBinaryFromReader(msg, reader);
263
+ };
264
+
265
+
266
+ /**
267
+ * Deserializes binary data (in protobuf wire format) from the
268
+ * given reader into the given message object.
269
+ * @param {!proto.Meta.SpicTypeProto} msg The message object to deserialize into.
270
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
271
+ * @return {!proto.Meta.SpicTypeProto}
272
+ */
273
+ proto.Meta.SpicTypeProto.deserializeBinaryFromReader = function(msg, reader) {
274
+ while (reader.nextField()) {
275
+ if (reader.isEndGroup()) {
276
+ break;
277
+ }
278
+ var field = reader.getFieldNumber();
279
+ switch (field) {
280
+ default:
281
+ reader.skipField();
282
+ break;
283
+ }
284
+ }
285
+ return msg;
286
+ };
287
+
288
+
289
+ /**
290
+ * Serializes the message to binary data (in protobuf wire format).
291
+ * @return {!Uint8Array}
292
+ */
293
+ proto.Meta.SpicTypeProto.prototype.serializeBinary = function() {
294
+ var writer = new jspb.BinaryWriter();
295
+ proto.Meta.SpicTypeProto.serializeBinaryToWriter(this, writer);
296
+ return writer.getResultBuffer();
297
+ };
298
+
299
+
300
+ /**
301
+ * Serializes the given message to binary data (in protobuf wire
302
+ * format), writing to the given BinaryWriter.
303
+ * @param {!proto.Meta.SpicTypeProto} message
304
+ * @param {!jspb.BinaryWriter} writer
305
+ * @suppress {unusedLocalVariables} f is only used for nested messages
306
+ */
307
+ proto.Meta.SpicTypeProto.serializeBinaryToWriter = function(message, writer) {
308
+ var f = undefined;
309
+ };
310
+
311
+
312
+
313
+ /**
314
+ * Oneof group definitions for this message. Each group defines the field
315
+ * numbers belonging to that group. When of these fields' value is set, all
316
+ * other fields in the group are cleared. During deserialization, if multiple
317
+ * fields are encountered for a group, only the last value seen will be kept.
318
+ * @private {!Array<!Array<number>>}
319
+ * @const
320
+ */
321
+ proto.Meta.SpicTypeProto.SetRequest.oneofGroups_ = [[2,3]];
322
+
323
+ /**
324
+ * @enum {number}
325
+ */
326
+ proto.Meta.SpicTypeProto.SetRequest.TargetCase = {
327
+ TARGET_NOT_SET: 0,
328
+ SPIC_UID: 2,
329
+ GROUP_ID: 3
330
+ };
331
+
332
+ /**
333
+ * @return {proto.Meta.SpicTypeProto.SetRequest.TargetCase}
334
+ */
335
+ proto.Meta.SpicTypeProto.SetRequest.prototype.getTargetCase = function() {
336
+ return /** @type {proto.Meta.SpicTypeProto.SetRequest.TargetCase} */(jspb.Message.computeOneofCase(this, proto.Meta.SpicTypeProto.SetRequest.oneofGroups_[0]));
337
+ };
338
+
339
+
340
+
341
+ if (jspb.Message.GENERATE_TO_OBJECT) {
342
+ /**
343
+ * Creates an object representation of this proto.
344
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
345
+ * Optional fields that are not set will be set to undefined.
346
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
347
+ * For the list of reserved names please see:
348
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
349
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
350
+ * JSPB instance for transitional soy proto support:
351
+ * http://goto/soy-param-migration
352
+ * @return {!Object}
353
+ */
354
+ proto.Meta.SpicTypeProto.SetRequest.prototype.toObject = function(opt_includeInstance) {
355
+ return proto.Meta.SpicTypeProto.SetRequest.toObject(opt_includeInstance, this);
356
+ };
357
+
358
+
359
+ /**
360
+ * Static version of the {@see toObject} method.
361
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
362
+ * the JSPB instance for transitional soy proto support:
363
+ * http://goto/soy-param-migration
364
+ * @param {!proto.Meta.SpicTypeProto.SetRequest} msg The msg instance to transform.
365
+ * @return {!Object}
366
+ * @suppress {unusedLocalVariables} f is only used for nested messages
367
+ */
368
+ proto.Meta.SpicTypeProto.SetRequest.toObject = function(includeInstance, msg) {
369
+ var f, obj = {
370
+ spicType: jspb.Message.getFieldWithDefault(msg, 1, 0),
371
+ spicUid: jspb.Message.getFieldWithDefault(msg, 2, ""),
372
+ groupId: jspb.Message.getFieldWithDefault(msg, 3, "")
373
+ };
374
+
375
+ if (includeInstance) {
376
+ obj.$jspbMessageInstance = msg;
377
+ }
378
+ return obj;
379
+ };
380
+ }
381
+
382
+
383
+ /**
384
+ * Deserializes binary data (in protobuf wire format).
385
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
386
+ * @return {!proto.Meta.SpicTypeProto.SetRequest}
387
+ */
388
+ proto.Meta.SpicTypeProto.SetRequest.deserializeBinary = function(bytes) {
389
+ var reader = new jspb.BinaryReader(bytes);
390
+ var msg = new proto.Meta.SpicTypeProto.SetRequest;
391
+ return proto.Meta.SpicTypeProto.SetRequest.deserializeBinaryFromReader(msg, reader);
392
+ };
393
+
394
+
395
+ /**
396
+ * Deserializes binary data (in protobuf wire format) from the
397
+ * given reader into the given message object.
398
+ * @param {!proto.Meta.SpicTypeProto.SetRequest} msg The message object to deserialize into.
399
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
400
+ * @return {!proto.Meta.SpicTypeProto.SetRequest}
401
+ */
402
+ proto.Meta.SpicTypeProto.SetRequest.deserializeBinaryFromReader = function(msg, reader) {
403
+ while (reader.nextField()) {
404
+ if (reader.isEndGroup()) {
405
+ break;
406
+ }
407
+ var field = reader.getFieldNumber();
408
+ switch (field) {
409
+ case 1:
410
+ var value = /** @type {!proto.Meta.SpicType} */ (reader.readEnum());
411
+ msg.setSpicType(value);
412
+ break;
413
+ case 2:
414
+ var value = /** @type {string} */ (reader.readString());
415
+ msg.setSpicUid(value);
416
+ break;
417
+ case 3:
418
+ var value = /** @type {string} */ (reader.readString());
419
+ msg.setGroupId(value);
420
+ break;
421
+ default:
422
+ reader.skipField();
423
+ break;
424
+ }
425
+ }
426
+ return msg;
427
+ };
428
+
429
+
430
+ /**
431
+ * Serializes the message to binary data (in protobuf wire format).
432
+ * @return {!Uint8Array}
433
+ */
434
+ proto.Meta.SpicTypeProto.SetRequest.prototype.serializeBinary = function() {
435
+ var writer = new jspb.BinaryWriter();
436
+ proto.Meta.SpicTypeProto.SetRequest.serializeBinaryToWriter(this, writer);
437
+ return writer.getResultBuffer();
438
+ };
439
+
440
+
441
+ /**
442
+ * Serializes the given message to binary data (in protobuf wire
443
+ * format), writing to the given BinaryWriter.
444
+ * @param {!proto.Meta.SpicTypeProto.SetRequest} message
445
+ * @param {!jspb.BinaryWriter} writer
446
+ * @suppress {unusedLocalVariables} f is only used for nested messages
447
+ */
448
+ proto.Meta.SpicTypeProto.SetRequest.serializeBinaryToWriter = function(message, writer) {
449
+ var f = undefined;
450
+ f = message.getSpicType();
451
+ if (f !== 0.0) {
452
+ writer.writeEnum(
453
+ 1,
454
+ f
455
+ );
456
+ }
457
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
458
+ if (f != null) {
459
+ writer.writeString(
460
+ 2,
461
+ f
462
+ );
463
+ }
464
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
465
+ if (f != null) {
466
+ writer.writeString(
467
+ 3,
468
+ f
469
+ );
470
+ }
471
+ };
472
+
473
+
474
+ /**
475
+ * optional SpicType spic_type = 1;
476
+ * @return {!proto.Meta.SpicType}
477
+ */
478
+ proto.Meta.SpicTypeProto.SetRequest.prototype.getSpicType = function() {
479
+ return /** @type {!proto.Meta.SpicType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
480
+ };
481
+
482
+
483
+ /**
484
+ * @param {!proto.Meta.SpicType} value
485
+ * @return {!proto.Meta.SpicTypeProto.SetRequest} returns this
486
+ */
487
+ proto.Meta.SpicTypeProto.SetRequest.prototype.setSpicType = function(value) {
488
+ return jspb.Message.setProto3EnumField(this, 1, value);
489
+ };
490
+
491
+
492
+ /**
493
+ * optional string spic_uid = 2;
494
+ * @return {string}
495
+ */
496
+ proto.Meta.SpicTypeProto.SetRequest.prototype.getSpicUid = function() {
497
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
498
+ };
499
+
500
+
501
+ /**
502
+ * @param {string} value
503
+ * @return {!proto.Meta.SpicTypeProto.SetRequest} returns this
504
+ */
505
+ proto.Meta.SpicTypeProto.SetRequest.prototype.setSpicUid = function(value) {
506
+ return jspb.Message.setOneofField(this, 2, proto.Meta.SpicTypeProto.SetRequest.oneofGroups_[0], value);
507
+ };
508
+
509
+
510
+ /**
511
+ * Clears the field making it undefined.
512
+ * @return {!proto.Meta.SpicTypeProto.SetRequest} returns this
513
+ */
514
+ proto.Meta.SpicTypeProto.SetRequest.prototype.clearSpicUid = function() {
515
+ return jspb.Message.setOneofField(this, 2, proto.Meta.SpicTypeProto.SetRequest.oneofGroups_[0], undefined);
516
+ };
517
+
518
+
519
+ /**
520
+ * Returns whether this field is set.
521
+ * @return {boolean}
522
+ */
523
+ proto.Meta.SpicTypeProto.SetRequest.prototype.hasSpicUid = function() {
524
+ return jspb.Message.getField(this, 2) != null;
525
+ };
526
+
527
+
528
+ /**
529
+ * optional string group_id = 3;
530
+ * @return {string}
531
+ */
532
+ proto.Meta.SpicTypeProto.SetRequest.prototype.getGroupId = function() {
533
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
534
+ };
535
+
536
+
537
+ /**
538
+ * @param {string} value
539
+ * @return {!proto.Meta.SpicTypeProto.SetRequest} returns this
540
+ */
541
+ proto.Meta.SpicTypeProto.SetRequest.prototype.setGroupId = function(value) {
542
+ return jspb.Message.setOneofField(this, 3, proto.Meta.SpicTypeProto.SetRequest.oneofGroups_[0], value);
543
+ };
544
+
545
+
546
+ /**
547
+ * Clears the field making it undefined.
548
+ * @return {!proto.Meta.SpicTypeProto.SetRequest} returns this
549
+ */
550
+ proto.Meta.SpicTypeProto.SetRequest.prototype.clearGroupId = function() {
551
+ return jspb.Message.setOneofField(this, 3, proto.Meta.SpicTypeProto.SetRequest.oneofGroups_[0], undefined);
552
+ };
553
+
554
+
555
+ /**
556
+ * Returns whether this field is set.
557
+ * @return {boolean}
558
+ */
559
+ proto.Meta.SpicTypeProto.SetRequest.prototype.hasGroupId = function() {
560
+ return jspb.Message.getField(this, 3) != null;
561
+ };
562
+
563
+
564
+
565
+
566
+
168
567
  if (jspb.Message.GENERATE_TO_OBJECT) {
169
568
  /**
170
569
  * Creates an object representation of this proto.
@@ -933,8 +1332,8 @@ proto.Meta.TemperatureConfigurationProto.SearchTemplateReply.prototype.toObject
933
1332
  */
934
1333
  proto.Meta.TemperatureConfigurationProto.SearchTemplateReply.toObject = function(includeInstance, msg) {
935
1334
  var f, obj = {
936
- cabinetsList: jspb.Message.toObjectList(msg.getCabinetsList(),
937
- spic_cabinet_pb.CabinetWithLocation.toObject, includeInstance),
1335
+ templatesList: jspb.Message.toObjectList(msg.getTemplatesList(),
1336
+ proto.Meta.TemperatureConfigurationProto.toObject, includeInstance),
938
1337
  pagination: (f = msg.getPagination()) && platform_pagination_pb.PaginationProto.toObject(includeInstance, f)
939
1338
  };
940
1339
 
@@ -973,9 +1372,9 @@ proto.Meta.TemperatureConfigurationProto.SearchTemplateReply.deserializeBinaryFr
973
1372
  var field = reader.getFieldNumber();
974
1373
  switch (field) {
975
1374
  case 1:
976
- var value = new spic_cabinet_pb.CabinetWithLocation;
977
- reader.readMessage(value,spic_cabinet_pb.CabinetWithLocation.deserializeBinaryFromReader);
978
- msg.addCabinets(value);
1375
+ var value = new proto.Meta.TemperatureConfigurationProto;
1376
+ reader.readMessage(value,proto.Meta.TemperatureConfigurationProto.deserializeBinaryFromReader);
1377
+ msg.addTemplates(value);
979
1378
  break;
980
1379
  case 2:
981
1380
  var value = new platform_pagination_pb.PaginationProto;
@@ -1011,12 +1410,12 @@ proto.Meta.TemperatureConfigurationProto.SearchTemplateReply.prototype.serialize
1011
1410
  */
1012
1411
  proto.Meta.TemperatureConfigurationProto.SearchTemplateReply.serializeBinaryToWriter = function(message, writer) {
1013
1412
  var f = undefined;
1014
- f = message.getCabinetsList();
1413
+ f = message.getTemplatesList();
1015
1414
  if (f.length > 0) {
1016
1415
  writer.writeRepeatedMessage(
1017
1416
  1,
1018
1417
  f,
1019
- spic_cabinet_pb.CabinetWithLocation.serializeBinaryToWriter
1418
+ proto.Meta.TemperatureConfigurationProto.serializeBinaryToWriter
1020
1419
  );
1021
1420
  }
1022
1421
  f = message.getPagination();
@@ -1031,31 +1430,31 @@ proto.Meta.TemperatureConfigurationProto.SearchTemplateReply.serializeBinaryToWr
1031
1430
 
1032
1431
 
1033
1432
  /**
1034
- * repeated Spic.CabinetWithLocation cabinets = 1;
1035
- * @return {!Array<!proto.Spic.CabinetWithLocation>}
1433
+ * repeated TemperatureConfigurationProto templates = 1;
1434
+ * @return {!Array<!proto.Meta.TemperatureConfigurationProto>}
1036
1435
  */
1037
- proto.Meta.TemperatureConfigurationProto.SearchTemplateReply.prototype.getCabinetsList = function() {
1038
- return /** @type{!Array<!proto.Spic.CabinetWithLocation>} */ (
1039
- jspb.Message.getRepeatedWrapperField(this, spic_cabinet_pb.CabinetWithLocation, 1));
1436
+ proto.Meta.TemperatureConfigurationProto.SearchTemplateReply.prototype.getTemplatesList = function() {
1437
+ return /** @type{!Array<!proto.Meta.TemperatureConfigurationProto>} */ (
1438
+ jspb.Message.getRepeatedWrapperField(this, proto.Meta.TemperatureConfigurationProto, 1));
1040
1439
  };
1041
1440
 
1042
1441
 
1043
1442
  /**
1044
- * @param {!Array<!proto.Spic.CabinetWithLocation>} value
1443
+ * @param {!Array<!proto.Meta.TemperatureConfigurationProto>} value
1045
1444
  * @return {!proto.Meta.TemperatureConfigurationProto.SearchTemplateReply} returns this
1046
1445
  */
1047
- proto.Meta.TemperatureConfigurationProto.SearchTemplateReply.prototype.setCabinetsList = function(value) {
1446
+ proto.Meta.TemperatureConfigurationProto.SearchTemplateReply.prototype.setTemplatesList = function(value) {
1048
1447
  return jspb.Message.setRepeatedWrapperField(this, 1, value);
1049
1448
  };
1050
1449
 
1051
1450
 
1052
1451
  /**
1053
- * @param {!proto.Spic.CabinetWithLocation=} opt_value
1452
+ * @param {!proto.Meta.TemperatureConfigurationProto=} opt_value
1054
1453
  * @param {number=} opt_index
1055
- * @return {!proto.Spic.CabinetWithLocation}
1454
+ * @return {!proto.Meta.TemperatureConfigurationProto}
1056
1455
  */
1057
- proto.Meta.TemperatureConfigurationProto.SearchTemplateReply.prototype.addCabinets = function(opt_value, opt_index) {
1058
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Spic.CabinetWithLocation, opt_index);
1456
+ proto.Meta.TemperatureConfigurationProto.SearchTemplateReply.prototype.addTemplates = function(opt_value, opt_index) {
1457
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Meta.TemperatureConfigurationProto, opt_index);
1059
1458
  };
1060
1459
 
1061
1460
 
@@ -1063,8 +1462,8 @@ proto.Meta.TemperatureConfigurationProto.SearchTemplateReply.prototype.addCabine
1063
1462
  * Clears the list making it empty but non-null.
1064
1463
  * @return {!proto.Meta.TemperatureConfigurationProto.SearchTemplateReply} returns this
1065
1464
  */
1066
- proto.Meta.TemperatureConfigurationProto.SearchTemplateReply.prototype.clearCabinetsList = function() {
1067
- return this.setCabinetsList([]);
1465
+ proto.Meta.TemperatureConfigurationProto.SearchTemplateReply.prototype.clearTemplatesList = function() {
1466
+ return this.setTemplatesList([]);
1068
1467
  };
1069
1468
 
1070
1469
 
@@ -1210,7 +1609,8 @@ proto.Meta.CabinetLocationMeta.prototype.toObject = function(opt_includeInstance
1210
1609
  proto.Meta.CabinetLocationMeta.toObject = function(includeInstance, msg) {
1211
1610
  var f, obj = {
1212
1611
  cabinetLocation: (f = msg.getCabinetLocation()) && spic_cabinet_pb.CabinetWithLocation.toObject(includeInstance, f),
1213
- temperatureConfiguration: (f = msg.getTemperatureConfiguration()) && proto.Meta.TemperatureConfigurationProto.toObject(includeInstance, f)
1612
+ temperatureConfiguration: (f = msg.getTemperatureConfiguration()) && proto.Meta.TemperatureConfigurationProto.toObject(includeInstance, f),
1613
+ spicType: jspb.Message.getFieldWithDefault(msg, 3, 0)
1214
1614
  };
1215
1615
 
1216
1616
  if (includeInstance) {
@@ -1257,6 +1657,10 @@ proto.Meta.CabinetLocationMeta.deserializeBinaryFromReader = function(msg, reade
1257
1657
  reader.readMessage(value,proto.Meta.TemperatureConfigurationProto.deserializeBinaryFromReader);
1258
1658
  msg.setTemperatureConfiguration(value);
1259
1659
  break;
1660
+ case 3:
1661
+ var value = /** @type {!proto.Meta.SpicType} */ (reader.readEnum());
1662
+ msg.setSpicType(value);
1663
+ break;
1260
1664
  default:
1261
1665
  reader.skipField();
1262
1666
  break;
@@ -1302,6 +1706,13 @@ proto.Meta.CabinetLocationMeta.serializeBinaryToWriter = function(message, write
1302
1706
  proto.Meta.TemperatureConfigurationProto.serializeBinaryToWriter
1303
1707
  );
1304
1708
  }
1709
+ f = message.getSpicType();
1710
+ if (f !== 0.0) {
1711
+ writer.writeEnum(
1712
+ 3,
1713
+ f
1714
+ );
1715
+ }
1305
1716
  };
1306
1717
 
1307
1718
 
@@ -1379,4 +1790,31 @@ proto.Meta.CabinetLocationMeta.prototype.hasTemperatureConfiguration = function(
1379
1790
  };
1380
1791
 
1381
1792
 
1793
+ /**
1794
+ * optional SpicType spic_type = 3;
1795
+ * @return {!proto.Meta.SpicType}
1796
+ */
1797
+ proto.Meta.CabinetLocationMeta.prototype.getSpicType = function() {
1798
+ return /** @type {!proto.Meta.SpicType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1799
+ };
1800
+
1801
+
1802
+ /**
1803
+ * @param {!proto.Meta.SpicType} value
1804
+ * @return {!proto.Meta.CabinetLocationMeta} returns this
1805
+ */
1806
+ proto.Meta.CabinetLocationMeta.prototype.setSpicType = function(value) {
1807
+ return jspb.Message.setProto3EnumField(this, 3, value);
1808
+ };
1809
+
1810
+
1811
+ /**
1812
+ * @enum {number}
1813
+ */
1814
+ proto.Meta.SpicType = {
1815
+ CABINET: 0,
1816
+ MANHOLE: 1,
1817
+ CLOSURE: 2
1818
+ };
1819
+
1382
1820
  goog.object.extend(exports, proto.Meta);
@@ -15,6 +15,15 @@ type CabinetMetaGRPCRetrieve = {
15
15
  readonly responseType: typeof meta_spic_config_pb.CabinetLocationMeta;
16
16
  };
17
17
 
18
+ type CabinetMetaGRPCSetSpicType = {
19
+ readonly methodName: string;
20
+ readonly service: typeof CabinetMetaGRPC;
21
+ readonly requestStream: false;
22
+ readonly responseStream: false;
23
+ readonly requestType: typeof meta_spic_config_pb.SpicTypeProto.SetRequest;
24
+ readonly responseType: typeof google_protobuf_empty_pb.Empty;
25
+ };
26
+
18
27
  type CabinetMetaGRPCSetTemperatureConfiguration = {
19
28
  readonly methodName: string;
20
29
  readonly service: typeof CabinetMetaGRPC;
@@ -45,6 +54,7 @@ type CabinetMetaGRPCSearchTemperatureConfigurationTemplate = {
45
54
  export class CabinetMetaGRPC {
46
55
  static readonly serviceName: string;
47
56
  static readonly Retrieve: CabinetMetaGRPCRetrieve;
57
+ static readonly SetSpicType: CabinetMetaGRPCSetSpicType;
48
58
  static readonly SetTemperatureConfiguration: CabinetMetaGRPCSetTemperatureConfiguration;
49
59
  static readonly CreateTemperatureConfigurationTemplate: CabinetMetaGRPCCreateTemperatureConfigurationTemplate;
50
60
  static readonly SearchTemperatureConfigurationTemplate: CabinetMetaGRPCSearchTemperatureConfigurationTemplate;
@@ -91,6 +101,15 @@ export class CabinetMetaGRPCClient {
91
101
  requestMessage: spic_cabinet_pb.CabinetProto.RetrieveRequest,
92
102
  callback: (error: ServiceError|null, responseMessage: meta_spic_config_pb.CabinetLocationMeta|null) => void
93
103
  ): UnaryResponse;
104
+ setSpicType(
105
+ requestMessage: meta_spic_config_pb.SpicTypeProto.SetRequest,
106
+ metadata: grpc.Metadata,
107
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
108
+ ): UnaryResponse;
109
+ setSpicType(
110
+ requestMessage: meta_spic_config_pb.SpicTypeProto.SetRequest,
111
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
112
+ ): UnaryResponse;
94
113
  setTemperatureConfiguration(
95
114
  requestMessage: meta_spic_config_pb.TemperatureConfigurationProto.SetConfigurationRequest,
96
115
  metadata: grpc.Metadata,
@@ -21,6 +21,15 @@ CabinetMetaGRPC.Retrieve = {
21
21
  responseType: meta_spic_config_pb.CabinetLocationMeta
22
22
  };
23
23
 
24
+ CabinetMetaGRPC.SetSpicType = {
25
+ methodName: "SetSpicType",
26
+ service: CabinetMetaGRPC,
27
+ requestStream: false,
28
+ responseStream: false,
29
+ requestType: meta_spic_config_pb.SpicTypeProto.SetRequest,
30
+ responseType: google_protobuf_empty_pb.Empty
31
+ };
32
+
24
33
  CabinetMetaGRPC.SetTemperatureConfiguration = {
25
34
  methodName: "SetTemperatureConfiguration",
26
35
  service: CabinetMetaGRPC,
@@ -86,6 +95,37 @@ CabinetMetaGRPCClient.prototype.retrieve = function retrieve(requestMessage, met
86
95
  };
87
96
  };
88
97
 
98
+ CabinetMetaGRPCClient.prototype.setSpicType = function setSpicType(requestMessage, metadata, callback) {
99
+ if (arguments.length === 2) {
100
+ callback = arguments[1];
101
+ }
102
+ var client = grpc.unary(CabinetMetaGRPC.SetSpicType, {
103
+ request: requestMessage,
104
+ host: this.serviceHost,
105
+ metadata: metadata,
106
+ transport: this.options.transport,
107
+ debug: this.options.debug,
108
+ onEnd: function (response) {
109
+ if (callback) {
110
+ if (response.status !== grpc.Code.OK) {
111
+ var err = new Error(response.statusMessage);
112
+ err.code = response.status;
113
+ err.metadata = response.trailers;
114
+ callback(err, null);
115
+ } else {
116
+ callback(null, response.message);
117
+ }
118
+ }
119
+ }
120
+ });
121
+ return {
122
+ cancel: function () {
123
+ callback = null;
124
+ client.close();
125
+ }
126
+ };
127
+ };
128
+
89
129
  CabinetMetaGRPCClient.prototype.setTemperatureConfiguration = function setTemperatureConfiguration(requestMessage, metadata, callback) {
90
130
  if (arguments.length === 2) {
91
131
  callback = arguments[1];
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "grpc-web": "^1.4.2",
6
6
  "ts-protoc-gen": "^0.15.0"
7
7
  },
8
- "version": "2.13.0-alpha.1",
8
+ "version": "2.13.0-alpha.6",
9
9
  "description": "Generated proto files.",
10
10
  "author": "TKF",
11
11
  "files": [
@@ -160,6 +160,9 @@ export namespace ClientProto {
160
160
  getIspublic(): boolean;
161
161
  setIspublic(value: boolean): void;
162
162
 
163
+ getShowdrumtracking(): boolean;
164
+ setShowdrumtracking(value: boolean): void;
165
+
163
166
  serializeBinary(): Uint8Array;
164
167
  toObject(includeInstance?: boolean): SearchRequest.AsObject;
165
168
  static toObject(includeInstance: boolean, msg: SearchRequest): SearchRequest.AsObject;
@@ -177,6 +180,7 @@ export namespace ClientProto {
177
180
  page: number,
178
181
  count: number,
179
182
  ispublic: boolean,
183
+ showdrumtracking: boolean,
180
184
  }
181
185
  }
182
186