@aceplus/smartace-api 2.9.0-alpha.8 → 2.9.0-publish-dart.1

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": "2.9.0-alpha.8",
8
+ "version": "2.9.0-publish-dart.1",
9
9
  "description": "Generated proto files.",
10
10
  "author": "TKF",
11
11
  "files": [
@@ -512,6 +512,15 @@ export namespace CabinetProto {
512
512
  getCabinetId(): number;
513
513
  setCabinetId(value: number): void;
514
514
 
515
+ getBatteryEstimator(): number;
516
+ setBatteryEstimator(value: number): void;
517
+
518
+ getBatteryEmpty(): boolean;
519
+ setBatteryEmpty(value: boolean): void;
520
+
521
+ getCommunicationTime(): number;
522
+ setCommunicationTime(value: number): void;
523
+
515
524
  serializeBinary(): Uint8Array;
516
525
  toObject(includeInstance?: boolean): State.AsObject;
517
526
  static toObject(includeInstance: boolean, msg: State): State.AsObject;
@@ -542,6 +551,9 @@ export namespace CabinetProto {
542
551
  crc: string,
543
552
  settingNumber: number,
544
553
  cabinetId: number,
554
+ batteryEstimator: number,
555
+ batteryEmpty: boolean,
556
+ communicationTime: number,
545
557
  }
546
558
 
547
559
  export class SearchRequest extends jspb.Message {
@@ -1039,9 +1051,6 @@ export namespace CabinetProto {
1039
1051
  getId(): number;
1040
1052
  setId(value: number): void;
1041
1053
 
1042
- getDevicepacketnumber(): number;
1043
- setDevicepacketnumber(value: number): void;
1044
-
1045
1054
  serializeBinary(): Uint8Array;
1046
1055
  toObject(includeInstance?: boolean): DeactivateRequest.AsObject;
1047
1056
  static toObject(includeInstance: boolean, msg: DeactivateRequest): DeactivateRequest.AsObject;
@@ -1055,59 +1064,6 @@ export namespace CabinetProto {
1055
1064
  export namespace DeactivateRequest {
1056
1065
  export type AsObject = {
1057
1066
  id: number,
1058
- devicepacketnumber: number,
1059
- }
1060
- }
1061
-
1062
- export class CanOpenRequest extends jspb.Message {
1063
- getUid(): string;
1064
- setUid(value: string): void;
1065
-
1066
- serializeBinary(): Uint8Array;
1067
- toObject(includeInstance?: boolean): CanOpenRequest.AsObject;
1068
- static toObject(includeInstance: boolean, msg: CanOpenRequest): CanOpenRequest.AsObject;
1069
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1070
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1071
- static serializeBinaryToWriter(message: CanOpenRequest, writer: jspb.BinaryWriter): void;
1072
- static deserializeBinary(bytes: Uint8Array): CanOpenRequest;
1073
- static deserializeBinaryFromReader(message: CanOpenRequest, reader: jspb.BinaryReader): CanOpenRequest;
1074
- }
1075
-
1076
- export namespace CanOpenRequest {
1077
- export type AsObject = {
1078
- uid: string,
1079
- }
1080
- }
1081
-
1082
- export class CanOpenReply extends jspb.Message {
1083
- hasCabinet(): boolean;
1084
- clearCabinet(): void;
1085
- getCabinet(): CabinetProto | undefined;
1086
- setCabinet(value?: CabinetProto): void;
1087
-
1088
- hasOpenRequest(): boolean;
1089
- clearOpenRequest(): void;
1090
- getOpenRequest(): CabinetProto.OpenRequest | undefined;
1091
- setOpenRequest(value?: CabinetProto.OpenRequest): void;
1092
-
1093
- getCanOpen(): boolean;
1094
- setCanOpen(value: boolean): void;
1095
-
1096
- serializeBinary(): Uint8Array;
1097
- toObject(includeInstance?: boolean): CanOpenReply.AsObject;
1098
- static toObject(includeInstance: boolean, msg: CanOpenReply): CanOpenReply.AsObject;
1099
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1100
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1101
- static serializeBinaryToWriter(message: CanOpenReply, writer: jspb.BinaryWriter): void;
1102
- static deserializeBinary(bytes: Uint8Array): CanOpenReply;
1103
- static deserializeBinaryFromReader(message: CanOpenReply, reader: jspb.BinaryReader): CanOpenReply;
1104
- }
1105
-
1106
- export namespace CanOpenReply {
1107
- export type AsObject = {
1108
- cabinet?: CabinetProto.AsObject,
1109
- openRequest?: CabinetProto.OpenRequest.AsObject,
1110
- canOpen: boolean,
1111
1067
  }
1112
1068
  }
1113
1069
 
@@ -51,8 +51,6 @@ goog.exportSymbol('proto.Spic.CabinetProto.Image.RetrieveRequest', null, global)
51
51
  goog.exportSymbol('proto.Spic.CabinetProto.LocationSearchReply', null, global);
52
52
  goog.exportSymbol('proto.Spic.CabinetProto.LocationSearchRequest', null, global);
53
53
  goog.exportSymbol('proto.Spic.CabinetProto.OpenRequest', null, global);
54
- goog.exportSymbol('proto.Spic.CabinetProto.OpenRequest.CanOpenReply', null, global);
55
- goog.exportSymbol('proto.Spic.CabinetProto.OpenRequest.CanOpenRequest', null, global);
56
54
  goog.exportSymbol('proto.Spic.CabinetProto.OpenRequest.CreateRequest', null, global);
57
55
  goog.exportSymbol('proto.Spic.CabinetProto.OpenRequest.DeactivateRequest', null, global);
58
56
  goog.exportSymbol('proto.Spic.CabinetProto.OpenRequest.OpenRequestType', null, global);
@@ -615,48 +613,6 @@ if (goog.DEBUG && !COMPILED) {
615
613
  */
616
614
  proto.Spic.CabinetProto.OpenRequest.DeactivateRequest.displayName = 'proto.Spic.CabinetProto.OpenRequest.DeactivateRequest';
617
615
  }
618
- /**
619
- * Generated by JsPbCodeGenerator.
620
- * @param {Array=} opt_data Optional initial data array, typically from a
621
- * server response, or constructed directly in Javascript. The array is used
622
- * in place and becomes part of the constructed object. It is not cloned.
623
- * If no data is provided, the constructed object will be empty, but still
624
- * valid.
625
- * @extends {jspb.Message}
626
- * @constructor
627
- */
628
- proto.Spic.CabinetProto.OpenRequest.CanOpenRequest = function(opt_data) {
629
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
630
- };
631
- goog.inherits(proto.Spic.CabinetProto.OpenRequest.CanOpenRequest, jspb.Message);
632
- if (goog.DEBUG && !COMPILED) {
633
- /**
634
- * @public
635
- * @override
636
- */
637
- proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.displayName = 'proto.Spic.CabinetProto.OpenRequest.CanOpenRequest';
638
- }
639
- /**
640
- * Generated by JsPbCodeGenerator.
641
- * @param {Array=} opt_data Optional initial data array, typically from a
642
- * server response, or constructed directly in Javascript. The array is used
643
- * in place and becomes part of the constructed object. It is not cloned.
644
- * If no data is provided, the constructed object will be empty, but still
645
- * valid.
646
- * @extends {jspb.Message}
647
- * @constructor
648
- */
649
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply = function(opt_data) {
650
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
651
- };
652
- goog.inherits(proto.Spic.CabinetProto.OpenRequest.CanOpenReply, jspb.Message);
653
- if (goog.DEBUG && !COMPILED) {
654
- /**
655
- * @public
656
- * @override
657
- */
658
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.displayName = 'proto.Spic.CabinetProto.OpenRequest.CanOpenReply';
659
- }
660
616
  /**
661
617
  * Generated by JsPbCodeGenerator.
662
618
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -3670,7 +3626,10 @@ proto.Spic.CabinetProto.State.toObject = function(includeInstance, msg) {
3670
3626
  imei: jspb.Message.getFieldWithDefault(msg, 15, ""),
3671
3627
  crc: jspb.Message.getFieldWithDefault(msg, 16, ""),
3672
3628
  settingNumber: jspb.Message.getFieldWithDefault(msg, 17, 0),
3673
- cabinetId: jspb.Message.getFieldWithDefault(msg, 18, 0)
3629
+ cabinetId: jspb.Message.getFieldWithDefault(msg, 18, 0),
3630
+ batteryEstimator: jspb.Message.getFieldWithDefault(msg, 19, 0),
3631
+ batteryEmpty: jspb.Message.getBooleanFieldWithDefault(msg, 20, false),
3632
+ communicationTime: jspb.Message.getFieldWithDefault(msg, 21, 0)
3674
3633
  };
3675
3634
 
3676
3635
  if (includeInstance) {
@@ -3782,6 +3741,18 @@ proto.Spic.CabinetProto.State.deserializeBinaryFromReader = function(msg, reader
3782
3741
  var value = /** @type {number} */ (reader.readInt64());
3783
3742
  msg.setCabinetId(value);
3784
3743
  break;
3744
+ case 19:
3745
+ var value = /** @type {number} */ (reader.readInt32());
3746
+ msg.setBatteryEstimator(value);
3747
+ break;
3748
+ case 20:
3749
+ var value = /** @type {boolean} */ (reader.readBool());
3750
+ msg.setBatteryEmpty(value);
3751
+ break;
3752
+ case 21:
3753
+ var value = /** @type {number} */ (reader.readUint32());
3754
+ msg.setCommunicationTime(value);
3755
+ break;
3785
3756
  default:
3786
3757
  reader.skipField();
3787
3758
  break;
@@ -3938,6 +3909,27 @@ proto.Spic.CabinetProto.State.serializeBinaryToWriter = function(message, writer
3938
3909
  f
3939
3910
  );
3940
3911
  }
3912
+ f = message.getBatteryEstimator();
3913
+ if (f !== 0) {
3914
+ writer.writeInt32(
3915
+ 19,
3916
+ f
3917
+ );
3918
+ }
3919
+ f = message.getBatteryEmpty();
3920
+ if (f) {
3921
+ writer.writeBool(
3922
+ 20,
3923
+ f
3924
+ );
3925
+ }
3926
+ f = message.getCommunicationTime();
3927
+ if (f !== 0) {
3928
+ writer.writeUint32(
3929
+ 21,
3930
+ f
3931
+ );
3932
+ }
3941
3933
  };
3942
3934
 
3943
3935
 
@@ -5155,6 +5147,60 @@ proto.Spic.CabinetProto.State.prototype.setCabinetId = function(value) {
5155
5147
  };
5156
5148
 
5157
5149
 
5150
+ /**
5151
+ * optional int32 battery_estimator = 19;
5152
+ * @return {number}
5153
+ */
5154
+ proto.Spic.CabinetProto.State.prototype.getBatteryEstimator = function() {
5155
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0));
5156
+ };
5157
+
5158
+
5159
+ /**
5160
+ * @param {number} value
5161
+ * @return {!proto.Spic.CabinetProto.State} returns this
5162
+ */
5163
+ proto.Spic.CabinetProto.State.prototype.setBatteryEstimator = function(value) {
5164
+ return jspb.Message.setProto3IntField(this, 19, value);
5165
+ };
5166
+
5167
+
5168
+ /**
5169
+ * optional bool battery_empty = 20;
5170
+ * @return {boolean}
5171
+ */
5172
+ proto.Spic.CabinetProto.State.prototype.getBatteryEmpty = function() {
5173
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 20, false));
5174
+ };
5175
+
5176
+
5177
+ /**
5178
+ * @param {boolean} value
5179
+ * @return {!proto.Spic.CabinetProto.State} returns this
5180
+ */
5181
+ proto.Spic.CabinetProto.State.prototype.setBatteryEmpty = function(value) {
5182
+ return jspb.Message.setProto3BooleanField(this, 20, value);
5183
+ };
5184
+
5185
+
5186
+ /**
5187
+ * optional uint32 communication_time = 21;
5188
+ * @return {number}
5189
+ */
5190
+ proto.Spic.CabinetProto.State.prototype.getCommunicationTime = function() {
5191
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 21, 0));
5192
+ };
5193
+
5194
+
5195
+ /**
5196
+ * @param {number} value
5197
+ * @return {!proto.Spic.CabinetProto.State} returns this
5198
+ */
5199
+ proto.Spic.CabinetProto.State.prototype.setCommunicationTime = function(value) {
5200
+ return jspb.Message.setProto3IntField(this, 21, value);
5201
+ };
5202
+
5203
+
5158
5204
 
5159
5205
 
5160
5206
 
@@ -7612,8 +7658,7 @@ proto.Spic.CabinetProto.OpenRequest.DeactivateRequest.prototype.toObject = funct
7612
7658
  */
7613
7659
  proto.Spic.CabinetProto.OpenRequest.DeactivateRequest.toObject = function(includeInstance, msg) {
7614
7660
  var f, obj = {
7615
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
7616
- devicepacketnumber: jspb.Message.getFieldWithDefault(msg, 2, 0)
7661
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
7617
7662
  };
7618
7663
 
7619
7664
  if (includeInstance) {
@@ -7654,10 +7699,6 @@ proto.Spic.CabinetProto.OpenRequest.DeactivateRequest.deserializeBinaryFromReade
7654
7699
  var value = /** @type {number} */ (reader.readInt64());
7655
7700
  msg.setId(value);
7656
7701
  break;
7657
- case 2:
7658
- var value = /** @type {number} */ (reader.readInt32());
7659
- msg.setDevicepacketnumber(value);
7660
- break;
7661
7702
  default:
7662
7703
  reader.skipField();
7663
7704
  break;
@@ -7694,13 +7735,6 @@ proto.Spic.CabinetProto.OpenRequest.DeactivateRequest.serializeBinaryToWriter =
7694
7735
  f
7695
7736
  );
7696
7737
  }
7697
- f = message.getDevicepacketnumber();
7698
- if (f !== 0) {
7699
- writer.writeInt32(
7700
- 2,
7701
- f
7702
- );
7703
- }
7704
7738
  };
7705
7739
 
7706
7740
 
@@ -7722,386 +7756,6 @@ proto.Spic.CabinetProto.OpenRequest.DeactivateRequest.prototype.setId = function
7722
7756
  };
7723
7757
 
7724
7758
 
7725
- /**
7726
- * optional int32 devicePacketNumber = 2;
7727
- * @return {number}
7728
- */
7729
- proto.Spic.CabinetProto.OpenRequest.DeactivateRequest.prototype.getDevicepacketnumber = function() {
7730
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
7731
- };
7732
-
7733
-
7734
- /**
7735
- * @param {number} value
7736
- * @return {!proto.Spic.CabinetProto.OpenRequest.DeactivateRequest} returns this
7737
- */
7738
- proto.Spic.CabinetProto.OpenRequest.DeactivateRequest.prototype.setDevicepacketnumber = function(value) {
7739
- return jspb.Message.setProto3IntField(this, 2, value);
7740
- };
7741
-
7742
-
7743
-
7744
-
7745
-
7746
- if (jspb.Message.GENERATE_TO_OBJECT) {
7747
- /**
7748
- * Creates an object representation of this proto.
7749
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
7750
- * Optional fields that are not set will be set to undefined.
7751
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7752
- * For the list of reserved names please see:
7753
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7754
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7755
- * JSPB instance for transitional soy proto support:
7756
- * http://goto/soy-param-migration
7757
- * @return {!Object}
7758
- */
7759
- proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.prototype.toObject = function(opt_includeInstance) {
7760
- return proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.toObject(opt_includeInstance, this);
7761
- };
7762
-
7763
-
7764
- /**
7765
- * Static version of the {@see toObject} method.
7766
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7767
- * the JSPB instance for transitional soy proto support:
7768
- * http://goto/soy-param-migration
7769
- * @param {!proto.Spic.CabinetProto.OpenRequest.CanOpenRequest} msg The msg instance to transform.
7770
- * @return {!Object}
7771
- * @suppress {unusedLocalVariables} f is only used for nested messages
7772
- */
7773
- proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.toObject = function(includeInstance, msg) {
7774
- var f, obj = {
7775
- uid: jspb.Message.getFieldWithDefault(msg, 1, "")
7776
- };
7777
-
7778
- if (includeInstance) {
7779
- obj.$jspbMessageInstance = msg;
7780
- }
7781
- return obj;
7782
- };
7783
- }
7784
-
7785
-
7786
- /**
7787
- * Deserializes binary data (in protobuf wire format).
7788
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
7789
- * @return {!proto.Spic.CabinetProto.OpenRequest.CanOpenRequest}
7790
- */
7791
- proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.deserializeBinary = function(bytes) {
7792
- var reader = new jspb.BinaryReader(bytes);
7793
- var msg = new proto.Spic.CabinetProto.OpenRequest.CanOpenRequest;
7794
- return proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.deserializeBinaryFromReader(msg, reader);
7795
- };
7796
-
7797
-
7798
- /**
7799
- * Deserializes binary data (in protobuf wire format) from the
7800
- * given reader into the given message object.
7801
- * @param {!proto.Spic.CabinetProto.OpenRequest.CanOpenRequest} msg The message object to deserialize into.
7802
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7803
- * @return {!proto.Spic.CabinetProto.OpenRequest.CanOpenRequest}
7804
- */
7805
- proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.deserializeBinaryFromReader = function(msg, reader) {
7806
- while (reader.nextField()) {
7807
- if (reader.isEndGroup()) {
7808
- break;
7809
- }
7810
- var field = reader.getFieldNumber();
7811
- switch (field) {
7812
- case 1:
7813
- var value = /** @type {string} */ (reader.readString());
7814
- msg.setUid(value);
7815
- break;
7816
- default:
7817
- reader.skipField();
7818
- break;
7819
- }
7820
- }
7821
- return msg;
7822
- };
7823
-
7824
-
7825
- /**
7826
- * Serializes the message to binary data (in protobuf wire format).
7827
- * @return {!Uint8Array}
7828
- */
7829
- proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.prototype.serializeBinary = function() {
7830
- var writer = new jspb.BinaryWriter();
7831
- proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.serializeBinaryToWriter(this, writer);
7832
- return writer.getResultBuffer();
7833
- };
7834
-
7835
-
7836
- /**
7837
- * Serializes the given message to binary data (in protobuf wire
7838
- * format), writing to the given BinaryWriter.
7839
- * @param {!proto.Spic.CabinetProto.OpenRequest.CanOpenRequest} message
7840
- * @param {!jspb.BinaryWriter} writer
7841
- * @suppress {unusedLocalVariables} f is only used for nested messages
7842
- */
7843
- proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.serializeBinaryToWriter = function(message, writer) {
7844
- var f = undefined;
7845
- f = message.getUid();
7846
- if (f.length > 0) {
7847
- writer.writeString(
7848
- 1,
7849
- f
7850
- );
7851
- }
7852
- };
7853
-
7854
-
7855
- /**
7856
- * optional string uid = 1;
7857
- * @return {string}
7858
- */
7859
- proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.prototype.getUid = function() {
7860
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
7861
- };
7862
-
7863
-
7864
- /**
7865
- * @param {string} value
7866
- * @return {!proto.Spic.CabinetProto.OpenRequest.CanOpenRequest} returns this
7867
- */
7868
- proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.prototype.setUid = function(value) {
7869
- return jspb.Message.setProto3StringField(this, 1, value);
7870
- };
7871
-
7872
-
7873
-
7874
-
7875
-
7876
- if (jspb.Message.GENERATE_TO_OBJECT) {
7877
- /**
7878
- * Creates an object representation of this proto.
7879
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
7880
- * Optional fields that are not set will be set to undefined.
7881
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7882
- * For the list of reserved names please see:
7883
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7884
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7885
- * JSPB instance for transitional soy proto support:
7886
- * http://goto/soy-param-migration
7887
- * @return {!Object}
7888
- */
7889
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.toObject = function(opt_includeInstance) {
7890
- return proto.Spic.CabinetProto.OpenRequest.CanOpenReply.toObject(opt_includeInstance, this);
7891
- };
7892
-
7893
-
7894
- /**
7895
- * Static version of the {@see toObject} method.
7896
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7897
- * the JSPB instance for transitional soy proto support:
7898
- * http://goto/soy-param-migration
7899
- * @param {!proto.Spic.CabinetProto.OpenRequest.CanOpenReply} msg The msg instance to transform.
7900
- * @return {!Object}
7901
- * @suppress {unusedLocalVariables} f is only used for nested messages
7902
- */
7903
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.toObject = function(includeInstance, msg) {
7904
- var f, obj = {
7905
- cabinet: (f = msg.getCabinet()) && proto.Spic.CabinetProto.toObject(includeInstance, f),
7906
- openRequest: (f = msg.getOpenRequest()) && proto.Spic.CabinetProto.OpenRequest.toObject(includeInstance, f),
7907
- canOpen: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
7908
- };
7909
-
7910
- if (includeInstance) {
7911
- obj.$jspbMessageInstance = msg;
7912
- }
7913
- return obj;
7914
- };
7915
- }
7916
-
7917
-
7918
- /**
7919
- * Deserializes binary data (in protobuf wire format).
7920
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
7921
- * @return {!proto.Spic.CabinetProto.OpenRequest.CanOpenReply}
7922
- */
7923
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.deserializeBinary = function(bytes) {
7924
- var reader = new jspb.BinaryReader(bytes);
7925
- var msg = new proto.Spic.CabinetProto.OpenRequest.CanOpenReply;
7926
- return proto.Spic.CabinetProto.OpenRequest.CanOpenReply.deserializeBinaryFromReader(msg, reader);
7927
- };
7928
-
7929
-
7930
- /**
7931
- * Deserializes binary data (in protobuf wire format) from the
7932
- * given reader into the given message object.
7933
- * @param {!proto.Spic.CabinetProto.OpenRequest.CanOpenReply} msg The message object to deserialize into.
7934
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7935
- * @return {!proto.Spic.CabinetProto.OpenRequest.CanOpenReply}
7936
- */
7937
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.deserializeBinaryFromReader = function(msg, reader) {
7938
- while (reader.nextField()) {
7939
- if (reader.isEndGroup()) {
7940
- break;
7941
- }
7942
- var field = reader.getFieldNumber();
7943
- switch (field) {
7944
- case 1:
7945
- var value = new proto.Spic.CabinetProto;
7946
- reader.readMessage(value,proto.Spic.CabinetProto.deserializeBinaryFromReader);
7947
- msg.setCabinet(value);
7948
- break;
7949
- case 2:
7950
- var value = new proto.Spic.CabinetProto.OpenRequest;
7951
- reader.readMessage(value,proto.Spic.CabinetProto.OpenRequest.deserializeBinaryFromReader);
7952
- msg.setOpenRequest(value);
7953
- break;
7954
- case 3:
7955
- var value = /** @type {boolean} */ (reader.readBool());
7956
- msg.setCanOpen(value);
7957
- break;
7958
- default:
7959
- reader.skipField();
7960
- break;
7961
- }
7962
- }
7963
- return msg;
7964
- };
7965
-
7966
-
7967
- /**
7968
- * Serializes the message to binary data (in protobuf wire format).
7969
- * @return {!Uint8Array}
7970
- */
7971
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.serializeBinary = function() {
7972
- var writer = new jspb.BinaryWriter();
7973
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.serializeBinaryToWriter(this, writer);
7974
- return writer.getResultBuffer();
7975
- };
7976
-
7977
-
7978
- /**
7979
- * Serializes the given message to binary data (in protobuf wire
7980
- * format), writing to the given BinaryWriter.
7981
- * @param {!proto.Spic.CabinetProto.OpenRequest.CanOpenReply} message
7982
- * @param {!jspb.BinaryWriter} writer
7983
- * @suppress {unusedLocalVariables} f is only used for nested messages
7984
- */
7985
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.serializeBinaryToWriter = function(message, writer) {
7986
- var f = undefined;
7987
- f = message.getCabinet();
7988
- if (f != null) {
7989
- writer.writeMessage(
7990
- 1,
7991
- f,
7992
- proto.Spic.CabinetProto.serializeBinaryToWriter
7993
- );
7994
- }
7995
- f = message.getOpenRequest();
7996
- if (f != null) {
7997
- writer.writeMessage(
7998
- 2,
7999
- f,
8000
- proto.Spic.CabinetProto.OpenRequest.serializeBinaryToWriter
8001
- );
8002
- }
8003
- f = message.getCanOpen();
8004
- if (f) {
8005
- writer.writeBool(
8006
- 3,
8007
- f
8008
- );
8009
- }
8010
- };
8011
-
8012
-
8013
- /**
8014
- * optional CabinetProto cabinet = 1;
8015
- * @return {?proto.Spic.CabinetProto}
8016
- */
8017
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.getCabinet = function() {
8018
- return /** @type{?proto.Spic.CabinetProto} */ (
8019
- jspb.Message.getWrapperField(this, proto.Spic.CabinetProto, 1));
8020
- };
8021
-
8022
-
8023
- /**
8024
- * @param {?proto.Spic.CabinetProto|undefined} value
8025
- * @return {!proto.Spic.CabinetProto.OpenRequest.CanOpenReply} returns this
8026
- */
8027
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.setCabinet = function(value) {
8028
- return jspb.Message.setWrapperField(this, 1, value);
8029
- };
8030
-
8031
-
8032
- /**
8033
- * Clears the message field making it undefined.
8034
- * @return {!proto.Spic.CabinetProto.OpenRequest.CanOpenReply} returns this
8035
- */
8036
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.clearCabinet = function() {
8037
- return this.setCabinet(undefined);
8038
- };
8039
-
8040
-
8041
- /**
8042
- * Returns whether this field is set.
8043
- * @return {boolean}
8044
- */
8045
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.hasCabinet = function() {
8046
- return jspb.Message.getField(this, 1) != null;
8047
- };
8048
-
8049
-
8050
- /**
8051
- * optional OpenRequest open_request = 2;
8052
- * @return {?proto.Spic.CabinetProto.OpenRequest}
8053
- */
8054
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.getOpenRequest = function() {
8055
- return /** @type{?proto.Spic.CabinetProto.OpenRequest} */ (
8056
- jspb.Message.getWrapperField(this, proto.Spic.CabinetProto.OpenRequest, 2));
8057
- };
8058
-
8059
-
8060
- /**
8061
- * @param {?proto.Spic.CabinetProto.OpenRequest|undefined} value
8062
- * @return {!proto.Spic.CabinetProto.OpenRequest.CanOpenReply} returns this
8063
- */
8064
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.setOpenRequest = function(value) {
8065
- return jspb.Message.setWrapperField(this, 2, value);
8066
- };
8067
-
8068
-
8069
- /**
8070
- * Clears the message field making it undefined.
8071
- * @return {!proto.Spic.CabinetProto.OpenRequest.CanOpenReply} returns this
8072
- */
8073
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.clearOpenRequest = function() {
8074
- return this.setOpenRequest(undefined);
8075
- };
8076
-
8077
-
8078
- /**
8079
- * Returns whether this field is set.
8080
- * @return {boolean}
8081
- */
8082
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.hasOpenRequest = function() {
8083
- return jspb.Message.getField(this, 2) != null;
8084
- };
8085
-
8086
-
8087
- /**
8088
- * optional bool can_open = 3;
8089
- * @return {boolean}
8090
- */
8091
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.getCanOpen = function() {
8092
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
8093
- };
8094
-
8095
-
8096
- /**
8097
- * @param {boolean} value
8098
- * @return {!proto.Spic.CabinetProto.OpenRequest.CanOpenReply} returns this
8099
- */
8100
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.setCanOpen = function(value) {
8101
- return jspb.Message.setProto3BooleanField(this, 3, value);
8102
- };
8103
-
8104
-
8105
7759
 
8106
7760
  /**
8107
7761
  * List of repeated fields within this message type.
@@ -95,15 +95,6 @@ type CabinetGRPCCreateOpenRequest = {
95
95
  readonly responseType: typeof spic_cabinet_pb.CabinetProto.OpenRequest;
96
96
  };
97
97
 
98
- type CabinetGRPCCanOpen = {
99
- readonly methodName: string;
100
- readonly service: typeof CabinetGRPC;
101
- readonly requestStream: false;
102
- readonly responseStream: false;
103
- readonly requestType: typeof spic_cabinet_pb.CabinetProto.OpenRequest.CanOpenRequest;
104
- readonly responseType: typeof spic_cabinet_pb.CabinetProto.OpenRequest.CanOpenReply;
105
- };
106
-
107
98
  type CabinetGRPCSearchOpenRequests = {
108
99
  readonly methodName: string;
109
100
  readonly service: typeof CabinetGRPC;
@@ -134,7 +125,6 @@ export class CabinetGRPC {
134
125
  static readonly SearchStates: CabinetGRPCSearchStates;
135
126
  static readonly SearchEvents: CabinetGRPCSearchEvents;
136
127
  static readonly CreateOpenRequest: CabinetGRPCCreateOpenRequest;
137
- static readonly CanOpen: CabinetGRPCCanOpen;
138
128
  static readonly SearchOpenRequests: CabinetGRPCSearchOpenRequests;
139
129
  static readonly DeactivateOpenRequest: CabinetGRPCDeactivateOpenRequest;
140
130
  }
@@ -295,15 +285,6 @@ export class CabinetGRPCClient {
295
285
  requestMessage: spic_cabinet_pb.CabinetProto.OpenRequest.CreateRequest,
296
286
  callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.OpenRequest|null) => void
297
287
  ): UnaryResponse;
298
- canOpen(
299
- requestMessage: spic_cabinet_pb.CabinetProto.OpenRequest.CanOpenRequest,
300
- metadata: grpc.Metadata,
301
- callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.OpenRequest.CanOpenReply|null) => void
302
- ): UnaryResponse;
303
- canOpen(
304
- requestMessage: spic_cabinet_pb.CabinetProto.OpenRequest.CanOpenRequest,
305
- callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.OpenRequest.CanOpenReply|null) => void
306
- ): UnaryResponse;
307
288
  searchOpenRequests(
308
289
  requestMessage: spic_cabinet_pb.CabinetProto.OpenRequest.SearchRequest,
309
290
  metadata: grpc.Metadata,
@@ -101,15 +101,6 @@ CabinetGRPC.CreateOpenRequest = {
101
101
  responseType: spic_cabinet_pb.CabinetProto.OpenRequest
102
102
  };
103
103
 
104
- CabinetGRPC.CanOpen = {
105
- methodName: "CanOpen",
106
- service: CabinetGRPC,
107
- requestStream: false,
108
- responseStream: false,
109
- requestType: spic_cabinet_pb.CabinetProto.OpenRequest.CanOpenRequest,
110
- responseType: spic_cabinet_pb.CabinetProto.OpenRequest.CanOpenReply
111
- };
112
-
113
104
  CabinetGRPC.SearchOpenRequests = {
114
105
  methodName: "SearchOpenRequests",
115
106
  service: CabinetGRPC,
@@ -445,37 +436,6 @@ CabinetGRPCClient.prototype.createOpenRequest = function createOpenRequest(reque
445
436
  };
446
437
  };
447
438
 
448
- CabinetGRPCClient.prototype.canOpen = function canOpen(requestMessage, metadata, callback) {
449
- if (arguments.length === 2) {
450
- callback = arguments[1];
451
- }
452
- var client = grpc.unary(CabinetGRPC.CanOpen, {
453
- request: requestMessage,
454
- host: this.serviceHost,
455
- metadata: metadata,
456
- transport: this.options.transport,
457
- debug: this.options.debug,
458
- onEnd: function (response) {
459
- if (callback) {
460
- if (response.status !== grpc.Code.OK) {
461
- var err = new Error(response.statusMessage);
462
- err.code = response.status;
463
- err.metadata = response.trailers;
464
- callback(err, null);
465
- } else {
466
- callback(null, response.message);
467
- }
468
- }
469
- }
470
- });
471
- return {
472
- cancel: function () {
473
- callback = null;
474
- client.close();
475
- }
476
- };
477
- };
478
-
479
439
  CabinetGRPCClient.prototype.searchOpenRequests = function searchOpenRequests(requestMessage, metadata, callback) {
480
440
  if (arguments.length === 2) {
481
441
  callback = arguments[1];