@aceplus/smartace-api 2.9.0-alpha.7 → 2.9.0-alpha.9

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.7",
8
+ "version": "2.9.0-alpha.9",
9
9
  "description": "Generated proto files.",
10
10
  "author": "TKF",
11
11
  "files": [
@@ -1039,9 +1039,6 @@ export namespace CabinetProto {
1039
1039
  getId(): number;
1040
1040
  setId(value: number): void;
1041
1041
 
1042
- getDevicepacketnumber(): number;
1043
- setDevicepacketnumber(value: number): void;
1044
-
1045
1042
  serializeBinary(): Uint8Array;
1046
1043
  toObject(includeInstance?: boolean): DeactivateRequest.AsObject;
1047
1044
  static toObject(includeInstance: boolean, msg: DeactivateRequest): DeactivateRequest.AsObject;
@@ -1055,59 +1052,6 @@ export namespace CabinetProto {
1055
1052
  export namespace DeactivateRequest {
1056
1053
  export type AsObject = {
1057
1054
  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
1055
  }
1112
1056
  }
1113
1057
 
@@ -1229,6 +1173,7 @@ export namespace CabinetProto {
1229
1173
  TAMPER: 9;
1230
1174
  HIGH_TEMP: 10;
1231
1175
  CRIT_TEMP: 11;
1176
+ EXT_IO_3: 12;
1232
1177
  }
1233
1178
 
1234
1179
  export const AlarmType: AlarmTypeMap;
@@ -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
@@ -1051,7 +1007,8 @@ proto.Spic.CabinetProto.AlarmType = {
1051
1007
  EXT_IO_2: 8,
1052
1008
  TAMPER: 9,
1053
1009
  HIGH_TEMP: 10,
1054
- CRIT_TEMP: 11
1010
+ CRIT_TEMP: 11,
1011
+ EXT_IO_3: 12
1055
1012
  };
1056
1013
 
1057
1014
 
@@ -7611,8 +7568,7 @@ proto.Spic.CabinetProto.OpenRequest.DeactivateRequest.prototype.toObject = funct
7611
7568
  */
7612
7569
  proto.Spic.CabinetProto.OpenRequest.DeactivateRequest.toObject = function(includeInstance, msg) {
7613
7570
  var f, obj = {
7614
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
7615
- devicepacketnumber: jspb.Message.getFieldWithDefault(msg, 2, 0)
7571
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
7616
7572
  };
7617
7573
 
7618
7574
  if (includeInstance) {
@@ -7653,10 +7609,6 @@ proto.Spic.CabinetProto.OpenRequest.DeactivateRequest.deserializeBinaryFromReade
7653
7609
  var value = /** @type {number} */ (reader.readInt64());
7654
7610
  msg.setId(value);
7655
7611
  break;
7656
- case 2:
7657
- var value = /** @type {number} */ (reader.readInt32());
7658
- msg.setDevicepacketnumber(value);
7659
- break;
7660
7612
  default:
7661
7613
  reader.skipField();
7662
7614
  break;
@@ -7693,13 +7645,6 @@ proto.Spic.CabinetProto.OpenRequest.DeactivateRequest.serializeBinaryToWriter =
7693
7645
  f
7694
7646
  );
7695
7647
  }
7696
- f = message.getDevicepacketnumber();
7697
- if (f !== 0) {
7698
- writer.writeInt32(
7699
- 2,
7700
- f
7701
- );
7702
- }
7703
7648
  };
7704
7649
 
7705
7650
 
@@ -7721,386 +7666,6 @@ proto.Spic.CabinetProto.OpenRequest.DeactivateRequest.prototype.setId = function
7721
7666
  };
7722
7667
 
7723
7668
 
7724
- /**
7725
- * optional int32 devicePacketNumber = 2;
7726
- * @return {number}
7727
- */
7728
- proto.Spic.CabinetProto.OpenRequest.DeactivateRequest.prototype.getDevicepacketnumber = function() {
7729
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
7730
- };
7731
-
7732
-
7733
- /**
7734
- * @param {number} value
7735
- * @return {!proto.Spic.CabinetProto.OpenRequest.DeactivateRequest} returns this
7736
- */
7737
- proto.Spic.CabinetProto.OpenRequest.DeactivateRequest.prototype.setDevicepacketnumber = function(value) {
7738
- return jspb.Message.setProto3IntField(this, 2, value);
7739
- };
7740
-
7741
-
7742
-
7743
-
7744
-
7745
- if (jspb.Message.GENERATE_TO_OBJECT) {
7746
- /**
7747
- * Creates an object representation of this proto.
7748
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
7749
- * Optional fields that are not set will be set to undefined.
7750
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7751
- * For the list of reserved names please see:
7752
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7753
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7754
- * JSPB instance for transitional soy proto support:
7755
- * http://goto/soy-param-migration
7756
- * @return {!Object}
7757
- */
7758
- proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.prototype.toObject = function(opt_includeInstance) {
7759
- return proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.toObject(opt_includeInstance, this);
7760
- };
7761
-
7762
-
7763
- /**
7764
- * Static version of the {@see toObject} method.
7765
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7766
- * the JSPB instance for transitional soy proto support:
7767
- * http://goto/soy-param-migration
7768
- * @param {!proto.Spic.CabinetProto.OpenRequest.CanOpenRequest} msg The msg instance to transform.
7769
- * @return {!Object}
7770
- * @suppress {unusedLocalVariables} f is only used for nested messages
7771
- */
7772
- proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.toObject = function(includeInstance, msg) {
7773
- var f, obj = {
7774
- uid: jspb.Message.getFieldWithDefault(msg, 1, "")
7775
- };
7776
-
7777
- if (includeInstance) {
7778
- obj.$jspbMessageInstance = msg;
7779
- }
7780
- return obj;
7781
- };
7782
- }
7783
-
7784
-
7785
- /**
7786
- * Deserializes binary data (in protobuf wire format).
7787
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
7788
- * @return {!proto.Spic.CabinetProto.OpenRequest.CanOpenRequest}
7789
- */
7790
- proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.deserializeBinary = function(bytes) {
7791
- var reader = new jspb.BinaryReader(bytes);
7792
- var msg = new proto.Spic.CabinetProto.OpenRequest.CanOpenRequest;
7793
- return proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.deserializeBinaryFromReader(msg, reader);
7794
- };
7795
-
7796
-
7797
- /**
7798
- * Deserializes binary data (in protobuf wire format) from the
7799
- * given reader into the given message object.
7800
- * @param {!proto.Spic.CabinetProto.OpenRequest.CanOpenRequest} msg The message object to deserialize into.
7801
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7802
- * @return {!proto.Spic.CabinetProto.OpenRequest.CanOpenRequest}
7803
- */
7804
- proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.deserializeBinaryFromReader = function(msg, reader) {
7805
- while (reader.nextField()) {
7806
- if (reader.isEndGroup()) {
7807
- break;
7808
- }
7809
- var field = reader.getFieldNumber();
7810
- switch (field) {
7811
- case 1:
7812
- var value = /** @type {string} */ (reader.readString());
7813
- msg.setUid(value);
7814
- break;
7815
- default:
7816
- reader.skipField();
7817
- break;
7818
- }
7819
- }
7820
- return msg;
7821
- };
7822
-
7823
-
7824
- /**
7825
- * Serializes the message to binary data (in protobuf wire format).
7826
- * @return {!Uint8Array}
7827
- */
7828
- proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.prototype.serializeBinary = function() {
7829
- var writer = new jspb.BinaryWriter();
7830
- proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.serializeBinaryToWriter(this, writer);
7831
- return writer.getResultBuffer();
7832
- };
7833
-
7834
-
7835
- /**
7836
- * Serializes the given message to binary data (in protobuf wire
7837
- * format), writing to the given BinaryWriter.
7838
- * @param {!proto.Spic.CabinetProto.OpenRequest.CanOpenRequest} message
7839
- * @param {!jspb.BinaryWriter} writer
7840
- * @suppress {unusedLocalVariables} f is only used for nested messages
7841
- */
7842
- proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.serializeBinaryToWriter = function(message, writer) {
7843
- var f = undefined;
7844
- f = message.getUid();
7845
- if (f.length > 0) {
7846
- writer.writeString(
7847
- 1,
7848
- f
7849
- );
7850
- }
7851
- };
7852
-
7853
-
7854
- /**
7855
- * optional string uid = 1;
7856
- * @return {string}
7857
- */
7858
- proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.prototype.getUid = function() {
7859
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
7860
- };
7861
-
7862
-
7863
- /**
7864
- * @param {string} value
7865
- * @return {!proto.Spic.CabinetProto.OpenRequest.CanOpenRequest} returns this
7866
- */
7867
- proto.Spic.CabinetProto.OpenRequest.CanOpenRequest.prototype.setUid = function(value) {
7868
- return jspb.Message.setProto3StringField(this, 1, value);
7869
- };
7870
-
7871
-
7872
-
7873
-
7874
-
7875
- if (jspb.Message.GENERATE_TO_OBJECT) {
7876
- /**
7877
- * Creates an object representation of this proto.
7878
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
7879
- * Optional fields that are not set will be set to undefined.
7880
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7881
- * For the list of reserved names please see:
7882
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7883
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7884
- * JSPB instance for transitional soy proto support:
7885
- * http://goto/soy-param-migration
7886
- * @return {!Object}
7887
- */
7888
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.toObject = function(opt_includeInstance) {
7889
- return proto.Spic.CabinetProto.OpenRequest.CanOpenReply.toObject(opt_includeInstance, this);
7890
- };
7891
-
7892
-
7893
- /**
7894
- * Static version of the {@see toObject} method.
7895
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7896
- * the JSPB instance for transitional soy proto support:
7897
- * http://goto/soy-param-migration
7898
- * @param {!proto.Spic.CabinetProto.OpenRequest.CanOpenReply} msg The msg instance to transform.
7899
- * @return {!Object}
7900
- * @suppress {unusedLocalVariables} f is only used for nested messages
7901
- */
7902
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.toObject = function(includeInstance, msg) {
7903
- var f, obj = {
7904
- cabinet: (f = msg.getCabinet()) && proto.Spic.CabinetProto.toObject(includeInstance, f),
7905
- openRequest: (f = msg.getOpenRequest()) && proto.Spic.CabinetProto.OpenRequest.toObject(includeInstance, f),
7906
- canOpen: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
7907
- };
7908
-
7909
- if (includeInstance) {
7910
- obj.$jspbMessageInstance = msg;
7911
- }
7912
- return obj;
7913
- };
7914
- }
7915
-
7916
-
7917
- /**
7918
- * Deserializes binary data (in protobuf wire format).
7919
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
7920
- * @return {!proto.Spic.CabinetProto.OpenRequest.CanOpenReply}
7921
- */
7922
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.deserializeBinary = function(bytes) {
7923
- var reader = new jspb.BinaryReader(bytes);
7924
- var msg = new proto.Spic.CabinetProto.OpenRequest.CanOpenReply;
7925
- return proto.Spic.CabinetProto.OpenRequest.CanOpenReply.deserializeBinaryFromReader(msg, reader);
7926
- };
7927
-
7928
-
7929
- /**
7930
- * Deserializes binary data (in protobuf wire format) from the
7931
- * given reader into the given message object.
7932
- * @param {!proto.Spic.CabinetProto.OpenRequest.CanOpenReply} msg The message object to deserialize into.
7933
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7934
- * @return {!proto.Spic.CabinetProto.OpenRequest.CanOpenReply}
7935
- */
7936
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.deserializeBinaryFromReader = function(msg, reader) {
7937
- while (reader.nextField()) {
7938
- if (reader.isEndGroup()) {
7939
- break;
7940
- }
7941
- var field = reader.getFieldNumber();
7942
- switch (field) {
7943
- case 1:
7944
- var value = new proto.Spic.CabinetProto;
7945
- reader.readMessage(value,proto.Spic.CabinetProto.deserializeBinaryFromReader);
7946
- msg.setCabinet(value);
7947
- break;
7948
- case 2:
7949
- var value = new proto.Spic.CabinetProto.OpenRequest;
7950
- reader.readMessage(value,proto.Spic.CabinetProto.OpenRequest.deserializeBinaryFromReader);
7951
- msg.setOpenRequest(value);
7952
- break;
7953
- case 3:
7954
- var value = /** @type {boolean} */ (reader.readBool());
7955
- msg.setCanOpen(value);
7956
- break;
7957
- default:
7958
- reader.skipField();
7959
- break;
7960
- }
7961
- }
7962
- return msg;
7963
- };
7964
-
7965
-
7966
- /**
7967
- * Serializes the message to binary data (in protobuf wire format).
7968
- * @return {!Uint8Array}
7969
- */
7970
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.serializeBinary = function() {
7971
- var writer = new jspb.BinaryWriter();
7972
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.serializeBinaryToWriter(this, writer);
7973
- return writer.getResultBuffer();
7974
- };
7975
-
7976
-
7977
- /**
7978
- * Serializes the given message to binary data (in protobuf wire
7979
- * format), writing to the given BinaryWriter.
7980
- * @param {!proto.Spic.CabinetProto.OpenRequest.CanOpenReply} message
7981
- * @param {!jspb.BinaryWriter} writer
7982
- * @suppress {unusedLocalVariables} f is only used for nested messages
7983
- */
7984
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.serializeBinaryToWriter = function(message, writer) {
7985
- var f = undefined;
7986
- f = message.getCabinet();
7987
- if (f != null) {
7988
- writer.writeMessage(
7989
- 1,
7990
- f,
7991
- proto.Spic.CabinetProto.serializeBinaryToWriter
7992
- );
7993
- }
7994
- f = message.getOpenRequest();
7995
- if (f != null) {
7996
- writer.writeMessage(
7997
- 2,
7998
- f,
7999
- proto.Spic.CabinetProto.OpenRequest.serializeBinaryToWriter
8000
- );
8001
- }
8002
- f = message.getCanOpen();
8003
- if (f) {
8004
- writer.writeBool(
8005
- 3,
8006
- f
8007
- );
8008
- }
8009
- };
8010
-
8011
-
8012
- /**
8013
- * optional CabinetProto cabinet = 1;
8014
- * @return {?proto.Spic.CabinetProto}
8015
- */
8016
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.getCabinet = function() {
8017
- return /** @type{?proto.Spic.CabinetProto} */ (
8018
- jspb.Message.getWrapperField(this, proto.Spic.CabinetProto, 1));
8019
- };
8020
-
8021
-
8022
- /**
8023
- * @param {?proto.Spic.CabinetProto|undefined} value
8024
- * @return {!proto.Spic.CabinetProto.OpenRequest.CanOpenReply} returns this
8025
- */
8026
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.setCabinet = function(value) {
8027
- return jspb.Message.setWrapperField(this, 1, value);
8028
- };
8029
-
8030
-
8031
- /**
8032
- * Clears the message field making it undefined.
8033
- * @return {!proto.Spic.CabinetProto.OpenRequest.CanOpenReply} returns this
8034
- */
8035
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.clearCabinet = function() {
8036
- return this.setCabinet(undefined);
8037
- };
8038
-
8039
-
8040
- /**
8041
- * Returns whether this field is set.
8042
- * @return {boolean}
8043
- */
8044
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.hasCabinet = function() {
8045
- return jspb.Message.getField(this, 1) != null;
8046
- };
8047
-
8048
-
8049
- /**
8050
- * optional OpenRequest open_request = 2;
8051
- * @return {?proto.Spic.CabinetProto.OpenRequest}
8052
- */
8053
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.getOpenRequest = function() {
8054
- return /** @type{?proto.Spic.CabinetProto.OpenRequest} */ (
8055
- jspb.Message.getWrapperField(this, proto.Spic.CabinetProto.OpenRequest, 2));
8056
- };
8057
-
8058
-
8059
- /**
8060
- * @param {?proto.Spic.CabinetProto.OpenRequest|undefined} value
8061
- * @return {!proto.Spic.CabinetProto.OpenRequest.CanOpenReply} returns this
8062
- */
8063
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.setOpenRequest = function(value) {
8064
- return jspb.Message.setWrapperField(this, 2, value);
8065
- };
8066
-
8067
-
8068
- /**
8069
- * Clears the message field making it undefined.
8070
- * @return {!proto.Spic.CabinetProto.OpenRequest.CanOpenReply} returns this
8071
- */
8072
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.clearOpenRequest = function() {
8073
- return this.setOpenRequest(undefined);
8074
- };
8075
-
8076
-
8077
- /**
8078
- * Returns whether this field is set.
8079
- * @return {boolean}
8080
- */
8081
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.hasOpenRequest = function() {
8082
- return jspb.Message.getField(this, 2) != null;
8083
- };
8084
-
8085
-
8086
- /**
8087
- * optional bool can_open = 3;
8088
- * @return {boolean}
8089
- */
8090
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.getCanOpen = function() {
8091
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
8092
- };
8093
-
8094
-
8095
- /**
8096
- * @param {boolean} value
8097
- * @return {!proto.Spic.CabinetProto.OpenRequest.CanOpenReply} returns this
8098
- */
8099
- proto.Spic.CabinetProto.OpenRequest.CanOpenReply.prototype.setCanOpen = function(value) {
8100
- return jspb.Message.setProto3BooleanField(this, 3, value);
8101
- };
8102
-
8103
-
8104
7669
 
8105
7670
  /**
8106
7671
  * 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];