@aceplus/smartace-api 2.9.0-alpha.8 → 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 +1 -1
- package/spic.cabinet_pb.d.ts +0 -56
- package/spic.cabinet_pb.js +1 -437
- package/spic.cabinet_pb_service.d.ts +0 -19
- package/spic.cabinet_pb_service.js +0 -40
package/package.json
CHANGED
package/spic.cabinet_pb.d.ts
CHANGED
|
@@ -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
|
|
package/spic.cabinet_pb.js
CHANGED
|
@@ -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
|
|
@@ -7612,8 +7568,7 @@ proto.Spic.CabinetProto.OpenRequest.DeactivateRequest.prototype.toObject = funct
|
|
|
7612
7568
|
*/
|
|
7613
7569
|
proto.Spic.CabinetProto.OpenRequest.DeactivateRequest.toObject = function(includeInstance, msg) {
|
|
7614
7570
|
var f, obj = {
|
|
7615
|
-
id: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
7616
|
-
devicepacketnumber: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
7571
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
7617
7572
|
};
|
|
7618
7573
|
|
|
7619
7574
|
if (includeInstance) {
|
|
@@ -7654,10 +7609,6 @@ proto.Spic.CabinetProto.OpenRequest.DeactivateRequest.deserializeBinaryFromReade
|
|
|
7654
7609
|
var value = /** @type {number} */ (reader.readInt64());
|
|
7655
7610
|
msg.setId(value);
|
|
7656
7611
|
break;
|
|
7657
|
-
case 2:
|
|
7658
|
-
var value = /** @type {number} */ (reader.readInt32());
|
|
7659
|
-
msg.setDevicepacketnumber(value);
|
|
7660
|
-
break;
|
|
7661
7612
|
default:
|
|
7662
7613
|
reader.skipField();
|
|
7663
7614
|
break;
|
|
@@ -7694,13 +7645,6 @@ proto.Spic.CabinetProto.OpenRequest.DeactivateRequest.serializeBinaryToWriter =
|
|
|
7694
7645
|
f
|
|
7695
7646
|
);
|
|
7696
7647
|
}
|
|
7697
|
-
f = message.getDevicepacketnumber();
|
|
7698
|
-
if (f !== 0) {
|
|
7699
|
-
writer.writeInt32(
|
|
7700
|
-
2,
|
|
7701
|
-
f
|
|
7702
|
-
);
|
|
7703
|
-
}
|
|
7704
7648
|
};
|
|
7705
7649
|
|
|
7706
7650
|
|
|
@@ -7722,386 +7666,6 @@ proto.Spic.CabinetProto.OpenRequest.DeactivateRequest.prototype.setId = function
|
|
|
7722
7666
|
};
|
|
7723
7667
|
|
|
7724
7668
|
|
|
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
7669
|
|
|
8106
7670
|
/**
|
|
8107
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];
|