@aceplus/smartace-api 3.6.0-alpha.24 → 3.6.0-alpha.25

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/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": "3.6.0-alpha.24",
8
+ "version": "3.6.0-alpha.25",
9
9
  "description": "Generated proto files.",
10
10
  "author": "TKF",
11
11
  "files": [
@@ -331,6 +331,36 @@ export namespace AlarmProto {
331
331
  }
332
332
  }
333
333
 
334
+ export class AlarmChangedEvent extends jspb.Message {
335
+ hasAlarm(): boolean;
336
+ clearAlarm(): void;
337
+ getAlarm(): AlarmProto | undefined;
338
+ setAlarm(value?: AlarmProto): void;
339
+
340
+ getAlarmStateUpdated(): boolean;
341
+ setAlarmStateUpdated(value: boolean): void;
342
+
343
+ getGroupId(): string;
344
+ setGroupId(value: string): void;
345
+
346
+ serializeBinary(): Uint8Array;
347
+ toObject(includeInstance?: boolean): AlarmChangedEvent.AsObject;
348
+ static toObject(includeInstance: boolean, msg: AlarmChangedEvent): AlarmChangedEvent.AsObject;
349
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
350
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
351
+ static serializeBinaryToWriter(message: AlarmChangedEvent, writer: jspb.BinaryWriter): void;
352
+ static deserializeBinary(bytes: Uint8Array): AlarmChangedEvent;
353
+ static deserializeBinaryFromReader(message: AlarmChangedEvent, reader: jspb.BinaryReader): AlarmChangedEvent;
354
+ }
355
+
356
+ export namespace AlarmChangedEvent {
357
+ export type AsObject = {
358
+ alarm?: AlarmProto.AsObject,
359
+ alarmStateUpdated: boolean,
360
+ groupId: string,
361
+ }
362
+ }
363
+
334
364
  export interface AlertPriorityTypeMap {
335
365
  INFO: 0;
336
366
  WARNING: 1;
package/spic.alarm_pb.js CHANGED
@@ -30,6 +30,7 @@ goog.object.extend(proto, google_api_annotations_pb);
30
30
  goog.exportSymbol('proto.Spic.AlarmProto', null, global);
31
31
  goog.exportSymbol('proto.Spic.AlarmProto.AddActionRequest', null, global);
32
32
  goog.exportSymbol('proto.Spic.AlarmProto.AlarmAction', null, global);
33
+ goog.exportSymbol('proto.Spic.AlarmProto.AlarmChangedEvent', null, global);
33
34
  goog.exportSymbol('proto.Spic.AlarmProto.AlertPriorityType', null, global);
34
35
  goog.exportSymbol('proto.Spic.AlarmProto.Event', null, global);
35
36
  goog.exportSymbol('proto.Spic.AlarmProto.Event.SearchReply', null, global);
@@ -204,6 +205,27 @@ if (goog.DEBUG && !COMPILED) {
204
205
  */
205
206
  proto.Spic.AlarmProto.AlarmAction.displayName = 'proto.Spic.AlarmProto.AlarmAction';
206
207
  }
208
+ /**
209
+ * Generated by JsPbCodeGenerator.
210
+ * @param {Array=} opt_data Optional initial data array, typically from a
211
+ * server response, or constructed directly in Javascript. The array is used
212
+ * in place and becomes part of the constructed object. It is not cloned.
213
+ * If no data is provided, the constructed object will be empty, but still
214
+ * valid.
215
+ * @extends {jspb.Message}
216
+ * @constructor
217
+ */
218
+ proto.Spic.AlarmProto.AlarmChangedEvent = function(opt_data) {
219
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
220
+ };
221
+ goog.inherits(proto.Spic.AlarmProto.AlarmChangedEvent, jspb.Message);
222
+ if (goog.DEBUG && !COMPILED) {
223
+ /**
224
+ * @public
225
+ * @override
226
+ */
227
+ proto.Spic.AlarmProto.AlarmChangedEvent.displayName = 'proto.Spic.AlarmProto.AlarmChangedEvent';
228
+ }
207
229
 
208
230
  /**
209
231
  * List of repeated fields within this message type.
@@ -2415,6 +2437,217 @@ proto.Spic.AlarmProto.AlarmAction.prototype.hasCreated = function() {
2415
2437
  };
2416
2438
 
2417
2439
 
2440
+
2441
+
2442
+
2443
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2444
+ /**
2445
+ * Creates an object representation of this proto.
2446
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2447
+ * Optional fields that are not set will be set to undefined.
2448
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2449
+ * For the list of reserved names please see:
2450
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2451
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2452
+ * JSPB instance for transitional soy proto support:
2453
+ * http://goto/soy-param-migration
2454
+ * @return {!Object}
2455
+ */
2456
+ proto.Spic.AlarmProto.AlarmChangedEvent.prototype.toObject = function(opt_includeInstance) {
2457
+ return proto.Spic.AlarmProto.AlarmChangedEvent.toObject(opt_includeInstance, this);
2458
+ };
2459
+
2460
+
2461
+ /**
2462
+ * Static version of the {@see toObject} method.
2463
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2464
+ * the JSPB instance for transitional soy proto support:
2465
+ * http://goto/soy-param-migration
2466
+ * @param {!proto.Spic.AlarmProto.AlarmChangedEvent} msg The msg instance to transform.
2467
+ * @return {!Object}
2468
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2469
+ */
2470
+ proto.Spic.AlarmProto.AlarmChangedEvent.toObject = function(includeInstance, msg) {
2471
+ var f, obj = {
2472
+ alarm: (f = msg.getAlarm()) && proto.Spic.AlarmProto.toObject(includeInstance, f),
2473
+ alarmStateUpdated: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
2474
+ groupId: jspb.Message.getFieldWithDefault(msg, 3, "")
2475
+ };
2476
+
2477
+ if (includeInstance) {
2478
+ obj.$jspbMessageInstance = msg;
2479
+ }
2480
+ return obj;
2481
+ };
2482
+ }
2483
+
2484
+
2485
+ /**
2486
+ * Deserializes binary data (in protobuf wire format).
2487
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2488
+ * @return {!proto.Spic.AlarmProto.AlarmChangedEvent}
2489
+ */
2490
+ proto.Spic.AlarmProto.AlarmChangedEvent.deserializeBinary = function(bytes) {
2491
+ var reader = new jspb.BinaryReader(bytes);
2492
+ var msg = new proto.Spic.AlarmProto.AlarmChangedEvent;
2493
+ return proto.Spic.AlarmProto.AlarmChangedEvent.deserializeBinaryFromReader(msg, reader);
2494
+ };
2495
+
2496
+
2497
+ /**
2498
+ * Deserializes binary data (in protobuf wire format) from the
2499
+ * given reader into the given message object.
2500
+ * @param {!proto.Spic.AlarmProto.AlarmChangedEvent} msg The message object to deserialize into.
2501
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2502
+ * @return {!proto.Spic.AlarmProto.AlarmChangedEvent}
2503
+ */
2504
+ proto.Spic.AlarmProto.AlarmChangedEvent.deserializeBinaryFromReader = function(msg, reader) {
2505
+ while (reader.nextField()) {
2506
+ if (reader.isEndGroup()) {
2507
+ break;
2508
+ }
2509
+ var field = reader.getFieldNumber();
2510
+ switch (field) {
2511
+ case 1:
2512
+ var value = new proto.Spic.AlarmProto;
2513
+ reader.readMessage(value,proto.Spic.AlarmProto.deserializeBinaryFromReader);
2514
+ msg.setAlarm(value);
2515
+ break;
2516
+ case 2:
2517
+ var value = /** @type {boolean} */ (reader.readBool());
2518
+ msg.setAlarmStateUpdated(value);
2519
+ break;
2520
+ case 3:
2521
+ var value = /** @type {string} */ (reader.readString());
2522
+ msg.setGroupId(value);
2523
+ break;
2524
+ default:
2525
+ reader.skipField();
2526
+ break;
2527
+ }
2528
+ }
2529
+ return msg;
2530
+ };
2531
+
2532
+
2533
+ /**
2534
+ * Serializes the message to binary data (in protobuf wire format).
2535
+ * @return {!Uint8Array}
2536
+ */
2537
+ proto.Spic.AlarmProto.AlarmChangedEvent.prototype.serializeBinary = function() {
2538
+ var writer = new jspb.BinaryWriter();
2539
+ proto.Spic.AlarmProto.AlarmChangedEvent.serializeBinaryToWriter(this, writer);
2540
+ return writer.getResultBuffer();
2541
+ };
2542
+
2543
+
2544
+ /**
2545
+ * Serializes the given message to binary data (in protobuf wire
2546
+ * format), writing to the given BinaryWriter.
2547
+ * @param {!proto.Spic.AlarmProto.AlarmChangedEvent} message
2548
+ * @param {!jspb.BinaryWriter} writer
2549
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2550
+ */
2551
+ proto.Spic.AlarmProto.AlarmChangedEvent.serializeBinaryToWriter = function(message, writer) {
2552
+ var f = undefined;
2553
+ f = message.getAlarm();
2554
+ if (f != null) {
2555
+ writer.writeMessage(
2556
+ 1,
2557
+ f,
2558
+ proto.Spic.AlarmProto.serializeBinaryToWriter
2559
+ );
2560
+ }
2561
+ f = message.getAlarmStateUpdated();
2562
+ if (f) {
2563
+ writer.writeBool(
2564
+ 2,
2565
+ f
2566
+ );
2567
+ }
2568
+ f = message.getGroupId();
2569
+ if (f.length > 0) {
2570
+ writer.writeString(
2571
+ 3,
2572
+ f
2573
+ );
2574
+ }
2575
+ };
2576
+
2577
+
2578
+ /**
2579
+ * optional AlarmProto alarm = 1;
2580
+ * @return {?proto.Spic.AlarmProto}
2581
+ */
2582
+ proto.Spic.AlarmProto.AlarmChangedEvent.prototype.getAlarm = function() {
2583
+ return /** @type{?proto.Spic.AlarmProto} */ (
2584
+ jspb.Message.getWrapperField(this, proto.Spic.AlarmProto, 1));
2585
+ };
2586
+
2587
+
2588
+ /**
2589
+ * @param {?proto.Spic.AlarmProto|undefined} value
2590
+ * @return {!proto.Spic.AlarmProto.AlarmChangedEvent} returns this
2591
+ */
2592
+ proto.Spic.AlarmProto.AlarmChangedEvent.prototype.setAlarm = function(value) {
2593
+ return jspb.Message.setWrapperField(this, 1, value);
2594
+ };
2595
+
2596
+
2597
+ /**
2598
+ * Clears the message field making it undefined.
2599
+ * @return {!proto.Spic.AlarmProto.AlarmChangedEvent} returns this
2600
+ */
2601
+ proto.Spic.AlarmProto.AlarmChangedEvent.prototype.clearAlarm = function() {
2602
+ return this.setAlarm(undefined);
2603
+ };
2604
+
2605
+
2606
+ /**
2607
+ * Returns whether this field is set.
2608
+ * @return {boolean}
2609
+ */
2610
+ proto.Spic.AlarmProto.AlarmChangedEvent.prototype.hasAlarm = function() {
2611
+ return jspb.Message.getField(this, 1) != null;
2612
+ };
2613
+
2614
+
2615
+ /**
2616
+ * optional bool alarm_state_updated = 2;
2617
+ * @return {boolean}
2618
+ */
2619
+ proto.Spic.AlarmProto.AlarmChangedEvent.prototype.getAlarmStateUpdated = function() {
2620
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
2621
+ };
2622
+
2623
+
2624
+ /**
2625
+ * @param {boolean} value
2626
+ * @return {!proto.Spic.AlarmProto.AlarmChangedEvent} returns this
2627
+ */
2628
+ proto.Spic.AlarmProto.AlarmChangedEvent.prototype.setAlarmStateUpdated = function(value) {
2629
+ return jspb.Message.setProto3BooleanField(this, 2, value);
2630
+ };
2631
+
2632
+
2633
+ /**
2634
+ * optional string group_id = 3;
2635
+ * @return {string}
2636
+ */
2637
+ proto.Spic.AlarmProto.AlarmChangedEvent.prototype.getGroupId = function() {
2638
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2639
+ };
2640
+
2641
+
2642
+ /**
2643
+ * @param {string} value
2644
+ * @return {!proto.Spic.AlarmProto.AlarmChangedEvent} returns this
2645
+ */
2646
+ proto.Spic.AlarmProto.AlarmChangedEvent.prototype.setGroupId = function(value) {
2647
+ return jspb.Message.setProto3StringField(this, 3, value);
2648
+ };
2649
+
2650
+
2418
2651
  /**
2419
2652
  * optional int64 id = 1;
2420
2653
  * @return {number}